You’ll need an API key first. See Authentication if you don’t have one yet.
1. Create a client
id, you’ll need it for the next step.
2. Create an invoice for that client
nois your invoice number, it’s on you to keep it unique per organization. Reuse an existing one and you’ll get a409 Conflict.- Each line item needs either an
item_id(from your item catalog) or a plaindescription, at least one of the two. qtymust be greater than 0,ratemust be 0 or more.- Setting
"status": "sent"sends the invoice immediately. Use"draft"(the default if you omitstatus) to create it without sending.
What’s next
- Manage your client list for updating, filtering, and paginating clients
- Build your item catalog so you can reference
item_idinstead of typing out descriptions every time - Rate Limits before you script anything that fires many requests in a loop