Accounts
Endpoint: BASE_URL/baas/customer-accounts
In Galileo, you can find these types of accounts:
Primary accounts: a primary account is the first account you create when onboarding a new customer.
Secondary accounts: secondary accounts represent additional products that a customer wishes to acquire. You need to pass the primary account number to enable secondary account creation.
ACH accounts: an ACH account is a record in the Galileo system that corresponds to a customer's external bank account.
In this endpoint, you can only get the primary and secondary accounts.
@Get('customer-accounts')
@UseGuards(CustomerGuard)
public async getCustomerAccounts(
@GetIntegration(IntegrationServices.GALILEO) integration: Integration,
@Query() queryParams: GetAccountsDto,
) {
return this.galileoService.getCustomerAccounts(integration, queryParams);
}
This endpoint can receive a category
parameter that refers to the type of account you want to filter by.
You can use the following values:
primary
secondary
Example of how to pass parameter: BASE_URL/baas/customer-accounts?category=primary
Linker example response:
{
"statusCode": 200,
"data": {
"accounts": [
{
"id": "999900843213",
"name": "Primary - Savings",
"status": "active",
"availableBalance": "52.07",
"balance": "52.07",
"pendingBalance": "0",
"accountNumber": "0000000000",
"routingNumber": "0000000000",
"category": "Primary",
"type": "Savings",
"currencyCode": "USD"
},
{
"id": "999900843221",
"name": "Secondary - Savings",
"status": "active",
"availableBalance": "100",
"balance": "100",
"pendingBalance": "0",
"accountNumber": "0000000000",
"routingNumber": "0000000000",
"category": "Secondary",
"type": "Savings",
"currencyCode": "USD"
}
]
}
}
If you want to get only one account for your id, you can use the
BASE_URL/baas/customer-accounts/:id
endpoint.
Last updated
Was this helpful?