RU

Update

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

The command lets you edit the account parameters (PhoneNumber or Email) of a Customer previously registered in the Payture system.

Request

curl https://sandbox3.payture.com/vwapi/Update \
-X POST \
-H "Content-Type: application/x-www-form-urlencoded" \
-d VWID=Merchant \
--data-urlencode "DATA= \
VWUserLgn=123@ya.ru; \
VWUserPsw=2645363; \
PhoneNumber=79156783333" \
Get link

Parameter names in requests are case-sensitive

ParameterDescriptionFormat
VWIDPayment terminal name
Provided with the test/production access credentials
String
Mandatory
DATACustomer 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

ParameterDescriptionFormat
VWUserLgnCustomer identifier in the Payture systemString [1..50]
Mandatory
VWUserPswAdditional access parameter for the Customer's private information (Customer password)String [1..50]
Mandatory
PhoneNumberCustomer phone number
Digits only, no separators. Format: [country code][operator code][subscriber number]
String
Optional
EmailCustomer email
Can be passed if it is not used as VWUserLgn
String [1..50]
Optional

Example of the DATA parameter (decoded):

VWUserLgn=123@ya.ru;
VWUserPsw=2645363;
PhoneNumber=79156783333

Response

An XML string with the Update element

Response examples

<Update Success="True" VWUserLgn="123@ya.ru"/>
ParameterDescriptionFormat
SuccessOperation success flag. Possible values:
True — the operation succeeded
False — the operation failed
String
Mandatory
VWUserLgnCustomer identifier in the Payture system
Matches the value passed in the request
String [1..50]
Mandatory
ErrCodeError code. See error codes
Returned if “Success=False”
String
Optional