curl --request GET \
--url https://api.onepay.la/v1/cards \
--header 'Authorization: Bearer <token>'{
"data": [
{
"id": "9e01eeae-2868-4564-9d04-84d1d1d027d2",
"brand": "Mastercard",
"label": "Mastercard • 8099",
"last_four": "8099",
"expiration_date": "9/2026",
"customer_id": "9df8018b-6a28-4696-b7b2-63615f34a2f5",
"created_at": "2025-01-19T18:29:25.000000Z",
"country": "CO"
},
{
"id": "9e01eeae-4569-4564-9d04-84d1d1d027a3",
"brand": "Visa",
"label": "Visa • 4242",
"last_four": "4242",
"expiration_date": "12/2027",
"customer_id": "9df8018b-6a28-4696-b7b2-63615f34a2f5",
"created_at": "2025-01-20T10:15:30.000000Z",
"country": "CO"
}
],
"current_page": 1,
"from": 1,
"last_page": 3,
"per_page": 15,
"to": 15,
"total": 42
}
Endpoint para obtener las tarjetas tokenizadas registradas en tu empresa.
curl --request GET \
--url https://api.onepay.la/v1/cards \
--header 'Authorization: Bearer <token>'{
"data": [
{
"id": "9e01eeae-2868-4564-9d04-84d1d1d027d2",
"brand": "Mastercard",
"label": "Mastercard • 8099",
"last_four": "8099",
"expiration_date": "9/2026",
"customer_id": "9df8018b-6a28-4696-b7b2-63615f34a2f5",
"created_at": "2025-01-19T18:29:25.000000Z",
"country": "CO"
},
{
"id": "9e01eeae-4569-4564-9d04-84d1d1d027a3",
"brand": "Visa",
"label": "Visa • 4242",
"last_four": "4242",
"expiration_date": "12/2027",
"customer_id": "9df8018b-6a28-4696-b7b2-63615f34a2f5",
"created_at": "2025-01-20T10:15:30.000000Z",
"country": "CO"
}
],
"current_page": 1,
"from": 1,
"last_page": 3,
"per_page": 15,
"to": 15,
"total": 42
}
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.
created_at para ascendente y -created_at para descendente (más reciente primero).curl https://api.onepay.la/v1/cards \
-X GET \
-H "Authorization: Bearer sk_test_xxx"
curl "https://api.onepay.la/v1/cards?filter[customer_id]=9dd4158b-0e45-42bc-b56f-a4c1f856814d" \
-X GET \
-H "Authorization: Bearer sk_test_xxx"
const response = await fetch('https://api.onepay.la/v1/cards?filter[customer_id]=9dd4158b-0e45-42bc-b56f-a4c1f856814d', {
method: 'GET',
headers: {
'Authorization': 'Bearer sk_test_xxx',
},
});
const data = await response.json();
import requests
response = requests.get(
'https://api.onepay.la/v1/cards',
params={'filter[customer_id]': '9dd4158b-0e45-42bc-b56f-a4c1f856814d'},
headers={'Authorization': 'Bearer sk_test_xxx'},
)
data = response.json()
Show Propiedades de cada tarjeta
Mastercard, Visa, etc.).Mastercard • 8099.MM/YYYY, por ejemplo 9/2026.CO.{
"data": [
{
"id": "9e01eeae-2868-4564-9d04-84d1d1d027d2",
"brand": "Mastercard",
"label": "Mastercard • 8099",
"last_four": "8099",
"expiration_date": "9/2026",
"customer_id": "9df8018b-6a28-4696-b7b2-63615f34a2f5",
"created_at": "2025-01-19T18:29:25.000000Z",
"country": "CO"
},
{
"id": "9e01eeae-4569-4564-9d04-84d1d1d027a3",
"brand": "Visa",
"label": "Visa • 4242",
"last_four": "4242",
"expiration_date": "12/2027",
"customer_id": "9df8018b-6a28-4696-b7b2-63615f34a2f5",
"created_at": "2025-01-20T10:15:30.000000Z",
"country": "CO"
}
],
"current_page": 1,
"from": 1,
"last_page": 3,
"per_page": 15,
"to": 15,
"total": 42
}
Was this page helpful?