Desarrolladores
Cómo usar la API
Actualiza una factura existente. Cancela el Payment anterior, crea uno nuevo y lo asocia a la factura.
cURL
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>", "phone": "<string>", "email": "<string>" } '
{ "id": "2f2b1e5a-1a2b-4c33-8a18-5e9f3b9f4b1a", "name": "Internet plan - Actualizado", "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?