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

# Update an add-on

> Updates the attributes sent. Sending `prices` replaces the whole price table, so a currency and interval missing from the list is deleted.



## OpenAPI

````yaml /openapi/platform.json patch /platform/api/v1/billing/addons/{id}
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/addons/{id}:
    patch:
      tags:
        - Billing Administration
      summary: Update an add-on
      description: >-
        Updates the attributes sent. Sending `prices` replaces the whole price
        table, so a currency and interval missing from the list is deleted.
      operationId: update-billing-catalog-addon-2
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: integer
          example: 1
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/billing_admin_addon_payload'
            example:
              addon:
                name: Extra agents
                slug: extra_agents
                description: One more agent seat on top of the plan.
                kind: agent
                unit_quantity: 1
                position: 1
                active: true
                prices:
                  - currency: USD
                    interval: month
                    amount_cents: 1500
                  - currency: USD
                    interval: year
                    amount_cents: 15000
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/billing_admin_addon_payload'
            example:
              addon:
                name: Extra agents
                slug: extra_agents
                description: One more agent seat on top of the plan.
                kind: agent
                unit_quantity: 1
                position: 1
                active: true
                prices:
                  - currency: USD
                    interval: month
                    amount_cents: 1500
                  - currency: USD
                    interval: year
                    amount_cents: 15000
      responses:
        '200':
          description: Add-on updated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/billing_admin_addon'
              example:
                id: 7
                name: Extra agents
                slug: extra_agents
                description: One more agent seat on top of the plan.
                kind: agent
                billing_type: recurring
                feature: null
                unit_quantity: 1
                position: 1
                active: true
                stripe_product_id: prod_R2kQwAddonSeat
                prices:
                  - id: 21
                    currency: USD
                    interval: month
                    amount_cents: 1500
                    stripe_price_id: price_1Q8xMaLhmFSOYwNq
                  - id: 22
                    currency: USD
                    interval: year
                    amount_cents: 15000
                    stripe_price_id: price_1Q8xMfLhmFSOYwNq
                created_at: '2026-02-11T09:20:41Z'
                updated_at: '2026-08-19T12:02:10Z'
        '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 add-on 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_addon_payload:
      type: object
      required:
        - addon
      properties:
        addon:
          type: object
          description: >-
            Attributes to set. `prices` always replaces the whole price table: a
            currency and interval missing from the list is deleted.
          properties:
            name:
              type: string
            slug:
              type: string
            description:
              type: string
            kind:
              type: string
              enum:
                - agent
                - inbox
                - feature
                - custom
            billing_type:
              type: string
              enum:
                - recurring
                - one_time
              description: >-
                Only `custom` add-ons can be `one_time`; their prices then use
                the `one_time` interval.
            feature:
              type: string
              description: Required for `feature` add-ons. Must be a known account feature.
            scope:
              type: string
              enum:
                - account
                - inbox
              description: '`inbox` is only kept for `waha_voice_calls`.'
            includes_inbox:
              type: boolean
              description: >-
                Only kept for `whatsapp_waha`, `whatsapp_evolution` and
                `whatsapp_uazapi`.
            requires_features:
              type: array
              items:
                type: string
              description: >-
                Only offer the add-on to accounts with at least one of these
                features on. Only the features the add-on feature depends on are
                kept (for example `waha_voice_calls` on `whatsapp_waha`,
                `wavoip` on `channel_whatsapp` or `channel_api`).
            unit_quantity:
              type: integer
              minimum: 1
            position:
              type: integer
            active:
              type: boolean
            prices:
              type: array
              items:
                $ref: '#/components/schemas/billing_admin_price'
      example:
        addon:
          name: Extra agents
          slug: extra_agents
          description: One more agent seat on top of the plan.
          kind: agent
          unit_quantity: 1
          position: 1
          active: true
          prices:
            - currency: USD
              interval: month
              amount_cents: 1500
            - currency: USD
              interval: year
              amount_cents: 15000
    billing_admin_addon:
      type: object
      description: An add-on of the catalog.
      properties:
        id:
          type: integer
        name:
          type: string
        slug:
          type: string
          description: >-
            Key used when a customer updates quantities. Derived from the name
            when it is not given.
        description:
          type:
            - string
            - 'null'
        kind:
          type: string
          enum:
            - agent
            - inbox
            - feature
            - custom
          description: >-
            `agent` and `inbox` raise that limit, `feature` turns `feature` on
            while subscribed (one unit at most, hidden on plans that already
            include it) and `custom` is a service the operator delivers.
        billing_type:
          type: string
          enum:
            - recurring
            - one_time
          description: >-
            `one_time` add-ons (only `custom`) are bought with a single payment
            through the purchase endpoint and priced with the `one_time`
            interval; the rest are charged with the subscription.
        feature:
          type:
            - string
            - 'null'
          description: Account feature a `feature` add-on turns on.
        scope:
          type: string
          enum:
            - account
            - inbox
          description: >-
            `inbox` (only for `waha_voice_calls`) sells the feature per inbox:
            each unit turns it on in one inbox. `account` switches it on for the
            whole account.
        includes_inbox:
          type: boolean
          description: >-
            Only for WhatsApp provider features (`whatsapp_waha`,
            `whatsapp_evolution`, `whatsapp_uazapi`): each unit adds one inbox
            that only that provider can use, on top of the plan limit.
        requires_features:
          type: array
          items:
            type: string
          description: >-
            The add-on is only offered to accounts with at least one of these
            features on. Empty offers it to every account.
        unit_quantity:
          type: integer
          description: How much of the resource one unit of the add-on grants.
        position:
          type: integer
        active:
          type: boolean
        stripe_product_id:
          type:
            - string
            - 'null'
        prices:
          type: array
          items:
            $ref: '#/components/schemas/billing_admin_price'
        stripe_sync_error:
          type: string
          description: >-
            Only present when the add-on 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: 7
        name: Extra agents
        slug: extra_agents
        description: One more agent seat on top of the plan.
        kind: agent
        billing_type: recurring
        feature: null
        unit_quantity: 1
        position: 1
        active: true
        stripe_product_id: prod_R2kQwAddonSeat
        prices:
          - id: 21
            currency: USD
            interval: month
            amount_cents: 1500
            stripe_price_id: price_1Q8xMaLhmFSOYwNq
          - id: 22
            currency: USD
            interval: year
            amount_cents: 15000
            stripe_price_id: price_1Q8xMfLhmFSOYwNq
        created_at: '2026-02-11T09:20:41Z'
        updated_at: '2026-08-19T12:02:10Z'
    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.