Concepts

Installments and subscriptions

How a plan is approved once for its full terms, paid by scheduled pulls that a Solana program caps per period, and cancelled in one action.

View as .mdUpdated
A plan is a merchant's published offer: a number of payments, an amount per payment and a period. A person approves the full terms once with a passkey, and Abazi pulls each payment on schedule, capped twice: by the budget reservation and by a subscription program on Solana.

Who needs it

Owners, who want recurring purchases approved once with every term visible, and stopped in one action. Merchants, who sell a service in installments or by subscription. Agents, which start a plan with one call.

What a plan is

A verified merchant publishes a plan offer with a count, an amount per payment, a period, the network and the payout address. Plans run on Solana in USDC. An installment plan splits one total into equal parts; a subscription repeats a fixed amount for a fixed number of periods. Both use the same mechanism.

The example plan is 1.20 USDC = 4 x 0.30.

How a plan runs

Request. The agent calls request_installment_purchase with the offer. Abazi checks the total against the plan hard cap, 1.50 USDC in the example mandate. Plans have their own cap because a total is larger than a single purchase.
Always a person. The policy always returns REQUIRE APPROVAL for a plan. The approver sees every payment, the schedule, the merchant and its tier, and that cancelling stops the remaining payments.
Sign the terms. The approver signs a closed mandate over the plan terms with a passkey. The total is reserved at organization, team and agent level.
Fund a plan account. The owner's USDC funds a new account for this plan only, owned by the owner. Through the Solana subscription program, Abazi's signer becomes its delegate for an amount per period.
Pull on schedule. A durable workflow pulls once per period: a transfer to the merchant, a confirmation, one share of the reservation committed, an installment receipt and an event.
Complete. After the last pull, the plan is completed.

A period is one day by default.

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

Why a separate plan account

A Solana token account has one delegate, and a new approval replaces the old one. The owner's main USDC account already delegates to Abazi for x402 payments. So each plan gets its own owner-owned account, and two plans never share one.

Boundary

  • Capped twice. The reservation limits the plan in Abazi's database, and the subscription program limits each pull on chain. A pull above the period amount, or after the plan expires, is rejected by the program.
  • Cancel is one action. In the Console, cancel marks the plan cancelled, skips the pulls not yet made, releases the unpaid rest of the reservation, and revokes the on-chain delegation.
  • Revoking the agent cancels its plans.
  • Only verified merchants can publish plans, and only on Solana.

Example

The example plan, cancelled halfway:

MomentPlanBudget
Approved with a passkeyActiveThe full total reserved
First and second pullsTwo installment receiptsTwo shares committed
The owner cancelsCancelled; the last two pulls are skippedThe remaining two shares released

Failure cases

CaseResult
The total is above the plan hard capDENY HARD_CAP_EXCEEDED.
The approver rejects, or the approval expiresThe plan is cancelled. Nothing is reserved.
The plan is cancelled before it startsThe purchase is denied with APPROVAL_INVALIDATED.
A pull fails, for example for lack of fundsRetried once, a period later. A second failure marks the plan failed, skips the rest, releases the budget and notifies the owner.
FromCan move to
pending_approvalactive, cancelled
activecompleted, cancelled, failed
FromCan move to
scheduledpulling, skipped
pullingpaid, failed
failedpulling, skipped

How to verify

  • The Console's plans page lists each plan with the amount paid, the next pull and the delegation transaction.
  • Each pull has its own installment receipt, checked like any other. See Receipts and proof.

Next steps

On this page