Base URL & authentication
https://invoice-pdf.p.rapidapi.comRequests 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.comAll requests and responses use JSON unless stated otherwise. Amounts are numbers in the invoice currency.
POST
/v1/invoicesGenerate an invoice PDF and return a temporary download URL.
| Parameter | In | Type | Description |
|---|---|---|---|
| currency* | body | string | ISO 4217 code, e.g. USD or INR. |
| customer* | body | object | Name, email and billing address. |
| items* | body | array | Line items: description, quantity, unitPrice, taxRate. |
| logoUrl | body | string | Public 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.
| Parameter | In | Type | Description |
|---|---|---|---|
| id* | path | string | Invoice 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'