State machines

Every state each Abazi object can be in and the moves allowed between them, from payment intents to webhook deliveries.

View as .mdUpdated
Each object in Abazi moves through a small, fixed state machine. A move that is not listed below is refused by the API, so these tables are also a list of what cannot happen. The tables are generated from the same state definitions the product enforces.

Payment intent

From request to confirmation. reconciling holds a payment whose outcome is unknown after signing: the money stays reserved until the network gives an answer.

FromCan move to
createddenied, awaiting_approval, reserved
awaiting_approvalreserved, denied
reservedsigning, denied
signingsubmitted, failed, reconciling
submittedconfirmed, failed, reconciling
reconcilingconfirmed, failed
confirmedrefunded

Approval

A request for a person. Expires after the approval window; a changed price or payee invalidates it.

FromCan move to
pendingapproved, rejected, expired, invalidated
approvedconsumed, invalidated

Delivery

Tracked apart from payment, because paid does not always mean delivered.

FromCan move to
not_startedprocessing
processingdelivered, failed

Mandate

A version starts as a draft and becomes active when the owner signs it. It ends when a newer version supersedes it, the owner revokes it, or it expires.

FromCan move to
draftactive
activesuperseded, revoked, expired

On-chain permission

The capped permission an owner signs on Solana. It ends when the owner removes it, when the cap is used up, or when it expires.

FromCan move to
pending_signatureactive
activerevoked, exhausted, expired

Plan

An installment plan or subscription, approved once for its full terms.

FromCan move to
pending_approvalactive, cancelled
activecompleted, cancelled, failed

Plan payment

One scheduled pull of a plan, with one retry if it fails.

FromCan move to
scheduledpulling, skipped
pullingpaid, failed
failedpulling, skipped

Virtual card

One card per agent: active, paused or closed.

FromCan move to
activepaused, closed
pausedactive, closed

Card authorization

Each authorization the card issuer asks Abazi to decide in real time.

FromCan move to
pendingapproved, declined, challenged
challengeddeclined
approvedcleared, voided
clearedreturned

Merchant tier

UNKNOWN, KNOWN, VERIFIED, and the resets that send a merchant back to UNKNOWN.

FromCan move to
UNKNOWNKNOWN, VERIFIED
KNOWNVERIFIED, UNKNOWN
VERIFIEDUNKNOWN, KNOWN

Dispute

Opened from a receipt. The merchant accepts or contests it with evidence; it ends refunded or closed.

FromCan move to
openedevidence, accepted, closed
evidenceaccepted, contested
acceptedrefunded
contestedrefunded, closed

Refund

A refund on a stablecoin or card rail, with its own receipt.

FromCan move to
requestedsubmitted
submittedsettled, failed

Webhook delivery

Retries until delivered or dead.

FromCan move to
pendingdelivered, retrying
retryingdelivered, dead, retrying

Next steps

On this page