Skip to main content
GET
https://api.onepay.la/v1
/
cards
Listar tarjetas
curl --request GET \
  --url https://api.onepay.la/v1/cards \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "id": "9e01eeae-2868-4564-9d04-84d1d1d027d2",
      "brand": "Mastercard",
      "last_four": "8099",
      "card_name": "Juan Pérez",
      "expiration_date": "2026-09-30T00:00:00.000000Z",
      "customer_id": "9df8018b-6a28-4696-b7b2-63615f34a2f5",
      "created_at": "2025-01-19T18:29:25.000000Z",
      "type": "credit_card",
      "country": "CO",
      "cvc_check": true,
      "verified": true,
      "title": "Mastercard • 8099",
      "method_type": "credit_card",
      "authorization": true
    },
    {
      "id": "9e01eeae-4569-4564-9d04-84d1d1d027a3",
      "brand": "Visa",
      "last_four": "4242",
      "card_name": "María García",
      "expiration_date": "2027-12-31T00:00:00.000000Z",
      "customer_id": "9df8018b-6a28-4696-b7b2-63615f34a2f5",
      "created_at": "2025-01-20T10:15:30.000000Z",
      "type": "credit_card",
      "country": "CO",
      "cvc_check": true,
      "verified": true,
      "title": "Visa • 4242",
      "method_type": "credit_card",
      "authorization": false
    }
  ],
  "meta": {
    "current_page": 1,
    "last_page": 3,
    "per_page": 15,
    "total": 42
  }
}

Query Parameters

customer_id
string
Filtra tarjetas por ID de cliente.
page
integer
default:"1"
Número de página para paginación.
limit
integer
default:"15"
Cantidad de resultados por página (máximo 100).
{
  "data": [
    {
      "id": "9e01eeae-2868-4564-9d04-84d1d1d027d2",
      "brand": "Mastercard",
      "last_four": "8099",
      "card_name": "Juan Pérez",
      "expiration_date": "2026-09-30T00:00:00.000000Z",
      "customer_id": "9df8018b-6a28-4696-b7b2-63615f34a2f5",
      "created_at": "2025-01-19T18:29:25.000000Z",
      "type": "credit_card",
      "country": "CO",
      "cvc_check": true,
      "verified": true,
      "title": "Mastercard • 8099",
      "method_type": "credit_card",
      "authorization": true
    },
    {
      "id": "9e01eeae-4569-4564-9d04-84d1d1d027a3",
      "brand": "Visa",
      "last_four": "4242",
      "card_name": "María García",
      "expiration_date": "2027-12-31T00:00:00.000000Z",
      "customer_id": "9df8018b-6a28-4696-b7b2-63615f34a2f5",
      "created_at": "2025-01-20T10:15:30.000000Z",
      "type": "credit_card",
      "country": "CO",
      "cvc_check": true,
      "verified": true,
      "title": "Visa • 4242",
      "method_type": "credit_card",
      "authorization": false
    }
  ],
  "meta": {
    "current_page": 1,
    "last_page": 3,
    "per_page": 15,
    "total": 42
  }
}