Ir al contenido
Documentación

Facturación

Descargar el XML firmado

GET
/v1/invoices/{invoiceId}/files/xml
curl --request GET \
--url https://api.timbro.do/v1/invoices/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/files/xml \
--header 'Authorization: Bearer <token>'
invoiceId
obligatorio
string format: uuid

El XML firmado del e-CF, tal como se conserva.

Media typeapplication/xml
Campos y códigos de la respuesta
string format: binary
request-id
obligatorio
string

Identifica esta solicitud. Indícalo cuando contactes a soporte.

timbro-file-sha256
obligatorio
string
/^[0-9a-f]{64}$/

SHA-256 de los bytes devueltos, en hexadecimal en minúsculas.

timbro-invoice-id
obligatorio
string format: uuid

La factura a la que pertenece el archivo.

timbro-file-created-at
obligatorio
string format: date-time

Momento en que se conservó el archivo.

timbro-certificate-sha256
obligatorio
string
/^[0-9a-f]{64}$/

SHA-256 del certificado que firmó el XML, en hexadecimal en minúsculas.

timbro-security-code
obligatorio
string
>= 6 characters <= 6 characters

Código de seguridad de la DGII del e-CF firmado.