Skip to content

GetItemOffersBatch may need updated serialization for request parameters #934

@nomuramasanori

Description

@nomuramasanori

Hi,

First of all, thank you for maintaining this library. It has been very useful for our Amazon SP-API integration.

ProductPricing.GetItemOffersBatch started failing recently with the following error:

Requested MarketplaceId is invalid, unsupported, or does not exist.

I get error in case of using the following parameter.

{
  "requests": [
    {
      "uri": "/products/pricing/v0/items/XXXXXXXXXX/offers",
      "method": "GET",
      "queryParams": {
        "MarketplaceId": "XXXXXXXXXXXXXX",
        "CustomerType": "Consumer",
        "ItemCondition": "New"
      }
    },
    {
      "uri": "/products/pricing/v0/items/XXXXXXXXXX/offers",
      "method": "GET",
      "queryParams": {
        "MarketplaceId": "XXXXXXXXXXXXXX",
        "CustomerType": "Consumer",
        "ItemCondition": "New"
      }
    }
  ]
}

On the other hand, the following method will lead to success.

{
  "requests": [
    {
      "uri": "/products/pricing/v0/items/XXXXXXXXXX/offers",
      "method": "GET",
      "MarketplaceId": "XXXXXXXXXXXXXX",
      "CustomerType": "Consumer",
      "ItemCondition": "New"
    },
    {
      "uri": "/products/pricing/v0/items/XXXXXXXXXX/offers",
      "method": "GET",
      "MarketplaceId": "XXXXXXXXXXXXXX",
      "CustomerType": "Consumer",
      "ItemCondition": "New"
    }
  ]
}

I would appreciate it if you could take a look when you have a chance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions