v1
latestOpenAPI 3.0.02026-07-24103118224.7 KBCheckout Sessions
Create a checkout session for a one-time payment (recommended)
Recommended way to start a hosted one-time payment. Replaces the deprecated POST /api/checkout/payment.
Returns { sessionId, checkoutUrl } — redirect the buyer to checkoutUrl to pay. The paymentId is 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/one-time-payment
Request body
Example request
{
"currency": "EUR",
"sessionCustomization": {
"bgColor": "#ffffff",
"fontColor": "#000000",
"backgroundColor": "#ffffff"
},
"statementDescriptor": "MY BRAND",
"expiresIn": 24,
"billingCountry": "FR",
"customer": {
"id": "cus_1a2b3c",
"email": "buyer@example.com",
"billingCountry": "FR"
},
"captureMode": "AUTOMATIC",
"marketplaceFeeInCents": 200
}Response
Checkout session created
Example response
{
"sessionId": "sess_abc123",
"checkoutUrl": "https://checkout.inflowpay.com/pay/sess_abc123"
}