Skip to main content

Full Order Cancellation | Climes API


This endpoint is useful to fully cancel an already existing order which is in locked state.

caution

This endpoint is only applicable for orders which are in locked state. This will return an error in case of order in unlocked state.

Request Parameters​

Endpoint​

For an order where the merchant is paying :

/v3/integrations/vote/order/{partner_order_id}/cancel

For an order where the customer is paying :

/v3/integrations/calculated/order/{partner_order_id}/cancel

Method​

DELETE

Headers​

{
'x-api-key' : 'API_KEY',
'Content-Type' : 'application/json'
}

Response Parameters​

Status Code​

200

Response Data​

{
"message": "Order cancelled successfully",
"partner_order_id" : "876287372837786837"
}

Sample Request​

curl --location --request DELETE 'BASE_URL/v3/integrations/vote/order/876287372837786837/cancel'  
--header 'x-api-key: API_KEY'
--header 'Content-Type: application/json'

Sample Response​

Below are sample responses for the above request.

Responses

{
"message": "Order cancelled successfully",
"partner_order_id": "876287372837786837"
}