Singapay Home Page
Logo Icon
  1. Accounts
  2. Show

Information

MethodPathFormatAuthentication
GET/api/v1.0/accounts/{account_id}jsonOAuth 2.0 with Access Token

Request Details

Headers Structure

FieldValueTypeMandatoryLengthDescriptionExample
X-PARTNER-IDapi_keyAlphanumericMandatoryAPI key obtained from the merchant dashboard.b3ed7d4b-a96c-6c08-b3c7-12c3124242d9
Acceptapplication/jsonAlphabeticMandatorySpecifies JSON as the expected response format.application/json
AuthorizationBearer {bearerToken}AlphanumericMandatoryBearer token obtained from the get access token endpoint.Bearer eyJ0eXAiOiJKV1{…}

Response Details

This section outlines the structure and format of the data returned by the API when querying for details of a virtual account. The response is provided in JSON format and contains essential information such as the HTTP status code, success status, and the actual data pertaining to the virtual account.

Response Structure

FieldTypeMandatoryLengthDescriptionExample
statusNumericMandatory3HTTP Status Code200
successBooleanMandatory1Indicates success statustrue
dataObjectConditionalSub account object
> idAlphanumericMandatorySub account ID01K946KF851RK7FX075GJHBVKF
> nameAlphanumericMandatoryFull name of the account holderrwa
> emailAlphanumericMandatoryEmail address of the accountadmin@gmail.com
> phoneAlphanumericMandatoryPhone number associated081234567890
> statusEnumMandatoryAccount status values: activeactive

Response Example

Success: Here’s an example of a successful response.

{
    "status": 200,
    "success": true,
    "data": {
        "id": "01K946KF851RK7FX075GJHBVKF",
        "name": "rwa",
        "email": "admin@gmail.com",
        "phone": "081234567890",
        "status": "active"
    }
}