allegro / allegro-api

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

Question about pickup piont id #9948

Open yangcen6 opened 2 months ago

yangcen6 commented 2 months ago

The pickup point id parameter of /shipment-management/shipments/create-commands is obtained from /order/checkout-forms/{id}, but some orders do not return the pickup point id . Because this parameter is required for /shipment-management/shipments/create-commands ,if we can not get this ,we can not call this API successfully. Why? img_v2_cfed996f-085d-457f-a3f7-a8ed90a602al For,this order 84e07f70-7693-11ef-bebe-21e08a0cc0b3,we can get pickup point id in /order/checkout-forms/{id} img_v2_abcd014d-b447-45ec-83d2-cc6cb901dc4l But we can not get pickup point id for this order, a47627b0-769b-11ef-8b83-ffe25d045483 img_v2_aaf3512d-2c2c-4548-be37-873a78df8abl

MaciejFrackowiak commented 2 months ago

"input.sender.point" is not a required field for POST /shipment-management/shipments/create-commands. Moreover, for the order=a47627b0-769b-11ef-8b83-ffe25d045483 we didn't return "delivery.pickupPoint.id" because the chosen delivery method - Allegro Courier DHL doesn't require a pickup point - it is delivery directly to the buyer's address.

yangcen6 commented 2 months ago

So if you return to the pickup point id, we need to enter it, but if you don't return it, we don't need to?

MaciejFrackowiak commented 2 months ago

Yes, indeed.