Guides
Create a Customer, Invoice, and Send It
A common billing integration flow: create the customer, create an invoice with line items, approve it, and send it to the customer.
Prerequisites
Complete the quickstart so you have valid credentials, a workspace access token, and working HMAC signing.Step 1 — Create the customer
POST /partners/customers with at minimum the customer name. Include email, addresses, and contacts as needed.
{
"customer": "Acme Corporation",
"email": "contact@acme.com"
}Save the id UUID from the response — you need it as customerUuid on the invoice.
Step 2 — Create the invoice
POST /partners/invoices with line items, dates, and the customer UUID from step 1.
The invoice is created as a draft by default. Set line item quantities, unit prices, and descriptions.
Step 3 — Approve the invoice
POST /partners/invoices/:uuid/approve transitions the invoice from draft to approved. Approved invoices can be sent to the customer.
Step 4 — Send the invoice
POST /partners/invoices/:uuid/send emails the invoice to the customer. Optionally retrieve a public link with GET /partners/invoices/:uuid/public-link.
Related reference
- Customers API
- Invoices API
- Example customer UUID used across docs:
dfa3219e-6af8-4c53-997a-037534f63a35 - Example invoice UUID:
f6a7b8c9-d0e1-2345-fabc-456789012345
