Chilkat Online Tools

VB6 / Selling Partner API for Easy Ship / create Scheduled Package

Back to Collection Items

' This example assumes the Chilkat API to have been previously unlocked.
' See Global Unlock Sample for sample code.

Dim http As New ChilkatHttp
Dim success As Long

' Use this online tool to generate code from sample JSON: Generate Code to Create JSON

' The following JSON is sent in the request body.

' {
'   "amazonOrderId": "laborum amet aute est Ut",
'   "marketplaceId": "exercitation laboris culpa",
'   "packageDetails": {
'     "packageTimeSlot": {
'       "slotId": "ullamco Du",
'       "startTime": "1996-11-08T12:24:54.022Z",
'       "endTime": "1948-11-26T11:00:43.032Z",
'       "handoverMethod": "Pickup"
'     },
'     "packageItems": [
'       {
'         "orderItemId": "sed ad sit",
'         "orderItemSerialNumbers": [
'           {
'             "value": "<Error: Too many levels of nesting to fake this schema>"
'           },
'           {
'             "value": "<Error: Too many levels of nesting to fake this schema>"
'           }
'         ]
'       },
'       {
'         "orderItemId": "occaecat est",
'         "orderItemSerialNumbers": [
'           {
'             "value": "<Error: Too many levels of nesting to fake this schema>"
'           },
'           {
'             "value": "<Error: Too many levels of nesting to fake this schema>"
'           }
'         ]
'       }
'     ],
'     "packageIdentifier": "volupt"
'   }
' }

Dim json As New ChilkatJsonObject
success = json.UpdateString("amazonOrderId","laborum amet aute est Ut")
success = json.UpdateString("marketplaceId","exercitation laboris culpa")
success = json.UpdateString("packageDetails.packageTimeSlot.slotId","ullamco Du")
success = json.UpdateString("packageDetails.packageTimeSlot.startTime","1996-11-08T12:24:54.022Z")
success = json.UpdateString("packageDetails.packageTimeSlot.endTime","1948-11-26T11:00:43.032Z")
success = json.UpdateString("packageDetails.packageTimeSlot.handoverMethod","Pickup")
success = json.UpdateString("packageDetails.packageItems[0].orderItemId","sed ad sit")
success = json.UpdateString("packageDetails.packageItems[0].orderItemSerialNumbers[0].value","<Error: Too many levels of nesting to fake this schema>")
success = json.UpdateString("packageDetails.packageItems[0].orderItemSerialNumbers[1].value","<Error: Too many levels of nesting to fake this schema>")
success = json.UpdateString("packageDetails.packageItems[1].orderItemId","occaecat est")
success = json.UpdateString("packageDetails.packageItems[1].orderItemSerialNumbers[0].value","<Error: Too many levels of nesting to fake this schema>")
success = json.UpdateString("packageDetails.packageItems[1].orderItemSerialNumbers[1].value","<Error: Too many levels of nesting to fake this schema>")
success = json.UpdateString("packageDetails.packageIdentifier","volupt")

http.SetRequestHeader "Content-Type","application/json"
http.SetRequestHeader "Accept","application/json"

Dim resp As ChilkatHttpResponse
Set resp = http.PostJson3("https://sellingpartnerapi-na.amazon.com/easyShip/2022-03-23/package","application/json",json)
If (http.LastMethodSuccess = 0) Then
    Debug.Print http.LastErrorText
    Exit Sub
End If

Dim sbResponseBody As New ChilkatStringBuilder
success = resp.GetBodySb(sbResponseBody)

Dim jResp As New ChilkatJsonObject
success = jResp.LoadSb(sbResponseBody)
jResp.EmitCompact = 0

Debug.Print "Response Body:"
Debug.Print jResp.Emit()

Dim respStatusCode As Long
respStatusCode = resp.StatusCode
Debug.Print "Response Status Code = " & respStatusCode
If (respStatusCode >= 400) Then
    Debug.Print "Response Header:"
    Debug.Print resp.Header
    Debug.Print "Failed."

    Exit Sub
End If

' Sample JSON response:
' (Sample code for parsing the JSON response is shown below)

' {
'   "packageDimensions": {
'     "length": 92908506.38751999,
'     "width": 69740717.24177761,
'     "height": 55703784.11292852,
'     "unit": "Cm",
'     "identifier": "velit elit incididunt"
'   },
'   "packageTimeSlot": {
'     "slotId": "id sit ut elit",
'     "startTime": "2015-08-10T18:15:47.176Z",
'     "endTime": "1974-01-15T04:04:16.651Z",
'     "handoverMethod": "Dropoff"
'   },
'   "packageWeight": {
'     "value": 22615253.265217148,
'     "unit": "Grams"
'   },
'   "scheduledPackageId": {
'     "amazonOrderId": "eu ex pariatur mollit",
'     "packageId": "la"
'   },
'   "packageItems": [
'     {
'       "orderItemId": "irure in",
'       "orderItemSerialNumbers": [
'         "est qui magna dolor in",
'         "do sint consequat"
'       ]
'     },
'     {
'       "orderItemId": "incididunt proident",
'       "orderItemSerialNumbers": [
'         "amet",
'         "ex"
'       ]
'     }
'   ],
'   "packageIdentifier": "Lorem",
'   "invoice": {
'     "invoiceNumber": "esse non",
'     "invoiceDate": "2020-10-09T01:25:28.191Z"
'   },
'   "packageStatus": "AtDestinationFC",
'   "trackingDetails": {
'     "trackingId": "dolor est aute"
'   }
' }

' Sample code for parsing the JSON response...
' Use this online tool to generate parsing code from sample JSON: Generate JSON Parsing Code

Dim orderItemId As String
Dim j As Long
Dim count_j As Long
Dim strVal As String

Dim Length As String
Length = jResp.StringOf("packageDimensions.length")
Dim Width As String
Width = jResp.StringOf("packageDimensions.width")
Dim Height As String
Height = jResp.StringOf("packageDimensions.height")
Dim Unit As String
Unit = jResp.StringOf("packageDimensions.unit")
Dim Identifier As String
Identifier = jResp.StringOf("packageDimensions.identifier")
Dim SlotId As String
SlotId = jResp.StringOf("packageTimeSlot.slotId")
Dim StartTime As String
StartTime = jResp.StringOf("packageTimeSlot.startTime")
Dim EndTime As String
EndTime = jResp.StringOf("packageTimeSlot.endTime")
Dim HandoverMethod As String
HandoverMethod = jResp.StringOf("packageTimeSlot.handoverMethod")
Dim Value As String
Value = jResp.StringOf("packageWeight.value")
Dim packageWeightUnit As String
packageWeightUnit = jResp.StringOf("packageWeight.unit")
Dim AmazonOrderId As String
AmazonOrderId = jResp.StringOf("scheduledPackageId.amazonOrderId")
Dim PackageId As String
PackageId = jResp.StringOf("scheduledPackageId.packageId")
Dim packageIdentifier As String
packageIdentifier = jResp.StringOf("packageIdentifier")
Dim InvoiceNumber As String
InvoiceNumber = jResp.StringOf("invoice.invoiceNumber")
Dim InvoiceDate As String
InvoiceDate = jResp.StringOf("invoice.invoiceDate")
Dim packageStatus As String
packageStatus = jResp.StringOf("packageStatus")
Dim TrackingId As String
TrackingId = jResp.StringOf("trackingDetails.trackingId")
Dim i As Long
i = 0
Dim count_i As Long
count_i = jResp.SizeOfArray("packageItems")
Do While i < count_i
    jResp.I = i
    orderItemId = jResp.StringOf("packageItems[i].orderItemId")
    j = 0
    count_j = jResp.SizeOfArray("packageItems[i].orderItemSerialNumbers")
    Do While j < count_j
        jResp.J = j
        strVal = jResp.StringOf("packageItems[i].orderItemSerialNumbers[j]")
        j = j + 1
    Loop
    i = i + 1
Loop

Curl Command

curl -X POST
	-H "Content-Type: application/json"
	-H "Accept: application/json"
	-d '{
  "amazonOrderId": "laborum amet aute est Ut",
  "marketplaceId": "exercitation laboris culpa",
  "packageDetails": {
    "packageTimeSlot": {
      "slotId": "ullamco Du",
      "startTime": "1996-11-08T12:24:54.022Z",
      "endTime": "1948-11-26T11:00:43.032Z",
      "handoverMethod": "Pickup"
    },
    "packageItems": [
      {
        "orderItemId": "sed ad sit",
        "orderItemSerialNumbers": [
          {
            "value": "<Error: Too many levels of nesting to fake this schema>"
          },
          {
            "value": "<Error: Too many levels of nesting to fake this schema>"
          }
        ]
      },
      {
        "orderItemId": "occaecat est",
        "orderItemSerialNumbers": [
          {
            "value": "<Error: Too many levels of nesting to fake this schema>"
          },
          {
            "value": "<Error: Too many levels of nesting to fake this schema>"
          }
        ]
      }
    ],
    "packageIdentifier": "volupt"
  }
}'
https://sellingpartnerapi-na.amazon.com/easyShip/2022-03-23/package

Postman Collection Item JSON

{
  "name": "create Scheduled Package",
  "request": {
    "method": "POST",
    "header": [
      {
        "key": "Content-Type",
        "value": "application/json"
      },
      {
        "key": "Accept",
        "value": "application/json"
      }
    ],
    "body": {
      "mode": "raw",
      "raw": "{\n  \"amazonOrderId\": \"laborum amet aute est Ut\",\n  \"marketplaceId\": \"exercitation laboris culpa\",\n  \"packageDetails\": {\n    \"packageTimeSlot\": {\n      \"slotId\": \"ullamco Du\",\n      \"startTime\": \"1996-11-08T12:24:54.022Z\",\n      \"endTime\": \"1948-11-26T11:00:43.032Z\",\n      \"handoverMethod\": \"Pickup\"\n    },\n    \"packageItems\": [\n      {\n        \"orderItemId\": \"sed ad sit\",\n        \"orderItemSerialNumbers\": [\n          {\n            \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n          },\n          {\n            \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n          }\n        ]\n      },\n      {\n        \"orderItemId\": \"occaecat est\",\n        \"orderItemSerialNumbers\": [\n          {\n            \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n          },\n          {\n            \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n          }\n        ]\n      }\n    ],\n    \"packageIdentifier\": \"volupt\"\n  }\n}",
      "options": {
        "raw": {
          "language": "json"
        }
      }
    },
    "url": {
      "raw": "{{baseUrl}}/easyShip/2022-03-23/package",
      "host": [
        "{{baseUrl}}"
      ],
      "path": [
        "easyShip",
        "2022-03-23",
        "package"
      ]
    },
    "description": "Schedules an Easy Ship order and returns the scheduled package information.\n\nThis operation does the following:\n\n*  Specifies the time slot and handover method for the order to be scheduled for delivery.\n\n* Updates the Easy Ship order status.\n\n* Generates a shipping label and an invoice. Calling `createScheduledPackage` also generates a warranty document if you specify a `SerialNumber` value. To get these documents, see [How to get invoice, shipping label, and warranty documents](doc:easy-ship-api-v2022-03-23-use-case-guide).\n\n* Shows the status of Easy Ship orders when you call the `getOrders` operation of the Selling Partner API for Orders and examine the `EasyShipShipmentStatus` property in the response body.\n\nSee the **Shipping Label**, **Invoice**, and **Warranty** columns in the [Marketplace Support Table](doc:easy-ship-api-v2022-03-23-use-case-guide) to see which documents are supported in each marketplace.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 1 | 5 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api)."
  },
  "response": [
    {
      "name": "Success.",
      "originalRequest": {
        "method": "POST",
        "header": [
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"amazonOrderId\": \"laborum amet aute est Ut\",\n  \"marketplaceId\": \"exercitation laboris culpa\",\n  \"packageDetails\": {\n    \"packageTimeSlot\": {\n      \"slotId\": \"ullamco Du\",\n      \"startTime\": \"1996-11-08T12:24:54.022Z\",\n      \"endTime\": \"1948-11-26T11:00:43.032Z\",\n      \"handoverMethod\": \"Pickup\"\n    },\n    \"packageItems\": [\n      {\n        \"orderItemId\": \"sed ad sit\",\n        \"orderItemSerialNumbers\": [\n          {\n            \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n          },\n          {\n            \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n          }\n        ]\n      },\n      {\n        \"orderItemId\": \"occaecat est\",\n        \"orderItemSerialNumbers\": [\n          {\n            \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n          },\n          {\n            \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n          }\n        ]\n      }\n    ],\n    \"packageIdentifier\": \"volupt\"\n  }\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{baseUrl}}/easyShip/2022-03-23/package",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "easyShip",
            "2022-03-23",
            "package"
          ]
        }
      },
      "status": "OK",
      "code": 200,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "x-amzn-RateLimit-Limit",
          "value": "do anim",
          "description": "Your rate limit (requests per second) for this operation."
        },
        {
          "key": "x-amzn-RequestId",
          "value": "do anim",
          "description": "Unique request reference identifier."
        },
        {
          "key": "Content-Type",
          "value": "application/json"
        }
      ],
      "cookie": [
      ],
      "body": "{\n  \"packageDimensions\": {\n    \"length\": 92908506.38751999,\n    \"width\": 69740717.24177761,\n    \"height\": 55703784.11292852,\n    \"unit\": \"Cm\",\n    \"identifier\": \"velit elit incididunt\"\n  },\n  \"packageTimeSlot\": {\n    \"slotId\": \"id sit ut elit\",\n    \"startTime\": \"2015-08-10T18:15:47.176Z\",\n    \"endTime\": \"1974-01-15T04:04:16.651Z\",\n    \"handoverMethod\": \"Dropoff\"\n  },\n  \"packageWeight\": {\n    \"value\": 22615253.265217148,\n    \"unit\": \"Grams\"\n  },\n  \"scheduledPackageId\": {\n    \"amazonOrderId\": \"eu ex pariatur mollit\",\n    \"packageId\": \"la\"\n  },\n  \"packageItems\": [\n    {\n      \"orderItemId\": \"irure in\",\n      \"orderItemSerialNumbers\": [\n        \"est qui magna dolor in\",\n        \"do sint consequat\"\n      ]\n    },\n    {\n      \"orderItemId\": \"incididunt proident\",\n      \"orderItemSerialNumbers\": [\n        \"amet\",\n        \"ex\"\n      ]\n    }\n  ],\n  \"packageIdentifier\": \"Lorem\",\n  \"invoice\": {\n    \"invoiceNumber\": \"esse non\",\n    \"invoiceDate\": \"2020-10-09T01:25:28.191Z\"\n  },\n  \"packageStatus\": \"AtDestinationFC\",\n  \"trackingDetails\": {\n    \"trackingId\": \"dolor est aute\"\n  }\n}"
    },
    {
      "name": "Request has missing or invalid parameters and cannot be parsed.",
      "originalRequest": {
        "method": "POST",
        "header": [
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"amazonOrderId\": \"laborum amet aute est Ut\",\n  \"marketplaceId\": \"exercitation laboris culpa\",\n  \"packageDetails\": {\n    \"packageTimeSlot\": {\n      \"slotId\": \"ullamco Du\",\n      \"startTime\": \"1996-11-08T12:24:54.022Z\",\n      \"endTime\": \"1948-11-26T11:00:43.032Z\",\n      \"handoverMethod\": \"Pickup\"\n    },\n    \"packageItems\": [\n      {\n        \"orderItemId\": \"sed ad sit\",\n        \"orderItemSerialNumbers\": [\n          {\n            \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n          },\n          {\n            \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n          }\n        ]\n      },\n      {\n        \"orderItemId\": \"occaecat est\",\n        \"orderItemSerialNumbers\": [\n          {\n            \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n          },\n          {\n            \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n          }\n        ]\n      }\n    ],\n    \"packageIdentifier\": \"volupt\"\n  }\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{baseUrl}}/easyShip/2022-03-23/package",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "easyShip",
            "2022-03-23",
            "package"
          ]
        }
      },
      "status": "Bad Request",
      "code": 400,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "x-amzn-RateLimit-Limit",
          "value": "do anim",
          "description": "Your rate limit (requests per second) for this operation."
        },
        {
          "key": "x-amzn-RequestId",
          "value": "do anim",
          "description": "Unique request reference identifier."
        },
        {
          "key": "Content-Type",
          "value": "application/json"
        }
      ],
      "cookie": [
      ],
      "body": "{\n  \"errors\": [\n    {\n      \"code\": \"minim nisi sint\",\n      \"message\": \"irure sed dolor\",\n      \"details\": \"officia consectetur Excepteur\"\n    },\n    {\n      \"code\": \"Ut do\",\n      \"message\": \"non nisi ipsum\",\n      \"details\": \"Ut\"\n    }\n  ]\n}"
    },
    {
      "name": "The request's Authorization header is not formatted correctly or does not contain a valid token.",
      "originalRequest": {
        "method": "POST",
        "header": [
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"amazonOrderId\": \"laborum amet aute est Ut\",\n  \"marketplaceId\": \"exercitation laboris culpa\",\n  \"packageDetails\": {\n    \"packageTimeSlot\": {\n      \"slotId\": \"ullamco Du\",\n      \"startTime\": \"1996-11-08T12:24:54.022Z\",\n      \"endTime\": \"1948-11-26T11:00:43.032Z\",\n      \"handoverMethod\": \"Pickup\"\n    },\n    \"packageItems\": [\n      {\n        \"orderItemId\": \"sed ad sit\",\n        \"orderItemSerialNumbers\": [\n          {\n            \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n          },\n          {\n            \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n          }\n        ]\n      },\n      {\n        \"orderItemId\": \"occaecat est\",\n        \"orderItemSerialNumbers\": [\n          {\n            \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n          },\n          {\n            \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n          }\n        ]\n      }\n    ],\n    \"packageIdentifier\": \"volupt\"\n  }\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{baseUrl}}/easyShip/2022-03-23/package",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "easyShip",
            "2022-03-23",
            "package"
          ]
        }
      },
      "status": "Unauthorized",
      "code": 401,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "x-amzn-RateLimit-Limit",
          "value": "do anim",
          "description": "Your rate limit (requests per second) for this operation."
        },
        {
          "key": "x-amzn-RequestId",
          "value": "do anim",
          "description": "Unique request reference identifier."
        },
        {
          "key": "Content-Type",
          "value": "application/json"
        }
      ],
      "cookie": [
      ],
      "body": "{\n  \"errors\": [\n    {\n      \"code\": \"minim nisi sint\",\n      \"message\": \"irure sed dolor\",\n      \"details\": \"officia consectetur Excepteur\"\n    },\n    {\n      \"code\": \"Ut do\",\n      \"message\": \"non nisi ipsum\",\n      \"details\": \"Ut\"\n    }\n  ]\n}"
    },
    {
      "name": "Indicates access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.",
      "originalRequest": {
        "method": "POST",
        "header": [
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"amazonOrderId\": \"laborum amet aute est Ut\",\n  \"marketplaceId\": \"exercitation laboris culpa\",\n  \"packageDetails\": {\n    \"packageTimeSlot\": {\n      \"slotId\": \"ullamco Du\",\n      \"startTime\": \"1996-11-08T12:24:54.022Z\",\n      \"endTime\": \"1948-11-26T11:00:43.032Z\",\n      \"handoverMethod\": \"Pickup\"\n    },\n    \"packageItems\": [\n      {\n        \"orderItemId\": \"sed ad sit\",\n        \"orderItemSerialNumbers\": [\n          {\n            \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n          },\n          {\n            \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n          }\n        ]\n      },\n      {\n        \"orderItemId\": \"occaecat est\",\n        \"orderItemSerialNumbers\": [\n          {\n            \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n          },\n          {\n            \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n          }\n        ]\n      }\n    ],\n    \"packageIdentifier\": \"volupt\"\n  }\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{baseUrl}}/easyShip/2022-03-23/package",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "easyShip",
            "2022-03-23",
            "package"
          ]
        }
      },
      "status": "Forbidden",
      "code": 403,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "x-amzn-RequestId",
          "value": "do anim",
          "description": "Unique request reference identifier."
        },
        {
          "key": "Content-Type",
          "value": "application/json"
        }
      ],
      "cookie": [
      ],
      "body": "{\n  \"errors\": [\n    {\n      \"code\": \"minim nisi sint\",\n      \"message\": \"irure sed dolor\",\n      \"details\": \"officia consectetur Excepteur\"\n    },\n    {\n      \"code\": \"Ut do\",\n      \"message\": \"non nisi ipsum\",\n      \"details\": \"Ut\"\n    }\n  ]\n}"
    },
    {
      "name": "The specified resource does not exist.",
      "originalRequest": {
        "method": "POST",
        "header": [
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"amazonOrderId\": \"laborum amet aute est Ut\",\n  \"marketplaceId\": \"exercitation laboris culpa\",\n  \"packageDetails\": {\n    \"packageTimeSlot\": {\n      \"slotId\": \"ullamco Du\",\n      \"startTime\": \"1996-11-08T12:24:54.022Z\",\n      \"endTime\": \"1948-11-26T11:00:43.032Z\",\n      \"handoverMethod\": \"Pickup\"\n    },\n    \"packageItems\": [\n      {\n        \"orderItemId\": \"sed ad sit\",\n        \"orderItemSerialNumbers\": [\n          {\n            \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n          },\n          {\n            \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n          }\n        ]\n      },\n      {\n        \"orderItemId\": \"occaecat est\",\n        \"orderItemSerialNumbers\": [\n          {\n            \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n          },\n          {\n            \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n          }\n        ]\n      }\n    ],\n    \"packageIdentifier\": \"volupt\"\n  }\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{baseUrl}}/easyShip/2022-03-23/package",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "easyShip",
            "2022-03-23",
            "package"
          ]
        }
      },
      "status": "Not Found",
      "code": 404,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "x-amzn-RateLimit-Limit",
          "value": "do anim",
          "description": "Your rate limit (requests per second) for this operation."
        },
        {
          "key": "x-amzn-RequestId",
          "value": "do anim",
          "description": "Unique request reference identifier."
        },
        {
          "key": "Content-Type",
          "value": "application/json"
        }
      ],
      "cookie": [
      ],
      "body": "{\n  \"errors\": [\n    {\n      \"code\": \"minim nisi sint\",\n      \"message\": \"irure sed dolor\",\n      \"details\": \"officia consectetur Excepteur\"\n    },\n    {\n      \"code\": \"Ut do\",\n      \"message\": \"non nisi ipsum\",\n      \"details\": \"Ut\"\n    }\n  ]\n}"
    },
    {
      "name": "The request payload is in an unsupported format.",
      "originalRequest": {
        "method": "POST",
        "header": [
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"amazonOrderId\": \"laborum amet aute est Ut\",\n  \"marketplaceId\": \"exercitation laboris culpa\",\n  \"packageDetails\": {\n    \"packageTimeSlot\": {\n      \"slotId\": \"ullamco Du\",\n      \"startTime\": \"1996-11-08T12:24:54.022Z\",\n      \"endTime\": \"1948-11-26T11:00:43.032Z\",\n      \"handoverMethod\": \"Pickup\"\n    },\n    \"packageItems\": [\n      {\n        \"orderItemId\": \"sed ad sit\",\n        \"orderItemSerialNumbers\": [\n          {\n            \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n          },\n          {\n            \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n          }\n        ]\n      },\n      {\n        \"orderItemId\": \"occaecat est\",\n        \"orderItemSerialNumbers\": [\n          {\n            \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n          },\n          {\n            \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n          }\n        ]\n      }\n    ],\n    \"packageIdentifier\": \"volupt\"\n  }\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{baseUrl}}/easyShip/2022-03-23/package",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "easyShip",
            "2022-03-23",
            "package"
          ]
        }
      },
      "status": "Unsupported Media Type",
      "code": 415,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "x-amzn-RequestId",
          "value": "do anim",
          "description": "Unique request reference identifier."
        },
        {
          "key": "Content-Type",
          "value": "application/json"
        }
      ],
      "cookie": [
      ],
      "body": "{\n  \"errors\": [\n    {\n      \"code\": \"minim nisi sint\",\n      \"message\": \"irure sed dolor\",\n      \"details\": \"officia consectetur Excepteur\"\n    },\n    {\n      \"code\": \"Ut do\",\n      \"message\": \"non nisi ipsum\",\n      \"details\": \"Ut\"\n    }\n  ]\n}"
    },
    {
      "name": "The frequency of requests was greater than allowed.",
      "originalRequest": {
        "method": "POST",
        "header": [
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"amazonOrderId\": \"laborum amet aute est Ut\",\n  \"marketplaceId\": \"exercitation laboris culpa\",\n  \"packageDetails\": {\n    \"packageTimeSlot\": {\n      \"slotId\": \"ullamco Du\",\n      \"startTime\": \"1996-11-08T12:24:54.022Z\",\n      \"endTime\": \"1948-11-26T11:00:43.032Z\",\n      \"handoverMethod\": \"Pickup\"\n    },\n    \"packageItems\": [\n      {\n        \"orderItemId\": \"sed ad sit\",\n        \"orderItemSerialNumbers\": [\n          {\n            \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n          },\n          {\n            \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n          }\n        ]\n      },\n      {\n        \"orderItemId\": \"occaecat est\",\n        \"orderItemSerialNumbers\": [\n          {\n            \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n          },\n          {\n            \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n          }\n        ]\n      }\n    ],\n    \"packageIdentifier\": \"volupt\"\n  }\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{baseUrl}}/easyShip/2022-03-23/package",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "easyShip",
            "2022-03-23",
            "package"
          ]
        }
      },
      "status": "Too Many Requests",
      "code": 429,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "x-amzn-RequestId",
          "value": "do anim",
          "description": "Unique request reference identifier."
        },
        {
          "key": "Content-Type",
          "value": "application/json"
        }
      ],
      "cookie": [
      ],
      "body": "{\n  \"errors\": [\n    {\n      \"code\": \"minim nisi sint\",\n      \"message\": \"irure sed dolor\",\n      \"details\": \"officia consectetur Excepteur\"\n    },\n    {\n      \"code\": \"Ut do\",\n      \"message\": \"non nisi ipsum\",\n      \"details\": \"Ut\"\n    }\n  ]\n}"
    },
    {
      "name": "An unexpected condition occurred that prevented the server from fulfilling the request.",
      "originalRequest": {
        "method": "POST",
        "header": [
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"amazonOrderId\": \"laborum amet aute est Ut\",\n  \"marketplaceId\": \"exercitation laboris culpa\",\n  \"packageDetails\": {\n    \"packageTimeSlot\": {\n      \"slotId\": \"ullamco Du\",\n      \"startTime\": \"1996-11-08T12:24:54.022Z\",\n      \"endTime\": \"1948-11-26T11:00:43.032Z\",\n      \"handoverMethod\": \"Pickup\"\n    },\n    \"packageItems\": [\n      {\n        \"orderItemId\": \"sed ad sit\",\n        \"orderItemSerialNumbers\": [\n          {\n            \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n          },\n          {\n            \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n          }\n        ]\n      },\n      {\n        \"orderItemId\": \"occaecat est\",\n        \"orderItemSerialNumbers\": [\n          {\n            \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n          },\n          {\n            \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n          }\n        ]\n      }\n    ],\n    \"packageIdentifier\": \"volupt\"\n  }\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{baseUrl}}/easyShip/2022-03-23/package",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "easyShip",
            "2022-03-23",
            "package"
          ]
        }
      },
      "status": "Internal Server Error",
      "code": 500,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "x-amzn-RequestId",
          "value": "do anim",
          "description": "Unique request reference identifier."
        },
        {
          "key": "Content-Type",
          "value": "application/json"
        }
      ],
      "cookie": [
      ],
      "body": "{\n  \"errors\": [\n    {\n      \"code\": \"minim nisi sint\",\n      \"message\": \"irure sed dolor\",\n      \"details\": \"officia consectetur Excepteur\"\n    },\n    {\n      \"code\": \"Ut do\",\n      \"message\": \"non nisi ipsum\",\n      \"details\": \"Ut\"\n    }\n  ]\n}"
    },
    {
      "name": "Temporary overloading or maintenance of the server.",
      "originalRequest": {
        "method": "POST",
        "header": [
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"amazonOrderId\": \"laborum amet aute est Ut\",\n  \"marketplaceId\": \"exercitation laboris culpa\",\n  \"packageDetails\": {\n    \"packageTimeSlot\": {\n      \"slotId\": \"ullamco Du\",\n      \"startTime\": \"1996-11-08T12:24:54.022Z\",\n      \"endTime\": \"1948-11-26T11:00:43.032Z\",\n      \"handoverMethod\": \"Pickup\"\n    },\n    \"packageItems\": [\n      {\n        \"orderItemId\": \"sed ad sit\",\n        \"orderItemSerialNumbers\": [\n          {\n            \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n          },\n          {\n            \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n          }\n        ]\n      },\n      {\n        \"orderItemId\": \"occaecat est\",\n        \"orderItemSerialNumbers\": [\n          {\n            \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n          },\n          {\n            \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n          }\n        ]\n      }\n    ],\n    \"packageIdentifier\": \"volupt\"\n  }\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{baseUrl}}/easyShip/2022-03-23/package",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "easyShip",
            "2022-03-23",
            "package"
          ]
        }
      },
      "status": "Service Unavailable",
      "code": 503,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "x-amzn-RequestId",
          "value": "do anim",
          "description": "Unique request reference identifier."
        },
        {
          "key": "Content-Type",
          "value": "application/json"
        }
      ],
      "cookie": [
      ],
      "body": "{\n  \"errors\": [\n    {\n      \"code\": \"minim nisi sint\",\n      \"message\": \"irure sed dolor\",\n      \"details\": \"officia consectetur Excepteur\"\n    },\n    {\n      \"code\": \"Ut do\",\n      \"message\": \"non nisi ipsum\",\n      \"details\": \"Ut\"\n    }\n  ]\n}"
    }
  ]
}