Advcash - Merchantapi-1.6 en
Advcash - Merchantapi-1.6 en
Advcash - Merchantapi-1.6 en
Merchant API
Version 1.6
Merchant API
Version 1.0
1
AdvCash Payment System
Merchant API. Version 1.6
Table of Contents:
Merchant API
Requirements
Creation of New Merchant API
WSDL File Location
Available Operations
1. validateAccounts. Validation of Account’s Existence.
2. validationSendMoney. Validation of Intrasystem Transfer.
3. validationSendMoneyToAdvcashCard. Validation of Funds Transfer to Advanced
Cash Card.
4. validationSendMoneyToBankCard. Validation of Funds Transfer to External Card
Not Tied to System.
5. validationSendMoneyToECurrency. Validation withdraw funds to a third-party
payment system.
6. validationCurrencyExchange. Validation of Currency Exchange.
7. validationSendMoneyToEmail. Validation of Funds Transfer to Unregistered User
via E-mail.
8. sendMoney. Intrasystem Payment.
9. sendMoneyToAdvcashCard. Transfer of Funds to Advanced Cash Card.
10. sendMoneyToBankCard. Transfer of Funds to External Bank Card.
11. sendMoneyToECurrency. Withdrawals to third-party payment system.
12. currencyExchange. Intrasystem Currency Exchange.
13. sendMoneyToEmail. Transfer of Funds to Unregistered User via E-mail.
14. history. Transaction History.
15. findTransaction. Transaction Search by ID.
16. getBalances. Get Balance per User’s Wallets.
17. validateAccount. Checking matching the first and last name of the user in the
system Advanced Cash with the name and last name of the user in a third-party
system.
18. register. Register a new user.
Enumerated Data Types
ADVCash-cards Types
Currencies
Transaction Statuses
Transaction Names
Ecurrency
Languages
Exceptions
Authentication
Creation of Authentication Token
Change history
2
AdvCash Payment System
Merchant API. Version 1.6
Merchant API
Requirements
● Protocol HTTPS based operation.
● Blocking API requests through proxy servers.
● HTTP request must contain the correct ‘UserAgent’ HTTP heading and must be
included in all requests.
In the frontend Merchant Tools section, the following Merchant API management
operations are available:
● Create New;
● View and Edit Existing;
● Delete.
All changes must be confirmed with the password from the current settings of the
application software package (ASP).
3
AdvCash Payment System
Merchant API. Version 1.6
Available Operations
Request Parameters
Parameter Internal Parameter Type Description
arg0 apiName String API name in Advanced Cash system
authenticationToken String Generated token (Authentication section)
accountEmail String Email of the user that owns the API
arg1 String Email of the user in Advanced Cash system to validate
existence
Example of Request:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:wsm="http://wsm.advcash/">
<soapenv:Header/>
<soapenv:Body>
<wsm:validateAccounts>
<arg0>
<apiName>api_name</apiName>
<authenticationToken>token</authenticationToken>
<accountEmail>name@example.com</accountEmail>
</arg0>
<arg1>name@example.com</arg1>
<arg1>name@example.com</arg1>
<arg1>name@example.com</arg1>
<arg1>name@example.com</arg1>
<arg1>name@example.com</arg1>
</wsm:validateAccounts>
</soapenv:Body>
</soapenv:Envelope>
4
AdvCash Payment System
Merchant API. Version 1.6
<accountEmail>name@example.com</accountEmail>
</return>
<return>
<present>true</present>
<accountEmail>name@example.com</accountEmail>
</return>
<return>
<present>false</present>
<accountEmail>name@example.com</accountEmail>
</return>
<return>
<present>false</present>
<accountEmail>name@example.com</accountEmail>
</return>
<return>
<present>false</present>
<accountEmail>name@example.com</accountEmail>
</return>
</ns2:validateAccountsResponse>
</soap:Body>
</soap:Envelope>
5
AdvCash Payment System
Merchant API. Version 1.6
Request Parameter
Parameter Internal Parameter Type Description
arg0 apiName String API name in Advanced Cash system
authenticationToken String Generated token (Authentication section)
accountEmail String Email of the user that owns the API
arg1 amount Double Transaction amount (accuracy – up to two digits after
decimal point)
currency Enumeration Transfer currency (3 characters ISO 4217, Currencies
section)
email String Recipient’s email
note String Note to transaction
savePaymentTemplate Boolean Indicator of saving the current payment template
If the validation of the expected payment is successful, the response from the server
will contain a blank message. If the validation is not successful, a message with an
error contained in its body will be returned.
Example of Request:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:wsm="http://wsm.advcash/">
<soapenv:Header/>
<soapenv:Body>
<wsm:validationSendMoney>
<arg0>
<apiName>api_name</apiName>
<authenticationToken>token</authenticationToken>
<accountEmail>name@example.com</accountEmail>
</arg0>
<arg1>
<amount>1.00</amount>
<currency>USD</currency>
<email>name@example.com</email>
<note>Some note</note>
<savePaymentTemplate>false</savePaymentTemplate>
</arg1>
</wsm:validationSendMoney>
</soapenv:Body>
</soapenv:Envelope>
6
AdvCash Payment System
Merchant API. Version 1.6
Request Parameters
Parameter Internal Parameter Type Description
rg0 apiName String API name in Advanced Cash system
authenticationToken String Generated token (Authentication section)
accountEmail String Email of the user that owns the API
arg1 amount Double Transaction amount (accuracy – up to two digits after
decimal point)
currency Enumerati Transfer currency (3 characters ISO 4217, Currencies
on section)
email String Email of the user that owns the card
cardType Enumerati Card type which will be used for the transfer of funds
on (ADVCash-cards Types section)
note String Note to transaction
savePaymentTemplate Boolean Indicator of saving the current payment template
If the validation of the expected payment is successful, the response from the server
will contain a blank message. If the validation is not successful, a message with an
error contained in its body will be returned.
Example of Request:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:wsm="http://wsm.advcash/">
<soapenv:Header/>
<soapenv:Body>
<wsm:validationSendMoneyToAdvcashCard>
<arg0>
<apiName>api_name</apiName>
<authenticationToken>token</authenticationToken>
<accountEmail>name@example.com</accountEmail>
</arg0>
<arg1>
<amount>1.00</amount>
<currency>USD</currency>
<email>name@example.com</email>
<cardType>PLASTIC</cardType>
<note>Some note</note>
<savePaymentTemplate>false</savePaymentTemplate>
</arg1>
</wsm:validationSendMoneyToAdvcashCard>
</soapenv:Body>
</soapenv:Envelope>
7
AdvCash Payment System
Merchant API. Version 1.6
Request Parameters
Parameter Internal Parameter Type Description
arg0 apiName String API name in Advanced Cash system
authenticationToken String Generated token (Authentication section)
accountEmail String Email of the user that owns the API
arg1 amount Double Transaction amount (accuracy – up to two digits after
decimal point)
currency Enumerati Transfer currency (3 characters ISO 4217, Currencies section)
on
cardNumber String External card number for finds withdrawal
expiryMonth Numeric Two digits that signify the month of the card’s expiration
date (e.g. 09 for September)
expiryYear Numeric Two last digits of the year of the card’s expiration date
(e.g. 17 for year 2017)
note String Note to transaction
savePaymentTemplate Boolean Indicator of saving the current payment template
If the validation of the expected payment is successful, the response from the server
will contain a blank message. If the validation is not successful, a message with an
error contained in its body will be returned.
Example of Request:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:wsm="http://wsm.advcash/">
<soapenv:Header/>
<soapenv:Body>
<wsm:validationSendMoneyToBankCard>
<arg0>
<apiName>api_name</apiName>
<authenticationToken>token</authenticationToken>
<accountEmail>name@example.com</accountEmail>
</arg0>
<arg1>
<amount>1.00</amount>
<currency>USD</currency>
<cardNumber>4149605912035536</cardNumber>
<expiryMonth>08</expiryMonth>
<expiryYear>17</expiryYear>
<note>Some note</note>
<savePaymentTemplate>false</savePaymentTemplate>
</arg1>
</wsm:validationSendMoneyToBankCard>
</soapenv:Body>
</soapenv:Envelope>
8
AdvCash Payment System
Merchant API. Version 1.6
9
AdvCash Payment System
Merchant API. Version 1.6
Request Parameters
Parameter Internal Parameter Type Description
arg0 apiName String API name in Advanced Cash system
authenticationToken String Generated token (Authentication section)
accountEmail String Email of the user that owns the API
arg1 amount Double Transaction amount (accuracy – up to two digits after
decimal point)
currency Enumerati Currency of transaction (3 characters ISO 4217, Currencies
on section)
ecurrency Enumerati Ecurrency (Ecurrency chapter)
on
receiver String ID or wallet of the recipient in the third-party payment
system
note String Note to transaction
savePaymentTemplate Boolean Indicator of saving the current payment template
If the validation of the expected payment is successful, the response from the server
will contain a blank message. If the validation is not successful, a message with an
error contained in its body will be returned.
Example of Request:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:wsm="http://wsm.advcash/">
<soapenv:Header/>
<soapenv:Body>
<wsm:validationSendMoneyToEcurrency>
<arg0>
<apiName>api_name</apiName>
<authenticationToken>token</authenticationToken>
<accountEmail>name@example.com</accountEmail>
</arg0>
<arg1>
<amount>1.00</amount>
<currency>RUR</currency>
<ecurrency>YANDEX_MONEY</ecurrency>
<receiver>410022528972199</receiver>
<note>Some note</note>
<savePaymentTemplate>false</savePaymentTemplate>
</arg1>
</wsm:validationSendMoneyToEcurrency>
</soapenv:Body>
</soapenv:Envelope>
10
AdvCash Payment System
Merchant API. Version 1.6
Request Parameters
Parameter Internal Parameter Type Description
arg0 apiName String API name in Advanced Cash system
authenticationToken String Generated token (Authentication section)
accountEmail String Email of the user that owns the API
arg1 from Enumerati Outgoing currency (3 characters ISO 4217, Currencies
on section)
to Enumerati Incoming currency (3 characters ISO 4217, Currencies
on section)
action Enumerati Takes 2 values «BUY» and «SELL»
on «BUY» - will be bought the «amount» in currency «to»
«SELL» - will be sold the «amount» in currency «from»
amount Double Transaction amount (accuracy – up to two digits after
decimal point)
note String Note to transaction
If the validation of the expected payment is successful, the response from the server
will contain a blank message. If the validation is not successful, a message with an
error contained in its body will be returned.
Example of Request:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:wsm="http://wsm.advcash/">
<soapenv:Header/>
<soapenv:Body>
<wsm:validationCurrencyExchange>
<arg0>
<apiName>api_name</apiName>
<authenticationToken>token</authenticationToken>
<accountEmail>name@example.com</accountEmail>
</arg0>
<arg1>
<from>USD</from>
<to>EUR</to>
<action>SELL</action>
<amount>1.00</amount>
<note>Some note</note>
</arg1>
</wsm:validationCurrencyExchange>
</soapenv:Body>
</soapenv:Envelope>
11
AdvCash Payment System
Merchant API. Version 1.6
12
AdvCash Payment System
Merchant API. Version 1.6
Request Parameters
Parameter Internal Parameter Type Description
arg0 apiName String API name in Advanced Cash system
authenticationToken String Generated token (Authentication section)
accountEmail String Email of the user that owns the API
arg1 amount Double Transaction amount (accuracy – up to two digits after
decimal point)
currency String Transaction currency (3 characters ISO 4217, Currencies
section)
email String E-mail address of the payment recipient unregistered in
Advanced Cash system (Immediately after registration in
Advanced Cash system, user will receive funds transfer)
note String Note to transaction
If the validation of the expected payment is successful, the response from the server
will contain a blank message. If the validation is not successful, a message with an
error contained in its body will be returned.
Example of Request:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:wsm="http://wsm.advcash/">
<soapenv:Header/>
<soapenv:Body>
<wsm:validationSendMoneyToEmail>
<arg0>
<apiName>api_name</apiName>
<authenticationToken>token</authenticationToken>
<accountEmail>name@example.com</accountEmail>
</arg0>
<arg1>
<amount>1.00</amount>
<currency>USD</currency>
<email>name@example.com</email>
<note>Some note</note>
</arg1>
</wsm:validationSendMoneyToEmail>
</soapenv:Body>
</soapenv:Envelope>
13
AdvCash Payment System
Merchant API. Version 1.6
Request Parameters
Parameter Internal Parameter Type Description
arg0 apiName String API name in Advanced Cash system
authenticationToken String Generated token (Authentication section)
accountEmail String Email of the user that owns the API
arg1 amount Double Transaction amount (accuracy – up to two digits after
decimal point)
currency Enumeration Transfer currency (3 characters ISO 4217, Currencies
section)
email String Recipient’s email
note String Note to transaction
savePaymentTemplate Boolean Indicator of saving the current payment template
Example of Request:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:wsm="http://wsm.advcash/">
<soapenv:Header/>
<soapenv:Body>
<wsm:sendMoney>
<arg0>
<apiName>api_name</apiName>
<authenticationToken>token</authenticationToken>
<accountEmail>name@example.com</accountEmail>
</arg0>
<arg1>
<amount>1.00</amount>
<currency>USD</currency>
<email>name@example.com</email>
<note>Some note</note>
<savePaymentTemplate>false</savePaymentTemplate>
</arg1>
</wsm:sendMoney>
</soapenv:Body>
</soapenv:Envelope>
14
AdvCash Payment System
Merchant API. Version 1.6
Request Parameters
Parameter Internal Parameter Type Description
arg0 apiName String API name in Advanced Cash system
authenticationToken String Generated token (Authentication section)
accountEmail String Email of the user that owns the API
arg1 amount Double Transaction amount (accuracy – up to two digits after
decimal point)
currency Enumerati Transfer currency (3 characters ISO 4217, Currencies
on section)
email String Email of the user that owns the card
cardType Enumerati Card type which will be used for the transfer of funds
on (ADVCash-cards Types section)
note String Note to transaction
savePaymentTemplate Boolean Indicator of saving the current payment template
15
AdvCash Payment System
Merchant API. Version 1.6
Request Parameters
Parameter Internal Parameter Type Description
arg0 apiName String API name in Advanced Cash system
authenticationToken String Generated token (Authentication section)
accountEmail String Email of the user that owns the API
arg1 amount Double Transaction amount (accuracy – up to two digits after
decimal point)
currency Enumerati Transfer currency (3 characters ISO 4217, Currencies
on section)
cardNumber String External card number for finds withdrawal
expiryMonth Numeric Two digits that signify the month of the card’s expiration
date (e.g. 09 for September)
expiryYear Numeric Two last digits of the year of the card’s expiration date
(e.g. 17 for year 2017)
note String Note to transaction
savePaymentTemplate Boolean Indicator of saving the current payment template
Example of Request:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:wsm="http://wsm.advcash/">
<soapenv:Header/>
<soapenv:Body>
<wsm:sendMoneyToBankCard>
<arg0>
<apiName>api_name</apiName>
<authenticationToken>token</authenticationToken>
<accountEmail>name@example.com</accountEmail>
</arg0>
<arg1>
<amount>1.00</amount>
<currency>USD</currency>
<cardNumber>4149605912035536</cardNumber>
<expiryMonth>08</expiryMonth>
<expiryYear>17</expiryYear>
<note>Some note</note>
<savePaymentTemplate>false</savePaymentTemplate>
</arg1>
</wsm:sendMoneyToBankCard>
</soapenv:Body>
</soapenv:Envelope>
16
AdvCash Payment System
Merchant API. Version 1.6
17
AdvCash Payment System
Merchant API. Version 1.6
18
AdvCash Payment System
Merchant API. Version 1.6
Request Parameters
Parameter Internal Parameter Type Description
arg0 apiName String API name in Advanced Cash system
authenticationToken String Generated token (Authentication section)
accountEmail String Email of the user that owns the API
arg1 from Enumerati Outgoing currency (3 characters ISO 4217, Currencies
on section)
to Enumerati Incoming currency (3 characters ISO 4217, Currencies
on section)
action Enumerati Takes 2 values «BUY» and «SELL»
on «BUY» - will be bought the «amount» in currency «to»
«SELL» - will be sold the «amount» in currency «from»
amount Double Transaction amount (accuracy – up to two digits after
decimal point)
note String Note to transaction
Successful Response Parameters
Parameter Internal Parameter Type Description
return String Transaction ID
Example of Request:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:wsm="http://wsm.advcash/">
<soapenv:Header/>
<soapenv:Body>
<wsm:currencyExchange>
<arg0>
<apiName>api_name</apiName>
<authenticationToken>token</authenticationToken>
<accountEmail>name@example.com</accountEmail>
</arg0>
<arg1>
<from>USD</from>
<to>EUR</to>
<action>SELL</action>
<amount>1.00</amount>
<note>Some note</note>
</arg1>
</wsm:currencyExchange>
</soapenv:Body>
</soapenv:Envelope>
19
AdvCash Payment System
Merchant API. Version 1.6
Request Parameters
Parameter Internal Parameter Type Description
arg0 apiName String API name in Advanced Cash system
authenticationToken String Generated token (Authentication section)
accountEmail String Email of the user that owns the API
arg1 amount Double Transaction amount (accuracy – up to two digits after
decimal point)
currency String Transaction currency (3 characters ISO 4217, Currencies
section)
email String E-mail address of the payment recipient unregistered in
Advanced Cash system (Immediately after registration in
Advanced Cash system, user will receive funds transfer)
note String Note to transaction
Example of Request:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:wsm="http://wsm.advcash/">
<soapenv:Header/>
<soapenv:Body>
<wsm:sendMoneyToEmail>
<arg0>
<apiName>api_name</apiName>
<authenticationToken>token</authenticationToken>
<accountEmail>name@example.com</accountEmail>
</arg0>
<arg1>
<amount>1.00</amount>
<currency>USD</currency>
<email>name@example.com</email>
<note>Some note</note>
</arg1>
</wsm:sendMoneyToEmail>
</soapenv:Body>
</soapenv:Envelope>
20
AdvCash Payment System
Merchant API. Version 1.6
The “walletDestId” and “walletSrcId” fields are not provided in all transaction types
(See “Example of Successful Response” below). “walletSrcId” is used in withdrawal
transactions and intrasystem transactions. “walletDestId” is used in deposit
transactions and intrasystem transactions.
Example of Request:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
21
AdvCash Payment System
Merchant API. Version 1.6
xmlns:wsm="http://wsm.advcash/">
<soapenv:Header/>
<soapenv:Body>
<wsm:history>
<arg0>
<apiName>api_name</apiName>
<authenticationToken>token</authenticationToken>
<accountEmail>name@example.com</accountEmail>
</arg0>
<arg1>
<accountName>name@example.com</accountName>
<startTimeFrom>2011-01-01T00:00:00</startTimeFrom>
<startTimeTo>2014-03-25T12:17:00</startTimeTo>
<transactionName>ALL</transactionName>
<transactionStatus>COMPLETED</transactionStatus>
<updatedFrom>2011-01-01T00:00:00</updatedFrom>
<updatedTo>2014-03-25T12:17:00</updatedTo>
<walletId>U993960083199</walletId>
</arg1>
</wsm:history>
</soapenv:Body>
</soapenv:Envelope>
22
AdvCash Payment System
Merchant API. Version 1.6
</return>
<return>
<id>d1062eba-29b7-456c-b6ad-2ca734af4924</id>
<activityLevel>0</activityLevel>
<amount>5.05</amount>
<amountInUSD>5.05</amountInUSD>
<comment>Some comment</comment>
<fullCommission>0.05</fullCommission>
<startTime>2014-03-25T09:56:02.332+01:00</startTime>
<status>COMPLETED</status>
<transactionName>INNER_SYSTEM</transactionName>
<walletDestId>U000000000000</walletDestId>
<walletSrcId>U993960083199</walletSrcId>
</return>
<return>
<id>19a414cb-6c6b-4932-8244-394607d44914</id>
<activityLevel>0</activityLevel>
<amount>198.00</amount>
<amountInUSD>198.00</amountInUSD>
<comment/>
<fullCommission>2.00</fullCommission>
<startTime>2014-03-25T09:42:10.349+01:00</startTime>
<status>COMPLETED</status>
<transactionName>CHECK_DEPOSIT</transactionName>
<walletDestId>U993960083199</walletDestId>
</return>
<return>
<id>4db253ce-2fa4-4a2c-b57b-8ac786cb2f42</id>
<activityLevel>0</activityLevel>
<amount>5.05</amount>
<amountInUSD>5.05</amountInUSD>
<fullCommission>0.05</fullCommission>
<startTime>2014-03-25T07:46:21.891+01:00</startTime>
<status>COMPLETED</status>
<transactionName>ADVCASH_CARD_TRANSFER</transactionName>
</return>
<return>
<id>10311368-d5c9-46ca-945a-63bc6b2069ae</id>
<activityLevel>0</activityLevel>
<amount>6.12</amount>
<amountInUSD>8.45</amountInUSD>
<comment/>
<fullCommission>0.12</fullCommission>
<startTime>2014-03-24T15:08:23.943+01:00</startTime>
<status>COMPLETED</status>
<transactionName>INNER_SYSTEM</transactionName>
<walletDestId>U993960083199</walletDestId>
<walletSrcId>E814009369319</walletSrcId>
</return>
<return>
<id>79789306-ed1b-4def-a2b4-359eab9e895f</id>
<activityLevel>0</activityLevel>
<amount>5.05</amount>
<amountInUSD>5.05</amountInUSD>
<comment>This is transfer inner transaction</comment>
<fullCommission>0.05</fullCommission>
<startTime>2014-03-24T13:16:02.580+01:00</startTime>
<status>COMPLETED</status>
<transactionName>INNER_SYSTEM</transactionName>
<walletDestId>U000000000000</walletDestId>
23
AdvCash Payment System
Merchant API. Version 1.6
<walletSrcId>U993960083199</walletSrcId>
</return>
<return>
<id>44bfaf6d-9028-4d9c-8e4b-5129f98ec250</id>
<activityLevel>0</activityLevel>
<amount>6.00</amount>
<amountInUSD>6.00</amountInUSD>
<comment/>
<fullCommission>0.06</fullCommission>
<startTime>2014-03-21T16:07:00.436+01:00</startTime>
<status>COMPLETED</status>
<transactionName>INNER_SYSTEM</transactionName>
<walletDestId>U993960083199</walletDestId>
<walletSrcId>U881039916801</walletSrcId>
</return>
<return>
<id>8c75ba94-8042-45f9-ac2d-5ed3781ea9d2</id>
<activityLevel>0</activityLevel>
<amount>6.00</amount>
<amountInUSD>6.00</amountInUSD>
<comment/>
<fullCommission>0.06</fullCommission>
<startTime>2014-03-21T15:41:14.220+01:00</startTime>
<status>COMPLETED</status>
<transactionName>INNER_SYSTEM</transactionName>
<walletDestId>U993960083199</walletDestId>
<walletSrcId>U881039916801</walletSrcId>
</return>
<return>
<id>c4d093ee-6e2c-498f-b6e2-994f5ce77e64</id>
<activityLevel>0</activityLevel>
<amount>6.00</amount>
<amountInUSD>6.00</amountInUSD>
<comment/>
<fullCommission>0.06</fullCommission>
<startTime>2014-03-21T10:34:06.269+01:00</startTime>
<status>COMPLETED</status>
<transactionName>INNER_SYSTEM</transactionName>
<walletDestId>U993960083199</walletDestId>
<walletSrcId>U881039916801</walletSrcId>
</return>
<return>
<id>e5383553-f66c-4073-b81d-86e7c3756cdb</id>
<activityLevel>0</activityLevel>
<amount>6.00</amount>
<amountInUSD>6.00</amountInUSD>
<comment/>
<fullCommission>0.06</fullCommission>
<startTime>2014-03-21T10:33:37.663+01:00</startTime>
<status>COMPLETED</status>
<transactionName>INNER_SYSTEM</transactionName>
<walletDestId>U993960083199</walletDestId>
<walletSrcId>U881039916801</walletSrcId>
</return>
</ns2:historyResponse>
</soap:Body>
</soap:Envelope>
24
AdvCash Payment System
Merchant API. Version 1.6
Request Parameters
Parameter Internal Parameter Type Description
arg0 apiName String API name in Advanced Cash system
authenticationToken String Generated token (Authentication section)
accountEmail String Email of the user that owns the API
arg1 String Transaction ID
Example of Request:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:wsm="http://wsm.advcash/">
<soapenv:Header/>
<soapenv:Body>
<wsm:findTransaction>
<arg0>
<apiName>api_name</apiName>
<authenticationToken>token</authenticationToken>
<accountEmail>name@example.com</accountEmail>
</arg0>
<arg1>e5383553-f66c-4073-b81d-86e7c3756cdb</arg1>
</wsm:findTransaction>
</soapenv:Body>
</soapenv:Envelope>
25
AdvCash Payment System
Merchant API. Version 1.6
<activityLevel>0</activityLevel>
<amount>6.00</amount>
<amountInUSD>6.00</amountInUSD>
<comment/>
<fullCommission>0.06</fullCommission>
<startTime>2014-03-21T10:33:37.663+01:00</startTime>
<status>COMPLETED</status>
<transactionName>INNER_SYSTEM</transactionName>
<walletDestId>U993960083199</walletDestId>
<walletSrcId>U881039916801</walletSrcId>
</return>
</ns2:findTransactionResponse>
</soap:Body>
</soap:Envelope>
26
AdvCash Payment System
Merchant API. Version 1.6
Request Parameters
Parameter Internal Parameter Type Description
arg0 apiName String API name in Advanced Cash system
authenticationToken String Generated token (Authentication section)
accountEmail String Email of the user that owns the API
Example of Request:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:wsm="http://wsm.advcash/">
<soapenv:Header/>
<soapenv:Body>
<wsm:getBalances>
<arg0>
<apiName>api_name</apiName>
<authenticationToken>token</authenticationToken>
<accountEmail>name@example.com</accountEmail>
</arg0>
</wsm:getBalances>
</soapenv:Body>
</soapenv:Envelope>
27
AdvCash Payment System
Merchant API. Version 1.6
17. validateAccount. Checking matching the first and last name of the user in the
Advanced Cash system with the name and last name in a third-party system.
Request Parameters
Parameter Internal Parameter Type Description
arg0 apiName String API name in Advanced Cash system
authenticationToken String Generated token (Authentication section)
accountEmail String Email of the user that owns the API
arg1 email String Email of the user in the Advanced Cash, for which will be
reconciling the first and last name (required, if not specified
walletId)
walletId String Wallet of the user in the Advanced Cash, for which will be
reconciling the first and last name (required, if not specified
email)
firstName String The name of the user in third-party system to verify with the
name of the user in the Advanced Cash
lastName String The last name of the user in third-party system to verify with
the last name of the user in the Advanced Cash
Example of Request:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:wsm="http://wsm.advcash/">
<soapenv:Header/>
<soapenv:Body>
<wsm:validateAccount>
<arg0>
<apiName>api_name</apiName>
<authenticationToken>token</authenticationToken>
<accountEmail>name@example.com</accountEmail>
</arg0>
<arg1>
<email>name@example.com</email>
<walletId>U000000000000</walletId>
<firstName>John</firstName>
<lastName>Smith</lastName>
</arg1>
</wsm:validateAccount>
</soapenv:Body>
</soapenv:Envelope>
28
AdvCash Payment System
Merchant API. Version 1.6
29
AdvCash Payment System
Merchant API. Version 1.6
Request Parameters
Parameter Internal Parameter Type Description
arg0 apiName String API name in Advanced Cash system
authenticationToken String Generated token (Authentication section)
accountEmail String Email of the user that owns the API
arg1 email String User's email
firstName String User's first name
lastName String User's last name
language Enumera User's language (Languages section)
tion
ip String User's IP-address
If the registration of the user is successful, the response from the server will contain a
blank message. If the registration is not successful, a message with an error contained
in its body will be returned.
Example of Request:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:wsm="http://wsm.advcash/">
<soapenv:Header/>
<soapenv:Body>
<wsm:register>
<arg0>
<apiName>api_name</apiName>
<authenticationToken>token</authenticationToken>
<accountEmail>name@example.com</accountEmail>
</arg0>
<arg1>
<email>name@example.com</email>
<firstName>John</firstName>
<lastName>Smith</lastName>
<language>en</language>
<ip>*.*.*.*</ip>
</arg1>
</wsm:register>
</soapenv:Body>
</soapenv:Envelope>
30
AdvCash Payment System
Merchant API. Version 1.6
ADVCash-cards Types
Parameter Possible Values Description
cardType VIRTUAL Virtual card
PLASTIC Plastic card
31
AdvCash Payment System
Merchant API. Version 1.6
Currencies
Parameter Possible Values Description
transferCurrency USD US Dollar
EUR Euro
RUR Russian Ruble
GBP Pound Sterling
32
AdvCash Payment System
Merchant API. Version 1.6
Transaction Statuses
Parameter Possible Values Description
transactionStatus PENDING Transaction processing is pending.
PROCESS Transaction is being processed.
COMPLETED Transaction is completed.
CANCELED Transaction is cancelled.
CONFIRMED Transaction is confirmed.
33
AdvCash Payment System
Merchant API. Version 1.6
Transaction Names
Parameter Possible Values Description
transactionName ALL All transactions regardless of their type
CHECK_DEPOSIT Funds deposit by bank check
WIRE_TRANSFER_DEPOSIT Funds deposit from bank account
WIRE_TRANSFER_WITHDRAW Funds withdrawal to bank account
INNER_SYSTEM Intrasystem funds transfer
CURRENCY_EXCHANGE Currency exchange within account
BANK_CARD_TRANSFER Funds withdrawal to external bank card
ADVCASH_CARD_TRANSFER Funds transfer to Advanced Cash card
EXTERNAL_SYSTEM_DEPOSIT Deposit funds through third-party system
EXTERNAL_SYSTEM_WITHDRAWAL Withdrawal through third-party system
REPAYMENT Funds repayment
34
AdvCash Payment System
Merchant API. Version 1.6
Ecurrency
Parameter Possible Values Description
ecurrency BITCOIN Withdrawal to BTC
OKPAY OkPay payment system
PAXUM Paxum payment system
PAYEER Payeer payment system
YANDEX_MONEY Yandex.Money payment system
35
AdvCash Payment System
Merchant API. Version 1.6
Languages
Параметр Возможные значения Описание
language en English
ru Русский
36
AdvCash Payment System
Merchant API. Version 1.6
Exceptions
Parameter Possible Values Description
exception AccessDeniedException Access denied.
AlreadyExistException The object already exists.
ApiException Exception of the third-party payment system.
AttemptsHaveEndedException The number of attempts exceeds the allowed
maximum.
BadParametersException Incorrect set of parameters
BadFormatAmountException The payment amount is entered incorrectly.
EmailAlreadyExistException A user with this email address is already registered in
the Advanced Cash system.
ExchangeCurrencyException Currency exchange error
IpAddressIsWrongException Incorrect IP address
LimitPerMonthException The monthly transaction amount limit is exceeded.
LimitPerDayException The daily transaction amount limit is exceeded.
LimitPerTransactionException The transaction limit is exceeded.
NotEnoughMoneyException The funds are insufficient to make a payment.
PasswordExpiredException Expired password
PasswordIncorrectException Incorrect password
RecipientDoesNotExistException Payment recipient was not found.
SenderDoesNotExistException Payment sender was not found.
TooManyAttemptsException The maximum number of attempts is exceeded.
TooManyWalletsException The maximum number of wallets is exceeded.
UnsupportedTransaction This transaction type or transaction name is not
supported.
UserBlockedException The user is blocked and can not receive/make
payments.
UserDoesNotExistException Such user does not exist in the Advanced Cash system.
VeryBigAmountException The maximum payment amount limit is exceeded.
WalletCurrencyIncorrectException The currency entered does not match the wallet’s
currency.
WalletDoesNotExist Such wallet does not exist.
WrongParametersException Incorrect request parameters
WrongEmailException Incorrect email address format
IpInBlackListException This IP address is blacklisted, and the user can not
carry out any operations from this IP address.
CardDoesNotExistException Such card does not exist.
CardIsNotActiveException The card with this number is not active.
CardNumberIsNotValidException Incorrect card number format
37
AdvCash Payment System
Merchant API. Version 1.6
Authentication
All requests sent to the API must contain the information that will allow the server to
verify the authenticity of the user sending a request. This request will contain the
Account Email and other information that will help the server identify the user
sending a request. All requests from the server to the API must contain the following
authentication details:
● API Name;
● Authentication Token. This parameter consists of a hashed text formed by combining
the security word and the date UTC.
● Account Email.
38
AdvCash Payment System
Merchant API. Version 1.6
For example, API Password: “P@ssw0rd”, date UTC: “2007.02.25 14:55” (24h format)
Text based on the parameters’ combination: “P@ssw0rd:20070225:14”
Hash SHA256 for this text:
CA5EE568D588145E5302B68DCF57B84E9E58D86EDCE287A2C5DC45435C364BAB
39
AdvCash Payment System
Merchant API. Version 1.6
Change history
Version Changes
1.0 -
1.1 Removed getWireTransferRequiredData method.
1.2 Removed «destCurrency», «expirlyMonth», «expirlyYear», «savePaymentTemplate»
parameters from sendMoneyToAdvcashCard and vakidateAdvancedCardTransfer methods
Renamed «destCurrency» parameter to «transferCurrency»
1.3 Added method «validateAccount»
1.4 Added methods «validationSendMoneyToEcurrency», «sendMoneyToEcurrency»
1.5 Renamed «SystemAccountName» parameter to «accountEmail»
1.6 Removed methods «validateTransfer», «validateAdvcashCardTransfer»,
«validateBankCardTransfer», «validateWithdrawalThroughExternalPaymentSystem»,
«validateCurrencyExchange», «validateEmailTransfer», «makeTransfer»,
«transferAdvcashCard», «transferBankCard», «withdrawalThroughExternalPaymentSystem»,
«makeCurrencyExchange», «emailTransfer»
Added methods «validationSendMoney», «validationSendMoneyToAdvcashCard»,
«validationSendMoneyToBankCard», «validationSendMoneyToEcurrency»,
«validationCurrencyExchange», «validationSendMoneyToEmail», «sendMoney»,
«sendMoneyToAdvcashCard», «sendMoneyToBankCard», «sendMoneyToEcurrency»,
«currencyExchange», «sendMoneyToEmail», «register»
40