Skip to main content

Update Return Order


Update billing information​

The PostUpdateInvoiceNoSalesReturnOrder endpoint updates invoice number and billing date in a sales return order in MIMS


How to update invoice number and billing date in return order​

HTTP POST Request

Request TypeExample URL
POST{{url_base}}/PostUpdateInvoiceNoSalesReturnOrder
Examplehttp://seuIPePorta/datasnap/rest/RESTWebServiceMethods/"PostUpdateInvoiceNoSalesReturnOrder"

Input Parameters​

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

Return​

ParameterTypeRequiredDescription
WebServiceReturnWebServiceReturnYesStandard WebService response information on method execution

Request Example​

curl --location 'http://seuIPePorta/datasnap/rest/RESTWebServiceMethods/"PostUpdateInvoiceNoSalesReturnOrder"' \
--header 'Content-Type: application/json' \
--data '{
"SalesReturnOrderNo": "249",
"BranchNo": "010",
"InvoiceNo": "0018",
"BillingDateOrder": "2025-07-17T01:00:00",
"ErrorIfNotFound": false
}'

Response Example​

{
"WebServiceReturn": {
"Status": "wrsSuccess",
"ErrorCode": "",
"Message": "",
"Actor": "",
"ReturnQuestion": null
}
}

🐞 Possible Errors​

CodeMessage
UIR‑001The Invoice Number cannot be updated for return order ([value sent in request]) of type Leftovers. Process aborted!


Update invoice number and dispatched quantities​

The PostUpdateInvoiceToTransporterReturnOrder endpoint updates invoice data and adjusts ERP dispatched quantities in a sales return order in the MIMS system.


How to update invoice number and dispatched quantities in return order​

HTTP POST Request

Request TypeExample URL
POST{{url_base}}/PostUpdateInvoiceToTransporterReturnOrder
Examplehttp://seuIPePorta/datasnap/rest/RESTWebServiceMethods/"PostUpdateInvoiceToTransporterReturnOrder"

Input Parameters​

ParameterTypeRequiredDescription
SalesReturnOrderNoString(25)YesExternal sales return order code
BranchNoString(25)YesExternal branch code
InvoiceNoString(25)NoInvoice number
InvoiceSeriesNoString(10)NoInvoice series number
ItemListUpdateInvoiceToTransporterReturnOrderItemListNoList of Sales Return Order items
ErrorIfNotFoundBooleanNoReturns error if the informed order does not exist in the database
Observation
  • If the InvoiceNo and InvoiceSeriesNo parameters are not informed, the fields will be saved as null.
  • If the InvoiceNo parameter is informed, the InvoiceSeriesNo parameter must also be informed.

📝 UpdateInvoiceToTransporterReturnOrderItemList Object​

The UpdateInvoiceToTransporterReturnOrderItemList object represents a list of return order items, containing information about products, quantities and weights for update.

Input Parameters​

ParameterTypeRequiredDescription
ProductNoString(25)YesExternal product code
QtyIntegerNoQuantity of boxes
WeightFloatNoBox weight
Observation
  • The Qty parameter is required if the "Weight" parameter is not informed.
  • The Weight parameter is required if the "Qty" parameter is not informed.

Return​

ParameterTypeRequiredDescription
WebServiceReturnWebServiceReturnYesStandard WebService response information on method execution

Request Example​

curl --location 'http://seuIPePorta/datasnap/rest/RESTWebServiceMethods/"PostUpdateInvoiceToTransporterReturnOrder"' \
--header 'Content-Type: application/json' \
--data '{
"SalesReturnOrderNo": "RET123",
"BranchNo": "BR001",
"InvoiceNo": "NF123456",
"InvoiceSeriesNo": "001",
"ItemList": [
{
"ProductNo": "PROD001",
"Qty": 5,
"Weight": 10.0
}
],
"ErrorIfNotFound": false
}'

Response Example​

{
"WebServiceReturn": {
"Status": "wrsSuccess",
"ErrorCode": "",
"Message": "",
"Actor": "",
"ReturnQuestion": null
}
}

🐞 Possible Errors​

CodeMessage
UIT‑001The item "[parameter description]" value "[value sent in request]" at index [[index code]] must have Quantity "Qty" or Weight "Weight" informed!
UIT‑002The product "[parameter description]" provided ([value sent in request]) at index [[index code]] is not linked to the informed sales return order!