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

PATCH /listings/2021-08-01/items API: 400 Bad Request When Updating Condition Note #4502

Open
sugaular opened this issue Jan 8, 2025 · 3 comments
Assignees
Labels
listing Issues related to Listings API

Comments

@sugaular
Copy link

sugaular commented Jan 8, 2025

I am using the Amazon SP-API to update the product information for a specific SKU. I am attempting to use the PATCH /listings/2021-08-01/items/{sellerId}/{sku} endpoint to update the condition_note field, but every time I send the request, I receive a 400 Bad Request error.

Request Details:
HTTP Method: PATCH
Endpoint:
https://sellingpartnerapi-fe.amazon.com/listings/2021-08-01/items/{sellerId}/{sku}
Request Headers:
Authorization: Bearer
Content-Type: application/json
Request Body:
json

{
"productType": "MP3_PLAYER",
"patches": [
{
"op": "replace",
"path": "/attributes/condition_note",
"value": [
{
"value": "This is a high-quality used product. Please check the condition video on YouTube or the support site for more details. Search for #KSA7594!"
}
]
}
]
}
Error Details:
The response from the API is as follows:

json

{
"errors": [
{
"code": "InvalidInput",
"message": "Request has missing or invalid parameters and cannot be parsed.",
"details": ""
}
]
}
What I Have Checked:
Authorization Token: The Bearer token is valid and associated with the correct sellerId.
Endpoint and Path: The endpoint and path have been set according to the API documentation.
productType: The correct productType is specified for the target product.
Structure of condition_note: I have referred to the documentation and ensured that the value is provided in an array format.
Questions:
Is there an issue with the structure of my request body? If so, how should I correct it?
Could you provide an example of a valid configuration for updating the condition_note field?
Are there any additional parameters or settings I need to include to make this request work?
I would greatly appreciate any guidance or suggestions on how to resolve this issue.

Thank you for your help!

@jawheral jawheral self-assigned this Jan 8, 2025
@jawheral
Copy link

jawheral commented Jan 8, 2025

Hi @sugaular,

I tried the exact body you provided and it works as expected so I'm not able to call out the exact reason of the error.
More information is required in order to troubleshoot your request. To do so, please create a case with Developer Support and share the case id here.

Best,
Jawher
Selling Partner Developer Services

@sugaular
Copy link
Author

sugaular commented Jan 8, 2025

After completing two-factor authentication (2FA), I am prompted to enter another 2FA code. When I try to proceed, I receive a message saying that I have reached the daily limit for generating 2FA codes. When I wait and try again later, the process resets to the beginning, and I face the same issue again.

As a result, I am unable to access the site at https://developer.amazonservices.com/support.

@jawheral
Copy link

jawheral commented Jan 9, 2025

Hi @sugaular,

I'm sorry to hear that you are unable to create a developer support case. Please wait and try again later once your limits are back.
In the meantime, can you provide the requestId? With the requestId, we might be able to check your request.

Best,
Jawher
Selling Partner Developer Services

@ritikacd ritikacd added the listing Issues related to Listings API label Jan 15, 2025
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

3 participants