Checkouts
Create checkout sessions via CLI. Each checkout generates acheckoutUrl (humans) and x402Url (AI agents).
Create
Flags
| Flag | Description |
|---|---|
-a, --amount <n> | Payment amount (required) |
-c, --currency <code> | Currency (EUR, USD). Defaults to org setting |
-d, --description <text> | Shown on checkout page |
--email <email> | Pre-populate buyer email |
Response
checkoutUrl: Share with human customersx402Url: Use for AI agent-to-agent payments
Get
status === "completed").
List
| Flag | Description |
|---|---|
--status <s> | Filter: open, completed, expired, cancelled |
--limit <n> | Results per page (default 10) |
What’s next?
- Get notified on payment: Set up webhooks to receive real-time payment confirmations.
- Machine to machine: Share the
x402Urlwith AI agents instead of the checkout URL. See x402 payments. - SDK integration: Build checkout into your backend with the Payment SDK.