skip to Main Content

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


  1. 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.

    Login or Signup to reply.
  2. 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:

    $data = [
            "availability" => [
                "shipToLocationAvailability" => [
                    "quantity" => 50
                ]
            ],
            "condition" => "NEW_OTHER",
            "product" => [
                "aspects" => [
                    "Brand" => ["GoPro"],
                    "Type" => ["Helmet/Action"],
                    "Storage Type" => ["Removable"],
                    "Recording Definition" => ["High Definition"],
                    "Media Format" => ["Flash Drive (SSD)"],
                    "Optical Zoom" => ["10x", "8x", "4x"]
                ],
                "description" => "New GoPro Hero4 Helmet Cam. Unopened box.",
                "imageUrls" => [
                    "http://i.ebayimg.com/images/i/182196556219-0-1/s-l1000.jpg",
                    "http://i.ebayimg.com/images/i/182196556219-0-1/s-l1001.jpg",
                    "http://i.ebayimg.com/images/i/182196556219-0-1/s-l1002.jpg"
                ],
                "title" => "GoPro Hero4 Helmet Cam"
            ]
        ];
    

    My issue was, that I’ve put everything into a single object, and not "product, availability, condition" as separate.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search