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

# Create a plan

> Creates a plan and its price table. When the plan is sold through Stripe it is mirrored into the Stripe catalog; if that mirroring fails the plan is still created and the response carries `stripe_sync_error`.



## OpenAPI

````yaml /openapi/platform.json post /platform/api/v1/billing/plans
openapi: 3.1.0
info:
  title: WiseApp API — Plataforma
  description: >-
    Referência completa da API do WiseApp: plataforma (provisionamento),
    aplicação (conta), cliente (canais públicos) e MCP.
  version: 1.1.0
servers:
  - url: https://chat.wiseapp360.com
    description: Sua instalação WiseApp
security: []
paths:
  /platform/api/v1/billing/plans:
    post:
      tags:
        - Billing Administration
      summary: Create a plan
      description: >-
        Creates a plan and its price table. When the plan is sold through Stripe
        it is mirrored into the Stripe catalog; if that mirroring fails the plan
        is still created and the response carries `stripe_sync_error`.
      operationId: create-billing-catalog-plan
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/billing_admin_plan_payload'
            example:
              plan:
                name: Growth
                slug: growth
                description: For teams that already run support on several channels.
                position: 2
                active: true
                public: true
                default_for_signup: false
                trial_days: 14
                trial_ai_actions: 200
                included_agents: 10
                included_inboxes: 5
                included_ai_actions: 5000
                included_captain_documents: 50
                features:
                  - channel_whatsapp
                  - captain_integration
                  - kanban_board
                  - sla
                providers:
                  - stripe
                  - asaas
                addon_rules:
                  extra_agents:
                    enabled: true
                    max_quantity: 20
                prices:
                  - currency: USD
                    interval: month
                    amount_cents: 4900
                  - currency: USD
                    interval: year
                    amount_cents: 49000
                  - currency: BRL
                    interval: month
                    amount_cents: 24900
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/billing_admin_plan_payload'
            example:
              plan:
                name: Growth
                slug: growth
                description: For teams that already run support on several channels.
                position: 2
                active: true
                public: true
                default_for_signup: false
                trial_days: 14
                trial_ai_actions: 200
                included_agents: 10
                included_inboxes: 5
                included_ai_actions: 5000
                included_captain_documents: 50
                features:
                  - channel_whatsapp
                  - captain_integration
                  - kanban_board
                  - sla
                providers:
                  - stripe
                  - asaas
                addon_rules:
                  extra_agents:
                    enabled: true
                    max_quantity: 20
                prices:
                  - currency: USD
                    interval: month
                    amount_cents: 4900
                  - currency: USD
                    interval: year
                    amount_cents: 49000
                  - currency: BRL
                    interval: month
                    amount_cents: 24900
      responses:
        '201':
          description: Plan created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/billing_admin_plan'
              example:
                id: 3
                name: Growth
                slug: growth
                description: For teams that already run support on several channels.
                position: 2
                active: true
                public: true
                default_for_signup: false
                trial_days: 14
                trial_ai_actions: 200
                included_agents: 10
                included_inboxes: 5
                included_ai_actions: 5000
                included_captain_documents: 50
                features:
                  - channel_whatsapp
                  - captain_integration
                  - kanban_board
                  - sla
                display_features:
                  - whatsapp
                  - captain_ai
                  - kanban
                  - sla
                providers:
                  - stripe
                  - asaas
                addon_rules:
                  extra_agents:
                    enabled: true
                    max_quantity: 20
                  extra_inboxes:
                    enabled: false
                captain_models:
                  chat:
                    allowed:
                      - claude-sonnet-5
                      - claude-haiku-4-5-20251001
                    default: claude-haiku-4-5-20251001
                shopify_plan_handle: null
                stripe_product_id: prod_R2kQvHnZ9xLmTa
                prices:
                  - id: 11
                    currency: USD
                    interval: month
                    amount_cents: 4900
                    stripe_price_id: price_1Q8xKzLhmFSOYwNq
                  - id: 12
                    currency: USD
                    interval: year
                    amount_cents: 49000
                    stripe_price_id: price_1Q8xL4LhmFSOYwNq
                  - id: 13
                    currency: BRL
                    interval: month
                    amount_cents: 24900
                    stripe_price_id: null
                subscriptions_count: 42
                created_at: '2026-02-11T09:14:03Z'
                updated_at: '2026-09-02T17:41:55Z'
        '401':
          description: Unauthorized. The token is not a valid platform app token.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/bad_request_error'
              example:
                error: Unauthorized
        '404':
          description: >-
            Native billing is not enabled on this installation, or the record
            was not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/bad_request_error'
              example:
                error: Resource not found
        '422':
          description: >-
            The plan or one of its prices is invalid, returned with the code
            `invalid_record`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/billing_error'
              example:
                message: Validation failed
                attributes:
                  - name cannot be blank
      security:
        - platformAppApiKey: []
components:
  schemas:
    billing_admin_plan_payload:
      type: object
      required:
        - plan
      properties:
        plan:
          type: object
          description: >-
            Attributes to set. On an update only the keys sent are changed,
            except `prices`, which always replaces the whole price table: a
            currency and interval missing from the list is deleted.
          properties:
            name:
              type: string
            slug:
              type: string
              description: >-
                Lower case, words separated by - or _. Derived from the name
                when omitted.
            description:
              type: string
            position:
              type: integer
            active:
              type: boolean
            public:
              type: boolean
            default_for_signup:
              type: boolean
            trial_days:
              type: integer
              minimum: 0
            trial_ai_actions:
              type: integer
              minimum: 0
            included_agents:
              type: integer
              minimum: 0
            included_inboxes:
              type: integer
              minimum: 0
            included_ai_actions:
              type: integer
              minimum: 0
            included_captain_documents:
              type: integer
              minimum: 0
            shopify_plan_handle:
              type: string
            features:
              type: array
              items:
                type: string
            providers:
              type: array
              items:
                type: string
                enum:
                  - stripe
                  - asaas
                  - dlocal_go
                  - paypal
                  - shopify
            addon_rules:
              type: object
              additionalProperties: true
              example:
                extra_agents:
                  enabled: true
                  max_quantity: 20
            captain_models:
              type: object
              additionalProperties: true
            prices:
              type: array
              items:
                $ref: '#/components/schemas/billing_admin_price'
      example:
        plan:
          name: Growth
          slug: growth
          description: For teams that already run support on several channels.
          position: 2
          active: true
          public: true
          default_for_signup: false
          trial_days: 14
          trial_ai_actions: 200
          included_agents: 10
          included_inboxes: 5
          included_ai_actions: 5000
          included_captain_documents: 50
          features:
            - channel_whatsapp
            - captain_integration
            - kanban_board
            - sla
          providers:
            - stripe
            - asaas
          addon_rules:
            extra_agents:
              enabled: true
              max_quantity: 20
          prices:
            - currency: USD
              interval: month
              amount_cents: 4900
            - currency: USD
              interval: year
              amount_cents: 49000
            - currency: BRL
              interval: month
              amount_cents: 24900
    billing_admin_plan:
      type: object
      description: A plan of the catalog, with every field an operator edits.
      properties:
        id:
          type: integer
        name:
          type: string
        slug:
          type: string
          description: Derived from the name when it is not given.
        description:
          type:
            - string
            - 'null'
        position:
          type: integer
        active:
          type: boolean
        public:
          type: boolean
          description: >-
            Whether the plan is offered to customers. Private plans can still be
            assigned by an operator.
        default_for_signup:
          type: boolean
          description: >-
            The plan new accounts start on. Setting it on one plan clears it on
            the others.
        trial_days:
          type: integer
        trial_ai_actions:
          type: integer
        included_agents:
          type: integer
        included_inboxes:
          type: integer
        included_ai_actions:
          type: integer
        included_captain_documents:
          type: integer
        features:
          type: array
          description: Technical feature flags granted by the plan.
          items:
            type: string
        display_features:
          type: array
          description: Commercial labels derived from `features`. Read only.
          items:
            type: string
        providers:
          type: array
          description: >-
            Gateways the plan is sold through. Empty means every configured
            gateway.
          items:
            type: string
            enum:
              - stripe
              - asaas
              - dlocal_go
              - paypal
              - shopify
        addon_rules:
          type: object
          description: >-
            Per add-on rules, keyed by add-on slug, with `enabled` and
            `max_quantity`.
          additionalProperties: true
        captain_models:
          type: object
          description: Captain models allowed by the plan and the default of each feature.
          additionalProperties: true
        shopify_plan_handle:
          type:
            - string
            - 'null'
        stripe_product_id:
          type:
            - string
            - 'null'
        prices:
          type: array
          items:
            $ref: '#/components/schemas/billing_admin_price'
        subscriptions_count:
          type: integer
          description: >-
            Accounts currently subscribed to the plan. A plan with subscriptions
            cannot be deleted.
        stripe_sync_error:
          type: string
          description: >-
            Only present when the plan was saved but could not be mirrored into
            Stripe.
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
      example:
        id: 3
        name: Growth
        slug: growth
        description: For teams that already run support on several channels.
        position: 2
        active: true
        public: true
        default_for_signup: false
        trial_days: 14
        trial_ai_actions: 200
        included_agents: 10
        included_inboxes: 5
        included_ai_actions: 5000
        included_captain_documents: 50
        features:
          - channel_whatsapp
          - captain_integration
          - kanban_board
          - sla
        display_features:
          - whatsapp
          - captain_ai
          - kanban
          - sla
        providers:
          - stripe
          - asaas
        addon_rules:
          extra_agents:
            enabled: true
            max_quantity: 20
          extra_inboxes:
            enabled: false
        captain_models:
          chat:
            allowed:
              - claude-sonnet-5
              - claude-haiku-4-5-20251001
            default: claude-haiku-4-5-20251001
        shopify_plan_handle: null
        stripe_product_id: prod_R2kQvHnZ9xLmTa
        prices:
          - id: 11
            currency: USD
            interval: month
            amount_cents: 4900
            stripe_price_id: price_1Q8xKzLhmFSOYwNq
          - id: 12
            currency: USD
            interval: year
            amount_cents: 49000
            stripe_price_id: price_1Q8xL4LhmFSOYwNq
          - id: 13
            currency: BRL
            interval: month
            amount_cents: 24900
            stripe_price_id: null
        subscriptions_count: 42
        created_at: '2026-02-11T09:14:03Z'
        updated_at: '2026-09-02T17:41:55Z'
    bad_request_error:
      title: data
      type: object
      properties:
        description:
          type: string
        errors:
          type: array
          items:
            $ref: '#/components/schemas/request_error'
    billing_error:
      type: object
      description: >-
        A billing error, with a stable machine-readable code next to the
        translated message.
      properties:
        error:
          type: string
          description: Message already translated to the locale of the account.
        code:
          type: string
          enum:
            - addon_not_available
            - addon_max_exceeded
            - invalid_quantity
            - billing_profile_required
            - provider_action_unavailable
            - price_unavailable
            - gateway_unavailable
            - subscription_required
            - cancellation_not_scheduled
            - payment_refused
            - invalid_profile
            - gateway_error
            - invalid_record
            - invalid_source
            - invalid_date
            - parameter_missing
      example:
        error: An active subscription is required.
        code: subscription_required
    billing_admin_price:
      type: object
      required:
        - currency
        - amount_cents
      description: One cell of the price table of a plan or an add-on.
      properties:
        id:
          type: integer
          description: Only present in responses.
        currency:
          type: string
          description: >-
            ISO 4217 code accepted by the catalog. Sent in any case, stored
            upper case.
          example: USD
        interval:
          type: string
          enum:
            - month
            - semester
            - year
        amount_cents:
          type: integer
          description: >-
            Amount in the smallest unit of the currency, or whole units for the
            zero-decimal ones (CLP, PYG).
        stripe_price_id:
          type:
            - string
            - 'null'
          description: Only present in responses, once the price is mirrored into Stripe.
      example:
        id: 11
        currency: USD
        interval: month
        amount_cents: 4900
        stripe_price_id: price_1Q8xKzLhmFSOYwNq
    request_error:
      type: object
      properties:
        field:
          type: string
        message:
          type: string
        code:
          type: string
  securitySchemes:
    platformAppApiKey:
      type: apiKey
      in: header
      name: api_access_token
      description: >-
        Token de um Platform App, gerado pelo super admin. Usado para
        provisionar contas, usuários, papéis e bots.

````

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