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_base64
Base64 encoded PFX certificate
certificate_password
Certificate password
tax_id_code
Company RUT (format: 12345678-9)
document_type_taxbureau
Document type according to SII
document_number
Document folio number
Response
Response with document XML or error status
status
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
message
Status message
document_xml
Document XML content (empty string if status is not 0)