Back to Collection Items
LOCAL loHttp
LOCAL lnSuccess
LOCAL loQueryParams
LOCAL loResp
LOCAL loSbResponseBody
LOCAL loJResp
LOCAL lnRespStatusCode
LOCAL lcOrderItemId
LOCAL lcApprovalType
LOCAL lcApprovalStatus
LOCAL j
LOCAL lnCount_j
LOCAL lnSequenceId
LOCAL lcTimestamp
LOCAL lcActor
LOCAL lcApprover
LOCAL lcApprovalActionProcessStatus
LOCAL lcApprovalActionProcessStatusMessage
LOCAL lcActionType
LOCAL lcComment
LOCAL lcCurrencyCode
LOCAL lcAmount
LOCAL lnQuantity
LOCAL lcIdentifierType
LOCAL lcIdentifier
LOCAL lcNextToken
LOCAL i
LOCAL lnCount_i
* This example assumes the Chilkat API to have been previously unlocked.
* See Global Unlock Sample for sample code.
* For versions of Chilkat < 10.0.0, use CreateObject('Chilkat_9_5_0.Http')
loHttp = CreateObject('Chilkat.Http')
* For versions of Chilkat < 10.0.0, use CreateObject('Chilkat_9_5_0.JsonObject')
loQueryParams = CreateObject('Chilkat.JsonObject')
loQueryParams.UpdateString("NextToken","incididunt ea cillum")
loQueryParams.UpdateString("ItemApprovalTypes","<string>")
loQueryParams.UpdateString("ItemApprovalStatus","<string>,<string>")
loHttp.SetRequestHeader("Accept","application/json")
loResp = loHttp.QuickRequestParams("GET","https://sellingpartnerapi-na.amazon.com/orders/v0/orders/:orderId/approvals",loQueryParams)
IF (loHttp.LastMethodSuccess = 0) THEN
? loHttp.LastErrorText
RELEASE loHttp
RELEASE loQueryParams
CANCEL
ENDIF
* For versions of Chilkat < 10.0.0, use CreateObject('Chilkat_9_5_0.StringBuilder')
loSbResponseBody = CreateObject('Chilkat.StringBuilder')
loResp.GetBodySb(loSbResponseBody)
* For versions of Chilkat < 10.0.0, use CreateObject('Chilkat_9_5_0.JsonObject')
loJResp = CreateObject('Chilkat.JsonObject')
loJResp.LoadSb(loSbResponseBody)
loJResp.EmitCompact = 0
? "Response Body:"
? loJResp.Emit()
lnRespStatusCode = loResp.StatusCode
? "Response Status Code = " + STR(lnRespStatusCode)
IF (lnRespStatusCode >= 400) THEN
? "Response Header:"
? loResp.Header
? "Failed."
RELEASE loResp
RELEASE loHttp
RELEASE loQueryParams
RELEASE loSbResponseBody
RELEASE loJResp
CANCEL
ENDIF
RELEASE loResp
* 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
lcNextToken = loJResp.StringOf("payload.NextToken")
i = 0
lnCount_i = loJResp.SizeOfArray("payload.OrderItemsApprovalsList")
DO WHILE i < lnCount_i
loJResp.I = i
lcOrderItemId = loJResp.StringOf("payload.OrderItemsApprovalsList[i].OrderItemId")
lcApprovalType = loJResp.StringOf("payload.OrderItemsApprovalsList[i].ApprovalType")
lcApprovalStatus = loJResp.StringOf("payload.OrderItemsApprovalsList[i].ApprovalStatus")
j = 0
lnCount_j = loJResp.SizeOfArray("payload.OrderItemsApprovalsList[i].ItemApprovals")
DO WHILE j < lnCount_j
loJResp.J = j
lnSequenceId = loJResp.IntOf("payload.OrderItemsApprovalsList[i].ItemApprovals[j].SequenceId")
lcTimestamp = loJResp.StringOf("payload.OrderItemsApprovalsList[i].ItemApprovals[j].Timestamp")
lcActor = loJResp.StringOf("payload.OrderItemsApprovalsList[i].ItemApprovals[j].Actor")
lcApprover = loJResp.StringOf("payload.OrderItemsApprovalsList[i].ItemApprovals[j].Approver")
lcApprovalActionProcessStatus = loJResp.StringOf("payload.OrderItemsApprovalsList[i].ItemApprovals[j].ApprovalActionProcessStatus")
lcApprovalActionProcessStatusMessage = loJResp.StringOf("payload.OrderItemsApprovalsList[i].ItemApprovals[j].ApprovalActionProcessStatusMessage")
lcActionType = loJResp.StringOf("payload.OrderItemsApprovalsList[i].ItemApprovals[j].ApprovalAction.ActionType")
lcComment = loJResp.StringOf("payload.OrderItemsApprovalsList[i].ItemApprovals[j].ApprovalAction.Comment")
lcCurrencyCode = loJResp.StringOf("payload.OrderItemsApprovalsList[i].ItemApprovals[j].ApprovalAction.Changes.ItemPrice.CurrencyCode")
lcAmount = loJResp.StringOf("payload.OrderItemsApprovalsList[i].ItemApprovals[j].ApprovalAction.Changes.ItemPrice.Amount")
lnQuantity = loJResp.IntOf("payload.OrderItemsApprovalsList[i].ItemApprovals[j].ApprovalAction.Changes.Quantity")
lcIdentifierType = loJResp.StringOf("payload.OrderItemsApprovalsList[i].ItemApprovals[j].ApprovalAction.Changes.SubstitutedBy.IdentifierType")
lcIdentifier = loJResp.StringOf("payload.OrderItemsApprovalsList[i].ItemApprovals[j].ApprovalAction.Changes.SubstitutedBy.Identifier")
j = j + 1
ENDDO
i = i + 1
ENDDO
RELEASE loHttp
RELEASE loQueryParams
RELEASE loSbResponseBody
RELEASE loJResp
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}"
}
]
}