# Couple of questions on order management

**URL:** <https://developer-forum.veeqo.com/t/couple-of-questions-on-order-management/999>\
**Category:** API Queries (How To)\
**Created:** [April 26, 2024, 9:43pm UTC](https://developer-forum.veeqo.com/t/couple-of-questions-on-order-management/999 "2024-04-26T21:43:52Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![DimuDesigns](https://avatars.discourse-cdn.com/v4/letter/d/637381/32.png) [@DimuDesigns](https://developer-forum.veeqo.com/u/DimuDesigns)\
**Post date:** [April 27, 2024, 6:46pm UTC](https://developer-forum.veeqo.com/t/couple-of-questions-on-order-management/999/2 "2024-04-27T18:46:23Z")

</div>

It’s been a while since I’ve worked with the Veeqo API but here’s what I recall:

1. 

> _When I create the order, the status I send is always ignored. No matter what I send, the order status is awaiting\_payment. Why is that?_

Looking at the reference documentation, the API does not allow you to directly set or update the status of an order. However, as you move through the process of fulfillment by executing certain actions (allocating stock to an order, creating shipments etc.) the status of the order will change accordingly.

2. 

> _When I set payment details, order status is changed to awaiting\_stock. Now, I assume the system forces me to allocate stock, but I do not need to manage stock through the system. Even if I try to create an allocation, it does not allow me to say that at least one location must exist (I have 2)._

Locations are represented as warehouses and you should create them before you create orders and allocate stock. So in your case you’d create a warehouse for each location and then reference the warehouse id when allocating stock.

3. 

> _How do you change order status via API to awaiting\_fulfillment?_

IIRC, once you create a shipment and stock is available to be allocated the order should automatically transition to ‘awaiting\_fulfillment’ status.

4. 

> _How do I put an order on hold (set on\_hold status)?_

I don’t believe you can, at least not with the public API.

5. 

> _How do I cancel an order (set cancelled status)?_

[There is an undocumented endpoint that allows for this](https://developer-forum.veeqo.com/t/cancelling-order-with-restock-items/62). But since its not officially supported you may not want to rely on it.

6. 

> _Is there a way to set a webhook notification when an order is shipped, for example?_

Veeqo doesn’t currently offer any webhooks. Hopefully, they’ll consider implementing a few now that they are a subsidiary of Amazon. In the absence of webhooks you have to get creative with setting up automated workflows. One strategy is to track the status of your orders and shipments by polling the API at regular intervals. Another is to leverage Veeqo’s email notifications and create templates with content (tracking pixels, etc.) that can trigger automations.

---

_[View the full topic](https://developer-forum.veeqo.com/t/couple-of-questions-on-order-management/999)._
