Webhooks
Webhooks receive payment gateway events and normalize them for Ledger processing. Use this resource to understand the callback shape Fleetbase expects from configured gateway drivers.
The Gateway Webhook object
A gateway webhook is an inbound provider event handled by a Ledger payment gateway driver.
Attributes
messagestringoptionalProcessing result returned to the gateway provider.
The Gateway Webhook object
{
"message": "Webhook received."
}POST
/webhooksHandle Gateway Webhook
Receives an inbound webhook from a payment gateway driver. Fleetbase verifies the gateway event, records it idempotently, and dispatches normalized payment events.
Body parameters
company_uuidstringoptionalOrganization UUID used to resolve the active gateway when the gateway driver supports multi-company callbacks.
idstringoptionalGateway event or transaction identifier from the provider payload.
typestringoptionalGateway event type, such as a payment succeeded or payment failed event.
dataobjectoptionalProvider-specific webhook data passed to the gateway driver for parsing.
POST
/webhookscurl -X POST https://api.fleetbase.io/webhooks \
-H "Authorization: Bearer flb_live_…" \
-H "Content-Type: application/json" \
-d '{
"company_uuid": "{{company_id}}",
"id": "{{gateway_event_id}}",
"type": "payment_intent.succeeded",
"data": {
"object": {}
}
}'