v1
latestOpenAPI 3.1.02026-07-241080412.6 KBFetch customer's consents
Use /customers/:customerId/consents to fetch customer's consents. Display fetched consents to enable consents management. This endpoint shows actual status of customer's consents. It returns useful information like: status (accepted/declined), is it required, is it the actual version of consents, the label for it.
get/customers/{customerId}/consents
Path parameters
customerIdstring required
Customer identifier at Cleeng
Response
200
Example response
{
"responseData": {
"consents": [
{
"customerId": "129644741",
"required": true,
"name": "publisher_terms",
"state": "accepted",
"version": "3",
"label": "I accept <a href=\"https://cleeng.com/privacy\" target=\"_blank\">Terms and Conditions</a> of pride&prejudice.",
"value": "https://cleeng.com/privacy",
"newestVersion": "3",
"date": 1588848419
}
]
}
}