Removing order allocations

Hello there again,
I’m trying to cancel order now, but I get 400 error.
I have the following code used:
RestClient::Request.execute(method: :delete, url: “{order[:id]}/allocations/#{alloc_id}”,
headers: { content_type:“application/json”,x_api_key: User.last.veeqo_token })
Can you advise me, what I’m doing wrong here? Because it seems that recently this code was working perfectly.
Thanks a lot :slight_smile:

Got an answer:
First I need to delete a shipment.
Going to check it

Yeah, that was a shipment. First you need to delete it, than delete allocation :slight_smile:


This is the best sort of support query!

Let me know if you need anything else.