Webhooks
Create Webhook
API reference
- Introduction
- Authentication
- Pagination
Resources
- Customers
- Activities
- Transactions
- Orders
- Emails
- Webhooks
Webhooks
- Introduction
- Webhook events
Webhooks
Create Webhook
POST
/
v2
/
webhooks
curl --request POST \
--url https://api.loyaltylion.com/v2/webhooks \
--header 'Content-Type: application/json' \
--data '{
"webhook": {
"topic": "customers/update",
"address": "https://example.com/webhook"
}
}'
{
"webhook": {
"id": 123,
"topic": "rewards/store_fulfilment",
"address": "https://example.com/webhook",
"created_at": "<string>",
"updated_at": "<string>",
"service_integration_id": 123
}
}
Body
application/json
Body
Available options:
customers/update
, loyalty_emails/unsubscribe
, program_events/customer.enrolled
, program_events/customer.tier_upgraded
, program_events/customer.tier_downgraded
, program_events/customer.points_earned
, program_events/customer.reward_available_notification
, program_events/customer.recurring_reward_available_reminder
, program_events/customer.claimed_reward
, program_events/customer.referral_complete
, program_events/customer.rule_completed
, program_events/customer.approaching_tier_upgrade
, program_events/customer.moved_to_at_risk_segment
, program_events/customer.moved_to_defected_segment
, program_events/customer.moved_to_loyal_segment
, program_events/customer.approaching_points_expiration
, program_events/customer.approaching_reward_expiration
The full URL which will receive webhook requests. This should start with https://
Response
201
application/json
201
Available options:
rewards/store_fulfilment
, customers/update
, loyalty_emails/unsubscribe
, program_events/customer.enrolled
, program_events/customer.tier_upgraded
, program_events/customer.tier_downgraded
, program_events/customer.points_earned
, program_events/customer.reward_available_notification
, program_events/customer.recurring_reward_available_reminder
, program_events/customer.claimed_reward
, program_events/customer.referral_complete
, program_events/customer.rule_completed
, program_events/customer.approaching_tier_upgrade
, program_events/customer.moved_to_at_risk_segment
, program_events/customer.moved_to_defected_segment
, program_events/customer.moved_to_loyal_segment
, program_events/customer.approaching_points_expiration
, program_events/customer.approaching_reward_expiration
The full URL which will receive webhook requests. This should start with https://
ISO 8601
timestamp indicating when the webhook was created
ISO 8601
timestamp indicating when the webhook was updated
The ID of the integration that owns this webhook, if any
curl --request POST \
--url https://api.loyaltylion.com/v2/webhooks \
--header 'Content-Type: application/json' \
--data '{
"webhook": {
"topic": "customers/update",
"address": "https://example.com/webhook"
}
}'
{
"webhook": {
"id": 123,
"topic": "rewards/store_fulfilment",
"address": "https://example.com/webhook",
"created_at": "<string>",
"updated_at": "<string>",
"service_integration_id": 123
}
}