curl https://api.onepay.la/v1/accounts?page=1&limit=20 \
-H "Authorization: Bearer sk_test_xxx"
{
"data": [
{
"id": "84cc072e-90e8-33cf-9305-098095fed32f",
"title": "Cuenta Ahorros",
"subtype": "SAVINGS",
"status": "ACTIVE",
"authorization": true,
"customer_id": "9e01d019-b438-40d2-89e1-52430c69dfb7",
"re_enroll": false,
"external_id": null,
"bank_id": "9e01d019-b731-48bc-b111-2baa3ea56ef6",
"bank": {
"id": "9e01d019-b731-48bc-b111-2baa3ea56ef6",
"name": "Bancolombia",
"logo": "https://example.com/logo.png"
}
},
{
"id": "9957817d-239b-4032-8dca-bc508a76579c",
"title": "Nequi",
"subtype": "ELECTRONIC_DEPOSIT",
"status": "ACTIVE",
"authorization": true,
"customer_id": "9e01d019-b438-40d2-89e1-52430c69dfb7",
"re_enroll": false,
"external_id": null,
"bank_id": "9957817d-239b-4032-8dca-bc508a76579c",
"bank": {
"id": "9957817d-239b-4032-8dca-bc508a76579c",
"name": "Nequi",
"logo": "https://example.com/nequi.png"
}
}
],
"current_page": 1,
"first_page_url": "https://api.onepay.la/v1/accounts?page=1",
"from": 1,
"next_page_url": null,
"path": "https://api.onepay.la/v1/accounts",
"per_page": 20,
"prev_page_url": null,
"to": 2
}
Endpoint para obtener el listado de cuentas bancarias.
curl https://api.onepay.la/v1/accounts?page=1&limit=20 \
-H "Authorization: Bearer sk_test_xxx"
{
"data": [
{
"id": "84cc072e-90e8-33cf-9305-098095fed32f",
"title": "Cuenta Ahorros",
"subtype": "SAVINGS",
"status": "ACTIVE",
"authorization": true,
"customer_id": "9e01d019-b438-40d2-89e1-52430c69dfb7",
"re_enroll": false,
"external_id": null,
"bank_id": "9e01d019-b731-48bc-b111-2baa3ea56ef6",
"bank": {
"id": "9e01d019-b731-48bc-b111-2baa3ea56ef6",
"name": "Bancolombia",
"logo": "https://example.com/logo.png"
}
},
{
"id": "9957817d-239b-4032-8dca-bc508a76579c",
"title": "Nequi",
"subtype": "ELECTRONIC_DEPOSIT",
"status": "ACTIVE",
"authorization": true,
"customer_id": "9e01d019-b438-40d2-89e1-52430c69dfb7",
"re_enroll": false,
"external_id": null,
"bank_id": "9957817d-239b-4032-8dca-bc508a76579c",
"bank": {
"id": "9957817d-239b-4032-8dca-bc508a76579c",
"name": "Nequi",
"logo": "https://example.com/nequi.png"
}
}
],
"current_page": 1,
"first_page_url": "https://api.onepay.la/v1/accounts?page=1",
"from": 1,
"next_page_url": null,
"path": "https://api.onepay.la/v1/accounts",
"per_page": 20,
"prev_page_url": null,
"to": 2
}
curl https://api.onepay.la/v1/accounts?page=1&limit=20 \
-H "Authorization: Bearer sk_test_xxx"
{
"data": [
{
"id": "84cc072e-90e8-33cf-9305-098095fed32f",
"title": "Cuenta Ahorros",
"subtype": "SAVINGS",
"status": "ACTIVE",
"authorization": true,
"customer_id": "9e01d019-b438-40d2-89e1-52430c69dfb7",
"re_enroll": false,
"external_id": null,
"bank_id": "9e01d019-b731-48bc-b111-2baa3ea56ef6",
"bank": {
"id": "9e01d019-b731-48bc-b111-2baa3ea56ef6",
"name": "Bancolombia",
"logo": "https://example.com/logo.png"
}
},
{
"id": "9957817d-239b-4032-8dca-bc508a76579c",
"title": "Nequi",
"subtype": "ELECTRONIC_DEPOSIT",
"status": "ACTIVE",
"authorization": true,
"customer_id": "9e01d019-b438-40d2-89e1-52430c69dfb7",
"re_enroll": false,
"external_id": null,
"bank_id": "9957817d-239b-4032-8dca-bc508a76579c",
"bank": {
"id": "9957817d-239b-4032-8dca-bc508a76579c",
"name": "Nequi",
"logo": "https://example.com/nequi.png"
}
}
],
"current_page": 1,
"first_page_url": "https://api.onepay.la/v1/accounts?page=1",
"from": 1,
"next_page_url": null,
"path": "https://api.onepay.la/v1/accounts",
"per_page": 20,
"prev_page_url": null,
"to": 2
}
Was this page helpful?