Skip to main content

Get Cart OptIn | Climes API


This endpoint is used to fetch the latest opted in status for any cart_id. Since we maintain per cart level opt-ins on our end you can use this to fetch whether the checkbox should indicate that the user has already opted in or not.

This endpoint creates a optin.

Request Parameters

Endpoint

/v3/integrations/vote/opt-in?cartId={cart_id}

Method

GET

Headers

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

Response Parameters

Status Code

200

Response Data

{
optedIn : false
}

Sample Request

curl --location --request GET 'BASE_URL/v3/integrations/vote/opt-in?cartId=9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d'  
--header 'x-api-key: API_KEY'

Sample Response

Below are sample responses for the above request.

Responses

{
"optedIn": false
}