Heads up, our devs are blazing ahead—docs are catching up, so some features might not be fully documented yet.

CustomerConsent

CustomerConsent

List consents

get
/tenants/{tenantUid}/consents

List all consents.

Required permission: TENANT.ACCESS

Authorizations
AuthorizationstringRequired

Accesstoken recevied after user login with a deviceToken

Path parameters
tenantUidstringRequired

Reference to a tenant.

Pattern: ^[A-Za-z0-9-_]+
Query parameters
pageNumberintegerOptional

Reference to a specific page in a result set.

pageSizeintegerOptional

The number of items per page in a result set.

sortBystringOptional

Defines which field the resource list is sorted by.

sortDirectionstring · enumOptional
ENUM Description
ASC Sort in ascending order
DESC Sort in descending order
Possible values:
Responses
200

Example response

application/json
get
/tenants/{tenantUid}/consents
200

Example response

Create a new consent

post
/tenants/{tenantUid}/consents

Create a new consent type

Required permission: TENANT.ADMIN

Authorizations
AuthorizationstringRequired

Accesstoken recevied after user login with a deviceToken

Path parameters
tenantUidstringRequired

Reference to a tenant.

Pattern: ^[A-Za-z0-9-_]+
Body
consentUidstringOptionalPattern: ^[A-Za-z0-9-_]+
namestringRequired
descriptionstringOptional
activebooleanRequired
Responses
post
/tenants/{tenantUid}/consents
201

Example response

Get consent

get
/tenants/{tenantUid}/consents/{consentUid}

Get a consent type

Authorizations
AuthorizationstringRequired

Accesstoken recevied after user login with a deviceToken

Path parameters
tenantUidstringRequired

Reference to a tenant.

Pattern: ^[A-Za-z0-9-_]+
consentUidstringRequired

Reference to a consent

Responses
200

Example response

application/json
get
/tenants/{tenantUid}/consents/{consentUid}
200

Example response

Update consent

put
/tenants/{tenantUid}/consents/{consentUid}

Update a consent typ

Authorizations
AuthorizationstringRequired

Accesstoken recevied after user login with a deviceToken

Path parameters
tenantUidstringRequired

Reference to a tenant.

Pattern: ^[A-Za-z0-9-_]+
consentUidstringRequired

Reference to a consent

Body
namestringOptional
descriptionstringOptional
activebooleanOptional
Responses
200

Example response

application/json
put
/tenants/{tenantUid}/consents/{consentUid}
200

Example response

Delete a consent

delete
/tenants/{tenantUid}/consents/{consentUid}

Delete a consent type

Authorizations
AuthorizationstringRequired

Accesstoken recevied after user login with a deviceToken

Path parameters
tenantUidstringRequired

Reference to a tenant.

Pattern: ^[A-Za-z0-9-_]+
consentUidstringRequired

Reference to a consent

Responses
delete
/tenants/{tenantUid}/consents/{consentUid}
204

No Content

No content

List consent history for a customer

get
/tenants/{tenantUid}/customers/{customerUid}/consents/{consentUid}

List the history of a specific consent type for a customer.

The list is sorted by createdAt, where the newest history element is first

Authorizations
AuthorizationstringRequired

Accesstoken recevied after user login with a deviceToken

Path parameters
customerUidstringRequired

Reference to a Customer.

Pattern: ^[A-Za-z0-9-_]+
tenantUidstringRequired

Reference to a tenant.

Pattern: ^[A-Za-z0-9-_]+
consentUidstringRequired

Reference to a consent

Responses
200

Example response

application/json
get
/tenants/{tenantUid}/customers/{customerUid}/consents/{consentUid}
200

Example response

Add a consent change to a customer

post
/tenants/{tenantUid}/customers/{customerUid}/consents/{consentUid}

Add a consent change to a custom

Authorizations
AuthorizationstringRequired

Accesstoken recevied after user login with a deviceToken

Path parameters
customerUidstringRequired

Reference to a Customer.

Pattern: ^[A-Za-z0-9-_]+
tenantUidstringRequired

Reference to a tenant.

Pattern: ^[A-Za-z0-9-_]+
consentUidstringRequired

Reference to a consent

Body
sourcestringRequired
statusbooleanRequired

Is the consent active or withdrawn

Responses
200

Example response

application/json
post
/tenants/{tenantUid}/customers/{customerUid}/consents/{consentUid}
200

Example response

Last updated

Was this helpful?