Skip to content

Offers data is not returned with OffersV2 #5

@bbusch19

Description

@bbusch19

I cannot seem to get the SDK to return any offers data when using OffersV2

Here is an example of how I am using the SDK to get items:

  const api = new ProductAdvertisingAPIv1.DefaultApi();

  const getItemsRequest = new ProductAdvertisingAPIv1.GetItemsRequest();
  getItemsRequest['PartnerTag'] = PARTNER_TAG;
  getItemsRequest['PartnerType'] = PARTNER_TYPE;
  getItemsRequest['ItemIds'] =['B0BY8Z7H6X'];
  getItemsRequest['Resources'] = [
    'ItemInfo.Title',
    'OffersV2.Listings.Availability',
    'OffersV2.Listings.IsBuyBoxWinner',
    'OffersV2.Listings.MerchantInfo',
    'OffersV2.Listings.Price',
    'Images.Primary.Large',
    'Images.Primary.HighRes',
    'ItemInfo.ExternalIds',
    'ItemInfo.ByLineInfo',
    'ItemInfo.ProductInfo',
    'ItemInfo.Features',
    'ParentASIN'
  ];
  getItemsRequest['Condition'] = 'New';

  const items = await api.getItems(getItemsRequest, (error, data) => {
        if (error) {
          cb(error);
        } else {
          cb(null, data);
        }
      });

Everything is returned properly except for the offers. I have verified that this request should be returning offers data by using the following GUI from Amazon:
https://webservices.amazon.com/paapi5/scratchpad/index.html#{%22ItemIds%22:[%22B0BY8Z7H6X%22],%22Resources%22:[%22OffersV2.Listings.Availability%22,%22OffersV2.Listings.IsBuyBoxWinner%22,%22OffersV2.Listings.MerchantInfo%22,%22OffersV2.Listings.Price%22],%22Condition%22:%22Any%22,%22PartnerTag%22:%22%22,%22PartnerType%22:%22Associates%22,%22Marketplace%22:%22www.amazon.com%22,%22Operation%22:%22GetItems%22}

I am unsure if there is something else I need to be doing in order to get OffersV2 to work properly.

EDIT: I also want to note that I have tried to run the code found in sampleGetItemsApi.js in an independent repo, and I observe the same results. If I request the OffersV2 object, I get nothing back.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions