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

ParameterTypeRequiredDescription

account_id

string

Yes

Unique identifier of the virtual account

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)

FieldTypeDescription

account_id

string

Unique identifier of the account

account_name

string

Name of the virtual account holder

status

string

Current status of the account (e.g., active, inactive, suspended)

created_at

string

Timestamp of when the account was created

updated_at

string

Timestamp of the last status update

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