Create multi-line receipt using the /fscmRestApi/resources/latest/receivingReceiptRequests REST API
Summary:
We are currently calling the receivingReceiptRequests API creating a single line receipt like this example request:
{ "VendorId": "123456789012345", "Comments": "TEST", "EmployeeId": 123456789012345, "lines": [{ "ReceiptSourceCode": "VENDOR", "SourceDocumentCode": "PO", "TransactionType": "RECEIVE", "AutoTransactCode": "DELIVER", "OrganizationCode": "US_ORG", "DocumentNumber": "123456", "DocumentLineNumber": 1, "ItemDescription": "Apple - MacBook Pro - 14\" - M3 Pro - 18 GB RAM - 512 GB SSD - Space Black Mfg", "Quantity": 1, "TransactionDate": "2024-01-16T21:04+00:00" ] } }
We would like to create a multi-line receipt that includes non-serialized items (warranty, setup fees, etc..) all on the same receipt. Do we just add these items as additional lines to the array? Something like this:
"VendorId": "123456789012345", "Comments": "TEST", "EmployeeId": 123456789012345, "lines": [{ "ReceiptSourceCode": "VENDOR", "SourceDocumentCode": "PO", "TransactionType": "RECEIVE", "AutoTransactCode": "DELIVER", "OrganizationCode": "US_ORG", "DocumentNumber": "123456", "DocumentLineNumber": 1, "ItemDescription": "Apple - MacBook Pro - 14\" - M3 Pro - 18 GB RAM - 512 GB SSD - Space Black Mfg", "Quantity": 1, "TransactionDate": "2024-01-16T21:04+00:00" }, { "ReceiptSourceCode": "VENDOR", "SourceDocumentCode": "PO", "TransactionType": "RECEIVE", "AutoTransactCode": "DELIVER", "OrganizationCode": "US_ORG", "DocumentNumber": "123456", "DocumentLineNumber": 1, "ItemDescription": "Apple warranty for macbooks", "Quantity": 1, "TransactionDate": "2024-01-16T21:04+00:00" }, { "ReceiptSourceCode": "VENDOR", "SourceDocumentCode": "PO", "TransactionType": "RECEIVE", "AutoTransactCode": "DELIVER", "OrganizationCode": "US_ORG", "DocumentNumber": "123456", "DocumentLineNumber": 1, "ItemDescription": "Apple - Setup Fee", "Quantity": 1, "TransactionDate": "2024-01-16T21:04+00:00" } } ] }
Tagged:
0