Skip to main content
GET
/
v1
/
virtual-account
/
transaction
/
{transactionId}
Get Virtual Account Transaction
const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};

fetch('https://sandboxapi.me-cash.com/v1/virtual-account/transaction/{transactionId}', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "status": "success",
  "message": "Transaction fetched successfully",
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "remark": "<string>",
    "reason": "<string>",
    "referenceNumber": "<string>",
    "type": "<string>",
    "state": "<string>",
    "quote": {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "source": {
        "currency": "<string>",
        "country": "<string>",
        "amount": 123
      },
      "target": {
        "currency": "<string>",
        "country": "<string>",
        "amount": 123
      },
      "rate": 123,
      "fee": {
        "amount": 123
      }
    },
    "recipient": {
      "name": "<string>",
      "firstName": "<string>",
      "lastName": "<string>",
      "relationship": "<string>",
      "type": "<string>",
      "account": {
        "sortCode": "<string>",
        "accountNumber": "<string>",
        "branchCode": "<string>",
        "mobileProvider": "<string>"
      },
      "paymentChannel": "<string>",
      "currency": "<string>",
      "country": "<string>"
    },
    "created": "2023-11-07T05:31:56Z",
    "processed": "2023-11-07T05:31:56Z"
  }
}

Error responses

These are the standard failures for GET /v1/virtual-account/{virtualAccountId}.
StatusMessageWhat it meansHow to fix
401API key missing or incorrectAuthentication header is missing, invalid, or expired.Send the right x-api-key for your workspace/environment.
404Virtual account ID not foundThe ID does not exist or is outside your workspace.Double-check you are using an ID returned by the creation endpoints.
500Service temporarily unavailableBackend system/dataset failure prevented the lookup.Retry with backoff and contact support if it persists.

Authorizations

x-api-key
string
header
required

Path Parameters

transactionId
string<uuid>
required

The unique identifier of the transaction (e.g. 557d936e-e904-4d0d-8d61-f6f1a6abbc03)

Response

Transaction details retrieved successfully.

status
string
Example:

"success"

message
string
Example:

"Transaction fetched successfully"

data
object