1. Sales
VasyOpenAPI
  • Branch
    • Branch List
      GET
  • Department
    • department
      GET
  • Category
    • category
      GET
    • subCategory
      GET
  • Brand
    • Brand
      GET
    • SubBrand
      GET
  • Contact
    • Get Customer List W Branch Id
      GET
    • Get Contact By Id
      GET
    • Get Contact By Mobile No
      GET
    • contactSave
      POST
    • Supplier(Party)
      GET
  • GST
    • Verify GST
      POST
  • Master
    • Get Country List
      GET
    • Get State List
      GET
    • Get City List
      GET
    • Get Tax List
      GET
    • Get Additional Charge List
      GET
  • Product
    • Get Product List
    • Get Product By ID
    • products with inventory
    • product details with Inventory By Product ID
    • Product Variant List ID & Name
    • Variant Details By Variant ID
  • Recipe
    • Get All Recipe
  • User
    • Created By
  • Report
    • Get Sales Item Register Data
    • Purchase Item Register Report
    • Stock Summary Report
    • Stock Transfer Item Register Report
    • Consumption Production Report
  • Sales
    • Get All Sales Data
      POST
    • Get Sales Data By Id
      GET
    • Order Create
      POST
    • Order Status
      GET
    • Shipping Details
      GET
    • Update Due Date
      POST
    • Update Order Status
      POST
  1. Sales

Update Due Date

POST
/api/v1/sales/30801778/update-due-date

Update Sales Due Date#

Purpose#

Update the due date of an existing sales order.

Why would you use this?#

Use this API when the payment due date or credit period of a sales order needs to be extended or modified.

Information Returned#

Update Status
Success Message

Example Use Case#

A customer requests additional credit days for payment. Your application can update the sales order due date in VasyERP using this API.

Required Parameters#

ParameterDescription
salesIdSales Order ID whose due date needs to be updated
dueDateNew due date in UTC format
branch_idBranch ID associated with the sales order

Request Body Highlights#

FieldDescription
dueDateNew due date and time in UTC format (YYYY-MM-DDTHH:mm:ssZ)

Important Notes#

dueDate must be provided in UTC format.
Use a valid salesId from the Sales APIs.
The updated due date should be greater than or equal to the sales date.
This API only updates the due date and does not modify any payment records.

Request

Query Params

Header Params

Body Params application/json

Examples

Responses

🟢200
application/json
Bodyapplication/json

🟠403Unauthorized
🟠429Too Many Request
Request Request Example
Shell
JavaScript
Java
Swift
curl --location '/api/v1/sales/30801778/update-due-date?branch_id=24448' \
--header 'api-token: a6f919n4-4370-47a6-ad48-d3d6f719e3b0' \
--header 'Content-Type: application/json' \
--data '{
    "dueDate" : "2027-08-30T15:30:00Z"
}'
Response Response Example
200 - Example 1
{
    "status": true,
    "message": "Due Date Updated Successfully",
    "code": "200",
    "response": null
}
Previous
Shipping Details
Next
Update Order Status
Built with