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
    • success boolean

      Whether the retrieval is successful

    • bank_card array[object]
      Hide bank_card attributes Show bank_card attributes object
      • bank_card_id integer Required

        Id of the card in database

      • card_number string Required

        Bank card number

      • cardholder_name string Required

        Owner of the card

      • client_id integer Required

        Id of the client in database

      • cvv string Required

        CVC/CVV

      • expires_at string(date) Required

        Card's expiration date

  • 401 application/json

    User is not unauthorized or permissions are missing.

    Hide response attributes Show response attributes object
    • success boolean

      Whether query is successful

    • error string

      Error message

  • 429 application/json

    Rate limit exceeded - 100 queries per 15 minutes.

    Hide response attributes Show response attributes object
    • success boolean

      Whether query is successful

    • error string

      Error message

GET /bank-card
curl \
 --request GET 'http://63.141.232.244:25540/v0/bank-card' \
 --header "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"
}