Update rate header descriptions and sandbox extension

This commit is contained in:
Abby Menting 2021-08-24 10:36:23 -07:00
parent 827087cdd9
commit 2d1747aa28
1 changed files with 119 additions and 107 deletions

View File

@ -264,17 +264,18 @@
"description": "Unique request reference identifier." "description": "Unique request reference identifier."
} }
}, },
"x-amazon-spds-sandbox-behaviors": [ "x-amzn-api-sandbox": {
{ "static": [
"request": { {
"parameters": { "request": {
"createdBefore": { "parameters": {
"value": "2020-02-20T00:00:00-08:00" "createdBefore": {
}, "value": "2020-02-20T00:00:00-08:00"
"createdAfter": { },
"value": "2020-02-15T14:00:00-08:00" "createdAfter": {
}, "value": "2020-02-15T14:00:00-08:00"
"includeDetails": { },
"includeDetails": {
"value": "true" "value": "true"
}, },
"limit": { "limit": {
@ -1194,7 +1195,8 @@
} }
} }
} }
] ]
}
}, },
"400": { "400": {
"description": "Request has missing or invalid parameters and cannot be parsed.", "description": "Request has missing or invalid parameters and cannot be parsed.",
@ -1211,29 +1213,31 @@
"description": "Unique request reference identifier." "description": "Unique request reference identifier."
} }
}, },
"x-amazon-spds-sandbox-behaviors": [ "x-amzn-api-sandbox": {
{ "static": [
"request": { {
"parameters": { "request": {
"createdBefore": { "parameters": {
"value": "2021-01-2100:00:00" "createdBefore": {
}, "value": "2021-01-2100:00:00"
"createdAfter": { },
"value": "2021-02-20T14:00:00" "createdAfter": {
"value": "2021-02-20T14:00:00"
}
} }
}
}, },
"response": { "response": {
"errors": [ "errors": [
{ {
"code": "InvalidRequest", "code": "InvalidRequest",
"message": "The request is invalid.", "message": "The request is invalid.",
"details": "" "details": ""
} }
] ]
}
} }
} ]
] }
}, },
"403": { "403": {
"description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.",
@ -1271,7 +1275,7 @@
"headers": { "headers": {
"x-amzn-RateLimit-Limit": { "x-amzn-RateLimit-Limit": {
"type": "string", "type": "string",
"description": "Your rate limit (requests per second) for this operation." "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."
}, },
"x-amzn-RequestId": { "x-amzn-RequestId": {
"type": "string", "type": "string",
@ -1287,7 +1291,7 @@
"headers": { "headers": {
"x-amzn-RateLimit-Limit": { "x-amzn-RateLimit-Limit": {
"type": "string", "type": "string",
"description": "Your rate limit (requests per second) for this operation." "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."
}, },
"x-amzn-RequestId": { "x-amzn-RequestId": {
"type": "string", "type": "string",
@ -1303,7 +1307,7 @@
"headers": { "headers": {
"x-amzn-RateLimit-Limit": { "x-amzn-RateLimit-Limit": {
"type": "string", "type": "string",
"description": "Your rate limit (requests per second) for this operation." "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."
}, },
"x-amzn-RequestId": { "x-amzn-RequestId": {
"type": "string", "type": "string",
@ -1319,7 +1323,7 @@
"headers": { "headers": {
"x-amzn-RateLimit-Limit": { "x-amzn-RateLimit-Limit": {
"type": "string", "type": "string",
"description": "Your rate limit (requests per second) for this operation." "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."
}, },
"x-amzn-RequestId": { "x-amzn-RequestId": {
"type": "string", "type": "string",
@ -1470,17 +1474,18 @@
"description": "Unique request reference identifier." "description": "Unique request reference identifier."
} }
}, },
"x-amazon-spds-sandbox-behaviors": [ "x-amzn-api-sandbox": {
{ "static": [
"request": { {
"parameters": { "request": {
"purchaseOrderNumber": { "parameters": {
"value": "2JK3S9VC" "purchaseOrderNumber": {
"value": "2JK3S9VC"
}
} }
} },
}, "response": {
"response": { "payload": {
"payload": {
"purchaseOrderNumber": "2JK3S9VC", "purchaseOrderNumber": "2JK3S9VC",
"orderDetails": { "orderDetails": {
"customerOrderNumber": "123-ABC", "customerOrderNumber": "123-ABC",
@ -1698,7 +1703,8 @@
} }
} }
} }
] ]
}
}, },
"400": { "400": {
"description": "Request has missing or invalid parameters and cannot be parsed.", "description": "Request has missing or invalid parameters and cannot be parsed.",
@ -1715,26 +1721,28 @@
"description": "Unique request reference identifier." "description": "Unique request reference identifier."
} }
}, },
"x-amazon-spds-sandbox-behaviors": [ "x-amzn-api-sandbox": {
{ "static": [
"request": { {
"parameters": { "request": {
"purchaseOrderNumber": { "parameters": {
"value": "null" "purchaseOrderNumber": {
"value": "null"
}
} }
},
"response": {
"errors": [
{
"code": "InvalidRequest",
"message": "Request is missing or has invalid parameters",
"details": "purchaseOrderNumber cannot be null"
}
]
} }
},
"response": {
"errors": [
{
"code": "InvalidRequest",
"message": "Request is missing or has invalid parameters",
"details": "purchaseOrderNumber cannot be null"
}
]
} }
} ]
] }
}, },
"401": { "401": {
"description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.",
@ -1744,7 +1752,7 @@
"headers": { "headers": {
"x-amzn-RateLimit-Limit": { "x-amzn-RateLimit-Limit": {
"type": "string", "type": "string",
"description": "Your rate limit (requests per second) for this operation." "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."
}, },
"x-amzn-RequestId": { "x-amzn-RequestId": {
"type": "string", "type": "string",
@ -1788,7 +1796,7 @@
"headers": { "headers": {
"x-amzn-RateLimit-Limit": { "x-amzn-RateLimit-Limit": {
"type": "string", "type": "string",
"description": "Your rate limit (requests per second) for this operation." "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."
}, },
"x-amzn-RequestId": { "x-amzn-RequestId": {
"type": "string", "type": "string",
@ -1804,7 +1812,7 @@
"headers": { "headers": {
"x-amzn-RateLimit-Limit": { "x-amzn-RateLimit-Limit": {
"type": "string", "type": "string",
"description": "Your rate limit (requests per second) for this operation." "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."
}, },
"x-amzn-RequestId": { "x-amzn-RequestId": {
"type": "string", "type": "string",
@ -1820,7 +1828,7 @@
"headers": { "headers": {
"x-amzn-RateLimit-Limit": { "x-amzn-RateLimit-Limit": {
"type": "string", "type": "string",
"description": "Your rate limit (requests per second) for this operation." "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."
}, },
"x-amzn-RequestId": { "x-amzn-RequestId": {
"type": "string", "type": "string",
@ -1836,7 +1844,7 @@
"headers": { "headers": {
"x-amzn-RateLimit-Limit": { "x-amzn-RateLimit-Limit": {
"type": "string", "type": "string",
"description": "Your rate limit (requests per second) for this operation." "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."
}, },
"x-amzn-RequestId": { "x-amzn-RequestId": {
"type": "string", "type": "string",
@ -1880,17 +1888,18 @@
"description": "Unique request reference identifier." "description": "Unique request reference identifier."
} }
}, },
"x-amazon-spds-sandbox-behaviors": [ "x-amzn-api-sandbox": {
{ "static": [
"request": { {
"parameters": { "request": {
"body": { "parameters": {
"value": { "body": {
"orderAcknowledgements": [ "value": {
{ "orderAcknowledgements": [
"purchaseOrderNumber": "2JK3S9VC", {
"vendorOrderNumber": "ABC", "purchaseOrderNumber": "2JK3S9VC",
"acknowledgementDate": "2020-02-20T19:17:34.304Z", "vendorOrderNumber": "ABC",
"acknowledgementDate": "2020-02-20T19:17:34.304Z",
"acknowledgementStatus": { "acknowledgementStatus": {
"code": "00", "code": "00",
"description": "Shipping 100 percent of ordered product" "description": "Shipping 100 percent of ordered product"
@ -1936,7 +1945,8 @@
} }
} }
} }
] ]
}
}, },
"400": { "400": {
"description": "Request has missing or invalid parameters and cannot be parsed.", "description": "Request has missing or invalid parameters and cannot be parsed.",
@ -1953,33 +1963,35 @@
"description": "Unique request reference identifier." "description": "Unique request reference identifier."
} }
}, },
"x-amazon-spds-sandbox-behaviors": [ "x-amzn-api-sandbox": {
{ "static": [
"request": { {
"parameters": { "request": {
"body": { "parameters": {
"value": { "body": {
"orderAcknowledgements": [ "value": {
{ "orderAcknowledgements": [
"purchaseOrderNumber": "TestOrder400", {
"sellingParty": {} "purchaseOrderNumber": "TestOrder400",
} "sellingParty": {}
}
] ]
} }
} }
} }
}, },
"response": { "response": {
"errors": [ "errors": [
{ {
"code": "InvalidInput", "code": "InvalidInput",
"message": "The content of element 'sellingParty' is not complete. One of '{partyId, address, taxInfo}' is expected.", "message": "The content of element 'sellingParty' is not complete. One of '{partyId, address, taxInfo}' is expected.",
"details": "" "details": ""
} }
] ]
}
} }
} ]
] }
}, },
"403": { "403": {
"description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.",
@ -2017,7 +2029,7 @@
"headers": { "headers": {
"x-amzn-RateLimit-Limit": { "x-amzn-RateLimit-Limit": {
"type": "string", "type": "string",
"description": "Your rate limit (requests per second) for this operation." "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."
}, },
"x-amzn-RequestId": { "x-amzn-RequestId": {
"type": "string", "type": "string",
@ -2033,7 +2045,7 @@
"headers": { "headers": {
"x-amzn-RateLimit-Limit": { "x-amzn-RateLimit-Limit": {
"type": "string", "type": "string",
"description": "Your rate limit (requests per second) for this operation." "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."
}, },
"x-amzn-RequestId": { "x-amzn-RequestId": {
"type": "string", "type": "string",
@ -2049,7 +2061,7 @@
"headers": { "headers": {
"x-amzn-RateLimit-Limit": { "x-amzn-RateLimit-Limit": {
"type": "string", "type": "string",
"description": "Your rate limit (requests per second) for this operation." "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."
}, },
"x-amzn-RequestId": { "x-amzn-RequestId": {
"type": "string", "type": "string",
@ -2065,7 +2077,7 @@
"headers": { "headers": {
"x-amzn-RateLimit-Limit": { "x-amzn-RateLimit-Limit": {
"type": "string", "type": "string",
"description": "Your rate limit (requests per second) for this operation." "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."
}, },
"x-amzn-RequestId": { "x-amzn-RequestId": {
"type": "string", "type": "string",
@ -2081,7 +2093,7 @@
"headers": { "headers": {
"x-amzn-RateLimit-Limit": { "x-amzn-RateLimit-Limit": {
"type": "string", "type": "string",
"description": "Your rate limit (requests per second) for this operation." "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."
}, },
"x-amzn-RequestId": { "x-amzn-RequestId": {
"type": "string", "type": "string",