Skip to content
Sign in Create account

POST consumer-billing/portal

POST /api/v1/consumer-billing/portal

Creates a billing portal session for the signed-in consumer.

Authenticate with a portal session token.

Request body

application/json object

  • return_url string (uri) required
    Length: at most 2048 characters

Generated sample

{
  "return_url": "https://example.com"
}

Responses

200 Successful response.

application/json object

Any keys are accepted.

401 Error response.

application/json GenericError

  • error any

    One of

    • string
    • object

      Any keys are accepted.

  • error_code string
  • code string
  • message string
  • detail string
  • status any

    One of

    • string
    • integer
  • errors object

    Any keys are accepted.

422 The request failed validation.

application/json object

Any keys are accepted.

429 The route throttle limit was exceeded.

application/json GenericError

  • error any

    One of

    • string
    • object

      Any keys are accepted.

  • error_code string
  • code string
  • message string
  • detail string
  • status any

    One of

    • string
    • integer
  • errors object

    Any keys are accepted.

text/html string

502 Error response.

application/json GenericError

  • error any

    One of

    • string
    • object

      Any keys are accepted.

  • error_code string
  • code string
  • message string
  • detail string
  • status any

    One of

    • string
    • integer
  • errors object

    Any keys are accepted.