List of banks by phone number
A method for retrieving the list of SBP banks that have previously received transfers to the specified phone number. The list is built from transfer history (historical data) on the bank's side.
The list is for reference only
This is transfer history, not a list of the recipient's accounts in SBP. If the recipient's bank is absent from the response, this does not mean the payout to it is impossible — check actual feasibility with the payout feasibility check method.
URL
Request
Path parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
phone |
string | Yes | Recipient's phone number: 11 digits, country code 7, without +, spaces, or separators. Example: 79991234567. |
Headers
| Name | Type | Required | Description |
|---|---|---|---|
X-Api-Key |
string | Yes | Shop identifier. |
X-Signature |
string | Yes | Request signature. |
Building the signature
Concatenate X-Api-Key, phone, and secret_key without separators, compute the SHA-256 of the
resulting UTF-8 string, and pass the lowercase hex result in the X-Signature header.
secret_key can be found in the shop's settings.
Example
curl --request GET \
--url 'https://api.pay.stage.kvell.group/v1/orders/payout/sbp/banks/79991234567' \
--header 'X-Api-Key: 00000000-0000-4000-8000-000000000000' \
--header 'X-Signature: 0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef'
Response
Select an HTTP code to see an example, the response parameters, and the recommended actions.
[
{
"bank_id": "100100000014",
"bank_bic": "012345678",
"name": "RSB+ (Russian Standard Bank)"
},
{
"bank_id": "100000000202",
"bank_bic": "012345678",
"name": "Norvik Bank"
},
{
"bank_id": "100000000201",
"bank_bic": null,
"name": "Kremlin Bank"
}
]
If there is no historical data for the phone number, the method returns an empty array:
Response parameters
| Parameter | Type | Description |
|---|---|---|
bank_id |
string | Bank identifier in SBP. |
bank_bic |
string | null | Bank's BIC. Returned as null if the BIC is absent from the directory. |
name |
string | Bank name. |
{
"errors": [
{
"code": 20002,
"message": "Invalid signature"
}
]
}
Response parameters
| Parameter | Type | Description |
|---|---|---|
errors |
array | List of errors. Codes and recommendations are given in the «HTTP response errors» section. |
errors[].code |
integer | Error code. In the example — 20002. |
errors[].message |
string | Description of why the request was rejected. |
What to do next
- Check the phone number in the URL, the order of values in the signature, and the shop's secret key.
- Build the correct
X-Signatureand retry the request.
Response parameters
| Parameter | Type | Description |
|---|---|---|
errors |
array | List of errors. Codes and recommendations are given in the «HTTP response errors» section. |
errors[].code |
integer | Error code. In the example — 20037. |
errors[].message |
string | Description of why access was denied. |
Response parameters
| Parameter | Type | Description |
|---|---|---|
errors |
array | List of errors. Codes and recommendations are given in the «HTTP response errors» section. |
errors[].code |
integer | Error code. In the example — 20006. |
errors[].message |
string | Description of the resource that was not found. |
What this response means
No shop was found for the given X-Api-Key. The response does not mean there are no banks for the phone number.
What to do next
- Check the
X-Api-Keyand the request environment. - Retry the request only after fixing the key or the environment URL.
{
"errors": [
{
"code": 20098,
"message": "phone: Invalid phone number format"
}
]
}
Response parameters
| Parameter | Type | Description |
|---|---|---|
errors |
array | List of validation errors. Codes and recommendations are given in the «HTTP response errors» section. |
errors[].code |
integer | Error code. For a field error — 20098. |
errors[].message |
string | Field and reason for the validation error. |
{
"errors": [
{
"code": 20000,
"message": "Unknown error"
}
]
}
Response parameters
| Parameter | Type | Description |
|---|---|---|
errors |
array | List of errors. Codes and recommendations are given in the «HTTP response errors» section. |
errors[].code |
integer | Technical error code. |
errors[].message |
string | Description of the technical error. |
What to do next
- Safely retry the same GET request with the same
phone,X-Api-Key, andX-Signature. - If the error persists, contact KVELL support and provide the URL, request time, HTTP code,
code, andmessage.