allegro / allegro-api

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

Processing of order data #9575

Open tongalalal opened 3 months ago

tongalalal commented 3 months ago

Hello, I would like to know how many packages there are in my order and which package my products are placed in. Can such a function be put into practice? What is the process of invoking the interface? I have found the order number and product number, but I don't know which package the products of my order are put in respectively. I really want to know which package my products are put in respectively, as well as the description information of some products, thank you for your answer

PrzemyslawLukanowski commented 3 months ago

Hello, the number of packages in order is returned in the GET /order/checkout-forms resource, in the delivery. calculatedNumberOfPackages field. To check the tracking numbers assigned to specific orders, use GET /order/checkout-forms/{id}/shipments. If you want to check product details, you can use GET /sale/products/{productId}.

tongalalal commented 3 months ago

Okay, copy that. Thank you very much. And I just have one more question, Is the interface /order/checkout-forms/{id} the returned lineItems.id is the id of each item in the shipments list returned by the /order/checkout-forms/{id}/shipments interface? This corresponds to lineItems.id in /order/checkout-forms/{id}.

PrzemyslawLukanowski commented 3 months ago

Yes, these are the same lineItems values.

tongalalal commented 3 months ago

Okay, copy that. Thank you very much.

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