api/v1/customer/accept-consent/{id}

POST

/api/v1/customer/accept-consent/{id}

id refers to the customer's id who is accepting the consent.

This API method will allow you to accept the customer's consent for the given revision and platform.

platform_type = ios, android, all(only for privacy-policy, terms-and-conditions)
type(consent type) = data, permission, privacy-policy, terms-and-conditions

Request Parameters

Parameter

Value / Type

Required

platform_type

STRING

true

type

STRING

true

Sample Response

{
    "status": true,
    'isAccepted': true,  
    "message": "Customer consent has been accepted successfully"
}
{
    "status": false,
    'isAccepted': true,
    "message": "Consent already accepted for the given customer, revision and platform."
}
{
    "status": false,
    "errorCode": "VALIDATION_EXCEPTION",
    "message": "Please provid a valid platform type"
}
{
    "status": false,
    "errorCode": "VALIDATION_EXCEPTION",
    "message": "Content Revision is not found"
}