Legal-entity-scoped keys are pinned to a single legal entity.
Minted via the dashboard under a specific entity; every request
acts on that entity.
User-scoped keys are pinned to a user and span every legal
entity that user has access to. Every request made with a
user-scoped key (except GET /legal-entity, which lists the
legal entities the user can access) must include an
x-legal-entity header naming the legal entity the request is
operating on. Requests without the header are rejected with
400. The authenticated user must have an active permission
role on the supplied legal entity, otherwise the request is
rejected with 403.
Path Parameters
cardGroupId
string
required
Response
OK
id
string
required
name
string
required
virtualAccountId
string | null
deprecated
Deprecated. Card groups are owned by the legal entity and are not associated with a virtual account. Returns the legacy association where one exists, otherwise null. Will be removed in a future version.
spendingConstraint
SpendingConstraint · object
A constraint that can be applied to a CardGroupSpendingRule
Canonical IANA timezone identifier in Area/Location form, for example America/New_York, Asia/Shanghai or Asia/Hong_Kong. Limits always reset at midnight in the timezone specified. If no timezone is specified, UTC is used. Values that are not valid IANA identifiers are rejected with a 400 -- this includes language-level enum names such as ASIA_SHANGHAI, bare UTC offsets such as +8, and abbreviations such as PST. Note that some languages return the enum constant rather than the IANA id by default (for example Java/Kotlin ZoneId.name() instead of .getId()).
Format ISO-8601. A day that equals today or the past. This is optional.If the preset is "daily", this value is ignored. If the preset is "weekly", "monthly" or "yearly", then the this value is used to compute when the limit should start limit.