Create a checkout session for a new customer (guest checkout). No authentication required. Returns a URL to redirect the customer to complete their purchase.
Your organization’s slug identifier.
The plan ID the customer is subscribing to.
URL to redirect the customer after successful checkout.
URL to redirect the customer if they cancel checkout.
Pre-fill the customer’s email address.
Optional metadata to attach to the subscription.
curl -X POST https://api.alguna.io/portal/guest-checkout-session \
-H "Content-Type: application/json" \
-d '{
"orgSlug": "acme-corp",
"planId": "plan_pro_monthly",
"successUrl": "https://yourapp.com/checkout/success",
"cancelUrl": "https://yourapp.com/pricing",
"email": "[email protected]"
}'
{
"checkoutSessionId": "cs_abc123xyz",
"sessionToken": "tok_checkout_abc123...",
"redirectUrl": "https://checkout.alguna.io/cs/cs_abc123xyz..."
}
Unique identifier for the checkout session.
Session token for the checkout.
URL to redirect the customer to complete checkout.
This endpoint does not require authentication and is designed for public-facing checkout flows. The checkout page is hosted by Alguna and handles payment collection, account creation, and subscription activation.