POST
/
v2
/
webhooks
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"
  }
}'
{
  "webhook": {
    "id": 123,
    "topic": "rewards/store_fulfilment",
    "address": "https://example.com/webhook",
    "created_at": "<string>",
    "updated_at": "<string>",
    "service_integration_id": 123
  }
}

Authorizations

Authorization
string
header
required

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

application/json

Body

The body is of type object.

Response

201
application/json

201

The response is of type object.