GET /v1/ecommerce/invoicing/documents/:id/pdf
Download the PDF of an issued electronic tax document (DTE).
GET
PDF de un documento tributario
Returns the PDF of one DTE, as raw bytes. Take the document id from
GET /v1/ecommerce/sales/{id}/documents.
Endpoint
Required scope
ecommerce:invoicing:read
Headers
Path parameters
Example request
Response
200 OK
The PDF file, withContent-Type: application/pdf.
401 Unauthorized
Missing, invalid, revoked, or expired token.403 Forbidden
The token does not have theecommerce:invoicing:read scope.
404 Not Found
No document with that id, or it belongs to a different company.502 Bad Gateway
ECOMMERCE_UPSTREAM_ERROR — the ecommerce service could not answer.
Operational notes
- The body is binary, not JSON. Errors still come back as JSON, so check the status before saving the body to a file.
- There is no MCP tool for the PDF. Like media download, it is a file, not JSON.
keebai_ecommerce_sale_documentsreturns the document list.
PDF de un documento tributario