Metodos de pago
- Clientes
- Cuentas
- Tarjetas
Recaudo
- Cobros [Solicitud]
- Cargos [Debito]
- Planes
- Suscripciones
- Links de captura
- Llamadas de cobro
Dispersiones
- Dispersiones
- Balance
Webhooks
- Webhooks
- Asobancaria
- Flows
Fintech as a service
- Billeteras
- Issuing
- Utilities
Cargos [Debito]
Detalle cargo
Cargos [Debito]
Detalle cargo
Endpoint para obtener los detalles de un cargo en el sistema de OnePay.
GET
/
charges
/
{charge_id}
curl --request GET \
--url https://api.onepay.la/v1/charges/{charge_id} \
--header 'Authorization: Bearer <token>'
{
"id": "9e028bd9-755f-4069-8742-7727d0dc4047",
"title": "recusandae placeat et",
"amount": 1000,
"amount_label": "$1.000",
"source": "charge",
"status": "pending",
"currency": "COP",
"payment_method_type": "CreditCard",
"payment_method_id": "9e028bd9-74b0-4eda-a121-ab3d59909ce7",
"created_at": "2025-01-20T01:48:54.000000Z",
"paid_at": null,
"remarks": null,
"is_test": true,
"method": {
"id": "9e028bd9-74b0-4eda-a121-ab3d59909ce7",
"brand": "Visa",
"label": "Visa ·3158",
"last_four": "3158",
"expiration_date": "1/2027",
"customer_id": "9e028bd9-7387-4f2b-83f0-c820931b53e5",
"created_at": "2025-01-20T01:48:54.000000Z",
"country": "CO"
},
"customer": {
"id": "9e028bd9-7387-4f2b-83f0-c820931b53e5",
"first_name": "Mathew",
"last_name": "Dicki",
"email": "",
"phone": "+14586224518",
"document_type": "CC",
"document_number": "96600",
"created_at": "2025-01-20T01:48:54.000000Z",
"is_test": false
}
}
ID único del cargo que deseas consultar
{
"id": "9e028bd9-755f-4069-8742-7727d0dc4047",
"title": "recusandae placeat et",
"amount": 1000,
"amount_label": "$1.000",
"source": "charge",
"status": "pending",
"currency": "COP",
"payment_method_type": "CreditCard",
"payment_method_id": "9e028bd9-74b0-4eda-a121-ab3d59909ce7",
"created_at": "2025-01-20T01:48:54.000000Z",
"paid_at": null,
"remarks": null,
"is_test": true,
"method": {
"id": "9e028bd9-74b0-4eda-a121-ab3d59909ce7",
"brand": "Visa",
"label": "Visa ·3158",
"last_four": "3158",
"expiration_date": "1/2027",
"customer_id": "9e028bd9-7387-4f2b-83f0-c820931b53e5",
"created_at": "2025-01-20T01:48:54.000000Z",
"country": "CO"
},
"customer": {
"id": "9e028bd9-7387-4f2b-83f0-c820931b53e5",
"first_name": "Mathew",
"last_name": "Dicki",
"email": "",
"phone": "+14586224518",
"document_type": "CC",
"document_number": "96600",
"created_at": "2025-01-20T01:48:54.000000Z",
"is_test": false
}
}
Was this page helpful?
curl --request GET \
--url https://api.onepay.la/v1/charges/{charge_id} \
--header 'Authorization: Bearer <token>'
{
"id": "9e028bd9-755f-4069-8742-7727d0dc4047",
"title": "recusandae placeat et",
"amount": 1000,
"amount_label": "$1.000",
"source": "charge",
"status": "pending",
"currency": "COP",
"payment_method_type": "CreditCard",
"payment_method_id": "9e028bd9-74b0-4eda-a121-ab3d59909ce7",
"created_at": "2025-01-20T01:48:54.000000Z",
"paid_at": null,
"remarks": null,
"is_test": true,
"method": {
"id": "9e028bd9-74b0-4eda-a121-ab3d59909ce7",
"brand": "Visa",
"label": "Visa ·3158",
"last_four": "3158",
"expiration_date": "1/2027",
"customer_id": "9e028bd9-7387-4f2b-83f0-c820931b53e5",
"created_at": "2025-01-20T01:48:54.000000Z",
"country": "CO"
},
"customer": {
"id": "9e028bd9-7387-4f2b-83f0-c820931b53e5",
"first_name": "Mathew",
"last_name": "Dicki",
"email": "",
"phone": "+14586224518",
"document_type": "CC",
"document_number": "96600",
"created_at": "2025-01-20T01:48:54.000000Z",
"is_test": false
}
}