# CX Pay API CX Pay is a payment API with hosted checkout and an embedded payment form beta. Create a session, redirect or embed, and verify payment through signed webhooks and server reads. ## Reference - [Introduction](/api/introduction.md): Overview, base URL, environment model. - [How it works](/api/how-it-works.md): Three-object payment model (Checkout Session, Payment Intent, Charge) and the PI lifecycle. - [Authentication](/api/authentication.md): HMAC-SHA256 request signing — five required headers, the canonical string, and signing examples in cURL/Node/Python/PHP. - [Identity](/api/identity.md): GET /v1/me — verify your credentials; returns merchantOrgId, keyId, and entitlements. - [Errors](/api/errors.md): HTTP status code reference, the error envelope shape, and the error type taxonomy. - [Idempotency](/api/idempotency.md): Idempotency-Key header semantics and retry guarantees. - [Webhooks](/api/webhooks.md): Event delivery, signature verification, and retry behavior. ## Core Resources - [Checkout Sessions](/api/checkout-sessions.md): Create a hosted payment page. Returns a redirect URL and an underlying Payment Intent. - [Return domains](/api/return-domains.md): Register public HTTPS return and embed origins. Per-mode lists, explicit write scope, add/read/remove and localhost policy. - [Payment Intents](/api/payment-intents.md): Create payments directly and inspect lifecycle status. Off-session (MIT) charges, setup_future_usage auto-vault, and PATCH for in-flight mutations. - [Charges](/api/charges.md): One authorization per paid Payment Intent. Read latest_charge for the captured and refunded totals. - [Mandates](/api/mandates.md): Recorded cardholder authorizations to charge a saved Payment Method. Created during SetupIntent / PI+SFU flows; revoke when consent is withdrawn. - [Payment Methods](/api/payment-methods.md): Saved cards. Created by SetupIntents and PI+SFU. Attach/detach to/from a Customer; charge off-session via PaymentIntents. - [Customers](/api/customers.md): Tie a person to saved cards, payment history, and billing defaults. Carries addresses, currency, and invoice settings. ## Webhooks - [Events](/api/webhook-events.md): Event payload shape, the event types, and signature verification. ## Guides - [Embedded payment form](/docs/embedded-checkout.md): 0.0.1 Beta: hosted script, form lifecycle, returns, styling and server fulfillment. - [Customize checkout](/docs/checkout-customization.md): Method layouts, matching skeletons, merchant CSS, development composition and environment URLs. - [Quickstart](/docs.md): 10-minute integration walkthrough. - [How it works](/docs/how-it-works.md): The payment lifecycle with full prose. - [Going live](/docs/going-live.md): Test vs live keys, livemode, and the go-live checklist. - [Test cards](/docs/test-cards.md): Test-mode card numbers and their outcomes, plus the checkout test cards panel. - [Build with an AI agent](/docs/ai-skill.md): Download the CX Pay skill: the integration path, the API reference and every guide for Claude or any coding agent. - [Saving cards](/docs/saving-cards.md): SetupIntent, setup-mode Checkout Session or PaymentIntent + setup_future_usage, end-to-end. - [Charging saved cards](/docs/charging-saved-cards.md): Off-session (MIT) charging: the request, 402 and processing answers, authentication_required, and safe retries. - [Tokenization webhooks](/docs/tokenization-webhooks.md): Saved-card lifecycle events with payload shapes and handler code. - [Verifying webhooks](/docs/verifying-webhooks.md): The signature scheme and verifiers in Node/PHP/Python, plus a live signer. - [Customers & B2B](/docs/customers-and-b2b.md): Identity requirements, source provenance, checkout auto-minting, billing defaults. - [Declines & card testing](/docs/declines-and-card-testing.md): Declines vs anti-fraud blocks and the safe-message contract. - [FAQ](/docs/faq.md): Common questions on currencies, idempotency, 3DS, and webhooks. - [Changelog](/docs/changelog.md): Release history. ## Indexes - [API root, all sections](/api.md): Introduction + How it works + Auth + Identity + Errors + Idempotency + Webhooks bundled.