> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Start the Agent Simulations plan on Stripe Checkout

> Creates a Stripe Checkout session for the monthly plan and returns its url. Checkout takes the card, also for a free first month (trialAvailable), and returns to returnPath on the dashboard with plan_checkout={sessionId} added; POST /current/plan/checkout/{sessionId}/confirm then activates the plan and adds its credits (the subscription webhooks do the same if the buyer never comes back). Leaving Checkout returns to returnPath unchanged. A current plan answers 409 plan_active: resume a cancelled one with POST /current/plan. The terms and renewal are required as on POST /current/plan, and both are recorded before the session is created (409 terms_required, terms_stale, disclosure_required). Organization admins only.



## OpenAPI

````yaml https://api.zeroclick.io/openapi.json post /v1/organizations/current/plan/checkout
openapi: 3.0.0
info:
  title: ZeroClick API
  description: >-
    REST API for managing ZeroClick sellers, services, pricing, usage, and
    analytics. Authenticate with an API key from the ZeroClick dashboard.
  version: 1.0.0
servers:
  - url: https://api.zeroclick.io
security:
  - bearerAuth: []
tags:
  - name: API keys
  - name: Sellers
  - name: Services
  - name: Meters
  - name: Plans
  - name: Plan meter prices
  - name: Usage
  - name: Analytics
  - name: Agentify
  - name: Stripe Connect
  - name: Sandbox
  - name: Organizations
  - name: Users
paths:
  /v1/organizations/current/plan/checkout:
    post:
      tags:
        - Organizations
      summary: Start the Agent Simulations plan on Stripe Checkout
      description: >-
        Creates a Stripe Checkout session for the monthly plan and returns its
        url. Checkout takes the card, also for a free first month
        (trialAvailable), and returns to returnPath on the dashboard with
        plan_checkout={sessionId} added; POST
        /current/plan/checkout/{sessionId}/confirm then activates the plan and
        adds its credits (the subscription webhooks do the same if the buyer
        never comes back). Leaving Checkout returns to returnPath unchanged. A
        current plan answers 409 plan_active: resume a cancelled one with POST
        /current/plan. The terms and renewal are required as on POST
        /current/plan, and both are recorded before the session is created (409
        terms_required, terms_stale, disclosure_required). Organization admins
        only.
      parameters:
        - schema:
            type: string
            minLength: 1
            maxLength: 200
          in: header
          name: idempotency-key
          required: true
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                clientIp:
                  anyOf:
                    - type: string
                      format: ipv4
                      pattern: >-
                        ^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$
                    - type: string
                      format: ipv6
                      pattern: >-
                        ^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$
                clientUserAgent:
                  type: string
                  minLength: 1
                  maxLength: 512
                clientCountry:
                  type: string
                  minLength: 2
                  maxLength: 2
                renewal:
                  type: object
                  properties:
                    disclosure:
                      type: string
                      minLength: 1
                      maxLength: 4000
                  required:
                    - disclosure
                terms:
                  type: object
                  properties:
                    version:
                      type: string
                      minLength: 1
                      maxLength: 80
                    sha256:
                      type: string
                      pattern: ^[0-9a-f]{64}$
                    consentText:
                      type: string
                      minLength: 1
                      maxLength: 1000
                  required:
                    - version
                    - sha256
                    - consentText
                returnPath:
                  type: string
                  maxLength: 500
                  pattern: ^\/(?![/\\])[^\s\\]*$
              required:
                - returnPath
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  url:
                    type: string
                required:
                  - url
                additionalProperties: false
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        API key created in the ZeroClick dashboard under Settings → API keys.
        Keys start with `zc_`. Send them as `Authorization: Bearer zc_...`.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.