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

# Mark an invoice as paid

> Record a payment received outside NeetoInvoice, such as a bank transfer, against a generated invoice. Without `amount`, the full remaining balance is recorded and the invoice becomes `paid`. A partial amount keeps the invoice `generated` until the balance reaches 0. The invoice PDF is regenerated to show the payment.

> [!NOTE]
>
> Replace `{your-subdomain}` with your workspace's subdomain. \
> Learn how to find your subdomain in [Workspace subdomain](https://apidocs.neetoinvoice.com/api/workspace-subdomain.md).


## OpenAPI

````yaml bundled/invoices.yaml POST /clients/{client_id}/invoices/{invoice_id}/mark-paid
openapi: 3.0.3
info:
  title: NeetoInvoice APIs
  version: 2.0.0
servers:
  - description: NeetoInvoice APIs
    url: https://{your-subdomain}.neetoinvoice.com/api/external/v2
    variables:
      your-subdomain:
        default: spinkart
        description: >-
          Replace **spinkart** with your [workspace's
          subdomain](/api/workspace-subdomain).
security: []
paths:
  /clients/{client_id}/invoices/{invoice_id}/mark-paid:
    post:
      tags:
        - Invoices
      summary: Mark an invoice as paid
      description: >-
        Record a payment received outside NeetoInvoice, such as a bank transfer,
        against a generated invoice. Without `amount`, the full remaining
        balance is recorded and the invoice becomes `paid`. A partial amount
        keeps the invoice `generated` until the balance reaches 0. The invoice
        PDF is regenerated to show the payment.
      parameters:
        - $ref: '#/components/parameters/api_key_header'
        - $ref: '#/components/parameters/client_id_param'
        - in: path
          name: invoice_id
          description: >-
            The invoice's number as printed on the document, its identifier, or
            its ID.
          required: true
          schema:
            type: string
          example: INV-2026-042
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/invoice_mark_paid_request'
      responses:
        '200':
          description: OK - Payment recorded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/invoice_mark_paid_response'
        '404':
          description: Not Found - The client or invoice does not exist
        '422':
          description: >-
            Unprocessable Entity - The invoice is not `generated` (for example
            already paid or written off), or a field is invalid: missing or
            unknown `payment_method`, `amount` not greater than 0, above the
            balance or with more than 2 decimal places, or `payment_date` not in
            `YYYY-MM-DD` format. The body lists every invalid field in
            `field_errors`.
components:
  parameters:
    api_key_header:
      in: header
      name: X-Api-Key
      description: >-
        Use the X-Api-Key header to provide your workspace API key. Refer to
        [Authentication](/api/authentication) for more information.
      required: true
      schema:
        type: string
        default: your-api-key
    client_id_param:
      in: path
      name: client_id
      description: >-
        Unique ID of the client for which you want to retrieve or update
        details. Refer to [Getting the Client ID](/api/getting-client-id)
        section for detailed instructions.
      required: true
      schema:
        type: string
      example: a8b90a464cad12b48e45
  schemas:
    invoice_mark_paid_request:
      type: object
      required:
        - payment_method
        - email
      properties:
        payment_method:
          type: string
          description: How the payment was made.
          enum:
            - ACH
            - Bank Transfer
            - Cash
            - Check
            - Debit
            - Credit Card
          example: Bank Transfer
        amount:
          type: number
          format: float
          description: >-
            Amount received, with at most 2 decimal places. Must be greater than
            0 and no more than the invoice's balance. Defaults to the full
            remaining balance. A partial amount leaves the invoice `generated`;
            it becomes `paid` once the balance reaches 0.
          example: 1250.5
        payment_date:
          type: string
          format: date
          description: >-
            Date the payment was received in `YYYY-MM-DD` format. Defaults to
            today.
          example: '2026-11-19'
        notes:
          type: string
          description: Notes saved with the payment, such as a bank reference.
          example: Wire ref 9001
        notify_client:
          type: boolean
          description: Whether to email the invoice's recipients a payment confirmation.
          default: false
          example: false
        email:
          type: string
          format: email
          description: >-
            Email of the acting user. Required when you authenticate with an API
            key.
          example: oliver@example.com
    invoice_mark_paid_response:
      type: object
      properties:
        id:
          type: string
          format: uuid
        number:
          type: string
          example: INV-2026-042
        status:
          type: string
          description: '`paid` once the balance reaches 0, otherwise `generated`.'
          enum:
            - generated
            - paid
          example: paid
        amount_paid:
          type: number
          format: float
          description: Total of all payments recorded against the invoice.
          example: 2500
        balance:
          type: number
          format: float
          description: Amount still owed.
          example: 0
        payment_transaction_id:
          type: string
          format: uuid
          description: ID of the payment just recorded.

````

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