# Payments AI Developer Docs — Agent Index Site: https://doc.dev.managed.payments.ai OpenAPI (Merchant Public API + buyer checkout): https://doc.dev.managed.payments.ai/openapi-public.json ## Agent discovery - Skill: /SKILL.md - Agent auth: /auth.md - Full agent index: /llms-full.txt - Agent Skills index: /.well-known/agent-skills/index.json - MCP Server Card: https://mor.payments.ai/.well-known/mcp/server-card.json - MCP endpoint: https://mor.payments.ai/api/mcp ## Key pages Every page is also served as Markdown: add `.md` to its path. - [For AI agents](/ai-agents.md): every machine-readable file and how to use it - [Quickstart](/quickstart.md): create merchant → API key → product+plan → checkout URL - [Embedded checkout](/embedded-checkout.md): one plan, payment fields on your page, no server code - [Custom amount checkout](/custom-amount-checkout.md): your server charges a price it works out - [Order checkout](/multi-item-checkout.md): several items in one payment - [Merchant Public API](/public-api.md) - [Platform onboarding](/platform-onboarding.md): POST /v1/public-api/merchants; assign team with POST …/members when ownerAttached is false; read ownerAttached and activation with GET /v1/public-api/merchants/{merchantId} - [MCP server](/mcp.md) - [Connect page](/connect.md): server status, one path per client, whoami check, no-terminal device grant per client - [CLI](/cli.md): install, login, chat-assistant tester prompt - [Webhooks](/webhooks.md) - [API Reference](/api.md) - [Error catalog](/errors.md) - [Getting help](/getting-help.md) ## Sandbox - API base URL: https://sandbox.mor.payments.ai/api - Merchant Public API prefix: /v1/public-api/merchants/{merchantId}/… - Platform onboarding: POST /v1/public-api/merchants (Bearer pai_test_* / pai_live_*; parent derived from the key) - Buyer checkout (no key): /v1/checkout/plans/{planId}/… — includes POST …/confirm used by the embed - Auth: Bearer pai_test_* (64 hex chars after prefix) - Live keys (pai_live_*) are blocked in docs Try It Safe Mode ## Error docUrl pattern https://doc.dev.managed.payments.ai/errors/{slug} slug = code with `.` and `_` replaced by `-`, lowercased