Get details of a Transaction v2
Find information about a particular transaction
Using your transaction_id, you can fetch detailed information of a transaction.
URI #
GET
https://api.tryduplo.com/v1/wallets/transactions/external/:transaction_id Parameters
Header
Authorization
string
set value to Bearer SECRET_KEY
Query Param
business_id
string required
Merchant business ID
Path Param
transaction_id
string required
Your external transaction_id generated by you.
Sample request
curl --location --request GET 'https://api.tryduplo.com/v1/wallets/transactions/external/:transaction_id?business_id={{business_id}} \
--header 'Authorization: Bearer SECRET_KEY'var axios = require('axios');
var config = {
method: 'get',
url: 'https://api.tryduplo.com/v1/wallets/transactions/:transaction_ref?business_id={{business_id}},
headers: {
'Authorization': 'Bearer SECRET_KEY'
}
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://api.tryduplo.com/v1/wallets/transactions/external/:transaction_id ?business_id={{business_id}}',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => array(
'Authorization: Bearer SECRET_KEY'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;Duplo Response
Last updated
Was this helpful?