Create Subscription Checkout
POST/subscription-checkoutsDescription
Create a single-use intent that authorizes a customer to start a recurring subscription. The response includes a checkout_url — redirect the customer there to complete the subscribe + first-charge flow.
The intent does not require a signed request at creation time. The customer’s on-chain signature at the hosted page authorizes the subscription and the first charge atomically. Subsequent merchant-driven charges, cancels, and amount updates use signed requests.
Headers
| Header | Description | Required |
|---|---|---|
| Authorization | Bearer token with your API key | yes |
| Content-Type | application/json | yes |
Body Parameters
| Name | Type | Description | Required |
|---|---|---|---|
| token_symbol | string | Token to charge in (e.g. "USDC", "USDT"). Must resolve to a token address on every chain in supported_chains. | yes |
| charge_amount | string | Recurring price in token's smallest unit (e.g. "9990000" = 9.99 USDC). Decimal string. | yes |
| period_duration | number | Seconds between scheduled charges. Minimum 3600 (1 hour). | yes |
| cap_amount | string | Customer's authorized maximum per call, in token's smallest unit. Must be >= charge_amount. | yes |
| supported_chains | string[] | CAIP-2 chain identifiers the customer can pick from (e.g. ["eip155:1", "eip155:137"]). Defaults to every chain where the merchant has a SubscriptionManager deployment. V1 supports the eip155: namespace only. | no |
| subscriber | string | Pre-bind the intent to a specific EVM wallet address. When set, the hosted page rejects any other wallet. | no |
| external_customer_id | string | Your customer reference. Indexable for filtered queries (GET /subscription-checkouts?external_customer_id=...). | no |
| success_url | string | URL the hosted subscribe page redirects to after the first charge confirms. The page appends ?subscription_checkout_id=schk_xxx&subscription_id=sub_xxx. | no |
| cancel_url | string | URL surfaced when the customer dismisses the hosted page or follows a "lost wallet" recovery link. | no |
| metadata | object | Arbitrary JSON object for your own bookkeeping (plan reference, session id, referral code, etc.). Echoed back on the intent and copied to the resulting Subscription. | no |
| expires_at | string | ISO 8601 expiry timestamp. Must be in the future and within 24 hours. Defaults to 5 minutes from creation. | no |
Example Request
const response = await fetch('https://checkout.exodus.com/subscription-checkouts', {
method: 'POST',
headers: {
Authorization: 'Bearer sk_live_xxxxxxxxxxxxxxxx',
'Content-Type': 'application/json',
},
body: JSON.stringify({
token_symbol: 'USDC',
charge_amount: '9990000',
period_duration: 2592000,
cap_amount: '120000000',
supported_chains: ['eip155:1', 'eip155:137', 'eip155:42161'],
external_customer_id: 'cus_42',
success_url: 'https://merchant.com/subscribed',
cancel_url: 'https://merchant.com/cancelled',
metadata: { external_plan_ref: 'pro_monthly' },
}),
});
const intent = await response.json();
window.location.href = intent.checkout_url;Response
{
"object": "subscription_checkout",
"id": "schk_1234567890abcdef",
"status": "pending",
"onchain_id": "0x9f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b3c4d5e6f7a8b9c0d1e2f3a",
"subscriber": null,
"external_customer_id": "cus_42",
"supported_chains": ["eip155:1", "eip155:137", "eip155:42161"],
"subscription_manager_addresses": {
"eip155:1": "0xA1B2C3D4E5F6789012345678901234567890ABCD",
"eip155:137": "0xB2C3D4E5F67890123456789012345678901234CD",
"eip155:42161": "0xC3D4E5F6789012345678901234567890123456CD"
},
"token_addresses": {
"eip155:1": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
"eip155:137": "0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174",
"eip155:42161": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831"
},
"token_symbol": "USDC",
"charge_amount": "9990000",
"period_duration": 2592000,
"cap_amount": "120000000",
"checkout_url": "https://checkout.exodus.com/subscribe/schk_1234567890abcdef",
"success_url": "https://merchant.com/subscribed",
"cancel_url": "https://merchant.com/cancelled",
"metadata": { "external_plan_ref": "pro_monthly" },
"expires_at": "2026-05-19T12:05:00Z",
"created_at": "2026-05-19T12:00:00Z"
}onchain_id is the on-chain subscriptionId (CSPRNG-minted at creation) the contract will identify this subscription by. subscription_manager_addresses and token_addresses are keyed by CAIP-2 — use the entry matching the chain the customer picked.
Validation
| Code | Cause |
|---|---|
no_deployment_on_chain | supported_chains includes a chain where the merchant has no SubscriptionManager deployment. |
token_not_supported_on_chain | token_symbol doesn’t resolve on every chain in supported_chains. |
cap_amount_below_charge | cap_amount < charge_amount. |
period_below_floor | period_duration < 3600 (1 hour). |
expires_at_out_of_range | expires_at is in the past or more than 24 hours in the future. |
invalid_subscriber | subscriber is not a valid EVM address. |
For v1, the chosen token_symbol must have consistent decimals across every chain in
supported_chains so charge_amount and cap_amount are unambiguous. USDC, USDT, and DAI all
satisfy this on EVM (6, 6, and 18 decimals respectively, each consistent across chains).
Webhooks Fired
subscription_checkout.created— on successful creationsubscription_checkout.expired— ifexpires_atelapses without a successful subscribesubscription_checkout.completed— when the customer signssubscribeAndChargeand the first charge confirms
See Webhooks for the full event payloads.
