Skip to main content

Download PDF

Endpoint for downloading Invoice PDF by ID.

info

Please be aware that this endpoint requires a Manage Invoices or a View Invoices API Key.

GET /api/v1/groups/{group_id}/invoices/{invoice_id}/download/pdf

Response

CodeDescription
200Success
500Internal Error

Example Usage

get.js
var headers = new Headers();
headers.append('Authorization', 'API_KEY');

var requestOptions = {
method: 'GET',
headers: headers,
redirect: 'follow'
};
const group_id = '';
const invoice_id = '';
const url = `https://api.reverepayments.dev/api/v1/groups/${group_id}/invoices/${invoice_id}/download/pdf`;
fetch(url, requestOptions)
.then((response) => response.text())
.then((result) => console.log(result))
.catch((error) => console.log('error', error));

Example Success Response

Content Type: application/pdf

Body

PDF binary data