Documentation / SDK v1

Invoices

Download invoice or receipt PDFs via /sdk/v1.

wallet balance · bash
BASE_URL="https://<your-backend-host>"
APP_ID="app_..."
API_KEY="sk_..."

curl -sS "$BASE_URL/sdk/v1/wallet/balance" \
  -H "X-Application-Id: $APP_ID" \
  -H "X-Api-Key: $API_KEY"
All documentation

All endpoints below require:

  • X-Application-Id
  • X-Api-Key

GET /sdk/v1/invoice/pdf

Download an invoice or receipt PDF.

Query parameters

  • invoiceId (required)

Response

Returns application/pdf with Content-Disposition: attachment; filename="invoice_<number>.pdf" or receipt_<number>.pdf.

Common errors

  • 400: missing invoiceId
  • 403: invoice exists but is not accessible to the authenticated agency
  • 404: invoice not found

Describe your program.

Grade turns it into a program it can track and pay.