Email Optin
Optin
Use the field emailOptin
at payment request to trigger the email optin retrieval flow.
After the payment flow, the user will be asked if he wants to receive his next communications through email. If the user decides to optin, Digiteal will then collect the email and send it through a webhook.
Payment request
Request a payment through API.
Find out how to request a payment
Webhook
You should subscribe to the webhook to be notified when a user chooses to receive his communications through email.
Webhook type
CUSTOMER_OPTIN
The webhook body will contain the email collected in the email optin retrieval flow as well as the information related to the payment.
{
"executionTimestamp":"2024-03-18T23:11:14.060413",
"creditorIdentificationNumber":"BE:VAT:BE0129306068",
"customerInternalId":"54e5b890-b08b-4268-a374-5c3f13582c41",
"channel":"DIGITEAL",
"changeType":"OPTIN",
"email":"[email protected]"
}
Updated 5 months ago