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

Can not get prepDetails for sku that contains '+' #4659

Open
neiloyv opened this issue Mar 3, 2025 · 5 comments
Open

Can not get prepDetails for sku that contains '+' #4659

neiloyv opened this issue Mar 3, 2025 · 5 comments
Assignees

Comments

@neiloyv
Copy link

neiloyv commented Mar 3, 2025

We try to get prep details for the SKU that contains '+': "NEW+SKU 03.03.25"

We make Get request:
AWS CALL --> GET https://sellingpartnerapi-na.amazon.com/inbound/fba/2024-03-20/items/prepDetails?marketplaceId=ATVPDKIKX0DER&mskus=NEW%2BSKU%2003.03.25

and received that error message:
AWS CALL { "errors": [ { "code": "BadRequest", "message": "ERROR: The following MSKUs are not valid: [NEW SKU 03.03.25].", "details": "" } ]}

According to the error message, the SKU is [NEW SKU 03.03.25] - so there is no ‘+’ anymore. Does it mean that api uses the wrong SKU for the search?

@MetaMan2023
Copy link

Oh that's interesting.

Do you have to encode the + maybe?

I think + may encode in HTML as %2B

So if your SKU is ABC+123 you would say:

ABC%2B123

You could try that?

You could also try:

ABC+123

I don't know if that's the cause, or if Amazon is just not accepting + but it's worth a shot.

@MetaMan2023
Copy link

Sorry GitHub UN-encoded my second example.

%2B = +

But you can also do:

& plus; (WITH NO SPACE AFTER & -- I had to do that so GitHub didn't display it as a +)

@mafge
Copy link
Contributor

mafge commented Mar 6, 2025

Hi @neiloyv,
thanks for reaching out!
As @MetaMan2023 is saying, you should always encode your urls in order to avoid issues with SKUs. Please find further details in URL Encoding. Hope that helps!
Best,
Marc
Selling Partner Developer Services

@mafge mafge self-assigned this Mar 6, 2025
@neiloyv
Copy link
Author

neiloyv commented Mar 6, 2025

Yes, thank you. Additional URL encoding helped.

@mafge mafge added the closing soon This issue will be closed soon label Mar 17, 2025
@gaozhan3253
Copy link

Some SKUs may exceed 40 in length after conversion, resulting in an error message

[Member must have length less than or equal to 40,Member must have length greater than or equal to 1]

@github-actions github-actions bot removed the closing soon This issue will be closed soon label Mar 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants