Codat Accounts payable API

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

Operations 16

GET /companies/{companyId}/data/billCreditNotes List bill credit notes #
GET /companies/{companyId}/data/billCreditNotes/{billCreditNoteId} Get bill credit note #
GET /companies/{companyId}/data/billPayments List bill payments #
GET /companies/{companyId}/data/billPayments/{billPaymentId} Get bill payment #
GET /companies/{companyId}/data/bills List bills #
GET /companies/{companyId}/data/bills/{billId} Get bill #
GET /companies/{companyId}/connections/{connectionId}/data/bills/{billId}/attachments List bill attachments #
GET /companies/{companyId}/connections/{connectionId}/data/bills/{billId}/attachments/{attachmentId} Get bill attachment #
GET /companies/{companyId}/connections/{connectionId}/data/bills/{billId}/attachments/{attachmentId}/download Download bill attachment #
GET /companies/{companyId}/data/suppliers List suppliers #
GET /companies/{companyId}/data/suppliers/{supplierId} Get supplier #
GET /companies/{companyId}/connections/{connectionId}/data/suppliers/{supplierId}/attachments List supplier attachments #
GET /companies/{companyId}/connections/{connectionId}/data/suppliers/{supplierId}/attachments/{attachmentId} Get supplier attachment #
GET /companies/{companyId}/connections/{connectionId}/data/suppliers/{supplierId}/attachments/{attachmentId}/download Download supplier attachment #
GET /companies/{companyId}/reports/agedCreditor/available Aged creditors report available #
GET /companies/{companyId}/reports/agedCreditor Aged creditors 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-payable-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-payable-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Lending Accounts payable 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 payable
  description: Data from a linked accounting software representing money the business owes money to its suppliers.
paths:
  /companies/{companyId}/data/billCreditNotes:
    parameters:
    - $ref: '#/components/parameters/companyId'
    get:
      tags:
      - Accounts payable
      summary: List bill 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/AccountingBillCreditNotes'
              examples:
                Dynamics 365 Business Central:
                  value:
                    results:
                    - id: 0deaed0a-9f51-eb11-89f9-00224800af18
                      billCreditNoteNumber: '109001'
                      supplierRef:
                        id: be1217b3-89d1-ea11-bbaa-000d3a2b9185
                        supplierName: Fabrikam, Inc.
                      withholdingTax: []
                      totalAmount: 8
                      totalDiscount: 0
                      subTotal: 8
                      totalTaxAmount: 0
                      discountPercentage: 0
                      remainingCredit: 8
                      status: Submitted
                      issueDate: '2020-12-21T00:00:00'
                      currency: GBP
                      lineItems:
                      - description: Abdi Item No VAT
                        unitAmount: 8
                        quantity: 1
                        discountAmount: 0
                        subTotal: 8
                        taxAmount: 0
                        totalAmount: 8
                        accountRef:
                          id: 6a1217b3-89d1-ea11-bbaa-000d3a2b9185
                          name: Inventory
                        discountPercentage: 0
                        taxRateRef:
                          id: 6bbc0fb9-89d1-ea11-bbaa-000d3a2b9185
                          name: Setup for EXPORT / ZERO
                          effectiveTaxRate: 0
                        itemRef:
                          id: ITEM-dbc37b18-4209-eb11-bbf6-0022481ad2e8-EXPORT-EXPORT
                          name: 'Abdi Item No VAT / General Business Posting Group: ''EXPORT'' / VAT Business Posting Group: ''EXPORT'''
                        trackingCategoryRefs: []
                      paymentAllocations: []
                      modifiedDate: '2023-03-27T14:21:26Z'
                      metadata:
                        isDeleted: false
                      note: BCN001
                    - id: 157c025f-a19e-eb11-8ce6-0022481a7bed
                      billCreditNoteNumber: '109002'
                      supplierRef:
                        id: be1217b3-89d1-ea11-bbaa-000d3a2b9185
                        supplierName: Fabrikam, Inc.
                      withholdingTax: []
                      totalAmount: 20
                      totalDiscount: 0
                      subTotal: 20
                      totalTaxAmount: 0
                      discountPercentage: 0
                      remainingCredit: 10
                      status: PartiallyPaid
                      issueDate: '2021-01-26T00:00:00'
                      currency: GBP
                      lineItems:
                      - description: Abdi Item No VAT
                        unitAmount: 20
                        quantity: 1
                        discountAmount: 0
                        subTotal: 20
                        taxAmount: 0
                        totalAmount: 20
                        accountRef:
                          id: 6a1217b3-89d1-ea11-bbaa-000d3a2b9185
                          name: Inventory
                        discountPercentage: 0
                        taxRateRef:
                          id: 6bbc0fb9-89d1-ea11-bbaa-000d3a2b9185
                          name: Setup for EXPORT / ZERO
                          effectiveTaxRate: 0
                        itemRef:
                          id: ITEM-dbc37b18-4209-eb11-bbf6-0022481ad2e8-EXPORT-EXPORT
                          name: 'Abdi Item No VAT / General Business Posting Group: ''EXPORT'' / VAT Business Posting Group: ''EXPORT'''
                        trackingCategoryRefs: []
                      paymentAllocations:
                      - payment:
                          id: 257c025f-a19e-eb11-8ce6-0022481a7bed
                          note: Credit Memo 1002
                          reference: '109002'
                          currency: GBP
                          currencyRate: 1
                          paidOnDate: '2021-01-26T00:00:00'
                          totalAmount: 0
                        allocation:
                          currency: GBP
                          currencyRate: 1
                          allocatedOnDate: '2021-04-16T00:00:00'
                          totalAmount: 10
                      modifiedDate: '2023-03-27T14:21:26Z'
                      metadata:
                        isDeleted: false
                      note: '16042021'
                    pageNumber: 1
                    pageSize: 2
                    totalResults: 224
                    _links:
                      current:
                        href: /companies/d6849caf-c146-41be-8335-b73346e3bd84/data/billCreditNotes?page=1&pageSize=2
                      self:
                        href: /companies/d6849caf-c146-41be-8335-b73346e3bd84/data/billCreditNotes
                      next:
                        href: /companies/d6849caf-c146-41be-8335-b73346e3bd84/data/billCreditNotes?page=2&pageSize=2
                Exact (Netherlands):
                  value:
                    results:
                    - id: 443bd109-e1ed-4de2-b1ab-3b13e980d288
                      billCreditNoteNumber: '19600007'
                      supplierRef:
                        id: 5e6f49b9-6489-4b82-83e7-291d308919bb
                        supplierName: Mickey Mouse
                      withholdingTax: []
                      totalAmount: 12.1
                      totalDiscount: 0
                      subTotal: 10
                      totalTaxAmount: 2.1
                      discountPercentage: 0
                      remainingCredit: 12.1
                      status: Submitted
                      issueDate: '2019-12-16T00:00:00Z'
                      currency: EUR
                      currencyRate: 1
                      lineItems:
                      - description: Cheesecake
                        unitAmount: 10
                        quantity: 1
                        discountAmount: 0
                        subTotal: 10
                        taxAmount: 2.1
                        totalAmount: 12.1
                        accountRef:
                          id: 5f139759-b554-4314-862e-b9d88e5b2e1b
                          name: Af te dragen loonheffing
                        taxRateRef:
                          id: 84277189-ad16-456c-b501-ca31f0a483cc
                          name: BTW prive gebruik
                          effectiveTaxRate: 21
                        trackingCategoryRefs: []
                      paymentAllocations: []
                      modifiedDate: '2022-10-26T13:32:18Z'
                      sourceModifiedDate: '2020-01-03T15:06:19Z'
                    - id: 6643f559-d7e9-4cfe-802f-60beddbc4ed9
                      billCreditNoteNumber: '20600003'
                      supplierRef:
                        id: f87070e2-bbd7-4383-a7c9-824748c1d70e
                        supplierName: Exact Software Nederland B.V.
                      withholdingTax: []
                      totalAmount: 13.57
                      totalDiscount: 0
                      subTotal: 13.57
                      totalTaxAmount: 0
                      discountPercentage: 0
                      remainingCredit: 13.57
                      status: Submitted
                      issueDate: '2020-01-20T00:00:00Z'
                      currency: EUR
                      currencyRate: 1
                      lineItems:
                      - description: 1 transactions of type CARD_PAYMENT_FEE_REFUND
                        unitAmount: 13.57
                        quantity: 1
                        discountAmount: 0
                        subTotal: 13.57
                        totalAmount: 13.57
                        accountRef:
                          id: f6c251f5-21d0-4164-9b8f-17789fd2fee9
                          name: Kosten werkgeverslasten vakantiegeld
                        trackingCategoryRefs: []
                      paymentAllocations: []
                      modifiedDate: '2022-10-26T13:32:18Z'
                      sourceModifiedDate: '2020-01-20T19:38:37Z'
                    pageNumber: 1
                    pageSize: 2
                    totalResults: 42
                    _links:
                      current:
                        href: /companies/b83b1923-4db6-45a8-a779-b4e320c15979/data/billCreditNotes?page=1&pageSize=2
                      self:
                        href: /companies/b83b1923-4db6-45a8-a779-b4e320c15979/data/billCreditNotes
                      next:
                        href: /companies/b83b1923-4db6-45a8-a779-b4e320c15979/data/billCreditNotes?page=2&pageSize=2
                Exact (UK):
                  value:
                    results:
                    - id: f9083d38-40c7-4b5f-a693-f4670e3d85bc
                      billCreditNoteNumber: '19600008'
                      supplierRef:
                        id: 1c703cce-967c-4476-a86a-32e35341a8f5
                        supplierName: Customer Bill Supplier
                      withholdingTax: []
                      totalAmount: 99999
                      totalDiscount: 0
                      subTotal: 99999
                      totalTaxAmount: 0
                      discountPercentage: 0
                      remainingCredit: 99999
                      status: Submitted
                      issueDate: '2019-10-30T00:00:00Z'
                      currency: GBP
                      currencyRate: 1
                      lineItems:
                      - description: Oil Change
                        unitAmount: -150
                        quantity: 1000.5
                        discountAmount: 0
                        subTotal: -150075
                        totalAmount: -150075
                        accountRef:
                          id: 885ff551-664d-451b-995b-cb114c9877d0
                          name: Unallocated Cash
                        itemRef:
                          id: '3001'
                        trackingCategoryRefs: []
                      - description: description
                        unitAmount: 250074
                        quantity: 1
                        discountAmount: 0
                        subTotal: 250074
                        totalAmount: 250074
                        accountRef:
                          id: 885ff551-664d-451b-995b-cb114c9877d0
                          name: Unallocated Cash
                        trackingCategoryRefs: []
                      paymentAllocations: []
                      modifiedDate: '2022-10-26T13:33:23Z'
                      sourceModifiedDate: '2019-10-30T13:12:56Z'
                    - id: 05023688-5bd5-4034-ae4c-5e3e5099bbfb
                      billCreditNoteNumber: '19600009'
                      supplierRef:
                        id: 1c703cce-967c-4476-a86a-32e35341a8f5
                        supplierName: Customer Bill Supplier
                      withholdingTax: []
                      totalAmount: 10
                      totalDiscount: 0
                      subTotal: 10
                      totalTaxAmount: 0
                      discountPercentage: 0
                      remainingCredit: 10
                      status: Submitted
                      issueDate: '2019-11-01T00:00:00Z'
                      currency: GBP
                      currencyRate: 1
                      lineItems:
                      - description: 'Credit note line item #5'
                        unitAmount: 10
                        quantity: 1
                        discountAmount: 0
                        subTotal: 10
                        totalAmount: 10
                        accountRef:
                          id: 62be6536-f4ea-49b8-9797-1adc23982334
                          name: Depreciation
                        trackingCategoryRefs: []
                      paymentAllocations: []
                      modifiedDate: '2022-10-26T13:33:23Z'
                      sourceModifiedDate: '2019-11-01T15:07:18Z'
                    pageNumber: 1
                    pageSize: 2
                    totalResults: 40
                    _links:
                      current:
                        href: /companies/d95030cd-22b2-482b-9c7b-2980dcc2b1ce/data/billCreditNotes?page=1&pageSize=2
                      self:
                        href: /companies/d95030cd-22b2-482b-9c7b-2980dcc2b1ce/data/billCreditNotes
                      next:
                        href: /companies/d95030cd-22b2-482b-9c7b-2980dcc2b1ce/data/billCreditNotes?page=2&pageSize=2
                FreeAgent:
                  value:
                    results:
                    - id: '10665024'
                      billCreditNoteNumber: Bill Credit
                      supplierRef:
                        id: '6161941'
                        supplierName: A & J Fabtech Ltd
                      withholdingTax: []
                      totalAmount: 1500
                      totalDiscount: 0
                      subTotal: 1250
                      totalTaxAmount: 250
                      discountPercentage: 0
                      remainingCredit: 1500
                      status: Submitted
                      issueDate: '2018-08-22T00:00:00'
                      currency: GBP
                      lineItems:
                      - description: A & J Fabtech Ltd - Bill Credit Note Bill Credit
                        unitAmount: 1250
                        quantity: 1
                        taxAmount: 250
                        totalAmount: 1500
                        accountRef:
                          id: '285'
                          name: Accommodation and Meals
                        trackingCategoryRefs: []
                      paymentAllocations: []
                      modifiedDate: '2023-04-25T14:19:10Z'
                      sourceModifiedDate: '2018-08-22T13:22:08Z'
                      metadata:
                        isDeleted: false
                    - id: '11007024'
                      billCreditNoteNumber: Draft test
                      supplierRef:
                        id: '6161963'
                        supplierName: ABB Ltd
                      withholdingTax: []
                      totalAmount: 10
                      totalDiscount: 0
                      subTotal: 8.33
                      totalTaxAmount: 1.67
                      discountPercentage: 0
                      remainingCredit: 10
                      status: Submitted
                      issueDate: '2018-10-17T00:00:00'
                      currency: GBP
                      lineItems:
                      - description: ABB Ltd - Bill Credit Note Draft test
                        unitAmount: 8.33
                        quantity: 1
                        taxAmount: 1.67
                        totalAmount: 10
                        accountRef:
                          id: '285'
                          name: Accommodation and Meals
                        trackingCategoryRefs: []
                      paymentAllocations: []
                      modifiedDate: '2023-04-25T14:19:10Z'
                      sourceModifiedDate: '2018-10-17T12:56:54Z'
                      metadata:
                        isDeleted: false
                    pageNumber: 1
                    pageSize: 2
                    totalResults: 45
                    _links:
                      current:
                        href: /companies/071ad738-68f3-4561-afd0-69bab9df0803/data/billCreditNotes?page=1&pageSize=2
                      self:
                        href: /companies/071ad738-68f3-4561-afd0-69bab9df0803/data/billCreditNotes
                      next:
                        href: /companies/071ad738-68f3-4561-afd0-69bab9df0803/data/billCreditNotes?page=2&pageSize=2
                KashFlow:
                  value:
                    results:
                    - id: '91339087'
                      billCreditNoteNumber: '5'
                      supplierRef:
                        id: '6202387'
                        supplierName: Dell
                      withholdingTax: []
                      totalAmount: 10
                      totalDiscount: 0
                      subTotal: 0
                      totalTaxAmount: 0
                      discountPercentage: 0
                      remainingCredit: 0
                      status: Paid
                      issueDate: '2020-02-25T00:00:00'
                      currency: GBP
                      currencyRate: 1
                      lineItems:
                      - description: Oil refund
                        unitAmount: 10
                        quantity: 1
                        subTotal: 10
                        taxAmount: 0
                        totalAmount: 10
                        accountRef:
                          id: '21481832'
                          name: Oil
                        itemRef:
                          id: '114817740'
                        trackingCategoryRefs: []
                      paymentAllocations: []
                      modifiedDate: '2022-09-30T10:29:16Z'
                    - id: '91341939'
                      billCreditNoteNumber: '6'
                      supplierRef:
                        id: '6202387'
                        supplierName: Dell
                      withholdingTax: []
                      totalAmount: 240
                      totalDiscount: 0
                      subTotal: 0
                      totalTaxAmount: 0
                      discountPercentage: 0
                      remainingCredit: 0
                      status: Paid
                      issueDate: '2020-02-25T00:00:00'
                      currency: GBP
                      currencyRate: 1
                      lineItems:
                      - description: ''
                        unitAmount: -200
                        quantity: -1
                        subTotal: 200
                        taxAmount: -40
                        totalAmount: 240
                        accountRef:
                          id: '21481820'
                          name: Materials purchased
                        itemRef:
                          id: '114821376'
                        trackingCategoryRefs: []
                      paymentAllocations: []
                      modifiedDate: '2022-09-30T10:29:16Z'
                    pageNumber: 1
                    pageSize: 2
                    totalResults: 8
                    _links:
                      current:
                        href: /companies/3a707a99-89da-4b16-a5d6-595333a16352/data/billCreditNotes?page=1&pageSize=2
                      self:
                        href: /companies/3a707a99-89da-4b16-a5d6-595333a16352/data/billCreditNotes
                      next:
                        href: /companies/3a707a99-89da-4b16-a5d6-595333a16352/data/billCreditNotes?page=2&pageSize=2
                Oracle NetSuite:
                  value:
                    results:
                    - id: '1781'
                      billCreditNoteNumber: VENDCRED1
                      supplierRef:
                        id: '749'
                        supplierName: Jo's Cheese
                      withholdingTax: []
                      totalAmount: 174.6
                      totalDiscount: 0
                      subTotal: 145.5
                      totalTaxAmount: 29.1
                      discountPercentage: 0
                      remainingCredit: 174.6
                      status: Submitted
                      issueDate: '2021-11-02T00:00:00'
                      currency: GBP
                      currencyRate: 1
                      lineItems:
                      - description: billcredit_test
                        unitAmount: 145.5
                        quantity: 1
                        unitOfMeasurement: pack
                        subTotal: 145.5
                        totalAmount: 145.5
                        accountRef:
                          id: '713'
                          name: Inventory Asset
                        trackingCategoryRefs:
                        - id: department-1
                        - id: location-1
                        tracking:
                          categoryRefs:
                          - id: department-1
                          - id: location-1
                          isBilledTo: Unknown
                          isRebilledTo: Unknown
                      paymentAllocations: []
                      modifiedDate: '2022-09-20T08:16:22Z'
                      sourceModifiedDate: '2021-11-02T19:58:58'
                      note: Codat1
                    - id: '1782'
                      billCreditNoteNumber: VENDCRED2
                      supplierRef:
                        id: '749'
                        supplierName: Jo's Cheese
                      withholdingTax: []
                      totalAmount: 642.3
                      totalDiscount: 0
                      subTotal: 535.25
                      totalTaxAmount: 107.05
                      discountPercentage: 0
                      remainingCredit: 342.3
                      status: PartiallyPaid
                      issueDate: '2021-11-02T00:00:00'
                      currency: GBP
                      currencyRate: 1
                      lineItems:
                      - description: Cheese
                        unitAmount: 400
                        quantity: 1
                        unitOfMeasurement: pack
                        subTotal: 400
                        totalAmount: 400
                        accountRef:
                          id: '714'
                          name: Cost of Goods Sold
                        createdFromLineRef:
                          id: '7462'
                          dataType: bills
                          lineNumber: '1'
                        trackingCategoryRefs:
                        - id: location-1
                        tracking:
                          categoryRefs:
                          - id: location-1
                          isBilledTo: Unknown
                          isRebilledTo: Unknown
                      - description: double cream
                        unitAmount: 100
                        quantity: 1
                        subTotal: 100
                        totalAmount: 100
                        accountRef:
                          id: '714'
                          name: Cost of Goods Sold
                        trackingCategoryRefs:
                        - id: location-1
                        tracking:
                          categoryRefs:
                          - id: location-1
                          isBilledTo: Unknown
                          isRebilledTo: Unknown
                      - description: ''
                        unitAmount: 35.25
                        quantity: 1
                        subTotal: 35.25
                        totalAmount: 35.25
                        accountRef:
                          id: '54'
                          name: Sales
                        itemRef:
                          id: '128'
                          name: Test Item
                        trackingCategoryRefs:
                        - id: location-1
                        tracking:
                          categoryRefs:
                          - id: location-1
                          isBilledTo: Unknown
                          isRebilledTo: Unknown
                      paymentAllocations:
                      - payment:
                          id: '1782'
                          note: Codat1
                          reference: Bill Credit 02/11/2021
                          currency: GBP
                          currencyRate: 1
                          paidOnDate: '2021-11-02T00:00:00'
                          totalAmount: 0
                        allocation:
                          currency: GBP
                          currencyRate: 1
                          totalAmount: 300
                      createdFromRefs:
                      - id: '7462'
                        dataType: bills
                      modifiedDate: '2022-09-20T08:16:22Z'
                      sourceModifiedDate: '2021-11-03T18:27:14'
                      note: Codat1
                    pageNumber: 1
                    pageSize: 2
                    totalResults: 16
                    _links:
                      current:
                        href: /companies/973341cc-ca0a-4a88-88de-e5954157818b/data/billCreditNotes?page=1&pageSize=2
                      self:
                        href: /companies/973341cc-ca0a-4a88-88de-e5954157818b/data/billCreditNotes
                      next:
                        href: /companies/973341cc-ca0a-4a88-88de-e5954157818b/data/billCreditNotes?page=2&pageSize=2
                QuickBooks Desktop:
                  value:
                    results:
                    - id: 6D2C-1197698059
                      billCreditNoteNumber: Return
                      supplierRef:
                        id: E0000-933272656
                        supplierName: Timberloft Lumber
                      withholdingTax: []
                      totalAmount: 475
                      totalDiscount: 0
                      subTotal: 475
                      totalTaxAmount: 0
                      discountPercentage: 0
                      remainingCredit: 475
                      status: Submitted
                      issueDate: '2024-10-30T00:00:00'
                      currency: GBP
                      currencyRate: 1
                      lineItems:
                      - description: Lumber:Rough - Rough lumber
                        unitAmount: 475
                        quantity: 0
                        discountAmount: 0
                        subTotal: 475
                        taxAmount: 0
                        totalAmount: 475
                        discountPercentage: 0
                        itemRef:
                          id: 1C0000-933272656
                          name: Lumber:Rough
                        trackingCategoryRefs:
                        - id: 10000-933272658
                          name: New Construction
                        tracking:
                          categoryRefs:
                          - id: 10000-933272658
                            name: New Construction
                          isBilledTo: Unknown
                          isRebilledTo: Unknown
                      paymentAllocations:
                      - payment:
                          id: 6D2C-1197698059
                          reference: Return
                          currency: GBP
                          currencyRate: 1
                          paidOnDate: '2024-10-30T00:00:00'
                          totalAmount: 0
                        allocation:
                          currency: GBP
                          currencyRate: 1
                          totalAmount: 475
                      modifiedDate: '2023-04-26T09:12:30Z'
                      sourceModifiedDate: '2023-12-16T05:06:19'
                      metadata:
                        isDeleted: false
                    - id: F3A-933787869
                      billCreditNoteNumber: CR-1098
                      supplierRef:
                        id: 80000-933272656
                        supplierName: Sloan Roofing
                      withholdingTax: []
                      totalAmount: 850
                      totalDiscount: 0
                      subTotal: 850
                      totalTaxAmount: 0
                      discountPercentage: 0
                      remainingCredit: 850
                      status: Submitted
                      issueDate: '2024-12-12T00:00:00'
                      currency: GBP
                      currencyRate: 1
                      lineItems:
                      - description: Subs:Roofing - Roofing
                        unitAmount: 850
                        quantity: 0
                        discountAmount: 0
                        subTotal: 850
                        taxAmount: 0
                        totalAmount: 850
                        discountPercentage: 0
                        itemRef:
                          id: D0000-933272656
                          name: Subs:Roofing
                        trackingCategoryRefs:
                        - id: 10000-933272658
                          name: New Construction
                        tracking:
                          categoryRefs:
                          - id: 10000-933272658
                            name: New Construction
                          isBilledTo: Unknown
                          isRebilledTo: Unknown
                      paymentAllocations:
                      - payment:
                          id: F3A-933787869
                          reference: CR-1098
                          currency: GBP
                          currencyRate: 1
                          paidOnDa

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