Hi,
By default Veeqo allocates all items in an order to 1 package, so an order with 2 items would ship in 1 package. If I wish to change this via the API to use 1 package per item so that 2 packages are shipped, what’s the proper workflow?
- call DELETE /orders/:order_id/allocations/:allocation_id to remove the default allocation
- call POST /orders/:order_id/allocations/ to create 2 packages
- call GET /shipping/rates/:allocation_id for each allocation id
- call POST /shipping/shipments and buy all the quoted rates for each allocation
When I create the new allocation in step 2, the web UI shows the order being split into multiple packages, but the packages have no items packed inside them. Is there another API call to pack the items? Or, is there an API equivalent of “Edit Packages → Split by Package” found on the web UI
My payload for creating a new allocation
{
"allocation": {
"warehouse_id": 1,
"line_items_attributes": [
{
"sellable_id": 123456789,
"quantity": 1
},
{
"sellable_id": 123456789,
"quantity": 1
}
]
}
}