Get invoice PDF link
Returns a short-lived presigned URL (valid for 5 minutes) that downloads the invoice PDF. The response never contains the PDF itself. Only invoices that have a rendered PDF can be downloaded. When there is none yet, the response is 409 invoice_pdf_not_ready. For an invoice that is not a draft, the request also queues a render, so retry shortly. A draft never gets a stored PDF here. Treat the URL as a secret and do not log it.
/invoices/{id}/pdfReturns a short-lived presigned URL (valid for 5 minutes) that downloads the invoice PDF. The response never contains the PDF itself. Only invoices that have a rendered PDF can be downloaded. When there is none yet, the response is 409 invoice_pdf_not_ready. For an invoice that is not a draft, the request also queues a render, so retry shortly. A draft never gets a stored PDF here. Treat the URL as a secret and do not log it.
Related endpoints
GET /invoices/{id}/usage-explain— Explain invoice usage chargesGET /invoices— List invoicesPOST /invoices— Create invoiceGET /invoices/{id}— Get invoicePATCH /invoices/{id}— Update invoicePOST /invoices/{id}/finalize— Finalize an invoicePOST /invoices/{id}/void— Void an invoicePOST /invoices/{id}/send— Send an invoice
Common errors
401 authentication_error— missing, invalid, expired, or revoked credential. Codes:authentication_failed,invalid_api_key,expired_api_key,api_key_revoked,session_invalid,merchant_required. Carries aWWW-Authenticate: Bearerchallenge.403 authorization_error— the caller is identified but the action is denied. Codes includeinsufficient_permissions,ip_not_allowed,merchant_mismatch, andorigin_not_allowed.404 resource_missing— the referenced resource does not exist or is not visible to your key.409 conflict— Idempotency-Key collision with a different body, or a concurrent state-transition conflict.429 rate_limit_error— coderate_limit_exceeded. Back off using theRetry-Afterheader (whole seconds);X-RateLimit-Resetis a UNIX timestamp in seconds.
Your RevKeen merchant API key. Create and manage keys in Dashboard → Settings → Developer. Use rk_sandbox_* for staging/test and rk_live_* for production. The same key may be sent as Authorization: Bearer <key> if that suits your HTTP client better. A missing, invalid, expired, or revoked key returns 401 with a WWW-Authenticate: Bearer challenge; a valid key without the required scope returns 403.
In: header
Scope: invoices:read
Path Parameters
uuidResponse Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://api.revkeen.com/v2/invoices/11111111-1111-4111-8111-111111111111/pdf" \
-H "x-api-key: $REVKEEN_API_KEY"Synthetic documentation data, validated against the response schema; not a live API result.
{ "data": { "url": "https://files.revkeen.com/invoices/example-inv-0042.pdf?X-Amz-Expires=300", "expires_at": "2026-04-16T10:07:00.000Z" }, "requestId": "req_7f3a9c2e5b1d"}