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

# Subscribe to Solo or Pro, monthly or yearly (owners)

> With the payment method the SetupIntent collected. Paying in BRL needs the CPF or CNPJ and the billing address. `action_client_secret` is set when the first payment needs the customer (3-D Secure).



## OpenAPI

````yaml /api-reference/openapi.json post /orgs/{orgId}/billing/subscribe
openapi: 3.1.0
info:
  title: Apsio API
  version: 0.1.0
  description: >-
    Read API v0: your projects, release health and comparisons, missing symbols,
    issues, sessions, vitals, cohort comparisons, performance (app start,
    screens, hangs, MetricKit) and network endpoints and traces for one project.
    Authenticate with a project token as a bearer token, with an OAuth access
    token from Apsio's authorization server (MCP clients), or, from the console,
    with the session cookie of a member of the project's organization.
servers:
  - url: https://api.apsio.io/v1
security: []
paths:
  /orgs/{orgId}/billing/subscribe:
    post:
      summary: Subscribe to Solo or Pro, monthly or yearly (owners)
      description: >-
        With the payment method the SetupIntent collected. Paying in BRL needs
        the CPF or CNPJ and the billing address. `action_client_secret` is set
        when the first payment needs the customer (3-D Secure).
      parameters:
        - schema:
            type: string
            pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
            example: 0192f3a4-0000-7000-8000-00000000a001
          required: true
          name: orgId
          in: path
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                plan:
                  type: string
                  enum:
                    - solo
                    - pro
                interval:
                  type: string
                  enum:
                    - month
                    - year
                setup_intent_id:
                  type: string
                  pattern: ^seti_[A-Za-z0-9]+$
                tax_id:
                  type: string
                  maxLength: 32
                address:
                  type: object
                  properties:
                    line1:
                      type: string
                      minLength: 1
                      maxLength: 200
                    line2:
                      type: string
                      maxLength: 200
                    city:
                      type: string
                      minLength: 1
                      maxLength: 100
                    state:
                      type: string
                      minLength: 2
                      maxLength: 50
                    postal_code:
                      type: string
                      minLength: 1
                      maxLength: 20
                  required:
                    - line1
                    - city
                    - state
                    - postal_code
              required:
                - plan
                - interval
                - setup_intent_id
      responses:
        '200':
          description: Billing, with the new subscription
        '503':
          description: Billing is not enabled
      security:
        - session: []
components:
  securitySchemes:
    session:
      type: apiKey
      in: cookie
      name: apsio_session
      description: >-
        The console session, set by /v1/auth/callback (`__Host-apsio_session`
        when host-only).

````

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