Closed zuotaopeng closed 2 weeks ago
variations
is not a valid value to include in the includedData
array. See below valid values.
{
"name": "includedData",
"description": "A comma-delimited list of data sets to include in the response. Default: `summaries`.",
"in": "query",
"required": false,
"type": "array",
"items":
{
"enum":
[
"attributes",
"classifications",
"dimensions",
"identifiers",
"images",
"productTypes",
"relationships",
"salesRanks",
"summaries",
"vendorDetails"
],
"type": "string",
"x-docgen-enum-table-extension":
[
{
"value": "attributes",
"description": "A JSON object containing structured item attribute data keyed by attribute name. Catalog item attributes conform to the related Amazon product type definitions available in the Selling Partner API for Product Type Definitions."
},
{
"value": "classifications",
"description": "Classifications (browse nodes) for an item in the Amazon catalog."
},
{
"value": "dimensions",
"description": "Dimensions for an item in the Amazon catalog."
},
{
"value": "identifiers",
"description": "Identifiers associated with the item in the Amazon catalog, such as UPC and EAN identifiers."
},
{
"value": "images",
"description": "Images for an item in the Amazon catalog."
},
{
"value": "productTypes",
"description": "Product types associated with the Amazon catalog item."
},
{
"value": "relationships",
"description": "Relationship details of an Amazon catalog item (for example, variations)."
},
{
"value": "salesRanks",
"description": "Sales ranks of an Amazon catalog item."
},
{
"value": "summaries",
"description": "Summary details of an Amazon catalog item. Refer to the `attributes` of an Amazon catalog item for more details."
},
{
"value": "vendorDetails",
"description": "Vendor details associated with an Amazon catalog item. Vendor details are available to vendors only."
}
]
},
"collectionFormat": "csv",
"x-example": "summaries",
"default":
[
"summaries"
]
}```
If I add 'variations' into the includeData array, it shows the exception below, but if I removed 'variations', I can get the right item infomation.
Exception:[400] Error connecting to the API (https://sellingpartnerapi-fe.amazon.com/catalog/2022-04-01/items/B0CPL57QVZ?marketplaceIds=A1VC38T7YXB528&includedData=images%2Csummaries%2CsalesRanks%2CproductTypes%2Cattributes%2Cvariations)
$item = $sdk->catalogItem()->getCatalogItem( $accessToken, $region, $asin, $marketplace_ids, ['images','summaries','salesRanks','productTypes','attributes','variations'], );