I’m trying to create some offers in the Polish marketplaces.
After creating the inventory items I try to call create offer with the same sku but I receive the following message:
<400> - {"errors":[{"errorId":25751,"domain":"API_INVENTORY","subdomain":"Selling","category":"REQUEST","message":"POA6765452 could not be found or is not available in the system for the marketplace EBAY_PL.","parameters":[{"name":"text1","value":"POA6765452"},{"name":"text2","value":"EBAY_PL"}]}]}
I’m sure that the inventory item exists as I’m able to retrieve it with GetInventoryItems()
.
I guess the issue is that it doesn’t see it in the polish marketplace but when I created the inventory item there isn’t any field to specify the markeplace, is there?
Any help is appreciated, thanks!
I’ve also tried including the
("X-EBAY-C-MARKETPLACE-ID", "EBAY-PL")
to my header requests but with no luck..
2
Answers
You need to set correct Content-Language header while creating inventory item and also the value of marketplaceId when creating an offer.
For example in my case Content-Language header of create inventory is en_AU and marketplaceId when creating an offer is EBAY_AU, so both are Australian values.
The previous response correctly mentions the need to set the Content-Language header. However, there’s another issue to be aware of: an incorrect inventory request might return a successful code, but it won’t work with the "offer" endpoint.
To avoid this, double-check that your inventory request is correct. Here’s an example:
My issue was, that I’ve put everything into a single object, and not "product, availability, condition" as separate.