Skip to main content

Accounts

Create Account​

This API allows you to create a new account for a user in the system.

POST {{baseUrl}}/zoqq/api/v1/account

Description

Creates a new global account with specified currency and transfer capabilities. This API enables the creation of a new account for a user within the system. It establishes a global account for the authenticated user in the specified currency and supports multiple transfer methods — such as Local and Swift — allowing both domestic and international transactions.

Request Headers

ParameterTypeRequiredDescription
x-api-keystringYesShared X-API key provided by Zoqq
x-product-idstringYesShared ProductID By Zoqq
x-request-idstringYesIdempotency key for request tracking
x-user-idstringYesUser identification key
AuthorizationstringYesBearer token
Content-TypestringYesMust be application/json

Request Body Parameters

ParameterTypeRequiredDescription
typestringYesAccount type ("virtual_account")
countrystringYesISO country code (e.g., "US")
currencystringYesCurrency code (e.g., "USD")
labelstringNoHuman-readable account label
required_featuresarrayYesArray of required transfer capabilities
required_features[].currencystringYesCurrency for the feature
required_features[].transfer_methodstringYes"LOCAL" or "SWIFT"

Response Parameters

ParameterTypeDescription
codeintegerHTTP status code
statusstring"success" or "error"
messagestringResult description
dataarrayCreated account(s)
data[].idstringAccount UUID
data[].statusstring"INACTIVE", "ACTIVE", etc.
data[].account_numberstringAccount identifier
data[].account_typestringType of account
data[].swift_codestringSWIFT/BIC code
data[].supported_featuresarrayAvailable transfer methods

Request Example

curl --location --request POST \
--url '{{baseUrl}}/zoqq/api/v1/account' \
--header 'x-api-key: {{Shared X-API key By Zoqq}}' \
--header 'x-product-id: {{Shared ProductID By Zoqq}}' \
--header 'x-request-id: {{IdempotencyKey}}' \
--header 'x-user-id: {{UserID}}' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {{AccessToken}}' \
--data '{
"type": "virtual_account",
"country": "SG",
"currency": "SGD",
"label": "New Virtual Account",

"required_features": [
{
"currency": "SGD",
"transfer_method": "LOCAL"
}
]
}'

Response Example

{
"status": "success",
"message": "virtual_account created successfully",
"code": 200,
"data": [
{
"id": "account-id",
"status": "ACTIVE",
"account_number": "12345",
"account_holder_name": "Demo",
"label": "New Virtual Account",
"account_type": "Current",
"country_code": "SG",
"institution": {
"address": "12 Marina Boulevard, DBS Asia Central, Marina Bay Financial Centre Tower 3",
"city": "Singapore",
"name": "DBS Bank Ltd",
"zip_code": "018982"
},
"supported_features": [
{
"currency": "SGD",
"local_clearing_system": "FAST",
"transfer_method": "LOCAL",
"type": "DEPOSIT",
"routing_codes": [
{
"type": "bank_code",
"value": "7171"
},
{
"type": "branch_code",
"value": "072"
}
]
},
{
"currency": "SGD",
"local_clearing_system": "RTGS",
"transfer_method": "LOCAL",
"type": "DEPOSIT",
"routing_codes": [
{
"type": "bank_code",
"value": "7171"
},
{
"type": "branch_code",
"value": "072"
}
]
},
{
"currency": "SGD",
"local_clearing_system": "GIRO",
"transfer_method": "LOCAL",
"type": "DEPOSIT",
"routing_codes": [
{
"type": "bank_code",
"value": "7171"
},
{
"type": "branch_code",
"value": "072"
}
]
},
{
"currency": "SGD",
"local_clearing_system": null,
"transfer_method": "SWIFT",
"type": "DEPOSIT",
"routing_codes": [
{
"type": "bank_code",
"value": "7171"
},
{
"type": "branch_code",
"value": "072"
},
{
"type": "swift",
"value": "swift-code"
}
]
}
],
"required_features": [
{
"transfer_method": "LOCAL",
"currency": "SGD"
}
],
"swift_code": "swift-code",
"iban": null
}
]
}

Get Account​

This API allows you to retrieve all accounts associated with a user in the system.

GET {{baseUrl}}/zoqq/api/v1/account

Description

Returns a list of all accounts (both active and inactive) for the authenticated user, including account details, institution information, and supported transfer features.

Request Headers

ParameterTypeRequiredDescription
x-api-keystringYesShared X-API key provided by Zoqq
x-product-idstringYesShared ProductID By Zoqq
x-request-idstringYesIdempotency key (UUID recommended)
x-user-idstringYesUnique user identifier
AuthorizationstringYesBearer token
Content-TypestringYesMust be application/json

Query Parameters

ParameterTypeRequiredDescription
idstringNoFilter by specific account ID
currencystringNoFilter by currency (e.g., "USD")
statusstringNoFilter by status ("ACTIVE", "INACTIVE")

Response Parameters

ParameterTypeDescription
codeintegerHTTP status code
statusstring"success" or "error"
messagestringResult description
dataarrayList of account objects
data[].idstringAccount UUID
data[].statusstringAccount status
data[].account_numberstringBank account number
data[].account_typestringType of account
data[].institutionobjectBank institution details
data[].supported_featuresarrayAvailable transfer methods

Request Example

curl --location --request GET \
--url '{{baseUrl}}/zoqq/api/v1/account?status=ACTIVE' \
--header 'x-api-key: {{Shared X-API key By Zoqq}}' \
--header 'x-product-id: {{Shared ProductID By Zoqq}}' \
--header 'x-request-id: {{IdempotencyKey}}' \
--header 'x-user-id: {{UserID}}' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {{AccessToken}}'

Response Example

{
"code": 200,
"status": "success",
"message": "",
"data": [
{
"id": "account-id",
"status": "ACTIVE",
"account_number": "12345",
"label": "",
"account_type": "Checking",
"country_code": "US",
"institution": {
"address": "89-16 Jamaica Ave",
"city": "Woodhaven, NY",
"name": "Community Federal Savings Bank",
"zip_code": "11421"
},
"supported_features": [
{
"currency": "USD",
"local_clearing_system": "ACH",
"routing_codes": [
{
"type": "ach",
"value": "026073150"
}
],
"transfer_method": "LOCAL",
"type": "DEPOSIT"
},
{
"currency": "USD",
"local_clearing_system": "FEDWIRE",
"routing_codes": [
{
"type": "fedwire",
"value": "026073008"
}
],
"transfer_method": "LOCAL",
"type": "DEPOSIT"
},
{
"currency": "USD",
"routing_codes": [
{
"type": "swift",
"value": "swift-code"
}
],
"transfer_method": "SWIFT",
"type": "DEPOSIT"
}
]
}
]
}

Update Account​

This API allows you to update an existing account's details in the system.

PATCH {{baseUrl}}/zoqq/api/v1/account

Description

Updates an existing account's information such as label. This API enables modifications to an account's metadata while preserving its core identifiers and features.

Request Headers

ParameterTypeRequiredDescription
x-api-keystringYesShared X-API key provided by Zoqq
x-product-idstringYesShared ProductID By Zoqq
x-request-idstringYesIdempotency key for request tracking
x-user-idstringYesUser identification key
x-account-idstringYesUser Account ID
AuthorizationstringYesBearer token
Content-TypestringYesMust be application/json

Request Body Parameters

ParameterTypeRequiredDescription
typestringYesAccount type ("virtual_account")
countrystringYesISO country code (e.g., "US")
currencystringYesCurrency code (e.g., "USD")
labelstringNoHuman-readable account label
required_featuresarrayYesArray of required transfer capabilities
required_features[].currencystringYesCurrency for the feature
required_features[].transfer_methodstringYes"LOCAL" or "SWIFT"

Response Parameters

ParameterTypeDescription
codeintegerHTTP status code
statusstring"success" or "error"
messagestringResult description
dataarrayCreated account(s)
data[].idstringAccount UUID
data[].statusstring"INACTIVE", "ACTIVE", etc.
data[].account_numberstringAccount identifier
data[].account_typestringType of account
data[].swift_codestringSWIFT/BIC code
data[].supported_featuresarrayAvailable transfer methods

Request Example

curl --location --request PATCH \
--url '{{baseUrl}}/zoqq/api/v1/account' \
--header 'x-api-key: {{Shared X-API key By Zoqq}}' \
--header 'x-product-id: {{Shared ProductID By Zoqq}}' \
--header 'x-request-id: {{IdempotencyKey}}' \
--header 'x-user-id: {{UserID}}' \
--header 'x-account-id: {{AccountID}}' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {{AccessToken}}' \
--data '{

"label": "SomeChangesForUpdate"
}'

Response Example

{
"status": "success",
"message": "virtual_account updated successfully",
"code": 200,
"data": [
{
"id": "account-id",
"status": "CLOSED",
"account_number": "12345",
"account_holder_name": "AWX Test One",
"label": "SomeChangesForUpdate",
"account_type": "Current",
"country_code": "HK",
"institution": {
"address": "18th Floor, The Center, 99 Queen’s Road Central, Central",
"city": "Hong Kong SAR",
"name": "DBS Bank (Hong Kong) Limited",
"zip_code": null
},
"supported_features": [
{
"currency": "USD",
"local_clearing_system": "RTGS",
"transfer_method": "LOCAL",
"type": "DEPOSIT",
"routing_codes": [
{
"type": "bank_code",
"value": "016"
},
{
"type": "branch_code",
"value": "478"
}
]
},
{
"currency": "USD",
"local_clearing_system": null,
"transfer_method": "SWIFT",
"type": "DEPOSIT",
"routing_codes": [
{
"type": "bank_code",
"value": "016"
},
{
"type": "branch_code",
"value": "478"
},
{
"type": "swift",
"value": "swift-code"
}
]
},
{
"currency": "AUD",
"local_clearing_system": null,
"transfer_method": "SWIFT",
"type": "DEPOSIT",
"routing_codes": [
{
"type": "bank_code",
"value": "016"
},
{
"type": "branch_code",
"value": "478"
},
{
"type": "swift",
"value": "swift-code"
}
]
},
{
"currency": "SGD",
"local_clearing_system": null,
"transfer_method": "SWIFT",
"type": "DEPOSIT",
"routing_codes": [
{
"type": "bank_code",
"value": "016"
},
{
"type": "branch_code",
"value": "478"
},
{
"type": "swift",
"value": "swift-code"
}
]
}
],
"required_features": [
{
"transfer_method": "LOCAL",
"currency": "USD"
}
],
"swift_code": "swift-code",
"iban": null
}
]
}

Close Account​

This API allows you to permanently delete an account from the system.

DELETE {{baseUrl}}/zoqq/api/v1/account

Description

Permanently deletes a specified account from the system. This action is irreversible and will remove all account data including transaction history and associated features.

Request Headers

ParameterTypeRequiredDescription
x-api-keystringYesShared X-API key provided by Zoqq
x-product-idstringYesShared ProductID By Zoqq
x-request-idstringYesIdempotency key (UUID recommended)
x-user-idstringYesUnique user identifier
x-account-idstringYesUser Account ID
AuthorizationstringYesBearer token
Content-TypestringYesMust be application/json

Response Parameters

ParameterTypeDescription
codeintegerHTTP status code
statusstring"success" or "error"
messagestringResult description
dataarrayList of account objects
data[].idstringAccount UUID
data[].statusstringAccount status
data[].account_numberstringBank account number
data[].account_typestringType of account
data[].institutionobjectBank institution details
data[].supported_featuresarrayAvailable transfer methods

Request Example

curl --location --request DELETE \
--url '{{baseUrl}}/zoqq/api/v1/account' \
--header 'x-api-key: {{Shared X-API key By Zoqq}}'\
--header 'x-product-id: {{Shared ProductID By Zoqq}}' \
--header 'x-request-id: {{IdempotencyKey}}' \
--header 'x-user-id: {{UserID}}' \
--header 'x-account-id: {{AccountID}}' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {{AccessToken}}'

Response Example

{
"status": "success",
"message": "virtual_account closed successfully",
"code": 200,
"data": null
}

Get Balance​

This API allows you to retrieve the available, pending, and reserved balances for all currencies associated with an account.

GET {{baseUrl}}/zoqq/api/v1/account/balance

Description

This endpoint retrieves the current balance information for all currencies associated with the authenticated user's account. The response includes available balance, pending amounts, and reserved amounts for each currency.

Request Headers

ParameterTypeRequiredDescription
x-api-keystringYesShared X-API key provided by Zoqq
x-product-idstringYesShared ProductID By Zoqq
x-request-idstringYesIdempotency key (UUID recommended)
x-user-idstringYesUnique user identifier
AuthorizationstringYesBearer token
Content-TypestringYesMust be application/json

Response Parameters

ParameterTypeDescription
codeintegerHTTP status code
statusstring"success" or "error"
messagestringResult description
dataarrayList of balance objects by currency
data[].currencystringISO currency code (e.g., "USD", "SGD")
data[].available_balancenumberImmediately usable funds
data[].pending_amountnumberFunds in pending transactions
data[].reserved_amountnumberFunds held for reservations

Request Example

curl --location --request GET \
--url '{{baseUrl}}/zoqq/api/v1/account/balance' \
--header 'x-api-key: {{Shared X-API key By Zoqq}}' \
--header 'x-product-id: {{Shared ProductID By Zoqq}}' \
--header 'x-request-id: {{IdempotencyKey}}' \
--header 'x-user-id: {{UserID}}' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {{AccessToken}}'

Response Example

{
"code": 200,
"status": "success",
"message": "",
"data": [
{
"currency": "SGD",
"available_balance": 42.72,
"pending_amount": 0,
"reserved_amount": 12
},
{
"currency": "USD",
"available_balance": 22.72,
"pending_amount": 5,
"reserved_amount": 10
}
]

}

Get Account Transactions​

This API returns paginated transaction history with filters for date range and transaction status. Includes detailed information about each transaction including amount, currency, and status..

GET {{baseUrl}}/zoqq/api/v1/account/transactions

Description

This endpoint returns a paginated list of transactions for the user's account. Transactions can be filtered by date range, type, status, and other criteria.

Request Headers

ParameterTypeRequiredDescription
x-api-keystringYesShared X-API key provided by Zoqq
x-product-idstringYesShared ProductID By Zoqq
x-request-idstringYesIdempotency key (UUID recommended)
x-user-idstringYesUnique user identifier
x-account-idstringYesGlobal account identifier
AuthorizationstringYesBearer token
Content-TypestringYesMust be application/json

Query Parameters

ParameterTypeRequiredDescription
pageintegerNoPage number for pagination (default: 1)
sizeintegerNoNumber of items per page (default: 20)
from_datestringNoStart date filter (ISO 8601 format)
to_datestringNoEnd date filter (ISO 8601 format)
currencystringNoFilter by currency code (e.g., "USD")
statusstringNoFilter by status ("SETTLED", "PENDING", etc.)

Response Parameters

ParameterTypeDescription
codeintegerHTTP status code
statusstring"success" or "error"
messagestringResult description
dataarrayList of transaction objects
data[].idstringUnique transaction identifier
data[].amountnumberTransaction amount
data[].currencystringCurrency code
data[].typestring"CREDIT" or "DEBIT"
data[].statusstringTransaction status
data[].create_timestringISO 8601 timestamp
data[].descriptionstringTransaction description

Request Example

curl --location --request GET \
--url '{{baseUrl}}/zoqq/api/v1/account/transactions?page=1&size=10&from_date=2025-01-01&to_date=2025-04-30' \
--header 'x-api-key: {{Shared X-API key By Zoqq}}' \
--header 'x-product-id: {{Shared ProductID By Zoqq}}' \
--header 'x-request-id: {{IdempotencyKey}}' \
--header 'x-user-id: {{UserID}}' \
--header 'x-account-id: {{GlobalAccountID}}' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {{AccessToken}}'

Response Example

{
"status": "success",
"message": "virtual_accounts transactions details",
"code": 200,
"data": [
{
"amount": 1000.0,
"create_time": "2025-04-09T10:12:37+0000",
"description": "Test from Postman",
"currency": "USD",
"id": "",
"type": "CREDIT",
"status": "SETTLED"
}
]
}

Get Balance History​

This API returns paginated balance history with filters for date range. Includes detailed information about each balance change including amount, currency, and transaction type.

GET {{baseUrl}}/zoqq/api/v1/account/balance/history

Description

This endpoint returns a paginated list of balance changes for the user's account. Results can be filtered by date range and include detailed information about each transaction affecting the balance.

Request Headers

ParameterTypeRequiredDescription
x-api-keystringYesShared X-API key provided by Zoqq
x-product-idstringYesShared ProductID By Zoqq
x-request-idstringYesIdempotency key (UUID recommended)
x-user-idstringYesUnique user identifier
AuthorizationstringYesBearer token
Content-TypestringYesMust be application/json

Query Parameters

ParameterTypeRequiredDescription
pageintegerNoPage number for pagination (default: 1)
sizeintegerNoNumber of items per page (default: 20)
from_datestringNoStart date filter (ISO 8601 format)
to_datestringNoEnd date filter (ISO 8601 format)
currencystringNoFilter by currency code (e.g., "USD")
transaction_typestringNoFilter by transaction type ("DEPOSIT", "PAYOUT", etc.)

Response Parameters

ParameterTypeDescription
codeintegerHTTP status code
statusstring"success" or "error"
messagestringResult description
dataarrayList of balance history objects
data[].idstringUnique transaction identifier
data[].amountnumberTransaction amount (positive for credit, negative for debit)
data[].currencystringCurrency code
data[].balancenumberAccount balance after transaction
data[].descriptionstringTransaction description
data[].feenumberFee amount (if applicable)
data[].create_timestringISO 8601 timestamp
data[].source_typestringSource of transaction ("DEPOSIT", "PAYOUT", etc.)
data[].transaction_typestringDetailed transaction type ("CONVERSION_BUY", "HOLD", etc.)

Request Example

curl --location --request GET \
--url '{{baseUrl}}/zoqq/api/v1/account/balance/history?page=1&size=10&from_date=2025-04-01&to_date=2025-04-07' \
--header 'x-api-key: {{Shared X-API key By Zoqq}}' \
--header 'x-product-id: {{Shared ProductID By Zoqq}}' \
--header 'x-request-id: {{IdempotencyKey}}' \
--header 'x-user-id: {{UserID}}' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {{AccessToken}}'

Response Example


{
"status": "success",
"message": "balance history details",
"code": 200,
"data": [
{
"id": "",
"amount": -1.0,
"currency": "SGD",
"balance": 8919.86,
"description": "Pay SGD 1.00 to (Individual Local SG)",
"fee": 0.0,
"create_time": "2025-05-07T12:13:24+0800",
"source_type": "PAYOUT",
"transaction_type": "PAYOUT"
},
{
"id": "",
"amount": 12.86,
"currency": "SGD",
"balance": 8920.86,
"description": "Buy SGD 12.86",
"fee": 0.0,
"create_time": "2025-05-07T11:28:39+0800",
"source_type": "CONVERSION",
"transaction_type": "CONVERSION_BUY"
},
{
"id": "",
"amount": 60000.0,
"currency": "DKK",
"balance": 60000.0,
"description": "Test from Postman - GA (First DKK)",
"fee": 0.0,
"create_time": "2025-04-30T19:38:41+0800",
"source_type": "DEPOSIT",
"transaction_type": "DEPOSIT"
}
]
}