jlevers / selling-partner-api

A PHP client library for Amazon's Selling Partner API
BSD 3-Clause "New" or "Revised" License
399 stars 188 forks source link

Unable to run FBAInboundItemEligibilityPreview #568

Open BansiFuletra opened 1 year ago

BansiFuletra commented 1 year ago

Hello, I am calling FBA Inbound item eligibility preview api from postman. but i am getting error 403.{ "errors": [ { "code": "Unauthorized", "message": "Access to requested resource is denied.", "details": "" } ] } https://sellingpartnerapi-na.amazon.com/fba/inbound/v1/eligibility/itemPreview?marketplaceIds=ATVPDKIKX0DER&asin=B0C7R9FG1C&program=COMMINGLING

this is the path which i am calling image @jlevers

Akanksha-cedcoss commented 1 year ago

As of my experience working with sp-api the error Access to requested resource is denied comes in 2 cases

  1. Invalid refresh token ( refresh token gets expires after 1 year)
  2. You are not providing valid assume role keys ni autorization.
  3. Provided Asin is not yours or not available in marketplace.
  4. Provided asin is not a FBA product in that marketplace.
  5. you don't have access to call this api in this marketplace. Please verify these cases