Skip to content
Loading keys…

Invoices

Create, send, and track one-shot or recurring invoices.

An invoice bills a customer for a fixed amount, once or on a recurring cycle. See Billing → Invoice for the full product guide.

private key required, live only

Invoice endpoints require the private key (sk...) and are only available in the live environment. There is no sandbox invoicing.

Endpoints

MethodPathDescription
POST/invoicesCreate an invoice
GET/invoicesList invoices
GET/invoices/{id}Retrieve an invoice
PUT/invoices/{id}Update an invoice (only if editable)
DELETE/invoices/{id}Delete an invoice (only if editable)
POST/invoices/{id}/sendMark the invoice as sent
POST/invoices/{id}/mark-paidMark the invoice as paid (full or partial)
POST/invoices/{id}/cancelCancel an invoice

Recurring invoices

Set is_recurring: true and a recurring_frequency on creation to have Wajub automatically generate the next invoice at the end of each cycle. See Billing → Recurring invoices for the full workflow.

Events

Every status change (sent, paid, overdue, cancelled) is delivered as a single invoice.updated event. Check data.status to see which one occurred. See the full event catalog.

EventTrigger
invoice.createdA new invoice was created
invoice.updatedThe invoice changed, sent, marked paid, overdue, or cancelled
invoice.deletedThe invoice was deleted

What did you think of this content?