Polling events
When you cannot receive webhooks, read the event log instead.
Every event sent as a webhook is also in GET /events for 30 days. Store the id of the last event you handled and ask for the ones after it.
curl "https://api.opentourbase.com/api/supplier/v1/events?after=evt_01JD3XB0V7M2A8K4R6T9W1Y3Z5" \
-H "Authorization: Bearer $API_KEY"- With after, events come oldest first; repeat until the list is empty.
- Filter by type with type[]=booking.* to read only what you need.
- Poll every minute or less often; webhooks are faster and cost nothing.