Skip to main content

Partial Order Addition | Climes API


This endpoint is useful to add extra 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 Addition Schema

NameDescriptionTypeOptional
climesThis is the amount of extra climes that are to be added to 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/add

For an order where the customer is paying :

/v3/integrations/calculated/order/add

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",
"updated_climes": 607,
"partner_order_id": "876287372837786837"
}

Sample Request

curl --location --request PATCH 'BASE_URL/v3/integrations/vote/order/add'  
--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",
"updated_climes": 607,
"partner_order_id": "876287372837786837"
}