CustomerConsent
CustomerConsent
List all consents.
Required permission: TENANT.ACCESS
Reference to a tenant.
^[A-Za-z0-9-_]+
Reference to a specific page in a result set.
The number of items per page in a result set.
Defines which field the resource list is sorted by.
ENUM | Description |
---|---|
ASC | Sort in ascending order |
DESC | Sort in descending order |
GET /v2/tenants/{tenantUid}/consents HTTP/1.1
Host: api.flowretail.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Example response
{
"items": [
{
"consentUid": "text",
"name": "text",
"description": "text",
"active": true,
"createdAt": "2025-07-30T18:09:46.444Z",
"createdBy": "text",
"lastModifiedAt": "2025-07-30T18:09:46.444Z",
"lastModifiedBy": "text"
}
],
"paging": {
"pageNumber": 1,
"pageSize": 1,
"totalCount": 1
}
}
Create a new consent type
Required permission: TENANT.ADMIN
Reference to a tenant.
^[A-Za-z0-9-_]+
^[A-Za-z0-9-_]+
POST /v2/tenants/{tenantUid}/consents HTTP/1.1
Host: api.flowretail.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 70
{
"consentUid": "text",
"name": "text",
"description": "text",
"active": true
}
Example response
{
"consentUid": "text",
"name": "text",
"description": "text",
"active": true,
"createdAt": "2025-07-30T18:09:46.444Z",
"createdBy": "text",
"lastModifiedAt": "2025-07-30T18:09:46.444Z",
"lastModifiedBy": "text"
}
Get a consent type
Reference to a tenant.
^[A-Za-z0-9-_]+
Reference to a consent
GET /v2/tenants/{tenantUid}/consents/{consentUid} HTTP/1.1
Host: api.flowretail.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Example response
{
"consentUid": "text",
"name": "text",
"description": "text",
"active": true,
"createdAt": "2025-07-30T18:09:46.444Z",
"createdBy": "text",
"lastModifiedAt": "2025-07-30T18:09:46.444Z",
"lastModifiedBy": "text"
}
Update a consent typ
Reference to a tenant.
^[A-Za-z0-9-_]+
Reference to a consent
PUT /v2/tenants/{tenantUid}/consents/{consentUid} HTTP/1.1
Host: api.flowretail.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 50
{
"name": "text",
"description": "text",
"active": true
}
Example response
{
"consentUid": "text",
"name": "text",
"description": "text",
"active": true,
"createdAt": "2025-07-30T18:09:46.444Z",
"createdBy": "text",
"lastModifiedAt": "2025-07-30T18:09:46.444Z",
"lastModifiedBy": "text"
}
Delete a consent type
Reference to a tenant.
^[A-Za-z0-9-_]+
Reference to a consent
DELETE /v2/tenants/{tenantUid}/consents/{consentUid} HTTP/1.1
Host: api.flowretail.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No Content
No content
List the history of a specific consent type for a customer.
The list is sorted by createdAt, where the newest history element is first
Reference to a Customer.
^[A-Za-z0-9-_]+
Reference to a tenant.
^[A-Za-z0-9-_]+
Reference to a consent
GET /v2/tenants/{tenantUid}/customers/{customerUid}/consents/{consentUid} HTTP/1.1
Host: api.flowretail.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Example response
{
"items": [
{
"consentUid": "text",
"name": "text",
"status": true,
"source": "text",
"createdAt": "2025-07-30T18:09:46.444Z"
}
]
}
Add a consent change to a custom
Reference to a Customer.
^[A-Za-z0-9-_]+
Reference to a tenant.
^[A-Za-z0-9-_]+
Reference to a consent
Is the consent active or withdrawn
POST /v2/tenants/{tenantUid}/customers/{customerUid}/consents/{consentUid} HTTP/1.1
Host: api.flowretail.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 31
{
"source": "text",
"status": true
}
Example response
{
"consentUid": "text",
"name": "text",
"status": true,
"source": "text",
"createdAt": "2025-07-30T18:09:46.444Z"
}
Was this helpful?