Guides

Sell on a plan

Publish an installment or subscription plan as a verified merchant, have an agent request it, and see the owner approve all the terms once while each pull stays capped on chain.

View as .mdUpdated
Approve once. Capped on every pull. A plan is a fixed number of equal payments. The owner approves all the terms at once, and an on-chain delegation lets Abazi pull no more than one payment per period.

What you end up with

A plan on the merchant's page, for example a plan of 1.20 USDC = 4 x 0.30. An agent asks for it, the owner approves the whole plan with a passkey, and payments arrive on schedule, each with its own receipt. The owner can cancel in one action and gets back whatever has not been pulled.

Installments and subscriptions

Both are a fixed count of equal payments, one per period. "Subscription" and "installment" are labels on the merchant's offer; there is no open-ended plan. Plans run on Solana in USDC.

Steps

Publish the plan

A verified merchant publishes a plan in the merchant console: the amount per payment, the number of payments, the period, the payout address and the cancellation terms. Only verified merchants, paid at their verified payout address, can publish plans.

The agent requests it

The agent calls request_installment_purchase with the plan id, a task id and an idempotency key. Abazi creates the plan with its full terms (count, amount, period, total, network, payee, asset and cancellation text) and one purchase for the total.

The policy always asks a person

The total is checked against the plan hard cap (1.50 USDC in the example mandate); above it, the plan is denied with HARD_CAP_EXCEEDED. Below it, a plan always needs approval, whatever the auto-approve limit says.

The owner approves the terms once

The owner approves with a passkey; the signed challenge is bound to the hash of the plan's terms. Abazi re-checks the policy and holds the total in the budget. A second step sets up the on-chain side: the plan total moves into a dedicated plan account, and a recurring delegation lets Abazi's signer pull at most the per-period amount, once per period, until the plan ends.

List of installment plans and subscriptions
Plans: installments and subscriptions approved once, pulled on schedule.Captured 2026-11-16

Payments are pulled on schedule

A durable schedule pulls each payment when it is due. Each pull is booked like a payment: budget, ledger, settlement and an installment receipt. An extra pull beyond what the delegation allows is rejected on chain.

Cancelling

Cancelling is one action in the Console. Abazi skips the remaining payments, releases the held budget and revokes the on-chain delegation; what is left in the plan account goes back to the owner. Abazi's signer cannot revoke the delegation on its own behalf, and it cannot pull after it is revoked.

What the merchant sees

The merchant console lists each plan with its active and total subscribers. A subscriber appears as an agent of the paying organization; agent ids, approval ids and payment ids are not shown.

Failure cases

SituationResult
The plan total is above the plan hard capDenied with HARD_CAP_EXCEEDED.
Nobody approves in timeDenied with APPROVAL_EXPIRED.
A pull failsIt is tried once more one period later. A second failure marks the plan failed, skips the rest, releases the budget and tells the owner.
The owner cancelsRemaining payments are skipped; unpulled funds return to the owner.
FromCan move to
pending_approvalactive, cancelled
activecompleted, cancelled, failed

Next steps

On this page