Инструменты страницы
Request for operation completion with the full pre-authorization amount, monetary funds and points (autoCompletion.do)
The request used for completion is autoCompletion.do
.
Request 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..20 | Yes |
The amount to be debited, consisting of the amount in money and the amount of points. The amount can be equal to or less than the order remaining amount. If zero is passed in this parameter, completion will occur for the entire pre-authorized amount. |
Response parameters
Name | Type | Mandatory | Description |
---|---|---|---|
|
ANS..3 | Yes |
Error code. Can be missing if the result has not caused an error. |
|
|
Yes |
|
|
AN..512 | No |
Loyalty processing transaction identifier. |
|
AN..512 | No |
Operation type, the following values are possible:
|
|
AN..512 | No |
The identifier of the transaction in the payment gateway. |
|
String | No |
Amount in points. |
|
AN..512 | No |
A feature of the success of the operation, the following values are possible:
|
Request example
userName=login&password=password&orderId=94e86702-d37a-44dc-b953-36f75f80507b&compositeCompletionAmount=90000
Response example
{"operations":[{"pcId":2699110,"operation":"REFUND_PAYMENT","amount":20,"successful":true,"transactionId":"1642"},{"pcId":2699111,"operation":"REFUND_AWARD","amount":10180,"successful":true,"transactionId":"1643"}],"errorCode":"0"}