| Field | Required | Description |
|---|---|---|
| api-token | Yes | Authentication token provided by VasyERP |
| Content-Type | Yes | Must be application/json |
| Field | Required | Description |
|---|---|---|
| salesId | Yes | Unique ID of the sales voucher whose order status needs to be updated |
| Field | Required | Description |
|---|---|---|
| branch_id | Yes | Branch ID in which the sales voucher exists |
| Field | Required | Description | Validation |
|---|---|---|---|
| orderStatus | Yes | New status of the sales order | Accepted values: Pending, Confirmed, Processing, Shipped, Delivered, Cancelled (as applicable) |
| reason | No | Reason code for updating the order status (primarily used for cancellation or status-specific actions) | Must be a valid numeric value when provided |
api-token is required to authenticate the request.orderStatus is a mandatory field.reason is optional and should contain a valid reason code when applicable.curl --location '/api/v1/sales/3649298/update-order-status?branch_id=5999' \
--header 'api-token: af9ad6a5-593e-4bxq-a5c3-664129ebfger' \
--header 'Content-Type: application/json' \
--data '{
"orderStatus" : "In progress",
"reason": 1
}'{
"status": true,
"message": "Order status updated successfully",
"code": "200",
"response": null
}