priceSale: the product's selling price is a gross VAT amount;priceInvoice: the product's invoice price (purchase invoice) is a net VAT amount;pricePurchase: the product's purchase price (typically purchase order) is a net VAT amount.priceSale is mandotary instead priceInvoice, and pricePurchase are not provided, the system will attempt to retrieve prices based on the branchCode and the sale, invoice, and purchase price lists. If no matching price is found, the API will return an error, and the document will not be created.{
"documentHeader": {
"id": "7571b744-8e2d-4dde-99d8-b60c0dff1aca",
"branchCode": 2,
"branchCodeAddresse": 9,
"branchCodeTransfer": 103,
"cause": "EXIT",
"currency": "EUR",
"currencySymbol": "€",
"documentDeliveryExternal": "TRANS-12345",
"documentDate": "2022-04-19 00:00:00",
"documentType": "SD_INT_TRASFER",
"system": "ECOMMERCE",
"createOpposingDocument": "Y",
"closeOpposingDocument": "N"
},
"documentRows": [
{
"barcode": "010005600109",
"dimension1": "9",
"dimension2": "BLU",
"dimension3": ".",
"dimension4": ".",
"itemCode": "BO00P794101",
"quantity": 1,
"rowNumber": 1,
"taxRate": 22,
"priceSale": 19.9,
"pricePurchase": 19.9,
"priceInvoice": 19.9
}
],
"callback":"https://europe-west1-sinesy4wsplatform.cloudfunctions.net/fake-callback"
}createOpposingDocument parameter is Y, in addition to the internal transfer document in the CLOSED state, the transfer load document will also be created in the OPEN state so that the store or warehouse can proceed with the verification of the goods. For details on document types, refer to paragraph Documents structure.closeOpposingDocument parameter is used when createOpposingDocument is Y. If closeOpposingDocument parameter is Y the transfer load document will be created in the CLOSED state. For details on document types, refer to paragraph Documents structure.callback field must be populated with a service URL from the e-commerce platform that 4ws.trade will use to send the processing result.{
"success": true,
"id": "7571b744-8e2d-4dde-99d8-b60c0dff1aca"
}{
"success": false,
"message": "Invalid barcode value: 87654321 at row: 1"
}success: Indicates whether the processing was successful.id: References the transfer document.message: Describes the error if the processing failed.02931b8a-a6c8-4e47-b3f1-041ffb1e432q and links it uniquely to the collected order.retryFailedTransfers.js)