# End to End Order Workflow

**URL:** <https://developer-forum.veeqo.com/t/end-to-end-order-workflow/467>\
**Category:** API Queries (How To)\
**Created:** [October 11, 2021, 4:08pm UTC](https://developer-forum.veeqo.com/t/end-to-end-order-workflow/467 "2021-10-11T16:08:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nick](https://avatars.discourse-cdn.com/v4/letter/n/FF9900/32.png) [@Nick](https://developer-forum.veeqo.com/u/Nick)\
**Post date:** [October 11, 2021, 4:08pm UTC](https://developer-forum.veeqo.com/t/end-to-end-order-workflow/467/1 "2021-10-11T16:08:55Z")

</div>

Hi,

do I have to follow the below steps in order to create and ship an order with the Veeqo API?

- Create order (with line\_items\_attributes)
- Create a new allocation for that order + line itmes
- Create new shipment with order\_id and allocation\_id

Is it not possible to avoid the allocation call at least? Can it be done inside the CREATE Order request?

Thanks for your help!

---

<div class="post-metadata">

**Author:** ![Kristien](https://yyz1.discourse-cdn.com/flex033/user_avatar/developer-forum.veeqo.com/kristien/32/157_2.png) [@Kristien](https://developer-forum.veeqo.com/u/Kristien)\
**Post date:** [October 11, 2021, 4:26pm UTC](https://developer-forum.veeqo.com/t/end-to-end-order-workflow/467/2 "2021-10-11T16:26:46Z")

</div>

Hi, @Nick.  
If there is stock for the order, then once it’s created, Veeqo will automatically allocate the order. When a shipment is made, we’re shipping the allocation and not the order therefore the allocation must be present for a shipment to be made.

The flow to create a shipment through API would be as follows:

1. [Create an order](https://developer.veeqo.com/docs#/reference/orders/order-collection/create-a-new-order)
2. Make a request to [get any allocations for that order](https://developer.veeqo.com/docs#/reference/orders/order/view-an-order-detail)
3. Make another request to [create a shipment](https://developer.veeqo.com/docs#/reference/shipments/create-a-shipment) using the allocation ID acquired in step 2.

Unfortunately, this is the only way you can create a shipment through the API as shipments are reliant on an allocation being present.

Hope this helps!

---

<div class="post-metadata">

**Author:** ![Nick](https://avatars.discourse-cdn.com/v4/letter/n/FF9900/32.png) [@Nick](https://developer-forum.veeqo.com/u/Nick)\
**Post date:** [October 11, 2021, 4:40pm UTC](https://developer-forum.veeqo.com/t/end-to-end-order-workflow/467/3 "2021-10-11T16:40:57Z")

</div>

Hi @Kristien ! Thanks for the quick reply and the info!  
I can work with that!
