Skip to main content
Call GET /api/invoices/{id}/pdf to download the invoice as a PDF file. Kibble streams the binary response with Content-Type: application/pdf. You can save the file to disk with curl’s -o flag, proxy the response from your server, or redirect the user’s browser to this URL to trigger a native download.

Request

GET https://pay.kibble.sh/api/invoices/{id}/pdf

Path parameters

id
string
required
The invoice UUID returned as invoice_id when you created the invoice.

Example request

curl --request GET \
  --url https://pay.kibble.sh/api/invoices/a1b2c3d4-e5f6-7890-abcd-ef1234567890/pdf \
  --output invoice.pdf

Response

A successful request returns 200 OK with:
  • Content-Type: application/pdf
  • Body: The raw PDF binary stream
The pdf_url field returned by POST /api/invoices and GET /api/invoices/{id} points to this same endpoint for convenience.