Skip to main content

Understanding Your Account

Before you build, it helps to understand who you are in the CAPAY model and what clientId means for you. This one concept determines how almost every endpoint behaves.

Where you sit

CAPAY has two kinds of API user: Program Manager (PM) and Client. This portal is for Clients. As a Client, you act for yourself and, optionally, for underlying customers you manage.

Terminology: Client vs Customer

In the CA system, these two terms have distinct meanings:

  • Client — you, the direct API integrator. You have a login to the Client Portal and hold your own institutional account.
  • Customer — the end customers you serve. In the Client Portal they appear under the "Customers" section. Each Customer is a separate entity in the CA system.

Both Clients and Customers are assigned a unique clientId by the system. Despite the name, a Customer's clientId works exactly the same way — it uniquely identifies that Customer across all API operations. There is no separate customerId.

What clientId means in API calls

clientId is an optional parameter on many endpoints. For a Client, it selects whose context the operation runs in:

clientIdActing entity
OmittedYourself (your own institutional account)
ProvidedThe Customer identified by that clientId

So the same call — create a beneficiary, make a payment, query balances — applies to you when clientId is absent, and to a specific Customer when it is present.

info

This is the mirror image of the Program Manager model, where clientId is required to name a managed client. As a Client you default to yourself, and only supply clientId when acting for an underlying Customer.

Underlying customers

If your business serves end customers, you can represent each of them as a Customer in the CA system. Create and manage them through the /clients endpoints:

ActionEndpoint
Create a business customerPOST /clients/business
Create a personal customerPOST /clients/personal
List customersGET /clients/businesses · GET /clients/personal
Get / update / delete.../business/{id} · .../personal/{id}

Once created, pass the customer's clientId to operate on their behalf—for example to create beneficiaries they own, or to make payments funded from their Sub-Account.

Customer status

StatusMeaning
PENDING APPROVALCreated, awaiting activation
ACTIVEReady to transact
INACTIVENot currently usable
SUSPENDEDBlocked from transacting

Next steps