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

# List bills matched to a delivery note

> Bills with at least one line allocated against this delivery note, with their match-group status.



## OpenAPI

````yaml /api-reference/openapi.json get /delivery-notes/{id}/matched-bills
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:
  /delivery-notes/{id}/matched-bills:
    get:
      tags:
        - Delivery Notes
      summary: List bills matched to a delivery note
      description: >-
        Bills with at least one line allocated against this delivery note, with
        their match-group status.
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/MatchedBillView'
        '404':
          description: >-
            DeliveryNote.NotFound — delivery note does not exist or belongs to
            another organisation
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
components:
  schemas:
    MatchedBillView:
      required:
        - billId
        - matchGroupId
        - matchGroupStatus
        - state
        - totalAmount
      type: object
      properties:
        billId:
          type: string
          description: The matched bill.
          format: uuid
        matchGroupId:
          type: string
          description: The match group that ties this bill to the document.
          format: uuid
        matchGroupStatus:
          type: string
          description: Lifecycle status of the match group (e.g. Open, Variance, Resolved).
        invoiceNumber:
          type:
            - 'null'
            - string
          description: Supplier invoice number on the bill, if captured.
        supplierName:
          type:
            - 'null'
            - string
          description: Name of the bill's supplier, if known.
        state:
          type: string
          description: The bill's own workflow state (e.g. PendingReview, NeedsApproval).
        totalAmount:
          pattern: ^-?(?:0|[1-9]\d*)(?:\.\d+)?$
          type:
            - number
            - string
          description: Total (gross) amount on the bill.
          format: double
      description: >-
        A bill matched to a purchase order (or delivery note): the bill has at
        least one line allocated against the document. Used by the matched-bills
        listings.
    ProblemDetails:
      type: object
      properties:
        type:
          type:
            - 'null'
            - string
        title:
          type:
            - 'null'
            - string
        status:
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - 'null'
            - integer
            - string
          format: int32
        detail:
          type:
            - 'null'
            - string
        instance:
          type:
            - 'null'
            - string

````