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

# Charge a service to an account

> Creates a one-off charge (consulting, onboarding, a data migration...) in the account billing currency. The account administrators are emailed and pay it from their billing page through the gateway that charges that currency. An unpaid charge only turns `overdue` after its due date: it never suspends the account.



## OpenAPI

````yaml /openapi/platform.json post /platform/api/v1/accounts/{account_id}/billing/charges
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/accounts/{account_id}/billing/charges:
    parameters:
      - $ref: '#/components/parameters/account_id'
        schema:
          type: string
        example: sample
    post:
      tags:
        - Billing Administration
      summary: Charge a service to an account
      description: >-
        Creates a one-off charge (consulting, onboarding, a data migration...)
        in the account billing currency. The account administrators are emailed
        and pay it from their billing page through the gateway that charges that
        currency. An unpaid charge only turns `overdue` after its due date: it
        never suspends the account.
      operationId: create-account-billing-charge
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/billing_admin_charge_payload'
            example:
              amount_cents: 49700
              description: Onboarding consulting
              due_at: '2026-10-15'
              note: Signed proposal of September
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/billing_admin_charge_payload'
            example:
              amount_cents: 49700
              description: Onboarding consulting
              due_at: '2026-10-15'
              note: Signed proposal of September
      responses:
        '201':
          description: Charge created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/billing_invoice'
              example:
                id: 184
                kind: subscription
                amount_cents: 4900
                currency: USD
                status: paid
                provider: stripe
                description: null
                payable: false
                pending_checkout: false
                hosted_invoice_url: https://invoice.stripe.com/i/acct_1Q8x/test_YWNjdF8x
                fiscal_document_number: null
                fiscal_document_pdf_url: null
                due_at: '2026-09-01T00:00:00Z'
                paid_at: '2026-09-01T03:12:44Z'
                created_at: '2026-08-25T00:00:12Z'
        '401':
          description: >-
            Unauthorized. The token is not a valid platform app token, or the
            account was not granted to this platform app.
          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: >-
            Invalid charge (`invalid_amount`, `description_required`,
            `invalid_date`), no gateway charges the account currency
            (`gateway_unavailable`), or the account is billed through Shopify
            (`provider_action_unavailable`).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/billing_error'
              example:
                message: Validation failed
                attributes:
                  - name cannot be blank
      security:
        - platformAppApiKey: []
components:
  parameters:
    account_id:
      in: path
      name: account_id
      schema:
        type: integer
      required: true
      description: The numeric ID of the account
  schemas:
    billing_admin_charge_payload:
      type: object
      required:
        - amount_cents
        - description
      properties:
        amount_cents:
          type: integer
          minimum: 1
          description: Amount in cents of the account billing currency.
        description:
          type: string
          description: >-
            What is being charged, shown to the customer in the billing page,
            the gateway checkout and the email.
        due_at:
          type: string
          format: date
          description: >-
            Optional due date, taken to the end of that day. Past it the charge
            turns `overdue`; the account is not suspended.
        note:
          type: string
          description: Internal note, only shown in Super Admin.
      example:
        amount_cents: 49700
        description: Onboarding consulting
        due_at: '2026-10-15'
        note: Signed proposal of September
    billing_invoice:
      type: object
      description: >-
        A billing document of the account. Scheduled charges and unpaid first
        charges of abandoned checkouts are not listed.
      properties:
        id:
          type: integer
        kind:
          type: string
          enum:
            - subscription
            - proration
            - addons
            - credit_package
            - service
          description: >-
            `service` is a one-off charge raised by Super Admin or the platform
            API (consulting, onboarding...).
        amount_cents:
          type: integer
        currency:
          type: string
        status:
          type: string
          enum:
            - open
            - paid
            - overdue
            - void
            - refunded
            - chargeback
        provider:
          type: string
          enum:
            - stripe
            - asaas
            - dlocal_go
            - paypal
            - shopify
            - manual
          description: Gateway that charges the invoice.
        description:
          type:
            - string
            - 'null'
          description: What a service charge is for; null for the other kinds.
        payable:
          type: boolean
          description: >-
            True for an unpaid service charge, which the account pays with `POST
            billing/invoices/{invoice_id}/pay`.
        pending_checkout:
          type: boolean
          description: True for the first charge of a checkout the customer left unpaid.
        hosted_invoice_url:
          type:
            - string
            - 'null'
          format: uri
          description: Gateway-hosted page to pay or review the invoice.
        fiscal_document_number:
          type:
            - string
            - 'null'
        fiscal_document_pdf_url:
          type:
            - string
            - 'null'
          format: uri
          description: Only returned once the fiscal document is authorized.
        due_at:
          type:
            - string
            - 'null'
          format: date-time
        paid_at:
          type:
            - string
            - 'null'
          format: date-time
        created_at:
          type: string
          format: date-time
      example:
        id: 184
        kind: subscription
        amount_cents: 4900
        currency: USD
        status: paid
        provider: stripe
        description: null
        payable: false
        pending_checkout: false
        hosted_invoice_url: https://invoice.stripe.com/i/acct_1Q8x/test_YWNjdF8x
        fiscal_document_number: null
        fiscal_document_pdf_url: null
        due_at: '2026-09-01T00:00:00Z'
        paid_at: '2026-09-01T03:12:44Z'
        created_at: '2026-08-25T00:00:12Z'
    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:
    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.