curl --request GET \
--url https://api.onepay.la/v1/payment-intents \
--header 'Authorization: Bearer <token>'{
"current_page": 1,
"from": 1,
"last_page": 3,
"per_page": 20,
"to": 20,
"total": 50,
"data": [
{
"id": "a1b2c3d4-1111-2222-3333-444455556666",
"description": "Cargo suscripción Premium",
"amount": 63040,
"amount_label": "$63.040",
"currency": "COP",
"status": "processing",
"payment_method_type": "CreditCard",
"payment_method_id": "3f8b7a21-1d4a-4d2e-8f1a-17e2f1e6b9ab",
"source": {
"type": "Link",
"id": "9b7e45b5-05e2-4b4e-bb1c-3d8a6a3c15e2"
},
"created_at": "2024-11-02T16:47:09.000000Z",
"paid_at": null,
"remarks": null,
"is_test": true,
"network_id": null,
"external_id": null
},
{
"id": "7777c3d4-8888-9999-aaaa-bbbbccccdddd",
"description": "Pago factura 001-2024",
"amount": 250000,
"amount_label": "$250.000",
"currency": "COP",
"status": "paid",
"payment_method_type": "Account",
"payment_method_id": "8d3fe7c0-6f0c-4de0-99d2-4c86f4f0a9f0",
"source": {
"type": "Payment",
"id": "12e34567-89ab-4cde-f012-3456789abcde"
},
"created_at": "2024-10-20T12:00:00.000000Z",
"paid_at": "2024-10-20T12:10:10.000000Z",
"remarks": null,
"is_test": true,
"network_id": "prov-123",
"external_id": "EXT-12345"
}
]
}
Obtiene una lista paginada de payment intents (intentos de pago) de tu compañía
curl --request GET \
--url https://api.onepay.la/v1/payment-intents \
--header 'Authorization: Bearer <token>'{
"current_page": 1,
"from": 1,
"last_page": 3,
"per_page": 20,
"to": 20,
"total": 50,
"data": [
{
"id": "a1b2c3d4-1111-2222-3333-444455556666",
"description": "Cargo suscripción Premium",
"amount": 63040,
"amount_label": "$63.040",
"currency": "COP",
"status": "processing",
"payment_method_type": "CreditCard",
"payment_method_id": "3f8b7a21-1d4a-4d2e-8f1a-17e2f1e6b9ab",
"source": {
"type": "Link",
"id": "9b7e45b5-05e2-4b4e-bb1c-3d8a6a3c15e2"
},
"created_at": "2024-11-02T16:47:09.000000Z",
"paid_at": null,
"remarks": null,
"is_test": true,
"network_id": null,
"external_id": null
},
{
"id": "7777c3d4-8888-9999-aaaa-bbbbccccdddd",
"description": "Pago factura 001-2024",
"amount": 250000,
"amount_label": "$250.000",
"currency": "COP",
"status": "paid",
"payment_method_type": "Account",
"payment_method_id": "8d3fe7c0-6f0c-4de0-99d2-4c86f4f0a9f0",
"source": {
"type": "Payment",
"id": "12e34567-89ab-4cde-f012-3456789abcde"
},
"created_at": "2024-10-20T12:00:00.000000Z",
"paid_at": "2024-10-20T12:10:10.000000Z",
"remarks": null,
"is_test": true,
"network_id": "prov-123",
"external_id": "EXT-12345"
}
]
}
Show Ver objeto
{
"current_page": 1,
"from": 1,
"last_page": 3,
"per_page": 20,
"to": 20,
"total": 50,
"data": [
{
"id": "a1b2c3d4-1111-2222-3333-444455556666",
"description": "Cargo suscripción Premium",
"amount": 63040,
"amount_label": "$63.040",
"currency": "COP",
"status": "processing",
"payment_method_type": "CreditCard",
"payment_method_id": "3f8b7a21-1d4a-4d2e-8f1a-17e2f1e6b9ab",
"source": {
"type": "Link",
"id": "9b7e45b5-05e2-4b4e-bb1c-3d8a6a3c15e2"
},
"created_at": "2024-11-02T16:47:09.000000Z",
"paid_at": null,
"remarks": null,
"is_test": true,
"network_id": null,
"external_id": null
},
{
"id": "7777c3d4-8888-9999-aaaa-bbbbccccdddd",
"description": "Pago factura 001-2024",
"amount": 250000,
"amount_label": "$250.000",
"currency": "COP",
"status": "paid",
"payment_method_type": "Account",
"payment_method_id": "8d3fe7c0-6f0c-4de0-99d2-4c86f4f0a9f0",
"source": {
"type": "Payment",
"id": "12e34567-89ab-4cde-f012-3456789abcde"
},
"created_at": "2024-10-20T12:00:00.000000Z",
"paid_at": "2024-10-20T12:10:10.000000Z",
"remarks": null,
"is_test": true,
"network_id": "prov-123",
"external_id": "EXT-12345"
}
]
}
Was this page helpful?