Download readable
Information
This endpoint allow you to download the generated invoice if the original document is not a pdf.
It the original document is a PDF, it will be returned as is.
Iopole offers a default template for generating the PDF, which can be adapted to the requirements.
This endpoint is
synchronous
The role
user
is needed in order to use this endpointEndpoints
GET/v1/invoice/{invoiceId}/download/readable
Path parameters
invoiceIdstring (uuid) - Required
Request
GET /v1/invoice/:invoiceId/download/readable
curl -X 'GET'
'https://api.ppd.iopole.fr//v1/invoice/5e80a8b6-06b5-4c52-853a-c5c2e252a2fc/download/readable'
-H 'accept: application/pdf'
-H 'Authorization: Bearer ${token}'
Response
Status: 200 - application/pdf
Description: Operation performed successfully.
Status: 200 - application/xml
Description: Operation performed successfully.
Status: 401
Description: Unauthorized - Authentication is required and has failed or has not yet been provided.
Status: 403
Description: Forbidden - The server understood the request, but it refuses to authorize it. Note: This endpoint requires an admin account.