From decb94d46d464bcd805cbdd2105960c44c0fd982 Mon Sep 17 00:00:00 2001 From: Jack Evoniuk Date: Mon, 22 Nov 2021 15:23:12 -0800 Subject: [PATCH] Update Vendor Orders status operation Update Vendor Orders status operation for item receive qty updates. --- .../vendor-orders-api-model/vendorOrders.json | 3053 +++++++++-------- 1 file changed, 1590 insertions(+), 1463 deletions(-) diff --git a/models/vendor-orders-api-model/vendorOrders.json b/models/vendor-orders-api-model/vendorOrders.json index c6e3f34..52211cf 100644 --- a/models/vendor-orders-api-model/vendorOrders.json +++ b/models/vendor-orders-api-model/vendorOrders.json @@ -289,712 +289,712 @@ "value": "2019-08-20T14:00:00" }, "includeDetails": { - "value": "true" - }, - "limit": { - "value": 2 - }, - "sortOrder": { - "value": "DESC" - } - } - }, - "response": { - "payload": { - "pagination": { - "nextToken": "MDAwMDAwMDAwMQ==" - }, - "orders": [ - { - "purchaseOrderNumber": "2JK3S9VC", - "purchaseOrderState": "New", - "orderDetails": { - "purchaseOrderDate": "2019-08-20T15:51:00Z", - "purchaseOrderChangedDate": "2019-08-22T16:05:00Z", - "purchaseOrderStateChangedDate": "2019-08-20T15:51:00Z", - "purchaseOrderType": "RegularOrder", - "paymentMethod": "Invoice", - "buyingParty": { - "partyId": "ABCD" - }, - "sellingParty": { - "partyId": "999US" - }, - "shipToParty": { - "partyId": "ABCD" - }, - "billToParty": { - "partyId": "ABCD" - }, - "shipWindow": "2019-08-21T07:00:00Z--2019-08-27T07:00:00Z", - "items": [ - { - "itemSequenceNumber": "1", - "amazonProductIdentifier": "B07DFVDRAB", - "vendorProductIdentifier": "8806098286500", - "orderedQuantity": { - "amount": 1, - "unitOfMeasure": "Eaches", - "unitSize": 1 - }, - "isBackOrderAllowed": false, - "netCost": { - "amount": "346.27", - "currencyCode": "USD" - }, - "listPrice": { - "amount": "346.27", - "currencyCode": "USD" - } - }, - { - "itemSequenceNumber": "2", - "amazonProductIdentifier": "B07DFYF5AB", - "vendorProductIdentifier": "8806098286123", - "orderedQuantity": { - "amount": 2, - "unitOfMeasure": "Eaches", - "unitSize": 1 - }, - "isBackOrderAllowed": false, - "netCost": { - "amount": "229.47", - "currencyCode": "USD" - }, - "listPrice": { - "amount": "229.47", - "currencyCode": "USD" - } - }, - { - "itemSequenceNumber": "3", - "amazonProductIdentifier": "B07MC84QAB", - "vendorProductIdentifier": "8806098095123", - "orderedQuantity": { - "amount": 13, - "unitOfMeasure": "Eaches", - "unitSize": 1 - }, - "isBackOrderAllowed": false, - "netCost": { - "amount": "412.71", - "currencyCode": "USD" - }, - "listPrice": { - "amount": "412.71", - "currencyCode": "USD" - } - } - ] - } + "value": "true" }, - { - "purchaseOrderNumber": "3TRD2IAB", - "purchaseOrderState": "New", - "orderDetails": { - "purchaseOrderDate": "2019-08-20T16:29:00Z", - "purchaseOrderChangedDate": "2019-08-20T16:50:00Z", - "purchaseOrderStateChangedDate": "2019-08-20T16:29:00Z", - "purchaseOrderType": "RegularOrder", - "importDetails": { - "importContainers": "2-20'HC,1-45',1-45'HC", - "internationalCommercialTerms": "FreeOnBoard", - "methodOfPayment": "PrepaidBySeller", - "portOfDelivery": "INDIA", - "shippingInstructions": "PREFERENCE IS PALLET-LOAD, BUT IF CONTAINERS ARE FLOOR-LOADED" - }, - "paymentMethod": "Invoice", - "buyingParty": { - "partyId": "ABC1" - }, - "sellingParty": { - "partyId": "998US" - }, - "shipToParty": { - "partyId": "ABC1" - }, - "billToParty": { - "partyId": "ABC1" - }, - "shipWindow": "2019-08-21T07:00:00Z--2019-08-27T07:00:00Z", - "items": [ - { - "itemSequenceNumber": "1", - "amazonProductIdentifier": "B01LNRIIAB", - "vendorProductIdentifier": "B01LNRIIAB", - "orderedQuantity": { - "amount": 5, - "unitOfMeasure": "CASES", - "unitSize": 10 - }, - "isBackOrderAllowed": true, - "netCost": { - "amount": "94.97", - "currencyCode": "USD" - }, - "listPrice": { - "amount": "94.97", - "currencyCode": "USD" - } - } - ] - } - } - ] - } - } - }, - { - "request": { - "parameters": { - "createdBefore": { - "value": "2019-08-21T00:00:00" - }, - "createdAfter": { - "value": "2019-08-20T14:00:00" - }, - "includeDetails": { - "value": "false" - }, - "sortOrder": { - "value": "DESC" - }, - "nextToken": { - "value": "MDAwMDAwMDAwMQ==" - } - } - }, - "response": { - "payload": { - "orders": [ - { - "purchaseOrderNumber": "2JK3S9XY", - "purchaseOrderState": "New" + "limit": { + "value": 2 }, - { - "purchaseOrderNumber": "3TRD2ABC", - "purchaseOrderState": "Acknowledged" + "sortOrder": { + "value": "DESC" } - ] - } - } - }, - { - "request": { - "parameters": { - "changedBefore": { - "value": "2020-05-27T13:00:00" - }, - "changedAfter": { - "value": "2020-05-25T13:00:00" } - } - }, - "response": { - "payload": { - "orders": [ - { - "purchaseOrderNumber": "TestPO2", - "purchaseOrderState": "New", - "orderDetails": { - "purchaseOrderDate": "2020-05-25T19:29:23Z", - "purchaseOrderChangedDate": "2020-05-26T16:00:00Z", - "purchaseOrderStateChangedDate": "2020-05-25T19:29:23Z", - "purchaseOrderType": "RegularOrder", - "paymentMethod": "Invoice", - "buyingParty": { - "partyId": "ABCD" - }, - "sellingParty": { - "partyId": "API01" - }, - "shipToParty": { - "partyId": "ABCD" - }, - "billToParty": { - "partyId": "ABCD" - }, - "shipWindow": "2020-05-26T07:00:00Z--2020-05-29T07:00:00Z", - "items": [ - { - "itemSequenceNumber": "1", - "amazonProductIdentifier": "B01XYZ3Z00", - "vendorProductIdentifier": "8806093095123", - "orderedQuantity": { - "amount": 20, - "unitOfMeasure": "Eaches", - "unitSize": 1 - }, - "isBackOrderAllowed": true, - "netCost": { - "currencyCode": "USD", - "amount": "70" - }, - "listPrice": { - "currencyCode": "USD", - "amount": "70" - } - } - ] - } + }, + "response": { + "payload": { + "pagination": { + "nextToken": "MDAwMDAwMDAwMQ==" }, - { - "purchaseOrderNumber": "TestPO1", - "purchaseOrderState": "Acknowledged", - "orderDetails": { - "purchaseOrderDate": "2020-05-26T18:49:20Z", - "purchaseOrderChangedDate": "2020-05-27T06:30:00Z", - "purchaseOrderStateChangedDate": "2020-05-26T19:10:00Z", - "purchaseOrderType": "RegularOrder", - "paymentMethod": "Invoice", - "buyingParty": { - "partyId": "ABCD" - }, - "sellingParty": { - "partyId": "999US" - }, - "shipToParty": { - "partyId": "ABCD" - }, - "billToParty": { - "partyId": "ABCD" - }, - "shipWindow": "2020-05-27T07:00:00Z--2020-05-30T07:00:00Z", - "items": [ - { - "itemSequenceNumber": "1", - "amazonProductIdentifier": "B01XYZ3Z00", - "vendorProductIdentifier": "8806093095123", - "orderedQuantity": { - "amount": 0, - "unitOfMeasure": "Eaches", - "unitSize": 1 - }, - "isBackOrderAllowed": true, - "netCost": { - "currencyCode": "USD", - "amount": "70" - }, - "listPrice": { - "currencyCode": "USD", - "amount": "70" - } + "orders": [ + { + "purchaseOrderNumber": "2JK3S9VC", + "purchaseOrderState": "New", + "orderDetails": { + "purchaseOrderDate": "2019-08-20T15:51:00Z", + "purchaseOrderChangedDate": "2019-08-22T16:05:00Z", + "purchaseOrderStateChangedDate": "2019-08-20T15:51:00Z", + "purchaseOrderType": "RegularOrder", + "paymentMethod": "Invoice", + "buyingParty": { + "partyId": "ABCD" }, - { - "itemSequenceNumber": "2", - "amazonProductIdentifier": "B01XYZ3Z01", - "vendorProductIdentifier": "8806098095124", - "orderedQuantity": { - "amount": 10, - "unitOfMeasure": "Eaches", - "unitSize": 1 - }, - "isBackOrderAllowed": true, - "netCost": { - "currencyCode": "USD", - "amount": "15" - }, - "listPrice": { - "currencyCode": "USD", - "amount": "15" - } - } - ] - } - } - ] - } - } - }, - { - "request": { - "parameters": { - "changedBefore": { - "value": "2020-05-25T13:00:00" - }, - "changedAfter": { - "value": "2020-05-27T13:00:00" - }, - "poItemState": { - "value": "Cancelled" - } - } - }, - "response": { - "payload": { - "orders": [ - { - "purchaseOrderNumber": "TestPO1", - "purchaseOrderState": "Acknowledged", - "orderDetails": { - "purchaseOrderDate": "2020-05-26T18:49:20Z", - "purchaseOrderChangedDate": "2020-05-27T06:30:00Z", - "purchaseOrderStateChangedDate": "2020-05-26T19:10:00Z", - "purchaseOrderType": "RegularOrder", - "paymentMethod": "Invoice", - "buyingParty": { - "partyId": "ABCD" - }, - "sellingParty": { - "partyId": "999US" - }, - "shipToParty": { - "partyId": "ABCD" - }, - "billToParty": { - "partyId": "ABCD" - }, - "shipWindow": "2020-05-27T07:00:00Z--2020-05-29T07:00:00Z", - "items": [ - { - "itemSequenceNumber": "1", - "amazonProductIdentifier": "B01XYZ3Z00", - "vendorProductIdentifier": "8806098095123", - "orderedQuantity": { - "amount": 0, - "unitOfMeasure": "Eaches", - "unitSize": 1 - }, - "isBackOrderAllowed": true, - "netCost": { - "currencyCode": "USD", - "amount": "70" - }, - "listPrice": { - "currencyCode": "USD", - "amount": "70" - } + "sellingParty": { + "partyId": "999US" }, - { - "itemSequenceNumber": "2", - "amazonProductIdentifier": "B01XYZ3Z01", - "vendorProductIdentifier": "8806098095124", - "orderedQuantity": { - "amount": 10, - "unitOfMeasure": "Eaches", - "unitSize": 1 + "shipToParty": { + "partyId": "ABCD" + }, + "billToParty": { + "partyId": "ABCD" + }, + "shipWindow": "2019-08-21T07:00:00Z--2019-08-27T07:00:00Z", + "items": [ + { + "itemSequenceNumber": "1", + "amazonProductIdentifier": "B07DFVDRAB", + "vendorProductIdentifier": "8806098286500", + "orderedQuantity": { + "amount": 1, + "unitOfMeasure": "Eaches", + "unitSize": 1 + }, + "isBackOrderAllowed": false, + "netCost": { + "amount": "346.27", + "currencyCode": "USD" + }, + "listPrice": { + "amount": "346.27", + "currencyCode": "USD" + } }, - "isBackOrderAllowed": true, - "netCost": { - "currencyCode": "USD", - "amount": "15" + { + "itemSequenceNumber": "2", + "amazonProductIdentifier": "B07DFYF5AB", + "vendorProductIdentifier": "8806098286123", + "orderedQuantity": { + "amount": 2, + "unitOfMeasure": "Eaches", + "unitSize": 1 + }, + "isBackOrderAllowed": false, + "netCost": { + "amount": "229.47", + "currencyCode": "USD" + }, + "listPrice": { + "amount": "229.47", + "currencyCode": "USD" + } }, - "listPrice": { - "currencyCode": "USD", - "amount": "15" + { + "itemSequenceNumber": "3", + "amazonProductIdentifier": "B07MC84QAB", + "vendorProductIdentifier": "8806098095123", + "orderedQuantity": { + "amount": 13, + "unitOfMeasure": "Eaches", + "unitSize": 1 + }, + "isBackOrderAllowed": false, + "netCost": { + "amount": "412.71", + "currencyCode": "USD" + }, + "listPrice": { + "amount": "412.71", + "currencyCode": "USD" + } } - } - ] + ] + } + }, + { + "purchaseOrderNumber": "3TRD2IAB", + "purchaseOrderState": "New", + "orderDetails": { + "purchaseOrderDate": "2019-08-20T16:29:00Z", + "purchaseOrderChangedDate": "2019-08-20T16:50:00Z", + "purchaseOrderStateChangedDate": "2019-08-20T16:29:00Z", + "purchaseOrderType": "RegularOrder", + "importDetails": { + "importContainers": "2-20'HC,1-45',1-45'HC", + "internationalCommercialTerms": "FreeOnBoard", + "methodOfPayment": "PrepaidBySeller", + "portOfDelivery": "INDIA", + "shippingInstructions": "PREFERENCE IS PALLET-LOAD, BUT IF CONTAINERS ARE FLOOR-LOADED" + }, + "paymentMethod": "Invoice", + "buyingParty": { + "partyId": "ABC1" + }, + "sellingParty": { + "partyId": "998US" + }, + "shipToParty": { + "partyId": "ABC1" + }, + "billToParty": { + "partyId": "ABC1" + }, + "shipWindow": "2019-08-21T07:00:00Z--2019-08-27T07:00:00Z", + "items": [ + { + "itemSequenceNumber": "1", + "amazonProductIdentifier": "B01LNRIIAB", + "vendorProductIdentifier": "B01LNRIIAB", + "orderedQuantity": { + "amount": 5, + "unitOfMeasure": "CASES", + "unitSize": 10 + }, + "isBackOrderAllowed": true, + "netCost": { + "amount": "94.97", + "currencyCode": "USD" + }, + "listPrice": { + "amount": "94.97", + "currencyCode": "USD" + } + } + ] + } } - } - ] - } - } - }, - { - "request": { - "parameters": { - "createdBefore": { - "value": "2020-05-26T13:00:00" - }, - "createdAfter": { - "value": "2020-05-25T13:00:00" - }, - "isPOChanged": { - "value": "true" + ] } } }, - "response": { - "payload": { - "orders": [ - { - "purchaseOrderNumber": "TestPO2", - "purchaseOrderState": "New", - "orderDetails": { - "purchaseOrderDate": "2020-05-25T19:29:23Z", - "purchaseOrderChangedDate": "2020-05-26T16:00:00Z", - "purchaseOrderStateChangedDate": "2020-05-25T19:29:23Z", - "purchaseOrderType": "RegularOrder", - "paymentMethod": "Invoice", - "buyingParty": { - "partyId": "ABCD" - }, - "sellingParty": { - "partyId": "API01" - }, - "shipToParty": { - "partyId": "ABCD" - }, - "billToParty": { - "partyId": "ABCD" - }, - "shipWindow": "2020-05-26T07:00:00Z--2020-05-29T07:00:00Z", - "items": [ - { - "itemSequenceNumber": "1", - "amazonProductIdentifier": "B01XYZ3Z00", - "vendorProductIdentifier": "8806093095123", - "orderedQuantity": { - "amount": 20, - "unitOfMeasure": "Eaches", - "unitSize": 1 - }, - "isBackOrderAllowed": true, - "netCost": { - "currencyCode": "USD", - "amount": "70" - }, - "listPrice": { - "currencyCode": "USD", - "amount": "70" - } - } - ] - } - } - ] - } - } - }, - { - "request": { - "parameters": { - "createdBefore": { - "value": "2020-05-27T13:00:00" - }, - "createdAfter": { - "value": "2020-05-25T13:00:00" - }, - "purchaseOrderState": { - "value": "New" - }, - "orderingVendorCode": { - "value": "API01" - } - } - }, - "response": { - "payload": { - "orders": [ - { - "purchaseOrderNumber": "TestPO2", - "purchaseOrderState": "New", - "orderDetails": { - "purchaseOrderDate": "2020-05-25T19:29:23Z", - "purchaseOrderChangedDate": "2020-05-26T06:00:00Z", - "purchaseOrderStateChangedDate": "2020-05-25T19:29:23Z", - "purchaseOrderType": "RegularOrder", - "paymentMethod": "Invoice", - "buyingParty": { - "partyId": "ABCD" - }, - "sellingParty": { - "partyId": "API01" - }, - "shipToParty": { - "partyId": "ABCD" - }, - "billToParty": { - "partyId": "ABCD" - }, - "shipWindow": "2020-05-26T07:00:00Z--2020-05-29T07:00:00Z", - "items": [ - { - "itemSequenceNumber": "1", - "amazonProductIdentifier": "B01XYZ3Z00", - "vendorProductIdentifier": "8806093095123", - "orderedQuantity": { - "amount": 20, - "unitOfMeasure": "Eaches", - "unitSize": 1 - }, - "isBackOrderAllowed": true, - "netCost": { - "currencyCode": "USD", - "amount": "70" - }, - "listPrice": { - "currencyCode": "USD", - "amount": "70" - } - } - ] - } + { + "request": { + "parameters": { + "createdBefore": { + "value": "2019-08-21T00:00:00" }, - { - "purchaseOrderNumber": "TestPO3", - "purchaseOrderState": "New", - "orderDetails": { - "purchaseOrderDate": "2020-05-26T18:05:23Z", - "purchaseOrderStateChangedDate": "2020-05-26T18:05:23Z", - "purchaseOrderType": "RegularOrder", - "paymentMethod": "Invoice", - "buyingParty": { - "partyId": "ABCF" - }, - "sellingParty": { - "partyId": "API01" - }, - "shipToParty": { - "partyId": "ABCF" - }, - "billToParty": { - "partyId": "ABCF" - }, - "shipWindow": "2020-05-26T07:00:00Z--2020-06-03T07:00:00Z", - "items": [ - { - "itemSequenceNumber": "1", - "amazonProductIdentifier": "B01XYZ3Z02", - "vendorProductIdentifier": "8806093095125", - "orderedQuantity": { - "amount": 10, - "unitOfMeasure": "Eaches", - "unitSize": 1 - }, - "isBackOrderAllowed": true, - "netCost": { - "currencyCode": "USD", - "amount": "50" - }, - "listPrice": { - "currencyCode": "USD", - "amount": "50" - } - } - ] - } - } - ] - } - } - }, - { - "request": { - "parameters": {} - }, - "response": { - "payload": { - "pagination": { - "nextToken": "MDAwMDAwMDAwMQ==" - }, - "orders": [ - { - "purchaseOrderNumber": "mock-purchaseOrderNumber1", - "orderDetails": { - "purchaseOrderDate": "2019-08-14T13:51:00Z", - "purchaseOrderType": "RegularOrder", - "paymentMethod": "Invoice", - "buyingParty": { - "partyId": "ABCD" - }, - "sellingParty": { - "partyId": "999US" - }, - "shipToParty": { - "partyId": "ABCD" - }, - "billToParty": { - "partyId": "ABCD" - }, - "items": [ - { - "itemSequenceNumber": "00001", - "amazonProductIdentifier": "B07DFVDRAB", - "vendorProductIdentifier": "8806098286500", - "orderedQuantity": { - "amount": 1, - "unitOfMeasure": "Eaches", - "unitSize": 1 - }, - "isBackOrderAllowed": false, - "listPrice": { - "amount": "34366.27", - "currencyCode": "INR" - } - }, - { - "itemSequenceNumber": "00002", - "amazonProductIdentifier": "B07DFYF5AB", - "vendorProductIdentifier": "8806098286123", - "orderedQuantity": { - "amount": 2, - "unitOfMeasure": "Eaches", - "unitSize": 1 - }, - "isBackOrderAllowed": false, - "listPrice": { - "amount": "22798.47", - "currencyCode": "INR" - } - }, - { - "itemSequenceNumber": "00003", - "amazonProductIdentifier": "B07MC84QAB", - "vendorProductIdentifier": "8806098095123", - "orderedQuantity": { - "amount": 13, - "unitOfMeasure": "Eaches", - "unitSize": 1 - }, - "isBackOrderAllowed": false, - "listPrice": { - "amount": "4362.71", - "currencyCode": "INR" - } - } - ] - } + "createdAfter": { + "value": "2019-08-20T14:00:00" }, - { - "purchaseOrderNumber": "mock-purchaseOrderNumber2", - "orderDetails": { - "purchaseOrderDate": "2019-08-13T06:29:00Z", - "purchaseOrderType": "RegularOrder", - "importDetails": { - "importContainers": "2-20'HC,1-45',1-45'HC", - "internationalCommercialTerms": "FreeOnBoard", - "methodOfPayment": "PrepaidBySeller", - "portOfDelivery": "INDIA", - "shippingInstructions": "PREFERENCE IS PALLET-LOAD, BUT IF CONTAINERS ARE FLOOR-LOADED" - }, - "paymentMethod": "Invoice", - "buyingParty": { - "partyId": "ABC1" - }, - "sellingParty": { - "partyId": "999US" - }, - "shipToParty": { - "partyId": "ABC1" - }, - "billToParty": { - "partyId": "ABC1" - }, - "items": [ - { - "itemSequenceNumber": "00001", - "amazonProductIdentifier": "B01LNRIIAB", - "vendorProductIdentifier": "B01LNRIIAB", - "orderedQuantity": { - "amount": 24, - "unitOfMeasure": "Cases", - "unitSize": 5 - }, - "isBackOrderAllowed": true, - "netCost": { - "amount": "94.97", - "currencyCode": "INR" - } - } - ] - } + "includeDetails": { + "value": "false" + }, + "sortOrder": { + "value": "DESC" + }, + "nextToken": { + "value": "MDAwMDAwMDAwMQ==" } - ] + } + }, + "response": { + "payload": { + "orders": [ + { + "purchaseOrderNumber": "2JK3S9XY", + "purchaseOrderState": "New" + }, + { + "purchaseOrderNumber": "3TRD2ABC", + "purchaseOrderState": "Acknowledged" + } + ] + } + } + }, + { + "request": { + "parameters": { + "changedBefore": { + "value": "2020-05-27T13:00:00" + }, + "changedAfter": { + "value": "2020-05-25T13:00:00" + } + } + }, + "response": { + "payload": { + "orders": [ + { + "purchaseOrderNumber": "TestPO2", + "purchaseOrderState": "New", + "orderDetails": { + "purchaseOrderDate": "2020-05-25T19:29:23Z", + "purchaseOrderChangedDate": "2020-05-26T16:00:00Z", + "purchaseOrderStateChangedDate": "2020-05-25T19:29:23Z", + "purchaseOrderType": "RegularOrder", + "paymentMethod": "Invoice", + "buyingParty": { + "partyId": "ABCD" + }, + "sellingParty": { + "partyId": "API01" + }, + "shipToParty": { + "partyId": "ABCD" + }, + "billToParty": { + "partyId": "ABCD" + }, + "shipWindow": "2020-05-26T07:00:00Z--2020-05-29T07:00:00Z", + "items": [ + { + "itemSequenceNumber": "1", + "amazonProductIdentifier": "B01XYZ3Z00", + "vendorProductIdentifier": "8806093095123", + "orderedQuantity": { + "amount": 20, + "unitOfMeasure": "Eaches", + "unitSize": 1 + }, + "isBackOrderAllowed": true, + "netCost": { + "currencyCode": "USD", + "amount": "70" + }, + "listPrice": { + "currencyCode": "USD", + "amount": "70" + } + } + ] + } + }, + { + "purchaseOrderNumber": "TestPO1", + "purchaseOrderState": "Acknowledged", + "orderDetails": { + "purchaseOrderDate": "2020-05-26T18:49:20Z", + "purchaseOrderChangedDate": "2020-05-27T06:30:00Z", + "purchaseOrderStateChangedDate": "2020-05-26T19:10:00Z", + "purchaseOrderType": "RegularOrder", + "paymentMethod": "Invoice", + "buyingParty": { + "partyId": "ABCD" + }, + "sellingParty": { + "partyId": "999US" + }, + "shipToParty": { + "partyId": "ABCD" + }, + "billToParty": { + "partyId": "ABCD" + }, + "shipWindow": "2020-05-27T07:00:00Z--2020-05-30T07:00:00Z", + "items": [ + { + "itemSequenceNumber": "1", + "amazonProductIdentifier": "B01XYZ3Z00", + "vendorProductIdentifier": "8806093095123", + "orderedQuantity": { + "amount": 0, + "unitOfMeasure": "Eaches", + "unitSize": 1 + }, + "isBackOrderAllowed": true, + "netCost": { + "currencyCode": "USD", + "amount": "70" + }, + "listPrice": { + "currencyCode": "USD", + "amount": "70" + } + }, + { + "itemSequenceNumber": "2", + "amazonProductIdentifier": "B01XYZ3Z01", + "vendorProductIdentifier": "8806098095124", + "orderedQuantity": { + "amount": 10, + "unitOfMeasure": "Eaches", + "unitSize": 1 + }, + "isBackOrderAllowed": true, + "netCost": { + "currencyCode": "USD", + "amount": "15" + }, + "listPrice": { + "currencyCode": "USD", + "amount": "15" + } + } + ] + } + } + ] + } + } + }, + { + "request": { + "parameters": { + "changedBefore": { + "value": "2020-05-25T13:00:00" + }, + "changedAfter": { + "value": "2020-05-27T13:00:00" + }, + "poItemState": { + "value": "Cancelled" + } + } + }, + "response": { + "payload": { + "orders": [ + { + "purchaseOrderNumber": "TestPO1", + "purchaseOrderState": "Acknowledged", + "orderDetails": { + "purchaseOrderDate": "2020-05-26T18:49:20Z", + "purchaseOrderChangedDate": "2020-05-27T06:30:00Z", + "purchaseOrderStateChangedDate": "2020-05-26T19:10:00Z", + "purchaseOrderType": "RegularOrder", + "paymentMethod": "Invoice", + "buyingParty": { + "partyId": "ABCD" + }, + "sellingParty": { + "partyId": "999US" + }, + "shipToParty": { + "partyId": "ABCD" + }, + "billToParty": { + "partyId": "ABCD" + }, + "shipWindow": "2020-05-27T07:00:00Z--2020-05-29T07:00:00Z", + "items": [ + { + "itemSequenceNumber": "1", + "amazonProductIdentifier": "B01XYZ3Z00", + "vendorProductIdentifier": "8806098095123", + "orderedQuantity": { + "amount": 0, + "unitOfMeasure": "Eaches", + "unitSize": 1 + }, + "isBackOrderAllowed": true, + "netCost": { + "currencyCode": "USD", + "amount": "70" + }, + "listPrice": { + "currencyCode": "USD", + "amount": "70" + } + }, + { + "itemSequenceNumber": "2", + "amazonProductIdentifier": "B01XYZ3Z01", + "vendorProductIdentifier": "8806098095124", + "orderedQuantity": { + "amount": 10, + "unitOfMeasure": "Eaches", + "unitSize": 1 + }, + "isBackOrderAllowed": true, + "netCost": { + "currencyCode": "USD", + "amount": "15" + }, + "listPrice": { + "currencyCode": "USD", + "amount": "15" + } + } + ] + } + } + ] + } + } + }, + { + "request": { + "parameters": { + "createdBefore": { + "value": "2020-05-26T13:00:00" + }, + "createdAfter": { + "value": "2020-05-25T13:00:00" + }, + "isPOChanged": { + "value": "true" + } + } + }, + "response": { + "payload": { + "orders": [ + { + "purchaseOrderNumber": "TestPO2", + "purchaseOrderState": "New", + "orderDetails": { + "purchaseOrderDate": "2020-05-25T19:29:23Z", + "purchaseOrderChangedDate": "2020-05-26T16:00:00Z", + "purchaseOrderStateChangedDate": "2020-05-25T19:29:23Z", + "purchaseOrderType": "RegularOrder", + "paymentMethod": "Invoice", + "buyingParty": { + "partyId": "ABCD" + }, + "sellingParty": { + "partyId": "API01" + }, + "shipToParty": { + "partyId": "ABCD" + }, + "billToParty": { + "partyId": "ABCD" + }, + "shipWindow": "2020-05-26T07:00:00Z--2020-05-29T07:00:00Z", + "items": [ + { + "itemSequenceNumber": "1", + "amazonProductIdentifier": "B01XYZ3Z00", + "vendorProductIdentifier": "8806093095123", + "orderedQuantity": { + "amount": 20, + "unitOfMeasure": "Eaches", + "unitSize": 1 + }, + "isBackOrderAllowed": true, + "netCost": { + "currencyCode": "USD", + "amount": "70" + }, + "listPrice": { + "currencyCode": "USD", + "amount": "70" + } + } + ] + } + } + ] + } + } + }, + { + "request": { + "parameters": { + "createdBefore": { + "value": "2020-05-27T13:00:00" + }, + "createdAfter": { + "value": "2020-05-25T13:00:00" + }, + "purchaseOrderState": { + "value": "New" + }, + "orderingVendorCode": { + "value": "API01" + } + } + }, + "response": { + "payload": { + "orders": [ + { + "purchaseOrderNumber": "TestPO2", + "purchaseOrderState": "New", + "orderDetails": { + "purchaseOrderDate": "2020-05-25T19:29:23Z", + "purchaseOrderChangedDate": "2020-05-26T06:00:00Z", + "purchaseOrderStateChangedDate": "2020-05-25T19:29:23Z", + "purchaseOrderType": "RegularOrder", + "paymentMethod": "Invoice", + "buyingParty": { + "partyId": "ABCD" + }, + "sellingParty": { + "partyId": "API01" + }, + "shipToParty": { + "partyId": "ABCD" + }, + "billToParty": { + "partyId": "ABCD" + }, + "shipWindow": "2020-05-26T07:00:00Z--2020-05-29T07:00:00Z", + "items": [ + { + "itemSequenceNumber": "1", + "amazonProductIdentifier": "B01XYZ3Z00", + "vendorProductIdentifier": "8806093095123", + "orderedQuantity": { + "amount": 20, + "unitOfMeasure": "Eaches", + "unitSize": 1 + }, + "isBackOrderAllowed": true, + "netCost": { + "currencyCode": "USD", + "amount": "70" + }, + "listPrice": { + "currencyCode": "USD", + "amount": "70" + } + } + ] + } + }, + { + "purchaseOrderNumber": "TestPO3", + "purchaseOrderState": "New", + "orderDetails": { + "purchaseOrderDate": "2020-05-26T18:05:23Z", + "purchaseOrderStateChangedDate": "2020-05-26T18:05:23Z", + "purchaseOrderType": "RegularOrder", + "paymentMethod": "Invoice", + "buyingParty": { + "partyId": "ABCF" + }, + "sellingParty": { + "partyId": "API01" + }, + "shipToParty": { + "partyId": "ABCF" + }, + "billToParty": { + "partyId": "ABCF" + }, + "shipWindow": "2020-05-26T07:00:00Z--2020-06-03T07:00:00Z", + "items": [ + { + "itemSequenceNumber": "1", + "amazonProductIdentifier": "B01XYZ3Z02", + "vendorProductIdentifier": "8806093095125", + "orderedQuantity": { + "amount": 10, + "unitOfMeasure": "Eaches", + "unitSize": 1 + }, + "isBackOrderAllowed": true, + "netCost": { + "currencyCode": "USD", + "amount": "50" + }, + "listPrice": { + "currencyCode": "USD", + "amount": "50" + } + } + ] + } + } + ] + } + } + }, + { + "request": { + "parameters": {} + }, + "response": { + "payload": { + "pagination": { + "nextToken": "MDAwMDAwMDAwMQ==" + }, + "orders": [ + { + "purchaseOrderNumber": "mock-purchaseOrderNumber1", + "orderDetails": { + "purchaseOrderDate": "2019-08-14T13:51:00Z", + "purchaseOrderType": "RegularOrder", + "paymentMethod": "Invoice", + "buyingParty": { + "partyId": "ABCD" + }, + "sellingParty": { + "partyId": "999US" + }, + "shipToParty": { + "partyId": "ABCD" + }, + "billToParty": { + "partyId": "ABCD" + }, + "items": [ + { + "itemSequenceNumber": "00001", + "amazonProductIdentifier": "B07DFVDRAB", + "vendorProductIdentifier": "8806098286500", + "orderedQuantity": { + "amount": 1, + "unitOfMeasure": "Eaches", + "unitSize": 1 + }, + "isBackOrderAllowed": false, + "listPrice": { + "amount": "34366.27", + "currencyCode": "INR" + } + }, + { + "itemSequenceNumber": "00002", + "amazonProductIdentifier": "B07DFYF5AB", + "vendorProductIdentifier": "8806098286123", + "orderedQuantity": { + "amount": 2, + "unitOfMeasure": "Eaches", + "unitSize": 1 + }, + "isBackOrderAllowed": false, + "listPrice": { + "amount": "22798.47", + "currencyCode": "INR" + } + }, + { + "itemSequenceNumber": "00003", + "amazonProductIdentifier": "B07MC84QAB", + "vendorProductIdentifier": "8806098095123", + "orderedQuantity": { + "amount": 13, + "unitOfMeasure": "Eaches", + "unitSize": 1 + }, + "isBackOrderAllowed": false, + "listPrice": { + "amount": "4362.71", + "currencyCode": "INR" + } + } + ] + } + }, + { + "purchaseOrderNumber": "mock-purchaseOrderNumber2", + "orderDetails": { + "purchaseOrderDate": "2019-08-13T06:29:00Z", + "purchaseOrderType": "RegularOrder", + "importDetails": { + "importContainers": "2-20'HC,1-45',1-45'HC", + "internationalCommercialTerms": "FreeOnBoard", + "methodOfPayment": "PrepaidBySeller", + "portOfDelivery": "INDIA", + "shippingInstructions": "PREFERENCE IS PALLET-LOAD, BUT IF CONTAINERS ARE FLOOR-LOADED" + }, + "paymentMethod": "Invoice", + "buyingParty": { + "partyId": "ABC1" + }, + "sellingParty": { + "partyId": "999US" + }, + "shipToParty": { + "partyId": "ABC1" + }, + "billToParty": { + "partyId": "ABC1" + }, + "items": [ + { + "itemSequenceNumber": "00001", + "amazonProductIdentifier": "B01LNRIIAB", + "vendorProductIdentifier": "B01LNRIIAB", + "orderedQuantity": { + "amount": 24, + "unitOfMeasure": "Cases", + "unitSize": 5 + }, + "isBackOrderAllowed": true, + "netCost": { + "amount": "94.97", + "currencyCode": "INR" + } + } + ] + } + } + ] + } } } - } ] } }, @@ -1035,7 +1035,7 @@ "value": "2019-08-20T14:00:00" } } - }, + }, "response": { "errors": [ { @@ -1240,163 +1240,163 @@ }, "response": { "payload": { - "purchaseOrderNumber": "4Z32PABC", - "purchaseOrderState": "Closed", - "orderDetails": { - "purchaseOrderDate": "2019-07-26T11:10:00Z", - "purchaseOrderStateChangedDate": "2019-08-25T19:29:23Z", - "purchaseOrderType": "RegularOrder", - "paymentMethod": "Invoice", - "buyingParty": { - "partyId": "ABCD" - }, - "sellingParty": { - "partyId": "999US" - }, - "shipToParty": { - "partyId": "ABCD" - }, - "billToParty": { - "partyId": "ABCD" - }, - "shipWindow": "2019-07-26T07:00:00Z--2019-08-03T07:00:00Z", - "items": [ - { - "itemSequenceNumber": "1", - "amazonProductIdentifier": "B0748G1ABC", - "vendorProductIdentifier": "0017817748000", - "orderedQuantity": { - "amount": 37, - "unitOfMeasure": "Eaches", - "unitSize": 1 - }, - "isBackOrderAllowed": false, - "netCost": { - "amount": "140", - "currencyCode": "USD" - }, - "listPrice": { - "amount": "140", - "currencyCode": "USD" - } + "purchaseOrderNumber": "4Z32PABC", + "purchaseOrderState": "Closed", + "orderDetails": { + "purchaseOrderDate": "2019-07-26T11:10:00Z", + "purchaseOrderStateChangedDate": "2019-08-25T19:29:23Z", + "purchaseOrderType": "RegularOrder", + "paymentMethod": "Invoice", + "buyingParty": { + "partyId": "ABCD" }, - { - "itemSequenceNumber": "2", - "amazonProductIdentifier": "B0748JMABC", - "vendorProductIdentifier": "0017817748000", - "orderedQuantity": { - "amount": 24, - "unitOfMeasure": "Eaches", - "unitSize": 1 - }, - "isBackOrderAllowed": false, - "netCost": { - "amount": "15.62", - "currencyCode": "USD" - }, - "listPrice": { - "amount": "15.62", - "currencyCode": "USD" - } + "sellingParty": { + "partyId": "999US" }, - { - "itemSequenceNumber": "3", - "amazonProductIdentifier": "B076SDSABC", - "vendorProductIdentifier": "0017817755000", - "orderedQuantity": { - "amount": 1, - "unitOfMeasure": "Eaches", - "unitSize": 1 + "shipToParty": { + "partyId": "ABCD" + }, + "billToParty": { + "partyId": "ABCD" + }, + "shipWindow": "2019-07-26T07:00:00Z--2019-08-03T07:00:00Z", + "items": [ + { + "itemSequenceNumber": "1", + "amazonProductIdentifier": "B0748G1ABC", + "vendorProductIdentifier": "0017817748000", + "orderedQuantity": { + "amount": 37, + "unitOfMeasure": "Eaches", + "unitSize": 1 + }, + "isBackOrderAllowed": false, + "netCost": { + "amount": "140", + "currencyCode": "USD" + }, + "listPrice": { + "amount": "140", + "currencyCode": "USD" + } }, - "isBackOrderAllowed": false, - "netCost": { - "amount": "110.00", - "currencyCode": "USD" + { + "itemSequenceNumber": "2", + "amazonProductIdentifier": "B0748JMABC", + "vendorProductIdentifier": "0017817748000", + "orderedQuantity": { + "amount": 24, + "unitOfMeasure": "Eaches", + "unitSize": 1 + }, + "isBackOrderAllowed": false, + "netCost": { + "amount": "15.62", + "currencyCode": "USD" + }, + "listPrice": { + "amount": "15.62", + "currencyCode": "USD" + } }, - "listPrice": { - "amount": "110.00", - "currencyCode": "USD" + { + "itemSequenceNumber": "3", + "amazonProductIdentifier": "B076SDSABC", + "vendorProductIdentifier": "0017817755000", + "orderedQuantity": { + "amount": 1, + "unitOfMeasure": "Eaches", + "unitSize": 1 + }, + "isBackOrderAllowed": false, + "netCost": { + "amount": "110.00", + "currencyCode": "USD" + }, + "listPrice": { + "amount": "110.00", + "currencyCode": "USD" + } } - } - ] + ] + } } } - } - }, - { - "request": { - "parameters": {} }, - "response": { - "payload": { - "purchaseOrderNumber": "mock-purchaseOrderNumber", - "orderDetails": { - "purchaseOrderDate": "2019-07-26T11:10:00Z", - "purchaseOrderType": "RegularOrder", - "paymentMethod": "Invoice", - "buyingParty": { - "partyId": "ABCD" - }, - "sellingParty": { - "partyId": "999US" - }, - "shipToParty": { - "partyId": "ABCD" - }, - "billToParty": { - "partyId": "ABCD" - }, - "items": [ - { - "itemSequenceNumber": "00001", - "amazonProductIdentifier": "B0748G1ABC", - "vendorProductIdentifier": "0017817748000", - "orderedQuantity": { - "amount": 37, - "unitOfMeasure": "Eaches", - "unitSize": 1 - }, - "isBackOrderAllowed": false, - "netCost": { - "amount": "14162.00", - "currencyCode": "INR" - } + { + "request": { + "parameters": {} + }, + "response": { + "payload": { + "purchaseOrderNumber": "mock-purchaseOrderNumber", + "orderDetails": { + "purchaseOrderDate": "2019-07-26T11:10:00Z", + "purchaseOrderType": "RegularOrder", + "paymentMethod": "Invoice", + "buyingParty": { + "partyId": "ABCD" }, - { - "itemSequenceNumber": "00002", - "amazonProductIdentifier": "B0748JMABC", - "vendorProductIdentifier": "0017817748000", - "orderedQuantity": { - "amount": 24, - "unitOfMeasure": "Eaches", - "unitSize": 1 - }, - "isBackOrderAllowed": false, - "netCost": { - "amount": "14162.00", - "currencyCode": "INR" - } + "sellingParty": { + "partyId": "999US" }, - { - "itemSequenceNumber": "00003", - "amazonProductIdentifier": "B076SDSABC", - "vendorProductIdentifier": "0017817755000", - "orderedQuantity": { - "amount": 1, - "unitOfMeasure": "Eaches", - "unitSize": 1 + "shipToParty": { + "partyId": "ABCD" + }, + "billToParty": { + "partyId": "ABCD" + }, + "items": [ + { + "itemSequenceNumber": "00001", + "amazonProductIdentifier": "B0748G1ABC", + "vendorProductIdentifier": "0017817748000", + "orderedQuantity": { + "amount": 37, + "unitOfMeasure": "Eaches", + "unitSize": 1 + }, + "isBackOrderAllowed": false, + "netCost": { + "amount": "14162.00", + "currencyCode": "INR" + } }, - "isBackOrderAllowed": false, - "netCost": { - "amount": "14162.00", - "currencyCode": "INR" + { + "itemSequenceNumber": "00002", + "amazonProductIdentifier": "B0748JMABC", + "vendorProductIdentifier": "0017817748000", + "orderedQuantity": { + "amount": 24, + "unitOfMeasure": "Eaches", + "unitSize": 1 + }, + "isBackOrderAllowed": false, + "netCost": { + "amount": "14162.00", + "currencyCode": "INR" + } + }, + { + "itemSequenceNumber": "00003", + "amazonProductIdentifier": "B076SDSABC", + "vendorProductIdentifier": "0017817755000", + "orderedQuantity": { + "amount": 1, + "unitOfMeasure": "Eaches", + "unitSize": 1 + }, + "isBackOrderAllowed": false, + "netCost": { + "amount": "14162.00", + "currencyCode": "INR" + } } - } - ] + ] + } } } } - } ] } }, @@ -1568,50 +1568,48 @@ "schema": { "$ref": "#/definitions/SubmitAcknowledgementRequest", "example": { - "payload": { - "acknowledgements": [ - { - "purchaseOrderNumber": "L8266355", - "sellingParty": { - "partyId": "999US" - }, - "acknowledgementDate": "2019-07-17T19:17:34.304Z", - "items": [ - { - "itemSequenceNumber": "1", - "amazonProductIdentifier": "ABC123434", - "vendorProductIdentifier": "028877454078", - "orderedQuantity": { - "amount": 10, - "unitOfMeasure": "Cases" - }, - "netCost": { - "currencyCode": "USD", - "amount": "10.2" - }, - "listPrice": { - "currencyCode": "USD", - "amount": "22.2" - }, - "discountMultiplier": "0.44", - "itemAcknowledgements": [ - { - "acknowledgementCode": "Rejected", - "acknowledgedQuantity": { - "amount": 6, - "unitOfMeasure": "Cases", - "unitSize": 2 - }, - "scheduledShipDate": "2019-07-17T19:17:34.304Z", - "scheduledDeliveryDate": "2019-07-17T19:17:34.304Z", - "rejectionReason": "TemporarilyUnavailable" - } - ] - } - ] - } - ] - } + "acknowledgements": [ + { + "purchaseOrderNumber": "L8266355", + "sellingParty": { + "partyId": "999US" + }, + "acknowledgementDate": "2019-07-17T19:17:34.304Z", + "items": [ + { + "itemSequenceNumber": "1", + "amazonProductIdentifier": "ABC123434", + "vendorProductIdentifier": "028877454078", + "orderedQuantity": { + "amount": 10, + "unitOfMeasure": "Cases" + }, + "netCost": { + "currencyCode": "USD", + "amount": "18.0" + }, + "listPrice": { + "currencyCode": "USD", + "amount": "22.2" + }, + "discountMultiplier": "0.44", + "itemAcknowledgements": [ + { + "acknowledgementCode": "Rejected", + "acknowledgedQuantity": { + "amount": 6, + "unitOfMeasure": "Cases", + "unitSize": 2 + }, + "scheduledShipDate": "2019-07-17T19:17:34.304Z", + "scheduledDeliveryDate": "2019-07-17T19:17:34.304Z", + "rejectionReason": "TemporarilyUnavailable" + } + ] + } + ] + } + ] } } } @@ -1651,51 +1649,51 @@ "purchaseOrderNumber": "TestOrder202", "sellingParty": { "partyId": "API01" - }, - "acknowledgementDate": "2021-03-12T17:35:26.308Z", - "items": [ - { - "vendorProductIdentifier": "028877454078", - "orderedQuantity": { - "amount": 10 - }, - "netCost": { - "amount": "10.2" - }, - "itemAcknowledgements": [ - { - "acknowledgementCode": "Accepted", - "acknowledgedQuantity": { - "amount": 10 + }, + "acknowledgementDate": "2021-03-12T17:35:26.308Z", + "items": [ + { + "vendorProductIdentifier": "028877454078", + "orderedQuantity": { + "amount": 10 + }, + "netCost": { + "amount": "10.2" + }, + "itemAcknowledgements": [ + { + "acknowledgementCode": "Accepted", + "acknowledgedQuantity": { + "amount": 10 + } } - } - ] - } - ] - } - ] + ] + } + ] + } + ] + } } } + }, + "response": { + "payload": { + "transactionId": "20190827182357-8725bde9-c61c-49f9-86ac-46efd82d4da5" + } } }, - "response": { - "payload": { - "transactionId": "20190827182357-8725bde9-c61c-49f9-86ac-46efd82d4da5" + { + "request": { + "parameters": { + "body": {} + } + }, + "response": { + "payload": { + "transactionId": "mock-TransactionId-20190827182357-8725bde9-c61c-49f9-86ac-46efd82d4da5" + } } } - }, - { - "request": { - "parameters": { - "body": {} - } - }, - "response": { - "payload": { - "transactionId": "mock-TransactionId-20190827182357-8725bde9-c61c-49f9-86ac-46efd82d4da5" - } - } - } ] } }, @@ -1726,11 +1724,11 @@ "purchaseOrderNumber": "TestOrder400", "sellingParty": {} } - ] + ] + } } } - } - }, + }, "response": { "errors": [ { @@ -1968,7 +1966,7 @@ { "name": "itemConfirmationStatus", "in": "query", - "description": "Filters purchase orders based on the specified purchase order item status. If not included in filter, purchase orders for all statuses are included.", + "description": "Filters purchase orders based on their item confirmation status. If the item confirmation status is not included in the filter, purchase orders for all confirmation statuses are included.", "required": false, "type": "string", "enum": [ @@ -1980,19 +1978,45 @@ "x-docgen-enum-table-extension": [ { "value": "ACCEPTED", - "description": "Status for orders accepted by vendors." + "description": "Provides a list of orders that has at least one item fully accepted by vendors." }, { "value": "PARTIALLY_ACCEPTED", - "description": "Status for orders that are partially accepted by vendors." + "description": "Provides a list of orders that has at least one item partially accepted by vendors." }, { "value": "REJECTED", - "description": "Status for orders that are rejected by vendors." + "description": "Provides a list of orders that has at least one item rejected by vendors." }, { "value": "UNCONFIRMED", - "description": "Status for orders that are yet to be confirmed by vendors." + "description": "Provides a list of orders that has at least one item yet to be confirmed by vendors." + } + ] + }, + { + "name": "itemReceiveStatus", + "in": "query", + "description": "Filters purchase orders based on the purchase order's item receive status. If the item receive status is not included in the filter, purchase orders for all receive statuses are included.", + "required": false, + "type": "string", + "enum": [ + "NOT_RECEIVED", + "PARTIALLY_RECEIVED", + "RECEIVED" + ], + "x-docgen-enum-table-extension": [ + { + "value": "NOT_RECEIVED", + "description": "Provides a list of orders that have at least one item not received by the buyer." + }, + { + "value": "PARTIALLY_RECEIVED", + "description": "Provides a list of orders that have at least one item not received by the buyer." + }, + { + "value": "RECEIVED", + "description": "Provides a list of orders that have at least one item fully received by the buyer." } ] }, @@ -2039,562 +2063,628 @@ "value": "2020-08-17T14:00:00" }, "limit": { - "value": 1 - } - } - }, - "response": { - "payload": { - "pagination": { - "nextToken": "MDAwMDAwMDAwMZ==" - }, - "ordersStatus": [ - { - "purchaseOrderNumber": "2JK3S9VB", - "purchaseOrderStatus": "OPEN", - "purchaseOrderDate": "2020-08-17T20:24:58.193Z", - "lastUpdatedDate": "2020-08-17T21:05:58.193Z", - "sellingParty": { - "partyId": "999US" - }, - "shipToParty": { - "partyId": "ABCD" - }, - "itemStatus": [ - { - "itemSequenceNumber": "1", - "buyerProductIdentifier": "B07DFVDRAB", - "vendorProductIdentifier": "8806098286500", - "netCost": { - "amount": "346.27", - "currencyCode": "USD" - }, - "listPrice": { - "amount": "346.27", - "currencyCode": "USD" - }, - "orderedQuantity": { - "orderedQuantity": { - "amount": 1, - "unitOfMeasure": "Eaches", - "unitSize": 1 - }, - "orderedQuantityDetails": [ - { - "updatedDate": "2020-08-17T20:24:58.193Z", - "orderedQuantity": { - "amount": 1, - "unitOfMeasure": "Eaches", - "unitSize": 1 - } - } - ] - }, - "acknowledgementStatus": { - "confirmationStatus": "ACCEPTED", - "acceptedQuantity": { - "amount": 1, - "unitOfMeasure": "Eaches", - "unitSize": 1 - }, - "rejectedQuantity": { - "amount": 0, - "unitOfMeasure": "Eaches", - "unitSize": 1 - }, - "acknowledgementStatusDetails": [ - { - "acknowledgementDate": "2020-08-17T21:05:58.193Z", - "acceptedQuantity": { - "amount": 1, - "unitOfMeasure": "Eaches", - "unitSize": 1 - }, - "rejectedQuantity": { - "amount": 0, - "unitOfMeasure": "Eaches", - "unitSize": 1 - } - } - ] - } - }, - { - "itemSequenceNumber": "2", - "buyerProductIdentifier": "B07DFYF5AB", - "vendorProductIdentifier": "8806098286123", - "netCost": { - "amount": "229.47", - "currencyCode": "USD" - }, - "listPrice": { - "amount": "229.47", - "currencyCode": "USD" - }, - "orderedQuantity": { - "orderedQuantity": { - "amount": 20, - "unitOfMeasure": "Eaches", - "unitSize": 1 - }, - "orderedQuantityDetails": [ - { - "updatedDate": "2020-08-17T20:35:00.00Z", - "orderedQuantity": { - "amount": 5, - "unitOfMeasure": "Eaches", - "unitSize": 1 - } - }, - { - "updatedDate": "2020-08-17T20:24:58.193Z", - "orderedQuantity": { - "amount": 15, - "unitOfMeasure": "Eaches", - "unitSize": 1 - } - } - ] - }, - "acknowledgementStatus": { - "confirmationStatus": "PARTIALLY_ACCEPTED", - "acceptedQuantity": { - "amount": 15, - "unitOfMeasure": "Eaches", - "unitSize": 1 - }, - "rejectedQuantity": { - "amount": 5, - "unitOfMeasure": "Eaches", - "unitSize": 1 - }, - "acknowledgementStatusDetails": [ - { - "acknowledgementDate": "2020-08-17T21:05:58.193Z", - "acceptedQuantity": { - "amount": 15, - "unitOfMeasure": "Eaches", - "unitSize": 1 - }, - "rejectedQuantity": { - "amount": 5, - "unitOfMeasure": "Eaches", - "unitSize": 1 - } - } - ] - } - }, - { - "itemSequenceNumber": "3", - "buyerProductIdentifier": "B07DFYF5XY", - "vendorProductIdentifier": "8806098286789", - "netCost": { - "amount": "20", - "currencyCode": "USD" - }, - "listPrice": { - "amount": "20", - "currencyCode": "USD" - }, - "orderedQuantity": { - "orderedQuantity": { - "amount": 5, - "unitOfMeasure": "Eaches", - "unitSize": 1 - }, - "orderedQuantityDetails": [ - { - "updatedDate": "2020-08-17T20:24:58.193Z", - "orderedQuantity": { - "amount": 5, - "unitOfMeasure": "Eaches", - "unitSize": 1 - } - } - ] - }, - "acknowledgementStatus": { - "confirmationStatus": "REJECTED", - "acceptedQuantity": { - "amount": 0, - "unitOfMeasure": "Eaches", - "unitSize": 1 - }, - "rejectedQuantity": { - "amount": 5, - "unitOfMeasure": "Eaches", - "unitSize": 1 - }, - "acknowledgementStatusDetails": [ - { - "acknowledgementDate": "2020-08-17T21:05:58.193Z", - "rejectedQuantity": { - "amount": 5, - "unitOfMeasure": "Eaches", - "unitSize": 1 - } - } - ] - } - } - ] + "value": 1 } - ] - } - } - }, - { - "request": { - "parameters": { - "purchaseOrderNumber": { - "value": "TestPO2" } - } - }, - "response": { - "payload": { - "ordersStatus": [ - { - "purchaseOrderNumber": "TestPO2", - "purchaseOrderStatus": "OPEN", - "purchaseOrderDate": "2020-08-17T00:24:00.00Z", - "lastUpdatedDate": "2020-08-17T00:24:00.00Z", - "sellingParty": { - "partyId": "API01" - }, - "shipToParty": { - "partyId": "ABC09" - }, - "itemStatus": [ - { - "itemSequenceNumber": "1", - "buyerProductIdentifier": "B01XYZ3Z00", - "vendorProductIdentifier": "8806093095123", - "netCost": { - "currencyCode": "USD", - "amount": "70" - }, - "listPrice": { - "currencyCode": "USD", - "amount": "70" - }, - "orderedQuantity": { - "orderedQuantity": { - "amount": 10, - "unitOfMeasure": "Eaches", - "unitSize": 1 - }, - "orderedQuantityDetails": [ - { - "updatedDate": "2020-08-17T00:24:00.00Z", - "orderedQuantity": { - "amount": 10, - "unitOfMeasure": "Eaches", - "unitSize": 1 - } - } - ] - }, - "acknowledgementStatus": { - "confirmationStatus": "UNCONFIRMED", - "acceptedQuantity": { - "amount": 0, - "unitOfMeasure": "Eaches", - "unitSize": 1 - }, - "rejectedQuantity": { - "amount": 0, - "unitOfMeasure": "Eaches", - "unitSize": 1 - } - } - } - ] - } - ] - } - } - }, - { - "request": { - "parameters": { - "updatedBefore": { - "value": "2020-08-18T00:00:00.00Z" - }, - "updatedAfter": { - "value": "2020-08-16T00:00:00.00Z" - }, - "itemConfirmationStatus": { - "value": "UNCONFIRMED" - }, - "purchaseOrderStatus": { - "value": "OPEN" - } - } - }, - "response": { - "payload": { - "ordersStatus": [ - { - "purchaseOrderNumber": "TestPO2", - "purchaseOrderStatus": "OPEN", - "purchaseOrderDate": "2020-08-17T00:24:00.00Z", - "lastUpdatedDate": "2020-08-17T00:24:00.00Z", - "sellingParty": { - "partyId": "API01" - }, - "shipToParty": { - "partyId": "ABC09" - }, - "itemStatus": [ - { - "itemSequenceNumber": "1", - "buyerProductIdentifier": "B01XYZ3Z00", - "vendorProductIdentifier": "8806093095123", - "netCost": { - "currencyCode": "USD", - "amount": "70" - }, - "listPrice": { - "currencyCode": "USD", - "amount": "70" - }, - "orderedQuantity": { - "orderedQuantity": { - "amount": 10, - "unitOfMeasure": "Eaches", - "unitSize": 1 - }, - "orderedQuantityDetails": [ - { - "updatedDate": "2020-08-17T00:24:00.00Z", - "orderedQuantity": { - "amount": 10, - "unitOfMeasure": "Eaches", - "unitSize": 1 - } - } - ] - }, - "acknowledgementStatus": { - "confirmationStatus": "UNCONFIRMED", - "acceptedQuantity": { - "amount": 0, - "unitOfMeasure": "Eaches", - "unitSize": 1 - }, - "rejectedQuantity": { - "amount": 0, - "unitOfMeasure": "Eaches", - "unitSize": 1 - } - } - } - ] + }, + "response": { + "payload": { + "pagination": { + "nextToken": "MDAwMDAwMDAwMZ==" }, - { - "purchaseOrderNumber": "TestPO1", - "purchaseOrderStatus": "OPEN", - "purchaseOrderDate": "2020-08-15T05:24:00.00Z", - "lastUpdatedDate": "2020-08-17T05:07:00.00Z", - "sellingParty": { - "partyId": "API01" - }, - "shipToParty": { - "partyId": "ABC09" - }, - "itemStatus": [ - { - "itemSequenceNumber": "1", - "buyerProductIdentifier": "B01XYZ3Z123", - "vendorProductIdentifier": "8806093095999", - "netCost": { - "currencyCode": "USD", - "amount": "25" - }, - "listPrice": { - "currencyCode": "USD", - "amount": "25" - }, - "orderedQuantity": { + "ordersStatus": [ + { + "purchaseOrderNumber": "2JK3S9VB", + "purchaseOrderStatus": "OPEN", + "purchaseOrderDate": "2020-08-17T20:24:58.193Z", + "lastUpdatedDate": "2020-08-17T21:05:58.193Z", + "sellingParty": { + "partyId": "999US" + }, + "shipToParty": { + "partyId": "ABCD" + }, + "itemStatus": [ + { + "itemSequenceNumber": "1", + "buyerProductIdentifier": "B07DFVDRAB", + "vendorProductIdentifier": "8806098286500", + "netCost": { + "amount": "346.27", + "currencyCode": "USD" + }, + "listPrice": { + "amount": "346.27", + "currencyCode": "USD" + }, "orderedQuantity": { - "amount": 100, - "unitOfMeasure": "Eaches", - "unitSize": 1 - }, - "orderedQuantityDetails": [ - { - "updatedDate": "2020-08-17T05:07:00.00Z", - "cancelledQuantity": { - "amount": 50, - "unitOfMeasure": "Eaches", - "unitSize": 1 - } + "orderedQuantity": { + "amount": 1, + "unitOfMeasure": "Eaches", + "unitSize": 1 }, - { - "updatedDate": "2020-08-15T05:24:00.00Z", - "orderedQuantity": { - "amount": 150, - "unitOfMeasure": "Eaches", - "unitSize": 1 + "orderedQuantityDetails": [ + { + "updatedDate": "2020-08-17T20:24:58.193Z", + "orderedQuantity": { + "amount": 1, + "unitOfMeasure": "Eaches", + "unitSize": 1 + } } - } - ] - }, - "acknowledgementStatus": { - "confirmationStatus": "UNCONFIRMED", - "acceptedQuantity": { - "amount": 0, - "unitOfMeasure": "Eaches", - "unitSize": 1 + ] }, - "rejectedQuantity": { - "amount": 0, - "unitOfMeasure": "Eaches", - "unitSize": 1 + "acknowledgementStatus": { + "confirmationStatus": "ACCEPTED", + "acceptedQuantity": { + "amount": 1, + "unitOfMeasure": "Eaches", + "unitSize": 1 + }, + "rejectedQuantity": { + "amount": 0, + "unitOfMeasure": "Eaches", + "unitSize": 1 + }, + "acknowledgementStatusDetails": [ + { + "acknowledgementDate": "2020-08-17T21:05:58.193Z", + "acceptedQuantity": { + "amount": 1, + "unitOfMeasure": "Eaches", + "unitSize": 1 + }, + "rejectedQuantity": { + "amount": 0, + "unitOfMeasure": "Eaches", + "unitSize": 1 + } + } + ] + }, + "receivingStatus": { + "receiveStatus": "RECEIVED", + "receivedQuantity": { + "amount": 1, + "unitOfMeasure": "Cases", + "unitSize": 1 + }, + "lastReceiveDate": "2020-08-28T21:06:23.193Z" + } + }, + { + "itemSequenceNumber": "2", + "buyerProductIdentifier": "B07DFYF5AB", + "vendorProductIdentifier": "8806098286123", + "netCost": { + "amount": "229.47", + "currencyCode": "USD" + }, + "listPrice": { + "amount": "229.47", + "currencyCode": "USD" + }, + "orderedQuantity": { + "orderedQuantity": { + "amount": 20, + "unitOfMeasure": "Eaches", + "unitSize": 1 + }, + "orderedQuantityDetails": [ + { + "updatedDate": "2020-08-17T20:35:00.00Z", + "orderedQuantity": { + "amount": 5, + "unitOfMeasure": "Eaches", + "unitSize": 1 + } + }, + { + "updatedDate": "2020-08-17T20:24:58.193Z", + "orderedQuantity": { + "amount": 15, + "unitOfMeasure": "Eaches", + "unitSize": 1 + } + } + ] + }, + "acknowledgementStatus": { + "confirmationStatus": "PARTIALLY_ACCEPTED", + "acceptedQuantity": { + "amount": 15, + "unitOfMeasure": "Eaches", + "unitSize": 1 + }, + "rejectedQuantity": { + "amount": 5, + "unitOfMeasure": "Eaches", + "unitSize": 1 + }, + "acknowledgementStatusDetails": [ + { + "acknowledgementDate": "2020-08-17T21:05:58.193Z", + "acceptedQuantity": { + "amount": 15, + "unitOfMeasure": "Eaches", + "unitSize": 1 + }, + "rejectedQuantity": { + "amount": 5, + "unitOfMeasure": "Eaches", + "unitSize": 1 + } + } + ] + }, + "receivingStatus": { + "receiveStatus": "PARTIALLY_RECEIVED", + "receivedQuantity": { + "amount": 10, + "unitOfMeasure": "Eaches", + "unitSize": 1 + }, + "lastReceiveDate": "2020-08-30T21:05:58.193Z" + } + }, + { + "itemSequenceNumber": "3", + "buyerProductIdentifier": "B07DFYF5XY", + "vendorProductIdentifier": "8806098286789", + "netCost": { + "amount": "20", + "currencyCode": "USD" + }, + "listPrice": { + "amount": "20", + "currencyCode": "USD" + }, + "orderedQuantity": { + "orderedQuantity": { + "amount": 5, + "unitOfMeasure": "Eaches", + "unitSize": 1 + }, + "orderedQuantityDetails": [ + { + "updatedDate": "2020-08-17T20:24:58.193Z", + "orderedQuantity": { + "amount": 5, + "unitOfMeasure": "Eaches", + "unitSize": 1 + } + } + ] + }, + "acknowledgementStatus": { + "confirmationStatus": "REJECTED", + "acceptedQuantity": { + "amount": 0, + "unitOfMeasure": "Eaches", + "unitSize": 1 + }, + "rejectedQuantity": { + "amount": 5, + "unitOfMeasure": "Eaches", + "unitSize": 1 + }, + "acknowledgementStatusDetails": [ + { + "acknowledgementDate": "2020-08-17T21:05:58.193Z", + "rejectedQuantity": { + "amount": 5, + "unitOfMeasure": "Eaches", + "unitSize": 1 + } + } + ] + }, + "receivingStatus": { + "receiveStatus": "NOT_RECEIVED", + "receivedQuantity": { + "amount": 0, + "unitOfMeasure": "Eaches", + "unitSize": 1 + } } } - } - ] - } - ] + ] + } + ] + } } - } - }, - { - "request": { - "parameters": {} }, - "response": { - "payload": { - "ordersStatus": [ - { - "purchaseOrderNumber": "mock-purchaseOrderNumber1", - "purchaseOrderStatus": "OPEN", - "purchaseOrderDate": "2020-08-17T00:24:00.00Z", - "lastUpdatedDate": "2020-08-17T00:24:00.00Z", - "sellingParty": { - "partyId": "API01" - }, - "shipToParty": { - "partyId": "ABC09" - }, - "itemStatus": [ - { - "itemSequenceNumber": "1", - "buyerProductIdentifier": "B01XYZ3Z00", - "vendorProductIdentifier": "8806093095123", - "netCost": { - "currencyCode": "USD", - "amount": "70" - }, - "listPrice": { - "currencyCode": "USD", - "amount": "70" - }, - "orderedQuantity": { - "orderedQuantity": { - "amount": 10, - "unitOfMeasure": "Eaches", - "unitSize": 1 - }, - "orderedQuantityDetails": [ - { - "updatedDate": "2020-08-17T00:24:00.00Z", - "orderedQuantity": { - "amount": 10, - "unitOfMeasure": "Eaches", - "unitSize": 1 - } - } - ] - }, - "acknowledgementStatus": { - "confirmationStatus": "UNCONFIRMED", - "acceptedQuantity": { - "amount": 0, - "unitOfMeasure": "Eaches", - "unitSize": 1 - }, - "rejectedQuantity": { - "amount": 0, - "unitOfMeasure": "Eaches", - "unitSize": 1 - } - } - } - ] - }, - { - "purchaseOrderNumber": "mock-purchaseOrderNumber2", - "purchaseOrderStatus": "OPEN", - "purchaseOrderDate": "2020-08-15T05:24:00.00Z", - "lastUpdatedDate": "2020-08-17T05:07:00.00Z", - "sellingParty": { - "partyId": "API01" - }, - "shipToParty": { - "partyId": "ABC09" - }, - "itemStatus": [ - { - "itemSequenceNumber": "1", - "buyerProductIdentifier": "B01XYZ3Z123", - "vendorProductIdentifier": "8806093095999", - "netCost": { - "currencyCode": "USD", - "amount": "25" - }, - "listPrice": { - "currencyCode": "USD", - "amount": "25" - }, - "orderedQuantity": { - "orderedQuantity": { - "amount": 100, - "unitOfMeasure": "Eaches", - "unitSize": 1 - }, - "orderedQuantityDetails": [ - { - "updatedDate": "2020-08-17T05:07:00.00Z", - "cancelledQuantity": { - "amount": 50, - "unitOfMeasure": "Eaches", - "unitSize": 1 - } - }, - { - "updatedDate": "2020-08-15T05:24:00.00Z", - "orderedQuantity": { - "amount": 150, - "unitOfMeasure": "Eaches", - "unitSize": 1 - } - } - ] - }, - "acknowledgementStatus": { - "confirmationStatus": "UNCONFIRMED", - "acceptedQuantity": { - "amount": 0, - "unitOfMeasure": "Eaches", - "unitSize": 1 - }, - "rejectedQuantity": { - "amount": 0, - "unitOfMeasure": "Eaches", - "unitSize": 1 - } - } - } - ] + { + "request": { + "parameters": { + "purchaseOrderNumber": { + "value": "TestPO2" } - ] + } + }, + "response": { + "payload": { + "ordersStatus": [ + { + "purchaseOrderNumber": "TestPO2", + "purchaseOrderStatus": "OPEN", + "purchaseOrderDate": "2020-08-17T00:24:00.00Z", + "lastUpdatedDate": "2020-08-17T00:24:00.00Z", + "sellingParty": { + "partyId": "API01" + }, + "shipToParty": { + "partyId": "ABC09" + }, + "itemStatus": [ + { + "itemSequenceNumber": "1", + "buyerProductIdentifier": "B01XYZ3Z00", + "vendorProductIdentifier": "8806093095123", + "netCost": { + "currencyCode": "USD", + "amount": "70" + }, + "listPrice": { + "currencyCode": "USD", + "amount": "70" + }, + "orderedQuantity": { + "orderedQuantity": { + "amount": 10, + "unitOfMeasure": "Eaches", + "unitSize": 1 + }, + "orderedQuantityDetails": [ + { + "updatedDate": "2020-08-17T00:24:00.00Z", + "orderedQuantity": { + "amount": 10, + "unitOfMeasure": "Eaches", + "unitSize": 1 + } + } + ] + }, + "acknowledgementStatus": { + "confirmationStatus": "UNCONFIRMED", + "acceptedQuantity": { + "amount": 0, + "unitOfMeasure": "Eaches", + "unitSize": 1 + }, + "rejectedQuantity": { + "amount": 0, + "unitOfMeasure": "Eaches", + "unitSize": 1 + } + }, + "receivingStatus": { + "receiveStatus": "NOT_RECEIVED", + "receivedQuantity": { + "amount": 0, + "unitOfMeasure": "Eaches", + "unitSize": 1 + } + } + } + ] + } + ] + } + } + }, + { + "request": { + "parameters": { + "updatedBefore": { + "value": "2020-08-18T00:00:00.00Z" + }, + "updatedAfter": { + "value": "2020-08-16T00:00:00.00Z" + }, + "itemConfirmationStatus": { + "value": "UNCONFIRMED" + }, + "purchaseOrderStatus": { + "value": "OPEN" + } + } + }, + "response": { + "payload": { + "ordersStatus": [ + { + "purchaseOrderNumber": "TestPO2", + "purchaseOrderStatus": "OPEN", + "purchaseOrderDate": "2020-08-17T00:24:00.00Z", + "lastUpdatedDate": "2020-08-17T00:24:00.00Z", + "sellingParty": { + "partyId": "API01" + }, + "shipToParty": { + "partyId": "ABC09" + }, + "itemStatus": [ + { + "itemSequenceNumber": "1", + "buyerProductIdentifier": "B01XYZ3Z00", + "vendorProductIdentifier": "8806093095123", + "netCost": { + "currencyCode": "USD", + "amount": "70" + }, + "listPrice": { + "currencyCode": "USD", + "amount": "70" + }, + "orderedQuantity": { + "orderedQuantity": { + "amount": 10, + "unitOfMeasure": "Eaches", + "unitSize": 1 + }, + "orderedQuantityDetails": [ + { + "updatedDate": "2020-08-17T00:24:00.00Z", + "orderedQuantity": { + "amount": 10, + "unitOfMeasure": "Eaches", + "unitSize": 1 + } + } + ] + }, + "acknowledgementStatus": { + "confirmationStatus": "UNCONFIRMED", + "acceptedQuantity": { + "amount": 0, + "unitOfMeasure": "Eaches", + "unitSize": 1 + }, + "rejectedQuantity": { + "amount": 0, + "unitOfMeasure": "Eaches", + "unitSize": 1 + } + }, + "receivingStatus": { + "receiveStatus": "NOT_RECEIVED", + "receivedQuantity": { + "amount": 0, + "unitOfMeasure": "Eaches", + "unitSize": 1 + } + } + } + ] + }, + { + "purchaseOrderNumber": "TestPO1", + "purchaseOrderStatus": "OPEN", + "purchaseOrderDate": "2020-08-15T05:24:00.00Z", + "lastUpdatedDate": "2020-08-17T05:07:00.00Z", + "sellingParty": { + "partyId": "API01" + }, + "shipToParty": { + "partyId": "ABC09" + }, + "itemStatus": [ + { + "itemSequenceNumber": "1", + "buyerProductIdentifier": "B01XYZ3Z123", + "vendorProductIdentifier": "8806093095999", + "netCost": { + "currencyCode": "USD", + "amount": "25" + }, + "listPrice": { + "currencyCode": "USD", + "amount": "25" + }, + "orderedQuantity": { + "orderedQuantity": { + "amount": 100, + "unitOfMeasure": "Eaches", + "unitSize": 1 + }, + "orderedQuantityDetails": [ + { + "updatedDate": "2020-08-17T05:07:00.00Z", + "cancelledQuantity": { + "amount": 50, + "unitOfMeasure": "Eaches", + "unitSize": 1 + } + }, + { + "updatedDate": "2020-08-15T05:24:00.00Z", + "orderedQuantity": { + "amount": 150, + "unitOfMeasure": "Eaches", + "unitSize": 1 + } + } + ] + }, + "acknowledgementStatus": { + "confirmationStatus": "UNCONFIRMED", + "acceptedQuantity": { + "amount": 0, + "unitOfMeasure": "Eaches", + "unitSize": 1 + }, + "rejectedQuantity": { + "amount": 0, + "unitOfMeasure": "Eaches", + "unitSize": 1 + } + }, + "receivingStatus": { + "receiveStatus": "NOT_RECEIVED", + "receivedQuantity": { + "amount": 0, + "unitOfMeasure": "Eaches", + "unitSize": 1 + } + } + } + ] + } + ] + } + } + }, + { + "request": { + "parameters": {} + }, + "response": { + "payload": { + "ordersStatus": [ + { + "purchaseOrderNumber": "mock-purchaseOrderNumber1", + "purchaseOrderStatus": "OPEN", + "purchaseOrderDate": "2020-08-17T00:24:00.00Z", + "lastUpdatedDate": "2020-08-17T00:24:00.00Z", + "sellingParty": { + "partyId": "API01" + }, + "shipToParty": { + "partyId": "ABC09" + }, + "itemStatus": [ + { + "itemSequenceNumber": "1", + "buyerProductIdentifier": "B01XYZ3Z00", + "vendorProductIdentifier": "8806093095123", + "netCost": { + "currencyCode": "USD", + "amount": "70" + }, + "listPrice": { + "currencyCode": "USD", + "amount": "70" + }, + "orderedQuantity": { + "orderedQuantity": { + "amount": 10, + "unitOfMeasure": "Eaches", + "unitSize": 1 + }, + "orderedQuantityDetails": [ + { + "updatedDate": "2020-08-17T00:24:00.00Z", + "orderedQuantity": { + "amount": 10, + "unitOfMeasure": "Eaches", + "unitSize": 1 + } + } + ] + }, + "acknowledgementStatus": { + "confirmationStatus": "UNCONFIRMED", + "acceptedQuantity": { + "amount": 0, + "unitOfMeasure": "Eaches", + "unitSize": 1 + }, + "rejectedQuantity": { + "amount": 0, + "unitOfMeasure": "Eaches", + "unitSize": 1 + } + }, + "receivingStatus": { + "receiveStatus": "NOT_RECEIVED", + "receivedQuantity": { + "amount": 0, + "unitOfMeasure": "Eaches", + "unitSize": 1 + } + } + } + ] + }, + { + "purchaseOrderNumber": "mock-purchaseOrderNumber2", + "purchaseOrderStatus": "OPEN", + "purchaseOrderDate": "2020-08-15T05:24:00.00Z", + "lastUpdatedDate": "2020-08-17T05:07:00.00Z", + "sellingParty": { + "partyId": "API01" + }, + "shipToParty": { + "partyId": "ABC09" + }, + "itemStatus": [ + { + "itemSequenceNumber": "1", + "buyerProductIdentifier": "B01XYZ3Z123", + "vendorProductIdentifier": "8806093095999", + "netCost": { + "currencyCode": "USD", + "amount": "25" + }, + "listPrice": { + "currencyCode": "USD", + "amount": "25" + }, + "orderedQuantity": { + "orderedQuantity": { + "amount": 100, + "unitOfMeasure": "Eaches", + "unitSize": 1 + }, + "orderedQuantityDetails": [ + { + "updatedDate": "2020-08-17T05:07:00.00Z", + "cancelledQuantity": { + "amount": 50, + "unitOfMeasure": "Eaches", + "unitSize": 1 + } + }, + { + "updatedDate": "2020-08-15T05:24:00.00Z", + "orderedQuantity": { + "amount": 150, + "unitOfMeasure": "Eaches", + "unitSize": 1 + } + } + ] + }, + "acknowledgementStatus": { + "confirmationStatus": "UNCONFIRMED", + "acceptedQuantity": { + "amount": 0, + "unitOfMeasure": "Eaches", + "unitSize": 1 + }, + "rejectedQuantity": { + "amount": 0, + "unitOfMeasure": "Eaches", + "unitSize": 1 + } + }, + "receivingStatus": { + "receiveStatus": "NOT_RECEIVED", + "receivedQuantity": { + "amount": 0, + "unitOfMeasure": "Eaches", + "unitSize": 1 + } + } + } + ] + } + ] + } } } - } ] } }, @@ -3312,7 +3402,6 @@ "type": "object", "required": [ "itemAcknowledgements", - "netCost", "orderedQuantity" ], "properties": { @@ -3638,6 +3727,44 @@ } } } + }, + "receivingStatus": { + "type": "object", + "description": "Item receive status at the buyer's warehouse.", + "properties": { + "receiveStatus": { + "type": "string", + "description": "Receive status of the line item.", + "enum": [ + "NOT_RECEIVED", + "PARTIALLY_RECEIVED", + "RECEIVED" + ], + "x-docgen-enum-table-extension": [ + { + "value": "NOT_RECEIVED", + "description": "The buyer has not received any of the item." + }, + { + "value": "PARTIALLY_RECEIVE", + "description": "The buyer has received some of the item and is expecting to receive the rest of the confirmed quantity." + }, + { + "value": "RECEIVED", + "description": "Receiving is complete. The buyer has received all confirmed items." + } + ] + }, + "receivedQuantity": { + "description": "The total item quantity received by the buyer so far.", + "$ref": "#/definitions/ItemQuantity" + }, + "lastReceiveDate": { + "type": "string", + "format": "date-time", + "description": "The date when the most recent item was received at the buyer's warehouse. Must be in ISO-8601 date/time format." + } + } } } },