/// INVOICING API

Invoicing API reference

Authenticate with your API key in the X-API-Key header. Test-mode keys create watermarked documents that use no credits.

Send an Idempotency-Key header on POST requests to make retries safe.

Every invoice event is also delivered to your webhooks, signed as usual. A plain-text summary for language models is at /docs/invoicing/llms.txt.

curl -X POST 'https://www.ashdocs.com/api/v1/invoices' \
  -H 'X-API-Key: ash_live_...' \
  -H 'Content-Type: application/json' \
  -d '{"currency":"USD","customer":{"email":"ap@acme.com","name":"Acme Inc"},"due_terms":"net_30","issue":true,"line_items":[{"description":"Consulting","quantity":"3","tax_rate":"8.25","unit_price":"150.00"}],"send":{"channels":[{"type":"email"}]},"template":"clean"}'