Facturas
Introducción
Crear, consultar, descargar y gestionar facturas electrónicas con Factus API v2.
Accede al modulo a traves de factus.bills.
Documentación oficial: Facturas.
Métodos disponibles
| Método | Método HTTP + Endpoint | Descripción |
|---|---|---|
create(input, options?) | POST /v2/bills/validate | Crear y validar una factura |
list(params?, options?) | GET /v2/bills | Listar facturas con filtros y paginación |
listAll(filter?, options?) | GET /v2/bills | Recorrer todas las páginas automáticamente |
get(number, options?) | GET /v2/bills/{number} | Obtener el detalle de una factura |
downloadXml(number, options?) | GET /v2/bills/{number}/download-xml | Descargar el XML firmado |
downloadAttachedDocumentXml(number, options?) | GET /v2/bills/{number}/download-attached-document-xml | Descargar el AttachedDocument XML |
downloadPdf(number, options?) | GET /v2/bills/{number}/download-pdf | Descargar la representación PDF |
getEmailContent(number, options?) | GET /v2/bills/{number}/email-content | Obtener asunto y adjunto para envío manual |
sendEmail(number, input, options?) | POST /v2/bills/{number}/send-email | Enviar la factura por correo |
emitRadianEvent(number, eventType, input, options?) | POST /v2/bills/{number}/radian/events/{event_type} | Emitir un evento RADIAN |
getEvents(number, options?) | GET /v2/bills/{number}/radian/events | Consultar eventos RADIAN emitidos |
delete(referenceCode, options?) | DELETE /v2/bills/destroy/reference/{reference_code} | Eliminar una factura no validada |
Consulta Paginación automática para el uso de listAll().