Back to Collection Items
Use ChilkatAx-win32.pkg
Procedure Test
Handle hoHttp
Boolean iSuccess
Variant vQueryParams
Handle hoQueryParams
Variant vResp
Handle hoResp
Variant vSbResponseBody
Handle hoSbResponseBody
Handle hoJResp
Integer iRespStatusCode
String sOrderItemId
String sApprovalType
String sApprovalStatus
Integer j
Integer iCount_j
Integer iSequenceId
String sTimestamp
String sActor
String sApprover
String sApprovalActionProcessStatus
String sApprovalActionProcessStatusMessage
String sActionType
String sComment
String sCurrencyCode
String sAmount
Integer iQuantity
String sIdentifierType
String sIdentifier
String sNextToken
Integer i
Integer iCount_i
String sTemp1
Boolean bTemp1
// This example assumes the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.
Get Create (RefClass(cComChilkatHttp)) To hoHttp
If (Not(IsComObjectCreated(hoHttp))) Begin
Send CreateComObject of hoHttp
End
Get Create (RefClass(cComChilkatJsonObject)) To hoQueryParams
If (Not(IsComObjectCreated(hoQueryParams))) Begin
Send CreateComObject of hoQueryParams
End
Get ComUpdateString Of hoQueryParams "NextToken" "incididunt ea cillum" To iSuccess
Get ComUpdateString Of hoQueryParams "ItemApprovalTypes" "<string>" To iSuccess
Get ComUpdateString Of hoQueryParams "ItemApprovalStatus" "<string>,<string>" To iSuccess
Send ComSetRequestHeader To hoHttp "Accept" "application/json"
Get pvComObject of hoQueryParams to vQueryParams
Get ComQuickRequestParams Of hoHttp "GET" "https://sellingpartnerapi-na.amazon.com/orders/v0/orders/:orderId/approvals" vQueryParams To vResp
If (IsComObject(vResp)) Begin
Get Create (RefClass(cComChilkatHttpResponse)) To hoResp
Set pvComObject Of hoResp To vResp
End
Get ComLastMethodSuccess Of hoHttp To bTemp1
If (bTemp1 = False) Begin
Get ComLastErrorText Of hoHttp To sTemp1
Showln sTemp1
Procedure_Return
End
Get Create (RefClass(cComChilkatStringBuilder)) To hoSbResponseBody
If (Not(IsComObjectCreated(hoSbResponseBody))) Begin
Send CreateComObject of hoSbResponseBody
End
Get pvComObject of hoSbResponseBody to vSbResponseBody
Get ComGetBodySb Of hoResp vSbResponseBody To iSuccess
Get Create (RefClass(cComChilkatJsonObject)) To hoJResp
If (Not(IsComObjectCreated(hoJResp))) Begin
Send CreateComObject of hoJResp
End
Get pvComObject of hoSbResponseBody to vSbResponseBody
Get ComLoadSb Of hoJResp vSbResponseBody To iSuccess
Set ComEmitCompact Of hoJResp To False
Showln "Response Body:"
Get ComEmit Of hoJResp To sTemp1
Showln sTemp1
Get ComStatusCode Of hoResp To iRespStatusCode
Showln "Response Status Code = " iRespStatusCode
If (iRespStatusCode >= 400) Begin
Showln "Response Header:"
Get ComHeader Of hoResp To sTemp1
Showln sTemp1
Showln "Failed."
Send Destroy of hoResp
Procedure_Return
End
Send Destroy of hoResp
// Sample JSON response:
// (Sample code for parsing the JSON response is shown below)
// {
// "payload": {
// "NextToken": "2YgYW55IGNhcm5hbCBwbGVhc3VyZS4",
// "OrderItemsApprovalsList": [
// {
// "OrderItemId": "12354324",
// "ApprovalType": "LEONARDI_APPROVAL",
// "ApprovalStatus": "PENDING_SELLING_PARTNER_APPROVAL",
// "ItemApprovals": [
// {
// "SequenceId": 1,
// "Timestamp": "string",
// "Actor": "SELLING_PARTNER",
// "Approver": "approver-id-123",
// "ApprovalActionProcessStatus": "ERROR",
// "ApprovalActionProcessStatusMessage": "Invalid substitution request.",
// "ApprovalAction": {
// "ActionType": "APPROVE",
// "Comment": "Set price and units",
// "Changes": {
// "ItemPrice": {
// "CurrencyCode": "EUR",
// "Amount": "8.5"
// },
// "Quantity": 2,
// "SubstitutedBy": {
// "IdentifierType": "EXTERNAL_ID",
// "Identifier": "P12325"
// }
// }
// }
// }
// ]
// },
// {
// "OrderItemId": "79039765272157",
// "ApprovalType": "LEONARDI_APPROVAL",
// "ApprovalStatus": "DECLINED",
// "ItemApprovals": [
// {
// "SequenceId": 1,
// "Timestamp": "string",
// "Actor": "SELLING_PARTNER",
// "Approver": "approver-id-123",
// "ApprovalActionProcessStatus": "SUCCESS",
// "ApprovalActionProcessStatusMessage": "Approval request validated",
// "ApprovalAction": {
// "ActionType": "DECLINE",
// "Comment": "Out of stock."
// }
// }
// ]
// }
// ]
// }
// }
// Sample code for parsing the JSON response...
// Use this online tool to generate parsing code from sample JSON: Generate JSON Parsing Code
Get ComStringOf Of hoJResp "payload.NextToken" To sNextToken
Move 0 To i
Get ComSizeOfArray Of hoJResp "payload.OrderItemsApprovalsList" To iCount_i
While (i < iCount_i)
Set ComI Of hoJResp To i
Get ComStringOf Of hoJResp "payload.OrderItemsApprovalsList[i].OrderItemId" To sOrderItemId
Get ComStringOf Of hoJResp "payload.OrderItemsApprovalsList[i].ApprovalType" To sApprovalType
Get ComStringOf Of hoJResp "payload.OrderItemsApprovalsList[i].ApprovalStatus" To sApprovalStatus
Move 0 To j
Get ComSizeOfArray Of hoJResp "payload.OrderItemsApprovalsList[i].ItemApprovals" To iCount_j
While (j < iCount_j)
Set ComJ Of hoJResp To j
Get ComIntOf Of hoJResp "payload.OrderItemsApprovalsList[i].ItemApprovals[j].SequenceId" To iSequenceId
Get ComStringOf Of hoJResp "payload.OrderItemsApprovalsList[i].ItemApprovals[j].Timestamp" To sTimestamp
Get ComStringOf Of hoJResp "payload.OrderItemsApprovalsList[i].ItemApprovals[j].Actor" To sActor
Get ComStringOf Of hoJResp "payload.OrderItemsApprovalsList[i].ItemApprovals[j].Approver" To sApprover
Get ComStringOf Of hoJResp "payload.OrderItemsApprovalsList[i].ItemApprovals[j].ApprovalActionProcessStatus" To sApprovalActionProcessStatus
Get ComStringOf Of hoJResp "payload.OrderItemsApprovalsList[i].ItemApprovals[j].ApprovalActionProcessStatusMessage" To sApprovalActionProcessStatusMessage
Get ComStringOf Of hoJResp "payload.OrderItemsApprovalsList[i].ItemApprovals[j].ApprovalAction.ActionType" To sActionType
Get ComStringOf Of hoJResp "payload.OrderItemsApprovalsList[i].ItemApprovals[j].ApprovalAction.Comment" To sComment
Get ComStringOf Of hoJResp "payload.OrderItemsApprovalsList[i].ItemApprovals[j].ApprovalAction.Changes.ItemPrice.CurrencyCode" To sCurrencyCode
Get ComStringOf Of hoJResp "payload.OrderItemsApprovalsList[i].ItemApprovals[j].ApprovalAction.Changes.ItemPrice.Amount" To sAmount
Get ComIntOf Of hoJResp "payload.OrderItemsApprovalsList[i].ItemApprovals[j].ApprovalAction.Changes.Quantity" To iQuantity
Get ComStringOf Of hoJResp "payload.OrderItemsApprovalsList[i].ItemApprovals[j].ApprovalAction.Changes.SubstitutedBy.IdentifierType" To sIdentifierType
Get ComStringOf Of hoJResp "payload.OrderItemsApprovalsList[i].ItemApprovals[j].ApprovalAction.Changes.SubstitutedBy.Identifier" To sIdentifier
Move (j + 1) To j
Loop
Move (i + 1) To i
Loop
End_Procedure
Curl Command
curl -G -d "NextToken=incididunt%20ea%20cillum"
-d "ItemApprovalTypes=%3Cstring%3E"
-d "ItemApprovalStatus=%3Cstring%3E,%3Cstring%3E"
-H "Accept: application/json"
https://sellingpartnerapi-na.amazon.com/orders/v0/orders/:orderId/approvals
Postman Collection Item JSON
{
"name": "get Order Items Approvals",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{baseUrl}}/orders/v0/orders/:orderId/approvals?NextToken=incididunt ea cillum&ItemApprovalTypes=<string>&ItemApprovalStatus=<string>,<string>",
"host": [
"{{baseUrl}}"
],
"path": [
"orders",
"v0",
"orders",
":orderId",
"approvals"
],
"query": [
{
"key": "NextToken",
"value": "incididunt ea cillum",
"description": "A string token returned in the response of your previous request."
},
{
"key": "ItemApprovalTypes",
"value": "<string>",
"description": "When set, only return approvals for items which approval type is contained in the specified approval types."
},
{
"key": "ItemApprovalStatus",
"value": "<string>,<string>",
"description": "When set, only return approvals that contain items which approval status is contained in the specified approval status."
}
],
"variable": [
{
"key": "orderId",
"value": "incididunt ea cillum",
"description": "(Required) An Amazon-defined order identifier, in 3-7-7 format, e.g. 933-1671587-0818628."
}
]
},
"description": "Returns detailed order items approvals information for the order specified. If NextToken is provided, it's used to retrieve the next page of order items approvals.\n\n**Usage Plans:**\n\n| Plan type | Rate (requests per second) | Burst |\n| ---- | ---- | ---- |\n|Default| 0.5 | 30 |\n|Selling partner specific| Variable | Variable |\n\nThe x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation."
},
"response": [
{
"name": "Success.",
"originalRequest": {
"method": "GET",
"header": [
],
"url": {
"raw": "{{baseUrl}}/orders/v0/orders/:orderId/approvals?NextToken=incididunt ea cillum&ItemApprovalTypes=<string>&ItemApprovalStatus=<string>,<string>",
"host": [
"{{baseUrl}}"
],
"path": [
"orders",
"v0",
"orders",
":orderId",
"approvals"
],
"query": [
{
"key": "NextToken",
"value": "incididunt ea cillum"
},
{
"key": "ItemApprovalTypes",
"value": "<string>"
},
{
"key": "ItemApprovalStatus",
"value": "<string>,<string>"
}
],
"variable": [
{
"key": "orderId",
"value": "incididunt ea cillum",
"description": "(Required) An Amazon-defined order identifier, in 3-7-7 format, e.g. 933-1671587-0818628."
}
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "x-amzn-RateLimit-Limit",
"value": "incididunt ea cillum",
"description": "Your rate limit (requests per second) for this operation."
},
{
"key": "x-amzn-RequestId",
"value": "incididunt ea cillum",
"description": "Unique request reference identifier."
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"cookie": [
],
"body": "{\n \"payload\": {\n \"NextToken\": \"2YgYW55IGNhcm5hbCBwbGVhc3VyZS4\",\n \"OrderItemsApprovalsList\": [\n {\n \"OrderItemId\": \"12354324\",\n \"ApprovalType\": \"LEONARDI_APPROVAL\",\n \"ApprovalStatus\": \"PENDING_SELLING_PARTNER_APPROVAL\",\n \"ItemApprovals\": [\n {\n \"SequenceId\": 1,\n \"Timestamp\": \"string\",\n \"Actor\": \"SELLING_PARTNER\",\n \"Approver\": \"approver-id-123\",\n \"ApprovalActionProcessStatus\": \"ERROR\",\n \"ApprovalActionProcessStatusMessage\": \"Invalid substitution request.\",\n \"ApprovalAction\": {\n \"ActionType\": \"APPROVE\",\n \"Comment\": \"Set price and units\",\n \"Changes\": {\n \"ItemPrice\": {\n \"CurrencyCode\": \"EUR\",\n \"Amount\": \"8.5\"\n },\n \"Quantity\": 2,\n \"SubstitutedBy\": {\n \"IdentifierType\": \"EXTERNAL_ID\",\n \"Identifier\": \"P12325\"\n }\n }\n }\n }\n ]\n },\n {\n \"OrderItemId\": \"79039765272157\",\n \"ApprovalType\": \"LEONARDI_APPROVAL\",\n \"ApprovalStatus\": \"DECLINED\",\n \"ItemApprovals\": [\n {\n \"SequenceId\": 1,\n \"Timestamp\": \"string\",\n \"Actor\": \"SELLING_PARTNER\",\n \"Approver\": \"approver-id-123\",\n \"ApprovalActionProcessStatus\": \"SUCCESS\",\n \"ApprovalActionProcessStatusMessage\": \"Approval request validated\",\n \"ApprovalAction\": {\n \"ActionType\": \"DECLINE\",\n \"Comment\": \"Out of stock.\"\n }\n }\n ]\n }\n ]\n }\n}"
},
{
"name": "Request has missing or invalid parameters and cannot be parsed.",
"originalRequest": {
"method": "GET",
"header": [
],
"url": {
"raw": "{{baseUrl}}/orders/v0/orders/:orderId/approvals?NextToken=incididunt ea cillum&ItemApprovalTypes=<string>&ItemApprovalStatus=<string>,<string>",
"host": [
"{{baseUrl}}"
],
"path": [
"orders",
"v0",
"orders",
":orderId",
"approvals"
],
"query": [
{
"key": "NextToken",
"value": "incididunt ea cillum"
},
{
"key": "ItemApprovalTypes",
"value": "<string>"
},
{
"key": "ItemApprovalStatus",
"value": "<string>,<string>"
}
],
"variable": [
{
"key": "orderId",
"value": "incididunt ea cillum",
"description": "(Required) An Amazon-defined order identifier, in 3-7-7 format, e.g. 933-1671587-0818628."
}
]
}
},
"status": "Bad Request",
"code": 400,
"_postman_previewlanguage": "json",
"header": [
{
"key": "x-amzn-RateLimit-Limit",
"value": "incididunt ea cillum",
"description": "Your rate limit (requests per second) for this operation."
},
{
"key": "x-amzn-RequestId",
"value": "incididunt ea cillum",
"description": "Unique request reference identifier."
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"cookie": [
],
"body": "{\n \"payload\": {\n \"OrderItemsApprovalsList\": [\n {\n \"OrderItemId\": \"consequat occaecat\",\n \"ApprovalType\": \"<string>\",\n \"ApprovalStatus\": \"<string>\",\n \"ItemApprovals\": [\n {\n \"SequenceId\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"Timestamp\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"Actor\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"ApprovalAction\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"ApprovalActionProcessStatus\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"Approver\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"ApprovalActionProcessStatusMessage\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n }\n },\n {\n \"SequenceId\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"Timestamp\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"Actor\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"ApprovalAction\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"ApprovalActionProcessStatus\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"Approver\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"ApprovalActionProcessStatusMessage\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n }\n }\n ]\n },\n {\n \"OrderItemId\": \"occaecat\",\n \"ApprovalType\": \"<string>\",\n \"ApprovalStatus\": \"<string>\",\n \"ItemApprovals\": [\n {\n \"SequenceId\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"Timestamp\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"Actor\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"ApprovalAction\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"ApprovalActionProcessStatus\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"Approver\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"ApprovalActionProcessStatusMessage\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n }\n },\n {\n \"SequenceId\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"Timestamp\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"Actor\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"ApprovalAction\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"ApprovalActionProcessStatus\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"Approver\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"ApprovalActionProcessStatusMessage\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n }\n }\n ]\n }\n ],\n \"NextToken\": \"cupidatat irure incididunt dolor\"\n },\n \"errors\": [\n {\n \"code\": \"Ut adipisicing nostrud\",\n \"message\": \"laboris laborum voluptate adipisicing\",\n \"details\": \"ut sed Excepteur ex\"\n },\n {\n \"code\": \"ex reprehenderit veniam\",\n \"message\": \"minim eu\",\n \"details\": \"minim cupida\"\n }\n ]\n}"
},
{
"name": "Indicates access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.",
"originalRequest": {
"method": "GET",
"header": [
],
"url": {
"raw": "{{baseUrl}}/orders/v0/orders/:orderId/approvals?NextToken=incididunt ea cillum&ItemApprovalTypes=<string>&ItemApprovalStatus=<string>,<string>",
"host": [
"{{baseUrl}}"
],
"path": [
"orders",
"v0",
"orders",
":orderId",
"approvals"
],
"query": [
{
"key": "NextToken",
"value": "incididunt ea cillum"
},
{
"key": "ItemApprovalTypes",
"value": "<string>"
},
{
"key": "ItemApprovalStatus",
"value": "<string>,<string>"
}
],
"variable": [
{
"key": "orderId",
"value": "incididunt ea cillum",
"description": "(Required) An Amazon-defined order identifier, in 3-7-7 format, e.g. 933-1671587-0818628."
}
]
}
},
"status": "Forbidden",
"code": 403,
"_postman_previewlanguage": "json",
"header": [
{
"key": "x-amzn-RequestId",
"value": "incididunt ea cillum",
"description": "Unique request reference identifier."
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"cookie": [
],
"body": "{\n \"payload\": {\n \"OrderItemsApprovalsList\": [\n {\n \"OrderItemId\": \"consequat amet est\",\n \"ApprovalType\": \"<string>\",\n \"ApprovalStatus\": \"<string>\",\n \"ItemApprovals\": [\n {\n \"SequenceId\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"Timestamp\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"Actor\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"ApprovalAction\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"ApprovalActionProcessStatus\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"Approver\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"ApprovalActionProcessStatusMessage\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n }\n },\n {\n \"SequenceId\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"Timestamp\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"Actor\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"ApprovalAction\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"ApprovalActionProcessStatus\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"Approver\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"ApprovalActionProcessStatusMessage\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n }\n }\n ]\n },\n {\n \"OrderItemId\": \"dolore enim\",\n \"ApprovalType\": \"<string>\",\n \"ApprovalStatus\": \"<string>\",\n \"ItemApprovals\": [\n {\n \"SequenceId\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"Timestamp\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"Actor\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"ApprovalAction\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"ApprovalActionProcessStatus\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"Approver\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"ApprovalActionProcessStatusMessage\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n }\n },\n {\n \"SequenceId\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"Timestamp\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"Actor\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"ApprovalAction\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"ApprovalActionProcessStatus\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"Approver\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"ApprovalActionProcessStatusMessage\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n }\n }\n ]\n }\n ],\n \"NextToken\": \"est voluptate et\"\n },\n \"errors\": [\n {\n \"code\": \"qui est dolor\",\n \"message\": \"irure Duis\",\n \"details\": \"proident laborum culpa eu laboris\"\n },\n {\n \"code\": \"adipisicing\",\n \"message\": \"ipsum magna fugiat\",\n \"details\": \"aute officia\"\n }\n ]\n}"
},
{
"name": "The resource specified does not exist.",
"originalRequest": {
"method": "GET",
"header": [
],
"url": {
"raw": "{{baseUrl}}/orders/v0/orders/:orderId/approvals?NextToken=incididunt ea cillum&ItemApprovalTypes=<string>&ItemApprovalStatus=<string>,<string>",
"host": [
"{{baseUrl}}"
],
"path": [
"orders",
"v0",
"orders",
":orderId",
"approvals"
],
"query": [
{
"key": "NextToken",
"value": "incididunt ea cillum"
},
{
"key": "ItemApprovalTypes",
"value": "<string>"
},
{
"key": "ItemApprovalStatus",
"value": "<string>,<string>"
}
],
"variable": [
{
"key": "orderId",
"value": "incididunt ea cillum",
"description": "(Required) An Amazon-defined order identifier, in 3-7-7 format, e.g. 933-1671587-0818628."
}
]
}
},
"status": "Not Found",
"code": 404,
"_postman_previewlanguage": "json",
"header": [
{
"key": "x-amzn-RateLimit-Limit",
"value": "incididunt ea cillum",
"description": "Your rate limit (requests per second) for this operation."
},
{
"key": "x-amzn-RequestId",
"value": "incididunt ea cillum",
"description": "Unique request reference identifier."
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"cookie": [
],
"body": "{\n \"payload\": {\n \"OrderItemsApprovalsList\": [\n {\n \"OrderItemId\": \"consequat amet est\",\n \"ApprovalType\": \"<string>\",\n \"ApprovalStatus\": \"<string>\",\n \"ItemApprovals\": [\n {\n \"SequenceId\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"Timestamp\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"Actor\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"ApprovalAction\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"ApprovalActionProcessStatus\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"Approver\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"ApprovalActionProcessStatusMessage\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n }\n },\n {\n \"SequenceId\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"Timestamp\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"Actor\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"ApprovalAction\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"ApprovalActionProcessStatus\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"Approver\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"ApprovalActionProcessStatusMessage\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n }\n }\n ]\n },\n {\n \"OrderItemId\": \"dolore enim\",\n \"ApprovalType\": \"<string>\",\n \"ApprovalStatus\": \"<string>\",\n \"ItemApprovals\": [\n {\n \"SequenceId\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"Timestamp\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"Actor\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"ApprovalAction\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"ApprovalActionProcessStatus\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"Approver\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"ApprovalActionProcessStatusMessage\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n }\n },\n {\n \"SequenceId\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"Timestamp\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"Actor\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"ApprovalAction\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"ApprovalActionProcessStatus\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"Approver\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"ApprovalActionProcessStatusMessage\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n }\n }\n ]\n }\n ],\n \"NextToken\": \"est voluptate et\"\n },\n \"errors\": [\n {\n \"code\": \"qui est dolor\",\n \"message\": \"irure Duis\",\n \"details\": \"proident laborum culpa eu laboris\"\n },\n {\n \"code\": \"adipisicing\",\n \"message\": \"ipsum magna fugiat\",\n \"details\": \"aute officia\"\n }\n ]\n}"
},
{
"name": "The frequency of requests was greater than allowed.",
"originalRequest": {
"method": "GET",
"header": [
],
"url": {
"raw": "{{baseUrl}}/orders/v0/orders/:orderId/approvals?NextToken=incididunt ea cillum&ItemApprovalTypes=<string>&ItemApprovalStatus=<string>,<string>",
"host": [
"{{baseUrl}}"
],
"path": [
"orders",
"v0",
"orders",
":orderId",
"approvals"
],
"query": [
{
"key": "NextToken",
"value": "incididunt ea cillum"
},
{
"key": "ItemApprovalTypes",
"value": "<string>"
},
{
"key": "ItemApprovalStatus",
"value": "<string>,<string>"
}
],
"variable": [
{
"key": "orderId",
"value": "incididunt ea cillum",
"description": "(Required) An Amazon-defined order identifier, in 3-7-7 format, e.g. 933-1671587-0818628."
}
]
}
},
"status": "Too Many Requests",
"code": 429,
"_postman_previewlanguage": "json",
"header": [
{
"key": "x-amzn-RateLimit-Limit",
"value": "incididunt ea cillum",
"description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned."
},
{
"key": "x-amzn-RequestId",
"value": "incididunt ea cillum",
"description": "Unique request reference identifier."
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"cookie": [
],
"body": "{\n \"payload\": {\n \"OrderItemsApprovalsList\": [\n {\n \"OrderItemId\": \"consequat amet est\",\n \"ApprovalType\": \"<string>\",\n \"ApprovalStatus\": \"<string>\",\n \"ItemApprovals\": [\n {\n \"SequenceId\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"Timestamp\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"Actor\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"ApprovalAction\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"ApprovalActionProcessStatus\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"Approver\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"ApprovalActionProcessStatusMessage\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n }\n },\n {\n \"SequenceId\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"Timestamp\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"Actor\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"ApprovalAction\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"ApprovalActionProcessStatus\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"Approver\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"ApprovalActionProcessStatusMessage\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n }\n }\n ]\n },\n {\n \"OrderItemId\": \"dolore enim\",\n \"ApprovalType\": \"<string>\",\n \"ApprovalStatus\": \"<string>\",\n \"ItemApprovals\": [\n {\n \"SequenceId\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"Timestamp\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"Actor\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"ApprovalAction\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"ApprovalActionProcessStatus\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"Approver\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"ApprovalActionProcessStatusMessage\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n }\n },\n {\n \"SequenceId\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"Timestamp\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"Actor\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"ApprovalAction\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"ApprovalActionProcessStatus\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"Approver\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"ApprovalActionProcessStatusMessage\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n }\n }\n ]\n }\n ],\n \"NextToken\": \"est voluptate et\"\n },\n \"errors\": [\n {\n \"code\": \"qui est dolor\",\n \"message\": \"irure Duis\",\n \"details\": \"proident laborum culpa eu laboris\"\n },\n {\n \"code\": \"adipisicing\",\n \"message\": \"ipsum magna fugiat\",\n \"details\": \"aute officia\"\n }\n ]\n}"
},
{
"name": "An unexpected condition occurred that prevented the server from fulfilling the request.",
"originalRequest": {
"method": "GET",
"header": [
],
"url": {
"raw": "{{baseUrl}}/orders/v0/orders/:orderId/approvals?NextToken=incididunt ea cillum&ItemApprovalTypes=<string>&ItemApprovalStatus=<string>,<string>",
"host": [
"{{baseUrl}}"
],
"path": [
"orders",
"v0",
"orders",
":orderId",
"approvals"
],
"query": [
{
"key": "NextToken",
"value": "incididunt ea cillum"
},
{
"key": "ItemApprovalTypes",
"value": "<string>"
},
{
"key": "ItemApprovalStatus",
"value": "<string>,<string>"
}
],
"variable": [
{
"key": "orderId",
"value": "incididunt ea cillum",
"description": "(Required) An Amazon-defined order identifier, in 3-7-7 format, e.g. 933-1671587-0818628."
}
]
}
},
"status": "Internal Server Error",
"code": 500,
"_postman_previewlanguage": "json",
"header": [
{
"key": "x-amzn-RateLimit-Limit",
"value": "incididunt ea cillum",
"description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned."
},
{
"key": "x-amzn-RequestId",
"value": "incididunt ea cillum",
"description": "Unique request reference identifier."
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"cookie": [
],
"body": "{\n \"payload\": {\n \"OrderItemsApprovalsList\": [\n {\n \"OrderItemId\": \"consequat amet est\",\n \"ApprovalType\": \"<string>\",\n \"ApprovalStatus\": \"<string>\",\n \"ItemApprovals\": [\n {\n \"SequenceId\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"Timestamp\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"Actor\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"ApprovalAction\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"ApprovalActionProcessStatus\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"Approver\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"ApprovalActionProcessStatusMessage\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n }\n },\n {\n \"SequenceId\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"Timestamp\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"Actor\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"ApprovalAction\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"ApprovalActionProcessStatus\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"Approver\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"ApprovalActionProcessStatusMessage\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n }\n }\n ]\n },\n {\n \"OrderItemId\": \"dolore enim\",\n \"ApprovalType\": \"<string>\",\n \"ApprovalStatus\": \"<string>\",\n \"ItemApprovals\": [\n {\n \"SequenceId\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"Timestamp\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"Actor\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"ApprovalAction\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"ApprovalActionProcessStatus\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"Approver\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"ApprovalActionProcessStatusMessage\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n }\n },\n {\n \"SequenceId\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"Timestamp\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"Actor\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"ApprovalAction\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"ApprovalActionProcessStatus\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"Approver\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"ApprovalActionProcessStatusMessage\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n }\n }\n ]\n }\n ],\n \"NextToken\": \"est voluptate et\"\n },\n \"errors\": [\n {\n \"code\": \"qui est dolor\",\n \"message\": \"irure Duis\",\n \"details\": \"proident laborum culpa eu laboris\"\n },\n {\n \"code\": \"adipisicing\",\n \"message\": \"ipsum magna fugiat\",\n \"details\": \"aute officia\"\n }\n ]\n}"
},
{
"name": "Temporary overloading or maintenance of the server.",
"originalRequest": {
"method": "GET",
"header": [
],
"url": {
"raw": "{{baseUrl}}/orders/v0/orders/:orderId/approvals?NextToken=incididunt ea cillum&ItemApprovalTypes=<string>&ItemApprovalStatus=<string>,<string>",
"host": [
"{{baseUrl}}"
],
"path": [
"orders",
"v0",
"orders",
":orderId",
"approvals"
],
"query": [
{
"key": "NextToken",
"value": "incididunt ea cillum"
},
{
"key": "ItemApprovalTypes",
"value": "<string>"
},
{
"key": "ItemApprovalStatus",
"value": "<string>,<string>"
}
],
"variable": [
{
"key": "orderId",
"value": "incididunt ea cillum",
"description": "(Required) An Amazon-defined order identifier, in 3-7-7 format, e.g. 933-1671587-0818628."
}
]
}
},
"status": "Service Unavailable",
"code": 503,
"_postman_previewlanguage": "json",
"header": [
{
"key": "x-amzn-RateLimit-Limit",
"value": "incididunt ea cillum",
"description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned."
},
{
"key": "x-amzn-RequestId",
"value": "incididunt ea cillum",
"description": "Unique request reference identifier."
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"cookie": [
],
"body": "{\n \"payload\": {\n \"OrderItemsApprovalsList\": [\n {\n \"OrderItemId\": \"consequat amet est\",\n \"ApprovalType\": \"<string>\",\n \"ApprovalStatus\": \"<string>\",\n \"ItemApprovals\": [\n {\n \"SequenceId\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"Timestamp\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"Actor\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"ApprovalAction\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"ApprovalActionProcessStatus\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"Approver\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"ApprovalActionProcessStatusMessage\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n }\n },\n {\n \"SequenceId\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"Timestamp\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"Actor\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"ApprovalAction\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"ApprovalActionProcessStatus\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"Approver\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"ApprovalActionProcessStatusMessage\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n }\n }\n ]\n },\n {\n \"OrderItemId\": \"dolore enim\",\n \"ApprovalType\": \"<string>\",\n \"ApprovalStatus\": \"<string>\",\n \"ItemApprovals\": [\n {\n \"SequenceId\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"Timestamp\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"Actor\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"ApprovalAction\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"ApprovalActionProcessStatus\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"Approver\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"ApprovalActionProcessStatusMessage\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n }\n },\n {\n \"SequenceId\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"Timestamp\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"Actor\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"ApprovalAction\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"ApprovalActionProcessStatus\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"Approver\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"ApprovalActionProcessStatusMessage\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n }\n }\n ]\n }\n ],\n \"NextToken\": \"est voluptate et\"\n },\n \"errors\": [\n {\n \"code\": \"qui est dolor\",\n \"message\": \"irure Duis\",\n \"details\": \"proident laborum culpa eu laboris\"\n },\n {\n \"code\": \"adipisicing\",\n \"message\": \"ipsum magna fugiat\",\n \"details\": \"aute officia\"\n }\n ]\n}"
}
]
}