Back to Collection Items
-- Important: See this note about string length limitations for strings returned by sp_OAMethod calls.
--
CREATE PROCEDURE ChilkatSample
AS
BEGIN
DECLARE @hr int
DECLARE @iTmp0 int
-- Important: Do not use nvarchar(max). See the warning about using nvarchar(max).
DECLARE @sTmp0 nvarchar(4000)
-- This example assumes the Chilkat API to have been previously unlocked.
-- See Global Unlock Sample for sample code.
DECLARE @http int
-- Use "Chilkat_9_5_0.Http" for versions of Chilkat < 10.0.0
EXEC @hr = sp_OACreate 'Chilkat.Http', @http OUT
IF @hr <> 0
BEGIN
PRINT 'Failed to create ActiveX component'
RETURN
END
DECLARE @success int
-- Use this online tool to generate code from sample JSON: Generate Code to Create JSON
-- The following JSON is sent in the request body.
-- {
-- "marketplaceId": "consequat amet",
-- "updatePackageDetailsList": [
-- {
-- "packageTimeSlot": {
-- "slotId": "cupidatat commodo",
-- "startTime": "1988-12-03T03:57:10.940Z",
-- "endTime": "1985-11-04T15:19:48.217Z",
-- "handoverMethod": "Pickup"
-- },
-- "scheduledPackageId": {
-- "amazonOrderId": "est n",
-- "packageId": "in reprehe"
-- }
-- }
-- ]
-- }
DECLARE @json int
-- Use "Chilkat_9_5_0.JsonObject" for versions of Chilkat < 10.0.0
EXEC @hr = sp_OACreate 'Chilkat.JsonObject', @json OUT
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'marketplaceId', 'consequat amet'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'updatePackageDetailsList[0].packageTimeSlot.slotId', 'cupidatat commodo'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'updatePackageDetailsList[0].packageTimeSlot.startTime', '1988-12-03T03:57:10.940Z'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'updatePackageDetailsList[0].packageTimeSlot.endTime', '1985-11-04T15:19:48.217Z'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'updatePackageDetailsList[0].packageTimeSlot.handoverMethod', 'Pickup'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'updatePackageDetailsList[0].scheduledPackageId.amazonOrderId', 'est n'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'updatePackageDetailsList[0].scheduledPackageId.packageId', 'in reprehe'
EXEC sp_OAMethod @http, 'SetRequestHeader', NULL, 'Content-Type', 'application/json'
EXEC sp_OAMethod @http, 'SetRequestHeader', NULL, 'Accept', 'application/json'
DECLARE @sbRequestBody int
-- Use "Chilkat_9_5_0.StringBuilder" for versions of Chilkat < 10.0.0
EXEC @hr = sp_OACreate 'Chilkat.StringBuilder', @sbRequestBody OUT
EXEC sp_OAMethod @json, 'EmitSb', @success OUT, @sbRequestBody
DECLARE @resp int
EXEC sp_OAMethod @http, 'PTextSb', @resp OUT, 'PATCH', 'https://sellingpartnerapi-na.amazon.com/easyShip/2022-03-23/package', @sbRequestBody, 'utf-8', 'application/json', 0, 0
EXEC sp_OAGetProperty @http, 'LastMethodSuccess', @iTmp0 OUT
IF @iTmp0 = 0
BEGIN
EXEC sp_OAGetProperty @http, 'LastErrorText', @sTmp0 OUT
PRINT @sTmp0
EXEC @hr = sp_OADestroy @http
EXEC @hr = sp_OADestroy @json
EXEC @hr = sp_OADestroy @sbRequestBody
RETURN
END
DECLARE @sbResponseBody int
-- Use "Chilkat_9_5_0.StringBuilder" for versions of Chilkat < 10.0.0
EXEC @hr = sp_OACreate 'Chilkat.StringBuilder', @sbResponseBody OUT
EXEC sp_OAMethod @resp, 'GetBodySb', @success OUT, @sbResponseBody
DECLARE @jResp int
-- Use "Chilkat_9_5_0.JsonObject" for versions of Chilkat < 10.0.0
EXEC @hr = sp_OACreate 'Chilkat.JsonObject', @jResp OUT
EXEC sp_OAMethod @jResp, 'LoadSb', @success OUT, @sbResponseBody
EXEC sp_OASetProperty @jResp, 'EmitCompact', 0
PRINT 'Response Body:'
EXEC sp_OAMethod @jResp, 'Emit', @sTmp0 OUT
PRINT @sTmp0
DECLARE @respStatusCode int
EXEC sp_OAGetProperty @resp, 'StatusCode', @respStatusCode OUT
PRINT 'Response Status Code = ' + @respStatusCode
IF @respStatusCode >= 400
BEGIN
PRINT 'Response Header:'
EXEC sp_OAGetProperty @resp, 'Header', @sTmp0 OUT
PRINT @sTmp0
PRINT 'Failed.'
EXEC @hr = sp_OADestroy @resp
EXEC @hr = sp_OADestroy @http
EXEC @hr = sp_OADestroy @json
EXEC @hr = sp_OADestroy @sbRequestBody
EXEC @hr = sp_OADestroy @sbResponseBody
EXEC @hr = sp_OADestroy @jResp
RETURN
END
EXEC @hr = sp_OADestroy @resp
-- Sample JSON response:
-- (Sample code for parsing the JSON response is shown below)
-- {
-- "packages": [
-- {
-- "packageDimensions": {
-- "length": 40062457.37349262,
-- "width": 50471035.04865554,
-- "height": 80775236.68226911,
-- "unit": "Cm",
-- "identifier": "dolor ad aute do"
-- },
-- "packageTimeSlot": {
-- "slotId": "Duis commodo",
-- "startTime": "1960-10-16T13:48:03.084Z",
-- "endTime": "1945-11-11T21:27:05.677Z",
-- "handoverMethod": "Dropoff"
-- },
-- "packageWeight": {
-- "value": 67364554.16403891,
-- "unit": "Grams"
-- },
-- "scheduledPackageId": {
-- "amazonOrderId": "ut",
-- "packageId": "adipisicing ea laborum"
-- },
-- "packageItems": [
-- {
-- "orderItemId": {
-- "value": "<Error: Too many levels of nesting to fake this schema>"
-- },
-- "orderItemSerialNumbers": {
-- "value": "<Error: Too many levels of nesting to fake this schema>"
-- }
-- },
-- {
-- "orderItemId": {
-- "value": "<Error: Too many levels of nesting to fake this schema>"
-- },
-- "orderItemSerialNumbers": {
-- "value": "<Error: Too many levels of nesting to fake this schema>"
-- }
-- }
-- ],
-- "packageIdentifier": "dolore ut",
-- "invoice": {
-- "invoiceNumber": "Excepteur sit commodo amet aliquip",
-- "invoiceDate": "1951-09-19T19:16:40.337Z"
-- },
-- "packageStatus": "ReturnedToSeller",
-- "trackingDetails": {
-- "trackingId": "labore enim nisi aliq"
-- }
-- }
-- ]
-- }
-- Sample code for parsing the JSON response...
-- Use this online tool to generate parsing code from sample JSON: Generate JSON Parsing Code
DECLARE @Length nvarchar(4000)
DECLARE @Width nvarchar(4000)
DECLARE @Height nvarchar(4000)
DECLARE @Unit nvarchar(4000)
DECLARE @Identifier nvarchar(4000)
DECLARE @SlotId nvarchar(4000)
DECLARE @StartTime nvarchar(4000)
DECLARE @EndTime nvarchar(4000)
DECLARE @HandoverMethod nvarchar(4000)
DECLARE @Value nvarchar(4000)
DECLARE @packageWeightUnit nvarchar(4000)
DECLARE @AmazonOrderId nvarchar(4000)
DECLARE @PackageId nvarchar(4000)
DECLARE @packageIdentifier nvarchar(4000)
DECLARE @InvoiceNumber nvarchar(4000)
DECLARE @InvoiceDate nvarchar(4000)
DECLARE @packageStatus nvarchar(4000)
DECLARE @TrackingId nvarchar(4000)
DECLARE @j int
DECLARE @count_j int
DECLARE @orderItemIdValue nvarchar(4000)
DECLARE @orderItemSerialNumbersValue nvarchar(4000)
DECLARE @i int
SELECT @i = 0
DECLARE @count_i int
EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_i OUT, 'packages'
WHILE @i < @count_i
BEGIN
EXEC sp_OASetProperty @jResp, 'I', @i
EXEC sp_OAMethod @jResp, 'StringOf', @Length OUT, 'packages[i].packageDimensions.length'
EXEC sp_OAMethod @jResp, 'StringOf', @Width OUT, 'packages[i].packageDimensions.width'
EXEC sp_OAMethod @jResp, 'StringOf', @Height OUT, 'packages[i].packageDimensions.height'
EXEC sp_OAMethod @jResp, 'StringOf', @Unit OUT, 'packages[i].packageDimensions.unit'
EXEC sp_OAMethod @jResp, 'StringOf', @Identifier OUT, 'packages[i].packageDimensions.identifier'
EXEC sp_OAMethod @jResp, 'StringOf', @SlotId OUT, 'packages[i].packageTimeSlot.slotId'
EXEC sp_OAMethod @jResp, 'StringOf', @StartTime OUT, 'packages[i].packageTimeSlot.startTime'
EXEC sp_OAMethod @jResp, 'StringOf', @EndTime OUT, 'packages[i].packageTimeSlot.endTime'
EXEC sp_OAMethod @jResp, 'StringOf', @HandoverMethod OUT, 'packages[i].packageTimeSlot.handoverMethod'
EXEC sp_OAMethod @jResp, 'StringOf', @Value OUT, 'packages[i].packageWeight.value'
EXEC sp_OAMethod @jResp, 'StringOf', @packageWeightUnit OUT, 'packages[i].packageWeight.unit'
EXEC sp_OAMethod @jResp, 'StringOf', @AmazonOrderId OUT, 'packages[i].scheduledPackageId.amazonOrderId'
EXEC sp_OAMethod @jResp, 'StringOf', @PackageId OUT, 'packages[i].scheduledPackageId.packageId'
EXEC sp_OAMethod @jResp, 'StringOf', @packageIdentifier OUT, 'packages[i].packageIdentifier'
EXEC sp_OAMethod @jResp, 'StringOf', @InvoiceNumber OUT, 'packages[i].invoice.invoiceNumber'
EXEC sp_OAMethod @jResp, 'StringOf', @InvoiceDate OUT, 'packages[i].invoice.invoiceDate'
EXEC sp_OAMethod @jResp, 'StringOf', @packageStatus OUT, 'packages[i].packageStatus'
EXEC sp_OAMethod @jResp, 'StringOf', @TrackingId OUT, 'packages[i].trackingDetails.trackingId'
SELECT @j = 0
EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_j OUT, 'packages[i].packageItems'
WHILE @j < @count_j
BEGIN
EXEC sp_OASetProperty @jResp, 'J', @j
EXEC sp_OAMethod @jResp, 'StringOf', @orderItemIdValue OUT, 'packages[i].packageItems[j].orderItemId.value'
EXEC sp_OAMethod @jResp, 'StringOf', @orderItemSerialNumbersValue OUT, 'packages[i].packageItems[j].orderItemSerialNumbers.value'
SELECT @j = @j + 1
END
SELECT @i = @i + 1
END
EXEC @hr = sp_OADestroy @http
EXEC @hr = sp_OADestroy @json
EXEC @hr = sp_OADestroy @sbRequestBody
EXEC @hr = sp_OADestroy @sbResponseBody
EXEC @hr = sp_OADestroy @jResp
END
GO
Curl Command
curl -X PATCH
-H "Content-Type: application/json"
-H "Accept: application/json"
-d '{
"marketplaceId": "consequat amet",
"updatePackageDetailsList": [
{
"packageTimeSlot": {
"slotId": "cupidatat commodo",
"startTime": "1988-12-03T03:57:10.940Z",
"endTime": "1985-11-04T15:19:48.217Z",
"handoverMethod": "Pickup"
},
"scheduledPackageId": {
"amazonOrderId": "est n",
"packageId": "in reprehe"
}
}
]
}'
https://sellingpartnerapi-na.amazon.com/easyShip/2022-03-23/package
Postman Collection Item JSON
{
"name": "update Scheduled Packages",
"request": {
"method": "PATCH",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Accept",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"marketplaceId\": \"consequat amet\",\n \"updatePackageDetailsList\": [\n {\n \"packageTimeSlot\": {\n \"slotId\": \"cupidatat commodo\",\n \"startTime\": \"1988-12-03T03:57:10.940Z\",\n \"endTime\": \"1985-11-04T15:19:48.217Z\",\n \"handoverMethod\": \"Pickup\"\n },\n \"scheduledPackageId\": {\n \"amazonOrderId\": \"est n\",\n \"packageId\": \"in reprehe\"\n }\n }\n ]\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{baseUrl}}/easyShip/2022-03-23/package",
"host": [
"{{baseUrl}}"
],
"path": [
"easyShip",
"2022-03-23",
"package"
]
},
"description": "Updates the time slot for handing over the package indicated by the specified `scheduledPackageId`. You can get the new `slotId` value for the time slot by calling the `listHandoverSlots` operation before making another `patch` call.\n\nSee the **Update Package** column in the [Marketplace Support Table](doc:easy-ship-api-v2022-03-23-use-case-guide) to see which marketplaces this operation is supported in.\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": "PATCH",
"header": [
],
"body": {
"mode": "raw",
"raw": "{\n \"marketplaceId\": \"consequat amet\",\n \"updatePackageDetailsList\": [\n {\n \"packageTimeSlot\": {\n \"slotId\": \"cupidatat commodo\",\n \"startTime\": \"1988-12-03T03:57:10.940Z\",\n \"endTime\": \"1985-11-04T15:19:48.217Z\",\n \"handoverMethod\": \"Pickup\"\n },\n \"scheduledPackageId\": {\n \"amazonOrderId\": \"est n\",\n \"packageId\": \"in reprehe\"\n }\n }\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 \"packages\": [\n {\n \"packageDimensions\": {\n \"length\": 40062457.37349262,\n \"width\": 50471035.04865554,\n \"height\": 80775236.68226911,\n \"unit\": \"Cm\",\n \"identifier\": \"dolor ad aute do\"\n },\n \"packageTimeSlot\": {\n \"slotId\": \"Duis commodo\",\n \"startTime\": \"1960-10-16T13:48:03.084Z\",\n \"endTime\": \"1945-11-11T21:27:05.677Z\",\n \"handoverMethod\": \"Dropoff\"\n },\n \"packageWeight\": {\n \"value\": 67364554.16403891,\n \"unit\": \"Grams\"\n },\n \"scheduledPackageId\": {\n \"amazonOrderId\": \"ut\",\n \"packageId\": \"adipisicing ea laborum\"\n },\n \"packageItems\": [\n {\n \"orderItemId\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"orderItemSerialNumbers\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n }\n },\n {\n \"orderItemId\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"orderItemSerialNumbers\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n }\n }\n ],\n \"packageIdentifier\": \"dolore ut\",\n \"invoice\": {\n \"invoiceNumber\": \"Excepteur sit commodo amet aliquip\",\n \"invoiceDate\": \"1951-09-19T19:16:40.337Z\"\n },\n \"packageStatus\": \"ReturnedToSeller\",\n \"trackingDetails\": {\n \"trackingId\": \"labore enim nisi aliq\"\n }\n }\n ]\n}"
},
{
"name": "Request has missing or invalid parameters and cannot be parsed.",
"originalRequest": {
"method": "PATCH",
"header": [
],
"body": {
"mode": "raw",
"raw": "{\n \"marketplaceId\": \"consequat amet\",\n \"updatePackageDetailsList\": [\n {\n \"packageTimeSlot\": {\n \"slotId\": \"cupidatat commodo\",\n \"startTime\": \"1988-12-03T03:57:10.940Z\",\n \"endTime\": \"1985-11-04T15:19:48.217Z\",\n \"handoverMethod\": \"Pickup\"\n },\n \"scheduledPackageId\": {\n \"amazonOrderId\": \"est n\",\n \"packageId\": \"in reprehe\"\n }\n }\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": "PATCH",
"header": [
],
"body": {
"mode": "raw",
"raw": "{\n \"marketplaceId\": \"consequat amet\",\n \"updatePackageDetailsList\": [\n {\n \"packageTimeSlot\": {\n \"slotId\": \"cupidatat commodo\",\n \"startTime\": \"1988-12-03T03:57:10.940Z\",\n \"endTime\": \"1985-11-04T15:19:48.217Z\",\n \"handoverMethod\": \"Pickup\"\n },\n \"scheduledPackageId\": {\n \"amazonOrderId\": \"est n\",\n \"packageId\": \"in reprehe\"\n }\n }\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": "PATCH",
"header": [
],
"body": {
"mode": "raw",
"raw": "{\n \"marketplaceId\": \"consequat amet\",\n \"updatePackageDetailsList\": [\n {\n \"packageTimeSlot\": {\n \"slotId\": \"cupidatat commodo\",\n \"startTime\": \"1988-12-03T03:57:10.940Z\",\n \"endTime\": \"1985-11-04T15:19:48.217Z\",\n \"handoverMethod\": \"Pickup\"\n },\n \"scheduledPackageId\": {\n \"amazonOrderId\": \"est n\",\n \"packageId\": \"in reprehe\"\n }\n }\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": "PATCH",
"header": [
],
"body": {
"mode": "raw",
"raw": "{\n \"marketplaceId\": \"consequat amet\",\n \"updatePackageDetailsList\": [\n {\n \"packageTimeSlot\": {\n \"slotId\": \"cupidatat commodo\",\n \"startTime\": \"1988-12-03T03:57:10.940Z\",\n \"endTime\": \"1985-11-04T15:19:48.217Z\",\n \"handoverMethod\": \"Pickup\"\n },\n \"scheduledPackageId\": {\n \"amazonOrderId\": \"est n\",\n \"packageId\": \"in reprehe\"\n }\n }\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": "PATCH",
"header": [
],
"body": {
"mode": "raw",
"raw": "{\n \"marketplaceId\": \"consequat amet\",\n \"updatePackageDetailsList\": [\n {\n \"packageTimeSlot\": {\n \"slotId\": \"cupidatat commodo\",\n \"startTime\": \"1988-12-03T03:57:10.940Z\",\n \"endTime\": \"1985-11-04T15:19:48.217Z\",\n \"handoverMethod\": \"Pickup\"\n },\n \"scheduledPackageId\": {\n \"amazonOrderId\": \"est n\",\n \"packageId\": \"in reprehe\"\n }\n }\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": "PATCH",
"header": [
],
"body": {
"mode": "raw",
"raw": "{\n \"marketplaceId\": \"consequat amet\",\n \"updatePackageDetailsList\": [\n {\n \"packageTimeSlot\": {\n \"slotId\": \"cupidatat commodo\",\n \"startTime\": \"1988-12-03T03:57:10.940Z\",\n \"endTime\": \"1985-11-04T15:19:48.217Z\",\n \"handoverMethod\": \"Pickup\"\n },\n \"scheduledPackageId\": {\n \"amazonOrderId\": \"est n\",\n \"packageId\": \"in reprehe\"\n }\n }\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": "PATCH",
"header": [
],
"body": {
"mode": "raw",
"raw": "{\n \"marketplaceId\": \"consequat amet\",\n \"updatePackageDetailsList\": [\n {\n \"packageTimeSlot\": {\n \"slotId\": \"cupidatat commodo\",\n \"startTime\": \"1988-12-03T03:57:10.940Z\",\n \"endTime\": \"1985-11-04T15:19:48.217Z\",\n \"handoverMethod\": \"Pickup\"\n },\n \"scheduledPackageId\": {\n \"amazonOrderId\": \"est n\",\n \"packageId\": \"in reprehe\"\n }\n }\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": "PATCH",
"header": [
],
"body": {
"mode": "raw",
"raw": "{\n \"marketplaceId\": \"consequat amet\",\n \"updatePackageDetailsList\": [\n {\n \"packageTimeSlot\": {\n \"slotId\": \"cupidatat commodo\",\n \"startTime\": \"1988-12-03T03:57:10.940Z\",\n \"endTime\": \"1985-11-04T15:19:48.217Z\",\n \"handoverMethod\": \"Pickup\"\n },\n \"scheduledPackageId\": {\n \"amazonOrderId\": \"est n\",\n \"packageId\": \"in reprehe\"\n }\n }\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}"
}
]
}