API Reference
Complete REST API reference for Storlaunch. Base URL: https://storlaunch.forjio.com/api/v1
Checkout Sessions
/api/v1/payment/checkout-sessionsAuth requiredCreate a hosted checkout session. Redirect your customer to the returned checkout URL.
Request body
{
"amount": 99000,
"currency": "IDR",
"description": "Pro Plan - Monthly",
"customerEmail": "buyer@example.com",
"successUrl": "https://myapp.com/success",
"cancelUrl": "https://myapp.com/cancel",
"paymentMethods": ["qris", "ewallet", "va", "card"]
}Response
{
"data": {
"id": "cs_01HX...",
"checkoutUrl": "https://storlaunch.forjio.com/checkout/cs_01HX...",
"status": "pending",
"expiresAt": "2026-04-05T13:00:00.000Z"
}
}/api/v1/payment/checkout-sessionsAuth requiredList all checkout sessions for your account. Supports cursor-based pagination.
Response
{
"data": [{ "id": "cs_01HX...", "status": "completed", "amount": 99000 }],
"meta": { "cursor": "cs_01HX...", "hasMore": true }
}/api/v1/payment/checkout-sessions/:idAuth requiredRetrieve a single checkout session by ID.
Response
{
"data": { "id": "cs_01HX...", "status": "completed", "amount": 99000, "paidAt": "..." }
}Subscription Plans
/api/v1/payment/plansAuth requiredCreate a subscription plan with recurring billing.
Request body
{
"name": "Pro Monthly",
"amount": 99000,
"currency": "IDR",
"interval": "month",
"trialPeriodDays": 14
}Response
{
"data": { "id": "plan_01HX...", "name": "Pro Monthly", "interval": "month" }
}/api/v1/payment/plansAuth requiredList all plans.
Response
{
"data": [{ "id": "plan_01HX...", "name": "Pro Monthly", "amount": 99000 }]
}Subscriptions
/api/v1/payment/subscriptionsAuth requiredSubscribe a customer to a plan.
Request body
{
"customerId": "cust_01HX...",
"planId": "plan_01HX..."
}Response
{
"data": { "id": "sub_01HX...", "status": "trialing", "currentPeriodEnd": "..." }
}/api/v1/payment/subscriptions/:idAuth requiredUpdate a subscription: cancel, pause, resume, or change plan.
Request body
{ "action": "cancel" }Response
{
"data": { "id": "sub_01HX...", "status": "canceled", "canceledAt": "..." }
}Storefront — Products
/api/v1/storefront/productsAuth requiredCreate a digital product with files and pricing.
Request body
{
"name": "UI Kit Pro",
"slug": "ui-kit-pro",
"description": "500+ components for React",
"price": 299000,
"currency": "IDR"
}Response
{
"data": { "id": "prod_01HX...", "slug": "ui-kit-pro", "status": "active" }
}/api/v1/storefront/productsAuth requiredList all products for your account.
Response
{
"data": [{ "id": "prod_01HX...", "name": "UI Kit Pro", "price": 299000 }]
}Storefront — Licenses
/api/v1/storefront/licenses/validateValidate a license key. Public endpoint — no auth required.
Response
{
"data": { "valid": true, "productId": "prod_01HX...", "activatedAt": "..." }
}Full endpoint list and SDK examples available on the main documentation page.