Billing

Create checkout session

Generates a Stripe checkout session URL for subscribing to a plan.

post/v1/billing/checkout

Request

  • Base URL: https://api.hempdata.io
  • URL: https://api.hempdata.io/v1/billing/checkout
  • Auth: none required

Request body

tier'starter' | 'professional' | 'enterprise' required

Subscription tier

billing_period'monthly' | 'annual' required

Billing frequency

emailstring email required

Customer email address

success_urlstring uri required

URL to redirect to after successful payment

cancel_urlstring uri required

URL to redirect to if payment is cancelled

Response

Checkout session created

successboolean

Example response

{
  "success": true,
  "data": {
    "checkout_url": "https://checkout.stripe.com/c/pay/cs_live_...",
    "session_id": "cs_live_..."
  }
}

Changes

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