Перейти к содержимому

Получить банковскую карту

GET
/api/internal/v1/bank_cards/{id}
curl --request GET \
--url 'https://core.example.com/api/internal/v1/bank_cards/example?merchant_private_key=example' \
--header 'app-token: <app-token>'
id
required
string

Внутренний ID карты или {outer_id}_outer_id

merchant_private_key
required
string
bank_account_id
integer

Карта; форма ответа зависит от наличия bank_account_id

Media typeapplication/json
One of:
object
id
integer
outer_id
string
profile_id
integer
bank_account_id
integer
currency
string
card_type
string
status
string
mask
string
holder_first_name
string
holder_last_name
string
available_balance_with_currency
string
holder
string
key
additional properties
any
Examplegenerated
{
"id": 1,
"outer_id": "example",
"profile_id": 1,
"bank_account_id": 1,
"currency": "example",
"card_type": "example",
"status": "example",
"mask": "example",
"holder_first_name": "example",
"holder_last_name": "example",
"available_balance_with_currency": "example",
"holder": "example"
}

Ошибка авторизации, валидации или бизнес-правила

Media typeapplication/json
object
success
required
boolean
status
required
integer
errors
required
One of:
Array<object>
object
code
string
kind
string
nullable
expiration
string
nullable
session
string
nullable
key
additional properties
any
key
additional properties
any
Example
{
"success": false,
"status": 403
}

Объект не найден

Media typeapplication/json
object
success
required
boolean
status
required
integer
errors
required
One of:
Array<object>
object
code
string
kind
string
nullable
expiration
string
nullable
session
string
nullable
key
additional properties
any
key
additional properties
any
Example
{
"success": false,
"status": 403
}