Skip to main content

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 TypeExample URL
POST{{url_base}}/PostDeniedSalesOrder
Examplehttp://seuIPePorta/datasnap/rest/RESTWebServiceMethods/"PostDeniedSalesOrder"

Input Parameters

ParameterTypeRequiredDescription
SalesOrderNoString(25)YesExternal code of the sales order
IsDeniedBooleanNoFlag 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

ParameterTypeRequiredDescription
WebServiceReturnWebServiceReturnYesStandard 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 TypeExample URL
POST{{url_base}}/PostUpdateInvoiceNoSalesOrder
Examplehttp://seuIPePorta/datasnap/rest/RESTWebServiceMethods/"PostUpdateInvoiceNoSalesOrder"

Input Parameters

ParameterTypeRequiredDescription
SalesOrderNoString(25)YesExternal code of the sales order
BranchNoString(25)YesExternal code of the branch
InvoiceNoString(25)NoInvoice number
BillingDateOrderDataHoraNoBilling Date
ErrorIfNotFoundBooleanNoReturns error if the informed order does not exist in the database

Return

ParameterTypeRequiredDescription
WebServiceReturnWebServiceReturnYesStandard 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

CodeMessage
USO‑002The informed status ("[value sent in request]") cannot be changed for the sales order! Current status ("[current order status]").