Skip to main content
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, with Content-Type: application/pdf.

401 Unauthorized

Missing, invalid, revoked, or expired token.

403 Forbidden

The token does not have the ecommerce: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_documents returns the document list.

Authorizations

Authorization
string
header
required

Personal Access Token con prefijo kbai_pk_. Generar desde el portal con permiso developer.manage_tokens.

Path Parameters

id
string
required

Response

200 - application/pdf

El PDF del documento

The response is of type file.