Organizations

Open the billing portal

Changed on

Open the Stripe billing portal of the organization (payment methods, billing details and invoices), and return its URL, which comes back to returnUrl (a page of the web app). Only for organizations with a Stripe customer (hasCustomer in getBilling), created when it first opens Checkout. Requires the billing: ["manage"] permission (owners and admins)

post/api/v1/organizations/{organizationId}/billing/portal

Request

  • Base URL
    https://app.easyscraper.com
  • URL
    https://app.easyscraper.com/api/v1/organizations/{organizationId}/billing/portal
  • Auth
    API key in cookie better-auth.session_token

Path parameters

organizationIdstring uuid required

Request body

returnUrlstring uri required

Response

OK

urlstring uri required

Changes