Cancelling order with restock items

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 :slight_smile:

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.

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

http://developers.veeqo.com/docs#/reference/allocations/allocation/delete

Oh, thanx,
I’ll try it :slight_smile: