allegro / allegro-api

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

Aktywacja oferty - problem z kontakt. #1541

Closed kkrol93 closed 5 years ago

kkrol93 commented 5 years ago

Witam! Mam problem z aktywacją oferty. Najpierw oczywiście wysyłam dane https://api.allegro.pl.allegrosandbox.pl/sale/offers. Otrzymuję : "id" => "6206288824" "name" => "Próbny post"

"category" => array:1 [ "id" => "257753" ] "product" => null "parameters" => array:16 [ 0 => array:4 [ "id" => "1" "valuesIds" => [] "values" => array:1 [ 0 => "1993" ] "rangeValue" => null ] 1 => array:4 [ "id" => "14" "valuesIds" => [] "values" => array:1 [ 0 => "120" ] "rangeValue" => null ] 2 => array:4 [ "id" => "5" "valuesIds" => [] "values" => array:1 [ 0 => "200" ] "rangeValue" => null ] 3 => array:4 [ "id" => "4" "valuesIds" => [] "values" => array:1 [ 0 => "1200" ] "rangeValue" => null ] 4 => array:4 [ "id" => "128789" "valuesIds" => [] "values" => array:1 [ 0 => "6" ] "rangeValue" => null ] 5 => array:4 [ "id" => "11323" "valuesIds" => array:1 [ 0 => "11323_1" ] "values" => [] "rangeValue" => null ] 6 => array:4 [ "id" => "128877" "valuesIds" => array:1 [ 0 => "128877_1" ] "values" => [] "rangeValue" => null ] 7 => array:4 [ "id" => "178" "valuesIds" => array:1 [ 0 => "178_1" ] "values" => [] "rangeValue" => null ] 8 => array:4 [ "id" => "128797" "valuesIds" => array:1 [ 0 => "128797_1" ] "values" => [] "rangeValue" => null ] 9 => array:4 [ "id" => "199" "valuesIds" => array:1 [ 0 => "199_1" ] "values" => [] "rangeValue" => null ] 10 => array:4 [ "id" => "128803" "valuesIds" => array:1 [ 0 => "128803_1" ] "values" => [] "rangeValue" => null ] 11 => array:4 [ "id" => "202" "valuesIds" => [] "values" => array:1 [ 0 => "200" ] "rangeValue" => null ] 12 => array:4 [ "id" => "3" "valuesIds" => array:1 [ 0 => "3_2" ] "values" => [] "rangeValue" => null ] 13 => array:4 [ "id" => "128788" "valuesIds" => array:1 [ 0 => "128788_1" ] "values" => [] "rangeValue" => null ] 14 => array:4 [ "id" => "215898" "valuesIds" => [] "values" => array:1 [ 0 => "WDD2040411A034466" ] "rangeValue" => null ] 15 => array:4 [ "id" => "211062" "valuesIds" => array:1 [ 0 => "211062_246554" ] "values" => [] "rangeValue" => null ] ] "ean" => null "description" => array:1 [ "sections" => array:1 [ 0 => array:1 [ "items" => array:1 [ 0 => array:2 [ "type" => "TEXT" "content" => "

lorsjadsd hsd ashd gsajhdgsajhdg sajhdg jahsdg asjhdg sajhd gsajhdg asjdhsag dsahjdg sajhdgsahjdgsajhdgahsjh

" ] ] ] ] ] "compatibilityList" => array:1 [ "items" => null ] "images" => array:1 [ 0 => array:1 [ "url" => "https://a.allegroimg.allegrosandbox.pl/original/113e65/d007b28c4602a24dc537d981937f" ] ] "sellingMode" => array:4 [ "format" => "ADVERTISEMENT" "price" => array:2 [ "amount" => "150" "currency" => "PLN" ] "startingPrice" => null "minimalPrice" => null ] "stock" => null "publication" => array:5 [ "duration" => null "status" => "INACTIVE" "startingAt" => null "endingAt" => null "endedBy" => null ] "delivery" => array:4 [ "shippingRates" => null "handlingTime" => null "additionalInfo" => null "shipmentDate" => null ] "payments" => array:1 [ "invoice" => "VAT" ] "afterSalesServices" => null "additionalServices" => null "sizeTable" => null "promotion" => null "location" => array:4 [ "countryCode" => "PL" "province" => "WIELKOPOLSKIE" "city" => "POZNAN" "postCode" => "61-118" ] "external" => null "attachments" => [] "contact" => null "validation" => array:2 [ "errors" => [] "validatedAt" => "2019-04-23T13:13:52.05Z" ] "createdAt" => "2019-04-23T13:13:52Z" "updatedAt" => "2019-04-23T13:13:52.051Z" ] Jak widać nie ma żadnych błędów. Następnie: używam put https://api.allegro.pl.allegrosandbox.pl/sale/offer-publication-commands/88ab583e-65c6-11e9-a923-1681be663d3e

i wysyłam takie dane: { "offerCriteria": [ { "offers": [ { "id": "6206288824" } ], "type": "CONTAINS_OFFERS" } ], "publication": { "action": "ACTIVATE"

} }

w odpowiedzi dostaje: { "id": "88ab583e-65c6-11e9-a923-1681be663d3e", "taskCount": { "total": 0, "success": 0, "failed": 0 } } W czym jest kłopot? Bo ja szczerze nie mam pojęcia co jest nie tak. Jedna mnie rzecz zastanawia. Jak wchodzę na sandboxa allegro to podczas próby aktywacji strona wyrzuca problem, że trzeba wybrać formę kontaktu. Natomiast w response nie ma żadnego błędu. A nawet jeżeli tak to nawet w dokumentacji nie jest podane, że jest to wymagane...

Z góry dzięki za pomoc! KK

kkrol93 commented 5 years ago

Ok... już znalazłem problem, jak dopiero wejdzie się na tasks to jest status success i faktycznie oferta jest opublikowana Dzięki i sorki za kłopot