Skip to main content
POST
/
api
/
v2.1
/
customer
/
individual
/
{customerId}
/
consents
/
{consentType}
cURL
curl --request POST \
  --url https://sandbox.finhub.cloud/api/v2.1/customer/individual/{customerId}/consents/{consentType} \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --header 'X-Forwarded-For: <x-forwarded-for>' \
  --header 'X-Forwarded-From: <x-forwarded-from>' \
  --header 'X-Tenant-ID: <x-tenant-id>' \
  --header 'deviceId: <deviceid>' \
  --header 'platform: <platform>' \
  --data '
{
  "accepted": true,
  "version": "1.0"
}
'

Accept Individual Consent

Accepts mandatory consent types before activation.

Endpoint

POST /api/v2.1/customer/individual/{customerId}/consents/{consentType}

Required Headers

Path Parameters

customerId
string
required
Customer UUID
terms, privacy, data-processing

Request Body

{
  "accepted": true,
  "version": "1.0"
}

Success Response

200
{
  "code": 200,
  "data": {
    "status": "PENDING"
  },
  "message": "Success"
}

Headers

X-Forwarded-For
string
required
X-Tenant-ID
string
required
X-Forwarded-From
string
required
platform
string
required
deviceId
string
required
Authorization
string
required

Path Parameters

customerId
string
required
Available options:
terms,
privacy,
data-processing

Body

application/json
accepted
boolean
required
Example:

true

version
string
required
Example:

"1.0"

Response

200

Consent accepted