allegro / allegro-api

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

question about deliveryMethodId #9680

Open yangcen6 opened 4 weeks ago

yangcen6 commented 4 weeks ago

If we use ship with allegro, we want to call /shipment-management/shipments/create-commands to create one shipment, where can we get deliveryMethodId? From delivery.method.id in /order/checkout-forms/{id}?

MartaNowaczyk commented 4 weeks ago

Yes, from checkout and from GET /shipment-management/delivery-services.

yangcen6 commented 3 weeks ago

Can we get deliveryMethodId from /shipment-management/shipments/create-commands before call /shipment-management/shipments/create-commands to create a shipment for this order?

MartaNowaczyk commented 3 weeks ago

You provided the same two paths (/shipment-management/shipments/create-commands) so I don't know what you mean.

yangcen6 commented 3 weeks ago

Sorry. Can we get deliveryMethodId from /shipment-management/shipments/create-commands before call /order/checkout-forms/{id} to create a shipment for this order?

MartaNowaczyk commented 3 weeks ago
  1. You can use GET /shipment-management/delivery-services to retrieve a list of delivery services available to the authorized user.
  2. The method of delivery that the buyer has chosen you will see in the order /order/checkout-forms/{id}
  3. To create a new package, use POST /shipment-management/shipments/create-commands

We described everything step by step in our guide (to change language settings to English please use the top-right icon).

yangcen6 commented 3 weeks ago

For an order that has already created shipment using POST /shipment-management/shipments/create-commands, can we call this again?

MartaNowaczyk commented 3 weeks ago

Yes, you will create another shipment.

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