Skip to main content
Download the e-invoice (电子发票) for a paid China-site payment. Accepts the session JWT via Authorization: Bearer or via ?token= in the query string so a plain <a href> link in the browser works without setting headers. Method: GET Path: /api/billing/invoices/{paymentId}/download Auth: Session Bearer or ?token= query JWT

Path parameters

string
required
Paid payment identifier that has an associated invoice.

Query parameters

string
Session JWT for browser-initiated downloads.

Response

200 OK with the invoice as a PDF or HTML stream, plus a Content-Disposition: attachment; filename=... header.

Example

Errors