If we’re going to need to have separate shipping statuses and tracking numbers for each (or group of) line item?
E.g. if we send a few shipments per order (let’s say one shipment includes one or more line items) and we would like to update each line item shipping status separately.
I see we could achieve that by using /order/X/split - and then a “chunk” of the order may have its own shipping status, tracking info etc.
But I wonder maybe there are better ways to do that?
To get the orders, you’ll just make a GET request to the order ids that are returned from the /order/{order_id}/split endpoint. Is that what you’re asking, or are you expecting a single call to give you all you need?
Once orders are split, you’ll want to treat them as their own orders. The reference is there for a parent order, but no actions can be taken on the parent, it’s essentially frozen at the point of splitting.
I should “store” split Order IDs on my side and there is no way to get “organized data structure with relations between parent and child orders” via API once split is done.
Ah, taking a look at the order’s response and clicking on show JSON Schema, i am able to see the keys mentioned, but they don’t seem to be showing up in the example response.
We are currently working on updating our documentation to make things more easy and unified. For now, this is what we have to offer, so I hope my information here helps you out for at least this parent/sibling order information you’re seeking.
so, just to make sure I understood in correctly, any order should have those 3 fields you mentioned as Null or Object and we could rely on them to keep the data integrity.