Billing portal/createBillingPortalSession
Create a billing portal session
PlannedPlanned. This contract is published ahead of the build. It is not callable yet — treat it as the shape to design against, not a live endpoint.
Open a hosted portal where a customer manages their own billing.
POST
/v1/billing-portal/sessionsMint a short-lived URL to a kepa-hosted page where the customer updates their card
and downloads invoices, then returns to `returnUrl`. No card data touches your site.
Request body
application/json
customerIdstringRequiredExample "cus_123"
returnUrlstringRequiredExample "https://shop.example/account"
Response
application/json
urlstringExample "https://billing.kepapay.co/session/bps_9c2a"
expiresAtstring · ISO 8601Example "2026-04-09T09:14:22Z"
createBillingPortalSession