Update Inventory quantity using JSON_LISTINGS_FEED with SP-API
how to update Inventory quantity using JSON_LISTINGS_FEED with SP-API without providing ProductType
We got below body from help guide but not sure how to proceed without productType
{
"header": {
"sellerId": "AXXXXXXXXXXXXX",
"version": "2.0",
"issueLocale": "en_US"
},
"messages": [
{
"messageId": 1,
"sku": "ABC123",
"operationType": "PATCH",
"productType": "PRODUCT",
"patches": [
{
"op": "replace",
"path": "/attributes/fulfillment_availability",
"value": [
{
"fulfillment_channel_code": "DEFAULT",
"quantity": 5
}
]
},
... (more patches, if applicable)
]
},
... (more messages, if applicable)
]
}
Update Inventory quantity using JSON_LISTINGS_FEED with SP-API
how to update Inventory quantity using JSON_LISTINGS_FEED with SP-API without providing ProductType
We got below body from help guide but not sure how to proceed without productType
{
"header": {
"sellerId": "AXXXXXXXXXXXXX",
"version": "2.0",
"issueLocale": "en_US"
},
"messages": [
{
"messageId": 1,
"sku": "ABC123",
"operationType": "PATCH",
"productType": "PRODUCT",
"patches": [
{
"op": "replace",
"path": "/attributes/fulfillment_availability",
"value": [
{
"fulfillment_channel_code": "DEFAULT",
"quantity": 5
}
]
},
... (more patches, if applicable)
]
},
... (more messages, if applicable)
]
}
0 Antworten
Seller_i6S8knzW6zU6Z
Hi @Seller_Zfz9OmQiuAdRu,
According to the SP-API documentation, under the section "New Listings Items API submission when updating inventory only":
"inventory data can be submitted for any listings item regardless of its product type. This allows inventory-only workflows to migrate entirely to the Listings Items API and JSON_LISTINGS_FEED."
You can simply use "productType": "PRODUCT" as a hardcoded value - there's no need to dynamically insert any product-specific type.
Kind regards, Michael