Skip to main content
An agent mandate (amd_*) is a budget a card owner approved for one card: a total amount, a per-purchase limit and an expiry. Agents with access to the card create purchases under it. Each purchase claims a tokenized card issued against the agent mandate, not the saved card’s number, so the agent stays out of PCI scope. Browser tokens are the default; agent tokens are a backup for checkouts where the proxy can’t swap in the card. See choose a method. It isn’t a payer’s mandate (mdt_*).
Agent tokens are in early access and subject to change. To request Agent tokens access, contact hi@natural.com.

Example

GET /agentic-payments/agent-mandates/{agentMandateId}
The object is everything inside data. The field names below are relative to it: attributes.provider is data.attributes.provider in the response.

Fields

string
required
Agent mandate ID (amd_*).
string
required
Resource type. Always agentMandate.
object
required
The agent mandate’s details.
object
required
Resources the agent mandate links to.

Statuses

Authentication

Agent tokens are for agents: call them with an Agent Key™, or a partner app’s OAuth token, and the X-Instance-ID header. They work with external cards. Support for Natural-issued cards is coming soon.

Permissions

Agent tokens need only savedCards.use. When the agent acts for a customer, the customer grants it by approving the connection, where it appears as Use saved cards. The card owner reads agent mandates with payments.read, wallets.read or savedCards.use. The list shows agents only active, unexpired agent mandates; getting one by ID returns it in any status. Without savedCards.use, the list comes back empty instead of returning an error, and creating a purchase returns 403. If an agent sees no agent mandates, check this scope first.

Get an agent mandate approved

The card owner approves an agent mandate while approving a browser token session you opened with requestAgentToken: true. Once the session’s status is approved, agentToken.agentMandateId names the agent mandate to use. If it’s still null, setting up the agent mandate failed, which is expected for most cards. The approval still stands: claim the session and try the proxy. If the checkout can’t take the stand-in card, tell the user this checkout isn’t supported with this card. An existing usable agent mandate doesn’t need another approval.

Find the requested card’s agent mandate

When the user names a card by its last four digits:
  1. Call GET /external-cards and match attributes.lastFour and, when supplied, attributes.brand. Follow pagination if needed. Use the matching active card’s id (eac_*). If more than one card matches, ask the user which card to use.
  2. Read the card’s attributes.agentTokens. If it’s null, agent tokens aren’t available on this card for you. Either you can’t use the card: check savedCards.use and the customer connection, which a browser token needs too. Or agent payments aren’t available in this environment: pay through the proxy. Require agentTokens.status enabled. notSetUp means the owner hasn’t set the card up yet: they do that when approving a session with requestAgentToken: true. If it’s suspended or still enrolling, ask the owner to resolve that before purchasing.
  3. Call GET /agentic-payments/agent-mandates with cardId set to the same eac_* ID. Choose a returned agent mandate whose attributes.provider matches the card’s agentTokens.provider, with status active, an expiry in the future, and attributes.available and attributes.perPurchaseLimit that cover the total, including tax and shipping. Use its id (amd_*) as agentMandateId when creating the purchase.
For a connected customer, pass the same customerPartyId on the saved-card lookup, agent mandate list and purchase request. Without cardId, the agent mandate list spans cards. Each agent mandate links its card in relationships.card, not by the card’s last four digits. Filter by the card you found; don’t guess from list order, descriptions or ID timestamps. If the card has no usable agent mandate, check the agent’s savedCards.use scope and customer connection before asking the owner to set one up. Don’t switch to another card without the user’s authorization.

Events

This resource sends no webhook events.

Errors

See the error codes these endpoints return.

Sandbox simulations

None.