The request used for completing a pre-authorized order is depositOrder. This operation can be performed provided that the merchant has the corresponding permissions in the system.
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:
The request parameters are given in table below.
| Name | Type | Mandatory | Description |
|---|---|---|---|
|
|
ANS36 | Yes |
Identifier of the order in the payment system. It is unique within the system. The identifier is missing if the order registration failed due to an error detailed in errorCode. |
|
|
N..5 | Yes |
The amount to be debited in the order currency. Can be less than or equal to the amount of pre-authorization. The amount cannot be less that one ruble. |
|
|
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. |
If you do not specify the depositAmount parameter, completion will take place for the entire pre-authorized amount.
The response parameters are given in table below.
| Name | Type | Mandatory | Description |
|---|---|---|---|
|
|
N3 | No |
Error code. |
|
|
| No |
|
| Error code | Error text |
|---|---|
| 0 |
The request has been processed without system errors. |
| 5 |
The deposit amount exceeds the amount put on hold. |
| 5 |
The deposit amount must be equal to zero or not less than one roble. |
| 5 |
Access denied. |
| 5 |
The user must change the password. |
| 6 |
Wrong order number. |
| 6 |
|
| 7 |
Payment must be in the correct state. |
| 7 |
System error. |
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:mer="http://engine.paymentgate.ru/webservices/merchant">
<soapenv:Header/>
<soapenv:Body>
<mer:depositOrder>
<order language="ru" orderId="4302d369-a5e8-4432-a5e5-42acfab52c86" depositAmount="30000">
<!-- Zero or more repetitions: -->
<params name="param1" value="paramValue1"/>
</order>
</mer:depositOrder>
</soapenv:Body>
</soapenv:Envelope>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<ns1:depositOrderResponse xmlns:ns1="http://engine.paymentgate.ru/webservices/merchant">
<return errorCode="6" errorMessage="Invalid order number"/>
</ns1:depositOrderResponse>
</soap:Body>
</soap:Envelope>