Skip to main content

PayLinks

string
What the budget is for, e.g. "Retainer mensual data". Shown to the agent before accepting.
integer
required
Total ceiling in USD cents across all draws.
integer
Max size of any single draw.
integer
Max number of draws.
integer
Lifetime of the link.

Public view

Everything an agent needs to decide. No auth required.
Creates the grant, the auditable human authorization. Idempotent per (link, agent) pair.
Fires paylink.accepted to the merchant’s webhooks.

Charge against a grant

string
required
Which agent’s grant to draw from. The agent must have accepted first.
integer
required
Draw amount in USD cents.
string
What this draw pays for.
Everything for the console dashboard: budget consumed by grants, remaining and accepted agents.
spentMinor and remainingMinor are computed from the active grants, not from a per-request counter. grantsCount is the number of agents that currently hold an active grant. Which agents accepted a link and how much each has drawn. Useful to pick the agentId for a charge or to surface per-agent usage in your console.

Error catalog

The remaining budget is enforced before the wallet is touched; a rejected draw never leaves a partial charge behind.