POST call, passing a JSON body as specified below.| Field | Description | Type | Mandatory |
|---|---|---|---|
| goodsRecords | Array of sales objecs | Check below for the goodsRecords structure detail To update a hierarcy also specify the progId, which is the identifier for the hierarcy | ā |
{
goodsRecords: [{
goods: {
customerCode: 123456,
documentDate: "yyyy-mm-dd hh:mm:ss",
refDocument: "xxx",
actionType: "PURCHASE",
entityCode: 0,
system: "ECOMMERCE",
"cancellationDocumentDate": "2021-09-06 17:40:00",
"cancellationRefDocument": "1-16"
}
}]
}
{
success: false,
code: 400,
message: "Error: no update has been performed, check the errorObjects array for more info.",
errorObjects: [
{
entityCode: 80,
documentDate: "2019-01-28 16:44:50",
refDocument: 2,
customerCode: "26410",
errorMessage: "Error: the sale is already deleted."
}
],
deletedObjects: []
}