Check
https://{Environment}.payture.com/vwapi/CheckThe Check command checks whether a Customer (a Customer with the given VWUserLgn and VWUserPsw) exists in the Payture payment system.
Request
curl https://sandbox3.payture.com/vwapi/Check \
-X POST \
-H "Content-Type: application/x-www-form-urlencoded" \
-d VWID=Merchant \
--data-urlencode "DATA= \
VWUserLgn=123@ya.ru; \
VWUserPsw=2645363" \Parameter names in requests are case-sensitive
| Parameter | Description | Format |
|---|---|---|
| VWID | Payment terminal name Provided with the test/production access credentials | String Mandatory |
| DATA | Customer parameters A URL-encoded string containing key-value pairs separated by “;” (semicolon). Keys and values are separated by “=” (equals sign) | String Mandatory |
DATA parameter keys
| Parameter | Description | Format |
|---|---|---|
| VWUserLgn | Customer identifier in the Payture system | String [1..50] Mandatory |
| VWUserPsw | Additional access parameter for the Customer's private information (Customer password) | String [1..50] Mandatory |
Example of the DATA parameter (decoded):
VWUserLgn=123@ya.ru;
VWUserPsw=2645363Response
An XML string with the Check element
Response examples
<Check Success="True" VWUserLgn="123@ya.ru"/>| Parameter | Description | Format |
|---|---|---|
| Success | Operation success flag. Possible values:True — the operation succeeded, the Customer was foundFalse — the operation failed | String Mandatory |
| VWUserLgn | Customer identifier in the Payture system Matches the value passed in the request | String [1..50] Mandatory |
| ErrCode | Error code. See error codes Returned if “Success=False” | String Optional |
