Billing

Create billing portal session

Generates a Stripe billing portal URL for managing an existing subscription.

post/v1/billing/portal

Request

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

Request body

emailstring email required

Email associated with the subscription

return_urlstring uri required

URL to redirect to when leaving the portal

Response

Portal session created

successboolean

Example response

{
  "success": true,
  "data": {
    "portal_url": "https://billing.stripe.com/p/session/..."
  }
}

Changes

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