- Previous: Retrieve access token
- Up: Sales Order
- Next: ATP Stock Check
Create Sales Order
This API is consumed by a user to post a Sales Order on SAP.
Request URI
Request Structure
Field | Type | Mandatory | Description | Technical Details |
Header |
||||
documentType |
String | Document type | ||
collectiveNumber |
String | Collective number | ||
salesOrg |
String | Sales organization | ||
distrChannel |
String | Distribution channel | ||
division |
String | Division | ||
salesGroup |
String | Sales group | ||
salesOffice |
String | Sales office | ||
reqDeliveryDate |
String | Requested delivery date | Format YYYYMMDD | |
customerPONo |
String | Customer purchase order number | ||
customerPODate |
String | Customer purchase order date | Format YYYYMMDD | |
shipToPartyCustPONumber |
String | Shipt-to party customer purchase order number | ||
shipToPartyCustPODate |
String | Ship-to party's PO date | Format YYYYMMDD | |
completeDeliveryIndicator |
String | Complete delivery defined for each sales order | Possible values: blank or "X" | |
orderReason |
String | Order reason (reason for the business transaction) | Max lenght: 3 | |
note |
String | Note | ||
Item (0..∞) |
||||
itemNumber |
String | Sales document item | ||
parentItem |
String | Higher-level item in bill of material structures | ||
material |
String | Material number | ||
plant |
String | Plant | ||
storageLocation |
String | Storage location | ||
quantity |
String | Target quantity | ||
quantityUOM |
String | Target quantity UoM | ||
shipToPartyCustPONumber |
String | Shipt-to party customer purchase order number | ||
shipToPartyCustPODate |
String | Ship-to party's PO date | ||
WBSElem |
String | Work Breakdown Structure | ||
ConditionRecords (1..∞) |
||||
itemNumber |
String | Sales document item | ||
condition |
String | Condition type | ||
value |
String | Condition value | ||
currency |
String | Currency. If not set, the value will be intended as a percentage instead of the actual value of the condition | ||
unit |
String | Condition unit | ||
priceUnit |
String | Condition price unit | ||
Partners (1..∞) |
||||
partnerRole |
String | Partner role | ||
partnerNumber |
String | Partner number | ||
partnerName |
String | Partner name | ||
partnerAddress |
String | Partner address | ||
partnerPostalCode |
String | Partner postal code | ||
partnerCity |
String | Partner city | ||
partnerCountry |
String | Partner Country |
Request Example
Here is possible to see an example of the API request:
Response Structure
Field | Type | Description | Technical Details |
errorId |
String | Provides information about the status of the request. | Present only in case of errors |
errorCode |
String | Provides information about the status of the request. | Possible values: "0" = Success, "1" or different codes = Error |
message |
String | Provides additional information about errors | |
salesOrder |
String | Sales Order Number created on SAP | Present only in case of success. |
Response Example Success: In case of errors:
- Previous: Retrieve access token
- Up: Sales Order
- Next: ATP Stock Check
0 Comments
Please sign in to post a comment.