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

# Marks an invoice paid — fully, or partially if an amount is given.



## OpenAPI

````yaml https://api.billino.io/docs/openapi.json post /v1/public/invoices/{id}/mark-paid
openapi: 3.0.4
info:
  title: Billino Public API
  description: >-
    Public API for integrating with Billino.


    **Authentication**: every request needs an API key, generated from the
    dashboard's Settings → API page, sent as `Authorization: Bearer bk_...`.
  contact:
    name: Billino
    url: https://billino.io/contact
    email: support@billino.io
  version: v1
servers:
  - url: https://api.billino.io
security: []
tags:
  - name: PublicCatalog
  - name: PublicInvoices
  - name: PublicProfiles
  - name: PublicRecipients
  - name: PublicSuppliers
  - name: PublicVatCheck
paths:
  /v1/public/invoices/{id}/mark-paid:
    post:
      tags:
        - PublicInvoices
      summary: Marks an invoice paid — fully, or partially if an amount is given.
      parameters:
        - name: id
          in: path
          description: The invoice id.
          required: true
          schema:
            type: string
            format: uuid
      requestBody:
        description: >-
          Omit the amount (or the whole body) to pay off the remaining balance
          in full.
        content:
          application/json:
            schema:
              allOf:
                - $ref: '#/components/schemas/PublicMarkAsPaidRequest'
              description: >-
                Marks an invoice paid — fully, or partially if an amount is
                given.
          text/json:
            schema:
              allOf:
                - $ref: '#/components/schemas/PublicMarkAsPaidRequest'
              description: >-
                Marks an invoice paid — fully, or partially if an amount is
                given.
          application/*+json:
            schema:
              allOf:
                - $ref: '#/components/schemas/PublicMarkAsPaidRequest'
              description: >-
                Marks an invoice paid — fully, or partially if an amount is
                given.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicInvoiceModel'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApplicationProblemDetailsModel'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApplicationProblemDetailsModel'
        '429':
          description: Too Many Requests
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
      security:
        - ApiKey: []
components:
  schemas:
    PublicMarkAsPaidRequest:
      type: object
      properties:
        amount:
          type: number
          description: >-
            Omit to pay off whatever is currently still owed (the remaining
            balance, not

            necessarily the invoice's original total) and mark the invoice fully
            paid. Set to

            record a partial payment instead — the invoice becomes
            `partially_paid` unless

            this amount happens to cover what's left, which completes it the
            same as omitting it.

            Rejected if it exceeds the remaining balance.
          format: double
          nullable: true
      additionalProperties: false
      description: Marks an invoice paid — fully, or partially if an amount is given.
    PublicInvoiceModel:
      required:
        - amount_paid
        - currency
        - date_format
        - id
        - issue_date
        - items
        - language
        - status
        - subtotal
        - tax_amount
        - total
      type: object
      properties:
        id:
          type: string
          description: Our internal id for this invoice.
          format: uuid
        status:
          allOf:
            - $ref: '#/components/schemas/SalesDocumentStatus'
          description: Current lifecycle state.
        document_number:
          type: string
          description: Assigned once issued — `null` for a draft.
          nullable: true
        issue_date:
          type: string
          description: >-
            The date printed on the invoice — the same field the dashboard calls
            "Issue date".
          format: date
        due_date:
          type: string
          description: Payment due date — defaulted server-side if you didn't pass one.
          format: date
          nullable: true
        currency:
          allOf:
            - $ref: '#/components/schemas/CurrencyCode'
          description: ISO 4217 currency code.
        internal_notes:
          type: string
          description: Private notes for your own records — never shown to the recipient.
          nullable: true
        reference_number:
          type: string
          description: Your own reference number, if set.
          nullable: true
        date_format:
          allOf:
            - $ref: '#/components/schemas/DateFormatType'
          description: >-
            How dates are formatted on the generated document — defaulted from
            your
                        business profile if you didn't pass one.
        language:
          allOf:
            - $ref: '#/components/schemas/LanguageCode'
          description: >-
            The invoice's display language — defaulted from the recipient's
            billing
                        language, or English, if you didn't pass one.
        number_separator_format:
          allOf:
            - $ref: '#/components/schemas/NumberSeparatorFormat'
          description: How numbers are formatted on the generated document, if set.
          nullable: true
        currency_display_style:
          allOf:
            - $ref: '#/components/schemas/CurrencyDisplayStyle'
          description: >-
            How the currency symbol/code is displayed on the generated document,
            if set.
          nullable: true
        subtotal:
          type: number
          description: Sum of all line items, excluding tax.
          format: double
        tax_amount:
          type: number
          description: Total tax across all line items.
          format: double
        total:
          type: number
          description: Subtotal plus tax — the amount due.
          format: double
        amount_paid:
          type: number
          description: Sum of payments recorded so far — 0 if none. See `mark-paid`.
          format: double
        applied_transaction_type:
          allOf:
            - $ref: '#/components/schemas/TransactionType'
          description: >-
            The tax transaction type this invoice was classified as (e.g.
            domestic,
                        intra-EU reverse-charge, export) — determines which clauses apply.
          nullable: true
        applied_tax_clauses:
          type: array
          items:
            type: string
          description: Legal tax-exemption clauses printed on the invoice, if any apply.
          nullable: true
        items:
          type: array
          items:
            $ref: '#/components/schemas/PublicInvoiceItemModel'
          description: The invoice's line items, with their server-computed tax rates.
        recipient:
          allOf:
            - $ref: '#/components/schemas/PublicRecipientModel'
          description: >-
            The full recipient — whether it was looked up via `external_id` or
            just created

            inline, you always get complete contact info back here without a
            second call.
          nullable: true
          example:
            id: b7f1c2a0-5e2b-4b8a-9c1a-2f3e4d5c6b7a
            external_id: crm-12345
            client_type: business
            company_name: Acme GmbH
            email: billing@acme.example
            country_code: de
            address:
              street: Musterstraße 1
              city: Berlin
              postal_code: '10115'
              country: de
      additionalProperties: false
      description: An invoice, including everything needed to review it before issuing.
      example:
        id: d4c3b2a1-6f5e-4d3c-9b8a-7f6e5d4c3b2a
        status: draft
        document_number: null
        issue_date: '2026-10-02'
        due_date: '2026-10-16'
        currency: eur
        reference_number: PO-4711
        date_format: dd_dot_mm_dot_yyyy
        language: en
        subtotal: 200
        tax_amount: 38
        total: 238
        applied_transaction_type: domestic
        applied_tax_clauses: null
        items:
          - id: e5f6a7b8-1c2d-4e3f-8a9b-0c1d2e3f4a5b
            name: Consulting Session
            description: null
            quantity: 2
            unit_price: 100
            unit: c62
            tax_rate: 0.19
            vat_rate_tier: standard
            catalog_item_id: c1d2e3f4-5a6b-4c7d-8e9f-0a1b2c3d4e5f
        recipient:
          id: b7f1c2a0-5e2b-4b8a-9c1a-2f3e4d5c6b7a
          external_id: crm-12345
          client_type: business
          company_name: Acme GmbH
          email: billing@acme.example
          country_code: de
          address:
            street: Musterstraße 1
            city: Berlin
            postal_code: '10115'
            country: de
    ApplicationProblemDetailsModel:
      type: object
      properties:
        type:
          type: string
          nullable: true
        title:
          type: string
          nullable: true
        status:
          type: integer
          format: int32
          nullable: true
        detail:
          type: string
          nullable: true
        instance:
          type: string
          nullable: true
        trace_id:
          type: string
        errors:
          type: array
          items:
            type: string
      additionalProperties: {}
    ProblemDetails:
      type: object
      properties:
        type:
          type: string
          nullable: true
        title:
          type: string
          nullable: true
        status:
          type: integer
          format: int32
          nullable: true
        detail:
          type: string
          nullable: true
        instance:
          type: string
          nullable: true
      additionalProperties: {}
    SalesDocumentStatus:
      enum:
        - draft
        - issued
        - partially_paid
        - voided
        - paid
      type: string
    CurrencyCode:
      enum:
        - USD
        - EUR
        - GBP
        - JPY
        - CAD
        - AUD
        - CHF
        - CNY
        - INR
        - BRL
        - MXN
        - SGD
        - HKD
        - SEK
        - NOK
        - DKK
        - BGN
        - CZK
        - HUF
        - PLN
        - RON
        - RUB
        - ZAR
        - TRY
        - AED
      type: string
    DateFormatType:
      enum:
        - dd/MM/yyyy
        - MM/dd/yyyy
        - yyyy-MM-dd
        - MMM dd, yyyy
        - dd.MM.yyyy
      type: string
    LanguageCode:
      enum:
        - en
        - de
        - el
      type: string
    NumberSeparatorFormat:
      enum:
        - dotDecimal
        - commaDecimal
        - spaceDecimal
      type: string
    CurrencyDisplayStyle:
      enum:
        - symbolPrefix
        - symbolSuffix
        - isoSuffix
      type: string
    TransactionType:
      enum:
        - domestic
        - intraEU
        - intraEuOss
        - international
        - smallBusiness
      type: string
    PublicInvoiceItemModel:
      required:
        - id
        - name
        - quantity
        - tax_rate
        - unit
        - unit_price
        - vat_rate_tier
      type: object
      properties:
        id:
          type: string
          description: Our internal id for this line item.
          format: uuid
        name:
          minLength: 1
          type: string
          description: Line item name.
        description:
          type: string
          description: Longer description, if set.
          nullable: true
        quantity:
          type: number
          description: Quantity.
          format: double
        unit_price:
          type: number
          description: Unit price, excluding tax.
          format: double
        unit:
          allOf:
            - $ref: '#/components/schemas/MeasurementUnit'
          description: Unit of measurement (UN/CEFACT code).
        tax_rate:
          type: number
          description: >-
            The actual tax rate applied to this item (e.g. `0.19` for 19%),
            computed
                        server-side from the recipient/sender jurisdiction and Billino.Api.Product.PublicApi.Invoices.Models.PublicInvoiceItemModel.VatRateTier.
          format: double
        vat_rate_tier:
          allOf:
            - $ref: '#/components/schemas/ItemCategoryType'
          description: Which VAT rate tier applies to this item.
        catalog_item_id:
          type: string
          description: >-
            The catalog item this line references — `null` for an ad-hoc line
            item typed

            directly on the invoice in the dashboard, with no catalog item
            behind it. The public API

            can only ever create catalog-linked items (`create_invoice` requires
            a

            `catalog_item_id` on every item), but an invoice fetched here may
            have been created

            in the dashboard, where ad-hoc items are a supported, ordinary case.
          format: uuid
          nullable: true
        discount_type:
          allOf:
            - $ref: '#/components/schemas/DiscountType'
          description: >-
            The discount actually applied to this line (flat off the whole line,
            not
                        per-unit) — whether it came from this item's own request field or from
                        Billino.Api.Product.PublicApi.Invoices.Models.PublicCreateInvoiceRequest.DiscountType being distributed across items at
                        creation time. `null` means no discount on this line.
          nullable: true
        discount_value:
          type: number
          format: double
          nullable: true
      additionalProperties: false
      description: A line item as actually saved, including its server-computed tax rate.
    PublicRecipientModel:
      required:
        - client_type
        - id
      type: object
      properties:
        id:
          type: string
          description: Our internal id for this recipient.
          format: uuid
        external_id:
          type: string
          description: Your own lookup key for this recipient, if one was set at creation.
          nullable: true
        client_type:
          allOf:
            - $ref: '#/components/schemas/ContactType'
          description: Whether this recipient is a business or an individual.
        first_name:
          type: string
          description: Set for individual recipients.
          nullable: true
        last_name:
          type: string
          description: Set for individual recipients.
          nullable: true
        company_name:
          type: string
          description: Set for business recipients.
          nullable: true
        email:
          type: string
          description: Contact email.
          nullable: true
        country_code:
          allOf:
            - $ref: '#/components/schemas/CountryCode'
          description: ISO 3166-1 alpha-2 country code.
          nullable: true
        address:
          allOf:
            - $ref: '#/components/schemas/PublicAddressModel'
          description: Set for business recipients.
          nullable: true
      additionalProperties: false
      description: A recipient.
      example:
        id: b7f1c2a0-5e2b-4b8a-9c1a-2f3e4d5c6b7a
        external_id: crm-12345
        client_type: business
        company_name: Acme GmbH
        email: billing@acme.example
        country_code: de
        address:
          street: Musterstraße 1
          city: Berlin
          postal_code: '10115'
          country: de
    MeasurementUnit:
      enum:
        - HUR
        - DAY
        - C62
        - LS
        - MON
        - KGM
        - KTM
        - LTR
        - MTR
        - MTK
        - MIN
      type: string
    ItemCategoryType:
      enum:
        - standard
        - reducedRate
        - taxExempt
        - secondReducedRate
        - superReducedRate
        - custom
      type: string
    DiscountType:
      enum:
        - percentage
        - fixedAmount
      type: string
    ContactType:
      enum:
        - individual
        - business
      type: string
    CountryCode:
      enum:
        - AF
        - AL
        - DZ
        - AD
        - AO
        - AG
        - AR
        - AM
        - AU
        - AT
        - AZ
        - BS
        - BH
        - BD
        - BB
        - BY
        - BE
        - BZ
        - BJ
        - BT
        - BO
        - BA
        - BW
        - BR
        - BN
        - BG
        - BF
        - BI
        - CV
        - KH
        - CM
        - CA
        - CF
        - TD
        - CL
        - CN
        - CO
        - KM
        - CG
        - CD
        - CR
        - CI
        - HR
        - CU
        - CY
        - CZ
        - DK
        - DJ
        - DM
        - DO
        - EC
        - EG
        - SV
        - GQ
        - ER
        - EE
        - SZ
        - ET
        - FJ
        - FI
        - FR
        - GA
        - GM
        - GE
        - DE
        - GH
        - GR
        - GD
        - GT
        - GN
        - GW
        - GY
        - HT
        - HN
        - HU
        - IS
        - IN
        - ID
        - IR
        - IQ
        - IE
        - IL
        - IT
        - JM
        - JP
        - JO
        - KZ
        - KE
        - KI
        - KW
        - KG
        - LA
        - LV
        - LB
        - LS
        - LR
        - LY
        - LI
        - LT
        - LU
        - MG
        - MW
        - MY
        - MV
        - ML
        - MT
        - MH
        - MR
        - MU
        - MX
        - FM
        - MD
        - MC
        - MN
        - ME
        - MA
        - MZ
        - MM
        - NA
        - NR
        - NP
        - NL
        - NZ
        - NI
        - NE
        - NG
        - KP
        - MK
        - 'NO'
        - OM
        - PK
        - PW
        - PS
        - PA
        - PG
        - PY
        - PE
        - PH
        - PL
        - PT
        - QA
        - RO
        - RU
        - RW
        - KN
        - LC
        - VC
        - WS
        - SM
        - ST
        - SA
        - SN
        - RS
        - SC
        - SL
        - SG
        - SK
        - SI
        - SB
        - SO
        - ZA
        - KR
        - SS
        - ES
        - LK
        - SD
        - SR
        - SE
        - CH
        - SY
        - TW
        - TJ
        - TZ
        - TH
        - TL
        - TG
        - TO
        - TT
        - TN
        - TR
        - TM
        - TV
        - UG
        - UA
        - AE
        - GB
        - US
        - UY
        - UZ
        - VU
        - VA
        - VE
        - VN
        - YE
        - ZM
        - ZW
      type: string
    PublicAddressModel:
      required:
        - city
        - country
        - postal_code
        - street
      type: object
      properties:
        street:
          minLength: 1
          type: string
          description: Street and house number.
        city:
          minLength: 1
          type: string
          description: City.
        state:
          type: string
          description: >-
            State / province, where applicable (e.g. US, Canada). Absent where
            it doesn't apply.
          nullable: true
        postal_code:
          minLength: 1
          type: string
          description: Postal / ZIP code.
        country:
          allOf:
            - $ref: '#/components/schemas/CountryCode'
          description: ISO 3166-1 alpha-2 country code.
      additionalProperties: false
      description: A postal address.
  securitySchemes:
    ApiKey:
      type: http
      description: >-
        Your Billino API key, generated from the dashboard's Settings → API
        page. Send it as: `Authorization: Bearer bk_...`
      scheme: bearer
      bearerFormat: API Key

````

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