API ReferenceWebhook Events
An invoice was created
application/json- body
The JSON body POSTed to a webhook endpoint.
id*stringSame as the X-Kwill-Event-Id header; stable across retries.
type*"invoice.created"Value in
"invoice.created"created_at*stringFormat
date-timedata*Return any 2xx to acknowledge the event.
Example Requests
POST/invoice.created
application/json
{ "id": "evt_3f2a8b1c4d5e6f70", "type": "invoice.created", "created_at": "2024-03-15T14:22:00Z", "data": { "object": { "id": "b2c3d4e5-f6a7-8901-bcde-f01234567890", "client_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "project_id": "a1b2c3d4-e5f6-7890-abcd-ef0123456789", "invoice_number": "INV-0042", "line_items": [ { "id": "li-1", "description": "Design work", "quantity": 40, "rate": 125, "amount": 5000 } ], "discount": 0, "tax_rate": 0, "currency": "USD", "subtotal": 5000, "total": 5000, "due_date": "2024-04-15", "note": null, "status": "draft", "paid_at": null, "viewed_at": null, "created_at": "2024-03-15T14:22:00Z", "client": { "name": "Jane Smith", "email": "jane@acme.example" } } }}