allegro / allegro-api

Issue tracker and wiki for Allegro REST API
https://developer.allegro.pl/
217 stars 39 forks source link

In One Fulfillment, you can sell products that have a GTIN error #9879

Open dev-beta opened 2 months ago

dev-beta commented 2 months ago

hello,

we try add fullfilment offer

json example

{"productSet":[{"product":{"name":"Monta\u017c Oddechowy VAG Volkswagen CC Golf Jetta Passat Tiguan Oryginalny","id":"6eef92b4-943b-4471-89bd-5e24ed38a26b","images":[],"parameters":[{"id":225693,"values":["8720193932033"]}]}}],"name":"Monta\u017c Oddechowy VAG Volkswagen CC Golf Jetta Passat Tiguan Oryginalny","stock":{"available":0},"external":{"id":"1J0721468E"},"payments":{"invoice":"VAT"},"sellingMode":{"format":"BUY_NOW","price":{"amount":"400.00","currency":"PLN"}},"parameters":[{"id":"11323","valuesIds":["11323_1"]}],"delivery":{"handlingTime":"PT24H","shippingRates":{"id":"-"}},"afterSalesServices":{"impliedWarranty":{"id":"-"},"returnPolicy":{"id":"-"}},"publication":{"status":"ACTIVE","marketplaces":{"base":{"id":"allegro-pl"}}},"description":{"sections":[{"items":[{"type":"TEXT","content":"

Producent cz\u0119\u015bci:<\/b><\/p>"}]}]},"location":{"countryCode":"PL","province":"MAZOWIECKIE","city":"Adam\u00f3w 50","postCode":"05-825"},"taxSettings":{"rates":[{"rate":"23.00","countryCode":"PL"}]},"images":["https:\/\/a.allegroimg.com\/original\/11b8b5\/-"]}

return error

[errors] => Array
    (
        [0] => Array
            (
                [code] => VALIDATION_ERROR
                [message] => Fulfilment offer validation error
                [details] => 
                [path] => product.parameters
                [userMessage] => In One Fulfillment, you can sell products that have a GTIN (e.g., an EAN or ISBN).
                [metadata] => Array
                    (
                    )

            )

    )

but we set parameter 225693 to product

PrzemyslawLukanowski commented 2 months ago

Hello, you have indicated a specific product.id from our product catalog, so in this case, we do not pay attention to the parameters section - we try to list an offer with the product data that we have in our catalog. This product does not have GTIN included, that is why we returned an error.

You can suggest to add GTIN to this product via website - https://salescenter.allegro.com/changes-in-product-catalogue/report/6eef92b4-943b-4471-89bd-5e24ed38a26b or using API.