Back to Collection Items
#import <CkoHttp.h>
#import <CkoJsonObject.h>
#import <CkoHttpResponse.h>
#import <CkoStringBuilder.h>
#import <NSString.h>
// This example assumes the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.
CkoHttp *http = [[CkoHttp alloc] init];
BOOL success;
CkoJsonObject *queryParams = [[CkoJsonObject alloc] init];
[queryParams UpdateString: @"NextToken" value: @"incididunt ea cillum"];
[queryParams UpdateString: @"ItemApprovalTypes" value: @"<string>"];
[queryParams UpdateString: @"ItemApprovalStatus" value: @"<string>,<string>"];
[http SetRequestHeader: @"Accept" value: @"application/json"];
CkoHttpResponse *resp = [http QuickRequestParams: @"GET" url: @"https://sellingpartnerapi-na.amazon.com/orders/v0/orders/:orderId/approvals" json: queryParams];
if (http.LastMethodSuccess == NO) {
NSLog(@"%@",http.LastErrorText);
return;
}
CkoStringBuilder *sbResponseBody = [[CkoStringBuilder alloc] init];
[resp GetBodySb: sbResponseBody];
CkoJsonObject *jResp = [[CkoJsonObject alloc] init];
[jResp LoadSb: sbResponseBody];
jResp.EmitCompact = NO;
NSLog(@"%@",@"Response Body:");
NSLog(@"%@",[jResp Emit]);
int respStatusCode = [resp.StatusCode intValue];
NSLog(@"%@%d",@"Response Status Code = ",respStatusCode);
if (respStatusCode >= 400) {
NSLog(@"%@",@"Response Header:");
NSLog(@"%@",resp.Header);
NSLog(@"%@",@"Failed.");
return;
}
// 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
NSString *OrderItemId = 0;
NSString *ApprovalType = 0;
NSString *ApprovalStatus = 0;
int j;
int count_j;
int SequenceId;
NSString *Timestamp = 0;
NSString *Actor = 0;
NSString *Approver = 0;
NSString *ApprovalActionProcessStatus = 0;
NSString *ApprovalActionProcessStatusMessage = 0;
NSString *ActionType = 0;
NSString *Comment = 0;
NSString *CurrencyCode = 0;
NSString *Amount = 0;
int Quantity;
NSString *IdentifierType = 0;
NSString *Identifier = 0;
NSString *NextToken = [jResp StringOf: @"payload.NextToken"];
int i = 0;
int count_i = [[jResp SizeOfArray: @"payload.OrderItemsApprovalsList"] intValue];
while (i < count_i) {
jResp.I = [NSNumber numberWithInt: i];
OrderItemId = [jResp StringOf: @"payload.OrderItemsApprovalsList[i].OrderItemId"];
ApprovalType = [jResp StringOf: @"payload.OrderItemsApprovalsList[i].ApprovalType"];
ApprovalStatus = [jResp StringOf: @"payload.OrderItemsApprovalsList[i].ApprovalStatus"];
j = 0;
count_j = [[jResp SizeOfArray: @"payload.OrderItemsApprovalsList[i].ItemApprovals"] intValue];
while (j < count_j) {
jResp.J = [NSNumber numberWithInt: j];
SequenceId = [[jResp IntOf: @"payload.OrderItemsApprovalsList[i].ItemApprovals[j].SequenceId"] intValue];
Timestamp = [jResp StringOf: @"payload.OrderItemsApprovalsList[i].ItemApprovals[j].Timestamp"];
Actor = [jResp StringOf: @"payload.OrderItemsApprovalsList[i].ItemApprovals[j].Actor"];
Approver = [jResp StringOf: @"payload.OrderItemsApprovalsList[i].ItemApprovals[j].Approver"];
ApprovalActionProcessStatus = [jResp StringOf: @"payload.OrderItemsApprovalsList[i].ItemApprovals[j].ApprovalActionProcessStatus"];
ApprovalActionProcessStatusMessage = [jResp StringOf: @"payload.OrderItemsApprovalsList[i].ItemApprovals[j].ApprovalActionProcessStatusMessage"];
ActionType = [jResp StringOf: @"payload.OrderItemsApprovalsList[i].ItemApprovals[j].ApprovalAction.ActionType"];
Comment = [jResp StringOf: @"payload.OrderItemsApprovalsList[i].ItemApprovals[j].ApprovalAction.Comment"];
CurrencyCode = [jResp StringOf: @"payload.OrderItemsApprovalsList[i].ItemApprovals[j].ApprovalAction.Changes.ItemPrice.CurrencyCode"];
Amount = [jResp StringOf: @"payload.OrderItemsApprovalsList[i].ItemApprovals[j].ApprovalAction.Changes.ItemPrice.Amount"];
Quantity = [[jResp IntOf: @"payload.OrderItemsApprovalsList[i].ItemApprovals[j].ApprovalAction.Changes.Quantity"] intValue];
IdentifierType = [jResp StringOf: @"payload.OrderItemsApprovalsList[i].ItemApprovals[j].ApprovalAction.Changes.SubstitutedBy.IdentifierType"];
Identifier = [jResp StringOf: @"payload.OrderItemsApprovalsList[i].ItemApprovals[j].ApprovalAction.Changes.SubstitutedBy.Identifier"];
j = j + 1;
}
i = i + 1;
}
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}"
}
]
}