Provided that a store has corresponding permissions, it can get the list of all bindings that relate to a certain bank card. This can be done by a card number or by a known binding identifier. The method used for getting the list of bindings of a bank card is getBindingsByCardOrId.do
. The response returns all the bindings available to the merchant in accordance with their settings.
In this document, the following data type conventions are used when describing request and response parameters:
Name | Type | Mandatory | Description |
---|---|---|---|
|
AN..30 | Yes |
Login of the service account of the merchant. |
|
AN..30 | Yes |
Merchant's service account password. |
|
N12…19 | Required if bindingId is not indicated. |
Payment card number. |
|
AN..255 | Required if pan is not specified. |
The identifier of the previously created binding. Can only be used if the merchant has permission to work with bindings. If this parameter is passed in the given request, it means that: |
|
boolean | No |
This parameter defines the necessity to display bindings with expired card validity periods. The available values are: true, false. By default the parameter has the false value. |
Name | Type | Mandatory | Description |
---|---|---|---|
|
ANS..3 | Yes |
Error code. Can be missing if the result has not caused an error. |
|
|
Yes |
|
bindings element (contains blocks that consist of the bindingId, maskedPan, expiryDate and clientId parameters): |
|||
|
AN..255 | No |
The identifier of the previously created binding. Can only be used if the merchant has permission to work with bindings. If this parameter is passed in the given request, it means that: |
|
N..19 | No |
Masked number of the card that has been used for the payment. |
|
N6 | No |
Expiry date of the card in the format YYYYMM. This parameter is to be specified only after the order has been paid. |
|
ANS..255 | No |
Identifier of the Customer in the Store system. This parameter is used for the binding functionality. May be present if the store is allowed to create bindings. Specifying this parameter when processing payments with the use of bindings is mandatory. Otherwise, a payment will be unsuccessful. |
Error code | Error text |
---|---|
0 |
The request has been processed without system errors. |
1 |
Search parameters |
2 |
The information is not found. |
5 |
Access denied. |
5 |
The user must change the password. |
7 |
System error. |
userName=login&password=password&pan=4111111111111111
{"errorCode":"0","errorMessage":"Success","bindings":[{"bindingId":"0b8edeb2-8380-4092-bf7e-1e1a78f2b15e","maskedPan":"411111**1111","expiryDate":"201912","clientId":"12"},{"bindingId":"6a8c0738-cc88-4200-acf6-afc264d66cb0","maskedPan":"411111**1111","expiryDate":"201912","clientId":"666"},{"bindingId":"97a70989-c1fb-49f7-8a42-27c19dc160dw","maskedPan":"411111**1111","expiryDate":"201512","clientId":"666"}]}