What Are Delegations?
A delegation is a scoped spending authorization tied to an enrolled payment card. It defines the boundaries of what an agent can charge: the maximum amount over the delegation’s lifetime, how many transactions are allowed, and when the authorization expires. Think of it as a controlled allowance: you’re giving an agent permission to spend within strict limits, rather than handing over your card.The Visa Agentic Tokens rollout retired the previous separate “Visa mandate” object. Visa is now one of three networks (
stripe, braintree, visa) on the unified nvm:card-delegation scheme, with a single create endpoint and a single record shape. Visa delegations differ only in that they require a per-delegation device-binding ceremony at create time.Delegation Properties
All three networks share the same core fields:Creating a Delegation
Via the Nevermined App
After enrolling a card, create a delegation from the Nevermined App:- Stripe / Braintree
- Visa
- Navigate to your enrolled card
- Click Create Delegation
- Set the spending limit (in dollars / euros)
- Set the duration (e.g. 7 days)
- Optionally set a max-transactions cap
- Optionally link an NVM API key
- Confirm to create
Via the API
All providers use the same endpoint and DTO. The Visa branch adds two required fields (consumerPrompt, assuranceData) and requires a planId.
- Stripe Delegation
- Braintree Delegation
- Visa Delegation
delegationId and delegationToken (the signed JWT) for the new authorization.Spending Controls
All delegations enforce multiple layers of spending control:Lifetime Spending Limit
spendingLimitCents caps the cumulative amount charged over the delegation’s lifetime, not per-transaction. Once amountSpentCents >= spendingLimitCents, the delegation transitions to Exhausted.
Usage Limits
maxTransactions caps the total number of charges. Once reached, the delegation is Exhausted regardless of remaining budget.
Time-Based Expiration
AftercreatedAt + durationSecs, the delegation transitions to Expired regardless of remaining budget or usage.
Card Spending Ceiling
Each card has a cumulative spending ceiling (default $10.00). The sum ofspendingLimitCents across all active delegations on a card can’t exceed this ceiling.
Example:
If you try to create a third delegation for 2.00 of ceiling remains.
Updating a Delegation
Delegations are not updated in place. To change the limit, duration, or any other parameter, revoke the existing one and create a new one. For Visa, this requires a fresh device-binding ceremony.Cancelling a Delegation
DELEGATION_INACTIVE.
Status Lifecycle
Active delegations can be used for payments. Nevermined checks status, usage, and expiration on every verify and settle request. Each delegation tracks amountSpentCents, remainingBudgetCents, and transactionCount.
API Key Linking
You can optionally link a delegation to a specific NVM API key. This tells Nevermined “when this API key is used, charge this delegation.” This is especially useful when you have multiple active delegations and want deterministic routing. Instead of the agent guessing which one to use, the API key determines it automatically. All three networks support API key linking through the sameapiKeyId field.
See Delegation Selection for the full resolution algorithm.
Transaction History
Every settled charge is recorded as a transaction:Network Comparison
What’s Next?
If you have multiple delegations, learn how Nevermined decides which one to use for a given payment request.Delegation Selection
How Nevermined resolves which delegation to charge