allegro / allegro-api

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

order fufilliment #9669

Open tongalalal opened 2 months ago

tongalalal commented 2 months ago

I need to modify the status of the order through the API,

  1. Modify the order status from now to READY_FOR_SHIPMENT, what conditions are needed during this period, or can you directly https://api through the interface. {environment}/order/checkout-forms/{id}/fulfillment,
  2. Here I https://api through this interface. {"errors":[{"code":"NotSupportedException","message":"Unsupported content type. Please check 'Content-Type' request header","details":null,"path":null,"userMessage":"Request contains invalid data. Contact the application author.","metadata":{}}]}, why is that? How do I change this? Here's my trace_id: a9ae006d51028e51 Please answer these two questions of mine, thank you very much
MaciejFrackowiak commented 2 months ago
  1. It all depends on the seller's order management - you can switch fulfillment status anytime.
  2. You didn't provide a correct Content-type header - the right one is "application/vnd.allegro.public.v1+json".
tongalalal commented 2 months ago

@MaciejFrackowiak Okay, understood, in addition, I have another question, which state of the order is in order to get the package information of the order through the API, assuming that the seller is cooperating with Allegro's logistics, is the package automatically generated or generated by the seller himself?

MaciejFrackowiak commented 2 months ago

No, the package should be generated by the seller - we have Shipment management resources to prepare the package, label, etc.

tongalalal commented 2 months ago

@MaciejFrackowiak That is to say, no matter which logistics cooperation model is chosen, does the seller need to create the information of the package themselves

MaciejFrackowiak commented 2 months ago

If you use Ship with Allegro you don't have to - a mechanism will add a tracking number to the order automatically.

tongalalal commented 2 months ago

@MaciejFrackowiak Then if I test it now, how can I add a package to the order, I don't have the actual package data, what should I do?

MaciejFrackowiak commented 2 months ago

You can add tracking numbers using POST /order/checkout-forms/{id}/shipments.

tongalalal commented 2 months ago

@MaciejFrackowiak What if I don't have these box numbers, I'm in beta right now, where do I get them?

tongalalal commented 2 months ago

image @MaciejFrackowiak What is the tracking number here

MaciejFrackowiak commented 2 months ago

It should be a valid tracking number for the selected carrier. We do not create it on request.

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