DescargaPdf Method

Allows the user to download the E-bill document in PDF format.

REQUEST: Parámetros a Enviar
Type Identifier Description
String tokenEmpresa/tokenPassword Supplied by The Factory HKA
Object datosDocumento See details below
DatosDocumento
Type Required Format Identifier Description
String YES N|4 codigoSucursalEmisor 0000: Main location 0001 onwards: Other locations; numbers and letters allowed.
String YES N|10 numeroDocumentoFiscal Number of the fiscal document in the corresponding series, from 0000000001 to 9999999999, cant restart the sequence. Fill with zeros the positions to the left.
String YES N|3 puntoFacturacionFiscal Billing Point of the fiscal document inside the billing location. Allows independent billing numbering sequences. The value "zero" is not allowed. Fill with zeros the positions to the left.
String YES N|10 serialDispositivo Serial of the device that emits E-bills.
String YES N|2 tipoDocumento 01: Internal bill 02: Import bill 03: Export bill 04: Credit note referring to a E-bill 05: Debit note referring to a E-bill 06: Generic credit note 07: Generic debit note 08: Free Zone bill 09: Reimbursement.
String YES N|2 tipoEmision 01: Prior Authorization, normal operation. 02: Prior Authorization, contingency operation. 03: Post emission Authorization, normal operation. 04: Post emission Authorization, contingency operation.
DescargarPDFResponse: Parameters to be received
Type Identifier Description
String codigo Code corresponding to the result of the operation
String resultado Transaction result
String mensaje Additional message of the result
String documento Document downloaded in Base64 format.