v1
latestOpenAPI 3.0.02026-07-24103118224.7 KBCheckout Sessions
Create a checkout session for a subscription offer (recommended)
Recommended way to start a hosted subscription checkout for an existing offer. Replaces the deprecated POST /subscription/offer/:subscriptionOfferId/initiate.
Returns { sessionId, checkoutUrl } — redirect the buyer to checkoutUrl to subscribe. The subscription and first payment are created once the buyer submits a payment method during the session. Subscribe to checkout_session.* merchant webhooks — the paymentId is included in the payload once the session is completed (e.g. checkout_session.completed).
post/api/checkout/sessions/subscription/{subscriptionOfferId}
Path parameters
subscriptionOfferIdstring required
Example:sub_offer_1234567890abcdef
Unique identifier of the subscription offer
Request body
Example request
{
"expiresIn": 24,
"billingCountry": "FR",
"customer": {
"id": "cus_1a2b3c",
"email": "buyer@example.com",
"billingCountry": "FR"
},
"marketplaceFeeInCents": 200
}Response
Checkout session created
Example response
{
"sessionId": "sess_abc123",
"checkoutUrl": "https://checkout.inflowpay.com/pay/sess_abc123"
}