Endpoints
Webhooks
Webhooks
Register webhook endpoints to receive real-time notifications about booking events.
Register a Webhook
Code
Request Body
Code
Response
Code
List Webhooks
Code
Returns all registered webhooks for the authenticated agency.
Update a Webhook
Code
Updates webhook URL, events, or description.
Delete a Webhook
Code
Removes a registered webhook endpoint.
View Delivery Logs
Code
Returns delivery logs for a specific webhook, including success/failure status and response codes.
Webhook Events
| Event Type | Description |
|---|---|
booking.confirmed | Booking confirmed by the golf course |
booking.cancelled | Booking has been cancelled |
booking.modified | Booking details have been modified |
refund.processed | Refund has been processed |
Webhook Payload
Code
Signature Verification
Webhook payloads include an X-GG-Signature header containing an HMAC-SHA256 signature. Verify this signature using your webhook secret to ensure the payload is authentic.
Code
Always verify webhook signatures before processing events. Respond with 200 OK promptly to acknowledge receipt.
Last modified on