We’ve added a new webhook event, for location sync statuses

A location.status event is triggered when there are updates from a card network for a Location in a Program.

In the test environment, this webhook triggers three times for each location upon creating a Location, once for each card scheme, with a location.active event.

In the live environment, this would trigger whenever a location has synced successfully for a card scheme, with a location.active event. Or whenever a location has failed to sync for a card scheme, with a location.failed event.

You can use the Fidel Dashboard or the Webhooks API to register your webhook URL with the new location.status event.

curl -X POST \
  https://api.fidel.uk/v1/programs/06471dbe-a3c7-429e-8a18-16dc97e5cf35/hooks \
  -H 'content-type: application/json' \
  -H 'fidel-key: sk_test_50ea90b6-2a3b-4a56-814d-1bc592ba4d63' \
  -d '{
    "event": "location.status",
    "url": "https://example.com/location-webhook"
  }'

To read more about the new location.status webhook event, visit our documentation!