curl https://api.onepay.la/v1/payments/9e5ccd4a-d2f0-49dd-87fc-a0da752bd166 \
-H "Authorization: Bearer sk_test_xxx"
{
"id": "9bf2bc44-28d4-4693-9896-7fc1fe1f5b65",
"source": "Factura Movistar Noviembre",
"currency": "COP",
"amount": 63040,
"amount_label": "$ 63.040",
"title": "Factura Movistar Noviembre",
"description": "Factura Movistar Noviembre",
"phone": "+573138977841",
"expiration_at": "2024-05-03T16:47:09.000000Z",
"due_date": null,
"document_link": null,
"external_id": null,
"allows": {
"cards": true,
"accounts": true,
"card_extra": false,
"realtime": false,
"pse": true,
"transfiya": true
},
"status": "approved",
"is_test": false,
"created_at": "2024-05-02T16:47:09.000000Z",
"paid_at": "2024-05-02T18:00:00.000000Z",
"payment_link": null,
"redirect_url": null,
"provider_id": null,
"metadata": null,
"customer": {
"id": "4e5f6a7b-8c9d-0e1f-2345-6789abcdef01",
"first_name": "Juan",
"last_name": "Demo",
"email": "hola@onepay.la",
"phone": "+573167591039",
"document_type": "CC",
"document_number": "1234567890",
"created_at": "2024-04-01T10:00:00.000000Z",
"is_test": false
},
"method": null,
"splits": [],
"company": null,
"commission": null
}
Este endpoint te permite obtener el detalle de un cobro.
curl https://api.onepay.la/v1/payments/9e5ccd4a-d2f0-49dd-87fc-a0da752bd166 \
-H "Authorization: Bearer sk_test_xxx"
{
"id": "9bf2bc44-28d4-4693-9896-7fc1fe1f5b65",
"source": "Factura Movistar Noviembre",
"currency": "COP",
"amount": 63040,
"amount_label": "$ 63.040",
"title": "Factura Movistar Noviembre",
"description": "Factura Movistar Noviembre",
"phone": "+573138977841",
"expiration_at": "2024-05-03T16:47:09.000000Z",
"due_date": null,
"document_link": null,
"external_id": null,
"allows": {
"cards": true,
"accounts": true,
"card_extra": false,
"realtime": false,
"pse": true,
"transfiya": true
},
"status": "approved",
"is_test": false,
"created_at": "2024-05-02T16:47:09.000000Z",
"paid_at": "2024-05-02T18:00:00.000000Z",
"payment_link": null,
"redirect_url": null,
"provider_id": null,
"metadata": null,
"customer": {
"id": "4e5f6a7b-8c9d-0e1f-2345-6789abcdef01",
"first_name": "Juan",
"last_name": "Demo",
"email": "hola@onepay.la",
"phone": "+573167591039",
"document_type": "CC",
"document_number": "1234567890",
"created_at": "2024-04-01T10:00:00.000000Z",
"is_test": false
},
"method": null,
"splits": [],
"company": null,
"commission": null
}
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.
curl https://api.onepay.la/v1/payments/9e5ccd4a-d2f0-49dd-87fc-a0da752bd166 \
-H "Authorization: Bearer sk_test_xxx"
title)COP)"$ 1.400.000")pending, approved, declined, cancelled, expired, in_progress, refunded, partially_paid, partial_expirednull si aún no ha sido pagado.null si aún no ha pagado.null si aún no ha pagado.null si no aplica.partial_payment_config configurado. Ver crear cobro para detalle de campos.{
"id": "9bf2bc44-28d4-4693-9896-7fc1fe1f5b65",
"source": "Factura Movistar Noviembre",
"currency": "COP",
"amount": 63040,
"amount_label": "$ 63.040",
"title": "Factura Movistar Noviembre",
"description": "Factura Movistar Noviembre",
"phone": "+573138977841",
"expiration_at": "2024-05-03T16:47:09.000000Z",
"due_date": null,
"document_link": null,
"external_id": null,
"allows": {
"cards": true,
"accounts": true,
"card_extra": false,
"realtime": false,
"pse": true,
"transfiya": true
},
"status": "approved",
"is_test": false,
"created_at": "2024-05-02T16:47:09.000000Z",
"paid_at": "2024-05-02T18:00:00.000000Z",
"payment_link": null,
"redirect_url": null,
"provider_id": null,
"metadata": null,
"customer": {
"id": "4e5f6a7b-8c9d-0e1f-2345-6789abcdef01",
"first_name": "Juan",
"last_name": "Demo",
"email": "hola@onepay.la",
"phone": "+573167591039",
"document_type": "CC",
"document_number": "1234567890",
"created_at": "2024-04-01T10:00:00.000000Z",
"is_test": false
},
"method": null,
"splits": [],
"company": null,
"commission": null
}
Was this page helpful?