Update pricing model for product pricing fields

Also fixed availableDate type
This commit is contained in:
rickdeee 2021-08-24 16:28:10 -07:00
parent 074b1856d9
commit ed47f54a61
1 changed files with 209 additions and 151 deletions

View File

@ -156,17 +156,18 @@
"description": "Unique request reference ID."
}
},
"x-amazon-spds-sandbox-behaviors": [
{
"request": {
"parameters": {
"MarketplaceId": {
"value": "ATVPDKIKX0DER"
},
"ItemType": {
"value": "Asin"
"x-amzn-api-sandbox": {
"static": [
{
"request": {
"parameters": {
"MarketplaceId": {
"value": "ATVPDKIKX0DER"
},
"ItemType": {
"value": "Asin"
}
}
}
},
"response": {
"payload": [
@ -416,16 +417,16 @@
"quantityDiscountPrices": [
{
"quantityTier": 2,
"quantityDiscountType": "QuantityDiscount",
"price": {
"quantityDiscountType": "QUANTITY_DISCOUNT",
"listingPrice": {
"CurrencyCode": "USD",
"Amount": 8.0
}
},
{
"quantityTier": 3,
"quantityDiscountType": "QuantityDiscount",
"price": {
"quantityDiscountType": "QUANTITY_DISCOUNT",
"listingPrice": {
"CurrencyCode": "USD",
"Amount": 7.0
}
@ -486,7 +487,8 @@
]
}
}
]
]
}
},
"400": {
"description": "Request has missing or invalid parameters and cannot be parsed.",
@ -503,25 +505,27 @@
"description": "Unique request reference ID."
}
},
"x-amazon-spds-sandbox-behaviors": [
{
"request": {
"parameters": {
"MarketplaceId": {
"value": "TEST_CASE_400"
"x-amzn-api-sandbox": {
"static": [
{
"request": {
"parameters": {
"MarketplaceId": {
"value": "TEST_CASE_400"
}
}
},
"response": {
"errors": [
{
"code": "InvalidInput",
"message": "Invalid Input"
}
]
}
},
"response": {
"errors": [
{
"code": "InvalidInput",
"message": "Invalid Input"
}
]
}
}
]
]
}
},
"401": {
"description": "The request's Authorization header is not formatted correctly or does not contain a valid token.",
@ -531,7 +535,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",
@ -575,7 +579,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",
@ -591,7 +595,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",
@ -607,7 +611,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",
@ -714,17 +718,18 @@
"description": "Unique request reference ID."
}
},
"x-amazon-spds-sandbox-behaviors": [
{
"request": {
"parameters": {
"MarketplaceId": {
"value": "ATVPDKIKX0DER"
},
"ItemType": {
"value": "Asin"
"x-amzn-api-sandbox": {
"static": [
{
"request": {
"parameters": {
"MarketplaceId": {
"value": "ATVPDKIKX0DER"
},
"ItemType": {
"value": "Asin"
}
}
}
},
"response": {
"payload": [
@ -1279,7 +1284,7 @@
"condition": "new",
"offerType": "B2B",
"quantityTier": 3,
"quantityDiscountType": "QuantityDiscount",
"quantityDiscountType": "QUANTITY_DISCOUNT",
"sellerId": "A2UIDM8BZ902A",
"belongsToRequester": true
},
@ -1294,7 +1299,7 @@
"condition": "new",
"offerType": "B2B",
"quantityTier": 5,
"quantityDiscountType": "QuantityDiscount",
"quantityDiscountType": "QUANTITY_DISCOUNT",
"sellerId": "A2UIDM8BZ902A",
"belongsToRequester": true
}
@ -1386,7 +1391,8 @@
]
}
}
]
]
}
},
"400": {
"description": "Request has missing or invalid parameters and cannot be parsed.",
@ -1403,25 +1409,27 @@
"description": "Unique request reference ID."
}
},
"x-amazon-spds-sandbox-behaviors": [
{
"request": {
"parameters": {
"MarketplaceId": {
"value": "TEST_CASE_400"
"x-amzn-api-sandbox": {
"static": [
{
"request": {
"parameters": {
"MarketplaceId": {
"value": "TEST_CASE_400"
}
}
},
"response": {
"errors": [
{
"code": "InvalidInput",
"message": "Invalid Input"
}
]
}
},
"response": {
"errors": [
{
"code": "InvalidInput",
"message": "Invalid Input"
}
]
}
}
]
]
}
},
"401": {
"description": "The request's Authorization header is not formatted correctly or does not contain a valid token.",
@ -1431,7 +1439,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",
@ -1475,7 +1483,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",
@ -1491,7 +1499,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",
@ -1507,7 +1515,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",
@ -1614,17 +1622,18 @@
"description": "Unique request reference ID."
}
},
"x-amazon-spds-sandbox-behaviors": [
{
"request": {
"parameters": {
"SellerSKU": {
"value": "NABetaASINB00V5DG6IQ"
},
"MarketplaceId": {
"value": "ATVPDKIKX0DER"
"x-amzn-api-sandbox": {
"static": [
{
"request": {
"parameters": {
"SellerSKU": {
"value": "NABetaASINB00V5DG6IQ"
},
"MarketplaceId": {
"value": "ATVPDKIKX0DER"
}
}
}
},
"response": {
"payload": {
@ -1694,6 +1703,7 @@
},
"SubCondition": "new",
"IsFeaturedMerchant": false,
"SellerId": "ATVPDKIKX0DER",
"MyOffer": true,
"IsFulfilledByAmazon": false
}
@ -1750,7 +1760,7 @@
"fulfillmentChannel": "Merchant",
"offerType": "B2B",
"quantityTier": 20,
"quantityDiscountType": "QuantityDiscount",
"quantityDiscountType": "QUANTITY_DISCOUNT",
"ListingPrice": {
"CurrencyCode": "USD",
"Amount": 8.00
@ -1761,7 +1771,7 @@
"fulfillmentChannel": "Merchant",
"offerType": "B2B",
"quantityTier": 30,
"quantityDiscountType": "QuantityDiscount",
"quantityDiscountType": "QUANTITY_DISCOUNT",
"ListingPrice": {
"CurrencyCode": "USD",
"Amount": 6.00
@ -1802,7 +1812,7 @@
"condition": "new",
"offerType": "B2B",
"quantityTier": 20,
"quantityDiscountType": "QuantityDiscount",
"quantityDiscountType": "QUANTITY_DISCOUNT",
"ListingPrice": {
"Amount": 8.00,
"CurrencyCode": "USD"
@ -1813,7 +1823,7 @@
"condition": "new",
"offerType": "B2B",
"quantityTier": 30,
"quantityDiscountType": "QuantityDiscount",
"quantityDiscountType": "QUANTITY_DISCOUNT",
"ListingPrice": {
"Amount": 7.00,
"CurrencyCode": "USD"
@ -1837,16 +1847,16 @@
"quantityDiscountPrices": [
{
"quantityTier": 2,
"quantityDiscountType": "QuantityDiscount",
"price": {
"quantityDiscountType": "QUANTITY_DISCOUNT",
"listingPrice": {
"Amount": 8.00,
"CurrencyCode": "USD"
}
},
{
"quantityTier": 3,
"quantityDiscountType": "QuantityDiscount",
"price": {
"quantityDiscountType": "QUANTITY_DISCOUNT",
"listingPrice": {
"Amount": 7.00,
"CurrencyCode": "USD"
}
@ -1867,6 +1877,7 @@
},
"SubCondition": "new",
"IsFeaturedMerchant": false,
"SellerId": "ATVPDKIKX0DER",
"MyOffer": true,
"IsFulfilledByAmazon": false
}
@ -1875,7 +1886,8 @@
}
}
}
]
]
}
},
"400": {
"description": "Request has missing or invalid parameters and cannot be parsed.",
@ -1892,25 +1904,27 @@
"description": "Unique request reference ID."
}
},
"x-amazon-spds-sandbox-behaviors": [
{
"request": {
"parameters": {
"SellerSKU": {
"value": "TEST_CASE_400"
"x-amzn-api-sandbox": {
"static": [
{
"request": {
"parameters": {
"SellerSKU": {
"value": "TEST_CASE_400"
}
}
},
"response": {
"errors": [
{
"code": "InvalidInput",
"message": "Invalid Input"
}
]
}
},
"response": {
"errors": [
{
"code": "InvalidInput",
"message": "Invalid Input"
}
]
}
}
]
]
}
},
"401": {
"description": "The request's Authorization header is not formatted correctly or does not contain a valid token.",
@ -1920,7 +1934,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",
@ -1964,7 +1978,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",
@ -1980,7 +1994,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",
@ -1996,7 +2010,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",
@ -2103,17 +2117,18 @@
"description": "Unique request reference ID."
}
},
"x-amazon-spds-sandbox-behaviors": [
{
"request": {
"parameters": {
"Asin": {
"value": "B00V5DG6IQ"
},
"MarketplaceId": {
"value": "ATVPDKIKX0DER"
"x-amzn-api-sandbox": {
"static": [
{
"request": {
"parameters": {
"Asin": {
"value": "B00V5DG6IQ"
},
"MarketplaceId": {
"value": "ATVPDKIKX0DER"
}
}
}
},
"response": {
"payload": {
@ -2183,6 +2198,7 @@
},
"SubCondition": "new",
"IsFeaturedMerchant": false,
"SellerId": "ATVPDKIKX0DER",
"IsFulfilledByAmazon": false
}
],
@ -2238,7 +2254,7 @@
"fulfillmentChannel": "Merchant",
"offerType": "B2B",
"quantityTier": 20,
"quantityDiscountType": "QuantityDiscount",
"quantityDiscountType": "QUANTITY_DISCOUNT",
"ListingPrice": {
"CurrencyCode": "USD",
"Amount": 8.00
@ -2249,7 +2265,7 @@
"fulfillmentChannel": "Merchant",
"offerType": "B2B",
"quantityTier": 30,
"quantityDiscountType": "QuantityDiscount",
"quantityDiscountType": "QUANTITY_DISCOUNT",
"ListingPrice": {
"CurrencyCode": "USD",
"Amount": 6.00
@ -2290,7 +2306,7 @@
"condition": "new",
"offerType": "B2B",
"quantityTier": 20,
"quantityDiscountType": "QuantityDiscount",
"quantityDiscountType": "QUANTITY_DISCOUNT",
"ListingPrice": {
"Amount": 8.00,
"CurrencyCode": "USD"
@ -2301,7 +2317,7 @@
"condition": "new",
"offerType": "B2B",
"quantityTier": 30,
"quantityDiscountType": "QuantityDiscount",
"quantityDiscountType": "QUANTITY_DISCOUNT",
"ListingPrice": {
"Amount": 7.00,
"CurrencyCode": "USD"
@ -2325,16 +2341,16 @@
"quantityDiscountPrices": [
{
"quantityTier": 20,
"quantityDiscountType": "QuantityDiscount",
"price": {
"quantityDiscountType": "QUANTITY_DISCOUNT",
"listingPrice": {
"Amount": 8.00,
"CurrencyCode": "USD"
}
},
{
"quantityTier": 30,
"quantityDiscountType": "QuantityDiscount",
"price": {
"quantityDiscountType": "QUANTITY_DISCOUNT",
"listingPrice": {
"Amount": 7.00,
"CurrencyCode": "USD"
}
@ -2355,6 +2371,7 @@
},
"SubCondition": "new",
"IsFeaturedMerchant": false,
"SellerId": "ATVPDKIKX0DER",
"MyOffer": true,
"IsFulfilledByAmazon": false
}
@ -2363,7 +2380,8 @@
}
}
}
]
]
}
},
"400": {
"description": "Request has missing or invalid parameters and cannot be parsed.",
@ -2380,25 +2398,27 @@
"description": "Unique request reference ID."
}
},
"x-amazon-spds-sandbox-behaviors": [
{
"request": {
"parameters": {
"Asin": {
"value": "TEST_CASE_400"
"x-amzn-api-sandbox": {
"static": [
{
"request": {
"parameters": {
"Asin": {
"value": "TEST_CASE_400"
}
}
},
"response": {
"errors": [
{
"code": "InvalidInput",
"message": "Invalid Input"
}
]
}
},
"response": {
"errors": [
{
"code": "InvalidInput",
"message": "Invalid Input"
}
]
}
}
]
]
}
},
"401": {
"description": "The request's Authorization header is not formatted correctly or does not contain a valid token.",
@ -2408,7 +2428,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",
@ -2452,7 +2472,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",
@ -2468,7 +2488,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",
@ -2484,7 +2504,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",
@ -2939,7 +2959,7 @@
"required": [
"quantityTier",
"quantityDiscountType",
"price"
"listingPrice"
],
"properties": {
"quantityTier": {
@ -2951,7 +2971,7 @@
"description": "Indicates the type of quantity discount this price applies to.",
"$ref": "#/definitions/QuantityDiscountType"
},
"price": {
"listingPrice": {
"description": "The price at this quantity tier.",
"$ref": "#/definitions/MoneyType"
}
@ -2960,11 +2980,11 @@
"QuantityDiscountType": {
"type": "string",
"enum": [
"QuantityDiscount"
"QUANTITY_DISCOUNT"
],
"x-docgen-enum-table-extension": [
{
"value": "QuantityDiscount",
"value": "QUANTITY_DISCOUNT",
"description": "Quantity Discount"
}
]
@ -3069,10 +3089,18 @@
"description": "The list price of the item as suggested by the manufacturer.",
"$ref": "#/definitions/MoneyType"
},
"CompetitivePriceThreshold" : {
"description": "This price is based on competitive prices from other retailers (excluding other Amazon sellers). The offer may be ineligible for the Buy Box if the seller's price + shipping (minus Amazon Points) is greater than this competitive price.",
"$ref" : "#/definitions/MoneyType"
},
"SuggestedLowerPricePlusShipping": {
"description": "The suggested lower price of the item, including shipping and Amazon Points. The suggested lower price is based on a range of factors, including historical selling prices, recent Buy Box-eligible prices, and input from customers for your products.",
"$ref": "#/definitions/MoneyType"
},
"SalesRankings" : {
"description": "A list that contains the sales rank of the item in the given product categories.",
"$ref" : "#/definitions/SalesRankList"
},
"BuyBoxEligibleOffers": {
"description": "A list that contains the total number of offers that are eligible for the Buy Box for the given conditions and fulfillment channels.",
"$ref": "#/definitions/BuyBoxEligibleOffers"
@ -3276,6 +3304,14 @@
"type": "string",
"description": "The subcondition of the item. Subcondition values: New, Mint, Very Good, Good, Acceptable, Poor, Club, OEM, Warranty, Refurbished Warranty, Refurbished, Open Box, or Other."
},
"SellerId": {
"description": "The seller identifier for the offer.",
"type": "string"
},
"ConditionNotes": {
"description": "Information about the condition of the item.",
"type": "string"
},
"SellerFeedbackRating": {
"description": "Information about the seller's feedback, including the percentage of positive feedback, and the total number of ratings received.",
"$ref": "#/definitions/SellerFeedbackType"
@ -3310,6 +3346,10 @@
"type": "boolean",
"description": "When true, the offer is fulfilled by Amazon."
},
"PrimeInformation": {
"description": "Amazon Prime information.",
"$ref": "#/definitions/PrimeInformationType"
},
"IsBuyBoxWinner": {
"type": "boolean",
"description": "When true, the offer is currently in the Buy Box. There can be up to two Buy Box winners at any time per ASIN, one that is eligible for Prime and one that is not eligible for Prime."
@ -3320,6 +3360,24 @@
}
}
},
"PrimeInformationType" : {
"description": "Amazon Prime information.",
"type" : "object",
"required" : [
"IsPrime",
"IsNationalPrime"
],
"properties" : {
"IsPrime" : {
"description": "Indicates whether the offer is an Amazon Prime offer.",
"type" : "boolean"
},
"IsNationalPrime" : {
"description": "Indicates whether the offer is an Amazon Prime offer throughout the entire marketplace where it is listed.",
"type" : "boolean"
}
}
},
"SellerFeedbackType": {
"type": "object",
"required": [
@ -3360,7 +3418,7 @@
"description": "The maximum time, in hours, that the item will likely be shipped after the order has been placed."
},
"availableDate": {
"type": "number",
"type": "string",
"description": "The date when the item will be available for shipping. Only displayed for items that are not currently available for shipping."
},
"availabilityType": {