curl --request POST \
--url https://api.loyaltylion.com/v2/webhooks \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"webhook": {
"topic": "customers/update",
"address": "https://example.com/webhook",
"service_integration_id": 123
}
}
'{
"webhook": {
"id": 123,
"topic": "rewards/store_fulfilment",
"address": "https://example.com/webhook",
"created_at": "<string>",
"updated_at": "<string>",
"service_integration_id": 123
}
}curl --request POST \
--url https://api.loyaltylion.com/v2/webhooks \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"webhook": {
"topic": "customers/update",
"address": "https://example.com/webhook",
"service_integration_id": 123
}
}
'{
"webhook": {
"id": 123,
"topic": "rewards/store_fulfilment",
"address": "https://example.com/webhook",
"created_at": "<string>",
"updated_at": "<string>",
"service_integration_id": 123
}
}An API key linked to a Program in LoyaltyLion, with a set of permissions (scopes). API keys can be created manually, or acquired through an OAuth2 flow. The API key should be provided as a Bearer token in the Authorization header
Body
Show child attributes
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://
"https://example.com/webhook"
201
Show child attributes
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://
"https://example.com/webhook"
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