Closed Himon-SYNCRAFT closed 2 years ago
Dobrze wywnioskowałeś - w sekcji parametrów produktu powinny znaleźć się te parametry, które mają flagę "requiredForProduct": true. Rzeczywiście, w opisanym przypadku Sposób montażu ma flagę ustawioną na false, jednak nie ma możliwości stworzenia oferty z produktem, gdy przekażemy Sposób montażu jako parametr ofertowy. Jest to "urok" Sandboxa, gdzie aktualizacja kategorii i parametrów odbywa się raz na kwartał - tj. tylko bezpośrednio po takiej aktualizacji stan faktyczny powinien być w 100% zgodny. Niestety, z kolejnymi dniami może dochodzić do rozbieżności - ktoś zmieni wartość flagi, jednak w układzie parametrów i kategorii ta zmiana nie znajdzie już swojego odzwierciedlenia. Ostatnia aktualizacja miała miejsce 5 kwietnia 2022, o czym informowaliśmy w poście.
Szkoda, że tak wygląda sytuacja bo liczyłem, że uda mi się trochę testy zautomatyzować, ale w takim przypadku będzie ciężko i nie ma to sensu. Ale dziękuję za informację :)
Witam.
Niestety mam podobny problem na środowisku produkcyjnym: Pobralem za pomocą endpointu /sale/categories/4439/parameters informację o paremetrach dla kategorii Komputery/Urządzenia sieciowe/Sprzęt sieciowy/Transceiver i konwertery. W odpowiedzi dostaję zwrotnie informację, że Waga produktu z opakowaniem jednostkowym nie jest wymaganym parametrem do utworzenia produktu: (requiredForProduct: false).
Przy próbie wystawienia aukcji z produktem (korzystam z /sale/product-offers) dostaje informację:
"ParameterCategoryException: Błędnie przesłano definicje parametru 17448:Waga produktu z opakowaniem jednostkowym
jako parametr w sekcji offer
Proszę podaj trace-id Twojego wywołania, sprawdzę to.
trace-id: 7d178647e89454d9
Dziękuję za przykład. Oprócz flagi "requiredForProduct", która mówi o obowiązkowości danego parametru przy tworzeniu produktu, kluczowa jest także flaga "options.describesProduct" - ona mówi, czy dany parametr opisuje produkt czy ofertę. W przypadku kategorii 4439 przy "options.describesProduct" widnieje true, zatem ten parametr powinien znaleźć się w sekcji produktowej parametrów, a nie ofertowej.
Rzeczywiście uciekła mi ta informacja. Dziękuje za pomoc :)
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.
Występuje problem:
:beetle: Opis / Description Witam korzystam na sandboxie z metody /sale/categories//parameters do pobrania infomarcji o parametrach dla kategorii o id 111867 (Akcesoria do kotłów i pieców)
i w odpowiedzi dostaję:
z której wynika, że parametr Sposób montażu (id 18235) nie jest parametrem wymaganym dla produktu ("requiredForProduct": false). Natomiast jak próbuje utworzyć aukcję razem z produktem (produkt nie istnieje, metoda POST na endpoint /sale/product-offers) dostaje w odpowiedzi bląd: ParameterCategoryException: Błędnie przesłano definicje parametru
18235:Sposób montażu
jako parametr w sekcjioffer
.Przykładowy request, który zwraca błąd:
Jeśli przeniosę wartość parametru Sposób montażu do sekcji productSet to moge swobodnie wystawić produkt i teraz nie wiem czy dobrze rozumiem, że jesli tworzę produkt razem z aukcją to powinienem w sekcji productSet przekazywać tylko wartości dla parametrów oznaczonych jako requiredForProduct, a ten błąd, który dostaje zwrotnie to tylko kwestia niedociągnięć sandboxa czy może po prostu nie rozumiem tego i w jakiś inny sposób powienienem dojść, które parametry rzeczywiście są wymagane jeśli tworzę produkt z aukcją metodą /sale/product-offers? Dodam tylko, że ten sam problem występował na sandboxie jak próbowałem wystawiać aukcje w kategori 14237 (chyba kamey) dla parametrów Waga i Waga produktów z opakowaniem.