Codat Accounts receivable API

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

Operations 23

GET /companies/{companyId}/reports/enhancedInvoices List reconciled invoices #
GET /companies/{companyId}/data/creditNotes List credit notes #
GET /companies/{companyId}/data/creditNotes/{creditNoteId} Get credit note #
GET /companies/{companyId}/data/customers List customers #
GET /companies/{companyId}/data/customers/{customerId} Get customer #
GET /companies/{companyId}/connections/{connectionId}/data/customers/{customerId}/attachments List customer attachments #
GET /companies/{companyId}/connections/{connectionId}/data/customers/{customerId}/attachments/{attachmentId} Get customer attachment #
GET /companies/{companyId}/connections/{connectionId}/data/customers/{customerId}/attachments/{attachmentId}/download Download customer attachment #
GET /companies/{companyId}/connections/{connectionId}/data/directIncomes List direct incomes #
GET /companies/{companyId}/connections/{connectionId}/data/directIncomes/{directIncomeId} Get direct income #
GET /companies/{companyId}/connections/{connectionId}/data/directIncomes/{directIncomeId}/attachments/{attachmentId} Get direct income attachment #
GET /companies/{companyId}/connections/{connectionId}/data/directIncomes/{directIncomeId}/attachments/{attachmentId}/download Download direct income attachment #
GET /companies/{companyId}/connections/{connectionId}/data/directIncomes/{directIncomeId}/attachments List direct income attachments #
GET /companies/{companyId}/data/invoices List invoices #
GET /companies/{companyId}/data/invoices/{invoiceId} Get invoice #
GET /companies/{companyId}/data/invoices/{invoiceId}/pdf Get invoice as PDF #
GET /companies/{companyId}/connections/{connectionId}/data/invoices/{invoiceId}/attachments List invoice attachments #
GET /companies/{companyId}/connections/{connectionId}/data/invoices/{invoiceId}/attachments/{attachmentId} Get invoice attachment #
GET /companies/{companyId}/connections/{connectionId}/data/invoices/{invoiceId}/attachments/{attachmentId}/download Download invoice attachment #
GET /companies/{companyId}/data/payments List payments #
GET /companies/{companyId}/data/payments/{paymentId} Get payment #
GET /companies/{companyId}/reports/agedDebtor/available Aged debtors report available #
GET /companies/{companyId}/reports/agedDebtor Aged debtors report #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/codat-accounts-receivable-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

codat-accounts-receivable-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Lending Accounts receivable API
  description: 'Our Lending solution helps you make smarter credit decisions on small businesses by enabling you to pull your customers'' latest data from accounting, banking, and commerce software they are already using. It also includes features to help providers verify the accuracy of data and process it more efficiently.


    The Lending solution is built on top of the latest accounting, commerce, and banking data, providing you with the most important data points you need to get a full picture of SMB creditworthiness and make a comprehensive assessment of your customers.


    [Explore solution](https://docs.codat.io/lending/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. |

    | Bank statements | Retrieve banking data from linked bank accounts. |

    | Sales | Retrieve standardized sales data from a linked commerce software. |

    | Financial statements | Financial data and reports from a linked accounting software. |

    | Liabilities | Debt and other liabilities. |

    | Accounts payable | Data from a linked accounting software representing money the business owes money to its suppliers. |

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

    | Transactions | Data from a linked accounting software representing transactions. |

    | Company info | View company information fetched from the source platform. |

    | Data integrity | Match mutable accounting data with immutable banking data to increase confidence in financial data. |

    | Excel reports | Download reports in Excel format. |

    | Manage data | Control how data is retrieved from an integration. |

    | File upload | Endpoints to manage uploaded files. |

    | Loan writeback | Implement the [loan writeback](https://docs.codat.io/lending/guides/loan-writeback/introduction) procedure in your lending process to maintain an accurate position of a loan during the entire lending cycle. |

    <!-- End Codat Tags Table -->'
  version: 3.0.0
  contact:
    name: Codat
    email: support@codat.io
  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'
                       

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