Removing order allocations


#1

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: “https://api.veeqo.com/orders/#{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:


#2

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


#3

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


#4

This.

This is the best sort of support query!

Let me know if you need anything else.