allegro / allegro-api

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

[NEWS] Zmieniamy maksymalną długość parametru GTIN / We are changing the maximum length of the GTIN parameter #3928

Open AureliuszBrussy opened 3 years ago

AureliuszBrussy commented 3 years ago

18 stycznia 2021 roku zmienimy maksymalną długość parametrów GTIN z dotychczasowych 18 na 14 znaków.

W zależności od kategorii, zmiana będzie dotyczyć parametrów:

Gdy skorzystasz z GET /sale/categories/{categoryId}/parameters i GET /sale/categories/{categoryId}/product-parameters, dla każdego z parametrów GTIN zwrócimy inną niż dotychczas informację w polu restrictions.maxLength:

      {
      ...
                  "restrictions": {
                      "minLength": 8,
                      "maxLength": 14,
      ...
                  }
      …
      }

Dzięki tej zmianie uspójnimy maksymalną i rzeczywiście walidowaną przez nas długość parametru GTIN. Dopuszczalna długość GTIN to 8, 10, 12, 13 lub 14 znaków.


On January 18th, 2021, we will change the maximum length of GTIN parameters from the current 18 to 14 characters.

Depending on the category, the changes will affect the parameters:

When you use GET /sale/categories/{categoryId}/parameters and GET /sale/categories/{categoryId}/product-parameters, we will return different information in the restrictions.maxLength field for each of the GTIN parameters:

      {
      ...
                  "restrictions": {
                      "minLength": 8,
                      "maxLength": 14,
      ...
                  }
      …
      }

Thanks to this change, we will coherent the maximum and actually verified length of the GTIN parameter. The acceptable GTIN length is 8, 10, 12, 13, or 14 characters.

jmarek-pl commented 3 years ago

Z GS1 Polska dostajemy kody EAN-14, z zerem na początku. Które lepiej podawać na Allegro, EAN13 czy EAN14, czy nie ma to znaczenia? Aktualnie na część artykułów mamy już kody EAN13..

MartaNowaczyk commented 3 years ago

W Europie najczęściej stosuje się 13-cyfrowy kod EAN, ale technicznie nie ma to znaczenia.