Webhooks
Create Webhook
API reference
- Introduction
- Authentication
- Pagination
Resources
- Identity
- Customers
- Activities
- Transactions
- Orders
- Sites
- 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
The body is of type object
.
Response
201
application/json
201
The response is of type object
.
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
}
}