GET /v1/ecommerce/sales/:id/documents
List the electronic tax documents (DTE) issued for a sale, with their folio, status, and PDF link.
GET
Documentos tributarios de una venta
Returns the DTE issued for one sale. Use it to show the folio to the customer, check the document’s status, or fetch its PDF.
Endpoint
Required scope
ecommerce:invoicing:read
Headers
Path parameters
Example request
Response
200 OK
401 Unauthorized
Missing, invalid, revoked, or expired token.403 Forbidden
The token does not have theecommerce:invoicing:read scope.
404 Not Found
No sale with that id, or it belongs to a different company.502 Bad Gateway
ECOMMERCE_UPSTREAM_ERROR — the ecommerce service could not answer.
Operational notes
- An empty
itemsmeans nothing was issued yet. Issue it withPOST /v1/ecommerce/sales/{id}/dte. - The PDF is also available through the API.
GET /v1/ecommerce/invoicing/documents/{id}/pdftakes the documentidfrom this list.
Documentos tributarios de una venta