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

Error when updating fulfillment_availability using JSON_LISTINGS_FEED #4554

Open
Rajesh-ExertisGO opened this issue Jan 23, 2025 · 4 comments
Assignees

Comments

@Rajesh-ExertisGO
Copy link

Hi,

When i try to update the fulfillment_availability quantity using JSON_LISTINGS_FEED i getting error Invalid parameters provided -

Feed content -

{
"header" : {
"sellerId" : "A1FXXXXXXXX",
"version" : "2.0",
"issueLocale" : "en_US"
},
"messages" : [
{
"messageId" : 1,
"sku" : "312948-FBM",
"operationType" : "PATCH",
"productType" : "PRODUCT",
"patches":[
{
"op": "replace",
"path": "/attributes/fulfillment_availability",
"value": [
{
"quantity": 1
}
]
}
]
}
]
}

Response -
{
"header": {
"sellerId": "A1FXXXXXXXX",
"version": "2.0",
"feedId": "357051020111"
},
"issues": [
{
"messageId": 1,
"code": "BAD_REQUEST",
"severity": "ERROR",
"message": "Invalid parameters provided."
}
],
"summary": {
"errors": 1,
"warnings": 0,
"messagesProcessed": 1,
"messagesAccepted": 0,
"messagesInvalid": 1
}
}

@mafge mafge self-assigned this Jan 23, 2025
@mafge
Copy link
Contributor

mafge commented Jan 23, 2025

Hi @Rajesh-ExertisGO,
thanks for reaching out!
Please note that you can only update top level attributes when using PATCH. This means you have to specify all child attributes of fulfillment_availability in this case because otherwise the backend will try to remove these values (which doesn't work because e.g. fulfillment_channel_code is required). You can find more details in this issue.
Best,
Marc
Selling Partner Developer Services

@Rajesh-ExertisGO
Copy link
Author

Hi,

Tried with the below and still same error, also the issue you pointed out talked about removing a element nothing about the error message

{ "header" : { "sellerId" : "A1FXXXXXXXX", "version" : "2.0", "issueLocale" : "en_US" }, "messages" : [ { "messageId" : 1, "sku" : "312948-FBM", "operationType" : "PATCH", "productType" : "PRODUCT", "patches":[ { "op": "replace", "path": "/attributes/fulfillment_availability", "value": [ { "fulfillment_channel_code":"DEFAULT", "quantity": 1 } ] } ] } ] }

Response

{ "header": { "sellerId": "A1FXXXXXXXX", "version": "2.0", "feedId": "357183020111" }, "issues": [ { "messageId": 1, "code": "BAD_REQUEST", "severity": "ERROR", "message": "Invalid parameters provided." } ], "summary": { "errors": 1, "warnings": 0, "messagesProcessed": 1, "messagesAccepted": 0, "messagesInvalid": 1 } }

@mafge
Copy link
Contributor

mafge commented Jan 23, 2025

Hi @Rajesh-ExertisGO,
in this case I would like to ask you to open a ticket with developer support following the guidance here so we can pursue the investigation as additional details are required from your end. Thanks!

@Rajesh-ExertisGO
Copy link
Author

@mafge I have opened the ticket ticket number is 10731517792

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

2 participants