Facturas
Forzar reenvío de factura a integración contable
Fuerza el reenvío de una factura a los sistemas contables integrados (Siigo, Loggro) cuando el envío automático falló.
Autenticación requerida: Este endpoint requiere autenticación Bearer Token. Usar el campo tokenCurrent obtenido del servicio de login (/login) en el header: Authorization: Bearer {tokenCurrent}
Requisitos:
- El usuario debe tener el permiso de forzar envío (IF_FORCE_SEND)
- La factura debe existir en el sistema
Cuándo usarlo:
- Cuando una factura tiene statusSiigo: 400 o statusLoggro: 400
- Cuando la integración automática falló por errores de conectividad
- Para resincronizar facturas con el sistema contable
Ejemplos de Uso
PATCH /invoices/forceSendToIntegration/507f1f77bcf86cd799439011
Authorization: Bearer tu_token_aqui
patch/invoices/forceSendToIntegration/{id}
Request
- Base URLhttps://api.pirpos.com
- URLhttps://api.pirpos.com/invoices/forceSendToIntegration/{id}
- AuthHTTP bearer
Path parameters
idstring required
ID de la factura a reenviar a la integración
Response
Factura reenviada exitosamente a la integración
Example response
{
"_id": "507f1f77bcf86cd799439011",
"businessId": "507f1f77bcf86cd799439012",
"business": {
"name": "Restaurante El Buen Sabor",
"nit": "123456789-1",
"address": "Calle 123 #45-67"
},
"number": "FAC-001",
"invoicePrefix": "FAC",
"seq": 1,
"products": [
{
"name": "Hamburguesa Clásica",
"quantity": 2,
"price": 15000
}
],
"total": 35000,
"totalPaid": 35000,
"status": "Pagada",
"type": "Normal",
"table": {
"name": "Mesa 5"
},
"client": {
"name": "Juan Pérez",
"phone": "+57 300 123 4567"
},
"cashier": {
"name": "María González"
},
"paid": {
"paymentMethodValue": {
"paymentMethod": "Efectivo"
}
},
"eInvoice": {
"DIAN": {
"dianState": "00"
}
},
"externalIntegration": {
"siigo": {
"statusCode": 200
},
"loggro": {
"statusCode": 200
}
},
"createdOn": "2025-08-05T10:30:00.000Z",
"modifiedOn": "2025-08-05T10:30:00.000Z"
}Changes
No recorded changes to this operation across all 1 revision of this API.