Facturas
Cambiar estado de un domicilio
Permite al repartidor actualizar el estado de su domicilio asignado.
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}
Estados disponibles:
- EnCamino - El repartidor salió con el pedido
- Entregado - El pedido fue entregado al cliente
- NoEntregado - No se pudo entregar el pedido
Ejemplos de Uso
PUT /invoices/507f1f77bcf86cd799439011/deliveryGuy/changeStatus/EnCamino
Authorization: Bearer tu_token_aqui
put/invoices/{id}/deliveryGuy/changeStatus/{status}
Request
- Base URLhttps://api.pirpos.com
- URLhttps://api.pirpos.com/invoices/{id}/deliveryGuy/changeStatus/{status}
- AuthHTTP bearer
Path parameters
idstring required
ID de la factura de domicilio
status'EnCamino' | 'Entregado' | 'NoEntregado' required
Nuevo estado del domicilio
Response
Estado del domicilio actualizado exitosamente
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.