amz-tools / amazon-sp-api

Amazon Selling Partner API Client
MIT License
234 stars 120 forks source link

Listings Item More Details #114

Open vincent-the opened 2 years ago

vincent-the commented 2 years ago

Is it possible to view or change the information of a product from the 'More Details' tab (in the sellercentral)?

Bildschirmfoto 2022-03-02 um 16 04 51

I tried it with the following call but unfortunately the data is not included:

await sellingPartner.callAPI({
  operation: 'getListingsItem',
  endpoint: 'listingsItems',
  path:{
    sellerId: sellerId,
    sku: sku
  },
  query:{
    marketplaceIds: marketplaceIds,
    includedData: ['summaries', 'attributes', 'procurement', 'fulfillmentAvailability', 'issues']
  },
});

Is there a possibility to retrieve or change the data. As above in the Package Dimensions example?

amz-tools commented 2 years ago

HI @vincent-the,

to retrieve the dimensions you should use the getCatalogItem operation:

let res = await sellingPartner.callAPI({
  operation:'getCatalogItem',
  endpoint:'catalogItems',
  path:{
    asin:'<ASIN>',
  },
  query:{
    marketplaceIds:['<MARKETPLACE_ID>'],
    includedData:['attributes']
  },
  options:{
    version:'2020-12-01'
  }
});

This call will return item_dimensions as well as item_package_dimensions.

For updating purposes you could either use the patchListingsItem operation or upload the changes via a feed.

vincent-the commented 2 years ago

Hi @amz-tools,

thank you very much for your answer with the packaging units. Now I wanted to retrieve further product data, such as Technical Details, General Information, Nutrition Facts or Ingredients. Unfortunately these are not included in the response.

Here is an example with ASIN:

let res = await sellingPartner.callAPI({
  operation:'getCatalogItem',
  endpoint:'catalogItems',
  path:{
    asin: 'B003U2FC6M',
  },
  query:{
    marketplaceIds: ['A1PA6795UKMFR9'],
    includedData: ['attributes']
  },
  options:{
    version: '2020-12-01'
  }
});

This is how the information is presented on Amazon:

Bildschirmfoto 2022-03-04 um 17 51 08

Here is the link to the product directly on Amazon as an example: https://www.amazon.de/-/en/14014501/dp/B003U2FC6M

I think this is a general problem with food. That the information is not given there. Do you have any idea what to do about it?

amz-tools commented 2 years ago

Hi @vincent-the,

could be, but I would rather think its either because its a vendor product or because you don't have write access to the listing.

vincent-the commented 2 years ago

Hi @amz-tools,

the product was only an example, we ourselves sell food with the identical specifications and these are not included in our own product response. I can also send you our asin via email.

amz-tools commented 2 years ago

@vincent-the,

then it's probably not working via catalogItems operation. I wouldn't know of any other operation that could return the values if getListingsItem also doesn't seem to work.