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
webhook
object
required

Response

201
application/json
201
webhook
object
required