Skip to main content
Version: main

Account API overview

The Account API provides read access to customer account records (customer_account) used by Customer Service Management.

Basic usage

Access it through the Now() namespace:

// List accounts
accounts, err := client.Now().Account().Get(context.Background(), nil)
if err != nil {
log.Fatal(err)
}

// Get a single account by its account ID
account, err := client.Now().Account().ByID("{accountID}").Get(context.Background(), nil)
if err != nil {
log.Fatal(err)
}

Available operations

  • List accountsAccount().Get(ctx, config) returns an account collection.
  • Get accountAccount().ByID(accountID).Get(ctx, config) returns a single account.
Was this page helpful?