Update Sales Order
--
Update denied sales order indication
The PostDeniedSalesOrder endpoint adds or removes the denied sales order indication from a sales order in the MIMS system.
How to update the denied sales order indication
HTTP POST Request
| Request Type | Example URL |
|---|---|
| POST | {{url_base}}/PostDeniedSalesOrder |
| Example | http://seuIPePorta/datasnap/rest/RESTWebServiceMethods/"PostDeniedSalesOrder" |
Input Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| SalesOrderNo | String(25) | Yes | External code of the sales order |
| IsDenied | Boolean | No | Flag indicating if the denied sales order indication will be added or removed from the informed order |
Note
- Parameter
IsDenied: when true, marks the order as denied, when false the denied sales order indication is removed. If the parameter is not provided, it will be considered as false.
Return
| Parameter | Type | Required | Description |
|---|---|---|---|
| WebServiceReturn | WebServiceReturn | Yes | Standard WebService response information in method execution |
Request Example
curl --location 'http://seuIPePorta/datasnap/rest/RESTWebServiceMethods/"PostDeniedSalesOrder"' \
--header 'Content-Type: application/json' \
--data '{
"SalesOrderNo": "10306540",
"IsDenied": true
}'
Response Example
{
"WebServiceReturn": {
"Status": "wrsSuccess",
"ErrorCode": "",
"Message": "",
"Actor": "",
"ReturnQuestion": null
}
}
Update invoice number/billing date
The PostUpdateInvoiceNoSalesOrder endpoint is responsible for updating the invoice number and/or billing date of a sales order in the MIMS system.
How to update the invoice number and/or billing date
HTTP POST Request
| Request Type | Example URL |
|---|---|
| POST | {{url_base}}/PostUpdateInvoiceNoSalesOrder |
| Example | http://seuIPePorta/datasnap/rest/RESTWebServiceMethods/"PostUpdateInvoiceNoSalesOrder" |
Input Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| SalesOrderNo | String(25) | Yes | External code of the sales order |
| BranchNo | String(25) | Yes | External code of the branch |
| InvoiceNo | String(25) | No | Invoice number |
| BillingDateOrder | DataHora | No | Billing Date |
| ErrorIfNotFound | Boolean | No | Returns error if the informed order does not exist in the database |
Return
| Parameter | Type | Required | Description |
|---|---|---|---|
| WebServiceReturn | WebServiceReturn | Yes | Standard WebService response information in method execution |
Request Example
curl --location 'http://seuIPePorta/datasnap/rest/RESTWebServiceMethods/"PostUpdateInvoiceNoSalesOrder"' \
--header 'Content-Type: application/json' \
--data '{
"SalesOrderNo": "99HC8U",
"BranchNo": "010B",
"InvoiceNo": "123456789",
"BillingDateOrder": "2025-05-03T11:10:00Z",
"ErrorIfNotFound": true
}'
Response Example
{
"WebServiceReturn": {
"Status": "wrsSuccess",
"ErrorCode": "",
"Message": "",
"Actor": "",
"ReturnQuestion": null
}
}
🐞 Possible Errors
| Code | Message |
|---|---|
| USO‑002 | The informed status ("[value sent in request]") cannot be changed for the sales order! Current status ("[current order status]"). |