Virtual account status

Check Virtual Account Status

Endpoint

GET /api/v1/virtual-accounts/{account_id}/status

Description

This endpoint allows you to check the status of a virtual account.

Request

Headers

  • Content-Type: application/json

  • Authorization: Bearer {your_api_token}

Path Parameters

Example Request

<?php

$account_id = "va_1234567890abcdef";
$api_token = "your_api_token";
$url = "{{baseUrl}}/api/v1/virtual-accounts/$account_id/status";

$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);
?>

Response

Success (200)

Example Response

{
  "account_id": "1234533",
  "account_name": "John Doe",
  "status": "active",
  "created_at": "2024-07-10T12:34:56Z",
  "updated_at": "2024-07-11T08:45:30Z"
}

Last updated