# Delete default allocation and recreate new allocations

**URL:** <https://developer-forum.veeqo.com/t/delete-default-allocation-and-recreate-new-allocations/1644>\
**Category:** API Queries (How To)\
**Created:** [October 30, 2025, 8:38pm UTC](https://developer-forum.veeqo.com/t/delete-default-allocation-and-recreate-new-allocations/1644 "2025-10-30T20:38:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rundown7666](https://avatars.discourse-cdn.com/v4/letter/r/E785FF/32.png) [@rundown7666](https://developer-forum.veeqo.com/u/rundown7666)\
**Post date:** [October 30, 2025, 8:38pm UTC](https://developer-forum.veeqo.com/t/delete-default-allocation-and-recreate-new-allocations/1644/1 "2025-10-30T20:38:21Z")

</div>

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?

1. call DELETE /orders/:order\_id/allocations/:allocation\_id to remove the default allocation
2. call POST /orders/:order\_id/allocations/ to create 2 packages
3. call GET /shipping/rates/:allocation\_id for each allocation id
4. 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

```auto
{
  "allocation": {
    "warehouse_id": 1,
    "line_items_attributes": [
      {
        "sellable_id": 123456789,
        "quantity": 1
      },
      {
        "sellable_id": 123456789,
        "quantity": 1
      }
    ]
  }
}

```

---

<div class="post-metadata">

**Author:** ![Alex-Veeqo](https://yyz1.discourse-cdn.com/flex033/user_avatar/developer-forum.veeqo.com/alex-veeqo/32/416_2.png) [@Alex-Veeqo](https://developer-forum.veeqo.com/u/Alex-Veeqo)\
**Post date:** [November 6, 2025, 5:12pm UTC](https://developer-forum.veeqo.com/t/delete-default-allocation-and-recreate-new-allocations/1644/2 "2025-11-06T17:12:15Z")

</div>

Hey @rundown7666,

In order to have multiple packages for a single order - you’d need to make multiple separate allocations.

Since you are currently just calling the `POST /orders/:order_id/allocations/` endpoint in step 2 once, you are only making one allocation.

So all you need to change with your workflow is to just do step 2 twice but your payload would look like this:

```auto
{
  "allocation": {
    "warehouse_id": 1,
    "line_items_attributes": [
      {
        "sellable_id": 123456789,
        "quantity": 1
      },
    ]
  }
}

```

Then you’d proceed by getting rates for each allocation and creating two separate shipments as you do in the UI.

If this works for you, please mark this message as a solution so that other developers can use it as a reference. If you are still having trouble then contact Veeqo Support via the support messenger in the Veeqo app or contacting [helpme@support.veeqo.com](mailto:helpme@support.veeqo.com)

Hope this helps,  
Alex - Veeqo

---

<div class="post-metadata">

**Author:** ![rundown7666](https://avatars.discourse-cdn.com/v4/letter/r/E785FF/32.png) [@rundown7666](https://developer-forum.veeqo.com/u/rundown7666)\
**Post date:** [December 24, 2025, 12:52am UTC](https://developer-forum.veeqo.com/t/delete-default-allocation-and-recreate-new-allocations/1644/3 "2025-12-24T00:52:11Z")

</div>

Thank you for the clarification.

- DELETE allocation, then
- repeat create allocation for each package followed by update allocation

worked as intended.
