$Batch
Criar multiplas Ordens de Vendas em uma única execução do método POST>
--batch Content-Type: multipart/mixed; boundary=changeset–changeset
Content-Type: application/http
Content-Transfer-Encoding: binaryPOST A_SalesOrder HTTP/1.1
Content-Type: application/json{
“SalesOrderType”: “OT”,
“SalesOrganization”: “1410”,
“DistributionChannel”: “10”,
“OrganizationDivision”: “00”,
“SoldToParty”: “14100003”,
“PurchaseOrderByCustomer”: “TST-BATCH-01”,
“TransactionCurrency”: “BRL”,
“CustomerPaymentTerms”: “0004”,
“PaymentMethod”: “N”,
“IncotermsClassification”: “FOB”,
“IncotermsLocation1”: “POA”,
“to_PricingElement”: [
{
“ConditionType”: “RB00”,
“ConditionRateValue”: “25”,
“ConditionCurrency”: “BRL”
}
],
“to_Item”: {
“results”: [
{
“SalesOrderItem”: “10”,
“Material”: “TG11”,
“ProductionPlant”: “1410”,
“StorageLocation”: “141A”,
“RequestedQuantity”: “1”,
“IncotermsClassification”: “FOB”,
“IncotermsLocation1”: “POA”,
“WBSElement”: “”,
“CustomerPaymentTerms”: “0004”,
“RequestedQuantityUnit”: “PEÇ”,
“to_PricingElement”:
{
“results”: [
{
“ConditionType”: “PR00”,
“ConditionRateValue”: “175”,
“ConditionCurrency”: “BRL”
}
]} } ] }, "to_Partner": { "results": [ { "PartnerFunction": "SP", "Supplier": "1000017" }, { "PartnerFunction": "ZM", "Customer": "00000018" } ] }
}
–changeset–
–batch
Content-Type: multipart/mixed; boundary=changeset01
–changeset01
Content-Type: application/http
Content-Transfer-Encoding: binaryPOST A_SalesOrder HTTP/1.1
Content-Type: application/json{
“SalesOrderType”: “OT”,
“SalesOrganization”: “1410”,
“DistributionChannel”: “10”,
“OrganizationDivision”: “00”,
“SoldToParty”: “14100003”,
“PurchaseOrderByCustomer”: “TST-BATCH-01”,
“TransactionCurrency”: “BRL”,
“CustomerPaymentTerms”: “0004”,
“PaymentMethod”: “N”,
“IncotermsClassification”: “FOB”,
“IncotermsLocation1”: “POA”,
“to_PricingElement”: [
{
“ConditionType”: “RB00”,
“ConditionRateValue”: “25”,
“ConditionCurrency”: “BRL”
}
],
“to_Item”: {
“results”: [
{
“SalesOrderItem”: “10”,
“Material”: “TG11”,
“ProductionPlant”: “1410”,
“StorageLocation”: “141A”,
“RequestedQuantity”: “1”,
“IncotermsClassification”: “FOB”,
“IncotermsLocation1”: “POA”,
“CustomerPaymentTerms”: “0004”,
“RequestedQuantityUnit”: “PEÇ”,
“to_PricingElement”:
{
“results”: [
{
“ConditionType”: “PR00”,
“ConditionRateValue”: “175”,
“ConditionCurrency”: “BRL”
}
]
}
},
{
“SalesOrderItem”: “20”,
“Material”: “TG11”,
“ProductionPlant”: “1410”,
“StorageLocation”: “141A”,
“RequestedQuantity”: “1”,
“IncotermsClassification”: “FOB”,
“IncotermsLocation1”: “POA”,
“CustomerPaymentTerms”: “0004”,
“RequestedQuantityUnit”: “PEÇ”,
“to_PricingElement”:
{
“results”: [
{
“ConditionType”: “PR00”,
“ConditionRateValue”: “150”,
“ConditionCurrency”: “BRL”
}
]
}
}
]
},
“to_Partner”: {
“results”: [
{
“PartnerFunction”: “SP”,
“Supplier”: “1000017”
},
{
“PartnerFunction”: “ZM”,
“Customer”: “00000018”
}
]
}
}–changeset01–
–batch–