Skip to main content

Vote for a Project | Climes API


This endpoint is useful to send your order's climes to selected project. This can be integrated post Order being created successfully.

Request Parameters

Request Schema

NameDescriptionTypeOptional
partner_order_idThis partner_order_id is the same which was used while creating an order.string
required
climesThis same number of climes sent while creating the order.numberoptional
project_idThis is the project selected by your user to support their climes with. You can get project_id from Get Projects APIstring
required

Endpoint

/v3/integrations/vote/choose

Method

POST

Headers

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

Payload

{
"partner_order_id": "876287372837786837",
"project_id" : "farmers-for-forests"
}

Response Parameters

Status Code

200

Response Data

{
"message": "Your choice has been recorded successfully"
}

Sample Request

curl --location --request POST 'BASE_URL/v3/integrations/vote/choose'  
--header 'x-api-key: API_KEY'
--header 'Content-Type: application/json'
--data-raw '{
"partner_order_id": "876287372837786837",
"project_id" : "farmers-for-forests"
}'

Sample Response

Below are sample responses for the above sample request.

Responses

{
"message": "Your choice has been recorded successfully"
}