curl --request PUT \
--url https://api.onepay.la/v1/invoices/{invoice_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"reference": "<string>",
"provider_id": "<string>",
"amount": 123,
"name": "<string>",
"description": "<string>",
"phone": "<string>",
"email": "<string>"
}
'{
"id": "2f2b1e5a-1a2b-4c33-8a18-5e9f3b9f4b1a",
"name": "Internet plan - Actualizado",
"description": "Factura de internet actualizada para octubre 2025",
"provider": "biller",
"provider_id": "987654",
"reference": "INV-12345678",
"status": "CREATED",
"remarks": null,
"created_at": "2025-10-20T15:06:00Z",
"updated_at": "2025-10-20T15:06:00Z",
"metadata": {
"key": "value"
},
"payment": {
"id": "new-payment-id",
"title": "Internet plan - Actualizado",
"description": "Internet plan - Actualizado",
"currency": "COP",
"amount": 75000,
"amount_label": "75.000",
"phone": "+573167591039",
"external_id": "987654",
"allows": { "accounts": true, "cards": true, "card_extra": false, "realtime": false },
"status": "pending",
"is_test": false,
"payment_link": "https://pay.onepay.test/p/new-payment-id",
"redirect_url": null,
"created_at": "2025-10-20T15:25:00Z"
}
}
Actualiza una factura existente. Cancela el Payment anterior, crea uno nuevo y lo asocia a la factura.
curl --request PUT \
--url https://api.onepay.la/v1/invoices/{invoice_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"reference": "<string>",
"provider_id": "<string>",
"amount": 123,
"name": "<string>",
"description": "<string>",
"phone": "<string>",
"email": "<string>"
}
'{
"id": "2f2b1e5a-1a2b-4c33-8a18-5e9f3b9f4b1a",
"name": "Internet plan - Actualizado",
"description": "Factura de internet actualizada para octubre 2025",
"provider": "biller",
"provider_id": "987654",
"reference": "INV-12345678",
"status": "CREATED",
"remarks": null,
"created_at": "2025-10-20T15:06:00Z",
"updated_at": "2025-10-20T15:06:00Z",
"metadata": {
"key": "value"
},
"payment": {
"id": "new-payment-id",
"title": "Internet plan - Actualizado",
"description": "Internet plan - Actualizado",
"currency": "COP",
"amount": 75000,
"amount_label": "75.000",
"phone": "+573167591039",
"external_id": "987654",
"allows": { "accounts": true, "cards": true, "card_extra": false, "realtime": false },
"status": "pending",
"is_test": false,
"payment_link": "https://pay.onepay.test/p/new-payment-id",
"redirect_url": null,
"created_at": "2025-10-20T15:25:00Z"
}
}
Documentation Index
Fetch the complete documentation index at: https://docs.onepay.la/llms.txt
Use this file to discover all available pages before exploring further.
partially_paid, actualizarla cancelará ese Payment (y perderá todos los abonos registrados) y creará uno nuevo sin configuración de pagos parciales. Solo actualiza facturas parcialmente pagadas si estás seguro de que quieres reiniciar el proceso de cobro.Si el Payment ya está approved, la actualización solo modifica los metadatos de la factura sin cancelar ni reemplazar el Payment.{
"id": "2f2b1e5a-1a2b-4c33-8a18-5e9f3b9f4b1a",
"name": "Internet plan - Actualizado",
"description": "Factura de internet actualizada para octubre 2025",
"provider": "biller",
"provider_id": "987654",
"reference": "INV-12345678",
"status": "CREATED",
"remarks": null,
"created_at": "2025-10-20T15:06:00Z",
"updated_at": "2025-10-20T15:06:00Z",
"metadata": {
"key": "value"
},
"payment": {
"id": "new-payment-id",
"title": "Internet plan - Actualizado",
"description": "Internet plan - Actualizado",
"currency": "COP",
"amount": 75000,
"amount_label": "75.000",
"phone": "+573167591039",
"external_id": "987654",
"allows": { "accounts": true, "cards": true, "card_extra": false, "realtime": false },
"status": "pending",
"is_test": false,
"payment_link": "https://pay.onepay.test/p/new-payment-id",
"redirect_url": null,
"created_at": "2025-10-20T15:25:00Z"
}
}
Was this page helpful?