anuluj
Pokazywanie wyników dla 
Zamiast tego wyszukaj 
Czy miało to oznaczać: 

Edit category of the product in the offer

Client:143253311
#8 Zapaleniec

Good afternoon,

We are working on integrating our application with Allegro.

Using the API request POST https://api.{environment}/sale/product-offers, we created an offer in Allegro (the product did not previously exist in Allegro).

After opening the Allegro store, we realized that we need to change the existing category of this product in the published offer to another category (also suggested by Allegro).

At the moment we are trying to do this using the request
PATCH https://api.{environment}/sale/product-offers/{offerId}, but without success (we receive an error saying that we should replace the new category with the old one).

Could you please advise which API requests we should use to do this?

Thank you.

Dzień dobry,

Pracujemy nad integracją naszej aplikacji z Allegro.

Za pomocą zapytania API POST https://api.{environment}/sale/product-offers utworzyliśmy ofertę w Allegro (produkt wcześniej nie istniał w Allegro).

Po otwarciu sklepu Allegro zauważyliśmy, że musimy zmienić obecną kategorię tego produktu w opublikowanej ofercie na inną kategorię (również sugerowaną przez Allegro).

Obecnie próbujemy to zrobić za pomocą zapytania
PATCH https://api.{environment}/sale/product-offers/{offerId}, jednak bez powodzenia (otrzymujemy błąd informujący, że powinniśmy zamienić nową kategorię na starą).

Czy mogliby Państwo podpowiedzieć, za pomocą jakich zapytań API możemy to zrobić?

Dziękujemy.



oznacz moderatorów
5 ODPOWIEDZI 5

matt_rose
Moderacja Społeczności
Moderacja Społeczności

Hello @Client:143253311, thank you for the detailed description of the problem you encountered. I have forwarded your case to the appropriate department. I will get back to this thread once I receive a reply or a solution to your issue.

   Mateusz
   Moderator Allegro Gadane
oznacz moderatorów

matt_rose
Moderacja Społeczności
Moderacja Społeczności

@Client:143253311 Please check out our guide, where we describe the available offer editing options. If you have any futue API-related questions, please check our GitHub as well.

   Mateusz
   Moderator Allegro Gadane
oznacz moderatorów

Client:143253311
#8 Zapaleniec

Good afternoon,
Thank you for your response.
Based on the guide, do we correctly understand that we can change the category only within 12 hours after the offer is published? At the same time, if we assign the category “Other,” we cannot change it later, and we also cannot change an existing category to “Other.”


Dzień dobry,
Dziękujemy za odpowiedź.
Na podstawie przewodnika czy dobrze rozumiemy, że możemy zmienić kategorię tylko w ciągu 12 godzin od momentu opublikowania oferty? Jednocześnie, jeśli przypiszemy kategorię „Other”, nie możemy jej później zmienić, a także nie możemy zmienić już istniejącej kategorii na „Other”.

oznacz moderatorów

Client:143253311
#8 Zapaleniec

Also, if we understood the guide correctly, it refers to editing categories within the Allegro account. In our case, we are talking about editing via API requests — or does this rule apply equally to both cases?

We are asking because, for example, when we publish an offer with the category path Collections and Art – Handicrafts – Handmade Items – Handmade Clothing, and then after 1 hour we change it to Sports and Travel – Extreme Sports – Aviation – Clothing, we receive an Allegro error: “MISMATCH”.



Również, jeśli dobrze rozumiemy, przewodnik dotyczy edytowania kategorii w ramach konta Allegro. W naszym przypadku mówimy o edycji poprzez zapytania API — czy ta zasada obowiązuje jednakowo w obu przypadkach?

Pytamy, ponieważ na przykład gdy publikujemy ofertę z ścieżką kategorii Collections and Art – Handicrafts – Handmade Items – Handmade Clothing, a następnie po 1 godzinie zmieniamy ją na Sports and Travel – Extreme Sports – Aviation – Clothing, otrzymujemy błąd Allegro: „MISMATCH”.

oznacz moderatorów

nat_not
Moderacja Społeczności
Moderacja Społeczności

@Client:143253311 Yes, you have a good understanding of the rules regarding the limited editing time. The guide posted by Mateusz covers managing offers via the API. If you have more specific questions about particular issues you're experiencing, please post them on the forum. This is the fastest way to get help.

   Natalia
   Moderatorka Allegro Gadane
oznacz moderatorów