The request used for getting the list of bindings by Customer identifier is getBindings
.
Use the following URL to connect to the Test Service (WSDL):
https://3dsec.sberbank.ru/payment/webservices/merchant-ws?wsdl.
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. |
|
ANS..255 | Yes |
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. |
|
AN..255 | No |
Identifier of the binding created earlier. |
|
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. |
|
ENUM (A1 per element) | Yes |
List of possible values:
|
|
A2 | No |
Language in the ISO 639-1 encoding. If the language is not specified, the default language defined in the store settings is used. |
Name | Type | Mandatory | Description |
---|---|---|---|
|
ANS..3 | Yes |
Error code. |
|
|
(on an error) |
|
bindings element |
|||
|
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. This parameter is to be specified only after the order has been paid. |
|
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. |
|
AS..14 | No |
The way of order completion (a payment with entering card data, a payment using a binding, etc.). Possible values:
|
|
N..10 | No |
The payment system name. Available values:
|
|
ENUM (A1 per element) | No |
List of possible values:
|
Error code | Error text |
---|---|
0 |
The request has been processed without system errors. |
1 |
|
2 |
The information is not found. |
5 |
Access denied. |
5 |
The user must change the password. |
7 |
System error. |
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:mer="http://engine.paymentgate.ru/webservices/merchant"> <soapenv:Header> <wsse:Username>username</wsse:Username> <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">password</wsse:Password> </wsse:UsernameToken> </wsse:Security> </soapenv:Header> <soapenv:Body> <mer:getBindings> <request clientId="12345678" showExpired="false" language="ru" bindingCategoryType="C"> </request> </mer:getBindings> </soapenv:Body> </soapenv:Envelope>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <ns1:getBindingsResponse xmlns:ns1="http://engine.paymentgate.ru/webservices/merchant"> <return errorCode="0" errorMessage="Success"> <bindings> <binding bindingId="614d6438-40fe-7b65-9d22-b41d00cd1fba" maskedPan="555555XXXXXX5599" expiryDate="202412" paymentWay="CARD"/> <binding bindingId="22397ac5-af0b-7daa-b1e6-48a300cd1fba" maskedPan="427601XXXXXX6064" expiryDate="202412" paymentWay="CARD"/> <binding bindingId="2912702b-4c5b-7822-9cd7-260500cd1fba" maskedPan="427601XXXXXX6122" expiryDate="202212" paymentWay="CARD"/> <binding bindingId="fa0c41fb-fb94-709c-83f9-0aca00cd1fba" maskedPan="427601XXXXXX6065" expiryDate="202412" paymentWay="CARD"/> </bindings> </return> </ns1:getBindingsResponse> </soap:Body> </soap:Envelope>