Example of a request payload to create ASN:
{
"ReceiptSourceCode":"VENDOR",
"ASNType":"ASN", // It will be hardcoded in case ASN
"OrganizationCode":"001",
"VendorName":"Advanced Corp", // Supplier Name
"VendorSiteCode":"AC US1", // Supplier Site Code
"ShipmentNumber": "ASN-12-0987661", // ASN Number to create.
"ShippedDate": "2024-09-09",
"lines":[
{
"ReceiptSourceCode":"VENDOR",
"TransactionType":"SHIP",
"AutoTransactCode":"SHIP",
"SourceDocumentCode":"PO",
"OrganizationCode":"001",
"DocumentNumber":"US1641571", // Put a valid PO Number
"DocumentLineNumber":2, // Enter the correct Line# against the ItemNumber entered
in ItemNumber column.
"ItemNumber":"AS65004", //Take correct item from PO item# column else ASN would
not be created
"Quantity":1,
"UnitOfMeasure":"Ea",
"SoldtoLegalEntity":"US1 Legal Entity"
}
]
}
Success response if ASN is created:
{
"Status" : "SUCCESS",
"ASNType" : "ASN",
"ShipmentNumber" : "ASN-12-0987661",
"CreatedBy" : "AAA.TTT",
"CreationDate" : "2024-09-12T07:14:30.001+00:00"
}
Failure response if ASN is not created:
{
"Status" : "ERROR",
"Error" : "RCV_INVALID_ROI_VALUE_NE",
"ErrorMessage" : "You must enter a valid value in the LINE_NUM column. The current value
is 2."
}