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}
data. The field names below are relative to it: attributes.provider is data.attributes.provider in the response.
Fields
Statuses
Authentication
Agent tokens are for agents: call them with an Agent Key™, or a partner app’s OAuth token, and theX-Instance-ID header. They work with external cards. Support for Natural-issued cards is coming soon.
Permissions
Agent tokens need onlysavedCards.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 withrequestAgentToken: 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:- Call
GET /external-cardsand matchattributes.lastFourand, when supplied,attributes.brand. Follow pagination if needed. Use the matching active card’sid(eac_*). If more than one card matches, ask the user which card to use. - Read the card’s
attributes.agentTokens. If it’snull, agent tokens aren’t available on this card for you. Either you can’t use the card: checksavedCards.useand the customer connection, which a browser token needs too. Or agent payments aren’t available in this environment: pay through the proxy. RequireagentTokens.statusenabled.notSetUpmeans the owner hasn’t set the card up yet: they do that when approving a session withrequestAgentToken: true. If it’s suspended or still enrolling, ask the owner to resolve that before purchasing. - Call
GET /agentic-payments/agent-mandateswithcardIdset to the sameeac_*ID. Choose a returned agent mandate whoseattributes.providermatches the card’sagentTokens.provider, withstatusactive, an expiry in the future, andattributes.availableandattributes.perPurchaseLimitthat cover the total, including tax and shipping. Use itsid(amd_*) asagentMandateIdwhen creating the purchase.
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.