Creating shipments on orders

I am working on support for creating multiple drop shipments on an order, so I’m making multiple calls to /order/123/create_shipment. The response JSON for that request appears to be an Order JSON object. However, I haven’t yet found a way to get the ID of the Shipment that the request created. Is it always the case that the last shipment on the response object is the one I just created? I ask because I am creating several shipments in quick succession, so if I re-query for the order to get its shipments there’s no telling which one will be last.


When we serialize the order response with their shipments we are ordering by the id. These are sequential, so the last one in the list should be the last one created.

Hope that helps!