Checkout
Scope: write:checkout. This is the only endpoint a publishable key can call.
POST /api/v1/checkout prices each line from the clinic’s own catalog (a client-sent price is never trusted), then holds or charges the card token through Stripe.
| Body field | Notes |
|---|---|
patient |
email, firstName, lastName, dateOfBirth required; phone optional. Matched to an existing patient by email within the clinic, or created. |
lineItems |
At least one: { "kind": "membership_plan" or "service", "id": "…", "quantity": 1 }. Every id must belong to the clinic. |
paymentToken |
A Stripe PaymentMethod id. Never a card number. |
autoCharge |
true charges now. false (default) only holds the card; capturing is a separate staff action in the app. Overrides the clinic’s setting (Settings → Payments). |
Response: { "orderId": "…", "status": "HELD" | "CAPTURED" | "FAILED", "error"?: "…" }. 201 when held or captured, 200 with FAILED when the card step failed. Errors: 400, 401, 403.
Was this page helpful?Thanks for letting us know.Sorry about that. Email us what was missing and we'll help.

