Skip to main content
GET
/
invoices
/
{invoice_id}
/
pdf
Download PDF
curl --request GET \
  --url https://logistics.api.smartcp.org/v1/invoices/{invoice_id}/pdf \
  --header 'Authorization: Bearer <token>' \
  --header 'X-Client-Directory: <api-key>'
"<string>"

Authorizations

Authorization
string
header
required

Client API key sent as a bearer token.

X-Client-Directory
string
header
required

Client directory identifier. Legacy directory header is still accepted for backward compatibility.

Path Parameters

invoice_id
integer
required

Invoice ID.

Query Parameters

locale
enum<string>

Two-letter document language code. Default: en.

Available options:
cs,
de,
en,
pl,
ro,
tr
Required string length: 2
Example:

"en"

duplicate
boolean
default:false

When set to true, marks the document as a duplicate copy.

Response

PDF file generated successfully

The response is of type file.