> ## Documentation Index
> Fetch the complete documentation index at: https://docs.meshrouter.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Payments API

> Quote, create, confirm, retrieve, and cancel USDC payment intents.

| Method | Path                               | Purpose                         |
| ------ | ---------------------------------- | ------------------------------- |
| `POST` | `/v1/payments/quote`               | Quote Solana or Base USDC       |
| `POST` | `/v1/payments/x402`                | Create pay-per-call challenge   |
| `POST` | `/v1/payments/deposit-intents`     | Create credit-balance intent    |
| `POST` | `/v1/payments/confirm`             | Confirm on-chain payment        |
| `GET`  | `/v1/payments/intents/{id}`        | Retrieve payment intent state   |
| `POST` | `/v1/payments/intents/{id}/cancel` | Cancel a pending payment intent |

Payment intent states are `quoted`, `pending`, `confirmed`, `cancelled`, and `expired`.
