Download an invoice

View as Markdown

Returns the Stripe-hosted invoice links for one of the account’s invoices — Stripe is the source of truth for invoices. Use the invoiceId from a deposit or the subscription in GET /api/v1/billing. invoicePdf is a direct PDF download; hostedInvoiceUrl is Stripe’s hosted invoice page. Returns 404 if the invoice doesn’t belong to the account.

Authentication

AuthorizationBearer

Your Dial API key, sent as Authorization: Bearer sk_live_...

Path parameters

invoiceIdstringRequired

Stripe invoice id (in_…), as returned in GET /api/v1/billing.

Response

Stripe-hosted invoice links.

hostedInvoiceUrlstring or null

Stripe-hosted invoice page (has a download button), or null.

invoicePdfstring or null
Direct link to the invoice PDF, or null.

Errors

401
Unauthorized Error
404
Not Found Error