Axiv Pay defines one canonical platform payment model. REST is the primary API; MCP/Skills/Wallet and x402 are adapters to the same payment state and ledger. No adapter may manufacture successful funds movement or issue a guarantee without the platform's explicit authorization.
REST / OpenAPI
/api/v1/catalog: public discovery for integration status, chain, and asset coverage./v1/*: the planned production payment API./mock/v1/*: public state-machine simulation; no wallet/private-key requirement.- Amounts are decimal strings of integer atomic units, not JavaScript floats.
- Production requests should carry an idempotency key, API authentication and a scoped authorization reference.
- Sandbox errors include
mode: "mock",simulation: true, and anerrormessage. - Production will need explicit
quote.expiresAt, final transaction proof fields, webhook HMAC signatures, retry rules and a clear list of payment terminal/compensation states.
See the published OpenAPI schema for catalog and sandbox endpoints and the API reference for the planned production interface.
MCP
The MCP server is an Agent integration layer, not a payment processor. The public MCP exposes search_capabilities, get_capability, and compare_capabilities for read-only discovery. On /public/mcp, five payment tools call the live payment API: create_quote, create_payment, get_funding_step, submit_funding_transaction, and get_payment_status. Each forwards the caller's own Axiv Pay API token from the Authorization: Bearer header of the MCP HTTP request and reaches only what that token can access. The token is never a tool argument. The tools are not offered on the read-only MCP OAuth endpoint /mcp, and they report that the live payment API is not connected when it is unavailable.
No MCP tool signs or sends a blockchain transaction, and the server exposes no transfer function. Axiv Pay holds no keys. get_funding_step returns one step, and the payer's own wallet signs exactly that step. An APPROVAL step moves no funds. A BRIDGE_DEPOSIT step moves the payment amount.
create_quote: request a quote. A quote is not a payment.create_payment: create the payment with a newidempotencyKey. Reuse the same key on every retry. The same key returns the same payment.get_funding_step: read the next step to sign. A “nothing to sign” result is a normal wait.- The payer wallet signs and sends the step. If the wallet result is unknown, do not sign again. Look up the transaction hash.
submit_funding_transaction: register the transaction hash. This is not a deposit confirmation.- Repeat
get_funding_stepwhilenextActionisREQUEST_FUNDING_INSTRUCTIONS. - Poll
get_payment_statusuntilPAID.
PAID is the completion signal: Axiv Pay verified both chain receipts. REVIEW_REQUIRED, FAILED, EXPIRED, and REFUNDED are not paid. A result marked as simulated must not be signed with real funds.
Official MCP Registry publication requires a real externally reachable server/package and verified publisher namespace. A registry manifest by itself cannot cause agents to install or invoke a tool.
Agent Skills
Axiv Pay Agent Skill gives coding agents task-specific instructions and links to this canonical contract. Installing a Skill is a client-specific choice. Skills are a useful way to make integration a one-command task for developers, but do not automatically endow any model with funding authority.
x402 V2
x402 is a payment-required protocol, not the Axiv Pay internal ledger. Under x402 V2, an HTTP seller can respond with 402 and PAYMENT-REQUIRED; a properly configured client sends PAYMENT-SIGNATURE, and the server may return PAYMENT-RESPONSE after processing. The payment payload and Facilitator behavior are defined by the current x402 specs.
Axiv Pay plans two separate integrations:
- Merchant-side x402 adapter: translate a compatible payment requirement into an authorized Axiv Pay payment and return evidence only when the seller's accepted settlement protocol is satisfied. A proprietary Axiv guarantee is not, by itself, valid x402 proof for an unrelated server.
- Buyer-side x402 adapter: consume existing x402 402 responses, inspect accepted assets/networks, acquire necessary funding via a supported route, and use standard x402 client/facilitator logic. A seller's exact required amount must be paid in full.
This starter does not implement x402 signing, payment verification, facilitator settlement, or live third-party API purchasing. Header formats and payment schemes must be tested against x402 V2 before claiming compatibility.
External primary sources: x402 specification, MCP Registry, Agent Skills.