Transactions

Returns a list of transactions associated with a virtual account or all accounts that available in the merchant account. The objects are sorted in descending order by creation date, with the most recently created object appearing first.

GET
https://api.tryduplo.com/v1/wallets/transactions
Parameter
Field
Type
Description
wallet_ref
(optional)
String
Retrieve transactions that belong to the specified virtual account only
type (optional)
String
Retrieve transactions that belong to the specified virtual account only
Allowed values: 'Debit', 'Credit'
page (optional)
String
This is the page number to retrieve e.g. setting 1 retrieves the first page
curl --location --request GET 'https://api.duplo.com/wallets/transactions' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer dp_test_P2tH90snfuQB0qlPopnhdgkOpbs' \
const duplo = require('duplo')('dp_test_P2tH90snfuQB0qlPopnhdgkOpbs');
const virtualAccount = await duplo.wallets.transactions.getAll({FilteringObject});
$duplo = new \Duplo\DuploClient(
 'dp_test_P2tH90snfuQB0qlPopnhdgkOpbs'
);
$duplo->wallets->transactions->getAll();
200 OK
{
   "success": true,
   "message": "Transactions retrieved successfully",
   "data": {
       "transactions": [
           {
               "wallet_ref" :"dp_wallet_drNR8Eyio4DwE4CeXh2wXc",
               "account": {
                   "account_ref": "dp_act_2rNR8EyioMDwEcHCeXh2wXi",
                   "account_number": "1034894789",
                   "bank_name": "WEMA BANK",
                   "email": "new@duplo.com",
                   "bank_code": "023",
                   "status": "active"
               },
               "currencyCode": "NGN",
               "completed_on": "2019-07-24T14:12:28.000+0000",
               "description": "Test Reserved Account",
               "status": "PAID",
               "transaction_reference": "dp_trans_7hdgssdsss",
               "payment_reference": "dp_pm_jdshsdsds",
               "merchant_name": "Raenest",
               "type" :"credit"
               "amount": 100.00,
               "balance" :"2300.00"
           }
       ]
   }
}
Need Support?

Helpful resources while you’re building or for that tricky problem you might be having.

Go to Help Center
Did this page help you?
Yes
No