The request used for debiting the full pre-authorized amount is deposit.do
. This operation can be performed provided that the merchant has the corresponding permissions in the system.
When orders are completed, the cart is passed in the element deposititems
.
positionId
, name
, and itemCode
must match. If at least one value does not coincide, it is considered that the line item is missing from cart in the registration order.quantity
element in the cart of the completion request must not exceed the value of the same parameter in the cart of the registration order request.itemAmount
element value of the items
block must not exceed the value of the same parameter in the original order.quantity
parameter is to be checked for each line item. If the value is too large or too small, the request will fail.If at least one of the above conditions is not met, the order completion request is considered incorrectly formed and the payment gateway returns an error.
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. If login and password are used for authentication during token registration, then the |
|
AN..30 | Yes |
Merchant's service account password. If login and password are used for authentication during token registration, then the |
|
ANS36 | Yes |
Identifier of the order in the payment system. It is unique within the system. Missing if order registration failed due to an error detailed in ErrorCode. |
|
N..12 | Yes |
To complete the operation with the full pre-authorization amount, it is necessary to send the full amount of the order or 0. |
|
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 |
---|---|---|---|
|
N3 | Yes |
Error code. Can be missing if the result has not caused an error. |
|
|
No |
|
Value | Description |
---|---|
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. |
8 |
Specified completion amount does not match the full amount of the order. The cart data is mandatory to complete the operation with a partial pre-authorization amount. |
currency=643&language=ru&orderId=f57db9df-5885-483d-8d5e-8e592d60ec9d&amount=0
{"errorCode":"0","errorMessage":"Success"}