Hi,
I’d like to only partially ship orders, as opposed to shipping the whole order when using the shipping request.
What is the best way to achieve this?
Many thanks,
Hi,
I’d like to only partially ship orders, as opposed to shipping the whole order when using the shipping request.
What is the best way to achieve this?
Many thanks,
Hi, @JackG!
Welcome to the Veeqo developer forum!
With Veeqo, shipments are based off the allocation for an order.
You will first need to remove any allocations on the order that may exist already. You’ll then need to ensure that you have created an allocation, which allocates only the items you wish to ship. Then, once the allocation is created, take that allocation ID, and create a shipment as usual.
Here’s an example
If I have an order (let’s give it an ID of 123456) that contains 2 line items (let’s give the first line item a sellable ID of 234567 and the second, a sellable ID of 345678) then here’s what I’d do…
{
"allocation": {
"warehouse_id": WAREHOUSE_ID_HERE,
"line_items_attributes": [
{
"sellable_id": 234567,
"quantity": 1
}
]
}
}
{
"shipment": {
"tracking_number_attributes": {
"tracking_number": "12345679ABC"
},
"carrier_id": 3,
"notify_customer": true,
"update_remote_order": true
},
"allocation_id": ALLOCATION_ID_HERE,
"order_id": 123456
}
That should do the trick!
In short:
Hope this helps!