One-time payments
Charge a customer once — an unlock, a credit pack, a lifetime deal. You create a session, the customer pays on your branded checkout page, you get notified.
Create a payment session#
/v1/sessions| Field | Type | Description |
|---|---|---|
product_namerequired | string | Shown on the checkout page (max 200 chars) |
amountrequired | integer | Cents — 2990 = €29.90 (min 50) |
description | string | Shown under the product name. Use \n for bullet lines. |
currency | string | eur (default), usd or gbp |
success_url | string | Redirect after payment. Falls back to your dashboard default. |
cancel_url | string | Redirect on cancel. Falls back to your dashboard default. |
curl -X POST https://paylo-production.up.railway.app/v1/sessions \
-H "Authorization: Bearer sk_test_..." \
-H "Content-Type: application/json" \
-d '{
"product_name": "Premium Pack",
"description": "500 credits\nPriority support",
"amount": 2990,
"currency": "eur"
}'{
"id": "a1b2c3…",
"url": "https://paylo-six.vercel.app/pay/a1b2c3…",
"status": "pending"
}Send the customer to url— that's your branded checkout. Call it from your server with your sk_ key (the SDKs' checkout()does the same with the app's pk_). Accepts an Idempotency-Key header.
GET /v1/customers/:id/status and grants no entitlement. Use it for purchases your server fulfils itself (on the payment.completed webhook). For access gating, sell a one_time planinstead. One-time sessions can't be refunded through the API yet.Check the status#
/v1/sessions/:idStatuses: pending → completed | expired. Your webhook receives payment.completed with session_id, product_name, amount, currency and status. Sessions the customer abandons expire automatically after 24 hours — nothing stays pending forever.
{
"id": "a1b2c3…",
"product_name": "Premium Pack",
"amount": 2990,
"currency": "eur",
"status": "completed",
"created_at": "2026-07-12T12:00:00.000Z"
}Lifetime deals — one_time plans#
If the purchase should grant a permanent entitlement (lifetime access), model it as a plan with interval: "one_time" and sell it through POST /v1/subscriptions. The customer then shows up in GET /v1/customers/:id/status with has_active_subscription: true forever — your access gating stays identical for subscriptions and lifetime purchases. Your webhook gets subscription.activated (with plan_interval: "one_time"), win-back offers apply, and the Stripe portal isn't offered (can_manage: false).