I can't get my inventory
Hello,
I’m trying to use the getInventoryItems method to view my entire inventory, but it’s returning "0" as the result. What am I doing wrong?
Result:
Array
(
[total] => 0
[size] => 0
)
Also, I want to list all my offers using getOffers, but it asks me to enter an SKU number. Can’t I see all offers without providing an SKU number?
Best regards.
thecarpet
Posted 1 year ago·Last reply 1 year ago
2 comments
znts-wholesale-global
·1 year agoHow did you create your listings? If you are using REST API then you must create listings with REST API otherwise you will not get anything returned from the API.
You will need to migrate your listings and then you can use REST API.
https://github.com/CMS365-PTY-LTD/EbaySharp?tab=readme-ov-file#bulk-migrate-listings
After migration, you will need to get a list of all listings, every listing will have a unique SKU and then you can get inventory and offers.
klickitat
·1 year agoThe answer to your 2nd question is no. The SKU parameter is required for the getOffers API call.
For your 1st question, are you getting any errors in the response from the getInventoryItems call? Are you using the production endpoint or sandbox? Are you providing proper authentication in request headers? If you provide the entire response object and a code sample it may be easier to determine what is going on.