Replies: 20 comments 1 reply
-
Here a little track : https://developer-docs.amazon.com/sp-api/docs/listings-items-api-v2021-08-01-use-case-guide |
Beta Was this translation helpful? Give feedback.
-
Hi @harili, You can use the Feeds API to update the inventory. Please review the feed type "POST_INVENTORY_AVAILABILITY_DATA" for more information. You can also use Listings API to update listing information: Rugved |
Beta Was this translation helpful? Give feedback.
-
Hello @rugved1991 ! Is there a difference between those two links (the ones you gave to me) ? As you said, I can use Feeds API, and use a specific type, but isn't more difficult ? I'm sorry, it is my first time with SP API. |
Beta Was this translation helpful? Give feedback.
-
@harili Those two links are talking about two different endpoints. One is a PUT which will create or do a full update while the other is a PATCH in which you can update a specific field. To update inventory, I would suggest using the PATCH and updating the fulfillment_availability (the attribute for inventory updates). You can refer to the Product Type Definitions API for the schema describing the structure of the attributes and then use the PATCH to update them separately from updating an entire listing. Unless you are forced to use Feeds for something else already, I would avoid it if you can because of its complexity. |
Beta Was this translation helpful? Give feedback.
-
I found the solution the main issue is in the body there are many different methods which are provided by amazon feed base or listing put/patch base. In my question, I was using the Listing base approach. The endpoint URL is below.
The body should be like the below. If there is an error in product type even if you pass the current product type just use "PRODUCT" instead. Note: But if you are using a feed document then it might be changed see here I got success with the below body.
|
Beta Was this translation helpful? Give feedback.
-
Is it possible to update the inventory quantity of multiple products through Api? |
Beta Was this translation helpful? Give feedback.
-
Yes, loop on the body or you can use the feed process. |
Beta Was this translation helpful? Give feedback.
-
is there a way to find seller Id through sp api ? if yes kindly mention the endpoint.. |
Beta Was this translation helpful? Give feedback.
-
The seller ID is in your store URL Click on your store on Amazon and check the URL you will see the seller ID. https://www.amazon.co.jp/s?me=**A38GB1HVG3KV8Z**&language=en&marketplaceID=**A1VC38T7YXB528** Amazon sp API provides https://developer-docs.amazon.com/sp-api/docs/sellers-api-v1-reference#getmarketplaceparticipations to retrieve seller detail with this API. I don't know if we get the seller ID or not. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the response, but "getmarketplaceparticipations" response did not contain seller Id, Actually i want to update inventory but it requires seller Id (different sellers) so i can't get that from the above mentioned url. |
Beta Was this translation helpful? Give feedback.
-
Do you know the stores? open each store and get the seller id from backend or from URL. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
When the seller approves the consent and your redirect URI is hit by amazon seller id is provided in that request. |
Beta Was this translation helpful? Give feedback.
-
While updating the inventory, I am getting the ACCEPTED staus and the submissionId with no issues in the response, But the product's inventory is not updated at all. Can you please tell me where the issue can be ? |
Beta Was this translation helpful? Give feedback.
-
I'm having the same issue, but this is with all of my feeds overall. Can't create or remove product listings with feeds, but it's working with the API for individual products. |
Beta Was this translation helpful? Give feedback.
-
@oof2win2 how do you update products' quantity with the API other than feeds API? Neither way works for me. |
Beta Was this translation helpful? Give feedback.
-
I haven't gotten around to migrating to SP for product stocks, I'm still using MWS for that. |
Beta Was this translation helpful? Give feedback.
-
For me @mzbk approach works quite fine. I had the same issue, like @jpmangoit mentioned, but it was resolved itself in a while, we just need to wait a little bit. |
Beta Was this translation helpful? Give feedback.
-
I am using my C# SDK to make API calls, as instructed in this document: The model I am using is listings-items-api-model. I am trying to submit listings item patch request to change the inventory quantity of a listing. Here is the code I inserted into ListingApiTests class for testing: `public static void Main() {
}` The error I got is:
This error comes from the listingsApi.PatchListingsItem method. Obviously, I need to convert 'body' to something before I can use it as an argument in this method. Please advise. |
Beta Was this translation helpful? Give feedback.
-
This is not working in OCT 2024. Here is the updated json body that works with PATCH request.
|
Beta Was this translation helpful? Give feedback.
-
Hello,
After 2 hours of searching on the API Documentation, I didn't find the endpoind that allowed me to update the inventory quantity of a product.
If someone have a track, I'm here !
Beta Was this translation helpful? Give feedback.
All reactions