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:

  1. primary

  2. secondary

Example of how to pass parameter: BASE_URL/baas/customer-accounts?category=primary

If no parameter is sent, by default, it returns both categories.

Linker example response:

Last updated

Was this helpful?