Get MIPYME document

Retrieves a MIPYME document using certificate and document information.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

This endpoint expects an object.
certificate_pfx_base64stringRequired
Base64 encoded PFX certificate
certificate_passwordstringRequired
Certificate password
tax_id_codestringRequiredformat: "^\d{8}-\d$"

Company RUT (format: 12345678-9)

document_type_taxbureaustringRequired
Document type according to SII
document_numberstringRequired
Document folio number

Response

Response with document XML or error status
statusinteger

Status code: 0 = XML obtenido ok, 1 = parámetros con error, 2 = No fue posible abrir el certificado con la clave entregada, 3 = No fue posible iniciar sesión en el SII, 5 = Documento no encontrado

messagestring
Status message
document_xmlstring

Document XML content (empty string if status is not 0)

Errors