Billing

Checkout link

A OneLence billing link with the chosen plan highlighted. The user reviews and checks out in OneLence; nothing is charged here. Owners and admins only.

post/checkout-links

Request

  • Base URL: https://api.onelence.com/v1
  • URL: https://api.onelence.com/v1/checkout-links
  • Auth: one of:
    • OAuth 2 (authorization code, authorization URL https://api.onelence.com/oauth/authorize, token URL https://api.onelence.com/oauth/token, scopes: billing:subscribe)
    • HTTP bearer

Headers

Idempotency-Keystring

8 to 200 visible ASCII characters. Retries with the same key and request return the stored response for 24 hours.

Request body

planstring required

Plan id from the plans list.

interval'month' | 'year'

Billing interval (default month).

Response

Success.

object'checkout_link' required
urlstring required
planstring required
interval'month' | 'year' required
notestring required

Changes

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