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

# Overdue payables

> Overdue bills grouped by supplier, each with urgency (low/medium/high/critical), a state-aware suggested action (schedule_payment/confirm_or_reschedule/wait), and the organisation's payment timing toward that supplier.



## OpenAPI

````yaml /api-reference/openapi.json get /payables/overdue
openapi: 3.1.1
info:
  title: Dolfin API
  description: >-
    Dolfin API for AR & AP. Authenticate using the `x-dolfin-api-key` header
    with the API key distributed to your organisation.
  version: v1
servers:
  - url: https://api.dolfinai.co
    description: Production
security:
  - {}
tags:
  - name: Webhooks
  - name: Users
  - name: TaxRates
  - name: Suppliers
  - name: Supplier Credit Notes
  - name: Bills
  - name: SpendCategories
  - name: Payables
  - name: RecurringInvoices
  - name: Receivables
  - name: Purchase Orders
  - name: Products
  - name: Payments
  - name: Invoices
  - name: Organisations
  - name: Members
  - name: MCP
  - name: Matching
  - name: Invoice Reminders
  - name: Industries
  - name: Gmail
  - name: Delivery Notes
  - name: Customers
  - name: Currencies
  - name: Credit Notes
  - name: Clients
  - name: ClientInvites
  - name: BankPayments
  - name: Bank details
  - name: Auth
  - name: ApprovalPolicies
  - name: ApiKeys
  - name: Agent
paths:
  /payables/overdue:
    get:
      tags:
        - Payables
      summary: Overdue payables
      description: >-
        Overdue bills grouped by supplier, each with urgency
        (low/medium/high/critical), a state-aware suggested action
        (schedule_payment/confirm_or_reschedule/wait), and the organisation's
        payment timing toward that supplier.
      parameters:
        - name: asOf
          in: query
          schema:
            type: string
            format: date
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OverduePayablesResponse'
components:
  schemas:
    OverduePayablesResponse:
      required:
        - totals
      type: object
      properties:
        asOf:
          type: string
          format: date
        totals:
          $ref: '#/components/schemas/OverduePayablesTotals'
        aging:
          type: array
          items:
            $ref: '#/components/schemas/CurrencyAging'
        suppliers:
          type: array
          items:
            $ref: '#/components/schemas/OverdueSupplierRow'
          description: >-
            One row per supplier per currency — amounts are never summed across
            currencies. Org default currency rows first, most days overdue first
            within each currency.
    OverduePayablesTotals:
      type: object
      properties:
        supplierCount:
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - integer
            - string
          description: >-
            Distinct suppliers with overdue bills. May be lower than the number
            of Suppliers rows, which are per (supplier, currency).
          format: int32
        billCount:
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - integer
            - string
          format: int32
        overdueByCurrency:
          type: array
          items:
            $ref: '#/components/schemas/CurrencyTotal'
    CurrencyAging:
      required:
        - currency
        - buckets
      type: object
      properties:
        currency:
          type: string
        buckets:
          $ref: '#/components/schemas/AgingBuckets'
    OverdueSupplierRow:
      required:
        - supplierName
        - currency
        - urgency
        - suggestedAction
      type: object
      properties:
        supplierId:
          type:
            - 'null'
            - string
          description: >-
            Null when OCR extracted a supplier name but no Supplier record was
            ever matched.
          format: uuid
        supplierName:
          type: string
        currency:
          type: string
        totalOverdue:
          pattern: ^-?(?:0|[1-9]\d*)(?:\.\d+)?$
          type:
            - number
            - string
          format: double
        billCount:
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - integer
            - string
          format: int32
        oldestBill:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/BillSummary'
        urgency:
          type: string
          description: low | medium | high | critical
        suggestedAction:
          type: string
          description: >-
            schedule_payment | confirm_or_reschedule | wait. 'wait' means every
            overdue bill already has a future payment scheduled — never suggest
            paying twice.
        scheduledPaymentDate:
          type:
            - 'null'
            - string
          description: >-
            Earliest scheduled payment date among the supplier's overdue bills,
            when any are Scheduled.
          format: date
        paymentTiming:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/SupplierPaymentTiming'
        billIds:
          type: array
          items:
            type: string
            format: uuid
    CurrencyTotal:
      required:
        - currency
        - amount
        - count
      type: object
      properties:
        currency:
          type: string
        amount:
          pattern: ^-?(?:0|[1-9]\d*)(?:\.\d+)?$
          type:
            - number
            - string
          format: double
        count:
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - integer
            - string
          description: Invoices for receivables, bills for payables.
          format: int32
    AgingBuckets:
      type: object
      properties:
        current:
          $ref: '#/components/schemas/AgingBucket'
          description: Issued but not yet due.
        d1To30:
          $ref: '#/components/schemas/AgingBucket'
        d31To60:
          $ref: '#/components/schemas/AgingBucket'
        d61To90:
          $ref: '#/components/schemas/AgingBucket'
        d90Plus:
          $ref: '#/components/schemas/AgingBucket'
    BillSummary:
      required:
        - state
      type: object
      properties:
        billId:
          type: string
          format: uuid
        invoiceNumber:
          type:
            - 'null'
            - string
        totalAmount:
          pattern: ^-?(?:0|[1-9]\d*)(?:\.\d+)?$
          type:
            - number
            - string
          format: double
        dueDate:
          type:
            - 'null'
            - string
          format: date
        daysOverdue:
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - integer
            - string
          format: int32
        state:
          type: string
    SupplierPaymentTiming:
      type: object
      properties:
        averageDaysToPay:
          pattern: ^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$
          type:
            - 'null'
            - number
            - string
          description: >-
            Mean days from bill invoice date to payment, over paid bills with an
            invoice date. Null when none have one.
          format: double
        onTermsRate:
          pattern: ^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$
          type:
            - 'null'
            - number
            - string
          description: >-
            Share of paid bills settled on or before their due date. Null when
            no paid bill has a due date.
          format: double
        billsPaid:
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - integer
            - string
          description: Bills paid in the last 12 months.
          format: int32
    AgingBucket:
      type: object
      properties:
        amount:
          pattern: ^-?(?:0|[1-9]\d*)(?:\.\d+)?$
          type:
            - number
            - string
          format: double
        count:
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - integer
            - string
          description: Invoices for receivables, bills for payables.
          format: int32

````