Bila← Docs

Webhooks

Signed HTTPS callbacks for every state change Bila knows about. See Handling webhooks for the verification recipe.

Register an endpoint

Add the URL at /dashboard/webhooks — Bila shows the whsec_ signing secret once on creation.

Event envelope

{
  "id": "evt_...",
  "object": "event",
  "type": "charge.succeeded",
  "resource_type": "charge",
  "resource_id": "ch_...",
  "data": { /* the resource at the time of the event */ },
  "livemode": true,
  "created": 1779000000
}

Event types

Delivery guarantees

Test mode

Endpoints receive events from both sk_test_ and sk_live_ traffic. Read event.livemode to tell them apart.