Remove
https://{Environment}.payture.com/vwapi/RemoveThe command removes a payment card's data (for both activated and non-activated cards) from the Customer's card list.
Request
curl https://sandbox3.payture.com/vwapi/Remove \
-X POST \
-H "Content-Type: application/x-www-form-urlencoded" \
-d VWID=Merchant \
--data-urlencode "DATA= \
VWUserLgn=123@ya.ru; \
VWUserPsw=2645363; \
CardId=00a94d92-1d84-44be-fa32-1c9591443347" \Parameter names in requests are case-sensitive
| Parameter | Description | Format |
|---|---|---|
| VWID | Payment terminal name Provided with the test/production access credentials | String Mandatory |
| DATA | Card 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 |
| CardId | Identifier, in the Payture system, of the card being removed | String [36] Mandatory |
Example of the DATA parameter (decoded):
VWUserLgn=123@ya.ru;
VWUserPsw=2645363;
CardId=00a94d92-1d84-44be-fa32-1c9591443347Response
An XML string with the Remove element
Response examples
<Remove Success="True" VWUserLgn="123@ya.ru" CardId="00a94d92-1d84-44be-fa32-1c9591443347"/>| Parameter | Description | Format |
|---|---|---|
| Success | Operation success flag. Possible values:True — the operation succeededFalse — the operation failed | String Mandatory |
| VWUserLgn | Customer identifier in the Payture system Matches the value passed in the request | String [1..50] Mandatory |
| CardId | Card identifier in the Payture system Returned if “Success=True” | String [36] Optional |
| ErrCode | Error code. See error codes Returned if “Success=False” | String Optional |
Activate
The Activate command activates a card previously registered in the Payture system and awaiting activation. Use it when the card is verified with the add-card flow that places a hold on a small amount.
GetList
The GetList command retrieves the list of the Customer's payment cards registered in the Payture system. GetList does not return removed cards or expired cards.
