allegro / allegro-api

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

Shipment create with API #9637

Open xmarti13 opened 2 months ago

xmarti13 commented 2 months ago

Good afternoon,

we are preparing connection to Allegro via API and we stucked at shipments creation.

We correctly send request shipment-management/shipments/create-commands to Sandbox API and get response with CommandId (e.g. 3fbb995d-8564-419e-85cc-ff21a159e3e6).

But the package is not visible in the order details... is it necessary to do something more to complete creation of package?

Best regards

Lukasz-Zurek commented 2 months ago

@xmarti13 I see that a tracking number: 24XO00001630*001001 has been already added to the order. Please confirm if the problem still occurs. It should work automatically.

xmarti13 commented 2 months ago

Goood morning,

no, it this was manually added package.

But today we realised, that, although the shipment creation ended with OK (200), when we tried to check Shipment creation status, there were some other errors (too high insurance and bad format of phone number. After correction, the shipment has been created correctly.

So, this is a bit confusing, that operation (shipment creation) ends with "success" status, but in real the shipment is not created?? In my opinion, the later returned mistakes (with method Shipment creation status) could be returned already during the first step (shipment creation). But maybe there is reason for that.

Now, we could create the package, so it is clear for us.

Thank you

Lukasz-Zurek commented 2 months ago

@xmarti13 I can confirm that shipment creation details should be checked via GET /shipment-management/shipments/create-commands/{commandId} resource. It is related to our cooperation with our logistic partner - who returns these errors to our API, this is why we do not return them in the first step.

Please let me know if there will be any problem with some new shipments. Then I will consult it with "Ship with Allegro" team.

stale[bot] commented 2 months 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.