I’m trying to do one simple thing. I want to change the quantity of an existing fixed priced item on ebay using PHP. Is this possible? I’ve asked this before and got responses telling me to read this or that. I’m not able to find any actual code examples though. I’d love to see someone post one. For example, ebay item number 123456789 has a qty of 50. I want to run some PHP code to change it to qty of 20. I want to enter the item number, the new quantity, and any ebay verification data needed into the code and run it. That’s all I need.
3
Answers
Try this it works for me
There are three options available for updating a live item on eBay.
For quickly updating an item’s quantity you may want to use ReviseInventoryStatus as it has some advantages over the others.
If you are OK with using Composer in your PHP projects I have developed a SDK that simplifies using the eBay API. The example below shows how to use the SDK with ReviseInventoryStatus. The comments in the code should tell you what you will need to change in order for it to work.
If you are interested in updating other aspects of an item, for example it’s Title, you will want to use either of the Revise operations as these are designed for updating more fields.
Here is a ready to test example, just replace the item id and quantity.
This php code was generated from this site by clicking on the “retrieve php code” button. The SDK for php can be also downloaded there.