Before you start, finish your business profile and verify your email address in the Invoice-AI app. Sending invoice emails requires a verified address.
1
Get an API key
In Settings → API keys, create a key with the Raise and send invoices preset. Copy it now. It’s shown only once.To use an SDK, install it:
2
Create a customer
Use an email address you control, so the invoice lands in your own inbox.Keep the customer’s
id. It looks like cus_Nf3kQ8pR2mX7vB1cT9wL4sZ6.3
Create a draft invoice
Add one line. Creating an invoice needs an
unit_amount is in minor units, so 150000 is $1,500.00.Response (abridged)
Idempotency-Key header. The SDKs add one for you.4
Finalize it
Finalizing gives the invoice its permanent number and moves it to You can skip this step.
open.send finalizes a draft before emailing it.5
Send it
This emails the PDF and a link to view the invoice online to the customer’s email.The response is
{ "data": Invoice, "emailed_to": "[email protected]" }. Pass { "to": "..." } to send to a different address.Sending is limited to 10 emails per hour per key and 50 per hour per account. See Rate limits.POST /invoices/{id}/pay to mark the invoice paid. See Invoice lifecycle.
Next steps
Webhooks
Get notified when an invoice is viewed or paid.
Errors
Error codes, and which ones to retry.
Invoice lifecycle
Pay, void and edit invoices.
API reference
Every endpoint and field.