Skip to main content

Get Account by Id

This API gets account details by id.

Request

GET - /api/v1/vaults/accounts/:id

Response

Success response code - 200 (ok)

KeyValueDescription
idstringUnique identifier for the account
vault_idstringUnique identifier for the Vault
currency_codestringCurrency code of the account
balancenumberAccount balance
statusstringAccount status
account_detailsarray of objectsDeposit accounts
account_details[i].idstringUnique identifier for the deposit account
account_details[i].account_idstringUnique identifier for the account
account_details[i].account_holder_namestringAccount holder name
account_details[i].parent_idstringParent identifier
account_details[i].partner_codestringPartner code
account_details[i].partner_idstringPartner identifier
account_details[i].typestringAccount type
account_details[i].currency_codestringCurrency code of the deposit account
account_details[i].account_numberstringAccount number
account_details[i].bank_name_idstringBank name identifier
account_details[i].bank_display_namestringBank display name
account_details[i].routing_code_type_1stringRouting code type 1
account_details[i].routing_code_value_1stringRouting code value 1
account_details[i].routing_code_type_2stringRouting code type 2
account_details[i].routing_code_value_2stringRouting code value 2
account_details[i].bank_addressstringBank address
account_details[i].bank_account_typestringBank account type
account_details[i].statusstringStatus of the deposit account
account_details[i].beneficiary_addressstringBeneficiary address
account_details[i].created_atstringDate and time of creation
account_details[i].updated_atstringDate and time of update
account_typestringDeposit account type

Example Response Body:

{
"data": {
"id": "roma_bkRNNVUnJRmJZfmQQgdjmJ_05_19",
"vault_id": "roma_bpi9njW56ZiNvdXUNCxDqA_05_19",
"currency_code": "USD",
"balance": 0.00,
"status": "active",
"account_type":"FIAT",
"account_details": [
{
"id": "roma_MCHRNNVUnJRmJZfmQQgdjmJ_05_19",
"account_id": "roma_bkRNNVUnJRmJZfmQQgdjmJ_05_19",
"account_holder_name": "PRINCE KUMAR",
"parent_id": "roma_9GtnphjB6rbcvwb7eP5xid_05_27",
"partner_code": "TEST",
"partner_id": "",
"type": "FIAT",
"currency_code": "USD",
"account_number": "8989821232",
"bank_name_id": "",
"bank_display_name": "BANK OF NEW YORK(TEST)",
"routing_code_type_1": "ABA (Wire)",
"routing_code_value_1": "66874312",
"routing_code_type_2": "",
"routing_code_value_2": "",
"bank_address": "TMES SQUARE",
"bank_account_type": "INTERNATIONAL",
"status": "ACTIVE",
"beneficiary_address": "OHIO, USA",
"created_at": "2023-06-01T05:43:43.574598884Z",
"updated_at": "2023-06-01T05:43:43.574598884Z"
},
{
"id": "roma_MCHRNNVUnJRmJZfmQQgdjmJ_05_19",
"account_id": "roma_bkRNNVUnJRmJZfmQQgdjmJ_05_19",
"account_holder_name": "PRINCE KUMAR",
"parent_id": "roma_9GtnphjB6rbcvwb7eP5xid_05_27",
"partner_code": "TEST",
"partner_id": "",
"type": "FIAT",
"currency_code": "USD",
"account_number": "8989821232",
"bank_name_id": "",
"bank_display_name": "BANK OF NEW YORK(TEST)",
"routing_code_type_1": "ABA (Wire)",
"routing_code_value_1": "66874312",
"routing_code_type_2": "",
"routing_code_value_2": "",
"bank_address": "TMES SQUARE",
"bank_account_type": "INTERNATIONAL",
"status": "ACTIVE",
"beneficiary_address": "OHIO, USA",
"created_at": "2023-06-01T05:43:43.574598884Z",
"updated_at": "2023-06-01T05:43:43.574598884Z"
}
]
}
}