How To Create Accept and Reject Receipt Transactions using API in 23a?
Summary:
How To Create 4-way Receipt Transactions using API in 23a?
Business scenario:
While creating PO Receipt automation flow using REST APIs. How to receive multiple receipt lines with accept/reject status with REST API?
Please find below sample code for this requirement.
1. URL: make sure the URL in postman stop at :
https://test.fa.us6.oraclecloud.com/fscmRestApi/resources/11.13.18.05
2. Content-Type : application/vnd.oracle.adf.batch+json
3. Sample Payload :
resource name: receivingReceiptTransactionRequests
Content type:
application/vnd.oracle.adf.batch+json
Body:
{
"parts": [
{
"id": "part1",
"path": "/receivingReceiptTransactionRequests",
"operation": "create",
"payload": {
"SourceDocumentCode": "PO",
"ReceiptSourceCode": "VENDOR",
"TransactionType": "ACCEPT",
"DocumentNumber": "1000125",
"DocumentLineNumber": 1,
"ItemNumber": "RCV-100",
"OrganizationCode": "M1",