Codat Accounts receivable API

Data from a linked accounting software representing money owed to the business for sold goods or services.

OpenAPI Specification

codat-accounts-receivable-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Bank Feeds Account mapping Accounts receivable API
  version: 3.0.0
  contact:
    email: support@codat.io
    name: Codat
  description: 'Bank Feeds solution enables your SMB users to set up bank feeds from accounts in your application to supported accounting software.


    A bank feed is a connection between a source bank account in your application and a target bank account in a supported accounting software.


    [Explore solution](https://docs.codat.io/bank-feeds-api/overview) | [See OpenAPI spec](https://github.com/codatio/oas)


    ---

    <!-- Start Codat Tags Table -->

    ## Endpoints


    | Endpoints | Description |

    | :- |:- |

    | Companies | Create and manage your SMB users'' companies. |

    | Connections | Create new and manage existing data connections for a company. |

    | Source accounts | Provide and manage lists of source bank accounts. |

    | Account mapping | Extra functionality for building an account management UI. |

    | Company information | Get detailed information about a company from the underlying platform. |

    | Transactions | Create new bank account transactions for a company''s connections, and see previous operations. |

    <!-- End Codat Tags Table -->'
  termsOfService: https://www.codat.io/legals/
servers:
- description: Production
  url: https://api.codat.io
security:
- auth_header: []
tags:
- name: Accounts receivable
  description: Data from a linked accounting software representing money owed to the business for sold goods or services.
paths:
  /companies/{companyId}/reports/enhancedInvoices:
    parameters:
    - $ref: '#/components/parameters/companyId'
    get:
      summary: List reconciled invoices
      tags:
      - Accounts receivable
      operationId: list-reconciled-invoices
      x-speakeasy-name-override: list-reconciled
      x-speakeasy-group: accounts-receivable.invoices
      parameters:
      - $ref: '#/components/parameters/page'
      - $ref: '#/components/parameters/pageSize'
      - $ref: '#/components/parameters/query'
      responses:
        '200':
          description: OK
          content:
            application/json:
              x-speakeasy-usage-example: true
              schema:
                $ref: '#/components/schemas/EnhancedInvoicesReport'
              example:
                reportInfo:
                  pageNumber: 1
                  pageSize: 10
                  totalResults: 101
                  reportName: Invoices report
                  companyName: Small Sandbox
                  generatedDate: '2023-05-10T10:50:23.9437977Z'
                reportItems:
                - id: 15221fa4-e91a-4f64-a2bb-caeab4db85a4
                  invoiceNumber: UDs5KlfE
                  customerRef:
                    id: ee4d0eee-063d-4c9f-8226-2c9a6a816249
                    customerName: Serena Keeling
                  issueDate: '2021-04-06T09:44:00'
                  dueDate: '2021-04-06T09:44:00'
                  status: Paid
                  currency: GBP
                  totalAmount: 7044.83
                  amountDue: 0
                  paidOnDate: '2021-04-06T09:44:00'
                  modifiedDate: '2022-04-11T13:49:37Z'
                  sourceModifiedDate: '2022-02-27T18:28:00'
                  payments: []
                - id: 58aea1cb-5b31-4eed-ba16-489dfa67a831
                  invoiceNumber: 1IU1PMoT
                  customerRef:
                    id: 81e9c0df-3e5e-4180-b20c-c8e58100cdf3
                    customerName: Quinton Kovacek
                  issueDate: '2021-04-06T09:44:00'
                  dueDate: '2021-04-06T09:44:00'
                  status: Paid
                  currency: GBP
                  totalAmount: 3567.59
                  amountDue: 0
                  paidOnDate: '2021-04-06T09:44:00'
                  modifiedDate: '2022-04-11T13:49:37Z'
                  sourceModifiedDate: '2021-06-23T22:47:00'
                  payments: []
                - id: 9ecd07bc-9cab-4516-bad0-a0cd565cdbaf
                  invoiceNumber: eEIWyPN4
                  customerRef:
                    id: c7326084-cd56-48e6-bcfa-be8919e024e1
                    customerName: Antwon Dach
                  issueDate: '2021-04-08T01:27:00'
                  dueDate: '2021-04-18T01:27:00'
                  status: Paid
                  currency: GBP
                  totalAmount: 153233.36
                  amountDue: 0
                  paidOnDate: '2021-04-10T12:31:00'
                  modifiedDate: '2022-08-01T09:44:59Z'
                  sourceModifiedDate: '2021-11-11T12:10:00'
                  payments:
                  - id: 0878e8be-6746-4347-80ba-5491328c8411
                    date: '2021-04-10T12:31:00'
                    paymentType: payments
                    amount: 153233.36
                    currency: GBP
                    currencyRate: 1
                - id: 7cea078a-5c9a-4788-ae72-9bb60c5cc184
                  invoiceNumber: BXb8mYQW
                  customerRef:
                    id: 44e8516d-bcb0-459f-9e5d-7beaa56d57d0
                    customerName: Dolores Rath
                  issueDate: '2021-04-16T17:30:00'
                  dueDate: '2021-04-23T17:30:00'
                  status: Paid
                  currency: GBP
                  totalAmount: 12657.69
                  amountDue: 0
                  paidOnDate: '2021-04-23T17:30:00'
                  modifiedDate: '2022-04-11T13:49:37Z'
                  sourceModifiedDate: '2021-12-08T11:32:00'
                  payments:
                  - id: 17b42934-13f6-4738-a506-2e253b1a606f
                    date: '2021-04-23T17:30:00'
                    paymentType: payments
                    amount: 12657.69
                    currency: GBP
                    currencyRate: 1
                - id: aa4503d7-fe01-49fe-ba42-259b421ac640
                  invoiceNumber: wdjwiL5B
                  customerRef:
                    id: 5cbaf1af-4f02-4206-85ab-c525bd9b4f99
                    customerName: Bryana Douglas
                  issueDate: '2021-04-20T06:46:00'
                  dueDate: '2021-04-27T06:46:00'
                  status: PartiallyPaid
                  currency: GBP
                  totalAmount: 12935.39
                  amountDue: 381.09
                  modifiedDate: '2022-04-11T13:49:37Z'
                  sourceModifiedDate: '2022-03-11T20:03:00'
                  payments:
                  - id: 1c03986b-9b6c-4220-bde6-4e3eba6cef9f
                    date: '2021-04-23T14:59:00'
                    paymentType: payments
                    amount: 12554.3
                    currency: GBP
                    currencyRate: 1
                - id: d8a0e26e-4ec8-4fb5-887d-8b7531e3bedf
                  invoiceNumber: cTjJcu8x
                  customerRef:
                    id: 6f5290e5-70aa-4d0c-816e-9d2312cf217f
                    customerName: Brady Wilderman
                  issueDate: '2021-04-23T09:32:00'
                  dueDate: '2021-05-03T09:32:00'
                  status: Paid
                  currency: GBP
                  totalAmount: 21526.72
                  amountDue: 0
                  paidOnDate: '2021-05-03T09:32:00'
                  modifiedDate: '2022-04-11T13:49:37Z'
                  sourceModifiedDate: '2021-03-12T22:37:00'
                  payments:
                  - id: 93c9c11b-3ec0-4314-85f6-0751763e752a
                    date: '2021-05-03T09:32:00'
                    paymentType: payments
                    amount: 21506.72
                    currency: GBP
                    currencyRate: 1
                - id: 06890e67-35fb-4276-9857-95db40cfd15d
                  invoiceNumber: htXJuUDb
                  customerRef:
                    id: 44e8516d-bcb0-459f-9e5d-7beaa56d57d0
                    customerName: Dolores Rath
                  issueDate: '2021-05-01T23:23:00'
                  dueDate: '2021-05-11T23:23:00'
                  status: PartiallyPaid
                  currency: GBP
                  totalAmount: 7151.41
                  amountDue: 1225.06
                  modifiedDate: '2022-08-01T09:44:59Z'
                  sourceModifiedDate: '2022-02-24T23:02:00'
                  payments:
                  - id: 82865077-0857-46db-b9a1-6d21da43b6aa
                    date: '2021-05-04T17:57:00'
                    paymentType: payments
                    amount: 5926.35
                    currency: GBP
                    currencyRate: 1
                - id: 160e8b51-1fa0-46b9-98fe-1ff5399ce99b
                  invoiceNumber: 9wegEXpG
                  customerRef:
                    id: 44e8516d-bcb0-459f-9e5d-7beaa56d57d0
                    customerName: Dolores Rath
                  issueDate: '2021-05-18T08:53:00'
                  dueDate: '2021-05-25T08:53:00'
                  status: PartiallyPaid
                  currency: GBP
                  totalAmount: 22522.34
                  amountDue: 14408.54
                  modifiedDate: '2022-04-11T13:49:37Z'
                  sourceModifiedDate: '2022-01-13T07:52:00'
                  payments:
                  - id: 75bd7205-bc12-4517-9964-aae159fdfaee
                    date: '2021-05-23T04:04:00'
                    paymentType: payments
                    amount: 8113.8
                    currency: GBP
                    currencyRate: 1
                - id: 5a934955-561d-436a-a564-fd624a79f54c
                  invoiceNumber: l7YwGxG7
                  customerRef:
                    id: cc96af36-e2f5-49f7-bf40-271503f45071
                    customerName: Ignacio Moore
                  issueDate: '2021-05-25T19:51:00'
                  dueDate: '2021-06-04T19:51:00'
                  status: Paid
                  currency: GBP
                  totalAmount: 11047.08
                  amountDue: 0
                  paidOnDate: '2021-05-28T07:31:00'
                  modifiedDate: '2022-04-11T13:49:37Z'
                  sourceModifiedDate: '2021-08-06T05:50:00'
                  payments:
                  - id: 608fd022-f7d0-44a9-90c4-bebe0573f206
                    date: '2021-05-28T07:31:00'
                    paymentType: payments
                    amount: 11047.08
                    currency: GBP
                    currencyRate: 1
                - id: 17690788-2936-46b5-ba46-ba6a36a87483
                  invoiceNumber: ntH1cRYz
                  customerRef:
                    id: e1ecc8f2-8a63-4fe9-97c9-c87fd90ca0a6
                    customerName: Freida Ebert
                  issueDate: '2021-05-27T19:07:00'
                  dueDate: '2021-06-03T19:07:00'
                  status: PartiallyPaid
                  currency: GBP
                  totalAmount: 7191.32
                  amountDue: 5036.83
                  modifiedDate: '2022-04-11T13:49:37Z'
                  sourceModifiedDate: '2021-03-27T08:54:00'
                  payments:
                  - id: a343b2a0-d327-41b0-993e-7b6b92fde425
                    date: '2021-06-03T19:07:00'
                    paymentType: payments
                    amount: 2154.49
                    currency: GBP
                    currencyRate: 1
        '400':
          $ref: '#/components/responses/Malformed-Query'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/Payment-Required'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/Not-Found'
        '429':
          $ref: '#/components/responses/Too-Many-Requests'
        '500':
          $ref: '#/components/responses/Internal-Server-Error'
        '503':
          $ref: '#/components/responses/Service-Unavailable'
      description: Gets a list of invoices linked to the corresponding banking transaction
  /companies/{companyId}/data/creditNotes:
    parameters:
    - $ref: '#/components/parameters/companyId'
    get:
      tags:
      - Accounts receivable
      summary: List credit notes
      parameters:
      - $ref: '#/components/parameters/page'
      - $ref: '#/components/parameters/pageSize'
      - $ref: '#/components/parameters/query'
      - $ref: '#/components/parameters/orderBy'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccountingCreditNotes'
              examples:
                Dynamics 365 Business Central:
                  value:
                    results:
                    - id: e6e5ec0f-1c60-eb11-89fa-00224800a9c7
                      creditNoteNumber: '104001'
                      customerRef:
                        id: 8ddfa6bf-0c60-eb11-89fa-00224800af18
                        companyName: Abdi Company
                      withholdingTax: []
                      totalAmount: 105
                      totalDiscount: 0
                      subTotal: 100
                      additionalTaxAmount: 0
                      additionalTaxPercentage: 0
                      totalTaxAmount: 5
                      discountPercentage: 0
                      remainingCredit: 80
                      status: PartiallyPaid
                      issueDate: '2021-01-25T00:00:00'
                      currency: GBP
                      lineItems:
                      - description: 'Invoice No. 103221:'
                        unitAmount: 0
                        quantity: 1
                        discountAmount: 0
                        subTotal: 0
                        taxAmount: 0
                        totalAmount: 0
                        accountRef:
                          id: NullId
                        discountPercentage: 0
                        taxRateRef:
                          id: cc81fea8-2917-ed11-90eb-002248009df3
                          name: ''
                          effectiveTaxRate: 0
                        trackingCategoryRefs: []
                        isDirectIncome: false
                      - description: Linda Martin
                        unitAmount: 100
                        quantity: 1
                        discountAmount: 0
                        subTotal: 100
                        taxAmount: 5
                        totalAmount: 105
                        accountRef:
                          id: 161217b3-89d1-ea11-bbaa-000d3a2b9185
                          name: Income, Services
                        discountPercentage: 0
                        taxRateRef:
                          id: 61bc0fb9-89d1-ea11-bbaa-000d3a2b9185
                          name: Setup for DOMESTIC / REDUCED
                          effectiveTaxRate: 5
                        itemRef:
                          id: RESC-331317b3-89d1-ea11-bbaa-000d3a2b9185-DOMESTIC-DOMESTIC
                          name: 'Linda Martin / General Business Posting Group: ''DOMESTIC'' / VAT Business Posting Group: ''DOMESTIC'''
                        trackingCategoryRefs: []
                        isDirectIncome: false
                      - description: Credit memo for partially paid inv
                        unitAmount: 0
                        quantity: 1
                        discountAmount: 0
                        subTotal: 0
                        taxAmount: 0
                        totalAmount: 0
                        accountRef:
                          id: NullId
                        discountPercentage: 0
                        taxRateRef:
                          id: cc81fea8-2917-ed11-90eb-002248009df3
                          name: ''
                          effectiveTaxRate: 0
                        trackingCategoryRefs: []
                        isDirectIncome: false
                      paymentAllocations:
                      - payment:
                          id: 62e5046d-1c60-eb11-89fa-00224800a9c7
                          note: Credit Memo 1001
                          reference: 'Document No: 104001'
                          currency: GBP
                          currencyRate: 1
                          paidOnDate: '2021-01-25T00:00:00'
                          totalAmount: 0
                        allocation:
                          currency: GBP
                          currencyRate: 1
                          allocatedOnDate: '2021-01-25T00:00:00'
                          totalAmount: 25
                      modifiedDate: '2023-03-27T14:21:25Z'
                      sourceModifiedDate: '2021-01-26T21:21:18Z'
                      metadata:
                        isDeleted: false
                    - id: d0d9b378-1d60-eb11-89fa-00224800a9c7
                      creditNoteNumber: '104002'
                      customerRef:
                        id: 8ddfa6bf-0c60-eb11-89fa-00224800af18
                        companyName: Abdi Company
                      withholdingTax: []
                      totalAmount: 779.28
                      totalDiscount: 0
                      subTotal: 649.4
                      additionalTaxAmount: 0
                      additionalTaxPercentage: 0
                      totalTaxAmount: 129.88
                      discountPercentage: 0
                      remainingCredit: 0
                      status: Paid
                      issueDate: '2021-01-26T00:00:00'
                      currency: GBP
                      lineItems:
                      - description: 'Invoice No. 103222:'
                        unitAmount: 0
                        quantity: 1
                        discountAmount: 0
                        subTotal: 0
                        taxAmount: 0
                        totalAmount: 0
                        accountRef:
                          id: NullId
                        discountPercentage: 0
                        taxRateRef:
                          id: cc81fea8-2917-ed11-90eb-002248009df3
                          name: ''
                          effectiveTaxRate: 0
                        trackingCategoryRefs: []
                        isDirectIncome: false
                      - description: 'Inv. No. 103222 - Shpt. No. 102222:'
                        unitAmount: 0
                        quantity: 1
                        discountAmount: 0
                        subTotal: 0
                        taxAmount: 0
                        totalAmount: 0
                        accountRef:
                          id: NullId
                        discountPercentage: 0
                        taxRateRef:
                          id: cc81fea8-2917-ed11-90eb-002248009df3
                          name: ''
                          effectiveTaxRate: 0
                        trackingCategoryRefs: []
                        isDirectIncome: false
                      - description: ATHENS Desk -pay with CR
                        unitAmount: 649.4
                        quantity: 1
                        discountAmount: 0
                        subTotal: 649.4
                        taxAmount: 129.88
                        totalAmount: 779.28
                        accountRef:
                          id: 181217b3-89d1-ea11-bbaa-000d3a2b9185
                          name: Income, Product Sales
                        discountPercentage: 0
                        taxRateRef:
                          id: 63bc0fb9-89d1-ea11-bbaa-000d3a2b9185
                          name: Setup for DOMESTIC / STANDARD
                          effectiveTaxRate: 10
                        itemRef:
                          id: ITEM-c81217b3-89d1-ea11-bbaa-000d3a2b9185-DOMESTIC-DOMESTIC
                          name: 'ATHENS Desk / General Business Posting Group: ''DOMESTIC'' / VAT Business Posting Group: ''DOMESTIC'''
                        trackingCategoryRefs: []
                        isDirectIncome: false
                      - description: ''
                        unitAmount: 0
                        quantity: 1
                        discountAmount: 0
                        subTotal: 0
                        taxAmount: 0
                        totalAmount: 0
                        accountRef:
                          id: NullId
                        discountPercentage: 0
                        taxRateRef:
                          id: cc81fea8-2917-ed11-90eb-002248009df3
                          name: ''
                          effectiveTaxRate: 0
                        trackingCategoryRefs: []
                        isDirectIncome: false
                      paymentAllocations:
                      - payment:
                          id: c2942210-1e60-eb11-89fa-00224800a9c7
                          note: Credit Memo 1002
                          reference: 'Document No: 104002'
                          currency: GBP
                          currencyRate: 1
                          paidOnDate: '2021-01-26T00:00:00'
                          totalAmount: 0
                        allocation:
                          currency: GBP
                          currencyRate: 1
                          allocatedOnDate: '2021-01-26T00:00:00'
                          totalAmount: 779.28
                      modifiedDate: '2023-03-27T14:21:25Z'
                      sourceModifiedDate: '2021-01-26T21:33:01Z'
                      metadata:
                        isDeleted: false
                    pageNumber: 1
                    pageSize: 2
                    totalResults: 13
                    _links:
                      current:
                        href: /companies/d6849caf-c146-41be-8335-b73346e3bd84/data/creditNotes?page=1&pageSize=2
                      self:
                        href: /companies/d6849caf-c146-41be-8335-b73346e3bd84/data/creditNotes
                      next:
                        href: /companies/d6849caf-c146-41be-8335-b73346e3bd84/data/creditNotes?page=2&pageSize=2
                FreeAgent:
                  value:
                    results:
                    - id: '21952211'
                      creditNoteNumber: '004'
                      customerRef:
                        id: '6162023'
                        companyName: Alderley plc
                      withholdingTax: []
                      totalAmount: 165
                      totalDiscount: 0
                      subTotal: 165
                      additionalTaxAmount: 0
                      additionalTaxPercentage: 0
                      totalTaxAmount: 0
                      discountPercentage: 0
                      remainingCredit: 0
                      status: Paid
                      issueDate: '2017-10-18T00:00:00'
                      currency: GBP
                      currencyRate: 1
                      lineItems:
                      - description: Reverse 6546
                        unitAmount: 110
                        quantity: 1.5
                        subTotal: 165
                        taxAmount: 0
                        totalAmount: 165
                        trackingCategoryRefs: []
                        isDirectIncome: false
                      paymentAllocations:
                      - payment:
                          id: '270764400'
                          note: �165.00 - Credit Note refund against 004
                          currency: GBP
                          paidOnDate: '2020-12-23T00:00:00'
                          totalAmount: -165
                        allocation:
                          currency: GBP
                          currencyRate: 1
                          totalAmount: 165
                      modifiedDate: '2023-04-25T14:19:09Z'
                      sourceModifiedDate: '2020-12-23T16:39:23Z'
                      metadata:
                        isDeleted: false
                    - id: '53604300'
                      creditNoteNumber: '2367'
                      customerRef:
                        id: '6162023'
                        companyName: Alderley plc
                      withholdingTax: []
                      totalAmount: 165
                      totalDiscount: 0
                      subTotal: 165
                      additionalTaxAmount: 0
                      additionalTaxPercentage: 0
                      totalTaxAmount: 0
                      discountPercentage: 0
                      remainingCredit: 165
                      status: Draft
                      issueDate: '2017-10-18T00:00:00'
                      currency: GBP
                      currencyRate: 1
                      lineItems:
                      - description: Reverse 6546
                        unitAmount: 110
                        quantity: 1.5
                        subTotal: 165
                        taxAmount: 0
                        totalAmount: 165
                        trackingCategoryRefs: []
                        isDirectIncome: false
                      paymentAllocations: []
                      modifiedDate: '2023-04-25T14:19:09Z'
                      sourceModifiedDate: '2022-09-29T13:00:09Z'
                      metadata:
                        isDeleted: false
                    pageNumber: 1
                    pageSize: 2
                    totalResults: 281
                    _links:
                      current:
                        href: /companies/071ad738-68f3-4561-afd0-69bab9df0803/data/creditNotes?page=1&pageSize=2
                      self:
                        href: /companies/071ad738-68f3-4561-afd0-69bab9df0803/data/creditNotes
                      next:
                        href: /companies/071ad738-68f3-4561-afd0-69bab9df0803/data/creditNotes?page=2&pageSize=2
                FreshBooks:
                  value:
                    results:
                    - id: '33407'
                      creditNoteNumber: '0000065'
                      customerRef:
                        id: '511657'
                        companyName: Bob's Stationary
                      withholdingTax: []
                      totalAmount: 150
                      totalDiscount: 0
                      subTotal: 150
                      additionalTaxAmount: 0
                      additionalTaxPercentage: 0
                      totalTaxAmount: 0
                      discountPercentage: 0
                      remainingCredit: 0
                      status: Submitted
                      issueDate: '2020-07-31T00:00:00'
                      currency: GBP
                      lineItems:
                      - description: Test Di
                        unitAmount: 150
                        quantity: 1
                        subTotal: 150
                        taxAmount: 0
                        totalAmount: 150
                        trackingCategoryRefs: []
                        isDirectIncome: false
                      paymentAllocations:
                      - payment:
                          id: '2054019'
                          note: Free $150 voucher
                          currency: GBP
                          paidOnDate: '2020-07-31T00:00:00'
                          totalAmount: 0
                        allocation:
                          currency: GBP
                          currencyRate: 1
                          totalAmount: 150
                      modifiedDate: '2023-03-24T16:07:23Z'
                      note: Free $150 voucher
                      metadata:
                        isDeleted: false
                    - id: '33409'
                      creditNoteNumber: '0000066'
                      customerRef:
                        id: '511657'
                        companyName: Bob's Stationary
                      withholdingTax: []
                      totalAmount: 300
                      totalDiscount: 0
                      subTotal: 300
                      additionalTaxAmount: 0
                      additionalTaxPercentage: 0
                      totalTaxAmount: 0
                      discountPercentage: 0
                      remainingCredit: 0
                      status: Draft
                      issueDate: '2020-07-31T00:00:00'
                      currency: GBP
                      lineItems:
                      - description: Test Di
                        unitAmount: 150
                        quantity: 2
                        subTotal: 300
                        taxAmount: 0
                        totalAmount: 300
                        trackingCategoryRefs: []
                        isDirectIncome: false
                      paymentAllocations:
                      - payment:
                          id: '2054021'
                          note: Free $150 voucher
                          currency: GBP
                          paidOnDate: '2020-07-31T00:00:00'
                          totalAmount: 0
                        allocation:
                          currency: GBP
                          currencyRate: 1
                          totalAmount: 300
                      modifiedDate: '2023-03-24T16:07:23Z'
                      note: Free $150 voucher
                      metadata:
                        isDeleted: false
                    pageNumber: 1
                    pageSize: 2
                    totalResults: 53
                    _links:
                      current:
                        href: /companies/3691c49e-0db4-4172-b3ab-e4084c365013/data/creditNotes?page=1&pageSize=2
                      self:
                        href: /companies/3691c49e-0db4-4172-b3ab-e4084c365013/data/creditNotes
                      next:
                        href: /companies/3691c49e-0db4-4172-b3ab-e4084c365013/data/creditNotes?page=2&pageSize=2
                KashFlow:
                  value:
                    results:
                    - id: '85322315'
                      creditNoteNumber: '4'
                      customerRef:
                        id: '69946501'
                        companyName: Peter Lord
                      withholdingTax: []
                      totalAmount: 100
                      totalDiscount: 0
                      subTotal: 0
                      additionalTaxAmount: 0
                      additionalTaxPercentage: 0
                      totalTaxAmount: 0
                      discountPercentage: 0
                      remainingCredit: 0
                      status: Paid
                      issueDate: '2017-05-09T00:00:00'
                      currency: GBP
                      currencyRate: 1
                      lineItems:
                      - description: youm
                        unitAmount: 100
                        quantity: -1
                        subTotal: -100
                        taxAmount: 0
                        totalAmount: 100
                        accountRef:
                          id: '21481817'
                          name: Sale of goods
                        itemRef:
                          id: '158667064'
                        trackingCategoryRefs: []
                        isDirectIncome: false
                      paymentAllocations:
                      - payment:
                          id: '86870120'
                          note: Applying Credit Note
                          currency: GBP
                          paidOnDate: '2017-05-09T00:00:00'
                          totalAmount: -100
                        allocation:
                          currency: GBP
                          currencyRate: 1
                          totalAmount: 100
                      modifiedDate: '2022-09-30T10:29:16Z'
                    - id: '85326016'
                      creditNoteNumber: '5'
                      customerRef:
                        id: '69952389'
                        companyName: Things Limited
                      withholdingTax: []
                      totalAmount: 1000
                      totalDiscount: 0
                      subTotal: 0
                      additionalTaxAmount: 0
                      additionalTaxPercentage: 0
                      totalTaxAmount: 0
                      discountPercentage: 0
                      remainingCredit: 0
                      status: Paid
                      issueDate: '2017-05-09T00:00:00'
                      currency: GBP
                      currencyRate: 1
                      lineItems:
                      - description: '158675173'
                        unitAmount: 1
                        quantity: -1000
                   

# --- truncated at 32 KB (1006 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/codat/refs/heads/main/openapi/codat-accounts-receivable-api-openapi.yml