> ## 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 the billing profile

> Creates or updates the billing details of the account. Requires the administrator role.



## OpenAPI

````yaml /openapi/application.json put /enterprise/api/v1/accounts/{account_id}/billing/profile
openapi: 3.1.0
info:
  title: WiseApp API — Aplicação
  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:
  /enterprise/api/v1/accounts/{account_id}/billing/profile:
    parameters:
      - $ref: '#/components/parameters/account_id'
        schema:
          type: string
        example: sample
    put:
      tags:
        - Billing
      summary: Update the billing profile
      description: >-
        Creates or updates the billing details of the account. Requires the
        administrator role.
      operationId: update-billing-profile
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/billing_profile_payload'
            example:
              profile:
                legal_name: Acme Atendimento LTDA
                email: financeiro@acme.example
                phone: '+5511998877665'
                country: BR
                tax_id: 12.345.678/0001-99
                tax_id_type: cnpj
                address:
                  street: Av. Paulista 1000
                  city: Sao Paulo
                  postal_code: 01310-100
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/billing_profile_payload'
            example:
              profile:
                legal_name: Acme Atendimento LTDA
                email: financeiro@acme.example
                phone: '+5511998877665'
                country: BR
                tax_id: 12.345.678/0001-99
                tax_id_type: cnpj
                address:
                  street: Av. Paulista 1000
                  city: Sao Paulo
                  postal_code: 01310-100
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/billing_profile'
              example:
                legal_name: Acme Atendimento LTDA
                email: financeiro@acme.example
                phone: '+5511998877665'
                country: BR
                tax_id: '12345678000199'
                tax_id_type: cnpj
                address:
                  street: Av. Paulista 1000
                  city: Sao Paulo
                  postal_code: 01310-100
                required: true
                complete: true
        '401':
          description: Unauthorized. The user is not an administrator of the account.
          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 account
            was not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/bad_request_error'
              example:
                error: Resource not found
        '422':
          description: The profile is invalid, returned with the code `invalid_profile`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/billing_error'
              example:
                message: Validation failed
                attributes:
                  - name cannot be blank
      security:
        - userApiKey: []
components:
  parameters:
    account_id:
      in: path
      name: account_id
      schema:
        type: integer
      required: true
      description: The numeric ID of the account
  schemas:
    billing_profile_payload:
      type: object
      required:
        - profile
      properties:
        profile:
          type: object
          properties:
            legal_name:
              type: string
            email:
              type: string
            phone:
              type: string
            country:
              type: string
              description: ISO 3166-1 alpha-2 country code.
              example: BR
            tax_id:
              type: string
              description: >-
                For cpf and cnpj, non-digits are stripped and the length is
                validated.
            tax_id_type:
              type: string
              enum:
                - cpf
                - cnpj
                - other
            address:
              type: object
              additionalProperties: true
      example:
        profile:
          legal_name: Acme Atendimento LTDA
          email: financeiro@acme.example
          phone: '+5511998877665'
          country: BR
          tax_id: 12.345.678/0001-99
          tax_id_type: cnpj
          address:
            street: Av. Paulista 1000
            city: Sao Paulo
            postal_code: 01310-100
    billing_profile:
      type: object
      description: >-
        Billing details of the account, used to issue invoices and, for some
        gateways, to create the customer.
      properties:
        legal_name:
          type:
            - string
            - 'null'
        email:
          type:
            - string
            - 'null'
        phone:
          type:
            - string
            - 'null'
        country:
          type:
            - string
            - 'null'
          description: ISO 3166-1 alpha-2 country code.
          example: BR
        tax_id:
          type:
            - string
            - 'null'
        tax_id_type:
          type:
            - string
            - 'null'
          enum:
            - cpf
            - cnpj
            - other
            - null
        address:
          type: object
          description: Free-form address attributes.
          additionalProperties: true
        required:
          type: boolean
          description: Whether any available gateway requires the profile to be filled in.
        complete:
          type: boolean
          description: >-
            Whether the profile satisfies the requirements of the gateway of the
            account.
      example:
        legal_name: Acme Atendimento LTDA
        email: financeiro@acme.example
        phone: '+5511998877665'
        country: BR
        tax_id: '12345678000199'
        tax_id_type: cnpj
        address:
          street: Av. Paulista 1000
          city: Sao Paulo
          postal_code: 01310-100
        required: true
        complete: true
    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
    request_error:
      type: object
      properties:
        field:
          type: string
        message:
          type: string
        code:
          type: string
  securitySchemes:
    userApiKey:
      type: apiKey
      in: header
      name: api_access_token
      description: >-
        Token de acesso do usuário (Perfil → Token de acesso). Dá acesso
        conforme o papel do usuário e age em nome dele.

````

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