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#

POST/v1/sessions
FieldTypeDescription
product_namerequiredstringShown on the checkout page (max 200 chars)
amountrequiredintegerCents — 2990 = €29.90 (min 50)
descriptionstringShown under the product name. Use \n for bullet lines.
currencystringeur (default), usd or gbp
success_urlstringRedirect after payment. Falls back to your dashboard default.
cancel_urlstringRedirect on cancel. Falls back to your dashboard default.
Request
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"
  }'
Response — 201
{
  "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.

A session isn't tied to a customer: it won't show up in 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#

GET/v1/sessions/:id

Statuses: 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.

Response
{
  "id": "a1b2c3…",
  "product_name": "Premium Pack",
  "amount": 2990,
  "currency": "eur",
  "status": "completed",
  "created_at": "2026-07-12T12:00:00.000Z"
}
Polling is fine for mobile flows — the SDKs ship a waitForPayment(sessionId) helper. Web appsdon't poll at all: the customer is redirected back to your success_url when the payment completes. For servers, prefer webhooks either way.

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).