node-red-contrib-rollun-aws-sp-api
Version:
Node-RED nodes to access AWS Selling Partner API
1,141 lines • 158 kB
JSON
{
"swagger": "2.0",
"info": {
"description": "The Selling Partner API for Retail Procurement Orders provides programmatic access to vendor orders data.",
"version": "v1",
"title": "Selling Partner API for Retail Procurement Orders",
"contact": {
"name": "Selling Partner API Developer Support",
"url": "https://sellercentral.amazon.com/gp/mws/contactus.html"
},
"license": {
"name": "Apache License 2.0",
"url": "http://www.apache.org/licenses/LICENSE-2.0"
}
},
"host": "sellingpartnerapi-na.amazon.com",
"schemes": [
"https"
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"paths": {
"/vendor/orders/v1/purchaseOrders": {
"get": {
"tags": [
"vendorOrders"
],
"description": "Returns a list of purchase orders created or changed during the time frame that you specify. You define the time frame using the `createdAfter`, `createdBefore`, `changedAfter` and `changedBefore` parameters. The date range to search must not be more than 7 days. You can choose to get only the purchase order numbers by setting `includeDetails` to false. You can then use the `getPurchaseOrder` operation to receive details for a specific purchase order.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 10 | 10 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).",
"operationId": "getPurchaseOrders",
"parameters": [
{
"name": "limit",
"in": "query",
"description": "The limit to the number of records returned. Default value is 100 records.",
"required": false,
"type": "integer",
"maximum": 100,
"minimum": 1,
"format": "int64"
},
{
"name": "createdAfter",
"in": "query",
"description": "Purchase orders that became available after this time will be included in the result. Must be in ISO-8601 date/time format.",
"required": false,
"type": "string",
"format": "date-time"
},
{
"name": "createdBefore",
"in": "query",
"description": "Purchase orders that became available before this time will be included in the result. Must be in ISO-8601 date/time format.",
"required": false,
"type": "string",
"format": "date-time"
},
{
"name": "sortOrder",
"in": "query",
"description": "Sort in ascending or descending order by purchase order creation date.",
"required": false,
"type": "string",
"enum": [
"ASC",
"DESC"
],
"x-docgen-enum-table-extension": [
{
"value": "ASC",
"description": "Sort in ascending order by purchase order creation date."
},
{
"value": "DESC",
"description": "Sort in descending order by purchase order creation date."
}
]
},
{
"name": "nextToken",
"in": "query",
"description": "Used for pagination when there is more purchase orders than the specified result size limit. The token value is returned in the previous API call",
"required": false,
"type": "string"
},
{
"name": "includeDetails",
"in": "query",
"description": "When true, returns purchase orders with complete details. Otherwise, only purchase order numbers are returned. Default value is true.",
"required": false,
"type": "string",
"format": "boolean"
},
{
"name": "changedAfter",
"in": "query",
"description": "Purchase orders that changed after this timestamp will be included in the result. Must be in ISO-8601 date/time format.",
"required": false,
"type": "string",
"format": "date-time"
},
{
"name": "changedBefore",
"in": "query",
"description": "Purchase orders that changed before this timestamp will be included in the result. Must be in ISO-8601 date/time format.",
"required": false,
"type": "string",
"format": "date-time"
},
{
"name": "poItemState",
"in": "query",
"description": "Current state of the purchase order item. If this value is Cancelled, this API will return purchase orders which have one or more items cancelled by Amazon with updated item quantity as zero.",
"required": false,
"type": "string",
"enum": [
"Cancelled"
],
"x-docgen-enum-table-extension": [
{
"value": "Cancelled",
"description": "Status for order items cancelled by vendors."
}
]
},
{
"name": "isPOChanged",
"in": "query",
"description": "When true, returns purchase orders which were modified after the order was placed. Vendors are required to pull the changed purchase order and fulfill the updated purchase order and not the original one. Default value is false.",
"required": false,
"type": "string",
"format": "boolean"
},
{
"name": "purchaseOrderState",
"in": "query",
"description": "Filters purchase orders based on the purchase order state.",
"required": false,
"type": "string",
"enum": [
"New",
"Acknowledged",
"Closed"
],
"x-docgen-enum-table-extension": [
{
"value": "New",
"description": "Status of the orders that are newly created."
},
{
"value": "Acknowledged",
"description": "Status of the orders acknowledged by vendors."
},
{
"value": "Closed",
"description": "Status of the orders that are completed."
}
]
},
{
"name": "orderingVendorCode",
"in": "query",
"description": "Filters purchase orders based on the specified ordering vendor code. This value should be same as 'sellingParty.partyId' in the purchase order. If not included in the filter, all purchase orders for all of the vendor codes that exist in the vendor group used to authorize the API client application are returned.",
"required": false,
"type": "string"
}
],
"responses": {
"200": {
"description": "Success.",
"schema": {
"$ref": "#/definitions/GetPurchaseOrdersResponse"
},
"examples": {
"payload": {
"pagination": {
"nextToken": "MDAwMDAwMDAwAQ=="
},
"orders": [
{
"purchaseOrderNumber": "L8266355",
"purchaseOrderState": "New",
"orderDetails": {
"purchaseOrderDate": "2019-05-23T10:00:00Z",
"purchaseOrderChangedDate": "2019-05-24T16:05:00Z",
"purchaseOrderStateChangedDate": "2019-05-23T10:00:00Z",
"purchaseOrderType": "RegularOrder",
"importDetails": {
"methodOfPayment": "PaidByBuyer",
"internationalCommercialTerms": "ExWorks",
"portOfDelivery": "YANTIAN, CHINA",
"importContainers": "1-40'HC, 1-20'",
"shippingInstructions": "PREFERENCE IS PALLET-LOAD, BUT IF CONTAINERS ARE FLOOR-LOADED, THEN PLEASE DO CLAMP-LOAD OR STRAIGHT FLOOR-LOAD. DO NOT USE SLIP SHEET FOR THIS FC DESTINATION. PAYMENT TERMS ARE PER CONTAINER."
},
"dealCode": "BTS",
"paymentMethod": "Invoice",
"buyingParty": {
"partyId": "ABCD",
"address": {
"name": "APPARIO RETAIL PVT.LTD.",
"addressLine1": "3APPARIO RETAIL PVT.LTD.- C/O. AMAZON SELLER SERVIC",
"city": "Siddhapudur",
"stateOrRegion": "Tamil Nadu",
"postalCode": "641044",
"countryCode": "IN",
"phone": "206-266-8000"
}
},
"sellingParty": {
"partyId": "TEST1"
},
"shipToParty": {
"partyId": "ABCD",
"address": {
"name": "APPARIO RETAIL PVT.LTD.",
"addressLine1": "3APPARIO RETAIL PVT.LTD.- C/O. AMAZON SELLER SERVIC",
"city": "Siddhapudur",
"stateOrRegion": "Tamil Nadu",
"postalCode": "641044",
"countryCode": "IN",
"phone": "206-266-8000"
}
},
"billToParty": {
"partyId": "ABCD",
"address": {
"name": "APPARIO RETAIL PVT.LTD.",
"addressLine1": "3APPARIO RETAIL PVT.LTD.- C/O. AMAZON SELLER SERVIC",
"city": "Siddhapudur",
"stateOrRegion": "Tamil Nadu",
"postalCode": "641044",
"countryCode": "IN",
"phone": "206-266-8000"
}
},
"taxInfo": {
"taxType": "GST",
"taxRegistrationNumber": "098522PCA6346DTEDD"
}
},
"deliveryWindow": "2019-05-23T10:00:00Z--2019-05-30T10:00:00Z",
"items": [
{
"itemSequenceNumber": "1",
"amazonProductIdentifier": "ABC123434",
"vendorProductIdentifier": "028877454078",
"orderedQuantity": {
"amount": 2,
"unitOfMeasure": "Cases",
"unitSize": 10
},
"isBackOrderAllowed": true,
"netCost": {
"amount": "1800",
"currencyCode": "INR",
"unitOfMeasure": "POUNDS"
},
"listPrice": {
"amount": "2000",
"currencyCode": "INR",
"unitOfMeasure": "POUNDS"
}
}
]
}
]
}
},
"headers": {
"x-amzn-RateLimit-Limit": {
"type": "string",
"description": "Your rate limit (requests per second) for this operation."
},
"x-amzn-RequestId": {
"type": "string",
"description": "Unique request reference identifier."
}
},
"x-amzn-api-sandbox": {
"static": [
{
"request": {
"parameters": {
"createdBefore": {
"value": "2019-09-21T00:00:00"
},
"createdAfter": {
"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"
}
}
]
}
},
{
"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",
"unitOfMeasure": "POUNDS"
},
"listPrice": {
"amount": "94.97",
"currencyCode": "USD",
"unitOfMeasure": "POUNDS"
}
}
]
}
}
]
}
}
},
{
"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"
},
{
"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",
"unitOfMeasure": "POUNDS"
}
}
]
}
}
]
}
}
}
]
}
},
"400": {
"description": "Request has missing or invalid parameters and cannot be parsed.",
"schema": {
"$ref": "#/definitions/GetPurchaseOrdersResponse"
},
"examples": {
"application/json": {
"errors": [
{
"code": "InvalidRequest",
"message": "The request is invalid."
}
]
}
},
"headers": {
"x-amzn-RateLimit-Limit": {
"type": "string",
"description": "Your rate limit (requests per second) for this operation."
},
"x-amzn-RequestId": {
"type": "string",
"description": "Unique request reference identifier."
}
},
"x-amzn-api-sandbox": {
"static": [
{
"request": {
"parameters": {
"createdBefore": {
"value": "2019-09-2100:00:00"
},
"createdAfter": {
"value": "2019-08-20T14:00:00"
}
}
},
"response": {
"errors": [
{
"code": "InvalidRequest",
"message": "The request is invalid.",
"details": ""
}
]
}
}
]
}
},
"403": {
"description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.",
"schema": {
"$ref": "#/definitions/GetPurchaseOrdersResponse"
},
"headers": {
"x-amzn-RequestId": {
"type": "string",
"description": "Unique request reference identifier."
}
}
},
"404": {
"description": "The resource specified does not exist.",
"schema": {
"$ref": "#/definitions/GetPurchaseOrdersResponse"
},
"headers": {
"x-amzn-RateLimit-Limit": {
"type": "string",
"description": "Your rate limit (requests per second) for this operation."
},
"x-amzn-RequestId": {
"type": "string",
"description": "Unique request reference identifier."
}
}
},
"415": {
"description": "The request payload is in an unsupported format.",
"schema": {
"$ref": "#/definitions/GetPurchaseOrdersResponse"
},
"headers": {
"x-amzn-RequestId": {
"type": "string",
"description": "Unique request reference identifier."
}
}
},
"429": {
"description": "The frequency of requests was greater than allowed.",
"schema": {
"$ref": "#/definitions/GetPurchaseOrdersResponse"
},
"headers": {
"x-amzn-RequestId": {
"type": "string",
"description": "Unique request reference identifier."
}
}
},
"500": {
"description": "An unexpected condition occurred that prevented the server from fulfilling the request.",
"schema": {
"$ref": "#/definitions/GetPurchaseOrdersResponse"
},
"headers": {
"x-amzn-RequestId": {
"type": "string",
"description": "Unique request reference identifier."
}
}
},
"503": {
"description": "Temporary overloading or maintenance of the server.",
"schema": {
"$ref": "#/definitions/GetPurchaseOrdersResponse"
},
"headers": {
"x-amzn-RequestId": {
"type": "string",
"description": "Unique request reference identifier."
}
}
}
}
}
},
"/vendor/orders/v1/purchaseOrders/{purchaseOrderNumber}": {
"get": {
"tags": [
"vendorOrders"
],
"description": "Returns a purchase order based on