Transaction History

Fetch Virtual Account Transaction History

Endpoint

GET {{baseUrl}}/business/virtual-account/history/{{accountNumber}}

Description

This endpoint allows you to fetch the transaction history of a virtual account.

Request

Headers

  • Content-Type: application/json

  • Authorization: Bearer {your_api_token}

Path Parameters

Parameter
Type
Required
Description

user_id

string

Yes

Unique identifier of the user

Example Request

GET {{baseUrl}}/business/virtual-account/history/{{accountNumber}}
Authorization: Bearer your_api_token
Content-Type: application/json

<?php

$user_id = "123456";
$api_token = "your_api_token";
$base_url = "{{baseUrl}}";
$url = "$base_url/business/virtual-account/history/{{accountNumber}}

$ch = curl_init();

curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
    "Authorization: Bearer $api_token",
    "Content-Type: application/json"
));

$response = curl_exec($ch);

if (curl_errno($ch)) {
    echo 'Error:' . curl_error($ch);
} else {
    echo $response;
}

curl_close($ch);
?>

Last updated