Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PUT /listings/2021-08-01/items/{sellerId}/{sku} returns 403 when SKU is empty. #4682

Open
caner-cetin opened this issue Mar 12, 2025 · 2 comments
Assignees
Labels
listing Issues related to Listings API

Comments

@caner-cetin
Copy link

Using https://github.com/go-swagger/go-swagger generated client with the models provided from this repository.

When the Sku parameter for https://developer-docs.amazon.com/sp-api/docs/listings-items-api-v2021-08-01-reference#put-listings2021-08-01itemsselleridsku is empty, API returns

1:02AM FTL error="[PUT /listings/2021-08-01/items/{sellerId}/{sku}][403] putListingsItemForbidden {\"errors\":[{\"code\":\"Unauthorized\",\"message\":\"Access to requested resource is denied.\"}]}"

and when I put random gibberish, like params.Sku = "W9-EYD8-3O", it is back to normal.

1:02AM FTL error="[PUT /listings/2021-08-01/items/{sellerId}/{sku}][400] putListingsItemBadRequest {\"errors\":[{\"code\":\"InvalidInput\",\"message\":\"The provided payload is invalid.\"}]}"

Literally nothing changed between this two requests, I only supplied a SKU value.

I dont even know where to report this, I know this is just a models repository, but, currently, this is very misleading and confusing behavior.

@caner-cetin caner-cetin changed the title PUT /listings/2021-08-01/items/{sellerId}/{sku} is returning 403 when SKU is empty. PUT /listings/2021-08-01/items/{sellerId}/{sku} returns 403 when SKU is empty. Mar 12, 2025
@weilinggu weilinggu added the listing Issues related to Listings API label Mar 13, 2025
@weilinggu
Copy link
Contributor

Hi @caner-cetin

SKU is a required path parameter for putListingItem operation. Empty SKU value could cause issues in the API call.

Thanks
Weiling
Amazon Selling Partner Services

@weilinggu weilinggu self-assigned this Mar 13, 2025
@caner-cetin
Copy link
Author

I understand it required, but throwing Access denied with 403 status code is the main issue i was pointing at.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
listing Issues related to Listings API
Projects
None yet
Development

No branches or pull requests

2 participants