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

# Void a service charge

> Voids a service charge that is still unpaid (`open` or `overdue`), so the customer can no longer pay it.



## OpenAPI

````yaml /openapi/platform.json delete /platform/api/v1/accounts/{account_id}/billing/charges/{invoice_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/accounts/{account_id}/billing/charges/{invoice_id}:
    parameters:
      - $ref: '#/components/parameters/account_id'
        schema:
          type: string
        example: sample
    delete:
      tags:
        - Billing Administration
      summary: Void a service charge
      description: >-
        Voids a service charge that is still unpaid (`open` or `overdue`), so
        the customer can no longer pay it.
      operationId: void-account-billing-charge
      parameters:
        - name: invoice_id
          in: path
          required: true
          schema:
            type: integer
          description: Identifier of the service charge.
          example: 1
      responses:
        '200':
          description: Charge voided
          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
            or the invoice was not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/bad_request_error'
              example:
                error: Resource not found
        '422':
          description: The invoice is not an unpaid service charge (`invoice_not_payable`).
          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_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.