Billing

Create Stripe billing portal session

Changed on

Creates a hosted Stripe customer-portal session for the authenticated user. This endpoint does not accept a request body. It can only be used when the user already has a persisted stripe_customer_id. Requires Cognito JWT or Aura Historia access-token authentication. Delegated access tokens require users:read.

post/api/v1/me/billing/portal

Request

  • Base URL: https://api.stage.aura-historia.com
  • URL: https://api.stage.aura-historia.com/api/v1/me/billing/portal
  • Auth: HTTP bearer

Response

Billing portal session created successfully

urlstring uri required

Hosted Stripe URL that the frontend should redirect the authenticated user to

Example response

{
  "url": "https://checkout.stripe.com/c/pay/cs_test_123"
}

Changes

    • breaking

      removed the required property / from the response with the status

    • breaking

      removed the required property / from the response with the status

    • breaking

      removed the required property / from the response with the status

    • breaking

      removed the required property / from the response with the status

    • info

      added the required property / to the response with the status

    • info

      added the required property / to the response with the status

    • info

      added the required property / to the response with the status

    • info

      added the required property / to the response with the status