# Gateway

Abazi Gateway, the payments gateway. One agent request becomes one policy decision, one reservation, one signed payment on the right rail and one receipt.

Abazi Gateway is the payments gateway at the center of Abazi: the world's first unified agentic payments gateway. Cards, stablecoins and on-chain proof run under one mandate, one policy engine and one API.

<ShortProductTruth>**Agents decide. Abazi pays.** The agent asks once, and Abazi Gateway does the pricing, the policy decision, the reservation, the signing, the settlement and the receipt.</ShortProductTruth>

## The problem it removes [#the-problem-it-removes]

An agent that can pay on its own usually needs a wallet key or a card number, and then it can spend whatever that credential allows. Abazi Gateway removes the credential from the agent. The agent holds only an Abazi credential and calls one tool; none of its tools signs, moves funds or changes rules.

## Who uses it [#who-uses-it]

| Who | How |
| --- | --- |
| Agents | Call `request_purchase` over MCP, or create a payment intent over REST, with an Abazi credential. |
| Agent developers | Handle the result: a receipt, a pending approval, or a denial with a reason code and a next action. |
| Owners | See every intent in the Console with its decision trace, rail, network and receipt. |

## How it works [#how-it-works]

1. **Intent.** The agent names a service from the Catalog, or a URL that answers with a 402 response, plus an idempotency key. Repeating the same key returns the same intent; a different body under the same key is refused.
2. **Quote.** Abazi prices the purchase from the Catalog or from the merchant's live 402 response, never from a number the agent supplies.
3. **Decision.** Abazi Shield screens the text and the merchant, and the policy engine returns ALLOW, REQUIRE APPROVAL or DENY with a reason code. See [Mandates and policy](/docs/concepts/mandates-and-policy).
4. **Reservation.** On ALLOW, the amount is reserved at organization, team and agent level in one transaction.
5. **Signing.** A durable workflow hands the payment to Abazi's signer, which rechecks the pause switch, the mandate, the reservation and the purchase fingerprint before it signs.
6. **Settlement.** The rail pays the merchant on chain or through the card issuer, and Abazi waits for confirmation. If the outcome is unknown, the money stays reserved and the payment goes to reconciliation instead of being retried blindly.
7. **Receipt.** On confirmation the reservation commits, the ledger posts, and a signed, hash-chained receipt is issued and anchored on Solana.

<PaymentLifecycle />

## Rails it pays on [#rails-it-pays-on]

The same intent pays over stablecoins on x402, direct USDT transfers through Tether WDK, or a per-agent virtual card:

<RailMatrix />

Abazi picks the first network in its order that the mandate allows and that has funds; if none has, the purchase is denied with <ReasonCode code="NO_FUNDED_CHAIN" />. See [Supported rails](/docs/platform/supported-rails) and [Rails and networks](/docs/concepts/rails-and-networks).

## Screens [#screens]

<Screenshot id="console-payments" />

## Boundaries [#boundaries]

- Abazi Gateway never pays a price or an address that differs from the Catalog listing: a mismatch is denied at step 2.
- A purchase that needs approval does not reserve or sign anything until a person approves.
- An agent credential can request a purchase; it cannot sign, move funds or change a rule.

## API [#api]

The Payment intents operations in the API reference, each with its parameters, responses and code samples:

<ApiOperationList ids={['listPaymentIntents', 'createPaymentIntent', 'executePaymentIntent', 'getPaymentIntent', 'getPaymentIntentTimeline', 'getSpending', 'createSandboxPurchase', 'reportDelivery']} />

## Next steps [#next-steps]

<Cards>
  <Card title="An agent's first purchase" href="/docs/guides/first-purchase-mcp" description="Follow one MCP call from request to receipt." />
  <Card title="Payment lifecycle" href="/docs/architecture/payment-lifecycle" description="Every state a payment can be in, and what moves it." />
  <Card title="Connect an agent" href="/docs/agents" description="Claude Code, Claude Desktop, Cursor, any MCP client, Python or plain HTTP." />
</Cards>

