Billing
Start an upgrade: a Stripe-hosted Checkout Session
Returns a hosted Checkout URL for one paid plan. Open url in a browser and pay there — Galley never sees a card. The session carries the plan's flat price and its metered overage price, and Stripe Tax is calculated on the page.
The plan does not change when this returns. It changes when Stripe delivers checkout.session.completed and customer.subscription.created to our webhook, a second or two later. Poll GET /v1/account and read subscription.status.
The account must have a verified email address: the invoice, the receipt and every dunning message go to it. A keyless trial gets permission_error naming the call that fixes it.
post/v1/billing/checkout
Request
- Base URL: https://api.galleyrender.com
- URL: https://api.galleyrender.com/v1/billing/checkout
- Auth: HTTP bearer
Request body
Response
A Checkout Session. Nothing has been charged.
Example response
{
"id": "cs_test_a1b2c3",
"url": "https://checkout.stripe.com/c/pay/cs_test_a1b2c3",
"price_usd": 5,
"included_renders": 500,
"overage_usd_per_render": 0.006
}Changes
No recorded changes to this operation across all 1 revision of this API.