Invoice PDF API

Invoice PDF API documentation

Turn JSON into a clean, branded invoice PDF

Base URL & authentication

https://invoice-pdf.p.rapidapi.com

Requests are authenticated by RapidAPI. Subscribe to a plan, then send these headers with every request:

X-RapidAPI-Key: YOUR_RAPIDAPI_KEY
X-RapidAPI-Host: invoice-pdf.p.rapidapi.com

All requests and responses use JSON unless stated otherwise. Amounts are numbers in the invoice currency.

POST/v1/invoices

Generate an invoice PDF and return a temporary download URL.

ParameterInTypeDescription
currency*bodystringISO 4217 code, e.g. USD or INR.
customer*bodyobjectName, email and billing address.
items*bodyarrayLine items: description, quantity, unitPrice, taxRate.
logoUrlbodystringPublic URL of your logo.

Example request

curl --request POST \
  --url 'https://invoice-pdf.p.rapidapi.com/v1/invoices' \
  --header 'X-RapidAPI-Key: YOUR_RAPIDAPI_KEY' \
  --header 'X-RapidAPI-Host: invoice-pdf.p.rapidapi.com' \
  --header 'Content-Type: application/json' \
  --data '{ "currency": ..., "customer": ..., "items": ..., "logoUrl": ... }'

Example response

{
  "id": "inv_8f2a1c",
  "total": 1180.0,
  "pdfUrl": "https://cdn.example.com/inv_8f2a1c.pdf",
  "expiresAt": "2026-11-19T10:00:00Z"
}
GET/v1/invoices/{id}

Fetch a previously generated invoice and a fresh download URL.

ParameterInTypeDescription
id*pathstringInvoice id returned on creation.

Example request

curl --request GET \
  --url 'https://invoice-pdf.p.rapidapi.com/v1/invoices/{id}' \
  --header 'X-RapidAPI-Key: YOUR_RAPIDAPI_KEY' \
  --header 'X-RapidAPI-Host: invoice-pdf.p.rapidapi.com'