provider Invoices GET
/ar/invoices/{invoiceId}/pdf @utdk/mercury
/ar/invoices/{invoiceId}/pdf Download invoice PDF
Downloads a PDF file for the specified invoice. The response includes a Content-Disposition header set to 'attachment' with the filename.
- invoiceId path required
- string
Try it
Authentication
Configure credentials for Mercury API
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.
Saved automatically to browser storage.
Code snippet
Updates live as you fill in the form above.
TypeScript
import mercury from '@utdk/mercury';
await mercury.getinvoicepdf()