API Sales Order (A2X) v2
API Sales Order (A2X) v2
Entidad : A_SalesOrder
HTTP Method: POST
HTTP Request:
- Content-Type: application/json
- Accept: application/json
El request:
{
"SalesOrderType": "ZPVA",
"SalesOrganization": "7140",
"DistributionChannel": "C1",
"OrganizationDivision": "00",
"SoldToParty": "1000000067",
"PurchaseOrderByCustomer": "Purchase Order",
"CustomerPaymentTerms": "Z000",
"SDDocumentReason": "206",
"to_Partner":
[
{
"PartnerFunction": "DF",
"Customer": "1000000067"
},
{
"PartnerFunction": "EM",
"Customer": "3200000001"
}
],
"to_Text":
[
{
"Language": "EN",
"LongTextID": "Z000",
"LongText": "Long text of LongTextID TX01"
}
],
"to_Item":
[
{
"Material": "10450007",
"RequestedQuantity": "12",
"to_PricingElement":
[
{
"ConditionType": "ZDP4",
"ConditionRateValue": "4"
},
{
"ConditionType": "ZRP4",
"ConditionRateValue": "3"
}
]
},
{
"Material": "10450009",
"RequestedQuantity": "1",
"SalesDocumentRjcnReason": "00"
}
]
}
El response:
{
"d" : {
"__metadata" : {
"id" : "https://vhdaads4ci.sap.edp.arg.danone.com:44300/sap/opu/odata/sap/API_SALES_ORDER_SRV/
A_SalesOrder('1000013602')",
"uri" : "https://vhdaads4ci.sap.edp.arg.danone.com:44300/sap/opu/odata/sap/API_SALES_ORDER_SRV/
A_SalesOrder('1000013602')",
"type" : "API_SALES_ORDER_SRV.A_SalesOrderType",
"etag" : "W/\"datetimeoffset'2023-05-12T20%3A30%3A30.3885560Z'\""
},
"SalesOrder" : "1000013602",
"SalesOrderType" : "ZPVA",
"SalesOrganization" : "7140",
"DistributionChannel" : "C1",
"OrganizationDivision" : "00",
"SalesGroup" : "",
"SalesOffice" : "",
"SalesDistrict" : "",
"SoldToParty" : "1000000067",
"CreationDate" : null,
"CreatedByUser" : "",
"LastChangeDate" : null,
"SenderBusinessSystemName" : "",
"ExternalDocumentID" : "",
"LastChangeDateTime" : "\/Date(1683923430388+0000)\/",
"ExternalDocLastChangeDateTime" : null,
"PurchaseOrderByCustomer" : "Purchase Order",
"PurchaseOrderByShipToParty" : "",
"CustomerPurchaseOrderType" : "",
"CustomerPurchaseOrderDate" : null,
"SalesOrderDate" : "\/Date(1683849600000)\/",
"TotalNetAmount" : "128.28",
"OverallDeliveryStatus" : "",
"TotalBlockStatus" : "",
"OverallOrdReltdBillgStatus" : "",
"OverallSDDocReferenceStatus" : "",
"TransactionCurrency" : "ARS",
"SDDocumentReason" : "206",
"PricingDate" : "\/Date(1683849600000)\/",
"PriceDetnExchangeRate" : "1.00000",
"RequestedDeliveryDate" : "\/Date(1683849600000)\/",
"ShippingCondition" : "Z1",
"CompleteDeliveryIsDefined" : false,
"ShippingType" : "",
"HeaderBillingBlockReason" : "",
"DeliveryBlockReason" : "",
"DeliveryDateTypeRule" : "",
"IncotermsClassification" : "",
"IncotermsTransferLocation" : "",
"IncotermsLocation1" : "",
"IncotermsLocation2" : "",
"IncotermsVersion" : "",
"CustomerPriceGroup" : "",
"PriceListType" : "",
"CustomerPaymentTerms" : "Z000",
"PaymentMethod" : "",
"FixedValueDate" : null,
"AssignmentReference" : "",
"ReferenceSDDocument" : "",
"ReferenceSDDocumentCategory" : "",
"AccountingDocExternalReference" : "",
"CustomerAccountAssignmentGroup" : "01",
"AccountingExchangeRate" : "0.00000",
"CustomerGroup" : "",
"AdditionalCustomerGroup1" : "",
"AdditionalCustomerGroup2" : "",
"AdditionalCustomerGroup3" : "",
"AdditionalCustomerGroup4" : "",
"AdditionalCustomerGroup5" : "",
"SlsDocIsRlvtForProofOfDeliv" : false,
"CustomerTaxClassification1" : "",
"CustomerTaxClassification2" : "",
"CustomerTaxClassification3" : "",
"CustomerTaxClassification4" : "",
"CustomerTaxClassification5" : "",
"CustomerTaxClassification6" : "",
"CustomerTaxClassification7" : "",
"CustomerTaxClassification8" : "",
"CustomerTaxClassification9" : "",
"TaxDepartureCountry" : "",
"VATRegistrationCountry" : "",
"SalesOrderApprovalReason" : "",
"SalesDocApprovalStatus" : "",
"OverallSDProcessStatus" : "",
"TotalCreditCheckStatus" : "",
"OverallTotalDeliveryStatus" : "",
"OverallSDDocumentRejectionSts" : "",
"BillingDocumentDate" : "\/Date(1683849600000)\/",
"ContractAccount" : "",
"AdditionalValueDays" : "0",
"CustomerPurchaseOrderSuplmnt" : "",
"ServicesRenderedDate" : null,
"to_Item" : {
"results" : [
]
},
"to_Partner" : {
"results" : [
]
},
"to_PaymentPlanItemDetails" : {
"__deferred" : {
"uri" : "https://vhdaads4ci.sap.edp.arg.danone.com:44300/sap/opu/odata/sap/API_SALES_ORDER_SRV/
A_SalesOrder('1000013602')/to_PaymentPlanItemDetails"
}
},
"to_PricingElement" : {
"__deferred" : {
"uri" : "https://vhdaads4ci.sap.edp.arg.danone.com:44300/sap/opu/odata/sap/API_SALES_ORDER_SRV/
A_SalesOrder('1000013602')/to_PricingElement"
}
},
"to_RelatedObject" : {
"__deferred" : {
"uri" : "https://vhdaads4ci.sap.edp.arg.danone.com:44300/sap/opu/odata/sap/API_SALES_ORDER_SRV/
A_SalesOrder('1000013602')/to_RelatedObject"
}
},
"to_Text" : {
"results" : [
]
}
}
}
El pedido :