type
(required)type
provided is "webhook_credit_limit":webhook_url
(required): provide the URL of your Webhook implementation. Example: "https://example.com".type
provided is "email_credit_limit":email
(required): provide the email address to recieve the email notifications.language
(optional): language for the email based notifications. Example: “en”.levels
(optional): Credit limit thresholds at which notifications are triggered.email
parameter, which will send an email to your inbox asynchronously.curl --location --request POST '/v2/notifications/opt-in' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {{token}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"type": "webhook_credit_limit",
"webhook_url": "https://example.com",
"levels": [
50,
70,
80,
90
]
}'
{
"data": {
"notification": {
"type": "webhook_credit_limit",
"contact_point": "https://example.com",
"levels": [
50,
70,
80,
90
]
}
},
"meta": {
"message": "success"
}
}