Available on pay.axiv.cc
| Interface | Purpose |
|---|---|
GET /api/v1/catalog | Read integration and asset coverage, and the payment API state copied from GET /v1/capabilities. |
/mock/v1/* | Simulate quotes, idempotent payment creation, and settlement events. |
POST /public/mcp | Search, read, and compare public integration capabilities. With your own API token, quote, create, fund, and track a payment. |
Use the Quickstart, sandbox request examples, and published OpenAPI for executable calls.
Payment API
The payment API runs at https://api.pay.axiv.cc. Payment creation is enabled. liveRoutes in GET /v1/capabilities lists the routes verified with a live transfer and is empty until the first verification. Every request except capabilities needs your own Axiv Pay API token in the Authorization: Bearer header. Every response carries environment, simulation, and mode.
| Method | Route | Purpose |
|---|---|---|
| GET | /v1/capabilities | Execution state, verified routes (liveRoutes) and quotable chains. No token needed |
| POST | /v1/quotes | Quote a route, fee estimate and minimum receive amount. allowedRoutes pins the route |
| POST | /v1/payments | Create one payment from your quote. Idempotency-Key required. 201 new, 200 replay. Read status in both |
| GET | /v1/payments/{id} | Status and receipt evidence for source funding and payout |
| GET | /v1/payments/{id}/events | Status history |
| POST | /v1/payments/{id}/funding-instructions | The one transaction the payer wallet sends now, on the source chain |
| POST | /v1/payments/{id}/funding-submissions | Register the hash of the transaction the wallet sent. 202 accepted |
Payment status model
AWAITING_DEPOSIT
DEPOSIT_OBSERVED
PAYOUT_PENDING
PAIDPayments through an external execution channel end at PAID with settlementModel: "EXTERNAL". Axiv Pay records PAID only after it reads the source and destination receipts and matches token, recipient, and amount. On an Across route it also matches the deposit and the fill as one order (orderLink). GUARANTEED and SETTLED are not issued yet, and guarantees is NOT_AVAILABLE. REVIEW_REQUIRED, FAILED, EXPIRED, REFUND_PENDING, and REFUNDED are not paid.
Funding
- Repeat
funding-instructionswhilenextActionisREQUEST_FUNDING_INSTRUCTIONS. AnAPPROVALstep moves no funds. ABRIDGE_DEPOSITstep moves the payment amount. - Send each step unchanged from the payer account. If the wallet result is unknown, do not sign again. Look up the transaction hash and register it.
funding-submissionsacceptstxHashonly. A signature answers422 SIGNATURE_STEPS_DISABLED. Registering a hash is not a deposit confirmation.
Account and API keys
Your wallet address is your account. Sign in once with the wallet to get a session, then create and revoke API keys. The Get started page runs these calls for you. Agents can call them directly.
| Request | Auth | Result |
|---|---|---|
POST /v1/account/challenges { address, chainId } | None | 201 { nonce, message, expiresAt }. A sign-in message (EIP-4361) valid for 5 minutes. |
POST /v1/account/sessions { nonce, signature } | None | 201 { sessionToken, expiresAt, account }. Sign message exactly as returned with personal_sign. Each message signs in once. Sessions last 30 minutes. |
GET /v1/account | Session | Your account, its status, and its limits. |
GET /v1/account/api-keys | Session | { keys: [{ id, name, scope, displayPrefix, last4, createdAt, lastUsedAt, revokedAt }] } |
POST /v1/account/api-keys { name?, scope? } | Session | 201 with the full key. It is returned only in this response. scope is WRITE (default) or READ. |
DELETE /v1/account/api-keys/{id} | Session | The revoked key. Requests with it are rejected from then on. |
DELETE /v1/account/sessions/current | Session | 204. Signs out. |
Send the session as Authorization: Bearer <sessionToken>. A session token works on account, payment link, and usage routes. An API key works on payment, payment link, and usage routes. A WRITE key creates quotes and payments and reads your account’s payments. A READ key only reads them. Sign-in works with standard wallets (EOA). Contract wallets such as Safe can still receive payouts.
Payment links
A payment link takes a payment without your own site or backend. You set the amount you receive, the asset, and the chain. Your customer opens the link, picks a stablecoin they hold, and signs in their own wallet. The Get started page creates links for you, and agents use create_payment_link over MCP. Payment links work while GET /v1/capabilities reports paymentLinks: true. While it is false these routes answer PAYMENT_LINKS_UNAVAILABLE.
| Request | Auth | Result |
|---|---|---|
POST /v1/payment-links { destination: { chainId, asset, amount }, title?, merchantReference?, reusable? } | Session or WRITE key | 201 with id (plink_…), url to give your customer, qrPath for its QR code, and status: ACTIVE. amount is what you receive, for example "25.00". Without destination.recipient your account’s wallet receives. |
GET /v1/payment-links | Session or key | { links: [...] }, the 50 most recent. |
GET /v1/payment-links/{id} | Session or key | The link and its recent payments. |
DELETE /v1/payment-links/{id} | Session or WRITE key | The link with status: DISABLED. It accepts no new payments. |
GET /v1/usage | Session or key | This month’s completed volume, the free allowance left, Axiv fees charged (0), and your limits. |
A link is single-use by default and closes after one PAID payment. Set reusable: true to accept more. The customer pays the link amount plus the route cost, and sees the total before signing. Link payments belong to your account: your keys and MCP tools read them, and they count toward your free allowance when completed.
Customer checkout routes
The payment page at /pay/{id} uses these routes without a key. A payment created here is opened for funding by the Idempotency-Key the customer’s browser chose when creating it.
| Request | Result |
|---|---|
GET /v1/checkout/{linkId} | Amount, recipient, status, and paymentOptions: the chains and assets the customer can pay with. |
POST /v1/checkout/{linkId}/quotes { source: { chainId, asset }, payer } | A quote. source.amountAtomic is what the customer pays. destination.amountAtomic is the link amount you receive. |
POST /v1/checkout/{linkId}/payments { quoteId, payer } | The payment. Send Idempotency-Key (32 characters or more) and reuse it on every retry. |
GET /v1/checkout/{linkId}/payments/{paymentId} | Payment status for the receipt. |
GET /v1/checkout/{linkId}/qr.svg?size=512 | The link’s QR code as image/svg+xml: black modules on white with a four-module margin, encoding the link’s url. size is the side in pixels, 128 to 1024 (default 512). It takes a link ID only and answers 404 for an unknown link. Show it on your screen for in-person payments or print it with the order. Keep the white margin when you place it. |
POST …/payments/{paymentId}/funding-instructions, POST …/funding-submissions | The wallet step and the transaction hash, with the same Idempotency-Key header. |
Access and limits
- Your keys see only your account’s quotes and payments. Another account’s quote or payment answers
404 NOT_FOUND. AREADkey cannot create or fund (403 FORBIDDEN). - Each account may have 10 active keys. By default an account may create 30 quotes and 10 new payments per minute across its keys. Above that the API answers
429 RATE_LIMITEDwithRetry-After. A replay with the sameIdempotency-Keyis not counted.
Errors
Error bodies are { error, code, retryAfterSeconds }.
| HTTP | Codes |
|---|---|
| 400 | INVALID_REQUEST |
| 401 | UNAUTHORIZED, INVALID_SIGNATURE |
| 403 | FORBIDDEN, ACCOUNT_SUSPENDED |
| 404 | NOT_FOUND |
| 409 | QUOTE_ALREADY_USED, IDEMPOTENCY_CONFLICT, PAYMENT_PREPARING, NOTHING_TO_SIGN, PAYMENT_FINISHED, CHANNEL_REJECTED, KEY_LIMIT_REACHED, LINK_PAYMENT_IN_PROGRESS |
| 410 | QUOTE_EXPIRED, CHALLENGE_EXPIRED, LINK_UNAVAILABLE |
| 422 | NO_ROUTE, UNSUPPORTED_ROUTE, FUNDING_MODE_UNAVAILABLE, SIGNATURE_STEPS_DISABLED, CHANNEL_REJECTED |
| 429 | RATE_LIMITED |
| 500 | INTERNAL_ERROR |
| 502 | CHANNEL_CONTRACT |
| 503 | CHANNEL_UNAVAILABLE, CHANNEL_BUSY, EXECUTION_DISABLED (payment creation only), ISSUANCE_UNAVAILABLE (sign-in and new keys only) |
PAYMENT_PREPARING, CHANNEL_UNAVAILABLE, and CHANNEL_BUSY mean the outcome is not known yet. Repeat the same request with the same Idempotency-Key. A replay returns 200 with the payment as it is, which can be FAILED with the cause in reason. Always read status.
Integration rules
- Use atomic amounts as integer strings, never floating-point amounts.
- Use one idempotency key per payment and reuse it on every retry.
- Validate chain ID, token address, recipient, minimum receive amount and quote expiry before authorization.
- Treat route availability and timeout as runtime data.
The OpenAPI document describes every route and field. The payment API is the source of truth.