POST call, passing a JSON body as specified below.| Field | Description | Type | Mandatory |
|---|---|---|---|
| documentsRecords | Array of document objecs | See below for the the object structure To update an attribute also specify the progId, which is the identifier for the attribute | ā |
| Field | Description | Type | Mandatory |
|---|---|---|---|
| docType | Document type | Varchar(250) | ā |
| causal | Document causal | Varchar(250) | ā |
| currency | Document currency | Varchar(250) | ā |
| year | Document year | Decimal(4, 0) | ā |
| documentDate | Document date | Datetime | ā |
| refDocument | Document number | Varchar(250) | ā |
| entityCode | Shop/store | Varchar(250) | ā |
| movementDate | Movement date | Datetime | ā |
| transportDocument | Delivery note number | Varchar(250) | ā |
| supplierDocument | Supplier document number | Varchar(250) | ā |
| supplier | Supplier identifier | Varchar(250) | ā |
| customer | Billing customer identifier | Varchar(250) | ā |
| consolidated | Indicates wether the document is consolidated or not ('T' for consolidated or 'F' for not consolidated) | Char(1) | ā |
| consolidatedTransfer | Indicates wether the transfer document should be created automatically and is consolidated or not ('T' for consolidated or 'F' for not consolidated) | Char(1) | |
| deliveryDate | Delivery date | Datetime | ā |
| note | Document notes | Varchar(1024) | |
| packagesNumber | packages number | Decimal(7, 0) | |
| totalQuantity | total pieces amount | Decimal(7, 2) | ā |
| system | The system which performed the call | Varchar(250) | ā |
| externalCode | External code for the document | Varchar(250) | ā |
| The following fields must be specified only when comparing goods of a related document | |||
| relatedDocumentDate | Related document date | Datetime | |
| relatedRefDocument | Related document number | Varchar(250) | |
| relatedEntityCode | Related shop/store code | Varchar(250) | |
| The following field must be specified only when trasferring goods | |||
| entityCodeDest | Recipient shop/store code | Varchar(250) | |
| percDiscount1 | Percentage for the graduated discount 1 | Number | |
| percDiscount2 | Percentage for the graduated discount 2 | Number | |
| percDiscount3 | Percentage for the graduated discount 3 | Number | |
| percDiscount4 | Percentage for the graduated discount 4 | Number | |
| percYearDiscount | Percentage for the yearly discount | Number | |
| payment | Code of the payment method | Varchar(255) | |
| confirmationDateOrder | Order confirmation date | Datetime | |
| limitDate | Date that indicates the last day of accepted delivery | Datetime | |
| buyer | Subject code for the buyer | Varchar(255) | |
| seasonCode | Code for the seaason | Varchar(255) |
| Field | Description | Type | Mandatory |
|---|---|---|---|
| rowNumber | Row number | Int(11) | ā |
| barcode | Article barcode | Varchar(250) | ā |
| quantity | Quantity | Decimal(10, 2) | ā |
| orderRow | Order row reference | Varchar(250) | |
| cessionPrice | Cession price | Decimal(7, 2) | |
| note | Row notes | Varchar(1024) | |
| percDiscount1 | Percentage of graduated discount 1 | Number | |
| percDiscount2 | Percentage of graduated discount 2 | Number | |
| percDiscount2 | Percentage of discount 2 | Number | |
| deliveryDate | Package delivery date | Datetime |
| Field | Description | Type | Mandatory |
|---|---|---|---|
| packageNumber | Package number | Varchar(250) | ā |
| pakcageBarcode | Package barcode | Varchar(250) | ā |
| externalPackage | External package code | Varchar(250) | ā |
| consolidated | Indicates wether the package is consolidated ('T') or not ('F') | Char(1) | ā |
| movementDate | Package movement date | Datetime | ā |
| Field | Description | Type | Mandatory |
|---|---|---|---|
| rowNumber | Document row reference | Varchar(250) | ā |
| packageNumber | Package reference | Varchar(250) | ā |
| quantity | quantity | Int(11) | ā |
"documentsRecords": [{
"documentHeaders": {
"docType": "document type",
"causal": "document causal",
"currency": "document currency",
"year": "document year",
"documentDate": "document date",
"refDocument": "document number",
"entityCode": "shop/store",
"relatedDocumentDate": "related document date",
"relatedRefDocument": "related document number",
"relatedEntityCode": "related shop/store",
"movementDate": "movement date",
"transportDocument": "delivery note number",
"supplierDocument": "supplier document number",
"supplier": "supplier identifier",
"customer": "billing customer identifier",
"consolidated": "indicates wether the document is consolidated or not ('T' for consolidated or 'F' for not consolidated)",
"consolidatedTransfer": "indicates wether the transfer document should be created automatically and is consolidated or not ('T' for consolidated or 'F' for not consolidated)",
"entityCodeDest": "recipient shop/store",
"deliveryDate": "delivery date",
"note": "notes",
"packagesNumber": "packages number",
"totalQuantity": "total pieces amount",
"system": "Caller system",
"externalCode": "External code for the document"
},
"documentDetails": [{
"rowNumber": "row number",
"barcode": "article barcode",
"quantity": "quantity",
"orderRow": "order row reference",
"cessionPrice": "cession price",
"note": "row notes"
}],
"documentPackages": [{
"packageNumber": "package number",
"pakcageBarcode": "package barcode",
"externalPackage": "external package code",
"consolidated": "indicates wether the package is consolidated ('T') or not ('F')",
"movementDate": "package movement date"
}],
"packageDetails": [{
"rowNumber": "document row reference",
"packageNumber": "package reference",
"quantity": "quantity"
}]
}]
{
"success": true,
"code": 200,
"message": "Insert/update successful"
}