Download an immutable versioned PDF representation
Authorization
bearerAuth Tenant-bound, scoped and expiring Apifact credential. Migrated legacy credentials are accepted only on deprecated v1 writes and tenant-scoped v2 read, poll and download routes. Each operation names the single scope it requires in x-required-scope; the scope array of the security requirement itself is empty because OpenAPI 3.0 requires it to be for a non-oauth2 scheme.
In: header
Path Parameters
uuiduuidValue in
- "pdf-a4"
- "pdf-ticket"
Response Body
application/pdf
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/api/v2/documents/497f6eca-6276-4993-bfeb-53cbbbba6f08/artifacts/versions/497f6eca-6276-4993-bfeb-53cbbbba6f08/pdf-a4" \ -H "Authorization: Bearer apf_v2_tu_credencial""string"Stream and integrity-check a public document artifact GET GET
Streams immutable bytes through a private R2-only service after tenant authorization and metadata integrity checks. Range requests are not supported.
Validate and durably create a daily summary (RC) POST POST
A daily summary (RC) reports the boletas issued on one day and the notes that affect them, and it is the only way to annul a boleta: a line with statusCode 3, never a void communication. Creation is capability-gated per tenant and does not contact SUNAT. A line naming a comprobante this API holds is checked against it: the comprobante must have been accepted or observed by SUNAT, and must not already be withdrawn or carried by another live communication. A line naming a comprobante this API does not hold is accepted and recorded as unlinked — see `references` — because an emitter may have issued it through another provider, on paper, or before integrating; SUNAT's own ERROR 2105 and 2323 police that case.