Get a List of All Wallet Transactions
GetWalletTransHistory
How it works
Use GetWalletTransHistory to retrieve the list of Money-In, Money-Out, and P2P (payment between payment accounts) transactions of a given payment account.
Note: This call does NOT support special wallets such as SC (11) and LW (4).
Alternative
Consider using the following functions, which are more efficient because they accept a list of wallets (along with other filters) and can return transactions of several wallets at the same time:
XML Request
<GetWalletTransHistory xmlns="Service_mb">
<wlLogin>string</wlLogin>
<wlPass>string</wlPass>
<language>string</language>
<version>string</version>
<walletIp>string</walletIp>
<walletUa>string</walletUa>
<wallet>string</wallet>
<startDate>string</startDate>
<endDate>string</endDate>
<executionStartDate>string</executionStartDate>
<executionEndDate>string</executionEndDate>
</GetWalletTransHistory>
XML Response
<?xml version="1.0" encoding="utf-8"?>
<TRANS>
<HPAY>
<ID>string</ID>
<DATE>string</DATE>
<SEN>string</SEN>
<REC>string</REC>
<DEB>string</DEB>
<CRED>string</CRED>
<COM>string</COM>
<MSG>string</MSG>
<STATUS>string</STATUS>
<INT_STATUS>string</INT_STATUS>
<EXTRA>
<IS3DS>string</IS3DS>
<CTRY>string</CTRY>
<AUTH>string</AUTH>
</EXTRA>
<INT_MSG>string</INT_MSG>
<MLABEL>string</MLABEL>
<TYPE>string</TYPE>
<ACHIEVEMENT_DATE>string</ACHIEVEMENT_DATE>
<PRIVATE_DATA>string</PRIVATE_DATA>
<SCHEDULED_DATE>string</SCHEDULED_DATE>
<MTOKEN>string</MTOKEN>
<METHOD>string</METHOD>
<REFUND>string</REFUND>
</HPAY>
</TRANS>
JSON Request
{
"wlLogin": "string",
"wlPass": "string",
"language": "string",
"version": "string",
"walletIp": "string",
"walletUa": "string",
"wallet": "string",
"startDate": "string",
"endDate": "string",
"executionStartDate": "string",
"executionEndDate": "string"
}
JSON Response
{
"TRANS": {
"HPAY": [
{
"ID": "string",
"DATE": "string",
"SEN": "string",
"REC": "string",
"DEB": "string",
"CRED": "string",
"COM": "string",
"MSG": "string",
"STATUS": "string",
"INT_STATUS": "string",
"EXTRA": {
"IS3DS": "string",
"CTRY": "string",
"AUTH": "string"
},
"INT_MSG": "string",
"MLABEL": "string",
"TYPE": "string",
"ACHIEVEMENT_DATE": "string",
"PRIVATE_DATA": "string",
"SCHEDULED_DATE": "string",
"MTOKEN": "string",
"METHOD": "string",
"REFUND": "string"
}
]
}
}
Request Input Descriptions
Item | Description | Mandatory | Format | Example |
---|---|---|---|---|
wallet | Payment account identifier | Yes | [1:256] chars | Pizza75 |
startDate | Transactions initialized after this date (UTC seconds). | No | [0:10] int | 1373448225 |
endDate | Transactions initialized before this date (UTC seconds). | No | [0:10] int | 1373448225 |
executionStartDate | Transactions executed after this date (UTC seconds). | No | [0:10] int | 1373448225 |
executionEndDate | Transactions executed before this date (UTC seconds). | No | [0:10] int | 1373448225 |
Response Output Descriptions
Version | Item | Description | Example |
---|---|---|---|
>= 1.0 | HPAY | Transaction block | |
>= 1.0 | ID | Transaction ID | 255 |
>= 1.0 | DATE | Transaction creation date | 10/9/2011 18:09 |
>= 1.0 | SEN | Debited payment account (empty if it's a money-in) | |
>= 1.0 | REC | Credited payment account (empty if it's a money-out) | pizza |
>= 1.0 | DEB | Amount debited from the account | 0 |
>= 1.0 | CRED | Amount credited to the account | 15 |
>= 1.0 | COM | Partner commission | 2 |
>= 1.0 | MSG | Comment | Order number 245776 |
>= 1.0 | STATUS | Transaction status (deprecated, use INT_STATUS) | 3 |
>= 1.3 | EXTRA | Optional card info | |
>= 1.3 | EXTRA.IS3DS | 3DS authentication indicator | 1 |
>= 1.3 | EXTRA.CTRY | Country of card issuer | FRA |
>= 1.5 | EXTRA.AUTH | Authorization number | 455622 |
>= 1.7 | TYPE | Transaction type (0: Money-in, 1: Money-out, 2: P2P) | 1 |
>= 2.0 | METHOD | Payment method used (e.g., 0: bank card, 1: wire transfer, etc.) | 0 |
>= 2.1 | REFUND | Refund amount | 15 |
>= 2.7 | ACHIEVEMENT_DATE | Execution date | 10/9/2011 19:04 |