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.contact_point field, which reflects the email or webhook URL you provided when opting in to the webhook.email parameter, which will send an email to your inbox asynchronously.curl --location '/v2/notifications/opt-in' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {{token}}' \
--header 'url: https://partners-api.airalo.com' \
--header 'Content-Type: application/json' \
--data '{
"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"
}
}