Billing

Stripe Checkout link to buy Build Credit packs ($25 = 100 credits, or the fixed local price; billing:read)

post/billing/credits/checkout

Request

  • Base URL: https://hostingsurge.com/api/v1
  • URL: https://hostingsurge.com/api/v1/billing/credits/checkout
  • Auth: one of:
    • HTTP bearer
    • API key in cookie __Host-hs_session

Query parameters

orgIdstring

Organization id (required when you belong to several)

lang'en' | 'sv'

Language of labels and Stripe pages (default en)

Request body

packsinteger

packs of 100 Build Credits

currency'usd' | 'eur' | 'sek' | 'gbp' | 'nok' | 'dkk' | 'chf' | 'pln' | 'USD' | 'EUR' | 'SEK' | 'GBP' | 'NOK' | 'DKK' | 'CHF' | 'PLN'

default: the team's billing currency (its subscription's, else USD); a team with a subscription buys in that currency

Response

Checkout link

urlstring required

Stripe Checkout page: open it in a browser to pay; nothing is charged before that

sessionIdstring required
expiresAtstring required

ISO-8601 timestamp

Changes

No recorded changes to this operation across all 1 revision of this API.