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