Fetches the account ledger for the specified time period. This report includes all the transactions (both incoming and outgoing transactions) that affect the merchant's Trustly account balance. Only settled transactions are included.
Request
{
"method": "AccountLedger",
"params": {
"Signature": "O4TYCzVPzz...IiD6T1Deg35eQ==",
"UUID": "9e4345db-6093-bb35-07d3-e335f1e28793",
"Data": {
"Username": "*******",
"Password": "*******",
"FromDate": "2014-01-01",
"ToDate": "2014-01-31",
"Currency": null
}
},
"version": 1.1
}
The result returned is an array of JSON objects.
Note: The key value pairs can be returned in any order.
Response
{
"version": "1.1",
"result": {
"signature": "lCteM8iCg++7uyF...TYoY/mc7eUQ6FWNPg==",
"method": "AccountLedger",
"data": [{
"userid": "3839426635",
"datestamp": "2014-01-30 13:28:45.652299+01",
"orderid": "3209647863",
"accountname": "SUSPENSE_ACCOUNT_CLIENT_FUNDS_SWEDEN_ESSE",
"messageid": "133921",
"transactiontype": "User deposit of client funds to CLIENT_FUNDS_SWEDEN_ESSE",
"currency": "EUR",
"amount": "5.00000000000000000000",
"gluepayid": "3209647863"
}, {
"accountname": "TRANSACTION_FEE_BANK_DEPOSIT",
"orderid": "3209647863",
"userid": "3839426635",
"datestamp": "2014-01-30 13:28:45.652299+01",
"messageid": "133921",
"transactiontype": "User deposit of client funds to CLIENT_FUNDS_SWEDEN_ESSE",
"currency": "SEK",
"amount": "-3.01",
"gluepayid": "3209647863"
}, ...],
"uuid": "9e4345db-6093-bb35-07d3-e335f1e28793"
}
}