Create a spending pool
Create a spending pool on a customer. Agents assigned to it (with spendingPoolId on POST /agents or PATCH /agents/{agentId}) are held to its limits and allowed payment types together, in addition to each agent’s own policy. Available where the platform enables spending pools.
Every agent payment checks the pool: sends (including Lightning), bank payouts and card authorizations. A payment the pool refuses is rejected with AGENT_POLICY_DENIED and details.policyDenialReason POOL_LIMIT_EXCEEDED or POOL_PAYMENT_TYPE_NOT_ALLOWED; a card authorization is declined. Payments in flight hold their amount against the pool until they complete or fail, so concurrent payments cannot together exceed it. RECURRING limits reset on UTC calendar boundaries.
Send an Idempotency-Key header to make retries safe: a request carrying a key already used returns the pool the first request created, with a 200 instead of a 201. The request is compared with the pool as it is now, so reusing a key with a different name, currency, limit type, period, limit amount, per-transaction limit, approval threshold, daily limit, monthly limit, allowed payment types or requiresAdminApproval, after the pool was changed, or for a pool that was archived is rejected with 409. Without a key a retry cannot be recognised, so each request creates its own pool. Keys are scoped to the customer, so the same key on another customer creates a separate pool.
Authorizations
Headers
Body
Request body for POST /spending-pools. period is required with limitType: RECURRING and rejected with TOTAL.
Response
The Idempotency-Key was already used for this request: the pool the first request created
A spending limit shared by the agents assigned to it, on their customer's balance. A pool holds no money and no money moves between pools: it only limits what its agents may spend, in addition to each agent's own policy. Limits of different pools may add up to more than the balance. Each agent belongs to at most one pool.
A payment by one of the pool's agents above this amount waits for approval, even when the agent's own policy would execute it at once. In the pool's currency. Absent means the agents' own policies alone decide. Card authorizations are never held for approval.
x >= 025000