Skip to content
Elara One docs
Consent

Get the consent banner

GET
/v1/merchant/consent/banner

Authorization

tenantKeybearerAuth
headerX-Tenant-Key<token>

The public store key (pk_live_…). Required on every call.

headerAuthorizationBearer <token>

A customer token from POST /v1/auth/login, or a merchant API key, on routes that need one.

Header Parameters

X-Client-IP?string

Optional. IP address of the shopper (one IPv4/IPv6, no port, no list). Honoured only together with a valid X-Tenant-Secret; ignored otherwise. Used for rate limits and recorded with form submissions.

X-Tenant-Secret?string

Optional here. Server secret of the store: server-to-server only, never from a browser. Enables X-Client-IP.

Response Body

Success.

application/json
  1. response
data*
Example Request
curl -X GET 'https://api.elaraone.app/api/v1/merchant/consent/banner' \  -H 'X-Tenant-Key: pk_live_…' \  -H 'X-Tenant-Secret: your-server-secret'
Example Response
{  "data": {    "version": 0,    "privacy_notice_version": "string",    "title": "string",    "body": "string",    "labels": {      "accept_all": "string",      "reject_all": "string",      "manage": "string",      "save": "string",      "settings_link": "string"    },    "links": {      "privacy_notice": "string",      "cookie_table": "string"    },    "strictly_necessary": {      "label": "string",      "description": "string"    },    "categories": [      {        "key": "analytics",        "label": "string",        "description": "string"      }    ],    "notice_purpose_change": true,    "purposes_version": 0,    "published_by": "string",    "published_at": "string"  }}