allegro / allegro-api

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

EAN not mandatory #9612

Open dominikahr opened 1 month ago

dominikahr commented 1 month ago

Hi there,

I was wondering if you could maybe explain a bit more in detail, what is the process of listing offers without EAN codes.

1) Should we first of all try to pair the offers to product cards based on the product name? 2) If we would not check if there is a product card for our product based on the product name and we would list it anyway, what would happen if there already was a product card for it? Do you automatically check and put together the same products based on the product name? 3) When the EAN is not needed for some category, do we need to provide some other identifier? 4) When the EAN is not needed for some category, should we create an offer or a product card for that product?

Thank you in advance for your help!

All the best,

Dominika

AureliuszBrussy commented 1 month ago

When you use POST /sale/product-offers, the logic for creating a product or finding and assigning an existing product is already implemented. You should focus on passing on as rich a set of parameters as possible (primarily the required ones), depending on the set of parameters defined for the category. Depending on the category and existing products, we can pair an existing product (maybe with an existing EAN) or automatically create a new product to be used in this offer.

Additionally, if you have found a product and are sure that you want to use a specific product from the Catalog, pass the value in productSet.product.id, but if you have not found a product and are not sure that it exists in our Catalog - leave productSet.product.id blank (or pass null).

dominikahr commented 1 month ago

@AureliuszBrussy thank you for your answer. Our app is however already working in some way and we do not want to change the whole process.

We first of all want as little parameters from the user as possible and based on GTIN we try to connect the offers to product cards from the Allegro catalog. If there is no product card for it, only then we ask the user for categories and all the mandatory parameters and we create product cards for the rest of the products.

Now we would also like to implement somewhere the possibility to upload products to Allegro which do not have EAN codes. More and more sellers reach out to us, that they have products from a category for which Allegro does not require EAN codes. So we would like to implement this possibility but to do it right, I would need answers to the questions I mentioned above. All the questions are about products WITHOUT EAN CODES:

1) Should we first of all try to pair the offers (without EAN codes) to product cards based on the product name? 2) If we would not check if there is a product card for our product based on the product name and we would list it anyway, what would happen if there already was a product card for it? Do you automatically check and put together the same products based on the product name? 3) When the EAN is not needed for some category, do we need to provide some other identifier? 4) When the EAN is not needed for some category, should we create an offer or a product card for that product?

Thanks in advance :)

All the best,

Dominika

AureliuszBrussy commented 1 month ago

Ah, I see, in that case I will try to answer your questions as best I can:

  1. Yes, you can do that.
  2. Yes, we automatically check based on parameters if the product exists in our Product Catalog. If we find a product we automatically assign an offer to it. We may recognize a product, while some parameter or category is inconsistent with the one stored in the Catalog. We will then return status code 422 with an PARAMETER_MISMATCH or CATEGORY_MISMATCH error and indicate in the error message the specific parameter to be corrected. We will also return the ID of the matched product in the metadata field. If we are not able to recognize the product, we will create a new product, and in some categories we can also create a so-called temporary product, which will be used only in this one offer.
  3. It is worth noting the MPN (Manufacturer Part Number), which can also be used to search and match a product. However, it is not a substitute for a EAN (GTIN).
  4. Each offer must be linked to the Product Catalog, so the lack of EAN requirement does not mean that an offer in a category does not have to be linked to the Catalog.
stale[bot] commented 1 week ago

W tym wątku nie pojawiła się żadna nowa odpowiedź w ciągu 7 dni, dlatego automatycznie oznaczamy go jako przeterminowany. Jeśli w ciągu kolejnych 7 dni nie pojawi się żadna odpowiedź, wątek zostanie zamknięty. Dziękujemy za zaangażowanie w dyskusję i zachęcamy Cię do wypełnienia ankiety dotyczącej naszego wsparcia na forum.


There was no new reply in this thread within 7 days, therefore, we automatically marked it as expired. If no response is received within the next 7 days, this thread will be closed. Thank you for engaging in the discussion. We encourage you to complete our forum support survey.