Billing
User
Create a subscription Checkout session
Changed onRequires a Secure, SameSite browser session and X-CSRF-Token. Trial policy is server-owned: clients cannot send trial_days or no_default_trial. Idempotency is scoped to user, plan and billing period before Stripe.
post/api/v1/checkout
Request
- Base URLhttps://openmercantil.es
- AuthAPI key in cookie ob_sess
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
X-CSRF-Tokenstring required
Fresh token returned by GET /api/v1/user/me for this authenticated session.
Idempotency-Keystring
Request body
Response
Checkout URL and Stripe session id
Changes
- info
endpoint added
- info