-
-
Notifications
You must be signed in to change notification settings - Fork 202
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
Send stock (inventory) to Amazon #829
Comments
Hi, we're running what used to be product feeds in JSON right now, as for availability, I have that prepared, but not sure if I've tested it I don't think JSON migration depends on version of this library? It's about sending a different feed imho, not sending it via different call I think everything should stay the same except the // Create XML document section and setFeedType FeedType is now always just JSON_LISTINGS_FEED And what I'm generating right now looks like this
Keep in mind JSON has 10MB & 10k messages limit per feed Hope this helps |
Now I'm not 100% sure the productType should be there ... just try it out and see |
Thanks @NoxArt - Responses from others were often just "read the documentation!", understandable but if you don't understand it, you're stuck. So I appreciate the extended reply with code. I am taking this step by step, bare with me! Changes:
#2 Change XML to JSON data
*Note, I am happy for this to be static during testing, I'll eventually make it dynamic with the SKUs and stock etc.
... I am now even hitting an issue with the fact I used to use
Now I need to figure out the right version to use for that too. This is where I become so lost with so many little pieces to make sure is included, how I find which etc etc. |
This isn't really related to Amazon API or this library, just general programming practices, both should yield the same result but the former is slightly better since it's generalized into a constant Like I said I don't know for sure if you need productType to set availability, but I think you'll need it eventually |
At time of writing, I have managed to send my previous XML to Amazon successfully, whilst using the jlevers SP-API package (version 7.2.2). Note: I am working on a JSON example too but have not yet figure the correct JSON payload/format to use, will update when I do I have left in some conditionals unique to me like dev and staging do not send stock updates. Notes:
|
@jordan26, any luck? @NoxArt is correct that you don't need to upgrade to v7 in order to switch feed types, although I do recommend upgrading to v7 at some point as I'm no longer releasing updates to v5. If you're only updating listing-related attributes (price, inventory, etc) it's safe to use the Also, in case you're interested – I've created a converter tool that will convert the contents of your old |
Problem description:
My 'problem' is just the fact I have yet to see any method how to send stock (inventory) updates to Amazon. I used to have a custom function handling this when using v5 of the SDK. However since v7 I have no idea where to even start.
Here is a copy of my original approach when using v5 in case this is of use to others too. I am not using this any more, just to note. Unless someone knows how to use this whilst still on v7 too by chance.
The text was updated successfully, but these errors were encountered: