Body Required
-
card_number string
Bank card number
-
cardholder_name string
Owner of the card
-
expires_at string(date)
Card's expiration date
-
cvv string
CVC/CVV
POST
/bank-card
curl \
-X POST http://63.141.232.244:25540/v0/bank-card \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"card_number":"4242424242424242","cardholder_name":"SAKHABUTDINOV KAMIL","expires_at":"2025-01-01","cvv":"123"}'
Request examples
{
"card_number": "4242424242424242",
"cardholder_name": "SAKHABUTDINOV KAMIL",
"expires_at": "2025-01-01",
"cvv": "123"
}
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 (400)
{
"success": false,
"error": [
{
"code": "invalid_type",
"expected": "string",
"received": "undefined",
"path": [
"client_id"
],
"message": "Required"
}
]
}
Response examples (401)
{
"success": false,
"error": "Unauthorized"
}
Response examples (429)
{
"success": false,
"error": "Too many requests, please try again later"
}