# Cancelling order with restock items

**URL:** <https://developer-forum.veeqo.com/t/cancelling-order-with-restock-items/62>\
**Category:** API Queries (How To)\
**Created:** [September 19, 2017, 7:16am UTC](https://developer-forum.veeqo.com/t/cancelling-order-with-restock-items/62 "2017-09-19T07:16:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andriy](https://yyz1.discourse-cdn.com/flex033/user_avatar/developer-forum.veeqo.com/andriy/32/28_2.png) [@Andriy](https://developer-forum.veeqo.com/u/Andriy)\
**Post date:** [September 19, 2017, 7:16am UTC](https://developer-forum.veeqo.com/t/cancelling-order-with-restock-items/62/1 "2017-09-19T07:16:12Z")

</div>

Hello there,

I found that sending update on order with status: ‘cancelled’ seems not work as I expected.

So basically I need restock all items from order, what request should I send for that?

I saw in developers console taht you send a lot of arguments on that url: `PUT orders/:id/cancel`, which of them should I pass?

Thanx a lot 🙂

---

<div class="post-metadata">

**Author:** ![phil](https://yyz1.discourse-cdn.com/flex033/user_avatar/developer-forum.veeqo.com/phil/32/43_2.png) [@phil](https://developer-forum.veeqo.com/u/phil)\
**Post date:** [September 19, 2017, 9:42am UTC](https://developer-forum.veeqo.com/t/cancelling-order-with-restock-items/62/2 "2017-09-19T09:42:12Z")

</div>

Hey,

Sorry for the slow reply on this one. Took a bit of research!

At the moment you would need to remove the allocation in order to restock.

We’re looking to update the API in order to expose the `orders/:id/cancel` end point. Will update documentation and let you know when we have.

---

<div class="post-metadata">

**Author:** ![Andriy](https://yyz1.discourse-cdn.com/flex033/user_avatar/developer-forum.veeqo.com/andriy/32/28_2.png) [@Andriy](https://developer-forum.veeqo.com/u/Andriy)\
**Post date:** [September 19, 2017, 10:05am UTC](https://developer-forum.veeqo.com/t/cancelling-order-with-restock-items/62/3 "2017-09-19T10:05:51Z")

</div>

Sorry for disturbing you, but, please, provide an example for this action.

---

<div class="post-metadata">

**Author:** ![phil](https://yyz1.discourse-cdn.com/flex033/user_avatar/developer-forum.veeqo.com/phil/32/43_2.png) [@phil](https://developer-forum.veeqo.com/u/phil)\
**Post date:** [September 19, 2017, 11:00am UTC](https://developer-forum.veeqo.com/t/cancelling-order-with-restock-items/62/4 "2017-09-19T11:00:33Z")

</div>

[http://developers.veeqo.com/docs#/reference/allocations/allocation/delete](http://developers.veeqo.com/docs#/reference/allocations/allocation/delete)

---

<div class="post-metadata">

**Author:** ![Andriy](https://yyz1.discourse-cdn.com/flex033/user_avatar/developer-forum.veeqo.com/andriy/32/28_2.png) [@Andriy](https://developer-forum.veeqo.com/u/Andriy)\
**Post date:** [September 19, 2017, 3:04pm UTC](https://developer-forum.veeqo.com/t/cancelling-order-with-restock-items/62/5 "2017-09-19T15:04:24Z")

</div>

Oh, thanx,  
I’ll try it 🙂
