Get Cards

GET /bank-card

Get client's bank cards using JWT.

Responses

  • 200 application/json

    Successful retrieval of bank cards.

    Hide response attributes Show response attributes object
  • 401 application/json

    User is not unauthorized or permissions are missing.

    Hide response attributes Show response attributes object
  • 429 application/json

    Rate limit exceeded - 100 queries per 15 minutes.

    Hide response attributes Show response attributes object
GET /bank-card
curl \
 -X GET http://63.141.232.244:25540/v0/bank-card \
 -H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "success": true,
  "bank_card": [
    {
      "cvv": "123",
      "client_id": 1,
      "expires_at": "2022-01-01",
      "card_number": "1234567890123456",
      "bank_card_id": 1,
      "cardholder_name": "SAKHABUTDINOV KAMIL"
    }
  ]
}
Response examples (401)
{
  "success": false,
  "error": "Unauthorized"
}
Response examples (429)
{
  "success": false,
  "error": "Too many requests, please try again later"
}