Skip to content
Sign in Create account

POST consumer-billing/checkout

POST /api/v1/consumer-billing/checkout

Creates a checkout session for a selected subscription plan.

Authenticate with a portal session token.

Request body

application/json object

  • cancel_url string (uri) required
    Length: at most 2048 characters
  • plan string required
  • success_url string (uri) required
    Length: at most 2048 characters

Generated sample

{
  "cancel_url": "https://example.com",
  "plan": "string",
  "success_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.

409 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.