Developer
cURL
Three calls.
bash
# List
curl "https://api.trabalance.com/api/v1/customers?page_size=10" \
-H "Authorization: Bearer tk_live_…"
# Create a customer (idempotent)
curl -X POST https://api.trabalance.com/api/v1/customers \
-H "Authorization: Bearer tk_live_…" -H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"name":"Acme Corp","email":"[email protected]"}'
# Create an invoice
curl -X POST https://api.trabalance.com/api/v1/invoices \
-H "Authorization: Bearer tk_live_…" -H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"receiver":"<customer id>","date":"2026-08-26","items":[{"id":"<item id>","qty":2,"rate":150}]}'
# Download the PDF
curl "https://api.trabalance.com/api/v1/invoices/<id>/pdf" \
-H "Authorization: Bearer tk_live_…" -o invoice.pdf