Read Customer State
Intent
Reads the customer state without changing it.
When to call it
Call this after your application has received or stored the identifier for the customer state.
Access boundary
Authorize the request with a token that carries customers:read or customers:write.
Successful result
A successful request returns 200. The response schema below defines the body your integration receives.
Operational notes
Get a customer state by ID.
The customer state includes information about the customer’s active subscriptions and benefits.
It’s the ideal endpoint to use when you need to get a full overview of a customer’s status.
Scopes: customers:read customers:write
Authorizations
You can generate an Organization Access Token from your organization's settings.
Path Parameters
The customer ID.
Response
Successful Response
- CustomerStateIndividual
- CustomerStateTeam
A customer along with additional state information:
- Active subscriptions
- Granted benefits
- Active meters
The ID of the customer.
"992fae2a-2a17-4b7a-8d9e-e287cf90131b"
The time Ruba created this record.
The time this record last changed.
The email address of the customer. This must be unique within the organization.
"customer@example.com"
Whether the customer email address is verified. The address is automatically verified when the customer accesses the customer portal using their email address.
true
The type of customer.
"individual""individual"
The name of the customer.
"John Doe"
The name that should appear on the customer's invoices. Falls back to the customer name when not explicitly set.
"John Doe"
The ID of the organization owning the customer.
"1dbfc517-0bbf-4301-9ba8-555ca42b9737"
Timestamp for when the customer was soft deleted.
"https://example.com/avatar.png"
The customer's active subscriptions.
The customer's active benefit grants.
The customer's active meters.
The ID of the customer in your system. This must be unique within the organization. Once set, it can't be updated.
"usr_1337"
The ID of the customer's default payment method, if any. Use the payment methods endpoint to retrieve its details.