Skip to main content

Partial Order Cancellation | Climes API


This endpoint is useful to remove climes to 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

Order Partial Cancellation Schema

NameDescriptionTypeOptional
climesThis is the amount of climes that are to be removed from the users existing order.number
required
partner_order_idThis partner_order_id is same as one used while creating the order. This partner_order_id will be used to update the order's climes.string
required

Endpoint

For an order where the merchant is paying :

/v3/integrations/vote/order/cancel

For an order where the customer is paying :

/v3/integrations/calculated/order/cancel

Method

PATCH

Headers

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

Payload

{
"climes" : 50,
"partner_order_id" : "876287372837786837"
}

Response Parameters

Status Code

200

Response Data

{
"message": "Order updated successfully",
"remaining_climes": 557,
"partner_order_id": "876287372837786837"
}

Sample Request

curl --location --request PATCH 'BASE_URL/v3/integrations/vote/order/cancel'  
--header 'x-api-key: API_KEY'
--header 'Content-Type: application/json'
--data-raw '{
"climes" : 50,
"partner_order_id" : "876287372837786837"
}'

Sample Response

Below are sample responses for the above request.

Responses

{
"message": "Order updated successfully",
"remaining_climes": 557,
"partner_order_id": "876287372837786837"
}