Skip to content
SIBISIBI Developers
Esc
navigateopen⌘Jpreview

Download an invoice as a PDF

Renders a single invoice into a PDF, generated fresh on every request, for an invoiceId from GET /invoices. A malformed invoiceId and an invoice that no longer exists (deleted, or belonging to a different organization than the caller) both return the same generic 404 — the response never reveals which of those happened.

GET/{invoiceId}/pdf
Authorization
AuthorizationBearer token · headerrequired
A Sibi Public API token or access token, sent as `Authorization: Bearer <token>`. Resolved by the API Gateway authorizer in front of every route on this API.
Path parameters
invoiceIdstringrequired
min length 1
Responses
200The rendered single-invoice PDF.
string
400Missing `invoiceId` (VALIDATION_ERROR).
codestringrequired
Allowed:VALIDATION_ERROR
messagestringrequired
detailsobject[]required
Per-field validation errors
Show properties
Array of object
fieldstringrequired
errorstringrequired
requestIdstring
AWS request id for this call — quote it when contacting support
401Missing Authorization header.
messagestringrequired
403The bearer token could not be resolved (invalid, expired, or revoked).
messagestringrequired
404The invoiceId is malformed, or the invoice it names no longer exists or belongs to a different organization. These cases are deliberately indistinguishable.
codestringrequired
Machine-readable error code
Allowed:NOT_FOUND
messagestringrequired
requestIdstring
AWS request id for this call — quote it when contacting support
500Internal server error
codestringrequired
Machine-readable error code
Allowed:INTERNAL_SERVER_ERROR
messagestringrequired
requestIdstring
AWS request id for this call — quote it when contacting support
Request
curl -X GET "https://api.sibipro.com/invoices/in_V1StGXR8_Z5jdHi6BmyT/pdf" \
  -H "Authorization: Bearer YOUR_TOKEN"
Response
"string"