InvoiceDocument

Get Invoice PDF

GET
Generate a PDF of the invoice. This PDF is generated from the data in the invoice, not from the uploaded documents.

Path parameters

invoiceIdstringRequired

Response

This endpoint returns an object
mimeType
string
uri
string
id
stringOptional
ID of the document. If not provided, this is a dynamic document that is generated on the fly.
GET
1curl https://api.mercoa.com/invoice/:invoiceId/pdf/generate \
2 -H "Authorization: Bearer <token>"
200
Retrieved
1{
2 "mimeType": "string",
3 "uri": "string",
4 "id": "string"
5}