RU

Unblock

https://{Environment}.payture.com/vwapi/Unblock

The request fully releases funds previously held on the Customer's card. It is used in the two-step payment flow.

Processing the request fully cancels the hold.

Important! For the release to succeed, the payment must have the Authorized status at the time the request is executed.

Request

curl https://sandbox3.payture.com/vwapi/Unblock \
-X POST \
-H "Content-Type: application/x-www-form-urlencoded" \
-d VWID=Merchant \
-d Password=123 \
-d OrderId=5f63838d-fb03-00c6-c890-c67cfc1c54ea \
Get link

Parameter names in requests are case-sensitive

ParameterDescriptionFormat
VWIDPayment terminal name
Provided with the test/production access credentials
String
Mandatory
PasswordPayment terminal password
Provided with the test/production access credentials
String
Mandatory
OrderIdUnique payment ID in the Merchant's system
Recommended format: GUID/UUID or alphanumeric. Other formats may cause failures in banking services
String [1..50]
Mandatory

Response

An XML string with the Unblock element

Response examples

<Unblock Success="True" OrderId="5f63838d-fb03-00c6-c890-c67cfc1c54ea" NewAmount="0"/>
ParameterDescriptionFormat
SuccessOperation success flag. Possible values:
True — the operation succeeded
False — the operation failed
String
Mandatory
OrderIdPayment ID in the Merchant's system
Matches the value passed in the request
String [1..50]
Mandatory
NewAmountRemaining held amount, always "0"
Returned if “Success=True”
Integer
Optional
ErrCodeError code. See error codes
Returned if “Success=False”
String
Optional

On this page