Axiv PayGet started
DEVELOPERS / API REFERENCE

Payment API

A unified versioned interface for quote discovery, authorization, payments and reconciliation.

Available on pay.axiv.cc

InterfacePurpose
GET /api/v1/catalogRead 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/mcpSearch, 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.

MethodRoutePurpose
GET/v1/capabilitiesExecution state, verified routes (liveRoutes) and quotable chains. No token needed
POST/v1/quotesQuote a route, fee estimate and minimum receive amount. allowedRoutes pins the route
POST/v1/paymentsCreate 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}/eventsStatus history
POST/v1/payments/{id}/funding-instructionsThe one transaction the payer wallet sends now, on the source chain
POST/v1/payments/{id}/funding-submissionsRegister the hash of the transaction the wallet sent. 202 accepted

Payment status model

AWAITING_DEPOSIT
DEPOSIT_OBSERVED
PAYOUT_PENDING
PAID

Payments 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

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.

RequestAuthResult
POST /v1/account/challenges { address, chainId }None201 { nonce, message, expiresAt }. A sign-in message (EIP-4361) valid for 5 minutes.
POST /v1/account/sessions { nonce, signature }None201 { sessionToken, expiresAt, account }. Sign message exactly as returned with personal_sign. Each message signs in once. Sessions last 30 minutes.
GET /v1/accountSessionYour account, its status, and its limits.
GET /v1/account/api-keysSession{ keys: [{ id, name, scope, displayPrefix, last4, createdAt, lastUsedAt, revokedAt }] }
POST /v1/account/api-keys { name?, scope? }Session201 with the full key. It is returned only in this response. scope is WRITE (default) or READ.
DELETE /v1/account/api-keys/{id}SessionThe revoked key. Requests with it are rejected from then on.
DELETE /v1/account/sessions/currentSession204. 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.

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.

RequestAuthResult
POST /v1/payment-links { destination: { chainId, asset, amount }, title?, merchantReference?, reusable? }Session or WRITE key201 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-linksSession or key{ links: [...] }, the 50 most recent.
GET /v1/payment-links/{id}Session or keyThe link and its recent payments.
DELETE /v1/payment-links/{id}Session or WRITE keyThe link with status: DISABLED. It accepts no new payments.
GET /v1/usageSession or keyThis 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.

RequestResult
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=512The 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-submissionsThe wallet step and the transaction hash, with the same Idempotency-Key header.

Access and limits

Errors

Error bodies are { error, code, retryAfterSeconds }.

HTTPCodes
400INVALID_REQUEST
401UNAUTHORIZED, INVALID_SIGNATURE
403FORBIDDEN, ACCOUNT_SUSPENDED
404NOT_FOUND
409QUOTE_ALREADY_USED, IDEMPOTENCY_CONFLICT, PAYMENT_PREPARING, NOTHING_TO_SIGN, PAYMENT_FINISHED, CHANNEL_REJECTED, KEY_LIMIT_REACHED, LINK_PAYMENT_IN_PROGRESS
410QUOTE_EXPIRED, CHALLENGE_EXPIRED, LINK_UNAVAILABLE
422NO_ROUTE, UNSUPPORTED_ROUTE, FUNDING_MODE_UNAVAILABLE, SIGNATURE_STEPS_DISABLED, CHANNEL_REJECTED
429RATE_LIMITED
500INTERNAL_ERROR
502CHANNEL_CONTRACT
503CHANNEL_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

The OpenAPI document describes every route and field. The payment API is the source of truth.