diff --git a/.speakeasy/logs/changes/changes.html b/.speakeasy/logs/changes/changes.html index a82a2c420..a8d6d4524 100644 --- a/.speakeasy/logs/changes/changes.html +++ b/.speakeasy/logs/changes/changes.html @@ -98,24 +98,34 @@

Python SDK Changes:

\ No newline at end of file diff --git a/.speakeasy/logs/changes/changes.md b/.speakeasy/logs/changes/changes.md index ee071189d..c2f67237d 100644 --- a/.speakeasy/logs/changes/changes.md +++ b/.speakeasy/logs/changes/changes.md @@ -1,19 +1,20 @@ ## Python SDK Changes: -* `codat_platform.companies.update()`: `response.data_connections[].connection_info.Map` **Changed** (Breaking ⚠️) -* `codat_platform.connections.create()`: `response.connection_info.Map` **Changed** (Breaking ⚠️) -* `codat_platform.connections.update_authorization()`: `response.connection_info.Map` **Changed** (Breaking ⚠️) -* `codat_platform.connections.unlink()`: `response.connection_info.Map` **Changed** (Breaking ⚠️) -* `codat_platform.companies.create()`: `response.data_connections[].connection_info.Map` **Changed** (Breaking ⚠️) -* `codat_platform.companies.get()`: `response.data_connections[].connection_info.Map` **Changed** (Breaking ⚠️) -* `codat_platform.companies.list()`: `response.results[].data_connections[].connection_info.Map` **Changed** (Breaking ⚠️) -* `codat_platform.companies.replace()`: `response.data_connections[].connection_info.Map` **Changed** (Breaking ⚠️) -* `codat_platform.connections.list()`: `response.results[].connection_info.Map` **Changed** (Breaking ⚠️) -* `codat_platform.connections.get()`: `response.connection_info.Map` **Changed** (Breaking ⚠️) -* `codat_platform.companies.get_company_sync_settings()`: **Added** -* `codat_platform.companies.refresh_product_data()`: **Added** -* `codat_platform.read_data.get_validation_results()`: **Added** -* `codat_platform.companies.set_company_sync_settings()`: **Added** -* `codat_platform.refresh_data.all()`: `error.status[400]` **Added** -* `codat_platform.refresh_data.by_data_type()`: `error.status[400]` **Added** -* `codat_platform.refresh_data.get()`: `response.account_transactions.last_successful_sync` **Changed** -* `codat_lending.banking.categorized_statement.get()`: `response.report_items[].transactions[].is_recurring` **Added** +* `codat_sync_expenses.connections.create_partner_expense_connection()`: `response.connection_info.Map` **Changed** (Breaking ⚠️) +* `codat_sync_expenses.companies.create()`: `response.data_connections[].connection_info.Map` **Changed** (Breaking ⚠️) +* `codat_sync_expenses.companies.get()`: `response.data_connections[].connection_info.Map` **Changed** (Breaking ⚠️) +* `codat_sync_expenses.companies.list()`: + * `request.tags` **Added** + * `response.results[].data_connections[].connection_info.Map` **Changed** (Breaking ⚠️) +* `codat_sync_expenses.companies.update()`: + * `request` **Changed** (Breaking ⚠️) + - `company_request_body` **Removed** (Breaking ⚠️) + - `company_update_request` **Added** + * `response.data_connections[].connection_info.Map` **Changed** (Breaking ⚠️) +* `codat_sync_expenses.connections.create()`: `response.connection_info.Map` **Changed** (Breaking ⚠️) +* `codat_sync_expenses.connections.get()`: `response.connection_info.Map` **Changed** (Breaking ⚠️) +* `codat_sync_expenses.connections.list()`: `response.results[].connection_info.Map` **Changed** (Breaking ⚠️) +* `codat_sync_expenses.connections.unlink()`: `response.connection_info.Map` **Changed** (Breaking ⚠️) +* `codat_sync_expenses.companies.replace()`: **Added** +* `codat_sync_expenses.manage_data.get()`: `response.account_transactions.last_successful_sync` **Changed** +* `codat_sync_expenses.manage_data.refresh_all_data_types()`: `error.status[400]` **Added** +* `codat_sync_expenses.manage_data.refresh_data_type()`: `error.status[400]` **Added** diff --git a/.speakeasy/logs/changes/new.openapi.yaml b/.speakeasy/logs/changes/new.openapi.yaml index 108265e9c..624c47077 100644 --- a/.speakeasy/logs/changes/new.openapi.yaml +++ b/.speakeasy/logs/changes/new.openapi.yaml @@ -1,29 +1,23 @@ openapi: 3.1.0 -x-stoplight: - id: 466k6ayziv9at -servers: - - description: Production - url: 'https://api.codat.io' info: - title: Platform API - version: 3.0.0 - summary: Platform API + title: Expenses + version: prealpha + contact: + name: Codat + url: 'https://www.codat.io/' + email: expenses@codat.io description: |- - An API for the common components of all of Codat's products. - - These end points cover creating and managing your companies, data connections, and integrations. + The API for Codat's Expenses solution. - [Read about the building blocks of Codat...](https://docs.codat.io/core-concepts/companies) | [See our OpenAPI spec](https://github.com/codatio/oas) + Expenses is an API and a set of supporting tools. It has been built to + enable corporate card and expense management platforms to provide high-quality + integrations with multiple accounting software through a standardized API. - --- - title: Lending - 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. + [Explore solution](https://docs.codat.io/sync-for-expenses/overview) | [See our OpenAPI spec](https://github.com/codatio/oas) - 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) + Not seeing the endpoints you're expecting? We've [reorganized our solutions](https://docs.codat.io/updates/230901-new-products), and you may be using a [different version of Expenses](https://docs.codat.io/sync-for-expenses-v1-api#/). + --- ## Endpoints @@ -31,33 +25,19 @@ info: | :- |:- | | Companies | Create and manage your SMB users' companies. | | Connections | Create new and manage existing data connections for a company. | - | Connection management | Configure connection management UI and retrieve access tokens for authentication. | - | Webhooks | Create and manage webhooks that listen to Codat's events. | - | Integrations | Get a list of integrations supported by Codat and their logos. | - | Refresh data | Initiate data refreshes, view pull status and history. | - | Settings | Manage company profile configuration, sync settings, and API keys. | - | Push data | Initiate and monitor Create, Update, and Delete operations. | - | Supplemental data | Configure and pull additional data you can include in Codat's standard data types. | - | Custom data type | Configure and pull additional data types that are not included in Codat's standardized data model. | + | Configuration | View and manage mapping configuration and defaults for expense transactions. | + | Sync | Monitor the status of data syncs. | + | Expenses | Create and update transactions that represent your customers' spend. | + | Transfers | Create and update transactions that represent the movement of your customers' money. | + | Reimbursements | Create and update transactions that represent your customers' repayable spend. | + | Attachments | Attach receipts to a transaction for a complete audit trail. | + | Transaction status | Monitor the status of individual transactions in data syncs. | + | Manage data | Control and monitor the retrieval of data from an integration. | + | Push operations | View historic push operations. | + | Accounts | Create accounts and view account schemas. | + | Customers | Get, create, and update customers. | + | Suppliers | Get, create, and update suppliers. | - | 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. | - - version: 3.0.0 - contact: - name: Codat - email: support@codat.io termsOfService: 'https://www.codat.io/legals/' security: - auth_header: [] @@ -98,8 +78,7 @@ x-speakeasy-name-override: methodNameOverride: download-attachment - operationId: ^upload-.*?-attachment methodNameOverride: upload-attachment -x-codat-docs-path: platform-api -x-codat-docs-path: lending-api +x-codat-docs-path: sync-for-expenses-api x-codat-keep-docs-paths-local: true x-codat-speakeasy-pagination: type: offsetLimit @@ -112,60 +91,42 @@ x-codat-speakeasy-pagination: tags: - name: Companies description: Create and manage your SMB users' companies. - - name: Connection management - description: Configure UI and retrieve access tokens for authentication used by **Connections SDK**. - - name: Connections - description: Create new and manage existing data connections for a company. - - name: Webhooks - description: Create and manage webhooks that listen to Codat's events. - - name: Integrations - description: Get a list of integrations supported by Codat and their logos. - - name: Refresh data - description: 'Initiate data refreshes, view pull status and history.' - - name: Settings - description: 'Manage company profile configuration, sync settings, and API keys.' - - name: Push data - description: 'Initiate and monitor Create, Update, and Delete operations.' - - name: Read data - description: View validation outcomes for completed read data operations. - - name: Supplemental data - description: Configure and pull additional data you can include in Codat's standard data types. - - name: Custom data type - description: Configure and pull additional data types that are not included in Codat's standardized data model. - name: Connections description: Create new and manage existing data connections for a company. - - name: Bank statements - description: Retrieve banking data from linked bank accounts. - - name: Sales - description: Retrieve standardized sales data from a linked commerce software. - - name: Financial statements - description: Financial data and reports from a linked accounting software. - - name: Liabilities - description: Debt and other liabilities. - - name: Accounts payable - description: Data from a linked accounting software representing money the business owes money to its suppliers. - - name: Accounts receivable - description: Data from a linked accounting software representing money owed to the business for sold goods or services. - - name: Accounting bank data - description: Access bank transactions from an accounting software. - - name: Transactions - description: Data from a linked accounting software representing transactions. - name: Company info - description: View company information fetched from the source platform. - - name: Data integrity - description: Match mutable accounting data with immutable banking data to increase confidence in financial data. - - name: Excel reports - description: Download reports in Excel format. + description: View the company information of your customers' linked accounting software. - name: Manage data - description: Control how data is retrieved from an integration. - - name: File upload - description: Endpoints to manage uploaded files. - - name: Loan writeback - description: '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.' - - name: Manage reports - description: Generate and review generated reports for a company. - - name: Financial summary - description: 'View financial summary information for a company, including credit model reports and accounting score.' + description: Control and monitor the retrieval of data from an integration. + - name: Mapping options + description: 'Get accounts, trackingCategories and taxRates that can be used in your create and update requests.' + - name: Accounts + description: Create accounts and view create account options. + - name: Bank accounts + description: Create bank accounts and view create bank account options. + - name: Customers + description: 'Get, create, and update customers.' + - name: Suppliers + description: 'Get, create, and update suppliers.' + - name: Push operations + description: View historic push operations. + - name: Configuration + description: View and manage mapping configuration and defaults for expense transactions. + - name: Expenses + description: Create and update transactions that represent your customers' spend. + - name: Reimbursements + description: Create and update transactions that represent your customers' repayable spend. + - name: Transfers + description: Create and update transactions that represent the movement of your customers' money. + - name: Adjustments + description: Create transactions that represent your adjustments to your customers' spend. + - name: Attachments + description: Attach receipts to a transaction for a complete audit trail. + - name: Sync + description: Monitor the status of data syncs. + - name: Transaction status + description: Monitor the status of individual transactions in data syncs. +servers: + - url: 'https://api.codat.io' paths: /companies: get: @@ -335,8 +296,7 @@ paths: '503': $ref: '#/components/responses/Service-Unavailable' operationId: list-companies - description: "\uFEFFThe *List companies* endpoint returns a list of [companies](https://docs.codat.io/platform-api#/schemas/Company) associated to your instances.\n\nA [company](https://docs.codat.io/platform-api#/schemas/Company) represents a business sharing access to their data.\nEach company can have multiple [connections](https://docs.codat.io/platform-api#/schemas/Connection) to different data sources, such as one connection to Xero for accounting data, two connections to Plaid for two bank accounts, and a connection to Zettle for POS data.\n\n## Filter by tags\n\nThe *List companies* endpoint supports the filtering of companies using [tags](https://docs.codat.io/using-the-api/managing-companies#add-metadata-to-a-company). It supports the following operators with [Codat’s query language](https://docs.codat.io/using-the-api/querying):\n\n- equals (`=`)\n- not equals (`!=`)\n- contains (`~`)\n\nFor example, you can use the querying to filter companies tagged with a specific foreign key, region, or owning team: \n- Foreign key: `uid = {yourCustomerId}`\n- Region: `region != uk`\n- Owning team and region: `region = uk && owningTeam = invoice-finance`" - description: "\uFEFFThe *List companies* endpoint returns a list of [companies](https://docs.codat.io/lending-api#/schemas/Company) associated to your instances.\n\nA [company](https://docs.codat.io/lending-api#/schemas/Company) represents a business sharing access to their data.\nEach company can have multiple [connections](https://docs.codat.io/lending-api#/schemas/Connection) to different data sources, such as one connection to Xero for accounting data, two connections to Plaid for two bank accounts, and a connection to Zettle for POS data.\n\n## Filter by tags\n\nThe *List companies* endpoint supports the filtering of companies using [tags](https://docs.codat.io/using-the-api/managing-companies#add-metadata-to-a-company). It supports the following operators with [Codat’s query language](https://docs.codat.io/using-the-api/querying):\n\n- equals (`=`)\n- not equals (`!=`)\n- contains (`~`)\n\nFor example, you can use the querying to filter companies tagged with a specific foreign key, region, or owning team: \n- Foreign key: `uid = {yourCustomerId}`\n- Region: `region != uk`\n- Owning team and region: `region = uk && owningTeam = invoice-finance`" + description: "\uFEFFThe *List companies* endpoint returns a list of [companies](https://docs.codat.io/sync-for-expenses-api#/schemas/Company) associated to your instances.\n\nA [company](https://docs.codat.io/sync-for-expenses-api#/schemas/Company) represents a business sharing access to their data.\nEach company can have multiple [connections](https://docs.codat.io/sync-for-expenses-api#/schemas/Connection) to different data sources, such as one connection to Xero for accounting data, two connections to Plaid for two bank accounts, and a connection to Zettle for POS data.\n\n## Filter by tags\n\nThe *List companies* endpoint supports the filtering of companies using [tags](https://docs.codat.io/using-the-api/managing-companies#add-metadata-to-a-company). It supports the following operators with [Codat’s query language](https://docs.codat.io/using-the-api/querying):\n\n- equals (`=`)\n- not equals (`!=`)\n- contains (`~`)\n\nFor example, you can use the querying to filter companies tagged with a specific foreign key, region, or owning team: \n- Foreign key: `uid = {yourCustomerId}`\n- Region: `region != uk`\n- Owning team and region: `region = uk && owningTeam = invoice-finance`" parameters: - $ref: '#/components/parameters/page' - $ref: '#/components/parameters/pageSize' @@ -404,7 +364,6 @@ paths: region: us referenceSubsidiaryCompanies: [] '400': - $ref: '#/components/responses/Bad-Request' $ref: '#/components/responses/BadRequest' '401': $ref: '#/components/responses/Unauthorized' @@ -418,8 +377,7 @@ paths: $ref: '#/components/responses/Internal-Server-Error' '503': $ref: '#/components/responses/Service-Unavailable' - description: "\uFEFFUse the *Create company* endpoint to create a new [company](https://docs.codat.io/platform-api#/schemas/Company) that represents your customer in Codat. \n\nA [company](https://docs.codat.io/platform-api#/schemas/Company) represents a business sharing access to their data.\nEach company can have multiple [connections](https://docs.codat.io/platform-api#/schemas/Connection) to different data sources, such as one connection to Xero for accounting data, two connections to Plaid for two bank accounts, and a connection to Zettle for POS data.\n\nIf forbidden characters (see `name` pattern) are present in the request, a company will be created with the forbidden characters removed. For example, `Company (Codat[1])` with be created as `Company Codat1`." - description: "\uFEFFUse the *Create company* endpoint to create a new [company](https://docs.codat.io/lending-api#/schemas/Company) that represents your customer in Codat. \n\nA [company](https://docs.codat.io/lending-api#/schemas/Company) represents a business sharing access to their data.\nEach company can have multiple [connections](https://docs.codat.io/lending-api#/schemas/Connection) to different data sources, such as one connection to Xero for accounting data, two connections to Plaid for two bank accounts, and a connection to Zettle for POS data.\n\nIf forbidden characters (see `name` pattern) are present in the request, a company will be created with the forbidden characters removed. For example, `Company (Codat[1])` with be created as `Company Codat1`." + description: "\uFEFFUse the *Create company* endpoint to create a new [company](https://docs.codat.io/sync-for-expenses-api#/schemas/Company) that represents your customer in Codat. \n\nA [company](https://docs.codat.io/sync-for-expenses-api#/schemas/Company) represents a business sharing access to their data.\nEach company can have multiple [connections](https://docs.codat.io/sync-for-expenses-api#/schemas/Connection) to different data sources, such as one connection to Xero for accounting data, two connections to Plaid for two bank accounts, and a connection to Zettle for POS data.\n\nIf forbidden characters (see `name` pattern) are present in the request, a company will be created with the forbidden characters removed. For example, `Company (Codat[1])` with be created as `Company Codat1`." requestBody: content: application/json: @@ -434,13 +392,9 @@ paths: name: Technicalium description: 'Technology services, including web and app design and development' '/companies/{companyId}': - get: - summary: Get company - operationId: get-company - description: "\uFEFFThe *Get company* endpoint returns a single company for a given `companyId`.\n\nA [company](https://docs.codat.io/platform-api#/schemas/Company) represents a business sharing access to their data.\nEach company can have multiple [connections](https://docs.codat.io/platform-api#/schemas/Connection) to different data sources, such as one connection to Xero for accounting data, two connections to Plaid for two bank accounts, and a connection to Zettle for POS data.\n" put: summary: Replace company - description: "\uFEFFUse the *Replace company* endpoint to replace the existing name, description, and tags of the company. Calling the endpoint will replace existing values even if new values haven't been defined in the payload.\n\nA [company](https://docs.codat.io/lending-api#/schemas/Company) represents a business sharing access to their data.\nEach company can have multiple [connections](https://docs.codat.io/lending-api#/schemas/Connection) to different data sources, such as one connection to Xero for accounting data, two connections to Plaid for two bank accounts, and a connection to Zettle for POS data." + description: "\uFEFFUse the *Replace company* endpoint to replace the existing name, description, and tags of the company. Calling the endpoint will replace existing values even if new values haven't been defined in the payload.\n\nA [company](https://docs.codat.io/sync-for-expenses-api#/schemas/Company) represents a business sharing access to their data.\nEach company can have multiple [connections](https://docs.codat.io/sync-for-expenses-api#/schemas/Connection) to different data sources, such as one connection to Xero for accounting data, two connections to Plaid for two bank accounts, and a connection to Zettle for POS data." operationId: replace-company x-speakeasy-name-override: replace parameters: @@ -483,7 +437,7 @@ paths: description: Additional documents required patch: summary: Update company - description: "\uFEFFUse the *Update company* endpoint to update the name, description, or tags of the company.\n\nThe *Update company* endpoint doesn't have any required fields. If any of the fields provided are `null` or not provided, they won't be included in the update. \n\nA [company](https://docs.codat.io/lending-api#/schemas/Company) represents a business sharing access to their data." + description: "\uFEFFUse the *Update company* endpoint to update the name, description, or tags of the company.\n\nThe *Update company* endpoint doesn't have any required fields. If any of the fields provided are `null` or not provided, they won't be included in the update. \n\nA [company](https://docs.codat.io/sync-for-expenses-api#/schemas/Company) represents a business sharing access to their data." operationId: update-company parameters: - $ref: '#/components/parameters/companyId' @@ -528,7 +482,7 @@ paths: operationId: delete-company parameters: - $ref: '#/components/parameters/companyId' - description: "\uFEFFThe *Delete company* endpoint permanently deletes a [company](https://docs.codat.io/lending-api#/schemas/Company), its [connections](https://docs.codat.io/lending-api#/schemas/Connection) and any cached data. This operation is irreversible.\n\nA [company](https://docs.codat.io/lending-api#/schemas/Company) represents a business sharing access to their data.\nEach company can have multiple [connections](https://docs.codat.io/lending-api#/schemas/Connection) to different data sources, such as one connection to Xero for accounting data, two connections to Plaid for two bank accounts, and a connection to Zettle for POS data.\n" + description: "\uFEFFThe *Delete company* endpoint permanently deletes a [company](https://docs.codat.io/sync-for-expenses-api#/schemas/Company), its [connections](https://docs.codat.io/sync-for-expenses-api#/schemas/Connection) and any cached data. This operation is irreversible.\n\nA [company](https://docs.codat.io/sync-for-expenses-api#/schemas/Company) represents a business sharing access to their data.\nEach company can have multiple [connections](https://docs.codat.io/sync-for-expenses-api#/schemas/Connection) to different data sources, such as one connection to Xero for accounting data, two connections to Plaid for two bank accounts, and a connection to Zettle for POS data.\n" tags: - Companies responses: @@ -551,7 +505,7 @@ paths: get: summary: Get company operationId: get-company - description: "\uFEFFThe *Get company* endpoint returns a single company for a given `companyId`.\n\nA [company](https://docs.codat.io/lending-api#/schemas/Company) represents a business sharing access to their data.\nEach company can have multiple [connections](https://docs.codat.io/lending-api#/schemas/Connection) to different data sources, such as one connection to Xero for accounting data, two connections to Plaid for two bank accounts, and a connection to Zettle for POS data.\n" + description: "\uFEFFThe *Get company* endpoint returns a single company for a given `companyId`.\n\nA [company](https://docs.codat.io/sync-for-expenses-api#/schemas/Company) represents a business sharing access to their data.\nEach company can have multiple [connections](https://docs.codat.io/sync-for-expenses-api#/schemas/Connection) to different data sources, such as one connection to Xero for accounting data, two connections to Plaid for two bank accounts, and a connection to Zettle for POS data.\n" parameters: - $ref: '#/components/parameters/companyId' tags: @@ -649,254 +603,6 @@ paths: $ref: '#/components/responses/Internal-Server-Error' '503': $ref: '#/components/responses/Service-Unavailable' - delete: - summary: Delete a company - operationId: delete-company - parameters: - - $ref: '#/components/parameters/companyId' - description: "\uFEFFThe *Delete company* endpoint permanently deletes a [company](https://docs.codat.io/platform-api#/schemas/Company), its [connections](https://docs.codat.io/platform-api#/schemas/Connection) and any cached data. This operation is irreversible.\n\nA [company](https://docs.codat.io/platform-api#/schemas/Company) represents a business sharing access to their data.\nEach company can have multiple [connections](https://docs.codat.io/platform-api#/schemas/Connection) to different data sources, such as one connection to Xero for accounting data, two connections to Plaid for two bank accounts, and a connection to Zettle for POS data.\n" - tags: - - Companies - responses: - '204': - description: No Content - '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' - put: - summary: Replace company - description: "\uFEFFUse the *Replace company* endpoint to replace the existing name, description, and tags of the company. Calling the endpoint will replace existing values even if new values haven't been defined in the payload.\n\nA [company](https://docs.codat.io/platform-api#/schemas/Company) represents a business sharing access to their data.\nEach company can have multiple [connections](https://docs.codat.io/platform-api#/schemas/Connection) to different data sources, such as one connection to Xero for accounting data, two connections to Plaid for two bank accounts, and a connection to Zettle for POS data." - operationId: replace-company - x-speakeasy-name-override: replace - parameters: - - $ref: '#/components/parameters/companyId' - tags: - - Companies - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/Company' - '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' - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/CompanyRequestBody' - examples: - Update name: - value: - name: New Name - Update description: - value: - name: Same name - description: Additional documents required - patch: - summary: Update company - description: "\uFEFFUse the *Update company* endpoint to update the name, description, or tags of the company.\n\nThe *Update company* endpoint doesn't have any required fields. If any of the fields provided are `null` or not provided, they won't be included in the update. \n\nA [company](https://docs.codat.io/platform-api#/schemas/Company) represents a business sharing access to their data." - operationId: update-company - parameters: - - $ref: '#/components/parameters/companyId' - tags: - - Companies - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/Company' - '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' - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/CompanyUpdateRequest' - examples: - Update tags: - value: - tags: - refrence: new reference - Update name: - value: - name: New Name - '/companies/{companyId}/products/{productIdentifier}': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/productIdentifier' - put: - summary: Add product - operationId: add-product - x-speakeasy-name-override: add-product - description: |- - Use the *Add product* endpoint to enable a product for the company specified by `companyId`. - - > Note: This feature is currently in alpha and available only to participants in the development program. - tags: - - Companies - responses: - '204': - description: OK - '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' - delete: - summary: Remove product - operationId: remove-product - x-speakeasy-name-override: remove-product - description: |- - Use the *Remove product* endpoint to disable a product for the company specified by `companyId`. - - > Note: This feature is currently in alpha and available only to participants in the development program. - tags: - - Companies - responses: - '204': - description: OK - '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' - '/companies/{companyId}/products/{productIdentifier}/refresh': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/productIdentifier' - post: - summary: Refresh product data - operationId: refresh-product-data - x-speakeasy-name-override: refresh-product-data - description: |- - Use the **Refresh product data** endpoint to manually refresh data for a custom product for a specific company. - - ### Tips and traps - - - This endpoint only supports refreshing data for **custom products** and can't be used for Codat's standard solutions. Refer to [individual solutions' documentation](https://docs.codat.io/) instead. - - If a data sync is already in progress for a custom product, the refresh request will return a `Bad request (400)` response. - - If a company has multiple custom products enabled, you can refresh data for each product individually. - - Optionally include a request body with `dataTypes` to refresh only selected data types for the specified product. If omitted, the product's scheduled refresh is triggered as usual. - - When specifying `dataTypes`, each value must be a valid data type supported by the product. Invalid values will result in a `Bad request (400)` response listing valid options. - tags: - - Companies - requestBody: - required: false - description: 'Optionally specify one or more data types to refresh for the given custom product. If omitted, the product''s scheduled refresh is triggered as usual. When provided, each data type must be valid for the specified product.' - content: - application/json: - schema: - type: object - properties: - dataTypes: - type: array - description: One or more data types to refresh for the product. - items: - type: string - additionalProperties: false - examples: - Filter specific data types: - value: - dataTypes: - - invoices - - payments - responses: - '202': - description: OK - '400': - description: Bad Request - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorMessage' - examples: - Standard product not supported: - value: - statusCode: 400 - service: PublicApi - error: 'Bank Feeds doesn''t support data refreshing. For more information, refer to your solution’s documentation [here](https://docs.codat.io).' - correlationId: bc997528a9d7abb9161ef45f05d38599 - canBeRetried: Unknown - detailedErrorCode: 0 - Read in progress: - value: - statusCode: 400 - service: PublicApi - error: Data cannot be refreshed while a read operation is in progress. Allow the read to complete before attempting to refresh. - correlationId: bc997528a9d7abb9161ef45f05d38599 - canBeRetried: Unknown - detailedErrorCode: 0 - '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' '/companies/{companyId}/connections': get: summary: List connections @@ -974,7 +680,6 @@ paths: type: object properties: platformKey: - $ref: '#/components/parameters/platformKey/schema' type: string minLength: 4 maxLength: 4 @@ -1120,7 +825,6 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UpdateConnectionStatus' title: Update connection x-internal: true type: object @@ -1135,24 +839,26 @@ paths: value: status: Unlinked description: '' - '/companies/{companyId}/connections/{connectionId}/authorization': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - put: - summary: Update authorization - operationId: update-connection-authorization - x-speakeasy-name-override: update-authorization - description: Update data connection's authorization. + '/companies/{companyId}/sync/expenses/connections/partnerExpense': + post: tags: - Connections + description: Creates a partner expense data connection + summary: Create partner expense connection + operationId: create-partner-expense-connection + x-speakeasy-name-override: create-partner-expense-connection + parameters: + - $ref: '#/components/parameters/companyId' responses: '200': - description: OK + description: Success content: application/json: schema: $ref: '#/components/schemas/Connection' + examples: {} + '400': + $ref: '#/components/responses/BadRequest' '401': $ref: '#/components/responses/Unauthorized' '402': @@ -1167,85 +873,90 @@ paths: $ref: '#/components/responses/Internal-Server-Error' '503': $ref: '#/components/responses/Service-Unavailable' - requestBody: - content: - application/json: - schema: - type: object - additionalProperties: - type: string - description: '' - '/companies/{companyId}/accessToken': + '/companies/{companyId}/data/info': get: - summary: Get company access token - operationId: get-company-access-token - x-speakeasy-name-override: get-access-token - description: |- - Use the _Get company access token_ endpoint to return an access token for the specified company ID. The token is valid for one day. - - The token is required by Codat's embeddable UIs (such as [Connections SDK](https://docs.codat.io/auth-flow/optimize/connection-management) and [Link SDK](https://docs.codat.io/auth-flow/authorize-embedded-link)) to verify the identity of the user and improve the reliability of data provided by them. + tags: + - Company info + summary: Get company info + description: Gets the latest basic info for a company. + operationId: get-company-info parameters: - $ref: '#/components/parameters/companyId' - tags: - - Companies responses: '200': - description: OK + description: Success content: application/json: schema: - $ref: '#/components/schemas/CompanyAccessToken' + $ref: '#/components/schemas/CompanyInformation' examples: - Simple company: + Example 1: value: - expiresIn: 86400 - accessToken: string - tokenType: Bearer - '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' + companyName: Codat + accountingPlatformRef: 1700060034_ETD + companyLegalName: Codat Ltd + addresses: + - type: Billing + line1: 301 Ink Rooms + line2: 28 Easton Street + city: London + region: England + country: United Kingdom + postalCode: WC1X 0BE + - type: Delivery + line1: 28 Easton Street + city: London + country: UK + postalCode: WC1X 0BE + phoneNumbers: + - number: 02012 345678 + type: Landline + - number: 07123 456789 + type: Mobile + - number: 02012 345678 + type: Fax + webLinks: + - type: Website + url: 'https://www.codat.io/' + - type: Social + url: 'https://www.linkedin.com/company/codat-limited/' + registrationNumber: '5590111724' + taxNumber: '74111622555799035846' + financialYearStartDate: '2023-04-01T00:00:00' + baseCurrency: GBP + sourceUrls: + Api: 'https://api.codat.io' + createdDate: '2020-03-09T15:19:26' + '401': + $ref: '#/components/responses/Unauthorized' + '402': + $ref: '#/components/responses/Payment-Required' + '403': + $ref: '#/components/responses/Forbidden' + '404': + $ref: '#/components/responses/Not-Found' + '409': + $ref: '#/components/responses/Conflict' + '429': + $ref: '#/components/responses/Too-Many-Requests' '500': $ref: '#/components/responses/Internal-Server-Error' '503': $ref: '#/components/responses/Service-Unavailable' - '/companies/{companyId}/syncSettings': - parameters: - - $ref: '#/components/parameters/companyId' + '/companies/{companyId}/sync/expenses/config': get: - summary: Get company sync settings tags: - - Companies - operationId: get-company-syncSettings - x-speakeasy-name-override: get-company-sync-settings - description: 'Retrieve the [sync settings](https://docs.codat.io/knowledge-base/advanced-sync-settings) for a specific company. This includes how often data types should be queued to be updated, and how much history should be fetched.' + - Configuration + parameters: + - $ref: '#/components/parameters/companyId' responses: '200': - description: OK + description: Success content: application/json: schema: - $ref: '#/components/schemas/CompanySyncSettings' - examples: - Example: - value: - companyId: 8a210b68-6988-11ed-a1eb-0242ac120002 - settings: - - dataType: invoices - fetchOnFirstLink: true - syncSchedule: 24 - syncOrder: 0 - syncFromUtc: '2020-01-01T12:00:00.000Z' - syncFromWindow: 24 - monthsToSync: 24 - isLocked: true - overridesDefaults: true + $ref: '#/components/schemas/CompanyConfiguration' + examples: {} '401': $ref: '#/components/responses/Unauthorized' '402': @@ -1260,18 +971,29 @@ paths: $ref: '#/components/responses/Internal-Server-Error' '503': $ref: '#/components/responses/Service-Unavailable' + summary: Get company configuration + description: Gets a company's expense sync configuration + operationId: get-company-configuration post: - summary: Set company sync settings - description: Set the sync settings for a specific company. tags: - - Companies - operationId: set-company-syncSettings - x-speakeasy-name-override: set-company-sync-settings + - Configuration + parameters: + - $ref: '#/components/parameters/companyId' + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CompanyConfiguration' + examples: {} responses: - '204': - description: No Content + '200': + description: Success + content: + application/json: + schema: + $ref: '#/components/schemas/CompanyConfiguration' '400': - $ref: '#/components/responses/Bad-Request' + $ref: '#/components/responses/BadRequest' '401': $ref: '#/components/responses/Unauthorized' '402': @@ -1286,59 +1008,26 @@ paths: $ref: '#/components/responses/Internal-Server-Error' '503': $ref: '#/components/responses/Service-Unavailable' - requestBody: - content: - application/json: - schema: - allOf: - - properties: - companyId: - type: string - format: uuid - example: 8a210b68-6988-11ed-a1eb-0242ac120002 - description: Unique identifier for your SMB in Codat. - settings: - type: array - items: - $ref: '#/components/schemas/SyncSetting' - overridesDefaults: - type: boolean - default: true - description: 'Set to `True` if you want to override default [sync settings](https://docs.codat.io/knowledge-base/advanced-sync-settings).' - required: - - companyId - - settings - - overridesDefaults - type: object - description: |- - Include a `syncSetting` object for each data type. - `syncFromWindow`, `syncFromUTC` & `monthsToSync` only need to be included if you wish to set a value for them. - '/companies/{companyId}/connectionManagement/accessToken': + summary: Set company configuration + description: Sets a company's expense sync configuration + operationId: set-company-configuration + x-speakeasy-name-override: set parameters: - $ref: '#/components/parameters/companyId' + '/companies/{companyId}/sync/expenses/mappingOptions': get: - summary: Get access token (old) - operationId: get-connection-management-access-token - deprecated: true - x-speakeasy-deprecation-message: | - The endpoint for generating company-specific connection management access tokens has been deprecated. - Codat now supports a global company access token, providing seamless access across multiple products. - Update your integration to use the global token for improved efficiency and consistency. - x-speakeasy-deprecation-replacement: get-company-access-token tags: - - Connection management - description: "\uFEFFThe new [Get company access token](https://docs.codat.io/platform-api#/operations/get-company-access-token) endpoint replaces this endpoint and includes additional functionality." + - Mapping options + parameters: + - $ref: '#/components/parameters/companyId' responses: '200': description: Success content: application/json: schema: - $ref: '#/components/schemas/ConnectionManagementAccessToken' - examples: - Access token: - value: - accessToken: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c + $ref: '#/components/schemas/MappingOptions' + examples: {} '401': $ref: '#/components/responses/Unauthorized' '402': @@ -1353,22 +1042,26 @@ paths: $ref: '#/components/responses/Internal-Server-Error' '503': $ref: '#/components/responses/Service-Unavailable' - /connectionManagement/corsSettings: + description: 'Gets the mapping options (accounts, trackingCategories and taxRates) for a company''s accounting software' + summary: Mapping options + operationId: get-mapping-options + x-speakeasy-name-override: get-mapping-options + parameters: + - $ref: '#/components/parameters/companyId' + '/companies/{companyId}/sync/expenses/syncs/lastSuccessful/status': get: - summary: Get CORS settings (old) - operationId: get-connection-management-cors-settings - x-speakeasy-group: cors - deprecated: true - x-speakeasy-deprecation-message: | - The new [Get CORS settings](https://docs.codat.io/platform-api#/operations/get-cors-settings) endpoint replaces this endpoint and includes additional functionality. - Update your integrations to use the new path `/corsSettings` as the existing route will be removed in a future release. - x-speakeasy-deprecation-replacement: get-cors-settings tags: - - Settings - description: "\uFEFFThe *Get CORS settings* endpoint returns the allowed origins (i.e. your domains) you want to allow cross-origin resource sharing ([CORS](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing)) with Codat. \n\nEnabling CORS with Codat is required by our embeddable UIs (such as [Connections SDK](https://docs.codat.io/auth-flow/optimize/connection-management) and [Link SDK](https://docs.codat.io/auth-flow/authorize-embedded-link)) to access Codat's API endpoints." + - Sync + parameters: + - $ref: '#/components/parameters/companyId' responses: '200': - $ref: '#/components/responses/ConnectionManagementAllowedOrigins' + description: Success + content: + application/json: + schema: + $ref: '#/components/schemas/CompanySyncStatus' + examples: {} '401': $ref: '#/components/responses/Unauthorized' '402': @@ -1383,30 +1076,26 @@ paths: $ref: '#/components/responses/Internal-Server-Error' '503': $ref: '#/components/responses/Service-Unavailable' - post: - summary: Set CORS settings (old) - operationId: set-connection-management-cors-settings - x-speakeasy-name-override: set - x-speakeasy-group: cors - deprecated: true - x-speakeasy-deprecation-message: | - The new [Set CORS settings](https://docs.codat.io/platform-api#/operations/set-cors-settings) endpoint replaces this endpoint and includes additional functionality. - Update your integrations to use the new path `/corsSettings` as the existing route will be removed in a future release. - x-speakeasy-deprecation-replacement: set-cors-settings + description: Gets the status of the last successful sync + summary: Last successful sync + operationId: get-last-successful-sync + x-speakeasy-name-override: get-last-successful-sync + parameters: + - $ref: '#/components/parameters/companyId' + '/companies/{companyId}/sync/expenses/syncs/latest/status': + get: tags: - - Settings - description: "\uFEFFThe *Set CORS settings* endpoint allows you to register allowed origins (i.e. your domains) for use in cross-origin resource sharing ([CORS](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing)).\n \nEnabling CORS with Codat is required by our embeddable UIs (such as [Connections SDK](https://docs.codat.io/auth-flow/optimize/connection-management) and [Link SDK](https://docs.codat.io/auth-flow/authorize-embedded-link)) to access Codat's API endpoints. " - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ConnectionManagementAllowedOrigins' - examples: - Allowed origins: - $ref: '#/components/examples/connectionManagementAllowedOriginsResponse' + - Sync + parameters: + - $ref: '#/components/parameters/companyId' responses: '200': - $ref: '#/components/responses/ConnectionManagementAllowedOrigins' + description: Success + content: + application/json: + schema: + $ref: '#/components/schemas/CompanySyncStatus' + examples: {} '401': $ref: '#/components/responses/Unauthorized' '402': @@ -1421,16 +1110,28 @@ paths: $ref: '#/components/responses/Internal-Server-Error' '503': $ref: '#/components/responses/Service-Unavailable' - /corsSettings: + description: Gets the latest sync status + summary: Latest sync status + operationId: get-latest-sync + x-speakeasy-name-override: get-latest-sync + parameters: + - $ref: '#/components/parameters/companyId' + '/companies/{companyId}/sync/expenses/syncs/list/status': + parameters: + - $ref: '#/components/parameters/companyId' get: - summary: Get CORS settings - operationId: get-cors-settings tags: - - Settings - description: "\uFEFFThe *Get CORS settings* endpoint returns the allowed origins (i.e. your domains) you want to allow cross-origin resource sharing ([CORS](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing)) with Codat. \n\nEnabling CORS with Codat is required by our embeddable UIs (such as [Connections SDK](https://docs.codat.io/auth-flow/optimize/connection-management) and [Link SDK](https://docs.codat.io/auth-flow/authorize-embedded-link)) to access Codat's API endpoints." + - Sync responses: '200': - $ref: '#/components/responses/ConnectionManagementAllowedOrigins' + description: Success + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/CompanySyncStatus' + examples: {} '401': $ref: '#/components/responses/Unauthorized' '402': @@ -1445,24 +1146,24 @@ paths: $ref: '#/components/responses/Internal-Server-Error' '503': $ref: '#/components/responses/Service-Unavailable' - post: - summary: Set CORS settings - operationId: set-cors-settings - x-speakeasy-name-override: set + summary: List sync statuses + description: Gets a list of sync statuses + operationId: list-syncs + '/companies/{companyId}/sync/expenses/syncs/{syncId}/status': + get: tags: - - Settings - description: "\uFEFFThe *Set CORS settings* endpoint allows you to register allowed origins (i.e. your domains) for use in cross-origin resource sharing ([CORS](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing)).\n \nEnabling CORS with Codat is required by our embeddable UIs (such as [Connections SDK](https://docs.codat.io/auth-flow/optimize/connection-management) and [Link SDK](https://docs.codat.io/auth-flow/authorize-embedded-link)) to access Codat's API endpoints." - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ConnectionManagementAllowedOrigins' - examples: - Allowed origins: - $ref: '#/components/examples/connectionManagementAllowedOriginsResponse' + - Sync + parameters: + - $ref: '#/components/parameters/companyId' + - $ref: '#/components/parameters/syncId' responses: '200': - $ref: '#/components/responses/ConnectionManagementAllowedOrigins' + description: Success + content: + application/json: + schema: + $ref: '#/components/schemas/CompanySyncStatus' + examples: {} '401': $ref: '#/components/responses/Unauthorized' '402': @@ -1477,19 +1178,27 @@ paths: $ref: '#/components/responses/Internal-Server-Error' '503': $ref: '#/components/responses/Service-Unavailable' - '/companies/{companyId}/data/all': + summary: Get sync status + description: Get the sync status for a specified sync + operationId: get-sync-by-id parameters: - $ref: '#/components/parameters/companyId' - post: - summary: Refresh all data - operationId: refresh-company-data - x-speakeasy-name-override: all - operationId: refresh-all-data-types - x-speakeasy-group: manage-data.refresh - x-speakeasy-name-override: all-data-types + - $ref: '#/components/parameters/syncId' + '/companies/{companyId}/sync/expenses/syncs/{syncId}/transactions': + get: + parameters: + - $ref: '#/components/parameters/companyId' + - $ref: '#/components/parameters/syncId' + - $ref: '#/components/parameters/page' + - $ref: '#/components/parameters/pageSize' responses: - '204': - description: No Content + '200': + description: Success + content: + application/json: + schema: + $ref: '#/components/schemas/Transactions' + examples: {} '400': $ref: '#/components/responses/Malformed-Query' '401': @@ -1506,44 +1215,90 @@ paths: $ref: '#/components/responses/Internal-Server-Error' '503': $ref: '#/components/responses/Service-Unavailable' - description: |- - Refreshes all data types with `fetch on first link` set to `true` for a given company. - - This is an asynchronous operation, and will bring updated data into Codat from the linked integration for you to view. - - [Read more](https://docs.codat.io/core-concepts/data-type-settings) about data type settings and `fetch on first link`. tags: - - Refresh data - '/companies/{companyId}/data/queue/{dataType}': + - Transaction status + summary: List sync transactions + description: Gets the transactions and status for a sync + operationId: list-sync-transactions + parameters: + - $ref: '#/components/parameters/companyId' + - $ref: '#/components/parameters/syncId' + '/companies/{companyId}/sync/expenses/syncs/{syncId}/transactions/{transactionId}': + get: + parameters: + - $ref: '#/components/parameters/companyId' + - $ref: '#/components/parameters/syncId' + - $ref: '#/components/parameters/transactionId' + responses: + '200': + description: Success + content: + application/json: + schema: + $ref: '#/components/schemas/TransactionResponse' + examples: {} + '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' + tags: + - Transaction status + summary: Get sync transaction + description: Gets the status of a transaction for a sync + operationId: get-sync-transaction + parameters: + - $ref: '#/components/parameters/companyId' + - $ref: '#/components/parameters/syncId' + - $ref: '#/components/parameters/transactionId' + '/companies/{companyId}/sync/expenses/expense-transactions': parameters: - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/dataType' post: - summary: Refresh data type - operationId: refresh-data-type - x-speakeasy-name-override: by-data-type - description: |- - Refreshes a given data type for a given company. + summary: Create expense transaction + operationId: create-expense-transaction + description: | + The *Create expense* endpoint creates an [expense transaction](https://docs.codat.io/sync-for-expenses-api#/schemas/ExpenseTransaction) in the accounting software for a given company's connection. - This is an asynchronous operation, and will bring updated data into Codat from the linked integration for you to view. + [Expense transactions](https://docs.codat.io/sync-for-expenses-api#/schemas/ExpenseTransaction) represent transactions made with a company debit or credit card. + + ### Supported Integrations + + | Integration | Supported | + |-------------------------------|-----------| + | Dynamics 365 Business Central | Yes | + | FreeAgent | Yes | + | QuickBooks Desktop | Yes | + | QuickBooks Online | Yes | + | Oracle NetSuite | Yes | + | Sage Intacct | Yes | + | Xero | Yes | + | Zoho Books | Yes | tags: - - Refresh data - parameters: - - schema: - type: string - format: uuid - in: query - name: connectionId - description: 'Optionally, provide a data connection id to only queue pull operations on that connection.' + - Expenses responses: '200': description: OK content: application/json: + x-speakeasy-usage-example: true schema: - $ref: '#/components/schemas/PullOperation' + $ref: '#/components/schemas/CreateExpenseResponse' + examples: + Example 1: + value: + syncId: cd937d46-8e41-43a9-9477-a79158ffd98a '400': - $ref: '#/components/responses/Malformed-Query' + $ref: '#/components/responses/BadRequest' '401': $ref: '#/components/responses/Unauthorized' '402': @@ -1558,423 +1313,173 @@ paths: $ref: '#/components/responses/Internal-Server-Error' '503': $ref: '#/components/responses/Service-Unavailable' - - Manage data - '/companies/{companyId}/dataStatus': + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CreateExpenseRequest' + examples: + Payment: + value: + - id: 4d7c6929-7770-412b-91bb-44d3bc71d111 + type: Payment + issueDate: '2024-05-21T00:00:00+00:00' + currency: GBP + currencyRate: 1 + contactRef: + id: '430' + type: Supplier + bankAccountRef: + id: '97' + merchantName: Amazon UK + notes: 'APPLE.COM/BILL - 09001077498 - Card Ending: 4590' + lines: + - netAmount: 100 + taxAmount: 20 + taxRateRef: + id: 23_Bills + accountRef: + id: '35' + trackingRefs: + - id: DEPARTMENT_5 + dataType: trackingCategories + invoiceTo: + id: '504' + type: customer + Refund: + value: + - id: 7008d3f2-aeb4-11ed-afa1-0242ac120002 + type: Refund + issueDate: '2024-02-17T00:00:00+00:00' + currency: GBP + contactRef: + id: '430' + type: Supplier + bankAccountRef: + id: '97' + merchantName: Amazon UK + notes: 'APPLE.COM/BILL - 09001077498 - Card Ending: 4590' + lines: + - netAmount: 100 + taxAmount: 20 + taxRateRef: + id: 23_Bills + accountRef: + id: '42' + trackingRefs: + - id: DEPARTMENT_6 + '/companies/{companyId}/sync/expenses/expense-transactions/{transactionId}': parameters: - $ref: '#/components/parameters/companyId' - get: - summary: Get data status - operationId: get-company-data-status - description: Get the state of each data type for a company - tags: - - Refresh data - operationId: get-data-status - x-speakeasy-group: manage-data - x-speakeasy-name-override: get-status - description: Get the state of each data type for a company + - $ref: '#/components/parameters/transactionId' + put: + summary: Update expense transactions tags: - - Manage data + - Expenses responses: - '200': - description: OK + '202': + description: Accepted content: application/json: schema: - $ref: '#/components/schemas/DataStatuses' - title: Data statuses - x-internal: true - type: object - properties: - accountTransactions: - $ref: '#/components/schemas/DataStatus' - nullable: true - balanceSheet: - $ref: '#/components/schemas/DataStatus' - nullable: true - bankAccounts: - $ref: '#/components/schemas/DataStatus' - nullable: true - bankTransactions: - $ref: '#/components/schemas/DataStatus' - nullable: true - billCreditNotes: - $ref: '#/components/schemas/DataStatus' - nullable: true - billPayments: - $ref: '#/components/schemas/DataStatus' - nullable: true - bills: - $ref: '#/components/schemas/DataStatus' - nullable: true - cashFlowStatement: - $ref: '#/components/schemas/DataStatus' - nullable: true - chartOfAccounts: - $ref: '#/components/schemas/DataStatus' - nullable: true - company: - $ref: '#/components/schemas/DataStatus' - nullable: true - creditNotes: - $ref: '#/components/schemas/DataStatus' - nullable: true - customers: - $ref: '#/components/schemas/DataStatus' - nullable: true - directCosts: - $ref: '#/components/schemas/DataStatus' - nullable: true - directIncomes: - $ref: '#/components/schemas/DataStatus' - nullable: true - invoices: - $ref: '#/components/schemas/DataStatus' - nullable: true - itemReceipts: - $ref: '#/components/schemas/DataStatus' - nullable: true - items: - $ref: '#/components/schemas/DataStatus' - nullable: true - journalEntries: - $ref: '#/components/schemas/DataStatus' - nullable: true - journals: - $ref: '#/components/schemas/DataStatus' - nullable: true - paymentMethods: - $ref: '#/components/schemas/DataStatus' - nullable: true - payments: - $ref: '#/components/schemas/DataStatus' - nullable: true - profitAndLoss: - $ref: '#/components/schemas/DataStatus' - nullable: true - purchaseOrders: - $ref: '#/components/schemas/DataStatus' - nullable: true - salesOrders: - $ref: '#/components/schemas/DataStatus' - nullable: true - suppliers: - $ref: '#/components/schemas/DataStatus' - nullable: true - taxRates: - $ref: '#/components/schemas/DataStatus' - nullable: true - trackingCategories: - $ref: '#/components/schemas/DataStatus' - nullable: true - transfers: - $ref: '#/components/schemas/DataStatus' - nullable: true - banking-accountBalances: - $ref: '#/components/schemas/DataStatus' - nullable: true - banking-accounts: - $ref: '#/components/schemas/DataStatus' - nullable: true - banking-transactionCategories: - $ref: '#/components/schemas/DataStatus' - nullable: true - banking-transactions: - $ref: '#/components/schemas/DataStatus' - nullable: true - commerce-companyInfo: - $ref: '#/components/schemas/DataStatus' - nullable: true - commerce-customers: - $ref: '#/components/schemas/DataStatus' - nullable: true - commerce-disputes: - $ref: '#/components/schemas/DataStatus' - nullable: true - commerce-locations: - $ref: '#/components/schemas/DataStatus' - nullable: true - commerce-orders: - $ref: '#/components/schemas/DataStatus' - nullable: true - commerce-paymentMethods: - $ref: '#/components/schemas/DataStatus' - nullable: true - commerce-payments: - $ref: '#/components/schemas/DataStatus' - nullable: true - commerce-productCategories: - $ref: '#/components/schemas/DataStatus' - nullable: true - commerce-products: - $ref: '#/components/schemas/DataStatus' - nullable: true - commerce-taxComponents: - $ref: '#/components/schemas/DataStatus' - nullable: true - commerce-transactions: - $ref: '#/components/schemas/DataStatus' - nullable: true + $ref: '#/components/schemas/UpdateExpenseResponse' + '400': + $ref: '#/components/responses/BadRequest' + '401': + $ref: '#/components/responses/Unauthorized' + '402': + $ref: '#/components/responses/Payment-Required' + '403': + $ref: '#/components/responses/Forbidden' + '404': + $ref: '#/components/responses/Not-Found' + '422': + $ref: '#/components/responses/Unprocessable-Content' + '429': + $ref: '#/components/responses/Too-Many-Requests' + '500': + $ref: '#/components/responses/Internal-Server-Error' + '503': + $ref: '#/components/responses/Service-Unavailable' + operationId: update-expense-transaction + description: |- + The *Update expense* endpoint updates an existing [expense transaction](https://docs.codat.io/sync-for-expenses-api#/schemas/UpdateExpenseRequest) in the accounting software for a given company's connection. + + [Expense transactions](https://docs.codat.io/sync-for-expenses-api#/schemas/UpdateExpenseRequest) represent transactions made with a company debit or credit card. + + ### Supported integrations + The following integrations are supported for the [Payment](https://docs.codat.io/expenses/sync-process/expense-transactions#transaction-types) transaction `type` only: + | Integration | Supported | + |-----------------------|-----------| + | FreeAgent | Yes | + | QuickBooks Desktop | Yes | + | QuickBooks Online | Yes | + | Oracle NetSuite | Yes | + | Sage Intacct | Yes | + | Xero | Yes | + | Zoho Books | Yes | + + #### Integration-specific behavior + + | Integration | Specifics | + |-----------------------|-----------| + | Sage Intacct | To sync **debit card expenses**, map the debit card to a Credit Card with the account type set to `Debit`.| + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UpdateExpenseRequest' + examples: + Payment: + value: + type: Payment + issueDate: '2024-05-21T00:00:00+00:00' + currency: GBP + currencyRate: 1 + contactRef: + id: '430' + type: Supplier + bankAccountRef: + id: '97' + merchantName: Amazon UK + notes: 'APPLE.COM/BILL - 09001077498 - Card Ending: 4590' + lines: + - netAmount: 100 + taxAmount: 20 + taxRateRef: + id: 23_Bills + accountRef: + id: '35' + trackingRefs: + - id: DEPARTMENT_5 + dataType: trackingCategories + invoiceTo: + id: '504' + type: customer + '/companies/{companyId}/sync/expenses/transfer-transactions/{transactionId}': + parameters: + - $ref: '#/components/parameters/companyId' + - $ref: '#/components/parameters/transactionId' + put: + summary: Create transfer transaction + operationId: create-transfer-transaction + description: "Use the *Create transfer* endpoint to create or update a [transfer transaction](https://docs.codat.io/sync-for-expenses-api#/schemas/TransferTransactionRequest) in the accounting software for a given company's connection. \r\n\r\nTransfers record the movement of money between two bank accounts, or between a bank account and a nominal account. Use them to represent actions such as topping up a debit card account or a balance transfer to another credit card.\r\n\r\nThe `from.amount` and `to.amount` fields are in the native currency of the account.\r\n\r\n### Supported Integrations\r\n| Integration | Create transfer | Update transfer |\r\n|-----------------------|------------------|------------------|\r\n| Dynamics\t\t\t\t| No\t\t\t | No\t\t\t\t |\r\n| FreeAgent | Yes | Yes |\r\n| NetSuite | No | No |\r\n| QuickBooks Desktop | Yes | No |\r\n| QuickBooks Online | Yes | Yes |\r\n| Sage Intacct | No | No |\r\n| Xero | Yes | No |\r\n| Zoho Books | No | No |" + tags: + - Transfers + responses: + '200': + description: OK + content: + application/json: + x-speakeasy-usage-example: true + schema: + $ref: '#/components/schemas/TransferTransactionResponse' examples: - Example: + Example 1: value: - accountTransactions: - dataType: accountTransactions - lastSuccessfulSync: '2022-01-01T00:00:00.000Z' - currentStatus: Complete - latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 - latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f - balanceSheet: - dataType: balanceSheet - lastSuccessfulSync: '2022-01-01T00:00:00.000Z' - currentStatus: Complete - latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 - latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f - bankAccounts: - dataType: bankAccounts - lastSuccessfulSync: '2022-01-01T00:00:00.000Z' - currentStatus: Complete - latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 - latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f - bankTransactions: - dataType: bankTransactions - lastSuccessfulSync: '2022-01-01T00:00:00.000Z' - currentStatus: Complete - latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 - latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f - billCreditNotes: - dataType: billCreditNotes - lastSuccessfulSync: '2022-01-01T00:00:00.000Z' - currentStatus: Complete - latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 - latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f - billPayments: - dataType: billPayments - lastSuccessfulSync: '2022-01-01T00:00:00.000Z' - currentStatus: Complete - latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 - latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f - bills: - dataType: bills - lastSuccessfulSync: '2022-01-01T00:00:00.000Z' - currentStatus: Complete - latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 - latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f - cashFlowStatement: - dataType: cashFlowStatement - lastSuccessfulSync: '2022-01-01T00:00:00.000Z' - currentStatus: Complete - latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 - latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f - chartOfAccounts: - dataType: chartOfAccounts - lastSuccessfulSync: '2022-01-01T00:00:00.000Z' - currentStatus: Complete - latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 - latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f - company: - dataType: company - lastSuccessfulSync: '2022-01-01T00:00:00.000Z' - currentStatus: Complete - latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 - latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f - creditNotes: - dataType: creditNotes - lastSuccessfulSync: '2022-01-01T00:00:00.000Z' - currentStatus: Complete - latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 - latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f - customers: - dataType: customers - lastSuccessfulSync: '2022-01-01T00:00:00.000Z' - currentStatus: Complete - latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 - latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f - directCosts: - dataType: directCosts - lastSuccessfulSync: '2022-01-01T00:00:00.000Z' - currentStatus: Complete - latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 - latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f - directIncomes: - dataType: directIncomes - lastSuccessfulSync: '2022-01-01T00:00:00.000Z' - currentStatus: Complete - latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 - latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f - invoices: - dataType: invoices - lastSuccessfulSync: '2022-01-01T00:00:00.000Z' - currentStatus: Complete - latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 - latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f - itemReceipts: - dataType: itemReceipts - lastSuccessfulSync: '2022-01-01T00:00:00.000Z' - currentStatus: Complete - latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 - latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f - items: - dataType: items - lastSuccessfulSync: '2022-01-01T00:00:00.000Z' - currentStatus: Complete - latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 - latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f - journalEntries: - dataType: journalEntries - lastSuccessfulSync: '2022-01-01T00:00:00.000Z' - currentStatus: Complete - latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 - latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f - journals: - dataType: journals - lastSuccessfulSync: '2022-01-01T00:00:00.000Z' - currentStatus: Complete - latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 - latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f - paymentMethods: - dataType: paymentMethods - lastSuccessfulSync: '2022-01-01T00:00:00.000Z' - currentStatus: Complete - latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 - latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f - payments: - dataType: payments - lastSuccessfulSync: '2022-01-01T00:00:00.000Z' - currentStatus: Complete - latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 - latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f - profitAndLoss: - dataType: profitAndLoss - lastSuccessfulSync: '2022-01-01T00:00:00.000Z' - currentStatus: Complete - latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 - latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f - purchaseOrders: - dataType: purchaseOrders - lastSuccessfulSync: '2022-01-01T00:00:00.000Z' - currentStatus: Complete - latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 - latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f - salesOrders: - dataType: salesOrders - lastSuccessfulSync: '2022-01-01T00:00:00.000Z' - currentStatus: Complete - latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 - latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f - suppliers: - dataType: suppliers - lastSuccessfulSync: '2022-01-01T00:00:00.000Z' - currentStatus: Complete - latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 - latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f - taxRates: - dataType: taxRates - lastSuccessfulSync: '2022-01-01T00:00:00.000Z' - currentStatus: Complete - latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 - latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f - trackingCategories: - dataType: trackingCategories - lastSuccessfulSync: '2022-01-01T00:00:00.000Z' - currentStatus: Complete - latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 - latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f - transfers: - dataType: transfers - lastSuccessfulSync: '2022-01-01T00:00:00.000Z' - currentStatus: Complete - latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 - latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f - banking-accountBalances: - dataType: banking-accountBalances - lastSuccessfulSync: '2022-01-01T00:00:00.000Z' - currentStatus: Complete - latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 - latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f - banking-accounts: - dataType: banking-accounts - lastSuccessfulSync: '2022-01-01T00:00:00.000Z' - currentStatus: Complete - latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 - latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f - banking-transactionCategories: - dataType: banking-transactionCategories - lastSuccessfulSync: '2022-01-01T00:00:00.000Z' - currentStatus: Complete - latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 - latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f - banking-transactions: - dataType: banking-transactions - lastSuccessfulSync: '2022-01-01T00:00:00.000Z' - currentStatus: Complete - latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 - latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f - commerce-companyInfo: - dataType: commerce-companyInfo - lastSuccessfulSync: '2022-01-01T00:00:00.000Z' - currentStatus: Complete - latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 - latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f - commerce-customers: - dataType: commerce-customers - lastSuccessfulSync: '2022-01-01T00:00:00.000Z' - currentStatus: Complete - latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 - latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f - commerce-disputes: - dataType: commerce-disputes - lastSuccessfulSync: '2022-01-01T00:00:00.000Z' - currentStatus: Complete - latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 - latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f - commerce-locations: - dataType: commerce-locations - lastSuccessfulSync: '2022-01-01T00:00:00.000Z' - currentStatus: Complete - latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 - latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f - commerce-orders: - dataType: commerce-orders - lastSuccessfulSync: '2022-01-01T00:00:00.000Z' - currentStatus: Complete - latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 - latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f - commerce-paymentMethods: - dataType: commerce-paymentMethods - lastSuccessfulSync: '2022-01-01T00:00:00.000Z' - currentStatus: Complete - latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 - latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f - commerce-payments: - dataType: commerce-payments - lastSuccessfulSync: '2022-01-01T00:00:00.000Z' - currentStatus: Complete - latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 - latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f - commerce-productCategories: - dataType: commerce-productCategories - lastSuccessfulSync: '2022-01-01T00:00:00.000Z' - currentStatus: Complete - latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 - latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f - commerce-products: - dataType: commerce-products - lastSuccessfulSync: '2022-01-01T00:00:00.000Z' - currentStatus: Complete - latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 - latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f - commerce-taxComponents: - dataType: commerce-taxComponents - lastSuccessfulSync: '2022-01-01T00:00:00.000Z' - currentStatus: Complete - latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 - latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f - commerce-transactions: - dataType: commerce-transactions - lastSuccessfulSync: '2022-01-01T00:00:00.000Z' - currentStatus: Complete - latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 - latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f + syncId: cd937d46-8e41-43a9-9477-a79158ffd98a + '400': + $ref: '#/components/responses/BadRequest' '401': $ref: '#/components/responses/Unauthorized' '402': @@ -1989,37 +1494,56 @@ paths: $ref: '#/components/responses/Internal-Server-Error' '503': $ref: '#/components/responses/Service-Unavailable' - '/companies/{companyId}/data/queue/{dataType}': + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/TransferTransactionRequest' + examples: + Create transfer: + value: + description: Sample transfer description + date: '2021-05-21T00:00:00+00:00' + from: + accountRef: + id: 787dfb37-5707-4dc0-8a86-8d74e4cc78ea + amount: 100 + to: + accountRef: + id: 777dfb37-5506-3dc0-6g86-8d34z4cc78ea + amount: 100 + '/companies/{companyId}/sync/expenses/adjustment-transactions': parameters: - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/dataType' post: - summary: Refresh data type - operationId: refresh-data-type - x-speakeasy-group: manage-data.refresh - x-speakeasy-name-override: data-type + summary: Create adjustment transaction + operationId: create-adjustment-transaction description: |- - Refreshes a given data type for a given company. + Use the *Create adjustment expense* endpoint to create an [adjustment](https://docs.codat.io/sync-for-expenses-api#/schemas/AdjustmentTransactionRequest) in the accounting software for a given company's connection. - This is an asynchronous operation, and will bring updated data into Codat from the linked integration for you to view. + Adjustments represent write-offs and transaction alterations, such as foreign exchange adjustments, in the form of a journal entry. + + ### Supported Integrations + + | Integration | Supported | + |-----------------------|-----------| + | QuickBooks Desktop | Yes | tags: - - Manage data - parameters: - - schema: - type: string - format: uuid - in: query - name: connectionId - description: 'Optionally, provide a data connection id to only queue pull operations on that connection.' + - Adjustments responses: '200': description: OK content: application/json: + x-speakeasy-usage-example: true schema: - $ref: '#/components/schemas/PullOperation' + $ref: '#/components/schemas/AdjustmentTransactionResponse' + examples: + Example 1: + value: + syncId: cd937d46-8e41-43a9-9477-a79158ffd98a '400': - $ref: '#/components/responses/Malformed-Query' + $ref: '#/components/responses/BadRequest' '401': $ref: '#/components/responses/Unauthorized' '402': @@ -2034,50 +1558,60 @@ paths: $ref: '#/components/responses/Internal-Server-Error' '503': $ref: '#/components/responses/Service-Unavailable' - '/companies/{companyId}/data/history': + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CreateAdjustmentRequest' + examples: + Create adjustment: + value: + - id: 3357b3df-5f2e-465d-b9ba-226519dbb8f1 + date: '2024-05-21T00:00:00+00:00' + currency: USD + currencyRate: 1 + reference: test reference + lines: + - amount: 50 + accountRef: + id: 80000018-1671793811 + description: debit line + trackingRefs: + - id: 80000003-1674553958 + dataType: trackingCategories + invoiceTo: + id: 80000002-1674552702 + type: customer + - amount: -50 + accountRef: + id: 80000028-1671794219 + description: credit line + trackingRefs: + - id: 80000003-1674553958 + dataType: trackingCategories + '/companies/{companyId}/sync/expenses/reimbursable-expense-transactions': parameters: - $ref: '#/components/parameters/companyId' - get: - summary: List pull operations + post: + summary: Create reimbursable expense transaction + operationId: create-reimbursable-expense-transaction + description: "Use the *Create reimbursable expense* endpoint to submit an employee expense claim in the accounting platform for a given company's connection.\r\n\r\n[Reimbursable expense requests](https://docs.codat.io/sync-for-expenses-api#/schemas/ReimbursableExpenseTransactionRequest) are reflected in the accounting software in the form of **Bills** against an employee (who exists as a supplier in the accounting platform).\r\n\r\n### Supported Integrations\r\n| Integration | Supported |\r\n|-----------------------|-----------|\r\n| FreeAgent | Yes |\r\n| QuickBooks Desktop | Yes |\r\n| QuickBooks Online | Yes |\r\n| Oracle NetSuite | Yes |\r\n| Zoho Books | Yes |\r\n| Sage Intacct | Yes |" tags: - - Refresh data - operationId: list-pull-operations - x-speakeasy-name-override: list-pull-operations - - Manage data - operationId: list-pull-operations - x-speakeasy-group: manage-data.pull-operations + - Reimbursements responses: '200': description: OK content: application/json: + x-speakeasy-usage-example: true schema: - $ref: '#/components/schemas/PullOperations' + $ref: '#/components/schemas/CreateReimbursableExpenseResponse' examples: - Example: + Example 1: value: - results: - - id: 97d60846-f07a-4d42-b5a0-0bdcc6ebf56b - companyId: 4645bd78-8988-45bc-ac9e-67ba5df6e4e5 - connectionId: 51baa045-4836-4317-a42e-3542e991e581 - dataType: invoices - status: Initial - requested: '2022-11-14T11:18:37.2798351Z' - progress: 10 - isCompleted: false - isErrored: false - _links: - current: - href: /companies/17129e41-5389-4f10-ac06-e0a37e47d177/data/history?page=1&pageSize=2 - self: - href: /companies/17129e41-5389-4f10-ac06-e0a37e47d177/data/history - next: - href: /companies/17129e41-5389-4f10-ac06-e0a37e47d177/data/history?page=2&pageSize=2 - pageNumber: 0 - pageSize: 0 - totalResults: 0 + syncId: cd937d46-8e41-43a9-9477-a79158ffd98a '400': - $ref: '#/components/responses/Malformed-Query' + $ref: '#/components/responses/BadRequest' '401': $ref: '#/components/responses/Unauthorized' '402': @@ -2092,256 +1626,123 @@ paths: $ref: '#/components/responses/Internal-Server-Error' '503': $ref: '#/components/responses/Service-Unavailable' - description: Gets the pull operation history (datasets) for a given company. - parameters: - - $ref: '#/components/parameters/page' - - $ref: '#/components/parameters/pageSize' - - $ref: '#/components/parameters/query' - - $ref: '#/components/parameters/orderBy' - '/companies/{companyId}/data/history/{datasetId}': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/datasetId' - get: - summary: Get pull operation - operationId: get-pull-operation - x-speakeasy-name-override: get-pull-operation - tags: - - Refresh data - x-speakeasy-group: manage-data.pull-operations - tags: - - Manage data - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/PullOperation' - examples: {} - '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: Retrieve information about a single dataset or pull operation. - /webhooks: - get: - summary: List webhook consumers - operationId: list-webhook-consumers - x-speakeasy-name-override: list-consumers - description: "\uFEFFUse the *List webhook consumers* endpoint to return a list of all webhook consumers that currently exist for your client.\n\n[Webhook consumer](https://docs.codat.io/platform-api#/schemas/WebhookConsumer) is an HTTP endpoint that you configure to subscribe to specific events. See our documentation for more details on [Codat's webhook service](https://docs.codat.io/using-the-api/webhooks/overview)." - tags: - - Webhooks - '/data/companies/{companyId}/assess/dataTypes/{dataType}/dataIntegrity/status': + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ReimbursableExpenseTransactionRequest' + examples: + Create reimbursable expense: + value: + - id: 4d7c6929-7770-412b-91bb-44d3bc71d111 + reference: expenses w/c 01/07 + contactRef: + id: '752' + issueDate: '2024-05-21' + dueDate: '2024-05-21' + currency: GBP + currencyRate: 1 + notes: 'APPLE.COM/BILL - 09001077498 - Card Ending: 4590' + lines: + - description: Hotel + netAmount: 100 + taxAmount: 20 + taxRateRef: + id: 23_Bills + accountRef: + id: '35' + trackingRefs: + - id: DEPARTMENT_5 + dataType: trackingCategories + invoiceTo: + id: '504' + type: customer + '/companies/{companyId}/sync/expenses/reimbursable-expense-transactions/{transactionId}': parameters: - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/dataIntegrityDataType' - get: - summary: Get data integrity status + - $ref: '#/components/parameters/transactionId' + put: + summary: Update reimbursable expense transaction + operationId: update-reimbursable-expense-transaction + description: "The *Update reimbursable expense* endpoint updates an existing employee expense claim in the accounting platform for a given company's connection. \r\n\r\nUpdating an existing [reimbursable expense transaction](https://docs.codat.io/sync-for-expenses-api#/schemas/UpdateReimbursableExpenseTransactionRequest) will update the existing **bill** against an employee (who exists as a supplier in the accounting software).\r\n\r\n### Supported Integrations\r\n| Integration | Supported |\r\n|-----------------------|-----------|\r\n| FreeAgent | Yes |\r\n| QuickBooks Online | Yes |\r\n| Oracle NetSuite | Yes |\r\n| Sage Intacct | Yes |\r\n| Zoho Books | Yes |" tags: - - Data integrity + - Reimbursements responses: '200': description: OK content: application/json: schema: - $ref: '#/components/schemas/WebhookConsumer/definitions/webhookConsumers' + $ref: '#/components/schemas/CreateReimbursableExpenseResponse' examples: - Webhook consumers: + Example 1: value: - results: - - id: 12571faf-0898-47e7-afdd-0fe9eb0a9bf5 - url: 'https://example.com/webhoook-consumers/sync-complete' - eventTypes: - - DataSyncCompleted - disabled: false - - id: ca3cac86-7925-4759-abc2-96405780fdfa - url: 'https://example.com/webhoook-consumers/dataset-changed' - eventTypes: - - DatasetDataChanged - disabled: true + syncId: cd937d46-8e41-43a9-9477-a79158ffd98a '400': - $ref: '#/components/responses/Bad-Request' + $ref: '#/components/responses/BadRequest' '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' - post: - summary: Create webhook consumer - operationId: create-webhook-consumer - x-speakeasy-name-override: create-consumer - description: "\uFEFFUse the *Create webhook consumer* endpoint to create a new webhook consumer that will listen to messages we send you.\n\n[Webhook consumer](https://docs.codat.io/platform-api#/schemas/WebhookConsumer) is an HTTP endpoint that you configure to subscribe to specific events. See our documentation for more details on [Codat's webhook service](https://docs.codat.io/using-the-api/webhooks/overview).\n\n### Tips and traps\n- The number of webhook consumers you can create is limited to 50. If you have reached the maximum number of consumers, use the [*Delete webhook consumer*](https://docs.codat.io/platform-api#/operations/delete-webhook-consumer) endpoint to delete an unused consumer first." - tags: - - Webhooks requestBody: content: application/json: schema: - $ref: '#/components/schemas/WebhookConsumer/definitions/webhookConsumerPrototype' + $ref: '#/components/schemas/UpdateReimbursableExpenseTransactionRequest' examples: - Subscribe consumer to one or more event types: + Update reimbursable expense: value: - url: 'https://example.com/webhoook-consumer' - eventTypes: - - DataSyncCompleted - - Dataset data changed - Subscribe consumer with disabled endpoint: - value: - url: 'https://example.com/webhoook-consumer' - eventTypes: - - DataSyncCompleted - disabled: true - responses: - '201': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/WebhookConsumer' - examples: - Subscribe consumer to one or more event types: - value: - id: 12571faf-0898-47e7-afdd-0fe9eb0a9bf5 - url: 'https://example.com/webhoook-consumer' - eventTypes: - - DataSyncCompleted - - DatasetDataChanged - disabled: false - Subscribe consumer with disabled endpoint: - value: - id: 12571faf-0898-47e7-afdd-0fe9eb0a9bf5 - url: 'https://example.com/webhoook-consumer' - eventTypes: - - DataSyncCompleted - disabled: true - '400': - $ref: '#/components/responses/Bad-Request' - '401': - $ref: '#/components/responses/Unauthorized' - '402': - $ref: '#/components/responses/Payment-Required' - '403': - $ref: '#/components/responses/Forbidden' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - '/webhooks/{webhookId}': - parameters: - - $ref: '#/components/parameters/webhookId' - delete: - summary: Delete webhook consumer - operationId: delete-webhook-consumer - x-speakeasy-name-override: delete-consumer - description: "\uFEFFUse the *Delete webhook consumer* endpoint to delete an existing webhoook consumer, providing its valid `id` as a parameter.\n\n[Webhook consumer](https://docs.codat.io/platform-api#/schemas/WebhookConsumer) is an HTTP endpoint that you configure to subscribe to specific events. See our documentation for more details on [Codat's webhook service](https://docs.codat.io/using-the-api/webhooks/overview)." - tags: - - Webhooks - responses: - '204': - description: No content - $ref: '#/components/schemas/DataIntegrityStatuses' - '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' - /webhooks/integrationKeys/zapier: + reference: expenses w/c 01/07 + contactRef: + id: '752' + issueDate: '2024-05-21' + dueDate: '2024-05-21' + currency: GBP + currencyRate: 1 + notes: 'APPLE.COM/BILL - 09001077498 - Card Ending: 4590' + lines: + - description: Hotel + netAmount: 100 + taxAmount: 20 + taxRateRef: + id: 23_Bills + accountRef: + id: '35' + trackingRefs: + - id: DEPARTMENT_5 + dataType: trackingCategories + invoiceTo: + id: '504' + type: customer + '/companies/{companyId}/sync/expenses/syncs/{syncId}/transactions/{transactionId}/attachments': + parameters: + - $ref: '#/components/parameters/companyId' + - $ref: '#/components/parameters/syncId' + - $ref: '#/components/parameters/transactionId' post: - summary: Rotate Zapier key - operationId: rotate-zapier-key - x-speakeasy-ignore: true - description: "\uFEFFThe *Rotate Zapier key* endpoint returns the Zapier integration key needed to configure Zaps triggered by Codat's webhooks. \n\nIf a key has already been created, calling this will revoke that existing key.\n\nThe key changes each time this endpoint is called. If you are already using our Zapier integration and called this endpoint again, you need to reauthenticate using the latest integration key returned in the response.\n\nOur Zapier integration makes it simple for you to set up and receive user notifications in your preferred ways, such as via email or Slack. See our [Zapier documentation](https://docs.codat.io/using-the-api/webhooks/zapier-integration) for detailed instructions on setting up this integration.\n\n" - tags: - - Webhooks - responses: - '201': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/WebhookZapierKey' - examples: - Integration key: - value: - key: sk_integ_WM4dfoK1nKZnDE_kceze6hWDjbRwOZwG.us - '401': - $ref: '#/components/responses/Unauthorized' - '402': - $ref: '#/components/responses/Payment-Required' - '403': - $ref: '#/components/responses/Forbidden' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - /integrations: - get: - summary: List integrations - description: List your available integrations - tags: - - Integrations - operationId: list-integrations - operationId: get-data-integrity-status - x-speakeasy-name-override: status - description: |- - The *Get data integrity status* endpoint returns the [status](https://docs.codat.io/lending-api#/schemas/DataIntegrityStatus) for the company’s match results between the data type provided in the URL and other data types that Data Integrity uses to support matching. - This endpoint helps you understand whether match data is available and, if so, how to usefully query it. - - The response tells you: - - - Whether match results are available. - - When the results were generated, and their status. - - The connection IDs, amounts, and dates involved to support useful querying. - '/data/companies/{companyId}/assess/dataTypes/{dataType}/dataIntegrity/summaries': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/dataIntegrityDataType' - get: - summary: Get data integrity summaries - tags: - - Data integrity + summary: Upload attachment + operationId: upload-expense-attachment + x-speakeasy-name-override: upload responses: '200': description: OK content: application/json: schema: - $ref: '#/components/schemas/Integrations' - $ref: '#/components/schemas/DataIntegritySummaries' + $ref: '#/components/schemas/Attachment' + examples: {} '400': - $ref: '#/components/responses/Malformed-Query' + $ref: '#/components/responses/BadRequest' '401': $ref: '#/components/responses/Unauthorized' '402': @@ -2356,32 +1757,40 @@ paths: $ref: '#/components/responses/Internal-Server-Error' '503': $ref: '#/components/responses/Service-Unavailable' - operationId: get-data-integrity-summaries - x-speakeasy-name-override: summaries + requestBody: + content: + multipart/form-data: + schema: + $ref: '#/components/schemas/AttachmentUpload' + tags: + - Attachments description: |- - The *Get data integrity summary* endpoint returns a [summary](https://docs.codat.io/lending-api#/schemas/DataIntegritySummary) of match results for a given data type filtered by a query string in the [Codat query language](https://docs.codat.io/using-the-api/querying). + The *Upload attachment* endpoint uploads an attachment in the accounting software against the given transactionId. - For example, if you wanted to see summary match results only for transactions after 1 December 2020, you could include a query parameter of `query=date>2020-12-01`. + [Expense transactions](https://docs.codat.io/sync-for-expenses-api#/schemas/ExpenseTransaction) represent transactions made with a company debit or credit card. Attachments for `Adjustment` and `Transfer` transaction types are not supported for any integrations. - The endpoint response includes only the summary results, not transactions. To view match data for transactions, use the [List data integrity details](https://docs.codat.io/lending-api#/operations/get-data-integrity-summaries) endpoint. - parameters: - - $ref: '#/components/parameters/query' - '/data/companies/{companyId}/assess/dataTypes/{dataType}/dataIntegrity/details': + **Integration-specific behavior** + + Each accounting software supports different file formats and sizes. + + | Integration | File size | File extension | Supported transactions | + |-----------------------------------|-----------|-------------------------------------------------------|------------------------| + | **Xero** | 3 MB | 7Z, BMP, CSV, DOC, DOCX, EML, GIF, JPEG, JPG, KEYNOTE, MSG, NUMBERS, ODF, ODS, ODT, PAGES, PDF, PNG, PPT, PPTX, RAR, RTF, TIF, TIFF, TXT, XLS, XLSX, ZIP | All supported types | + | **QuickBooks Online** | 100 MB | AI, CSV, DOC, DOCX, EPS, GIF, JPEG, JPG, ODS, PAGES, PDF, PNG, RTF, TIF, TXT, XLS, XLSX, XML | `expense-transactions.Payment`, `expense-transactions.Refund`, `reimbursable-expense-transactions` | + | **NetSuite** | 100 MB | BMP, CSV, XLS, XLSX, JSON, PDF, PJPG, PJPEG, PNG, TXT, SVG, TIF, TIFF, DOC, DOCX, ZIP |`expense-transactions.Payment`, `expense-transactions.Refund` | + | **Dynamics 365 Business Central** | 350 MB | [No explicit requirements outlined](https://learn.microsoft.com/en-gb/dynamics365/business-central/ui-how-add-link-to-record#to-attach-a-file-to-a-purchase-invoice) for text, image, and video files. | All supported types + | **QuickBooks Desktop** | NA | Does not support attachment upload | N/A | + | **FreeAgent** | 5MB | PNG, X-PNG, JPEG, PJG, GIF, X-PDF | `expense-transactions.Payment`, `reimbursable-expense-transactions` + | **Zoho Books** | 5MB | GIF, PNG, JPEG, JPG, BMP, PDF | `expense-transactions.Payment`, `reimbursable-expense-transactions` | + '/companies/{companyId}/data/all': parameters: - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/dataIntegrityDataType' - get: - summary: List data integrity details - tags: - - Data integrity + post: + summary: Refresh all data + operationId: refresh-all-data-types responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/DataIntegrityDetails' - examples: {} + '204': + description: No Content '400': $ref: '#/components/responses/Malformed-Query' '401': @@ -2398,81717 +1807,8326 @@ paths: $ref: '#/components/responses/Internal-Server-Error' '503': $ref: '#/components/responses/Service-Unavailable' - operationId: list-data-integrity-details - x-speakeasy-name-override: details - parameters: - - $ref: '#/components/parameters/page' - - $ref: '#/components/parameters/pageSize' - - $ref: '#/components/parameters/query' - - $ref: '#/components/parameters/orderBy' description: |- - The *List data integrity details* endpoint returns the match result record by record for a given data type, filtered based on a query string in the same way as summary results. - - The [details](https://docs.codat.io/lending-api#/schemas/DataIntegrityDetail) are paginated and support ordering, following the same conventions as our other data endpoints. - '/companies/{companyId}/reports/enhancedProfitAndLoss/accounts': - parameters: - - $ref: '#/components/parameters/companyId' - get: - summary: Get categorized profit and loss statement - description: |- - The *Get categorized profit and loss statement* endpoint returns a list of categorized accounts that appear on a company’s Profit and Loss statement. It also includes a balance as of the financial statement date. + Refreshes all data types with `fetch on first link` set to `true` for a given company. - Codat suggests a category for each account automatically, but you can [change it](https://docs.codat.io/lending/features/financial-statements-overview#recategorizing-accounts) to a more suitable one. - tags: - - Financial statements - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/EnhancedFinancialReport' - example: - reportInfo: - currency: GBP - reportName: EnhancedProfitAndLossAccounts - companyName: Biscuits - generatedDate: '2023-03-24T16:40:59.0847354Z' - reportItems: - - date: '2022-08-31T00:00:00' - balance: 830.93 - accountId: 04f7111b-55d4-4efc-b329-1bd5c791933a - accountName: Repairs & Maintenance - accountCategory: - status: Suggested - levels: - - levelName: Expense - confidence: 99.99 - - date: '2022-08-31T00:00:00' - balance: 12000 - accountId: 7f6a0e92-65be-4333-9a0a-d981b03bedd1 - accountName: Wages - accountCategory: - status: Suggested - levels: - - levelName: Expense - confidence: 99.99 - - levelName: CostOfSales - confidence: 99.99 - - date: '2022-08-31T00:00:00' - balance: 28937.71 - accountId: 7403e960-5b72-42ff-abf4-c870ad8910bd - accountName: Purchases - accountCategory: - status: Suggested - levels: - - levelName: Expense - confidence: 99.99 - - levelName: CostOfSales - confidence: 99.99 - - levelName: Inventory - confidence: 99.99 - - date: '2022-08-31T00:00:00' - balance: 582.4 - accountId: e8a0a24e-2dab-46b1-bfe1-6e92551c04e8 - accountName: Purchase Discounts - accountCategory: - status: Suggested - levels: - - levelName: Expense - confidence: 99.99 - - levelName: CostOfSales - confidence: 99.99 - - levelName: Inventory - confidence: 99.99 - - date: '2022-08-31T00:00:00' - balance: 350.44 - accountId: cbf82e0d-87a7-464d-b567-9274ea94a1c0 - accountName: Charitable and Political Donations - accountCategory: - status: Suggested - levels: - - levelName: Expense - confidence: 99.99 - - levelName: NonOperating - confidence: 99.99 - - levelName: Donations - confidence: 99.99 - - date: '2022-08-31T00:00:00' - balance: 535.81 - accountId: 78785fd7-f197-4c34-aa17-6e76b9255d34 - accountName: Interest Paid (operating) - accountCategory: - status: Suggested - levels: - - levelName: Expense - confidence: 99.99 - - levelName: NonOperating - confidence: 99.99 - - levelName: Interest - confidence: 99.99 - - date: '2022-08-31T00:00:00' - balance: 633.05 - accountId: fb3210ef-edeb-48af-bb49-b85d40c1e6bb - accountName: Corporation Tax - accountCategory: - status: Suggested - levels: - - levelName: Expense - confidence: 99.99 - - levelName: NonOperating - confidence: 99.99 - - levelName: Taxes - confidence: 99.99 - - levelName: CorporationTaxes - confidence: 99.99 - - date: '2022-08-31T00:00:00' - balance: 782.61 - accountId: f3aa84fe-5c31-4107-b207-7e0419f636d7 - accountName: Bank Fees - accountCategory: - status: Suggested - levels: - - levelName: Expense - confidence: 99.99 - - levelName: Operating - confidence: 99.99 - - levelName: BankCharges - confidence: 99.99 - - date: '2022-08-31T00:00:00' - balance: 8000 - accountId: 9cbe5fe4-ca60-4792-8bf1-de01fb7010aa - accountName: Rent - accountCategory: - status: Suggested - levels: - - levelName: Expense - confidence: 99.99 - - levelName: Operating - confidence: 99.99 - - levelName: Leases - confidence: 99.99 - - levelName: BuildingRentLease - confidence: 99.99 - - date: '2022-08-31T00:00:00' - balance: 1090.68 - accountId: 138a8eb3-5c08-4e59-a3bc-892119694447 - accountName: Motor Vehicle Expenses - accountCategory: - status: Suggested - levels: - - levelName: Expense - confidence: 99.99 - - levelName: Operating - confidence: 99.99 - - levelName: Leases - confidence: 99.99 - - levelName: EquipmentRentLease - confidence: 99.99 - - date: '2022-08-31T00:00:00' - balance: 26307.02 - accountId: 868591ad-f9c2-4956-a5ec-c32c1d48c6f3 - accountName: Advertising & Marketing - accountCategory: - status: Suggested - levels: - - levelName: Expense - confidence: 99.99 - - levelName: Operating - confidence: 99.99 - - levelName: Marketing - confidence: 99.99 - - date: '2022-08-31T00:00:00' - balance: 1128.85 - accountId: 1734ff00-2a17-45b4-8db6-2dc2e832c460 - accountName: 'Postage, Freight & Courier' - accountCategory: - status: Suggested - levels: - - levelName: Expense - confidence: 99.99 - - levelName: Operating - confidence: 99.99 - - levelName: Marketing - confidence: 99.99 - - date: '2022-08-31T00:00:00' - balance: 40 - accountId: 7d8d0322-f452-47de-a8e8-54b0130e6f38 - accountName: Subscriptions - accountCategory: - status: Suggested - levels: - - levelName: Expense - confidence: 99.99 - - levelName: Operating - confidence: 99.99 - - levelName: Marketing - confidence: 99.99 - - date: '2022-08-31T00:00:00' - balance: 5.72 - accountId: 4378ddba-36b4-4b35-9970-bd972b20d137 - accountName: Amortization - accountCategory: - status: Suggested - levels: - - levelName: Expense - confidence: 99.99 - - levelName: Operating - confidence: 99.99 - - levelName: NonCash - confidence: 99.99 - - levelName: Amortization - confidence: 99.99 - - date: '2022-08-31T00:00:00' - balance: 1539.18 - accountId: 940c8a59-3348-4a0b-a1b1-781d9f29cc8b - accountName: Depreciation Expense - accountCategory: - status: Suggested - levels: - - levelName: Expense - confidence: 99.99 - - levelName: Operating - confidence: 99.99 - - levelName: NonCash - confidence: 99.99 - - levelName: Depreciation - confidence: 99.99 - - date: '2022-08-31T00:00:00' - balance: 1416.05 - accountId: e7ac3baa-cfbe-40c1-a172-83d22e84435b - accountName: Entertainment-100% business - accountCategory: - status: Suggested - levels: - - levelName: Expense - confidence: 99.99 - - levelName: Operating - confidence: 99.99 - - levelName: Personnel - confidence: 99.99 - - levelName: EmployeeBenefits - confidence: 99.99 - - date: '2022-08-31T00:00:00' - balance: 1465.61 - accountId: b5e801e8-8dbc-4390-ac99-3b0fff54a89f - accountName: General Expenses - accountCategory: - status: Suggested - levels: - - levelName: Expense - confidence: 99.99 - - levelName: Operating - confidence: 99.99 - - levelName: SalesGeneralAdministrative - confidence: 99.99 - - date: '2022-08-31T00:00:00' - balance: 7347.35 - accountId: 5360066d-1474-49f6-a7a5-c66d5f6032ba - accountName: 'Light, Power, Heating' - accountCategory: - status: Suggested - levels: - - levelName: Expense - confidence: 99.99 - - levelName: Operating - confidence: 99.99 - - levelName: SalesGeneralAdministrative - confidence: 99.99 - - date: '2022-08-31T00:00:00' - balance: 1027.25 - accountId: 7aa7988a-ff61-4cb8-bef3-15395355d108 - accountName: Printing & Stationery - accountCategory: - status: Suggested - levels: - - levelName: Expense - confidence: 99.99 - - levelName: Operating - confidence: 99.99 - - levelName: SalesGeneralAdministrative - confidence: 99.99 - - date: '2022-08-31T00:00:00' - balance: 45 - accountId: 043b6bcb-dfe6-4c97-9b4c-f9b300fe3f03 - accountName: Telephone & Internet - accountCategory: - status: Suggested - levels: - - levelName: Expense - confidence: 99.99 - - levelName: Operating - confidence: 99.99 - - levelName: SalesGeneralAdministrative - confidence: 99.99 - - date: '2022-08-31T00:00:00' - balance: 0 - accountId: eef78ed1-dfed-447c-bdba-3a49fb2c044b - accountName: Audit & Accountancy fees - accountCategory: - status: Suggested - levels: - - levelName: Expense - confidence: 99.99 - - levelName: Operating - confidence: 99.99 - - levelName: SalesGeneralAdministrative - confidence: 99.99 - - date: '2022-08-31T00:00:00' - balance: 130 - accountId: c16f5c35-8283-47da-9d09-5fecb183b0cb - accountName: Cleaning - accountCategory: - status: Suggested - levels: - - levelName: Expense - confidence: 99.99 - - levelName: Operating - confidence: 99.99 - - levelName: SalesGeneralAdministrative - confidence: 99.99 - - date: '2022-08-31T00:00:00' - balance: 860.02 - accountId: df62060b-41cc-4bf2-9de7-c7e537b5663a - accountName: Travel - National - accountCategory: - status: Suggested - levels: - - levelName: Expense - confidence: 99.99 - - levelName: Operating - confidence: 99.99 - - levelName: Travel - confidence: 99.99 - - date: '2022-08-31T00:00:00' - balance: 850.22 - accountId: 68794a8f-b22d-4520-b97b-025b7cb10f94 - accountName: Other Revenue - accountCategory: - status: Suggested - levels: - - levelName: Income - confidence: 99.99 - - levelName: Revenue - confidence: 99.99 - - levelName: Online - confidence: 99.99 - - date: '2022-08-31T00:00:00' - balance: 138457.98 - accountId: 72df89d2-512b-4455-af51-a6b563733842 - accountName: Sales - accountCategory: - status: Suggested - levels: - - levelName: Income - confidence: 99.99 - - levelName: Revenue - confidence: 99.99 - - levelName: Wholesale - confidence: 99.99 - '400': - $ref: '#/components/responses/BadRequest' - '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' - operationId: get-categorized-profit-and-loss-statement - x-speakeasy-name-override: get-categorized-accounts - x-speakeasy-group: financial-statements.profit-and-loss - parameters: - - $ref: '#/components/parameters/reportDate' - - $ref: '#/components/parameters/numberOfPeriods' - '/companies/{companyId}/reports/enhancedBalanceSheet/accounts': - parameters: - - $ref: '#/components/parameters/companyId' - get: - summary: Get categorized balance sheet statement - operationId: get-categorized-balance-sheet-statement - x-speakeasy-name-override: get-categorized-accounts - x-speakeasy-group: financial-statements.balance-sheet - description: |- - The *Get categorized balance sheet statement* endpoint returns a list of categorized accounts that appear on a company’s Balance Sheet along with a balance per financial statement date. + This is an asynchronous operation, and will bring updated data into Codat from the linked integration for you to view. - Codat suggests a category for each account automatically, but you can [change it](https://docs.codat.io/lending/features/financial-statements-overview#recategorizing-accounts) to a more suitable one. + [Read more](https://docs.codat.io/core-concepts/data-type-settings) about data type settings and `fetch on first link`. tags: - - Financial statements - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/EnhancedFinancialReport' - example: - reportInfo: - currency: GBP - reportName: EnhancedBalanceSheetAccounts - companyName: Biscuits - generatedDate: '2023-03-24T16:42:09.2973105Z' - reportItems: - - date: '2022-08-31T00:00:00' - balance: 12973.03 - accountId: 22de1660-d745-4809-a363-16b134607e66 - accountName: Prepayments - accountCategory: - status: Suggested - levels: - - levelName: Asset - confidence: 99.99 - - levelName: Current - confidence: 99.99 - - levelName: AccruedDeferredAssets - confidence: 99.99 - - levelName: PrepaidExpenses - confidence: 99.99 - - date: '2022-08-31T00:00:00' - balance: 316065.92 - accountId: dbcaf288-2b39-4b95-8ab3-42202ab15918 - accountName: Business Current Account - accountCategory: - status: Suggested - levels: - - levelName: Asset - confidence: 99.99 - - levelName: Current - confidence: 99.99 - - levelName: Bank - confidence: 99.99 - - date: '2022-08-31T00:00:00' - balance: 65945.07 - accountId: e5d7612c-1671-47b4-b733-5db48363fcd0 - accountName: Inventory - accountCategory: - status: Suggested - levels: - - levelName: Asset - confidence: 99.99 - - levelName: Current - confidence: 99.99 - - levelName: Inventory - confidence: 99.99 - - date: '2022-08-31T00:00:00' - balance: 71937.95 - accountId: 1b6266d1-1e44-46c5-8eb5-a8f98e03124e - accountName: Accounts Receivable - accountCategory: - status: Suggested - levels: - - levelName: Asset - confidence: 99.99 - - levelName: Current - confidence: 99.99 - - levelName: Receivables - confidence: 99.99 - - levelName: AccountsReceivables - confidence: 99.99 - - date: '2022-08-31T00:00:00' - balance: 2180148.56 - accountId: 724ca578-8b5d-4bdb-ad45-e3820eee9de9 - accountName: Office Equipment - accountCategory: - status: Suggested - levels: - - levelName: Asset - confidence: 99.99 - - levelName: NonCurrent - confidence: 99.99 - - levelName: AccumulatedDepreciationDepletionAmortization - confidence: 99.99 - - date: '2022-08-31T00:00:00' - balance: 1804674.9 - accountId: be3eb911-034b-42de-95db-0d58ac978b7f - accountName: Computer Equipment - accountCategory: - status: Suggested - levels: - - levelName: Asset - confidence: 99.99 - - levelName: NonCurrent - confidence: 99.99 - - levelName: AccumulatedDepreciationDepletionAmortization - confidence: 99.99 - - date: '2022-08-31T00:00:00' - balance: 3417424.16 - accountId: 39225d6f-3722-4508-ac3f-a2f6ec96ad31 - accountName: Retained Earnings - accountCategory: - status: Suggested - levels: - - levelName: Equity - confidence: 99.99 - - levelName: RetainedEarnings - confidence: 99.99 - - levelName: CapitalIncomeReserve - confidence: 99.99 - - date: '2022-08-31T00:00:00' - balance: 44252.52 - accountId: 78828dd9-6008-4662-b43c-e9d87907fd2b - accountName: Current Year Earnings - accountCategory: - status: Suggested - levels: - - levelName: Equity - confidence: 99.99 - - levelName: ShareCapital - confidence: 99.99 - - levelName: CommonStock - confidence: 99.99 - - date: '2022-08-31T00:00:00' - balance: 75835.64 - accountId: 53bf27a7-7497-4c61-9887-dfaad5c6d80a - accountName: Accounts Payable - accountCategory: - status: Suggested - levels: - - levelName: Liability - confidence: 99.99 - - levelName: Current - confidence: 99.99 - - levelName: AccountsPayable - confidence: 99.99 - - date: '2022-08-31T00:00:00' - balance: 208264.65 - accountId: e2530acd-91c8-48f8-a35f-935dbd7432e2 - accountName: Accruals - accountCategory: - status: Suggested - levels: - - levelName: Liability - confidence: 99.99 - - levelName: Current - confidence: 99.99 - - levelName: AccruedLiabilities - confidence: 99.99 - - date: '2022-08-31T00:00:00' - balance: 0 - accountId: d19852a2-e292-4eb9-a909-9dadb95c0e76 - accountName: Rounding - accountCategory: - status: Suggested - levels: - - levelName: Liability - confidence: 99.99 - - levelName: Current - confidence: 99.99 - - levelName: Bank - confidence: 99.99 - - date: '2022-08-31T00:00:00' - balance: 25184.57 - accountId: 62060aae-e5a6-4db5-a3bb-6abec6d47959 - accountName: Credit Card Control Account - accountCategory: - status: Suggested - levels: - - levelName: Liability - confidence: 99.99 - - levelName: Current - confidence: 99.99 - - levelName: Debt - confidence: 99.99 - - levelName: CreditCards - confidence: 99.99 - - date: '2022-08-31T00:00:00' - balance: 9650.58 - accountId: 9be6382f-6b33-402d-b448-0db1dbf67a98 - accountName: Historical Adjustment - accountCategory: - status: Suggested - levels: - - levelName: Liability - confidence: 99.99 - - levelName: Current - confidence: 99.99 - - levelName: Debt - confidence: 99.99 - - levelName: LoansPayable - confidence: 99.99 - - date: '2022-08-31T00:00:00' - balance: 2022.41 - accountId: 8636effc-50fb-45ba-8b2b-18336fa29b6b - accountName: John Smith - accountCategory: - status: Suggested - levels: - - levelName: Liability - confidence: 99.99 - - levelName: Current - confidence: 99.99 - - levelName: Debt - confidence: 99.99 - - levelName: LoansPayable - confidence: 99.99 - - date: '2022-08-31T00:00:00' - balance: 29034.75 - accountId: 3a872b81-d1af-4d31-9bfa-a37280b8f68c - accountName: VAT - accountCategory: - status: Confirmed - levels: - - levelName: Liability - confidence: 99.99 - - levelName: Current - confidence: 99.99 - - levelName: Personnel - confidence: 99.99 - - levelName: PensionPayable - confidence: 99.99 - - date: '2022-08-31T00:00:00' - balance: 1076.55 - accountId: 3b58f7ff-fa16-453a-9931-f020816d76e7 - accountName: Interest Payables - accountCategory: - status: Confirmed - levels: - - levelName: Liability - confidence: 99.99 - - levelName: Current - confidence: 99.99 - - levelName: Personnel - confidence: 99.99 - - levelName: PensionPayable - confidence: 99.99 - - date: '2022-08-31T00:00:00' - balance: 0 - accountId: 8852a857-aa9d-4706-839f-638e9d6b5a66 - accountName: Unpaid Expense Claims - accountCategory: - status: Suggested - levels: - - levelName: Liability - confidence: 99.99 - - levelName: NonCurrent - confidence: 99.99 - - date: '2022-08-31T00:00:00' - balance: 638999.6 - accountId: 55008233-40e7-41ac-84af-2255fa028c2e - accountName: Loan - accountCategory: - status: Suggested - levels: - - levelName: Liability - confidence: 99.99 - - levelName: NonCurrent - confidence: 99.99 - '400': - $ref: '#/components/responses/BadRequest' - '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' - parameters: - - $ref: '#/components/parameters/reportDateRequired' - - $ref: '#/components/parameters/numberOfPeriods' - '/companies/{companyId}/reports/enhancedCashFlow/transactions': + - Manage data + '/companies/{companyId}/dataStatus': parameters: - $ref: '#/components/parameters/companyId' get: - summary: Get categorized bank statement - operationId: get-categorized-bank-statement - x-speakeasy-group: banking.categorized-statement - description: "\uFEFF> **Categorization engine**\n>\n> The categorization engine uses machine learning and has been fully trained against Plaid and TrueLayer banking data sources. It is not fully trained against the Basiq banking data source.\n\nThe _Get categorized bank statement_ endpoint provides a fully categorized list of banking transactions for a company. Accounts and transaction data are obtained from the company's banking data sources." + summary: Get data status + operationId: get-data-status + description: Get the state of each data type for a company tags: - - Bank statements + - Manage data responses: '200': description: OK content: application/json: schema: - $ref: '#/components/schemas/EnhancedCashFlowTransactions' - examples: - Categorized bank statement: - $ref: '#/components/examples/EnhancedCashflowExample' - '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' - parameters: - - $ref: '#/components/parameters/page' - - $ref: '#/components/parameters/pageSize' - - $ref: '#/components/parameters/query' - '/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}/reports/liabilities/loans/transactions': - parameters: - - $ref: '#/components/parameters/companyId' - - schema: - type: string - enum: - - banking - - commerce - - accounting - in: query - name: sourceType - description: Data source type. - required: true - post: - summary: Generate loan transactions report - description: | - The _Generate loan transactions_ endpoint requests the generation of the Loan Transactions report. - - Learn more about Codat's liabilities feature [here](https://docs.codat.io/lending/features/liabilities-overview). - - Make sure you have [synced a company](https://docs.codat.io/lending-api#/operations/refresh-company-data) recently before calling the endpoint. - tags: - - Liabilities - responses: - '202': - description: Accepted - '400': - $ref: '#/components/responses/BadRequest' - '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' - operationId: generate-loan-transactions - x-speakeasy-name-override: generate-loan-transactions - get: - summary: List loan transactions - description: | - The *List loan transactions* endpoint returns all [loan transactions](https://docs.codat.io/lending-api#/schemas/LoanTransactions) identified from a company's accounting, banking, and commerce integrations. - - This detail gives analysts a better idea of the loan obligations a company may have. - - Make sure you have [synced a company](https://docs.codat.io/lending-api#/operations/refresh-company-data) recently before calling the endpoint. - tags: - - Liabilities - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/LoanTransactions' - '400': - $ref: '#/components/responses/BadRequest' - '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' - operationId: list-loan-transactions - x-speakeasy-name-override: list-loan-transactions - '/companies/{companyId}/reports/liabilities/loans': - parameters: - - $ref: '#/components/parameters/companyId' - - schema: - type: string - enum: - - banking - - commerce - - accounting - in: query - name: sourceType - description: Data source type. - required: true - post: - summary: Generate loan summaries report - description: | - The _Generate loan summaries_ endpoint requests the generation of the Loan Summaries report. - - Learn more about Codat's liabilities feature [here](https://docs.codat.io/lending/features/liabilities-overview). - - Make sure you have [synced a company](https://docs.codat.io/lending-api#/operations/refresh-company-data) recently before calling the endpoint. - tags: - - Liabilities - responses: - '202': - description: Accepted - '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' - operationId: generate-loan-summary - x-speakeasy-name-override: generate-loan-summary - get: - summary: Get loan summaries - description: | - The *Get loan summaries* endpoint returns a summary by integration type of all loans identified from a company's accounting, banking, and commerce integrations. - - The endpoint returns a list of a company's [loan summaries](https://docs.codat.io/lending-api#/schemas/LoanSummary) for each valid data connection. - - Make sure you have [synced a company](https://docs.codat.io/lending-api#/operations/refresh-company-data) recently before calling the endpoint. - tags: - - Liabilities - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/LoanSummary' - '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' - operationId: get-loan-summary - x-speakeasy-name-override: get-loan-summary - '/data/companies/{companyId}/connections/{connectionId}/assess/commerceMetrics/revenue': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - get: - summary: Get commerce revenue metrics - tags: - - Sales - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/CommerceReport' - example: - - reportInfo: - name: revenue - displayName: Revenue - dimensions: - - index: 0 - displayName: Period - type: datespan - items: - - index: 0 - displayName: Period 0 - start: '2022-01-01' - end: '2022-12-31' - - index: 1 - displayName: Revenue metrics - type: string - items: - - index: 0 - value: Revenue - - index: 1 - value: Revenue growth - measures: - - displayName: Value - units: GBP - index: 0 - type: currency - - displayName: Percentage change vs. previous period - units: '%' - index: 1 - type: percentage - reportData: - - dimension: 0 - dimensionDisplayName: Period - item: 0 - itemDisplayName: Period 0 - components: - - dimension: 1 - dimensionDisplayName: Revenue metrics - item: 0 - itemDisplayName: Revenue - measures: - - index: 0 - measureDisplayName: Value - value: 2392.48 - - dimension: 1 - dimensionDisplayName: Revenue metrics - item: 1 - itemDisplayName: Revenue growth - measures: - - index: 1 - measureDisplayName: Percentage change vs. previous period - value: 276.65 - '400': - $ref: '#/components/responses/BadRequest' - '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' - operationId: get-commerce-revenue-metrics - x-speakeasy-name-override: get-revenue - x-speakeasy-group: sales.metrics - description: | - The *Get revenue report* endpoint returns the revenue and revenue growth for a specific company connection over one or more periods of time. - - This detail helps you assess a merchant's health and advise them on performance improvement strategies. It also provides you with key insights you need to assess the credit risk of a company. - - [Learn more](https://docs.codat.io/lending/features/sales-overview#metrics) about the formulas used to calculate the revenue metrics. - - #### Response structure - - The Revenue report's dimensions and measures are: - - | Index | Dimensions | - |---------------|------------| - | `index` = 0 | Period | - | `index` = 1 | Revenue | - - | Index | Measures | - |---------------|--------------------------------------------------------------------------------------------------------------------------| - | `index` = 0 | Value | - | `index` = 1 | Percentage change, defined as the change between the current and previous periods' values and expressed as a percentage. | - - The report data then combines multiple reporting dimensions and measures and outputs the value of each combination. - parameters: - - $ref: '#/components/parameters/reportDateRequired' - - $ref: '#/components/parameters/periodLength' - - $ref: '#/components/parameters/numberOfPeriodsRequired' - - $ref: '#/components/parameters/periodUnit' - - $ref: '#/components/parameters/includeDisplayNames' - '/data/companies/{companyId}/connections/{connectionId}/assess/commerceMetrics/orders': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - get: - summary: Get orders report - tags: - - Sales - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/CommerceReport' - example: - - reportInfo: - name: orders - displayName: Orders - dimensions: - - index: 0 - displayName: Period - type: datespan - items: - - index: 0 - displayName: Period 0 - start: '2022-01-01' - end: '2022-12-31' - - index: 1 - displayName: Order metrics - type: string - items: - - index: 0 - value: Number of orders - - index: 1 - value: Total value - - index: 2 - value: Average order value - measures: - - displayName: Count - index: 0 - type: int - - displayName: Value - units: GBP - index: 1 - type: currency - reportData: - - dimension: 0 - dimensionDisplayName: Period - item: 0 - itemDisplayName: Period 0 - components: - - dimension: 1 - dimensionDisplayName: Order metrics - item: 0 - itemDisplayName: Number of orders - measures: - - index: 0 - measureDisplayName: Count - value: 94 - - dimension: 1 - dimensionDisplayName: Order metrics - item: 1 - itemDisplayName: Total value - measures: - - index: 1 - measureDisplayName: Value - value: 3315.18 - - dimension: 1 - dimensionDisplayName: Order metrics - item: 2 - itemDisplayName: Average order value - measures: - - index: 1 - measureDisplayName: Value - value: 35.27 - '400': - $ref: '#/components/responses/BadRequest' - '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' - operationId: get-commerce-orders-report - x-speakeasy-name-override: get-orders - x-speakeasy-group: sales.reports - description: | - The *Get orders report* endpoint returns the number of orders, total value, and average order value for a specific company's commerce connection over one or more periods of time. - - This detail helps you assess a merchant's health and advise them on performance improvement strategies. It also provides you with key insights you need to assess the credit risk of a company. - - [Learn more](https://docs.codat.io/lending/features/sales-overview#metrics) about the formulas used to calculate the order metrics. - - #### Response structure - - The Orders report's dimensions and measures are: - - | Index | Dimensions | - |---------------|----------------| - | `index` = 0 | Period | - | `index` = 1 | Order metrics | - - | Index | Measures | - |---------------|------------| - | `index` = 0 | Count | - | `index` = 1 | Value | - - The report data then combines multiple reporting dimensions and measures and outputs the value of each combination. - parameters: - - $ref: '#/components/parameters/reportDateRequired' - - $ref: '#/components/parameters/periodLength' - - $ref: '#/components/parameters/numberOfPeriodsRequired' - - $ref: '#/components/parameters/periodUnit' - - $ref: '#/components/parameters/includeDisplayNames' - '/data/companies/{companyId}/connections/{connectionId}/assess/commerceMetrics/refunds': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - get: - summary: Get refunds report - tags: - - Sales - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/CommerceReport' - example: - - reportInfo: - name: refunds - displayName: Refunds - dimensions: - - index: 0 - displayName: Period - type: datespan - items: - - index: 0 - displayName: Period 0 - start: '2022-01-01' - end: '2022-12-31' - - index: 1 - displayName: Refund metrics - type: string - items: - - index: 0 - value: Number of refunds - - index: 1 - value: Value of refunds - - index: 2 - value: Refund rate - measures: - - displayName: Count - index: 0 - type: int - - displayName: Value - units: GBP - index: 1 - type: currency - - displayName: Percentage - units: '%' - index: 2 - type: percentage - reportData: - - dimension: 0 - dimensionDisplayName: Period - item: 0 - itemDisplayName: Period 0 - components: - - dimension: 1 - dimensionDisplayName: Refund metrics - item: 0 - itemDisplayName: Number of refunds - measures: - - index: 0 - measureDisplayName: Count - value: 39 - - dimension: 1 - dimensionDisplayName: Refund metrics - item: 1 - itemDisplayName: Value of refunds - measures: - - index: 1 - measureDisplayName: Value - value: 642.82 - - dimension: 1 - dimensionDisplayName: Refund metrics - item: 2 - itemDisplayName: Refund rate - measures: - - index: 2 - measureDisplayName: Percentage - value: 0.41 - '400': - $ref: '#/components/responses/BadRequest' - '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' - operationId: get-commerce-refunds-report - x-speakeasy-name-override: get-refunds - x-speakeasy-group: sales.reports - description: | - The *Get refunds report* endpoint returns the number and total value of refunds and the refund rate for a specific company's commerce connection over one or more periods of time. - - This detail helps you assess a merchant's health and advise them on performance improvement strategies. It also provides you with key insights you need to assess the credit risk of a company. - - [Learn more](https://docs.codat.io/lending/features/sales-overview#metrics) about the formulas used to calculate the refunds metrics. - - #### Response structure - - The Refunds report's dimensions and measures are: - - | Index | Dimensions | - |----------------|----------------| - | `index` = 0 | Period | - | `index` = 1 | Refund metrics | - - | Index | Measures | - |----------------|------------| - | `index` = 0 | Count | - | `index` = 1 | Value | - | `index` = 2 | Percentage | - - The report data then combines multiple reporting dimensions and measures and outputs the value of each combination. - parameters: - - $ref: '#/components/parameters/reportDateRequired' - - $ref: '#/components/parameters/periodLength' - - $ref: '#/components/parameters/numberOfPeriodsRequired' - - $ref: '#/components/parameters/periodUnit' - - $ref: '#/components/parameters/includeDisplayNames' - '/data/companies/{companyId}/connections/{connectionId}/assess/commerceMetrics/customerRetention': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - get: - summary: Get customer retention metrics - tags: - - Sales - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/CommerceReport' - example: - - reportInfo: - name: customer_retention - displayName: Customer Retention - dimensions: - - index: 0 - displayName: Period - type: datespan - items: - - index: 0 - displayName: Period 0 - start: '2022-01-01' - end: '2022-12-31' - - index: 1 - displayName: Customer retention metrics - type: string - items: - - index: 0 - value: Existing customers - - index: 1 - value: New customers - - index: 2 - value: Total customers - - index: 3 - value: Retention rate - - index: 4 - value: Repeat rate - measures: - - displayName: Count - index: 0 - type: int - - displayName: Percentage - index: 1 - type: percentage - reportData: - - dimension: 0 - dimensionDisplayName: Period - item: 0 - itemDisplayName: Period 0 - components: - - dimension: 1 - dimensionDisplayName: Customer retention metrics - item: 0 - itemDisplayName: Existing customers - measures: - - index: 0 - measureDisplayName: Count - value: 13 - - dimension: 1 - dimensionDisplayName: Customer retention metrics - item: 1 - itemDisplayName: New customers - measures: - - index: 0 - measureDisplayName: Count - value: 47 - - dimension: 1 - dimensionDisplayName: Customer retention metrics - item: 2 - itemDisplayName: Total customers - measures: - - index: 0 - measureDisplayName: Count - value: 60 - - dimension: 1 - dimensionDisplayName: Customer retention metrics - item: 3 - itemDisplayName: Retention rate - measures: - - index: 1 - measureDisplayName: Percentage - value: 0 - - dimension: 1 - dimensionDisplayName: Customer retention metrics - item: 4 - itemDisplayName: Repeat rate - measures: - - index: 1 - measureDisplayName: Percentage - value: 21.67 - '400': - $ref: '#/components/responses/BadRequest' - '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' - operationId: get-commerce-customer-retention-metrics - x-speakeasy-name-override: get-customer-retention - x-speakeasy-group: sales.metrics - description: |- - The *Get customer retention metrics* endpoint returns customer retention insights for a specific company's commerce connection over one or more periods of time. - - This detail helps you assess a merchant's health and advise them on performance improvement strategies. It also provides you with key insights you need to assess the credit risk of a company. - - #### Customer retention metrics - - - __Existing customers__: the number of unique customers that have placed an order(s) in the specified period and any previous period. - - __New customers__: the number of unique customers that have placed an order(s) in the specified period and none in any previous period. - - __Total customers__: the total number of existing and new customers within the specified period. - - __Retention rate__: the ratio of existing customers within the specified period compared to the total customers at the end of the previous period represented as a percentage. - - __Repeat rate__: the ratio of existing customers to total customers over the specified period represented as a percentage. - - [Learn more](https://docs.codat.io/lending/features/sales-overview#metrics) about the formulas used to calculate customer retention metrics. - - #### Response structure - - The Customer retention report's dimensions and measures are: - - | Index | Dimensions | - |-----------------------------|----------------------------| - | `index` = 0 | Period | - | `index` = 1 | Customer retention metrics | - - | Index | Measures | - |----------------------|------------| - | `index` = 0 | Count | - | `index` = 1 | Percentage | - - The report data then combines multiple reporting dimensions and measures and outputs the value of each combination. - parameters: - - $ref: '#/components/parameters/reportDateRequired' - - $ref: '#/components/parameters/periodLength' - - $ref: '#/components/parameters/numberOfPeriodsRequired' - - $ref: '#/components/parameters/periodUnit' - - $ref: '#/components/parameters/includeDisplayNames' - '/data/companies/{companyId}/connections/{connectionId}/assess/commerceMetrics/lifetimeValue': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - get: - summary: Get lifetime value metrics - tags: - - Sales - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/CommerceReport' - example: - - reportInfo: - name: lifetime_value - displayName: Lifetime Value - dimensions: - - index: 0 - displayName: Period - type: datespan - items: - - index: 0 - displayName: Period 0 - start: '2022-01-01' - end: '2022-12-31' - - index: 1 - displayName: Lifetime value metrics - type: string - items: - - index: 0 - value: Lifetime value - measures: - - displayName: Value - units: GBP - index: 0 - type: currency - reportData: - - dimension: 0 - dimensionDisplayName: Period - item: 0 - itemDisplayName: Period 0 - components: - - dimension: 1 - dimensionDisplayName: Lifetime value metrics - item: 0 - itemDisplayName: Lifetime value - measures: - - index: 0 - measureDisplayName: Value - value: 3782.07 - '400': - $ref: '#/components/responses/BadRequest' - '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' - operationId: get-commerce-lifetime-value-metrics - x-speakeasy-name-override: get-lifetime-value - x-speakeasy-group: sales.metrics - description: | - The *Get lifetime value metrics* endpoint returns the average revenue that a specific company will generate throughout its lifespan over one or more periods of time. - - This detail helps you assess a merchant's health and advise them on performance improvement strategies. It also provides you with key insights you need to assess the credit risk of a company. - - [Learn more](https://docs.codat.io/lending/features/sales-overview#metrics) about the formulas used to calculate the lifetime value metrics. - - #### Response structure - - The Lifetime value report's dimensions and measures are: - - | Index | Dimensions | - |---------------|------------------------| - | `index` = 0 | Period | - | `index` = 1 | Lifetime value metrics | - - | Index | Measures | - |-------------------|---------| - | `index` = 1 | Value | - - The report data then combines multiple reporting dimensions and measures and outputs the value of each combination. - parameters: - - $ref: '#/components/parameters/reportDateRequired' - - $ref: '#/components/parameters/periodLength' - - $ref: '#/components/parameters/numberOfPeriodsRequired' - - $ref: '#/components/parameters/periodUnit' - - $ref: '#/components/parameters/includeDisplayNames' - '/data/companies/{companyId}/assess/excel': - parameters: - - $ref: '#/components/parameters/companyId' - post: - summary: Generate Excel report - tags: - - Excel reports - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/ExcelStatus' - '400': - $ref: '#/components/responses/BadRequest' - '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' - operationId: generate-excel-report - x-speakeasy-name-override: generate - description: |+ - The *Generate Excel report* endpoint requests the production of a downloadable Excel file for a report type specified in the `reportType` query parameter. - - In response, the endpoint returns the [status](https://docs.codat.io/lending-api#/schemas/ExcelStatus) detailing the current state of the report generation request. - - ### Report types - - | reportType | Description | - |--------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------| - | `audit` | Identifies inaccurate or out-of-date accounts, helping you to make decisions with confidence. || [audit](https://docs.codat.io/lending/excel/audit-report) | Identify inaccurate or out-of-date accounts, helping you to make decisions with confidence. | - | `enhancedCashFlow` | Provides a fully categorized list of bank transactions for a company, allowing lenders to accurately forecast a company's cash flow. | - | `enhancedFinancials` | Supports decision-making using fully categorized financial statements to allow lenders to automate their underwriting processes. | - | `enhancedInvoices` | Helps verify that payments have been made against historic invoices. Great for invoice finance lenders. | - - [Learn more](https://docs.codat.io/lending/features/excel-download-overview#feature-components) about valid Excel report types. - - - parameters: - - $ref: '#/components/parameters/excelReportType' - get: - summary: Get Excel report status - tags: - - Excel reports - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/ExcelStatus' - '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' - operationId: get-excel-report-generation-status - x-speakeasy-name-override: get-status - description: "\uFEFFThe *Get Excel report status* returns the status of the report mostly recently requested for Excel generation. It does not return the status of any historical report requests. \n\nPoll this endpoint to check the progress of the report once you have requested its generation. This will not affect the generation of the report. \n\nWhen the report generation completes successfully, the `inProgress` property will be marked as `false` and the `success` field will be marked as `true`." - parameters: - - $ref: '#/components/parameters/excelReportType' - '/data/companies/{companyId}/assess/excel/download': - parameters: - - $ref: '#/components/parameters/companyId' - get: - summary: Download Excel report - tags: - - Excel reports - responses: - '200': - description: OK - content: - application/octet-stream: - schema: {} - '400': - $ref: '#/components/responses/BadRequest' - '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' - operationId: download-excel-report - x-speakeasy-name-override: download - description: "\uFEFFThe *Download Excel report* endpoint downloads the latest successfully generated Excel report of a specified report type for a given company. \n\nThe downloadable Excel file is returned in the response. You can save it to your local machine.\n\nYou can [learn more](https://docs.codat.io/lending/features/excel-download-overview#feature-components) about valid Excel report types." - parameters: - - $ref: '#/components/parameters/excelReportType' - '/companies/{companyId}/connections/{connectionId}/data/accountTransactions': - get: - tags: - - Transactions - summary: List account transactions - description: |- - The *List account transactions* endpoint returns a list of [account transactions](https://docs.codat.io/lending-api#/schemas/AccountTransaction) for a given company's connection. - - [Account transactions](https://docs.codat.io/lending-api#/schemas/AccountTransaction) represent bank activity within an accounting software. All transactions that go through a bank account are recorded as account transactions. - - Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data). - - operationId: list-accounting-account-transactions - x-speakeasy-group: transactions.account-transactions - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - - $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/AccountingAccountTransactions' - examples: - Clear Books: - value: - results: - - id: 062b3a9b-b04f-4d9c-9ebc-81dcb5bbf285 - transactionId: 356deb9f-98e6-4d6f-8db3-b378241895a1 - note: Direct income 38e8c917-0afc-4583-8ffe-1b53ad601197 - bankAccountRef: - id: ff8fdc4c-2aad-4ec1-9430-6bd201832eb3 - name: Undeposited Funds - date: '2022-04-19T00:00:00' - status: Unreconciled - currency: GBP - currencyRate: 1 - lines: - - description: Payment for direct income $38e8c917-0afc-4583-8ffe-1b53ad601197 - recordRef: - id: 38e8c917-0afc-4583-8ffe-1b53ad601197 - dataType: directIncomes - amount: 188.33 - totalAmount: 188.33 - modifiedDate: '2023-04-26T12:38:18' - sourceModifiedDate: '2022-05-13T01:06:00' - metadata: - isDeleted: false - - id: f2656119-9521-4d51-a24d-003b44c1410b - transactionId: 1fde4f8f-68ca-48fc-8fe7-79ac467d2946 - note: Direct income c31a3778-e3ea-4d01-9281-dd2f291c8cb8 - bankAccountRef: - id: ff8fdc4c-2aad-4ec1-9430-6bd201832eb3 - name: Undeposited Funds - date: '2022-04-19T00:00:00' - status: Void - currency: GBP - currencyRate: 1 - lines: - - description: Payment for direct income $c31a3778-e3ea-4d01-9281-dd2f291c8cb8 - recordRef: - id: c31a3778-e3ea-4d01-9281-dd2f291c8cb8 - dataType: directIncomes - amount: 32095.91 - totalAmount: 32095.91 - modifiedDate: '2023-04-26T12:38:18' - sourceModifiedDate: '2023-02-13T00:34:00' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 1745 - _links: - current: - href: /companies/354a121b-855f-4d25-90ad-0905b498c1c0/connections/57b731ba-1d45-4386-ba58-2a1ca0234624/data/accountTransactions?page=1&pageSize=2 - self: - href: /companies/354a121b-855f-4d25-90ad-0905b498c1c0/connections/57b731ba-1d45-4386-ba58-2a1ca0234624/data/accountTransactions - next: - href: /companies/354a121b-855f-4d25-90ad-0905b498c1c0/connections/57b731ba-1d45-4386-ba58-2a1ca0234624/data/accountTransactions?page=2&pageSize=2 - QuickBooks Desktop: - value: - results: - - id: D7B-933784104 - transactionId: D7B-933784104 - bankAccountRef: - id: 20000-933270541 - name: Checking - date: '2022-12-01T00:00:00' - status: Unknown - currency: GBP - currencyRate: 1 - lines: - - recordRef: - id: D7B-933784104 - dataType: directCosts - amount: -1200 - totalAmount: -1200 - modifiedDate: '2023-04-26T09:13:23' - sourceModifiedDate: '2023-12-16T05:04:10' - metadata: - isDeleted: false - - id: DFA-933785132 - transactionId: DFA-933785132 - bankAccountRef: - id: 20000-933270541 - name: Checking - date: '2022-12-05T00:00:00' - status: Unknown - currency: GBP - currencyRate: 1 - lines: - - recordRef: - id: DFA-933785132 - dataType: directCosts - amount: -35 - totalAmount: -35 - modifiedDate: '2023-04-26T09:13:23' - sourceModifiedDate: '2023-12-16T05:04:11' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 652 - _links: - current: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/connections/2c26b4da-97d4-4ba9-baad-1e18b49b96ac/data/accountTransactions?page=1&pageSize=2 - self: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/connections/2c26b4da-97d4-4ba9-baad-1e18b49b96ac/data/accountTransactions - next: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/connections/2c26b4da-97d4-4ba9-baad-1e18b49b96ac/data/accountTransactions?page=2&pageSize=2 - QuickBooks Online Sandbox: - value: - results: - - id: '85' - transactionId: '85' - note: Opening Balance from Bank - bankAccountRef: - id: '57' - name: Visa Credit Card - date: '2015-08-12T00:00:00' - status: Unknown - currency: GBP - currencyRate: 1 - lines: - - description: Opening Balance from Bank - recordRef: - id: PUR-85 - dataType: directCosts - amount: -3831.8 - totalAmount: -3831.8 - modifiedDate: '2023-04-26T09:37:16' - sourceModifiedDate: '2016-09-12T18:13:07Z' - metadata: - isDeleted: false - - id: '5' - transactionId: '5' - bankAccountRef: - id: '81' - name: Current - date: '2015-11-24T00:00:00' - status: Unknown - currency: GBP - currencyRate: 1 - lines: - - description: contribution to start business - recordRef: - id: 5-1 - dataType: directIncomes - amount: 10000 - - description: funds borrowed to start business - recordRef: - id: 5-2 - dataType: directIncomes - amount: 25000 - totalAmount: 35000 - modifiedDate: '2023-04-26T09:37:17' - sourceModifiedDate: '2016-09-12T15:26:26Z' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 9141 - _links: - current: - href: /companies/5a7f3597-36e1-4216-86fe-289ad36088a6/connections/1f9f6013-f8a5-4278-8a47-3ab7fdb6c24c/data/accountTransactions?page=1&pageSize=2 - self: - href: /companies/5a7f3597-36e1-4216-86fe-289ad36088a6/connections/1f9f6013-f8a5-4278-8a47-3ab7fdb6c24c/data/accountTransactions - next: - href: /companies/5a7f3597-36e1-4216-86fe-289ad36088a6/connections/1f9f6013-f8a5-4278-8a47-3ab7fdb6c24c/data/accountTransactions?page=2&pageSize=2 - QuickBooks Online: - value: - results: - - id: '1' - transactionId: '1' - note: Opening Balance from Bank - bankAccountRef: - id: '61' - name: Dave PP Current - date: '2018-09-21T00:00:00' - status: Unknown - currency: GBP - currencyRate: 1 - lines: - - recordRef: - id: '1' - dataType: directIncomes - amount: 170.23 - totalAmount: 170.23 - modifiedDate: '2023-01-18T11:03:12' - sourceModifiedDate: '2018-12-17T14:56:20Z' - - id: '15' - transactionId: '15' - note: Payment to Google - bankAccountRef: - id: '61' - name: Dave PP Current - date: '2018-09-21T00:00:00' - status: Unknown - currency: GBP - currencyRate: 1 - lines: - - description: Payment to Google - recordRef: - id: PUR-15 - dataType: directCosts - amount: -1.59 - totalAmount: -1.59 - modifiedDate: '2023-01-18T11:03:11' - sourceModifiedDate: '2018-12-17T14:56:44Z' - pageNumber: 1 - pageSize: 2 - totalResults: 5984 - _links: - current: - href: /companies/10818b5e-6e6a-4ed4-a1c5-3e3efe626e87/connections/9e28a776-f4be-425b-8a3d-ad49956de2c9/data/accountTransactions?page=1&pageSize=2 - self: - href: /companies/10818b5e-6e6a-4ed4-a1c5-3e3efe626e87/connections/9e28a776-f4be-425b-8a3d-ad49956de2c9/data/accountTransactions - next: - href: /companies/10818b5e-6e6a-4ed4-a1c5-3e3efe626e87/connections/9e28a776-f4be-425b-8a3d-ad49956de2c9/data/accountTransactions?page=2&pageSize=2 - Xero: - value: - results: - - id: 74004690-82a1-4810-aaca-6ce575af94b4 - transactionId: 74004690-82a1-4810-aaca-6ce575af94b4 - bankAccountRef: - id: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - name: Business Bank Account - date: '2021-12-20T00:00:00' - status: Reconciled - currency: GBP - currencyRate: 1 - lines: - - recordRef: - id: 74004690-82a1-4810-aaca-6ce575af94b4 - dataType: billPayments - amount: -7267.2 - totalAmount: -7267.2 - modifiedDate: '2023-03-15T20:37:10' - sourceModifiedDate: '2021-01-02T22:51:40' - metadata: - isDeleted: false - - id: 65b746c8-9a5d-4a95-8096-d2316fcff592 - transactionId: 65b746c8-9a5d-4a95-8096-d2316fcff592 - bankAccountRef: - id: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - name: Business Bank Account - date: '2022-02-17T00:00:00' - status: Reconciled - currency: GBP - currencyRate: 1 - lines: - - recordRef: - id: 65b746c8-9a5d-4a95-8096-d2316fcff592 - dataType: payments - amount: 4200 - totalAmount: 4200 - modifiedDate: '2023-03-15T20:37:10' - sourceModifiedDate: '2021-01-02T22:50:58' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 70 - _links: - current: - href: /companies/5ced9667-a310-443a-a711-958d36377141/connections/6a4bcf97-e46a-465c-abf6-c42cec8e48c0/data/accountTransactions?page=1&pageSize=2 - self: - href: /companies/5ced9667-a310-443a-a711-958d36377141/connections/6a4bcf97-e46a-465c-abf6-c42cec8e48c0/data/accountTransactions - next: - href: /companies/5ced9667-a310-443a-a711-958d36377141/connections/6a4bcf97-e46a-465c-abf6-c42cec8e48c0/data/accountTransactions?page=2&pageSize=2 - '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' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - '/companies/{companyId}/connections/{connectionId}/data/accountTransactions/{accountTransactionId}': - get: - tags: - - Transactions - summary: Get account transaction - operationId: get-accounting-account-transaction - x-speakeasy-group: transactions.account-transactions - description: | - The *Get account transaction* endpoint returns a single account transaction for a given accountTransactionId. - - [Account transactions](https://docs.codat.io/lending-api#/schemas/AccountTransaction) represent bank activity within an accounting software. All transactions that go through a bank account are recorded as account transactions. - - Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data). - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - - name: accountTransactionId - in: path - required: true - schema: - type: string - description: Unique identifier for an account transaction. - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/AccountingAccountTransaction' - examples: - Clear Books: - value: - id: 062b3a9b-b04f-4d9c-9ebc-81dcb5bbf285 - transactionId: 356deb9f-98e6-4d6f-8db3-b378241895a1 - note: Direct income 38e8c917-0afc-4583-8ffe-1b53ad601197 - bankAccountRef: - id: ff8fdc4c-2aad-4ec1-9430-6bd201832eb3 - name: Undeposited Funds - date: '2022-04-19T00:00:00' - status: Unreconciled - currency: GBP - currencyRate: 1 - lines: - - description: Payment for direct income $38e8c917-0afc-4583-8ffe-1b53ad601197 - recordRef: - id: 38e8c917-0afc-4583-8ffe-1b53ad601197 - dataType: directIncomes - amount: 188.33 - totalAmount: 188.33 - modifiedDate: '2023-04-26T12:38:18' - sourceModifiedDate: '2022-05-13T01:06:00' - metadata: - isDeleted: false - QuickBooks Desktop: - value: - id: D7B-933784104 - transactionId: D7B-933784104 - bankAccountRef: - id: 20000-933270541 - name: Checking - date: '2022-12-01T00:00:00' - status: Unknown - currency: GBP - currencyRate: 1 - lines: - - recordRef: - id: D7B-933784104 - dataType: directCosts - amount: -1200 - totalAmount: -1200 - modifiedDate: '2023-04-26T09:13:23' - sourceModifiedDate: '2023-12-16T05:04:10' - metadata: - isDeleted: false - QuickBooks Online Sandbox: - value: - id: '85' - transactionId: '85' - note: Opening Balance from Bank - bankAccountRef: - id: '57' - name: Visa Credit Card - date: '2015-08-12T00:00:00' - status: Unknown - currency: GBP - currencyRate: 1 - lines: - - description: Opening Balance from Bank - recordRef: - id: PUR-85 - dataType: directCosts - amount: -3831.8 - totalAmount: -3831.8 - modifiedDate: '2023-04-26T09:37:16' - sourceModifiedDate: '2016-09-12T18:13:07Z' - metadata: - isDeleted: false - QuickBooks Online: - value: - id: '1' - transactionId: '1' - note: Opening Balance from Bank - bankAccountRef: - id: '61' - name: Dave PP Current - date: '2018-09-21T00:00:00' - status: Unknown - currency: GBP - currencyRate: 1 - lines: - - recordRef: - id: '1' - dataType: directIncomes - amount: 170.23 - totalAmount: 170.23 - modifiedDate: '2023-01-18T11:03:12' - sourceModifiedDate: '2018-12-17T14:56:20Z' - Xero: - value: - id: 74004690-82a1-4810-aaca-6ce575af94b4 - transactionId: 74004690-82a1-4810-aaca-6ce575af94b4 - bankAccountRef: - id: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - name: Business Bank Account - date: '2021-12-20T00:00:00' - status: Reconciled - currency: GBP - currencyRate: 1 - lines: - - recordRef: - id: 74004690-82a1-4810-aaca-6ce575af94b4 - dataType: billPayments - amount: -7267.2 - totalAmount: -7267.2 - modifiedDate: '2023-03-15T20:37:10' - sourceModifiedDate: '2021-01-02T22:51:40' - metadata: - isDeleted: false - '401': - $ref: '#/components/responses/Unauthorized' - '402': - $ref: '#/components/responses/Payment-Required' - '403': - $ref: '#/components/responses/Forbidden' - '404': - $ref: '#/components/responses/Not-Found' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - '/companies/{companyId}/data/accounts': - get: - tags: - - Financial statements - summary: List accounts - description: "\uFEFFThe *List accounts* endpoint returns a list of [accounts](https://docs.codat.io/lending-api#/schemas/Account) for a given company's connection.\n\n[Accounts](https://docs.codat.io/lending-api#/schemas/Account) are the categories a business uses to record accounting transactions.\n\nBefore using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data)." - operationId: list-accounting-accounts - x-speakeasy-group: financial-statements.accounts - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/page' - - $ref: '#/components/parameters/pageSize' - - $ref: '#/components/parameters/query' - - $ref: '#/components/parameters/orderBy' - responses: - '200': - description: Success - content: - application/json: - x-speakeasy-usage-example: true - schema: - $ref: '#/components/schemas/AccountingAccounts' - examples: - Clear Books: - value: - results: - - id: 1b6266d1-1e44-46c5-8eb5-a8f98e03124e - nominalCode: '610' - name: Accounts Receivable - description: Invoices the business has issued but has not yet collected payment on. - fullyQualifiedCategory: Asset.Current - fullyQualifiedName: Asset.Current.Accounts Receivable - currency: GBP - currentBalance: 0 - type: Asset - status: Active - isBankAccount: false - modifiedDate: '2023-04-26T12:38:15Z' - sourceModifiedDate: '2022-12-10T16:39:00' - validDatatypeLinks: [] - metadata: - isDeleted: false - - id: 76d5f23b-9623-4e3b-89cd-da57228764d3 - nominalCode: '611' - name: Accounts Receivable - description: A provision anticipating that a portion of accounts receivable will never be collected. - fullyQualifiedCategory: Asset.Current - fullyQualifiedName: Asset.Current.Accounts Receivable - currency: GBP - currentBalance: 0 - type: Asset - status: Active - isBankAccount: false - modifiedDate: '2023-04-26T12:38:15Z' - sourceModifiedDate: '2022-10-19T05:49:00' - validDatatypeLinks: [] - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 98 - _links: - current: - href: /companies/354a121b-855f-4d25-90ad-0905b498c1c0/data/accounts?page=1&pageSize=2 - self: - href: /companies/354a121b-855f-4d25-90ad-0905b498c1c0/data/accounts - next: - href: /companies/354a121b-855f-4d25-90ad-0905b498c1c0/data/accounts?page=2&pageSize=2 - Dynamics 365 Business Central: - value: - results: - - id: 8eaed16d-c69f-ec11-80f1-0022481b4546 - nominalCode: 45422026-68CA-4EF2-9 - name: '' - fullyQualifiedCategory: ' .' - fullyQualifiedName: .. - currency: GBP - currentBalance: 0 - type: Unknown - status: Active - isBankAccount: false - modifiedDate: '2023-03-27T14:21:18Z' - sourceModifiedDate: '2022-03-09T16:31:54Z' - validDatatypeLinks: - - property: Id - links: - - DirectCost.LineItems.AccountRef.Id - metadata: - isDeleted: false - - id: c0861a65-c69f-ec11-80f1-0022481b4546 - nominalCode: '10' - name: Account no cat Balance Sheet - fullyQualifiedCategory: ' .' - fullyQualifiedName: ..Account no cat Balance Sheet - currency: GBP - currentBalance: 27.34 - type: Unknown - status: Active - isBankAccount: false - modifiedDate: '2023-03-27T14:21:18Z' - sourceModifiedDate: '2022-09-13T14:45:01Z' - validDatatypeLinks: - - property: Id - links: - - DirectCost.LineItems.AccountRef.Id - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 122 - _links: - current: - href: /companies/d6849caf-c146-41be-8335-b73346e3bd84/data/accounts?page=1&pageSize=2 - self: - href: /companies/d6849caf-c146-41be-8335-b73346e3bd84/data/accounts - next: - href: /companies/d6849caf-c146-41be-8335-b73346e3bd84/data/accounts?page=2&pageSize=2 - Exact (Netherlands): - value: - results: - - id: ef2fde36-4416-4bc5-b239-315b2929348c - nominalCode: '1300' - name: Debiteuren - description: Debiteuren - fullyQualifiedCategory: Asset.Assets.AccountsReceivable - fullyQualifiedName: Asset.Assets.AccountsReceivable.Debiteuren.PaymentsEnabled - currency: EUR - currentBalance: 864435.44 - type: Asset - status: Active - isBankAccount: false - modifiedDate: '2022-10-26T13:36:17Z' - sourceModifiedDate: '2020-01-08T09:42:54Z' - validDatatypeLinks: - - property: Id - links: - - Transfer.To.AccountRef.Id - - Transfer.From.AccountRef.Id - - Payment.AccountRef.Id - - BillPayment.AccountRef.Id - - id: 2052b65b-20e9-4da1-85d8-fd5ca0ea3d38 - nominalCode: '888777888' - name: One more AR account - description: One more AR account - fullyQualifiedCategory: Asset.Assets.AccountsReceivable - fullyQualifiedName: Asset.Assets.AccountsReceivable.One more AR account.PaymentsEnabled - currency: EUR - currentBalance: 2174.82 - type: Asset - status: Active - isBankAccount: false - modifiedDate: '2022-10-26T13:36:17Z' - sourceModifiedDate: '2021-06-10T11:00:20Z' - validDatatypeLinks: - - property: Id - links: - - Transfer.To.AccountRef.Id - - Transfer.From.AccountRef.Id - - Payment.AccountRef.Id - - BillPayment.AccountRef.Id - pageNumber: 1 - pageSize: 2 - totalResults: 230 - _links: - current: - href: /companies/b83b1923-4db6-45a8-a779-b4e320c15979/data/accounts?page=1&pageSize=2 - self: - href: /companies/b83b1923-4db6-45a8-a779-b4e320c15979/data/accounts - next: - href: /companies/b83b1923-4db6-45a8-a779-b4e320c15979/data/accounts?page=2&pageSize=2 - Exact (UK): - value: - results: - - id: ca2b96b7-cc45-4e35-9fa3-82a2ba1eec40 - nominalCode: THING - name: Some thing account - description: Some thing account - fullyQualifiedCategory: Asset.Assets.AccountsReceivable - fullyQualifiedName: Asset.Assets.AccountsReceivable.Some thing account.PaymentsEnabled - currency: GBP - currentBalance: 0 - type: Asset - status: Active - isBankAccount: false - modifiedDate: '2022-10-26T13:35:15Z' - sourceModifiedDate: '2017-08-01T17:31:12Z' - validDatatypeLinks: - - property: Id - links: - - Transfer.To.AccountRef.Id - - Transfer.From.AccountRef.Id - - Payment.AccountRef.Id - - BillPayment.AccountRef.Id - - id: cf9572e7-8afa-4339-9113-af32a66d9df9 - nominalCode: '15400' - name: Trade Debtors - description: Trade Debtors - fullyQualifiedCategory: Asset.Assets.AccountsReceivable - fullyQualifiedName: Asset.Assets.AccountsReceivable.Trade Debtors.PaymentsEnabled - currency: GBP - currentBalance: 4484655.39 - type: Asset - status: Active - isBankAccount: false - modifiedDate: '2022-10-26T13:35:15Z' - sourceModifiedDate: '2020-01-08T13:48:38Z' - validDatatypeLinks: - - property: Id - links: - - Transfer.To.AccountRef.Id - - Transfer.From.AccountRef.Id - - Payment.AccountRef.Id - - BillPayment.AccountRef.Id - pageNumber: 1 - pageSize: 2 - totalResults: 121 - _links: - current: - href: /companies/d95030cd-22b2-482b-9c7b-2980dcc2b1ce/data/accounts?page=1&pageSize=2 - self: - href: /companies/d95030cd-22b2-482b-9c7b-2980dcc2b1ce/data/accounts - next: - href: /companies/d95030cd-22b2-482b-9c7b-2980dcc2b1ce/data/accounts?page=2&pageSize=2 - FreeAgent: - value: - results: - - id: '601' - nominalCode: '601' - name: Capital Asset Brought Forward - fullyQualifiedCategory: Asset.Capital - fullyQualifiedName: Asset.Capital.Capital Asset Brought Forward - currency: GBP - type: Asset - status: Active - isBankAccount: false - modifiedDate: '2023-04-25T14:19:12Z' - validDatatypeLinks: [] - metadata: - isDeleted: false - - id: '605' - nominalCode: '605' - name: Capital Asset Depreciation Brought Forward - fullyQualifiedCategory: Asset.Capital - fullyQualifiedName: Asset.Capital.Capital Asset Depreciation Brought Forward - currency: GBP - type: Asset - status: Active - isBankAccount: false - modifiedDate: '2023-04-25T14:19:12Z' - validDatatypeLinks: [] - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 292 - _links: - current: - href: /companies/071ad738-68f3-4561-afd0-69bab9df0803/data/accounts?page=1&pageSize=2 - self: - href: /companies/071ad738-68f3-4561-afd0-69bab9df0803/data/accounts - next: - href: /companies/071ad738-68f3-4561-afd0-69bab9df0803/data/accounts?page=2&pageSize=2 - FreshBooks: - value: - results: - - id: '67357' - nominalCode: '1200' - name: Accounts Receivable - fullyQualifiedCategory: Asset - fullyQualifiedName: Asset.Accounts Receivable - currency: GBP - currentBalance: 51445.53 - type: Asset - status: Active - isBankAccount: false - modifiedDate: '2023-03-24T16:07:24Z' - validDatatypeLinks: [] - metadata: - isDeleted: false - - id: '128611' - nominalCode: 1200-1 - name: Accounts Receivable - fullyQualifiedCategory: Asset.Accounts Receivable - fullyQualifiedName: Asset.Accounts Receivable.Accounts Receivable - currency: GBP - currentBalance: 51445.53 - type: Asset - status: Active - isBankAccount: false - modifiedDate: '2023-03-24T16:07:24Z' - validDatatypeLinks: [] - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 96 - _links: - current: - href: /companies/3691c49e-0db4-4172-b3ab-e4084c365013/data/accounts?page=1&pageSize=2 - self: - href: /companies/3691c49e-0db4-4172-b3ab-e4084c365013/data/accounts - next: - href: /companies/3691c49e-0db4-4172-b3ab-e4084c365013/data/accounts?page=2&pageSize=2 - KashFlow: - value: - results: - - id: '27840056' - nominalCode: '70700' - name: 16th Account - fullyQualifiedCategory: Asset.BankAccount - fullyQualifiedName: Asset.BankAccount.16th Account - currency: GBP - currentBalance: 0 - type: Asset - status: Active - isBankAccount: true - modifiedDate: '2022-09-30T10:29:16Z' - validDatatypeLinks: [] - - id: '27840049' - nominalCode: '70600' - name: 1a1a - fullyQualifiedCategory: Asset.BankAccount - fullyQualifiedName: Asset.BankAccount.1a1a - currency: GBP - currentBalance: 0 - type: Asset - status: Active - isBankAccount: true - modifiedDate: '2022-09-30T10:29:16Z' - validDatatypeLinks: [] - pageNumber: 1 - pageSize: 2 - totalResults: 157 - _links: - current: - href: /companies/3a707a99-89da-4b16-a5d6-595333a16352/data/accounts?page=1&pageSize=2 - self: - href: /companies/3a707a99-89da-4b16-a5d6-595333a16352/data/accounts - next: - href: /companies/3a707a99-89da-4b16-a5d6-595333a16352/data/accounts?page=2&pageSize=2 - Oracle NetSuite: - value: - results: - - id: '111' - name: Accounts Payable - fullyQualifiedCategory: AcctPay.AcctPay - fullyQualifiedName: AcctPay.AcctPay.Accounts Payable - currentBalance: -635.55 - type: Liability - status: Active - isBankAccount: false - modifiedDate: '2023-01-30T14:48:33Z' - sourceModifiedDate: '2021-08-11T12:51:21' - validDatatypeLinks: [] - - id: '119' - name: Accounts Receivable - fullyQualifiedCategory: AcctRec.AcctRec - fullyQualifiedName: AcctRec.AcctRec.Accounts Receivable - currentBalance: -565 - type: Asset - status: Active - isBankAccount: false - modifiedDate: '2023-01-30T14:48:33Z' - sourceModifiedDate: '2021-09-08T15:23:31' - validDatatypeLinks: [] - pageNumber: 1 - pageSize: 2 - totalResults: 44 - _links: - current: - href: /companies/d5074b08-6a34-4b06-a742-236edf5dc4f1/data/accounts?page=1&pageSize=2 - self: - href: /companies/d5074b08-6a34-4b06-a742-236edf5dc4f1/data/accounts - next: - href: /companies/d5074b08-6a34-4b06-a742-236edf5dc4f1/data/accounts?page=2&pageSize=2 - QuickBooks Desktop: - value: - results: - - id: 40000-933270541 - nominalCode: '11000' - name: Accounts Receivable - description: Accounts Receivable - fullyQualifiedCategory: Asset.CurrentAsset.AccountsReceivable - fullyQualifiedName: Asset.CurrentAsset.AccountsReceivable.Accounts Receivable - currency: GBP - currentBalance: 93007.93 - type: Asset - status: Active - isBankAccount: false - modifiedDate: '2023-04-26T09:06:23Z' - sourceModifiedDate: '2023-12-16T05:06:45' - validDatatypeLinks: [] - metadata: - isDeleted: false - - id: 20000-933270541 - nominalCode: '10100' - name: Checking - description: Cash - fullyQualifiedCategory: Asset.CurrentAsset.Bank - fullyQualifiedName: Asset.CurrentAsset.Bank.Checking - currency: GBP - currentBalance: 46954.1 - type: Asset - status: Active - isBankAccount: true - modifiedDate: '2023-04-26T09:06:23Z' - sourceModifiedDate: '2023-12-16T05:06:45' - validDatatypeLinks: - - property: Id - links: - - BillLineItem.AccountRef.Id - - BillPayment.AccountRef.Id - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 116 - _links: - current: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/data/accounts?page=1&pageSize=2 - self: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/data/accounts - next: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/data/accounts?page=2&pageSize=2 - QuickBooks Online: - value: - results: - - id: '62' - nominalCode: '246' - name: Debtors - fullyQualifiedCategory: Asset.Accounts Receivable.AccountsReceivable - fullyQualifiedName: Asset.Accounts Receivable.AccountsReceivable.Debtors - currency: GBP - currentBalance: 41289.37 - type: Asset - status: Active - isBankAccount: false - modifiedDate: '2023-01-18T11:02:34Z' - sourceModifiedDate: '2022-12-08T15:42:59Z' - validDatatypeLinks: [] - - id: '92' - nominalCode: '247' - name: Debtors - AED - fullyQualifiedCategory: Asset.Accounts Receivable.AccountsReceivable - fullyQualifiedName: Asset.Accounts Receivable.AccountsReceivable.Debtors - AED - currency: AED - currentBalance: -1533.44 - type: Asset - status: Active - isBankAccount: false - modifiedDate: '2023-01-18T11:02:34Z' - sourceModifiedDate: '2021-02-19T14:04:45Z' - validDatatypeLinks: [] - pageNumber: 1 - pageSize: 2 - totalResults: 234 - _links: - current: - href: /companies/10818b5e-6e6a-4ed4-a1c5-3e3efe626e87/data/accounts?page=1&pageSize=2 - self: - href: /companies/10818b5e-6e6a-4ed4-a1c5-3e3efe626e87/data/accounts - next: - href: /companies/10818b5e-6e6a-4ed4-a1c5-3e3efe626e87/data/accounts?page=2&pageSize=2 - QuickBooks Online Sandbox: - value: - results: - - id: '70' - name: Debtors - fullyQualifiedCategory: Asset.Accounts Receivable.AccountsReceivable - fullyQualifiedName: Asset.Accounts Receivable.AccountsReceivable.Debtors - currency: GBP - currentBalance: 3041173.77 - type: Asset - status: Active - isBankAccount: false - modifiedDate: '2023-04-26T09:35:55Z' - sourceModifiedDate: '2023-04-26T01:18:15Z' - validDatatypeLinks: [] - metadata: - isDeleted: false - - id: '80' - name: Debtors - USD - fullyQualifiedCategory: Asset.Accounts Receivable.AccountsReceivable - fullyQualifiedName: Asset.Accounts Receivable.AccountsReceivable.Debtors - USD - currency: USD - currentBalance: 54822.37 - type: Asset - status: Active - isBankAccount: false - modifiedDate: '2023-04-26T09:35:55Z' - sourceModifiedDate: '2023-04-12T15:10:38Z' - validDatatypeLinks: [] - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 186 - _links: - current: - href: /companies/5a7f3597-36e1-4216-86fe-289ad36088a6/data/accounts?page=1&pageSize=2 - self: - href: /companies/5a7f3597-36e1-4216-86fe-289ad36088a6/data/accounts - next: - href: /companies/5a7f3597-36e1-4216-86fe-289ad36088a6/data/accounts?page=2&pageSize=2 - Sage 200cloud: - value: - results: - - id: '2864' - nominalCode: '1200' - name: Bank Account - description: Bank Account - fullyQualifiedCategory: Asset.Bank Account - fullyQualifiedName: Asset.Bank Account.Bank Account - type: Asset - status: Archived - isBankAccount: false - modifiedDate: '2022-10-14T09:35:52Z' - validDatatypeLinks: [] - metadata: - isDeleted: true - - id: '2368' - nominalCode: '1200' - name: Bank Current Account - description: Bank Current Account - fullyQualifiedCategory: Asset.Bank Account - fullyQualifiedName: Asset.Bank Account.Bank Current Account - type: Asset - status: Active - isBankAccount: true - modifiedDate: '2022-10-14T09:35:52Z' - sourceModifiedDate: '2020-09-11T13:53:12Z' - validDatatypeLinks: [] - pageNumber: 1 - pageSize: 2 - totalResults: 344 - _links: - current: - href: /companies/93c21e2d-049c-4d24-b41b-57e61c30b69e/data/accounts?page=1&pageSize=2 - self: - href: /companies/93c21e2d-049c-4d24-b41b-57e61c30b69e/data/accounts - next: - href: /companies/93c21e2d-049c-4d24-b41b-57e61c30b69e/data/accounts?page=2&pageSize=2 - Sage 50 (UK): - value: - results: - - id: '1100' - nominalCode: '1100' - name: Debtors Control Account - fullyQualifiedCategory: Asset.CurrentAssets.Debtors - fullyQualifiedName: Asset.CurrentAssets.Debtors.Debtors Control Account - currency: GBP - currentBalance: 90640.61 - type: Asset - status: Active - isBankAccount: false - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - validDatatypeLinks: [] - metadata: - isDeleted: false - - id: '1102' - nominalCode: '1102' - name: Other Debtors - fullyQualifiedCategory: Asset.CurrentAssets.Debtors - fullyQualifiedName: Asset.CurrentAssets.Debtors.Other Debtors - currency: GBP - currentBalance: 0 - type: Asset - status: Active - isBankAccount: false - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - validDatatypeLinks: [] - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 155 - _links: - current: - href: /companies/cf5f2a47-2990-4221-bae6-0c19c86ac304/data/accounts?page=1&pageSize=2 - self: - href: /companies/cf5f2a47-2990-4221-bae6-0c19c86ac304/data/accounts - next: - href: /companies/cf5f2a47-2990-4221-bae6-0c19c86ac304/data/accounts?page=2&pageSize=2 - Sage Business Cloud Accounting: - value: - results: - - id: e5889b459f544926ac5b8e6756df2ad4 - nominalCode: '1560' - name: Abdi Internet Bank - fullyQualifiedCategory: Asset.Bank - fullyQualifiedName: Asset.Bank.Abdi Internet Bank - currency: GBP - currentBalance: 49.61 - type: Asset - status: Active - isBankAccount: true - modifiedDate: '2022-10-24T14:52:53Z' - sourceModifiedDate: '2020-01-27T10:53:26Z' - validDatatypeLinks: - - property: Id - links: - - Payment.AccountRef.Id - - BillPayment.AccountRef.Id - - id: b17083bc9b2748b4ab321b024e260eda - nominalCode: '147852' - name: Abdi Live Test - fullyQualifiedCategory: Asset.Bank - fullyQualifiedName: Asset.Bank.Abdi Live Test - currency: GBP - currentBalance: 225830.75 - type: Asset - status: Active - isBankAccount: true - modifiedDate: '2022-10-24T14:52:53Z' - sourceModifiedDate: '2020-01-28T14:00:20Z' - validDatatypeLinks: - - property: Id - links: - - Payment.AccountRef.Id - - BillPayment.AccountRef.Id - pageNumber: 1 - pageSize: 2 - totalResults: 283 - _links: - current: - href: /companies/390083e2-351b-407c-a3be-55081c36c182/data/accounts?page=1&pageSize=2 - self: - href: /companies/390083e2-351b-407c-a3be-55081c36c182/data/accounts - next: - href: /companies/390083e2-351b-407c-a3be-55081c36c182/data/accounts?page=2&pageSize=2 - Sage Intacct: - value: - results: - - id: '2' - nominalCode: '12100' - name: Accounts Receivable - fullyQualifiedCategory: 'Assets.Current Assets.Account Receivable, Net of Allowance.Accounts Receivable.Accounts Receivable' - fullyQualifiedName: 'Assets.Current Assets.Account Receivable, Net of Allowance.Accounts Receivable.Accounts Receivable.Accounts Receivable' - currency: GBP - currentBalance: 0 - type: Asset - status: Active - isBankAccount: false - modifiedDate: '2023-04-04T16:31:51Z' - sourceModifiedDate: '2020-01-29T01:42:43' - validDatatypeLinks: [] - metadata: - isDeleted: false - - id: '155' - nominalCode: '12710' - name: AR - Retainage - fullyQualifiedCategory: 'Assets.Current Assets.Account Receivable, Net of Allowance.Accounts Receivable.Accounts Receivable' - fullyQualifiedName: 'Assets.Current Assets.Account Receivable, Net of Allowance.Accounts Receivable.Accounts Receivable.AR - Retainage' - currency: GBP - currentBalance: 0 - type: Asset - status: Active - isBankAccount: false - modifiedDate: '2023-04-04T16:31:51Z' - sourceModifiedDate: '2020-10-15T15:33:15' - validDatatypeLinks: [] - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 181 - _links: - current: - href: /companies/df02b289-cb16-4964-ac4d-9fd60b04538e/data/accounts?page=1&pageSize=2 - self: - href: /companies/df02b289-cb16-4964-ac4d-9fd60b04538e/data/accounts - next: - href: /companies/df02b289-cb16-4964-ac4d-9fd60b04538e/data/accounts?page=2&pageSize=2 - Wave: - value: - results: - - id: QWNjb3VudDo5MjIzNDE3NjkzMzk3NjA2MzM7QnVzaW5lc3M6ZTI0OGQyZDctMWE5Ni00YTk4LWFkOTEtMDdlMGYyMmNhNmE2 - name: Abdi Bank - description: Test Balance Sheet - fullyQualifiedCategory: Asset.CashAndBank - fullyQualifiedName: Asset.CashAndBank.Abdi Bank - currency: GBP - type: Asset - status: Active - isBankAccount: true - modifiedDate: '2022-11-16T18:15:17Z' - validDatatypeLinks: [] - - id: QWNjb3VudDo3OTE3NTA1OTcwOTQxNzQ3MTU7QnVzaW5lc3M6ZTI0OGQyZDctMWE5Ni00YTk4LWFkOTEtMDdlMGYyMmNhNmE2 - name: Cash on Hand - description: Cash you haven�t deposited in the bank. Add your bank and credit card accounts to accurately categorize transactions that aren't cash. - fullyQualifiedCategory: Asset.CashAndBank - fullyQualifiedName: Asset.CashAndBank.Cash on Hand - currency: GBP - type: Asset - status: Active - isBankAccount: true - modifiedDate: '2022-11-16T18:15:17Z' - validDatatypeLinks: [] - pageNumber: 1 - pageSize: 2 - totalResults: 85 - _links: - current: - href: /companies/0b22b59d-b4e5-4c35-b03f-88bbbcb41256/data/accounts?page=1&pageSize=2 - self: - href: /companies/0b22b59d-b4e5-4c35-b03f-88bbbcb41256/data/accounts - next: - href: /companies/0b22b59d-b4e5-4c35-b03f-88bbbcb41256/data/accounts?page=2&pageSize=2 - Xero: - value: - results: - - id: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - nominalCode: A090 - name: Business Bank Account - fullyQualifiedCategory: Asset.Bank - fullyQualifiedName: Asset.Bank.Business Bank Account - currency: GBP - currentBalance: 924.25 - type: Asset - status: Active - isBankAccount: true - modifiedDate: '2023-03-15T20:35:08Z' - sourceModifiedDate: '2023-02-17T11:10:49' - validDatatypeLinks: - - property: Id - links: - - Payment.AccountRef.Id - - BillPayment.AccountRef.Id - - DirectIncome.LineItems.AccountRef.Id - - DirectCost.LineItems.AccountRef.Id - metadata: - isDeleted: false - - id: a8d6fb1a-8c5d-4683-90ce-bf9d28fc62ba - nominalCode: A091 - name: Business Savings Account - fullyQualifiedCategory: Asset.Bank - fullyQualifiedName: Asset.Bank.Business Savings Account - currency: GBP - currentBalance: 0 - type: Asset - status: Active - isBankAccount: true - modifiedDate: '2023-03-15T20:35:08Z' - sourceModifiedDate: '2023-02-17T11:10:49' - validDatatypeLinks: - - property: Id - links: - - Payment.AccountRef.Id - - BillPayment.AccountRef.Id - - DirectIncome.LineItems.AccountRef.Id - - DirectCost.LineItems.AccountRef.Id - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 90 - _links: - current: - href: /companies/5ced9667-a310-443a-a711-958d36377141/data/accounts?page=1&pageSize=2 - self: - href: /companies/5ced9667-a310-443a-a711-958d36377141/data/accounts - next: - href: /companies/5ced9667-a310-443a-a711-958d36377141/data/accounts?page=2&pageSize=2 - Zoho Books: - value: - results: - - id: '104957000000000352' - nominalCode: '' - name: Accounts Receivable - description: The money that customers owe you becomes the accounts receivable. A good example of this is a payment expected from an invoice sent to your customer. - fullyQualifiedCategory: Asset.accounts_receivable - fullyQualifiedName: Asset.accounts_receivable.Accounts Receivable - currency: GBP - currentBalance: -959.64 - type: Asset - status: Active - isBankAccount: false - modifiedDate: '2022-10-03T08:40:43Z' - sourceModifiedDate: '2020-02-05T14:58:44' - validDatatypeLinks: [] - - id: '104957000000060010' - nominalCode: '' - name: Abdi Test - description: '' - fullyQualifiedCategory: Asset.bank - fullyQualifiedName: Asset.bank.Abdi Test - currency: GBP - currentBalance: 69858.44 - type: Asset - status: Active - isBankAccount: true - modifiedDate: '2022-10-03T08:40:43Z' - sourceModifiedDate: '2020-02-17T12:19:47' - validDatatypeLinks: [] - pageNumber: 1 - pageSize: 2 - totalResults: 68 - _links: - current: - href: /companies/d0b68840-db50-4bc3-b88c-96e225333fea/data/accounts?page=1&pageSize=2 - self: - href: /companies/d0b68840-db50-4bc3-b88c-96e225333fea/data/accounts - next: - href: /companies/d0b68840-db50-4bc3-b88c-96e225333fea/data/accounts?page=2&pageSize=2 - '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' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - '/companies/{companyId}/data/accounts/{accountId}': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/accountingAccountId' - get: - tags: - - Financial statements - summary: Get account - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/AccountingAccount' - examples: - Clear Books: - value: - id: 1b6266d1-1e44-46c5-8eb5-a8f98e03124e - nominalCode: '610' - name: Accounts Receivable - description: Invoices the business has issued but has not yet collected payment on. - fullyQualifiedCategory: Asset.Current - fullyQualifiedName: Asset.Current.Accounts Receivable - currency: GBP - currentBalance: 0 - type: Asset - status: Active - isBankAccount: false - modifiedDate: '2023-04-26T12:38:15Z' - sourceModifiedDate: '2022-12-10T16:39:00' - validDatatypeLinks: [] - Dynamics 365 Business Central: - value: - id: 8eaed16d-c69f-ec11-80f1-0022481b4546 - nominalCode: 45422026-68CA-4EF2-9 - name: '' - fullyQualifiedCategory: ' .' - fullyQualifiedName: .. - currency: GBP - currentBalance: 0 - type: Unknown - status: Active - isBankAccount: false - modifiedDate: '2023-03-27T14:21:18Z' - sourceModifiedDate: '2022-03-09T16:31:54Z' - validDatatypeLinks: - - property: Id - links: - - DirectCost.LineItems.AccountRef.Id - Exact (Netherlands): - value: - id: ef2fde36-4416-4bc5-b239-315b2929348c - nominalCode: '1300' - name: Debiteuren - description: Debiteuren - fullyQualifiedCategory: Asset.Assets.AccountsReceivable - fullyQualifiedName: Asset.Assets.AccountsReceivable.Debiteuren.PaymentsEnabled - currency: EUR - currentBalance: 864435.44 - type: Asset - status: Active - isBankAccount: false - modifiedDate: '2022-10-26T13:36:17Z' - sourceModifiedDate: '2020-01-08T09:42:54Z' - validDatatypeLinks: - - property: Id - links: - - Transfer.To.AccountRef.Id - - Transfer.From.AccountRef.Id - - Payment.AccountRef.Id - - BillPayment.AccountRef.Id - Exact (UK): - value: - id: ca2b96b7-cc45-4e35-9fa3-82a2ba1eec40 - nominalCode: THING - name: Some thing account - description: Some thing account - fullyQualifiedCategory: Asset.Assets.AccountsReceivable - fullyQualifiedName: Asset.Assets.AccountsReceivable.Some thing account.PaymentsEnabled - currency: GBP - currentBalance: 0 - type: Asset - status: Active - isBankAccount: false - modifiedDate: '2022-10-26T13:35:15Z' - sourceModifiedDate: '2017-08-01T17:31:12Z' - validDatatypeLinks: - - property: Id - links: - - Transfer.To.AccountRef.Id - - Transfer.From.AccountRef.Id - - Payment.AccountRef.Id - - BillPayment.AccountRef.Id - FreeAgent: - value: - id: '601' - nominalCode: '601' - name: Capital Asset Brought Forward - fullyQualifiedCategory: Asset.Capital - fullyQualifiedName: Asset.Capital.Capital Asset Brought Forward - currency: GBP - type: Asset - status: Active - isBankAccount: false - modifiedDate: '2023-04-25T14:19:12Z' - validDatatypeLinks: [] - FreshBooks: - value: - id: '67357' - nominalCode: '1200' - name: Accounts Receivable - fullyQualifiedCategory: Asset - fullyQualifiedName: Asset.Accounts Receivable - currency: GBP - currentBalance: 51445.53 - type: Asset - status: Active - isBankAccount: false - modifiedDate: '2023-03-24T16:07:24Z' - validDatatypeLinks: [] - KashFlow: - value: - id: '27840056' - nominalCode: '70700' - name: 16th Account - fullyQualifiedCategory: Asset.BankAccount - fullyQualifiedName: Asset.BankAccount.16th Account - currency: GBP - currentBalance: 0 - type: Asset - status: Active - isBankAccount: true - modifiedDate: '2022-09-30T10:29:16Z' - validDatatypeLinks: [] - Oracle NetSuite: - value: - id: '111' - name: Accounts Payable - fullyQualifiedCategory: AcctPay.AcctPay - fullyQualifiedName: AcctPay.AcctPay.Accounts Payable - currentBalance: -635.55 - type: Liability - status: Active - isBankAccount: false - modifiedDate: '2023-01-30T14:48:33Z' - sourceModifiedDate: '2021-08-11T12:51:21' - validDatatypeLinks: [] - QuickBooks Desktop: - value: - id: 40000-933270541 - nominalCode: '11000' - name: Accounts Receivable - description: Accounts Receivable - fullyQualifiedCategory: Asset.CurrentAsset.AccountsReceivable - fullyQualifiedName: Asset.CurrentAsset.AccountsReceivable.Accounts Receivable - currency: GBP - currentBalance: 93007.93 - type: Asset - status: Active - isBankAccount: false - modifiedDate: '2023-04-26T09:06:23Z' - sourceModifiedDate: '2023-12-16T05:06:45' - validDatatypeLinks: [] - QuickBooks Online: - value: - id: '62' - nominalCode: '246' - name: Debtors - fullyQualifiedCategory: Asset.Accounts Receivable.AccountsReceivable - fullyQualifiedName: Asset.Accounts Receivable.AccountsReceivable.Debtors - currency: GBP - currentBalance: 41289.37 - type: Asset - status: Active - isBankAccount: false - modifiedDate: '2023-01-18T11:02:34Z' - sourceModifiedDate: '2022-12-08T15:42:59Z' - validDatatypeLinks: [] - QuickBooks Online Sandbox: - value: - id: '70' - name: Debtors - fullyQualifiedCategory: Asset.Accounts Receivable.AccountsReceivable - fullyQualifiedName: Asset.Accounts Receivable.AccountsReceivable.Debtors - currency: GBP - currentBalance: 3041173.77 - type: Asset - status: Active - isBankAccount: false - modifiedDate: '2023-04-26T09:35:55Z' - sourceModifiedDate: '2023-04-26T01:18:15Z' - validDatatypeLinks: [] - Sage 200cloud: - value: - id: '2864' - nominalCode: '1200' - name: Bank Account - description: Bank Account - fullyQualifiedCategory: Asset.Bank Account - fullyQualifiedName: Asset.Bank Account.Bank Account - type: Asset - status: Archived - isBankAccount: false - modifiedDate: '2022-10-14T09:35:52Z' - validDatatypeLinks: [] - Sage 50 (UK): - value: - id: '1100' - nominalCode: '1100' - name: Debtors Control Account - fullyQualifiedCategory: Asset.CurrentAssets.Debtors - fullyQualifiedName: Asset.CurrentAssets.Debtors.Debtors Control Account - currency: GBP - currentBalance: 90640.61 - type: Asset - status: Active - isBankAccount: false - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - validDatatypeLinks: [] - Sage Business Cloud Accounting: - value: - id: e5889b459f544926ac5b8e6756df2ad4 - nominalCode: '1560' - name: Abdi Internet Bank - fullyQualifiedCategory: Asset.Bank - fullyQualifiedName: Asset.Bank.Abdi Internet Bank - currency: GBP - currentBalance: 49.61 - type: Asset - status: Active - isBankAccount: true - modifiedDate: '2022-10-24T14:52:53Z' - sourceModifiedDate: '2020-01-27T10:53:26Z' - validDatatypeLinks: - - property: Id - links: - - Payment.AccountRef.Id - - BillPayment.AccountRef.Id - Sage Intacct: - value: - id: '2' - nominalCode: '12100' - name: Accounts Receivable - fullyQualifiedCategory: 'Assets.Current Assets.Account Receivable, Net of Allowance.Accounts Receivable.Accounts Receivable' - fullyQualifiedName: 'Assets.Current Assets.Account Receivable, Net of Allowance.Accounts Receivable.Accounts Receivable.Accounts Receivable' - currency: GBP - currentBalance: 0 - type: Asset - status: Active - isBankAccount: false - modifiedDate: '2023-04-04T16:31:51Z' - sourceModifiedDate: '2020-01-29T01:42:43' - validDatatypeLinks: [] - Wave: - value: - id: QWNjb3VudDo5MjIzNDE3NjkzMzk3NjA2MzM7QnVzaW5lc3M6ZTI0OGQyZDctMWE5Ni00YTk4LWFkOTEtMDdlMGYyMmNhNmE2 - name: Abdi Bank - description: Test Balance Sheet - fullyQualifiedCategory: Asset.CashAndBank - fullyQualifiedName: Asset.CashAndBank.Abdi Bank - currency: GBP - type: Asset - status: Active - isBankAccount: true - modifiedDate: '2022-11-16T18:15:17Z' - validDatatypeLinks: [] - Xero: - value: - id: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - nominalCode: A090 - name: Business Bank Account - fullyQualifiedCategory: Asset.Bank - fullyQualifiedName: Asset.Bank.Business Bank Account - currency: GBP - currentBalance: 924.25 - type: Asset - status: Active - isBankAccount: true - modifiedDate: '2023-03-15T20:35:08Z' - sourceModifiedDate: '2023-02-17T11:10:49' - validDatatypeLinks: - - property: Id - links: - - Payment.AccountRef.Id - - BillPayment.AccountRef.Id - - DirectIncome.LineItems.AccountRef.Id - - DirectCost.LineItems.AccountRef.Id - Zoho Books: - value: - id: '104957000000000352' - nominalCode: '' - name: Accounts Receivable - description: The money that customers owe you becomes the accounts receivable. A good example of this is a payment expected from an invoice sent to your customer. - fullyQualifiedCategory: Asset.accounts_receivable - fullyQualifiedName: Asset.accounts_receivable.Accounts Receivable - currency: GBP - currentBalance: -959.64 - type: Asset - status: Active - isBankAccount: false - modifiedDate: '2022-10-03T08:40:43Z' - sourceModifiedDate: '2020-02-05T14:58:44' - validDatatypeLinks: [] - '401': - $ref: '#/components/responses/Unauthorized' - '402': - $ref: '#/components/responses/Payment-Required' - '403': - $ref: '#/components/responses/Forbidden' - '404': - $ref: '#/components/responses/Not-Found' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - description: | - The *Get account* endpoint returns a single account for a given accountId. - - [Accounts](https://docs.codat.io/lending-api#/schemas/Account) are the categories a business uses to record accounting transactions. - - Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data). - operationId: get-accounting-account - x-speakeasy-group: financial-statements.accounts - '/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 - paidOnDate: '2024-12-12T00:00:00' - totalAmount: 0 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: 850 - modifiedDate: '2023-04-26T09:12:30Z' - sourceModifiedDate: '2023-12-16T05:05:03' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 3 - _links: - current: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/data/billCreditNotes?page=1&pageSize=2 - self: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/data/billCreditNotes - next: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/data/billCreditNotes?page=2&pageSize=2 - QuickBooks Online: - value: - results: - - id: '19' - billCreditNoteNumber: '19' - supplierRef: - id: '4' - supplierName: BILLy elliot - withholdingTax: [] - totalAmount: 5 - totalDiscount: 0 - subTotal: 5 - totalTaxAmount: 0 - discountPercentage: 0 - remainingCredit: 0 - status: Paid - issueDate: '2019-05-13T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: '' - unitAmount: 5 - quantity: 1 - subTotal: 5 - taxAmount: 0 - totalAmount: 5 - accountRef: - id: '16' - name: Advertising - taxRateRef: - id: NON - name: NON - effectiveTaxRate: 0 - trackingCategoryRefs: [] - tracking: - categoryRefs: [] - isBilledTo: Unknown - isRebilledTo: NotApplicable - paymentAllocations: - - payment: - id: '20' - currency: GBP - currencyRate: 1 - paidOnDate: '2019-05-13T00:00:00' - totalAmount: 0 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: 5 - modifiedDate: '2023-01-18T11:02:37Z' - sourceModifiedDate: '2019-05-13T13:14:06Z' - - id: '677' - billCreditNoteNumber: '677' - supplierRef: - id: '4' - supplierName: BILLy elliot - withholdingTax: [] - totalAmount: 5 - totalDiscount: 0 - subTotal: 5 - totalTaxAmount: 0 - discountPercentage: 0 - remainingCredit: 0 - status: Paid - issueDate: '2020-03-20T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: '' - unitAmount: 5 - quantity: 1 - subTotal: 5 - taxAmount: 0 - totalAmount: 5 - accountRef: - id: '16' - name: Advertising - taxRateRef: - id: NON - name: NON - effectiveTaxRate: 0 - trackingCategoryRefs: [] - tracking: - categoryRefs: [] - isBilledTo: Unknown - isRebilledTo: NotApplicable - paymentAllocations: - - payment: - id: '678' - note: payment note test - currency: GBP - currencyRate: 1 - paidOnDate: '2020-03-23T00:00:00' - totalAmount: 0 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: 5 - modifiedDate: '2023-01-18T11:02:37Z' - sourceModifiedDate: '2020-03-23T10:44:06Z' - note: Codat Note field - pageNumber: 1 - pageSize: 2 - totalResults: 11 - _links: - current: - href: /companies/10818b5e-6e6a-4ed4-a1c5-3e3efe626e87/data/billCreditNotes?page=1&pageSize=2 - self: - href: /companies/10818b5e-6e6a-4ed4-a1c5-3e3efe626e87/data/billCreditNotes - next: - href: /companies/10818b5e-6e6a-4ed4-a1c5-3e3efe626e87/data/billCreditNotes?page=2&pageSize=2 - QuickBooks Online Sandbox: - value: - results: - - id: '424' - billCreditNoteNumber: '424' - supplierRef: - id: '24' - supplierName: Brijesh Jain - withholdingTax: [] - totalAmount: 69 - totalDiscount: 0 - subTotal: 69 - totalTaxAmount: 0 - discountPercentage: 0 - remainingCredit: 69 - status: Submitted - issueDate: '2019-06-20T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Refund of iZettle Fees - unitAmount: 69 - quantity: 1 - subTotal: 69 - taxAmount: 0 - totalAmount: 69 - accountRef: - id: '30' - name: Janitorial Expense - taxRateRef: - id: 20_Bills - name: 5.0% RC CIS Bills - effectiveTaxRate: 0 - trackingCategoryRefs: [] - tracking: - categoryRefs: [] - isBilledTo: Unknown - isRebilledTo: NotApplicable - paymentAllocations: [] - modifiedDate: '2023-04-26T09:35:58Z' - sourceModifiedDate: '2019-06-20T15:48:50Z' - metadata: - isDeleted: false - - id: '455' - billCreditNoteNumber: '455' - supplierRef: - id: '53' - supplierName: Bank of AnyCity - withholdingTax: [] - totalAmount: 10 - totalDiscount: 0 - subTotal: 10 - totalTaxAmount: 0 - discountPercentage: 0 - remainingCredit: 0 - status: Paid - issueDate: '2019-06-26T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: a - unitAmount: 10 - quantity: 1 - subTotal: 10 - taxAmount: 0 - totalAmount: 10 - accountRef: - id: '11' - name: Ask My Accountant - taxRateRef: - id: 20_Bills - name: 5.0% RC CIS Bills - effectiveTaxRate: 0 - trackingCategoryRefs: [] - tracking: - categoryRefs: [] - isBilledTo: Unknown - isRebilledTo: NotApplicable - paymentAllocations: - - payment: - id: '530' - reference: '4' - accountRef: - id: '100' - name: Savings2 - currency: GBP - currencyRate: 1 - paidOnDate: '2019-07-16T00:00:00' - totalAmount: 170 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: 10 - modifiedDate: '2023-04-26T09:35:58Z' - sourceModifiedDate: '2019-07-16T09:49:14Z' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 26 - _links: - current: - href: /companies/5a7f3597-36e1-4216-86fe-289ad36088a6/data/billCreditNotes?page=1&pageSize=2 - self: - href: /companies/5a7f3597-36e1-4216-86fe-289ad36088a6/data/billCreditNotes - next: - href: /companies/5a7f3597-36e1-4216-86fe-289ad36088a6/data/billCreditNotes?page=2&pageSize=2 - Sage 200cloud: - value: - results: - - id: '45391' - billCreditNoteNumber: Return 1 - supplierRef: - id: CON001 - supplierName: Concept Stationery Supplies - withholdingTax: [] - totalAmount: 120 - totalDiscount: 2.5 - subTotal: 100 - totalTaxAmount: 20 - discountPercentage: 2.5 - remainingCredit: 109.5 - status: Submitted - issueDate: '2020-07-22T00:00:00Z' - allocatedOnDate: '2020-01-20T00:00:00Z' - currency: GBP - currencyRate: 1 - lineItems: - - description: Tax Summary - Tax Rate 1 - unitAmount: 0 - quantity: 0 - discountAmount: 0.5 - subTotal: 0 - taxAmount: 20 - totalAmount: 20 - taxRateRef: - id: '1729' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: [] - - description: Goods Summary - unitAmount: 0 - quantity: 0 - discountAmount: 2.5 - subTotal: 100 - taxAmount: 0 - totalAmount: 100 - trackingCategoryRefs: [] - paymentAllocations: - - payment: - id: '45391' - note: ret1 - reference: Return 1 - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-20T00:00:00' - totalAmount: 0 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -10.5 - modifiedDate: '2022-10-14T09:35:52Z' - sourceModifiedDate: '2020-02-28T14:23:46Z' - note: ret1 - - id: '45421' - billCreditNoteNumber: Return 2 - supplierRef: - id: QUA001 - supplierName: Quality Motors - withholdingTax: [] - totalAmount: 60 - totalDiscount: 1.25 - subTotal: 50 - totalTaxAmount: 10 - discountPercentage: 2.5 - remainingCredit: 60 - status: Submitted - issueDate: '2020-07-22T00:00:00Z' - allocatedOnDate: '2020-02-03T00:00:00Z' - currency: GBP - currencyRate: 1 - lineItems: - - description: Tax Summary - Tax Rate 1 - unitAmount: 0 - quantity: 0 - discountAmount: 0.25 - subTotal: 0 - taxAmount: 10 - totalAmount: 10 - taxRateRef: - id: '1729' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: [] - - description: Goods Summary - unitAmount: 0 - quantity: 0 - discountAmount: 1.25 - subTotal: 50 - taxAmount: 0 - totalAmount: 50 - trackingCategoryRefs: [] - paymentAllocations: [] - modifiedDate: '2022-10-14T09:35:52Z' - sourceModifiedDate: '2020-02-28T14:23:46Z' - note: ret2 - pageNumber: 1 - pageSize: 2 - totalResults: 21 - _links: - current: - href: /companies/93c21e2d-049c-4d24-b41b-57e61c30b69e/data/billCreditNotes?page=1&pageSize=2 - self: - href: /companies/93c21e2d-049c-4d24-b41b-57e61c30b69e/data/billCreditNotes - next: - href: /companies/93c21e2d-049c-4d24-b41b-57e61c30b69e/data/billCreditNotes?page=2&pageSize=2 - Sage 50 (UK): - value: - results: - - id: '20' - billCreditNoteNumber: O/BAL - supplierRef: - id: NEW001 - supplierName: Newtown Builders Ltd - withholdingTax: [] - totalAmount: 0.01 - totalDiscount: 0 - subTotal: 0.01 - totalTaxAmount: 0 - discountPercentage: 0 - remainingCredit: 0.01 - status: Submitted - issueDate: '2021-12-31T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Opening Balance - unitAmount: 0.01 - quantity: 1 - subTotal: 0.01 - taxAmount: 0 - totalAmount: 0.01 - accountRef: - id: '9998' - name: Suspense Account - taxRateRef: - id: '9' - name: Non-Vatable Tax Code - effectiveTaxRate: 0 - trackingCategoryRefs: - - id: department_0 - name: Default - tracking: - categoryRefs: - - id: department_0 - name: Default - isBilledTo: Unknown - isRebilledTo: Unknown - paymentAllocations: [] - modifiedDate: '2023-03-30T14:42:37Z' - sourceModifiedDate: '2022-11-25T09:43:54' - metadata: - isDeleted: false - note: Opening Balance - - id: '323' - billCreditNoteNumber: Return - supplierRef: - id: UNI001 - supplierName: Unique Systems - withholdingTax: [] - totalAmount: 103.4 - totalDiscount: 0 - subTotal: 88 - totalTaxAmount: 15.4 - discountPercentage: 0 - remainingCredit: 103.4 - status: Submitted - issueDate: '2022-02-28T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: 'Returned Goods, damaged' - unitAmount: 103.4 - quantity: 1 - subTotal: 88 - taxAmount: 15.4 - totalAmount: 103.4 - accountRef: - id: '5000' - name: Materials Purchased - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_0 - name: Default - tracking: - categoryRefs: - - id: department_0 - name: Default - isBilledTo: Unknown - isRebilledTo: Unknown - paymentAllocations: [] - modifiedDate: '2023-03-30T14:42:37Z' - sourceModifiedDate: '2022-11-25T09:43:54' - metadata: - isDeleted: false - note: 'Returned Goods, damaged' - pageNumber: 1 - pageSize: 2 - totalResults: 12 - _links: - current: - href: /companies/cf5f2a47-2990-4221-bae6-0c19c86ac304/data/billCreditNotes?page=1&pageSize=2 - self: - href: /companies/cf5f2a47-2990-4221-bae6-0c19c86ac304/data/billCreditNotes - next: - href: /companies/cf5f2a47-2990-4221-bae6-0c19c86ac304/data/billCreditNotes?page=2&pageSize=2 - Sage Business Cloud Accounting: - value: - results: - - id: b6c6fce9866849b0b44cac99ab7dc579 - billCreditNoteNumber: Supplier credit note - supplierRef: - id: ec716559789111e8aaa5027d54329956 - supplierName: Bagels Limited - withholdingTax: [] - totalAmount: 10 - totalDiscount: 0 - subTotal: 10 - totalTaxAmount: 0 - discountPercentage: 0 - remainingCredit: 0 - status: Paid - issueDate: '2018-11-23T00:00:00' - currency: USD - currencyRate: 0.776970973 - lineItems: - - description: Consulting services - unitAmount: 10 - quantity: 1 - discountAmount: 0 - subTotal: 10 - taxAmount: 0 - totalAmount: 10 - accountRef: - id: 9a995955267a11e797950a57719b2edb - name: Cost of sales - goods - discountPercentage: 0 - taxRateRef: - id: GB_ZERO - name: Zero Rated 0.00% - effectiveTaxRate: 0 - itemRef: - id: a87b922b33de11e797950a57719b2edb - name: Consulting services - trackingCategoryRefs: [] - paymentAllocations: - - payment: - id: bf6496aaf0294883b27c423ce8266113 - note: Supplier refund using credit/debit card - accountRef: - id: 9a25937b267a11e797950a57719b2edb - name: Current - currency: USD - currencyRate: 0.771449236 - paidOnDate: '2019-11-19T00:00:00' - totalAmount: -10 - allocation: - currency: USD - currencyRate: 1 - totalAmount: 10 - modifiedDate: '2022-10-24T14:53:32Z' - sourceModifiedDate: '2019-11-19T14:17:32Z' - - id: 23d866f6367d4f11956a36a71e47bc37 - supplierRef: - id: ca430e0d156011e8b45c025132dab352 - supplierName: Test Supplier - withholdingTax: [] - totalAmount: 60 - totalDiscount: 0 - subTotal: 50 - totalTaxAmount: 10 - discountPercentage: 0 - remainingCredit: 60 - status: Submitted - issueDate: '2019-01-29T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Consulting services - unitAmount: 10 - quantity: 5 - discountAmount: 0 - subTotal: 50 - taxAmount: 10 - totalAmount: 60 - accountRef: - id: 9a995955267a11e797950a57719b2edb - name: Cost of sales - goods - discountPercentage: 0 - taxRateRef: - id: GB_STANDARD - name: Standard 20.00% - effectiveTaxRate: 20 - itemRef: - id: a87b922b33de11e797950a57719b2edb - name: Consulting services - trackingCategoryRefs: [] - paymentAllocations: [] - modifiedDate: '2022-10-24T14:53:32Z' - sourceModifiedDate: '2020-07-16T15:00:36Z' - pageNumber: 1 - pageSize: 2 - totalResults: 747 - _links: - current: - href: /companies/390083e2-351b-407c-a3be-55081c36c182/data/billCreditNotes?page=1&pageSize=2 - self: - href: /companies/390083e2-351b-407c-a3be-55081c36c182/data/billCreditNotes - next: - href: /companies/390083e2-351b-407c-a3be-55081c36c182/data/billCreditNotes?page=2&pageSize=2 - Sage Intacct: - value: - results: - - id: '3359' - billCreditNoteNumber: APADJ0001 - supplierRef: - id: '3' - supplierName: ADP - withholdingTax: [] - totalAmount: 12 - totalDiscount: 0 - subTotal: 10 - totalTaxAmount: 2 - discountPercentage: 0 - remainingCredit: 12 - status: Submitted - issueDate: '2021-09-20T00:00:00' - currency: USD - currencyRate: 0.7283 - lineItems: - - description: No Description Provided - unitAmount: 5 - quantity: 1 - subTotal: 5 - taxAmount: 1 - totalAmount: 6 - accountRef: - id: '197' - name: Software and Licenses - taxRateRef: - id: '47' - name: EC Purchase Goods Standard Rate Input - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: LOCATION-8 - name: United Kingdom - - id: SUPPLIER-3 - name: ADP - tracking: - categoryRefs: - - id: LOCATION-8 - name: United Kingdom - - id: SUPPLIER-3 - name: ADP - isBilledTo: Unknown - isRebilledTo: Unknown - - description: No Description Provided - unitAmount: 5 - quantity: 1 - subTotal: 5 - taxAmount: 1 - totalAmount: 6 - accountRef: - id: '197' - name: Software and Licenses - taxRateRef: - id: '47' - name: EC Purchase Goods Standard Rate Input - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: LOCATION-8 - name: United Kingdom - - id: SUPPLIER-3 - name: ADP - tracking: - categoryRefs: - - id: LOCATION-8 - name: United Kingdom - - id: SUPPLIER-3 - name: ADP - isBilledTo: Unknown - isRebilledTo: Unknown - paymentAllocations: [] - modifiedDate: '2022-10-28T11:10:22Z' - sourceModifiedDate: '2021-09-20T13:50:16' - note: '' - - id: '3399' - billCreditNoteNumber: APADJ0002 - supplierRef: - id: '3' - supplierName: ADP - withholdingTax: [] - totalAmount: 360 - totalDiscount: 0 - subTotal: 300 - totalTaxAmount: 60 - discountPercentage: 0 - remainingCredit: 0 - status: Paid - issueDate: '2021-09-24T00:00:00' - allocatedOnDate: '2021-09-29T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: No Description Provided - unitAmount: 300 - quantity: 1 - subTotal: 300 - taxAmount: 60 - totalAmount: 360 - accountRef: - id: '197' - name: Software and Licenses - taxRateRef: - id: '81' - name: UK Purchase Goods Standard Rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: LOCATION-8 - name: United Kingdom - - id: SUPPLIER-3 - name: ADP - tracking: - categoryRefs: - - id: LOCATION-8 - name: United Kingdom - - id: SUPPLIER-3 - name: ADP - isBilledTo: Unknown - isRebilledTo: Unknown - paymentAllocations: [] - modifiedDate: '2022-10-28T11:10:22Z' - sourceModifiedDate: '2021-09-29T13:34:47' - note: '' - pageNumber: 1 - pageSize: 2 - totalResults: 82 - _links: - current: - href: /companies/71ca2b28-8e86-41e7-8c55-f681042b11a0/data/billCreditNotes?page=1&pageSize=2 - self: - href: /companies/71ca2b28-8e86-41e7-8c55-f681042b11a0/data/billCreditNotes - next: - href: /companies/71ca2b28-8e86-41e7-8c55-f681042b11a0/data/billCreditNotes?page=2&pageSize=2 - Xero: - value: - results: - - id: ee8bec08-2be8-40ba-acd0-d53d5df11235 - billCreditNoteNumber: RPT429-1 - supplierRef: - id: 3a0d40a2-2698-4cf5-b7b2-30133c632ab6 - supplierName: Swanston Security - withholdingTax: [] - totalAmount: 25.44 - totalDiscount: 0 - subTotal: 25.44 - totalTaxAmount: 4.24 - discountPercentage: 0 - remainingCredit: 0 - status: Paid - issueDate: '2022-12-12T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Refund as agreed due to window break when guard absent - unitAmount: 21.2 - quantity: 1 - discountAmount: 0 - subTotal: 21.2 - taxAmount: 4.24 - totalAmount: 25.44 - accountRef: - id: f96c9458-d724-47bf-8f74-a9d5726465ce - name: General Expenses - discountPercentage: 0 - taxRateRef: - id: INPUT2 - name: 20% (VAT on Expenses) - effectiveTaxRate: 20 - trackingCategoryRefs: [] - paymentAllocations: - - payment: - id: ee8bec08-2be8-40ba-acd0-d53d5df11235 - reference: '' - currency: GBP - currencyRate: 1 - paidOnDate: '2022-12-12T00:00:00' - totalAmount: 0 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2022-12-12T00:00:00' - totalAmount: 25.44 - modifiedDate: '2023-03-15T20:36:09Z' - sourceModifiedDate: '2011-04-07T07:26:30' - metadata: - isDeleted: false - - id: 7d1f4e11-e909-43b0-901c-2c824dff1e82 - billCreditNoteNumber: 720-2 - supplierRef: - id: cf8fa320-a527-496c-823e-22dd069d29e6 - supplierName: PC Complete - withholdingTax: [] - totalAmount: 270.36 - totalDiscount: 0 - subTotal: 270.36 - totalTaxAmount: 45.06 - discountPercentage: 0 - remainingCredit: 0 - status: Paid - issueDate: '2022-12-16T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Unable to supply DVD writer for laptop - unitAmount: 225.3 - quantity: 1 - discountAmount: 0 - subTotal: 225.3 - taxAmount: 45.06 - totalAmount: 270.36 - accountRef: - id: f96c9458-d724-47bf-8f74-a9d5726465ce - name: General Expenses - discountPercentage: 0 - taxRateRef: - id: INPUT2 - name: 20% (VAT on Expenses) - effectiveTaxRate: 20 - trackingCategoryRefs: [] - paymentAllocations: - - payment: - id: 7d1f4e11-e909-43b0-901c-2c824dff1e82 - reference: '' - currency: GBP - currencyRate: 1 - paidOnDate: '2022-12-16T00:00:00' - totalAmount: 0 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2022-12-16T00:00:00' - totalAmount: 270.36 - modifiedDate: '2023-03-15T20:36:09Z' - sourceModifiedDate: '2011-04-06T21:00:33' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 2 - _links: - current: - href: /companies/5ced9667-a310-443a-a711-958d36377141/data/billCreditNotes?page=1&pageSize=2 - self: - href: /companies/5ced9667-a310-443a-a711-958d36377141/data/billCreditNotes - '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' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - description: |- - The *List bill credit notes* endpoint returns a list of [bill credit notes](https://docs.codat.io/lending-api#/schemas/BillCreditNote) for a given company's connection. - - [Bill credit notes](https://docs.codat.io/lending-api#/schemas/BillCreditNote) are issued by a supplier for the purpose of recording credit. - - Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data). - - operationId: list-accounting-bill-credit-notes - x-speakeasy-group: accounts-payable.bill-credit-notes - '/companies/{companyId}/data/billCreditNotes/{billCreditNoteId}': - parameters: - - $ref: '#/components/parameters/companyId' - - name: billCreditNoteId - in: path - required: true - schema: - type: string - examples: - - 13d946f0-c5d5-42bc-b092-97ece17923ab - - 9wg4lep4ush5cxs79pl8sozmsndbaukll3ind4g7buqbm1h2 - - 7110701885 - - EILBDVJVNUAGVKRQ - description: Unique identifier for a bill credit note. - get: - tags: - - Accounts payable - summary: Get bill credit note - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/AccountingBillCreditNote' - examples: - Dynamics 365 Business Central: - value: - 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 - Exact (Netherlands): - value: - 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' - Exact (UK): - value: - 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' - FreeAgent: - value: - 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 - KashFlow: - value: - 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' - Oracle NetSuite: - value: - 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 - createdFromLineRef: - id: '1432' - dataType: bills - lineNumber: '1' - trackingCategoryRefs: - - id: department-1 - - id: location-1 - tracking: - categoryRefs: - - id: department-1 - - id: location-1 - isBilledTo: Unknown - isRebilledTo: Unknown - paymentAllocations: [] - createdFromRefs: - - id: '1432' - dataType: bills - modifiedDate: '2022-09-20T08:16:22Z' - sourceModifiedDate: '2021-11-02T19:58:58' - note: Codat1 - QuickBooks Desktop: - value: - 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 - QuickBooks Online: - value: - id: '19' - billCreditNoteNumber: '19' - supplierRef: - id: '4' - supplierName: BILLy elliot - withholdingTax: [] - totalAmount: 5 - totalDiscount: 0 - subTotal: 5 - totalTaxAmount: 0 - discountPercentage: 0 - remainingCredit: 0 - status: Paid - issueDate: '2019-05-13T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: '' - unitAmount: 5 - quantity: 1 - subTotal: 5 - taxAmount: 0 - totalAmount: 5 - accountRef: - id: '16' - name: Advertising - taxRateRef: - id: NON - name: NON - effectiveTaxRate: 0 - trackingCategoryRefs: [] - tracking: - categoryRefs: [] - isBilledTo: Unknown - isRebilledTo: NotApplicable - paymentAllocations: - - payment: - id: '20' - currency: GBP - currencyRate: 1 - paidOnDate: '2019-05-13T00:00:00' - totalAmount: 0 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: 5 - modifiedDate: '2023-01-18T11:02:37Z' - sourceModifiedDate: '2019-05-13T13:14:06Z' - QuickBooks Online Sandbox: - value: - id: '424' - billCreditNoteNumber: '424' - supplierRef: - id: '24' - supplierName: Brijesh Jain - withholdingTax: [] - totalAmount: 69 - totalDiscount: 0 - subTotal: 69 - totalTaxAmount: 0 - discountPercentage: 0 - remainingCredit: 69 - status: Submitted - issueDate: '2019-06-20T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Refund of iZettle Fees - unitAmount: 69 - quantity: 1 - subTotal: 69 - taxAmount: 0 - totalAmount: 69 - accountRef: - id: '30' - name: Janitorial Expense - taxRateRef: - id: 20_Bills - name: 5.0% RC CIS Bills - effectiveTaxRate: 0 - trackingCategoryRefs: [] - tracking: - categoryRefs: [] - isBilledTo: Unknown - isRebilledTo: NotApplicable - paymentAllocations: [] - modifiedDate: '2023-04-26T09:35:58Z' - sourceModifiedDate: '2019-06-20T15:48:50Z' - metadata: - isDeleted: false - Sage 200cloud: - value: - id: '45391' - billCreditNoteNumber: Return 1 - supplierRef: - id: CON001 - supplierName: Concept Stationery Supplies - withholdingTax: [] - totalAmount: 120 - totalDiscount: 2.5 - subTotal: 100 - totalTaxAmount: 20 - discountPercentage: 2.5 - remainingCredit: 109.5 - status: Submitted - issueDate: '2020-07-22T00:00:00Z' - allocatedOnDate: '2020-01-20T00:00:00Z' - currency: GBP - currencyRate: 1 - lineItems: - - description: Tax Summary - Tax Rate 1 - unitAmount: 0 - quantity: 0 - discountAmount: 0.5 - subTotal: 0 - taxAmount: 20 - totalAmount: 20 - taxRateRef: - id: '1729' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: [] - - description: Goods Summary - unitAmount: 0 - quantity: 0 - discountAmount: 2.5 - subTotal: 100 - taxAmount: 0 - totalAmount: 100 - trackingCategoryRefs: [] - paymentAllocations: - - payment: - id: '45391' - note: ret1 - reference: Return 1 - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-20T00:00:00' - totalAmount: 0 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -10.5 - modifiedDate: '2022-10-14T09:35:52Z' - sourceModifiedDate: '2020-02-28T14:23:46Z' - note: ret1 - Sage 50 (UK): - value: - id: '20' - billCreditNoteNumber: O/BAL - supplierRef: - id: NEW001 - supplierName: Newtown Builders Ltd - withholdingTax: [] - totalAmount: 0.01 - totalDiscount: 0 - subTotal: 0.01 - totalTaxAmount: 0 - discountPercentage: 0 - remainingCredit: 0.01 - status: Submitted - issueDate: '2021-12-31T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Opening Balance - unitAmount: 0.01 - quantity: 1 - subTotal: 0.01 - taxAmount: 0 - totalAmount: 0.01 - accountRef: - id: '9998' - name: Suspense Account - taxRateRef: - id: '9' - name: Non-Vatable Tax Code - effectiveTaxRate: 0 - trackingCategoryRefs: - - id: department_0 - name: Default - tracking: - categoryRefs: - - id: department_0 - name: Default - isBilledTo: Unknown - isRebilledTo: Unknown - paymentAllocations: [] - modifiedDate: '2023-03-30T14:42:37Z' - sourceModifiedDate: '2022-11-25T09:43:54' - metadata: - isDeleted: false - note: Opening Balance - Sage Business Cloud Accounting: - value: - id: b6c6fce9866849b0b44cac99ab7dc579 - billCreditNoteNumber: Supplier credit note - supplierRef: - id: ec716559789111e8aaa5027d54329956 - supplierName: Bagels Limited - withholdingTax: [] - totalAmount: 10 - totalDiscount: 0 - subTotal: 10 - totalTaxAmount: 0 - discountPercentage: 0 - remainingCredit: 0 - status: Paid - issueDate: '2018-11-23T00:00:00' - currency: USD - currencyRate: 0.776970973 - lineItems: - - description: Consulting services - unitAmount: 10 - quantity: 1 - discountAmount: 0 - subTotal: 10 - taxAmount: 0 - totalAmount: 10 - accountRef: - id: 9a995955267a11e797950a57719b2edb - name: Cost of sales - goods - discountPercentage: 0 - taxRateRef: - id: GB_ZERO - name: Zero Rated 0.00% - effectiveTaxRate: 0 - itemRef: - id: a87b922b33de11e797950a57719b2edb - name: Consulting services - trackingCategoryRefs: [] - paymentAllocations: - - payment: - id: bf6496aaf0294883b27c423ce8266113 - note: Supplier refund using credit/debit card - accountRef: - id: 9a25937b267a11e797950a57719b2edb - name: Current - currency: USD - currencyRate: 0.771449236 - paidOnDate: '2019-11-19T00:00:00' - totalAmount: -10 - allocation: - currency: USD - currencyRate: 1 - totalAmount: 10 - modifiedDate: '2022-10-24T14:53:32Z' - sourceModifiedDate: '2019-11-19T14:17:32Z' - Sage Intacct: - value: - id: '3359' - billCreditNoteNumber: APADJ0001 - supplierRef: - id: '3' - supplierName: ADP - withholdingTax: [] - totalAmount: 12 - totalDiscount: 0 - subTotal: 10 - totalTaxAmount: 2 - discountPercentage: 0 - remainingCredit: 12 - status: Submitted - issueDate: '2021-09-20T00:00:00' - currency: USD - currencyRate: 0.7283 - lineItems: - - description: No Description Provided - unitAmount: 5 - quantity: 1 - subTotal: 5 - taxAmount: 1 - totalAmount: 6 - accountRef: - id: '197' - name: Software and Licenses - taxRateRef: - id: '47' - name: EC Purchase Goods Standard Rate Input - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: LOCATION-8 - name: United Kingdom - - id: SUPPLIER-3 - name: ADP - tracking: - categoryRefs: - - id: LOCATION-8 - name: United Kingdom - - id: SUPPLIER-3 - name: ADP - isBilledTo: Unknown - isRebilledTo: Unknown - - description: No Description Provided - unitAmount: 5 - quantity: 1 - subTotal: 5 - taxAmount: 1 - totalAmount: 6 - accountRef: - id: '197' - name: Software and Licenses - taxRateRef: - id: '47' - name: EC Purchase Goods Standard Rate Input - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: LOCATION-8 - name: United Kingdom - - id: SUPPLIER-3 - name: ADP - tracking: - categoryRefs: - - id: LOCATION-8 - name: United Kingdom - - id: SUPPLIER-3 - name: ADP - isBilledTo: Unknown - isRebilledTo: Unknown - paymentAllocations: [] - modifiedDate: '2022-10-28T11:10:22Z' - sourceModifiedDate: '2021-09-20T13:50:16' - note: '' - Xero: - value: - id: ee8bec08-2be8-40ba-acd0-d53d5df11235 - billCreditNoteNumber: RPT429-1 - supplierRef: - id: 3a0d40a2-2698-4cf5-b7b2-30133c632ab6 - supplierName: Swanston Security - withholdingTax: [] - totalAmount: 25.44 - totalDiscount: 0 - subTotal: 25.44 - totalTaxAmount: 4.24 - discountPercentage: 0 - remainingCredit: 0 - status: Paid - issueDate: '2022-12-12T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Refund as agreed due to window break when guard absent - unitAmount: 21.2 - quantity: 1 - discountAmount: 0 - subTotal: 21.2 - taxAmount: 4.24 - totalAmount: 25.44 - accountRef: - id: f96c9458-d724-47bf-8f74-a9d5726465ce - name: General Expenses - discountPercentage: 0 - taxRateRef: - id: INPUT2 - name: 20% (VAT on Expenses) - effectiveTaxRate: 20 - trackingCategoryRefs: [] - paymentAllocations: - - payment: - id: ee8bec08-2be8-40ba-acd0-d53d5df11235 - reference: '' - currency: GBP - currencyRate: 1 - paidOnDate: '2022-12-12T00:00:00' - totalAmount: 0 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2022-12-12T00:00:00' - totalAmount: 25.44 - modifiedDate: '2023-03-15T20:36:09Z' - sourceModifiedDate: '2011-04-07T07:26:30' - metadata: - isDeleted: false - '401': - $ref: '#/components/responses/Unauthorized' - '402': - $ref: '#/components/responses/Payment-Required' - '403': - $ref: '#/components/responses/Forbidden' - '404': - $ref: '#/components/responses/Not-Found' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - description: | - The *Get bill credit note* endpoint returns a single bill credit note for a given billCreditNoteId. - - [Bill credit notes](https://docs.codat.io/lending-api#/schemas/BillCreditNote) are issued by a supplier for the purpose of recording credit. - - Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data). - operationId: get-accounting-bill-credit-note - x-speakeasy-group: accounts-payable.bill-credit-notes - '/companies/{companyId}/data/billPayments': - parameters: - - $ref: '#/components/parameters/companyId' - get: - tags: - - Accounts payable - summary: List bill payments - 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/AccountingBillPayments' - examples: - Clear Books: - value: - results: - - id: dcb18480-8b69-44d8-aa26-268b6a80d170 - supplierRef: - id: 8GeHBdBZiZ - supplierName: 'DuBuque, Goyette and Franecki' - accountRef: - id: dbcaf288-2b39-4b95-8ab3-42202ab15918 - name: Business Current Account - totalAmount: 71351.42 - currency: GBP - currencyRate: 1 - date: '2022-05-06T00:00:00' - note: Bill Payment against bill 81539597-e681-40c9-a4dd-ec2fffcde572 - paymentMethodRef: - id: cb4a5647-aa86-40ab-bb4f-158acaa99c12 - name: Check payments-u4p - lines: - - amount: 71351.42 - links: - - type: Bill - id: 81539597-e681-40c9-a4dd-ec2fffcde572 - amount: -71351.42 - currencyRate: 1 - allocatedOnDate: '2022-05-06T00:00:00' - modifiedDate: '2023-04-26T12:38:17Z' - sourceModifiedDate: '2022-05-06T00:00:00' - metadata: - isDeleted: false - - id: ca0976d0-036d-4187-ab66-7169286b007d - supplierRef: - id: 9efd64dc-4b31-425d-9eb2-7c7773593713 - supplierName: 'Jacobson, Konopelski and Heidenreich' - accountRef: - id: dbcaf288-2b39-4b95-8ab3-42202ab15918 - name: Business Current Account - totalAmount: 16221.64 - currency: GBP - currencyRate: 1 - date: '2022-05-14T13:12:00' - note: Bill Payment against bill 3f44d2be-d4c2-4cc3-8216-8add5265eb13 - paymentMethodRef: - id: fc87fba8-812e-4a54-b633-29ef2abf4c12 - name: CreditCard payments-u4p - lines: - - amount: 16221.64 - links: - - type: Bill - id: 3f44d2be-d4c2-4cc3-8216-8add5265eb13 - amount: -16221.64 - currencyRate: 1 - allocatedOnDate: '2022-05-14T13:12:00' - modifiedDate: '2023-04-26T12:38:17Z' - sourceModifiedDate: '2022-05-14T13:12:00' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 232 - _links: - current: - href: /companies/354a121b-855f-4d25-90ad-0905b498c1c0/data/billPayments?page=1&pageSize=2 - self: - href: /companies/354a121b-855f-4d25-90ad-0905b498c1c0/data/billPayments - next: - href: /companies/354a121b-855f-4d25-90ad-0905b498c1c0/data/billPayments?page=2&pageSize=2 - Dynamics 365 Business Central: - value: - results: - - id: 19387f05-8ad1-ea11-bbaa-000d3a2b9185 - supplierRef: - id: c41217b3-89d1-ea11-bbaa-000d3a2b9185 - supplierName: Wide World Importers - accountRef: - id: 621217b3-89d1-ea11-bbaa-000d3a2b9185 - name: Petty Cash - totalAmount: 234 - currency: GBP - currencyRate: 1 - date: '2019-01-01T00:00:00' - note: Invoice 107006 - lines: - - amount: 234 - links: - - type: Bill - id: c8cb06bf-89d1-ea11-bbaa-000d3a2b9185-108006 - amount: -234 - currencyRate: 1 - allocatedOnDate: '2019-01-01T00:00:00' - modifiedDate: '2023-03-27T14:21:25Z' - reference: '108006' - metadata: - isDeleted: false - - id: 3d387f05-8ad1-ea11-bbaa-000d3a2b9185 - supplierRef: - id: be1217b3-89d1-ea11-bbaa-000d3a2b9185 - supplierName: 'Fabrikam, Inc.' - accountRef: - id: 621217b3-89d1-ea11-bbaa-000d3a2b9185 - name: Petty Cash - totalAmount: 390 - currency: GBP - currencyRate: 1 - date: '2019-01-01T00:00:00' - note: Invoice 107007 - lines: - - amount: 390 - links: - - type: Bill - id: cbcb06bf-89d1-ea11-bbaa-000d3a2b9185-108007 - amount: -390 - currencyRate: 1 - allocatedOnDate: '2019-01-01T00:00:00' - modifiedDate: '2023-03-27T14:21:25Z' - reference: '108007' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 236 - _links: - current: - href: /companies/d6849caf-c146-41be-8335-b73346e3bd84/data/billPayments?page=1&pageSize=2 - self: - href: /companies/d6849caf-c146-41be-8335-b73346e3bd84/data/billPayments - next: - href: /companies/d6849caf-c146-41be-8335-b73346e3bd84/data/billPayments?page=2&pageSize=2 - Exact (Netherlands): - value: - results: - - id: da7e456f-76f7-42ac-8dad-d90a040f3afb - supplierRef: - id: 63fadca8-4905-475a-b32a-b4341293bcf4 - supplierName: Kelly's Industrial Supplies - accountRef: - id: d79d65bd-1d7d-4f55-95d3-76b3a7b7b823 - name: Bank 1 - totalAmount: -5 - currency: EUR - currencyRate: 1 - date: '2019-11-05T00:00:00Z' - lines: - - amount: -5 - links: - - type: PaymentOnAccount - id: 63fadca8-4905-475a-b32a-b4341293bcf4 - amount: 5 - currencyRate: 1 - modifiedDate: '2022-10-26T13:35:13Z' - sourceModifiedDate: '2019-11-05T14:26:22Z' - reference: '19200008' - - id: 002b8462-f3a3-4019-84fe-6a2af1f30c5a - supplierRef: - id: 5811b467-53eb-4491-8ca1-bc9b7889811b - supplierName: Ann's test supplier 2 - accountRef: - id: 1879b322-7758-4e20-8f3f-701df27f2340 - name: Kas - totalAmount: 0.13 - currency: EUR - currencyRate: 1 - date: '2019-11-07T00:00:00Z' - lines: - - amount: -0.12 - links: - - type: CreditNote - id: 33f3016c-2ecf-4d17-911e-b385537e7341 - amount: 0.12 - currencyRate: 1 - - amount: 0.12 - links: - - type: Bill - id: de6b3634-faf2-4688-b06b-72ed3ca6cf4e - amount: -0.12 - currencyRate: 1 - - amount: 0.13 - links: - - type: Bill - id: de6b3634-faf2-4688-b06b-72ed3ca6cf4e - amount: -0.13 - currencyRate: 1 - modifiedDate: '2022-10-26T13:35:14Z' - sourceModifiedDate: '2021-11-17T12:08:10Z' - reference: '19100002' - pageNumber: 1 - pageSize: 2 - totalResults: 1173 - _links: - current: - href: /companies/b83b1923-4db6-45a8-a779-b4e320c15979/data/billPayments?page=1&pageSize=2 - self: - href: /companies/b83b1923-4db6-45a8-a779-b4e320c15979/data/billPayments - next: - href: /companies/b83b1923-4db6-45a8-a779-b4e320c15979/data/billPayments?page=2&pageSize=2 - Exact (UK): - value: - results: - - id: 7a5f621b-739f-4ed8-b738-2aae3ef886ac - supplierRef: - id: a7cad20d-44db-442b-ac1f-90475802d6fb - supplierName: Pencils Pencils Pencils - accountRef: - id: 4a4e34b5-7f62-4b64-a44a-073398b14b41 - name: Bank - totalAmount: 123 - currency: GBP - currencyRate: 1 - date: '2017-10-11T00:00:00Z' - lines: - - amount: 123 - links: - - type: Bill - id: e7a45898-2db3-424c-acb9-a51647740f26 - amount: -123 - currencyRate: 1 - modifiedDate: '2022-10-26T13:33:17Z' - sourceModifiedDate: '2017-10-11T10:12:29Z' - reference: '17200006' - - id: b358df76-3930-42ad-8f38-78edcc60172d - supplierRef: - id: 41302634-76b5-4442-b800-0bb63780e77c - supplierName: Some Supplier - accountRef: - id: 4a4e34b5-7f62-4b64-a44a-073398b14b41 - name: Bank - totalAmount: 55000 - currency: GBP - currencyRate: 1 - date: '2017-10-31T00:00:00Z' - lines: - - amount: 55000 - links: - - type: PaymentOnAccount - id: 41302634-76b5-4442-b800-0bb63780e77c - amount: -55000 - currencyRate: 1 - modifiedDate: '2022-10-26T13:33:17Z' - sourceModifiedDate: '2019-02-14T17:56:54Z' - reference: '17200001' - pageNumber: 1 - pageSize: 2 - totalResults: 39 - _links: - current: - href: /companies/d95030cd-22b2-482b-9c7b-2980dcc2b1ce/data/billPayments?page=1&pageSize=2 - self: - href: /companies/d95030cd-22b2-482b-9c7b-2980dcc2b1ce/data/billPayments - next: - href: /companies/d95030cd-22b2-482b-9c7b-2980dcc2b1ce/data/billPayments?page=2&pageSize=2 - FreeAgent: - value: - results: - - id: '135234103' - supplierRef: - id: '7169654' - supplierName: The Eagle - totalAmount: 14.3 - currency: GBP - date: '2017-11-23T00:00:00' - note: 'ATOMIC SOFTWARE LIMITE WELLINGTON,NZL OTHER �14.30 - Bill payment against Pints1 (The Eagle)' - lines: - - amount: 14.3 - links: - - type: Bill - id: '10659723' - amount: -14.3 - currencyRate: 1 - modifiedDate: '2023-04-25T14:21:36Z' - metadata: - isDeleted: false - - id: '168350314' - supplierRef: - id: '6161941' - supplierName: A & J Fabtech Ltd - totalAmount: 30 - currency: GBP - date: '2019-01-03T00:00:00' - note: �30.00 - Bill payment against Test123 (A & J Fabtech Ltd) - lines: - - amount: 30 - links: - - type: Bill - id: '11224800' - amount: -30 - currencyRate: 1 - modifiedDate: '2023-04-25T14:21:36Z' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 89 - _links: - current: - href: /companies/071ad738-68f3-4561-afd0-69bab9df0803/data/billPayments?page=1&pageSize=2 - self: - href: /companies/071ad738-68f3-4561-afd0-69bab9df0803/data/billPayments - next: - href: /companies/071ad738-68f3-4561-afd0-69bab9df0803/data/billPayments?page=2&pageSize=2 - FreshBooks: - value: - results: - - id: '16' - supplierRef: - id: '29' - accountRef: - id: '167679' - name: Cash - totalAmount: 10 - currency: GBP - date: '2021-08-18T00:00:00' - note: Bill payment - lines: - - amount: 10 - links: - - type: Bill - id: '16' - amount: -10 - currencyRate: 1 - allocatedOnDate: '2021-08-18T00:00:00' - modifiedDate: '2023-03-24T16:07:23Z' - metadata: - isDeleted: false - - id: '18' - supplierRef: - id: '39' - accountRef: - id: '167679' - name: Cash - totalAmount: 15 - currency: USD - date: '2021-08-18T00:00:00' - note: Bill payment Ikea - lines: - - amount: 15 - links: - - type: Bill - id: '18' - amount: -15 - currencyRate: 1 - allocatedOnDate: '2021-08-18T00:00:00' - modifiedDate: '2023-03-24T16:07:23Z' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 26 - _links: - current: - href: /companies/3691c49e-0db4-4172-b3ab-e4084c365013/data/billPayments?page=1&pageSize=2 - self: - href: /companies/3691c49e-0db4-4172-b3ab-e4084c365013/data/billPayments - next: - href: /companies/3691c49e-0db4-4172-b3ab-e4084c365013/data/billPayments?page=2&pageSize=2 - Oracle NetSuite: - value: - results: - - id: '112' - supplierRef: - id: '724' - supplierName: Vendor A.A.A - accountRef: - id: '825' - name: Codat Europe Bank - totalAmount: 120 - currency: GBP - currencyRate: 1 - date: '2021-03-26T00:00:00' - lines: - - amount: 120 - links: - - type: Bill - id: '7' - amount: -120 - currencyRate: 1 - modifiedDate: '2023-01-30T14:48:40Z' - sourceModifiedDate: '2021-03-26T10:31:06' - reference: 'Bill Payment #1' - - id: 159623-724 - supplierRef: - id: '724' - supplierName: Vendor A.A.A - accountRef: - id: '825' - name: Codat Europe Bank - totalAmount: -555.55 - currency: GBP - currencyRate: 1 - date: '2022-07-11T00:00:00' - lines: - - amount: -555.55 - links: - - type: PaymentOnAccount - id: '724' - amount: 555.55 - currencyRate: 1 - modifiedDate: '2023-01-30T14:48:40Z' - sourceModifiedDate: '2022-07-11T09:41:02' - reference: 'Deposit #DEP25' - pageNumber: 1 - pageSize: 2 - totalResults: 3 - _links: - current: - href: /companies/d5074b08-6a34-4b06-a742-236edf5dc4f1/data/billPayments?page=1&pageSize=2 - self: - href: /companies/d5074b08-6a34-4b06-a742-236edf5dc4f1/data/billPayments - next: - href: /companies/d5074b08-6a34-4b06-a742-236edf5dc4f1/data/billPayments?page=2&pageSize=2 - QuickBooks Desktop: - value: - results: - - id: 3A09-1071529982 - supplierRef: - id: 720000-1071512482 - supplierName: Bayshore Auto Mall - accountRef: - id: 20000-933270541 - name: Checking - totalAmount: 532.97 - currency: GBP - currencyRate: 1 - date: '2023-01-11T00:00:00' - note: Monthly Truck Payment - lines: - - amount: 532.97 - links: - - type: Bill - id: 38AA-1071513625 - amount: -532.97 - currencyRate: 1 - modifiedDate: '2023-04-26T09:09:20Z' - sourceModifiedDate: '2023-12-16T05:04:58' - reference: '101' - metadata: - isDeleted: false - - id: 84C2-1197705262 - supplierRef: - id: B0000-933272656 - supplierName: Patton Hardware Supplies - accountRef: - id: '8000007E-1197732180' - name: CalOil Credit Card - totalAmount: 4050.98 - currency: GBP - currencyRate: 1 - date: '2023-01-15T00:00:00' - lines: - - amount: 4050.98 - links: - - type: Bill - id: 84C2-1197705262 - amount: -4050.98 - currencyRate: 1 - allocatedOnDate: '2023-01-15T00:00:00' - modifiedDate: '2023-04-26T09:09:20Z' - sourceModifiedDate: '2023-12-16T05:06:15' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 214 - _links: - current: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/data/billPayments?page=1&pageSize=2 - self: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/data/billPayments - next: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/data/billPayments?page=2&pageSize=2 - QuickBooks Online: - value: - results: - - id: '20' - supplierRef: - id: '4' - supplierName: BILLy elliot - totalAmount: 0 - currency: GBP - currencyRate: 1 - date: '2019-05-13T00:00:00' - lines: - - amount: 0 - links: - - type: Bill - id: '18' - amount: -5 - currencyRate: 1 - - type: CreditNote - id: '19' - amount: 5 - currencyRate: 1 - modifiedDate: '2023-01-18T11:02:47Z' - sourceModifiedDate: '2019-05-13T13:14:26Z' - - id: '25' - supplierRef: - id: '5' - supplierName: Callum McGinley - accountRef: - id: '63' - name: Business Bank Account - totalAmount: 5999.99 - currency: GBP - currencyRate: 1 - date: '2019-05-31T00:00:00' - lines: - - amount: 5999.99 - links: - - type: Bill - id: '24' - amount: -5999.99 - currencyRate: 1 - modifiedDate: '2023-01-18T11:02:47Z' - sourceModifiedDate: '2019-05-31T12:55:10Z' - pageNumber: 1 - pageSize: 2 - totalResults: 126 - _links: - current: - href: /companies/10818b5e-6e6a-4ed4-a1c5-3e3efe626e87/data/billPayments?page=1&pageSize=2 - self: - href: /companies/10818b5e-6e6a-4ed4-a1c5-3e3efe626e87/data/billPayments - next: - href: /companies/10818b5e-6e6a-4ed4-a1c5-3e3efe626e87/data/billPayments?page=2&pageSize=2 - QuickBooks Online Sandbox: - value: - results: - - id: '158' - supplierRef: - id: '57' - supplierName: Hall's Promo Items - accountRef: - id: '81' - name: Current - totalAmount: 7940.6 - currency: HKD - currencyRate: 0.078807 - date: '2016-01-23T00:00:00' - lines: - - amount: 7940.6 - links: - - type: Bill - id: '157' - amount: -7940.6 - currencyRate: 1 - modifiedDate: '2023-04-26T09:36:42Z' - sourceModifiedDate: '2016-09-13T21:19:36Z' - reference: '1067' - metadata: - isDeleted: false - - id: '159' - supplierRef: - id: '57' - supplierName: Hall's Promo Items - accountRef: - id: '81' - name: Current - totalAmount: 742.5 - currency: HKD - currencyRate: 0.078807 - date: '2016-01-23T00:00:00' - lines: - - amount: 742.5 - links: - - type: Bill - id: '28' - amount: -742.5 - currencyRate: 1 - modifiedDate: '2023-04-26T09:36:42Z' - sourceModifiedDate: '2016-09-13T21:19:49Z' - reference: '1068' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 191 - _links: - current: - href: /companies/5a7f3597-36e1-4216-86fe-289ad36088a6/data/billPayments?page=1&pageSize=2 - self: - href: /companies/5a7f3597-36e1-4216-86fe-289ad36088a6/data/billPayments - next: - href: /companies/5a7f3597-36e1-4216-86fe-289ad36088a6/data/billPayments?page=2&pageSize=2 - Sage 200cloud: - value: - results: - - id: '45462' - supplierRef: - id: CON001 - supplierName: Concept Stationery Supplies - totalAmount: 27 - currency: GBP - currencyRate: 1 - date: '2020-01-05T00:00:00Z' - note: '' - lines: - - amount: 27 - links: - - type: PaymentOnAccount - id: CON001 - amount: -27 - currencyRate: 1 - modifiedDate: '2022-10-14T09:35:54Z' - sourceModifiedDate: '2020-02-28T14:23:46Z' - reference: Payment invoice 1 - - id: '45502' - supplierRef: - id: SDE001 - supplierName: S D Enterprises - totalAmount: 59 - currency: GBP - currencyRate: 1 - date: '2020-01-17T00:00:00Z' - note: pay3 - lines: - - amount: 59 - links: - - type: PaymentOnAccount - id: SDE001 - amount: -59 - currencyRate: 1 - modifiedDate: '2022-10-14T09:35:54Z' - sourceModifiedDate: '2020-02-28T14:23:46Z' - reference: payment inv3 - pageNumber: 1 - pageSize: 2 - totalResults: 64 - _links: - current: - href: /companies/93c21e2d-049c-4d24-b41b-57e61c30b69e/data/billPayments?page=1&pageSize=2 - self: - href: /companies/93c21e2d-049c-4d24-b41b-57e61c30b69e/data/billPayments - next: - href: /companies/93c21e2d-049c-4d24-b41b-57e61c30b69e/data/billPayments?page=2&pageSize=2 - Sage 50 (UK): - value: - results: - - id: '255' - supplierRef: - id: CON001 - supplierName: Concept Stationery Supplies - totalAmount: 370.71 - currency: GBP - currencyRate: 1 - date: '2022-01-29T00:00:00' - note: 'Purchase payment 255 linked to, purchase invoice 86, purchase invoice 87, purchase invoice 250, purchase invoice 251, purchase invoice 252.' - lines: - - amount: 117.5 - links: - - type: Bill - id: '86' - amount: -117.5 - currencyRate: 1 - - amount: 64.63 - links: - - type: Bill - id: '87' - amount: -64.63 - currencyRate: 1 - - amount: 50.57 - links: - - type: Bill - id: '250' - amount: -50.57 - currencyRate: 1 - - amount: 36.87 - links: - - type: Bill - id: '251' - amount: -36.87 - currencyRate: 1 - - amount: 101.14 - links: - - type: Bill - id: '252' - amount: -101.14 - currencyRate: 1 - modifiedDate: '2023-03-30T14:42:37Z' - sourceModifiedDate: '2022-11-25T09:43:54' - metadata: - isDeleted: false - - id: '256' - supplierRef: - id: QUA001 - supplierName: Quality Motors - totalAmount: 256.36 - currency: GBP - currencyRate: 1 - date: '2022-01-29T00:00:00' - note: 'Purchase payment 256 linked to, purchase invoice 17.' - lines: - - amount: 256.36 - links: - - type: Bill - id: '17' - amount: -256.36 - currencyRate: 1 - modifiedDate: '2023-03-30T14:42:37Z' - sourceModifiedDate: '2022-11-25T09:43:54' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 27 - _links: - current: - href: /companies/cf5f2a47-2990-4221-bae6-0c19c86ac304/data/billPayments?page=1&pageSize=2 - self: - href: /companies/cf5f2a47-2990-4221-bae6-0c19c86ac304/data/billPayments - next: - href: /companies/cf5f2a47-2990-4221-bae6-0c19c86ac304/data/billPayments?page=2&pageSize=2 - Sage Business Cloud Accounting: - value: - results: - - id: d953b45e156011e8b45c025132dab352 - supplierRef: - id: ca430e0d156011e8b45c025132dab352 - supplierName: Test Supplier - accountRef: - id: 9a25937b267a11e797950a57719b2edb - name: Current - totalAmount: 52.02 - currency: GBP - currencyRate: 1 - date: '2018-02-15T00:00:00' - note: Supplier payment using credit/debit card - Cool stuff - lines: - - amount: 52.02 - links: - - type: PaymentOnAccount - id: ca430e0d156011e8b45c025132dab352 - amount: -52.02 - currencyRate: 1 - modifiedDate: '2022-10-24T14:54:04Z' - sourceModifiedDate: '2019-11-20T09:30:03Z' - - id: a99b9aae216111e8b45c025132dab352 - supplierRef: - id: ca430e0d156011e8b45c025132dab352 - supplierName: Test Supplier - accountRef: - id: 9a3e4bc6267a11e797950a57719b2edb - name: Cash - totalAmount: 52.02 - currency: GBP - currencyRate: 1 - date: '2018-03-06T00:00:00' - note: Supplier payment using cash - lines: - - amount: 52.02 - links: - - type: PaymentOnAccount - id: ca430e0d156011e8b45c025132dab352 - amount: -52.02 - currencyRate: 1 - modifiedDate: '2022-10-24T14:54:04Z' - sourceModifiedDate: '2018-03-06T17:13:17Z' - pageNumber: 1 - pageSize: 2 - totalResults: 2225 - _links: - current: - href: /companies/390083e2-351b-407c-a3be-55081c36c182/data/billPayments?page=1&pageSize=2 - self: - href: /companies/390083e2-351b-407c-a3be-55081c36c182/data/billPayments - next: - href: /companies/390083e2-351b-407c-a3be-55081c36c182/data/billPayments?page=2&pageSize=2 - Sage Intacct: - value: - results: - - id: '4471' - supplierRef: - id: '3' - supplierName: ADP - accountRef: - id: '353' - name: Current Account - totalAmount: 20 - currency: GBP - date: '2022-01-06T00:00:00' - note: '' - paymentMethodRef: - id: '6' - name: Cash - lines: - - amount: 20 - links: - - type: Bill - id: '4470' - amount: -20 - currencyRate: 1 - modifiedDate: '2023-04-04T16:32:13Z' - sourceModifiedDate: '2022-02-23T12:03:30' - metadata: - isDeleted: false - - id: '4472' - supplierRef: - id: '3' - supplierName: ADP - accountRef: - id: '353' - name: Current Account - totalAmount: 5 - currency: GBP - date: '2022-01-06T00:00:00' - note: '' - paymentMethodRef: - id: '6' - name: Cash - lines: - - amount: 5 - links: - - type: Bill - id: '4470' - amount: -5 - currencyRate: 1 - modifiedDate: '2023-04-04T16:32:13Z' - sourceModifiedDate: '2022-02-23T12:06:58' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 2 - _links: - current: - href: /companies/df02b289-cb16-4964-ac4d-9fd60b04538e/data/billPayments?page=1&pageSize=2 - self: - href: /companies/df02b289-cb16-4964-ac4d-9fd60b04538e/data/billPayments - Xero: - value: - results: - - id: 74004690-82a1-4810-aaca-6ce575af94b4 - supplierRef: - id: 1262c350-fe0f-40ec-aeff-41c95b4a45af - supplierName: DIISR - Small Business Services - accountRef: - id: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - name: Business Bank Account - totalAmount: 7267.2 - currency: GBP - currencyRate: 1 - date: '2021-12-20T00:00:00' - lines: - - amount: 7267.2 - links: - - type: Bill - id: 3945273c-cc04-479f-a4b5-1e3dc7a55ed1 - amount: -7267.2 - currencyRate: 1 - modifiedDate: '2023-03-15T20:37:10Z' - sourceModifiedDate: '2021-01-02T22:51:40' - metadata: - isDeleted: false - - id: f2062172-b444-4c8b-b797-9f4c7a4244c7 - supplierRef: - id: 1262c350-fe0f-40ec-aeff-41c95b4a45af - supplierName: DIISR - Small Business Services - accountRef: - id: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - name: Business Bank Account - totalAmount: 7267.2 - currency: GBP - currencyRate: 1 - date: '2022-02-17T00:00:00' - lines: - - amount: 7267.2 - links: - - type: Bill - id: 09aa506f-cb81-4cd3-a1ea-6a0b91804d5a - amount: -7267.2 - currencyRate: 1 - modifiedDate: '2023-03-15T20:37:10Z' - sourceModifiedDate: '2021-01-02T22:51:38' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 30 - _links: - current: - href: /companies/5ced9667-a310-443a-a711-958d36377141/data/billPayments?page=1&pageSize=2 - self: - href: /companies/5ced9667-a310-443a-a711-958d36377141/data/billPayments - next: - href: /companies/5ced9667-a310-443a-a711-958d36377141/data/billPayments?page=2&pageSize=2 - '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' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - description: |- - The *List bill payments* endpoint returns a list of [bill payments](https://docs.codat.io/lending-api#/schemas/BillPayment) for a given company's connection. - - [Bill payments](https://docs.codat.io/lending-api#/schemas/BillPayment) are an allocation of money within any customer accounts payable account. - - Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data). - - operationId: list-accounting-bill-payments - x-speakeasy-group: accounts-payable.bill-payments - '/companies/{companyId}/data/billPayments/{billPaymentId}': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/accountingBillPaymentId' - get: - tags: - - Accounts payable - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/AccountingBillPayment' - examples: - Clear Books: - value: - id: dcb18480-8b69-44d8-aa26-268b6a80d170 - supplierRef: - id: 8GeHBdBZiZ - supplierName: 'DuBuque, Goyette and Franecki' - accountRef: - id: dbcaf288-2b39-4b95-8ab3-42202ab15918 - name: Business Current Account - totalAmount: 71351.42 - currency: GBP - currencyRate: 1 - date: '2022-05-06T00:00:00' - note: Bill Payment against bill 81539597-e681-40c9-a4dd-ec2fffcde572 - paymentMethodRef: - id: cb4a5647-aa86-40ab-bb4f-158acaa99c12 - name: Check payments-u4p - lines: - - amount: 71351.42 - links: - - type: Bill - id: 81539597-e681-40c9-a4dd-ec2fffcde572 - amount: -71351.42 - currencyRate: 1 - allocatedOnDate: '2022-05-06T00:00:00' - modifiedDate: '2023-04-26T12:38:17Z' - sourceModifiedDate: '2022-05-06T00:00:00' - metadata: - isDeleted: false - Dynamics 365 Business Central: - value: - id: 19387f05-8ad1-ea11-bbaa-000d3a2b9185 - supplierRef: - id: c41217b3-89d1-ea11-bbaa-000d3a2b9185 - supplierName: Wide World Importers - accountRef: - id: 621217b3-89d1-ea11-bbaa-000d3a2b9185 - name: Petty Cash - totalAmount: 234 - currency: GBP - currencyRate: 1 - date: '2019-01-01T00:00:00' - note: Invoice 107006 - lines: - - amount: 234 - links: - - type: Bill - id: c8cb06bf-89d1-ea11-bbaa-000d3a2b9185-108006 - amount: -234 - currencyRate: 1 - allocatedOnDate: '2019-01-01T00:00:00' - modifiedDate: '2023-03-27T14:21:25Z' - reference: '108006' - metadata: - isDeleted: false - Exact (Netherlands): - value: - id: da7e456f-76f7-42ac-8dad-d90a040f3afb - supplierRef: - id: 63fadca8-4905-475a-b32a-b4341293bcf4 - supplierName: Kelly's Industrial Supplies - accountRef: - id: d79d65bd-1d7d-4f55-95d3-76b3a7b7b823 - name: Bank 1 - totalAmount: -5 - currency: EUR - currencyRate: 1 - date: '2019-11-05T00:00:00Z' - lines: - - amount: -5 - links: - - type: PaymentOnAccount - id: 63fadca8-4905-475a-b32a-b4341293bcf4 - amount: 5 - currencyRate: 1 - modifiedDate: '2022-10-26T13:35:13Z' - sourceModifiedDate: '2019-11-05T14:26:22Z' - reference: '19200008' - Exact (UK): - value: - id: 7a5f621b-739f-4ed8-b738-2aae3ef886ac - supplierRef: - id: a7cad20d-44db-442b-ac1f-90475802d6fb - supplierName: Pencils Pencils Pencils - accountRef: - id: 4a4e34b5-7f62-4b64-a44a-073398b14b41 - name: Bank - totalAmount: 123 - currency: GBP - currencyRate: 1 - date: '2017-10-11T00:00:00Z' - lines: - - amount: 123 - links: - - type: Bill - id: e7a45898-2db3-424c-acb9-a51647740f26 - amount: -123 - currencyRate: 1 - modifiedDate: '2022-10-26T13:33:17Z' - sourceModifiedDate: '2017-10-11T10:12:29Z' - reference: '17200006' - FreeAgent: - value: - id: '135234103' - supplierRef: - id: '7169654' - supplierName: The Eagle - totalAmount: 14.3 - currency: GBP - date: '2017-11-23T00:00:00' - note: 'ATOMIC SOFTWARE LIMITE WELLINGTON,NZL OTHER �14.30 - Bill payment against Pints1 (The Eagle)' - lines: - - amount: 14.3 - links: - - type: Bill - id: '10659723' - amount: -14.3 - currencyRate: 1 - modifiedDate: '2023-04-25T14:21:36Z' - metadata: - isDeleted: false - FreshBooks: - value: - id: '16' - supplierRef: - id: '29' - accountRef: - id: '167679' - name: Cash - totalAmount: 10 - currency: GBP - date: '2021-08-18T00:00:00' - note: Bill payment - lines: - - amount: 10 - links: - - type: Bill - id: '16' - amount: -10 - currencyRate: 1 - allocatedOnDate: '2021-08-18T00:00:00' - modifiedDate: '2023-03-24T16:07:23Z' - metadata: - isDeleted: false - Oracle NetSuite: - value: - id: '112' - supplierRef: - id: '724' - supplierName: Vendor A.A.A - accountRef: - id: '825' - name: Codat Europe Bank - totalAmount: 120 - currency: GBP - currencyRate: 1 - date: '2021-03-26T00:00:00' - lines: - - amount: 120 - links: - - type: Bill - id: '7' - amount: -120 - currencyRate: 1 - modifiedDate: '2023-01-30T14:48:40Z' - sourceModifiedDate: '2021-03-26T10:31:06' - reference: 'Bill Payment #1' - QuickBooks Desktop: - value: - id: 3A09-1071529982 - supplierRef: - id: 720000-1071512482 - supplierName: Bayshore Auto Mall - accountRef: - id: 20000-933270541 - name: Checking - totalAmount: 532.97 - currency: GBP - currencyRate: 1 - date: '2023-01-11T00:00:00' - note: Monthly Truck Payment - lines: - - amount: 532.97 - links: - - type: Bill - id: 38AA-1071513625 - amount: -532.97 - currencyRate: 1 - modifiedDate: '2023-04-26T09:09:20Z' - sourceModifiedDate: '2023-12-16T05:04:58' - reference: '101' - metadata: - isDeleted: false - QuickBooks Online: - value: - id: '20' - supplierRef: - id: '4' - supplierName: BILLy elliot - totalAmount: 0 - currency: GBP - currencyRate: 1 - date: '2019-05-13T00:00:00' - lines: - - amount: 0 - links: - - type: Bill - id: '18' - amount: -5 - currencyRate: 1 - - type: CreditNote - id: '19' - amount: 5 - currencyRate: 1 - modifiedDate: '2023-01-18T11:02:47Z' - sourceModifiedDate: '2019-05-13T13:14:26Z' - QuickBooks Online Sandbox: - value: - id: '158' - supplierRef: - id: '57' - supplierName: Hall's Promo Items - accountRef: - id: '81' - name: Current - totalAmount: 7940.6 - currency: HKD - currencyRate: 0.078807 - date: '2016-01-23T00:00:00' - lines: - - amount: 7940.6 - links: - - type: Bill - id: '157' - amount: -7940.6 - currencyRate: 1 - modifiedDate: '2023-04-26T09:36:42Z' - sourceModifiedDate: '2016-09-13T21:19:36Z' - reference: '1067' - metadata: - isDeleted: false - Sage 200cloud: - value: - id: '45462' - supplierRef: - id: CON001 - supplierName: Concept Stationery Supplies - totalAmount: 27 - currency: GBP - currencyRate: 1 - date: '2020-01-05T00:00:00Z' - note: '' - lines: - - amount: 27 - links: - - type: PaymentOnAccount - id: CON001 - amount: -27 - currencyRate: 1 - modifiedDate: '2022-10-14T09:35:54Z' - sourceModifiedDate: '2020-02-28T14:23:46Z' - reference: Payment invoice 1 - Sage 50 (UK): - value: - id: '255' - supplierRef: - id: CON001 - supplierName: Concept Stationery Supplies - totalAmount: 370.71 - currency: GBP - currencyRate: 1 - date: '2022-01-29T00:00:00' - note: 'Purchase payment 255 linked to, purchase invoice 86, purchase invoice 87, purchase invoice 250, purchase invoice 251, purchase invoice 252.' - lines: - - amount: 117.5 - links: - - type: Bill - id: '86' - amount: -117.5 - currencyRate: 1 - - amount: 64.63 - links: - - type: Bill - id: '87' - amount: -64.63 - currencyRate: 1 - - amount: 50.57 - links: - - type: Bill - id: '250' - amount: -50.57 - currencyRate: 1 - - amount: 36.87 - links: - - type: Bill - id: '251' - amount: -36.87 - currencyRate: 1 - - amount: 101.14 - links: - - type: Bill - id: '252' - amount: -101.14 - currencyRate: 1 - modifiedDate: '2023-03-30T14:42:37Z' - sourceModifiedDate: '2022-11-25T09:43:54' - metadata: - isDeleted: false - Sage Business Cloud Accounting: - value: - id: d953b45e156011e8b45c025132dab352 - supplierRef: - id: ca430e0d156011e8b45c025132dab352 - supplierName: Test Supplier - accountRef: - id: 9a25937b267a11e797950a57719b2edb - name: Current - totalAmount: 52.02 - currency: GBP - currencyRate: 1 - date: '2018-02-15T00:00:00' - note: Supplier payment using credit/debit card - Cool stuff - lines: - - amount: 52.02 - links: - - type: PaymentOnAccount - id: ca430e0d156011e8b45c025132dab352 - amount: -52.02 - currencyRate: 1 - modifiedDate: '2022-10-24T14:54:04Z' - sourceModifiedDate: '2019-11-20T09:30:03Z' - Sage Intacct: - value: - id: '4471' - supplierRef: - id: '3' - supplierName: ADP - accountRef: - id: '353' - name: Current Account - totalAmount: 20 - currency: GBP - date: '2022-01-06T00:00:00' - note: '' - paymentMethodRef: - id: '6' - name: Cash - lines: - - amount: 20 - links: - - type: Bill - id: '4470' - amount: -20 - currencyRate: 1 - modifiedDate: '2023-04-04T16:32:13Z' - sourceModifiedDate: '2022-02-23T12:03:30' - metadata: - isDeleted: false - Xero: - value: - id: 74004690-82a1-4810-aaca-6ce575af94b4 - supplierRef: - id: 1262c350-fe0f-40ec-aeff-41c95b4a45af - supplierName: DIISR - Small Business Services - accountRef: - id: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - name: Business Bank Account - totalAmount: 7267.2 - currency: GBP - currencyRate: 1 - date: '2021-12-20T00:00:00' - lines: - - amount: 7267.2 - links: - - type: Bill - id: 3945273c-cc04-479f-a4b5-1e3dc7a55ed1 - amount: -7267.2 - currencyRate: 1 - modifiedDate: '2023-03-15T20:37:10Z' - sourceModifiedDate: '2021-01-02T22:51:40' - metadata: - isDeleted: false - '401': - $ref: '#/components/responses/Unauthorized' - '402': - $ref: '#/components/responses/Payment-Required' - '403': - $ref: '#/components/responses/Forbidden' - '404': - $ref: '#/components/responses/Not-Found' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - summary: Get bill payment - description: | - The *Get bill payment* endpoint returns a single bill payment for a given billPaymentId. - - [Bill payments](https://docs.codat.io/lending-api#/schemas/BillPayment) are an allocation of money within any customer accounts payable account. - - Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data). - operationId: get-accounting-bill-payment - x-speakeasy-group: accounts-payable.bill-payments - '/companies/{companyId}/data/bills': - parameters: - - $ref: '#/components/parameters/companyId' - get: - tags: - - Accounts payable - summary: List bills - 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/AccountingBills' - examples: - Clear Books: - value: - results: - - id: 81539597-e681-40c9-a4dd-ec2fffcde572 - reference: b465a2c9-3212-4620-889b-6328ba148215 - supplierRef: - id: 8GeHBdBZiZ - supplierName: 'DuBuque, Goyette and Franecki' - purchaseOrderRefs: [] - issueDate: '2022-04-29T00:00:00' - dueDate: '2022-05-06T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Grease Trap - unitAmount: 2781.94 - quantity: 5 - discountAmount: 0 - subTotal: 13909.7 - taxAmount: 1390.97 - totalAmount: 15300.67 - discountPercentage: 0 - accountRef: - id: 72df89d2-512b-4455-af51-a6b563733842 - name: Sales - taxRateRef: - id: 6c88aff3-7cb9-4980-a3d3-443e72e02498 - name: Sales Tax (10%) - effectiveTaxRate: 10 - itemRef: - id: 22aee6bd-4767-48c4-8a13-fdf85b91fc80 - name: 600 Litre Grease Trap - trackingCategoryRefs: [] - isDirectCost: false - - description: Grease Trap - unitAmount: 1371.39 - quantity: 5 - discountAmount: 0 - subTotal: 6856.95 - taxAmount: 685.7 - totalAmount: 7542.65 - discountPercentage: 0 - accountRef: - id: 72df89d2-512b-4455-af51-a6b563733842 - name: Sales - taxRateRef: - id: 6c88aff3-7cb9-4980-a3d3-443e72e02498 - name: Sales Tax (10%) - effectiveTaxRate: 10 - itemRef: - id: 9409d23d-1011-432e-98a4-591fcd8d5404 - name: 300 Litre Grease Trap - trackingCategoryRefs: [] - isDirectCost: false - - description: Grease Trap - unitAmount: 1371.39 - quantity: 6 - discountAmount: 0 - subTotal: 8228.34 - taxAmount: 822.83 - totalAmount: 9051.17 - discountPercentage: 0 - accountRef: - id: 72df89d2-512b-4455-af51-a6b563733842 - name: Sales - taxRateRef: - id: 6c88aff3-7cb9-4980-a3d3-443e72e02498 - name: Sales Tax (10%) - effectiveTaxRate: 10 - itemRef: - id: 9409d23d-1011-432e-98a4-591fcd8d5404 - name: 300 Litre Grease Trap - trackingCategoryRefs: [] - isDirectCost: false - - description: Grease Trap - unitAmount: 2781.94 - quantity: 3 - discountAmount: 0 - subTotal: 8345.82 - taxAmount: 834.58 - totalAmount: 9180.4 - discountPercentage: 0 - accountRef: - id: 72df89d2-512b-4455-af51-a6b563733842 - name: Sales - taxRateRef: - id: 6c88aff3-7cb9-4980-a3d3-443e72e02498 - name: Sales Tax (10%) - effectiveTaxRate: 10 - itemRef: - id: 22aee6bd-4767-48c4-8a13-fdf85b91fc80 - name: 600 Litre Grease Trap - trackingCategoryRefs: [] - isDirectCost: false - - description: Underground - Trapped Road Gully 450mm x 450mm - unitAmount: 402.89 - quantity: 8 - discountAmount: 0 - subTotal: 3223.12 - taxAmount: 322.31 - totalAmount: 3545.43 - discountPercentage: 0 - accountRef: - id: 72df89d2-512b-4455-af51-a6b563733842 - name: Sales - taxRateRef: - id: 6c88aff3-7cb9-4980-a3d3-443e72e02498 - name: Sales Tax (10%) - effectiveTaxRate: 10 - itemRef: - id: 3abf0883-03f7-44c6-bc15-1372522d25e1 - name: Heavy Duty Hinged Gully Grating - trackingCategoryRefs: [] - isDirectCost: false - - description: Underground - Drain Bottle Gullies 90 degree Rectangular - unitAmount: 95.08 - quantity: 7 - discountAmount: 0 - subTotal: 665.56 - taxAmount: 66.56 - totalAmount: 732.12 - discountPercentage: 0 - accountRef: - id: 72df89d2-512b-4455-af51-a6b563733842 - name: Sales - taxRateRef: - id: 6c88aff3-7cb9-4980-a3d3-443e72e02498 - name: Sales Tax (10%) - effectiveTaxRate: 10 - itemRef: - id: '6' - name: Back Inlet Roddable Gully 90� Outlet Rectangular Grid - trackingCategoryRefs: [] - isDirectCost: false - - description: Underground - Drain Bottle Gullies 90 degree Rectangular - unitAmount: 95.08 - quantity: 1 - discountAmount: 0 - subTotal: 95.08 - taxAmount: 9.51 - totalAmount: 104.59 - discountPercentage: 0 - accountRef: - id: 72df89d2-512b-4455-af51-a6b563733842 - name: Sales - taxRateRef: - id: 6c88aff3-7cb9-4980-a3d3-443e72e02498 - name: Sales Tax (10%) - effectiveTaxRate: 10 - itemRef: - id: '6' - name: Back Inlet Roddable Gully 90� Outlet Rectangular Grid - trackingCategoryRefs: [] - isDirectCost: false - - description: Grease Trap - unitAmount: 1371.39 - quantity: 2 - discountAmount: 0 - subTotal: 2742.78 - taxAmount: 274.28 - totalAmount: 3017.06 - discountPercentage: 0 - accountRef: - id: 72df89d2-512b-4455-af51-a6b563733842 - name: Sales - taxRateRef: - id: 6c88aff3-7cb9-4980-a3d3-443e72e02498 - name: Sales Tax (10%) - effectiveTaxRate: 10 - itemRef: - id: 9409d23d-1011-432e-98a4-591fcd8d5404 - name: 300 Litre Grease Trap - trackingCategoryRefs: [] - isDirectCost: false - - description: Grease Trap - unitAmount: 2781.94 - quantity: 1 - discountAmount: 0 - subTotal: 2781.94 - taxAmount: 278.19 - totalAmount: 3060.13 - discountPercentage: 0 - accountRef: - id: 72df89d2-512b-4455-af51-a6b563733842 - name: Sales - taxRateRef: - id: 6c88aff3-7cb9-4980-a3d3-443e72e02498 - name: Sales Tax (10%) - effectiveTaxRate: 10 - itemRef: - id: 22aee6bd-4767-48c4-8a13-fdf85b91fc80 - name: 600 Litre Grease Trap - trackingCategoryRefs: [] - isDirectCost: false - - description: Underground - Drain Bottle Gullies 90 degree Rectangular - unitAmount: 95.08 - quantity: 7 - discountAmount: 0 - subTotal: 665.56 - taxAmount: 66.56 - totalAmount: 732.12 - discountPercentage: 0 - accountRef: - id: 72df89d2-512b-4455-af51-a6b563733842 - name: Sales - taxRateRef: - id: 6c88aff3-7cb9-4980-a3d3-443e72e02498 - name: Sales Tax (10%) - effectiveTaxRate: 10 - itemRef: - id: '6' - name: Back Inlet Roddable Gully 90� Outlet Rectangular Grid - trackingCategoryRefs: [] - isDirectCost: false - - description: Grease Trap - unitAmount: 1251.89 - quantity: 4 - discountAmount: 0 - subTotal: 5007.56 - taxAmount: 500.76 - totalAmount: 5508.32 - discountPercentage: 0 - accountRef: - id: 72df89d2-512b-4455-af51-a6b563733842 - name: Sales - taxRateRef: - id: 6c88aff3-7cb9-4980-a3d3-443e72e02498 - name: Sales Tax (10%) - effectiveTaxRate: 10 - itemRef: - id: 51077072-d5c3-463b-9cb4-7da2e11886f9 - name: 150 Litre Grease Trap - trackingCategoryRefs: [] - isDirectCost: false - - description: Grease Trap - unitAmount: 1371.39 - quantity: 9 - discountAmount: 0 - subTotal: 12342.51 - taxAmount: 1234.25 - totalAmount: 13576.76 - discountPercentage: 0 - accountRef: - id: 72df89d2-512b-4455-af51-a6b563733842 - name: Sales - taxRateRef: - id: 6c88aff3-7cb9-4980-a3d3-443e72e02498 - name: Sales Tax (10%) - effectiveTaxRate: 10 - itemRef: - id: 9409d23d-1011-432e-98a4-591fcd8d5404 - name: 300 Litre Grease Trap - trackingCategoryRefs: [] - isDirectCost: false - withholdingTax: [] - status: Paid - subTotal: 64864.92 - taxAmount: 6486.5 - totalAmount: 71351.42 - amountDue: 0 - modifiedDate: '2023-04-26T12:38:16Z' - sourceModifiedDate: '2023-02-14T17:09:02' - note: 'Bill with 12 line items, totaling 71351.42' - paymentAllocations: - - payment: - id: dcb18480-8b69-44d8-aa26-268b6a80d170 - note: Bill Payment against bill 81539597-e681-40c9-a4dd-ec2fffcde572 - accountRef: - id: dbcaf288-2b39-4b95-8ab3-42202ab15918 - name: Business Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-05-06T00:00:00' - totalAmount: 71351.42 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2022-05-06T00:00:00' - totalAmount: -71351.42 - metadata: - isDeleted: false - - id: acc1dc9d-a21a-41b8-953e-73da4afab6e6 - reference: d88e83b8-a5cc-4578-815d-afa263df4beb - supplierRef: - id: 7GObELDcsE - supplierName: 'Lakin, Schmeler and Kihn' - purchaseOrderRefs: - - id: 7f07b584-bebe-450f-aa9e-1d7aed630b66 - purchaseOrderNumber: ee9b8e00-49a2-4d83-bc33-e2eee59a1c36 - issueDate: '2022-04-30T00:00:00' - dueDate: '2022-05-15T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Underground - Drain Bottle Gullies 90 degree Rectangular - unitAmount: 95.08 - quantity: 4 - discountAmount: 0 - subTotal: 380.32 - taxAmount: 38.03 - totalAmount: 418.35 - discountPercentage: 0 - accountRef: - id: 72df89d2-512b-4455-af51-a6b563733842 - name: Sales - taxRateRef: - id: 6c88aff3-7cb9-4980-a3d3-443e72e02498 - name: Sales Tax (10%) - effectiveTaxRate: 10 - itemRef: - id: '6' - name: Back Inlet Roddable Gully 90� Outlet Rectangular Grid - trackingCategoryRefs: [] - isDirectCost: false - withholdingTax: [] - status: Paid - subTotal: 380.32 - taxAmount: 38.03 - totalAmount: 418.35 - amountDue: 0 - modifiedDate: '2023-04-26T12:38:16Z' - sourceModifiedDate: '2023-04-14T01:56:02' - note: Bill for purchase order ee9b8e00-49a2-4d83-bc33-e2eee59a1c36 - paymentAllocations: - - payment: - id: a4fa017a-3911-4eb0-aaf9-b002c446c8c3 - note: Bill Payment against bill acc1dc9d-a21a-41b8-953e-73da4afab6e6 - accountRef: - id: dbcaf288-2b39-4b95-8ab3-42202ab15918 - name: Business Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-05-15T00:00:00' - totalAmount: 418.35 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2022-05-15T00:00:00' - totalAmount: -418.35 - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 183 - _links: - current: - href: /companies/354a121b-855f-4d25-90ad-0905b498c1c0/data/bills?page=1&pageSize=2 - self: - href: /companies/354a121b-855f-4d25-90ad-0905b498c1c0/data/bills - next: - href: /companies/354a121b-855f-4d25-90ad-0905b498c1c0/data/bills?page=2&pageSize=2 - Dynamics 365 Business Central: - value: - results: - - id: 4019ee2b-d05a-ed11-8c34-000d3a0d28a2-108276 - reference: '108276' - supplierRef: - id: c01217b3-89d1-ea11-bbaa-000d3a2b9185 - supplierName: First Up Consultants - purchaseOrderRefs: [] - issueDate: '2019-01-01T00:00:00' - dueDate: '2019-01-01T00:00:00' - currency: GBP - lineItems: - - description: ATHENS Desk - unitAmount: 506.6 - quantity: 4 - discountAmount: 202.64 - subTotal: 1823.76 - taxAmount: 364.75 - totalAmount: 2188.51 - discountPercentage: 10 - accountRef: - id: 6a1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: Inventory - 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: [] - isDirectCost: false - withholdingTax: [] - status: Open - subTotal: 1823.76 - taxAmount: 364.75 - totalAmount: 2188.51 - amountDue: 2188.51 - modifiedDate: '2023-03-27T14:21:25Z' - sourceModifiedDate: '2022-11-02T17:02:48Z' - note: '129148' - paymentAllocations: [] - metadata: - isDeleted: false - - id: b9cb06bf-89d1-ea11-bbaa-000d3a2b9185-108001 - reference: '108001' - supplierRef: - id: c01217b3-89d1-ea11-bbaa-000d3a2b9185 - supplierName: First Up Consultants - purchaseOrderRefs: [] - issueDate: '2019-01-01T00:00:00' - dueDate: '2019-01-01T00:00:00' - currency: GBP - lineItems: - - description: ATHENS Desk - unitAmount: 506.6 - quantity: 4 - discountAmount: 0 - subTotal: 2026.4 - taxAmount: 405.28 - totalAmount: 2431.68 - discountPercentage: 0 - accountRef: - id: 6a1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: Inventory - 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: [] - isDirectCost: false - withholdingTax: [] - status: Paid - subTotal: 2026.4 - taxAmount: 405.28 - totalAmount: 2431.68 - amountDue: 0 - modifiedDate: '2023-03-27T14:21:25Z' - sourceModifiedDate: '2022-05-17T16:29:02Z' - note: '107001' - paymentAllocations: - - payment: - id: 57377f05-8ad1-ea11-bbaa-000d3a2b9185 - note: Invoice 107001 - reference: '108001' - accountRef: - id: 621217b3-89d1-ea11-bbaa-000d3a2b9185 - name: Petty Cash - currency: GBP - currencyRate: 1 - paidOnDate: '2019-01-01T00:00:00' - totalAmount: 2431.68 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2019-01-01T00:00:00' - totalAmount: -2431.68 - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 294 - _links: - current: - href: /companies/d6849caf-c146-41be-8335-b73346e3bd84/data/bills?page=1&pageSize=2 - self: - href: /companies/d6849caf-c146-41be-8335-b73346e3bd84/data/bills - next: - href: /companies/d6849caf-c146-41be-8335-b73346e3bd84/data/bills?page=2&pageSize=2 - Exact (Netherlands): - value: - results: - - id: 1c55118b-793e-4437-9c13-4f554b9ca989 - reference: '19600006' - supplierRef: - id: 5e6f49b9-6489-4b82-83e7-291d308919bb - supplierName: Mickey Mouse - purchaseOrderRefs: [] - issueDate: '2019-12-16T00:00:00Z' - dueDate: '2019-11-09T00: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: [] - isDirectCost: false - withholdingTax: [] - status: Paid - subTotal: 10 - taxAmount: 2.1 - totalAmount: 12.1 - amountDue: 0 - modifiedDate: '2022-10-26T13:32:18Z' - sourceModifiedDate: '2020-01-03T15:06:02Z' - paymentAllocations: - - payment: - id: d9a2980b-2a43-46f2-9c7f-413d925b3cdd - reference: '20200032' - accountRef: - id: d79d65bd-1d7d-4f55-95d3-76b3a7b7b823 - name: Bank 1 - currency: EUR - currencyRate: 1 - paidOnDate: '2021-03-22T00:00:00' - totalAmount: 12.1 - allocation: - currency: EUR - currencyRate: 1 - totalAmount: -12.1 - - id: ec0c61a1-deb6-4496-b9ee-feb29b16019c - reference: '19600008' - supplierRef: - id: fc189bfa-f083-438c-bf09-379a0631d4a1 - supplierName: Mickey Mouse - purchaseOrderRefs: [] - issueDate: '2019-12-16T00:00:00Z' - dueDate: '2019-11-09T00: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: [] - isDirectCost: false - withholdingTax: [] - status: Open - subTotal: 10 - taxAmount: 2.1 - totalAmount: 12.1 - amountDue: 12.1 - modifiedDate: '2022-10-26T13:32:18Z' - sourceModifiedDate: '2020-01-03T15:06:39Z' - paymentAllocations: - - payment: - id: ef5d140b-16da-4fd2-a0c8-d5bfb89a13ee - reference: '19900056' - accountRef: - id: a2d51b6f-677d-4bbf-ad0c-b45fd6231546 - name: Activa herwaarderingen - currency: EUR - currencyRate: 1 - paidOnDate: '2019-11-07T00:00:00' - totalAmount: 0.21 - allocation: - currency: EUR - currencyRate: 1 - totalAmount: -0.21 - - payment: - id: b69e7ad4-2b90-4a5f-a8a0-67418ac95531 - reference: '19900053' - accountRef: - id: a2d51b6f-677d-4bbf-ad0c-b45fd6231546 - name: Activa herwaarderingen - currency: EUR - currencyRate: 1 - paidOnDate: '2019-11-07T00:00:00' - totalAmount: 0.2 - allocation: - currency: EUR - currencyRate: 1 - totalAmount: -0.2 - - payment: - id: 6ccd1256-6073-4bfc-8d88-700417685e72 - reference: '21200028' - accountRef: - id: d79d65bd-1d7d-4f55-95d3-76b3a7b7b823 - name: Bank 1 - currency: EUR - currencyRate: 1 - paidOnDate: '2021-10-05T00:00:00' - totalAmount: 12.1 - allocation: - currency: EUR - currencyRate: 1 - totalAmount: -12.1 - - payment: - id: 69a8533b-3e59-4d2d-9bca-bc37bc0f7984 - reference: '19900055' - accountRef: - id: a2d51b6f-677d-4bbf-ad0c-b45fd6231546 - name: Activa herwaarderingen - currency: EUR - currencyRate: 1 - paidOnDate: '2019-11-07T00:00:00' - totalAmount: 0.21 - allocation: - currency: EUR - currencyRate: 1 - totalAmount: -0.21 - - payment: - id: 2dae3548-ff11-4ad8-886c-eb5cb7965024 - reference: '19900054' - accountRef: - id: a2d51b6f-677d-4bbf-ad0c-b45fd6231546 - name: Activa herwaarderingen - currency: EUR - currencyRate: 1 - paidOnDate: '2019-11-07T00:00:00' - totalAmount: 0.21 - allocation: - currency: EUR - currencyRate: 1 - totalAmount: -0.21 - pageNumber: 1 - pageSize: 2 - totalResults: 80 - _links: - current: - href: /companies/b83b1923-4db6-45a8-a779-b4e320c15979/data/bills?page=1&pageSize=2 - self: - href: /companies/b83b1923-4db6-45a8-a779-b4e320c15979/data/bills - next: - href: /companies/b83b1923-4db6-45a8-a779-b4e320c15979/data/bills?page=2&pageSize=2 - Exact (UK): - value: - results: - - id: e7a45898-2db3-424c-acb9-a51647740f26 - reference: '17600002' - supplierRef: - id: a7cad20d-44db-442b-ac1f-90475802d6fb - supplierName: Pencils Pencils Pencils - purchaseOrderRefs: [] - issueDate: '2017-09-26T00:00:00Z' - dueDate: '2017-10-26T00:00:00Z' - currency: GBP - currencyRate: 1 - lineItems: - - description: Stationery - unitAmount: 400 - quantity: 2 - discountAmount: 0 - subTotal: 800 - taxAmount: 160 - totalAmount: 960 - accountRef: - id: e5e9e994-0f14-4614-b162-7b5593b21276 - name: Finished Goods Stock - taxRateRef: - id: 63cd143a-66ab-4320-8a6d-ab6be85ed048 - name: UK purchases standard rate � Excluding - effectiveTaxRate: 20 - itemRef: - id: '001' - trackingCategoryRefs: [] - isDirectCost: false - withholdingTax: [] - status: Paid - subTotal: 800 - taxAmount: 160 - totalAmount: 960 - amountDue: 0 - modifiedDate: '2022-10-26T13:33:20Z' - sourceModifiedDate: '2019-01-11T14:18:17Z' - paymentAllocations: - - payment: - id: 7a5f621b-739f-4ed8-b738-2aae3ef886ac - reference: '17200006' - accountRef: - id: 4a4e34b5-7f62-4b64-a44a-073398b14b41 - name: Bank - currency: GBP - currencyRate: 1 - paidOnDate: '2017-10-11T00:00:00' - totalAmount: 123 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -123 - - id: 064fbab9-9b4d-4e83-b2df-0f4ce12bc2bf - reference: '19600001' - supplierRef: - id: a4d5d739-c979-4819-b0ce-666db1ec3a7d - supplierName: Exact Software (UK) Ltd � Exact Online - purchaseOrderRefs: [] - issueDate: '2019-01-11T00:00:00Z' - dueDate: '2019-02-10T00:00:00Z' - currency: GBP - currencyRate: 1 - lineItems: - - description: Basket balls - unitAmount: 20 - quantity: 1 - discountAmount: 0 - subTotal: 20 - taxAmount: 0 - totalAmount: 20 - accountRef: - id: 885ff551-664d-451b-995b-cb114c9877d0 - name: Unallocated Cash - itemRef: - id: '23' - trackingCategoryRefs: [] - isDirectCost: false - withholdingTax: [] - status: Paid - subTotal: 20 - taxAmount: 0 - totalAmount: 20 - amountDue: 0 - modifiedDate: '2022-10-26T13:33:20Z' - sourceModifiedDate: '2019-01-11T12:03:31Z' - paymentAllocations: - - payment: - id: d871f677-c2df-4069-bda0-c6804a46b71b - reference: '19200001' - accountRef: - id: 4a4e34b5-7f62-4b64-a44a-073398b14b41 - name: Bank - currency: GBP - currencyRate: 1 - paidOnDate: '2019-02-10T00:00:00' - totalAmount: 20 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -20 - pageNumber: 1 - pageSize: 2 - totalResults: 83 - _links: - current: - href: /companies/d95030cd-22b2-482b-9c7b-2980dcc2b1ce/data/bills?page=1&pageSize=2 - self: - href: /companies/d95030cd-22b2-482b-9c7b-2980dcc2b1ce/data/bills - next: - href: /companies/d95030cd-22b2-482b-9c7b-2980dcc2b1ce/data/bills?page=2&pageSize=2 - FreeAgent: - value: - results: - - id: '16609552' - reference: MATT - U - supplierRef: - id: '7169654' - supplierName: The Eagle - purchaseOrderRefs: [] - issueDate: '2014-08-21T00:00:00' - dueDate: '2018-09-20T00:00:00' - currency: GBP - lineItems: - - unitAmount: 125 - quantity: 1 - taxAmount: 25 - totalAmount: 150 - accountRef: - id: '285' - name: Accommodation and Meals - trackingCategoryRefs: [] - isDirectCost: false - withholdingTax: [] - status: Open - subTotal: 125 - taxAmount: 25 - totalAmount: 150 - amountDue: 150 - modifiedDate: '2023-04-25T14:19:10Z' - sourceModifiedDate: '2020-11-11T12:48:55Z' - paymentAllocations: [] - metadata: - isDeleted: false - - id: '16609589' - reference: MATT - U - supplierRef: - id: '7169654' - supplierName: The Eagle - purchaseOrderRefs: [] - issueDate: '2014-08-21T00:00:00' - dueDate: '2018-09-20T00:00:00' - currency: GBP - lineItems: - - unitAmount: 125 - quantity: 1 - taxAmount: 25 - totalAmount: 150 - accountRef: - id: '285' - name: Accommodation and Meals - trackingCategoryRefs: [] - isDirectCost: false - withholdingTax: [] - status: Open - subTotal: 125 - taxAmount: 25 - totalAmount: 150 - amountDue: 150 - modifiedDate: '2023-04-25T14:19:10Z' - sourceModifiedDate: '2020-11-11T12:50:41Z' - paymentAllocations: [] - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 137 - _links: - current: - href: /companies/071ad738-68f3-4561-afd0-69bab9df0803/data/bills?page=1&pageSize=2 - self: - href: /companies/071ad738-68f3-4561-afd0-69bab9df0803/data/bills - next: - href: /companies/071ad738-68f3-4561-afd0-69bab9df0803/data/bills?page=2&pageSize=2 - FreshBooks: - value: - results: - - id: '27' - supplierRef: - id: '87' - purchaseOrderRefs: [] - issueDate: '2021-04-26T00:00:00' - dueDate: '2021-05-26T00:00:00' - currency: USD - lineItems: - - description: Grocery - unitAmount: 50 - quantity: 1 - subTotal: 50 - taxAmount: 0 - totalAmount: 50 - accountRef: - id: '3384197' - name: Advertising - trackingCategoryRefs: [] - isDirectCost: false - withholdingTax: [] - status: Open - subTotal: 50 - taxAmount: 0 - totalAmount: 50 - amountDue: 50 - modifiedDate: '2023-03-24T16:07:23Z' - sourceModifiedDate: '2021-04-26T19:34:22' - paymentAllocations: [] - metadata: - isDeleted: false - - id: '29' - supplierRef: - id: '89' - purchaseOrderRefs: [] - issueDate: '2021-04-28T00:00:00' - dueDate: '2021-05-28T00:00:00' - currency: GBP - lineItems: - - description: Advertising refund - unitAmount: 10 - quantity: 1 - subTotal: 10 - taxAmount: 0 - totalAmount: 10 - accountRef: - id: '3384197' - name: Advertising - trackingCategoryRefs: [] - isDirectCost: false - withholdingTax: [] - status: Paid - subTotal: 10 - taxAmount: 0 - totalAmount: 10 - amountDue: 0 - modifiedDate: '2023-03-24T16:07:23Z' - sourceModifiedDate: '2021-08-18T13:52:33' - paymentAllocations: [] - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 16 - _links: - current: - href: /companies/3691c49e-0db4-4172-b3ab-e4084c365013/data/bills?page=1&pageSize=2 - self: - href: /companies/3691c49e-0db4-4172-b3ab-e4084c365013/data/bills - next: - href: /companies/3691c49e-0db4-4172-b3ab-e4084c365013/data/bills?page=2&pageSize=2 - KashFlow: - value: - results: - - id: '97615244' - reference: '25' - supplierRef: - id: '9272052' - supplierName: Supplier man - purchaseOrderRefs: [] - issueDate: '2000-01-01T00:00:00' - dueDate: '2000-01-01T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: '' - unitAmount: 8.33 - quantity: 1 - subTotal: 8.33 - taxAmount: 1.67 - totalAmount: 10 - accountRef: - id: '21481884' - name: Computer equipment cost - itemRef: - id: '122990246' - trackingCategoryRefs: [] - isDirectCost: false - withholdingTax: [] - status: Paid - subTotal: 8.33 - taxAmount: 1.67 - totalAmount: 10 - amountDue: 0 - modifiedDate: '2022-09-30T10:29:15Z' - paymentAllocations: [] - - id: '76144089' - reference: '1' - supplierRef: - id: '6202387' - supplierName: Dell - purchaseOrderRefs: [] - issueDate: '2019-01-28T00:00:00' - dueDate: '2019-02-27T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: '' - unitAmount: 120 - quantity: 5 - subTotal: 600 - taxAmount: 0 - totalAmount: 600 - accountRef: - id: '21481820' - name: Materials purchased - itemRef: - id: '95293985' - trackingCategoryRefs: [] - isDirectCost: false - withholdingTax: [] - status: Paid - subTotal: 600 - taxAmount: 0 - totalAmount: 600 - amountDue: 0 - modifiedDate: '2022-09-30T10:29:15Z' - paymentAllocations: [] - pageNumber: 1 - pageSize: 2 - totalResults: 19 - _links: - current: - href: /companies/3a707a99-89da-4b16-a5d6-595333a16352/data/bills?page=1&pageSize=2 - self: - href: /companies/3a707a99-89da-4b16-a5d6-595333a16352/data/bills - next: - href: /companies/3a707a99-89da-4b16-a5d6-595333a16352/data/bills?page=2&pageSize=2 - Oracle NetSuite: - value: - results: - - id: '7' - supplierRef: - id: '724' - supplierName: Vendor A.A.A - purchaseOrderRefs: [] - issueDate: '2021-03-26T00:00:00' - dueDate: '2021-03-26T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - unitAmount: 120 - quantity: 1 - unitOfMeasurement: litre - subTotal: 120 - totalAmount: 120 - accountRef: - id: '716' - name: Inventory In Transit - trackingCategoryRefs: - - id: location-4 - name: Europe - tracking: - categoryRefs: - - id: location-4 - name: Europe - isBilledTo: Unknown - isRebilledTo: Unknown - isDirectCost: false - withholdingTax: [] - status: PartiallyPaid - subTotal: 120 - taxAmount: 24 - totalAmount: 144 - amountDue: 24 - modifiedDate: '2023-01-30T14:47:34Z' - sourceModifiedDate: '2022-07-05T13:38:10' - paymentAllocations: - - payment: - id: '112' - reference: 'Bill Payment #1' - accountRef: - id: '825' - name: Codat Europe Bank - currency: GBP - currencyRate: 1 - paidOnDate: '2021-03-26T00:00:00' - totalAmount: 120 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -120 - - id: '165372' - supplierRef: - id: '724' - supplierName: Vendor A.A.A - purchaseOrderRefs: [] - issueDate: '2022-07-15T00:00:00' - dueDate: '2022-07-15T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - unitAmount: 555.78 - quantity: 1 - subTotal: 555.78 - totalAmount: 555.78 - accountRef: - id: '844' - name: Asset account test 2 - trackingCategoryRefs: - - id: location-4 - name: Europe - tracking: - categoryRefs: - - id: location-4 - name: Europe - isBilledTo: Unknown - isRebilledTo: Unknown - isDirectCost: false - withholdingTax: [] - status: PartiallyPaid - subTotal: 555.78 - taxAmount: 0 - totalAmount: 555.78 - amountDue: 500 - modifiedDate: '2023-01-30T14:47:34Z' - sourceModifiedDate: '2022-07-15T11:35:47' - paymentAllocations: - - payment: - id: '165373' - reference: 'Bill Payment #2' - accountRef: - id: '825' - name: Codat Europe Bank - currency: GBP - currencyRate: 1 - paidOnDate: '2022-07-15T00:00:00' - totalAmount: 555.78 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -55.78 - pageNumber: 1 - pageSize: 2 - totalResults: 3 - _links: - current: - href: /companies/d5074b08-6a34-4b06-a742-236edf5dc4f1/data/bills?page=1&pageSize=2 - self: - href: /companies/d5074b08-6a34-4b06-a742-236edf5dc4f1/data/bills - next: - href: /companies/d5074b08-6a34-4b06-a742-236edf5dc4f1/data/bills?page=2&pageSize=2 - QuickBooks Desktop: - value: - results: - - id: 3691-1071520776 - reference: '3847498' - supplierRef: - id: B0000-933272656 - supplierName: Patton Hardware Supplies - purchaseOrderRefs: - - id: 3684-1071520443 - purchaseOrderNumber: '6225' - issueDate: '2022-12-02T00:00:00' - dueDate: '2024-01-01T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: |- - Cabinets:Light Pine - Light pine kitchen cabinet wall unit - #CLD- 1235-p - unitAmount: 1500 - quantity: 5 - discountAmount: 0 - subTotal: 7500 - taxAmount: 0 - totalAmount: 7500 - discountPercentage: 0 - accountRef: - id: C0000-933270541 - name: Accounts Payable - itemRef: - id: 110000-933272656 - name: 'Cabinets:Light Pine' - trackingCategoryRefs: - - id: 10000-933272658 - name: New Construction - tracking: - categoryRefs: - - id: 10000-933272658 - name: New Construction - isBilledTo: Unknown - isRebilledTo: Unknown - isDirectCost: false - - description: 'Hardware:Doorknobs Std - Doorknobs Part # DK 3704' - unitAmount: 27 - quantity: 100 - discountAmount: 0 - subTotal: 2700 - taxAmount: 0 - totalAmount: 2700 - discountPercentage: 0 - accountRef: - id: C0000-933270541 - name: Accounts Payable - itemRef: - id: 130000-933272656 - name: 'Hardware:Doorknobs Std' - trackingCategoryRefs: - - id: 10000-933272658 - name: New Construction - tracking: - categoryRefs: - - id: 10000-933272658 - name: New Construction - isBilledTo: Unknown - isRebilledTo: Unknown - isDirectCost: false - - description: 'Hardware:Lk Doorknobs - Locking interior doorknobs Part # DK415' - unitAmount: 34.95 - quantity: 100 - discountAmount: 0 - subTotal: 3495 - taxAmount: 0 - totalAmount: 3495 - discountPercentage: 0 - accountRef: - id: C0000-933270541 - name: Accounts Payable - itemRef: - id: 140000-933272656 - name: 'Hardware:Lk Doorknobs' - trackingCategoryRefs: - - id: 10000-933272658 - name: New Construction - tracking: - categoryRefs: - - id: 10000-933272658 - name: New Construction - isBilledTo: Unknown - isRebilledTo: Unknown - isDirectCost: false - withholdingTax: [] - status: Paid - subTotal: 13695 - taxAmount: 0 - totalAmount: 13695 - amountDue: 0 - modifiedDate: '2023-04-26T09:06:42Z' - sourceModifiedDate: '2023-12-16T05:06:30' - paymentAllocations: - - payment: - id: 9E4C-1182131999 - reference: '115' - accountRef: - id: 20000-933270541 - name: Checking - currency: GBP - currencyRate: 1 - paidOnDate: '2023-01-31T00:00:00' - totalAmount: 13759 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -8695 - - payment: - id: 36AD-1071520917 - note: RC 93 - reference: '484' - accountRef: - id: 20000-933270541 - name: Checking - currency: GBP - currencyRate: 1 - paidOnDate: '2024-12-05T00:00:00' - totalAmount: 5325 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -5000 - metadata: - isDeleted: false - - id: 5CAB-1197713763 - reference: '8374892' - supplierRef: - id: 30000-933272656 - supplierName: C. U. Electric - purchaseOrderRefs: [] - issueDate: '2022-12-15T00:00:00' - dueDate: '2024-01-14T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - unitAmount: 532 - quantity: 1 - discountAmount: 0 - subTotal: 532 - taxAmount: 0 - totalAmount: 532 - discountPercentage: 0 - accountRef: - id: 490000-933270542 - name: Gas and Electric - trackingCategoryRefs: - - id: 80000007-1197713802 - name: Overhead - tracking: - categoryRefs: - - id: 80000007-1197713802 - name: Overhead - isBilledTo: Unknown - isRebilledTo: Unknown - isDirectCost: false - withholdingTax: [] - status: Paid - subTotal: 532 - taxAmount: 0 - totalAmount: 532 - amountDue: 0 - modifiedDate: '2023-04-26T09:06:42Z' - sourceModifiedDate: '2023-12-16T05:06:30' - paymentAllocations: - - payment: - id: 9E42-1182131999 - reference: '113' - accountRef: - id: 20000-933270541 - name: Checking - currency: GBP - currencyRate: 1 - paidOnDate: '2023-01-31T00:00:00' - totalAmount: 532 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -532 - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 239 - _links: - current: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/data/bills?page=1&pageSize=2 - self: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/data/bills - next: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/data/bills?page=2&pageSize=2 - QuickBooks Online: - value: - results: - - id: '18' - reference: '12' - supplierRef: - id: '4' - supplierName: BILLy elliot - purchaseOrderRefs: [] - issueDate: '2019-05-13T00:00:00' - dueDate: '2019-05-13T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - unitAmount: 5 - quantity: 1 - discountAmount: 0 - subTotal: 5 - taxAmount: 0 - totalAmount: 5 - accountRef: - id: '16' - name: Advertising - taxRateRef: - id: NON - name: NON - effectiveTaxRate: 0 - trackingCategoryRefs: [] - tracking: - categoryRefs: [] - isBilledTo: Unknown - isRebilledTo: NotApplicable - isDirectCost: false - withholdingTax: [] - status: Paid - subTotal: 5 - taxAmount: 0 - totalAmount: 5 - amountDue: 0 - modifiedDate: '2023-01-18T11:02:41Z' - sourceModifiedDate: '2022-05-26T10:34:10Z' - paymentAllocations: - - payment: - id: '20' - currency: GBP - currencyRate: 1 - paidOnDate: '2019-05-13T00:00:00' - totalAmount: 0 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -5 - - id: '22' - reference: '12' - supplierRef: - id: '4' - supplierName: BILLy elliot - purchaseOrderRefs: [] - issueDate: '2019-05-13T00:00:00' - dueDate: '2019-05-13T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - unitAmount: 5 - quantity: 1 - discountAmount: 0 - subTotal: 5 - taxAmount: 0 - totalAmount: 5 - accountRef: - id: '16' - name: Advertising - taxRateRef: - id: NON - name: NON - effectiveTaxRate: 0 - trackingCategoryRefs: [] - tracking: - categoryRefs: [] - isBilledTo: Unknown - isRebilledTo: NotApplicable - isDirectCost: false - withholdingTax: [] - status: Paid - subTotal: 5 - taxAmount: 0 - totalAmount: 5 - amountDue: 0 - modifiedDate: '2023-01-18T11:02:41Z' - sourceModifiedDate: '2020-03-23T10:44:06Z' - paymentAllocations: - - payment: - id: '678' - note: payment note test - currency: GBP - currencyRate: 1 - paidOnDate: '2020-03-23T00:00:00' - totalAmount: 0 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -5 - pageNumber: 1 - pageSize: 2 - totalResults: 147 - _links: - current: - href: /companies/10818b5e-6e6a-4ed4-a1c5-3e3efe626e87/data/bills?page=1&pageSize=2 - self: - href: /companies/10818b5e-6e6a-4ed4-a1c5-3e3efe626e87/data/bills - next: - href: /companies/10818b5e-6e6a-4ed4-a1c5-3e3efe626e87/data/bills?page=2&pageSize=2 - QuickBooks Online Sandbox: - value: - results: - - id: '157' - supplierRef: - id: '57' - supplierName: Hall's Promo Items - purchaseOrderRefs: [] - issueDate: '2016-01-06T00:00:00' - dueDate: '2016-01-16T00:00:00' - currency: HKD - currencyRate: 0.081142 - lineItems: - - description: Water bottles -- generic - unitAmount: 66.1717023 - quantity: 100 - discountAmount: 0 - subTotal: 6617.17 - taxAmount: 1323.43 - totalAmount: 7940.6 - taxRateRef: - id: 3_Bills - name: 20.0% S Bills - effectiveTaxRate: 20 - itemRef: - id: '19' - name: Water Bottles - trackingCategoryRefs: [] - tracking: - categoryRefs: [] - customerRef: - id: '55' - companyName: Oxon Insurance - Holiday Party - isBilledTo: Unknown - isRebilledTo: NotApplicable - isDirectCost: false - withholdingTax: [] - status: Paid - subTotal: 6617.17 - taxAmount: 1323.43 - totalAmount: 7940.6 - amountDue: 0 - modifiedDate: '2023-04-26T09:35:58Z' - sourceModifiedDate: '2023-01-26T11:20:45Z' - paymentAllocations: - - payment: - id: '158' - reference: '1067' - accountRef: - id: '81' - name: Current - currency: HKD - currencyRate: 0.078807 - paidOnDate: '2016-01-23T00:00:00' - totalAmount: 7940.6 - allocation: - currency: HKD - currencyRate: 1 - totalAmount: -7940.6 - metadata: - isDeleted: false - - id: '28' - supplierRef: - id: '57' - supplierName: Hall's Promo Items - purchaseOrderRefs: [] - issueDate: '2016-01-06T00:00:00' - dueDate: '2016-01-06T00:00:00' - currency: HKD - currencyRate: 0.081142 - lineItems: - - description: promotional items -- misc engraved items - unitAmount: 8.25 - quantity: 75 - discountAmount: 0 - subTotal: 618.75 - taxAmount: 123.75 - totalAmount: 742.5 - taxRateRef: - id: 3_Bills - name: 20.0% S Bills - effectiveTaxRate: 20 - itemRef: - id: '12' - name: Misc - trackingCategoryRefs: [] - tracking: - categoryRefs: [] - customerRef: - id: '59' - companyName: Ecker Holiday event - isBilledTo: Unknown - isRebilledTo: NotApplicable - isDirectCost: false - withholdingTax: [] - status: Paid - subTotal: 618.75 - taxAmount: 123.75 - totalAmount: 742.5 - amountDue: 0 - modifiedDate: '2023-04-26T09:35:58Z' - sourceModifiedDate: '2016-09-13T21:19:49Z' - paymentAllocations: - - payment: - id: '159' - reference: '1068' - accountRef: - id: '81' - name: Current - currency: HKD - currencyRate: 0.078807 - paidOnDate: '2016-01-23T00:00:00' - totalAmount: 742.5 - allocation: - currency: HKD - currencyRate: 1 - totalAmount: -742.5 - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 711 - _links: - current: - href: /companies/5a7f3597-36e1-4216-86fe-289ad36088a6/data/bills?page=1&pageSize=2 - self: - href: /companies/5a7f3597-36e1-4216-86fe-289ad36088a6/data/bills - next: - href: /companies/5a7f3597-36e1-4216-86fe-289ad36088a6/data/bills?page=2&pageSize=2 - Sage 200cloud: - value: - results: - - id: '45121' - reference: Order no 1 - supplierRef: - id: CON001 - supplierName: Concept Stationery Supplies - purchaseOrderRefs: [] - issueDate: '2020-07-22T00:00:00Z' - dueDate: '2020-02-15T00:00:00Z' - currency: GBP - currencyRate: 1 - lineItems: - - description: Tax Summary - Tax Rate 1 - unitAmount: 0 - quantity: 0 - discountAmount: 0.5 - subTotal: 0 - taxAmount: 20 - totalAmount: 20 - taxRateRef: - id: '1729' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: [] - isDirectCost: false - - description: Goods Summary - unitAmount: 0 - quantity: 0 - discountAmount: 2.5 - subTotal: 100 - taxAmount: 0 - totalAmount: 100 - trackingCategoryRefs: [] - isDirectCost: false - withholdingTax: [] - status: Open - subTotal: 100 - taxAmount: 20 - totalAmount: 120 - amountDue: 120 - modifiedDate: '2022-10-14T09:36:01Z' - sourceModifiedDate: '2020-02-28T14:23:46Z' - note: No1 - paymentAllocations: [] - - id: '45131' - reference: Order 2 - supplierRef: - id: CON001 - supplierName: Concept Stationery Supplies - purchaseOrderRefs: [] - issueDate: '2020-07-22T00:00:00Z' - dueDate: '2020-03-01T00:00:00Z' - currency: GBP - currencyRate: 1 - lineItems: - - description: Tax Summary - Tax Rate 1 - unitAmount: 0 - quantity: 0 - discountAmount: 0 - subTotal: 0 - taxAmount: 31.6 - totalAmount: 31.6 - taxRateRef: - id: '1729' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: [] - isDirectCost: false - - description: Goods Summary - unitAmount: 0 - quantity: 0 - discountAmount: 0 - subTotal: 158 - taxAmount: 0 - totalAmount: 158 - trackingCategoryRefs: [] - isDirectCost: false - withholdingTax: [] - status: PartiallyPaid - subTotal: 158 - taxAmount: 31.6 - totalAmount: 189.6 - amountDue: 179.1 - modifiedDate: '2022-10-14T09:36:01Z' - sourceModifiedDate: '2020-02-28T14:23:46Z' - note: No2 - paymentAllocations: - - payment: - id: '45391' - note: ret1 - reference: Return 1 - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-20T00:00:00' - totalAmount: 0 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: 10.5 - pageNumber: 1 - pageSize: 2 - totalResults: 162 - _links: - current: - href: /companies/93c21e2d-049c-4d24-b41b-57e61c30b69e/data/bills?page=1&pageSize=2 - self: - href: /companies/93c21e2d-049c-4d24-b41b-57e61c30b69e/data/bills - next: - href: /companies/93c21e2d-049c-4d24-b41b-57e61c30b69e/data/bills?page=2&pageSize=2 - Sage 50 (UK): - value: - results: - - id: '92' - reference: '2569' - supplierRef: - id: THO001 - supplierName: Thompsons Electricals - purchaseOrderRefs: [] - issueDate: '2021-01-01T00:00:00' - dueDate: '2022-01-31T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Goods - unitAmount: 5875 - quantity: 1 - subTotal: 5000 - taxAmount: 875 - totalAmount: 5875 - accountRef: - id: '5000' - name: Materials Purchased - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_7 - name: Workshop - tracking: - categoryRefs: - - id: department_7 - name: Workshop - isBilledTo: Unknown - isRebilledTo: Unknown - isDirectCost: false - withholdingTax: [] - status: Paid - subTotal: 5000 - taxAmount: 875 - totalAmount: 5875 - amountDue: 0 - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - note: Goods - paymentAllocations: - - payment: - id: '260' - note: 'Purchase payment 260 linked to, purchase invoice 11, purchase invoice 18, purchase invoice 92, purchase invoice 93.' - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 7141.98 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -5875 - metadata: - isDeleted: false - - id: '93' - reference: '2570' - supplierRef: - id: THO001 - supplierName: Thompsons Electricals - purchaseOrderRefs: [] - issueDate: '2021-01-15T00:00:00' - dueDate: '2022-02-14T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Goods - unitAmount: 1175 - quantity: 1 - subTotal: 1000 - taxAmount: 175 - totalAmount: 1175 - accountRef: - id: '5000' - name: Materials Purchased - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_7 - name: Workshop - tracking: - categoryRefs: - - id: department_7 - name: Workshop - isBilledTo: Unknown - isRebilledTo: Unknown - isDirectCost: false - withholdingTax: [] - status: Paid - subTotal: 1000 - taxAmount: 175 - totalAmount: 1175 - amountDue: 0 - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - note: Goods - paymentAllocations: - - payment: - id: '260' - note: 'Purchase payment 260 linked to, purchase invoice 11, purchase invoice 18, purchase invoice 92, purchase invoice 93.' - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 7141.98 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -1175 - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 95 - _links: - current: - href: /companies/cf5f2a47-2990-4221-bae6-0c19c86ac304/data/bills?page=1&pageSize=2 - self: - href: /companies/cf5f2a47-2990-4221-bae6-0c19c86ac304/data/bills - next: - href: /companies/cf5f2a47-2990-4221-bae6-0c19c86ac304/data/bills?page=2&pageSize=2 - Sage Business Cloud Accounting: - value: - results: - - id: 15a7a15773b011e8aaa5027d54329956 - reference: 19/06/2018 - 435.60 - supplierRef: - id: ca430e0d156011e8b45c025132dab352 - supplierName: Test Supplier - purchaseOrderRefs: [] - issueDate: '2018-06-19T00:00:00' - dueDate: '2018-07-19T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Consulting services - unitAmount: 11 - quantity: 33 - subTotal: 363 - taxAmount: 72.6 - totalAmount: 435.6 - accountRef: - id: 9a995955267a11e797950a57719b2edb - name: Cost of sales - goods - taxRateRef: - id: GB_STANDARD - name: Standard 20.00% - effectiveTaxRate: 20 - itemRef: - id: a87b922b33de11e797950a57719b2edb - name: Consulting services - trackingCategoryRefs: [] - isDirectCost: false - withholdingTax: [] - status: PartiallyPaid - subTotal: 363 - taxAmount: 72.6 - totalAmount: 435.6 - amountDue: 405.6 - modifiedDate: '2022-10-24T14:56:08Z' - sourceModifiedDate: '2020-02-05T15:19:28Z' - paymentAllocations: - - payment: - id: f11134e299cb4456be096265136a7770 - note: Supplier payment using credit/debit card - string - accountRef: - id: 92b80ba619d34cafbedd0eb2e69a82f7 - name: ozzbtdynvoblhytjolxaiohrtrhtpvndiqncpjtcjzwcddpvzl - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-05T00:00:00' - totalAmount: 5 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -5 - - payment: - id: e3e35dcda09642ca8880fc603b0a98e9 - note: Supplier payment using credit/debit card - string - accountRef: - id: 92b80ba619d34cafbedd0eb2e69a82f7 - name: ozzbtdynvoblhytjolxaiohrtrhtpvndiqncpjtcjzwcddpvzl - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-05T00:00:00' - totalAmount: 5 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -5 - - payment: - id: d9b643b9d6e149f4b443cbc6f22fe1dd - note: Supplier payment using credit/debit card - string - accountRef: - id: 92b80ba619d34cafbedd0eb2e69a82f7 - name: ozzbtdynvoblhytjolxaiohrtrhtpvndiqncpjtcjzwcddpvzl - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-05T00:00:00' - totalAmount: 5 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -5 - - payment: - id: cbff2fed2f1641b7bee59f5dd68d29a1 - note: Supplier payment using credit/debit card - string - accountRef: - id: 92b80ba619d34cafbedd0eb2e69a82f7 - name: ozzbtdynvoblhytjolxaiohrtrhtpvndiqncpjtcjzwcddpvzl - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-05T00:00:00' - totalAmount: 5 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -5 - - payment: - id: 3c3ed62353cf4d148352a14027738dbe - note: Supplier payment using credit/debit card - string - accountRef: - id: 92b80ba619d34cafbedd0eb2e69a82f7 - name: ozzbtdynvoblhytjolxaiohrtrhtpvndiqncpjtcjzwcddpvzl - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-05T00:00:00' - totalAmount: 5 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -5 - - payment: - id: 332e402b9d4b4614af82594d186f5f29 - note: Supplier payment using credit/debit card - string - accountRef: - id: 92b80ba619d34cafbedd0eb2e69a82f7 - name: ozzbtdynvoblhytjolxaiohrtrhtpvndiqncpjtcjzwcddpvzl - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-05T00:00:00' - totalAmount: 5 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -5 - - id: 09034445789211e8aaa5027d54329956 - reference: '25/06/2018 - 1,000.00' - supplierRef: - id: ec716559789111e8aaa5027d54329956 - supplierName: Bagels Limited - purchaseOrderRefs: [] - issueDate: '2018-06-25T00:00:00' - dueDate: '2018-07-25T00:00:00' - currency: USD - currencyRate: 0.752601305 - lineItems: - - description: Bagels - unitAmount: 1000 - quantity: 1 - subTotal: 1000 - taxAmount: 0 - totalAmount: 1000 - accountRef: - id: 9a995955267a11e797950a57719b2edb - name: Cost of sales - goods - taxRateRef: - id: GB_ZERO - name: Zero Rated 0.00% - effectiveTaxRate: 0 - trackingCategoryRefs: [] - isDirectCost: false - withholdingTax: [] - status: Paid - subTotal: 1000 - taxAmount: 0 - totalAmount: 1000 - amountDue: 0 - modifiedDate: '2022-10-24T14:56:08Z' - sourceModifiedDate: '2022-02-22T13:48:56Z' - paymentAllocations: - - payment: - id: 66d010243e3441ba89a793446eb9c74b - note: Supplier payment using credit/debit card - Test note - accountRef: - id: 9a25937b267a11e797950a57719b2edb - name: Current - currency: USD - currencyRate: 0.734679838 - paidOnDate: '2022-02-16T00:00:00' - totalAmount: 1000 - allocation: - currency: USD - currencyRate: 1 - totalAmount: -1000 - pageNumber: 1 - pageSize: 2 - totalResults: 4658 - _links: - current: - href: /companies/390083e2-351b-407c-a3be-55081c36c182/data/bills?page=1&pageSize=2 - self: - href: /companies/390083e2-351b-407c-a3be-55081c36c182/data/bills - next: - href: /companies/390083e2-351b-407c-a3be-55081c36c182/data/bills?page=2&pageSize=2 - Sage Intacct: - value: - results: - - id: '4470' - reference: test - supplierRef: - id: '3' - supplierName: ADP - purchaseOrderRefs: [] - issueDate: '2021-10-19T00:00:00' - dueDate: '2021-10-29T00:00:00' - currency: GBP - lineItems: - - unitAmount: 25 - quantity: 1 - subTotal: 25 - taxAmount: 0 - totalAmount: 25 - accountRef: - id: '3' - name: Accounts Payable - taxRateRef: - id: '82' - name: UK Purchase Goods Zero Rate - effectiveTaxRate: 0 - trackingCategoryRefs: - - id: DEPARTMENT-3 - name: Admin - - id: LOCATION-11 - name: Codat Test Entity - tracking: - categoryRefs: - - id: DEPARTMENT-3 - name: Admin - - id: LOCATION-11 - name: Codat Test Entity - isBilledTo: Unknown - isRebilledTo: Unknown - isDirectCost: false - withholdingTax: [] - status: Paid - subTotal: 25 - taxAmount: 0 - totalAmount: 25 - amountDue: 0 - modifiedDate: '2023-04-04T16:31:37Z' - sourceModifiedDate: '2022-02-23T12:06:58' - note: '' - paymentAllocations: - - payment: - id: '4471' - note: '' - accountRef: - id: '353' - name: Current Account - currency: GBP - paidOnDate: '2022-01-06T00:00:00' - totalAmount: 20 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -20 - - payment: - id: '4472' - note: '' - accountRef: - id: '353' - name: Current Account - currency: GBP - paidOnDate: '2022-01-06T00:00:00' - totalAmount: 5 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -5 - metadata: - isDeleted: false - - id: '4705' - reference: JohnAndRob - supplierRef: - id: '8' - supplierName: Worldwide Commercial - purchaseOrderRefs: [] - issueDate: '2022-02-04T00:00:00' - dueDate: '2022-02-19T00:00:00' - currency: USD - currencyRate: 14 - lineItems: - - description: Some text for a description - unitAmount: 10 - quantity: 1 - subTotal: 10 - taxAmount: 0 - totalAmount: 10 - accountRef: - id: '3' - name: Accounts Payable - taxRateRef: - id: '49' - name: EC Purchase Goods Zero Rate - effectiveTaxRate: 0 - trackingCategoryRefs: - - id: DEPARTMENT-3 - name: Admin - - id: LOCATION-11 - name: Codat Test Entity - tracking: - categoryRefs: - - id: DEPARTMENT-3 - name: Admin - - id: LOCATION-11 - name: Codat Test Entity - isBilledTo: Unknown - isRebilledTo: Unknown - isDirectCost: false - withholdingTax: [] - status: Open - subTotal: 10 - taxAmount: 0 - totalAmount: 10 - amountDue: 10 - modifiedDate: '2023-04-04T16:31:37Z' - sourceModifiedDate: '2022-04-22T12:24:59' - note: Some note on my bill - paymentAllocations: [] - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 17 - _links: - current: - href: /companies/df02b289-cb16-4964-ac4d-9fd60b04538e/data/bills?page=1&pageSize=2 - self: - href: /companies/df02b289-cb16-4964-ac4d-9fd60b04538e/data/bills - next: - href: /companies/df02b289-cb16-4964-ac4d-9fd60b04538e/data/bills?page=2&pageSize=2 - Xero: - value: - results: - - id: 3945273c-cc04-479f-a4b5-1e3dc7a55ed1 - reference: '' - supplierRef: - id: 1262c350-fe0f-40ec-aeff-41c95b4a45af - supplierName: DIISR - Small Business Services - purchaseOrderRefs: [] - issueDate: '2021-11-19T00:00:00' - dueDate: '2021-12-20T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Half day training - Microsoft Office - unitAmount: 1800 - quantity: 1 - discountAmount: 0 - subTotal: 1800 - taxAmount: 360 - totalAmount: 2160 - discountPercentage: 0 - accountRef: - id: 46f9461e-788b-4906-8b74-d1ea17f6dc10 - name: Consulting - taxRateRef: - id: INPUT2 - name: 20% (VAT on Expenses) - effectiveTaxRate: 20 - itemRef: - id: 489558f5-27b7-4f37-ad9f-d84611c2e2ab - name: Half day training - Microsoft Office - trackingCategoryRefs: [] - isDirectCost: false - - description: Desktop/network support via email & phone.Per month fixed fee for minimum 20 hours/month. - unitAmount: 4000 - quantity: 1 - discountAmount: 0 - subTotal: 4000 - taxAmount: 800 - totalAmount: 4800 - discountPercentage: 0 - accountRef: - id: f96c9458-d724-47bf-8f74-a9d5726465ce - name: General Expenses - taxRateRef: - id: INPUT2 - name: 20% (VAT on Expenses) - effectiveTaxRate: 20 - itemRef: - id: f8fb7e00-5e5d-466c-aef0-15861f73d04f - name: Desktop/network support via email & phone - trackingCategoryRefs: [] - isDirectCost: false - - description: Stationery charges - unitAmount: 32 - quantity: 8 - discountAmount: 0 - subTotal: 256 - taxAmount: 51.2 - totalAmount: 307.2 - discountPercentage: 0 - accountRef: - id: cba6527d-f102-4538-b421-e483233e9d5a - name: Printing & Stationery - taxRateRef: - id: INPUT2 - name: 20% (VAT on Expenses) - effectiveTaxRate: 20 - trackingCategoryRefs: [] - isDirectCost: false - withholdingTax: [] - status: Paid - subTotal: 6056 - taxAmount: 1211.2 - totalAmount: 7267.2 - amountDue: 0 - modifiedDate: '2023-03-15T20:36:09Z' - sourceModifiedDate: '2021-01-02T21:07:23' - paymentAllocations: - - payment: - id: 74004690-82a1-4810-aaca-6ce575af94b4 - accountRef: - id: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - name: Business Bank Account - currency: GBP - currencyRate: 1 - paidOnDate: '2021-12-20T00:00:00' - totalAmount: 7267.2 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -7267.2 - metadata: - isDeleted: false - - id: 09aa506f-cb81-4cd3-a1ea-6a0b91804d5a - reference: '' - supplierRef: - id: 1262c350-fe0f-40ec-aeff-41c95b4a45af - supplierName: DIISR - Small Business Services - purchaseOrderRefs: [] - issueDate: '2022-01-17T00:00:00' - dueDate: '2022-02-17T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Half day training - Microsoft Office - unitAmount: 1800 - quantity: 1 - discountAmount: 0 - subTotal: 1800 - taxAmount: 360 - totalAmount: 2160 - discountPercentage: 0 - accountRef: - id: 46f9461e-788b-4906-8b74-d1ea17f6dc10 - name: Consulting - taxRateRef: - id: INPUT2 - name: 20% (VAT on Expenses) - effectiveTaxRate: 20 - itemRef: - id: 489558f5-27b7-4f37-ad9f-d84611c2e2ab - name: Half day training - Microsoft Office - trackingCategoryRefs: [] - isDirectCost: false - - description: Desktop/network support via email & phone.Per month fixed fee for minimum 20 hours/month. - unitAmount: 4000 - quantity: 1 - discountAmount: 0 - subTotal: 4000 - taxAmount: 800 - totalAmount: 4800 - discountPercentage: 0 - accountRef: - id: f96c9458-d724-47bf-8f74-a9d5726465ce - name: General Expenses - taxRateRef: - id: INPUT2 - name: 20% (VAT on Expenses) - effectiveTaxRate: 20 - itemRef: - id: f8fb7e00-5e5d-466c-aef0-15861f73d04f - name: Desktop/network support via email & phone - trackingCategoryRefs: [] - isDirectCost: false - - description: Stationery charges - unitAmount: 32 - quantity: 8 - discountAmount: 0 - subTotal: 256 - taxAmount: 51.2 - totalAmount: 307.2 - discountPercentage: 0 - accountRef: - id: cba6527d-f102-4538-b421-e483233e9d5a - name: Printing & Stationery - taxRateRef: - id: INPUT2 - name: 20% (VAT on Expenses) - effectiveTaxRate: 20 - trackingCategoryRefs: [] - isDirectCost: false - withholdingTax: [] - status: Paid - subTotal: 6056 - taxAmount: 1211.2 - totalAmount: 7267.2 - amountDue: 0 - modifiedDate: '2023-03-15T20:36:09Z' - sourceModifiedDate: '2021-01-02T21:06:22' - paymentAllocations: - - payment: - id: f2062172-b444-4c8b-b797-9f4c7a4244c7 - accountRef: - id: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - name: Business Bank Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-02-17T00:00:00' - totalAmount: 7267.2 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -7267.2 - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 44 - _links: - current: - href: /companies/5ced9667-a310-443a-a711-958d36377141/data/bills?page=1&pageSize=2 - self: - href: /companies/5ced9667-a310-443a-a711-958d36377141/data/bills - next: - href: /companies/5ced9667-a310-443a-a711-958d36377141/data/bills?page=2&pageSize=2 - Zoho Books: - value: - results: - - id: '104957000000152027' - reference: '1' - supplierRef: - id: '104957000000152001' - supplierName: Mr. P N - purchaseOrderRefs: [] - issueDate: '2020-06-23T00:00:00' - dueDate: '2020-06-23T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: [] - withholdingTax: [] - status: Paid - subTotal: 0 - taxAmount: 0 - totalAmount: 10 - amountDue: 0 - modifiedDate: '2022-10-03T08:40:37Z' - sourceModifiedDate: '2020-06-23T13:47:17' - paymentAllocations: [] - - id: '104957000000152067' - reference: '2' - supplierRef: - id: '104957000000152001' - supplierName: Mr. P N - purchaseOrderRefs: [] - issueDate: '2020-06-23T00:00:00' - dueDate: '2020-06-23T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: [] - withholdingTax: [] - status: Paid - subTotal: 0 - taxAmount: 0 - totalAmount: 12 - amountDue: 0 - modifiedDate: '2022-10-03T08:40:37Z' - sourceModifiedDate: '2020-11-04T13:07:23' - paymentAllocations: [] - pageNumber: 1 - pageSize: 2 - totalResults: 36 - _links: - current: - href: /companies/d0b68840-db50-4bc3-b88c-96e225333fea/data/bills?page=1&pageSize=2 - self: - href: /companies/d0b68840-db50-4bc3-b88c-96e225333fea/data/bills - next: - href: /companies/d0b68840-db50-4bc3-b88c-96e225333fea/data/bills?page=2&pageSize=2 - '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' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - description: | - The *List bills* endpoint returns a list of [bills](https://docs.codat.io/lending-api#/schemas/Bill) for a given company's connection. - - [Bills](https://docs.codat.io/lending-api#/schemas/Bill) are invoices that represent the SMB's financial obligations to their supplier for a purchase of goods or services. - - Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data). - - ### Tips and traps - - To access the `paymentAllocations` property, ensure that the `billPayments` data type is queued and cached in Codat before retrieving `bills` from Codat's cache. - operationId: list-accounting-bills - x-speakeasy-group: accounts-payable.bills - '/companies/{companyId}/data/bills/{billId}': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/accountingBillId' - get: - tags: - - Accounts payable - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/AccountingBill' - examples: - Clear Books: - value: - id: 81539597-e681-40c9-a4dd-ec2fffcde572 - reference: b465a2c9-3212-4620-889b-6328ba148215 - supplierRef: - id: 8GeHBdBZiZ - supplierName: 'DuBuque, Goyette and Franecki' - purchaseOrderRefs: [] - issueDate: '2022-04-29T00:00:00' - dueDate: '2022-05-06T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Grease Trap - unitAmount: 2781.94 - quantity: 5 - discountAmount: 0 - subTotal: 13909.7 - taxAmount: 1390.97 - totalAmount: 15300.67 - discountPercentage: 0 - accountRef: - id: 72df89d2-512b-4455-af51-a6b563733842 - name: Sales - taxRateRef: - id: 6c88aff3-7cb9-4980-a3d3-443e72e02498 - name: Sales Tax (10%) - effectiveTaxRate: 10 - itemRef: - id: 22aee6bd-4767-48c4-8a13-fdf85b91fc80 - name: 600 Litre Grease Trap - trackingCategoryRefs: [] - isDirectCost: false - - description: Grease Trap - unitAmount: 1371.39 - quantity: 5 - discountAmount: 0 - subTotal: 6856.95 - taxAmount: 685.7 - totalAmount: 7542.65 - discountPercentage: 0 - accountRef: - id: 72df89d2-512b-4455-af51-a6b563733842 - name: Sales - taxRateRef: - id: 6c88aff3-7cb9-4980-a3d3-443e72e02498 - name: Sales Tax (10%) - effectiveTaxRate: 10 - itemRef: - id: 9409d23d-1011-432e-98a4-591fcd8d5404 - name: 300 Litre Grease Trap - trackingCategoryRefs: [] - isDirectCost: false - - description: Grease Trap - unitAmount: 1371.39 - quantity: 6 - discountAmount: 0 - subTotal: 8228.34 - taxAmount: 822.83 - totalAmount: 9051.17 - discountPercentage: 0 - accountRef: - id: 72df89d2-512b-4455-af51-a6b563733842 - name: Sales - taxRateRef: - id: 6c88aff3-7cb9-4980-a3d3-443e72e02498 - name: Sales Tax (10%) - effectiveTaxRate: 10 - itemRef: - id: 9409d23d-1011-432e-98a4-591fcd8d5404 - name: 300 Litre Grease Trap - trackingCategoryRefs: [] - isDirectCost: false - - description: Grease Trap - unitAmount: 2781.94 - quantity: 3 - discountAmount: 0 - subTotal: 8345.82 - taxAmount: 834.58 - totalAmount: 9180.4 - discountPercentage: 0 - accountRef: - id: 72df89d2-512b-4455-af51-a6b563733842 - name: Sales - taxRateRef: - id: 6c88aff3-7cb9-4980-a3d3-443e72e02498 - name: Sales Tax (10%) - effectiveTaxRate: 10 - itemRef: - id: 22aee6bd-4767-48c4-8a13-fdf85b91fc80 - name: 600 Litre Grease Trap - trackingCategoryRefs: [] - isDirectCost: false - - description: Underground - Trapped Road Gully 450mm x 450mm - unitAmount: 402.89 - quantity: 8 - discountAmount: 0 - subTotal: 3223.12 - taxAmount: 322.31 - totalAmount: 3545.43 - discountPercentage: 0 - accountRef: - id: 72df89d2-512b-4455-af51-a6b563733842 - name: Sales - taxRateRef: - id: 6c88aff3-7cb9-4980-a3d3-443e72e02498 - name: Sales Tax (10%) - effectiveTaxRate: 10 - itemRef: - id: 3abf0883-03f7-44c6-bc15-1372522d25e1 - name: Heavy Duty Hinged Gully Grating - trackingCategoryRefs: [] - isDirectCost: false - - description: Underground - Drain Bottle Gullies 90 degree Rectangular - unitAmount: 95.08 - quantity: 7 - discountAmount: 0 - subTotal: 665.56 - taxAmount: 66.56 - totalAmount: 732.12 - discountPercentage: 0 - accountRef: - id: 72df89d2-512b-4455-af51-a6b563733842 - name: Sales - taxRateRef: - id: 6c88aff3-7cb9-4980-a3d3-443e72e02498 - name: Sales Tax (10%) - effectiveTaxRate: 10 - itemRef: - id: '6' - name: Back Inlet Roddable Gully 90� Outlet Rectangular Grid - trackingCategoryRefs: [] - isDirectCost: false - - description: Underground - Drain Bottle Gullies 90 degree Rectangular - unitAmount: 95.08 - quantity: 1 - discountAmount: 0 - subTotal: 95.08 - taxAmount: 9.51 - totalAmount: 104.59 - discountPercentage: 0 - accountRef: - id: 72df89d2-512b-4455-af51-a6b563733842 - name: Sales - taxRateRef: - id: 6c88aff3-7cb9-4980-a3d3-443e72e02498 - name: Sales Tax (10%) - effectiveTaxRate: 10 - itemRef: - id: '6' - name: Back Inlet Roddable Gully 90� Outlet Rectangular Grid - trackingCategoryRefs: [] - isDirectCost: false - - description: Grease Trap - unitAmount: 1371.39 - quantity: 2 - discountAmount: 0 - subTotal: 2742.78 - taxAmount: 274.28 - totalAmount: 3017.06 - discountPercentage: 0 - accountRef: - id: 72df89d2-512b-4455-af51-a6b563733842 - name: Sales - taxRateRef: - id: 6c88aff3-7cb9-4980-a3d3-443e72e02498 - name: Sales Tax (10%) - effectiveTaxRate: 10 - itemRef: - id: 9409d23d-1011-432e-98a4-591fcd8d5404 - name: 300 Litre Grease Trap - trackingCategoryRefs: [] - isDirectCost: false - - description: Grease Trap - unitAmount: 2781.94 - quantity: 1 - discountAmount: 0 - subTotal: 2781.94 - taxAmount: 278.19 - totalAmount: 3060.13 - discountPercentage: 0 - accountRef: - id: 72df89d2-512b-4455-af51-a6b563733842 - name: Sales - taxRateRef: - id: 6c88aff3-7cb9-4980-a3d3-443e72e02498 - name: Sales Tax (10%) - effectiveTaxRate: 10 - itemRef: - id: 22aee6bd-4767-48c4-8a13-fdf85b91fc80 - name: 600 Litre Grease Trap - trackingCategoryRefs: [] - isDirectCost: false - - description: Underground - Drain Bottle Gullies 90 degree Rectangular - unitAmount: 95.08 - quantity: 7 - discountAmount: 0 - subTotal: 665.56 - taxAmount: 66.56 - totalAmount: 732.12 - discountPercentage: 0 - accountRef: - id: 72df89d2-512b-4455-af51-a6b563733842 - name: Sales - taxRateRef: - id: 6c88aff3-7cb9-4980-a3d3-443e72e02498 - name: Sales Tax (10%) - effectiveTaxRate: 10 - itemRef: - id: '6' - name: Back Inlet Roddable Gully 90� Outlet Rectangular Grid - trackingCategoryRefs: [] - isDirectCost: false - - description: Grease Trap - unitAmount: 1251.89 - quantity: 4 - discountAmount: 0 - subTotal: 5007.56 - taxAmount: 500.76 - totalAmount: 5508.32 - discountPercentage: 0 - accountRef: - id: 72df89d2-512b-4455-af51-a6b563733842 - name: Sales - taxRateRef: - id: 6c88aff3-7cb9-4980-a3d3-443e72e02498 - name: Sales Tax (10%) - effectiveTaxRate: 10 - itemRef: - id: 51077072-d5c3-463b-9cb4-7da2e11886f9 - name: 150 Litre Grease Trap - trackingCategoryRefs: [] - isDirectCost: false - - description: Grease Trap - unitAmount: 1371.39 - quantity: 9 - discountAmount: 0 - subTotal: 12342.51 - taxAmount: 1234.25 - totalAmount: 13576.76 - discountPercentage: 0 - accountRef: - id: 72df89d2-512b-4455-af51-a6b563733842 - name: Sales - taxRateRef: - id: 6c88aff3-7cb9-4980-a3d3-443e72e02498 - name: Sales Tax (10%) - effectiveTaxRate: 10 - itemRef: - id: 9409d23d-1011-432e-98a4-591fcd8d5404 - name: 300 Litre Grease Trap - trackingCategoryRefs: [] - isDirectCost: false - withholdingTax: [] - status: Paid - subTotal: 64864.92 - taxAmount: 6486.5 - totalAmount: 71351.42 - amountDue: 0 - modifiedDate: '2023-04-26T12:38:16Z' - sourceModifiedDate: '2023-02-14T17:09:02' - note: 'Bill with 12 line items, totaling 71351.42' - paymentAllocations: - - payment: - id: dcb18480-8b69-44d8-aa26-268b6a80d170 - note: Bill Payment against bill 81539597-e681-40c9-a4dd-ec2fffcde572 - accountRef: - id: dbcaf288-2b39-4b95-8ab3-42202ab15918 - name: Business Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-05-06T00:00:00' - totalAmount: 71351.42 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2022-05-06T00:00:00' - totalAmount: -71351.42 - metadata: - isDeleted: false - Dynamics 365 Business Central: - value: - id: 4019ee2b-d05a-ed11-8c34-000d3a0d28a2-108276 - reference: '108276' - supplierRef: - id: c01217b3-89d1-ea11-bbaa-000d3a2b9185 - supplierName: First Up Consultants - purchaseOrderRefs: [] - issueDate: '2019-01-01T00:00:00' - dueDate: '2019-01-01T00:00:00' - currency: GBP - lineItems: - - description: ATHENS Desk - unitAmount: 506.6 - quantity: 4 - discountAmount: 202.64 - subTotal: 1823.76 - taxAmount: 364.75 - totalAmount: 2188.51 - discountPercentage: 10 - accountRef: - id: 6a1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: Inventory - 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: [] - isDirectCost: false - withholdingTax: [] - status: Open - subTotal: 1823.76 - taxAmount: 364.75 - totalAmount: 2188.51 - amountDue: 2188.51 - modifiedDate: '2023-03-27T14:21:25Z' - sourceModifiedDate: '2022-11-02T17:02:48Z' - note: '129148' - paymentAllocations: [] - metadata: - isDeleted: false - Exact (Netherlands): - value: - id: 1c55118b-793e-4437-9c13-4f554b9ca989 - reference: '19600006' - supplierRef: - id: 5e6f49b9-6489-4b82-83e7-291d308919bb - supplierName: Mickey Mouse - purchaseOrderRefs: [] - issueDate: '2019-12-16T00:00:00Z' - dueDate: '2019-11-09T00: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: [] - isDirectCost: false - withholdingTax: [] - status: Paid - subTotal: 10 - taxAmount: 2.1 - totalAmount: 12.1 - amountDue: 0 - modifiedDate: '2022-10-26T13:32:18Z' - sourceModifiedDate: '2020-01-03T15:06:02Z' - paymentAllocations: - - payment: - id: d9a2980b-2a43-46f2-9c7f-413d925b3cdd - reference: '20200032' - accountRef: - id: d79d65bd-1d7d-4f55-95d3-76b3a7b7b823 - name: Bank 1 - currency: EUR - currencyRate: 1 - paidOnDate: '2021-03-22T00:00:00' - totalAmount: 12.1 - allocation: - currency: EUR - currencyRate: 1 - totalAmount: -12.1 - Exact (UK): - value: - id: e7a45898-2db3-424c-acb9-a51647740f26 - reference: '17600002' - supplierRef: - id: a7cad20d-44db-442b-ac1f-90475802d6fb - supplierName: Pencils Pencils Pencils - purchaseOrderRefs: [] - issueDate: '2017-09-26T00:00:00Z' - dueDate: '2017-10-26T00:00:00Z' - currency: GBP - currencyRate: 1 - lineItems: - - description: Stationery - unitAmount: 400 - quantity: 2 - discountAmount: 0 - subTotal: 800 - taxAmount: 160 - totalAmount: 960 - accountRef: - id: e5e9e994-0f14-4614-b162-7b5593b21276 - name: Finished Goods Stock - taxRateRef: - id: 63cd143a-66ab-4320-8a6d-ab6be85ed048 - name: UK purchases standard rate � Excluding - effectiveTaxRate: 20 - itemRef: - id: '001' - trackingCategoryRefs: [] - isDirectCost: false - withholdingTax: [] - status: Paid - subTotal: 800 - taxAmount: 160 - totalAmount: 960 - amountDue: 0 - modifiedDate: '2022-10-26T13:33:20Z' - sourceModifiedDate: '2019-01-11T14:18:17Z' - paymentAllocations: - - payment: - id: 7a5f621b-739f-4ed8-b738-2aae3ef886ac - reference: '17200006' - accountRef: - id: 4a4e34b5-7f62-4b64-a44a-073398b14b41 - name: Bank - currency: GBP - currencyRate: 1 - paidOnDate: '2017-10-11T00:00:00' - totalAmount: 123 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -123 - FreeAgent: - value: - id: '16609552' - reference: MATT - U - supplierRef: - id: '7169654' - supplierName: The Eagle - purchaseOrderRefs: [] - issueDate: '2014-08-21T00:00:00' - dueDate: '2018-09-20T00:00:00' - currency: GBP - lineItems: - - unitAmount: 125 - quantity: 1 - taxAmount: 25 - totalAmount: 150 - accountRef: - id: '285' - name: Accommodation and Meals - trackingCategoryRefs: [] - isDirectCost: false - withholdingTax: [] - status: Open - subTotal: 125 - taxAmount: 25 - totalAmount: 150 - amountDue: 150 - modifiedDate: '2023-04-25T14:19:10Z' - sourceModifiedDate: '2020-11-11T12:48:55Z' - paymentAllocations: [] - metadata: - isDeleted: false - FreshBooks: - value: - id: '27' - supplierRef: - id: '87' - purchaseOrderRefs: [] - issueDate: '2021-04-26T00:00:00' - dueDate: '2021-05-26T00:00:00' - currency: USD - lineItems: - - description: Grocery - unitAmount: 50 - quantity: 1 - subTotal: 50 - taxAmount: 0 - totalAmount: 50 - accountRef: - id: '3384197' - name: Advertising - trackingCategoryRefs: [] - isDirectCost: false - withholdingTax: [] - status: Open - subTotal: 50 - taxAmount: 0 - totalAmount: 50 - amountDue: 50 - modifiedDate: '2023-03-24T16:07:23Z' - sourceModifiedDate: '2021-04-26T19:34:22' - paymentAllocations: [] - metadata: - isDeleted: false - KashFlow: - value: - id: '97615244' - reference: '25' - supplierRef: - id: '9272052' - supplierName: Supplier man - purchaseOrderRefs: [] - issueDate: '2000-01-01T00:00:00' - dueDate: '2000-01-01T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: '' - unitAmount: 8.33 - quantity: 1 - subTotal: 8.33 - taxAmount: 1.67 - totalAmount: 10 - accountRef: - id: '21481884' - name: Computer equipment cost - itemRef: - id: '122990246' - trackingCategoryRefs: [] - isDirectCost: false - withholdingTax: [] - status: Paid - subTotal: 8.33 - taxAmount: 1.67 - totalAmount: 10 - amountDue: 0 - modifiedDate: '2022-09-30T10:29:15Z' - paymentAllocations: [] - Oracle NetSuite: - value: - id: '7' - supplierRef: - id: '724' - supplierName: Vendor A.A.A - purchaseOrderRefs: [] - issueDate: '2021-03-26T00:00:00' - dueDate: '2021-03-26T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - unitAmount: 120 - quantity: 1 - unitOfMeasurement: litre - subTotal: 120 - totalAmount: 120 - accountRef: - id: '716' - name: Inventory In Transit - trackingCategoryRefs: - - id: location-4 - name: Europe - tracking: - categoryRefs: - - id: location-4 - name: Europe - isBilledTo: Unknown - isRebilledTo: Unknown - isDirectCost: false - withholdingTax: [] - status: PartiallyPaid - subTotal: 120 - taxAmount: 24 - totalAmount: 144 - amountDue: 24 - modifiedDate: '2023-01-30T14:47:34Z' - sourceModifiedDate: '2022-07-05T13:38:10' - paymentAllocations: - - payment: - id: '112' - reference: 'Bill Payment #1' - accountRef: - id: '825' - name: Codat Europe Bank - currency: GBP - currencyRate: 1 - paidOnDate: '2021-03-26T00:00:00' - totalAmount: 120 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -120 - QuickBooks Desktop: - value: - id: 3691-1071520776 - reference: '3847498' - supplierRef: - id: B0000-933272656 - supplierName: Patton Hardware Supplies - purchaseOrderRefs: - - id: 3684-1071520443 - purchaseOrderNumber: '6225' - issueDate: '2022-12-02T00:00:00' - dueDate: '2024-01-01T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: |- - Cabinets:Light Pine - Light pine kitchen cabinet wall unit - #CLD- 1235-p - unitAmount: 1500 - quantity: 5 - discountAmount: 0 - subTotal: 7500 - taxAmount: 0 - totalAmount: 7500 - discountPercentage: 0 - accountRef: - id: C0000-933270541 - name: Accounts Payable - itemRef: - id: 110000-933272656 - name: 'Cabinets:Light Pine' - trackingCategoryRefs: - - id: 10000-933272658 - name: New Construction - tracking: - categoryRefs: - - id: 10000-933272658 - name: New Construction - isBilledTo: Unknown - isRebilledTo: Unknown - isDirectCost: false - - description: 'Hardware:Doorknobs Std - Doorknobs Part # DK 3704' - unitAmount: 27 - quantity: 100 - discountAmount: 0 - subTotal: 2700 - taxAmount: 0 - totalAmount: 2700 - discountPercentage: 0 - accountRef: - id: C0000-933270541 - name: Accounts Payable - itemRef: - id: 130000-933272656 - name: 'Hardware:Doorknobs Std' - trackingCategoryRefs: - - id: 10000-933272658 - name: New Construction - tracking: - categoryRefs: - - id: 10000-933272658 - name: New Construction - isBilledTo: Unknown - isRebilledTo: Unknown - isDirectCost: false - - description: 'Hardware:Lk Doorknobs - Locking interior doorknobs Part # DK415' - unitAmount: 34.95 - quantity: 100 - discountAmount: 0 - subTotal: 3495 - taxAmount: 0 - totalAmount: 3495 - discountPercentage: 0 - accountRef: - id: C0000-933270541 - name: Accounts Payable - itemRef: - id: 140000-933272656 - name: 'Hardware:Lk Doorknobs' - trackingCategoryRefs: - - id: 10000-933272658 - name: New Construction - tracking: - categoryRefs: - - id: 10000-933272658 - name: New Construction - isBilledTo: Unknown - isRebilledTo: Unknown - isDirectCost: false - withholdingTax: [] - status: Paid - subTotal: 13695 - taxAmount: 0 - totalAmount: 13695 - amountDue: 0 - modifiedDate: '2023-04-26T09:06:42Z' - sourceModifiedDate: '2023-12-16T05:06:30' - paymentAllocations: - - payment: - id: 36AD-1071520917 - note: RC 93 - reference: '484' - accountRef: - id: 20000-933270541 - name: Checking - currency: GBP - currencyRate: 1 - paidOnDate: '2024-12-05T00:00:00' - totalAmount: 5325 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -5000 - - payment: - id: 9E4C-1182131999 - reference: '115' - accountRef: - id: 20000-933270541 - name: Checking - currency: GBP - currencyRate: 1 - paidOnDate: '2023-01-31T00:00:00' - totalAmount: 13759 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -8695 - metadata: - isDeleted: false - QuickBooks Online: - value: - id: '18' - reference: '12' - supplierRef: - id: '4' - supplierName: BILLy elliot - purchaseOrderRefs: [] - issueDate: '2019-05-13T00:00:00' - dueDate: '2019-05-13T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - unitAmount: 5 - quantity: 1 - discountAmount: 0 - subTotal: 5 - taxAmount: 0 - totalAmount: 5 - accountRef: - id: '16' - name: Advertising - taxRateRef: - id: NON - name: NON - effectiveTaxRate: 0 - trackingCategoryRefs: [] - tracking: - categoryRefs: [] - isBilledTo: Unknown - isRebilledTo: NotApplicable - isDirectCost: false - withholdingTax: [] - status: Paid - subTotal: 5 - taxAmount: 0 - totalAmount: 5 - amountDue: 0 - modifiedDate: '2023-01-18T11:02:41Z' - sourceModifiedDate: '2022-05-26T10:34:10Z' - paymentAllocations: - - payment: - id: '20' - currency: GBP - currencyRate: 1 - paidOnDate: '2019-05-13T00:00:00' - totalAmount: 0 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -5 - QuickBooks Online Sandbox: - value: - id: '157' - supplierRef: - id: '57' - supplierName: Hall's Promo Items - purchaseOrderRefs: [] - issueDate: '2016-01-06T00:00:00' - dueDate: '2016-01-16T00:00:00' - currency: HKD - currencyRate: 0.081142 - lineItems: - - description: Water bottles -- generic - unitAmount: 66.1717023 - quantity: 100 - discountAmount: 0 - subTotal: 6617.17 - taxAmount: 1323.43 - totalAmount: 7940.6 - taxRateRef: - id: 3_Bills - name: 20.0% S Bills - effectiveTaxRate: 20 - itemRef: - id: '19' - name: Water Bottles - trackingCategoryRefs: [] - tracking: - categoryRefs: [] - customerRef: - id: '55' - companyName: Oxon Insurance - Holiday Party - isBilledTo: Unknown - isRebilledTo: NotApplicable - isDirectCost: false - withholdingTax: [] - status: Paid - subTotal: 6617.17 - taxAmount: 1323.43 - totalAmount: 7940.6 - amountDue: 0 - modifiedDate: '2023-04-26T09:35:58Z' - sourceModifiedDate: '2023-01-26T11:20:45Z' - paymentAllocations: - - payment: - id: '158' - reference: '1067' - accountRef: - id: '81' - name: Current - currency: HKD - currencyRate: 0.078807 - paidOnDate: '2016-01-23T00:00:00' - totalAmount: 7940.6 - allocation: - currency: HKD - currencyRate: 1 - totalAmount: -7940.6 - metadata: - isDeleted: false - Sage 200cloud: - value: - id: '45121' - reference: Order no 1 - supplierRef: - id: CON001 - supplierName: Concept Stationery Supplies - purchaseOrderRefs: [] - issueDate: '2020-07-22T00:00:00Z' - dueDate: '2020-02-15T00:00:00Z' - currency: GBP - currencyRate: 1 - lineItems: - - description: Tax Summary - Tax Rate 1 - unitAmount: 0 - quantity: 0 - discountAmount: 0.5 - subTotal: 0 - taxAmount: 20 - totalAmount: 20 - taxRateRef: - id: '1729' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: [] - isDirectCost: false - - description: Goods Summary - unitAmount: 0 - quantity: 0 - discountAmount: 2.5 - subTotal: 100 - taxAmount: 0 - totalAmount: 100 - trackingCategoryRefs: [] - isDirectCost: false - withholdingTax: [] - status: Open - subTotal: 100 - taxAmount: 20 - totalAmount: 120 - amountDue: 120 - modifiedDate: '2022-10-14T09:36:01Z' - sourceModifiedDate: '2020-02-28T14:23:46Z' - note: No1 - paymentAllocations: [] - Sage 50 (UK): - value: - id: '92' - reference: '2569' - supplierRef: - id: THO001 - supplierName: Thompsons Electricals - purchaseOrderRefs: [] - issueDate: '2021-01-01T00:00:00' - dueDate: '2022-01-31T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Goods - unitAmount: 5875 - quantity: 1 - subTotal: 5000 - taxAmount: 875 - totalAmount: 5875 - accountRef: - id: '5000' - name: Materials Purchased - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_7 - name: Workshop - tracking: - categoryRefs: - - id: department_7 - name: Workshop - isBilledTo: Unknown - isRebilledTo: Unknown - isDirectCost: false - withholdingTax: [] - status: Paid - subTotal: 5000 - taxAmount: 875 - totalAmount: 5875 - amountDue: 0 - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - note: Goods - paymentAllocations: - - payment: - id: '260' - note: 'Purchase payment 260 linked to, purchase invoice 11, purchase invoice 18, purchase invoice 92, purchase invoice 93.' - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 7141.98 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -5875 - metadata: - isDeleted: false - Sage Business Cloud Accounting: - value: - id: 15a7a15773b011e8aaa5027d54329956 - reference: 19/06/2018 - 435.60 - supplierRef: - id: ca430e0d156011e8b45c025132dab352 - supplierName: Test Supplier - purchaseOrderRefs: [] - issueDate: '2018-06-19T00:00:00' - dueDate: '2018-07-19T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Consulting services - unitAmount: 11 - quantity: 33 - subTotal: 363 - taxAmount: 72.6 - totalAmount: 435.6 - accountRef: - id: 9a995955267a11e797950a57719b2edb - name: Cost of sales - goods - taxRateRef: - id: GB_STANDARD - name: Standard 20.00% - effectiveTaxRate: 20 - itemRef: - id: a87b922b33de11e797950a57719b2edb - name: Consulting services - trackingCategoryRefs: [] - isDirectCost: false - withholdingTax: [] - status: PartiallyPaid - subTotal: 363 - taxAmount: 72.6 - totalAmount: 435.6 - amountDue: 405.6 - modifiedDate: '2022-10-24T14:56:08Z' - sourceModifiedDate: '2020-02-05T15:19:28Z' - paymentAllocations: - - payment: - id: 332e402b9d4b4614af82594d186f5f29 - note: Supplier payment using credit/debit card - string - accountRef: - id: 92b80ba619d34cafbedd0eb2e69a82f7 - name: ozzbtdynvoblhytjolxaiohrtrhtpvndiqncpjtcjzwcddpvzl - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-05T00:00:00' - totalAmount: 5 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -5 - - payment: - id: 3c3ed62353cf4d148352a14027738dbe - note: Supplier payment using credit/debit card - string - accountRef: - id: 92b80ba619d34cafbedd0eb2e69a82f7 - name: ozzbtdynvoblhytjolxaiohrtrhtpvndiqncpjtcjzwcddpvzl - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-05T00:00:00' - totalAmount: 5 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -5 - - payment: - id: cbff2fed2f1641b7bee59f5dd68d29a1 - note: Supplier payment using credit/debit card - string - accountRef: - id: 92b80ba619d34cafbedd0eb2e69a82f7 - name: ozzbtdynvoblhytjolxaiohrtrhtpvndiqncpjtcjzwcddpvzl - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-05T00:00:00' - totalAmount: 5 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -5 - - payment: - id: d9b643b9d6e149f4b443cbc6f22fe1dd - note: Supplier payment using credit/debit card - string - accountRef: - id: 92b80ba619d34cafbedd0eb2e69a82f7 - name: ozzbtdynvoblhytjolxaiohrtrhtpvndiqncpjtcjzwcddpvzl - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-05T00:00:00' - totalAmount: 5 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -5 - - payment: - id: e3e35dcda09642ca8880fc603b0a98e9 - note: Supplier payment using credit/debit card - string - accountRef: - id: 92b80ba619d34cafbedd0eb2e69a82f7 - name: ozzbtdynvoblhytjolxaiohrtrhtpvndiqncpjtcjzwcddpvzl - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-05T00:00:00' - totalAmount: 5 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -5 - - payment: - id: f11134e299cb4456be096265136a7770 - note: Supplier payment using credit/debit card - string - accountRef: - id: 92b80ba619d34cafbedd0eb2e69a82f7 - name: ozzbtdynvoblhytjolxaiohrtrhtpvndiqncpjtcjzwcddpvzl - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-05T00:00:00' - totalAmount: 5 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -5 - Sage Intacct: - value: - id: '4470' - reference: test - supplierRef: - id: '3' - supplierName: ADP - purchaseOrderRefs: [] - issueDate: '2021-10-19T00:00:00' - dueDate: '2021-10-29T00:00:00' - currency: GBP - lineItems: - - unitAmount: 25 - quantity: 1 - subTotal: 25 - taxAmount: 0 - totalAmount: 25 - accountRef: - id: '3' - name: Accounts Payable - taxRateRef: - id: '82' - name: UK Purchase Goods Zero Rate - effectiveTaxRate: 0 - trackingCategoryRefs: - - id: DEPARTMENT-3 - name: Admin - - id: LOCATION-11 - name: Codat Test Entity - tracking: - categoryRefs: - - id: DEPARTMENT-3 - name: Admin - - id: LOCATION-11 - name: Codat Test Entity - isBilledTo: Unknown - isRebilledTo: Unknown - isDirectCost: false - withholdingTax: [] - status: Paid - subTotal: 25 - taxAmount: 0 - totalAmount: 25 - amountDue: 0 - modifiedDate: '2023-04-04T16:31:37Z' - sourceModifiedDate: '2022-02-23T12:06:58' - note: '' - paymentAllocations: - - payment: - id: '4472' - note: '' - accountRef: - id: '353' - name: Current Account - currency: GBP - paidOnDate: '2022-01-06T00:00:00' - totalAmount: 5 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -5 - - payment: - id: '4471' - note: '' - accountRef: - id: '353' - name: Current Account - currency: GBP - paidOnDate: '2022-01-06T00:00:00' - totalAmount: 20 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -20 - metadata: - isDeleted: false - Xero: - value: - id: 3945273c-cc04-479f-a4b5-1e3dc7a55ed1 - reference: '' - supplierRef: - id: 1262c350-fe0f-40ec-aeff-41c95b4a45af - supplierName: DIISR - Small Business Services - purchaseOrderRefs: [] - issueDate: '2021-11-19T00:00:00' - dueDate: '2021-12-20T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Half day training - Microsoft Office - unitAmount: 1800 - quantity: 1 - discountAmount: 0 - subTotal: 1800 - taxAmount: 360 - totalAmount: 2160 - discountPercentage: 0 - accountRef: - id: 46f9461e-788b-4906-8b74-d1ea17f6dc10 - name: Consulting - taxRateRef: - id: INPUT2 - name: 20% (VAT on Expenses) - effectiveTaxRate: 20 - itemRef: - id: 489558f5-27b7-4f37-ad9f-d84611c2e2ab - name: Half day training - Microsoft Office - trackingCategoryRefs: [] - isDirectCost: false - - description: Desktop/network support via email & phone.Per month fixed fee for minimum 20 hours/month. - unitAmount: 4000 - quantity: 1 - discountAmount: 0 - subTotal: 4000 - taxAmount: 800 - totalAmount: 4800 - discountPercentage: 0 - accountRef: - id: f96c9458-d724-47bf-8f74-a9d5726465ce - name: General Expenses - taxRateRef: - id: INPUT2 - name: 20% (VAT on Expenses) - effectiveTaxRate: 20 - itemRef: - id: f8fb7e00-5e5d-466c-aef0-15861f73d04f - name: Desktop/network support via email & phone - trackingCategoryRefs: [] - isDirectCost: false - - description: Stationery charges - unitAmount: 32 - quantity: 8 - discountAmount: 0 - subTotal: 256 - taxAmount: 51.2 - totalAmount: 307.2 - discountPercentage: 0 - accountRef: - id: cba6527d-f102-4538-b421-e483233e9d5a - name: Printing & Stationery - taxRateRef: - id: INPUT2 - name: 20% (VAT on Expenses) - effectiveTaxRate: 20 - trackingCategoryRefs: [] - isDirectCost: false - withholdingTax: [] - status: Paid - subTotal: 6056 - taxAmount: 1211.2 - totalAmount: 7267.2 - amountDue: 0 - modifiedDate: '2023-03-15T20:36:09Z' - sourceModifiedDate: '2021-01-02T21:07:23' - paymentAllocations: - - payment: - id: 74004690-82a1-4810-aaca-6ce575af94b4 - accountRef: - id: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - name: Business Bank Account - currency: GBP - currencyRate: 1 - paidOnDate: '2021-12-20T00:00:00' - totalAmount: 7267.2 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -7267.2 - metadata: - isDeleted: false - Zoho Books: - value: - id: '104957000000152027' - reference: '1' - supplierRef: - id: '104957000000152001' - supplierName: Mr. P N - purchaseOrderRefs: [] - issueDate: '2020-06-23T00:00:00' - dueDate: '2020-06-23T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: [] - withholdingTax: [] - status: Paid - subTotal: 0 - taxAmount: 0 - totalAmount: 10 - amountDue: 0 - modifiedDate: '2022-10-03T08:40:37Z' - sourceModifiedDate: '2020-06-23T13:47:17' - paymentAllocations: [] - '401': - $ref: '#/components/responses/Unauthorized' - '402': - $ref: '#/components/responses/Payment-Required' - '403': - $ref: '#/components/responses/Forbidden' - '404': - $ref: '#/components/responses/Not-Found' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - summary: Get bill - description: | - The *Get bill* endpoint returns a single bill for a given billId. - - [Bills](https://docs.codat.io/lending-api#/schemas/Bill) are invoices that represent the SMB's financial obligations to their supplier for a purchase of goods or services. - - Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data). - - ### Tips and traps - - To access the `paymentAllocations` property, ensure that the `billPayments` data type is queued and cached in Codat before retrieving `bills` from Codat's cache. - operationId: get-accounting-bill - x-speakeasy-group: accounts-payable.bills - '/companies/{companyId}/connections/{connectionId}/data/bills/{billId}/attachments': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - - $ref: '#/components/parameters/accountingBillId' - get: - tags: - - Accounts payable - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/Attachments' - '401': - $ref: '#/components/responses/Unauthorized' - '402': - $ref: '#/components/responses/Payment-Required' - '403': - $ref: '#/components/responses/Forbidden' - '404': - $ref: '#/components/responses/Not-Found' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - operationId: list-accounting-bill-attachments - x-speakeasy-group: accounts-payable.bills - summary: List bill attachments - description: | - The *List bill attachments* endpoint returns a list of attachments available to download for a given `billId`. - - [Bills](https://docs.codat.io/lending-api#/schemas/Bill) are invoices that represent the SMB's financial obligations to their supplier for a purchase of goods or services. - '/companies/{companyId}/connections/{connectionId}/data/bills/{billId}/attachments/{attachmentId}': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - - $ref: '#/components/parameters/accountingBillId' - get: - tags: - - Accounts payable - parameters: - - $ref: '#/components/parameters/attachmentId' - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/AccountingAttachment' - examples: {} - '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' - summary: Get bill attachment - description: |- - The *Get bill attachment* endpoint returns a specific attachment for a given `billId` and `attachmentId`. - - [Bills](https://docs.codat.io/lending-api#/schemas/Bill) are invoices that represent the SMB's financial obligations to their supplier for a purchase of goods or services. - operationId: get-accounting-bill-attachment - x-speakeasy-group: accounts-payable.bills - '/companies/{companyId}/connections/{connectionId}/data/bills/{billId}/attachments/{attachmentId}/download': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - - $ref: '#/components/parameters/accountingBillId' - get: - tags: - - Accounts payable - parameters: - - $ref: '#/components/parameters/attachmentId' - responses: - '200': - description: Success - content: - application/octet-stream: - schema: - title: Data - type: string - format: binary - '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' - summary: Download bill attachment - description: |- - The *Download bill attachment* endpoint downloads a specific attachment for a given `billId` and `attachmentId`. - - [Bills](https://docs.codat.io/lending-api#/schemas/Bill) are invoices that represent the SMB's financial obligations to their supplier for a purchase of goods or services. - operationId: download-accounting-bill-attachment - x-speakeasy-group: accounts-payable.bills - '/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 - subTotal: -1000 - taxAmount: 0 - totalAmount: 1000 - accountRef: - id: '21481817' - name: Sale of goods - itemRef: - id: '158675173' - trackingCategoryRefs: [] - isDirectIncome: false - paymentAllocations: - - payment: - id: '86873915' - note: Applying Credit Note - currency: GBP - paidOnDate: '2017-05-09T00:00:00' - totalAmount: -400 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: 400 - - payment: - id: '86874181' - note: '' - currency: GBP - paidOnDate: '2017-05-09T00:00:00' - totalAmount: -100 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: 100 - - payment: - id: '86874199' - note: '' - currency: GBP - paidOnDate: '2017-05-09T00:00:00' - totalAmount: -50 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: 50 - - payment: - id: '86875655' - note: Credit Note - currency: GBP - paidOnDate: '2017-05-09T00:00:00' - totalAmount: -750 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: 750 - modifiedDate: '2022-09-30T10:29:16Z' - pageNumber: 1 - pageSize: 2 - totalResults: 17 - _links: - current: - href: /companies/3a707a99-89da-4b16-a5d6-595333a16352/data/creditNotes?page=1&pageSize=2 - self: - href: /companies/3a707a99-89da-4b16-a5d6-595333a16352/data/creditNotes - next: - href: /companies/3a707a99-89da-4b16-a5d6-595333a16352/data/creditNotes?page=2&pageSize=2 - Oracle NetSuite: - value: - results: - - id: '8827' - creditNoteNumber: CM27 - customerRef: - id: '417' - companyName: 10 Breww Ltd - withholdingTax: [] - totalAmount: 26 - totalDiscount: 0 - subTotal: 26 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 0 - discountPercentage: 0 - remainingCredit: 26 - status: Submitted - issueDate: '2021-04-09T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Andy Test Item - unitAmount: 2 - quantity: 3 - subTotal: 6 - totalAmount: 6 - accountRef: - id: '54' - name: Sales - itemRef: - id: '143' - name: Andy Test Item - trackingCategoryRefs: - - id: classification-2 - - id: department-1 - - id: location-1 - isDirectIncome: false - - description: Non-Recurring Services - EC - unitAmount: 4 - quantity: 5 - subTotal: 20 - totalAmount: 20 - accountRef: - id: '54' - name: Sales - itemRef: - id: '28' - name: Non-Recurring Services - EC - trackingCategoryRefs: - - id: classification-2 - - id: department-1 - - id: location-1 - isDirectIncome: false - paymentAllocations: [] - modifiedDate: '2022-09-20T08:15:31Z' - sourceModifiedDate: '2022-02-25T10:58:10' - - id: '8828' - creditNoteNumber: CM28 - customerRef: - id: '417' - companyName: 10 Breww Ltd - withholdingTax: [] - totalAmount: 26 - totalDiscount: 0 - subTotal: 26 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 0 - discountPercentage: 0 - remainingCredit: 10 - status: PartiallyPaid - issueDate: '2021-04-09T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Andy Test Item - unitAmount: 2 - quantity: 3 - subTotal: 6 - totalAmount: 6 - accountRef: - id: '54' - name: Sales - itemRef: - id: '143' - name: Andy Test Item - trackingCategoryRefs: - - id: classification-2 - - id: department-1 - - id: location-1 - isDirectIncome: false - - description: Non-Recurring Services - EC - unitAmount: 4 - quantity: 5 - subTotal: 20 - totalAmount: 20 - accountRef: - id: '54' - name: Sales - itemRef: - id: '28' - name: Non-Recurring Services - EC - trackingCategoryRefs: - - id: classification-2 - - id: department-1 - - id: location-1 - isDirectIncome: false - paymentAllocations: - - payment: - id: '8828' - reference: 'Credit Memo #CM28' - currency: GBP - currencyRate: 1 - paidOnDate: '2021-04-09T00:00:00' - totalAmount: 0 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: 16 - modifiedDate: '2022-09-20T08:15:31Z' - sourceModifiedDate: '2022-02-25T10:58:37' - pageNumber: 1 - pageSize: 2 - totalResults: 36 - _links: - current: - href: /companies/973341cc-ca0a-4a88-88de-e5954157818b/data/creditNotes?page=1&pageSize=2 - self: - href: /companies/973341cc-ca0a-4a88-88de-e5954157818b/data/creditNotes - next: - href: /companies/973341cc-ca0a-4a88-88de-e5954157818b/data/creditNotes?page=2&pageSize=2 - QuickBooks Desktop: - value: - results: - - id: 96C-933372931 - creditNoteNumber: '4002' - customerRef: - id: 150000-933272658 - companyName: 'Abercrombie, Kristy' - withholdingTax: [] - totalAmount: 711.15 - totalDiscount: 0 - subTotal: 660 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 51.15 - discountPercentage: 0 - remainingCredit: 0 - status: Paid - issueDate: '2024-12-01T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: |- - Whirlpool tub - Billed and paid for 2 tubs, should have been for only 1 tub - unitAmount: 660 - quantity: 1 - subTotal: 660 - taxAmount: 0 - totalAmount: 660 - accountRef: - id: 40000-933270541 - name: Accounts Receivable - taxRateRef: - id: 10000-999022286 - name: Taxable Sales - itemRef: - id: 1E0000-933272656 - name: Plumb Fixtrs - trackingCategoryRefs: - - id: 40000-933272658 - name: Remodel - isDirectIncome: false - paymentAllocations: - - payment: - id: 969-933372844 - accountRef: - id: 20000-933270541 - name: Checking - currency: GBP - currencyRate: 1 - paidOnDate: '2024-12-01T00:00:00' - totalAmount: -711.15 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: 711.15 - modifiedDate: '2023-04-26T09:07:38Z' - sourceModifiedDate: '2023-12-16T05:04:05' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 1 - _links: - current: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/data/creditNotes?page=1&pageSize=2 - self: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/data/creditNotes - QuickBooks Online: - value: - results: - - id: '85' - creditNoteNumber: '3122019_6' - customerRef: - id: '3' - companyName: Information Sharing Technology - withholdingTax: [] - totalAmount: 13.53 - totalDiscount: 0 - subTotal: 13.53 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 0 - discountPercentage: 0 - remainingCredit: 0 - status: Paid - issueDate: '2019-12-03T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Refunds with payment type of Cash - unitAmount: 13.53 - quantity: 1 - subTotal: 13.53 - taxAmount: 0 - totalAmount: 13.53 - accountRef: - id: '1' - name: Sales - taxRateRef: - id: 8_Invoices - name: Exempt Invoices - effectiveTaxRate: 0 - itemRef: - id: '1' - name: Sales - trackingCategoryRefs: [] - isDirectIncome: true - paymentAllocations: - - payment: - id: '85' - note: '' - accountRef: - id: '63' - name: Business Bank Account - currency: GBP - currencyRate: 1 - paidOnDate: '2019-12-03T00:00:00' - totalAmount: -13.53 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2019-12-03T00:00:00' - totalAmount: 13.53 - modifiedDate: '2023-01-18T11:02:55Z' - sourceModifiedDate: '2019-12-10T19:00:36Z' - - id: '86' - creditNoteNumber: '3122019_66' - customerRef: - id: '3' - companyName: Information Sharing Technology - withholdingTax: [] - totalAmount: 1 - totalDiscount: 0 - subTotal: 1 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 0 - discountPercentage: 0 - remainingCredit: 0 - status: Paid - issueDate: '2019-12-03T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Refunds with payment type of Card - unitAmount: 1 - quantity: 1 - subTotal: 1 - taxAmount: 0 - totalAmount: 1 - accountRef: - id: '1' - name: Sales - taxRateRef: - id: 8_Invoices - name: Exempt Invoices - effectiveTaxRate: 0 - itemRef: - id: '1' - name: Sales - trackingCategoryRefs: [] - isDirectIncome: true - paymentAllocations: - - payment: - id: '86' - note: '' - accountRef: - id: '63' - name: Business Bank Account - currency: GBP - currencyRate: 1 - paidOnDate: '2019-12-03T00:00:00' - totalAmount: -1 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2019-12-03T00:00:00' - totalAmount: 1 - modifiedDate: '2023-01-18T11:02:55Z' - sourceModifiedDate: '2019-12-10T19:00:37Z' - pageNumber: 1 - pageSize: 2 - totalResults: 1253 - _links: - current: - href: /companies/10818b5e-6e6a-4ed4-a1c5-3e3efe626e87/data/creditNotes?page=1&pageSize=2 - self: - href: /companies/10818b5e-6e6a-4ed4-a1c5-3e3efe626e87/data/creditNotes - next: - href: /companies/10818b5e-6e6a-4ed4-a1c5-3e3efe626e87/data/creditNotes?page=2&pageSize=2 - QuickBooks Online Sandbox: - value: - results: - - id: '185' - creditNoteNumber: '1015' - customerRef: - id: '16' - companyName: Jordan Burgess - withholdingTax: [] - totalAmount: 1800 - totalDiscount: 0 - subTotal: 1500 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 300 - discountPercentage: 0 - remainingCredit: 0 - status: Paid - issueDate: '2017-02-15T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Employee training off site - unitAmount: 1500 - quantity: 1 - subTotal: 1500 - taxAmount: 300 - totalAmount: 1800 - accountRef: - id: '44' - name: Sales - taxRateRef: - id: 3_Invoices - name: 20.0% S Invoices - effectiveTaxRate: 20 - itemRef: - id: '5' - name: Employee Training - trackingCategoryRefs: - - id: DEPARTMENT_1 - name: London - isDirectIncome: false - paymentAllocations: - - payment: - id: '192' - note: Created by QB Online to link credits to charges. - currency: GBP - currencyRate: 1 - paidOnDate: '2017-09-08T00:00:00' - totalAmount: 0 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: 1800 - modifiedDate: '2023-04-26T09:36:03Z' - sourceModifiedDate: '2017-09-08T12:52:27Z' - metadata: - isDeleted: false - - id: '213' - creditNoteNumber: '1030' - customerRef: - id: '5' - companyName: Whitehead and Sons - withholdingTax: [] - totalAmount: 600 - totalDiscount: 0 - subTotal: 500 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 100 - discountPercentage: 0 - remainingCredit: 0 - status: Paid - issueDate: '2018-12-18T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Employee celebration -- Anniversary / Retirement - unitAmount: 500 - quantity: 1 - subTotal: 500 - taxAmount: 100 - totalAmount: 600 - accountRef: - id: '44' - name: Sales - taxRateRef: - id: 3_Invoices - name: 20.0% S Invoices - effectiveTaxRate: 20 - itemRef: - id: '4' - name: Employee Celebration - trackingCategoryRefs: - - id: DEPARTMENT_3 - name: Birmingham - isDirectIncome: false - paymentAllocations: - - payment: - id: '215' - note: Created by QB Online to link credits to charges. - currency: GBP - currencyRate: 1 - paidOnDate: '2018-12-18T00:00:00' - totalAmount: 0 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: 600 - modifiedDate: '2023-04-26T09:36:03Z' - sourceModifiedDate: '2018-12-18T10:08:45Z' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 141 - _links: - current: - href: /companies/5a7f3597-36e1-4216-86fe-289ad36088a6/data/creditNotes?page=1&pageSize=2 - self: - href: /companies/5a7f3597-36e1-4216-86fe-289ad36088a6/data/creditNotes - next: - href: /companies/5a7f3597-36e1-4216-86fe-289ad36088a6/data/creditNotes?page=2&pageSize=2 - Sage 200cloud: - value: - results: - - id: '45891' - creditNoteNumber: return 1a - customerRef: - id: A1D001 - companyName: A1 Design Services - withholdingTax: [] - totalAmount: 378 - totalDiscount: 9.46 - subTotal: 315 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 63 - discountPercentage: 2.5 - remainingCredit: 378 - status: Submitted - issueDate: '2020-07-22T00:00:00Z' - currency: GBP - currencyRate: 1 - lineItems: - - description: Tax Summary - Standard rate - unitAmount: 0 - quantity: 0 - discountAmount: 1.58 - subTotal: 0 - taxAmount: 63 - totalAmount: 63 - taxRateRef: - id: '1' - trackingCategoryRefs: [] - isDirectIncome: false - - description: Goods Summary - unitAmount: 0 - quantity: 0 - discountAmount: 9.46 - subTotal: 315 - taxAmount: 0 - totalAmount: 315 - trackingCategoryRefs: [] - isDirectIncome: false - paymentAllocations: [] - modifiedDate: '2022-10-14T09:35:55Z' - sourceModifiedDate: '2020-02-28T14:23:46Z' - note: black - - id: '45901' - creditNoteNumber: return 003 - customerRef: - id: ABS001 - companyName: ABS Garages Ltd - withholdingTax: [] - totalAmount: 177.14 - totalDiscount: 4.42 - subTotal: 147.62 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 29.52 - discountPercentage: 2.5 - remainingCredit: 177.14 - status: Submitted - issueDate: '2020-07-22T00:00:00Z' - currency: GBP - currencyRate: 1 - lineItems: - - description: Tax Summary - Standard rate - unitAmount: 0 - quantity: 0 - discountAmount: 0.73 - subTotal: 0 - taxAmount: 29.52 - totalAmount: 29.52 - taxRateRef: - id: '1' - trackingCategoryRefs: [] - isDirectIncome: false - - description: Goods Summary - unitAmount: 0 - quantity: 0 - discountAmount: 4.42 - subTotal: 147.62 - taxAmount: 0 - totalAmount: 147.62 - trackingCategoryRefs: [] - isDirectIncome: false - paymentAllocations: [] - modifiedDate: '2022-10-14T09:35:55Z' - sourceModifiedDate: '2020-02-28T14:23:46Z' - note: cred 003 - pageNumber: 1 - pageSize: 2 - totalResults: 26 - _links: - current: - href: /companies/93c21e2d-049c-4d24-b41b-57e61c30b69e/data/creditNotes?page=1&pageSize=2 - self: - href: /companies/93c21e2d-049c-4d24-b41b-57e61c30b69e/data/creditNotes - next: - href: /companies/93c21e2d-049c-4d24-b41b-57e61c30b69e/data/creditNotes?page=2&pageSize=2 - Sage 50 (UK): - value: - results: - - id: INV-17 - creditNoteNumber: '17' - customerRef: - id: KIN001 - companyName: Kinghorn & French - withholdingTax: [] - totalAmount: 832.84 - totalDiscount: 0 - subTotal: 711.45 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 121.39 - discountPercentage: 0 - remainingCredit: 0 - status: Paid - issueDate: '2021-02-02T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: PC Combo Pack 4 - unitAmount: 832.84 - quantity: 1 - subTotal: 711.45 - taxAmount: 121.39 - totalAmount: 832.84 - accountRef: - id: '4000' - name: Sales North - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_1 - name: Sales - isDirectIncome: false - paymentAllocations: - - payment: - id: '336' - note: Sales credit inv-17 linked to sales invoice inv-45. - accountRef: - id: '' - currency: GBP - currencyRate: 1 - paidOnDate: '2022-02-02T00:00:00' - totalAmount: 0 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: 63.69 - - payment: - id: '336' - note: Sales credit inv-17 linked to sales invoice inv-45. - accountRef: - id: '' - currency: GBP - currencyRate: 1 - paidOnDate: '2022-02-02T00:00:00' - totalAmount: 0 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: 73.49 - - payment: - id: '336' - note: Sales credit inv-17 linked to sales invoice inv-45. - accountRef: - id: '' - currency: GBP - currencyRate: 1 - paidOnDate: '2022-02-02T00:00:00' - totalAmount: 0 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: 157.25 - - payment: - id: '336' - note: Sales credit inv-17 linked to sales invoice inv-45. - accountRef: - id: '' - currency: GBP - currencyRate: 1 - paidOnDate: '2022-02-02T00:00:00' - totalAmount: 0 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: 158.25 - - payment: - id: '336' - note: Sales credit inv-17 linked to sales invoice inv-45. - accountRef: - id: '' - currency: GBP - currencyRate: 1 - paidOnDate: '2022-02-02T00:00:00' - totalAmount: 0 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: 344.89 - - payment: - id: '336' - note: Sales credit inv-17 linked to sales invoice inv-45. - accountRef: - id: '' - currency: GBP - currencyRate: 1 - paidOnDate: '2022-02-02T00:00:00' - totalAmount: 0 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: 35.27 - modifiedDate: '2023-03-30T14:42:43Z' - sourceModifiedDate: '2022-11-25T09:43:54' - note: PC Combo Pack 4 - metadata: - isDeleted: false - - id: INV-34 - creditNoteNumber: '34' - customerRef: - id: MIL001 - companyName: Mile Road Health Centre - withholdingTax: [] - totalAmount: 1668.14 - totalDiscount: 0 - subTotal: 1425 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 243.14 - discountPercentage: 0 - remainingCredit: 0 - status: Paid - issueDate: '2021-02-28T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: PC Combo Pack 6 - unitAmount: 1668.14 - quantity: 1 - subTotal: 1425 - taxAmount: 243.14 - totalAmount: 1668.14 - accountRef: - id: '4000' - name: Sales North - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_1 - name: Sales - isDirectIncome: false - paymentAllocations: - - payment: - id: '530' - note: Sales credit inv-34 linked to sales invoice inv-26. - accountRef: - id: '' - currency: GBP - currencyRate: 1 - paidOnDate: '2022-02-28T00:00:00' - totalAmount: 0 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: 1668.14 - modifiedDate: '2023-03-30T14:42:43Z' - sourceModifiedDate: '2022-11-25T09:43:54' - note: PC Combo Pack 6 - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 7 - _links: - current: - href: /companies/cf5f2a47-2990-4221-bae6-0c19c86ac304/data/creditNotes?page=1&pageSize=2 - self: - href: /companies/cf5f2a47-2990-4221-bae6-0c19c86ac304/data/creditNotes - next: - href: /companies/cf5f2a47-2990-4221-bae6-0c19c86ac304/data/creditNotes?page=2&pageSize=2 - Sage Business Cloud Accounting: - value: - results: - - id: c1a0176c33de11e797950a57719b2edb - creditNoteNumber: SCN-1 - customerRef: - id: f4ff85ba33dd11e797950a57719b2edb - companyName: Widgets Limited - withholdingTax: [] - totalAmount: 1080 - totalDiscount: 0 - subTotal: 900 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 180 - discountPercentage: 0 - remainingCredit: 0 - status: Paid - issueDate: '2017-05-08T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Consulting services - unitAmount: 900 - quantity: 1 - discountAmount: 0 - subTotal: 900 - taxAmount: 180 - totalAmount: 1080 - accountRef: - id: 9a994b92267a11e797950a57719b2edb - name: Sales Type A - discountPercentage: 0 - taxRateRef: - id: GB_STANDARD - name: Standard 20.00% - effectiveTaxRate: 20 - itemRef: - id: a87b922b33de11e797950a57719b2edb - name: Consulting services - trackingCategoryRefs: [] - isDirectIncome: false - paymentAllocations: - - payment: - id: d39f7a5733de11e797950a57719b2edb - note: Customer refund using credit/debit card - accountRef: - id: 9a25937b267a11e797950a57719b2edb - name: Current - currency: GBP - currencyRate: 1 - paidOnDate: '2017-05-08T00:00:00' - totalAmount: -1080 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: 1080 - modifiedDate: '2022-10-24T14:55:35Z' - sourceModifiedDate: '2017-05-08T11:09:38Z' - note: '' - - id: 28a459069a6211e8bad90617b3da4b8a - creditNoteNumber: SCN-3 - customerRef: - id: f4ff85ba33dd11e797950a57719b2edb - companyName: Widgets Limited - withholdingTax: [] - totalAmount: 5400 - totalDiscount: 0 - subTotal: 4500 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 900 - discountPercentage: 0 - remainingCredit: 0 - status: Paid - issueDate: '2018-08-07T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Consulting services - unitAmount: 900 - quantity: 5 - discountAmount: 0 - subTotal: 4500 - taxAmount: 900 - totalAmount: 5400 - accountRef: - id: 9a994b92267a11e797950a57719b2edb - name: Sales Type A - discountPercentage: 0 - taxRateRef: - id: GB_STANDARD - name: Standard 20.00% - effectiveTaxRate: 20 - itemRef: - id: a87b922b33de11e797950a57719b2edb - name: Consulting services - trackingCategoryRefs: [] - isDirectIncome: false - paymentAllocations: - - payment: - id: 28a459069a6211e8bad90617b3da4b8a - note: Sales credit note - currency: GBP - currencyRate: 1 - paidOnDate: '2018-08-07T00:00:00' - totalAmount: 0 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: 5400 - modifiedDate: '2022-10-24T14:55:35Z' - sourceModifiedDate: '2018-08-07T16:51:41Z' - note: '' - pageNumber: 1 - pageSize: 2 - totalResults: 2972 - _links: - current: - href: /companies/390083e2-351b-407c-a3be-55081c36c182/data/creditNotes?page=1&pageSize=2 - self: - href: /companies/390083e2-351b-407c-a3be-55081c36c182/data/creditNotes - next: - href: /companies/390083e2-351b-407c-a3be-55081c36c182/data/creditNotes?page=2&pageSize=2 - Sage Intacct: - value: - results: - - id: '5018' - creditNoteNumber: IN0545 - customerRef: - id: '53' - companyName: Pacificorp - withholdingTax: [] - totalAmount: 575 - totalDiscount: 0 - subTotal: 500 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 75 - discountPercentage: 0 - remainingCredit: 0 - status: Paid - issueDate: '2022-03-16T00:00:00' - allocatedOnDate: '2022-03-16T00:00:00' - currency: ZAR - lineItems: - - description: No Description Provided - unitAmount: 500 - quantity: 1 - subTotal: 500 - taxAmount: 75 - totalAmount: 575 - accountRef: - id: '2' - name: Accounts Receivable - taxRateRef: - id: '27' - name: Standard Rate Output - effectiveTaxRate: 15 - trackingCategoryRefs: - - id: LOCATION-10 - name: South Africa - - id: DEPARTMENT-2 - name: Services - - id: CUSTOMER-53 - name: Pacificorp - isDirectIncome: false - paymentAllocations: [] - modifiedDate: '2023-02-23T14:21:40Z' - sourceModifiedDate: '2022-03-16T12:27:43Z' - note: '' - metadata: - isDeleted: false - - id: '5020' - creditNoteNumber: ARADJ0034 - customerRef: - id: '53' - companyName: Pacificorp - withholdingTax: [] - totalAmount: 115 - totalDiscount: 0 - subTotal: 100 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 15 - discountPercentage: 0 - remainingCredit: 115 - status: Submitted - issueDate: '2022-03-16T00:00:00' - currency: ZAR - currencyRate: 1 - lineItems: - - description: No Description Provided - unitAmount: 100 - quantity: 1 - subTotal: 100 - taxAmount: 15 - totalAmount: 115 - accountRef: - id: '2' - name: Accounts Receivable - taxRateRef: - id: '28' - name: Standard Rate (Capital Goods) Output - effectiveTaxRate: 15 - trackingCategoryRefs: - - id: LOCATION-10 - name: South Africa - - id: CUSTOMER-53 - name: Pacificorp - isDirectIncome: false - paymentAllocations: [] - modifiedDate: '2023-02-23T14:21:40Z' - sourceModifiedDate: '2022-03-16T12:30:19' - note: '' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 2 - _links: - current: - href: /companies/b53cfc9f-1a00-4a20-936f-34e8efbe07c5/data/creditNotes?page=1&pageSize=2 - self: - href: /companies/b53cfc9f-1a00-4a20-936f-34e8efbe07c5/data/creditNotes - Xero: - value: - results: - - id: 47fb825b-3c43-4284-905f-c6d97acc6b37 - creditNoteNumber: CN-0025 - customerRef: - id: af0091a9-82ef-4cac-9fd6-22c095ac6a58 - companyName: Hamilton Smith Ltd - withholdingTax: [] - totalAmount: 541.25 - totalDiscount: 0 - subTotal: 451.04 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 90.21 - discountPercentage: 0 - remainingCredit: 0 - status: Paid - issueDate: '2022-11-20T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: FULL CREDIT of INV-0016 due to duplication of invoice INV-0012. Please accept our apologies. - unitAmount: 0 - quantity: 0 - discountAmount: 0 - subTotal: 0 - taxAmount: 0 - totalAmount: 0 - discountPercentage: 0 - trackingCategoryRefs: [] - isDirectIncome: false - - description: Desktop/network support via email & phone.Per month fixed fee for minimum 20 hours/month. - unitAmount: 451.04 - quantity: 1 - discountAmount: 0 - subTotal: 451.04 - taxAmount: 90.21 - totalAmount: 541.25 - accountRef: - id: c563b607-fb0e-4d06-9ddb-76fdeef20ae3 - name: Sales - discountPercentage: 0 - taxRateRef: - id: OUTPUT2 - name: 20% (VAT on Income) - effectiveTaxRate: 20 - itemRef: - id: f8fb7e00-5e5d-466c-aef0-15861f73d04f - name: Desktop/network support via email & phone - trackingCategoryRefs: - - id: 34b9b859-07a9-451a-b4d3-effc9946634a - name: North - isDirectIncome: false - paymentAllocations: - - payment: - id: 47fb825b-3c43-4284-905f-c6d97acc6b37 - reference: Monthly Support - currency: GBP - currencyRate: 1 - paidOnDate: '2022-11-20T00:00:00' - totalAmount: 0 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2022-11-20T00:00:00' - totalAmount: 541.25 - modifiedDate: '2023-03-15T20:35:09Z' - sourceModifiedDate: '2011-04-07T00:34:38' - metadata: - isDeleted: false - - id: caba470e-962f-4168-9c57-35caa289204d - creditNoteNumber: CN-0026 - customerRef: - id: 9ce626d2-14ea-463c-9fff-6785ab5f9bfb - companyName: Boom FM - withholdingTax: [] - totalAmount: 500 - totalDiscount: 0 - subTotal: 416.67 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 83.33 - discountPercentage: 0 - remainingCredit: 0 - status: Paid - issueDate: '2023-01-13T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: "CREDIT Half day training - Microsoft Office and include in suite of training\r\nINV-0024" - unitAmount: 416.67 - quantity: 1 - discountAmount: 0 - subTotal: 416.67 - taxAmount: 83.33 - totalAmount: 500 - accountRef: - id: c563b607-fb0e-4d06-9ddb-76fdeef20ae3 - name: Sales - discountPercentage: 0 - taxRateRef: - id: OUTPUT2 - name: 20% (VAT on Income) - effectiveTaxRate: 20 - itemRef: - id: 489558f5-27b7-4f37-ad9f-d84611c2e2ab - name: Half day training - Microsoft Office - trackingCategoryRefs: - - id: b3900cc6-3745-40ea-955f-9ef7b1c8cf7e - name: South - isDirectIncome: false - paymentAllocations: - - payment: - id: caba470e-962f-4168-9c57-35caa289204d - reference: Training - currency: GBP - currencyRate: 1 - paidOnDate: '2023-01-13T00:00:00' - totalAmount: 0 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2023-01-13T00:00:00' - totalAmount: 500 - modifiedDate: '2023-03-15T20:35:09Z' - sourceModifiedDate: '2011-04-07T02:47:04' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 3 - _links: - current: - href: /companies/5ced9667-a310-443a-a711-958d36377141/data/creditNotes?page=1&pageSize=2 - self: - href: /companies/5ced9667-a310-443a-a711-958d36377141/data/creditNotes - next: - href: /companies/5ced9667-a310-443a-a711-958d36377141/data/creditNotes?page=2&pageSize=2 - Zoho Books: - value: - results: - - id: '104957000000129002' - creditNoteNumber: CN-00001 - customerRef: - id: '104957000000037097' - companyName: Test Company - withholdingTax: [] - totalAmount: 9001 - totalDiscount: 0 - subTotal: 0 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 0 - discountPercentage: 0 - remainingCredit: 9001 - status: Draft - issueDate: '2020-04-28T18:16:22' - currency: GBP - lineItems: [] - paymentAllocations: [] - modifiedDate: '2022-10-03T08:40:43Z' - sourceModifiedDate: '2020-04-28T18:16:22' - - id: '104957000000134023' - creditNoteNumber: CN-00002 - customerRef: - id: '104957000000054050' - companyName: 'Doe, John' - withholdingTax: [] - totalAmount: 125 - totalDiscount: 0 - subTotal: 0 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 0 - discountPercentage: 0 - remainingCredit: 0 - status: Paid - issueDate: '2020-05-06T13:04:20' - currency: GBP - lineItems: [] - paymentAllocations: - - payment: - id: '104957000000134039' - currency: GBP - paidOnDate: '2020-05-06T00:00:00' - totalAmount: 0 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: 125 - modifiedDate: '2022-10-03T08:40:43Z' - sourceModifiedDate: '2020-05-06T13:05:27' - pageNumber: 1 - pageSize: 2 - totalResults: 12 - _links: - current: - href: /companies/d0b68840-db50-4bc3-b88c-96e225333fea/data/creditNotes?page=1&pageSize=2 - self: - href: /companies/d0b68840-db50-4bc3-b88c-96e225333fea/data/creditNotes - next: - href: /companies/d0b68840-db50-4bc3-b88c-96e225333fea/data/creditNotes?page=2&pageSize=2 - '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' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - description: |- - The *List credit notes* endpoint returns a list of [credit notes](https://docs.codat.io/lending-api#/schemas/CreditNote) for a given company's connection. - - [Credit notes](https://docs.codat.io/lending-api#/schemas/CreditNote) are issued to a customer to indicate debt, typically with reference to a previously issued invoice and/or purchase. - - Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data). - - operationId: list-accounting-credit-notes - x-speakeasy-group: accounts-receivable.credit-notes - '/companies/{companyId}/data/creditNotes/{creditNoteId}': - parameters: - - $ref: '#/components/parameters/companyId' - - name: creditNoteId - in: path - required: true - schema: - type: string - description: Unique identifier for a credit note. - get: - tags: - - Accounts receivable - summary: Get credit note - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/AccountingCreditNote' - examples: - Dynamics 365 Business Central: - value: - 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 - FreeAgent: - value: - 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 - FreshBooks: - value: - 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 - KashFlow: - value: - 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' - Oracle NetSuite: - value: - id: '8827' - creditNoteNumber: CM27 - customerRef: - id: '417' - companyName: 10 Breww Ltd - withholdingTax: [] - totalAmount: 26 - totalDiscount: 0 - subTotal: 26 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 0 - discountPercentage: 0 - remainingCredit: 26 - status: Submitted - issueDate: '2021-04-09T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Andy Test Item - unitAmount: 2 - quantity: 3 - subTotal: 6 - totalAmount: 6 - accountRef: - id: '54' - name: Sales - itemRef: - id: '143' - name: Andy Test Item - trackingCategoryRefs: - - id: classification-2 - - id: department-1 - - id: location-1 - isDirectIncome: false - - description: Non-Recurring Services - EC - unitAmount: 4 - quantity: 5 - subTotal: 20 - totalAmount: 20 - accountRef: - id: '54' - name: Sales - itemRef: - id: '28' - name: Non-Recurring Services - EC - trackingCategoryRefs: - - id: classification-2 - - id: department-1 - - id: location-1 - isDirectIncome: false - paymentAllocations: [] - modifiedDate: '2022-09-20T08:15:31Z' - sourceModifiedDate: '2022-02-25T10:58:10' - QuickBooks Desktop: - value: - id: 96C-933372931 - creditNoteNumber: '4002' - customerRef: - id: 150000-933272658 - companyName: 'Abercrombie, Kristy' - withholdingTax: [] - totalAmount: 711.15 - totalDiscount: 0 - subTotal: 660 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 51.15 - discountPercentage: 0 - remainingCredit: 0 - status: Paid - issueDate: '2024-12-01T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: |- - Whirlpool tub - Billed and paid for 2 tubs, should have been for only 1 tub - unitAmount: 660 - quantity: 1 - subTotal: 660 - taxAmount: 0 - totalAmount: 660 - accountRef: - id: 40000-933270541 - name: Accounts Receivable - taxRateRef: - id: 10000-999022286 - name: Taxable Sales - itemRef: - id: 1E0000-933272656 - name: Plumb Fixtrs - trackingCategoryRefs: - - id: 40000-933272658 - name: Remodel - isDirectIncome: false - paymentAllocations: - - payment: - id: 969-933372844 - accountRef: - id: 20000-933270541 - name: Checking - currency: GBP - currencyRate: 1 - paidOnDate: '2024-12-01T00:00:00' - totalAmount: -711.15 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: 711.15 - modifiedDate: '2023-04-26T09:07:38Z' - sourceModifiedDate: '2023-12-16T05:04:05' - metadata: - isDeleted: false - QuickBooks Online: - value: - id: '85' - creditNoteNumber: '3122019_6' - customerRef: - id: '3' - companyName: Information Sharing Technology - withholdingTax: [] - totalAmount: 13.53 - totalDiscount: 0 - subTotal: 13.53 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 0 - discountPercentage: 0 - remainingCredit: 0 - status: Paid - issueDate: '2019-12-03T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Refunds with payment type of Cash - unitAmount: 13.53 - quantity: 1 - subTotal: 13.53 - taxAmount: 0 - totalAmount: 13.53 - accountRef: - id: '1' - name: Sales - taxRateRef: - id: 8_Invoices - name: Exempt Invoices - effectiveTaxRate: 0 - itemRef: - id: '1' - name: Sales - trackingCategoryRefs: [] - isDirectIncome: true - paymentAllocations: - - payment: - id: '85' - note: '' - accountRef: - id: '63' - name: Business Bank Account - currency: GBP - currencyRate: 1 - paidOnDate: '2019-12-03T00:00:00' - totalAmount: -13.53 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2019-12-03T00:00:00' - totalAmount: 13.53 - modifiedDate: '2023-01-18T11:02:55Z' - sourceModifiedDate: '2019-12-10T19:00:36Z' - QuickBooks Online Sandbox: - value: - id: '185' - creditNoteNumber: '1015' - customerRef: - id: '16' - companyName: Jordan Burgess - withholdingTax: [] - totalAmount: 1800 - totalDiscount: 0 - subTotal: 1500 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 300 - discountPercentage: 0 - remainingCredit: 0 - status: Paid - issueDate: '2017-02-15T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Employee training off site - unitAmount: 1500 - quantity: 1 - subTotal: 1500 - taxAmount: 300 - totalAmount: 1800 - accountRef: - id: '44' - name: Sales - taxRateRef: - id: 3_Invoices - name: 20.0% S Invoices - effectiveTaxRate: 20 - itemRef: - id: '5' - name: Employee Training - trackingCategoryRefs: - - id: DEPARTMENT_1 - name: London - isDirectIncome: false - paymentAllocations: - - payment: - id: '192' - note: Created by QB Online to link credits to charges. - currency: GBP - currencyRate: 1 - paidOnDate: '2017-09-08T00:00:00' - totalAmount: 0 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: 1800 - modifiedDate: '2023-04-26T09:36:03Z' - sourceModifiedDate: '2017-09-08T12:52:27Z' - metadata: - isDeleted: false - Sage 200cloud: - value: - id: '45891' - creditNoteNumber: return 1a - customerRef: - id: A1D001 - companyName: A1 Design Services - withholdingTax: [] - totalAmount: 378 - totalDiscount: 9.46 - subTotal: 315 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 63 - discountPercentage: 2.5 - remainingCredit: 378 - status: Submitted - issueDate: '2020-07-22T00:00:00Z' - currency: GBP - currencyRate: 1 - lineItems: - - description: Tax Summary - Standard rate - unitAmount: 0 - quantity: 0 - discountAmount: 1.58 - subTotal: 0 - taxAmount: 63 - totalAmount: 63 - taxRateRef: - id: '1' - trackingCategoryRefs: [] - isDirectIncome: false - - description: Goods Summary - unitAmount: 0 - quantity: 0 - discountAmount: 9.46 - subTotal: 315 - taxAmount: 0 - totalAmount: 315 - trackingCategoryRefs: [] - isDirectIncome: false - paymentAllocations: [] - modifiedDate: '2022-10-14T09:35:55Z' - sourceModifiedDate: '2020-02-28T14:23:46Z' - note: black - Sage 50 (UK): - value: - id: INV-17 - creditNoteNumber: '17' - customerRef: - id: KIN001 - companyName: Kinghorn & French - withholdingTax: [] - totalAmount: 832.84 - totalDiscount: 0 - subTotal: 711.45 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 121.39 - discountPercentage: 0 - remainingCredit: 0 - status: Paid - issueDate: '2021-02-02T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: PC Combo Pack 4 - unitAmount: 832.84 - quantity: 1 - subTotal: 711.45 - taxAmount: 121.39 - totalAmount: 832.84 - accountRef: - id: '4000' - name: Sales North - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_1 - name: Sales - isDirectIncome: false - paymentAllocations: - - payment: - id: '336' - note: Sales credit inv-17 linked to sales invoice inv-45. - accountRef: - id: '' - currency: GBP - currencyRate: 1 - paidOnDate: '2022-02-02T00:00:00' - totalAmount: 0 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: 35.27 - - payment: - id: '336' - note: Sales credit inv-17 linked to sales invoice inv-45. - accountRef: - id: '' - currency: GBP - currencyRate: 1 - paidOnDate: '2022-02-02T00:00:00' - totalAmount: 0 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: 344.89 - - payment: - id: '336' - note: Sales credit inv-17 linked to sales invoice inv-45. - accountRef: - id: '' - currency: GBP - currencyRate: 1 - paidOnDate: '2022-02-02T00:00:00' - totalAmount: 0 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: 158.25 - - payment: - id: '336' - note: Sales credit inv-17 linked to sales invoice inv-45. - accountRef: - id: '' - currency: GBP - currencyRate: 1 - paidOnDate: '2022-02-02T00:00:00' - totalAmount: 0 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: 157.25 - - payment: - id: '336' - note: Sales credit inv-17 linked to sales invoice inv-45. - accountRef: - id: '' - currency: GBP - currencyRate: 1 - paidOnDate: '2022-02-02T00:00:00' - totalAmount: 0 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: 73.49 - - payment: - id: '336' - note: Sales credit inv-17 linked to sales invoice inv-45. - accountRef: - id: '' - currency: GBP - currencyRate: 1 - paidOnDate: '2022-02-02T00:00:00' - totalAmount: 0 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: 63.69 - modifiedDate: '2023-03-30T14:42:43Z' - sourceModifiedDate: '2022-11-25T09:43:54' - note: PC Combo Pack 4 - metadata: - isDeleted: false - Sage Business Cloud Accounting: - value: - id: c1a0176c33de11e797950a57719b2edb - creditNoteNumber: SCN-1 - customerRef: - id: f4ff85ba33dd11e797950a57719b2edb - companyName: Widgets Limited - withholdingTax: [] - totalAmount: 1080 - totalDiscount: 0 - subTotal: 900 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 180 - discountPercentage: 0 - remainingCredit: 0 - status: Paid - issueDate: '2017-05-08T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Consulting services - unitAmount: 900 - quantity: 1 - discountAmount: 0 - subTotal: 900 - taxAmount: 180 - totalAmount: 1080 - accountRef: - id: 9a994b92267a11e797950a57719b2edb - name: Sales Type A - discountPercentage: 0 - taxRateRef: - id: GB_STANDARD - name: Standard 20.00% - effectiveTaxRate: 20 - itemRef: - id: a87b922b33de11e797950a57719b2edb - name: Consulting services - trackingCategoryRefs: [] - isDirectIncome: false - paymentAllocations: - - payment: - id: d39f7a5733de11e797950a57719b2edb - note: Customer refund using credit/debit card - accountRef: - id: 9a25937b267a11e797950a57719b2edb - name: Current - currency: GBP - currencyRate: 1 - paidOnDate: '2017-05-08T00:00:00' - totalAmount: -1080 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: 1080 - modifiedDate: '2022-10-24T14:55:35Z' - sourceModifiedDate: '2017-05-08T11:09:38Z' - note: '' - Sage Intacct: - value: - id: '5018' - creditNoteNumber: IN0545 - customerRef: - id: '53' - companyName: Pacificorp - withholdingTax: [] - totalAmount: 575 - totalDiscount: 0 - subTotal: 500 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 75 - discountPercentage: 0 - remainingCredit: 0 - status: Paid - issueDate: '2022-03-16T00:00:00' - allocatedOnDate: '2022-03-16T00:00:00' - currency: ZAR - lineItems: - - description: No Description Provided - unitAmount: 500 - quantity: 1 - subTotal: 500 - taxAmount: 75 - totalAmount: 575 - accountRef: - id: '2' - name: Accounts Receivable - taxRateRef: - id: '27' - name: Standard Rate Output - effectiveTaxRate: 15 - trackingCategoryRefs: - - id: DEPARTMENT-2 - name: Services - - id: CUSTOMER-53 - name: Pacificorp - - id: LOCATION-10 - name: South Africa - isDirectIncome: false - paymentAllocations: [] - modifiedDate: '2023-02-23T14:21:40Z' - sourceModifiedDate: '2022-03-16T12:27:43Z' - note: '' - metadata: - isDeleted: false - Xero: - value: - id: 47fb825b-3c43-4284-905f-c6d97acc6b37 - creditNoteNumber: CN-0025 - customerRef: - id: af0091a9-82ef-4cac-9fd6-22c095ac6a58 - companyName: Hamilton Smith Ltd - withholdingTax: [] - totalAmount: 541.25 - totalDiscount: 0 - subTotal: 451.04 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 90.21 - discountPercentage: 0 - remainingCredit: 0 - status: Paid - issueDate: '2022-11-20T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: FULL CREDIT of INV-0016 due to duplication of invoice INV-0012. Please accept our apologies. - unitAmount: 0 - quantity: 0 - discountAmount: 0 - subTotal: 0 - taxAmount: 0 - totalAmount: 0 - discountPercentage: 0 - trackingCategoryRefs: [] - isDirectIncome: false - - description: Desktop/network support via email & phone.Per month fixed fee for minimum 20 hours/month. - unitAmount: 451.04 - quantity: 1 - discountAmount: 0 - subTotal: 451.04 - taxAmount: 90.21 - totalAmount: 541.25 - accountRef: - id: c563b607-fb0e-4d06-9ddb-76fdeef20ae3 - name: Sales - discountPercentage: 0 - taxRateRef: - id: OUTPUT2 - name: 20% (VAT on Income) - effectiveTaxRate: 20 - itemRef: - id: f8fb7e00-5e5d-466c-aef0-15861f73d04f - name: Desktop/network support via email & phone - trackingCategoryRefs: - - id: 34b9b859-07a9-451a-b4d3-effc9946634a - name: North - isDirectIncome: false - paymentAllocations: - - payment: - id: 47fb825b-3c43-4284-905f-c6d97acc6b37 - reference: Monthly Support - currency: GBP - currencyRate: 1 - paidOnDate: '2022-11-20T00:00:00' - totalAmount: 0 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2022-11-20T00:00:00' - totalAmount: 541.25 - modifiedDate: '2023-03-15T20:35:09Z' - sourceModifiedDate: '2011-04-07T00:34:38' - metadata: - isDeleted: false - Zoho Books: - value: - id: '104957000000129002' - creditNoteNumber: CN-00001 - customerRef: - id: '104957000000037097' - companyName: Test Company - withholdingTax: [] - totalAmount: 9001 - totalDiscount: 0 - subTotal: 0 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 0 - discountPercentage: 0 - remainingCredit: 9001 - status: Draft - issueDate: '2020-04-28T18:16:22' - currency: GBP - lineItems: [] - paymentAllocations: [] - modifiedDate: '2022-10-03T08:40:43Z' - sourceModifiedDate: '2020-04-28T18:16:22' - '401': - $ref: '#/components/responses/Unauthorized' - '402': - $ref: '#/components/responses/Payment-Required' - '403': - $ref: '#/components/responses/Forbidden' - '404': - $ref: '#/components/responses/Not-Found' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - description: | - The *Get credit note* endpoint returns a single credit note for a given creditNoteId. - - [Credit notes](https://docs.codat.io/lending-api#/schemas/CreditNote) are issued to a customer to indicate debt, typically with reference to a previously issued invoice and/or purchase. - - Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data). - operationId: get-accounting-credit-note - x-speakeasy-group: accounts-receivable.credit-notes - '/companies/{companyId}/data/customers': - parameters: - - $ref: '#/components/parameters/companyId' - get: - tags: - - Accounts receivable - summary: List customers - 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/AccountingCustomers' - examples: - Clear Books: - value: - results: - - id: c8180244-74ac-40cf-a5df-6d83661c44d7 - customerName: Arjun Kuvalis - contactName: Werner Langworth - emailAddress: Arjun34@hotmail.com - defaultCurrency: GBP - phone: 014605 64820 - addresses: - - type: Delivery - line1: Suite 214 - line2: 8439 Lueilwitz Passage - city: Fernandohaven - region: Northern Ireland - country: United Kingdom - postalCode: JG04 7PV - - type: Delivery - line1: Suite 096 - line2: 864 Halie Course - city: Juliochester - region: England - country: United Kingdom - postalCode: DZ8 4BF - - type: Delivery - line1: Suite 001 - line2: 416 Stokes Fords - city: Naderborough - region: Wales - country: United Kingdom - postalCode: XG25 0XX - contacts: - - name: Werner Langworth - email: Werner_Langworth@hotmail.com - phone: [] - address: - type: Delivery - line1: Apt. 145 - line2: 317 Williamson Freeway - city: Hortenseville - region: Scotland - country: United Kingdom - postalCode: CV4 2HR - status: Active - - name: Belle Glover - email: Belle51@yahoo.com - phone: [] - address: - type: Delivery - line1: Suite 075 - line2: 9921 Dickens Walk - city: South Ali - region: Scotland - country: United Kingdom - postalCode: TI04 4OO - status: Active - registrationNumber: NI7JEJVM - taxNumber: '7505220209.583549' - status: Active - modifiedDate: '2023-04-26T12:38:16Z' - sourceModifiedDate: '2022-07-03T01:27:00' - metadata: - isDeleted: false - - id: 6d162ee4-47b4-46c6-a2e6-aa9edd0fe6b0 - customerName: 'Breitenberg, Emard and Schiller' - contactName: Miguel Hahn - emailAddress: contact@BreitenbergEmardandSchiller.biz - defaultCurrency: GBP - phone: 0800 445 6957 - addresses: - - type: Billing - line1: Apt. 184 - line2: 60578 Louie Springs - city: East Khalid - region: Wales - country: United Kingdom - postalCode: XW89 7NT - contacts: - - name: Miguel Hahn - email: Miguel.Hahn@gmail.com - phone: - - number: 018555 09614 - type: Landline - address: - type: Delivery - line1: Suite 400 - line2: 21930 Milan Lane - city: Reingerton - region: Wales - country: United Kingdom - postalCode: QG10 2DL - status: Active - registrationNumber: KME0AMIL - taxNumber: '8560920952.553111' - status: Archived - modifiedDate: '2023-04-26T12:38:16Z' - sourceModifiedDate: '2022-12-03T11:05:01' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 20 - _links: - current: - href: /companies/354a121b-855f-4d25-90ad-0905b498c1c0/data/customers?page=1&pageSize=2 - self: - href: /companies/354a121b-855f-4d25-90ad-0905b498c1c0/data/customers - next: - href: /companies/354a121b-855f-4d25-90ad-0905b498c1c0/data/customers?page=2&pageSize=2 - Dynamics 365 Business Central: - value: - results: - - id: 0e2f7751-7696-ed11-bff5-6045bd0d2ad6 - customerName: '' - contactName: '' - emailAddress: '' - defaultCurrency: GBP - phone: '' - addresses: - - type: Billing - line1: '' - line2: '' - city: '' - region: '' - country: '' - postalCode: '' - contacts: - - name: '' - email: '' - phone: [] - address: - type: Billing - line1: '' - line2: '' - city: '' - region: '' - country: '' - postalCode: '' - status: Active - taxNumber: '' - status: Active - modifiedDate: '2023-03-27T14:21:25Z' - sourceModifiedDate: '2023-01-17T14:50:54Z' - metadata: - isDeleted: false - - id: 0ef95175-48c4-eb11-9f0a-0022481b4343 - customerName: '' - contactName: '' - emailAddress: '' - defaultCurrency: GBP - phone: '' - addresses: - - type: Billing - line1: '' - line2: '' - city: '' - region: '' - country: GB - postalCode: '' - contacts: - - name: '' - email: '' - phone: [] - address: - type: Billing - line1: '' - line2: '' - city: '' - region: '' - country: GB - postalCode: '' - status: Active - taxNumber: '' - status: Active - modifiedDate: '2023-03-27T14:21:25Z' - sourceModifiedDate: '2021-06-03T08:48:36Z' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 42 - _links: - current: - href: /companies/d6849caf-c146-41be-8335-b73346e3bd84/data/customers?page=1&pageSize=2 - self: - href: /companies/d6849caf-c146-41be-8335-b73346e3bd84/data/customers - next: - href: /companies/d6849caf-c146-41be-8335-b73346e3bd84/data/customers?page=2&pageSize=2 - Exact (Netherlands): - value: - results: - - id: 555f8251-c65a-433a-a813-5dbe04321d1e - customerName: Ab Netherlands - defaultCurrency: EUR - addresses: - - type: Billing - country: NL - contacts: [] - status: Active - modifiedDate: '2022-10-26T13:32:05Z' - sourceModifiedDate: '2021-06-14T15:26:37Z' - - id: 9fd1f78e-67aa-4af7-8a10-df1fc5fb5841 - customerName: anna test 2 - defaultCurrency: EUR - addresses: - - type: Billing - country: NL - contacts: [] - status: Active - modifiedDate: '2022-10-26T13:32:05Z' - sourceModifiedDate: '2022-05-24T11:53:21Z' - pageNumber: 1 - pageSize: 2 - totalResults: 71 - _links: - current: - href: /companies/b83b1923-4db6-45a8-a779-b4e320c15979/data/customers?page=1&pageSize=2 - self: - href: /companies/b83b1923-4db6-45a8-a779-b4e320c15979/data/customers - next: - href: /companies/b83b1923-4db6-45a8-a779-b4e320c15979/data/customers?page=2&pageSize=2 - Exact (UK): - value: - results: - - id: 5f20075a-a28e-434d-81a6-2db0dc170e87 - customerName: Abdi 99 - emailAddress: email@codat.io - defaultCurrency: GBP - addresses: - - type: Billing - line1: Ink Rooms - city: London - country: GB - postalCode: WC1X 0BE - contacts: [] - registrationNumber: '123456789' - taxNumber: GB339 0727 47 - status: Active - modifiedDate: '2022-10-26T13:33:08Z' - sourceModifiedDate: '2020-02-26T11:23:50Z' - - id: 1d9dc1a7-92d6-441b-93fd-42c9fb321b1c - customerName: Abdulbasit Al-haj - contactName: abeee - emailAddress: a.alhaj@codat.io - defaultCurrency: GBP - addresses: - - type: Billing - country: GB - contacts: - - name: abeee - phone: [] - address: - type: Unknown - line1: '' - country: 'GB ' - status: Active - modifiedDate: '2020-02-24T12:00:51.027Z' - status: Active - modifiedDate: '2022-10-26T13:33:08Z' - sourceModifiedDate: '2020-02-24T12:00:50Z' - pageNumber: 1 - pageSize: 2 - totalResults: 53 - _links: - current: - href: /companies/d95030cd-22b2-482b-9c7b-2980dcc2b1ce/data/customers?page=1&pageSize=2 - self: - href: /companies/d95030cd-22b2-482b-9c7b-2980dcc2b1ce/data/customers - next: - href: /companies/d95030cd-22b2-482b-9c7b-2980dcc2b1ce/data/customers?page=2&pageSize=2 - FreeAgent: - value: - results: - - id: '11526230' - customerName: '-' - contactName: Test 1 - addresses: - - type: Billing - line1: 1 Place House - line2: '' - city: London - country: United Kingdom - postalCode: WC1X 1AH - contacts: - - name: Test 1 - phone: [] - address: - type: Billing - line1: 1 Place House - line2: '' - city: London - country: United Kingdom - postalCode: WC1X 1AH - status: Unknown - status: Active - modifiedDate: '2023-04-25T14:19:12Z' - sourceModifiedDate: '2023-04-17T06:02:46Z' - metadata: - isDeleted: false - - id: '9677150' - customerName: '-' - contactName: Test 1 - addresses: - - type: Billing - line1: 1 Place House - line2: '' - city: London - country: United Kingdom - postalCode: WC1X 1AH - contacts: - - name: Test 1 - phone: [] - address: - type: Billing - line1: 1 Place House - line2: '' - city: London - country: United Kingdom - postalCode: WC1X 1AH - status: Unknown - status: Active - modifiedDate: '2023-04-25T14:19:12Z' - sourceModifiedDate: '2023-04-24T06:19:23Z' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 159 - _links: - current: - href: /companies/071ad738-68f3-4561-afd0-69bab9df0803/data/customers?page=1&pageSize=2 - self: - href: /companies/071ad738-68f3-4561-afd0-69bab9df0803/data/customers - next: - href: /companies/071ad738-68f3-4561-afd0-69bab9df0803/data/customers?page=2&pageSize=2 - FreshBooks: - value: - results: - - id: '634509' - customerName: A test customer 14 (updated) - contactName: test person name - emailAddress: test14@example.com - defaultCurrency: GBP - phone: 01876 541245 - addresses: - - type: Billing - line1: Line 1 - line2: Line 2 - city: Some city - region: A region - country: Country 1 - postalCode: SW1 2JQ - contacts: - - name: test person1 - email: test14A@example.com - phone: - - number: '24681012' - type: Primary - - number: '121086420' - type: Unknown - status: Active - - name: test person2 - email: test14B@example.com - phone: - - number: 1234 56789 - type: Primary - - number: 9876 54321 - type: Unknown - status: Active - - name: test person name - email: test14@example.com - phone: - - number: 01876 541245 - type: Unknown - status: Active - status: Active - modifiedDate: '2023-03-24T16:07:23Z' - sourceModifiedDate: '2022-05-18T09:23:56' - metadata: - isDeleted: false - - id: '634486' - customerName: A test customer name 2 - contactName: test person name - emailAddress: test8@example.com - defaultCurrency: GBP - phone: 01876 541245 - addresses: - - type: Billing - line1: Line 1 - line2: Line 2 - city: Some city - region: A region - country: Country 1 - postalCode: SW1 2JQ - contacts: - - name: test person1 - email: test9@example.com - phone: - - number: '24681012' - type: Primary - - number: '121086420' - type: Unknown - status: Active - - name: test person2 - email: test10@example.com - phone: - - number: '123456789' - type: Primary - - number: '987654321' - type: Unknown - status: Active - - name: test person name - email: test8@example.com - phone: - - number: 01876 541245 - type: Unknown - status: Active - status: Active - modifiedDate: '2023-03-24T16:07:23Z' - sourceModifiedDate: '2022-05-11T11:39:58' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 39 - _links: - current: - href: /companies/3691c49e-0db4-4172-b3ab-e4084c365013/data/customers?page=1&pageSize=2 - self: - href: /companies/3691c49e-0db4-4172-b3ab-e4084c365013/data/customers - next: - href: /companies/3691c49e-0db4-4172-b3ab-e4084c365013/data/customers?page=2&pageSize=2 - KashFlow: - value: - results: - - id: '92227673' - customerName: Chekko Customer Test 01 - contactName: '' - emailAddress: '' - phone: '' - addresses: [] - contacts: - - name: '' - email: '' - phone: [] - status: Active - taxNumber: '' - status: Active - modifiedDate: '2022-09-30T10:29:15Z' - sourceModifiedDate: '0001-01-01T00:00:00' - - id: '88459410' - customerName: Diogo Sousa - contactName: Mr Diogo Sousa - emailAddress: diogomail@mail.com - phone: '123123123' - addresses: - - type: Billing - line1: Billing Address - line2: Billing line 2 Billing line 3 - city: Billing line 4 - country: United Kingdom - postalCode: '123321' - - type: Delivery - line1: Delivery Address - line2: Delivery line2 Delivery line3 - city: Delivery line4 - country: United Kingdom - postalCode: '123321' - contacts: - - name: Mr Diogo Sousa - email: diogomail@mail.com - phone: - - number: '123123123' - type: Landline - - number: '321321321' - type: Mobile - address: - type: Billing - line1: Billing Address - line2: Billing line 2 Billing line 3 - city: Billing line 4 - country: United Kingdom - postalCode: '123321' - status: Active - - name: Mr Diogo Sousa - phone: [] - address: - type: Delivery - line1: Delivery Address - line2: Delivery line2 Delivery line3 - city: Delivery line4 - country: United Kingdom - postalCode: '123321' - status: Active - taxNumber: '' - status: Active - modifiedDate: '2022-09-30T10:29:15Z' - sourceModifiedDate: '2021-05-04T13:22:19' - pageNumber: 1 - pageSize: 2 - totalResults: 10 - _links: - current: - href: /companies/3a707a99-89da-4b16-a5d6-595333a16352/data/customers?page=1&pageSize=2 - self: - href: /companies/3a707a99-89da-4b16-a5d6-595333a16352/data/customers - next: - href: /companies/3a707a99-89da-4b16-a5d6-595333a16352/data/customers?page=2&pageSize=2 - Oracle NetSuite: - value: - results: - - id: '773' - customerName: 119 Test Customer - contactName: Mr Test Customer - defaultCurrency: GBP - addresses: [] - contacts: [] - status: Active - modifiedDate: '2023-01-30T14:48:02Z' - sourceModifiedDate: '2022-01-11T12:28:49' - - id: '172722' - customerName: 1248 European Company - contactName: European Company - defaultCurrency: GBP - addresses: [] - contacts: [] - status: Active - modifiedDate: '2023-01-30T14:48:02Z' - sourceModifiedDate: '2022-07-27T14:29:16' - pageNumber: 1 - pageSize: 2 - totalResults: 4 - _links: - current: - href: /companies/d5074b08-6a34-4b06-a742-236edf5dc4f1/data/customers?page=1&pageSize=2 - self: - href: /companies/d5074b08-6a34-4b06-a742-236edf5dc4f1/data/customers - next: - href: /companies/d5074b08-6a34-4b06-a742-236edf5dc4f1/data/customers?page=2&pageSize=2 - QuickBooks Desktop: - value: - results: - - id: 150000-933272658 - customerName: 'Abercrombie, Kristy' - contactName: Kristy Abercrombie - emailAddress: kristy@samplename.com - defaultCurrency: GBP - phone: 415-555-6579 - addresses: - - type: Delivery - line1: Kristy Abercrombie - line2: 5647 Cypress Hill Rd - city: Bayshore - region: CA - postalCode: '94326' - - type: Billing - line1: Kristy Abercrombie - line2: 5647 Cypress Hill Rd - city: Bayshore - region: CA - postalCode: '94326' - contacts: - - name: 'Abercrombie, Kristy' - email: kristy@samplename.com - phone: - - number: 415-555-6579 - type: Primary - status: Active - - name: Kristy Abercrombie - phone: [] - status: Active - - name: Steve Darcangelo - phone: [] - status: Active - status: Active - modifiedDate: '2023-04-26T09:07:55Z' - sourceModifiedDate: '2023-12-16T05:06:42' - metadata: - isDeleted: false - - id: 800000D0-1182061376 - customerName: 'Allard, Robert' - contactName: Amanda Roberts - emailAddress: rallard@myemail.com - defaultCurrency: GBP - phone: 650-555-3422 - addresses: - - type: Delivery - line1: Robert Allard - line2: 92834 Chandler St. - city: Millbrae - region: CA - postalCode: '94030' - - type: Billing - line1: Robert Allard - line2: 92834 Chandler St. - city: Millbrae - region: CA - postalCode: '94030' - contacts: - - name: 'Allard, Robert' - email: rallard@myemail.com - phone: - - number: 650-555-3422 - type: Primary - - number: 650-555-9804 - type: Fax - - number: 650-555-8349 - type: Unknown - status: Active - - name: Robert Allard - phone: [] - status: Active - - name: Rachel Fisher - phone: [] - status: Active - status: Active - modifiedDate: '2023-04-26T09:07:55Z' - sourceModifiedDate: '2023-12-16T05:06:42' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 64 - _links: - current: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/data/customers?page=1&pageSize=2 - self: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/data/customers - next: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/data/customers?page=2&pageSize=2 - QuickBooks Online: - value: - results: - - id: '9' - customerName: Abe - contactName: Abraham's Company - emailAddress: ab@email.com - defaultCurrency: GBP - addresses: [] - contacts: - - name: Abe - email: ab@email.com - phone: - - number: '01111111111' - type: Mobile - status: Active - registrationNumber: XXXX9900001 - taxNumber: XXXX9900001 - status: Active - modifiedDate: '2023-01-18T11:02:35Z' - sourceModifiedDate: '2022-12-08T15:42:59Z' - - id: '49' - customerName: adeel qbo child test - contactName: Adeel test - emailAddress: adeel@adeel.com - defaultCurrency: GBP - phone: '123456789' - addresses: - - type: Billing - line1: 4 Privet Drive - city: London - country: United Kingdom - postalCode: WD25 7LR - - type: Delivery - line1: 4 Privet Drive - city: London - country: United Kingdom - postalCode: WD25 7LR - contacts: - - name: Adeel test - email: adeel@adeel.com - phone: - - number: '123456789' - type: Primary - - number: '07546543216' - type: Mobile - address: - type: Billing - line1: 4 Privet Drive - city: London - country: United Kingdom - postalCode: WD25 7LR - status: Active - status: Active - modifiedDate: '2023-01-18T11:02:35Z' - sourceModifiedDate: '2022-08-22T09:21:09Z' - pageNumber: 1 - pageSize: 2 - totalResults: 40 - _links: - current: - href: /companies/10818b5e-6e6a-4ed4-a1c5-3e3efe626e87/data/customers?page=1&pageSize=2 - self: - href: /companies/10818b5e-6e6a-4ed4-a1c5-3e3efe626e87/data/customers - next: - href: /companies/10818b5e-6e6a-4ed4-a1c5-3e3efe626e87/data/customers?page=2&pageSize=2 - QuickBooks Online Sandbox: - value: - results: - - id: '66' - customerName: Abercrombie International Group - contactName: Kristy Abercrombie - defaultCurrency: GBP - addresses: - - type: Billing - line1: 123 Main St - city: 'New York, NY' - contacts: - - name: Abercrombie International Group (deleted) - phone: [] - address: - type: Billing - line1: 123 Main St - city: 'New York, NY' - status: Archived - status: Archived - modifiedDate: '2023-04-26T09:35:56Z' - sourceModifiedDate: '2016-09-12T18:53:19Z' - metadata: - isDeleted: false - - id: '67' - customerName: Abercrombie International Group - contactName: Natalie Watts - emailAddress: n.watts@google.com - defaultCurrency: USD - addresses: - - type: Billing - - type: Delivery - contacts: - - name: Abercrombie International Group - email: n.watts@google.com - phone: [] - address: - type: Billing - status: Active - registrationNumber: XXXXVat123456 - taxNumber: XXXXVat123456 - status: Active - modifiedDate: '2023-04-26T09:35:56Z' - sourceModifiedDate: '2023-03-29T01:12:55Z' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 243 - _links: - current: - href: /companies/5a7f3597-36e1-4216-86fe-289ad36088a6/data/customers?page=1&pageSize=2 - self: - href: /companies/5a7f3597-36e1-4216-86fe-289ad36088a6/data/customers - next: - href: /companies/5a7f3597-36e1-4216-86fe-289ad36088a6/data/customers?page=2&pageSize=2 - Sage 200cloud: - value: - results: - - id: A1D001 - customerName: A1 Design Services - contactName: Lee Dalkin - emailAddress: newbusinessadvice@sage.com - defaultCurrency: GBP - phone: 01742 876 234 - addresses: - - type: Delivery - line1: 67a Station Road - line2: '' - city: Blackpool - region: Lancashire - country: '' - postalCode: BP12 7HT - - type: Delivery - line1: 23a Union Street - line2: '' - city: Manchester - region: '' - country: '' - postalCode: M2 6JK - - type: Billing - line1: 67a Station Road - line2: '' - city: Blackpool - region: Lancashire - country: Great Britain - postalCode: BP12 7HT - contacts: - - name: Lee Dalkin - email: newbusinessadvice@sage.com - phone: - - number: 01742 876 234 - type: Landline - - number: 01742 876 235 - type: Landline - - number: 01742 876 236 - type: Fax - status: Active - - name: Malcolm Leverret - email: '' - phone: [] - status: Active - - name: Jim Thomas - email: Jim@a1designservices.co.uk - phone: - - number: 01742 876 234 - type: Landline - - number: 01742 876 235 - type: Fax - status: Active - - name: Jullian Plawsworth - email: Jullian@a1designservices.co.uk - phone: - - number: 0151 349 3939 - type: Landline - - number: 0151 349 3940 - type: Fax - status: Active - registrationNumber: '' - taxNumber: GB238 3839 38 - status: Active - modifiedDate: '2022-10-14T09:35:53Z' - sourceModifiedDate: '2022-04-27T15:17:36Z' - - id: A1D002 - customerName: A2 Design Services - contactName: Lee Dalkin - emailAddress: newbusinessadvice@sage.com - defaultCurrency: GBP - phone: 01742 876 234 - addresses: - - type: Billing - line1: 77a Station Road - line2: '' - city: Blackpool - region: Lancashire - country: Great Britain - postalCode: BP12 7HT - contacts: - - name: Lee Dalkin - email: newbusinessadvice@sage.com - phone: - - number: 01742 876 234 - type: Landline - - number: 01742 876 235 - type: Landline - - number: 01742 876 236 - type: Fax - status: Active - - name: Malcolm Leverret - email: '' - phone: [] - status: Active - - name: Jim Thomas - email: Jim@a1designservices.co.uk - phone: - - number: 01742 876 234 - type: Landline - - number: 01742 876 235 - type: Fax - status: Active - - name: Jullian Plawsworth - email: Jullian@a1designservices.co.uk - phone: - - number: 0151 349 3939 - type: Landline - - number: 0151 349 3940 - type: Fax - status: Active - registrationNumber: '' - taxNumber: GB238 3839 40 - status: Active - modifiedDate: '2022-10-14T09:35:53Z' - sourceModifiedDate: '2020-09-23T10:28:58Z' - pageNumber: 1 - pageSize: 2 - totalResults: 43 - _links: - current: - href: /companies/93c21e2d-049c-4d24-b41b-57e61c30b69e/data/customers?page=1&pageSize=2 - self: - href: /companies/93c21e2d-049c-4d24-b41b-57e61c30b69e/data/customers - next: - href: /companies/93c21e2d-049c-4d24-b41b-57e61c30b69e/data/customers?page=2&pageSize=2 - Sage 50 (UK): - value: - results: - - id: A1D001 - customerName: A1 Design Services - contactName: Ian Cairns - emailAddress: newbusinessadvice@sage.com - defaultCurrency: GBP - phone: 01742 876 234 - addresses: - - type: Delivery - line1: 67a Station Road - line2: '' - city: Blackpool - region: Lancashire - country: GB - postalCode: BP12 7HT - - type: Delivery - line1: 23a Union Street - line2: '' - city: Manchester - region: '' - country: GB - postalCode: M2 6JK - - type: Unknown - line1: 67a Station Road - line2: '' - city: Blackpool - region: Lancashire - country: GB - postalCode: BP12 7HT - contacts: [] - taxNumber: GB238 3839 38 - status: Active - modifiedDate: '2023-03-30T14:42:41Z' - sourceModifiedDate: '2022-11-25T09:43:54Z' - metadata: - isDeleted: false - - id: ABS001 - customerName: ABS Garages Ltd - contactName: Mike Hall - emailAddress: newbusinessadvice@sage.com - defaultCurrency: GBP - phone: 0191 254 5909 - addresses: - - type: Delivery - line1: Swanson Industries - line2: Dukes Industrial Estate - city: Whitley Bay - region: North Tyneside - country: GB - postalCode: NE56 4ER - - type: Delivery - line1: Unit 34 - line2: Holystone Ind Estate - city: Hebburn - region: Tyne & Wear - country: GB - postalCode: NE31 1VB - - type: Unknown - line1: Unit 34 - line2: Holystone Ind Estate - city: Hebburn - region: Tyne & Wear - country: GB - postalCode: NE31 1VB - contacts: [] - taxNumber: GB745 4584 68 - status: Active - modifiedDate: '2023-03-30T14:42:41Z' - sourceModifiedDate: '2022-11-25T09:43:54Z' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 30 - _links: - current: - href: /companies/cf5f2a47-2990-4221-bae6-0c19c86ac304/data/customers?page=1&pageSize=2 - self: - href: /companies/cf5f2a47-2990-4221-bae6-0c19c86ac304/data/customers - next: - href: /companies/cf5f2a47-2990-4221-bae6-0c19c86ac304/data/customers?page=2&pageSize=2 - Sage Business Cloud Accounting: - value: - results: - - id: 260f6a3f94a243738f2d5e08496a41a8 - customerName: 100 test name - contactName: Main Contact - emailAddress: email@codat.io - defaultCurrency: GBP - phone: contact phone number - addresses: - - type: Billing - line1: Aruba Address line 1 - line2: Aruba Address line 2 - city: Aruba City - region: Aruba Province - country: Aruba (AW) - postalCode: Aruba Post - contacts: - - phone: - - number: contact mobile number - type: Mobile - - number: contact fax number - type: Fax - status: Unknown - status: Active - modifiedDate: '2022-10-24T14:52:54Z' - sourceModifiedDate: '2021-05-10T16:31:51Z' - - id: 44a5d9461d9e4f6d90a5ace251c5cf35 - customerName: 100 test name DS - contactName: Main Contact - emailAddress: DCemail@codat.io - defaultCurrency: GBP - phone: contact phone number - addresses: - - type: Billing - line1: POST - Aruba Address line 1 - line2: POST - Aruba Address line 2 - city: POST - Aruba City - region: Aruba Province - country: Aruba (AW) - postalCode: Aruba Post - contacts: [] - status: Active - modifiedDate: '2022-10-24T14:52:54Z' - sourceModifiedDate: '2021-06-10T14:22:46Z' - pageNumber: 1 - pageSize: 2 - totalResults: 168 - _links: - current: - href: /companies/390083e2-351b-407c-a3be-55081c36c182/data/customers?page=1&pageSize=2 - self: - href: /companies/390083e2-351b-407c-a3be-55081c36c182/data/customers - next: - href: /companies/390083e2-351b-407c-a3be-55081c36c182/data/customers?page=2&pageSize=2 - Sage Intacct: - value: - results: - - id: '188' - customerName: 33Across - contactName: Yuna Conn - defaultCurrency: USD - phone: 520-393-4468 - addresses: - - type: Unknown - line1: 155 Westend Point - line2: '' - city: Albuquerque - region: NM - country: United States - postalCode: '87140' - contacts: - - name: 'Conn, Yuna' - phone: - - number: 520-393-4468 - type: Primary - address: - type: Unknown - line1: 155 Westend Point - line2: '' - city: Albuquerque - region: NM - country: United States - postalCode: '87140' - status: Unknown - taxNumber: '' - status: Active - modifiedDate: '2023-04-04T16:32:21Z' - sourceModifiedDate: '2022-09-06T12:58:27' - metadata: - isDeleted: false - - id: '324' - customerName: 3Way International Logistics - contactName: Lauri O'Heagertie - defaultCurrency: CAD - phone: 410-309-3976 - addresses: - - type: Unknown - line1: 7 Lerdahl Junction - line2: '' - city: Sparwood - region: British Columbia - country: Canada - postalCode: L4R - contacts: - - name: 'O''Heagertie, Lauri' - phone: - - number: 410-309-3976 - type: Primary - address: - type: Unknown - line1: 7 Lerdahl Junction - line2: '' - city: Sparwood - region: British Columbia - country: Canada - postalCode: L4R - status: Unknown - taxNumber: '' - status: Active - modifiedDate: '2023-04-04T16:32:21Z' - sourceModifiedDate: '2020-10-20T05:01:49' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 530 - _links: - current: - href: /companies/df02b289-cb16-4964-ac4d-9fd60b04538e/data/customers?page=1&pageSize=2 - self: - href: /companies/df02b289-cb16-4964-ac4d-9fd60b04538e/data/customers - next: - href: /companies/df02b289-cb16-4964-ac4d-9fd60b04538e/data/customers?page=2&pageSize=2 - Wave: - value: - results: - - id: QnVzaW5lc3M6ZTI0OGQyZDctMWE5Ni00YTk4LWFkOTEtMDdlMGYyMmNhNmE2O0N1c3RvbWVyOjMyMzkzNTA4 - customerName: ABC Textiles - contactName: '' - emailAddress: c.taylor@codat.io - defaultCurrency: USD - addresses: [] - contacts: [] - status: Active - modifiedDate: '2022-11-16T18:15:30Z' - sourceModifiedDate: '2019-10-17T07:59:04Z' - - id: QnVzaW5lc3M6ZTI0OGQyZDctMWE5Ni00YTk4LWFkOTEtMDdlMGYyMmNhNmE2O0N1c3RvbWVyOjM3MTUzNDI2 - customerName: Coffee Cart - contactName: Coffee Carl - emailAddress: coffee.cart@example.com - defaultCurrency: GBP - phone: '0201111' - addresses: - - type: Billing - line1: 11 Coffee Lane - line2: Coffee Town - city: Coffee City - region: Hampshire - country: United Kingdom - postalCode: CC1 1CC - contacts: - - name: Coffee Carl - phone: - - number: '07733' - type: Mobile - status: Active - status: Active - modifiedDate: '2022-11-16T18:15:30Z' - sourceModifiedDate: '2020-03-17T19:12:39Z' - pageNumber: 1 - pageSize: 2 - totalResults: 10 - _links: - current: - href: /companies/0b22b59d-b4e5-4c35-b03f-88bbbcb41256/data/customers?page=1&pageSize=2 - self: - href: /companies/0b22b59d-b4e5-4c35-b03f-88bbbcb41256/data/customers - next: - href: /companies/0b22b59d-b4e5-4c35-b03f-88bbbcb41256/data/customers?page=2&pageSize=2 - Xero: - value: - results: - - id: e4c9d0e2-c285-4e85-b579-6d28b180c730 - customerName: 24 Locks - emailAddress: '' - addresses: [] - contacts: [] - status: Active - modifiedDate: '2023-03-15T20:35:10Z' - sourceModifiedDate: '2023-02-17T18:03:42' - metadata: - isDeleted: false - - id: bab779bc-c5fb-42cb-a888-953e8309711c - customerName: 7-Eleven - emailAddress: '' - addresses: [] - contacts: [] - status: Active - modifiedDate: '2023-03-15T20:35:10Z' - sourceModifiedDate: '2023-02-17T18:03:42' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 48 - _links: - current: - href: /companies/5ced9667-a310-443a-a711-958d36377141/data/customers?page=1&pageSize=2 - self: - href: /companies/5ced9667-a310-443a-a711-958d36377141/data/customers - next: - href: /companies/5ced9667-a310-443a-a711-958d36377141/data/customers?page=2&pageSize=2 - Zoho Books: - value: - results: - - id: '104957000000032105' - customerName: A B - contactName: Contact (First Name) Contact (Last Name) - emailAddress: contactperson@whateveryouwantidontcare12345.com - defaultCurrency: GBP - phone: Work Phone - addresses: [] - contacts: - - name: Contact (First Name) Contact (Last Name) - email: contactperson@whateveryouwantidontcare12345.com - phone: - - number: Work Phone - type: Landline - - number: Mobile - type: Mobile - status: Active - status: Active - modifiedDate: '2022-10-03T08:40:37Z' - sourceModifiedDate: '2022-06-09T14:36:47' - - id: '104957000000054050' - customerName: 'Doe, John' - contactName: John Doe - emailAddress: '' - defaultCurrency: GBP - addresses: [] - contacts: - - name: John Doe - email: '' - phone: [] - status: Active - status: Active - modifiedDate: '2022-10-03T08:40:37Z' - sourceModifiedDate: '2022-09-28T15:09:22' - pageNumber: 1 - pageSize: 2 - totalResults: 14 - _links: - current: - href: /companies/d0b68840-db50-4bc3-b88c-96e225333fea/data/customers?page=1&pageSize=2 - self: - href: /companies/d0b68840-db50-4bc3-b88c-96e225333fea/data/customers - next: - href: /companies/d0b68840-db50-4bc3-b88c-96e225333fea/data/customers?page=2&pageSize=2 - '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' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - description: |- - The *List customers* endpoint returns a list of [customers](https://docs.codat.io/lending-api#/schemas/Customer) for a given company's connection. - - [Customers](https://docs.codat.io/lending-api#/schemas/Customer) are people or organizations that buy goods or services from the SMB. - - Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data). - - operationId: list-accounting-customers - x-speakeasy-group: accounts-receivable.customers - '/companies/{companyId}/data/customers/{customerId}': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/customerId' - get: - tags: - - Accounts receivable - summary: Get customer - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/AccountingCustomer' - examples: - Clear Books: - value: - id: c8180244-74ac-40cf-a5df-6d83661c44d7 - customerName: Arjun Kuvalis - contactName: Werner Langworth - emailAddress: Arjun34@hotmail.com - defaultCurrency: GBP - phone: 014605 64820 - addresses: - - type: Delivery - line1: Suite 214 - line2: 8439 Lueilwitz Passage - city: Fernandohaven - region: Northern Ireland - country: United Kingdom - postalCode: JG04 7PV - - type: Delivery - line1: Suite 096 - line2: 864 Halie Course - city: Juliochester - region: England - country: United Kingdom - postalCode: DZ8 4BF - - type: Delivery - line1: Suite 001 - line2: 416 Stokes Fords - city: Naderborough - region: Wales - country: United Kingdom - postalCode: XG25 0XX - contacts: - - name: Werner Langworth - email: Werner_Langworth@hotmail.com - phone: [] - address: - type: Delivery - line1: Apt. 145 - line2: 317 Williamson Freeway - city: Hortenseville - region: Scotland - country: United Kingdom - postalCode: CV4 2HR - status: Active - - name: Belle Glover - email: Belle51@yahoo.com - phone: [] - address: - type: Delivery - line1: Suite 075 - line2: 9921 Dickens Walk - city: South Ali - region: Scotland - country: United Kingdom - postalCode: TI04 4OO - status: Active - registrationNumber: NI7JEJVM - taxNumber: '7505220209.583549' - status: Active - modifiedDate: '2023-04-26T12:38:16Z' - sourceModifiedDate: '2022-07-03T01:27:00' - metadata: - isDeleted: false - Dynamics 365 Business Central: - value: - id: 0e2f7751-7696-ed11-bff5-6045bd0d2ad6 - customerName: '' - contactName: '' - emailAddress: '' - defaultCurrency: GBP - phone: '' - addresses: - - type: Billing - line1: '' - line2: '' - city: '' - region: '' - country: '' - postalCode: '' - contacts: - - name: '' - email: '' - phone: [] - address: - type: Billing - line1: '' - line2: '' - city: '' - region: '' - country: '' - postalCode: '' - status: Active - taxNumber: '' - status: Active - modifiedDate: '2023-03-27T14:21:25Z' - sourceModifiedDate: '2023-01-17T14:50:54Z' - metadata: - isDeleted: false - Exact (Netherlands): - value: - id: 555f8251-c65a-433a-a813-5dbe04321d1e - customerName: Ab Netherlands - defaultCurrency: EUR - addresses: - - type: Billing - country: NL - contacts: [] - status: Active - modifiedDate: '2022-10-26T13:32:05Z' - sourceModifiedDate: '2021-06-14T15:26:37Z' - Exact (UK): - value: - id: 5f20075a-a28e-434d-81a6-2db0dc170e87 - customerName: Abdi 99 - emailAddress: email@codat.io - defaultCurrency: GBP - addresses: - - type: Billing - line1: Ink Rooms - city: London - country: GB - postalCode: WC1X 0BE - contacts: [] - registrationNumber: '123456789' - taxNumber: GB339 0727 47 - status: Active - modifiedDate: '2022-10-26T13:33:08Z' - sourceModifiedDate: '2020-02-26T11:23:50Z' - FreeAgent: - value: - id: '11526230' - customerName: '-' - contactName: Test 1 - addresses: - - type: Billing - line1: 1 Place House - line2: '' - city: London - country: United Kingdom - postalCode: WC1X 1AH - contacts: - - name: Test 1 - phone: [] - address: - type: Billing - line1: 1 Place House - line2: '' - city: London - country: United Kingdom - postalCode: WC1X 1AH - status: Unknown - status: Active - modifiedDate: '2023-04-25T14:19:12Z' - sourceModifiedDate: '2023-04-17T06:02:46Z' - metadata: - isDeleted: false - FreshBooks: - value: - id: '634509' - customerName: A test customer 14 (updated) - contactName: test person name - emailAddress: test14@example.com - defaultCurrency: GBP - phone: 01876 541245 - addresses: - - type: Billing - line1: Line 1 - line2: Line 2 - city: Some city - region: A region - country: Country 1 - postalCode: SW1 2JQ - contacts: - - name: test person1 - email: test14A@example.com - phone: - - number: '24681012' - type: Primary - - number: '121086420' - type: Unknown - status: Active - - name: test person2 - email: test14B@example.com - phone: - - number: '123456789' - type: Primary - - number: '987654321' - type: Unknown - status: Active - - name: test person name - email: test14@example.com - phone: - - number: 01876 541245 - type: Unknown - status: Active - status: Active - modifiedDate: '2023-03-24T16:07:23Z' - sourceModifiedDate: '2022-05-18T09:23:56' - metadata: - isDeleted: false - KashFlow: - value: - id: '92227673' - customerName: Chekko Customer Test 01 - contactName: '' - emailAddress: '' - phone: '' - addresses: [] - contacts: - - name: '' - email: '' - phone: [] - status: Active - taxNumber: '' - status: Active - modifiedDate: '2022-09-30T10:29:15Z' - sourceModifiedDate: '0001-01-01T00:00:00' - Oracle NetSuite: - value: - id: '773' - customerName: 119 Test Customer - contactName: Mr Test Customer - defaultCurrency: GBP - addresses: [] - contacts: [] - status: Active - modifiedDate: '2023-01-30T14:48:02Z' - sourceModifiedDate: '2022-01-11T12:28:49' - QuickBooks Desktop: - value: - id: 150000-933272658 - customerName: 'Abercrombie, Kristy' - contactName: Kristy Abercrombie - emailAddress: kristy@samplename.com - defaultCurrency: GBP - phone: 415-555-6579 - addresses: - - type: Delivery - line1: Kristy Abercrombie - line2: 5647 Cypress Hill Rd - city: Bayshore - region: CA - postalCode: '94326' - - type: Billing - line1: Kristy Abercrombie - line2: 5647 Cypress Hill Rd - city: Bayshore - region: CA - postalCode: '94326' - contacts: - - name: 'Abercrombie, Kristy' - email: kristy@samplename.com - phone: - - number: 415-555-6579 - type: Primary - status: Active - - name: Kristy Abercrombie - phone: [] - status: Active - - name: Steve Darcangelo - phone: [] - status: Active - status: Active - modifiedDate: '2023-04-26T09:07:55Z' - sourceModifiedDate: '2023-12-16T05:06:42' - metadata: - isDeleted: false - QuickBooks Online: - value: - id: '9' - customerName: Abe - contactName: Abraham's Company - emailAddress: ab@email.com - defaultCurrency: GBP - addresses: [] - contacts: - - name: Abe - email: ab@email.com - phone: - - number: '01111111111' - type: Mobile - status: Active - registrationNumber: XXXX9900001 - taxNumber: XXXX9900001 - status: Active - modifiedDate: '2023-01-18T11:02:35Z' - sourceModifiedDate: '2022-12-08T15:42:59Z' - QuickBooks Online Sandbox: - value: - id: '66' - customerName: Abercrombie International Group - contactName: Kristy Abercrombie - defaultCurrency: GBP - addresses: - - type: Billing - line1: 123 Main St - city: 'New York, NY' - contacts: - - name: Abercrombie International Group (deleted) - phone: [] - address: - type: Billing - line1: 123 Main St - city: 'New York, NY' - status: Archived - status: Archived - modifiedDate: '2023-04-26T09:35:56Z' - sourceModifiedDate: '2016-09-12T18:53:19Z' - metadata: - isDeleted: false - Sage 200cloud: - value: - id: A1D001 - customerName: A1 Design Services - contactName: Lee Dalkin - emailAddress: newbusinessadvice@sage.com - defaultCurrency: GBP - phone: 01742 876 234 - addresses: - - type: Delivery - line1: 67a Station Road - line2: '' - city: Blackpool - region: Lancashire - country: '' - postalCode: BP12 7HT - - type: Delivery - line1: 23a Union Street - line2: '' - city: Manchester - region: '' - country: '' - postalCode: M2 6JK - - type: Billing - line1: 67a Station Road - line2: '' - city: Blackpool - region: Lancashire - country: Great Britain - postalCode: BP12 7HT - contacts: - - name: Lee Dalkin - email: newbusinessadvice@sage.com - phone: - - number: 01742 876 234 - type: Landline - - number: 01742 876 235 - type: Landline - - number: 01742 876 236 - type: Fax - status: Active - - name: Malcolm Leverret - email: '' - phone: [] - status: Active - - name: Jim Thomas - email: Jim@a1designservices.co.uk - phone: - - number: 01742 876 234 - type: Landline - - number: 01742 876 235 - type: Fax - status: Active - - name: Jullian Plawsworth - email: Jullian@a1designservices.co.uk - phone: - - number: 0151 349 3939 - type: Landline - - number: 0151 349 3940 - type: Fax - status: Active - registrationNumber: '' - taxNumber: GB238 3839 38 - status: Active - modifiedDate: '2022-10-14T09:35:53Z' - sourceModifiedDate: '2022-04-27T15:17:36Z' - Sage 50 (UK): - value: - id: A1D001 - customerName: A1 Design Services - contactName: Ian Cairns - emailAddress: newbusinessadvice@sage.com - defaultCurrency: GBP - phone: 01742 876 234 - addresses: - - type: Delivery - line1: 67a Station Road - line2: '' - city: Blackpool - region: Lancashire - country: GB - postalCode: BP12 7HT - - type: Delivery - line1: 23a Union Street - line2: '' - city: Manchester - region: '' - country: GB - postalCode: M2 6JK - - type: Unknown - line1: 67a Station Road - line2: '' - city: Blackpool - region: Lancashire - country: GB - postalCode: BP12 7HT - contacts: [] - taxNumber: GB238 3839 38 - status: Active - modifiedDate: '2023-03-30T14:42:41Z' - sourceModifiedDate: '2022-11-25T09:43:54Z' - metadata: - isDeleted: false - Sage Business Cloud Accounting: - value: - id: 260f6a3f94a243738f2d5e08496a41a8 - customerName: 100 test name - contactName: Main Contact - emailAddress: email@codat.io - defaultCurrency: GBP - phone: contact phone number - addresses: - - type: Billing - line1: Aruba Address line 1 - line2: Aruba Address line 2 - city: Aruba City - region: Aruba Province - country: Aruba (AW) - postalCode: Aruba Post - contacts: - - phone: - - number: contact mobile number - type: Mobile - - number: contact fax number - type: Fax - status: Unknown - status: Active - modifiedDate: '2022-10-24T14:52:54Z' - sourceModifiedDate: '2021-05-10T16:31:51Z' - Sage Intacct: - value: - id: '188' - customerName: 33Across - contactName: Yuna Conn - defaultCurrency: USD - phone: 520-393-4468 - addresses: - - type: Unknown - line1: 155 Westend Point - line2: '' - city: Albuquerque - region: NM - country: United States - postalCode: '87140' - contacts: - - name: 'Conn, Yuna' - phone: - - number: 520-393-4468 - type: Primary - address: - type: Unknown - line1: 155 Westend Point - line2: '' - city: Albuquerque - region: NM - country: United States - postalCode: '87140' - status: Unknown - taxNumber: '' - status: Active - modifiedDate: '2023-04-04T16:32:21Z' - sourceModifiedDate: '2022-09-06T12:58:27' - metadata: - isDeleted: false - Wave: - value: - id: QnVzaW5lc3M6ZTI0OGQyZDctMWE5Ni00YTk4LWFkOTEtMDdlMGYyMmNhNmE2O0N1c3RvbWVyOjMyMzkzNTA4 - customerName: ABC Textiles - contactName: '' - emailAddress: c.taylor@codat.io - defaultCurrency: USD - addresses: [] - contacts: [] - status: Active - modifiedDate: '2022-11-16T18:15:30Z' - sourceModifiedDate: '2019-10-17T07:59:04Z' - Xero: - value: - id: e4c9d0e2-c285-4e85-b579-6d28b180c730 - customerName: 24 Locks - emailAddress: '' - addresses: [] - contacts: [] - status: Active - modifiedDate: '2023-03-15T20:35:10Z' - sourceModifiedDate: '2023-02-17T18:03:42' - metadata: - isDeleted: false - Zoho Books: - value: - id: '104957000000032105' - customerName: A B - contactName: Contact (First Name) Contact (Last Name) - emailAddress: contactperson@whateveryouwantidontcare12345.com - defaultCurrency: GBP - phone: Work Phone - addresses: [] - contacts: - - name: Contact (First Name) Contact (Last Name) - email: contactperson@whateveryouwantidontcare12345.com - phone: - - number: Work Phone - type: Landline - - number: Mobile - type: Mobile - status: Active - status: Active - modifiedDate: '2022-10-03T08:40:37Z' - sourceModifiedDate: '2022-06-09T14:36:47' - '401': - $ref: '#/components/responses/Unauthorized' - '402': - $ref: '#/components/responses/Payment-Required' - '403': - $ref: '#/components/responses/Forbidden' - '404': - $ref: '#/components/responses/Not-Found' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - description: | - The *Get customer* endpoint returns a single customer for a given customerId. - - [Customers](https://docs.codat.io/lending-api#/schemas/Customer) are people or organizations that buy goods or services from the SMB. - - Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data). - operationId: get-accounting-customer - x-speakeasy-group: accounts-receivable.customers - '/companies/{companyId}/connections/{connectionId}/data/customers/{customerId}/attachments': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - - $ref: '#/components/parameters/customerId' - get: - tags: - - Accounts receivable - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/Attachments' - '401': - $ref: '#/components/responses/Unauthorized' - '402': - $ref: '#/components/responses/Payment-Required' - '403': - $ref: '#/components/responses/Forbidden' - '404': - $ref: '#/components/responses/Not-Found' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - summary: List customer attachments - description: |- - The *List customer attachments* endpoint returns a list of attachments avialable to download for given `customerId`. - - [Customers](https://docs.codat.io/lending-api#/schemas/Customer) are people or organizations that buy goods or services from the SMB. - operationId: list-accounting-customer-attachments - x-speakeasy-group: accounts-receivable.customers - '/companies/{companyId}/connections/{connectionId}/data/customers/{customerId}/attachments/{attachmentId}': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - - $ref: '#/components/parameters/customerId' - - $ref: '#/components/parameters/attachmentId' - get: - tags: - - Accounts receivable - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/AccountingAttachment' - examples: {} - '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' - summary: Get customer attachment - description: | - The *Get customer attachment* endpoint returns a specific attachment for a given `customerId` and `attachmentId`. - - [Customers](https://docs.codat.io/lending-api#/schemas/Customer) are people or organizations that buy goods or services from the SMB. - operationId: get-accounting-customer-attachment - x-speakeasy-group: accounts-receivable.customers - '/companies/{companyId}/connections/{connectionId}/data/customers/{customerId}/attachments/{attachmentId}/download': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - - $ref: '#/components/parameters/customerId' - - $ref: '#/components/parameters/attachmentId' - get: - tags: - - Accounts receivable - responses: - '200': - description: Success - content: - application/octet-stream: - schema: - title: Data - type: string - format: binary - '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' - summary: Download customer attachment - description: |- - The *Download customer attachment* endpoint downloads a specific attachment for a given `customerId` and `attachmentId`. - - [Customers](https://docs.codat.io/lending-api#/schemas/Customer) are people or organizations that buy goods or services from the SMB. - operationId: download-accounting-customer-attachment - x-speakeasy-group: accounts-receivable.customers - '/companies/{companyId}/connections/{connectionId}/data/directCosts': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - get: - tags: - - Transactions - summary: List direct costs - 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/AccountingDirectCosts' - examples: - Clear Books: - value: - results: - - id: 994ad234-ca05-466e-8e6a-117783b38cf6 - reference: 005b7b62-dc9f-42d2-85a2-4a2cefc6bab2 - note: 'Direct Cost with 1 line items, totaling 242.20' - contactRef: - id: D4Q4iYwHou - dataType: suppliers - issueDate: '2022-04-27T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Underground - Drain Saddle Branches 160mm x 110mm x 87 � - accountRef: - id: 7403e960-5b72-42ff-abf4-c870ad8910bd - name: Purchases - taxRateRef: - id: 6c88aff3-7cb9-4980-a3d3-443e72e02498 - name: Sales Tax (10%) - effectiveTaxRate: 10 - unitAmount: 220.18 - quantity: 1 - discountAmount: 0 - discountPercentage: 0 - subTotal: 220.18 - taxAmount: 22.02 - totalAmount: 242.2 - itemRef: - id: '2' - name: Solvent Weld Branch 160mm x 110mm x 87 � - trackingCategoryRefs: [] - paymentAllocations: - - payment: - id: 994ad234-ca05-466e-8e6a-117783b38cf6 - note: Payment for direct cost 994ad234-ca05-466e-8e6a-117783b38cf6 - reference: Direct Cost 994ad234-ca05-466e-8e6a-117783b38cf6 - accountRef: - id: dbcaf288-2b39-4b95-8ab3-42202ab15918 - name: Business Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-04-27T00:00:00' - totalAmount: 242.2 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2022-04-27T00:00:00' - totalAmount: -242.2 - subTotal: 220.18 - taxAmount: 22.02 - totalAmount: 242.2 - modifiedDate: '2023-04-26T12:38:18Z' - sourceModifiedDate: '2022-09-18T20:59:02' - metadata: - isDeleted: false - - id: 735b5f9b-9e58-4f8f-8a9d-083de599986c - reference: 7d011ce8-89ae-43e7-a2ed-cf028534ccdc - note: 'Direct Cost with 4 line items, totaling 13684.57' - contactRef: - id: d3tf43eghS - dataType: suppliers - issueDate: '2022-05-02T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Underground - Drain Yard Gully - accountRef: - id: 7403e960-5b72-42ff-abf4-c870ad8910bd - name: Purchases - taxRateRef: - id: 6c88aff3-7cb9-4980-a3d3-443e72e02498 - name: Sales Tax (10%) - effectiveTaxRate: 10 - unitAmount: 148.88 - quantity: 5 - discountAmount: 73.62 - discountPercentage: 9.89 - subTotal: 670.78 - taxAmount: 67.08 - totalAmount: 737.86 - itemRef: - id: 00491160-6ee5-4d76-9f34-998f00687481 - name: Aluminium Silt Bucket - trackingCategoryRefs: [] - - description: Underground - Drain Bottle Gullies 90 degree Rectangular - accountRef: - id: 7403e960-5b72-42ff-abf4-c870ad8910bd - name: Purchases - taxRateRef: - id: 6c88aff3-7cb9-4980-a3d3-443e72e02498 - name: Sales Tax (10%) - effectiveTaxRate: 10 - unitAmount: 82.68 - quantity: 3 - discountAmount: 0 - discountPercentage: 0 - subTotal: 248.04 - taxAmount: 24.8 - totalAmount: 272.84 - itemRef: - id: '6' - name: Back Inlet Roddable Gully 90� Outlet Rectangular Grid - trackingCategoryRefs: [] - - description: Grease Trap - accountRef: - id: 7403e960-5b72-42ff-abf4-c870ad8910bd - name: Purchases - taxRateRef: - id: 6c88aff3-7cb9-4980-a3d3-443e72e02498 - name: Sales Tax (10%) - effectiveTaxRate: 10 - unitAmount: 1192.51 - quantity: 8 - discountAmount: 0 - discountPercentage: 0 - subTotal: 9540.08 - taxAmount: 954.01 - totalAmount: 10494.09 - itemRef: - id: 9409d23d-1011-432e-98a4-591fcd8d5404 - name: 300 Litre Grease Trap - trackingCategoryRefs: [] - - description: Underground - Drain Saddle Branches 160mm x 110mm x 87 � - accountRef: - id: 7403e960-5b72-42ff-abf4-c870ad8910bd - name: Purchases - taxRateRef: - id: 6c88aff3-7cb9-4980-a3d3-443e72e02498 - name: Sales Tax (10%) - effectiveTaxRate: 10 - unitAmount: 220.18 - quantity: 9 - discountAmount: 0 - discountPercentage: 0 - subTotal: 1981.62 - taxAmount: 198.16 - totalAmount: 2179.78 - itemRef: - id: '2' - name: Solvent Weld Branch 160mm x 110mm x 87 � - trackingCategoryRefs: - - id: costcode_1 - name: Green Concrete - paymentAllocations: - - payment: - id: 735b5f9b-9e58-4f8f-8a9d-083de599986c - note: Payment for direct cost 735b5f9b-9e58-4f8f-8a9d-083de599986c - reference: Direct Cost 735b5f9b-9e58-4f8f-8a9d-083de599986c - accountRef: - id: dbcaf288-2b39-4b95-8ab3-42202ab15918 - name: Business Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-05-02T00:00:00' - totalAmount: 13684.57 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2022-05-02T00:00:00' - totalAmount: -13684.57 - subTotal: 12440.52 - taxAmount: 1244.05 - totalAmount: 13684.57 - modifiedDate: '2023-04-26T12:38:18Z' - sourceModifiedDate: '2022-10-13T07:15:02' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 90 - _links: - current: - href: /companies/354a121b-855f-4d25-90ad-0905b498c1c0/connections/57b731ba-1d45-4386-ba58-2a1ca0234624/data/directCosts?page=1&pageSize=2 - self: - href: /companies/354a121b-855f-4d25-90ad-0905b498c1c0/connections/57b731ba-1d45-4386-ba58-2a1ca0234624/data/directCosts - next: - href: /companies/354a121b-855f-4d25-90ad-0905b498c1c0/connections/57b731ba-1d45-4386-ba58-2a1ca0234624/data/directCosts?page=2&pageSize=2 - Dynamics 365 Business Central: - value: - results: - - id: 6ab3e391-97d7-ec11-8e7e-000d3a0cfe40 - reference: INS000090 - note: '3931' - issueDate: '2022-05-21T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: test expenses 2 - accountRef: - id: '30' - taxRateRef: - id: cc81fea8-2917-ed11-90eb-002248009df3 - name: '' - effectiveTaxRate: 0 - unitAmount: 17.89 - quantity: -1 - subTotal: -17.89 - taxAmount: 0 - totalAmount: -17.89 - trackingCategoryRefs: [] - paymentAllocations: - - payment: - id: 6ab3e391-97d7-ec11-8e7e-000d3a0cfe40 - accountRef: - id: TEST - currency: GBP - currencyRate: 1 - paidOnDate: '2022-05-21T00:00:00' - totalAmount: -17.89 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2022-05-21T00:00:00' - totalAmount: -17.89 - subTotal: -17.89 - taxAmount: 0 - totalAmount: -17.89 - modifiedDate: '2023-03-27T14:21:25Z' - sourceModifiedDate: '2022-05-19T17:17:33Z' - metadata: - isDeleted: false - - id: b832f518-88d7-ec11-8e7e-000d3a0cfe40 - reference: INS000050 - note: '3915' - issueDate: '2022-05-23T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Utilities Expense - accountRef: - id: '31300' - taxRateRef: - id: cc81fea8-2917-ed11-90eb-002248009df3 - name: '' - effectiveTaxRate: 0 - unitAmount: 14.76 - quantity: 1 - subTotal: 14.76 - taxAmount: 0 - totalAmount: 14.76 - trackingCategoryRefs: [] - paymentAllocations: - - payment: - id: b832f518-88d7-ec11-8e7e-000d3a0cfe40 - accountRef: - id: TEST - currency: GBP - currencyRate: 1 - paidOnDate: '2022-05-23T00:00:00' - totalAmount: 14.76 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2022-05-23T00:00:00' - totalAmount: 14.76 - subTotal: 14.76 - taxAmount: 0 - totalAmount: 14.76 - modifiedDate: '2023-03-27T14:21:25Z' - sourceModifiedDate: '2022-05-19T15:26:48Z' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 67 - _links: - current: - href: /companies/d6849caf-c146-41be-8335-b73346e3bd84/connections/60acb117-5cf5-4745-b069-491551da4066/data/directCosts?page=1&pageSize=2 - self: - href: /companies/d6849caf-c146-41be-8335-b73346e3bd84/connections/60acb117-5cf5-4745-b069-491551da4066/data/directCosts - next: - href: /companies/d6849caf-c146-41be-8335-b73346e3bd84/connections/60acb117-5cf5-4745-b069-491551da4066/data/directCosts?page=2&pageSize=2 - FreeAgent: - value: - results: - - id: '190325254' - note: 'Atomic Software Limite Wellington,Nzl' - issueDate: '2017-11-23T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: 'Atomic Software Limite Wellington,Nzl' - accountRef: - id: '285' - name: Accommodation and Meals - unitAmount: 11.92 - quantity: 1 - subTotal: 11.92 - taxAmount: 2.38 - totalAmount: 14.3 - trackingCategoryRefs: [] - paymentAllocations: - - payment: - id: '190325254' - note: 'Atomic Software Limite Wellington,Nzl' - accountRef: - id: 750-1 - name: 'Bank Account: Business Current Account' - currency: GBP - paidOnDate: '2017-11-23T00:00:00' - totalAmount: 14.3 - allocation: - currency: GBP - allocatedOnDate: '2017-11-23T00:00:00' - totalAmount: 14.3 - subTotal: 11.92 - taxAmount: 2.38 - totalAmount: 14.3 - modifiedDate: '2023-04-25T14:20:36Z' - sourceModifiedDate: '2019-11-22T14:31:14Z' - metadata: - isDeleted: false - - id: '348108455' - note: 'Atomic Software Limite Wellington,Nzl' - issueDate: '2017-11-23T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: 'Atomic Software Limite Wellington,Nzl' - accountRef: - id: '285' - name: Accommodation and Meals - unitAmount: 11.92 - quantity: 1 - subTotal: 11.92 - taxAmount: 2.38 - totalAmount: 14.3 - trackingCategoryRefs: [] - paymentAllocations: - - payment: - id: '348108455' - note: 'Atomic Software Limite Wellington,Nzl' - accountRef: - id: 750-1 - name: 'Bank Account: Business Current Account' - currency: GBP - paidOnDate: '2017-11-23T00:00:00' - totalAmount: 14.3 - allocation: - currency: GBP - allocatedOnDate: '2017-11-23T00:00:00' - totalAmount: 14.3 - subTotal: 11.92 - taxAmount: 2.38 - totalAmount: 14.3 - modifiedDate: '2023-04-25T14:20:36Z' - sourceModifiedDate: '2022-10-24T12:35:29Z' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 456 - _links: - current: - href: /companies/071ad738-68f3-4561-afd0-69bab9df0803/connections/4fd7c69f-ecc1-45f5-83f2-42ed3391e386/data/directCosts?page=1&pageSize=2 - self: - href: /companies/071ad738-68f3-4561-afd0-69bab9df0803/connections/4fd7c69f-ecc1-45f5-83f2-42ed3391e386/data/directCosts - next: - href: /companies/071ad738-68f3-4561-afd0-69bab9df0803/connections/4fd7c69f-ecc1-45f5-83f2-42ed3391e386/data/directCosts?page=2&pageSize=2 - FreshBooks: - value: - results: - - id: '29870062' - reference: Food to keep me working - note: Food to keep me working - contactRef: - id: Sainsburys - dataType: suppliers - issueDate: '2019-02-12T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Food to keep me working - accountRef: - id: '3361426' - name: Meals & Entertainment - unitAmount: 10 - quantity: 1 - subTotal: 10 - taxAmount: 0 - totalAmount: 10 - trackingCategoryRefs: - - id: '4370503' - name: Meals & Entertainment - paymentAllocations: [] - subTotal: 10 - taxAmount: 0 - totalAmount: 10 - modifiedDate: '2023-03-24T16:07:23Z' - sourceModifiedDate: '2021-10-28T15:21:46' - metadata: - isDeleted: false - - id: '107509561' - reference: Buying pencils - note: Buying pencils - contactRef: - id: Pencils Wholesale - dataType: suppliers - issueDate: '2020-01-27T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Buying pencils - accountRef: - id: '3380551' - name: Supplies - unitAmount: 43.48 - quantity: 1 - subTotal: 43.48 - taxAmount: 6.52 - totalAmount: 50 - trackingCategoryRefs: - - id: '5397997' - name: Supplies - paymentAllocations: [] - subTotal: 43.48 - taxAmount: 6.52 - totalAmount: 50 - modifiedDate: '2023-03-24T16:07:23Z' - sourceModifiedDate: '2021-10-28T15:21:47' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 73 - _links: - current: - href: /companies/3691c49e-0db4-4172-b3ab-e4084c365013/connections/100d8da9-91b1-495c-ae2e-2219c244acae/data/directCosts?page=1&pageSize=2 - self: - href: /companies/3691c49e-0db4-4172-b3ab-e4084c365013/connections/100d8da9-91b1-495c-ae2e-2219c244acae/data/directCosts - next: - href: /companies/3691c49e-0db4-4172-b3ab-e4084c365013/connections/100d8da9-91b1-495c-ae2e-2219c244acae/data/directCosts?page=2&pageSize=2 - QuickBooks Desktop: - value: - results: - - id: D7B-933784104 - reference: '93' - contactRef: - id: 360000-933272659 - dataType: suppliers - issueDate: '2022-12-01T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - accountRef: - id: 3C0000-933270542 - name: Rent - unitAmount: 1200 - quantity: 1 - subTotal: 1200 - totalAmount: 1200 - trackingCategoryRefs: - - id: 80000007-1197713802 - name: Overhead - tracking: - recordRefs: - - id: 80000007-1197713802 - dataType: trackingCategories - - id: 800000B0-1197755238 - dataType: customers - paymentAllocations: - - payment: - id: D7B-933784104 - accountRef: - id: 20000-933270541 - name: Checking - currency: GBP - currencyRate: 1 - paidOnDate: '2022-12-01T00:00:00' - totalAmount: 1200 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2022-12-01T00:00:00' - totalAmount: 1200 - subTotal: 1200 - taxAmount: 0 - totalAmount: 1200 - modifiedDate: '2023-04-26T09:13:57Z' - sourceModifiedDate: '2023-12-16T05:04:10' - metadata: - isDeleted: false - - id: DFA-933785132 - reference: '95' - contactRef: - id: 320000-933272659 - dataType: suppliers - issueDate: '2022-12-05T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - accountRef: - id: 280000-933270542 - name: Freight & Delivery - unitAmount: 35 - quantity: 1 - subTotal: 35 - totalAmount: 35 - trackingCategoryRefs: - - id: 40000-933272658 - name: Remodel - tracking: - recordRefs: - - id: 40000-933272658 - dataType: trackingCategories - - id: 1E0000-933272658 - dataType: customers - paymentAllocations: - - payment: - id: DFA-933785132 - accountRef: - id: 20000-933270541 - name: Checking - currency: GBP - currencyRate: 1 - paidOnDate: '2022-12-05T00:00:00' - totalAmount: 35 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2022-12-05T00:00:00' - totalAmount: 35 - subTotal: 35 - taxAmount: 0 - totalAmount: 35 - modifiedDate: '2023-04-26T09:13:57Z' - sourceModifiedDate: '2023-12-16T05:04:11' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 250 - _links: - current: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/connections/2c26b4da-97d4-4ba9-baad-1e18b49b96ac/data/directCosts?page=1&pageSize=2 - self: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/connections/2c26b4da-97d4-4ba9-baad-1e18b49b96ac/data/directCosts - next: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/connections/2c26b4da-97d4-4ba9-baad-1e18b49b96ac/data/directCosts?page=2&pageSize=2 - QuickBooks Online Sandbox: - value: - results: - - id: PUR-85 - note: Opening Balance from Bank - issueDate: '2015-08-12T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - accountRef: - id: '55' - name: Opening Balance Equity - taxRateRef: - id: NON - name: NON - effectiveTaxRate: 0 - unitAmount: 3831.8 - quantity: 1 - subTotal: 3831.8 - taxAmount: 0 - totalAmount: 3831.8 - trackingCategoryRefs: [] - tracking: - recordRefs: [] - paymentAllocations: - - payment: - id: '85' - reference: Opening Balance from Bank - accountRef: - id: '57' - name: Visa Credit Card - currency: GBP - currencyRate: 1 - paidOnDate: '2015-08-12T00:00:00' - totalAmount: 3831.8 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2015-08-12T00:00:00' - totalAmount: -3831.8 - subTotal: 3831.8 - taxAmount: 0 - totalAmount: 3831.8 - modifiedDate: '2023-04-26T09:36:40Z' - sourceModifiedDate: '2016-09-12T18:13:07Z' - metadata: - isDeleted: false - - id: PUR-3617 - reference: '2001' - contactRef: - id: '27' - dataType: suppliers - issueDate: '2015-11-27T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Insurance - general liability - accountRef: - id: '22' - name: Insurance Expense-General Liability Insurance - taxRateRef: - id: 3_Bills - name: 20.0% S Bills - effectiveTaxRate: 20 - unitAmount: 750 - quantity: 1 - subTotal: 750 - taxAmount: 150 - totalAmount: 900 - trackingCategoryRefs: [] - tracking: - recordRefs: [] - paymentAllocations: - - payment: - id: '3617' - note: '2001' - accountRef: - id: '81' - name: Current - currency: GBP - currencyRate: 1 - paidOnDate: '2015-11-27T00:00:00' - totalAmount: 900 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2015-11-27T00:00:00' - totalAmount: -900 - subTotal: 750 - taxAmount: 150 - totalAmount: 900 - modifiedDate: '2023-04-26T09:36:40Z' - sourceModifiedDate: '2022-08-19T10:19:56Z' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 4460 - _links: - current: - href: /companies/5a7f3597-36e1-4216-86fe-289ad36088a6/connections/1f9f6013-f8a5-4278-8a47-3ab7fdb6c24c/data/directCosts?page=1&pageSize=2 - self: - href: /companies/5a7f3597-36e1-4216-86fe-289ad36088a6/connections/1f9f6013-f8a5-4278-8a47-3ab7fdb6c24c/data/directCosts - next: - href: /companies/5a7f3597-36e1-4216-86fe-289ad36088a6/connections/1f9f6013-f8a5-4278-8a47-3ab7fdb6c24c/data/directCosts?page=2&pageSize=2 - QuickBooks Online: - value: - results: - - id: PUR-15 - note: Payment to Google - issueDate: '2018-09-21T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Payment to Google - accountRef: - id: '37' - name: Computer equipment accumulated depreciation brought forward - taxRateRef: - id: NON - name: NON - effectiveTaxRate: 0 - unitAmount: 1.59 - quantity: 1 - subTotal: 1.59 - taxAmount: 0 - totalAmount: 1.59 - trackingCategoryRefs: [] - paymentAllocations: - - payment: - id: '15' - reference: Payment to Google - accountRef: - id: '61' - name: Dave PP Current - currency: GBP - currencyRate: 1 - paidOnDate: '2018-09-21T00:00:00' - totalAmount: 1.59 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2018-09-21T00:00:00' - totalAmount: -1.59 - subTotal: 1.59 - taxAmount: 0 - totalAmount: 1.59 - modifiedDate: '2023-01-18T11:02:59Z' - sourceModifiedDate: '2018-12-17T14:56:44Z' - - id: PUR-9303 - note: Payment to Google - contactRef: - id: '4' - dataType: suppliers - issueDate: '2018-09-21T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Payment to Google - accountRef: - id: '37' - name: Computer equipment accumulated depreciation brought forward - taxRateRef: - id: NON - name: NON - effectiveTaxRate: 0 - unitAmount: 1.59 - quantity: 1 - subTotal: 1.59 - taxAmount: 0 - totalAmount: 1.59 - trackingCategoryRefs: [] - paymentAllocations: - - payment: - id: '9303' - reference: Payment to Google - accountRef: - id: '61' - name: Dave PP Current - currency: GBP - currencyRate: 1 - paidOnDate: '2018-09-21T00:00:00' - totalAmount: 1.59 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2018-09-21T00:00:00' - totalAmount: -1.59 - subTotal: 1.59 - taxAmount: 0 - totalAmount: 1.59 - modifiedDate: '2023-01-18T11:02:59Z' - sourceModifiedDate: '2022-07-11T10:32:16Z' - pageNumber: 1 - pageSize: 2 - totalResults: 2176 - _links: - current: - href: /companies/10818b5e-6e6a-4ed4-a1c5-3e3efe626e87/connections/9e28a776-f4be-425b-8a3d-ad49956de2c9/data/directCosts?page=1&pageSize=2 - self: - href: /companies/10818b5e-6e6a-4ed4-a1c5-3e3efe626e87/connections/9e28a776-f4be-425b-8a3d-ad49956de2c9/data/directCosts - next: - href: /companies/10818b5e-6e6a-4ed4-a1c5-3e3efe626e87/connections/9e28a776-f4be-425b-8a3d-ad49956de2c9/data/directCosts?page=2&pageSize=2 - Sage 50 (UK): - value: - results: - - id: '73' - reference: DD/STO - issueDate: '2021-01-29T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Electrcity Direct Debit - accountRef: - id: '7200' - name: Electricity - taxRateRef: - id: '3' - unitAmount: 150 - quantity: 1 - subTotal: 150 - taxAmount: 12 - totalAmount: 162 - trackingCategoryRefs: - - id: department_0 - name: Default - paymentAllocations: - - payment: - id: '73' - reference: DD/STO - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2021-01-29T00:00:00' - totalAmount: 162 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2021-01-29T00:00:00' - totalAmount: 162 - subTotal: 150 - taxAmount: 12 - totalAmount: 162 - modifiedDate: '2023-03-30T14:42:35Z' - sourceModifiedDate: '2022-11-25T09:43:54' - metadata: - isDeleted: false - - id: '52' - reference: '568953' - issueDate: '2021-01-30T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Vat Payment Quater End 3112.96 - accountRef: - id: '2202' - name: VAT Liability - taxRateRef: - id: '9' - name: Non-Vatable Tax Code - effectiveTaxRate: 0 - unitAmount: 1497.58 - quantity: 1 - subTotal: 1497.58 - taxAmount: 0 - totalAmount: 1497.58 - trackingCategoryRefs: - - id: department_0 - name: Default - paymentAllocations: - - payment: - id: '52' - reference: '568953' - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2021-01-30T00:00:00' - totalAmount: 1497.58 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2021-01-30T00:00:00' - totalAmount: 1497.58 - subTotal: 1497.58 - taxAmount: 0 - totalAmount: 1497.58 - modifiedDate: '2023-03-30T14:42:35Z' - sourceModifiedDate: '2022-11-25T09:43:54' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 106 - _links: - current: - href: /companies/cf5f2a47-2990-4221-bae6-0c19c86ac304/connections/8ee4910f-4fc1-47e6-89b1-5931fb33d8f7/data/directCosts?page=1&pageSize=2 - self: - href: /companies/cf5f2a47-2990-4221-bae6-0c19c86ac304/connections/8ee4910f-4fc1-47e6-89b1-5931fb33d8f7/data/directCosts - next: - href: /companies/cf5f2a47-2990-4221-bae6-0c19c86ac304/connections/8ee4910f-4fc1-47e6-89b1-5931fb33d8f7/data/directCosts?page=2&pageSize=2 - Sage Intacct: - value: - results: - - id: 'CCTRANSACTION:4355' - reference: '' - note: Test 1 - issueDate: '2020-01-20T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - accountRef: - id: '195' - name: Insurance - taxRateRef: - id: '62018' - unitAmount: 9.99 - quantity: 1 - subTotal: 9.99 - taxAmount: 2 - totalAmount: 11.99 - trackingCategoryRefs: - - id: LOCATION-8 - name: United Kingdom - paymentAllocations: - - payment: - id: '4355' - note: '' - reference: '' - accountRef: - id: '348' - name: CMRR Renewal - currency: GBP - paidOnDate: '2020-01-20T00:00:00' - totalAmount: 11.99 - allocation: - currency: GBP - allocatedOnDate: '2020-01-20T00:00:00' - totalAmount: 11.99 - subTotal: 9.99 - taxAmount: 2 - totalAmount: 11.99 - modifiedDate: '2022-10-28T11:10:28Z' - sourceModifiedDate: '2022-08-22T09:26:42' - - id: 'CCTRANSACTION:4356' - reference: '' - note: Test 1 - issueDate: '2020-01-20T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - accountRef: - id: '195' - name: Insurance - taxRateRef: - id: '62022' - unitAmount: 9.99 - quantity: 1 - subTotal: 9.99 - taxAmount: 2 - totalAmount: 11.99 - trackingCategoryRefs: - - id: LOCATION-8 - name: United Kingdom - paymentAllocations: - - payment: - id: '4356' - note: '' - reference: '' - accountRef: - id: '348' - name: CMRR Renewal - currency: GBP - paidOnDate: '2020-01-20T00:00:00' - totalAmount: 11.99 - allocation: - currency: GBP - allocatedOnDate: '2020-01-20T00:00:00' - totalAmount: 11.99 - subTotal: 9.99 - taxAmount: 2 - totalAmount: 11.99 - modifiedDate: '2022-10-28T11:10:28Z' - sourceModifiedDate: '2022-02-17T23:26:16' - pageNumber: 1 - pageSize: 2 - totalResults: 57 - _links: - current: - href: /companies/71ca2b28-8e86-41e7-8c55-f681042b11a0/connections/be80adfc-1157-4db4-9170-f8bcbbc051ba/data/directCosts?page=1&pageSize=2 - self: - href: /companies/71ca2b28-8e86-41e7-8c55-f681042b11a0/connections/be80adfc-1157-4db4-9170-f8bcbbc051ba/data/directCosts - next: - href: /companies/71ca2b28-8e86-41e7-8c55-f681042b11a0/connections/be80adfc-1157-4db4-9170-f8bcbbc051ba/data/directCosts?page=2&pageSize=2 - Xero: - value: - results: - - id: dc1bb034-7bbf-4e84-b418-b7f4aee59d72 - reference: '' - contactRef: - id: 737982b0-2811-44c9-bdb3-3b26a3a6ef8c - dataType: suppliers - issueDate: '2022-11-22T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Bank fee - accountRef: - id: 2c410b86-de57-49d1-b540-4e8ce824979c - name: Bank Fees - unitAmount: 15 - quantity: 1 - subTotal: 15 - taxAmount: 0 - totalAmount: 15 - trackingCategoryRefs: [] - paymentAllocations: - - payment: - id: dc1bb034-7bbf-4e84-b418-b7f4aee59d72 - accountRef: - id: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - name: Business Bank Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-11-22T00:00:00' - totalAmount: 15 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2022-11-22T00:00:00' - totalAmount: 15 - subTotal: 15 - taxAmount: 0 - totalAmount: 15 - modifiedDate: '2023-03-15T20:36:09Z' - sourceModifiedDate: '2021-01-03T21:43:46' - metadata: - isDeleted: false - - id: 521c2396-7f74-404c-9cca-31115296b808 - reference: Eft - contactRef: - id: 74ea95ea-6e1e-435d-9c30-0dff8ae1bd80 - dataType: suppliers - issueDate: '2022-11-23T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Misc stationery - accountRef: - id: cba6527d-f102-4538-b421-e483233e9d5a - name: Printing & Stationery - taxRateRef: - id: INPUT2 - name: 20% (VAT on Expenses) - effectiveTaxRate: 20 - unitAmount: 18.09 - quantity: 1 - subTotal: 18.09 - taxAmount: 3.62 - totalAmount: 21.71 - trackingCategoryRefs: [] - paymentAllocations: - - payment: - id: 521c2396-7f74-404c-9cca-31115296b808 - accountRef: - id: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - name: Business Bank Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-11-23T00:00:00' - totalAmount: 21.71 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2022-11-23T00:00:00' - totalAmount: 21.71 - subTotal: 18.09 - taxAmount: 3.62 - totalAmount: 21.71 - modifiedDate: '2023-03-15T20:36:09Z' - sourceModifiedDate: '2021-01-03T21:43:51' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 15 - _links: - current: - href: /companies/5ced9667-a310-443a-a711-958d36377141/connections/6a4bcf97-e46a-465c-abf6-c42cec8e48c0/data/directCosts?page=1&pageSize=2 - self: - href: /companies/5ced9667-a310-443a-a711-958d36377141/connections/6a4bcf97-e46a-465c-abf6-c42cec8e48c0/data/directCosts - next: - href: /companies/5ced9667-a310-443a-a711-958d36377141/connections/6a4bcf97-e46a-465c-abf6-c42cec8e48c0/data/directCosts?page=2&pageSize=2 - '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' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - description: |- - The *List direct costs* endpoint returns a list of [direct costs](https://docs.codat.io/lending-api#/schemas/DirectCost) for a given company's connection. - - [Direct costs](https://docs.codat.io/lending-api#/schemas/DirectCost) are business expenses that don't impact Accounts Payable. - - Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data). - - operationId: list-accounting-direct-costs - x-speakeasy-group: transactions.direct-costs - '/companies/{companyId}/connections/{connectionId}/data/directCosts/{directCostId}': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - - $ref: '#/components/parameters/accountingDirectCostId' - get: - tags: - - Transactions - summary: Get direct cost - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/AccountingDirectCost' - examples: - Clear Books: - value: - id: 994ad234-ca05-466e-8e6a-117783b38cf6 - reference: 005b7b62-dc9f-42d2-85a2-4a2cefc6bab2 - note: 'Direct Cost with 1 line items, totaling 242.20' - contactRef: - id: D4Q4iYwHou - dataType: suppliers - issueDate: '2022-04-27T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Underground - Drain Saddle Branches 160mm x 110mm x 87 � - accountRef: - id: 7403e960-5b72-42ff-abf4-c870ad8910bd - name: Purchases - taxRateRef: - id: 6c88aff3-7cb9-4980-a3d3-443e72e02498 - name: Sales Tax (10%) - effectiveTaxRate: 10 - unitAmount: 220.18 - quantity: 1 - discountAmount: 0 - discountPercentage: 0 - subTotal: 220.18 - taxAmount: 22.02 - totalAmount: 242.2 - itemRef: - id: '2' - name: Solvent Weld Branch 160mm x 110mm x 87 � - trackingCategoryRefs: [] - paymentAllocations: - - payment: - id: 994ad234-ca05-466e-8e6a-117783b38cf6 - note: Payment for direct cost 994ad234-ca05-466e-8e6a-117783b38cf6 - reference: Direct Cost 994ad234-ca05-466e-8e6a-117783b38cf6 - accountRef: - id: dbcaf288-2b39-4b95-8ab3-42202ab15918 - name: Business Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-04-27T00:00:00' - totalAmount: 242.2 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2022-04-27T00:00:00' - totalAmount: -242.2 - subTotal: 220.18 - taxAmount: 22.02 - totalAmount: 242.2 - modifiedDate: '2023-04-26T12:38:18Z' - sourceModifiedDate: '2022-09-18T20:59:02' - metadata: - isDeleted: false - Dynamics 365 Business Central: - value: - id: 6ab3e391-97d7-ec11-8e7e-000d3a0cfe40 - reference: INS000090 - note: '3931' - issueDate: '2022-05-21T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: test expenses 2 - accountRef: - id: '30' - taxRateRef: - id: cc81fea8-2917-ed11-90eb-002248009df3 - name: '' - effectiveTaxRate: 0 - unitAmount: 17.89 - quantity: -1 - subTotal: -17.89 - taxAmount: 0 - totalAmount: -17.89 - trackingCategoryRefs: [] - paymentAllocations: - - payment: - id: 6ab3e391-97d7-ec11-8e7e-000d3a0cfe40 - accountRef: - id: TEST - currency: GBP - currencyRate: 1 - paidOnDate: '2022-05-21T00:00:00' - totalAmount: -17.89 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2022-05-21T00:00:00' - totalAmount: -17.89 - subTotal: -17.89 - taxAmount: 0 - totalAmount: -17.89 - modifiedDate: '2023-03-27T14:21:25Z' - sourceModifiedDate: '2022-05-19T17:17:33Z' - metadata: - isDeleted: false - FreeAgent: - value: - id: '190325254' - note: 'Atomic Software Limite Wellington,Nzl' - issueDate: '2017-11-23T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: 'Atomic Software Limite Wellington,Nzl' - accountRef: - id: '285' - name: Accommodation and Meals - unitAmount: 11.92 - quantity: 1 - subTotal: 11.92 - taxAmount: 2.38 - totalAmount: 14.3 - trackingCategoryRefs: [] - paymentAllocations: - - payment: - id: '190325254' - note: 'Atomic Software Limite Wellington,Nzl' - accountRef: - id: 750-1 - name: 'Bank Account: Business Current Account' - currency: GBP - paidOnDate: '2017-11-23T00:00:00' - totalAmount: 14.3 - allocation: - currency: GBP - allocatedOnDate: '2017-11-23T00:00:00' - totalAmount: 14.3 - subTotal: 11.92 - taxAmount: 2.38 - totalAmount: 14.3 - modifiedDate: '2023-04-25T14:20:36Z' - sourceModifiedDate: '2019-11-22T14:31:14Z' - metadata: - isDeleted: false - FreshBooks: - value: - id: '29870062' - reference: Food to keep me working - note: Food to keep me working - contactRef: - id: Sainsburys - dataType: suppliers - issueDate: '2019-02-12T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Food to keep me working - accountRef: - id: '3361426' - name: Meals & Entertainment - unitAmount: 10 - quantity: 1 - subTotal: 10 - taxAmount: 0 - totalAmount: 10 - trackingCategoryRefs: - - id: '4370503' - name: Meals & Entertainment - paymentAllocations: [] - subTotal: 10 - taxAmount: 0 - totalAmount: 10 - modifiedDate: '2023-03-24T16:07:23Z' - sourceModifiedDate: '2021-10-28T15:21:46' - metadata: - isDeleted: false - QuickBooks Desktop: - value: - id: D7B-933784104 - reference: '93' - contactRef: - id: 360000-933272659 - dataType: suppliers - issueDate: '2022-12-01T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - accountRef: - id: 3C0000-933270542 - name: Rent - unitAmount: 1200 - quantity: 1 - subTotal: 1200 - totalAmount: 1200 - trackingCategoryRefs: - - id: 80000007-1197713802 - name: Overhead - tracking: - recordRefs: - - id: 80000007-1197713802 - dataType: trackingCategories - - id: 800000B0-1197755238 - dataType: customers - paymentAllocations: - - payment: - id: D7B-933784104 - accountRef: - id: 20000-933270541 - name: Checking - currency: GBP - currencyRate: 1 - paidOnDate: '2022-12-01T00:00:00' - totalAmount: 1200 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2022-12-01T00:00:00' - totalAmount: 1200 - subTotal: 1200 - taxAmount: 0 - totalAmount: 1200 - modifiedDate: '2023-04-26T09:13:57Z' - sourceModifiedDate: '2023-12-16T05:04:10' - metadata: - isDeleted: false - QuickBooks Online Sandbox: - value: - id: PUR-85 - note: Opening Balance from Bank - issueDate: '2015-08-12T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - accountRef: - id: '55' - name: Opening Balance Equity - taxRateRef: - id: NON - name: NON - effectiveTaxRate: 0 - unitAmount: 3831.8 - quantity: 1 - subTotal: 3831.8 - taxAmount: 0 - totalAmount: 3831.8 - trackingCategoryRefs: [] - tracking: - recordRefs: [] - paymentAllocations: - - payment: - id: '85' - reference: Opening Balance from Bank - accountRef: - id: '57' - name: Visa Credit Card - currency: GBP - currencyRate: 1 - paidOnDate: '2015-08-12T00:00:00' - totalAmount: 3831.8 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2015-08-12T00:00:00' - totalAmount: -3831.8 - subTotal: 3831.8 - taxAmount: 0 - totalAmount: 3831.8 - modifiedDate: '2023-04-26T09:36:40Z' - sourceModifiedDate: '2016-09-12T18:13:07Z' - metadata: - isDeleted: false - QuickBooks Online: - value: - id: PUR-15 - note: Payment to Google - issueDate: '2018-09-21T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Payment to Google - accountRef: - id: '37' - name: Computer equipment accumulated depreciation brought forward - taxRateRef: - id: NON - name: NON - effectiveTaxRate: 0 - unitAmount: 1.59 - quantity: 1 - subTotal: 1.59 - taxAmount: 0 - totalAmount: 1.59 - trackingCategoryRefs: [] - paymentAllocations: - - payment: - id: '15' - reference: Payment to Google - accountRef: - id: '61' - name: Dave PP Current - currency: GBP - currencyRate: 1 - paidOnDate: '2018-09-21T00:00:00' - totalAmount: 1.59 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2018-09-21T00:00:00' - totalAmount: -1.59 - subTotal: 1.59 - taxAmount: 0 - totalAmount: 1.59 - modifiedDate: '2023-01-18T11:02:59Z' - sourceModifiedDate: '2018-12-17T14:56:44Z' - Sage 50 (UK): - value: - id: '73' - reference: DD/STO - issueDate: '2021-01-29T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Electrcity Direct Debit - accountRef: - id: '7200' - name: Electricity - taxRateRef: - id: '3' - unitAmount: 150 - quantity: 1 - subTotal: 150 - taxAmount: 12 - totalAmount: 162 - trackingCategoryRefs: - - id: department_0 - name: Default - paymentAllocations: - - payment: - id: '73' - reference: DD/STO - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2021-01-29T00:00:00' - totalAmount: 162 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2021-01-29T00:00:00' - totalAmount: 162 - subTotal: 150 - taxAmount: 12 - totalAmount: 162 - modifiedDate: '2023-03-30T14:42:35Z' - sourceModifiedDate: '2022-11-25T09:43:54' - metadata: - isDeleted: false - Sage Intacct: - value: - id: 'CCTRANSACTION:4355' - reference: '' - note: Test 1 - issueDate: '2020-01-20T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - accountRef: - id: '195' - name: Insurance - taxRateRef: - id: '62018' - unitAmount: 9.99 - quantity: 1 - subTotal: 9.99 - taxAmount: 2 - totalAmount: 11.99 - trackingCategoryRefs: - - id: LOCATION-8 - name: United Kingdom - paymentAllocations: - - payment: - id: '4355' - note: '' - reference: '' - accountRef: - id: '348' - name: CMRR Renewal - currency: GBP - paidOnDate: '2020-01-20T00:00:00' - totalAmount: 11.99 - allocation: - currency: GBP - allocatedOnDate: '2020-01-20T00:00:00' - totalAmount: 11.99 - subTotal: 9.99 - taxAmount: 2 - totalAmount: 11.99 - modifiedDate: '2022-10-28T11:10:28Z' - sourceModifiedDate: '2022-08-22T09:26:42' - Xero: - value: - id: dc1bb034-7bbf-4e84-b418-b7f4aee59d72 - reference: '' - contactRef: - id: 737982b0-2811-44c9-bdb3-3b26a3a6ef8c - dataType: suppliers - issueDate: '2022-11-22T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Bank fee - accountRef: - id: 2c410b86-de57-49d1-b540-4e8ce824979c - name: Bank Fees - unitAmount: 15 - quantity: 1 - subTotal: 15 - taxAmount: 0 - totalAmount: 15 - trackingCategoryRefs: [] - paymentAllocations: - - payment: - id: dc1bb034-7bbf-4e84-b418-b7f4aee59d72 - accountRef: - id: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - name: Business Bank Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-11-22T00:00:00' - totalAmount: 15 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2022-11-22T00:00:00' - totalAmount: 15 - subTotal: 15 - taxAmount: 0 - totalAmount: 15 - modifiedDate: '2023-03-15T20:36:09Z' - sourceModifiedDate: '2021-01-03T21:43:46' - metadata: - isDeleted: false - '401': - $ref: '#/components/responses/Unauthorized' - '402': - $ref: '#/components/responses/Payment-Required' - '403': - $ref: '#/components/responses/Forbidden' - '404': - $ref: '#/components/responses/Not-Found' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - description: | - The *Get direct cost* endpoint returns a single direct cost for a given directCostId. - - [Direct costs](https://docs.codat.io/lending-api#/schemas/DirectCost) are business expenses that don't impact Accounts Payable. - - Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data). - operationId: get-accounting-direct-cost - x-speakeasy-group: transactions.direct-costs - '/companies/{companyId}/connections/{connectionId}/data/directCosts/{directCostId}/attachments/{attachmentId}': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - - $ref: '#/components/parameters/accountingDirectCostId' - get: - tags: - - Transactions - summary: Get direct cost attachment - parameters: - - $ref: '#/components/parameters/attachmentId' - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/AccountingAttachment' - examples: {} - '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: |- - The *Get direct cost attachment* endpoint returns a specific attachment for a given `directCostId` and `attachmentId`. - - [Direct costs](https://docs.codat.io/lending-api#/schemas/DirectCost) are business expenses that don't impact Accounts Payable. - operationId: get-accounting-direct-cost-attachment - x-speakeasy-group: transactions.direct-costs - '/companies/{companyId}/connections/{connectionId}/data/directCosts/{directCostId}/attachments/{attachmentId}/download': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - - $ref: '#/components/parameters/accountingDirectCostId' - get: - tags: - - Transactions - summary: Download direct cost attachment - parameters: - - $ref: '#/components/parameters/attachmentId' - responses: - '200': - description: Success - content: - application/octet-stream: - schema: - title: Data - type: string - format: binary - '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: | - The *Download direct cost attachment* endpoint downloads a specific attachment for a given `directCostId` and `attachmentId`. - - [Direct costs](https://docs.codat.io/lending-api#/schemas/DirectCost) are business expenses that don't impact Accounts Payable. - operationId: download-accounting-direct-cost-attachment - x-speakeasy-group: transactions.direct-costs - '/companies/{companyId}/connections/{connectionId}/data/directCosts/{directCostId}/attachments': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - - $ref: '#/components/parameters/accountingDirectCostId' - get: - tags: - - Transactions - summary: List direct cost attachments - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/Attachments' - examples: {} - '401': - $ref: '#/components/responses/Unauthorized' - '402': - $ref: '#/components/responses/Payment-Required' - '403': - $ref: '#/components/responses/Forbidden' - '404': - $ref: '#/components/responses/Not-Found' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - description: | - The *List direct cost attachments* endpoint returns a list of attachments available to download for given `directCostId`. - - [Direct costs](https://docs.codat.io/lending-api#/schemas/DirectCost) are business expenses that don't impact Accounts Payable. - operationId: list-accounting-direct-cost-attachments - x-speakeasy-group: transactions.direct-costs - '/companies/{companyId}/connections/{connectionId}/data/directIncomes': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - get: - tags: - - Accounts receivable - summary: List direct incomes - 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/AccountingDirectIncomes' - examples: - Clear Books: - value: - results: - - id: 38e8c917-0afc-4583-8ffe-1b53ad601197 - reference: 3cb8ced3-3ecb-4974-ada5-8290b0ec3355 - note: 'Direct Income with 1 line items, totaling 188.33' - contactRef: - id: 51f03576-f6b0-40d5-9fba-81a490411c03 - dataType: customers - issueDate: '2022-04-19T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Underground - Drain Yard Gully - accountRef: - id: 72df89d2-512b-4455-af51-a6b563733842 - name: Sales - taxRateRef: - id: 6c88aff3-7cb9-4980-a3d3-443e72e02498 - name: Sales Tax (10%) - effectiveTaxRate: 10 - unitAmount: 171.21 - quantity: 1 - discountAmount: 0 - discountPercentage: 0 - subTotal: 171.21 - taxAmount: 17.12 - totalAmount: 188.33 - itemRef: - id: 00491160-6ee5-4d76-9f34-998f00687481 - name: Aluminium Silt Bucket - trackingCategoryRefs: [] - paymentAllocations: - - payment: - id: 38e8c917-0afc-4583-8ffe-1b53ad601197 - note: Payment for direct income 38e8c917-0afc-4583-8ffe-1b53ad601197 - reference: Direct Income 38e8c917-0afc-4583-8ffe-1b53ad601197 - accountRef: - id: ff8fdc4c-2aad-4ec1-9430-6bd201832eb3 - name: Undeposited Funds - currency: GBP - currencyRate: 1 - paidOnDate: '2022-04-19T00:00:00' - totalAmount: 188.33 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2022-04-19T00:00:00' - totalAmount: -188.33 - subTotal: 171.21 - taxAmount: 17.12 - totalAmount: 188.33 - modifiedDate: '2023-04-26T12:38:18Z' - sourceModifiedDate: '2022-05-13T01:06:00' - metadata: - isDeleted: false - - id: c31a3778-e3ea-4d01-9281-dd2f291c8cb8 - reference: ee4ea56f-8806-494d-9c69-7ec22e68dc5e - note: 'Direct Income with 4 line items, totaling 32095.91' - contactRef: - id: 453ddfc0-49ce-4f66-a815-dae734be885c - dataType: customers - issueDate: '2022-04-19T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Underground - Drain Bottle Gullies 90 degree Rectangular - accountRef: - id: 72df89d2-512b-4455-af51-a6b563733842 - name: Sales - taxRateRef: - id: 6c88aff3-7cb9-4980-a3d3-443e72e02498 - name: Sales Tax (10%) - effectiveTaxRate: 10 - unitAmount: 95.08 - quantity: 2 - discountAmount: 0 - discountPercentage: 0 - subTotal: 190.16 - taxAmount: 19.02 - totalAmount: 209.18 - itemRef: - id: '6' - name: Back Inlet Roddable Gully 90� Outlet Rectangular Grid - trackingCategoryRefs: - - id: costcode_9 - name: PandaConstruction - - id: department_3 - name: MarshallBrotherContracting - - description: Grease Trap - accountRef: - id: 72df89d2-512b-4455-af51-a6b563733842 - name: Sales - taxRateRef: - id: 6c88aff3-7cb9-4980-a3d3-443e72e02498 - name: Sales Tax (10%) - effectiveTaxRate: 10 - unitAmount: 1251.89 - quantity: 6 - discountAmount: 778.93 - discountPercentage: 10.37 - subTotal: 6732.41 - taxAmount: 673.24 - totalAmount: 7405.66 - itemRef: - id: 51077072-d5c3-463b-9cb4-7da2e11886f9 - name: 150 Litre Grease Trap - trackingCategoryRefs: [] - - description: Grease Trap - accountRef: - id: 72df89d2-512b-4455-af51-a6b563733842 - name: Sales - taxRateRef: - id: 6c88aff3-7cb9-4980-a3d3-443e72e02498 - name: Sales Tax (10%) - effectiveTaxRate: 10 - unitAmount: 2781.94 - quantity: 2 - discountAmount: 0 - discountPercentage: 0 - subTotal: 5563.88 - taxAmount: 556.39 - totalAmount: 6120.27 - itemRef: - id: 22aee6bd-4767-48c4-8a13-fdf85b91fc80 - name: 600 Litre Grease Trap - trackingCategoryRefs: [] - - description: Grease Trap - accountRef: - id: 72df89d2-512b-4455-af51-a6b563733842 - name: Sales - taxRateRef: - id: 6c88aff3-7cb9-4980-a3d3-443e72e02498 - name: Sales Tax (10%) - effectiveTaxRate: 10 - unitAmount: 2781.94 - quantity: 6 - discountAmount: 0 - discountPercentage: 0 - subTotal: 16691.64 - taxAmount: 1669.16 - totalAmount: 18360.8 - itemRef: - id: 22aee6bd-4767-48c4-8a13-fdf85b91fc80 - name: 600 Litre Grease Trap - trackingCategoryRefs: [] - paymentAllocations: - - payment: - id: c31a3778-e3ea-4d01-9281-dd2f291c8cb8 - note: Payment for direct income c31a3778-e3ea-4d01-9281-dd2f291c8cb8 - reference: Direct Income c31a3778-e3ea-4d01-9281-dd2f291c8cb8 - accountRef: - id: ff8fdc4c-2aad-4ec1-9430-6bd201832eb3 - name: Undeposited Funds - currency: GBP - currencyRate: 1 - paidOnDate: '2022-04-19T00:00:00' - totalAmount: 32095.91 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2022-04-19T00:00:00' - totalAmount: -32095.91 - subTotal: 29178.09 - taxAmount: 2917.81 - totalAmount: 32095.91 - modifiedDate: '2023-04-26T12:38:18Z' - sourceModifiedDate: '2023-02-13T00:34:00' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 518 - _links: - current: - href: /companies/354a121b-855f-4d25-90ad-0905b498c1c0/connections/57b731ba-1d45-4386-ba58-2a1ca0234624/data/directIncomes?page=1&pageSize=2 - self: - href: /companies/354a121b-855f-4d25-90ad-0905b498c1c0/connections/57b731ba-1d45-4386-ba58-2a1ca0234624/data/directIncomes - next: - href: /companies/354a121b-855f-4d25-90ad-0905b498c1c0/connections/57b731ba-1d45-4386-ba58-2a1ca0234624/data/directIncomes?page=2&pageSize=2 - Dynamics 365 Business Central: - value: - results: - - id: 8be30162-feec-ec11-82f9-000d3a8746a9 - reference: B1234 - note: '4006' - issueDate: '2022-06-18T00:00:00' - currency: USD - currencyRate: 0.648364486 - lineItems: - - description: Interest Income - accountRef: - id: 221217b3-89d1-ea11-bbaa-000d3a2b9185 - name: Interest Income - taxRateRef: - id: 63bc0fb9-89d1-ea11-bbaa-000d3a2b9185 - name: Setup for DOMESTIC / STANDARD - effectiveTaxRate: 10 - unitAmount: 7.13 - quantity: 1 - subTotal: 7.13 - taxAmount: 1.43 - totalAmount: 8.56 - trackingCategoryRefs: - - id: adbc0fb9-89d1-ea11-bbaa-000d3a2b9185 - name: ADM-Administration - paymentAllocations: - - payment: - id: 8be30162-feec-ec11-82f9-000d3a8746a9 - accountRef: - id: 8277672c-b8e6-ec11-82f8-0022481a77f0 - name: B020-BoA - currency: USD - currencyRate: 0.6483644859813084 - paidOnDate: '2022-06-18T00:00:00' - totalAmount: 8.56 - allocation: - currency: USD - currencyRate: 0.6483644859813084 - allocatedOnDate: '2022-06-18T00:00:00' - totalAmount: 8.56 - subTotal: 7.13 - taxAmount: 1.43 - totalAmount: 8.56 - modifiedDate: '2023-03-27T14:21:25Z' - sourceModifiedDate: '2022-06-15T22:56:26Z' - metadata: - isDeleted: false - - id: f68e56e0-b8bd-ed11-9a88-6045bd0f9361 - reference: B110 - note: '4990' - issueDate: '2023-03-07T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Accounts Receivable - accountRef: - id: 641217b3-89d1-ea11-bbaa-000d3a2b9185 - name: Accounts Receivable - taxRateRef: - id: cc81fea8-2917-ed11-90eb-002248009df3 - name: '' - effectiveTaxRate: 0 - unitAmount: 649.4 - quantity: -1 - subTotal: -649.4 - taxAmount: 0 - totalAmount: -649.4 - trackingCategoryRefs: [] - paymentAllocations: - - payment: - id: f68e56e0-b8bd-ed11-9a88-6045bd0f9361 - accountRef: - id: b6545a08-a9bd-ed11-9a88-0022484358c7 - name: HOLDING_LENDING - currency: GBP - currencyRate: 1 - paidOnDate: '2023-03-07T00:00:00' - totalAmount: -649.4 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2023-03-07T00:00:00' - totalAmount: -649.4 - subTotal: -649.4 - taxAmount: 0 - totalAmount: -649.4 - modifiedDate: '2023-03-27T14:21:25Z' - sourceModifiedDate: '2023-03-08T13:55:34Z' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 2 - _links: - current: - href: /companies/d6849caf-c146-41be-8335-b73346e3bd84/connections/60acb117-5cf5-4745-b069-491551da4066/data/directIncomes?page=1&pageSize=2 - self: - href: /companies/d6849caf-c146-41be-8335-b73346e3bd84/connections/60acb117-5cf5-4745-b069-491551da4066/data/directIncomes - FreeAgent: - value: - results: - - id: '344673327' - note: Test Transaction 2 - issueDate: '2017-11-01T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Test Transaction 2 - accountRef: - id: '001' - name: Sales - unitAmount: 10.5 - quantity: 1 - subTotal: 10.5 - taxAmount: 0 - totalAmount: 10.5 - trackingCategoryRefs: [] - paymentAllocations: - - payment: - id: '344673327' - note: Test Transaction 2 - accountRef: - id: 750-1 - name: 'Bank Account: Business Current Account' - currency: GBP - paidOnDate: '2017-11-01T00:00:00' - totalAmount: 10.5 - allocation: - currency: GBP - allocatedOnDate: '2017-11-01T00:00:00' - totalAmount: 10.5 - subTotal: 10.5 - taxAmount: 0 - totalAmount: 10.5 - modifiedDate: '2023-04-25T14:20:36Z' - sourceModifiedDate: '2022-10-06T10:38:24Z' - metadata: - isDeleted: false - - id: '348104863' - note: 'Codat Ltd Ref: Nov Topup' - issueDate: '2017-11-23T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: 'Codat Ltd Ref: Nov Topup' - accountRef: - id: '001' - name: Sales - unitAmount: 100 - quantity: 1 - subTotal: 100 - taxAmount: 0 - totalAmount: 100 - trackingCategoryRefs: [] - paymentAllocations: - - payment: - id: '348104863' - note: 'Codat Ltd Ref: Nov Topup' - accountRef: - id: 750-1 - name: 'Bank Account: Business Current Account' - currency: GBP - paidOnDate: '2017-11-23T00:00:00' - totalAmount: 100 - allocation: - currency: GBP - allocatedOnDate: '2017-11-23T00:00:00' - totalAmount: 100 - subTotal: 100 - taxAmount: 0 - totalAmount: 100 - modifiedDate: '2023-04-25T14:20:36Z' - sourceModifiedDate: '2022-10-24T12:13:27Z' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 211 - _links: - current: - href: /companies/071ad738-68f3-4561-afd0-69bab9df0803/connections/4fd7c69f-ecc1-45f5-83f2-42ed3391e386/data/directIncomes?page=1&pageSize=2 - self: - href: /companies/071ad738-68f3-4561-afd0-69bab9df0803/connections/4fd7c69f-ecc1-45f5-83f2-42ed3391e386/data/directIncomes - next: - href: /companies/071ad738-68f3-4561-afd0-69bab9df0803/connections/4fd7c69f-ecc1-45f5-83f2-42ed3391e386/data/directIncomes?page=2&pageSize=2 - QuickBooks Desktop: - value: - results: - - id: 9B87-1181931723 - reference: 9C08-1181931827 - contactRef: - id: 280000-933272658 - dataType: customers - issueDate: '2023-01-15T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - accountRef: - id: 80000-933270541 - name: Undeposited Funds - unitAmount: 1228.18 - quantity: 1 - subTotal: 1228.18 - taxAmount: 0 - totalAmount: 1228.18 - trackingCategoryRefs: [] - paymentAllocations: - - payment: - id: 9B87-1181931723 - accountRef: - id: 20000-933270541 - name: Checking - currency: GBP - currencyRate: 1 - paidOnDate: '2023-01-15T00:00:00' - totalAmount: 1228.18 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2023-01-15T00:00:00' - totalAmount: 1228.18 - subTotal: 1228.18 - taxAmount: 0 - totalAmount: 1228.18 - modifiedDate: '2023-04-26T09:14:12Z' - sourceModifiedDate: '2023-12-16T05:06:23' - metadata: - isDeleted: false - - id: 68E0-1197775239 - reference: 96F3-1197775718 - contactRef: - id: 800000B5-1197701259 - dataType: customers - issueDate: '2023-01-17T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - accountRef: - id: 80000-933270541 - name: Undeposited Funds - unitAmount: 361.08 - quantity: 1 - subTotal: 361.08 - taxAmount: 0 - totalAmount: 361.08 - trackingCategoryRefs: [] - paymentAllocations: - - payment: - id: 68E0-1197775239 - accountRef: - id: 20000-933270541 - name: Checking - currency: GBP - currencyRate: 1 - paidOnDate: '2023-01-17T00:00:00' - totalAmount: 15281.67 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2023-01-17T00:00:00' - totalAmount: 361.08 - subTotal: 361.08 - taxAmount: 0 - totalAmount: 361.08 - modifiedDate: '2023-04-26T09:14:12Z' - sourceModifiedDate: '2023-12-16T05:06:11' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 104 - _links: - current: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/connections/2c26b4da-97d4-4ba9-baad-1e18b49b96ac/data/directIncomes?page=1&pageSize=2 - self: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/connections/2c26b4da-97d4-4ba9-baad-1e18b49b96ac/data/directIncomes - next: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/connections/2c26b4da-97d4-4ba9-baad-1e18b49b96ac/data/directIncomes?page=2&pageSize=2 - QuickBooks Online Sandbox: - value: - results: - - id: 5-1 - contactRef: - id: '52' - dataType: suppliers - issueDate: '2015-11-24T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: contribution to start business - accountRef: - id: '61' - name: Owner's Equity - Contributions - taxRateRef: - id: 2_Invoices - name: Exempt Invoices - effectiveTaxRate: 0 - unitAmount: 10000 - quantity: 1 - discountAmount: 0 - subTotal: 10000 - taxAmount: 0 - totalAmount: 10000 - trackingCategoryRefs: [] - paymentAllocations: - - payment: - id: 5-1 - accountRef: - id: '81' - name: Current - currency: GBP - currencyRate: 1 - paidOnDate: '2015-11-24T00:00:00' - totalAmount: 10000 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2015-11-24T00:00:00' - totalAmount: -10000 - subTotal: 10000 - taxAmount: 0 - totalAmount: 10000 - modifiedDate: '2023-04-26T09:36:04Z' - sourceModifiedDate: '2016-09-12T15:26:26Z' - metadata: - isDeleted: false - - id: 5-2 - contactRef: - id: '53' - dataType: suppliers - issueDate: '2015-11-24T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: funds borrowed to start business - accountRef: - id: '63' - name: Note Payable - taxRateRef: - id: 2_Invoices - name: Exempt Invoices - effectiveTaxRate: 0 - unitAmount: 25000 - quantity: 1 - discountAmount: 0 - subTotal: 25000 - taxAmount: 0 - totalAmount: 25000 - trackingCategoryRefs: [] - paymentAllocations: - - payment: - id: 5-2 - accountRef: - id: '81' - name: Current - currency: GBP - currencyRate: 1 - paidOnDate: '2015-11-24T00:00:00' - totalAmount: 25000 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2015-11-24T00:00:00' - totalAmount: -25000 - subTotal: 25000 - taxAmount: 0 - totalAmount: 25000 - modifiedDate: '2023-04-26T09:36:04Z' - sourceModifiedDate: '2016-09-12T15:26:26Z' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 741 - _links: - current: - href: /companies/5a7f3597-36e1-4216-86fe-289ad36088a6/connections/1f9f6013-f8a5-4278-8a47-3ab7fdb6c24c/data/directIncomes?page=1&pageSize=2 - self: - href: /companies/5a7f3597-36e1-4216-86fe-289ad36088a6/connections/1f9f6013-f8a5-4278-8a47-3ab7fdb6c24c/data/directIncomes - next: - href: /companies/5a7f3597-36e1-4216-86fe-289ad36088a6/connections/1f9f6013-f8a5-4278-8a47-3ab7fdb6c24c/data/directIncomes?page=2&pageSize=2 - QuickBooks Online: - value: - results: - - id: '1' - note: Opening Balance from Bank - issueDate: '2018-09-21T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - accountRef: - id: '53' - name: Retained profit balance forward account - unitAmount: 170.23 - quantity: 1 - discountAmount: 0 - subTotal: 170.23 - taxAmount: 0 - totalAmount: 170.23 - trackingCategoryRefs: [] - paymentAllocations: - - payment: - id: '1' - accountRef: - id: '61' - name: Dave PP Current - currency: GBP - currencyRate: 1 - paidOnDate: '2018-09-21T00:00:00' - totalAmount: 170.23 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2018-09-21T00:00:00' - totalAmount: -170.23 - subTotal: 170.23 - taxAmount: 0 - totalAmount: 170.23 - modifiedDate: '2023-01-18T11:02:50Z' - sourceModifiedDate: '2018-12-17T14:56:20Z' - - id: '11' - note: 'Payment from CD Baby, a division of Audio and Video Labs Inc' - issueDate: '2018-10-15T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: 'Payment from CD Baby, a division of Audio and Video Labs Inc' - accountRef: - id: '57' - name: Sales of Product Income - unitAmount: 8.12 - quantity: 1 - discountAmount: 0 - subTotal: 8.12 - taxAmount: 0 - totalAmount: 8.12 - trackingCategoryRefs: [] - paymentAllocations: - - payment: - id: '11' - accountRef: - id: '61' - name: Dave PP Current - currency: GBP - currencyRate: 1 - paidOnDate: '2018-10-15T00:00:00' - totalAmount: 8.12 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2018-10-15T00:00:00' - totalAmount: -8.12 - subTotal: 8.12 - taxAmount: 0 - totalAmount: 8.12 - modifiedDate: '2023-01-18T11:02:50Z' - sourceModifiedDate: '2018-12-17T14:56:44Z' - pageNumber: 1 - pageSize: 2 - totalResults: 1171 - _links: - current: - href: /companies/10818b5e-6e6a-4ed4-a1c5-3e3efe626e87/connections/9e28a776-f4be-425b-8a3d-ad49956de2c9/data/directIncomes?page=1&pageSize=2 - self: - href: /companies/10818b5e-6e6a-4ed4-a1c5-3e3efe626e87/connections/9e28a776-f4be-425b-8a3d-ad49956de2c9/data/directIncomes - next: - href: /companies/10818b5e-6e6a-4ed4-a1c5-3e3efe626e87/connections/9e28a776-f4be-425b-8a3d-ad49956de2c9/data/directIncomes?page=2&pageSize=2 - Sage Intacct: - value: - results: - - id: '4973' - reference: dt test contact - note: dt header description - issueDate: '2022-03-15T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Dt test line1 - accountRef: - id: '151' - name: Cash - taxRateRef: - id: '99' - name: UK Sale Goods Standard Rate - effectiveTaxRate: 20 - unitAmount: 125 - quantity: 1 - subTotal: 125 - taxAmount: 25 - totalAmount: 150 - trackingCategoryRefs: - - id: DEPARTMENT-1 - name: Sales - - id: LOCATION-8 - name: United Kingdom - - description: dt test line 2 - accountRef: - id: '152' - name: Cash Equivalents - taxRateRef: - id: '99' - name: UK Sale Goods Standard Rate - effectiveTaxRate: 20 - unitAmount: 166.67 - quantity: 1 - subTotal: 166.67 - taxAmount: 33.33 - totalAmount: 200 - trackingCategoryRefs: - - id: DEPARTMENT-2 - name: Services - - id: LOCATION-8 - name: United Kingdom - paymentAllocations: - - payment: - id: '4973' - note: dt header description - accountRef: - id: '289' - name: Checking 5 - Bank Of England - currency: GBP - paidOnDate: '2022-03-15T00:00:00' - totalAmount: 350 - allocation: - currency: GBP - allocatedOnDate: '2022-03-15T00:00:00' - totalAmount: 350 - subTotal: 291.67 - taxAmount: 58.33 - totalAmount: 350 - modifiedDate: '2022-10-28T11:10:26Z' - sourceModifiedDate: '2022-03-15T12:45:58Z' - - id: '5314' - reference: Test Int Income - note: Test Description - issueDate: '2022-03-24T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Interest earned - accountRef: - id: '5' - name: Other Income - unitAmount: 300 - quantity: 1 - subTotal: 300 - totalAmount: 300 - trackingCategoryRefs: - - id: DEPARTMENT-1 - name: Sales - - id: LOCATION-8 - name: United Kingdom - paymentAllocations: - - payment: - id: '5314' - note: Test Description - reference: Test Int Income - accountRef: - id: '289' - name: Checking 5 - Bank Of England - currency: GBP - paidOnDate: '2022-03-24T00:00:00' - totalAmount: 300 - allocation: - currency: GBP - allocatedOnDate: '2022-03-24T00:00:00' - totalAmount: 300 - subTotal: 300 - taxAmount: 0 - totalAmount: 300 - modifiedDate: '2022-10-28T11:10:26Z' - pageNumber: 1 - pageSize: 2 - totalResults: 43 - _links: - current: - href: /companies/71ca2b28-8e86-41e7-8c55-f681042b11a0/connections/be80adfc-1157-4db4-9170-f8bcbbc051ba/data/directIncomes?page=1&pageSize=2 - self: - href: /companies/71ca2b28-8e86-41e7-8c55-f681042b11a0/connections/be80adfc-1157-4db4-9170-f8bcbbc051ba/data/directIncomes - next: - href: /companies/71ca2b28-8e86-41e7-8c55-f681042b11a0/connections/be80adfc-1157-4db4-9170-f8bcbbc051ba/data/directIncomes?page=2&pageSize=2 - Xero: - value: - results: - - id: 3a1be853-5964-4afe-ad6a-fb89cbaf6606 - reference: Sub 098801 - contactRef: - id: bc446de5-971e-48b5-8efd-1745149844ef - dataType: customers - issueDate: '2023-02-14T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Long-term subscriber discount - refund on sub - accountRef: - id: a40f43e2-c7b0-4187-919a-04ccdc14a630 - name: Subscriptions - taxRateRef: - id: EXEMPTINPUT - name: Exempt Expenses - effectiveTaxRate: 0 - unitAmount: 35 - quantity: 1 - subTotal: 35 - taxAmount: 0 - totalAmount: 35 - trackingCategoryRefs: [] - paymentAllocations: - - payment: - id: 3a1be853-5964-4afe-ad6a-fb89cbaf6606 - accountRef: - id: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - name: Business Bank Account - currency: GBP - currencyRate: 1 - paidOnDate: '2023-02-14T00:00:00' - totalAmount: 35 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2023-02-14T00:00:00' - totalAmount: 35 - subTotal: 35 - taxAmount: 0 - totalAmount: 35 - modifiedDate: '2023-03-15T20:36:09Z' - sourceModifiedDate: '2011-04-11T00:45:38' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 1 - _links: - current: - href: /companies/5ced9667-a310-443a-a711-958d36377141/connections/6a4bcf97-e46a-465c-abf6-c42cec8e48c0/data/directIncomes?page=1&pageSize=2 - self: - href: /companies/5ced9667-a310-443a-a711-958d36377141/connections/6a4bcf97-e46a-465c-abf6-c42cec8e48c0/data/directIncomes - '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' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - description: |- - The *List direct incomes* endpoint returns a list of [direct incomes](https://docs.codat.io/lending-api#/schemas/DirectIncome) for a given company's connection. - - [Direct incomes](https://docs.codat.io/lending-api#/schemas/DirectIncome) are incomes received directly from the business' operations at the point of the sale. - - Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data). - - operationId: list-accounting-direct-incomes - x-speakeasy-group: accounts-receivable.direct-incomes - '/companies/{companyId}/connections/{connectionId}/data/directIncomes/{directIncomeId}': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - get: - tags: - - Accounts receivable - summary: Get direct income - parameters: - - $ref: '#/components/parameters/accountingDirectIncomeId' - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/AccountingDirectIncome' - examples: - Clear Books: - value: - id: 38e8c917-0afc-4583-8ffe-1b53ad601197 - reference: 3cb8ced3-3ecb-4974-ada5-8290b0ec3355 - note: 'Direct Income with 1 line items, totaling 188.33' - contactRef: - id: 51f03576-f6b0-40d5-9fba-81a490411c03 - dataType: customers - issueDate: '2022-04-19T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Underground - Drain Yard Gully - accountRef: - id: 72df89d2-512b-4455-af51-a6b563733842 - name: Sales - taxRateRef: - id: 6c88aff3-7cb9-4980-a3d3-443e72e02498 - name: Sales Tax (10%) - effectiveTaxRate: 10 - unitAmount: 171.21 - quantity: 1 - discountAmount: 0 - discountPercentage: 0 - subTotal: 171.21 - taxAmount: 17.12 - totalAmount: 188.33 - itemRef: - id: 00491160-6ee5-4d76-9f34-998f00687481 - name: Aluminium Silt Bucket - trackingCategoryRefs: [] - paymentAllocations: - - payment: - id: 38e8c917-0afc-4583-8ffe-1b53ad601197 - note: Payment for direct income 38e8c917-0afc-4583-8ffe-1b53ad601197 - reference: Direct Income 38e8c917-0afc-4583-8ffe-1b53ad601197 - accountRef: - id: ff8fdc4c-2aad-4ec1-9430-6bd201832eb3 - name: Undeposited Funds - currency: GBP - currencyRate: 1 - paidOnDate: '2022-04-19T00:00:00' - totalAmount: 188.33 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2022-04-19T00:00:00' - totalAmount: -188.33 - subTotal: 171.21 - taxAmount: 17.12 - totalAmount: 188.33 - modifiedDate: '2023-04-26T12:38:18Z' - sourceModifiedDate: '2022-05-13T01:06:00' - metadata: - isDeleted: false - Dynamics 365 Business Central: - value: - id: 8be30162-feec-ec11-82f9-000d3a8746a9 - reference: B1234 - note: '4006' - issueDate: '2022-06-18T00:00:00' - currency: USD - currencyRate: 0.648364486 - lineItems: - - description: Interest Income - accountRef: - id: 221217b3-89d1-ea11-bbaa-000d3a2b9185 - name: Interest Income - taxRateRef: - id: 63bc0fb9-89d1-ea11-bbaa-000d3a2b9185 - name: Setup for DOMESTIC / STANDARD - effectiveTaxRate: 10 - unitAmount: 7.13 - quantity: 1 - subTotal: 7.13 - taxAmount: 1.43 - totalAmount: 8.56 - trackingCategoryRefs: - - id: adbc0fb9-89d1-ea11-bbaa-000d3a2b9185 - name: ADM-Administration - paymentAllocations: - - payment: - id: 8be30162-feec-ec11-82f9-000d3a8746a9 - accountRef: - id: 8277672c-b8e6-ec11-82f8-0022481a77f0 - name: B020-BoA - currency: USD - currencyRate: 0.6483644859813084 - paidOnDate: '2022-06-18T00:00:00' - totalAmount: 8.56 - allocation: - currency: USD - currencyRate: 0.6483644859813084 - allocatedOnDate: '2022-06-18T00:00:00' - totalAmount: 8.56 - subTotal: 7.13 - taxAmount: 1.43 - totalAmount: 8.56 - modifiedDate: '2023-03-27T14:21:25Z' - sourceModifiedDate: '2022-06-15T22:56:26Z' - metadata: - isDeleted: false - FreeAgent: - value: - id: '344673327' - note: Test Transaction 2 - issueDate: '2017-11-01T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Test Transaction 2 - accountRef: - id: '001' - name: Sales - unitAmount: 10.5 - quantity: 1 - subTotal: 10.5 - taxAmount: 0 - totalAmount: 10.5 - trackingCategoryRefs: [] - paymentAllocations: - - payment: - id: '344673327' - note: Test Transaction 2 - accountRef: - id: 750-1 - name: 'Bank Account: Business Current Account' - currency: GBP - paidOnDate: '2017-11-01T00:00:00' - totalAmount: 10.5 - allocation: - currency: GBP - allocatedOnDate: '2017-11-01T00:00:00' - totalAmount: 10.5 - subTotal: 10.5 - taxAmount: 0 - totalAmount: 10.5 - modifiedDate: '2023-04-25T14:20:36Z' - sourceModifiedDate: '2022-10-06T10:38:24Z' - metadata: - isDeleted: false - QuickBooks Desktop: - value: - id: 9B87-1181931723 - reference: 9C08-1181931827 - contactRef: - id: 280000-933272658 - dataType: customers - issueDate: '2023-01-15T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - accountRef: - id: 80000-933270541 - name: Undeposited Funds - unitAmount: 1228.18 - quantity: 1 - subTotal: 1228.18 - taxAmount: 0 - totalAmount: 1228.18 - trackingCategoryRefs: [] - paymentAllocations: - - payment: - id: 9B87-1181931723 - accountRef: - id: 20000-933270541 - name: Checking - currency: GBP - currencyRate: 1 - paidOnDate: '2023-01-15T00:00:00' - totalAmount: 1228.18 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2023-01-15T00:00:00' - totalAmount: 1228.18 - subTotal: 1228.18 - taxAmount: 0 - totalAmount: 1228.18 - modifiedDate: '2023-04-26T09:14:12Z' - sourceModifiedDate: '2023-12-16T05:06:23' - metadata: - isDeleted: false - QuickBooks Online Sandbox: - value: - id: 5-1 - contactRef: - id: '52' - dataType: suppliers - issueDate: '2015-11-24T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: contribution to start business - accountRef: - id: '61' - name: Owner's Equity - Contributions - taxRateRef: - id: 2_Invoices - name: Exempt Invoices - effectiveTaxRate: 0 - unitAmount: 10000 - quantity: 1 - discountAmount: 0 - subTotal: 10000 - taxAmount: 0 - totalAmount: 10000 - trackingCategoryRefs: [] - paymentAllocations: - - payment: - id: 5-1 - accountRef: - id: '81' - name: Current - currency: GBP - currencyRate: 1 - paidOnDate: '2015-11-24T00:00:00' - totalAmount: 10000 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2015-11-24T00:00:00' - totalAmount: -10000 - subTotal: 10000 - taxAmount: 0 - totalAmount: 10000 - modifiedDate: '2023-04-26T09:36:04Z' - sourceModifiedDate: '2016-09-12T15:26:26Z' - metadata: - isDeleted: false - QuickBooks Online: - value: - id: '1' - note: Opening Balance from Bank - issueDate: '2018-09-21T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - accountRef: - id: '53' - name: Retained profit balance forward account - unitAmount: 170.23 - quantity: 1 - discountAmount: 0 - subTotal: 170.23 - taxAmount: 0 - totalAmount: 170.23 - trackingCategoryRefs: [] - paymentAllocations: - - payment: - id: '1' - accountRef: - id: '61' - name: Dave PP Current - currency: GBP - currencyRate: 1 - paidOnDate: '2018-09-21T00:00:00' - totalAmount: 170.23 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2018-09-21T00:00:00' - totalAmount: -170.23 - subTotal: 170.23 - taxAmount: 0 - totalAmount: 170.23 - modifiedDate: '2023-01-18T11:02:50Z' - sourceModifiedDate: '2018-12-17T14:56:20Z' - Sage Intacct: - value: - id: '4973' - reference: dt test contact - note: dt header description - issueDate: '2022-03-15T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Dt test line1 - accountRef: - id: '151' - name: Cash - taxRateRef: - id: '99' - name: UK Sale Goods Standard Rate - effectiveTaxRate: 20 - unitAmount: 125 - quantity: 1 - subTotal: 125 - taxAmount: 25 - totalAmount: 150 - trackingCategoryRefs: - - id: DEPARTMENT-1 - name: Sales - - id: LOCATION-8 - name: United Kingdom - - description: dt test line 2 - accountRef: - id: '152' - name: Cash Equivalents - taxRateRef: - id: '99' - name: UK Sale Goods Standard Rate - effectiveTaxRate: 20 - unitAmount: 166.67 - quantity: 1 - subTotal: 166.67 - taxAmount: 33.33 - totalAmount: 200 - trackingCategoryRefs: - - id: DEPARTMENT-2 - name: Services - - id: LOCATION-8 - name: United Kingdom - paymentAllocations: - - payment: - id: '4973' - note: dt header description - accountRef: - id: '289' - name: Checking 5 - Bank Of England - currency: GBP - paidOnDate: '2022-03-15T00:00:00' - totalAmount: 350 - allocation: - currency: GBP - allocatedOnDate: '2022-03-15T00:00:00' - totalAmount: 350 - subTotal: 291.67 - taxAmount: 58.33 - totalAmount: 350 - modifiedDate: '2022-10-28T11:10:26Z' - sourceModifiedDate: '2022-03-15T12:45:58Z' - Xero: - value: - id: 3a1be853-5964-4afe-ad6a-fb89cbaf6606 - reference: Sub 098801 - contactRef: - id: bc446de5-971e-48b5-8efd-1745149844ef - dataType: customers - issueDate: '2023-02-14T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Long-term subscriber discount - refund on sub - accountRef: - id: a40f43e2-c7b0-4187-919a-04ccdc14a630 - name: Subscriptions - taxRateRef: - id: EXEMPTINPUT - name: Exempt Expenses - effectiveTaxRate: 0 - unitAmount: 35 - quantity: 1 - subTotal: 35 - taxAmount: 0 - totalAmount: 35 - trackingCategoryRefs: [] - paymentAllocations: - - payment: - id: 3a1be853-5964-4afe-ad6a-fb89cbaf6606 - accountRef: - id: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - name: Business Bank Account - currency: GBP - currencyRate: 1 - paidOnDate: '2023-02-14T00:00:00' - totalAmount: 35 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2023-02-14T00:00:00' - totalAmount: 35 - subTotal: 35 - taxAmount: 0 - totalAmount: 35 - modifiedDate: '2023-03-15T20:36:09Z' - sourceModifiedDate: '2011-04-11T00:45:38' - metadata: - isDeleted: false - '401': - $ref: '#/components/responses/Unauthorized' - '402': - $ref: '#/components/responses/Payment-Required' - '403': - $ref: '#/components/responses/Forbidden' - '404': - $ref: '#/components/responses/Not-Found' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - description: | - The *Get direct income* endpoint returns a single direct income for a given directIncomeId. - - [Direct incomes](https://docs.codat.io/lending-api#/schemas/DirectIncome) are incomes received directly from the business' operations at the point of the sale. - - Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data). - operationId: get-accounting-direct-income - x-speakeasy-group: accounts-receivable.direct-incomes - '/companies/{companyId}/connections/{connectionId}/data/directIncomes/{directIncomeId}/attachments/{attachmentId}': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - - $ref: '#/components/parameters/accountingDirectIncomeId' - - $ref: '#/components/parameters/attachmentId' - get: - tags: - - Accounts receivable - summary: Get direct income attachment - parameters: - - $ref: '#/components/parameters/timeoutInMinutes' - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/AccountingAttachment' - examples: {} - '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: |- - The *Get direct income attachment* endpoint returns a specific attachment for a given `directIncomeId` and `attachmentId`. - - [Direct incomes](https://docs.codat.io/lending-api#/schemas/DirectIncome) are incomes received directly from the business' operations at the point of the sale. - operationId: get-accounting-direct-income-attachment - x-speakeasy-group: accounts-receivable.direct-incomes - '/companies/{companyId}/connections/{connectionId}/data/directIncomes/{directIncomeId}/attachments/{attachmentId}/download': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - - $ref: '#/components/parameters/accountingDirectIncomeId' - - $ref: '#/components/parameters/attachmentId' - get: - tags: - - Accounts receivable - summary: Download direct income attachment - parameters: - - $ref: '#/components/parameters/attachmentId' - responses: - '200': - description: Success - content: - application/octet-stream: - schema: - title: Data - type: string - format: binary - '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: |- - The *Download direct income attachment* endpoint downloads a specific attachment for a given `directIncomeId` and `attachmentId`. - - [Direct incomes](https://docs.codat.io/lending-api#/schemas/DirectIncome) are incomes received directly from the business' operations at the point of the sale. - operationId: download-accounting-direct-income-attachment - x-speakeasy-group: accounts-receivable.direct-incomes - '/companies/{companyId}/connections/{connectionId}/data/directIncomes/{directIncomeId}/attachments': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - - $ref: '#/components/parameters/accountingDirectIncomeId' - get: - tags: - - Accounts receivable - summary: List direct income attachments - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/Attachments' - '401': - $ref: '#/components/responses/Unauthorized' - '402': - $ref: '#/components/responses/Payment-Required' - '403': - $ref: '#/components/responses/Forbidden' - '404': - $ref: '#/components/responses/Not-Found' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - description: |- - The *List direct income attachments* endpoint returns a list of attachments available to download for given `directIncomeId`. - - [Direct incomes](https://docs.codat.io/lending-api#/schemas/DirectIncome) are incomes received directly from the business' operations at the point of the sale. - operationId: list-accounting-direct-income-attachments - x-speakeasy-group: accounts-receivable.direct-incomes - '/companies/{companyId}/data/info': - parameters: - - $ref: '#/components/parameters/companyId' - get: - summary: Get company accounting profile - description: Gets the latest basic info for a company. - operationId: get-accounting-profile - x-speakeasy-name-override: get-accounting-profile - tags: - - Company info - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/AccountingCompanyInfo' - examples: - Example 1: - value: - companyName: Codat - accountingPlatformRef: 1700060034_ETD - companyLegalName: Codat Ltd - addresses: - - type: Billing - line1: 301 Ink Rooms - line2: 28 Easton Street - city: London - region: England - country: United Kingdom - postalCode: WC1X 0BE - - type: Delivery - line1: 28 Easton Street - city: London - country: UK - postalCode: WC1X 0BE - phoneNumbers: - - number: 02012 345678 - type: Landline - - number: 07123 456789 - type: Mobile - - number: 02012 345678 - type: Fax - webLinks: - - type: Website - url: 'https://www.codat.io/' - - type: Social - url: 'https://www.linkedin.com/company/codat-limited/' - registrationNumber: '5590111724' - taxNumber: '74111622555799035846' - financialYearStartDate: '2023-04-01T00:00:00' - baseCurrency: GBP - sourceUrls: - Api: 'https://api.codat.io' - createdDate: '2020-03-09T15:19:26' - '401': - $ref: '#/components/responses/Unauthorized' - '402': - $ref: '#/components/responses/Payment-Required' - '403': - $ref: '#/components/responses/Forbidden' - '404': - $ref: '#/components/responses/Not-Found' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - '/companies/{companyId}/data/invoices': - parameters: - - $ref: '#/components/parameters/companyId' - get: - tags: - - Accounts receivable - summary: List invoices - description: | - The *List invoices* endpoint returns a list of [invoices](https://docs.codat.io/lending-api#/schemas/Invoice) for a given company's connection. - - [Invoices](https://docs.codat.io/lending-api#/schemas/Invoice) are itemized records of goods sold or services provided to a customer. - - Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data). - - ### Useful queries - - - Outstanding invoices - `query = amountDue > 0` - - Invoices due after a certain date: `query = dueDate > 2021-01-28` - - [Read more about querying](https://docs.codat.io/using-the-api/querying). - - ### Tips and traps - - To access the `paymentAllocations` property, ensure that the `payments` data type is queued and cached in Codat before retrieving `invoices` from Codat's cache. - operationId: list-accounting-invoices - x-speakeasy-group: accounts-receivable.invoices - 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/AccountingInvoices' - examples: - Clear Books: - value: - results: - - id: 2518ca08-5e2a-4630-8cee-a6bcd1625660 - invoiceNumber: TKj7oD38 - customerRef: - id: d65ac505-072c-49ec-be3c-3cb74228966d - companyName: Jensen Steuber - salesOrderRefs: [] - issueDate: '2022-04-25T13:04:02' - dueDate: '2022-04-25T13:04:02' - modifiedDate: '2023-04-26T12:38:17Z' - sourceModifiedDate: '2023-01-28T14:41:02' - paidOnDate: '2022-04-25T13:04:02' - currency: GBP - currencyRate: 1 - lineItems: - - description: Heavy Duty Hinged Gully Grating x4.00 - unitAmount: 402.89 - quantity: 4 - subTotal: 1611.56 - taxAmount: 161.16 - totalAmount: 1772.72 - accountRef: - id: dbcaf288-2b39-4b95-8ab3-42202ab15918 - name: Business Current Account - taxRateRef: - id: 6c88aff3-7cb9-4980-a3d3-443e72e02498 - name: Sales Tax (10%) - effectiveTaxRate: 10 - itemRef: - id: 3abf0883-03f7-44c6-bc15-1372522d25e1 - name: Heavy Duty Hinged Gully Grating - trackingCategoryRefs: - - id: costcode_9 - name: PandaConstruction - isDirectIncome: true - paymentAllocations: - - payment: - id: 9407d5ee-893a-4547-bd89-bc7b795ee774 - note: Payment against invoice 2518ca08-5e2a-4630-8cee-a6bcd1625660 - reference: 2518ca08-5e2a-4630-8cee-a6bcd1625660 - accountRef: - id: dbcaf288-2b39-4b95-8ab3-42202ab15918 - name: Business Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-04-25T13:04:02' - totalAmount: 1772.72 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2022-04-25T13:04:02' - totalAmount: -1772.72 - withholdingTax: [] - totalDiscount: 0 - subTotal: 1611.56 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 161.16 - totalAmount: 1772.72 - amountDue: 0 - discountPercentage: 0 - status: Paid - metadata: - isDeleted: false - - id: ac3ac4dd-defe-4f9c-b7bb-2c3fe726a9d1 - invoiceNumber: 4F6ONfFP - customerRef: - id: a82042f1-a005-4ca5-bfd3-5bc237123aa5 - companyName: Keara Leffler - salesOrderRefs: [] - issueDate: '2022-04-25T13:04:02' - dueDate: '2022-04-25T13:04:02' - modifiedDate: '2023-04-26T12:38:17Z' - sourceModifiedDate: '2022-08-22T07:43:02' - paidOnDate: '2022-04-25T13:04:02' - currency: GBP - currencyRate: 1 - lineItems: - - description: Heavy Duty Hinged Gully Grating x8.28 - unitAmount: 402.89 - quantity: 8.28 - subTotal: 3335.93 - taxAmount: 333.59 - totalAmount: 3669.52 - accountRef: - id: 72df89d2-512b-4455-af51-a6b563733842 - name: Sales - taxRateRef: - id: 6c88aff3-7cb9-4980-a3d3-443e72e02498 - name: Sales Tax (10%) - effectiveTaxRate: 10 - itemRef: - id: 3abf0883-03f7-44c6-bc15-1372522d25e1 - name: Heavy Duty Hinged Gully Grating - trackingCategoryRefs: [] - isDirectIncome: false - paymentAllocations: - - payment: - id: 7ba4fc1b-e248-49ba-8bf8-0813d7f203a8 - note: Payment against invoice ac3ac4dd-defe-4f9c-b7bb-2c3fe726a9d1 - reference: ac3ac4dd-defe-4f9c-b7bb-2c3fe726a9d1 - accountRef: - id: dbcaf288-2b39-4b95-8ab3-42202ab15918 - name: Business Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-04-25T13:04:02' - totalAmount: 3669.52 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2022-04-25T13:04:02' - totalAmount: -3669.52 - withholdingTax: [] - totalDiscount: 0 - subTotal: 3335.93 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 333.59 - totalAmount: 3669.52 - amountDue: 0 - discountPercentage: 0 - status: Paid - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 142 - _links: - current: - href: /companies/354a121b-855f-4d25-90ad-0905b498c1c0/data/invoices?page=1&pageSize=2 - self: - href: /companies/354a121b-855f-4d25-90ad-0905b498c1c0/data/invoices - next: - href: /companies/354a121b-855f-4d25-90ad-0905b498c1c0/data/invoices?page=2&pageSize=2 - Dynamics 365 Business Central: - value: - results: - - id: 18c906bf-89d1-ea11-bbaa-000d3a2b9185 - invoiceNumber: '103001' - customerRef: - id: b61217b3-89d1-ea11-bbaa-000d3a2b9185 - companyName: Trey Researches - salesOrderRefs: [] - issueDate: '2019-01-15T00:00:00' - dueDate: '2019-01-15T00:00:00' - modifiedDate: '2023-03-27T14:21:25Z' - sourceModifiedDate: '2022-05-17T16:29:00Z' - paidOnDate: '2019-01-15T00:00:00' - currency: GBP - lineItems: - - description: AMSTERDAM Lamp - unitAmount: 35.6 - quantity: 3 - discountAmount: 0 - subTotal: 106.8 - taxAmount: 21.36 - totalAmount: 128.16 - 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-d41217b3-89d1-ea11-bbaa-000d3a2b9185-DOMESTIC-DOMESTIC - name: 'AMSTERDAM Lamp / General Business Posting Group: ''DOMESTIC'' / VAT Business Posting Group: ''DOMESTIC''' - trackingCategoryRefs: [] - isDirectIncome: false - paymentAllocations: - - payment: - id: e0299ced-89d1-ea11-bbaa-000d3a2b9185 - note: Invoice 102001 - reference: 'Document No: 103001' - accountRef: - id: 621217b3-89d1-ea11-bbaa-000d3a2b9185 - name: Petty Cash - currency: GBP - currencyRate: 1 - paidOnDate: '2019-01-15T00:00:00' - totalAmount: 128.16 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2019-01-15T00:00:00' - totalAmount: -128.16 - withholdingTax: [] - totalDiscount: 0 - subTotal: 106.8 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 21.36 - totalAmount: 128.16 - amountDue: 0 - discountPercentage: 0 - status: Paid - note: '' - metadata: - isDeleted: false - - id: 31e97827-bb18-ed11-90eb-000d3a8747a0 - invoiceNumber: '102287' - customerRef: - id: 0ef95175-48c4-eb11-9f0a-0022481b4343 - companyName: '' - salesOrderRefs: [] - issueDate: '2019-01-15T00:00:00' - dueDate: '2019-01-15T00:00:00' - modifiedDate: '2023-03-27T14:21:25Z' - sourceModifiedDate: '2022-08-10T14:46:08Z' - currency: USD - lineItems: [] - paymentAllocations: [] - withholdingTax: [] - totalDiscount: 0 - subTotal: 0 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 0 - totalAmount: 0 - amountDue: 0 - discountPercentage: 0 - status: Draft - note: '' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 368 - _links: - current: - href: /companies/d6849caf-c146-41be-8335-b73346e3bd84/data/invoices?page=1&pageSize=2 - self: - href: /companies/d6849caf-c146-41be-8335-b73346e3bd84/data/invoices - next: - href: /companies/d6849caf-c146-41be-8335-b73346e3bd84/data/invoices?page=2&pageSize=2 - Exact (Netherlands): - value: - results: - - id: 91dccc63-b1af-4363-bee0-2aec6bab1bef - invoiceNumber: '19700002' - customerRef: - id: c3bf08a3-4d51-4859-acbb-5075f9484f87 - companyName: Mr Abe - salesOrderRefs: [] - issueDate: '2019-11-08T00:00:00Z' - dueDate: '2019-11-29T00:00:00Z' - modifiedDate: '2022-10-26T13:57:52Z' - sourceModifiedDate: '2019-11-08T11:56:22Z' - currency: EUR - currencyRate: 1 - lineItems: - - description: Consultancy per uur - Consultancy per uur - unitAmount: 75 - quantity: 8 - discountAmount: 0 - subTotal: 600 - taxAmount: 0 - totalAmount: 600 - accountRef: - id: 2421e8a0-5355-4ec0-af11-021fe4f39fcd - name: Omzet binnenland hoog tarief - trackingCategoryRefs: [] - isDirectIncome: false - paymentAllocations: [] - withholdingTax: [] - subTotal: 600 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 0 - totalAmount: 600 - amountDue: 599 - discountPercentage: 0 - status: PartiallyPaid - - id: 0078bc15-10a4-433d-86fa-b1bb235fc0ab - invoiceNumber: '19700004' - customerRef: - id: 46951dc4-a170-42ce-bb38-9a80b776404f - companyName: Cust 03 - salesOrderRefs: [] - issueDate: '2019-11-13T00:00:00Z' - dueDate: '2019-12-04T00:00:00Z' - modifiedDate: '2022-10-26T13:57:52Z' - sourceModifiedDate: '2019-11-13T11:47:51Z' - currency: EUR - currencyRate: 1 - lineItems: - - description: Standaard artikel - Standaard artikel - unitAmount: 25 - quantity: 1 - discountAmount: 0 - subTotal: 25 - taxAmount: 5.25 - totalAmount: 30.25 - accountRef: - id: 2421e8a0-5355-4ec0-af11-021fe4f39fcd - name: Omzet binnenland hoog tarief - trackingCategoryRefs: [] - isDirectIncome: false - paymentAllocations: [] - withholdingTax: [] - subTotal: 25 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 5.25 - totalAmount: 30.25 - amountDue: 30.25 - discountPercentage: 0 - status: Submitted - pageNumber: 1 - pageSize: 2 - totalResults: 5844 - _links: - current: - href: /companies/b83b1923-4db6-45a8-a779-b4e320c15979/data/invoices?page=1&pageSize=2 - self: - href: /companies/b83b1923-4db6-45a8-a779-b4e320c15979/data/invoices - next: - href: /companies/b83b1923-4db6-45a8-a779-b4e320c15979/data/invoices?page=2&pageSize=2 - Exact (UK): - value: - results: - - id: a05d1256-f253-46bd-aa13-c6f6a992aa47 - invoiceNumber: '17700002' - customerRef: - id: 570321bb-8b0c-49f1-a1f5-6fb1d6d94a62 - companyName: Some customer - salesOrderRefs: [] - issueDate: '2017-08-02T00:00:00Z' - dueDate: '2017-09-01T00:00:00Z' - modifiedDate: '2022-10-26T13:39:08Z' - sourceModifiedDate: '2017-08-02T18:23:43Z' - currency: GBP - currencyRate: 1 - lineItems: - - description: A bunch of stuff - A bunch of stuff - unitAmount: 100 - quantity: 1000 - discountAmount: 0 - subTotal: 100000 - taxAmount: 0 - totalAmount: 100000 - accountRef: - id: 43acd218-6a95-445f-994c-660273e0ced9 - name: Sales - trackingCategoryRefs: [] - isDirectIncome: false - paymentAllocations: [] - withholdingTax: [] - subTotal: 100000 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 0 - totalAmount: 100000 - amountDue: 0 - discountPercentage: 0 - status: Paid - - id: 0981b5d1-a817-40be-a101-4848f7b1a258 - invoiceNumber: '17700004' - customerRef: - id: 570321bb-8b0c-49f1-a1f5-6fb1d6d94a62 - companyName: Some customer - salesOrderRefs: [] - issueDate: '2017-08-03T00:00:00Z' - dueDate: '2017-09-02T00:00:00Z' - modifiedDate: '2022-10-26T13:39:08Z' - sourceModifiedDate: '2017-08-03T12:22:27Z' - paidOnDate: '2017-08-03T00:00:00Z' - currency: GBP - currencyRate: 1 - lineItems: - - description: A bunch of stuff - A bunch of stuff - unitAmount: 100 - quantity: 150 - discountAmount: 0 - subTotal: 15000 - taxAmount: 0 - totalAmount: 15000 - accountRef: - id: 43acd218-6a95-445f-994c-660273e0ced9 - name: Sales - trackingCategoryRefs: [] - isDirectIncome: false - paymentAllocations: [] - withholdingTax: [] - subTotal: 15000 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 0 - totalAmount: 15000 - amountDue: 0 - discountPercentage: 0 - status: Paid - pageNumber: 1 - pageSize: 2 - totalResults: 4214 - _links: - current: - href: /companies/d95030cd-22b2-482b-9c7b-2980dcc2b1ce/data/invoices?page=1&pageSize=2 - self: - href: /companies/d95030cd-22b2-482b-9c7b-2980dcc2b1ce/data/invoices - next: - href: /companies/d95030cd-22b2-482b-9c7b-2980dcc2b1ce/data/invoices?page=2&pageSize=2 - FreeAgent: - value: - results: - - id: '50541736' - invoiceNumber: '2348' - customerRef: - id: '10123537' - companyName: _Test 1 - salesOrderRefs: [] - issueDate: '2016-12-30T00:00:00' - dueDate: '2016-12-30T00:00:00' - modifiedDate: '2023-04-25T14:19:19Z' - sourceModifiedDate: '2022-10-20T14:28:00Z' - paidOnDate: '2020-11-05T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: 3.0 items with VatPercentage of 0.0 - unitAmount: 25.26 - quantity: 1 - discountAmount: 0 - subTotal: 25.26 - taxAmount: 0 - totalAmount: 25.26 - accountRef: - id: '001' - name: Sales - trackingCategoryRefs: [] - isDirectIncome: false - - description: 3 service charges with 0.0% vat - unitAmount: 8.85 - quantity: 1 - discountAmount: 0 - subTotal: 8.85 - taxAmount: 0 - totalAmount: 8.85 - accountRef: - id: '001' - name: Sales - trackingCategoryRefs: [] - isDirectIncome: false - - description: Tax - unitAmount: 0 - quantity: 1 - discountAmount: 0 - subTotal: 0 - taxAmount: 0 - totalAmount: 0 - trackingCategoryRefs: [] - isDirectIncome: false - paymentAllocations: - - payment: - id: '262466203' - note: E2E Test transaction 2 CREDIT �250.00 - Invoice receipt against 2348 - currency: GBP - paidOnDate: '2020-11-05T00:00:00' - totalAmount: 250 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -34.11 - withholdingTax: [] - subTotal: 34.11 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 0 - totalAmount: 34.11 - amountDue: 0 - status: Paid - metadata: - isDeleted: false - - id: '21974783' - invoiceNumber: '023' - customerRef: - id: '6162023' - companyName: Alderley plc - salesOrderRefs: [] - issueDate: '2017-01-09T00:00:00' - dueDate: '2017-02-08T00:00:00' - modifiedDate: '2023-04-25T14:19:19Z' - sourceModifiedDate: '2023-02-06T15:31:38Z' - paidOnDate: '2023-02-06T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Laptop - unitAmount: 500 - quantity: 22 - discountAmount: 0 - subTotal: 11000 - taxAmount: 0 - totalAmount: 11000 - accountRef: - id: '001' - name: Sales - trackingCategoryRefs: [] - isDirectIncome: false - - description: Tax - unitAmount: 0 - quantity: 1 - discountAmount: 0 - subTotal: 0 - taxAmount: 0 - totalAmount: 0 - trackingCategoryRefs: [] - isDirectIncome: false - paymentAllocations: - - payment: - id: '154350605' - note: Test Push Transaction OTHER �123.46 - Invoice receipt against 023 - Invoice receipt against 023 - currency: GBP - paidOnDate: '2018-08-26T00:00:00' - totalAmount: 123.46 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -2 - - payment: - id: '154350605' - note: Test Push Transaction OTHER �123.46 - Invoice receipt against 023 - Invoice receipt against 023 - currency: GBP - paidOnDate: '2018-08-26T00:00:00' - totalAmount: 123.46 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -5 - - payment: - id: '214509356' - note: �0.01 - Invoice receipt against 023 - currency: GBP - paidOnDate: '2019-11-18T00:00:00' - totalAmount: 0.01 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -0.01 - - payment: - id: '214338075' - note: �0.01 - Invoice receipt against 023 - currency: GBP - paidOnDate: '2019-11-18T00:00:00' - totalAmount: 0.01 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -0.01 - - payment: - id: '214327399' - note: �0.01 - Invoice receipt against 023 - currency: GBP - paidOnDate: '2019-11-18T00:00:00' - totalAmount: 0.01 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -0.01 - - payment: - id: '214327371' - note: �0.01 - Invoice receipt against 023 - currency: GBP - paidOnDate: '2019-11-18T00:00:00' - totalAmount: 0.01 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -0.01 - - payment: - id: '214672049' - note: �0.01 - Invoice receipt against 023 - currency: GBP - paidOnDate: '2019-11-22T00:00:00' - totalAmount: 0.01 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -0.01 - - payment: - id: '214671769' - note: �0.01 - Invoice receipt against 023 - currency: GBP - paidOnDate: '2019-11-22T00:00:00' - totalAmount: 0.01 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -0.01 - - payment: - id: '214671495' - note: �0.01 - Invoice receipt against 023 - currency: GBP - paidOnDate: '2019-11-22T00:00:00' - totalAmount: 0.01 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -0.01 - - payment: - id: '214671482' - note: �0.01 - Invoice receipt against 023 - currency: GBP - paidOnDate: '2019-11-22T00:00:00' - totalAmount: 0.01 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -0.01 - - payment: - id: '214671308' - note: �0.01 - Invoice receipt against 023 - currency: GBP - paidOnDate: '2019-11-22T00:00:00' - totalAmount: 0.01 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -0.01 - - payment: - id: '216167014' - note: �0.01 - Invoice receipt against 023 - currency: GBP - paidOnDate: '2019-11-18T00:00:00' - totalAmount: 0.01 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -0.01 - - payment: - id: '215687795' - note: �0.01 - Invoice receipt against 023 - currency: GBP - paidOnDate: '2019-11-18T00:00:00' - totalAmount: 0.01 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -0.01 - - payment: - id: '216167064' - note: �0.01 - Invoice receipt against 023 - currency: GBP - paidOnDate: '2019-12-02T00:00:00' - totalAmount: 0.01 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -0.01 - - payment: - id: '256992092' - note: �0.01 - Invoice receipt against 023 - currency: GBP - paidOnDate: '2019-11-18T00:00:00' - totalAmount: 0.01 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -0.01 - - payment: - id: '256991833' - note: �0.01 - Invoice receipt against 023 - currency: GBP - paidOnDate: '2019-11-18T00:00:00' - totalAmount: 0.01 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -0.01 - - payment: - id: '256991177' - note: �0.01 - Invoice receipt against 023 - currency: GBP - paidOnDate: '2019-11-18T00:00:00' - totalAmount: 0.01 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -0.01 - - payment: - id: '256987893' - note: �0.01 - Invoice receipt against 023 - currency: GBP - paidOnDate: '2019-11-18T00:00:00' - totalAmount: 0.01 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -0.01 - - payment: - id: '256987069' - note: �0.01 - Invoice receipt against 023 - currency: GBP - paidOnDate: '2019-11-18T00:00:00' - totalAmount: 0.01 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -0.01 - - payment: - id: '256983353' - note: �0.01 - Invoice receipt against 023 - currency: GBP - paidOnDate: '2019-11-18T00:00:00' - totalAmount: 0.01 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -0.01 - - payment: - id: '256982947' - note: �0.01 - Invoice receipt against 023 - currency: GBP - paidOnDate: '2019-11-18T00:00:00' - totalAmount: 0.01 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -0.01 - - payment: - id: '256955690' - note: �0.01 - Invoice receipt against 023 - currency: GBP - paidOnDate: '2019-11-18T00:00:00' - totalAmount: 0.01 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -0.01 - - payment: - id: '256953648' - note: �0.01 - Invoice receipt against 023 - currency: GBP - paidOnDate: '2019-11-18T00:00:00' - totalAmount: 0.01 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -0.01 - - payment: - id: '216464177' - note: �0.01 - Invoice receipt against 023 - currency: GBP - paidOnDate: '2019-11-18T00:00:00' - totalAmount: 0.01 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -0.01 - - payment: - id: '216453277' - note: �0.01 - Invoice receipt against 023 - currency: GBP - paidOnDate: '2019-11-18T00:00:00' - totalAmount: 0.01 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -0.01 - - payment: - id: '216453273' - note: �0.01 - Invoice receipt against 023 - currency: GBP - paidOnDate: '2019-11-18T00:00:00' - totalAmount: 0.01 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -0.01 - - payment: - id: '216168092' - note: �0.01 - Invoice receipt against 023 - currency: GBP - paidOnDate: '2019-11-18T00:00:00' - totalAmount: 0.01 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -0.01 - - payment: - id: '216168080' - note: �0.01 - Invoice receipt against 023 - currency: GBP - paidOnDate: '2019-11-18T00:00:00' - totalAmount: 0.01 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -0.01 - - payment: - id: '260537850' - note: E2E Test transaction 19 DEBIT �250.00 - E2 E Test Transaction 19 - E2 E Test Transaction 19 - Invoice receipt against 023 - currency: GBP - paidOnDate: '2020-10-23T00:00:00' - totalAmount: 235 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -225 - - payment: - id: '413909805' - note: �1.00 - Invoice receipt against 023 - currency: GBP - paidOnDate: '2023-02-06T00:00:00' - totalAmount: 1 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -1 - withholdingTax: [] - subTotal: 11000 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 0 - totalAmount: 11000 - amountDue: 10766.74 - status: PartiallyPaid - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 1449 - _links: - current: - href: /companies/071ad738-68f3-4561-afd0-69bab9df0803/data/invoices?page=1&pageSize=2 - self: - href: /companies/071ad738-68f3-4561-afd0-69bab9df0803/data/invoices - next: - href: /companies/071ad738-68f3-4561-afd0-69bab9df0803/data/invoices?page=2&pageSize=2 - FreshBooks: - value: - results: - - id: '2596455' - invoiceNumber: test-AL - customerRef: - id: '602174' - companyName: ab1 - salesOrderRefs: [] - issueDate: '1987-10-01T00:00:00' - dueDate: '1987-10-01T00:00:00' - modifiedDate: '2023-03-24T16:07:23Z' - sourceModifiedDate: '2023-03-03T09:27:42' - paidOnDate: '2023-03-03T00:00:00' - currency: USD - lineItems: - - description: Editing creative writing for a client - unitAmount: 222.88 - quantity: 1 - discountAmount: 0 - subTotal: 222.88 - taxAmount: 0 - totalAmount: 222.88 - itemRef: - id: '639579' - name: Creative Writing Editorial - trackingCategoryRefs: [] - isDirectIncome: false - - description: '' - unitAmount: 0 - quantity: 1 - discountAmount: 0 - subTotal: 0 - taxAmount: 0 - totalAmount: 0 - trackingCategoryRefs: [] - isDirectIncome: false - paymentAllocations: - - payment: - id: '2570292' - note: '' - currency: USD - paidOnDate: '2023-03-03T00:00:00' - totalAmount: 0.17 - allocation: - currency: USD - currencyRate: 1 - totalAmount: -0.17 - withholdingTax: [] - totalDiscount: 0 - subTotal: 222.88 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 0 - totalAmount: 222.88 - amountDue: 222.71 - status: Submitted - note: '' - metadata: - isDeleted: false - - id: '2396753' - invoiceNumber: '0000062' - customerRef: - id: '512927' - companyName: Wood Turnerss - salesOrderRefs: [] - issueDate: '2016-04-04T00:00:00' - dueDate: '2016-04-04T00:00:00' - modifiedDate: '2023-03-24T16:07:23Z' - sourceModifiedDate: '2021-02-24T07:34:31' - currency: GBP - lineItems: [] - paymentAllocations: [] - withholdingTax: [] - totalDiscount: 0 - subTotal: 0 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 0 - totalAmount: 0 - amountDue: 0 - status: Submitted - note: '' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 172 - _links: - current: - href: /companies/3691c49e-0db4-4172-b3ab-e4084c365013/data/invoices?page=1&pageSize=2 - self: - href: /companies/3691c49e-0db4-4172-b3ab-e4084c365013/data/invoices - next: - href: /companies/3691c49e-0db4-4172-b3ab-e4084c365013/data/invoices?page=2&pageSize=2 - KashFlow: - value: - results: - - id: '143008521' - invoiceNumber: '40' - customerRef: - id: '86832299' - companyName: Mr French Person - salesOrderRefs: [] - issueDate: '2005-12-15T00:00:00' - dueDate: '2006-01-12T00:00:00' - modifiedDate: '2022-09-30T10:29:15Z' - currency: EUR - currencyRate: 0.844737287 - lineItems: - - unitAmount: 0 - quantity: 0 - subTotal: 0 - taxAmount: 0 - totalAmount: 0 - accountRef: - id: '0' - trackingCategoryRefs: [] - isDirectIncome: false - paymentAllocations: [] - withholdingTax: [] - subTotal: 0 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 0 - totalAmount: 0 - amountDue: 0 - status: Paid - - id: '143008597' - invoiceNumber: '41' - customerRef: - id: '86832299' - companyName: Mr French Person - salesOrderRefs: [] - issueDate: '2010-01-01T00:00:00' - dueDate: '2010-01-29T00:00:00' - modifiedDate: '2022-09-30T10:29:15Z' - paidOnDate: '2020-11-03T00:00:00' - currency: EUR - currencyRate: 0.844737287 - lineItems: - - unitAmount: 0 - quantity: 0 - subTotal: 0 - taxAmount: 0 - totalAmount: 0 - accountRef: - id: '0' - trackingCategoryRefs: [] - isDirectIncome: false - paymentAllocations: - - payment: - id: '146438947' - note: '' - currency: EUR - paidOnDate: '2020-11-03T00:00:00' - totalAmount: 0 - allocation: - currency: EUR - currencyRate: 1 - totalAmount: 0 - withholdingTax: [] - subTotal: 0 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 0 - totalAmount: 0 - amountDue: 0 - status: Paid - pageNumber: 1 - pageSize: 2 - totalResults: 37 - _links: - current: - href: /companies/3a707a99-89da-4b16-a5d6-595333a16352/data/invoices?page=1&pageSize=2 - self: - href: /companies/3a707a99-89da-4b16-a5d6-595333a16352/data/invoices - next: - href: /companies/3a707a99-89da-4b16-a5d6-595333a16352/data/invoices?page=2&pageSize=2 - Oracle NetSuite: - value: - results: - - id: '416' - invoiceNumber: INV01 - customerRef: - id: '417' - companyName: 10 Breww Ltd - salesOrderRefs: [] - issueDate: '2021-04-09T00:00:00' - dueDate: '2021-04-30T00:00:00' - modifiedDate: '2022-09-20T08:16:10Z' - sourceModifiedDate: '2021-08-25T15:55:36' - paidOnDate: '2021-04-20T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Non-Recurring Services - EC - unitAmount: 100 - quantity: 1 - subTotal: 100 - totalAmount: 100 - accountRef: - id: '54' - name: Sales - itemRef: - id: '28' - name: Non-Recurring Services - EC - trackingCategoryRefs: - - id: location-1 - isDirectIncome: false - paymentAllocations: - - payment: - id: '428' - reference: 'Payment #PYMT01' - accountRef: - id: '122' - name: Undeposited Funds - currency: GBP - currencyRate: 1 - paidOnDate: '2021-04-20T00:00:00' - totalAmount: 90 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -10 - - payment: - id: '428' - reference: 'Payment #PYMT01' - accountRef: - id: '122' - name: Undeposited Funds - currency: GBP - currencyRate: 1 - paidOnDate: '2021-04-20T00:00:00' - totalAmount: 90 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -90 - withholdingTax: [] - totalDiscount: 0 - subTotal: 100 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 0 - totalAmount: 100 - amountDue: 0 - status: Paid - - id: '8529' - invoiceNumber: INV63 - customerRef: - id: '417' - companyName: 10 Breww Ltd - salesOrderRefs: [] - issueDate: '2021-04-09T00:00:00' - dueDate: '2021-04-30T00:00:00' - modifiedDate: '2022-09-20T08:16:10Z' - sourceModifiedDate: '2022-02-24T13:51:58' - paidOnDate: '2022-09-12T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Andy Test Item - unitAmount: 2 - quantity: 3 - subTotal: 6 - totalAmount: 6 - accountRef: - id: '54' - name: Sales - itemRef: - id: '143' - name: Andy Test Item - trackingCategoryRefs: - - id: classification-2 - - id: department-1 - - id: location-1 - isDirectIncome: false - - description: Non-Recurring Services - EC - unitAmount: 4 - quantity: 5 - subTotal: 20 - totalAmount: 20 - accountRef: - id: '54' - name: Sales - itemRef: - id: '28' - name: Non-Recurring Services - EC - trackingCategoryRefs: - - id: classification-2 - - id: department-1 - - id: location-1 - isDirectIncome: false - paymentAllocations: - - payment: - id: '17588' - note: Payment Example - Invoice allocation - reference: 'Payment #PYMT90' - accountRef: - id: '1' - name: Cheque Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-06-01T00:00:00' - totalAmount: 10 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -10 - - payment: - id: '17589' - note: Example - Payment of an invoice - reference: 'Payment #PYMT91' - accountRef: - id: '1' - name: Cheque Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-06-01T00:00:00' - totalAmount: 20 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -10 - - payment: - id: '24558' - note: Test Push Payments - 1 test - reference: 'Payment #PYMT109' - accountRef: - id: '1' - name: Cheque Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-09-12T00:00:00' - totalAmount: 0.1 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -0.1 - - payment: - id: '24659' - note: Test Push Payments - 1 test - reference: 'Payment #PYMT111' - accountRef: - id: '1' - name: Cheque Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-09-12T00:00:00' - totalAmount: 0.1 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -0.1 - withholdingTax: [] - totalDiscount: 0 - subTotal: 26 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 0 - totalAmount: 26 - amountDue: 5.8 - status: PartiallyPaid - pageNumber: 1 - pageSize: 2 - totalResults: 107 - _links: - current: - href: /companies/973341cc-ca0a-4a88-88de-e5954157818b/data/invoices?page=1&pageSize=2 - self: - href: /companies/973341cc-ca0a-4a88-88de-e5954157818b/data/invoices - next: - href: /companies/973341cc-ca0a-4a88-88de-e5954157818b/data/invoices?page=2&pageSize=2 - QuickBooks Desktop: - value: - results: - - id: 2453-1071526256 - invoiceNumber: '975' - customerRef: - id: 420000-1071522044 - companyName: 'Prentice, Adelaide' - salesOrderRefs: [] - issueDate: '2022-11-28T00:00:00' - dueDate: '2023-12-28T00:00:00' - modifiedDate: '2023-04-26T09:08:12Z' - sourceModifiedDate: '2023-12-16T05:06:11' - paidOnDate: '2023-01-15T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Foundation slab - prep and pouring - unitAmount: 167.5 - quantity: 1 - subTotal: 167.5 - taxAmount: 0 - totalAmount: 167.5 - taxRateRef: - id: 20000-999022286 - name: Non-Taxable Sales - itemRef: - id: 320000-1071525597 - name: Concrete Slab - trackingCategoryRefs: - - id: 10000-933272658 - name: New Construction - isDirectIncome: false - - unitAmount: 0 - quantity: 1 - subTotal: 0 - taxAmount: 0 - totalAmount: 0 - trackingCategoryRefs: [] - isDirectIncome: false - - description: Rough lumber - unitAmount: 48 - quantity: 1 - subTotal: 48 - taxAmount: 0 - totalAmount: 48 - taxRateRef: - id: 10000-999022286 - name: Taxable Sales - itemRef: - id: 1C0000-933272656 - name: 'Lumber:Rough' - trackingCategoryRefs: - - id: 10000-933272658 - name: New Construction - isDirectIncome: false - - description: Trim lumber - unitAmount: 38 - quantity: 1 - subTotal: 38 - taxAmount: 0 - totalAmount: 38 - taxRateRef: - id: 10000-999022286 - name: Taxable Sales - itemRef: - id: 1D0000-933272656 - name: 'Lumber:Trim' - trackingCategoryRefs: - - id: 10000-933272658 - name: New Construction - isDirectIncome: false - - description: Window - unitAmount: 25 - quantity: 2 - subTotal: 50 - taxAmount: 0 - totalAmount: 50 - taxRateRef: - id: 10000-999022286 - name: Taxable Sales - itemRef: - id: 1F0000-933272656 - name: Window - trackingCategoryRefs: - - id: 10000-933272658 - name: New Construction - isDirectIncome: false - - description: Flooring - unitAmount: 50 - quantity: 1 - subTotal: 50 - taxAmount: 0 - totalAmount: 50 - taxRateRef: - id: 10000-999022286 - name: Taxable Sales - itemRef: - id: 310000-1071509547 - name: Flooring - trackingCategoryRefs: - - id: 10000-933272658 - name: New Construction - isDirectIncome: false - - description: Window - unitAmount: 30 - quantity: 2 - subTotal: 60 - taxAmount: 0 - totalAmount: 60 - taxRateRef: - id: 10000-999022286 - name: Taxable Sales - itemRef: - id: 1F0000-933272656 - name: Window - trackingCategoryRefs: - - id: 10000-933272658 - name: New Construction - isDirectIncome: false - paymentAllocations: - - payment: - id: 6973-1197775625 - note: Check - 80000-933270541 - reference: '983409' - accountRef: - id: 80000-933270541 - name: Undeposited Funds - currency: GBP - currencyRate: 1 - paidOnDate: '2023-01-15T00:00:00' - totalAmount: 431.95 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -431.95 - withholdingTax: [] - totalDiscount: 0 - subTotal: 413.5 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 18.45 - totalAmount: 431.95 - amountDue: 0 - discountPercentage: 0 - status: Paid - metadata: - isDeleted: false - - id: '469E-1071530054' - invoiceNumber: '978' - customerRef: - id: 220000-933272658 - companyName: 'Melton, Johnny' - salesOrderRefs: [] - issueDate: '2022-11-30T00:00:00' - dueDate: '2023-12-30T00:00:00' - modifiedDate: '2023-04-26T09:08:12Z' - sourceModifiedDate: '2023-12-16T05:06:09' - paidOnDate: '2023-01-10T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: See attached specification for details on work below. - unitAmount: 0 - quantity: 1 - subTotal: 0 - taxAmount: 0 - totalAmount: 0 - trackingCategoryRefs: - - id: 40000-933272658 - name: Remodel - isDirectIncome: false - - unitAmount: 0 - quantity: 1 - subTotal: 0 - taxAmount: 0 - totalAmount: 0 - trackingCategoryRefs: - - id: 40000-933272658 - name: Remodel - isDirectIncome: false - - description: Installation labor - unitAmount: 45.5 - quantity: 1 - subTotal: 45.5 - taxAmount: 0 - totalAmount: 45.5 - taxRateRef: - id: 20000-999022286 - name: Non-Taxable Sales - itemRef: - id: 20000-933272655 - name: Installation - trackingCategoryRefs: - - id: 40000-933272658 - name: Remodel - isDirectIncome: false - - description: Install drywall - unitAmount: 1320 - quantity: 1 - subTotal: 1320 - taxAmount: 0 - totalAmount: 1320 - taxRateRef: - id: 20000-999022286 - name: Non-Taxable Sales - itemRef: - id: 70000-933272656 - name: 'Subs:Drywall' - trackingCategoryRefs: - - id: 40000-933272658 - name: Remodel - isDirectIncome: false - - description: Electrical work - unitAmount: 1650 - quantity: 1 - subTotal: 1650 - taxAmount: 0 - totalAmount: 1650 - taxRateRef: - id: 20000-999022286 - name: Non-Taxable Sales - itemRef: - id: 80000-933272656 - name: 'Subs:Electrical' - trackingCategoryRefs: - - id: 40000-933272658 - name: Remodel - isDirectIncome: false - - description: Metal Work - unitAmount: 660 - quantity: 1 - subTotal: 660 - taxAmount: 0 - totalAmount: 660 - taxRateRef: - id: 20000-999022286 - name: Non-Taxable Sales - itemRef: - id: A0000-933272656 - name: 'Subs:Metal Wrk' - trackingCategoryRefs: - - id: 40000-933272658 - name: Remodel - isDirectIncome: false - - description: Install insulation - unitAmount: 1100 - quantity: 1 - subTotal: 1100 - taxAmount: 0 - totalAmount: 1100 - taxRateRef: - id: 20000-999022286 - name: Non-Taxable Sales - itemRef: - id: 90000-933272656 - name: 'Subs:Insulating' - trackingCategoryRefs: - - id: 40000-933272658 - name: Remodel - isDirectIncome: false - - description: Plumbing - unitAmount: 1650 - quantity: 1 - subTotal: 1650 - taxAmount: 0 - totalAmount: 1650 - taxRateRef: - id: 20000-999022286 - name: Non-Taxable Sales - itemRef: - id: C0000-933272656 - name: 'Subs:Plumbing' - trackingCategoryRefs: - - id: 40000-933272658 - name: Remodel - isDirectIncome: false - - description: Painting - unitAmount: 2420 - quantity: 1 - subTotal: 2420 - taxAmount: 0 - totalAmount: 2420 - taxRateRef: - id: 20000-999022286 - name: Non-Taxable Sales - itemRef: - id: B0000-933272656 - name: 'Subs:Painting' - trackingCategoryRefs: - - id: 40000-933272658 - name: Remodel - isDirectIncome: false - - description: Install carpeting - unitAmount: 3300 - quantity: 1 - subTotal: 3300 - taxAmount: 0 - totalAmount: 3300 - taxRateRef: - id: 20000-999022286 - name: Non-Taxable Sales - itemRef: - id: 60000-933272656 - name: 'Subs:Carpet' - trackingCategoryRefs: - - id: 40000-933272658 - name: Remodel - isDirectIncome: false - - description: Custom Bay Window - unitAmount: 1925 - quantity: 1 - subTotal: 1925 - taxAmount: 0 - totalAmount: 1925 - taxRateRef: - id: 10000-999022286 - name: Taxable Sales - itemRef: - id: 1F0000-933272656 - name: Window - trackingCategoryRefs: - - id: 40000-933272658 - name: Remodel - isDirectIncome: false - - description: Window - unitAmount: 115.5 - quantity: 1 - subTotal: 115.5 - taxAmount: 0 - totalAmount: 115.5 - taxRateRef: - id: 10000-999022286 - name: Taxable Sales - itemRef: - id: 1F0000-933272656 - name: Window - trackingCategoryRefs: - - id: 40000-933272658 - name: Remodel - isDirectIncome: false - - description: Equipment Rental - unitAmount: 700 - quantity: 1 - subTotal: 700 - taxAmount: 0 - totalAmount: 700 - taxRateRef: - id: 20000-999022286 - name: Non-Taxable Sales - itemRef: - id: 230000-933272656 - name: Equip Rental - trackingCategoryRefs: - - id: 40000-933272658 - name: Remodel - isDirectIncome: false - - description: 10% retainage to be billed after job is complete and approved. - unitAmount: -555.5 - quantity: 1 - subTotal: -555.5 - taxAmount: 0 - totalAmount: -555.5 - taxRateRef: - id: 20000-999022286 - name: Non-Taxable Sales - itemRef: - id: 260000-933272656 - name: Retainage 1 - trackingCategoryRefs: - - id: 40000-933272658 - name: Remodel - isDirectIncome: false - paymentAllocations: - - payment: - id: 6915-1197775450 - note: Check - 80000-933270541 - reference: '19650' - accountRef: - id: 80000-933270541 - name: Undeposited Funds - currency: GBP - currencyRate: 1 - paidOnDate: '2023-01-10T00:00:00' - totalAmount: 14488.64 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -14488.64 - withholdingTax: [] - totalDiscount: 0 - subTotal: 14330.5 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 158.14 - totalAmount: 14488.64 - amountDue: 0 - discountPercentage: 0 - status: Paid - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 113 - _links: - current: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/data/invoices?page=1&pageSize=2 - self: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/data/invoices - next: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/data/invoices?page=2&pageSize=2 - QuickBooks Online: - value: - results: - - id: '16' - invoiceNumber: '1001' - customerRef: - id: '3' - companyName: Information Sharing Technology - salesOrderRefs: [] - issueDate: '2019-02-18T00:00:00' - dueDate: '2019-03-20T00:00:00' - modifiedDate: '2023-01-18T11:03:02Z' - sourceModifiedDate: '2022-09-20T10:12:08Z' - paidOnDate: '2020-06-01T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Service - unitAmount: 500 - quantity: 10 - subTotal: 5000 - taxAmount: 0 - totalAmount: 5000 - accountRef: - id: '1' - name: Sales - itemRef: - id: '1' - name: Sales - trackingCategoryRefs: [] - isDirectIncome: false - paymentAllocations: - - payment: - id: '500' - note: Payments of type PrepaidPayment - reference: '498254' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-20T00:00:00' - totalAmount: 37.77 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -37.77 - - payment: - id: '507' - note: Payments of type PrepaidPayment - reference: '505288' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-20T00:00:00' - totalAmount: 62.82 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -54.62 - - payment: - id: '499' - note: Payments of type Cash - reference: '498147' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-20T00:00:00' - totalAmount: 1017 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -5.08 - - payment: - id: '491' - note: Payments of type PrepaidPayment - reference: '489239' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-18T00:00:00' - totalAmount: 48.74 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -48.74 - - payment: - id: '490' - note: Payments of type Cash - reference: '489120' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-18T00:00:00' - totalAmount: 1112.76 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -7.74 - - payment: - id: '482' - note: Payments of type PrepaidPayment - reference: '480242' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-17T00:00:00' - totalAmount: 33.9 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -33.9 - - payment: - id: '481' - note: Payments of type Cash - reference: '480129' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-17T00:00:00' - totalAmount: 965.85 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -10.21 - - payment: - id: '470' - note: Payments of type PrepaidPayment - reference: '468248' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-13T00:00:00' - totalAmount: 67.83 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -41.38 - - payment: - id: '463' - note: Payments of type PrepaidPayment - reference: '461243' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-13T00:00:00' - totalAmount: 7.47 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -7.47 - - payment: - id: '462' - note: Payments of type Cash - reference: '461144' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-13T00:00:00' - totalAmount: 914.05 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -34.76 - - payment: - id: '456' - note: Payments of type PrepaidPayment - reference: '454252' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-11T00:00:00' - totalAmount: 70.44 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -33.72 - - payment: - id: '447' - note: Payments of type PrepaidPayment - reference: '445278' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-11T00:00:00' - totalAmount: 24.95 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -24.95 - - payment: - id: '446' - note: Payments of type Cash - reference: '44518' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-11T00:00:00' - totalAmount: 904.82 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -17.96 - - payment: - id: '438' - note: Payments of type PrepaidPayment - reference: '436234' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-10T00:00:00' - totalAmount: 6.03 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -6.03 - - payment: - id: '437' - note: Payments of type Cash - reference: '436168' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-10T00:00:00' - totalAmount: 760.05 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -31.48 - - payment: - id: '647' - note: Payments of type PrepaidPayment - reference: '645263' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-03-20T00:00:00' - totalAmount: 40.43 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -0.01 - - payment: - id: '429' - note: Payments of type PrepaidPayment - reference: '427270' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-09T00:00:00' - totalAmount: 56.75 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -28.75 - - payment: - id: '420' - note: Payments of type PrepaidPayment - reference: '418258' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-08T00:00:00' - totalAmount: 8.92 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -8.92 - - payment: - id: '419' - note: Payments of type Cash - reference: '418157' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-08T00:00:00' - totalAmount: 407.2 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -2.55 - - payment: - id: '705' - note: Payments of type PrepaidPayment - reference: '703246' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-04-03T00:00:00' - totalAmount: 25 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -25 - - payment: - id: '411' - note: Payments of type PrepaidPayment - reference: '409292' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-07T00:00:00' - totalAmount: 6.22 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -6.22 - - payment: - id: '410' - note: Payments of type Cash - reference: '409145' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-07T00:00:00' - totalAmount: 725.48 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -33.79 - - payment: - id: '772' - note: Payments of type PrepaidPayment - reference: '770263' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-04-24T00:00:00' - totalAmount: 10.35 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -0.01 - - payment: - id: '779' - note: Payments of type PrepaidPayment - reference: '777217' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-04-24T00:00:00' - totalAmount: 39.55 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -0.01 - - payment: - id: '792' - note: Payments of type PrepaidPayment - reference: '790262' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-04-29T00:00:00' - totalAmount: 12.46 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -0.01 - - payment: - id: '402' - note: Payments of type PrepaidPayment - reference: '400275' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-06T00:00:00' - totalAmount: 32.88 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -29.29 - - payment: - id: '393' - note: Payments of type PrepaidPayment - reference: '391247' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-05T00:00:00' - totalAmount: 16.73 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -16.73 - - payment: - id: '392' - note: Payments of type Cash - reference: '391115' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-05T00:00:00' - totalAmount: 1094.8 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -47.35 - - payment: - id: '386' - note: Payments of type PrepaidPayment - reference: '384213' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-04T00:00:00' - totalAmount: 9.99 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -9.99 - - payment: - id: '385' - note: Payments of type Cash - reference: '38418' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-04T00:00:00' - totalAmount: 858.41 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -13.4 - - payment: - id: '377' - note: Payments of type PrepaidPayment - reference: '375298' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-03T00:00:00' - totalAmount: 39.06 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -39.06 - - payment: - id: '376' - note: Payments of type Cash - reference: '375123' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-03T00:00:00' - totalAmount: 802.17 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -11.54 - - payment: - id: '368' - note: Payments of type PrepaidPayment - reference: '366288' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-02T00:00:00' - totalAmount: 12.15 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -12.15 - - payment: - id: '367' - note: Payments of type Cash - reference: '366195' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-02T00:00:00' - totalAmount: 827.2 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -25.4 - - payment: - id: '361' - note: Payments of type PrepaidPayment - reference: '359220' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-01T00:00:00' - totalAmount: 54.12 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -40.61 - - payment: - id: '349' - note: Payments of type PrepaidPayment - reference: '347216' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-31T00:00:00' - totalAmount: 25.32 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -25.32 - - payment: - id: '348' - note: Payments of type Cash - reference: '34710' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-31T00:00:00' - totalAmount: 949.74 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -7.07 - - payment: - id: '342' - note: Payments of type PrepaidPayment - reference: '340292' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-30T00:00:00' - totalAmount: 26.59 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -26.59 - - payment: - id: '341' - note: Payments of type Cash - reference: '340128' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-30T00:00:00' - totalAmount: 859.44 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -29.21 - - payment: - id: '333' - note: Payments of type PrepaidPayment - reference: '331236' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-30T00:00:00' - totalAmount: 17.94 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -17.58 - - payment: - id: '322' - note: Payments of type PrepaidPayment - reference: '320256' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-29T00:00:00' - totalAmount: 14.33 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -14.33 - - payment: - id: '321' - note: Payments of type Cash - reference: '320186' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-29T00:00:00' - totalAmount: 798.79 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -27.08 - - payment: - id: '313' - note: Payments of type PrepaidPayment - reference: '311211' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-29T00:00:00' - totalAmount: 45.06 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -41.47 - - payment: - id: '304' - note: Payments of type PrepaidPayment - reference: '302284' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-28T00:00:00' - totalAmount: 17.04 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -17.04 - - payment: - id: '303' - note: Payments of type Cash - reference: '302128' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-28T00:00:00' - totalAmount: 837.68 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -6.66 - - payment: - id: '297' - note: Payments of type PrepaidPayment - reference: '295264' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-27T00:00:00' - totalAmount: 14.92 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -14.92 - - payment: - id: '296' - note: Payments of type Cash - reference: '295176' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-27T00:00:00' - totalAmount: 687.33 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -4.18 - - payment: - id: '288' - note: Payments of type PrepaidPayment - reference: '286250' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-26T00:00:00' - totalAmount: 12.73 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -12.73 - - payment: - id: '287' - note: Payments of type Cash - reference: '286188' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-26T00:00:00' - totalAmount: 539.55 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -6.97 - - payment: - id: '279' - note: Payments of type PrepaidPayment - reference: '277281' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-25T00:00:00' - totalAmount: 30.58 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -30.58 - - payment: - id: '278' - note: Payments of type Cash - reference: '277153' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-25T00:00:00' - totalAmount: 1063.48 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -37.08 - - payment: - id: '270' - note: Payments of type PrepaidPayment - reference: '268269' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-24T00:00:00' - totalAmount: 11.69 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -11.69 - - payment: - id: '269' - note: Payments of type Cash - reference: '268154' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-24T00:00:00' - totalAmount: 968.21 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -48.58 - - payment: - id: '263' - note: Payments of type PrepaidPayment - reference: '261215' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-24T00:00:00' - totalAmount: 7.24 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -7.24 - - payment: - id: '262' - note: Payments of type Cash - reference: '261162' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-24T00:00:00' - totalAmount: 425.69 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -15.02 - - payment: - id: '256' - note: Payments of type PrepaidPayment - reference: '254258' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-23T00:00:00' - totalAmount: 37.68 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -16.6 - - payment: - id: '249' - note: Payments of type PrepaidPayment - reference: '247245' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-23T00:00:00' - totalAmount: 22.03 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -10.84 - - payment: - id: '240' - note: Payments of type PrepaidPayment - reference: '238213' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-23T00:00:00' - totalAmount: 47.7 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -31.98 - - payment: - id: '231' - note: Payments of type Prepaid - reference: '229276' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-23T00:00:00' - totalAmount: 38.7 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -30.52 - - payment: - id: '218' - note: Payments of type Prepaid - reference: '216237' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-22T00:00:00' - totalAmount: 19.67 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -19.67 - - payment: - id: '217' - note: Payments of type Cash - reference: '216161' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-22T00:00:00' - totalAmount: 565.24 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -1.66 - - payment: - id: '209' - note: Payments of type Prepaid - reference: '207254' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-21T00:00:00' - totalAmount: 27.62 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -27.62 - - payment: - id: '208' - note: Payments of type Cash - reference: '207189' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-21T00:00:00' - totalAmount: 914.33 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -7.86 - - payment: - id: '200' - note: Payments of type Prepaid - reference: '198234' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-20T00:00:00' - totalAmount: 18.35 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -18.35 - - payment: - id: '199' - note: Payments of type Cash - reference: '198128' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-20T00:00:00' - totalAmount: 1209.15 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -20.22 - - payment: - id: '191' - note: Payments of type Prepaid - reference: '18922' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-17T00:00:00' - totalAmount: 16.44 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -16.44 - - payment: - id: '190' - note: Payments of type Cash - reference: '189174' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-17T00:00:00' - totalAmount: 607.48 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -13.34 - - payment: - id: '182' - note: Payments of type Prepaid - reference: '180274' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-17T00:00:00' - totalAmount: 47.91 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -47.91 - - payment: - id: '181' - note: Payments of type Cash - reference: '180197' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-17T00:00:00' - totalAmount: 1087.13 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -10.04 - - payment: - id: '173' - note: Payments of type Prepaid - reference: '171213' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-15T00:00:00' - totalAmount: 35.36 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -26.29 - - payment: - id: '166' - note: Payments of type Prepaid - reference: '164260' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-15T00:00:00' - totalAmount: 39.98 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -39.98 - - payment: - id: '165' - note: Payments of type Cash - reference: '164142' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-15T00:00:00' - totalAmount: 913.09 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -18.99 - - payment: - id: '157' - note: Payments of type Prepaid - reference: '155266' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-15T00:00:00' - totalAmount: 14.32 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -4.87 - - payment: - id: '150' - note: Payments of type Prepaid - reference: '148217' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-13T00:00:00' - totalAmount: 11.57 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -11.57 - - payment: - id: '149' - note: Payments of type Cash - reference: '148151' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-13T00:00:00' - totalAmount: 643.97 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -22.26 - - payment: - id: '141' - note: Payments of type Prepaid - reference: '139288' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-13T00:00:00' - totalAmount: 27.88 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -27.88 - - payment: - id: '140' - note: Payments of type Cash - reference: '139163' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-13T00:00:00' - totalAmount: 1078.72 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -13.71 - - payment: - id: '132' - note: Payments of type Prepaid - reference: '13022' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-10T00:00:00' - totalAmount: 47.38 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -42.36 - - payment: - id: '123' - note: Payments of type Prepaid - reference: '121293' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-10T00:00:00' - totalAmount: 34.45 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -34.45 - - payment: - id: '122' - note: Payments of type Cash - reference: '121197' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-10T00:00:00' - totalAmount: 771.61 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -16.31 - - payment: - id: '116' - note: Payments of type Prepaid - reference: '114213' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-10T00:00:00' - totalAmount: 65.77 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -23.86 - - payment: - id: '521' - note: Payments of type PrepaidPayment - reference: '519243' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-20T00:00:00' - totalAmount: 14.74 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -0.01 - - payment: - id: '843' - note: Payments of type PrepaidPayment - reference: '841264' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-05-07T00:00:00' - totalAmount: 25.64 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -0.01 - - payment: - id: '850' - note: Payments of type PrepaidPayment - reference: '848254' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-05-14T00:00:00' - totalAmount: 53.68 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -0.01 - - payment: - id: '877' - note: Payments of type PrepaidPayment - reference: '875210' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-06-01T00:00:00' - totalAmount: 12.7 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -0.01 - withholdingTax: [] - totalDiscount: 0 - subTotal: 5000 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 0 - totalAmount: 5000 - amountDue: 3296.44 - status: PartiallyPaid - note: Invoice for service - - id: '17' - invoiceNumber: '1002' - customerRef: - id: '2' - companyName: Software Coperation - salesOrderRefs: [] - issueDate: '2019-02-18T00:00:00' - dueDate: '2019-03-20T00:00:00' - modifiedDate: '2023-01-18T11:03:02Z' - sourceModifiedDate: '2019-02-21T17:51:49Z' - currency: GBP - currencyRate: 1 - lineItems: - - description: IT Support - unitAmount: 80 - quantity: 40 - subTotal: 3200 - taxAmount: 0 - totalAmount: 3200 - accountRef: - id: '1' - name: Sales - itemRef: - id: '2' - name: Hours - trackingCategoryRefs: [] - isDirectIncome: false - paymentAllocations: [] - withholdingTax: [] - totalDiscount: 0 - subTotal: 3200 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 0 - totalAmount: 3200 - amountDue: 3200 - status: Submitted - pageNumber: 1 - pageSize: 2 - totalResults: 1326 - _links: - current: - href: /companies/10818b5e-6e6a-4ed4-a1c5-3e3efe626e87/data/invoices?page=1&pageSize=2 - self: - href: /companies/10818b5e-6e6a-4ed4-a1c5-3e3efe626e87/data/invoices - next: - href: /companies/10818b5e-6e6a-4ed4-a1c5-3e3efe626e87/data/invoices?page=2&pageSize=2 - QuickBooks Online Sandbox: - value: - results: - - id: '30' - invoiceNumber: '1002' - customerRef: - id: '59' - companyName: Ecker Holiday event - salesOrderRefs: [] - issueDate: '2016-01-06T00:00:00' - dueDate: '2016-02-05T00:00:00' - modifiedDate: '2023-04-26T09:36:12Z' - sourceModifiedDate: '2023-01-25T13:49:52Z' - paidOnDate: '2016-02-12T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Holiday party - gold level test v1 - unitAmount: 2000 - quantity: 1 - subTotal: 2000 - taxAmount: 400 - totalAmount: 2400 - accountRef: - id: '44' - name: Sales - taxRateRef: - id: 3_Invoices - name: 20.0% S Invoices - effectiveTaxRate: 20 - itemRef: - id: '7' - name: Gold party - trackingCategoryRefs: [] - isDirectIncome: false - - description: Venue rental - unitAmount: 10000 - quantity: 1 - subTotal: 10000 - taxAmount: 2000 - totalAmount: 12000 - accountRef: - id: '68' - name: Billable Expenses Income - taxRateRef: - id: 3_Invoices - name: 20.0% S Invoices - effectiveTaxRate: 20 - itemRef: - id: '20' - name: Venue Rental - trackingCategoryRefs: [] - isDirectIncome: false - - description: promotional items -- misc engraved items - unitAmount: 13.5 - quantity: 75 - subTotal: 1012.5 - taxAmount: 202.5 - totalAmount: 1215 - accountRef: - id: '68' - name: Billable Expenses Income - taxRateRef: - id: 3_Invoices - name: 20.0% S Invoices - effectiveTaxRate: 20 - itemRef: - id: '12' - name: Misc - trackingCategoryRefs: [] - isDirectIncome: false - paymentAllocations: - - payment: - id: '31' - note: '' - accountRef: - id: '81' - name: Current - currency: GBP - currencyRate: 1 - paidOnDate: '2016-02-12T00:00:00' - totalAmount: 15615 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -15615 - withholdingTax: [] - totalDiscount: 0 - subTotal: 13012.5 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 2602.5 - totalAmount: 15615 - amountDue: 0 - status: Paid - metadata: - isDeleted: false - - id: '3793' - invoiceNumber: 276e29c1 - customerRef: - id: '59' - companyName: Ecker Holiday event - salesOrderRefs: [] - issueDate: '2016-01-06T00:00:00' - dueDate: '2016-02-05T00:00:00' - modifiedDate: '2023-04-26T09:36:12Z' - sourceModifiedDate: '2022-08-22T13:04:50Z' - currency: GBP - currencyRate: 1 - lineItems: - - description: Holiday party - gold level test v1 - unitAmount: 2000 - quantity: 1 - subTotal: 2000 - taxAmount: 400 - totalAmount: 2400 - accountRef: - id: '44' - name: Sales - taxRateRef: - id: 3_Invoices - name: 20.0% S Invoices - effectiveTaxRate: 20 - itemRef: - id: '7' - name: Gold party - trackingCategoryRefs: [] - isDirectIncome: false - - description: Venue rental - unitAmount: 10000 - quantity: 1 - subTotal: 10000 - taxAmount: 2000 - totalAmount: 12000 - accountRef: - id: '68' - name: Billable Expenses Income - taxRateRef: - id: 3_Invoices - name: 20.0% S Invoices - effectiveTaxRate: 20 - itemRef: - id: '20' - name: Venue Rental - trackingCategoryRefs: [] - isDirectIncome: false - - description: promotional items -- misc engraved items - unitAmount: 13.5 - quantity: 75 - subTotal: 1012.5 - taxAmount: 202.5 - totalAmount: 1215 - accountRef: - id: '68' - name: Billable Expenses Income - taxRateRef: - id: 3_Invoices - name: 20.0% S Invoices - effectiveTaxRate: 20 - itemRef: - id: '12' - name: Misc - trackingCategoryRefs: [] - isDirectIncome: false - paymentAllocations: [] - withholdingTax: [] - totalDiscount: 0 - subTotal: 13012.5 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 2602.5 - totalAmount: 15615 - amountDue: 15615 - status: Submitted - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 1077 - _links: - current: - href: /companies/5a7f3597-36e1-4216-86fe-289ad36088a6/data/invoices?page=1&pageSize=2 - self: - href: /companies/5a7f3597-36e1-4216-86fe-289ad36088a6/data/invoices - next: - href: /companies/5a7f3597-36e1-4216-86fe-289ad36088a6/data/invoices?page=2&pageSize=2 - Sage 200cloud: - value: - results: - - id: '82322' - invoiceNumber: '0000000110' - customerRef: - id: A1D001 - companyName: A1 Design Services - salesOrderRefs: [] - issueDate: '2020-07-13T00:00:00Z' - dueDate: '2020-08-12T00:00:00Z' - modifiedDate: '2022-10-14T09:36:12Z' - sourceModifiedDate: '2020-07-13T11:06:40Z' - currency: GBP - currencyRate: 1 - lineItems: - - description: Tax Summary - Standard rate - unitAmount: 0 - quantity: 0 - discountAmount: 0.22 - subTotal: 0 - taxAmount: 8.67 - totalAmount: 8.67 - taxRateRef: - id: '1729' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: [] - isDirectIncome: false - - description: Goods Summary - unitAmount: 0 - quantity: 0 - discountAmount: 1.08 - subTotal: 43.34 - taxAmount: 0 - totalAmount: 43.34 - trackingCategoryRefs: [] - isDirectIncome: false - paymentAllocations: [] - withholdingTax: [] - totalDiscount: 1.3 - subTotal: 43.34 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 8.67 - totalAmount: 52.01 - amountDue: 52.01 - discountPercentage: 2.49 - status: Submitted - note: '0000000114' - - id: '83515' - invoiceNumber: '0000000111' - customerRef: - id: BRO001 - companyName: Bronson Inc - salesOrderRefs: [] - issueDate: '2020-07-15T00:00:00Z' - dueDate: '2020-08-29T00:00:00Z' - modifiedDate: '2022-10-14T09:36:12Z' - sourceModifiedDate: '2020-07-15T10:45:56Z' - currency: GBP - currencyRate: 1 - lineItems: - - description: Tax Summary - Zero rated - unitAmount: 0 - quantity: 0 - discountAmount: 0 - subTotal: 0 - taxAmount: 0 - totalAmount: 0 - taxRateRef: - id: '1728' - name: Zero rated - effectiveTaxRate: 0 - trackingCategoryRefs: [] - isDirectIncome: false - - description: Goods Summary - unitAmount: 0 - quantity: 0 - discountAmount: 3.13 - subTotal: 125 - taxAmount: 0 - totalAmount: 125 - trackingCategoryRefs: [] - isDirectIncome: false - paymentAllocations: [] - withholdingTax: [] - totalDiscount: 3.13 - subTotal: 125 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 0 - totalAmount: 125 - amountDue: 125 - discountPercentage: 2.5 - status: Submitted - note: '0000000111' - pageNumber: 1 - pageSize: 2 - totalResults: 409 - _links: - current: - href: /companies/93c21e2d-049c-4d24-b41b-57e61c30b69e/data/invoices?page=1&pageSize=2 - self: - href: /companies/93c21e2d-049c-4d24-b41b-57e61c30b69e/data/invoices - next: - href: /companies/93c21e2d-049c-4d24-b41b-57e61c30b69e/data/invoices?page=2&pageSize=2 - Sage 50 (UK): - value: - results: - - id: INV-1 - invoiceNumber: '1' - customerRef: - id: A1D001 - companyName: A1 Design Services - salesOrderRefs: [] - issueDate: '2021-01-02T00:00:00' - modifiedDate: '2023-03-30T14:42:42Z' - sourceModifiedDate: '2022-11-25T09:43:54' - paidOnDate: '2022-01-29T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: AT Mini Tower Case - unitAmount: 14.25 - quantity: 1 - discountAmount: 0 - subTotal: 14.25 - taxAmount: 2.43 - totalAmount: 16.68 - accountRef: - id: '4000' - name: Sales North - discountPercentage: 0 - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_1 - name: Sales - isDirectIncome: false - - description: Whiteboard - Drywipe (900 x 1200) - unitAmount: 19 - quantity: 4 - discountAmount: 0 - subTotal: 76 - taxAmount: 12.97 - totalAmount: 88.97 - accountRef: - id: '4000' - name: Sales North - discountPercentage: 0 - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_1 - name: Sales - isDirectIncome: false - - description: A4 Ledger Book - 5 Column - unitAmount: 7.59 - quantity: 8 - discountAmount: 0 - subTotal: 60.72 - taxAmount: 10.36 - totalAmount: 71.08 - accountRef: - id: '4000' - name: Sales North - discountPercentage: 0 - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_1 - name: Sales - isDirectIncome: false - - description: Shorthand Notebook - 80 Sheets - unitAmount: 4.27 - quantity: 20 - discountAmount: 0 - subTotal: 85.4 - taxAmount: 14.57 - totalAmount: 99.97 - accountRef: - id: '4000' - name: Sales North - discountPercentage: 0 - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_1 - name: Sales - isDirectIncome: false - - description: Calculator - Desktop - unitAmount: 9.5 - quantity: 1 - discountAmount: 0 - subTotal: 9.5 - taxAmount: 1.62 - totalAmount: 11.12 - accountRef: - id: '4000' - name: Sales North - discountPercentage: 0 - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_1 - name: Sales - isDirectIncome: false - - description: Calculator - Desktop (Printing) - unitAmount: 16.15 - quantity: 1 - discountAmount: 0 - subTotal: 16.15 - taxAmount: 2.76 - totalAmount: 18.91 - accountRef: - id: '4000' - name: Sales North - discountPercentage: 0 - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_1 - name: Sales - isDirectIncome: false - - description: Calculator - Printing Rolls - unitAmount: 5.7 - quantity: 15 - discountAmount: 0 - subTotal: 85.5 - taxAmount: 14.59 - totalAmount: 100.09 - accountRef: - id: '4000' - name: Sales North - discountPercentage: 0 - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_1 - name: Sales - isDirectIncome: false - - description: Correction Fluid - White - unitAmount: 2.37 - quantity: 7 - discountAmount: 0 - subTotal: 16.59 - taxAmount: 2.83 - totalAmount: 19.42 - accountRef: - id: '4000' - name: Sales North - discountPercentage: 0 - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_1 - name: Sales - isDirectIncome: false - - description: Envelope - White (110 x 220) Plain - unitAmount: 8.54 - quantity: 20 - discountAmount: 0 - subTotal: 170.8 - taxAmount: 29.14 - totalAmount: 199.94 - accountRef: - id: '4000' - name: Sales North - discountPercentage: 0 - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_1 - name: Sales - isDirectIncome: false - - description: Flip Chart - A1 Pad - unitAmount: 15.2 - quantity: 10 - discountAmount: 0 - subTotal: 152 - taxAmount: 25.94 - totalAmount: 177.94 - accountRef: - id: '4000' - name: Sales North - discountPercentage: 0 - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_1 - name: Sales - isDirectIncome: false - - description: Laminator Pouches - A4 - unitAmount: 11.4 - quantity: 5 - discountAmount: 0 - subTotal: 57 - taxAmount: 9.73 - totalAmount: 66.73 - accountRef: - id: '4000' - name: Sales North - discountPercentage: 0 - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_1 - name: Sales - isDirectIncome: false - - description: Mouse Mat - (241 x 203) Blue - unitAmount: 1.42 - quantity: 5 - discountAmount: 0 - subTotal: 7.1 - taxAmount: 1.21 - totalAmount: 8.31 - accountRef: - id: '4000' - name: Sales North - discountPercentage: 0 - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_1 - name: Sales - isDirectIncome: false - - description: Copy Paper - Economy Grade - unitAmount: 2.46 - quantity: 80 - discountAmount: 0 - subTotal: 196.8 - taxAmount: 33.58 - totalAmount: 230.38 - accountRef: - id: '4000' - name: Sales North - discountPercentage: 0 - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_1 - name: Sales - isDirectIncome: false - - description: Coloured Paper - Pastel Blue - unitAmount: 3.61 - quantity: 5 - discountAmount: 0 - subTotal: 18.05 - taxAmount: 3.08 - totalAmount: 21.13 - accountRef: - id: '4000' - name: Sales North - discountPercentage: 0 - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_1 - name: Sales - isDirectIncome: false - - description: Ball Point Pen - Black - unitAmount: 1.9 - quantity: 8 - discountAmount: 0 - subTotal: 15.2 - taxAmount: 2.59 - totalAmount: 17.79 - accountRef: - id: '4000' - name: Sales North - discountPercentage: 0 - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_1 - name: Sales - isDirectIncome: false - - description: Pencil - HB - unitAmount: 2.37 - quantity: 3 - discountAmount: 0 - subTotal: 7.11 - taxAmount: 1.21 - totalAmount: 8.32 - accountRef: - id: '4000' - name: Sales North - discountPercentage: 0 - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_1 - name: Sales - isDirectIncome: false - - description: Remember-Me Sticky Notes (Recycled) - unitAmount: 3.32 - quantity: 6 - discountAmount: 0 - subTotal: 19.92 - taxAmount: 3.4 - totalAmount: 23.32 - accountRef: - id: '4000' - name: Sales North - discountPercentage: 0 - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_1 - name: Sales - isDirectIncome: false - - description: Scissors - Economy - unitAmount: 2.85 - quantity: 1 - discountAmount: 0 - subTotal: 2.85 - taxAmount: 0.49 - totalAmount: 3.34 - accountRef: - id: '4000' - name: Sales North - discountPercentage: 0 - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_1 - name: Sales - isDirectIncome: false - - description: Adhesive Tape - Brown (50mm x 66m) - unitAmount: 2.66 - quantity: 5 - discountAmount: 0 - subTotal: 13.3 - taxAmount: 2.27 - totalAmount: 15.57 - accountRef: - id: '4000' - name: Sales North - discountPercentage: 0 - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_1 - name: Sales - isDirectIncome: false - - description: JP010 Jet Printer Cartridge - unitAmount: 17.1 - quantity: 5 - discountAmount: 0 - subTotal: 85.5 - taxAmount: 14.59 - totalAmount: 100.09 - accountRef: - id: '4000' - name: Sales North - discountPercentage: 0 - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_1 - name: Sales - isDirectIncome: false - - description: Letter Trays - 3 pack (Red) - unitAmount: 6.65 - quantity: 2 - discountAmount: 0 - subTotal: 13.3 - taxAmount: 2.27 - totalAmount: 15.57 - accountRef: - id: '4000' - name: Sales North - discountPercentage: 0 - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_1 - name: Sales - isDirectIncome: false - paymentAllocations: - - payment: - id: '265' - note: Sales receipt 265 linked to sales invoice inv-1. - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 1432.17 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -100.09 - - payment: - id: '265' - note: Sales receipt 265 linked to sales invoice inv-1. - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 1432.17 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -66.73 - - payment: - id: '265' - note: Sales receipt 265 linked to sales invoice inv-1. - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 1432.17 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -117.5 - - payment: - id: '265' - note: Sales receipt 265 linked to sales invoice inv-1. - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 1432.17 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -177.94 - - payment: - id: '265' - note: Sales receipt 265 linked to sales invoice inv-1. - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 1432.17 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -230.38 - - payment: - id: '265' - note: Sales receipt 265 linked to sales invoice inv-1. - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 1432.17 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -17.79 - - payment: - id: '265' - note: Sales receipt 265 linked to sales invoice inv-1. - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 1432.17 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -71.08 - - payment: - id: '265' - note: Sales receipt 265 linked to sales invoice inv-1. - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 1432.17 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -88.97 - - payment: - id: '265' - note: Sales receipt 265 linked to sales invoice inv-1. - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 1432.17 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -15.57 - - payment: - id: '265' - note: Sales receipt 265 linked to sales invoice inv-1. - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 1432.17 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -3.34 - - payment: - id: '265' - note: Sales receipt 265 linked to sales invoice inv-1. - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 1432.17 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -199.94 - - payment: - id: '265' - note: Sales receipt 265 linked to sales invoice inv-1. - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 1432.17 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -100.09 - - payment: - id: '265' - note: Sales receipt 265 linked to sales invoice inv-1. - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 1432.17 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -16.68 - - payment: - id: '265' - note: Sales receipt 265 linked to sales invoice inv-1. - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 1432.17 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -18.91 - - payment: - id: '265' - note: Sales receipt 265 linked to sales invoice inv-1. - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 1432.17 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -23.32 - - payment: - id: '265' - note: Sales receipt 265 linked to sales invoice inv-1. - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 1432.17 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -99.97 - - payment: - id: '265' - note: Sales receipt 265 linked to sales invoice inv-1. - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 1432.17 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -21.13 - - payment: - id: '265' - note: Sales receipt 265 linked to sales invoice inv-1. - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 1432.17 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -15.57 - - payment: - id: '265' - note: Sales receipt 265 linked to sales invoice inv-1. - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 1432.17 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -19.42 - - payment: - id: '265' - note: Sales receipt 265 linked to sales invoice inv-1. - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 1432.17 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -8.31 - - payment: - id: '265' - note: Sales receipt 265 linked to sales invoice inv-1. - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 1432.17 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -11.12 - - payment: - id: '265' - note: Sales receipt 265 linked to sales invoice inv-1. - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 1432.17 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -8.32 - withholdingTax: [] - totalDiscount: 0 - subTotal: 1223.04 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 209.13 - totalAmount: 1432.17 - amountDue: 0 - status: Paid - note: '' - metadata: - isDeleted: false - - id: INV-9 - invoiceNumber: '9' - customerRef: - id: KIN001 - companyName: Kinghorn & French - salesOrderRefs: [] - issueDate: '2021-01-04T00:00:00' - modifiedDate: '2023-03-30T14:42:42Z' - sourceModifiedDate: '2022-11-25T09:43:54' - paidOnDate: '2022-01-29T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: PC Combo Pack 4 - unitAmount: 765 - quantity: 5 - discountAmount: 765 - subTotal: 3060 - taxAmount: 522.11 - totalAmount: 3582.11 - accountRef: - id: '4000' - name: Sales North - discountPercentage: 20 - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_1 - name: Sales - isDirectIncome: false - - description: PC Combo Pack 5 - unitAmount: 1080 - quantity: 4 - discountAmount: 864 - subTotal: 3456 - taxAmount: 589.68 - totalAmount: 4045.68 - accountRef: - id: '4000' - name: Sales North - discountPercentage: 20 - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_1 - name: Sales - isDirectIncome: false - - description: PC Combo Pack 6 - unitAmount: 1350 - quantity: 2 - discountAmount: 540 - subTotal: 2160 - taxAmount: 368.55 - totalAmount: 2528.55 - accountRef: - id: '4000' - name: Sales North - discountPercentage: 20 - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_1 - name: Sales - isDirectIncome: false - - description: FX030 Multifunctional Fax - unitAmount: 414 - quantity: 2 - discountAmount: 165.6 - subTotal: 662.4 - taxAmount: 113.02 - totalAmount: 775.42 - accountRef: - id: '4000' - name: Sales North - discountPercentage: 20 - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_1 - name: Sales - isDirectIncome: false - - description: Copy Paper - Premium Grade - unitAmount: 3.06 - quantity: 100 - discountAmount: 61.2 - subTotal: 244.8 - taxAmount: 41.77 - totalAmount: 286.57 - accountRef: - id: '4000' - name: Sales North - discountPercentage: 20 - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_1 - name: Sales - isDirectIncome: false - paymentAllocations: - - payment: - id: '271' - note: Sales receipt 271 linked to sales invoice inv-9. - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 11123.33 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -276.57 - - payment: - id: '271' - note: Sales receipt 271 linked to sales invoice inv-9. - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 11123.33 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -765.42 - - payment: - id: '271' - note: Sales receipt 271 linked to sales invoice inv-9. - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 11123.33 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -4035.68 - - payment: - id: '271' - note: Sales receipt 271 linked to sales invoice inv-9. - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 11123.33 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -2518.55 - - payment: - id: '271' - note: Sales receipt 271 linked to sales invoice inv-9. - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 11123.33 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -3527.11 - - payment: - id: '272' - note: Sales discount 272 linked to sales invoice inv-9. - accountRef: - id: '' - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 0 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -10 - - payment: - id: '272' - note: Sales discount 272 linked to sales invoice inv-9. - accountRef: - id: '' - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 0 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -10 - - payment: - id: '272' - note: Sales discount 272 linked to sales invoice inv-9. - accountRef: - id: '' - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 0 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -10 - - payment: - id: '272' - note: Sales discount 272 linked to sales invoice inv-9. - accountRef: - id: '' - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 0 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -10 - - payment: - id: '272' - note: Sales discount 272 linked to sales invoice inv-9. - accountRef: - id: '' - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 0 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -10 - - payment: - id: '9' - note: Sales credit tx-9 linked to sales invoice inv-9. - accountRef: - id: '' - currency: GBP - currencyRate: 1 - paidOnDate: '2021-12-31T00:00:00' - totalAmount: 0 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -45 - withholdingTax: [] - totalDiscount: 2395.8 - subTotal: 9583.2 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 1635.13 - totalAmount: 11218.33 - amountDue: 0 - status: Paid - note: '' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 86 - _links: - current: - href: /companies/cf5f2a47-2990-4221-bae6-0c19c86ac304/data/invoices?page=1&pageSize=2 - self: - href: /companies/cf5f2a47-2990-4221-bae6-0c19c86ac304/data/invoices - next: - href: /companies/cf5f2a47-2990-4221-bae6-0c19c86ac304/data/invoices?page=2&pageSize=2 - Sage Business Cloud Accounting: - value: - results: - - id: b039b0a733de11e797950a57719b2edb - invoiceNumber: SI-1 - customerRef: - id: f4ff85ba33dd11e797950a57719b2edb - companyName: Widgets Limited - salesOrderRefs: [] - issueDate: '2017-05-08T00:00:00' - dueDate: '2017-06-07T00:00:00' - modifiedDate: '2022-10-24T15:03:37Z' - sourceModifiedDate: '2021-07-23T13:42:59Z' - paidOnDate: '2021-07-23T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Consulting services - unitAmount: 900 - quantity: 8 - discountAmount: 0 - subTotal: 7200 - taxAmount: 1440 - totalAmount: 8640 - accountRef: - id: 9a994b92267a11e797950a57719b2edb - name: Sales Type A - discountPercentage: 0 - taxRateRef: - id: GB_STANDARD - name: Standard 20.00% - effectiveTaxRate: 20 - itemRef: - id: a87b922b33de11e797950a57719b2edb - name: Consulting services - trackingCategoryRefs: [] - isDirectIncome: false - paymentAllocations: - - payment: - id: e1c2bd659a6111e8bad90617b3da4b8a - note: Sales credit note - currency: GBP - currencyRate: 1 - paidOnDate: '2018-08-07T00:00:00' - totalAmount: 0 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -1000 - - payment: - id: e1c2bd659a6111e8bad90617b3da4b8a - note: Sales credit note - currency: GBP - currencyRate: 1 - paidOnDate: '2018-08-07T00:00:00' - totalAmount: 0 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -1000 - - payment: - id: 579388a0215911e8b45c025132dab352 - note: Customer receipt using credit/debit card - accountRef: - id: 9a25937b267a11e797950a57719b2edb - name: Current - currency: GBP - currencyRate: 1 - paidOnDate: '2018-01-02T00:00:00' - totalAmount: 1400 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -1400 - - payment: - id: 52237e4e215911e8b45c025132dab352 - note: Customer receipt using credit/debit card - accountRef: - id: 9a25937b267a11e797950a57719b2edb - name: Current - currency: GBP - currencyRate: 1 - paidOnDate: '2018-01-02T00:00:00' - totalAmount: 4000 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -4000 - withholdingTax: [] - totalDiscount: 0 - subTotal: 7200 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 1440 - totalAmount: 8640 - amountDue: 1240 - status: PartiallyPaid - - id: 6420b3f8209611e8b45c025132dab352 - invoiceNumber: SI-2 - customerRef: - id: f4ff85ba33dd11e797950a57719b2edb - companyName: Widgets Limited - salesOrderRefs: [] - issueDate: '2018-03-05T00:00:00' - dueDate: '2018-04-04T00:00:00' - modifiedDate: '2022-10-24T15:03:37Z' - sourceModifiedDate: '2018-03-05T16:58:39Z' - paidOnDate: '2018-03-05T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Consulting services - unitAmount: 900 - quantity: 5 - discountAmount: 0 - subTotal: 4500 - taxAmount: 900 - totalAmount: 5400 - accountRef: - id: 9a994b92267a11e797950a57719b2edb - name: Sales Type A - discountPercentage: 0 - taxRateRef: - id: GB_STANDARD - name: Standard 20.00% - effectiveTaxRate: 20 - itemRef: - id: a87b922b33de11e797950a57719b2edb - name: Consulting services - trackingCategoryRefs: [] - isDirectIncome: false - paymentAllocations: - - payment: - id: 73a0490d209611e8b45c025132dab352 - note: Customer receipt using cash - PAYMENT-CASH-001 - accountRef: - id: 9a25937b267a11e797950a57719b2edb - name: Current - currency: GBP - currencyRate: 1 - paidOnDate: '2018-03-05T00:00:00' - totalAmount: 5400 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -5400 - withholdingTax: [] - totalDiscount: 0 - subTotal: 4500 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 900 - totalAmount: 5400 - amountDue: 0 - status: Paid - pageNumber: 1 - pageSize: 2 - totalResults: 10759 - _links: - current: - href: /companies/390083e2-351b-407c-a3be-55081c36c182/data/invoices?page=1&pageSize=2 - self: - href: /companies/390083e2-351b-407c-a3be-55081c36c182/data/invoices - next: - href: /companies/390083e2-351b-407c-a3be-55081c36c182/data/invoices?page=2&pageSize=2 - Sage Intacct: - value: - results: - - id: '2916' - invoiceNumber: IN0480 - customerRef: - id: '12' - companyName: MK Manufacturing - salesOrderRefs: [] - issueDate: '2021-04-22T00:00:00' - dueDate: '2021-05-22T00:00:00' - modifiedDate: '2023-04-04T16:31:54Z' - sourceModifiedDate: '2021-04-22T11:01:11Z' - paidOnDate: '2021-04-22T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - unitAmount: 100 - quantity: 1 - subTotal: 100 - taxAmount: 20 - totalAmount: 120 - accountRef: - id: '176' - name: Revenue - Services - taxRateRef: - id: '105' - name: UK Sale Services Standard Rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: CUSTOMER-12 - name: MK Manufacturing - - id: DEPARTMENT-2 - name: Services - - id: LOCATION-11 - name: Codat Test Entity - isDirectIncome: false - paymentAllocations: - - payment: - id: '2918' - note: '' - accountRef: - id: '353' - name: Current Account - currency: GBP - paidOnDate: '2021-04-22T00:00:00' - totalAmount: 120 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -120 - withholdingTax: [] - totalDiscount: 0 - subTotal: 100 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 20 - totalAmount: 120 - amountDue: 0 - status: Paid - metadata: - isDeleted: false - - id: '18827' - invoiceNumber: IN1515 - customerRef: - id: '6' - companyName: AG Insurance - salesOrderRefs: [] - issueDate: '2022-09-28T00:00:00' - dueDate: '2022-10-28T00:00:00' - modifiedDate: '2023-04-04T16:31:54Z' - sourceModifiedDate: '2022-10-05T11:02:22Z' - currency: USD - currencyRate: 0.9294 - lineItems: - - description: test desc Test05102022-1 - unitAmount: 180 - quantity: 1 - subTotal: 180 - taxAmount: 0 - totalAmount: 180 - accountRef: - id: '2' - name: Accounts Receivable - taxRateRef: - id: '58' - name: EC Sale Goods Standard Rate - effectiveTaxRate: 0 - trackingCategoryRefs: - - id: CUSTOMER-6 - name: AG Insurance - - id: DEPARTMENT-1 - name: Sales - - id: LOCATION-11 - name: Codat Test Entity - isDirectIncome: false - paymentAllocations: [] - withholdingTax: [] - totalDiscount: 0 - subTotal: 180 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 0 - totalAmount: 180 - amountDue: 180 - status: Submitted - note: test desc Test05102022-1 - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 2 - _links: - current: - href: /companies/df02b289-cb16-4964-ac4d-9fd60b04538e/data/invoices?page=1&pageSize=2 - self: - href: /companies/df02b289-cb16-4964-ac4d-9fd60b04538e/data/invoices - Wave: - value: - results: - - id: QnVzaW5lc3M6ZTI0OGQyZDctMWE5Ni00YTk4LWFkOTEtMDdlMGYyMmNhNmE2O0ludm9pY2U6NzgyNDQ4OTg1Nzc1MzE5MTYw - invoiceNumber: '1' - customerRef: - id: QnVzaW5lc3M6ZTI0OGQyZDctMWE5Ni00YTk4LWFkOTEtMDdlMGYyMmNhNmE2O0N1c3RvbWVyOjMyMzkzNTA4 - companyName: ABC Textiles - salesOrderRefs: [] - issueDate: '2019-10-17T00:00:00' - dueDate: '2019-10-17T00:00:00' - modifiedDate: '2022-11-16T18:15:23Z' - sourceModifiedDate: '2019-12-05T23:20:36Z' - paidOnDate: '2019-12-05T23:20:36Z' - currency: USD - currencyRate: 0.784736781 - lineItems: - - description: '' - unitAmount: 10 - quantity: 5 - subTotal: 50 - taxAmount: 2.5 - totalAmount: 52.5 - accountRef: - id: QWNjb3VudDo3OTE3NTA2MDA0MjQ0NTExMTU7QnVzaW5lc3M6ZTI0OGQyZDctMWE5Ni00YTk4LWFkOTEtMDdlMGYyMmNhNmE2 - name: Sales - itemRef: - id: QnVzaW5lc3M6ZTI0OGQyZDctMWE5Ni00YTk4LWFkOTEtMDdlMGYyMmNhNmE2O1Byb2R1Y3Q6MzU2NjcyNTI= - name: Golf balls - trackingCategoryRefs: [] - isDirectIncome: false - paymentAllocations: [] - withholdingTax: [] - subTotal: 50 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 2.5 - totalAmount: 52.5 - amountDue: 0 - status: Paid - - id: QnVzaW5lc3M6ZTI0OGQyZDctMWE5Ni00YTk4LWFkOTEtMDdlMGYyMmNhNmE2O0ludm9pY2U6ODgzOTc4MDA2NDIxMzUwODIx - invoiceNumber: '2' - customerRef: - id: QnVzaW5lc3M6ZTI0OGQyZDctMWE5Ni00YTk4LWFkOTEtMDdlMGYyMmNhNmE2O0N1c3RvbWVyOjM2OTkxOTYw - companyName: NIC Cookies - salesOrderRefs: [] - issueDate: '2020-03-05T00:00:00' - dueDate: '2020-03-05T00:00:00' - modifiedDate: '2022-11-16T18:15:23Z' - sourceModifiedDate: '2020-03-30T14:10:21Z' - paidOnDate: '2020-03-30T14:10:21Z' - currency: GBP - currencyRate: 1 - lineItems: - - description: Decorated cookies - unitAmount: 4 - quantity: 50 - subTotal: 200 - taxAmount: 40 - totalAmount: 240 - accountRef: - id: QWNjb3VudDo3OTE3NTA2MDA0MjQ0NTExMTU7QnVzaW5lc3M6ZTI0OGQyZDctMWE5Ni00YTk4LWFkOTEtMDdlMGYyMmNhNmE2 - name: Sales - itemRef: - id: QnVzaW5lc3M6ZTI0OGQyZDctMWE5Ni00YTk4LWFkOTEtMDdlMGYyMmNhNmE2O1Byb2R1Y3Q6NDEzNzEwOTU= - name: Cookies - trackingCategoryRefs: [] - isDirectIncome: false - paymentAllocations: [] - withholdingTax: [] - subTotal: 200 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 40 - totalAmount: 240 - amountDue: 0 - status: Paid - pageNumber: 1 - pageSize: 2 - totalResults: 19 - _links: - current: - href: /companies/0b22b59d-b4e5-4c35-b03f-88bbbcb41256/data/invoices?page=1&pageSize=2 - self: - href: /companies/0b22b59d-b4e5-4c35-b03f-88bbbcb41256/data/invoices - next: - href: /companies/0b22b59d-b4e5-4c35-b03f-88bbbcb41256/data/invoices?page=2&pageSize=2 - Xero: - value: - results: - - id: 321bfed3-2da2-4969-9358-4de97821181b - invoiceNumber: INV-001-0 - customerRef: - id: afd4093b-c655-4847-8ee2-10a4f2c3eae3 - companyName: Maddox Publishing Group - salesOrderRefs: [] - issueDate: '2021-12-20T00:00:00' - dueDate: '2022-01-17T00:00:00' - modifiedDate: '2023-03-15T20:38:11Z' - sourceModifiedDate: '2021-01-02T20:34:51' - paidOnDate: '2022-02-17T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Project management - onsite daily rate - your CRM integration project - unitAmount: 583.3333333333 - quantity: 6 - discountAmount: 0 - subTotal: 3500 - taxAmount: 700 - totalAmount: 4200 - accountRef: - id: a969500a-377c-4cea-8f2b-a4e385607fd0 - name: Other Revenue - discountPercentage: 0 - taxRateRef: - id: OUTPUT2 - name: 20% (VAT on Income) - effectiveTaxRate: 20 - itemRef: - id: aa1c5f84-4453-42fa-9c92-69d4085607c9 - name: Project management - daily rate - trackingCategoryRefs: - - id: 34b9b859-07a9-451a-b4d3-effc9946634a - name: North - isDirectIncome: false - paymentAllocations: - - payment: - id: 65b746c8-9a5d-4a95-8096-d2316fcff592 - accountRef: - id: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - name: Business Bank Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-02-17T00:00:00' - totalAmount: 4200 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -4200 - withholdingTax: [] - totalDiscount: 0 - subTotal: 3500 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 700 - totalAmount: 4200 - amountDue: 0 - status: Paid - metadata: - isDeleted: false - - id: 4b6d0c8f-10fa-42cd-a6e5-53b175e90005 - invoiceNumber: INV-0001 - customerRef: - id: a871a956-05b5-4e2a-9419-7aeb478ca647 - companyName: Ridgeway University - salesOrderRefs: [] - issueDate: '2022-02-07T00:00:00' - dueDate: '2022-02-17T00:00:00' - modifiedDate: '2023-03-15T20:38:11Z' - sourceModifiedDate: '2021-01-02T22:51:43' - paidOnDate: '2022-02-17T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Retainer for consulting work - unitAmount: 416.67 - quantity: 1 - discountAmount: 0 - subTotal: 416.67 - taxAmount: 83.33 - totalAmount: 500 - accountRef: - id: c563b607-fb0e-4d06-9ddb-76fdeef20ae3 - name: Sales - discountPercentage: 0 - taxRateRef: - id: OUTPUT2 - name: 20% (VAT on Income) - effectiveTaxRate: 20 - trackingCategoryRefs: [] - isDirectIncome: false - paymentAllocations: - - payment: - id: 8c481b70-b5d7-4de4-a7f7-9e161be2c472 - reference: '' - accountRef: - id: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - name: Business Bank Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-02-17T00:00:00' - totalAmount: 500 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -500 - withholdingTax: [] - totalDiscount: 0 - subTotal: 416.67 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 83.33 - totalAmount: 500 - amountDue: 0 - status: Paid - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 44 - _links: - current: - href: /companies/5ced9667-a310-443a-a711-958d36377141/data/invoices?page=1&pageSize=2 - self: - href: /companies/5ced9667-a310-443a-a711-958d36377141/data/invoices - next: - href: /companies/5ced9667-a310-443a-a711-958d36377141/data/invoices?page=2&pageSize=2 - Zoho Books: - value: - results: - - id: '104957000000038034' - invoiceNumber: INV-102 - customerRef: - id: '104957000000037097' - companyName: Test Company - salesOrderRefs: [] - issueDate: '2020-02-06T10:54:03' - dueDate: '2020-02-17T00:00:00' - modifiedDate: '2022-10-03T08:40:37Z' - sourceModifiedDate: '2020-05-19T15:36:26' - paidOnDate: '2020-05-19T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: [] - paymentAllocations: - - payment: - id: '104957000000129048' - note: '' - reference: '9' - accountRef: - id: '104957000000000349' - name: Petty Cash - currency: GBP - currencyRate: 1 - paidOnDate: '2020-04-29T00:00:00' - totalAmount: 9000 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -9000 - - payment: - id: '104957000000137017' - note: '' - reference: '11' - accountRef: - id: '104957000000060010' - name: Abdi Test - currency: GBP - currencyRate: 1 - paidOnDate: '2020-05-19T00:00:00' - totalAmount: 9000 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -1 - withholdingTax: [] - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 0 - totalAmount: 9001 - amountDue: 0 - status: Paid - - id: '104957000000038052' - invoiceNumber: INV-104 - customerRef: - id: '104957000000037097' - companyName: Test Company - salesOrderRefs: [] - issueDate: '2020-02-06T10:54:04' - dueDate: '2020-02-17T00:00:00' - modifiedDate: '2022-10-03T08:40:37Z' - sourceModifiedDate: '2020-02-17T14:21:05' - paidOnDate: '2020-02-06T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: [] - paymentAllocations: - - payment: - id: '104957000000070175' - note: Cheque deposit - reference: '4' - accountRef: - id: '104957000000060010' - name: Abdi Test - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-06T00:00:00' - totalAmount: 9001 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -9001 - withholdingTax: [] - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 0 - totalAmount: 9001 - amountDue: 0 - status: Paid - pageNumber: 1 - pageSize: 2 - totalResults: 48 - _links: - current: - href: /companies/d0b68840-db50-4bc3-b88c-96e225333fea/data/invoices?page=1&pageSize=2 - self: - href: /companies/d0b68840-db50-4bc3-b88c-96e225333fea/data/invoices - next: - href: /companies/d0b68840-db50-4bc3-b88c-96e225333fea/data/invoices?page=2&pageSize=2 - '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' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - '/companies/{companyId}/data/invoices/{invoiceId}': - parameters: - - $ref: '#/components/parameters/companyId' - get: - tags: - - Accounts receivable - parameters: - - $ref: '#/components/parameters/accountingInvoiceId' - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/AccountingInvoice' - examples: - Clear Books: - value: - id: 2518ca08-5e2a-4630-8cee-a6bcd1625660 - invoiceNumber: TKj7oD38 - customerRef: - id: d65ac505-072c-49ec-be3c-3cb74228966d - companyName: Jensen Steuber - salesOrderRefs: [] - issueDate: '2022-04-25T13:04:02' - dueDate: '2022-04-25T13:04:02' - modifiedDate: '2023-04-26T12:38:17Z' - sourceModifiedDate: '2023-01-28T14:41:02' - paidOnDate: '2022-04-25T13:04:02' - currency: GBP - currencyRate: 1 - lineItems: - - description: Heavy Duty Hinged Gully Grating x4.00 - unitAmount: 402.89 - quantity: 4 - subTotal: 1611.56 - taxAmount: 161.16 - totalAmount: 1772.72 - accountRef: - id: dbcaf288-2b39-4b95-8ab3-42202ab15918 - name: Business Current Account - taxRateRef: - id: 6c88aff3-7cb9-4980-a3d3-443e72e02498 - name: Sales Tax (10%) - effectiveTaxRate: 10 - itemRef: - id: 3abf0883-03f7-44c6-bc15-1372522d25e1 - name: Heavy Duty Hinged Gully Grating - trackingCategoryRefs: - - id: costcode_9 - name: PandaConstruction - isDirectIncome: true - paymentAllocations: - - payment: - id: 9407d5ee-893a-4547-bd89-bc7b795ee774 - note: Payment against invoice 2518ca08-5e2a-4630-8cee-a6bcd1625660 - reference: 2518ca08-5e2a-4630-8cee-a6bcd1625660 - accountRef: - id: dbcaf288-2b39-4b95-8ab3-42202ab15918 - name: Business Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-04-25T13:04:02' - totalAmount: 1772.72 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2022-04-25T13:04:02' - totalAmount: -1772.72 - withholdingTax: [] - totalDiscount: 0 - subTotal: 1611.56 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 161.16 - totalAmount: 1772.72 - amountDue: 0 - discountPercentage: 0 - status: Paid - metadata: - isDeleted: false - Dynamics 365 Business Central: - value: - id: 18c906bf-89d1-ea11-bbaa-000d3a2b9185 - invoiceNumber: '103001' - customerRef: - id: b61217b3-89d1-ea11-bbaa-000d3a2b9185 - companyName: Trey Researches - salesOrderRefs: [] - issueDate: '2019-01-15T00:00:00' - dueDate: '2019-01-15T00:00:00' - modifiedDate: '2023-03-27T14:21:25Z' - sourceModifiedDate: '2022-05-17T16:29:00Z' - paidOnDate: '2019-01-15T00:00:00' - currency: GBP - lineItems: - - description: AMSTERDAM Lamp - unitAmount: 35.6 - quantity: 3 - discountAmount: 0 - subTotal: 106.8 - taxAmount: 21.36 - totalAmount: 128.16 - 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-d41217b3-89d1-ea11-bbaa-000d3a2b9185-DOMESTIC-DOMESTIC - name: 'AMSTERDAM Lamp / General Business Posting Group: ''DOMESTIC'' / VAT Business Posting Group: ''DOMESTIC''' - trackingCategoryRefs: [] - isDirectIncome: false - paymentAllocations: - - payment: - id: e0299ced-89d1-ea11-bbaa-000d3a2b9185 - note: Invoice 102001 - reference: 'Document No: 103001' - accountRef: - id: 621217b3-89d1-ea11-bbaa-000d3a2b9185 - name: Petty Cash - currency: GBP - currencyRate: 1 - paidOnDate: '2019-01-15T00:00:00' - totalAmount: 128.16 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2019-01-15T00:00:00' - totalAmount: -128.16 - withholdingTax: [] - totalDiscount: 0 - subTotal: 106.8 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 21.36 - totalAmount: 128.16 - amountDue: 0 - discountPercentage: 0 - status: Paid - note: '' - metadata: - isDeleted: false - Exact (Netherlands): - value: - id: 91dccc63-b1af-4363-bee0-2aec6bab1bef - invoiceNumber: '19700002' - customerRef: - id: c3bf08a3-4d51-4859-acbb-5075f9484f87 - companyName: Mr Abe - salesOrderRefs: [] - issueDate: '2019-11-08T00:00:00Z' - dueDate: '2019-11-29T00:00:00Z' - modifiedDate: '2022-10-26T13:57:52Z' - sourceModifiedDate: '2019-11-08T11:56:22Z' - currency: EUR - currencyRate: 1 - lineItems: - - description: Consultancy per uur - Consultancy per uur - unitAmount: 75 - quantity: 8 - discountAmount: 0 - subTotal: 600 - taxAmount: 0 - totalAmount: 600 - accountRef: - id: 2421e8a0-5355-4ec0-af11-021fe4f39fcd - name: Omzet binnenland hoog tarief - trackingCategoryRefs: [] - isDirectIncome: false - paymentAllocations: [] - withholdingTax: [] - subTotal: 600 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 0 - totalAmount: 600 - amountDue: 599 - discountPercentage: 0 - status: PartiallyPaid - Exact (UK): - value: - id: a05d1256-f253-46bd-aa13-c6f6a992aa47 - invoiceNumber: '17700002' - customerRef: - id: 570321bb-8b0c-49f1-a1f5-6fb1d6d94a62 - companyName: Some customer - salesOrderRefs: [] - issueDate: '2017-08-02T00:00:00Z' - dueDate: '2017-09-01T00:00:00Z' - modifiedDate: '2022-10-26T13:39:08Z' - sourceModifiedDate: '2017-08-02T18:23:43Z' - currency: GBP - currencyRate: 1 - lineItems: - - description: A bunch of stuff - A bunch of stuff - unitAmount: 100 - quantity: 1000 - discountAmount: 0 - subTotal: 100000 - taxAmount: 0 - totalAmount: 100000 - accountRef: - id: 43acd218-6a95-445f-994c-660273e0ced9 - name: Sales - trackingCategoryRefs: [] - isDirectIncome: false - paymentAllocations: [] - withholdingTax: [] - subTotal: 100000 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 0 - totalAmount: 100000 - amountDue: 0 - discountPercentage: 0 - status: Paid - FreeAgent: - value: - id: '50541736' - invoiceNumber: '2348' - customerRef: - id: '10123537' - companyName: _Test 1 - salesOrderRefs: [] - issueDate: '2016-12-30T00:00:00' - dueDate: '2016-12-30T00:00:00' - modifiedDate: '2023-04-25T14:19:19Z' - sourceModifiedDate: '2022-10-20T14:28:00Z' - paidOnDate: '2020-11-05T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: 3.0 items with VatPercentage of 0.0 - unitAmount: 25.26 - quantity: 1 - discountAmount: 0 - subTotal: 25.26 - taxAmount: 0 - totalAmount: 25.26 - accountRef: - id: '001' - name: Sales - trackingCategoryRefs: [] - isDirectIncome: false - - description: 3 service charges with 0.0% vat - unitAmount: 8.85 - quantity: 1 - discountAmount: 0 - subTotal: 8.85 - taxAmount: 0 - totalAmount: 8.85 - accountRef: - id: '001' - name: Sales - trackingCategoryRefs: [] - isDirectIncome: false - - description: Tax - unitAmount: 0 - quantity: 1 - discountAmount: 0 - subTotal: 0 - taxAmount: 0 - totalAmount: 0 - trackingCategoryRefs: [] - isDirectIncome: false - paymentAllocations: - - payment: - id: '262466203' - note: E2E Test transaction 2 CREDIT �250.00 - Invoice receipt against 2348 - currency: GBP - paidOnDate: '2020-11-05T00:00:00' - totalAmount: 250 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -34.11 - withholdingTax: [] - subTotal: 34.11 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 0 - totalAmount: 34.11 - amountDue: 0 - status: Paid - metadata: - isDeleted: false - FreshBooks: - value: - id: '2596455' - invoiceNumber: test-AL - customerRef: - id: '602174' - companyName: ab1 - salesOrderRefs: [] - issueDate: '1987-10-01T00:00:00' - dueDate: '1987-10-01T00:00:00' - modifiedDate: '2023-03-24T16:07:23Z' - sourceModifiedDate: '2023-03-03T09:27:42' - paidOnDate: '2023-03-03T00:00:00' - currency: USD - lineItems: - - description: Editing creative writing for a client - unitAmount: 222.88 - quantity: 1 - discountAmount: 0 - subTotal: 222.88 - taxAmount: 0 - totalAmount: 222.88 - itemRef: - id: '639579' - name: Creative Writing Editorial - trackingCategoryRefs: [] - isDirectIncome: false - - description: '' - unitAmount: 0 - quantity: 1 - discountAmount: 0 - subTotal: 0 - taxAmount: 0 - totalAmount: 0 - trackingCategoryRefs: [] - isDirectIncome: false - paymentAllocations: - - payment: - id: '2570292' - note: '' - currency: USD - paidOnDate: '2023-03-03T00:00:00' - totalAmount: 0.17 - allocation: - currency: USD - currencyRate: 1 - totalAmount: -0.17 - withholdingTax: [] - totalDiscount: 0 - subTotal: 222.88 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 0 - totalAmount: 222.88 - amountDue: 222.71 - status: Submitted - note: '' - metadata: - isDeleted: false - KashFlow: - value: - id: '143008521' - invoiceNumber: '40' - customerRef: - id: '86832299' - companyName: Mr French Person - salesOrderRefs: [] - issueDate: '2005-12-15T00:00:00' - dueDate: '2006-01-12T00:00:00' - modifiedDate: '2022-09-30T10:29:15Z' - currency: EUR - currencyRate: 0.844737287 - lineItems: - - unitAmount: 0 - quantity: 0 - subTotal: 0 - taxAmount: 0 - totalAmount: 0 - accountRef: - id: '0' - trackingCategoryRefs: [] - isDirectIncome: false - paymentAllocations: [] - withholdingTax: [] - subTotal: 0 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 0 - totalAmount: 0 - amountDue: 0 - status: Paid - Oracle NetSuite: - value: - id: '416' - invoiceNumber: INV01 - customerRef: - id: '417' - companyName: 10 Breww Ltd - salesOrderRefs: [] - issueDate: '2021-04-09T00:00:00' - dueDate: '2021-04-30T00:00:00' - modifiedDate: '2022-09-20T08:16:10Z' - sourceModifiedDate: '2021-08-25T15:55:36' - paidOnDate: '2021-04-20T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Non-Recurring Services - EC - unitAmount: 100 - quantity: 1 - subTotal: 100 - totalAmount: 100 - accountRef: - id: '54' - name: Sales - itemRef: - id: '28' - name: Non-Recurring Services - EC - trackingCategoryRefs: - - id: location-1 - isDirectIncome: false - paymentAllocations: - - payment: - id: '428' - reference: 'Payment #PYMT01' - accountRef: - id: '122' - name: Undeposited Funds - currency: GBP - currencyRate: 1 - paidOnDate: '2021-04-20T00:00:00' - totalAmount: 90 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -90 - - payment: - id: '428' - reference: 'Payment #PYMT01' - accountRef: - id: '122' - name: Undeposited Funds - currency: GBP - currencyRate: 1 - paidOnDate: '2021-04-20T00:00:00' - totalAmount: 90 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -10 - withholdingTax: [] - totalDiscount: 0 - subTotal: 100 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 0 - totalAmount: 100 - amountDue: 0 - status: Paid - QuickBooks Desktop: - value: - id: 2453-1071526256 - invoiceNumber: '975' - customerRef: - id: 420000-1071522044 - companyName: 'Prentice, Adelaide' - salesOrderRefs: [] - issueDate: '2022-11-28T00:00:00' - dueDate: '2023-12-28T00:00:00' - modifiedDate: '2023-04-26T09:08:12Z' - sourceModifiedDate: '2023-12-16T05:06:11' - paidOnDate: '2023-01-15T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Foundation slab - prep and pouring - unitAmount: 167.5 - quantity: 1 - subTotal: 167.5 - taxAmount: 0 - totalAmount: 167.5 - taxRateRef: - id: 20000-999022286 - name: Non-Taxable Sales - itemRef: - id: 320000-1071525597 - name: Concrete Slab - trackingCategoryRefs: - - id: 10000-933272658 - name: New Construction - isDirectIncome: false - - unitAmount: 0 - quantity: 1 - subTotal: 0 - taxAmount: 0 - totalAmount: 0 - trackingCategoryRefs: [] - isDirectIncome: false - - description: Rough lumber - unitAmount: 48 - quantity: 1 - subTotal: 48 - taxAmount: 0 - totalAmount: 48 - taxRateRef: - id: 10000-999022286 - name: Taxable Sales - itemRef: - id: 1C0000-933272656 - name: 'Lumber:Rough' - trackingCategoryRefs: - - id: 10000-933272658 - name: New Construction - isDirectIncome: false - - description: Trim lumber - unitAmount: 38 - quantity: 1 - subTotal: 38 - taxAmount: 0 - totalAmount: 38 - taxRateRef: - id: 10000-999022286 - name: Taxable Sales - itemRef: - id: 1D0000-933272656 - name: 'Lumber:Trim' - trackingCategoryRefs: - - id: 10000-933272658 - name: New Construction - isDirectIncome: false - - description: Window - unitAmount: 25 - quantity: 2 - subTotal: 50 - taxAmount: 0 - totalAmount: 50 - taxRateRef: - id: 10000-999022286 - name: Taxable Sales - itemRef: - id: 1F0000-933272656 - name: Window - trackingCategoryRefs: - - id: 10000-933272658 - name: New Construction - isDirectIncome: false - - description: Flooring - unitAmount: 50 - quantity: 1 - subTotal: 50 - taxAmount: 0 - totalAmount: 50 - taxRateRef: - id: 10000-999022286 - name: Taxable Sales - itemRef: - id: 310000-1071509547 - name: Flooring - trackingCategoryRefs: - - id: 10000-933272658 - name: New Construction - isDirectIncome: false - - description: Window - unitAmount: 30 - quantity: 2 - subTotal: 60 - taxAmount: 0 - totalAmount: 60 - taxRateRef: - id: 10000-999022286 - name: Taxable Sales - itemRef: - id: 1F0000-933272656 - name: Window - trackingCategoryRefs: - - id: 10000-933272658 - name: New Construction - isDirectIncome: false - paymentAllocations: - - payment: - id: 6973-1197775625 - note: Check - 80000-933270541 - reference: '983409' - accountRef: - id: 80000-933270541 - name: Undeposited Funds - currency: GBP - currencyRate: 1 - paidOnDate: '2023-01-15T00:00:00' - totalAmount: 431.95 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -431.95 - withholdingTax: [] - totalDiscount: 0 - subTotal: 413.5 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 18.45 - totalAmount: 431.95 - amountDue: 0 - discountPercentage: 0 - status: Paid - metadata: - isDeleted: false - QuickBooks Online: - value: - id: '16' - invoiceNumber: '1001' - customerRef: - id: '3' - companyName: Information Sharing Technology - salesOrderRefs: [] - issueDate: '2019-02-18T00:00:00' - dueDate: '2019-03-20T00:00:00' - modifiedDate: '2023-01-18T11:03:02Z' - sourceModifiedDate: '2022-09-20T10:12:08Z' - paidOnDate: '2020-06-01T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Service - unitAmount: 500 - quantity: 10 - subTotal: 5000 - taxAmount: 0 - totalAmount: 5000 - accountRef: - id: '1' - name: Sales - itemRef: - id: '1' - name: Sales - trackingCategoryRefs: [] - isDirectIncome: false - paymentAllocations: - - payment: - id: '116' - note: Payments of type Prepaid - reference: '114213' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-10T00:00:00' - totalAmount: 65.77 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -23.86 - - payment: - id: '122' - note: Payments of type Cash - reference: '121197' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-10T00:00:00' - totalAmount: 771.61 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -16.31 - - payment: - id: '123' - note: Payments of type Prepaid - reference: '121293' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-10T00:00:00' - totalAmount: 34.45 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -34.45 - - payment: - id: '132' - note: Payments of type Prepaid - reference: '13022' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-10T00:00:00' - totalAmount: 47.38 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -42.36 - - payment: - id: '140' - note: Payments of type Cash - reference: '139163' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-13T00:00:00' - totalAmount: 1078.72 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -13.71 - - payment: - id: '141' - note: Payments of type Prepaid - reference: '139288' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-13T00:00:00' - totalAmount: 27.88 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -27.88 - - payment: - id: '149' - note: Payments of type Cash - reference: '148151' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-13T00:00:00' - totalAmount: 643.97 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -22.26 - - payment: - id: '150' - note: Payments of type Prepaid - reference: '148217' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-13T00:00:00' - totalAmount: 11.57 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -11.57 - - payment: - id: '157' - note: Payments of type Prepaid - reference: '155266' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-15T00:00:00' - totalAmount: 14.32 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -4.87 - - payment: - id: '165' - note: Payments of type Cash - reference: '164142' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-15T00:00:00' - totalAmount: 913.09 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -18.99 - - payment: - id: '166' - note: Payments of type Prepaid - reference: '164260' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-15T00:00:00' - totalAmount: 39.98 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -39.98 - - payment: - id: '173' - note: Payments of type Prepaid - reference: '171213' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-15T00:00:00' - totalAmount: 35.36 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -26.29 - - payment: - id: '181' - note: Payments of type Cash - reference: '180197' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-17T00:00:00' - totalAmount: 1087.13 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -10.04 - - payment: - id: '182' - note: Payments of type Prepaid - reference: '180274' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-17T00:00:00' - totalAmount: 47.91 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -47.91 - - payment: - id: '190' - note: Payments of type Cash - reference: '189174' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-17T00:00:00' - totalAmount: 607.48 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -13.34 - - payment: - id: '191' - note: Payments of type Prepaid - reference: '18922' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-17T00:00:00' - totalAmount: 16.44 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -16.44 - - payment: - id: '199' - note: Payments of type Cash - reference: '198128' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-20T00:00:00' - totalAmount: 1209.15 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -20.22 - - payment: - id: '200' - note: Payments of type Prepaid - reference: '198234' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-20T00:00:00' - totalAmount: 18.35 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -18.35 - - payment: - id: '208' - note: Payments of type Cash - reference: '207189' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-21T00:00:00' - totalAmount: 914.33 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -7.86 - - payment: - id: '209' - note: Payments of type Prepaid - reference: '207254' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-21T00:00:00' - totalAmount: 27.62 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -27.62 - - payment: - id: '217' - note: Payments of type Cash - reference: '216161' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-22T00:00:00' - totalAmount: 565.24 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -1.66 - - payment: - id: '218' - note: Payments of type Prepaid - reference: '216237' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-22T00:00:00' - totalAmount: 19.67 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -19.67 - - payment: - id: '231' - note: Payments of type Prepaid - reference: '229276' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-23T00:00:00' - totalAmount: 38.7 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -30.52 - - payment: - id: '240' - note: Payments of type PrepaidPayment - reference: '238213' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-23T00:00:00' - totalAmount: 47.7 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -31.98 - - payment: - id: '249' - note: Payments of type PrepaidPayment - reference: '247245' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-23T00:00:00' - totalAmount: 22.03 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -10.84 - - payment: - id: '256' - note: Payments of type PrepaidPayment - reference: '254258' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-23T00:00:00' - totalAmount: 37.68 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -16.6 - - payment: - id: '262' - note: Payments of type Cash - reference: '261162' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-24T00:00:00' - totalAmount: 425.69 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -15.02 - - payment: - id: '263' - note: Payments of type PrepaidPayment - reference: '261215' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-24T00:00:00' - totalAmount: 7.24 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -7.24 - - payment: - id: '269' - note: Payments of type Cash - reference: '268154' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-24T00:00:00' - totalAmount: 968.21 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -48.58 - - payment: - id: '270' - note: Payments of type PrepaidPayment - reference: '268269' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-24T00:00:00' - totalAmount: 11.69 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -11.69 - - payment: - id: '278' - note: Payments of type Cash - reference: '277153' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-25T00:00:00' - totalAmount: 1063.48 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -37.08 - - payment: - id: '279' - note: Payments of type PrepaidPayment - reference: '277281' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-25T00:00:00' - totalAmount: 30.58 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -30.58 - - payment: - id: '287' - note: Payments of type Cash - reference: '286188' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-26T00:00:00' - totalAmount: 539.55 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -6.97 - - payment: - id: '288' - note: Payments of type PrepaidPayment - reference: '286250' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-26T00:00:00' - totalAmount: 12.73 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -12.73 - - payment: - id: '296' - note: Payments of type Cash - reference: '295176' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-27T00:00:00' - totalAmount: 687.33 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -4.18 - - payment: - id: '297' - note: Payments of type PrepaidPayment - reference: '295264' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-27T00:00:00' - totalAmount: 14.92 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -14.92 - - payment: - id: '303' - note: Payments of type Cash - reference: '302128' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-28T00:00:00' - totalAmount: 837.68 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -6.66 - - payment: - id: '304' - note: Payments of type PrepaidPayment - reference: '302284' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-28T00:00:00' - totalAmount: 17.04 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -17.04 - - payment: - id: '313' - note: Payments of type PrepaidPayment - reference: '311211' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-29T00:00:00' - totalAmount: 45.06 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -41.47 - - payment: - id: '321' - note: Payments of type Cash - reference: '320186' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-29T00:00:00' - totalAmount: 798.79 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -27.08 - - payment: - id: '322' - note: Payments of type PrepaidPayment - reference: '320256' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-29T00:00:00' - totalAmount: 14.33 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -14.33 - - payment: - id: '333' - note: Payments of type PrepaidPayment - reference: '331236' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-30T00:00:00' - totalAmount: 17.94 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -17.58 - - payment: - id: '341' - note: Payments of type Cash - reference: '340128' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-30T00:00:00' - totalAmount: 859.44 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -29.21 - - payment: - id: '342' - note: Payments of type PrepaidPayment - reference: '340292' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-30T00:00:00' - totalAmount: 26.59 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -26.59 - - payment: - id: '348' - note: Payments of type Cash - reference: '34710' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-31T00:00:00' - totalAmount: 949.74 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -7.07 - - payment: - id: '349' - note: Payments of type PrepaidPayment - reference: '347216' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-31T00:00:00' - totalAmount: 25.32 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -25.32 - - payment: - id: '361' - note: Payments of type PrepaidPayment - reference: '359220' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-01T00:00:00' - totalAmount: 54.12 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -40.61 - - payment: - id: '367' - note: Payments of type Cash - reference: '366195' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-02T00:00:00' - totalAmount: 827.2 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -25.4 - - payment: - id: '368' - note: Payments of type PrepaidPayment - reference: '366288' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-02T00:00:00' - totalAmount: 12.15 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -12.15 - - payment: - id: '376' - note: Payments of type Cash - reference: '375123' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-03T00:00:00' - totalAmount: 802.17 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -11.54 - - payment: - id: '377' - note: Payments of type PrepaidPayment - reference: '375298' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-03T00:00:00' - totalAmount: 39.06 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -39.06 - - payment: - id: '385' - note: Payments of type Cash - reference: '38418' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-04T00:00:00' - totalAmount: 858.41 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -13.4 - - payment: - id: '386' - note: Payments of type PrepaidPayment - reference: '384213' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-04T00:00:00' - totalAmount: 9.99 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -9.99 - - payment: - id: '392' - note: Payments of type Cash - reference: '391115' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-05T00:00:00' - totalAmount: 1094.8 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -47.35 - - payment: - id: '393' - note: Payments of type PrepaidPayment - reference: '391247' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-05T00:00:00' - totalAmount: 16.73 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -16.73 - - payment: - id: '402' - note: Payments of type PrepaidPayment - reference: '400275' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-06T00:00:00' - totalAmount: 32.88 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -29.29 - - payment: - id: '410' - note: Payments of type Cash - reference: '409145' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-07T00:00:00' - totalAmount: 725.48 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -33.79 - - payment: - id: '411' - note: Payments of type PrepaidPayment - reference: '409292' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-07T00:00:00' - totalAmount: 6.22 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -6.22 - - payment: - id: '419' - note: Payments of type Cash - reference: '418157' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-08T00:00:00' - totalAmount: 407.2 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -2.55 - - payment: - id: '420' - note: Payments of type PrepaidPayment - reference: '418258' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-08T00:00:00' - totalAmount: 8.92 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -8.92 - - payment: - id: '429' - note: Payments of type PrepaidPayment - reference: '427270' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-09T00:00:00' - totalAmount: 56.75 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -28.75 - - payment: - id: '437' - note: Payments of type Cash - reference: '436168' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-10T00:00:00' - totalAmount: 760.05 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -31.48 - - payment: - id: '438' - note: Payments of type PrepaidPayment - reference: '436234' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-10T00:00:00' - totalAmount: 6.03 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -6.03 - - payment: - id: '446' - note: Payments of type Cash - reference: '44518' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-11T00:00:00' - totalAmount: 904.82 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -17.96 - - payment: - id: '447' - note: Payments of type PrepaidPayment - reference: '445278' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-11T00:00:00' - totalAmount: 24.95 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -24.95 - - payment: - id: '456' - note: Payments of type PrepaidPayment - reference: '454252' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-11T00:00:00' - totalAmount: 70.44 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -33.72 - - payment: - id: '462' - note: Payments of type Cash - reference: '461144' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-13T00:00:00' - totalAmount: 914.05 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -34.76 - - payment: - id: '463' - note: Payments of type PrepaidPayment - reference: '461243' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-13T00:00:00' - totalAmount: 7.47 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -7.47 - - payment: - id: '470' - note: Payments of type PrepaidPayment - reference: '468248' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-13T00:00:00' - totalAmount: 67.83 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -41.38 - - payment: - id: '481' - note: Payments of type Cash - reference: '480129' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-17T00:00:00' - totalAmount: 965.85 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -10.21 - - payment: - id: '482' - note: Payments of type PrepaidPayment - reference: '480242' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-17T00:00:00' - totalAmount: 33.9 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -33.9 - - payment: - id: '490' - note: Payments of type Cash - reference: '489120' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-18T00:00:00' - totalAmount: 1112.76 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -7.74 - - payment: - id: '491' - note: Payments of type PrepaidPayment - reference: '489239' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-18T00:00:00' - totalAmount: 48.74 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -48.74 - - payment: - id: '499' - note: Payments of type Cash - reference: '498147' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-20T00:00:00' - totalAmount: 1017 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -5.08 - - payment: - id: '500' - note: Payments of type PrepaidPayment - reference: '498254' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-20T00:00:00' - totalAmount: 37.77 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -37.77 - - payment: - id: '507' - note: Payments of type PrepaidPayment - reference: '505288' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-20T00:00:00' - totalAmount: 62.82 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -54.62 - - payment: - id: '521' - note: Payments of type PrepaidPayment - reference: '519243' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-20T00:00:00' - totalAmount: 14.74 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -0.01 - - payment: - id: '647' - note: Payments of type PrepaidPayment - reference: '645263' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-03-20T00:00:00' - totalAmount: 40.43 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -0.01 - - payment: - id: '705' - note: Payments of type PrepaidPayment - reference: '703246' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-04-03T00:00:00' - totalAmount: 25 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -25 - - payment: - id: '772' - note: Payments of type PrepaidPayment - reference: '770263' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-04-24T00:00:00' - totalAmount: 10.35 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -0.01 - - payment: - id: '779' - note: Payments of type PrepaidPayment - reference: '777217' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-04-24T00:00:00' - totalAmount: 39.55 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -0.01 - - payment: - id: '792' - note: Payments of type PrepaidPayment - reference: '790262' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-04-29T00:00:00' - totalAmount: 12.46 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -0.01 - - payment: - id: '843' - note: Payments of type PrepaidPayment - reference: '841264' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-05-07T00:00:00' - totalAmount: 25.64 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -0.01 - - payment: - id: '850' - note: Payments of type PrepaidPayment - reference: '848254' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-05-14T00:00:00' - totalAmount: 53.68 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -0.01 - - payment: - id: '877' - note: Payments of type PrepaidPayment - reference: '875210' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-06-01T00:00:00' - totalAmount: 12.7 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -0.01 - withholdingTax: [] - totalDiscount: 0 - subTotal: 5000 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 0 - totalAmount: 5000 - amountDue: 3296.44 - status: PartiallyPaid - note: Invoice for service - QuickBooks Online Sandbox: - value: - id: '30' - invoiceNumber: '1002' - customerRef: - id: '59' - companyName: Ecker Holiday event - salesOrderRefs: [] - issueDate: '2016-01-06T00:00:00' - dueDate: '2016-02-05T00:00:00' - modifiedDate: '2023-04-26T09:36:12Z' - sourceModifiedDate: '2023-01-25T13:49:52Z' - paidOnDate: '2016-02-12T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Holiday party - gold level test v1 - unitAmount: 2000 - quantity: 1 - subTotal: 2000 - taxAmount: 400 - totalAmount: 2400 - accountRef: - id: '44' - name: Sales - taxRateRef: - id: 3_Invoices - name: 20.0% S Invoices - effectiveTaxRate: 20 - itemRef: - id: '7' - name: Gold party - trackingCategoryRefs: [] - isDirectIncome: false - - description: Venue rental - unitAmount: 10000 - quantity: 1 - subTotal: 10000 - taxAmount: 2000 - totalAmount: 12000 - accountRef: - id: '68' - name: Billable Expenses Income - taxRateRef: - id: 3_Invoices - name: 20.0% S Invoices - effectiveTaxRate: 20 - itemRef: - id: '20' - name: Venue Rental - trackingCategoryRefs: [] - isDirectIncome: false - - description: promotional items -- misc engraved items - unitAmount: 13.5 - quantity: 75 - subTotal: 1012.5 - taxAmount: 202.5 - totalAmount: 1215 - accountRef: - id: '68' - name: Billable Expenses Income - taxRateRef: - id: 3_Invoices - name: 20.0% S Invoices - effectiveTaxRate: 20 - itemRef: - id: '12' - name: Misc - trackingCategoryRefs: [] - isDirectIncome: false - paymentAllocations: - - payment: - id: '31' - note: '' - accountRef: - id: '81' - name: Current - currency: GBP - currencyRate: 1 - paidOnDate: '2016-02-12T00:00:00' - totalAmount: 15615 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -15615 - withholdingTax: [] - totalDiscount: 0 - subTotal: 13012.5 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 2602.5 - totalAmount: 15615 - amountDue: 0 - status: Paid - metadata: - isDeleted: false - Sage 200cloud: - value: - id: '82322' - invoiceNumber: '0000000110' - customerRef: - id: A1D001 - companyName: A1 Design Services - salesOrderRefs: [] - issueDate: '2020-07-13T00:00:00Z' - dueDate: '2020-08-12T00:00:00Z' - modifiedDate: '2022-10-14T09:36:12Z' - sourceModifiedDate: '2020-07-13T11:06:40Z' - currency: GBP - currencyRate: 1 - lineItems: - - description: Tax Summary - Standard rate - unitAmount: 0 - quantity: 0 - discountAmount: 0.22 - subTotal: 0 - taxAmount: 8.67 - totalAmount: 8.67 - taxRateRef: - id: '1729' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: [] - isDirectIncome: false - - description: Goods Summary - unitAmount: 0 - quantity: 0 - discountAmount: 1.08 - subTotal: 43.34 - taxAmount: 0 - totalAmount: 43.34 - trackingCategoryRefs: [] - isDirectIncome: false - paymentAllocations: [] - withholdingTax: [] - totalDiscount: 1.3 - subTotal: 43.34 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 8.67 - totalAmount: 52.01 - amountDue: 52.01 - discountPercentage: 2.49 - status: Submitted - note: '0000000114' - Sage 50 (UK): - value: - id: INV-1 - invoiceNumber: '1' - customerRef: - id: A1D001 - companyName: A1 Design Services - salesOrderRefs: [] - issueDate: '2021-01-02T00:00:00' - modifiedDate: '2023-03-30T14:42:42Z' - sourceModifiedDate: '2022-11-25T09:43:54' - paidOnDate: '2022-01-29T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: AT Mini Tower Case - unitAmount: 14.25 - quantity: 1 - discountAmount: 0 - subTotal: 14.25 - taxAmount: 2.43 - totalAmount: 16.68 - accountRef: - id: '4000' - name: Sales North - discountPercentage: 0 - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_1 - name: Sales - isDirectIncome: false - - description: Whiteboard - Drywipe (900 x 1200) - unitAmount: 19 - quantity: 4 - discountAmount: 0 - subTotal: 76 - taxAmount: 12.97 - totalAmount: 88.97 - accountRef: - id: '4000' - name: Sales North - discountPercentage: 0 - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_1 - name: Sales - isDirectIncome: false - - description: A4 Ledger Book - 5 Column - unitAmount: 7.59 - quantity: 8 - discountAmount: 0 - subTotal: 60.72 - taxAmount: 10.36 - totalAmount: 71.08 - accountRef: - id: '4000' - name: Sales North - discountPercentage: 0 - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_1 - name: Sales - isDirectIncome: false - - description: Shorthand Notebook - 80 Sheets - unitAmount: 4.27 - quantity: 20 - discountAmount: 0 - subTotal: 85.4 - taxAmount: 14.57 - totalAmount: 99.97 - accountRef: - id: '4000' - name: Sales North - discountPercentage: 0 - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_1 - name: Sales - isDirectIncome: false - - description: Calculator - Desktop - unitAmount: 9.5 - quantity: 1 - discountAmount: 0 - subTotal: 9.5 - taxAmount: 1.62 - totalAmount: 11.12 - accountRef: - id: '4000' - name: Sales North - discountPercentage: 0 - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_1 - name: Sales - isDirectIncome: false - - description: Calculator - Desktop (Printing) - unitAmount: 16.15 - quantity: 1 - discountAmount: 0 - subTotal: 16.15 - taxAmount: 2.76 - totalAmount: 18.91 - accountRef: - id: '4000' - name: Sales North - discountPercentage: 0 - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_1 - name: Sales - isDirectIncome: false - - description: Calculator - Printing Rolls - unitAmount: 5.7 - quantity: 15 - discountAmount: 0 - subTotal: 85.5 - taxAmount: 14.59 - totalAmount: 100.09 - accountRef: - id: '4000' - name: Sales North - discountPercentage: 0 - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_1 - name: Sales - isDirectIncome: false - - description: Correction Fluid - White - unitAmount: 2.37 - quantity: 7 - discountAmount: 0 - subTotal: 16.59 - taxAmount: 2.83 - totalAmount: 19.42 - accountRef: - id: '4000' - name: Sales North - discountPercentage: 0 - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_1 - name: Sales - isDirectIncome: false - - description: Envelope - White (110 x 220) Plain - unitAmount: 8.54 - quantity: 20 - discountAmount: 0 - subTotal: 170.8 - taxAmount: 29.14 - totalAmount: 199.94 - accountRef: - id: '4000' - name: Sales North - discountPercentage: 0 - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_1 - name: Sales - isDirectIncome: false - - description: Flip Chart - A1 Pad - unitAmount: 15.2 - quantity: 10 - discountAmount: 0 - subTotal: 152 - taxAmount: 25.94 - totalAmount: 177.94 - accountRef: - id: '4000' - name: Sales North - discountPercentage: 0 - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_1 - name: Sales - isDirectIncome: false - - description: Laminator Pouches - A4 - unitAmount: 11.4 - quantity: 5 - discountAmount: 0 - subTotal: 57 - taxAmount: 9.73 - totalAmount: 66.73 - accountRef: - id: '4000' - name: Sales North - discountPercentage: 0 - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_1 - name: Sales - isDirectIncome: false - - description: Mouse Mat - (241 x 203) Blue - unitAmount: 1.42 - quantity: 5 - discountAmount: 0 - subTotal: 7.1 - taxAmount: 1.21 - totalAmount: 8.31 - accountRef: - id: '4000' - name: Sales North - discountPercentage: 0 - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_1 - name: Sales - isDirectIncome: false - - description: Copy Paper - Economy Grade - unitAmount: 2.46 - quantity: 80 - discountAmount: 0 - subTotal: 196.8 - taxAmount: 33.58 - totalAmount: 230.38 - accountRef: - id: '4000' - name: Sales North - discountPercentage: 0 - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_1 - name: Sales - isDirectIncome: false - - description: Coloured Paper - Pastel Blue - unitAmount: 3.61 - quantity: 5 - discountAmount: 0 - subTotal: 18.05 - taxAmount: 3.08 - totalAmount: 21.13 - accountRef: - id: '4000' - name: Sales North - discountPercentage: 0 - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_1 - name: Sales - isDirectIncome: false - - description: Ball Point Pen - Black - unitAmount: 1.9 - quantity: 8 - discountAmount: 0 - subTotal: 15.2 - taxAmount: 2.59 - totalAmount: 17.79 - accountRef: - id: '4000' - name: Sales North - discountPercentage: 0 - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_1 - name: Sales - isDirectIncome: false - - description: Pencil - HB - unitAmount: 2.37 - quantity: 3 - discountAmount: 0 - subTotal: 7.11 - taxAmount: 1.21 - totalAmount: 8.32 - accountRef: - id: '4000' - name: Sales North - discountPercentage: 0 - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_1 - name: Sales - isDirectIncome: false - - description: Remember-Me Sticky Notes (Recycled) - unitAmount: 3.32 - quantity: 6 - discountAmount: 0 - subTotal: 19.92 - taxAmount: 3.4 - totalAmount: 23.32 - accountRef: - id: '4000' - name: Sales North - discountPercentage: 0 - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_1 - name: Sales - isDirectIncome: false - - description: Scissors - Economy - unitAmount: 2.85 - quantity: 1 - discountAmount: 0 - subTotal: 2.85 - taxAmount: 0.49 - totalAmount: 3.34 - accountRef: - id: '4000' - name: Sales North - discountPercentage: 0 - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_1 - name: Sales - isDirectIncome: false - - description: Adhesive Tape - Brown (50mm x 66m) - unitAmount: 2.66 - quantity: 5 - discountAmount: 0 - subTotal: 13.3 - taxAmount: 2.27 - totalAmount: 15.57 - accountRef: - id: '4000' - name: Sales North - discountPercentage: 0 - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_1 - name: Sales - isDirectIncome: false - - description: JP010 Jet Printer Cartridge - unitAmount: 17.1 - quantity: 5 - discountAmount: 0 - subTotal: 85.5 - taxAmount: 14.59 - totalAmount: 100.09 - accountRef: - id: '4000' - name: Sales North - discountPercentage: 0 - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_1 - name: Sales - isDirectIncome: false - - description: Letter Trays - 3 pack (Red) - unitAmount: 6.65 - quantity: 2 - discountAmount: 0 - subTotal: 13.3 - taxAmount: 2.27 - totalAmount: 15.57 - accountRef: - id: '4000' - name: Sales North - discountPercentage: 0 - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_1 - name: Sales - isDirectIncome: false - paymentAllocations: - - payment: - id: '265' - note: Sales receipt 265 linked to sales invoice inv-1. - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 1432.17 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -8.32 - - payment: - id: '265' - note: Sales receipt 265 linked to sales invoice inv-1. - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 1432.17 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -11.12 - - payment: - id: '265' - note: Sales receipt 265 linked to sales invoice inv-1. - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 1432.17 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -8.31 - - payment: - id: '265' - note: Sales receipt 265 linked to sales invoice inv-1. - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 1432.17 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -19.42 - - payment: - id: '265' - note: Sales receipt 265 linked to sales invoice inv-1. - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 1432.17 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -15.57 - - payment: - id: '265' - note: Sales receipt 265 linked to sales invoice inv-1. - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 1432.17 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -21.13 - - payment: - id: '265' - note: Sales receipt 265 linked to sales invoice inv-1. - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 1432.17 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -99.97 - - payment: - id: '265' - note: Sales receipt 265 linked to sales invoice inv-1. - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 1432.17 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -23.32 - - payment: - id: '265' - note: Sales receipt 265 linked to sales invoice inv-1. - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 1432.17 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -18.91 - - payment: - id: '265' - note: Sales receipt 265 linked to sales invoice inv-1. - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 1432.17 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -16.68 - - payment: - id: '265' - note: Sales receipt 265 linked to sales invoice inv-1. - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 1432.17 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -100.09 - - payment: - id: '265' - note: Sales receipt 265 linked to sales invoice inv-1. - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 1432.17 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -199.94 - - payment: - id: '265' - note: Sales receipt 265 linked to sales invoice inv-1. - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 1432.17 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -3.34 - - payment: - id: '265' - note: Sales receipt 265 linked to sales invoice inv-1. - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 1432.17 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -15.57 - - payment: - id: '265' - note: Sales receipt 265 linked to sales invoice inv-1. - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 1432.17 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -100.09 - - payment: - id: '265' - note: Sales receipt 265 linked to sales invoice inv-1. - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 1432.17 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -66.73 - - payment: - id: '265' - note: Sales receipt 265 linked to sales invoice inv-1. - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 1432.17 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -117.5 - - payment: - id: '265' - note: Sales receipt 265 linked to sales invoice inv-1. - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 1432.17 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -177.94 - - payment: - id: '265' - note: Sales receipt 265 linked to sales invoice inv-1. - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 1432.17 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -230.38 - - payment: - id: '265' - note: Sales receipt 265 linked to sales invoice inv-1. - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 1432.17 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -17.79 - - payment: - id: '265' - note: Sales receipt 265 linked to sales invoice inv-1. - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 1432.17 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -71.08 - - payment: - id: '265' - note: Sales receipt 265 linked to sales invoice inv-1. - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 1432.17 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -88.97 - withholdingTax: [] - totalDiscount: 0 - subTotal: 1223.04 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 209.13 - totalAmount: 1432.17 - amountDue: 0 - status: Paid - note: '' - metadata: - isDeleted: false - Sage Business Cloud Accounting: - value: - id: b039b0a733de11e797950a57719b2edb - invoiceNumber: SI-1 - customerRef: - id: f4ff85ba33dd11e797950a57719b2edb - companyName: Widgets Limited - salesOrderRefs: [] - issueDate: '2017-05-08T00:00:00' - dueDate: '2017-06-07T00:00:00' - modifiedDate: '2022-10-24T15:03:37Z' - sourceModifiedDate: '2021-07-23T13:42:59Z' - paidOnDate: '2021-07-23T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Consulting services - unitAmount: 900 - quantity: 8 - discountAmount: 0 - subTotal: 7200 - taxAmount: 1440 - totalAmount: 8640 - accountRef: - id: 9a994b92267a11e797950a57719b2edb - name: Sales Type A - discountPercentage: 0 - taxRateRef: - id: GB_STANDARD - name: Standard 20.00% - effectiveTaxRate: 20 - itemRef: - id: a87b922b33de11e797950a57719b2edb - name: Consulting services - trackingCategoryRefs: [] - isDirectIncome: false - paymentAllocations: - - payment: - id: 52237e4e215911e8b45c025132dab352 - note: Customer receipt using credit/debit card - accountRef: - id: 9a25937b267a11e797950a57719b2edb - name: Current - currency: GBP - currencyRate: 1 - paidOnDate: '2018-01-02T00:00:00' - totalAmount: 4000 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -4000 - - payment: - id: 579388a0215911e8b45c025132dab352 - note: Customer receipt using credit/debit card - accountRef: - id: 9a25937b267a11e797950a57719b2edb - name: Current - currency: GBP - currencyRate: 1 - paidOnDate: '2018-01-02T00:00:00' - totalAmount: 1400 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -1400 - - payment: - id: e1c2bd659a6111e8bad90617b3da4b8a - note: Sales credit note - currency: GBP - currencyRate: 1 - paidOnDate: '2018-08-07T00:00:00' - totalAmount: 0 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -1000 - - payment: - id: e1c2bd659a6111e8bad90617b3da4b8a - note: Sales credit note - currency: GBP - currencyRate: 1 - paidOnDate: '2018-08-07T00:00:00' - totalAmount: 0 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -1000 - withholdingTax: [] - totalDiscount: 0 - subTotal: 7200 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 1440 - totalAmount: 8640 - amountDue: 1240 - status: PartiallyPaid - Sage Intacct: - value: - id: '2916' - invoiceNumber: IN0480 - customerRef: - id: '12' - companyName: MK Manufacturing - salesOrderRefs: [] - issueDate: '2021-04-22T00:00:00' - dueDate: '2021-05-22T00:00:00' - modifiedDate: '2023-04-04T16:31:54Z' - sourceModifiedDate: '2021-04-22T11:01:11Z' - paidOnDate: '2021-04-22T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - unitAmount: 100 - quantity: 1 - subTotal: 100 - taxAmount: 20 - totalAmount: 120 - accountRef: - id: '176' - name: Revenue - Services - taxRateRef: - id: '105' - name: UK Sale Services Standard Rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: CUSTOMER-12 - name: MK Manufacturing - - id: DEPARTMENT-2 - name: Services - - id: LOCATION-11 - name: Codat Test Entity - isDirectIncome: false - paymentAllocations: - - payment: - id: '2918' - note: '' - accountRef: - id: '353' - name: Current Account - currency: GBP - paidOnDate: '2021-04-22T00:00:00' - totalAmount: 120 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -120 - withholdingTax: [] - totalDiscount: 0 - subTotal: 100 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 20 - totalAmount: 120 - amountDue: 0 - status: Paid - metadata: - isDeleted: false - Wave: - value: - id: QnVzaW5lc3M6ZTI0OGQyZDctMWE5Ni00YTk4LWFkOTEtMDdlMGYyMmNhNmE2O0ludm9pY2U6NzgyNDQ4OTg1Nzc1MzE5MTYw - invoiceNumber: '1' - customerRef: - id: QnVzaW5lc3M6ZTI0OGQyZDctMWE5Ni00YTk4LWFkOTEtMDdlMGYyMmNhNmE2O0N1c3RvbWVyOjMyMzkzNTA4 - companyName: ABC Textiles - salesOrderRefs: [] - issueDate: '2019-10-17T00:00:00' - dueDate: '2019-10-17T00:00:00' - modifiedDate: '2022-11-16T18:15:23Z' - sourceModifiedDate: '2019-12-05T23:20:36Z' - paidOnDate: '2019-12-05T23:20:36Z' - currency: USD - currencyRate: 0.784736781 - lineItems: - - description: '' - unitAmount: 10 - quantity: 5 - subTotal: 50 - taxAmount: 2.5 - totalAmount: 52.5 - accountRef: - id: QWNjb3VudDo3OTE3NTA2MDA0MjQ0NTExMTU7QnVzaW5lc3M6ZTI0OGQyZDctMWE5Ni00YTk4LWFkOTEtMDdlMGYyMmNhNmE2 - name: Sales - itemRef: - id: QnVzaW5lc3M6ZTI0OGQyZDctMWE5Ni00YTk4LWFkOTEtMDdlMGYyMmNhNmE2O1Byb2R1Y3Q6MzU2NjcyNTI= - name: Golf balls - trackingCategoryRefs: [] - isDirectIncome: false - paymentAllocations: [] - withholdingTax: [] - subTotal: 50 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 2.5 - totalAmount: 52.5 - amountDue: 0 - status: Paid - Xero: - value: - id: 321bfed3-2da2-4969-9358-4de97821181b - invoiceNumber: INV-001-0 - customerRef: - id: afd4093b-c655-4847-8ee2-10a4f2c3eae3 - companyName: Maddox Publishing Group - salesOrderRefs: [] - issueDate: '2021-12-20T00:00:00' - dueDate: '2022-01-17T00:00:00' - modifiedDate: '2023-03-15T20:38:11Z' - sourceModifiedDate: '2021-01-02T20:34:51' - paidOnDate: '2022-02-17T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Project management - onsite daily rate - your CRM integration project - unitAmount: 583.3333333333 - quantity: 6 - discountAmount: 0 - subTotal: 3500 - taxAmount: 700 - totalAmount: 4200 - accountRef: - id: a969500a-377c-4cea-8f2b-a4e385607fd0 - name: Other Revenue - discountPercentage: 0 - taxRateRef: - id: OUTPUT2 - name: 20% (VAT on Income) - effectiveTaxRate: 20 - itemRef: - id: aa1c5f84-4453-42fa-9c92-69d4085607c9 - name: Project management - daily rate - trackingCategoryRefs: - - id: 34b9b859-07a9-451a-b4d3-effc9946634a - name: North - isDirectIncome: false - paymentAllocations: - - payment: - id: 65b746c8-9a5d-4a95-8096-d2316fcff592 - accountRef: - id: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - name: Business Bank Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-02-17T00:00:00' - totalAmount: 4200 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -4200 - withholdingTax: [] - totalDiscount: 0 - subTotal: 3500 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 700 - totalAmount: 4200 - amountDue: 0 - status: Paid - metadata: - isDeleted: false - Zoho Books: - value: - id: '104957000000038034' - invoiceNumber: INV-102 - customerRef: - id: '104957000000037097' - companyName: Test Company - salesOrderRefs: [] - issueDate: '2020-02-06T10:54:03' - dueDate: '2020-02-17T00:00:00' - modifiedDate: '2022-10-03T08:40:37Z' - sourceModifiedDate: '2020-05-19T15:36:26' - paidOnDate: '2020-05-19T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: [] - paymentAllocations: - - payment: - id: '104957000000129048' - note: '' - reference: '9' - accountRef: - id: '104957000000000349' - name: Petty Cash - currency: GBP - currencyRate: 1 - paidOnDate: '2020-04-29T00:00:00' - totalAmount: 9000 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -9000 - - payment: - id: '104957000000137017' - note: '' - reference: '11' - accountRef: - id: '104957000000060010' - name: Abdi Test - currency: GBP - currencyRate: 1 - paidOnDate: '2020-05-19T00:00:00' - totalAmount: 9000 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -1 - withholdingTax: [] - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 0 - totalAmount: 9001 - amountDue: 0 - status: Paid - '401': - $ref: '#/components/responses/Unauthorized' - '402': - $ref: '#/components/responses/Payment-Required' - '403': - $ref: '#/components/responses/Forbidden' - '404': - $ref: '#/components/responses/Not-Found' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - summary: Get invoice - description: | - The *Get invoice* endpoint returns a single invoice for a given invoiceId. - - [Invoices](https://docs.codat.io/lending-api#/schemas/Invoice) are itemized records of goods sold or services provided to a customer. - - Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data). - - ### Tips and traps - - To access the `paymentAllocations` property, ensure that the `payments` data type is queued and cached in Codat before retrieving `invoices` from Codat's cache. - operationId: get-accounting-invoice - x-speakeasy-group: accounts-receivable.invoices - '/companies/{companyId}/data/invoices/{invoiceId}/pdf': - parameters: - - $ref: '#/components/parameters/companyId' - get: - tags: - - Accounts receivable - parameters: - - $ref: '#/components/parameters/accountingInvoiceId' - responses: - '200': - description: Success - content: - application/pdf: - schema: - title: Data - type: string - format: binary - '401': - $ref: '#/components/responses/Unauthorized' - '402': - $ref: '#/components/responses/Payment-Required' - '403': - $ref: '#/components/responses/Forbidden' - '404': - $ref: '#/components/responses/Not-Found' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - summary: Get invoice as PDF - description: "\uFEFFDownload invoice as a pdf." - operationId: download-accounting-invoice-pdf - x-speakeasy-name-override: download-pdf - x-speakeasy-group: accounts-receivable.invoices - '/companies/{companyId}/connections/{connectionId}/data/invoices/{invoiceId}/attachments': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - get: - tags: - - Accounts receivable - parameters: - - $ref: '#/components/parameters/accountingInvoiceId' - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/Attachments' - '401': - $ref: '#/components/responses/Unauthorized' - '402': - $ref: '#/components/responses/Payment-Required' - '403': - $ref: '#/components/responses/Forbidden' - '404': - $ref: '#/components/responses/Not-Found' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - summary: List invoice attachments - description: |- - The *List invoice attachments* endpoint returns a list of attachments available to download for given `invoiceId`. - - [Invoices](https://docs.codat.io/lending-api#/schemas/Invoice) are itemized records of goods sold or services provided to a customer. - operationId: list-accounting-invoice-attachments - x-speakeasy-group: accounts-receivable.invoices - '/companies/{companyId}/connections/{connectionId}/data/invoices/{invoiceId}/attachments/{attachmentId}': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - get: - tags: - - Accounts receivable - parameters: - - $ref: '#/components/parameters/accountingInvoiceId' - - $ref: '#/components/parameters/attachmentId' - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/AccountingAttachment' - examples: {} - '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' - summary: Get invoice attachment - description: | - The *Get invoice attachment* endpoint returns a specific attachment for a given `invoiceId` and `attachmentId`. - - [Invoices](https://docs.codat.io/lending-api#/schemas/Invoice) are itemized records of goods sold or services provided to a customer. - operationId: get-accounting-invoice-attachment - x-speakeasy-group: accounts-receivable.invoices - '/companies/{companyId}/connections/{connectionId}/data/invoices/{invoiceId}/attachments/{attachmentId}/download': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - get: - tags: - - Accounts receivable - parameters: - - $ref: '#/components/parameters/accountingInvoiceId' - - $ref: '#/components/parameters/attachmentId' - responses: - '200': - description: Success - content: - application/octet-stream: - schema: - title: Data - type: string - format: binary - '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' - summary: Download invoice attachment - description: | - The *Download invoice attachment* endpoint downloads a specific attachment for a given `invoiceId` and `attachmentId`. - - [Invoices](https://docs.codat.io/lending-api#/schemas/Invoice) are itemized records of goods sold or services provided to a customer. - operationId: download-accounting-invoice-attachment - x-speakeasy-group: accounts-receivable.invoices - '/companies/{companyId}/data/journalEntries': - parameters: - - $ref: '#/components/parameters/companyId' - get: - tags: - - Transactions - summary: List journal entries - 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/AccountingJournalEntries' - examples: - Clear Books: - value: - results: - - id: 770c89bb-3d6a-449a-9243-739378b4cd7d - postedOn: '2022-04-19T00:00:00' - createdOn: '2022-04-19T00:00:00' - journalRef: - id: 90bb7784-083b-4bcb-a534-b30756cee65d - name: General Journal - journalLines: - - description: '' - netAmount: 32095.91 - currency: GBP - accountRef: - id: ff8fdc4c-2aad-4ec1-9430-6bd201832eb3 - name: Undeposited Funds - - description: Tax for direct income c31a3778-e3ea-4d01-9281-dd2f291c8cb8 - netAmount: -2917.81 - currency: GBP - accountRef: - id: 3a872b81-d1af-4d31-9bfa-a37280b8f68c - name: VAT - - description: '' - netAmount: -29178.09 - currency: GBP - accountRef: - id: 72df89d2-512b-4455-af51-a6b563733842 - name: Sales - modifiedDate: '2023-04-26T12:38:18Z' - recordRef: - id: c31a3778-e3ea-4d01-9281-dd2f291c8cb8 - dataType: directIncomes - metadata: - isDeleted: false - - id: 9f96606f-6846-40c6-b423-9b1753458e75 - postedOn: '2022-04-19T00:00:00' - createdOn: '2022-04-19T00:00:00' - journalRef: - id: 90bb7784-083b-4bcb-a534-b30756cee65d - name: General Journal - journalLines: - - description: '' - netAmount: 188.33 - currency: GBP - accountRef: - id: ff8fdc4c-2aad-4ec1-9430-6bd201832eb3 - name: Undeposited Funds - - description: Tax for direct income 38e8c917-0afc-4583-8ffe-1b53ad601197 - netAmount: -17.12 - currency: GBP - accountRef: - id: 3a872b81-d1af-4d31-9bfa-a37280b8f68c - name: VAT - - description: '' - netAmount: -171.21 - currency: GBP - accountRef: - id: 72df89d2-512b-4455-af51-a6b563733842 - name: Sales - modifiedDate: '2023-04-26T12:38:18Z' - recordRef: - id: 38e8c917-0afc-4583-8ffe-1b53ad601197 - dataType: directIncomes - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 1862 - _links: - current: - href: /companies/354a121b-855f-4d25-90ad-0905b498c1c0/data/journalEntries?page=1&pageSize=2 - self: - href: /companies/354a121b-855f-4d25-90ad-0905b498c1c0/data/journalEntries - next: - href: /companies/354a121b-855f-4d25-90ad-0905b498c1c0/data/journalEntries?page=2&pageSize=2 - Dynamics 365 Business Central: - value: - results: - - id: START - postedOn: '2018-12-31T00:00:00' - createdOn: '2018-12-31T00:00:00' - journalRef: - id: 4caabc3e-3d64-ed11-8c34-000d3a870cba - name: DEFAULT - journalLines: - - description: Opening Entry - netAmount: -69723.14 - currency: GBP - accountRef: - id: ac1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: Retained Earnings - - description: Opening Entry - netAmount: -20000 - currency: GBP - accountRef: - id: aa1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: Share Capital - - description: Opening Entry - netAmount: -2329.42 - currency: GBP - accountRef: - id: 8a1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: Accounts Payable - - description: Opening Entry - netAmount: 3499 - currency: GBP - accountRef: - id: 6e1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: Accumulated Depreciation - - description: Opening Entry - netAmount: 5498 - currency: GBP - accountRef: - id: 6c1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: Equipment - - description: Opening Entry - netAmount: 28547.16 - currency: GBP - accountRef: - id: 6a1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: Inventory - - description: Opening Entry - netAmount: 31638.4 - currency: GBP - accountRef: - id: 641217b3-89d1-ea11-bbaa-000d3a2b9185 - name: Accounts Receivable - - description: Opening Entry - netAmount: 2870 - currency: GBP - accountRef: - id: 641217b3-89d1-ea11-bbaa-000d3a2b9185 - name: Accounts Receivable - - description: Opening Entry - netAmount: 20000 - currency: GBP - accountRef: - id: 621217b3-89d1-ea11-bbaa-000d3a2b9185 - name: Petty Cash - modifiedDate: '2023-03-27T14:21:31Z' - sourceModifiedDate: '2020-07-29T10:56:12Z' - metadata: - isDeleted: false - - id: 01-2019 - postedOn: '2019-01-01T00:00:00' - createdOn: '2019-01-01T00:00:00' - journalRef: - id: 4caabc3e-3d64-ed11-8c34-000d3a870cba - name: DEFAULT - journalLines: - - description: January 2019 - netAmount: -2000 - currency: GBP - accountRef: - id: 5e1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: Checking account - - description: January 2019 - netAmount: 1000 - currency: GBP - accountRef: - id: 401217b3-89d1-ea11-bbaa-000d3a2b9185 - name: Salaries Expense - - description: January 2019 - netAmount: 1000 - currency: GBP - accountRef: - id: 341217b3-89d1-ea11-bbaa-000d3a2b9185 - name: Rent Expense - modifiedDate: '2023-03-27T14:21:31Z' - sourceModifiedDate: '2020-07-29T10:56:12Z' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 825 - _links: - current: - href: /companies/d6849caf-c146-41be-8335-b73346e3bd84/data/journalEntries?page=1&pageSize=2 - self: - href: /companies/d6849caf-c146-41be-8335-b73346e3bd84/data/journalEntries - next: - href: /companies/d6849caf-c146-41be-8335-b73346e3bd84/data/journalEntries?page=2&pageSize=2 - Exact (Netherlands): - value: - results: - - id: 00002c0a-8061-4ad2-84fa-c879eea880a7 - createdOn: '2022-01-11T14:18:54' - updatedOn: '2022-01-11T14:18:54' - journalRef: - id: 55ff34a3-0857-4202-b7ec-a399cfc26a4e - name: Memoriaal - journalLines: - - description: 1 transactions of type CARD_PAYMENT_FEE_REFUND - netAmount: -6.94 - currency: EUR - accountRef: - id: e0217fbf-8963-4134-80ef-929d5de8612d - name: Kosten 13e maand - tracking: - recordRefs: [] - - description: 1 transactions of type CARD_PAYMENT_FEE_REFUND - netAmount: 6.94 - currency: EUR - accountRef: - id: 0166c96b-adf2-4667-a755-87e67c741f41 - name: Resultaat verkoop activa - tracking: - recordRefs: [] - modifiedDate: '2022-10-26T13:37:10Z' - sourceModifiedDate: '2022-01-11T14:18:54Z' - - id: 000154f0-e83a-4012-96a3-7db0b036b96b - createdOn: '2020-04-22T13:56:46' - updatedOn: '2020-04-22T13:56:46' - journalRef: - id: 151313ae-55b1-4ba0-b32a-e2ef6a8ce52a - name: Nominal Card - journalLines: - - description: Refunds with payment type of Cash - netAmount: -144.36 - currency: EUR - accountRef: - id: 0741cc89-e33a-4358-bcbd-3acb07b005dc - name: Nominal Card - tracking: - recordRefs: [] - - description: Refunds with payment type of Cash - netAmount: 144.36 - currency: EUR - accountRef: - id: ef2fde36-4416-4bc5-b239-315b2929348c - name: Debiteuren - tracking: - recordRefs: [] - modifiedDate: '2022-10-26T13:37:08Z' - sourceModifiedDate: '2020-04-22T13:56:46Z' - pageNumber: 1 - pageSize: 2 - totalResults: 35972 - _links: - current: - href: /companies/b83b1923-4db6-45a8-a779-b4e320c15979/data/journalEntries?page=1&pageSize=2 - self: - href: /companies/b83b1923-4db6-45a8-a779-b4e320c15979/data/journalEntries - next: - href: /companies/b83b1923-4db6-45a8-a779-b4e320c15979/data/journalEntries?page=2&pageSize=2 - Exact (UK): - value: - results: - - id: 0008ef00-c5f8-4f97-bce9-5094b2f569dd - createdOn: '2020-07-03T10:51:46' - updatedOn: '2020-07-03T10:51:46' - journalRef: - id: ed5068ff-cb0e-4edd-9777-36ac94a5d6f0 - name: Sales journal - journalLines: - - netAmount: -9.1 - currency: GBP - accountRef: - id: 45ae4323-c93b-48b1-8393-db54254e4e6c - name: VAT To Pay - tracking: - recordRefs: [] - - description: 6 service charges with 0.0% vat - netAmount: -11.21 - currency: GBP - accountRef: - id: 43acd218-6a95-445f-994c-660273e0ced9 - name: Sales - tracking: - recordRefs: [] - - description: 28.0 items with VatPercentage of 0.0 - netAmount: -308.61 - currency: GBP - accountRef: - id: 43acd218-6a95-445f-994c-660273e0ced9 - name: Sales - tracking: - recordRefs: [] - - description: Gratuity - netAmount: -25.87 - currency: GBP - accountRef: - id: febc52c4-a1ed-4000-b51a-76f9f525445d - name: Salary Control Account - tracking: - recordRefs: [] - - netAmount: -47.14 - currency: GBP - accountRef: - id: 45ae4323-c93b-48b1-8393-db54254e4e6c - name: VAT To Pay - tracking: - recordRefs: [] - - description: 19.0 items with VatPercentage of 20.0 - netAmount: -235.72 - currency: GBP - accountRef: - id: 43acd218-6a95-445f-994c-660273e0ced9 - name: Sales - tracking: - recordRefs: [] - - description: 13.0 items with VatPercentage of 5.0 - netAmount: -182.06 - currency: GBP - accountRef: - id: 43acd218-6a95-445f-994c-660273e0ced9 - name: Sales - tracking: - recordRefs: [] - - description: 1.0 gift cards - netAmount: -1 - currency: GBP - accountRef: - id: febc52c4-a1ed-4000-b51a-76f9f525445d - name: Salary Control Account - tracking: - recordRefs: [] - - netAmount: 820.71 - currency: GBP - accountRef: - id: cf9572e7-8afa-4339-9113-af32a66d9df9 - name: Trade Debtors - tracking: - recordRefs: [] - modifiedDate: '2022-10-26T13:35:45Z' - sourceModifiedDate: '2020-07-03T10:51:46Z' - recordRef: - id: 0008ef00-c5f8-4f97-bce9-5094b2f569dd - dataType: invoices - - id: 001a8d63-2d5b-4b00-b17f-894108b6ce81 - createdOn: '2021-07-30T18:02:23' - updatedOn: '2021-07-30T18:02:23' - journalRef: - id: ed5068ff-cb0e-4edd-9777-36ac94a5d6f0 - name: Sales journal - journalLines: - - netAmount: 1038.01 - currency: GBP - accountRef: - id: cf9572e7-8afa-4339-9113-af32a66d9df9 - name: Trade Debtors - tracking: - recordRefs: [] - - description: 1.0 gift cards - netAmount: -1 - currency: GBP - accountRef: - id: cc0ab812-d89a-452b-88a8-61666a0f0211 - name: Accruals - tracking: - recordRefs: [] - - netAmount: -19.29 - currency: GBP - accountRef: - id: 45ae4323-c93b-48b1-8393-db54254e4e6c - name: VAT To Pay - tracking: - recordRefs: [] - - netAmount: -60.82 - currency: GBP - accountRef: - id: 45ae4323-c93b-48b1-8393-db54254e4e6c - name: VAT To Pay - tracking: - recordRefs: [] - - description: 15.0 items with VatPercentage of 0.0 - netAmount: -248.28 - currency: GBP - accountRef: - id: ba7d27d1-72cf-411b-8ef3-55ca4b13dac3 - name: Sundry Non-Operating Expenses - tracking: - recordRefs: [] - - description: Gratuity - netAmount: -8.97 - currency: GBP - accountRef: - id: 8f27a6b8-101d-4613-a059-2b462fb01b2f - name: anna_test_prod - tracking: - recordRefs: [] - - description: 28.0 items with VatPercentage of 5.0 - netAmount: -385.7 - currency: GBP - accountRef: - id: ba7d27d1-72cf-411b-8ef3-55ca4b13dac3 - name: Sundry Non-Operating Expenses - tracking: - recordRefs: [] - - description: 2 service charges with 0.0% vat - netAmount: -9.85 - currency: GBP - accountRef: - id: ba7d27d1-72cf-411b-8ef3-55ca4b13dac3 - name: Sundry Non-Operating Expenses - tracking: - recordRefs: [] - - description: 27.0 items with VatPercentage of 20.0 - netAmount: -304.1 - currency: GBP - accountRef: - id: ba7d27d1-72cf-411b-8ef3-55ca4b13dac3 - name: Sundry Non-Operating Expenses - tracking: - recordRefs: [] - modifiedDate: '2022-10-26T13:35:45Z' - sourceModifiedDate: '2021-07-30T18:02:23Z' - recordRef: - id: 001a8d63-2d5b-4b00-b17f-894108b6ce81 - dataType: invoices - pageNumber: 1 - pageSize: 2 - totalResults: 6785 - _links: - current: - href: /companies/d95030cd-22b2-482b-9c7b-2980dcc2b1ce/data/journalEntries?page=1&pageSize=2 - self: - href: /companies/d95030cd-22b2-482b-9c7b-2980dcc2b1ce/data/journalEntries - next: - href: /companies/d95030cd-22b2-482b-9c7b-2980dcc2b1ce/data/journalEntries?page=2&pageSize=2 - FreshBooks: - value: - results: - - id: '24389149' - postedOn: '1987-10-01T00:00:00' - createdOn: '1987-10-01T00:00:00' - updatedOn: '1987-10-01T00:00:00' - journalLines: - - description: '' - netAmount: 222.88 - currency: GBP - accountRef: - id: '128611' - name: Accounts Receivable - - description: Creative Writing Editorial - netAmount: -222.88 - currency: GBP - accountRef: - id: '128613' - name: Sales - - description: '' - netAmount: 0 - currency: GBP - accountRef: - id: '128613' - name: Sales - modifiedDate: '2023-03-24T16:07:38Z' - sourceModifiedDate: '1987-10-01T00:00:00' - recordRef: - id: '2596455' - dataType: invoices - metadata: - isDeleted: false - - id: '24389396' - postedOn: '1987-10-01T00:00:00' - createdOn: '1987-10-01T00:00:00' - updatedOn: '1987-10-01T00:00:00' - journalLines: - - description: '' - netAmount: -222.88 - currency: GBP - accountRef: - id: '128611' - name: Accounts Receivable - - description: Creative Writing Editorial - netAmount: 222.88 - currency: GBP - accountRef: - id: '128613' - name: Sales - - description: '' - netAmount: 0 - currency: GBP - accountRef: - id: '128613' - name: Sales - modifiedDate: '2023-03-24T16:07:38Z' - sourceModifiedDate: '1987-10-01T00:00:00' - recordRef: - id: '2596455' - dataType: invoices - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 734 - _links: - current: - href: /companies/3691c49e-0db4-4172-b3ab-e4084c365013/data/journalEntries?page=1&pageSize=2 - self: - href: /companies/3691c49e-0db4-4172-b3ab-e4084c365013/data/journalEntries - next: - href: /companies/3691c49e-0db4-4172-b3ab-e4084c365013/data/journalEntries?page=2&pageSize=2 - Oracle NetSuite: - value: - results: - - id: '112' - postedOn: '2021-03-26T00:00:00' - createdOn: '2021-03-26T10:31:05' - updatedOn: '2021-03-26T10:31:06' - journalLines: - - netAmount: -120 - currency: GBP - accountRef: - id: '825' - name: Codat Europe Bank - tracking: - recordRefs: - - id: location-4 - dataType: trackingCategories - - id: '724' - dataType: suppliers - - netAmount: 120 - currency: GBP - accountRef: - id: '111' - name: Accounts Payable - tracking: - recordRefs: - - id: location-4 - dataType: trackingCategories - - id: '724' - dataType: suppliers - modifiedDate: '2023-01-30T14:49:07Z' - sourceModifiedDate: '2021-03-26T10:31:06' - recordRef: - id: '112' - dataType: billPayments - - id: '7' - postedOn: '2021-03-26T00:00:00' - createdOn: '2021-03-26T10:02:18' - updatedOn: '2022-07-05T13:38:10' - journalLines: - - netAmount: -144 - currency: GBP - accountRef: - id: '111' - name: Accounts Payable - tracking: - recordRefs: - - id: '724' - dataType: suppliers - - netAmount: 120 - currency: GBP - accountRef: - id: '716' - name: Inventory In Transit - tracking: - recordRefs: - - id: location-4 - dataType: trackingCategories - - description: VAT - netAmount: 24 - currency: GBP - accountRef: - id: '211' - name: VAT on Purchases - tracking: - recordRefs: - - id: '713' - dataType: suppliers - modifiedDate: '2023-01-30T14:49:07Z' - sourceModifiedDate: '2022-07-05T13:38:10' - recordRef: - id: '7' - dataType: bills - pageNumber: 1 - pageSize: 2 - totalResults: 11 - _links: - current: - href: /companies/d5074b08-6a34-4b06-a742-236edf5dc4f1/data/journalEntries?page=1&pageSize=2 - self: - href: /companies/d5074b08-6a34-4b06-a742-236edf5dc4f1/data/journalEntries - next: - href: /companies/d5074b08-6a34-4b06-a742-236edf5dc4f1/data/journalEntries?page=2&pageSize=2 - QuickBooks Desktop: - value: - results: - - id: 2453-1071526256 - postedOn: '2022-11-28T00:00:00' - createdOn: '2022-11-28T00:00:00' - journalLines: - - description: '' - netAmount: 431.95 - currency: GBP - accountRef: - id: 40000-933270541 - name: Accounts Receivable - - description: Foundation slab - prep and pouring - netAmount: -167.5 - currency: GBP - accountRef: - id: 190000-933270541 - name: Labor Income - - description: 'CA sales tax, San Domingo County' - netAmount: -18.45 - currency: GBP - accountRef: - id: 100000-933270541 - name: Sales Tax Payable - - description: Rough lumber - netAmount: -48 - currency: GBP - accountRef: - id: 1A0000-933270542 - name: Materials Income - - description: Trim lumber - netAmount: -38 - currency: GBP - accountRef: - id: 1A0000-933270542 - name: Materials Income - - description: Window - netAmount: -50 - currency: GBP - accountRef: - id: 1A0000-933270542 - name: Materials Income - - description: Flooring - netAmount: -50 - currency: GBP - accountRef: - id: 1A0000-933270542 - name: Materials Income - - description: Window - netAmount: -60 - currency: GBP - accountRef: - id: 1A0000-933270542 - name: Materials Income - modifiedDate: '2023-04-26T09:11:56Z' - sourceModifiedDate: '2023-12-16T05:04:21' - recordRef: - id: 2453-1071526256 - dataType: invoices - metadata: - isDeleted: false - - id: '469E-1071530054' - postedOn: '2022-11-30T00:00:00' - createdOn: '2022-11-30T00:00:00' - journalLines: - - description: '' - netAmount: 14488.64 - currency: GBP - accountRef: - id: 40000-933270541 - name: Accounts Receivable - - description: Installation labor - netAmount: -45.5 - currency: GBP - accountRef: - id: 190000-933270541 - name: Labor Income - - description: Install drywall - netAmount: -1320 - currency: GBP - accountRef: - id: 1C0000-933270542 - name: Subcontracted Labor Income - - description: Electrical work - netAmount: -1650 - currency: GBP - accountRef: - id: 1C0000-933270542 - name: Subcontracted Labor Income - - description: Metal Work - netAmount: -660 - currency: GBP - accountRef: - id: 1C0000-933270542 - name: Subcontracted Labor Income - - description: Install insulation - netAmount: -1100 - currency: GBP - accountRef: - id: 1C0000-933270542 - name: Subcontracted Labor Income - - description: Plumbing - netAmount: -1650 - currency: GBP - accountRef: - id: 1C0000-933270542 - name: Subcontracted Labor Income - - description: Painting - netAmount: -2420 - currency: GBP - accountRef: - id: 1C0000-933270542 - name: Subcontracted Labor Income - - description: Install carpeting - netAmount: -3300 - currency: GBP - accountRef: - id: 1C0000-933270542 - name: Subcontracted Labor Income - - description: Custom Bay Window - netAmount: -1925 - currency: GBP - accountRef: - id: 1A0000-933270542 - name: Materials Income - - description: Window - netAmount: -115.5 - currency: GBP - accountRef: - id: 1A0000-933270542 - name: Materials Income - - description: Equipment Rental - netAmount: -700 - currency: GBP - accountRef: - id: 190000-933270541 - name: Labor Income - - description: 10% retainage to be billed after job is complete and approved. - netAmount: 555.5 - currency: GBP - accountRef: - id: 70000-933270541 - name: Retainage Receivable - - description: 'CA sales tax, San Tomas County' - netAmount: -158.14 - currency: GBP - accountRef: - id: 100000-933270541 - name: Sales Tax Payable - modifiedDate: '2023-04-26T09:11:56Z' - sourceModifiedDate: '2023-12-16T05:05:41' - recordRef: - id: '469E-1071530054' - dataType: invoices - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 140 - _links: - current: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/data/journalEntries?page=1&pageSize=2 - self: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/data/journalEntries - next: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/data/journalEntries?page=2&pageSize=2 - QuickBooks Online: - value: - results: - - id: '1' - postedOn: '2018-09-21T00:00:00' - createdOn: '2018-09-21T00:00:00' - journalLines: - - description: Opening Balance from Bank - netAmount: 170.23 - currency: GBP - accountRef: - id: '61' - name: Dave PP Current - tracking: - recordRefs: [] - - description: '' - netAmount: -170.23 - currency: GBP - accountRef: - id: '53' - name: Retained profit balance forward account - tracking: - recordRefs: [] - modifiedDate: '2023-01-18T11:03:25Z' - sourceModifiedDate: '2018-12-17T14:56:20Z' - - id: '15' - postedOn: '2018-09-21T00:00:00' - createdOn: '2018-09-21T00:00:00' - journalLines: - - description: Payment to Google - netAmount: -1.59 - currency: GBP - accountRef: - id: '61' - name: Dave PP Current - tracking: - recordRefs: [] - - description: Payment to Google - netAmount: 1.59 - currency: GBP - accountRef: - id: '37' - name: Computer equipment accumulated depreciation brought forward - tracking: - recordRefs: [] - modifiedDate: '2023-01-18T11:03:25Z' - sourceModifiedDate: '2018-12-17T14:56:44Z' - recordRef: - id: PUR-15 - dataType: directCosts - pageNumber: 1 - pageSize: 2 - totalResults: 9405 - _links: - current: - href: /companies/10818b5e-6e6a-4ed4-a1c5-3e3efe626e87/data/journalEntries?page=1&pageSize=2 - self: - href: /companies/10818b5e-6e6a-4ed4-a1c5-3e3efe626e87/data/journalEntries - next: - href: /companies/10818b5e-6e6a-4ed4-a1c5-3e3efe626e87/data/journalEntries?page=2&pageSize=2 - QuickBooks Online Sandbox: - value: - results: - - id: '12' - postedOn: '2015-02-23T00:00:00' - createdOn: '2015-02-23T00:00:00' - journalLines: - - description: Opening stock for Guest Book - netAmount: 0 - currency: GBP - accountRef: - id: '55' - name: Opening Balance Equity - tracking: - recordRefs: [] - - description: Opening stock for Guest Book - netAmount: 0 - currency: GBP - accountRef: - id: '65' - name: Stock Asset - tracking: - recordRefs: [] - - description: Opening stock for Guest Book - netAmount: 250 - currency: GBP - accountRef: - id: '65' - name: Stock Asset - tracking: - recordRefs: [] - - description: Opening stock for Guest Book - netAmount: -250 - currency: GBP - accountRef: - id: '55' - name: Opening Balance Equity - tracking: - recordRefs: [] - modifiedDate: '2023-04-26T09:36:42Z' - sourceModifiedDate: '2016-09-12T16:02:02Z' - metadata: - isDeleted: false - - id: '13' - postedOn: '2015-02-23T00:00:00' - createdOn: '2015-02-23T00:00:00' - journalLines: - - description: Opening stock for Name Badges - netAmount: 0 - currency: GBP - accountRef: - id: '55' - name: Opening Balance Equity - tracking: - recordRefs: [] - - description: Opening stock for Name Badges - netAmount: 0 - currency: GBP - accountRef: - id: '65' - name: Stock Asset - tracking: - recordRefs: [] - - description: Opening stock for Name Badges - netAmount: 7500 - currency: GBP - accountRef: - id: '65' - name: Stock Asset - tracking: - recordRefs: [] - - description: Opening stock for Name Badges - netAmount: -7500 - currency: GBP - accountRef: - id: '55' - name: Opening Balance Equity - tracking: - recordRefs: [] - modifiedDate: '2023-04-26T09:36:42Z' - sourceModifiedDate: '2016-09-12T16:02:04Z' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 9190 - _links: - current: - href: /companies/5a7f3597-36e1-4216-86fe-289ad36088a6/data/journalEntries?page=1&pageSize=2 - self: - href: /companies/5a7f3597-36e1-4216-86fe-289ad36088a6/data/journalEntries - next: - href: /companies/5a7f3597-36e1-4216-86fe-289ad36088a6/data/journalEntries?page=2&pageSize=2 - Sage 50 (UK): - value: - results: - - id: '88' - description: Opening Stock - postedOn: '2021-01-01T00:00:00' - createdOn: '2010-04-27T17:16:57' - journalLines: - - description: Opening Stock - netAmount: -40710 - currency: GBP - accountRef: - id: '1001' - name: Stock - - description: Opening Stock - netAmount: 40710 - currency: GBP - accountRef: - id: '5200' - name: Opening Stock - modifiedDate: '2023-03-30T14:42:38Z' - sourceModifiedDate: '2022-11-25T09:43:54' - recordRef: - id: '88' - dataType: journalEntries - metadata: - isDeleted: false - - id: '92' - description: Goods - postedOn: '2021-01-01T00:00:00' - createdOn: '2010-04-27T17:16:57' - journalLines: - - description: Goods/Services - Goods - netAmount: -5875 - currency: GBP - accountRef: - id: '2100' - name: Creditors Control Account - - description: Goods/Services - Goods - netAmount: 5000 - currency: GBP - accountRef: - id: '5000' - name: Materials Purchased - - description: Goods/Services - Goods - netAmount: 875 - currency: GBP - accountRef: - id: '2201' - name: Purchase Tax Control Account - modifiedDate: '2023-03-30T14:42:38Z' - sourceModifiedDate: '2022-11-25T09:43:54' - recordRef: - id: '92' - dataType: bills - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 1119 - _links: - current: - href: /companies/cf5f2a47-2990-4221-bae6-0c19c86ac304/data/journalEntries?page=1&pageSize=2 - self: - href: /companies/cf5f2a47-2990-4221-bae6-0c19c86ac304/data/journalEntries - next: - href: /companies/cf5f2a47-2990-4221-bae6-0c19c86ac304/data/journalEntries?page=2&pageSize=2 - Sage Business Cloud Accounting: - value: - results: - - id: b0489c4b33de11e797950a57719b2edb - postedOn: '2017-05-08T11:08:39' - createdOn: '2017-05-08T11:08:39' - updatedOn: '2017-05-08T11:08:39' - journalLines: - - description: Consulting services - netAmount: 1440 - currency: GBP - accountRef: - id: 9a9931b4267a11e797950a57719b2edb - name: VAT on Sales - Holding Account - - description: Consulting services - netAmount: 7200 - currency: GBP - accountRef: - id: 9a994b92267a11e797950a57719b2edb - name: Sales Type A - - netAmount: -8640 - currency: GBP - accountRef: - id: 9a991c56267a11e797950a57719b2edb - name: Trade Debtors - modifiedDate: '2022-10-24T15:31:26Z' - sourceModifiedDate: '2017-05-08T11:08:39Z' - - id: c23efa4233de11e797950a57719b2edb - postedOn: '2017-05-08T11:09:09' - createdOn: '2017-05-08T11:09:09' - updatedOn: '2017-05-08T11:09:09' - journalLines: - - netAmount: 1080 - currency: GBP - accountRef: - id: 9a991c56267a11e797950a57719b2edb - name: Trade Debtors - - description: Consulting services - netAmount: -180 - currency: GBP - accountRef: - id: 9a9931b4267a11e797950a57719b2edb - name: VAT on Sales - Holding Account - - description: Consulting services - netAmount: -900 - currency: GBP - accountRef: - id: 9a994b92267a11e797950a57719b2edb - name: Sales Type A - modifiedDate: '2022-10-24T15:31:26Z' - sourceModifiedDate: '2017-05-08T11:09:09Z' - pageNumber: 1 - pageSize: 2 - totalResults: 24386 - _links: - current: - href: /companies/390083e2-351b-407c-a3be-55081c36c182/data/journalEntries?page=1&pageSize=2 - self: - href: /companies/390083e2-351b-407c-a3be-55081c36c182/data/journalEntries - next: - href: /companies/390083e2-351b-407c-a3be-55081c36c182/data/journalEntries?page=2&pageSize=2 - Sage Intacct: - value: - results: - - id: '262177' - description: 'Invoices - 1100: 2021/04/22 03:44:26:7042 Batch Summary Entry' - postedOn: '2021-04-22T00:00:00' - createdOn: '2021-04-22T10:44:27' - updatedOn: '2021-04-22T10:44:27' - journalRef: - id: '1' - name: Accounts Receivable Journal - journalLines: - - description: '' - netAmount: -100 - currency: GBP - accountRef: - id: '176' - name: Revenue - Services - - description: '' - netAmount: -20 - currency: GBP - accountRef: - id: '306' - name: Sales Tax Payable - - description: '' - netAmount: 120 - currency: GBP - accountRef: - id: '2' - name: Accounts Receivable - modifiedDate: '2023-04-04T16:31:37Z' - sourceModifiedDate: '2021-04-22T10:44:27' - metadata: - isDeleted: false - - id: '262179' - description: 'Receipts(Bank-501_CHK) - 1100: April 2021 Batch Summary Entry' - postedOn: '2021-04-30T00:00:00' - createdOn: '2021-04-22T11:01:11' - updatedOn: '2022-04-19T13:38:45' - journalRef: - id: '7' - name: Cash Receipts Journal - journalLines: - - description: '' - netAmount: -120 - currency: GBP - accountRef: - id: '2' - name: Accounts Receivable - - description: '' - netAmount: 120 - currency: GBP - accountRef: - id: '353' - name: Current Account - - description: '' - netAmount: 150 - currency: GBP - accountRef: - id: '353' - name: Current Account - - description: '' - netAmount: -150 - currency: GBP - accountRef: - id: '179' - name: Revenue - Other - modifiedDate: '2023-04-04T16:31:37Z' - sourceModifiedDate: '2022-04-19T13:38:45' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 21 - _links: - current: - href: /companies/df02b289-cb16-4964-ac4d-9fd60b04538e/data/journalEntries?page=1&pageSize=2 - self: - href: /companies/df02b289-cb16-4964-ac4d-9fd60b04538e/data/journalEntries - next: - href: /companies/df02b289-cb16-4964-ac4d-9fd60b04538e/data/journalEntries?page=2&pageSize=2 - Xero: - value: - results: - - id: 033d79c7-565b-419a-9e1b-33ab58efcf3d - postedOn: '2021-11-19T00:00:00' - createdOn: '2023-02-17T21:07:12' - journalLines: - - description: '' - netAmount: -7267.2 - currency: GBP - accountRef: - id: e0faa299-ca0d-4b0a-9e32-0dfabdf9179a - name: Accounts Payable - - description: Half day training - Microsoft Office - netAmount: 1800 - currency: GBP - accountRef: - id: 46f9461e-788b-4906-8b74-d1ea17f6dc10 - name: Consulting - - description: Desktop/network support via email & phone.Per month fixed fee for minimum 20 hours/month. - netAmount: 4000 - currency: GBP - accountRef: - id: f96c9458-d724-47bf-8f74-a9d5726465ce - name: General Expenses - - description: Stationery charges - netAmount: 256 - currency: GBP - accountRef: - id: cba6527d-f102-4538-b421-e483233e9d5a - name: Printing & Stationery - - description: '' - netAmount: 1211.2 - currency: GBP - accountRef: - id: b12f79b9-a082-4b8b-971e-d321292943c7 - name: VAT - modifiedDate: '2023-03-15T20:37:09Z' - sourceModifiedDate: '2023-02-17T21:07:12' - recordRef: - id: 3945273c-cc04-479f-a4b5-1e3dc7a55ed1 - dataType: bills - metadata: - isDeleted: false - - id: 98ac5060-c9ed-4359-bcd5-711e649e7899 - postedOn: '2021-12-20T00:00:00' - createdOn: '2023-02-17T21:07:23' - journalLines: - - description: '' - netAmount: -7267.2 - currency: GBP - accountRef: - id: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - name: Business Bank Account - - description: '' - netAmount: 7267.2 - currency: GBP - accountRef: - id: e0faa299-ca0d-4b0a-9e32-0dfabdf9179a - name: Accounts Payable - modifiedDate: '2023-03-15T20:37:09Z' - sourceModifiedDate: '2023-02-17T21:07:23' - recordRef: - id: 74004690-82a1-4810-aaca-6ce575af94b4 - dataType: billPayments - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 290 - _links: - current: - href: /companies/5ced9667-a310-443a-a711-958d36377141/data/journalEntries?page=1&pageSize=2 - self: - href: /companies/5ced9667-a310-443a-a711-958d36377141/data/journalEntries - next: - href: /companies/5ced9667-a310-443a-a711-958d36377141/data/journalEntries?page=2&pageSize=2 - '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' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - description: |- - The *List journal entries* endpoint returns a list of [journal entries](https://docs.codat.io/lending-api#/schemas/JournalEntry) for a given company's connection. - - [Journal entries](https://docs.codat.io/lending-api#/schemas/JournalEntry) are made in a company's general ledger, or accounts, when transactions are approved. - - Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data). - - operationId: list-accounting-journal-entries - x-speakeasy-group: transactions.journal-entries - '/companies/{companyId}/data/journalEntries/{journalEntryId}': - parameters: - - $ref: '#/components/parameters/companyId' - - name: journalEntryId - in: path - required: true - schema: - type: string - examples: - - 13d946f0-c5d5-42bc-b092-97ece17923ab - - 9wg4lep4ush5cxs79pl8sozmsndbaukll3ind4g7buqbm1h2 - - 7110701885 - - EILBDVJVNUAGVKRQ - description: Unique identifier for a journal entry. - get: - tags: - - Transactions - summary: Get journal entry - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/AccountingJournalEntry' - examples: - Clear Books: - value: - id: 770c89bb-3d6a-449a-9243-739378b4cd7d - postedOn: '2022-04-19T00:00:00' - createdOn: '2022-04-19T00:00:00' - journalRef: - id: 90bb7784-083b-4bcb-a534-b30756cee65d - name: General Journal - journalLines: - - description: '' - netAmount: 32095.91 - currency: GBP - accountRef: - id: ff8fdc4c-2aad-4ec1-9430-6bd201832eb3 - name: Undeposited Funds - - description: Tax for direct income c31a3778-e3ea-4d01-9281-dd2f291c8cb8 - netAmount: -2917.81 - currency: GBP - accountRef: - id: 3a872b81-d1af-4d31-9bfa-a37280b8f68c - name: VAT - - description: '' - netAmount: -29178.09 - currency: GBP - accountRef: - id: 72df89d2-512b-4455-af51-a6b563733842 - name: Sales - modifiedDate: '2023-04-26T12:38:18Z' - recordRef: - id: c31a3778-e3ea-4d01-9281-dd2f291c8cb8 - dataType: directIncomes - metadata: - isDeleted: false - Dynamics 365 Business Central: - value: - id: START - postedOn: '2018-12-31T00:00:00' - createdOn: '2018-12-31T00:00:00' - journalRef: - id: 4caabc3e-3d64-ed11-8c34-000d3a870cba - name: DEFAULT - journalLines: - - description: Opening Entry - netAmount: -69723.14 - currency: GBP - accountRef: - id: ac1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: Retained Earnings - - description: Opening Entry - netAmount: -20000 - currency: GBP - accountRef: - id: aa1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: Share Capital - - description: Opening Entry - netAmount: -2329.42 - currency: GBP - accountRef: - id: 8a1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: Accounts Payable - - description: Opening Entry - netAmount: 3499 - currency: GBP - accountRef: - id: 6e1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: Accumulated Depreciation - - description: Opening Entry - netAmount: 5498 - currency: GBP - accountRef: - id: 6c1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: Equipment - - description: Opening Entry - netAmount: 28547.16 - currency: GBP - accountRef: - id: 6a1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: Inventory - - description: Opening Entry - netAmount: 31638.4 - currency: GBP - accountRef: - id: 641217b3-89d1-ea11-bbaa-000d3a2b9185 - name: Accounts Receivable - - description: Opening Entry - netAmount: 2870 - currency: GBP - accountRef: - id: 641217b3-89d1-ea11-bbaa-000d3a2b9185 - name: Accounts Receivable - - description: Opening Entry - netAmount: 20000 - currency: GBP - accountRef: - id: 621217b3-89d1-ea11-bbaa-000d3a2b9185 - name: Petty Cash - modifiedDate: '2023-03-27T14:21:31Z' - sourceModifiedDate: '2020-07-29T10:56:12Z' - metadata: - isDeleted: false - Exact (Netherlands): - value: - id: 00002c0a-8061-4ad2-84fa-c879eea880a7 - createdOn: '2022-01-11T14:18:54' - updatedOn: '2022-01-11T14:18:54' - journalRef: - id: 55ff34a3-0857-4202-b7ec-a399cfc26a4e - name: Memoriaal - journalLines: - - description: 1 transactions of type CARD_PAYMENT_FEE_REFUND - netAmount: -6.94 - currency: EUR - accountRef: - id: e0217fbf-8963-4134-80ef-929d5de8612d - name: Kosten 13e maand - tracking: - recordRefs: [] - - description: 1 transactions of type CARD_PAYMENT_FEE_REFUND - netAmount: 6.94 - currency: EUR - accountRef: - id: 0166c96b-adf2-4667-a755-87e67c741f41 - name: Resultaat verkoop activa - tracking: - recordRefs: [] - modifiedDate: '2022-10-26T13:37:10Z' - sourceModifiedDate: '2022-01-11T14:18:54Z' - Exact (UK): - value: - id: 0008ef00-c5f8-4f97-bce9-5094b2f569dd - createdOn: '2020-07-03T10:51:46' - updatedOn: '2020-07-03T10:51:46' - journalRef: - id: ed5068ff-cb0e-4edd-9777-36ac94a5d6f0 - name: Sales journal - journalLines: - - netAmount: -9.1 - currency: GBP - accountRef: - id: 45ae4323-c93b-48b1-8393-db54254e4e6c - name: VAT To Pay - tracking: - recordRefs: [] - - description: 6 service charges with 0.0% vat - netAmount: -11.21 - currency: GBP - accountRef: - id: 43acd218-6a95-445f-994c-660273e0ced9 - name: Sales - tracking: - recordRefs: [] - - description: 28.0 items with VatPercentage of 0.0 - netAmount: -308.61 - currency: GBP - accountRef: - id: 43acd218-6a95-445f-994c-660273e0ced9 - name: Sales - tracking: - recordRefs: [] - - description: Gratuity - netAmount: -25.87 - currency: GBP - accountRef: - id: febc52c4-a1ed-4000-b51a-76f9f525445d - name: Salary Control Account - tracking: - recordRefs: [] - - netAmount: -47.14 - currency: GBP - accountRef: - id: 45ae4323-c93b-48b1-8393-db54254e4e6c - name: VAT To Pay - tracking: - recordRefs: [] - - description: 19.0 items with VatPercentage of 20.0 - netAmount: -235.72 - currency: GBP - accountRef: - id: 43acd218-6a95-445f-994c-660273e0ced9 - name: Sales - tracking: - recordRefs: [] - - description: 13.0 items with VatPercentage of 5.0 - netAmount: -182.06 - currency: GBP - accountRef: - id: 43acd218-6a95-445f-994c-660273e0ced9 - name: Sales - tracking: - recordRefs: [] - - description: 1.0 gift cards - netAmount: -1 - currency: GBP - accountRef: - id: febc52c4-a1ed-4000-b51a-76f9f525445d - name: Salary Control Account - tracking: - recordRefs: [] - - netAmount: 820.71 - currency: GBP - accountRef: - id: cf9572e7-8afa-4339-9113-af32a66d9df9 - name: Trade Debtors - tracking: - recordRefs: [] - modifiedDate: '2022-10-26T13:35:45Z' - sourceModifiedDate: '2020-07-03T10:51:46Z' - recordRef: - id: 0008ef00-c5f8-4f97-bce9-5094b2f569dd - dataType: invoices - FreshBooks: - value: - id: '24389149' - postedOn: '1987-10-01T00:00:00' - createdOn: '1987-10-01T00:00:00' - updatedOn: '1987-10-01T00:00:00' - journalLines: - - description: '' - netAmount: 222.88 - currency: GBP - accountRef: - id: '128611' - name: Accounts Receivable - - description: Creative Writing Editorial - netAmount: -222.88 - currency: GBP - accountRef: - id: '128613' - name: Sales - - description: '' - netAmount: 0 - currency: GBP - accountRef: - id: '128613' - name: Sales - modifiedDate: '2023-03-24T16:07:38Z' - sourceModifiedDate: '1987-10-01T00:00:00' - recordRef: - id: '2596455' - dataType: invoices - metadata: - isDeleted: false - Oracle NetSuite: - value: - id: '112' - postedOn: '2021-03-26T00:00:00' - createdOn: '2021-03-26T10:31:05' - updatedOn: '2021-03-26T10:31:06' - journalLines: - - netAmount: -120 - currency: GBP - accountRef: - id: '825' - name: Codat Europe Bank - tracking: - recordRefs: - - id: location-4 - dataType: trackingCategories - - id: '724' - dataType: suppliers - - netAmount: 120 - currency: GBP - accountRef: - id: '111' - name: Accounts Payable - tracking: - recordRefs: - - id: location-4 - dataType: trackingCategories - - id: '724' - dataType: suppliers - modifiedDate: '2023-01-30T14:49:07Z' - sourceModifiedDate: '2021-03-26T10:31:06' - recordRef: - id: '112' - dataType: billPayments - QuickBooks Desktop: - value: - id: 2453-1071526256 - postedOn: '2022-11-28T00:00:00' - createdOn: '2022-11-28T00:00:00' - journalLines: - - description: '' - netAmount: 431.95 - currency: GBP - accountRef: - id: 40000-933270541 - name: Accounts Receivable - - description: Foundation slab - prep and pouring - netAmount: -167.5 - currency: GBP - accountRef: - id: 190000-933270541 - name: Labor Income - - description: 'CA sales tax, San Domingo County' - netAmount: -18.45 - currency: GBP - accountRef: - id: 100000-933270541 - name: Sales Tax Payable - - description: Rough lumber - netAmount: -48 - currency: GBP - accountRef: - id: 1A0000-933270542 - name: Materials Income - - description: Trim lumber - netAmount: -38 - currency: GBP - accountRef: - id: 1A0000-933270542 - name: Materials Income - - description: Window - netAmount: -50 - currency: GBP - accountRef: - id: 1A0000-933270542 - name: Materials Income - - description: Flooring - netAmount: -50 - currency: GBP - accountRef: - id: 1A0000-933270542 - name: Materials Income - - description: Window - netAmount: -60 - currency: GBP - accountRef: - id: 1A0000-933270542 - name: Materials Income - modifiedDate: '2023-04-26T09:11:56Z' - sourceModifiedDate: '2023-12-16T05:04:21' - recordRef: - id: 2453-1071526256 - dataType: invoices - metadata: - isDeleted: false - QuickBooks Online: - value: - id: '1' - postedOn: '2018-09-21T00:00:00' - createdOn: '2018-09-21T00:00:00' - journalLines: - - description: Opening Balance from Bank - netAmount: 170.23 - currency: GBP - accountRef: - id: '61' - name: Dave PP Current - tracking: - recordRefs: [] - - description: '' - netAmount: -170.23 - currency: GBP - accountRef: - id: '53' - name: Retained profit balance forward account - tracking: - recordRefs: [] - modifiedDate: '2023-01-18T11:03:25Z' - sourceModifiedDate: '2018-12-17T14:56:20Z' - QuickBooks Online Sandbox: - value: - id: '12' - postedOn: '2015-02-23T00:00:00' - createdOn: '2015-02-23T00:00:00' - journalLines: - - description: Opening stock for Guest Book - netAmount: 0 - currency: GBP - accountRef: - id: '55' - name: Opening Balance Equity - tracking: - recordRefs: [] - - description: Opening stock for Guest Book - netAmount: 0 - currency: GBP - accountRef: - id: '65' - name: Stock Asset - tracking: - recordRefs: [] - - description: Opening stock for Guest Book - netAmount: 250 - currency: GBP - accountRef: - id: '65' - name: Stock Asset - tracking: - recordRefs: [] - - description: Opening stock for Guest Book - netAmount: -250 - currency: GBP - accountRef: - id: '55' - name: Opening Balance Equity - tracking: - recordRefs: [] - modifiedDate: '2023-04-26T09:36:42Z' - sourceModifiedDate: '2016-09-12T16:02:02Z' - metadata: - isDeleted: false - Sage 50 (UK): - value: - id: '88' - description: Opening Stock - postedOn: '2021-01-01T00:00:00' - createdOn: '2010-04-27T17:16:57' - journalLines: - - description: Opening Stock - netAmount: -40710 - currency: GBP - accountRef: - id: '1001' - name: Stock - - description: Opening Stock - netAmount: 40710 - currency: GBP - accountRef: - id: '5200' - name: Opening Stock - modifiedDate: '2023-03-30T14:42:38Z' - sourceModifiedDate: '2022-11-25T09:43:54' - recordRef: - id: '88' - dataType: journalEntries - metadata: - isDeleted: false - Sage Business Cloud Accounting: - value: - id: b0489c4b33de11e797950a57719b2edb - postedOn: '2017-05-08T11:08:39' - createdOn: '2017-05-08T11:08:39' - updatedOn: '2017-05-08T11:08:39' - journalLines: - - description: Consulting services - netAmount: 1440 - currency: GBP - accountRef: - id: 9a9931b4267a11e797950a57719b2edb - name: VAT on Sales - Holding Account - - description: Consulting services - netAmount: 7200 - currency: GBP - accountRef: - id: 9a994b92267a11e797950a57719b2edb - name: Sales Type A - - netAmount: -8640 - currency: GBP - accountRef: - id: 9a991c56267a11e797950a57719b2edb - name: Trade Debtors - modifiedDate: '2022-10-24T15:31:26Z' - sourceModifiedDate: '2017-05-08T11:08:39Z' - Sage Intacct: - value: - id: '262177' - description: 'Invoices - 1100: 2021/04/22 03:44:26:7042 Batch Summary Entry' - postedOn: '2021-04-22T00:00:00' - createdOn: '2021-04-22T10:44:27' - updatedOn: '2021-04-22T10:44:27' - journalRef: - id: '1' - name: Accounts Receivable Journal - journalLines: - - description: '' - netAmount: -100 - currency: GBP - accountRef: - id: '176' - name: Revenue - Services - - description: '' - netAmount: -20 - currency: GBP - accountRef: - id: '306' - name: Sales Tax Payable - - description: '' - netAmount: 120 - currency: GBP - accountRef: - id: '2' - name: Accounts Receivable - modifiedDate: '2023-04-04T16:31:37Z' - sourceModifiedDate: '2021-04-22T10:44:27' - metadata: - isDeleted: false - Xero: - value: - id: 033d79c7-565b-419a-9e1b-33ab58efcf3d - postedOn: '2021-11-19T00:00:00' - createdOn: '2023-02-17T21:07:12' - journalLines: - - description: '' - netAmount: -7267.2 - currency: GBP - accountRef: - id: e0faa299-ca0d-4b0a-9e32-0dfabdf9179a - name: Accounts Payable - - description: Half day training - Microsoft Office - netAmount: 1800 - currency: GBP - accountRef: - id: 46f9461e-788b-4906-8b74-d1ea17f6dc10 - name: Consulting - - description: Desktop/network support via email & phone.Per month fixed fee for minimum 20 hours/month. - netAmount: 4000 - currency: GBP - accountRef: - id: f96c9458-d724-47bf-8f74-a9d5726465ce - name: General Expenses - - description: Stationery charges - netAmount: 256 - currency: GBP - accountRef: - id: cba6527d-f102-4538-b421-e483233e9d5a - name: Printing & Stationery - - description: '' - netAmount: 1211.2 - currency: GBP - accountRef: - id: b12f79b9-a082-4b8b-971e-d321292943c7 - name: VAT - modifiedDate: '2023-03-15T20:37:09Z' - sourceModifiedDate: '2023-02-17T21:07:12' - recordRef: - id: 3945273c-cc04-479f-a4b5-1e3dc7a55ed1 - dataType: bills - metadata: - isDeleted: false - '401': - $ref: '#/components/responses/Unauthorized' - '402': - $ref: '#/components/responses/Payment-Required' - '403': - $ref: '#/components/responses/Forbidden' - '404': - $ref: '#/components/responses/Not-Found' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - description: | - The *Get journal entry* endpoint returns a single journal entry for a given journalEntryId. - - [Journal entries](https://docs.codat.io/lending-api#/schemas/JournalEntry) are made in a company's general ledger, or accounts, when transactions are approved. - - Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data). - operationId: get-accounting-journal-entry - x-speakeasy-group: transactions.journal-entries - '/companies/{companyId}/data/journals': - parameters: - - $ref: '#/components/parameters/companyId' - get: - tags: - - Transactions - summary: List journals - 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/AccountingJournals' - examples: - Clear Books: - value: - results: - - id: 90bb7784-083b-4bcb-a534-b30756cee65d - journalCode: GJ - name: General Journal - type: General Journal - hasChildren: true - createdOn: '2021-12-11T13:04:02' - status: Active - modifiedDate: '2023-04-26T12:38:18Z' - sourceModifiedDate: '2022-07-15T20:19:02' - metadata: - isDeleted: false - - id: 07b94827-c0a5-4cc7-ba58-3f9efec3b4b3 - journalCode: PAY - name: Payroll Journal - type: Payroll Journal - parentId: 90bb7784-083b-4bcb-a534-b30756cee65d - hasChildren: false - createdOn: '2021-12-11T13:04:02' - status: Active - modifiedDate: '2023-04-26T12:38:18Z' - sourceModifiedDate: '2022-07-24T14:17:02' - metadata: - isDeleted: false - _links: - current: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/data/journals?page=1&pageSize=2 - self: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/data/journals - next: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/data/journals?page=2&pageSize=2 - pageNumber: 1 - pageSize: 2 - totalResults: 4 - Dynamics 365 Business Central: - value: - results: - - id: 211317b3-89d1-ea11-bbaa-000d3a2b9185 - journalCode: ASSETS - name: ASSETS - type: Assets - hasChildren: true - status: Active - modifiedDate: '2023-03-27T14:21:10Z' - sourceModifiedDate: '2023-02-02T10:26:25Z' - metadata: - isDeleted: false - - id: 9a94ef78-92ec-ec11-82f9-000d3a8746a9 - journalCode: BNKDEPOSIT-BNKD - name: BNKD - type: Bank Deposits - parentId: af7d7e6b-e5c8-ec11-8e7e-000d3a86e04a - hasChildren: false - createdOn: '2022-06-15T10:03:59' - status: Active - modifiedDate: '2023-03-27T14:21:10Z' - sourceModifiedDate: '2022-06-15T22:45:30Z' - metadata: - isDeleted: false - _links: - current: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/data/journals?page=1&pageSize=2 - self: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/data/journals - next: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/data/journals?page=2&pageSize=2 - pageNumber: 1 - pageSize: 2 - totalResults: 46 - Exact (Netherlands): - value: - results: - - id: aae31284-e23d-456b-9957-fbf4bcef6c19 - journalCode: '21' - name: '12345678' - type: Bank - hasChildren: false - createdOn: '2019-11-05T14:44:51' - status: Active - modifiedDate: '2022-10-26T13:31:58Z' - sourceModifiedDate: '2020-01-24T11:41:25Z' - - id: 74677165-1bd3-49b4-87d0-32d974674f86 - journalCode: '23' - name: Abraham's Billion Dollar stuff - type: Bank - hasChildren: false - createdOn: '2019-11-22T13:35:57' - status: Active - modifiedDate: '2022-10-26T13:31:58Z' - sourceModifiedDate: '2019-11-22T13:35:57Z' - _links: - current: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/data/journals?page=1&pageSize=2 - self: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/data/journals - next: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/data/journals?page=2&pageSize=2 - pageNumber: 1 - pageSize: 2 - totalResults: 47 - Exact (UK): - value: - results: - - id: 05b9febe-34b3-4836-8277-002294b233a9 - journalCode: '25' - name: annaBankAccount1 - type: Bank - hasChildren: false - createdOn: '2021-04-26T16:44:47' - status: Active - modifiedDate: '2022-10-26T13:33:08Z' - sourceModifiedDate: '2021-04-26T16:44:47Z' - - id: b9c3d6a6-4ce2-4714-9ff6-fb15892300f7 - journalCode: '31' - name: annaBankAccount10 - type: Bank - hasChildren: false - createdOn: '2021-05-18T10:24:18' - status: Active - modifiedDate: '2022-10-26T13:33:08Z' - sourceModifiedDate: '2021-05-18T10:24:18Z' - _links: - current: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/data/journals?page=1&pageSize=2 - self: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/data/journals - next: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/data/journals?page=2&pageSize=2 - pageNumber: 1 - pageSize: 2 - totalResults: 21 - Sage Intacct: - value: - results: - - id: '207' - journalCode: AJPT - name: A Journal Push Test - type: '' - hasChildren: false - createdOn: '2022-01-17T10:44:23' - status: Active - modifiedDate: '2023-04-04T16:31:30Z' - sourceModifiedDate: '2022-01-17T10:44:23' - metadata: - isDeleted: false - - id: '223' - journalCode: AJPT2 - name: A Journal Push Test 2 - type: '' - hasChildren: false - createdOn: '2022-01-18T15:39:07' - status: Active - modifiedDate: '2023-04-04T16:31:30Z' - sourceModifiedDate: '2022-01-18T15:39:07' - metadata: - isDeleted: false - _links: - current: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/data/journals?page=1&pageSize=2 - self: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/data/journals - next: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/data/journals?page=2&pageSize=2 - pageNumber: 1 - pageSize: 2 - totalResults: 1211 - '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' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - description: |- - The *List journals* endpoint returns a list of [journals](https://docs.codat.io/lending-api#/schemas/Journal) for a given company's connection. - - [Journals](https://docs.codat.io/lending-api#/schemas/Journal) are used to record all the financial transactions of a company. - - Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data). - - operationId: list-accounting-journals - x-speakeasy-group: transactions.journals - '/companies/{companyId}/data/journals/{journalId}': - parameters: - - $ref: '#/components/parameters/companyId' - get: - tags: - - Transactions - summary: Get journal - parameters: - - name: journalId - in: path - required: true - schema: - type: string - description: Unique identifier for a journal. - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/AccountingJournal' - examples: - Clear Books: - value: - id: 90bb7784-083b-4bcb-a534-b30756cee65d - journalCode: GJ - name: General Journal - type: General Journal - hasChildren: true - createdOn: '2021-12-11T13:04:02' - status: Active - modifiedDate: '2023-04-26T12:38:18Z' - sourceModifiedDate: '2022-07-15T20:19:02' - metadata: - isDeleted: false - Dynamics 365 Business Central: - value: - id: 211317b3-89d1-ea11-bbaa-000d3a2b9185 - journalCode: ASSETS - name: ASSETS - type: Assets - hasChildren: true - status: Active - modifiedDate: '2023-03-27T14:21:10Z' - sourceModifiedDate: '2023-02-02T10:26:25Z' - metadata: - isDeleted: false - Exact (Netherlands): - value: - id: aae31284-e23d-456b-9957-fbf4bcef6c19 - journalCode: '21' - name: '12345678' - type: Bank - hasChildren: false - createdOn: '2019-11-05T14:44:51' - status: Active - modifiedDate: '2022-10-26T13:31:58Z' - sourceModifiedDate: '2020-01-24T11:41:25Z' - Exact (UK): - value: - id: 05b9febe-34b3-4836-8277-002294b233a9 - journalCode: '25' - name: annaBankAccount1 - type: Bank - hasChildren: false - createdOn: '2021-04-26T16:44:47' - status: Active - modifiedDate: '2022-10-26T13:33:08Z' - sourceModifiedDate: '2021-04-26T16:44:47Z' - Sage Intacct: - value: - id: '207' - journalCode: AJPT - name: A Journal Push Test - type: '' - hasChildren: false - createdOn: '2022-01-17T10:44:23' - status: Active - modifiedDate: '2023-04-04T16:31:30Z' - sourceModifiedDate: '2022-01-17T10:44:23' - metadata: - isDeleted: false - '401': - $ref: '#/components/responses/Unauthorized' - '402': - $ref: '#/components/responses/Payment-Required' - '403': - $ref: '#/components/responses/Forbidden' - '404': - $ref: '#/components/responses/Not-Found' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - description: | - The *Get journal* endpoint returns a single journal for a given journalId. - - [Journals](https://docs.codat.io/lending-api#/schemas/Journal) are used to record all the financial transactions of a company. - - Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data). - operationId: get-accounting-journal - x-speakeasy-group: transactions.journals - '/companies/{companyId}/data/payments': - parameters: - - $ref: '#/components/parameters/companyId' - get: - tags: - - Accounts receivable - summary: List payments - 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/AccountingPayments' - examples: - Clear Books: - value: - results: - - id: 7ba4fc1b-e248-49ba-8bf8-0813d7f203a8 - customerRef: - id: a82042f1-a005-4ca5-bfd3-5bc237123aa5 - companyName: Keara Leffler - accountRef: - id: dbcaf288-2b39-4b95-8ab3-42202ab15918 - name: Business Current Account - totalAmount: 3669.52 - currency: GBP - currencyRate: 1 - date: '2022-04-25T13:04:02' - note: Payment against invoice ac3ac4dd-defe-4f9c-b7bb-2c3fe726a9d1 - lines: - - amount: 3669.52 - links: - - type: Invoice - id: ac3ac4dd-defe-4f9c-b7bb-2c3fe726a9d1 - amount: -3669.52 - currencyRate: 1 - allocatedOnDate: '2022-04-25T13:04:02' - modifiedDate: '2023-04-26T12:38:17Z' - sourceModifiedDate: '2022-04-25T13:04:02' - reference: ac3ac4dd-defe-4f9c-b7bb-2c3fe726a9d1 - metadata: - isDeleted: false - - id: 9407d5ee-893a-4547-bd89-bc7b795ee774 - customerRef: - id: d65ac505-072c-49ec-be3c-3cb74228966d - companyName: Jensen Steuber - accountRef: - id: dbcaf288-2b39-4b95-8ab3-42202ab15918 - name: Business Current Account - paymentMethodRef: - id: 8db2de81-0db4-46ee-b7f9-c711a7e89a01 - name: Cash payments-IHz - totalAmount: 1772.72 - currency: GBP - currencyRate: 1 - date: '2022-04-25T13:04:02' - note: Payment against invoice 2518ca08-5e2a-4630-8cee-a6bcd1625660 - lines: - - amount: 1772.72 - links: - - type: Invoice - id: 2518ca08-5e2a-4630-8cee-a6bcd1625660 - amount: -1772.72 - currencyRate: 1 - allocatedOnDate: '2022-04-25T13:04:02' - modifiedDate: '2023-04-26T12:38:17Z' - sourceModifiedDate: '2022-04-25T13:04:02' - reference: 2518ca08-5e2a-4630-8cee-a6bcd1625660 - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 200 - _links: - current: - href: /companies/354a121b-855f-4d25-90ad-0905b498c1c0/data/payments?page=1&pageSize=2 - self: - href: /companies/354a121b-855f-4d25-90ad-0905b498c1c0/data/payments - next: - href: /companies/354a121b-855f-4d25-90ad-0905b498c1c0/data/payments?page=2&pageSize=2 - Dynamics 365 Business Central: - value: - results: - - id: e0299ced-89d1-ea11-bbaa-000d3a2b9185 - customerRef: - id: b61217b3-89d1-ea11-bbaa-000d3a2b9185 - companyName: Trey Researches - accountRef: - id: 621217b3-89d1-ea11-bbaa-000d3a2b9185 - name: Petty Cash - totalAmount: 128.16 - currency: GBP - currencyRate: 1 - date: '2019-01-15T00:00:00' - note: Invoice 102001 - lines: - - amount: 128.16 - links: - - type: Invoice - id: 18c906bf-89d1-ea11-bbaa-000d3a2b9185 - amount: -128.16 - currencyRate: 1 - allocatedOnDate: '2019-01-15T00:00:00' - modifiedDate: '2023-03-27T14:21:27Z' - sourceModifiedDate: '0001-01-01T00:00:00Z' - reference: 'Document No: 103001' - metadata: - isDeleted: false - - id: 042a9ced-89d1-ea11-bbaa-000d3a2b9185 - customerRef: - id: b41217b3-89d1-ea11-bbaa-000d3a2b9185 - companyName: Adatum Corporation - accountRef: - id: 621217b3-89d1-ea11-bbaa-000d3a2b9185 - name: Petty Cash - totalAmount: 600.48 - currency: GBP - currencyRate: 1 - date: '2019-01-16T00:00:00' - note: Invoice 102002 - lines: - - amount: 600.48 - links: - - type: Invoice - id: 1bc906bf-89d1-ea11-bbaa-000d3a2b9185 - amount: -600.48 - currencyRate: 1 - allocatedOnDate: '2019-01-16T00:00:00' - modifiedDate: '2023-03-27T14:21:27Z' - sourceModifiedDate: '0001-01-01T00:00:00Z' - reference: 'Document No: 103002' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 249 - _links: - current: - href: /companies/d6849caf-c146-41be-8335-b73346e3bd84/data/payments?page=1&pageSize=2 - self: - href: /companies/d6849caf-c146-41be-8335-b73346e3bd84/data/payments - next: - href: /companies/d6849caf-c146-41be-8335-b73346e3bd84/data/payments?page=2&pageSize=2 - Exact (Netherlands): - value: - results: - - id: 090f5d9f-d1ce-4a61-985f-d3915618b64a_c3bf08a3-4d51-4859-acbb-5075f9484f87 - customerRef: - id: c3bf08a3-4d51-4859-acbb-5075f9484f87 - companyName: Mr Abe - accountRef: - id: 35717508-0696-4481-a32c-2835f0ed8b4e - name: Test GL account 2 - totalAmount: 229.08 - currency: EUR - currencyRate: 1 - date: '2019-11-26T00:00:00Z' - lines: - - amount: 229.08 - links: - - type: Invoice - id: f010d4df-13ea-45d1-8525-785164df7dd9 - amount: -229.08 - currencyRate: 1 - modifiedDate: '2022-10-26T13:36:13Z' - sourceModifiedDate: '2019-11-26T12:31:46Z' - reference: '19230011' - - id: 1650bb9c-5d9a-40f2-9015-0e251a12f861_c3bf08a3-4d51-4859-acbb-5075f9484f87 - customerRef: - id: c3bf08a3-4d51-4859-acbb-5075f9484f87 - companyName: Mr Abe - accountRef: - id: 35717508-0696-4481-a32c-2835f0ed8b4e - name: Test GL account 2 - totalAmount: 991.56 - currency: EUR - currencyRate: 1 - date: '2019-11-26T00:00:00Z' - lines: - - amount: 991.56 - links: - - type: Invoice - id: 013f05e6-2583-4e6d-8309-a479808cf7bf - amount: -991.56 - currencyRate: 1 - modifiedDate: '2022-10-26T13:36:13Z' - sourceModifiedDate: '2019-11-26T12:31:12Z' - reference: '19230010' - pageNumber: 1 - pageSize: 2 - totalResults: 46 - _links: - current: - href: /companies/b83b1923-4db6-45a8-a779-b4e320c15979/data/payments?page=1&pageSize=2 - self: - href: /companies/b83b1923-4db6-45a8-a779-b4e320c15979/data/payments - next: - href: /companies/b83b1923-4db6-45a8-a779-b4e320c15979/data/payments?page=2&pageSize=2 - Exact (UK): - value: - results: - - id: 14b7d656-07ee-4d70-aafa-61c0030c08ad_7e566728-a7f3-4860-a7f5-381664673287 - customerRef: - id: 7e566728-a7f3-4860-a7f5-381664673287 - companyName: Customer A - accountRef: - id: 4a4e34b5-7f62-4b64-a44a-073398b14b41 - name: Bank - totalAmount: 1 - currency: GBP - currencyRate: 1 - date: '2020-01-02T00:00:00Z' - lines: - - amount: 1 - links: - - type: Invoice - id: 6220ed43-1fec-4e17-a88f-c7ee5b949e76 - amount: -1 - currencyRate: 1 - modifiedDate: '2022-10-26T13:35:14Z' - sourceModifiedDate: '2020-01-02T10:08:27Z' - reference: '20200002' - - id: d8b093cf-3d37-405b-9e85-72552226553f_7e566728-a7f3-4860-a7f5-381664673287 - customerRef: - id: 7e566728-a7f3-4860-a7f5-381664673287 - companyName: Customer A - accountRef: - id: 4a4e34b5-7f62-4b64-a44a-073398b14b41 - name: Bank - totalAmount: 1 - currency: GBP - currencyRate: 1 - date: '2020-01-02T00:00:00Z' - lines: - - amount: 1 - links: - - type: Invoice - id: 6220ed43-1fec-4e17-a88f-c7ee5b949e76 - amount: -1 - currencyRate: 1 - modifiedDate: '2022-10-26T13:35:14Z' - sourceModifiedDate: '2020-01-02T09:58:15Z' - reference: '20200001' - pageNumber: 1 - pageSize: 2 - totalResults: 5 - _links: - current: - href: /companies/d95030cd-22b2-482b-9c7b-2980dcc2b1ce/data/payments?page=1&pageSize=2 - self: - href: /companies/d95030cd-22b2-482b-9c7b-2980dcc2b1ce/data/payments - next: - href: /companies/d95030cd-22b2-482b-9c7b-2980dcc2b1ce/data/payments?page=2&pageSize=2 - FreeAgent: - value: - results: - - id: '135234099' - customerRef: - id: '6162049' - companyName: Wintershall Holding GmbH - totalAmount: 100 - currency: GBP - date: '2017-11-23T00:00:00' - note: 'CODAT LTD ref: NOV TOPUP OTHER �100.00 - Invoice receipt against 015' - lines: - - amount: 100 - links: - - type: Invoice - id: '21973931' - amount: -100 - currencyRate: 1 - modifiedDate: '2023-04-25T14:21:37Z' - metadata: - isDeleted: false - - id: '135258250' - customerRef: - id: '6162230' - companyName: Stronachs LLP - totalAmount: 100 - currency: GBP - date: '2017-11-23T00:00:00' - note: 'CODAT LTD ref: NOV TOPUP OTHER �100.00 - Invoice receipt against 006' - lines: - - amount: 100 - links: - - type: Invoice - id: '21952246' - amount: -100 - currencyRate: 1 - modifiedDate: '2023-04-25T14:21:37Z' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 1146 - _links: - current: - href: /companies/071ad738-68f3-4561-afd0-69bab9df0803/data/payments?page=1&pageSize=2 - self: - href: /companies/071ad738-68f3-4561-afd0-69bab9df0803/data/payments - next: - href: /companies/071ad738-68f3-4561-afd0-69bab9df0803/data/payments?page=2&pageSize=2 - FreshBooks: - value: - results: - - id: '765831' - customerRef: - id: '113070' - totalAmount: 1 - currency: GBP - date: '2018-09-11T00:00:00' - note: 'Overpayment: invoice #0000003, some test' - lines: - - amount: 1 - links: - - type: PaymentOnAccount - id: '113070' - amount: -1 - currencyRate: 1 - modifiedDate: '2023-03-24T16:07:24Z' - sourceModifiedDate: '2018-09-11T06:58:46' - metadata: - isDeleted: false - - id: '988600' - customerRef: - id: '380630' - totalAmount: 5 - currency: GBP - date: '2019-01-21T00:00:00' - note: 'Overpayment: invoice #0000007' - lines: - - amount: 5 - links: - - type: PaymentOnAccount - id: '380630' - amount: -5 - currencyRate: 1 - modifiedDate: '2023-03-24T16:07:24Z' - sourceModifiedDate: '2019-01-21T10:23:59' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 239 - _links: - current: - href: /companies/3691c49e-0db4-4172-b3ab-e4084c365013/data/payments?page=1&pageSize=2 - self: - href: /companies/3691c49e-0db4-4172-b3ab-e4084c365013/data/payments - next: - href: /companies/3691c49e-0db4-4172-b3ab-e4084c365013/data/payments?page=2&pageSize=2 - KashFlow: - value: - results: - - id: '139214921' - customerRef: - id: '85743294' - companyName: Parent customer - totalAmount: 1.2 - currency: GBP - date: '2010-04-07T00:00:00' - note: '' - lines: - - amount: 1.2 - links: - - type: Invoice - id: '137055108' - amount: -1.2 - currencyRate: 1 - modifiedDate: '2022-09-30T10:29:15Z' - - id: '86861497' - customerRef: - id: '69946501' - companyName: Peter Lord - totalAmount: 10 - currency: GBP - date: '2017-05-01T00:00:00' - note: '' - lines: - - amount: 10 - links: - - type: Invoice - id: '85315064' - amount: -10 - currencyRate: 1 - modifiedDate: '2022-09-30T10:29:15Z' - pageNumber: 1 - pageSize: 2 - totalResults: 74 - _links: - current: - href: /companies/3a707a99-89da-4b16-a5d6-595333a16352/data/payments?page=1&pageSize=2 - self: - href: /companies/3a707a99-89da-4b16-a5d6-595333a16352/data/payments - next: - href: /companies/3a707a99-89da-4b16-a5d6-595333a16352/data/payments?page=2&pageSize=2 - Oracle NetSuite: - value: - results: - - id: '8828' - customerRef: - id: '417' - companyName: 10 Breww Ltd - totalAmount: 0 - currency: GBP - currencyRate: 1 - date: '2021-04-09T00:00:00' - lines: - - amount: 0 - links: - - type: Invoice - id: '8530' - amount: -16 - currencyRate: 1 - - type: CreditNote - id: '8828' - amount: 16 - currencyRate: 1 - modifiedDate: '2022-09-20T08:18:33Z' - sourceModifiedDate: '2022-02-25T10:58:37' - reference: 'Credit Memo #CM28' - - id: '428' - customerRef: - id: '417' - companyName: 10 Breww Ltd - accountRef: - id: '122' - name: Undeposited Funds - totalAmount: 90 - currency: GBP - currencyRate: 1 - date: '2021-04-20T00:00:00' - lines: - - amount: 90 - links: - - type: Invoice - id: '416' - amount: -90 - currencyRate: 1 - - amount: 10 - links: - - type: Invoice - id: '416' - amount: -10 - currencyRate: 1 - - amount: -10 - links: - - type: Other - id: '428' - amount: 10 - currencyRate: 1 - modifiedDate: '2022-09-20T08:18:33Z' - sourceModifiedDate: '2022-04-28T13:36:54' - reference: 'Payment #PYMT01' - pageNumber: 1 - pageSize: 2 - totalResults: 113 - _links: - current: - href: /companies/973341cc-ca0a-4a88-88de-e5954157818b/data/payments?page=1&pageSize=2 - self: - href: /companies/973341cc-ca0a-4a88-88de-e5954157818b/data/payments - next: - href: /companies/973341cc-ca0a-4a88-88de-e5954157818b/data/payments?page=2&pageSize=2 - QuickBooks Desktop: - value: - results: - - id: 6915-1197775450 - customerRef: - id: 220000-933272658 - companyName: 'Melton, Johnny' - accountRef: - id: 80000-933270541 - name: Undeposited Funds - totalAmount: 14488.64 - currency: GBP - currencyRate: 1 - date: '2023-01-10T00:00:00' - note: Check - 80000-933270541 - lines: - - amount: 14488.64 - links: - - type: Invoice - id: '469E-1071530054' - amount: -14488.64 - currencyRate: 1 - modifiedDate: '2023-04-26T09:08:36Z' - sourceModifiedDate: '2023-12-16T05:06:11' - reference: '19650' - metadata: - isDeleted: false - - id: 6973-1197775625 - customerRef: - id: 420000-1071522044 - companyName: 'Prentice, Adelaide' - accountRef: - id: 80000-933270541 - name: Undeposited Funds - totalAmount: 431.95 - currency: GBP - currencyRate: 1 - date: '2023-01-15T00:00:00' - note: Check - 80000-933270541 - lines: - - amount: 431.95 - links: - - type: Invoice - id: 2453-1071526256 - amount: -431.95 - currencyRate: 1 - modifiedDate: '2023-04-26T09:08:36Z' - sourceModifiedDate: '2023-12-16T05:06:11' - reference: '983409' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 108 - _links: - current: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/data/payments?page=1&pageSize=2 - self: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/data/payments - next: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/data/payments?page=2&pageSize=2 - QuickBooks Online: - value: - results: - - id: '710' - customerRef: - id: '9' - companyName: Abe - accountRef: - id: '56' - name: Undeposited Funds - totalAmount: 95.2 - currency: GBP - currencyRate: 1 - date: '2018-10-05T00:00:00' - note: Sarah's Test - lines: - - amount: 95.2 - links: - - type: Invoice - id: '688' - amount: -95.2 - currencyRate: 1 - modifiedDate: '2023-01-18T11:03:14Z' - sourceModifiedDate: '2020-08-14T09:59:29Z' - - id: '9298' - customerRef: - id: '9' - companyName: Abe - accountRef: - id: '56' - name: Undeposited Funds - totalAmount: 95.2 - currency: GBP - currencyRate: 1 - date: '2018-10-05T00:00:00' - note: Adeel Test - lines: - - amount: 95.2 - links: - - type: PaymentOnAccount - id: '9' - amount: -95.2 - currencyRate: 1 - modifiedDate: '2023-01-18T11:03:18Z' - sourceModifiedDate: '2022-06-20T13:51:36Z' - pageNumber: 1 - pageSize: 2 - totalResults: 3723 - _links: - current: - href: /companies/10818b5e-6e6a-4ed4-a1c5-3e3efe626e87/data/payments?page=1&pageSize=2 - self: - href: /companies/10818b5e-6e6a-4ed4-a1c5-3e3efe626e87/data/payments - next: - href: /companies/10818b5e-6e6a-4ed4-a1c5-3e3efe626e87/data/payments?page=2&pageSize=2 - QuickBooks Online Sandbox: - value: - results: - - id: '25' - customerRef: - id: '55' - companyName: Oxon Insurance - Holiday Party - accountRef: - id: '81' - name: Current - totalAmount: 10800 - currency: GBP - currencyRate: 1 - date: '2016-02-12T00:00:00' - note: '' - lines: - - amount: 10800 - links: - - type: PaymentOnAccount - id: '55' - amount: -10800 - currencyRate: 1 - modifiedDate: '2023-04-26T09:36:50Z' - sourceModifiedDate: '2022-02-03T12:09:35Z' - metadata: - isDeleted: false - - id: '31' - customerRef: - id: '59' - companyName: Ecker Holiday event - accountRef: - id: '81' - name: Current - totalAmount: 15615 - currency: GBP - currencyRate: 1 - date: '2016-02-12T00:00:00' - note: '' - lines: - - amount: 15615 - links: - - type: Invoice - id: '30' - amount: -15615 - currencyRate: 1 - modifiedDate: '2023-04-26T09:36:50Z' - sourceModifiedDate: '2016-09-12T16:50:17Z' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 813 - _links: - current: - href: /companies/5a7f3597-36e1-4216-86fe-289ad36088a6/data/payments?page=1&pageSize=2 - self: - href: /companies/5a7f3597-36e1-4216-86fe-289ad36088a6/data/payments - next: - href: /companies/5a7f3597-36e1-4216-86fe-289ad36088a6/data/payments?page=2&pageSize=2 - Sage 200cloud: - value: - results: - - id: '29684' - customerRef: - id: STE001 - companyName: Stevenson & Smith - totalAmount: 500 - currency: GBP - currencyRate: 1 - date: '2019-01-30T00:00:00Z' - note: Payment on Account - lines: - - amount: 12.5 - links: - - type: Invoice - id: '29676' - amount: -12.5 - currencyRate: 1 - - amount: 487.5 - links: - - type: Invoice - id: '29851' - amount: -487.5 - currencyRate: 1 - modifiedDate: '2022-10-14T09:36:05Z' - sourceModifiedDate: '2020-02-28T14:23:46Z' - reference: '5897532' - - id: '29681' - customerRef: - id: MAC001 - companyName: Macolm Hall Associates - totalAmount: 0 - currency: GBP - currencyRate: 1 - date: '2019-12-31T00:00:00Z' - note: Opening Balance - lines: - - amount: 0 - links: - - type: Invoice - id: '29745' - amount: 0.05 - currencyRate: 1 - - type: CreditNote - id: '29681' - amount: -0.05 - currencyRate: 1 - modifiedDate: '2022-10-14T09:36:05Z' - sourceModifiedDate: '2020-02-28T14:23:46Z' - reference: O/BAL - pageNumber: 1 - pageSize: 2 - totalResults: 83 - _links: - current: - href: /companies/93c21e2d-049c-4d24-b41b-57e61c30b69e/data/payments?page=1&pageSize=2 - self: - href: /companies/93c21e2d-049c-4d24-b41b-57e61c30b69e/data/payments - next: - href: /companies/93c21e2d-049c-4d24-b41b-57e61c30b69e/data/payments?page=2&pageSize=2 - Sage 50 (UK): - value: - results: - - id: '53' - customerRef: - id: STE001 - companyName: Stevenson & Smith - accountRef: - id: '1200' - name: Bank Current Account - totalAmount: 500 - currency: GBP - currencyRate: 1 - date: '2021-01-30T00:00:00' - note: 'Sales receipt on account 53 linked to sales invoice tx-3, sales invoice inv-31.' - lines: - - amount: 12.5 - links: - - type: Invoice - id: TX-3 - amount: -12.5 - currencyRate: 1 - - amount: 245.34 - links: - - type: Invoice - id: INV-31 - amount: -245.34 - currencyRate: 1 - - amount: 126.9 - links: - - type: Invoice - id: INV-31 - amount: -126.9 - currencyRate: 1 - - amount: 115.26 - links: - - type: Invoice - id: INV-31 - amount: -115.26 - currencyRate: 1 - modifiedDate: '2023-03-30T14:42:39Z' - sourceModifiedDate: '2022-11-25T09:43:54' - metadata: - isDeleted: false - - id: '8' - customerRef: - id: MAC001 - companyName: Macolm Hall Associates - accountRef: - id: '' - totalAmount: 0 - currency: GBP - currencyRate: 1 - date: '2021-12-31T00:00:00' - note: Sales credit tx-8 linked to sales invoice inv-10. - lines: - - amount: 0 - links: - - type: Invoice - id: INV-10 - amount: -0.05 - currencyRate: 1 - - type: CreditNote - id: TX-8 - amount: 0.05 - currencyRate: 1 - modifiedDate: '2023-03-30T14:42:39Z' - sourceModifiedDate: '2022-11-25T09:43:54' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 53 - _links: - current: - href: /companies/cf5f2a47-2990-4221-bae6-0c19c86ac304/data/payments?page=1&pageSize=2 - self: - href: /companies/cf5f2a47-2990-4221-bae6-0c19c86ac304/data/payments - next: - href: /companies/cf5f2a47-2990-4221-bae6-0c19c86ac304/data/payments?page=2&pageSize=2 - Sage Business Cloud Accounting: - value: - results: - - id: d39f7a5733de11e797950a57719b2edb - customerRef: - id: f4ff85ba33dd11e797950a57719b2edb - companyName: Widgets Limited - accountRef: - id: 9a25937b267a11e797950a57719b2edb - name: Current - totalAmount: -1080 - currency: GBP - currencyRate: 1 - date: '2017-05-08T00:00:00' - note: Customer refund using credit/debit card - lines: - - amount: -1080 - links: - - type: CreditNote - id: c1a0176c33de11e797950a57719b2edb - amount: 1080 - currencyRate: 1 - modifiedDate: '2022-10-24T14:55:39Z' - sourceModifiedDate: '2017-05-08T11:09:38Z' - - id: 03a5fdc8baa643fb97587033b0c4590b - customerRef: - id: 3cc3148bbd8111e8bad90617b3da4b8a - companyName: John's Test Customer - accountRef: - id: 2572c8766afc11e8aaa5027d54329956 - name: Tide Current - totalAmount: 100 - currency: GBP - currencyRate: 1 - date: '2017-11-23T00:00:00' - note: Customer receipt using credit/debit card - lines: - - amount: 100 - links: - - type: Invoice - id: ede1e735bd8111e8bad90617b3da4b8a - amount: -100 - currencyRate: 1 - modifiedDate: '2022-10-24T14:55:39Z' - sourceModifiedDate: '2019-01-17T14:14:55Z' - pageNumber: 1 - pageSize: 2 - totalResults: 2321 - _links: - current: - href: /companies/390083e2-351b-407c-a3be-55081c36c182/data/payments?page=1&pageSize=2 - self: - href: /companies/390083e2-351b-407c-a3be-55081c36c182/data/payments - next: - href: /companies/390083e2-351b-407c-a3be-55081c36c182/data/payments?page=2&pageSize=2 - Sage Intacct: - value: - results: - - id: '2918' - customerRef: - id: '12' - companyName: MK Manufacturing - accountRef: - id: '353' - name: Current Account - paymentMethodRef: - id: '1' - name: Printed Check - totalAmount: 120 - currency: GBP - date: '2021-04-22T00:00:00' - note: '' - lines: - - amount: 120 - links: - - type: Invoice - id: '2916' - amount: -120 - currencyRate: 1 - modifiedDate: '2023-04-04T16:32:02Z' - sourceModifiedDate: '2021-04-22T11:01:11Z' - metadata: - isDeleted: false - - id: '6105' - customerRef: - id: '531' - companyName: Shoprite - accountRef: - id: '353' - name: Current Account - paymentMethodRef: - id: '6' - name: Cash - totalAmount: 150 - currency: GBP - date: '2022-04-19T00:00:00' - note: '' - lines: - - amount: 150 - links: - - type: PaymentOnAccount - id: '531' - amount: -150 - currencyRate: 1 - modifiedDate: '2023-04-04T16:32:02Z' - sourceModifiedDate: '2022-04-19T13:38:45Z' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 2 - _links: - current: - href: /companies/df02b289-cb16-4964-ac4d-9fd60b04538e/data/payments?page=1&pageSize=2 - self: - href: /companies/df02b289-cb16-4964-ac4d-9fd60b04538e/data/payments - Xero: - value: - results: - - id: 65b746c8-9a5d-4a95-8096-d2316fcff592 - customerRef: - id: afd4093b-c655-4847-8ee2-10a4f2c3eae3 - companyName: Maddox Publishing Group - accountRef: - id: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - name: Business Bank Account - totalAmount: 4200 - currency: GBP - currencyRate: 1 - date: '2022-02-17T00:00:00' - lines: - - amount: 4200 - links: - - type: Invoice - id: 321bfed3-2da2-4969-9358-4de97821181b - amount: -4200 - currencyRate: 1 - modifiedDate: '2023-03-15T20:37:08Z' - sourceModifiedDate: '2021-01-02T22:50:58' - metadata: - isDeleted: false - - id: 8c481b70-b5d7-4de4-a7f7-9e161be2c472 - customerRef: - id: a871a956-05b5-4e2a-9419-7aeb478ca647 - companyName: Ridgeway University - accountRef: - id: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - name: Business Bank Account - totalAmount: 500 - currency: GBP - currencyRate: 1 - date: '2022-02-17T00:00:00' - lines: - - amount: 500 - links: - - type: Invoice - id: 4b6d0c8f-10fa-42cd-a6e5-53b175e90005 - amount: -500 - currencyRate: 1 - modifiedDate: '2023-03-15T20:37:08Z' - sourceModifiedDate: '2021-01-02T22:51:43' - reference: '' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 30 - _links: - current: - href: /companies/5ced9667-a310-443a-a711-958d36377141/data/payments?page=1&pageSize=2 - self: - href: /companies/5ced9667-a310-443a-a711-958d36377141/data/payments - next: - href: /companies/5ced9667-a310-443a-a711-958d36377141/data/payments?page=2&pageSize=2 - Zoho Books: - value: - results: - - id: '104957000000070175' - customerRef: - id: '104957000000037097' - companyName: Test Company - accountRef: - id: '104957000000060010' - name: Abdi Test - totalAmount: 9001 - currency: GBP - currencyRate: 1 - date: '2020-02-06T00:00:00' - note: Cheque deposit - lines: - - amount: 9001 - links: - - type: Invoice - id: '104957000000038052' - amount: -9001 - currencyRate: 1 - modifiedDate: '2022-10-03T08:41:17Z' - reference: '4' - - id: '104957000000067014' - customerRef: - id: '104957000000037097' - companyName: Test Company - accountRef: - id: '104957000000060010' - name: Abdi Test - totalAmount: 9001 - currency: GBP - currencyRate: 1 - date: '2020-02-14T00:00:00' - note: '' - lines: - - amount: 9001 - links: - - type: Invoice - id: '104957000000038106' - amount: -9001 - currencyRate: 1 - modifiedDate: '2022-10-03T08:41:17Z' - reference: '1' - pageNumber: 1 - pageSize: 2 - totalResults: 33 - _links: - current: - href: /companies/d0b68840-db50-4bc3-b88c-96e225333fea/data/payments?page=1&pageSize=2 - self: - href: /companies/d0b68840-db50-4bc3-b88c-96e225333fea/data/payments - next: - href: /companies/d0b68840-db50-4bc3-b88c-96e225333fea/data/payments?page=2&pageSize=2 - '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' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - description: |- - The *List payments* endpoint returns a list of [payments](https://docs.codat.io/lending-api#/schemas/Payment) for a given company's connection. - - [Payments](https://docs.codat.io/lending-api#/schemas/Payment) represent an allocation of money within any customer accounts receivable account. - - Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data). - - operationId: list-accounting-payments - x-speakeasy-group: accounts-receivable.payments - '/companies/{companyId}/data/payments/{paymentId}': - parameters: - - $ref: '#/components/parameters/companyId' - get: - tags: - - Accounts receivable - parameters: - - $ref: '#/components/parameters/paymentId' - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/AccountingPayment' - examples: - Clear Books: - value: - id: 7ba4fc1b-e248-49ba-8bf8-0813d7f203a8 - customerRef: - id: a82042f1-a005-4ca5-bfd3-5bc237123aa5 - companyName: Keara Leffler - accountRef: - id: dbcaf288-2b39-4b95-8ab3-42202ab15918 - name: Business Current Account - totalAmount: 3669.52 - currency: GBP - currencyRate: 1 - date: '2022-04-25T13:04:02' - note: Payment against invoice ac3ac4dd-defe-4f9c-b7bb-2c3fe726a9d1 - lines: - - amount: 3669.52 - links: - - type: Invoice - id: ac3ac4dd-defe-4f9c-b7bb-2c3fe726a9d1 - amount: -3669.52 - currencyRate: 1 - allocatedOnDate: '2022-04-25T13:04:02' - modifiedDate: '2023-04-26T12:38:17Z' - sourceModifiedDate: '2022-04-25T13:04:02' - reference: ac3ac4dd-defe-4f9c-b7bb-2c3fe726a9d1 - metadata: - isDeleted: false - Dynamics 365 Business Central: - value: - id: e0299ced-89d1-ea11-bbaa-000d3a2b9185 - customerRef: - id: b61217b3-89d1-ea11-bbaa-000d3a2b9185 - companyName: Trey Researches - accountRef: - id: 621217b3-89d1-ea11-bbaa-000d3a2b9185 - name: Petty Cash - totalAmount: 128.16 - currency: GBP - currencyRate: 1 - date: '2019-01-15T00:00:00' - note: Invoice 102001 - lines: - - amount: 128.16 - links: - - type: Invoice - id: 18c906bf-89d1-ea11-bbaa-000d3a2b9185 - amount: -128.16 - currencyRate: 1 - allocatedOnDate: '2019-01-15T00:00:00' - modifiedDate: '2023-03-27T14:21:27Z' - sourceModifiedDate: '0001-01-01T00:00:00Z' - reference: 'Document No: 103001' - metadata: - isDeleted: false - Exact (Netherlands): - value: - id: 090f5d9f-d1ce-4a61-985f-d3915618b64a_c3bf08a3-4d51-4859-acbb-5075f9484f87 - customerRef: - id: c3bf08a3-4d51-4859-acbb-5075f9484f87 - companyName: Mr Abe - accountRef: - id: 35717508-0696-4481-a32c-2835f0ed8b4e - name: Test GL account 2 - totalAmount: 229.08 - currency: EUR - currencyRate: 1 - date: '2019-11-26T00:00:00Z' - lines: - - amount: 229.08 - links: - - type: Invoice - id: f010d4df-13ea-45d1-8525-785164df7dd9 - amount: -229.08 - currencyRate: 1 - modifiedDate: '2022-10-26T13:36:13Z' - sourceModifiedDate: '2019-11-26T12:31:46Z' - reference: '19230011' - Exact (UK): - value: - id: 14b7d656-07ee-4d70-aafa-61c0030c08ad_7e566728-a7f3-4860-a7f5-381664673287 - customerRef: - id: 7e566728-a7f3-4860-a7f5-381664673287 - companyName: Customer A - accountRef: - id: 4a4e34b5-7f62-4b64-a44a-073398b14b41 - name: Bank - totalAmount: 1 - currency: GBP - currencyRate: 1 - date: '2020-01-02T00:00:00Z' - lines: - - amount: 1 - links: - - type: Invoice - id: 6220ed43-1fec-4e17-a88f-c7ee5b949e76 - amount: -1 - currencyRate: 1 - modifiedDate: '2022-10-26T13:35:14Z' - sourceModifiedDate: '2020-01-02T10:08:27Z' - reference: '20200002' - FreeAgent: - value: - id: '135234099' - customerRef: - id: '6162049' - companyName: Wintershall Holding GmbH - totalAmount: 100 - currency: GBP - date: '2017-11-23T00:00:00' - note: 'CODAT LTD ref: NOV TOPUP OTHER �100.00 - Invoice receipt against 015' - lines: - - amount: 100 - links: - - type: Invoice - id: '21973931' - amount: -100 - currencyRate: 1 - modifiedDate: '2023-04-25T14:21:37Z' - metadata: - isDeleted: false - FreshBooks: - value: - id: '765831' - customerRef: - id: '113070' - totalAmount: 1 - currency: GBP - date: '2018-09-11T00:00:00' - note: 'Overpayment: invoice #0000003, some test' - lines: - - amount: 1 - links: - - type: PaymentOnAccount - id: '113070' - amount: -1 - currencyRate: 1 - modifiedDate: '2023-03-24T16:07:24Z' - sourceModifiedDate: '2018-09-11T06:58:46' - metadata: - isDeleted: false - KashFlow: - value: - id: '139214921' - customerRef: - id: '85743294' - companyName: Parent customer - totalAmount: 1.2 - currency: GBP - date: '2010-04-07T00:00:00' - note: '' - lines: - - amount: 1.2 - links: - - type: Invoice - id: '137055108' - amount: -1.2 - currencyRate: 1 - modifiedDate: '2022-09-30T10:29:15Z' - Oracle NetSuite: - value: - id: '8828' - customerRef: - id: '417' - companyName: 10 Breww Ltd - totalAmount: 0 - currency: GBP - currencyRate: 1 - date: '2021-04-09T00:00:00' - lines: - - amount: 0 - links: - - type: Invoice - id: '8530' - amount: -16 - currencyRate: 1 - - type: CreditNote - id: '8828' - amount: 16 - currencyRate: 1 - modifiedDate: '2022-09-20T08:18:33Z' - sourceModifiedDate: '2022-02-25T10:58:37' - reference: 'Credit Memo #CM28' - QuickBooks Desktop: - value: - id: 6915-1197775450 - customerRef: - id: 220000-933272658 - companyName: 'Melton, Johnny' - accountRef: - id: 80000-933270541 - name: Undeposited Funds - totalAmount: 14488.64 - currency: GBP - currencyRate: 1 - date: '2023-01-10T00:00:00' - note: Check - 80000-933270541 - lines: - - amount: 14488.64 - links: - - type: Invoice - id: '469E-1071530054' - amount: -14488.64 - currencyRate: 1 - modifiedDate: '2023-04-26T09:08:36Z' - sourceModifiedDate: '2023-12-16T05:06:11' - reference: '19650' - metadata: - isDeleted: false - QuickBooks Online: - value: - id: '710' - customerRef: - id: '9' - companyName: Abe - accountRef: - id: '56' - name: Undeposited Funds - totalAmount: 95.2 - currency: GBP - currencyRate: 1 - date: '2018-10-05T00:00:00' - note: Sarah's Test - lines: - - amount: 95.2 - links: - - type: Invoice - id: '688' - amount: -95.2 - currencyRate: 1 - modifiedDate: '2023-01-18T11:03:14Z' - sourceModifiedDate: '2020-08-14T09:59:29Z' - QuickBooks Online Sandbox: - value: - id: '25' - customerRef: - id: '55' - companyName: Oxon Insurance - Holiday Party - accountRef: - id: '81' - name: Current - totalAmount: 10800 - currency: GBP - currencyRate: 1 - date: '2016-02-12T00:00:00' - note: '' - lines: - - amount: 10800 - links: - - type: PaymentOnAccount - id: '55' - amount: -10800 - currencyRate: 1 - modifiedDate: '2023-04-26T09:36:50Z' - sourceModifiedDate: '2022-02-03T12:09:35Z' - metadata: - isDeleted: false - Sage 200cloud: - value: - id: '29684' - customerRef: - id: STE001 - companyName: Stevenson & Smith - totalAmount: 500 - currency: GBP - currencyRate: 1 - date: '2019-01-30T00:00:00Z' - note: Payment on Account - lines: - - amount: 12.5 - links: - - type: Invoice - id: '29676' - amount: -12.5 - currencyRate: 1 - - amount: 487.5 - links: - - type: Invoice - id: '29851' - amount: -487.5 - currencyRate: 1 - modifiedDate: '2022-10-14T09:36:05Z' - sourceModifiedDate: '2020-02-28T14:23:46Z' - reference: '5897532' - Sage 50 (UK): - value: - id: '53' - customerRef: - id: STE001 - companyName: Stevenson & Smith - accountRef: - id: '1200' - name: Bank Current Account - totalAmount: 500 - currency: GBP - currencyRate: 1 - date: '2021-01-30T00:00:00' - note: 'Sales receipt on account 53 linked to sales invoice tx-3, sales invoice inv-31.' - lines: - - amount: 12.5 - links: - - type: Invoice - id: TX-3 - amount: -12.5 - currencyRate: 1 - - amount: 245.34 - links: - - type: Invoice - id: INV-31 - amount: -245.34 - currencyRate: 1 - - amount: 126.9 - links: - - type: Invoice - id: INV-31 - amount: -126.9 - currencyRate: 1 - - amount: 115.26 - links: - - type: Invoice - id: INV-31 - amount: -115.26 - currencyRate: 1 - modifiedDate: '2023-03-30T14:42:39Z' - sourceModifiedDate: '2022-11-25T09:43:54' - metadata: - isDeleted: false - Sage Business Cloud Accounting: - value: - id: d39f7a5733de11e797950a57719b2edb - customerRef: - id: f4ff85ba33dd11e797950a57719b2edb - companyName: Widgets Limited - accountRef: - id: 9a25937b267a11e797950a57719b2edb - name: Current - totalAmount: -1080 - currency: GBP - currencyRate: 1 - date: '2017-05-08T00:00:00' - note: Customer refund using credit/debit card - lines: - - amount: -1080 - links: - - type: CreditNote - id: c1a0176c33de11e797950a57719b2edb - amount: 1080 - currencyRate: 1 - modifiedDate: '2022-10-24T14:55:39Z' - sourceModifiedDate: '2017-05-08T11:09:38Z' - Sage Intacct: - value: - id: '2918' - customerRef: - id: '12' - companyName: MK Manufacturing - accountRef: - id: '353' - name: Current Account - paymentMethodRef: - id: '1' - name: Printed Check - totalAmount: 120 - currency: GBP - date: '2021-04-22T00:00:00' - note: '' - lines: - - amount: 120 - links: - - type: Invoice - id: '2916' - amount: -120 - currencyRate: 1 - modifiedDate: '2023-04-04T16:32:02Z' - sourceModifiedDate: '2021-04-22T11:01:11Z' - metadata: - isDeleted: false - Xero: - value: - id: 65b746c8-9a5d-4a95-8096-d2316fcff592 - customerRef: - id: afd4093b-c655-4847-8ee2-10a4f2c3eae3 - companyName: Maddox Publishing Group - accountRef: - id: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - name: Business Bank Account - totalAmount: 4200 - currency: GBP - currencyRate: 1 - date: '2022-02-17T00:00:00' - lines: - - amount: 4200 - links: - - type: Invoice - id: 321bfed3-2da2-4969-9358-4de97821181b - amount: -4200 - currencyRate: 1 - modifiedDate: '2023-03-15T20:37:08Z' - sourceModifiedDate: '2021-01-02T22:50:58' - metadata: - isDeleted: false - Zoho Books: - value: - id: '104957000000070175' - customerRef: - id: '104957000000037097' - companyName: Test Company - accountRef: - id: '104957000000060010' - name: Abdi Test - totalAmount: 9001 - currency: GBP - currencyRate: 1 - date: '2020-02-06T00:00:00' - note: Cheque deposit - lines: - - amount: 9001 - links: - - type: Invoice - id: '104957000000038052' - amount: -9001 - currencyRate: 1 - modifiedDate: '2022-10-03T08:41:17Z' - reference: '4' - '401': - $ref: '#/components/responses/Unauthorized' - '402': - $ref: '#/components/responses/Payment-Required' - '403': - $ref: '#/components/responses/Forbidden' - '404': - $ref: '#/components/responses/Not-Found' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - summary: Get payment - description: | - The *Get payment* endpoint returns a single payment for a given paymentId. - - [Payments](https://docs.codat.io/lending-api#/schemas/Payment) represent an allocation of money within any customer accounts receivable account. - - Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data). - operationId: get-accounting-payment - x-speakeasy-group: accounts-receivable.payments - '/companies/{companyId}/data/suppliers': - parameters: - - $ref: '#/components/parameters/companyId' - get: - tags: - - Accounts payable - summary: List suppliers - 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/AccountingSuppliers' - examples: - Clear Books: - value: - results: - - id: owQ2Gqgj9f - supplierName: Abshire - Kshlerin - contactName: Faye Hansen - emailAddress: hello@Abshire-Kshlerin.info - phone: 01338 858162 - addresses: - - type: Delivery - line1: Suite 431 - line2: 289 Giles Lake - city: Cesarmouth - region: Northern Ireland - country: United Kingdom - postalCode: BG40 9GP - registrationNumber: VYL1XZXR - taxNumber: '1396267523.0914588' - status: Active - modifiedDate: '2023-04-26T12:38:17Z' - sourceModifiedDate: '1660-11-28T23:18:00' - defaultCurrency: GBP - metadata: - isDeleted: false - - id: FyUkHbZxhn - supplierName: Arjun Kuvalis - contactName: Werner Langworth - emailAddress: Arjun34@hotmail.com - phone: 0116 796 3163 - addresses: - - type: Delivery - line1: Suite 214 - line2: 8439 Lueilwitz Passage - city: Fernandohaven - region: Northern Ireland - country: United Kingdom - postalCode: JG04 7PV - - type: Delivery - line1: Suite 096 - line2: 864 Halie Course - city: Juliochester - region: England - country: United Kingdom - postalCode: DZ8 4BF - - type: Delivery - line1: Suite 001 - line2: 416 Stokes Fords - city: Naderborough - region: Wales - country: United Kingdom - postalCode: XG25 0XX - registrationNumber: NI7JEJVM - taxNumber: '7505220209.583549' - status: Active - modifiedDate: '2023-04-26T12:38:17Z' - sourceModifiedDate: '0177-04-27T11:56:00' - defaultCurrency: GBP - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 100 - _links: - current: - href: /companies/354a121b-855f-4d25-90ad-0905b498c1c0/data/suppliers?page=1&pageSize=2 - self: - href: /companies/354a121b-855f-4d25-90ad-0905b498c1c0/data/suppliers - next: - href: /companies/354a121b-855f-4d25-90ad-0905b498c1c0/data/suppliers?page=2&pageSize=2 - Dynamics 365 Business Central: - value: - results: - - id: 78623f13-931e-eb11-bbf8-0022481b3585 - supplierName: '' - contactName: '' - emailAddress: '' - phone: '' - addresses: - - type: Billing - line1: '' - line2: '' - city: '' - region: '' - country: GB - postalCode: '' - taxNumber: '' - status: Active - modifiedDate: '2023-03-27T14:21:12Z' - sourceModifiedDate: '2020-11-04T11:44:22Z' - defaultCurrency: GBP - metadata: - isDeleted: false - - id: be49ec62-6754-ed11-946f-0022481b67d1 - supplierName: '' - contactName: '' - emailAddress: '' - phone: '' - addresses: - - type: Billing - line1: '' - line2: '' - city: '' - region: '' - country: GB - postalCode: '' - taxNumber: '' - status: Active - modifiedDate: '2023-03-27T14:21:12Z' - sourceModifiedDate: '2022-10-25T13:17:36Z' - defaultCurrency: GBP - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 31 - _links: - current: - href: /companies/d6849caf-c146-41be-8335-b73346e3bd84/data/suppliers?page=1&pageSize=2 - self: - href: /companies/d6849caf-c146-41be-8335-b73346e3bd84/data/suppliers - next: - href: /companies/d6849caf-c146-41be-8335-b73346e3bd84/data/suppliers?page=2&pageSize=2 - Exact (Netherlands): - value: - results: - - id: 3150917c-1d92-4d77-9018-31b5c4758ca9 - supplierName: Abe - contactName: Kelly's Contact Name - emailAddress: sales@kellysupplies.com - phone: 07999 999999 - addresses: - - type: Billing - line1: Unit 51 - city: Bakersfield - region: California - country: US - postalCode: '933081' - registrationNumber: '8409314368' - status: Active - modifiedDate: '2022-10-26T13:32:05Z' - sourceModifiedDate: '2022-07-15T12:01:15Z' - defaultCurrency: EUR - - id: 00014c12-2616-481a-a2e8-31bdf2497775 - supplierName: Ann's test supplier 2 - contactName: Ann's contact name - emailAddress: anna@anna888888.com - phone: '55555555' - addresses: - - type: Billing - line1: line1 - line2: line2 - city: city - region: region - country: RU - postalCode: postal - registrationNumber: '55566677788899944455' - taxNumber: RU4444444 - status: Active - modifiedDate: '2022-10-26T13:32:05Z' - sourceModifiedDate: '2021-06-09T12:04:08Z' - defaultCurrency: USD - pageNumber: 1 - pageSize: 2 - totalResults: 73 - _links: - current: - href: /companies/b83b1923-4db6-45a8-a779-b4e320c15979/data/suppliers?page=1&pageSize=2 - self: - href: /companies/b83b1923-4db6-45a8-a779-b4e320c15979/data/suppliers - next: - href: /companies/b83b1923-4db6-45a8-a779-b4e320c15979/data/suppliers?page=2&pageSize=2 - Exact (UK): - value: - results: - - id: 0185fea2-0298-445b-909a-0db685118a9e - supplierName: a - addresses: - - type: Billing - country: GB - status: Active - modifiedDate: '2022-10-26T13:33:13Z' - sourceModifiedDate: '2017-08-02T10:58:54Z' - defaultCurrency: GBP - - id: 64ae712f-4155-48bb-9fce-98232c51d979 - supplierName: aa - addresses: - - type: Billing - country: GB - status: Active - modifiedDate: '2022-10-26T13:33:13Z' - sourceModifiedDate: '2020-05-01T14:05:46Z' - defaultCurrency: GBP - pageNumber: 1 - pageSize: 2 - totalResults: 118 - _links: - current: - href: /companies/d95030cd-22b2-482b-9c7b-2980dcc2b1ce/data/suppliers?page=1&pageSize=2 - self: - href: /companies/d95030cd-22b2-482b-9c7b-2980dcc2b1ce/data/suppliers - next: - href: /companies/d95030cd-22b2-482b-9c7b-2980dcc2b1ce/data/suppliers?page=2&pageSize=2 - FreeAgent: - value: - results: - - id: '11526230' - supplierName: '-' - contactName: Test 1 - addresses: - - type: Billing - line1: 1 Place House - line2: '' - city: London - country: United Kingdom - postalCode: WC1X 1AH - status: Active - modifiedDate: '2023-04-25T14:19:08Z' - sourceModifiedDate: '2023-04-17T06:02:46' - metadata: - isDeleted: false - - id: '9677150' - supplierName: '-' - contactName: Test 1 - addresses: - - type: Billing - line1: 1 Place House - line2: '' - city: London - country: United Kingdom - postalCode: WC1X 1AH - status: Active - modifiedDate: '2023-04-25T14:19:08Z' - sourceModifiedDate: '2023-04-24T06:19:23' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 159 - _links: - current: - href: /companies/071ad738-68f3-4561-afd0-69bab9df0803/data/suppliers?page=1&pageSize=2 - self: - href: /companies/071ad738-68f3-4561-afd0-69bab9df0803/data/suppliers - next: - href: /companies/071ad738-68f3-4561-afd0-69bab9df0803/data/suppliers?page=2&pageSize=2 - FreshBooks: - value: - results: - - id: api vendor - supplierName: api vendor - addresses: [] - status: Active - modifiedDate: '2023-03-24T16:07:25Z' - metadata: - isDeleted: false - - id: DUndsRykrmy8kFsc+FvYk29YkJze4zSjGecoF4YcUEhVU7auJ5JkQA0VjXptZ7XQ+D4n6WoxFIkaGY2V/t4flA== - supplierName: 'Chekko Test merchant 100 - Test Very long name: ORIG CO NAME:AMERICAN EXPRESS ORIG ID:9493560001 DESC DATE:220307 CO ENTRY DESCR:ACH PMT SEC:CCD TRACE#:021000023255482 EED:220307 IND ID:A4670 IND NAME:Rick Sanchez' - addresses: [] - status: Active - modifiedDate: '2023-03-24T16:07:25Z' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 7 - _links: - current: - href: /companies/3691c49e-0db4-4172-b3ab-e4084c365013/data/suppliers?page=1&pageSize=2 - self: - href: /companies/3691c49e-0db4-4172-b3ab-e4084c365013/data/suppliers - next: - href: /companies/3691c49e-0db4-4172-b3ab-e4084c365013/data/suppliers?page=2&pageSize=2 - KashFlow: - value: - results: - - id: '6202387' - supplierName: Dell - contactName: '' - emailAddress: '' - phone: '' - addresses: [] - taxNumber: '' - status: Unknown - modifiedDate: '2022-09-30T10:29:15Z' - sourceModifiedDate: '2017-05-09T00:00:00' - - id: '9338173' - supplierName: Home - contactName: '' - emailAddress: '' - phone: '' - addresses: [] - taxNumber: '' - status: Unknown - modifiedDate: '2022-09-30T10:29:15Z' - sourceModifiedDate: '1990-01-01T00:00:00' - pageNumber: 1 - pageSize: 2 - totalResults: 7 - _links: - current: - href: /companies/3a707a99-89da-4b16-a5d6-595333a16352/data/suppliers?page=1&pageSize=2 - self: - href: /companies/3a707a99-89da-4b16-a5d6-595333a16352/data/suppliers - next: - href: /companies/3a707a99-89da-4b16-a5d6-595333a16352/data/suppliers?page=2&pageSize=2 - Oracle NetSuite: - value: - results: - - id: '779' - supplierName: Test Vendor - contactName: Test Vendor - emailAddress: '' - phone: '' - addresses: [] - status: Active - modifiedDate: '2023-01-30T14:47:02Z' - sourceModifiedDate: '2022-02-04T14:24:43' - defaultCurrency: GBP - - id: '726' - supplierName: Vendor -.A - contactName: Vendor -.A - emailAddress: '' - phone: '' - addresses: [] - status: Active - modifiedDate: '2023-01-30T14:47:02Z' - sourceModifiedDate: '2021-03-26T09:53:15' - defaultCurrency: GBP - pageNumber: 1 - pageSize: 2 - totalResults: 6 - _links: - current: - href: /companies/d5074b08-6a34-4b06-a742-236edf5dc4f1/data/suppliers?page=1&pageSize=2 - self: - href: /companies/d5074b08-6a34-4b06-a742-236edf5dc4f1/data/suppliers - next: - href: /companies/d5074b08-6a34-4b06-a742-236edf5dc4f1/data/suppliers?page=2&pageSize=2 - QuickBooks Desktop: - value: - results: - - id: A60000-1197760912 - supplierName: A Cheung Limited - contactName: Angela Cheung - emailAddress: AC@CheungLimited.com - phone: 510 555 5723 - addresses: - - type: Billing - line1: 'A Cheung Limited, Angela Cheung' - line2: 3818 Bear Rd. West - city: Berkeley - region: CA - postalCode: '94688' - status: Active - modifiedDate: '2023-04-26T09:09:03Z' - sourceModifiedDate: '2023-12-16T05:06:44' - defaultCurrency: GBP - metadata: - isDeleted: false - - id: A40000-1197774038 - supplierName: Bank of Anycity - contactName: Lisa D. Holzhauser - emailAddress: lisah@samplename.com - phone: 415-555-9135 - addresses: - - type: Billing - line1: 'Bank of Anycity, Lisa Holzhauser' - line2: 1935 Main Street - city: Middlefield - region: CA - postalCode: '94482' - status: Active - modifiedDate: '2023-04-26T09:09:03Z' - sourceModifiedDate: '2023-12-16T05:06:44' - defaultCurrency: GBP - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 54 - _links: - current: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/data/suppliers?page=1&pageSize=2 - self: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/data/suppliers - next: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/data/suppliers?page=2&pageSize=2 - QuickBooks Online: - value: - results: - - id: '41' - supplierName: AI Support - contactName: AI Support - addresses: - - type: Billing - line1: test - region: string - country: Djibouti - status: Active - modifiedDate: '2023-01-18T11:02:36Z' - sourceModifiedDate: '2022-12-07T10:48:18Z' - defaultCurrency: GBP - - id: '42' - supplierName: AI Support 2 - contactName: AI Support 2 - addresses: - - type: Billing - line1: test - region: string - country: DJ - status: Active - modifiedDate: '2023-01-18T11:02:36Z' - sourceModifiedDate: '2021-08-31T08:45:02Z' - defaultCurrency: GBP - pageNumber: 1 - pageSize: 2 - totalResults: 23 - _links: - current: - href: /companies/10818b5e-6e6a-4ed4-a1c5-3e3efe626e87/data/suppliers?page=1&pageSize=2 - self: - href: /companies/10818b5e-6e6a-4ed4-a1c5-3e3efe626e87/data/suppliers - next: - href: /companies/10818b5e-6e6a-4ed4-a1c5-3e3efe626e87/data/suppliers?page=2&pageSize=2 - QuickBooks Online Sandbox: - value: - results: - - id: '129' - supplierName: Ally Johnson - contactName: Miss Smith - phone: 0728 38474 - addresses: - - type: Billing - line1: 100 London Road - line2: Angel - city: London - region: Greater London - country: England - postalCode: EC1M - status: Active - modifiedDate: '2023-04-26T09:35:55Z' - sourceModifiedDate: '2023-04-13T01:51:08Z' - defaultCurrency: GBP - metadata: - isDeleted: false - - id: '88' - supplierName: Andrew Haberbosch - addresses: [] - status: Active - modifiedDate: '2023-04-26T09:35:55Z' - sourceModifiedDate: '2022-07-06T15:55:28Z' - defaultCurrency: GBP - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 64 - _links: - current: - href: /companies/5a7f3597-36e1-4216-86fe-289ad36088a6/data/suppliers?page=1&pageSize=2 - self: - href: /companies/5a7f3597-36e1-4216-86fe-289ad36088a6/data/suppliers - next: - href: /companies/5a7f3597-36e1-4216-86fe-289ad36088a6/data/suppliers?page=2&pageSize=2 - Sage 200cloud: - value: - results: - - id: '776' - supplierName: Aaren - contactName: '' - emailAddress: '' - phone: '' - addresses: - - type: Unknown - line1: '' - line2: '' - city: '' - region: '' - country: Great Britain - postalCode: '' - taxNumber: '' - status: Archived - modifiedDate: '2022-10-14T09:35:58Z' - defaultCurrency: GBP - metadata: - isDeleted: true - - id: '914' - supplierName: Aaren - contactName: '' - emailAddress: '' - phone: '' - addresses: - - type: Unknown - line1: '' - line2: '' - city: '' - region: '' - country: Great Britain - postalCode: '' - taxNumber: '' - status: Archived - modifiedDate: '2022-10-14T09:35:58Z' - defaultCurrency: GBP - metadata: - isDeleted: true - pageNumber: 1 - pageSize: 2 - totalResults: 943 - _links: - current: - href: /companies/93c21e2d-049c-4d24-b41b-57e61c30b69e/data/suppliers?page=1&pageSize=2 - self: - href: /companies/93c21e2d-049c-4d24-b41b-57e61c30b69e/data/suppliers - next: - href: /companies/93c21e2d-049c-4d24-b41b-57e61c30b69e/data/suppliers?page=2&pageSize=2 - Sage 50 (UK): - value: - results: - - id: CON001 - supplierName: Concept Stationery Supplies - contactName: Mark Ramsay - emailAddress: newbusinessadvice@sage.com - phone: 0191 643 4343 - addresses: - - type: Delivery - line1: 66 New Street - line2: Ridgeway - city: Newcastle Upon Tyne - region: '' - country: GB - postalCode: NE1 4GF - - type: Unknown - line1: 66 New Street - line2: Ridgeway - city: Newcastle upon Tyne - region: '' - country: GB - postalCode: NE1 4GF - taxNumber: GB988 3453 23 - status: Active - modifiedDate: '2023-03-30T14:42:38Z' - sourceModifiedDate: '2022-11-25T09:43:54Z' - defaultCurrency: GBP - metadata: - isDeleted: false - - id: MCN001 - supplierName: McNally Computer Supplies - contactName: Stuart Lynn - emailAddress: newbusinessadvice@sage.com - phone: 0191 415 3434 - addresses: - - type: Delivery - line1: Station Lane Ind Est - line2: Birtley - city: Chester le Street - region: County Durham - country: GB - postalCode: DH1 3RG - - type: Unknown - line1: Station Lane Ind Est - line2: Birtley - city: Chester le Street - region: County Durham - country: GB - postalCode: DH1 3RG - taxNumber: GB455 2385 34 - status: Active - modifiedDate: '2023-03-30T14:42:38Z' - sourceModifiedDate: '2022-12-05T13:37:26Z' - defaultCurrency: GBP - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 15 - _links: - current: - href: /companies/cf5f2a47-2990-4221-bae6-0c19c86ac304/data/suppliers?page=1&pageSize=2 - self: - href: /companies/cf5f2a47-2990-4221-bae6-0c19c86ac304/data/suppliers - next: - href: /companies/cf5f2a47-2990-4221-bae6-0c19c86ac304/data/suppliers?page=2&pageSize=2 - Sage Business Cloud Accounting: - value: - results: - - id: 65179671e9ef424caff8b9006cd111c8 - supplierName: 5555 Abdul's Test Name - contactName: Main Contact - addresses: - - type: Billing - country: United Kingdom (GB) - status: Active - modifiedDate: '2022-10-24T14:52:54Z' - sourceModifiedDate: '2020-02-25T17:23:33Z' - defaultCurrency: GBP - - id: cf7f44d693904944a6a7cf3de0887964 - supplierName: Abdi Supplier - contactName: Abdi - emailAddress: abdisupplier@company.com - addresses: - - type: Billing - line1: 1 Place House - city: London - country: United Kingdom (GB) - postalCode: WC1X 1AH - status: Active - modifiedDate: '2022-10-24T14:52:54Z' - sourceModifiedDate: '2020-02-13T10:38:19Z' - defaultCurrency: GBP - pageNumber: 1 - pageSize: 2 - totalResults: 64 - _links: - current: - href: /companies/390083e2-351b-407c-a3be-55081c36c182/data/suppliers?page=1&pageSize=2 - self: - href: /companies/390083e2-351b-407c-a3be-55081c36c182/data/suppliers - next: - href: /companies/390083e2-351b-407c-a3be-55081c36c182/data/suppliers?page=2&pageSize=2 - Sage Intacct: - value: - results: - - id: '3' - supplierName: ADP - contactName: 'Jones, William' - phone: 214-760-9491 - addresses: - - type: Unknown - line1: 208 S Akard St - line2: '' - city: Dallas - region: TX - country: United States - postalCode: '75265' - registrationNumber: '' - taxNumber: 85-3678274 - status: Active - modifiedDate: '2023-04-04T16:32:20Z' - sourceModifiedDate: '2023-02-16T09:48:27' - defaultCurrency: USD - metadata: - isDeleted: false - - id: '29' - supplierName: Advisor Printing - contactName: 'Roach, Nathan' - phone: 130-202-4796 - addresses: - - type: Unknown - line1: 5 Carey Hill - line2: '' - city: Drayton Valley - region: Alberta - country: Canada - postalCode: G8V - registrationNumber: '' - taxNumber: '' - status: Active - modifiedDate: '2023-04-04T16:32:20Z' - sourceModifiedDate: '2022-06-15T11:38:29' - defaultCurrency: CAD - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 77 - _links: - current: - href: /companies/df02b289-cb16-4964-ac4d-9fd60b04538e/data/suppliers?page=1&pageSize=2 - self: - href: /companies/df02b289-cb16-4964-ac4d-9fd60b04538e/data/suppliers - next: - href: /companies/df02b289-cb16-4964-ac4d-9fd60b04538e/data/suppliers?page=2&pageSize=2 - Wave: - value: - results: - - id: QnVzaW5lc3M6ZTI0OGQyZDctMWE5Ni00YTk4LWFkOTEtMDdlMGYyMmNhNmE2O1ZlbmRvcjo2NjA0Nzk0 - supplierName: Computer Shop - contactName: '' - emailAddress: '' - addresses: [] - status: Active - modifiedDate: '2022-11-16T18:15:24Z' - sourceModifiedDate: '2020-04-07T13:28:02Z' - defaultCurrency: GBP - - id: QnVzaW5lc3M6ZTI0OGQyZDctMWE5Ni00YTk4LWFkOTEtMDdlMGYyMmNhNmE2O1ZlbmRvcjo2NjA0NzQx - supplierName: Flour Mill - contactName: '' - emailAddress: '' - addresses: [] - status: Active - modifiedDate: '2022-11-16T18:15:24Z' - sourceModifiedDate: '2020-04-07T13:12:40Z' - defaultCurrency: GBP - pageNumber: 1 - pageSize: 2 - totalResults: 9 - _links: - current: - href: /companies/0b22b59d-b4e5-4c35-b03f-88bbbcb41256/data/suppliers?page=1&pageSize=2 - self: - href: /companies/0b22b59d-b4e5-4c35-b03f-88bbbcb41256/data/suppliers - next: - href: /companies/0b22b59d-b4e5-4c35-b03f-88bbbcb41256/data/suppliers?page=2&pageSize=2 - Xero: - value: - results: - - id: e4c9d0e2-c285-4e85-b579-6d28b180c730 - supplierName: 24 Locks - emailAddress: '' - addresses: [] - status: Active - modifiedDate: '2023-03-15T20:36:09Z' - sourceModifiedDate: '2023-02-17T18:03:42' - metadata: - isDeleted: false - - id: bab779bc-c5fb-42cb-a888-953e8309711c - supplierName: 7-Eleven - emailAddress: '' - addresses: [] - status: Active - modifiedDate: '2023-03-15T20:36:09Z' - sourceModifiedDate: '2023-02-17T18:03:42' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 48 - _links: - current: - href: /companies/5ced9667-a310-443a-a711-958d36377141/data/suppliers?page=1&pageSize=2 - self: - href: /companies/5ced9667-a310-443a-a711-958d36377141/data/suppliers - next: - href: /companies/5ced9667-a310-443a-a711-958d36377141/data/suppliers?page=2&pageSize=2 - Zoho Books: - value: - results: - - id: '104957000001494001' - supplierName: Acme Corporation - emailAddress: '' - addresses: [] - status: Active - modifiedDate: '2022-10-03T08:40:37Z' - sourceModifiedDate: '2022-09-16T13:09:56' - defaultCurrency: GBP - - id: '104957000000648001' - supplierName: Cool company - contactName: Dre - emailAddress: '' - addresses: [] - status: Active - modifiedDate: '2022-10-03T08:40:37Z' - sourceModifiedDate: '2022-06-10T09:07:16' - defaultCurrency: CAD - pageNumber: 1 - pageSize: 2 - totalResults: 6 - _links: - current: - href: /companies/d0b68840-db50-4bc3-b88c-96e225333fea/data/suppliers?page=1&pageSize=2 - self: - href: /companies/d0b68840-db50-4bc3-b88c-96e225333fea/data/suppliers - next: - href: /companies/d0b68840-db50-4bc3-b88c-96e225333fea/data/suppliers?page=2&pageSize=2 - '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' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - description: |- - The *List suppliers* endpoint returns a list of [suppliers](https://docs.codat.io/lending-api#/schemas/Supplier) for a given company's connection. - - [Suppliers](https://docs.codat.io/lending-api#/schemas/Supplier) are people or organizations that provide something, such as a product or service. - - Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data). - - operationId: list-accounting-suppliers - x-speakeasy-group: accounts-payable.suppliers - '/companies/{companyId}/data/suppliers/{supplierId}': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/accountingSupplierId' - get: - tags: - - Accounts payable - summary: Get supplier - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/AccountingSupplier' - examples: - Clear Books: - value: - id: owQ2Gqgj9f - supplierName: Abshire - Kshlerin - contactName: Faye Hansen - emailAddress: hello@Abshire-Kshlerin.info - phone: 01338 858162 - addresses: - - type: Delivery - line1: Suite 431 - line2: 289 Giles Lake - city: Cesarmouth - region: Northern Ireland - country: United Kingdom - postalCode: BG40 9GP - registrationNumber: VYL1XZXR - taxNumber: '1396267523.0914588' - status: Active - modifiedDate: '2023-04-26T12:38:17Z' - sourceModifiedDate: '1660-11-28T23:18:00' - defaultCurrency: GBP - metadata: - isDeleted: false - Dynamics 365 Business Central: - value: - id: 78623f13-931e-eb11-bbf8-0022481b3585 - supplierName: '' - contactName: '' - emailAddress: '' - phone: '' - addresses: - - type: Billing - line1: '' - line2: '' - city: '' - region: '' - country: GB - postalCode: '' - taxNumber: '' - status: Active - modifiedDate: '2023-03-27T14:21:12Z' - sourceModifiedDate: '2020-11-04T11:44:22Z' - defaultCurrency: GBP - metadata: - isDeleted: false - Exact (Netherlands): - value: - id: 3150917c-1d92-4d77-9018-31b5c4758ca9 - supplierName: Abe - contactName: Kelly's Contact Name - emailAddress: sales@kellysupplies.com - phone: 07999 999999 - addresses: - - type: Billing - line1: Unit 51 - city: Bakersfield - region: California - country: US - postalCode: '933081' - registrationNumber: '8409314368' - status: Active - modifiedDate: '2022-10-26T13:32:05Z' - sourceModifiedDate: '2022-07-15T12:01:15Z' - defaultCurrency: EUR - Exact (UK): - value: - id: 0185fea2-0298-445b-909a-0db685118a9e - supplierName: a - addresses: - - type: Billing - country: GB - status: Active - modifiedDate: '2022-10-26T13:33:13Z' - sourceModifiedDate: '2017-08-02T10:58:54Z' - defaultCurrency: GBP - FreeAgent: - value: - id: '11526230' - supplierName: '-' - contactName: Test 1 - addresses: - - type: Billing - line1: 1 Place House - line2: '' - city: London - country: United Kingdom - postalCode: WC1X 1AH - status: Active - modifiedDate: '2023-04-25T14:19:08Z' - sourceModifiedDate: '2023-04-17T06:02:46' - metadata: - isDeleted: false - FreshBooks: - value: - id: api vendor - supplierName: api vendor - addresses: [] - status: Active - modifiedDate: '2023-03-24T16:07:25Z' - metadata: - isDeleted: false - KashFlow: - value: - id: '6202387' - supplierName: Dell - contactName: '' - emailAddress: '' - phone: '' - addresses: [] - taxNumber: '' - status: Unknown - modifiedDate: '2022-09-30T10:29:15Z' - sourceModifiedDate: '2017-05-09T00:00:00' - Oracle NetSuite: - value: - id: '779' - supplierName: Test Vendor - contactName: Test Vendor - emailAddress: '' - phone: '' - addresses: [] - status: Active - modifiedDate: '2023-01-30T14:47:02Z' - sourceModifiedDate: '2022-02-04T14:24:43' - defaultCurrency: GBP - QuickBooks Desktop: - value: - id: A60000-1197760912 - supplierName: A Cheung Limited - contactName: Angela Cheung - emailAddress: AC@CheungLimited.com - phone: 510 555 5723 - addresses: - - type: Billing - line1: 'A Cheung Limited, Angela Cheung' - line2: 3818 Bear Rd. West - city: Berkeley - region: CA - postalCode: '94688' - status: Active - modifiedDate: '2023-04-26T09:09:03Z' - sourceModifiedDate: '2023-12-16T05:06:44' - defaultCurrency: GBP - metadata: - isDeleted: false - QuickBooks Online: - value: - id: '41' - supplierName: AI Support - contactName: AI Support - addresses: - - type: Billing - line1: test - region: string - country: Djibouti - status: Active - modifiedDate: '2023-01-18T11:02:36Z' - sourceModifiedDate: '2022-12-07T10:48:18Z' - defaultCurrency: GBP - QuickBooks Online Sandbox: - value: - id: '129' - supplierName: Ally Johnson - contactName: Miss Smith - phone: 0728 38474 - addresses: - - type: Billing - line1: 100 London Road - line2: Angel - city: London - region: Greater London - country: England - postalCode: EC1M - status: Active - modifiedDate: '2023-04-26T09:35:55Z' - sourceModifiedDate: '2023-04-13T01:51:08Z' - defaultCurrency: GBP - metadata: - isDeleted: false - Sage 200cloud: - value: - id: '776' - supplierName: Aaren - contactName: '' - emailAddress: '' - phone: '' - addresses: - - type: Unknown - line1: '' - line2: '' - city: '' - region: '' - country: Great Britain - postalCode: '' - taxNumber: '' - status: Archived - modifiedDate: '2022-10-14T09:35:58Z' - defaultCurrency: GBP - metadata: - isDeleted: true - Sage 50 (UK): - value: - id: CON001 - supplierName: Concept Stationery Supplies - contactName: Mark Ramsay - emailAddress: newbusinessadvice@sage.com - phone: 0191 643 4343 - addresses: - - type: Delivery - line1: 66 New Street - line2: Ridgeway - city: Newcastle Upon Tyne - region: '' - country: GB - postalCode: NE1 4GF - - type: Unknown - line1: 66 New Street - line2: Ridgeway - city: Newcastle upon Tyne - region: '' - country: GB - postalCode: NE1 4GF - taxNumber: GB988 3453 23 - status: Active - modifiedDate: '2023-03-30T14:42:38Z' - sourceModifiedDate: '2022-11-25T09:43:54Z' - defaultCurrency: GBP - metadata: - isDeleted: false - Sage Business Cloud Accounting: - value: - id: 65179671e9ef424caff8b9006cd111c8 - supplierName: 5555 Abdul's Test Name - contactName: Main Contact - addresses: - - type: Billing - country: United Kingdom (GB) - status: Active - modifiedDate: '2022-10-24T14:52:54Z' - sourceModifiedDate: '2020-02-25T17:23:33Z' - defaultCurrency: GBP - Sage Intacct: - value: - id: '3' - supplierName: ADP - contactName: 'Jones, William' - phone: 214-760-9491 - addresses: - - type: Unknown - line1: 208 S Akard St - line2: '' - city: Dallas - region: TX - country: United States - postalCode: '75265' - registrationNumber: '' - taxNumber: 85-3678274 - status: Active - modifiedDate: '2023-04-04T16:32:20Z' - sourceModifiedDate: '2023-02-16T09:48:27' - defaultCurrency: USD - metadata: - isDeleted: false - Wave: - value: - id: QnVzaW5lc3M6ZTI0OGQyZDctMWE5Ni00YTk4LWFkOTEtMDdlMGYyMmNhNmE2O1ZlbmRvcjo2NjA0Nzk0 - supplierName: Computer Shop - contactName: '' - emailAddress: '' - addresses: [] - status: Active - modifiedDate: '2022-11-16T18:15:24Z' - sourceModifiedDate: '2020-04-07T13:28:02Z' - defaultCurrency: GBP - Xero: - value: - id: e4c9d0e2-c285-4e85-b579-6d28b180c730 - supplierName: 24 Locks - emailAddress: '' - addresses: [] - status: Active - modifiedDate: '2023-03-15T20:36:09Z' - sourceModifiedDate: '2023-02-17T18:03:42' - metadata: - isDeleted: false - Zoho Books: - value: - id: '104957000001494001' - supplierName: Acme Corporation - emailAddress: '' - addresses: [] - status: Active - modifiedDate: '2022-10-03T08:40:37Z' - sourceModifiedDate: '2022-09-16T13:09:56' - defaultCurrency: GBP - '401': - $ref: '#/components/responses/Unauthorized' - '402': - $ref: '#/components/responses/Payment-Required' - '403': - $ref: '#/components/responses/Forbidden' - '404': - $ref: '#/components/responses/Not-Found' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - description: | - The *Get supplier* endpoint returns a single supplier for a given supplierId. - - [Suppliers](https://docs.codat.io/lending-api#/schemas/Supplier) are people or organizations that provide something, such as a product or service. - - Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data). - operationId: get-accounting-supplier - x-speakeasy-group: accounts-payable.suppliers - '/companies/{companyId}/connections/{connectionId}/data/suppliers/{supplierId}/attachments': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - - $ref: '#/components/parameters/accountingSupplierId' - get: - tags: - - Accounts payable - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/Attachments' - '401': - $ref: '#/components/responses/Unauthorized' - '402': - $ref: '#/components/responses/Payment-Required' - '403': - $ref: '#/components/responses/Forbidden' - '404': - $ref: '#/components/responses/Not-Found' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - summary: List supplier attachments - description: | - The *List supplier attachments* endpoint returns a list of attachments available to download for given `supplierId`. - - [Suppliers](https://docs.codat.io/lending-api#/schemas/Supplier) are people or organizations that provide something, such as a product or service. - operationId: list-accounting-supplier-attachments - x-speakeasy-group: accounts-payable.suppliers - '/companies/{companyId}/connections/{connectionId}/data/suppliers/{supplierId}/attachments/{attachmentId}': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - - $ref: '#/components/parameters/accountingSupplierId' - - $ref: '#/components/parameters/attachmentId' - get: - tags: - - Accounts payable - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/AccountingAttachment' - examples: {} - '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' - summary: Get supplier attachment - description: | - The *Get supplier attachment* endpoint returns a specific attachment for a given `supplierId` and `attachmentId`. - - [Suppliers](https://docs.codat.io/lending-api#/schemas/Supplier) are people or organizations that provide something, such as a product or service. - operationId: get-accounting-supplier-attachment - x-speakeasy-group: accounts-payable.suppliers - '/companies/{companyId}/connections/{connectionId}/data/suppliers/{supplierId}/attachments/{attachmentId}/download': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - - $ref: '#/components/parameters/accountingSupplierId' - - $ref: '#/components/parameters/attachmentId' - get: - tags: - - Accounts payable - responses: - '200': - description: Success - content: - application/octet-stream: - schema: - title: Data - type: string - format: binary - '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' - summary: Download supplier attachment - description: | - The *Download supplier attachment* endpoint downloads a specific attachment for a given `supplierId` and `attachmentId`. - - [Suppliers](https://docs.codat.io/lending-api#/schemas/Supplier) are people or organizations that provide something, such as a product or service. - operationId: download-accounting-supplier-attachment - x-speakeasy-group: accounts-payable.suppliers - '/companies/{companyId}/connections/{connectionId}/data/transfers': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - get: - tags: - - Transactions - summary: List transfers - 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/AccountingTransfers' - examples: - Clear Books: - value: - results: - - id: 0bd2f801-6f02-44d6-a2ab-5431553d16f9 - description: depositing 16531.08 into Current Account - contactRef: - id: e4baf949-cb1d-4341-8452-200a93baa3fa - dataType: customers - date: '2022-04-25T07:20:00' - from: - accountRef: - id: ff8fdc4c-2aad-4ec1-9430-6bd201832eb3 - dataType: bankAccounts - currency: GBP - amount: 16531.08 - status: Unknown - to: - accountRef: - id: dbcaf288-2b39-4b95-8ab3-42202ab15918 - dataType: bankAccounts - currency: GBP - amount: 16531.08 - status: Unknown - trackingCategoryRefs: [] - depositedRecordRefs: - - id: fc253cca-0dfe-46e8-b75f-c7fb3db760b2 - dataType: directIncomes - modifiedDate: '2023-04-26T12:38:18' - sourceModifiedDate: '2022-04-25T07:20:00' - metadata: - isDeleted: false - - id: 78373000-29e1-4ef4-a2e6-9b573ed656e4 - description: depositing 188.33 into Current Account - contactRef: - id: 51f03576-f6b0-40d5-9fba-81a490411c03 - dataType: customers - date: '2022-04-25T07:20:00' - from: - accountRef: - id: ff8fdc4c-2aad-4ec1-9430-6bd201832eb3 - dataType: bankAccounts - currency: GBP - amount: 188.33 - status: Unknown - to: - accountRef: - id: dbcaf288-2b39-4b95-8ab3-42202ab15918 - dataType: bankAccounts - currency: GBP - amount: 188.33 - status: Unknown - trackingCategoryRefs: [] - depositedRecordRefs: - - id: 38e8c917-0afc-4583-8ffe-1b53ad601197 - dataType: directIncomes - modifiedDate: '2023-04-26T12:38:18' - sourceModifiedDate: '2022-04-25T07:20:00' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 357 - _links: - current: - href: /companies/354a121b-855f-4d25-90ad-0905b498c1c0/connections/57b731ba-1d45-4386-ba58-2a1ca0234624/data/transfers?page=1&pageSize=2 - self: - href: /companies/354a121b-855f-4d25-90ad-0905b498c1c0/connections/57b731ba-1d45-4386-ba58-2a1ca0234624/data/transfers - next: - href: /companies/354a121b-855f-4d25-90ad-0905b498c1c0/connections/57b731ba-1d45-4386-ba58-2a1ca0234624/data/transfers?page=2&pageSize=2 - Dynamics 365 Business Central: - value: - results: - - id: G00001 - date: '2020-11-26T00:00:00' - from: - accountRef: - id: cf1417b3-89d1-ea11-bbaa-000d3a2b9185 - dataType: bankAccounts - currency: GBP - amount: 20 - status: Unknown - to: - accountRef: - id: ce1417b3-89d1-ea11-bbaa-000d3a2b9185 - dataType: bankAccounts - currency: GBP - amount: 20 - status: Unknown - trackingCategoryRefs: [] - depositedRecordRefs: [] - modifiedDate: '2023-03-27T14:21:26' - sourceModifiedDate: '2020-11-26T12:16:44Z' - metadata: - isDeleted: false - - id: TST-001 - date: '2022-10-25T00:00:00' - from: - accountRef: - id: 8277672c-b8e6-ec11-82f8-0022481a77f0 - dataType: bankAccounts - currency: USD - amount: 3.6 - status: Unknown - to: - accountRef: - id: 8982e7d8-cb19-eb11-bbf9-0022481ad2f4 - dataType: bankAccounts - currency: GBP - amount: 2.34 - status: Unknown - trackingCategoryRefs: [] - depositedRecordRefs: [] - modifiedDate: '2023-03-27T14:21:26' - sourceModifiedDate: '2022-10-25T15:47:48Z' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 10 - _links: - current: - href: /companies/d6849caf-c146-41be-8335-b73346e3bd84/connections/60acb117-5cf5-4745-b069-491551da4066/data/transfers?page=1&pageSize=2 - self: - href: /companies/d6849caf-c146-41be-8335-b73346e3bd84/connections/60acb117-5cf5-4745-b069-491551da4066/data/transfers - next: - href: /companies/d6849caf-c146-41be-8335-b73346e3bd84/connections/60acb117-5cf5-4745-b069-491551da4066/data/transfers?page=2&pageSize=2 - FreeAgent: - value: - results: - - id: '307335275' - description: Transfer from Savings Account to Freeagent Test12 - date: '2018-06-14T00:00:00' - from: - accountRef: - id: '532100' - dataType: bankAccounts - currency: GBP - amount: 0.69 - status: Unknown - to: - accountRef: - id: '708504' - dataType: bankAccounts - currency: GBP - amount: 0.69 - status: Unknown - trackingCategoryRefs: - - id: '761' - depositedRecordRefs: [] - modifiedDate: '2023-04-25T14:21:36' - sourceModifiedDate: '2022-03-23T15:55:58Z' - metadata: - isDeleted: false - - id: '308682395' - description: Transfer from Business Current Account to Nic Test11 - date: '2019-12-23T00:00:00' - from: - accountRef: - id: '469976' - dataType: bankAccounts - currency: GBP - amount: 250 - status: Unknown - to: - accountRef: - id: '691393' - dataType: bankAccounts - currency: GBP - amount: 250 - status: Unknown - trackingCategoryRefs: - - id: '761' - depositedRecordRefs: [] - modifiedDate: '2023-04-25T14:21:36' - sourceModifiedDate: '2022-03-31T16:09:27Z' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 99 - _links: - current: - href: /companies/071ad738-68f3-4561-afd0-69bab9df0803/connections/4fd7c69f-ecc1-45f5-83f2-42ed3391e386/data/transfers?page=1&pageSize=2 - self: - href: /companies/071ad738-68f3-4561-afd0-69bab9df0803/connections/4fd7c69f-ecc1-45f5-83f2-42ed3391e386/data/transfers - next: - href: /companies/071ad738-68f3-4561-afd0-69bab9df0803/connections/4fd7c69f-ecc1-45f5-83f2-42ed3391e386/data/transfers?page=2&pageSize=2 - Oracle NetSuite: - value: - results: - - id: 2-1 - contactRef: - id: '417' - dataType: customers - date: '2021-03-10T00:00:00' - from: - accountRef: - id: '122' - dataType: bankAccounts - currency: GBP - amount: 90 - status: Unknown - to: - accountRef: - id: '513' - dataType: bankAccounts - currency: GBP - amount: 90 - status: Unknown - trackingCategoryRefs: - - id: location-1 - depositedRecordRefs: - - id: '428' - dataType: payments - modifiedDate: '2022-09-20T08:16:26' - sourceModifiedDate: '2022-04-28T13:36:47' - - id: 2-11822 - contactRef: - id: '417' - dataType: customers - date: '2022-04-28T00:00:00' - from: - accountRef: - id: '513' - dataType: bankAccounts - currency: GBP - amount: 1200 - status: Unknown - to: - accountRef: - id: '122' - dataType: bankAccounts - currency: GBP - amount: 1200 - status: Unknown - trackingCategoryRefs: - - id: location-1 - depositedRecordRefs: - - id: '7526' - dataType: payments - modifiedDate: '2022-09-20T08:16:26' - sourceModifiedDate: '2022-04-28T14:14:33' - pageNumber: 1 - pageSize: 2 - totalResults: 47 - _links: - current: - href: /companies/973341cc-ca0a-4a88-88de-e5954157818b/connections/5f07dcfb-23c0-49e6-895c-4498ea728ff3/data/transfers?page=1&pageSize=2 - self: - href: /companies/973341cc-ca0a-4a88-88de-e5954157818b/connections/5f07dcfb-23c0-49e6-895c-4498ea728ff3/data/transfers - next: - href: /companies/973341cc-ca0a-4a88-88de-e5954157818b/connections/5f07dcfb-23c0-49e6-895c-4498ea728ff3/data/transfers?page=2&pageSize=2 - QuickBooks Desktop: - value: - results: - - id: 4B1-933288922 - description: Funds Transfer - date: '2024-10-14T00:00:00' - from: - accountRef: - id: 30000-933270541 - dataType: bankAccounts - currency: GBP - amount: 15000 - status: Unknown - to: - accountRef: - id: 20000-933270541 - dataType: bankAccounts - currency: GBP - amount: 15000 - status: Unknown - trackingCategoryRefs: [] - depositedRecordRefs: [] - modifiedDate: '2023-04-26T09:13:45' - sourceModifiedDate: '2023-12-16T05:03:58' - metadata: - isDeleted: false - - id: C2A-933780606 - description: Funds Transfer - date: '2024-11-25T00:00:00' - from: - accountRef: - id: 20000-933270541 - dataType: bankAccounts - currency: GBP - amount: 42300 - status: Unknown - to: - accountRef: - id: 30000-933270541 - dataType: bankAccounts - currency: GBP - amount: 42300 - status: Unknown - trackingCategoryRefs: [] - depositedRecordRefs: [] - modifiedDate: '2023-04-26T09:13:45' - sourceModifiedDate: '2023-12-16T05:04:07' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 4 - _links: - current: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/connections/2c26b4da-97d4-4ba9-baad-1e18b49b96ac/data/transfers?page=1&pageSize=2 - self: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/connections/2c26b4da-97d4-4ba9-baad-1e18b49b96ac/data/transfers - next: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/connections/2c26b4da-97d4-4ba9-baad-1e18b49b96ac/data/transfers?page=2&pageSize=2 - QuickBooks Online Sandbox: - value: - results: - - id: '646' - date: '2020-08-21T00:00:00' - from: - accountRef: - id: '102' - dataType: bankAccounts - currency: GBP - amount: 73.41 - status: Unknown - to: - accountRef: - id: '108' - dataType: bankAccounts - currency: GBP - amount: 73.41 - status: Unknown - trackingCategoryRefs: [] - depositedRecordRefs: [] - modifiedDate: '2023-04-26T09:36:33' - sourceModifiedDate: '2020-08-26T11:41:20Z' - metadata: - isDeleted: false - - id: '678' - date: '2020-08-22T00:00:00' - from: - accountRef: - id: '124' - dataType: bankAccounts - currency: GBP - amount: 66.66 - status: Unknown - to: - accountRef: - id: '109' - dataType: bankAccounts - currency: GBP - amount: 66.66 - status: Unknown - trackingCategoryRefs: [] - depositedRecordRefs: [] - modifiedDate: '2023-04-26T09:36:33' - sourceModifiedDate: '2020-08-29T00:01:20Z' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 442 - _links: - current: - href: /companies/5a7f3597-36e1-4216-86fe-289ad36088a6/connections/1f9f6013-f8a5-4278-8a47-3ab7fdb6c24c/data/transfers?page=1&pageSize=2 - self: - href: /companies/5a7f3597-36e1-4216-86fe-289ad36088a6/connections/1f9f6013-f8a5-4278-8a47-3ab7fdb6c24c/data/transfers - next: - href: /companies/5a7f3597-36e1-4216-86fe-289ad36088a6/connections/1f9f6013-f8a5-4278-8a47-3ab7fdb6c24c/data/transfers?page=2&pageSize=2 - QuickBooks Online: - value: - results: - - id: '1881' - date: '2020-08-29T00:00:00' - from: - accountRef: - id: '60' - dataType: bankAccounts - currency: GBP - amount: 86.19 - status: Unknown - to: - accountRef: - id: '61' - dataType: bankAccounts - currency: GBP - amount: 86.19 - status: Unknown - trackingCategoryRefs: [] - depositedRecordRefs: [] - modifiedDate: '2023-01-18T11:03:00' - sourceModifiedDate: '2020-09-03T11:19:54Z' - - id: '1885' - date: '2020-09-02T00:00:00' - from: - accountRef: - id: '60' - dataType: bankAccounts - currency: GBP - amount: 45.73 - status: Unknown - to: - accountRef: - id: '61' - dataType: bankAccounts - currency: GBP - amount: 45.73 - status: Unknown - trackingCategoryRefs: [] - depositedRecordRefs: [] - modifiedDate: '2023-01-18T11:03:00' - sourceModifiedDate: '2020-09-03T11:23:44Z' - pageNumber: 1 - pageSize: 2 - totalResults: 18 - _links: - current: - href: /companies/10818b5e-6e6a-4ed4-a1c5-3e3efe626e87/connections/9e28a776-f4be-425b-8a3d-ad49956de2c9/data/transfers?page=1&pageSize=2 - self: - href: /companies/10818b5e-6e6a-4ed4-a1c5-3e3efe626e87/connections/9e28a776-f4be-425b-8a3d-ad49956de2c9/data/transfers - next: - href: /companies/10818b5e-6e6a-4ed4-a1c5-3e3efe626e87/connections/9e28a776-f4be-425b-8a3d-ad49956de2c9/data/transfers?page=2&pageSize=2 - Sage Business Cloud Accounting: - value: - results: - - id: 434bce57215a11e8b45c025132dab352 - description: Some cheque - date: '2018-03-06T00:00:00' - from: - accountRef: - id: 9a3f0ed6267a11e797950a57719b2edb - dataType: bankAccounts - currency: GBP - amount: 1000 - status: Unknown - to: - accountRef: - id: 9a2c3770267a11e797950a57719b2edb - dataType: bankAccounts - currency: GBP - amount: 1000 - status: Unknown - trackingCategoryRefs: [] - depositedRecordRefs: [] - modifiedDate: '2022-10-24T14:54:11' - sourceModifiedDate: '2018-03-06T16:20:19Z' - - id: 73d909a4215a11e8b45c025132dab352 - description: Some cash - date: '2018-03-06T00:00:00' - from: - accountRef: - id: 9a3f0ed6267a11e797950a57719b2edb - dataType: bankAccounts - currency: GBP - amount: 465 - status: Unknown - to: - accountRef: - id: 9a2c3770267a11e797950a57719b2edb - dataType: bankAccounts - currency: GBP - amount: 465 - status: Unknown - trackingCategoryRefs: [] - depositedRecordRefs: [] - modifiedDate: '2022-10-24T14:54:11' - sourceModifiedDate: '2018-03-06T16:21:40Z' - pageNumber: 1 - pageSize: 2 - totalResults: 646 - _links: - current: - href: /companies/390083e2-351b-407c-a3be-55081c36c182/connections/37916fb7-b4b8-4a78-8872-1751e20ee0cd/data/transfers?page=1&pageSize=2 - self: - href: /companies/390083e2-351b-407c-a3be-55081c36c182/connections/37916fb7-b4b8-4a78-8872-1751e20ee0cd/data/transfers - next: - href: /companies/390083e2-351b-407c-a3be-55081c36c182/connections/37916fb7-b4b8-4a78-8872-1751e20ee0cd/data/transfers?page=2&pageSize=2 - Sage Intacct: - value: - results: - - id: '4844' - description: Description - date: '2022-03-10T00:00:00' - from: - accountRef: - id: 'CHECKINGACCOUNT:12' - dataType: bankAccounts - currency: ZAR - amount: 418.27 - status: Unknown - to: - accountRef: - id: 'CHECKINGACCOUNT:9' - dataType: bankAccounts - currency: CAD - amount: 35.45 - status: Unknown - trackingCategoryRefs: - - id: LOCATION-10 - name: South Africa - depositedRecordRefs: [] - modifiedDate: '2023-02-23T14:18:48' - sourceModifiedDate: '2022-03-10T12:38:23' - metadata: - isDeleted: false - - id: '18828' - description: From bank account '700_CHK' to bank account 'Test Savings Account' - date: '2022-10-05T00:00:00' - from: - accountRef: - id: 'CHECKINGACCOUNT:12' - dataType: bankAccounts - currency: ZAR - amount: 4040.62 - status: Unknown - to: - accountRef: - id: 'SAVINGSACCOUNT:17' - dataType: bankAccounts - currency: GBP - amount: 200 - status: Unknown - trackingCategoryRefs: - - id: LOCATION-10 - name: South Africa - depositedRecordRefs: [] - modifiedDate: '2023-02-23T14:18:48' - sourceModifiedDate: '2022-10-05T15:28:15' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 2 - _links: - current: - href: /companies/b53cfc9f-1a00-4a20-936f-34e8efbe07c5/connections/d891700f-d906-4e57-998a-0cf03d2a05d3/data/transfers?page=1&pageSize=2 - self: - href: /companies/b53cfc9f-1a00-4a20-936f-34e8efbe07c5/connections/d891700f-d906-4e57-998a-0cf03d2a05d3/data/transfers - '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' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - description: |- - The *List transfers* endpoint returns a list of [transfers](https://docs.codat.io/lending-api#/schemas/Transfer) for a given company's connection. - - [Transfers](https://docs.codat.io/lending-api#/schemas/Transfer) record the movement of money between two bank accounts, or between a bank account and a nominal account. - - Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data). - - operationId: list-accounting-transfers - x-speakeasy-group: transactions.transfers - '/companies/{companyId}/connections/{connectionId}/data/transfers/{transferId}': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - - name: transferId - in: path - required: true - schema: - type: string - examples: - - 13d946f0-c5d5-42bc-b092-97ece17923ab - - 9wg4lep4ush5cxs79pl8sozmsndbaukll3ind4g7buqbm1h2 - - 7110701885 - - EILBDVJVNUAGVKRQ - description: Unique identifier for a transfer. - get: - tags: - - Transactions - summary: Get transfer - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/AccountingTransfer' - examples: - Clear Books: - value: - id: 0bd2f801-6f02-44d6-a2ab-5431553d16f9 - description: depositing 16531.08 into Current Account - contactRef: - id: e4baf949-cb1d-4341-8452-200a93baa3fa - dataType: customers - date: '2022-04-25T07:20:00' - from: - accountRef: - id: ff8fdc4c-2aad-4ec1-9430-6bd201832eb3 - dataType: bankAccounts - currency: GBP - amount: 16531.08 - status: Unknown - to: - accountRef: - id: dbcaf288-2b39-4b95-8ab3-42202ab15918 - dataType: bankAccounts - currency: GBP - amount: 16531.08 - status: Unknown - trackingCategoryRefs: [] - depositedRecordRefs: - - id: fc253cca-0dfe-46e8-b75f-c7fb3db760b2 - dataType: directIncomes - modifiedDate: '2023-04-26T12:38:18' - sourceModifiedDate: '2022-04-25T07:20:00' - metadata: - isDeleted: false - Dynamics 365 Business Central: - value: - id: G00001 - date: '2020-11-26T00:00:00' - from: - accountRef: - id: cf1417b3-89d1-ea11-bbaa-000d3a2b9185 - dataType: bankAccounts - currency: GBP - amount: 20 - status: Unknown - to: - accountRef: - id: ce1417b3-89d1-ea11-bbaa-000d3a2b9185 - dataType: bankAccounts - currency: GBP - amount: 20 - status: Unknown - trackingCategoryRefs: [] - depositedRecordRefs: [] - modifiedDate: '2023-03-27T14:21:26' - sourceModifiedDate: '2020-11-26T12:16:44Z' - metadata: - isDeleted: false - FreeAgent: - value: - id: '307335275' - description: Transfer from Savings Account to Freeagent Test12 - date: '2018-06-14T00:00:00' - from: - accountRef: - id: '532100' - dataType: bankAccounts - currency: GBP - amount: 0.69 - status: Unknown - to: - accountRef: - id: '708504' - dataType: bankAccounts - currency: GBP - amount: 0.69 - status: Unknown - trackingCategoryRefs: - - id: '761' - depositedRecordRefs: [] - modifiedDate: '2023-04-25T14:21:36' - sourceModifiedDate: '2022-03-23T15:55:58Z' - metadata: - isDeleted: false - Oracle NetSuite: - value: - id: 2-1 - contactRef: - id: '417' - dataType: customers - date: '2021-03-10T00:00:00' - from: - accountRef: - id: '122' - dataType: bankAccounts - currency: GBP - amount: 90 - status: Unknown - to: - accountRef: - id: '513' - dataType: bankAccounts - currency: GBP - amount: 90 - status: Unknown - trackingCategoryRefs: - - id: location-1 - depositedRecordRefs: - - id: '428' - dataType: payments - modifiedDate: '2022-09-20T08:16:26' - sourceModifiedDate: '2022-04-28T13:36:47' - QuickBooks Desktop: - value: - id: 4B1-933288922 - description: Funds Transfer - date: '2024-10-14T00:00:00' - from: - accountRef: - id: 30000-933270541 - dataType: bankAccounts - currency: GBP - amount: 15000 - status: Unknown - to: - accountRef: - id: 20000-933270541 - dataType: bankAccounts - currency: GBP - amount: 15000 - status: Unknown - trackingCategoryRefs: [] - depositedRecordRefs: [] - modifiedDate: '2023-04-26T09:13:45' - sourceModifiedDate: '2023-12-16T05:03:58' - metadata: - isDeleted: false - QuickBooks Online Sandbox: - value: - id: '646' - date: '2020-08-21T00:00:00' - from: - accountRef: - id: '102' - dataType: bankAccounts - currency: GBP - amount: 73.41 - status: Unknown - to: - accountRef: - id: '108' - dataType: bankAccounts - currency: GBP - amount: 73.41 - status: Unknown - trackingCategoryRefs: [] - depositedRecordRefs: [] - modifiedDate: '2023-04-26T09:36:33' - sourceModifiedDate: '2020-08-26T11:41:20Z' - metadata: - isDeleted: false - QuickBooks Online: - value: - id: '1881' - date: '2020-08-29T00:00:00' - from: - accountRef: - id: '60' - dataType: bankAccounts - currency: GBP - amount: 86.19 - status: Unknown - to: - accountRef: - id: '61' - dataType: bankAccounts - currency: GBP - amount: 86.19 - status: Unknown - trackingCategoryRefs: [] - depositedRecordRefs: [] - modifiedDate: '2023-01-18T11:03:00' - sourceModifiedDate: '2020-09-03T11:19:54Z' - Sage Business Cloud Accounting: - value: - id: 434bce57215a11e8b45c025132dab352 - description: Some cheque - date: '2018-03-06T00:00:00' - from: - accountRef: - id: 9a3f0ed6267a11e797950a57719b2edb - dataType: bankAccounts - currency: GBP - amount: 1000 - status: Unknown - to: - accountRef: - id: 9a2c3770267a11e797950a57719b2edb - dataType: bankAccounts - currency: GBP - amount: 1000 - status: Unknown - trackingCategoryRefs: [] - depositedRecordRefs: [] - modifiedDate: '2022-10-24T14:54:11' - sourceModifiedDate: '2018-03-06T16:20:19Z' - Sage Intacct: - value: - id: '4844' - description: Description - date: '2022-03-10T00:00:00' - from: - accountRef: - id: 'CHECKINGACCOUNT:12' - dataType: bankAccounts - currency: ZAR - amount: 418.27 - status: Unknown - to: - accountRef: - id: 'CHECKINGACCOUNT:9' - dataType: bankAccounts - currency: CAD - amount: 35.45 - status: Unknown - trackingCategoryRefs: - - id: LOCATION-10 - name: South Africa - depositedRecordRefs: [] - modifiedDate: '2023-02-23T14:18:48' - sourceModifiedDate: '2022-03-10T12:38:23' - metadata: - isDeleted: false - '401': - $ref: '#/components/responses/Unauthorized' - '402': - $ref: '#/components/responses/Payment-Required' - '403': - $ref: '#/components/responses/Forbidden' - '404': - $ref: '#/components/responses/Not-Found' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - description: | - The *Get transfer* endpoint returns a single transfer for a given transferId. - - [Transfers](https://docs.codat.io/lending-api#/schemas/Transfer) record the movement of money between two bank accounts, or between a bank account and a nominal account. - - Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data). - operationId: get-accounting-transfer - x-speakeasy-group: transactions.transfers - '/companies/{companyId}/connections/{connectionId}/data/bankAccounts': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - get: - x-internal: true - tags: - - Accounting bank data - summary: List bank accounts - operationId: list-accounting-bank-accounts - x-speakeasy-group: accounting-bank-data.accounts - 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/AccountingBankAccounts' - examples: - Dynamics 365 Business Central: - value: - results: - - id: c9a41bc7-6e5b-ed11-8c34-0022481b8b5b - accountName: '55' - accountType: Unknown - nominalCode: '10500' - sortCode: '' - accountNumber: '' - iBan: '' - currency: GBP - balance: -352.03 - modifiedDate: '2023-03-27T14:21:10Z' - sourceModifiedDate: '2023-02-07T00:00:00' - overdraftLimit: 0 - metadata: - isDeleted: false - - id: 47020f80-60e6-ec11-82f8-0022481a77f0 - accountName: '555' - accountType: Unknown - nominalCode: '40300' - sortCode: '' - accountNumber: '' - iBan: '' - currency: PLN - balance: 661.79 - modifiedDate: '2023-03-27T14:21:10Z' - sourceModifiedDate: '2022-06-07T00:00:00' - overdraftLimit: 0 - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 28 - _links: - current: - href: /companies/d6849caf-c146-41be-8335-b73346e3bd84/connections/60acb117-5cf5-4745-b069-491551da4066/data/bankAccounts?page=1&pageSize=2 - self: - href: /companies/d6849caf-c146-41be-8335-b73346e3bd84/connections/60acb117-5cf5-4745-b069-491551da4066/data/bankAccounts - next: - href: /companies/d6849caf-c146-41be-8335-b73346e3bd84/connections/60acb117-5cf5-4745-b069-491551da4066/data/bankAccounts?page=2&pageSize=2 - FreeAgent: - value: - results: - - id: '738783' - accountName: \w3fw - accountType: Debit - sortCode: '236972' - accountNumber: A06268209 - currency: GBP - balance: -10484.65 - availableBalance: -10484.65 - modifiedDate: '2023-04-25T14:19:12Z' - metadata: - isDeleted: false - - id: '738778' - accountName: 2e2bna45hy\ - accountType: Debit - sortCode: '236972' - accountNumber: D01825250 - currency: GBP - balance: -114.4 - availableBalance: -114.4 - modifiedDate: '2023-04-25T14:19:12Z' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 82 - _links: - current: - href: /companies/071ad738-68f3-4561-afd0-69bab9df0803/connections/4fd7c69f-ecc1-45f5-83f2-42ed3391e386/data/bankAccounts?page=1&pageSize=2 - self: - href: /companies/071ad738-68f3-4561-afd0-69bab9df0803/connections/4fd7c69f-ecc1-45f5-83f2-42ed3391e386/data/bankAccounts - next: - href: /companies/071ad738-68f3-4561-afd0-69bab9df0803/connections/4fd7c69f-ecc1-45f5-83f2-42ed3391e386/data/bankAccounts?page=2&pageSize=2 - KashFlow: - value: - results: - - id: '765768' - accountName: 16th Account - accountType: Unknown - nominalCode: '70700' - currency: GBP - balance: 326 - availableBalance: 326 - modifiedDate: '2022-09-30T10:29:16Z' - - id: '765766' - accountName: 1a1a - accountType: Unknown - nominalCode: '70600' - currency: GBP - balance: 0 - availableBalance: 0 - modifiedDate: '2022-09-30T10:29:16Z' - pageNumber: 1 - pageSize: 2 - totalResults: 56 - _links: - current: - href: /companies/3a707a99-89da-4b16-a5d6-595333a16352/connections/ecab4f64-1a04-4c53-a343-bfd879f41f67/data/bankAccounts?page=1&pageSize=2 - self: - href: /companies/3a707a99-89da-4b16-a5d6-595333a16352/connections/ecab4f64-1a04-4c53-a343-bfd879f41f67/data/bankAccounts - next: - href: /companies/3a707a99-89da-4b16-a5d6-595333a16352/connections/ecab4f64-1a04-4c53-a343-bfd879f41f67/data/bankAccounts?page=2&pageSize=2 - Oracle NetSuite: - value: - results: - - id: '825' - accountName: Codat Europe Bank - accountType: Debit - nominalCode: '111111122222111' - currency: GBP - balance: 558.22 - modifiedDate: '2023-05-02T13:24:36Z' - sourceModifiedDate: '2022-07-15T11:34:02' - metadata: - isDeleted: false - - id: '826' - accountName: Codat Europe Bank USD - accountType: Debit - nominalCode: '1133221133' - currency: USD - modifiedDate: '2023-05-02T13:24:36Z' - sourceModifiedDate: '2021-03-26T10:31:40' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 4 - _links: - current: - href: /companies/d5074b08-6a34-4b06-a742-236edf5dc4f1/connections/79f8313e-210a-4dc8-b69f-ba7e5004dda7/data/bankAccounts?page=1&pageSize=2 - self: - href: /companies/d5074b08-6a34-4b06-a742-236edf5dc4f1/connections/79f8313e-210a-4dc8-b69f-ba7e5004dda7/data/bankAccounts - next: - href: /companies/d5074b08-6a34-4b06-a742-236edf5dc4f1/connections/79f8313e-210a-4dc8-b69f-ba7e5004dda7/data/bankAccounts?page=2&pageSize=2 - QuickBooks Desktop: - value: - results: - - id: 20000-933270541 - accountName: Checking - accountType: Unknown - nominalCode: '10100' - currency: GBP - balance: 46954.1 - availableBalance: 46954.1 - modifiedDate: '2023-04-26T09:12:37Z' - sourceModifiedDate: '2023-12-16T05:06:45' - metadata: - isDeleted: false - - id: 550001-1071509830 - accountName: Petty Cash - accountType: Unknown - nominalCode: '10400' - currency: GBP - balance: 500 - availableBalance: 500 - modifiedDate: '2023-04-26T09:12:37Z' - sourceModifiedDate: '2023-12-16T05:06:45' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 3 - _links: - current: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/connections/2c26b4da-97d4-4ba9-baad-1e18b49b96ac/data/bankAccounts?page=1&pageSize=2 - self: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/connections/2c26b4da-97d4-4ba9-baad-1e18b49b96ac/data/bankAccounts - next: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/connections/2c26b4da-97d4-4ba9-baad-1e18b49b96ac/data/bankAccounts?page=2&pageSize=2 - QuickBooks Online Sandbox: - value: - results: - - id: '164' - accountName: '00' - accountType: Debit - nominalCode: '123567' - currency: GBP - balance: 0 - availableBalance: 0 - modifiedDate: '2023-04-26T09:35:57Z' - sourceModifiedDate: '2022-07-20T14:11:28Z' - metadata: - isDeleted: false - - id: '163' - accountName: '11' - accountType: Debit - currency: GBP - balance: 0 - availableBalance: 0 - modifiedDate: '2023-04-26T09:35:57Z' - sourceModifiedDate: '2022-07-20T14:11:28Z' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 57 - _links: - current: - href: /companies/5a7f3597-36e1-4216-86fe-289ad36088a6/connections/1f9f6013-f8a5-4278-8a47-3ab7fdb6c24c/data/bankAccounts?page=1&pageSize=2 - self: - href: /companies/5a7f3597-36e1-4216-86fe-289ad36088a6/connections/1f9f6013-f8a5-4278-8a47-3ab7fdb6c24c/data/bankAccounts - next: - href: /companies/5a7f3597-36e1-4216-86fe-289ad36088a6/connections/1f9f6013-f8a5-4278-8a47-3ab7fdb6c24c/data/bankAccounts?page=2&pageSize=2 - QuickBooks Online: - value: - results: - - id: '202' - accountName: \aa - accountType: Debit - currency: GBP - balance: 123 - availableBalance: 123 - modifiedDate: '2023-01-18T11:02:37Z' - sourceModifiedDate: '2022-11-11T14:15:13Z' - - id: '193' - accountName: 1 year ago - accountType: Debit - currency: GBP - balance: 5300.02 - availableBalance: 5300.02 - modifiedDate: '2023-01-18T11:02:37Z' - sourceModifiedDate: '2023-01-18T06:05:12Z' - pageNumber: 1 - pageSize: 2 - totalResults: 140 - _links: - current: - href: /companies/10818b5e-6e6a-4ed4-a1c5-3e3efe626e87/connections/9e28a776-f4be-425b-8a3d-ad49956de2c9/data/bankAccounts?page=1&pageSize=2 - self: - href: /companies/10818b5e-6e6a-4ed4-a1c5-3e3efe626e87/connections/9e28a776-f4be-425b-8a3d-ad49956de2c9/data/bankAccounts - next: - href: /companies/10818b5e-6e6a-4ed4-a1c5-3e3efe626e87/connections/9e28a776-f4be-425b-8a3d-ad49956de2c9/data/bankAccounts?page=2&pageSize=2 - Sage 50 (UK): - value: - results: - - id: '1200' - accountName: Bank Current Account - accountType: Unknown - nominalCode: '1200' - sortCode: 23-34-34 - accountNumber: '003234234' - iBan: '' - currency: GBP - balance: -20091.04 - availableBalance: -20091.04 - modifiedDate: '2023-03-30T14:42:37Z' - sourceModifiedDate: '2022-11-25T09:25:48' - overdraftLimit: 120000 - institution: Lloyds Bank PLC - metadata: - isDeleted: false - - id: '1210' - accountName: Bank Deposit Account - accountType: Unknown - nominalCode: '1210' - sortCode: 45-45-45 - accountNumber: 9/00474345 - iBan: '' - currency: GBP - balance: 3510 - availableBalance: 3510 - modifiedDate: '2023-03-30T14:42:37Z' - sourceModifiedDate: '2022-11-25T09:25:48' - overdraftLimit: 0 - institution: Halifax Building Society - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 6 - _links: - current: - href: /companies/cf5f2a47-2990-4221-bae6-0c19c86ac304/connections/8ee4910f-4fc1-47e6-89b1-5931fb33d8f7/data/bankAccounts?page=1&pageSize=2 - self: - href: /companies/cf5f2a47-2990-4221-bae6-0c19c86ac304/connections/8ee4910f-4fc1-47e6-89b1-5931fb33d8f7/data/bankAccounts - next: - href: /companies/cf5f2a47-2990-4221-bae6-0c19c86ac304/connections/8ee4910f-4fc1-47e6-89b1-5931fb33d8f7/data/bankAccounts?page=2&pageSize=2 - Sage Business Cloud Accounting: - value: - results: - - id: 154d05abe9f24c4babe0f6a741dec1b9 - accountName: Abdi Internet Bank - accountType: Unknown - nominalCode: '1560' - sortCode: '010101' - accountNumber: '11111' - currency: GBP - balance: 49.61 - availableBalance: 49.61 - modifiedDate: '2022-10-24T14:52:53Z' - sourceModifiedDate: '2020-01-27T10:53:26Z' - - id: 565ce07212bc492c8c2d04f43f9f67e3 - accountName: Abdi Live Test - accountType: Unknown - nominalCode: '147852' - sortCode: '123456' - accountNumber: '1234567' - currency: GBP - balance: -225830.75 - availableBalance: -225830.75 - modifiedDate: '2022-10-24T14:52:53Z' - sourceModifiedDate: '2020-01-28T14:00:20Z' - pageNumber: 1 - pageSize: 2 - totalResults: 45 - _links: - current: - href: /companies/390083e2-351b-407c-a3be-55081c36c182/connections/37916fb7-b4b8-4a78-8872-1751e20ee0cd/data/bankAccounts?page=1&pageSize=2 - self: - href: /companies/390083e2-351b-407c-a3be-55081c36c182/connections/37916fb7-b4b8-4a78-8872-1751e20ee0cd/data/bankAccounts - next: - href: /companies/390083e2-351b-407c-a3be-55081c36c182/connections/37916fb7-b4b8-4a78-8872-1751e20ee0cd/data/bankAccounts?page=2&pageSize=2 - Sage Intacct: - value: - results: - - id: 'CREDITCARD:55' - accountName: CoT Credit Card - accountType: Credit - nominalCode: '10021' - currency: GBP - modifiedDate: '2023-04-04T16:31:46Z' - sourceModifiedDate: '2023-03-27T14:11:48' - metadata: - isDeleted: false - - id: 'CREDITCARD:58' - accountName: Cot Credit Card 2 - accountType: Credit - nominalCode: '11112' - currency: GBP - modifiedDate: '2023-04-04T16:31:46Z' - sourceModifiedDate: '2023-03-27T14:15:11' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 14 - _links: - current: - href: /companies/df02b289-cb16-4964-ac4d-9fd60b04538e/connections/8f457d9c-1142-4241-a07e-71d1ee2e3052/data/bankAccounts?page=1&pageSize=2 - self: - href: /companies/df02b289-cb16-4964-ac4d-9fd60b04538e/connections/8f457d9c-1142-4241-a07e-71d1ee2e3052/data/bankAccounts - next: - href: /companies/df02b289-cb16-4964-ac4d-9fd60b04538e/connections/8f457d9c-1142-4241-a07e-71d1ee2e3052/data/bankAccounts?page=2&pageSize=2 - Xero: - value: - results: - - id: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - accountName: Business Bank Account - accountType: Debit - sortCode: '990404' - accountNumber: '987654321' - currency: GBP - balance: 6681.79 - modifiedDate: '2023-03-15T20:36:09Z' - sourceModifiedDate: '2023-03-15T20:35:07' - metadata: - isDeleted: false - - id: a8d6fb1a-8c5d-4683-90ce-bf9d28fc62ba - accountName: Business Savings Account - accountType: Debit - sortCode: '890303' - accountNumber: '876543210' - currency: GBP - balance: 0 - modifiedDate: '2023-03-15T20:36:09Z' - sourceModifiedDate: '2023-03-15T20:36:06' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 2 - _links: - current: - href: /companies/5ced9667-a310-443a-a711-958d36377141/connections/6a4bcf97-e46a-465c-abf6-c42cec8e48c0/data/bankAccounts?page=1&pageSize=2 - self: - href: /companies/5ced9667-a310-443a-a711-958d36377141/connections/6a4bcf97-e46a-465c-abf6-c42cec8e48c0/data/bankAccounts - Zoho Books: - value: - results: - - id: '104957000000060010' - accountName: Abdi Test - accountType: Unknown - sortCode: '112233' - accountNumber: xxxx5678 - currency: GBP - balance: 69858.44 - modifiedDate: '2022-10-03T08:40:38Z' - institution: Test Bank - - id: '104957000000065002' - accountName: Abdi Test 2 - accountType: Unknown - sortCode: '' - accountNumber: '' - currency: AED - balance: 98.03 - modifiedDate: '2022-10-03T08:40:38Z' - institution: '' - pageNumber: 1 - pageSize: 2 - totalResults: 4 - _links: - current: - href: /companies/d0b68840-db50-4bc3-b88c-96e225333fea/connections/a2324b8e-60e9-451d-8eb1-0fdc8e8224df/data/bankAccounts?page=1&pageSize=2 - self: - href: /companies/d0b68840-db50-4bc3-b88c-96e225333fea/connections/a2324b8e-60e9-451d-8eb1-0fdc8e8224df/data/bankAccounts - next: - href: /companies/d0b68840-db50-4bc3-b88c-96e225333fea/connections/a2324b8e-60e9-451d-8eb1-0fdc8e8224df/data/bankAccounts?page=2&pageSize=2 - '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' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - description: |- - The *List bank accounts* endpoint returns a list of [bank accounts](https://docs.codat.io/lending-api#/schemas/BankAccount) for a given company's connection. - - [Bank accounts](https://docs.codat.io/lending-api#/schemas/BankAccount) are financial accounts maintained by a bank or other financial institution. - - Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data). - - '/companies/{companyId}/connections/{connectionId}/data/bankAccounts/{accountId}': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - - $ref: '#/components/parameters/accountingAccountId' - get: - x-internal: true - tags: - - Accounting bank data - summary: Get bank account - operationId: get-accounting-bank-account - x-speakeasy-group: accounting-bank-data.accounts - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/AccountingBankAccount' - examples: - Dynamics 365 Business Central: - value: - id: c9a41bc7-6e5b-ed11-8c34-0022481b8b5b - accountName: '55' - accountType: Unknown - nominalCode: '10500' - sortCode: '' - accountNumber: '' - iBan: '' - currency: GBP - balance: -352.03 - modifiedDate: '2023-03-27T14:21:10Z' - sourceModifiedDate: '2023-02-07T00:00:00' - overdraftLimit: 0 - metadata: - isDeleted: false - FreeAgent: - value: - id: '738783' - accountName: \w3fw - accountType: Debit - sortCode: '236972' - accountNumber: A06268209 - currency: GBP - balance: -10484.65 - availableBalance: -10484.65 - modifiedDate: '2023-04-25T14:19:12Z' - metadata: - isDeleted: false - KashFlow: - value: - id: '765768' - accountName: 16th Account - accountType: Unknown - nominalCode: '70700' - currency: GBP - balance: 326 - availableBalance: 326 - modifiedDate: '2022-09-30T10:29:16Z' - QuickBooks Desktop: - value: - id: 20000-933270541 - accountName: Checking - accountType: Unknown - nominalCode: '10100' - currency: GBP - balance: 46954.1 - availableBalance: 46954.1 - modifiedDate: '2023-04-26T09:12:37Z' - sourceModifiedDate: '2023-12-16T05:06:45' - metadata: - isDeleted: false - Sage 50 (UK): - value: - id: '1200' - accountName: Bank Current Account - accountType: Unknown - nominalCode: '1200' - sortCode: 23-34-34 - accountNumber: '003234234' - iBan: '' - currency: GBP - balance: -20091.04 - availableBalance: -20091.04 - modifiedDate: '2023-03-30T14:42:37Z' - sourceModifiedDate: '2022-11-25T09:25:48' - overdraftLimit: 120000 - institution: Lloyds Bank PLC - metadata: - isDeleted: false - Sage Business Cloud Accounting: - value: - id: 154d05abe9f24c4babe0f6a741dec1b9 - accountName: Abdi Internet Bank - accountType: Unknown - nominalCode: '1560' - sortCode: '010101' - accountNumber: '11111' - currency: GBP - balance: 49.61 - availableBalance: 49.61 - modifiedDate: '2022-10-24T14:52:53Z' - sourceModifiedDate: '2020-01-27T10:53:26Z' - Xero: - value: - id: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - accountName: Business Bank Account - accountType: Debit - sortCode: '990404' - accountNumber: '987654321' - currency: GBP - balance: 6681.79 - modifiedDate: '2023-03-15T20:36:09Z' - sourceModifiedDate: '2023-03-15T20:35:07' - metadata: - isDeleted: false - Zoho Books: - value: - id: '104957000000060010' - accountName: Abdi Test - accountType: Unknown - sortCode: '112233' - accountNumber: xxxx5678 - currency: GBP - balance: 69858.44 - modifiedDate: '2022-10-03T08:40:38Z' - institution: Test Bank - Oracle NetSuite: - value: - id: '825' - accountName: Codat Europe Bank - accountType: Debit - nominalCode: '111111122222111' - currency: GBP - balance: 558.22 - modifiedDate: '2023-05-02T13:24:36Z' - sourceModifiedDate: '2022-07-15T11:34:02' - metadata: - isDeleted: false - QuickBooks Online Sandbox: - value: - id: '164' - accountName: '00' - accountType: Debit - nominalCode: '123567' - currency: GBP - balance: 0 - availableBalance: 0 - modifiedDate: '2023-04-26T09:35:57Z' - sourceModifiedDate: '2022-07-20T14:11:28Z' - metadata: - isDeleted: false - QuickBooks Online: - value: - id: '202' - accountName: \aa - accountType: Debit - currency: GBP - balance: 123 - availableBalance: 123 - modifiedDate: '2023-01-18T11:02:37Z' - sourceModifiedDate: '2022-11-11T14:15:13Z' - Sage Intacct: - value: - id: 'CREDITCARD:55' - accountName: CoT Credit Card - accountType: Credit - nominalCode: '10021' - currency: GBP - modifiedDate: '2023-04-04T16:31:46Z' - sourceModifiedDate: '2023-03-27T14:11:48' - metadata: - isDeleted: false - '401': - $ref: '#/components/responses/Unauthorized' - '402': - $ref: '#/components/responses/Payment-Required' - '403': - $ref: '#/components/responses/Forbidden' - '404': - $ref: '#/components/responses/Not-Found' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - description: | - The *Get bank account* endpoint returns a single account for a given accountId. - - [Bank accounts](https://docs.codat.io/lending-api#/schemas/BankAccount) are financial accounts maintained by a bank or other financial institution. - - Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data). - '/companies/{companyId}/connections/{connectionId}/data/bankAccounts/{accountId}/bankTransactions': - get: - x-internal: true - tags: - - Accounting bank data - summary: List bank account transactions - description: | - The *List account bank transactions* endpoint returns a list of [bank account transactions](https://docs.codat.io/lending-api#/schemas/BankTransactions) for a given company's connection. - - [Bank account transactions](https://docs.codat.io/lending-api#/schemas/BankTransactions) are records of money that has moved in and out of an SMB's bank account. - - Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data). - operationId: list-accounting-bank-account-transactions - x-speakeasy-name-override: list-transactions - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - - $ref: '#/components/parameters/accountingAccountId' - - $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/AccountingBankTransactions' - examples: - Dynamics 365 Business Central: - value: - results: - - id: 07c891b4-f67a-ed11-9989-0022481ae525 - accountId: c9a41bc7-6e5b-ed11-8c34-0022481b8b5b - clearedOnDate: '2022-11-17T00:00:00' - description: Share Capital - reconciled: false - amount: 1 - balance: 1 - transactionType: Payment - modifiedDate: '2023-03-27T14:21:19Z' - - id: 5ced3895-f77a-ed11-9989-0022481b6241 - accountId: c9a41bc7-6e5b-ed11-8c34-0022481b8b5b - clearedOnDate: '2022-11-17T00:00:00' - description: Share Capital - reconciled: false - amount: 1 - balance: 2 - transactionType: Payment - modifiedDate: '2023-03-27T14:21:19Z' - - id: cd12966b-8871-ed11-8c34-6045bd0c6935 - accountId: c9a41bc7-6e5b-ed11-8c34-0022481b8b5b - clearedOnDate: '2022-12-02T00:00:00' - description: '' - reconciled: false - amount: -19 - balance: -17 - transactionType: Other - modifiedDate: '2023-03-27T14:21:19Z' - - id: b13392b6-95a0-ed11-9a88-6045bdd16279 - accountId: c9a41bc7-6e5b-ed11-8c34-0022481b8b5b - clearedOnDate: '2023-01-30T00:00:00' - description: '' - reconciled: false - amount: -30 - balance: -72 - transactionType: Payment - modifiedDate: '2023-03-27T14:21:19Z' - - id: b3696a16-1fa2-ed11-9a88-000d3ad59051 - accountId: c9a41bc7-6e5b-ed11-8c34-0022481b8b5b - clearedOnDate: '2023-01-30T00:00:00' - description: 'Income, Services' - reconciled: false - amount: -10 - balance: -122 - transactionType: Payment - modifiedDate: '2023-03-27T14:21:19Z' - - id: b73392b6-95a0-ed11-9a88-6045bdd16279 - accountId: c9a41bc7-6e5b-ed11-8c34-0022481b8b5b - clearedOnDate: '2023-01-30T00:00:00' - description: Child - reconciled: false - amount: -40 - balance: -112 - transactionType: Payment - modifiedDate: '2023-03-27T14:21:19Z' - - id: befdd569-22a2-ed11-9a88-000d3ad59051 - accountId: c9a41bc7-6e5b-ed11-8c34-0022481b8b5b - clearedOnDate: '2023-01-30T00:00:00' - description: Child Child - reconciled: false - amount: -13 - balance: -160 - transactionType: Other - modifiedDate: '2023-03-27T14:21:19Z' - - id: cb71c33a-22a2-ed11-9a88-000d3ad59051 - accountId: c9a41bc7-6e5b-ed11-8c34-0022481b8b5b - clearedOnDate: '2023-01-30T00:00:00' - description: 'Income, Services' - reconciled: false - amount: -25 - balance: -147 - transactionType: Other - modifiedDate: '2023-03-27T14:21:19Z' - - id: e7ec12c9-94a0-ed11-9a88-6045bdd16279 - accountId: c9a41bc7-6e5b-ed11-8c34-0022481b8b5b - clearedOnDate: '2023-01-30T00:00:00' - description: Child Child - reconciled: false - amount: -10 - balance: -27 - transactionType: Payment - modifiedDate: '2023-03-27T14:21:19Z' - - id: fef7a026-95a0-ed11-9a88-6045bdd16279 - accountId: c9a41bc7-6e5b-ed11-8c34-0022481b8b5b - clearedOnDate: '2023-01-30T00:00:00' - description: '' - reconciled: false - amount: -15 - balance: -42 - transactionType: Payment - modifiedDate: '2023-03-27T14:21:19Z' - - id: 20869cb1-39a2-ed11-9a88-000d3ad59051 - accountId: c9a41bc7-6e5b-ed11-8c34-0022481b8b5b - clearedOnDate: '2023-02-01T00:00:00' - description: Accounts Payable - reconciled: false - amount: -14 - balance: -184 - transactionType: Payment - modifiedDate: '2023-03-27T14:21:19Z' - - id: 8c298754-20a2-ed11-9a88-000d3ad59051 - accountId: c9a41bc7-6e5b-ed11-8c34-0022481b8b5b - clearedOnDate: '2023-02-01T00:00:00' - description: '' - reconciled: false - amount: -10 - balance: -170 - transactionType: Payment - modifiedDate: '2023-03-27T14:21:19Z' - - id: 935d5578-3ca2-ed11-9a88-000d3ad59051 - accountId: c9a41bc7-6e5b-ed11-8c34-0022481b8b5b - clearedOnDate: '2023-02-01T00:00:00' - description: '' - reconciled: false - amount: -17 - balance: -201 - transactionType: Payment - modifiedDate: '2023-03-27T14:21:19Z' - - id: 935f4303-e3a2-ed11-9a88-002248010b7e - accountId: c9a41bc7-6e5b-ed11-8c34-0022481b8b5b - clearedOnDate: '2023-02-01T00:00:00' - description: '' - reconciled: false - amount: -17 - balance: -239 - transactionType: Payment - modifiedDate: '2023-03-27T14:21:19Z' - - id: d8ceb342-dba2-ed11-9a88-002248010b7e - accountId: c9a41bc7-6e5b-ed11-8c34-0022481b8b5b - clearedOnDate: '2023-02-01T00:00:00' - description: '' - reconciled: false - amount: -21 - balance: -222 - transactionType: Other - modifiedDate: '2023-03-27T14:21:19Z' - - id: 15719c0c-22a6-ed11-9a88-002248010b7e - accountId: c9a41bc7-6e5b-ed11-8c34-0022481b8b5b - clearedOnDate: '2023-02-02T00:00:00' - description: '' - reconciled: false - amount: -20 - balance: -292.69 - transactionType: Payment - modifiedDate: '2023-03-27T14:21:19Z' - - id: 213d027d-b1a3-ed11-9a88-000d3ad59051 - accountId: c9a41bc7-6e5b-ed11-8c34-0022481b8b5b - clearedOnDate: '2023-02-02T00:00:00' - description: '' - reconciled: false - amount: -9.35 - balance: -265.19 - transactionType: Payment - modifiedDate: '2023-03-27T14:21:19Z' - - id: 273d027d-b1a3-ed11-9a88-000d3ad59051 - accountId: c9a41bc7-6e5b-ed11-8c34-0022481b8b5b - clearedOnDate: '2023-02-02T00:00:00' - description: Account no cat Balance Sheet - reconciled: false - amount: -7.5 - balance: -272.69 - transactionType: Payment - modifiedDate: '2023-03-27T14:21:19Z' - - id: 978c4a27-e0a2-ed11-9a88-002248010b7e - accountId: c9a41bc7-6e5b-ed11-8c34-0022481b8b5b - clearedOnDate: '2023-02-02T00:00:00' - description: '' - reconciled: false - amount: 2.16 - balance: -236.84 - transactionType: Other - modifiedDate: '2023-03-27T14:21:19Z' - - id: a80f63ae-b0a3-ed11-9a88-000d3ad59051 - accountId: c9a41bc7-6e5b-ed11-8c34-0022481b8b5b - clearedOnDate: '2023-02-02T00:00:00' - description: '' - reconciled: false - amount: -7.01 - balance: -262.85 - transactionType: Payment - modifiedDate: '2023-03-27T14:21:19Z' - - id: ad0f63ae-b0a3-ed11-9a88-000d3ad59051 - accountId: c9a41bc7-6e5b-ed11-8c34-0022481b8b5b - clearedOnDate: '2023-02-02T00:00:00' - description: Account no cat Balance Sheet - reconciled: false - amount: 7.01 - balance: -255.84 - transactionType: Payment - modifiedDate: '2023-03-27T14:21:19Z' - - id: b5de7b74-afa3-ed11-9a88-000d3ad59051 - accountId: c9a41bc7-6e5b-ed11-8c34-0022481b8b5b - clearedOnDate: '2023-02-02T00:00:00' - description: '' - reconciled: false - amount: -4.91 - balance: -260.75 - transactionType: Payment - modifiedDate: '2023-03-27T14:21:19Z' - - id: bbde7b74-afa3-ed11-9a88-000d3ad59051 - accountId: c9a41bc7-6e5b-ed11-8c34-0022481b8b5b - clearedOnDate: '2023-02-02T00:00:00' - description: '' - reconciled: false - amount: 4.91 - balance: -255.84 - transactionType: Payment - modifiedDate: '2023-03-27T14:21:19Z' - - id: f9540bf4-e5a2-ed11-9a88-000d3ad5d945 - accountId: c9a41bc7-6e5b-ed11-8c34-0022481b8b5b - clearedOnDate: '2023-02-02T00:00:00' - description: '' - reconciled: false - amount: -19 - balance: -255.84 - transactionType: Payment - modifiedDate: '2023-03-27T14:21:19Z' - - id: feca50d8-22a6-ed11-9a88-002248010b7e - accountId: c9a41bc7-6e5b-ed11-8c34-0022481b8b5b - clearedOnDate: '2023-02-06T00:00:00' - description: '' - reconciled: false - amount: -20 - balance: -312.69 - transactionType: Payment - modifiedDate: '2023-03-27T14:21:19Z' - - id: 4777d7ec-cfa6-ed11-9a88-000d3a7fb2e5 - accountId: c9a41bc7-6e5b-ed11-8c34-0022481b8b5b - clearedOnDate: '2023-02-07T00:00:00' - description: '' - reconciled: false - amount: -2.34 - balance: -315.03 - transactionType: Payment - modifiedDate: '2023-03-27T14:21:19Z' - - id: 38b632de-7aac-ed11-9a88-002248410639 - accountId: c9a41bc7-6e5b-ed11-8c34-0022481b8b5b - clearedOnDate: '2023-02-09T00:00:00' - description: Invalid VAT Posting Setup - reconciled: false - amount: -10 - balance: -315.03 - transactionType: Payment - modifiedDate: '2023-03-27T14:21:19Z' - - id: ffc0b740-68a8-ed11-9a88-6045bdd12fc1 - accountId: c9a41bc7-6e5b-ed11-8c34-0022481b8b5b - clearedOnDate: '2023-02-09T00:00:00' - description: '' - reconciled: false - amount: 10 - balance: -305.03 - transactionType: Payment - modifiedDate: '2023-03-27T14:21:19Z' - - id: 95f27455-7cac-ed11-9a88-002248410639 - accountId: c9a41bc7-6e5b-ed11-8c34-0022481b8b5b - clearedOnDate: '2023-02-14T00:00:00' - description: '' - reconciled: false - amount: -10 - balance: -325.03 - transactionType: Payment - modifiedDate: '2023-03-27T14:21:19Z' - - id: 0d6b1378-acae-ed11-9a88-6045bdd16279 - accountId: c9a41bc7-6e5b-ed11-8c34-0022481b8b5b - clearedOnDate: '2023-02-16T00:00:00' - description: Bank Account Line - reconciled: false - amount: -12 - balance: -337.03 - transactionType: Payment - modifiedDate: '2023-03-27T14:21:19Z' - - id: 978da9f7-baae-ed11-9a88-6045bdc1c1f3 - accountId: c9a41bc7-6e5b-ed11-8c34-0022481b8b5b - clearedOnDate: '2023-02-18T00:00:00' - description: Bank - reconciled: false - amount: 6 - balance: -342.03 - transactionType: Payment - modifiedDate: '2023-03-27T14:21:19Z' - - id: dd34e6eb-b6ae-ed11-9a88-6045bdc1c1f3 - accountId: c9a41bc7-6e5b-ed11-8c34-0022481b8b5b - clearedOnDate: '2023-02-18T00:00:00' - description: G/L - reconciled: false - amount: -1 - balance: -338.03 - transactionType: Payment - modifiedDate: '2023-03-27T14:21:19Z' - - id: e234e6eb-b6ae-ed11-9a88-6045bdc1c1f3 - accountId: c9a41bc7-6e5b-ed11-8c34-0022481b8b5b - clearedOnDate: '2023-02-18T00:00:00' - description: Customer - reconciled: false - amount: 2 - balance: -336.03 - transactionType: Payment - modifiedDate: '2023-03-27T14:21:19Z' - - id: e734e6eb-b6ae-ed11-9a88-6045bdc1c1f3 - accountId: c9a41bc7-6e5b-ed11-8c34-0022481b8b5b - clearedOnDate: '2023-02-18T00:00:00' - description: Vendor - reconciled: false - amount: -3 - balance: -339.03 - transactionType: Payment - modifiedDate: '2023-03-27T14:21:19Z' - - id: ed34e6eb-b6ae-ed11-9a88-6045bdc1c1f3 - accountId: c9a41bc7-6e5b-ed11-8c34-0022481b8b5b - clearedOnDate: '2023-02-18T00:00:00' - description: Bank - reconciled: false - amount: -4 - balance: -343.03 - transactionType: Payment - modifiedDate: '2023-03-27T14:21:19Z' - - id: f234e6eb-b6ae-ed11-9a88-6045bdc1c1f3 - accountId: c9a41bc7-6e5b-ed11-8c34-0022481b8b5b - clearedOnDate: '2023-02-18T00:00:00' - description: Employee - reconciled: false - amount: -5 - balance: -348.03 - transactionType: Payment - modifiedDate: '2023-03-27T14:21:19Z' - - id: 39de1293-d3b1-ed11-9a88-6045bd0f94d6 - accountId: c9a41bc7-6e5b-ed11-8c34-0022481b8b5b - clearedOnDate: '2023-02-21T00:00:00' - description: '' - reconciled: false - amount: -10 - balance: -352.03 - transactionType: Credit - modifiedDate: '2023-03-27T14:21:19Z' - pageNumber: 1 - pageSize: 100 - totalResults: 37 - _links: - current: - href: /companies/d6849caf-c146-41be-8335-b73346e3bd84/connections/60acb117-5cf5-4745-b069-491551da4066/data/bankAccounts/c9a41bc7-6e5b-ed11-8c34-0022481b8b5b/bankTransactions - self: - href: /companies/d6849caf-c146-41be-8335-b73346e3bd84/connections/60acb117-5cf5-4745-b069-491551da4066/data/bankAccounts/c9a41bc7-6e5b-ed11-8c34-0022481b8b5b/bankTransactions - FreeAgent: - value: - results: - - id: '261197890' - accountId: '738783' - clearedOnDate: '2020-10-28T00:00:00' - description: Invoice receipt against 1762 - reconciled: true - amount: 111 - transactionType: Credit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2020-10-28T16:27:10Z' - - id: '290878530' - accountId: '738783' - clearedOnDate: '2021-04-23T00:00:00' - description: Invoice receipt against 1980 - reconciled: true - amount: 10 - transactionType: Credit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2021-04-27T04:55:42Z' - - id: '290825614' - accountId: '738783' - clearedOnDate: '2021-04-26T00:00:00' - description: Invoice receipt against 1976 - reconciled: true - amount: 10 - transactionType: Credit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2021-04-26T14:05:15Z' - - id: '290878531' - accountId: '738783' - clearedOnDate: '2021-04-26T00:00:00' - description: Invoice receipt against 1981 - reconciled: true - amount: 20 - transactionType: Credit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2021-04-27T04:55:44Z' - - id: '291227300' - accountId: '738783' - clearedOnDate: '2021-04-28T00:00:00' - description: Invoice receipt against 2002 - reconciled: true - amount: 20 - transactionType: Credit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2021-04-28T13:43:56Z' - - id: '291242296' - accountId: '738783' - clearedOnDate: '2021-04-28T00:00:00' - description: Invoice receipt against 2012 - reconciled: true - amount: 40 - transactionType: Credit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2021-04-28T16:14:16Z' - - id: '346437532' - accountId: '738783' - clearedOnDate: '2022-03-21T00:00:00' - description: Invoice receipt against 2304 - reconciled: true - amount: 1 - transactionType: Credit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2022-03-21T14:59:40Z' - - id: '346444438' - accountId: '738783' - clearedOnDate: '2022-03-21T00:00:00' - description: Invoice receipt against 2304 - reconciled: true - amount: 1 - transactionType: Credit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2022-03-21T15:37:54Z' - - id: '346444989' - accountId: '738783' - clearedOnDate: '2022-03-21T00:00:00' - description: Invoice receipt against 2304 - reconciled: true - amount: 1 - transactionType: Credit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2022-03-21T15:41:22Z' - - id: '346457774' - accountId: '738783' - clearedOnDate: '2022-03-21T00:00:00' - description: Credit Note refund against 2313 - reconciled: true - amount: -1 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2022-03-21T17:07:50Z' - - id: '346458196' - accountId: '738783' - clearedOnDate: '2022-03-21T00:00:00' - description: Invoice receipt against 2311 - reconciled: true - amount: 1 - transactionType: Credit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2022-03-21T17:14:15Z' - - id: '414441841' - accountId: '738783' - clearedOnDate: '2022-12-20T00:00:00' - description: 'MCDONALDS - ROYSTON - Card Ending: 9271//OTHER/' - reconciled: false - amount: -12.78 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:33Z' - - id: '414441842' - accountId: '738783' - clearedOnDate: '2022-12-20T00:00:00' - description: 'HERMES PARCELNET LTD T/A - 08445437147 - Card Ending: 2327//OTHER/' - reconciled: false - amount: -7.98 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:33Z' - - id: '414441845' - accountId: '738783' - clearedOnDate: '2022-12-20T00:00:00' - description: 'TRAVELODGE GB0000 - THAME - Card Ending: 4999//OTHER/' - reconciled: false - amount: -648.63 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:33Z' - - id: '414441847' - accountId: '738783' - clearedOnDate: '2022-12-20T00:00:00' - description: 'TRAVELODGE GB0000 - THAME - Card Ending: 4999//OTHER/' - reconciled: false - amount: -324.31 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:33Z' - - id: '414441849' - accountId: '738783' - clearedOnDate: '2022-12-20T00:00:00' - description: 'RUGBY, PRET A MANGER - RUGBY - Card Ending: 9271//OTHER/' - reconciled: false - amount: -11.45 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:33Z' - - id: '414441851' - accountId: '738783' - clearedOnDate: '2022-12-20T00:00:00' - description: 'Just Eat - London - Card Ending: 9271//OTHER/' - reconciled: false - amount: -22.52 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:33Z' - - id: '414441852' - accountId: '738783' - clearedOnDate: '2022-12-20T00:00:00' - description: 'CN TAR TAROM SA-MOBILP - ORAS OTOPENI - Card Ending: 4999//OTHER/' - reconciled: false - amount: -340.13 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:33Z' - - id: '414441854' - accountId: '738783' - clearedOnDate: '2022-12-21T00:00:00' - description: 'MOTO RUGBY SERVICES - RUGBY - Card Ending: 9271//OTHER/' - reconciled: false - amount: -126.12 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:33Z' - - id: '414441855' - accountId: '738783' - clearedOnDate: '2022-12-21T00:00:00' - description: 'POMANDA.COM - 138 HOLBORN, - Card Ending: 2327//OTHER/' - reconciled: false - amount: -9.99 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:33Z' - - id: '414441856' - accountId: '738783' - clearedOnDate: '2022-12-21T00:00:00' - description: 'RYANAIR 224BEZ3YM - LONDON - Card Ending: 4999//OTHER/' - reconciled: false - amount: -267.97 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:33Z' - - id: '414441857' - accountId: '738783' - clearedOnDate: '2022-12-21T00:00:00' - description: 'TESCO STORES 5956 - LONDON - Card Ending: 9271//OTHER/' - reconciled: false - amount: -9.35 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:33Z' - - id: '414441859' - accountId: '738783' - clearedOnDate: '2022-12-21T00:00:00' - description: 'SPOTIFY - LONDON - Card Ending: 4999//OTHER/' - reconciled: false - amount: -16.99 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:33Z' - - id: '414441860' - accountId: '738783' - clearedOnDate: '2022-12-21T00:00:00' - description: 'Revive My Device - London - Card Ending: 5913//OTHER/' - reconciled: false - amount: -149 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:33Z' - - id: '414441861' - accountId: '738783' - clearedOnDate: '2022-12-22T00:00:00' - description: 'DELIVEROO - LONDON - Card Ending: 9271//OTHER/' - reconciled: false - amount: -39.36 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:33Z' - - id: '414441862' - accountId: '738783' - clearedOnDate: '2022-12-22T00:00:00' - description: 'UPS LTD - FELTHAM - Card Ending: 2327//OTHER/' - reconciled: false - amount: -2.4 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:33Z' - - id: '414441863' - accountId: '738783' - clearedOnDate: '2022-12-22T00:00:00' - description: 'Amazon.co.uk*1N0N04VK4 - AMAZON.CO.UK - Card Ending: 2327//OTHER/' - reconciled: false - amount: -17.76 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:34Z' - - id: '414441864' - accountId: '738783' - clearedOnDate: '2022-12-22T00:00:00' - description: 'TESCO STORES 5956 - LONDON - Card Ending: 9271//OTHER/' - reconciled: false - amount: -10.65 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:34Z' - - id: '414441865' - accountId: '738783' - clearedOnDate: '2022-12-22T00:00:00' - description: 'GATHER & GATHER 3401 - LONDON - Card Ending: 9271//OTHER/' - reconciled: false - amount: -16.75 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:34Z' - - id: '414441866' - accountId: '738783' - clearedOnDate: '2022-12-22T00:00:00' - description: 'GATHER & GATHER 3401 - LONDON - Card Ending: 9271//OTHER/' - reconciled: false - amount: -4.55 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:34Z' - - id: '414441867' - accountId: '738783' - clearedOnDate: '2022-12-22T00:00:00' - description: 'TRAVELODGE GB0937 - LONDON - Card Ending: 9271//OTHER/' - reconciled: false - amount: -10.75 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:34Z' - - id: '414441868' - accountId: '738783' - clearedOnDate: '2022-12-22T00:00:00' - description: 'DELIVEROO - LONDON - Card Ending: 9271//OTHER/' - reconciled: false - amount: -34.2 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:34Z' - - id: '414441869' - accountId: '738783' - clearedOnDate: '2022-12-22T00:00:00' - description: 'TFL TRAVEL CH - TFL.GOV.UK/CP - Card Ending: 5913//OTHER/' - reconciled: false - amount: -2.8 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:34Z' - - id: '414441870' - accountId: '738783' - clearedOnDate: '2022-12-23T00:00:00' - description: 'SIDS DIY - LONDON E1 - Card Ending: 9271//OTHER/' - reconciled: false - amount: -5.99 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:34Z' - - id: '414441871' - accountId: '738783' - clearedOnDate: '2022-12-23T00:00:00' - description: 'RESOLUTION GB LTD - WHITCHURCH - Card Ending: 2327//OTHER/' - reconciled: false - amount: -368.72 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:34Z' - - id: '414441872' - accountId: '738783' - clearedOnDate: '2022-12-23T00:00:00' - description: 'GATHER & GATHER 3401 - LONDON - Card Ending: 9271//OTHER/' - reconciled: false - amount: -6.15 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:34Z' - - id: '414441874' - accountId: '738783' - clearedOnDate: '2022-12-23T00:00:00' - description: 'HERMES PARCELNET LTD T/A - 08445437147 - Card Ending: 2327//OTHER/' - reconciled: false - amount: -5.34 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:34Z' - - id: '414441875' - accountId: '738783' - clearedOnDate: '2022-12-23T00:00:00' - description: 'Refund: SCREWFIX DIR LTD - WHITECHAP1983 - Card Ending: 9271//OTHER/' - reconciled: false - amount: 6.8 - transactionType: Credit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:34Z' - - id: '414441876' - accountId: '738783' - clearedOnDate: '2022-12-23T00:00:00' - description: 'Refund: SCREWFIX DIR LTD - WHITECHAP1983 - Card Ending: 9271//OTHER/' - reconciled: false - amount: 12.49 - transactionType: Credit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:34Z' - - id: '414441877' - accountId: '738783' - clearedOnDate: '2022-12-23T00:00:00' - description: 'SCREWFIX DIR LTD - WHITECHAP1983 - Card Ending: 9271//OTHER/' - reconciled: false - amount: -6.5 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:34Z' - - id: '414441878' - accountId: '738783' - clearedOnDate: '2022-12-23T00:00:00' - description: 'SCREWFIX DIR LTD - WHITECHAP1983 - Card Ending: 9271//OTHER/' - reconciled: false - amount: -27.15 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:34Z' - - id: '414441879' - accountId: '738783' - clearedOnDate: '2022-12-23T00:00:00' - description: 'GOODMANS FIELD - LONDON - Card Ending: 9271//OTHER/' - reconciled: false - amount: -8 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:34Z' - - id: '414441880' - accountId: '738783' - clearedOnDate: '2022-12-23T00:00:00' - description: 'GOODMANS FIELD - LONDON - Card Ending: 9271//OTHER/' - reconciled: false - amount: -25.7 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:34Z' - - id: '414441881' - accountId: '738783' - clearedOnDate: '2022-12-23T00:00:00' - description: 'CREAMLINE DAIRIES ONLINE - MANCHESTER - Card Ending: 2327//OTHER/' - reconciled: false - amount: -50 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:34Z' - - id: '414441883' - accountId: '738783' - clearedOnDate: '2022-12-24T00:00:00' - description: 'AIRBNB * HMYDEXRY4N - 203-318-1111 - Card Ending: 5913//OTHER/' - reconciled: false - amount: -388.24 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:35Z' - - id: '414441884' - accountId: '738783' - clearedOnDate: '2022-12-24T00:00:00' - description: 'UPS LTD - FELTHAM - Card Ending: 2327//OTHER/' - reconciled: false - amount: -9.35 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:35Z' - - id: '414441886' - accountId: '738783' - clearedOnDate: '2022-12-24T00:00:00' - description: 'UBER *TRIP - HELP.UBER.COM - Card Ending: 9271//OTHER/' - reconciled: false - amount: -11.9 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:35Z' - - id: '414441889' - accountId: '738783' - clearedOnDate: '2022-12-24T00:00:00' - description: 'UBER *TRIP - HELP.UBER.COM - Card Ending: 9271//OTHER/' - reconciled: false - amount: -6.84 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:35Z' - - id: '414441891' - accountId: '738783' - clearedOnDate: '2022-12-24T00:00:00' - description: 'WELCOME BREAK - NEWPORT PAGNE - Card Ending: 9271//OTHER/' - reconciled: false - amount: -102.23 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:35Z' - - id: '414441892' - accountId: '738783' - clearedOnDate: '2022-12-24T00:00:00' - description: 'SUBWAY 63582 London Gatew - Mill Hill, Lo - Card Ending: 9271//OTHER/' - reconciled: false - amount: -15.38 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:35Z' - - id: '414441893' - accountId: '738783' - clearedOnDate: '2022-12-26T00:00:00' - description: 'UBER *TRIP - HELP.UBER.COM - Card Ending: 1332//OTHER/' - reconciled: false - amount: -40.65 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:35Z' - - id: '414441894' - accountId: '738783' - clearedOnDate: '2022-12-26T00:00:00' - description: 'UBER *TRIP - HELP.UBER.COM - Card Ending: 1332//OTHER/' - reconciled: false - amount: -2 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:35Z' - - id: '414441895' - accountId: '738783' - clearedOnDate: '2022-12-26T00:00:00' - description: 'UBER *TRIP - HELP.UBER.COM - Card Ending: 1332//OTHER/' - reconciled: false - amount: -34.06 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:35Z' - - id: '414441897' - accountId: '738783' - clearedOnDate: '2022-12-26T00:00:00' - description: 'UBER *TRIP - HELP.UBER.COM - Card Ending: 1332//OTHER/' - reconciled: false - amount: -2 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:35Z' - - id: '414441901' - accountId: '738783' - clearedOnDate: '2022-12-28T00:00:00' - description: 'Tesla - West Drayton - Card Ending: 1332//OTHER/' - reconciled: false - amount: -9.99 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:35Z' - - id: '414441904' - accountId: '738783' - clearedOnDate: '2022-12-28T00:00:00' - description: 'Box Deansgate - Manchester - Card Ending: 0614//OTHER/' - reconciled: false - amount: -20.65 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:35Z' - - id: '414441906' - accountId: '738783' - clearedOnDate: '2022-12-28T00:00:00' - description: 'MANCHESTER UNITED KIOSK - MANCHESTER - Card Ending: 0614//OTHER/' - reconciled: false - amount: -26.5 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:35Z' - - id: '414441908' - accountId: '738783' - clearedOnDate: '2022-12-29T00:00:00' - description: 'TFL TRAVEL CH - TFL.GOV.UK/CP - Card Ending: 5913//OTHER/' - reconciled: false - amount: -2.8 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:35Z' - - id: '414441909' - accountId: '738783' - clearedOnDate: '2022-12-31T00:00:00' - description: 'TFL TRAVEL CH - TFL.GOV.UK/CP - Card Ending: 5913//OTHER/' - reconciled: false - amount: -1.65 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:35Z' - - id: '414441910' - accountId: '738783' - clearedOnDate: '2023-01-01T00:00:00' - description: 'UBER* TRIP - LONDON - Card Ending: 1332//OTHER/' - reconciled: false - amount: -2 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:35Z' - - id: '414441911' - accountId: '738783' - clearedOnDate: '2023-01-01T00:00:00' - description: 'UBER* TRIP - LONDON - Card Ending: 1332//OTHER/' - reconciled: false - amount: -11.95 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:35Z' - - id: '414441912' - accountId: '738783' - clearedOnDate: '2023-01-02T00:00:00' - description: 'UBER* TRIP - LONDON - Card Ending: 9271//OTHER/' - reconciled: false - amount: -13.68 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:36Z' - - id: '414441913' - accountId: '738783' - clearedOnDate: '2023-01-02T00:00:00' - description: 'WWW.KASHFLOW.COM - DATCHET - Card Ending: 1332//OTHER/' - reconciled: false - amount: -22.8 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:36Z' - - id: '414441914' - accountId: '738783' - clearedOnDate: '2023-01-02T00:00:00' - description: 'UBER *TRIP - HELP.UBER.COM - Card Ending: 1332//OTHER/' - reconciled: false - amount: -9.14 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:36Z' - - id: '414441915' - accountId: '738783' - clearedOnDate: '2023-01-02T00:00:00' - description: 'GOOGLE*GSUITE ISOMI.CO - DUBLIN 2 - Card Ending: 1332//OTHER/' - reconciled: false - amount: -216.2 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:36Z' - - id: '414441916' - accountId: '738783' - clearedOnDate: '2023-01-03T00:00:00' - description: 'Refund: AMZ*quickpickdeals - amazon.co.uk - Card Ending: 4999//OTHER/' - reconciled: false - amount: 10.97 - transactionType: Credit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:36Z' - - id: '414441917' - accountId: '738783' - clearedOnDate: '2023-01-04T00:00:00' - description: Finance Charge//OTHER/ - reconciled: false - amount: -0.41 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:36Z' - - id: '414441918' - accountId: '738783' - clearedOnDate: '2023-01-04T00:00:00' - description: 'WWW.KASHFLOW.COM - DATCHET - Card Ending: 1332//OTHER/' - reconciled: false - amount: -22.8 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:36Z' - - id: '414441919' - accountId: '738783' - clearedOnDate: '2023-01-04T00:00:00' - description: 'ACCU.CO.UK - HUDDERSFIELD - Card Ending: 2327//OTHER/' - reconciled: false - amount: -86.34 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:36Z' - - id: '414441920' - accountId: '738783' - clearedOnDate: '2023-01-04T00:00:00' - description: 'ASDA GROCERIES ONLINE - INTERNET - Card Ending: 2327//OTHER/' - reconciled: false - amount: -6.5 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:36Z' - - id: '414441922' - accountId: '738783' - clearedOnDate: '2023-01-04T00:00:00' - description: 'AMAZON PRIME*164AU3UZ4 AM - AMZN.CO.UK/PM - Card Ending: 1332//OTHER/' - reconciled: false - amount: -96 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:36Z' - - id: '414441924' - accountId: '738783' - clearedOnDate: '2023-01-05T00:00:00' - description: 'Amazon.co.uk*162DC7II4 - AMAZON.CO.UK - Card Ending: 2327//OTHER/' - reconciled: false - amount: -44.62 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:36Z' - - id: '414441926' - accountId: '738783' - clearedOnDate: '2023-01-05T00:00:00' - description: 'trainline - +443332022222 - Card Ending: 5913//OTHER/' - reconciled: false - amount: -65.46 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:36Z' - - id: '414441931' - accountId: '738783' - clearedOnDate: '2023-01-05T00:00:00' - description: 'VITAL PARTS LTD - MAIDSTONE - Card Ending: 2327//OTHER/' - reconciled: false - amount: -124.35 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:36Z' - - id: '414441934' - accountId: '738783' - clearedOnDate: '2023-01-05T00:00:00' - description: 'Amazon.co.uk*168E49IU4 - AMAZON.CO.UK - Card Ending: 2327//OTHER/' - reconciled: false - amount: -2.52 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:36Z' - - id: '414441935' - accountId: '738783' - clearedOnDate: '2023-01-05T00:00:00' - description: 'ASDA GROCERIES ONLINE - INTERNET - Card Ending: 2327//OTHER/' - reconciled: false - amount: -108.16 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:36Z' - - id: '414441936' - accountId: '738783' - clearedOnDate: '2023-01-05T00:00:00' - description: 'Refund: ASDA GROCERIES ONLINE - INTERNET - Card Ending: 2327//OTHER/' - reconciled: false - amount: 22.96 - transactionType: Credit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:36Z' - - id: '414441937' - accountId: '738783' - clearedOnDate: '2023-01-05T00:00:00' - description: 'Amazon.co.uk*1H31B0CO4 - AMAZON.CO.UK - Card Ending: 2327//OTHER/' - reconciled: false - amount: -20.52 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:36Z' - - id: '414441939' - accountId: '738783' - clearedOnDate: '2023-01-05T00:00:00' - description: 'Amazon.co.uk*1H4GR4CH4 - AMAZON.CO.UK - Card Ending: 2327//OTHER/' - reconciled: false - amount: -13.69 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:37Z' - - id: '414441941' - accountId: '738783' - clearedOnDate: '2023-01-05T00:00:00' - description: 'Amazon.co.uk*162V47WY4 - AMAZON.CO.UK - Card Ending: 2327//OTHER/' - reconciled: false - amount: -16.83 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:37Z' - - id: '414441945' - accountId: '738783' - clearedOnDate: '2023-01-05T00:00:00' - description: 'Amazon.co.uk*160J00WI4 - AMAZON.CO.UK - Card Ending: 2327//OTHER/' - reconciled: false - amount: -17.68 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:37Z' - - id: '414441946' - accountId: '738783' - clearedOnDate: '2023-01-06T00:00:00' - description: 'Amazon.co.uk*1692Y9YY4 - AMAZON.CO.UK - Card Ending: 2327//OTHER/' - reconciled: false - amount: -29.74 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:37Z' - - id: '414441947' - accountId: '738783' - clearedOnDate: '2023-01-06T00:00:00' - description: 'Amazon.co.uk*166I62Y14 - AMAZON.CO.UK - Card Ending: 2327//OTHER/' - reconciled: false - amount: -29.74 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:37Z' - - id: '414441948' - accountId: '738783' - clearedOnDate: '2023-01-06T00:00:00' - description: 'GMELIUS GROWTH - MEYRIN - Card Ending: 5913//OTHER/' - reconciled: false - amount: -121.3 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:37Z' - - id: '414441949' - accountId: '738783' - clearedOnDate: '2023-01-07T00:00:00' - description: 'ACCU.CO.UK - HUDDERSFIELD - Card Ending: 2327//OTHER/' - reconciled: false - amount: -116.34 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:37Z' - - id: '414441950' - accountId: '738783' - clearedOnDate: '2023-01-07T00:00:00' - description: 'AMZNMktplace - amazon.co.uk - Card Ending: 2327//OTHER/' - reconciled: false - amount: -66.79 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:37Z' - - id: '414441951' - accountId: '738783' - clearedOnDate: '2023-01-07T00:00:00' - description: 'TOOLSTATION UK - NORTHAMPTON - Card Ending: 2327//OTHER/' - reconciled: false - amount: -77.88 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:37Z' - - id: '414441952' - accountId: '738783' - clearedOnDate: '2023-01-07T00:00:00' - description: 'SHELL CHESTER - CHESTER - Card Ending: 9271//OTHER/' - reconciled: false - amount: -112.24 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:37Z' - - id: '414441953' - accountId: '738783' - clearedOnDate: '2023-01-08T00:00:00' - description: 'BRITISH A 1252150515112 - LONDON - Card Ending: 4999//OTHER/' - reconciled: false - amount: -450.85 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:37Z' - - id: '414441954' - accountId: '738783' - clearedOnDate: '2023-01-08T00:00:00' - description: 'BRITISH A 1254217966962 - LONDON - Card Ending: 4999//OTHER/' - reconciled: false - amount: -65 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:37Z' - - id: '414441955' - accountId: '738783' - clearedOnDate: '2023-01-08T00:00:00' - description: 'TFL TRAVEL CH - TFL.GOV.UK/CP - Card Ending: 5913//OTHER/' - reconciled: false - amount: -3.3 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:37Z' - - id: '414441956' - accountId: '738783' - clearedOnDate: '2023-01-09T00:00:00' - description: 'Amazon.co.uk*1H97Y6TL4 - AMAZON.CO.UK - Card Ending: 2327//OTHER/' - reconciled: false - amount: -17.45 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:37Z' - - id: '414441957' - accountId: '738783' - clearedOnDate: '2023-01-09T00:00:00' - description: 'UBER *TRIP - HELP.UBER.COM - Card Ending: 1332//OTHER/' - reconciled: false - amount: -15.03 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:37Z' - - id: '414441959' - accountId: '738783' - clearedOnDate: '2023-01-09T00:00:00' - description: 'UBER *TRIP - HELP.UBER.COM - Card Ending: 1332//OTHER/' - reconciled: false - amount: -16.43 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:37Z' - - id: '414441960' - accountId: '738783' - clearedOnDate: '2023-01-09T00:00:00' - description: Payment made (BACS)//OTHER/ - reconciled: false - amount: 5000 - transactionType: Credit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:37Z' - - id: '414441961' - accountId: '738783' - clearedOnDate: '2023-01-10T00:00:00' - description: 'AMZNMktplace - amazon.co.uk - Card Ending: 2327//OTHER/' - reconciled: false - amount: -32.57 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:38Z' - - id: '414441962' - accountId: '738783' - clearedOnDate: '2023-01-10T00:00:00' - description: 'TESCO STORES - LONDON - Card Ending: 5913//OTHER/' - reconciled: false - amount: -3.9 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:38Z' - - id: '414441963' - accountId: '738783' - clearedOnDate: '2023-01-10T00:00:00' - description: 'VICTORIA INN - PECKHAM - Card Ending: 5913//OTHER/' - reconciled: false - amount: -15.5 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:38Z' - - id: '414441965' - accountId: '738783' - clearedOnDate: '2023-01-10T00:00:00' - description: 'TFL TRAVEL CH - TFL.GOV.UK/CP - Card Ending: 5913//OTHER/' - reconciled: false - amount: -7.7 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:38Z' - - id: '414441967' - accountId: '738783' - clearedOnDate: '2023-01-10T00:00:00' - description: 'PRET A MANGER - 326 - Card Ending: 5913//OTHER/' - reconciled: false - amount: -13.8 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:38Z' - pageNumber: 1 - pageSize: 100 - totalResults: 153 - _links: - current: - href: /companies/071ad738-68f3-4561-afd0-69bab9df0803/connections/4fd7c69f-ecc1-45f5-83f2-42ed3391e386/data/bankAccounts/738783/bankTransactions - self: - href: /companies/071ad738-68f3-4561-afd0-69bab9df0803/connections/4fd7c69f-ecc1-45f5-83f2-42ed3391e386/data/bankAccounts/738783/bankTransactions - next: - href: /companies/071ad738-68f3-4561-afd0-69bab9df0803/connections/4fd7c69f-ecc1-45f5-83f2-42ed3391e386/data/bankAccounts/738783/bankTransactions?page=2&pageSize=100 - KashFlow: - value: - results: - - id: '765768:137014109' - accountId: '765768' - clearedOnDate: '2020-04-28T00:00:00' - description: FIRST Transaction - reconciled: false - amount: 100 - transactionType: Unknown - modifiedDate: '2022-09-30T10:29:15Z' - - id: '765768:137014143' - accountId: '765768' - clearedOnDate: '2020-04-28T00:00:00' - description: SECOND Transaction - reconciled: false - amount: 120 - transactionType: Unknown - modifiedDate: '2022-09-30T10:29:15Z' - - id: '765768:93269803' - accountId: '765768' - clearedOnDate: '2020-04-28T00:00:00' - description: 'KF00021:' - reconciled: false - amount: -5 - transactionType: Unknown - modifiedDate: '2022-09-30T10:29:15Z' - - id: '765768:141203309' - accountId: '765768' - clearedOnDate: '2020-06-18T00:00:00' - description: 'INV #33: Customer overpayment' - reconciled: false - amount: 110 - transactionType: Unknown - modifiedDate: '2022-09-30T10:29:15Z' - - id: '765768:144653342' - accountId: '765768' - clearedOnDate: '2020-10-23T00:00:00' - description: '' - reconciled: false - amount: 1 - transactionType: Unknown - modifiedDate: '2022-09-30T10:29:15Z' - pageNumber: 1 - pageSize: 100 - totalResults: 5 - _links: - current: - href: /companies/3a707a99-89da-4b16-a5d6-595333a16352/connections/ecab4f64-1a04-4c53-a343-bfd879f41f67/data/bankAccounts/765768/bankTransactions - self: - href: /companies/3a707a99-89da-4b16-a5d6-595333a16352/connections/ecab4f64-1a04-4c53-a343-bfd879f41f67/data/bankAccounts/765768/bankTransactions - QuickBooks Desktop: - value: - results: - - id: D7B-933784104 - accountId: 20000-933270541 - clearedOnDate: '2022-12-01T00:00:00' - description: '' - reconciled: false - amount: -1200 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:04:10' - - id: DFA-933785132 - accountId: 20000-933270541 - clearedOnDate: '2022-12-05T00:00:00' - description: '' - reconciled: false - amount: -35 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:04:11' - - id: E2E-933785785 - accountId: 20000-933270541 - clearedOnDate: '2022-12-10T00:00:00' - description: '' - reconciled: false - amount: -197.59 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:04:11' - - id: 536B-1197755199 - accountId: 20000-933270541 - clearedOnDate: '2022-12-20T00:00:00' - description: '' - reconciled: false - amount: -2100 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:05:47' - - id: 5C18-1197711471-to - accountId: 20000-933270541 - clearedOnDate: '2022-12-31T00:00:00' - description: Opening Balance - Bank Balance - Checking Account - reconciled: false - amount: 27874.62 - transactionType: Other - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:06' - - id: 3A09-1071529982 - accountId: 20000-933270541 - clearedOnDate: '2023-01-11T00:00:00' - description: Monthly Truck Payment - reconciled: false - amount: -532.97 - transactionType: Unknown - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:04:58' - - id: 95C6-1197729008 - accountId: 20000-933270541 - clearedOnDate: '2023-01-15T00:00:00' - description: 941 Deposit for December 2005 Payyroll - reconciled: false - amount: -3495.82 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:19' - - id: 95CA-1197729081 - accountId: 20000-933270541 - clearedOnDate: '2023-01-15T00:00:00' - description: FUTA Payment - 4 Qrt 2005 - reconciled: false - amount: -100 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:19' - - id: 95D0-1197729222 - accountId: 20000-933270541 - clearedOnDate: '2023-01-15T00:00:00' - description: State Unemployment and Disability - 4th Quarter 2005 - reconciled: false - amount: -208.09 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:19' - - id: 95D4-1197729376 - accountId: 20000-933270541 - clearedOnDate: '2023-01-15T00:00:00' - description: Worker's Compensation - 4th Quarter 2005 - reconciled: false - amount: -1214.31 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:19' - - id: 9C06-1181931827 - accountId: 20000-933270541 - clearedOnDate: '2023-01-15T00:00:00' - description: Deposit - reconciled: false - amount: 1228.18 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:23' - - id: 9E3A-1182063799 - accountId: 20000-933270541 - clearedOnDate: '2023-01-15T00:00:00' - description: '' - reconciled: false - amount: -308.34 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:30' - - id: A293-1197953458 - accountId: 20000-933270541 - clearedOnDate: '2023-01-15T00:00:00' - description: '' - reconciled: false - amount: -12362.89 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:35' - - id: A2AB-1197953786 - accountId: 20000-933270541 - clearedOnDate: '2023-01-15T00:00:00' - description: '' - reconciled: false - amount: -9521 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:35' - - id: A33E-1197955762 - accountId: 20000-933270541 - clearedOnDate: '2023-01-15T00:00:00' - description: ABCD 11-234567 - reconciled: false - amount: -3146.88 - transactionType: Unknown - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:36' - - id: 6992-1197775718 - accountId: 20000-933270541 - clearedOnDate: '2023-01-17T00:00:00' - description: Deposit - reconciled: false - amount: 15281.67 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:11' - - id: 3E5D-1071498699 - accountId: 20000-933270541 - clearedOnDate: '2023-01-21T00:00:00' - description: 786-35 - reconciled: false - amount: -712.56 - transactionType: Unknown - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:05:09' - - id: 699D-1197775731 - accountId: 20000-933270541 - clearedOnDate: '2023-01-25T00:00:00' - description: Deposit - reconciled: false - amount: 31474.25 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:11' - - id: 53D-933354764 - accountId: 20000-933270541 - clearedOnDate: '2023-01-31T00:00:00' - description: Monthly Water - Flat Rate Plan - reconciled: false - amount: -24 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:04:00' - - id: 9E3D-1182131998 - accountId: 20000-933270541 - clearedOnDate: '2023-01-31T00:00:00' - description: '' - reconciled: false - amount: -205 - transactionType: Unknown - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:30' - - id: 9E42-1182131999 - accountId: 20000-933270541 - clearedOnDate: '2023-01-31T00:00:00' - description: '' - reconciled: false - amount: -532 - transactionType: Unknown - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:30' - - id: 9E47-1182131999 - accountId: 20000-933270541 - clearedOnDate: '2023-01-31T00:00:00' - description: '' - reconciled: false - amount: -623 - transactionType: Unknown - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:30' - - id: 9E4C-1182131999 - accountId: 20000-933270541 - clearedOnDate: '2023-01-31T00:00:00' - description: '' - reconciled: false - amount: -13759 - transactionType: Unknown - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:30' - - id: 9ED6-1182133365 - accountId: 20000-933270541 - clearedOnDate: '2023-01-31T00:00:00' - description: Fuel - reconciled: false - amount: -138 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:32' - - id: 9F2D-1197948760 - accountId: 20000-933270541 - clearedOnDate: '2023-01-31T00:00:00' - description: Monthly Vehicle Repairs and Maintenance - reconciled: false - amount: -218 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:33' - - id: 9F96-1197949640 - accountId: 20000-933270541 - clearedOnDate: '2023-01-31T00:00:00' - description: 'Acct #560-82645-99C' - reconciled: false - amount: -123.67 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:33' - - id: A2CD-1197955250 - accountId: 20000-933270541 - clearedOnDate: '2023-01-31T00:00:00' - description: Pmt# 1 - reconciled: false - amount: -2710.9 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:36' - - id: F29-933787474 - accountId: 20000-933270541 - clearedOnDate: '2023-01-31T00:00:00' - description: Checking Account Service Charge - reconciled: false - amount: -12.5 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:04:13' - - id: 698D-1197775698 - accountId: 20000-933270541 - clearedOnDate: '2023-02-02T00:00:00' - description: Deposit - reconciled: false - amount: 1040 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:11' - - id: 69A8-1197775740 - accountId: 20000-933270541 - clearedOnDate: '2023-02-09T00:00:00' - description: Deposit - reconciled: false - amount: 271.53 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:11' - - id: 3A10-1071529997 - accountId: 20000-933270541 - clearedOnDate: '2023-02-11T00:00:00' - description: Monthly Truck Payment - reconciled: false - amount: -532.97 - transactionType: Unknown - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:04:58' - - id: A0BD-1197950967 - accountId: 20000-933270541 - clearedOnDate: '2023-02-15T00:00:00' - description: '' - reconciled: false - amount: -268.39 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:35' - - id: A2AF-1197953842 - accountId: 20000-933270541 - clearedOnDate: '2023-02-15T00:00:00' - description: '' - reconciled: false - amount: -4050.98 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:35' - - id: A343-1197955826 - accountId: 20000-933270541 - clearedOnDate: '2023-02-15T00:00:00' - description: ABCD 11-234567 - reconciled: false - amount: -1466.32 - transactionType: Unknown - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:36' - - id: 9C0B-1181931843 - accountId: 20000-933270541 - clearedOnDate: '2023-02-28T00:00:00' - description: Deposit - reconciled: false - amount: 25471.56 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:23' - - id: 9E63-1182132109 - accountId: 20000-933270541 - clearedOnDate: '2023-02-28T00:00:00' - description: For Vetter Basement Remodel - reconciled: false - amount: -2050 - transactionType: Unknown - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:30' - - id: 9ED9-1182133383 - accountId: 20000-933270541 - clearedOnDate: '2023-02-28T00:00:00' - description: Fuel - reconciled: false - amount: -142 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:32' - - id: 9F33-1197948806 - accountId: 20000-933270541 - clearedOnDate: '2023-02-28T00:00:00' - description: Monthly Vechiicle Repairs and Maintenance - reconciled: false - amount: -222 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:33' - - id: 9F99-1197949656 - accountId: 20000-933270541 - clearedOnDate: '2023-02-28T00:00:00' - description: 'Acct #560-82645-99C' - reconciled: false - amount: -125.89 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:33' - - id: 9FBD-1197949852 - accountId: 20000-933270541 - clearedOnDate: '2023-02-28T00:00:00' - description: Monthly Water - Flat Rate Plan - reconciled: false - amount: -24 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:34' - - id: A052-1197950680 - accountId: 20000-933270541 - clearedOnDate: '2023-02-28T00:00:00' - description: Flat Rate Phone and Long Distance Bundle - reconciled: false - amount: -80 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:34' - - id: A081-1197950831 - accountId: 20000-933270541 - clearedOnDate: '2023-02-28T00:00:00' - description: Checking Account Service Charge - reconciled: false - amount: -12.5 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:35' - - id: A2D1-1197955271 - accountId: 20000-933270541 - clearedOnDate: '2023-02-28T00:00:00' - description: Pmt# 2 - reconciled: false - amount: -2710.9 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:36' - - id: 3A17-1071530007 - accountId: 20000-933270541 - clearedOnDate: '2023-03-11T00:00:00' - description: Monthly Truck Payment - reconciled: false - amount: -532.97 - transactionType: Unknown - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:04:58' - - id: 9C38-1182054225 - accountId: 20000-933270541 - clearedOnDate: '2023-03-13T00:00:00' - description: '' - reconciled: false - amount: -7500 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:24' - - id: A296-1197953484 - accountId: 20000-933270541 - clearedOnDate: '2023-03-15T00:00:00' - description: '' - reconciled: false - amount: -1600 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:35' - - id: A346-1197955854 - accountId: 20000-933270541 - clearedOnDate: '2023-03-15T00:00:00' - description: ABCD 11-234567 - reconciled: false - amount: -83.6 - transactionType: Unknown - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:36' - - id: 9C10-1181931855 - accountId: 20000-933270541 - clearedOnDate: '2023-03-20T00:00:00' - description: Deposit - reconciled: false - amount: 6278.8 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:23' - - id: 9E72-1182132247 - accountId: 20000-933270541 - clearedOnDate: '2023-03-31T00:00:00' - description: '' - reconciled: false - amount: -435 - transactionType: Unknown - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:30' - - id: 9EDC-1182133383 - accountId: 20000-933270541 - clearedOnDate: '2023-03-31T00:00:00' - description: Fuel - reconciled: false - amount: -127 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:32' - - id: 9F36-1197948806 - accountId: 20000-933270541 - clearedOnDate: '2023-03-31T00:00:00' - description: Monthly Vechiicle Repairs and Maintenance - reconciled: false - amount: -232 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:33' - - id: 9F7B-1197949443 - accountId: 20000-933270541 - clearedOnDate: '2023-03-31T00:00:00' - description: Payment - Quarterly Office Maintenance Contract - reconciled: false - amount: -450 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:33' - - id: 9F9C-1197949656 - accountId: 20000-933270541 - clearedOnDate: '2023-03-31T00:00:00' - description: 'Acct #560-82645-99C' - reconciled: false - amount: -389.2 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:33' - - id: 9FC0-1197949852 - accountId: 20000-933270541 - clearedOnDate: '2023-03-31T00:00:00' - description: Monthly Water - Flat Rate Plan - reconciled: false - amount: -24 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:34' - - id: A056-1197950680 - accountId: 20000-933270541 - clearedOnDate: '2023-03-31T00:00:00' - description: Flat Rate Phone and Long Distance Bundle - reconciled: false - amount: -80 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:34' - - id: A084-1197950832 - accountId: 20000-933270541 - clearedOnDate: '2023-03-31T00:00:00' - description: Checking Account Service Charge - reconciled: false - amount: -12.5 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:35' - - id: A2D5-1197955280 - accountId: 20000-933270541 - clearedOnDate: '2023-03-31T00:00:00' - description: Pmt# 3 - reconciled: false - amount: -2710.9 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:36' - - id: 3A1E-1071530019 - accountId: 20000-933270541 - clearedOnDate: '2023-04-12T00:00:00' - description: Monthly Truck Payment - reconciled: false - amount: -532.97 - transactionType: Unknown - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:04:58' - - id: 4271-1071523732 - accountId: 20000-933270541 - clearedOnDate: '2023-04-17T00:00:00' - description: '' - reconciled: false - amount: -714 - transactionType: Unknown - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:05:32' - - id: 3E98-1071499056 - accountId: 20000-933270541 - clearedOnDate: '2023-04-19T00:00:00' - description: 786-35 - reconciled: false - amount: -712.56 - transactionType: Unknown - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:05:11' - - id: 9C68-1182054440 - accountId: 20000-933270541 - clearedOnDate: '2023-04-20T00:00:00' - description: Deposit - reconciled: false - amount: 16500 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:24' - - id: 9EDF-1182133383 - accountId: 20000-933270541 - clearedOnDate: '2023-04-30T00:00:00' - description: Fuel - reconciled: false - amount: -162 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:32' - - id: 9F39-1197948806 - accountId: 20000-933270541 - clearedOnDate: '2023-04-30T00:00:00' - description: Monthly Vechiicle Repairs and Maintenance - reconciled: false - amount: -192 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:33' - - id: 9F9F-1197949656 - accountId: 20000-933270541 - clearedOnDate: '2023-04-30T00:00:00' - description: 'Acct #560-82645-99C' - reconciled: false - amount: -120.93 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:33' - - id: 9FC3-1197949852 - accountId: 20000-933270541 - clearedOnDate: '2023-04-30T00:00:00' - description: Monthly Water - Flat Rate Plan - reconciled: false - amount: -24 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:34' - - id: A05A-1197950680 - accountId: 20000-933270541 - clearedOnDate: '2023-04-30T00:00:00' - description: Flat Rate Phone and Long Distance Bundle - reconciled: false - amount: -80 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:34' - - id: A087-1197950832 - accountId: 20000-933270541 - clearedOnDate: '2023-04-30T00:00:00' - description: Checking Account Service Charge - reconciled: false - amount: -12.5 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:35' - - id: A2D9-1197955286 - accountId: 20000-933270541 - clearedOnDate: '2023-04-30T00:00:00' - description: Pmt# 4 - reconciled: false - amount: -2710.9 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:36' - - id: 9C86-1182054823 - accountId: 20000-933270541 - clearedOnDate: '2023-05-01T00:00:00' - description: '' - reconciled: false - amount: -7500 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:24' - - id: 3A25-1071530029 - accountId: 20000-933270541 - clearedOnDate: '2023-05-13T00:00:00' - description: Monthly Truck Payment - reconciled: false - amount: -532.97 - transactionType: Unknown - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:04:59' - - id: A0C0-1197950991 - accountId: 20000-933270541 - clearedOnDate: '2023-05-15T00:00:00' - description: '' - reconciled: false - amount: -950.23 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:35' - - id: A299-1197953515 - accountId: 20000-933270541 - clearedOnDate: '2023-05-15T00:00:00' - description: '' - reconciled: false - amount: -1400 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:35' - - id: A349-1197955899 - accountId: 20000-933270541 - clearedOnDate: '2023-05-15T00:00:00' - description: ABCD 11-234567 - reconciled: false - amount: -318.02 - transactionType: Unknown - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:36' - - id: 9CB8-1182055085 - accountId: 20000-933270541 - clearedOnDate: '2023-05-31T00:00:00' - description: Deposit - reconciled: false - amount: 16500 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:25' - - id: 9EE2-1182133383 - accountId: 20000-933270541 - clearedOnDate: '2023-05-31T00:00:00' - description: Fuel - reconciled: false - amount: -143 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:32' - - id: 9F3C-1197948806 - accountId: 20000-933270541 - clearedOnDate: '2023-05-31T00:00:00' - description: Monthly Vechiicle Repairs and Maintenance - reconciled: false - amount: -232 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:33' - - id: 9FA2-1197949656 - accountId: 20000-933270541 - clearedOnDate: '2023-05-31T00:00:00' - description: 'Acct #560-82645-99C' - reconciled: false - amount: -128.03 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:33' - - id: 9FC6-1197949852 - accountId: 20000-933270541 - clearedOnDate: '2023-05-31T00:00:00' - description: Monthly Water - Flat Rate Plan - reconciled: false - amount: -24 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:34' - - id: A05E-1197950680 - accountId: 20000-933270541 - clearedOnDate: '2023-05-31T00:00:00' - description: Flat Rate Phone and Long Distance Bundle - reconciled: false - amount: -80 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:34' - - id: A08A-1197950832 - accountId: 20000-933270541 - clearedOnDate: '2023-05-31T00:00:00' - description: Checking Account Service Charge - reconciled: false - amount: -12.5 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:35' - - id: A2DD-1197955294 - accountId: 20000-933270541 - clearedOnDate: '2023-05-31T00:00:00' - description: Pmt# 5 - reconciled: false - amount: -2710.9 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:36' - - id: 9CBD-1182055262 - accountId: 20000-933270541 - clearedOnDate: '2023-06-06T00:00:00' - description: '' - reconciled: false - amount: -5275 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:25' - - id: 3A2C-1071530042 - accountId: 20000-933270541 - clearedOnDate: '2023-06-10T00:00:00' - description: Monthly Truck Payment - reconciled: false - amount: -532.97 - transactionType: Unknown - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:04:59' - - id: 5356-1197761596 - accountId: 20000-933270541 - clearedOnDate: '2023-06-16T00:00:00' - description: '' - reconciled: false - amount: -1786 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:05:46' - - id: 9EE5-1182133383 - accountId: 20000-933270541 - clearedOnDate: '2023-06-30T00:00:00' - description: Fuel - reconciled: false - amount: -157 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:32' - - id: 9F3F-1197948806 - accountId: 20000-933270541 - clearedOnDate: '2023-06-30T00:00:00' - description: Monthly Vechiicle Repairs and Maintenance - reconciled: false - amount: -186 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:33' - - id: 9F7E-1197949458 - accountId: 20000-933270541 - clearedOnDate: '2023-06-30T00:00:00' - description: Payment - Quarterly Office Maintenance Contract - reconciled: false - amount: -450 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:33' - - id: 9FA5-1197949656 - accountId: 20000-933270541 - clearedOnDate: '2023-06-30T00:00:00' - description: 'Acct #560-82645-99C' - reconciled: false - amount: -135.02 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:33' - - id: 9FC9-1197949852 - accountId: 20000-933270541 - clearedOnDate: '2023-06-30T00:00:00' - description: Monthly Water - Flat Rate Plan - reconciled: false - amount: -24 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:34' - - id: A062-1197950680 - accountId: 20000-933270541 - clearedOnDate: '2023-06-30T00:00:00' - description: Flat Rate Phone and Long Distance Bundle - reconciled: false - amount: -80 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:34' - - id: A08D-1197950832 - accountId: 20000-933270541 - clearedOnDate: '2023-06-30T00:00:00' - description: Checking Account Service Charge - reconciled: false - amount: -12.5 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:35' - - id: A2E1-1197955306 - accountId: 20000-933270541 - clearedOnDate: '2023-06-30T00:00:00' - description: Pmt# 6 - reconciled: false - amount: -2710.9 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:36' - - id: 3A33-1071530066 - accountId: 20000-933270541 - clearedOnDate: '2023-07-11T00:00:00' - description: Monthly Truck Payment - reconciled: false - amount: -532.97 - transactionType: Unknown - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:04:59' - - id: 3E67-1071498733 - accountId: 20000-933270541 - clearedOnDate: '2023-07-19T00:00:00' - description: 786-35 - reconciled: false - amount: -712.56 - transactionType: Unknown - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:05:09' - - id: A0C3-1197951027 - accountId: 20000-933270541 - clearedOnDate: '2023-07-23T00:00:00' - description: '' - reconciled: false - amount: -239.29 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:35' - - id: 9EE8-1182133383 - accountId: 20000-933270541 - clearedOnDate: '2023-07-31T00:00:00' - description: Fuel - reconciled: false - amount: -126 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:32' - - id: 9F42-1197948806 - accountId: 20000-933270541 - clearedOnDate: '2023-07-31T00:00:00' - description: Monthly Vechiicle Repairs and Maintenance - reconciled: false - amount: -126 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:33' - - id: 9FA8-1197949656 - accountId: 20000-933270541 - clearedOnDate: '2023-07-31T00:00:00' - description: 'Acct #560-82645-99C' - reconciled: false - amount: -128.03 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:33' - - id: 9FCC-1197949852 - accountId: 20000-933270541 - clearedOnDate: '2023-07-31T00:00:00' - description: Monthly Water - Flat Rate Plan - reconciled: false - amount: -24 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:34' - - id: A066-1197950680 - accountId: 20000-933270541 - clearedOnDate: '2023-07-31T00:00:00' - description: Flat Rate Phone and Long Distance Bundle - reconciled: false - amount: -80 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:34' - pageNumber: 1 - pageSize: 100 - totalResults: 495 - _links: - current: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/connections/2c26b4da-97d4-4ba9-baad-1e18b49b96ac/data/bankAccounts/20000-933270541/bankTransactions - self: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/connections/2c26b4da-97d4-4ba9-baad-1e18b49b96ac/data/bankAccounts/20000-933270541/bankTransactions - next: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/connections/2c26b4da-97d4-4ba9-baad-1e18b49b96ac/data/bankAccounts/20000-933270541/bankTransactions?page=2&pageSize=100 - Sage 50 (UK): - value: - results: - - id: '73' - accountId: '1200' - clearedOnDate: '2021-01-29T00:00:00' - description: DD/STO - reconciled: false - amount: -162 - balance: -10164.54 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '52' - accountId: '1200' - clearedOnDate: '2021-01-30T00:00:00' - description: '568953' - reconciled: false - amount: -1497.58 - balance: -10302.54 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '53' - accountId: '1200' - clearedOnDate: '2021-01-30T00:00:00' - description: '5897532' - reconciled: false - amount: 500 - balance: -9802.54 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '54' - accountId: '1200' - clearedOnDate: '2021-01-30T00:00:00' - description: TRANS - reconciled: false - amount: -250 - balance: -10052.54 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '58' - accountId: '1200' - clearedOnDate: '2021-01-30T00:00:00' - description: VOID - reconciled: false - amount: 50 - balance: -10002.54 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '50' - accountId: '1200' - clearedOnDate: '2021-01-31T00:00:00' - description: TRANS - reconciled: false - amount: -500 - balance: -8804.96 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '85' - accountId: '1200' - clearedOnDate: '2021-01-31T00:00:00' - description: '6565689' - reconciled: false - amount: -1800 - balance: -11964.54 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '97' - accountId: '1200' - clearedOnDate: '2021-01-31T00:00:00' - description: Salary - reconciled: false - amount: -5932.29 - balance: -17896.83 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '1183' - accountId: '1200' - clearedOnDate: '2021-09-01T00:00:00' - description: DD/STO - reconciled: false - amount: -162 - balance: 11299.91 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '1184' - accountId: '1200' - clearedOnDate: '2021-09-15T00:00:00' - description: DD/STO - reconciled: false - amount: -1200 - balance: 10099.91 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '1185' - accountId: '1200' - clearedOnDate: '2021-09-28T00:00:00' - description: DD/STO - reconciled: false - amount: -150 - balance: 9949.91 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '1186' - accountId: '1200' - clearedOnDate: '2021-09-28T00:00:00' - description: DD/STO - reconciled: false - amount: -5.55 - balance: 9944.36 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '1187' - accountId: '1200' - clearedOnDate: '2021-10-13T00:00:00' - description: DD/STO - reconciled: false - amount: -1200 - balance: 8744.36 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '1188' - accountId: '1200' - clearedOnDate: '2021-10-28T00:00:00' - description: DD/STO - reconciled: false - amount: -150 - balance: 8594.36 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '1189' - accountId: '1200' - clearedOnDate: '2021-10-28T00:00:00' - description: DD/STO - reconciled: false - amount: -5.55 - balance: 8588.81 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '1190' - accountId: '1200' - clearedOnDate: '2021-11-10T00:00:00' - description: DD/STO - reconciled: false - amount: -1200 - balance: 7388.81 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '1191' - accountId: '1200' - clearedOnDate: '2021-11-28T00:00:00' - description: DD/STO - reconciled: false - amount: -150 - balance: 7238.81 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '1192' - accountId: '1200' - clearedOnDate: '2021-11-28T00:00:00' - description: DD/STO - reconciled: false - amount: -5.55 - balance: 7233.26 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '1193' - accountId: '1200' - clearedOnDate: '2021-12-08T00:00:00' - description: DD/STO - reconciled: false - amount: -1200 - balance: 6033.26 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '1194' - accountId: '1200' - clearedOnDate: '2021-12-28T00:00:00' - description: DD/STO - reconciled: false - amount: -150 - balance: 5883.26 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '1195' - accountId: '1200' - clearedOnDate: '2021-12-28T00:00:00' - description: DD/STO - reconciled: false - amount: -5.55 - balance: 5877.71 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '24' - accountId: '1200' - clearedOnDate: '2021-12-31T00:00:00' - description: O/Bal - reconciled: true - amount: -6511.96 - balance: -6511.96 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '26' - accountId: '1200' - clearedOnDate: '2021-12-31T00:00:00' - description: '56956' - reconciled: false - amount: 55 - balance: -6456.96 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '27' - accountId: '1200' - clearedOnDate: '2021-12-31T00:00:00' - description: '656678' - reconciled: false - amount: -150 - balance: -6606.96 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '28' - accountId: '1200' - clearedOnDate: '2021-12-31T00:00:00' - description: '656679' - reconciled: false - amount: -352 - balance: -6958.96 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '29' - accountId: '1200' - clearedOnDate: '2021-12-31T00:00:00' - description: '656680' - reconciled: false - amount: -550 - balance: -7508.96 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '30' - accountId: '1200' - clearedOnDate: '2021-12-31T00:00:00' - description: '656681' - reconciled: false - amount: -250 - balance: -7758.96 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '31' - accountId: '1200' - clearedOnDate: '2021-12-31T00:00:00' - description: '656869' - reconciled: false - amount: -546 - balance: -8304.96 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '1196' - accountId: '1200' - clearedOnDate: '2022-01-01T00:00:00' - description: DD/STO - reconciled: false - amount: -162 - balance: 5715.71 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '1197' - accountId: '1200' - clearedOnDate: '2022-01-05T00:00:00' - description: DD/STO - reconciled: false - amount: -1200 - balance: 4515.71 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '1198' - accountId: '1200' - clearedOnDate: '2022-01-28T00:00:00' - description: DD/STO - reconciled: false - amount: -150 - balance: 4365.71 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '1199' - accountId: '1200' - clearedOnDate: '2022-01-28T00:00:00' - description: DD/STO - reconciled: false - amount: -5.55 - balance: 4360.16 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '255' - accountId: '1200' - clearedOnDate: '2022-01-29T00:00:00' - description: (BACS) - reconciled: false - amount: -370.71 - balance: -18267.54 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '256' - accountId: '1200' - clearedOnDate: '2022-01-29T00:00:00' - description: '100001' - reconciled: false - amount: -256.36 - balance: -18523.9 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '257' - accountId: '1200' - clearedOnDate: '2022-01-29T00:00:00' - description: '100002' - reconciled: false - amount: -25.5 - balance: -18549.4 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '258' - accountId: '1200' - clearedOnDate: '2022-01-29T00:00:00' - description: '100003' - reconciled: false - amount: -1977.58 - balance: -20526.98 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '259' - accountId: '1200' - clearedOnDate: '2022-01-29T00:00:00' - description: '100004' - reconciled: false - amount: -599.03 - balance: -21126.01 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '260' - accountId: '1200' - clearedOnDate: '2022-01-29T00:00:00' - description: '100005' - reconciled: false - amount: -7141.98 - balance: -28267.99 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '261' - accountId: '1200' - clearedOnDate: '2022-01-29T00:00:00' - description: '100006' - reconciled: false - amount: -150.96 - balance: -28418.95 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '262' - accountId: '1200' - clearedOnDate: '2022-01-29T00:00:00' - description: '100007' - reconciled: false - amount: -63 - balance: -28481.95 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '263' - accountId: '1200' - clearedOnDate: '2022-01-29T00:00:00' - description: '100008' - reconciled: false - amount: -35.01 - balance: -28516.96 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '264' - accountId: '1200' - clearedOnDate: '2022-01-29T00:00:00' - description: '100009' - reconciled: false - amount: -1659.34 - balance: -30176.3 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '265' - accountId: '1200' - clearedOnDate: '2022-01-29T00:00:00' - description: '4353454' - reconciled: false - amount: 1432.17 - balance: -28744.13 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '266' - accountId: '1200' - clearedOnDate: '2022-01-29T00:00:00' - description: '' - reconciled: false - amount: 2684.26 - balance: -26059.87 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '267' - accountId: '1200' - clearedOnDate: '2022-01-29T00:00:00' - description: '' - reconciled: false - amount: 1204.57 - balance: -24855.3 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '268' - accountId: '1200' - clearedOnDate: '2022-01-29T00:00:00' - description: '' - reconciled: false - amount: 1140.78 - balance: -23714.52 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '269' - accountId: '1200' - clearedOnDate: '2022-01-29T00:00:00' - description: '' - reconciled: false - amount: 4372 - balance: -19342.52 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '270' - accountId: '1200' - clearedOnDate: '2022-01-29T00:00:00' - description: '' - reconciled: false - amount: 1946.18 - balance: -17396.34 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '271' - accountId: '1200' - clearedOnDate: '2022-01-29T00:00:00' - description: '' - reconciled: false - amount: 11123.33 - balance: -6273.01 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '1200' - accountId: '1200' - clearedOnDate: '2022-02-02T00:00:00' - description: DD/STO - reconciled: false - amount: -1200 - balance: 3160.16 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '300' - accountId: '1200' - clearedOnDate: '2022-02-03T00:00:00' - description: TRANS - reconciled: false - amount: -500 - balance: -16588.09 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '1201' - accountId: '1200' - clearedOnDate: '2022-02-28T00:00:00' - description: DD/STO - reconciled: false - amount: -150 - balance: 3010.16 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '1202' - accountId: '1200' - clearedOnDate: '2022-02-28T00:00:00' - description: DD/STO - reconciled: false - amount: -5.55 - balance: 3004.61 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '276' - accountId: '1200' - clearedOnDate: '2022-02-28T00:00:00' - description: Credit - reconciled: false - amount: -500 - balance: -6773.01 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '279' - accountId: '1200' - clearedOnDate: '2022-02-28T00:00:00' - description: '' - reconciled: false - amount: -58.75 - balance: -6831.76 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '280' - accountId: '1200' - clearedOnDate: '2022-02-28T00:00:00' - description: TRANS - reconciled: false - amount: -1400 - balance: -8231.76 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '282' - accountId: '1200' - clearedOnDate: '2022-02-28T00:00:00' - description: TRANS - reconciled: false - amount: -12600 - balance: -20831.76 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '286' - accountId: '1200' - clearedOnDate: '2022-02-28T00:00:00' - description: TRANS - reconciled: false - amount: 6500 - balance: -14331.76 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '287' - accountId: '1200' - clearedOnDate: '2022-02-28T00:00:00' - description: PAYE - reconciled: false - amount: -1256.33 - balance: -15588.09 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '288' - accountId: '1200' - clearedOnDate: '2022-02-28T00:00:00' - description: Deposit - reconciled: false - amount: -500 - balance: -16088.09 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '314' - accountId: '1200' - clearedOnDate: '2022-02-28T00:00:00' - description: DD/STO - reconciled: false - amount: -162 - balance: -16750.09 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '315' - accountId: '1200' - clearedOnDate: '2022-02-28T00:00:00' - description: DD/STO - reconciled: false - amount: -1200 - balance: -17950.09 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '325' - accountId: '1200' - clearedOnDate: '2022-02-28T00:00:00' - description: Loan - reconciled: false - amount: -150 - balance: -18100.09 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '326' - accountId: '1200' - clearedOnDate: '2022-02-28T00:00:00' - description: Loan - reconciled: false - amount: -5.55 - balance: -18105.64 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '328' - accountId: '1200' - clearedOnDate: '2022-02-28T00:00:00' - description: Returned - reconciled: false - amount: 103.4 - balance: -18002.24 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '331' - accountId: '1200' - clearedOnDate: '2022-02-28T00:00:00' - description: Salary - reconciled: false - amount: -5932.29 - balance: -23934.53 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '523' - accountId: '1200' - clearedOnDate: '2022-02-28T00:00:00' - description: '' - reconciled: false - amount: 6556.33 - balance: -17378.2 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '525' - accountId: '1200' - clearedOnDate: '2022-02-28T00:00:00' - description: '' - reconciled: false - amount: 3350.33 - balance: -14027.87 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '526' - accountId: '1200' - clearedOnDate: '2022-02-28T00:00:00' - description: (BACS) - reconciled: false - amount: -435.14 - balance: -14463.01 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '529' - accountId: '1200' - clearedOnDate: '2022-02-28T00:00:00' - description: '12324' - reconciled: false - amount: -8561.48 - balance: -23024.49 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '532' - accountId: '1200' - clearedOnDate: '2022-03-01T00:00:00' - description: VOID - reconciled: false - amount: 352.5 - balance: -22671.99 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '534' - accountId: '1200' - clearedOnDate: '2022-03-01T00:00:00' - description: SED - reconciled: false - amount: 55 - balance: -22616.99 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '1203' - accountId: '1200' - clearedOnDate: '2022-03-02T00:00:00' - description: DD/STO - reconciled: false - amount: -1200 - balance: 1804.61 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '821' - accountId: '1200' - clearedOnDate: '2022-03-10T00:00:00' - description: '' - reconciled: false - amount: 1908.89 - balance: -14370.08 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '820' - accountId: '1200' - clearedOnDate: '2022-03-20T00:00:00' - description: '776' - reconciled: false - amount: 9057.34 - balance: -16278.97 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '606' - accountId: '1200' - clearedOnDate: '2022-03-24T00:00:00' - description: Deposit - reconciled: false - amount: -150 - balance: -22370.09 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '607' - accountId: '1200' - clearedOnDate: '2022-03-25T00:00:00' - description: '44555' - reconciled: false - amount: 100 - balance: -22270.09 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '823' - accountId: '1200' - clearedOnDate: '2022-03-25T00:00:00' - description: '' - reconciled: false - amount: 1770.15 - balance: -12229.5 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '578' - accountId: '1200' - clearedOnDate: '2022-03-27T00:00:00' - description: '456' - reconciled: false - amount: -15 - balance: -22084.91 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '608' - accountId: '1200' - clearedOnDate: '2022-03-27T00:00:00' - description: CREDIT - reconciled: false - amount: -100 - balance: -22370.09 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '824' - accountId: '1200' - clearedOnDate: '2022-03-27T00:00:00' - description: '' - reconciled: false - amount: 1025.86 - balance: -11203.64 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '1204' - accountId: '1200' - clearedOnDate: '2022-03-28T00:00:00' - description: DD/STO - reconciled: false - amount: -150 - balance: 1654.61 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '1205' - accountId: '1200' - clearedOnDate: '2022-03-28T00:00:00' - description: DD/STO - reconciled: false - amount: -5.55 - balance: 1649.06 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '546' - accountId: '1200' - clearedOnDate: '2022-03-28T00:00:00' - description: DD/STO - reconciled: false - amount: -162 - balance: -22778.99 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '547' - accountId: '1200' - clearedOnDate: '2022-03-28T00:00:00' - description: DD/STO - reconciled: false - amount: -1200 - balance: -23978.99 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '548' - accountId: '1200' - clearedOnDate: '2022-03-28T00:00:00' - description: DD/STO - reconciled: false - amount: -150 - balance: -24128.99 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '549' - accountId: '1200' - clearedOnDate: '2022-03-28T00:00:00' - description: DD/STO - reconciled: false - amount: -5.55 - balance: -24134.54 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '555' - accountId: '1200' - clearedOnDate: '2022-03-28T00:00:00' - description: VOID - reconciled: false - amount: 50 - balance: -24084.54 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '560' - accountId: '1200' - clearedOnDate: '2022-03-28T00:00:00' - description: REFUND - reconciled: false - amount: 64.63 - balance: -24019.91 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '562' - accountId: '1200' - clearedOnDate: '2022-03-28T00:00:00' - description: TRANS - reconciled: false - amount: 2000 - balance: -22019.91 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '563' - accountId: '1200' - clearedOnDate: '2022-03-28T00:00:00' - description: TRANS - reconciled: false - amount: -50 - balance: -22069.91 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '584' - accountId: '1200' - clearedOnDate: '2022-03-28T00:00:00' - description: CREDIT - reconciled: false - amount: -70.31 - balance: -22155.22 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '589' - accountId: '1200' - clearedOnDate: '2022-03-28T00:00:00' - description: VOID - reconciled: false - amount: 30 - balance: -22125.22 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '596' - accountId: '1200' - clearedOnDate: '2022-03-28T00:00:00' - description: REFUND - reconciled: false - amount: 35.01 - balance: -22090.21 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '597' - accountId: '1200' - clearedOnDate: '2022-03-28T00:00:00' - description: PAYE - reconciled: false - amount: -2070.23 - balance: -24160.44 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '598' - accountId: '1200' - clearedOnDate: '2022-03-28T00:00:00' - description: NI - reconciled: false - amount: -1003.49 - balance: -25163.93 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '604' - accountId: '1200' - clearedOnDate: '2022-03-28T00:00:00' - description: TRANS - reconciled: false - amount: 3000 - balance: -22163.93 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '605' - accountId: '1200' - clearedOnDate: '2022-03-28T00:00:00' - description: '225' - reconciled: false - amount: -56.16 - balance: -22220.09 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '612' - accountId: '1200' - clearedOnDate: '2022-03-29T00:00:00' - description: NI - reconciled: false - amount: -1003.49 - balance: -29305.87 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '614' - accountId: '1200' - clearedOnDate: '2022-03-29T00:00:00' - description: Sales - reconciled: false - amount: 179.2 - balance: -29126.67 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - pageNumber: 1 - pageSize: 100 - totalResults: 179 - _links: - current: - href: /companies/cf5f2a47-2990-4221-bae6-0c19c86ac304/connections/8ee4910f-4fc1-47e6-89b1-5931fb33d8f7/data/bankAccounts/1200/bankTransactions - self: - href: /companies/cf5f2a47-2990-4221-bae6-0c19c86ac304/connections/8ee4910f-4fc1-47e6-89b1-5931fb33d8f7/data/bankAccounts/1200/bankTransactions - next: - href: /companies/cf5f2a47-2990-4221-bae6-0c19c86ac304/connections/8ee4910f-4fc1-47e6-89b1-5931fb33d8f7/data/bankAccounts/1200/bankTransactions?page=2&pageSize=100 - Sage Business Cloud Accounting: - value: - results: - - id: 26b727ca84734e3c8e245011bd04dbf1 - accountId: 154d05abe9f24c4babe0f6a741dec1b9 - clearedOnDate: '2020-02-05T00:00:00' - description: string Supplier Payment - reconciled: false - amount: -5 - transactionType: Credit - modifiedDate: '2022-10-24T15:31:14Z' - sourceModifiedDate: '2020-02-07T11:35:39Z' - - id: 508f3fd4403e45cb903b362a4ae55344 - accountId: 154d05abe9f24c4babe0f6a741dec1b9 - clearedOnDate: '2020-02-05T00:00:00' - description: string Supplier Payment - reconciled: false - amount: -3.86 - transactionType: Credit - modifiedDate: '2022-10-24T15:31:14Z' - sourceModifiedDate: '2020-02-10T10:51:43Z' - - id: 52e58431005e44328af44116e0433230 - accountId: 154d05abe9f24c4babe0f6a741dec1b9 - clearedOnDate: '2020-02-05T00:00:00' - description: string Supplier Payment - reconciled: false - amount: -3.85 - transactionType: Credit - modifiedDate: '2022-10-24T15:31:14Z' - sourceModifiedDate: '2020-02-07T14:36:01Z' - - id: f3255e4b79c5427ba5b963d0e26cecfc - accountId: 154d05abe9f24c4babe0f6a741dec1b9 - clearedOnDate: '2020-02-05T00:00:00' - description: string Supplier Payment - reconciled: false - amount: -3.86 - transactionType: Credit - modifiedDate: '2022-10-24T15:31:14Z' - sourceModifiedDate: '2020-02-07T14:19:24Z' - - id: a00e1ce357cc4064b9cce8abe1b15110 - accountId: 154d05abe9f24c4babe0f6a741dec1b9 - clearedOnDate: '2020-04-21T00:00:00' - description: Cash Deposit Bank Transfer - reconciled: false - amount: 1000 - transactionType: Debit - modifiedDate: '2022-10-24T15:31:14Z' - sourceModifiedDate: '2020-04-21T21:03:25Z' - - id: a7d26740129945c3a76209020fbb7fd1 - accountId: 154d05abe9f24c4babe0f6a741dec1b9 - clearedOnDate: '2020-11-25T00:00:00' - description: Bank Transfer - reconciled: false - amount: -40 - transactionType: Credit - modifiedDate: '2022-10-24T15:31:14Z' - sourceModifiedDate: '2020-11-25T19:35:03Z' - - id: 829f45112347471cbf99b0d9afe08113 - accountId: 154d05abe9f24c4babe0f6a741dec1b9 - clearedOnDate: '2021-07-02T00:00:00' - description: Made from codat api Customer Receipt - reconciled: false - amount: 10 - transactionType: Debit - modifiedDate: '2022-10-24T15:31:14Z' - sourceModifiedDate: '2021-07-02T13:14:57Z' - - id: 786f769ae88a4fa898e25e2cbff43be3 - accountId: 154d05abe9f24c4babe0f6a741dec1b9 - clearedOnDate: '2021-07-20T00:00:00' - description: Supplier payment AD Supplier Payment - reconciled: false - amount: -2400 - transactionType: Credit - modifiedDate: '2022-10-24T15:31:14Z' - sourceModifiedDate: '2021-07-22T14:12:38Z' - - id: abb5995867c546c2b32097d515dcef2a - accountId: 154d05abe9f24c4babe0f6a741dec1b9 - clearedOnDate: '2021-07-21T00:00:00' - description: Payment Customer Receipt - reconciled: false - amount: 12 - transactionType: Debit - modifiedDate: '2022-10-24T15:31:14Z' - sourceModifiedDate: '2021-07-21T14:09:59Z' - - id: 943f3bd6eacc4071807d89895fe03ef4 - accountId: 154d05abe9f24c4babe0f6a741dec1b9 - clearedOnDate: '2021-08-17T00:00:00' - description: Ref5565 Other Receipt - reconciled: false - amount: 50 - transactionType: Debit - modifiedDate: '2022-10-24T15:31:14Z' - sourceModifiedDate: '2021-08-17T11:58:37Z' - - id: 039e6bb20b6e44d690601e4dd04a5b21 - accountId: 154d05abe9f24c4babe0f6a741dec1b9 - clearedOnDate: '2021-09-22T00:00:00' - description: Note 1 Customer Receipt - reconciled: false - amount: 1080 - transactionType: Debit - modifiedDate: '2022-10-24T15:31:14Z' - sourceModifiedDate: '2021-09-22T14:22:57Z' - - id: 1a62f54358e74ba4a71dd733f2b08ba4 - accountId: 154d05abe9f24c4babe0f6a741dec1b9 - clearedOnDate: '2021-09-27T00:00:00' - description: Note 2 Customer Receipt - reconciled: false - amount: 1080 - transactionType: Debit - modifiedDate: '2022-10-24T15:31:14Z' - sourceModifiedDate: '2021-09-27T14:04:05Z' - - id: a79ebcf0710d415baad6b588eb28307b - accountId: 154d05abe9f24c4babe0f6a741dec1b9 - clearedOnDate: '2021-12-01T00:00:00' - description: Payment Customer Receipt - reconciled: false - amount: 33 - transactionType: Debit - modifiedDate: '2022-10-24T15:31:14Z' - sourceModifiedDate: '2021-12-01T13:03:00Z' - - id: 4b691b78b6cd43c9a64d75aeb29e4d11 - accountId: 154d05abe9f24c4babe0f6a741dec1b9 - clearedOnDate: '2022-07-19T00:00:00' - description: Bank Transfer - reconciled: false - amount: -10 - transactionType: Credit - modifiedDate: '2022-10-24T15:31:14Z' - sourceModifiedDate: '2022-07-19T08:51:52Z' - - id: 7b1f2f55f39042838d5f7226aa92386f - accountId: 154d05abe9f24c4babe0f6a741dec1b9 - clearedOnDate: '2022-07-19T00:00:00' - description: Bank Transfer - reconciled: false - amount: -1415 - transactionType: Credit - modifiedDate: '2022-10-24T15:31:14Z' - sourceModifiedDate: '2022-07-19T13:15:26Z' - - id: 87eca750292b4cfea216e13bb22923c6 - accountId: 154d05abe9f24c4babe0f6a741dec1b9 - clearedOnDate: '2022-07-19T00:00:00' - description: Bank Transfer - reconciled: false - amount: -10 - transactionType: Credit - modifiedDate: '2022-10-24T15:31:14Z' - sourceModifiedDate: '2022-07-19T13:01:47Z' - - id: a48474f83d214637a700e76e24446086 - accountId: 154d05abe9f24c4babe0f6a741dec1b9 - clearedOnDate: '2022-07-19T00:00:00' - description: Bank Transfer - reconciled: false - amount: -10 - transactionType: Credit - modifiedDate: '2022-10-24T15:31:14Z' - sourceModifiedDate: '2022-07-19T13:10:42Z' - - id: cc1fc960e05c40c1968314efe1175b9f - accountId: 154d05abe9f24c4babe0f6a741dec1b9 - clearedOnDate: '2022-09-14T00:00:00' - description: string Customer Receipt - reconciled: false - amount: 69 - transactionType: Debit - modifiedDate: '2022-10-24T15:31:15Z' - sourceModifiedDate: '2022-09-14T16:20:09Z' - - id: e600eb7549b74d96bdca18b9cc60f39d - accountId: 154d05abe9f24c4babe0f6a741dec1b9 - clearedOnDate: '2022-09-14T00:00:00' - description: Customer Receipt - reconciled: false - amount: 60 - transactionType: Debit - modifiedDate: '2022-10-24T15:31:15Z' - sourceModifiedDate: '2022-09-14T16:12:03Z' - pageNumber: 1 - pageSize: 100 - totalResults: 19 - _links: - current: - href: /companies/390083e2-351b-407c-a3be-55081c36c182/connections/37916fb7-b4b8-4a78-8872-1751e20ee0cd/data/bankAccounts/154d05abe9f24c4babe0f6a741dec1b9/bankTransactions - self: - href: /companies/390083e2-351b-407c-a3be-55081c36c182/connections/37916fb7-b4b8-4a78-8872-1751e20ee0cd/data/bankAccounts/154d05abe9f24c4babe0f6a741dec1b9/bankTransactions - Xero: - value: - results: - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2021-12-20T00:00:00' - description: DD - counterparty: DIISR - reconciled: true - amount: -7267.2 - balance: -3136.22 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2022-02-17T00:00:00' - description: DD - counterparty: Ridgeway University - reconciled: true - amount: 500 - balance: -5703.42 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2022-02-17T00:00:00' - description: INV0010 - counterparty: MADDOX PUBLISHING GP - reconciled: true - amount: 4200 - balance: -6203.42 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2022-02-17T00:00:00' - description: DD - counterparty: DIISR - reconciled: true - amount: -7267.2 - balance: -10403.42 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2022-02-19T00:00:00' - description: DD - counterparty: PowerDirect - reconciled: true - amount: -95.5 - balance: -5798.92 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2022-03-19T00:00:00' - description: DD - counterparty: Ridgeway University - reconciled: true - amount: 500 - balance: -5298.92 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2022-03-21T00:00:00' - description: DD - counterparty: PowerDirect - reconciled: true - amount: -97 - balance: -5395.92 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2022-04-19T00:00:00' - description: INV-0003 - counterparty: Ridgeway University - reconciled: true - amount: 500 - balance: -4895.92 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2022-04-21T00:00:00' - description: DD - counterparty: PowerDirect - reconciled: true - amount: -92 - balance: -4987.92 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2022-05-21T00:00:00' - description: INV-0004 - counterparty: Ridgeway University - reconciled: true - amount: 1000 - balance: -3987.92 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2022-05-21T00:00:00' - description: DD - counterparty: PowerDirect - reconciled: true - amount: -89 - balance: -4076.92 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2022-06-19T00:00:00' - description: INV-005 - counterparty: Ridgeway University - reconciled: true - amount: 500 - balance: -3576.92 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2022-06-21T00:00:00' - description: DD - counterparty: PowerDirect - reconciled: true - amount: -91 - balance: -3667.92 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2022-07-20T00:00:00' - description: INV-006 - counterparty: Ridgeway University - reconciled: true - amount: 500 - balance: -3167.92 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2022-07-22T00:00:00' - description: DD - counterparty: PowerDirect - reconciled: true - amount: -96.25 - balance: -3264.17 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2022-08-19T00:00:00' - description: INV-007 - counterparty: Ridgeway University - reconciled: true - amount: 1500 - balance: -1764.17 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2022-08-21T00:00:00' - description: DD - counterparty: PowerDirect - reconciled: true - amount: -100.6 - balance: -1864.77 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2022-09-19T00:00:00' - description: INV-008 - counterparty: Ridgeway University - reconciled: true - amount: 500 - balance: -1364.77 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2022-09-21T00:00:00' - description: DD - counterparty: PowerDirect - reconciled: true - amount: -105.75 - balance: -1470.52 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2022-10-19T00:00:00' - description: INV-009 - counterparty: Ridgeway University - reconciled: true - amount: 1200 - balance: -270.52 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2022-10-21T00:00:00' - description: DD - counterparty: PowerDirect - reconciled: true - amount: -106.5 - balance: -377.02 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2022-11-20T00:00:00' - description: INV-0010 - counterparty: Ridgeway University - reconciled: true - amount: 500 - balance: 122.98 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2022-11-21T00:00:00' - description: DD - counterparty: PowerDirect - reconciled: true - amount: -119.08 - balance: 3.9 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2022-11-22T00:00:00' - description: Monthly a/c fee - counterparty: Ridgeway Banking Corporation - reconciled: true - amount: -15 - balance: -11.1 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2022-11-23T00:00:00' - description: FP089876 - counterparty: FastPay - reconciled: true - amount: -3126.17 - balance: -1591.58 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2022-11-23T00:00:00' - description: Subs DD - counterparty: Xero - reconciled: true - amount: -56.35 - balance: -89.16 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2022-11-23T00:00:00' - description: '0015' - counterparty: Rex Media Group - reconciled: true - amount: 541.25 - balance: 1534.59 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2022-11-23T00:00:00' - description: INV-0014 - counterparty: Port & Philip Freight - reconciled: true - amount: 541.25 - balance: 993.34 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2022-11-23T00:00:00' - description: '' - counterparty: Office Supplies Company - reconciled: true - amount: -21.71 - balance: -32.81 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2022-11-23T00:00:00' - description: INV-0013 - counterparty: Young Brothers - reconciled: true - amount: 541.25 - balance: 452.09 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2022-11-24T00:00:00' - description: INV0012 - counterparty: Hamilton Smith - reconciled: true - amount: 541.25 - balance: -1050.33 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2022-12-01T00:00:00' - description: '' - counterparty: Woolworths Oaktown - reconciled: true - amount: -65.2 - balance: -1115.53 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2022-12-02T00:00:00' - description: '' - counterparty: Berry Brew Cafe - reconciled: true - amount: -15.6 - balance: -1131.13 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2022-12-09T00:00:00' - description: AR-0019 - counterparty: Bank West - reconciled: true - amount: 1500 - balance: 368.87 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2022-12-11T00:00:00' - description: CHQ 6543-000409 - counterparty: Melrose Parking Services - reconciled: true - amount: -148.5 - balance: 220.37 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2022-12-16T00:00:00' - description: '' - counterparty: Espresso 31 Ltd - reconciled: true - amount: -16 - balance: 204.37 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2022-12-19T00:00:00' - description: '' - counterparty: Brunswick Flower Suppliers T/A Brunswick Petals - reconciled: true - amount: -50 - balance: 154.37 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2022-12-20T00:00:00' - description: AR-0011 - counterparty: Ridgeway University - reconciled: true - amount: 2500 - balance: 2583.57 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2022-12-20T00:00:00' - description: '' - counterparty: Mobil - reconciled: true - amount: -70.8 - balance: 83.57 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2022-12-23T00:00:00' - description: '' - counterparty: PC Complete - reconciled: true - amount: -1463.88 - balance: 1449.49 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2022-12-23T00:00:00' - description: AR-0018 - counterparty: City Agency - reconciled: true - amount: 329.8 - balance: 2913.37 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2022-12-23T00:00:00' - description: Bank Fee - counterparty: Ridgeway Banking Corporation - reconciled: true - amount: -15 - balance: 1434.49 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2022-12-23T00:00:00' - description: '' - counterparty: Truxton Property Management - reconciled: true - amount: -1181.25 - balance: 253.24 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2022-12-29T00:00:00' - description: FP101897 - counterparty: FastPay - reconciled: false - amount: -1223.91 - balance: -970.67 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2023-01-19T00:00:00' - description: '' - counterparty: Net Connect - reconciled: true - amount: -98.32 - balance: -1177.59 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2023-01-19T00:00:00' - description: '' - counterparty: Power Direct - reconciled: true - amount: -108.6 - balance: -1079.27 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2023-01-19T00:00:00' - description: AR-0020 - counterparty: Ridgeway University - reconciled: true - amount: 6187.5 - balance: 5009.91 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2023-01-20T00:00:00' - description: '' - counterparty: Truxton Property Management - reconciled: true - amount: -1181.25 - balance: 3828.66 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2023-01-20T00:00:00' - description: '' - counterparty: Swantston Security - reconciled: true - amount: -59.54 - balance: 3769.12 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2023-01-21T00:00:00' - description: '' - counterparty: Xero - reconciled: true - amount: -56.35 - balance: 3712.77 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2023-01-22T00:00:00' - description: INV0022 - counterparty: Petrie McLoud - reconciled: true - amount: 1407.25 - balance: 5120.02 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2023-01-23T00:00:00' - description: '0024' - counterparty: Boom FM - reconciled: true - amount: 1000 - balance: 6120.02 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2023-01-24T00:00:00' - description: CHQ 6543-000410 - counterparty: Melrose Parking - reconciled: true - amount: -148.5 - balance: 5971.52 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2023-01-25T00:00:00' - description: 0027-Part - counterparty: DIISR - reconciled: true - amount: 579.37 - balance: 6550.89 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2023-01-26T00:00:00' - description: Inv 0029 - counterparty: Hamilton Smith - reconciled: true - amount: 541.25 - balance: 7092.14 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2023-01-26T00:00:00' - description: INV0032 - counterparty: Rex Media Group - reconciled: true - amount: 541.25 - balance: 8715.89 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2023-01-26T00:00:00' - description: '0030' - counterparty: Young Brothers Transport - reconciled: true - amount: 541.25 - balance: 7633.39 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2023-01-26T00:00:00' - description: INV-0031 - counterparty: Port & Philip Freight Limited - reconciled: true - amount: 541.25 - balance: 8174.64 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2023-01-27T00:00:00' - description: Eft - counterparty: Woolworths Oaktown - reconciled: true - amount: -34.1 - balance: 8681.79 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2023-01-28T00:00:00' - description: 033-Full - counterparty: DIISR - reconciled: true - amount: 250 - balance: 8931.79 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2023-01-30T00:00:00' - description: Eft - counterparty: Office Supplies Company - reconciled: true - amount: -49.2 - balance: 8882.59 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2023-01-31T00:00:00' - description: '' - counterparty: Berry Brew - reconciled: true - amount: -22 - balance: 8860.59 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2023-02-01T00:00:00' - description: CHQ 6543-000411 - counterparty: 24 Locks - reconciled: true - amount: -69.5 - balance: 8791.09 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2023-02-02T00:00:00' - description: 08-4123 - counterparty: Hoyt Productions Ltd - reconciled: true - amount: -5953.75 - balance: 2837.34 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2023-02-03T00:00:00' - description: '' - counterparty: Carlton Functions - reconciled: true - amount: -1500 - balance: 1337.34 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2023-02-06T00:00:00' - description: Exps - counterparty: O.Greenville - reconciled: true - amount: -29.5 - balance: 1307.84 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2023-02-07T00:00:00' - description: Rent - counterparty: Truxton Property Management - reconciled: false - amount: -1181.25 - balance: 6314.09 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2023-02-07T00:00:00' - description: INV-0035 - counterparty: Ridgeway University - reconciled: false - amount: 6187.5 - balance: 7495.34 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2023-02-08T00:00:00' - description: 0017-Part - counterparty: City Limousines - reconciled: false - amount: 100 - balance: 1914.09 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2023-02-08T00:00:00' - description: DEPOSIT ADV - counterparty: Jakaranda Maple Systems - reconciled: false - amount: 2000 - balance: 3914.09 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2023-02-08T00:00:00' - description: 0195 0210 - counterparty: SMART Agency - reconciled: false - amount: -4500 - balance: 1814.09 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2023-02-09T00:00:00' - description: Eft - counterparty: Cooper Street Bakery - reconciled: false - amount: -15.75 - balance: 3898.34 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2023-02-10T00:00:00' - description: '' - counterparty: 7-Eleven - reconciled: false - amount: -15.5 - balance: 3882.84 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2023-02-11T00:00:00' - description: '' - counterparty: Swanston Security - reconciled: false - amount: -59.55 - balance: 3811.39 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2023-02-11T00:00:00' - description: '' - counterparty: Cooper Street Bakery - reconciled: false - amount: -11.9 - balance: 3870.94 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2023-02-12T00:00:00' - description: '' - counterparty: Whitcoulls - reconciled: false - amount: -29.8 - balance: 4769.59 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2023-02-12T00:00:00' - description: '' - counterparty: e-Bank Dep - reconciled: false - amount: 1000 - balance: 4811.39 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2023-02-12T00:00:00' - description: '' - counterparty: Central City Parking - reconciled: false - amount: -12 - balance: 4799.39 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2023-02-13T00:00:00' - description: '' - counterparty: Central City Parking - reconciled: false - amount: -12 - balance: 4757.59 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2023-02-13T00:00:00' - description: Sub 092201 - counterparty: Wilson Online Periodicals - reconciled: false - amount: -49.9 - balance: 4588.09 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2023-02-13T00:00:00' - description: Reg 8018922 - counterparty: ACL Conferences - reconciled: false - amount: -85 - balance: 4672.59 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2023-02-13T00:00:00' - description: '' - counterparty: New World - reconciled: false - amount: -34.6 - balance: 4637.99 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2023-02-14T00:00:00' - description: Sublet RM2031 - counterparty: Majestic Contracting - reconciled: false - amount: 450 - balance: 6526.09 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2023-02-14T00:00:00' - description: '' - counterparty: Central City Parking - reconciled: false - amount: -12 - balance: 4576.09 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2023-02-14T00:00:00' - description: '' - counterparty: e-Bank Dep - reconciled: false - amount: 1500 - balance: 6076.09 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2023-02-15T00:00:00' - description: '' - counterparty: Central City Parking - reconciled: false - amount: -12 - balance: 6499.79 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2023-02-15T00:00:00' - description: CR 092201 - counterparty: Wilson Online Periodicals - reconciled: false - amount: 35 - balance: 6534.79 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2023-02-15T00:00:00' - description: '' - counterparty: Parkside Kiosk - reconciled: false - amount: -14.3 - balance: 6511.79 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2023-02-16T00:00:00' - description: '' - counterparty: e-Bank Dep - reconciled: false - amount: 200 - balance: 6712.29 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2023-02-16T00:00:00' - description: '' - counterparty: Parkside Kiosk - reconciled: false - amount: -10.5 - balance: 6512.29 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2023-02-16T00:00:00' - description: Fee - counterparty: Ridgeway Banking Corporation - reconciled: false - amount: -15 - balance: 6697.29 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2023-02-16T00:00:00' - description: '' - counterparty: 7-Eleven - reconciled: false - amount: -15.5 - balance: 6681.79 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2023-02-16T00:00:00' - description: '' - counterparty: Central City Parking - reconciled: false - amount: -12 - balance: 6522.79 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - pageNumber: 1 - pageSize: 100 - totalResults: 93 - _links: - current: - href: /companies/5ced9667-a310-443a-a711-958d36377141/connections/6a4bcf97-e46a-465c-abf6-c42cec8e48c0/data/bankAccounts/bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4/bankTransactions - self: - href: /companies/5ced9667-a310-443a-a711-958d36377141/connections/6a4bcf97-e46a-465c-abf6-c42cec8e48c0/data/bankAccounts/bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4/bankTransactions - Zoho Books: - value: - results: - - id: 104957000000060010-104957000000070175 - accountId: '104957000000060010' - clearedOnDate: '2020-02-06T00:00:00' - description: '' - reconciled: false - amount: 9001 - transactionType: Cash - modifiedDate: '2022-10-03T08:40:40Z' - - id: 104957000000060010-104957000000060014 - accountId: '104957000000060010' - clearedOnDate: '2020-02-12T00:00:00' - description: '' - reconciled: false - amount: 10000 - transactionType: Dep - modifiedDate: '2022-10-03T08:40:40Z' - - id: 104957000000060010-104957000000067014 - accountId: '104957000000060010' - clearedOnDate: '2020-02-14T00:00:00' - description: '' - reconciled: false - amount: 9001 - transactionType: Cash - modifiedDate: '2022-10-03T08:40:40Z' - - id: 104957000000060010-104957000000070035 - accountId: '104957000000060010' - clearedOnDate: '2020-02-17T00:00:00' - description: '' - reconciled: false - amount: 11980 - transactionType: Debit - modifiedDate: '2022-10-03T08:40:40Z' - - id: 104957000000060010-104957000000070055 - accountId: '104957000000060010' - clearedOnDate: '2020-02-17T00:00:00' - description: '' - reconciled: false - amount: -20 - transactionType: Payment - modifiedDate: '2022-10-03T08:40:40Z' - - id: 104957000000060010-104957000000070097 - accountId: '104957000000060010' - clearedOnDate: '2020-02-17T00:00:00' - description: '' - reconciled: false - amount: 10789.21 - transactionType: Cash - modifiedDate: '2022-10-03T08:40:40Z' - - id: 104957000000060010-104957000000097011 - accountId: '104957000000060010' - clearedOnDate: '2020-02-26T00:00:00' - description: '' - reconciled: false - amount: 10000 - transactionType: Cash - modifiedDate: '2022-10-03T08:40:40Z' - - id: 104957000000060010-104957000000099013 - accountId: '104957000000060010' - clearedOnDate: '2020-02-27T00:00:00' - description: '' - reconciled: false - amount: -72 - transactionType: Payment - modifiedDate: '2022-10-03T08:40:40Z' - - id: 104957000000060010-104957000000099053 - accountId: '104957000000060010' - clearedOnDate: '2020-02-27T00:00:00' - description: '' - reconciled: false - amount: 10 - transactionType: Debit - modifiedDate: '2022-10-03T08:40:40Z' - - id: 104957000000060010-104957000000137017 - accountId: '104957000000060010' - clearedOnDate: '2020-05-19T00:00:00' - description: '' - reconciled: false - amount: 9000 - transactionType: Cash - modifiedDate: '2022-10-03T08:40:40Z' - - id: 104957000000060010-104957000000336002 - accountId: '104957000000060010' - clearedOnDate: '2020-12-01T00:00:00' - description: '' - reconciled: false - amount: -20 - transactionType: Xfer - modifiedDate: '2022-10-03T08:40:40Z' - - id: 104957000000060010-104957000000336020 - accountId: '104957000000060010' - clearedOnDate: '2020-12-01T00:00:00' - description: '' - reconciled: false - amount: 1.79 - transactionType: Xfer - modifiedDate: '2022-10-03T08:40:40Z' - - id: 104957000000060010-104957000001706009 - accountId: '104957000000060010' - clearedOnDate: '2021-04-12T00:00:00' - description: '' - reconciled: false - amount: 200 - transactionType: Cash - modifiedDate: '2022-10-03T08:40:40Z' - - id: 104957000000060010-104957000001469026 - accountId: '104957000000060010' - clearedOnDate: '2022-05-12T00:00:00' - description: '' - reconciled: false - amount: -50 - transactionType: Credit - modifiedDate: '2022-10-03T08:40:40Z' - - id: 104957000000060010-104957000001480001 - accountId: '104957000000060010' - clearedOnDate: '2022-05-13T00:00:00' - description: '' - reconciled: false - amount: 18.98 - transactionType: Debit - modifiedDate: '2022-10-03T08:40:40Z' - - id: 104957000000060010-104957000001480045 - accountId: '104957000000060010' - clearedOnDate: '2022-05-13T00:00:00' - description: '' - reconciled: false - amount: -20 - transactionType: Credit - modifiedDate: '2022-10-03T08:40:40Z' - - id: 104957000000060010-104957000001633002 - accountId: '104957000000060010' - clearedOnDate: '2022-07-27T00:00:00' - description: '' - reconciled: false - amount: 26 - transactionType: Other - modifiedDate: '2022-10-03T08:40:40Z' - - id: 104957000000060010-104957000001652007 - accountId: '104957000000060010' - clearedOnDate: '2022-08-08T00:00:00' - description: '' - reconciled: false - amount: 11.75 - transactionType: Other - modifiedDate: '2022-10-03T08:40:40Z' - - id: 104957000000060010-104957000001689069 - accountId: '104957000000060010' - clearedOnDate: '2022-08-24T00:00:00' - description: '' - reconciled: false - amount: -2.89 - transactionType: Payment - modifiedDate: '2022-10-03T08:40:40Z' - - id: 104957000000060010-104957000001689125 - accountId: '104957000000060010' - clearedOnDate: '2022-08-25T00:00:00' - description: '' - reconciled: false - amount: 3.6 - transactionType: Debit - modifiedDate: '2022-10-03T08:40:40Z' - pageNumber: 1 - pageSize: 100 - totalResults: 20 - _links: - current: - href: /companies/d0b68840-db50-4bc3-b88c-96e225333fea/connections/a2324b8e-60e9-451d-8eb1-0fdc8e8224df/data/bankAccounts/104957000000060010/bankTransactions - self: - href: /companies/d0b68840-db50-4bc3-b88c-96e225333fea/connections/a2324b8e-60e9-451d-8eb1-0fdc8e8224df/data/bankAccounts/104957000000060010/bankTransactions - '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' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - '/companies/{companyId}/reports/agedDebtor/available': - parameters: - - $ref: '#/components/parameters/companyId' - get: - x-internal: true - tags: - - Accounts receivable - summary: Aged debtors report available - description: Indicates whether the aged debtors report is available for the company. - operationId: is-aged-debtors-report-available - responses: - '200': - description: OK - content: - application/json: - schema: - type: boolean - '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' - x-speakeasy-name-override: is-aged-debtors-available - x-speakeasy-group: accounts-receivable.reports - '/companies/{companyId}/reports/agedDebtor': - parameters: - - $ref: '#/components/parameters/companyId' - get: - tags: - - Accounts receivable - parameters: - - $ref: '#/components/parameters/accountingReportDate' - - $ref: '#/components/parameters/accountingNumberOfPeriods' - - $ref: '#/components/parameters/accountingPeriodLengthDays' - summary: Aged debtors report - description: Returns aged debtors report for company that shows the total outstanding balance due from customers to the business over time. - operationId: get-accounting-aged-debtors-report - x-speakeasy-name-override: get-aged-debtors - x-speakeasy-group: accounts-receivable.reports - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/AccountingAgedDebtorReport' - examples: - Clear Books: - value: - generated: '2023-05-02T16:05:21.4959955Z' - reportDate: '2023-05-02T16:05:21.4459444Z' - data: - - customerId: c8180244-74ac-40cf-a5df-6d83661c44d7 - customerName: Arjun Kuvalis - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -3367.71 - details: - - name: CreditNotes - amount: -3367.71 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 0 - details: - - name: Invoices - amount: 0 - - customerId: 6d162ee4-47b4-46c6-a2e6-aa9edd0fe6b0 - customerName: 'Breitenberg, Emard and Schiller' - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -4299.26 - details: - - name: Invoices - amount: 0 - - name: CreditNotes - amount: -4299.26 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 0 - details: - - name: Invoices - amount: 0 - - customerId: 981d56a7-cf63-4ed2-b8db-2eba2c0aeb5a - customerName: Collins - Anderson - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -14959.84 - details: - - name: CreditNotes - amount: -14959.84 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 773.94 - details: - - name: Invoices - amount: 773.94 - - customerId: d3739e0f-5a70-465b-9dfe-deb8efac0cd3 - customerName: Damien Schneider - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -2817.59 - details: - - name: CreditNotes - amount: -2817.59 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 0 - details: - - name: Invoices - amount: 0 - - customerId: 10652b76-2a9a-43ba-a892-fb4f369fe1ef - customerName: Franco Labadie - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -1541.52 - details: - - name: CreditNotes - amount: -1541.52 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 0 - details: - - name: Invoices - amount: 0 - - customerId: 03b7f9fd-40e0-4c71-9f93-58e867233bcb - customerName: Harvey Predovic - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -14312.59 - details: - - name: CreditNotes - amount: -14312.59 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 158.76 - details: - - name: Invoices - amount: 158.76 - - customerId: bbea9634-7a60-4c3f-97cd-70e481ec2cce - customerName: Jenkins Inc - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -32818.36 - details: - - name: CreditNotes - amount: -32818.36 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 431.71 - details: - - name: Invoices - amount: 431.71 - - customerId: d65ac505-072c-49ec-be3c-3cb74228966d - customerName: Jensen Steuber - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -9766.18 - details: - - name: Invoices - amount: 0 - - name: CreditNotes - amount: -9766.18 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 1273.16 - details: - - name: Invoices - amount: 1273.16 - - customerId: a82042f1-a005-4ca5-bfd3-5bc237123aa5 - customerName: Keara Leffler - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -2595.66 - details: - - name: CreditNotes - amount: -2595.66 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 1397.98 - details: - - name: Invoices - amount: 1397.98 - - customerId: f67eab14-12f1-432f-af73-81ebf6ec8ddc - customerName: Neoma Kreiger - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -3047.62 - details: - - name: CreditNotes - amount: -3047.62 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 0 - details: - - name: Invoices - amount: 0 - - customerId: 2d6a5c2d-80dc-4aac-8909-ddfb3cb24437 - customerName: Newton Zieme - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -225.44 - details: - - name: CreditNotes - amount: -225.44 - - name: Invoices - amount: 0 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 0 - details: - - name: Invoices - amount: 0 - - customerId: 976a2402-0908-46d9-9121-a93005d29c01 - customerName: Norbert Tillman - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -537.61 - details: - - name: CreditNotes - amount: -537.61 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 0 - details: - - name: Invoices - amount: 0 - - customerId: 453ddfc0-49ce-4f66-a815-dae734be885c - customerName: Ralph Wilderman - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -2538.49 - details: - - name: CreditNotes - amount: -2538.49 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 0 - details: - - name: Invoices - amount: 0 - - customerId: 51f03576-f6b0-40d5-9fba-81a490411c03 - customerName: Raul Johns - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -4403.5 - details: - - name: CreditNotes - amount: -4403.5 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 3477.81 - details: - - name: Invoices - amount: 3477.81 - - customerId: 84539fde-118f-48ed-978d-0aa50c7ec223 - customerName: Rodger Feest - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -1456.66 - details: - - name: CreditNotes - amount: -1456.66 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 7366.21 - details: - - name: Invoices - amount: 7366.21 - - customerId: dc75136b-b504-49c5-be35-04e1d2771e1e - customerName: Vincenzo Wolff - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -80.97 - details: - - name: CreditNotes - amount: -80.97 - - name: Invoices - amount: 0 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 0 - details: - - name: Invoices - amount: 0 - Dynamics 365 Business Central: - value: - generated: '2023-05-02T16:05:20.8918448Z' - reportDate: '2023-05-02T16:05:20.8411594Z' - data: - - customerId: 8ddfa6bf-0c60-eb11-89fa-00224800af18 - customerName: Abdi Company - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -80 - details: - - name: CreditNotes - amount: -80 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -257.28 - details: - - name: Payments - amount: -300 - - name: Invoices - amount: 42.72 - - customerId: b41217b3-89d1-ea11-bbaa-000d3a2b9185 - customerName: Adatum Corporation - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -1558.56 - details: - - name: CreditNotes - amount: -1558.56 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 33200.76 - details: - - name: Invoices - amount: 34782.32 - - name: Payments - amount: -1581.56 - - currency: HKD - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 8554.46 - details: - - name: Invoices - amount: 8554.46 - - customerId: ba1217b3-89d1-ea11-bbaa-000d3a2b9185 - customerName: Alpine Ski House - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 7503.08 - details: - - name: Invoices - amount: 7503.08 - - customerId: f5860a8e-4b5a-eb11-89fa-00224800af18 - customerName: CustomerQA - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 349.68 - details: - - name: Invoices - amount: 349.68 - - customerId: feef29a2-1d59-ed11-8c36-002248c5e6c0 - customerName: DP Test Customer - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 332.2 - details: - - name: Invoices - amount: 427.2 - - name: Payments - amount: -95 - - customerId: 264d74d4-3218-ed11-90eb-000d3a873415 - customerName: Eliana - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -779.28 - details: - - name: CreditNotes - amount: -779.28 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 1905 - details: - - name: Invoices - amount: 1905 - - customerId: 99faf6fb-5209-eb11-bbf6-0022481ad2e8 - customerName: QA Customer - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 4923.48 - details: - - name: Invoices - amount: 4923.48 - - customerId: bc1217b3-89d1-ea11-bbaa-000d3a2b9185 - customerName: Relecloud - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 10559.04 - details: - - name: Invoices - amount: 10559.04 - - customerId: b81217b3-89d1-ea11-bbaa-000d3a2b9185 - customerName: School of Fine Art - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 33438.88 - details: - - name: Invoices - amount: 34811.2 - - name: Payments - amount: -1372.32 - - customerId: dc3f4f1b-3c54-ed11-9470-002248c5e18c - customerName: Test no payment terms - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 10 - details: - - name: Invoices - amount: 10 - - customerId: 9e55a119-064e-ed11-946f-0022481b84d7 - customerName: Test Push - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 126 - details: - - name: Invoices - amount: 126 - - customerId: b30ca600-074e-ed11-946f-0022481b84d7 - customerName: Test Push - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 116 - details: - - name: Invoices - amount: 116 - - customerId: b61217b3-89d1-ea11-bbaa-000d3a2b9185 - customerName: Trey Researches - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -24 - details: - - name: CreditNotes - amount: -24 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 2663.38 - details: - - name: Payments - amount: 10 - - name: Invoices - amount: 2653.38 - - customerId: d93ceb37-b805-ec11-86bc-0022481a45c2 - customerName: Vegan Bakeshop - agedCurrencyOutstanding: - - currency: USD - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -18.67 - details: - - name: Payments - amount: -18.67 - FreshBooks: - value: - generated: '2023-05-02T16:05:20.6173310Z' - reportDate: '2023-05-02T16:05:20.5039554Z' - data: - - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -1 - details: - - name: Payments - amount: -1 - - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -5 - details: - - name: Payments - amount: -5 - - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -500 - details: - - name: Payments - amount: -500 - - name: Invoices - amount: 0 - - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -100 - details: - - name: Payments - amount: -100 - - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -49 - details: - - name: Payments - amount: -49 - - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -10 - details: - - name: Payments - amount: -10 - - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 100 - details: - - name: Invoices - amount: 100 - - customerId: '602174' - customerName: ab1 - agedCurrencyOutstanding: - - currency: USD - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 222.71 - details: - - name: Invoices - amount: 222.71 - - currency: AED - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -5 - details: - - name: Payments - amount: -5 - - customerId: '511657' - customerName: Bob's Stationary - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -2060.2 - details: - - name: Payments - amount: -2083.83 - - name: Invoices - amount: 23.63 - - customerId: '581145' - customerName: CanadaCo - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -132.15 - details: - - name: Payments - amount: -160.9 - - name: Invoices - amount: 28.75 - - currency: CNY - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 2.88 - details: - - name: Invoices - amount: 2.88 - - customerId: '578409' - customerName: company1 - agedCurrencyOutstanding: - - currency: USD - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -1031.45 - details: - - name: Invoices - amount: 144 - - name: Payments - amount: -1175.45 - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -100.29 - details: - - name: Invoices - amount: 0 - - name: Payments - amount: -100.29 - - customerId: '669531' - customerName: P - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 24.98 - details: - - name: Invoices - amount: 24.98 - - customerId: '515655' - customerName: Parent company - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -2898.25 - details: - - name: Payments - amount: -2898.25 - - name: Invoices - amount: 0 - - customerId: '511669' - customerName: Pens International - agedCurrencyOutstanding: - - currency: USD - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 516.3 - details: - - name: Payments - amount: 0 - - name: Invoices - amount: 516.3 - - customerId: '582461' - customerName: QA Ltd - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -76 - details: - - name: Invoices - amount: 20 - - name: Payments - amount: -96 - - currency: USD - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -1.15 - details: - - name: Payments - amount: -1.15 - - customerId: '511661' - customerName: Sarah's Office Supplies - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -10 - details: - - name: Invoices - amount: 0 - - name: Payments - amount: -10 - - customerId: '572047' - customerName: SRS Customer - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 141.25 - details: - - name: Invoices - amount: 141.25 - - customerId: '536295' - customerName: Test company - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -144.46 - details: - - name: Invoices - amount: 7.64 - - name: Payments - amount: -152.1 - - customerId: '512927' - customerName: Wood Turnerss - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 48442.07 - details: - - name: Invoices - amount: 51089.28 - - name: Payments - amount: -2647.21 - - currency: USD - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -10 - details: - - name: Invoices - amount: 0 - - name: Payments - amount: -10 - - currency: CAD - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 192.28 - details: - - name: Invoices - amount: 1186.28 - - name: Payments - amount: -994 - KashFlow: - value: - generated: '2023-05-02T16:05:20.3727270Z' - reportDate: '2023-05-02T16:05:20.3123550Z' - data: - - customerId: '88459410' - customerName: Diogo Sousa - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 482.57 - details: - - name: Invoices - amount: 482.57 - - customerId: '86810130' - customerName: Maria Gomez - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -216 - details: - - name: Invoices - amount: -216 - - customerId: '86832299' - customerName: Mr French Person - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 5 - details: - - name: Invoices - amount: 5 - - currency: EUR - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 5 - details: - - name: Invoices - amount: 5 - - customerId: '69946501' - customerName: Peter Lord - agedCurrencyOutstanding: - - currency: EUR - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 3 - details: - - name: Invoices - amount: 3 - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -46 - details: - - name: CreditNotes - amount: -46 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 55661.49 - details: - - name: Invoices - amount: 55911.49 - - name: Payments - amount: -250 - - customerId: '88353693' - customerName: Test Customer updated - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 4771.03 - details: - - name: Invoices - amount: 4771.03 - - customerId: '69952389' - customerName: Things Limited - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -42.42 - details: - - name: CreditNotes - amount: -42.42 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 6385 - details: - - name: Invoices - amount: 6385 - MYOB AccountRight and Essentials: - value: - generated: '2023-05-02T16:05:21.0942911Z' - reportDate: '2023-05-02T16:05:20.8602315Z' - data: [] - Oracle NetSuite: - value: - generated: '2023-05-02T16:05:20.0339587Z' - reportDate: '2023-05-02T16:05:19.8669114Z' - data: [] - QuickBooks Desktop: - value: - generated: '2023-05-02T16:05:19.9204890Z' - reportDate: '2023-05-02T16:05:19.8723073Z' - data: - - customerId: 1F0000-933272658 - customerName: 'Jacobsen, Doug' - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 7991.52 - details: - - name: Invoices - amount: 7991.52 - - name: Payments - amount: 0 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 0 - details: [] - - customerId: 6F0000-1071510646 - customerName: 'Morgenthaler, Jenny' - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -271.53 - details: - - name: Payments - amount: -271.53 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 0 - details: [] - QuickBooks Online: - value: - generated: '2023-05-02T16:05:21.0640297Z' - reportDate: '2023-05-02T16:05:20.9965545Z' - data: - - customerId: '67' - customerName: Abercrombie International Group - agedCurrencyOutstanding: - - currency: USD - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -837.11 - details: - - name: CreditNotes - amount: -837.11 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 55512.84 - details: - - name: Invoices - amount: 55578.69 - - name: Payments - amount: -65.85 - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 10 - details: - - name: Payments - amount: 10 - - customerId: '4' - customerName: Cathy's Consulting Company - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -905.8 - details: - - name: Invoices - amount: 314.2 - - name: Payments - amount: -1220 - - customerId: '20' - customerName: Chadha's Consultants - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -75 - details: - - name: Payments - amount: -75 - - customerId: '7' - customerName: Clement's Cleaners - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 24 - details: - - name: Invoices - amount: 24 - - customerId: '301' - customerName: Codat Customer - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -650.27 - details: - - name: Invoices - amount: 15 - - name: CreditNotes - amount: -469.52 - - name: Payments - amount: -195.75 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 266.49 - details: - - name: Invoices - amount: 210.01 - - name: Payments - amount: 56.48 - - customerId: '305' - customerName: Codat Customer (USD) - agedCurrencyOutstanding: - - currency: USD - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: - - name: Payments - amount: 0 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 121.5 - details: - - name: Invoices - amount: 0 - - name: Payments - amount: 121.5 - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 10 - details: - - name: Payments - amount: 10 - - customerId: '136' - customerName: Customer Name - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 13.37 - details: - - name: Payments - amount: 13.37 - - customerId: '218' - customerName: Diego Trantow - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 11.65 - details: - - name: Payments - amount: 11.65 - - customerId: '8' - customerName: Ecker Designs - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 2273 - details: - - name: Invoices - amount: 2273 - - customerId: '59' - customerName: Ecker Holiday event - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 3206779 - details: - - name: Invoices - amount: 3206779 - - customerId: '13' - customerName: Himateja Madala - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -100 - details: - - name: Invoices - amount: 0 - - name: Payments - amount: -100 - - customerId: '11' - customerName: Ho Engineering Company - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 10 - details: - - name: Invoices - amount: 10 - - customerId: '114' - customerName: huw default not included - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 116.4 - details: - - name: Invoices - amount: 116.4 - - customerId: '117' - customerName: Huw's Test Push customer2 - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -521.4 - details: - - name: CreditNotes - amount: -521.4 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 1120.6 - details: - - name: Invoices - amount: 1232.2 - - name: Payments - amount: -111.6 - - customerId: '306' - customerName: J Codat - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 32.1 - details: - - name: Invoices - amount: 176.1 - - name: Payments - amount: -144 - - customerId: '15' - customerName: Jen Zaccarella - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 4800 - details: - - name: Invoices - amount: 4800 - - customerId: '307' - customerName: Jo Codat 2 - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 112.6 - details: - - name: Invoices - amount: 143.96 - - name: Payments - amount: 58.14 - - name: CreditNotes - amount: -89.5 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 0 - details: [] - - customerId: '119' - customerName: John Smith 1 - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 160 - details: - - name: Invoices - amount: 160 - - customerId: '16' - customerName: Jordan Burgess - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -1098 - details: - - name: CreditNotes - amount: -1098 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -60 - details: - - name: Invoices - amount: 0 - - name: Payments - amount: -60 - - customerId: '83' - customerName: Kay's Bake Shop - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 8508.37 - details: - - name: Invoices - amount: 8717.33 - - name: Payments - amount: -208.96 - - customerId: '1' - customerName: Ko International Ltd - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -3586.2 - details: - - name: CreditNotes - amount: -3586.2 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 11291.4 - details: - - name: Invoices - amount: 11474.05 - - name: Payments - amount: -182.65 - - customerId: '91' - customerName: Mr Huw Test - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -2311.27 - details: - - name: CreditNotes - amount: -2311.27 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 2292.91 - details: - - name: Invoices - amount: 2290.91 - - name: Payments - amount: 2 - - customerId: '55' - customerName: Oxon Insurance - Holiday Party - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -10800 - details: - - name: Payments - amount: -10800 - - customerId: '70' - customerName: Project X - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 50 - details: - - name: Invoices - amount: 50 - - customerId: '281' - customerName: Renee O'Connell - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 12.75 - details: - - name: Payments - amount: 12.75 - - customerId: '118' - customerName: RSP - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 100 - details: - - name: Payments - amount: 100 - - customerId: '76' - customerName: TestPushCustomer5 - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 1320 - details: - - name: Invoices - amount: 1320 - - customerId: '77' - customerName: TestPushCustomer6 - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 1848 - details: - - name: Invoices - amount: 1848 - - customerId: '79' - customerName: TestPushCustomer7 - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -25 - details: - - name: Payments - amount: -25 - - customerId: '84' - customerName: Vegan Cake Shop - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -86.4 - details: - - name: CreditNotes - amount: -116.4 - - name: Payments - amount: 30 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -206460.15 - details: - - name: Invoices - amount: 5145.29 - - name: Payments - amount: -211605.44 - - customerId: '60' - customerName: Whitehead - Employee celebration - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -1100 - details: - - name: CreditNotes - amount: -1100 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 0 - details: [] - - customerId: '5' - customerName: Whitehead and Sons - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 754.4 - details: - - name: Invoices - amount: 754.4 - - customerId: '3' - customerName: Yeung's Architects - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -600 - details: - - name: CreditNotes - amount: -600 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 20035.25 - details: - - name: Invoices - amount: 20604.49 - - name: Payments - amount: -569.24 - Sage 200cloud: - value: - generated: '2023-05-02T16:05:20.5553019Z' - reportDate: '2023-05-02T16:05:20.4958267Z' - data: - - customerId: A1D001 - customerName: A1 Design Services - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -378 - details: - - name: CreditNotes - amount: -378 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 4504.07 - details: - - name: Invoices - amount: 4505.07 - - name: Payments - amount: -1 - - customerId: A1D002 - customerName: A2 Design Services - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -66 - details: - - name: CreditNotes - amount: -66 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 540 - details: - - name: Invoices - amount: 540 - - customerId: A1D003 - customerName: A2 Design Services - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -24.71 - details: - - name: CreditNotes - amount: -24.71 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 16606.32 - details: - - name: Invoices - amount: 16606.32 - - customerId: ABS001 - customerName: ABS Garages Ltd - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -177.14 - details: - - name: CreditNotes - amount: -177.14 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 4345.3 - details: - - name: Invoices - amount: 4845.3 - - name: Payments - amount: -500 - - customerId: USA1 - customerName: American Sales - agedCurrencyOutstanding: - - currency: USD - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 100 - details: - - name: Invoices - amount: 100 - - customerId: BBS001 - customerName: Bobs Building Supplies - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -103.16 - details: - - name: CreditNotes - amount: -103.16 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 4284.77 - details: - - name: Invoices - amount: 4309.77 - - name: Payments - amount: -25 - - customerId: BRO001 - customerName: Bronson Inc - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 786.48 - details: - - name: Invoices - amount: 852 - - name: Payments - amount: -65.52 - - customerId: BUS001 - customerName: Business Exhibitions - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 2274.62 - details: - - name: Invoices - amount: 2374.62 - - name: Payments - amount: -100 - - customerId: CASH001 - customerName: Cash and Credit Card Sales - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 324.5 - details: - - name: Invoices - amount: 324.5 - - customerId: COM001 - customerName: Compton Packaging - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 4571.04 - details: - - name: Invoices - amount: 4571.04 - - customerId: CGS001 - customerName: County Golf Supplies - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 2028.03 - details: - - name: Invoices - amount: 2028.03 - - customerId: STU001 - customerName: Edward Stuart - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 2341.25 - details: - - name: Invoices - amount: 2341.25 - - customerId: FGL001 - customerName: F G Landscape & Design - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 11260.26 - details: - - name: Invoices - amount: 11260.26 - - customerId: BRI001 - customerName: Fred Briant - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 536.67 - details: - - name: Invoices - amount: 656.67 - - name: Payments - amount: -120 - - customerId: GRA001 - customerName: Graham Electonics - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 4149.09 - details: - - name: Invoices - amount: 4149.09 - - customerId: HAU001 - customerName: Hausser GMBH - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 2082.96 - details: - - name: Invoices - amount: 2082.96 - - customerId: JSS001 - customerName: John Smith Studios - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 1228.34 - details: - - name: Invoices - amount: 1228.34 - - customerId: KIN001 - customerName: Kinghorn & French - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 9254.03 - details: - - name: Invoices - amount: 9254.03 - - customerId: MAC001 - customerName: Macolm Hall Associates - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 6927.26 - details: - - name: Invoices - amount: 6927.26 - - customerId: 1A2B3C - customerName: Maria Company - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 69.12 - details: - - name: Invoices - amount: 69.12 - - customerId: MIB001 - customerName: Mikes Insurance Services - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 3597.16 - details: - - name: Invoices - amount: 3597.16 - - customerId: MIL001 - customerName: Mile Road Health Centre - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 5644.12 - details: - - name: Invoices - amount: 6644.12 - - name: Payments - amount: -1000 - - customerId: MOR001 - customerName: Morley Solicitors - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 392.67 - details: - - name: Invoices - amount: 1767.67 - - name: Payments - amount: -1375 - - customerId: PAT001 - customerName: Patterson & Graham Garages - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 915.24 - details: - - name: Invoices - amount: 915.24 - - customerId: YOU001 - customerName: Peter Young - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -168 - details: - - name: CreditNotes - amount: -168 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 2106.84 - details: - - name: Invoices - amount: 2106.84 - - customerId: PIC001 - customerName: Picture Frame Ltd - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 546.12 - details: - - name: Invoices - amount: 1413.9 - - name: Payments - amount: -867.78 - - customerId: RSP001 - customerName: Richard Sanderson-Pope - agedCurrencyOutstanding: - - currency: JPY - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -29210 - details: - - name: CreditNotes - amount: -29210 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 623907.28 - details: - - name: Invoices - amount: 624053.94 - - name: Payments - amount: -146.66 - - customerId: ROB001 - customerName: Robertson Joinery - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 4550.2 - details: - - name: Invoices - amount: 4550.2 - - customerId: SDE001 - customerName: S D Enterprises - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 15339.68 - details: - - name: Invoices - amount: 15339.68 - - customerId: STE001 - customerName: Stevenson & Smith - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 1562.75 - details: - - name: Invoices - amount: 1562.75 - - customerId: SWA001 - customerName: Swan Leisure Centre - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -16.68 - details: - - name: CreditNotes - amount: -16.68 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 1615.51 - details: - - name: Invoices - amount: 1615.51 - - customerId: '0001' - customerName: Test Customer01 - agedCurrencyOutstanding: - - currency: USD - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -366.71 - details: - - name: CreditNotes - amount: -366.71 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 900.22 - details: - - name: Invoices - amount: 913.38 - - name: Payments - amount: -13.16 - - customerId: TESTSUPP - customerName: Test supplier for testing purposes 1234567891234567891234567 - agedCurrencyOutstanding: - - currency: USD - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 149.61 - details: - - name: Invoices - amount: 149.61 - - customerId: SHO001 - customerName: The Show Lodge - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 7148.07 - details: - - name: Invoices - amount: 7148.07 - - customerId: VID001 - customerName: The Video Rental Company - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 2041.66 - details: - - name: Invoices - amount: 2041.66 - Sage 50 (UK): - value: - generated: '2023-05-02T16:05:19.8072734Z' - reportDate: '2023-05-02T16:05:19.7472225Z' - data: - - customerId: A1D001 - customerName: A1 Design Services - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -5.37 - details: - - name: Invoices - amount: -5.37 - - customerId: ABS001 - customerName: ABS Garages Ltd - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 2454.97 - details: - - name: Invoices - amount: 2454.97 - - customerId: BBS001 - customerName: Bobs Building Supplies - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 4309.77 - details: - - name: Invoices - amount: 4309.77 - - customerId: BUS001 - customerName: Business Exhibitions - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 2066.61 - details: - - name: Invoices - amount: 2166.61 - - name: Payments - amount: -100 - - customerId: CASH001 - customerName: Cash and Credit Card Sales - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -0.01 - details: - - name: Invoices - amount: -0.01 - - customerId: COM001 - customerName: Compton Packaging - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 2749.02 - details: - - name: Invoices - amount: 2749.02 - - customerId: CGS001 - customerName: County Golf Supplies - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 2028.03 - details: - - name: Invoices - amount: 2028.03 - - customerId: STU001 - customerName: Edward Stuart - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 2341.25 - details: - - name: Invoices - amount: 2341.25 - - customerId: FGL001 - customerName: F G Landscape & Design - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 11256.18 - details: - - name: Invoices - amount: 11256.18 - - customerId: GRA001 - customerName: Graham Electonics - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 4149.08 - details: - - name: Invoices - amount: 4149.08 - - customerId: HAU001 - customerName: Hausser GMBH - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 1965.96 - details: - - name: Invoices - amount: 1965.96 - - customerId: JSS001 - customerName: John Smith Studios - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 977.09 - details: - - name: Invoices - amount: 977.09 - - customerId: KIN001 - customerName: Kinghorn & French - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 7398.33 - details: - - name: Invoices - amount: 7398.33 - - customerId: MAC001 - customerName: Macolm Hall Associates - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 6916.46 - details: - - name: Invoices - amount: 6916.46 - - customerId: MIB001 - customerName: Mikes Insurance Services - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 3525.26 - details: - - name: Invoices - amount: 3525.26 - - customerId: MIL001 - customerName: Mile Road Health Centre - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 2307.84 - details: - - name: Invoices - amount: 3307.84 - - name: Payments - amount: -1000 - - customerId: MOR001 - customerName: Morley Solicitors - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 370.27 - details: - - name: Invoices - amount: 1745.27 - - name: Payments - amount: -1375 - - customerId: PAT001 - customerName: Patterson & Graham Garages - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 915.24 - details: - - name: Invoices - amount: 915.24 - - customerId: YOU001 - customerName: Peter Young - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 2115.77 - details: - - name: Invoices - amount: 2115.77 - - customerId: PIC001 - customerName: Picture Frame Ltd - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 268.93 - details: - - name: Invoices - amount: 1136.71 - - name: Payments - amount: -867.78 - - customerId: ROB001 - customerName: Robertson Joinery - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 4530.98 - details: - - name: Invoices - amount: 4530.98 - - customerId: SDE001 - customerName: S D Enterprises - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 15339.68 - details: - - name: Invoices - amount: 15339.68 - - customerId: STE002 - customerName: Steven Stephenson - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 8.35 - details: - - name: Invoices - amount: 8.35 - - customerId: STE001 - customerName: Stevenson & Smith - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 1562.75 - details: - - name: Invoices - amount: 1562.75 - - customerId: SWA001 - customerName: Swan Leisure Centre - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -16.68 - details: - - name: CreditNotes - amount: -16.68 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 1615.51 - details: - - name: Invoices - amount: 1615.51 - - customerId: SHO001 - customerName: The Show Lodge - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 7305.77 - details: - - name: Invoices - amount: 7305.77 - - customerId: VID001 - customerName: The Video Rental Company - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 2041.64 - details: - - name: Invoices - amount: 2041.64 - Sage Business Cloud Accounting: - value: - generated: '2023-05-02T16:05:20.9416221Z' - reportDate: '2023-05-02T16:05:20.7435694Z' - data: - - customerId: 260f6a3f94a243738f2d5e08496a41a8 - customerName: 100 test name - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -60 - details: - - name: CreditNotes - amount: -60 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 1471 - details: - - name: Invoices - amount: 1891 - - name: Payments - amount: -420 - - customerId: 860dd9f1ad9346ba85117aedfa19cc72 - customerName: 100 test name DS - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 1065 - details: - - name: Invoices - amount: 1080 - - name: Payments - amount: -15 - - customerId: 395d26ee8ab44f8b861b468caf63b00d - customerName: 222 Abdul's Test Name - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -120 - details: - - name: CreditNotes - amount: -120 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 2443.8 - details: - - name: Invoices - amount: 2759.8 - - name: Payments - amount: -316 - - customerId: 013cf04960924a0da800f019369c3262 - customerName: 333 Abdul's Test Name - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -0.66 - details: - - name: Invoices - amount: 9.34 - - name: Payments - amount: -10 - - customerId: 4ba77efb904e4380accc242b1526ac2c - customerName: 333 Abdul's Test Name - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -10 - details: - - name: CreditNotes - amount: -10 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 65 - details: - - name: Invoices - amount: 65 - - customerId: 18e45991fe6440ad8e8b5ecf9a2e7e09 - customerName: 444 Abdul's Test Name - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -2 - details: - - name: Invoices - amount: 48 - - name: Payments - amount: -50 - - customerId: 23ca7ffaa2b54360937531dde804c9aa - customerName: aaa - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -22 - details: - - name: CreditNotes - amount: -22 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -62 - details: - - name: Invoices - amount: 7 - - name: Payments - amount: -69 - - customerId: 2b93da6ce4af4dc99520eafd28768457 - customerName: Abdul Al-haj - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 288 - details: - - name: Invoices - amount: 288 - - customerId: 460af92dd82a4a61b6ce1d18245789b3 - customerName: Abdul Al-haj - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 48 - details: - - name: Invoices - amount: 48 - - customerId: b8bd7e0dfdd64d39abaaf2dcd1c48b49 - customerName: Abdul Al-haj - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -119.99 - details: - - name: CreditNotes - amount: -119.99 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 0 - details: [] - - customerId: aa37b59417024d2494f01ba23d92a2ef - customerName: Abe The Engineer - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -1562 - details: - - name: CreditNotes - amount: -1562 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 1337 - details: - - name: Invoices - amount: 1362 - - name: Payments - amount: -25 - - customerId: df65eaa6789111e8aaa5027d54329956 - customerName: Baguettes Ltd - agedCurrencyOutstanding: - - currency: EUR - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -844.99 - details: - - name: CreditNotes - amount: -844.99 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 616726.02 - details: - - name: Invoices - amount: 617888.74 - - name: Payments - amount: -1162.72 - - customerId: 2916114b3b6942a7b08f1bcc971f5bf9 - customerName: c.taylor@codat.io - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 1.2 - details: - - name: Invoices - amount: 1.2 - - customerId: 0556b365ef4e42068fff775f847c0330 - customerName: Customer 71 (AUD) - agedCurrencyOutstanding: - - currency: AUD - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -701 - details: - - name: Payments - amount: -701 - - customerId: 145dee01b49c4359a052682f234007e3 - customerName: Customer Name - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -10 - details: - - name: Payments - amount: -10 - - customerId: 76f656dfbafa4cec823f1e2e43ea1a8e - customerName: Customer Test 59 - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -10 - details: - - name: Payments - amount: -10 - - customerId: a11e6776ca9a4e16af3425982de25a22 - customerName: Debs Customer - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 5279.2 - details: - - name: Invoices - amount: 5279.2 - - customerId: cc80e0fb747e4ddaab743d778d04ec4a - customerName: Debs US Customer - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 15111 - details: - - name: Invoices - amount: 15111 - - customerId: adb9cae8b34e446da3d53305b299168b - customerName: Fo Shizzle - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 300 - details: - - name: Invoices - amount: 300 - - customerId: cc745370213545f6bd4129a7502f19fb - customerName: Grace Lo - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -1150 - details: - - name: Invoices - amount: 0 - - name: Payments - amount: -1150 - - customerId: 3b17c5ae9caf4b88a4a9e33a83fa321d - customerName: Hello - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 12 - details: - - name: Invoices - amount: 12 - - customerId: 979c5156ea0e45d9a9ea7b9d54775138 - customerName: J Customer FR - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -52795 - details: - - name: CreditNotes - amount: -52795 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 134045 - details: - - name: Invoices - amount: 134045 - - customerId: 99d52ca7060341a698a664d1737663c5 - customerName: J Customer UK - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -265 - details: - - name: CreditNotes - amount: -265 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 15 - details: - - name: Invoices - amount: 30 - - name: Payments - amount: -15 - - customerId: f40870d5b704407481be14f780122d4f - customerName: J Customer US - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -161570 - details: - - name: CreditNotes - amount: -161570 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 181372 - details: - - name: Invoices - amount: 181372 - - customerId: 50a66e9756d2416d946419948bcf3631 - customerName: J Customer ZA - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -10 - details: - - name: CreditNotes - amount: -10 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 0 - details: [] - - customerId: 0328dd6b109a4a6cbcb3d1a73f1d541b - customerName: James Arroyo - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -719 - details: - - name: Invoices - amount: 178 - - name: Payments - amount: -897 - - customerId: bca2a47d7b4549c79b0c092d26b6661c - customerName: Jay Farm - agedCurrencyOutstanding: - - currency: USD - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 25.01 - details: - - name: Invoices - amount: 25.01 - - customerId: 6477be6d012b4d48b4c160c098645c1c - customerName: Jo's Bake Shop - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -37.8 - details: - - name: CreditNotes - amount: -37.8 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 22.25 - details: - - name: Invoices - amount: 48 - - name: Payments - amount: -25.75 - - customerId: 097305a078ba473c884d2519ab290e57 - customerName: John QuickEntry Test - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 396 - details: - - name: Invoices - amount: 396 - - customerId: eac978a7622e4ef8b8d3af661f0cfdd3 - customerName: John Smith - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 200 - details: - - name: Invoices - amount: 200 - - customerId: 3cc3148bbd8111e8bad90617b3da4b8a - customerName: John's Test Customer - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -1081.2 - details: - - name: CreditNotes - amount: -1081.2 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 3379 - details: - - name: Invoices - amount: 3479 - - name: Payments - amount: -100 - - customerId: f66deccde15843ef80a82daad887146b - customerName: Kiran testing 2 - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 48 - details: - - name: Invoices - amount: 48 - - customerId: 6e921696a21a45c891ff4716a18e7649 - customerName: M Smith - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 900 - details: - - name: Invoices - amount: 900 - - customerId: bbb0582a0d054f5db268e570b50b4d6c - customerName: Mark Smith - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 40 - details: - - name: Invoices - amount: 40 - - customerId: 440ba2199c07426a93e8edc1beb09791 - customerName: Matt Ager test EUR customer - agedCurrencyOutstanding: - - currency: EUR - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -8159.78 - details: - - name: CreditNotes - amount: -8159.78 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 6016.67 - details: - - name: Invoices - amount: 6022.98 - - name: Payments - amount: -6.31 - - customerId: d430ed86b05645d7af0a630dae5d11d2 - customerName: Matthew Smith - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 240 - details: - - name: Invoices - amount: 240 - - customerId: 9e8c3d82a2164ad29e29ab3a09ddf382 - customerName: Morv Smith - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 300 - details: - - name: Invoices - amount: 300 - - customerId: fbdd38adb5b4441ebb200b83700d7ea5 - customerName: My Shop Customer - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -384 - details: - - name: CreditNotes - amount: -384 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 398 - details: - - name: Invoices - amount: 398 - - customerId: 4b4cc40d998f47c3bec92fc088dcf327 - customerName: Nicoletta Carchia - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 90 - details: - - name: Invoices - amount: 90 - - customerId: ed070b1768bb4dd295e2a544a74c8ec0 - customerName: Paige Burlingham - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -48 - details: - - name: CreditNotes - amount: -48 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 48 - details: - - name: Invoices - amount: 48 - - customerId: 84709d3f01a4462eb7f1527718f525f4 - customerName: SageOneCustomer.BusinessName - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -1085 - details: - - name: CreditNotes - amount: -1085 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 0 - details: [] - - customerId: 90c438274d0b43759407da704394c104 - customerName: Test Company - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -16.2 - details: - - name: CreditNotes - amount: -16.2 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 1137.2 - details: - - name: Invoices - amount: 1137.2 - - customerId: 762e6895c1ff43f988f35fb507e20dd9 - customerName: Test Custiomer 2 - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -615 - details: - - name: CreditNotes - amount: -615 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 2178.25 - details: - - name: Invoices - amount: 2178.25 - - customerId: 7b9c18af4b66454b9f7e9409eb7da123 - customerName: Test Customer - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 1200 - details: - - name: Invoices - amount: 1200 - - customerId: 4ccf5c5fa14046ecb591e0620d87ea2e - customerName: Test Customer 3 - agedCurrencyOutstanding: - - currency: USD - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -50 - details: - - name: CreditNotes - amount: -50 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 499971 - details: - - name: Invoices - amount: 499971 - - customerId: f4ff85ba33dd11e797950a57719b2edb - customerName: Widgets Limited - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -23206.12 - details: - - name: CreditNotes - amount: -23206.12 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 733824.64 - details: - - name: Invoices - amount: 739536.49 - - name: Payments - amount: -5711.85 - Sage Intacct: - value: - generated: '2023-05-02T16:05:22.6557479Z' - reportDate: '2023-05-02T16:05:22.6081858Z' - data: - - customerId: '6' - customerName: AG Insurance - agedCurrencyOutstanding: - - currency: USD - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 180 - details: - - name: Invoices - amount: 180 - - customerId: '531' - customerName: Shoprite - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -150 - details: - - name: Payments - amount: -150 - Xero: - value: - generated: '2023-05-02T16:05:20.0730291Z' - reportDate: '2023-05-02T16:05:20.0102278Z' - data: - - customerId: 305ca5cf-497d-4fee-a161-cdb30e6be989 - customerName: Basket Case - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 914.55 - details: - - name: Invoices - amount: 914.55 - - customerId: 362819c9-f285-4d09-ac95-26327863adac - customerName: Bayside Club - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 3434 - details: - - name: Invoices - amount: 3434 - - customerId: 9ce626d2-14ea-463c-9fff-6785ab5f9bfb - customerName: Boom FM - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 1623.75 - details: - - name: Invoices - amount: 1623.75 - - customerId: c523e12f-8b74-4d3a-bbd8-32d7a2f598b4 - customerName: City Limousines - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 1169.95 - details: - - name: Invoices - amount: 1169.95 - - customerId: 1262c350-fe0f-40ec-aeff-41c95b4a45af - customerName: DIISR - Small Business Services - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 4470.63 - details: - - name: Invoices - amount: 4470.63 - - customerId: 94cb6d7b-5291-49f3-a0bc-fc0c01e68575 - customerName: Marine Systems - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 396 - details: - - name: Invoices - amount: 396 - - customerId: 847933f0-7c35-4e5b-b884-5f9df64c8e4b - customerName: Port & Philip Freight - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 2245 - details: - - name: Invoices - amount: 2245 - - customerId: a871a956-05b5-4e2a-9419-7aeb478ca647 - customerName: Ridgeway University - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 6187.5 - details: - - name: Invoices - amount: 6187.5 - Zoho Books: - value: - generated: '2023-05-02T16:05:23.2078272Z' - reportDate: '2023-05-02T16:05:23.1573589Z' - data: - - customerId: '104957000000054050' - customerName: 'Doe, John' - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -10567 - details: - - name: CreditNotes - amount: -10567 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 38965 - details: - - name: Invoices - amount: 39865 - - name: Payments - amount: -900 - - customerId: '104957000000634160' - customerName: Dr. Jekyll - agedCurrencyOutstanding: - - currency: EUR - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -110 - details: - - name: CreditNotes - amount: -110 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 0 - details: [] - - customerId: '104957000000080010' - customerName: Max Mustermann - agedCurrencyOutstanding: - - currency: EUR - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -68 - details: - - name: Invoices - amount: 0 - - name: Payments - amount: -68 - - customerId: '104957000000277089' - customerName: Miss. No Contact Persons - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -10 - details: - - name: CreditNotes - amount: -10 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 0 - details: - - name: Invoices - amount: 0 - - customerId: '104957000000054080' - customerName: Ms. Jane Doe - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -465 - details: - - name: CreditNotes - amount: -465 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 0 - details: [] - - customerId: '104957000000277001' - customerName: 'Sousa, Diogo' - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 9001 - details: - - name: Invoices - amount: 9001 - - customerId: '104957000000037097' - customerName: Test Company - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -9001 - details: - - name: CreditNotes - amount: -9001 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 3556.98 - details: - - name: Invoices - amount: 4501 - - name: Payments - amount: -944.02 - - customerId: '104957000001497001' - customerName: Will Westrop - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 56 - details: - - name: Invoices - amount: 56 - '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' - '/companies/{companyId}/reports/agedCreditor/available': - parameters: - - $ref: '#/components/parameters/companyId' - get: - tags: - - Accounts payable - summary: Aged creditors report available - description: Indicates whether the aged creditor report is available for the company. - operationId: is-aged-creditors-report-available - x-speakeasy-name-override: is-aged-creditors-available - x-speakeasy-group: accounts-receivable.reports - responses: - '200': - description: OK - content: - application/json: - schema: - type: boolean - '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' - '/companies/{companyId}/reports/agedCreditor': - parameters: - - $ref: '#/components/parameters/companyId' - get: - tags: - - Accounts payable - parameters: - - $ref: '#/components/parameters/accountingReportDate' - - $ref: '#/components/parameters/accountingNumberOfPeriods' - - $ref: '#/components/parameters/accountingPeriodLengthDays' - summary: Aged creditors report - description: Returns aged creditors report for company that shows the total balance owed by a business to its suppliers over time. - operationId: get-accounting-aged-creditors-report - x-speakeasy-name-override: get-aged-creditors - x-speakeasy-group: accounts-receivable.reports - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/AccountingAgedCreditorReport' - examples: - Clear Books: - value: - generated: '2023-05-02T16:05:21.7545859Z' - reportDate: '2023-05-02T16:05:21.7016767Z' - data: - - supplierId: owQ2Gqgj9f - supplierName: Abshire - Kshlerin - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -78.12 - details: - - name: BillCreditNotes - amount: -78.12 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 375.6 - details: - - name: Bills - amount: 375.6 - - supplierId: FyUkHbZxhn - supplierName: Arjun Kuvalis - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -3782.27 - details: - - name: BillCreditNotes - amount: -3782.27 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 8556.1 - details: - - name: Bills - amount: 8556.1 - - supplierId: gxazX5hqx4 - supplierName: Bernier Inc - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 213.19 - details: - - name: Bills - amount: 213.19 - - supplierId: ro8nWYGzlg - supplierName: Botsford - Hickle - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -2242.95 - details: - - name: Bills - amount: 0 - - name: BillCreditNotes - amount: -2242.95 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 838.67 - details: - - name: Bills - amount: 838.67 - - supplierId: D4Q4iYwHou - supplierName: 'Breitenberg, Emard and Schiller' - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -276.5 - details: - - name: BillCreditNotes - amount: -276.5 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 46060.53 - details: - - name: Bills - amount: 46060.53 - - supplierId: 9436ead6-545e-4e8c-8444-0220047c5a38 - supplierName: Champlin LLC - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 22726.97 - details: - - name: Bills - amount: 22726.97 - - supplierId: O6jExrbN3v - supplierName: Collins - Anderson - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -19.39 - details: - - name: BillCreditNotes - amount: -19.39 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 0 - details: - - name: Bills - amount: 0 - - supplierId: 9d4b61a4-4ce3-4d90-8d6b-66614694dc27 - supplierName: Crona - Adams - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 302.8 - details: - - name: Bills - amount: 302.8 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 0 - details: [] - - supplierId: ad8f4ee1-7a04-415f-b3dc-365d41d8d4f0 - supplierName: 'Cronin, Kunde and Tremblay' - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -3271.91 - details: - - name: BillCreditNotes - amount: -3271.91 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 3479.78 - details: - - name: Bills - amount: 3479.78 - - supplierId: 8GeHBdBZiZ - supplierName: 'DuBuque, Goyette and Franecki' - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -16511.91 - details: - - name: BillCreditNotes - amount: -16511.91 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 0 - details: - - name: Bills - amount: 0 - - supplierId: XOPP3v2lQu - supplierName: Fisher and Sons - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 238599.9 - details: - - name: Bills - amount: 238599.9 - - supplierId: 0a7b0432-7de3-4e29-bf15-4e7ca0722384 - supplierName: Flatley - Kirlin - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -113.59 - details: - - name: BillCreditNotes - amount: -113.59 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 910.45 - details: - - name: Bills - amount: 910.45 - - supplierId: HrGZeW4I51 - supplierName: 'Frami, Simonis and Krajcik' - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -2070.59 - details: - - name: BillCreditNotes - amount: -2070.59 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 0 - details: - - name: Bills - amount: 0 - - supplierId: SFmBGSHLQ3 - supplierName: Gottlieb LLC - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -105.07 - details: - - name: BillCreditNotes - amount: -105.07 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 0 - details: - - name: Bills - amount: 0 - - supplierId: unNIu8Uyap - supplierName: Hahn and Sons - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -297.78 - details: - - name: BillCreditNotes - amount: -297.78 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 2095.75 - details: - - name: Bills - amount: 2095.75 - - supplierId: GTGS3Sx241 - supplierName: Harvey Predovic - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 3612.41 - details: - - name: Bills - amount: 3612.41 - - supplierId: w07H3CBm5P - supplierName: 'Hayes, Predovic and Ruecker' - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -11662.51 - details: - - name: BillCreditNotes - amount: -11662.51 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 393776.18 - details: - - name: Bills - amount: 393776.18 - - supplierId: 92144542-2227-409e-8f5b-fc73260e670b - supplierName: 'Hettinger, Schmitt and Will' - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 3433.54 - details: - - name: Bills - amount: 3433.54 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 0 - details: [] - - supplierId: rpLhEYz0ML - supplierName: Hickle - Buckridge - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -7484.88 - details: - - name: BillCreditNotes - amount: -7484.88 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 0 - details: - - name: Bills - amount: 0 - - supplierId: d2056eb9-649e-4808-8f96-d8ea4dac71fe - supplierName: Hodkiewicz Group - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -6627.16 - details: - - name: BillCreditNotes - amount: -6627.16 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 18266.27 - details: - - name: Bills - amount: 18266.27 - - supplierId: s3WcvMyVdR - supplierName: Howe - Ruecker - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 4042.16 - details: - - name: Bills - amount: 4042.16 - - supplierId: b60XbI9zhE - supplierName: Jenkins Inc - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -12938.29 - details: - - name: BillCreditNotes - amount: -12938.29 - - name: Bills - amount: 0 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 18360.8 - details: - - name: Bills - amount: 18360.8 - - supplierId: OtXKRTOcQc - supplierName: Jensen Steuber - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 190.16 - details: - - name: Bills - amount: 190.16 - - supplierId: c02bc2f1-631d-4721-aec1-a190d63e8322 - supplierName: Jones - Zulauf - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -69.05 - details: - - name: BillCreditNotes - amount: -69.05 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 51357.36 - details: - - name: Bills - amount: 51357.36 - - supplierId: c02382bd-ff23-4b34-bfd7-8dce15fa7d6a - supplierName: Keara Leffler - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -2496.69 - details: - - name: BillCreditNotes - amount: -2496.69 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 1519.74 - details: - - name: Bills - amount: 1519.74 - - supplierId: d3tf43eghS - supplierName: Klocko - Keebler - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 12367.4 - details: - - name: Bills - amount: 12367.4 - - supplierId: 7GObELDcsE - supplierName: 'Lakin, Schmeler and Kihn' - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -318.71 - details: - - name: BillCreditNotes - amount: -318.71 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 0 - details: - - name: Bills - amount: 0 - - supplierId: gO8p5O3Mvy - supplierName: Lehner Group - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -1042.8 - details: - - name: BillCreditNotes - amount: -1042.8 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 0 - details: - - name: Bills - amount: 0 - - supplierId: 62229022-713f-4c64-84f2-63cf6dd11443 - supplierName: Littel - Cole - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -7.5 - details: - - name: BillCreditNotes - amount: -7.5 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 0 - details: - - name: Bills - amount: 0 - - supplierId: 39b32019-c5d0-4db3-ae83-f0a644e614ef - supplierName: Marvin - Schaden - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -1611.56 - details: - - name: BillCreditNotes - amount: -1611.56 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 0 - details: - - name: Bills - amount: 0 - - supplierId: 8635b986-048f-424c-985d-912576c004d9 - supplierName: 'Mills, Bechtelar and Wintheiser' - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -604.41 - details: - - name: BillCreditNotes - amount: -604.41 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 0 - details: - - name: Bills - amount: 0 - - supplierId: d2fb1aba-79ac-4840-95d5-6c173c9beaad - supplierName: Morissette LLC - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -55.93 - details: - - name: BillCreditNotes - amount: -55.93 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 0 - details: - - name: Bills - amount: 0 - - supplierId: 27dc0345-aae8-4b69-a903-fed6b0a8778b - supplierName: Newton Zieme - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 1546.46 - details: - - name: Bills - amount: 1546.46 - - supplierId: 0d892acd-4b56-4412-80ee-381b8118637b - supplierName: Nicolas - McKenzie - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -186.97 - details: - - name: BillCreditNotes - amount: -186.97 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 5131.74 - details: - - name: Bills - amount: 5131.74 - - supplierId: cc283863-960f-42f8-8e38-1e22235e9cfc - supplierName: Nicolas Group - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -6.41 - details: - - name: BillCreditNotes - amount: -6.41 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 0 - details: - - name: Bills - amount: 0 - - supplierId: 9UvJVVmPHO - supplierName: Nienow - Schroeder - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -2822.41 - details: - - name: BillCreditNotes - amount: -2822.41 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 0 - details: - - name: Bills - amount: 0 - - supplierId: 1346295c-2970-47a7-8a99-1f935567db02 - supplierName: Polly Crona - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 3600.36 - details: - - name: Bills - amount: 3600.36 - - supplierId: 5fcb09bf-ae92-42a1-a69b-57c5f0ebedd9 - supplierName: Raul Johns - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -2938.85 - details: - - name: Bills - amount: 0 - - name: BillCreditNotes - amount: -2938.85 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 0 - details: [] - - supplierId: 4253a13e-638e-4a42-9e61-665a60267a48 - supplierName: 'Robel, Ledner and Stroman' - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 1106.72 - details: - - name: Bills - amount: 1106.72 - - supplierId: 143ed2c5-2623-465e-a015-5ac12df75aa6 - supplierName: Schulist - Douglas - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -12468.22 - details: - - name: BillCreditNotes - amount: -12468.22 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 39306.44 - details: - - name: Bills - amount: 39306.44 - - supplierId: d770b767-489e-455b-9d32-29c37a1b9d07 - supplierName: Schultz Group - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -517.52 - details: - - name: BillCreditNotes - amount: -517.52 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 0 - details: - - name: Bills - amount: 0 - - supplierId: 98e93284-fcaa-440c-8f86-f36e5df591da - supplierName: Simonis - Ziemann - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -597.01 - details: - - name: BillCreditNotes - amount: -597.01 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 0 - details: [] - - supplierId: 87e907ed-97f8-4146-b276-fea2a10671bf - supplierName: Sporer and Sons - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -62443.6 - details: - - name: BillCreditNotes - amount: -62443.6 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 0 - details: - - name: Bills - amount: 0 - - supplierId: 97682025-4e50-449f-8510-6d09d1d0f84b - supplierName: Sporer LLC - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -1104.37 - details: - - name: BillCreditNotes - amount: -1104.37 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 1050.12 - details: - - name: Bills - amount: 1050.12 - - supplierId: c51351a0-b43f-48c6-8dbb-8417171bda67 - supplierName: Veum - Schiller - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -1966.59 - details: - - name: BillCreditNotes - amount: -1966.59 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 10234.97 - details: - - name: Bills - amount: 10234.97 - - supplierId: 26f6b56a-4a86-468f-a302-9d60bdc01d91 - supplierName: Vincenzo Wolff - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -23450.31 - details: - - name: BillCreditNotes - amount: -23450.31 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 0 - details: - - name: Bills - amount: 0 - - supplierId: f589fd05-c5f8-4815-b205-0a9f3f0b3b96 - supplierName: Weber LLC - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -681.79 - details: - - name: BillCreditNotes - amount: -681.79 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 10221.45 - details: - - name: Bills - amount: 10221.45 - - supplierId: 1cc8b95c-62ec-415a-ab0e-facf7e7218bf - supplierName: 'Welch, Terry and Hermiston' - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 1219.54 - details: - - name: Bills - amount: 1219.54 - - supplierId: f6CgWtm1aw - supplierName: Wisoky Group - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 272.67 - details: - - name: Bills - amount: 272.67 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 0 - details: - - name: Bills - amount: 0 - - supplierId: je5ok1Cam5 - supplierName: 'Wunsch, Kerluke and West' - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 7238.24 - details: - - name: Bills - amount: 7238.24 - Dynamics 365 Business Central: - value: - generated: '2023-05-02T16:05:21.1349781Z' - reportDate: '2023-05-02T16:05:21.0866594Z' - data: - - supplierId: e89328bd-485a-eb11-89fa-00224800af18 - supplierName: A QA - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -526.8 - details: - - name: BillCreditNotes - amount: -526.8 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 120 - details: - - name: Bills - amount: 120 - - supplierId: be1217b3-89d1-ea11-bbaa-000d3a2b9185 - supplierName: 'Fabrikam, Inc.' - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -65 - details: - - name: BillCreditNotes - amount: -65 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -11904.4 - details: - - name: Bills - amount: 461.6 - - name: BillPayments - amount: -12366 - - currency: PLN - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -15 - details: - - name: BillPayments - amount: -15 - - currency: MAD - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 5 - details: - - name: Bills - amount: 5 - - supplierId: c01217b3-89d1-ea11-bbaa-000d3a2b9185 - supplierName: First Up Consultants - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 12123.81 - details: - - name: Bills - amount: 12128.81 - - name: BillPayments - amount: -5 - - supplierId: c21217b3-89d1-ea11-bbaa-000d3a2b9185 - supplierName: Graphic Design Institute - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 7514.8 - details: - - name: Bills - amount: 7520.8 - - name: BillPayments - amount: -6 - - supplierId: 4a1b210e-b805-ec11-86bc-0022481a45c2 - supplierName: Kays Farm - agedCurrencyOutstanding: - - currency: USD - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -121 - details: - - name: BillPayments - amount: -121 - - supplierId: c61217b3-89d1-ea11-bbaa-000d3a2b9185 - supplierName: Nod Publishers - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 13156.74 - details: - - name: Bills - amount: 13156.74 - - supplierId: b864b5ae-4a5a-eb11-89fa-00224800af18 - supplierName: Test Supplier - agedCurrencyOutstanding: - - currency: EUR - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 3951 - details: - - name: Bills - amount: 3951 - - currency: MAD - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 121.45 - details: - - name: Bills - amount: 121.45 - - supplierId: 8b4c95b4-b705-ec11-86bc-0022481a45c2 - supplierName: Vegan Farm - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -5.27 - details: - - name: Bills - amount: 0 - - name: BillPayments - amount: -5.27 - - currency: USD - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -11.75 - details: - - name: BillPayments - amount: -11.75 - - supplierId: c41217b3-89d1-ea11-bbaa-000d3a2b9185 - supplierName: Wide World Importers - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 15843.22 - details: - - name: Bills - amount: 15848.22 - - name: BillPayments - amount: -5 - Exact (Netherlands): - value: - generated: '2023-05-02T16:05:19.8312183Z' - reportDate: '2023-05-02T16:05:19.7538301Z' - data: - - supplierId: 3150917c-1d92-4d77-9018-31b5c4758ca9 - supplierName: Abe - agedCurrencyOutstanding: - - currency: EUR - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -38.28 - details: - - name: BillCreditNotes - amount: -38.28 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 1952.27 - details: - - name: Bills - amount: 1941.58 - - name: BillPayments - amount: 10.69 - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 10 - details: - - name: Bills - amount: 10 - - supplierId: 5811b467-53eb-4491-8ca1-bc9b7889811b - supplierName: Ann's test supplier 2 - agedCurrencyOutstanding: - - currency: EUR - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -10000 - details: - - name: BillCreditNotes - amount: -10000 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 0 - details: [] - - currency: USD - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 117 - details: - - name: Bills - amount: 117 - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 4997.25 - details: - - name: Bills - amount: 4997.25 - - supplierId: 78afea22-ee21-48c3-84d5-45b9b24768e9 - supplierName: Ann's test supplier 2 - agedCurrencyOutstanding: - - currency: EUR - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 110 - details: - - name: Bills - amount: 108 - - name: BillPayments - amount: 2 - - supplierId: 773416a6-b196-487b-ae02-eeb273a86bcd - supplierName: Belastingdienst - agedCurrencyOutstanding: - - currency: EUR - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -293.14 - details: - - name: BillCreditNotes - amount: -293.14 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 1547.08 - details: - - name: Bills - amount: 1547.08 - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 32.17 - details: - - name: Bills - amount: 32.17 - - supplierId: 7017da1f-2d49-4601-abf3-c4e779459976 - supplierName: Bool Test - agedCurrencyOutstanding: - - currency: EUR - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 121 - details: - - name: Bills - amount: 121 - - supplierId: f87070e2-bbd7-4383-a7c9-824748c1d70e - supplierName: Exact Software Nederland B.V. - agedCurrencyOutstanding: - - currency: EUR - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -65.73 - details: - - name: BillCreditNotes - amount: -65.73 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -83351.62 - details: - - name: BillPayments - amount: -83381.63 - - name: Bills - amount: 30.01 - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -8285.73 - details: - - name: BillPayments - amount: -8285.73 - - supplierId: 8cb6745b-4769-4c7a-9d92-bc688c60ca3c - supplierName: iZettle AB (Supplier) - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 19.93 - details: - - name: Bills - amount: 19.93 - - supplierId: 63fadca8-4905-475a-b32a-b4341293bcf4 - supplierName: Kelly's Industrial Supplies - agedCurrencyOutstanding: - - currency: EUR - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 5 - details: - - name: BillPayments - amount: 5 - - supplierId: acde3236-898e-4e68-b076-4e946defbc5f - supplierName: Matt Ager Test Supplier 1 - agedCurrencyOutstanding: - - currency: EUR - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -276 - details: - - name: BillCreditNotes - amount: -276 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 75 - details: - - name: Bills - amount: 105 - - name: BillPayments - amount: -30 - - currency: RUB - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -10 - details: - - name: BillPayments - amount: -10 - - supplierId: 5e6f49b9-6489-4b82-83e7-291d308919bb - supplierName: Mickey Mouse - agedCurrencyOutstanding: - - currency: EUR - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -12.1 - details: - - name: BillCreditNotes - amount: -12.1 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 119.97 - details: - - name: Bills - amount: 119.97 - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -7040 - details: - - name: BillCreditNotes - amount: -7040 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 8800 - details: - - name: Bills - amount: 8800 - - supplierId: fc189bfa-f083-438c-bf09-379a0631d4a1 - supplierName: Mickey Mouse - agedCurrencyOutstanding: - - currency: EUR - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -0.83 - details: - - name: Bills - amount: -0.83 - - supplierId: 1d2c9f47-a2fc-48e6-a967-71583d764b10 - supplierName: NLSuppliers07 - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 25 - details: - - name: Bills - amount: 25 - - supplierId: a1e88d58-caec-4ed6-ad1b-646ebb959c17 - supplierName: supplierrrr - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -55 - details: - - name: BillCreditNotes - amount: -55 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 11084 - details: - - name: Bills - amount: 11084 - - supplierId: cdcdce7b-0330-49fb-8169-0a50e0b74dcc - supplierName: Test NL sup1 - agedCurrencyOutstanding: - - currency: EUR - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 13.21 - details: - - name: BillPayments - amount: 13.21 - - supplierId: bad8020a-267f-41fb-9e0f-e93465ee9529 - supplierName: Test supplier - agedCurrencyOutstanding: - - currency: EUR - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 718.22 - details: - - name: Bills - amount: 718.22 - - supplierId: 26bc5305-8613-43e4-ab97-522ade34cbba - supplierName: Vandana's Test Supplier - agedCurrencyOutstanding: - - currency: EUR - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 403.74 - details: - - name: Bills - amount: 403.74 - Exact (UK): - value: - generated: '2023-05-02T16:05:22.8960035Z' - reportDate: '2023-05-02T16:05:22.8283897Z' - data: - - supplierId: 0185fea2-0298-445b-909a-0db685118a9e - supplierName: a - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -10 - details: - - name: BillCreditNotes - amount: -10 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 560.1 - details: - - name: Bills - amount: 660.1 - - name: BillPayments - amount: -100 - - supplierId: 64ae712f-4155-48bb-9fce-98232c51d979 - supplierName: aa - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -400 - details: - - name: BillCreditNotes - amount: -400 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 30 - details: - - name: Bills - amount: 430 - - name: BillPayments - amount: -400 - - supplierId: 5f20075a-a28e-434d-81a6-2db0dc170e87 - supplierName: Abdi 99 - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -65 - details: - - name: BillCreditNotes - amount: -65 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 609 - details: - - name: Bills - amount: 258 - - name: BillPayments - amount: 351 - - supplierId: 0d3f8692-4b0a-4bc3-85f2-4cb763306397 - supplierName: Ann's test supplier - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -3600 - details: - - name: BillCreditNotes - amount: -3600 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 2400 - details: - - name: Bills - amount: 2400 - - supplierId: fc62db43-a6f8-4b65-9d29-15290ec56674 - supplierName: Anna's test supplier - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -1717.5 - details: - - name: BillCreditNotes - amount: -1717.5 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 2751 - details: - - name: Bills - amount: 2751 - - supplierId: cde51f36-2a06-4eac-9784-c0c967c1e1ed - supplierName: b - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -6 - details: - - name: BillCreditNotes - amount: -6 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 0 - details: [] - - supplierId: 437c6631-3c5d-4351-b757-6ad4f94bd26e - supplierName: bb - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 220 - details: - - name: Bills - amount: 220 - - supplierId: fe713acb-3c98-423d-8372-68a32aae6232 - supplierName: cc - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -60 - details: - - name: BillPayments - amount: -60 - - supplierId: 1c703cce-967c-4476-a86a-32e35341a8f5 - supplierName: Customer Bill Supplier - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -100073.4 - details: - - name: BillCreditNotes - amount: -100073.4 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 374.8 - details: - - name: Bills - amount: 373.8 - - name: BillPayments - amount: 1 - - supplierId: 6a4c6a14-d5eb-4427-aae0-c544f67dff7a - supplierName: CustomerAndSupplier - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 2.05 - details: - - name: BillPayments - amount: 2.05 - - supplierId: efb5d438-7d3a-4b77-a254-2d90f76d3f22 - supplierName: dd - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 200 - details: - - name: Bills - amount: 200 - - supplierId: 77b652bb-a363-4425-adbd-0206e2ce4639 - supplierName: e - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -72.33 - details: - - name: BillCreditNotes - amount: -72.33 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 0 - details: [] - - supplierId: a4d5d739-c979-4819-b0ce-666db1ec3a7d - supplierName: Exact Software (UK) Ltd � Exact Online - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 133.6 - details: - - name: Bills - amount: 133.6 - - supplierId: 7c8a9143-7322-48e3-b809-88a038b8a0e0 - supplierName: John Doe - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 192.5 - details: - - name: Bills - amount: 192.5 - - supplierId: a7cad20d-44db-442b-ac1f-90475802d6fb - supplierName: Pencils Pencils Pencils - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -1200 - details: - - name: BillCreditNotes - amount: -1200 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 3837 - details: - - name: Bills - amount: 3837 - - supplierId: 41302634-76b5-4442-b800-0bb63780e77c - supplierName: Some Supplier - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -46.8 - details: - - name: BillCreditNotes - amount: -46.8 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -54537.12 - details: - - name: Bills - amount: 455.73 - - name: BillPayments - amount: -54992.85 - FreeAgent: - value: - generated: '2023-05-02T16:05:23.3560058Z' - reportDate: '2023-05-02T16:05:23.3059155Z' - data: - - supplierId: '10123537' - supplierName: _Test 1 - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: - - name: BillPayments - amount: 0 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 791 - details: - - name: Bills - amount: 791 - - currency: QAR - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 12 - details: - - name: Bills - amount: 12 - - supplierId: '11526230' - supplierName: '-' - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -6430 - details: - - name: Bills - amount: 1500 - - name: BillCreditNotes - amount: -7930 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 1200 - details: - - name: Bills - amount: 1200 - - supplierId: '9677150' - supplierName: '-' - agedCurrencyOutstanding: - - currency: EUR - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 5 - details: - - name: Bills - amount: 5 - - supplierId: '8959011' - supplierName: '1' - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -134.3 - details: - - name: BillCreditNotes - amount: -134.3 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 46 - details: - - name: Bills - amount: 46 - - supplierId: '6161941' - supplierName: A & J Fabtech Ltd - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -2433.99 - details: - - name: BillCreditNotes - amount: -2433.99 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 3431 - details: - - name: Bills - amount: 3431 - - currency: USD - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 400 - details: - - name: Bills - amount: 400 - - supplierId: '6161963' - supplierName: ABB Ltd - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -10 - details: - - name: BillCreditNotes - amount: -10 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 0 - details: - - name: Bills - amount: 0 - - supplierId: '9356878' - supplierName: Abdul Al-haj - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 12 - details: - - name: Bills - amount: 12 - - supplierId: '8984892' - supplierName: Abraham's Spider Hunting Ltd - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 77 - details: - - name: Bills - amount: 77 - - supplierId: '9273150' - supplierName: Best Company - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -456 - details: - - name: BillCreditNotes - amount: -456 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 0 - details: [] - - supplierId: '6161956' - supplierName: C Allen - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -100 - details: - - name: BillCreditNotes - amount: -100 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 122 - details: - - name: Bills - amount: 122 - - supplierId: '7994567' - supplierName: codat - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 10 - details: - - name: Bills - amount: 10 - - supplierId: '5730310' - supplierName: Demo Customer - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 200 - details: - - name: Bills - amount: 200 - - supplierId: '6162169' - supplierName: PricewaterhouseCoopers LLP - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 42 - details: - - name: Bills - amount: 42 - - supplierId: '10672202' - supplierName: Random Org - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -42 - details: - - name: BillCreditNotes - amount: -42 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 130 - details: - - name: Bills - amount: 130 - - supplierId: '8989342' - supplierName: Supplier Hidden - agedCurrencyOutstanding: - - currency: USD - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -500 - details: - - name: BillCreditNotes - amount: -500 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 0 - details: [] - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -150 - details: - - name: BillPayments - amount: -150 - - supplierId: '7169654' - supplierName: The Eagle - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -492 - details: - - name: BillCreditNotes - amount: -492 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 3523.75 - details: - - name: Bills - amount: 3523.75 - - currency: USD - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 301 - details: - - name: Bills - amount: 301 - MYOB AccountRight and Essentials: - value: - generated: '2023-05-02T16:05:21.5229720Z' - reportDate: '2023-05-02T16:05:21.2821865Z' - data: [] - Oracle NetSuite: - value: - generated: '2023-05-02T16:05:20.3296968Z' - reportDate: '2023-05-02T16:05:20.2442587Z' - data: - - supplierId: '779' - supplierName: Test Vendor - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 56 - details: - - name: Bills - amount: 56 - - supplierId: '724' - supplierName: Vendor A.A.A - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 579.55 - details: - - name: Bills - amount: 524 - - name: BillPayments - amount: 55.55 - QuickBooks Desktop: - value: - generated: '2023-05-02T16:05:20.3972104Z' - reportDate: '2023-05-02T16:05:20.3178060Z' - data: - - supplierId: B0000-933272656 - supplierName: Patton Hardware Supplies - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: - - name: BillPayments - amount: 0 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 5000 - details: - - name: Bills - amount: 5000 - QuickBooks Online: - value: - generated: '2023-05-02T16:05:21.3065432Z' - reportDate: '2023-05-02T16:05:21.2488309Z' - data: - - supplierId: '129' - supplierName: Ally Johnson - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 230.98 - details: - - name: Bills - amount: 276.38 - - name: BillPayments - amount: -45.4 - - supplierId: '88' - supplierName: Andrew Haberbosch - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -16 - details: - - name: BillCreditNotes - amount: -16 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 66.25 - details: - - name: BillPayments - amount: -13.75 - - name: Bills - amount: 80 - - supplierId: '53' - supplierName: Bank of AnyCity - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 63 - details: - - name: Bills - amount: 63 - - supplierId: '282' - supplierName: Becky's Bakery - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 490.5 - details: - - name: BillPayments - amount: -9.5 - - name: Bills - amount: 500 - - supplierId: '24' - supplierName: Brijesh Jain - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -69 - details: - - name: BillCreditNotes - amount: -69 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 52260 - details: - - name: Bills - amount: 52260 - - supplierId: '25' - supplierName: Brittney Hughes - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 70 - details: - - name: Bills - amount: 70 - - supplierId: '26' - supplierName: Burc Gunes - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 33.05 - details: - - name: Bills - amount: 33.05 - - supplierId: '27' - supplierName: Cass Hayden - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 1450 - details: - - name: Bills - amount: 1500 - - name: BillPayments - amount: -50 - - supplierId: '51' - supplierName: City Water Co - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 7.25 - details: - - name: Bills - amount: 24 - - name: BillPayments - amount: -16.75 - - supplierId: '297' - supplierName: Codat Supplier - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -128 - details: - - name: Bills - amount: 0 - - name: BillPayments - amount: -25 - - name: BillCreditNotes - amount: -103 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -328.32 - details: - - name: Bills - amount: 0 - - name: BillPayments - amount: -328.32 - - supplierId: '87' - supplierName: Costco - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -17.85 - details: - - name: BillPayments - amount: -17.85 - - supplierId: '57' - supplierName: Hall's Promo Items - agedCurrencyOutstanding: - - currency: HKD - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 1041.09 - details: - - name: Bills - amount: 1041.09 - - supplierId: '92' - supplierName: Huw Thomas - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 25292 - details: - - name: Bills - amount: 25302 - - name: BillPayments - amount: -10 - - supplierId: '85' - supplierName: Jay's Farm - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -446.83 - details: - - name: BillCreditNotes - amount: -446.83 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 9759.68 - details: - - name: Bills - amount: 9822.46 - - name: BillPayments - amount: -62.78 - - supplierId: '34' - supplierName: Jennifer Hargreaves - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 239.01 - details: - - name: Bills - amount: 239.01 - - supplierId: '37' - supplierName: Kristina Gibson - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -1710 - details: - - name: BillCreditNotes - amount: -1710 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 502.38 - details: - - name: Bills - amount: 502.38 - - supplierId: '41' - supplierName: Mark Howard - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 3000 - details: - - name: Bills - amount: 3000 - - supplierId: '23' - supplierName: Mr Andrew Thomas Haberbosch - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -21.2 - details: - - name: BillCreditNotes - amount: -21.2 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 54.09 - details: - - name: Bills - amount: 54.09 - - supplierId: '54' - supplierName: Organization of Outstanding Event Planners - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 390 - details: - - name: Bills - amount: 390 - - supplierId: '47' - supplierName: Sanjeev Kak - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 21 - details: - - name: Bills - amount: 21 - - supplierId: '74' - supplierName: TestPushCustomer3 - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 200 - details: - - name: Bills - amount: 200 - - supplierId: '86' - supplierName: Vegan Farm - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -42.76 - details: - - name: BillCreditNotes - amount: -42.76 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 1249.3 - details: - - name: BillPayments - amount: -504.24 - - name: Bills - amount: 1753.54 - - supplierId: '58' - supplierName: Venue Rental - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 461 - details: - - name: Bills - amount: 500 - - name: BillPayments - amount: -39 - Sage 200cloud: - value: - generated: '2023-05-02T16:05:20.7939148Z' - reportDate: '2023-05-02T16:05:20.7474542Z' - data: - - supplierId: CON002 - supplierName: Concept Stationery Sub A - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 411.76 - details: - - name: Bills - amount: 782.56 - - name: BillPayments - amount: -370.8 - - supplierId: CON001 - supplierName: Concept Stationery Supplies - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -167.1 - details: - - name: BillCreditNotes - amount: -167.1 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 5062.78 - details: - - name: Bills - amount: 5111.01 - - name: BillPayments - amount: -48.23 - - supplierId: MCN001 - supplierName: McNally Computer Supplies - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 25802.03 - details: - - name: Bills - amount: 25934.03 - - name: BillPayments - amount: -132 - - supplierId: MEA001 - supplierName: Mears Insurance - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -48 - details: - - name: BillCreditNotes - amount: -48 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 1368.02 - details: - - name: Bills - amount: 1524 - - name: BillPayments - amount: -155.98 - - supplierId: NEW001 - supplierName: Newtown Builders Ltd - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -13.21 - details: - - name: BillCreditNotes - amount: -13.21 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 1024.13 - details: - - name: Bills - amount: 1041.61 - - name: BillPayments - amount: -17.48 - - supplierId: QUA001 - supplierName: Quality Motors - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -105.64 - details: - - name: BillCreditNotes - amount: -105.64 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 155.92 - details: - - name: Bills - amount: 155.92 - - supplierId: RSP002 - supplierName: Richard Sanderson-Pope - agedCurrencyOutstanding: - - currency: JPY - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 60000 - details: - - name: Bills - amount: 60000 - - supplierId: SDE001 - supplierName: S D Enterprises - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 1130.29 - details: - - name: Bills - amount: 1189.29 - - name: BillPayments - amount: -59 - - supplierId: STU001 - supplierName: Studio Designs - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 562.06 - details: - - name: Bills - amount: 562.06 - - supplierId: SUP002 - supplierName: Superclean - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 2055.3 - details: - - name: Bills - amount: 2055.3 - - supplierId: SUP001 - supplierName: Superior Technologies Ltd - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 9433.71 - details: - - name: Bills - amount: 9433.71 - - supplierId: THO001 - supplierName: Thompsons Electricals - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -135.13 - details: - - name: BillCreditNotes - amount: -135.13 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 576.04 - details: - - name: Bills - amount: 1091.04 - - name: BillPayments - amount: -515 - - supplierId: UNI001 - supplierName: Unique Systems - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -103.4 - details: - - name: BillCreditNotes - amount: -103.4 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 1104.16 - details: - - name: Bills - amount: 1104.16 - - supplierId: WAL001 - supplierName: Wallace Office Equipment - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -70.76 - details: - - name: BillCreditNotes - amount: -70.76 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -55.52 - details: - - name: Bills - amount: 94.48 - - name: BillPayments - amount: -150 - - supplierId: WIS001 - supplierName: Wise Electricals Ltd - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -35.01 - details: - - name: BillCreditNotes - amount: -35.01 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -221.75 - details: - - name: Bills - amount: -121.75 - - name: BillPayments - amount: -100 - - supplierId: WIS002 - supplierName: Wiseman Paper Products - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 5868.13 - details: - - name: Bills - amount: 5868.13 - Sage 50 (UK): - value: - generated: '2023-05-02T16:05:20.0257207Z' - reportDate: '2023-05-02T16:05:19.9751677Z' - data: - - supplierId: CON001 - supplierName: Concept Stationery Supplies - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 1644.39 - details: - - name: Bills - amount: 1644.39 - - supplierId: MCN001 - supplierName: McNally Computer Supplies - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 24734.12 - details: - - name: Bills - amount: 24734.12 - - supplierId: NEW001 - supplierName: Newtown Builders Ltd - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -0.01 - details: - - name: BillCreditNotes - amount: -0.01 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 0.01 - details: - - name: Bills - amount: 0.01 - - supplierId: QUA001 - supplierName: Quality Motors - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -42.63 - details: - - name: BillCreditNotes - amount: -42.63 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 72.85 - details: - - name: Bills - amount: 72.85 - - supplierId: SDE001 - supplierName: S D Enterprises - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 352.5 - details: - - name: Bills - amount: 352.5 - - supplierId: SUP002 - supplierName: Superclean - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 1762.5 - details: - - name: Bills - amount: 1762.5 - - supplierId: SUP001 - supplierName: Superior Technologies Ltd - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 9164.95 - details: - - name: Bills - amount: 9164.95 - - supplierId: THO001 - supplierName: Thompsons Electricals - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -135.13 - details: - - name: BillCreditNotes - amount: -135.13 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 472.24 - details: - - name: Bills - amount: 972.24 - - name: BillPayments - amount: -500 - - supplierId: UNI001 - supplierName: Unique Systems - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -103.4 - details: - - name: BillCreditNotes - amount: -103.4 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 744.16 - details: - - name: Bills - amount: 744.16 - - supplierId: WAL001 - supplierName: Wallace Office Equipment - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -58.76 - details: - - name: BillCreditNotes - amount: -58.76 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -55.52 - details: - - name: Bills - amount: 94.48 - - name: BillPayments - amount: -150 - - supplierId: WIS001 - supplierName: Wise Electricals Ltd - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -35.01 - details: - - name: BillCreditNotes - amount: -35.01 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 117.29 - details: - - name: Bills - amount: 117.29 - - supplierId: WIS002 - supplierName: Wiseman Paper Products - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 5868.13 - details: - - name: Bills - amount: 5868.13 - Sage Business Cloud Accounting: - value: - generated: '2023-05-02T16:05:21.3095542Z' - reportDate: '2023-05-02T16:05:21.1514485Z' - data: - - supplierId: 65179671e9ef424caff8b9006cd111c8 - supplierName: 5555 Abdul's Test Name - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -60 - details: - - name: BillCreditNotes - amount: -60 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 1548.84 - details: - - name: Bills - amount: 1608.84 - - name: BillPayments - amount: -60 - - supplierId: cf7f44d693904944a6a7cf3de0887964 - supplierName: Abdi Supplier - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -841570.32 - details: - - name: BillCreditNotes - amount: -841570.32 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 661901.14 - details: - - name: Bills - amount: 662062.14 - - name: BillPayments - amount: -161 - - supplierId: f82f0f59fbf44416b833562783388ee9 - supplierName: Abe's Spider Hunting Ltd - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -38.8 - details: - - name: Bills - amount: 1.2 - - name: BillPayments - amount: -40 - - supplierId: ec716559789111e8aaa5027d54329956 - supplierName: Bagels Limited - agedCurrencyOutstanding: - - currency: USD - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -140.97 - details: - - name: BillCreditNotes - amount: -140.97 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 1856307.16 - details: - - name: BillPayments - amount: -213 - - name: Bills - amount: 1856520.16 - - supplierId: b1354c4ae5db4d069acbcf49bee62215 - supplierName: Boyer Inc - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 360000 - details: - - name: Bills - amount: 360000 - - supplierId: 46b3d6acedcb4738a9646dc512562cda - supplierName: callum - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 1.2 - details: - - name: Bills - amount: 1.2 - - supplierId: 7e7450fadbb94d09abdaf609a51d05eb - supplierName: Debs UK Supplier - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -36 - details: - - name: BillCreditNotes - amount: -36 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 1814652 - details: - - name: Bills - amount: 1814652 - - supplierId: bf6fc20701264c899a1ba96365aa9d70 - supplierName: Eliana's - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -105.6 - details: - - name: BillCreditNotes - amount: -105.6 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 26.4 - details: - - name: Bills - amount: 26.4 - - supplierId: 30862a4b2c084a4fa2e640f9ef371e4c - supplierName: Flour Inc - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 60 - details: - - name: Bills - amount: 60 - - supplierId: 390ca10633cb4bf989961491e834b47a - supplierName: Jo Cheese - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 9 - details: - - name: Bills - amount: 9 - - supplierId: b10be78d0e9340a79743c538a0b481d0 - supplierName: M7 Smith - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 65150090 - details: - - name: Bills - amount: 65150090 - - supplierId: 693d3b961e744b02a6a260f4bada75b0 - supplierName: Matt Ager Test EU Supplier - agedCurrencyOutstanding: - - currency: EUR - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -6841.33 - details: - - name: BillCreditNotes - amount: -6841.33 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 6841.33 - details: - - name: Bills - amount: 6841.33 - - supplierId: 1edf56c368e14a35a050b3e8336e2272 - supplierName: Mike B Commerce Test - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 300 - details: - - name: Bills - amount: 300 - - supplierId: c6d3fa5bf2634b148d0ee82b6fbb8fe3 - supplierName: my shop supplier - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -120 - details: - - name: BillCreditNotes - amount: -120 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 0 - details: [] - - supplierId: cdeae2fcbe6447f698d2a59d68e4ad82 - supplierName: Nic Supp - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -36 - details: - - name: BillCreditNotes - amount: -36 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 0 - details: [] - - supplierId: 2e14c8cfee3041a4a5e8a619b336f900 - supplierName: Nic Supplies Ltd - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 30 - details: - - name: Bills - amount: 30 - - supplierId: c41981674176495f927f46ce663d46ac - supplierName: Ninetta Ponting - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -306 - details: - - name: BillPayments - amount: -306 - - supplierId: e2dd680fed99410982673f8fc2722357 - supplierName: Supplier 70 - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -70 - details: - - name: BillPayments - amount: -70 - - supplierId: 8d61f7cd3a2f4ceea26ac5bca15e10da - supplierName: Supplier 71 (AUD) - agedCurrencyOutstanding: - - currency: AUD - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -701 - details: - - name: BillPayments - amount: -701 - - supplierId: 7a67caeb261f40259f0948785090af0b - supplierName: supplier test - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 12014.4 - details: - - name: Bills - amount: 12014.4 - - supplierId: d884f637bb3a4e589d640085b31ad6ee - supplierName: Tasty Treats Icecreams - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -454 - details: - - name: BillCreditNotes - amount: -454 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 456 - details: - - name: Bills - amount: 456 - - supplierId: ca430e0d156011e8b45c025132dab352 - supplierName: Test Supplier - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -1152.78 - details: - - name: BillCreditNotes - amount: -1152.78 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 14960.37 - details: - - name: Bills - amount: 15064.41 - - name: BillPayments - amount: -104.04 - - supplierId: 2541e491791c485a96cc480cfde112d6 - supplierName: Test Supplier 2 - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -50 - details: - - name: BillCreditNotes - amount: -50 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 63338524.47 - details: - - name: Bills - amount: 63338524.47 - - supplierId: 877aac191c3c40eda61115eea12641f7 - supplierName: Test Supplier 3 - agedCurrencyOutstanding: - - currency: EUR - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -3535.61 - details: - - name: BillCreditNotes - amount: -3535.61 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 50658.58 - details: - - name: Bills - amount: 50658.58 - - supplierId: d98e7afb4ca846dfbb12ca285f95f863 - supplierName: Test Supplier 4 (US) - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 51872949 - details: - - name: Bills - amount: 51872949 - Sage Intacct: - value: - generated: '2023-05-02T16:05:22.9252709Z' - reportDate: '2023-05-02T16:05:22.8758390Z' - data: - - supplierId: '3' - supplierName: ADP - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 487.5 - details: - - name: Bills - amount: 487.5 - - supplierId: '14' - supplierName: Kristofferson Consulting - agedCurrencyOutstanding: - - currency: USD - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 7200 - details: - - name: Bills - amount: 7200 - - supplierId: '7' - supplierName: Lenovo - agedCurrencyOutstanding: - - currency: USD - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 190 - details: - - name: Bills - amount: 190 - - supplierId: '8' - supplierName: Worldwide Commercial - agedCurrencyOutstanding: - - currency: USD - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 10 - details: - - name: Bills - amount: 10 - Xero: - value: - generated: '2023-05-02T16:05:20.3006654Z' - reportDate: '2023-05-02T16:05:20.2587933Z' - data: - - supplierId: 699f0091-b127-4796-9f15-41a2f42abeb2 - supplierName: ABC Furniture - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 1200 - details: - - name: Bills - amount: 1200 - - supplierId: 362819c9-f285-4d09-ac95-26327863adac - supplierName: Bayside Club - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 130 - details: - - name: Bills - amount: 130 - - supplierId: 2dc0ef7c-582f-4542-963b-dbdc069e4819 - supplierName: Bayside Wholesale - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 961.21 - details: - - name: Bills - amount: 961.21 - - supplierId: 51cbbfb0-8dc9-41aa-aad6-eb93b3cc40c6 - supplierName: Capital Cab Co - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 242 - details: - - name: Bills - amount: 242 - - supplierId: 3828f379-afa5-4b2a-9000-9c53d75ba1c6 - supplierName: Central Copiers - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 1063.56 - details: - - name: Bills - amount: 1063.56 - - supplierId: 8a593982-291c-4ec3-9a42-3dbccbc6e3c8 - supplierName: MCO Cleaning Services - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 119.08 - details: - - name: Bills - amount: 119.08 - - supplierId: 97cc88ca-f89b-41f0-b8b9-e750b6f2f1d9 - supplierName: Net Connect - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 54.13 - details: - - name: Bills - amount: 54.13 - - supplierId: dec56ceb-65e9-43b3-ac98-7fe09eb37e31 - supplierName: PowerDirect - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 244.45 - details: - - name: Bills - amount: 244.45 - - supplierId: f5a77e82-50e3-4340-a6e0-13d6a482a08a - supplierName: SMART Agency - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 4500 - details: - - name: Bills - amount: 4500 - - supplierId: 3a0d40a2-2698-4cf5-b7b2-30133c632ab6 - supplierName: Swanston Security - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 93.64 - details: - - name: Bills - amount: 93.64 - - supplierId: ac48c67d-3eea-44eb-96b1-9f7a89d9b761 - supplierName: Xero - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 56.35 - details: - - name: Bills - amount: 56.35 - - supplierId: 94a82e91-53da-4f87-a417-63d6a1607ced - supplierName: Young Bros Transport - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 125.03 - details: - - name: Bills - amount: 125.03 - '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' - '/companies/{companyId}/data/financials/balanceSheet': - parameters: - - $ref: '#/components/parameters/companyId' - get: - tags: - - Financial statements - summary: Get balance sheet - description: Gets the latest balance sheet for a company. - operationId: get-accounting-balance-sheet - x-speakeasy-group: financial-statements.balance-sheet - parameters: - - $ref: '#/components/parameters/accountingPeriodLength' - - $ref: '#/components/parameters/accountingPeriodsToCompare' - - $ref: '#/components/parameters/accountingStartMonth' - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/AccountingBalanceSheet' - examples: - Clear Books: - value: - currency: GBP - reports: - - date: '2023-03-31T00:00:00' - assets: - accountId: '' - name: Assets - value: 4643976.27 - items: - - accountId: '' - name: Fixed Assets - value: 3930291.27 - items: - - accountId: 724ca578-8b5d-4bdb-ad45-e3820eee9de9 - name: Office Equipment - value: 2354838.89 - items: [] - - accountId: be3eb911-034b-42de-95db-0d58ac978b7f - name: Computer Equipment - value: 1575452.38 - items: [] - - accountId: '' - name: Current Assets - value: 713685 - items: - - accountId: 1b6266d1-1e44-46c5-8eb5-a8f98e03124e - name: Accounts Receivable - value: 66538.63 - items: [] - - accountId: 22de1660-d745-4809-a363-16b134607e66 - name: Prepayments - value: 27250.93 - items: [] - - accountId: e5d7612c-1671-47b4-b733-5db48363fcd0 - name: Inventory - value: 113157.44 - items: [] - - accountId: '' - name: Bank - value: 506738 - items: - - accountId: dbcaf288-2b39-4b95-8ab3-42202ab15918 - name: Business Current Account - value: 506738 - items: [] - liabilities: - accountId: '' - name: Liabilities - value: 1183797.31 - items: - - accountId: '' - name: Current Liabilities - value: 544797.71 - items: - - accountId: 3a872b81-d1af-4d31-9bfa-a37280b8f68c - name: VAT - value: 27683.3 - items: [] - - accountId: d19852a2-e292-4eb9-a909-9dadb95c0e76 - name: Rounding - value: 0 - items: [] - - accountId: 9be6382f-6b33-402d-b448-0db1dbf67a98 - name: Historical Adjustment - value: 8985.44 - items: [] - - accountId: 53bf27a7-7497-4c61-9887-dfaad5c6d80a - name: Accounts Payable - value: 36981.83 - items: [] - - accountId: 8852a857-aa9d-4706-839f-638e9d6b5a66 - name: Unpaid Expense Claims - value: 0 - items: [] - - accountId: 3b58f7ff-fa16-453a-9931-f020816d76e7 - name: Interest Payables - value: 1193.59 - items: [] - - accountId: 8636effc-50fb-45ba-8b2b-18336fa29b6b - name: John Smith - value: 1147.11 - items: [] - - accountId: e2530acd-91c8-48f8-a35f-935dbd7432e2 - name: Accruals - value: 439935.82 - items: [] - - accountId: 62060aae-e5a6-4db5-a3bb-6abec6d47959 - name: Credit Card Control Account - value: 28870.62 - items: [] - - accountId: '' - name: Long Term Liability - value: 638999.6 - items: - - accountId: 55008233-40e7-41ac-84af-2255fa028c2e - name: Loan - value: 638999.6 - items: [] - netAssets: 3460178.96 - equity: - accountId: '' - name: Equity - value: 3460178.96 - items: - - accountId: 39225d6f-3722-4508-ac3f-a2f6ec96ad31 - name: Retained Earnings - value: 3405201.39 - items: [] - - accountId: 78828dd9-6008-4662-b43c-e9d87907fd2b - name: Current Year Earnings - value: 54977.57 - items: [] - - date: '2023-02-28T00:00:00' - assets: - accountId: '' - name: Assets - value: 4599890.71 - items: - - accountId: '' - name: Fixed Assets - value: 3882793.51 - items: - - accountId: 724ca578-8b5d-4bdb-ad45-e3820eee9de9 - name: Office Equipment - value: 2036803.36 - items: [] - - accountId: be3eb911-034b-42de-95db-0d58ac978b7f - name: Computer Equipment - value: 1845990.15 - items: [] - - accountId: '' - name: Current Assets - value: 717097.2 - items: - - accountId: 1b6266d1-1e44-46c5-8eb5-a8f98e03124e - name: Accounts Receivable - value: 136245.44 - items: [] - - accountId: 22de1660-d745-4809-a363-16b134607e66 - name: Prepayments - value: 18719.25 - items: [] - - accountId: e5d7612c-1671-47b4-b733-5db48363fcd0 - name: Inventory - value: 146898.62 - items: [] - - accountId: '' - name: Bank - value: 415233.89 - items: - - accountId: dbcaf288-2b39-4b95-8ab3-42202ab15918 - name: Business Current Account - value: 415233.89 - items: [] - liabilities: - accountId: '' - name: Liabilities - value: 1150262.51 - items: - - accountId: '' - name: Current Liabilities - value: 508579.57 - items: - - accountId: 3a872b81-d1af-4d31-9bfa-a37280b8f68c - name: VAT - value: 22517.83 - items: [] - - accountId: d19852a2-e292-4eb9-a909-9dadb95c0e76 - name: Rounding - value: 0 - items: [] - - accountId: 9be6382f-6b33-402d-b448-0db1dbf67a98 - name: Historical Adjustment - value: 5994.86 - items: [] - - accountId: 53bf27a7-7497-4c61-9887-dfaad5c6d80a - name: Accounts Payable - value: 49993.06 - items: [] - - accountId: 8852a857-aa9d-4706-839f-638e9d6b5a66 - name: Unpaid Expense Claims - value: 0 - items: [] - - accountId: 3b58f7ff-fa16-453a-9931-f020816d76e7 - name: Interest Payables - value: 1424.88 - items: [] - - accountId: 8636effc-50fb-45ba-8b2b-18336fa29b6b - name: John Smith - value: 1863.01 - items: [] - - accountId: e2530acd-91c8-48f8-a35f-935dbd7432e2 - name: Accruals - value: 399839.88 - items: [] - - accountId: 62060aae-e5a6-4db5-a3bb-6abec6d47959 - name: Credit Card Control Account - value: 26946.05 - items: [] - - accountId: '' - name: Long Term Liability - value: 641682.94 - items: - - accountId: 55008233-40e7-41ac-84af-2255fa028c2e - name: Loan - value: 641682.94 - items: [] - netAssets: 3449628.2 - equity: - accountId: '' - name: Equity - value: 3449628.19 - items: - - accountId: 39225d6f-3722-4508-ac3f-a2f6ec96ad31 - name: Retained Earnings - value: 3405201.39 - items: [] - - accountId: 78828dd9-6008-4662-b43c-e9d87907fd2b - name: Current Year Earnings - value: 44426.8 - items: [] - mostRecentAvailableMonth: '2023-03-31T00:00:00' - earliestAvailableMonth: '2018-04-01T00:00:00' - Dynamics 365 Business Central: - value: - currency: GBP - reports: - - date: '2023-03-27T00:00:00' - assets: - name: Assets - value: 260454.26 - items: - - name: '' - value: 27.34 - items: - - accountId: c0861a65-c69f-ec11-80f1-0022481b4546 - name: 10 - Account no cat Balance Sheet - value: 27.34 - items: [] - - accountId: 9cc90e3e-843d-ed11-97e8-0022481b89f2 - name: 12345 - Income Statement and Asset - value: 0 - items: [] - - name: Equipment - value: 5504.37 - items: - - accountId: 5b9782f7-0fe7-ec11-82f9-0022481afc56 - name: 1350 - Iana test - value: 16 - items: [] - - accountId: 6c1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 40800 - Equipment - value: 5488.37 - items: [] - - name: Cash - value: 36998.49 - items: - - accountId: 5e1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 40100 - Checking account - value: -35824.11 - items: [] - - accountId: 601217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 40200 - Savings account - value: 2802.59 - items: [] - - accountId: 621217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 40300 - Petty Cash - value: 70020.01 - items: [] - - accountId: 5c062318-3c59-ed11-8c36-002248c5e6c0 - name: 4544 - cash bal - value: 0 - items: [] - - name: Accounts Receivable - value: 189399.22 - items: - - accountId: 641217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 40400 - Accounts Receivable - value: 129008.09 - items: [] - - accountId: 9cb05c6f-9fbd-ed11-9a88-000d3a7ea13c - name: 40450 - test3 - value: 0 - items: [] - - accountId: 7a1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 46200 - Purchase VAT 20 % EU - value: -11635.12 - items: [] - - accountId: 7c1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 46210 - Purchase VAT 5 % EU - value: 0 - items: [] - - accountId: 7e1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 46300 - Purchase VAT 20 % - value: 71992.44 - items: [] - - accountId: 801217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 46310 - Purchase VAT 5 % - value: 9.35 - items: [] - - accountId: 821217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 46320 - Purchase Full VAT 5 % - value: 10 - items: [] - - accountId: 841217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 46330 - Purchase Full VAT 20 % - value: 14.46 - items: [] - - accountId: 1bd1222e-94bd-ed11-9a88-6045bd0f961f - name: 9999 - BaleSales - value: 0 - items: [] - - name: Prepaid Expenses - value: -1040 - items: - - accountId: 661217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 40500 - Prepaid Rent - value: 0 - items: [] - - accountId: 681217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 40600 - Prepaid Insurance - value: -1040 - items: [] - - accountId: 781217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 41000 - Vendor Prepayments - value: 0 - items: [] - - name: Inventory - value: 26065.84 - items: - - accountId: 6a1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 40700 - Inventory - value: 26065.84 - items: [] - - name: Accumulated Depreciation - value: 3499 - items: - - accountId: 6e1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 40900 - Accumulated Depreciation - value: 3499 - items: [] - - name: Assets - value: 0 - items: - - accountId: 701217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 40910 - WIP Job Sales - value: 0 - items: [] - - accountId: 721217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 40920 - Invoiced Job Sales - value: 0 - items: [] - - accountId: 741217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 40940 - Accrued Job Costs - value: 0 - items: [] - - accountId: 761217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 40950 - WIP Job Costs - value: 0 - items: [] - liabilities: - name: Liabilities - value: 99721.85 - items: - - name: Current Liabilities - value: 99735.85 - items: - - accountId: 8a1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 50100 - Accounts Payable - value: 42435.31 - items: [] - - accountId: 8c1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 50200 - Purchase Discounts - value: 210.22 - items: [] - - accountId: 8e1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 50300 - Purchase Returns & Allowances - value: 0 - items: [] - - accountId: 901217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 50400 - Deferred Revenue - value: 0 - items: [] - - accountId: 921217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 50500 - Credit Cards - value: 0 - items: [] - - accountId: 9e1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 52000 - Customer Prepayments - value: 0 - items: [] - - accountId: a01217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 56100 - Sales VAT 20 % - value: 57906.98 - items: [] - - accountId: a21217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 56110 - Sales VAT 5 % - value: -816.66 - items: [] - - accountId: a41217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 56120 - Sales Full VAT 5 % - value: 0 - items: [] - - accountId: a61217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 56130 - Sales Full VAT 20 % - value: 0 - items: [] - - accountId: a81217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 56140 - VAT Payable - value: 0 - items: [] - - name: Payroll Liabilities - value: -14 - items: - - accountId: 941217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 50700 - Accrued Salaries & Wages - value: 0 - items: [] - - accountId: 961217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 51400 - Employee Benefits Payable - value: 0 - items: [] - - accountId: 981217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 51500 - Holiday Compensation Payable - value: 7 - items: [] - - accountId: 9a1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 51600 - Employees Payable - value: -21 - items: [] - - name: Long Term Liabilities - value: 0 - items: - - accountId: 9c1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 51900 - Notes Payable - value: 0 - items: [] - netAssets: 160732.41 - equity: - name: Equity - value: 160732.41 - items: - - name: Common Stock - value: 19988.72 - items: - - accountId: aa1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 60100 - Share Capital - value: 19988.72 - items: [] - - name: Retained Earnings - value: 69723.14 - items: - - accountId: ac1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 60200 - Retained Earnings - value: 69723.14 - items: [] - - name: Dividends - value: 0 - items: - - accountId: b01217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 60300 - Dividends - value: 0 - items: [] - - accountId: NO-ID-EARNINGS-SO-FAR - name: Earnings so far - value: 71020.55 - items: [] - - date: '2023-02-28T00:00:00' - assets: - name: Assets - value: 262531.32 - items: - - name: '' - value: 27.34 - items: - - accountId: c0861a65-c69f-ec11-80f1-0022481b4546 - name: 10 - Account no cat Balance Sheet - value: 27.34 - items: [] - - accountId: 9cc90e3e-843d-ed11-97e8-0022481b89f2 - name: 12345 - Income Statement and Asset - value: 0 - items: [] - - name: Equipment - value: 5504.37 - items: - - accountId: 5b9782f7-0fe7-ec11-82f9-0022481afc56 - name: 1350 - Iana test - value: 16 - items: [] - - accountId: 6c1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 40800 - Equipment - value: 5488.37 - items: [] - - name: Cash - value: 37693.84 - items: - - accountId: 5e1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 40100 - Checking account - value: -35778.16 - items: [] - - accountId: 601217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 40200 - Savings account - value: 2802.59 - items: [] - - accountId: 621217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 40300 - Petty Cash - value: 70669.41 - items: [] - - accountId: 5c062318-3c59-ed11-8c36-002248c5e6c0 - name: 4544 - cash bal - value: 0 - items: [] - - name: Accounts Receivable - value: 188021.29 - items: - - accountId: 641217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 40400 - Accounts Receivable - value: 127634.34 - items: [] - - accountId: 9cb05c6f-9fbd-ed11-9a88-000d3a7ea13c - name: 40450 - test3 - value: 0 - items: [] - - accountId: 7a1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 46200 - Purchase VAT 20 % EU - value: -11635.12 - items: [] - - accountId: 7c1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 46210 - Purchase VAT 5 % EU - value: 0 - items: [] - - accountId: 7e1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 46300 - Purchase VAT 20 % - value: 71988.26 - items: [] - - accountId: 801217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 46310 - Purchase VAT 5 % - value: 9.35 - items: [] - - accountId: 821217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 46320 - Purchase Full VAT 5 % - value: 10 - items: [] - - accountId: 841217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 46330 - Purchase Full VAT 20 % - value: 14.46 - items: [] - - accountId: 1bd1222e-94bd-ed11-9a88-6045bd0f961f - name: 9999 - BaleSales - value: 0 - items: [] - - name: Prepaid Expenses - value: -1040 - items: - - accountId: 661217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 40500 - Prepaid Rent - value: 0 - items: [] - - accountId: 681217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 40600 - Prepaid Insurance - value: -1040 - items: [] - - accountId: 781217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 41000 - Vendor Prepayments - value: 0 - items: [] - - name: Inventory - value: 28825.48 - items: - - accountId: 6a1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 40700 - Inventory - value: 28825.48 - items: [] - - name: Accumulated Depreciation - value: 3499 - items: - - accountId: 6e1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 40900 - Accumulated Depreciation - value: 3499 - items: [] - - name: Assets - value: 0 - items: - - accountId: 701217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 40910 - WIP Job Sales - value: 0 - items: [] - - accountId: 721217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 40920 - Invoiced Job Sales - value: 0 - items: [] - - accountId: 741217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 40940 - Accrued Job Costs - value: 0 - items: [] - - accountId: 761217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 40950 - WIP Job Costs - value: 0 - items: [] - liabilities: - name: Liabilities - value: 99680 - items: - - name: Current Liabilities - value: 99694 - items: - - accountId: 8a1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 50100 - Accounts Payable - value: 42459.31 - items: [] - - accountId: 8c1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 50200 - Purchase Discounts - value: 210.22 - items: [] - - accountId: 8e1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 50300 - Purchase Returns & Allowances - value: 0 - items: [] - - accountId: 901217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 50400 - Deferred Revenue - value: 0 - items: [] - - accountId: 921217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 50500 - Credit Cards - value: 0 - items: [] - - accountId: 9e1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 52000 - Customer Prepayments - value: 0 - items: [] - - accountId: a01217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 56100 - Sales VAT 20 % - value: 57841.13 - items: [] - - accountId: a21217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 56110 - Sales VAT 5 % - value: -816.66 - items: [] - - accountId: a41217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 56120 - Sales Full VAT 5 % - value: 0 - items: [] - - accountId: a61217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 56130 - Sales Full VAT 20 % - value: 0 - items: [] - - accountId: a81217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 56140 - VAT Payable - value: 0 - items: [] - - name: Payroll Liabilities - value: -14 - items: - - accountId: 941217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 50700 - Accrued Salaries & Wages - value: 0 - items: [] - - accountId: 961217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 51400 - Employee Benefits Payable - value: 0 - items: [] - - accountId: 981217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 51500 - Holiday Compensation Payable - value: 7 - items: [] - - accountId: 9a1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 51600 - Employees Payable - value: -21 - items: [] - - name: Long Term Liabilities - value: 0 - items: - - accountId: 9c1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 51900 - Notes Payable - value: 0 - items: [] - netAssets: 162851.32 - equity: - name: Equity - value: 162851.32 - items: - - name: Common Stock - value: 19988.72 - items: - - accountId: aa1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 60100 - Share Capital - value: 19988.72 - items: [] - - name: Retained Earnings - value: 69723.14 - items: - - accountId: ac1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 60200 - Retained Earnings - value: 69723.14 - items: [] - - name: Dividends - value: 0 - items: - - accountId: b01217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 60300 - Dividends - value: 0 - items: [] - - accountId: NO-ID-EARNINGS-SO-FAR - name: Earnings so far - value: 73139.46 - items: [] - mostRecentAvailableMonth: '2023-03-31T00:00:00' - earliestAvailableMonth: '2022-09-01T00:00:00' - Exact (Netherlands): - value: - reports: [] - Exact (UK): - value: - currency: GBP - reports: - - date: '2022-10-31T00:00:00Z' - assets: - name: Assets - value: -2 - items: - - accountId: cf9572e7-8afa-4339-9113-af32a66d9df9 - name: 15400 - Trade Debtors - value: -3 - items: [] - - accountId: ba382d88-a4e5-4117-8fc6-4752ee8bc93d - name: 15801 - Standard account - value: 1 - items: [] - liabilities: - name: Liabilities - value: 0 - items: [] - netAssets: -2 - equity: - name: Equities - value: -2 - items: - - accountId: PROFIT-AND-LOSS - name: Profit for this period - value: -2 - items: [] - - date: '2022-09-30T00:00:00Z' - assets: - name: Assets - value: 208 - items: - - accountId: 885ff551-664d-451b-995b-cb114c9877d0 - name: 15890 - Unallocated Cash - value: 0 - items: [] - - accountId: cf9572e7-8afa-4339-9113-af32a66d9df9 - name: 15400 - Trade Debtors - value: 78 - items: [] - - accountId: 4a4e34b5-7f62-4b64-a44a-073398b14b41 - name: 15880 - Bank - value: 130 - items: [] - liabilities: - name: Liabilities - value: 0 - items: - - accountId: 88d733a8-51e1-4ee7-b2a0-fb49879e36cc - name: 21000 - Trade Creditors - value: 0 - items: [] - netAssets: 208 - equity: - name: Equities - value: 208 - items: - - accountId: PROFIT-AND-LOSS - name: Profit for this period - value: 208 - items: [] - mostRecentAvailableMonth: '2022-10-31T00:00:00' - earliestAvailableMonth: '2022-04-01T00:00:00' - FreshBooks: - value: - currency: GBP - reports: - - date: '2023-04-30T00:00:00' - assets: - name: assets - value: 38416.28 - items: - - accountId: '167679' - name: Cash - value: -3011.5 - items: - - accountId: '291721' - name: Petty Cash - value: -3022.5 - items: [] - - accountId: '3427097' - name: Cash - value: 11 - items: [] - - accountId: '67357' - name: Accounts Receivable - value: 41445.53 - items: - - accountId: '128611' - name: Accounts Receivable - value: 41445.53 - items: [] - - accountId: '2761661' - name: Current Asset - value: -11 - items: - - accountId: '3420060' - name: Prepaid Expenses - value: -11 - items: [] - - accountId: '2288207' - name: 'Property, Plant, and Equipment' - value: -6.75 - items: - - accountId: '2792069' - name: Office Equipment - value: -6.75 - items: [] - liabilities: - name: liabilities - value: 9310.72 - items: - - accountId: '2288209' - name: Accounts Payable - value: 460.39 - items: - - accountId: '3385145' - name: Accounts Payable - value: 460.39 - items: [] - - accountId: '67361' - name: Taxes Payable - value: 36.75 - items: - - accountId: '128615' - name: VAT - value: -108.9 - items: [] - - accountId: '3380553' - name: Customs Duty - value: -2.5 - items: [] - - accountId: '3380555' - name: Excise Duty - value: -54.45 - items: [] - - accountId: '3384241' - name: tax 50 - value: 0.7 - items: [] - - accountId: '3384293' - name: helloabdul - value: 86.03 - items: [] - - accountId: '3384425' - name: hello2 - value: 114.76 - items: [] - - accountId: '3420099' - name: VAT1 - value: 1.11 - items: [] - - accountId: '237025' - name: Customer Credit - value: 8813.58 - items: - - accountId: '392937' - name: Customer Credit - value: 8813.58 - items: [] - netAssets: 29105.56 - equity: - name: equity - value: 29105.56 - items: - - accountId: '' - name: Net Income - value: 29105.56 - items: [] - - date: '2023-03-31T00:00:00' - assets: - name: assets - value: 38416.28 - items: - - accountId: '167679' - name: Cash - value: -3011.5 - items: - - accountId: '291721' - name: Petty Cash - value: -3022.5 - items: [] - - accountId: '3427097' - name: Cash - value: 11 - items: [] - - accountId: '67357' - name: Accounts Receivable - value: 41445.53 - items: - - accountId: '128611' - name: Accounts Receivable - value: 41445.53 - items: [] - - accountId: '2761661' - name: Current Asset - value: -11 - items: - - accountId: '3420060' - name: Prepaid Expenses - value: -11 - items: [] - - accountId: '2288207' - name: 'Property, Plant, and Equipment' - value: -6.75 - items: - - accountId: '2792069' - name: Office Equipment - value: -6.75 - items: [] - liabilities: - name: liabilities - value: 9310.72 - items: - - accountId: '2288209' - name: Accounts Payable - value: 460.39 - items: - - accountId: '3385145' - name: Accounts Payable - value: 460.39 - items: [] - - accountId: '67361' - name: Taxes Payable - value: 36.75 - items: - - accountId: '128615' - name: VAT - value: -108.9 - items: [] - - accountId: '3380553' - name: Customs Duty - value: -2.5 - items: [] - - accountId: '3380555' - name: Excise Duty - value: -54.45 - items: [] - - accountId: '3384241' - name: tax 50 - value: 0.7 - items: [] - - accountId: '3384293' - name: helloabdul - value: 86.03 - items: [] - - accountId: '3384425' - name: hello2 - value: 114.76 - items: [] - - accountId: '3420099' - name: VAT1 - value: 1.11 - items: [] - - accountId: '237025' - name: Customer Credit - value: 8813.58 - items: - - accountId: '392937' - name: Customer Credit - value: 8813.58 - items: [] - netAssets: 29105.56 - equity: - name: equity - value: 29105.56 - items: - - accountId: '' - name: Net Income - value: 29105.56 - items: [] - mostRecentAvailableMonth: '2023-04-30T00:00:00' - earliestAvailableMonth: '2022-10-01T00:00:00' - KashFlow: - value: - currency: GBP - reports: - - date: '2022-09-30T00:00:00' - assets: - name: Assets - value: 109979.14 - items: - - name: Fixed Assets - value: 923.62 - items: - - accountId: '29362903' - name: FIXED ASSET CODE (SALES) - value: -100 - items: [] - - accountId: '29362906' - name: FIXED ASSET CODE (OUTGOING) - value: 1006 - items: [] - - accountId: '29358753' - name: TESTCODE - value: 9.29 - items: [] - - accountId: '21481884' - name: Computer equipment cost - value: 8.33 - items: [] - - name: Current Assets - value: 109055.52 - items: - - accountId: '21481886' - name: Trade debtors - value: 67166.51 - items: [] - - accountId: '636062' - name: Current account - value: 425.33 - items: [] - - accountId: '680495' - name: Test Account - value: 38003 - items: [] - - accountId: '684416' - name: Tide Account 2 - value: 303.22 - items: [] - - accountId: '684418' - name: New Tide Account - value: 303.22 - items: [] - - accountId: '686687' - name: Pete Test 02/05 - value: 301.64 - items: [] - - accountId: '696204' - name: Go Live - value: 9 - items: [] - - accountId: '696740' - name: Production Test - value: 0.08 - items: [] - - accountId: '707236' - name: Dave Push Test uat - value: 123.41 - items: [] - - accountId: '707240' - name: Dave Push Test integ - value: 139.54 - items: [] - - accountId: '813944' - name: Please dont balance - value: 110 - items: [] - - accountId: '765768' - name: 16th Account - value: 326 - items: [] - - accountId: '809283' - name: abduls company credit card - value: 13.85 - items: [] - - accountId: '809318' - name: ASSET ACCOUNT - value: 110 - items: [] - - accountId: '776582' - name: VandanaKasAcc1 - value: 20 - items: [] - - accountId: '780580' - name: ABRAHAM2 - value: 40 - items: [] - - accountId: '780605' - name: AbeVanTest3 - value: 10 - items: [] - - accountId: '780619' - name: VandanaAccTest4 - value: 92.63 - items: [] - - accountId: '780669' - name: NewXeroAccount10 - value: 21 - items: [] - - accountId: '780672' - name: NewKasAccount10 - value: 111 - items: [] - - accountId: '809742' - name: HSBBBBB - value: 111 - items: [] - - accountId: '833089' - name: AAAAA - value: 260 - items: [] - - accountId: '21481890' - name: Output VAT - value: 511.04 - items: [] - - accountId: '21481891' - name: Input VAT - value: 504.05 - items: [] - - accountId: '21481895' - name: CIS deductions - value: 40 - items: [] - liabilities: - name: Liabilities - value: 80187.1 - items: - - name: Current Liabilities - value: 80187.1 - items: - - accountId: '21481902' - name: Other - value: 43799.56 - items: [] - - accountId: '21481888' - name: Cash in hand - value: 317.07 - items: [] - - accountId: '612964' - name: Bank account - value: 33011.08 - items: [] - - accountId: '687106' - name: May 4th Account - value: 926.81 - items: [] - - accountId: '21481892' - name: VAT control account - value: 322 - items: [] - - accountId: '21481893' - name: Trade creditors - value: 1618.27 - items: [] - - accountId: '29553868' - name: Creditors Control Account - value: 192.31 - items: [] - netAssets: 29792.04 - equity: - name: Equity - value: 29792.05 - items: - - name: Capital and Reserves - value: 29792.05 - items: - - accountId: '21481901' - name: Retained profit/loss - value: 31402.01 - items: [] - - accountId: '0' - name: P&L Account - value: -1609.96 - items: [] - - date: '2022-08-31T00:00:00' - assets: - name: Assets - value: 109979.14 - items: - - name: Fixed Assets - value: 923.62 - items: - - accountId: '29362903' - name: FIXED ASSET CODE (SALES) - value: -100 - items: [] - - accountId: '29362906' - name: FIXED ASSET CODE (OUTGOING) - value: 1006 - items: [] - - accountId: '29358753' - name: TESTCODE - value: 9.29 - items: [] - - accountId: '21481884' - name: Computer equipment cost - value: 8.33 - items: [] - - name: Current Assets - value: 109055.52 - items: - - accountId: '21481886' - name: Trade debtors - value: 67166.51 - items: [] - - accountId: '636062' - name: Current account - value: 425.33 - items: [] - - accountId: '680495' - name: Test Account - value: 38003 - items: [] - - accountId: '684416' - name: Tide Account 2 - value: 303.22 - items: [] - - accountId: '684418' - name: New Tide Account - value: 303.22 - items: [] - - accountId: '686687' - name: Pete Test 02/05 - value: 301.64 - items: [] - - accountId: '696204' - name: Go Live - value: 9 - items: [] - - accountId: '696740' - name: Production Test - value: 0.08 - items: [] - - accountId: '707236' - name: Dave Push Test uat - value: 123.41 - items: [] - - accountId: '707240' - name: Dave Push Test integ - value: 139.54 - items: [] - - accountId: '813944' - name: Please dont balance - value: 110 - items: [] - - accountId: '765768' - name: 16th Account - value: 326 - items: [] - - accountId: '809283' - name: abduls company credit card - value: 13.85 - items: [] - - accountId: '809318' - name: ASSET ACCOUNT - value: 110 - items: [] - - accountId: '776582' - name: VandanaKasAcc1 - value: 20 - items: [] - - accountId: '780580' - name: ABRAHAM2 - value: 40 - items: [] - - accountId: '780605' - name: AbeVanTest3 - value: 10 - items: [] - - accountId: '780619' - name: VandanaAccTest4 - value: 92.63 - items: [] - - accountId: '780669' - name: NewXeroAccount10 - value: 21 - items: [] - - accountId: '780672' - name: NewKasAccount10 - value: 111 - items: [] - - accountId: '809742' - name: HSBBBBB - value: 111 - items: [] - - accountId: '833089' - name: AAAAA - value: 260 - items: [] - - accountId: '21481890' - name: Output VAT - value: 511.04 - items: [] - - accountId: '21481891' - name: Input VAT - value: 504.05 - items: [] - - accountId: '21481895' - name: CIS deductions - value: 40 - items: [] - liabilities: - name: Liabilities - value: 80187.1 - items: - - name: Current Liabilities - value: 80187.1 - items: - - accountId: '21481902' - name: Other - value: 43799.56 - items: [] - - accountId: '21481888' - name: Cash in hand - value: 317.07 - items: [] - - accountId: '612964' - name: Bank account - value: 33011.08 - items: [] - - accountId: '687106' - name: May 4th Account - value: 926.81 - items: [] - - accountId: '21481892' - name: VAT control account - value: 322 - items: [] - - accountId: '21481893' - name: Trade creditors - value: 1618.27 - items: [] - - accountId: '29553868' - name: Creditors Control Account - value: 192.31 - items: [] - netAssets: 29792.04 - equity: - name: Equity - value: 29792.05 - items: - - name: Capital and Reserves - value: 29792.05 - items: - - accountId: '21481901' - name: Retained profit/loss - value: 31402.01 - items: [] - - accountId: '0' - name: P&L Account - value: -1609.96 - items: [] - mostRecentAvailableMonth: '2022-09-30T00:00:00' - earliestAvailableMonth: '2022-03-01T00:00:00' - MYOB AccountRight and Essentials: - value: - currency: GBP - reports: - - date: '2022-11-30T00:00:00' - assets: - name: Assets - value: 0 - items: [] - liabilities: - name: Liabilities - value: 0 - items: [] - netAssets: 0 - equity: - name: Equity - value: 0 - items: [] - - date: '2022-10-31T00:00:00' - assets: - name: Assets - value: 0 - items: [] - liabilities: - name: Liabilities - value: 0 - items: [] - netAssets: 0 - equity: - name: Equity - value: 0 - items: [] - mostRecentAvailableMonth: '2022-11-30T00:00:00' - earliestAvailableMonth: '2022-05-01T00:00:00' - Oracle NetSuite: - value: - currency: GBP - reports: - - date: '2023-05-31T00:00:00' - assets: - accountId: '' - name: Assets - value: 703 - items: - - accountId: '119' - name: Accounts Receivable - value: -565 - items: [] - - accountId: '122' - name: Undeposited Funds - value: 10 - items: [] - - accountId: '211' - name: VAT on Purchases - value: 24 - items: [] - - accountId: '716' - name: Inventory In Transit - value: 120 - items: [] - - accountId: '825' - name: Codat Europe Bank - value: 558.22 - items: - - accountId: '825' - name: Codat Europe Bank - value: 558.22 - items: [] - - accountId: '844' - name: Asset account test 2 - value: 555.78 - items: - - accountId: '844' - name: Asset account test 2 - value: 555.78 - items: [] - liabilities: - accountId: '' - name: Liabilities - value: 635.55 - items: - - accountId: '111' - name: Accounts Payable - value: 635.55 - items: - - accountId: '111' - name: Accounts Payable - value: 635.55 - items: [] - netAssets: 67.45 - equity: - accountId: '' - name: Equity - value: 67.45 - items: - - accountId: '851' - name: Demo account equity - value: -11 - items: [] - - name: Net Income - value: 78.45 - items: [] - - date: '2023-04-30T00:00:00' - assets: - accountId: '' - name: Assets - value: 703 - items: - - accountId: '119' - name: Accounts Receivable - value: -565 - items: [] - - accountId: '122' - name: Undeposited Funds - value: 10 - items: [] - - accountId: '211' - name: VAT on Purchases - value: 24 - items: [] - - accountId: '716' - name: Inventory In Transit - value: 120 - items: [] - - accountId: '825' - name: Codat Europe Bank - value: 558.22 - items: - - accountId: '825' - name: Codat Europe Bank - value: 558.22 - items: [] - - accountId: '844' - name: Asset account test 2 - value: 555.78 - items: - - accountId: '844' - name: Asset account test 2 - value: 555.78 - items: [] - liabilities: - accountId: '' - name: Liabilities - value: 635.55 - items: - - accountId: '111' - name: Accounts Payable - value: 635.55 - items: - - accountId: '111' - name: Accounts Payable - value: 635.55 - items: [] - netAssets: 67.45 - equity: - accountId: '' - name: Equity - value: 67.45 - items: - - accountId: '851' - name: Demo account equity - value: -11 - items: [] - - name: Net Income - value: 78.45 - items: [] - mostRecentAvailableMonth: '2023-05-31T00:00:00' - earliestAvailableMonth: '2022-11-01T00:00:00' - QuickBooks Desktop: - value: - currency: GBP - reports: - - date: '2023-04-30T00:00:00' - assets: - name: ASSETS - value: 549695.86 - items: - - name: Current Assets - value: 81821.64 - items: - - name: Checking/Savings - value: 57007.53 - items: - - accountId: 20000-933270541 - name: 10100 � Checking - value: 40814.11 - items: [] - - accountId: 30000-933270541 - name: 10300 � Savings - value: 15693.42 - items: [] - - accountId: 550001-1071509830 - name: 10400 � Petty Cash - value: 500 - items: [] - - name: Accounts Receivable - value: 7719.99 - items: - - accountId: 40000-933270541 - name: 11000 � Accounts Receivable - value: 7719.99 - items: [] - - name: Other Current Assets - value: 17094.12 - items: - - accountId: 60000-933270541 - name: 12100 � Inventory Asset - value: 13177.4 - items: [] - - accountId: 50000-933270541 - name: 12800 � Employee Advances - value: 770 - items: [] - - accountId: 370001-1071514466 - name: 13100 � Pre-paid Insurance - value: 1350 - items: [] - - accountId: 70000-933270541 - name: 13400 � Retainage Receivable - value: 1796.72 - items: [] - - name: Fixed Assets - value: 466154.22 - items: - - accountId: 5F0000-1197755449 - name: 15000 � Furniture and Equipment - value: 22826 - items: [] - - accountId: 90000-933270541 - name: 15100 � Vehicles - value: 78936.91 - items: [] - - accountId: 600000-1197756365 - name: 15200 � Buildings and Improvements - value: 325000 - items: [] - - accountId: 590000-1071511920 - name: 15300 � Construction Equipment - value: 15300 - items: [] - - accountId: 610000-1197756496 - name: 16900 � Land - value: 90000 - items: [] - - accountId: 620000-1197756666 - name: 17000 � Accumulated Depreciation - value: -65908.69 - items: [] - - name: Other Assets - value: 1720 - items: - - accountId: 80000063-1197709076 - name: 18700 � Security Deposits - value: 1720 - items: [] - liabilities: - name: Liabilities - value: 451499.2 - items: - - name: Current Liabilities - value: 6718.02 - items: - - name: Accounts Payable - value: 5000 - items: - - accountId: C0000-933270541 - name: 20000 � Accounts Payable - value: 5000 - items: [] - - name: Credit Cards - value: 1400 - items: - - accountId: 570000-1071509253 - name: 20500 � QuickBooks Credit Card - value: 1400 - items: [] - - name: Other Current Liabilities - value: 318.02 - items: - - accountId: 100000-933270541 - name: 25500 � Sales Tax Payable - value: 318.02 - items: [] - - name: Long Term Liabilities - value: 444781.18 - items: - - accountId: 120000-933270541 - name: 23000 � Loan - Vehicles (Van) - value: 19932.64 - items: [] - - accountId: 80000075-1197719780 - name: 23100 � Loan - Vehicles (Utility Truck) - value: 19936.91 - items: [] - - accountId: 80000076-1197719828 - name: 23200 � Loan - Vehicles (Pickup Truck) - value: 22641 - items: [] - - accountId: 5B0000-1197774305 - name: 28100 � Loan - Construction Equipment - value: 14343.11 - items: [] - - accountId: 80000068-1197710590 - name: 28200 � Loan - Furniture/Office Equip - value: 21000 - items: [] - - accountId: 8000008F-1197954502 - name: 28700 � Note Payable - Bank of Anycity - value: 50644.52 - items: [] - - accountId: 80000067-1197709946 - name: 28900 � Mortgage - Office Building - value: 296283 - items: [] - netAssets: 98196.66 - equity: - name: Equity - value: 98196.66 - items: - - accountId: 10000-933270541 - name: 30000 � Opening Bal Equity - value: 38773.75 - items: [] - - accountId: 80000066-1197709715 - name: 30100 � Capital Stock - value: 500 - items: [] - - accountId: 160000-933270541 - name: 32000 � Retained Earnings - value: 36213.97 - items: [] - - name: Net Income - value: 22708.94 - items: [] - - date: '2023-03-31T00:00:00' - assets: - name: ASSETS - value: 547971.05 - items: - - name: Current Assets - value: 80096.83 - items: - - name: Checking/Savings - value: 45769.39 - items: - - accountId: 20000-933270541 - name: 10100 � Checking - value: 29575.97 - items: [] - - accountId: 30000-933270541 - name: 10300 � Savings - value: 15693.42 - items: [] - - accountId: 550001-1071509830 - name: 10400 � Petty Cash - value: 500 - items: [] - - name: Accounts Receivable - value: 16228.47 - items: - - accountId: 40000-933270541 - name: 11000 � Accounts Receivable - value: 16228.47 - items: [] - - name: Other Current Assets - value: 18098.97 - items: - - accountId: 60000-933270541 - name: 12100 � Inventory Asset - value: 13507.25 - items: [] - - accountId: 50000-933270541 - name: 12800 � Employee Advances - value: 770 - items: [] - - accountId: 370001-1071514466 - name: 13100 � Pre-paid Insurance - value: 2025 - items: [] - - accountId: 70000-933270541 - name: 13400 � Retainage Receivable - value: 1796.72 - items: [] - - name: Fixed Assets - value: 466154.22 - items: - - accountId: 5F0000-1197755449 - name: 15000 � Furniture and Equipment - value: 22826 - items: [] - - accountId: 90000-933270541 - name: 15100 � Vehicles - value: 78936.91 - items: [] - - accountId: 600000-1197756365 - name: 15200 � Buildings and Improvements - value: 325000 - items: [] - - accountId: 590000-1071511920 - name: 15300 � Construction Equipment - value: 15300 - items: [] - - accountId: 610000-1197756496 - name: 16900 � Land - value: 90000 - items: [] - - accountId: 620000-1197756666 - name: 17000 � Accumulated Depreciation - value: -65908.69 - items: [] - - name: Other Assets - value: 1720 - items: - - accountId: 80000063-1197709076 - name: 18700 � Security Deposits - value: 1720 - items: [] - liabilities: - name: Liabilities - value: 453300.75 - items: - - name: Current Liabilities - value: 5714 - items: - - name: Accounts Payable - value: 5714 - items: - - accountId: C0000-933270541 - name: 20000 � Accounts Payable - value: 5714 - items: [] - - name: Long Term Liabilities - value: 447586.75 - items: - - accountId: 120000-933270541 - name: 23000 � Loan - Vehicles (Van) - value: 20376.27 - items: [] - - accountId: 80000075-1197719780 - name: 23100 � Loan - Vehicles (Utility Truck) - value: 19936.91 - items: [] - - accountId: 80000076-1197719828 - name: 23200 � Loan - Vehicles (Pickup Truck) - value: 22641 - items: [] - - accountId: 5B0000-1197774305 - name: 28100 � Loan - Construction Equipment - value: 14343.11 - items: [] - - accountId: 80000068-1197710590 - name: 28200 � Loan - Furniture/Office Equip - value: 21000 - items: [] - - accountId: 8000008F-1197954502 - name: 28700 � Note Payable - Bank of Anycity - value: 53006.46 - items: [] - - accountId: 80000067-1197709946 - name: 28900 � Mortgage - Office Building - value: 296283 - items: [] - netAssets: 94670.3 - equity: - name: Equity - value: 94670.3 - items: - - accountId: 10000-933270541 - name: 30000 � Opening Bal Equity - value: 38773.75 - items: [] - - accountId: 80000066-1197709715 - name: 30100 � Capital Stock - value: 500 - items: [] - - accountId: 160000-933270541 - name: 32000 � Retained Earnings - value: 36213.97 - items: [] - - name: Net Income - value: 19182.58 - items: [] - mostRecentAvailableMonth: '2023-04-30T00:00:00' - earliestAvailableMonth: '2022-10-01T00:00:00' - QuickBooks Online Sandbox: - value: - currency: GBP - reports: - - date: '2023-04-30T00:00:00' - assets: - name: Assets - value: 3856584.88 - items: - - name: Fixed Asset - value: 2766.17 - items: - - accountId: '3' - name: Accumulated Depreciation - value: -399.96 - items: [] - - accountId: '5' - name: Furniture and Equipment - value: 2750 - items: [] - - accountId: '7' - name: Leasehold Improvements - value: -99.12 - items: [] - - accountId: '9' - name: Vehicles - value: 515.25 - items: [] - - name: Bank - value: 520021.91 - items: - - accountId: '114' - name: 0983741 SamplePushBankAccount2 - value: 40.5 - items: [] - - accountId: '175' - name: 1 Push-FrontDoor-Test-1 - value: 112 - items: [] - - accountId: '134' - name: 1001001 Revenue - value: -235.34 - items: [] - - accountId: '110' - name: 101 Push Refactor Test - value: -149.4 - items: [] - - accountId: '102' - name: 10101 IntegrationTest - value: -1444.14 - items: [] - - accountId: '103' - name: 101011 testdemo1 - value: 18.6 - items: [] - - accountId: '104' - name: 101012 Dave Test - value: -5.4 - items: [] - - accountId: '105' - name: 101013 Push Test - value: 5.4 - items: [] - - accountId: '107' - name: 11 aaa - value: 23610.49 - items: [] - - accountId: '115' - name: '1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111' - value: -9000.81 - items: [] - - accountId: '100' - name: 1131 Savings2 - value: 30281.54 - items: [] - - accountId: '109' - name: 122 Generic Push Test - value: -1079.05 - items: [] - - accountId: '101' - name: 123 Test Savings - value: 2293.37 - items: [] - - accountId: '111' - name: 123123 Steve Test - value: -1104.2 - items: [] - - accountId: '124' - name: 123175 Nominal Card - value: -2013.04 - items: [] - - accountId: '137' - name: 1232 test 55 - value: 1.29 - items: [] - - accountId: '122' - name: 1234567 Card3million - value: -85 - items: [] - - accountId: '176' - name: 12345671 testName_1 - value: 17546.08 - items: [] - - accountId: '165' - name: 123564 Huws testing name - value: -2 - items: [] - - accountId: '159' - name: 1533465364 Huws test name - value: 282.21 - items: [] - - accountId: '161' - name: 160894 Tom Automated Tests ExpensesAccount - value: -15900.6 - items: [] - - accountId: '108' - name: 19191 New Push Operation Test - value: 317.54 - items: [] - - accountId: '139' - name: 2501 Barclays - value: 211127.4 - items: [] - - accountId: '140' - name: 2502 HSBC - value: 109500.4 - items: [] - - accountId: '141' - name: 2503 BoA - value: 128050.89 - items: [] - - accountId: '138' - name: 4234 test55 - value: -29.28 - items: [] - - accountId: '106' - name: aa aa - value: -5.4 - items: [] - - accountId: '129' - name: Account Test 11 - value: 33.93 - items: [] - - accountId: '147' - name: Bank EUR - value: 188.5 - items: [] - - accountId: '173' - name: Cash on hand - value: 2655 - items: [] - - accountId: '178' - name: Citi - value: 189.11 - items: [] - - accountId: '81' - name: Current - value: 24513.64 - items: [] - - accountId: '177' - name: HSBC HKD - value: -39.39 - items: [] - - accountId: '169' - name: Matt Ager Test UI Parent Account - value: 75 - items: [] - - accountId: '89' - name: TestBankAccount_1 - value: 272.07 - items: [] - - name: Accounts Receivable - value: 3074459.19 - items: - - accountId: '70' - name: Debtors - value: 3041138.07 - items: [] - - accountId: '80' - name: Debtors - USD - value: 33315.2 - items: [] - - accountId: '125' - name: Debtors 2 - value: -7.45 - items: [] - - accountId: '88' - name: TestBankAccount - value: 13.37 - items: [] - - name: Other Current Asset - value: 259337.61 - items: - - accountId: '98' - name: Account_001 - value: 545.86 - items: [] - - accountId: '185' - name: Loans To Officers - value: 1200 - items: [] - - accountId: '179' - name: Loans to Others - value: 58.2 - items: [] - - accountId: '171' - name: Matt Ager Test UI Parent Account 1 - value: 11 - items: [] - - accountId: '168' - name: Other current assets - value: 10 - items: [] - - accountId: '65' - name: Stock Asset - value: 36524 - items: [] - - accountId: '150' - name: stock test - value: 10 - items: [] - - accountId: '77' - name: Uncategorised Asset - value: 47.8 - items: [] - - accountId: '85' - name: Undeposited Funds - value: 220930.75 - items: [] - liabilities: - name: Liabilities - value: 169469.71 - items: - - name: Accounts Payable - value: 93748.74 - items: - - accountId: '71' - name: Creditors - value: 93635.4 - items: [] - - accountId: '74' - name: Creditors - HKD - value: 113.34 - items: [] - - name: Credit Card - value: 10841.34 - items: - - accountId: '142' - name: 2504 Amex - CC - value: 9957.72 - items: [] - - accountId: '126' - name: Credit Card 2 - value: -71.91 - items: [] - - accountId: '183' - name: Expense Automated Tests Credit Card - value: -2469.91 - items: [] - - accountId: '57' - name: Visa Credit Card - value: 3425.44 - items: [] - - name: Other Current Liability - value: 10001.33 - items: - - accountId: '118' - name: Current Liabilities - value: 82.12 - items: [] - - accountId: '157' - name: Loan Payable - Kay's Bank - value: 12726 - items: [] - - accountId: '187' - name: Payroll Clearing - value: -3458.3 - items: [] - - accountId: '53' - name: VAT Control - value: -4738.49 - items: [] - - accountId: '54' - name: VAT Suspense - value: 5390 - items: [] - - name: Long Term Liability - value: 54878.3 - items: - - accountId: '158' - name: Loan Long term borrowings - Jay's Bank - value: 35630 - items: [] - - accountId: '84' - name: Long term borrowings - value: -1100 - items: [] - - accountId: '63' - name: Note Payable - value: 19348.3 - items: [] - - accountId: '86' - name: Accruals and deferred income - value: 1000 - items: [] - netAssets: 3687115.17 - equity: - name: Equity - value: 3687115.17 - items: - - name: Equity - value: 3697585.43 - items: - - accountId: '55' - name: Opening Balance Equity - value: 966720.56 - items: [] - - accountId: '2' - name: Retained Earnings - value: 2706364.87 - items: [] - - accountId: '61' - name: Owner's Equity - Contributions - value: 25500 - items: [] - - accountId: '62' - name: Owner's Equity - Draws - value: -1000 - items: [] - - name: Profit for the year - value: -10470.26 - items: [] - - date: '2023-03-31T00:00:00' - assets: - name: Assets - value: 4385453.25 - items: - - name: Fixed Asset - value: 2766.17 - items: - - accountId: '3' - name: Accumulated Depreciation - value: -399.96 - items: [] - - accountId: '5' - name: Furniture and Equipment - value: 2750 - items: [] - - accountId: '7' - name: Leasehold Improvements - value: -99.12 - items: [] - - accountId: '9' - name: Vehicles - value: 515.25 - items: [] - - name: Bank - value: 1048102.14 - items: - - accountId: '114' - name: 0983741 SamplePushBankAccount2 - value: 40.5 - items: [] - - accountId: '175' - name: 1 Push-FrontDoor-Test-1 - value: 112 - items: [] - - accountId: '134' - name: 1001001 Revenue - value: -235.34 - items: [] - - accountId: '110' - name: 101 Push Refactor Test - value: -149.4 - items: [] - - accountId: '102' - name: 10101 IntegrationTest - value: -1444.14 - items: [] - - accountId: '103' - name: 101011 testdemo1 - value: 18.6 - items: [] - - accountId: '104' - name: 101012 Dave Test - value: -5.4 - items: [] - - accountId: '105' - name: 101013 Push Test - value: 5.4 - items: [] - - accountId: '107' - name: 11 aaa - value: 23610.49 - items: [] - - accountId: '115' - name: '1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111' - value: -9000.81 - items: [] - - accountId: '100' - name: 1131 Savings2 - value: 30281.54 - items: [] - - accountId: '109' - name: 122 Generic Push Test - value: -1079.05 - items: [] - - accountId: '101' - name: 123 Test Savings - value: 2293.37 - items: [] - - accountId: '111' - name: 123123 Steve Test - value: -1104.2 - items: [] - - accountId: '124' - name: 123175 Nominal Card - value: -2013.04 - items: [] - - accountId: '137' - name: 1232 test 55 - value: 1.29 - items: [] - - accountId: '122' - name: 1234567 Card3million - value: -85 - items: [] - - accountId: '176' - name: 12345671 testName_1 - value: 14029.28 - items: [] - - accountId: '165' - name: 123564 Huws testing name - value: -2 - items: [] - - accountId: '159' - name: 1533465364 Huws test name - value: 282.21 - items: [] - - accountId: '161' - name: 160894 Tom Automated Tests ExpensesAccount - value: -11410.5 - items: [] - - accountId: '108' - name: 19191 New Push Operation Test - value: 317.54 - items: [] - - accountId: '139' - name: 2501 Barclays - value: 741293.8 - items: [] - - accountId: '140' - name: 2502 HSBC - value: 109155.93 - items: [] - - accountId: '141' - name: 2503 BoA - value: 128055.89 - items: [] - - accountId: '138' - name: 4234 test55 - value: -14.28 - items: [] - - accountId: '106' - name: aa aa - value: -5.4 - items: [] - - accountId: '129' - name: Account Test 11 - value: 33.93 - items: [] - - accountId: '147' - name: Bank EUR - value: 188.5 - items: [] - - accountId: '173' - name: Cash on hand - value: -5 - items: [] - - accountId: '178' - name: Citi - value: 189.11 - items: [] - - accountId: '81' - name: Current - value: 24438.64 - items: [] - - accountId: '177' - name: HSBC HKD - value: -39.39 - items: [] - - accountId: '169' - name: Matt Ager Test UI Parent Account - value: 75 - items: [] - - accountId: '89' - name: TestBankAccount_1 - value: 272.07 - items: [] - - name: Accounts Receivable - value: 3075173.68 - items: - - accountId: '70' - name: Debtors - value: 3041854.11 - items: [] - - accountId: '80' - name: Debtors - USD - value: 33315.2 - items: [] - - accountId: '125' - name: Debtors 2 - value: -9 - items: [] - - accountId: '88' - name: TestBankAccount - value: 13.37 - items: [] - - name: Other Current Asset - value: 259411.26 - items: - - accountId: '98' - name: Account_001 - value: 545.86 - items: [] - - accountId: '185' - name: Loans To Officers - value: 1200 - items: [] - - accountId: '179' - name: Loans to Others - value: 58.2 - items: [] - - accountId: '171' - name: Matt Ager Test UI Parent Account 1 - value: 11 - items: [] - - accountId: '168' - name: Other current assets - value: 10 - items: [] - - accountId: '65' - name: Stock Asset - value: 36533.45 - items: [] - - accountId: '150' - name: stock test - value: 10 - items: [] - - accountId: '77' - name: Uncategorised Asset - value: 47.8 - items: [] - - accountId: '85' - name: Undeposited Funds - value: 220994.95 - items: [] - liabilities: - name: Liabilities - value: 699368.94 - items: - - name: Accounts Payable - value: 93773.74 - items: - - accountId: '71' - name: Creditors - value: 93660.4 - items: [] - - accountId: '74' - name: Creditors - HKD - value: 113.34 - items: [] - - name: Credit Card - value: 12226.79 - items: - - accountId: '142' - name: 2504 Amex - CC - value: 11004.72 - items: [] - - accountId: '126' - name: Credit Card 2 - value: -71.91 - items: [] - - accountId: '183' - name: Expense Automated Tests Credit Card - value: -2471.46 - items: [] - - accountId: '57' - name: Visa Credit Card - value: 3765.44 - items: [] - - name: Other Current Liability - value: 538490.11 - items: - - accountId: '118' - name: Current Liabilities - value: 72.12 - items: [] - - accountId: '157' - name: Loan Payable - Kay's Bank - value: 12726 - items: [] - - accountId: '187' - name: Payroll Clearing - value: -3458.3 - items: [] - - accountId: '53' - name: VAT Control - value: -3792.71 - items: [] - - accountId: '54' - name: VAT Suspense - value: 532943 - items: [] - - name: Long Term Liability - value: 54878.3 - items: - - accountId: '158' - name: Loan Long term borrowings - Jay's Bank - value: 35630 - items: [] - - accountId: '84' - name: Long term borrowings - value: -1100 - items: [] - - accountId: '63' - name: Note Payable - value: 19348.3 - items: [] - - accountId: '86' - name: Accruals and deferred income - value: 1000 - items: [] - netAssets: 3686084.31 - equity: - name: Equity - value: 3686084.31 - items: - - name: Equity - value: 3697585.43 - items: - - accountId: '55' - name: Opening Balance Equity - value: 966720.56 - items: [] - - accountId: '2' - name: Retained Earnings - value: 2706364.87 - items: [] - - accountId: '61' - name: Owner's Equity - Contributions - value: 25500 - items: [] - - accountId: '62' - name: Owner's Equity - Draws - value: -1000 - items: [] - - name: Profit for the year - value: -11501.12 - items: [] - mostRecentAvailableMonth: '2023-04-30T00:00:00' - earliestAvailableMonth: '2022-10-01T00:00:00' - QuickBooks Online: - value: - reports: [] - Sage 50 (UK): - value: - currency: GBP - reports: - - date: '2023-03-31T00:00:00' - assets: - name: Assets - value: 239322.69 - items: - - name: Fixed Assets - value: 81530.08 - items: - - name: Plant and Machinery - value: 46515 - items: - - accountId: '0020' - name: Plant and Machinery - value: 50000 - items: [] - - accountId: '0021' - name: Plant/Machinery Depreciation - value: -3485 - items: [] - - name: Furniture and Fixtures - value: 16807 - items: - - accountId: '0040' - name: Furniture and Fixtures - value: 16900 - items: [] - - accountId: '0041' - name: Furniture/Fixture Depreciation - value: -93 - items: [] - - name: Motor Vehicles - value: 18208.08 - items: - - accountId: '0051' - name: Motor Vehicles Depreciation - value: -2091.92 - items: [] - - accountId: '0050' - name: Motor Vehicles - value: 20300 - items: [] - - name: Current Assets - value: 157792.61 - items: - - name: Stock - value: 35000 - items: - - accountId: '1001' - name: Stock - value: 35000 - items: [] - - name: Debtors - value: 90640.61 - items: - - accountId: '1100' - name: Debtors Control Account - value: 90640.61 - items: [] - - accountId: '1103' - name: Prepayments - value: 0 - items: [] - - name: Deposits and Cash - value: 5148.01 - items: - - accountId: '1220' - name: Building Society Account - value: 507.53 - items: [] - - accountId: '1230' - name: Petty Cash - value: 1130.48 - items: [] - - accountId: '1210' - name: Bank Deposit Account - value: 3510 - items: [] - - name: VAT Liability - value: 27003.99 - items: - - accountId: '2201' - name: Purchase Tax Control Account - value: 12203.64 - items: [] - - accountId: '2202' - name: VAT Liability - value: 14800.35 - items: [] - liabilities: - name: Liabilities - value: 97996.05 - items: - - name: Current Liabilities - value: 84941.05 - items: - - name: Bank Account - value: 20091.04 - items: - - accountId: '1200' - name: Bank Current Account - value: 20091.04 - items: [] - - name: Credit Card (Creditors) - value: -9358.97 - items: - - accountId: '1240' - name: Company Credit Card - value: -9358.97 - items: [] - - name: 'Creditors : Short Term' - value: 44502.68 - items: - - accountId: '2100' - name: Creditors Control Account - value: 44502.68 - items: [] - - accountId: '2109' - name: Accruals - value: 0 - items: [] - - name: VAT Liability - value: 22182.53 - items: - - accountId: '2200' - name: Sales Tax Control Account - value: 22182.53 - items: [] - - name: Taxation - value: 7403.77 - items: - - accountId: '2210' - name: P.A.Y.E. - value: 5396.79 - items: [] - - accountId: '2211' - name: National Insurance - value: 2006.98 - items: [] - - name: Wages - value: 120 - items: - - accountId: '2220' - name: Net Wages - value: 0 - items: [] - - accountId: '2230' - name: Pension Fund - value: 120 - items: [] - - name: Non-Current Liabilities - value: 13055 - items: - - name: 'Creditors : Long Term' - value: 13055 - items: - - accountId: '2310' - name: Hire Purchase - value: 6160 - items: [] - - accountId: '2300' - name: Loans - value: 6895 - items: [] - netAssets: 141326.64 - equity: - name: Equity - value: 141326.64 - items: - - name: Share Capital - value: 96332 - items: - - accountId: '3000' - name: Ordinary Shares - value: 96332 - items: [] - - name: Profit and Loss Account - value: 44994.64 - items: [] - - date: '2023-02-28T00:00:00' - assets: - name: Assets - value: 239322.69 - items: - - name: Fixed Assets - value: 81530.08 - items: - - name: Plant and Machinery - value: 46515 - items: - - accountId: '0020' - name: Plant and Machinery - value: 50000 - items: [] - - accountId: '0021' - name: Plant/Machinery Depreciation - value: -3485 - items: [] - - name: Furniture and Fixtures - value: 16807 - items: - - accountId: '0040' - name: Furniture and Fixtures - value: 16900 - items: [] - - accountId: '0041' - name: Furniture/Fixture Depreciation - value: -93 - items: [] - - name: Motor Vehicles - value: 18208.08 - items: - - accountId: '0051' - name: Motor Vehicles Depreciation - value: -2091.92 - items: [] - - accountId: '0050' - name: Motor Vehicles - value: 20300 - items: [] - - name: Current Assets - value: 157792.61 - items: - - name: Stock - value: 35000 - items: - - accountId: '1001' - name: Stock - value: 35000 - items: [] - - name: Debtors - value: 90640.61 - items: - - accountId: '1100' - name: Debtors Control Account - value: 90640.61 - items: [] - - accountId: '1103' - name: Prepayments - value: 0 - items: [] - - name: Deposits and Cash - value: 5148.01 - items: - - accountId: '1220' - name: Building Society Account - value: 507.53 - items: [] - - accountId: '1230' - name: Petty Cash - value: 1130.48 - items: [] - - accountId: '1210' - name: Bank Deposit Account - value: 3510 - items: [] - - name: VAT Liability - value: 27003.99 - items: - - accountId: '2201' - name: Purchase Tax Control Account - value: 12203.64 - items: [] - - accountId: '2202' - name: VAT Liability - value: 14800.35 - items: [] - liabilities: - name: Liabilities - value: 97996.05 - items: - - name: Current Liabilities - value: 84941.05 - items: - - name: Bank Account - value: 20091.04 - items: - - accountId: '1200' - name: Bank Current Account - value: 20091.04 - items: [] - - name: Credit Card (Creditors) - value: -9358.97 - items: - - accountId: '1240' - name: Company Credit Card - value: -9358.97 - items: [] - - name: 'Creditors : Short Term' - value: 44502.68 - items: - - accountId: '2100' - name: Creditors Control Account - value: 44502.68 - items: [] - - accountId: '2109' - name: Accruals - value: 0 - items: [] - - name: VAT Liability - value: 22182.53 - items: - - accountId: '2200' - name: Sales Tax Control Account - value: 22182.53 - items: [] - - name: Taxation - value: 7403.77 - items: - - accountId: '2210' - name: P.A.Y.E. - value: 5396.79 - items: [] - - accountId: '2211' - name: National Insurance - value: 2006.98 - items: [] - - name: Wages - value: 120 - items: - - accountId: '2220' - name: Net Wages - value: 0 - items: [] - - accountId: '2230' - name: Pension Fund - value: 120 - items: [] - - name: Non-Current Liabilities - value: 13055 - items: - - name: 'Creditors : Long Term' - value: 13055 - items: - - accountId: '2310' - name: Hire Purchase - value: 6160 - items: [] - - accountId: '2300' - name: Loans - value: 6895 - items: [] - netAssets: 141326.64 - equity: - name: Equity - value: 141326.64 - items: - - name: Share Capital - value: 96332 - items: - - accountId: '3000' - name: Ordinary Shares - value: 96332 - items: [] - - name: Profit and Loss Account - value: 44994.64 - items: [] - mostRecentAvailableMonth: '2023-03-31T00:00:00' - earliestAvailableMonth: '2021-04-01T00:00:00' - Sage Business Cloud Accounting: - value: - currency: GBP - reports: - - date: '2022-10-31T00:00:00' - assets: - name: Assets - value: 1740591.73 - items: - - accountId: 9a25937b267a11e797950a57719b2edb - name: 1200 - Current - value: 8493.25 - items: [] - - accountId: 9a3e4bc6267a11e797950a57719b2edb - name: 1210 - Cash - value: 2664.25 - items: [] - - accountId: 9a98cf79267a11e797950a57719b2edb - name: 1 - Assets - Cost - value: 1302.24 - items: [] - - accountId: 9a990bbd267a11e797950a57719b2edb - name: 30 - Office equipment and IT - Cost - value: 100 - items: [] - - accountId: 9a99117b267a11e797950a57719b2edb - name: 40 - Fixtures and fittings - Cost - value: 485 - items: [] - - accountId: 9a9915ef267a11e797950a57719b2edb - name: 50 - Motor Vehicles - Cost - value: -426.67 - items: [] - - accountId: 9a991c56267a11e797950a57719b2edb - name: 1100 - Trade Debtors - value: 1425254.88 - items: [] - - accountId: 9a991e47267a11e797950a57719b2edb - name: 1101 - Provision for doubtful debtors - value: 25 - items: [] - - accountId: 7e6c7ed52c2d11e8b45c025132dab352 - name: 1220 - Savings - value: -155764.91 - items: [] - - accountId: 2572c8766afc11e8aaa5027d54329956 - name: 1230 - Tide Current - value: 509590.44 - items: [] - - accountId: e5889b459f544926ac5b8e6756df2ad4 - name: 1560 - Abdi Internet Bank - value: 49.61 - items: [] - - accountId: b17083bc9b2748b4ab321b024e260eda - name: 147852 - Abdi Live Test - value: -225830.75 - items: [] - - accountId: 92b80ba619d34cafbedd0eb2e69a82f7 - name: 12345678 - ozzbtdynvoblhytjolxaiohrtrhtpvndiqncpjtcjzwcddpvzl - value: 34321.11 - items: [] - - accountId: ae17d64a96a741719f1d31045aa4a8ef - name: 11113 - bills bank account - value: 2919.35 - items: [] - - accountId: 7c8be6c5e19a40cd92f93e36aecd4156 - name: 12345698 - Abdi Savings - value: 8949 - items: [] - - accountId: 5a64e8ada630412eb8fd1762175b3182 - name: 12345748 - My Test Bank Account - value: 20438.71 - items: [] - - accountId: 8cd0b0b93f0f4c8ba3434bc72d297cc2 - name: 12345758 - AlexT - value: 1080 - items: [] - - accountId: d340f7af2ba249cbb1c4cf12a6fdae14 - name: 12345768 - AbdiCredit - value: -40 - items: [] - - accountId: 8065f6270c984d6dae78ce817399ac4d - name: 101010 - Test Push Account - value: 120 - items: [] - - accountId: b34c43d0f3cd404ead4b282c2163c021 - name: 231 - TestArch12345 - value: -20 - items: [] - - accountId: 0f114074c6874794961e6e4b1ab6e4b1 - name: 466 - TestArch321 - value: 0.01 - items: [] - - accountId: fd4573ca207742d7bc8f04481952e53a - name: 1004 - Card Provider Bank Account - value: -4 - items: [] - - accountId: 90f1a608fcee4bddbc81cce5f6335060 - name: 345678 - Capital on Tap Bank Account CC - value: -120 - items: [] - - accountId: 5e77ffb2faa540a794f2dbd157064556 - name: 12345788 - Mike B Commerce Test Bank Account - value: 89120.55 - items: [] - - accountId: ad11ee61cdc54d4bb991f4855d9608b0 - name: 12345798 - Current Account 5 - value: 30 - items: [] - - accountId: f8cfa3dd79da436683f1768de75858b0 - name: 12345818 - Maria's Current Account - value: 1732.13 - items: [] - - accountId: e6717e9019c7456787e9054822772ebb - name: 12345828 - Joseph Test - value: 15662 - items: [] - - accountId: 495afbea7acb4be38cb5910b8c8db27d - name: 56743 - Nic Test Bank Account - value: 13.4 - items: [] - - accountId: f7559ab5cf8a493aa436503bd9712158 - name: 12345858 - Rob Credit Card - value: -200 - items: [] - - accountId: 83fbaf62ee244bebbee822d97b267c55 - name: 12345898 - Joseph (EUR) - value: 95.09 - items: [] - - accountId: afac9b7c22184fae8f7bc734d880b166 - name: 12345928 - Matt Ager test loan - value: 10 - items: [] - - accountId: 553ed57b302b4eda881b129b6abda736 - name: 12345938 - Matt Ager Test Current Account - value: 239.77 - items: [] - - accountId: 785c9d9f9b954307bd700bede22cf0b5 - name: 12345948 - Matt Ager Test Savings Account - value: 195 - items: [] - - accountId: 3c18fba9e0ba414bb6668bc0668a3090 - name: 12345958 - Matt Ager Test Credit Card - value: 30 - items: [] - - accountId: a11475c87cd54d0bb81951852ad91035 - name: 12345968 - Matt Ager Test Cash - value: 290 - items: [] - - accountId: 3d067bcf4a4b4a408ef3abaa4d944b91 - name: 12345978 - Matt Ager Test Other Bank Account - value: 20 - items: [] - - accountId: 179e02763960436c903b7ff2708659a2 - name: 12345988 - Matt Ager Test EUR Account - value: -58.16 - items: [] - - accountId: bb6151d3fd744fa6a81f2164b1d156dc - name: 13918348 - PUSH 1 Matt Ager Test EUR Account - value: 9 - items: [] - - accountId: 9a207c1a748b45f29117fa7126c12a9e - name: 13918594 - Australian Current Account - value: 1.43 - items: [] - - accountId: ab8e9947a5434c848e9a294188664117 - name: 13918604 - Bank Account 70 - value: -70 - items: [] - - accountId: 77650bcb6a1d4924be22d6a5da309031 - name: 13918624 - COT GBP Account - value: -10 - items: [] - - accountId: 8be8979ae30c46a6830dc653c9ad4400 - name: 57436 - Capital on Tap Business Credit Card - value: -105 - items: [] - liabilities: - name: Liabilities - value: 173084617.49 - items: - - accountId: 9a992290267a11e797950a57719b2edb - name: 2100 - Trade Creditors - value: 183778965.2 - items: [] - - accountId: 9a992966267a11e797950a57719b2edb - name: 2200 - VAT on Sales - value: 57234.67 - items: [] - - accountId: 9a992b99267a11e797950a57719b2edb - name: 2201 - VAT on Purchases - value: -34745.24 - items: [] - - accountId: 9a992d9e267a11e797950a57719b2edb - name: 2202 - VAT Liability - value: 256.86 - items: [] - - accountId: 9a992fb3267a11e797950a57719b2edb - name: 2203 - VAT Allocations & Adjustments - value: -40 - items: [] - - accountId: 9a9931b4267a11e797950a57719b2edb - name: 2205 - VAT on Sales - Holding Account - value: 199200.59 - items: [] - - accountId: 9a9933d1267a11e797950a57719b2edb - name: 2206 - VAT on Purchases - Holding Account - value: -10893226.32 - items: [] - - accountId: b954fb00e56447259a9f0cd84dbb6125 - name: 12345 - Pete Bill Account - value: -6383.05 - items: [] - - accountId: 7723dee96cbb435a800c2f7c047f47f3 - name: 312323 - Commerce Prepaid - value: -12842.93 - items: [] - - accountId: f96e7c899a1c4336bfbfe3d91ff4c157 - name: 121212 - Commerce Prepaid2 - value: -464.36 - items: [] - - accountId: 7ed323223f8d4d8f8f737d76e380a254 - name: 987 - Mike B Commerce Prepaid Test Account - value: -5011.84 - items: [] - - accountId: a2b43df636774b5a92fbfd889e390348 - name: 989 - Mike B Commerce Loan Test Account - value: 62 - items: [] - - accountId: 5cdf52bfb00d4d86b5a01e8af0761fe5 - name: 990 - Mike B Commerce Loan Test Account - value: 1538.24 - items: [] - - accountId: 09f1976c146f40c6b2009b26f1d20f97 - name: 42 - TestDatatypesAccount - value: 100 - items: [] - - accountId: 229eb087d0574c28be42fa4cc89af1f3 - name: 2110 - Trade Creditors - value: -26.33 - items: [] - netAssets: -171344025.76 - equity: - name: Equities - value: -171344025.76 - items: - - accountId: PROFIT-AND-LOSS - name: Profit for this period - value: -171344025.76 - items: [] - - date: '2022-09-30T00:00:00' - assets: - name: Assets - value: 1748139.93 - items: - - accountId: 9a25937b267a11e797950a57719b2edb - name: 1200 - Current - value: 8493.25 - items: [] - - accountId: 9a3e4bc6267a11e797950a57719b2edb - name: 1210 - Cash - value: 2664.25 - items: [] - - accountId: 9a98cf79267a11e797950a57719b2edb - name: 1 - Assets - Cost - value: 1302.24 - items: [] - - accountId: 9a990bbd267a11e797950a57719b2edb - name: 30 - Office equipment and IT - Cost - value: 100 - items: [] - - accountId: 9a99117b267a11e797950a57719b2edb - name: 40 - Fixtures and fittings - Cost - value: 485 - items: [] - - accountId: 9a9915ef267a11e797950a57719b2edb - name: 50 - Motor Vehicles - Cost - value: -426.67 - items: [] - - accountId: 9a991c56267a11e797950a57719b2edb - name: 1100 - Trade Debtors - value: 1432812.05 - items: [] - - accountId: 9a991e47267a11e797950a57719b2edb - name: 1101 - Provision for doubtful debtors - value: 25 - items: [] - - accountId: 7e6c7ed52c2d11e8b45c025132dab352 - name: 1220 - Savings - value: -155764.91 - items: [] - - accountId: 2572c8766afc11e8aaa5027d54329956 - name: 1230 - Tide Current - value: 509590.44 - items: [] - - accountId: e5889b459f544926ac5b8e6756df2ad4 - name: 1560 - Abdi Internet Bank - value: 49.61 - items: [] - - accountId: b17083bc9b2748b4ab321b024e260eda - name: 147852 - Abdi Live Test - value: -225830.75 - items: [] - - accountId: 92b80ba619d34cafbedd0eb2e69a82f7 - name: 12345678 - ozzbtdynvoblhytjolxaiohrtrhtpvndiqncpjtcjzwcddpvzl - value: 34321.11 - items: [] - - accountId: ae17d64a96a741719f1d31045aa4a8ef - name: 11113 - bills bank account - value: 2919.35 - items: [] - - accountId: 7c8be6c5e19a40cd92f93e36aecd4156 - name: 12345698 - Abdi Savings - value: 8949 - items: [] - - accountId: 5a64e8ada630412eb8fd1762175b3182 - name: 12345748 - My Test Bank Account - value: 20438.74 - items: [] - - accountId: 8cd0b0b93f0f4c8ba3434bc72d297cc2 - name: 12345758 - AlexT - value: 1080 - items: [] - - accountId: d340f7af2ba249cbb1c4cf12a6fdae14 - name: 12345768 - AbdiCredit - value: -40 - items: [] - - accountId: 8065f6270c984d6dae78ce817399ac4d - name: 101010 - Test Push Account - value: 120 - items: [] - - accountId: b34c43d0f3cd404ead4b282c2163c021 - name: 231 - TestArch12345 - value: -20 - items: [] - - accountId: 0f114074c6874794961e6e4b1ab6e4b1 - name: 466 - TestArch321 - value: 0.01 - items: [] - - accountId: fd4573ca207742d7bc8f04481952e53a - name: 1004 - Card Provider Bank Account - value: -4 - items: [] - - accountId: 90f1a608fcee4bddbc81cce5f6335060 - name: 345678 - Capital on Tap Bank Account CC - value: -120 - items: [] - - accountId: 5e77ffb2faa540a794f2dbd157064556 - name: 12345788 - Mike B Commerce Test Bank Account - value: 89120.55 - items: [] - - accountId: ad11ee61cdc54d4bb991f4855d9608b0 - name: 12345798 - Current Account 5 - value: 30 - items: [] - - accountId: f8cfa3dd79da436683f1768de75858b0 - name: 12345818 - Maria's Current Account - value: 1732.13 - items: [] - - accountId: e6717e9019c7456787e9054822772ebb - name: 12345828 - Joseph Test - value: 15662 - items: [] - - accountId: 495afbea7acb4be38cb5910b8c8db27d - name: 56743 - Nic Test Bank Account - value: 13.4 - items: [] - - accountId: f7559ab5cf8a493aa436503bd9712158 - name: 12345858 - Rob Credit Card - value: -200 - items: [] - - accountId: 83fbaf62ee244bebbee822d97b267c55 - name: 12345898 - Joseph (EUR) - value: 95.09 - items: [] - - accountId: afac9b7c22184fae8f7bc734d880b166 - name: 12345928 - Matt Ager test loan - value: 10 - items: [] - - accountId: 553ed57b302b4eda881b129b6abda736 - name: 12345938 - Matt Ager Test Current Account - value: 239.77 - items: [] - - accountId: 785c9d9f9b954307bd700bede22cf0b5 - name: 12345948 - Matt Ager Test Savings Account - value: 195 - items: [] - - accountId: 3c18fba9e0ba414bb6668bc0668a3090 - name: 12345958 - Matt Ager Test Credit Card - value: 30 - items: [] - - accountId: a11475c87cd54d0bb81951852ad91035 - name: 12345968 - Matt Ager Test Cash - value: 290 - items: [] - - accountId: 3d067bcf4a4b4a408ef3abaa4d944b91 - name: 12345978 - Matt Ager Test Other Bank Account - value: 20 - items: [] - - accountId: 179e02763960436c903b7ff2708659a2 - name: 12345988 - Matt Ager Test EUR Account - value: -58.16 - items: [] - - accountId: 9a207c1a748b45f29117fa7126c12a9e - name: 13918594 - Australian Current Account - value: 1.43 - items: [] - - accountId: ab8e9947a5434c848e9a294188664117 - name: 13918604 - Bank Account 70 - value: -70 - items: [] - - accountId: 77650bcb6a1d4924be22d6a5da309031 - name: 13918624 - COT GBP Account - value: -10 - items: [] - - accountId: 8be8979ae30c46a6830dc653c9ad4400 - name: 57436 - Capital on Tap Business Credit Card - value: -105 - items: [] - liabilities: - name: Liabilities - value: 161482418.52 - items: - - accountId: 9a992290267a11e797950a57719b2edb - name: 2100 - Trade Creditors - value: 171440565.23 - items: [] - - accountId: 9a992966267a11e797950a57719b2edb - name: 2200 - VAT on Sales - value: 57232.9 - items: [] - - accountId: 9a992b99267a11e797950a57719b2edb - name: 2201 - VAT on Purchases - value: -34745.24 - items: [] - - accountId: 9a992d9e267a11e797950a57719b2edb - name: 2202 - VAT Liability - value: 256.86 - items: [] - - accountId: 9a992fb3267a11e797950a57719b2edb - name: 2203 - VAT Allocations & Adjustments - value: -40 - items: [] - - accountId: 9a9931b4267a11e797950a57719b2edb - name: 2205 - VAT on Sales - Holding Account - value: 199003.36 - items: [] - - accountId: 9a9933d1267a11e797950a57719b2edb - name: 2206 - VAT on Purchases - Holding Account - value: -10156826.32 - items: [] - - accountId: b954fb00e56447259a9f0cd84dbb6125 - name: 12345 - Pete Bill Account - value: -6383.05 - items: [] - - accountId: 7723dee96cbb435a800c2f7c047f47f3 - name: 312323 - Commerce Prepaid - value: -12842.93 - items: [] - - accountId: f96e7c899a1c4336bfbfe3d91ff4c157 - name: 121212 - Commerce Prepaid2 - value: -464.36 - items: [] - - accountId: 7ed323223f8d4d8f8f737d76e380a254 - name: 987 - Mike B Commerce Prepaid Test Account - value: -5011.84 - items: [] - - accountId: a2b43df636774b5a92fbfd889e390348 - name: 989 - Mike B Commerce Loan Test Account - value: 62 - items: [] - - accountId: 5cdf52bfb00d4d86b5a01e8af0761fe5 - name: 990 - Mike B Commerce Loan Test Account - value: 1538.24 - items: [] - - accountId: 09f1976c146f40c6b2009b26f1d20f97 - name: 42 - TestDatatypesAccount - value: 100 - items: [] - - accountId: 229eb087d0574c28be42fa4cc89af1f3 - name: 2110 - Trade Creditors - value: -26.33 - items: [] - netAssets: -159734278.59 - equity: - name: Equities - value: -159734278.59 - items: - - accountId: PROFIT-AND-LOSS - name: Profit for this period - value: -159734278.59 - items: [] - mostRecentAvailableMonth: '2022-10-31T00:00:00' - earliestAvailableMonth: '2022-04-01T00:00:00' - Wave: - value: - currency: GBP - reports: - - date: '2022-11-30T00:00:00' - assets: - name: Assets - value: 2220.87 - items: - - name: Cash and Bank - value: 1001.87 - items: - - name: Abdi Bank - value: 158.9 - items: [] - - name: Cash on Hand - value: 245.31 - items: [] - - name: Current Account - value: 597.66 - items: [] - - name: Other Current Assets - value: 219 - items: - - name: Accounts Receivable - value: 211.99 - items: [] - - name: Unrealized Gain on Foreign Exchange - value: 7.01 - items: [] - - name: Long-term Assets - value: 1000 - items: - - name: Furniture - value: 1000 - items: [] - liabilities: - name: Liabilities - value: 4641.15 - items: - - name: Current Liabilities - value: 4641.15 - items: - - name: Accounts Payable - value: 3557.14 - items: [] - - name: Abdul's new Tax - value: 7.54 - items: [] - - name: FederalABC - value: 1002.6 - items: [] - - name: STANDARD - value: 73.87 - items: [] - netAssets: -2420.28 - equity: - name: Equity - value: -2420.28 - items: - - name: Other Equity - value: 63.8 - items: - - name: Owner Investment / Drawings - value: -36.2 - items: [] - - name: Some Equity - value: 100 - items: [] - - name: Retained Earnings - value: -2484.08 - items: - - name: Profit for all prior years - value: -1950.59 - items: [] - - name: 'Profit between Jan 1, 2022 and Nov 30, 2022' - value: -533.49 - items: [] - - date: '2022-10-31T00:00:00' - assets: - name: Assets - value: 2222.22 - items: - - name: Cash and Bank - value: 1001.87 - items: - - name: Abdi Bank - value: 158.9 - items: [] - - name: Cash on Hand - value: 245.31 - items: [] - - name: Current Account - value: 597.66 - items: [] - - name: Other Current Assets - value: 220.35 - items: - - name: Accounts Receivable - value: 211.99 - items: [] - - name: Unrealized Gain on Foreign Exchange - value: 8.36 - items: [] - - name: Long-term Assets - value: 1000 - items: - - name: Furniture - value: 1000 - items: [] - liabilities: - name: Liabilities - value: 4086.15 - items: - - name: Current Liabilities - value: 4086.15 - items: - - name: Accounts Payable - value: 3002.14 - items: [] - - name: Abdul's new Tax - value: 7.54 - items: [] - - name: FederalABC - value: 1002.6 - items: [] - - name: STANDARD - value: 73.87 - items: [] - netAssets: -1863.93 - equity: - name: Equity - value: -1863.93 - items: - - name: Other Equity - value: 63.8 - items: - - name: Owner Investment / Drawings - value: -36.2 - items: [] - - name: Some Equity - value: 100 - items: [] - - name: Retained Earnings - value: -1927.73 - items: - - name: Profit for all prior years - value: -1950.59 - items: [] - - name: 'Profit between Jan 1, 2022 and Oct 31, 2022' - value: 22.86 - items: [] - mostRecentAvailableMonth: '2022-11-30T00:00:00' - earliestAvailableMonth: '2022-05-01T00:00:00' - Xero: - value: - currency: GBP - reports: - - date: '2023-03-31T23:59:59' - assets: - name: Assets - value: 24166.8 - items: - - name: Current Assets - value: 21486.84 - items: - - name: Bank - value: 924.25 - items: - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - name: Business Bank Account - value: 924.25 - items: [] - - accountId: a1e2c53a-18b9-40cb-8e87-e2db200fe8af - name: Inventory - value: 121.21 - items: [] - - accountId: 8add7c44-ffe0-4a42-869e-b85dadd5eac1 - name: Accounts Receivable - value: 20441.38 - items: [] - - name: Fixed Assets - value: 2679.96 - items: - - accountId: a4602fb6-2e9d-4064-b318-c409032692ba - name: Office Equipment - value: 3665.63 - items: [] - - accountId: 8d1ae68b-1251-4b44-9d7a-639b3976935c - name: Computer Equipment - value: -985.67 - items: [] - liabilities: - name: Liabilities - value: 14265.73 - items: - - name: Current Liabilities - value: 14265.73 - items: - - accountId: b12f79b9-a082-4b8b-971e-d321292943c7 - name: VAT - value: 1194.45 - items: [] - - accountId: 1873bf00-e52f-48e9-89d6-619c93723f60 - name: Unpaid Expense Claims - value: 150.85 - items: [] - - accountId: 7ff95c6a-5849-4030-a361-52165fab6490 - name: Historical Adjustment - value: 4130.98 - items: [] - - accountId: e0faa299-ca0d-4b0a-9e32-0dfabdf9179a - name: Accounts Payable - value: 8789.45 - items: [] - netAssets: 9901.07 - equity: - name: Equity - value: 9901.07 - items: - - accountId: 524c9f2d-e680-4861-82f6-4ad171b51de5 - name: Retained Earnings - value: -7961.99 - items: [] - - accountId: abababab-abab-abab-abab-abababababab - name: Current Year Earnings - value: 17863.06 - items: [] - - date: '2023-02-28T23:59:59' - assets: - name: Assets - value: 24166.8 - items: - - name: Current Assets - value: 21486.84 - items: - - name: Bank - value: 924.25 - items: - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - name: Business Bank Account - value: 924.25 - items: [] - - accountId: a1e2c53a-18b9-40cb-8e87-e2db200fe8af - name: Inventory - value: 121.21 - items: [] - - accountId: 8add7c44-ffe0-4a42-869e-b85dadd5eac1 - name: Accounts Receivable - value: 20441.38 - items: [] - - name: Fixed Assets - value: 2679.96 - items: - - accountId: a4602fb6-2e9d-4064-b318-c409032692ba - name: Office Equipment - value: 3665.63 - items: [] - - accountId: 8d1ae68b-1251-4b44-9d7a-639b3976935c - name: Computer Equipment - value: -985.67 - items: [] - liabilities: - name: Liabilities - value: 14265.73 - items: - - name: Current Liabilities - value: 14265.73 - items: - - accountId: b12f79b9-a082-4b8b-971e-d321292943c7 - name: VAT - value: 1194.45 - items: [] - - accountId: 1873bf00-e52f-48e9-89d6-619c93723f60 - name: Unpaid Expense Claims - value: 150.85 - items: [] - - accountId: 7ff95c6a-5849-4030-a361-52165fab6490 - name: Historical Adjustment - value: 4130.98 - items: [] - - accountId: e0faa299-ca0d-4b0a-9e32-0dfabdf9179a - name: Accounts Payable - value: 8789.45 - items: [] - netAssets: 9901.07 - equity: - name: Equity - value: 9901.07 - items: - - accountId: 524c9f2d-e680-4861-82f6-4ad171b51de5 - name: Retained Earnings - value: -7961.99 - items: [] - - accountId: abababab-abab-abab-abab-abababababab - name: Current Year Earnings - value: 17863.06 - items: [] - mostRecentAvailableMonth: '2023-03-31T00:00:00' - earliestAvailableMonth: '2022-09-01T00:00:00' - Zoho Books: - value: - currency: GBP - reports: - - date: '2022-10-31T00:00:00' - assets: - name: Assets - value: 63170.61 - items: - - name: Current Assets - value: 63150.61 - items: - - name: Cash - value: 1678.31 - items: - - accountId: '104957000000000349' - name: Petty Cash - value: -8246.75 - items: [] - - accountId: '104957000000000346' - name: Undeposited Funds - value: 9925.06 - items: [] - - name: Bank - value: 69910.1 - items: - - accountId: '104957000000060010' - name: Abdi Test - value: 69858.44 - items: [] - - accountId: '104957000000065002' - name: Abdi Test 2 - value: 20 - items: [] - - accountId: '104957000000080006' - name: EUR Test Bank Account - value: 24.29 - items: [] - - accountId: '104957000000508001' - name: Subtra USD wallet - value: 7.37 - items: [] - - accountId: '104957000000000352' - name: Accounts Receivable - value: -959.64 - items: [] - - name: Other Current Assets - value: -7478.16 - items: - - accountId: '104957000000000358' - name: Advance Tax - value: 2.63 - items: [] - - accountId: '104957000000000457' - name: Employee Advance - value: 0 - items: [] - - accountId: '104957000000033015' - name: Input VAT - value: 356.84 - items: [] - - accountId: '104957000000000511' - name: Inventory Asset - value: 90.06 - items: [] - - accountId: '104957000000032010' - name: Prepaid Expenses - value: -8017.69 - items: [] - - accountId: '104957000000388007' - name: Sales to Customers (Cash) - value: 0 - items: [] - - accountId: '104957000000093001' - name: Test prepaid expenses child account - value: 0 - items: [] - - accountId: '104957000000096007' - name: Test prepaid expenses child account 2 - value: 100 - items: [] - - accountId: '104957000000096001' - name: Test prepaid expenses child child account - value: -50 - items: [] - - accountId: '104957000000085001' - name: Test stock account - value: 40 - items: [] - - name: Other Assets - value: 0 - items: [] - - name: Fixed Assets - value: 20 - items: - - accountId: '104957000000000355' - name: Furniture and Equipment - value: 20 - items: [] - liabilities: - name: Liabilities - value: 8615.39 - items: - - name: Liabilities - value: 8615.39 - items: - - name: Current Liabilities - value: 8615.39 - items: - - accountId: '104957000000000361' - name: Accounts Payable - value: 2084.6 - items: [] - - accountId: '104957000000618001' - name: Creadit Card - BA Company - value: 656.05 - items: [] - - accountId: '104957000000183010' - name: Credit Card - value: 26.25 - items: [] - - accountId: '104957000000000460' - name: Employee Reimbursements - value: 10.35 - items: [] - - accountId: '104957000000000499' - name: Opening Balance Adjustments - value: 0 - items: [] - - accountId: '104957000000033017' - name: Output VAT - value: 3934.75 - items: [] - - accountId: '104957000000000501' - name: Unearned Revenue - value: 1903.39 - items: [] - - accountId: '104957000000054026' - name: VAT MOSS Payable - value: 0 - items: [] - - accountId: '104957000000000364' - name: VAT Payable - value: 0 - items: [] - - name: Long Term Liabilities - value: 0 - items: [] - - name: Other Liabilities - value: 0 - items: - - accountId: '104957000000006001' - name: Tag Adjustments - value: 0 - items: [] - netAssets: 54555.22 - equity: - name: Equities - value: 54555.22 - items: - - accountId: '' - name: Current Year Earnings - value: -15199.89 - items: [] - - accountId: '104957000000000451' - name: Drawing - value: 0 - items: [] - - accountId: '104957000000000373' - name: Opening Balance Offset - value: 10000 - items: [] - - accountId: '104957000000000370' - name: Owner's Equity - value: 0 - items: [] - - accountId: '104957000000000367' - name: Retained Earnings - value: 59755.11 - items: [] - - date: '2022-09-01T00:00:00' - assets: - name: Assets - value: 63170.61 - items: - - name: Current Assets - value: 63150.61 - items: - - name: Cash - value: 1678.31 - items: - - accountId: '104957000000000349' - name: Petty Cash - value: -8246.75 - items: [] - - accountId: '104957000000000346' - name: Undeposited Funds - value: 9925.06 - items: [] - - name: Bank - value: 69910.1 - items: - - accountId: '104957000000060010' - name: Abdi Test - value: 69858.44 - items: [] - - accountId: '104957000000065002' - name: Abdi Test 2 - value: 20 - items: [] - - accountId: '104957000000080006' - name: EUR Test Bank Account - value: 24.29 - items: [] - - accountId: '104957000000508001' - name: Subtra USD wallet - value: 7.37 - items: [] - - accountId: '104957000000000352' - name: Accounts Receivable - value: -959.64 - items: [] - - name: Other Current Assets - value: -7478.16 - items: - - accountId: '104957000000000358' - name: Advance Tax - value: 2.63 - items: [] - - accountId: '104957000000000457' - name: Employee Advance - value: 0 - items: [] - - accountId: '104957000000033015' - name: Input VAT - value: 356.84 - items: [] - - accountId: '104957000000000511' - name: Inventory Asset - value: 90.06 - items: [] - - accountId: '104957000000032010' - name: Prepaid Expenses - value: -8017.69 - items: [] - - accountId: '104957000000388007' - name: Sales to Customers (Cash) - value: 0 - items: [] - - accountId: '104957000000093001' - name: Test prepaid expenses child account - value: 0 - items: [] - - accountId: '104957000000096007' - name: Test prepaid expenses child account 2 - value: 100 - items: [] - - accountId: '104957000000096001' - name: Test prepaid expenses child child account - value: -50 - items: [] - - accountId: '104957000000085001' - name: Test stock account - value: 40 - items: [] - - name: Other Assets - value: 0 - items: [] - - name: Fixed Assets - value: 20 - items: - - accountId: '104957000000000355' - name: Furniture and Equipment - value: 20 - items: [] - liabilities: - name: Liabilities - value: 8615.39 - items: - - name: Liabilities - value: 8615.39 - items: - - name: Current Liabilities - value: 8615.39 - items: - - accountId: '104957000000000361' - name: Accounts Payable - value: 2084.6 - items: [] - - accountId: '104957000000618001' - name: Creadit Card - BA Company - value: 656.05 - items: [] - - accountId: '104957000000183010' - name: Credit Card - value: 26.25 - items: [] - - accountId: '104957000000000460' - name: Employee Reimbursements - value: 10.35 - items: [] - - accountId: '104957000000000499' - name: Opening Balance Adjustments - value: 0 - items: [] - - accountId: '104957000000033017' - name: Output VAT - value: 3934.75 - items: [] - - accountId: '104957000000000501' - name: Unearned Revenue - value: 1903.39 - items: [] - - accountId: '104957000000054026' - name: VAT MOSS Payable - value: 0 - items: [] - - accountId: '104957000000000364' - name: VAT Payable - value: 0 - items: [] - - name: Long Term Liabilities - value: 0 - items: [] - - name: Other Liabilities - value: 0 - items: - - accountId: '104957000000006001' - name: Tag Adjustments - value: 0 - items: [] - netAssets: 54555.22 - equity: - name: Equities - value: 54555.22 - items: - - accountId: '' - name: Current Year Earnings - value: -15199.89 - items: [] - - accountId: '104957000000000451' - name: Drawing - value: 0 - items: [] - - accountId: '104957000000000373' - name: Opening Balance Offset - value: 10000 - items: [] - - accountId: '104957000000000370' - name: Owner's Equity - value: 0 - items: [] - - accountId: '104957000000000367' - name: Retained Earnings - value: 59755.11 - items: [] - mostRecentAvailableMonth: '2022-10-31T00:00:00' - earliestAvailableMonth: '2022-04-01T00:00:00' - '401': - $ref: '#/components/responses/Unauthorized' - '402': - $ref: '#/components/responses/Payment-Required' - '403': - $ref: '#/components/responses/Forbidden' - '404': - $ref: '#/components/responses/Not-Found' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - '/companies/{companyId}/data/financials/profitAndLoss': - parameters: - - $ref: '#/components/parameters/companyId' - get: - tags: - - Financial statements - summary: Get profit and loss - description: Gets the latest profit and loss for a company. - operationId: get-accounting-profit-and-loss - x-speakeasy-group: financial-statements.profit-and-loss - parameters: - - $ref: '#/components/parameters/accountingPeriodLength' - - $ref: '#/components/parameters/accountingPeriodsToCompare' - - $ref: '#/components/parameters/accountingStartMonth' - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/AccountingProfitAndLossReport' - examples: - Clear Books: - value: - reports: - - fromDate: '2023-03-01T00:00:00' - toDate: '2023-03-31T00:00:00' - income: - accountId: '' - name: Income - value: 146840.42 - items: - - accountId: 72df89d2-512b-4455-af51-a6b563733842 - name: Sales - value: 146840.42 - items: [] - costOfSales: - accountId: '' - name: Cost of Sales - value: 29955.45 - items: - - accountId: 7403e960-5b72-42ff-abf4-c870ad8910bd - name: Purchases - value: 29955.45 - items: [] - grossProfit: 116884.97 - expenses: - accountId: '' - name: Expenses - value: 62407.18 - items: - - accountId: 868591ad-f9c2-4956-a5ec-c32c1d48c6f3 - name: Advertising & Marketing - value: 24962.87 - items: [] - - accountId: 940c8a59-3348-4a0b-a1b1-781d9f29cc8b - name: Depreciation Expense - value: 1550.12 - items: [] - - accountId: e7ac3baa-cfbe-40c1-a172-83d22e84435b - name: Entertainment-100% business - value: 1410.61 - items: [] - - accountId: b5e801e8-8dbc-4390-ac99-3b0fff54a89f - name: General Expenses - value: 1283.66 - items: [] - - accountId: 5360066d-1474-49f6-a7a5-c66d5f6032ba - name: 'Light, Power, Heating' - value: 1168.13 - items: [] - - accountId: 138a8eb3-5c08-4e59-a3bc-892119694447 - name: Motor Vehicle Expenses - value: 944.89 - items: [] - - accountId: 1734ff00-2a17-45b4-8db6-2dc2e832c460 - name: 'Postage, Freight & Courier' - value: 977.96 - items: [] - - accountId: 7aa7988a-ff61-4cb8-bef3-15395355d108 - name: Printing & Stationery - value: 889.94 - items: [] - - accountId: 9cbe5fe4-ca60-4792-8bf1-de01fb7010aa - name: Rent - value: 8000 - items: [] - - accountId: 04f7111b-55d4-4efc-b329-1bd5c791933a - name: Repairs & Maintenance - value: 719.86 - items: [] - - accountId: 7d8d0322-f452-47de-a8e8-54b0130e6f38 - name: Subscriptions - value: 40 - items: [] - - accountId: 043b6bcb-dfe6-4c97-9b4c-f9b300fe3f03 - name: Telephone & Internet - value: 45 - items: [] - - accountId: df62060b-41cc-4bf2-9de7-c7e537b5663a - name: Travel - National - value: 6000.46 - items: [] - - accountId: eef78ed1-dfed-447c-bdba-3a49fb2c044b - name: Audit & Accountancy fees - value: 0 - items: [] - - accountId: f3aa84fe-5c31-4107-b207-7e0419f636d7 - name: Bank Fees - value: 609.29 - items: [] - - accountId: c16f5c35-8283-47da-9d09-5fecb183b0cb - name: Cleaning - value: 130 - items: [] - - accountId: fb3210ef-edeb-48af-bb49-b85d40c1e6bb - name: Corporation Tax - value: 630.62 - items: [] - - accountId: 7f6a0e92-65be-4333-9a0a-d981b03bedd1 - name: Wages - value: 12000 - items: [] - - accountId: e8a0a24e-2dab-46b1-bfe1-6e92551c04e8 - name: Purchase Discounts - value: 510.1 - items: [] - - accountId: 4378ddba-36b4-4b35-9970-bd972b20d137 - name: Amortization - value: 5.72 - items: [] - - accountId: 78785fd7-f197-4c34-aa17-6e76b9255d34 - name: Interest Paid (operating) - value: 527.95 - items: [] - netOperatingProfit: 54477.79 - otherExpenses: - accountId: '' - name: Other Expenses - value: 350.44 - items: - - accountId: cbf82e0d-87a7-464d-b567-9274ea94a1c0 - name: Charitable and Political Donations - value: 350.44 - items: [] - otherIncome: - accountId: '' - name: Other Income - value: 850.22 - items: - - accountId: 68794a8f-b22d-4520-b97b-025b7cb10f94 - name: Other Revenue - value: 850.22 - items: [] - netOtherIncome: 499.78 - netProfit: 54977.57 - - fromDate: '2023-02-01T00:00:00' - toDate: '2023-02-28T00:00:00' - income: - accountId: '' - name: Income - value: 108461.81 - items: - - accountId: 72df89d2-512b-4455-af51-a6b563733842 - name: Sales - value: 108461.81 - items: [] - costOfSales: - accountId: '' - name: Cost of Sales - value: 18438.51 - items: - - accountId: 7403e960-5b72-42ff-abf4-c870ad8910bd - name: Purchases - value: 18438.51 - items: [] - grossProfit: 90023.3 - expenses: - accountId: '' - name: Expenses - value: 46096.28 - items: - - accountId: 868591ad-f9c2-4956-a5ec-c32c1d48c6f3 - name: Advertising & Marketing - value: 18438.51 - items: [] - - accountId: 940c8a59-3348-4a0b-a1b1-781d9f29cc8b - name: Depreciation Expense - value: 669.33 - items: [] - - accountId: e7ac3baa-cfbe-40c1-a172-83d22e84435b - name: Entertainment-100% business - value: 609.09 - items: [] - - accountId: b5e801e8-8dbc-4390-ac99-3b0fff54a89f - name: General Expenses - value: 554.28 - items: [] - - accountId: 5360066d-1474-49f6-a7a5-c66d5f6032ba - name: 'Light, Power, Heating' - value: 448.35 - items: [] - - accountId: 138a8eb3-5c08-4e59-a3bc-892119694447 - name: Motor Vehicle Expenses - value: 412.48 - items: [] - - accountId: 1734ff00-2a17-45b4-8db6-2dc2e832c460 - name: 'Postage, Freight & Courier' - value: 426.92 - items: [] - - accountId: 7aa7988a-ff61-4cb8-bef3-15395355d108 - name: Printing & Stationery - value: 388.49 - items: [] - - accountId: 9cbe5fe4-ca60-4792-8bf1-de01fb7010aa - name: Rent - value: 8000 - items: [] - - accountId: 04f7111b-55d4-4efc-b329-1bd5c791933a - name: Repairs & Maintenance - value: 314.25 - items: [] - - accountId: 7d8d0322-f452-47de-a8e8-54b0130e6f38 - name: Subscriptions - value: 40 - items: [] - - accountId: 043b6bcb-dfe6-4c97-9b4c-f9b300fe3f03 - name: Telephone & Internet - value: 45 - items: [] - - accountId: df62060b-41cc-4bf2-9de7-c7e537b5663a - name: Travel - National - value: 325.25 - items: [] - - accountId: eef78ed1-dfed-447c-bdba-3a49fb2c044b - name: Audit & Accountancy fees - value: 0 - items: [] - - accountId: f3aa84fe-5c31-4107-b207-7e0419f636d7 - name: Bank Fees - value: 2600.97 - items: [] - - accountId: c16f5c35-8283-47da-9d09-5fecb183b0cb - name: Cleaning - value: 130 - items: [] - - accountId: fb3210ef-edeb-48af-bb49-b85d40c1e6bb - name: Corporation Tax - value: 239.41 - items: [] - - accountId: 7f6a0e92-65be-4333-9a0a-d981b03bedd1 - name: Wages - value: 12000 - items: [] - - accountId: e8a0a24e-2dab-46b1-bfe1-6e92551c04e8 - name: Purchase Discounts - value: 220.26 - items: [] - - accountId: 4378ddba-36b4-4b35-9970-bd972b20d137 - name: Amortization - value: 5.72 - items: [] - - accountId: 78785fd7-f197-4c34-aa17-6e76b9255d34 - name: Interest Paid (operating) - value: 227.97 - items: [] - netOperatingProfit: 43927.02 - otherExpenses: - accountId: '' - name: Other Expenses - value: 350.44 - items: - - accountId: cbf82e0d-87a7-464d-b567-9274ea94a1c0 - name: Charitable and Political Donations - value: 350.44 - items: [] - otherIncome: - accountId: '' - name: Other Income - value: 850.22 - items: - - accountId: 68794a8f-b22d-4520-b97b-025b7cb10f94 - name: Other Revenue - value: 850.22 - items: [] - netOtherIncome: 499.78 - netProfit: 44426.8 - reportBasis: Unknown - currency: GBP - mostRecentAvailableMonth: '2023-03-01T00:00:00' - earliestAvailableMonth: '2018-04-01T00:00:00' - Dynamics 365 Business Central: - value: - reports: - - fromDate: '2023-03-01T00:00:00' - toDate: '2023-03-31T00:00:00' - income: - name: Income - value: 658.5 - items: - - name: Sales Returns & Allowances - value: 0 - items: - - accountId: 8aba49ae-461a-ed11-90eb-000d3a873324 - name: '0121 - ' - value: 0 - items: [] - - accountId: 1e1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 10400 - Sales Returns & Allowances - value: 0 - items: [] - - name: 'Income, Services' - value: 0 - items: - - accountId: ac6a3a74-c69f-ec11-80f1-0022481b4546 - name: 10005-1 - Child - value: 0 - items: [] - - accountId: 161217b3-89d1-ea11-bbaa-000d3a2b9185 - name: '10100 - Income, Services' - value: 0 - items: [] - - name: 'Income, Jobs' - value: 0 - items: - - accountId: 1f2618f9-c79f-ec11-80f1-0022481b4546 - name: 10005-2 - Child Child - value: 0 - items: [] - - accountId: 1a1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 10250 - Job Sales - value: 0 - items: [] - - name: '' - value: 0 - items: - - accountId: de1cabee-4a33-ed11-97e8-0022481aa72d - name: 1005002 - Test account no cat 2 - value: 0 - items: [] - - accountId: b74b0c08-aa59-eb11-89f9-00224800a7ae - name: '1006 - Account without category Income ' - value: 0 - items: [] - - accountId: 023a8eba-c12e-ed11-97e8-000d3a8753f5 - name: 3213 - vdfgdf - value: 0 - items: [] - - accountId: aa666f5a-c22e-ed11-97e8-0022480052b7 - name: 'TEST INCOME A/C - ' - value: 0 - items: [] - - name: 'Income, Product Sales' - value: 658.5 - items: - - accountId: 181217b3-89d1-ea11-bbaa-000d3a2b9185 - name: '10200 - Income, Product Sales' - value: 658.5 - items: [] - - name: Sales Discounts - value: 0 - items: - - accountId: 1c1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 10300 - Sales Discounts - value: 0 - items: [] - - name: Job Sales Contra - value: 0 - items: - - accountId: 201217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 10450 - Job Sales Applied - value: 0 - items: [] - - name: Income - value: 0 - items: - - accountId: 221217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 10500 - Interest Income - value: 0 - items: [] - costOfSales: - name: Cost of Goods Sold - value: 2735.64 - items: - - name: Materials - value: 2735.64 - items: - - accountId: 281217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 20100 - Cost of Materials - value: 2735.64 - items: [] - - name: Labour - value: 0 - items: - - accountId: 2a1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 20200 - Cost of Labour - value: 0 - items: [] - - name: Jobs Cost - value: 0 - items: - - accountId: 2c1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 20300 - Job Costs - value: 0 - items: [] - grossProfit: -2077.14 - expenses: - name: Expense - value: 41.77 - items: - - name: '' - value: 0 - items: - - accountId: e9b4e2c2-4b33-ed11-97e8-0022481aa72d - name: 1005003 - Expense Test account no cat - value: 0 - items: [] - - accountId: 1d60f4a2-6d19-ed11-90eb-002248009024 - name: 1234512345 - Invalid VAT Posting Setup - value: 0 - items: [] - - name: Interest Expense - value: 0 - items: - - accountId: bd407350-340b-ec11-86bc-0022481a4971 - name: 1093 - export with misc type - value: 0 - items: [] - - accountId: 381217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 30300 - Interest Expense - value: 0 - items: [] - - name: Other Income & Expenses - value: 0 - items: - - accountId: 2e1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 20399 - Job Costs Applied - value: 0 - items: [] - - accountId: 4e1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 31400 - Office Supplies Expense - value: 0 - items: [] - - accountId: 501217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 31500 - Miscellaneous Expense - value: 0 - items: [] - - accountId: 521217b3-89d1-ea11-bbaa-000d3a2b9185 - name: '31600 - Depreciation, Equipment' - value: 0 - items: [] - - accountId: 541217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 31900 - Rounding - value: 0 - items: [] - - name: Benefits Expense - value: 0 - items: - - accountId: 57a95f12-9ecf-ec11-8e7e-00224800faf5 - name: 23 - test account - value: 0 - items: [] - - name: Fees Expense - value: 0 - items: - - accountId: 3f6818aa-a4cf-ec11-8e7e-00224800faf5 - name: 30 - test expenses 2 - value: 0 - items: [] - - accountId: 3a1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 30400 - Bank Charges and Fees - value: 0 - items: [] - - accountId: 3c1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 30500 - Processing Fees - value: 0 - items: [] - - name: Rent Expense - value: 0 - items: - - accountId: 341217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 30100 - Rent Expense - value: 0 - items: [] - - name: Advertising Expense - value: 0 - items: - - accountId: 361217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 30200 - Advertising Expense - value: 0 - items: [] - - name: Bad Debt Expense - value: 0 - items: - - accountId: 3e1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 30600 - Bad Debt Expense - value: 0 - items: [] - - name: Salaries Expense - value: 0 - items: - - accountId: 401217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 30700 - Salaries Expense - value: 0 - items: [] - - name: Payroll Expense - value: 0 - items: - - accountId: 421217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 30800 - Payroll Tax Expense - value: 0 - items: [] - - accountId: 441217b3-89d1-ea11-bbaa-000d3a2b9185 - name: '30900 - Workers Compensation ' - value: 0 - items: [] - - name: Insurance Expense - value: 41.77 - items: - - accountId: 461217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 31000 - Health & Dental Insurance Expense - value: 41.77 - items: [] - - accountId: 481217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 31100 - Life Insurance Expense - value: 0 - items: [] - - name: Repairs and Maintenance Expense - value: 0 - items: - - accountId: 4a1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 31200 - Repairs and Maintenance Expense - value: 0 - items: [] - - name: Utilities Expense - value: 0 - items: - - accountId: 4c1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 31300 - Utilities Expense - value: 0 - items: [] - - name: Travel Expense - value: 0 - items: - - accountId: 61d17174-61db-ec11-82f9-002248008de8 - name: 999992 - Payhawk General - value: 0 - items: [] - - accountId: 3a37ed38-a6cf-ec11-8e7e-00224800faf5 - name: 999998 - Payhawk General - value: 0 - items: [] - - accountId: 64ee049b-a1cf-ec11-8e7e-00224800faf5 - name: 999999 - Payhawk General - value: 0 - items: [] - netOperatingProfit: -2118.91 - otherExpenses: - name: Other Expenses - value: 0 - items: [] - otherIncome: - name: Other Income - value: 0 - items: [] - netOtherIncome: 0 - netProfit: -2118.91 - - fromDate: '2023-02-01T00:00:00' - toDate: '2023-02-28T00:00:00' - income: - name: Income - value: 414.51 - items: - - name: Sales Returns & Allowances - value: -125.17 - items: - - accountId: 8aba49ae-461a-ed11-90eb-000d3a873324 - name: '0121 - ' - value: -125.17 - items: [] - - accountId: 1e1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 10400 - Sales Returns & Allowances - value: 0 - items: [] - - name: 'Income, Services' - value: -10 - items: - - accountId: ac6a3a74-c69f-ec11-80f1-0022481b4546 - name: 10005-1 - Child - value: -10 - items: [] - - accountId: 161217b3-89d1-ea11-bbaa-000d3a2b9185 - name: '10100 - Income, Services' - value: 0 - items: [] - - name: 'Income, Jobs' - value: -12.91 - items: - - accountId: 1f2618f9-c79f-ec11-80f1-0022481b4546 - name: 10005-2 - Child Child - value: -12.91 - items: [] - - accountId: 1a1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 10250 - Job Sales - value: 0 - items: [] - - name: '' - value: 0 - items: - - accountId: de1cabee-4a33-ed11-97e8-0022481aa72d - name: 1005002 - Test account no cat 2 - value: 0 - items: [] - - accountId: b74b0c08-aa59-eb11-89f9-00224800a7ae - name: '1006 - Account without category Income ' - value: 0 - items: [] - - accountId: 023a8eba-c12e-ed11-97e8-000d3a8753f5 - name: 3213 - vdfgdf - value: 0 - items: [] - - accountId: aa666f5a-c22e-ed11-97e8-0022480052b7 - name: 'TEST INCOME A/C - ' - value: 0 - items: [] - - name: 'Income, Product Sales' - value: 430.4 - items: - - accountId: 181217b3-89d1-ea11-bbaa-000d3a2b9185 - name: '10200 - Income, Product Sales' - value: 430.4 - items: [] - - name: Sales Discounts - value: 0 - items: - - accountId: 1c1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 10300 - Sales Discounts - value: 0 - items: [] - - name: Job Sales Contra - value: 0 - items: - - accountId: 201217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 10450 - Job Sales Applied - value: 0 - items: [] - - name: Income - value: 132.19 - items: - - accountId: 221217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 10500 - Interest Income - value: 132.19 - items: [] - costOfSales: - name: Cost of Goods Sold - value: 328 - items: - - name: Materials - value: 328 - items: - - accountId: 281217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 20100 - Cost of Materials - value: 328 - items: [] - - name: Labour - value: 0 - items: - - accountId: 2a1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 20200 - Cost of Labour - value: 0 - items: [] - - name: Jobs Cost - value: 0 - items: - - accountId: 2c1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 20300 - Job Costs - value: 0 - items: [] - grossProfit: 86.51 - expenses: - name: Expense - value: 1482.02 - items: - - name: '' - value: 9.52 - items: - - accountId: e9b4e2c2-4b33-ed11-97e8-0022481aa72d - name: 1005003 - Expense Test account no cat - value: 0 - items: [] - - accountId: 1d60f4a2-6d19-ed11-90eb-002248009024 - name: 1234512345 - Invalid VAT Posting Setup - value: 9.52 - items: [] - - name: Interest Expense - value: 0 - items: - - accountId: bd407350-340b-ec11-86bc-0022481a4971 - name: 1093 - export with misc type - value: 0 - items: [] - - accountId: 381217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 30300 - Interest Expense - value: 0 - items: [] - - name: Other Income & Expenses - value: 0 - items: - - accountId: 2e1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 20399 - Job Costs Applied - value: 0 - items: [] - - accountId: 4e1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 31400 - Office Supplies Expense - value: 0 - items: [] - - accountId: 501217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 31500 - Miscellaneous Expense - value: 0 - items: [] - - accountId: 521217b3-89d1-ea11-bbaa-000d3a2b9185 - name: '31600 - Depreciation, Equipment' - value: 0 - items: [] - - accountId: 541217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 31900 - Rounding - value: 0 - items: [] - - name: Benefits Expense - value: 0 - items: - - accountId: 57a95f12-9ecf-ec11-8e7e-00224800faf5 - name: 23 - test account - value: 0 - items: [] - - name: Fees Expense - value: 0 - items: - - accountId: 3f6818aa-a4cf-ec11-8e7e-00224800faf5 - name: 30 - test expenses 2 - value: 0 - items: [] - - accountId: 3a1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 30400 - Bank Charges and Fees - value: 0 - items: [] - - accountId: 3c1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 30500 - Processing Fees - value: 0 - items: [] - - name: Rent Expense - value: 0 - items: - - accountId: 341217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 30100 - Rent Expense - value: 0 - items: [] - - name: Advertising Expense - value: 0 - items: - - accountId: 361217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 30200 - Advertising Expense - value: 0 - items: [] - - name: Bad Debt Expense - value: -1.82 - items: - - accountId: 3e1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 30600 - Bad Debt Expense - value: -1.82 - items: [] - - name: Salaries Expense - value: 0 - items: - - accountId: 401217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 30700 - Salaries Expense - value: 0 - items: [] - - name: Payroll Expense - value: 0 - items: - - accountId: 421217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 30800 - Payroll Tax Expense - value: 0 - items: [] - - accountId: 441217b3-89d1-ea11-bbaa-000d3a2b9185 - name: '30900 - Workers Compensation ' - value: 0 - items: [] - - name: Insurance Expense - value: 1474.32 - items: - - accountId: 461217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 31000 - Health & Dental Insurance Expense - value: 1474.32 - items: [] - - accountId: 481217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 31100 - Life Insurance Expense - value: 0 - items: [] - - name: Repairs and Maintenance Expense - value: 0 - items: - - accountId: 4a1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 31200 - Repairs and Maintenance Expense - value: 0 - items: [] - - name: Utilities Expense - value: 0 - items: - - accountId: 4c1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 31300 - Utilities Expense - value: 0 - items: [] - - name: Travel Expense - value: 0 - items: - - accountId: 61d17174-61db-ec11-82f9-002248008de8 - name: 999992 - Payhawk General - value: 0 - items: [] - - accountId: 3a37ed38-a6cf-ec11-8e7e-00224800faf5 - name: 999998 - Payhawk General - value: 0 - items: [] - - accountId: 64ee049b-a1cf-ec11-8e7e-00224800faf5 - name: 999999 - Payhawk General - value: 0 - items: [] - netOperatingProfit: -1395.51 - otherExpenses: - name: Other Expenses - value: 0 - items: [] - otherIncome: - name: Other Income - value: 0 - items: [] - netOtherIncome: 0 - netProfit: -1395.51 - reportBasis: Accrual - currency: GBP - mostRecentAvailableMonth: '2023-03-01T00:00:00' - earliestAvailableMonth: '2021-04-01T00:00:00' - Exact (Netherlands): - value: - reports: - - fromDate: '2022-09-01T00:00:00Z' - toDate: '2022-09-30T00:00:00Z' - income: - name: Income - value: -286 - items: - - accountId: 2421e8a0-5355-4ec0-af11-021fe4f39fcd - name: 8000 - Omzet binnenland hoog tarief - value: -286 - items: [] - - accountId: 0b5b5d8b-1c0c-4767-88d8-c99206da6ace - name: 555777 - Sales - value: 0 - items: [] - costOfSales: - name: Cost of Sales - value: 0 - items: [] - grossProfit: -286 - expenses: - name: Expenses - value: 0 - items: [] - netOperatingProfit: -286 - otherExpenses: - name: Other Expenses - value: 5.25 - items: - - accountId: e405eff6-5c15-43b9-a5f0-ba592b26fbbe - name: 9410 - Inkoopkortingen - value: 5.25 - items: [] - otherIncome: - name: Other Income - value: 0 - items: [] - netOtherIncome: -5.25 - netProfit: -291.25 - - fromDate: '2022-08-01T00:00:00Z' - toDate: '2022-08-31T00:00:00Z' - income: - name: Income - value: 664.73 - items: - - accountId: 2421e8a0-5355-4ec0-af11-021fe4f39fcd - name: 8000 - Omzet binnenland hoog tarief - value: 643.33 - items: [] - - accountId: 62981769-c358-4ee5-aa8a-c9d5c559dd5c - name: 9275 - Activa realisatie verlies - value: -13.6 - items: [] - - accountId: f93008c5-f45b-4200-82a8-d0d5e1584ee7 - name: 1234567 - james_test2 - value: 35 - items: [] - costOfSales: - name: Cost of Sales - value: 0 - items: [] - grossProfit: 664.73 - expenses: - name: Expenses - value: 13.6 - items: - - accountId: 62981769-c358-4ee5-aa8a-c9d5c559dd5c - name: 9275 - Activa realisatie verlies - value: 13.6 - items: [] - netOperatingProfit: 651.13 - otherExpenses: - name: Other Expenses - value: 45 - items: - - accountId: e405eff6-5c15-43b9-a5f0-ba592b26fbbe - name: 9410 - Inkoopkortingen - value: 45 - items: [] - otherIncome: - name: Other Income - value: 0 - items: [] - netOtherIncome: -45 - netProfit: 606.13 - reportBasis: Unknown - currency: EUR - mostRecentAvailableMonth: '2022-09-01T00:00:00' - earliestAvailableMonth: '2020-11-01T00:00:00' - Exact (UK): - value: - reports: - - fromDate: '2022-10-01T00:00:00Z' - toDate: '2022-10-31T00:00:00Z' - income: - name: Income - value: -2 - items: - - accountId: 43acd218-6a95-445f-994c-660273e0ced9 - name: 41000 - Sales - value: -2 - items: [] - costOfSales: - name: Cost of Sales - value: 0 - items: [] - grossProfit: -2 - expenses: - name: Expenses - value: 0 - items: [] - netOperatingProfit: -2 - otherExpenses: - name: Other Expenses - value: 0 - items: [] - otherIncome: - name: Other Income - value: 0 - items: [] - netOtherIncome: 0 - netProfit: -2 - - fromDate: '2022-09-01T00:00:00Z' - toDate: '2022-09-30T00:00:00Z' - income: - name: Income - value: 208 - items: - - accountId: 43acd218-6a95-445f-994c-660273e0ced9 - name: 41000 - Sales - value: 208 - items: [] - costOfSales: - name: Cost of Sales - value: 0 - items: [] - grossProfit: 208 - expenses: - name: Expenses - value: 0 - items: [] - netOperatingProfit: 208 - otherExpenses: - name: Other Expenses - value: 0 - items: [] - otherIncome: - name: Other Income - value: 0 - items: [] - netOtherIncome: 0 - netProfit: 208 - reportBasis: Unknown - currency: GBP - mostRecentAvailableMonth: '2022-10-01T00:00:00' - earliestAvailableMonth: '2020-11-01T00:00:00' - FreshBooks: - value: - reports: - - fromDate: '2023-04-01T00:00:00' - toDate: '2023-04-30T00:00:00' - income: - name: Income - value: 0 - items: [] - costOfSales: - name: Cost of Sales - value: 0 - items: [] - grossProfit: 0 - expenses: - name: Expenses - value: 0 - items: [] - netOperatingProfit: 0 - otherExpenses: - name: Other Expenses - value: 0 - items: [] - otherIncome: - name: Other Income - value: 0 - items: [] - netOtherIncome: 0 - netProfit: 0 - - fromDate: '2023-03-01T00:00:00' - toDate: '2023-03-31T00:00:00' - income: - name: Income - value: 0 - items: [] - costOfSales: - name: Cost of Sales - value: 0 - items: [] - grossProfit: 0 - expenses: - name: Expenses - value: 24.05 - items: - - accountId: '3384197' - name: Advertising - value: 0.21 - items: [] - - accountId: '3380421' - name: Car & Truck Expenses - value: 11 - items: [] - - accountId: '3361426' - name: Meals & Entertainment - value: 12.82 - items: [] - - accountId: '3379249' - name: Supplies - value: 0.02 - items: [] - netOperatingProfit: -24.05 - otherExpenses: - name: Other Expenses - value: 0 - items: [] - otherIncome: - name: Other Income - value: 0 - items: [] - netOtherIncome: 0 - netProfit: -24.04 - reportBasis: Cash - currency: GBP - mostRecentAvailableMonth: '2023-04-01T00:00:00' - earliestAvailableMonth: '2021-05-01T00:00:00' - KashFlow: - value: - reports: - - fromDate: '2022-09-01T00:00:00' - toDate: '2022-09-30T00:00:00' - income: - name: Income - value: 0 - items: [] - costOfSales: - name: Cost Of Sales - value: 0 - items: [] - grossProfit: 0 - expenses: - name: Expenses - value: 0 - items: [] - netOperatingProfit: 0 - otherExpenses: - name: Other Expenses - value: 0 - items: [] - otherIncome: - name: Other Income - value: 0 - items: [] - netOtherIncome: 0 - netProfit: 0 - - fromDate: '2022-08-01T00:00:00' - toDate: '2022-08-31T00:00:00' - income: - name: Income - value: 0 - items: [] - costOfSales: - name: Cost Of Sales - value: 0 - items: [] - grossProfit: 0 - expenses: - name: Expenses - value: 0 - items: [] - netOperatingProfit: 0 - otherExpenses: - name: Other Expenses - value: 0 - items: [] - otherIncome: - name: Other Income - value: 0 - items: [] - netOtherIncome: 0 - netProfit: 0 - reportBasis: Unknown - currency: GBP - mostRecentAvailableMonth: '2022-09-01T00:00:00' - earliestAvailableMonth: '2020-10-01T00:00:00' - MYOB AccountRight and Essentials: - value: - reports: - - fromDate: '2022-11-01T00:00:00' - toDate: '2022-11-30T00:00:00' - income: - name: Income - value: 0 - items: [] - costOfSales: - name: Cost of Sales - value: 0 - items: [] - grossProfit: 0 - expenses: - name: Expenses - value: 0 - items: [] - netOperatingProfit: 0 - otherExpenses: - name: Other Expenses - value: 0 - items: [] - otherIncome: - name: Other Income - value: 0 - items: [] - netOtherIncome: 0 - netProfit: 0 - - fromDate: '2022-10-01T00:00:00' - toDate: '2022-10-31T00:00:00' - income: - name: Income - value: 0 - items: [] - costOfSales: - name: Cost of Sales - value: 0 - items: [] - grossProfit: 0 - expenses: - name: Expenses - value: 0 - items: [] - netOperatingProfit: 0 - otherExpenses: - name: Other Expenses - value: 0 - items: [] - otherIncome: - name: Other Income - value: 0 - items: [] - netOtherIncome: 0 - netProfit: 0 - reportBasis: Accrual - currency: GBP - mostRecentAvailableMonth: '2022-11-01T00:00:00' - earliestAvailableMonth: '2020-12-01T00:00:00' - Oracle NetSuite: - value: - reports: - - fromDate: '2023-03-01T00:00:00' - toDate: '2023-03-31T00:00:00' - income: - name: Income - value: 0 - items: [] - costOfSales: - name: Cost of Sales - value: 0 - items: [] - grossProfit: 0 - expenses: - name: Expenses - value: -123.45 - items: - - accountId: '58' - name: Expenses - value: -123.45 - items: [] - netOperatingProfit: 123.45 - otherExpenses: - name: Other Expenses - value: 0 - items: [] - otherIncome: - name: Other Income - value: 0 - items: [] - netOtherIncome: 0 - netProfit: 123.45 - - fromDate: '2023-01-01T00:00:00' - toDate: '2023-01-31T00:00:00' - income: - name: Income - value: 11 - items: - - accountId: '108' - name: Shipping and Handling - value: 11 - items: [] - costOfSales: - name: Cost of Sales - value: 0 - items: [] - grossProfit: 11 - expenses: - name: Expenses - value: 11 - items: - - accountId: '58' - name: Expenses - value: 11 - items: [] - netOperatingProfit: 0 - otherExpenses: - name: Other Expenses - value: 0 - items: [] - otherIncome: - name: Other Income - value: 0 - items: [] - netOtherIncome: 0 - netProfit: 0 - reportBasis: Accrual - currency: GBP - mostRecentAvailableMonth: '2023-03-01T00:00:00' - earliestAvailableMonth: '2022-11-01T00:00:00' - QuickBooks Desktop: - value: - reports: - - fromDate: '2023-04-01T00:00:00' - toDate: '2023-04-30T00:00:00' - income: - name: Income - value: 7673.5 - items: - - accountId: 170000-933270541 - name: 40100 � Construction Income - value: 7673.5 - items: - - accountId: 190000-933270541 - name: 40130 � Labor Income - value: 840 - items: [] - - accountId: 1A0000-933270542 - name: 40140 � Materials Income - value: 4103.5 - items: [] - - accountId: 1C0000-933270542 - name: 40150 � Subcontracted Labor Income - value: 2730 - items: [] - costOfSales: - name: Cost of Goods Sold - value: 1729.85 - items: - - accountId: 1E0000-933270542 - name: 50100 � Cost of Goods Sold - value: 329.85 - items: [] - - accountId: 300000-933270542 - name: 54000 � Job Expenses - value: 1400 - items: - - accountId: 340000-933270542 - name: 54500 � Subcontractors - value: 1400 - items: [] - grossProfit: 5943.65 - expenses: - name: Expense - value: 2417.29 - items: - - accountId: 1F0000-933270542 - name: 60100 � Automobile - value: 1066.56 - items: - - accountId: 200000-933270542 - name: 60110 � Fuel - value: 162 - items: [] - - accountId: 580000-1071498064 - name: 60120 � Insurance - value: 712.56 - items: [] - - accountId: 210000-933270542 - name: 60130 � Repairs and Maintenance - value: 192 - items: [] - - accountId: 230000-933270542 - name: 60600 � Bank Service Charges - value: 12.5 - items: [] - - accountId: 290000-933270542 - name: 62100 � Insurance - value: 675 - items: - - accountId: 2A0000-933270542 - name: 62110 � Disability Insurance - value: 50 - items: [] - - accountId: 2B0000-933270542 - name: 62120 � Liability Insurance - value: 350 - items: [] - - accountId: 2C0000-933270542 - name: 62130 � Work Comp - value: 275 - items: [] - - accountId: 2D0000-933270542 - name: 62400 � Interest Expense - value: 438.3 - items: - - accountId: 2F0000-933270542 - name: 62420 � Loan Interest - value: 438.3 - items: [] - - accountId: 480000-933270542 - name: 65100 � Utilities - value: 224.93 - items: - - accountId: 490000-933270542 - name: 65110 � Gas and Electric - value: 120.93 - items: [] - - accountId: 4A0000-933270542 - name: 65120 � Telephone - value: 80 - items: [] - - accountId: 4B0000-933270542 - name: 65130 � Water - value: 24 - items: [] - netOperatingProfit: 3526.36 - otherExpenses: - name: Other Expense - value: 0 - items: [] - otherIncome: - name: Other Income - value: 0 - items: [] - netOtherIncome: 0 - netProfit: 3526.36 - - fromDate: '2023-03-01T00:00:00' - toDate: '2023-03-31T00:00:00' - income: - name: Income - value: 16500 - items: - - accountId: 170000-933270541 - name: 40100 � Construction Income - value: 16500 - items: - - accountId: 1C0000-933270542 - name: 40150 � Subcontracted Labor Income - value: 16500 - items: [] - costOfSales: - name: Cost of Goods Sold - value: 7500 - items: - - accountId: 300000-933270542 - name: 54000 � Job Expenses - value: 7500 - items: - - accountId: 340000-933270542 - name: 54500 � Subcontractors - value: 7500 - items: [] - grossProfit: 9000 - expenses: - name: Expense - value: 3159.99 - items: - - accountId: 1F0000-933270542 - name: 60100 � Automobile - value: 359 - items: - - accountId: 200000-933270542 - name: 60110 � Fuel - value: 127 - items: [] - - accountId: 210000-933270542 - name: 60130 � Repairs and Maintenance - value: 232 - items: [] - - accountId: 230000-933270542 - name: 60600 � Bank Service Charges - value: 12.5 - items: [] - - accountId: 290000-933270542 - name: 62100 � Insurance - value: 675 - items: - - accountId: 2A0000-933270542 - name: 62110 � Disability Insurance - value: 50 - items: [] - - accountId: 2B0000-933270542 - name: 62120 � Liability Insurance - value: 350 - items: [] - - accountId: 2C0000-933270542 - name: 62130 � Work Comp - value: 275 - items: [] - - accountId: 2D0000-933270542 - name: 62400 � Interest Expense - value: 456.29 - items: - - accountId: 2F0000-933270542 - name: 62420 � Loan Interest - value: 456.29 - items: [] - - accountId: 3D0000-933270542 - name: 64200 � Repairs - value: 1164 - items: - - accountId: 3F0000-933270542 - name: 64220 � Computer Repairs - value: 714 - items: [] - - accountId: 400000-933270542 - name: 64230 � Equipment Repairs - value: 450 - items: [] - - accountId: 480000-933270542 - name: 65100 � Utilities - value: 493.2 - items: - - accountId: 490000-933270542 - name: 65110 � Gas and Electric - value: 389.2 - items: [] - - accountId: 4A0000-933270542 - name: 65120 � Telephone - value: 80 - items: [] - - accountId: 4B0000-933270542 - name: 65130 � Water - value: 24 - items: [] - netOperatingProfit: 5840.01 - otherExpenses: - name: Other Expense - value: 0 - items: [] - otherIncome: - name: Other Income - value: 93.42 - items: - - accountId: 4C0000-933270542 - name: 70200 � Interest Income - value: 93.42 - items: [] - netOtherIncome: 93.42 - netProfit: 5933.43 - reportBasis: Accrual - currency: GBP - mostRecentAvailableMonth: '2023-04-01T00:00:00' - earliestAvailableMonth: '2021-05-01T00:00:00' - QuickBooks Online Sandbox: - value: - reports: - - fromDate: '2023-04-01T00:00:00' - toDate: '2023-04-30T00:00:00' - income: - name: Income - value: 35.7 - items: - - accountId: '68' - name: Billable Expenses Income - value: -15 - items: [] - - accountId: '44' - name: Sales - value: 130 - items: [] - - accountId: '66' - name: Sales of Product Income - value: 42.5 - items: [] - - accountId: '1' - name: Services - value: -131.8 - items: [] - - accountId: '149' - name: Shipping Income - value: 10 - items: [] - costOfSales: - name: Cost of Sales - value: -8.16 - items: - - accountId: '67' - name: Cost of sales - value: 33.51 - items: [] - - accountId: '69' - name: Cost of Sales - billable expenses - value: -41.67 - items: [] - grossProfit: 43.86 - expenses: - name: Expenses - value: -987 - items: - - accountId: '148' - name: Billable Test - value: -250 - items: [] - - accountId: '16' - name: Computer and Internet Expenses - value: -897 - items: [] - - accountId: '18' - name: Depreciation Expense - value: 100 - items: [] - - accountId: '19' - name: Dues and Subscriptions - value: -40 - items: [] - - accountId: '64' - name: Purchases - value: 100 - items: [] - netOperatingProfit: 1030.86 - otherExpenses: - name: Other Expenses - value: 0 - items: [] - otherIncome: - name: Other Income - value: 0 - items: [] - netOtherIncome: 0 - netProfit: 1030.86 - - fromDate: '2023-03-01T00:00:00' - toDate: '2023-03-31T00:00:00' - income: - name: Income - value: 1664.93 - items: - - accountId: '14' - name: Commission Income - value: 64 - items: [] - - accountId: '44' - name: Sales - value: 952.29 - items: [] - - accountId: '43' - name: Sales Discounts - value: 9.05 - items: [] - - accountId: '66' - name: Sales of Product Income - value: 223.52 - items: [] - - accountId: '1' - name: Services - value: 392.32 - items: [] - - accountId: '149' - name: Shipping Income - value: 23.75 - items: [] - costOfSales: - name: Cost of Sales - value: 2568.09 - items: - - accountId: '67' - name: Cost of sales - value: 27.09 - items: [] - - accountId: '69' - name: Cost of Sales - billable expenses - value: 41 - items: [] - - accountId: '10' - name: Entertainment Booking Fees paid on behalf of clients - value: 2500 - items: [] - grossProfit: -903.16 - expenses: - name: Expenses - value: 397.62 - items: - - accountId: '148' - name: Billable Test - value: -35.75 - items: [] - - accountId: '12' - name: Business Licenses and Permits - value: -8 - items: [] - - accountId: '16' - name: Computer and Internet Expenses - value: 42.46 - items: [] - - accountId: '20' - name: Equipment rental - value: -22.76 - items: [] - - accountId: '116' - name: HM Revenue & Customs (VAT) Expense - value: -25.2 - items: [] - - accountId: '24' - name: Insurance Expense - value: 5.32 - items: [] - - accountId: '23' - name: Insurance Expense-Health Insurance - value: -34 - items: [] - - accountId: '31' - name: Marketing Expense - value: -11.56 - items: [] - - accountId: '35' - name: Office Supplies - value: -12.89 - items: [] - - accountId: '64' - name: Purchases - value: 500 - items: [] - netOperatingProfit: -1300.78 - otherExpenses: - name: Other Expenses - value: 11.92 - items: - - accountId: '52' - name: Exchange Gain or Loss - value: 11.92 - items: [] - otherIncome: - name: Other Income - value: 29.41 - items: - - accountId: '21' - name: Finance Charge Income - value: -13.44 - items: [] - - accountId: '27' - name: Insurance Proceeds Received - value: 7.85 - items: [] - - accountId: '29' - name: Interest income - value: 15 - items: [] - - accountId: '39' - name: Proceeds from Sale of Assets - value: 20 - items: [] - netOtherIncome: 17.49 - netProfit: -1283.29 - reportBasis: Accrual - currency: GBP - mostRecentAvailableMonth: '2023-04-01T00:00:00' - earliestAvailableMonth: '2021-05-01T00:00:00' - QuickBooks Online: - value: - reports: - - fromDate: '2023-01-01T00:00:00' - toDate: '2023-01-31T00:00:00' - income: - name: Income - value: 0 - items: [] - costOfSales: - name: Cost of Sales - value: 0 - items: [] - grossProfit: 0 - expenses: - name: Expenses - value: 4300 - items: - - accountId: '68' - name: 303 HM Revenue & Customs (VAT) Expense - value: 250 - items: [] - - accountId: '22' - name: 408 Travelling expenses - value: 4050 - items: [] - netOperatingProfit: -4300 - otherExpenses: - name: Other Expenses - value: 0 - items: [] - otherIncome: - name: Other Income - value: 0 - items: [] - netOtherIncome: 0 - netProfit: -4300 - - fromDate: '2022-12-01T00:00:00' - toDate: '2022-12-31T00:00:00' - income: - name: Income - value: 0 - items: [] - costOfSales: - name: Cost of Sales - value: 0 - items: [] - grossProfit: 0 - expenses: - name: Expenses - value: 10 - items: - - accountId: '16' - name: 292 Advertising - value: 10 - items: [] - netOperatingProfit: -10 - otherExpenses: - name: Other Expenses - value: 0 - items: [] - otherIncome: - name: Other Income - value: 0 - items: [] - netOtherIncome: 0 - netProfit: -10 - reportBasis: Accrual - currency: GBP - mostRecentAvailableMonth: '2023-01-01T00:00:00' - earliestAvailableMonth: '2021-02-01T00:00:00' - Sage 200cloud: - value: - reports: - - fromDate: '2020-12-01T00:00:00Z' - toDate: '2020-12-31T00:00:00Z' - income: - name: Income - value: 0 - items: - - name: Total Sales - value: 0 - items: - - accountId: '101' - name: Product Sales - value: 0 - items: [] - - accountId: '102' - name: Export Sales - value: 0 - items: [] - - accountId: '103' - name: Sales of Assets - value: 0 - items: [] - - accountId: '104' - name: Credit Charges (Late Payments) - value: 0 - items: [] - - accountId: '105' - name: Other Sales - value: 0 - items: [] - costOfSales: - name: Cost of Sales - value: 0 - items: - - name: Total Purchases - value: 0 - items: - - accountId: '201' - name: Purchases - value: 0 - items: [] - - accountId: '202' - name: Purchase Charges - value: 0 - items: [] - - accountId: '203' - name: Stock - value: 0 - items: [] - - name: Total Direct Expenses - value: 0 - items: - - accountId: '301' - name: Labour - value: 0 - items: [] - - accountId: '302' - name: Commissions - value: 0 - items: [] - - accountId: '303' - name: Sales Promotion - value: 0 - items: [] - - accountId: '304' - name: Miscellaneous Expenses - value: 0 - items: [] - grossProfit: 0 - expenses: - name: Expenses - value: 0 - items: - - name: Total Overheads - value: 0 - items: - - accountId: '401' - name: Gross Wages - value: 0 - items: [] - - accountId: '402' - name: Rent and Rates - value: 0 - items: [] - - accountId: '403' - name: 'Heat, Light and Power' - value: 0 - items: [] - - accountId: '404' - name: Motor Expenses - value: 0 - items: [] - - accountId: '405' - name: Travelling and Entertainment - value: 0 - items: [] - - accountId: '406' - name: Printing and Stationery - value: 0 - items: [] - - accountId: '407' - name: Professional Fees - value: 0 - items: [] - - accountId: '408' - name: Equipment Hire and Rental - value: 0 - items: [] - - accountId: '409' - name: Maintenance - value: 0 - items: [] - - accountId: '410' - name: Bank Charges and Interest - value: 0 - items: [] - - accountId: '411' - name: Depreciation - value: 0 - items: [] - - accountId: '412' - name: Bad Debts - value: 0 - items: [] - - accountId: '413' - name: General Expenses - value: 0 - items: [] - - accountId: '414' - name: Suspense & Mispostings - value: 0 - items: [] - netOperatingProfit: 0 - otherExpenses: - name: Other Expenses - value: 0 - items: - - accountId: '10,1001' - name: Taxation - value: 0 - items: [] - otherIncome: - name: Other Income - value: 0 - items: [] - netOtherIncome: 0 - netProfit: 0 - - fromDate: '2020-11-01T00:00:00Z' - toDate: '2020-11-30T00:00:00Z' - income: - name: Income - value: 0 - items: - - name: Total Sales - value: 0 - items: - - accountId: '101' - name: Product Sales - value: 0 - items: [] - - accountId: '102' - name: Export Sales - value: 0 - items: [] - - accountId: '103' - name: Sales of Assets - value: 0 - items: [] - - accountId: '104' - name: Credit Charges (Late Payments) - value: 0 - items: [] - - accountId: '105' - name: Other Sales - value: 0 - items: [] - costOfSales: - name: Cost of Sales - value: 0 - items: - - name: Total Purchases - value: 0 - items: - - accountId: '201' - name: Purchases - value: 0 - items: [] - - accountId: '202' - name: Purchase Charges - value: 0 - items: [] - - accountId: '203' - name: Stock - value: 0 - items: [] - - name: Total Direct Expenses - value: 0 - items: - - accountId: '301' - name: Labour - value: 0 - items: [] - - accountId: '302' - name: Commissions - value: 0 - items: [] - - accountId: '303' - name: Sales Promotion - value: 0 - items: [] - - accountId: '304' - name: Miscellaneous Expenses - value: 0 - items: [] - grossProfit: 0 - expenses: - name: Expenses - value: 0 - items: - - name: Total Overheads - value: 0 - items: - - accountId: '401' - name: Gross Wages - value: 0 - items: [] - - accountId: '402' - name: Rent and Rates - value: 0 - items: [] - - accountId: '403' - name: 'Heat, Light and Power' - value: 0 - items: [] - - accountId: '404' - name: Motor Expenses - value: 0 - items: [] - - accountId: '405' - name: Travelling and Entertainment - value: 0 - items: [] - - accountId: '406' - name: Printing and Stationery - value: 0 - items: [] - - accountId: '407' - name: Professional Fees - value: 0 - items: [] - - accountId: '408' - name: Equipment Hire and Rental - value: 0 - items: [] - - accountId: '409' - name: Maintenance - value: 0 - items: [] - - accountId: '410' - name: Bank Charges and Interest - value: 0 - items: [] - - accountId: '411' - name: Depreciation - value: 0 - items: [] - - accountId: '412' - name: Bad Debts - value: 0 - items: [] - - accountId: '413' - name: General Expenses - value: 0 - items: [] - - accountId: '414' - name: Suspense & Mispostings - value: 0 - items: [] - netOperatingProfit: 0 - otherExpenses: - name: Other Expenses - value: 0 - items: - - accountId: '10,1001' - name: Taxation - value: 0 - items: [] - otherIncome: - name: Other Income - value: 0 - items: [] - netOtherIncome: 0 - netProfit: 0 - reportBasis: Accrual - currency: GBP - mostRecentAvailableMonth: '2020-12-01T00:00:00' - earliestAvailableMonth: '2015-01-01T00:00:00' - Sage 50 (UK): - value: - reports: - - fromDate: '2023-03-01T00:00:00' - toDate: '2023-03-31T00:00:00' - income: - name: Income - value: 0 - items: [] - costOfSales: - name: Cost of Sales - value: 0 - items: [] - grossProfit: 0 - expenses: - name: Expenses - value: 0 - items: [] - netOperatingProfit: 0 - otherExpenses: - name: Other Expenses - value: 0 - items: [] - otherIncome: - name: Other Income - value: 0 - items: [] - netOtherIncome: 0 - netProfit: 0 - - fromDate: '2023-02-01T00:00:00' - toDate: '2023-02-28T00:00:00' - income: - name: Income - value: 0 - items: [] - costOfSales: - name: Cost of Sales - value: 0 - items: [] - grossProfit: 0 - expenses: - name: Expenses - value: 0 - items: [] - netOperatingProfit: 0 - otherExpenses: - name: Other Expenses - value: 0 - items: [] - otherIncome: - name: Other Income - value: 0 - items: [] - netOtherIncome: 0 - netProfit: 0 - reportBasis: Unknown - currency: GBP - mostRecentAvailableMonth: '2023-03-01T00:00:00' - earliestAvailableMonth: '2021-04-01T00:00:00' - Sage Business Cloud Accounting: - value: - reports: - - fromDate: '2022-10-01T00:00:00' - toDate: '2022-10-31T00:00:00' - income: - name: Income - value: -7749 - items: - - accountId: 9a994b92267a11e797950a57719b2edb - name: 4000 - Sales Type A - value: -7740 - items: [] - - accountId: 9a994e06267a11e797950a57719b2edb - name: 4009 - Sales Discounts - value: -9 - items: [] - costOfSales: - name: Cost of Sales - value: 11602000 - items: - - accountId: 9a995955267a11e797950a57719b2edb - name: 5000 - Cost of sales - goods - value: 11602000 - items: [] - grossProfit: -11609749 - expenses: - name: Expenses - value: -1.83 - items: - - accountId: 9a99a91c267a11e797950a57719b2edb - name: 8211 - Exchange rate gain/(loss) - value: -1.83 - items: [] - netOperatingProfit: -11609747.17 - otherExpenses: - name: Other Expenses - value: 0 - items: [] - otherIncome: - name: Other Income - value: 0 - items: [] - netOtherIncome: 0 - netProfit: -11609747.17 - - fromDate: '2022-09-01T00:00:00' - toDate: '2022-09-30T00:00:00' - income: - name: Income - value: 501 - items: - - accountId: 9a994b92267a11e797950a57719b2edb - name: 4000 - Sales Type A - value: 511 - items: [] - - accountId: 9a994e06267a11e797950a57719b2edb - name: 4009 - Sales Discounts - value: -10 - items: [] - costOfSales: - name: Cost of Sales - value: 13220073.7 - items: - - accountId: 9a995955267a11e797950a57719b2edb - name: 5000 - Cost of sales - goods - value: 13220073.7 - items: [] - grossProfit: -13219572.7 - expenses: - name: Expenses - value: 0 - items: [] - netOperatingProfit: -13219572.7 - otherExpenses: - name: Other Expenses - value: 0 - items: [] - otherIncome: - name: Other Income - value: -148.34 - items: - - accountId: 9a995491267a11e797950a57719b2edb - name: 4900 - Other income - value: -148.34 - items: [] - netOtherIncome: -148.34 - netProfit: -13219721.04 - reportBasis: Unknown - currency: GBP - mostRecentAvailableMonth: '2022-10-01T00:00:00' - earliestAvailableMonth: '2020-11-01T00:00:00' - Wave: - value: - reports: - - fromDate: '2022-11-01T00:00:00' - toDate: '2022-11-30T00:00:00' - income: - name: Income - value: 7.01 - items: - - name: Unrealized Gain on Foreign Exchange - value: 7.01 - items: [] - costOfSales: - name: Cost of Goods Sold - value: 0 - items: [] - grossProfit: 7.01 - expenses: - name: Operating Expenses - value: 555 - items: - - name: Office Supplies - value: 555 - items: [] - netOperatingProfit: -547.99 - otherExpenses: - name: Other Expenses - value: 0 - items: [] - otherIncome: - name: Other Income - value: 0 - items: [] - netOtherIncome: 0 - netProfit: -547.99 - - fromDate: '2022-10-01T00:00:00' - toDate: '2022-10-31T00:00:00' - income: - name: Income - value: 8.36 - items: - - name: Unrealized Gain on Foreign Exchange - value: 8.36 - items: [] - costOfSales: - name: Cost of Goods Sold - value: 0 - items: [] - grossProfit: 8.36 - expenses: - name: Operating Expenses - value: 0 - items: [] - netOperatingProfit: 8.36 - otherExpenses: - name: Other Expenses - value: 0 - items: [] - otherIncome: - name: Other Income - value: 0 - items: [] - netOtherIncome: 0 - netProfit: 8.36 - reportBasis: Accrual - currency: GBP - mostRecentAvailableMonth: '2022-11-01T00:00:00' - earliestAvailableMonth: '2020-12-01T00:00:00' - Xero: - value: - reports: - - fromDate: '2023-03-01T00:00:00' - toDate: '2023-03-31T00:00:00' - income: - name: Income - value: 0 - items: [] - costOfSales: - name: Cost of Sales - value: 0 - items: [] - grossProfit: 0 - expenses: - name: Expenses - value: 0 - items: [] - netOperatingProfit: 0 - otherExpenses: - name: Other Expenses - value: 0 - items: [] - otherIncome: - name: Other Income - value: 0 - items: [] - netOtherIncome: 0 - netProfit: 0 - - fromDate: '2023-02-01T00:00:00' - toDate: '2023-02-28T00:00:00' - income: - name: Income - value: 14496.51 - items: - - accountId: c563b607-fb0e-4d06-9ddb-76fdeef20ae3 - name: Sales - value: 14496.51 - items: [] - costOfSales: - name: Cost of Sales - value: 700 - items: - - accountId: 127f3b99-8dc2-4b7e-854c-91ef9bd2757b - name: Purchases - value: 700 - items: [] - grossProfit: 13796.51 - expenses: - name: Expenses - value: 2026.92 - items: - - accountId: f96c9458-d724-47bf-8f74-a9d5726465ce - name: General Expenses - value: 215.87 - items: [] - - accountId: d50842c3-af67-4233-b8c9-df3180f5b7bd - name: 'Light, Power, Heating' - value: 103.43 - items: [] - - accountId: 0be1631e-cc7e-4c27-951f-308c3307c0fe - name: Motor Vehicle Expenses - value: 342.79 - items: [] - - accountId: a49cc958-968e-4b54-96d6-8853c036009e - name: 'Postage, Freight & Courier' - value: 94.19 - items: [] - - accountId: cba6527d-f102-4538-b421-e483233e9d5a - name: Printing & Stationery - value: 24.58 - items: [] - - accountId: dae8e236-24bb-4a7a-9787-c5fd89385e03 - name: Rent - value: 984.38 - items: [] - - accountId: a40f43e2-c7b0-4187-919a-04ccdc14a630 - name: Subscriptions - value: 14.9 - items: [] - - accountId: f3c73c3d-9887-4377-b18b-0374ab62e4aa - name: Telephone & Internet - value: 45.11 - items: [] - - accountId: c7b73345-7f25-428a-bb97-7b20a1470a53 - name: Travel - National - value: 201.67 - items: [] - netOperatingProfit: 11769.59 - otherExpenses: - name: Other Expenses - value: 0 - items: [] - otherIncome: - name: Other Income - value: 0 - items: [] - netOtherIncome: 0 - netProfit: 11769.59 - reportBasis: Accrual - currency: GBP - mostRecentAvailableMonth: '2023-03-01T00:00:00' - earliestAvailableMonth: '2021-04-01T00:00:00' - Zoho Books: - value: - reports: - - fromDate: '2022-10-01T00:00:00' - toDate: '2022-10-31T00:00:00' - income: - name: Operating Income - value: 0 - items: - - accountId: '104957000000000394' - name: Discount - value: 0 - items: [] - - accountId: '104957000000000379' - name: General Income - value: 0 - items: [] - - accountId: '104957000000099070' - name: General Income Child Test - value: 0 - items: [] - - accountId: '104957000000000382' - name: Interest Income - value: 0 - items: [] - - accountId: '104957000000000385' - name: Late Fee Income - value: 0 - items: [] - - accountId: '104957000000000503' - name: Other Charges - value: 0 - items: [] - - accountId: '104957000000000376' - name: Sales - value: 0 - items: [] - - accountId: '104957000000000506' - name: Shipping Charge - value: 0 - items: [] - costOfSales: - name: Cost of Goods Sold - value: 0 - items: - - accountId: '104957000000000509' - name: Cost of Goods Sold - value: 0 - items: [] - grossProfit: 0 - expenses: - name: Operating Expense - value: 0 - items: - - accountId: '104957000000000391' - name: Advertising And Marketing - value: 0 - items: [] - - accountId: '104957000000000406' - name: Air Travel Expense - value: 0 - items: [] - - accountId: '104957000000000412' - name: Automobile Expense - value: 0 - items: [] - - accountId: '104957000000000427' - name: Bad Debt - value: 0 - items: [] - - accountId: '104957000000000397' - name: Bank Fees and Charges - value: 0 - items: [] - - accountId: '104957000000000442' - name: Consultant Expense - value: 0 - items: [] - - accountId: '104957000000000400' - name: Credit Card Charges - value: 0 - items: [] - - accountId: '104957000000000439' - name: Depreciation Expense - value: 0 - items: [] - - accountId: '104957000000243027' - name: Fuel/Mileage Expenses - value: 0 - items: [] - - accountId: '104957000000000415' - name: IT and Internet Expenses - value: 0 - items: [] - - accountId: '104957000000000421' - name: Janitorial Expense - value: 0 - items: [] - - accountId: '104957000000000454' - name: Lodging - value: 0 - items: [] - - accountId: '104957000000000436' - name: Meals and Entertainment - value: 0 - items: [] - - accountId: '104957000000000388' - name: Office Supplies - value: 0 - items: [] - - accountId: '104957000000000448' - name: Other Expenses - value: 0 - items: [] - - accountId: '104957000000000424' - name: Postage - value: 0 - items: [] - - accountId: '104957000000000430' - name: Printing and Stationery - value: 0 - items: [] - - accountId: '104957000000639102' - name: Purchase Discounts - value: 0 - items: [] - - accountId: '104957000000000418' - name: Rent Expense - value: 0 - items: [] - - accountId: '104957000000000445' - name: Repairs and Maintenance - value: 0 - items: [] - - accountId: '104957000000000433' - name: Salaries and Employee Wages - value: 0 - items: [] - - accountId: '104957000000000409' - name: Telephone Expense - value: 0 - items: [] - - accountId: '104957000000000463' - name: Uncategorized - value: 0 - items: [] - netOperatingProfit: 0 - otherExpenses: - name: Non Operating Expense - value: 0 - items: - - accountId: '104957000000000403' - name: Exchange Gain or Loss - value: 0 - items: [] - - accountId: '104957000000099003' - name: Insurance Expenses (Test Other Expense) - value: 0 - items: [] - otherIncome: - name: Non Operating Income - value: 0 - items: - - accountId: '104957000000054032' - name: Flat Rate Profit - value: 0 - items: [] - - accountId: '104957000000099009' - name: Interest Earned (Test Other Income) - value: 0 - items: [] - netOtherIncome: 0 - netProfit: 0 - - fromDate: '2022-09-01T00:00:00' - toDate: '2022-09-30T00:00:00' - income: - name: Operating Income - value: 69 - items: - - accountId: '104957000000000394' - name: Discount - value: 0 - items: [] - - accountId: '104957000000000379' - name: General Income - value: 0 - items: [] - - accountId: '104957000000099070' - name: General Income Child Test - value: 0 - items: [] - - accountId: '104957000000000382' - name: Interest Income - value: 0 - items: [] - - accountId: '104957000000000385' - name: Late Fee Income - value: 0 - items: [] - - accountId: '104957000000000503' - name: Other Charges - value: 0 - items: [] - - accountId: '104957000000000376' - name: Sales - value: 69 - items: [] - - accountId: '104957000000000506' - name: Shipping Charge - value: 0 - items: [] - costOfSales: - name: Cost of Goods Sold - value: 35 - items: - - accountId: '104957000000000509' - name: Cost of Goods Sold - value: 35 - items: [] - grossProfit: 34 - expenses: - name: Operating Expense - value: 69 - items: - - accountId: '104957000000000391' - name: Advertising And Marketing - value: 0 - items: [] - - accountId: '104957000000000406' - name: Air Travel Expense - value: 0 - items: [] - - accountId: '104957000000000412' - name: Automobile Expense - value: 0 - items: [] - - accountId: '104957000000000427' - name: Bad Debt - value: 69 - items: [] - - accountId: '104957000000000397' - name: Bank Fees and Charges - value: 0 - items: [] - - accountId: '104957000000000442' - name: Consultant Expense - value: 0 - items: [] - - accountId: '104957000000000400' - name: Credit Card Charges - value: 0 - items: [] - - accountId: '104957000000000439' - name: Depreciation Expense - value: 0 - items: [] - - accountId: '104957000000243027' - name: Fuel/Mileage Expenses - value: 0 - items: [] - - accountId: '104957000000000415' - name: IT and Internet Expenses - value: 0 - items: [] - - accountId: '104957000000000421' - name: Janitorial Expense - value: 0 - items: [] - - accountId: '104957000000000454' - name: Lodging - value: 0 - items: [] - - accountId: '104957000000000436' - name: Meals and Entertainment - value: 0 - items: [] - - accountId: '104957000000000388' - name: Office Supplies - value: 0 - items: [] - - accountId: '104957000000000448' - name: Other Expenses - value: 0 - items: [] - - accountId: '104957000000000424' - name: Postage - value: 0 - items: [] - - accountId: '104957000000000430' - name: Printing and Stationery - value: 0 - items: [] - - accountId: '104957000000639102' - name: Purchase Discounts - value: 0 - items: [] - - accountId: '104957000000000418' - name: Rent Expense - value: 0 - items: [] - - accountId: '104957000000000445' - name: Repairs and Maintenance - value: 0 - items: [] - - accountId: '104957000000000433' - name: Salaries and Employee Wages - value: 0 - items: [] - - accountId: '104957000000000409' - name: Telephone Expense - value: 0 - items: [] - - accountId: '104957000000000463' - name: Uncategorized - value: 0 - items: [] - netOperatingProfit: -35 - otherExpenses: - name: Non Operating Expense - value: 0 - items: - - accountId: '104957000000000403' - name: Exchange Gain or Loss - value: 0 - items: [] - - accountId: '104957000000099003' - name: Insurance Expenses (Test Other Expense) - value: 0 - items: [] - otherIncome: - name: Non Operating Income - value: 0 - items: - - accountId: '104957000000054032' - name: Flat Rate Profit - value: 0 - items: [] - - accountId: '104957000000099009' - name: Interest Earned (Test Other Income) - value: 0 - items: [] - netOtherIncome: 0 - netProfit: -35 - reportBasis: Accrual - currency: GBP - mostRecentAvailableMonth: '2022-10-01T00:00:00' - earliestAvailableMonth: '2020-11-01T00:00:00' - '401': - $ref: '#/components/responses/Unauthorized' - '402': - $ref: '#/components/responses/Payment-Required' - '403': - $ref: '#/components/responses/Forbidden' - '404': - $ref: '#/components/responses/Not-Found' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - '/companies/{companyId}/data/financials/cashFlowStatement': - parameters: - - $ref: '#/components/parameters/companyId' - get: - tags: - - Financial statements - summary: Get cash flow statement - description: Gets the latest cash flow statement for a company. - operationId: get-accounting-cash-flow-statement - x-speakeasy-group: financial-statements.cash-flow - parameters: - - $ref: '#/components/parameters/accountingPeriodLength' - - $ref: '#/components/parameters/accountingPeriodsToCompare' - - $ref: '#/components/parameters/accountingStartMonth' - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/AccountingCashFlowStatement' - examples: - Clear Books: - value: - reports: - - fromDate: '2021-02-01T00:00:00' - toDate: '2021-02-28T00:00:00' - cashReceipts: - accountId: cashReceipts - name: Cash Receipts - value: 18377.72 - items: - - accountId: 1b6266d1-1e44-46c5-8eb5-a8f98e03124e - name: Accounts Receivable - value: 11417.63 - items: [] - - accountId: 72df89d2-512b-4455-af51-a6b563733842 - name: Income - value: 6960.09 - items: [] - - accountId: 68794a8f-b22d-4520-b97b-025b7cb10f94 - name: Other Income - value: 0 - items: [] - cashPayments: - accountId: cashPayments - name: Cash Payments - value: 12377.81 - items: - - accountId: 53bf27a7-7497-4c61-9887-dfaad5c6d80a - name: Accounts Payable - value: 7479.21 - items: [] - - accountId: 7403e960-5b72-42ff-abf4-c870ad8910bd - name: Cost of Sales - value: 700 - items: [] - - accountId: e6f7e297-59d6-4bd5-9353-478ee9b39685 - name: Expenses - value: 4198.6 - items: [] - - accountId: b5e801e8-8dbc-4390-ac99-3b0fff54a89f - name: Other Expenses - value: 0 - items: [] - - fromDate: '2021-01-01T00:00:00' - toDate: '2021-01-31T00:00:00' - cashReceipts: - accountId: cashReceipts - name: Cash Receipts - value: 14508.56 - items: - - accountId: 1b6266d1-1e44-46c5-8eb5-a8f98e03124e - name: Accounts Receivable - value: 3055.53 - items: [] - - accountId: 72df89d2-512b-4455-af51-a6b563733842 - name: Income - value: 11453.03 - items: [] - - accountId: 68794a8f-b22d-4520-b97b-025b7cb10f94 - name: Other Income - value: 0 - items: [] - cashPayments: - accountId: cashPayments - name: Cash Payments - value: 18902.85 - items: - - accountId: 53bf27a7-7497-4c61-9887-dfaad5c6d80a - name: Accounts Payable - value: 9673.66 - items: [] - - accountId: 7403e960-5b72-42ff-abf4-c870ad8910bd - name: Cost of Sales - value: 1250 - items: [] - - accountId: e6f7e297-59d6-4bd5-9353-478ee9b39685 - name: Expenses - value: 7979.19 - items: [] - - accountId: b5e801e8-8dbc-4390-ac99-3b0fff54a89f - name: Other Expenses - value: 0 - items: [] - reportBasis: Cash - reportInput: Direct - currency: GBP - mostRecentAvailableMonth: '2021-02-28T00:00:00' - earliestAvailableMonth: '2019-03-01T00:00:00' - FreshBooks: - value: - reports: - - fromDate: '2023-04-01T00:00:00' - toDate: '2023-04-30T00:00:00' - cashReceipts: - accountId: CashReceipts - name: CashReceipts - value: 0 - items: [] - cashPayments: - accountId: CashPayments - name: CashPayments - value: 0 - items: [] - - fromDate: '2023-03-01T00:00:00' - toDate: '2023-03-31T00:00:00' - cashReceipts: - accountId: CashReceipts - name: CashReceipts - value: 0 - items: [] - cashPayments: - accountId: CashPayments - name: CashPayments - value: 0 - items: [] - reportBasis: Cash - reportInput: Indirect - currency: GBP - mostRecentAvailableMonth: '2023-04-30T00:00:00' - earliestAvailableMonth: '2021-05-01T00:00:00' - QuickBooks Online Sandbox: - value: - reports: - - fromDate: '2023-04-01T00:00:00' - toDate: '2023-04-30T00:00:00' - cashReceipts: - accountId: cashReceipts - name: Cash Receipts - value: 754.59 - items: - - accountId: income - name: Income - value: 729.59 - items: [] - - accountId: accountsReceivable - name: Accounts Receivable - value: 25 - items: [] - cashPayments: - accountId: cashPayments - name: Cash Payments - value: -987.94 - items: - - accountId: costOfSales - name: Cost of Sales - value: 24.06 - items: [] - - accountId: expenses - name: Expenses - value: -1012 - items: [] - - fromDate: '2023-03-01T00:00:00' - toDate: '2023-03-31T00:00:00' - cashReceipts: - accountId: cashReceipts - name: Cash Receipts - value: 1776.25 - items: - - accountId: income - name: Income - value: 1652.12 - items: [] - - accountId: accountsReceivable - name: Accounts Receivable - value: 124.13 - items: [] - cashPayments: - accountId: cashPayments - name: Cash Payments - value: 2494.43 - items: - - accountId: costOfSales - name: Cost of Sales - value: 2562 - items: [] - - accountId: accountsPayable - name: Accounts Payable - value: 38.02 - items: [] - - accountId: expenses - name: Expenses - value: -105.59 - items: [] - reportBasis: Cash - reportInput: Direct - currency: GBP - mostRecentAvailableMonth: '2023-04-30T00:00:00' - earliestAvailableMonth: '2021-05-01T00:00:00' - QuickBooks Online: - value: - reports: - - fromDate: '2023-01-01T00:00:00' - toDate: '2023-01-31T00:00:00' - cashReceipts: - accountId: cashReceipts - name: Cash Receipts - value: 0 - items: [] - cashPayments: - accountId: cashPayments - name: Cash Payments - value: 4300 - items: - - accountId: expenses - name: Expenses - value: 4300 - items: [] - - fromDate: '2022-12-01T00:00:00' - toDate: '2022-12-31T00:00:00' - cashReceipts: - accountId: cashReceipts - name: Cash Receipts - value: 0 - items: [] - cashPayments: - accountId: cashPayments - name: Cash Payments - value: 10 - items: - - accountId: expenses - name: Expenses - value: 10 - items: [] - reportBasis: Cash - reportInput: Direct - currency: GBP - mostRecentAvailableMonth: '2023-01-31T00:00:00' - earliestAvailableMonth: '2021-02-01T00:00:00' - Xero: - value: - reports: - - fromDate: '2023-03-01T00:00:00' - toDate: '2023-03-31T23:59:59.9999999' - cashReceipts: - accountId: cashReceipt - name: Cash Receipts - value: 0 - items: [] - cashPayments: - accountId: cashPayment - name: Cash Payments - value: 0 - items: [] - - fromDate: '2023-02-01T00:00:00' - toDate: '2023-02-28T23:59:59.9999999' - cashReceipts: - accountId: cashReceipt - name: Cash Receipts - value: 0 - items: [] - cashPayments: - accountId: cashPayment - name: Cash Payments - value: 0 - items: [] - reportBasis: Cash - reportInput: Direct - currency: GBP - mostRecentAvailableMonth: '2023-03-31T00:00:00' - earliestAvailableMonth: '2021-04-01T00:00:00' - Zoho Books: - value: - reports: - - fromDate: '2022-10-01T00:00:00' - toDate: '2022-10-31T00:00:00' - cashReceipts: - accountId: receipts - name: Cash Receipts - value: 0 - items: - - accountId: income - name: Net Income - value: 0 - items: [] - - accountId: '104957000000000352' - name: Accounts Receivable - value: 0 - items: [] - - accountId: '104957000000000358' - name: Advance Tax - value: 0 - items: [] - - accountId: '104957000000618001' - name: Creadit Card - BA Company - value: 0 - items: [] - - accountId: '104957000000183010' - name: Credit Card - value: 0 - items: [] - - accountId: '104957000000000460' - name: Employee Reimbursements - value: 0 - items: [] - - accountId: '104957000000033015' - name: Input VAT - value: 0 - items: [] - - accountId: '104957000000000511' - name: Inventory Asset - value: 0 - items: [] - - accountId: '104957000000033017' - name: Output VAT - value: 0 - items: [] - - accountId: '104957000000032010' - name: Prepaid Expenses - value: 0 - items: [] - - accountId: '104957000000006001' - name: Tag Adjustments - value: 0 - items: [] - - accountId: '104957000000085001' - name: Test stock account - value: 0 - items: [] - - accountId: '104957000000000501' - name: Unearned Revenue - value: 0 - items: [] - cashPayments: - accountId: payments - name: Cash Payments - value: 0 - items: - - accountId: '104957000000000361' - name: Accounts Payable - value: 0 - items: [] - - fromDate: '2022-09-01T00:00:00' - toDate: '2022-09-30T00:00:00' - cashReceipts: - accountId: receipts - name: Cash Receipts - value: -5 - items: - - accountId: income - name: Net Income - value: -35 - items: [] - - accountId: '104957000000000352' - name: Accounts Receivable - value: 30 - items: [] - - accountId: '104957000000000358' - name: Advance Tax - value: 0 - items: [] - - accountId: '104957000000618001' - name: Creadit Card - BA Company - value: 0 - items: [] - - accountId: '104957000000183010' - name: Credit Card - value: 0 - items: [] - - accountId: '104957000000000460' - name: Employee Reimbursements - value: 0 - items: [] - - accountId: '104957000000000511' - name: Inventory Asset - value: 0 - items: [] - - accountId: '104957000000033017' - name: Output VAT - value: 0 - items: [] - - accountId: '104957000000032010' - name: Prepaid Expenses - value: 0 - items: [] - - accountId: '104957000000006001' - name: Tag Adjustments - value: 0 - items: [] - - accountId: '104957000000085001' - name: Test stock account - value: 0 - items: [] - - accountId: '104957000000000501' - name: Unearned Revenue - value: 0 - items: [] - cashPayments: - accountId: payments - name: Cash Payments - value: 7 - items: - - accountId: '104957000000000361' - name: Accounts Payable - value: 0 - items: [] - - accountId: '104957000000033015' - name: Input VAT - value: 7 - items: [] - reportBasis: Accrual - reportInput: Indirect - currency: GBP - mostRecentAvailableMonth: '2022-10-31T00:00:00' - earliestAvailableMonth: '2019-11-01T00:00:00' - '401': - $ref: '#/components/responses/Unauthorized' - '402': - $ref: '#/components/responses/Payment-Required' - '403': - $ref: '#/components/responses/Forbidden' - '404': - $ref: '#/components/responses/Not-Found' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - '/companies/{companyId}/connections/{connectionId}/data/banking-accountBalances': - get: - tags: - - Bank statements - summary: List account balances - operationId: list-banking-account-balances - x-speakeasy-group: banking.account-balances - description: |- - The *List account balances* endpoint returns a list of [account balances](https://docs.codat.io/lending-api#/schemas/AccountBalance) for a given company's connection. - - [Account balances](https://docs.codat.io/lending-api#/schemas/AccountBalance) are balances for a bank account, including end-of-day batch balance or running balances per transaction. - - Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data). - - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - - $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/BankingAccountBalances' - examples: - Basiq: - value: - results: - - accountId: 4811e776-6187-48d9-afee-635fb0d89d93 - balance: - current: 11389.85 - date: '2017-12-31T00:00:00Z' - modifiedDate: '2022-10-28T07:15:07Z' - - accountId: 4811e776-6187-48d9-afee-635fb0d89d93 - balance: - current: 8002.09 - date: '2018-01-01T00:00:00Z' - modifiedDate: '2022-10-28T07:15:07Z' - pageNumber: 1 - pageSize: 2 - totalResults: 3103 - _links: - current: - href: /companies/17129e41-5389-4f10-ac06-e0a37e47d177/connections/b4703906-e631-46f1-9acc-7e237acdc64d/data/banking-accountBalances?page=1&pageSize=2 - self: - href: /companies/17129e41-5389-4f10-ac06-e0a37e47d177/connections/b4703906-e631-46f1-9acc-7e237acdc64d/data/banking-accountBalances - next: - href: /companies/17129e41-5389-4f10-ac06-e0a37e47d177/connections/b4703906-e631-46f1-9acc-7e237acdc64d/data/banking-accountBalances?page=2&pageSize=2 - Plaid: - value: - results: - - accountId: 3opGv6XXNeHPEgNVbQpyCr8MAKQ3noC8Qz1zB - balance: - current: 205.78 - date: '2022-10-13T00:00:00' - modifiedDate: '2022-10-27T10:50:16Z' - - accountId: 3opGv6XXNeHPEgNVbQpyCr8MAKQ3noC8Qz1zB - balance: - current: 205.78 - date: '2022-10-14T00:00:00' - modifiedDate: '2022-10-27T10:50:16Z' - pageNumber: 1 - pageSize: 2 - totalResults: 14 - _links: - current: - href: /companies/efc2d985-cdb3-4724-8be3-c7310f7ead6c/connections/6c44dc44-e1b1-4578-800f-0bdefb658db7/data/banking-accountBalances?page=1&pageSize=2 - self: - href: /companies/efc2d985-cdb3-4724-8be3-c7310f7ead6c/connections/6c44dc44-e1b1-4578-800f-0bdefb658db7/data/banking-accountBalances - next: - href: /companies/efc2d985-cdb3-4724-8be3-c7310f7ead6c/connections/6c44dc44-e1b1-4578-800f-0bdefb658db7/data/banking-accountBalances?page=2&pageSize=2 - '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' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - '/companies/{companyId}/connections/{connectionId}/data/banking-accounts': - get: - tags: - - Bank statements - summary: List accounts - operationId: list-banking-accounts - x-speakeasy-group: banking.accounts - description: |- - The *List accounts* endpoint returns a list of [accounts](https://docs.codat.io/lending-api#/schemas/Account) for a given company's connection. - - [Accounts](https://docs.codat.io/lending-api#/schemas/Account) are financial accounts maintained by a bank or other financial institution. - - Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data). - - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - - $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/BankingAccounts' - examples: - Basiq: - value: - results: - - id: 4811e776-6187-48d9-afee-635fb0d89d93 - name: Hooli Saver - holder: david smith - type: Debit - balance: - available: 2932.85 - current: 2932.85 - identifiers: - type: Account - number: '14293919644182' - bankCode: 416-982 - currency: AUD - institution: - id: AU00000 - name: Hooli Bank - modifiedDate: '2022-10-28T07:14:48Z' - sourceModifiedDate: '2022-10-27T13:00:00Z' - accountName: Hooli Saver - accountHolder: david smith - accountType: Debit - accountNumbers: - type: Account - number: '14293919644182' - bankCode: 416-982 - - id: 736d90a5-f836-4ae0-a161-1e8056f39701 - name: Standard Variable Rate Home Loan - holder: david smith - type: Credit - balance: - available: 6940.31 - current: 6940.31 - identifiers: - type: Loan - number: '14293919644183' - bankCode: 416-982 - currency: AUD - institution: - id: AU00000 - name: Hooli Bank - modifiedDate: '2022-10-28T07:14:48Z' - sourceModifiedDate: '2022-10-27T13:00:00Z' - accountName: Standard Variable Rate Home Loan - accountHolder: david smith - accountType: Credit - accountNumbers: - type: Loan - number: '14293919644183' - bankCode: 416-982 - pageNumber: 1 - pageSize: 2 - totalResults: 4 - _links: - current: - href: /companies/17129e41-5389-4f10-ac06-e0a37e47d177/connections/b4703906-e631-46f1-9acc-7e237acdc64d/data/banking-accounts?page=1&pageSize=2 - self: - href: /companies/17129e41-5389-4f10-ac06-e0a37e47d177/connections/b4703906-e631-46f1-9acc-7e237acdc64d/data/banking-accounts - next: - href: /companies/17129e41-5389-4f10-ac06-e0a37e47d177/connections/b4703906-e631-46f1-9acc-7e237acdc64d/data/banking-accounts?page=2&pageSize=2 - Plaid: - value: - results: - - id: 3opGv6XXNeHPEgNVbQpyCr8MAKQ3noC8Qz1zB - name: Plaid Silver Standard 0.1% Interest Saving - informalName: Plaid Saving - type: Debit - balance: - available: 200 - current: 210 - identifiers: - type: Depository - number: '1111222233331111' - bankCode: '00021' - maskedAccountNumber: '1111' - currency: CAD - institution: - id: ins_100533 - name: American Express (CA) - modifiedDate: '2022-10-27T10:50:16Z' - accountName: Plaid Silver Standard 0.1% Interest Saving - accountType: Debit - accountNumbers: - type: Depository - number: '1111222233331111' - bankCode: '00021' - maskedAccountNumber: '1111' - pageNumber: 1 - pageSize: 2 - totalResults: 1 - _links: - current: - href: /companies/efc2d985-cdb3-4724-8be3-c7310f7ead6c/connections/6c44dc44-e1b1-4578-800f-0bdefb658db7/data/banking-accounts?page=1&pageSize=2 - self: - href: /companies/efc2d985-cdb3-4724-8be3-c7310f7ead6c/connections/6c44dc44-e1b1-4578-800f-0bdefb658db7/data/banking-accounts - '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' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - '/companies/{companyId}/connections/{connectionId}/data/banking-accounts/{accountId}': - get: - tags: - - Bank statements - summary: Get account - operationId: get-banking-account - x-speakeasy-group: banking.accounts - description: |- - The *Get account* endpoint returns a single account for a given accountId. - - [Accounts](https://docs.codat.io/lending-api#/schemas/Account) are financial accounts maintained by a bank or other financial institution. - - Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data). - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - - $ref: '#/components/parameters/accountingAccountId' - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/BankingAccount' - examples: - Basiq: - value: - id: 4811e776-6187-48d9-afee-635fb0d89d93 - name: Hooli Saver - holder: david smith - type: Debit - balance: - available: 2932.85 - current: 2932.85 - identifiers: - type: Account - number: '14293919644182' - bankCode: 416-982 - currency: AUD - institution: - id: AU00000 - name: Hooli Bank - modifiedDate: '2022-10-28T07:14:48Z' - sourceModifiedDate: '2022-10-27T13:00:00Z' - accountName: Hooli Saver - accountHolder: david smith - accountType: Debit - accountNumbers: - type: Account - number: '14293919644182' - bankCode: 416-982 - Plaid: - value: - id: 3opGv6XXNeHPEgNVbQpyCr8MAKQ3noC8Qz1zB - name: Plaid Silver Standard 0.1% Interest Saving - informalName: Plaid Saving - type: Debit - balance: - available: 200 - current: 210 - identifiers: - type: Depository - number: '1111222233331111' - bankCode: '00021' - maskedAccountNumber: '1111' - currency: CAD - institution: - id: ins_100533 - name: American Express (CA) - modifiedDate: '2022-10-27T10:50:16Z' - accountName: Plaid Silver Standard 0.1% Interest Saving - accountType: Debit - accountNumbers: - type: Depository - number: '1111222233331111' - bankCode: '00021' - maskedAccountNumber: '1111' - '401': - $ref: '#/components/responses/Unauthorized' - '402': - $ref: '#/components/responses/Payment-Required' - '403': - $ref: '#/components/responses/Forbidden' - '404': - $ref: '#/components/responses/Not-Found' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - '/companies/{companyId}/connections/{connectionId}/data/banking-transactions': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - get: - tags: - - Bank statements - operationId: list-banking-transactions - x-speakeasy-group: banking.transactions - summary: List transactions - description: |- - The *List transactions* endpoint returns a list of [transactions](https://docs.codat.io/lending-api#/schemas/Transaction) for a given company's connection. - - [Transactions](https://docs.codat.io/lending-api#/schemas/Transaction) provide an immutable source of up-to-date information on income and expenditure. - - Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data). - - parameters: - - $ref: '#/components/parameters/page' - - $ref: '#/components/parameters/pageSize' - - $ref: '#/components/parameters/query' - - $ref: '#/components/parameters/orderBy' - responses: - '200': - description: Success - content: - application/json: - x-speakeasy-usage-example: true - schema: - $ref: '#/components/schemas/BankingTransactions' - examples: - Basiq: - value: - results: - - id: 00017a94-c681-448d-ba8d-585a81b4128f - accountId: feb76128-7650-4b02-a323-e1606146be0c - description: 'RENTALCARTOLLPH131865 PARRAMATTA AU Card xx0399 Value Date: 25/07/2019' - amount: -14.26 - currency: AUD - postedDate: '2019-07-31T00:00:00Z' - code: Unknown - merchantName: '' - transactionCategoryRef: - id: payment - name: Payment - modifiedDate: '2022-10-28T07:15:10Z' - - id: 0023c431-35c8-41f5-b75e-9239413cde7e - accountId: 4811e776-6187-48d9-afee-635fb0d89d93 - description: Transfer from xx9263 CommBank app Shop - amount: 191 - currency: AUD - postedDate: '2018-07-31T00:00:00Z' - code: Unknown - merchantName: '' - transactionCategoryRef: - id: transfer - name: Transfer - modifiedDate: '2022-10-28T07:15:10Z' - pageNumber: 1 - pageSize: 2 - totalResults: 3319 - _links: - current: - href: /companies/17129e41-5389-4f10-ac06-e0a37e47d177/connections/b4703906-e631-46f1-9acc-7e237acdc64d/data/banking-transactions?page=1&pageSize=2 - self: - href: /companies/17129e41-5389-4f10-ac06-e0a37e47d177/connections/b4703906-e631-46f1-9acc-7e237acdc64d/data/banking-transactions - next: - href: /companies/17129e41-5389-4f10-ac06-e0a37e47d177/connections/b4703906-e631-46f1-9acc-7e237acdc64d/data/banking-transactions?page=2&pageSize=2 - Plaid: - value: - results: - - id: 1514wvMMajumgG7xWA1Bt8o15xP5k3fmeo9Bg_EC6E0DC820E1F9D1A2300BF4A5B80513 - accountId: 3opGv6XXNeHPEgNVbQpyCr8MAKQ3noC8Qz1zB - description: CREDIT CARD 3333 PAYMENT *// - amount: -25 - currency: CAD - postedDate: '2021-05-10T00:00:00' - authorizedDate: '2021-05-09T00:00:00' - code: Unknown - transactionCategoryRef: - id: TRANSFER_OUT.TRANSFER_OUT_ACCOUNT_TRANSFER - name: TRANSFER_OUT_ACCOUNT_TRANSFER - modifiedDate: '2022-10-27T10:50:25Z' - - id: 1514wvMMajumgG7xWA1Bt8oDLxlpm3i3zraD7_6DB63D1DACF6F5824C80F8BE2E066DB5 - accountId: 3opGv6XXNeHPEgNVbQpyCr8MAKQ3noC8Qz1zB - description: CREDIT CARD 3333 PAYMENT *// - amount: -25 - currency: CAD - postedDate: '2022-10-02T00:00:00' - authorizedDate: '2022-10-01T00:00:00' - code: Unknown - transactionCategoryRef: - id: TRANSFER_OUT.TRANSFER_OUT_ACCOUNT_TRANSFER - name: TRANSFER_OUT_ACCOUNT_TRANSFER - modifiedDate: '2022-10-27T10:50:25Z' - pageNumber: 1 - pageSize: 2 - totalResults: 49 - _links: - current: - href: /companies/efc2d985-cdb3-4724-8be3-c7310f7ead6c/connections/6c44dc44-e1b1-4578-800f-0bdefb658db7/data/banking-transactions?page=1&pageSize=2 - self: - href: /companies/efc2d985-cdb3-4724-8be3-c7310f7ead6c/connections/6c44dc44-e1b1-4578-800f-0bdefb658db7/data/banking-transactions - next: - href: /companies/efc2d985-cdb3-4724-8be3-c7310f7ead6c/connections/6c44dc44-e1b1-4578-800f-0bdefb658db7/data/banking-transactions?page=2&pageSize=2 - '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' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - '/companies/{companyId}/connections/{connectionId}/data/banking-transactions/{transactionId}': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - - schema: - type: string - name: transactionId - in: path - required: true - description: The unique identifier for a transaction - get: - summary: Get bank transaction - tags: - - Bank statements - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/BankingTransaction' - examples: - Basiq: - value: - id: 00017a94-c681-448d-ba8d-585a81b4128f - accountId: feb76128-7650-4b02-a323-e1606146be0c - description: 'RENTALCARTOLLPH131865 PARRAMATTA AU Card xx0399 Value Date: 25/07/2019' - amount: -14.26 - currency: AUD - postedDate: '2019-07-31T00:00:00Z' - code: Unknown - merchantName: '' - transactionCategoryRef: - id: payment - name: Payment - modifiedDate: '2022-10-28T07:15:10Z' - Plaid: - value: - id: 1514wvMMajumgG7xWA1Bt8o15xP5k3fmeo9Bg_EC6E0DC820E1F9D1A2300BF4A5B80513 - accountId: 3opGv6XXNeHPEgNVbQpyCr8MAKQ3noC8Qz1zB - description: CREDIT CARD 3333 PAYMENT *// - amount: -25 - currency: CAD - postedDate: '2021-05-10T00:00:00' - authorizedDate: '2021-05-09T00:00:00' - code: Unknown - transactionCategoryRef: - id: TRANSFER_OUT.TRANSFER_OUT_ACCOUNT_TRANSFER - name: TRANSFER_OUT_ACCOUNT_TRANSFER - modifiedDate: '2022-10-27T10:50:25Z' - '401': - $ref: '#/components/responses/Unauthorized' - '402': - $ref: '#/components/responses/Payment-Required' - '403': - $ref: '#/components/responses/Forbidden' - '404': - $ref: '#/components/responses/Not-Found' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - description: | - The *Get transaction* endpoint returns a single transaction for a given transactionId. - - [Transactions](https://docs.codat.io/lending-api#/schemas/Transaction) provide an immutable source of up-to-date information on income and expenditure. - - Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data). - operationId: get-banking-transaction - x-speakeasy-group: banking.transactions - '/companies/{companyId}/connections/{connectionId}/data/banking-transactionCategories': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - get: - tags: - - Bank statements - operationId: list-banking-transaction-categories - x-speakeasy-group: banking.transaction-categories - summary: List transaction categories - 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/BankingTransactionCategories' - examples: - Basiq: - value: - results: - - id: bank-fee - name: Bank Fee - hasChildren: false - status: Active - modifiedDate: '2022-10-28T07:14:46' - - id: cash-withdrawal - name: Cash Withdrawal - hasChildren: false - status: Active - modifiedDate: '2022-10-28T07:14:46' - pageNumber: 1 - pageSize: 2 - totalResults: 9 - _links: - current: - href: /companies/17129e41-5389-4f10-ac06-e0a37e47d177/connections/b4703906-e631-46f1-9acc-7e237acdc64d/data/banking-transactionCategories?page=1&pageSize=2 - self: - href: /companies/17129e41-5389-4f10-ac06-e0a37e47d177/connections/b4703906-e631-46f1-9acc-7e237acdc64d/data/banking-transactionCategories - next: - href: /companies/17129e41-5389-4f10-ac06-e0a37e47d177/connections/b4703906-e631-46f1-9acc-7e237acdc64d/data/banking-transactionCategories?page=2&pageSize=2 - Plaid: - value: - results: - - id: BANK_FEES - name: BANK_FEES - hasChildren: true - status: Active - modifiedDate: '2022-10-27T10:50:17' - - id: BANK_FEES.BANK_FEES_ATM_FEES - name: BANK_FEES_ATM_FEES - parentId: BANK_FEES - hasChildren: false - status: Active - modifiedDate: '2022-10-27T10:50:17' - pageNumber: 1 - pageSize: 2 - totalResults: 120 - _links: - current: - href: /companies/efc2d985-cdb3-4724-8be3-c7310f7ead6c/connections/6c44dc44-e1b1-4578-800f-0bdefb658db7/data/banking-transactionCategories?page=1&pageSize=2 - self: - href: /companies/efc2d985-cdb3-4724-8be3-c7310f7ead6c/connections/6c44dc44-e1b1-4578-800f-0bdefb658db7/data/banking-transactionCategories - next: - href: /companies/efc2d985-cdb3-4724-8be3-c7310f7ead6c/connections/6c44dc44-e1b1-4578-800f-0bdefb658db7/data/banking-transactionCategories?page=2&pageSize=2 - '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' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - description: |- - The *List transaction categories* endpoint returns a list of [transaction categories](https://docs.codat.io/lending-api#/schemas/TransactionCategory) for a given company's connection. - - [Transaction categories](https://docs.codat.io/lending-api#/schemas/TransactionCategory) are associated with a transaction to provide greater contextual meaning to transaction activity. - - Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data). - - '/companies/{companyId}/connections/{connectionId}/data/banking-transactionCategories/{transactionCategoryId}': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - - schema: - type: string - name: transactionCategoryId - in: path - required: true - description: The unique identifier for a banking transaction category - get: - tags: - - Bank statements - operationId: get-banking-transaction-category - x-speakeasy-group: banking.transaction-categories - summary: Get transaction category - description: | - The *Get transaction category* endpoint returns a single transaction category for a given transactionCategoryId. - - [Transaction categories](https://docs.codat.io/lending-api#/schemas/TransactionCategory) are associated with a transaction to provide greater contextual meaning to transaction activity. - - Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data). - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/BankingTransactionCategory' - examples: - Basiq: - value: - id: bank-fee - name: Bank Fee - hasChildren: false - status: Active - modifiedDate: '2022-10-28T07:14:46' - Plaid: - value: - id: BANK_FEES - name: BANK_FEES - hasChildren: true - status: Active - modifiedDate: '2022-10-27T10:50:17' - '401': - $ref: '#/components/responses/Unauthorized' - '402': - $ref: '#/components/responses/Payment-Required' - '403': - $ref: '#/components/responses/Forbidden' - '404': - $ref: '#/components/responses/Not-Found' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - '/companies/{companyId}/connections/{connectionId}/data/commerce-customers': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - get: - tags: - - Sales - summary: List customers - operationId: list-commerce-customers - x-speakeasy-group: sales.customers - description: |- - The *List customers* endpoint returns a list of [customers](https://docs.codat.io/lending-api#/schemas/Customer) for a given company's connection. - - [Customers](https://docs.codat.io/lending-api#/schemas/Customer) are people or organizations that place orders, make payments and recieve goods and/or services from the SMB. - - Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data). - - parameters: - - $ref: '#/components/parameters/page' - - $ref: '#/components/parameters/pageSize' - - $ref: '#/components/parameters/query' - - $ref: '#/components/parameters/orderBy' - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/CommerceCustomers' - examples: - BigCommerce: - value: - results: - - id: '1' - customerName: Amy Jones - emailAddress: a.jackson@email.me - defaultCurrency: XXX - phone: 07770 666777 - addresses: - - type: Unknown - line1: My Billing Address ./*drop table - city: Portsmouth - region: '' - country: United Kingdom - postalCode: PS13HJ - - type: Unknown - line1: 'This is my address, I cant hit enter.' - city: Portsmouth - region: '' - country: United Kingdom - postalCode: PS13HJ - createdDate: '2022-06-15T15:54:15Z' - modifiedDate: '2023-04-11T10:33:49Z' - sourceModifiedDate: '2022-06-15T15:54:15Z' - - id: '2' - customerName: Cust001 Cust001 - emailAddress: Cust001@example.com - defaultCurrency: XXX - phone: 05442 203941 - addresses: [] - createdDate: '2023-04-11T15:49:25Z' - modifiedDate: '2023-04-17T15:42:55Z' - sourceModifiedDate: '2023-04-11T15:49:25Z' - pageNumber: 1 - pageSize: 2 - totalResults: 201 - _links: - current: - href: /companies/d1ebcf6d-f7f9-4841-8a06-fec12c492a48/connections/7c0a21e8-938a-40a4-b0f7-5ab5d46804b0/data/commerce-customers?page=1&pageSize=2 - self: - href: /companies/d1ebcf6d-f7f9-4841-8a06-fec12c492a48/connections/7c0a21e8-938a-40a4-b0f7-5ab5d46804b0/data/commerce-customers - next: - href: /companies/d1ebcf6d-f7f9-4841-8a06-fec12c492a48/connections/7c0a21e8-938a-40a4-b0f7-5ab5d46804b0/data/commerce-customers?page=2&pageSize=2 - Clover: - value: - results: - - id: 2CBJ8R898ZJAR - customerName: '' - addresses: [] - createdDate: '2021-09-22T13:10:12Z' - modifiedDate: '2023-01-09T11:01:03Z' - sourceModifiedDate: '0001-01-01T00:00:00' - - id: 511JV0FRN2QYC - customerName: '' - addresses: [] - createdDate: '2021-09-21T14:54:38Z' - modifiedDate: '2023-01-09T11:01:03Z' - sourceModifiedDate: '0001-01-01T00:00:00' - pageNumber: 1 - pageSize: 2 - totalResults: 9 - _links: - current: - href: /companies/aae80eb3-1f56-41ca-a171-a59f9ee03b26/connections/4a5b633b-cd86-4715-a22b-62be98c4bcc5/data/commerce-customers?page=1&pageSize=2 - self: - href: /companies/aae80eb3-1f56-41ca-a171-a59f9ee03b26/connections/4a5b633b-cd86-4715-a22b-62be98c4bcc5/data/commerce-customers - next: - href: /companies/aae80eb3-1f56-41ca-a171-a59f9ee03b26/connections/4a5b633b-cd86-4715-a22b-62be98c4bcc5/data/commerce-customers?page=2&pageSize=2 - Mollie: - value: - results: - - id: cst_NUkBHQmekz - customerName: Frod Baggins - emailAddress: frodo.baggings@theshire.com - addresses: [] - createdDate: '2022-01-18T11:41:54' - modifiedDate: '2022-03-17T15:47:28Z' - - id: cst_BvBxwuwfvH - customerName: Frodo Baggins - emailAddress: frodo.baggings@theshire.com - addresses: [] - createdDate: '2022-01-18T11:42:05' - modifiedDate: '2022-03-17T15:47:28Z' - pageNumber: 1 - pageSize: 2 - totalResults: 3 - _links: - current: - href: /companies/a68cb447-182d-4bbe-be1a-f526d11d69d5/connections/dfbf847b-cde8-4b00-b2f9-af51dec0d337/data/commerce-customers?page=1&pageSize=2 - self: - href: /companies/a68cb447-182d-4bbe-be1a-f526d11d69d5/connections/dfbf847b-cde8-4b00-b2f9-af51dec0d337/data/commerce-customers - next: - href: /companies/a68cb447-182d-4bbe-be1a-f526d11d69d5/connections/dfbf847b-cde8-4b00-b2f9-af51dec0d337/data/commerce-customers?page=2&pageSize=2 - Mollie Test: - value: - results: - - id: cst_NUkBHQmekz - customerName: Frod Baggins - emailAddress: frodo.baggings@theshire.com - addresses: [] - createdDate: '2022-01-18T11:41:54' - modifiedDate: '2022-08-17T11:33:19Z' - - id: cst_BvBxwuwfvH - customerName: Frodo Baggins - emailAddress: frodo.baggings@theshire.com - addresses: [] - createdDate: '2022-01-18T11:42:05' - modifiedDate: '2022-08-17T11:33:19Z' - pageNumber: 1 - pageSize: 2 - totalResults: 3 - _links: - current: - href: /companies/b978f9fe-8d63-4cfc-b2c2-b61b72e22785/connections/d564f8fd-0766-4ab8-a427-7c893f9b9ff6/data/commerce-customers?page=1&pageSize=2 - self: - href: /companies/b978f9fe-8d63-4cfc-b2c2-b61b72e22785/connections/d564f8fd-0766-4ab8-a427-7c893f9b9ff6/data/commerce-customers - next: - href: /companies/b978f9fe-8d63-4cfc-b2c2-b61b72e22785/connections/d564f8fd-0766-4ab8-a427-7c893f9b9ff6/data/commerce-customers?page=2&pageSize=2 - PrestaShop: - value: - results: - - id: '2' - customerName: Bob Smith - emailAddress: bob.smith@example.com - addresses: - - type: Unknown - line1: 1 test street - city: City Test - region: Virginia - country: US - postalCode: '55678' - createdDate: '2021-09-02T07:54:26' - modifiedDate: '2022-01-26T15:09:42Z' - sourceModifiedDate: '2021-09-02T07:54:26' - - id: '3' - customerName: Fake Name - emailAddress: bob@bob.com - addresses: [] - createdDate: '2021-09-03T01:55:13' - modifiedDate: '2022-01-26T15:09:42Z' - sourceModifiedDate: '2021-09-03T01:55:13' - pageNumber: 1 - pageSize: 2 - totalResults: 5 - _links: - current: - href: /companies/2bf78e61-58ca-421a-a430-5dfa59cf15b0/connections/30774c1f-fdcd-491e-9e60-47e316b3ab9b/data/commerce-customers?page=1&pageSize=2 - self: - href: /companies/2bf78e61-58ca-421a-a430-5dfa59cf15b0/connections/30774c1f-fdcd-491e-9e60-47e316b3ab9b/data/commerce-customers - next: - href: /companies/2bf78e61-58ca-421a-a430-5dfa59cf15b0/connections/30774c1f-fdcd-491e-9e60-47e316b3ab9b/data/commerce-customers?page=2&pageSize=2 - Shopify: - value: - results: - - id: '5839032287390' - customerName: AL A - emailAddress: a.macra@codat.io - addresses: - - type: Unknown - line1: '301 Ink Rooms, 28 Easton St, Farringdon' - line2: '28 Easton St, Farringdon' - city: London - region: England - country: United Kingdom - postalCode: WC1X 0BE - createdDate: '2021-11-18T15:24:03' - modifiedDate: '2023-02-10T15:18:25Z' - sourceModifiedDate: '2021-11-18T15:24:03' - - id: '5097398534302' - customerName: Qa Test - phone: '+445593368390' - addresses: - - type: Unknown - line1: Look Street - city: London - postalCode: PO16 7GZ - - type: Unknown - line1: Look Street - city: London - region: England - country: United Kingdom - postalCode: PO16 7GZ - note: '' - createdDate: '2021-03-19T10:12:37' - modifiedDate: '2023-02-10T15:18:25Z' - sourceModifiedDate: '2022-08-01T13:07:59' - pageNumber: 1 - pageSize: 2 - totalResults: 6 - _links: - current: - href: /companies/0bc1cc44-c6d2-4537-9591-b1ad6b5e3c94/connections/d38fa6d3-d712-4cf6-9d9d-f03bacd87595/data/commerce-customers?page=1&pageSize=2 - self: - href: /companies/0bc1cc44-c6d2-4537-9591-b1ad6b5e3c94/connections/d38fa6d3-d712-4cf6-9d9d-f03bacd87595/data/commerce-customers - next: - href: /companies/0bc1cc44-c6d2-4537-9591-b1ad6b5e3c94/connections/d38fa6d3-d712-4cf6-9d9d-f03bacd87595/data/commerce-customers?page=2&pageSize=2 - Square: - value: - results: - - id: FT9948H3VD6GF8MPDD5438KY1M - emailAddress: fake@name.com - phone: '+441234567890' - addresses: - - type: Unknown - line1: 1 Main Street - line2: Flat 20 - city: London - region: London - postalCode: W1A 1AA - createdDate: '2021-03-08T11:21:11Z' - modifiedDate: '2022-08-02T10:27:32Z' - sourceModifiedDate: '2021-03-08T11:21:11Z' - - id: GXQDPSZSMN6C58270SZN4YJZ8R - emailAddress: s.shandil+square@codat.io - phone: '+447729946295' - addresses: [] - createdDate: '2020-11-19T14:56:00Z' - modifiedDate: '2022-08-02T10:27:32Z' - sourceModifiedDate: '2020-11-19T14:56:00Z' - pageNumber: 1 - pageSize: 2 - totalResults: 2 - _links: - current: - href: /companies/d779fc82-a098-4107-a9fc-c2a1dda3d522/connections/9b098b74-3770-4dad-9001-4c283a39f1e5/data/commerce-customers?page=1&pageSize=2 - self: - href: /companies/d779fc82-a098-4107-a9fc-c2a1dda3d522/connections/9b098b74-3770-4dad-9001-4c283a39f1e5/data/commerce-customers - Stripe Test: - value: - results: - - id: cus_LXdjls7KY5ZHaz - customerName: Barry Smith - emailAddress: barry@example.com - defaultCurrency: gbp - addresses: [] - note: Test Subscription - createdDate: '2022-04-20T07:59:52Z' - modifiedDate: '2022-09-30T11:18:27Z' - - id: cus_LXdFFgHqqVURIv - customerName: David Dunlow - emailAddress: david@example.com - defaultCurrency: gbp - phone: '+447545309714' - addresses: - - type: Billing - line1: 301 Ink Rooms - line2: 28 Easton Street - city: London - country: GB - postalCode: WC1X 0BE - - type: Delivery - line1: 301 Ink Rooms - line2: 28 Easton Street - city: London - country: GB - postalCode: WC1X 0BE - note: Test Subscriptions - createdDate: '2022-04-20T07:30:01Z' - modifiedDate: '2022-09-30T11:18:27Z' - pageNumber: 1 - pageSize: 2 - totalResults: 14 - _links: - current: - href: /companies/8206e78e-e340-411e-b315-473c4ab73b48/connections/43e58373-0a1d-44a0-97f0-9fa9993a14fa/data/commerce-customers?page=1&pageSize=2 - self: - href: /companies/8206e78e-e340-411e-b315-473c4ab73b48/connections/43e58373-0a1d-44a0-97f0-9fa9993a14fa/data/commerce-customers - next: - href: /companies/8206e78e-e340-411e-b315-473c4ab73b48/connections/43e58373-0a1d-44a0-97f0-9fa9993a14fa/data/commerce-customers?page=2&pageSize=2 - WooCommerce: - value: - results: - - id: '201694267' - customerName: Qa Test - emailAddress: a.macra@codat.io - phone: '' - addresses: - - type: Billing - line1: '' - line2: '' - city: '' - region: '' - country: '' - postalCode: '' - createdDate: '2021-03-11T09:04:27' - modifiedDate: '2021-07-13T16:19:00Z' - sourceModifiedDate: '2021-03-11T09:07:00' - pageNumber: 1 - pageSize: 2 - totalResults: 1 - _links: - current: - href: /companies/010c6f53-8fc8-40ab-9ed5-41191cf9c6b5/connections/7545ca2e-5f58-4f98-8af2-3b2c38bb8074/data/commerce-customers?page=1&pageSize=2 - self: - href: /companies/010c6f53-8fc8-40ab-9ed5-41191cf9c6b5/connections/7545ca2e-5f58-4f98-8af2-3b2c38bb8074/data/commerce-customers - Zettle: - value: - results: - - id: firstname.lastname@example.com - customerName: Firstname Lastname - emailAddress: firstname.lastname@example.com - addresses: - - type: Unknown - line1: Line1 - city: City - country: GB - postalCode: TT1 1TT - createdDate: '2021-01-07T16:17:34' - modifiedDate: '2021-01-27T13:08:51Z' - sourceModifiedDate: '2021-01-08T09:57:56' - - id: joe@bloggs.com - customerName: Joe Bloggs - emailAddress: joe@bloggs.com - phone: 02012 345678 - addresses: - - type: Unknown - line1: Flat 1 - line2: 1 High Street - city: London - region: London - country: GB - - type: Unknown - line1: Flat 2 - line2: 2 High Street - city: London - region: London - country: GB - createdDate: '2020-12-21T14:52:15' - modifiedDate: '2021-01-27T13:08:51Z' - sourceModifiedDate: '2020-12-21T14:52:15' - pageNumber: 1 - pageSize: 2 - totalResults: 2 - _links: - current: - href: /companies/fe8e3158-47e6-4367-9537-7d5001295500/connections/d60b15e7-7db9-459b-92a0-9557f7ebdeea/data/commerce-customers?page=1&pageSize=2 - self: - href: /companies/fe8e3158-47e6-4367-9537-7d5001295500/connections/d60b15e7-7db9-459b-92a0-9557f7ebdeea/data/commerce-customers - '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' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - '/companies/{companyId}/connections/{connectionId}/data/commerce-customers/{customerId}': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - - $ref: '#/components/parameters/customerId' - get: - tags: - - Sales - summary: Get customer - operationId: get-commerce-customer - x-speakeasy-group: sales.customers - description: | - The *Get customer* endpoint returns a single customer for a given customerId. - - [Customers](https://docs.codat.io/lending-api#/schemas/Customer) are people or organizations that place orders, make payments and receive goods and/or services from the SMB. - - Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data). - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/CommerceCustomer' - examples: - BigCommerce: - value: - id: '1' - customerName: Amy Jones - emailAddress: a.durbanjackson+amy@codat.io - defaultCurrency: XXX - phone: '07770666777' - addresses: - - type: Unknown - line1: My Billing Address ./*drop table - city: Portsmouth - region: '' - country: United Kingdom - postalCode: PS13HJ - - type: Unknown - line1: 'This is my address, I cant hit enter.' - city: Portsmouth - region: '' - country: United Kingdom - postalCode: PS13HJ - createdDate: '2022-06-15T15:54:15Z' - modifiedDate: '2023-04-11T10:33:49Z' - sourceModifiedDate: '2022-06-15T15:54:15Z' - Clover: - value: - id: 2CBJ8R898ZJAR - customerName: '' - addresses: [] - createdDate: '2021-09-22T13:10:12Z' - modifiedDate: '2023-01-09T11:01:03Z' - sourceModifiedDate: '0001-01-01T00:00:00' - Mollie: - value: - id: cst_NUkBHQmekz - customerName: Frod Baggins - emailAddress: frodo.baggings@theshire.com - addresses: [] - createdDate: '2022-01-18T11:41:54' - modifiedDate: '2022-03-17T15:47:28Z' - Mollie Test: - value: - id: cst_NUkBHQmekz - customerName: Frod Baggins - emailAddress: frodo.baggings@theshire.com - addresses: [] - createdDate: '2022-01-18T11:41:54' - modifiedDate: '2022-08-17T11:33:19Z' - PrestaShop: - value: - id: '2' - customerName: Bob Smith - emailAddress: bob.smith@example.com - addresses: - - type: Unknown - line1: 1 test street - city: City Test - region: Virginia - country: US - postalCode: '55678' - createdDate: '2021-09-02T07:54:26' - modifiedDate: '2022-01-26T15:09:42Z' - sourceModifiedDate: '2021-09-02T07:54:26' - Shopify: - value: - id: '5839032287390' - customerName: AL A - emailAddress: a.macra@codat.io - addresses: - - type: Unknown - line1: '301 Ink Rooms, 28 Easton St, Farringdon' - line2: '28 Easton St, Farringdon' - city: London - region: England - country: United Kingdom - postalCode: WC1X 0BE - createdDate: '2021-11-18T15:24:03' - modifiedDate: '2023-02-10T15:18:25Z' - sourceModifiedDate: '2021-11-18T15:24:03' - Square: - value: - id: FT9948H3VD6GF8MPDD5438KY1M - emailAddress: fake@name.com - phone: '+441234567890' - addresses: - - type: Unknown - line1: 1 Main Street - line2: Flat 20 - city: London - region: London - postalCode: W1A 1AA - createdDate: '2021-03-08T11:21:11Z' - modifiedDate: '2022-08-02T10:27:32Z' - sourceModifiedDate: '2021-03-08T11:21:11Z' - Stripe Test: - value: - id: cus_LXdjls7KY5ZHaz - customerName: Barry Smith - emailAddress: barry@example.com - defaultCurrency: gbp - addresses: [] - note: Test Subscription - createdDate: '2022-04-20T07:59:52Z' - modifiedDate: '2022-09-30T11:18:27Z' - WooCommerce: - value: - id: '201694267' - customerName: Qa Test - emailAddress: a.macra@codat.io - phone: '' - addresses: - - type: Billing - line1: '' - line2: '' - city: '' - region: '' - country: '' - postalCode: '' - createdDate: '2021-03-11T09:04:27' - modifiedDate: '2021-07-13T16:19:00Z' - sourceModifiedDate: '2021-03-11T09:07:00' - Zettle: - value: - id: firstname.lastname@example.com - customerName: Firstname Lastname - emailAddress: firstname.lastname@example.com - addresses: - - type: Unknown - line1: Line1 - city: City - country: GB - postalCode: TT1 1TT - createdDate: '2021-01-07T16:17:34' - modifiedDate: '2021-01-27T13:08:51Z' - sourceModifiedDate: '2021-01-08T09:57:56' - '401': - $ref: '#/components/responses/Unauthorized' - '402': - $ref: '#/components/responses/Payment-Required' - '403': - $ref: '#/components/responses/Forbidden' - '404': - $ref: '#/components/responses/Not-Found' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - '/companies/{companyId}/connections/{connectionId}/data/commerce-disputes': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - get: - summary: List disputes - tags: - - Sales - operationId: list-commerce-disputes - x-speakeasy-group: sales.disputes - parameters: - - $ref: '#/components/parameters/page' - - $ref: '#/components/parameters/pageSize' - - $ref: '#/components/parameters/query' - - $ref: '#/components/parameters/orderBy' - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/CommerceDisputes' - examples: - Shopify: - value: - results: - - id: '8502411422' - disputedTransactions: - - id: '3684116791454' - type: Order - totalAmount: 175 - currency: GBP - status: Processing - reason: fraudulent - dueDate: '2021-03-28T00:00:00' - createdDate: '2021-03-19T13:16:27' - modifiedDate: '2023-02-10T15:18:22Z' - sourceModifiedDate: '2021-03-28T11:00:17' - - id: '8502444190' - disputedTransactions: - - id: '3684119445662' - type: Order - totalAmount: 600 - currency: GBP - status: Processing - reason: fraudulent - dueDate: '2021-03-28T00:00:00' - createdDate: '2021-03-19T13:18:31' - modifiedDate: '2023-02-10T15:18:22Z' - sourceModifiedDate: '2021-03-28T11:00:18' - pageNumber: 1 - pageSize: 2 - totalResults: 2 - _links: - current: - href: /companies/0bc1cc44-c6d2-4537-9591-b1ad6b5e3c94/connections/d38fa6d3-d712-4cf6-9d9d-f03bacd87595/data/commerce-disputes?page=1&pageSize=2 - self: - href: /companies/0bc1cc44-c6d2-4537-9591-b1ad6b5e3c94/connections/d38fa6d3-d712-4cf6-9d9d-f03bacd87595/data/commerce-disputes - Stripe Test: - value: - results: - - id: dp_1Hqhl8A8m8S1Gh7OJrvF3gsK - disputedTransactions: - - id: txn_1Hqhl8A8m8S1Gh7OtmAPNr9e - type: Payment - totalAmount: 25 - currency: GBP - status: Processing - reason: fraudulent - dueDate: '2020-12-02T23:59:59Z' - createdDate: '2020-11-23T16:19:22Z' - modifiedDate: '2022-09-30T11:18:27Z' - - id: dp_1HqiwVA8m8S1Gh7OpS3ozlcd - disputedTransactions: - - id: txn_1HqiwVA8m8S1Gh7O0IVelTQ5 - type: Payment - totalAmount: 55 - currency: GBP - status: Lost - reason: product_not_received - dueDate: '2020-12-02T23:59:59Z' - createdDate: '2020-11-23T17:35:11Z' - modifiedDate: '2022-09-30T11:18:27Z' - pageNumber: 1 - pageSize: 2 - totalResults: 5 - _links: - current: - href: /companies/8206e78e-e340-411e-b315-473c4ab73b48/connections/43e58373-0a1d-44a0-97f0-9fa9993a14fa/data/commerce-disputes?page=1&pageSize=2 - self: - href: /companies/8206e78e-e340-411e-b315-473c4ab73b48/connections/43e58373-0a1d-44a0-97f0-9fa9993a14fa/data/commerce-disputes - next: - href: /companies/8206e78e-e340-411e-b315-473c4ab73b48/connections/43e58373-0a1d-44a0-97f0-9fa9993a14fa/data/commerce-disputes?page=2&pageSize=2 - '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' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - description: |- - The *List disputes* endpoint returns a list of [disputes](https://docs.codat.io/lending-api#/schemas/Dispute) for a given company's connection. - - [Disputes](https://docs.codat.io/lending-api#/schemas/Dispute) are created when a customer is unsatisfied with their purchase or believe they have been charged incorrectly. - - Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data). - - '/companies/{companyId}/connections/{connectionId}/data/commerce-disputes/{disputeId}': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - - name: disputeId - in: path - required: true - schema: - type: string - examples: - - 13d946f0-c5d5-42bc-b092-97ece17923ab - - 9wg4lep4ush5cxs79pl8sozmsndbaukll3ind4g7buqbm1h2 - - 7110701885 - - EILBDVJVNUAGVKRQ - description: Unique identifier for a dispute. - get: - summary: Get dispute - tags: - - Sales - operationId: get-commerce-dispute - x-speakeasy-group: sales.disputes - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/CommerceDispute' - examples: - Shopify: - value: - id: '8502411422' - disputedTransactions: - - id: '3684116791454' - type: Order - totalAmount: 175 - currency: GBP - status: Processing - reason: fraudulent - dueDate: '2021-03-28T00:00:00' - createdDate: '2021-03-19T13:16:27' - modifiedDate: '2023-02-10T15:18:22Z' - sourceModifiedDate: '2021-03-28T11:00:17' - Stripe Test: - value: - id: dp_1Hqhl8A8m8S1Gh7OJrvF3gsK - disputedTransactions: - - id: txn_1Hqhl8A8m8S1Gh7OtmAPNr9e - type: Payment - totalAmount: 25 - currency: GBP - status: Processing - reason: fraudulent - dueDate: '2020-12-02T23:59:59Z' - createdDate: '2020-11-23T16:19:22Z' - modifiedDate: '2022-09-30T11:18:27Z' - '401': - $ref: '#/components/responses/Unauthorized' - '402': - $ref: '#/components/responses/Payment-Required' - '403': - $ref: '#/components/responses/Forbidden' - '404': - $ref: '#/components/responses/Not-Found' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - description: | - The *Get dispute* endpoint returns a single dispute for a given disputeId. - - [Disputes](https://docs.codat.io/lending-api#/schemas/Dispute) are created when a customer is unsatisfied with their purchase or believe they have been charged incorrectly. - - Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data). - '/companies/{companyId}/connections/{connectionId}/data/commerce-info': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - get: - summary: Get company commerce profile - tags: - - Company info - operationId: get-commerce-profile - x-speakeasy-name-override: get-commerce-profile - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/CommerceCompanyInfo' - examples: - Example 1: - value: - companyName: Codat - companyLegalName: Codat Ltd - addresses: - - type: Billing - line1: 301 Ink Rooms - line2: 28 Easton Street - city: London - region: England - country: United Kingdom - postalCode: WC1X 0BE - - type: Delivery - line1: 28 Easton Street - city: London - country: UK - postalCode: WC1X 0BE - phoneNumbers: - - number: 02012 345678 - type: Landline - - number: 07123 456789 - type: Mobile - - number: 02012 345678 - type: Fax - webLinks: - - type: Website - url: 'https://www.codat.io/' - - type: Social - url: 'https://www.linkedin.com/company/codat-limited/' - registrationNumber: '5590111724' - baseCurrency: GBP - accountBalances: - - available: 20053.23 - pending: 2034.23 - reserved: 517.23 - currency: GBP - sourceUrls: - Api: 'https://api.codat.io' - createdDate: '2019-03-07T16:50:49' - modifiedDate: '2022-03-10T15:42:13' - sourceModifiedDate: '2021-06-10T01:48:49' - '401': - $ref: '#/components/responses/Unauthorized' - '402': - $ref: '#/components/responses/Payment-Required' - '403': - $ref: '#/components/responses/Forbidden' - '404': - $ref: '#/components/responses/Not-Found' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - description: |- - Retrieve information about the company, as seen in the commerce - platform. - - This may include information like addresses, tax registration details and - social media or website information." - '/companies/{companyId}/connections/{connectionId}/data/commerce-locations': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - get: - summary: List locations - tags: - - Sales - operationId: list-commerce-locations - x-speakeasy-group: sales.locations - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/CommerceLocations' - examples: - Clover: - value: - results: - - id: GA3WP1ZC3ZFK1 - name: Codat - address: - type: Inventory - line1: '301 Ink Rooms, 28 Easton Street' - city: London - region: London - country: GB - postalCode: WC1X 0BE - modifiedDate: '2023-01-09T11:01:03Z' - pageNumber: 1 - pageSize: 2 - totalResults: 1 - _links: - current: - href: /companies/aae80eb3-1f56-41ca-a171-a59f9ee03b26/connections/4a5b633b-cd86-4715-a22b-62be98c4bcc5/data/commerce-locations?page=1&pageSize=2 - self: - href: /companies/aae80eb3-1f56-41ca-a171-a59f9ee03b26/connections/4a5b633b-cd86-4715-a22b-62be98c4bcc5/data/commerce-locations - Lightspeed K Trial: - value: - results: - - id: '647208621834538' - name: QA Shared - New Test Site - address: - type: Unknown - country: AU - modifiedDate: '2023-03-02T09:48:48Z' - pageNumber: 1 - pageSize: 2 - totalResults: 1 - _links: - current: - href: /companies/36e3213b-02f6-4264-96ce-6dd53ea69e57/connections/278ba962-466a-452b-92b0-4bdee3a23463/data/commerce-locations?page=1&pageSize=2 - self: - href: /companies/36e3213b-02f6-4264-96ce-6dd53ea69e57/connections/278ba962-466a-452b-92b0-4bdee3a23463/data/commerce-locations - Shopify: - value: - results: - - id: '61375348894' - name: '301 Ink Rooms, 28 Easton St' - address: - type: Inventory - line1: '301 Ink Rooms, 28 Easton St' - city: London - region: London - country: GB - postalCode: WC1X 0BE - modifiedDate: '2023-02-10T15:18:25Z' - sourceModifiedDate: '2021-03-19T10:06:06' - pageNumber: 1 - pageSize: 2 - totalResults: 1 - _links: - current: - href: /companies/0bc1cc44-c6d2-4537-9591-b1ad6b5e3c94/connections/d38fa6d3-d712-4cf6-9d9d-f03bacd87595/data/commerce-locations?page=1&pageSize=2 - self: - href: /companies/0bc1cc44-c6d2-4537-9591-b1ad6b5e3c94/connections/d38fa6d3-d712-4cf6-9d9d-f03bacd87595/data/commerce-locations - Square: - value: - results: - - id: D8DVHD1G6NT2J - name: Codat Limited - address: - type: Inventory - line1: 301 Ink Rooms - line2: 28 Easton Street - city: London - country: GB - postalCode: WC1X0BE - modifiedDate: '2022-08-02T10:27:32Z' - sourceModifiedDate: '2020-01-17T14:07:30Z' - pageNumber: 1 - pageSize: 2 - totalResults: 1 - _links: - current: - href: /companies/d779fc82-a098-4107-a9fc-c2a1dda3d522/connections/9b098b74-3770-4dad-9001-4c283a39f1e5/data/commerce-locations?page=1&pageSize=2 - self: - href: /companies/d779fc82-a098-4107-a9fc-c2a1dda3d522/connections/9b098b74-3770-4dad-9001-4c283a39f1e5/data/commerce-locations - '401': - $ref: '#/components/responses/Unauthorized' - '402': - $ref: '#/components/responses/Payment-Required' - '403': - $ref: '#/components/responses/Forbidden' - '404': - $ref: '#/components/responses/Not-Found' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - description: |- - The *List locations* endpoint returns a list of [locations](https://docs.codat.io/lending-api#/schemas/Location) for a given company's connection. - - [Locations](https://docs.codat.io/lending-api#/schemas/Location) hold information on the geographic location at which stocks of [products](https://docs.codat.io/lending-api#/schemas/Product) may be held or where [orders](https://docs.codat.io/lending-api#/schemas/Order) were placed. - - Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data). - - '/companies/{companyId}/connections/{connectionId}/data/commerce-locations/{locationId}': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - - name: locationId - in: path - required: true - schema: - type: string - examples: - - 13d946f0-c5d5-42bc-b092-97ece17923ab - - 9wg4lep4ush5cxs79pl8sozmsndbaukll3ind4g7buqbm1h2 - - 7110701885 - - EILBDVJVNUAGVKRQ - description: Unique identifier for a location. - get: - summary: Get location - tags: - - Sales - operationId: get-commerce-location - x-speakeasy-group: sales.locations - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/CommerceLocation' - examples: - Clover: - value: - id: GA3WP1ZC3ZFK1 - name: Codat - address: - type: Inventory - line1: '301 Ink Rooms, 28 Easton Street' - city: London - region: London - country: GB - postalCode: WC1X 0BE - modifiedDate: '2023-01-09T11:01:03Z' - Lightspeed K Trial: - value: - id: '647208621834538' - name: QA Shared - New Test Site - address: - type: Unknown - country: AU - modifiedDate: '2023-03-02T09:48:48Z' - Shopify: - value: - id: '61375348894' - name: '301 Ink Rooms, 28 Easton St' - address: - type: Inventory - line1: '301 Ink Rooms, 28 Easton St' - city: London - region: London - country: GB - postalCode: WC1X 0BE - modifiedDate: '2023-02-10T15:18:25Z' - sourceModifiedDate: '2021-03-19T10:06:06' - Square: - value: - id: D8DVHD1G6NT2J - name: Codat Limited - address: - type: Inventory - line1: 301 Ink Rooms - line2: 28 Easton Street - city: London - country: GB - postalCode: WC1X0BE - modifiedDate: '2022-08-02T10:27:32Z' - sourceModifiedDate: '2020-01-17T14:07:30Z' - '401': - $ref: '#/components/responses/Unauthorized' - '402': - $ref: '#/components/responses/Payment-Required' - '403': - $ref: '#/components/responses/Forbidden' - '404': - $ref: '#/components/responses/Not-Found' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - description: | - The *Get location* endpoint returns a single location for a given locationId. - - [Locations](https://docs.codat.io/lending-api#/schemas/Location) hold information on the geographic location at which stocks of [products](https://docs.codat.io/lending-api#/schemas/Product) may be held or where [orders](https://docs.codat.io/lending-api#/schemas/Order) were placed. - - Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data). - '/companies/{companyId}/connections/{connectionId}/data/commerce-orders': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - get: - summary: List orders - tags: - - Sales - operationId: list-commerce-orders - x-speakeasy-group: sales.orders - responses: - '200': - description: OK - content: - application/json: - x-speakeasy-usage-example: true - schema: - $ref: '#/components/schemas/CommerceOrders' - examples: - Amazon Seller Central: - value: - results: - - id: 902-1845936-5435065 - orderNumber: 902-1845936-5435065 - country: 'US ' - currency: USD - createdDate: '1970-01-19T03:58:30Z' - totalAmount: 10 - totalRefund: 0 - totalTaxAmount: 1.01 - totalDiscount: 0 - totalGratuity: 0 - orderLineItems: - - id: O05015851154158 - quantity: 1 - taxPercentage: 11.23 - totalAmount: 10 - totalTaxAmount: 1.01 - unitPrice: 8.99 - taxes: [] - productVariantRef: - id: NABetaASINB00551Q3CS - discountAllocations: [] - payments: [] - serviceCharges: [] - modifiedDate: '2023-01-09T09:12:12Z' - sourceModifiedDate: '1970-01-19T03:58:32Z' - pageNumber: 1 - pageSize: 2 - totalResults: 1 - _links: - current: - href: /companies/6a59da96-e6d2-4c5c-ace7-65ba8be6a472/connections/58be1638-2c74-4ad4-8ff3-8c5b98b5f0fe/data/commerce-orders?page=1&pageSize=2 - self: - href: /companies/6a59da96-e6d2-4c5c-ace7-65ba8be6a472/connections/58be1638-2c74-4ad4-8ff3-8c5b98b5f0fe/data/commerce-orders - BigCommerce: - value: - results: - - id: '100' - orderNumber: '100' - country: GBR - currency: GBP - createdDate: '2022-06-15T15:48:18Z' - totalAmount: 675 - totalRefund: 0 - totalTaxAmount: 112.5 - totalDiscount: 10 - totalGratuity: 0 - orderLineItems: - - id: '1' - quantity: 1 - taxPercentage: 20 - totalAmount: 221.64 - totalTaxAmount: 36.94 - unitPrice: 187.5 - taxes: [] - productRef: - id: '86' - name: '[Sample] Able Brewing System' - productVariantRef: - id: '66' - name: '[Sample] Able Brewing System' - discountAllocations: - - name: Manual Discount - totalAmount: 3.36 - - id: '2' - quantity: 5 - taxPercentage: 19.9999 - totalAmount: 438.36 - totalTaxAmount: 73.06 - unitPrice: 74.1667 - taxes: [] - productRef: - id: '81' - name: '[Sample] Orbit Terrarium - Small' - productVariantRef: - id: '65' - name: '[Sample] Orbit Terrarium - Small' - discountAllocations: - - name: Manual Discount - totalAmount: 6.64 - payments: [] - serviceCharges: - - description: Shipping Charge - totalAmount: 15 - taxPercentage: 20 - taxAmount: 2.5 - taxes: [] - quantity: 1 - type: Shipping - customerRef: - id: '0' - modifiedDate: '2023-04-11T10:33:56Z' - sourceModifiedDate: '2022-06-15T15:48:18Z' - - id: '101' - orderNumber: '101' - country: GBR - currency: GBP - createdDate: '2022-06-15T15:49:02Z' - totalAmount: 675 - totalRefund: 0 - totalTaxAmount: 112.5 - totalDiscount: 10 - totalGratuity: 0 - orderLineItems: - - id: '3' - quantity: 1 - taxPercentage: 20 - totalAmount: 221.64 - totalTaxAmount: 36.94 - unitPrice: 187.5 - taxes: [] - productRef: - id: '86' - name: '[Sample] Able Brewing System' - productVariantRef: - id: '66' - name: '[Sample] Able Brewing System' - discountAllocations: - - name: Manual Discount - totalAmount: 3.36 - - id: '4' - quantity: 5 - taxPercentage: 19.9999 - totalAmount: 438.36 - totalTaxAmount: 73.06 - unitPrice: 74.1667 - taxes: [] - productRef: - id: '81' - name: '[Sample] Orbit Terrarium - Small' - productVariantRef: - id: '65' - name: '[Sample] Orbit Terrarium - Small' - discountAllocations: - - name: Manual Discount - totalAmount: 6.64 - payments: [] - serviceCharges: - - description: Shipping Charge - totalAmount: 15 - taxPercentage: 20 - taxAmount: 2.5 - taxes: [] - quantity: 1 - type: Shipping - customerRef: - id: '0' - modifiedDate: '2023-04-11T10:33:56Z' - sourceModifiedDate: '2022-06-15T15:49:02Z' - pageNumber: 1 - pageSize: 2 - totalResults: 14 - _links: - current: - href: /companies/d1ebcf6d-f7f9-4841-8a06-fec12c492a48/connections/7c0a21e8-938a-40a4-b0f7-5ab5d46804b0/data/commerce-orders?page=1&pageSize=2 - self: - href: /companies/d1ebcf6d-f7f9-4841-8a06-fec12c492a48/connections/7c0a21e8-938a-40a4-b0f7-5ab5d46804b0/data/commerce-orders - next: - href: /companies/d1ebcf6d-f7f9-4841-8a06-fec12c492a48/connections/7c0a21e8-938a-40a4-b0f7-5ab5d46804b0/data/commerce-orders?page=2&pageSize=2 - Clover: - value: - results: - - id: 0BCZPWGFC3M16 - orderNumber: 0BCZPWGFC3M16 - country: 'GB ' - currency: GBP - createdDate: '2021-05-24T10:33:41Z' - totalAmount: 1200 - totalRefund: 0 - totalTaxAmount: 200 - totalDiscount: 0 - totalGratuity: 0 - orderLineItems: - - id: 985WY5J4H12XY - quantity: 1 - taxPercentage: 20 - totalAmount: 1200 - totalTaxAmount: 200 - unitPrice: 1000 - taxes: - - taxComponentRef: - id: KAWQTPZP3R9VT - name: VAT 20% - taxAmount: 200 - productRef: - id: NMZHKK6FKF6ZJ - name: Laptop - discountAllocations: [] - payments: - - id: S2D924NX13T2G - serviceCharges: [] - locationRef: - id: GA3WP1ZC3ZFK1 - name: Codat - modifiedDate: '2022-09-08T15:47:43Z' - sourceModifiedDate: '2021-05-24T10:33:45Z' - - id: 0G22TXMYQQE54 - orderNumber: 0G22TXMYQQE54 - country: 'GB ' - currency: GBP - createdDate: '2021-05-24T11:24:48Z' - totalAmount: 1340 - totalRefund: 0 - totalTaxAmount: 240 - totalDiscount: 100 - totalGratuity: 0 - orderLineItems: - - id: GZ73TPFAV6NTP - quantity: 1 - taxPercentage: 20 - totalAmount: 1440 - totalTaxAmount: 240 - unitPrice: 1200 - taxes: - - taxComponentRef: - id: KAWQTPZP3R9VT - name: VAT 20% - taxAmount: 240 - productRef: - id: QVAV6KM1457B0 - name: Desktop - discountAllocations: [] - - id: 'Discount: �10 off' - quantity: 1 - taxPercentage: 0 - totalAmount: -100 - totalTaxAmount: 0 - unitPrice: 0 - taxes: [] - discountAllocations: - - name: �10 off - totalAmount: 100 - payments: - - id: H726AAJQYE3SP - serviceCharges: [] - locationRef: - id: GA3WP1ZC3ZFK1 - name: Codat - modifiedDate: '2022-09-08T15:47:43Z' - sourceModifiedDate: '2021-05-24T11:24:52Z' - pageNumber: 1 - pageSize: 2 - totalResults: 76 - _links: - current: - href: /companies/1535235d-5efb-4d17-9d94-491c1f35ff92/connections/ed802898-f920-486b-b553-d7b4c1ac6c8d/data/commerce-orders?page=1&pageSize=2 - self: - href: /companies/1535235d-5efb-4d17-9d94-491c1f35ff92/connections/ed802898-f920-486b-b553-d7b4c1ac6c8d/data/commerce-orders - next: - href: /companies/1535235d-5efb-4d17-9d94-491c1f35ff92/connections/ed802898-f920-486b-b553-d7b4c1ac6c8d/data/commerce-orders?page=2&pageSize=2 - Lightspeed K Trial: - value: - results: - - id: A61465.1 - orderNumber: A61465.1 - country: 'AU ' - currency: AUD - createdDate: '2022-12-09T02:27:14Z' - closedDate: '2022-12-09T02:27:46Z' - totalAmount: 5 - totalRefund: 0 - totalTaxAmount: 0.45 - totalDiscount: 0 - totalGratuity: 0 - orderLineItems: - - id: S61465.1 - quantity: 1 - taxPercentage: 10 - totalAmount: 5 - totalTaxAmount: 0.45 - unitPrice: 4.5455 - taxes: - - taxComponentRef: - id: GST10 - name: 10% GST - taxAmount: 0.45 - productRef: - id: '647208621834617' - name: Hot Chocolate - discountAllocations: [] - payments: - - id: 'R61465.1_1_A61465.1_2022-12-09T02:27:46.273Z' - amount: 5 - currency: AUD - type: Unknown - status: Paid - dueDate: '0001-01-01T00:00:00' - createdDate: '2022-12-09T02:27:46' - modifiedDate: '2023-03-02T09:50:43' - serviceCharges: [] - locationRef: - id: '647208621834538' - name: QA Shared - New Test Site - modifiedDate: '2023-03-08T13:49:34Z' - - id: A61465.2 - orderNumber: A61465.2 - country: 'AU ' - currency: AUD - createdDate: '2022-12-12T23:20:12Z' - closedDate: '2022-12-12T23:21:29Z' - totalAmount: 10 - totalRefund: 0 - totalTaxAmount: 0.91 - totalDiscount: 0 - totalGratuity: 0 - orderLineItems: - - id: S61465.2 - quantity: 1 - taxPercentage: 10 - totalAmount: 5 - totalTaxAmount: 0.46 - unitPrice: 4.5455 - taxes: - - taxComponentRef: - id: GST10 - name: 10% GST - taxAmount: 0.46 - productRef: - id: '647208621834663' - name: Royal - discountAllocations: [] - - id: S61465.3 - quantity: 1 - taxPercentage: 10 - totalAmount: 5 - totalTaxAmount: 0.45 - unitPrice: 4.5455 - taxes: - - taxComponentRef: - id: GST10 - name: 10% GST - taxAmount: 0.45 - productRef: - id: '647208621834623' - name: Mocha - discountAllocations: [] - payments: - - id: 'R61465.2_1_A61465.2_2022-12-12T23:21:29.006Z' - amount: 10 - currency: AUD - type: Unknown - status: Paid - dueDate: '0001-01-01T00:00:00' - createdDate: '2022-12-12T23:21:29' - modifiedDate: '2023-03-02T09:50:43' - serviceCharges: [] - locationRef: - id: '647208621834538' - name: QA Shared - New Test Site - modifiedDate: '2023-03-08T13:49:34Z' - pageNumber: 1 - pageSize: 2 - totalResults: 24 - _links: - current: - href: /companies/36e3213b-02f6-4264-96ce-6dd53ea69e57/connections/278ba962-466a-452b-92b0-4bdee3a23463/data/commerce-orders?page=1&pageSize=2 - self: - href: /companies/36e3213b-02f6-4264-96ce-6dd53ea69e57/connections/278ba962-466a-452b-92b0-4bdee3a23463/data/commerce-orders - next: - href: /companies/36e3213b-02f6-4264-96ce-6dd53ea69e57/connections/278ba962-466a-452b-92b0-4bdee3a23463/data/commerce-orders?page=2&pageSize=2 - Mollie: - value: - results: - - id: ord_2at3ck - orderNumber: '1337' - country: NLD - currency: EUR - createdDate: '2022-01-20T09:28:32' - totalAmount: 1027.99 - totalRefund: 0 - totalTaxAmount: 178.41 - totalDiscount: 100 - totalGratuity: 0 - orderLineItems: - - id: odl_1.3tvc32 - quantity: 1 - taxPercentage: 21 - totalAmount: 329.99 - totalTaxAmount: 57.27 - unitPrice: 329.99 - taxes: [] - discountAllocations: [] - - id: odl_1.x95vuk - quantity: 2 - taxPercentage: 21 - totalAmount: 698 - totalTaxAmount: 121.14 - unitPrice: 399 - taxes: [] - discountAllocations: - - name: Discount - totalAmount: 100 - payments: - - id: tr_GpHuaqHrca - amount: 1027.99 - currency: EUR - type: OnlineCard - status: Failed - dueDate: '0001-01-01T00:00:00' - createdDate: '2022-02-08T15:44:22' - modifiedDate: '2022-03-17T15:47:28' - sourceModifiedDate: '2022-02-08T16:02:02' - - id: tr_w7RGQc3k3V - amount: 1027.99 - currency: EUR - type: OnlineCard - status: Failed - dueDate: '0001-01-01T00:00:00' - createdDate: '2022-01-20T09:28:32' - modifiedDate: '2022-03-17T15:47:28' - sourceModifiedDate: '2022-01-20T09:46:02' - serviceCharges: [] - modifiedDate: '2022-03-17T15:47:28Z' - pageNumber: 1 - pageSize: 2 - totalResults: 1 - _links: - current: - href: /companies/a68cb447-182d-4bbe-be1a-f526d11d69d5/connections/dfbf847b-cde8-4b00-b2f9-af51dec0d337/data/commerce-orders?page=1&pageSize=2 - self: - href: /companies/a68cb447-182d-4bbe-be1a-f526d11d69d5/connections/dfbf847b-cde8-4b00-b2f9-af51dec0d337/data/commerce-orders - Mollie Test: - value: - results: - - id: ord_2at3ck - orderNumber: '1337' - country: NLD - currency: EUR - createdDate: '2022-01-20T09:28:32' - totalAmount: 1027.99 - totalRefund: 0 - totalTaxAmount: 178.41 - totalDiscount: 100 - totalGratuity: 0 - orderLineItems: - - id: odl_1.x95vuk - quantity: 2 - taxPercentage: 21 - totalAmount: 698 - totalTaxAmount: 121.14 - unitPrice: 338.43 - taxes: [] - discountAllocations: - - name: Discount - totalAmount: 100 - - id: odl_1.3tvc32 - quantity: 1 - taxPercentage: 21 - totalAmount: 329.99 - totalTaxAmount: 57.27 - unitPrice: 272.72 - taxes: [] - discountAllocations: [] - payments: - - id: tr_GpHuaqHrca - - id: tr_w7RGQc3k3V - serviceCharges: [] - modifiedDate: '2022-08-17T11:33:19Z' - pageNumber: 1 - pageSize: 2 - totalResults: 1 - _links: - current: - href: /companies/b978f9fe-8d63-4cfc-b2c2-b61b72e22785/connections/d564f8fd-0766-4ab8-a427-7c893f9b9ff6/data/commerce-orders?page=1&pageSize=2 - self: - href: /companies/b978f9fe-8d63-4cfc-b2c2-b61b72e22785/connections/d564f8fd-0766-4ab8-a427-7c893f9b9ff6/data/commerce-orders - Partner Commerce: - value: - results: - - id: 6d135134-2f77-45f7-af3d-ee873e42da45 - orderNumber: '93128704' - country: 'GM ' - currency: CAD - createdDate: '2021-02-10T01:37:23' - totalAmount: 203.82 - totalRefund: 0 - totalTaxAmount: 40.77 - totalDiscount: 25.63 - totalGratuity: 80.81 - orderLineItems: - - id: 89f5e83a-c87d-4b60-a009-0ea9065867aa - quantity: 3 - taxPercentage: 20 - totalAmount: 85.44 - totalTaxAmount: 17.09 - unitPrice: 28.48 - taxes: [] - productRef: - id: 98ef828e-33e1-4c23-9383-a029f1d6a3a6 - productVariantRef: - id: dffcd99e-13bb-4b89-89ef-719b3b0777e6 - discountAllocations: - - name: Discount - totalAmount: 8.54 - - name: Discount - totalAmount: 17.09 - - id: 4c65f0d9-05c8-48eb-9c4a-1774f5073e66 - quantity: 3 - taxPercentage: 20 - totalAmount: 118.38 - totalTaxAmount: 23.68 - unitPrice: 39.46 - taxes: [] - productRef: - id: 561f8efb-3429-4c1f-a014-1fa595f9b3c6 - productVariantRef: - id: e0715a7a-0179-4a2e-b40d-800fd2f36764 - discountAllocations: [] - payments: - - id: 3ec3d4c4-8003-4f77-a44e-08b3e17057bf - serviceCharges: [] - locationRef: - id: d84a8ce0-d7e4-400a-b07a-d4bddd9c1873 - customerRef: - id: 0dc0206d-f22f-48c9-a4e5-79f8383c3426 - modifiedDate: '2022-05-12T07:22:02Z' - sourceModifiedDate: '2021-02-10T01:37:23' - pageNumber: 1 - pageSize: 2 - totalResults: 1 - _links: - current: - href: /companies/4342cb7d-d7b1-492f-851e-4aa5084933c1/connections/9e5422fa-f03f-4d58-bcf4-161b574ab350/data/commerce-orders?page=1&pageSize=2 - self: - href: /companies/4342cb7d-d7b1-492f-851e-4aa5084933c1/connections/9e5422fa-f03f-4d58-bcf4-161b574ab350/data/commerce-orders - PrestaShop: - value: - results: - - id: '1' - orderNumber: XKBKNABJK - country: 'US ' - currency: USD - createdDate: '2021-09-02T06:00:54' - totalAmount: 61.8 - totalRefund: 0 - totalTaxAmount: 0 - totalDiscount: 0 - totalGratuity: 0 - orderLineItems: - - id: '1' - quantity: 1 - taxPercentage: 0 - totalAmount: 23.9 - totalTaxAmount: 0 - unitPrice: 23.9 - taxes: [] - productRef: - id: '1' - name: Hummingbird printed t-shirt - discountAllocations: [] - - id: '2' - quantity: 1 - taxPercentage: 0 - totalAmount: 35.9 - totalTaxAmount: 0 - unitPrice: 35.9 - taxes: [] - productRef: - id: '2' - name: Hummingbird printed sweater - discountAllocations: [] - payments: [] - serviceCharges: - - description: Shipping - totalAmount: 2 - taxPercentage: 0 - taxAmount: 0 - taxes: [] - quantity: 1 - type: Shipping - customerRef: - id: '1' - name: John DOE - modifiedDate: '2022-01-26T15:09:42Z' - sourceModifiedDate: '2021-09-02T06:00:54' - - id: '10' - orderNumber: UFQZXPGQU - country: 'US ' - currency: USD - createdDate: '2021-09-28T08:09:46' - totalAmount: 19.12 - totalRefund: 0 - totalTaxAmount: 0 - totalDiscount: 4.78 - totalGratuity: 0 - orderLineItems: - - id: '14' - quantity: 1 - taxPercentage: 0 - totalAmount: 19.12 - totalTaxAmount: 0 - unitPrice: 23.9 - taxes: [] - productRef: - id: '1' - name: Hummingbird printed t-shirt - discountAllocations: - - name: 20% Discount - totalAmount: 4.78 - payments: [] - serviceCharges: [] - customerRef: - id: '5' - name: Tobi Yinusa - modifiedDate: '2022-01-26T15:09:42Z' - sourceModifiedDate: '2021-09-28T08:09:46' - pageNumber: 1 - pageSize: 2 - totalResults: 10 - _links: - current: - href: /companies/2bf78e61-58ca-421a-a430-5dfa59cf15b0/connections/30774c1f-fdcd-491e-9e60-47e316b3ab9b/data/commerce-orders?page=1&pageSize=2 - self: - href: /companies/2bf78e61-58ca-421a-a430-5dfa59cf15b0/connections/30774c1f-fdcd-491e-9e60-47e316b3ab9b/data/commerce-orders - next: - href: /companies/2bf78e61-58ca-421a-a430-5dfa59cf15b0/connections/30774c1f-fdcd-491e-9e60-47e316b3ab9b/data/commerce-orders?page=2&pageSize=2 - Shopify: - value: - results: - - id: '3684119445662' - orderNumber: '1007' - country: XXX - currency: GBP - createdDate: '2021-03-19T13:18:33' - totalAmount: 600 - totalRefund: 0 - totalTaxAmount: 0 - totalDiscount: 0 - totalGratuity: 0 - orderLineItems: - - id: '9670458146974' - quantity: 4 - taxPercentage: 0 - totalAmount: 600 - totalTaxAmount: 0 - unitPrice: 150 - taxes: [] - productRef: - id: '6595494117534' - name: Monitor - productVariantRef: - id: '39444526694558' - name: Monitor - discountAllocations: [] - payments: - - id: '4630233579678' - amount: 600 - currency: GBP - type: OnlineCard - status: Failed - paymentProvider: Shopify Payments - dueDate: '0001-01-01T00:00:00' - createdDate: '2021-03-19T13:17:49' - modifiedDate: '2023-02-10T15:18:24' - sourceModifiedDate: '2021-03-19T13:17:49' - - id: '4630234497182' - amount: 600 - currency: GBP - type: OnlineCard - status: Paid - paymentProvider: Shopify Payments - dueDate: '0001-01-01T00:00:00' - createdDate: '2021-03-19T13:18:29' - modifiedDate: '2023-02-10T15:18:24' - sourceModifiedDate: '2021-03-19T13:18:29' - serviceCharges: [] - customerRef: - id: '5097398534302' - name: Qa Test - modifiedDate: '2023-02-10T15:18:24Z' - sourceModifiedDate: '2022-08-01T13:12:35' - - id: '3684180361374' - orderNumber: '1011' - country: XXX - currency: GBP - createdDate: '2021-03-19T13:57:30' - totalAmount: 105 - totalRefund: 0 - totalTaxAmount: 0 - totalDiscount: 0 - totalGratuity: 0 - orderLineItems: - - id: '9670570901662' - quantity: 3 - taxPercentage: 0 - totalAmount: 105 - totalTaxAmount: 0 - unitPrice: 35 - taxes: [] - productRef: - id: '6595497787550' - name: Keyboard - productVariantRef: - id: '39444537213086' - name: Keyboard - discountAllocations: [] - payments: - - id: '4630311108766' - amount: 105 - currency: GBP - type: Unknown - status: Paid - paymentProvider: Manual - dueDate: '0001-01-01T00:00:00' - createdDate: '2021-03-19T13:57:30' - modifiedDate: '2023-02-10T15:18:24' - sourceModifiedDate: '2021-03-19T13:57:30' - serviceCharges: [] - customerRef: - id: '5097398534302' - name: Qa Test - modifiedDate: '2023-02-10T15:18:24Z' - sourceModifiedDate: '2022-08-01T13:12:35' - pageNumber: 1 - pageSize: 2 - totalResults: 30 - _links: - current: - href: /companies/0bc1cc44-c6d2-4537-9591-b1ad6b5e3c94/connections/d38fa6d3-d712-4cf6-9d9d-f03bacd87595/data/commerce-orders?page=1&pageSize=2 - self: - href: /companies/0bc1cc44-c6d2-4537-9591-b1ad6b5e3c94/connections/d38fa6d3-d712-4cf6-9d9d-f03bacd87595/data/commerce-orders - next: - href: /companies/0bc1cc44-c6d2-4537-9591-b1ad6b5e3c94/connections/d38fa6d3-d712-4cf6-9d9d-f03bacd87595/data/commerce-orders?page=2&pageSize=2 - Square: - value: - results: - - id: BDYNvtIYyWClkTjnh99CFR3fPwKZY - orderNumber: BDYNvtIYyWClkTjnh99CFR3fPwKZY - country: 'GB ' - currency: GBP - createdDate: '2021-02-14T19:38:28Z' - closedDate: '0001-01-01T00:00:00' - totalAmount: 50 - totalRefund: 0 - totalTaxAmount: 0 - totalDiscount: 0 - totalGratuity: 0 - orderLineItems: - - id: lLJpgArKQbBEn9nTvLRHP - quantity: 1 - taxPercentage: 0 - totalAmount: 50 - totalTaxAmount: 0 - unitPrice: 50 - taxes: [] - discountAllocations: [] - payments: [] - serviceCharges: [] - locationRef: - id: D8DVHD1G6NT2J - name: Codat Limited - modifiedDate: '2022-08-02T10:27:33Z' - sourceModifiedDate: '2021-02-14T19:38:28Z' - pageNumber: 1 - pageSize: 2 - totalResults: 1 - _links: - current: - href: /companies/d779fc82-a098-4107-a9fc-c2a1dda3d522/connections/9b098b74-3770-4dad-9001-4c283a39f1e5/data/commerce-orders?page=1&pageSize=2 - self: - href: /companies/d779fc82-a098-4107-a9fc-c2a1dda3d522/connections/9b098b74-3770-4dad-9001-4c283a39f1e5/data/commerce-orders - SumUp: - value: - results: - - id: 07efcdd0-7f61-4d82-957f-52e8f0bd3f89 - orderNumber: TECXTU2KT6 - country: XXX - currency: GBP - createdDate: '2021-03-30T12:20:40Z' - totalAmount: 200 - totalRefund: 0 - totalTaxAmount: 0 - totalDiscount: 0 - totalGratuity: 0 - orderLineItems: - - id: Product undefined by SumUp - quantity: 1 - taxPercentage: 0 - totalAmount: 200 - totalTaxAmount: 0 - unitPrice: 200 - taxes: [] - discountAllocations: [] - payments: - - id: 07efcdd0-7f61-4d82-957f-52e8f0bd3f89 - serviceCharges: [] - modifiedDate: '2022-09-14T10:58:04Z' - - id: 46d36a64-ea48-4e37-9340-3548cbf3ca2f - orderNumber: TNEU7333HZ - country: XXX - currency: GBP - createdDate: '2021-03-26T21:09:59Z' - totalAmount: 15 - totalRefund: 0 - totalTaxAmount: 0 - totalDiscount: 0 - totalGratuity: 0 - orderLineItems: - - id: Sale of some product - quantity: 1 - taxPercentage: 0 - totalAmount: 15 - totalTaxAmount: 0 - unitPrice: 15 - taxes: [] - discountAllocations: [] - payments: - - id: 46d36a64-ea48-4e37-9340-3548cbf3ca2f - serviceCharges: [] - modifiedDate: '2022-09-14T10:58:04Z' - pageNumber: 1 - pageSize: 2 - totalResults: 6 - _links: - current: - href: /companies/e170dbe2-be50-474f-b449-82add37108de/connections/1e631dd5-a30b-4bad-ad5c-315c9743535b/data/commerce-orders?page=1&pageSize=2 - self: - href: /companies/e170dbe2-be50-474f-b449-82add37108de/connections/1e631dd5-a30b-4bad-ad5c-315c9743535b/data/commerce-orders - next: - href: /companies/e170dbe2-be50-474f-b449-82add37108de/connections/1e631dd5-a30b-4bad-ad5c-315c9743535b/data/commerce-orders?page=2&pageSize=2 - WooCommerce: - value: - results: - - id: '111' - orderNumber: '111' - country: 'GB ' - currency: GBP - createdDate: '2021-03-27T23:29:38Z' - totalAmount: 39.5 - totalRefund: 0 - totalTaxAmount: 6 - totalDiscount: 0 - totalGratuity: 0 - orderLineItems: - - id: '53' - quantity: 2 - taxPercentage: 20 - totalAmount: 12 - totalTaxAmount: 2 - unitPrice: 5 - taxes: [] - productRef: - id: '82' - discountAllocations: [] - - id: '54' - quantity: 2 - taxPercentage: 20 - totalAmount: 24 - totalTaxAmount: 4 - unitPrice: 10 - taxes: [] - productRef: - id: '81' - discountAllocations: [] - payments: [] - serviceCharges: - - description: Royal Mail - totalAmount: 3.5 - taxPercentage: 0 - taxAmount: 0 - taxes: [] - quantity: 1 - type: Shipping - customerRef: - id: '200585744' - modifiedDate: '2022-07-11T15:35:48Z' - sourceModifiedDate: '2021-04-01T13:34:59Z' - - id: '145' - orderNumber: '145' - country: 'GB ' - currency: GBP - createdDate: '2021-09-24T12:15:29Z' - totalAmount: 27.5 - totalRefund: 0 - totalTaxAmount: 5.5 - totalDiscount: 0 - totalGratuity: 0 - orderLineItems: - - id: '59' - quantity: 2 - taxPercentage: 25 - totalAmount: 27.5 - totalTaxAmount: 5.5 - unitPrice: 11 - taxes: [] - productRef: - id: '87' - discountAllocations: [] - payments: [] - serviceCharges: [] - modifiedDate: '2022-07-11T15:35:48Z' - sourceModifiedDate: '2022-03-24T16:01:23Z' - pageNumber: 1 - pageSize: 2 - totalResults: 25 - _links: - current: - href: /companies/00396b78-7113-4b1f-996f-4c561b00573a/connections/b39ed7d6-5eda-44c5-85bb-647d03edd649/data/commerce-orders?page=1&pageSize=2 - self: - href: /companies/00396b78-7113-4b1f-996f-4c561b00573a/connections/b39ed7d6-5eda-44c5-85bb-647d03edd649/data/commerce-orders - next: - href: /companies/00396b78-7113-4b1f-996f-4c561b00573a/connections/b39ed7d6-5eda-44c5-85bb-647d03edd649/data/commerce-orders?page=2&pageSize=2 - Zettle: - value: - results: - - id: 7TunRi2XEeueVK3fSQEQIw - orderNumber: '3' - country: 'GB ' - currency: GBP - createdDate: '2020-11-23T14:27:20Z' - totalAmount: 45 - totalRefund: 0 - totalTaxAmount: 0 - totalDiscount: 0 - totalGratuity: 0 - orderLineItems: - - id: '0' - quantity: 1 - taxPercentage: 0 - totalAmount: 45 - totalTaxAmount: 0 - unitPrice: 45 - taxes: [] - productRef: - id: 7f9f31e4-2d97-11eb-9f55-acde48001122 - productVariantRef: - id: 7f9f35ea-2d97-11eb-9f55-acde48001122 - discountAllocations: [] - payments: - - id: ed97bcde-2d97-11eb-a42e-25130f2dd258 - amount: 45 - currency: GBP - type: Paypal - status: Unknown - dueDate: '0001-01-01T00:00:00' - createdDate: '2020-11-23T14:27:19' - modifiedDate: '2021-10-27T15:22:37' - serviceCharges: [] - modifiedDate: '2021-10-27T15:22:37Z' - sourceModifiedDate: '2020-11-23T14:27:20Z' - - id: CV5TJC2YEeueVK3fSQEQIw - orderNumber: '4' - country: 'GB ' - currency: GBP - createdDate: '2020-11-23T14:28:05Z' - totalAmount: 25 - totalRefund: 0 - totalTaxAmount: 1.19 - totalDiscount: 0 - totalGratuity: 0 - orderLineItems: - - id: '0' - quantity: 1 - taxPercentage: 5 - totalAmount: 25 - totalTaxAmount: 1.19 - unitPrice: 23.81 - taxes: [] - productRef: - id: 89570bee-2d97-11eb-9f55-acde48001122 - productVariantRef: - id: 89570c52-2d97-11eb-9f55-acde48001122 - discountAllocations: [] - payments: - - id: 09b94cfc-2d98-11eb-8021-0e1b9dcbeca1 - amount: 25 - currency: GBP - type: Paypal - status: Unknown - dueDate: '0001-01-01T00:00:00' - createdDate: '2020-11-23T14:28:04' - modifiedDate: '2021-10-27T15:22:37' - serviceCharges: [] - modifiedDate: '2021-10-27T15:22:37Z' - sourceModifiedDate: '2020-11-23T14:28:05Z' - pageNumber: 1 - pageSize: 2 - totalResults: 6 - _links: - current: - href: /companies/9d448ad0-4508-47fc-bd3b-6950493151f1/connections/c7baa8da-3302-464b-8aa1-edcd4c900902/data/commerce-orders?page=1&pageSize=2 - self: - href: /companies/9d448ad0-4508-47fc-bd3b-6950493151f1/connections/c7baa8da-3302-464b-8aa1-edcd4c900902/data/commerce-orders - next: - href: /companies/9d448ad0-4508-47fc-bd3b-6950493151f1/connections/c7baa8da-3302-464b-8aa1-edcd4c900902/data/commerce-orders?page=2&pageSize=2 - '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' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - description: |- - The *List orders* endpoint returns a list of [orders](https://docs.codat.io/lending-api#/schemas/Order) for a given company's connection. - - [Orders](https://docs.codat.io/lending-api#/schemas/Order) contain the transaction details for all products sold by the company. - - Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data). - - parameters: - - $ref: '#/components/parameters/page' - - $ref: '#/components/parameters/pageSize' - - $ref: '#/components/parameters/query' - - $ref: '#/components/parameters/orderBy' - '/companies/{companyId}/connections/{connectionId}/data/commerce-orders/{orderId}': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - - name: orderId - in: path - required: true - schema: - type: string - examples: - - 13d946f0-c5d5-42bc-b092-97ece17923ab - - 9wg4lep4ush5cxs79pl8sozmsndbaukll3ind4g7buqbm1h2 - - 7110701885 - - EILBDVJVNUAGVKRQ - description: Unique identifier for an order. - get: - summary: Get order - tags: - - Sales - operationId: get-commerce-order - x-speakeasy-group: sales.orders - responses: - '200': - description: OK - content: - application/json: - x-speakeasy-usage-example: true - schema: - $ref: '#/components/schemas/CommerceOrder' - examples: - Amazon Seller Central: - value: - id: 902-1845936-5435065 - orderNumber: 902-1845936-5435065 - country: 'US ' - currency: USD - createdDate: '1970-01-19T03:58:30Z' - totalAmount: 10 - totalRefund: 0 - totalTaxAmount: 1.01 - totalDiscount: 0 - totalGratuity: 0 - orderLineItems: - - id: O05015851154158 - quantity: 1 - taxPercentage: 11.23 - totalAmount: 10 - totalTaxAmount: 1.01 - unitPrice: 8.99 - taxes: [] - productVariantRef: - id: NABetaASINB00551Q3CS - discountAllocations: [] - payments: [] - serviceCharges: [] - modifiedDate: '2023-01-09T09:12:12Z' - sourceModifiedDate: '1970-01-19T03:58:32Z' - BigCommerce: - value: - id: '100' - orderNumber: '100' - country: GBR - currency: GBP - createdDate: '2022-06-15T15:48:18Z' - totalAmount: 675 - totalRefund: 0 - totalTaxAmount: 112.5 - totalDiscount: 10 - totalGratuity: 0 - orderLineItems: - - id: '1' - quantity: 1 - taxPercentage: 20 - totalAmount: 221.64 - totalTaxAmount: 36.94 - unitPrice: 187.5 - taxes: [] - productRef: - id: '86' - name: '[Sample] Able Brewing System' - productVariantRef: - id: '66' - name: '[Sample] Able Brewing System' - discountAllocations: - - name: Manual Discount - totalAmount: 3.36 - - id: '2' - quantity: 5 - taxPercentage: 19.9999 - totalAmount: 438.36 - totalTaxAmount: 73.06 - unitPrice: 74.1667 - taxes: [] - productRef: - id: '81' - name: '[Sample] Orbit Terrarium - Small' - productVariantRef: - id: '65' - name: '[Sample] Orbit Terrarium - Small' - discountAllocations: - - name: Manual Discount - totalAmount: 6.64 - payments: [] - serviceCharges: - - description: Shipping Charge - totalAmount: 15 - taxPercentage: 20 - taxAmount: 2.5 - taxes: [] - quantity: 1 - type: Shipping - customerRef: - id: '0' - modifiedDate: '2023-04-11T10:33:56Z' - sourceModifiedDate: '2022-06-15T15:48:18Z' - Clover: - value: - id: 0BCZPWGFC3M16 - orderNumber: 0BCZPWGFC3M16 - country: 'GB ' - currency: GBP - createdDate: '2021-05-24T10:33:41Z' - totalAmount: 1200 - totalRefund: 0 - totalTaxAmount: 200 - totalDiscount: 0 - totalGratuity: 0 - orderLineItems: - - id: 985WY5J4H12XY - quantity: 1 - taxPercentage: 20 - totalAmount: 1200 - totalTaxAmount: 200 - unitPrice: 1000 - taxes: - - taxComponentRef: - id: KAWQTPZP3R9VT - name: VAT 20% - taxAmount: 200 - productRef: - id: NMZHKK6FKF6ZJ - name: Laptop - discountAllocations: [] - payments: - - id: S2D924NX13T2G - serviceCharges: [] - locationRef: - id: GA3WP1ZC3ZFK1 - name: Codat - modifiedDate: '2022-09-08T15:47:43Z' - sourceModifiedDate: '2021-05-24T10:33:45Z' - Lightspeed K Trial: - value: - id: A61465.1 - orderNumber: A61465.1 - country: 'AU ' - currency: AUD - createdDate: '2022-12-09T02:27:14Z' - closedDate: '2022-12-09T02:27:46Z' - totalAmount: 5 - totalRefund: 0 - totalTaxAmount: 0.45 - totalDiscount: 0 - totalGratuity: 0 - orderLineItems: - - id: S61465.1 - quantity: 1 - taxPercentage: 10 - totalAmount: 5 - totalTaxAmount: 0.45 - unitPrice: 4.5455 - taxes: - - taxComponentRef: - id: GST10 - name: 10% GST - taxAmount: 0.45 - productRef: - id: '647208621834617' - name: Hot Chocolate - discountAllocations: [] - payments: - - id: 'R61465.1_1_A61465.1_2022-12-09T02:27:46.273Z' - amount: 5 - currency: AUD - type: Unknown - status: Paid - dueDate: '0001-01-01T00:00:00' - createdDate: '2022-12-09T02:27:46' - modifiedDate: '2023-03-02T09:50:43' - serviceCharges: [] - locationRef: - id: '647208621834538' - name: QA Shared - New Test Site - modifiedDate: '2023-03-08T13:49:34Z' - Mollie: - value: - id: ord_2at3ck - orderNumber: '1337' - country: NLD - currency: EUR - createdDate: '2022-01-20T09:28:32' - totalAmount: 1027.99 - totalRefund: 0 - totalTaxAmount: 178.41 - totalDiscount: 100 - totalGratuity: 0 - orderLineItems: - - id: odl_1.3tvc32 - quantity: 1 - taxPercentage: 21 - totalAmount: 329.99 - totalTaxAmount: 57.27 - unitPrice: 329.99 - taxes: [] - discountAllocations: [] - - id: odl_1.x95vuk - quantity: 2 - taxPercentage: 21 - totalAmount: 698 - totalTaxAmount: 121.14 - unitPrice: 399 - taxes: [] - discountAllocations: - - name: Discount - totalAmount: 100 - payments: - - id: tr_GpHuaqHrca - amount: 1027.99 - currency: EUR - type: OnlineCard - status: Failed - dueDate: '0001-01-01T00:00:00' - createdDate: '2022-02-08T15:44:22' - modifiedDate: '2022-03-17T15:47:28' - sourceModifiedDate: '2022-02-08T16:02:02' - - id: tr_w7RGQc3k3V - amount: 1027.99 - currency: EUR - type: OnlineCard - status: Failed - dueDate: '0001-01-01T00:00:00' - createdDate: '2022-01-20T09:28:32' - modifiedDate: '2022-03-17T15:47:28' - sourceModifiedDate: '2022-01-20T09:46:02' - serviceCharges: [] - modifiedDate: '2022-03-17T15:47:28Z' - Mollie Test: - value: - id: ord_2at3ck - orderNumber: '1337' - country: NLD - currency: EUR - createdDate: '2022-01-20T09:28:32' - totalAmount: 1027.99 - totalRefund: 0 - totalTaxAmount: 178.41 - totalDiscount: 100 - totalGratuity: 0 - orderLineItems: - - id: odl_1.x95vuk - quantity: 2 - taxPercentage: 21 - totalAmount: 698 - totalTaxAmount: 121.14 - unitPrice: 338.43 - taxes: [] - discountAllocations: - - name: Discount - totalAmount: 100 - - id: odl_1.3tvc32 - quantity: 1 - taxPercentage: 21 - totalAmount: 329.99 - totalTaxAmount: 57.27 - unitPrice: 272.72 - taxes: [] - discountAllocations: [] - payments: - - id: tr_GpHuaqHrca - - id: tr_w7RGQc3k3V - serviceCharges: [] - modifiedDate: '2022-08-17T11:33:19Z' - Partner Commerce: - value: - id: 6d135134-2f77-45f7-af3d-ee873e42da45 - orderNumber: '93128704' - country: 'GM ' - currency: CAD - createdDate: '2021-02-10T01:37:23' - totalAmount: 203.82 - totalRefund: 0 - totalTaxAmount: 40.77 - totalDiscount: 25.63 - totalGratuity: 80.81 - orderLineItems: - - id: 89f5e83a-c87d-4b60-a009-0ea9065867aa - quantity: 3 - taxPercentage: 20 - totalAmount: 85.44 - totalTaxAmount: 17.09 - unitPrice: 28.48 - taxes: [] - productRef: - id: 98ef828e-33e1-4c23-9383-a029f1d6a3a6 - productVariantRef: - id: dffcd99e-13bb-4b89-89ef-719b3b0777e6 - discountAllocations: - - name: Discount - totalAmount: 8.54 - - name: Discount - totalAmount: 17.09 - - id: 4c65f0d9-05c8-48eb-9c4a-1774f5073e66 - quantity: 3 - taxPercentage: 20 - totalAmount: 118.38 - totalTaxAmount: 23.68 - unitPrice: 39.46 - taxes: [] - productRef: - id: 561f8efb-3429-4c1f-a014-1fa595f9b3c6 - productVariantRef: - id: e0715a7a-0179-4a2e-b40d-800fd2f36764 - discountAllocations: [] - payments: - - id: 3ec3d4c4-8003-4f77-a44e-08b3e17057bf - serviceCharges: [] - locationRef: - id: d84a8ce0-d7e4-400a-b07a-d4bddd9c1873 - customerRef: - id: 0dc0206d-f22f-48c9-a4e5-79f8383c3426 - modifiedDate: '2022-05-12T07:22:02Z' - sourceModifiedDate: '2021-02-10T01:37:23' - PrestaShop: - value: - id: '1' - orderNumber: XKBKNABJK - country: 'US ' - currency: USD - createdDate: '2021-09-02T06:00:54' - totalAmount: 61.8 - totalRefund: 0 - totalTaxAmount: 0 - totalDiscount: 0 - totalGratuity: 0 - orderLineItems: - - id: '1' - quantity: 1 - taxPercentage: 0 - totalAmount: 23.9 - totalTaxAmount: 0 - unitPrice: 23.9 - taxes: [] - productRef: - id: '1' - name: Hummingbird printed t-shirt - discountAllocations: [] - - id: '2' - quantity: 1 - taxPercentage: 0 - totalAmount: 35.9 - totalTaxAmount: 0 - unitPrice: 35.9 - taxes: [] - productRef: - id: '2' - name: Hummingbird printed sweater - discountAllocations: [] - payments: [] - serviceCharges: - - description: Shipping - totalAmount: 2 - taxPercentage: 0 - taxAmount: 0 - taxes: [] - quantity: 1 - type: Shipping - customerRef: - id: '1' - name: John DOE - modifiedDate: '2022-01-26T15:09:42Z' - sourceModifiedDate: '2021-09-02T06:00:54' - Shopify: - value: - id: '3684119445662' - orderNumber: '1007' - country: XXX - currency: GBP - createdDate: '2021-03-19T13:18:33' - totalAmount: 600 - totalRefund: 0 - totalTaxAmount: 0 - totalDiscount: 0 - totalGratuity: 0 - orderLineItems: - - id: '9670458146974' - quantity: 4 - taxPercentage: 0 - totalAmount: 600 - totalTaxAmount: 0 - unitPrice: 150 - taxes: [] - productRef: - id: '6595494117534' - name: Monitor - productVariantRef: - id: '39444526694558' - name: Monitor - discountAllocations: [] - payments: - - id: '4630233579678' - amount: 600 - currency: GBP - type: OnlineCard - status: Failed - paymentProvider: Shopify Payments - dueDate: '0001-01-01T00:00:00' - createdDate: '2021-03-19T13:17:49' - modifiedDate: '2023-02-10T15:18:24' - sourceModifiedDate: '2021-03-19T13:17:49' - - id: '4630234497182' - amount: 600 - currency: GBP - type: OnlineCard - status: Paid - paymentProvider: Shopify Payments - dueDate: '0001-01-01T00:00:00' - createdDate: '2021-03-19T13:18:29' - modifiedDate: '2023-02-10T15:18:24' - sourceModifiedDate: '2021-03-19T13:18:29' - serviceCharges: [] - customerRef: - id: '5097398534302' - name: Qa Test - modifiedDate: '2023-02-10T15:18:24Z' - sourceModifiedDate: '2022-08-01T13:12:35' - Square: - value: - id: BDYNvtIYyWClkTjnh99CFR3fPwKZY - orderNumber: BDYNvtIYyWClkTjnh99CFR3fPwKZY - country: 'GB ' - currency: GBP - createdDate: '2021-02-14T19:38:28Z' - closedDate: '0001-01-01T00:00:00' - totalAmount: 50 - totalRefund: 0 - totalTaxAmount: 0 - totalDiscount: 0 - totalGratuity: 0 - orderLineItems: - - id: lLJpgArKQbBEn9nTvLRHP - quantity: 1 - taxPercentage: 0 - totalAmount: 50 - totalTaxAmount: 0 - unitPrice: 50 - taxes: [] - discountAllocations: [] - payments: [] - serviceCharges: [] - locationRef: - id: D8DVHD1G6NT2J - name: Codat Limited - modifiedDate: '2022-08-02T10:27:33Z' - sourceModifiedDate: '2021-02-14T19:38:28Z' - SumUp: - value: - id: 07efcdd0-7f61-4d82-957f-52e8f0bd3f89 - orderNumber: TECXTU2KT6 - country: XXX - currency: GBP - createdDate: '2021-03-30T12:20:40Z' - totalAmount: 200 - totalRefund: 0 - totalTaxAmount: 0 - totalDiscount: 0 - totalGratuity: 0 - orderLineItems: - - id: Product undefined by SumUp - quantity: 1 - taxPercentage: 0 - totalAmount: 200 - totalTaxAmount: 0 - unitPrice: 200 - taxes: [] - discountAllocations: [] - payments: - - id: 07efcdd0-7f61-4d82-957f-52e8f0bd3f89 - serviceCharges: [] - modifiedDate: '2022-09-14T10:58:04Z' - WooCommerce: - value: - id: '111' - orderNumber: '111' - country: 'GB ' - currency: GBP - createdDate: '2021-03-27T23:29:38Z' - totalAmount: 39.5 - totalRefund: 0 - totalTaxAmount: 6 - totalDiscount: 0 - totalGratuity: 0 - orderLineItems: - - id: '53' - quantity: 2 - taxPercentage: 20 - totalAmount: 12 - totalTaxAmount: 2 - unitPrice: 5 - taxes: [] - productRef: - id: '82' - discountAllocations: [] - - id: '54' - quantity: 2 - taxPercentage: 20 - totalAmount: 24 - totalTaxAmount: 4 - unitPrice: 10 - taxes: [] - productRef: - id: '81' - discountAllocations: [] - payments: [] - serviceCharges: - - description: Royal Mail - totalAmount: 3.5 - taxPercentage: 0 - taxAmount: 0 - taxes: [] - quantity: 1 - type: Shipping - customerRef: - id: '200585744' - modifiedDate: '2022-07-11T15:35:48Z' - sourceModifiedDate: '2021-04-01T13:34:59Z' - Zettle: - value: - id: 7TunRi2XEeueVK3fSQEQIw - orderNumber: '3' - country: 'GB ' - currency: GBP - createdDate: '2020-11-23T14:27:20Z' - totalAmount: 45 - totalRefund: 0 - totalTaxAmount: 0 - totalDiscount: 0 - totalGratuity: 0 - orderLineItems: - - id: '0' - quantity: 1 - taxPercentage: 0 - totalAmount: 45 - totalTaxAmount: 0 - unitPrice: 45 - taxes: [] - productRef: - id: 7f9f31e4-2d97-11eb-9f55-acde48001122 - productVariantRef: - id: 7f9f35ea-2d97-11eb-9f55-acde48001122 - discountAllocations: [] - payments: - - id: ed97bcde-2d97-11eb-a42e-25130f2dd258 - amount: 45 - currency: GBP - type: Paypal - status: Unknown - dueDate: '0001-01-01T00:00:00' - createdDate: '2020-11-23T14:27:19' - modifiedDate: '2021-10-27T15:22:37' - serviceCharges: [] - modifiedDate: '2021-10-27T15:22:37Z' - sourceModifiedDate: '2020-11-23T14:27:20Z' - '401': - $ref: '#/components/responses/Unauthorized' - '402': - $ref: '#/components/responses/Payment-Required' - '403': - $ref: '#/components/responses/Forbidden' - '404': - $ref: '#/components/responses/Not-Found' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - description: | - The *Get order* endpoint returns a single order for a given orderId. - - [Orders](https://docs.codat.io/lending-api#/schemas/Order) contain the transaction details for all products sold by the company. - - Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data). - '/companies/{companyId}/connections/{connectionId}/data/commerce-paymentMethods': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - get: - summary: List payment methods - tags: - - Sales - operationId: list-commerce-payment-methods - x-speakeasy-group: sales.payment-methods - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/CommercePaymentMethods' - examples: - Amazon Seller Central: - value: - results: - - id: COD - name: Cash On Delivery - status: Active - modifiedDate: '2023-01-09T09:12:03Z' - - id: GC - name: Gift Card - status: Active - modifiedDate: '2023-01-09T09:12:03Z' - pageNumber: 1 - pageSize: 2 - totalResults: 3 - _links: - current: - href: /companies/6a59da96-e6d2-4c5c-ace7-65ba8be6a472/connections/58be1638-2c74-4ad4-8ff3-8c5b98b5f0fe/data/commerce-paymentMethods?page=1&pageSize=2 - self: - href: /companies/6a59da96-e6d2-4c5c-ace7-65ba8be6a472/connections/58be1638-2c74-4ad4-8ff3-8c5b98b5f0fe/data/commerce-paymentMethods - next: - href: /companies/6a59da96-e6d2-4c5c-ace7-65ba8be6a472/connections/58be1638-2c74-4ad4-8ff3-8c5b98b5f0fe/data/commerce-paymentMethods?page=2&pageSize=2 - BigCommerce: - value: - results: - - id: bigcommerce_gift_certificate - name: Gift Certificate - status: Active - modifiedDate: '2023-04-11T10:33:48Z' - - id: bigcommerce_store_credit - name: Store Credit - status: Active - modifiedDate: '2023-04-11T10:33:48Z' - pageNumber: 1 - pageSize: 2 - totalResults: 2 - _links: - current: - href: /companies/d1ebcf6d-f7f9-4841-8a06-fec12c492a48/connections/7c0a21e8-938a-40a4-b0f7-5ab5d46804b0/data/commerce-paymentMethods?page=1&pageSize=2 - self: - href: /companies/d1ebcf6d-f7f9-4841-8a06-fec12c492a48/connections/7c0a21e8-938a-40a4-b0f7-5ab5d46804b0/data/commerce-paymentMethods - Clover: - value: - results: - - id: 0DPQ6QP48YYHW - name: TapMango Wallet - status: Active - modifiedDate: '2023-01-09T11:01:04Z' - - id: 24H1ANYP1BNXG - name: MyTab - status: Active - modifiedDate: '2023-01-09T11:01:04Z' - pageNumber: 1 - pageSize: 2 - totalResults: 13 - _links: - current: - href: /companies/aae80eb3-1f56-41ca-a171-a59f9ee03b26/connections/4a5b633b-cd86-4715-a22b-62be98c4bcc5/data/commerce-paymentMethods?page=1&pageSize=2 - self: - href: /companies/aae80eb3-1f56-41ca-a171-a59f9ee03b26/connections/4a5b633b-cd86-4715-a22b-62be98c4bcc5/data/commerce-paymentMethods - next: - href: /companies/aae80eb3-1f56-41ca-a171-a59f9ee03b26/connections/4a5b633b-cd86-4715-a22b-62be98c4bcc5/data/commerce-paymentMethods?page=2&pageSize=2 - Lightspeed K Trial: - value: - results: - - id: '647208621834260' - name: Cash - status: Active - modifiedDate: '2023-03-02T09:48:56Z' - - id: '647208621834261' - name: Credit Card - status: Active - modifiedDate: '2023-03-02T09:48:56Z' - pageNumber: 1 - pageSize: 2 - totalResults: 11 - _links: - current: - href: /companies/36e3213b-02f6-4264-96ce-6dd53ea69e57/connections/278ba962-466a-452b-92b0-4bdee3a23463/data/commerce-paymentMethods?page=1&pageSize=2 - self: - href: /companies/36e3213b-02f6-4264-96ce-6dd53ea69e57/connections/278ba962-466a-452b-92b0-4bdee3a23463/data/commerce-paymentMethods - next: - href: /companies/36e3213b-02f6-4264-96ce-6dd53ea69e57/connections/278ba962-466a-452b-92b0-4bdee3a23463/data/commerce-paymentMethods?page=2&pageSize=2 - Mollie: - value: - results: - - id: applepay - name: Apple Pay - status: Unknown - modifiedDate: '2022-08-09T15:08:19Z' - - id: bancontact - name: Bancontact - status: Unknown - modifiedDate: '2022-08-09T15:08:19Z' - pageNumber: 1 - pageSize: 2 - totalResults: 19 - _links: - current: - href: /companies/a2503b54-143c-4705-8bec-9ef84f51ca86/connections/4c8df852-f1b3-4642-939b-c33d6f34a312/data/commerce-paymentMethods?page=1&pageSize=2 - self: - href: /companies/a2503b54-143c-4705-8bec-9ef84f51ca86/connections/4c8df852-f1b3-4642-939b-c33d6f34a312/data/commerce-paymentMethods - next: - href: /companies/a2503b54-143c-4705-8bec-9ef84f51ca86/connections/4c8df852-f1b3-4642-939b-c33d6f34a312/data/commerce-paymentMethods?page=2&pageSize=2 - Mollie Test: - value: - results: - - id: applepay - name: Apple Pay - status: Unknown - modifiedDate: '2022-08-17T11:33:19Z' - - id: bancontact - name: Bancontact - status: Unknown - modifiedDate: '2022-08-17T11:33:19Z' - pageNumber: 1 - pageSize: 2 - totalResults: 19 - _links: - current: - href: /companies/b978f9fe-8d63-4cfc-b2c2-b61b72e22785/connections/d564f8fd-0766-4ab8-a427-7c893f9b9ff6/data/commerce-paymentMethods?page=1&pageSize=2 - self: - href: /companies/b978f9fe-8d63-4cfc-b2c2-b61b72e22785/connections/d564f8fd-0766-4ab8-a427-7c893f9b9ff6/data/commerce-paymentMethods - next: - href: /companies/b978f9fe-8d63-4cfc-b2c2-b61b72e22785/connections/d564f8fd-0766-4ab8-a427-7c893f9b9ff6/data/commerce-paymentMethods?page=2&pageSize=2 - Square: - value: - results: - - id: BANK_ACCOUNT - name: Bank Account - status: Unknown - modifiedDate: '2022-08-02T10:27:32Z' - - id: BUY_NOW_PAY_LATER - name: Buy Now Pay Later - status: Unknown - modifiedDate: '2022-08-02T10:27:32Z' - pageNumber: 1 - pageSize: 2 - totalResults: 20 - _links: - current: - href: /companies/d779fc82-a098-4107-a9fc-c2a1dda3d522/connections/9b098b74-3770-4dad-9001-4c283a39f1e5/data/commerce-paymentMethods?page=1&pageSize=2 - self: - href: /companies/d779fc82-a098-4107-a9fc-c2a1dda3d522/connections/9b098b74-3770-4dad-9001-4c283a39f1e5/data/commerce-paymentMethods - next: - href: /companies/d779fc82-a098-4107-a9fc-c2a1dda3d522/connections/9b098b74-3770-4dad-9001-4c283a39f1e5/data/commerce-paymentMethods?page=2&pageSize=2 - SumUp: - value: - results: - - id: CASH - name: Cash - status: Active - modifiedDate: '2022-09-14T10:58:03Z' - - id: CC_CUSTOMER_ENTERED - name: Credit Card - status: Active - modifiedDate: '2022-09-14T10:58:03Z' - pageNumber: 1 - pageSize: 2 - totalResults: 8 - _links: - current: - href: /companies/e170dbe2-be50-474f-b449-82add37108de/connections/1e631dd5-a30b-4bad-ad5c-315c9743535b/data/commerce-paymentMethods?page=1&pageSize=2 - self: - href: /companies/e170dbe2-be50-474f-b449-82add37108de/connections/1e631dd5-a30b-4bad-ad5c-315c9743535b/data/commerce-paymentMethods - next: - href: /companies/e170dbe2-be50-474f-b449-82add37108de/connections/1e631dd5-a30b-4bad-ad5c-315c9743535b/data/commerce-paymentMethods?page=2&pageSize=2 - '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' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - description: |- - The *List payment methods* endpoint returns a list of [payment methods](https://docs.codat.io/lending-api#/schemas/PaymentMethod) for a given company's connection. - - [Payment methods](https://docs.codat.io/lending-api#/schemas/PaymentMethod) represent the payment method(s) used to make payments. - - Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data). - - parameters: - - $ref: '#/components/parameters/page' - - $ref: '#/components/parameters/pageSize' - - $ref: '#/components/parameters/query' - - $ref: '#/components/parameters/orderBy' - '/companies/{companyId}/connections/{connectionId}/data/commerce-paymentMethods/{paymentMethodId}': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - - name: paymentMethodId - in: path - required: true - schema: - type: string - examples: - - 13d946f0-c5d5-42bc-b092-97ece17923ab - - 9wg4lep4ush5cxs79pl8sozmsndbaukll3ind4g7buqbm1h2 - - 7110701885 - - EILBDVJVNUAGVKRQ - description: Unique identifier for a payment method. - get: - summary: Get payment method - tags: - - Sales - operationId: get-commerce-payment-method - x-speakeasy-group: sales.payment-methods - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/CommercePaymentMethod' - examples: - Amazon Seller Central: - value: - id: COD - name: Cash On Delivery - status: Active - modifiedDate: '2023-01-09T09:12:03Z' - BigCommerce: - value: - id: bigcommerce_gift_certificate - name: Gift Certificate - status: Active - modifiedDate: '2023-04-11T10:33:48Z' - Clover: - value: - id: 0DPQ6QP48YYHW - name: TapMango Wallet - status: Active - modifiedDate: '2023-01-09T11:01:04Z' - Lightspeed K Trial: - value: - id: '647208621834260' - name: Cash - status: Active - modifiedDate: '2023-03-02T09:48:56Z' - Mollie: - value: - id: applepay - name: Apple Pay - status: Unknown - modifiedDate: '2022-08-09T15:08:19Z' - Mollie Test: - value: - id: applepay - name: Apple Pay - status: Unknown - modifiedDate: '2022-08-17T11:33:19Z' - Square: - value: - id: BANK_ACCOUNT - name: Bank Account - status: Unknown - modifiedDate: '2022-08-02T10:27:32Z' - SumUp: - value: - id: CASH - name: Cash - status: Active - modifiedDate: '2022-09-14T10:58:03Z' - '401': - $ref: '#/components/responses/Unauthorized' - '402': - $ref: '#/components/responses/Payment-Required' - '403': - $ref: '#/components/responses/Forbidden' - '404': - $ref: '#/components/responses/Not-Found' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - description: | - The *Get payment method* endpoint returns a single payment method for a given paymentMethodId. - - [Payment methods](https://docs.codat.io/lending-api#/schemas/PaymentMethod) represent the payment method(s) used to make payments. - - Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data). - '/companies/{companyId}/connections/{connectionId}/data/commerce-payments': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - get: - summary: List payments - tags: - - Sales - operationId: list-commerce-payments - x-speakeasy-group: sales.payments - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/CommercePayments' - examples: - BigCommerce: - value: - results: - - id: 103_1_1_refund - amount: -64 - currency: GBP - type: Unknown - status: Paid - paymentProvider: bigpaypay - dueDate: '0001-01-01T00:00:00' - createdDate: '2022-06-15T17:13:13Z' - modifiedDate: '2023-04-11T10:33:52Z' - - id: 105_2_2_refund - amount: -33.95 - currency: GBP - type: Unknown - status: Paid - paymentProvider: bigpaypay - dueDate: '0001-01-01T00:00:00' - createdDate: '2022-06-24T13:57:01Z' - modifiedDate: '2023-04-11T10:33:52Z' - pageNumber: 1 - pageSize: 2 - totalResults: 20 - _links: - current: - href: /companies/d1ebcf6d-f7f9-4841-8a06-fec12c492a48/connections/7c0a21e8-938a-40a4-b0f7-5ab5d46804b0/data/commerce-payments?page=1&pageSize=2 - self: - href: /companies/d1ebcf6d-f7f9-4841-8a06-fec12c492a48/connections/7c0a21e8-938a-40a4-b0f7-5ab5d46804b0/data/commerce-payments - next: - href: /companies/d1ebcf6d-f7f9-4841-8a06-fec12c492a48/connections/7c0a21e8-938a-40a4-b0f7-5ab5d46804b0/data/commerce-payments?page=2&pageSize=2 - Clover: - value: - results: - - id: 01J7HV88GT6B8 - amount: 1000 - currency: USD - paymentMethodRef: - id: BR5M17TG091SP - name: Credit Card - type: Card - status: Paid - paymentProvider: clover - dueDate: '0001-01-01T00:00:00' - createdDate: '2021-05-24T10:35:08Z' - modifiedDate: '2023-01-09T11:01:02Z' - sourceModifiedDate: '2021-05-24T10:35:08Z' - - id: 0A8ZMPG40Q9AM - amount: 1000 - currency: USD - paymentMethodRef: - id: BR5M17TG091SP - name: Credit Card - type: Card - status: Paid - paymentProvider: clover - dueDate: '0001-01-01T00:00:00' - createdDate: '2021-05-24T10:35:31Z' - modifiedDate: '2023-01-09T11:01:02Z' - sourceModifiedDate: '2021-05-24T10:35:31Z' - pageNumber: 1 - pageSize: 2 - totalResults: 77 - _links: - current: - href: /companies/aae80eb3-1f56-41ca-a171-a59f9ee03b26/connections/4a5b633b-cd86-4715-a22b-62be98c4bcc5/data/commerce-payments?page=1&pageSize=2 - self: - href: /companies/aae80eb3-1f56-41ca-a171-a59f9ee03b26/connections/4a5b633b-cd86-4715-a22b-62be98c4bcc5/data/commerce-payments - next: - href: /companies/aae80eb3-1f56-41ca-a171-a59f9ee03b26/connections/4a5b633b-cd86-4715-a22b-62be98c4bcc5/data/commerce-payments?page=2&pageSize=2 - Lightspeed K Trial: - value: - results: - - id: '1_A62084.1_2023-01-05T03:34:50.296Z' - amount: 0 - currency: AUD - paymentMethodRef: - id: '0' - type: Unknown - status: Paid - dueDate: '0001-01-01T00:00:00' - createdDate: '2023-01-05T03:34:50Z' - modifiedDate: '2023-03-02T09:50:43Z' - - id: 'R61465.1_1_A61465.1_2022-12-09T02:27:46.273Z' - amount: 5 - currency: AUD - paymentMethodRef: - id: '647208621834714' - name: LSPay - Mary - type: Unknown - status: Paid - dueDate: '0001-01-01T00:00:00' - createdDate: '2022-12-09T02:27:46Z' - modifiedDate: '2023-03-02T09:50:43Z' - pageNumber: 1 - pageSize: 2 - totalResults: 26 - _links: - current: - href: /companies/36e3213b-02f6-4264-96ce-6dd53ea69e57/connections/278ba962-466a-452b-92b0-4bdee3a23463/data/commerce-payments?page=1&pageSize=2 - self: - href: /companies/36e3213b-02f6-4264-96ce-6dd53ea69e57/connections/278ba962-466a-452b-92b0-4bdee3a23463/data/commerce-payments - next: - href: /companies/36e3213b-02f6-4264-96ce-6dd53ea69e57/connections/278ba962-466a-452b-92b0-4bdee3a23463/data/commerce-payments?page=2&pageSize=2 - Mollie: - value: - results: - - id: re_Azhe8TzfUK - amount: -20 - currency: EUR - type: OnlineCard - status: Paid - paymentProvider: mollie - dueDate: '0001-01-01T00:00:00' - createdDate: '2022-01-17T16:00:46' - modifiedDate: '2022-03-17T16:15:23Z' - - id: re_NPKEJhQveu - amount: -60 - currency: EUR - type: OnlineCard - status: Paid - paymentProvider: mollie - dueDate: '0001-01-01T00:00:00' - createdDate: '2022-01-17T16:00:05' - modifiedDate: '2022-03-17T16:15:23Z' - pageNumber: 1 - pageSize: 2 - totalResults: 16 - _links: - current: - href: /companies/65fe5864-16d7-41f4-8823-87ae1cf3a283/connections/1dbbf0ab-a27a-45b0-982a-ae0d8985affc/data/commerce-payments?page=1&pageSize=2 - self: - href: /companies/65fe5864-16d7-41f4-8823-87ae1cf3a283/connections/1dbbf0ab-a27a-45b0-982a-ae0d8985affc/data/commerce-payments - next: - href: /companies/65fe5864-16d7-41f4-8823-87ae1cf3a283/connections/1dbbf0ab-a27a-45b0-982a-ae0d8985affc/data/commerce-payments?page=2&pageSize=2 - PrestaShop: - value: - results: - - id: '1' - amount: 20.9 - currency: USD - type: Unknown - status: Paid - dueDate: '0001-01-01T00:00:00' - createdDate: '2021-09-08T01:52:55' - modifiedDate: '2022-01-26T15:09:42Z' - - id: '2' - amount: 20.9 - currency: USD - type: Unknown - status: Paid - dueDate: '0001-01-01T00:00:00' - createdDate: '2021-09-08T01:53:28' - modifiedDate: '2022-01-26T15:09:42Z' - pageNumber: 1 - pageSize: 2 - totalResults: 5 - _links: - current: - href: /companies/2bf78e61-58ca-421a-a430-5dfa59cf15b0/connections/30774c1f-fdcd-491e-9e60-47e316b3ab9b/data/commerce-payments?page=1&pageSize=2 - self: - href: /companies/2bf78e61-58ca-421a-a430-5dfa59cf15b0/connections/30774c1f-fdcd-491e-9e60-47e316b3ab9b/data/commerce-payments - next: - href: /companies/2bf78e61-58ca-421a-a430-5dfa59cf15b0/connections/30774c1f-fdcd-491e-9e60-47e316b3ab9b/data/commerce-payments?page=2&pageSize=2 - Shopify: - value: - results: - - id: '4630233579678' - amount: 600 - currency: GBP - type: OnlineCard - status: Failed - paymentProvider: Shopify Payments - dueDate: '0001-01-01T00:00:00' - createdDate: '2021-03-19T13:17:49Z' - modifiedDate: '2023-02-10T15:18:24Z' - sourceModifiedDate: '2021-03-19T13:17:49Z' - - id: '4630234497182' - amount: 600 - currency: GBP - type: OnlineCard - status: Paid - paymentProvider: Shopify Payments - dueDate: '0001-01-01T00:00:00' - createdDate: '2021-03-19T13:18:29Z' - modifiedDate: '2023-02-10T15:18:24Z' - sourceModifiedDate: '2021-03-19T13:18:29Z' - pageNumber: 1 - pageSize: 2 - totalResults: 46 - _links: - current: - href: /companies/0bc1cc44-c6d2-4537-9591-b1ad6b5e3c94/connections/d38fa6d3-d712-4cf6-9d9d-f03bacd87595/data/commerce-payments?page=1&pageSize=2 - self: - href: /companies/0bc1cc44-c6d2-4537-9591-b1ad6b5e3c94/connections/d38fa6d3-d712-4cf6-9d9d-f03bacd87595/data/commerce-payments - next: - href: /companies/0bc1cc44-c6d2-4537-9591-b1ad6b5e3c94/connections/d38fa6d3-d712-4cf6-9d9d-f03bacd87595/data/commerce-payments?page=2&pageSize=2 - SumUp: - value: - results: - - id: 07efcdd0-7f61-4d82-957f-52e8f0bd3f89 - amount: 200 - currency: GBP - type: OnlineCard - status: Cancelled - paymentProvider: sumup - dueDate: '0001-01-01T00:00:00' - createdDate: '2021-03-30T12:20:40Z' - modifiedDate: '2022-03-17T16:13:46Z' - - id: 46d36a64-ea48-4e37-9340-3548cbf3ca2f - amount: 15 - currency: GBP - type: Cash - status: Paid - paymentProvider: sumup - dueDate: '0001-01-01T00:00:00' - createdDate: '2021-03-26T21:09:59Z' - modifiedDate: '2022-03-17T16:13:46Z' - pageNumber: 1 - pageSize: 2 - totalResults: 6 - _links: - current: - href: /companies/d9e78460-7ee5-4a34-a3f4-9652a5946b1f/connections/60959ebe-8491-4368-bf0a-f715c3ce2e53/data/commerce-payments?page=1&pageSize=2 - self: - href: /companies/d9e78460-7ee5-4a34-a3f4-9652a5946b1f/connections/60959ebe-8491-4368-bf0a-f715c3ce2e53/data/commerce-payments - next: - href: /companies/d9e78460-7ee5-4a34-a3f4-9652a5946b1f/connections/60959ebe-8491-4368-bf0a-f715c3ce2e53/data/commerce-payments?page=2&pageSize=2 - WooCommerce: - value: - results: - - id: '33' - amount: 0 - currency: GBP - type: Unknown - status: Paid - dueDate: '0001-01-01T00:00:00' - createdDate: '2021-03-11T09:07:00Z' - modifiedDate: '2021-07-13T16:19:00Z' - - id: '35' - amount: 30 - currency: GBP - type: Unknown - status: Paid - dueDate: '0001-01-01T00:00:00' - createdDate: '2021-03-11T09:08:56Z' - modifiedDate: '2021-07-13T16:19:00Z' - pageNumber: 1 - pageSize: 2 - totalResults: 5 - _links: - current: - href: /companies/010c6f53-8fc8-40ab-9ed5-41191cf9c6b5/connections/7545ca2e-5f58-4f98-8af2-3b2c38bb8074/data/commerce-payments?page=1&pageSize=2 - self: - href: /companies/010c6f53-8fc8-40ab-9ed5-41191cf9c6b5/connections/7545ca2e-5f58-4f98-8af2-3b2c38bb8074/data/commerce-payments - next: - href: /companies/010c6f53-8fc8-40ab-9ed5-41191cf9c6b5/connections/7545ca2e-5f58-4f98-8af2-3b2c38bb8074/data/commerce-payments?page=2&pageSize=2 - Zettle: - value: - results: - - id: 09b94cfc-2d98-11eb-8021-0e1b9dcbeca1 - amount: 25 - currency: GBP - type: Paypal - status: Unknown - dueDate: '0001-01-01T00:00:00' - createdDate: '2020-11-23T14:28:04Z' - modifiedDate: '2021-10-27T15:22:37Z' - - id: 226580d6-2d98-11eb-a35c-fed5e63de507 - amount: 58.5 - currency: GBP - type: Paypal - status: Unknown - dueDate: '0001-01-01T00:00:00' - createdDate: '2020-11-23T14:28:47Z' - modifiedDate: '2021-10-27T15:22:37Z' - pageNumber: 1 - pageSize: 2 - totalResults: 8 - _links: - current: - href: /companies/9d448ad0-4508-47fc-bd3b-6950493151f1/connections/c7baa8da-3302-464b-8aa1-edcd4c900902/data/commerce-payments?page=1&pageSize=2 - self: - href: /companies/9d448ad0-4508-47fc-bd3b-6950493151f1/connections/c7baa8da-3302-464b-8aa1-edcd4c900902/data/commerce-payments - next: - href: /companies/9d448ad0-4508-47fc-bd3b-6950493151f1/connections/c7baa8da-3302-464b-8aa1-edcd4c900902/data/commerce-payments?page=2&pageSize=2 - '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' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - description: |- - The *List payments* endpoint returns a list of [payments](https://docs.codat.io/lending-api#/schemas/Payment) for a given company's connection. - - [Payments](https://docs.codat.io/lending-api#/schemas/Payment) contain details of all payments made by customers to the company. - - Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data). - - parameters: - - $ref: '#/components/parameters/page' - - $ref: '#/components/parameters/pageSize' - - $ref: '#/components/parameters/query' - - $ref: '#/components/parameters/orderBy' - '/companies/{companyId}/connections/{connectionId}/data/commerce-payments/{paymentId}': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - - $ref: '#/components/parameters/paymentId' - get: - summary: Get payment - tags: - - Sales - operationId: get-commerce-payment - x-speakeasy-group: sales.payments - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/CommercePayment' - examples: - BigCommerce: - value: - id: 103_1_1_refund - amount: -64 - currency: GBP - type: Unknown - status: Paid - paymentProvider: bigpaypay - dueDate: '0001-01-01T00:00:00' - createdDate: '2022-06-15T17:13:13Z' - modifiedDate: '2023-04-11T10:33:52Z' - Clover: - value: - id: 01J7HV88GT6B8 - amount: 1000 - currency: USD - paymentMethodRef: - id: BR5M17TG091SP - name: Credit Card - type: Card - status: Paid - paymentProvider: clover - dueDate: '0001-01-01T00:00:00' - createdDate: '2021-05-24T10:35:08Z' - modifiedDate: '2023-01-09T11:01:02Z' - sourceModifiedDate: '2021-05-24T10:35:08Z' - Lightspeed K Trial: - value: - id: '1_A62084.1_2023-01-05T03:34:50.296Z' - amount: 0 - currency: AUD - paymentMethodRef: - id: '0' - type: Unknown - status: Paid - dueDate: '0001-01-01T00:00:00' - createdDate: '2023-01-05T03:34:50Z' - modifiedDate: '2023-03-02T09:50:43Z' - Mollie: - value: - id: re_Azhe8TzfUK - amount: -20 - currency: EUR - type: OnlineCard - status: Paid - paymentProvider: mollie - dueDate: '0001-01-01T00:00:00' - createdDate: '2022-01-17T16:00:46' - modifiedDate: '2022-03-17T16:15:23Z' - PrestaShop: - value: - id: '1' - amount: 20.9 - currency: USD - type: Unknown - status: Paid - dueDate: '0001-01-01T00:00:00' - createdDate: '2021-09-08T01:52:55' - modifiedDate: '2022-01-26T15:09:42Z' - Shopify: - value: - id: '4630233579678' - amount: 600 - currency: GBP - type: OnlineCard - status: Failed - paymentProvider: Shopify Payments - dueDate: '0001-01-01T00:00:00' - createdDate: '2021-03-19T13:17:49Z' - modifiedDate: '2023-02-10T15:18:24Z' - sourceModifiedDate: '2021-03-19T13:17:49Z' - SumUp: - value: - id: 07efcdd0-7f61-4d82-957f-52e8f0bd3f89 - amount: 200 - currency: GBP - type: OnlineCard - status: Cancelled - paymentProvider: sumup - dueDate: '0001-01-01T00:00:00' - createdDate: '2021-03-30T12:20:40Z' - modifiedDate: '2022-03-17T16:13:46Z' - WooCommerce: - value: - id: '33' - amount: 0 - currency: GBP - type: Unknown - status: Paid - dueDate: '0001-01-01T00:00:00' - createdDate: '2021-03-11T09:07:00Z' - modifiedDate: '2021-07-13T16:19:00Z' - Zettle: - value: - id: 09b94cfc-2d98-11eb-8021-0e1b9dcbeca1 - amount: 25 - currency: GBP - type: Paypal - status: Unknown - dueDate: '0001-01-01T00:00:00' - createdDate: '2020-11-23T14:28:04Z' - modifiedDate: '2021-10-27T15:22:37Z' - '401': - $ref: '#/components/responses/Unauthorized' - '402': - $ref: '#/components/responses/Payment-Required' - '403': - $ref: '#/components/responses/Forbidden' - '404': - $ref: '#/components/responses/Not-Found' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - description: | - The *Get payment* endpoint returns a single payment for a given paymentId. - - [Payments](https://docs.codat.io/lending-api#/schemas/Payment) contain details of all payments made by customers to the company. - - Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data). - '/companies/{companyId}/connections/{connectionId}/data/commerce-productCategories': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - get: - summary: List product categories - tags: - - Sales - operationId: list-commerce-product-categories - x-speakeasy-group: sales.product-categories - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/CommerceProductCategories' - examples: - Lightspeed K Trial: - value: - results: - - id: '647208621834281' - name: Alcoholic beverages - ancestorRefs: [] - hasChildren: false - modifiedDate: '2023-03-02T09:49:11Z' - - id: '647208621834282' - name: NA beverages - ancestorRefs: [] - hasChildren: false - modifiedDate: '2023-03-02T09:49:11Z' - pageNumber: 1 - pageSize: 2 - totalResults: 8 - _links: - current: - href: /companies/36e3213b-02f6-4264-96ce-6dd53ea69e57/connections/278ba962-466a-452b-92b0-4bdee3a23463/data/commerce-productCategories?page=1&pageSize=2 - self: - href: /companies/36e3213b-02f6-4264-96ce-6dd53ea69e57/connections/278ba962-466a-452b-92b0-4bdee3a23463/data/commerce-productCategories - next: - href: /companies/36e3213b-02f6-4264-96ce-6dd53ea69e57/connections/278ba962-466a-452b-92b0-4bdee3a23463/data/commerce-productCategories?page=2&pageSize=2 - '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' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - parameters: - - $ref: '#/components/parameters/page' - - $ref: '#/components/parameters/pageSize' - - $ref: '#/components/parameters/query' - - $ref: '#/components/parameters/orderBy' - '/integrations/{platformKey}': - parameters: - - $ref: '#/components/parameters/platformKey' - get: - summary: Get integration - tags: - - Integrations - operationId: get-integration - description: 'Get single integration, by platformKey' - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/Integration' - '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' - '/integrations/{platformKey}/branding': - parameters: - - $ref: '#/components/parameters/platformKey' - get: - summary: Get branding - tags: - - Integrations - operationId: get-integrations-branding - x-speakeasy-name-override: get-branding - description: Get branding for platform. - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/Branding' - '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' - /profile: - get: - summary: Get profile - tags: - - Settings - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/Profile' - examples: {} - '401': - $ref: '#/components/responses/Unauthorized' - '402': - $ref: '#/components/responses/Payment-Required' - '403': - $ref: '#/components/responses/Forbidden' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - operationId: get-profile - x-speakeasy-name-override: get-profile - description: Fetch your Codat profile. - put: - summary: Update profile - operationId: update-profile - x-speakeasy-name-override: update-profile - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/Profile' - examples: {} - '401': - $ref: '#/components/responses/Unauthorized' - '402': - $ref: '#/components/responses/Payment-Required' - '403': - $ref: '#/components/responses/Forbidden' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - tags: - - Settings - description: Update your Codat profile - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/Profile' - examples: {} - description: All fields should be included when updating your profile. - /profile/syncSettings: - get: - summary: Get sync settings - tags: - - Settings - operationId: get-profile-syncSettings - x-speakeasy-name-override: get-sync-settings - description: 'Retrieve the [sync settings](https://docs.codat.io/knowledge-base/advanced-sync-settings) for your client. This includes how often data types should be queued to be updated, and how much history should be fetched.' - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/SyncSettings' - examples: - Example: - value: - clientId: 367f7975-267b-439b-90c6-a6040ee680f3 - settings: - - dataType: invoices - fetchOnFirstLink: true - syncSchedule: 24 - syncOrder: 0 - syncFromUtc: '2020-01-01T12:00:00.000Z' - syncFromWindow: 24 - monthsToSync: 24 - isLocked: true - overridesDefaults: true - '401': - $ref: '#/components/responses/Unauthorized' - '402': - $ref: '#/components/responses/Payment-Required' - '403': - $ref: '#/components/responses/Forbidden' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - post: - summary: Update all sync settings - description: Update sync settings for all data types. - tags: - - Settings - operationId: update-profile-syncSettings - x-speakeasy-name-override: update-sync-settings - responses: - '204': - description: No Content - '401': - $ref: '#/components/responses/Unauthorized' - '402': - $ref: '#/components/responses/Payment-Required' - '403': - $ref: '#/components/responses/Forbidden' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - requestBody: - content: - application/json: - schema: - allOf: - - properties: - clientId: - $ref: '#/components/schemas/ClientId' - settings: - type: array - items: - $ref: '#/components/schemas/SyncSetting' - overridesDefaults: - type: boolean - default: true - description: 'Set to `True` if you want to override default [sync settings](https://docs.codat.io/knowledge-base/advanced-sync-settings).' - required: - - clientId - - settings - - overridesDefaults - type: object - description: |- - Include a `syncSetting` object for each data type. - `syncFromWindow`, `syncFromUTC` & `monthsToSync` only need to be included if you wish to set a value for them. - /apiKeys: - get: - summary: List API keys - description: |- - Use the *List API keys* endpoint to return a list of all API keys that currently exist for your client. This includes keys created via the Portal UI or the *Create API keys* endpoint. - - [API keys](https://docs.codat.io/platform-api#/schemas/apiKeys) are tokens used to control access to the API. Include this token in the `Authorization` header parameter when making API calls, following the word "Basic" and a space with your API key. - - You can [read more](https://docs.codat.io/using-the-api/authentication) about authentication at Codat and managing API keys via the Portal UI or API. - operationId: list-api-keys - x-speakeasy-name-override: list-api-keys - tags: - - Settings - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/ApiKeys' - examples: - Example: - value: - results: - - id: 0498e921-9b53-4396-a412-4f2f5983b0a2 - apiKey: ztHQGvnC4XN2CgUhaDWEG4ySLUJqWjp7zkbZkGHd - createdDate: '2022-04-11T13:49:37Z' - - id: c438836a-61fe-443f-8a19-24cc18be21e4 - name: azure-invoice-finance-processor - apiKey: ztHQGvnC4XN2CgUhaDWEG4ySLUJqWjp7zkbZkGHd - createdDate: '2022-04-23T09:43:48Z' - '401': - $ref: '#/components/responses/Unauthorized' - '402': - $ref: '#/components/responses/Payment-Required' - '403': - $ref: '#/components/responses/Forbidden' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - post: - summary: Create API key - operationId: create-api-key - x-speakeasy-name-override: create-api-key - description: |- - Use the *Create API keys* endpoint to generate a new API key for your client. - - [API keys](https://docs.codat.io/platform-api#/schemas/apiKeys) are tokens used to control access to the API. Include this token in the `Authorization` header parameter when making API calls, following the word "Basic" and a space with your API key. - - You can [read more](https://docs.codat.io/using-the-api/authentication) about authentication at Codat and managing API keys via the Portal UI or API. - - ### Tips and pitfalls - - * Your first API key is created for you. Access this key via [Codat's Portal](https://app.codat.io/developers/api-keys). - * If you require multiple API keys, perform multiple calls to the *Create API keys* endpoint. - * The number of API keys is limited to 10. If you have reached the maximum amount of keys, use the *Delete API key* endpoint to delete an unused key first. - tags: - - Settings - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/CreateApiKey' - examples: - Create API key with name: - value: - name: azure-invoice-finance-processor - responses: - '201': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/ApiKeyDetails' - examples: - API key details: - value: - id: 0498e921-9b53-4396-a412-4f2f5983b0a2 - apiKey: ztHQGvnC4XN2CgUhaDWEG4ySLUJqWjp7zkbZkGHd - createdDate: '2022-04-11T13:49:37Z' - API key details with name: - value: - id: 0498e921-9b53-4396-a412-4f2f5983b0a2 - name: azure-invoice-finance-processor - apiKey: ztHQGvnC4XN2CgUhaDWEG4ySLUJqWjp7zkbZkGHd - createdDate: '2022-04-11T13:49:37Z' - '400': - description: Bad Request - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorMessage' - examples: - Max length for name reached: - value: - statusCode: 400 - service: PublicApi - error: Max string length (50) for `name` reached. - correlationId: bc997528a9d7abb9161ef45f05d38599 - canBeRetried: Unknown - detailedErrorCode: 0 - '401': - $ref: '#/components/responses/Unauthorized' - '402': - $ref: '#/components/responses/Payment-Required' - '403': - $ref: '#/components/responses/Forbidden' - '409': - description: Conflict - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorMessage' - examples: - Max length for name reached: - value: - statusCode: 400 - service: PublicApi - error: 'Maximum number of API keys reached. To create a new API key, delete an unused key and try again.' - correlationId: bc997528a9d7abb9161ef45f05d38599 - canBeRetried: Unknown - detailedErrorCode: 0 - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - '/apiKeys/{apiKeyId}': - delete: - summary: Delete API key - operationId: delete-api-key - x-speakeasy-name-override: delete-api-key - parameters: - - name: apiKeyId - in: path - required: true - schema: - type: string - example: 8a210b68-6988-11ed-a1eb-0242ac120002 - description: Unique identifier for api key. - description: |- - Use the *Delete API keys* endpoint to delete an existing API key, providing its valid `id` as a parameter. Note that this operation is not reversible. - - [API keys](https://docs.codat.io/platform-api#/schemas/apiKeys) are tokens used to control access to the API. Include this token in the `Authorization` header parameter when making API calls, following the word "Basic" and a space with your API key. - - You can [read more](https://docs.codat.io/using-the-api/authentication) about authentication at Codat and managing API keys via the Portal UI or API. - - ### Tips and pitfalls - - * It is possible to delete the last remaining API key. If this happens, a new key can be created via the [API key management page](https://app.codat.io/developers/api-keys) of the Portal. - * It is possible to delete the API key used to authenticate the *Delete API key* request. - tags: - - Settings - responses: - '204': - description: No Content - $ref: '#/components/responses/Too-Many-Requests' - '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' - '/companies/{companyId}/sync/{datasetId}/validation': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/datasetId' - get: - summary: Get validation results - tags: - - Read data - operationId: get-read-validation-results - x-speakeasy-name-override: get-validation-results - description: |- - Use the **Get validation results** endpoint to review warnings and errors encountered during the data type validation phase. - - The validation result [schema](https://docs.codat.io/platform-api#/schemas/ValidationResult) contains two message arrays: - - - **`warnings`** array lists potential issues with the data type that may require attention but don't block usage. - - **`errors`** array contains critical issues that must be resolved before the data type can be used. - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/ValidationResult' - examples: - Validation result: - value: - errors: - - ruleId: accounting-bill-030 - itemId: fc2f2d1a-ff4d-40c6-a7fb-4bd7d04f4008 - message: A bill's lines summed (69.99) should be the same as TotalAmount (70.00). - validatorName: BillValidator - warnings: - - ruleId: accounting-bill-032 - itemId: 1d3979e5-7c28-432e-b562-04e9013c1ea0 - message: A bill's lines sub total amount summed (3201.20) should be the same as SubTotal (3201.25) - validatorName: BillValidator - '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' - '/companies/{companyId}/connections/{connectionId}/options/{dataType}': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - - $ref: '#/components/parameters/dataType' - get: - summary: Get push options - tags: - - Push data - operationId: get-create-update-model-options-by-data-type - x-speakeasy-name-override: get-model-options - description: |- - The *List product categories* endpoint returns a list of [product categories](https://docs.codat.io/lending-api#/schemas/ProductCategory) for a given company's connection. - - [Product categories](https://docs.codat.io/lending-api#/schemas/ProductCategory) are used to classify a group of products together, either by type (e.g. "Furniture"), or sometimes by tax profile. - - Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data). - - '/companies/{companyId}/connections/{connectionId}/data/commerce-productCategories/{productId}': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - - $ref: '#/components/parameters/productId' - get: - summary: Get product category - tags: - - Sales - operationId: get-commerce-product-category - x-speakeasy-group: sales.product-categories - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/CommerceProductCategory' - examples: - Lightspeed K Trial: - value: - id: '647208621834281' - name: Alcoholic beverages - ancestorRefs: [] - hasChildren: false - modifiedDate: '2023-03-02T09:49:11Z' - '401': - $ref: '#/components/responses/Unauthorized' - '402': - $ref: '#/components/responses/Payment-Required' - '403': - $ref: '#/components/responses/Forbidden' - '404': - $ref: '#/components/responses/Not-Found' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - description: | - The *Get product* endpoint returns a single product for a given productId. - - [Product categories](https://docs.codat.io/lending-api#/schemas/ProductCategory) are used to classify a group of products together, either by type (e.g. "Furniture"), or sometimes by tax profile. - - Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data). - '/companies/{companyId}/connections/{connectionId}/data/commerce-products': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - get: - summary: List products - tags: - - Sales - operationId: list-commerce-products - x-speakeasy-group: sales.products - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/CommerceProducts' - examples: - Amazon Seller Central: - value: - results: - - id: Chromecast - categorization: DEVICE - name: Chromecast - description: Cast from your phone to your TV with this all new chromecast. - productCategoryRefs: [] - isGiftCard: false - variants: - - id: packaging_asin_gating - name: Chromecast in a cardboard box - quantity: 0 - isTaxEnabled: false - sku: packaging_asin_gating - vatPercentage: 0 - prices: - - currency: GBP - unitPrice: 50 - inventory: - totalQuantity: 0 - locations: [] - shippingRequired: false - createdDate: '2021-02-07T12:30:01Z' - createdDate: '2021-02-07T12:30:01Z' - modifiedDate: '2023-01-09T09:12:11Z' - sourceModifiedDate: '2022-08-17T09:07:07Z' - status: Published - - id: vb554a-bl1915 - categorization: COAT - name: Waterproof Jacket - description: 'Wind and rainproof, keeping you dry all year round.' - productCategoryRefs: [] - isGiftCard: false - variants: - - id: 'ARRIS,SB6141' - name: Waterproof Jacket (Black) - quantity: 0 - isTaxEnabled: false - sku: 'ARRIS,SB6141' - vatPercentage: 0 - prices: - - currency: GBP - unitPrice: 200 - inventory: - totalQuantity: 0 - locations: [] - shippingRequired: false - createdDate: '2021-02-07T12:30:01Z' - - id: RTN66U-N9000 - name: Waterproof Jacket (Blue) - quantity: 0 - isTaxEnabled: false - sku: RTN66U-N9000 - vatPercentage: 0 - prices: - - currency: GBP - unitPrice: 200 - inventory: - totalQuantity: 0 - locations: [] - shippingRequired: false - createdDate: '2021-02-07T12:30:01Z' - - id: TLWR841N - name: Waterproof Jacket (Red) - quantity: 0 - isTaxEnabled: false - sku: TLWR841N - vatPercentage: 0 - prices: - - currency: GBP - unitPrice: 200 - inventory: - totalQuantity: 0 - locations: [] - shippingRequired: false - createdDate: '2021-02-07T12:30:01Z' - createdDate: '2021-02-07T12:30:01Z' - modifiedDate: '2023-01-09T09:12:11Z' - sourceModifiedDate: '2022-08-17T09:07:07Z' - status: Published - pageNumber: 1 - pageSize: 2 - totalResults: 3 - _links: - current: - href: /companies/6a59da96-e6d2-4c5c-ace7-65ba8be6a472/connections/58be1638-2c74-4ad4-8ff3-8c5b98b5f0fe/data/commerce-products?page=1&pageSize=2 - self: - href: /companies/6a59da96-e6d2-4c5c-ace7-65ba8be6a472/connections/58be1638-2c74-4ad4-8ff3-8c5b98b5f0fe/data/commerce-products - next: - href: /companies/6a59da96-e6d2-4c5c-ace7-65ba8be6a472/connections/58be1638-2c74-4ad4-8ff3-8c5b98b5f0fe/data/commerce-products?page=2&pageSize=2 - BigCommerce: - value: - results: - - id: '103' - categorization: 'Shop All, Utility' - name: '[Sample] Canvas Laundry Cart' - description: 'The last laundry cart you''ll ever buy. This industrial non-collapsable cart is constructed with a steel framed body using heavyweight canvas capped with a soft leather rim sitting on four smooth rolling casters. Keeps the grubby garments off the floor and almost makes laundry enjoyable. Can also be used as the ideal storage solution: many people find it ideal for children''s toys or a load of chopped firewood. Load it up and wheel it away. Natural Heavyweight Canvas with Vegetable Tanned Leather Rim Measure�' - productCategoryRefs: [] - isGiftCard: false - variants: - - id: '71' - name: '[Sample] Canvas Laundry Cart' - quantity: 0 - isTaxEnabled: false - sku: CLC - barcode: '' - vatPercentage: 0 - prices: - - currency: GBP - unitPrice: 200 - inventory: - totalQuantity: 0 - locations: [] - shippingRequired: true - createdDate: '0001-01-01T00:00:00' - createdDate: '2015-07-03T18:48:07Z' - modifiedDate: '2023-04-11T10:33:49Z' - sourceModifiedDate: '2022-06-16T07:59:46Z' - status: Published - - id: '104' - categorization: 'Shop All, Utility' - name: '[Sample] Utility Caddy' - description: 'This powder coated steel utility caddy ensures your cleaning essentials are stowed away in one spot ready for your household chores. Brushes, cloths, liquid soaps can all easily be stashed away. Also ideal to be used as a garden caddy to easily grab from the shed for a days work. Works well as a mop bucket too. The wood carrying handle ensures a comfortable grip when toting it from room to room. Measures 19 h x 36 w x 20 dia cm/7.5 h x 14.1 w x 7.8 dia in' - productCategoryRefs: [] - isGiftCard: false - variants: - - id: '72' - name: '[Sample] Utility Caddy' - quantity: 0 - isTaxEnabled: false - sku: OFSUC - barcode: '' - vatPercentage: 0 - prices: - - currency: GBP - unitPrice: 45.95 - inventory: - totalQuantity: 0 - locations: [] - shippingRequired: true - createdDate: '0001-01-01T00:00:00' - createdDate: '2015-07-03T18:49:26Z' - modifiedDate: '2023-04-11T10:33:49Z' - sourceModifiedDate: '2015-07-03T20:45:54Z' - status: Published - pageNumber: 1 - pageSize: 2 - totalResults: 18 - _links: - current: - href: /companies/d1ebcf6d-f7f9-4841-8a06-fec12c492a48/connections/7c0a21e8-938a-40a4-b0f7-5ab5d46804b0/data/commerce-products?page=1&pageSize=2 - self: - href: /companies/d1ebcf6d-f7f9-4841-8a06-fec12c492a48/connections/7c0a21e8-938a-40a4-b0f7-5ab5d46804b0/data/commerce-products - next: - href: /companies/d1ebcf6d-f7f9-4841-8a06-fec12c492a48/connections/7c0a21e8-938a-40a4-b0f7-5ab5d46804b0/data/commerce-products?page=2&pageSize=2 - Clover: - value: - results: - - id: DJANHKK2AVEYY - name: Coffee - description: Coffee - productCategoryRefs: [] - isGiftCard: false - variants: - - id: DJANHKK2AVEYY - name: Coffee - quantity: 0 - isTaxEnabled: true - sku: '12222' - barcode: '1234' - vatPercentage: 20 - prices: - - currency: GBP - unitPrice: 3 - inventory: - totalQuantity: 0 - locations: [] - shippingRequired: false - createdDate: '0001-01-01T00:00:00' - createdDate: '0001-01-01T00:00:00' - modifiedDate: '2023-01-09T11:01:03Z' - sourceModifiedDate: '2021-05-24T15:50:55Z' - status: Published - - id: NMZHKK6FKF6ZJ - name: Laptop - description: Cool Laptop - productCategoryRefs: [] - isGiftCard: false - variants: - - id: NMZHKK6FKF6ZJ - name: Laptop - quantity: 0 - isTaxEnabled: true - sku: '111' - barcode: '123' - vatPercentage: 20 - prices: - - currency: GBP - unitPrice: 1000 - inventory: - totalQuantity: 0 - locations: [] - shippingRequired: false - createdDate: '0001-01-01T00:00:00' - createdDate: '0001-01-01T00:00:00' - modifiedDate: '2023-01-09T11:01:03Z' - sourceModifiedDate: '2021-05-24T08:19:14Z' - status: Published - pageNumber: 1 - pageSize: 2 - totalResults: 3 - _links: - current: - href: /companies/aae80eb3-1f56-41ca-a171-a59f9ee03b26/connections/4a5b633b-cd86-4715-a22b-62be98c4bcc5/data/commerce-products?page=1&pageSize=2 - self: - href: /companies/aae80eb3-1f56-41ca-a171-a59f9ee03b26/connections/4a5b633b-cd86-4715-a22b-62be98c4bcc5/data/commerce-products - next: - href: /companies/aae80eb3-1f56-41ca-a171-a59f9ee03b26/connections/4a5b633b-cd86-4715-a22b-62be98c4bcc5/data/commerce-products?page=2&pageSize=2 - Lightspeed K Trial: - value: - results: - - id: '647208621834539' - categorization: Alcoholic beverages - name: Alcoholic beverages - description: Alcoholic beverages - productCategoryRefs: - - id: '647208621834281' - name: Alcoholic beverages - isGiftCard: false - variants: [] - createdDate: '0001-01-01T00:00:00' - modifiedDate: '2023-03-02T09:50:32Z' - status: Published - - id: '647208621834542' - categorization: NA beverages - name: NA beverages - description: NA beverages - productCategoryRefs: - - id: '647208621834282' - name: NA beverages - isGiftCard: false - variants: [] - createdDate: '0001-01-01T00:00:00' - modifiedDate: '2023-03-02T09:50:32Z' - status: Published - pageNumber: 1 - pageSize: 2 - totalResults: 39 - _links: - current: - href: /companies/36e3213b-02f6-4264-96ce-6dd53ea69e57/connections/278ba962-466a-452b-92b0-4bdee3a23463/data/commerce-products?page=1&pageSize=2 - self: - href: /companies/36e3213b-02f6-4264-96ce-6dd53ea69e57/connections/278ba962-466a-452b-92b0-4bdee3a23463/data/commerce-products - next: - href: /companies/36e3213b-02f6-4264-96ce-6dd53ea69e57/connections/278ba962-466a-452b-92b0-4bdee3a23463/data/commerce-products?page=2&pageSize=2 - PrestaShop: - value: - results: - - id: '1' - categorization: Home - Clothes - Men - name: Hummingbird printed t-shirt - description: 'Symbol of lightness and delicacy, the hummingbird evokes curiosity and joy. Studio Design'' PolyFaune collection features classic products with colorful patterns, inspired by the traditional japanese origamis. To wear with a chino or jeans. The sublimation textile printing process provides an exceptional color rendering and a color, guaranteed overtime.' - productCategoryRefs: [] - isGiftCard: false - variants: - - id: '8' - name: 'Hummingbird printed t-shirt (Size = XL, Color = Black)' - quantity: 0 - isTaxEnabled: true - sku: demo_1 - vatPercentage: 6 - prices: - - currency: USD - unitPrice: 23.9 - inventory: - totalQuantity: 300 - locations: [] - shippingRequired: true - createdDate: '0001-01-01T00:00:00' - - id: '4' - name: 'Hummingbird printed t-shirt (Size = M, Color = Black)' - quantity: 0 - isTaxEnabled: true - sku: demo_1 - vatPercentage: 6 - prices: - - currency: USD - unitPrice: 23.9 - inventory: - totalQuantity: 300 - locations: [] - shippingRequired: true - createdDate: '0001-01-01T00:00:00' - - id: '5' - name: 'Hummingbird printed t-shirt (Size = L, Color = White)' - quantity: 0 - isTaxEnabled: true - sku: demo_1 - vatPercentage: 6 - prices: - - currency: USD - unitPrice: 23.9 - inventory: - totalQuantity: 300 - locations: [] - shippingRequired: true - createdDate: '0001-01-01T00:00:00' - - id: '3' - name: 'Hummingbird printed t-shirt (Size = M, Color = White)' - quantity: 0 - isTaxEnabled: true - sku: demo_1 - vatPercentage: 6 - prices: - - currency: USD - unitPrice: 23.9 - inventory: - totalQuantity: 300 - locations: [] - shippingRequired: true - createdDate: '0001-01-01T00:00:00' - - id: '6' - name: 'Hummingbird printed t-shirt (Size = L, Color = Black)' - quantity: 0 - isTaxEnabled: true - sku: demo_1 - vatPercentage: 6 - prices: - - currency: USD - unitPrice: 23.9 - inventory: - totalQuantity: 300 - locations: [] - shippingRequired: true - createdDate: '0001-01-01T00:00:00' - - id: '1' - name: 'Hummingbird printed t-shirt (Size = S, Color = White)' - quantity: 0 - isTaxEnabled: true - sku: demo_1 - vatPercentage: 6 - prices: - - currency: USD - unitPrice: 23.9 - inventory: - totalQuantity: 300 - locations: [] - shippingRequired: true - createdDate: '0001-01-01T00:00:00' - - id: '2' - name: 'Hummingbird printed t-shirt (Size = S, Color = Black)' - quantity: 0 - isTaxEnabled: true - sku: demo_1 - vatPercentage: 6 - prices: - - currency: USD - unitPrice: 23.9 - inventory: - totalQuantity: 300 - locations: [] - shippingRequired: true - createdDate: '0001-01-01T00:00:00' - - id: '7' - name: 'Hummingbird printed t-shirt (Size = XL, Color = White)' - quantity: 0 - isTaxEnabled: true - sku: demo_1 - vatPercentage: 6 - prices: - - currency: USD - unitPrice: 23.9 - inventory: - totalQuantity: 300 - locations: [] - shippingRequired: true - createdDate: '0001-01-01T00:00:00' - createdDate: '2021-09-02T06:00:49' - modifiedDate: '2022-01-26T15:09:42Z' - sourceModifiedDate: '2021-09-02T06:00:49' - status: Published - - id: '10' - categorization: Home - Accessories - Home Accessories - name: Brown bear cushion - description: 'The brown bear cushion will add a graphic and colorful touch to your sofa, armchair or bed. Create a modern and zen atmosphere that inspires relaxation. Cover 100% cotton, machine washable at 60� / Filling 100% hypoallergenic polyester.' - productCategoryRefs: [] - isGiftCard: false - variants: - - id: '24' - name: Brown bear cushion (Color = White) - quantity: 0 - isTaxEnabled: true - sku: demo_16 - vatPercentage: 6 - prices: - - currency: USD - unitPrice: 18.9 - inventory: - totalQuantity: 300 - locations: [] - shippingRequired: true - createdDate: '0001-01-01T00:00:00' - - id: '25' - name: Brown bear cushion (Color = Black) - quantity: 0 - isTaxEnabled: true - sku: demo_16 - vatPercentage: 6 - prices: - - currency: USD - unitPrice: 18.9 - inventory: - totalQuantity: 300 - locations: [] - shippingRequired: true - createdDate: '0001-01-01T00:00:00' - createdDate: '2021-09-02T06:00:49' - modifiedDate: '2022-01-26T15:09:42Z' - sourceModifiedDate: '2021-09-02T06:00:49' - status: Published - pageNumber: 1 - pageSize: 2 - totalResults: 22 - _links: - current: - href: /companies/2bf78e61-58ca-421a-a430-5dfa59cf15b0/connections/30774c1f-fdcd-491e-9e60-47e316b3ab9b/data/commerce-products?page=1&pageSize=2 - self: - href: /companies/2bf78e61-58ca-421a-a430-5dfa59cf15b0/connections/30774c1f-fdcd-491e-9e60-47e316b3ab9b/data/commerce-products - next: - href: /companies/2bf78e61-58ca-421a-a430-5dfa59cf15b0/connections/30774c1f-fdcd-491e-9e60-47e316b3ab9b/data/commerce-products?page=2&pageSize=2 - Shopify: - value: - results: - - id: '6595494117534' - categorization: Asus - name: Monitor - description: '' - productCategoryRefs: [] - isGiftCard: false - variants: - - id: '39444526694558' - name: Monitor - quantity: 0 - isTaxEnabled: true - sku: '' - barcode: '' - vatPercentage: 0 - prices: - - currency: GBP - unitPrice: 150 - inventory: - totalQuantity: 91 - locations: [] - shippingRequired: true - createdDate: '2021-03-19T10:13:22Z' - createdDate: '2021-03-19T10:13:22Z' - modifiedDate: '2023-02-10T15:18:25Z' - sourceModifiedDate: '2022-08-01T13:05:22Z' - status: Published - - id: '6595497066654' - categorization: Logitech - name: Mouse - description: '' - productCategoryRefs: [] - isGiftCard: false - variants: - - id: '39444533706910' - name: Mouse - quantity: 0 - isTaxEnabled: false - sku: '' - barcode: '' - vatPercentage: 0 - prices: - - currency: GBP - unitPrice: 25 - inventory: - totalQuantity: 71 - locations: [] - shippingRequired: true - createdDate: '2021-03-19T10:14:01Z' - createdDate: '2021-03-19T10:14:01Z' - modifiedDate: '2023-02-10T15:18:25Z' - sourceModifiedDate: '2022-08-01T13:05:22Z' - status: Published - pageNumber: 1 - pageSize: 2 - totalResults: 4 - _links: - current: - href: /companies/0bc1cc44-c6d2-4537-9591-b1ad6b5e3c94/connections/d38fa6d3-d712-4cf6-9d9d-f03bacd87595/data/commerce-products?page=1&pageSize=2 - self: - href: /companies/0bc1cc44-c6d2-4537-9591-b1ad6b5e3c94/connections/d38fa6d3-d712-4cf6-9d9d-f03bacd87595/data/commerce-products - next: - href: /companies/0bc1cc44-c6d2-4537-9591-b1ad6b5e3c94/connections/d38fa6d3-d712-4cf6-9d9d-f03bacd87595/data/commerce-products?page=2&pageSize=2 - Square: - value: - results: - - id: AX54KZQ3UAVCVPUMNEGFEU35 - categorization: Hardware - name: Monitor - productCategoryRefs: [] - isGiftCard: false - variants: - - id: A5BUT6SYUNYRSQ2R7GZ6UKN6 - name: Regular - quantity: 0 - isTaxEnabled: true - vatPercentage: 10 - prices: - - currency: GBP - unitPrice: 200 - inventory: - totalQuantity: 0 - locations: [] - shippingRequired: false - createdDate: '2021-02-18T15:47:31Z' - createdDate: '2021-02-18T15:47:31Z' - modifiedDate: '2021-06-17T14:23:02Z' - sourceModifiedDate: '2021-02-18T15:47:31Z' - status: Unknown - - id: FYRIQNFTFRGQNQZGZG66MJWI - categorization: Furniture - name: Desk - productCategoryRefs: [] - isGiftCard: false - variants: - - id: VMKSQEABA3WIYGXNAV63JOTZ - name: Regular - quantity: 0 - isTaxEnabled: true - vatPercentage: 10 - prices: - - currency: GBP - unitPrice: 70 - inventory: - totalQuantity: 0 - locations: [] - shippingRequired: false - createdDate: '2021-02-18T15:47:45Z' - createdDate: '2021-02-18T15:47:45Z' - modifiedDate: '2021-06-17T14:23:02Z' - sourceModifiedDate: '2021-02-18T15:47:45Z' - status: Unknown - pageNumber: 1 - pageSize: 2 - totalResults: 4 - _links: - current: - href: /companies/25debd39-e024-41a1-a86c-4fd47f29c853/connections/d5071fdf-a769-48f3-b39e-e588d515bb83/data/commerce-products?page=1&pageSize=2 - self: - href: /companies/25debd39-e024-41a1-a86c-4fd47f29c853/connections/d5071fdf-a769-48f3-b39e-e588d515bb83/data/commerce-products - next: - href: /companies/25debd39-e024-41a1-a86c-4fd47f29c853/connections/d5071fdf-a769-48f3-b39e-e588d515bb83/data/commerce-products?page=2&pageSize=2 - Stripe Test: - value: - results: - - id: prod_IaSbzLnxOHmC0i - name: Blue T Shirt - description: Nice cozy cotton t shirt - productCategoryRefs: [] - isGiftCard: false - variants: - - id: price_1ICJVEA8m8S1Gh7OIOCDOG8j - name: Blue T Shirt - Standard Price - quantity: 0 - isTaxEnabled: false - vatPercentage: 0 - prices: - - currency: GBP - unitPrice: 15 - inventory: - totalQuantity: 0 - locations: [] - shippingRequired: true - createdDate: '2021-01-22T06:52:16Z' - - id: price_1ICJQgA8m8S1Gh7OfErQdx5R - name: Blue T Shirt - Standard Price - quantity: 0 - isTaxEnabled: false - vatPercentage: 0 - prices: - - currency: USD - unitPrice: 30 - inventory: - totalQuantity: 0 - locations: [] - shippingRequired: true - createdDate: '2021-01-22T06:47:34Z' - - id: price_1HzHiCA8m8S1Gh7OXZVa6r3F - name: Blue T Shirt - Standard Price - quantity: 0 - isTaxEnabled: false - vatPercentage: 0 - prices: - - currency: GBP - unitPrice: 15 - inventory: - totalQuantity: 0 - locations: [] - shippingRequired: true - createdDate: '2020-12-17T08:19:48Z' - createdDate: '2020-12-17T08:17:48Z' - modifiedDate: '2022-09-30T11:18:27Z' - sourceModifiedDate: '2021-01-22T06:52:17Z' - status: Published - - id: prod_IQ6G1MDsvUb87Y - name: Laptop - productCategoryRefs: [] - isGiftCard: false - variants: - - id: price_1HpG3tA8m8S1Gh7Oa6bGLvVD - name: Laptop - Standard Price - quantity: 0 - isTaxEnabled: false - vatPercentage: 0 - prices: - - currency: GBP - unitPrice: 100 - inventory: - totalQuantity: 0 - locations: [] - shippingRequired: false - createdDate: '2020-11-19T16:32:45Z' - createdDate: '2020-11-19T16:32:45Z' - modifiedDate: '2022-09-30T11:18:27Z' - sourceModifiedDate: '2022-05-12T23:31:33Z' - status: Published - pageNumber: 1 - pageSize: 2 - totalResults: 4 - _links: - current: - href: /companies/8206e78e-e340-411e-b315-473c4ab73b48/connections/43e58373-0a1d-44a0-97f0-9fa9993a14fa/data/commerce-products?page=1&pageSize=2 - self: - href: /companies/8206e78e-e340-411e-b315-473c4ab73b48/connections/43e58373-0a1d-44a0-97f0-9fa9993a14fa/data/commerce-products - next: - href: /companies/8206e78e-e340-411e-b315-473c4ab73b48/connections/43e58373-0a1d-44a0-97f0-9fa9993a14fa/data/commerce-products?page=2&pageSize=2 - WooCommerce: - value: - results: - - id: '27' - categorization: Hardware - name: Monitor - description: '' - productCategoryRefs: [] - isGiftCard: false - variants: - - id: '27' - name: Monitor - quantity: 0 - isTaxEnabled: true - vatPercentage: 0 - prices: - - currency: GBP - unitPrice: 150 - inventory: - totalQuantity: 0 - locations: [] - shippingRequired: true - createdDate: '2021-03-11T08:55:22' - createdDate: '2021-03-11T08:55:22' - modifiedDate: '2021-07-13T16:19:00Z' - sourceModifiedDate: '2021-03-11T09:03:15' - status: Published - - id: '28' - categorization: Hardware - name: Keyboard - description: '' - productCategoryRefs: [] - isGiftCard: false - variants: - - id: '28' - name: Keyboard - quantity: 0 - isTaxEnabled: true - vatPercentage: 0 - prices: - - currency: GBP - unitPrice: 30 - inventory: - totalQuantity: 0 - locations: [] - shippingRequired: true - createdDate: '2021-03-11T09:02:58' - createdDate: '2021-03-11T09:02:58' - modifiedDate: '2021-07-13T16:19:00Z' - sourceModifiedDate: '2021-03-11T09:02:58' - status: Published - pageNumber: 1 - pageSize: 2 - totalResults: 3 - _links: - current: - href: /companies/010c6f53-8fc8-40ab-9ed5-41191cf9c6b5/connections/7545ca2e-5f58-4f98-8af2-3b2c38bb8074/data/commerce-products?page=1&pageSize=2 - self: - href: /companies/010c6f53-8fc8-40ab-9ed5-41191cf9c6b5/connections/7545ca2e-5f58-4f98-8af2-3b2c38bb8074/data/commerce-products - next: - href: /companies/010c6f53-8fc8-40ab-9ed5-41191cf9c6b5/connections/7545ca2e-5f58-4f98-8af2-3b2c38bb8074/data/commerce-products?page=2&pageSize=2 - Zettle: - value: - results: - - id: 9d21fd90-a34a-11eb-b574-ad6abe469b61 - categorization: Clothing - name: T-Shirt - productCategoryRefs: [] - isGiftCard: false - variants: - - id: bb9bcf30-a34a-11eb-b574-ad6abe469b61 - name: Medium - quantity: 0 - isTaxEnabled: true - vatPercentage: 20 - prices: - - currency: GBP - unitPrice: 10 - inventory: - totalQuantity: 0 - locations: [] - shippingRequired: false - createdDate: '0001-01-01T00:00:00' - - id: b919df40-a34a-11eb-b574-ad6abe469b61 - name: Large - quantity: 0 - isTaxEnabled: true - vatPercentage: 20 - prices: - - currency: GBP - unitPrice: 10 - inventory: - totalQuantity: 0 - locations: [] - shippingRequired: false - createdDate: '0001-01-01T00:00:00' - - id: bcb5cab0-a34a-11eb-b574-ad6abe469b61 - name: Small - quantity: 0 - isTaxEnabled: true - vatPercentage: 20 - prices: - - currency: GBP - unitPrice: 10 - inventory: - totalQuantity: 0 - locations: [] - shippingRequired: false - createdDate: '0001-01-01T00:00:00' - createdDate: '2021-04-22T09:12:09Z' - modifiedDate: '2021-10-27T15:22:37Z' - sourceModifiedDate: '2021-08-04T14:32:20Z' - status: Published - - id: e02c2930-a34a-11eb-b9db-8f5efc0924aa - categorization: Clothing - name: Hoodie - productCategoryRefs: [] - isGiftCard: false - variants: - - id: fa180e40-a34a-11eb-b9db-8f5efc0924aa - name: Medium - quantity: 0 - isTaxEnabled: true - vatPercentage: 20 - prices: - - currency: GBP - unitPrice: 30 - inventory: - totalQuantity: 0 - locations: [] - shippingRequired: false - createdDate: '0001-01-01T00:00:00' - - id: fc412fd0-a34a-11eb-b9db-8f5efc0924aa - name: Extra Large - quantity: 0 - isTaxEnabled: true - vatPercentage: 20 - prices: - - currency: GBP - unitPrice: 30 - inventory: - totalQuantity: 0 - locations: [] - shippingRequired: false - createdDate: '0001-01-01T00:00:00' - - id: f8a03b50-a34a-11eb-b9db-8f5efc0924aa - name: Small - quantity: 0 - isTaxEnabled: true - vatPercentage: 20 - prices: - - currency: GBP - unitPrice: 30 - inventory: - totalQuantity: 0 - locations: [] - shippingRequired: false - createdDate: '0001-01-01T00:00:00' - - id: fac1bbc0-a34a-11eb-b9db-8f5efc0924aa - name: Large - quantity: 0 - isTaxEnabled: true - vatPercentage: 20 - prices: - - currency: GBP - unitPrice: 30 - inventory: - totalQuantity: 0 - locations: [] - shippingRequired: false - createdDate: '0001-01-01T00:00:00' - createdDate: '2021-04-22T09:13:26Z' - modifiedDate: '2021-10-27T15:22:37Z' - sourceModifiedDate: '2021-08-04T14:31:58Z' - status: Published - pageNumber: 1 - pageSize: 2 - totalResults: 2 - _links: - current: - href: /companies/9d448ad0-4508-47fc-bd3b-6950493151f1/connections/c7baa8da-3302-464b-8aa1-edcd4c900902/data/commerce-products?page=1&pageSize=2 - self: - href: /companies/9d448ad0-4508-47fc-bd3b-6950493151f1/connections/c7baa8da-3302-464b-8aa1-edcd4c900902/data/commerce-products - '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' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - parameters: - - $ref: '#/components/parameters/page' - - $ref: '#/components/parameters/pageSize' - - $ref: '#/components/parameters/query' - - $ref: '#/components/parameters/orderBy' - description: |- - The *List products* endpoint returns a list of [products](https://docs.codat.io/lending-api#/schemas/Product) for a given company's connection. - - [Products](https://docs.codat.io/lending-api#/schemas/Product) are items in the company's inventory that are available for sale. - - Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data). - - '/companies/{companyId}/connections/{connectionId}/data/commerce-products/{productId}': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - - $ref: '#/components/parameters/productId' - get: - summary: Get product - tags: - - Sales - operationId: get-commerce-product - x-speakeasy-group: sales.products - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/CommerceProduct' - examples: - Amazon Seller Central: - value: - id: Chromecast - categorization: DEVICE - name: Chromecast - description: Cast from your phone to your TV with this all new chromecast. - productCategoryRefs: [] - isGiftCard: false - variants: - - id: packaging_asin_gating - name: Chromecast in a cardboard box - quantity: 0 - isTaxEnabled: false - sku: packaging_asin_gating - vatPercentage: 0 - prices: - - currency: GBP - unitPrice: 50 - inventory: - totalQuantity: 0 - locations: [] - shippingRequired: false - createdDate: '2021-02-07T12:30:01Z' - createdDate: '2021-02-07T12:30:01Z' - modifiedDate: '2023-01-09T09:12:11Z' - sourceModifiedDate: '2022-08-17T09:07:07Z' - status: Published - BigCommerce: - value: - id: '103' - categorization: 'Shop All, Utility' - name: '[Sample] Canvas Laundry Cart' - description: 'The last laundry cart you''ll ever buy. This industrial non-collapsable cart is constructed with a steel framed body using heavyweight canvas capped with a soft leather rim sitting on four smooth rolling casters. Keeps the grubby garments off the floor and almost makes laundry enjoyable. Can also be used as the ideal storage solution: many people find it ideal for children''s toys or a load of chopped firewood. Load it up and wheel it away. Natural Heavyweight Canvas with Vegetable Tanned Leather Rim Measure�' - productCategoryRefs: [] - isGiftCard: false - variants: - - id: '71' - name: '[Sample] Canvas Laundry Cart' - quantity: 0 - isTaxEnabled: false - sku: CLC - barcode: '' - vatPercentage: 0 - prices: - - currency: GBP - unitPrice: 200 - inventory: - totalQuantity: 0 - locations: [] - shippingRequired: true - createdDate: '0001-01-01T00:00:00' - createdDate: '2015-07-03T18:48:07Z' - modifiedDate: '2023-04-11T10:33:49Z' - sourceModifiedDate: '2022-06-16T07:59:46Z' - status: Published - Clover: - value: - id: DJANHKK2AVEYY - name: Coffee - description: Coffee - productCategoryRefs: [] - isGiftCard: false - variants: - - id: DJANHKK2AVEYY - name: Coffee - quantity: 0 - isTaxEnabled: true - sku: '12222' - barcode: '1234' - vatPercentage: 20 - prices: - - currency: GBP - unitPrice: 3 - inventory: - totalQuantity: 0 - locations: [] - shippingRequired: false - createdDate: '0001-01-01T00:00:00' - createdDate: '0001-01-01T00:00:00' - modifiedDate: '2023-01-09T11:01:03Z' - sourceModifiedDate: '2021-05-24T15:50:55Z' - status: Published - Lightspeed K Trial: - value: - id: '647208621834539' - categorization: Alcoholic beverages - name: Alcoholic beverages - description: Alcoholic beverages - productCategoryRefs: - - id: '647208621834281' - name: Alcoholic beverages - isGiftCard: false - variants: [] - createdDate: '0001-01-01T00:00:00' - modifiedDate: '2023-03-02T09:50:32Z' - status: Published - PrestaShop: - value: - id: '1' - categorization: Home - Clothes - Men - name: Hummingbird printed t-shirt - description: 'Symbol of lightness and delicacy, the hummingbird evokes curiosity and joy. Studio Design'' PolyFaune collection features classic products with colorful patterns, inspired by the traditional japanese origamis. To wear with a chino or jeans. The sublimation textile printing process provides an exceptional color rendering and a color, guaranteed overtime.' - productCategoryRefs: [] - isGiftCard: false - variants: - - id: '8' - name: 'Hummingbird printed t-shirt (Size = XL, Color = Black)' - quantity: 0 - isTaxEnabled: true - sku: demo_1 - vatPercentage: 6 - prices: - - currency: USD - unitPrice: 23.9 - inventory: - totalQuantity: 300 - locations: [] - shippingRequired: true - createdDate: '0001-01-01T00:00:00' - - id: '4' - name: 'Hummingbird printed t-shirt (Size = M, Color = Black)' - quantity: 0 - isTaxEnabled: true - sku: demo_1 - vatPercentage: 6 - prices: - - currency: USD - unitPrice: 23.9 - inventory: - totalQuantity: 300 - locations: [] - shippingRequired: true - createdDate: '0001-01-01T00:00:00' - - id: '5' - name: 'Hummingbird printed t-shirt (Size = L, Color = White)' - quantity: 0 - isTaxEnabled: true - sku: demo_1 - vatPercentage: 6 - prices: - - currency: USD - unitPrice: 23.9 - inventory: - totalQuantity: 300 - locations: [] - shippingRequired: true - createdDate: '0001-01-01T00:00:00' - - id: '3' - name: 'Hummingbird printed t-shirt (Size = M, Color = White)' - quantity: 0 - isTaxEnabled: true - sku: demo_1 - vatPercentage: 6 - prices: - - currency: USD - unitPrice: 23.9 - inventory: - totalQuantity: 300 - locations: [] - shippingRequired: true - createdDate: '0001-01-01T00:00:00' - - id: '6' - name: 'Hummingbird printed t-shirt (Size = L, Color = Black)' - quantity: 0 - isTaxEnabled: true - sku: demo_1 - vatPercentage: 6 - prices: - - currency: USD - unitPrice: 23.9 - inventory: - totalQuantity: 300 - locations: [] - shippingRequired: true - createdDate: '0001-01-01T00:00:00' - - id: '1' - name: 'Hummingbird printed t-shirt (Size = S, Color = White)' - quantity: 0 - isTaxEnabled: true - sku: demo_1 - vatPercentage: 6 - prices: - - currency: USD - unitPrice: 23.9 - inventory: - totalQuantity: 300 - locations: [] - shippingRequired: true - createdDate: '0001-01-01T00:00:00' - - id: '2' - name: 'Hummingbird printed t-shirt (Size = S, Color = Black)' - quantity: 0 - isTaxEnabled: true - sku: demo_1 - vatPercentage: 6 - prices: - - currency: USD - unitPrice: 23.9 - inventory: - totalQuantity: 300 - locations: [] - shippingRequired: true - createdDate: '0001-01-01T00:00:00' - - id: '7' - name: 'Hummingbird printed t-shirt (Size = XL, Color = White)' - quantity: 0 - isTaxEnabled: true - sku: demo_1 - vatPercentage: 6 - prices: - - currency: USD - unitPrice: 23.9 - inventory: - totalQuantity: 300 - locations: [] - shippingRequired: true - createdDate: '0001-01-01T00:00:00' - createdDate: '2021-09-02T06:00:49' - modifiedDate: '2022-01-26T15:09:42Z' - sourceModifiedDate: '2021-09-02T06:00:49' - status: Published - Shopify: - value: - id: '6595494117534' - categorization: Asus - name: Monitor - description: '' - productCategoryRefs: [] - isGiftCard: false - variants: - - id: '39444526694558' - name: Monitor - quantity: 0 - isTaxEnabled: true - sku: '' - barcode: '' - vatPercentage: 0 - prices: - - currency: GBP - unitPrice: 150 - inventory: - totalQuantity: 91 - locations: [] - shippingRequired: true - createdDate: '2021-03-19T10:13:22Z' - createdDate: '2021-03-19T10:13:22Z' - modifiedDate: '2023-02-10T15:18:25Z' - sourceModifiedDate: '2022-08-01T13:05:22Z' - status: Published - Square: - value: - id: AX54KZQ3UAVCVPUMNEGFEU35 - categorization: Hardware - name: Monitor - productCategoryRefs: [] - isGiftCard: false - variants: - - id: A5BUT6SYUNYRSQ2R7GZ6UKN6 - name: Regular - quantity: 0 - isTaxEnabled: true - vatPercentage: 10 - prices: - - currency: GBP - unitPrice: 200 - inventory: - totalQuantity: 0 - locations: [] - shippingRequired: false - createdDate: '2021-02-18T15:47:31Z' - createdDate: '2021-02-18T15:47:31Z' - modifiedDate: '2021-06-17T14:23:02Z' - sourceModifiedDate: '2021-02-18T15:47:31Z' - status: Unknown - Stripe Test: - value: - id: prod_IaSbzLnxOHmC0i - name: Blue T Shirt - description: Nice cozy cotton t shirt - productCategoryRefs: [] - isGiftCard: false - variants: - - id: price_1ICJVEA8m8S1Gh7OIOCDOG8j - name: Blue T Shirt - Standard Price - quantity: 0 - isTaxEnabled: false - vatPercentage: 0 - prices: - - currency: GBP - unitPrice: 15 - inventory: - totalQuantity: 0 - locations: [] - shippingRequired: true - createdDate: '2021-01-22T06:52:16Z' - - id: price_1ICJQgA8m8S1Gh7OfErQdx5R - name: Blue T Shirt - Standard Price - quantity: 0 - isTaxEnabled: false - vatPercentage: 0 - prices: - - currency: USD - unitPrice: 30 - inventory: - totalQuantity: 0 - locations: [] - shippingRequired: true - createdDate: '2021-01-22T06:47:34Z' - - id: price_1HzHiCA8m8S1Gh7OXZVa6r3F - name: Blue T Shirt - Standard Price - quantity: 0 - isTaxEnabled: false - vatPercentage: 0 - prices: - - currency: GBP - unitPrice: 15 - inventory: - totalQuantity: 0 - locations: [] - shippingRequired: true - createdDate: '2020-12-17T08:19:48Z' - createdDate: '2020-12-17T08:17:48Z' - modifiedDate: '2022-09-30T11:18:27Z' - sourceModifiedDate: '2021-01-22T06:52:17Z' - status: Published - WooCommerce: - value: - id: '27' - categorization: Hardware - name: Monitor - description: '' - productCategoryRefs: [] - isGiftCard: false - variants: - - id: '27' - name: Monitor - quantity: 0 - isTaxEnabled: true - vatPercentage: 0 - prices: - - currency: GBP - unitPrice: 150 - inventory: - totalQuantity: 0 - locations: [] - shippingRequired: true - createdDate: '2021-03-11T08:55:22' - createdDate: '2021-03-11T08:55:22' - modifiedDate: '2021-07-13T16:19:00Z' - sourceModifiedDate: '2021-03-11T09:03:15' - status: Published - Zettle: - value: - id: 9d21fd90-a34a-11eb-b574-ad6abe469b61 - categorization: Clothing - name: T-Shirt - productCategoryRefs: [] - isGiftCard: false - variants: - - id: bb9bcf30-a34a-11eb-b574-ad6abe469b61 - name: Medium - quantity: 0 - isTaxEnabled: true - vatPercentage: 20 - prices: - - currency: GBP - unitPrice: 10 - inventory: - totalQuantity: 0 - locations: [] - shippingRequired: false - createdDate: '0001-01-01T00:00:00' - - id: b919df40-a34a-11eb-b574-ad6abe469b61 - name: Large - quantity: 0 - isTaxEnabled: true - vatPercentage: 20 - prices: - - currency: GBP - unitPrice: 10 - inventory: - totalQuantity: 0 - locations: [] - shippingRequired: false - createdDate: '0001-01-01T00:00:00' - - id: bcb5cab0-a34a-11eb-b574-ad6abe469b61 - name: Small - quantity: 0 - isTaxEnabled: true - vatPercentage: 20 - prices: - - currency: GBP - unitPrice: 10 - inventory: - totalQuantity: 0 - locations: [] - shippingRequired: false - createdDate: '0001-01-01T00:00:00' - createdDate: '2021-04-22T09:12:09Z' - modifiedDate: '2021-10-27T15:22:37Z' - sourceModifiedDate: '2021-08-04T14:32:20Z' - status: Published - '401': - $ref: '#/components/responses/Unauthorized' - '402': - $ref: '#/components/responses/Payment-Required' - '403': - $ref: '#/components/responses/Forbidden' - '404': - $ref: '#/components/responses/Not-Found' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - description: | - The *Get product* endpoint returns a single product for a given productId. - - [Products](https://docs.codat.io/lending-api#/schemas/Product) are items in the company's inventory that are available for sale. - - Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data). - '/companies/{companyId}/connections/{connectionId}/data/commerce-transactions': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - get: - summary: List transactions - tags: - - Sales - operationId: list-commerce-transactions - x-speakeasy-group: sales.transactions - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/CommerceTransactions' - examples: - Mollie: - value: - results: - - id: re_Azhe8TzfUK - totalAmount: -20 - currency: EUR - type: Refund - createdDate: '2022-01-17T16:00:46' - modifiedDate: '2022-03-17T15:47:28Z' - - id: re_NPKEJhQveu - totalAmount: -60 - currency: EUR - type: Refund - createdDate: '2022-01-17T16:00:05' - modifiedDate: '2022-03-17T15:47:28Z' - pageNumber: 1 - pageSize: 2 - totalResults: 7 - _links: - current: - href: /companies/a68cb447-182d-4bbe-be1a-f526d11d69d5/connections/dfbf847b-cde8-4b00-b2f9-af51dec0d337/data/commerce-transactions?page=1&pageSize=2 - self: - href: /companies/a68cb447-182d-4bbe-be1a-f526d11d69d5/connections/dfbf847b-cde8-4b00-b2f9-af51dec0d337/data/commerce-transactions - next: - href: /companies/a68cb447-182d-4bbe-be1a-f526d11d69d5/connections/dfbf847b-cde8-4b00-b2f9-af51dec0d337/data/commerce-transactions?page=2&pageSize=2 - Mollie Test: - value: - results: - - id: re_Azhe8TzfUK - totalAmount: -20 - currency: EUR - type: Refund - subType: PaymentRefund - createdDate: '2022-01-17T16:00:46' - modifiedDate: '2022-08-17T11:33:19Z' - - id: re_NPKEJhQveu - totalAmount: -60 - currency: EUR - type: Refund - subType: PaymentRefund - createdDate: '2022-01-17T16:00:05' - modifiedDate: '2022-08-17T11:33:19Z' - pageNumber: 1 - pageSize: 2 - totalResults: 7 - _links: - current: - href: /companies/b978f9fe-8d63-4cfc-b2c2-b61b72e22785/connections/d564f8fd-0766-4ab8-a427-7c893f9b9ff6/data/commerce-transactions?page=1&pageSize=2 - self: - href: /companies/b978f9fe-8d63-4cfc-b2c2-b61b72e22785/connections/d564f8fd-0766-4ab8-a427-7c893f9b9ff6/data/commerce-transactions - next: - href: /companies/b978f9fe-8d63-4cfc-b2c2-b61b72e22785/connections/d564f8fd-0766-4ab8-a427-7c893f9b9ff6/data/commerce-transactions?page=2&pageSize=2 - Shopify: - value: - results: - - id: ShopifyPayment-1633176289438 - totalAmount: 175 - currency: GBP - type: Payment - subType: charge - transactionSourceRef: - id: '3684116791454' - type: Order - createdDate: '2021-03-19T13:16:26' - modifiedDate: '2023-02-10T15:18:23Z' - sourceModifiedDate: '2021-03-19T13:16:26' - - id: 'ShopifyPayment-1633176289438:Fee' - totalAmount: -4.05 - currency: GBP - type: PaymentFee - subType: charge - transactionSourceRef: - id: '3684116791454' - type: Order - createdDate: '2021-03-19T13:16:26' - modifiedDate: '2023-02-10T15:18:23Z' - sourceModifiedDate: '2021-03-19T13:16:26' - pageNumber: 1 - pageSize: 2 - totalResults: 64 - _links: - current: - href: /companies/0bc1cc44-c6d2-4537-9591-b1ad6b5e3c94/connections/d38fa6d3-d712-4cf6-9d9d-f03bacd87595/data/commerce-transactions?page=1&pageSize=2 - self: - href: /companies/0bc1cc44-c6d2-4537-9591-b1ad6b5e3c94/connections/d38fa6d3-d712-4cf6-9d9d-f03bacd87595/data/commerce-transactions - next: - href: /companies/0bc1cc44-c6d2-4537-9591-b1ad6b5e3c94/connections/d38fa6d3-d712-4cf6-9d9d-f03bacd87595/data/commerce-transactions?page=2&pageSize=2 - Stripe Test: - value: - results: - - id: txn_1HpGQUA8m8S1Gh7OR21pB0Yj - totalAmount: 50 - currency: GBP - type: Payment - subType: charge - transactionSourceRef: - id: ch_1HpGQUA8m8S1Gh7Ot4WDTus5 - type: Payment - createdDate: '2020-11-19T16:56:06Z' - modifiedDate: '2022-09-30T11:18:28Z' - - id: 'txn_1HpGQUA8m8S1Gh7OR21pB0Yj:Stripe processing fees' - totalAmount: -0.9 - currency: GBP - type: PaymentFee - subType: stripe_fee - transactionSourceRef: - id: ch_1HpGQUA8m8S1Gh7Ot4WDTus5 - type: Payment - createdDate: '2020-11-19T16:56:06Z' - modifiedDate: '2022-09-30T11:18:28Z' - pageNumber: 1 - pageSize: 2 - totalResults: 70 - _links: - current: - href: /companies/8206e78e-e340-411e-b315-473c4ab73b48/connections/43e58373-0a1d-44a0-97f0-9fa9993a14fa/data/commerce-transactions?page=1&pageSize=2 - self: - href: /companies/8206e78e-e340-411e-b315-473c4ab73b48/connections/43e58373-0a1d-44a0-97f0-9fa9993a14fa/data/commerce-transactions - next: - href: /companies/8206e78e-e340-411e-b315-473c4ab73b48/connections/43e58373-0a1d-44a0-97f0-9fa9993a14fa/data/commerce-transactions?page=2&pageSize=2 - SumUp: - value: - results: - - id: 46d36a64-ea48-4e37-9340-3548cbf3ca2f - totalAmount: 15 - currency: GBP - type: Payment - subType: PAYMENT - createdDate: '2021-03-26T21:09:59Z' - modifiedDate: '2022-09-14T10:58:03Z' - - id: 471914a4-a82f-4fc4-b39b-9986fd706d26 - totalAmount: 215 - currency: GBP - type: Payment - subType: PAYMENT - createdDate: '2021-03-30T12:22:14Z' - modifiedDate: '2022-09-14T10:58:03Z' - pageNumber: 1 - pageSize: 2 - totalResults: 3 - _links: - current: - href: /companies/e170dbe2-be50-474f-b449-82add37108de/connections/1e631dd5-a30b-4bad-ad5c-315c9743535b/data/commerce-transactions?page=1&pageSize=2 - self: - href: /companies/e170dbe2-be50-474f-b449-82add37108de/connections/1e631dd5-a30b-4bad-ad5c-315c9743535b/data/commerce-transactions - next: - href: /companies/e170dbe2-be50-474f-b449-82add37108de/connections/1e631dd5-a30b-4bad-ad5c-315c9743535b/data/commerce-transactions?page=2&pageSize=2 - Zettle: - value: - results: - - id: 'PAYMENT:09b94cfc-2d98-11eb-8021-0e1b9dcbeca1' - totalAmount: 25 - currency: GBP - type: Payment - transactionSourceRef: - id: 09b94cfc-2d98-11eb-8021-0e1b9dcbeca1 - type: Unknown - createdDate: '2020-11-23T14:27:38Z' - modifiedDate: '2021-10-27T15:23:04Z' - sourceModifiedDate: '2020-11-25T23:10:01Z' - - id: 'PAYMENT:226580d6-2d98-11eb-a35c-fed5e63de507' - totalAmount: 58.5 - currency: GBP - type: Payment - transactionSourceRef: - id: 226580d6-2d98-11eb-a35c-fed5e63de507 - type: Unknown - createdDate: '2020-11-23T14:28:20Z' - modifiedDate: '2021-10-27T15:23:04Z' - sourceModifiedDate: '2020-11-25T23:10:02Z' - pageNumber: 1 - pageSize: 2 - totalResults: 16 - _links: - current: - href: /companies/9d448ad0-4508-47fc-bd3b-6950493151f1/connections/c7baa8da-3302-464b-8aa1-edcd4c900902/data/commerce-transactions?page=1&pageSize=2 - self: - href: /companies/9d448ad0-4508-47fc-bd3b-6950493151f1/connections/c7baa8da-3302-464b-8aa1-edcd4c900902/data/commerce-transactions - next: - href: /companies/9d448ad0-4508-47fc-bd3b-6950493151f1/connections/c7baa8da-3302-464b-8aa1-edcd4c900902/data/commerce-transactions?page=2&pageSize=2 - '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' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - description: |- - The *List transactions* endpoint returns a list of [transactions](https://docs.codat.io/lending-api#/schemas/Transaction) for a given company's connection. - - [Transactions](https://docs.codat.io/lending-api#/schemas/Transaction) detail all financial affairs recorded in the commerce or point of sale system. - - Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data). - - parameters: - - $ref: '#/components/parameters/page' - - $ref: '#/components/parameters/pageSize' - - $ref: '#/components/parameters/query' - - $ref: '#/components/parameters/orderBy' - '/companies/{companyId}/connections/{connectionId}/data/commerce-transactions/{transactionId}': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - - name: transactionId - in: path - required: true - schema: - type: string - examples: - - 13d946f0-c5d5-42bc-b092-97ece17923ab - - 9wg4lep4ush5cxs79pl8sozmsndbaukll3ind4g7buqbm1h2 - - 7110701885 - - EILBDVJVNUAGVKRQ - description: Unique identifier for a transaction. - get: - summary: Get transaction - tags: - - Sales - operationId: get-commerce-transaction - x-speakeasy-group: sales.transactions - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/CommerceTransaction' - examples: - Mollie: - value: - id: re_Azhe8TzfUK - totalAmount: -20 - currency: EUR - type: Refund - createdDate: '2022-01-17T16:00:46' - modifiedDate: '2022-03-17T15:47:28Z' - Mollie Test: - value: - id: re_Azhe8TzfUK - totalAmount: -20 - currency: EUR - type: Refund - subType: PaymentRefund - createdDate: '2022-01-17T16:00:46' - modifiedDate: '2022-08-17T11:33:19Z' - Shopify: - value: - id: ShopifyPayment-1633176289438 - totalAmount: 175 - currency: GBP - type: Payment - subType: charge - transactionSourceRef: - id: '3684116791454' - type: Order - createdDate: '2021-03-19T13:16:26' - modifiedDate: '2023-02-10T15:18:23Z' - sourceModifiedDate: '2021-03-19T13:16:26' - Stripe Test: - value: - id: txn_1HpGQUA8m8S1Gh7OR21pB0Yj - totalAmount: 50 - currency: GBP - type: Payment - subType: charge - transactionSourceRef: - id: ch_1HpGQUA8m8S1Gh7Ot4WDTus5 - type: Payment - createdDate: '2020-11-19T16:56:06Z' - modifiedDate: '2022-09-30T11:18:28Z' - SumUp: - value: - id: 46d36a64-ea48-4e37-9340-3548cbf3ca2f - totalAmount: 15 - currency: GBP - type: Payment - subType: PAYMENT - createdDate: '2021-03-26T21:09:59Z' - modifiedDate: '2022-09-14T10:58:03Z' - Zettle: - value: - id: 'PAYMENT:09b94cfc-2d98-11eb-8021-0e1b9dcbeca1' - totalAmount: 25 - currency: GBP - type: Payment - transactionSourceRef: - id: 09b94cfc-2d98-11eb-8021-0e1b9dcbeca1 - type: Unknown - createdDate: '2020-11-23T14:27:38Z' - modifiedDate: '2021-10-27T15:23:04Z' - sourceModifiedDate: '2020-11-25T23:10:01Z' - '401': - $ref: '#/components/responses/Unauthorized' - '402': - $ref: '#/components/responses/Payment-Required' - '403': - $ref: '#/components/responses/Forbidden' - '404': - $ref: '#/components/responses/Not-Found' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - description: | - The *Get transaction* endpoint returns a single transaction for a given transactionId. - - [Transactions](https://docs.codat.io/lending-api#/schemas/Transaction) detail all financial affairs recorded in the commerce or point of sale system. - - Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data). - '/companies/{companyId}/files': - parameters: - - $ref: '#/components/parameters/companyId' - get: - tags: - - File upload - summary: List all files uploaded by a company - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/Files' - examples: {} - '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: "\uFEFFThe *List files* endpoint returns a list of all files uploaded to Codat by the SMB. " - operationId: list-files - x-speakeasy-name-override: list-uploaded - '/companies/{companyId}/files/download': - parameters: - - $ref: '#/components/parameters/companyId' - get: - tags: - - File upload - summary: Download all files for a company - parameters: - - name: date - in: query - schema: - $ref: '#/components/schemas/DateTime' - description: Only download files uploaded on this date. - responses: - '200': - description: Success - content: - application/octet-stream: - x-speakeasy-usage-example: true - schema: - title: Data - type: string - format: binary - '400': - $ref: '#/components/responses/BadRequest' - '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: The *Download files* endpoint downloads all files that have been uploaded by to SMB to Codat. A `date` may be specified to download any files uploaded on the date provided. - operationId: download-files - x-speakeasy-name-override: download - '/companies/{companyId}/connections/{connectionId}/files': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - post: - tags: - - File upload - summary: Upload files for a company - responses: - '200': - description: Success - '400': - $ref: '#/components/responses/BadRequest' - '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' - requestBody: - content: - multipart/form-data: - schema: - $ref: '#/components/schemas/FileUpload' - description: |- - The *Upload files* endpoint uploads multiple files provided by the SMB to Codat. This may include personal identity documents, pitch decks, contracts, or files with accounting and banking data. - - Uploaded files must meet the following requirements: - - - Up to 20 files can be uploaded at a time. - - PDF, XLS, XLSX, XLSB, CSV, DOC, DOCX, PPT, PPTX, JPEG, JPG, and PNG files can be uploaded. - - Each file can be up to 10MB in size. - operationId: upload-files - x-speakeasy-name-override: upload - '/companies/{companyId}/connections/{connectionId}/options/bankAccounts': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - get: - summary: Get create/update bank account model - tags: - - Loan writeback - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/PushOption' - examples: - Dynamics 365 Business Central: - value: - type: Object - displayName: Bank Account - description: An account that bank transactions may be recorded against - properties: - accountName: - type: String - displayName: Name - description: The name of the bank account in the originating system - required: true - validation: - warnings: [] - information: - - field: AccountName - details: 'Needs to be of the format ''{No.}-{Name}''' - currency: - type: String - displayName: Currency - description: The currency of the bank account - required: true - accountNumber: - type: String - displayName: Account Number - description: The account number for the bank account - required: false - nominalCode: - type: String - displayName: Nominal Code - description: The external reference given to each nominal account for a business - required: false - validation: - warnings: [] - information: - - field: NominalCode - details: Bank Account Posting Group with Nominal Account must exist - sortCode: - type: String - displayName: Sort Code - description: The sort code for the bank account - required: false - validation: - warnings: [] - information: - - field: SortCode - details: Must have a length between 0 and 20 characters - iBan: - type: String - displayName: IBAN - description: The international bank account number of the account. Often used when making or receiving international payments - required: false - overdraftLimit: - type: Number - displayName: Overdraft Limit - description: The pre-arranged overdraft limit of the account - required: false - validation: - warnings: [] - information: - - field: OverdraftLimit - details: Default value is 0 - required: true - Exact (Netherlands): - value: - type: Object - displayName: Bank Account - description: An account that bank transactions may be recorded against - properties: - accountName: - type: String - displayName: Name - description: The name of the bank account in the originating system - required: true - accountNumber: - type: String - displayName: Account Number - description: The account number for the bank account - required: true - validation: - warnings: - - field: AccountNumber - details: Should not exceed the maximum length of 14 characters if the specified currency is GBP. - information: [] - sortCode: - type: String - displayName: Sort Code - description: The sort code for the bank account - required: false - validation: - warnings: - - field: SortCode - details: Must be 6 characters long if the specified currency is GBP. - - field: SortCode - details: Must be provided if the specified currency is GBP. - information: [] - currency: - type: String - displayName: Currency - description: The currency of the bank account - required: false - nominalCode: - type: String - displayName: Nominal Code - description: The external reference given to each nominal account for a business - required: false - required: true - Exact (UK): - value: - type: Object - displayName: Bank Account - description: An account that bank transactions may be recorded against - properties: - accountName: - type: String - displayName: Name - description: The name of the bank account in the originating system - required: true - accountNumber: - type: String - displayName: Account Number - description: The account number for the bank account - required: true - validation: - warnings: - - field: AccountNumber - details: Should not exceed the maximum length of 14 characters if the specified currency is GBP. - information: [] - sortCode: - type: String - displayName: Sort Code - description: The sort code for the bank account - required: false - validation: - warnings: - - field: SortCode - details: Must be 6 characters long if the specified currency is GBP. - - field: SortCode - details: Must be provided if the specified currency is GBP. - information: [] - currency: - type: String - displayName: Currency - description: The currency of the bank account - required: false - nominalCode: - type: String - displayName: Nominal Code - description: The external reference given to each nominal account for a business - required: false - required: true - FreeAgent: - value: - type: Object - displayName: Bank Account - description: An account that bank transactions may be recorded against - properties: - accountName: - type: String - displayName: Name - description: The name of the bank account in the originating system - required: true - sortCode: - type: String - displayName: Sort Code - description: The sort code for the bank account - required: false - validation: - warnings: - - field: SortCode - details: Must have a length between 0 and 8 characters - information: [] - accountNumber: - type: String - displayName: Account Number - description: The account number for the bank account - required: false - iBan: - type: String - displayName: IBAN - description: The international bank account number of the account. Often used when making or receiving international payments - required: false - currency: - type: String - displayName: Currency - description: The currency of the bank account - options: - - value: AED - type: String - displayName: AED - required: false - - value: AMD - type: String - displayName: AMD - required: false - - value: AOA - type: String - displayName: AOA - required: false - - value: ARS - type: String - displayName: ARS - required: false - - value: AUD - type: String - displayName: AUD - required: false - - value: AWG - type: String - displayName: AWG - required: false - - value: AZN - type: String - displayName: AZN - required: false - - value: BBD - type: String - displayName: BBD - required: false - - value: BDT - type: String - displayName: BDT - required: false - - value: BGN - type: String - displayName: BGN - required: false - - value: BRL - type: String - displayName: BRL - required: false - - value: BWP - type: String - displayName: BWP - required: false - - value: CAD - type: String - displayName: CAD - required: false - - value: CHF - type: String - displayName: CHF - required: false - - value: CLP - type: String - displayName: CLP - required: false - - value: CNY - type: String - displayName: CNY - required: false - - value: COP - type: String - displayName: COP - required: false - - value: CRC - type: String - displayName: CRC - required: false - - value: CUC - type: String - displayName: CUC - required: false - - value: CUP - type: String - displayName: CUP - required: false - - value: CZK - type: String - displayName: CZK - required: false - - value: DKK - type: String - displayName: DKK - required: false - - value: DOP - type: String - displayName: DOP - required: false - - value: EGP - type: String - displayName: EGP - required: false - - value: EUR - type: String - displayName: EUR - required: false - - value: FJD - type: String - displayName: FJD - required: false - - value: GBP - type: String - displayName: GBP - required: false - - value: GEL - type: String - displayName: GEL - required: false - - value: GHS - type: String - displayName: GHS - required: false - - value: GTQ - type: String - displayName: GTQ - required: false - - value: GYD - type: String - displayName: GYD - required: false - - value: HKD - type: String - displayName: HKD - required: false - - value: HNL - type: String - displayName: HNL - required: false - - value: HRK - type: String - displayName: HRK - required: false - - value: HUF - type: String - displayName: HUF - required: false - - value: IDR - type: String - displayName: IDR - required: false - - value: ILS - type: String - displayName: ILS - required: false - - value: INR - type: String - displayName: INR - required: false - - value: ISK - type: String - displayName: ISK - required: false - - value: JMD - type: String - displayName: JMD - required: false - - value: JPY - type: String - displayName: JPY - required: false - - value: KES - type: String - displayName: KES - required: false - - value: KRW - type: String - displayName: KRW - required: false - - value: KWD - type: String - displayName: KWD - required: false - - value: KYD - type: String - displayName: KYD - required: false - - value: KZT - type: String - displayName: KZT - required: false - - value: LAK - type: String - displayName: LAK - required: false - - value: LBP - type: String - displayName: LBP - required: false - - value: LKR - type: String - displayName: LKR - required: false - - value: LTL - type: String - displayName: LTL - required: false - - value: LVL - type: String - displayName: LVL - required: false - - value: MAD - type: String - displayName: MAD - required: false - - value: MDL - type: String - displayName: MDL - required: false - - value: MGA - type: String - displayName: MGA - required: false - - value: MUR - type: String - displayName: MUR - required: false - - value: MVR - type: String - displayName: MVR - required: false - - value: MWK - type: String - displayName: MWK - required: false - - value: MXN - type: String - displayName: MXN - required: false - - value: MYR - type: String - displayName: MYR - required: false - - value: MZN - type: String - displayName: MZN - required: false - - value: NAD - type: String - displayName: NAD - required: false - - value: NGN - type: String - displayName: NGN - required: false - - value: NOK - type: String - displayName: NOK - required: false - - value: NPR - type: String - displayName: NPR - required: false - - value: NZD - type: String - displayName: NZD - required: false - - value: OMR - type: String - displayName: OMR - required: false - - value: PEN - type: String - displayName: PEN - required: false - - value: PHP - type: String - displayName: PHP - required: false - - value: PKR - type: String - displayName: PKR - required: false - - value: PLN - type: String - displayName: PLN - required: false - - value: QAR - type: String - displayName: QAR - required: false - - value: RON - type: String - displayName: RON - required: false - - value: RSD - type: String - displayName: RSD - required: false - - value: RUB - type: String - displayName: RUB - required: false - - value: RWF - type: String - displayName: RWF - required: false - - value: SAR - type: String - displayName: SAR - required: false - - value: SCR - type: String - displayName: SCR - required: false - - value: SEK - type: String - displayName: SEK - required: false - - value: SGD - type: String - displayName: SGD - required: false - - value: THB - type: String - displayName: THB - required: false - - value: TND - type: String - displayName: TND - required: false - - value: TRY - type: String - displayName: TRY - required: false - - value: TTD - type: String - displayName: TTD - required: false - - value: TWD - type: String - displayName: TWD - required: false - - value: TZS - type: String - displayName: TZS - required: false - - value: UAH - type: String - displayName: UAH - required: false - - value: UGX - type: String - displayName: UGX - required: false - - value: USD - type: String - displayName: USD - required: false - - value: UYU - type: String - displayName: UYU - required: false - - value: VEF - type: String - displayName: VEF - required: false - - value: VND - type: String - displayName: VND - required: false - - value: VUV - type: String - displayName: VUV - required: false - - value: XAF - type: String - displayName: XAF - required: false - - value: XCD - type: String - displayName: XCD - required: false - - value: XOF - type: String - displayName: XOF - required: false - - value: ZAR - type: String - displayName: ZAR - required: false - - value: ZMK - type: String - displayName: ZMK - required: false - required: true - balance: - type: Number - displayName: Balance - description: The balance of the bank account - required: false - validation: - warnings: [] - information: - - field: Balance - details: 'The opening balance, in the account currency' - institution: - type: String - displayName: Institution - description: The institution of the bank account - required: false - required: true - KashFlow: - value: - type: Object - displayName: Bank Account - description: An account that bank transactions may be recorded against - properties: - accountName: - type: String - displayName: Account Name - description: Name of the bank account as it appears in Kashflow. - required: true - balance: - type: Number - displayName: Balance - description: 'The opening balance, in the account currency.' - required: false - currency: - type: String - displayName: Currency - description: The currency of the bank account. - required: true - required: true - QuickBooks Desktop: - value: - type: Object - displayName: Bank Account - description: An account that bank transactions may be recorded against - properties: - nominalCode: - type: String - displayName: Nominal Code - description: The external reference given to each nominal account for a business - required: true - validation: - warnings: - - field: NominalCode - details: Max length of 7 characters. - information: [] - accountName: - type: String - displayName: Name - description: The name of the bank account in the originating system - required: true - validation: - warnings: - - field: AccountName - details: Max length of 31 characters. - information: [] - currency: - type: String - displayName: Currency - description: The currency of the bank account - required: false - validation: - warnings: - - field: Currency - details: 'The currency must match the base currency of the QuickBooks Desktop company unless the FullyQualifiedCategory is ''Asset.AccountsReceivable'',''Liability.AccountsPayable'' or ''Liability.CreditCard''' - - field: Currency - details: Must be a three letter ISO code that matches an existing active currency in the QuickBooks Desktop company - - field: Currency - details: Can only be set if the QuickBooks Desktop company has Multicurrency enabled. - information: - - field: Currency - details: 'If not set, will default to the base currency of the QuickBooks Desktop company' - balance: - type: Number - displayName: Balance - description: The balance of the bank account - required: false - required: true - QuickBooks Online Sandbox: - value: - type: Object - displayName: Bank Account - description: An account that bank transactions may be recorded against - properties: - accountName: - type: String - displayName: Account Name - description: Name of account as it appears in the chart of accounts or general ledger. - required: true - accountNumber: - type: String - displayName: Account Number - description: User-defined account number to help the user in identifying the account within the chart-of-accounts and in deciding what should be posted to the account. - required: true - currency: - type: String - displayName: Currency - description: Currency of the bank account. - required: true - required: true - Sage Business Cloud Accounting: - value: - type: Object - displayName: Bank Account - description: An account that bank transactions may be recorded against - properties: - accountName: - type: String - displayName: Name - description: The name of the bank account in the originating system - required: true - validation: - warnings: [] - information: - - field: AccountName - details: Must be provided. - - field: AccountName - details: Should not be longer than 50 characters. - currency: - type: String - displayName: Currency - description: The currency of the bank account - required: true - validation: - warnings: [] - information: - - field: Currency - details: Must be provided. - - field: Currency - details: Must match the company's base currency. - sortCode: - type: String - displayName: Sort Code - description: The sort code for the bank account - required: false - validation: - warnings: [] - information: - - field: SortCode - details: Should be a 6 digit number. - accountNumber: - type: String - displayName: Account Number - description: The account number for the bank account - required: false - validation: - warnings: [] - information: - - field: AccountNumber - details: Should not be longer than 25 characters. - iBan: - type: String - displayName: IBAN - description: The international bank account number of the account. Often used when making or receiving international payments - required: false - validation: - warnings: [] - information: - - field: IBan - details: Should be in the international bank account number format. - nominalCode: - type: String - displayName: Nominal Code - description: The external reference given to each nominal account for a business - required: false - validation: - warnings: [] - information: - - field: NominalCode - details: Should be a number between 1 and 99999999. - required: true - Sandbox: - value: - type: Object - displayName: Bank Account - description: An account that bank transactions may be recorded against - properties: - accountName: - type: String - displayName: Name - description: The name of the bank account in the originating system - required: true - accountType: - type: String - displayName: Account Type - description: The type of account - required: true - nominalCode: - type: String - displayName: Nominal Code - description: The external reference given to each nominal account for a business - required: true - sortCode: - type: String - displayName: Sort Code - description: The sort code for the bank account - required: true - accountNumber: - type: String - displayName: Account Number - description: The account number for the bank account - required: true - iBan: - type: String - displayName: IBAN - description: The international bank account number of the account. Often used when making or receiving international payments - required: true - currency: - type: String - displayName: Currency - description: The currency of the bank account - required: true - balance: - type: Number - displayName: Balance - description: The balance of the bank account - required: true - availableBalance: - type: Number - displayName: Available Balance - description: The available balance of the bank account - required: true - overdraftLimit: - type: Number - displayName: Overdraft Limit - description: The pre-arranged overdraft limit of the account - required: true - institution: - type: String - displayName: Institution - description: The institution of the bank account - required: true - metadata: - type: Object - displayName: Metadata - description: Miscellaneous data about the item - properties: - isDeleted: - type: Boolean - displayName: IsDeleted - description: A boolean to indicate whether the object has been deleted - required: true - required: true - required: true - '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' - operationId: get-create-update-bankAccounts-model - x-speakeasy-group: loan-writeback.bank-accounts - description: "The *Get create/update bank account model* endpoint returns the expected data for the request payload when creating and updating a [bank account](https://docs.codat.io/lending-api#/schemas/BankAccount) for a given company and integration.\r\n\r\n[Bank accounts](https://docs.codat.io/lending-api#/schemas/BankAccount) are financial accounts maintained by a bank or other financial institution.\r\n\r\n**Integration-specific behavior**\r\n\r\nSee the *response examples* for integration-specific indicative models.\r\n" - '/companies/{companyId}/connections/{connectionId}/push/bankAccounts': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - post: - tags: - - Loan writeback - summary: Create bank account - parameters: - - $ref: '#/components/parameters/timeoutInMinutes' - - $ref: '#/components/parameters/allowSyncOnPushComplete' - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/AccountingBankAccount' - examples: {} - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/AccountingCreateBankAccountResponse' - examples: {} - '400': - $ref: '#/components/responses/BadRequest' - '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: "The *Create bank account* endpoint creates a new [bank account](https://docs.codat.io/lending-api#/schemas/BankAccount) for a given company's connection.\r\n\r\n[Bank accounts](https://docs.codat.io/lending-api#/schemas/BankAccount) are financial accounts maintained by a bank or other financial institution.\r\n\r\n**Integration-specific behavior**\r\n\r\nRequired data may vary by integration. To see what data to post, first call [Get create/update bank account model](https://docs.codat.io/lending-api#/operations/get-create-update-bankAccounts-model)." - operationId: create-bank-account - x-speakeasy-group: loan-writeback.bank-accounts - '/companies/{companyId}/connections/{connectionId}/options/chartOfAccounts': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - get: - summary: Get create account model - tags: - - Loan writeback - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/PushOption' - examples: - Exact (Netherlands): - value: - type: Object - displayName: Nominal Account - description: Nominal Accounts are the categories a business uses to record transactions - properties: - nominalCode: - type: String - displayName: Nominal Code - description: The external reference given to each nominal account for a business - required: true - validation: - warnings: [] - information: - - field: NominalCode - details: Must be provided. - name: - type: String - displayName: Name - description: Name of the account - required: true - validation: - warnings: [] - information: - - field: Name - details: Must be provided. - fullyQualifiedCategory: - type: String - displayName: Fully Qualified Category - description: The full category of the account e.g. Liability.Current or Income.Revenue - options: - - value: Asset.Assets.Cash - type: String - displayName: Asset.Assets.Cash - required: false - - value: Asset.Assets.Bank - type: String - displayName: Asset.Assets.Bank - required: false - - value: Asset.Assets.PaymentServices - type: String - displayName: Asset.Assets.PaymentServices - required: false - - value: Asset.Assets.AccountsReceivable - type: String - displayName: Asset.Assets.AccountsReceivable - required: false - - value: Liability.EquityAndLiabilities.AccountsPayable - type: String - displayName: Liability.EquityAndLiabilities.AccountsPayable - required: false - - value: Asset.Assets.VAT - type: String - displayName: Asset.Assets.VAT - required: false - - value: Liability.EquityAndLiabilities.EmployeesPayable - type: String - displayName: Liability.EquityAndLiabilities.EmployeesPayable - required: false - - value: Asset.Assets.PrepaidExpenses - type: String - displayName: Asset.Assets.PrepaidExpenses - required: false - - value: Liability.EquityAndLiabilities.AccruedExpenses - type: String - displayName: Liability.EquityAndLiabilities.AccruedExpenses - required: false - - value: Liability.EquityAndLiabilities.IncomeTaxesPayable - type: String - displayName: Liability.EquityAndLiabilities.IncomeTaxesPayable - required: false - - value: Asset.Assets.FixedAssets - type: String - displayName: Asset.Assets.FixedAssets - required: false - - value: Asset.Assets.OtherAssets - type: String - displayName: Asset.Assets.OtherAssets - required: false - - value: Asset.Assets.AccumulatedDeprecation - type: String - displayName: Asset.Assets.AccumulatedDeprecation - required: false - - value: Asset.Assets.Inventory - type: String - displayName: Asset.Assets.Inventory - required: false - - value: Equity.EquityAndLiabilities.CapitalStock - type: String - displayName: Equity.EquityAndLiabilities.CapitalStock - required: false - - value: Equity.EquityAndLiabilities.RetainedEarnings - type: String - displayName: Equity.EquityAndLiabilities.RetainedEarnings - required: false - - value: Liability.EquityAndLiabilities.LongTermDebt - type: String - displayName: Liability.EquityAndLiabilities.LongTermDebt - required: false - - value: Liability.EquityAndLiabilities.CurrentPortionOfDebt - type: String - displayName: Liability.EquityAndLiabilities.CurrentPortionOfDebt - required: false - - value: Unknown.EquityAndLiabilities.Intercompany - type: String - displayName: Unknown.EquityAndLiabilities.Intercompany - required: false - - value: Unknown.General.General - type: String - displayName: Unknown.General.General - required: false - - value: Income.NetIncome.Revenue - type: String - displayName: Income.NetIncome.Revenue - required: false - - value: Expense.NetIncome.CostOfGoods - type: String - displayName: Expense.NetIncome.CostOfGoods - required: false - - value: Expense.NetIncome.OtherCosts - type: String - displayName: Expense.NetIncome.OtherCosts - required: false - - value: Expense.NetIncome.SalesGeneralAdministrativeExpenses - type: String - displayName: Expense.NetIncome.SalesGeneralAdministrativeExpenses - required: false - - value: Expense.NetIncome.DeprecationCosts - type: String - displayName: Expense.NetIncome.DeprecationCosts - required: false - - value: Expense.NetIncome.ResearchAndDevelopment - type: String - displayName: Expense.NetIncome.ResearchAndDevelopment - required: false - - value: Expense.NetIncome.EmployeeCosts - type: String - displayName: Expense.NetIncome.EmployeeCosts - required: false - - value: Expense.NetIncome.EmploymentCosts - type: String - displayName: Expense.NetIncome.EmploymentCosts - required: false - - value: Expense.ExceptionalIncome.ExceptionalCosts - type: String - displayName: Expense.ExceptionalIncome.ExceptionalCosts - required: false - - value: Income.ExceptionalIncome.ExceptionalIncome - type: String - displayName: Income.ExceptionalIncome.ExceptionalIncome - required: false - - value: Expense.ExceptionalIncome.IncomeTaxes - type: String - displayName: Expense.ExceptionalIncome.IncomeTaxes - required: false - - value: Income.ExceptionalIncome.InterestIncome - type: String - displayName: Income.ExceptionalIncome.InterestIncome - required: false - required: true - validation: - warnings: [] - information: - - field: FullyQualifiedCategory - details: Must be provided. - status: - type: String - displayName: Account Status - description: The status of the account - options: - - value: Active - type: String - displayName: Active - required: false - - value: Pending - type: String - displayName: Pending - required: false - - value: Unknown - type: String - displayName: Unknown - required: false - required: true - validation: - warnings: [] - information: - - field: Status - details: Must be provided. - required: true - Exact (UK): - value: - type: Object - displayName: Nominal Account - description: Nominal Accounts are the categories a business uses to record transactions - properties: - nominalCode: - type: String - displayName: Nominal Code - description: The external reference given to each nominal account for a business - required: true - validation: - warnings: [] - information: - - field: NominalCode - details: Must be provided. - name: - type: String - displayName: Name - description: Name of the account - required: true - validation: - warnings: [] - information: - - field: Name - details: Must be provided. - fullyQualifiedCategory: - type: String - displayName: Fully Qualified Category - description: The full category of the account e.g. Liability.Current or Income.Revenue - options: - - value: Asset.Assets.Cash - type: String - displayName: Asset.Assets.Cash - required: false - - value: Asset.Assets.Bank - type: String - displayName: Asset.Assets.Bank - required: false - - value: Asset.Assets.PaymentServices - type: String - displayName: Asset.Assets.PaymentServices - required: false - - value: Asset.Assets.AccountsReceivable - type: String - displayName: Asset.Assets.AccountsReceivable - required: false - - value: Liability.EquityAndLiabilities.AccountsPayable - type: String - displayName: Liability.EquityAndLiabilities.AccountsPayable - required: false - - value: Asset.Assets.VAT - type: String - displayName: Asset.Assets.VAT - required: false - - value: Liability.EquityAndLiabilities.EmployeesPayable - type: String - displayName: Liability.EquityAndLiabilities.EmployeesPayable - required: false - - value: Asset.Assets.PrepaidExpenses - type: String - displayName: Asset.Assets.PrepaidExpenses - required: false - - value: Liability.EquityAndLiabilities.AccruedExpenses - type: String - displayName: Liability.EquityAndLiabilities.AccruedExpenses - required: false - - value: Liability.EquityAndLiabilities.IncomeTaxesPayable - type: String - displayName: Liability.EquityAndLiabilities.IncomeTaxesPayable - required: false - - value: Asset.Assets.FixedAssets - type: String - displayName: Asset.Assets.FixedAssets - required: false - - value: Asset.Assets.OtherAssets - type: String - displayName: Asset.Assets.OtherAssets - required: false - - value: Asset.Assets.AccumulatedDeprecation - type: String - displayName: Asset.Assets.AccumulatedDeprecation - required: false - - value: Asset.Assets.Inventory - type: String - displayName: Asset.Assets.Inventory - required: false - - value: Equity.EquityAndLiabilities.CapitalStock - type: String - displayName: Equity.EquityAndLiabilities.CapitalStock - required: false - - value: Equity.EquityAndLiabilities.RetainedEarnings - type: String - displayName: Equity.EquityAndLiabilities.RetainedEarnings - required: false - - value: Liability.EquityAndLiabilities.LongTermDebt - type: String - displayName: Liability.EquityAndLiabilities.LongTermDebt - required: false - - value: Liability.EquityAndLiabilities.CurrentPortionOfDebt - type: String - displayName: Liability.EquityAndLiabilities.CurrentPortionOfDebt - required: false - - value: Unknown.EquityAndLiabilities.Intercompany - type: String - displayName: Unknown.EquityAndLiabilities.Intercompany - required: false - - value: Unknown.General.General - type: String - displayName: Unknown.General.General - required: false - - value: Income.NetIncome.Revenue - type: String - displayName: Income.NetIncome.Revenue - required: false - - value: Expense.NetIncome.CostOfGoods - type: String - displayName: Expense.NetIncome.CostOfGoods - required: false - - value: Expense.NetIncome.OtherCosts - type: String - displayName: Expense.NetIncome.OtherCosts - required: false - - value: Expense.NetIncome.SalesGeneralAdministrativeExpenses - type: String - displayName: Expense.NetIncome.SalesGeneralAdministrativeExpenses - required: false - - value: Expense.NetIncome.DeprecationCosts - type: String - displayName: Expense.NetIncome.DeprecationCosts - required: false - - value: Expense.NetIncome.ResearchAndDevelopment - type: String - displayName: Expense.NetIncome.ResearchAndDevelopment - required: false - - value: Expense.NetIncome.EmployeeCosts - type: String - displayName: Expense.NetIncome.EmployeeCosts - required: false - - value: Expense.NetIncome.EmploymentCosts - type: String - displayName: Expense.NetIncome.EmploymentCosts - required: false - - value: Expense.ExceptionalIncome.ExceptionalCosts - type: String - displayName: Expense.ExceptionalIncome.ExceptionalCosts - required: false - - value: Income.ExceptionalIncome.ExceptionalIncome - type: String - displayName: Income.ExceptionalIncome.ExceptionalIncome - required: false - - value: Expense.ExceptionalIncome.IncomeTaxes - type: String - displayName: Expense.ExceptionalIncome.IncomeTaxes - required: false - - value: Income.ExceptionalIncome.InterestIncome - type: String - displayName: Income.ExceptionalIncome.InterestIncome - required: false - required: true - validation: - warnings: [] - information: - - field: FullyQualifiedCategory - details: Must be provided. - status: - type: String - displayName: Account Status - description: The status of the account - options: - - value: Active - type: String - displayName: Active - required: false - - value: Pending - type: String - displayName: Pending - required: false - - value: Unknown - type: String - displayName: Unknown - required: false - required: true - validation: - warnings: [] - information: - - field: Status - details: Must be provided. - required: true - MYOB AccountRight and Essentials: - value: - type: Object - displayName: Nominal Account - description: Nominal Accounts are the categories a business uses to record transactions - properties: - nominalCode: - type: String - displayName: Nominal Code - description: The external reference given to each nominal account for a business - required: true - validation: - warnings: - - field: NominalCode - details: 'If alphanumeric is supported, must be between 1 and 10 characters. Otherwise format is x-xxxx' - information: [] - name: - type: String - displayName: Name - description: Name of the account - required: false - validation: - warnings: - - field: Name - details: Must have a length between 1 and 60 characters - information: [] - description: - type: String - displayName: Description - description: Description of the account - required: false - validation: - warnings: - - field: Description - details: Must have a length between 1 and 255 characters - information: [] - fullyQualifiedCategory: - type: String - displayName: Fully Qualified Category - description: The full category of the account e.g. Liability.Current or Income.Revenue - options: - - value: Asset.Bank - type: String - displayName: Bank - required: false - - value: Asset.AccountReceivable - type: String - displayName: Accounts Receivable - required: false - - value: Asset.OtherCurrentAsset - type: String - displayName: Other Current Asset - required: false - - value: Asset.FixedAsset - type: String - displayName: Fixed Asset - required: false - - value: Asset.OtherAsset - type: String - displayName: Other Asset - required: false - - value: Asset.CashAndBank - type: String - displayName: Cash - required: false - - value: Asset.Property Plant and Equipment - type: String - displayName: Equipment Machinery - required: false - - value: Liability.CreditCard - type: String - displayName: Credit Card - required: false - - value: Liability.AccountsPayable - type: String - displayName: Accounts Payable - required: false - - value: Liability.OtherCurrentLiability - type: String - displayName: Other Current Liability - required: false - - value: Liability.LongTermLiability - type: String - displayName: Long Term Liability - required: false - - value: Liability.OtherLiability - type: String - displayName: Other Liability - required: false - - value: Equity - type: String - displayName: Equity - required: false - - value: Equity.Equity - type: String - displayName: Retained Earnings - required: false - - value: Equity.Equity.RetainedEarnings - type: String - displayName: Retained Earnings - required: false - - value: Equity.Owner's Equity - type: String - displayName: Retained Earnings - required: false - - value: Income - type: String - displayName: Income - required: false - - value: OtherIncome - type: String - displayName: Other Income - required: false - - value: Expense - type: String - displayName: Expense - required: false - - value: Expense.Expense - type: String - displayName: Sales Marketing - required: false - - value: Expense.Expense.Insurance - type: String - displayName: General Administrative - required: false - - value: Expense.Overhead - type: String - displayName: General Administrative - required: false - - value: Expense.Expense.RepairMaintenance - type: String - displayName: Repairs Maintenance - required: false - - value: OtherExpense - type: String - displayName: Other Expense - required: false - - value: CostOfSales - type: String - displayName: Cost of Sales - required: false - - value: Cost Of Goods Sold.Cost of Sales - type: String - displayName: Other - required: false - required: true - status: - type: String - displayName: Account Status - description: The status of the account - options: - - value: Active - type: String - displayName: Active - required: false - - value: Archived - type: String - displayName: Archived - required: false - required: true - required: true - QuickBooks Desktop: - value: - type: Object - displayName: Nominal Account - description: Nominal Accounts are the categories a business uses to record transactions - properties: - nominalCode: - type: String - displayName: Nominal Code - description: The external reference given to each nominal account for a business - required: true - validation: - warnings: - - field: NominalCode - details: Max length of 7 characters. - information: [] - name: - type: String - displayName: Name - description: Name of the account - required: true - validation: - warnings: - - field: Name - details: Max length of 31 characters. - information: [] - description: - type: String - displayName: Description - description: Description of the account - required: false - validation: - warnings: - - field: Description - details: Max length of 200 characters. - information: [] - currency: - type: String - displayName: Currency - description: The currency of the account - required: false - validation: - warnings: - - field: Currency - details: 'The currency must match the base currency of the QuickBooks Desktop company unless the FullyQualifiedCategory is ''Asset.AccountsReceivable'',''Liability.AccountsPayable'' or ''Liability.CreditCard''' - - field: Currency - details: Must be a three letter ISO code that matches an existing active currency in the QuickBooks Desktop company - - field: Currency - details: Can only be set if the QuickBooks Desktop company has Multicurrency enabled. - information: - - field: Currency - details: 'If not set, will default to the base currency of the QuickBooks Desktop company' - fullyQualifiedCategory: - type: String - displayName: Fully Qualified Category - description: The full category of the account e.g. Liability.Current or Income.Revenue - options: - - value: Asset.AccountsReceivable - type: String - displayName: Account Receivable - required: false - - value: Asset.FixedAsset - type: String - displayName: Fixed Asset - required: false - - value: Asset.OtherCurrentAsset - type: String - displayName: Other Current Asset - required: false - - value: Asset.OtherAsset - type: String - displayName: Other Asset - required: false - - value: Income.Income - type: String - displayName: Income - required: false - - value: Income.OtherIncome - type: String - displayName: Other Income - required: false - - value: Liability.AccountsPayable - type: String - displayName: Accounts Payable - required: false - - value: Liability.CreditCard - type: String - displayName: Credit Card - required: false - - value: Liability.LongTermLiability - type: String - displayName: Long Term Liability - required: false - - value: Liability.OtherCurrentLiability - type: String - displayName: Other Current Liability - required: false - - value: Liability.CostOfGoodsSold - type: String - displayName: Cost Of Goods Sold - required: false - - value: Equity.Equity - type: String - displayName: Equity - required: false - - value: Expense.Expense - type: String - displayName: Expense - required: false - - value: Expense.OtherExpense - type: String - displayName: Other Expense - required: false - required: true - currentBalance: - type: Number - displayName: Current Balance - description: The current balance in the account - required: false - required: true - QuickBooks Online Sandbox: - value: - type: Object - displayName: Nominal Account - description: Nominal Accounts are the categories a business uses to record transactions - properties: - nominalCode: - type: String - displayName: Nominal Code - description: The external reference given to each nominal account for a business - required: false - validation: - warnings: [] - information: - - field: NominalCode - details: If included must have a length between 1 and 7 characters - name: - type: String - displayName: Name - description: Name of the account - required: true - validation: - warnings: - - field: Name - details: Must have a length between 1 and 100 characters - information: [] - currency: - type: String - displayName: Currency - description: The currency of the account - required: false - validation: - warnings: [] - information: - - field: Currency - details: When not specified company base currency will be used - fullyQualifiedCategory: - type: String - displayName: Fully Qualified Category - description: The full category of the account e.g. Liability.Current or Income.Revenue - options: - - value: Asset.Bank.CashOnHand - type: String - displayName: Cash On Hand - required: false - - value: Asset.Bank.Checking - type: String - displayName: Checking - required: false - - value: Asset.Bank.MoneyMarket - type: String - displayName: Money Market - required: false - - value: Asset.Bank.RentsHeldInTrust - type: String - displayName: Rents Held In Trust - required: false - - value: Asset.Bank.Savings - type: String - displayName: Savings - required: false - - value: Asset.Bank.TrustAccounts - type: String - displayName: Trust Accounts - required: false - - value: Asset.Bank.CashAndCashEquivalents - type: String - displayName: Cash And Cash Equivalents - required: false - - value: Asset.Bank.OtherEarmarkedBankAccounts - type: String - displayName: Other Earmarked Bank Accounts - required: false - - value: Asset.Other Current Asset.AllowanceForBadDebts - type: String - displayName: Allowance For Bad Debts - required: false - - value: Asset.Other Current Asset.DevelopmentCosts - type: String - displayName: Development Costs - required: false - - value: Asset.Other Current Asset.EmployeeCashAdvances - type: String - displayName: Employee Cash Advances - required: false - - value: Asset.Other Current Asset.OtherCurrentAssets - type: String - displayName: Other Current Assets - required: false - - value: Asset.Other Current Asset.Inventory - type: String - displayName: Inventory - required: false - - value: Asset.Other Current Asset.Investment_MortgageRealEstateLoans - type: String - displayName: Investment Mortgage Real Estate Loans - required: false - - value: Asset.Other Current Asset.Investment_Other - type: String - displayName: Investment Other - required: false - - value: Asset.Other Current Asset.Investment_TaxExemptSecurities - type: String - displayName: Investment Tax Exempt Securities - required: false - - value: Asset.Other Current Asset.Investment_USGovernmentObligations - type: String - displayName: Investment US Government Obligations - required: false - - value: Asset.Other Current Asset.LoansToOfficers - type: String - displayName: Loans To Officers - required: false - - value: Asset.Other Current Asset.LoansToOthers - type: String - displayName: Loans To Others - required: false - - value: Asset.Other Current Asset.LoansToStockholders - type: String - displayName: Loans To Stockholders - required: false - - value: Asset.Other Current Asset.PrepaidExpenses - type: String - displayName: Prepaid Expenses - required: false - - value: Asset.Other Current Asset.Retainage - type: String - displayName: Retainage - required: false - - value: Asset.Other Current Asset.UndepositedFunds - type: String - displayName: Undeposited Funds - required: false - - value: Asset.Other Current Asset.AssetsAvailableForSale - type: String - displayName: Assets Available For Sale - required: false - - value: Asset.Other Current Asset.BalWithGovtAuthorities - type: String - displayName: Balance With Govt Authorities - required: false - - value: Asset.Other Current Asset.CalledUpShareCapitalNotPaid - type: String - displayName: Called Up Share Capital Not Paid - required: false - - value: Asset.Other Current Asset.ExpenditureAuthorisationsAndLettersOfCredit - type: String - displayName: Expenditure Authorisations And Letters Of Credit - required: false - - value: Asset.Other Current Asset.GlobalTaxDeferred - type: String - displayName: Global Tax Deferred - required: false - - value: Asset.Other Current Asset.GlobalTaxRefund - type: String - displayName: Global Tax Refund - required: false - - value: Asset.Other Current Asset.InternalTransfers - type: String - displayName: Internal Transfers - required: false - - value: Asset.Other Current Asset.OtherConsumables - type: String - displayName: Other Consumables - required: false - - value: Asset.Other Current Asset.ProvisionsCurrentAssets - type: String - displayName: Provisions Current Assets - required: false - - value: Asset.Other Current Asset.ShortTermInvestmentsInRelatedParties - type: String - displayName: Short Term Investments In Related Parties - required: false - - value: Asset.Other Current Asset.ShortTermLoansAndAdvancesToRelatedParties - type: String - displayName: Short Term Loans And Advances To Related Parties - required: false - - value: Asset.Other Current Asset.TradeAndOtherReceivables - type: String - displayName: Trade And Other Receivables - required: false - - value: Asset.Fixed Asset.AccumulatedDepletion - type: String - displayName: Accumulated Depletion - required: false - - value: Asset.Fixed Asset.AccumulatedDepreciation - type: String - displayName: Accumulated Depreciation - required: false - - value: Asset.Fixed Asset.DepletableAssets - type: String - displayName: Depletable Assets - required: false - - value: Asset.Fixed Asset.FixedAssetComputers - type: String - displayName: Fixed Asset Computers - required: false - - value: Asset.Fixed Asset.FixedAssetCopiers - type: String - displayName: Fixed Asset Copiers - required: false - - value: Asset.Fixed Asset.FixedAssetFurniture - type: String - displayName: Fixed Asset Furniture - required: false - - value: Asset.Fixed Asset.FixedAssetPhone - type: String - displayName: Fixed Asset Phone - required: false - - value: Asset.Fixed Asset.FixedAssetPhotoVideo - type: String - displayName: Fixed Asset Photo Video - required: false - - value: Asset.Fixed Asset.FixedAssetSoftware - type: String - displayName: Fixed Asset Software - required: false - - value: Asset.Fixed Asset.FixedAssetOtherToolsEquipment - type: String - displayName: Fixed Asset Other Tools Equipment - required: false - - value: Asset.Fixed Asset.FurnitureAndFixtures - type: String - displayName: Furniture And Fixtures - required: false - - value: Asset.Fixed Asset.Land - type: String - displayName: Land - required: false - - value: Asset.Fixed Asset.LeaseholdImprovements - type: String - displayName: Leasehold Improvements - required: false - - value: Asset.Fixed Asset.OtherFixedAssets - type: String - displayName: Other Fixed Assets - required: false - - value: Asset.Fixed Asset.AccumulatedAmortization - type: String - displayName: Accumulated Amortization - required: false - - value: Asset.Fixed Asset.Buildings - type: String - displayName: Buildings - required: false - - value: Asset.Fixed Asset.IntangibleAssets - type: String - displayName: Intangible Assets - required: false - - value: Asset.Fixed Asset.MachineryAndEquipment - type: String - displayName: Machinery And Equipment - required: false - - value: Asset.Fixed Asset.Vehicles - type: String - displayName: Vehicles - required: false - - value: Asset.Fixed Asset.AssetsInCourseOfConstruction - type: String - displayName: Assets In Course Of Construction - required: false - - value: Asset.Fixed Asset.CapitalWip - type: String - displayName: Capital Wip - required: false - - value: Asset.Fixed Asset.CumulativeDepreciationOnIntangibleAssets - type: String - displayName: Cumulative Depreciation On Intangible Assets - required: false - - value: Asset.Fixed Asset.IntangibleAssetsUnderDevelopment - type: String - displayName: Intangible Assets Under Development - required: false - - value: Asset.Fixed Asset.LandAsset - type: String - displayName: Land Asset - required: false - - value: Asset.Fixed Asset.NonCurrentAssets - type: String - displayName: Non Current Assets - required: false - - value: Asset.Fixed Asset.ParticipatingInterests - type: String - displayName: Participating Interests - required: false - - value: Asset.Fixed Asset.ProvisionsFixedAssets - type: String - displayName: Provisions Fixed Assets - required: false - - value: Asset.Other Asset.LeaseBuyout - type: String - displayName: Lease Buyout - required: false - - value: Asset.Other Asset.OtherLongTermAssets - type: String - displayName: Other Long Term Assets - required: false - - value: Asset.Other Asset.SecurityDeposits - type: String - displayName: Security Deposits - required: false - - value: Asset.Other Asset.AccumulatedAmortizationOfOtherAssets - type: String - displayName: Accumulated Amortization Of Other Assets - required: false - - value: Asset.Other Asset.Goodwill - type: String - displayName: Goodwill - required: false - - value: Asset.Other Asset.Licenses - type: String - displayName: Licenses - required: false - - value: Asset.Other Asset.OrganizationalCosts - type: String - displayName: Organizational Costs - required: false - - value: Asset.Other Asset.AssetsHeldForSale - type: String - displayName: Assets Held For Sale - required: false - - value: Asset.Other Asset.AvailableForSaleFinancialAssets - type: String - displayName: Available For Sale Financial Assets - required: false - - value: Asset.Other Asset.DeferredTax - type: String - displayName: Deferred Tax - required: false - - value: Asset.Other Asset.Investments - type: String - displayName: Investments - required: false - - value: Asset.Other Asset.LongTermInvestments - type: String - displayName: Long Term Investments - required: false - - value: Asset.Other Asset.LongTermLoansAndAdvancesToRelatedParties - type: String - displayName: Long Term Loans And Advances To Related Parties - required: false - - value: Asset.Other Asset.OtherIntangibleAssets - type: String - displayName: Other Intangible Assets - required: false - - value: Asset.Other Asset.OtherLongTermInvestments - type: String - displayName: Other Long Term Investments - required: false - - value: Asset.Other Asset.OtherLongTermLoansAndAdvances - type: String - displayName: Other Long Term Loans And Advances - required: false - - value: Asset.Other Asset.PrepaymentsAndAccruedIncome - type: String - displayName: Prepayments And Accrued Income - required: false - - value: Asset.Other Asset.ProvisionsNonCurrentAssets - type: String - displayName: Provisions Non-Current Assets - required: false - - value: Asset.Accounts Receivable.AccountsReceivable - type: String - displayName: Accounts Receivable - required: false - - value: Expense.Expense.AdvertisingPromotional - type: String - displayName: Advertising/Promotional - required: false - - value: Expense.Expense.BadDebts - type: String - displayName: Bad Debts - required: false - - value: Expense.Expense.BankCharges - type: String - displayName: Bank Charges - required: false - - value: Expense.Expense.CharitableContributions - type: String - displayName: Charitable Contributions - required: false - - value: Expense.Expense.CommissionsAndFees - type: String - displayName: Commissions And Fees - required: false - - value: Expense.Expense.Entertainment - type: String - displayName: Entertainment - required: false - - value: Expense.Expense.EntertainmentMeals - type: String - displayName: Entertainment Meals - required: false - - value: Expense.Expense.EquipmentRental - type: String - displayName: Equipment Rental - required: false - - value: Expense.Expense.FinanceCosts - type: String - displayName: Finance Costs - required: false - - value: Expense.Expense.GlobalTaxExpense - type: String - displayName: Global Tax Expense - required: false - - value: Expense.Expense.Insurance - type: String - displayName: Insurance - required: false - - value: Expense.Expense.InterestPaid - type: String - displayName: Interest Paid - required: false - - value: Expense.Expense.LegalProfessionalFees - type: String - displayName: Legal And Professional Fees - required: false - - value: Expense.Expense.OfficeExpenses - type: String - displayName: Office Expenses - required: false - - value: Expense.Expense.OfficeGeneralAdministrativeExpenses - type: String - displayName: Office/General Administrative Expenses - required: false - - value: Expense.Expense.OtherBusinessExpenses - type: String - displayName: Other Business Expenses - required: false - - value: Expense.Expense.OtherMiscellaneousServiceCost - type: String - displayName: Other Miscellaneous Service Cost - required: false - - value: Expense.Expense.PromotionalMeals - type: String - displayName: Promotional Meals - required: false - - value: Expense.Expense.RentOrLeaseOfBuildings - type: String - displayName: Rent Or Lease Of Buildings - required: false - - value: Expense.Expense.RepairMaintenance - type: String - displayName: Repair And Maintenance - required: false - - value: Expense.Expense.ShippingFreightDelivery - type: String - displayName: 'Shipping, Freight And Delivery' - required: false - - value: Expense.Expense.SuppliesMaterials - type: String - displayName: Supplies And Materials - required: false - - value: Expense.Expense.Travel - type: String - displayName: Travel - required: false - - value: Expense.Expense.TravelMeals - type: String - displayName: Travel Meals - required: false - - value: Expense.Expense.Utilities - type: String - displayName: Utilities - required: false - - value: Expense.Expense.Auto - type: String - displayName: Auto - required: false - - value: Expense.Expense.CostOfLabor - type: String - displayName: Cost Of Labor - required: false - - value: Expense.Expense.DuesSubscriptions - type: String - displayName: Dues And Subscriptions - required: false - - value: Expense.Expense.PayrollExpenses - type: String - displayName: Payroll Expenses - required: false - - value: Expense.Expense.TaxesPaid - type: String - displayName: Taxes Paid - required: false - - value: Expense.Expense.UnappliedCashBillPaymentExpense - type: String - displayName: Unapplied Cash Bill Payment Expense - required: false - - value: Expense.Expense.Utilities - type: String - displayName: Utilities - required: false - - value: Expense.Expense.AmortizationExpense - type: String - displayName: Amortization Expense - required: false - - value: Expense.Expense.AppropriationsToDepreciation - type: String - displayName: Appropriations To Depreciation - required: false - - value: Expense.Expense.BorrowingCost - type: String - displayName: Borrowing Cost - required: false - - value: Expense.Expense.CommissionsAndFees - type: String - displayName: Commissions And Fees - required: false - - value: Expense.Expense.DistributionCosts - type: String - displayName: Distribution Costs - required: false - - value: Expense.Expense.ExternalServices - type: String - displayName: External Services - required: false - - value: Expense.Expense.ExtraordinaryCharges - type: String - displayName: Extraordinary Charges - required: false - - value: Expense.Expense.IncomeTaxExpense - type: String - displayName: Income Tax Expense - required: false - - value: Expense.Expense.LossOnDiscontinuedOperationsNetOfTax - type: String - displayName: Loss On Discontinued Operations Net Of Tax - required: false - - value: Expense.Expense.ManagementCompensation - type: String - displayName: Management Compensation - required: false - - value: Expense.Expense.OtherCurrentOperatingCharges - type: String - displayName: Other Current Operating Charges - required: false - - value: Expense.Expense.OtherExternalServices - type: String - displayName: Other External Services - required: false - - value: Expense.Expense.OtherRentalCosts - type: String - displayName: Other Rental Costs - required: false - - value: Expense.Expense.OtherSellingExpenses - type: String - displayName: Other Selling Expenses - required: false - - value: Expense.Expense.ProjectStudiesSurveysAssessments - type: String - displayName: Project Studies Surveys Assessments - required: false - - value: Expense.Expense.PurchasesRebates - type: String - displayName: Purchases Rebates - required: false - - value: Expense.Expense.ShippingAndDeliveryExpense - type: String - displayName: Shipping And Delivery Expense - required: false - - value: Expense.Expense.StaffCosts - type: String - displayName: Staff Costs - required: false - - value: Expense.Expense.Sundry - type: String - displayName: Sundry - required: false - - value: Expense.Expense.TravelExpensesGeneralAndAdminExpenses - type: String - displayName: Travel Expenses General And Admin Expenses - required: false - - value: Expense.Expense.TravelExpensesSellingExpense - type: String - displayName: Travel Expenses Selling Expense - required: false - - value: Expense.Other Expense.Depreciation - type: String - displayName: Depreciation - required: false - - value: Expense.Other Expense.ExchangeGainOrLoss - type: String - displayName: Exchange Gain Or Loss - required: false - - value: Expense.Other Expense.OtherMiscellaneousExpense - type: String - displayName: Other Miscellaneous Expense - required: false - - value: Expense.Other Expense.PenaltiesSettlements - type: String - displayName: Penalties And Settlements - required: false - - value: Expense.Other Expense.Amortization - type: String - displayName: Amortization - required: false - - value: Expense.Other Expense.GasAndFuel - type: String - displayName: Gas And Fuel - required: false - - value: Expense.Other Expense.HomeOffice - type: String - displayName: Home Office - required: false - - value: Expense.Other Expense.HomeOwnerRentalInsurance - type: String - displayName: Home Owner Rental Insurance - required: false - - value: Expense.Other Expense.OtherHomeOfficeExpenses - type: String - displayName: Other Home Office Expenses - required: false - - value: Expense.Other Expense.MortgageInterest - type: String - displayName: Mortgage Interest - required: false - - value: Expense.Other Expense.RentAndLease - type: String - displayName: Rent And Lease - required: false - - value: Expense.Other Expense.RepairsAndMaintenance - type: String - displayName: Repairs And Maintenance - required: false - - value: Expense.Other Expense.ParkingAndTolls - type: String - displayName: Parking And Tolls - required: false - - value: Expense.Other Expense.Vehicle - type: String - displayName: Vehicle - required: false - - value: Expense.Other Expense.VehicleInsurance - type: String - displayName: Vehicle Insurance - required: false - - value: Expense.Other Expense.VehicleLease - type: String - displayName: Vehicle Lease - required: false - - value: Expense.Other Expense.VehicleLoanInterest - type: String - displayName: Vehicle Loan Interest - required: false - - value: Expense.Other Expense.VehicleLoan - type: String - displayName: Vehicle Loan - required: false - - value: Expense.Other Expense.VehicleRegistration - type: String - displayName: Vehicle Registration - required: false - - value: Expense.Other Expense.VehicleRepairs - type: String - displayName: Vehicle Repairs - required: false - - value: Expense.Other Expense.OtherVehicleExpenses - type: String - displayName: Other Vehicle Expenses - required: false - - value: Expense.Other Expense.Utilities - type: String - displayName: Utilities - required: false - - value: Expense.Other Expense.WashAndRoadServices - type: String - displayName: Wash And Road Services - required: false - - value: Expense.Other Expense.DeferredTaxExpense - type: String - displayName: Deferred Tax Expense - required: false - - value: Expense.Other Expense.Depletion - type: String - displayName: Depletion - required: false - - value: Expense.Other Expense.ExceptionalItems - type: String - displayName: Exceptional Items - required: false - - value: Expense.Other Expense.ExtraordinaryItems - type: String - displayName: Extraordinary Items - required: false - - value: Expense.Other Expense.IncomeTaxOtherExpense - type: String - displayName: Income Tax Other Expense - required: false - - value: Expense.Other Expense.MatCredit - type: String - displayName: Mat Credit - required: false - - value: Expense.Other Expense.PriorPeriodItems - type: String - displayName: Prior Period Items - required: false - - value: Expense.Other Expense.TaxRoundoffGainOrLoss - type: String - displayName: Tax Roundoff Gain Or Loss - required: false - - value: Expense.Cost of Goods Sold.EquipmentRentalCos - type: String - displayName: Equipment Rental - COS - required: false - - value: Expense.Cost of Goods Sold.OtherCostsOfServiceCos - type: String - displayName: Other Costs Of Sales - COS - required: false - - value: Expense.Cost of Goods Sold.ShippingFreightDeliveryCos - type: String - displayName: 'Shipping, Freight And Delivery - COS' - required: false - - value: Expense.Cost of Goods Sold.SuppliesMaterialsCogs - type: String - displayName: Supplies And Materials - COS - required: false - - value: Expense.Cost of Goods Sold.CostOfLaborCos - type: String - displayName: Cost Of Labor - COS - required: false - - value: Expense.Cost of Goods Sold.CostOfSales - type: String - displayName: Cost Of Sales - required: false - - value: Expense.Cost of Goods Sold.FreightAndDeliveryCost - type: String - displayName: Freight And Delivery Cost - required: false - - value: Income.Income.NonProfitIncome - type: String - displayName: Non Profit Income - required: false - - value: Income.Income.OtherPrimaryIncome - type: String - displayName: Other Primary Income - required: false - - value: Income.Income.SalesOfProductIncome - type: String - displayName: Sales Of ProductIncome - required: false - - value: Income.Income.ServiceFeeIncome - type: String - displayName: Service Fee Income - required: false - - value: Income.Income.DiscountsRefundsGiven - type: String - displayName: Discounts Refunds Given - required: false - - value: Income.Income.UnappliedCashPaymentIncome - type: String - displayName: Unapplied Cash Payment Income - required: false - - value: Income.Income.CashReceiptIncome - type: String - displayName: Cash Receipt Income - required: false - - value: Income.Income.OperatingGrants - type: String - displayName: Operating Grants - required: false - - value: Income.Income.OtherCurrentOperatingIncome - type: String - displayName: Other Current Operating Income - required: false - - value: Income.Income.OwnWorkCapitalized - type: String - displayName: Own Work Capitalized - required: false - - value: Income.Income.RevenueGeneral - type: String - displayName: Revenue General - required: false - - value: Income.Income.SalesRetail - type: String - displayName: Sales Retail - required: false - - value: Income.Income.SalesWholesale - type: String - displayName: Sales Wholesale - required: false - - value: Income.Income.SavingsByTaxScheme - type: String - displayName: Savings By Tax Scheme - required: false - - value: Income.Other Income.DividendIncome - type: String - displayName: Dividend Income - required: false - - value: Income.Other Income.InterestEarned - type: String - displayName: Interest Earned - required: false - - value: Income.Other Income.OtherInvestmentIncome - type: String - displayName: Other Investment Income - required: false - - value: Income.Other Income.OtherMiscellaneousIncome - type: String - displayName: Other Miscellaneous Income - required: false - - value: Income.Other Income.TaxExemptInterest - type: String - displayName: Tax Exempt Interest - required: false - - value: Income.Other Income.GainLossOnSaleOfFixedAssets - type: String - displayName: Gain Loss On Sale Of Fixed Assets - required: false - - value: Income.Other Income.GainLossOnSaleOfInvestments - type: String - displayName: Gain Loss On Sale Of Investments - required: false - - value: Income.Other Income.LossOnDisposalOfAssets - type: String - displayName: Loss On Disposal Of Assets - required: false - - value: Income.Other Income.OtherOperatingIncome - type: String - displayName: Other Operating Income - required: false - - value: Income.Other Income.UnrealisedLossOnSecuritiesNetOfTax - type: String - displayName: Unrealised Loss On Securities Net Of Tax - required: false - - value: Liability.Accounts Payable.AccountsPayable - type: String - displayName: Accounts Payable - required: false - - value: Liability.Accounts Payable.OutstandingDuesMicroSmallEnterprise - type: String - displayName: Outstanding Dues Micro Small Enterprise - required: false - - value: Liability.Accounts Payable.OutstandingDuesOtherThanMicroSmallEnterprise - type: String - displayName: Outstanding Dues Other Than Micro Small Enterprise - required: false - - value: Liability.Credit Card.CreditCard - type: String - displayName: Credit Card - required: false - - value: Liability.Long Term Liability.NotesPayable - type: String - displayName: Notes Payable - required: false - - value: Liability.Long Term Liability.OtherLongTermLiabilities - type: String - displayName: Other Long Term Liabilities - required: false - - value: Liability.Long Term Liability.ShareholderNotesPayable - type: String - displayName: Shareholder Notes Payable - required: false - - value: Liability.Long Term Liability.AccrualsAndDeferredIncome - type: String - displayName: Accruals And Deferred Income - required: false - - value: Liability.Long Term Liability.AccruedLongLermLiabilities - type: String - displayName: Accrued Long Lerm Liabilities - required: false - - value: Liability.Long Term Liability.AccruedVacationPayable - type: String - displayName: Accrued Vacation Payable - required: false - - value: Liability.Long Term Liability.BankLoans - type: String - displayName: Bank Loans - required: false - - value: Liability.Long Term Liability.DebtsRelatedToParticipatingInterests - type: String - displayName: Debts Related To Participating Interests - required: false - - value: Liability.Long Term Liability.DeferredTaxLiabilities - type: String - displayName: Deferred Tax Liabilities - required: false - - value: Liability.Long Term Liability.GovernmentAndOtherPublicAuthorities - type: String - displayName: Government And Other Public Authorities - required: false - - value: Liability.Long Term Liability.GroupAndAssociates - type: String - displayName: Group And Associates - required: false - - value: Liability.Long Term Liability.LiabilitiesRelatedToAssetsHeldForSale - type: String - displayName: Liabilities Related To Assets Held For Sale - required: false - - value: Liability.Long Term Liability.LongTermBorrowings - type: String - displayName: Long Term Borrowings - required: false - - value: Liability.Long Term Liability.LongTermDebit - type: String - displayName: Long Term Debit - required: false - - value: Liability.Long Term Liability.LongTermEmployeeBenefitObligations - type: String - displayName: Long Term Employee Benefit Obligations - required: false - - value: Liability.Long Term Liability.ObligationsUnderFinanceLeases - type: String - displayName: Obligations Under Finance Leases - required: false - - value: Liability.Long Term Liability.OtherLongTermProvisions - type: String - displayName: Other Long Term Provisions - required: false - - value: Liability.Long Term Liability.ProvisionForLiabilities - type: String - displayName: Provision For Liabilities - required: false - - value: Liability.Long Term Liability.ProvisionsNonCurrentLiabilities - type: String - displayName: Provisions Non Current Liabilities - required: false - - value: Liability.Long Term Liability.StaffAndRelatedLongTermLiabilityAccounts - type: String - displayName: Staff And Related Long Term Liability Accounts - required: false - - value: Liability.Other Current Liability.DirectDepositPayable - type: String - displayName: Direct Deposit Payable - required: false - - value: Liability.Other Current Liability.LineOfCredit - type: String - displayName: Line Of Credit - required: false - - value: Liability.Other Current Liability.LoanPayable - type: String - displayName: Loan Payable - required: false - - value: Liability.Other Current Liability.GlobalTaxPayable - type: String - displayName: Global Tax Payable - required: false - - value: Liability.Other Current Liability.GlobalTaxSuspense - type: String - displayName: Global Tax Suspense - required: false - - value: Liability.Other Current Liability.OtherCurrentLiabilities - type: String - displayName: Other Current Liabilities - required: false - - value: Liability.Other Current Liability.PayrollClearing - type: String - displayName: Payroll Clearing - required: false - - value: Liability.Other Current Liability.PayrollTaxPayable - type: String - displayName: Payroll Tax Payable - required: false - - value: Liability.Other Current Liability.PrepaidExpensesPayable - type: String - displayName: Prepaid Expenses Payable - required: false - - value: Liability.Other Current Liability.RentsInTrustLiability - type: String - displayName: Rents In Trust Liability - required: false - - value: Liability.Other Current Liability.TrustAccountsLiabilities - type: String - displayName: Trust Accounts Liabilities - required: false - - value: Liability.Other Current Liability.FederalIncomeTaxPayable - type: String - displayName: Federal Income Tax Payable - required: false - - value: Liability.Other Current Liability.InsurancePayable - type: String - displayName: Insurance Payable - required: false - - value: Liability.Other Current Liability.SalesTaxPayable - type: String - displayName: Sales Tax Payable - required: false - - value: Liability.Other Current Liability.StateLocalIncomeTaxPayable - type: String - displayName: State Local Income Tax Payable - required: false - - value: Liability.Other Current Liability.AccruedLiabilities - type: String - displayName: Accrued Liabilities - required: false - - value: Liability.Other Current Liability.CurrentLiabilities - type: String - displayName: Current Liabilities - required: false - - value: Liability.Other Current Liability.CurrentPortionEmployeeBenefitsObligations - type: String - displayName: Current Portion EmployeeBenefits Obligations - required: false - - value: Liability.Other Current Liability.CurrentPortionOfObligationsUnderFinanceLeases - type: String - displayName: Current Portion Of Obligations Under Finance Leases - required: false - - value: Liability.Other Current Liability.CurrentTaxLiability - type: String - displayName: Current Tax Liability - required: false - - value: Liability.Other Current Liability.DividendsPayable - type: String - displayName: Dividends Payable - required: false - - value: Liability.Other Current Liability.DutiesAndTaxes - type: String - displayName: Duties And Taxes - required: false - - value: Liability.Other Current Liability.InterestPayables - type: String - displayName: Interest Payables - required: false - - value: Liability.Other Current Liability.ProvisionForWarrantyObligations - type: String - displayName: Provision For Warranty Obligations - required: false - - value: Liability.Other Current Liability.ProvisionsCurrentLiabilities - type: String - displayName: Provisions Current Liabilities - required: false - - value: Liability.Other Current Liability.ShortTermBorrowings - type: String - displayName: Short Term Borrowings - required: false - - value: Liability.Other Current Liability.SocialSecurityAgencies - type: String - displayName: Social Security Agencies - required: false - - value: Liability.Other Current Liability.StaffAndRelatedLiabilityAccounts - type: String - displayName: Staff And Related Liability Accounts - required: false - - value: Liability.Other Current Liability.SundryDebtorsAndCreditors - type: String - displayName: Sundry Debtors And Creditors - required: false - - value: Liability.Other Current Liability.TradeAndOtherPayables - type: String - displayName: Trade And Other Payables - required: false - - value: Equity.Equity.OpeningBalanceEquity - type: String - displayName: Opening Balance Equity - required: false - - value: Equity.Equity.PartnersEquity - type: String - displayName: Partners Equity - required: false - - value: Equity.Equity.RetainedEarnings - type: String - displayName: Retained Earnings - required: false - - value: Equity.Equity.AccumulatedAdjustment - type: String - displayName: Accumulated Adjustment - required: false - - value: Equity.Equity.OwnersEquity - type: String - displayName: Owners Equity - required: false - - value: Equity.Equity.PaidInCapitalOrSurplus - type: String - displayName: Paid In Capital Or Surplus - required: false - - value: Equity.Equity.PartnerContributions - type: String - displayName: Partner Contributions - required: false - - value: Equity.Equity.PartnerDistributions - type: String - displayName: Partner Distributions - required: false - - value: Equity.Equity.PreferredStock - type: String - displayName: Preferred Stock - required: false - - value: Equity.Equity.CommonStock - type: String - displayName: Common Stock - required: false - - value: Equity.Equity.TreasuryStock - type: String - displayName: Treasury Stock - required: false - - value: Equity.Equity.EstimatedTaxes - type: String - displayName: Estimated Taxes - required: false - - value: Equity.Equity.Healthcare - type: String - displayName: Healthcare - required: false - - value: Equity.Equity.PersonalIncome - type: String - displayName: Personal Income - required: false - - value: Equity.Equity.PersonalExpense - type: String - displayName: Personal Expense - required: false - - value: Equity.Equity.AccumulatedOtherComprehensiveIncome - type: String - displayName: Accumulated Other Comprehensive Income - required: false - - value: Equity.Equity.CalledUpShareCapital - type: String - displayName: Called Up Share Capital - required: false - - value: Equity.Equity.CapitalReserves - type: String - displayName: Capital Reserves - required: false - - value: Equity.Equity.DividendDisbursed - type: String - displayName: Dividend Disbursed - required: false - - value: Equity.Equity.EquityInEarningsOfSubsiduaries - type: String - displayName: Equity In Earnings Of Subsiduaries - required: false - - value: Equity.Equity.InvestmentGrants - type: String - displayName: Investment Grants - required: false - - value: Equity.Equity.MoneyReceivedAgainstShareWarrants - type: String - displayName: Money Received Against Share Warrants - required: false - - value: Equity.Equity.OtherFreeReserves - type: String - displayName: Other Free Reserves - required: false - - value: Equity.Equity.ShareApplicationMoneyPendingAllotment - type: String - displayName: Share Application Money Pending Allotment - required: false - - value: Equity.Equity.ShareCapital - type: String - displayName: Share Capital - required: false - - value: Equity.Equity.Funds - type: String - displayName: Funds - required: false - required: true - required: true - QuickBooks Online: - value: - type: Object - displayName: Nominal Account - description: Nominal Accounts are the categories a business uses to record transactions - properties: - nominalCode: - type: String - displayName: Nominal Code - description: The external reference given to each nominal account for a business - required: false - validation: - warnings: [] - information: - - field: NominalCode - details: If included must have a length between 1 and 7 characters - name: - type: String - displayName: Name - description: Name of the account - required: true - validation: - warnings: - - field: Name - details: Must have a length between 1 and 100 characters - information: [] - currency: - type: String - displayName: Currency - description: The currency of the account - required: false - validation: - warnings: [] - information: - - field: Currency - details: When not specified company base currency will be used - fullyQualifiedCategory: - type: String - displayName: Fully Qualified Category - description: The full category of the account e.g. Liability.Current or Income.Revenue - options: - - value: Asset.Bank.CashOnHand - type: String - displayName: Cash On Hand - required: false - - value: Asset.Bank.Checking - type: String - displayName: Checking - required: false - - value: Asset.Bank.MoneyMarket - type: String - displayName: Money Market - required: false - - value: Asset.Bank.RentsHeldInTrust - type: String - displayName: Rents Held In Trust - required: false - - value: Asset.Bank.Savings - type: String - displayName: Savings - required: false - - value: Asset.Bank.TrustAccounts - type: String - displayName: Trust Accounts - required: false - - value: Asset.Bank.CashAndCashEquivalents - type: String - displayName: Cash And Cash Equivalents - required: false - - value: Asset.Bank.OtherEarmarkedBankAccounts - type: String - displayName: Other Earmarked Bank Accounts - required: false - - value: Asset.Other Current Asset.AllowanceForBadDebts - type: String - displayName: Allowance For Bad Debts - required: false - - value: Asset.Other Current Asset.DevelopmentCosts - type: String - displayName: Development Costs - required: false - - value: Asset.Other Current Asset.EmployeeCashAdvances - type: String - displayName: Employee Cash Advances - required: false - - value: Asset.Other Current Asset.OtherCurrentAssets - type: String - displayName: Other Current Assets - required: false - - value: Asset.Other Current Asset.Inventory - type: String - displayName: Inventory - required: false - - value: Asset.Other Current Asset.Investment_MortgageRealEstateLoans - type: String - displayName: Investment Mortgage Real Estate Loans - required: false - - value: Asset.Other Current Asset.Investment_Other - type: String - displayName: Investment Other - required: false - - value: Asset.Other Current Asset.Investment_TaxExemptSecurities - type: String - displayName: Investment Tax Exempt Securities - required: false - - value: Asset.Other Current Asset.Investment_USGovernmentObligations - type: String - displayName: Investment US Government Obligations - required: false - - value: Asset.Other Current Asset.LoansToOfficers - type: String - displayName: Loans To Officers - required: false - - value: Asset.Other Current Asset.LoansToOthers - type: String - displayName: Loans To Others - required: false - - value: Asset.Other Current Asset.LoansToStockholders - type: String - displayName: Loans To Stockholders - required: false - - value: Asset.Other Current Asset.PrepaidExpenses - type: String - displayName: Prepaid Expenses - required: false - - value: Asset.Other Current Asset.Retainage - type: String - displayName: Retainage - required: false - - value: Asset.Other Current Asset.UndepositedFunds - type: String - displayName: Undeposited Funds - required: false - - value: Asset.Other Current Asset.AssetsAvailableForSale - type: String - displayName: Assets Available For Sale - required: false - - value: Asset.Other Current Asset.BalWithGovtAuthorities - type: String - displayName: Balance With Govt Authorities - required: false - - value: Asset.Other Current Asset.CalledUpShareCapitalNotPaid - type: String - displayName: Called Up Share Capital Not Paid - required: false - - value: Asset.Other Current Asset.ExpenditureAuthorisationsAndLettersOfCredit - type: String - displayName: Expenditure Authorisations And Letters Of Credit - required: false - - value: Asset.Other Current Asset.GlobalTaxDeferred - type: String - displayName: Global Tax Deferred - required: false - - value: Asset.Other Current Asset.GlobalTaxRefund - type: String - displayName: Global Tax Refund - required: false - - value: Asset.Other Current Asset.InternalTransfers - type: String - displayName: Internal Transfers - required: false - - value: Asset.Other Current Asset.OtherConsumables - type: String - displayName: Other Consumables - required: false - - value: Asset.Other Current Asset.ProvisionsCurrentAssets - type: String - displayName: Provisions Current Assets - required: false - - value: Asset.Other Current Asset.ShortTermInvestmentsInRelatedParties - type: String - displayName: Short Term Investments In Related Parties - required: false - - value: Asset.Other Current Asset.ShortTermLoansAndAdvancesToRelatedParties - type: String - displayName: Short Term Loans And Advances To Related Parties - required: false - - value: Asset.Other Current Asset.TradeAndOtherReceivables - type: String - displayName: Trade And Other Receivables - required: false - - value: Asset.Fixed Asset.AccumulatedDepletion - type: String - displayName: Accumulated Depletion - required: false - - value: Asset.Fixed Asset.AccumulatedDepreciation - type: String - displayName: Accumulated Depreciation - required: false - - value: Asset.Fixed Asset.DepletableAssets - type: String - displayName: Depletable Assets - required: false - - value: Asset.Fixed Asset.FixedAssetComputers - type: String - displayName: Fixed Asset Computers - required: false - - value: Asset.Fixed Asset.FixedAssetCopiers - type: String - displayName: Fixed Asset Copiers - required: false - - value: Asset.Fixed Asset.FixedAssetFurniture - type: String - displayName: Fixed Asset Furniture - required: false - - value: Asset.Fixed Asset.FixedAssetPhone - type: String - displayName: Fixed Asset Phone - required: false - - value: Asset.Fixed Asset.FixedAssetPhotoVideo - type: String - displayName: Fixed Asset Photo Video - required: false - - value: Asset.Fixed Asset.FixedAssetSoftware - type: String - displayName: Fixed Asset Software - required: false - - value: Asset.Fixed Asset.FixedAssetOtherToolsEquipment - type: String - displayName: Fixed Asset Other Tools Equipment - required: false - - value: Asset.Fixed Asset.FurnitureAndFixtures - type: String - displayName: Furniture And Fixtures - required: false - - value: Asset.Fixed Asset.Land - type: String - displayName: Land - required: false - - value: Asset.Fixed Asset.LeaseholdImprovements - type: String - displayName: Leasehold Improvements - required: false - - value: Asset.Fixed Asset.OtherFixedAssets - type: String - displayName: Other Fixed Assets - required: false - - value: Asset.Fixed Asset.AccumulatedAmortization - type: String - displayName: Accumulated Amortization - required: false - - value: Asset.Fixed Asset.Buildings - type: String - displayName: Buildings - required: false - - value: Asset.Fixed Asset.IntangibleAssets - type: String - displayName: Intangible Assets - required: false - - value: Asset.Fixed Asset.MachineryAndEquipment - type: String - displayName: Machinery And Equipment - required: false - - value: Asset.Fixed Asset.Vehicles - type: String - displayName: Vehicles - required: false - - value: Asset.Fixed Asset.AssetsInCourseOfConstruction - type: String - displayName: Assets In Course Of Construction - required: false - - value: Asset.Fixed Asset.CapitalWip - type: String - displayName: Capital Wip - required: false - - value: Asset.Fixed Asset.CumulativeDepreciationOnIntangibleAssets - type: String - displayName: Cumulative Depreciation On Intangible Assets - required: false - - value: Asset.Fixed Asset.IntangibleAssetsUnderDevelopment - type: String - displayName: Intangible Assets Under Development - required: false - - value: Asset.Fixed Asset.LandAsset - type: String - displayName: Land Asset - required: false - - value: Asset.Fixed Asset.NonCurrentAssets - type: String - displayName: Non Current Assets - required: false - - value: Asset.Fixed Asset.ParticipatingInterests - type: String - displayName: Participating Interests - required: false - - value: Asset.Fixed Asset.ProvisionsFixedAssets - type: String - displayName: Provisions Fixed Assets - required: false - - value: Asset.Other Asset.LeaseBuyout - type: String - displayName: Lease Buyout - required: false - - value: Asset.Other Asset.OtherLongTermAssets - type: String - displayName: Other Long Term Assets - required: false - - value: Asset.Other Asset.SecurityDeposits - type: String - displayName: Security Deposits - required: false - - value: Asset.Other Asset.AccumulatedAmortizationOfOtherAssets - type: String - displayName: Accumulated Amortization Of Other Assets - required: false - - value: Asset.Other Asset.Goodwill - type: String - displayName: Goodwill - required: false - - value: Asset.Other Asset.Licenses - type: String - displayName: Licenses - required: false - - value: Asset.Other Asset.OrganizationalCosts - type: String - displayName: Organizational Costs - required: false - - value: Asset.Other Asset.AssetsHeldForSale - type: String - displayName: Assets Held For Sale - required: false - - value: Asset.Other Asset.AvailableForSaleFinancialAssets - type: String - displayName: Available For Sale Financial Assets - required: false - - value: Asset.Other Asset.DeferredTax - type: String - displayName: Deferred Tax - required: false - - value: Asset.Other Asset.Investments - type: String - displayName: Investments - required: false - - value: Asset.Other Asset.LongTermInvestments - type: String - displayName: Long Term Investments - required: false - - value: Asset.Other Asset.LongTermLoansAndAdvancesToRelatedParties - type: String - displayName: Long Term Loans And Advances To Related Parties - required: false - - value: Asset.Other Asset.OtherIntangibleAssets - type: String - displayName: Other Intangible Assets - required: false - - value: Asset.Other Asset.OtherLongTermInvestments - type: String - displayName: Other Long Term Investments - required: false - - value: Asset.Other Asset.OtherLongTermLoansAndAdvances - type: String - displayName: Other Long Term Loans And Advances - required: false - - value: Asset.Other Asset.PrepaymentsAndAccruedIncome - type: String - displayName: Prepayments And Accrued Income - required: false - - value: Asset.Other Asset.ProvisionsNonCurrentAssets - type: String - displayName: Provisions Non-Current Assets - required: false - - value: Asset.Accounts Receivable.AccountsReceivable - type: String - displayName: Accounts Receivable - required: false - - value: Expense.Expense.AdvertisingPromotional - type: String - displayName: Advertising/Promotional - required: false - - value: Expense.Expense.BadDebts - type: String - displayName: Bad Debts - required: false - - value: Expense.Expense.BankCharges - type: String - displayName: Bank Charges - required: false - - value: Expense.Expense.CharitableContributions - type: String - displayName: Charitable Contributions - required: false - - value: Expense.Expense.CommissionsAndFees - type: String - displayName: Commissions And Fees - required: false - - value: Expense.Expense.Entertainment - type: String - displayName: Entertainment - required: false - - value: Expense.Expense.EntertainmentMeals - type: String - displayName: Entertainment Meals - required: false - - value: Expense.Expense.EquipmentRental - type: String - displayName: Equipment Rental - required: false - - value: Expense.Expense.FinanceCosts - type: String - displayName: Finance Costs - required: false - - value: Expense.Expense.GlobalTaxExpense - type: String - displayName: Global Tax Expense - required: false - - value: Expense.Expense.Insurance - type: String - displayName: Insurance - required: false - - value: Expense.Expense.InterestPaid - type: String - displayName: Interest Paid - required: false - - value: Expense.Expense.LegalProfessionalFees - type: String - displayName: Legal And Professional Fees - required: false - - value: Expense.Expense.OfficeExpenses - type: String - displayName: Office Expenses - required: false - - value: Expense.Expense.OfficeGeneralAdministrativeExpenses - type: String - displayName: Office/General Administrative Expenses - required: false - - value: Expense.Expense.OtherBusinessExpenses - type: String - displayName: Other Business Expenses - required: false - - value: Expense.Expense.OtherMiscellaneousServiceCost - type: String - displayName: Other Miscellaneous Service Cost - required: false - - value: Expense.Expense.PromotionalMeals - type: String - displayName: Promotional Meals - required: false - - value: Expense.Expense.RentOrLeaseOfBuildings - type: String - displayName: Rent Or Lease Of Buildings - required: false - - value: Expense.Expense.RepairMaintenance - type: String - displayName: Repair And Maintenance - required: false - - value: Expense.Expense.ShippingFreightDelivery - type: String - displayName: 'Shipping, Freight And Delivery' - required: false - - value: Expense.Expense.SuppliesMaterials - type: String - displayName: Supplies And Materials - required: false - - value: Expense.Expense.Travel - type: String - displayName: Travel - required: false - - value: Expense.Expense.TravelMeals - type: String - displayName: Travel Meals - required: false - - value: Expense.Expense.Utilities - type: String - displayName: Utilities - required: false - - value: Expense.Expense.Auto - type: String - displayName: Auto - required: false - - value: Expense.Expense.CostOfLabor - type: String - displayName: Cost Of Labor - required: false - - value: Expense.Expense.DuesSubscriptions - type: String - displayName: Dues And Subscriptions - required: false - - value: Expense.Expense.PayrollExpenses - type: String - displayName: Payroll Expenses - required: false - - value: Expense.Expense.TaxesPaid - type: String - displayName: Taxes Paid - required: false - - value: Expense.Expense.UnappliedCashBillPaymentExpense - type: String - displayName: Unapplied Cash Bill Payment Expense - required: false - - value: Expense.Expense.Utilities - type: String - displayName: Utilities - required: false - - value: Expense.Expense.AmortizationExpense - type: String - displayName: Amortization Expense - required: false - - value: Expense.Expense.AppropriationsToDepreciation - type: String - displayName: Appropriations To Depreciation - required: false - - value: Expense.Expense.BorrowingCost - type: String - displayName: Borrowing Cost - required: false - - value: Expense.Expense.CommissionsAndFees - type: String - displayName: Commissions And Fees - required: false - - value: Expense.Expense.DistributionCosts - type: String - displayName: Distribution Costs - required: false - - value: Expense.Expense.ExternalServices - type: String - displayName: External Services - required: false - - value: Expense.Expense.ExtraordinaryCharges - type: String - displayName: Extraordinary Charges - required: false - - value: Expense.Expense.IncomeTaxExpense - type: String - displayName: Income Tax Expense - required: false - - value: Expense.Expense.LossOnDiscontinuedOperationsNetOfTax - type: String - displayName: Loss On Discontinued Operations Net Of Tax - required: false - - value: Expense.Expense.ManagementCompensation - type: String - displayName: Management Compensation - required: false - - value: Expense.Expense.OtherCurrentOperatingCharges - type: String - displayName: Other Current Operating Charges - required: false - - value: Expense.Expense.OtherExternalServices - type: String - displayName: Other External Services - required: false - - value: Expense.Expense.OtherRentalCosts - type: String - displayName: Other Rental Costs - required: false - - value: Expense.Expense.OtherSellingExpenses - type: String - displayName: Other Selling Expenses - required: false - - value: Expense.Expense.ProjectStudiesSurveysAssessments - type: String - displayName: Project Studies Surveys Assessments - required: false - - value: Expense.Expense.PurchasesRebates - type: String - displayName: Purchases Rebates - required: false - - value: Expense.Expense.ShippingAndDeliveryExpense - type: String - displayName: Shipping And Delivery Expense - required: false - - value: Expense.Expense.StaffCosts - type: String - displayName: Staff Costs - required: false - - value: Expense.Expense.Sundry - type: String - displayName: Sundry - required: false - - value: Expense.Expense.TravelExpensesGeneralAndAdminExpenses - type: String - displayName: Travel Expenses General And Admin Expenses - required: false - - value: Expense.Expense.TravelExpensesSellingExpense - type: String - displayName: Travel Expenses Selling Expense - required: false - - value: Expense.Other Expense.Depreciation - type: String - displayName: Depreciation - required: false - - value: Expense.Other Expense.ExchangeGainOrLoss - type: String - displayName: Exchange Gain Or Loss - required: false - - value: Expense.Other Expense.OtherMiscellaneousExpense - type: String - displayName: Other Miscellaneous Expense - required: false - - value: Expense.Other Expense.PenaltiesSettlements - type: String - displayName: Penalties And Settlements - required: false - - value: Expense.Other Expense.Amortization - type: String - displayName: Amortization - required: false - - value: Expense.Other Expense.GasAndFuel - type: String - displayName: Gas And Fuel - required: false - - value: Expense.Other Expense.HomeOffice - type: String - displayName: Home Office - required: false - - value: Expense.Other Expense.HomeOwnerRentalInsurance - type: String - displayName: Home Owner Rental Insurance - required: false - - value: Expense.Other Expense.OtherHomeOfficeExpenses - type: String - displayName: Other Home Office Expenses - required: false - - value: Expense.Other Expense.MortgageInterest - type: String - displayName: Mortgage Interest - required: false - - value: Expense.Other Expense.RentAndLease - type: String - displayName: Rent And Lease - required: false - - value: Expense.Other Expense.RepairsAndMaintenance - type: String - displayName: Repairs And Maintenance - required: false - - value: Expense.Other Expense.ParkingAndTolls - type: String - displayName: Parking And Tolls - required: false - - value: Expense.Other Expense.Vehicle - type: String - displayName: Vehicle - required: false - - value: Expense.Other Expense.VehicleInsurance - type: String - displayName: Vehicle Insurance - required: false - - value: Expense.Other Expense.VehicleLease - type: String - displayName: Vehicle Lease - required: false - - value: Expense.Other Expense.VehicleLoanInterest - type: String - displayName: Vehicle Loan Interest - required: false - - value: Expense.Other Expense.VehicleLoan - type: String - displayName: Vehicle Loan - required: false - - value: Expense.Other Expense.VehicleRegistration - type: String - displayName: Vehicle Registration - required: false - - value: Expense.Other Expense.VehicleRepairs - type: String - displayName: Vehicle Repairs - required: false - - value: Expense.Other Expense.OtherVehicleExpenses - type: String - displayName: Other Vehicle Expenses - required: false - - value: Expense.Other Expense.Utilities - type: String - displayName: Utilities - required: false - - value: Expense.Other Expense.WashAndRoadServices - type: String - displayName: Wash And Road Services - required: false - - value: Expense.Other Expense.DeferredTaxExpense - type: String - displayName: Deferred Tax Expense - required: false - - value: Expense.Other Expense.Depletion - type: String - displayName: Depletion - required: false - - value: Expense.Other Expense.ExceptionalItems - type: String - displayName: Exceptional Items - required: false - - value: Expense.Other Expense.ExtraordinaryItems - type: String - displayName: Extraordinary Items - required: false - - value: Expense.Other Expense.IncomeTaxOtherExpense - type: String - displayName: Income Tax Other Expense - required: false - - value: Expense.Other Expense.MatCredit - type: String - displayName: Mat Credit - required: false - - value: Expense.Other Expense.PriorPeriodItems - type: String - displayName: Prior Period Items - required: false - - value: Expense.Other Expense.TaxRoundoffGainOrLoss - type: String - displayName: Tax Roundoff Gain Or Loss - required: false - - value: Expense.Cost of Goods Sold.EquipmentRentalCos - type: String - displayName: Equipment Rental - COS - required: false - - value: Expense.Cost of Goods Sold.OtherCostsOfServiceCos - type: String - displayName: Other Costs Of Sales - COS - required: false - - value: Expense.Cost of Goods Sold.ShippingFreightDeliveryCos - type: String - displayName: 'Shipping, Freight And Delivery - COS' - required: false - - value: Expense.Cost of Goods Sold.SuppliesMaterialsCogs - type: String - displayName: Supplies And Materials - COS - required: false - - value: Expense.Cost of Goods Sold.CostOfLaborCos - type: String - displayName: Cost Of Labor - COS - required: false - - value: Expense.Cost of Goods Sold.CostOfSales - type: String - displayName: Cost Of Sales - required: false - - value: Expense.Cost of Goods Sold.FreightAndDeliveryCost - type: String - displayName: Freight And Delivery Cost - required: false - - value: Income.Income.NonProfitIncome - type: String - displayName: Non Profit Income - required: false - - value: Income.Income.OtherPrimaryIncome - type: String - displayName: Other Primary Income - required: false - - value: Income.Income.SalesOfProductIncome - type: String - displayName: Sales Of ProductIncome - required: false - - value: Income.Income.ServiceFeeIncome - type: String - displayName: Service Fee Income - required: false - - value: Income.Income.DiscountsRefundsGiven - type: String - displayName: Discounts Refunds Given - required: false - - value: Income.Income.UnappliedCashPaymentIncome - type: String - displayName: Unapplied Cash Payment Income - required: false - - value: Income.Income.CashReceiptIncome - type: String - displayName: Cash Receipt Income - required: false - - value: Income.Income.OperatingGrants - type: String - displayName: Operating Grants - required: false - - value: Income.Income.OtherCurrentOperatingIncome - type: String - displayName: Other Current Operating Income - required: false - - value: Income.Income.OwnWorkCapitalized - type: String - displayName: Own Work Capitalized - required: false - - value: Income.Income.RevenueGeneral - type: String - displayName: Revenue General - required: false - - value: Income.Income.SalesRetail - type: String - displayName: Sales Retail - required: false - - value: Income.Income.SalesWholesale - type: String - displayName: Sales Wholesale - required: false - - value: Income.Income.SavingsByTaxScheme - type: String - displayName: Savings By Tax Scheme - required: false - - value: Income.Other Income.DividendIncome - type: String - displayName: Dividend Income - required: false - - value: Income.Other Income.InterestEarned - type: String - displayName: Interest Earned - required: false - - value: Income.Other Income.OtherInvestmentIncome - type: String - displayName: Other Investment Income - required: false - - value: Income.Other Income.OtherMiscellaneousIncome - type: String - displayName: Other Miscellaneous Income - required: false - - value: Income.Other Income.TaxExemptInterest - type: String - displayName: Tax Exempt Interest - required: false - - value: Income.Other Income.GainLossOnSaleOfFixedAssets - type: String - displayName: Gain Loss On Sale Of Fixed Assets - required: false - - value: Income.Other Income.GainLossOnSaleOfInvestments - type: String - displayName: Gain Loss On Sale Of Investments - required: false - - value: Income.Other Income.LossOnDisposalOfAssets - type: String - displayName: Loss On Disposal Of Assets - required: false - - value: Income.Other Income.OtherOperatingIncome - type: String - displayName: Other Operating Income - required: false - - value: Income.Other Income.UnrealisedLossOnSecuritiesNetOfTax - type: String - displayName: Unrealised Loss On Securities Net Of Tax - required: false - - value: Liability.Accounts Payable.AccountsPayable - type: String - displayName: Accounts Payable - required: false - - value: Liability.Accounts Payable.OutstandingDuesMicroSmallEnterprise - type: String - displayName: Outstanding Dues Micro Small Enterprise - required: false - - value: Liability.Accounts Payable.OutstandingDuesOtherThanMicroSmallEnterprise - type: String - displayName: Outstanding Dues Other Than Micro Small Enterprise - required: false - - value: Liability.Credit Card.CreditCard - type: String - displayName: Credit Card - required: false - - value: Liability.Long Term Liability.NotesPayable - type: String - displayName: Notes Payable - required: false - - value: Liability.Long Term Liability.OtherLongTermLiabilities - type: String - displayName: Other Long Term Liabilities - required: false - - value: Liability.Long Term Liability.ShareholderNotesPayable - type: String - displayName: Shareholder Notes Payable - required: false - - value: Liability.Long Term Liability.AccrualsAndDeferredIncome - type: String - displayName: Accruals And Deferred Income - required: false - - value: Liability.Long Term Liability.AccruedLongLermLiabilities - type: String - displayName: Accrued Long Lerm Liabilities - required: false - - value: Liability.Long Term Liability.AccruedVacationPayable - type: String - displayName: Accrued Vacation Payable - required: false - - value: Liability.Long Term Liability.BankLoans - type: String - displayName: Bank Loans - required: false - - value: Liability.Long Term Liability.DebtsRelatedToParticipatingInterests - type: String - displayName: Debts Related To Participating Interests - required: false - - value: Liability.Long Term Liability.DeferredTaxLiabilities - type: String - displayName: Deferred Tax Liabilities - required: false - - value: Liability.Long Term Liability.GovernmentAndOtherPublicAuthorities - type: String - displayName: Government And Other Public Authorities - required: false - - value: Liability.Long Term Liability.GroupAndAssociates - type: String - displayName: Group And Associates - required: false - - value: Liability.Long Term Liability.LiabilitiesRelatedToAssetsHeldForSale - type: String - displayName: Liabilities Related To Assets Held For Sale - required: false - - value: Liability.Long Term Liability.LongTermBorrowings - type: String - displayName: Long Term Borrowings - required: false - - value: Liability.Long Term Liability.LongTermDebit - type: String - displayName: Long Term Debit - required: false - - value: Liability.Long Term Liability.LongTermEmployeeBenefitObligations - type: String - displayName: Long Term Employee Benefit Obligations - required: false - - value: Liability.Long Term Liability.ObligationsUnderFinanceLeases - type: String - displayName: Obligations Under Finance Leases - required: false - - value: Liability.Long Term Liability.OtherLongTermProvisions - type: String - displayName: Other Long Term Provisions - required: false - - value: Liability.Long Term Liability.ProvisionForLiabilities - type: String - displayName: Provision For Liabilities - required: false - - value: Liability.Long Term Liability.ProvisionsNonCurrentLiabilities - type: String - displayName: Provisions Non Current Liabilities - required: false - - value: Liability.Long Term Liability.StaffAndRelatedLongTermLiabilityAccounts - type: String - displayName: Staff And Related Long Term Liability Accounts - required: false - - value: Liability.Other Current Liability.DirectDepositPayable - type: String - displayName: Direct Deposit Payable - required: false - - value: Liability.Other Current Liability.LineOfCredit - type: String - displayName: Line Of Credit - required: false - - value: Liability.Other Current Liability.LoanPayable - type: String - displayName: Loan Payable - required: false - - value: Liability.Other Current Liability.GlobalTaxPayable - type: String - displayName: Global Tax Payable - required: false - - value: Liability.Other Current Liability.GlobalTaxSuspense - type: String - displayName: Global Tax Suspense - required: false - - value: Liability.Other Current Liability.OtherCurrentLiabilities - type: String - displayName: Other Current Liabilities - required: false - - value: Liability.Other Current Liability.PayrollClearing - type: String - displayName: Payroll Clearing - required: false - - value: Liability.Other Current Liability.PayrollTaxPayable - type: String - displayName: Payroll Tax Payable - required: false - - value: Liability.Other Current Liability.PrepaidExpensesPayable - type: String - displayName: Prepaid Expenses Payable - required: false - - value: Liability.Other Current Liability.RentsInTrustLiability - type: String - displayName: Rents In Trust Liability - required: false - - value: Liability.Other Current Liability.TrustAccountsLiabilities - type: String - displayName: Trust Accounts Liabilities - required: false - - value: Liability.Other Current Liability.FederalIncomeTaxPayable - type: String - displayName: Federal Income Tax Payable - required: false - - value: Liability.Other Current Liability.InsurancePayable - type: String - displayName: Insurance Payable - required: false - - value: Liability.Other Current Liability.SalesTaxPayable - type: String - displayName: Sales Tax Payable - required: false - - value: Liability.Other Current Liability.StateLocalIncomeTaxPayable - type: String - displayName: State Local Income Tax Payable - required: false - - value: Liability.Other Current Liability.AccruedLiabilities - type: String - displayName: Accrued Liabilities - required: false - - value: Liability.Other Current Liability.CurrentLiabilities - type: String - displayName: Current Liabilities - required: false - - value: Liability.Other Current Liability.CurrentPortionEmployeeBenefitsObligations - type: String - displayName: Current Portion EmployeeBenefits Obligations - required: false - - value: Liability.Other Current Liability.CurrentPortionOfObligationsUnderFinanceLeases - type: String - displayName: Current Portion Of Obligations Under Finance Leases - required: false - - value: Liability.Other Current Liability.CurrentTaxLiability - type: String - displayName: Current Tax Liability - required: false - - value: Liability.Other Current Liability.DividendsPayable - type: String - displayName: Dividends Payable - required: false - - value: Liability.Other Current Liability.DutiesAndTaxes - type: String - displayName: Duties And Taxes - required: false - - value: Liability.Other Current Liability.InterestPayables - type: String - displayName: Interest Payables - required: false - - value: Liability.Other Current Liability.ProvisionForWarrantyObligations - type: String - displayName: Provision For Warranty Obligations - required: false - - value: Liability.Other Current Liability.ProvisionsCurrentLiabilities - type: String - displayName: Provisions Current Liabilities - required: false - - value: Liability.Other Current Liability.ShortTermBorrowings - type: String - displayName: Short Term Borrowings - required: false - - value: Liability.Other Current Liability.SocialSecurityAgencies - type: String - displayName: Social Security Agencies - required: false - - value: Liability.Other Current Liability.StaffAndRelatedLiabilityAccounts - type: String - displayName: Staff And Related Liability Accounts - required: false - - value: Liability.Other Current Liability.SundryDebtorsAndCreditors - type: String - displayName: Sundry Debtors And Creditors - required: false - - value: Liability.Other Current Liability.TradeAndOtherPayables - type: String - displayName: Trade And Other Payables - required: false - - value: Equity.Equity.OpeningBalanceEquity - type: String - displayName: Opening Balance Equity - required: false - - value: Equity.Equity.PartnersEquity - type: String - displayName: Partners Equity - required: false - - value: Equity.Equity.RetainedEarnings - type: String - displayName: Retained Earnings - required: false - - value: Equity.Equity.AccumulatedAdjustment - type: String - displayName: Accumulated Adjustment - required: false - - value: Equity.Equity.OwnersEquity - type: String - displayName: Owners Equity - required: false - - value: Equity.Equity.PaidInCapitalOrSurplus - type: String - displayName: Paid In Capital Or Surplus - required: false - - value: Equity.Equity.PartnerContributions - type: String - displayName: Partner Contributions - required: false - - value: Equity.Equity.PartnerDistributions - type: String - displayName: Partner Distributions - required: false - - value: Equity.Equity.PreferredStock - type: String - displayName: Preferred Stock - required: false - - value: Equity.Equity.CommonStock - type: String - displayName: Common Stock - required: false - - value: Equity.Equity.TreasuryStock - type: String - displayName: Treasury Stock - required: false - - value: Equity.Equity.EstimatedTaxes - type: String - displayName: Estimated Taxes - required: false - - value: Equity.Equity.Healthcare - type: String - displayName: Healthcare - required: false - - value: Equity.Equity.PersonalIncome - type: String - displayName: Personal Income - required: false - - value: Equity.Equity.PersonalExpense - type: String - displayName: Personal Expense - required: false - - value: Equity.Equity.AccumulatedOtherComprehensiveIncome - type: String - displayName: Accumulated Other Comprehensive Income - required: false - - value: Equity.Equity.CalledUpShareCapital - type: String - displayName: Called Up Share Capital - required: false - - value: Equity.Equity.CapitalReserves - type: String - displayName: Capital Reserves - required: false - - value: Equity.Equity.DividendDisbursed - type: String - displayName: Dividend Disbursed - required: false - - value: Equity.Equity.EquityInEarningsOfSubsiduaries - type: String - displayName: Equity In Earnings Of Subsiduaries - required: false - - value: Equity.Equity.InvestmentGrants - type: String - displayName: Investment Grants - required: false - - value: Equity.Equity.MoneyReceivedAgainstShareWarrants - type: String - displayName: Money Received Against Share Warrants - required: false - - value: Equity.Equity.OtherFreeReserves - type: String - displayName: Other Free Reserves - required: false - - value: Equity.Equity.ShareApplicationMoneyPendingAllotment - type: String - displayName: Share Application Money Pending Allotment - required: false - - value: Equity.Equity.ShareCapital - type: String - displayName: Share Capital - required: false - - value: Equity.Equity.Funds - type: String - displayName: Funds - required: false - required: true - required: true - Sage Business Cloud Accounting: - value: - type: Object - displayName: Nominal Account - description: Nominal Accounts are the categories a business uses to record transactions - properties: - name: - type: String - displayName: Name - description: Name of the account - required: true - validation: - warnings: [] - information: - - field: Name - details: Should not be longer than 200 characters. - nominalCode: - type: String - displayName: Nominal Code - description: The external reference given to each nominal account for a business - required: true - validation: - warnings: [] - information: - - field: NominalCode - details: Should be a number between 1 and 99999999. - fullyQualifiedCategory: - type: String - displayName: Fully Qualified Category - description: The full category of the account e.g. Liability.Current or Income.Revenue - options: - - value: SALES - type: String - displayName: Sales - required: false - - value: OTHER_INCOME - type: String - displayName: Other Income - required: false - - value: DIRECT_EXPENSES - type: String - displayName: Direct Expenses - required: false - - value: OVERHEADS - type: String - displayName: Overheads - required: false - - value: DEPRECIATION - type: String - displayName: Depreciation - required: false - - value: CURRENT_ASSETS - type: String - displayName: Current Assets - required: false - - value: FIXED_ASSETS - type: String - displayName: Fixed Assets - required: false - - value: FUTURE_ASSETS - type: String - displayName: Future Assets - required: false - - value: BANK - type: String - displayName: Bank - required: false - - value: CURRENT_LIABILITY - type: String - displayName: Current Liability - required: false - - value: FUTURE_LIABILITY - type: String - displayName: Future Liability - required: false - - value: EQUITY - type: String - displayName: Equity - required: false - - value: LINE_OF_CREDIT - type: String - displayName: Credit Card / Loan - required: false - required: true - required: true - Sage Intacct: - value: - type: Object - displayName: Nominal Account - description: Nominal Accounts are the categories a business uses to record transactions - properties: - nominalCode: - type: String - displayName: Nominal Code - description: The external reference given to each nominal account for a business - required: true - validation: - warnings: - - field: NominalCode - details: Must be unique within the entity. - - field: NominalCode - details: 'Must be at most 24 characters in length, although restrictions may vary between entities.' - information: [] - name: - type: String - displayName: Name - description: Name of the account - required: true - status: - type: String - displayName: Account Status - description: The status of the account - options: - - value: Active - type: String - displayName: Active - required: false - - value: Archived - type: String - displayName: Archived - required: false - required: true - type: - type: String - displayName: Account Type - description: 'The type, or base category, of the account' - options: - - value: Asset - type: String - displayName: Asset - required: false - - value: Equity - type: String - displayName: Equity - required: false - - value: Expense - type: String - displayName: Expense - required: false - - value: Income - type: String - displayName: Income - required: false - - value: Liability - type: String - displayName: Liability - required: false - required: true - fullyQualifiedCategory: - type: String - displayName: Fully Qualified Category - description: The full category of the account e.g. Liability.Current or Income.Revenue - required: true - validation: - warnings: [] - information: - - field: FullyQualifiedCategory - details: 'Any category that is part of the hierarchy of one of: ''Assets'', ''Equity'', ''Liabilities'', ''Total Expenses'' and ''Total Income'' is permitted.' - required: true - Sandbox: - value: - type: Object - displayName: Nominal Account - description: Nominal Accounts are the categories a business uses to record transactions - properties: - nominalCode: - type: String - displayName: Nominal Code - description: The external reference given to each nominal account for a business - required: true - name: - type: String - displayName: Name - description: Name of the account - required: true - description: - type: String - displayName: Description - description: Description of the account - required: true - fullyQualifiedCategory: - type: String - displayName: Fully Qualified Category - description: The full category of the account e.g. Liability.Current or Income.Revenue - required: true - fullyQualifiedName: - type: String - displayName: Fully Qualified Name - description: The full name of the account e.g. Liability.Current.VAT or Income.Revenue.Sales - required: true - currency: - type: String - displayName: Currency - description: The currency of the account - required: true - currentBalance: - type: Number - displayName: Current Balance - description: The current balance in the account - required: true - type: - type: String - displayName: Account Type - description: 'The type, or base category, of the account' - required: true - status: - type: String - displayName: Account Status - description: The status of the account - required: true - isBankAccount: - type: Boolean - displayName: Is Bank Account? - description: Confirms whether the nominal account represents a bank account or not - required: true - validDatatypeLinks: - type: Array - displayName: Valid Datatype Links - description: Describes which fields on other data types are valid links to this account in the originating system - properties: - property: - type: String - displayName: Property - description: The field on the source data type that other data types can link to - required: true - links: - type: Array - displayName: Links - description: 'A collection of absolute names of fields from other data types, e.g. Invoice.LineItems.AccountRef.Id' - required: true - required: true - metadata: - type: Object - displayName: Metadata - description: Miscellaneous data about the item - properties: - isDeleted: - type: Boolean - displayName: IsDeleted - description: A boolean to indicate whether the object has been deleted - required: true - required: true - required: true - Xero: - value: - type: Object - displayName: Nominal Account - description: Nominal Accounts are the categories a business uses to record transactions - properties: - nominalCode: - type: String - displayName: Nominal Code - description: Identifier for the nominal account. - required: true - validation: - warnings: - - field: NominalCode - details: Max length of 10 characters. - information: [] - name: - type: String - displayName: Name - description: Name of account as it appears in the chart of accounts or general ledger. - required: true - validation: - warnings: [] - information: - - field: Name - details: Payments are enabled to this account if the name ends in .PaymentsEnabled. - description: - type: String - displayName: Description - description: Description for the nominal account. - required: false - fullyQualifiedCategory: - type: String - displayName: Fully Qualified Category - description: Account type and category for nominal account. - options: - - value: Asset.Current - type: String - displayName: Current Asset - required: false - - value: Asset.Fixed - type: String - displayName: Fixed Asset - required: false - - value: Asset.Inventory - type: String - displayName: Inventory - required: false - - value: Asset.NonCurrent - type: String - displayName: Non-current Asset - required: false - - value: Asset.Prepayment - type: String - displayName: Prepayment - required: false - - value: Expense.DirectCosts - type: String - displayName: Direct Costs - required: false - - value: Expense.Expense - type: String - displayName: Expense - required: false - - value: Expense.Overhead - type: String - displayName: Overhead - required: false - - value: Expense.Superannuation - type: String - displayName: Superannuation - required: false - - value: Expense.Wages - type: String - displayName: Wages - required: false - - value: Income.Sales - type: String - displayName: Sales - required: false - - value: Income.Revenue - type: String - displayName: Revenue - required: false - - value: Income.Other - type: String - displayName: Other Income - required: false - - value: Liability.Current - type: String - displayName: Current Liability - required: false - - value: Liability.Depreciation - type: String - displayName: Depreciation - required: false - - value: Liability.Liability - type: String - displayName: Liability - required: false - - value: Liability.NonCurrent - type: String - displayName: Non Current Liability - required: false - - value: Liability.PayAsYouGo - type: String - displayName: Pay As You Go Liability - required: false - - value: Liability.Superannuation - type: String - displayName: Superannuation Liability - required: false - - value: Liability.WagesPayable - type: String - displayName: Wages Payable Liability - required: false - - value: Equity.Equity - type: String - displayName: Equity - required: false - required: true - required: true - '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' - operationId: get-create-chartOfAccounts-model - x-speakeasy-group: loan-writeback.accounts - description: |- - The *Get create account model* endpoint returns the expected data for the request payload when creating an [account](https://docs.codat.io/lending-api#/schemas/Account) for a given company and integration. - - [Accounts](https://docs.codat.io/lending-api#/schemas/Account) are the categories a business uses to record accounting transactions. - - **Integration-specific behavior** - - See the *response examples* for integration-specific indicative models. - '/companies/{companyId}/connections/{connectionId}/push/accounts': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - post: - tags: - - Loan writeback - summary: Create account - parameters: - - $ref: '#/components/parameters/timeoutInMinutes' - - $ref: '#/components/parameters/allowSyncOnPushComplete' - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/AccountingAccount/definitions/accountPrototype' - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/AccountingCreateAccountResponse' - examples: {} - '400': - $ref: '#/components/responses/BadRequest' - '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: |- - The *Create account* endpoint creates a new [account](https://docs.codat.io/lending-api#/schemas/Account) for a given company's connection. - - [Accounts](https://docs.codat.io/lending-api#/schemas/Account) are the categories a business uses to record accounting transactions. - - **Integration-specific behavior** - - Required data may vary by integration. To see what data to post, first call [Get create account model](https://docs.codat.io/lending-api#/operations/get-create-chartOfAccounts-model). - operationId: create-account - x-speakeasy-group: loan-writeback.accounts - '/companies/{companyId}/connections/{connectionId}/connectionInfo/bankFeedAccounts': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - post: - tags: - - Loan writeback - summary: Create source account - description: |- - The _Create Source Account_ endpoint allows you to create a representation of a bank account within Codat's domain. The company can then map the source account to an existing or new target account in their accounting software. - - > ### Versioning - > If you are integrating the Bank Feeds solution with Codat after August 1, 2024, please use the v2 version of the API, as detailed in the schema below. For integrations completed before August 1, 2024, select the v1 version from the schema dropdown below. - operationId: create-source-account - requestBody: - content: - application/json: - schema: - oneOf: - - $ref: '#/components/schemas/SourceAccountV2/definitions/sourceAccountV2Prototype' - - $ref: '#/components/schemas/SourceAccount/definitions/sourceAccountPrototype' - examples: - Version 2: - value: - id: acc-001 - accountName: account-081 - accountType: checking - accountNumber: '12345670' - routingInfo: - bankCode: 021001088 - type: bankcode - currency: GBP - balance: 99.99 - accountInfo: - description: account description 1 - nickname: account 123 - accountOpenDate: '2023-05-06' - availableBalance: 10 - modifiedDate: '2024-08-02T00:00:00.000Z' - Version 1: - value: - id: acc-002 - accountName: account-081 - sortCode: '123456' - accountType: Credit - accountNumber: '12345670' - currency: GBP - balance: 99.99 - modifiedDate: '2023-01-09T14:14:14.1057478Z' - responses: - '200': - description: Success - content: - application/json: - schema: - oneOf: - - $ref: '#/components/schemas/SourceAccountV2' - - $ref: '#/components/schemas/SourceAccount' - examples: {} - '400': - $ref: '#/components/responses/BadRequest' - '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' - x-speakeasy-group: loan-writeback.source-accounts - '/companies/{companyId}/connections/{connectionId}/bankFeedAccounts/mapping': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - get: - tags: - - Loan writeback - summary: List bank feed account mappings - description: "\uFEFFThe *List bank accounts* endpoint returns information about a source bank account and any current or potential target mapping accounts.\n\nA bank feed account mapping is a specified link between the source account (provided by the Codat user) and the target account (the end user's account in the underlying software).\n\n> **For custom builds only**\n> \n> Only use this endpoint if you are building your own account management UI." - operationId: get-bank-account-mapping - x-speakeasy-group: loan-writeback.source-accounts - x-speakeasy-name-override: list-mappings - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/BankFeedMapping/definitions/bankFeedMappings' - examples: - Example: - value: - - sourceAccountId: account-001 - status: pending - targetAccountOptions: - - name: Money Bank account - id: d21e25d6-98c5-4bfb-b469-105833bea3c8 - accountNumber: '789' - sortCode: '123456' - - name: Bank of Dave account - id: d06ff4b2-e4f2-4681-9841-014bd008cdab - accountNumber: '99887766' - sortCode: '998866' - - name: LuxLend account - id: c8f252fc-84f3-4a8b-ace8-ae99f41a81ae - accountNumber: '123456789' - sortCode: '123456' - sourceAccountName: account-001 - sourceAccountNumber: '12345670' - sourceBalance: 99.99 - sourceCurrency: GBP - '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' - post: - tags: - - Loan writeback - summary: Create bank feed account mapping - description: "\uFEFFThe *Create bank account mapping* endpoint creates a new mapping between a source bank account and a potential account in the accounting software (target account).\n\nA bank feed account mapping is a specified link between the source account (provided by the Codat user) and the target account (the end user's account in the underlying software).\n\nTo find valid target account options, first call the [List bank feed account mappings](https://docs.codat.io//bank-feeds-api#/operations/get-bank-account-mapping) endpoint.\n\n> **For custom builds only**\n>\n> Only use this endpoint if you are building your own account management UI.\n\n#### Account mapping variability\n\nThe method of mapping the source account to the target account varies depending on the accounting software your company uses.\n\n#### Mapping options:\n\n1. **API Mapping**: Integrate the mapping journey directly into your application for a seamless user experience.\n2. **Codat UI Mapping**: If you prefer a quicker setup, you can utilize Codat's provided user interface for mapping.\n3. **Accounting Platform Mapping**: For some accounting software, the mapping process must be conducted within the software itself.\n\n### Integration-specific behavior\n\n| Bank Feed Integration | API Mapping | Codat UI Mapping | Accounting Platform Mapping |\n| --------------------- | ----------- | ---------------- | --------------------------- |\n| Xero | ✅ | ✅ | |\n| FreeAgent | ✅ | ✅ | |\n| Oracle NetSuite | ✅ | ✅ | |\n| Exact Online (NL) | ✅ | ✅ | |\n| QuickBooks Online | | | ✅ |\n| Sage | | | ✅ |" - operationId: create-bank-account-mapping - x-speakeasy-group: loan-writeback.source-accounts - x-speakeasy-name-override: create-mapping - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/BankFeedBankAccountMapping' - examples: - Example: - value: - sourceAccountId: acc-002 - targetAccountId: account-081 - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/BankFeedBankAccountMappingResponse' - examples: {} - '400': - $ref: '#/components/responses/BadRequest' - '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' - '/companies/{companyId}/connections/{connectionId}/options/suppliers': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - get: - summary: Get create/update supplier model - tags: - - Loan writeback - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/PushOption' - examples: - Exact (Netherlands): - value: - type: Object - displayName: Supplier - description: A Supplier is a person or organisation that provides a product or service - properties: - supplierName: - type: String - displayName: Supplier Name - description: 'The name for the supplier, typically a company name' - required: true - emailAddress: - type: String - displayName: Email Address - description: The preferred email address the supplier should be contacted on - required: false - phone: - type: String - displayName: Phone - description: The preferred phone number the supplier should be contacted on - required: false - defaultCurrency: - type: String - displayName: Default Currency - description: The default currency for transactions recorded against the supplier - required: false - registrationNumber: - type: String - displayName: Registration Number - description: The supplier's registration number - required: false - validation: - warnings: - - field: RegistrationNumber - details: 'Only for Exact Netherlands, if provided, must be exactly 20 characters in length' - information: [] - taxNumber: - type: String - displayName: Tax Number - description: The supplier's tax number - required: false - contactName: - type: String - displayName: Contact Name - description: The name of the main contact for the supplier - required: false - addresses: - type: Array - displayName: Addresses - description: A collection of addresses associated to the supplier - properties: - country: - type: String - displayName: Country - description: The country for the address - required: false - validation: - warnings: - - field: Addresses.Country - details: Must be a 2-letter country code - information: [] - line1: - type: String - displayName: Line 1 - description: The first line of the address - required: false - line2: - type: String - displayName: Line 2 - description: The second line of the address - required: false - region: - type: String - displayName: Region - description: 'The fourth line of the address, or region' - required: false - city: - type: String - displayName: City - description: 'The third line of the address, or city' - required: false - postalCode: - type: String - displayName: Postal/Zip Code - description: The postal (or zip) code for the address - required: false - required: false - validation: - warnings: [] - information: - - field: Addresses - details: 'Only the first address provided will be considered, all other entries will be not be recorded' - required: true - Exact (UK): - value: - type: Object - displayName: Supplier - description: A Supplier is a person or organisation that provides a product or service - properties: - supplierName: - type: String - displayName: Supplier Name - description: 'The name for the supplier, typically a company name' - required: true - emailAddress: - type: String - displayName: Email Address - description: The preferred email address the supplier should be contacted on - required: false - phone: - type: String - displayName: Phone - description: The preferred phone number the supplier should be contacted on - required: false - defaultCurrency: - type: String - displayName: Default Currency - description: The default currency for transactions recorded against the supplier - required: false - registrationNumber: - type: String - displayName: Registration Number - description: The supplier's registration number - required: false - validation: - warnings: - - field: RegistrationNumber - details: 'Only for Exact Netherlands, if provided, must be exactly 20 characters in length' - information: [] - taxNumber: - type: String - displayName: Tax Number - description: The supplier's tax number - required: false - contactName: - type: String - displayName: Contact Name - description: The name of the main contact for the supplier - required: false - addresses: - type: Array - displayName: Addresses - description: A collection of addresses associated to the supplier - properties: - country: - type: String - displayName: Country - description: The country for the address - required: false - validation: - warnings: - - field: Addresses.Country - details: Must be a 2-letter country code - information: [] - line1: - type: String - displayName: Line 1 - description: The first line of the address - required: false - line2: - type: String - displayName: Line 2 - description: The second line of the address - required: false - region: - type: String - displayName: Region - description: 'The fourth line of the address, or region' - required: false - city: - type: String - displayName: City - description: 'The third line of the address, or city' - required: false - postalCode: - type: String - displayName: Postal/Zip Code - description: The postal (or zip) code for the address - required: false - required: false - validation: - warnings: [] - information: - - field: Addresses - details: 'Only the first address provided will be considered, all other entries will be not be recorded' - required: true - FreeAgent: - value: - type: Object - displayName: Supplier - description: A Supplier is a person or organisation that provides a product or service - properties: - supplierName: - type: String - displayName: Supplier Name - description: 'The name for the supplier, typically a company name' - required: true - status: - type: String - displayName: Supplier Status - description: The current state of the supplier - options: - - value: Active - type: String - displayName: Active - required: false - - value: Archived - type: String - displayName: Archived - required: false - required: true - addresses: - type: Array - displayName: Addresses - description: A collection of addresses associated to the supplier - properties: - line1: - type: String - displayName: Line 1 - description: The first line of the address - required: true - line2: - type: String - displayName: Line 2 - description: The second line of the address - required: false - city: - type: String - displayName: City - description: 'The third line of the address, or city' - required: false - region: - type: String - displayName: Region - description: 'The fourth line of the address, or region' - required: false - country: - type: String - displayName: Country - description: The country for the address - required: false - postalCode: - type: String - displayName: Postal/Zip Code - description: The postal (or zip) code for the address - required: false - required: false - validation: - warnings: [] - information: - - field: Addresses - details: Only one address may be specified - contactName: - type: String - displayName: Contact Name - description: The name of the main contact for the supplier - required: false - emailAddress: - type: String - displayName: Email Address - description: The preferred email address the supplier should be contacted on - required: false - taxNumber: - type: String - displayName: Tax Number - description: The supplier's tax number - required: false - required: true - MYOB AccountRight and Essentials: - value: - type: Object - displayName: Supplier - description: A Supplier is a person or organisation that provides a product or service - properties: - supplierName: - type: String - displayName: Supplier Name - description: 'The name for the supplier, typically a company name' - required: true - validation: - warnings: - - field: SupplierName - details: Must not have the part after the first name longer than 30 characters. - - field: SupplierName - details: Must not have its first part (i.e. the first name) longer than 20 characters. - information: - - field: SupplierName - details: Must be provided and must contain a First and Last name separated by a ' '(space). - emailAddress: - type: String - displayName: Email Address - description: The preferred email address the supplier should be contacted on - required: false - validation: - warnings: [] - information: - - field: EmailAddress - details: Must not be longer than 255 characters. - phone: - type: String - displayName: Phone - description: The preferred phone number the supplier should be contacted on - required: false - validation: - warnings: [] - information: - - field: Phone - details: Must not be longer than 21 characters. - taxNumber: - type: String - displayName: Tax Number - description: The supplier's tax number - required: false - validation: - warnings: [] - information: - - field: TaxNumber - details: Must not be longer than 19 characters. - registrationNumber: - type: String - displayName: Registration Number - description: The supplier's registration number - required: false - validation: - warnings: [] - information: - - field: RegistrationNumber - details: Must not be longer than 14 characters. - status: - type: String - displayName: Supplier Status - description: The current state of the supplier - options: - - value: Active - type: String - required: false - - value: Unknown - type: String - required: false - required: true - validation: - warnings: [] - information: - - field: Status - details: Must be provided. - addresses: - type: Array - displayName: Addresses - description: A collection of addresses associated to the supplier - properties: - line1: - type: String - displayName: Line 1 - description: The first line of the address - required: false - validation: - warnings: [] - information: - - field: Addresses.Line1 - details: Must not be longer than 127 characters. - line2: - type: String - displayName: Line 2 - description: The second line of the address - required: false - validation: - warnings: [] - information: - - field: Addresses.Line2 - details: Must not be longer than 127 characters. - city: - type: String - displayName: City - description: 'The third line of the address, or city' - required: false - validation: - warnings: [] - information: - - field: Addresses.City - details: Must not be longer than 255 characters. - region: - type: String - displayName: Region - description: 'The fourth line of the address, or region' - required: false - validation: - warnings: [] - information: - - field: Addresses.Region - details: Must not be longer than 255 characters. - postalCode: - type: String - displayName: Postal/Zip Code - description: The postal (or zip) code for the address - required: false - validation: - warnings: [] - information: - - field: Addresses.PostalCode - details: Must not be longer than 11 characters. - country: - type: String - displayName: Country - description: The country for the address - required: false - validation: - warnings: [] - information: - - field: Addresses.Country - details: Must not be longer than 255 characters. - required: true - validation: - warnings: - - field: Addresses - details: Must only have 5 address entries at most. - information: - - field: Addresses - details: Must be provided. - required: true - Oracle NetSuite: - value: - type: Object - displayName: Supplier - description: A Supplier is a person or organisation that provides a product or service - properties: - supplierName: - type: String - displayName: Supplier Name - description: 'The name for the supplier, typically a company name' - required: true - emailAddress: - type: String - displayName: Email Address - description: The preferred email address the supplier should be contacted on - required: false - defaultCurrency: - type: String - displayName: Default Currency - description: The default currency for transactions recorded against the supplier - required: false - phone: - type: String - displayName: Phone - description: The preferred phone number the supplier should be contacted on - required: false - taxNumber: - type: String - displayName: Tax Number - description: The supplier's tax number - required: false - status: - type: String - displayName: Supplier Status - description: The current state of the supplier - options: - - value: Active - type: String - displayName: Active - required: false - - value: Archived - type: String - displayName: Archived - required: false - required: true - addresses: - type: Array - displayName: Addresses - description: A collection of addresses associated to the supplier - properties: - type: - type: String - displayName: Address Type - description: The type of the address - options: - - value: Billing - type: String - displayName: Billing - required: false - - value: Delivery - type: String - displayName: Delivery - required: false - - value: Unknown - type: String - displayName: Unknown - required: false - required: true - line1: - type: String - displayName: Line 1 - description: The first line of the address - required: false - line2: - type: String - displayName: Line 2 - description: The second line of the address - required: false - city: - type: String - displayName: City - description: 'The third line of the address, or city' - required: false - region: - type: String - displayName: Region - description: 'The fourth line of the address, or region' - required: false - country: - type: String - displayName: Country - description: The country for the address - required: true - validation: - warnings: - - field: Addresses.Country - details: Must be a two letter Country ISO code - information: [] - postalCode: - type: String - displayName: Postal/Zip Code - description: The postal (or zip) code for the address - required: false - required: false - validation: - warnings: - - field: Addresses - details: Only one each of Billing and Delivery addresses can be provided - information: - - field: Addresses - details: Multiple addresses of Unknown type may be provided - required: true - QuickBooks Desktop: - value: - type: Object - displayName: Supplier - description: A Supplier is a person or organisation that provides a product or service - properties: - supplierName: - type: String - displayName: Supplier Name - description: 'The name for the supplier, typically a company name' - required: true - validation: - warnings: - - field: SupplierName - details: Max length of 41 characters. - information: [] - contactName: - type: String - displayName: Contact Name - description: The name of the main contact for the supplier - required: false - validation: - warnings: - - field: ContactName - details: Max length of 25 characters for first and last names - information: [] - phone: - type: String - displayName: Phone - description: The preferred phone number the supplier should be contacted on - required: false - emailAddress: - type: String - displayName: Email Address - description: The preferred email address the supplier should be contacted on - required: false - registrationNumber: - type: String - displayName: Registration Number - description: The supplier's registration number - required: false - taxNumber: - type: String - displayName: Tax Number - description: The supplier's tax number - required: false - validation: - warnings: - - field: TaxNumber - details: Max length of 30 characters. - information: [] - defaultCurrency: - type: String - displayName: Default Currency - description: The default currency for transactions recorded against the supplier - required: false - validation: - warnings: - - field: DefaultCurrency - details: 'Must be a three letter ISO code that matches an existing, active currency in the QuickBooks Desktop company' - - field: DefaultCurrency - details: Can only be set if Multicurrency is enabled within the QuickBooks Desktop company - information: - - field: DefaultCurrency - details: 'If not set, will default to the base currency of the QuickBooks Desktop company' - status: - type: String - displayName: Supplier Status - description: The current state of the supplier - options: - - value: Active - type: String - displayName: Active - required: false - - value: Archived - type: String - displayName: Archived - required: false - required: true - addresses: - type: Array - displayName: Addresses - description: A collection of addresses associated to the supplier - properties: - line1: - type: String - displayName: Line 1 - description: The first line of the address - required: false - validation: - warnings: - - field: Addresses.Line1 - details: Max length of 41 characters. - information: [] - line2: - type: String - displayName: Line 2 - description: The second line of the address - required: false - validation: - warnings: - - field: Addresses.Line2 - details: Max length of 41 characters. - information: [] - city: - type: String - displayName: City - description: 'The third line of the address, or city' - required: false - validation: - warnings: - - field: Addresses.City - details: Max length of 31 characters. - information: [] - region: - type: String - displayName: Region - description: 'The fourth line of the address, or region' - required: false - validation: - warnings: - - field: Addresses.Region - details: Max length of 21 characters. - information: [] - country: - type: String - displayName: Country - description: The country for the address - required: false - validation: - warnings: - - field: Addresses.Country - details: Max length of 31 characters. - information: [] - postalCode: - type: String - displayName: Postal/Zip Code - description: The postal (or zip) code for the address - required: false - validation: - warnings: - - field: Addresses.PostalCode - details: Max length of 13 characters. - information: [] - type: - type: String - displayName: Address Type - description: The type of the address - options: - - value: Billing - type: String - displayName: Billing Address - required: false - - value: Delivery - type: String - displayName: Delivery Address - required: false - required: true - validation: - warnings: [] - information: - - field: Addresses.Type - details: Only 1 address each of type(s) Billing/Delivery may be specified. - required: false - required: true - QuickBooks Online Sandbox: - value: - type: Object - displayName: Supplier - description: A Supplier is a person or organisation that provides a product or service - properties: - supplierName: - type: String - displayName: Supplier Name - description: 'The name for the supplier, typically a company name' - required: true - phone: - type: String - displayName: Phone - description: The preferred phone number the supplier should be contacted on - required: false - validation: - warnings: - - field: Phone - details: 'Country, area, and number are space separated' - information: [] - emailAddress: - type: String - displayName: Email Address - description: The preferred email address the supplier should be contacted on - required: false - registrationNumber: - type: String - displayName: Registration Number - description: The supplier's registration number - required: false - taxNumber: - type: String - displayName: Tax Number - description: The supplier's tax number - required: false - status: - type: String - displayName: Supplier Status - description: The current state of the supplier - options: - - value: Active - type: String - displayName: Active - required: false - - value: Archived - type: String - displayName: Archived - required: false - required: true - addresses: - type: Array - displayName: Addresses - description: A collection of addresses associated to the supplier - properties: - line1: - type: String - displayName: Line 1 - description: The first line of the address - required: false - validation: - warnings: - - field: Addresses.Line1 - details: Max length of 500 characters. - information: [] - line2: - type: String - displayName: Line 2 - description: The second line of the address - required: false - validation: - warnings: - - field: Addresses.Line2 - details: Max length of 500 characters. - information: [] - city: - type: String - displayName: City - description: 'The third line of the address, or city' - required: false - validation: - warnings: - - field: Addresses.City - details: Max length of 255 characters. - information: [] - region: - type: String - displayName: Region - description: 'The fourth line of the address, or region' - required: false - validation: - warnings: - - field: Addresses.Region - details: Max length of 255 characters. - information: [] - country: - type: String - displayName: Country - description: The country for the address - required: false - validation: - warnings: - - field: Addresses.Country - details: Max length of 50 characters. - information: [] - postalCode: - type: String - displayName: Postal/Zip Code - description: The postal (or zip) code for the address - required: false - validation: - warnings: - - field: Addresses.PostalCode - details: Only English alphabet characters are permitted. - - field: Addresses.PostalCode - details: Max length of 50 characters. - information: [] - type: - type: String - displayName: Address Type - description: The type of the address - options: - - value: Billing - type: String - displayName: Billing Address - required: false - required: true - required: false - defaultCurrency: - type: String - displayName: Default Currency - description: The default currency for transactions recorded against the supplier - required: false - required: true - QuickBooks Online: - value: - type: Object - displayName: Supplier - description: A Supplier is a person or organisation that provides a product or service - properties: - supplierName: - type: String - displayName: Supplier Name - description: 'The name for the supplier, typically a company name' - required: true - phone: - type: String - displayName: Phone - description: The preferred phone number the supplier should be contacted on - required: false - validation: - warnings: - - field: Phone - details: 'Country, area, and number are space separated' - information: [] - emailAddress: - type: String - displayName: Email Address - description: The preferred email address the supplier should be contacted on - required: false - registrationNumber: - type: String - displayName: Registration Number - description: The supplier's registration number - required: false - taxNumber: - type: String - displayName: Tax Number - description: The supplier's tax number - required: false - status: - type: String - displayName: Supplier Status - description: The current state of the supplier - options: - - value: Active - type: String - displayName: Active - required: false - - value: Archived - type: String - displayName: Archived - required: false - required: true - addresses: - type: Array - displayName: Addresses - description: A collection of addresses associated to the supplier - properties: - line1: - type: String - displayName: Line 1 - description: The first line of the address - required: false - validation: - warnings: - - field: Addresses.Line1 - details: Max length of 500 characters. - information: [] - line2: - type: String - displayName: Line 2 - description: The second line of the address - required: false - validation: - warnings: - - field: Addresses.Line2 - details: Max length of 500 characters. - information: [] - city: - type: String - displayName: City - description: 'The third line of the address, or city' - required: false - validation: - warnings: - - field: Addresses.City - details: Max length of 255 characters. - information: [] - region: - type: String - displayName: Region - description: 'The fourth line of the address, or region' - required: false - validation: - warnings: - - field: Addresses.Region - details: Max length of 255 characters. - information: [] - country: - type: String - displayName: Country - description: The country for the address - required: false - validation: - warnings: - - field: Addresses.Country - details: Max length of 50 characters. - information: [] - postalCode: - type: String - displayName: Postal/Zip Code - description: The postal (or zip) code for the address - required: false - validation: - warnings: - - field: Addresses.PostalCode - details: Only English alphabet characters are permitted. - - field: Addresses.PostalCode - details: Max length of 50 characters. - information: [] - type: - type: String - displayName: Address Type - description: The type of the address - options: - - value: Billing - type: String - displayName: Billing Address - required: false - required: true - required: false - defaultCurrency: - type: String - displayName: Default Currency - description: The default currency for transactions recorded against the supplier - required: false - required: true - Sage 50 (UK): - value: - type: Object - displayName: Supplier - description: A Supplier is a person or organisation that provides a product or service - properties: - id: - type: String - displayName: Id - description: ID of the supplier. - required: true - validation: - warnings: - - field: id - details: 'The supplier ID must be unique, contain no spaces and have a maximum of 8 characters.' - information: - - field: id - details: 'The supplier ID must be all Uppercase, if it is not, it will be converted to Uppercase before pushing.' - supplierName: - type: String - displayName: Name - description: Name of the supplier. - required: true - validation: - warnings: - - field: supplierName - details: The supplier name can have a maximum of 60 characters - information: [] - contactName: - type: String - displayName: Contact Name - description: The name of the main contact for the supplier. - required: false - validation: - warnings: - - field: contactName - details: The contact name can have a maximum of 30 characters - information: [] - emailAddress: - type: String - displayName: Email Address - description: The email address that the supplier may be contacted on. - required: false - phone: - type: String - displayName: Telephone - description: The telephone number that the supplier may be contacted on. - required: false - defaultCurrency: - type: String - displayName: Default Currency - description: 'If not provided, the currency will default to the company''s base currency.' - required: false - status: - type: String - displayName: Status - description: The status of the supplier. - options: - - value: Active - type: String - displayName: Active Status - required: false - required: false - addresses: - type: Array - displayName: Addresses - description: Contact addresses for the supplier. - properties: - line1: - type: String - displayName: Line 1 - description: Line 1 of the supplier address. - required: true - line2: - type: String - displayName: Line 2 - description: Line 2 of the supplier address. - required: false - city: - type: String - displayName: City - description: The city of the supplier address. - required: false - region: - type: String - displayName: Region - description: The region of the supplier address. - required: false - postalCode: - type: String - displayName: Postal code - description: Post or Zip code for the address. - required: false - type: - type: String - displayName: Type - description: The type of address as it related to the supplier. - options: - - value: Unknown - type: String - displayName: Unknown Address - required: false - required: false - validation: - warnings: [] - information: - - field: addresses.type - details: 'If Address type is not specified, it will default to type ''''Unknown''''' - required: false - validation: - warnings: - - field: addresses - details: Only one address can be included in the Addresses array. - information: [] - taxNumber: - type: String - displayName: Tax Number - description: Legal company registration identifier. - required: false - required: true - validation: - warnings: [] - information: - - details: 'Pushing to Sage 50 2015 (v21) or below is not supported. To enable push, please upgrade to at least Sage 50 2016 (v22) and re-sync the company.' - Sage Business Cloud Accounting: - value: - type: Object - displayName: Supplier - description: A Supplier is a person or organisation that provides a product or service - properties: - supplierName: - type: String - displayName: Supplier Name - description: 'The name for the supplier, typically a company name' - required: true - contactName: - type: String - displayName: Contact Name - description: The name of the main contact for the supplier - required: false - emailAddress: - type: String - displayName: Email Address - description: The preferred email address the supplier should be contacted on - required: false - phone: - type: String - displayName: Phone - description: The preferred phone number the supplier should be contacted on - required: false - taxNumber: - type: String - displayName: Tax Number - description: The supplier's tax number - required: false - addresses: - type: Array - displayName: Addresses - description: A collection of addresses associated to the supplier - properties: - line1: - type: String - displayName: Line 1 - description: The first line of the address - required: true - validation: - warnings: - - field: Addresses.Line1 - details: 'If you''re adding an address for this Supplier, you must also include the first line' - information: [] - line2: - type: String - displayName: Line 2 - description: The second line of the address - required: false - city: - type: String - displayName: City - description: 'The third line of the address, or city' - required: false - region: - type: String - displayName: Region - description: 'The fourth line of the address, or region' - required: false - postalCode: - type: String - displayName: Postal/Zip Code - description: The postal (or zip) code for the address - required: false - country: - type: String - displayName: Country - description: The country for the address - options: - - value: Afghanistan (AF) - type: String - displayName: Afghanistan (AF) - required: false - - value: Albania (AL) - type: String - displayName: Albania (AL) - required: false - - value: Algeria (DZ) - type: String - displayName: Algeria (DZ) - required: false - - value: Andorra (AD) - type: String - displayName: Andorra (AD) - required: false - - value: Angola (AO) - type: String - displayName: Angola (AO) - required: false - - value: Argentina (AR) - type: String - displayName: Argentina (AR) - required: false - - value: Armenia (AM) - type: String - displayName: Armenia (AM) - required: false - - value: Aruba (AW) - type: String - displayName: Aruba (AW) - required: false - - value: Australia (AU) - type: String - displayName: Australia (AU) - required: false - - value: Austria (AT) - type: String - displayName: Austria (AT) - required: false - - value: Azerbaijan (AZ) - type: String - displayName: Azerbaijan (AZ) - required: false - - value: Bahamas (BS) - type: String - displayName: Bahamas (BS) - required: false - - value: Bahrain (BH) - type: String - displayName: Bahrain (BH) - required: false - - value: Bangladesh (BD) - type: String - displayName: Bangladesh (BD) - required: false - - value: Barbados (BB) - type: String - displayName: Barbados (BB) - required: false - - value: Belarus (BY) - type: String - displayName: Belarus (BY) - required: false - - value: Belgium (BE) - type: String - displayName: Belgium (BE) - required: false - - value: Belize (BZ) - type: String - displayName: Belize (BZ) - required: false - - value: Benin (BJ) - type: String - displayName: Benin (BJ) - required: false - - value: Bermuda (BM) - type: String - displayName: Bermuda (BM) - required: false - - value: Bhutan (BT) - type: String - displayName: Bhutan (BT) - required: false - - value: Bolivia (BO) - type: String - displayName: Bolivia (BO) - required: false - - value: Bosnia and Herzegovina (BA) - type: String - displayName: Bosnia and Herzegovina (BA) - required: false - - value: Botswana (BW) - type: String - displayName: Botswana (BW) - required: false - - value: Brazil (BR) - type: String - displayName: Brazil (BR) - required: false - - value: British Virgin Islands (VG) - type: String - displayName: British Virgin Islands (VG) - required: false - - value: Brunei Darussalam (BN) - type: String - displayName: Brunei Darussalam (BN) - required: false - - value: Bulgaria (BG) - type: String - displayName: Bulgaria (BG) - required: false - - value: Burkina Faso (BF) - type: String - displayName: Burkina Faso (BF) - required: false - - value: Burundi (BI) - type: String - displayName: Burundi (BI) - required: false - - value: Cambodia (KH) - type: String - displayName: Cambodia (KH) - required: false - - value: Cameroon (CM) - type: String - displayName: Cameroon (CM) - required: false - - value: Canada (CA) - type: String - displayName: Canada (CA) - required: false - - value: Cape Verde (CV) - type: String - displayName: Cape Verde (CV) - required: false - - value: Cayman Islands (KY) - type: String - displayName: Cayman Islands (KY) - required: false - - value: Central African Republic (CF) - type: String - displayName: Central African Republic (CF) - required: false - - value: Chad (TD) - type: String - displayName: Chad (TD) - required: false - - value: Chile (CL) - type: String - displayName: Chile (CL) - required: false - - value: China (CN) - type: String - displayName: China (CN) - required: false - - value: Colombia (CO) - type: String - displayName: Colombia (CO) - required: false - - value: Comoros (KM) - type: String - displayName: Comoros (KM) - required: false - - value: Congo (CG) - type: String - displayName: Congo (CG) - required: false - - value: Costa Rica (CR) - type: String - displayName: Costa Rica (CR) - required: false - - value: Croatia (HR) - type: String - displayName: Croatia (HR) - required: false - - value: Cuba (CU) - type: String - displayName: Cuba (CU) - required: false - - value: Cura�ao (CW) - type: String - displayName: Cura�ao (CW) - required: false - - value: Cyprus (CY) - type: String - displayName: Cyprus (CY) - required: false - - value: Czech Republic (CZ) - type: String - displayName: Czech Republic (CZ) - required: false - - value: Democratic Republic of the Congo (CD) - type: String - displayName: Democratic Republic of the Congo (CD) - required: false - - value: Denmark (DK) - type: String - displayName: Denmark (DK) - required: false - - value: Djibouti (DJ) - type: String - displayName: Djibouti (DJ) - required: false - - value: Dominica (DM) - type: String - displayName: Dominica (DM) - required: false - - value: Dominican Republic (DO) - type: String - displayName: Dominican Republic (DO) - required: false - - value: East Timor (TP) - type: String - displayName: East Timor (TP) - required: false - - value: Ecuador (EC) - type: String - displayName: Ecuador (EC) - required: false - - value: Egypt (EG) - type: String - displayName: Egypt (EG) - required: false - - value: El Salvador (SV) - type: String - displayName: El Salvador (SV) - required: false - - value: Equatorial Guinea (GQ) - type: String - displayName: Equatorial Guinea (GQ) - required: false - - value: Eritrea (ER) - type: String - displayName: Eritrea (ER) - required: false - - value: Estonia (EE) - type: String - displayName: Estonia (EE) - required: false - - value: Ethiopia (ET) - type: String - displayName: Ethiopia (ET) - required: false - - value: Falkland Islands (Malvinas) (FK) - type: String - displayName: Falkland Islands (Malvinas) (FK) - required: false - - value: Federated States of Micronesia (FM) - type: String - displayName: Federated States of Micronesia (FM) - required: false - - value: Fiji (FJ) - type: String - displayName: Fiji (FJ) - required: false - - value: Finland (FI) - type: String - displayName: Finland (FI) - required: false - - value: France (FR) - type: String - displayName: France (FR) - required: false - - value: French Polynesia (PF) - type: String - displayName: French Polynesia (PF) - required: false - - value: Gabon (GA) - type: String - displayName: Gabon (GA) - required: false - - value: Gambia (GM) - type: String - displayName: Gambia (GM) - required: false - - value: Georgia (GE) - type: String - displayName: Georgia (GE) - required: false - - value: Germany (DE) - type: String - displayName: Germany (DE) - required: false - - value: Ghana (GH) - type: String - displayName: Ghana (GH) - required: false - - value: Gibraltar (GI) - type: String - displayName: Gibraltar (GI) - required: false - - value: Greece (GR) - type: String - displayName: Greece (GR) - required: false - - value: Greenland (GL) - type: String - displayName: Greenland (GL) - required: false - - value: Grenada (GD) - type: String - displayName: Grenada (GD) - required: false - - value: Guadaloupe (GP) - type: String - displayName: Guadaloupe (GP) - required: false - - value: Guam (GU) - type: String - displayName: Guam (GU) - required: false - - value: Guatemala (GT) - type: String - displayName: Guatemala (GT) - required: false - - value: Guernsey (GG) - type: String - displayName: Guernsey (GG) - required: false - - value: Guinea (GN) - type: String - displayName: Guinea (GN) - required: false - - value: Guinea-Bissau (GW) - type: String - displayName: Guinea-Bissau (GW) - required: false - - value: Guyana (GY) - type: String - displayName: Guyana (GY) - required: false - - value: Haiti (HT) - type: String - displayName: Haiti (HT) - required: false - - value: Honduras (HN) - type: String - displayName: Honduras (HN) - required: false - - value: Hong Kong (HK) - type: String - displayName: Hong Kong (HK) - required: false - - value: Hungary (HU) - type: String - displayName: Hungary (HU) - required: false - - value: Iceland (IS) - type: String - displayName: Iceland (IS) - required: false - - value: India (IN) - type: String - displayName: India (IN) - required: false - - value: Indonesia (ID) - type: String - displayName: Indonesia (ID) - required: false - - value: Iran (IR) - type: String - displayName: Iran (IR) - required: false - - value: Iraq (IQ) - type: String - displayName: Iraq (IQ) - required: false - - value: Ireland (IE) - type: String - displayName: Ireland (IE) - required: false - - value: Israel (IL) - type: String - displayName: Israel (IL) - required: false - - value: Italy (IT) - type: String - displayName: Italy (IT) - required: false - - value: Ivory Coast (CI) - type: String - displayName: Ivory Coast (CI) - required: false - - value: Jamaica (JM) - type: String - displayName: Jamaica (JM) - required: false - - value: Japan (JP) - type: String - displayName: Japan (JP) - required: false - - value: Jersey (JE) - type: String - displayName: Jersey (JE) - required: false - - value: Jordan (JO) - type: String - displayName: Jordan (JO) - required: false - - value: Kazakhstan (KZ) - type: String - displayName: Kazakhstan (KZ) - required: false - - value: Kenya (KE) - type: String - displayName: Kenya (KE) - required: false - - value: Kuwait (KW) - type: String - displayName: Kuwait (KW) - required: false - - value: Kyrgyzstan (KG) - type: String - displayName: Kyrgyzstan (KG) - required: false - - value: Laos (LA) - type: String - displayName: Laos (LA) - required: false - - value: Latvia (LV) - type: String - displayName: Latvia (LV) - required: false - - value: Lebanon (LB) - type: String - displayName: Lebanon (LB) - required: false - - value: Lesotho (LS) - type: String - displayName: Lesotho (LS) - required: false - - value: Liberia (LR) - type: String - displayName: Liberia (LR) - required: false - - value: Libya (LY) - type: String - displayName: Libya (LY) - required: false - - value: Liechtenstein (LI) - type: String - displayName: Liechtenstein (LI) - required: false - - value: Lithuania (LT) - type: String - displayName: Lithuania (LT) - required: false - - value: Luxembourg (LU) - type: String - displayName: Luxembourg (LU) - required: false - - value: Macau (MO) - type: String - displayName: Macau (MO) - required: false - - value: Macedonia (MK) - type: String - displayName: Macedonia (MK) - required: false - - value: Madagascar (MG) - type: String - displayName: Madagascar (MG) - required: false - - value: Malawi (MW) - type: String - displayName: Malawi (MW) - required: false - - value: Malaysia (MY) - type: String - displayName: Malaysia (MY) - required: false - - value: Maldives (MV) - type: String - displayName: Maldives (MV) - required: false - - value: Mali (ML) - type: String - displayName: Mali (ML) - required: false - - value: Malta (MT) - type: String - displayName: Malta (MT) - required: false - - value: Mauritania (MR) - type: String - displayName: Mauritania (MR) - required: false - - value: Mauritius (MU) - type: String - displayName: Mauritius (MU) - required: false - - value: Mexico (MX) - type: String - displayName: Mexico (MX) - required: false - - value: Moldova (MD) - type: String - displayName: Moldova (MD) - required: false - - value: Monaco (MC) - type: String - displayName: Monaco (MC) - required: false - - value: Mongolia (MN) - type: String - displayName: Mongolia (MN) - required: false - - value: Montenegro (ME) - type: String - displayName: Montenegro (ME) - required: false - - value: Morocco (MA) - type: String - displayName: Morocco (MA) - required: false - - value: Mozambique (MZ) - type: String - displayName: Mozambique (MZ) - required: false - - value: Myanmar (MM) - type: String - displayName: Myanmar (MM) - required: false - - value: Namibia (NA) - type: String - displayName: Namibia (NA) - required: false - - value: Nepal (NP) - type: String - displayName: Nepal (NP) - required: false - - value: Netherlands (NL) - type: String - displayName: Netherlands (NL) - required: false - - value: Netherlands Antilles (AN) - type: String - displayName: Netherlands Antilles (AN) - required: false - - value: New Caledonia (NC) - type: String - displayName: New Caledonia (NC) - required: false - - value: New Zealand (NZ) - type: String - displayName: New Zealand (NZ) - required: false - - value: Nicaragua (NI) - type: String - displayName: Nicaragua (NI) - required: false - - value: Niger (NE) - type: String - displayName: Niger (NE) - required: false - - value: Nigeria (NG) - type: String - displayName: Nigeria (NG) - required: false - - value: North Korea (KP) - type: String - displayName: North Korea (KP) - required: false - - value: Norway (NO) - type: String - displayName: Norway (NO) - required: false - - value: Oman (OM) - type: String - displayName: Oman (OM) - required: false - - value: Pakistan (PK) - type: String - displayName: Pakistan (PK) - required: false - - value: Panama (PA) - type: String - displayName: Panama (PA) - required: false - - value: Papua New Guinea (PG) - type: String - displayName: Papua New Guinea (PG) - required: false - - value: Paraguay (PY) - type: String - displayName: Paraguay (PY) - required: false - - value: Peru (PE) - type: String - displayName: Peru (PE) - required: false - - value: Philippines (PH) - type: String - displayName: Philippines (PH) - required: false - - value: Poland (PL) - type: String - displayName: Poland (PL) - required: false - - value: Portugal (PT) - type: String - displayName: Portugal (PT) - required: false - - value: Puerto Rico (PR) - type: String - displayName: Puerto Rico (PR) - required: false - - value: Qatar (QA) - type: String - displayName: Qatar (QA) - required: false - - value: Romania (RO) - type: String - displayName: Romania (RO) - required: false - - value: Russia (RU) - type: String - displayName: Russia (RU) - required: false - - value: Rwanda (RW) - type: String - displayName: Rwanda (RW) - required: false - - value: Saint Kitts and Nevis (KN) - type: String - displayName: Saint Kitts and Nevis (KN) - required: false - - value: Saint Pierre and Miquelon (PM) - type: String - displayName: Saint Pierre and Miquelon (PM) - required: false - - value: Samoa (WS) - type: String - displayName: Samoa (WS) - required: false - - value: San Marino (SM) - type: String - displayName: San Marino (SM) - required: false - - value: Sao Tome and Principe (ST) - type: String - displayName: Sao Tome and Principe (ST) - required: false - - value: Saudi Arabia (SA) - type: String - displayName: Saudi Arabia (SA) - required: false - - value: Senegal (SN) - type: String - displayName: Senegal (SN) - required: false - - value: Serbia (RS) - type: String - displayName: Serbia (RS) - required: false - - value: Seychelles (SC) - type: String - displayName: Seychelles (SC) - required: false - - value: Sierra Leone (SL) - type: String - displayName: Sierra Leone (SL) - required: false - - value: Singapore (SG) - type: String - displayName: Singapore (SG) - required: false - - value: Slovakia (SK) - type: String - displayName: Slovakia (SK) - required: false - - value: Slovenia (SI) - type: String - displayName: Slovenia (SI) - required: false - - value: Solomon Islands (SB) - type: String - displayName: Solomon Islands (SB) - required: false - - value: Somalia (SO) - type: String - displayName: Somalia (SO) - required: false - - value: South Africa (ZA) - type: String - displayName: South Africa (ZA) - required: false - - value: South Korea (KR) - type: String - displayName: South Korea (KR) - required: false - - value: Spain (ES) - type: String - displayName: Spain (ES) - required: false - - value: Sri Lanka (LK) - type: String - displayName: Sri Lanka (LK) - required: false - - value: St. Lucia (LC) - type: String - displayName: St. Lucia (LC) - required: false - - value: Sudan (SD) - type: String - displayName: Sudan (SD) - required: false - - value: Surinam (SR) - type: String - displayName: Surinam (SR) - required: false - - value: Swaziland (SZ) - type: String - displayName: Swaziland (SZ) - required: false - - value: Sweden (SE) - type: String - displayName: Sweden (SE) - required: false - - value: Switzerland (CH) - type: String - displayName: Switzerland (CH) - required: false - - value: Syria (SY) - type: String - displayName: Syria (SY) - required: false - - value: Taiwan (TW) - type: String - displayName: Taiwan (TW) - required: false - - value: Tajikistan (TJ) - type: String - displayName: Tajikistan (TJ) - required: false - - value: Tanzania (TZ) - type: String - displayName: Tanzania (TZ) - required: false - - value: Thailand (TH) - type: String - displayName: Thailand (TH) - required: false - - value: Togo (TG) - type: String - displayName: Togo (TG) - required: false - - value: Tonga (TO) - type: String - displayName: Tonga (TO) - required: false - - value: Trinidad and Tobago (TT) - type: String - displayName: Trinidad and Tobago (TT) - required: false - - value: Tunisia (TN) - type: String - displayName: Tunisia (TN) - required: false - - value: Turkey (TR) - type: String - displayName: Turkey (TR) - required: false - - value: Turkmenistan (TM) - type: String - displayName: Turkmenistan (TM) - required: false - - value: Tuvalu (TV) - type: String - displayName: Tuvalu (TV) - required: false - - value: Uganda (UG) - type: String - displayName: Uganda (UG) - required: false - - value: Ukraine (UA) - type: String - displayName: Ukraine (UA) - required: false - - value: United Arab Emirates (AE) - type: String - displayName: United Arab Emirates (AE) - required: false - - value: United Kingdom (GB) - type: String - displayName: United Kingdom (GB) - required: false - - value: United States (US) - type: String - displayName: United States (US) - required: false - - value: Uruguay (UY) - type: String - displayName: Uruguay (UY) - required: false - - value: Uzbekistan (UZ) - type: String - displayName: Uzbekistan (UZ) - required: false - - value: Vanuatu (VU) - type: String - displayName: Vanuatu (VU) - required: false - - value: Venezuela (VE) - type: String - displayName: Venezuela (VE) - required: false - - value: Vietnam (VN) - type: String - displayName: Vietnam (VN) - required: false - - value: Virgin Islands U.S. (VI) - type: String - displayName: Virgin Islands U.S. (VI) - required: false - - value: Western Sahara (EH) - type: String - displayName: Western Sahara (EH) - required: false - - value: Yemen (YE) - type: String - displayName: Yemen (YE) - required: false - - value: Zaire (ZR) - type: String - displayName: Zaire (ZR) - required: false - - value: Zambia (ZM) - type: String - displayName: Zambia (ZM) - required: false - - value: Zimbabwe (ZW) - type: String - displayName: Zimbabwe (ZW) - required: false - required: false - required: false - validation: - warnings: [] - information: - - field: Addresses - details: Can contain a maximum of one address - required: true - Sage Intacct: - value: - type: Object - displayName: Supplier - description: A Supplier is a person or organisation that provides a product or service - properties: - supplierName: - type: String - displayName: Supplier Name - description: 'The name for the supplier, typically a company name' - required: true - validation: - warnings: - - field: SupplierName - details: Must be between 1 and 100 characters - information: [] - contactName: - type: String - displayName: Contact Name - description: The name of the main contact for the supplier - required: true - validation: - warnings: - - field: ContactName - details: Must be between 1 and 200 characters - information: [] - status: - type: String - displayName: Supplier Status - description: The current state of the supplier - options: - - value: Active - type: String - displayName: Active - required: false - - value: Archived - type: String - displayName: Archived - required: false - required: true - phone: - type: String - displayName: Phone - description: The preferred phone number the supplier should be contacted on - required: false - validation: - warnings: - - field: Phone - details: Must be no greater than 30 characters - information: [] - emailAddress: - type: String - displayName: Email Address - description: The preferred email address the supplier should be contacted on - required: false - validation: - warnings: - - field: EmailAddress - details: Must be no greater than 200 characters - information: [] - taxNumber: - type: String - displayName: Tax Number - description: The supplier's tax number - required: false - validation: - warnings: - - field: TaxNumber - details: Must be no greater than 20 characters - information: [] - registrationNumber: - type: String - displayName: Registration Number - description: The supplier's registration number - required: false - validation: - warnings: - - field: RegistrationNumber - details: Must be no greater than 100 characters - information: [] - defaultCurrency: - type: String - displayName: Default Currency - description: The default currency for transactions recorded against the supplier - options: - - value: AUD - type: String - displayName: Australian Dollar - required: false - - value: CAD - type: String - displayName: Canadian Dollar - required: false - - value: GBP - type: String - displayName: Pound Sterling - required: false - - value: USD - type: String - displayName: US Dollar - required: false - - value: ZAR - type: String - displayName: Rand - required: false - required: false - addresses: - type: Array - displayName: Addresses - description: A collection of addresses associated to the supplier - properties: - line1: - type: String - displayName: Line 1 - description: The first line of the address - required: false - validation: - warnings: - - field: Addresses.Line1 - details: Must be no greater than 200 characters - information: [] - line2: - type: String - displayName: Line 2 - description: The second line of the address - required: false - validation: - warnings: - - field: Addresses.Line2 - details: Must be no greater than 200 characters - information: [] - city: - type: String - displayName: City - description: 'The third line of the address, or city' - required: false - validation: - warnings: - - field: Addresses.City - details: Must be no greater than 80 characters - information: [] - region: - type: String - displayName: Region - description: 'The fourth line of the address, or region' - required: false - validation: - warnings: - - field: Addresses.Region - details: Must be no greater than 40 characters - information: [] - postalCode: - type: String - displayName: Postal/Zip Code - description: The postal (or zip) code for the address - required: false - validation: - warnings: - - field: Addresses.PostalCode - details: Must be no greater than 30 characters - information: [] - country: - type: String - displayName: Country - description: The country for the address - options: - - value: United States - type: String - displayName: United States - required: false - - value: Afghanistan - type: String - displayName: Afghanistan - required: false - - value: Aland Islands - type: String - displayName: Aland Islands - required: false - - value: Albania - type: String - displayName: Albania - required: false - - value: Algeria - type: String - displayName: Algeria - required: false - - value: American Samoa - type: String - displayName: American Samoa - required: false - - value: Andorra - type: String - displayName: Andorra - required: false - - value: Angola - type: String - displayName: Angola - required: false - - value: Anguilla - type: String - displayName: Anguilla - required: false - - value: Antarctica - type: String - displayName: Antarctica - required: false - - value: Antigua and Barbuda - type: String - displayName: Antigua and Barbuda - required: false - - value: Argentina - type: String - displayName: Argentina - required: false - - value: Armenia - type: String - displayName: Armenia - required: false - - value: Aruba - type: String - displayName: Aruba - required: false - - value: Australia - type: String - displayName: Australia - required: false - - value: Austria - type: String - displayName: Austria - required: false - - value: Azerbaijan - type: String - displayName: Azerbaijan - required: false - - value: Bahamas - type: String - displayName: Bahamas - required: false - - value: Bahrain - type: String - displayName: Bahrain - required: false - - value: Bangladesh - type: String - displayName: Bangladesh - required: false - - value: Barbados - type: String - displayName: Barbados - required: false - - value: Belarus - type: String - displayName: Belarus - required: false - - value: Belgium - type: String - displayName: Belgium - required: false - - value: Belize - type: String - displayName: Belize - required: false - - value: Benin - type: String - displayName: Benin - required: false - - value: Bermuda - type: String - displayName: Bermuda - required: false - - value: Bhutan - type: String - displayName: Bhutan - required: false - - value: Bolivia - type: String - displayName: Bolivia - required: false - - value: 'Bonaire, Sint Eustatius and Saba' - type: String - displayName: 'Bonaire, Sint Eustatius and Saba' - required: false - - value: Bosnia and Herzegovina - type: String - displayName: Bosnia and Herzegovina - required: false - - value: Botswana - type: String - displayName: Botswana - required: false - - value: Bouvet Island - type: String - displayName: Bouvet Island - required: false - - value: Brazil - type: String - displayName: Brazil - required: false - - value: British Indian Ocean Territory - type: String - displayName: British Indian Ocean Territory - required: false - - value: Brunei Darussalam - type: String - displayName: Brunei Darussalam - required: false - - value: Bulgaria - type: String - displayName: Bulgaria - required: false - - value: Burkina Faso - type: String - displayName: Burkina Faso - required: false - - value: Burundi - type: String - displayName: Burundi - required: false - - value: Cambodia - type: String - displayName: Cambodia - required: false - - value: Cameroon - type: String - displayName: Cameroon - required: false - - value: Canada - type: String - displayName: Canada - required: false - - value: Cape Verde - type: String - displayName: Cape Verde - required: false - - value: Cayman Islands - type: String - displayName: Cayman Islands - required: false - - value: Central African Republic - type: String - displayName: Central African Republic - required: false - - value: Chad - type: String - displayName: Chad - required: false - - value: Chile - type: String - displayName: Chile - required: false - - value: China - type: String - displayName: China - required: false - - value: Christmas Island - type: String - displayName: Christmas Island - required: false - - value: Cocos (Keeling) Islands - type: String - displayName: Cocos (Keeling) Islands - required: false - - value: Colombia - type: String - displayName: Colombia - required: false - - value: Comoros - type: String - displayName: Comoros - required: false - - value: Congo - type: String - displayName: Congo - required: false - - value: 'Congo, Democratic Republic' - type: String - displayName: 'Congo, Democratic Republic' - required: false - - value: Cook Islands - type: String - displayName: Cook Islands - required: false - - value: Costa Rica - type: String - displayName: Costa Rica - required: false - - value: C�te d'Ivoire - type: String - displayName: C�te d'Ivoire - required: false - - value: Croatia - type: String - displayName: Croatia - required: false - - value: Cuba - type: String - displayName: Cuba - required: false - - value: Cura�ao - type: String - displayName: Cura�ao - required: false - - value: Cyprus - type: String - displayName: Cyprus - required: false - - value: Czech Republic - type: String - displayName: Czech Republic - required: false - - value: Denmark - type: String - displayName: Denmark - required: false - - value: Djibouti - type: String - displayName: Djibouti - required: false - - value: Dominica - type: String - displayName: Dominica - required: false - - value: Dominican Republic - type: String - displayName: Dominican Republic - required: false - - value: Ecuador - type: String - displayName: Ecuador - required: false - - value: Egypt - type: String - displayName: Egypt - required: false - - value: El Salvador - type: String - displayName: El Salvador - required: false - - value: Equatorial Guinea - type: String - displayName: Equatorial Guinea - required: false - - value: Eritrea - type: String - displayName: Eritrea - required: false - - value: Estonia - type: String - displayName: Estonia - required: false - - value: Eswatini - type: String - displayName: Eswatini - required: false - - value: Ethiopia - type: String - displayName: Ethiopia - required: false - - value: Falkland Islands (Malvinas - type: String - displayName: Falkland Islands (Malvinas - required: false - - value: Faroe Islands - type: String - displayName: Faroe Islands - required: false - - value: Fiji - type: String - displayName: Fiji - required: false - - value: Finland - type: String - displayName: Finland - required: false - - value: France - type: String - displayName: France - required: false - - value: French Guiana - type: String - displayName: French Guiana - required: false - - value: French Polynesia - type: String - displayName: French Polynesia - required: false - - value: French Southern Territories - type: String - displayName: French Southern Territories - required: false - - value: Gabon - type: String - displayName: Gabon - required: false - - value: Gambia - type: String - displayName: Gambia - required: false - - value: Georgia - type: String - displayName: Georgia - required: false - - value: Germany - type: String - displayName: Germany - required: false - - value: Ghana - type: String - displayName: Ghana - required: false - - value: Gibraltar - type: String - displayName: Gibraltar - required: false - - value: Greece - type: String - displayName: Greece - required: false - - value: Greenland - type: String - displayName: Greenland - required: false - - value: Grenada - type: String - displayName: Grenada - required: false - - value: Guadeloupe - type: String - displayName: Guadeloupe - required: false - - value: Guam - type: String - displayName: Guam - required: false - - value: Guatemala - type: String - displayName: Guatemala - required: false - - value: Guernsey - type: String - displayName: Guernsey - required: false - - value: Guinea - type: String - displayName: Guinea - required: false - - value: Guinea-Bissau - type: String - displayName: Guinea-Bissau - required: false - - value: Guyana - type: String - displayName: Guyana - required: false - - value: Haiti - type: String - displayName: Haiti - required: false - - value: Heard Is. & Mcdonald Islands - type: String - displayName: Heard Is. & Mcdonald Islands - required: false - - value: Honduras - type: String - displayName: Honduras - required: false - - value: Hong Kong - type: String - displayName: Hong Kong - required: false - - value: Hungary - type: String - displayName: Hungary - required: false - - value: Iceland - type: String - displayName: Iceland - required: false - - value: India - type: String - displayName: India - required: false - - value: Indonesia - type: String - displayName: Indonesia - required: false - - value: 'Iran, Islamic Republic of' - type: String - displayName: 'Iran, Islamic Republic of' - required: false - - value: Iraq - type: String - displayName: Iraq - required: false - - value: Ireland - type: String - displayName: Ireland - required: false - - value: Isle of Man - type: String - displayName: Isle of Man - required: false - - value: Israel - type: String - displayName: Israel - required: false - - value: Italy - type: String - displayName: Italy - required: false - - value: Jamaica - type: String - displayName: Jamaica - required: false - - value: Japan - type: String - displayName: Japan - required: false - - value: Jersey - type: String - displayName: Jersey - required: false - - value: Jordan - type: String - displayName: Jordan - required: false - - value: Kazakhstan - type: String - displayName: Kazakhstan - required: false - - value: Kenya - type: String - displayName: Kenya - required: false - - value: Kiribati - type: String - displayName: Kiribati - required: false - - value: 'Korea, Republic of' - type: String - displayName: 'Korea, Republic of' - required: false - - value: 'Korea, Demo. People''s Rep' - type: String - displayName: 'Korea, Demo. People''s Rep' - required: false - - value: Kosovo - type: String - displayName: Kosovo - required: false - - value: Kuwait - type: String - displayName: Kuwait - required: false - - value: Kyrgyzstan - type: String - displayName: Kyrgyzstan - required: false - - value: Lao - type: String - displayName: Lao - required: false - - value: Latvia - type: String - displayName: Latvia - required: false - - value: Lebanon - type: String - displayName: Lebanon - required: false - - value: Lesotho - type: String - displayName: Lesotho - required: false - - value: Liberia - type: String - displayName: Liberia - required: false - - value: Libyan Arab Jamahiriya - type: String - displayName: Libyan Arab Jamahiriya - required: false - - value: Liechtenstein - type: String - displayName: Liechtenstein - required: false - - value: Lithuania - type: String - displayName: Lithuania - required: false - - value: Luxembourg - type: String - displayName: Luxembourg - required: false - - value: Macao - type: String - displayName: Macao - required: false - - value: Macedonia - type: String - displayName: Macedonia - required: false - - value: Madagascar - type: String - displayName: Madagascar - required: false - - value: Malawi - type: String - displayName: Malawi - required: false - - value: Malaysia - type: String - displayName: Malaysia - required: false - - value: Maldives - type: String - displayName: Maldives - required: false - - value: Mali - type: String - displayName: Mali - required: false - - value: Malta - type: String - displayName: Malta - required: false - - value: Marshall Islands - type: String - displayName: Marshall Islands - required: false - - value: Martinique - type: String - displayName: Martinique - required: false - - value: Mauritania - type: String - displayName: Mauritania - required: false - - value: Mauritius - type: String - displayName: Mauritius - required: false - - value: Mayotte - type: String - displayName: Mayotte - required: false - - value: Mexico - type: String - displayName: Mexico - required: false - - value: Micronesia - type: String - displayName: Micronesia - required: false - - value: 'Moldova, Republic of' - type: String - displayName: 'Moldova, Republic of' - required: false - - value: Monaco - type: String - displayName: Monaco - required: false - - value: Mongolia - type: String - displayName: Mongolia - required: false - - value: Montenegro - type: String - displayName: Montenegro - required: false - - value: Montserrat - type: String - displayName: Montserrat - required: false - - value: Morocco - type: String - displayName: Morocco - required: false - - value: Mozambique - type: String - displayName: Mozambique - required: false - - value: Myanmar - type: String - displayName: Myanmar - required: false - - value: Namibia - type: String - displayName: Namibia - required: false - - value: Nauru - type: String - displayName: Nauru - required: false - - value: Nepal - type: String - displayName: Nepal - required: false - - value: Netherlands - type: String - displayName: Netherlands - required: false - - value: Netherlands Antilles - type: String - displayName: Netherlands Antilles - required: false - - value: New Caledonia - type: String - displayName: New Caledonia - required: false - - value: New Zealand - type: String - displayName: New Zealand - required: false - - value: Nicaragua - type: String - displayName: Nicaragua - required: false - - value: Niger - type: String - displayName: Niger - required: false - - value: Nigeria - type: String - displayName: Nigeria - required: false - - value: Niue - type: String - displayName: Niue - required: false - - value: Norfolk Island - type: String - displayName: Norfolk Island - required: false - - value: Northern Mariana Islands - type: String - displayName: Northern Mariana Islands - required: false - - value: Norway - type: String - displayName: Norway - required: false - - value: Oman - type: String - displayName: Oman - required: false - - value: Pakistan - type: String - displayName: Pakistan - required: false - - value: Palau - type: String - displayName: Palau - required: false - - value: 'Palestinian Territory, Occupied' - type: String - displayName: 'Palestinian Territory, Occupied' - required: false - - value: Panama - type: String - displayName: Panama - required: false - - value: Papua New Guinea - type: String - displayName: Papua New Guinea - required: false - - value: Paraguay - type: String - displayName: Paraguay - required: false - - value: Peru - type: String - displayName: Peru - required: false - - value: Philippines - type: String - displayName: Philippines - required: false - - value: Pitcairn - type: String - displayName: Pitcairn - required: false - - value: Poland - type: String - displayName: Poland - required: false - - value: Portugal - type: String - displayName: Portugal - required: false - - value: Puerto Rico - type: String - displayName: Puerto Rico - required: false - - value: Qatar - type: String - displayName: Qatar - required: false - - value: Reunion - type: String - displayName: Reunion - required: false - - value: Romania - type: String - displayName: Romania - required: false - - value: Russian Federation - type: String - displayName: Russian Federation - required: false - - value: Rwanda - type: String - displayName: Rwanda - required: false - - value: Saint Barthelemy - type: String - displayName: Saint Barthelemy - required: false - - value: Saint Helena - type: String - displayName: Saint Helena - required: false - - value: Saint Kitts and Nevis - type: String - displayName: Saint Kitts and Nevis - required: false - - value: Saint Lucia - type: String - displayName: Saint Lucia - required: false - - value: Saint Martin - type: String - displayName: Saint Martin - required: false - - value: Saint Pierre and Miquelon - type: String - displayName: Saint Pierre and Miquelon - required: false - - value: Saint Vincent and the Grenadines - type: String - displayName: Saint Vincent and the Grenadines - required: false - - value: Samoa - type: String - displayName: Samoa - required: false - - value: San Marino - type: String - displayName: San Marino - required: false - - value: Sao Tome and Principe - type: String - displayName: Sao Tome and Principe - required: false - - value: Saudi Arabia - type: String - displayName: Saudi Arabia - required: false - - value: Senegal - type: String - displayName: Senegal - required: false - - value: Serbia - type: String - displayName: Serbia - required: false - - value: Seychelles - type: String - displayName: Seychelles - required: false - - value: Sierra Leone - type: String - displayName: Sierra Leone - required: false - - value: Singapore - type: String - displayName: Singapore - required: false - - value: Sint Maarten - type: String - displayName: Sint Maarten - required: false - - value: Slovakia - type: String - displayName: Slovakia - required: false - - value: Slovenia - type: String - displayName: Slovenia - required: false - - value: Solomon Islands - type: String - displayName: Solomon Islands - required: false - - value: Somalia - type: String - displayName: Somalia - required: false - - value: South Africa - type: String - displayName: South Africa - required: false - - value: S. Georgia & S. Sandwich Is - type: String - displayName: S. Georgia & S. Sandwich Is - required: false - - value: Spain - type: String - displayName: Spain - required: false - - value: Sri Lanka - type: String - displayName: Sri Lanka - required: false - - value: Sudan - type: String - displayName: Sudan - required: false - - value: South Sudan - type: String - displayName: South Sudan - required: false - - value: Suriname - type: String - displayName: Suriname - required: false - - value: Svalbard and Jan Mayen - type: String - displayName: Svalbard and Jan Mayen - required: false - - value: Sweden - type: String - displayName: Sweden - required: false - - value: Switzerland - type: String - displayName: Switzerland - required: false - - value: Syrian Arab Republic - type: String - displayName: Syrian Arab Republic - required: false - - value: Taiwan - type: String - displayName: Taiwan - required: false - - value: Tajikistan - type: String - displayName: Tajikistan - required: false - - value: 'Tanzania, United Republic of' - type: String - displayName: 'Tanzania, United Republic of' - required: false - - value: Thailand - type: String - displayName: Thailand - required: false - - value: Timor-Leste - type: String - displayName: Timor-Leste - required: false - - value: Togo - type: String - displayName: Togo - required: false - - value: Tokelau - type: String - displayName: Tokelau - required: false - - value: Tonga - type: String - displayName: Tonga - required: false - - value: Trinidad and Tobago - type: String - displayName: Trinidad and Tobago - required: false - - value: Tunisia - type: String - displayName: Tunisia - required: false - - value: Turkey - type: String - displayName: Turkey - required: false - - value: Turkmenistan - type: String - displayName: Turkmenistan - required: false - - value: Turks and Caicos Islands - type: String - displayName: Turks and Caicos Islands - required: false - - value: Tuvalu - type: String - displayName: Tuvalu - required: false - - value: Uganda - type: String - displayName: Uganda - required: false - - value: Ukraine - type: String - displayName: Ukraine - required: false - - value: United Arab Emirates - type: String - displayName: United Arab Emirates - required: false - - value: United Kingdom - type: String - displayName: United Kingdom - required: false - - value: US Minor Outlying Islands - type: String - displayName: US Minor Outlying Islands - required: false - - value: Uruguay - type: String - displayName: Uruguay - required: false - - value: Uzbekistan - type: String - displayName: Uzbekistan - required: false - - value: Vanuatu - type: String - displayName: Vanuatu - required: false - - value: Vatican City State - type: String - displayName: Vatican City State - required: false - - value: Venezuela - type: String - displayName: Venezuela - required: false - - value: Vietnam - type: String - displayName: Vietnam - required: false - - value: 'Virgin Islands, British' - type: String - displayName: 'Virgin Islands, British' - required: false - - value: 'Virgin Islands, U.S' - type: String - displayName: 'Virgin Islands, U.S' - required: false - - value: Wallis and Futuna - type: String - displayName: Wallis and Futuna - required: false - - value: Western Sahara - type: String - displayName: Western Sahara - required: false - - value: Yemen - type: String - displayName: Yemen - required: false - - value: Zambia - type: String - displayName: Zambia - required: false - - value: Zimbabwe - type: String - displayName: Zimbabwe - required: false - required: false - validation: - warnings: - - field: Addresses.Country - details: Required if TaxNumber is supplied - information: [] - required: false - validation: - warnings: - - field: Addresses - details: 'If supplied, must contain only 1 address' - - field: Addresses - details: 'If TaxNumber is supplied, an Address with a Country is required' - information: [] - required: true - Sandbox: - value: - type: Object - displayName: Supplier - description: A Supplier is a person or organisation that provides a product or service - properties: - supplierName: - type: String - displayName: Supplier Name - description: 'The name for the supplier, typically a company name' - required: true - contactName: - type: String - displayName: Contact Name - description: The name of the main contact for the supplier - required: true - emailAddress: - type: String - displayName: Email Address - description: The preferred email address the supplier should be contacted on - required: true - phone: - type: String - displayName: Phone - description: The preferred phone number the supplier should be contacted on - required: true - addresses: - type: Array - displayName: Addresses - description: A collection of addresses associated to the supplier - properties: - type: - type: String - displayName: Address Type - description: The type of the address - required: true - line1: - type: String - displayName: Line 1 - description: The first line of the address - required: true - line2: - type: String - displayName: Line 2 - description: The second line of the address - required: true - city: - type: String - displayName: City - description: 'The third line of the address, or city' - required: true - region: - type: String - displayName: Region - description: 'The fourth line of the address, or region' - required: true - country: - type: String - displayName: Country - description: The country for the address - required: true - postalCode: - type: String - displayName: Postal/Zip Code - description: The postal (or zip) code for the address - required: true - required: true - registrationNumber: - type: String - displayName: Registration Number - description: The supplier's registration number - required: true - taxNumber: - type: String - displayName: Tax Number - description: The supplier's tax number - required: true - status: - type: String - displayName: Supplier Status - description: The current state of the supplier - required: true - defaultCurrency: - type: String - displayName: Default Currency - description: The default currency for transactions recorded against the supplier - required: true - metadata: - type: Object - displayName: Metadata - description: Miscellaneous data about the item - properties: - isDeleted: - type: Boolean - displayName: IsDeleted - description: A boolean to indicate whether the object has been deleted - required: true - required: true - required: true - Xero: - value: - type: Object - displayName: Suppliers - description: 'An accounts payable contact that supplies good or services, also referred to as a vendor.' - properties: - supplierName: - type: String - displayName: Name - description: Name of the supplier. - required: true - phone: - type: String - displayName: Phone - description: Main contact phone number for the supplier. - required: false - validation: - warnings: - - field: phone - details: 'Country, area, and number are space separated' - information: [] - emailAddress: - type: String - displayName: Email - description: Main contact email for the supplier. - required: false - registrationNumber: - type: String - displayName: Registration Number - description: Legal company registration identifier. - required: false - validation: - warnings: - - field: registrationNumber - details: Max length of 50 characters - information: [] - taxNumber: - type: String - displayName: Tax Number - description: Legal tax registration identifier. - required: false - status: - type: String - displayName: Status - description: Status of the supplier account. - options: - - value: Active - type: String - displayName: Active - required: false - - value: InActive - type: String - displayName: Inactive - required: false - required: false - addresses: - type: Array - displayName: Addresses - description: Contact addresses for the supplier. - properties: - line1: - type: String - displayName: Address Line 1 - description: First line of the address. - required: false - validation: - warnings: - - field: addresses.line1 - details: Max length of 500 characters. - information: [] - line2: - type: String - displayName: Address Line 2 - description: Second line of the address. - required: false - validation: - warnings: - - field: addresses.line2 - details: Max length of 500 characters. - information: [] - city: - type: String - displayName: City - description: Local city for the address. - required: false - validation: - warnings: - - field: addresses.city - details: Max length of 255 characters. - information: [] - region: - type: String - displayName: Region - description: Region the address is located in. - required: false - validation: - warnings: - - field: addresses.region - details: Max length of 255 characters. - information: [] - country: - type: String - displayName: Country - description: Country for the address. - required: false - validation: - warnings: - - field: addresses.country - details: Max length of 50 characters. - information: [] - postalCode: - type: String - displayName: Postal code - description: Post or Zip code for the address. - required: false - validation: - warnings: - - field: addresses.postalCode - details: Only English alphabet characters are permitted. - - field: addresses.postalCode - details: Max length of 50 characters. - information: [] - type: - type: String - displayName: Type - description: The type of address as it related to the supplier. - options: - - value: Billing - type: String - displayName: Billing Address - required: false - - value: Delivery - type: String - displayName: Delivery Address - required: false - required: true - validation: - warnings: - - field: addresses.type - details: 'Billing = POBOX, Delivery/Unknown = DELIVERY' - information: [] - required: false - required: true - '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' - operationId: get-create-update-suppliers-model - x-speakeasy-group: loan-writeback.suppliers - description: "The *Get create/update supplier model* endpoint returns the expected data for the request payload when creating and updating a [supplier](https://docs.codat.io/lending-api#/schemas/Supplier) for a given company and integration.\r\n\r\n[Suppliers](https://docs.codat.io/lending-api#/schemas/Supplier) are people or organizations that provide something, such as a product or service.\r\n\r\n**Integration-specific behavior**\r\n\r\nSee the *response examples* for integration-specific indicative models.\r\n" - '/companies/{companyId}/connections/{connectionId}/push/suppliers': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - post: - tags: - - Loan writeback - parameters: - - $ref: '#/components/parameters/timeoutInMinutes' - - $ref: '#/components/parameters/allowSyncOnPushComplete' - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/AccountingSupplier' - examples: - Sage Intacct: - value: - id: '73593' - supplierName: test 20230420 1004 - contactName: Joe Bloggs - status: Active - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/AccountingCreateSupplierResponse' - examples: {} - '400': - $ref: '#/components/responses/BadRequest' - '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' - summary: Create supplier - description: "The *Create supplier* endpoint creates a new [supplier](https://docs.codat.io/lending-api#/schemas/Supplier) for a given company's connection.\r\n\r\n[Suppliers](https://docs.codat.io/lending-api#/schemas/Supplier) are people or organizations that provide something, such as a product or service.\r\n\r\n**Integration-specific behavior**\r\n\r\nRequired data may vary by integration. To see what data to post, first call [Get create/update supplier model](https://docs.codat.io/lending-api#/operations/get-create-update-suppliers-model).\r\n" - operationId: create-supplier - x-speakeasy-group: loan-writeback.suppliers - '/companies/{companyId}/connections/{connectionId}/options/transfers': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - get: - summary: Get create transfer model - tags: - - Loan writeback - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/PushOption' - examples: - Exact (Netherlands): - value: - type: Object - displayName: Transfer - description: Transfers to or from a bank account - properties: - description: - type: String - displayName: Transfer Description - description: The description of the transfer - required: false - contactRef: - type: Object - displayName: Contact Reference - description: The customer or supplier for this transfer if known - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the record - required: true - validation: - warnings: - - field: ContactRef.Id - details: Must match the ID of an existing customer or supplier. - information: [] - dataType: - type: String - displayName: DataType - description: The name of the data type for which the ID is valid. - options: - - value: customers - type: String - displayName: customers - required: false - - value: suppliers - type: String - displayName: suppliers - required: false - required: true - required: false - date: - type: DateTime - displayName: Transfer Date - description: The date the transfer occurred - required: true - from: - type: Object - displayName: Transfered From - description: The account and amount that money was transfered from - properties: - currency: - type: String - displayName: Currency - description: The currency of the transfer - required: false - amount: - type: Number - displayName: Amount - description: The amount transfered - required: true - validation: - warnings: - - field: From.Amount - details: Transfer Amount must be greater than zero. - information: [] - accountRef: - type: Object - displayName: Account Reference - description: Reference to the bank or nominal account - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the record - required: true - validation: - warnings: - - field: AccountRef.Id - details: Must match the ID of an existing bank or nominal account. - information: [] - dataType: - type: String - displayName: DataType - description: The name of the data type for which the ID is valid. - options: - - value: chartOfAccounts - type: String - displayName: chartOfAccounts - required: false - required: true - required: true - validation: - warnings: - - field: From.AccountRef - details: Transfers between two bank accounts must be handled with two separate transfers to/from an offset account (only balance sheet type nominal account). - information: [] - required: true - to: - type: Object - displayName: Transfered To - description: The account and amount that money was transfered to - properties: - currency: - type: String - displayName: Currency - description: The currency of the transfer - required: false - amount: - type: Number - displayName: Amount - description: The amount transfered - required: true - validation: - warnings: - - field: To.Amount - details: Transfer Amount must be greater than zero. - information: [] - accountRef: - type: Object - displayName: Account Reference - description: Reference to the bank or nominal account - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the record - required: true - validation: - warnings: - - field: AccountRef.Id - details: Must match the ID of an existing bank or nominal account. - information: [] - dataType: - type: String - displayName: DataType - description: The name of the data type for which the ID is valid. - options: - - value: chartOfAccounts - type: String - displayName: chartOfAccounts - required: false - required: true - required: true - validation: - warnings: - - field: To.AccountRef - details: Transfers between two bank accounts must be handled with two separate transfers to/from an offset account (only balance sheet type nominal account). - information: [] - required: true - trackingCategoryRefs: - type: Array - displayName: Tracking Category References - description: A collection of categories this transfer is being tracked against - properties: - id: - type: String - displayName: Identifier - description: 'The identifier for the item, unique per tracking category' - required: false - required: false - required: true - Exact (UK): - value: - type: Object - displayName: Transfer - description: Transfers to or from a bank account - properties: - description: - type: String - displayName: Transfer Description - description: The description of the transfer - required: false - contactRef: - type: Object - displayName: Contact Reference - description: The customer or supplier for this transfer if known - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the record - required: true - validation: - warnings: - - field: ContactRef.Id - details: Must match the ID of an existing customer or supplier. - information: [] - dataType: - type: String - displayName: DataType - description: The name of the data type for which the ID is valid. - options: - - value: customers - type: String - displayName: customers - required: false - - value: suppliers - type: String - displayName: suppliers - required: false - required: true - required: false - date: - type: DateTime - displayName: Transfer Date - description: The date the transfer occurred - required: true - from: - type: Object - displayName: Transfered From - description: The account and amount that money was transfered from - properties: - currency: - type: String - displayName: Currency - description: The currency of the transfer - required: false - amount: - type: Number - displayName: Amount - description: The amount transfered - required: true - validation: - warnings: - - field: From.Amount - details: Transfer Amount must be greater than zero. - information: [] - accountRef: - type: Object - displayName: Account Reference - description: Reference to the bank or nominal account - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the record - required: true - validation: - warnings: - - field: AccountRef.Id - details: Must match the ID of an existing bank or nominal account. - information: [] - dataType: - type: String - displayName: DataType - description: The name of the data type for which the ID is valid. - options: - - value: chartOfAccounts - type: String - displayName: chartOfAccounts - required: false - required: true - required: true - validation: - warnings: - - field: From.AccountRef - details: Transfers between two bank accounts must be handled with two separate transfers to/from an offset account (only balance sheet type nominal account). - information: [] - required: true - to: - type: Object - displayName: Transfered To - description: The account and amount that money was transfered to - properties: - currency: - type: String - displayName: Currency - description: The currency of the transfer - required: false - amount: - type: Number - displayName: Amount - description: The amount transfered - required: true - validation: - warnings: - - field: To.Amount - details: Transfer Amount must be greater than zero. - information: [] - accountRef: - type: Object - displayName: Account Reference - description: Reference to the bank or nominal account - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the record - required: true - validation: - warnings: - - field: AccountRef.Id - details: Must match the ID of an existing bank or nominal account. - information: [] - dataType: - type: String - displayName: DataType - description: The name of the data type for which the ID is valid. - options: - - value: chartOfAccounts - type: String - displayName: chartOfAccounts - required: false - required: true - required: true - validation: - warnings: - - field: To.AccountRef - details: Transfers between two bank accounts must be handled with two separate transfers to/from an offset account (only balance sheet type nominal account). - information: [] - required: true - trackingCategoryRefs: - type: Array - displayName: Tracking Category References - description: A collection of categories this transfer is being tracked against - properties: - id: - type: String - displayName: Identifier - description: 'The identifier for the item, unique per tracking category' - required: false - required: false - required: true - FreeAgent: - value: - type: Object - displayName: Transfer - description: Transfers to or from a bank account - properties: - date: - type: DateTime - displayName: Transfer Date - description: The date the transfer occurred - required: true - from: - type: Object - displayName: Transfered From - description: The account and amount that money was transfered from - properties: - accountRef: - type: Object - displayName: Account Reference - description: Reference to the bank or nominal account - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the record - required: true - validation: - warnings: - - field: AccountRef.Id - details: Must match the ID of an existing bank account. - information: [] - required: true - amount: - type: Number - displayName: Amount - description: The amount transfered - required: true - validation: - warnings: - - field: From.Amount - details: Must be provided and be greater than zero. - information: [] - required: true - to: - type: Object - displayName: Transfered To - description: The account and amount that money was transfered to - properties: - accountRef: - type: Object - displayName: Account Reference - description: Reference to the bank or nominal account - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the record - required: true - validation: - warnings: - - field: AccountRef.Id - details: Must match the ID of an existing bank account. - information: [] - required: true - amount: - type: Number - displayName: Amount - description: The amount transfered - required: false - validation: - warnings: - - field: To.Amount - details: 'If provided, must be greater than zero.' - - field: To.Amount - details: It will be taken into account just if the accounts are in different currencies and will override the automatic currency conversion. - information: [] - required: true - required: true - Oracle NetSuite: - value: - type: Object - displayName: Transfer - description: Transfers to or from a bank account - properties: - description: - type: String - displayName: Transfer Description - description: The description of the transfer - required: false - date: - type: DateTime - displayName: Transfer Date - description: The date the transfer occurred - required: false - validation: - warnings: [] - information: - - field: Date - details: Will default to today's date if not provided - from: - type: Object - displayName: Transfered From - description: The account and amount that money was transfered from - properties: - amount: - type: Number - displayName: Amount - description: The amount transfered - required: true - accountRef: - type: Object - displayName: Account Reference - description: Reference to the bank or nominal account - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the record - required: true - validation: - warnings: - - field: AccountRef.Id - details: Either the 'From' account or the 'To' account must be a bank account - the other must be an undeposited funds account - information: [] - required: true - required: true - to: - type: Object - displayName: Transfered To - description: The account and amount that money was transfered to - properties: - amount: - type: Number - displayName: Amount - description: The amount transfered - required: true - accountRef: - type: Object - displayName: Account Reference - description: Reference to the bank or nominal account - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the record - required: true - validation: - warnings: - - field: AccountRef.Id - details: Either the 'From' account or the 'To' account must be a bank account - the other must be an undeposited funds account - information: [] - required: true - required: true - depositedRecordRefs: - type: Array - displayName: Deposited Record References - description: A collection of selected transactions to associate with the transfer. Use this field to include transactions which are posted to the undeposited funds (or other holding) account within this transfer. - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the record - required: true - required: true - trackingCategoryRefs: - type: Array - displayName: Tracking Category References - description: A collection of categories this transfer is being tracked against - properties: - id: - type: String - displayName: Identifier - description: 'The identifier for the item, unique per tracking category' - required: true - validation: - warnings: - - field: TrackingCategoryRefs.Id - details: 'One location, one department and one classification may be provided' - information: [] - required: false - required: true - validation: - warnings: - - details: Currently only transfers between bank accounts and undeposited funds accounts are supported - information: [] - QuickBooks Desktop: - value: - type: Object - displayName: Transfer - description: Transfers to or from a bank account - properties: - from: - type: Object - displayName: Transfered From - description: The account and amount that money was transfered from - properties: - amount: - type: Number - displayName: Amount - description: The amount transfered - required: true - validation: - warnings: - - field: From.Amount - details: Value should match To.Amount - - field: From.Amount - details: Value should be greater than zero - information: [] - currency: - type: String - displayName: Currency - description: The currency of the transfer - required: false - validation: - warnings: - - field: From.Currency - details: 'This value is not used in the push, and will be ignored.' - information: [] - accountRef: - type: Object - displayName: Account Reference - description: Reference to the bank or nominal account - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the record - required: true - required: true - required: true - to: - type: Object - displayName: Transfered To - description: The account and amount that money was transfered to - properties: - amount: - type: Number - displayName: Amount - description: The amount transfered - required: true - validation: - warnings: - - field: To.Amount - details: Value should match To.Amount - - field: To.Amount - details: Value should be greater than zero - information: [] - currency: - type: String - displayName: Currency - description: The currency of the transfer - required: false - validation: - warnings: - - field: To.Currency - details: 'This value is not used in the push, and will be ignored.' - information: [] - accountRef: - type: Object - displayName: Account Reference - description: Reference to the bank or nominal account - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the record - required: true - required: true - required: true - trackingCategoryRefs: - type: Array - displayName: Tracking Category References - description: A collection of categories this transfer is being tracked against - required: false - description: - type: String - displayName: Transfer Description - description: The description of the transfer - required: false - validation: - warnings: - - field: Description - details: Max length of 4096 characters. - information: [] - date: - type: DateTime - displayName: Transfer Date - description: The date the transfer occurred - required: true - contactRef: - type: Object - displayName: Contact Reference - description: The customer or supplier for this transfer if known - required: false - validation: - warnings: - - field: ContactRef - details: 'This value is not used in the push, and will be ignored.' - information: [] - sourceModifiedDate: - type: DateTime - displayName: Source Modified Date - description: The date the record was last changed in the originating system - required: true - required: true - QuickBooks Online Sandbox: - value: - type: Object - displayName: Transfer - description: Transfers to or from a bank account - properties: - description: - type: String - displayName: Transfer Description - description: The description of the transfer - required: false - from: - type: Object - displayName: Transfered From - description: The account and amount that money was transfered from - properties: - accountRef: - type: Object - displayName: Account Reference - description: Reference to the bank or nominal account - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the record - required: true - required: true - amount: - type: Number - displayName: Amount - description: The amount transfered - required: true - required: true - to: - type: Object - displayName: Transfered To - description: The account and amount that money was transfered to - properties: - accountRef: - type: Object - displayName: Account Reference - description: Reference to the bank or nominal account - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the record - required: true - required: true - required: true - depositedRecordRefs: - type: Array - displayName: Deposited Record References - description: A collection of selected transactions to associate with the transfer. Use this field to include transactions which are posted to the undeposited funds (or other holding) account within this transfer. - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the record - required: true - dataType: - type: String - displayName: DataType - description: The name of the data type for which the ID is valid. - options: - - value: payments - type: String - displayName: Payments - required: false - - value: directIncomes - type: String - displayName: DirectIncomes - required: false - - value: journalEntries - type: String - displayName: JournalEntries - required: false - required: true - required: false - required: true - validation: - warnings: - - details: 'When pushing a transfer using two different currencies, the exchange rate will be calculated and passed to QuickBooks, QuickBooks performs rounding on this value which may affect the values in the transfer' - - details: Transfers between accounts in different currencies can only be made if multi-currency is enabled for company - - details: The currency of at least one of the accounts used must be the same as the company's currency - information: [] - QuickBooks Online: - value: - type: Object - displayName: Transfer - description: Transfers to or from a bank account - properties: - description: - type: String - displayName: Transfer Description - description: The description of the transfer - required: false - from: - type: Object - displayName: Transfered From - description: The account and amount that money was transfered from - properties: - accountRef: - type: Object - displayName: Account Reference - description: Reference to the bank or nominal account - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the record - required: true - required: true - amount: - type: Number - displayName: Amount - description: The amount transfered - required: true - required: true - to: - type: Object - displayName: Transfered To - description: The account and amount that money was transfered to - properties: - accountRef: - type: Object - displayName: Account Reference - description: Reference to the bank or nominal account - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the record - required: true - required: true - required: true - depositedRecordRefs: - type: Array - displayName: Deposited Record References - description: A collection of selected transactions to associate with the transfer. Use this field to include transactions which are posted to the undeposited funds (or other holding) account within this transfer. - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the record - required: true - dataType: - type: String - displayName: DataType - description: The name of the data type for which the ID is valid. - options: - - value: payments - type: String - displayName: Payments - required: false - - value: directIncomes - type: String - displayName: DirectIncomes - required: false - - value: journalEntries - type: String - displayName: JournalEntries - required: false - required: true - required: false - required: true - validation: - warnings: - - details: 'When pushing a transfer using two different currencies, the exchange rate will be calculated and passed to QuickBooks, QuickBooks performs rounding on this value which may affect the values in the transfer' - - details: Transfers between accounts in different currencies can only be made if multi-currency is enabled for company - - details: The currency of at least one of the accounts used must be the same as the company's currency - information: [] - Sage Business Cloud Accounting: - value: - type: Object - displayName: Transfer - description: Transfers to or from a bank account - properties: - description: - type: String - displayName: Transfer Description - description: The description of the transfer - required: false - validation: - warnings: - - field: Description - details: Must be provided if pushing a bank deposit. - information: - - field: Description - details: Must not be longer than 2000 characters. - date: - type: DateTime - displayName: Transfer Date - description: The date the transfer occurred - required: true - validation: - warnings: [] - information: - - field: Date - details: Must be provided. - from: - type: Object - displayName: Transfered From - description: The account and amount that money was transfered from - properties: - accountRef: - type: Object - displayName: Account Reference - description: Reference to the bank or nominal account - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the record - required: true - validation: - warnings: [] - information: - - field: AccountRef.Id - details: Must be different from To.AccountRef.Id. - - field: AccountRef.Id - details: Must match the ID of an existing bank account in the company's base currency. - required: true - amount: - type: Number - displayName: Amount - description: The amount transfered - required: true - validation: - warnings: [] - information: - - field: From.Amount - details: Must be equal to To.Amount. - - field: From.Amount - details: Must be greater than zero. - required: true - to: - type: Object - displayName: Transfered To - description: The account and amount that money was transfered to - properties: - accountRef: - type: Object - displayName: Account Reference - description: Reference to the bank or nominal account - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the record - required: true - validation: - warnings: [] - information: - - field: AccountRef.Id - details: Must be different from From.AccountRef.Id. - - field: AccountRef.Id - details: Must match the ID of an existing bank account in the company's base currency. - required: true - amount: - type: Number - displayName: Amount - description: The amount transfered - required: true - validation: - warnings: [] - information: - - field: To.Amount - details: Must be equal to From.Amount. - - field: To.Amount - details: Must be greater than zero. - required: true - required: true - Sandbox: - value: - type: Object - displayName: Transfer - description: Transfers to or from a bank account - properties: - description: - type: String - displayName: Transfer Description - description: The description of the transfer - required: true - contactRef: - type: Object - displayName: Contact Reference - description: The customer or supplier for this transfer if known - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the record - required: true - dataType: - type: String - displayName: DataType - description: The name of the data type for which the ID is valid. - required: true - required: true - date: - type: DateTime - displayName: Transfer Date - description: The date the transfer occurred - required: true - from: - type: Object - displayName: Transfered From - description: The account and amount that money was transfered from - properties: - accountRef: - type: Object - displayName: Account Reference - description: Reference to the bank or nominal account - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the record - required: true - dataType: - type: String - displayName: DataType - description: The name of the data type for which the ID is valid. - required: true - required: true - currency: - type: String - displayName: Currency - description: The currency of the transfer - required: true - amount: - type: Number - displayName: Amount - description: The amount transfered - required: true - status: - type: String - displayName: Status - description: The status of the transfer in the account - required: true - required: true - to: - type: Object - displayName: Transfered To - description: The account and amount that money was transfered to - properties: - accountRef: - type: Object - displayName: Account Reference - description: Reference to the bank or nominal account - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the record - required: true - dataType: - type: String - displayName: DataType - description: The name of the data type for which the ID is valid. - required: true - required: true - currency: - type: String - displayName: Currency - description: The currency of the transfer - required: true - amount: - type: Number - displayName: Amount - description: The amount transfered - required: true - status: - type: String - displayName: Status - description: The status of the transfer in the account - required: true - required: true - trackingCategoryRefs: - type: Array - displayName: Tracking Category References - description: A collection of categories this transfer is being tracked against - properties: - id: - type: String - displayName: Identifier - description: 'The identifier for the item, unique per tracking category' - required: true - name: - type: String - displayName: Tracking Category Name - description: The name of the category referenced by the identifier - required: true - required: true - depositedRecordRefs: - type: Array - displayName: Deposited Record References - description: A collection of selected transactions to associate with the transfer. Use this field to include transactions which are posted to the undeposited funds (or other holding) account within this transfer. - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the record - required: true - dataType: - type: String - displayName: DataType - description: The name of the data type for which the ID is valid. - required: true - required: true - metadata: - type: Object - displayName: Metadata - description: Miscellaneous data about the item - properties: - isDeleted: - type: Boolean - displayName: IsDeleted - description: A boolean to indicate whether the object has been deleted - required: true - required: true - required: true - Xero: - value: - type: Object - displayName: Transfer - description: Transfers to or from a bank account - properties: - date: - type: DateTime - displayName: Transfer Date - description: The date the transfer occurred - required: true - from: - type: Object - displayName: Transfered From - description: The account and amount that money was transfered from - properties: - accountRef: - type: Object - displayName: Account Reference - description: Reference to the bank or nominal account - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the record - required: true - validation: - warnings: - - field: AccountRef.Id - details: Must match the ID of an existing bank account. - information: [] - required: true - amount: - type: Number - displayName: Amount - description: The amount transfered - required: true - validation: - warnings: - - field: From.Amount - details: Must be equal to To.Amount. - - field: From.Amount - details: Must be greater than zero. - information: [] - status: - type: String - displayName: Status - description: The status of the transfer in the account - options: - - value: Unknown - type: String - displayName: Unknown - required: false - - value: Unreconciled - type: String - displayName: Unreconciled - required: false - - value: Reconciled - type: String - displayName: Reconciled - required: false - required: true - validation: - warnings: [] - information: - - field: From.Status - details: Must be provided. - required: true - to: - type: Object - displayName: Transfered To - description: The account and amount that money was transfered to - properties: - accountRef: - type: Object - displayName: Account Reference - description: Reference to the bank or nominal account - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the record - required: true - validation: - warnings: - - field: AccountRef.Id - details: Must match the ID of an existing bank account. - information: [] - required: true - amount: - type: Number - displayName: Amount - description: The amount transfered - required: true - validation: - warnings: - - field: To.Amount - details: Must be equal to From.Amount. - - field: To.Amount - details: Must be greater than zero. - information: [] - status: - type: String - displayName: Status - description: The status of the transfer in the account - options: - - value: Unknown - type: String - displayName: Unknown - required: false - - value: Unreconciled - type: String - displayName: Unreconciled - required: false - - value: Reconciled - type: String - displayName: Reconciled - required: false - required: true - validation: - warnings: [] - information: - - field: To.Status - details: Must be provided. - required: true - required: true - '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' - operationId: get-create-transfers-model - x-speakeasy-group: loan-writeback.transfers - description: | - The *Get create transfer model* endpoint returns the expected data for the request payload when creating a [transfer](https://docs.codat.io/lending-api#/schemas/Transfer) for a given company and integration. - - [Transfers](https://docs.codat.io/lending-api#/schemas/Transfer) record the movement of money between two bank accounts, or between a bank account and a nominal account. - - **Integration-specific behavior** - - See the *response examples* for integration-specific indicative models. - '/companies/{companyId}/connections/{connectionId}/push/transfers': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - post: - tags: - - Loan writeback - parameters: - - $ref: '#/components/parameters/timeoutInMinutes' - - $ref: '#/components/parameters/allowSyncOnPushComplete' - summary: Create transfer - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/AccountingTransfer' - examples: - QuickBooks Desktop: - value: - description: test transfers push 20230126 12.08 - contactRef: - id: 80000028-167239230944 - dataType: customers - date: '2023-01-26T11:51:18.104Z' - from: - accountRef: - id: 80000028-1671794219 - dataType: bankAccounts - amount: 12 - to: - accountRef: - id: 80000004-1671793811 - dataType: bankAccounts - amount: 12 - status: Unknown - trackingCategoryRefs: - - id: 80000001-1674553252 - name: Class 1 - metadata: - isDeleted: true - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/AccountingCreateTransferResponse' - examples: {} - '400': - $ref: '#/components/responses/BadRequest' - '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: |- - The *Create transfer* endpoint creates a new [transfer](https://docs.codat.io/lending-api#/schemas/Transfer) for a given company's connection. - - [Transfers](https://docs.codat.io/lending-api#/schemas/Transfer) record the movement of money between two bank accounts, or between a bank account and a nominal account. - - **Integration-specific behavior** - - Required data may vary by integration. To see what data to post, first call [Get create transfer model](https://docs.codat.io/lending-api#/operations/get-create-transfers-model). - operationId: create-transfer - x-speakeasy-group: loan-writeback.transfers - '/companies/{companyId}/connections/{connectionId}/options/bankAccounts/{accountId}/bankTransactions': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - - $ref: '#/components/parameters/accountingAccountId' - get: - tags: - - Loan writeback - summary: Get create bank account transactions model - description: |- - The *Get create bank account transactions model* endpoint returns the expected data for the request payload when creating [bank account transactions](https://docs.codat.io/lending-api#/schemas/BankTransactions) for a given company and integration. - - [Bank account transactions](https://docs.codat.io/lending-api#/schemas/BankTransactions) are records of money that has moved in and out of an SMB's bank account. - - **Integration-specific behavior** - - See the *response examples* for integration-specific indicative models. - operationId: get-create-bank-transactions-model - x-speakeasy-group: loan-writeback.bank-transactions - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/PushOption' - examples: {} - '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: |- - This is the generic documentation for creation and updating of data. See the equivalent endpoint for a given data type for more specific information. - - Before pushing data into accounting software, it is often necessary to collect some details from the user as to how they would like the data to be inserted. This includes names and amounts on transactional entities, but also factors such as categorisation of entities, which is often handled differently between different accounting software. A good example of this is specifying where on the balance sheet/profit and loss reports the user would like a newly-created nominal account to appear. - - Codat tries not to limit users to pushing to a very limited number of standard categories, so we have implemented "options" endpoints, which allow us to expose to our clients the fields which are required to be pushed for a specific linked company, and the options which may be selected for each field. - '/companies/{companyId}/connections/{connectionId}/push/bankAccounts/{accountId}/bankTransactions': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - - $ref: '#/components/parameters/accountingAccountId' - post: - tags: - - Loan writeback - summary: Create bank account transactions - description: | - The *Create bank account transactions* endpoint creates new [bank account transactions](https://docs.codat.io/lending-api#/schemas/BankTransactions) for a given company's connection. - - [Bank account transactions](https://docs.codat.io/lending-api#/schemas/BankTransactions) are records of money that has moved in and out of an SMB's bank account. - - **Integration-specific behavior** - - Required data may vary by integration. To see what data to post, first call [Get create bank transaction model](https://docs.codat.io/lending-api#/operations/get-create-bankTransactions-model). - operationId: create-bank-transactions - x-speakeasy-group: loan-writeback.bank-transactions - parameters: - - $ref: '#/components/parameters/timeoutInMinutes' - - $ref: '#/components/parameters/allowSyncOnPushComplete' - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/AccountingCreateBankTransactions' - examples: {} - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/AccountingCreateBankTransactionsResponse' - examples: {} - '400': - $ref: '#/components/responses/BadRequest' - '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' - '/companies/{companyId}/connections/{connectionId}/options/directCosts': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - get: - summary: Get create direct cost model - tags: - - Loan writeback - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/PushOption' - examples: - Dynamics 365 Business Central: - value: - type: Object - displayName: Direct Cost - description: '' - properties: - reference: - type: String - displayName: Reference - description: User friendly reference for the direct transaction - required: false - note: - type: String - displayName: Note - description: The note attached to the direct transaction - required: false - validation: - warnings: [] - information: - - field: Note - details: is not supported and will be ignored - contactRef: - type: Object - displayName: Contact Ref - description: 'The contact associated with the direct transaction, if known' - required: false - validation: - warnings: [] - information: - - field: ContactRef - details: is not supported and will be ignored - issueDate: - type: DateTime - displayName: Issue Date - description: The date the direct transaction was issued - required: true - currency: - type: String - displayName: Currency - description: The currency of the direct transaction - required: false - validation: - warnings: [] - information: - - field: Currency - details: 'If unspecified, base currency is assumed. Must agree with the bank account in PaymentAllocations' - currencyRate: - type: Number - displayName: Currency Exchange Rate - description: The exchange rate between the currency of the direct transaction and the base currency of the company - required: false - validation: - warnings: [] - information: - - field: CurrencyRate - details: Required if the currency is not the base currency - subTotal: - type: Number - displayName: Sub Total Amount - description: The total amount of the direct transaction excluding any taxes - required: false - validation: - warnings: [] - information: - - field: SubTotal - details: is not supported and will be ignored - taxAmount: - type: Number - displayName: Tax Amount - description: The total amount of tax on the direct transaction - required: false - validation: - warnings: [] - information: - - field: TaxAmount - details: is not supported and will be ignored - totalAmount: - type: Number - displayName: Total Amount - description: 'The amount of the direct transaction, inclusive of tax' - required: false - validation: - warnings: [] - information: - - field: TotalAmount - details: is not supported and will be ignored - lineItems: - type: Array - displayName: Direct Transaction Lines - description: A collection of lines that detail items related to the direct transaction - properties: - description: - type: String - displayName: Description - description: Friendly name of the goods or services purchased - required: false - unitAmount: - type: Number - displayName: Unit Amount - description: The price of each unit of goods or services - required: false - validation: - warnings: [] - information: - - field: LineItems.UnitAmount - details: is not supported and will be ignored - quantity: - type: Number - displayName: Quantity - description: The number of units of goods or services purchased - required: false - validation: - warnings: [] - information: - - field: LineItems.Quantity - details: is not supported and will be ignored - discountAmount: - type: Number - displayName: Discount Amount - description: 'The value, in the given currency, of any discounts applied' - required: false - validation: - warnings: [] - information: - - field: LineItems.DiscountAmount - details: is not supported and will be ignored - discountPercentage: - type: Number - displayName: Discount Percentage - description: The percentage rate of any discount that has been applied - required: false - validation: - warnings: [] - information: - - field: LineItems.DiscountPercentage - details: is not supported and will be ignored - subTotal: - type: Number - displayName: Sub Total Amount - description: 'The amount of the line, inclusive of discounts but exclusive of tax' - required: false - validation: - warnings: [] - information: - - field: LineItems.SubTotal - details: Required if totalAmount is not specified - taxAmount: - type: Number - displayName: Tax Amount - description: The amount of tax for the line - required: false - validation: - warnings: [] - information: - - field: LineItems.TaxAmount - details: is not supported and will be ignored - totalAmount: - type: Number - displayName: Total Amount - description: 'The total amount of the line, inclusive of discounts and tax' - required: false - validation: - warnings: [] - information: - - field: LineItems.TotalAmount - details: Required if subTotal is not specified - accountRef: - type: Object - displayName: Nominal Account Reference - description: Reference to the nominal account the line item is linked to - properties: - id: - type: String - displayName: Account ID - description: The identifier for the account - required: true - name: - type: String - displayName: Name - description: Name of the account - required: false - validation: - warnings: [] - information: - - field: AccountRef.Name - details: is not supported and will be ignored - required: true - taxRateRef: - type: Object - displayName: Tax Rate Reference - description: Reference to the tax rate code the line item is linked to - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the tax rate - required: true - name: - type: String - displayName: Name - description: The name of the tax rate referenced by the identifier - required: false - validation: - warnings: [] - information: - - field: TaxRateRef.Name - details: is not supported and will be ignored - effectiveTaxRate: - type: Number - displayName: Effective Tax Rate - description: 'The total applied tax percentage, including compounding details' - required: false - validation: - warnings: [] - information: - - field: TaxRateRef.EffectiveTaxRate - details: is not supported and will be ignored - required: true - itemRef: - type: Object - displayName: Item Reference - description: 'Reference to the product or service type, or inventory item' - required: false - validation: - warnings: [] - information: - - field: LineItems.ItemRef - details: is not supported and will be ignored - trackingCategoryRefs: - type: Array - displayName: Tracking Category References - description: A collection of categories this item is being tracked against - required: false - validation: - warnings: [] - information: - - field: LineItems.TrackingCategoryRefs - details: is not supported and will be ignored - required: true - validation: - warnings: - - field: LineItems - details: Only one line is supported - information: [] - paymentAllocations: - type: Array - displayName: Payment Allocations - description: A collection of payments allocated to the direct transaction - properties: - payment: - type: Object - displayName: Payment - description: The payment to be allocated - properties: - accountRef: - type: Object - displayName: Account Reference - description: Reference to the account associated with the allocated payment - properties: - id: - type: String - displayName: Account ID - description: The identifier for the account - required: true - name: - type: String - displayName: Name - description: Name of the account - required: false - validation: - warnings: [] - information: - - field: AccountRef.Name - details: is not supported and will be ignored - required: true - currency: - type: String - displayName: Currency - description: The currency for the payment - required: false - validation: - warnings: [] - information: - - field: Payment.Currency - details: is not supported and will be ignored - currencyRate: - type: Number - displayName: Currency Exchange Rate - description: The exchange rate between the currency of the allocated payment and the currency of the base company - required: false - validation: - warnings: [] - information: - - field: Payment.CurrencyRate - details: is not supported and will be ignored - paidOnDate: - type: DateTime - displayName: Paid On Date - description: The date the payment was paid - required: false - validation: - warnings: [] - information: - - field: Payment.PaidOnDate - details: is not supported and will be ignored - totalAmount: - type: Number - displayName: Total Amount - description: The total amount that has been paid - required: false - validation: - warnings: [] - information: - - field: Payment.TotalAmount - details: is not supported and will be ignored - required: true - allocation: - type: Object - displayName: Allocation - description: The allocation information - properties: - currency: - type: String - displayName: Currency - description: The currency of the transaction - required: false - validation: - warnings: [] - information: - - field: Allocation.Currency - details: is not supported and will be ignored - currencyRate: - type: Number - displayName: Currency Exchange Rate - description: The exchange rate between the currency of the allocated payment and the currency of the transaction - required: false - validation: - warnings: [] - information: - - field: Allocation.CurrencyRate - details: is not supported and will be ignored - allocatedOnDate: - type: DateTime - displayName: Allocated On Date - description: The date the payment was allocated - required: false - validation: - warnings: [] - information: - - field: Allocation.AllocatedOnDate - details: is not supported and will be ignored - totalAmount: - type: Number - displayName: Total Amount - description: The total amount that has been allocated - required: false - validation: - warnings: [] - information: - - field: Allocation.TotalAmount - details: is not supported and will be ignored - required: true - required: true - validation: - warnings: - - field: PaymentAllocations - details: Only one line is supported - information: [] - required: true - FreeAgent: - value: - type: Object - displayName: Direct Cost - description: '' - properties: - id: - type: String - displayName: Unique Direct Transaction ID - description: 'The identifier for the direct transaction, unique to the company' - required: false - validation: - warnings: - - field: Id - details: 'will be ignored on push. ' - information: [] - reference: - type: String - displayName: Reference - description: User friendly reference for the direct transaction - required: false - validation: - warnings: - - field: Reference - details: 'is not supported by FreeAgent and will not be mapped. ' - information: [] - note: - type: String - displayName: Note - description: The note attached to the direct transaction - required: true - validation: - warnings: [] - information: - - field: Note - details: must be provided - contactRef: - type: Object - displayName: Contact Ref - description: 'The contact associated with the direct transaction, if known' - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the record - required: false - validation: - warnings: - - field: ContactRef.Id - details: 'is not supported by FreeAgent and will be ignored on push. ' - information: [] - dataType: - type: String - displayName: DataType - description: The name of the data type for which the ID is valid. - required: false - validation: - warnings: - - field: ContactRef.DataType - details: 'is not supported by FreeAgent and will be ignored on push. ' - information: [] - required: false - issueDate: - type: DateTime - displayName: Issue Date - description: The date the direct transaction was issued - required: true - validation: - warnings: [] - information: - - field: IssueDate - details: must be provided - currency: - type: String - displayName: Currency - description: The currency of the direct transaction - required: false - currencyRate: - type: Number - displayName: Currency Exchange Rate - description: The exchange rate between the currency of the direct transaction and the base currency of the company - required: false - validation: - warnings: - - field: CurrencyRate - details: 'will be ignored on push. ' - information: [] - lineItems: - type: Array - displayName: Direct Transaction Lines - description: A collection of lines that detail items related to the direct transaction - properties: - description: - type: String - displayName: Description - description: Friendly name of the goods or services purchased - required: false - validation: - warnings: - - field: LineItems.Description - details: 'If a Note is provided, this field will be ignored on push. ' - information: [] - unitAmount: - type: Number - displayName: Unit Amount - description: The price of each unit of goods or services - required: false - validation: - warnings: - - field: LineItems.UnitAmount - details: 'will be ignored on push. ' - information: [] - quantity: - type: Number - displayName: Quantity - description: The number of units of goods or services purchased - required: false - validation: - warnings: - - field: LineItems.Quantity - details: 'will be ignored on push. ' - information: [] - subTotal: - type: Number - displayName: Sub Total Amount - description: 'The amount of the line, inclusive of discounts but exclusive of tax' - required: false - taxAmount: - type: Number - displayName: Tax Amount - description: The amount of tax for the line - required: false - totalAmount: - type: Number - displayName: Total Amount - description: 'The total amount of the line, inclusive of discounts and tax' - required: false - accountRef: - type: Object - displayName: Nominal Account Reference - description: Reference to the nominal account the line item is linked to - properties: - id: - type: String - displayName: Account ID - description: The identifier for the account - required: true - validation: - warnings: [] - information: - - field: AccountRef.Id - details: must be provided - name: - type: String - displayName: Name - description: Name of the account - required: false - validation: - warnings: - - field: AccountRef.Name - details: 'will be ignored on push. ' - information: [] - required: true - taxRateRef: - type: Object - displayName: Tax Rate Reference - description: Reference to the tax rate code the line item is linked to - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the tax rate - required: false - validation: - warnings: - - field: TaxRateRef.Id - details: 'will be ignored on push. ' - information: [] - name: - type: String - displayName: Name - description: The name of the tax rate referenced by the identifier - required: false - validation: - warnings: - - field: TaxRateRef.Name - details: 'will be ignored on push. ' - information: [] - effectiveTaxRate: - type: Number - displayName: Effective Tax Rate - description: 'The total applied tax percentage, including compounding details' - required: false - validation: - warnings: - - field: TaxRateRef.EffectiveTaxRate - details: 'will be ignored on push. ' - information: [] - required: false - required: true - validation: - warnings: - - field: LineItems - details: Exactly one line item must be specified - information: [] - paymentAllocations: - type: Array - displayName: Payment Allocations - description: A collection of payments allocated to the direct transaction - properties: - payment: - type: Object - displayName: Payment - description: The payment to be allocated - properties: - id: - type: String - displayName: Identifier - description: The identifier for the allocated payment - required: false - note: - type: String - displayName: Note - description: Any additional text based information associated with the allocated payment - required: false - reference: - type: String - displayName: Reference - description: Reference associated with the allocated payment - required: false - accountRef: - type: Object - displayName: Account Reference - description: Reference to the account associated with the allocated payment - properties: - id: - type: String - displayName: Account ID - description: The identifier for the account - required: true - validation: - warnings: [] - information: - - field: AccountRef.Id - details: must be provided - name: - type: String - displayName: Name - description: Name of the account - required: false - validation: - warnings: - - field: AccountRef.Name - details: 'will be ignored on push. ' - information: [] - required: true - currency: - type: String - displayName: Currency - description: The currency for the payment - required: false - currencyRate: - type: Number - displayName: Currency Exchange Rate - description: The exchange rate between the currency of the allocated payment and the currency of the base company - required: false - paidOnDate: - type: DateTime - displayName: Paid On Date - description: The date the payment was paid - required: false - totalAmount: - type: Number - displayName: Total Amount - description: The total amount that has been paid - required: false - required: true - allocation: - type: Object - displayName: Allocation - description: The allocation information - properties: - currency: - type: String - displayName: Currency - description: The currency of the transaction - required: false - currencyRate: - type: Number - displayName: Currency Exchange Rate - description: The exchange rate between the currency of the allocated payment and the currency of the transaction - required: false - allocatedOnDate: - type: DateTime - displayName: Allocated On Date - description: The date the payment was allocated - required: false - totalAmount: - type: Number - displayName: Total Amount - description: The total amount that has been allocated - required: false - required: false - required: true - subTotal: - type: Number - displayName: Sub Total Amount - description: The total amount of the direct transaction excluding any taxes - required: false - taxAmount: - type: Number - displayName: Tax Amount - description: The total amount of tax on the direct transaction - required: false - totalAmount: - type: Number - displayName: Total Amount - description: 'The amount of the direct transaction, inclusive of tax' - required: false - modifiedDate: - type: DateTime - displayName: Modified Date - description: The date the record was last updated in the system cache - required: false - validation: - warnings: - - field: ModifiedDate - details: 'will be ignored on push. ' - information: [] - sourceModifiedDate: - type: DateTime - displayName: Source Modified Date - description: The date the record was last changed in the originating system - required: false - validation: - warnings: - - field: SourceModifiedDate - details: 'will be ignored on push. ' - information: [] - required: true - Oracle NetSuite: - value: - type: Object - displayName: Direct Cost - description: Direct Cost - properties: - note: - type: String - displayName: Note - description: The note attached to the direct transaction - required: false - contactRef: - type: Object - displayName: Contact Ref - description: 'The contact associated with the direct transaction, if known' - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the record - required: true - required: true - issueDate: - type: DateTime - displayName: Issue Date - description: The date the direct transaction was issued - required: true - currency: - type: String - displayName: Currency - description: The currency of the direct transaction - required: true - currencyRate: - type: Number - displayName: Currency Exchange Rate - description: The exchange rate between the currency of the direct transaction and the base currency of the company - required: true - lineItems: - type: Array - displayName: Direct Transaction Lines - description: A collection of lines that detail items related to the direct transaction - properties: - description: - type: String - displayName: Description - description: Friendly name of the goods or services purchased - required: false - unitAmount: - type: Number - displayName: Unit Amount - description: The price of each unit of goods or services - required: false - validation: - warnings: [] - information: - - field: LineItems.UnitAmount - details: Should have the same sign across all line items - quantity: - type: Number - displayName: Quantity - description: The number of units of goods or services purchased - required: false - accountRef: - type: Object - displayName: Nominal Account Reference - description: Reference to the nominal account the line item is linked to - properties: - id: - type: String - displayName: Account ID - description: The identifier for the account - required: true - required: false - validation: - warnings: - - field: LineItems.AccountRef - details: Should not be a bank account - - field: LineItems.AccountRef - details: Should only be specified when pushing an expense - information: [] - itemRef: - type: Object - displayName: Item Reference - description: 'Reference to the product or service type, or inventory item' - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the item - required: true - required: false - validation: - warnings: - - field: LineItems.ItemRef - details: Should only be specified when pushing an item (not an expense) - information: [] - taxRateRef: - type: Object - displayName: Tax Rate Reference - description: Reference to the tax rate code the line item is linked to - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the tax rate - required: true - required: false - validation: - warnings: - - field: LineItems.TaxRateRef - details: Should be specified when item type is not 'Discount' - information: [] - trackingCategoryRefs: - type: Array - displayName: Tracking Category References - description: A collection of categories this item is being tracked against - properties: - id: - type: String - displayName: Identifier - description: 'The identifier for the item, unique per tracking category' - required: true - required: false - required: true - paymentAllocations: - type: Array - displayName: Payment Allocations - description: A collection of payments allocated to the direct transaction - properties: - payment: - type: Object - displayName: Payment - description: The payment to be allocated - properties: - accountRef: - type: Object - displayName: Account Reference - description: Reference to the account associated with the allocated payment - properties: - id: - type: String - displayName: Account ID - description: The identifier for the account - required: true - validation: - warnings: - - field: AccountRef.Id - details: Must match the ID of an existing account of type 'Bank' OR type 'Credit Card' - information: [] - required: true - required: true - allocation: - type: Object - displayName: Allocation - description: The allocation information - required: true - required: true - validation: - warnings: [] - information: - - field: PaymentAllocations - details: Must contain a single allocation - required: true - QuickBooks Desktop: - value: - type: Object - displayName: Direct Cost - description: Direct Cost - properties: - reference: - type: String - displayName: Reference - description: User friendly reference for the direct transaction - required: false - validation: - warnings: - - field: Reference - details: Represents the check number - information: [] - note: - type: String - displayName: Note - description: The note attached to the direct transaction - required: false - validation: - warnings: - - field: Note - details: Max length of 4096 characters. - information: [] - contactRef: - type: Object - displayName: Contact Ref - description: 'The contact associated with the direct transaction, if known' - required: false - currency: - type: String - displayName: Currency - description: The currency of the direct transaction - required: false - validation: - warnings: - - field: Currency - details: Must be a three letter ISO code - - field: Currency - details: Can only be set if the QuickBooks Desktop company has Multicurrency enabled. - information: - - field: Currency - details: 'If not set, will default to the default currency' - currencyRate: - type: Number - displayName: Currency Exchange Rate - description: The exchange rate between the currency of the direct transaction and the base currency of the company - required: false - validation: - warnings: [] - information: - - field: CurrencyRate - details: 'If not set, will default to the rate set within QuickBooks Desktop, if no rate is set in QuickBooks Desktop, it will default to 1.' - - field: CurrencyRate - details: Can only be set if the QuickBooks Desktop company has Multicurrency enabled. - issueDate: - type: DateTime - displayName: Issue Date - description: The date the direct transaction was issued - required: true - lineItems: - type: Array - displayName: Direct Transaction Lines - description: A collection of lines that detail items related to the direct transaction - properties: - description: - type: String - displayName: Description - description: Friendly name of the goods or services purchased - required: true - unitAmount: - type: Number - displayName: Unit Amount - description: The price of each unit of goods or services - required: true - quantity: - type: Number - displayName: Quantity - description: The number of units of goods or services purchased - required: true - subTotal: - type: Number - displayName: Sub Total Amount - description: 'The amount of the line, inclusive of discounts but exclusive of tax' - required: false - taxAmount: - type: Number - displayName: Tax Amount - description: The amount of tax for the line - required: true - totalAmount: - type: Number - displayName: Total Amount - description: 'The total amount of the line, inclusive of discounts and tax' - required: false - accountRef: - type: Object - displayName: Nominal Account Reference - description: Reference to the nominal account the line item is linked to - required: true - taxRateRef: - type: Object - displayName: Tax Rate Reference - description: Reference to the tax rate code the line item is linked to - required: true - itemRef: - type: Object - displayName: Item Reference - description: 'Reference to the product or service type, or inventory item' - required: true - trackingCategoryRefs: - type: Array - displayName: Tracking Category References - description: A collection of categories this item is being tracked against - required: true - required: true - paymentAllocations: - type: Array - displayName: Payment Allocations - description: A collection of payments allocated to the direct transaction - properties: - payment: - type: Object - displayName: Payment - description: The payment to be allocated - properties: - id: - type: String - displayName: Identifier - description: The identifier for the allocated payment - required: true - accountRef: - type: Object - displayName: Account Reference - description: Reference to the account associated with the allocated payment - required: true - validation: - warnings: [] - information: - - field: Payment.AccountRef - details: The account in which to make the deposit - reference: - type: String - displayName: Reference - description: Reference associated with the allocated payment - required: false - validation: - warnings: [] - information: - - field: Payment.Reference - details: Use to reference the check number of this deposit. - note: - type: String - displayName: Note - description: Any additional text based information associated with the allocated payment - required: true - currency: - type: String - displayName: Currency - description: The currency for the payment - required: true - currencyRate: - type: Number - displayName: Currency Exchange Rate - description: The exchange rate between the currency of the allocated payment and the currency of the base company - required: true - paidOnDate: - type: DateTime - displayName: Paid On Date - description: The date the payment was paid - required: true - totalAmount: - type: Number - displayName: Total Amount - description: The total amount that has been paid - required: true - required: true - required: true - validation: - warnings: - - field: PaymentAllocations - details: Must contain a single payment allocation - information: [] - taxAmount: - type: Number - displayName: Tax Amount - description: The total amount of tax on the direct transaction - required: true - subTotal: - type: Number - displayName: Sub Total Amount - description: The total amount of the direct transaction excluding any taxes - required: false - totalAmount: - type: Number - displayName: Total Amount - description: 'The amount of the direct transaction, inclusive of tax' - required: false - sourceModifiedDate: - type: DateTime - displayName: Source Modified Date - description: The date the record was last changed in the originating system - required: false - modifiedDate: - type: DateTime - displayName: Modified Date - description: The date the record was last updated in the system cache - required: false - required: true - QuickBooks Online Sandbox: - value: - type: Object - displayName: Direct Cost - description: Direct Cost - properties: - contactRef: - type: Object - displayName: Contact Ref - description: 'The contact associated with the direct transaction, if known' - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the record - required: true - dataType: - type: String - displayName: DataType - description: The name of the data type for which the ID is valid. - options: - - value: Suppliers - type: String - displayName: Suppliers - required: false - required: true - required: true - issueDate: - type: DateTime - displayName: Issue Date - description: The date the direct transaction was issued - required: false - validation: - warnings: [] - information: - - field: IssueDate - details: 'If the issue date is not supplied, the current date on the server is used.' - currencyRate: - type: Number - displayName: Currency Exchange Rate - description: The exchange rate between the currency of the direct transaction and the base currency of the company - required: false - reference: - type: String - displayName: Reference - description: User friendly reference for the direct transaction - required: false - validation: - warnings: - - field: Reference - details: Must be less than 22 characters. - information: [] - currency: - type: String - displayName: Currency - description: The currency of the direct transaction - required: false - validation: - warnings: [] - information: - - field: Currency - details: Required if multi-currency is enabled for the company. - note: - type: String - displayName: Note - description: The note attached to the direct transaction - required: false - paymentAllocations: - type: Array - displayName: Payment Allocations - description: A collection of payments allocated to the direct transaction - properties: - allocation: - type: Object - displayName: Allocation - description: The allocation information - properties: - totalAmount: - type: Number - displayName: Total Amount - description: The total amount that has been allocated - required: false - validation: - warnings: - - field: Allocation.TotalAmount - details: Must match the sum of the line items - information: [] - currency: - type: String - displayName: Currency - description: The currency of the transaction - required: false - validation: - warnings: - - field: Allocation.Currency - details: Must match the Currency of the company - information: [] - required: false - payment: - type: Object - displayName: Payment - description: The payment to be allocated - properties: - totalAmount: - type: Number - displayName: Total Amount - description: The total amount that has been paid - required: false - validation: - warnings: - - field: Payment.TotalAmount - details: Must match the sum of the line items - information: [] - currency: - type: String - displayName: Currency - description: The currency for the payment - required: false - validation: - warnings: - - field: Payment.Currency - details: Must match the Currency of the company - information: [] - accountRef: - type: Object - displayName: Account Reference - description: Reference to the account associated with the allocated payment - properties: - id: - type: String - displayName: Account ID - description: The identifier for the account - required: true - validation: - warnings: [] - information: - - field: AccountRef.Id - details: 'Must be Bank, Cash or Asset account' - required: true - required: true - required: true - validation: - warnings: - - field: PaymentAllocations - details: Must have exactly one payment allocation. - information: [] - lineItems: - type: Array - displayName: Direct Transaction Lines - description: A collection of lines that detail items related to the direct transaction - properties: - trackingCategoryRefs: - type: Array - displayName: Tracking Category References - description: A collection of categories this item is being tracked against - properties: - id: - type: String - displayName: Identifier - description: 'The identifier for the item, unique per tracking category' - required: true - validation: - warnings: - - field: TrackingCategoryRefs.TrackingCategoryRefs - details: Must be a valid Id - information: [] - required: false - validation: - warnings: - - field: LineItems.TrackingCategoryRefs - details: Only one tracking category of type CLASS can be provided per item. - - field: LineItems.TrackingCategoryRefs - details: Only one tracking category of type DEPARTMENT can be provided per invoice. - - field: LineItems.TrackingCategoryRefs - details: All DEPARTMENT tracking categories must be the same - information: [] - accountRef: - type: Object - displayName: Nominal Account Reference - description: Reference to the nominal account the line item is linked to - properties: - id: - type: String - displayName: Account ID - description: The identifier for the account - required: true - validation: - warnings: - - field: AccountRef.Id - details: Must be an Expense or Income account - information: [] - required: false - validation: - warnings: - - field: LineItems.AccountRef - details: Must be set if ItemRef is not - information: [] - itemRef: - type: Object - displayName: Item Reference - description: 'Reference to the product or service type, or inventory item' - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the item - required: true - required: false - validation: - warnings: - - field: LineItems.ItemRef - details: Must be set if AccountRef is not - information: [] - description: - type: String - displayName: Description - description: Friendly name of the goods or services purchased - required: false - validation: - warnings: - - field: LineItems.Description - details: Must be less than 4000 characters. - information: [] - quantity: - type: Number - displayName: Quantity - description: The number of units of goods or services purchased - required: true - unitAmount: - type: Number - displayName: Unit Amount - description: The price of each unit of goods or services - required: true - taxAmount: - type: Number - displayName: Tax Amount - description: The amount of tax for the line - required: false - validation: - warnings: - - field: LineItems.TaxAmount - details: Must be specified on all line items or none. If specified will override QBO tax calculations. - information: [] - taxRateRef: - type: Object - displayName: Tax Rate Reference - description: Reference to the tax rate code the line item is linked to - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the tax rate - required: true - validation: - warnings: [] - information: - - field: TaxRateRef.Id - details: 'If an organisation has Automated Sales Tax enabled for US locales, then only ''TAX'' (Automated Sales Tax) or ''NON'' (no tax) can be used. If Automated Sales Tax is disabled for US locales then ''TAX'' (Automated Sales Tax) will not be accepted and a different tax rate must be used.' - required: false - validation: - warnings: - - field: LineItems.TaxRateRef - details: Required for all companies except QuickBooks Online France companies. - information: [] - required: true - required: true - QuickBooks Online: - value: - type: Object - displayName: Direct Cost - description: Direct Cost - properties: - contactRef: - type: Object - displayName: Contact Ref - description: 'The contact associated with the direct transaction, if known' - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the record - required: true - dataType: - type: String - displayName: DataType - description: The name of the data type for which the ID is valid. - options: - - value: Suppliers - type: String - displayName: Suppliers - required: false - required: true - required: true - issueDate: - type: DateTime - displayName: Issue Date - description: The date the direct transaction was issued - required: false - validation: - warnings: [] - information: - - field: IssueDate - details: 'If the issue date is not supplied, the current date on the server is used.' - currencyRate: - type: Number - displayName: Currency Exchange Rate - description: The exchange rate between the currency of the direct transaction and the base currency of the company - required: false - reference: - type: String - displayName: Reference - description: User friendly reference for the direct transaction - required: false - validation: - warnings: - - field: Reference - details: Must be less than 22 characters. - information: [] - currency: - type: String - displayName: Currency - description: The currency of the direct transaction - required: false - validation: - warnings: [] - information: - - field: Currency - details: Required if multi-currency is enabled for the company. - note: - type: String - displayName: Note - description: The note attached to the direct transaction - required: false - paymentAllocations: - type: Array - displayName: Payment Allocations - description: A collection of payments allocated to the direct transaction - properties: - allocation: - type: Object - displayName: Allocation - description: The allocation information - properties: - totalAmount: - type: Number - displayName: Total Amount - description: The total amount that has been allocated - required: false - validation: - warnings: - - field: Allocation.TotalAmount - details: Must match the sum of the line items - information: [] - currency: - type: String - displayName: Currency - description: The currency of the transaction - required: false - validation: - warnings: - - field: Allocation.Currency - details: Must match the Currency of the company - information: [] - required: false - payment: - type: Object - displayName: Payment - description: The payment to be allocated - properties: - totalAmount: - type: Number - displayName: Total Amount - description: The total amount that has been paid - required: false - validation: - warnings: - - field: Payment.TotalAmount - details: Must match the sum of the line items - information: [] - currency: - type: String - displayName: Currency - description: The currency for the payment - required: false - validation: - warnings: - - field: Payment.Currency - details: Must match the Currency of the company - information: [] - accountRef: - type: Object - displayName: Account Reference - description: Reference to the account associated with the allocated payment - properties: - id: - type: String - displayName: Account ID - description: The identifier for the account - required: true - validation: - warnings: [] - information: - - field: AccountRef.Id - details: 'Must be Bank, Cash or Asset account' - required: true - required: true - required: true - validation: - warnings: - - field: PaymentAllocations - details: Must have exactly one payment allocation. - information: [] - lineItems: - type: Array - displayName: Direct Transaction Lines - description: A collection of lines that detail items related to the direct transaction - properties: - trackingCategoryRefs: - type: Array - displayName: Tracking Category References - description: A collection of categories this item is being tracked against - properties: - id: - type: String - displayName: Identifier - description: 'The identifier for the item, unique per tracking category' - required: true - validation: - warnings: - - field: TrackingCategoryRefs.TrackingCategoryRefs - details: Must be a valid Id - information: [] - required: false - validation: - warnings: - - field: LineItems.TrackingCategoryRefs - details: Only one tracking category of type CLASS can be provided per item. - - field: LineItems.TrackingCategoryRefs - details: Only one tracking category of type DEPARTMENT can be provided per invoice. - - field: LineItems.TrackingCategoryRefs - details: All DEPARTMENT tracking categories must be the same - information: [] - accountRef: - type: Object - displayName: Nominal Account Reference - description: Reference to the nominal account the line item is linked to - properties: - id: - type: String - displayName: Account ID - description: The identifier for the account - required: true - validation: - warnings: - - field: AccountRef.Id - details: Must be an Expense or Income account - information: [] - required: false - validation: - warnings: - - field: LineItems.AccountRef - details: Must be set if ItemRef is not - information: [] - itemRef: - type: Object - displayName: Item Reference - description: 'Reference to the product or service type, or inventory item' - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the item - required: true - required: false - validation: - warnings: - - field: LineItems.ItemRef - details: Must be set if AccountRef is not - information: [] - description: - type: String - displayName: Description - description: Friendly name of the goods or services purchased - required: false - validation: - warnings: - - field: LineItems.Description - details: Must be less than 4000 characters. - information: [] - quantity: - type: Number - displayName: Quantity - description: The number of units of goods or services purchased - required: true - unitAmount: - type: Number - displayName: Unit Amount - description: The price of each unit of goods or services - required: true - taxAmount: - type: Number - displayName: Tax Amount - description: The amount of tax for the line - required: false - validation: - warnings: - - field: LineItems.TaxAmount - details: Must be specified on all line items or none. If specified will override QBO tax calculations. - information: [] - taxRateRef: - type: Object - displayName: Tax Rate Reference - description: Reference to the tax rate code the line item is linked to - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the tax rate - required: true - validation: - warnings: [] - information: - - field: TaxRateRef.Id - details: 'If an organisation has Automated Sales Tax enabled for US locales, then only ''TAX'' (Automated Sales Tax) or ''NON'' (no tax) can be used. If Automated Sales Tax is disabled for US locales then ''TAX'' (Automated Sales Tax) will not be accepted and a different tax rate must be used.' - required: false - validation: - warnings: - - field: LineItems.TaxRateRef - details: Required for all companies except QuickBooks Online France companies. - information: [] - required: true - required: true - Sage 50 (UK): - value: - type: Object - displayName: Direct Cost - description: Direct Cost - properties: - reference: - type: String - displayName: Reference - description: The user reference for this direct cost. - required: false - issueDate: - type: Number - displayName: Issue Date - description: The date this payment was issued. - required: true - currency: - type: String - displayName: Currency - description: The currency in which the direct cost is issued in. - required: true - validation: - warnings: - - field: currency - details: This must match the target account's default currency. - information: [] - currencyRate: - type: Number - displayName: Currency Rate - description: The currency rate associated with this transaction. - required: true - accountRef: - type: Object - displayName: Bank Account - description: The bank account to pay this direct cost from. - properties: - id: - type: String - displayName: Account Id - description: Nominal code of the bank account. - required: true - validation: - warnings: - - field: accountRef.id - details: Must match the ID of an existing bank account and have a max length of 8 characters. - information: [] - required: true - subTotal: - type: Number - displayName: Sub Total - description: The net amount being paid in this direct cost. - required: true - validation: - warnings: [] - information: - - details: This must equal the sum of the line net amounts - taxAmount: - type: Number - displayName: Tax Amount - description: The tax amount being paid in this direct cost. - required: true - validation: - warnings: [] - information: - - details: This must equal the sum of the line tax amounts - totalAmount: - type: Number - displayName: Total Amount - description: The total amount being paid in this direct cost. - required: true - validation: - warnings: [] - information: - - details: This must equal the sum of the line amounts - lineItems: - type: Array - displayName: Line Items - description: Line items of the direct cost. - properties: - description: - type: String - displayName: description - description: Description of the direct cost line item. - required: false - accountRef: - type: Object - displayName: Nominal Code - description: Target bank account for the direct cost line item. - properties: - id: - type: String - displayName: Id - description: The ID of the Account the line is linked to. - required: true - required: true - unitAmount: - type: Number - displayName: Unit Amount - description: Unit amount for the direct cost line item. - required: true - validation: - warnings: - - field: LineItems.unitAmount - details: Cannot equal 0 and will be set to Net amount if not provided accordingly. - information: [] - quantity: - type: Number - displayName: Quantity - description: Quantity for the direct cost line item. - required: true - validation: - warnings: - - field: LineItems.quantity - details: Must be 1 or -1. - information: [] - subTotal: - type: Number - displayName: Net Amount - description: 'Amount for the direct cost line item. Debit entries are considered positive, and credit entries are considered negative.' - required: true - validation: - warnings: - - field: LineItems.subTotal - details: Cannot have both subtotal and tax amount as 0 for line item. - information: [] - taxAmount: - type: Number - displayName: Tax Amount - description: Tax amount for the direct cost line item. - required: false - validation: - warnings: - - field: LineItems.taxAmount - details: Cannot have both tax amount and subtotal as 0 for line item. - information: [] - totalAmount: - type: Number - displayName: Total Amount - description: Total amount for the direct cost line item. - required: false - validation: - warnings: [] - information: - - field: LineItems.totalAmount - details: Will be auto populated using tax amount and net amount. - taxCode: - type: Number - displayName: Tax Code Id - description: The tax code ID associated with this transaction. - required: true - trackingCategoryRefs: - type: Object - displayName: Tracking Category References - description: Tracking categories associated with this transaction. - properties: - id: - type: String - displayName: Id - description: The ID of the tracking category associated with the transaction - required: true - validation: - warnings: - - field: id - details: 'A department is required. If a project reference is provided, the cost code for that project must also be provided.' - information: [] - required: true - required: true - required: true - validation: - warnings: [] - information: - - details: 'Pushing to Sage 50 2015 (v21) or below is not supported. To enable push, please upgrade to at least Sage 50 2016 (v22) and re-sync the company.' - Sage Intacct: - value: - type: Object - displayName: Direct Cost - description: Direct Cost - properties: - note: - type: String - displayName: Note - description: The note attached to the direct transaction - required: true - validation: - warnings: [] - information: - - field: Note - details: Must be used to provide payee's name and contain no more than 80 characters. - lineItems: - type: Array - displayName: Direct Transaction Lines - description: A collection of lines that detail items related to the direct transaction - properties: - unitAmount: - type: Number - displayName: Unit Amount - description: The price of each unit of goods or services - required: true - taxRateRef: - type: Object - displayName: Tax Rate Reference - description: Reference to the tax rate code the line item is linked to - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the tax rate - required: true - validation: - warnings: [] - information: - - field: TaxRateRef.Id - details: Must be an existing tax rate in Sage Intacct. - required: true - accountRef: - type: Object - displayName: Nominal Account Reference - description: Reference to the nominal account the line item is linked to - properties: - id: - type: String - displayName: Account ID - description: The identifier for the account - required: true - required: true - description: - type: String - displayName: Description - description: Friendly name of the goods or services purchased - required: false - validation: - warnings: [] - information: - - field: LineItems.Description - details: Must not contain no more than 1000 characters. - taxAmount: - type: Number - displayName: Tax Amount - description: The amount of tax for the line - required: false - totalAmount: - type: Number - displayName: Total Amount - description: 'The total amount of the line, inclusive of discounts and tax' - required: false - subTotal: - type: Number - displayName: Sub Total Amount - description: 'The amount of the line, inclusive of discounts but exclusive of tax' - required: false - trackingCategoryRefs: - type: Array - displayName: Tracking Category References - description: A collection of categories this item is being tracked against - properties: - id: - type: String - displayName: Identifier - description: 'The identifier for the item, unique per tracking category' - required: false - name: - type: String - displayName: Tracking Category Name - description: The name of the category referenced by the identifier - required: false - required: false - required: true - validation: - warnings: [] - information: - - field: LineItems - details: Must contain at least one line item. - paymentAllocations: - type: Array - displayName: Payment Allocations - description: A collection of payments allocated to the direct transaction - properties: - payment: - type: Object - displayName: Payment - description: The payment to be allocated - properties: - paidOnDate: - type: DateTime - displayName: Paid On Date - description: The date the payment was paid - required: true - accountRef: - type: Object - displayName: Account Reference - description: Reference to the account associated with the allocated payment - properties: - id: - type: String - displayName: Account ID - description: The identifier for the account - required: true - required: true - totalAmount: - type: Number - displayName: Total Amount - description: The total amount that has been paid - required: false - validation: - warnings: [] - information: - - field: Payment.TotalAmount - details: 'If provided, must match the sum of the line items.' - required: true - allocation: - type: Object - displayName: Allocation - description: The allocation information - properties: - totalAmount: - type: Number - displayName: Total Amount - description: The total amount that has been allocated - required: false - validation: - warnings: [] - information: - - field: Allocation.TotalAmount - details: 'If provided, must match the sum of the line items.' - required: true - required: true - validation: - warnings: [] - information: - - field: PaymentAllocations - details: Must contain a single allocation. - currency: - type: String - displayName: Currency - description: The currency of the direct transaction - required: false - validation: - warnings: - - field: Currency - details: When supplying a currency ensure that it exists in your Sage Intacct entity otherwise the request will fail. - information: [] - reference: - type: String - displayName: Reference - description: User friendly reference for the direct transaction - required: false - validation: - warnings: [] - information: - - field: Reference - details: Must not contain no more than 45 characters. - currencyRate: - type: Number - displayName: Currency Exchange Rate - description: The exchange rate between the currency of the direct transaction and the base currency of the company - required: false - totalAmount: - type: Number - displayName: Total Amount - description: 'The amount of the direct transaction, inclusive of tax' - required: false - validation: - warnings: [] - information: - - field: TotalAmount - details: 'If provided, must match the sum of the line items.' - required: true - Sandbox: - value: - type: Object - displayName: Direct Cost - description: Direct Cost - properties: - reference: - type: String - displayName: Reference - description: User friendly reference for the direct transaction - required: true - note: - type: String - displayName: Note - description: The note attached to the direct transaction - required: true - contactRef: - type: Object - displayName: Contact Ref - description: 'The contact associated with the direct transaction, if known' - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the record - required: true - dataType: - type: String - displayName: DataType - description: The name of the data type for which the ID is valid. - required: true - required: true - issueDate: - type: DateTime - displayName: Issue Date - description: The date the direct transaction was issued - required: true - currency: - type: String - displayName: Currency - description: The currency of the direct transaction - required: true - currencyRate: - type: Number - displayName: Currency Exchange Rate - description: The exchange rate between the currency of the direct transaction and the base currency of the company - required: true - lineItems: - type: Array - displayName: Direct Transaction Lines - description: A collection of lines that detail items related to the direct transaction - properties: - description: - type: String - displayName: Description - description: Friendly name of the goods or services purchased - required: true - accountRef: - type: Object - displayName: Nominal Account Reference - description: Reference to the nominal account the line item is linked to - properties: - id: - type: String - displayName: Account ID - description: The identifier for the account - required: true - name: - type: String - displayName: Name - description: Name of the account - required: true - required: true - taxRateRef: - type: Object - displayName: Tax Rate Reference - description: Reference to the tax rate code the line item is linked to - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the tax rate - required: true - name: - type: String - displayName: Name - description: The name of the tax rate referenced by the identifier - required: true - effectiveTaxRate: - type: Number - displayName: Effective Tax Rate - description: 'The total applied tax percentage, including compounding details' - required: true - required: true - unitAmount: - type: Number - displayName: Unit Amount - description: The price of each unit of goods or services - required: true - quantity: - type: Number - displayName: Quantity - description: The number of units of goods or services purchased - required: true - discountAmount: - type: Number - displayName: Discount Amount - description: 'The value, in the given currency, of any discounts applied' - required: true - discountPercentage: - type: Number - displayName: Discount Percentage - description: The percentage rate of any discount that has been applied - required: true - subTotal: - type: Number - displayName: Sub Total Amount - description: 'The amount of the line, inclusive of discounts but exclusive of tax' - required: true - taxAmount: - type: Number - displayName: Tax Amount - description: The amount of tax for the line - required: true - totalAmount: - type: Number - displayName: Total Amount - description: 'The total amount of the line, inclusive of discounts and tax' - required: true - itemRef: - type: Object - displayName: Item Reference - description: 'Reference to the product or service type, or inventory item' - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the item - required: true - name: - type: String - displayName: Name - description: The name of the item referenced by the identifier - required: true - required: true - trackingCategoryRefs: - type: Array - displayName: Tracking Category References - description: A collection of categories this item is being tracked against - properties: - id: - type: String - displayName: Identifier - description: 'The identifier for the item, unique per tracking category' - required: true - name: - type: String - displayName: Tracking Category Name - description: The name of the category referenced by the identifier - required: true - required: true - tracking: - type: Object - displayName: Tracking - description: Information this item is being tracked against - properties: - recordRefs: - type: Array - displayName: Record References - description: A collection of records this item is being tracked against - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the record - required: true - dataType: - type: String - displayName: DataType - description: The name of the data type for which the ID is valid. - required: true - required: true - invoiceTo: - type: Object - displayName: Invoice To - description: The entity the record should be invoiced to - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the record - required: true - dataType: - type: String - displayName: DataType - description: The name of the data type for which the ID is valid. - required: true - required: true - required: true - required: true - paymentAllocations: - type: Array - displayName: Payment Allocations - description: A collection of payments allocated to the direct transaction - properties: - payment: - type: Object - displayName: Payment - description: The payment to be allocated - properties: - id: - type: String - displayName: Identifier - description: The identifier for the allocated payment - required: true - note: - type: String - displayName: Note - description: Any additional text based information associated with the allocated payment - required: true - reference: - type: String - displayName: Reference - description: Reference associated with the allocated payment - required: true - accountRef: - type: Object - displayName: Account Reference - description: Reference to the account associated with the allocated payment - properties: - id: - type: String - displayName: Account ID - description: The identifier for the account - required: true - name: - type: String - displayName: Name - description: Name of the account - required: true - required: true - currency: - type: String - displayName: Currency - description: The currency for the payment - required: true - currencyRate: - type: Number - displayName: Currency Exchange Rate - description: The exchange rate between the currency of the allocated payment and the currency of the base company - required: true - paidOnDate: - type: DateTime - displayName: Paid On Date - description: The date the payment was paid - required: true - totalAmount: - type: Number - displayName: Total Amount - description: The total amount that has been paid - required: true - required: true - allocation: - type: Object - displayName: Allocation - description: The allocation information - properties: - currency: - type: String - displayName: Currency - description: The currency of the transaction - required: true - currencyRate: - type: Number - displayName: Currency Exchange Rate - description: The exchange rate between the currency of the allocated payment and the currency of the transaction - required: true - allocatedOnDate: - type: DateTime - displayName: Allocated On Date - description: The date the payment was allocated - required: true - totalAmount: - type: Number - displayName: Total Amount - description: The total amount that has been allocated - required: true - required: true - required: true - subTotal: - type: Number - displayName: Sub Total Amount - description: The total amount of the direct transaction excluding any taxes - required: true - taxAmount: - type: Number - displayName: Tax Amount - description: The total amount of tax on the direct transaction - required: true - totalAmount: - type: Number - displayName: Total Amount - description: 'The amount of the direct transaction, inclusive of tax' - required: true - metadata: - type: Object - displayName: Metadata - description: Miscellaneous data about the item - properties: - isDeleted: - type: Boolean - displayName: IsDeleted - description: A boolean to indicate whether the object has been deleted - required: true - required: true - required: true - Xero: - value: - type: Object - displayName: Direct Cost - description: Direct Cost - properties: - issueDate: - type: DateTime - displayName: Issue Date - description: The date the direct transaction was issued - required: true - validation: - warnings: [] - information: - - field: IssueDate - details: Must be provided. - reference: - type: String - displayName: Reference - description: User friendly reference for the direct transaction - required: false - validation: - warnings: [] - information: - - field: Reference - details: Must not exceed 255 characters. - currency: - type: String - displayName: Currency - description: The currency of the direct transaction - required: true - validation: - warnings: [] - information: - - field: Currency - details: Must be provided. - currencyRate: - type: Number - displayName: Currency Exchange Rate - description: The exchange rate between the currency of the direct transaction and the base currency of the company - required: false - taxAmount: - type: Number - displayName: Tax Amount - description: The total amount of tax on the direct transaction - required: true - validation: - warnings: [] - information: - - field: TaxAmount - details: Must be provided. - totalAmount: - type: Number - displayName: Total Amount - description: 'The amount of the direct transaction, inclusive of tax' - required: true - validation: - warnings: [] - information: - - field: TotalAmount - details: Must be provided. - contactRef: - type: Object - displayName: Contact Ref - description: 'The contact associated with the direct transaction, if known' - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the record - required: true - validation: - warnings: - - field: ContactRef.Id - details: Must be a valid GUID. - - field: ContactRef.Id - details: Must match the ID of an existing contact. - information: - - field: ContactRef.Id - details: Must be provided. - required: true - validation: - warnings: [] - information: - - field: ContactRef - details: Must be provided. - paymentAllocations: - type: Array - displayName: Payment Allocations - description: A collection of payments allocated to the direct transaction - properties: - payment: - type: Object - displayName: Payment - description: The payment to be allocated - properties: - accountRef: - type: Object - displayName: Account Reference - description: Reference to the account associated with the allocated payment - properties: - id: - type: String - displayName: Account ID - description: The identifier for the account - required: true - validation: - warnings: - - field: AccountRef.Id - details: Must be a bank account. - - field: AccountRef.Id - details: Must match the ID of an existing bank account. - information: - - field: AccountRef.Id - details: Must be provided. - required: true - validation: - warnings: [] - information: - - field: Payment.AccountRef - details: Must be provided. - required: true - validation: - warnings: [] - information: - - field: PaymentAllocations.Payment - details: Must be provided. - allocation: - type: Object - displayName: Allocation - description: The allocation information - properties: - totalAmount: - type: Number - displayName: Total Amount - description: The total amount that has been allocated - required: true - validation: - warnings: - - field: Allocation.TotalAmount - details: Must be equal to the sum of line items. - information: - - field: Allocation.TotalAmount - details: Must be provided. - required: true - validation: - warnings: [] - information: - - field: PaymentAllocations.Allocation - details: Must be provided. - required: true - validation: - warnings: [] - information: - - field: PaymentAllocations - details: Must be provided. - lineItems: - type: Array - displayName: Direct Transaction Lines - description: A collection of lines that detail items related to the direct transaction - properties: - description: - type: String - displayName: Description - description: Friendly name of the goods or services purchased - required: true - validation: - warnings: [] - information: - - field: LineItems.Description - details: Must not be longer than 4000 characters long. - quantity: - type: Number - displayName: Quantity - description: The number of units of goods or services purchased - required: true - validation: - warnings: [] - information: - - field: LineItems.Quantity - details: Must be provided. - unitAmount: - type: Number - displayName: Unit Amount - description: The price of each unit of goods or services - required: true - validation: - warnings: [] - information: - - field: LineItems.UnitAmount - details: Must be provided. - totalAmount: - type: Number - displayName: Total Amount - description: 'The total amount of the line, inclusive of discounts and tax' - required: false - validation: - warnings: - - field: LineItems.TotalAmount - details: 'When negative, the push item will be converted to a DirectIncome and will be pushed accordingly.' - information: - - field: LineItems.TotalAmount - details: 'When one line is negative, all lines must be negative.' - taxAmount: - type: Number - displayName: Tax Amount - description: The amount of tax for the line - required: true - validation: - warnings: [] - information: - - field: LineItems.TaxAmount - details: Must be provided. - accountRef: - type: Object - displayName: Nominal Account Reference - description: Reference to the nominal account the line item is linked to - properties: - id: - type: String - displayName: Account ID - description: The identifier for the account - required: true - validation: - warnings: - - field: AccountRef.Id - details: Must be a valid GUID. - - field: AccountRef.Id - details: Must match the ID of an existing account. - information: - - field: AccountRef.Id - details: Must be provided. - required: true - validation: - warnings: [] - information: - - field: LineItems.AccountRef - details: Must be provided. - trackingCategoryRefs: - type: Array - displayName: Tracking Category References - description: A collection of categories this item is being tracked against - properties: - id: - type: String - displayName: Identifier - description: 'The identifier for the item, unique per tracking category' - required: true - validation: - warnings: [] - information: - - field: TrackingCategoryRefs.Id - details: Must be provided. - required: false - validation: - warnings: [] - information: - - field: LineItems.TrackingCategoryRefs - details: Tracking categories must not have the same parent tracking category. - - field: LineItems.TrackingCategoryRefs - details: Maximum of 2 Tracking Categories. - taxRateRef: - type: Object - displayName: Tax Rate Reference - description: Reference to the tax rate code the line item is linked to - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the tax rate - required: false - validation: - warnings: - - field: TaxRateRef.Id - details: Must match the ID of an existing tax rate. - information: - - field: TaxRateRef.Id - details: 'If not provided, will be set to the default tax rate for the line''s account.' - required: false - itemRef: - type: Object - displayName: Item Reference - description: 'Reference to the product or service type, or inventory item' - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the item - required: false - validation: - warnings: - - field: ItemRef.Id - details: Must be a valid GUID. - - field: ItemRef.Id - details: Must match the ID of an existing item. - information: [] - required: false - required: true - validation: - warnings: [] - information: - - field: LineItems - details: Must be provided. - required: true - validation: - warnings: - - details: 'When negative, the push item will be converted to a DirectIncome and will be pushed accordingly.' - information: [] - Zoho Books: - value: - type: Object - displayName: Direct Cost - description: Direct Cost - properties: - reference: - type: String - displayName: Reference - description: User friendly reference for the direct transaction - required: false - note: - type: String - displayName: Note - description: The note attached to the direct transaction - required: false - issueDate: - type: DateTime - displayName: Issue Date - description: The date the direct transaction was issued - required: true - currencyRate: - type: Number - displayName: Currency Exchange Rate - description: The exchange rate between the currency of the direct transaction and the base currency of the company - required: false - contactRef: - type: Object - displayName: Contact Ref - description: 'The contact associated with the direct transaction, if known' - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the record - required: false - required: false - validation: - warnings: [] - information: - - field: ContactRef - details: Required when pushing a negative direct cost & should reference either a Customer or Supplier when provided - lineItems: - type: Array - displayName: Direct Transaction Lines - description: A collection of lines that detail items related to the direct transaction - properties: - totalAmount: - type: Number - displayName: Total Amount - description: 'The total amount of the line, inclusive of discounts and tax' - required: false - validation: - warnings: [] - information: - - field: LineItems.TotalAmount - details: Should be provided when SubTotal is not provided - subTotal: - type: Number - displayName: Sub Total Amount - description: 'The amount of the line, inclusive of discounts but exclusive of tax' - required: false - validation: - warnings: [] - information: - - field: LineItems.SubTotal - details: Should be provided when TotalAmount is not provided - accountRef: - type: Object - displayName: Nominal Account Reference - description: Reference to the nominal account the line item is linked to - properties: - id: - type: String - displayName: Account ID - description: The identifier for the account - required: true - required: true - taxRateRef: - type: Object - displayName: Tax Rate Reference - description: Reference to the tax rate code the line item is linked to - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the tax rate - required: false - required: false - trackingCategoryRefs: - type: Array - displayName: Tracking Category References - description: A collection of categories this item is being tracked against - required: false - required: true - currency: - type: String - displayName: Currency - description: The currency of the direct transaction - required: false - validation: - warnings: [] - information: - - field: Currency - details: Is required when pushing a negative direct cost - paymentAllocations: - type: Array - displayName: Payment Allocations - description: A collection of payments allocated to the direct transaction - properties: - payment: - type: Object - displayName: Payment - description: The payment to be allocated - properties: - currency: - type: String - displayName: Currency - description: The currency for the payment - required: false - validation: - warnings: [] - information: - - field: Payment.Currency - details: Is required when pushing a negative direct cost - accountRef: - type: Object - displayName: Account Reference - description: Reference to the account associated with the allocated payment - properties: - id: - type: String - displayName: Account ID - description: The identifier for the account - required: true - required: true - required: true - allocation: - type: Object - displayName: Allocation - description: The allocation information - properties: - currency: - type: String - displayName: Currency - description: The currency of the transaction - required: false - validation: - warnings: [] - information: - - field: Allocation.Currency - details: Is required when pushing a negative direct cost - required: true - required: true - required: true - '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' - operationId: get-create-directCosts-model - x-speakeasy-group: loan-writeback.direct-costs - description: | - The *Get create direct cost model* endpoint returns the expected data for the request payload when creating a [direct cost](https://docs.codat.io/lending-api#/schemas/DirectCost) for a given company and integration. - - [Direct costs](https://docs.codat.io/lending-api#/schemas/DirectCost) are business expenses that don't impact Accounts Payable. - - **Integration-specific behavior** - - See the *response examples* for integration-specific indicative models. - '/companies/{companyId}/connections/{connectionId}/push/directCosts': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - post: - tags: - - Loan writeback - summary: Create direct cost - parameters: - - $ref: '#/components/parameters/timeoutInMinutes' - - $ref: '#/components/parameters/allowSyncOnPushComplete' - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/AccountingDirectCost/definitions/directCostPrototype' - examples: - QuickBooks Desktop: - value: - reference: test ref - note: directCost 21/03 09.20 - contactRef: - id: 80000001-1671793885 - dataType: suppliers - issueDate: '2023-03-21T10:19:52.223Z' - currency: USD - lineItems: - - description: test description line 1 - unitAmount: 7 - quantity: 1 - discountAmount: 0 - discountPercentage: 0 - subTotal: 99 - taxAmount: 360 - totalAmount: 70 - accountRef: - id: 8000000D-1671793811 - name: Purchases - Hardware for Resale - itemRef: - id: 80000001-1674566705 - name: item test - trackingCategoryRefs: - - id: 80000001-1674553252 - name: Class 1 - paymentAllocations: - - payment: - note: payment allocations note - reference: payment allocations reference - accountRef: - id: 80000028-1671794219 - name: Bank Account 1 - paidOnDate: '2023-01-28T10:19:52.223Z' - totalAmount: 54 - allocation: - currencyRate: 0 - allocatedOnDate: '2023-01-29T10:19:52.223Z' - totalAmount: 88 - subTotal: 362 - taxAmount: 4 - totalAmount: 366 - Xero: - value: - reference: Scenario One neg DC - contactRef: - id: 699f0091-b127-4796-9f15-41a2f42abeb2 - dataType: suppliers - issueDate: '2023-02-25' - currency: GBP - lineItems: - - description: negative direct cost - unitAmount: 35 - quantity: -1 - subTotal: -35 - taxAmount: -7 - totalAmount: -42 - itemRef: - id: 965cfc0e-4d80-4059-9641-4a392f9ad549 - taxRateRef: - id: INPUT2 - paymentAllocations: - - payment: - accountRef: - id: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - currency: GBP - allocation: - totalAmount: -42 - subTotal: -35 - taxAmount: -7 - totalAmount: -42 - FreeAgent: - value: - issueDate: '2023-02-12' - currency: GBP - lineItems: - - unitAmount: 15 - quantity: 1 - subTotal: 15 - accountRef: - id: '288' - paymentAllocations: - - payment: - accountRef: - id: 750-1 - allocation: {} - subTotal: 15 - taxAmount: 0 - totalAmount: 15 - Sage Intacct: - value: - reference: test ref - note: Test 1 - issueDate: '2023-03-31T00:00:00' - currency: USD - currencyRate: 0.5 - lineItems: - - accountRef: - id: '195' - unitAmount: 9.99 - quantity: 1 - subTotal: 9.99 - taxAmount: 2 - totalAmount: 11.99 - paymentAllocations: - - payment: - id: '4355' - note: test note - reference: test reference - accountRef: - id: '348' - name: CMRR Renewal - currency: USD - paidOnDate: '2023-03-31T00:00:00' - totalAmount: 11.99 - allocation: - currency: USD - allocatedOnDate: '2023-03-31T00:00:00' - totalAmount: 11.99 - subTotal: 9.99 - taxAmount: 2 - totalAmount: 11.99 - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/AccountingCreateDirectCostResponse' - examples: - FreeAgent: - value: - changes: [] - data: - id: '372060709' - issueDate: '2023-02-12T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - accountRef: - id: '288' - unitAmount: 15 - quantity: 1 - subTotal: 15 - taxAmount: 3 - totalAmount: 18 - trackingCategoryRefs: [] - paymentAllocations: - - payment: - id: '372060709' - accountRef: - id: 750-1 - currency: GBP - paidOnDate: '2023-02-12T00:00:00' - totalAmount: 18 - allocation: - currency: GBP - allocatedOnDate: '2023-02-12T00:00:00' - totalAmount: 18 - subTotal: 15 - taxAmount: 3 - totalAmount: 18 - sourceModifiedDate: '2023-02-12T15:15:53Z' - dataType: directCosts - companyId: a23f79d6-7cc9-486c-b388-8ab88faea947 - pushOperationKey: 0659a24d-2b66-4979-971e-4b98c3ed7f61 - dataConnectionKey: 35e38cd5-66ea-41b8-b555-9efd5b792b68 - requestedOnUtc: '2023-02-12T15:15:51.1723204Z' - completedOnUtc: '2023-02-12T15:15:54.7161036Z' - status: Success - statusCode: 200 - Sage Intacct: - value: - changes: - - type: Created - recordRef: - dataType: directCosts - data: - reference: test ref - note: Test 1 - issueDate: '2023-03-31T00:00:00' - currency: USD - currencyRate: 0.5 - lineItems: - - accountRef: - id: '195' - taxRateRef: - id: '95' - unitAmount: 9.99 - quantity: 1 - subTotal: 9.99 - taxAmount: 2 - totalAmount: 11.99 - trackingCategoryRefs: [] - paymentAllocations: - - payment: - id: '4355' - note: test note - reference: test reference - accountRef: - id: '348' - name: CMRR Renewal - currency: USD - paidOnDate: '2023-03-31T00:00:00' - totalAmount: 11.99 - allocation: - currency: USD - allocatedOnDate: '2023-03-31T00:00:00' - totalAmount: 11.99 - subTotal: 9.99 - taxAmount: 2 - totalAmount: 11.99 - dataType: directCosts - companyId: d7f743a9-1804-4116-8c8a-e606f7e2f66c - pushOperationKey: 0d74c1ad-00ad-4731-9e6e-98a86056959a - dataConnectionKey: fa139396-523a-4a58-bf2b-8da82c8a673f - requestedOnUtc: '2023-03-31T12:49:51.6503324Z' - status: Pending - statusCode: 202 - Xero: - value: - changes: [] - data: - reference: Scenario One neg DC - contactRef: - id: 699f0091-b127-4796-9f15-41a2f42abeb2 - dataType: suppliers - issueDate: '2023-02-25T00:00:00' - currency: GBP - lineItems: - - description: negative direct cost - taxRateRef: - id: INPUT2 - unitAmount: 35 - quantity: -1 - subTotal: -35 - taxAmount: -7 - totalAmount: -42 - itemRef: - id: 965cfc0e-4d80-4059-9641-4a392f9ad549 - trackingCategoryRefs: [] - paymentAllocations: - - payment: - accountRef: - id: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - currency: GBP - paidOnDate: '0001-01-01T00:00:00' - totalAmount: 0 - allocation: - totalAmount: -42 - subTotal: 0 - taxAmount: -7 - totalAmount: -42 - dataType: directCosts - companyId: b5efee61-3fab-4a5d-9247-de03d6eda6db - pushOperationKey: 33347930-fcc5-4f95-aa13-4a0f7291b559 - dataConnectionKey: 1e355304-4476-422e-95cb-fa2a6d47fab4 - requestedOnUtc: '2023-02-24T13:43:26.5109173Z' - status: Pending - validation: - errors: [] - warnings: [] - statusCode: 202 - '400': - $ref: '#/components/responses/BadRequest' - '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: |- - The *Create direct cost* endpoint creates a new [direct cost](https://docs.codat.io/lending-api#/schemas/DirectCost) for a given company's connection. - - [Direct costs](https://docs.codat.io/lending-api#/schemas/DirectCost) are business expenses that don't impact Accounts Payable. - - **Integration-specific behavior** - - Required data may vary by integration. To see what data to post, first call [Get create direct cost model](https://docs.codat.io/lending-api#/operations/get-create-directCosts-model). - operationId: create-direct-cost - x-speakeasy-group: loan-writeback.direct-costs - '/companies/{companyId}/connections/{connectionId}/options/payments': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - get: - summary: Get create payment model - tags: - - Loan writeback - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/PushOption' - examples: - FreeAgent: - value: - type: Object - displayName: Payment - description: A payment represents an allocation of transactions across an 'accounts receivable' account (customer) - properties: - accountRef: - type: Object - displayName: Nominal Account Reference - description: Reference to the nominal account the payment is linked to - properties: - id: - type: String - displayName: Account ID - description: The identifier for the account - required: true - validation: - warnings: - - field: AccountRef.Id - details: Must match the ID of an existing account. - information: [] - required: true - date: - type: DateTime - displayName: Date - description: The date the payment was recorded - required: true - totalAmount: - type: Number - displayName: Total Amount - description: 'The total amount of the payment, inclusive of discounts and tax' - required: true - validation: - warnings: - - field: TotalAmount - details: Must match the sum of the line amounts. - information: [] - currency: - type: String - displayName: Currency - description: Currency of the payment - required: true - currencyRate: - type: Number - displayName: Currency Exchange Rate - description: The exchange rate between the currency of the payment and the base currency of the company - required: true - lines: - type: Array - displayName: Lines - description: A collection of payment lines - properties: - amount: - type: Number - displayName: Amount - description: The total amount for the line in the payment currency - required: true - validation: - warnings: [] - information: - - field: Lines.Amount - details: Must match the sum of the link amounts. - links: - type: Array - displayName: Links - description: A collection of linked transactions - properties: - id: - type: String - displayName: Identifier - description: The identifier for the referenced transaction - required: true - amount: - type: Number - displayName: Amount - description: 'The amount by which the balance of the linked entity is altered, in the currency of the linked entity' - required: true - type: - type: String - displayName: Link Type - description: The type of transaction that is being linked - options: - - value: Invoice - type: String - displayName: Invoice - required: false - - value: CreditNote - type: String - displayName: CreditNote - required: false - - value: Other - type: String - displayName: Other - required: false - required: true - required: true - required: true - validation: - warnings: - - field: Lines - details: Only one line may be specified - information: [] - required: true - FreshBooks: - value: - type: Object - displayName: Payment - description: A payment represents an allocation of transactions across an 'accounts receivable' account (customer) - properties: - date: - type: DateTime - displayName: Date - description: The date the payment was recorded - required: true - lines: - type: Array - displayName: Lines - description: A collection of payment lines - properties: - links: - type: Array - displayName: Links - description: A collection of linked transactions - properties: - id: - type: String - displayName: Identifier - description: The identifier for the referenced transaction - required: true - amount: - type: Number - displayName: Amount - description: 'The amount by which the balance of the linked entity is altered, in the currency of the linked entity' - required: true - type: - type: String - displayName: Link Type - description: The type of transaction that is being linked - required: true - required: true - validation: - warnings: - - field: Lines.Links - details: Payment Amount must not exceed Invoice Amount Due or available Customer Credit - - field: Lines.Links - details: Must be a Payment with one Invoice of PaymentOnAccount Link or two links of types Invoice and PaymentOnAccount - information: [] - required: true - validation: - warnings: - - field: Lines - details: Only one line is supported - information: [] - currency: - type: String - displayName: Currency - description: Currency of the payment - options: - - value: AED - type: Array - displayName: AED - required: false - - value: AFN - type: Array - displayName: AFN - required: false - - value: ALL - type: Array - displayName: ALL - required: false - - value: AMD - type: Array - displayName: AMD - required: false - - value: ANG - type: Array - displayName: ANG - required: false - - value: AOA - type: Array - displayName: AOA - required: false - - value: ARS - type: Array - displayName: ARS - required: false - - value: AUD - type: Array - displayName: AUD - required: false - - value: AWG - type: Array - displayName: AWG - required: false - - value: AZN - type: Array - displayName: AZN - required: false - - value: BAM - type: Array - displayName: BAM - required: false - - value: BBD - type: Array - displayName: BBD - required: false - - value: BDT - type: Array - displayName: BDT - required: false - - value: BGN - type: Array - displayName: BGN - required: false - - value: BHD - type: Array - displayName: BHD - required: false - - value: BIF - type: Array - displayName: BIF - required: false - - value: BMD - type: Array - displayName: BMD - required: false - - value: BND - type: Array - displayName: BND - required: false - - value: BOB - type: Array - displayName: BOB - required: false - - value: BRL - type: Array - displayName: BRL - required: false - - value: BSD - type: Array - displayName: BSD - required: false - - value: BTN - type: Array - displayName: BTN - required: false - - value: BWP - type: Array - displayName: BWP - required: false - - value: BYR - type: Array - displayName: BYR - required: false - - value: BZD - type: Array - displayName: BZD - required: false - - value: CAD - type: Array - displayName: CAD - required: false - - value: CDF - type: Array - displayName: CDF - required: false - - value: CHF - type: Array - displayName: CHF - required: false - - value: CLP - type: Array - displayName: CLP - required: false - - value: CNY - type: Array - displayName: CNY - required: false - - value: COP - type: Array - displayName: COP - required: false - - value: CRC - type: Array - displayName: CRC - required: false - - value: CUC - type: Array - displayName: CUC - required: false - - value: CUP - type: Array - displayName: CUP - required: false - - value: CVE - type: Array - displayName: CVE - required: false - - value: CZK - type: Array - displayName: CZK - required: false - - value: DJF - type: Array - displayName: DJF - required: false - - value: DKK - type: Array - displayName: DKK - required: false - - value: DOP - type: Array - displayName: DOP - required: false - - value: DZD - type: Array - displayName: DZD - required: false - - value: EGP - type: Array - displayName: EGP - required: false - - value: ERN - type: Array - displayName: ERN - required: false - - value: ETB - type: Array - displayName: ETB - required: false - - value: EUR - type: Array - displayName: EUR - required: false - - value: FJD - type: Array - displayName: FJD - required: false - - value: FKP - type: Array - displayName: FKP - required: false - - value: GBP - type: Array - displayName: GBP - required: false - - value: GEL - type: Array - displayName: GEL - required: false - - value: GGP - type: Array - displayName: GGP - required: false - - value: GHS - type: Array - displayName: GHS - required: false - - value: GIP - type: Array - displayName: GIP - required: false - - value: GMD - type: Array - displayName: GMD - required: false - - value: GNF - type: Array - displayName: GNF - required: false - - value: GTQ - type: Array - displayName: GTQ - required: false - - value: GYD - type: Array - displayName: GYD - required: false - - value: HKD - type: Array - displayName: HKD - required: false - - value: HNL - type: Array - displayName: HNL - required: false - - value: HRK - type: Array - displayName: HRK - required: false - - value: HTG - type: Array - displayName: HTG - required: false - - value: HUF - type: Array - displayName: HUF - required: false - - value: IDR - type: Array - displayName: IDR - required: false - - value: ILS - type: Array - displayName: ILS - required: false - - value: IMP - type: Array - displayName: IMP - required: false - - value: INR - type: Array - displayName: INR - required: false - - value: IQD - type: Array - displayName: IQD - required: false - - value: IRR - type: Array - displayName: IRR - required: false - - value: ISK - type: Array - displayName: ISK - required: false - - value: JEP - type: Array - displayName: JEP - required: false - - value: JMD - type: Array - displayName: JMD - required: false - - value: JOD - type: Array - displayName: JOD - required: false - - value: JPY - type: Array - displayName: JPY - required: false - - value: KES - type: Array - displayName: KES - required: false - - value: KGS - type: Array - displayName: KGS - required: false - - value: KHR - type: Array - displayName: KHR - required: false - - value: KMF - type: Array - displayName: KMF - required: false - - value: KPW - type: Array - displayName: KPW - required: false - - value: KRW - type: Array - displayName: KRW - required: false - - value: KWD - type: Array - displayName: KWD - required: false - - value: KYD - type: Array - displayName: KYD - required: false - - value: KZT - type: Array - displayName: KZT - required: false - - value: LAK - type: Array - displayName: LAK - required: false - - value: LBP - type: Array - displayName: LBP - required: false - - value: LKR - type: Array - displayName: LKR - required: false - - value: LRD - type: Array - displayName: LRD - required: false - - value: LSL - type: Array - displayName: LSL - required: false - - value: LYD - type: Array - displayName: LYD - required: false - - value: MAD - type: Array - displayName: MAD - required: false - - value: MDL - type: Array - displayName: MDL - required: false - - value: MGA - type: Array - displayName: MGA - required: false - - value: MKD - type: Array - displayName: MKD - required: false - - value: MMK - type: Array - displayName: MMK - required: false - - value: MNT - type: Array - displayName: MNT - required: false - - value: MOP - type: Array - displayName: MOP - required: false - - value: MRO - type: Array - displayName: MRO - required: false - - value: MUR - type: Array - displayName: MUR - required: false - - value: MVR - type: Array - displayName: MVR - required: false - - value: MWK - type: Array - displayName: MWK - required: false - - value: MXN - type: Array - displayName: MXN - required: false - - value: MYR - type: Array - displayName: MYR - required: false - - value: MZN - type: Array - displayName: MZN - required: false - - value: NAD - type: Array - displayName: NAD - required: false - - value: NGN - type: Array - displayName: NGN - required: false - - value: NIO - type: Array - displayName: NIO - required: false - - value: NOK - type: Array - displayName: NOK - required: false - - value: NPR - type: Array - displayName: NPR - required: false - - value: NZD - type: Array - displayName: NZD - required: false - - value: OMR - type: Array - displayName: OMR - required: false - - value: PAB - type: Array - displayName: PAB - required: false - - value: PEN - type: Array - displayName: PEN - required: false - - value: PGK - type: Array - displayName: PGK - required: false - - value: PHP - type: Array - displayName: PHP - required: false - - value: PKR - type: Array - displayName: PKR - required: false - - value: PLN - type: Array - displayName: PLN - required: false - - value: PYG - type: Array - displayName: PYG - required: false - - value: QAR - type: Array - displayName: QAR - required: false - - value: RON - type: Array - displayName: RON - required: false - - value: RSD - type: Array - displayName: RSD - required: false - - value: RUB - type: Array - displayName: RUB - required: false - - value: RWF - type: Array - displayName: RWF - required: false - - value: SAR - type: Array - displayName: SAR - required: false - - value: SBD - type: Array - displayName: SBD - required: false - - value: SCR - type: Array - displayName: SCR - required: false - - value: SDG - type: Array - displayName: SDG - required: false - - value: SEK - type: Array - displayName: SEK - required: false - - value: SGD - type: Array - displayName: SGD - required: false - - value: SHP - type: Array - displayName: SHP - required: false - - value: SLL - type: Array - displayName: SLL - required: false - - value: SOS - type: Array - displayName: SOS - required: false - - value: SPL - type: Array - displayName: SPL - required: false - - value: SRD - type: Array - displayName: SRD - required: false - - value: STD - type: Array - displayName: STD - required: false - - value: SVC - type: Array - displayName: SVC - required: false - - value: SYP - type: Array - displayName: SYP - required: false - - value: SZL - type: Array - displayName: SZL - required: false - - value: THB - type: Array - displayName: THB - required: false - - value: TJS - type: Array - displayName: TJS - required: false - - value: TMT - type: Array - displayName: TMT - required: false - - value: TND - type: Array - displayName: TND - required: false - - value: TOP - type: Array - displayName: TOP - required: false - - value: TRY - type: Array - displayName: TRY - required: false - - value: TTD - type: Array - displayName: TTD - required: false - - value: TVD - type: Array - displayName: TVD - required: false - - value: TWD - type: Array - displayName: TWD - required: false - - value: TZS - type: Array - displayName: TZS - required: false - - value: UAH - type: Array - displayName: UAH - required: false - - value: UGX - type: Array - displayName: UGX - required: false - - value: USD - type: Array - displayName: USD - required: false - - value: UYU - type: Array - displayName: UYU - required: false - - value: UZS - type: Array - displayName: UZS - required: false - - value: VEF - type: Array - displayName: VEF - required: false - - value: VND - type: Array - displayName: VND - required: false - - value: VUV - type: Array - displayName: VUV - required: false - - value: WST - type: Array - displayName: WST - required: false - - value: XAF - type: Array - displayName: XAF - required: false - - value: XCD - type: Array - displayName: XCD - required: false - - value: XDR - type: Array - displayName: XDR - required: false - - value: XOF - type: Array - displayName: XOF - required: false - - value: XPF - type: Array - displayName: XPF - required: false - - value: YER - type: Array - displayName: YER - required: false - - value: ZAR - type: Array - displayName: ZAR - required: false - - value: ZMW - type: Array - displayName: ZMW - required: false - - value: ZWD - type: Array - displayName: ZWD - required: false - required: false - validation: - warnings: - - field: Currency - details: Can be used for Payments on Account only - information: [] - note: - type: String - displayName: Note - description: Any additional text based information associated with the payment - required: false - required: true - MYOB AccountRight and Essentials: - value: - type: Object - displayName: Payment - description: A payment represents an allocation of transactions across an 'accounts receivable' account (customer) - properties: - customerRef: - type: Object - displayName: Customer Reference - description: Reference to the customer the payment has been sent by - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the customer - required: true - validation: - warnings: - - field: CustomerRef.Id - details: Must be a valid GUID. - - field: CustomerRef.Id - details: Must match the ID of an existing customer. - information: - - field: CustomerRef.Id - details: Must be provided. - required: true - validation: - warnings: [] - information: - - field: CustomerRef - details: Must be provided. - accountRef: - type: Object - displayName: Nominal Account Reference - description: Reference to the nominal account the payment is linked to - properties: - id: - type: String - displayName: Account ID - description: The identifier for the account - required: true - validation: - warnings: - - field: AccountRef.Id - details: Must be a valid GUID. - - field: AccountRef.Id - details: Must match the ID of an existing account. - information: - - field: AccountRef.Id - details: Must be provided. - required: true - validation: - warnings: [] - information: - - field: AccountRef - details: Must be provided. - totalAmount: - type: Number - displayName: Total Amount - description: 'The total amount of the payment, inclusive of discounts and tax' - required: true - validation: - warnings: - - field: TotalAmount - details: Precision must be maximum of two decimal places. - - field: TotalAmount - details: Must be greater than zero. - information: - - field: TotalAmount - details: Must be provided and must equal the sum of the link items amount. - date: - type: DateTime - displayName: Date - description: The date the payment was recorded - required: true - validation: - warnings: [] - information: - - field: Date - details: Must be provided. - reference: - type: String - displayName: Reference - description: A user friendly reference for the payment - required: false - validation: - warnings: [] - information: - - field: Reference - details: Must not be greater than 8 characters long. - currency: - type: String - displayName: Currency - description: Currency of the payment - options: - - value: AUD - type: String - displayName: Australian Dollar - required: false - required: true - validation: - warnings: [] - information: - - field: Currency - details: Must be provided. - lines: - type: Array - displayName: Lines - description: A collection of payment lines - properties: - amount: - type: Number - displayName: Amount - description: The total amount for the line in the payment currency - required: true - validation: - warnings: [] - information: - - field: Lines.Amount - details: Must be provided. - links: - type: Array - displayName: Links - description: A collection of linked transactions - properties: - id: - type: String - displayName: Identifier - description: The identifier for the referenced transaction - required: true - validation: - warnings: [] - information: - - field: Links.Id - details: Must be provided. - amount: - type: Number - displayName: Amount - description: 'The amount by which the balance of the linked entity is altered, in the currency of the linked entity' - required: true - validation: - warnings: [] - information: - - field: Links.Amount - details: Precision must be maximum of two decimal places. - - field: Links.Amount - details: Must be provided. - type: - type: String - displayName: Link Type - description: The type of transaction that is being linked - options: - - value: Invoice - type: String - required: false - required: true - validation: - warnings: [] - information: - - field: Links.Type - details: Must be provided. - required: true - validation: - warnings: [] - information: - - field: Lines.Links - details: Must be provided. - required: true - validation: - warnings: [] - information: - - field: Lines - details: Must be provided. - required: true - Oracle NetSuite: - value: - type: Object - displayName: Payment - description: A payment represents an allocation of transactions across an 'accounts receivable' account (customer) - properties: - customerRef: - type: Object - displayName: Customer Reference - description: Reference to the customer the payment has been sent by - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the customer - required: true - required: true - accountRef: - type: Object - displayName: Nominal Account Reference - description: Reference to the nominal account the payment is linked to - properties: - id: - type: String - displayName: Account ID - description: The identifier for the account - required: true - validation: - warnings: - - field: AccountRef.Id - details: Must match the ID of an existing account of type 'Bank' OR type 'Asset' (with category 'FixedAsset'/'OthAsset'/'OthCurrAsset') OR type 'Liability' (with category 'LongTermLiab'/'OthCurrLiab') OR type 'Expense' (with category 'Expense'/'OthExpense') - information: [] - required: false - totalAmount: - type: Number - displayName: Total Amount - description: 'The total amount of the payment, inclusive of discounts and tax' - required: true - validation: - warnings: - - field: TotalAmount - details: Must be greater than zero - - field: TotalAmount - details: Must be provided and must be equal to the sum of the lines amounts - information: [] - date: - type: DateTime - displayName: Date - description: The date the payment was recorded - required: true - currency: - type: String - displayName: Currency - description: Currency of the payment - required: false - validation: - warnings: - - field: Currency - details: If the currency is set make sure it's the same as the 'Invoice' and/or 'CreditMemo' currency - information: [] - note: - type: String - displayName: Note - description: Any additional text based information associated with the payment - required: false - reference: - type: String - displayName: Reference - description: A user friendly reference for the payment - required: false - validation: - warnings: - - field: Reference - details: The id format should be 'location-' - information: - - field: Reference - details: This field can be used to provide a tracking category id (Location only) - lines: - type: Array - displayName: Lines - description: A collection of payment lines - properties: - amount: - type: Number - displayName: Amount - description: The total amount for the line in the payment currency - required: true - links: - type: Array - displayName: Links - description: A collection of linked transactions - properties: - id: - type: String - displayName: Identifier - description: The identifier for the referenced transaction - required: true - validation: - warnings: - - field: Links.Id - details: If the Link Type specified is an 'Invoice' or 'CreditNote' make sure the status is either 'PartiallyPaid' or 'Submitted' - information: [] - type: - type: String - displayName: Link Type - description: The type of transaction that is being linked - options: - - value: Invoice - type: String - displayName: Invoice - required: false - - value: CreditNote - type: String - displayName: Credit Note - required: false - - value: PaymentOnAccount - type: String - displayName: Payment On Account - required: false - required: true - amount: - type: Number - displayName: Amount - description: 'The amount by which the balance of the linked entity is altered, in the currency of the linked entity' - required: true - required: true - required: true - required: true - QuickBooks Desktop: - value: - type: Object - displayName: Payment - description: A payment represents an allocation of transactions across an 'accounts receivable' account (customer) - properties: - customerRef: - type: Object - displayName: Customer Reference - description: Reference to the customer the payment has been sent by - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the customer - required: true - validation: - warnings: - - field: CustomerRef.Id - details: Must match the ID of an existing supplier. - information: [] - required: true - accountRef: - type: Object - displayName: Nominal Account Reference - description: Reference to the nominal account the payment is linked to - properties: - id: - type: String - displayName: Account ID - description: The identifier for the account - required: true - validation: - warnings: - - field: AccountRef.Id - details: Must match the ID of an existing 'Bank' or 'Other Current Asset' account. - information: - - field: AccountRef.Id - details: Not required if total amount of the payment is 0. - required: true - date: - type: DateTime - displayName: Date - description: The date the payment was recorded - required: true - note: - type: String - displayName: Note - description: Any additional text based information associated with the payment - required: false - reference: - type: String - displayName: Reference - description: A user friendly reference for the payment - required: false - validation: - warnings: - - field: Reference - details: Max length of 20 characters. - information: [] - currency: - type: String - displayName: Currency - description: Currency of the payment - required: false - validation: - warnings: - - field: Currency - details: Must be a three letter ISO code that matches the currency of the customer. - - field: Currency - details: Can only be set if the QuickBooks Desktop company has Multicurrency enabled. - information: - - field: Currency - details: 'If not set, will default to the default currency of the customer.' - currencyRate: - type: Number - displayName: Currency Exchange Rate - description: The exchange rate between the currency of the payment and the base currency of the company - required: false - validation: - warnings: [] - information: - - field: CurrencyRate - details: 'If not set, will default to the rate set within QuickBooks Desktop, if no rate is set in QuickBooks Desktop, it will default to 1.' - - field: CurrencyRate - details: Can only be set if the QuickBooks Desktop company has Multicurrency enabled. - totalAmount: - type: Number - displayName: Total Amount - description: 'The total amount of the payment, inclusive of discounts and tax' - required: true - validation: - warnings: - - field: TotalAmount - details: Must match the sum of amounts in the lines - information: [] - lines: - type: Array - displayName: Lines - description: A collection of payment lines - properties: - amount: - type: Number - displayName: Amount - description: The total amount for the line in the payment currency - required: true - validation: - warnings: - - field: Lines.Amount - details: Amount plus the sum of amounts in the links must equal 0 - information: [] - links: - type: Array - displayName: Links - description: A collection of linked transactions - properties: - type: - type: String - displayName: Link Type - description: The type of transaction that is being linked - options: - - value: Invoice - type: String - displayName: Invoice - required: false - - value: CreditNote - type: String - displayName: Credit Note - required: false - - value: PaymentOnAccount - type: String - displayName: Payment On Account - required: false - required: true - validation: - warnings: - - field: Links.Type - details: 'Only 1 link with type ''PaymentOnAccount'' may be specified per line, this line may contain no other links' - - field: Links.Type - details: Only 1 link with type 'Invoice' may be specified per line - information: [] - id: - type: String - displayName: Identifier - description: The identifier for the referenced transaction - required: true - amount: - type: Number - displayName: Amount - description: 'The amount by which the balance of the linked entity is altered, in the currency of the linked entity' - required: true - required: true - required: true - required: true - QuickBooks Online Sandbox: - value: - type: Object - displayName: Payment - description: A payment represents an allocation of transactions across an 'accounts receivable' account (customer) - properties: - customerRef: - type: Object - displayName: Customer Reference - description: Reference to the customer the payment has been sent by - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the customer - required: true - required: true - validation: - warnings: [] - information: - - field: CustomerRef - details: 'Must be the ID of the Customer associated with the Invoice, Credit Note or Payment On Account.' - accountRef: - type: Object - displayName: Nominal Account Reference - description: Reference to the nominal account the payment is linked to - properties: - id: - type: String - displayName: Account ID - description: The identifier for the account - required: true - required: false - validation: - warnings: [] - information: - - field: AccountRef - details: Must match the ID of an existing Account. - paymentMethodRef: - type: Object - displayName: Payment Method Reference - description: Reference to the method of this payment - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the payment method - required: true - required: false - totalAmount: - type: Number - displayName: Total Amount - description: 'The total amount of the payment, inclusive of discounts and tax' - required: true - currency: - type: String - displayName: Currency - description: Currency of the payment - required: false - validation: - warnings: [] - information: - - field: Currency - details: Required if multi-currency is enabled for the company - date: - type: DateTime - displayName: Date - description: The date the payment was recorded - required: true - note: - type: String - displayName: Note - description: Any additional text based information associated with the payment - required: false - lines: - type: Array - displayName: Lines - description: A collection of payment lines - properties: - amount: - type: Number - displayName: Amount - description: The total amount for the line in the payment currency - required: true - links: - type: Array - displayName: Links - description: A collection of linked transactions - properties: - type: - type: String - displayName: Link Type - description: The type of transaction that is being linked - options: - - value: Invoice - type: String - displayName: Invoice - required: false - - value: CreditNote - type: String - displayName: Credit Note - required: false - - value: PaymentOnAccount - type: String - displayName: Payment On Account - required: false - required: true - id: - type: String - displayName: Identifier - description: The identifier for the referenced transaction - required: true - amount: - type: Number - displayName: Amount - description: 'The amount by which the balance of the linked entity is altered, in the currency of the linked entity' - required: true - required: true - required: false - required: true - QuickBooks Online: - value: - type: Object - displayName: Payment - description: A payment represents an allocation of transactions across an 'accounts receivable' account (customer) - properties: - customerRef: - type: Object - displayName: Customer Reference - description: Reference to the customer the payment has been sent by - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the customer - required: true - required: true - validation: - warnings: [] - information: - - field: CustomerRef - details: 'Must be the ID of the Customer associated with the Invoice, Credit Note or Payment On Account.' - accountRef: - type: Object - displayName: Nominal Account Reference - description: Reference to the nominal account the payment is linked to - properties: - id: - type: String - displayName: Account ID - description: The identifier for the account - required: true - required: false - validation: - warnings: [] - information: - - field: AccountRef - details: Must match the ID of an existing Account. - paymentMethodRef: - type: Object - displayName: Payment Method Reference - description: Reference to the method of this payment - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the payment method - required: true - required: false - totalAmount: - type: Number - displayName: Total Amount - description: 'The total amount of the payment, inclusive of discounts and tax' - required: true - currency: - type: String - displayName: Currency - description: Currency of the payment - required: false - validation: - warnings: [] - information: - - field: Currency - details: Required if multi-currency is enabled for the company - date: - type: DateTime - displayName: Date - description: The date the payment was recorded - required: true - note: - type: String - displayName: Note - description: Any additional text based information associated with the payment - required: false - lines: - type: Array - displayName: Lines - description: A collection of payment lines - properties: - amount: - type: Number - displayName: Amount - description: The total amount for the line in the payment currency - required: true - links: - type: Array - displayName: Links - description: A collection of linked transactions - properties: - type: - type: String - displayName: Link Type - description: The type of transaction that is being linked - options: - - value: Invoice - type: String - displayName: Invoice - required: false - - value: CreditNote - type: String - displayName: Credit Note - required: false - - value: PaymentOnAccount - type: String - displayName: Payment On Account - required: false - required: true - id: - type: String - displayName: Identifier - description: The identifier for the referenced transaction - required: true - amount: - type: Number - displayName: Amount - description: 'The amount by which the balance of the linked entity is altered, in the currency of the linked entity' - required: true - required: true - required: false - required: true - Sage 50 (UK): - value: - type: Object - displayName: Payment - description: A payment represents an allocation of transactions across an 'accounts receivable' account (customer) - properties: - accountRef: - type: Object - displayName: Bank Account - description: The bank account to pay this invoice from. - properties: - id: - type: String - displayName: Account Id - description: Nominal code of the bank account. - required: true - validation: - warnings: - - field: accountRef.id - details: Must match the ID of an existing bank account and have a max length of 8 characters. - information: [] - required: true - customerRef: - type: Object - displayName: Customer - description: Customer to be paid. - properties: - id: - type: String - displayName: Customer Id - description: Identifier of the customer. - required: true - validation: - warnings: - - field: customerRef.id - details: Must match the ID of an existing customer and have a max length of 8 characters. - information: [] - required: true - totalAmount: - type: Number - displayName: Total Amount - description: The total amount being paid to the customer. - required: true - validation: - warnings: [] - information: - - details: This must equal the sum of the line amounts - reference: - type: Number - displayName: Reference - description: The user reference for this invoice payment. - required: false - date: - type: Number - displayName: Issue Date - description: The date this payment was issued. - required: true - note: - type: Number - displayName: Note - description: A description of the payment. - required: false - lines: - type: Array - displayName: Line Items - description: Line items of the payment. - properties: - amount: - type: Number - displayName: Amount - description: The amount of this line item - required: true - validation: - warnings: [] - information: - - details: this must equal the negative of the sum of the link amounts - links: - type: Array - displayName: Links - description: Links to the invoice being paid. - properties: - amount: - type: Number - displayName: Amount - description: The amount to be added to the value of the invoice - required: true - validation: - warnings: [] - information: - - details: 'When paying off an invoice, this value will be negative' - id: - type: String - displayName: Invoice Id - description: The ID of the invoice to pay - required: true - type: - type: String - displayName: Payment Link Type - description: The type of the item to be paid - options: - - value: Invoice - type: String - displayName: Invoice - required: false - - value: PaymentOnAccount - type: String - displayName: Payment On Account - required: false - - value: Refund - type: String - displayName: Refund - required: false - - value: CreditNote - type: String - displayName: Credit Note - required: false - - value: Payment - type: String - displayName: Payment - required: false - required: true - required: true - required: true - validation: - warnings: [] - information: - - details: Sage 50 only supports one line item per invoice payment so all lines will be merged together in the response. - required: true - validation: - warnings: [] - information: - - details: 'Pushing to Sage 50 2015 (v21) or below is not supported. To enable push, please upgrade to at least Sage 50 2016 (v22) and re-sync the company.' - Sage Business Cloud Accounting: - value: - type: Object - displayName: Payment - description: A payment represents an allocation of transactions across an 'accounts receivable' account (customer) - properties: - accountRef: - type: Object - displayName: Nominal Account Reference - description: Reference to the nominal account the payment is linked to - properties: - id: - type: String - displayName: Account ID - description: The identifier for the account - required: true - validation: - warnings: - - field: AccountRef.Id - details: Must match the ID of an existing Account. - information: - - field: AccountRef.Id - details: Must be provided. - required: false - validation: - warnings: - - field: AccountRef - details: Required unless the Payment is only allocating a Credit Note. - information: [] - customerRef: - type: Object - displayName: Customer Reference - description: Reference to the customer the payment has been sent by - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the customer - required: true - validation: - warnings: - - field: CustomerRef.Id - details: Must match the ID of an existing Customer. - information: - - field: CustomerRef.Id - details: Must be provided. - required: true - date: - type: DateTime - displayName: Date - description: The date the payment was recorded - required: true - validation: - warnings: [] - information: - - field: Date - details: Must be provided. - totalAmount: - type: Number - displayName: Total Amount - description: 'The total amount of the payment, inclusive of discounts and tax' - required: true - validation: - warnings: - - field: TotalAmount - details: Must be zero when allocating against Invoices using a Credit Note only. - - field: TotalAmount - details: Must equal the sum of the link items amount. - information: - - field: TotalAmount - details: Must be provided. - note: - type: String - displayName: Note - description: Any additional text based information associated with the payment - required: false - validation: - warnings: - - field: Note - details: Should not be longer than 25 characters. - information: [] - currency: - type: String - displayName: Currency - description: Currency of the payment - required: false - validation: - warnings: [] - information: - - field: Currency - details: 'If supplied, must match the currency of the customer.' - currencyRate: - type: Number - displayName: Currency Exchange Rate - description: The exchange rate between the currency of the payment and the base currency of the company - required: false - lines: - type: Array - displayName: Lines - description: A collection of payment lines - properties: - links: - type: Array - displayName: Links - description: A collection of linked transactions - properties: - id: - type: String - displayName: Identifier - description: The identifier for the referenced transaction - required: true - validation: - warnings: [] - information: - - field: Links.Id - details: Must be provided. - amount: - type: Number - displayName: Amount - description: 'The amount by which the balance of the linked entity is altered, in the currency of the linked entity' - required: true - validation: - warnings: - - field: Links.Amount - details: Must be greater than zero except when Type is Invoice - information: - - field: Links.Amount - details: Must be provided. - type: - type: String - displayName: Link Type - description: The type of transaction that is being linked - options: - - value: Invoice - type: String - displayName: Invoice - required: false - - value: PaymentOnAccount - type: String - displayName: PaymentOnAccount - required: false - - value: Refund - type: String - displayName: Refund - required: false - - value: CreditNote - type: String - displayName: CreditNote - required: false - required: true - validation: - warnings: [] - information: - - field: Links.Type - details: Must be provided. - required: true - validation: - warnings: [] - information: - - field: Lines.Links - details: Must be provided. - required: true - required: true - Sage Intacct: - value: - type: Object - displayName: Payment - description: A payment represents an allocation of transactions across an 'accounts receivable' account (customer) - properties: - totalAmount: - type: Number - displayName: Total Amount - description: 'The total amount of the payment, inclusive of discounts and tax' - required: true - validation: - warnings: [] - information: - - field: TotalAmount - details: Must equal the sum of Lines.Amount. - note: - type: String - displayName: Note - description: Any additional text based information associated with the payment - required: false - validation: - warnings: [] - information: - - field: Note - details: Must be less than 1000 characters. - paymentMethodRef: - type: Object - displayName: Payment Method Reference - description: Reference to the method of this payment - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the payment method - options: - - value: '1' - type: String - displayName: Printed Check - required: false - - value: '3' - type: String - displayName: Credit Card - required: false - - value: '5' - type: String - displayName: EFT - required: false - - value: '6' - type: String - displayName: Cash - required: false - required: true - required: true - reference: - type: String - displayName: Reference - description: A user friendly reference for the payment - required: false - validation: - warnings: [] - information: - - field: Reference - details: Can be used to set the Document/Check No. in Sage Intacct. - currency: - type: String - displayName: Currency - description: Currency of the payment - required: false - currencyRate: - type: Number - displayName: Currency Exchange Rate - description: The exchange rate between the currency of the payment and the base currency of the company - required: false - validation: - warnings: [] - information: - - field: CurrencyRate - details: Is required if currency is provided. - date: - type: DateTime - displayName: Date - description: The date the payment was recorded - required: true - validation: - warnings: [] - information: - - field: Date - details: Must occur after the date the invoice was created. - customerRef: - type: Object - displayName: Customer Reference - description: Reference to the customer the payment has been sent by - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the customer - required: true - validation: - warnings: [] - information: - - field: CustomerRef.Id - details: Must be an existing customer ID in Sage Intacct. - required: true - accountRef: - type: Object - displayName: Nominal Account Reference - description: Reference to the nominal account the payment is linked to - properties: - id: - type: String - displayName: Account ID - description: The identifier for the account - required: true - validation: - warnings: [] - information: - - field: AccountRef.Id - details: For undeposited payments use the GL account record number to charge. - - field: AccountRef.Id - details: 'To charge either a savings, checking or credit card account use its associated GL account number.' - required: true - lines: - type: Array - displayName: Lines - description: A collection of payment lines - properties: - amount: - type: Number - displayName: Amount - description: The total amount for the line in the payment currency - required: true - validation: - warnings: [] - information: - - field: Lines.Amount - details: When added together with the sum of the Links.Amount the total must be zero. - links: - type: Array - displayName: Links - description: A collection of linked transactions - properties: - id: - type: String - displayName: Identifier - description: The identifier for the referenced transaction - required: true - validation: - warnings: [] - information: - - field: Links.Id - details: 'Must be a valid Record No. from accounts receivable of either an invoice for an ''Invoice'', adjustment for a ''CreditNote'' or an advance for a ''PaymentOnAccount'' in Sage Intacct.' - - field: Links.Id - details: Must be an integer. - - field: Links.Id - details: Must related to CustomerRef.Id in Sage Intacct. - type: - type: String - displayName: Link Type - description: The type of transaction that is being linked - required: true - validation: - warnings: [] - information: - - field: Links.Type - details: Must be one of Invoiceor CreditNoteor PaymentOnAccount. - amount: - type: Number - displayName: Amount - description: 'The amount by which the balance of the linked entity is altered, in the currency of the linked entity' - required: true - validation: - warnings: [] - information: - - field: Links.Amount - details: Must not be more than the total amount due for an invoice or the available funds in the account to be charged. - required: true - validation: - warnings: [] - information: - - field: Lines.Links - details: No more than two links can exist when paying for an invoice via a CreditNoteor PaymentOnAccount. - - field: Lines.Links - details: Must contain only one Invoice. - required: true - validation: - warnings: [] - information: - - field: Lines - details: Must contain at least one payment line. - required: true - validation: - warnings: [] - information: - - details: Sage Intacct handles allocated payments only. - Sandbox: - value: - type: Object - displayName: Payment - description: A payment represents an allocation of transactions across an 'accounts receivable' account (customer) - properties: - customerRef: - type: Object - displayName: Customer Reference - description: Reference to the customer the payment has been sent by - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the customer - required: true - companyName: - type: String - displayName: Name - description: The name of the customer referenced by the identifier - required: true - required: true - accountRef: - type: Object - displayName: Nominal Account Reference - description: Reference to the nominal account the payment is linked to - properties: - id: - type: String - displayName: Account ID - description: The identifier for the account - required: true - name: - type: String - displayName: Name - description: Name of the account - required: true - required: true - paymentMethodRef: - type: Object - displayName: Payment Method Reference - description: Reference to the method of this payment - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the payment method - required: true - name: - type: String - displayName: Name - description: The name of the payment method referenced by the identifier - required: true - required: true - totalAmount: - type: Number - displayName: Total Amount - description: 'The total amount of the payment, inclusive of discounts and tax' - required: true - currency: - type: String - displayName: Currency - description: Currency of the payment - required: true - currencyRate: - type: Number - displayName: Currency Exchange Rate - description: The exchange rate between the currency of the payment and the base currency of the company - required: true - date: - type: DateTime - displayName: Date - description: The date the payment was recorded - required: true - note: - type: String - displayName: Note - description: Any additional text based information associated with the payment - required: true - lines: - type: Array - displayName: Lines - description: A collection of payment lines - properties: - amount: - type: Number - displayName: Amount - description: The total amount for the line in the payment currency - required: true - links: - type: Array - displayName: Links - description: A collection of linked transactions - properties: - type: - type: String - displayName: Link Type - description: The type of transaction that is being linked - required: true - id: - type: String - displayName: Identifier - description: The identifier for the referenced transaction - required: true - amount: - type: Number - displayName: Amount - description: 'The amount by which the balance of the linked entity is altered, in the currency of the linked entity' - required: true - currencyRate: - type: Number - displayName: Currency Exchange Rate - description: The exchange rate between the currency of the payment and the currency of the linked transaction - required: true - required: true - allocatedOnDate: - type: DateTime - displayName: Allocated On Date - description: The date the payment was allocated - required: true - required: true - reference: - type: String - displayName: Reference - description: A user friendly reference for the payment - required: true - metadata: - type: Object - displayName: Metadata - description: Miscellaneous data about the item - properties: - isDeleted: - type: Boolean - displayName: IsDeleted - description: A boolean to indicate whether the object has been deleted - required: true - required: true - required: true - Xero: - value: - type: Object - displayName: Payment - description: A payment represents an allocation of transactions across an 'accounts receivable' account (customer) - properties: - customerRef: - type: Object - displayName: Customer Reference - description: Reference to the customer the payment has been sent by - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the customer - required: true - validation: - warnings: - - field: CustomerRef.Id - details: Must be a valid GUID. - - field: CustomerRef.Id - details: Must match the ID of an existing account. - information: - - field: CustomerRef.Id - details: Must be provided. - required: true - validation: - warnings: [] - information: - - field: CustomerRef - details: Must be provided. - accountRef: - type: Object - displayName: Nominal Account Reference - description: Reference to the nominal account the payment is linked to - properties: - id: - type: String - displayName: Account ID - description: The identifier for the account - required: true - validation: - warnings: - - field: AccountRef.Id - details: Must be a valid GUID. - - field: AccountRef.Id - details: Must match the ID of an existing account. - information: - - field: AccountRef.Id - details: Must be either a type of BANK account or enable payments must be switched on. - required: true - validation: - warnings: [] - information: - - field: AccountRef - details: Must be provided. - totalAmount: - type: Number - displayName: Total Amount - description: 'The total amount of the payment, inclusive of discounts and tax' - required: true - validation: - warnings: - - field: TotalAmount - details: 'Must be greater than 0, unless the payment is a credit note allocation.' - information: - - field: TotalAmount - details: Must be provided and must equal the sum of the link items amount. - date: - type: DateTime - displayName: Date - description: The date the payment was recorded - required: true - validation: - warnings: [] - information: - - field: Date - details: Must be provided. - reference: - type: String - displayName: Reference - description: A user friendly reference for the payment - required: false - currencyRate: - type: Number - displayName: Currency Exchange Rate - description: The exchange rate between the currency of the payment and the base currency of the company - required: false - currency: - type: String - displayName: Currency - description: Currency of the payment - required: true - validation: - warnings: [] - information: - - field: Currency - details: Must be provided. - lines: - type: Array - displayName: Lines - description: A collection of payment lines - properties: - amount: - type: Number - displayName: Amount - description: The total amount for the line in the payment currency - required: true - validation: - warnings: [] - information: - - field: Lines.Amount - details: Must be provided. - links: - type: Array - displayName: Links - description: A collection of linked transactions - properties: - id: - type: String - displayName: Identifier - description: The identifier for the referenced transaction - required: true - validation: - warnings: - - field: Links.Id - details: Must be a valid GUID. - information: - - field: Links.Id - details: Invoice and Credit Note ID must be provided in order to allocate a Credit Note to an Invoice. - - field: Links.Id - details: Must be provided. - amount: - type: Number - displayName: Amount - description: 'The amount by which the balance of the linked entity is altered, in the currency of the linked entity' - required: true - validation: - warnings: [] - information: - - field: Links.Amount - details: Must be provided. - type: - type: String - displayName: Link Type - description: The type of transaction that is being linked - options: - - value: Invoice - type: String - displayName: Invoice - required: false - - value: CreditNote - type: String - displayName: CreditNote - required: false - - value: Payment - type: String - displayName: Payment - required: false - required: true - validation: - warnings: [] - information: - - field: Links.Type - details: Must be provided. - required: true - validation: - warnings: [] - information: - - field: Lines.Links - details: Must be provided. - required: true - validation: - warnings: [] - information: - - field: Lines - details: Must be provided. - required: true - Zoho Books: - value: - type: Object - displayName: Payment - description: A payment represents an allocation of transactions across an 'accounts receivable' account (customer) - properties: - accountRef: - type: Object - displayName: Nominal Account Reference - description: Reference to the nominal account the payment is linked to - properties: - id: - type: String - displayName: Account ID - description: The identifier for the account - required: true - validation: - warnings: - - field: AccountRef.Id - details: AccountRef.ID is required when making a payment to an invoice and/or a payment on account - information: [] - required: true - customerRef: - type: Object - displayName: Customer Reference - description: Reference to the customer the payment has been sent by - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the customer - required: true - required: true - currency: - type: String - displayName: Currency - description: Currency of the payment - required: true - validation: - warnings: - - field: Currency - details: must match the currency of any invoices or credit notes - information: [] - date: - type: DateTime - displayName: Date - description: The date the payment was recorded - required: true - currencyRate: - type: Number - displayName: Currency Exchange Rate - description: The exchange rate between the currency of the payment and the base currency of the company - required: true - note: - type: String - displayName: Note - description: Any additional text based information associated with the payment - required: false - totalAmount: - type: Number - displayName: Total Amount - description: 'The total amount of the payment, inclusive of discounts and tax' - required: true - validation: - warnings: - - field: TotalAmount - details: must be greater than or equal to 0 - information: [] - lines: - type: Array - displayName: Lines - description: A collection of payment lines - properties: - links: - type: Array - displayName: Links - description: A collection of linked transactions - properties: - amount: - type: Number - displayName: Amount - description: 'The amount by which the balance of the linked entity is altered, in the currency of the linked entity' - required: true - validation: - warnings: - - field: Links.Amount - details: the sum of all link amounts must equal the negated total amount of the payment - information: [] - id: - type: String - displayName: Identifier - description: The identifier for the referenced transaction - required: true - type: - type: String - displayName: Link Type - description: The type of transaction that is being linked - options: - - type: Array - displayName: Invoice - required: false - - type: Array - displayName: CreditNote - required: false - - type: Array - displayName: PaymentOnAccount - required: false - required: true - required: true - validation: - warnings: - - field: Lines.Links - details: 'if a credit note link is provided, exactly one invoice link must be provided, otherwise unlimited invoice links and one payment on account link are allowed' - information: [] - required: true - required: true - '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' - operationId: get-create-payment-model - x-speakeasy-group: loan-writeback.payments - description: |- - The *Get create payment model* endpoint returns the expected data for the request payload when creating a [payment](https://docs.codat.io/lending-api#/schemas/Payment) for a given company and integration. - - [Payments](https://docs.codat.io/lending-api#/schemas/Payment) represent an allocation of money within any customer accounts receivable account. - - **Integration-specific behavior** - - See the *response examples* for integration-specific indicative models. - '/companies/{companyId}/connections/{connectionId}/push/payments': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - post: - tags: - - Loan writeback - summary: Create payment - parameters: - - $ref: '#/components/parameters/timeoutInMinutes' - - $ref: '#/components/parameters/allowSyncOnPushComplete' - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/AccountingPayment' - examples: - QuickBooks Desktop: - value: - customerRef: - id: 80000002-1674552702 - companyName: string - accountRef: - id: '8000002E-1675267199' - name: Undeposited Funds - paymentMethodRef: - id: string - name: string - totalAmount: 28 - currency: USD - currencyRate: 1 - date: '2023-02-10T11:47:04.792Z' - note: note 14/02 1147 - lines: - - amount: 28 - links: - - type: Invoice - id: 181-1676374586 - amount: -28 - currencyRate: 1 - allocatedOnDate: '2023-02-11T11:47:04.792Z' - reference: ref 14/02 1147 - Sage 50 (UK): - value: - customerRef: - id: CUST1 - accountRef: - id: '1200' - name: Bank Current Account - paymentMethodRef: - id: '4405' - totalAmount: 4 - currency: GBP - currencyRate: 1 - date: '2023-03-17T11:47:04.792Z' - note: note 07/03 14.31 - lines: - - amount: 4 - links: - - type: Invoice - id: INV-31 - amount: -4 - currencyRate: 1 - allocatedOnDate: '2023-02-11T11:47:04.792Z' - reference: ref - Sage Business Cloud Accounting: - value: - customerRef: - id: 30444c5bd4964fd787c7f8e2e5301ce1 - companyName: Stanley test customer - accountRef: - id: 9a25937b267a11e797950a57719b2edb - name: Current - totalAmount: 0.17 - currency: GBP - currencyRate: 1 - date: '2023-03-20T11:47:04.792Z' - note: Need to send products asap. - lines: - - amount: 0.17 - links: - - type: Invoice - id: bb85db9226d7450fb99eb83e7fb37505 - amount: -0.17 - currencyRate: 1 - allocatedOnDate: '2023-02-11T11:47:04.792Z' - reference: normal payment 20/03 17.05 - Sage Intacct: - value: - customerRef: - id: '19' - accountRef: - id: '81' - date: '2022-03-12T00:00:00' - totalAmount: 0 - lines: - - amount: 0 - links: - - id: '246' - type: Invoice - amount: -1.1 - - id: '280' - type: CreditNote - amount: 1.1 - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/AccountingCreatePaymentResponse' - examples: - Sage Intacct: - value: - data: - customerRef: - id: '19' - accountRef: - id: '81' - totalAmount: 0 - date: '2022-03-12T00:00:00' - lines: - - amount: 0 - links: - - type: Invoice - id: '246' - amount: -1.1 - - type: CreditNote - id: '280' - amount: 1.1 - dataType: payments - companyId: ffa6368e-fde4-4165-9a0a-4bda1a6f916e - pushOperationKey: 673f5d97-1c53-41ef-b9c8-cc9a8415d17c - dataConnectionKey: bbecdbf3-913a-43ae-9c91-e830b3686657 - requestedOnUtc: '0001-01-01T00:00:00' - status: Pending - statusCode: 202 - '400': - $ref: '#/components/responses/BadRequest' - '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: |- - The *Create payment* endpoint creates a new [payment](https://docs.codat.io/lending-api#/schemas/Payment) for a given company's connection. - - [Payments](https://docs.codat.io/lending-api#/schemas/Payment) represent an allocation of money within any customer accounts receivable account. - - **Integration-specific behavior** - - Required data may vary by integration. To see what data to post, first call [Get create payment model](https://docs.codat.io/lending-api#/operations/get-create-payments-model). - operationId: create-payment - x-speakeasy-group: loan-writeback.payments - '/companies/{companyId}/push/{pushOperationKey}': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/pushOperationKey' - get: - summary: Get create operation - tags: - - Loan writeback - operationId: get-create-operation - x-speakeasy-group: loan-writeback.create-operations - description: Retrieve create operation. - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/PushOperation' - examples: {} - '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' - '/companies/{companyId}/push': - parameters: - - $ref: '#/components/parameters/companyId' - get: - parameters: - - $ref: '#/components/parameters/page' - - $ref: '#/components/parameters/pageSize' - - $ref: '#/components/parameters/query' - - $ref: '#/components/parameters/orderBy' - summary: List push operations - tags: - - Push data - operationId: get-company-push-history - x-speakeasy-name-override: list-operations - description: |- - The **List push operations** endpoint returns a list of [push operations](/using-the-api/push) performed on the company. - - Write operations are actions that send requests to Codat, enabling the creation, updating, deletion of records, or uploading attachments in the connected accounting software. - summary: List create operations - tags: - - Loan writeback - operationId: list-create-operations - x-speakeasy-group: loan-writeback.create-operations - description: List create operations. - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/PushOperations' - examples: {} - '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' - '/companies/{companyId}/push/{pushOperationKey}': - parameters: - - $ref: '#/components/parameters/companyId' - - schema: - type: string - format: uuid - name: pushOperationKey - in: path - required: true - description: Push operation key. - get: - summary: Get push operation - tags: - - Push data - operationId: get-push-operation - x-speakeasy-name-override: get-operation - description: |- - The **Get push operation** endpoint returns a specific [push operation](/using-the-api/push) identified by the `pushOperationKey` that was performed on the company. - - Write operations are actions that send requests to Codat, enabling the creation, updating, deletion of records, or uploading attachments in the connected accounting software. - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/PushOperation' - examples: {} - '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' - '/integrations/{platformKey}/dataTypes/{dataType}/supplementalDataConfig': - parameters: - - $ref: '#/components/parameters/platformKey' - - name: dataType - in: path - required: true - description: Supported supplemental data data type. - schema: - x-internal: true - type: string - description: Data types that support supplemental data - enum: - - chartOfAccounts - - bills - - company - - creditNotes - - customers - - invoices - - items - - journalEntries - - suppliers - - taxRates - - commerce-companyInfo - - commerce-customers - - commerce-disputes - - commerce-locations - - commerce-orders - - commerce-payments - - commerce-paymentMethods - - commerce-products - - commerce-productCategories - - commerce-taxComponents - - commerce-transactions - example: invoices - put: - summary: Configure - description: |- - The *Configure* endpoint allows you to maintain or change configuration required to return supplemental data for each integration and data type combination. - - [Supplemental data](https://docs.codat.io/using-the-api/supplemental-data/overview) is additional data you can include in Codat's standard data types. - - **Integration-specific behavior** - See the *examples* for integration-specific frequently requested properties. - operationId: configure-supplemental-data - x-speakeasy-name-override: configure - tags: - - Supplemental data - responses: - '200': - description: OK - '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' - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/SupplementalDataConfiguration' - examples: - Xero - Accounts: - value: - yourKeyNameForAccounts: - dataSource: /Accounts - pullData: - yourNameForTaxType: TaxType - yourNameForSystemAccount: SystemAccount - Xero - Invoices: - value: - yourKeyNameForInvoices: - dataSource: /Invoices - pullData: - yourNameForExpectedPaymentDate: ExpectedPaymentDate - yourNameForHasAttachments: HasAttachments - Xero - Items: - value: - yourKeyNameForItems: - dataSource: /Items - pullData: - yourNameForQuantityOnHand: QuantityOnHand - yourNameForTotalCostPool: TotalCostPool - Xero - Contacts: - value: - yourKeyNameForContacts: - dataSource: /Contacts - pullData: - yourNameForBankAccounts: BankAccountDetails - Xero - Tax rates: - value: - yourKeyNameForTaxRates: - dataSource: /TaxRates - pullData: - yourNameForCanApplyToLiabilities: CanApplyToLiabilities - yourNameForCanApplyToAssets: CanApplyToAssets - yourNameForCanApplyToEquity: CanApplyToEquity - yourNameForCanApplyToExpenses: CanApplyToExpenses - yourNameForCanApplyToRevenue: CanApplyToRevenue - QBO - Customers: - value: - yourKeyNameForCustomers: - dataSource: /Customer - pullData: - yourNameForSalesTermRef: SalesTermRef.value - yourNameForParentRef: ParentRef.value - QBO - Invoices: - value: - yourKeyNameForInvoices: - dataSource: /Invoice - pullData: - yourNameForSalesTermRef: SalesTermRef.value - description: The configuration for the specified platform and data type. - get: - summary: Get configuration - description: |- - The *Get configuration* endpoint returns supplemental data configuration previously created for each integration and data type combination. - - [Supplemental data](https://docs.codat.io/using-the-api/supplemental-data/overview) is additional data you can include in Codat's standard data types. - operationId: get-supplemental-data-configuration - x-speakeasy-name-override: get-configuration - tags: - - Supplemental data - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/SupplementalDataConfiguration' - '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' - '/integrations/{platformKey}/dataTypes/custom/{customDataIdentifier}': - parameters: - - $ref: '#/components/parameters/platformKey' - - $ref: '#/components/parameters/customDataIdentifier' - put: - summary: Configure custom data type - description: |- - The *Configure custom data type* endpoint allows you to maintain or change the configuration required to return a custom data type for a specific integration. - - A [custom data type](https://docs.codat.io/using-the-api/custom-data) is an additional data type you can create that is not included in Codat's standardized data model. - - ### Tips and traps - - - You can only configure a single custom data type for a single platform at a time. Use the endpoint multiple times if you need to configure it for multiple platforms. - - - You can only indicate a single data source for each customer data type. - - - Make your custom configuration as similar as possible to our standard data types so you can interact with them in exactly the same way. - operationId: configure-custom-data-type - x-speakeasy-name-override: configure - tags: - - Custom data type - requestBody: - description: Custom data type configuration for the specified platform. - content: - application/json: - schema: - $ref: '#/components/schemas/CustomDataTypeConfiguration' - examples: - Dynamics 365 Business Central: - value: - dataSource: api/purchaseOrders - requiredData: - currency: '$[*].currencyCode' - number: '$[*].number' - date: '$[*].orderDate' - totalexvat: '$[*].totalAmountExcludingTax' - totaltax: '$[*].totalTaxAmount' - vendor: '$[*].number' - keyBy: - - '$[*].id' - sourceModifiedDate: - - '$[*].lastModifiedDateTime' - Xero Simple Record: - value: - dataSource: /api.xro/2.0/Accounts - requiredData: - code: $.Code - accountId: $.AccountID - type: $.Type - SysAcc: $.SystemAccount - keyBy: - - $.AccountID - Xero Mapping Arrays: - value: - dataSource: /api.xro/2.0/Invoices - requiredData: - invNumber: $.InvoiceNumber - type: $.Type - InvoiceID: $.InvoiceID - lines: '$.LineItems[*]' - keyBy: - - $.InvoiceID - sourceModifiedDate: - - $.UpdatedDateUTC - QuickBooks Online: - value: - dataSource: /query?query=select * from Account - requiredData: - id: $.Id - Currentbal: $.CurrentBalance - SubAcc: $.SubAccount - keyBy: - - $.Id - sourceModifiedDate: - - $.time - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/CustomDataTypeConfiguration' - examples: - Dynamics 365 Business Central: - value: - dataSource: api/purchaseOrders - requiredData: - currency: '$[*].currencyCode' - number: '$[*].number' - date: '$[*].orderDate' - totalexvat: '$[*].totalAmountExcludingTax' - totaltax: '$[*].totalTaxAmount' - vendor: '$[*].number' - keyBy: - - '$[*].id' - sourceModifiedDate: - - '$[*].lastModifiedDateTime' - Xero Simple Record: - value: - dataSource: /api.xro/2.0/Accounts - requiredData: - code: $.Code - accountId: $.AccountID - type: $.Type - SysAcc: $.SystemAccount - keyBy: - - $.AccountID - Xero Mapping Arrays: - value: - dataSource: /api.xro/2.0/Invoices - requiredData: - invNumber: $.InvoiceNumber - type: $.Type - InvoiceID: $.InvoiceID - lines: '$.LineItems[*]' - keyBy: - - $.InvoiceID - sourceModifiedDate: - - $.UpdatedDateUTC - QuickBooks Online: - value: - dataSource: /query?query=select * from Account - requiredData: - id: $.Id - Currentbal: $.CurrentBalance - SubAcc: $.SubAccount - keyBy: - - $.Id - sourceModifiedDate: - - $.time - '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' - get: - summary: Get custom data configuration - description: |- - The *Get custom data configuration* endpoint returns existing configuration details for the specified custom data type and integration pair you previously configured. - - A [custom data type](https://docs.codat.io/using-the-api/custom-data) is an additional data type you can create that is not included in Codat's standardized data model. - operationId: get-custom-data-type-configuration - x-speakeasy-name-override: get-configuration - tags: - - Custom data type - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/CustomDataTypeRecords' - '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' - '/companies/{companyId}/connections/{connectionId}/data/queue/custom/{customDataIdentifier}': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - - $ref: '#/components/parameters/customDataIdentifier' - post: - summary: Refresh custom data type - description: The *Refresh custom data type* endpoint refreshes the specified custom data type for a given company. This is an asynchronous operation that will sync updated data from the linked integration into Codat for you to view. - operationId: refresh-custom-data-type - x-speakeasy-name-override: refresh - tags: - - Custom data type - responses: - '200': - description: OK - '/companies/{companyId}/connections/{connectionId}/bankStatements/upload/configuration': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - get: - tags: - - Bank statements - summary: Get upload configuration - description: |- - Use the *Get upload configuration* endpoint to view the existing bank statement upload configuration for the specified data connection. - - With this configuration, you set the source of the data you plan to upload, the ID of the account in third-party banking platform, and a provider ID, if required. This lets us determine the expected format of the data and any source-specific requirements. - - When you use the [*Upload data*](https://docs.codat.io/lending-api#/operations/upload-bank-statement-data) endpoint next, you must upload the data for the account you configured. - operationId: get-bank-statement-upload-configuration - x-speakeasy-name-override: get-upload-configuration - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/BankStatementUploadConfiguration' - examples: - Codat: - $ref: '#/components/examples/CodatBankStatementUploadConfiguration' - '400': - $ref: '#/components/responses/BadRequest' - '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' - post: - tags: - - Bank statements - summary: Set upload configuration - description: |- - Use the *Set upload configuration* endpoint to create bank statement upload configuration for the specified data connection. - - With this configuration, you set the source of the data you plan to upload, the ID of the account in third-party banking platform, and a provider ID, if required. This lets us determine the expected format of the data and any source-specific requirements. - - Each data connection can only have one configuration for each company and external account ID combination. You will receive a Bad Request response if you try to set it again. - operationId: set-bank-statement-upload-configuration - x-speakeasy-name-override: set-upload-configuration - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/BankStatementUploadConfiguration' - examples: - Codat: - $ref: '#/components/examples/CodatBankStatementUploadConfiguration' - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/BankStatementUploadConfiguration' - examples: - Codat: - $ref: '#/components/examples/CodatBankStatementUploadConfiguration' - '400': - $ref: '#/components/responses/BadRequest' - '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' - '/companies/{companyId}/connections/{connectionId}/bankStatements/upload/startSession': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - post: - tags: - - Bank statements - summary: Start upload session - description: |- - Use the *Start upload session* endpoint to initiate a bank statement upload session for a given company. - - A session is a one-time process that enables you to upload bank statements to Codat. It will time out after 90 minutes if no data is uploaded. - - You can only have one active session per data type at a time. You can complete or cancel a session using the [*End upload session*](https://docs.codat.io/lending-api#/operations/end-bank-statement-upload-session) endpoint. - operationId: start-bank-statement-upload-session - x-speakeasy-name-override: start-upload-session - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/StartUploadSessionRequest' - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/PullOperation' - '400': - $ref: '#/components/responses/BadRequest' - '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' - '451': - $ref: '#/components/responses/Legal-Reasons' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - '/companies/{companyId}/connections/{connectionId}/data/custom/{customDataIdentifier}': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - - $ref: '#/components/parameters/customDataIdentifier' - get: - summary: List custom data type records - description: |- - The *List custom data type records* endpoint returns a paginated list of records pulled for the specified custom data type you previously configured. - - A [custom data type](https://docs.codat.io/using-the-api/custom-data) is an additional data type you can create that is not included in Codat's standardized data model.s endpoint returns a paginated list of records whose schema is defined [Configure custom data type](https://docs.codat.io/platform-api#/operations/configure-custom-data-type) - operationId: list-custom-data-type-records - parameters: - - $ref: '#/components/parameters/page' - - $ref: '#/components/parameters/pageSize' - tags: - - Custom data type - '/companies/{companyId}/connections/{connectionId}/bankStatements/upload/dataset/{datasetId}/upload': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - - $ref: '#/components/parameters/datasetId' - - $ref: '#/components/parameters/path' - post: - tags: - - Bank statements - summary: Upload data - description: |- - During an active session, use the **Upload data* endpoint to uploads a page of bank accounts or bank transactions data to the session. - - Make sure you created configuration for the account using the [*Set upload configuration*](https://docs.codat.io/lending-api#/operations/set-bank-statement-upload-configuration) endpoint before attempting an upload. - operationId: upload-bank-statement-data - requestBody: - required: true - content: - application/json: - schema: - oneOf: - - $ref: '#/components/schemas/BankingAccount' - - $ref: '#/components/schemas/BankingTransactions' - - $ref: '#/components/schemas/ThirdPartySchema' - responses: - '200': - description: Success - '400': - $ref: '#/components/responses/BadRequest' - '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' - '/companies/{companyId}/connections/{connectionId}/bankStatements/upload/dataset/{datasetId}/endSession': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - - $ref: '#/components/parameters/datasetId' - post: - tags: - - Bank statements - summary: End upload session - description: |- - Use the *End upload session* endpoint to finalize a bank statement upload session. Include a `status` in the request body to indicate if you want to cancel the processing of the dataset or trigger the ingestion and enrichment of the data. - - A session is a one-time process that enables you to upload bank statements to Codat. It will time out after 90 minutes if no data is uploaded. - operationId: end-bank-statement-upload-session - x-speakeasy-name-override: end-upload-session - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/EndUploadSessionRequest' - responses: - '200': - description: Success - '400': - $ref: '#/components/responses/BadRequest' - '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' - '/companies/{companyId}/reports/{reportType}': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/reportType' - post: - tags: - - Manage reports - summary: Generate report - description: |- - Use the *Generate report* endpoint to initiate the generation of a report specified by the `reportType` parameter. - - This action triggers the system to refresh and pull the necessary data from the company's data sources to ensure the report contains the most up-to-date information. - operationId: generate-report - x-speakeasy-name-override: generate-report - responses: - '202': - description: Accepted (pending) - content: - application/json: - schema: - $ref: '#/components/schemas/ReportOperation' - examples: - Report: - $ref: '#/components/examples/SingleReportExample' - '400': - $ref: '#/components/responses/BadRequest' - '401': - $ref: '#/components/responses/Unauthorized' - '402': - $ref: '#/components/responses/Payment-Required' - '403': - $ref: '#/components/responses/Forbidden' - '404': - $ref: '#/components/responses/Not-Found' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - '/companies/{companyId}/reports/{reportType}/{reportId}/status': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/reportType' - - $ref: '#/components/parameters/reportId' - - $ref: '#/components/parameters/maxAge' - get: - tags: - - Manage reports - summary: Get report status - description: |+ - Use the *Get report status* endpoint to return the metadata about report generation, such as its current status, date of request, and date of generation. - - You can either provide the ID of a report or use `latest` as the ID value to get the most recent generated *reportName* report for the company. - - operationId: get-report-status - x-speakeasy-name-override: get-report-status - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/ReportOperation' - examples: - Report: - $ref: '#/components/examples/SingleReportExample' - '400': - $ref: '#/components/responses/BadRequest' - '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' - '/companies/{companyId}/reports/categorizedBankStatement/{reportId}/transactions': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/reportId' - - $ref: '#/components/parameters/maxAge' - - $ref: '#/components/parameters/page' - - $ref: '#/components/parameters/pageSize' - - $ref: '#/components/parameters/query' - - $ref: '#/components/parameters/orderBy' - get: - tags: - - Bank statements - summary: Get categorized bank statement transactions - description: |- - The *Get categorized bank statement transactions* endpoint returns fully categorized bank transactions for a company. Transaction data is obtained from the company's connected bank accounts. - - Before using it, you must call the [Generate report](https://docs.codat.io/lending-api#/operations/generate-report) endpoint of type `categorizedBankStatement`. - operationId: get-categorized-bank-statement-transactions - x-speakeasy-name-override: get-categorized-bank-statement-transactions - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/CustomDataTypeRecords' - '400': - $ref: '#/components/responses/Bad-Request' - $ref: '#/components/schemas/CategorizedBankStatementTransactions' - example: - pageNumber: 1 - pageSize: 100 - totalResults: 2194 - _links: - self: - href: /companies/82458839-6812-49e9-baac-7dcf8c32de1f/reports/categorizedBankStatement/latest/transactions - current: - href: /companies/82458839-6812-49e9-baac-7dcf8c32de1f/reports/categorizedBankStatement/latest/transactions?page=1&pageSize=100 - next: - href: /companies/82458839-6812-49e9-baac-7dcf8c32de1f/reports/categorizedBankStatement/latest/transactions?page=2&pageSize=100 - results: - - sourceRef: - sourceType: Banking - accountRef: - id: 4f78a6b0-e9bb-40f2-82fd-f3a2daa1fd0a - name: Business Current Account - id: ab5e07a0-5578-4d91-8421-2dc72713b74f - date: '2022-11-08T00:00:00' - description: Payment m86SDGpQr3 - amount: -6905.44 - currency: GBP - transactionCategory: - confidence: 52.53 - levels: - - Expense - - Operating - confidences: - - 56 - - 52.53 - platformName: Shopify - counterpartyNames: - - Shopify - modifiedDate: '2022-11-08T12:00:00' - isRecurring: true - - sourceRef: - sourceType: Banking - accountRef: - id: 4f78a6b0-e9bb-40f2-82fd-f3a2daa1fd0a - name: Business Current Account - id: 9846bbed-46d3-472c-a848-1ce8ebea7213 - date: '2022-11-08T00:00:00' - description: Payment from customer a5c68c7b-6825-46de-bf63-6ad23ef506a4 - amount: 4332.84 - currency: GBP - transactionCategory: - confidence: 88 - levels: - - Expense - confidences: - - 88 - platformName: Amazon - counterpartyNames: - - Amazon - - Amazon Marketplace - modifiedDate: '2022-11-08T12:00:00' - isRecurring: false - - sourceRef: - sourceType: Banking - accountRef: - id: 809b9470-c9fa-4257-bc9f-06a1dc7b0cbc - name: Business Undeposited Funds - id: 94b213fb-d742-435e-90f1-bfe723a076d5 - date: '2022-11-08T00:00:00' - description: Payment from customer a5c68c7b-6825-46de-bf63-6ad23ef506a4 - amount: 4034.3 - currency: GBP - transactionCategory: - confidence: 61.08 - levels: - - Income - - Revenue - confidences: - - 65 - - 61.08 - platformName: Shopify - counterpartyNames: [] - modifiedDate: '2022-11-08T12:00:00' - isRecurring: null - - sourceRef: - sourceType: Banking - accountRef: - id: 4f78a6b0-e9bb-40f2-82fd-f3a2daa1fd0a - name: Business Current Account - id: cfceb7ff-eaa2-45b6-aca7-fa0e0b439161 - date: '2022-11-08T00:00:00' - description: Payment to supplier 78792d13-90a0-4ea2-8e07-81c3c893997e - amount: -313.76 - currency: GBP - transactionCategory: - confidence: 40.98 - levels: - - Expense - - CostOfSales - confidences: - - 40.98 - - 99.9 - platformName: Amazon - counterpartyNames: [] - modifiedDate: '2022-11-08T12:00:00' - isRecurring: true - - sourceRef: - sourceType: Banking - accountRef: - id: 809b9470-c9fa-4257-bc9f-06a1dc7b0cbc - name: Business Undeposited Funds - id: ba814f14-0fe3-41d0-9308-57f40642ac75 - date: '2022-11-08T00:00:00' - description: Payment to supplier 46d2e1fb-b4e9-469c-814a-21ff8105a26e - amount: -614.4 - currency: GBP - transactionCategory: - confidence: 55.84 - levels: - - Income - - Revenue - confidences: - - 55.84 - - 75.5 - platformName: Zettle - counterpartyNames: [] - modifiedDate: '2022-11-08T12:00:00' - isRecurring: false - - sourceRef: - sourceType: Banking - accountRef: - id: 4f78a6b0-e9bb-40f2-82fd-f3a2daa1fd0a - name: Business Current Account - id: e67cc30e-fd5c-4eea-8365-ec40dfdd3ef6 - date: '2022-11-08T00:00:00' - description: Payment from customer a5c68c7b-6825-46de-bf63-6ad23ef506a4 - amount: 5199.62 - currency: GBP - transactionCategory: - confidence: 57.85 - levels: - - Expense - confidences: - - 57.85 - platformName: Amazon - counterpartyNames: [] - modifiedDate: '2022-11-08T12:00:00' - isRecurring: null - - sourceRef: - sourceType: Banking - accountRef: - id: 4f78a6b0-e9bb-40f2-82fd-f3a2daa1fd0a - name: Business Current Account - id: e0f08a0b-3575-4dde-98c4-3c854028d2d2 - date: '2022-11-08T00:00:00' - description: Payment to supplier 18ac18dc-945b-4083-9013-e8a100b999fa - amount: -21420.94 - currency: GBP - transactionCategory: - confidence: 70.58 - levels: - - Expense - - Operating - confidences: - - 70.58 - - 100 - platformName: Amazon - counterpartyNames: [] - modifiedDate: '2022-11-08T12:00:00' - isRecurring: true - - sourceRef: - sourceType: Banking - accountRef: - id: 809b9470-c9fa-4257-bc9f-06a1dc7b0cbc - name: Business Undeposited Funds - id: 4b70d379-8284-4f44-bb37-c7935df950cc - date: '2022-11-08T00:00:00' - description: Payment to supplier 630a3f16-5f01-4986-ae6b-82333ec49449 - amount: -30924.22 - currency: GBP - transactionCategory: - confidence: 48.26 - levels: - - Income - confidences: - - 48.26 - platformName: DoorDash - counterpartyNames: [] - modifiedDate: '2022-11-08T12:00:00' - isRecurring: false - - sourceRef: - sourceType: Banking - accountRef: - id: 809b9470-c9fa-4257-bc9f-06a1dc7b0cbc - name: Business Undeposited Funds - id: 76b73373-9345-472e-8edf-5be849d797fe - date: '2022-11-08T00:00:00' - description: Payment to supplier bQATU4eSb9 - amount: -568.78 - currency: GBP - transactionCategory: - confidence: 65.21 - levels: - - Income - - Revenue - confidences: - - 65.21 - - 100 - platformName: Uber - counterpartyNames: - - Uber - modifiedDate: '2022-11-08T12:00:00' - isRecurring: true - - sourceRef: - sourceType: Banking - accountRef: - id: 809b9470-c9fa-4257-bc9f-06a1dc7b0cbc - name: Business Undeposited Funds - id: ee92fd6f-e0f7-4391-85fd-4b50921b973f - date: '2022-11-08T00:00:00' - description: Payment to supplier 9c37eb21-579a-4886-8296-3a853076b7bd - amount: -13050.79 - currency: GBP - transactionCategory: - confidence: 92.33 - levels: - - Income - - Revenue - confidences: - - 92.33 - - 92.33 - platformName: DoorDash - counterpartyNames: - - DoorDash - modifiedDate: '2022-11-08T12:00:00' - isRecurring: false - '400': - $ref: '#/components/responses/BadRequest' - '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' - '/companies/{companyId}/reports/categorizedBankStatement/{reportId}/accounts': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/reportId' - - $ref: '#/components/parameters/maxAge' - - $ref: '#/components/parameters/page' - - $ref: '#/components/parameters/pageSize' - - $ref: '#/components/parameters/query' - - $ref: '#/components/parameters/orderBy' - get: - tags: - - Bank statements - summary: List categorized bank statement accounts - description: |- - The *Get categorized bank statement accounts* endpoint returns a list of bank accounts associated with categorized transactions for a company. - - Before using it, you must call the [Generate report](https://docs.codat.io/lending-api#/operations/generate-report) endpoint of type `categorizedBankStatement`. - operationId: list-categorized-bank-statement-accounts - x-speakeasy-name-override: list-categorized-bank-statement-accounts - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/CategorizedBankStatementAccounts' - example: - pageNumber: 1 - pageSize: 10 - totalResults: 15 - _links: - self: - href: /companies/82458839-6812-49e9-baac-7dcf8c32de1f/reports/categorizedBankStatement/latest/transactions - current: - href: /companies/82458839-6812-49e9-baac-7dcf8c32de1f/reports/categorizedBankStatement/latest/transactions?page=1&pageSize=10 - next: - href: /companies/82458839-6812-49e9-baac-7dcf8c32de1f/reports/categorizedBankStatement/latest/transactions?page=2&pageSize=10 - results: - - sourceRef: - sourceType: Banking - platformName: Banking Sandbox - accountProvider: Lloyds Bank - accountName: Business Savings Account - accountType: Debit - currency: GBP - currentBalance: 0 - - sourceRef: - sourceType: Banking - platformName: Banking Sandbox - accountProvider: Lloyds Bank - accountName: Banking - Business Credit Card - accountType: Credit - currency: GBP - currentBalance: 0 - - sourceRef: - sourceType: Banking - platformName: Banking Sandbox - accountProvider: Lloyds Bank - accountName: Business Undeposited Funds - accountType: Debit - currency: GBP - currentBalance: 0 - - sourceRef: - sourceType: Banking - platformName: Banking Sandbox - accountProvider: Lloyds Bank - accountName: Business Current Account - accountType: Debit - currency: GBP - currentBalance: 0 - '400': - $ref: '#/components/responses/BadRequest' - '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' - '/companies/{companyId}/reports/categorizedBankStatement/{reportId}/excel': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/reportId' - - $ref: '#/components/parameters/maxAge' - get: - tags: - - Bank statements - summary: Download categorized bank statement Excel - description: |- - Use the *Download categorized bank statement Excel* endpoint to download the categorized bank statement Excel file. - - Before using it, you must call the [Generate report](https://docs.codat.io/lending-api#/operations/generate-report) endpoint of type `categorizedBankStatement`. - operationId: download-categorized-bank-statement-excel - x-speakeasy-name-override: download-categorized-bank-statement-excel - responses: - '200': - description: OK - content: - application/octet-stream: - schema: {} - '400': - $ref: '#/components/responses/BadRequest' - '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' - '/companies/{companyId}/reports/creditModel/{reportId}/excel': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/reportId' - - $ref: '#/components/parameters/maxAge' - get: - tags: - - Financial summary - summary: Download credit model Excel - description: |- - > **Available as beta release** - > - > This endpoint is part of a beta release. Please contact your account manager if you want to enable it. - - Use the *Download Credit Model Excel* endpoint to download the credit model Excel file. - - Before using it, you must call the [Generate report](https://docs.codat.io/lending-api#/operations/generate-report) endpoint of type `creditModel`. - operationId: download-credit-model-excel - x-speakeasy-name-override: download-credit-model-excel - responses: - '200': - description: OK - content: - application/octet-stream: - schema: {} - '400': - $ref: '#/components/responses/BadRequest' - '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' - '/companies/{companyId}/reports': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/page' - - $ref: '#/components/parameters/pageSize' - - $ref: '#/components/parameters/query' - - $ref: '#/components/parameters/orderBy' - get: - tags: - - Manage reports - summary: List reports - description: 'Use the *List reports* endpoint to return details (such as generation''s current status, date of request, and date of generation) about all reports generated for a company. The query parameter can be used to filter the results.' - operationId: list-reports - x-speakeasy-name-override: list-reports - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/ReportOperation/definitions/reports' - example: - pageNumber: 1 - pageSize: 4 - totalResults: 15 - _links: - self: - href: /companies/0f591937-4ea9-48c4-847a-fe65fb24bb41/reports - current: - href: /companies/0f591937-4ea9-48c4-847a-fe65fb24bb41/reports?page=1&pageSize=4 - next: - href: /companies/0f591937-4ea9-48c4-847a-fe65fb24bb41/reports?page=2&pageSize=4 - results: - - id: c0d52c82-777f-4309-81a0-d935aea0562b - status: InProgress - type: categorizedBankStatement - requested: '2024-10-15T07:00:00Z' - updated: '2024-10-15T15:31:45Z' - - id: 79ef0451-edbd-4108-82ff-0b991444f1ec - status: Complete - type: categorizedBankStatement - requested: '2024-09-10T05:50:00Z' - updated: '2024-09-11T14:37:12Z' - - id: ae125b45-ed37-4bb4-bb4a-d55383fd56b2 - status: Complete - type: categorizedBankStatement - requested: '2024-09-06T07:47:10Z' - updated: '2024-09-20T14:42:15Z' - - id: ebfaf90c-31fe-407f-a016-bc2b3e60894a - status: Error - type: categorizedBankStatement - requested: '2024-07-15T04:45:14Z' - updated: '2024-07-15T17:41:45Z' - errorMessage: Failed to generate the report because.... - '400': - $ref: '#/components/responses/BadRequest' - '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' - '/companies/{companyId}/reports/creditModel/{reportId}/financialSummary': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/reportId' - get: - tags: - - Financial summary - summary: Get financial summary insights - description: |- - > **Available as beta release** - > - > This endpoint is part of a beta release. Please contact your account manager if you want to enable it. - - Financial summary insights provide high-level indicators about the accuracy and completeness of a business’s financial data. These insights include: - - Closed Books Indicator – An estimate of the most recent accounting period officially closed by a business - - Accounting Score – An evaluation of the quality and completeness of a business’s bookkeeping - - Before accessing this endpoint, you must call the [Generate report](https://docs.codat.io/lending-api#/operations/generate-report) endpoint of type `creditModel`. - - > Please note that missing elements might be disabled for the account. Please contact account manager for more details. - operationId: get-financial-summary - x-speakeasy-name-override: get-financial-summary - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/FinancialSummary' - example: - booksClosedDate: - date: '2025-05-31T00:00:00Z' - reason: - - One or more accounts show a deviation from expected movements for March 2025 - - One of the marketing accounts haven't been booked for February 2025 - - One of the inventory accounts haven't been booked for March 2025 - accountingScore: - score: 90 - reason: - - Balance sheet is unbalanced. - - Negative Tangible Assets on Balance Sheet - - Negative Accounts Receivable on Balance Sheet - '204': - description: No content - '400': - $ref: '#/components/responses/BadRequest' - '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' - '451': - $ref: '#/components/responses/Legal-Reasons' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' -webhooks: - company.created: - post: - description: Called when a company is created in Codat. - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/CompanyWebhook' - examples: - Company created: - value: - id: ba29118f-5406-4e59-b05c-ba307ca38d01 - eventType: company.created - generatedDate: '2024-08-08T17:10:34.015Z' - payload: - id: 0498e921-9b53-4396-a412-4f2f5983b0a2 - name: Bank of Dave - description: Requested a loan for refurb. - redirect: 'https://link.codat.io/company/0498e921-9b53-4396-a412-4f2f5983b0a2' - lastSync: '2022-01-01T12:00:00.000Z' - created: '2022-01-01T12:00:00.000Z' - tags: - customerRegion: us - uid: 335a086e-8563-4b03-94e3-39544225ecb6 - responses: - '200': - description: Return a 200 status to indicate that the webhook was received successfully. - company.deleted: - post: - description: Called when a company is deleted in Codat. - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/CompanyWebhook' - examples: - Company deleted: - value: - id: ba29118f-5406-4e59-b05c-ba307ca38d01 - eventType: company.deleted - generatedDate: '2024-08-08T17:10:34.015Z' - payload: - id: 0498e921-9b53-4396-a412-4f2f5983b0a2 - name: Bank of Dave - description: Requested a loan for refurb. - redirect: 'https://link.codat.io/company/0498e921-9b53-4396-a412-4f2f5983b0a2' - lastSync: '2022-01-01T12:00:00.000Z' - created: '2022-01-01T12:00:00.000Z' - tags: - customerRegion: uk - uid: f6b0c253-16c7-4da1-a0c5-9c871e9c9d6c - responses: - '200': - description: Return a 200 status to indicate that the webhook was received successfully. - connection.created: - post: - description: Called when a connection is created by the SMB. - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ConnectionWebhook' - examples: - Connection created: - value: - id: ba29118f-5406-4e59-b05c-ba307ca38d01 - eventType: connection.created - generatedDate: '2024-08-08T17:10:34.015Z' - payload: - referenceCompany: - id: 0498e921-9b53-4396-a412-4f2f5983b0a2 - name: Bank of Dave - description: internal_id_mxO7rLfo - links: - portal: 'https://app.codat.io/companies/0498e921-9b53-4396-a412-4f2f5983b0a2/summary' - tags: - customerRegion: us - uid: 335a086e-8563-4b03-94e3-39544225ecb6 - connection: - id: ee2eb431-c0fa-4dc9-93fa-d29781c12bcd - integrationId: bf083d72-62c7-493e-aec9-81b4dbba7e2c - integrationKey: dfxm - sourceId: bdd831ce-eebd-4896-89a7-20e5ee8989ee - platformName: Basiq - linkUrl: 'https://link-api.codat.io/companies/0498e921-9b53-4396-a412-4f2f5983b0a2/connections/ee2eb431-c0fa-4dc9-93fa-d29781c12bcd/start' - status: PendingAuth - lastSync: '2022-10-27T10:22:43.6464237Z' - created: '2022-10-27T09:53:29Z' - sourceType: Banking - responses: - '200': - description: Return a 200 status to indicate that the webhook was received successfully. - connection.connected: - post: - description: Called when a connection is successfully linked by the SMB. - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ConnectionWebhook' - examples: - Connection connected: - value: - id: ba29118f-5406-4e59-b05c-ba307ca38d01 - eventType: connection.connected - generatedDate: '2024-08-08T17:10:34.015Z' - payload: - referenceCompany: - id: 0498e921-9b53-4396-a412-4f2f5983b0a2 - name: Bank of Dave - description: internal_id_mxO7rLfo - links: - portal: 'https://app.codat.io/companies/0498e921-9b53-4396-a412-4f2f5983b0a2/summary' - tags: - customerRegion: us - uid: 335a086e-8563-4b03-94e3-39544225ecb6 - connection: - id: ee2eb431-c0fa-4dc9-93fa-d29781c12bcd - integrationId: bf083d72-62c7-493e-aec9-81b4dbba7e2c - integrationKey: dfxm - sourceId: bdd831ce-eebd-4896-89a7-20e5ee8989ee - platformName: Basiq - linkUrl: 'https://link-api.codat.io/companies/0498e921-9b53-4396-a412-4f2f5983b0a2/connections/ee2eb431-c0fa-4dc9-93fa-d29781c12bcd/start' - status: Linked - lastSync: '2022-10-27T10:22:43.6464237Z' - created: '2022-10-27T09:53:29Z' - sourceType: Banking - responses: - '200': - description: Return a 200 status to indicate that the webhook was received successfully. - connection.failed: - post: - description: Called when a connection failed linking to the SMB. - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ConnectionWebhook' - examples: - Connection failed: - value: - id: ba29118f-5406-4e59-b05c-ba307ca38d01 - eventType: connection.failed - generatedDate: '2024-08-08T17:10:34.015Z' - payload: - referenceCompany: - id: 0498e921-9b53-4396-a412-4f2f5983b0a2 - name: Bank of Dave - description: internal_id_mxO7rLfo - links: - portal: 'https://app.codat.io/companies/0498e921-9b53-4396-a412-4f2f5983b0a2/summary' - tags: - customerRegion: us - uid: 335a086e-8563-4b03-94e3-39544225ecb6 - connection: - id: ee2eb431-c0fa-4dc9-93fa-d29781c12bcd - integrationId: bf083d72-62c7-493e-aec9-81b4dbba7e2c - integrationKey: dfxm - sourceId: bdd831ce-eebd-4896-89a7-20e5ee8989ee - platformName: Basiq - linkUrl: 'https://link-api.codat.io/companies/0498e921-9b53-4396-a412-4f2f5983b0a2/connections/ee2eb431-c0fa-4dc9-93fa-d29781c12bcd/start' - status: PendingAuth - created: '2022-10-27T09:53:29Z' - sourceType: Banking - dataConnectionErrors: - - statusCode: '403' - statusText: User cancelled linking - errorMessage: User cancelled - erroredOnUtc: '2022-10-27T09:53:29Z' - status: Active - responses: - '200': - description: Return a 200 status to indicate that the webhook was received successfully. - connection.disconnected: - post: - description: Called when a connection is disconnected either due to being unlinked or de-authorized by the SMB or integration. - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ConnectionWebhook' - examples: - Unlinked: - value: - id: ba29118f-5406-4e59-b05c-ba307ca38d01 - eventType: connection.disconnected - generatedDate: '2024-08-08T17:10:34.015Z' - payload: - referenceCompany: - id: 0498e921-9b53-4396-a412-4f2f5983b0a2 - name: Bank of Dave - description: internal_id_mxO7rLfo - links: - portal: 'https://app.codat.io/companies/0498e921-9b53-4396-a412-4f2f5983b0a2/summary' - tags: - customerRegion: us - uid: 335a086e-8563-4b03-94e3-39544225ecb6 - connection: - id: ee2eb431-c0fa-4dc9-93fa-d29781c12bcd - integrationId: bf083d72-62c7-493e-aec9-81b4dbba7e2c - integrationKey: dfxm - sourceId: bdd831ce-eebd-4896-89a7-20e5ee8989ee - platformName: Basiq - linkUrl: 'https://link-api.codat.io/companies/0498e921-9b53-4396-a412-4f2f5983b0a2/connections/ee2eb431-c0fa-4dc9-93fa-d29781c12bcd/start' - status: Unlinked - lastSync: '2022-10-27T10:22:43.6464237Z' - created: '2022-10-27T09:53:29Z' - sourceType: Banking - De-authorized: - value: - id: ba29118f-5406-4e59-b05c-ba307ca38d01 - eventType: connection.disconnected - generatedDate: '2024-08-08T17:10:34.015Z' - payload: - referenceCompany: - id: 0498e921-9b53-4396-a412-4f2f5983b0a2 - name: Bank of Dave - description: internal_id_mxO7rLfo - links: - portal: 'https://app.codat.io/companies/0498e921-9b53-4396-a412-4f2f5983b0a2/summary' - tags: - customerRegion: us - uid: 335a086e-8563-4b03-94e3-39544225ecb6 - connection: - id: ee2eb431-c0fa-4dc9-93fa-d29781c12bcd - integrationId: bf083d72-62c7-493e-aec9-81b4dbba7e2c - integrationKey: dfxm - sourceId: bdd831ce-eebd-4896-89a7-20e5ee8989ee - platformName: Basiq - linkUrl: 'https://link-api.codat.io/companies/0498e921-9b53-4396-a412-4f2f5983b0a2/connections/ee2eb431-c0fa-4dc9-93fa-d29781c12bcd/start' - status: Deauthorized - lastSync: '2022-10-27T10:22:43.6464237Z' - created: '2022-10-27T09:53:29Z' - sourceType: Banking - dataConnectionErrors: - - statusCode: '401' - statusText: The integration de-authorized access to the connection. - errorMessage: The integration de-authorized access to the connection. - erroredOnUtc: '2022-12-27T09:53:29Z' - status: Active - responses: - '200': - description: Return a 200 status to indicate that the webhook was received successfully. - connection.reconnected: - post: - description: Called when a connection is reconnected after becoming disconnected. - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ConnectionWebhook' - examples: - Reconnected: - value: - id: ba29118f-5406-4e59-b05c-ba307ca38d01 - eventType: connection.reconnected - generatedDate: '2024-08-08T17:10:34.015Z' - payload: - referenceCompany: - id: 0498e921-9b53-4396-a412-4f2f5983b0a2 - name: Bank of Dave - description: internal_id_mxO7rLfo - links: - portal: 'https://app.codat.io/companies/0498e921-9b53-4396-a412-4f2f5983b0a2/summary' - tags: - customerRegion: us - uid: 335a086e-8563-4b03-94e3-39544225ecb6 - connection: - id: ee2eb431-c0fa-4dc9-93fa-d29781c12bcd - integrationId: bf083d72-62c7-493e-aec9-81b4dbba7e2c - integrationKey: dfxm - sourceId: bdd831ce-eebd-4896-89a7-20e5ee8989ee - platformName: Basiq - linkUrl: 'https://link-api.codat.io/companies/0498e921-9b53-4396-a412-4f2f5983b0a2/connections/ee2eb431-c0fa-4dc9-93fa-d29781c12bcd/start' - status: Linked - lastSync: '2022-10-27T10:22:43.6464237Z' - created: '2022-10-27T09:53:29Z' - sourceType: Banking - responses: - '200': - description: Return a 200 status to indicate that the webhook was received successfully. - connection.deleted: - post: - description: Called when a connection is deleted. - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ConnectionWebhook' - examples: - Deleted: - value: - id: ba29118f-5406-4e59-b05c-ba307ca38d01 - eventType: connection.deleted - generatedDate: '2024-08-08T17:10:34.015Z' - payload: - referenceCompany: - id: 0498e921-9b53-4396-a412-4f2f5983b0a2 - name: Bank of Dave - description: internal_id_mxO7rLfo - links: - portal: 'https://app.codat.io/companies/0498e921-9b53-4396-a412-4f2f5983b0a2/summary' - tags: - customerRegion: us - uid: 335a086e-8563-4b03-94e3-39544225ecb6 - connection: - id: ee2eb431-c0fa-4dc9-93fa-d29781c12bcd - integrationId: bf083d72-62c7-493e-aec9-81b4dbba7e2c - integrationKey: dfxm - sourceId: bdd831ce-eebd-4896-89a7-20e5ee8989ee - platformName: Basiq - linkUrl: 'https://link-api.codat.io/companies/0498e921-9b53-4396-a412-4f2f5983b0a2/connections/ee2eb431-c0fa-4dc9-93fa-d29781c12bcd/start' - status: Linked - lastSync: '2022-10-27T10:22:43.6464237Z' - created: '2022-10-27T09:53:29Z' - sourceType: Banking - responses: - '200': - description: Return a 200 status to indicate that the webhook was received successfully. - read.completed: - post: - description: Called when the fetch of data types for a product has completed. - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ReadCompletedWebhook' - examples: - Read completed with validation warnings: - value: - id: 743ec94a-8aa4-44bb-8bd4-e1855ee0e74b - eventType: read.completed - generatedDate: '2022-10-23T00:00:00.000Z' - payload: - referenceCompany: - id: 0498e921-9b53-4396-a412-4f2f5983b0a2 - name: Toft stores - description: Requested early access to the new financing scheme. - links: - portal: 'https://app.codat.io/companies/0498e921-9b53-4396-a412-4f2f5983b0a2/summary' - modifiedFromDate: '2022-10-23T00:00:00.000Z' - dataTypes: - - connectionId: 2e9d2c44-f675-40ba-8049-353bfcb5e171 - dataType: invoices - recordsModified: false - status: Complete - issues: - - type: warning.validation - message: Something doesn't look right about these invoices. You can see more information in the logs. - links: - logs: 'https://api.codat.io/companies/0498e921-9b53-4396-a412-4f2f5983b0a2/sync/743ec94a-8aa4-44bb-8bd4-e1855ee0e74b/validation' - portal: 'https://app.codat.io/companies/0498e921-9b53-4396-a412-4f2f5983b0a2/pull-history' - readMore: 'https://docs.codat.io/using-the-api/get-data-troubleshooting#warning.validation' - Read completed without issues: - value: - id: 743ec94a-8aa4-44bb-8bd4-e1855ee0e74b - eventType: read.completed - generatedDate: '2022-10-23T00:00:00.000Z' - payload: - referenceCompany: - id: 0498e921-9b53-4396-a412-4f2f5983b0a2 - name: Toft stores - description: Requested early access to the new financing scheme. - links: - portal: 'https://app.codat.io/companies/0498e921-9b53-4396-a412-4f2f5983b0a2/summary' - modifiedFromDate: '2022-10-23T00:00:00.000Z' - dataTypes: - - connectionId: 2e9d2c44-f675-40ba-8049-353bfcb5e171 - dataType: invoices - recordsModified: false - status: Complete - issues: [] - responses: - '200': - description: Return a 200 status to indicate that the webhook was received successfully. - read.completed.initial: - post: - description: Called when the initial fetch of data types for a product has been completed. - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ReadCompletedWebhook' - examples: - Initial with validation warnings: - value: - id: 743ec94a-8aa4-44bb-8bd4-e1855ee0e74b - eventType: read.completed.initial - generatedDate: '2022-10-23T00:00:00.000Z' - payload: - referenceCompany: - id: 0498e921-9b53-4396-a412-4f2f5983b0a2 - name: Toft stores - description: Requested early access to the new financing scheme. - links: - portal: 'https://app.codat.io/companies/0498e921-9b53-4396-a412-4f2f5983b0a2/summary' - modifiedFromDate: '2022-10-23T00:00:00.000Z' - dataTypes: - - connectionId: 2e9d2c44-f675-40ba-8049-353bfcb5e171 - dataType: invoices - recordsModified: false - status: Complete - issues: - - type: warning.validation - message: Something doesn't look right about these invoices. You can see more information in the logs. - links: - logs: 'https://api.codat.io/companies/0498e921-9b53-4396-a412-4f2f5983b0a2/sync/743ec94a-8aa4-44bb-8bd4-e1855ee0e74b/validation' - portal: 'https://app.codat.io/companies/0498e921-9b53-4396-a412-4f2f5983b0a2/pull-history' - readMore: 'https://docs.codat.io/using-the-api/get-data-troubleshooting#warning.validation' - Initial without issues: - value: - id: 743ec94a-8aa4-44bb-8bd4-e1855ee0e74b - eventType: read.completed.initial - generatedDate: '2022-10-23T00:00:00.000Z' - payload: - referenceCompany: - id: 0498e921-9b53-4396-a412-4f2f5983b0a2 - name: Toft stores - description: Requested early access to the new financing scheme. - links: - portal: 'https://app.codat.io/companies/0498e921-9b53-4396-a412-4f2f5983b0a2/summary' - modifiedFromDate: '2022-10-23T00:00:00.000Z' - dataTypes: - - connectionId: 2e9d2c44-f675-40ba-8049-353bfcb5e171 - dataType: invoices - recordsModified: false - status: Complete - issues: [] - responses: - '200': - description: Return a 200 status to indicate that the webhook was received successfully. - '{dataType}.write.successful': - post: - description: | - Indicates that a `dataType` has been successfully created, updated, deleted, or had an attachment uploaded in the accounting software. - - Codat now refers to push operations as write requests. - - For example, to subscribe to events where a bill is written into the accounting software, use the `bills.write.successful` webhook. - - ### Supported data types and write types - - | `dataType` | Create | Update | Delete | UploadAttachment | - |------------------|---------|---------|---------|------------------| - | bankAccounts | ✅ | ✅ | - | - | - | bankTransactions | ✅ | - | - | - | - | billCreditNotes | ✅ | ✅ | - | ✅ | - | billPayments | ✅ | - | ✅ | - | - | bills | ✅ | ✅ | ✅ | ✅ | - | chartOfAccounts | ✅ | - | - | - | - | creditNotes | ✅ | ✅ | - | - | - | customers | ✅ | ✅ | - | - | - | directCosts | ✅ | - | ✅ | ✅ | - | directIncomes | ✅ | - | - | ✅ | - | invoices | ✅ | ✅ | ✅ | ✅ | - | items | ✅ | - | - | - | - | journalEntries | ✅ | - | ✅ | - | - | journals | ✅ | - | - | - | - | payments | ✅ | - | - | - | - | purchaseOrders | ✅ | ✅ | - | - | - | suppliers | ✅ | ✅ | - | - | - | transfers | ✅ | - | - | ✅ | - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/DataTypeWriteWebhook' - examples: - Record: - value: - id: bae71d36-ff47-420a-b4a6-f8c9ddf41140 - eventType: '{dataType}.write.successful' - generatedDate: '2023-05-03T10:00:23Z' - payload: - id: a9367074-b5c3-42c4-9be4-be129f43577e - type: Create - referenceCompany: - id: 70af3071-65d9-4ec3-b3cb-5283e8d55dac - name: Toft stores - description: cust_1MtJUT2eZvKYlo2CNaw2HvEv - connectionId: 12571faf-0898-47e7-afdd-0fe9eb0a9bf5 - requestedOnDate: '2023-05-03T10:00:00Z' - completedOnDate: '2023-05-03T10:00:23Z' - status: Success - record: - id: bil_1Nispe2eZvKYlo2Cd31jOCgZ - Attachment: - value: - id: bae71d36-ff47-420a-b4a6-f8c9ddf41140 - eventType: '{dataType}.write.successful' - generatedDate: '2023-05-03T10:00:23Z' - payload: - id: a9367074-b5c3-42c4-9be4-be129f43577e - type: UploadAttachment - referenceCompany: - id: 70af3071-65d9-4ec3-b3cb-5283e8d55dac - name: Toft stores - description: cust_1MtJUT2eZvKYlo2CNaw2HvEv - connectionId: 12571faf-0898-47e7-afdd-0fe9eb0a9bf5 - requestedOnDate: '2023-05-03T10:00:00Z' - completedOnDate: '2023-05-03T10:00:23Z' - status: Success - record: - id: bil_1Nispe2eZvKYlo2Cd31jOCgZ - attachmentId: att_1AZtxr2eZvKYlo2CJDX8whov - responses: - '200': - description: Return a 200 status to indicate that the webhook was received. - '{dataType}.write.unsuccessful': - post: - description: | - Indicates that a `dataType` has not been successfully created, updated, deleted, or had an attachment uploaded in the accounting software. - - Codat now refers to push operations as write requests. - - For example, to subscribe to events where a bill is written into the accounting software, use the `bills.write.unsuccessful` webhook. - - ### Supported data types and write types - - | `dataType` | Create | Update | Delete | UploadAttachment | - |------------------|---------|---------|---------|------------------| - | bankAccounts | ✅ | ✅ | - | - | - | bankTransactions | ✅ | - | - | - | - | billCreditNotes | ✅ | ✅ | - | ✅ | - | billPayments | ✅ | - | ✅ | - | - | bills | ✅ | ✅ | ✅ | ✅ | - | chartOfAccounts | ✅ | - | - | - | - | creditNotes | ✅ | ✅ | - | - | - | customers | ✅ | ✅ | - | - | - | directCosts | ✅ | - | ✅ | ✅ | - | directIncomes | ✅ | - | - | ✅ | - | invoices | ✅ | ✅ | ✅ | ✅ | - | items | ✅ | - | - | - | - | journalEntries | ✅ | - | ✅ | - | - | journals | ✅ | - | - | - | - | payments | ✅ | - | - | - | - | purchaseOrders | ✅ | ✅ | - | - | - | suppliers | ✅ | ✅ | - | - | - | transfers | ✅ | - | - | ✅ | - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/DataTypeWriteWebhook' - examples: - Record: - value: - id: bae71d36-ff47-420a-b4a6-f8c9ddf41140 - eventType: '{dataType}.write.unsuccessful' - generatedDate: '2023-05-03T10:00:23Z' - payload: - id: a9367074-b5c3-42c4-9be4-be129f43577e - type: Update - referenceCompany: - id: 70af3071-65d9-4ec3-b3cb-5283e8d55dac - name: Toft stores - description: cust_1MtJUT2eZvKYlo2CNaw2HvEv - connectionId: 12571faf-0898-47e7-afdd-0fe9eb0a9bf5 - requestedOnDate: '2023-05-03T10:00:00Z' - completedOnDate: '2023-05-03T10:00:23Z' - status: Failed - Record timed out: - value: - id: bae71d36-ff47-420a-b4a6-f8c9ddf41140 - eventType: '{dataType}.write.unsuccessful' - generatedDate: '2023-05-03T10:00:23Z' - payload: - id: a9367074-b5c3-42c4-9be4-be129f43577e - type: Delete - referenceCompany: - id: 70af3071-65d9-4ec3-b3cb-5283e8d55dac - name: Toft stores - description: cust_1MtJUT2eZvKYlo2CNaw2HvEv - connectionId: 12571faf-0898-47e7-afdd-0fe9eb0a9bf5 - requestedOnDate: '2023-05-03T10:00:00Z' - completedOnDate: '2023-05-03T10:00:23Z' - status: TimedOut - Attachment: - value: - id: bae71d36-ff47-420a-b4a6-f8c9ddf41140 - eventType: '{dataType}.write.unsuccessful' - generatedDate: '2023-05-03T10:00:23Z' - payload: - id: a9367074-b5c3-42c4-9be4-be129f43577e - type: UploadAttachment - referenceCompany: - id: 70af3071-65d9-4ec3-b3cb-5283e8d55dac - name: Toft stores - description: cust_1MtJUT2eZvKYlo2CNaw2HvEv - connectionId: 12571faf-0898-47e7-afdd-0fe9eb0a9bf5 - requestedOnDate: '2023-05-03T10:00:00Z' - completedOnDate: '2023-05-03T10:00:23Z' - status: TimedOut - record: - id: bil_1Nispe2eZvKYlo2Cd31jOCgZ - responses: - '200': - description: Return a 200 status to indicate that the webhook was received. - Account categories updated: - post: - requestBody: - description: Triggered when a company's accounts are categorized. - content: - application/json: - schema: - $ref: '#/components/schemas/AccountCategoriesUpdatedWebhook' - responses: - '200': - description: Return a 200 status to indicate that the webhook was received successfully. - client.rateLimit.reached: - post: - description: Called when your client’s request count to Codat's API surpasses the allocated quota. - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ClientRateLimitWebhook' - examples: - Reached: - value: - id: 743ec94a-8aa4-44bb-8bd4-e1855ee0e74b - eventType: client.rateLimit.reached - generatedDate: '2024-09-01T00:00:00Z' - payload: - dailyQuota: 12000 - quotaRemaining: 0 - expiryDate: '2024-09-01T12:14:14Z' - responses: - '200': - description: Return a 200 status to indicate that the webhook was received successfully. - client.rateLimit.reset: - post: - description: 'Called when your client''s rate limit quota is reset, allowing additional requests to Codat''s API.' - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ClientRateLimitWebhook' - examples: - Reset: - value: - id: 743ec94a-8aa4-44bb-8bd4-e1855ee0e74b - eventType: client.rateLimit.reset - generatedDate: '2024-09-01T00:00:00Z' - payload: - dailyQuota: 12000 - quotaRemaining: 11993 - expiryDate: '2024-09-01T23:59:99Z' - responses: - '200': - description: Return a 200 status to indicate that the webhook was received successfully. -components: - schemas: - ApiKeyDetails: - title: API key details - description: Details of the API key. - reports.categorizedBankStatement.generate.successful: - post: - description: Called when a categorized bank statement is successfully generated for a company. - requestBody: - content: - application/json: - schema: - $ref: '#/webhooks/reports.creditModel.generate.successful/post/requestBody/content/application~1json/schema' - examples: - Successful: - value: - id: bae71d36-ff47-420a-b4a6-f8c9ddf41140 - eventType: reports.categorizedBankStatement.generate.successful - generatedDate: '2023-05-03T10:00:23.000Z' - payload: - id: bb42ce7e-720a-4ac5-b640-f24f53ff47c8 - referenceCompany: - id: 0498e921-9b53-4396-a412-4f2f5983b0a2 - name: Bank of Dave - description: internal_id_mxO7rLfo - links: - portal: 'https://app.codat.io/companies/0498e921-9b53-4396-a412-4f2f5983b0a2/summary' - tags: - customerRegion: us - uid: 335a086e-8563-4b03-94e3-39544225ecb6 - responses: - '200': - description: Return a 200 status to indicate that the webhook was received successfully. - reports.categorizedBankStatement.generate.unsuccessful: - post: - description: Called when a categorized bank statement has failed to be generated for a company. - requestBody: - content: - application/json: - schema: - $ref: '#/webhooks/reports.creditModel.generate.successful/post/requestBody/content/application~1json/schema' - examples: - Unsuccessful: - value: - id: bae71d36-ff47-420a-b4a6-f8c9ddf41140 - eventType: reports.categorizedBankStatement.generate.unsuccessful - generatedDate: '2023-05-03T10:00:23.000Z' - payload: - id: bb42ce7e-720a-4ac5-b640-f24f53ff47c8 - referenceCompany: - id: 0498e921-9b53-4396-a412-4f2f5983b0a2 - name: Bank of Dave - description: internal_id_mxO7rLfo - links: - portal: 'https://app.codat.io/companies/0498e921-9b53-4396-a412-4f2f5983b0a2/summary' - tags: - customerRegion: us - uid: 335a086e-8563-4b03-94e3-39544225ecb6 - responses: - '200': - description: Return a 200 status to indicate that the webhook was received successfully. - reports.creditModel.generate.successful: - post: - description: Called when a credit model report is successfully generated. - requestBody: - content: - application/json: - schema: - title: Report generation webhook - type: object - properties: - id: - type: string - format: uuid - example: ba29118f-5406-4e59-b05c-ba307ca38d01 - description: Unique identifier of the event. - eventType: - type: string - description: The type of event. - examples: - - reports.categorizedBankStatement.generate.successful - - reports.creditModel.generate.successful - generatedDate: - $ref: '#/components/schemas/DateTime' - description: The date time in UTC the event was generated in Codat. - payload: - $ref: '#/webhooks/reports.creditModel.generate.successful/post/requestBody/content/application~1json/schema/definitions/ReportGenerationPayload' - definitions: - ReportGenerationPayload: - title: Report generation payload - type: object - properties: - id: - type: string - format: uuid - example: a78e2625-7190-4d94-ae3b-071320451026 - description: Unique identifier of the report. - referenceCompany: - $ref: '#/components/schemas/Company/definitions/companyReference' - examples: - Successful: - value: - id: bae71d36-ff47-420a-b4a6-f8c9ddf41140 - eventType: reports.creditModel.generate.successful - generatedDate: '2023-05-03T10:00:23.000Z' - payload: - id: bb42ce7e-720a-4ac5-b640-f24f53ff47c8 - referenceCompany: - id: 0498e921-9b53-4396-a412-4f2f5983b0a2 - name: Bank of Dave - description: Looking for a loan. - links: - portal: 'https://app.codat.io/companies/0498e921-9b53-4396-a412-4f2f5983b0a2/summary' - tags: - customerRegion: us - uid: 335a086e-8563-4b03-94e3-39544225ecb6 - responses: - '200': - description: Return a 200 status to indicate that the webhook was received successfully. - reports.creditModel.generate.unsuccessful: - post: - description: Called when a credit model report has failed to be generated for a company. - requestBody: - content: - application/json: - schema: - $ref: '#/webhooks/reports.creditModel.generate.successful/post/requestBody/content/application~1json/schema' - examples: - Unsuccessful: - value: - id: bae71d36-ff47-420a-b4a6-f8c9ddf41140 - eventType: reports.creditModel.generate.unsuccessful - generatedDate: '2023-05-03T10:00:23.000Z' - payload: - id: bb42ce7e-720a-4ac5-b640-f24f53ff47c8 - referenceCompany: - id: 0498e921-9b53-4396-a412-4f2f5983b0a2 - name: Bank of Dave - description: Looking for a loan. - links: - portal: 'https://app.codat.io/companies/0498e921-9b53-4396-a412-4f2f5983b0a2/summary' - tags: - customerRegion: us - uid: 335a086e-8563-4b03-94e3-39544225ecb6 - responses: - '200': - description: Return a 200 status to indicate that the webhook was received successfully. -components: - schemas: - AccountCategoriesUpdatedWebhook: - title: Account categories updated webhook - description: Webhook request body for the "Account categories updated" event. - x-internal: true - type: object - properties: - ClientId: - title: Client ID - type: string - format: uuid - description: Unique identifier for your client in Codat. - ClientName: - type: string - description: Name of your client in Codat. - CompanyId: - $ref: '#/components/parameters/companyId/schema' - DataConnectionId: - $ref: '#/components/parameters/connectionId/schema' - RuleId: - type: string - format: uuid - description: Unique identifier for the rule. - deprecated: true - RuleType: - type: string - x-stoplight: - id: 34d52a089f08a - description: The type of rule. - AlertId: - type: string - format: uuid - description: Unique identifier of the webhook event. - Message: - type: string - description: A human-readable message about the webhook. - Data: - $ref: '#/components/schemas/AccountCategoriesUpdatedWebhook/definitions/AccountCategoriesUpdatedWebhookData' - definitions: - AccountCategoriesUpdatedWebhookData: - type: object - title: Account categories updated webhook data - properties: - modifiedDate: - $ref: '#/components/schemas/SourceAccountV2/properties/feedStartDate' - description: The date on which the company's account categories were last modified in Codat. - examples: - - ClientId: bae71d36-ff47-420a-b4a6-f8c9ddf41140 - ClientName: Bank of Dave - CompanyId: 8a210b68-6988-11ed-a1eb-0242ac120002 - DataConnectionId: 2e9d2c44-f675-40ba-8049-353bfcb5e171 - RuleId: 70af3071-65d9-4ec3-b3cb-5283e8d55dac - RuleType: Account Categories Updated - AlertId: a9367074-b5c3-42c4-9be4-be129f43577e - Message: Account categories updated for company f1c35bdc-1546-41b9-baf4-3f31135af968. - Data: - modifiedDate: '2019-08-24T14:15:22Z' - AccountingAccount: - title: 'Accounting: Account' - description: "\uFEFF> **Language tip:** Accounts are also referred to as **chart of accounts**, **nominal accounts**, and **general ledger**.\n\n## Overview\n\nAccounts are the categories a business uses to record accounting transactions. From the Accounts endpoints, you can retrieve a list of all accounts for a specified company.\n\nThe categories for an account include:\n* Asset\n* Expense\n* Income\n* Liability\n* Equity.\n\nThe same account may have a different category based on the integration it is used in. For example, a current account (known as checking in the US) should be categorized as `Asset.Current` for Xero, and `Asset.Bank.Checking` for QuickBooks Online.\n\nAt the same time, each integration may have its own requirements to the categories. For example, a Paypal account in Xero is of the `Asset.Bank` category and therefore requires additional properties to be provided.\n\nTo determine the list of allowed categories for a specific integration, you can:\n- Follow our [Create, update, delete data](https://docs.codat.io/using-the-api/push) guide and use the [Get create account model](https://docs.codat.io/lending-api#/operations/get-create-chartOfAccounts-model).\n- Refer to the integration's own documentation.\n\n> **Accounts with no category**\n>\n> If an account is pulled from the chart of accounts and its nominal code does not lie within the category layout for the company's accounts, then the **type** is `Unknown`. The **fullyQualifiedCategory** and **fullyQualifiedName** fields return `null`.\n>\n> This approach gives a true representation of the company's accounts whilst preventing distorting financials such as a company's profit and loss and balance sheet reports." - allOf: - - properties: - id: - type: string - description: 'Identifier for the account, unique for the company.' - example: 1b6266d1-1e44-46c5-8eb5-a8f98e03124e - - $ref: '#/components/schemas/AccountingAccount/definitions/accountPrototype' - - properties: - metadata: - $ref: '#/components/schemas/Metadata' - - $ref: '#/components/schemas/CommerceOrder/allOf/3' - definitions: - accountPrototype: - title: Account prototype - type: object - properties: - nominalCode: - type: string - nullable: true - description: Reference given to each nominal account for a business. It ensures money is allocated to the correct account. This code isn't a unique identifier in the Codat system. - example: '610' - name: - type: string - nullable: true - description: Name of the account. - example: Accounts Receivable - description: - type: string - nullable: true - description: Description for the account. - example: Invoices the business has issued but has not yet collected payment on. - fullyQualifiedCategory: - type: string - nullable: true - description: "Full category of the account. \r\n\r\nFor example, `Liability.Current` or `Income.Revenue`. To determine a list of possible categories for each integration, see our examples, follow our [Create, update, delete data](https://docs.codat.io/using-the-api/push) guide, or refer to the integration's own documentation." - example: Asset.Current - fullyQualifiedName: - type: string - nullable: true - description: |- - Full name of the account, for example: - - `Cash On Hand` - - `Rents Held In Trust` - - `Fixed Asset` - examples: - - Cash On Hand - - Fixed Asset - currency: - $ref: '#/components/schemas/SourceAccount/properties/currency' - currentBalance: - type: number - format: decimal - nullable: true - description: Current balance in the account. - example: 0 - type: - $ref: '#/components/schemas/AccountingAccount/definitions/accountType' - status: - $ref: '#/components/schemas/AccountingAccount/definitions/accountStatus' - isBankAccount: - type: boolean - description: Confirms whether the account is a bank account or not. - validDatatypeLinks: - type: array - nullable: true - description: 'The validDatatypeLinks can be used to determine whether an account can be correctly mapped to another object; for example, accounts with a `type` of `income` might only support being used on an Invoice and Direct Income. For more information, see [Valid Data Type Links](/lending-api#/schemas/ValidDataTypeLinks).' - items: - title: Valid data type links - description: |- - When querying Codat's data model, some data types return `validDatatypeLinks` metadata in the JSON response. This indicates where that object can be used as a reference—a _valid link_—when creating or updating other data. - - For example, `validDatatypeLinks` might indicate the following references: - - - Which tax rates are valid to use on the line item of a bill. - - Which items can be used when creating an invoice. - - You can use `validDatatypeLinks` to present your SMB customers with only valid choices when selecting objects from a list, for example. - - ## `validDatatypeLinks` example - - The following example uses the `Accounting.Accounts` data type. It shows that, on the linked integration, this account is valid as the account on a payment or bill payment; and as the account referenced on the line item of a direct income or direct cost. Because there is no valid link to Invoices or Bills, using this account on those data types will result in an error. - - ```json validDatatypeLinks for an account - { - "id": "bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4", - "nominalCode": "090", - "name": "Business Bank Account", - #... - "validDatatypeLinks": [ - { - "property": "Id", - "links": [ - "Payment.AccountRef.Id", - "BillPayment.AccountRef.Id", - "DirectIncome.LineItems.AccountRef.Id", - "DirectCost.LineItems.AccountRef.Id" - ] - } - ] - } - ``` - - - - ## Support for `validDatatypeLinks` - - Codat currently supports `validDatatypeLinks` for some data types on our Xero, QuickBooks Online, QuickBooks Desktop, Exact (NL), and Sage Business Cloud integrations. - - If you'd like us to extend support to more data types or integrations, suggest or vote for this on our Product Roadmap. - type: object - properties: - property: - type: string - nullable: true - description: The property from the account that can be linked. - links: - type: array - nullable: true - description: Supported `dataTypes` that the record can be linked to. - items: - type: string - supplementalData: - $ref: '#/components/schemas/SupplementalData' - accountRef: - title: Account reference - type: object - description: 'Data types that reference an account, for example bill and invoice line items, use an accountRef that includes the ID and name of the linked account.' - properties: - id: - type: string - description: '''id'' from the Accounts data type.' - name: - type: string - description: '''name'' from the Accounts data type.' - accountType: - title: Account type - enum: - - Unknown - - Asset - - Expense - - Income - - Liability - - Equity - type: string - description: Type of account - example: Asset - accountStatus: - title: Account status - enum: - - Unknown - - Active - - Archived - - Pending - type: string - description: Status of the account - example: Active - type: object - AccountingAccounts: - title: 'Accounting: Accounts' - x-internal: true - allOf: - - type: object - properties: - results: - type: array - items: - $ref: '#/components/schemas/AccountingAccount' - - $ref: '#/components/schemas/PagingInfo' - AccountingAccountTransaction: - title: 'Accounting: Account transaction' - description: |- - > **Language tip:** In Codat, account transactions represent all transactions posted to a bank account within an accounting software. For bank transactions posted within a banking platform, refer to [Banking transactions](https://docs.codat.io/lending-api#/operations/list-all-banking-transactions). - - ## Overview - - In Codat’s data model, account transactions represent bank activity within an accounting software. All transactions that go through a bank account are recorded as account transactions. - - Account transactions are created as a result of different business activities, for example: - - * Payments: for example, receiving money for payment against an invoice. - * Bill payments: for example, spending money for a payment against a bill. - * Direct costs: for example, withdrawing money from a bank account, either for cash purposes or to make a payment. - * Direct incomes: for example, selling an item directly to a contact and receiving payment at point of sale. - * Transfers: for example, transferring money between two bank accounts. - - Account transactions is the parent data type of [payments](https://docs.codat.io/lending-api#/schemas/Payment), [bill payments](https://docs.codat.io/lending-api#/schemas/BillPayment), [direct costs](https://docs.codat.io/lending-api#/schemas/DirectCost), [direct incomes](https://docs.codat.io/lending-api#/schemas/DirectIncome), and [transfers](https://docs.codat.io/lending-api#/schemas/Transfer). - type: object - allOf: - - type: object - properties: - id: - type: string - description: Identifier of the direct cost (unique to the company). - transactionId: - type: string - nullable: true - description: Identifier of the transaction (unique to the company). - note: - type: string - nullable: true - description: 'Additional information about the account transaction, if available.' - bankAccountRef: - $ref: '#/components/schemas/AccountingBankAccount/definitions/bankAccountRef' - description: Reference to the bank account the account transaction is recorded against. - date: - $ref: '#/components/schemas/DateTime' - description: The date the account transaction was recorded in the platform. - status: - enum: - - Unknown - - Unreconciled - - Reconciled - - Void - type: string - description: The status of the account transaction. - currency: - $ref: '#/components/schemas/SourceAccount/properties/currency' - currencyRate: - $ref: '#/components/schemas/AccountingPaymentAllocation/definitions/paymentAllocationPayment/properties/currencyRate' - lines: - type: array - nullable: true - description: Array of account transaction lines. - items: - $ref: '#/components/schemas/AccountingAccountTransaction/definitions/accountTransactionLine' - totalAmount: - type: number - format: decimal - description: 'Total amount of the account transactions, inclusive of tax.' - metadata: - $ref: '#/components/schemas/Metadata' - - $ref: '#/components/schemas/CommerceOrder/allOf/3' - definitions: - accountTransactionLine: - type: object - properties: - description: - type: string - nullable: true - description: Description of the account transaction. - recordRef: - $ref: '#/components/schemas/AccountingAccountTransaction/definitions/accountTransactionLineRecordRef' - amount: - type: number - format: decimal - description: Amount in the bill payment currency. - accountTransactionLineRecordRef: - type: object - title: Record reference - description: Links an account transaction line to the underlying record that created it. - properties: - id: - type: string - description: '''id'' of the underlying record or data type.' - dataType: - type: string - description: Name of underlying data type. - enum: - - bankTransactions - - billCreditNotes - - billPayments - - bills - - creditNotes - - directCosts - - directIncomes - - invoices - - journalEntries - - payments - - transfers - example: transfers - AccountingAccountTransactions: - title: 'Accounting: Account transactions' - x-internal: true - allOf: - - type: object - properties: - results: - type: array - items: - $ref: '#/components/schemas/AccountingAccountTransaction' - - $ref: '#/components/schemas/PagingInfo' - AccountingAddress: - title: 'Accounting: Address' - x-internal: true - type: object - properties: - type: - $ref: '#/components/schemas/AccountingAddress/definitions/accountingAddressType' - line1: - type: string - nullable: true - description: Line 1 of the customer address. - line2: - type: string - nullable: true - description: Line 2 of the customer address. - city: - type: string - nullable: true - description: City of the customer address. - region: - type: string - nullable: true - description: Region of the customer address. - country: - type: string - nullable: true - description: Country of the customer address. - postalCode: - type: string - nullable: true - description: Postal code or zip code. - required: - - type - definitions: - accountingAddressType: - description: The type of the address - type: string - enum: - - Unknown - - Billing - - Delivery - AccountingAgedCreditorReport: - title: 'Accounting: Aged creditors report' - description: |- - The Aged Creditors report shows the total balance owed by a business to its suppliers over time. - - You can generate it for a company based on recently synced data from your customers' accounting software. The report is available in the **Reports** tab in the Codat portal. - - Total assets or liabilities are grouped into 30-day periods for each supplier, up to the current date. You can adjust the report date, period length, and number of periods to show on each report. The data can be grouped by customer or currency. - - > It is not guaranteed that write-offs are included in the Aged Creditors report. - - ## Underlying data - - The Aged Creditors report is generated from a set of required data types: [Suppliers](https://docs.codat.io/lending-api#/schemas/Supplier), [Bills](https://docs.codat.io/lending-api#/schemas/Bill), [Bill credit notes](https://docs.codat.io/lending-api#/schemas/BillCreditNote), and [Bill payments](https://docs.codat.io/lending-api#/schemas/BillPayment). - - To generate the report, the underlying data types must have been synced within 24 hours of each other. Otherwise an error is displayed when you try to run the report. Sync the required data types by clicking the link in the error, and then run the report again. - - > The Aged Creditor report runs based on the **issue dates** of the underlying data types rather than the due date. - - ## Accessing the Aged Creditors report in Portal - - Apart from returning the report via the API as JSON and query, you can also return the Aged Creditors report in the Codat portal. - - 1. In the navigation bar, click **Companies**. - 2. Click the name of the company you want to generate the report for. The company's data page is displayed. - 3. Click the **Accounting** tab then click **Reports**. - 4. Select **Aged Creditors**. - 5. _(Optional)_ Edit the default reporting parameters. - a. You can change the report date in the **Date** box. By default, the report includes transactions that occurred up to, but not including, today's date. To include transactions for today, enter tomorrow's date. - b. In the **Period Length Days** box, select the default period length for each column (the default is 30 days). - b. In the **Number of Periods** box, enter the number of periods to show as columns in the report (the default is 4 periods). - 6. To run the report, click **Load aged creditors**. - 7. The report is generated and displayed at the bottom of the page. - - The report will be grouped per supplier and depending on the periods requested. The details indicates whether the amounts owed come from outstanding bills or bill credit notes. - type: object - properties: - generated: - $ref: '#/components/schemas/DateTime' - description: Date and time the report was generated. - reportDate: - $ref: '#/components/schemas/DateTime' - description: Date the report is generated up to. - data: - type: array - description: Array of aged creditor. - items: - $ref: '#/components/schemas/AccountingAgedCreditorReport/definitions/agedCreditor' - examples: - - generated: '2022-10-23T00:00:00Z' - reportDate: '2022-10-23T00:00:00Z' - data: - - customerId: f594cefb-7750-4c3a-bab2-b5322026dee9 - customerName: John Doe - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2022-10-01T00:00:00Z' - toDate: '2022-10-31T00:00:00Z' - amount: 1547.5 - details: - - name: Bills - amount: 1547.5 - definitions: - agedCreditor: - title: Aged creditor - type: object - properties: - supplierId: - type: string - description: Supplier ID of the aged creditor. - example: f594cefb-7750-4c3a-bab2-b5322026dee9 - supplierName: - type: string - description: Supplier name of the aged creditor. - example: John Doe - agedCurrencyOutstanding: - type: array - description: Array of aged creditors by currency. - items: - $ref: '#/components/schemas/AgedCurrencyOutstanding' - AccountingAgedDebtorReport: - type: object - title: 'Accounting: Aged debtors report' - description: |- - The Aged Debtors report shows the total outstanding balance due from customers to the business over time. - - You can generate it for a company based on recently synced data from your customers' accounting software. The report is available in the **Reports** tab in the Codat portal. - - Total assets or liabilities are grouped into 30-day periods for each customer, up to the current date. You can adjust the report date, period length, and number of periods to show on each report. The data can be grouped by customer or currency. - - > It is not guaranteed that write-offs are included in the Aged Debtors report. - - ## Underlying data - - The Aged Debtors report is generated from a set of required data types: [Customers](https://docs.codat.io/lending-api#/schemas/Customer), [Invoices](https://docs.codat.io/lending-api#/schemas/Invoice), [Credit notes](https://docs.codat.io/lending-api#/schemas/CreditNote), and [Payments](https://docs.codat.io/lending-api#/schemas/Payment). - - To generate the report, the underlying data types must have been synced within 24 hours of each other. Otherwise an error is displayed when you try to run the report. Sync the required data types by clicking the link in the error, and then run the report again. - - > The Aged Debtors report runs based on the **issue dates** of the underlying data types rather than the due date. - - ## Accessing the Aged Debtors report in Portal - - Apart from returning the report via the API as JSON and query, you can also return the Aged Debtors report in the Codat portal. - - 1. In the navigation bar, click **Companies**. - 2. Click the name of the company you want to generate the report for. The company's data page is displayed. - 3. Click the **Accounting** tab then click **Reports**. - 4. Select **Aged Debtors**. - 5. _(Optional)_ Edit the default reporting parameters. - a. You can change the report date in the **Date** box. By default, the report includes transactions that occurred up to, but not including, today's date. To include transactions for today, enter tomorrow's date. - b. In the **Period Length Days** box, select the default period length for each column (the default is 30 days). - b. In the **Number of Periods** box, enter the number of periods to show as columns in the report (the default is 4 periods). - 6. To run the report, click **Load aged debtors**. - 7. The report is generated and displayed at the bottom of the page. - - The report will be grouped per supplier and depending on the periods requested. The details indicates whether the amounts owed come from outstanding invoices or credit notes. - properties: - generated: - $ref: '#/components/schemas/DateTime' - description: Date and time the report was generated. - reportDate: - $ref: '#/components/schemas/DateTime' - description: Date the report is generated up to. - data: - type: array - description: Array of aged debtors. - items: - $ref: '#/components/schemas/AccountingAgedDebtorReport/definitions/agedDebtor' - definitions: - agedDebtor: - title: Aged debtor - type: object - properties: - customerId: - type: string - description: Customer ID of the aged debtor. - example: f594cefb-7750-4c3a-bab2-b5322026dee9 - customerName: - type: string - description: Customer name of the aged debtor. - example: John Doe - agedCurrencyOutstanding: - type: array - description: Array of aged debtors by currency. - items: - $ref: '#/components/schemas/AgedCurrencyOutstanding' - examples: - - generated: '2022-10-23T00:00:00Z' - reportDate: '2022-10-23T00:00:00Z' - data: - - customerId: f594cefb-7750-4c3a-bab2-b5322026dee9 - customerName: John Doe - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2022-10-01T00:00:00Z' - toDate: '2022-10-31T00:00:00Z' - amount: 1547.5 - details: - - name: Invoices - amount: 1547.5 - AccountingAttachment: - title: 'Accounting: Attachment' - description: | - The Codat API supports pulling and pushing of file attachments for invoices, bills, direct costs, and direct incomes. - - > **Retrieving attachments** - > - > If a company is authorized, you can query the Codat API to read, download, and upload attachments without requiring a fresh sync of data. - - Unlike other data types, Codat doesn't support [sync settings](https://docs.codat.io/knowledge-base/advanced-sync-settings) for attachments. - - Note that different integrations have different requirements to file size and extension of attachments. - - | Integration | File size | File extension | - |-------------------|-----------|--------------------------------------------------------------------------------------------------------------------------------------------------------------| - | Xero | 4 MB | 7Z, BMP, CSV, DOC, DOCX, EML, GIF, JPEG, JPG, KEYNOTE, MSG, NUMBERS, ODF, ODS, ODT, PAGES, PDF, PNG, PPT, PPTX, RAR, RTF, TIF, TIFF, TXT, XLS, XLSX, ZIP | - | QuickBooks Online | 100 MB | AI, CSV, DOC, DOCX, EPS, GIF, JPEG, JPG, ODS, PAGES, PDF, PNG, RTF, TIF, TXT, XLS, XLSX, XML | - | NetSuite | 100 MB | BMP, CSV, XLS, XLSX, JSON, PDF, PJPG, PJPEG, PNG, TXT, SVG, TIF, TIFF, DOC, DOCX, ZIP | - | Dynamics 365 Business Central | 350 MB | Dynamics do not explicitly outline which file types are supported but they do state here that "You can attach any type of file, such as text, image, or video files". | - type: object - allOf: - - type: object - properties: - id: - type: string - description: 'Identifier for the attachment, unique for the company in the accounting software.' - name: - type: string - nullable: true - description: Name of the attachment file. - contentType: - type: string - nullable: true - description: |- - File type of the attachment. This is represented by appending the file type to the [IETF standard file naming requirements](https://tools.ietf.org/html/rfc6838). For example, for a jpeg file the output is **image/jpeg**. - - Supported file types vary per platform. - dateCreated: - $ref: '#/components/schemas/DateTime' - fileSize: - type: integer - format: int32 - nullable: true - description: 'File size in bytes. For example, if this reads **46153**, then the file size is 46kb.' - includeWhenSent: - type: boolean - description: 'If `true`, then the attachment is included with the associated invoice, bill or direct costs when it is printed, emailed, or sent to a customer, if the underlying accounting software allows this.' - - $ref: '#/components/schemas/CommerceOrder/allOf/3' - examples: [] - definitions: - attachments: - title: Attachments - type: object - properties: - attachments: - description: An array of attachments related to the record. - type: array - items: - $ref: '#/components/schemas/AccountingAttachment' - nullable: true - AccountingBalanceSheet: - title: 'Accounting: Balance sheet' - description: |- - ## Overview - - The balance sheet is a snapshot of a company's accounts at a single point in time that provides a statement of the assets, liabilities and equity of an organization. It gives interested parties an idea of the company's financial position, in addition to displaying what the company owns and owes. - - > **Balance sheet or profit and loss report?** - > - > A profit and loss report summarises the total revenue, expenses, and profit or loss during a specified time period. A balance sheet report shows the financial position of a company at a specific moment in time. - - **Structure of this report** - This report will reflect the structure and line descriptions that the business has set in their own accounting software. - - **History** - By default, Codat pulls (up to) 24 months of balance sheets for a company. You can adjust this to fetch more history, where available, by updating the `monthsToSync` value for `balanceSheet` on the [data type settings endpoint](https://docs.codat.io/lending-api#/operations/update-sync-settings). - - **Want to pull this in a standardised structure?** - Our [Enhanced Financials](https://docs.codat.io/lending/features/financial-statements-overview) endpoints provide the same report under standardized headings, allowing you to pull it in the same format for all of your business customers. - type: object - additionalProperties: false - properties: - currency: - $ref: '#/components/schemas/SourceAccount/properties/currency' - description: Currency of the balance sheet. - reports: - type: array - description: An array of balance sheet reports. - items: - $ref: '#/components/schemas/AccountingBalanceSheet/definitions/balanceSheet' - mostRecentAvailableMonth: - $ref: '#/components/schemas/DateTime' - nullable: true - description: Most recent available monthly report data. - earliestAvailableMonth: - $ref: '#/components/schemas/DateTime' - nullable: true - description: Earliest available monthly report data. - required: - - reports - definitions: - balanceSheet: - type: object - properties: - date: - $ref: '#/components/schemas/DateTime' - description: Point in time when a snapshot of a company's financial position is taken. - assets: - $ref: '#/components/schemas/ReportLine' - description: 'ReportLines for assets. For example, fixed and current assets.' - liabilities: - $ref: '#/components/schemas/ReportLine' - description: 'ReportLines for liabilities. For example, current liabilities.' - netAssets: - type: number - format: decimal - description: Value of net assets for a company in their base currency. - equity: - $ref: '#/components/schemas/ReportLine' - description: 'ReportLines for equities. For example, retained and current year earnings. See below.' - required: - - netAssets - AccountingBankAccount: - title: 'Accounting: Bank account' - description: |- - > **Accessing Bank Accounts through Banking API** - > - > This datatype was originally used for accessing bank account data both in accounting integrations and open banking aggregators. - > - > To view bank account data through the Banking API, please refer to the new [Banking: Account](https://docs.codat.io/lending-api#/schemas/Account) data type. - - ## Overview - - A list of bank accounts associated with a company and a specific data connection. - - Bank accounts data includes: - * The name and ID of the account in the accounting software. - * The currency and balance of the account. - * The sort code and account number. - type: object - allOf: - - properties: - id: - type: string - description: Unique identifier for the API key. - example: e288a972-b402-4b21-93f9-b5335ae5679c - name: - type: string - maxLength: 50 - nullable: true - description: A meaningful name assigned to the API key. - example: azure-invoice-finance-processor - apiKey: - type: string - description: The API key value used to make authenticated http requests. - example: ztHQGvnC4XN2CgUhaDWEG4ySLUJqWjp7zkbZkGHd - - nullable: true - description: Datetime in UTC the API key was created. The created date will be null if the API key created before YYYY-MM-DD. - title: Created date - type: object - x-internal: true - properties: - createdDate: - $ref: '#/components/schemas/DateTime' - description: The date the entity was created. - ApiKeys: - title: API keys - x-internal: true - type: object - properties: - results: - type: array - items: - $ref: '#/components/schemas/ApiKeyDetails' - Branding: - title: Branding - type: object - properties: - logo: - $ref: '#/components/schemas/Branding/definitions/brandingLogo' - button: - $ref: '#/components/schemas/Branding/definitions/brandingButton' - sourceId: - type: string - format: uuid - example: 35b92968-9851-4095-ad60-395c95cbcba4 - description: 'A source-specific ID used to distinguish between different sources originating from the same data connection. In general, a data connection is a single data source. However, for TrueLayer, `sourceId` is associated with a specific bank and has a many-to-one relationship with the `integrationId`.' - definitions: - brandingLogo: - description: Logo branding references. - type: object - properties: - full: - $ref: '#/components/schemas/Branding/definitions/brandingImage' - square: - $ref: '#/components/schemas/Branding/definitions/brandingImage' - brandingButton: - type: object - description: Button branding references. - properties: - default: - $ref: '#/components/schemas/Branding/definitions/brandingImage' - hover: - $ref: '#/components/schemas/Branding/definitions/brandingImage' - brandingImage: - title: Branding Image - type: object - properties: - image: - $ref: '#/components/schemas/Branding/definitions/imageReference' - examples: [] - imageReference: - type: object - title: Image Reference - description: Image reference. - properties: - src: - type: string - format: uri - description: Source URL for image. - alt: - type: string - description: Alternative text when image is not available. - examples: - - logo: - full: - image: - src: 'https://static.codat.io/public/officialLogos/Full/8A156A5A-39CB-4F9D-856E-76EF9B9A9607.png' - alt: xero full icon - square: - image: - src: 'https://static.codat.io/public/officialLogos/Square/8A156A5A-39CB-4F9D-856E-76EF9B2W3607.png' - alt: xero square icon - button: - default: - image: - src: 'https://static.codat.io/public/officialButtons/Full/8A156A5A-39CB-4F9D-856E-76EF9Q7A9607.png' - alt: xero default button icon - hover: - image: - src: 'https://static.codat.io/public/officialLogos/Full/8A156A5A-39CB-4F9D-856E-76EF9B9A9607.png' - alt: xero hover button icon - sourceId: 35b92968-9851-4095-ad60-395c95cbcba4 - ClientId: - title: Client ID - type: string - format: uuid - description: Unique identifier for your client in Codat. - description: 'Identifier for the account, unique for the company in the accounting software.' - - $ref: '#/components/schemas/AccountingBankAccount/definitions/bankAccountPrototype' - - properties: - metadata: - $ref: '#/components/schemas/Metadata' - supplementalData: - $ref: '#/components/schemas/SupplementalData' - - $ref: '#/components/schemas/CommerceOrder/allOf/3' - definitions: - bankAccountPrototype: - title: Bank account prototype - type: object - properties: - accountName: - type: string - nullable: true - description: Name of the bank account in the accounting software. - accountType: - $ref: '#/components/schemas/AccountingBankAccountType' - nominalCode: - type: string - nullable: true - description: Code used to identify each nominal account for a business. - sortCode: - type: string - nullable: true - description: |- - Sort code for the bank account. - - Xero integrations - The sort code is only displayed when the currency = GBP and the sort code and account number sum to 14 digits. For non-GBP accounts, this field is not populated. - accountNumber: - type: string - nullable: true - description: |- - Account number for the bank account. - - Xero integrations - Only a UK account number shows for bank accounts with GBP currency and a combined total of sort code and account number that equals 14 digits, For non-GBP accounts, the full bank account number is populated. - - FreeAgent integrations - For Credit accounts, only the last four digits are required. For other types, the field is optional. - iBan: - type: string - nullable: true - description: International bank account number of the account. Often used when making or receiving international payments. - currency: - $ref: '#/components/schemas/SourceAccount/properties/currency' - description: Base currency of the bank account. - balance: - type: number - format: decimal - nullable: true - description: Balance of the bank account. - institution: - type: string - nullable: true - description: The institution of the bank account. - availableBalance: - type: number - format: decimal - nullable: true - description: Total available balance of the bank account as reported by the underlying data source. This may take into account overdrafts or pending transactions for example. - overdraftLimit: - type: number - format: decimal - nullable: true - description: |- - Pre-arranged overdraft limit of the account. - - The value is always positive. For example, an overdraftLimit of `1000` means that the balance of the account can go down to `-1000`. - status: - $ref: '#/components/schemas/AccountingBankAccount/definitions/bankAccountStatus' - bankAccountCreateResponse: - title: Create bank account response - allOf: - - properties: - data: - allOf: - - $ref: '#/components/schemas/AccountingBankAccount' - - deprecated: true - - $ref: '#/components/schemas/PushOperation' - bankAccountRef: - title: Bank account reference - type: object - properties: - id: - type: string - description: Bank account 'id' for the account transaction. - name: - type: string - description: bank account 'name' for the account transaction. - description: Links to the Account transactions data type. - bankAccounts: - title: 'Accounting: Bank accounts' - allOf: - - type: object - properties: - results: - type: array - items: - $ref: '#/components/schemas/AccountingBankAccount' - - $ref: '#/components/schemas/PagingInfo' - bankAccountStatus: - title: Account status - enum: - - Unknown - - Active - - Archived - - Pending - type: string - description: Status of the bank account. - example: Active - AccountingBankAccounts: - x-internal: true - title: 'Accounting: Bank accounts' - allOf: - - type: object - properties: - results: - type: array - items: - $ref: '#/components/schemas/AccountingBankAccount' - - $ref: '#/components/schemas/PagingInfo' - AccountingBankAccountType: - title: Bank Account Type - x-internal: true - enum: - - Unknown - - Credit - - Debit - type: string - description: |- - The type of transactions and balances on the account. - For Credit accounts, positive balances are liabilities, and positive transactions **reduce** liabilities. - For Debit accounts, positive balances are assets, and positive transactions **increase** assets. - AccountingBankTransaction: - title: 'Accounting: Bank account transaction' - description: |- - > **Accessing Bank Accounts through Banking API** - > - > This datatype was originally used for accessing bank account data both in accounting integrations and open banking aggregators. - > - > To view bank account data through the Banking API, please refer to the new [Banking: Transaction](https://docs.codat.io/lending-api#/operations/list-transactions) data type. - - ## Overview - - Transactional banking data for a specific company and account. - - Bank transactions include the: - * Amount of the transaction. - * Current account balance. - * Transaction type, for example, credit, debit, or transfer. - type: object - allOf: - - type: object - properties: - id: - type: string - description: 'Identifier for the bank transaction, unique to the company in the accounting software.' - accountId: - type: string - nullable: true - description: Unique identifier to the `accountId` the bank transactions originates from. - clearedOnDate: - $ref: '#/components/schemas/DateTime' - description: - type: string - nullable: true - description: Description of the bank transaction. - reconciled: - type: boolean - description: '`True` if the bank transaction has been [reconciled](https://www.xero.com/uk/guides/what-is-bank-reconciliation/) in the accounting software.' - amount: - type: number - format: decimal - description: The amount transacted in the bank transaction. - balance: - type: number - format: decimal - description: The remaining balance in the account with ID `accountId`. - transactionType: - $ref: '#/components/schemas/AccountingBankTransaction/definitions/bankTransactionType' - - $ref: '#/components/schemas/CommerceOrder/allOf/3' - definitions: - bankTransactionType: - title: Bank transaction type - description: Type of transaction for the bank statement line. - type: string - enum: - - Unknown - - Credit - - Debit - - Int - - Div - - Fee - - SerChg - - Dep - - Atm - - Pos - - Xfer - - Check - - Payment - - Cash - - DirectDep - - DirectDebit - - RepeatPmt - - Other - AccountingBankTransactions: - title: 'Accounting: Accounting bank transactions' - x-internal: true - allOf: - - type: object - properties: - results: - type: array - items: - $ref: '#/components/schemas/AccountingBankTransaction' - - $ref: '#/components/schemas/PagingInfo' - AccountingBill: - title: 'Accounting: Bill' - description: |- - > **Invoices or bills?** - > - > We distinguish between invoices where the company *owes money* vs. *is owed money*. If the company has received an invoice, and owes money to someone else (accounts payable) we call this a Bill. - > - > See [Invoices](https://docs.codat.io/lending-api#/schemas/Invoice) for the accounts receivable equivalent of bills. - - ## Overview - - In Codat, a bill contains details of: - * When the bill was recorded in the accounting system. - * How much the bill is for and the currency of the amount. - * Who the bill was received from — the *supplier*. - * What the bill is for — the *line items*. - - Some accounting software give a separate name to purchases where the payment is made immediately, such as something bought with a credit card or online payment. One example of this would be QuickBooks Online's *expenses*. - - You can find these types of transactions in our [Direct costs](https://docs.codat.io/lending-api#/schemas/DirectCost) data model. - type: object - allOf: - - type: object - properties: - id: - type: string - description: 'Identifier for the bill, unique for the company in the accounting software.' - reference: - type: string - nullable: true - description: User-friendly reference for the bill. - supplierRef: - $ref: '#/components/schemas/AccountingSupplier/definitions/supplierRef' - purchaseOrderRefs: - type: array - nullable: true - items: - title: Purchase order Reference - type: object - additionalProperties: false - properties: - id: - type: string - description: 'Identifier for the purchase order, unique for the company in the accounting software.' - purchaseOrderNumber: - type: string - nullable: true - description: 'Friendly reference for the purchase order, commonly generated by the accounting software.' - issueDate: - allOf: - - description: Date of the bill as recorded in the accounting software. - - $ref: '#/components/schemas/DateTime' - dueDate: - allOf: - - description: Date the supplier is due to be paid. - - $ref: '#/components/schemas/DateTime' - currency: - $ref: '#/components/schemas/SourceAccount/properties/currency' - currencyRate: - $ref: '#/components/schemas/AccountingPaymentAllocation/definitions/paymentAllocationPayment/properties/currencyRate' - lineItems: - type: array - nullable: true - description: Array of Bill line items. - items: - $ref: '#/components/schemas/AccountingBill/definitions/billLineItem' - withholdingTax: - type: array - nullable: true - items: - type: object - properties: - name: - minLength: 1 - type: string - description: Name assigned to withheld tax. - amount: - type: number - format: decimal - description: Amount of tax withheld. - required: - - amount - - name - status: - $ref: '#/components/schemas/AccountingBill/definitions/billStatus' - subTotal: - type: number - format: decimal - description: 'Total amount of the bill, excluding any taxes.' - taxAmount: - type: number - format: decimal - description: Amount of tax on the bill. - totalAmount: - type: number - format: decimal - description: 'Amount of the bill, including tax.' - amountDue: - type: number - format: decimal - nullable: true - description: Amount outstanding on the bill. - note: - type: string - nullable: true - description: 'Any private, company notes about the bill, such as payment information.' - paymentAllocations: - type: array - nullable: true - description: An array of payment allocations. - items: - $ref: '#/components/schemas/AccountingPaymentAllocation' - metadata: - $ref: '#/components/schemas/Metadata' - supplementalData: - $ref: '#/components/schemas/SupplementalData' - - $ref: '#/components/schemas/CommerceOrder/allOf/3' - required: - - issueDate - - status - - subTotal - - taxAmount - - totalAmount - definitions: - billStatus: - description: Current state of the bill. - type: string - enum: - - Unknown - - Open - - PartiallyPaid - - Paid - - Void - - Draft - billLineItem: - title: Bill line item - type: object - properties: - lineNumber: - type: string - nullable: true - description: The bill line's number. - description: - type: string - nullable: true - description: Friendly name of the goods or services received. - unitAmount: - type: number - format: decimal - description: Price of each unit of goods or services. - quantity: - type: number - format: decimal - description: Number of units of goods or services received. - unitOfMeasurement: - type: string - nullable: true - description: 'The measurement which defines a unit for this item (e.g. ''kilogram'', ''litre'').' - discountAmount: - type: number - format: decimal - nullable: true - description: |- - Numerical value of any discounts applied. - - Do not use to apply discounts in Oracle NetSuite—see Oracle NetSuite integration reference. - subTotal: - type: number - format: decimal - nullable: true - description: 'Amount of the line, inclusive of discounts but exclusive of tax.' - taxAmount: - type: number - format: decimal - nullable: true - description: Amount of tax for the line. - totalAmount: - type: number - format: decimal - nullable: true - description: 'Total amount of the line, including tax.' - discountPercentage: - type: number - format: decimal - nullable: true - description: Percentage rate of any discount applied to the bill. - accountRef: - $ref: '#/components/schemas/AccountingAccount/definitions/accountRef' - description: Reference to the account to which the line item is linked. - nullable: true - taxRateRef: - $ref: '#/components/schemas/AccountingBillCreditNote/definitions/billCreditNoteLineItem/properties/taxRateRef' - description: Reference to the tax rate to which the line item is linked. - itemRef: - $ref: '#/components/schemas/AccountingBillCreditNote/definitions/billCreditNoteLineItem/properties/itemRef' - description: 'Reference to the product, service type, or inventory item to which the line item is linked.' - purchaseOrderLineRef: - allOf: - - type: object - x-internal: true - title: Record line reference - description: |- - Links the current record line to the underlying record line that created it. - - For example, if a bill is generated from a purchase order, this property allows you to connect the bill line item to the purchase order line item in our data model. - properties: - id: - type: string - description: '''id'' of the underlying record.' - dataType: - type: string - description: Allowed name of the 'dataType'. - enum: - - purchaseOrders - - bills - lineNumber: - type: string - description: Line number of the underlying record. - - description: Reference to the purchase order line this line was generated from. - trackingCategoryRefs: - type: array - nullable: true - description: Collection of categories against which this item is tracked. - items: - $ref: '#/components/schemas/AccountingTrackingCategory/definitions/trackingCategoryRef' - tracking: - $ref: '#/components/schemas/AccountsPayableTracking' - isDirectCost: - type: boolean - description: The bill is a direct cost if `True`. - AccountingBillCreditNote: - title: 'Accounting: Bill credit note' - description: |- - > **Bill credit notes or credit notes?** - > - > In Codat, bill credit notes represent accounts payable only. For accounts receivable, see [Credit notes](https://docs.codat.io/lending-api#/schemas/CreditNote). - - ## Overview - - A bill credit note is issued by a supplier for the purpose of recording credit. For example, if a supplier was unable to fulfil an order that was placed by a business, or delivered damaged goods, they would issue a bill credit note. A bill credit note reduces the amount a business owes to the supplier. It can be refunded to the business or used to pay off future bills. - - In the Codat API, a bill credit note is an accounts payable record issued by a [supplier](https://docs.codat.io/lending-api#/schemas/Supplier). - - A bill credit note includes details of: - * The original and remaining credit. - * Any allocations of the credit against other records, such as [bills](https://docs.codat.io/lending-api#/schemas/Bill). - * The supplier that issued the bill credit note. - type: object - allOf: - - type: object - properties: - id: - type: string - description: Identifier for the bill credit note that is unique to a company in the accounting software. - example: 1509398f-98e2-436d-8a5d-c042e0c74ffc - billCreditNoteNumber: - type: string - nullable: true - description: Friendly reference for the bill credit note. - example: 91fe2a83-e161-4c21-929d-c5c10c4b07e5 - supplierRef: - $ref: '#/components/schemas/AccountingSupplier/definitions/supplierRef' - withholdingTax: - type: array - nullable: true - items: - $ref: '#/components/schemas/AccountingBill/allOf/0/properties/withholdingTax/items' - totalAmount: - type: number - format: decimal - description: 'Total amount of credit that has been applied to the business'' account with the supplier, including discounts and tax.' - example: 805.78 - totalDiscount: - type: number - format: decimal - description: Total value of any discounts applied. - example: 0 - subTotal: - type: number - format: decimal - description: 'Total amount of the bill credit note, including discounts but excluding tax.' - example: 805.78 - totalTaxAmount: - type: number - format: decimal - description: Amount of tax included in the bill credit note. - example: 0 - discountPercentage: - type: number - format: decimal - description: Percentage rate of any discount applied to the bill credit note. - example: 0 - remainingCredit: - type: number - format: decimal - description: Amount of the bill credit note that is still outstanding. - example: 0 - status: - $ref: '#/components/schemas/AccountingBillCreditNote/definitions/billCreditNoteStatus' - issueDate: - $ref: '#/components/schemas/DateTime' - description: Date the bill credit note was issued by the supplier. - example: '2022-03-15T00:00:00' - allocatedOnDate: - $ref: '#/components/schemas/DateTime' - nullable: true - description: Date the bill credit note was fully refunded or allocated. - example: '2022-09-15T16:35:00' - currency: - $ref: '#/components/schemas/SourceAccount/properties/currency' - description: Currency of the bill credit note. - currencyRate: - $ref: '#/components/schemas/AccountingPaymentAllocation/definitions/paymentAllocationPayment/properties/currencyRate' - lineItems: - type: array - nullable: true - description: 'An array of line ' - items: - $ref: '#/components/schemas/AccountingBillCreditNote/definitions/billCreditNoteLineItem' - paymentAllocations: - nullable: true - type: array - description: An array of payment allocations. - items: - $ref: '#/components/schemas/AccountingPaymentAllocation' - createdFromRefs: - nullable: true - type: array - description: An array of records the credit note was created from. - items: - $ref: '#/components/schemas/AccountingRecordRef' - note: - type: string - nullable: true - description: Any additional information about the bill credit note. - example: 'Bill Credit Note with 1 line items, totaling 805.78' - supplementalData: - $ref: '#/components/schemas/SupplementalData' - metadata: - $ref: '#/components/schemas/Metadata' - - $ref: '#/components/schemas/CommerceOrder/allOf/3' - required: - - totalAmount - - totalDiscount - - subTotal - - totalTaxAmount - - discountPercentage - - status - definitions: - billCreditNoteStatus: - type: string - description: Current state of the bill credit note - enum: - - Unknown - - Draft - - Submitted - - Paid - - Void - - PartiallyPaid - example: Paid - billCreditNoteLineItem: - type: object - properties: - description: - type: string - nullable: true - description: 'Friendly name of each line item. For example, the goods or service for which credit has been received.' - unitAmount: - type: number - format: decimal - description: Unit price of the goods or service. - quantity: - type: number - format: decimal - description: Number of units of the goods or service for which credit has been received. - unitOfMeasurement: - type: string - nullable: true - description: 'The measurement which defines a unit for this item (e.g. ''kilogram'', ''litre'').' - discountAmount: - type: number - format: decimal - nullable: true - description: Value of any discounts applied. - subTotal: - type: number - format: decimal - nullable: true - description: 'Amount of credit associated with the line item, including discounts but excluding tax.' - taxAmount: - type: number - format: decimal - nullable: true - description: Amount of tax associated with the line item. - totalAmount: - type: number - format: decimal - nullable: true - description: 'Total amount of the line item, including discounts and tax.' - accountRef: - $ref: '#/components/schemas/AccountingAccount/definitions/accountRef' - discountPercentage: - type: number - format: decimal - nullable: true - description: Percentage rate of any discount applied to the line item. - taxRateRef: - title: Tax rate reference - type: object - description: |- - Data types that reference a tax rate, for example invoice and bill line items, use a taxRateRef that includes the ID and name of the linked tax rate. - - Found on: - - - Bill line items - - Bill Credit Note line items - - Credit Note line items - - Direct incomes line items - - Invoice line items - - Items - properties: - id: - type: string - description: Unique identifier for the tax rate in the accounting software. - name: - type: string - description: Name of the tax rate in the accounting software. - effectiveTaxRate: - type: number - format: decimal - description: Applicable tax rate. - itemRef: - description: Reference to the item the line is linked to. - title: Item reference - type: object - properties: - id: - minLength: 1 - type: string - description: Unique identifier for the item in the accounting software. - name: - type: string - nullable: true - description: Name of the item in the accounting software. - required: - - id - createdFromLineRef: - $ref: '#/components/schemas/AccountingBill/definitions/billLineItem/properties/purchaseOrderLineRef/allOf/0' - description: Reference to the line of the item that the current line was created from. - trackingCategoryRefs: - type: array - nullable: true - deprecated: true - description: Reference to the tracking categories to which the line item is linked. - items: - $ref: '#/components/schemas/AccountingTrackingCategory/definitions/trackingCategoryRef' - tracking: - $ref: '#/components/schemas/AccountsPayableTracking' - required: - - unitAmount - - quantity - examples: - - id: 6a0e9dfb-87b0-47d3-aaaf-9753ae9e757d - billCreditNoteNumber: '14763237' - totalAmount: 693 - remainingCredit: 693 - status: Submitted - issueDate: '2019-02-18T16:03:07.268Z' - note: Track separately - currency: USD - lineItems: - - description: AcmeMagnet - unitAmount: 25 - discountAmount: 0 - quantity: 4 - subTotal: 100 - taxAmount: 10 - totalAmount: 110 - itemRef: - id: '3' - taxRateRef: - id: 6c88aff3-7cb9-4980-a3d3-443e72e02498 - accountRef: - id: 3f267b10-757d-44c0-bef9-20f70cc8fbe3 - trackingCategoryRefs: - - id: department_1 - name: ACMERockets - - id: costcode_2 - name: ACM2-ACMESigns - createdFromLineRef: - - id: '8462' - dataType: bill - lineNumber: 1 - - description: ACMEDisintegratingPistol - unitAmount: 25 - discountAmount: 0 - quantity: 3 - subTotal: 75 - taxAmount: 7.5 - totalAmount: 82.5 - itemRef: - id: 3abf0883-03f7-44c6-bc15-1372522d25e1 - taxRateRef: - id: 6c88aff3-7cb9-4980-a3d3-443e72e02498 - accountRef: - id: 3f267b10-757d-44c0-bef9-20f70cc8fbe3 - - description: ACMEWhippedCreamDispenser - unitAmount: 52 - discountAmount: 0 - quantity: 6 - subTotal: 312 - taxAmount: 31.2 - totalAmount: 343.2 - itemRef: - id: 3691f3d9-0ff7-4358-8a93-bed31c1b4b03 - taxRateRef: - id: 6c88aff3-7cb9-4980-a3d3-443e72e02498 - accountRef: - id: 3f267b10-757d-44c0-bef9-20f70cc8fbe3 - - description: ACMEJetPropelledPogoStick - unitAmount: 130 - discountAmount: 0 - quantity: 1 - subTotal: 130 - taxAmount: 27.3 - totalAmount: 157.3 - itemRef: - id: 075410d4-7edc-4936-ba52-9e1e43cbe300 - taxRateRef: - id: d606732b-db18-44d7-823b-7f15f42c32ea - accountRef: - id: 3f267b10-757d-44c0-bef9-20f70cc8fbe3 - supplierRef: - id: 67C6A7A1-5E84-4AC4-B950-24A114E379D0 - supplierName: Chin's Gas and Oil - createdFromLineRef: - id: '8462' - dataType: bills - line: 1 - AccountingBillCreditNotes: - title: 'Accounting: Bill credit notes' - x-internal: true - allOf: - - type: object - properties: - results: - type: array - items: - $ref: '#/components/schemas/AccountingBillCreditNote' - - $ref: '#/components/schemas/PagingInfo' - AccountingBillPayment: - title: 'Accounting: Bill payment' - description: | - > **Bill payments or payments?** - > - > We distinguish between transactions where the company received money vs. paid money. If the transaction represents a company spending money (accounts payable) we call this a Bill payment. - > - > See [payments](https://docs.codat.io/lending-api#/schemas/Payment) for the accounts receivable equivalent of Bill payments, which covers [invoices](https://docs.codat.io/lending-api#/schemas/Invoice) and [credit notes](https://docs.codat.io/lending-api#/schemas/CreditNote). - - ## Overview - - Bill payments include all accounts payable transaction data ([bills](https://docs.codat.io/lending-api#/schemas/Bill) and [credit notes against bills](https://docs.codat.io/lending-api#/schemas/BillCreditNote)). - - A bill payment in Codat usually represents an allocation of money within any customer accounts payable account. This includes, but is not strictly limited to: - - - A payment made against a bill — for example, a credit card payment, cheque payment, or cash payment. - - An allocation of a supplier's credit note to a bill or perhaps a refund. - - A bill payment made directly to an accounts payable account. This could be an overpayment or a prepayment, or a refund of a payment made directly to an accounts payable account. - - Depending on the bill payments which are allowed by the underlying accounting software, some of these types may be combined. Please see the example data section for samples of what these cases look like. - - In Codat, a bill payment contains details of: - - - When the bill payment was recorded in the accounting system. - - How much it is for and in the currency. - - Who the payment has been paid to, the _supplier_. - - The types of bill payments, the _line items_. - - Some accounting software give a separate name to purchases where the payment is made immediately, such as something bought with a credit card or online payment. One example of this would be QuickBooks Online's _expenses_. You can find these types of transactions in our [Direct costs](https://docs.codat.io/lending-api#/schemas/DirectCost) data model. - - Bill payments is a child data type of [account transactions](https://docs.codat.io/lending-api#/schemas/AccountTransaction). - - --- - - ## Bill payment types - - ### Payment of a bill - - A payment paying a single bill should have the following properties: - - - A `totalAmount` indicating the amount of the bill that was paid. This is always positive. - - A `lines` array containing one element with the following properties: - - An `amount` equal to the `totalAmount` above. - - A `links` array containing one element with the following properties: - - A `type` indicating the type of link, in this case a `Bill`. - - An `id` containing the ID of the bill that was paid. - - An amount of `-totalAmount` (negative `totalAmount`), indicating that the entirety of the paid amount is allocated to the bill. - - ### Payment of multiple bills - - It is possible for one payment to pay multiple bills. This can be represented using two possible formats, depending on how the supplier keeps their books: - - 1. The payment has multiple entries in its **lines** array, one for each bill that is paid. Each line will follow the above example for paying a bill, and the rules detailed in the data model. - 2. The payment has a line with multiple links to each bill. This occurs when the proportion of the original payment allocated to each bill is not available. - - Each line is the same as those described above, with the **amount** indicating how much of the payment is allocated to the bill. The **amount** on the lines sum to the **totalAmount** on the payment. - - > Pushing batch payments to Xero - > - > When pushing a single bill payment to Xero to pay multiple bills, only the first format is supported—multiple entries in the payment **lines** array. - - ### Payments and refunds on account - - A payment on account, that is a payment that doesn’t pay a specific bill, has one entry in its lines array. - - The line has the following properties: - - - A **totalAmount** indicating the amount paid by a supplier or refunded to them by a company. A payment to the supplier is always negative. A refund is always positive. - - A **links** array containing one element with the following properties: - - A **type** indicating the type of link. For a payment this is `PaymentOnAccount`. For a refund this is `Refund`. - - The **id** containing the ID of the supplier. - - An amount for the link is `0` **totalAmount** or the amount of the payment or refund. - - It is possible to have a payment that is part on account and part allocated to a bill. Each line should follow the examples above. - - ### Using a credit note to pay a bill - - The payment of a bill using a credit note has one entry in its `lines` array. This **line** has the following properties: - - - An **amount** indicating the amount of money moved, which in this case is `0`, as the credit note and bill allocation must balance each other. - - A **links** array containing two elements: - - The first link has: - - A **type** indicating the type of link, in this case a `Bill`. - - An **id** containing the ID of the bill that was paid. - - The second link has: - - A **type** indicating the type of link, in this case a `CreditNote`. - - An **id** containing the ID of the credit note used by this payment. - - The **amount** field on the **line** equals the **totalAmount** on the payment. - - ### Refunding a credit note - - A bill payment refunding a credit note has one entry in its **lines** array. This line has the following properties: - - - An **amount** indicating the amount of the credit note that was refunded. This is always negative, indicating that it is a refund. - - A **links** array containing one element with the following properties: - - A **type** indicating the type of `link`, in this case a `CreditNote`. - - An **id** containing the ID of the credit note that was refunded. - - The **totalAmount** field on the payment equals the line's **amount** field. These are both negative, as this is money leaving accounts payable. - - ### Refunding a payment - - If a payment is refunded, for example, when a company overpaid a bill and the overpayment is returned, there are two payment records: - - - One for the incoming overpayment. - - Another for the outgoing refund. - - The payment issuing the refund is identified by the fact that the **totalAmount** is negative. This payment has one entry in its lines array that have the following properties: - - - An **amount** indicating the amount that was refunded. This is always negative. - - A **links** array containing one element with the following properties: - - A **type** indicating the type of a the link, in this case a `BillPayment`. - - An **id** containing the ID of the payment that was refunded. - - The **amount** field on the line equals the **totalAmount** on the payment and is negative as this is money leaving accounts payable. - - The payment that was refunded can be identified as it has a line where the `amount` on its `line` is positive and the type of the link is `Refund`. This payment may have several entries in its **lines** array if it was partly used to pay an bill. For example, a £1,050 payment paying a £1,000 bill with a refund of £50 has two lines: - - - One for £1,000 linked to the bill that was paid - - Another for £50 linked to the payment that refunded the over payment. This link is of type `Refund` but the ID corresponds to a bill payment. - - The line linked to the bill payment has the following properties: - - - An **amount** indicating the amount that was refunded. This is positive as its money that was added to accounts payable, but is balanced out by the negative amount of the refund. - - A **links** array containing one element with the following properties: - - A **type** indicating the type of the link, in this case a `Refund`. - - An **id** containing the ID of the payment that refunded this line. - - > Linked payments - > - > Not all accounting software support linked payments in this way. In these platforms you may see a payment on account and a refund on account. - - ## Foreign currencies - - There are two types of currency rate that are detailed in the bill payments data type: - - Payment currency rate: - - - Base currency of the accounts payable account. - - Foreign currency of the bill payment. - - Payment line link currency rate: - - - Base currency of the item that the link represents. - - Foreign currency of the payment. - - These two rates allow the calculation of currency loss or gain for any of the transactions affected by the payment lines. The second rate is used when a bill payment is applied to an item in a currency that does not match either: - - - The base currency for the accounts payable account. - - The currency of the item. - type: object - allOf: - - type: object - properties: - id: - type: string - description: 'Identifier for the bill payment, unique for the company in the accounting software.' - example: 3d5a8e00-d108-4045-8823-7f342676cffa - supplierRef: - allOf: - - $ref: '#/components/schemas/AccountingSupplier/definitions/supplierRef' - - description: Supplier against which the payment is recorded in the accounting software. - accountRef: - $ref: '#/components/schemas/AccountingAccount/definitions/accountRef' - description: Account the payment is linked to in the accounting software. - totalAmount: - type: number - format: decimal - description: Amount of the payment in the payment currency. This value never changes and represents the amount of money that is paid into the supplier's account. - example: 1329.54 - currency: - allOf: - - $ref: '#/components/schemas/SourceAccount/properties/currency' - - description: ISO currency code in which the bill payment is recorded in the accounting software. - currencyRate: - $ref: '#/components/schemas/AccountingPaymentAllocation/definitions/paymentAllocationPayment/properties/currencyRate' - date: - allOf: - - $ref: '#/components/schemas/DateTime' - - description: Date the bill payment was recorded in the accounting software. - note: - type: string - nullable: true - description: Additional information associated with the payment. - example: Bill Payment against bill c13e37b6-dfaa-4894-b3be-9fe97bda9f44 - paymentMethodRef: - allOf: - - $ref: '#/components/schemas/PaymentMethodRef' - - description: The Payment Method to which the payment is linked in the accounting software. - lines: - type: array - nullable: true - description: An array of bill payment lines. - items: - $ref: '#/components/schemas/AccountingBillPayment/definitions/billPaymentLine' - reference: - type: string - nullable: true - description: Additional information associated with the payment. - metadata: - $ref: '#/components/schemas/Metadata' - supplementalData: - $ref: '#/components/schemas/SupplementalData' - - $ref: '#/components/schemas/CommerceOrder/allOf/3' - required: - - date - definitions: - billPaymentLine: - type: object - properties: - amount: - type: number - format: decimal - description: Amount in the bill payment currency. - links: - type: array - nullable: true - items: - $ref: '#/components/schemas/AccountingBillPayment/definitions/billPaymentLineLink' - allocatedOnDate: - $ref: '#/components/schemas/DateTime' - description: AllocatedOnDate must be specified and be later than the issue date of the bill. - required: - - amount - billPaymentLineLink: - type: object - properties: - type: - $ref: '#/components/schemas/AccountingBillPayment/definitions/billPaymentLineLinkType' - id: - type: string - nullable: true - description: Unique identifier of the transaction represented by the link. - amount: - type: number - format: decimal - nullable: true - description: |- - Amount by which the balance of the linked entity is altered, in the currency of the linked entity. - - - A negative link amount reduces the outstanding amount on the accounts payable account. - - A positive link amount increases the outstanding amount on the accounts payable account. - currencyRate: - $ref: '#/components/schemas/AccountingPaymentAllocation/definitions/paymentAllocationPayment/properties/currencyRate' - required: - - type - billPaymentLineLinkType: - description: Types of links to bill payment lines. - type: string - enum: - - Unknown - - Unlinked - - Bill - - Other - - CreditNote - - BillPayment - - PaymentOnAccount - - Refund - - ManualJournal - - Discount - examples: - - totalAmount: 1000 - lines: - - amount: 1000 - links: - - type: Bill - id: x - amount: -1000 - - totalAmount: 0 - lines: - - amount: 0 - links: - - type: Bill - id: x - amount: -1000 - - type: CreditNote - id: 'y' - amount: 1000 - - totalAmount: 2000 - lines: - - amount: 1000 - links: - - type: Bill - id: x - amount: -1000 - - amount: 1000 - links: - - type: PaymentOnAccount - id: 'y' - amount: -1000 - - totalAmount: -1000 - lines: - - amount: -1000 - links: - - type: CreditNote - id: 'y' - amount: 1000 - - totalAmount: -1000 - lines: - - amount: -1000 - links: - - type: PaymentOnAccount - id: 'y' - amount: 1000 - - totalAmount: 250 - lines: - - amount: 0 - links: - - type: Bill - id: x - amount: -750 - - type: CreditNote - id: 'y' - amount: 750 - - amount: 250 - links: - - type: Bill - id: x - amount: -250 - - totalAmount: 1000 - lines: - - amount: 1000 - links: - - type: Bill - id: x - amount: -1000 - modifiedDate: '2022-10-23T00:00:00Z' - sourceModifiedDate: '2022-10-23T00:00:00Z' - - totalAmount: 2000 - lines: - - amount: 0 - links: - - type: Bill - id: x - amount: -1000 - - type: CreditNote - id: 'y' - amount: 1000 - - amount: 0 - links: - - type: Bill - id: x - amount: -1000 - - type: CreditNote - id: z - amount: 1000 - - amount: 1000 - links: - - type: Bill - id: x - amount: -1000 - - amount: 1000 - links: - - type: PaymentOnAccount - id: customer-001 - amount: -1000 - - totalAmount: 0 - lines: - - amount: 0 - links: - - type: Bill - id: w - amount: -1000 - - type: Bill - id: x - amount: -1000 - - type: CreditNote - id: 'y' - amount: 1000 - - type: CreditNote - id: z - amount: 1000 - - totalAmount: 1000 - lines: - - amount: 1000 - links: - - type: Bill - id: x - amount: -1000 - modifiedDate: '2022-10-23T00:00:00Z' - sourceModifiedDate: '2022-10-23T00:00:00Z' - - id: '001' - totalAmount: 5000 - date: '1901-01-01' - lines: - - amount: 1000 - links: - - type: Bill - id: x - amount: -1000 - - amount: 4000 - links: - - type: PaymentOnAccount - id: 'y' - amount: -4000 - - id: '001' - totalAmount: 5000 - date: '1901-01-01' - lines: - - amount: 1000 - links: - - type: Bill - id: x - amount: -1000 - - amount: 1000 - links: - - type: Bill - id: 'y' - amount: -1000 - - amount: 3000 - links: - - type: PaymentOnAccount - id: 'y' - amount: -3000 - - totalAmount: 500 - lines: - - amount: 500 - links: - - type: Bill - id: a - amount: -1000 - - type: Bill - id: b - amount: -1000 - - type: CreditNote - id: 'y' - amount: 750 - - type: CreditNote - id: z - amount: 750 - AccountingBillPayments: - title: 'Accounting: Bill payments' - x-internal: true - allOf: - - type: object - properties: - results: - type: array - items: - $ref: '#/components/schemas/AccountingBillPayment' - - $ref: '#/components/schemas/PagingInfo' - AccountingBills: - title: 'Accounting: Bills' - x-internal: true - allOf: - - type: object - properties: - results: - type: array - items: - $ref: '#/components/schemas/AccountingBill' - - $ref: '#/components/schemas/PagingInfo' - AccountingCashFlowStatement: - title: 'Accounting: Cash flow statement' - description: |- - > **Operating activities only** - > - > Currently, the cash flow statement shows cash that flows into and out of the company from operating activities *only*. Operating activities generate cash from the sale of goods or services. - - ## Overview - - A cash flow statement is a financial report that records all cash that is received or spent by a company during a given period. It gives you a clearer picture of the company’s performance, and their ability to pay creditors and finance growth. - - > **Cash flow statement or balance sheet?** - > - > Look at the cash flow statement to understand a company's ability to pay its bills. Although the balance sheet may show healthy earnings at a specific point in time, the cash flow statement allows you to see whether the company is meeting its financial commitments, such as paying creditors or its employees. - type: object - properties: - reports: - description: Array of cash flow statements. - type: array - items: - $ref: '#/components/schemas/AccountingCashFlowStatement/definitions/cashFlowStatement' - reportBasis: - $ref: '#/components/schemas/AccountingCashFlowStatement/definitions/reportBasis' - reportInput: - $ref: '#/components/schemas/AccountingCashFlowStatement/definitions/reportInput' - currency: - $ref: '#/components/schemas/SourceAccount/properties/currency' - description: Currency of all values in the cash flow statement. - mostRecentAvailableMonth: - $ref: '#/components/schemas/DateTime' - nullable: true - earliestAvailableMonth: - $ref: '#/components/schemas/DateTime' - nullable: true - required: - - reports - - reportBasis - - reportInput - definitions: - reportBasis: - title: Report basis - description: 'Accounting method used when aggregating the report data. In this case, `Cash`.' - type: string - enum: - - Unknown - - Accrual - - Cash - reportInput: - description: Accounting method used to prepare the cash flow statement. - type: string - enum: - - Unknown - - Indirect - - Direct - cashFlowStatement: - title: Cash flow statement - type: object - properties: - fromDate: - $ref: '#/components/schemas/DateTime' - description: Start date for the reporting period. - toDate: - $ref: '#/components/schemas/DateTime' - description: End date for the reporting period. - cashReceipts: - $ref: '#/components/schemas/ReportLine' - description: ReportLines for cash receipts from the sale of goods. - cashPayments: - $ref: '#/components/schemas/ReportLine' - description: ReportLines for cash payments to suppliers for the purchase of goods or services. - AccountingCompanyInfo: - title: 'Accounting: Company information' - description: |- - Company info provides standard details about a linked company such as their address, phone number, and company registration. - - > **Company information or companies?** - > - > Company information is standard information that is held in the accounting software about a company. `Companies` is an endpoint that lists businesses in the Codat system that have linked and shared their data sources. - type: object - properties: - companyName: - type: string - nullable: true - description: Name of the linked company. - accountingPlatformRef: - type: string - nullable: true - description: Identifier or reference for the company in the accounting software. - companyLegalName: - type: string - nullable: true - description: Registered legal name of the linked company. - addresses: - type: array - nullable: true - description: An array of Addresses. - items: - $ref: '#/components/schemas/AccountingAddress' - phoneNumbers: - type: array - nullable: true - description: An array of phone numbers. - items: - $ref: '#/components/schemas/PhoneNumber' - webLinks: - type: array - nullable: true - description: An array of weblinks. - items: - $ref: '#/components/schemas/WebLink' - ledgerLockDate: - $ref: '#/components/schemas/DateTime' - description: 'If set in the accounting software, the date (in the ISO 8601 date/time format) after which accounting transactions cannot be edited. Commonly used when books are closed at year-end.' - registrationNumber: - type: string - nullable: true - description: Registration number given to the linked company by the companies authority in the country of origin. In the UK this is Companies House. - taxNumber: - type: string - nullable: true - description: Company tax number. - financialYearStartDate: - $ref: '#/components/schemas/DateTime' - description: Start date of the financial year for the company. - baseCurrency: - type: string - nullable: true - description: Currency set in the accounting software of the linked company. Used by the currency rate. - sourceUrls: - type: object - additionalProperties: - type: string - nullable: true - nullable: true - description: |- - URL addresses for the accounting source. - - For example, for Xero integrations two URLs are returned. These have many potential use cases, such as [deep linking](https://developer.xero.com/documentation/api-guides/deep-link-xero). - createdDate: - $ref: '#/components/schemas/DateTime' - description: Date the linked company was created in the accounting software. - supplementalData: - $ref: '#/components/schemas/SupplementalData' - examples: - - companyName: ACME Corporation - accountingPlatformRef: 4444e827-401b-4925-92cb-d79086bf3b6b - companyLegalName: ACME Corporation Ltd. - addresses: - - type: Billing - line1: Warner House - line2: 98 Theobald's Road - city: London - region: '' - country: United Kingdom - postalcode: WC1X 8WB - - type: Unknown - line1: 123 Sierra Way - line2: '' - city: San Pablo - region: CA - country: '' - postalCode: '87999' - phoneNumbers: - - number: 010 1234 5678 - type: Landline - webLinks: - - type: Website - url: 'https://www.wbsl.com/' - ledgerLockDate: '2019-03-04T12:08:01.881Z' - registrationNumber: '1234567890' - taxNumber: GB 123456789 - financialYearStartDate: '2019-04-01T00:00:00Z' - baseCurrency: USD - sourceUrls: - url1: 'https://go.xero.com/organisationlogin/default.aspx?shortcode=!rxs0Q' - url2: 'https://reporting.xero.com/!rxs0Q' - createdDate: '2020-02-03T16:42:02Z' - AccountingCreateAccountResponse: - title: 'Accounting: Create account response' - x-internal: true - allOf: - - type: object - properties: - data: - allOf: - - $ref: '#/components/schemas/AccountingAccount' - - deprecated: true - - $ref: '#/components/schemas/PushOperation' - AccountingCreateBankAccountResponse: - title: 'Accounting: Create bank account response' - x-internal: true - allOf: - - type: object - properties: - data: - allOf: - - $ref: '#/components/schemas/AccountingBankAccount' - - deprecated: true - - $ref: '#/components/schemas/PushOperation' - AccountingCreateBankTransactions: - title: 'Accounting: Create bank account transactions' - type: object - properties: - accountId: - type: string - description: Unique identifier for a bank account. - examples: - - 13d946f0-c5d5-42bc-b092-97ece17923ab - - 9wg4lep4ush5cxs79pl8sozmsndbaukll3ind4g7buqbm1h2 - - '7110701885' - - EILBDVJVNUAGVKRQ - - Checking 0202 - transactions: - type: array - items: - $ref: '#/components/schemas/AccountingCreateBankTransactions/definitions/CreateBankAccountTransaction' - definitions: - CreateBankAccountTransaction: - title: Bank account transaction - type: object - properties: - id: - type: string - description: 'Identifier for the bank account transaction, unique for the company in the accounting software.' - amount: - type: number - format: decimal - description: The amount transacted in the bank transaction. - date: - $ref: '#/components/schemas/DateTime' - description: - nullable: false - type: string - description: Description of the bank transaction. - balance: - type: number - format: decimal - description: The remaining balance in the account with ID `accountId`. - AccountingCreateBankTransactionsResponse: - title: 'Accounting: Create/update bank transaction response' - x-internal: true - allOf: - - type: object - properties: - data: - allOf: - - $ref: '#/components/schemas/AccountingCreateBankTransactions' - - deprecated: true - - $ref: '#/components/schemas/PushOperation' - AccountingCreateDirectCostResponse: - title: 'Accounting: Create direct cost response' - x-internal: true - allOf: - - type: object - properties: - data: - allOf: - - $ref: '#/components/schemas/AccountingDirectCost' - - deprecated: true - - $ref: '#/components/schemas/PushOperation' - AccountingCreatePaymentResponse: - title: 'Accounting: Create payment response' - x-internal: true - allOf: - - type: object - properties: - data: - allOf: - - $ref: '#/components/schemas/AccountingPayment' - - deprecated: true - - $ref: '#/components/schemas/PushOperation' - AccountingCreateSupplierResponse: - title: 'Accounting: Create supplier response' - x-internal: true - allOf: - - type: object - properties: - data: - allOf: - - $ref: '#/components/schemas/AccountingSupplier' - - deprecated: true - - $ref: '#/components/schemas/PushOperation' - AccountingCreateTransferResponse: - title: 'Accounting: Create transfer response' - x-internal: true - allOf: - - type: object - properties: - data: - allOf: - - $ref: '#/components/schemas/AccountingTransfer' - - deprecated: true - - $ref: '#/components/schemas/PushOperation' - AccountingCreditNote: - title: 'Accounting: Credit note' - description: |- - ## Overview - - Think of a credit note as a voucher issued to a customer. It is a reduction that can be applied against one or multiple invoices. A credit note can either reduce the amount owed or cancel out an invoice entirely. - - In the Codat system a credit note is issued to a [customer's](https://docs.codat.io/lending-api#/schemas/Customer) accounts receivable. - - It contains details of: - * The amount of credit remaining and its status. - * Payment allocations against the payments type, in this case an invoice. - * Which customers the credit notes have been issued to. - type: object - allOf: - - type: object - properties: - id: - type: string - description: 'Identifier for the credit note, unique to the company in the accounting software.' - creditNoteNumber: - type: string - nullable: true - description: Friendly reference for the credit note. - customerRef: - $ref: '#/components/schemas/AccountingCustomer/definitions/accountingCustomerRef' - description: Reference to the customer the credit note has been issued to. - withholdingTax: - type: array - nullable: true - items: - $ref: '#/components/schemas/AccountingBill/allOf/0/properties/withholdingTax/items' - totalAmount: - type: number - format: decimal - description: Total amount of credit that has been applied to the customer's accounts receivable - totalDiscount: - type: number - format: decimal - description: Any discounts applied to the credit note amount. - subTotal: - type: number - format: decimal - description: 'Value of the credit note, including discounts and excluding tax.' - additionalTaxAmount: - type: number - format: decimal - description: Additional tax amount applied to credit note. - additionalTaxPercentage: - type: number - format: decimal - description: Percentage rate of any additional tax applied to the credit note. - totalTaxAmount: - type: number - format: decimal - description: Any tax applied to the credit note amount. - discountPercentage: - type: number - format: decimal - description: Percentage rate (from 0 to 100) of discounts applied to the credit note. - remainingCredit: - type: number - format: decimal - description: Unused balance of totalAmount originally raised. - status: - $ref: '#/components/schemas/AccountingCreditNote/definitions/creditNoteStatus' - description: Current state of the credit note. - issueDate: - $ref: '#/components/schemas/DateTime' - description: Date of the credit note as recorded in the accounting system. - allocatedOnDate: - $ref: '#/components/schemas/DateTime' - description: Date on which the credit note was fully allocated. - currency: - $ref: '#/components/schemas/SourceAccount/properties/currency' - description: Currency of the credit note. - currencyRate: - $ref: '#/components/schemas/AccountingPaymentAllocation/definitions/paymentAllocationPayment/properties/currencyRate' - lineItems: - type: array - nullable: true - items: - $ref: '#/components/schemas/AccountingCreditNote/definitions/creditNoteLineItem' - paymentAllocations: - type: array - nullable: true - description: An array of payment allocations. - items: - $ref: '#/components/schemas/AccountingPaymentAllocation' - note: - type: string - nullable: true - description: 'Any additional information about the credit note. Where possible, Codat links to a data field in the accounting software that is publicly available. This means that the contents of the note field are included when a credit note is emailed from the accounting software to the customer.' - metadata: - $ref: '#/components/schemas/Metadata' - supplementalData: - $ref: '#/components/schemas/SupplementalData' - - $ref: '#/components/schemas/CommerceOrder/allOf/3' - required: - - totalAmount - - totalDiscount - - subTotal - - totalTaxAmount - - discountPercentage - - remainingCredit - - status - definitions: - creditNoteStatus: - title: Credit note status - description: Current state of the credit note. - type: string - enum: - - Unknown - - Draft - - Submitted - - Paid - - Void - - PartiallyPaid - creditNoteLineItem: - type: object - properties: - description: - type: string - nullable: true - description: 'Friendly name of each line item. For example, the goods or service for which credit has been issued.' - unitAmount: - type: number - format: decimal - description: Unit price of the goods or service. - quantity: - type: number - format: decimal - description: Number of units of the goods or service for which credit has been issued. - discountAmount: - type: number - format: decimal - nullable: true - description: Value of any discounts applied. - subTotal: - type: number - format: decimal - nullable: true - description: 'Amount of credit associated with the line item, including discounts but excluding tax.' - taxAmount: - type: number - format: decimal - nullable: true - description: Amount of tax associated with the line item. - totalAmount: - type: number - format: decimal - nullable: true - description: 'Total amount of the line item, including discounts and tax.' - accountRef: - $ref: '#/components/schemas/AccountingAccount/definitions/accountRef' - description: Reference to the account to which the line item is linked. - discountPercentage: - type: number - format: decimal - nullable: true - description: Percentage rate of any discount applied to the line item. - taxRateRef: - $ref: '#/components/schemas/AccountingBillCreditNote/definitions/billCreditNoteLineItem/properties/taxRateRef' - description: Reference to the tax rate to which the line item is linked. - itemRef: - $ref: '#/components/schemas/AccountingBillCreditNote/definitions/billCreditNoteLineItem/properties/itemRef' - description: Reference to the item the line is linked to. - trackingCategoryRefs: - type: array - nullable: true - deprecated: true - description: Reference to the tracking categories to which the line item is linked. - items: - $ref: '#/components/schemas/AccountingTrackingCategory/definitions/trackingCategoryRef' - tracking: - $ref: '#/components/schemas/AccountsReceivableTracking' - isDirectIncome: - type: boolean - description: The credit note is a direct income if `True`. - required: - - unitAmount - - quantity - examples: - - - id: 0316bd24-8a01-4a3a-a0e5-a73f14ebcbec - creditNoteNumber: '5239277' - customerRef: - id: b5511228-b9ef-4713-91b1-ad2cf60eadb1 - companyName: Tool Hire Company - totalAmount: 550 - totalDiscount: 0 - subTotal: 0 - totalTaxAmount: 0 - discountPercentage: 0 - remainingCredit: 550 - status: Submitted - issueDate: '2018-03-28T21:28:58.249Z' - allocatedOnDate: null - note: More information available on request. - currency: USD - currencyRate: null - lineItems: - - description: Anvil10000Lb - unitAmount: 50 - quantity: 10 - discountAmount: 0 - subTotal: 500 - taxAmount: 50 - totalAmount: 550 - accountRef: - id: 3f267b10-757d-44c0-bef9-20f70cc8fbe3 - name: null - discountPercentage: null - taxRateRef: - id: 6c88aff3-7cb9-4980-a3d3-443e72e02498 - name: null - itemRef: - id: '1' - name: null - paymentAllocations: [] - modifiedDate: null - sourceModifiedDate: null - AccountingCreditNotes: - title: 'Accounting: Credit notes' - x-internal: true - allOf: - - type: object - properties: - results: - type: array - items: - $ref: '#/components/schemas/AccountingCreditNote' - - $ref: '#/components/schemas/PagingInfo' - AccountingCustomer: - title: 'Accounting: Customer' - description: | - ## Overview - - A customer is a person or organisation that buys goods or services. From the Customers endpoints, you can retrieve a [list of all the customers of a company](https://api.codat.io/swagger/index.html#/Customers/get_companies__companyId__data_customers). - - Customers' data links to accounts receivable [invoices](https://docs.codat.io/lending-api#/schemas/Invoice). - type: object - allOf: - - type: object - properties: - id: - type: string - description: 'Identifier for the customer, unique to the company in the accounting software.' - customerName: - type: string - nullable: true - description: 'Name of the customer as recorded in the accounting system, typically the company name.' - contactName: - type: string - nullable: true - description: Name of the main contact for the identified customer. - emailAddress: - type: string - nullable: true - description: Email address the customer can be contacted by. - defaultCurrency: - $ref: '#/components/schemas/SourceAccount/properties/currency' - description: Default currency the transactional data of the customer is recorded in. - phone: - type: string - nullable: true - description: Phone number the customer can be contacted by. - addresses: - type: array - nullable: true - description: An array of Addresses. - items: - $ref: '#/components/schemas/AccountingAddress' - contacts: - type: array - nullable: true - description: An array of Contacts. - items: - $ref: '#/components/schemas/AccountingCustomer/definitions/contact' - registrationNumber: - type: string - nullable: true - description: 'Company number. In the UK, this is typically the Companies House company registration number.' - taxNumber: - type: string - nullable: true - description: Company tax number. - status: - $ref: '#/components/schemas/AccountingCustomer/definitions/customerStatus' - description: Current state of the customer. - metadata: - $ref: '#/components/schemas/Metadata' - supplementalData: - $ref: '#/components/schemas/SupplementalData' - - $ref: '#/components/schemas/CommerceOrder/allOf/3' - required: - - status - definitions: - accountingCustomerRef: - type: object - properties: - id: - minLength: 1 - type: string - description: '`id` from the Customers data type' - companyName: - type: string - nullable: true - description: '`customerName` from the Customer data type' - required: - - id - customerStatus: - description: Status of customer. - type: string - enum: - - Unknown - - Active - - Archived - contact: - type: object - properties: - name: - type: string - nullable: true - description: Name of a contact for a customer. - email: - type: string - nullable: true - description: Email of a contact for a customer. - phone: - type: array - nullable: true - description: An array of Phone numbers. - items: - $ref: '#/components/schemas/PhoneNumber' - address: - $ref: '#/components/schemas/AccountingAddress' - description: An object of Address information. - status: - $ref: '#/components/schemas/AccountingCustomer/definitions/customerStatus' - modifiedDate: - $ref: '#/components/schemas/DateTime' - required: - - status - AccountingCustomers: - title: 'Accounting: Customers' - x-internal: true - allOf: - - type: object - properties: - results: - type: array - items: - $ref: '#/components/schemas/AccountingCustomer' - - $ref: '#/components/schemas/PagingInfo' - AccountingDirectCost: - title: 'Accounting: Direct cost' - description: |- - > **Language tip:** Direct costs may also be referred to as **Spend transactions**, **Spend money transactions**, or **Payments** in various accounting software. - - ## Overview - - Direct costs are money that leave the business without impacting Accounts Payable, and refunds associated with such transactions. - - Direct costs include: - * Purchasing an item and paying it off at the point of the purchase - * Receiving cash from a refunded item if the refund is made by the supplier - - Direct costs is a child data type of [account transactions](https://docs.codat.io/lending-api#/schemas/AccountTransaction). - type: object - allOf: - - type: object - properties: - id: - type: string - description: 'Identifier of the direct cost, unique for the company.' - - $ref: '#/components/schemas/AccountingDirectCost/definitions/directCostPrototype' - - properties: - metadata: - $ref: '#/components/schemas/Metadata' - - $ref: '#/components/schemas/CommerceOrder/allOf/3' - definitions: - directCostPrototype: - type: object - properties: - reference: - type: string - nullable: true - description: User-friendly reference for the direct cost. - note: - type: string - nullable: true - description: A note attached to the direct cost. - contactRef: - $ref: '#/components/schemas/AccountingJournalEntry/definitions/journalLine/properties/contactRef' - description: A customer or supplier associated with the direct cost. - issueDate: - $ref: '#/components/schemas/DateTime' - description: Date of the direct cost as recorded in the accounting software.Date of the direct cost as recorded in the accounting software. - currency: - $ref: '#/components/schemas/SourceAccount/properties/currency' - description: Currency of the direct cost. - currencyRate: - $ref: '#/components/schemas/AccountingPaymentAllocation/definitions/paymentAllocationPayment/properties/currencyRate' - lineItems: - type: array - description: An array of line items. - items: - $ref: '#/components/schemas/AccountingDirectCost/definitions/directCostLineItem' - paymentAllocations: - type: array - description: An array of payment allocations. - items: - $ref: '#/components/schemas/AccountingPaymentAllocation' - subTotal: - type: number - format: decimal - description: 'The total amount of the direct costs, excluding any taxes.' - taxAmount: - type: number - format: decimal - description: The total amount of tax on the direct costs. - totalAmount: - type: number - format: decimal - description: 'The amount of the direct costs, inclusive of tax.' - supplementalData: - $ref: '#/components/schemas/SupplementalData' - required: - - issueDate - - currency - - lineItems - - paymentAllocations - - subTotal - - taxAmount - - totalAmount - directCostLineItem: - type: object - properties: - description: - type: string - nullable: true - description: Friendly name of the goods or services. - unitAmount: - type: number - format: decimal - description: |- - Price of each unit of goods or services. - Note: If the platform does not provide this information, the unit amount will be mapped to the total amount. - quantity: - type: number - format: decimal - description: |- - Number of units of goods or services received. - - Note: If the platform does not provide this information, the quantity will be mapped as 1. - discountAmount: - type: number - format: decimal - nullable: true - description: Discount amount for the line before tax. - discountPercentage: - type: number - format: decimal - nullable: true - description: Discount percentage for the line before tax. - subTotal: - type: number - format: decimal - nullable: true - description: 'Amount of the line, inclusive of discounts but exclusive of tax.' - taxAmount: - type: number - format: decimal - nullable: true - description: Amount of tax for the line. - totalAmount: - type: number - format: decimal - nullable: true - description: 'Total amount of the line, including tax.' - accountRef: - $ref: '#/components/schemas/AccountingAccount/definitions/accountRef' - description: Reference to the account to which the line item is linked. - taxRateRef: - $ref: '#/components/schemas/AccountingBillCreditNote/definitions/billCreditNoteLineItem/properties/taxRateRef' - description: Reference to the tax rate to which the the line item is linked. - itemRef: - $ref: '#/components/schemas/AccountingBillCreditNote/definitions/billCreditNoteLineItem/properties/itemRef' - description: 'Reference to the product, service type, or inventory item to which the direct cost is linked.' - trackingCategoryRefs: - type: array - nullable: true - deprecated: true - description: Collection of categories against which this direct cost is tracked. - items: - $ref: '#/components/schemas/AccountingTrackingCategory/definitions/trackingCategoryRef' - tracking: - $ref: '#/components/schemas/AccountingDirectCost/definitions/tracking' - required: - - unitAmount - - quantity - tracking: - title: Invoiceable tracking - required: - - recordRefs - type: object - properties: - recordRefs: - type: array - items: - $ref: '#/components/schemas/AccountingJournalEntry/definitions/journalLine/properties/tracking/definitions/trackingRecordRef' - invoiceTo: - $ref: '#/components/schemas/AccountingRecordRef' - additionalProperties: false - invoiceTo: - type: object - title: Invoice to - description: Links to the customer the direct cost is associated. - properties: - id: - type: string - description: '''id'' of the underlying record or data type.' - dataType: - type: string - description: Name of underlying data type. - enum: - - customers - example: customers - AccountingDirectCosts: - title: 'Accounting: Direct costs' - x-internal: true - allOf: - - type: object - properties: - results: - type: array - items: - $ref: '#/components/schemas/AccountingDirectCost' - - $ref: '#/components/schemas/PagingInfo' - AccountingDirectIncome: - title: 'Accounting: Direct income' - description: | - > **Language tip:** Direct incomes may also be referred to as **Receive transactions**, **Receive money transactions**, **Sales receipts**, or **Cash sales** in various accounting software. - - ## Overview - - Direct incomes are incomes received directly from the business' operations. For example, cash sales of items to a customer, referral commissions, and service fee refunds are considered direct incomes made at the point of sale. - - Direct incomes include: - - - Selling an item directly to a contact, and receiving payment at the point of the sale. - - Refunding an item sold at the point of sale in cash to a contact. - - Direct incomes is a child data type of [account transactions](https://docs.codat.io/lending-api#/schemas/AccountTransaction). - type: object - allOf: - - type: object - properties: - id: - type: string - description: 'Identifier of the direct income, unique for the company.' - reference: - type: string - nullable: true - description: User-friendly reference for the direct income. - note: - type: string - nullable: true - description: An optional note on the direct income that can be used to assign the direct income with a reference ID in your application. - contactRef: - $ref: '#/components/schemas/AccountingJournalEntry/definitions/journalLine/properties/contactRef' - description: A customer or supplier associated with the direct income. - issueDate: - $ref: '#/components/schemas/DateTime' - description: The date of the direct income as recorded in the accounting software. - currency: - $ref: '#/components/schemas/SourceAccount/properties/currency' - description: The currency of the direct income. - currencyRate: - $ref: '#/components/schemas/AccountingPaymentAllocation/definitions/paymentAllocationPayment/properties/currencyRate' - lineItems: - type: array - description: An array of line items. - items: - $ref: '#/components/schemas/AccountingDirectIncome/definitions/directIncomeLineItem' - paymentAllocations: - type: array - items: - $ref: '#/components/schemas/AccountingPaymentAllocation' - subTotal: - type: number - format: decimal - description: 'The total amount of the direct incomes, excluding any taxes.' - taxAmount: - type: number - format: decimal - description: The total amount of tax on the direct incomes. - totalAmount: - type: number - format: decimal - description: 'The amount of the direct incomes, inclusive of tax.' - metadata: - $ref: '#/components/schemas/Metadata' - supplementalData: - $ref: '#/components/schemas/SupplementalData' - - $ref: '#/components/schemas/CommerceOrder/allOf/3' - required: - - issueDate - - currency - - lineItems - - paymentAllocations - - subTotal - - taxAmount - - totalAmount - definitions: - directIncomeLineItem: - type: object - properties: - description: - type: string - nullable: true - description: A user-friendly name of the goods or services. - unitAmount: - type: number - format: decimal - description: |- - The price of each unit of goods or services. - Note: If the platform does not provide this information, the unit amount will be mapped to the total amount. - quantity: - type: number - format: decimal - description: |- - The number of units of goods or services received. - - Note: If the platform does not provide this information, the quantity will be mapped as 1. - discountAmount: - type: number - format: decimal - nullable: true - description: Discount amount for the line before tax. - discountPercentage: - type: number - format: decimal - nullable: true - description: Discount percentage for the line before tax. - subTotal: - type: number - format: decimal - nullable: true - description: 'The amount of the line, inclusive of discounts, but exclusive of tax.' - taxAmount: - type: number - format: decimal - nullable: true - description: |- - The amount of tax for the line. - Note: If the platform does not provide this information, the quantity will be mapped as 0.00. - totalAmount: - type: number - format: decimal - nullable: true - description: 'The total amount of the line, including tax.' - accountRef: - $ref: '#/components/schemas/AccountingAccount/definitions/accountRef' - description: Reference to the account to which the line item is linked. - taxRateRef: - $ref: '#/components/schemas/AccountingBillCreditNote/definitions/billCreditNoteLineItem/properties/taxRateRef' - description: Reference to the tax rate to which the line item is linked. - itemRef: - $ref: '#/components/schemas/AccountingBillCreditNote/definitions/billCreditNoteLineItem/properties/itemRef' - description: 'Reference to the product, service type, or inventory item to which the direct cost is linked.' - trackingCategoryRefs: - type: array - nullable: true - description: An array of categories against which this direct cost is tracked. - items: - $ref: '#/components/schemas/AccountingTrackingCategory/definitions/trackingCategoryRef' - required: - - unitAmount - - quantity - AccountingDirectIncomes: - title: 'Accounting: Direct incomes' - x-internal: true - allOf: - - type: object - properties: - results: - type: array - items: - $ref: '#/components/schemas/AccountingDirectIncome' - - $ref: '#/components/schemas/PagingInfo' - AccountingInvoice: - title: 'Accounting: Invoice' - description: |- - > **Invoices or bills?** - > - > We distinguish between invoices where the company *owes money* vs. *is owed money*. If the company issued an invoice, and is owed money (accounts receivable) we call this an Invoice. - > - > See [Bills](https://docs.codat.io/lending-api#/schemas/Bill) for the accounts payable equivalent of bills. - - ## Overview - - An invoice is an itemized record of goods sold or services provided to a [customer](https://docs.codat.io/lending-api#/schemas/Customer). - - In Codat, an invoice contains details of: - - - The timeline of the invoice—when it was raised, marked as paid, last edited, and so on. - - How much the invoice is for, what portion of the invoice is tax or discounts, and what currency the amounts are represented in. - - Who the invoice has been raised to; the _customer_. - - The breakdown of what the invoice is for; the _line items_. - - Any [payments](https://docs.codat.io/lending-api#/schemas/Payment) assigned to the invoice; the _payment allocations_. - - > **Invoice PDF downloads** - > - > You can download a PDF version of an invoice for supported integrations. - > - > The filename will be invoice-{number}.pdf. - - > **Referencing an invoice in Sage 50 and ClearBooks** - > - > In Sage 50 and ClearBooks, you may prefer to use the **invoiceNumber** to identify an invoice rather than the invoice **id**. Each time a draft invoice is submitted or printed, the draft **id** becomes void and a submitted invoice with a new **id** exists in its place. In both platforms, the **invoiceNumber** should remain the same. - type: object - allOf: - - type: object - properties: - id: - type: string - description: 'Identifier for the invoice, unique to the company in the accounting software.' - invoiceNumber: - type: string - nullable: true - description: 'Friendly reference for the invoice. If available, this appears in the file name of invoice attachments.' - customerRef: - $ref: '#/components/schemas/AccountingCustomer/definitions/accountingCustomerRef' - description: Reference to the customer the invoice has been issued to. - salesOrderRefs: - type: array - nullable: true - description: List of references to related Sales orders. - items: - title: Sales order reference + title: Data statuses + x-internal: true type: object properties: - id: - type: string - description: Unique identifier to a record in `dataType`. - dataType: - type: string - description: The underlying data type associated to the reference `id`. - enum: - - salesOrders - issueDate: - $ref: '#/components/schemas/DateTime' - description: Date of the invoice as recorded in the accounting system. - dueDate: - $ref: '#/components/schemas/DateTime' - description: Date the customer is due to be paid by. - paidOnDate: - $ref: '#/components/schemas/DateTime' - description: 'Date the invoice was marked as paid in the accounting system. If this field is not available from the accounting software, it is calculated by Codat using associated payments.' - currency: - $ref: '#/components/schemas/SourceAccount/properties/currency' - description: Currency of the invoice. - currencyRate: - $ref: '#/components/schemas/AccountingPaymentAllocation/definitions/paymentAllocationPayment/properties/currencyRate' - lineItems: - type: array - nullable: true - description: An array of line items. - items: - $ref: '#/components/schemas/AccountingInvoice/definitions/invoiceLineItem' - paymentAllocations: - type: array - nullable: true - description: An array of payment allocations. - items: - $ref: '#/components/schemas/AccountingPaymentAllocation' - withholdingTax: - type: array - nullable: true - items: - $ref: '#/components/schemas/AccountingBill/allOf/0/properties/withholdingTax/items' - totalDiscount: - type: number - format: decimal - nullable: true - description: Numerical value of discounts applied to the invoice. - subTotal: - type: number - format: decimal - nullable: true - description: Total amount of the invoice excluding any taxes. - additionalTaxAmount: - type: number - format: decimal - description: Additional tax amount applied to invoice. - additionalTaxPercentage: - type: number - format: decimal - description: Percentage rate of any additional tax applied to the invoice. - totalTaxAmount: - type: number - format: decimal - description: Amount of tax on the invoice. - totalAmount: - type: number - format: decimal - description: 'Amount of the invoice, inclusive of tax.' - amountDue: - type: number - format: decimal - description: Amount outstanding on the invoice. - discountPercentage: - type: number - format: decimal - nullable: true - description: 'Percentage rate (from 0 to 100) of discounts applied to the invoice. For example: A 5% discount will return a value of `5`, not `0.05`.' - status: - $ref: '#/components/schemas/AccountingInvoice/definitions/invoiceStatus' - note: - type: string - nullable: true - description: 'Any additional information about the invoice. Where possible, Codat links to a data field in the accounting software that is publicly available. This means that the contents of the note field are included when an invoice is emailed from the accounting software to the customer.' - metadata: - $ref: '#/components/schemas/Metadata' - supplementalData: - $ref: '#/components/schemas/SupplementalData' - - $ref: '#/components/schemas/CommerceOrder/allOf/3' - required: - - issueDate - - totalTaxAmount - - totalAmount - - amountDue - - status - definitions: - invoiceLineItem: - type: object - properties: - description: - type: string - nullable: true - description: Friendly name of the goods or services provided. - unitAmount: - type: number - format: decimal - description: Price of each unit of goods or services. - quantity: - type: number - format: decimal - description: Number of units of goods or services provided. - discountAmount: - type: number - format: decimal - nullable: true - description: Numerical value of any discounts applied. - subTotal: - type: number - format: decimal - nullable: true - description: 'Amount of the line, inclusive of discounts but exclusive of tax.' - taxAmount: - type: number - format: decimal - nullable: true - description: Amount of tax for the line. - totalAmount: - type: number - format: decimal - nullable: true - description: 'Total amount of the line, including tax. When pushing invoices to Xero, the total amount is exclusive of tax to allow automatic calculations if a tax rate or tax amount is not specified.' - accountRef: - $ref: '#/components/schemas/AccountingAccount/definitions/accountRef' - description: Reference to the account to which the line item is linked. - discountPercentage: - type: number - format: decimal - nullable: true - description: Percentage rate (from 0 to 100) of any discounts applied to the unit amount. - taxRateRef: - $ref: '#/components/schemas/AccountingBillCreditNote/definitions/billCreditNoteLineItem/properties/taxRateRef' - description: Reference to the tax rate to which the line item is linked. - itemRef: - $ref: '#/components/schemas/AccountingBillCreditNote/definitions/billCreditNoteLineItem/properties/itemRef' - description: Reference to the item the line is linked to. - trackingCategoryRefs: - type: array - nullable: true - description: Reference to the tracking categories to which the line item is linked. - items: - $ref: '#/components/schemas/AccountingTrackingCategory/definitions/trackingCategoryRef' - tracking: - $ref: '#/components/schemas/AccountsReceivableTracking' - isDirectIncome: - type: boolean - description: The invoice is a direct income if `True`. - required: - - unitAmount - - quantity - invoiceStatus: - type: string - enum: - - Unknown - - Draft - - Submitted - - PartiallyPaid - - Paid - - Void - description: |- - Current state of the invoice: - - - `Draft` - Invoice hasn't been submitted to the supplier. It may be in a pending state or is scheduled for future submission, for example by email. - - `Submitted` - Invoice is no longer a draft. It has been processed and, or, sent to the customer. In this state, it will impact the ledger. It also has no payments made against it, meaning `amountDue` will usually equal `totalAmount` (unless tax is witheld). - - `PartiallyPaid` - The balance paid against the invoice is positive, but less than the total invoice amount, meaning `0 < amountDue < totalAmount`. - - `Paid` - Invoice is paid in full. This includes if the invoice has been credited or overpaid, meaning `amountDue == 0`. - - `Void` - An invoice can become Void when it's deleted, refunded, written off, or cancelled. A voided invoice may still be PartiallyPaid, and so all outstanding amounts on voided invoices are removed from the accounts receivable account. - AccountingInvoices: - title: 'Accounting: Invoices' - x-internal: true - allOf: - - type: object - properties: - results: - type: array - items: - $ref: '#/components/schemas/AccountingInvoice' - - $ref: '#/components/schemas/PagingInfo' - AccountingJournal: - title: 'Accounting: Journal' - description: | - > **Language tip:** For line items, or individual transactions, of a company's financial documents, refer to the [Journal entries](https://docs.codat.io/lending-api#/schemas/JournalEntry) data type - - ## Overview - - In accounting software, journals are used to record all the financial transactions of a company. Each transaction in a journal is represented by a separate [journal entry](https://docs.codat.io/lending-api#/schemas/JournalEntry). These entries are used to create the general ledger, which is then used to create the financial statements of a business. - - When a company records all their transactions in a single journal, it can become large and difficult to maintain and track. This is why large companies often use multiple journals (also known as subjournals) to categorize and manage journal entries. - - Such journals can be divided into two categories: - - - Special journals: journals used to record specific types of transactions; for example, a purchases journal, a sales journal, or a cash management journal. - - General journals: journals used to record transactions that fall outside the scope of the special journals. - - Multiple journals or subjournals are used in the following Codat integrations: - - - [Sage Intacct](https://docs.codat.io/integrations/accounting/sage-intacct/accounting-sage-intacct) (mandatory) - - [Exact Online](https://docs.codat.io/integrations/accounting/exact-online/accounting-exact-online) (mandatory) - - [Oracle NetSuite](https://docs.codat.io/integrations/accounting/netsuite/accounting-netsuite) (optional) - - > When pushing journal entries to an accounting software that doesn’t support multiple journals (multi-book accounting), the entries will be linked to the platform-generic journal. The Journals data type will only include one object. - type: object - allOf: - - type: object - properties: - id: - type: string - description: Journal ID. - - $ref: '#/components/schemas/AccountingJournal/definitions/journalPrototype' - - properties: - metadata: - $ref: '#/components/schemas/Metadata' - - $ref: '#/components/schemas/CommerceOrder/allOf/3' - definitions: - journalPrototype: - type: object - properties: - journalCode: - type: string - nullable: true - description: Native journal number or code. - name: - type: string - nullable: true - description: |- - Journal name. - The maximum length for a journal name is 256 characters. All characters above that number will be truncated. - type: - type: string - nullable: true - description: The type of the journal. - parentId: - type: string - nullable: true - description: |- - Parent journal ID. - If the journal is a parent journal, this value is not present. - hasChildren: - type: boolean - description: 'If the journal has child journals, this value is true. If it doesn’t, it is false.' - createdOn: - $ref: '#/components/schemas/DateTime' - description: Journal creation date. - status: - $ref: '#/components/schemas/AccountingJournal/definitions/journalStatus' - journalRef: - title: Journal reference - type: object - additionalProperties: false - description: Links journal entries to the relevant journal in accounting integrations that use multi-book accounting (multiple journals). - properties: - id: - minLength: 1 - type: string - description: GUID of the underlying journal. - name: - type: string - maxLength: 256 - nullable: true - description: Name of journal - required: - - id - journalStatus: - type: string - description: Current journal status. - enum: - - Unknown - - Active - - Archived - AccountingJournalEntries: - title: 'Accounting: Journal entries' - x-internal: true - allOf: - - type: object - properties: - results: - type: array - items: - $ref: '#/components/schemas/AccountingJournalEntry' - - $ref: '#/components/schemas/PagingInfo' - AccountingJournalEntry: - title: 'Accounting: Journal entry' - description: |- - > **Language tip:** For the top-level record of a company's financial transactions, refer to the [Journals](https://docs.codat.io/lending-api#/schemas/Journal) data type - - ## Overview - - A journal entry report shows the entries made in a company's general ledger, or [accounts](https://docs.codat.io/lending-api#/schemas/Account), when transactions are approved. The journal line items for each journal entry should balance. - - A journal entry line item is a single transaction line on the journal entry. For example: - - - When a journal entry is recording a receipt of cash, the credit to accounts receivable and the debit to cash are separate line items. - - When a company needs to recognise revenue from an annual contract on a monthly basis, on receipt of cash for month one, they make a debit to deferred income and a credit to revenue. - - In Codat a journal entry contains details of: - - - The date on which the entry was created and posted. - - Itemised lines, including amounts and currency. - - A reference to the associated accounts. - - A reference to the underlying record. For example, the invoice, bill, or other data type that triggered the posting of the journal entry to the general ledger. - - > **Pushing journal entries** - > Codat only supports journal entries in the base currency of the company that are pushed into accounts denominated in the same base currency. - type: object - allOf: - - type: object - properties: - id: - type: string - description: Unique identifier of the journal entry for the company in the accounting software. - description: - type: string - nullable: true - description: Optional description of the journal entry. - postedOn: - $ref: '#/components/schemas/DateTime' - description: |- - Date on which the journal entry was posted to the accounting software, and had an impact on the general ledger. This may be different from the creation date. - - For example, a user creates a journal entry on Monday and saves it as draft, which has no impact on the general ledger. On Thursday, they return to the entry and post it. - - The **createdOn** date shows as Monday. - The **postedOn** date shows as Thursday. - Journal entries can also be backdated, so the **postedOn** date may be earlier than the **createdOn** date. - createdOn: - $ref: '#/components/schemas/DateTime' - description: Date on which the journal was created in the accounting software. - updatedOn: - $ref: '#/components/schemas/DateTime' - description: Date on which the journal was last updated in the accounting software. - journalRef: - $ref: '#/components/schemas/AccountingJournal/definitions/journalRef' - journalLines: - type: array - nullable: true - description: An array of journal lines. - items: - $ref: '#/components/schemas/AccountingJournalEntry/definitions/journalLine' - recordRef: - $ref: '#/components/schemas/AccountingJournalEntry/definitions/journalEntryRecordRef' - metadata: - $ref: '#/components/schemas/Metadata' - supplementalData: - $ref: '#/components/schemas/SupplementalData' - - $ref: '#/components/schemas/CommerceOrder/allOf/3' - definitions: - journalLine: - type: object - properties: - description: - type: string - nullable: true - description: Description of the journal line item. - netAmount: - type: number - format: decimal - description: 'Amount for the journal line. Debit entries are considered positive, and credit entries are considered negative.' - transactionAmount: - type: number - format: decimal - description: The amount in the original transaction currency. - currency: - type: string - nullable: true - description: Currency for the journal line item. - transactionCurrency: - type: string - nullable: true - description: Currency of the original transaction. - accountRef: - $ref: '#/components/schemas/AccountingAccount/definitions/accountRef' - tracking: - description: 'List of record refs associated with the tracking information for the line (eg to a Tracking Category, or customer etc.)' - title: Tracking - type: object - properties: - recordRefs: - type: array + accountTransactions: + $ref: '#/components/schemas/DataStatus' + nullable: true + balanceSheet: + $ref: '#/components/schemas/DataStatus' + nullable: true + bankAccounts: + $ref: '#/components/schemas/DataStatus' + nullable: true + bankTransactions: + $ref: '#/components/schemas/DataStatus' + nullable: true + billCreditNotes: + $ref: '#/components/schemas/DataStatus' + nullable: true + billPayments: + $ref: '#/components/schemas/DataStatus' + nullable: true + bills: + $ref: '#/components/schemas/DataStatus' + nullable: true + cashFlowStatement: + $ref: '#/components/schemas/DataStatus' + nullable: true + chartOfAccounts: + $ref: '#/components/schemas/DataStatus' + nullable: true + company: + $ref: '#/components/schemas/DataStatus' + nullable: true + creditNotes: + $ref: '#/components/schemas/DataStatus' + nullable: true + customers: + $ref: '#/components/schemas/DataStatus' + nullable: true + directCosts: + $ref: '#/components/schemas/DataStatus' + nullable: true + directIncomes: + $ref: '#/components/schemas/DataStatus' + nullable: true + invoices: + $ref: '#/components/schemas/DataStatus' + nullable: true + itemReceipts: + $ref: '#/components/schemas/DataStatus' + nullable: true items: - $ref: '#/components/schemas/AccountingJournalEntry/definitions/journalLine/properties/tracking/definitions/trackingRecordRef' - nullable: true - definitions: - trackingRecordRef: - type: object - title: Record reference - description: Links to the customer or tracking category. - properties: - id: - type: string - description: '''id'' of the underlying record or data type.' - dataType: - type: string - description: Name of underlying data type. - enum: - - customers - - suppliers - - trackingCategories - example: trackingCategories - contactRef: - title: Contact reference - type: object - properties: - id: - minLength: 1 - type: string - description: Unique identifier for a customer or supplier. - dataType: - type: string - nullable: true - description: Allowed name of the 'dataType'. - enum: - - customers - - suppliers - required: - - id - required: - - netAmount - journalEntryRecordRef: - type: object - title: Record reference - description: Links a journal entry to the underlying record that created it. - properties: - id: - type: string - description: '''id'' of the underlying record or data type.' - dataType: - type: string - description: Name of underlying data type. - enum: - - bankTransactions - - billCreditNotes - - billPayments - - bills - - creditNotes - - directCosts - - directIncomes - - invoices - - journalEntries - - payments - - transfers - example: transfers - AccountingJournals: - title: 'Accounting: Journals' - x-internal: true - allOf: - - type: object - properties: - results: - type: array - items: - $ref: '#/components/schemas/AccountingJournal' - - $ref: '#/components/schemas/PagingInfo' - AccountingPayment: - title: 'Accounting: Payment' - description: "\uFEFF> **Payments or bill payments?**\n>\n> In Codat, payments represent accounts receivable only. For accounts payable, see [bill payments](https://docs.codat.io/lending-api#/schemas/BillPayment). These include [bills](https://docs.codat.io/lending-api#/schemas/Bill) and credit notes against bills.\n\n## Overview\n\nPayments include all accounts receivable transaction data. This includes [invoices](https://docs.codat.io/lending-api#/schemas/Invoice) and [credit notes](https://docs.codat.io/lending-api#/schemas/CreditNote).\n\nA payment in Codat usually represents an allocation of money within any customer accounts receivable account. This includes, but is not strictly limited to:\n\n- A payment made against an invoice, like a credit card, cheque, or cash payment.\n- An allocation of a customer's credit note, either to an invoice or maybe a refund.\n- A payment made directly to that accounts receivable account. This might be an overpayment or a prepayment. It might also be the refund of a payment made directly to an accounts receivable account.\n\nDepending on the payments allowed by the underlying accounting software, some payment types may be combined. Please see the example for more details.\n\nIn Codat, a payment contains details of:\n\n- When the payment was recorded in the accounting system.\n- How much it is for and in what currency that amount is in.\n- Who the payment was _paid by_ – the _customer_.\n- The payment method used.\n- The breakdown of the types of payments – the _line items_.\n\nPayments is a child data type of [account transactions](https://docs.codat.io/lending-api#/schemas/AccountTransaction).\n\n## Payment types\n\n## Payment of an invoice\n\nA payment paying a single invoice has one entry in its `lines` array. This **line** has the following properties:\n\n- An _amount_ that indicates the amount of the invoice that was paid. This is always positive.\n- A **links** array containing one element with the following properties:\n - A **type** that indicates the type of **link**, in this case an `Invoice`.\n - An **id** that contains the ID of the invoice that was paid.\n - An **amount** for the link. The sum of the **line.amount** and the **links.amount** must equal `0`.\n\nThe **amount** field on the **line** equals the **totalAmount** on the payment.\n\n## Payment of multiple invoices\n\nA single payment can pay multiple invoices. This can be represented in one of two formats depending on how the customer keeps their books:\n\n- The payment has multiple entries in its **lines** array, one for each invoice that is paid. Each line follows the example and rules described in [Payment of an invoice](#payment-of-an-invoice).\n- The payment has a line with multiple links to each invoice. This occurs when the proportion of the original payment allocated to each invoice is not available.\n\nEach **line** has the same properties as those described in [Payment of an invoice](#payment-of-an-invoice), with the **amount** indicating how much of the payment was allocated to the invoice. The sum of line amounts equals the **totalAmount** on the payment.\n\n## Payments and refunds on account\n\nA payment on account, that is a payment that doesn’t pay a specific invoice, has one entry in its lines array. The **line** has the following properties:\n\n- A **totalAmount** that indicates the amount paid by a customer or refunded to them by a company. A payment to the customer is always negative. A refund is always positive.\n- A **links** array containing one element with the following properties:\n- A **type** that indicates the type of link. For a payment this is `PaymentOnAccount`. For a refund this is `Refund`.\n- The **id** containing the ID of the customer.\n- The **amount** for the link is `0` – the **totalAmount** _or_ the amount of the payment or refund.\n\nIt is possible to have a payment that is part _on account_ and part _allocated_ to an invoice. Each line should follow the examples above.\n\n## Using a credit note to pay an invoice\n\nThe payment of an invoice using a credit note has one entry in its **lines** array. This **line** has the following properties:\n\n- An **amount** that indicates the amount of money moved, which in this case is `0`, as the credit note and invoice allocation must balance each other.\n- A **links** array containing two elements:\n - The first **link** has:\n - A **type** that indicates the type of **link**, in this case an `Invoice`.\n - An **id** that contains the ID of the invoice that was paid.\n - The second **link** has:\n - A **type** that indicates the type of **link**, in this case a `CreditNote`.\n - An **id** that contains the ID of the credit note used by this payment.\n\nThe **amount** field on the **line** equals the **totalAmount** on the payment.\n\n## Refunding a credit note\n\nA payment refunding a credit note has one entry in its **lines** array. This **line** has the following properties:\n\n- An **amount** that indicates the amount of the credit note that was refunded. This is always negative for a refund.\n- A **links** array that contains one element with the following properties:\n - A **type** that indicates the type of **link**, in this case a `CreditNote`.\n - An **id** that contains the ID of the credit note that was refunded.\n\nThe **totalAmount** field on the payment equals the **amount** field of the **line**. These are both negative, as this is money leaving accounts receivable.\n\n## Refunding a payment\n\nIf a payment is refunded, for example, if a customer overpaid an invoice and the overpayment is returned to the customer, there are two payment records:\n\n- One for the incoming over payment.\n- Another for the outgoing refund.\n\nThe payment issuing the refund has a negative **totalAmount**. This payment also has one entry in its lines array with the following properties:\n\n- An **amount** that indicates the amount that was refunded. This is always negative.\n- A **links** array that contains one element with the following properties:\n - A **type** that indicates the type of **link**, in this case a `Payment`.\n - An **id** that contains the ID of the payment that was refunded.\n\nThe **amount** field on the **line** equals the **totalAmount** on the payment and is negative, as this is money leaving accounts receivable.\n\nThe payment that was refunded has a line where the **amount** is positive and the type of the link is `Refund`. This payment may have several entries in its **lines** array if it was used to partly pay an invoice.\n\nFor example: A £1,050 payment on a £1,000 invoice with a refund of £50 has two lines:\n\n- One for £1,000 linked to the invoice that was paid.\n- Another for £50 linked to the payment that refunded the overpayment with a** type** of `Refund` and an ID that corresponds to the payment.\n\nThe **line** linked to the payment has the following properties:\n\n- An **amount** that indicates the amount that was refunded. This is positive as its money that was added to accounts receivable. It's balanced out by the negative amount of the refund.\n- A **links** array containing one element with the following properties:\n - A **type** that indicates the type of **link**, in this case a `Refund`.\n - An **id** that contains the ID of the payment that refunded this line.\n\n> **Support for linked payments**\n>\n> Not all accounting software support linking payments in this way. In some platforms, you may see a payment on account and a refund on account.\n\n## Foreign currencies\n\nThere are two types of currency rate that are included in the payments data type:\n\nPayment currency rate:\n\n- Base currency of the accounts receivable account.\n- Foreign currency of the payment.\n\nPayment line link currency rate:\n\n- Base currency of the item the link represents.\n- Foreign currency of the payment.\n\nThese two rates allow the calculation of currency loss or gain for any of the transactions affected by the payment lines. The second rate is used when a payment is applied to an item in a currency that doesn't match either:\n\n- The base currency for the accounts receivable account.\n- The currency of the item.\n\n ```json title=\"Currency rate example\"\n {\n \"id\": \"123\",\n \"note\": \"\",\n \"totalAmount\": 99.99,\n \"currency\": \"GBP\",\n \"lines\": [\n {\n \"amount\": 99.99,\n \"links\": [\n {\n \"type\": \"Invoice\",\n \"id\": \"178\",\n \"amount\": -50,\n \"currencyRate\": 1.9998\n }\n ]\n }\n ]\n }\n ```\n\n\n\n## Example data\n\n> **Object properties**\n>\n> For the sake of brevity, the examples here may omit properties from objects. For the full object definition, see [Payments](https://api.codat.io/swagger/index.html#/Payments).\n\n## Simple examples\n\n ```json title=\"Payment for invoice\"\n {\n \"totalAmount\": 1000,\n \"lines\": [\n {\n \"amount\" : 1000,\n \"links\" : [\n {\n \"type\" : \"Invoice\",\n \"id\" : \"x\",\n \"amount\" : -1000\n }\n ]\n }\n ]\n }\n ```\n\n\n\n ```json title=\"Allocation of credit note\"\n {\n \"totalAmount\": 0,\n \"lines\": [\n {\n \"amount\" : 0,\n \"links\" : [\n {\n \"type\" : \"Invoice\",\n \"id\" : \"x\",\n \"amount\" : -1000\n },\n {\n \"type\" : \"CreditNote\",\n \"id\" : \"y\",\n \"amount\" : 1000\n }\n ]\n }\n ]\n }\n ```\n\n\n\n ```json title=\"Payment of invoice and payment on account\"\n {\n \"totalAmount\": 2000,\n \"lines\": [\n {\n \"amount\" : 1000,\n \"links\" : [\n {\n \"type\" : \"Invoice\",\n \"id\" : \"x\",\n \"amount\" : -1000\n }\n ]\n },\n {\n \"amount\" : 1000,\n \"links\" : [\n {\n \"type\" : \"PaymentOnAccount\",\n \"id\" : \"y\",\n \"amount\" : -1000\n }\n ]\n }\n ]\n }\n ```\n\n\n\n ```json title=\"Refund of credit note\"\n {\n \"totalAmount\": -1000,\n \"lines\": [\n {\n \"amount\" : -1000,\n \"links\" : [\n {\n \"type\" : \"CreditNote\",\n \"id\" : \"y\",\n \"amount\" : 1000\n }\n ]\n }\n ]\n }\n ```\n\n\n\n ```json title=\"Refund on accounts receivable account\"\n {\n \"totalAmount\": -1000,\n \"lines\": [\n {\n \"amount\" : -1000,\n \"links\" : [\n {\n \"type\" : \"PaymentOnAccount\",\n \"id\" : \"y\",\n \"amount\" : 1000\n }\n ]\n }\n ]\n }\n ```\n\n\n\n ```json title=\"Linked refund on accounts receivable account\"\n {\n \"id\" : \"payment-001\",\n \"totalAmount\": 1000,\n \"lines\": [\n {\n \"amount\" : 1000,\n \"links\" : [\n {\n \"type\" : \"Refund\",\n \"id\" : \"refund-001\",\n \"amount\" : -1000\n }\n ]\n }\n ]\n }\n {\n \"id\" : \"refund-001\",\n \"totalAmount\": -1000,\n \"lines\": [\n {\n \"amount\" : -1000,\n \"links\" : [\n {\n \"type\" : \"Payment\",\n \"id\" : \"payment-001\",\n \"amount\" : 1000\n }\n ]\n }\n ]\n }\n ```\n\n\n\n ```json title=\"Using a credit note and cash to pay an invoice\"\n {\n \"totalAmount\": 250,\n \"lines\": [\n {\n \"amount\": 0,\n \"links\": [\n {\n \"type\": \"Invoice\",\n \"id\": \"x\",\n \"amount\": -750\n }, \n {\n \"type\": \"CreditNote\",\n \"id\": \"y\",\n \"amount\": 750\n }\n ]\n },\n {\n \"amount\": 250,\n \"links\": [\n {\n \"type\": \"Invoice\",\n \"id\": \"x\",\n \"amount\": -250\n }\n ]\n }\n ]\n }\n ```\n\n\n\n## Complex examples\n\n ```json title=\"Use two credit notes and 1000 in to \"bank\" (cash, cheque etc.) to pay invoice\"\n {\n \"totalAmount\": 1000,\n \"lines\": [\n {\n \"amount\" : 0,\n \"links\" : [\n {\n \"type\" : \"Invoice\",\n \"id\" : \"x\",\n \"amount\" : -1000\n },\n {\n \"type\" : \"CreditNote\",\n \"id\" : \"y\",\n \"amount\" : 1000\n }\n ]\n },\n {\n \"amount\" : 0,\n \"links\" : [\n {\n \"type\" : \"Invoice\",\n \"id\" : \"x\",\n \"amount\" : -1000\n },\n {\n \"type\" : \"CreditNote\",\n \"id\" : \"z\",\n \"amount\" : 1000\n }\n ]\n },\n {\n \"amount\" : 1000,\n \"links\" : [\n {\n \"type\" : \"Invoice\",\n \"id\" : \"x\",\n \"amount\" : -1000\n }\n ]\n }\n ]\n }\n ```\n\n\n\n ```json title=\"Pay an invoice with two credit notes and cash, with 1000 left 'on account'\"\n {\n \"totalAmount\": 2000,\n \"lines\": [\n {\n \"amount\" : 0,\n \"links\" : [\n {\n \"type\" : \"Invoice\",\n \"id\" : \"x\",\n \"amount\" : -1000\n },\n {\n \"type\" : \"CreditNote\",\n \"id\" : \"y\",\n \"amount\" : 1000\n }\n ]\n },\n {\n \"amount\" : 0,\n \"links\" : [\n {\n \"type\" : \"Invoice\",\n \"id\" : \"x\",\n \"amount\" : -1000\n },\n {\n \"type\" : \"CreditNote\",\n \"id\" : \"z\",\n \"amount\" : 1000\n }\n ]\n },\n {\n \"amount\" : 1000,\n \"links\" : [\n {\n \"type\" : \"Invoice\",\n \"id\" : \"x\",\n \"amount\" : -1000\n }\n ]\n },\n {\n \"amount\" : 1000,\n \"links\" : [\n {\n \"type\" : \"PaymentOnAccount\",\n \"id\" : \"customer-001\",\n \"amount\" : -1000\n }\n ]\n }\n ]\n }\n ```\n\n\n\n ```json title=\"Two credit notes pay two invoices with no allocation amount specified\"\n {\n \"totalAmount\": 0,\n \"lines\": [\n {\n \"amount\" : 0,\n \"links\" : [\n {\n \"type\" : \"Invoice\",\n \"id\" : \"w\",\n \"amount\" : -1000\n },\n {\n \"type\" : \"Invoice\",\n \"id\" : \"x\",\n \"amount\" : -1000\n },\n {\n \"type\" : \"CreditNote\",\n \"id\" : \"y\",\n \"amount\" : 1000\n },\n {\n \"type\" : \"CreditNote\",\n \"id\" : \"z\",\n \"amount\" : 1000\n }\n ]\n }\n ]\n }\n ```\n\n\n\n ```json title=\"Two credit notes and cash pay three invoices with no allocation amount specified, and refund cash\"\n {\n \"totalAmount\": 2000,\n \"lines\": [\n {\n \"amount\" : 1000,\n \"links\" : [\n {\n \"type\" : \"Invoice\",\n \"id\" : \"w\",\n \"amount\" : -1000\n },\n {\n \"type\" : \"Invoice\",\n \"id\" : \"x\",\n \"amount\" : -1000\n },\n {\n \"type\" : \"Invoice\",\n \"id\" : \"u\",\n \"amount\" : -1000\n },\n {\n \"type\" : \"CreditNote\",\n \"id\" : \"y\",\n \"amount\" : 1000\n },\n {\n \"type\" : \"CreditNote\",\n \"id\" : \"z\",\n \"amount\" : 1000\n }\n ]\n },\n {\n \"amount\" : 1000,\n \"links\" : [\n {\n \"type\" : \"Refund\",\n \"id\" : \"refund-001\",\n \"amount\" : -1000\n }\n ]\n }\n ]\n }\n {\n \"id\" : \"refund-001\",\n \"totalAmount\": -1000,\n \"lines\": [\n {\n \"amount\" : -1000,\n \"links\" : [\n {\n \"type\" : \"Payment\",\n \"id\" : \"payment-001\",\n \"amount\" : 1000\n }\n ]\n }\n ]\n }\n ```\n\n\n\nIn this example, a payment on account is used to pay the same invoice in January and again in February.\n\n ```json title=\"January\"\n {\n \"id\": \"001\",\n \"totalAmount\": 5000,\n \"date\" : \"1901-01-01\",\n \"lines\": [\n {\n \"amount\" : 1000,\n \"links\" : [\n {\n \"type\" : \"Invoice\",\n \"id\" : \"Invoice-x\",\n \"amount\" : -1000\n }\n ]\n },\n {\n \"amount\" : 4000,\n \"links\" : [\n {\n \"type\" : \"PaymentOnAccount\",\n \"id\" : \"PaymentOnAccount-y\",\n \"amount\" : -4000\n }\n ]\n }\n ]\n }\n ```\n\n\n\n ```json title=\"February\"\n {\n \"id\": \"001\",\n \"totalAmount\": 5000,\n \"date\" : \"1901-02-01\",\n \"lines\": [\n {\n \"amount\" : 1000,\n \"links\" : [\n {\n \"type\" : \"Invoice\",\n \"id\" : \"Invoice-x\",\n \"amount\" : -1000\n }\n ]\n },\n {\n \"amount\" : 1000,\n \"links\" : [\n {\n \"type\" : \"Invoice\",\n \"id\" : \"Invoice-y\",\n \"amount\" : -1000\n }\n ]\n },\n {\n \"amount\" : 3000,\n \"links\" : [\n {\n \"type\" : \"PaymentOnAccount\",\n \"id\" : \"PaymentOnAccount-y\",\n \"amount\" : -3000\n }\n ]\n }\n ]\n }\n ```\n\n\n\n ```json title=\"Two credit notes and some cash pay two invoices with no allocations specified\"\n {\n \"totalAmount\": 500,\n \"lines\": [\n {\n \"amount\": 500,\n \"links\": [{\n \"type\": \"Invoice\",\n \"id\": \"a\",\n \"amount\": -1000\n }, {\n \"type\": \"Invoice\",\n \"id\": \"b\",\n \"amount\": -1000\n }, {\n \"type\": \"CreditNote\",\n \"id\": \"y\",\n \"amount\": 750\n },{\n \"type\": \"CreditNote\",\n \"id\": \"z\",\n \"amount\": 750\n }\n ]\n }\n ]\n }\n ```" - type: object - allOf: - - type: object - properties: - id: - type: string - description: 'Identifier for the payment, unique to the company in the accounting software.' - customerRef: - $ref: '#/components/schemas/AccountingCustomer/definitions/accountingCustomerRef' - description: Customer the payment is recorded against in the accounting software. - accountRef: - $ref: '#/components/schemas/AccountingAccount/definitions/accountRef' - description: Account the payment is recorded against in the accounting software. - paymentMethodRef: - $ref: '#/components/schemas/PaymentMethodRef' - description: The Payment Method to which the payment is linked in the accounting software. - totalAmount: - type: number - format: decimal - description: Amount of the payment in the payment currency. This value should never change and represents the amount of money paid into the customer's account. - currency: - $ref: '#/components/schemas/SourceAccount/properties/currency' - description: ISO currency code recorded for the payment in the accounting software. - currencyRate: - $ref: '#/components/schemas/AccountingPaymentAllocation/definitions/paymentAllocationPayment/properties/currencyRate' - date: - $ref: '#/components/schemas/DateTime' - description: Date the payment was recorded in the accounting software. - note: - type: string - nullable: true - description: Any additional information associated with the payment. - lines: - type: array - nullable: true - description: An array of payment lines. - items: - $ref: '#/components/schemas/AccountingPayment/definitions/paymentLine' - reference: - type: string - nullable: true - description: Friendly reference for the payment. - metadata: - $ref: '#/components/schemas/Metadata' - supplementalData: - $ref: '#/components/schemas/SupplementalData' - - $ref: '#/components/schemas/CommerceOrder/allOf/3' - required: - - date - definitions: - paymentLine: - title: Payment Line - type: object - properties: - amount: - type: number - format: decimal - description: Amount in the payment currency. - links: - type: array - nullable: true - items: - $ref: '#/components/schemas/AccountingPayment/definitions/paymentLineLink' - allocatedOnDate: - $ref: '#/components/schemas/DateTime' - description: The date the payment was allocated. - required: - - amount - paymentLineLink: - title: Payment Line Link - type: object - additionalProperties: false - properties: - type: - $ref: '#/components/schemas/AccountingPayment/definitions/paymentLinkType' - id: - type: string - description: Unique identifier of the transaction represented by the link. - amount: - type: number - format: decimal - nullable: true - description: |- - Amount by which the balance of the linked entity is altered, in the currency of the linked entity. - A negative link amount _reduces_ the outstanding amount on the accounts receivable account. - A positive link amount _increases_ the outstanding amount on the accounts receivable account. - currencyRate: - $ref: '#/components/schemas/AccountingPaymentAllocation/definitions/paymentAllocationPayment/properties/currencyRate' - required: - - type - paymentLinkType: - title: Payment Link Type - type: string - enum: - - Unknown - - Unlinked - - Invoice - - CreditNote - - Other - - Refund - - Payment - - PaymentOnAccount - - ManualJournal - - Discount - description: |- - Types of payment line links, either: - `Unknown` - `Unlinked` - Not used - `Invoice` - ID refers to the invoice - `CreditNote` - ID refers to the credit note - `Refund` - ID refers to the sibling payment - `Payment` - ID refers to the sibling payment - `PaymentOnAccount` - ID refers to the customer - `Other` - ID refers to the customer - `Manual Journal` - `Discount` - ID refers to the payment - AccountingPaymentAllocation: - title: 'Accounting: Payment allocation' - type: object - properties: - payment: - $ref: '#/components/schemas/AccountingPaymentAllocation/definitions/paymentAllocationPayment' - allocation: - type: object - properties: - currency: - $ref: '#/components/schemas/SourceAccount/properties/currency' - description: The currency of the transaction. - currencyRate: - $ref: '#/components/schemas/AccountingPaymentAllocation/definitions/paymentAllocationPayment/properties/currencyRate' - allocatedOnDate: - $ref: '#/components/schemas/DateTime' - description: The date the payment was allocated. - totalAmount: - type: number - format: decimal - description: The total amount that has been allocated. - required: - - payment - - allocation - definitions: - paymentAllocationPayment: - type: object - properties: - id: - type: string - description: Identifier of the allocated payment. - note: - type: string - nullable: true - description: Notes attached to the allocated payment. - reference: - type: string - nullable: true - description: Reference to the allocated payment. - accountRef: - $ref: '#/components/schemas/AccountingAccount/definitions/accountRef' - description: The account that the allocated payment is made from or to. - currency: - $ref: '#/components/schemas/SourceAccount/properties/currency' - description: Currency the payment has been made in. - currencyRate: - title: Currency rate - type: number - format: decimal - nullable: true - description: |- - Rate to convert the total amount of the payment into the base currency for the company at the time of the payment. - - Currency rates in Codat are implemented as the multiple of foreign currency units to each base currency unit. - - It is not possible to perform the currency conversion with two or more non-base currencies participating in the transaction. For example, if a company's base currency is USD, and it has a bill issued in EUR, then the bill payment must happen in USD or EUR. - - Where the currency rate is provided by the underlying accounting software, it will be available from Codat with the same precision (up to a maximum of 9 decimal places). - - For accounting software which do not provide an explicit currency rate, it is calculated as `baseCurrency / foreignCurrency` and will be returned to 9 decimal places. - - ## Examples with base currency of GBP - - | Foreign Currency | Foreign Amount | Currency Rate | Base Currency Amount (GBP) | - | :--------------- | :------------- | :------------ | :------------------------- | - | **USD** | $20 | 0.781 | £15.62 | - | **EUR** | €20 | 0.885 | £17.70 | - | **RUB** | ₽20 | 0.011 | £0.22 | - - ## Examples with base currency of USD - - | Foreign Currency | Foreign Amount | Currency Rate | Base Currency Amount (USD) | - | :--------------- | :------------- | :------------ | :------------------------- | - | **GBP** | £20 | 1.277 | $25.54 | - | **EUR** | €20 | 1.134 | $22.68 | - | **RUB** | ₽20 | 0.015 | $0.30 | - - - ### Integration-specific details - - | Integration | Scenario | System behavior | - |-------------------|-------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------| - | QuickBooks Online | Transaction currency differs from base currency | If currency rate value is left `null`, a rate of 1 will be used by QBO by default. To override this, specify a currencyRate in the request body. | - paidOnDate: - $ref: '#/components/schemas/DateTime' - description: The date the payment was paid. - totalAmount: - type: number - format: decimal - description: Total amount that was paid. - AccountingPaymentMethod: - title: 'Accounting: Payment method' + $ref: '#/components/schemas/DataStatus' + nullable: true + journalEntries: + $ref: '#/components/schemas/DataStatus' + nullable: true + journals: + $ref: '#/components/schemas/DataStatus' + nullable: true + paymentMethods: + $ref: '#/components/schemas/DataStatus' + nullable: true + payments: + $ref: '#/components/schemas/DataStatus' + nullable: true + profitAndLoss: + $ref: '#/components/schemas/DataStatus' + nullable: true + purchaseOrders: + $ref: '#/components/schemas/DataStatus' + nullable: true + salesOrders: + $ref: '#/components/schemas/DataStatus' + nullable: true + suppliers: + $ref: '#/components/schemas/DataStatus' + nullable: true + taxRates: + $ref: '#/components/schemas/DataStatus' + nullable: true + trackingCategories: + $ref: '#/components/schemas/DataStatus' + nullable: true + transfers: + $ref: '#/components/schemas/DataStatus' + nullable: true + banking-accountBalances: + $ref: '#/components/schemas/DataStatus' + nullable: true + banking-accounts: + $ref: '#/components/schemas/DataStatus' + nullable: true + banking-transactionCategories: + $ref: '#/components/schemas/DataStatus' + nullable: true + banking-transactions: + $ref: '#/components/schemas/DataStatus' + nullable: true + commerce-companyInfo: + $ref: '#/components/schemas/DataStatus' + nullable: true + commerce-customers: + $ref: '#/components/schemas/DataStatus' + nullable: true + commerce-disputes: + $ref: '#/components/schemas/DataStatus' + nullable: true + commerce-locations: + $ref: '#/components/schemas/DataStatus' + nullable: true + commerce-orders: + $ref: '#/components/schemas/DataStatus' + nullable: true + commerce-paymentMethods: + $ref: '#/components/schemas/DataStatus' + nullable: true + commerce-payments: + $ref: '#/components/schemas/DataStatus' + nullable: true + commerce-productCategories: + $ref: '#/components/schemas/DataStatus' + nullable: true + commerce-products: + $ref: '#/components/schemas/DataStatus' + nullable: true + commerce-taxComponents: + $ref: '#/components/schemas/DataStatus' + nullable: true + commerce-transactions: + $ref: '#/components/schemas/DataStatus' + nullable: true + examples: + Example: + value: + accountTransactions: + dataType: accountTransactions + lastSuccessfulSync: '2022-01-01T00:00:00.000Z' + currentStatus: Complete + latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 + latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f + balanceSheet: + dataType: balanceSheet + lastSuccessfulSync: '2022-01-01T00:00:00.000Z' + currentStatus: Complete + latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 + latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f + bankAccounts: + dataType: bankAccounts + lastSuccessfulSync: '2022-01-01T00:00:00.000Z' + currentStatus: Complete + latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 + latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f + bankTransactions: + dataType: bankTransactions + lastSuccessfulSync: '2022-01-01T00:00:00.000Z' + currentStatus: Complete + latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 + latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f + billCreditNotes: + dataType: billCreditNotes + lastSuccessfulSync: '2022-01-01T00:00:00.000Z' + currentStatus: Complete + latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 + latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f + billPayments: + dataType: billPayments + lastSuccessfulSync: '2022-01-01T00:00:00.000Z' + currentStatus: Complete + latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 + latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f + bills: + dataType: bills + lastSuccessfulSync: '2022-01-01T00:00:00.000Z' + currentStatus: Complete + latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 + latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f + cashFlowStatement: + dataType: cashFlowStatement + lastSuccessfulSync: '2022-01-01T00:00:00.000Z' + currentStatus: Complete + latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 + latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f + chartOfAccounts: + dataType: chartOfAccounts + lastSuccessfulSync: '2022-01-01T00:00:00.000Z' + currentStatus: Complete + latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 + latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f + company: + dataType: company + lastSuccessfulSync: '2022-01-01T00:00:00.000Z' + currentStatus: Complete + latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 + latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f + creditNotes: + dataType: creditNotes + lastSuccessfulSync: '2022-01-01T00:00:00.000Z' + currentStatus: Complete + latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 + latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f + customers: + dataType: customers + lastSuccessfulSync: '2022-01-01T00:00:00.000Z' + currentStatus: Complete + latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 + latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f + directCosts: + dataType: directCosts + lastSuccessfulSync: '2022-01-01T00:00:00.000Z' + currentStatus: Complete + latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 + latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f + directIncomes: + dataType: directIncomes + lastSuccessfulSync: '2022-01-01T00:00:00.000Z' + currentStatus: Complete + latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 + latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f + invoices: + dataType: invoices + lastSuccessfulSync: '2022-01-01T00:00:00.000Z' + currentStatus: Complete + latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 + latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f + itemReceipts: + dataType: itemReceipts + lastSuccessfulSync: '2022-01-01T00:00:00.000Z' + currentStatus: Complete + latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 + latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f + items: + dataType: items + lastSuccessfulSync: '2022-01-01T00:00:00.000Z' + currentStatus: Complete + latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 + latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f + journalEntries: + dataType: journalEntries + lastSuccessfulSync: '2022-01-01T00:00:00.000Z' + currentStatus: Complete + latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 + latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f + journals: + dataType: journals + lastSuccessfulSync: '2022-01-01T00:00:00.000Z' + currentStatus: Complete + latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 + latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f + paymentMethods: + dataType: paymentMethods + lastSuccessfulSync: '2022-01-01T00:00:00.000Z' + currentStatus: Complete + latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 + latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f + payments: + dataType: payments + lastSuccessfulSync: '2022-01-01T00:00:00.000Z' + currentStatus: Complete + latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 + latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f + profitAndLoss: + dataType: profitAndLoss + lastSuccessfulSync: '2022-01-01T00:00:00.000Z' + currentStatus: Complete + latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 + latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f + purchaseOrders: + dataType: purchaseOrders + lastSuccessfulSync: '2022-01-01T00:00:00.000Z' + currentStatus: Complete + latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 + latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f + salesOrders: + dataType: salesOrders + lastSuccessfulSync: '2022-01-01T00:00:00.000Z' + currentStatus: Complete + latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 + latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f + suppliers: + dataType: suppliers + lastSuccessfulSync: '2022-01-01T00:00:00.000Z' + currentStatus: Complete + latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 + latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f + taxRates: + dataType: taxRates + lastSuccessfulSync: '2022-01-01T00:00:00.000Z' + currentStatus: Complete + latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 + latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f + trackingCategories: + dataType: trackingCategories + lastSuccessfulSync: '2022-01-01T00:00:00.000Z' + currentStatus: Complete + latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 + latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f + transfers: + dataType: transfers + lastSuccessfulSync: '2022-01-01T00:00:00.000Z' + currentStatus: Complete + latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 + latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f + banking-accountBalances: + dataType: banking-accountBalances + lastSuccessfulSync: '2022-01-01T00:00:00.000Z' + currentStatus: Complete + latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 + latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f + banking-accounts: + dataType: banking-accounts + lastSuccessfulSync: '2022-01-01T00:00:00.000Z' + currentStatus: Complete + latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 + latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f + banking-transactionCategories: + dataType: banking-transactionCategories + lastSuccessfulSync: '2022-01-01T00:00:00.000Z' + currentStatus: Complete + latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 + latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f + banking-transactions: + dataType: banking-transactions + lastSuccessfulSync: '2022-01-01T00:00:00.000Z' + currentStatus: Complete + latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 + latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f + commerce-companyInfo: + dataType: commerce-companyInfo + lastSuccessfulSync: '2022-01-01T00:00:00.000Z' + currentStatus: Complete + latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 + latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f + commerce-customers: + dataType: commerce-customers + lastSuccessfulSync: '2022-01-01T00:00:00.000Z' + currentStatus: Complete + latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 + latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f + commerce-disputes: + dataType: commerce-disputes + lastSuccessfulSync: '2022-01-01T00:00:00.000Z' + currentStatus: Complete + latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 + latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f + commerce-locations: + dataType: commerce-locations + lastSuccessfulSync: '2022-01-01T00:00:00.000Z' + currentStatus: Complete + latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 + latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f + commerce-orders: + dataType: commerce-orders + lastSuccessfulSync: '2022-01-01T00:00:00.000Z' + currentStatus: Complete + latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 + latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f + commerce-paymentMethods: + dataType: commerce-paymentMethods + lastSuccessfulSync: '2022-01-01T00:00:00.000Z' + currentStatus: Complete + latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 + latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f + commerce-payments: + dataType: commerce-payments + lastSuccessfulSync: '2022-01-01T00:00:00.000Z' + currentStatus: Complete + latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 + latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f + commerce-productCategories: + dataType: commerce-productCategories + lastSuccessfulSync: '2022-01-01T00:00:00.000Z' + currentStatus: Complete + latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 + latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f + commerce-products: + dataType: commerce-products + lastSuccessfulSync: '2022-01-01T00:00:00.000Z' + currentStatus: Complete + latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 + latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f + commerce-taxComponents: + dataType: commerce-taxComponents + lastSuccessfulSync: '2022-01-01T00:00:00.000Z' + currentStatus: Complete + latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 + latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f + commerce-transactions: + dataType: commerce-transactions + lastSuccessfulSync: '2022-01-01T00:00:00.000Z' + currentStatus: Complete + latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 + latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f + '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' + '/companies/{companyId}/data/queue/{dataType}': + parameters: + - $ref: '#/components/parameters/companyId' + - $ref: '#/components/parameters/dataType' + post: + summary: Refresh data type + operationId: refresh-data-type description: |- - ## Overview + Refreshes a given data type for a given company. - A Payment Method represents the payment method(s) used to pay a Bill. Payment Methods are referenced on [Bill Payments](https://docs.codat.io/lending-api#/schemas/BillPayment) and [Payments](https://docs.codat.io/lending-api#/schemas/Payment). - type: object - allOf: - - type: object - properties: - id: - type: string - description: Unique identifier for the payment method. - name: - type: string - nullable: true - description: Name of the payment method. - type: - $ref: '#/components/schemas/AccountingPaymentMethod/definitions/paymentMethodType' - status: - $ref: '#/components/schemas/CommercePaymentMethod/allOf/1/properties/status' - metadata: - $ref: '#/components/schemas/Metadata' - - $ref: '#/components/schemas/CommerceOrder/allOf/3' - definitions: - paymentMethodType: - description: Method of payment. + This is an asynchronous operation, and will bring updated data into Codat from the linked integration for you to view. + tags: + - Manage data + parameters: + - schema: + type: string + format: uuid + in: query + name: connectionId + description: 'Optionally, provide a data connection id to only queue pull operations on that connection.' + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/PullOperation' + '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' + '/companies/{companyId}/data/history': + parameters: + - $ref: '#/components/parameters/companyId' + get: + summary: List pull operations + tags: + - Manage data + operationId: list-pull-operations + x-speakeasy-name-override: list-pull-operations + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/PullOperations' + examples: + Example: + value: + results: + - id: 97d60846-f07a-4d42-b5a0-0bdcc6ebf56b + companyId: 4645bd78-8988-45bc-ac9e-67ba5df6e4e5 + connectionId: 51baa045-4836-4317-a42e-3542e991e581 + dataType: invoices + status: Initial + requested: '2022-11-14T11:18:37.2798351Z' + progress: 10 + isCompleted: false + isErrored: false + _links: + current: + href: /companies/17129e41-5389-4f10-ac06-e0a37e47d177/data/history?page=1&pageSize=2 + self: + href: /companies/17129e41-5389-4f10-ac06-e0a37e47d177/data/history + next: + href: /companies/17129e41-5389-4f10-ac06-e0a37e47d177/data/history?page=2&pageSize=2 + pageNumber: 0 + pageSize: 0 + totalResults: 0 + '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 the pull operation history (datasets) for a given company. + parameters: + - $ref: '#/components/parameters/page' + - $ref: '#/components/parameters/pageSize' + - $ref: '#/components/parameters/query' + - $ref: '#/components/parameters/orderBy' + '/companies/{companyId}/data/history/{datasetId}': + parameters: + - $ref: '#/components/parameters/companyId' + - name: datasetId + in: path + required: true + schema: type: string - enum: - - Unknown - - Cash - - Check - - CreditCard - - DebitCard - - BankTransfer - - Other - AccountingPayments: - title: 'Accounting: Payments' - x-internal: true - allOf: - - type: object - properties: - results: - type: array - items: - $ref: '#/components/schemas/AccountingPayment' - - $ref: '#/components/schemas/PagingInfo' - AccountingProfitAndLossReport: - title: 'Accounting: Profit and loss report' + format: uuid + description: Unique identifier for the dataset that completed its sync. + description: Unique identifier for the dataset that completed its sync. + get: + summary: Get pull operation + operationId: get-pull-operation + x-speakeasy-name-override: get-pull-operation + tags: + - Manage data + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/PullOperation' + examples: {} + '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: Retrieve information about a single dataset or pull operation. + '/companies/{companyId}/push': + parameters: + - $ref: '#/components/parameters/companyId' + get: + parameters: + - $ref: '#/components/parameters/page' + - $ref: '#/components/parameters/pageSize' + - $ref: '#/components/parameters/query' + - $ref: '#/components/parameters/orderBy' + summary: List push operations + tags: + - Push operations + operationId: list-push-operations + description: List push operation records. + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/PushOperations' + examples: {} + '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' + '/companies/{companyId}/push/{pushOperationKey}': + parameters: + - $ref: '#/components/parameters/companyId' + - schema: + type: string + format: uuid + name: pushOperationKey + in: path + required: true + description: Push operation key. + get: + summary: Get push operation + tags: + - Push operations + operationId: get-push-operation + description: Retrieve push operation. + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/PushOperation' + examples: {} + '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' + '/companies/{companyId}/connections/{connectionId}/push/accounts': + parameters: + - $ref: '#/components/parameters/companyId' + - $ref: '#/components/parameters/connectionId' + post: + tags: + - Accounts + summary: Create account + parameters: + - $ref: '#/components/parameters/timeoutInMinutes' + - $ref: '#/components/parameters/allowSyncOnPushComplete' + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Account/definitions/accountPrototype' + responses: + '200': + description: Success + content: + application/json: + schema: + $ref: '#/components/schemas/CreateAccountResponse' + examples: {} + '400': + $ref: '#/components/responses/BadRequest' + '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: |- + The *Create account* endpoint creates a new [account](https://docs.codat.io/sync-for-expenses-api#/schemas/Account) for a given company's connection. + + [Accounts](https://docs.codat.io/sync-for-expenses-api#/schemas/Account) are the categories a business uses to record accounting transactions. + + **Integration-specific behavior** + + Required data may vary by integration. To see what data to post, first call [Get create account model](https://docs.codat.io/sync-for-expenses-api#/operations/get-create-chartOfAccounts-model). + operationId: create-account + '/companies/{companyId}/connections/{connectionId}/options/chartOfAccounts': + parameters: + - $ref: '#/components/parameters/companyId' + - $ref: '#/components/parameters/connectionId' + get: + summary: Get create account model + tags: + - Accounts + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/PushOption' + examples: + Exact (Netherlands): + value: + type: Object + displayName: Nominal Account + description: Nominal Accounts are the categories a business uses to record transactions + properties: + nominalCode: + type: String + displayName: Nominal Code + description: The external reference given to each nominal account for a business + required: true + validation: + warnings: [] + information: + - field: NominalCode + details: Must be provided. + name: + type: String + displayName: Name + description: Name of the account + required: true + validation: + warnings: [] + information: + - field: Name + details: Must be provided. + fullyQualifiedCategory: + type: String + displayName: Fully Qualified Category + description: The full category of the account e.g. Liability.Current or Income.Revenue + options: + - value: Asset.Assets.Cash + type: String + displayName: Asset.Assets.Cash + required: false + - value: Asset.Assets.Bank + type: String + displayName: Asset.Assets.Bank + required: false + - value: Asset.Assets.PaymentServices + type: String + displayName: Asset.Assets.PaymentServices + required: false + - value: Asset.Assets.AccountsReceivable + type: String + displayName: Asset.Assets.AccountsReceivable + required: false + - value: Liability.EquityAndLiabilities.AccountsPayable + type: String + displayName: Liability.EquityAndLiabilities.AccountsPayable + required: false + - value: Asset.Assets.VAT + type: String + displayName: Asset.Assets.VAT + required: false + - value: Liability.EquityAndLiabilities.EmployeesPayable + type: String + displayName: Liability.EquityAndLiabilities.EmployeesPayable + required: false + - value: Asset.Assets.PrepaidExpenses + type: String + displayName: Asset.Assets.PrepaidExpenses + required: false + - value: Liability.EquityAndLiabilities.AccruedExpenses + type: String + displayName: Liability.EquityAndLiabilities.AccruedExpenses + required: false + - value: Liability.EquityAndLiabilities.IncomeTaxesPayable + type: String + displayName: Liability.EquityAndLiabilities.IncomeTaxesPayable + required: false + - value: Asset.Assets.FixedAssets + type: String + displayName: Asset.Assets.FixedAssets + required: false + - value: Asset.Assets.OtherAssets + type: String + displayName: Asset.Assets.OtherAssets + required: false + - value: Asset.Assets.AccumulatedDeprecation + type: String + displayName: Asset.Assets.AccumulatedDeprecation + required: false + - value: Asset.Assets.Inventory + type: String + displayName: Asset.Assets.Inventory + required: false + - value: Equity.EquityAndLiabilities.CapitalStock + type: String + displayName: Equity.EquityAndLiabilities.CapitalStock + required: false + - value: Equity.EquityAndLiabilities.RetainedEarnings + type: String + displayName: Equity.EquityAndLiabilities.RetainedEarnings + required: false + - value: Liability.EquityAndLiabilities.LongTermDebt + type: String + displayName: Liability.EquityAndLiabilities.LongTermDebt + required: false + - value: Liability.EquityAndLiabilities.CurrentPortionOfDebt + type: String + displayName: Liability.EquityAndLiabilities.CurrentPortionOfDebt + required: false + - value: Unknown.EquityAndLiabilities.Intercompany + type: String + displayName: Unknown.EquityAndLiabilities.Intercompany + required: false + - value: Unknown.General.General + type: String + displayName: Unknown.General.General + required: false + - value: Income.NetIncome.Revenue + type: String + displayName: Income.NetIncome.Revenue + required: false + - value: Expense.NetIncome.CostOfGoods + type: String + displayName: Expense.NetIncome.CostOfGoods + required: false + - value: Expense.NetIncome.OtherCosts + type: String + displayName: Expense.NetIncome.OtherCosts + required: false + - value: Expense.NetIncome.SalesGeneralAdministrativeExpenses + type: String + displayName: Expense.NetIncome.SalesGeneralAdministrativeExpenses + required: false + - value: Expense.NetIncome.DeprecationCosts + type: String + displayName: Expense.NetIncome.DeprecationCosts + required: false + - value: Expense.NetIncome.ResearchAndDevelopment + type: String + displayName: Expense.NetIncome.ResearchAndDevelopment + required: false + - value: Expense.NetIncome.EmployeeCosts + type: String + displayName: Expense.NetIncome.EmployeeCosts + required: false + - value: Expense.NetIncome.EmploymentCosts + type: String + displayName: Expense.NetIncome.EmploymentCosts + required: false + - value: Expense.ExceptionalIncome.ExceptionalCosts + type: String + displayName: Expense.ExceptionalIncome.ExceptionalCosts + required: false + - value: Income.ExceptionalIncome.ExceptionalIncome + type: String + displayName: Income.ExceptionalIncome.ExceptionalIncome + required: false + - value: Expense.ExceptionalIncome.IncomeTaxes + type: String + displayName: Expense.ExceptionalIncome.IncomeTaxes + required: false + - value: Income.ExceptionalIncome.InterestIncome + type: String + displayName: Income.ExceptionalIncome.InterestIncome + required: false + required: true + validation: + warnings: [] + information: + - field: FullyQualifiedCategory + details: Must be provided. + status: + type: String + displayName: Account Status + description: The status of the account + options: + - value: Active + type: String + displayName: Active + required: false + - value: Pending + type: String + displayName: Pending + required: false + - value: Unknown + type: String + displayName: Unknown + required: false + required: true + validation: + warnings: [] + information: + - field: Status + details: Must be provided. + required: true + Exact (UK): + value: + type: Object + displayName: Nominal Account + description: Nominal Accounts are the categories a business uses to record transactions + properties: + nominalCode: + type: String + displayName: Nominal Code + description: The external reference given to each nominal account for a business + required: true + validation: + warnings: [] + information: + - field: NominalCode + details: Must be provided. + name: + type: String + displayName: Name + description: Name of the account + required: true + validation: + warnings: [] + information: + - field: Name + details: Must be provided. + fullyQualifiedCategory: + type: String + displayName: Fully Qualified Category + description: The full category of the account e.g. Liability.Current or Income.Revenue + options: + - value: Asset.Assets.Cash + type: String + displayName: Asset.Assets.Cash + required: false + - value: Asset.Assets.Bank + type: String + displayName: Asset.Assets.Bank + required: false + - value: Asset.Assets.PaymentServices + type: String + displayName: Asset.Assets.PaymentServices + required: false + - value: Asset.Assets.AccountsReceivable + type: String + displayName: Asset.Assets.AccountsReceivable + required: false + - value: Liability.EquityAndLiabilities.AccountsPayable + type: String + displayName: Liability.EquityAndLiabilities.AccountsPayable + required: false + - value: Asset.Assets.VAT + type: String + displayName: Asset.Assets.VAT + required: false + - value: Liability.EquityAndLiabilities.EmployeesPayable + type: String + displayName: Liability.EquityAndLiabilities.EmployeesPayable + required: false + - value: Asset.Assets.PrepaidExpenses + type: String + displayName: Asset.Assets.PrepaidExpenses + required: false + - value: Liability.EquityAndLiabilities.AccruedExpenses + type: String + displayName: Liability.EquityAndLiabilities.AccruedExpenses + required: false + - value: Liability.EquityAndLiabilities.IncomeTaxesPayable + type: String + displayName: Liability.EquityAndLiabilities.IncomeTaxesPayable + required: false + - value: Asset.Assets.FixedAssets + type: String + displayName: Asset.Assets.FixedAssets + required: false + - value: Asset.Assets.OtherAssets + type: String + displayName: Asset.Assets.OtherAssets + required: false + - value: Asset.Assets.AccumulatedDeprecation + type: String + displayName: Asset.Assets.AccumulatedDeprecation + required: false + - value: Asset.Assets.Inventory + type: String + displayName: Asset.Assets.Inventory + required: false + - value: Equity.EquityAndLiabilities.CapitalStock + type: String + displayName: Equity.EquityAndLiabilities.CapitalStock + required: false + - value: Equity.EquityAndLiabilities.RetainedEarnings + type: String + displayName: Equity.EquityAndLiabilities.RetainedEarnings + required: false + - value: Liability.EquityAndLiabilities.LongTermDebt + type: String + displayName: Liability.EquityAndLiabilities.LongTermDebt + required: false + - value: Liability.EquityAndLiabilities.CurrentPortionOfDebt + type: String + displayName: Liability.EquityAndLiabilities.CurrentPortionOfDebt + required: false + - value: Unknown.EquityAndLiabilities.Intercompany + type: String + displayName: Unknown.EquityAndLiabilities.Intercompany + required: false + - value: Unknown.General.General + type: String + displayName: Unknown.General.General + required: false + - value: Income.NetIncome.Revenue + type: String + displayName: Income.NetIncome.Revenue + required: false + - value: Expense.NetIncome.CostOfGoods + type: String + displayName: Expense.NetIncome.CostOfGoods + required: false + - value: Expense.NetIncome.OtherCosts + type: String + displayName: Expense.NetIncome.OtherCosts + required: false + - value: Expense.NetIncome.SalesGeneralAdministrativeExpenses + type: String + displayName: Expense.NetIncome.SalesGeneralAdministrativeExpenses + required: false + - value: Expense.NetIncome.DeprecationCosts + type: String + displayName: Expense.NetIncome.DeprecationCosts + required: false + - value: Expense.NetIncome.ResearchAndDevelopment + type: String + displayName: Expense.NetIncome.ResearchAndDevelopment + required: false + - value: Expense.NetIncome.EmployeeCosts + type: String + displayName: Expense.NetIncome.EmployeeCosts + required: false + - value: Expense.NetIncome.EmploymentCosts + type: String + displayName: Expense.NetIncome.EmploymentCosts + required: false + - value: Expense.ExceptionalIncome.ExceptionalCosts + type: String + displayName: Expense.ExceptionalIncome.ExceptionalCosts + required: false + - value: Income.ExceptionalIncome.ExceptionalIncome + type: String + displayName: Income.ExceptionalIncome.ExceptionalIncome + required: false + - value: Expense.ExceptionalIncome.IncomeTaxes + type: String + displayName: Expense.ExceptionalIncome.IncomeTaxes + required: false + - value: Income.ExceptionalIncome.InterestIncome + type: String + displayName: Income.ExceptionalIncome.InterestIncome + required: false + required: true + validation: + warnings: [] + information: + - field: FullyQualifiedCategory + details: Must be provided. + status: + type: String + displayName: Account Status + description: The status of the account + options: + - value: Active + type: String + displayName: Active + required: false + - value: Pending + type: String + displayName: Pending + required: false + - value: Unknown + type: String + displayName: Unknown + required: false + required: true + validation: + warnings: [] + information: + - field: Status + details: Must be provided. + required: true + MYOB AccountRight and Essentials: + value: + type: Object + displayName: Nominal Account + description: Nominal Accounts are the categories a business uses to record transactions + properties: + nominalCode: + type: String + displayName: Nominal Code + description: The external reference given to each nominal account for a business + required: true + validation: + warnings: + - field: NominalCode + details: 'If alphanumeric is supported, must be between 1 and 10 characters. Otherwise format is x-xxxx' + information: [] + name: + type: String + displayName: Name + description: Name of the account + required: false + validation: + warnings: + - field: Name + details: Must have a length between 1 and 60 characters + information: [] + description: + type: String + displayName: Description + description: Description of the account + required: false + validation: + warnings: + - field: Description + details: Must have a length between 1 and 255 characters + information: [] + fullyQualifiedCategory: + type: String + displayName: Fully Qualified Category + description: The full category of the account e.g. Liability.Current or Income.Revenue + options: + - value: Asset.Bank + type: String + displayName: Bank + required: false + - value: Asset.AccountReceivable + type: String + displayName: Accounts Receivable + required: false + - value: Asset.OtherCurrentAsset + type: String + displayName: Other Current Asset + required: false + - value: Asset.FixedAsset + type: String + displayName: Fixed Asset + required: false + - value: Asset.OtherAsset + type: String + displayName: Other Asset + required: false + - value: Asset.CashAndBank + type: String + displayName: Cash + required: false + - value: Asset.Property Plant and Equipment + type: String + displayName: Equipment Machinery + required: false + - value: Liability.CreditCard + type: String + displayName: Credit Card + required: false + - value: Liability.AccountsPayable + type: String + displayName: Accounts Payable + required: false + - value: Liability.OtherCurrentLiability + type: String + displayName: Other Current Liability + required: false + - value: Liability.LongTermLiability + type: String + displayName: Long Term Liability + required: false + - value: Liability.OtherLiability + type: String + displayName: Other Liability + required: false + - value: Equity + type: String + displayName: Equity + required: false + - value: Equity.Equity + type: String + displayName: Retained Earnings + required: false + - value: Equity.Equity.RetainedEarnings + type: String + displayName: Retained Earnings + required: false + - value: Equity.Owner's Equity + type: String + displayName: Retained Earnings + required: false + - value: Income + type: String + displayName: Income + required: false + - value: OtherIncome + type: String + displayName: Other Income + required: false + - value: Expense + type: String + displayName: Expense + required: false + - value: Expense.Expense + type: String + displayName: Sales Marketing + required: false + - value: Expense.Expense.Insurance + type: String + displayName: General Administrative + required: false + - value: Expense.Overhead + type: String + displayName: General Administrative + required: false + - value: Expense.Expense.RepairMaintenance + type: String + displayName: Repairs Maintenance + required: false + - value: OtherExpense + type: String + displayName: Other Expense + required: false + - value: CostOfSales + type: String + displayName: Cost of Sales + required: false + - value: Cost Of Goods Sold.Cost of Sales + type: String + displayName: Other + required: false + required: true + status: + type: String + displayName: Account Status + description: The status of the account + options: + - value: Active + type: String + displayName: Active + required: false + - value: Archived + type: String + displayName: Archived + required: false + required: true + required: true + QuickBooks Desktop: + value: + type: Object + displayName: Nominal Account + description: Nominal Accounts are the categories a business uses to record transactions + properties: + nominalCode: + type: String + displayName: Nominal Code + description: The external reference given to each nominal account for a business + required: true + validation: + warnings: + - field: NominalCode + details: Max length of 7 characters. + information: [] + name: + type: String + displayName: Name + description: Name of the account + required: true + validation: + warnings: + - field: Name + details: Max length of 31 characters. + information: [] + description: + type: String + displayName: Description + description: Description of the account + required: false + validation: + warnings: + - field: Description + details: Max length of 200 characters. + information: [] + currency: + type: String + displayName: Currency + description: The currency of the account + required: false + validation: + warnings: + - field: Currency + details: 'The currency must match the base currency of the QuickBooks Desktop company unless the FullyQualifiedCategory is ''Asset.AccountsReceivable'',''Liability.AccountsPayable'' or ''Liability.CreditCard''' + - field: Currency + details: Must be a three letter ISO code that matches an existing active currency in the QuickBooks Desktop company + - field: Currency + details: Can only be set if the QuickBooks Desktop company has Multicurrency enabled. + information: + - field: Currency + details: 'If not set, will default to the base currency of the QuickBooks Desktop company' + fullyQualifiedCategory: + type: String + displayName: Fully Qualified Category + description: The full category of the account e.g. Liability.Current or Income.Revenue + options: + - value: Asset.AccountsReceivable + type: String + displayName: Account Receivable + required: false + - value: Asset.FixedAsset + type: String + displayName: Fixed Asset + required: false + - value: Asset.OtherCurrentAsset + type: String + displayName: Other Current Asset + required: false + - value: Asset.OtherAsset + type: String + displayName: Other Asset + required: false + - value: Income.Income + type: String + displayName: Income + required: false + - value: Income.OtherIncome + type: String + displayName: Other Income + required: false + - value: Liability.AccountsPayable + type: String + displayName: Accounts Payable + required: false + - value: Liability.CreditCard + type: String + displayName: Credit Card + required: false + - value: Liability.LongTermLiability + type: String + displayName: Long Term Liability + required: false + - value: Liability.OtherCurrentLiability + type: String + displayName: Other Current Liability + required: false + - value: Liability.CostOfGoodsSold + type: String + displayName: Cost Of Goods Sold + required: false + - value: Equity.Equity + type: String + displayName: Equity + required: false + - value: Expense.Expense + type: String + displayName: Expense + required: false + - value: Expense.OtherExpense + type: String + displayName: Other Expense + required: false + required: true + currentBalance: + type: Number + displayName: Current Balance + description: The current balance in the account + required: false + required: true + QuickBooks Online Sandbox: + value: + type: Object + displayName: Nominal Account + description: Nominal Accounts are the categories a business uses to record transactions + properties: + nominalCode: + type: String + displayName: Nominal Code + description: The external reference given to each nominal account for a business + required: false + validation: + warnings: [] + information: + - field: NominalCode + details: If included must have a length between 1 and 7 characters + name: + type: String + displayName: Name + description: Name of the account + required: true + validation: + warnings: + - field: Name + details: Must have a length between 1 and 100 characters + information: [] + currency: + type: String + displayName: Currency + description: The currency of the account + required: false + validation: + warnings: [] + information: + - field: Currency + details: When not specified company base currency will be used + fullyQualifiedCategory: + type: String + displayName: Fully Qualified Category + description: The full category of the account e.g. Liability.Current or Income.Revenue + options: + - value: Asset.Bank.CashOnHand + type: String + displayName: Cash On Hand + required: false + - value: Asset.Bank.Checking + type: String + displayName: Checking + required: false + - value: Asset.Bank.MoneyMarket + type: String + displayName: Money Market + required: false + - value: Asset.Bank.RentsHeldInTrust + type: String + displayName: Rents Held In Trust + required: false + - value: Asset.Bank.Savings + type: String + displayName: Savings + required: false + - value: Asset.Bank.TrustAccounts + type: String + displayName: Trust Accounts + required: false + - value: Asset.Bank.CashAndCashEquivalents + type: String + displayName: Cash And Cash Equivalents + required: false + - value: Asset.Bank.OtherEarmarkedBankAccounts + type: String + displayName: Other Earmarked Bank Accounts + required: false + - value: Asset.Other Current Asset.AllowanceForBadDebts + type: String + displayName: Allowance For Bad Debts + required: false + - value: Asset.Other Current Asset.DevelopmentCosts + type: String + displayName: Development Costs + required: false + - value: Asset.Other Current Asset.EmployeeCashAdvances + type: String + displayName: Employee Cash Advances + required: false + - value: Asset.Other Current Asset.OtherCurrentAssets + type: String + displayName: Other Current Assets + required: false + - value: Asset.Other Current Asset.Inventory + type: String + displayName: Inventory + required: false + - value: Asset.Other Current Asset.Investment_MortgageRealEstateLoans + type: String + displayName: Investment Mortgage Real Estate Loans + required: false + - value: Asset.Other Current Asset.Investment_Other + type: String + displayName: Investment Other + required: false + - value: Asset.Other Current Asset.Investment_TaxExemptSecurities + type: String + displayName: Investment Tax Exempt Securities + required: false + - value: Asset.Other Current Asset.Investment_USGovernmentObligations + type: String + displayName: Investment US Government Obligations + required: false + - value: Asset.Other Current Asset.LoansToOfficers + type: String + displayName: Loans To Officers + required: false + - value: Asset.Other Current Asset.LoansToOthers + type: String + displayName: Loans To Others + required: false + - value: Asset.Other Current Asset.LoansToStockholders + type: String + displayName: Loans To Stockholders + required: false + - value: Asset.Other Current Asset.PrepaidExpenses + type: String + displayName: Prepaid Expenses + required: false + - value: Asset.Other Current Asset.Retainage + type: String + displayName: Retainage + required: false + - value: Asset.Other Current Asset.UndepositedFunds + type: String + displayName: Undeposited Funds + required: false + - value: Asset.Other Current Asset.AssetsAvailableForSale + type: String + displayName: Assets Available For Sale + required: false + - value: Asset.Other Current Asset.BalWithGovtAuthorities + type: String + displayName: Balance With Govt Authorities + required: false + - value: Asset.Other Current Asset.CalledUpShareCapitalNotPaid + type: String + displayName: Called Up Share Capital Not Paid + required: false + - value: Asset.Other Current Asset.ExpenditureAuthorisationsAndLettersOfCredit + type: String + displayName: Expenditure Authorisations And Letters Of Credit + required: false + - value: Asset.Other Current Asset.GlobalTaxDeferred + type: String + displayName: Global Tax Deferred + required: false + - value: Asset.Other Current Asset.GlobalTaxRefund + type: String + displayName: Global Tax Refund + required: false + - value: Asset.Other Current Asset.InternalTransfers + type: String + displayName: Internal Transfers + required: false + - value: Asset.Other Current Asset.OtherConsumables + type: String + displayName: Other Consumables + required: false + - value: Asset.Other Current Asset.ProvisionsCurrentAssets + type: String + displayName: Provisions Current Assets + required: false + - value: Asset.Other Current Asset.ShortTermInvestmentsInRelatedParties + type: String + displayName: Short Term Investments In Related Parties + required: false + - value: Asset.Other Current Asset.ShortTermLoansAndAdvancesToRelatedParties + type: String + displayName: Short Term Loans And Advances To Related Parties + required: false + - value: Asset.Other Current Asset.TradeAndOtherReceivables + type: String + displayName: Trade And Other Receivables + required: false + - value: Asset.Fixed Asset.AccumulatedDepletion + type: String + displayName: Accumulated Depletion + required: false + - value: Asset.Fixed Asset.AccumulatedDepreciation + type: String + displayName: Accumulated Depreciation + required: false + - value: Asset.Fixed Asset.DepletableAssets + type: String + displayName: Depletable Assets + required: false + - value: Asset.Fixed Asset.FixedAssetComputers + type: String + displayName: Fixed Asset Computers + required: false + - value: Asset.Fixed Asset.FixedAssetCopiers + type: String + displayName: Fixed Asset Copiers + required: false + - value: Asset.Fixed Asset.FixedAssetFurniture + type: String + displayName: Fixed Asset Furniture + required: false + - value: Asset.Fixed Asset.FixedAssetPhone + type: String + displayName: Fixed Asset Phone + required: false + - value: Asset.Fixed Asset.FixedAssetPhotoVideo + type: String + displayName: Fixed Asset Photo Video + required: false + - value: Asset.Fixed Asset.FixedAssetSoftware + type: String + displayName: Fixed Asset Software + required: false + - value: Asset.Fixed Asset.FixedAssetOtherToolsEquipment + type: String + displayName: Fixed Asset Other Tools Equipment + required: false + - value: Asset.Fixed Asset.FurnitureAndFixtures + type: String + displayName: Furniture And Fixtures + required: false + - value: Asset.Fixed Asset.Land + type: String + displayName: Land + required: false + - value: Asset.Fixed Asset.LeaseholdImprovements + type: String + displayName: Leasehold Improvements + required: false + - value: Asset.Fixed Asset.OtherFixedAssets + type: String + displayName: Other Fixed Assets + required: false + - value: Asset.Fixed Asset.AccumulatedAmortization + type: String + displayName: Accumulated Amortization + required: false + - value: Asset.Fixed Asset.Buildings + type: String + displayName: Buildings + required: false + - value: Asset.Fixed Asset.IntangibleAssets + type: String + displayName: Intangible Assets + required: false + - value: Asset.Fixed Asset.MachineryAndEquipment + type: String + displayName: Machinery And Equipment + required: false + - value: Asset.Fixed Asset.Vehicles + type: String + displayName: Vehicles + required: false + - value: Asset.Fixed Asset.AssetsInCourseOfConstruction + type: String + displayName: Assets In Course Of Construction + required: false + - value: Asset.Fixed Asset.CapitalWip + type: String + displayName: Capital Wip + required: false + - value: Asset.Fixed Asset.CumulativeDepreciationOnIntangibleAssets + type: String + displayName: Cumulative Depreciation On Intangible Assets + required: false + - value: Asset.Fixed Asset.IntangibleAssetsUnderDevelopment + type: String + displayName: Intangible Assets Under Development + required: false + - value: Asset.Fixed Asset.LandAsset + type: String + displayName: Land Asset + required: false + - value: Asset.Fixed Asset.NonCurrentAssets + type: String + displayName: Non Current Assets + required: false + - value: Asset.Fixed Asset.ParticipatingInterests + type: String + displayName: Participating Interests + required: false + - value: Asset.Fixed Asset.ProvisionsFixedAssets + type: String + displayName: Provisions Fixed Assets + required: false + - value: Asset.Other Asset.LeaseBuyout + type: String + displayName: Lease Buyout + required: false + - value: Asset.Other Asset.OtherLongTermAssets + type: String + displayName: Other Long Term Assets + required: false + - value: Asset.Other Asset.SecurityDeposits + type: String + displayName: Security Deposits + required: false + - value: Asset.Other Asset.AccumulatedAmortizationOfOtherAssets + type: String + displayName: Accumulated Amortization Of Other Assets + required: false + - value: Asset.Other Asset.Goodwill + type: String + displayName: Goodwill + required: false + - value: Asset.Other Asset.Licenses + type: String + displayName: Licenses + required: false + - value: Asset.Other Asset.OrganizationalCosts + type: String + displayName: Organizational Costs + required: false + - value: Asset.Other Asset.AssetsHeldForSale + type: String + displayName: Assets Held For Sale + required: false + - value: Asset.Other Asset.AvailableForSaleFinancialAssets + type: String + displayName: Available For Sale Financial Assets + required: false + - value: Asset.Other Asset.DeferredTax + type: String + displayName: Deferred Tax + required: false + - value: Asset.Other Asset.Investments + type: String + displayName: Investments + required: false + - value: Asset.Other Asset.LongTermInvestments + type: String + displayName: Long Term Investments + required: false + - value: Asset.Other Asset.LongTermLoansAndAdvancesToRelatedParties + type: String + displayName: Long Term Loans And Advances To Related Parties + required: false + - value: Asset.Other Asset.OtherIntangibleAssets + type: String + displayName: Other Intangible Assets + required: false + - value: Asset.Other Asset.OtherLongTermInvestments + type: String + displayName: Other Long Term Investments + required: false + - value: Asset.Other Asset.OtherLongTermLoansAndAdvances + type: String + displayName: Other Long Term Loans And Advances + required: false + - value: Asset.Other Asset.PrepaymentsAndAccruedIncome + type: String + displayName: Prepayments And Accrued Income + required: false + - value: Asset.Other Asset.ProvisionsNonCurrentAssets + type: String + displayName: Provisions Non-Current Assets + required: false + - value: Asset.Accounts Receivable.AccountsReceivable + type: String + displayName: Accounts Receivable + required: false + - value: Expense.Expense.AdvertisingPromotional + type: String + displayName: Advertising/Promotional + required: false + - value: Expense.Expense.BadDebts + type: String + displayName: Bad Debts + required: false + - value: Expense.Expense.BankCharges + type: String + displayName: Bank Charges + required: false + - value: Expense.Expense.CharitableContributions + type: String + displayName: Charitable Contributions + required: false + - value: Expense.Expense.CommissionsAndFees + type: String + displayName: Commissions And Fees + required: false + - value: Expense.Expense.Entertainment + type: String + displayName: Entertainment + required: false + - value: Expense.Expense.EntertainmentMeals + type: String + displayName: Entertainment Meals + required: false + - value: Expense.Expense.EquipmentRental + type: String + displayName: Equipment Rental + required: false + - value: Expense.Expense.FinanceCosts + type: String + displayName: Finance Costs + required: false + - value: Expense.Expense.GlobalTaxExpense + type: String + displayName: Global Tax Expense + required: false + - value: Expense.Expense.Insurance + type: String + displayName: Insurance + required: false + - value: Expense.Expense.InterestPaid + type: String + displayName: Interest Paid + required: false + - value: Expense.Expense.LegalProfessionalFees + type: String + displayName: Legal And Professional Fees + required: false + - value: Expense.Expense.OfficeExpenses + type: String + displayName: Office Expenses + required: false + - value: Expense.Expense.OfficeGeneralAdministrativeExpenses + type: String + displayName: Office/General Administrative Expenses + required: false + - value: Expense.Expense.OtherBusinessExpenses + type: String + displayName: Other Business Expenses + required: false + - value: Expense.Expense.OtherMiscellaneousServiceCost + type: String + displayName: Other Miscellaneous Service Cost + required: false + - value: Expense.Expense.PromotionalMeals + type: String + displayName: Promotional Meals + required: false + - value: Expense.Expense.RentOrLeaseOfBuildings + type: String + displayName: Rent Or Lease Of Buildings + required: false + - value: Expense.Expense.RepairMaintenance + type: String + displayName: Repair And Maintenance + required: false + - value: Expense.Expense.ShippingFreightDelivery + type: String + displayName: 'Shipping, Freight And Delivery' + required: false + - value: Expense.Expense.SuppliesMaterials + type: String + displayName: Supplies And Materials + required: false + - value: Expense.Expense.Travel + type: String + displayName: Travel + required: false + - value: Expense.Expense.TravelMeals + type: String + displayName: Travel Meals + required: false + - value: Expense.Expense.Utilities + type: String + displayName: Utilities + required: false + - value: Expense.Expense.Auto + type: String + displayName: Auto + required: false + - value: Expense.Expense.CostOfLabor + type: String + displayName: Cost Of Labor + required: false + - value: Expense.Expense.DuesSubscriptions + type: String + displayName: Dues And Subscriptions + required: false + - value: Expense.Expense.PayrollExpenses + type: String + displayName: Payroll Expenses + required: false + - value: Expense.Expense.TaxesPaid + type: String + displayName: Taxes Paid + required: false + - value: Expense.Expense.UnappliedCashBillPaymentExpense + type: String + displayName: Unapplied Cash Bill Payment Expense + required: false + - value: Expense.Expense.Utilities + type: String + displayName: Utilities + required: false + - value: Expense.Expense.AmortizationExpense + type: String + displayName: Amortization Expense + required: false + - value: Expense.Expense.AppropriationsToDepreciation + type: String + displayName: Appropriations To Depreciation + required: false + - value: Expense.Expense.BorrowingCost + type: String + displayName: Borrowing Cost + required: false + - value: Expense.Expense.CommissionsAndFees + type: String + displayName: Commissions And Fees + required: false + - value: Expense.Expense.DistributionCosts + type: String + displayName: Distribution Costs + required: false + - value: Expense.Expense.ExternalServices + type: String + displayName: External Services + required: false + - value: Expense.Expense.ExtraordinaryCharges + type: String + displayName: Extraordinary Charges + required: false + - value: Expense.Expense.IncomeTaxExpense + type: String + displayName: Income Tax Expense + required: false + - value: Expense.Expense.LossOnDiscontinuedOperationsNetOfTax + type: String + displayName: Loss On Discontinued Operations Net Of Tax + required: false + - value: Expense.Expense.ManagementCompensation + type: String + displayName: Management Compensation + required: false + - value: Expense.Expense.OtherCurrentOperatingCharges + type: String + displayName: Other Current Operating Charges + required: false + - value: Expense.Expense.OtherExternalServices + type: String + displayName: Other External Services + required: false + - value: Expense.Expense.OtherRentalCosts + type: String + displayName: Other Rental Costs + required: false + - value: Expense.Expense.OtherSellingExpenses + type: String + displayName: Other Selling Expenses + required: false + - value: Expense.Expense.ProjectStudiesSurveysAssessments + type: String + displayName: Project Studies Surveys Assessments + required: false + - value: Expense.Expense.PurchasesRebates + type: String + displayName: Purchases Rebates + required: false + - value: Expense.Expense.ShippingAndDeliveryExpense + type: String + displayName: Shipping And Delivery Expense + required: false + - value: Expense.Expense.StaffCosts + type: String + displayName: Staff Costs + required: false + - value: Expense.Expense.Sundry + type: String + displayName: Sundry + required: false + - value: Expense.Expense.TravelExpensesGeneralAndAdminExpenses + type: String + displayName: Travel Expenses General And Admin Expenses + required: false + - value: Expense.Expense.TravelExpensesSellingExpense + type: String + displayName: Travel Expenses Selling Expense + required: false + - value: Expense.Other Expense.Depreciation + type: String + displayName: Depreciation + required: false + - value: Expense.Other Expense.ExchangeGainOrLoss + type: String + displayName: Exchange Gain Or Loss + required: false + - value: Expense.Other Expense.OtherMiscellaneousExpense + type: String + displayName: Other Miscellaneous Expense + required: false + - value: Expense.Other Expense.PenaltiesSettlements + type: String + displayName: Penalties And Settlements + required: false + - value: Expense.Other Expense.Amortization + type: String + displayName: Amortization + required: false + - value: Expense.Other Expense.GasAndFuel + type: String + displayName: Gas And Fuel + required: false + - value: Expense.Other Expense.HomeOffice + type: String + displayName: Home Office + required: false + - value: Expense.Other Expense.HomeOwnerRentalInsurance + type: String + displayName: Home Owner Rental Insurance + required: false + - value: Expense.Other Expense.OtherHomeOfficeExpenses + type: String + displayName: Other Home Office Expenses + required: false + - value: Expense.Other Expense.MortgageInterest + type: String + displayName: Mortgage Interest + required: false + - value: Expense.Other Expense.RentAndLease + type: String + displayName: Rent And Lease + required: false + - value: Expense.Other Expense.RepairsAndMaintenance + type: String + displayName: Repairs And Maintenance + required: false + - value: Expense.Other Expense.ParkingAndTolls + type: String + displayName: Parking And Tolls + required: false + - value: Expense.Other Expense.Vehicle + type: String + displayName: Vehicle + required: false + - value: Expense.Other Expense.VehicleInsurance + type: String + displayName: Vehicle Insurance + required: false + - value: Expense.Other Expense.VehicleLease + type: String + displayName: Vehicle Lease + required: false + - value: Expense.Other Expense.VehicleLoanInterest + type: String + displayName: Vehicle Loan Interest + required: false + - value: Expense.Other Expense.VehicleLoan + type: String + displayName: Vehicle Loan + required: false + - value: Expense.Other Expense.VehicleRegistration + type: String + displayName: Vehicle Registration + required: false + - value: Expense.Other Expense.VehicleRepairs + type: String + displayName: Vehicle Repairs + required: false + - value: Expense.Other Expense.OtherVehicleExpenses + type: String + displayName: Other Vehicle Expenses + required: false + - value: Expense.Other Expense.Utilities + type: String + displayName: Utilities + required: false + - value: Expense.Other Expense.WashAndRoadServices + type: String + displayName: Wash And Road Services + required: false + - value: Expense.Other Expense.DeferredTaxExpense + type: String + displayName: Deferred Tax Expense + required: false + - value: Expense.Other Expense.Depletion + type: String + displayName: Depletion + required: false + - value: Expense.Other Expense.ExceptionalItems + type: String + displayName: Exceptional Items + required: false + - value: Expense.Other Expense.ExtraordinaryItems + type: String + displayName: Extraordinary Items + required: false + - value: Expense.Other Expense.IncomeTaxOtherExpense + type: String + displayName: Income Tax Other Expense + required: false + - value: Expense.Other Expense.MatCredit + type: String + displayName: Mat Credit + required: false + - value: Expense.Other Expense.PriorPeriodItems + type: String + displayName: Prior Period Items + required: false + - value: Expense.Other Expense.TaxRoundoffGainOrLoss + type: String + displayName: Tax Roundoff Gain Or Loss + required: false + - value: Expense.Cost of Goods Sold.EquipmentRentalCos + type: String + displayName: Equipment Rental - COS + required: false + - value: Expense.Cost of Goods Sold.OtherCostsOfServiceCos + type: String + displayName: Other Costs Of Sales - COS + required: false + - value: Expense.Cost of Goods Sold.ShippingFreightDeliveryCos + type: String + displayName: 'Shipping, Freight And Delivery - COS' + required: false + - value: Expense.Cost of Goods Sold.SuppliesMaterialsCogs + type: String + displayName: Supplies And Materials - COS + required: false + - value: Expense.Cost of Goods Sold.CostOfLaborCos + type: String + displayName: Cost Of Labor - COS + required: false + - value: Expense.Cost of Goods Sold.CostOfSales + type: String + displayName: Cost Of Sales + required: false + - value: Expense.Cost of Goods Sold.FreightAndDeliveryCost + type: String + displayName: Freight And Delivery Cost + required: false + - value: Income.Income.NonProfitIncome + type: String + displayName: Non Profit Income + required: false + - value: Income.Income.OtherPrimaryIncome + type: String + displayName: Other Primary Income + required: false + - value: Income.Income.SalesOfProductIncome + type: String + displayName: Sales Of ProductIncome + required: false + - value: Income.Income.ServiceFeeIncome + type: String + displayName: Service Fee Income + required: false + - value: Income.Income.DiscountsRefundsGiven + type: String + displayName: Discounts Refunds Given + required: false + - value: Income.Income.UnappliedCashPaymentIncome + type: String + displayName: Unapplied Cash Payment Income + required: false + - value: Income.Income.CashReceiptIncome + type: String + displayName: Cash Receipt Income + required: false + - value: Income.Income.OperatingGrants + type: String + displayName: Operating Grants + required: false + - value: Income.Income.OtherCurrentOperatingIncome + type: String + displayName: Other Current Operating Income + required: false + - value: Income.Income.OwnWorkCapitalized + type: String + displayName: Own Work Capitalized + required: false + - value: Income.Income.RevenueGeneral + type: String + displayName: Revenue General + required: false + - value: Income.Income.SalesRetail + type: String + displayName: Sales Retail + required: false + - value: Income.Income.SalesWholesale + type: String + displayName: Sales Wholesale + required: false + - value: Income.Income.SavingsByTaxScheme + type: String + displayName: Savings By Tax Scheme + required: false + - value: Income.Other Income.DividendIncome + type: String + displayName: Dividend Income + required: false + - value: Income.Other Income.InterestEarned + type: String + displayName: Interest Earned + required: false + - value: Income.Other Income.OtherInvestmentIncome + type: String + displayName: Other Investment Income + required: false + - value: Income.Other Income.OtherMiscellaneousIncome + type: String + displayName: Other Miscellaneous Income + required: false + - value: Income.Other Income.TaxExemptInterest + type: String + displayName: Tax Exempt Interest + required: false + - value: Income.Other Income.GainLossOnSaleOfFixedAssets + type: String + displayName: Gain Loss On Sale Of Fixed Assets + required: false + - value: Income.Other Income.GainLossOnSaleOfInvestments + type: String + displayName: Gain Loss On Sale Of Investments + required: false + - value: Income.Other Income.LossOnDisposalOfAssets + type: String + displayName: Loss On Disposal Of Assets + required: false + - value: Income.Other Income.OtherOperatingIncome + type: String + displayName: Other Operating Income + required: false + - value: Income.Other Income.UnrealisedLossOnSecuritiesNetOfTax + type: String + displayName: Unrealised Loss On Securities Net Of Tax + required: false + - value: Liability.Accounts Payable.AccountsPayable + type: String + displayName: Accounts Payable + required: false + - value: Liability.Accounts Payable.OutstandingDuesMicroSmallEnterprise + type: String + displayName: Outstanding Dues Micro Small Enterprise + required: false + - value: Liability.Accounts Payable.OutstandingDuesOtherThanMicroSmallEnterprise + type: String + displayName: Outstanding Dues Other Than Micro Small Enterprise + required: false + - value: Liability.Credit Card.CreditCard + type: String + displayName: Credit Card + required: false + - value: Liability.Long Term Liability.NotesPayable + type: String + displayName: Notes Payable + required: false + - value: Liability.Long Term Liability.OtherLongTermLiabilities + type: String + displayName: Other Long Term Liabilities + required: false + - value: Liability.Long Term Liability.ShareholderNotesPayable + type: String + displayName: Shareholder Notes Payable + required: false + - value: Liability.Long Term Liability.AccrualsAndDeferredIncome + type: String + displayName: Accruals And Deferred Income + required: false + - value: Liability.Long Term Liability.AccruedLongLermLiabilities + type: String + displayName: Accrued Long Lerm Liabilities + required: false + - value: Liability.Long Term Liability.AccruedVacationPayable + type: String + displayName: Accrued Vacation Payable + required: false + - value: Liability.Long Term Liability.BankLoans + type: String + displayName: Bank Loans + required: false + - value: Liability.Long Term Liability.DebtsRelatedToParticipatingInterests + type: String + displayName: Debts Related To Participating Interests + required: false + - value: Liability.Long Term Liability.DeferredTaxLiabilities + type: String + displayName: Deferred Tax Liabilities + required: false + - value: Liability.Long Term Liability.GovernmentAndOtherPublicAuthorities + type: String + displayName: Government And Other Public Authorities + required: false + - value: Liability.Long Term Liability.GroupAndAssociates + type: String + displayName: Group And Associates + required: false + - value: Liability.Long Term Liability.LiabilitiesRelatedToAssetsHeldForSale + type: String + displayName: Liabilities Related To Assets Held For Sale + required: false + - value: Liability.Long Term Liability.LongTermBorrowings + type: String + displayName: Long Term Borrowings + required: false + - value: Liability.Long Term Liability.LongTermDebit + type: String + displayName: Long Term Debit + required: false + - value: Liability.Long Term Liability.LongTermEmployeeBenefitObligations + type: String + displayName: Long Term Employee Benefit Obligations + required: false + - value: Liability.Long Term Liability.ObligationsUnderFinanceLeases + type: String + displayName: Obligations Under Finance Leases + required: false + - value: Liability.Long Term Liability.OtherLongTermProvisions + type: String + displayName: Other Long Term Provisions + required: false + - value: Liability.Long Term Liability.ProvisionForLiabilities + type: String + displayName: Provision For Liabilities + required: false + - value: Liability.Long Term Liability.ProvisionsNonCurrentLiabilities + type: String + displayName: Provisions Non Current Liabilities + required: false + - value: Liability.Long Term Liability.StaffAndRelatedLongTermLiabilityAccounts + type: String + displayName: Staff And Related Long Term Liability Accounts + required: false + - value: Liability.Other Current Liability.DirectDepositPayable + type: String + displayName: Direct Deposit Payable + required: false + - value: Liability.Other Current Liability.LineOfCredit + type: String + displayName: Line Of Credit + required: false + - value: Liability.Other Current Liability.LoanPayable + type: String + displayName: Loan Payable + required: false + - value: Liability.Other Current Liability.GlobalTaxPayable + type: String + displayName: Global Tax Payable + required: false + - value: Liability.Other Current Liability.GlobalTaxSuspense + type: String + displayName: Global Tax Suspense + required: false + - value: Liability.Other Current Liability.OtherCurrentLiabilities + type: String + displayName: Other Current Liabilities + required: false + - value: Liability.Other Current Liability.PayrollClearing + type: String + displayName: Payroll Clearing + required: false + - value: Liability.Other Current Liability.PayrollTaxPayable + type: String + displayName: Payroll Tax Payable + required: false + - value: Liability.Other Current Liability.PrepaidExpensesPayable + type: String + displayName: Prepaid Expenses Payable + required: false + - value: Liability.Other Current Liability.RentsInTrustLiability + type: String + displayName: Rents In Trust Liability + required: false + - value: Liability.Other Current Liability.TrustAccountsLiabilities + type: String + displayName: Trust Accounts Liabilities + required: false + - value: Liability.Other Current Liability.FederalIncomeTaxPayable + type: String + displayName: Federal Income Tax Payable + required: false + - value: Liability.Other Current Liability.InsurancePayable + type: String + displayName: Insurance Payable + required: false + - value: Liability.Other Current Liability.SalesTaxPayable + type: String + displayName: Sales Tax Payable + required: false + - value: Liability.Other Current Liability.StateLocalIncomeTaxPayable + type: String + displayName: State Local Income Tax Payable + required: false + - value: Liability.Other Current Liability.AccruedLiabilities + type: String + displayName: Accrued Liabilities + required: false + - value: Liability.Other Current Liability.CurrentLiabilities + type: String + displayName: Current Liabilities + required: false + - value: Liability.Other Current Liability.CurrentPortionEmployeeBenefitsObligations + type: String + displayName: Current Portion EmployeeBenefits Obligations + required: false + - value: Liability.Other Current Liability.CurrentPortionOfObligationsUnderFinanceLeases + type: String + displayName: Current Portion Of Obligations Under Finance Leases + required: false + - value: Liability.Other Current Liability.CurrentTaxLiability + type: String + displayName: Current Tax Liability + required: false + - value: Liability.Other Current Liability.DividendsPayable + type: String + displayName: Dividends Payable + required: false + - value: Liability.Other Current Liability.DutiesAndTaxes + type: String + displayName: Duties And Taxes + required: false + - value: Liability.Other Current Liability.InterestPayables + type: String + displayName: Interest Payables + required: false + - value: Liability.Other Current Liability.ProvisionForWarrantyObligations + type: String + displayName: Provision For Warranty Obligations + required: false + - value: Liability.Other Current Liability.ProvisionsCurrentLiabilities + type: String + displayName: Provisions Current Liabilities + required: false + - value: Liability.Other Current Liability.ShortTermBorrowings + type: String + displayName: Short Term Borrowings + required: false + - value: Liability.Other Current Liability.SocialSecurityAgencies + type: String + displayName: Social Security Agencies + required: false + - value: Liability.Other Current Liability.StaffAndRelatedLiabilityAccounts + type: String + displayName: Staff And Related Liability Accounts + required: false + - value: Liability.Other Current Liability.SundryDebtorsAndCreditors + type: String + displayName: Sundry Debtors And Creditors + required: false + - value: Liability.Other Current Liability.TradeAndOtherPayables + type: String + displayName: Trade And Other Payables + required: false + - value: Equity.Equity.OpeningBalanceEquity + type: String + displayName: Opening Balance Equity + required: false + - value: Equity.Equity.PartnersEquity + type: String + displayName: Partners Equity + required: false + - value: Equity.Equity.RetainedEarnings + type: String + displayName: Retained Earnings + required: false + - value: Equity.Equity.AccumulatedAdjustment + type: String + displayName: Accumulated Adjustment + required: false + - value: Equity.Equity.OwnersEquity + type: String + displayName: Owners Equity + required: false + - value: Equity.Equity.PaidInCapitalOrSurplus + type: String + displayName: Paid In Capital Or Surplus + required: false + - value: Equity.Equity.PartnerContributions + type: String + displayName: Partner Contributions + required: false + - value: Equity.Equity.PartnerDistributions + type: String + displayName: Partner Distributions + required: false + - value: Equity.Equity.PreferredStock + type: String + displayName: Preferred Stock + required: false + - value: Equity.Equity.CommonStock + type: String + displayName: Common Stock + required: false + - value: Equity.Equity.TreasuryStock + type: String + displayName: Treasury Stock + required: false + - value: Equity.Equity.EstimatedTaxes + type: String + displayName: Estimated Taxes + required: false + - value: Equity.Equity.Healthcare + type: String + displayName: Healthcare + required: false + - value: Equity.Equity.PersonalIncome + type: String + displayName: Personal Income + required: false + - value: Equity.Equity.PersonalExpense + type: String + displayName: Personal Expense + required: false + - value: Equity.Equity.AccumulatedOtherComprehensiveIncome + type: String + displayName: Accumulated Other Comprehensive Income + required: false + - value: Equity.Equity.CalledUpShareCapital + type: String + displayName: Called Up Share Capital + required: false + - value: Equity.Equity.CapitalReserves + type: String + displayName: Capital Reserves + required: false + - value: Equity.Equity.DividendDisbursed + type: String + displayName: Dividend Disbursed + required: false + - value: Equity.Equity.EquityInEarningsOfSubsiduaries + type: String + displayName: Equity In Earnings Of Subsiduaries + required: false + - value: Equity.Equity.InvestmentGrants + type: String + displayName: Investment Grants + required: false + - value: Equity.Equity.MoneyReceivedAgainstShareWarrants + type: String + displayName: Money Received Against Share Warrants + required: false + - value: Equity.Equity.OtherFreeReserves + type: String + displayName: Other Free Reserves + required: false + - value: Equity.Equity.ShareApplicationMoneyPendingAllotment + type: String + displayName: Share Application Money Pending Allotment + required: false + - value: Equity.Equity.ShareCapital + type: String + displayName: Share Capital + required: false + - value: Equity.Equity.Funds + type: String + displayName: Funds + required: false + required: true + required: true + QuickBooks Online: + value: + type: Object + displayName: Nominal Account + description: Nominal Accounts are the categories a business uses to record transactions + properties: + nominalCode: + type: String + displayName: Nominal Code + description: The external reference given to each nominal account for a business + required: false + validation: + warnings: [] + information: + - field: NominalCode + details: If included must have a length between 1 and 7 characters + name: + type: String + displayName: Name + description: Name of the account + required: true + validation: + warnings: + - field: Name + details: Must have a length between 1 and 100 characters + information: [] + currency: + type: String + displayName: Currency + description: The currency of the account + required: false + validation: + warnings: [] + information: + - field: Currency + details: When not specified company base currency will be used + fullyQualifiedCategory: + type: String + displayName: Fully Qualified Category + description: The full category of the account e.g. Liability.Current or Income.Revenue + options: + - value: Asset.Bank.CashOnHand + type: String + displayName: Cash On Hand + required: false + - value: Asset.Bank.Checking + type: String + displayName: Checking + required: false + - value: Asset.Bank.MoneyMarket + type: String + displayName: Money Market + required: false + - value: Asset.Bank.RentsHeldInTrust + type: String + displayName: Rents Held In Trust + required: false + - value: Asset.Bank.Savings + type: String + displayName: Savings + required: false + - value: Asset.Bank.TrustAccounts + type: String + displayName: Trust Accounts + required: false + - value: Asset.Bank.CashAndCashEquivalents + type: String + displayName: Cash And Cash Equivalents + required: false + - value: Asset.Bank.OtherEarmarkedBankAccounts + type: String + displayName: Other Earmarked Bank Accounts + required: false + - value: Asset.Other Current Asset.AllowanceForBadDebts + type: String + displayName: Allowance For Bad Debts + required: false + - value: Asset.Other Current Asset.DevelopmentCosts + type: String + displayName: Development Costs + required: false + - value: Asset.Other Current Asset.EmployeeCashAdvances + type: String + displayName: Employee Cash Advances + required: false + - value: Asset.Other Current Asset.OtherCurrentAssets + type: String + displayName: Other Current Assets + required: false + - value: Asset.Other Current Asset.Inventory + type: String + displayName: Inventory + required: false + - value: Asset.Other Current Asset.Investment_MortgageRealEstateLoans + type: String + displayName: Investment Mortgage Real Estate Loans + required: false + - value: Asset.Other Current Asset.Investment_Other + type: String + displayName: Investment Other + required: false + - value: Asset.Other Current Asset.Investment_TaxExemptSecurities + type: String + displayName: Investment Tax Exempt Securities + required: false + - value: Asset.Other Current Asset.Investment_USGovernmentObligations + type: String + displayName: Investment US Government Obligations + required: false + - value: Asset.Other Current Asset.LoansToOfficers + type: String + displayName: Loans To Officers + required: false + - value: Asset.Other Current Asset.LoansToOthers + type: String + displayName: Loans To Others + required: false + - value: Asset.Other Current Asset.LoansToStockholders + type: String + displayName: Loans To Stockholders + required: false + - value: Asset.Other Current Asset.PrepaidExpenses + type: String + displayName: Prepaid Expenses + required: false + - value: Asset.Other Current Asset.Retainage + type: String + displayName: Retainage + required: false + - value: Asset.Other Current Asset.UndepositedFunds + type: String + displayName: Undeposited Funds + required: false + - value: Asset.Other Current Asset.AssetsAvailableForSale + type: String + displayName: Assets Available For Sale + required: false + - value: Asset.Other Current Asset.BalWithGovtAuthorities + type: String + displayName: Balance With Govt Authorities + required: false + - value: Asset.Other Current Asset.CalledUpShareCapitalNotPaid + type: String + displayName: Called Up Share Capital Not Paid + required: false + - value: Asset.Other Current Asset.ExpenditureAuthorisationsAndLettersOfCredit + type: String + displayName: Expenditure Authorisations And Letters Of Credit + required: false + - value: Asset.Other Current Asset.GlobalTaxDeferred + type: String + displayName: Global Tax Deferred + required: false + - value: Asset.Other Current Asset.GlobalTaxRefund + type: String + displayName: Global Tax Refund + required: false + - value: Asset.Other Current Asset.InternalTransfers + type: String + displayName: Internal Transfers + required: false + - value: Asset.Other Current Asset.OtherConsumables + type: String + displayName: Other Consumables + required: false + - value: Asset.Other Current Asset.ProvisionsCurrentAssets + type: String + displayName: Provisions Current Assets + required: false + - value: Asset.Other Current Asset.ShortTermInvestmentsInRelatedParties + type: String + displayName: Short Term Investments In Related Parties + required: false + - value: Asset.Other Current Asset.ShortTermLoansAndAdvancesToRelatedParties + type: String + displayName: Short Term Loans And Advances To Related Parties + required: false + - value: Asset.Other Current Asset.TradeAndOtherReceivables + type: String + displayName: Trade And Other Receivables + required: false + - value: Asset.Fixed Asset.AccumulatedDepletion + type: String + displayName: Accumulated Depletion + required: false + - value: Asset.Fixed Asset.AccumulatedDepreciation + type: String + displayName: Accumulated Depreciation + required: false + - value: Asset.Fixed Asset.DepletableAssets + type: String + displayName: Depletable Assets + required: false + - value: Asset.Fixed Asset.FixedAssetComputers + type: String + displayName: Fixed Asset Computers + required: false + - value: Asset.Fixed Asset.FixedAssetCopiers + type: String + displayName: Fixed Asset Copiers + required: false + - value: Asset.Fixed Asset.FixedAssetFurniture + type: String + displayName: Fixed Asset Furniture + required: false + - value: Asset.Fixed Asset.FixedAssetPhone + type: String + displayName: Fixed Asset Phone + required: false + - value: Asset.Fixed Asset.FixedAssetPhotoVideo + type: String + displayName: Fixed Asset Photo Video + required: false + - value: Asset.Fixed Asset.FixedAssetSoftware + type: String + displayName: Fixed Asset Software + required: false + - value: Asset.Fixed Asset.FixedAssetOtherToolsEquipment + type: String + displayName: Fixed Asset Other Tools Equipment + required: false + - value: Asset.Fixed Asset.FurnitureAndFixtures + type: String + displayName: Furniture And Fixtures + required: false + - value: Asset.Fixed Asset.Land + type: String + displayName: Land + required: false + - value: Asset.Fixed Asset.LeaseholdImprovements + type: String + displayName: Leasehold Improvements + required: false + - value: Asset.Fixed Asset.OtherFixedAssets + type: String + displayName: Other Fixed Assets + required: false + - value: Asset.Fixed Asset.AccumulatedAmortization + type: String + displayName: Accumulated Amortization + required: false + - value: Asset.Fixed Asset.Buildings + type: String + displayName: Buildings + required: false + - value: Asset.Fixed Asset.IntangibleAssets + type: String + displayName: Intangible Assets + required: false + - value: Asset.Fixed Asset.MachineryAndEquipment + type: String + displayName: Machinery And Equipment + required: false + - value: Asset.Fixed Asset.Vehicles + type: String + displayName: Vehicles + required: false + - value: Asset.Fixed Asset.AssetsInCourseOfConstruction + type: String + displayName: Assets In Course Of Construction + required: false + - value: Asset.Fixed Asset.CapitalWip + type: String + displayName: Capital Wip + required: false + - value: Asset.Fixed Asset.CumulativeDepreciationOnIntangibleAssets + type: String + displayName: Cumulative Depreciation On Intangible Assets + required: false + - value: Asset.Fixed Asset.IntangibleAssetsUnderDevelopment + type: String + displayName: Intangible Assets Under Development + required: false + - value: Asset.Fixed Asset.LandAsset + type: String + displayName: Land Asset + required: false + - value: Asset.Fixed Asset.NonCurrentAssets + type: String + displayName: Non Current Assets + required: false + - value: Asset.Fixed Asset.ParticipatingInterests + type: String + displayName: Participating Interests + required: false + - value: Asset.Fixed Asset.ProvisionsFixedAssets + type: String + displayName: Provisions Fixed Assets + required: false + - value: Asset.Other Asset.LeaseBuyout + type: String + displayName: Lease Buyout + required: false + - value: Asset.Other Asset.OtherLongTermAssets + type: String + displayName: Other Long Term Assets + required: false + - value: Asset.Other Asset.SecurityDeposits + type: String + displayName: Security Deposits + required: false + - value: Asset.Other Asset.AccumulatedAmortizationOfOtherAssets + type: String + displayName: Accumulated Amortization Of Other Assets + required: false + - value: Asset.Other Asset.Goodwill + type: String + displayName: Goodwill + required: false + - value: Asset.Other Asset.Licenses + type: String + displayName: Licenses + required: false + - value: Asset.Other Asset.OrganizationalCosts + type: String + displayName: Organizational Costs + required: false + - value: Asset.Other Asset.AssetsHeldForSale + type: String + displayName: Assets Held For Sale + required: false + - value: Asset.Other Asset.AvailableForSaleFinancialAssets + type: String + displayName: Available For Sale Financial Assets + required: false + - value: Asset.Other Asset.DeferredTax + type: String + displayName: Deferred Tax + required: false + - value: Asset.Other Asset.Investments + type: String + displayName: Investments + required: false + - value: Asset.Other Asset.LongTermInvestments + type: String + displayName: Long Term Investments + required: false + - value: Asset.Other Asset.LongTermLoansAndAdvancesToRelatedParties + type: String + displayName: Long Term Loans And Advances To Related Parties + required: false + - value: Asset.Other Asset.OtherIntangibleAssets + type: String + displayName: Other Intangible Assets + required: false + - value: Asset.Other Asset.OtherLongTermInvestments + type: String + displayName: Other Long Term Investments + required: false + - value: Asset.Other Asset.OtherLongTermLoansAndAdvances + type: String + displayName: Other Long Term Loans And Advances + required: false + - value: Asset.Other Asset.PrepaymentsAndAccruedIncome + type: String + displayName: Prepayments And Accrued Income + required: false + - value: Asset.Other Asset.ProvisionsNonCurrentAssets + type: String + displayName: Provisions Non-Current Assets + required: false + - value: Asset.Accounts Receivable.AccountsReceivable + type: String + displayName: Accounts Receivable + required: false + - value: Expense.Expense.AdvertisingPromotional + type: String + displayName: Advertising/Promotional + required: false + - value: Expense.Expense.BadDebts + type: String + displayName: Bad Debts + required: false + - value: Expense.Expense.BankCharges + type: String + displayName: Bank Charges + required: false + - value: Expense.Expense.CharitableContributions + type: String + displayName: Charitable Contributions + required: false + - value: Expense.Expense.CommissionsAndFees + type: String + displayName: Commissions And Fees + required: false + - value: Expense.Expense.Entertainment + type: String + displayName: Entertainment + required: false + - value: Expense.Expense.EntertainmentMeals + type: String + displayName: Entertainment Meals + required: false + - value: Expense.Expense.EquipmentRental + type: String + displayName: Equipment Rental + required: false + - value: Expense.Expense.FinanceCosts + type: String + displayName: Finance Costs + required: false + - value: Expense.Expense.GlobalTaxExpense + type: String + displayName: Global Tax Expense + required: false + - value: Expense.Expense.Insurance + type: String + displayName: Insurance + required: false + - value: Expense.Expense.InterestPaid + type: String + displayName: Interest Paid + required: false + - value: Expense.Expense.LegalProfessionalFees + type: String + displayName: Legal And Professional Fees + required: false + - value: Expense.Expense.OfficeExpenses + type: String + displayName: Office Expenses + required: false + - value: Expense.Expense.OfficeGeneralAdministrativeExpenses + type: String + displayName: Office/General Administrative Expenses + required: false + - value: Expense.Expense.OtherBusinessExpenses + type: String + displayName: Other Business Expenses + required: false + - value: Expense.Expense.OtherMiscellaneousServiceCost + type: String + displayName: Other Miscellaneous Service Cost + required: false + - value: Expense.Expense.PromotionalMeals + type: String + displayName: Promotional Meals + required: false + - value: Expense.Expense.RentOrLeaseOfBuildings + type: String + displayName: Rent Or Lease Of Buildings + required: false + - value: Expense.Expense.RepairMaintenance + type: String + displayName: Repair And Maintenance + required: false + - value: Expense.Expense.ShippingFreightDelivery + type: String + displayName: 'Shipping, Freight And Delivery' + required: false + - value: Expense.Expense.SuppliesMaterials + type: String + displayName: Supplies And Materials + required: false + - value: Expense.Expense.Travel + type: String + displayName: Travel + required: false + - value: Expense.Expense.TravelMeals + type: String + displayName: Travel Meals + required: false + - value: Expense.Expense.Utilities + type: String + displayName: Utilities + required: false + - value: Expense.Expense.Auto + type: String + displayName: Auto + required: false + - value: Expense.Expense.CostOfLabor + type: String + displayName: Cost Of Labor + required: false + - value: Expense.Expense.DuesSubscriptions + type: String + displayName: Dues And Subscriptions + required: false + - value: Expense.Expense.PayrollExpenses + type: String + displayName: Payroll Expenses + required: false + - value: Expense.Expense.TaxesPaid + type: String + displayName: Taxes Paid + required: false + - value: Expense.Expense.UnappliedCashBillPaymentExpense + type: String + displayName: Unapplied Cash Bill Payment Expense + required: false + - value: Expense.Expense.Utilities + type: String + displayName: Utilities + required: false + - value: Expense.Expense.AmortizationExpense + type: String + displayName: Amortization Expense + required: false + - value: Expense.Expense.AppropriationsToDepreciation + type: String + displayName: Appropriations To Depreciation + required: false + - value: Expense.Expense.BorrowingCost + type: String + displayName: Borrowing Cost + required: false + - value: Expense.Expense.CommissionsAndFees + type: String + displayName: Commissions And Fees + required: false + - value: Expense.Expense.DistributionCosts + type: String + displayName: Distribution Costs + required: false + - value: Expense.Expense.ExternalServices + type: String + displayName: External Services + required: false + - value: Expense.Expense.ExtraordinaryCharges + type: String + displayName: Extraordinary Charges + required: false + - value: Expense.Expense.IncomeTaxExpense + type: String + displayName: Income Tax Expense + required: false + - value: Expense.Expense.LossOnDiscontinuedOperationsNetOfTax + type: String + displayName: Loss On Discontinued Operations Net Of Tax + required: false + - value: Expense.Expense.ManagementCompensation + type: String + displayName: Management Compensation + required: false + - value: Expense.Expense.OtherCurrentOperatingCharges + type: String + displayName: Other Current Operating Charges + required: false + - value: Expense.Expense.OtherExternalServices + type: String + displayName: Other External Services + required: false + - value: Expense.Expense.OtherRentalCosts + type: String + displayName: Other Rental Costs + required: false + - value: Expense.Expense.OtherSellingExpenses + type: String + displayName: Other Selling Expenses + required: false + - value: Expense.Expense.ProjectStudiesSurveysAssessments + type: String + displayName: Project Studies Surveys Assessments + required: false + - value: Expense.Expense.PurchasesRebates + type: String + displayName: Purchases Rebates + required: false + - value: Expense.Expense.ShippingAndDeliveryExpense + type: String + displayName: Shipping And Delivery Expense + required: false + - value: Expense.Expense.StaffCosts + type: String + displayName: Staff Costs + required: false + - value: Expense.Expense.Sundry + type: String + displayName: Sundry + required: false + - value: Expense.Expense.TravelExpensesGeneralAndAdminExpenses + type: String + displayName: Travel Expenses General And Admin Expenses + required: false + - value: Expense.Expense.TravelExpensesSellingExpense + type: String + displayName: Travel Expenses Selling Expense + required: false + - value: Expense.Other Expense.Depreciation + type: String + displayName: Depreciation + required: false + - value: Expense.Other Expense.ExchangeGainOrLoss + type: String + displayName: Exchange Gain Or Loss + required: false + - value: Expense.Other Expense.OtherMiscellaneousExpense + type: String + displayName: Other Miscellaneous Expense + required: false + - value: Expense.Other Expense.PenaltiesSettlements + type: String + displayName: Penalties And Settlements + required: false + - value: Expense.Other Expense.Amortization + type: String + displayName: Amortization + required: false + - value: Expense.Other Expense.GasAndFuel + type: String + displayName: Gas And Fuel + required: false + - value: Expense.Other Expense.HomeOffice + type: String + displayName: Home Office + required: false + - value: Expense.Other Expense.HomeOwnerRentalInsurance + type: String + displayName: Home Owner Rental Insurance + required: false + - value: Expense.Other Expense.OtherHomeOfficeExpenses + type: String + displayName: Other Home Office Expenses + required: false + - value: Expense.Other Expense.MortgageInterest + type: String + displayName: Mortgage Interest + required: false + - value: Expense.Other Expense.RentAndLease + type: String + displayName: Rent And Lease + required: false + - value: Expense.Other Expense.RepairsAndMaintenance + type: String + displayName: Repairs And Maintenance + required: false + - value: Expense.Other Expense.ParkingAndTolls + type: String + displayName: Parking And Tolls + required: false + - value: Expense.Other Expense.Vehicle + type: String + displayName: Vehicle + required: false + - value: Expense.Other Expense.VehicleInsurance + type: String + displayName: Vehicle Insurance + required: false + - value: Expense.Other Expense.VehicleLease + type: String + displayName: Vehicle Lease + required: false + - value: Expense.Other Expense.VehicleLoanInterest + type: String + displayName: Vehicle Loan Interest + required: false + - value: Expense.Other Expense.VehicleLoan + type: String + displayName: Vehicle Loan + required: false + - value: Expense.Other Expense.VehicleRegistration + type: String + displayName: Vehicle Registration + required: false + - value: Expense.Other Expense.VehicleRepairs + type: String + displayName: Vehicle Repairs + required: false + - value: Expense.Other Expense.OtherVehicleExpenses + type: String + displayName: Other Vehicle Expenses + required: false + - value: Expense.Other Expense.Utilities + type: String + displayName: Utilities + required: false + - value: Expense.Other Expense.WashAndRoadServices + type: String + displayName: Wash And Road Services + required: false + - value: Expense.Other Expense.DeferredTaxExpense + type: String + displayName: Deferred Tax Expense + required: false + - value: Expense.Other Expense.Depletion + type: String + displayName: Depletion + required: false + - value: Expense.Other Expense.ExceptionalItems + type: String + displayName: Exceptional Items + required: false + - value: Expense.Other Expense.ExtraordinaryItems + type: String + displayName: Extraordinary Items + required: false + - value: Expense.Other Expense.IncomeTaxOtherExpense + type: String + displayName: Income Tax Other Expense + required: false + - value: Expense.Other Expense.MatCredit + type: String + displayName: Mat Credit + required: false + - value: Expense.Other Expense.PriorPeriodItems + type: String + displayName: Prior Period Items + required: false + - value: Expense.Other Expense.TaxRoundoffGainOrLoss + type: String + displayName: Tax Roundoff Gain Or Loss + required: false + - value: Expense.Cost of Goods Sold.EquipmentRentalCos + type: String + displayName: Equipment Rental - COS + required: false + - value: Expense.Cost of Goods Sold.OtherCostsOfServiceCos + type: String + displayName: Other Costs Of Sales - COS + required: false + - value: Expense.Cost of Goods Sold.ShippingFreightDeliveryCos + type: String + displayName: 'Shipping, Freight And Delivery - COS' + required: false + - value: Expense.Cost of Goods Sold.SuppliesMaterialsCogs + type: String + displayName: Supplies And Materials - COS + required: false + - value: Expense.Cost of Goods Sold.CostOfLaborCos + type: String + displayName: Cost Of Labor - COS + required: false + - value: Expense.Cost of Goods Sold.CostOfSales + type: String + displayName: Cost Of Sales + required: false + - value: Expense.Cost of Goods Sold.FreightAndDeliveryCost + type: String + displayName: Freight And Delivery Cost + required: false + - value: Income.Income.NonProfitIncome + type: String + displayName: Non Profit Income + required: false + - value: Income.Income.OtherPrimaryIncome + type: String + displayName: Other Primary Income + required: false + - value: Income.Income.SalesOfProductIncome + type: String + displayName: Sales Of ProductIncome + required: false + - value: Income.Income.ServiceFeeIncome + type: String + displayName: Service Fee Income + required: false + - value: Income.Income.DiscountsRefundsGiven + type: String + displayName: Discounts Refunds Given + required: false + - value: Income.Income.UnappliedCashPaymentIncome + type: String + displayName: Unapplied Cash Payment Income + required: false + - value: Income.Income.CashReceiptIncome + type: String + displayName: Cash Receipt Income + required: false + - value: Income.Income.OperatingGrants + type: String + displayName: Operating Grants + required: false + - value: Income.Income.OtherCurrentOperatingIncome + type: String + displayName: Other Current Operating Income + required: false + - value: Income.Income.OwnWorkCapitalized + type: String + displayName: Own Work Capitalized + required: false + - value: Income.Income.RevenueGeneral + type: String + displayName: Revenue General + required: false + - value: Income.Income.SalesRetail + type: String + displayName: Sales Retail + required: false + - value: Income.Income.SalesWholesale + type: String + displayName: Sales Wholesale + required: false + - value: Income.Income.SavingsByTaxScheme + type: String + displayName: Savings By Tax Scheme + required: false + - value: Income.Other Income.DividendIncome + type: String + displayName: Dividend Income + required: false + - value: Income.Other Income.InterestEarned + type: String + displayName: Interest Earned + required: false + - value: Income.Other Income.OtherInvestmentIncome + type: String + displayName: Other Investment Income + required: false + - value: Income.Other Income.OtherMiscellaneousIncome + type: String + displayName: Other Miscellaneous Income + required: false + - value: Income.Other Income.TaxExemptInterest + type: String + displayName: Tax Exempt Interest + required: false + - value: Income.Other Income.GainLossOnSaleOfFixedAssets + type: String + displayName: Gain Loss On Sale Of Fixed Assets + required: false + - value: Income.Other Income.GainLossOnSaleOfInvestments + type: String + displayName: Gain Loss On Sale Of Investments + required: false + - value: Income.Other Income.LossOnDisposalOfAssets + type: String + displayName: Loss On Disposal Of Assets + required: false + - value: Income.Other Income.OtherOperatingIncome + type: String + displayName: Other Operating Income + required: false + - value: Income.Other Income.UnrealisedLossOnSecuritiesNetOfTax + type: String + displayName: Unrealised Loss On Securities Net Of Tax + required: false + - value: Liability.Accounts Payable.AccountsPayable + type: String + displayName: Accounts Payable + required: false + - value: Liability.Accounts Payable.OutstandingDuesMicroSmallEnterprise + type: String + displayName: Outstanding Dues Micro Small Enterprise + required: false + - value: Liability.Accounts Payable.OutstandingDuesOtherThanMicroSmallEnterprise + type: String + displayName: Outstanding Dues Other Than Micro Small Enterprise + required: false + - value: Liability.Credit Card.CreditCard + type: String + displayName: Credit Card + required: false + - value: Liability.Long Term Liability.NotesPayable + type: String + displayName: Notes Payable + required: false + - value: Liability.Long Term Liability.OtherLongTermLiabilities + type: String + displayName: Other Long Term Liabilities + required: false + - value: Liability.Long Term Liability.ShareholderNotesPayable + type: String + displayName: Shareholder Notes Payable + required: false + - value: Liability.Long Term Liability.AccrualsAndDeferredIncome + type: String + displayName: Accruals And Deferred Income + required: false + - value: Liability.Long Term Liability.AccruedLongLermLiabilities + type: String + displayName: Accrued Long Lerm Liabilities + required: false + - value: Liability.Long Term Liability.AccruedVacationPayable + type: String + displayName: Accrued Vacation Payable + required: false + - value: Liability.Long Term Liability.BankLoans + type: String + displayName: Bank Loans + required: false + - value: Liability.Long Term Liability.DebtsRelatedToParticipatingInterests + type: String + displayName: Debts Related To Participating Interests + required: false + - value: Liability.Long Term Liability.DeferredTaxLiabilities + type: String + displayName: Deferred Tax Liabilities + required: false + - value: Liability.Long Term Liability.GovernmentAndOtherPublicAuthorities + type: String + displayName: Government And Other Public Authorities + required: false + - value: Liability.Long Term Liability.GroupAndAssociates + type: String + displayName: Group And Associates + required: false + - value: Liability.Long Term Liability.LiabilitiesRelatedToAssetsHeldForSale + type: String + displayName: Liabilities Related To Assets Held For Sale + required: false + - value: Liability.Long Term Liability.LongTermBorrowings + type: String + displayName: Long Term Borrowings + required: false + - value: Liability.Long Term Liability.LongTermDebit + type: String + displayName: Long Term Debit + required: false + - value: Liability.Long Term Liability.LongTermEmployeeBenefitObligations + type: String + displayName: Long Term Employee Benefit Obligations + required: false + - value: Liability.Long Term Liability.ObligationsUnderFinanceLeases + type: String + displayName: Obligations Under Finance Leases + required: false + - value: Liability.Long Term Liability.OtherLongTermProvisions + type: String + displayName: Other Long Term Provisions + required: false + - value: Liability.Long Term Liability.ProvisionForLiabilities + type: String + displayName: Provision For Liabilities + required: false + - value: Liability.Long Term Liability.ProvisionsNonCurrentLiabilities + type: String + displayName: Provisions Non Current Liabilities + required: false + - value: Liability.Long Term Liability.StaffAndRelatedLongTermLiabilityAccounts + type: String + displayName: Staff And Related Long Term Liability Accounts + required: false + - value: Liability.Other Current Liability.DirectDepositPayable + type: String + displayName: Direct Deposit Payable + required: false + - value: Liability.Other Current Liability.LineOfCredit + type: String + displayName: Line Of Credit + required: false + - value: Liability.Other Current Liability.LoanPayable + type: String + displayName: Loan Payable + required: false + - value: Liability.Other Current Liability.GlobalTaxPayable + type: String + displayName: Global Tax Payable + required: false + - value: Liability.Other Current Liability.GlobalTaxSuspense + type: String + displayName: Global Tax Suspense + required: false + - value: Liability.Other Current Liability.OtherCurrentLiabilities + type: String + displayName: Other Current Liabilities + required: false + - value: Liability.Other Current Liability.PayrollClearing + type: String + displayName: Payroll Clearing + required: false + - value: Liability.Other Current Liability.PayrollTaxPayable + type: String + displayName: Payroll Tax Payable + required: false + - value: Liability.Other Current Liability.PrepaidExpensesPayable + type: String + displayName: Prepaid Expenses Payable + required: false + - value: Liability.Other Current Liability.RentsInTrustLiability + type: String + displayName: Rents In Trust Liability + required: false + - value: Liability.Other Current Liability.TrustAccountsLiabilities + type: String + displayName: Trust Accounts Liabilities + required: false + - value: Liability.Other Current Liability.FederalIncomeTaxPayable + type: String + displayName: Federal Income Tax Payable + required: false + - value: Liability.Other Current Liability.InsurancePayable + type: String + displayName: Insurance Payable + required: false + - value: Liability.Other Current Liability.SalesTaxPayable + type: String + displayName: Sales Tax Payable + required: false + - value: Liability.Other Current Liability.StateLocalIncomeTaxPayable + type: String + displayName: State Local Income Tax Payable + required: false + - value: Liability.Other Current Liability.AccruedLiabilities + type: String + displayName: Accrued Liabilities + required: false + - value: Liability.Other Current Liability.CurrentLiabilities + type: String + displayName: Current Liabilities + required: false + - value: Liability.Other Current Liability.CurrentPortionEmployeeBenefitsObligations + type: String + displayName: Current Portion EmployeeBenefits Obligations + required: false + - value: Liability.Other Current Liability.CurrentPortionOfObligationsUnderFinanceLeases + type: String + displayName: Current Portion Of Obligations Under Finance Leases + required: false + - value: Liability.Other Current Liability.CurrentTaxLiability + type: String + displayName: Current Tax Liability + required: false + - value: Liability.Other Current Liability.DividendsPayable + type: String + displayName: Dividends Payable + required: false + - value: Liability.Other Current Liability.DutiesAndTaxes + type: String + displayName: Duties And Taxes + required: false + - value: Liability.Other Current Liability.InterestPayables + type: String + displayName: Interest Payables + required: false + - value: Liability.Other Current Liability.ProvisionForWarrantyObligations + type: String + displayName: Provision For Warranty Obligations + required: false + - value: Liability.Other Current Liability.ProvisionsCurrentLiabilities + type: String + displayName: Provisions Current Liabilities + required: false + - value: Liability.Other Current Liability.ShortTermBorrowings + type: String + displayName: Short Term Borrowings + required: false + - value: Liability.Other Current Liability.SocialSecurityAgencies + type: String + displayName: Social Security Agencies + required: false + - value: Liability.Other Current Liability.StaffAndRelatedLiabilityAccounts + type: String + displayName: Staff And Related Liability Accounts + required: false + - value: Liability.Other Current Liability.SundryDebtorsAndCreditors + type: String + displayName: Sundry Debtors And Creditors + required: false + - value: Liability.Other Current Liability.TradeAndOtherPayables + type: String + displayName: Trade And Other Payables + required: false + - value: Equity.Equity.OpeningBalanceEquity + type: String + displayName: Opening Balance Equity + required: false + - value: Equity.Equity.PartnersEquity + type: String + displayName: Partners Equity + required: false + - value: Equity.Equity.RetainedEarnings + type: String + displayName: Retained Earnings + required: false + - value: Equity.Equity.AccumulatedAdjustment + type: String + displayName: Accumulated Adjustment + required: false + - value: Equity.Equity.OwnersEquity + type: String + displayName: Owners Equity + required: false + - value: Equity.Equity.PaidInCapitalOrSurplus + type: String + displayName: Paid In Capital Or Surplus + required: false + - value: Equity.Equity.PartnerContributions + type: String + displayName: Partner Contributions + required: false + - value: Equity.Equity.PartnerDistributions + type: String + displayName: Partner Distributions + required: false + - value: Equity.Equity.PreferredStock + type: String + displayName: Preferred Stock + required: false + - value: Equity.Equity.CommonStock + type: String + displayName: Common Stock + required: false + - value: Equity.Equity.TreasuryStock + type: String + displayName: Treasury Stock + required: false + - value: Equity.Equity.EstimatedTaxes + type: String + displayName: Estimated Taxes + required: false + - value: Equity.Equity.Healthcare + type: String + displayName: Healthcare + required: false + - value: Equity.Equity.PersonalIncome + type: String + displayName: Personal Income + required: false + - value: Equity.Equity.PersonalExpense + type: String + displayName: Personal Expense + required: false + - value: Equity.Equity.AccumulatedOtherComprehensiveIncome + type: String + displayName: Accumulated Other Comprehensive Income + required: false + - value: Equity.Equity.CalledUpShareCapital + type: String + displayName: Called Up Share Capital + required: false + - value: Equity.Equity.CapitalReserves + type: String + displayName: Capital Reserves + required: false + - value: Equity.Equity.DividendDisbursed + type: String + displayName: Dividend Disbursed + required: false + - value: Equity.Equity.EquityInEarningsOfSubsiduaries + type: String + displayName: Equity In Earnings Of Subsiduaries + required: false + - value: Equity.Equity.InvestmentGrants + type: String + displayName: Investment Grants + required: false + - value: Equity.Equity.MoneyReceivedAgainstShareWarrants + type: String + displayName: Money Received Against Share Warrants + required: false + - value: Equity.Equity.OtherFreeReserves + type: String + displayName: Other Free Reserves + required: false + - value: Equity.Equity.ShareApplicationMoneyPendingAllotment + type: String + displayName: Share Application Money Pending Allotment + required: false + - value: Equity.Equity.ShareCapital + type: String + displayName: Share Capital + required: false + - value: Equity.Equity.Funds + type: String + displayName: Funds + required: false + required: true + required: true + Sage Business Cloud Accounting: + value: + type: Object + displayName: Nominal Account + description: Nominal Accounts are the categories a business uses to record transactions + properties: + name: + type: String + displayName: Name + description: Name of the account + required: true + validation: + warnings: [] + information: + - field: Name + details: Should not be longer than 200 characters. + nominalCode: + type: String + displayName: Nominal Code + description: The external reference given to each nominal account for a business + required: true + validation: + warnings: [] + information: + - field: NominalCode + details: Should be a number between 1 and 99999999. + fullyQualifiedCategory: + type: String + displayName: Fully Qualified Category + description: The full category of the account e.g. Liability.Current or Income.Revenue + options: + - value: SALES + type: String + displayName: Sales + required: false + - value: OTHER_INCOME + type: String + displayName: Other Income + required: false + - value: DIRECT_EXPENSES + type: String + displayName: Direct Expenses + required: false + - value: OVERHEADS + type: String + displayName: Overheads + required: false + - value: DEPRECIATION + type: String + displayName: Depreciation + required: false + - value: CURRENT_ASSETS + type: String + displayName: Current Assets + required: false + - value: FIXED_ASSETS + type: String + displayName: Fixed Assets + required: false + - value: FUTURE_ASSETS + type: String + displayName: Future Assets + required: false + - value: BANK + type: String + displayName: Bank + required: false + - value: CURRENT_LIABILITY + type: String + displayName: Current Liability + required: false + - value: FUTURE_LIABILITY + type: String + displayName: Future Liability + required: false + - value: EQUITY + type: String + displayName: Equity + required: false + - value: LINE_OF_CREDIT + type: String + displayName: Credit Card / Loan + required: false + required: true + required: true + Sage Intacct: + value: + type: Object + displayName: Nominal Account + description: Nominal Accounts are the categories a business uses to record transactions + properties: + nominalCode: + type: String + displayName: Nominal Code + description: The external reference given to each nominal account for a business + required: true + validation: + warnings: + - field: NominalCode + details: Must be unique within the entity. + - field: NominalCode + details: 'Must be at most 24 characters in length, although restrictions may vary between entities.' + information: [] + name: + type: String + displayName: Name + description: Name of the account + required: true + status: + type: String + displayName: Account Status + description: The status of the account + options: + - value: Active + type: String + displayName: Active + required: false + - value: Archived + type: String + displayName: Archived + required: false + required: true + type: + type: String + displayName: Account Type + description: 'The type, or base category, of the account' + options: + - value: Asset + type: String + displayName: Asset + required: false + - value: Equity + type: String + displayName: Equity + required: false + - value: Expense + type: String + displayName: Expense + required: false + - value: Income + type: String + displayName: Income + required: false + - value: Liability + type: String + displayName: Liability + required: false + required: true + fullyQualifiedCategory: + type: String + displayName: Fully Qualified Category + description: The full category of the account e.g. Liability.Current or Income.Revenue + required: true + validation: + warnings: [] + information: + - field: FullyQualifiedCategory + details: 'Any category that is part of the hierarchy of one of: ''Assets'', ''Equity'', ''Liabilities'', ''Total Expenses'' and ''Total Income'' is permitted.' + required: true + Sandbox: + value: + type: Object + displayName: Nominal Account + description: Nominal Accounts are the categories a business uses to record transactions + properties: + nominalCode: + type: String + displayName: Nominal Code + description: The external reference given to each nominal account for a business + required: true + name: + type: String + displayName: Name + description: Name of the account + required: true + description: + type: String + displayName: Description + description: Description of the account + required: true + fullyQualifiedCategory: + type: String + displayName: Fully Qualified Category + description: The full category of the account e.g. Liability.Current or Income.Revenue + required: true + fullyQualifiedName: + type: String + displayName: Fully Qualified Name + description: The full name of the account e.g. Liability.Current.VAT or Income.Revenue.Sales + required: true + currency: + type: String + displayName: Currency + description: The currency of the account + required: true + currentBalance: + type: Number + displayName: Current Balance + description: The current balance in the account + required: true + type: + type: String + displayName: Account Type + description: 'The type, or base category, of the account' + required: true + status: + type: String + displayName: Account Status + description: The status of the account + required: true + isBankAccount: + type: Boolean + displayName: Is Bank Account? + description: Confirms whether the nominal account represents a bank account or not + required: true + validDatatypeLinks: + type: Array + displayName: Valid Datatype Links + description: Describes which fields on other data types are valid links to this account in the originating system + properties: + property: + type: String + displayName: Property + description: The field on the source data type that other data types can link to + required: true + links: + type: Array + displayName: Links + description: 'A collection of absolute names of fields from other data types, e.g. Invoice.LineItems.AccountRef.Id' + required: true + required: true + metadata: + type: Object + displayName: Metadata + description: Miscellaneous data about the item + properties: + isDeleted: + type: Boolean + displayName: IsDeleted + description: A boolean to indicate whether the object has been deleted + required: true + required: true + required: true + Xero: + value: + type: Object + displayName: Nominal Account + description: Nominal Accounts are the categories a business uses to record transactions + properties: + nominalCode: + type: String + displayName: Nominal Code + description: Identifier for the nominal account. + required: true + validation: + warnings: + - field: NominalCode + details: Max length of 10 characters. + information: [] + name: + type: String + displayName: Name + description: Name of account as it appears in the chart of accounts or general ledger. + required: true + validation: + warnings: [] + information: + - field: Name + details: Payments are enabled to this account if the name ends in .PaymentsEnabled. + description: + type: String + displayName: Description + description: Description for the nominal account. + required: false + fullyQualifiedCategory: + type: String + displayName: Fully Qualified Category + description: Account type and category for nominal account. + options: + - value: Asset.Current + type: String + displayName: Current Asset + required: false + - value: Asset.Fixed + type: String + displayName: Fixed Asset + required: false + - value: Asset.Inventory + type: String + displayName: Inventory + required: false + - value: Asset.NonCurrent + type: String + displayName: Non-current Asset + required: false + - value: Asset.Prepayment + type: String + displayName: Prepayment + required: false + - value: Expense.DirectCosts + type: String + displayName: Direct Costs + required: false + - value: Expense.Expense + type: String + displayName: Expense + required: false + - value: Expense.Overhead + type: String + displayName: Overhead + required: false + - value: Expense.Superannuation + type: String + displayName: Superannuation + required: false + - value: Expense.Wages + type: String + displayName: Wages + required: false + - value: Income.Sales + type: String + displayName: Sales + required: false + - value: Income.Revenue + type: String + displayName: Revenue + required: false + - value: Income.Other + type: String + displayName: Other Income + required: false + - value: Liability.Current + type: String + displayName: Current Liability + required: false + - value: Liability.Depreciation + type: String + displayName: Depreciation + required: false + - value: Liability.Liability + type: String + displayName: Liability + required: false + - value: Liability.NonCurrent + type: String + displayName: Non Current Liability + required: false + - value: Liability.PayAsYouGo + type: String + displayName: Pay As You Go Liability + required: false + - value: Liability.Superannuation + type: String + displayName: Superannuation Liability + required: false + - value: Liability.WagesPayable + type: String + displayName: Wages Payable Liability + required: false + - value: Equity.Equity + type: String + displayName: Equity + required: false + required: true + required: true + '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' + operationId: get-create-chartOfAccounts-model description: |- - > **Language tip:** Profit and loss statement is also referred to as **income statement** under US GAAP (Generally Accepted Accounting Principles). - - ## Overview - - The purpose of a profit and loss report is to present the financial performance of a company over a specified time period. - - A profit and loss report shows a company's total income and expenses for a specified period of time and whether a profit or loss has been made. - - > **Profit and loss or balance sheet?** - > Profit and loss reports summarise the total revenue, expenses, and profit or loss over a specified time period. A balance sheet report presents all assets, liability, and equity for a given date. - - - **Structure of this report** - This report will reflect the structure and line descriptions that the business has set in their own accounting software. + The *Get create account model* endpoint returns the expected data for the request payload when creating an [account](https://docs.codat.io/sync-for-expenses-api#/schemas/Account) for a given company and integration. - **History** - By default, Codat pulls (up to) 24 months of profit and loss history for a company. You can adjust this to fetch more history, where available, by updating the `monthsToSync` value for `profitAndLoss` on the [data type settings endpoint](https://docs.codat.io/lending-api#/operations/post-profile-syncSettings). - - **Want to pull this in a standardised structure?** - Our [Enhanced Financials](https://docs.codat.io/lending/features/financial-statements-overview) endpoints provide the same report under standardized headings, allowing you to pull it in the same format for all of your business customers. - type: object - properties: - reports: - type: array - description: An array of profit and loss reports. - items: - $ref: '#/components/schemas/AccountingProfitAndLossReport/definitions/profitAndLossReport' - reportBasis: - $ref: '#/components/schemas/AccountingProfitAndLossReport/definitions/reportBasis' - currency: - type: string - description: Base currency of the company in which the profit and loss report is presented. - mostRecentAvailableMonth: - $ref: '#/components/schemas/DateTime' - description: Most recent available monthly report data. - earliestAvailableMonth: - $ref: '#/components/schemas/DateTime' - description: Earliest available monthly report data. - required: - - reports - - reportBasis - definitions: - reportBasis: - enum: - - Unknown - - Accrual - - Cash - type: string - description: The basis of a report. - profitAndLossReport: - type: object - additionalProperties: false - properties: - fromDate: - $ref: '#/components/schemas/DateTime' - description: Date from which the report data begins. - toDate: - $ref: '#/components/schemas/DateTime' - description: Date on which the report data ends. - income: - $ref: '#/components/schemas/ReportLine' - description: ReportLine items for income in the given date range. - costOfSales: - $ref: '#/components/schemas/ReportLine' - description: ReportLine items for cost of sales in the given date range. - grossProfit: - type: number - format: decimal - description: Gross profit of the company in the given date range. - expenses: - $ref: '#/components/schemas/ReportLine' - description: ReportLine items for expenses in the given date range. - netOperatingProfit: - type: number - format: decimal - description: Net operating profit of the company in the given date range. - otherExpenses: - $ref: '#/components/schemas/ReportLine' - description: ReportLine items for other expenses in the given date range. - otherIncome: - $ref: '#/components/schemas/ReportLine' - description: ReportLine items for other income in the given date range. - netOtherIncome: - type: number - format: decimal - description: Net other income of the company in the given date range. - netProfit: - type: number - format: decimal - description: Net profit of the company in the given date range. - required: - - grossProfit - - netOperatingProfit - - netOtherIncome - - netProfit - AccountingRecordRef: - type: object - x-internal: true - title: Record reference - description: |- - Links the current record to the underlying record or data type that created it. + [Accounts](https://docs.codat.io/sync-for-expenses-api#/schemas/Account) are the categories a business uses to record accounting transactions. - For example, if a journal entry is generated based on an invoice, this property allows you to connect the journal entry to the underlying invoice in our data model. - properties: - id: - type: string - description: '''id'' of the underlying record or data type.' - dataType: - type: string - description: Allowed name of the 'dataType'. - examples: - - journalEntry - - invoice - - accountTransaction - - transfer - AccountingSupplier: - title: 'Accounting: Supplier' - description: |- - ## Overview + **Integration-specific behavior** - From the **Suppliers** endpoints, you can retrieve a list of [all the suppliers for a company](https://docs.codat.io/lending-api#/operations/list-suppliers). Suppliers' data links to accounts payable [bills](https://docs.codat.io/lending-api#/schemas/Bill). - type: object - allOf: - - type: object - properties: - id: - type: string - description: 'Identifier for the supplier, unique to the company in the accounting software.' - supplierName: - type: string - nullable: true - description: 'Name of the supplier as recorded in the accounting system, typically the company name.' - contactName: - type: string - nullable: true - description: Name of the main contact for the supplier. - emailAddress: - type: string - nullable: true - description: Email address that the supplier may be contacted on. - phone: - type: string - nullable: true - description: Phone number that the supplier may be contacted on. + See the *response examples* for integration-specific indicative models. + '/companies/{companyId}/connections/{connectionId}/push/bankAccounts': + parameters: + - $ref: '#/components/parameters/companyId' + - $ref: '#/components/parameters/connectionId' + post: + tags: + - Bank accounts + parameters: + - $ref: '#/components/parameters/timeoutInMinutes' + - $ref: '#/components/parameters/allowSyncOnPushComplete' + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/BankAccount' + examples: + QuickBooks Online: + value: + accountName: GBP Bank Account + accountType: Debit + accountNumber: '12345678' + currency: GBP + status: Active + Xero: + value: + accountName: Xero GBP Bank Account + accountType: Debit + sortCode: '445566' + accountNumber: '12345678' + currency: GBP + status: Active + responses: + '200': + description: Success + content: + application/json: + schema: + $ref: '#/components/schemas/CreateBankAccountResponse' + examples: {} + '400': + $ref: '#/components/responses/BadRequest' + '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' + summary: Create bank account + description: "The *Create bank account* endpoint creates a new [bank account](https://docs.codat.io/sync-for-expenses-api#/schemas/BankAccount) for a given company's connection.\r\n\r\n[Bank accounts](https://docs.codat.io/sync-for-expenses-api#/schemas/BankAccount) are financial accounts maintained by a bank or other financial institution.\r\n\r\n**Integration-specific behavior**\r\n\r\nRequired data may vary by integration. To see what data to post, first call [Get create/update bank account model](https://docs.codat.io/sync-for-expenses-api#/operations/get-create-update-bankAccounts-model)." + operationId: create-bank-account + '/companies/{companyId}/connections/{connectionId}/options/bankAccounts': + parameters: + - $ref: '#/components/parameters/companyId' + - $ref: '#/components/parameters/connectionId' + get: + summary: Get create bank account model + tags: + - Bank accounts + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/PushOption' examples: - - +44 25691 154789 - - (877) 492-8687 - - 01224 658 999 - addresses: - type: array - nullable: true - description: An array of Addresses. - items: - $ref: '#/components/schemas/AccountingAddress' - registrationNumber: - type: string - nullable: true - description: 'Company number of the supplier. In the UK, this is typically the company registration number issued by Companies House.' - taxNumber: - type: string - nullable: true - description: Supplier's company tax number. - status: - $ref: '#/components/schemas/AccountingSupplier/definitions/supplierStatus' - defaultCurrency: - type: string - nullable: true - description: Default currency the supplier's transactional data is recorded in. - metadata: - $ref: '#/components/schemas/Metadata' - supplementalData: - $ref: '#/components/schemas/SupplementalData' - - $ref: '#/components/schemas/CommerceOrder/allOf/3' - required: - - status - definitions: - supplierRef: - title: Supplier reference - description: Reference to the supplier the record relates to. - type: object - properties: - id: - minLength: 1 - type: string - description: The supplier's unique ID - supplierName: - type: string - nullable: true - description: The supplier's name - required: - - id - supplierStatus: - description: Status of the supplier. - type: string - enum: - - Unknown - - Active - - Archived - examples: - - id: C520FFD4-F6F6-4FC2-A6D2-5D7088B2B14F - supplierName: Kelly's Industrial Supplies - contactName: Kelly's Industrial Supplies - emailAddress: sales@kellysupplies.com - phone: 07999 999999 - addresses: - - type: Billing - line1: Unit 51 - line2: Bakersfield Industrial Estate - city: Bakersfield - region: California - country: USA - postalcode: '93308' - registrationNumber: string - taxNumber: string - status: Unknown - defaultCurrency: string - metadata: - isDeleted: true - supplementalData: - content: - property1: - property1: null - property2: null - property2: - property1: null - property2: null - modifiedDate: '2022-10-23T00:00:00Z' - sourceModifiedDate: '2022-10-23T00:00:00Z' - AccountingSuppliers: - title: Suppliers - x-internal: true - allOf: - - type: object - properties: - results: - type: array - items: - $ref: '#/components/schemas/AccountingSupplier' - - $ref: '#/components/schemas/PagingInfo' - AccountingTrackingCategory: - x-internal: true - title: 'Accounting: Tracking category' + Dynamics 365 Business Central: + value: + type: Object + displayName: Bank Account + description: An account that bank transactions may be recorded against + properties: + accountName: + type: String + displayName: Name + description: The name of the bank account in the originating system + required: true + validation: + warnings: [] + information: + - field: AccountName + details: 'Needs to be of the format ''{No.}-{Name}''' + currency: + type: String + displayName: Currency + description: The currency of the bank account + required: true + accountNumber: + type: String + displayName: Account Number + description: The account number for the bank account + required: false + nominalCode: + type: String + displayName: Nominal Code + description: The external reference given to each nominal account for a business + required: false + validation: + warnings: [] + information: + - field: NominalCode + details: Bank Account Posting Group with Nominal Account must exist + sortCode: + type: String + displayName: Sort Code + description: The sort code for the bank account + required: false + validation: + warnings: [] + information: + - field: SortCode + details: Must have a length between 0 and 20 characters + iBan: + type: String + displayName: IBAN + description: The international bank account number of the account. Often used when making or receiving international payments + required: false + overdraftLimit: + type: Number + displayName: Overdraft Limit + description: The pre-arranged overdraft limit of the account + required: false + validation: + warnings: [] + information: + - field: OverdraftLimit + details: Default value is 0 + required: true + Exact (Netherlands): + value: + type: Object + displayName: Bank Account + description: An account that bank transactions may be recorded against + properties: + accountName: + type: String + displayName: Name + description: The name of the bank account in the originating system + required: true + accountNumber: + type: String + displayName: Account Number + description: The account number for the bank account + required: true + validation: + warnings: + - field: AccountNumber + details: Should not exceed the maximum length of 14 characters if the specified currency is GBP. + information: [] + sortCode: + type: String + displayName: Sort Code + description: The sort code for the bank account + required: false + validation: + warnings: + - field: SortCode + details: Must be 6 characters long if the specified currency is GBP. + - field: SortCode + details: Must be provided if the specified currency is GBP. + information: [] + currency: + type: String + displayName: Currency + description: The currency of the bank account + required: false + nominalCode: + type: String + displayName: Nominal Code + description: The external reference given to each nominal account for a business + required: false + required: true + Exact (UK): + value: + type: Object + displayName: Bank Account + description: An account that bank transactions may be recorded against + properties: + accountName: + type: String + displayName: Name + description: The name of the bank account in the originating system + required: true + accountNumber: + type: String + displayName: Account Number + description: The account number for the bank account + required: true + validation: + warnings: + - field: AccountNumber + details: Should not exceed the maximum length of 14 characters if the specified currency is GBP. + information: [] + sortCode: + type: String + displayName: Sort Code + description: The sort code for the bank account + required: false + validation: + warnings: + - field: SortCode + details: Must be 6 characters long if the specified currency is GBP. + - field: SortCode + details: Must be provided if the specified currency is GBP. + information: [] + currency: + type: String + displayName: Currency + description: The currency of the bank account + required: false + nominalCode: + type: String + displayName: Nominal Code + description: The external reference given to each nominal account for a business + required: false + required: true + FreeAgent: + value: + type: Object + displayName: Bank Account + description: An account that bank transactions may be recorded against + properties: + accountName: + type: String + displayName: Name + description: The name of the bank account in the originating system + required: true + sortCode: + type: String + displayName: Sort Code + description: The sort code for the bank account + required: false + validation: + warnings: + - field: SortCode + details: Must have a length between 0 and 8 characters + information: [] + accountNumber: + type: String + displayName: Account Number + description: The account number for the bank account + required: false + iBan: + type: String + displayName: IBAN + description: The international bank account number of the account. Often used when making or receiving international payments + required: false + currency: + type: String + displayName: Currency + description: The currency of the bank account + options: + - value: AED + type: String + displayName: AED + required: false + - value: AMD + type: String + displayName: AMD + required: false + - value: AOA + type: String + displayName: AOA + required: false + - value: ARS + type: String + displayName: ARS + required: false + - value: AUD + type: String + displayName: AUD + required: false + - value: AWG + type: String + displayName: AWG + required: false + - value: AZN + type: String + displayName: AZN + required: false + - value: BBD + type: String + displayName: BBD + required: false + - value: BDT + type: String + displayName: BDT + required: false + - value: BGN + type: String + displayName: BGN + required: false + - value: BRL + type: String + displayName: BRL + required: false + - value: BWP + type: String + displayName: BWP + required: false + - value: CAD + type: String + displayName: CAD + required: false + - value: CHF + type: String + displayName: CHF + required: false + - value: CLP + type: String + displayName: CLP + required: false + - value: CNY + type: String + displayName: CNY + required: false + - value: COP + type: String + displayName: COP + required: false + - value: CRC + type: String + displayName: CRC + required: false + - value: CUC + type: String + displayName: CUC + required: false + - value: CUP + type: String + displayName: CUP + required: false + - value: CZK + type: String + displayName: CZK + required: false + - value: DKK + type: String + displayName: DKK + required: false + - value: DOP + type: String + displayName: DOP + required: false + - value: EGP + type: String + displayName: EGP + required: false + - value: EUR + type: String + displayName: EUR + required: false + - value: FJD + type: String + displayName: FJD + required: false + - value: GBP + type: String + displayName: GBP + required: false + - value: GEL + type: String + displayName: GEL + required: false + - value: GHS + type: String + displayName: GHS + required: false + - value: GTQ + type: String + displayName: GTQ + required: false + - value: GYD + type: String + displayName: GYD + required: false + - value: HKD + type: String + displayName: HKD + required: false + - value: HNL + type: String + displayName: HNL + required: false + - value: HRK + type: String + displayName: HRK + required: false + - value: HUF + type: String + displayName: HUF + required: false + - value: IDR + type: String + displayName: IDR + required: false + - value: ILS + type: String + displayName: ILS + required: false + - value: INR + type: String + displayName: INR + required: false + - value: ISK + type: String + displayName: ISK + required: false + - value: JMD + type: String + displayName: JMD + required: false + - value: JPY + type: String + displayName: JPY + required: false + - value: KES + type: String + displayName: KES + required: false + - value: KRW + type: String + displayName: KRW + required: false + - value: KWD + type: String + displayName: KWD + required: false + - value: KYD + type: String + displayName: KYD + required: false + - value: KZT + type: String + displayName: KZT + required: false + - value: LAK + type: String + displayName: LAK + required: false + - value: LBP + type: String + displayName: LBP + required: false + - value: LKR + type: String + displayName: LKR + required: false + - value: LTL + type: String + displayName: LTL + required: false + - value: LVL + type: String + displayName: LVL + required: false + - value: MAD + type: String + displayName: MAD + required: false + - value: MDL + type: String + displayName: MDL + required: false + - value: MGA + type: String + displayName: MGA + required: false + - value: MUR + type: String + displayName: MUR + required: false + - value: MVR + type: String + displayName: MVR + required: false + - value: MWK + type: String + displayName: MWK + required: false + - value: MXN + type: String + displayName: MXN + required: false + - value: MYR + type: String + displayName: MYR + required: false + - value: MZN + type: String + displayName: MZN + required: false + - value: NAD + type: String + displayName: NAD + required: false + - value: NGN + type: String + displayName: NGN + required: false + - value: NOK + type: String + displayName: NOK + required: false + - value: NPR + type: String + displayName: NPR + required: false + - value: NZD + type: String + displayName: NZD + required: false + - value: OMR + type: String + displayName: OMR + required: false + - value: PEN + type: String + displayName: PEN + required: false + - value: PHP + type: String + displayName: PHP + required: false + - value: PKR + type: String + displayName: PKR + required: false + - value: PLN + type: String + displayName: PLN + required: false + - value: QAR + type: String + displayName: QAR + required: false + - value: RON + type: String + displayName: RON + required: false + - value: RSD + type: String + displayName: RSD + required: false + - value: RUB + type: String + displayName: RUB + required: false + - value: RWF + type: String + displayName: RWF + required: false + - value: SAR + type: String + displayName: SAR + required: false + - value: SCR + type: String + displayName: SCR + required: false + - value: SEK + type: String + displayName: SEK + required: false + - value: SGD + type: String + displayName: SGD + required: false + - value: THB + type: String + displayName: THB + required: false + - value: TND + type: String + displayName: TND + required: false + - value: TRY + type: String + displayName: TRY + required: false + - value: TTD + type: String + displayName: TTD + required: false + - value: TWD + type: String + displayName: TWD + required: false + - value: TZS + type: String + displayName: TZS + required: false + - value: UAH + type: String + displayName: UAH + required: false + - value: UGX + type: String + displayName: UGX + required: false + - value: USD + type: String + displayName: USD + required: false + - value: UYU + type: String + displayName: UYU + required: false + - value: VEF + type: String + displayName: VEF + required: false + - value: VND + type: String + displayName: VND + required: false + - value: VUV + type: String + displayName: VUV + required: false + - value: XAF + type: String + displayName: XAF + required: false + - value: XCD + type: String + displayName: XCD + required: false + - value: XOF + type: String + displayName: XOF + required: false + - value: ZAR + type: String + displayName: ZAR + required: false + - value: ZMK + type: String + displayName: ZMK + required: false + required: true + balance: + type: Number + displayName: Balance + description: The balance of the bank account + required: false + validation: + warnings: [] + information: + - field: Balance + details: 'The opening balance, in the account currency' + institution: + type: String + displayName: Institution + description: The institution of the bank account + required: false + required: true + KashFlow: + value: + type: Object + displayName: Bank Account + description: An account that bank transactions may be recorded against + properties: + accountName: + type: String + displayName: Account Name + description: Name of the bank account as it appears in Kashflow. + required: true + balance: + type: Number + displayName: Balance + description: 'The opening balance, in the account currency.' + required: false + currency: + type: String + displayName: Currency + description: The currency of the bank account. + required: true + required: true + QuickBooks Desktop: + value: + type: Object + displayName: Bank Account + description: An account that bank transactions may be recorded against + properties: + nominalCode: + type: String + displayName: Nominal Code + description: The external reference given to each nominal account for a business + required: true + validation: + warnings: + - field: NominalCode + details: Max length of 7 characters. + information: [] + accountName: + type: String + displayName: Name + description: The name of the bank account in the originating system + required: true + validation: + warnings: + - field: AccountName + details: Max length of 31 characters. + information: [] + currency: + type: String + displayName: Currency + description: The currency of the bank account + required: false + validation: + warnings: + - field: Currency + details: 'The currency must match the base currency of the QuickBooks Desktop company unless the FullyQualifiedCategory is ''Asset.AccountsReceivable'',''Liability.AccountsPayable'' or ''Liability.CreditCard''' + - field: Currency + details: Must be a three letter ISO code that matches an existing active currency in the QuickBooks Desktop company + - field: Currency + details: Can only be set if the QuickBooks Desktop company has Multicurrency enabled. + information: + - field: Currency + details: 'If not set, will default to the base currency of the QuickBooks Desktop company' + balance: + type: Number + displayName: Balance + description: The balance of the bank account + required: false + required: true + QuickBooks Online Sandbox: + value: + type: Object + displayName: Bank Account + description: An account that bank transactions may be recorded against + properties: + accountName: + type: String + displayName: Account Name + description: Name of account as it appears in the chart of accounts or general ledger. + required: true + accountNumber: + type: String + displayName: Account Number + description: User-defined account number to help the user in identifying the account within the chart-of-accounts and in deciding what should be posted to the account. + required: true + currency: + type: String + displayName: Currency + description: Currency of the bank account. + required: true + required: true + Sage Business Cloud Accounting: + value: + type: Object + displayName: Bank Account + description: An account that bank transactions may be recorded against + properties: + accountName: + type: String + displayName: Name + description: The name of the bank account in the originating system + required: true + validation: + warnings: [] + information: + - field: AccountName + details: Must be provided. + - field: AccountName + details: Should not be longer than 50 characters. + currency: + type: String + displayName: Currency + description: The currency of the bank account + required: true + validation: + warnings: [] + information: + - field: Currency + details: Must be provided. + - field: Currency + details: Must match the company's base currency. + sortCode: + type: String + displayName: Sort Code + description: The sort code for the bank account + required: false + validation: + warnings: [] + information: + - field: SortCode + details: Should be a 6 digit number. + accountNumber: + type: String + displayName: Account Number + description: The account number for the bank account + required: false + validation: + warnings: [] + information: + - field: AccountNumber + details: Should not be longer than 25 characters. + iBan: + type: String + displayName: IBAN + description: The international bank account number of the account. Often used when making or receiving international payments + required: false + validation: + warnings: [] + information: + - field: IBan + details: Should be in the international bank account number format. + nominalCode: + type: String + displayName: Nominal Code + description: The external reference given to each nominal account for a business + required: false + validation: + warnings: [] + information: + - field: NominalCode + details: Should be a number between 1 and 99999999. + required: true + Sandbox: + value: + type: Object + displayName: Bank Account + description: An account that bank transactions may be recorded against + properties: + accountName: + type: String + displayName: Name + description: The name of the bank account in the originating system + required: true + accountType: + type: String + displayName: Account Type + description: The type of account + required: true + nominalCode: + type: String + displayName: Nominal Code + description: The external reference given to each nominal account for a business + required: true + sortCode: + type: String + displayName: Sort Code + description: The sort code for the bank account + required: true + accountNumber: + type: String + displayName: Account Number + description: The account number for the bank account + required: true + iBan: + type: String + displayName: IBAN + description: The international bank account number of the account. Often used when making or receiving international payments + required: true + currency: + type: String + displayName: Currency + description: The currency of the bank account + required: true + balance: + type: Number + displayName: Balance + description: The balance of the bank account + required: true + availableBalance: + type: Number + displayName: Available Balance + description: The available balance of the bank account + required: true + overdraftLimit: + type: Number + displayName: Overdraft Limit + description: The pre-arranged overdraft limit of the account + required: true + institution: + type: String + displayName: Institution + description: The institution of the bank account + required: true + metadata: + type: Object + displayName: Metadata + description: Miscellaneous data about the item + properties: + isDeleted: + type: Boolean + displayName: IsDeleted + description: A boolean to indicate whether the object has been deleted + required: true + required: true + required: true + '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' + operationId: get-create-bankAccounts-model + description: "The *Get create/update bank account model* endpoint returns the expected data for the request payload when creating and updating a [bank account](https://docs.codat.io/sync-for-expenses-api#/schemas/BankAccount) for a given company and integration.\r\n\r\n[Bank accounts](https://docs.codat.io/sync-for-expenses-api#/schemas/BankAccount) are financial accounts maintained by a bank or other financial institution.\r\n\r\n**Integration-specific behavior**\r\n\r\nSee the *response examples* for integration-specific indicative models.\r\n" + '/companies/{companyId}/data/customers': + parameters: + - $ref: '#/components/parameters/companyId' + get: + tags: + - Customers + summary: List customers + 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/Customers' + examples: + Clear Books: + value: + results: + - id: c8180244-74ac-40cf-a5df-6d83661c44d7 + customerName: Arjun Kuvalis + contactName: Werner Langworth + emailAddress: Arjun34@hotmail.com + defaultCurrency: GBP + phone: 014605 64820 + addresses: + - type: Delivery + line1: Suite 214 + line2: 8439 Lueilwitz Passage + city: Fernandohaven + region: Northern Ireland + country: United Kingdom + postalCode: JG04 7PV + - type: Delivery + line1: Suite 096 + line2: 864 Halie Course + city: Juliochester + region: England + country: United Kingdom + postalCode: DZ8 4BF + - type: Delivery + line1: Suite 001 + line2: 416 Stokes Fords + city: Naderborough + region: Wales + country: United Kingdom + postalCode: XG25 0XX + contacts: + - name: Werner Langworth + email: Werner_Langworth@hotmail.com + phone: [] + address: + type: Delivery + line1: Apt. 145 + line2: 317 Williamson Freeway + city: Hortenseville + region: Scotland + country: United Kingdom + postalCode: CV4 2HR + status: Active + - name: Belle Glover + email: Belle51@yahoo.com + phone: [] + address: + type: Delivery + line1: Suite 075 + line2: 9921 Dickens Walk + city: South Ali + region: Scotland + country: United Kingdom + postalCode: TI04 4OO + status: Active + registrationNumber: NI7JEJVM + taxNumber: '7505220209.583549' + status: Active + modifiedDate: '2023-04-26T12:38:16Z' + sourceModifiedDate: '2022-07-03T01:27:00' + metadata: + isDeleted: false + - id: 6d162ee4-47b4-46c6-a2e6-aa9edd0fe6b0 + customerName: 'Breitenberg, Emard and Schiller' + contactName: Miguel Hahn + emailAddress: contact@BreitenbergEmardandSchiller.biz + defaultCurrency: GBP + phone: 0800 445 6957 + addresses: + - type: Billing + line1: Apt. 184 + line2: 60578 Louie Springs + city: East Khalid + region: Wales + country: United Kingdom + postalCode: XW89 7NT + contacts: + - name: Miguel Hahn + email: Miguel.Hahn@gmail.com + phone: + - number: 018555 09614 + type: Landline + address: + type: Delivery + line1: Suite 400 + line2: 21930 Milan Lane + city: Reingerton + region: Wales + country: United Kingdom + postalCode: QG10 2DL + status: Active + registrationNumber: KME0AMIL + taxNumber: '8560920952.553111' + status: Archived + modifiedDate: '2023-04-26T12:38:16Z' + sourceModifiedDate: '2022-12-03T11:05:01' + metadata: + isDeleted: false + pageNumber: 1 + pageSize: 2 + totalResults: 20 + _links: + current: + href: /companies/354a121b-855f-4d25-90ad-0905b498c1c0/data/customers?page=1&pageSize=2 + self: + href: /companies/354a121b-855f-4d25-90ad-0905b498c1c0/data/customers + next: + href: /companies/354a121b-855f-4d25-90ad-0905b498c1c0/data/customers?page=2&pageSize=2 + Dynamics 365 Business Central: + value: + results: + - id: 0e2f7751-7696-ed11-bff5-6045bd0d2ad6 + customerName: '' + contactName: '' + emailAddress: '' + defaultCurrency: GBP + phone: '' + addresses: + - type: Billing + line1: '' + line2: '' + city: '' + region: '' + country: '' + postalCode: '' + contacts: + - name: '' + email: '' + phone: [] + address: + type: Billing + line1: '' + line2: '' + city: '' + region: '' + country: '' + postalCode: '' + status: Active + taxNumber: '' + status: Active + modifiedDate: '2023-03-27T14:21:25Z' + sourceModifiedDate: '2023-01-17T14:50:54Z' + metadata: + isDeleted: false + - id: 0ef95175-48c4-eb11-9f0a-0022481b4343 + customerName: '' + contactName: '' + emailAddress: '' + defaultCurrency: GBP + phone: '' + addresses: + - type: Billing + line1: '' + line2: '' + city: '' + region: '' + country: GB + postalCode: '' + contacts: + - name: '' + email: '' + phone: [] + address: + type: Billing + line1: '' + line2: '' + city: '' + region: '' + country: GB + postalCode: '' + status: Active + taxNumber: '' + status: Active + modifiedDate: '2023-03-27T14:21:25Z' + sourceModifiedDate: '2021-06-03T08:48:36Z' + metadata: + isDeleted: false + pageNumber: 1 + pageSize: 2 + totalResults: 42 + _links: + current: + href: /companies/d6849caf-c146-41be-8335-b73346e3bd84/data/customers?page=1&pageSize=2 + self: + href: /companies/d6849caf-c146-41be-8335-b73346e3bd84/data/customers + next: + href: /companies/d6849caf-c146-41be-8335-b73346e3bd84/data/customers?page=2&pageSize=2 + Exact (Netherlands): + value: + results: + - id: 555f8251-c65a-433a-a813-5dbe04321d1e + customerName: Ab Netherlands + defaultCurrency: EUR + addresses: + - type: Billing + country: NL + contacts: [] + status: Active + modifiedDate: '2022-10-26T13:32:05Z' + sourceModifiedDate: '2021-06-14T15:26:37Z' + - id: 9fd1f78e-67aa-4af7-8a10-df1fc5fb5841 + customerName: anna test 2 + defaultCurrency: EUR + addresses: + - type: Billing + country: NL + contacts: [] + status: Active + modifiedDate: '2022-10-26T13:32:05Z' + sourceModifiedDate: '2022-05-24T11:53:21Z' + pageNumber: 1 + pageSize: 2 + totalResults: 71 + _links: + current: + href: /companies/b83b1923-4db6-45a8-a779-b4e320c15979/data/customers?page=1&pageSize=2 + self: + href: /companies/b83b1923-4db6-45a8-a779-b4e320c15979/data/customers + next: + href: /companies/b83b1923-4db6-45a8-a779-b4e320c15979/data/customers?page=2&pageSize=2 + Exact (UK): + value: + results: + - id: 5f20075a-a28e-434d-81a6-2db0dc170e87 + customerName: Abdi 99 + emailAddress: email@codat.io + defaultCurrency: GBP + addresses: + - type: Billing + line1: Ink Rooms + city: London + country: GB + postalCode: WC1X 0BE + contacts: [] + registrationNumber: '123456789' + taxNumber: GB339 0727 47 + status: Active + modifiedDate: '2022-10-26T13:33:08Z' + sourceModifiedDate: '2020-02-26T11:23:50Z' + - id: 1d9dc1a7-92d6-441b-93fd-42c9fb321b1c + customerName: Abdulbasit Al-haj + contactName: abeee + emailAddress: a.alhaj@codat.io + defaultCurrency: GBP + addresses: + - type: Billing + country: GB + contacts: + - name: abeee + phone: [] + address: + type: Unknown + line1: '' + country: 'GB ' + status: Active + modifiedDate: '2020-02-24T12:00:51.027Z' + status: Active + modifiedDate: '2022-10-26T13:33:08Z' + sourceModifiedDate: '2020-02-24T12:00:50Z' + pageNumber: 1 + pageSize: 2 + totalResults: 53 + _links: + current: + href: /companies/d95030cd-22b2-482b-9c7b-2980dcc2b1ce/data/customers?page=1&pageSize=2 + self: + href: /companies/d95030cd-22b2-482b-9c7b-2980dcc2b1ce/data/customers + next: + href: /companies/d95030cd-22b2-482b-9c7b-2980dcc2b1ce/data/customers?page=2&pageSize=2 + FreeAgent: + value: + results: + - id: '11526230' + customerName: '-' + contactName: Test 1 + addresses: + - type: Billing + line1: 1 Place House + line2: '' + city: London + country: United Kingdom + postalCode: WC1X 1AH + contacts: + - name: Test 1 + phone: [] + address: + type: Billing + line1: 1 Place House + line2: '' + city: London + country: United Kingdom + postalCode: WC1X 1AH + status: Unknown + status: Active + modifiedDate: '2023-04-25T14:19:12Z' + sourceModifiedDate: '2023-04-17T06:02:46Z' + metadata: + isDeleted: false + - id: '9677150' + customerName: '-' + contactName: Test 1 + addresses: + - type: Billing + line1: 1 Place House + line2: '' + city: London + country: United Kingdom + postalCode: WC1X 1AH + contacts: + - name: Test 1 + phone: [] + address: + type: Billing + line1: 1 Place House + line2: '' + city: London + country: United Kingdom + postalCode: WC1X 1AH + status: Unknown + status: Active + modifiedDate: '2023-04-25T14:19:12Z' + sourceModifiedDate: '2023-04-24T06:19:23Z' + metadata: + isDeleted: false + pageNumber: 1 + pageSize: 2 + totalResults: 159 + _links: + current: + href: /companies/071ad738-68f3-4561-afd0-69bab9df0803/data/customers?page=1&pageSize=2 + self: + href: /companies/071ad738-68f3-4561-afd0-69bab9df0803/data/customers + next: + href: /companies/071ad738-68f3-4561-afd0-69bab9df0803/data/customers?page=2&pageSize=2 + FreshBooks: + value: + results: + - id: '634509' + customerName: A test customer 14 (updated) + contactName: test person name + emailAddress: test14@example.com + defaultCurrency: GBP + phone: 01876 541245 + addresses: + - type: Billing + line1: Line 1 + line2: Line 2 + city: Some city + region: A region + country: Country 1 + postalCode: SW1 2JQ + contacts: + - name: test person1 + email: test14A@example.com + phone: + - number: '24681012' + type: Primary + - number: '121086420' + type: Unknown + status: Active + - name: test person2 + email: test14B@example.com + phone: + - number: 1234 56789 + type: Primary + - number: 9876 54321 + type: Unknown + status: Active + - name: test person name + email: test14@example.com + phone: + - number: 01876 541245 + type: Unknown + status: Active + status: Active + modifiedDate: '2023-03-24T16:07:23Z' + sourceModifiedDate: '2022-05-18T09:23:56' + metadata: + isDeleted: false + - id: '634486' + customerName: A test customer name 2 + contactName: test person name + emailAddress: test8@example.com + defaultCurrency: GBP + phone: 01876 541245 + addresses: + - type: Billing + line1: Line 1 + line2: Line 2 + city: Some city + region: A region + country: Country 1 + postalCode: SW1 2JQ + contacts: + - name: test person1 + email: test9@example.com + phone: + - number: '24681012' + type: Primary + - number: '121086420' + type: Unknown + status: Active + - name: test person2 + email: test10@example.com + phone: + - number: '123456789' + type: Primary + - number: '987654321' + type: Unknown + status: Active + - name: test person name + email: test8@example.com + phone: + - number: 01876 541245 + type: Unknown + status: Active + status: Active + modifiedDate: '2023-03-24T16:07:23Z' + sourceModifiedDate: '2022-05-11T11:39:58' + metadata: + isDeleted: false + pageNumber: 1 + pageSize: 2 + totalResults: 39 + _links: + current: + href: /companies/3691c49e-0db4-4172-b3ab-e4084c365013/data/customers?page=1&pageSize=2 + self: + href: /companies/3691c49e-0db4-4172-b3ab-e4084c365013/data/customers + next: + href: /companies/3691c49e-0db4-4172-b3ab-e4084c365013/data/customers?page=2&pageSize=2 + KashFlow: + value: + results: + - id: '92227673' + customerName: Chekko Customer Test 01 + contactName: '' + emailAddress: '' + phone: '' + addresses: [] + contacts: + - name: '' + email: '' + phone: [] + status: Active + taxNumber: '' + status: Active + modifiedDate: '2022-09-30T10:29:15Z' + sourceModifiedDate: '0001-01-01T00:00:00' + - id: '88459410' + customerName: Diogo Sousa + contactName: Mr Diogo Sousa + emailAddress: diogomail@mail.com + phone: '123123123' + addresses: + - type: Billing + line1: Billing Address + line2: Billing line 2 Billing line 3 + city: Billing line 4 + country: United Kingdom + postalCode: '123321' + - type: Delivery + line1: Delivery Address + line2: Delivery line2 Delivery line3 + city: Delivery line4 + country: United Kingdom + postalCode: '123321' + contacts: + - name: Mr Diogo Sousa + email: diogomail@mail.com + phone: + - number: '123123123' + type: Landline + - number: '321321321' + type: Mobile + address: + type: Billing + line1: Billing Address + line2: Billing line 2 Billing line 3 + city: Billing line 4 + country: United Kingdom + postalCode: '123321' + status: Active + - name: Mr Diogo Sousa + phone: [] + address: + type: Delivery + line1: Delivery Address + line2: Delivery line2 Delivery line3 + city: Delivery line4 + country: United Kingdom + postalCode: '123321' + status: Active + taxNumber: '' + status: Active + modifiedDate: '2022-09-30T10:29:15Z' + sourceModifiedDate: '2021-05-04T13:22:19' + pageNumber: 1 + pageSize: 2 + totalResults: 10 + _links: + current: + href: /companies/3a707a99-89da-4b16-a5d6-595333a16352/data/customers?page=1&pageSize=2 + self: + href: /companies/3a707a99-89da-4b16-a5d6-595333a16352/data/customers + next: + href: /companies/3a707a99-89da-4b16-a5d6-595333a16352/data/customers?page=2&pageSize=2 + Oracle NetSuite: + value: + results: + - id: '773' + customerName: 119 Test Customer + contactName: Mr Test Customer + defaultCurrency: GBP + addresses: [] + contacts: [] + status: Active + modifiedDate: '2023-01-30T14:48:02Z' + sourceModifiedDate: '2022-01-11T12:28:49' + - id: '172722' + customerName: 1248 European Company + contactName: European Company + defaultCurrency: GBP + addresses: [] + contacts: [] + status: Active + modifiedDate: '2023-01-30T14:48:02Z' + sourceModifiedDate: '2022-07-27T14:29:16' + pageNumber: 1 + pageSize: 2 + totalResults: 4 + _links: + current: + href: /companies/d5074b08-6a34-4b06-a742-236edf5dc4f1/data/customers?page=1&pageSize=2 + self: + href: /companies/d5074b08-6a34-4b06-a742-236edf5dc4f1/data/customers + next: + href: /companies/d5074b08-6a34-4b06-a742-236edf5dc4f1/data/customers?page=2&pageSize=2 + QuickBooks Desktop: + value: + results: + - id: 150000-933272658 + customerName: 'Abercrombie, Kristy' + contactName: Kristy Abercrombie + emailAddress: kristy@samplename.com + defaultCurrency: GBP + phone: 415-555-6579 + addresses: + - type: Delivery + line1: Kristy Abercrombie + line2: 5647 Cypress Hill Rd + city: Bayshore + region: CA + postalCode: '94326' + - type: Billing + line1: Kristy Abercrombie + line2: 5647 Cypress Hill Rd + city: Bayshore + region: CA + postalCode: '94326' + contacts: + - name: 'Abercrombie, Kristy' + email: kristy@samplename.com + phone: + - number: 415-555-6579 + type: Primary + status: Active + - name: Kristy Abercrombie + phone: [] + status: Active + - name: Steve Darcangelo + phone: [] + status: Active + status: Active + modifiedDate: '2023-04-26T09:07:55Z' + sourceModifiedDate: '2023-12-16T05:06:42' + metadata: + isDeleted: false + - id: 800000D0-1182061376 + customerName: 'Allard, Robert' + contactName: Amanda Roberts + emailAddress: rallard@myemail.com + defaultCurrency: GBP + phone: 650-555-3422 + addresses: + - type: Delivery + line1: Robert Allard + line2: 92834 Chandler St. + city: Millbrae + region: CA + postalCode: '94030' + - type: Billing + line1: Robert Allard + line2: 92834 Chandler St. + city: Millbrae + region: CA + postalCode: '94030' + contacts: + - name: 'Allard, Robert' + email: rallard@myemail.com + phone: + - number: 650-555-3422 + type: Primary + - number: 650-555-9804 + type: Fax + - number: 650-555-8349 + type: Unknown + status: Active + - name: Robert Allard + phone: [] + status: Active + - name: Rachel Fisher + phone: [] + status: Active + status: Active + modifiedDate: '2023-04-26T09:07:55Z' + sourceModifiedDate: '2023-12-16T05:06:42' + metadata: + isDeleted: false + pageNumber: 1 + pageSize: 2 + totalResults: 64 + _links: + current: + href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/data/customers?page=1&pageSize=2 + self: + href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/data/customers + next: + href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/data/customers?page=2&pageSize=2 + QuickBooks Online: + value: + results: + - id: '9' + customerName: Abe + contactName: Abraham's Company + emailAddress: ab@email.com + defaultCurrency: GBP + addresses: [] + contacts: + - name: Abe + email: ab@email.com + phone: + - number: '01111111111' + type: Mobile + status: Active + registrationNumber: XXXX9900001 + taxNumber: XXXX9900001 + status: Active + modifiedDate: '2023-01-18T11:02:35Z' + sourceModifiedDate: '2022-12-08T15:42:59Z' + - id: '49' + customerName: adeel qbo child test + contactName: Adeel test + emailAddress: adeel@adeel.com + defaultCurrency: GBP + phone: '123456789' + addresses: + - type: Billing + line1: 4 Privet Drive + city: London + country: United Kingdom + postalCode: WD25 7LR + - type: Delivery + line1: 4 Privet Drive + city: London + country: United Kingdom + postalCode: WD25 7LR + contacts: + - name: Adeel test + email: adeel@adeel.com + phone: + - number: '123456789' + type: Primary + - number: '07546543216' + type: Mobile + address: + type: Billing + line1: 4 Privet Drive + city: London + country: United Kingdom + postalCode: WD25 7LR + status: Active + status: Active + modifiedDate: '2023-01-18T11:02:35Z' + sourceModifiedDate: '2022-08-22T09:21:09Z' + pageNumber: 1 + pageSize: 2 + totalResults: 40 + _links: + current: + href: /companies/10818b5e-6e6a-4ed4-a1c5-3e3efe626e87/data/customers?page=1&pageSize=2 + self: + href: /companies/10818b5e-6e6a-4ed4-a1c5-3e3efe626e87/data/customers + next: + href: /companies/10818b5e-6e6a-4ed4-a1c5-3e3efe626e87/data/customers?page=2&pageSize=2 + QuickBooks Online Sandbox: + value: + results: + - id: '66' + customerName: Abercrombie International Group + contactName: Kristy Abercrombie + defaultCurrency: GBP + addresses: + - type: Billing + line1: 123 Main St + city: 'New York, NY' + contacts: + - name: Abercrombie International Group (deleted) + phone: [] + address: + type: Billing + line1: 123 Main St + city: 'New York, NY' + status: Archived + status: Archived + modifiedDate: '2023-04-26T09:35:56Z' + sourceModifiedDate: '2016-09-12T18:53:19Z' + metadata: + isDeleted: false + - id: '67' + customerName: Abercrombie International Group + contactName: Natalie Watts + emailAddress: n.watts@google.com + defaultCurrency: USD + addresses: + - type: Billing + - type: Delivery + contacts: + - name: Abercrombie International Group + email: n.watts@google.com + phone: [] + address: + type: Billing + status: Active + registrationNumber: XXXXVat123456 + taxNumber: XXXXVat123456 + status: Active + modifiedDate: '2023-04-26T09:35:56Z' + sourceModifiedDate: '2023-03-29T01:12:55Z' + metadata: + isDeleted: false + pageNumber: 1 + pageSize: 2 + totalResults: 243 + _links: + current: + href: /companies/5a7f3597-36e1-4216-86fe-289ad36088a6/data/customers?page=1&pageSize=2 + self: + href: /companies/5a7f3597-36e1-4216-86fe-289ad36088a6/data/customers + next: + href: /companies/5a7f3597-36e1-4216-86fe-289ad36088a6/data/customers?page=2&pageSize=2 + Sage 200cloud: + value: + results: + - id: A1D001 + customerName: A1 Design Services + contactName: Lee Dalkin + emailAddress: newbusinessadvice@sage.com + defaultCurrency: GBP + phone: 01742 876 234 + addresses: + - type: Delivery + line1: 67a Station Road + line2: '' + city: Blackpool + region: Lancashire + country: '' + postalCode: BP12 7HT + - type: Delivery + line1: 23a Union Street + line2: '' + city: Manchester + region: '' + country: '' + postalCode: M2 6JK + - type: Billing + line1: 67a Station Road + line2: '' + city: Blackpool + region: Lancashire + country: Great Britain + postalCode: BP12 7HT + contacts: + - name: Lee Dalkin + email: newbusinessadvice@sage.com + phone: + - number: 01742 876 234 + type: Landline + - number: 01742 876 235 + type: Landline + - number: 01742 876 236 + type: Fax + status: Active + - name: Malcolm Leverret + email: '' + phone: [] + status: Active + - name: Jim Thomas + email: Jim@a1designservices.co.uk + phone: + - number: 01742 876 234 + type: Landline + - number: 01742 876 235 + type: Fax + status: Active + - name: Jullian Plawsworth + email: Jullian@a1designservices.co.uk + phone: + - number: 0151 349 3939 + type: Landline + - number: 0151 349 3940 + type: Fax + status: Active + registrationNumber: '' + taxNumber: GB238 3839 38 + status: Active + modifiedDate: '2022-10-14T09:35:53Z' + sourceModifiedDate: '2022-04-27T15:17:36Z' + - id: A1D002 + customerName: A2 Design Services + contactName: Lee Dalkin + emailAddress: newbusinessadvice@sage.com + defaultCurrency: GBP + phone: 01742 876 234 + addresses: + - type: Billing + line1: 77a Station Road + line2: '' + city: Blackpool + region: Lancashire + country: Great Britain + postalCode: BP12 7HT + contacts: + - name: Lee Dalkin + email: newbusinessadvice@sage.com + phone: + - number: 01742 876 234 + type: Landline + - number: 01742 876 235 + type: Landline + - number: 01742 876 236 + type: Fax + status: Active + - name: Malcolm Leverret + email: '' + phone: [] + status: Active + - name: Jim Thomas + email: Jim@a1designservices.co.uk + phone: + - number: 01742 876 234 + type: Landline + - number: 01742 876 235 + type: Fax + status: Active + - name: Jullian Plawsworth + email: Jullian@a1designservices.co.uk + phone: + - number: 0151 349 3939 + type: Landline + - number: 0151 349 3940 + type: Fax + status: Active + registrationNumber: '' + taxNumber: GB238 3839 40 + status: Active + modifiedDate: '2022-10-14T09:35:53Z' + sourceModifiedDate: '2020-09-23T10:28:58Z' + pageNumber: 1 + pageSize: 2 + totalResults: 43 + _links: + current: + href: /companies/93c21e2d-049c-4d24-b41b-57e61c30b69e/data/customers?page=1&pageSize=2 + self: + href: /companies/93c21e2d-049c-4d24-b41b-57e61c30b69e/data/customers + next: + href: /companies/93c21e2d-049c-4d24-b41b-57e61c30b69e/data/customers?page=2&pageSize=2 + Sage 50 (UK): + value: + results: + - id: A1D001 + customerName: A1 Design Services + contactName: Ian Cairns + emailAddress: newbusinessadvice@sage.com + defaultCurrency: GBP + phone: 01742 876 234 + addresses: + - type: Delivery + line1: 67a Station Road + line2: '' + city: Blackpool + region: Lancashire + country: GB + postalCode: BP12 7HT + - type: Delivery + line1: 23a Union Street + line2: '' + city: Manchester + region: '' + country: GB + postalCode: M2 6JK + - type: Unknown + line1: 67a Station Road + line2: '' + city: Blackpool + region: Lancashire + country: GB + postalCode: BP12 7HT + contacts: [] + taxNumber: GB238 3839 38 + status: Active + modifiedDate: '2023-03-30T14:42:41Z' + sourceModifiedDate: '2022-11-25T09:43:54Z' + metadata: + isDeleted: false + - id: ABS001 + customerName: ABS Garages Ltd + contactName: Mike Hall + emailAddress: newbusinessadvice@sage.com + defaultCurrency: GBP + phone: 0191 254 5909 + addresses: + - type: Delivery + line1: Swanson Industries + line2: Dukes Industrial Estate + city: Whitley Bay + region: North Tyneside + country: GB + postalCode: NE56 4ER + - type: Delivery + line1: Unit 34 + line2: Holystone Ind Estate + city: Hebburn + region: Tyne & Wear + country: GB + postalCode: NE31 1VB + - type: Unknown + line1: Unit 34 + line2: Holystone Ind Estate + city: Hebburn + region: Tyne & Wear + country: GB + postalCode: NE31 1VB + contacts: [] + taxNumber: GB745 4584 68 + status: Active + modifiedDate: '2023-03-30T14:42:41Z' + sourceModifiedDate: '2022-11-25T09:43:54Z' + metadata: + isDeleted: false + pageNumber: 1 + pageSize: 2 + totalResults: 30 + _links: + current: + href: /companies/cf5f2a47-2990-4221-bae6-0c19c86ac304/data/customers?page=1&pageSize=2 + self: + href: /companies/cf5f2a47-2990-4221-bae6-0c19c86ac304/data/customers + next: + href: /companies/cf5f2a47-2990-4221-bae6-0c19c86ac304/data/customers?page=2&pageSize=2 + Sage Business Cloud Accounting: + value: + results: + - id: 260f6a3f94a243738f2d5e08496a41a8 + customerName: 100 test name + contactName: Main Contact + emailAddress: email@codat.io + defaultCurrency: GBP + phone: contact phone number + addresses: + - type: Billing + line1: Aruba Address line 1 + line2: Aruba Address line 2 + city: Aruba City + region: Aruba Province + country: Aruba (AW) + postalCode: Aruba Post + contacts: + - phone: + - number: contact mobile number + type: Mobile + - number: contact fax number + type: Fax + status: Unknown + status: Active + modifiedDate: '2022-10-24T14:52:54Z' + sourceModifiedDate: '2021-05-10T16:31:51Z' + - id: 44a5d9461d9e4f6d90a5ace251c5cf35 + customerName: 100 test name DS + contactName: Main Contact + emailAddress: DCemail@codat.io + defaultCurrency: GBP + phone: contact phone number + addresses: + - type: Billing + line1: POST - Aruba Address line 1 + line2: POST - Aruba Address line 2 + city: POST - Aruba City + region: Aruba Province + country: Aruba (AW) + postalCode: Aruba Post + contacts: [] + status: Active + modifiedDate: '2022-10-24T14:52:54Z' + sourceModifiedDate: '2021-06-10T14:22:46Z' + pageNumber: 1 + pageSize: 2 + totalResults: 168 + _links: + current: + href: /companies/390083e2-351b-407c-a3be-55081c36c182/data/customers?page=1&pageSize=2 + self: + href: /companies/390083e2-351b-407c-a3be-55081c36c182/data/customers + next: + href: /companies/390083e2-351b-407c-a3be-55081c36c182/data/customers?page=2&pageSize=2 + Sage Intacct: + value: + results: + - id: '188' + customerName: 33Across + contactName: Yuna Conn + defaultCurrency: USD + phone: 520-393-4468 + addresses: + - type: Unknown + line1: 155 Westend Point + line2: '' + city: Albuquerque + region: NM + country: United States + postalCode: '87140' + contacts: + - name: 'Conn, Yuna' + phone: + - number: 520-393-4468 + type: Primary + address: + type: Unknown + line1: 155 Westend Point + line2: '' + city: Albuquerque + region: NM + country: United States + postalCode: '87140' + status: Unknown + taxNumber: '' + status: Active + modifiedDate: '2023-04-04T16:32:21Z' + sourceModifiedDate: '2022-09-06T12:58:27' + metadata: + isDeleted: false + - id: '324' + customerName: 3Way International Logistics + contactName: Lauri O'Heagertie + defaultCurrency: CAD + phone: 410-309-3976 + addresses: + - type: Unknown + line1: 7 Lerdahl Junction + line2: '' + city: Sparwood + region: British Columbia + country: Canada + postalCode: L4R + contacts: + - name: 'O''Heagertie, Lauri' + phone: + - number: 410-309-3976 + type: Primary + address: + type: Unknown + line1: 7 Lerdahl Junction + line2: '' + city: Sparwood + region: British Columbia + country: Canada + postalCode: L4R + status: Unknown + taxNumber: '' + status: Active + modifiedDate: '2023-04-04T16:32:21Z' + sourceModifiedDate: '2020-10-20T05:01:49' + metadata: + isDeleted: false + pageNumber: 1 + pageSize: 2 + totalResults: 530 + _links: + current: + href: /companies/df02b289-cb16-4964-ac4d-9fd60b04538e/data/customers?page=1&pageSize=2 + self: + href: /companies/df02b289-cb16-4964-ac4d-9fd60b04538e/data/customers + next: + href: /companies/df02b289-cb16-4964-ac4d-9fd60b04538e/data/customers?page=2&pageSize=2 + Wave: + value: + results: + - id: QnVzaW5lc3M6ZTI0OGQyZDctMWE5Ni00YTk4LWFkOTEtMDdlMGYyMmNhNmE2O0N1c3RvbWVyOjMyMzkzNTA4 + customerName: ABC Textiles + contactName: '' + emailAddress: c.taylor@codat.io + defaultCurrency: USD + addresses: [] + contacts: [] + status: Active + modifiedDate: '2022-11-16T18:15:30Z' + sourceModifiedDate: '2019-10-17T07:59:04Z' + - id: QnVzaW5lc3M6ZTI0OGQyZDctMWE5Ni00YTk4LWFkOTEtMDdlMGYyMmNhNmE2O0N1c3RvbWVyOjM3MTUzNDI2 + customerName: Coffee Cart + contactName: Coffee Carl + emailAddress: coffee.cart@example.com + defaultCurrency: GBP + phone: '0201111' + addresses: + - type: Billing + line1: 11 Coffee Lane + line2: Coffee Town + city: Coffee City + region: Hampshire + country: United Kingdom + postalCode: CC1 1CC + contacts: + - name: Coffee Carl + phone: + - number: '07733' + type: Mobile + status: Active + status: Active + modifiedDate: '2022-11-16T18:15:30Z' + sourceModifiedDate: '2020-03-17T19:12:39Z' + pageNumber: 1 + pageSize: 2 + totalResults: 10 + _links: + current: + href: /companies/0b22b59d-b4e5-4c35-b03f-88bbbcb41256/data/customers?page=1&pageSize=2 + self: + href: /companies/0b22b59d-b4e5-4c35-b03f-88bbbcb41256/data/customers + next: + href: /companies/0b22b59d-b4e5-4c35-b03f-88bbbcb41256/data/customers?page=2&pageSize=2 + Xero: + value: + results: + - id: e4c9d0e2-c285-4e85-b579-6d28b180c730 + customerName: 24 Locks + emailAddress: '' + addresses: [] + contacts: [] + status: Active + modifiedDate: '2023-03-15T20:35:10Z' + sourceModifiedDate: '2023-02-17T18:03:42' + metadata: + isDeleted: false + - id: bab779bc-c5fb-42cb-a888-953e8309711c + customerName: 7-Eleven + emailAddress: '' + addresses: [] + contacts: [] + status: Active + modifiedDate: '2023-03-15T20:35:10Z' + sourceModifiedDate: '2023-02-17T18:03:42' + metadata: + isDeleted: false + pageNumber: 1 + pageSize: 2 + totalResults: 48 + _links: + current: + href: /companies/5ced9667-a310-443a-a711-958d36377141/data/customers?page=1&pageSize=2 + self: + href: /companies/5ced9667-a310-443a-a711-958d36377141/data/customers + next: + href: /companies/5ced9667-a310-443a-a711-958d36377141/data/customers?page=2&pageSize=2 + Zoho Books: + value: + results: + - id: '104957000000032105' + customerName: A B + contactName: Contact (First Name) Contact (Last Name) + emailAddress: contactperson@whateveryouwantidontcare12345.com + defaultCurrency: GBP + phone: Work Phone + addresses: [] + contacts: + - name: Contact (First Name) Contact (Last Name) + email: contactperson@whateveryouwantidontcare12345.com + phone: + - number: Work Phone + type: Landline + - number: Mobile + type: Mobile + status: Active + status: Active + modifiedDate: '2022-10-03T08:40:37Z' + sourceModifiedDate: '2022-06-09T14:36:47' + - id: '104957000000054050' + customerName: 'Doe, John' + contactName: John Doe + emailAddress: '' + defaultCurrency: GBP + addresses: [] + contacts: + - name: John Doe + email: '' + phone: [] + status: Active + status: Active + modifiedDate: '2022-10-03T08:40:37Z' + sourceModifiedDate: '2022-09-28T15:09:22' + pageNumber: 1 + pageSize: 2 + totalResults: 14 + _links: + current: + href: /companies/d0b68840-db50-4bc3-b88c-96e225333fea/data/customers?page=1&pageSize=2 + self: + href: /companies/d0b68840-db50-4bc3-b88c-96e225333fea/data/customers + next: + href: /companies/d0b68840-db50-4bc3-b88c-96e225333fea/data/customers?page=2&pageSize=2 + '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' + '409': + $ref: '#/components/responses/Conflict' + '429': + $ref: '#/components/responses/Too-Many-Requests' + '500': + $ref: '#/components/responses/Internal-Server-Error' + '503': + $ref: '#/components/responses/Service-Unavailable' description: |- - Details of a category used for tracking transactions. - - > Language tip - > - > Parameters used to track types of spend in various parts of an organization can be called **dimensions**, **projects**, **classes**, or **locations** in different accounting software. In Codat, we refer to these as tracking categories. + The *List customers* endpoint returns a list of [customers](https://docs.codat.io/sync-for-expenses-api#/schemas/Customer) for a given company's connection. - ## Overview - - Tracking categories are used to monitor cost centres and control budgets that sit outside the standard chart of accounts. Customers may use tracking categories to group together and track the income and costs of specific departments, projects, locations or customers. - - From their accounting system, customers can: - - - Create and maintain tracking categories and tracking category types. - - View all tracking categories that are available for use. - - View the relationships between the categories. - - Assign invoices, bills, credit notes, or bill credit notes to one or more categories. - - View the categories that a transaction belongs to. - - View all transactions in a tracking category. - - ### Tracking categories per platform - - Review the platform-specific tracking categories that Codat supports, and the level they are assigned to in the source platform. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
PlatformTracking categoryTracking level
Dynamics 365DimensionsLine item
FreshbooksExpense categoriesLine item
MYOBCategoriesTransaction
NetsuiteClassesLine item
LocationsLine item
DepartmentsLine item
Custom segmentsLine item
QuickBooks DesktopClassesLine item or transaction level
LocationsTransaction
QuickBooks OnlineClassesLine item or transaction level
LocationsTransaction
Sage 200Cost centersLine item
DepartmentsLine item
Analysis codesTransaction
Sage 50DepartmentsLine item
CostcodesLine item
ProjectsLine item
Sage IntacctDimensionsLine item
XeroTracking categoriesLine item
- - > **Example use case** - > - > Monitor the budget for your annual conference using a tracking category called 'AnnualConference2020' with the **type** set to **Costing**. + [Customers](https://docs.codat.io/sync-for-expenses-api#/schemas/Customer) are people or organizations that buy goods or services from the SMB. - If a tracking category has a parent category, the ID of that parent category is displayed. There is also a `hasChildren` field that shows whether there are child subcategories nested beneath. - type: object - allOf: - - type: object - properties: - id: - type: string - description: 'The identifier for the item, unique per tracking category.' - nullable: true - name: - type: string - description: The name of the tracking category. - nullable: true - status: - $ref: '#/components/schemas/AccountingTrackingCategory/definitions/status' - parentId: - type: string - description: The identifier for this item's immediate parent. - nullable: true - hasChildren: - type: boolean - description: Boolean value indicating whether this category has SubCategories. - metadata: - $ref: '#/components/schemas/Metadata' - - $ref: '#/components/schemas/CommerceOrder/allOf/3' - definitions: - trackingCategoryRef: - required: - - id - type: object - description: References a category against which the item is tracked. - deprecated: true - properties: - id: - minLength: 1 - type: string - description: Unique identifier to the tracking category. - name: - type: string - nullable: true - description: Name of tracking category. - status: - title: Tracking category status - type: string - description: Current state of the tracking category. - enum: - - Unknown - - Active - - Archived - examples: - - id: string - name: string - status: Unknown - parentId: string - hasChildren: true - modifiedDate: '2022-10-23T00:00:00Z' - sourceModifiedDate: '2022-10-23T00:00:00Z' - AccountingTransfer: - title: 'Accounting: Transfer' - description: 'A transfer records the movement of money between two bank accounts, or between a bank account and a nominal account. It is a child data type of [account transactions](https://docs.codat.io/lending-api#/schemas/AccountTransaction).' - allOf: - - properties: - id: - type: string - description: Unique identifier for the transfer. - description: - type: string - nullable: true - description: Description of the transfer. - contactRef: - $ref: '#/components/schemas/AccountingJournalEntry/definitions/journalLine/properties/contactRef' - description: 'The customer or supplier for the transfer, if available.' - date: - $ref: '#/components/schemas/DateTime' - description: The day on which the transfer was made. - from: - $ref: '#/components/schemas/AccountingTransfer/definitions/transferAccount' - description: The details of the accounts the transfer is moving from. - to: - $ref: '#/components/schemas/AccountingTransfer/definitions/transferAccount' - description: The details of the accounts the transfer is moving to. - status: - description: The status of the transfer in the account - type: string - enum: - - Unknown - - Unreconciled - - Reconciled - - Void - nullable: true - trackingCategoryRefs: - type: array - nullable: true - description: Reference to the tracking categories this transfer is being tracked against. - items: - $ref: '#/components/schemas/AccountingTrackingCategory/definitions/trackingCategoryRef' - depositedRecordRefs: - type: array - nullable: true - description: List of selected transactions to associate with the transfer. Use this field to include transactions which are posted to the _undeposited funds_ (or other holding) account within the transfer. - items: - $ref: '#/components/schemas/AccountingRecordRef' - metadata: - $ref: '#/components/schemas/Metadata' - supplementalData: - $ref: '#/components/schemas/SupplementalData' - - $ref: '#/components/schemas/CommerceOrder/allOf/3' - definitions: - transferAccount: - title: Transfer account - description: Account details of the account sending or receiving the transfer. - type: object - properties: - accountRef: - $ref: '#/components/schemas/AccountingRecordRef' - description: The account that the transfer is moving from or to. - currency: - $ref: '#/components/schemas/SourceAccount/properties/currency' - amount: - type: number - format: decimal - description: The amount transferred between accounts. - type: object - AccountingTransfers: - title: 'Accounting: Transfers' - x-internal: true - allOf: - - type: object - properties: - results: - type: array - items: - $ref: '#/components/schemas/AccountingTransfer' - - $ref: '#/components/schemas/PagingInfo' - AccountsPayableTracking: - title: Tracking - x-internal: true - type: object - description: 'Categories, and a project and customer, against which the item is tracked.' - properties: - categoryRefs: - type: array - items: - $ref: '#/components/schemas/AccountingTrackingCategory/definitions/trackingCategoryRef' - customerRef: - $ref: '#/components/schemas/AccountingCustomer/definitions/accountingCustomerRef' - projectRef: - $ref: '#/components/schemas/ProjectRef' - isBilledTo: - $ref: '#/components/schemas/AccountsPayableTracking/definitions/billedToType' - isRebilledTo: - $ref: '#/components/schemas/AccountsPayableTracking/definitions/billedToType' - required: - - categoryRefs - - isBilledTo - - isRebilledTo - definitions: - billedToType: - type: string - description: Defines if the invoice or credit note is billed/rebilled to a project or customer. - enum: - - Unknown - - NotApplicable - - Customer - - Project - AccountsReceivableTracking: - title: Tracking - x-internal: true - type: object - description: 'Categories, and a project and customer, against which the item is tracked.' - properties: - categoryRefs: - type: array - items: - $ref: '#/components/schemas/AccountingTrackingCategory/definitions/trackingCategoryRef' - customerRef: - $ref: '#/components/schemas/AccountingCustomer/definitions/accountingCustomerRef' - projectRef: - $ref: '#/components/schemas/ProjectRef' - isBilledTo: - $ref: '#/components/schemas/AccountsReceivableTracking/definitions/billedToType' - isRebilledTo: - $ref: '#/components/schemas/AccountsReceivableTracking/definitions/billedToType' - recordRef: - $ref: '#/components/schemas/AccountingRecordRef' - required: - - categoryRefs - - isBilledTo - - isRebilledTo - definitions: - billedToType: - type: string - enum: - - Unknown - - NotApplicable - - Project - description: Defines if the bill or bill credit note is billed/rebilled to a project. - AgedCurrencyOutstanding: - type: object - title: 'Accounting: Aged currency outstanding' - properties: - currency: - $ref: '#/components/schemas/SourceAccount/properties/currency' - agedOutstandingAmounts: - type: array - description: Array of outstanding amounts by period. - items: - $ref: '#/components/schemas/AgedCurrencyOutstanding/definitions/agedOutstandingAmount' - definitions: - agedOutstandingAmount: - type: object - title: Aged outstanding amount - properties: - fromDate: - $ref: '#/components/schemas/DateTime' - description: Start date of period. - toDate: - $ref: '#/components/schemas/DateTime' - description: End date of period. - amount: - type: number - format: decimal - description: The amount outstanding. - details: - type: array - description: Array of details. - items: - $ref: '#/components/schemas/AgedCurrencyOutstanding/definitions/agedOutstandingAmountDetail' - agedOutstandingAmountDetail: - type: object - title: Amounts outstanding by data type - properties: - name: - type: string - description: Name of data type with outstanding amount for given period. - amount: - type: number - format: decimal - description: The amount outstanding. - Attachments: - x-internal: true - type: object - properties: - attachments: - type: array - items: - $ref: '#/components/schemas/AccountingAttachment' - nullable: true - title: Attachments - BankFeedBankAccountMapping: - title: Bank feed account mapping - type: object - additionalProperties: false - properties: - sourceAccountId: - type: string - description: Unique ID for the source account - targetAccountId: - type: string - nullable: true - description: Unique ID for the target account - feedStartDate: - $ref: '#/components/schemas/DateTime' - nullable: true - description: The date from which bank transactions can be provided to the platform. - required: - - sourceAccountId - examples: - - sourceAccountId: acc-002 - targetAccountId: account-081 - BankFeedBankAccountMappingResponse: - title: Bank feed account mapping response - type: object - additionalProperties: false - properties: - sourceAccountId: - type: string - description: Unique ID for the source account. - targetAccountId: - type: string - nullable: true - description: Unique ID for the target account. - status: - type: string - nullable: true - description: Status of the POST request. - error: - type: string - nullable: true - description: Error returned during the post request - examples: - - sourceAccountId: acc-002 - targetAccountId: account-081 - status: Failed - error: A feed connection already exists to this account - BankFeedMapping: - title: Bank feed mapping - type: object - additionalProperties: false - properties: - sourceAccountId: - type: string - description: Unique ID for the source account. - sourceAccountName: - type: string - description: Name for the source account. - sourceAccountNumber: - type: string - description: Account number for the source account. - sourceBalance: - type: number - format: decimal - description: Balance for the source account. - sourceCurrency: - $ref: '#/components/schemas/SourceAccount/properties/currency' - targetAccountId: - type: string - nullable: true - description: Unique ID for the target account in the accounting software. - targetAccountName: - type: string - description: Name for the target account in the accounting software. - status: - type: string - description: The status. - targetAccountOptions: - type: array - nullable: true - description: An array of potential target accounts. - items: - $ref: '#/components/schemas/BankFeedMapping/definitions/targetAccountOption' - feedStartDate: - $ref: '#/components/schemas/DateTime' - nullable: true - description: The date from which bank transactions can be provided to the platform. - description: 'A bank feed connection between a source account and a target account, including potential target accounts.' - definitions: - targetAccountOption: - title: Target Account Option - type: object - properties: - id: - type: string - description: Id of the target account. - name: - type: string - nullable: true - description: Name of the target account. - balance: - type: number - format: decimal - nullable: true - description: The balance of the account. - sortCode: - type: string - nullable: true - description: The sort code of the account. - accountNumber: - type: string - nullable: true - description: The account number of the account. - bankFeedMappings: - title: Bank feed mappings - type: array - items: - $ref: '#/components/schemas/BankFeedMapping' - additionalProperties: false - examples: - - sourceAccountId: acc-002 - targetAccountId: account-081 - sourceCurrency: USD - status: Success - feedStartDate: '2023-01-09T14:14:14.1057478Z' - sourceAccountName: ACME Bank - sourceAccountNumber: 1234-5678 - sourceBalance: 500 - targetAccountName: ACME Bank - - sourceAccountId: c53fd75a-dddb-4493-839a-5090b008f625 - status: pending - targetAccountOptions: - - name: account-081 - id: 044096a7-1478-4554-8820-f478caad1b00 - balance: 100.99 - sortCode: '602336' - accountNumber: '23203' - sourceAccountName: bank name here - sourceAccountNumber: '5670' - sourceBalance: 1550 - sourceCurrency: GBP - BankingAccount: - title: 'Banking: Bank account' + Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/sync-for-expenses-api#/operations/refresh-company-data). + + operationId: list-customers + '/companies/{companyId}/data/customers/{customerId}': + parameters: + - $ref: '#/components/parameters/companyId' + - $ref: '#/components/parameters/customerId' + get: + tags: + - Customers + summary: Get customer + responses: + '200': + description: Success + content: + application/json: + schema: + $ref: '#/components/schemas/Customer' + examples: + Clear Books: + value: + id: c8180244-74ac-40cf-a5df-6d83661c44d7 + customerName: Arjun Kuvalis + contactName: Werner Langworth + emailAddress: Arjun34@hotmail.com + defaultCurrency: GBP + phone: 014605 64820 + addresses: + - type: Delivery + line1: Suite 214 + line2: 8439 Lueilwitz Passage + city: Fernandohaven + region: Northern Ireland + country: United Kingdom + postalCode: JG04 7PV + - type: Delivery + line1: Suite 096 + line2: 864 Halie Course + city: Juliochester + region: England + country: United Kingdom + postalCode: DZ8 4BF + - type: Delivery + line1: Suite 001 + line2: 416 Stokes Fords + city: Naderborough + region: Wales + country: United Kingdom + postalCode: XG25 0XX + contacts: + - name: Werner Langworth + email: Werner_Langworth@hotmail.com + phone: [] + address: + type: Delivery + line1: Apt. 145 + line2: 317 Williamson Freeway + city: Hortenseville + region: Scotland + country: United Kingdom + postalCode: CV4 2HR + status: Active + - name: Belle Glover + email: Belle51@yahoo.com + phone: [] + address: + type: Delivery + line1: Suite 075 + line2: 9921 Dickens Walk + city: South Ali + region: Scotland + country: United Kingdom + postalCode: TI04 4OO + status: Active + registrationNumber: NI7JEJVM + taxNumber: '7505220209.583549' + status: Active + modifiedDate: '2023-04-26T12:38:16Z' + sourceModifiedDate: '2022-07-03T01:27:00' + metadata: + isDeleted: false + Dynamics 365 Business Central: + value: + id: 0e2f7751-7696-ed11-bff5-6045bd0d2ad6 + customerName: '' + contactName: '' + emailAddress: '' + defaultCurrency: GBP + phone: '' + addresses: + - type: Billing + line1: '' + line2: '' + city: '' + region: '' + country: '' + postalCode: '' + contacts: + - name: '' + email: '' + phone: [] + address: + type: Billing + line1: '' + line2: '' + city: '' + region: '' + country: '' + postalCode: '' + status: Active + taxNumber: '' + status: Active + modifiedDate: '2023-03-27T14:21:25Z' + sourceModifiedDate: '2023-01-17T14:50:54Z' + metadata: + isDeleted: false + Exact (Netherlands): + value: + id: 555f8251-c65a-433a-a813-5dbe04321d1e + customerName: Ab Netherlands + defaultCurrency: EUR + addresses: + - type: Billing + country: NL + contacts: [] + status: Active + modifiedDate: '2022-10-26T13:32:05Z' + sourceModifiedDate: '2021-06-14T15:26:37Z' + Exact (UK): + value: + id: 5f20075a-a28e-434d-81a6-2db0dc170e87 + customerName: Abdi 99 + emailAddress: email@codat.io + defaultCurrency: GBP + addresses: + - type: Billing + line1: Ink Rooms + city: London + country: GB + postalCode: WC1X 0BE + contacts: [] + registrationNumber: '123456789' + taxNumber: GB339 0727 47 + status: Active + modifiedDate: '2022-10-26T13:33:08Z' + sourceModifiedDate: '2020-02-26T11:23:50Z' + FreeAgent: + value: + id: '11526230' + customerName: '-' + contactName: Test 1 + addresses: + - type: Billing + line1: 1 Place House + line2: '' + city: London + country: United Kingdom + postalCode: WC1X 1AH + contacts: + - name: Test 1 + phone: [] + address: + type: Billing + line1: 1 Place House + line2: '' + city: London + country: United Kingdom + postalCode: WC1X 1AH + status: Unknown + status: Active + modifiedDate: '2023-04-25T14:19:12Z' + sourceModifiedDate: '2023-04-17T06:02:46Z' + metadata: + isDeleted: false + FreshBooks: + value: + id: '634509' + customerName: A test customer 14 (updated) + contactName: test person name + emailAddress: test14@example.com + defaultCurrency: GBP + phone: 01876 541245 + addresses: + - type: Billing + line1: Line 1 + line2: Line 2 + city: Some city + region: A region + country: Country 1 + postalCode: SW1 2JQ + contacts: + - name: test person1 + email: test14A@example.com + phone: + - number: '24681012' + type: Primary + - number: '121086420' + type: Unknown + status: Active + - name: test person2 + email: test14B@example.com + phone: + - number: '123456789' + type: Primary + - number: '987654321' + type: Unknown + status: Active + - name: test person name + email: test14@example.com + phone: + - number: 01876 541245 + type: Unknown + status: Active + status: Active + modifiedDate: '2023-03-24T16:07:23Z' + sourceModifiedDate: '2022-05-18T09:23:56' + metadata: + isDeleted: false + KashFlow: + value: + id: '92227673' + customerName: Chekko Customer Test 01 + contactName: '' + emailAddress: '' + phone: '' + addresses: [] + contacts: + - name: '' + email: '' + phone: [] + status: Active + taxNumber: '' + status: Active + modifiedDate: '2022-09-30T10:29:15Z' + sourceModifiedDate: '0001-01-01T00:00:00' + Oracle NetSuite: + value: + id: '773' + customerName: 119 Test Customer + contactName: Mr Test Customer + defaultCurrency: GBP + addresses: [] + contacts: [] + status: Active + modifiedDate: '2023-01-30T14:48:02Z' + sourceModifiedDate: '2022-01-11T12:28:49' + QuickBooks Desktop: + value: + id: 150000-933272658 + customerName: 'Abercrombie, Kristy' + contactName: Kristy Abercrombie + emailAddress: kristy@samplename.com + defaultCurrency: GBP + phone: 415-555-6579 + addresses: + - type: Delivery + line1: Kristy Abercrombie + line2: 5647 Cypress Hill Rd + city: Bayshore + region: CA + postalCode: '94326' + - type: Billing + line1: Kristy Abercrombie + line2: 5647 Cypress Hill Rd + city: Bayshore + region: CA + postalCode: '94326' + contacts: + - name: 'Abercrombie, Kristy' + email: kristy@samplename.com + phone: + - number: 415-555-6579 + type: Primary + status: Active + - name: Kristy Abercrombie + phone: [] + status: Active + - name: Steve Darcangelo + phone: [] + status: Active + status: Active + modifiedDate: '2023-04-26T09:07:55Z' + sourceModifiedDate: '2023-12-16T05:06:42' + metadata: + isDeleted: false + QuickBooks Online: + value: + id: '9' + customerName: Abe + contactName: Abraham's Company + emailAddress: ab@email.com + defaultCurrency: GBP + addresses: [] + contacts: + - name: Abe + email: ab@email.com + phone: + - number: '01111111111' + type: Mobile + status: Active + registrationNumber: XXXX9900001 + taxNumber: XXXX9900001 + status: Active + modifiedDate: '2023-01-18T11:02:35Z' + sourceModifiedDate: '2022-12-08T15:42:59Z' + QuickBooks Online Sandbox: + value: + id: '66' + customerName: Abercrombie International Group + contactName: Kristy Abercrombie + defaultCurrency: GBP + addresses: + - type: Billing + line1: 123 Main St + city: 'New York, NY' + contacts: + - name: Abercrombie International Group (deleted) + phone: [] + address: + type: Billing + line1: 123 Main St + city: 'New York, NY' + status: Archived + status: Archived + modifiedDate: '2023-04-26T09:35:56Z' + sourceModifiedDate: '2016-09-12T18:53:19Z' + metadata: + isDeleted: false + Sage 200cloud: + value: + id: A1D001 + customerName: A1 Design Services + contactName: Lee Dalkin + emailAddress: newbusinessadvice@sage.com + defaultCurrency: GBP + phone: 01742 876 234 + addresses: + - type: Delivery + line1: 67a Station Road + line2: '' + city: Blackpool + region: Lancashire + country: '' + postalCode: BP12 7HT + - type: Delivery + line1: 23a Union Street + line2: '' + city: Manchester + region: '' + country: '' + postalCode: M2 6JK + - type: Billing + line1: 67a Station Road + line2: '' + city: Blackpool + region: Lancashire + country: Great Britain + postalCode: BP12 7HT + contacts: + - name: Lee Dalkin + email: newbusinessadvice@sage.com + phone: + - number: 01742 876 234 + type: Landline + - number: 01742 876 235 + type: Landline + - number: 01742 876 236 + type: Fax + status: Active + - name: Malcolm Leverret + email: '' + phone: [] + status: Active + - name: Jim Thomas + email: Jim@a1designservices.co.uk + phone: + - number: 01742 876 234 + type: Landline + - number: 01742 876 235 + type: Fax + status: Active + - name: Jullian Plawsworth + email: Jullian@a1designservices.co.uk + phone: + - number: 0151 349 3939 + type: Landline + - number: 0151 349 3940 + type: Fax + status: Active + registrationNumber: '' + taxNumber: GB238 3839 38 + status: Active + modifiedDate: '2022-10-14T09:35:53Z' + sourceModifiedDate: '2022-04-27T15:17:36Z' + Sage 50 (UK): + value: + id: A1D001 + customerName: A1 Design Services + contactName: Ian Cairns + emailAddress: newbusinessadvice@sage.com + defaultCurrency: GBP + phone: 01742 876 234 + addresses: + - type: Delivery + line1: 67a Station Road + line2: '' + city: Blackpool + region: Lancashire + country: GB + postalCode: BP12 7HT + - type: Delivery + line1: 23a Union Street + line2: '' + city: Manchester + region: '' + country: GB + postalCode: M2 6JK + - type: Unknown + line1: 67a Station Road + line2: '' + city: Blackpool + region: Lancashire + country: GB + postalCode: BP12 7HT + contacts: [] + taxNumber: GB238 3839 38 + status: Active + modifiedDate: '2023-03-30T14:42:41Z' + sourceModifiedDate: '2022-11-25T09:43:54Z' + metadata: + isDeleted: false + Sage Business Cloud Accounting: + value: + id: 260f6a3f94a243738f2d5e08496a41a8 + customerName: 100 test name + contactName: Main Contact + emailAddress: email@codat.io + defaultCurrency: GBP + phone: contact phone number + addresses: + - type: Billing + line1: Aruba Address line 1 + line2: Aruba Address line 2 + city: Aruba City + region: Aruba Province + country: Aruba (AW) + postalCode: Aruba Post + contacts: + - phone: + - number: contact mobile number + type: Mobile + - number: contact fax number + type: Fax + status: Unknown + status: Active + modifiedDate: '2022-10-24T14:52:54Z' + sourceModifiedDate: '2021-05-10T16:31:51Z' + Sage Intacct: + value: + id: '188' + customerName: 33Across + contactName: Yuna Conn + defaultCurrency: USD + phone: 520-393-4468 + addresses: + - type: Unknown + line1: 155 Westend Point + line2: '' + city: Albuquerque + region: NM + country: United States + postalCode: '87140' + contacts: + - name: 'Conn, Yuna' + phone: + - number: 520-393-4468 + type: Primary + address: + type: Unknown + line1: 155 Westend Point + line2: '' + city: Albuquerque + region: NM + country: United States + postalCode: '87140' + status: Unknown + taxNumber: '' + status: Active + modifiedDate: '2023-04-04T16:32:21Z' + sourceModifiedDate: '2022-09-06T12:58:27' + metadata: + isDeleted: false + Wave: + value: + id: QnVzaW5lc3M6ZTI0OGQyZDctMWE5Ni00YTk4LWFkOTEtMDdlMGYyMmNhNmE2O0N1c3RvbWVyOjMyMzkzNTA4 + customerName: ABC Textiles + contactName: '' + emailAddress: c.taylor@codat.io + defaultCurrency: USD + addresses: [] + contacts: [] + status: Active + modifiedDate: '2022-11-16T18:15:30Z' + sourceModifiedDate: '2019-10-17T07:59:04Z' + Xero: + value: + id: e4c9d0e2-c285-4e85-b579-6d28b180c730 + customerName: 24 Locks + emailAddress: '' + addresses: [] + contacts: [] + status: Active + modifiedDate: '2023-03-15T20:35:10Z' + sourceModifiedDate: '2023-02-17T18:03:42' + metadata: + isDeleted: false + Zoho Books: + value: + id: '104957000000032105' + customerName: A B + contactName: Contact (First Name) Contact (Last Name) + emailAddress: contactperson@whateveryouwantidontcare12345.com + defaultCurrency: GBP + phone: Work Phone + addresses: [] + contacts: + - name: Contact (First Name) Contact (Last Name) + email: contactperson@whateveryouwantidontcare12345.com + phone: + - number: Work Phone + type: Landline + - number: Mobile + type: Mobile + status: Active + status: Active + modifiedDate: '2022-10-03T08:40:37Z' + sourceModifiedDate: '2022-06-09T14:36:47' + '401': + $ref: '#/components/responses/Unauthorized' + '402': + $ref: '#/components/responses/Payment-Required' + '403': + $ref: '#/components/responses/Forbidden' + '404': + $ref: '#/components/responses/Not-Found' + '409': + $ref: '#/components/responses/Conflict' + '429': + $ref: '#/components/responses/Too-Many-Requests' + '500': + $ref: '#/components/responses/Internal-Server-Error' + '503': + $ref: '#/components/responses/Service-Unavailable' + description: | + The *Get customer* endpoint returns a single customer for a given customerId. + + [Customers](https://docs.codat.io/sync-for-expenses-api#/schemas/Customer) are people or organizations that buy goods or services from the SMB. + + Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/sync-for-expenses-api#/operations/refresh-company-data). + operationId: get-customer + '/companies/{companyId}/connections/{connectionId}/push/customers': + parameters: + - $ref: '#/components/parameters/companyId' + - $ref: '#/components/parameters/connectionId' + post: + tags: + - Customers + summary: Create customer + parameters: + - $ref: '#/components/parameters/timeoutInMinutes' + - $ref: '#/components/parameters/allowSyncOnPushComplete' + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Customer' + responses: + '200': + description: Success + content: + application/json: + schema: + $ref: '#/components/schemas/CreateCustomerResponse' + examples: {} + '400': + $ref: '#/components/responses/BadRequest' + '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' + operationId: create-customer + description: |- + The *Create customer* endpoint creates a new [customer](https://docs.codat.io/sync-for-expenses-api#/schemas/Customer) for a given company's connection. + + [Customers](https://docs.codat.io/sync-for-expenses-api#/schemas/Customer) are people or organizations that buy goods or services from the SMB. + + **Integration-specific behavior** + + Required data may vary by integration. To see what data to post, first call [Get create/update customer model](https://docs.codat.io/sync-for-expenses-api#/operations/get-create-update-customers-model). + '/companies/{companyId}/connections/{connectionId}/push/customers/{customerId}': + parameters: + - $ref: '#/components/parameters/companyId' + - $ref: '#/components/parameters/connectionId' + - $ref: '#/components/parameters/customerId' + put: + tags: + - Customers + summary: Update customer + parameters: + - $ref: '#/components/parameters/timeoutInMinutes' + - $ref: '#/components/parameters/allowSyncOnPushComplete' + - $ref: '#/components/parameters/forceUpdate' + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Customer' + responses: + '200': + description: Success + content: + application/json: + schema: + $ref: '#/components/schemas/UpdateCustomerResponse' + examples: {} + '400': + $ref: '#/components/responses/BadRequest' + '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: |- - This data type provides a list of all the SMB's bank accounts, with rich data like balances, account numbers, and institutions holding the accounts. + The *Update customer* endpoint updates an existing [customer](https://docs.codat.io/sync-for-expenses-api#/schemas/Customer) for a given company's connection. + + [Customers](https://docs.codat.io/sync-for-expenses-api#/schemas/Customer) are people or organizations that buy goods or services from the SMB. + + **Integration-specific behavior** + + Required data may vary by integration. To see what data to post, first call [Get create/update customer model](https://docs.codat.io/sync-for-expenses-api#/operations/get-create-update-customers-model). + operationId: update-customer + '/companies/{companyId}/data/suppliers': + parameters: + - $ref: '#/components/parameters/companyId' + get: + tags: + - Suppliers + summary: List suppliers + 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/Suppliers' + examples: + Clear Books: + value: + results: + - id: owQ2Gqgj9f + supplierName: Abshire - Kshlerin + contactName: Faye Hansen + emailAddress: hello@Abshire-Kshlerin.info + phone: 01338 858162 + addresses: + - type: Delivery + line1: Suite 431 + line2: 289 Giles Lake + city: Cesarmouth + region: Northern Ireland + country: United Kingdom + postalCode: BG40 9GP + registrationNumber: VYL1XZXR + taxNumber: '1396267523.0914588' + status: Active + modifiedDate: '2023-04-26T12:38:17Z' + sourceModifiedDate: '1660-11-28T23:18:00' + defaultCurrency: GBP + metadata: + isDeleted: false + - id: FyUkHbZxhn + supplierName: Arjun Kuvalis + contactName: Werner Langworth + emailAddress: Arjun34@hotmail.com + phone: 0116 796 3163 + addresses: + - type: Delivery + line1: Suite 214 + line2: 8439 Lueilwitz Passage + city: Fernandohaven + region: Northern Ireland + country: United Kingdom + postalCode: JG04 7PV + - type: Delivery + line1: Suite 096 + line2: 864 Halie Course + city: Juliochester + region: England + country: United Kingdom + postalCode: DZ8 4BF + - type: Delivery + line1: Suite 001 + line2: 416 Stokes Fords + city: Naderborough + region: Wales + country: United Kingdom + postalCode: XG25 0XX + registrationNumber: NI7JEJVM + taxNumber: '7505220209.583549' + status: Active + modifiedDate: '2023-04-26T12:38:17Z' + sourceModifiedDate: '0177-04-27T11:56:00' + defaultCurrency: GBP + metadata: + isDeleted: false + pageNumber: 1 + pageSize: 2 + totalResults: 100 + _links: + current: + href: /companies/354a121b-855f-4d25-90ad-0905b498c1c0/data/suppliers?page=1&pageSize=2 + self: + href: /companies/354a121b-855f-4d25-90ad-0905b498c1c0/data/suppliers + next: + href: /companies/354a121b-855f-4d25-90ad-0905b498c1c0/data/suppliers?page=2&pageSize=2 + Dynamics 365 Business Central: + value: + results: + - id: 78623f13-931e-eb11-bbf8-0022481b3585 + supplierName: '' + contactName: '' + emailAddress: '' + phone: '' + addresses: + - type: Billing + line1: '' + line2: '' + city: '' + region: '' + country: GB + postalCode: '' + taxNumber: '' + status: Active + modifiedDate: '2023-03-27T14:21:12Z' + sourceModifiedDate: '2020-11-04T11:44:22Z' + defaultCurrency: GBP + metadata: + isDeleted: false + - id: be49ec62-6754-ed11-946f-0022481b67d1 + supplierName: '' + contactName: '' + emailAddress: '' + phone: '' + addresses: + - type: Billing + line1: '' + line2: '' + city: '' + region: '' + country: GB + postalCode: '' + taxNumber: '' + status: Active + modifiedDate: '2023-03-27T14:21:12Z' + sourceModifiedDate: '2022-10-25T13:17:36Z' + defaultCurrency: GBP + metadata: + isDeleted: false + pageNumber: 1 + pageSize: 2 + totalResults: 31 + _links: + current: + href: /companies/d6849caf-c146-41be-8335-b73346e3bd84/data/suppliers?page=1&pageSize=2 + self: + href: /companies/d6849caf-c146-41be-8335-b73346e3bd84/data/suppliers + next: + href: /companies/d6849caf-c146-41be-8335-b73346e3bd84/data/suppliers?page=2&pageSize=2 + Exact (Netherlands): + value: + results: + - id: 3150917c-1d92-4d77-9018-31b5c4758ca9 + supplierName: Abe + contactName: Kelly's Contact Name + emailAddress: sales@kellysupplies.com + phone: 07999 999999 + addresses: + - type: Billing + line1: Unit 51 + city: Bakersfield + region: California + country: US + postalCode: '933081' + registrationNumber: '8409314368' + status: Active + modifiedDate: '2022-10-26T13:32:05Z' + sourceModifiedDate: '2022-07-15T12:01:15Z' + defaultCurrency: EUR + - id: 00014c12-2616-481a-a2e8-31bdf2497775 + supplierName: Ann's test supplier 2 + contactName: Ann's contact name + emailAddress: anna@anna888888.com + phone: '55555555' + addresses: + - type: Billing + line1: line1 + line2: line2 + city: city + region: region + country: RU + postalCode: postal + registrationNumber: '55566677788899944455' + taxNumber: RU4444444 + status: Active + modifiedDate: '2022-10-26T13:32:05Z' + sourceModifiedDate: '2021-06-09T12:04:08Z' + defaultCurrency: USD + pageNumber: 1 + pageSize: 2 + totalResults: 73 + _links: + current: + href: /companies/b83b1923-4db6-45a8-a779-b4e320c15979/data/suppliers?page=1&pageSize=2 + self: + href: /companies/b83b1923-4db6-45a8-a779-b4e320c15979/data/suppliers + next: + href: /companies/b83b1923-4db6-45a8-a779-b4e320c15979/data/suppliers?page=2&pageSize=2 + Exact (UK): + value: + results: + - id: 0185fea2-0298-445b-909a-0db685118a9e + supplierName: a + addresses: + - type: Billing + country: GB + status: Active + modifiedDate: '2022-10-26T13:33:13Z' + sourceModifiedDate: '2017-08-02T10:58:54Z' + defaultCurrency: GBP + - id: 64ae712f-4155-48bb-9fce-98232c51d979 + supplierName: aa + addresses: + - type: Billing + country: GB + status: Active + modifiedDate: '2022-10-26T13:33:13Z' + sourceModifiedDate: '2020-05-01T14:05:46Z' + defaultCurrency: GBP + pageNumber: 1 + pageSize: 2 + totalResults: 118 + _links: + current: + href: /companies/d95030cd-22b2-482b-9c7b-2980dcc2b1ce/data/suppliers?page=1&pageSize=2 + self: + href: /companies/d95030cd-22b2-482b-9c7b-2980dcc2b1ce/data/suppliers + next: + href: /companies/d95030cd-22b2-482b-9c7b-2980dcc2b1ce/data/suppliers?page=2&pageSize=2 + FreeAgent: + value: + results: + - id: '11526230' + supplierName: '-' + contactName: Test 1 + addresses: + - type: Billing + line1: 1 Place House + line2: '' + city: London + country: United Kingdom + postalCode: WC1X 1AH + status: Active + modifiedDate: '2023-04-25T14:19:08Z' + sourceModifiedDate: '2023-04-17T06:02:46' + metadata: + isDeleted: false + - id: '9677150' + supplierName: '-' + contactName: Test 1 + addresses: + - type: Billing + line1: 1 Place House + line2: '' + city: London + country: United Kingdom + postalCode: WC1X 1AH + status: Active + modifiedDate: '2023-04-25T14:19:08Z' + sourceModifiedDate: '2023-04-24T06:19:23' + metadata: + isDeleted: false + pageNumber: 1 + pageSize: 2 + totalResults: 159 + _links: + current: + href: /companies/071ad738-68f3-4561-afd0-69bab9df0803/data/suppliers?page=1&pageSize=2 + self: + href: /companies/071ad738-68f3-4561-afd0-69bab9df0803/data/suppliers + next: + href: /companies/071ad738-68f3-4561-afd0-69bab9df0803/data/suppliers?page=2&pageSize=2 + FreshBooks: + value: + results: + - id: api vendor + supplierName: api vendor + addresses: [] + status: Active + modifiedDate: '2023-03-24T16:07:25Z' + metadata: + isDeleted: false + - id: DUndsRykrmy8kFsc+FvYk29YkJze4zSjGecoF4YcUEhVU7auJ5JkQA0VjXptZ7XQ+D4n6WoxFIkaGY2V/t4flA== + supplierName: 'Chekko Test merchant 100 - Test Very long name: ORIG CO NAME:AMERICAN EXPRESS ORIG ID:9493560001 DESC DATE:220307 CO ENTRY DESCR:ACH PMT SEC:CCD TRACE#:021000023255482 EED:220307 IND ID:A4670 IND NAME:Rick Sanchez' + addresses: [] + status: Active + modifiedDate: '2023-03-24T16:07:25Z' + metadata: + isDeleted: false + pageNumber: 1 + pageSize: 2 + totalResults: 7 + _links: + current: + href: /companies/3691c49e-0db4-4172-b3ab-e4084c365013/data/suppliers?page=1&pageSize=2 + self: + href: /companies/3691c49e-0db4-4172-b3ab-e4084c365013/data/suppliers + next: + href: /companies/3691c49e-0db4-4172-b3ab-e4084c365013/data/suppliers?page=2&pageSize=2 + KashFlow: + value: + results: + - id: '6202387' + supplierName: Dell + contactName: '' + emailAddress: '' + phone: '' + addresses: [] + taxNumber: '' + status: Unknown + modifiedDate: '2022-09-30T10:29:15Z' + sourceModifiedDate: '2017-05-09T00:00:00' + - id: '9338173' + supplierName: Home + contactName: '' + emailAddress: '' + phone: '' + addresses: [] + taxNumber: '' + status: Unknown + modifiedDate: '2022-09-30T10:29:15Z' + sourceModifiedDate: '1990-01-01T00:00:00' + pageNumber: 1 + pageSize: 2 + totalResults: 7 + _links: + current: + href: /companies/3a707a99-89da-4b16-a5d6-595333a16352/data/suppliers?page=1&pageSize=2 + self: + href: /companies/3a707a99-89da-4b16-a5d6-595333a16352/data/suppliers + next: + href: /companies/3a707a99-89da-4b16-a5d6-595333a16352/data/suppliers?page=2&pageSize=2 + Oracle NetSuite: + value: + results: + - id: '779' + supplierName: Test Vendor + contactName: Test Vendor + emailAddress: '' + phone: '' + addresses: [] + status: Active + modifiedDate: '2023-01-30T14:47:02Z' + sourceModifiedDate: '2022-02-04T14:24:43' + defaultCurrency: GBP + - id: '726' + supplierName: Vendor -.A + contactName: Vendor -.A + emailAddress: '' + phone: '' + addresses: [] + status: Active + modifiedDate: '2023-01-30T14:47:02Z' + sourceModifiedDate: '2021-03-26T09:53:15' + defaultCurrency: GBP + pageNumber: 1 + pageSize: 2 + totalResults: 6 + _links: + current: + href: /companies/d5074b08-6a34-4b06-a742-236edf5dc4f1/data/suppliers?page=1&pageSize=2 + self: + href: /companies/d5074b08-6a34-4b06-a742-236edf5dc4f1/data/suppliers + next: + href: /companies/d5074b08-6a34-4b06-a742-236edf5dc4f1/data/suppliers?page=2&pageSize=2 + QuickBooks Desktop: + value: + results: + - id: A60000-1197760912 + supplierName: A Cheung Limited + contactName: Angela Cheung + emailAddress: AC@CheungLimited.com + phone: 510 555 5723 + addresses: + - type: Billing + line1: 'A Cheung Limited, Angela Cheung' + line2: 3818 Bear Rd. West + city: Berkeley + region: CA + postalCode: '94688' + status: Active + modifiedDate: '2023-04-26T09:09:03Z' + sourceModifiedDate: '2023-12-16T05:06:44' + defaultCurrency: GBP + metadata: + isDeleted: false + - id: A40000-1197774038 + supplierName: Bank of Anycity + contactName: Lisa D. Holzhauser + emailAddress: lisah@samplename.com + phone: 415-555-9135 + addresses: + - type: Billing + line1: 'Bank of Anycity, Lisa Holzhauser' + line2: 1935 Main Street + city: Middlefield + region: CA + postalCode: '94482' + status: Active + modifiedDate: '2023-04-26T09:09:03Z' + sourceModifiedDate: '2023-12-16T05:06:44' + defaultCurrency: GBP + metadata: + isDeleted: false + pageNumber: 1 + pageSize: 2 + totalResults: 54 + _links: + current: + href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/data/suppliers?page=1&pageSize=2 + self: + href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/data/suppliers + next: + href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/data/suppliers?page=2&pageSize=2 + QuickBooks Online: + value: + results: + - id: '41' + supplierName: AI Support + contactName: AI Support + addresses: + - type: Billing + line1: test + region: string + country: Djibouti + status: Active + modifiedDate: '2023-01-18T11:02:36Z' + sourceModifiedDate: '2022-12-07T10:48:18Z' + defaultCurrency: GBP + - id: '42' + supplierName: AI Support 2 + contactName: AI Support 2 + addresses: + - type: Billing + line1: test + region: string + country: DJ + status: Active + modifiedDate: '2023-01-18T11:02:36Z' + sourceModifiedDate: '2021-08-31T08:45:02Z' + defaultCurrency: GBP + pageNumber: 1 + pageSize: 2 + totalResults: 23 + _links: + current: + href: /companies/10818b5e-6e6a-4ed4-a1c5-3e3efe626e87/data/suppliers?page=1&pageSize=2 + self: + href: /companies/10818b5e-6e6a-4ed4-a1c5-3e3efe626e87/data/suppliers + next: + href: /companies/10818b5e-6e6a-4ed4-a1c5-3e3efe626e87/data/suppliers?page=2&pageSize=2 + QuickBooks Online Sandbox: + value: + results: + - id: '129' + supplierName: Ally Johnson + contactName: Miss Smith + phone: 0728 38474 + addresses: + - type: Billing + line1: 100 London Road + line2: Angel + city: London + region: Greater London + country: England + postalCode: EC1M + status: Active + modifiedDate: '2023-04-26T09:35:55Z' + sourceModifiedDate: '2023-04-13T01:51:08Z' + defaultCurrency: GBP + metadata: + isDeleted: false + - id: '88' + supplierName: Andrew Haberbosch + addresses: [] + status: Active + modifiedDate: '2023-04-26T09:35:55Z' + sourceModifiedDate: '2022-07-06T15:55:28Z' + defaultCurrency: GBP + metadata: + isDeleted: false + pageNumber: 1 + pageSize: 2 + totalResults: 64 + _links: + current: + href: /companies/5a7f3597-36e1-4216-86fe-289ad36088a6/data/suppliers?page=1&pageSize=2 + self: + href: /companies/5a7f3597-36e1-4216-86fe-289ad36088a6/data/suppliers + next: + href: /companies/5a7f3597-36e1-4216-86fe-289ad36088a6/data/suppliers?page=2&pageSize=2 + Sage 200cloud: + value: + results: + - id: '776' + supplierName: Aaren + contactName: '' + emailAddress: '' + phone: '' + addresses: + - type: Unknown + line1: '' + line2: '' + city: '' + region: '' + country: Great Britain + postalCode: '' + taxNumber: '' + status: Archived + modifiedDate: '2022-10-14T09:35:58Z' + defaultCurrency: GBP + metadata: + isDeleted: true + - id: '914' + supplierName: Aaren + contactName: '' + emailAddress: '' + phone: '' + addresses: + - type: Unknown + line1: '' + line2: '' + city: '' + region: '' + country: Great Britain + postalCode: '' + taxNumber: '' + status: Archived + modifiedDate: '2022-10-14T09:35:58Z' + defaultCurrency: GBP + metadata: + isDeleted: true + pageNumber: 1 + pageSize: 2 + totalResults: 943 + _links: + current: + href: /companies/93c21e2d-049c-4d24-b41b-57e61c30b69e/data/suppliers?page=1&pageSize=2 + self: + href: /companies/93c21e2d-049c-4d24-b41b-57e61c30b69e/data/suppliers + next: + href: /companies/93c21e2d-049c-4d24-b41b-57e61c30b69e/data/suppliers?page=2&pageSize=2 + Sage 50 (UK): + value: + results: + - id: CON001 + supplierName: Concept Stationery Supplies + contactName: Mark Ramsay + emailAddress: newbusinessadvice@sage.com + phone: 0191 643 4343 + addresses: + - type: Delivery + line1: 66 New Street + line2: Ridgeway + city: Newcastle Upon Tyne + region: '' + country: GB + postalCode: NE1 4GF + - type: Unknown + line1: 66 New Street + line2: Ridgeway + city: Newcastle upon Tyne + region: '' + country: GB + postalCode: NE1 4GF + taxNumber: GB988 3453 23 + status: Active + modifiedDate: '2023-03-30T14:42:38Z' + sourceModifiedDate: '2022-11-25T09:43:54Z' + defaultCurrency: GBP + metadata: + isDeleted: false + - id: MCN001 + supplierName: McNally Computer Supplies + contactName: Stuart Lynn + emailAddress: newbusinessadvice@sage.com + phone: 0191 415 3434 + addresses: + - type: Delivery + line1: Station Lane Ind Est + line2: Birtley + city: Chester le Street + region: County Durham + country: GB + postalCode: DH1 3RG + - type: Unknown + line1: Station Lane Ind Est + line2: Birtley + city: Chester le Street + region: County Durham + country: GB + postalCode: DH1 3RG + taxNumber: GB455 2385 34 + status: Active + modifiedDate: '2023-03-30T14:42:38Z' + sourceModifiedDate: '2022-12-05T13:37:26Z' + defaultCurrency: GBP + metadata: + isDeleted: false + pageNumber: 1 + pageSize: 2 + totalResults: 15 + _links: + current: + href: /companies/cf5f2a47-2990-4221-bae6-0c19c86ac304/data/suppliers?page=1&pageSize=2 + self: + href: /companies/cf5f2a47-2990-4221-bae6-0c19c86ac304/data/suppliers + next: + href: /companies/cf5f2a47-2990-4221-bae6-0c19c86ac304/data/suppliers?page=2&pageSize=2 + Sage Business Cloud Accounting: + value: + results: + - id: 65179671e9ef424caff8b9006cd111c8 + supplierName: 5555 Abdul's Test Name + contactName: Main Contact + addresses: + - type: Billing + country: United Kingdom (GB) + status: Active + modifiedDate: '2022-10-24T14:52:54Z' + sourceModifiedDate: '2020-02-25T17:23:33Z' + defaultCurrency: GBP + - id: cf7f44d693904944a6a7cf3de0887964 + supplierName: Abdi Supplier + contactName: Abdi + emailAddress: abdisupplier@company.com + addresses: + - type: Billing + line1: 1 Place House + city: London + country: United Kingdom (GB) + postalCode: WC1X 1AH + status: Active + modifiedDate: '2022-10-24T14:52:54Z' + sourceModifiedDate: '2020-02-13T10:38:19Z' + defaultCurrency: GBP + pageNumber: 1 + pageSize: 2 + totalResults: 64 + _links: + current: + href: /companies/390083e2-351b-407c-a3be-55081c36c182/data/suppliers?page=1&pageSize=2 + self: + href: /companies/390083e2-351b-407c-a3be-55081c36c182/data/suppliers + next: + href: /companies/390083e2-351b-407c-a3be-55081c36c182/data/suppliers?page=2&pageSize=2 + Sage Intacct: + value: + results: + - id: '3' + supplierName: ADP + contactName: 'Jones, William' + phone: 214-760-9491 + addresses: + - type: Unknown + line1: 208 S Akard St + line2: '' + city: Dallas + region: TX + country: United States + postalCode: '75265' + registrationNumber: '' + taxNumber: 85-3678274 + status: Active + modifiedDate: '2023-04-04T16:32:20Z' + sourceModifiedDate: '2023-02-16T09:48:27' + defaultCurrency: USD + metadata: + isDeleted: false + - id: '29' + supplierName: Advisor Printing + contactName: 'Roach, Nathan' + phone: 130-202-4796 + addresses: + - type: Unknown + line1: 5 Carey Hill + line2: '' + city: Drayton Valley + region: Alberta + country: Canada + postalCode: G8V + registrationNumber: '' + taxNumber: '' + status: Active + modifiedDate: '2023-04-04T16:32:20Z' + sourceModifiedDate: '2022-06-15T11:38:29' + defaultCurrency: CAD + metadata: + isDeleted: false + pageNumber: 1 + pageSize: 2 + totalResults: 77 + _links: + current: + href: /companies/df02b289-cb16-4964-ac4d-9fd60b04538e/data/suppliers?page=1&pageSize=2 + self: + href: /companies/df02b289-cb16-4964-ac4d-9fd60b04538e/data/suppliers + next: + href: /companies/df02b289-cb16-4964-ac4d-9fd60b04538e/data/suppliers?page=2&pageSize=2 + Wave: + value: + results: + - id: QnVzaW5lc3M6ZTI0OGQyZDctMWE5Ni00YTk4LWFkOTEtMDdlMGYyMmNhNmE2O1ZlbmRvcjo2NjA0Nzk0 + supplierName: Computer Shop + contactName: '' + emailAddress: '' + addresses: [] + status: Active + modifiedDate: '2022-11-16T18:15:24Z' + sourceModifiedDate: '2020-04-07T13:28:02Z' + defaultCurrency: GBP + - id: QnVzaW5lc3M6ZTI0OGQyZDctMWE5Ni00YTk4LWFkOTEtMDdlMGYyMmNhNmE2O1ZlbmRvcjo2NjA0NzQx + supplierName: Flour Mill + contactName: '' + emailAddress: '' + addresses: [] + status: Active + modifiedDate: '2022-11-16T18:15:24Z' + sourceModifiedDate: '2020-04-07T13:12:40Z' + defaultCurrency: GBP + pageNumber: 1 + pageSize: 2 + totalResults: 9 + _links: + current: + href: /companies/0b22b59d-b4e5-4c35-b03f-88bbbcb41256/data/suppliers?page=1&pageSize=2 + self: + href: /companies/0b22b59d-b4e5-4c35-b03f-88bbbcb41256/data/suppliers + next: + href: /companies/0b22b59d-b4e5-4c35-b03f-88bbbcb41256/data/suppliers?page=2&pageSize=2 + Xero: + value: + results: + - id: e4c9d0e2-c285-4e85-b579-6d28b180c730 + supplierName: 24 Locks + emailAddress: '' + addresses: [] + status: Active + modifiedDate: '2023-03-15T20:36:09Z' + sourceModifiedDate: '2023-02-17T18:03:42' + metadata: + isDeleted: false + - id: bab779bc-c5fb-42cb-a888-953e8309711c + supplierName: 7-Eleven + emailAddress: '' + addresses: [] + status: Active + modifiedDate: '2023-03-15T20:36:09Z' + sourceModifiedDate: '2023-02-17T18:03:42' + metadata: + isDeleted: false + pageNumber: 1 + pageSize: 2 + totalResults: 48 + _links: + current: + href: /companies/5ced9667-a310-443a-a711-958d36377141/data/suppliers?page=1&pageSize=2 + self: + href: /companies/5ced9667-a310-443a-a711-958d36377141/data/suppliers + next: + href: /companies/5ced9667-a310-443a-a711-958d36377141/data/suppliers?page=2&pageSize=2 + Zoho Books: + value: + results: + - id: '104957000001494001' + supplierName: Acme Corporation + emailAddress: '' + addresses: [] + status: Active + modifiedDate: '2022-10-03T08:40:37Z' + sourceModifiedDate: '2022-09-16T13:09:56' + defaultCurrency: GBP + - id: '104957000000648001' + supplierName: Cool company + contactName: Dre + emailAddress: '' + addresses: [] + status: Active + modifiedDate: '2022-10-03T08:40:37Z' + sourceModifiedDate: '2022-06-10T09:07:16' + defaultCurrency: CAD + pageNumber: 1 + pageSize: 2 + totalResults: 6 + _links: + current: + href: /companies/d0b68840-db50-4bc3-b88c-96e225333fea/data/suppliers?page=1&pageSize=2 + self: + href: /companies/d0b68840-db50-4bc3-b88c-96e225333fea/data/suppliers + next: + href: /companies/d0b68840-db50-4bc3-b88c-96e225333fea/data/suppliers?page=2&pageSize=2 + '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' + '409': + $ref: '#/components/responses/Conflict' + '429': + $ref: '#/components/responses/Too-Many-Requests' + '500': + $ref: '#/components/responses/Internal-Server-Error' + '503': + $ref: '#/components/responses/Service-Unavailable' + description: | + The *List suppliers* endpoint returns a list of [suppliers](https://docs.codat.io/sync-for-expenses-api#/schemas/Supplier) for a given company's connection. - Responses are paged, so you should provide `page` and `pageSize` query parameters in your request. - type: object - allOf: - - type: object - properties: - id: - minLength: 1 - type: string - description: The ID of the account from the provider. - name: - minLength: 1 - type: string - description: The name of the account according to the provider. - informalName: - type: string - nullable: true - description: 'The friendly name of the account, chosen by the holder. This may not have been set by the account holder and therefore is not always available.' - holder: - type: string - nullable: true - description: The name of the person or company who holds the account. - type: - $ref: '#/components/schemas/AccountingBankAccountType' - balance: - $ref: '#/components/schemas/BankingAccountBalance/definitions/accountBalanceAmounts' - description: An object containing bank balance data. - identifiers: - $ref: '#/components/schemas/BankingAccount/definitions/accountIdentifiers' - currency: - minLength: 1 - type: string - description: The currency code for the account. - institution: - $ref: '#/components/schemas/BankingAccount/definitions/accountInstitution' - - $ref: '#/components/schemas/CommerceOrder/allOf/3' - required: - - id - - name - - type - - balance - - identifiers - - currency - - institution - definitions: - accountIdentifiers: - title: Account Identifiers - description: An object containing bank account identification information. - type: object - x-internal: true - additionalProperties: false - properties: - type: - $ref: '#/components/schemas/BankingAccount/definitions/accountIdentifierType' - subtype: - type: string - nullable: true - description: Detailed account category - number: - type: string - nullable: true - description: 'The account number for the account. When combined with the`bankCode`, this is usually enough to uniquely identify an account within a jurisdiction.' - bankCode: - type: string - nullable: true - description: |- - The local (usually national) routing number for the account. + [Suppliers](https://docs.codat.io/sync-for-expenses-api#/schemas/Supplier) are people or organizations that provide something, such as a product or service. - This is known by different names in different countries: - * BSB code (Australia) - * routing number (Canada, USA) - * sort code (UK) - iban: - type: string - nullable: true - description: 'The international bank account number (IBAN) for the account, if known.' - bic: - type: string - nullable: true - description: 'The ISO 9362 code (commonly called SWIFT code, SWIFT-BIC or BIC) for the account.' - maskedAccountNumber: - type: string - nullable: true - description: A portion of the actual account `number` to help account identification where number is tokenised (Plaid only) - required: - - type - accountIdentifierType: - type: string - x-internal: true - description: Type of account - enum: - - Account - - Card - - Credit - - Depository - - Investment - - Loan - - Other - accountInstitution: - title: Account Institution - description: The bank or other financial institution providing the account. - x-internal: true - type: object - additionalProperties: false - properties: - id: - type: string - description: 'The institution''s ID, according to the provider.' - name: - type: string - description: 'The institution''s name, according to the underlying provider.' - examples: - - results: - - id: 1703194f-7805-4da8-bac0-2ba5da4a4216 - name: Business Current Account - informalName: Codat - holder: Codat Ltd - type: Debit - balance: - available: -459987.97 - current: -459964.9 - limit: 5000 - identifiers: - type: Depository - subtype: checking - number: '46762629' - bankCode: 009911 - iban: GB29 LOYD 4773 2346 7626 29 - bic: LOYDGB21006 - maskedAccountNumber: LOYDGB21006 - currency: GBP - institution: - id: lloyds-bank - name: Lloyds Bank - modifiedDate: '2022-05-23T16:32:50Z' - sourceModifiedDate: '2021-08-14T05:04:12' - BankingAccountBalance: - title: 'Banking: Account balance' - description: |- - The Banking Account Balances data type provides a list of balances for a bank account including end-of-day batch balance or running balances per transaction. + Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/sync-for-expenses-api#/operations/refresh-all-data-types). - Responses are paged, so you should provide `page` and `pageSize` query parameters in your request. + ### Supported Integrations - > **How often should I pull Account Balances?** - > - > Because these balances are closing balances, we recommend you pull Account Balance no more frequently than daily. If you require a live intraday balance, this can be found for each account on the [Account](https://docs.codat.io/lending-api#/schemas/Account) data type. - > - > Whilst you can choose to sync hourly, this may incur usage charges from Plaid or TrueLayer. - type: object - allOf: - - type: object - properties: - accountId: - minLength: 1 - type: string - description: The unique identifier of the account. - balance: - $ref: '#/components/schemas/BankingAccountBalance/definitions/accountBalanceAmounts' - date: - $ref: '#/components/schemas/DateTime' - description: Date of the balance. - - $ref: '#/components/schemas/CommerceOrder/allOf/3' - required: - - accountId - - balance - - date - definitions: - accountBalanceAmounts: - title: Account Balance Amounts - x-internal: true - type: object - properties: - available: - type: number - format: decimal - nullable: true - description: 'The balance available in the account, including any pending transactions. This doesn''t include additional funds available from any overdrafts.' - current: - type: number - format: decimal - description: The balance of the account only including cleared transactions. - limit: - type: number - format: decimal - nullable: true - description: 'The minimum allowed balance for the account. For example, a $100.00 overdraft would show as a limit of `-100.00`.' - additionalProperties: false - description: 'Depending on the data provided by the underlying bank, not all balances are always available.' - examples: - - accountBalances: - - accountId: cce404db-27f7-4286-95db-622b53596cf4 - balance: - available: 714374.48 - current: 714374.57 - limit: 5000 - date: '2021-03-18T00:00:00' - - accountId: cce404db-27f7-4286-95db-622b53596cf4 - balance: - available: 714374.48 - current: 714374.57 - limit: 5000 - date: '2021-03-19T00:00:00' - - accountId: cce404db-27f7-4286-95db-622b53596cf4 - balance: - available: 714195.66 - current: 714204.39 - limit: 5000 - date: '2021-03-22T00:00:00' - - accountId: 2f593774-1075-4805-a552-84eecc7eb264 - balance: - available: -644945.42 - current: -644925.84 - limit: 0 - date: '2022-03-09T00:00:00' - BankingAccountBalances: - title: 'Banking: Account balances' - x-internal: true - allOf: - - type: object - properties: - results: - type: array - items: - $ref: '#/components/schemas/BankingAccountBalance' - - $ref: '#/components/schemas/PagingInfo' - BankingAccounts: - title: 'Banking: Bank accounts' - x-internal: true - allOf: - - type: object - properties: - results: - type: array - items: - $ref: '#/components/schemas/BankingAccount' - - $ref: '#/components/schemas/PagingInfo' - BankingTransaction: - title: 'Banking: Transaction' - description: |- - The Banking Transactions data type provides an immutable source of up-to-date information on income and expenditure. + | Integration | Supported | + |-------------------------------|-----------| + | Dynamics 365 Business Central | Yes | + | FreeAgent | Yes | + | Oracle NetSuite | Yes | + | QuickBooks Desktop | Yes | + | QuickBooks Online | Yes | + | Sage Intacct | Yes | + | Xero | Yes | + | Zoho Books | Yes | + operationId: list-suppliers + '/companies/{companyId}/data/suppliers/{supplierId}': + parameters: + - $ref: '#/components/parameters/companyId' + - $ref: '#/components/parameters/supplierId' + get: + tags: + - Suppliers + summary: Get supplier + responses: + '200': + description: Success + content: + application/json: + schema: + $ref: '#/components/schemas/Supplier' + examples: + Clear Books: + value: + id: owQ2Gqgj9f + supplierName: Abshire - Kshlerin + contactName: Faye Hansen + emailAddress: hello@Abshire-Kshlerin.info + phone: 01338 858162 + addresses: + - type: Delivery + line1: Suite 431 + line2: 289 Giles Lake + city: Cesarmouth + region: Northern Ireland + country: United Kingdom + postalCode: BG40 9GP + registrationNumber: VYL1XZXR + taxNumber: '1396267523.0914588' + status: Active + modifiedDate: '2023-04-26T12:38:17Z' + sourceModifiedDate: '1660-11-28T23:18:00' + defaultCurrency: GBP + metadata: + isDeleted: false + Dynamics 365 Business Central: + value: + id: 78623f13-931e-eb11-bbf8-0022481b3585 + supplierName: '' + contactName: '' + emailAddress: '' + phone: '' + addresses: + - type: Billing + line1: '' + line2: '' + city: '' + region: '' + country: GB + postalCode: '' + taxNumber: '' + status: Active + modifiedDate: '2023-03-27T14:21:12Z' + sourceModifiedDate: '2020-11-04T11:44:22Z' + defaultCurrency: GBP + metadata: + isDeleted: false + Exact (Netherlands): + value: + id: 3150917c-1d92-4d77-9018-31b5c4758ca9 + supplierName: Abe + contactName: Kelly's Contact Name + emailAddress: sales@kellysupplies.com + phone: 07999 999999 + addresses: + - type: Billing + line1: Unit 51 + city: Bakersfield + region: California + country: US + postalCode: '933081' + registrationNumber: '8409314368' + status: Active + modifiedDate: '2022-10-26T13:32:05Z' + sourceModifiedDate: '2022-07-15T12:01:15Z' + defaultCurrency: EUR + Exact (UK): + value: + id: 0185fea2-0298-445b-909a-0db685118a9e + supplierName: a + addresses: + - type: Billing + country: GB + status: Active + modifiedDate: '2022-10-26T13:33:13Z' + sourceModifiedDate: '2017-08-02T10:58:54Z' + defaultCurrency: GBP + FreeAgent: + value: + id: '11526230' + supplierName: '-' + contactName: Test 1 + addresses: + - type: Billing + line1: 1 Place House + line2: '' + city: London + country: United Kingdom + postalCode: WC1X 1AH + status: Active + modifiedDate: '2023-04-25T14:19:08Z' + sourceModifiedDate: '2023-04-17T06:02:46' + metadata: + isDeleted: false + FreshBooks: + value: + id: api vendor + supplierName: api vendor + addresses: [] + status: Active + modifiedDate: '2023-03-24T16:07:25Z' + metadata: + isDeleted: false + KashFlow: + value: + id: '6202387' + supplierName: Dell + contactName: '' + emailAddress: '' + phone: '' + addresses: [] + taxNumber: '' + status: Unknown + modifiedDate: '2022-09-30T10:29:15Z' + sourceModifiedDate: '2017-05-09T00:00:00' + Oracle NetSuite: + value: + id: '779' + supplierName: Test Vendor + contactName: Test Vendor + emailAddress: '' + phone: '' + addresses: [] + status: Active + modifiedDate: '2023-01-30T14:47:02Z' + sourceModifiedDate: '2022-02-04T14:24:43' + defaultCurrency: GBP + QuickBooks Desktop: + value: + id: A60000-1197760912 + supplierName: A Cheung Limited + contactName: Angela Cheung + emailAddress: AC@CheungLimited.com + phone: 510 555 5723 + addresses: + - type: Billing + line1: 'A Cheung Limited, Angela Cheung' + line2: 3818 Bear Rd. West + city: Berkeley + region: CA + postalCode: '94688' + status: Active + modifiedDate: '2023-04-26T09:09:03Z' + sourceModifiedDate: '2023-12-16T05:06:44' + defaultCurrency: GBP + metadata: + isDeleted: false + QuickBooks Online: + value: + id: '41' + supplierName: AI Support + contactName: AI Support + addresses: + - type: Billing + line1: test + region: string + country: Djibouti + status: Active + modifiedDate: '2023-01-18T11:02:36Z' + sourceModifiedDate: '2022-12-07T10:48:18Z' + defaultCurrency: GBP + QuickBooks Online Sandbox: + value: + id: '129' + supplierName: Ally Johnson + contactName: Miss Smith + phone: 0728 38474 + addresses: + - type: Billing + line1: 100 London Road + line2: Angel + city: London + region: Greater London + country: England + postalCode: EC1M + status: Active + modifiedDate: '2023-04-26T09:35:55Z' + sourceModifiedDate: '2023-04-13T01:51:08Z' + defaultCurrency: GBP + metadata: + isDeleted: false + Sage 200cloud: + value: + id: '776' + supplierName: Aaren + contactName: '' + emailAddress: '' + phone: '' + addresses: + - type: Unknown + line1: '' + line2: '' + city: '' + region: '' + country: Great Britain + postalCode: '' + taxNumber: '' + status: Archived + modifiedDate: '2022-10-14T09:35:58Z' + defaultCurrency: GBP + metadata: + isDeleted: true + Sage 50 (UK): + value: + id: CON001 + supplierName: Concept Stationery Supplies + contactName: Mark Ramsay + emailAddress: newbusinessadvice@sage.com + phone: 0191 643 4343 + addresses: + - type: Delivery + line1: 66 New Street + line2: Ridgeway + city: Newcastle Upon Tyne + region: '' + country: GB + postalCode: NE1 4GF + - type: Unknown + line1: 66 New Street + line2: Ridgeway + city: Newcastle upon Tyne + region: '' + country: GB + postalCode: NE1 4GF + taxNumber: GB988 3453 23 + status: Active + modifiedDate: '2023-03-30T14:42:38Z' + sourceModifiedDate: '2022-11-25T09:43:54Z' + defaultCurrency: GBP + metadata: + isDeleted: false + Sage Business Cloud Accounting: + value: + id: 65179671e9ef424caff8b9006cd111c8 + supplierName: 5555 Abdul's Test Name + contactName: Main Contact + addresses: + - type: Billing + country: United Kingdom (GB) + status: Active + modifiedDate: '2022-10-24T14:52:54Z' + sourceModifiedDate: '2020-02-25T17:23:33Z' + defaultCurrency: GBP + Sage Intacct: + value: + id: '3' + supplierName: ADP + contactName: 'Jones, William' + phone: 214-760-9491 + addresses: + - type: Unknown + line1: 208 S Akard St + line2: '' + city: Dallas + region: TX + country: United States + postalCode: '75265' + registrationNumber: '' + taxNumber: 85-3678274 + status: Active + modifiedDate: '2023-04-04T16:32:20Z' + sourceModifiedDate: '2023-02-16T09:48:27' + defaultCurrency: USD + metadata: + isDeleted: false + Wave: + value: + id: QnVzaW5lc3M6ZTI0OGQyZDctMWE5Ni00YTk4LWFkOTEtMDdlMGYyMmNhNmE2O1ZlbmRvcjo2NjA0Nzk0 + supplierName: Computer Shop + contactName: '' + emailAddress: '' + addresses: [] + status: Active + modifiedDate: '2022-11-16T18:15:24Z' + sourceModifiedDate: '2020-04-07T13:28:02Z' + defaultCurrency: GBP + Xero: + value: + id: e4c9d0e2-c285-4e85-b579-6d28b180c730 + supplierName: 24 Locks + emailAddress: '' + addresses: [] + status: Active + modifiedDate: '2023-03-15T20:36:09Z' + sourceModifiedDate: '2023-02-17T18:03:42' + metadata: + isDeleted: false + Zoho Books: + value: + id: '104957000001494001' + supplierName: Acme Corporation + emailAddress: '' + addresses: [] + status: Active + modifiedDate: '2022-10-03T08:40:37Z' + sourceModifiedDate: '2022-09-16T13:09:56' + defaultCurrency: GBP + '401': + $ref: '#/components/responses/Unauthorized' + '402': + $ref: '#/components/responses/Payment-Required' + '403': + $ref: '#/components/responses/Forbidden' + '404': + $ref: '#/components/responses/Not-Found' + '409': + $ref: '#/components/responses/Conflict' + '429': + $ref: '#/components/responses/Too-Many-Requests' + '500': + $ref: '#/components/responses/Internal-Server-Error' + '503': + $ref: '#/components/responses/Service-Unavailable' + description: | + The *Get supplier* endpoint returns a single supplier for a given supplierId. - Responses are paged, so you should provide `page` and `pageSize` query parameters in your request. - type: object - allOf: - - type: object - properties: - id: - minLength: 1 - type: string - description: The unique identifier of the bank transaction. - accountId: - minLength: 1 - type: string - description: The unique identifier of the bank account. - description: - type: string - nullable: true - description: The description of the bank transaction. - amount: - type: number - format: decimal - description: The amount of the bank transaction. - currency: - minLength: 1 - type: string - description: The currency of the bank transaction. - postedDate: - $ref: '#/components/schemas/DateTime' - description: The date the bank transaction was cleared. - authorizedDate: - $ref: '#/components/schemas/DateTime' - description: The date the bank transaction was authorized. - code: - $ref: '#/components/schemas/BankingTransaction/definitions/transactionCode' - merchantName: - type: string - nullable: true - description: The name of the merchant. - transactionCategoryRef: - $ref: '#/components/schemas/BankingTransactionCategory/definitions/transactionCategoryRef' - - $ref: '#/components/schemas/CommerceOrder/allOf/3' - required: - - id - - accountId - - currency - definitions: - transactionCode: - type: string - x-internal: true - description: Code to identify the underlying transaction. - enum: - - Unknown - - Fee - - Payment - - Cash - - Transfer - - Interest - - Cashback - - Cheque - - DirectDebit - - Purchase - - StandingOrder - - Adjustment - - Credit - - Other - - NotSupported - examples: - - id: 0130b5bb-1419-40f6-8a27-7362d0381229 - accountId: 1703194f-7805-4da8-bac0-2ba5da4a4216 - description: Payments for direct income ce149943-c157-43fc-aac7-42a716b655b6 - amount: 5062.39 - currency: GBP - postedDate: '2021-07-06T00:00:00' - authorizedDate: '2021-07-06T00:00:00' - merchantName: New Look - transactionCategoryRef: - id: health-and-fitness-sports - modifiedDate: '2022-05-23T16:32:50Z' - sourceModifiedDate: '2021-06-28T10:48:12' - BankingTransactionCategories: - title: 'Banking: Transaction categories' - x-internal: true - allOf: - - type: object - properties: - results: - type: array - items: - $ref: '#/components/schemas/BankingTransactionCategory' - - $ref: '#/components/schemas/PagingInfo' - BankingTransactionCategory: - title: 'Banking: Transaction category' - description: |- - The Banking Transaction Categories data type provides a list of hierarchical categories associated with a transaction for greater contextual meaning to transaction activity. + [Suppliers](https://docs.codat.io/sync-for-expenses-api#/schemas/Supplier) are people or organizations that provide something, such as a product or service. - Responses are paged, so you should provide `page` and `pageSize` query parameters in your request. - type: object - allOf: - - type: object - description: Status of the bank transaction category. - properties: - id: - minLength: 1 - type: string - description: The unique identifier of the bank transaction category. - name: - minLength: 1 - type: string - description: The name of the bank transaction category. - parentId: - type: string - nullable: true - description: The unique identifier of the parent bank transaction category. - hasChildren: - type: boolean - description: A Boolean indicating whether there are other bank transaction categories beneath this one in the hierarchy. - status: - $ref: '#/components/schemas/BankingTransactionCategory/definitions/transactionCategoryStatus' - - $ref: '#/components/schemas/CommerceOrder/allOf/3' - required: - - id - - name - definitions: - transactionCategoryRef: - type: object - x-internal: true - description: An object of bank transaction category reference data. - properties: - id: - minLength: 1 - type: string - description: The unique category reference id for the bank transaction. - name: - type: string - nullable: true - description: The category name reference for the bank transaction. - required: - - id - transactionCategoryStatus: - type: string - description: The status of the transaction category. - x-internal: true - enum: - - Unknown - - Active - - Archived - examples: - - id: auto-and-transport - name: Auto & Transport - hasChildren: true - status: Active - modifiedDate: '2022-05-23T16:32:50' - sourceModifiedDate: '2021-04-24T07:59:10' - BankingTransactions: - title: 'Banking: Transactions' - x-internal: true - allOf: - - type: object - properties: - results: - type: array - items: - $ref: '#/components/schemas/BankingTransaction' - - $ref: '#/components/schemas/PagingInfo' - BankStatementUploadConfiguration: - title: Banking data upload settings - description: Configuration settings for uploading banking data to Codat - additionalProperties: false - type: object - properties: - source: - type: string - enum: - - codat - description: The source of the banking data that determines its format - accountId: - type: string - description: The ID of the account in the third-party platform - providerId: - type: string - description: TrueLayer provider ID (only required if source is TrueLayer) - CategorizedBankStatementAccounts: - title: Categorized bank statement accounts - description: |- - > **Categorization engine** - > - > The categorization engine uses machine learning and has been fully trained against Plaid and TrueLayer banking data sources. It is not fully trained against the Basiq banking data source. + Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/sync-for-expenses-api#/operations/refresh-all-data-types). - The Enhanced Cash Flow accounts endpoint provides a list of accounts that categorized transactions have been taken from. - allOf: - - type: object - properties: - results: - type: array - items: - title: Account - type: object - properties: - id: - description: The ID of the account from the provider. - type: string - sourceRef: - $ref: '#/components/schemas/EnhancedCashFlowTransactions/definitions/accounts/properties/sourceRef' - platformName: - description: 'Name of the banking data source, e.g. "Plaid".' - type: string - accountProvider: - description: The bank or other financial institution providing the account. - type: string - accountName: - description: The name of the account according to the provider. - type: string - accountType: - description: 'The type of banking account, e.g. credit or debit.' - type: string - currency: - $ref: '#/components/schemas/SourceAccount/properties/currency' - description: The currency code for the bank account. - currentBalance: - description: The balance of the bank account. - type: number - format: decimal - identifiers: - $ref: '#/components/schemas/BankingAccount/definitions/accountIdentifiers' - - $ref: '#/components/schemas/PagingInfo' - example: - results: - - sourceRef: - sourceType: Banking - platformName: Banking Sandbox - accountProvider: Lloyds Bank - accountName: Business Savings Account - accountType: Debit - currency: GBP - currentBalance: 0 - - sourceRef: - sourceType: Banking - platformName: Banking Sandbox - accountProvider: Lloyds Bank - accountName: Banking - Business Credit Card - accountType: Credit - currency: GBP - currentBalance: 0 - - sourceRef: - sourceType: Banking - platformName: Banking Sandbox - accountProvider: Lloyds Bank - accountName: Business Undeposited Funds - accountType: Debit - currency: GBP - currentBalance: 0 - - sourceRef: - sourceType: Banking - platformName: Banking Sandbox - accountProvider: Lloyds Bank - accountName: Business Current Account - accountType: Debit - currency: GBP - currentBalance: 0 - pageNumber: 1 - pageSize: 10 - totalResults: 15 - _links: - self: - href: /companies/82458839-6812-49e9-baac-7dcf8c32de1f/reports/categorizedBankStatement/latest/accounts - current: - href: /companies/82458839-6812-49e9-baac-7dcf8c32de1f/reports/categorizedBankStatement/latest/accounts?page=1&pageSize=10 - next: - href: /companies/82458839-6812-49e9-baac-7dcf8c32de1f/reports/categorizedBankStatement/latest/accounts?page=2&pageSize=10 - CategorizedBankStatementTransactions: - title: Categorized bank statement transactions - description: |- - > **Categorization engine** - > - > The categorization engine uses machine learning and has been fully trained against Plaid and TrueLayer banking data sources. It is not fully trained against the Basiq banking data source. + ### Supported Integrations - The Enhanced Cash Flow Transactions endpoint provides a fully categorized list of banking transactions for a company. Accounts and transaction data are obtained from the company's banking data sources. - allOf: - - type: object - properties: - results: - type: array - items: - $ref: '#/components/schemas/EnhancedCashFlowTransactions/definitions/enhancedCashFlowItem/properties/transactions/items' - - $ref: '#/components/schemas/PagingInfo' - example: - results: - - sourceRef: - sourceType: Banking - - accountRef: - id: 4f78a6b0-e9bb-40f2-82fd-f3a2daa1fd0a - name: Business Current Account - id: 3fa85f64-5717-4562-b3fc-2c963f66afa6 - date: '2023-01-25' - description: Payment to supplier - amount: 100 - currency: USD - transactionCategory: - confidence: 92.7 - levels: - - Asset - - Current - - Bank - confidences: - - 92.7 - - 95 - - 96 - platformName: Plaid - counterpartyNames: - - Counterparty - modifiedDate: '2023-01-25T22:36:05.125Z' - isRecurring: true - - sourceRef: - sourceType: Banking - - accountRef: - id: 12345678-1234-1234-1234-123456789012 - name: Business Saving Account - id: 3fa85f64-5717-4562-b3fc-2c963f66afa6 - date: '2023-01-25' - description: Payment to supplier - amount: 100 - currency: USD - transactionCategory: - confidence: 92.7 - levels: - - Expense - - Operating - confidences: - - 92.7 - - 95 - platformName: Plaid - counterpartyNames: [] - modifiedDate: '2023-01-25T22:36:05.125Z' - isRecurring: false - pageNumber: 1 - pageSize: 100 - totalResults: 2401 - _links: - self: - href: /companies/82458839-6812-49e9-baac-7dcf8c32de1f/reports/categorizedBankStatement/latest/transactions - current: - href: /companies/82458839-6812-49e9-baac-7dcf8c32de1f/reports/categorizedBankStatement/latest/transactions?page=1&pageSize=100 - next: - href: /companies/82458839-6812-49e9-baac-7dcf8c32de1f/reports/categorizedBankStatement/latest/transactions?page=2&pageSize=100 - ClientRateLimitWebhook: - title: Client rate limit webhook - type: object - properties: - id: - type: string - format: uuid - example: 743ec94a-8aa4-44bb-8bd4-e1855ee0e74b - description: Unique identifier of the event. - eventType: - type: string - description: The type of event. - examples: - - client.rateLimit.reset - - client.rateLimit.reached - generatedDate: - $ref: '#/components/schemas/DateTime' - description: The date time in UTC the event was generated in Codat. - payload: - $ref: '#/components/schemas/ClientRateLimitWebhook/definitions/clientRateLimitWebhookPayload' - definitions: - clientRateLimitWebhookPayload: - title: Client rate limit webhook payload - type: object - properties: - dailyQuota: - type: integer - description: The number of available requests per day. - quotaRemaining: - type: integer - description: Total number of requests remaining for your client. - expiryDate: - $ref: '#/components/schemas/DateTime' - description: The date time in UTC when your daily quota is reset. - CommerceAddress: - title: 'Commerce: Address' - x-internal: true - type: object - properties: - type: - $ref: '#/components/schemas/CommerceAddress/definitions/commerceAddressType' - line1: - description: The first line of the address - type: string - line2: - description: The second line of the address - type: string - city: - description: 'The third line of the address, or city' - type: string - region: - description: 'The fourth line of the address, or region' - type: string - country: - description: The country for the address - type: string - postalCode: - description: The postal (or zip) code for the address - type: string - definitions: - commerceAddressType: - description: The type of the address - type: string - enum: - - Billing - - Delivery - - Order - - Inventory - - Unknown - CommerceCompanyInfo: - title: 'Commerce: Company profile' + | Integration | Supported | + |-------------------------------|-----------| + | Dynamics 365 Business Central | Yes | + | FreeAgent | Yes | + | Oracle NetSuite | Yes | + | QuickBooks Desktop | Yes | + | QuickBooks Online | Yes | + | Sage Intacct | Yes | + | Xero | Yes | + | Zoho Books | Yes | + operationId: get-supplier + '/companies/{companyId}/connections/{connectionId}/push/suppliers': + parameters: + - $ref: '#/components/parameters/companyId' + - $ref: '#/components/parameters/connectionId' + post: + tags: + - Suppliers + parameters: + - $ref: '#/components/parameters/timeoutInMinutes' + - $ref: '#/components/parameters/allowSyncOnPushComplete' + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Supplier' + examples: + Sage Intacct: + value: + id: '73593' + supplierName: test 20230420 1004 + contactName: Joe Bloggs + status: Active + responses: + '200': + description: Success + content: + application/json: + schema: + $ref: '#/components/schemas/CreateSupplierResponse' + examples: {} + '400': + $ref: '#/components/responses/BadRequest' + '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' + summary: Create supplier description: | - In the Codat system, company profile includes standard commercial details about - a linked company, such as their address, phone number, and company registration. - type: object - allOf: - - type: object - properties: - companyName: - type: string - description: The name of the company - example: Codat - commercePlatformRef: - type: string - description: Identifier or reference for the company in the commerce software - companyLegalName: - type: string - description: The full legal name of the company - example: Codat Limited - addresses: - type: array - description: Addresses associated with the company - items: - $ref: '#/components/schemas/CommerceAddress' - phoneNumbers: - type: array - description: Phone numbers associated with the company - items: - $ref: '#/components/schemas/PhoneNumber' - webLinks: - description: Weblinks associated with the company - type: array - items: - $ref: '#/components/schemas/WebLink' - registrationNumber: - description: The registration number of the company - type: string - examples: - - 10480375 - baseCurrency: - $ref: '#/components/schemas/SourceAccount/properties/currency' - accountBalances: - description: The available and current cash balances for the company's accounts - type: array - items: - $ref: '#/components/schemas/CommerceCompanyInfo/definitions/accountBalance' - sourceUrls: - description: 'URL addresses for the originating system. For example, potential use cases include ''deeplinking'' to the originating system' - type: object - additionalProperties: - type: string - example: - url1: 'https://connect.sandbox.com/v2/customers' - url2: 'https://connect.sandbox.com/v2/disputes' - - $ref: '#/components/schemas/CommerceOrder/allOf/2' - - $ref: '#/components/schemas/CommerceOrder/allOf/3' - definitions: - accountBalance: - title: Account Balance - type: object - x-internal: true - properties: - available: - description: The account's current balance - type: number - format: decimal - pending: - description: Funds that are not yet available in the balance - type: number - format: decimal - reserved: - description: Funds reserved as holdings - format: decimal - currency: - description: The currency of the account - allOf: - - $ref: '#/components/schemas/SourceAccount/properties/currency' - CommerceCustomer: - title: 'Commerce: Customer' - description: 'When a customer places an order with the connected commerce store their details are added to the Customers dataset. You can use the data from the Customers endpoints to calculate key metrics, such as customer churn.' - type: object - allOf: - - $ref: '#/components/schemas/CommerceOrder/allOf/0' - - type: object - properties: - customerName: - type: string - description: Name of the customer - example: Fred Smith - emailAddress: - type: string - description: Email address of the customer - example: fred.smith@myCompany.com - phone: - $ref: '#/components/schemas/PhoneNumber/properties/number' - defaultCurrency: - allOf: - - description: | - Default currency of any transactional data for the customer, - for example, orders or payments - - $ref: '#/components/schemas/SourceAccount/properties/currency' - addresses: - type: array - description: Addresses of the customer - items: - $ref: '#/components/schemas/CommerceAddress' - note: - type: string - description: Any additional information about the customer - - $ref: '#/components/schemas/CommerceOrder/allOf/2' - - $ref: '#/components/schemas/CommerceOrder/allOf/3' - definitions: - commerceCustomerRef: - type: object - description: Reference to the customer that placed the order. - properties: - id: - description: The unique identitifer of the customer being referenced - type: string - examples: - - 13d946f0-c5d5-42bc-b092-97ece17923ab - - 9wg4lep4ush5cxs79pl8sozmsndbaukll3ind4g7buqbm1h2 - - 7110701885 - - EILBDVJVNUAGVKRQ - name: - description: Name of the customer being referenced. - type: string - required: - - id - examples: - - customers: - - id: '15' - customerName: Daffy Duck - emailAddress: d.duck@warnerbros.com - defaultCurrency: GBP - phone: (877) 492-8687 - addresses: - - type: billing - line1: 301 Duck Pond - line2: 28 Green Street - city: London - region: England - country: United Kingdom - postalCode: WX1X 0BE - - type: delivery - line1: Bread Street - line2: Bird Avenue - city: Paris - region: France - country: France - postalCode: WDF 123 - note: Regular customer - createdDate: '0001-01-01T00:00:00' - modifiedDate: null - sourceModifiedDate: '2020-09-15T23:52:28' - - id: '18' - customerName: Tasmanian Devil - emailAddress: t.devil@warnerbros.com - defaultCurrency: GBP - phone: +1-202-555-0181 - addresses: - - type: billing - line1: 101 Fire Rooms - line2: Engine Street - city: London - region: England - country: United Kingdom - postalCode: WC1X 0BE - note: Handle with care - createdDate: '0001-01-01T00:00:00' - modifiedDate: null - sourceModifiedDate: '2020-04-16T02:41:52' - - id: a99f5e0c-a4db-452f-8d2c-8fd15482b384 - customerName: Bugs Bunny - emailAddress: b.bunny@warnerbros.com - defaultCurrency: GBP - phone: '' - addresses: - - type: billing - line1: 301 Carrot Street - line2: Orange Town - city: Yorkshire - region: England - country: United Kingdom - postalCode: WF1X 0BE - - type: delivery - line1: 424 Field Street - line2: The Meadow - city: Paris - region: France - country: France - postalCode: WDF 123 - note: Regular customer - createdDate: '0001-01-01T00:00:00' - modifiedDate: null - sourceModifiedDate: '2020-08-12T14:37:37' - CommerceCustomers: - title: 'Commerce: Customers' - x-internal: true - allOf: - - type: object - properties: - results: - type: array - items: - $ref: '#/components/schemas/CommerceCustomer' - - $ref: '#/components/schemas/PagingInfo' - CommerceDispute: - title: 'Commerce: Dispute' - description: |- - A customer may file a payment dispute with their bank or other card issuer when they're unsatisfied with their purchase or believe they have been charged incorrectly. For example: - - They didn't receive an order. - - The product they received was different to the commerce store's description. - - They've been the victim of online fraud. + The *Create supplier* endpoint creates a new [supplier](https://docs.codat.io/sync-for-expenses-api#/schemas/Supplier) for a given company's connection. - You can use data from the Disputes endpoints to calculate key metrics, such as the number of chargebacks. - type: object - allOf: - - $ref: '#/components/schemas/CommerceOrder/allOf/0' - - type: object - required: - - currency - properties: - disputedTransactions: - description: Link to the source event(s) which triggered this transaction. - type: array - items: - $ref: '#/components/schemas/CommerceTransaction/definitions/transactionSourceRef' - totalAmount: - description: Total transaction amount that is under dispute. - format: decimal - examples: - - 194.12 - - -283.56 - - 0 - currency: - description: Currency of the disputed transaction. - $ref: '#/components/schemas/SourceAccount/properties/currency' - status: - $ref: '#/components/schemas/CommerceDispute/definitions/disputeStatus' - reason: - description: Reason for the dispute - type: string - examples: - - Unhappy with product - dueDate: - description: Date when the next action in the dispute resolution is due - $ref: '#/components/schemas/DateTime' - - $ref: '#/components/schemas/CommerceOrder/allOf/2' - - $ref: '#/components/schemas/CommerceOrder/allOf/3' - definitions: - disputeStatus: - description: Current status of the dispute - x-internal: true - type: string - enum: - - Won - - Lost - - Accepted - - Processing - - ChargeRefunded - - EvidenceRequired - - InquiryEvidenceRequired - - InquiryProcessing - - InquiryClosed - - WaitingThirdParty - - Unknown - example: EvidenceRequired - examples: - - id: 03e608e3-bd1c-454f-8c2b-fb0133e43b95 - disputedTransactions: - - id: e63ad857-7e12-4e64-9185-cdfd7c45d09d - type: Order - totalAmount: -47.66 - currency: GBP - status: InquiryEvidenceRequired - reason: Unhappy with product - dueDate: '2021-03-29T14:39:55' - createdDate: '2021-03-22T14:39:55' - modifiedDate: '2022-02-02T11:02:45Z' - sourceModifiedDate: '2021-03-22T14:39:55' - CommerceDisputes: - title: 'Commerce: Disputes' - x-internal: true - allOf: - - type: object - properties: - results: - type: array - items: - $ref: '#/components/schemas/CommerceDispute' - - $ref: '#/components/schemas/PagingInfo' - CommerceLocation: - title: 'Commerce: Location' - type: object - description: |- - The Location datatype holds information on the geographic location at which stocks of products may be held, as referenced in the Products data type. + [Suppliers](https://docs.codat.io/sync-for-expenses-api#/schemas/Supplier) are people or organizations that provide something, such as a product or service. - A Location also holds information on geographic locations where orders were placed, as referenced in the Orders data type. - allOf: - - $ref: '#/components/schemas/CommerceOrder/allOf/0' - - type: object - properties: - name: - description: Name of this location - type: string - address: - description: Address associated with the location - $ref: '#/components/schemas/CommerceAddress' - - $ref: '#/components/schemas/CommerceOrder/allOf/3' - definitions: - locationRef: - type: object - description: Reference to the geographic location where the order was placed. - properties: - id: - description: The unique identitifer of the location being referenced. - type: string - examples: - - 13d946f0-c5d5-42bc-b092-97ece17923ab - - 9wg4lep4ush5cxs79pl8sozmsndbaukll3ind4g7buqbm1h2 - - 7110701885 - - EILBDVJVNUAGVKRQ - name: - description: Name of the location being referenced. - type: string - required: - - id - examples: - - id: '15' - name: London Warehouse - address: - type: Inventory - line1: Warner House - line2: 98 Theobald's Road - city: London - region: '' - country: United Kingdom - postalCode: WC1X 8WB - modifiedDate: '2020-08-12T14:37:37' - sourceModifiedDate: '2020-08-12T14:37:37' - CommerceLocations: - title: 'Commerce: Locations' - x-internal: true - allOf: - - type: object - properties: - results: - type: array - items: - $ref: '#/components/schemas/CommerceLocation' - - $ref: '#/components/schemas/PagingInfo' - CommerceOrder: - title: 'Commerce: Order' + **Integration-specific behavior** + + Required data may vary by integration. To see what data to post, first call [Get create/update supplier model](https://docs.codat.io/sync-for-expenses-api#/operations/get-create-update-suppliers-model). + + ### Supported Integrations + + | Integration | Supported | + |-------------------------------|-----------| + | Dynamics 365 Business Central | Yes | + | FreeAgent | Yes | + | Oracle NetSuite | Yes | + | QuickBooks Desktop | Yes | + | QuickBooks Online | Yes | + | Sage Intacct | Yes | + | Xero | Yes | + | Zoho Books | Yes | + operationId: create-supplier + '/companies/{companyId}/connections/{connectionId}/push/suppliers/{supplierId}': + parameters: + - $ref: '#/components/parameters/companyId' + - $ref: '#/components/parameters/connectionId' + - $ref: '#/components/parameters/supplierId' + put: + tags: + - Suppliers + parameters: + - $ref: '#/components/parameters/timeoutInMinutes' + - $ref: '#/components/parameters/allowSyncOnPushComplete' + - $ref: '#/components/parameters/forceUpdate' + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Supplier' + responses: + '200': + description: Success + content: + application/json: + schema: + $ref: '#/components/schemas/UpdateSupplierResponse' + examples: {} + '400': + $ref: '#/components/responses/BadRequest' + '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' + summary: Update supplier description: | - Orders contain the transaction details for all products sold by the company, and include details of any payments, service charges, or refunds related to each order. You can use data from the Orders endpoints to calculate key metrics, such as gross sales values and monthly recurring revenue (MRR). + The *Update supplier* endpoint updates an existing [supplier](https://docs.codat.io/sync-for-expenses-api#/schemas/Supplier) for a given company's connection. + + [Suppliers](https://docs.codat.io/sync-for-expenses-api#/schemas/Supplier) are people or organizations that provide something, such as a product or service. + + **Integration-specific behavior** + + Required data may vary by integration. To see what data to post, first call [Get create/update supplier model](https://docs.codat.io/sync-for-expenses-api#/operations/get-create-update-suppliers-model). + + ### Supported Integrations + + | Integration | Supported | + |-------------------|-----------| + | FreeAgent | Yes | + | QuickBooks Online | Yes | + | Xero | Yes | + operationId: update-supplier +webhooks: + expenses.sync.successful: + post: + description: Called when an expense sync successfully completes without any errors or warnings. + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ExpensesSyncWebhook' + examples: + Successful: + value: + id: ba29118f-5406-4e59-b05c-ba307ca38d01 + eventType: expenses.sync.successful + generatedDate: '2024-09-01T00:00:00Z' + payload: + referenceCompany: + id: 0498e921-9b53-4396-a412-4f2f5983b0a2 + name: Toft stores + description: Syncing expenses + syncId: ee2eb431-c0fa-4dc9-93fa-d29781c12bcd + transactions: + - id: f47ac10b-58cc-4372-a567-0e02b2c3d479 + status: Completed + errorMessage: null + - id: e7f8a3d5-0c3c-4c9b-b5d3-56b4a43b62e4 + status: Completed + errorMessage: null + responses: + '200': + description: Return a 200 status to indicate that the webhook was received successfully. + expenses.sync.unsuccessful: + post: + description: 'Called when an expense sync fails to complete successfully, resulting in at least one error or warning.' + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ExpensesSyncWebhook' + examples: + Unsuccessful: + value: + id: ba29118f-5406-4e59-b05c-ba307ca38d01 + eventType: expenses.sync.unsuccessful + generatedDate: '2024-09-01T00:00:00Z' + payload: + referenceCompany: + id: 0498e921-9b53-4396-a412-4f2f5983b0a2 + name: Toft stores + description: Syncing expenses + syncId: ee2eb431-c0fa-4dc9-93fa-d29781c12bcd + transactions: + - id: f47ac10b-58cc-4372-a567-0e02b2c3d479 + status: Completed + errorMessage: null + - id: e7f8a3d5-0c3c-4c9b-b5d3-56b4a43b62e4 + status: Failed + errorMessage: Insufficient funds + responses: + '200': + description: Return a 200 status to indicate that the webhook was received successfully. + client.rateLimit.reached: + post: + description: Called when your client’s request count to Codat's API surpasses the allocated quota. + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ClientRateLimitWebhook' + examples: + Reached: + value: + id: 743ec94a-8aa4-44bb-8bd4-e1855ee0e74b + eventType: client.rateLimit.reached + generatedDate: '2024-09-01T00:00:00Z' + payload: + dailyQuota: 12000 + quotaRemaining: 0 + expiryDate: '2024-09-01T12:14:14Z' + responses: + '200': + description: Return a 200 status to indicate that the webhook was received successfully. + client.rateLimit.reset: + post: + description: 'Called when your client''s rate limit quota is reset, allowing additional requests to Codat''s API.' + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ClientRateLimitWebhook' + examples: + Reset: + value: + id: 743ec94a-8aa4-44bb-8bd4-e1855ee0e74b + eventType: client.rateLimit.reset + generatedDate: '2024-09-01T00:00:00Z' + payload: + dailyQuota: 12000 + quotaRemaining: 11993 + expiryDate: '2024-09-01T23:59:99Z' + responses: + '200': + description: Return a 200 status to indicate that the webhook was received successfully. +components: + schemas: + Account: + title: 'Accounting: Account' + description: "\uFEFF> **Language tip:** Accounts are also referred to as **chart of accounts**, **nominal accounts**, and **general ledger**.\n\n## Overview\n\nAccounts are the categories a business uses to record accounting transactions. From the Accounts endpoints, you can retrieve a list of all accounts for a specified company.\n\nThe categories for an account include:\n* Asset\n* Expense\n* Income\n* Liability\n* Equity.\n\nThe same account may have a different category based on the integration it is used in. For example, a current account (known as checking in the US) should be categorized as `Asset.Current` for Xero, and `Asset.Bank.Checking` for QuickBooks Online.\n\nAt the same time, each integration may have its own requirements to the categories. For example, a Paypal account in Xero is of the `Asset.Bank` category and therefore requires additional properties to be provided.\n\nTo determine the list of allowed categories for a specific integration, you can:\n- Follow our [Create, update, delete data](https://docs.codat.io/using-the-api/push) guide and use the [Get create account model](https://docs.codat.io/sync-for-expenses-api#/operations/get-create-chartOfAccounts-model).\n- Refer to the integration's own documentation.\n\n> **Accounts with no category**\n>\n> If an account is pulled from the chart of accounts and its nominal code does not lie within the category layout for the company's accounts, then the **type** is `Unknown`. The **fullyQualifiedCategory** and **fullyQualifiedName** fields return `null`.\n>\n> This approach gives a true representation of the company's accounts whilst preventing distorting financials such as a company's profit and loss and balance sheet reports." allOf: - - type: object - x-stoplight: - id: 516bf0ecc4907 - required: - - id - properties: + - properties: id: type: string - description: 'A unique, persistent identifier for this record' - examples: - - 13d946f0-c5d5-42bc-b092-97ece17923ab - - 9wg4lep4ush5cxs79pl8sozmsndbaukll3ind4g7buqbm1h2 - - 7110701885 - - EILBDVJVNUAGVKRQ - x-codat-validation: - - validator: UniqueWithinConnection + description: 'Identifier for the account, unique for the company.' + example: 1b6266d1-1e44-46c5-8eb5-a8f98e03124e + - $ref: '#/components/schemas/Account/definitions/accountPrototype' - properties: - orderNumber: - type: string - description: Friendly reference for the order in the commerce or point of sale platform. - country: - description: |- - The Codat country property is returned as it was provided in the underlying platform by the company without any formatting on our part. - - Depending on the platform the value of this property will either be an ISO 3166 code (2-alpha or 3-alpha) or free-form text returned as a string name in our model. - - For POST operations against platforms that demand a specific format for the country code, we have documented accepted values in the [options](https://docs.codat.io/lending-api#/operations/get-companies-companyId-connections-connectionId-push) endpoint. - type: string - format: ISO3166 Alpha-3 - examples: - - GBR - - USA - - ABW - currency: - allOf: - - $ref: '#/components/schemas/SourceAccount/properties/currency' - - description: Currency in which the order was placed. - closedDate: - $ref: '#/components/schemas/DateTime' - description: 'Date on which order was closed after the product was shipped, paid for, and any refund period had elapsed.' - totalAmount: - description: 'Total amount of the order, including discounts, refunds, and tax, but excluding gratuities.' - type: number - format: decimal - totalRefund: - description: 'Total amount of any refunds issued on the order, including discounts and tax, but excluding gratuities. This is always negative.' - type: number - format: decimal - totalTaxAmount: - description: Total amount of tax applied to the order. - type: number - format: decimal - totalDiscount: - description: 'Total amount of any discounts applied to the order, excluding tax. This is typically positive (for discounts which decrease the amount of the order), but can also be negative (for discounts which increase the amount of the order).' - type: number - format: decimal - totalGratuity: - description: Extra amount added to the order. - type: number - format: decimal - orderLineItems: - type: array - items: - $ref: '#/components/schemas/CommerceOrder/definitions/orderLineItem' - payments: - type: array - items: - $ref: '#/components/schemas/CommercePayment/definitions/paymentRef' - serviceCharges: - type: array - items: - $ref: '#/components/schemas/CommerceOrder/definitions/serviceCharge' - locationRef: - $ref: '#/components/schemas/CommerceLocation/definitions/locationRef' - customerRef: - $ref: '#/components/schemas/CommerceCustomer/definitions/commerceCustomerRef' - supplementalData: - $ref: '#/components/schemas/SupplementalData' - - title: Created date - type: object - x-internal: true - properties: - createdDate: - $ref: '#/components/schemas/DateTime' - description: The date the entity was created. + metadata: + title: Metadata + type: object + x-internal: true + properties: + isDeleted: + type: boolean + description: Indicates whether the record has been deleted in the third-party system this record originated from. + nullable: true - title: Modified dates x-internal: true allOf: @@ -84118,7 +10136,7 @@ components: properties: modifiedDate: allOf: - - $ref: '#/components/schemas/DateTime' + - $ref: '#/components/schemas/TransferTransactionRequest/properties/date/allOf/1' - description: |- The date when the record was last fetched from the accounting software, commerce software, or open banking provider and updated in Codat’s data cache. @@ -84134,7 +10152,7 @@ components: properties: sourceModifiedDate: allOf: - - $ref: '#/components/schemas/DateTime' + - $ref: '#/components/schemas/TransferTransactionRequest/properties/date/allOf/1' - description: |- The date when a record was last modified in the accounting software, usually by the business or a business process. For example, when payments are made against an invoice. @@ -84146,987 +10164,525 @@ components: In Codat's data model, dates and times are represented using the ISO 8601 standard. definitions: - orderLineItem: - allOf: - - $ref: '#/components/schemas/CommerceOrder/allOf/0' - - type: object - properties: - quantity: - type: number - format: decimal - description: | - Number of units of the product sold. - For refunds, quantity is negative. - taxPercentage: - type: number - format: decimal - description: Percentage rate (from 0 to 100) of any sales tax applied to the unit price. - examples: - - 0 - - 12.5 - - '45.00' - totalAmount: - type: number - format: decimal - description: 'Total amount of the line item, including discounts and tax.' - totalTaxAmount: - type: number - format: decimal - description: 'Total amount of tax applied to the line item, factoring in any discounts.' - unitPrice: - type: number - format: decimal - description: 'Price per unit of goods or services, excluding discounts and tax.' - taxes: - type: array - items: - $ref: '#/components/schemas/CommerceTaxComponent/definitions/taxComponentAllocation' - description: Taxes breakdown as applied to order lines. - productRef: - $ref: '#/components/schemas/CommerceProduct/definitions/productRef' - productVariantRef: - $ref: '#/components/schemas/CommerceProduct/definitions/productVariantRef' - discountAllocations: - type: array - items: - $ref: '#/components/schemas/CommerceOrder/definitions/orderDiscountAllocation' - serviceCharge: - type: object - properties: - description: - description: Service charges for this order. - type: string - example: A service charge - totalAmount: - description: 'Total amount of the service charge, including tax.' - type: number - format: decimal - examples: - - 0 - - 12.5 - - 45 - taxPercentage: - description: Percentage rate (from 0 to 100) of any tax applied to the service charge. - type: number - format: decimal - examples: - - 0 - - 12.5 - - 45 - taxAmount: - description: Amount of the service charge that is tax. - type: number - format: decimal - examples: - - 0 - - 12.5 - - 45 - taxes: - description: Taxes breakdown as applied to service charges. - type: array - items: - $ref: '#/components/schemas/CommerceTaxComponent/definitions/taxComponentAllocation' - quantity: - description: The number of times the charge is charged. - type: integer - examples: - - 1 - - 12 - - 45 - type: - $ref: '#/components/schemas/CommerceOrder/definitions/serviceChargeType' - serviceChargeType: - description: The type of the service charge. - type: string - enum: - - Generic - - Shipping - - Overpayment - - Unknown - example: Overpayment - orderDiscountAllocation: + accountPrototype: + title: Account prototype type: object properties: - name: - type: string - description: Name of the discount in the commerce or point of sale platform. - example: Promotional Discount - totalAmount: - type: number - format: decimal - description: 'Total amount of discount applied, excluding tax. This is typically positive (for discounts which decrease the amount of the order line), but can also be negative (for discounts which increase the amount of the order line).' - example: 15.25 - examples: - - id: 01e63721-1205-478e-8503-9d8bf8a93f44 - orderNumber: '99123956' - country: CAN - currency: CAD - createdDate: '2021-03-28T03:00:14' - totalAmount: 12 - totalRefund: 0 - totalTaxAmount: 2 - totalDiscount: 0 - totalGratuity: 1 - orderLineItems: - - id: 116113a6-54d3-4624-ba73-26a77a5ffd51 - quantity: 1 - taxPercentage: 20 - totalAmount: 12 - totalTaxAmount: 2 - unitPrice: 10 - taxes: - - taxComponentRef: - id: '72' - name: Sales Tax - taxAmount: '' - - taxComponentRef: - id: '72' - name: City Tax - taxAmount: '' - productRef: - id: ac186646-41f2-4280-afea-1012c59459ab - name: Intelligent Concrete Salad - productVariantRef: - id: f9ca9de5-9e31-460d-ac81-368f4e7c8fc0 - name: Small Incredible Wooden Soap - discountAllocations: [] - payments: - - id: defdceb6-83a3-4b7d-a74e-e9ef947d5f48 - amount: 12 - currency: CAD - type: Paypal - status: Unknown - dueDate: '2021-04-04T03:00:14' - createdDate: '2021-03-28T03:00:14' - modifiedDate: '2022-02-02T11:02:45' - serviceCharges: - - description: Service Charge - totalAmount: 1.2 - taxPercentage: 20 - taxAmount: 0.2 - taxes: - - taxComponentRef: - id: '72' - name: Service Tax - taxAmount: '' - quantity: 1 - type: Generic - locationRef: - id: 47bbffc7-c045-4b0f-a3bb-ecf1f669edfa - customerRef: - id: 2634d180-7205-43f0-a73d-84af6443a005 - name: Emmy Roberts - modifiedDate: '2022-02-02T11:02:45Z' - sourceModifiedDate: '2021-03-28T03:00:14' - type: object - CommerceOrders: - title: 'Commerce: Orders' - x-internal: true - allOf: - - type: object - properties: - results: - type: array - items: - $ref: '#/components/schemas/CommerceOrder' - - $ref: '#/components/schemas/PagingInfo' - CommercePayment: - title: 'Commerce: Payment' - description: |- - Payments contain details of all payments made by customers to a company, including: amounts, currency used, payment method, payment provider, and payment status. - - Refunds are recorded as separate, negative payments. Note that a refund can only occur in relation to a payment that has been completed (i.e. has a status of `Paid`). When a customer cancels an order _before_ a payment has been completed, the payment shows as `Cancelled`. - - You can use data from the Payments endpoints to calculate key metrics, such as gross sales and monthly recurring revenue (MRR). - type: object - allOf: - - $ref: '#/components/schemas/CommerceOrder/allOf/0' - - type: object - properties: - amount: - type: number - format: decimal - description: Payment Amount (including gratuity) - examples: - - 194.12 - - -283.56 - - 0 - currency: - $ref: '#/components/schemas/SourceAccount/properties/currency' - description: Currency in which the payment was made - paymentMethodRef: - $ref: '#/components/schemas/PaymentMethodRef' - status: - $ref: '#/components/schemas/CommercePayment/definitions/paymentStatus' - paymentProvider: + nominalCode: type: string - description: 'Service provider of the payment, if applicable.' - examples: - - Amazon Pay - - Checkout.com - - SagePay - dueDate: - description: Date by which payment must be made - $ref: '#/components/schemas/DateTime' - supplementalData: - $ref: '#/components/schemas/SupplementalData' - - $ref: '#/components/schemas/CommerceOrder/allOf/2' - - $ref: '#/components/schemas/CommerceOrder/allOf/3' - definitions: - paymentStatus: - type: string - x-internal: true - description: Status of the payment. - enum: - - Pending - - Authorized - - Paid - - Failed - - Cancelled - - Unknown - paymentType: - type: string - x-internal: true - nullable: true - description: Type of payment. - enum: - - Cash - - Card - - Invoice - - OnlineCard - - Swish - - Vipps - - Mobile - - StoreCredit - - Paypal - - Custom - - Prepaid - - Unknown - example: Cash - paymentRef: - x-internal: true - allOf: - - $ref: '#/components/schemas/CommerceOrder/allOf/0' - - type: object - properties: - amount: - type: number - format: decimal - nullable: true - description: Payment Amount (including gratuity). - examples: - - 194.12 - - -283.56 - - 0 - currency: - $ref: '#/components/schemas/SourceAccount/properties/currency' - description: Currency in which the payment was made. - type: - $ref: '#/components/schemas/CommercePayment/definitions/paymentType' - status: - $ref: '#/components/schemas/CommercePayment/definitions/paymentStatus' - paymentProvider: - type: string - description: 'Service provider of the payment, if applicable.' - examples: - - Amazon Pay - - Checkout.com - - SagePay - dueDate: - description: Date by which payment must be made - $ref: '#/components/schemas/DateTime' - - $ref: '#/components/schemas/CommerceOrder/allOf/2' - - $ref: '#/components/schemas/CommerceOrder/allOf/3' - CommercePaymentMethod: - title: 'Commerce: Payment method' - description: A Payment Method represents the payment method(s) used to make payments. - type: object - allOf: - - $ref: '#/components/schemas/CommerceOrder/allOf/0' - - type: object - properties: + nullable: true + description: Reference given to each nominal account for a business. It ensures money is allocated to the correct account. This code isn't a unique identifier in the Codat system. + example: '610' name: type: string - description: The name of the PaymentMethod - example: Alipay - status: - description: Status of the Payment Method. - x-internal: true + nullable: true + description: Name of the account. + example: Accounts Receivable + description: type: string - enum: - - Unknown - - Active - - Archived - - $ref: '#/components/schemas/CommerceOrder/allOf/3' - CommercePaymentMethods: - title: 'Commerce: Payment methods' - x-internal: true - allOf: - - type: object - properties: - results: - type: array - items: - $ref: '#/components/schemas/CommercePaymentMethod' - - $ref: '#/components/schemas/PagingInfo' - CommercePayments: - title: 'Commerce: Payments' - x-internal: true - allOf: - - type: object - properties: - results: - type: array - items: - $ref: '#/components/schemas/CommercePayment' - - $ref: '#/components/schemas/PagingInfo' - CommerceProduct: - title: 'Commerce: Product' - description: | - A Product is an item in the company's inventory, and includes information about the price and quantity of all products, and variants thereof, available for sale. - type: object - allOf: - - $ref: '#/components/schemas/CommerceOrder/allOf/0' - - type: object - properties: - name: + nullable: true + description: Description for the account. + example: Invoices the business has issued but has not yet collected payment on. + fullyQualifiedCategory: type: string - description: Name of the product in the commerce or POS system - examples: - - Hard Drive - - Windows Installation - - Software Support (Hourly) - description: + nullable: true + description: "Full category of the account. \r\n\r\nFor example, `Liability.Current` or `Income.Revenue`. To determine a list of possible categories for each integration, see our examples, follow our [Create, update, delete data](https://docs.codat.io/using-the-api/push) guide, or refer to the integration's own documentation." + example: Asset.Current + fullyQualifiedName: type: string - description: Description of the product recorded in the commerce or point of sale platform. + nullable: true + description: |- + Full name of the account, for example: + - `Cash On Hand` + - `Rents Held In Trust` + - `Fixed Asset` examples: - - 1tb Western Digital Hard Drive - - Install of Windows 11 (Professional Edition) - - 1 hour of support from an agent (phone or remote) - categorization: + - Cash On Hand + - Fixed Asset + currency: + title: Currency + x-internal: true type: string - description: Retail category that the product is assigned to e.g. `Hardware`. + description: |- + The currency data type in Codat is the [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code, e.g. _GBP_. + + ## Unknown currencies + + In line with the ISO 4217 specification, the code _XXX_ is used when the data source does not return a currency for a transaction. + + There are only a very small number of edge cases where this currency code is returned by the Codat system. + format: ISO4217 examples: - - Hardware - - Software - - Support Services - isGiftCard: + - GBP + - USD + - EUR + currentBalance: + type: number + format: decimal + nullable: true + description: Current balance in the account. + example: 0 + type: + $ref: '#/components/schemas/Account/definitions/accountType' + status: + $ref: '#/components/schemas/Account/definitions/accountStatus' + isBankAccount: type: boolean - description: | - Whether the product represents a gift card or voucher that - can be redeemed in the commerce or POS platform. - variants: + description: Confirms whether the account is a bank account or not. + validDatatypeLinks: type: array + nullable: true + description: 'The validDatatypeLinks can be used to determine whether an account can be correctly mapped to another object; for example, accounts with a `type` of `income` might only support being used on an Invoice and Direct Income. For more information, see [Valid Data Type Links](/sync-for-expenses-api#/schemas/ValidDataTypeLinks).' items: - $ref: '#/components/schemas/CommerceProduct/definitions/productVariant' + title: Valid data type links + description: |- + When querying Codat's data model, some data types return `validDatatypeLinks` metadata in the JSON response. This indicates where that object can be used as a reference—a _valid link_—when creating or updating other data. + + For example, `validDatatypeLinks` might indicate the following references: + + - Which tax rates are valid to use on the line item of a bill. + - Which items can be used when creating an invoice. + + You can use `validDatatypeLinks` to present your SMB customers with only valid choices when selecting objects from a list, for example. + + ## `validDatatypeLinks` example + + The following example uses the `Accounting.Accounts` data type. It shows that, on the linked integration, this account is valid as the account on a payment or bill payment; and as the account referenced on the line item of a direct income or direct cost. Because there is no valid link to Invoices or Bills, using this account on those data types will result in an error. + + ```json validDatatypeLinks for an account + { + "id": "bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4", + "nominalCode": "090", + "name": "Business Bank Account", + #... + "validDatatypeLinks": [ + { + "property": "Id", + "links": [ + "Payment.AccountRef.Id", + "BillPayment.AccountRef.Id", + "DirectIncome.LineItems.AccountRef.Id", + "DirectCost.LineItems.AccountRef.Id" + ] + } + ] + } + ``` + + + + ## Support for `validDatatypeLinks` + + Codat currently supports `validDatatypeLinks` for some data types on our Xero, QuickBooks Online, QuickBooks Desktop, Exact (NL), and Sage Business Cloud integrations. + + If you'd like us to extend support to more data types or integrations, suggest or vote for this on our Product Roadmap. + type: object + properties: + property: + type: string + nullable: true + description: The property from the account that can be linked. + links: + type: array + nullable: true + description: Supported `dataTypes` that the record can be linked to. + items: + type: string supplementalData: $ref: '#/components/schemas/SupplementalData' - definitions: - productRef: - type: object - description: Reference that links the line item to the correct product details. - properties: - id: - description: The unique identifier of the product being referenced. - type: string - examples: - - 13d946f0-c5d5-42bc-b092-97ece17923ab - - 9wg4lep4ush5cxs79pl8sozmsndbaukll3ind4g7buqbm1h2 - - 7110701885 - - EILBDVJVNUAGVKRQ - name: - description: Name of the product being referenced. - type: string - required: - - id - productVariant: - title: Product Variant - description: | - Represents a variation of a product available for sale, for example an item of clothing that may be available for sale in multiple sizes and colors. - allOf: - - $ref: '#/components/schemas/CommerceOrder/allOf/0' - description: 'Identifier of the product variant, unique to the company.' - - properties: - name: - type: string - examples: - - Red Coat - - Black Coat - - Large Brown Hat - description: Name of the product recorded in the commerce or point of sale platform. - isTaxEnabled: - type: boolean - description: Whether sales taxes are enabled for this product variant. - sku: - type: string - examples: - - Coat-Red-Lrg - - Coat-Black-Md - - LargeBrownHat - - A725BA2 - description: 'SKU (stock keeping unit) of the variant, as defined by the merchant.' - barcode: - type: string - examples: - - '564158468416486458646886484' - - CSE370 - description: 'Unique product number of the variant. This might be a barcode, UPC, ISBN, etc.' - unitOfMeasure: - type: string - examples: - - kg - - m - - meters - description: 'Unit of measure for the variant, such as `kg` or `meters`.' - vatPercentage: - type: number - format: decimal - examples: - - 12.5 - - 0 - - 20 - description: VAT rate for the product variant if sales taxes are enabled. - prices: - type: array - description: Prices for the product variants in different currencies. - items: - $ref: '#/components/schemas/CommerceProduct/definitions/productPrice' - inventory: - $ref: '#/components/schemas/CommerceProduct/definitions/productInventory' - shippingRequired: - type: boolean - description: Indicates whether or not the product requires physical delivery. - status: - $ref: '#/components/schemas/CommerceProduct/definitions/productVariantStatus' - - $ref: '#/components/schemas/CommerceOrder/allOf/2' - - $ref: '#/components/schemas/CommerceOrder/allOf/3' - productVariantRef: - title: Product variant reference + accountRef: + title: Account reference type: object - description: Reference that links the line item to the specific version of product that has been ordered. + description: 'Data types that reference an account, for example bill and invoice line items, use an accountRef that includes the ID and name of the linked account.' properties: id: - description: The unique identifier of the product variant being referenced. type: string - examples: - - 13d946f0-c5d5-42bc-b092-97ece17923ab - - 9wg4lep4ush5cxs79pl8sozmsndbaukll3ind4g7buqbm1h2 - - 7110701885 - - EILBDVJVNUAGVKRQ + description: '''id'' from the Accounts data type.' name: - description: Name of the product variant being referenced. type: string - required: - - id - productPrice: - title: Product Price Variant - x-internal: true - type: object - properties: - currency: - $ref: '#/components/schemas/SourceAccount/properties/currency' - nullable: true - unitPrice: - type: number - format: decimal - description: The product variant's unit price. - productInventory: - title: Product Inventory - description: Information about the total inventory as well as the locations inventory is in. - x-internal: true - type: object - properties: - totalQuantity: - type: number - format: decimal - nullable: true - description: The total quantity of stock remaining across locations. - locations: - type: array - items: - $ref: '#/components/schemas/CommerceProduct/definitions/productInventoryLocation' - productInventoryLocation: - title: Product Inventory Location - x-internal: true - type: object - properties: - quantity: - type: number - format: decimal - description: The quantity of stock remaining at location. - locationRef: - $ref: '#/components/schemas/CommerceLocation/definitions/locationRef' - productVariantStatus: - x-internal: true + description: '''name'' from the Accounts data type.' + accountType: + title: Account type + enum: + - Unknown + - Asset + - Expense + - Income + - Liability + - Equity type: string - description: The status of the product variant. + description: Type of account + example: Asset + accountStatus: + title: Account status enum: - Unknown - - Published - - Unpublished - CommerceProductCategories: - title: 'Commerce: Product categories' - x-internal: true - allOf: - - type: object - properties: - results: - type: array - items: - $ref: '#/components/schemas/CommerceProductCategory' - - $ref: '#/components/schemas/PagingInfo' - CommerceProductCategory: - title: 'Commerce: Product category' - description: 'Product categories are used to classify a group of products together, either by type (e.g. "Furniture"), or sometimes by tax profile.' + - Active + - Archived + - Pending + type: string + description: Status of the account + example: Active type: object - allOf: - - type: object - properties: - id: - type: string - example: '"102"' - description: The unique identifier of the product category - name: - type: string - example: Entertainment - description: The name of the product category - ancestorRefs: - type: array - description: A collection of parent product categories implicitly ordered with the immediate parent last in the list. - items: - $ref: '#/components/schemas/CommerceRecordRef' - hasChildren: - type: boolean - description: A boolean indicating whether there are other product categories beneath this one in the hierarchy. - - $ref: '#/components/schemas/CommerceOrder/allOf/3' - examples: - - productCategories: - - id: '100' - name: Entertainment - ancestorRefs: [] - hasChildren: true - modifiedDate: '2022-01-01T12:00:00Z' - sourceModifiedDate: '2021-10-01T12:53:21Z' - - id: '101' - name: Cinema - ancestorRefs: - - id: '100' - name: Entertainment - hasChildren: true - modifiedDate: '2022-01-01T12:00:00Z' - sourceModifiedDate: '2021-10-01T12:55:02Z' - - id: '102' - name: Movie - ancestorRefs: - - id: '100' - name: Entertainment - - id: '101' - name: Cinema - hasChildren: false - modifiedDate: '2022-01-01T12:00:00Z' - sourceModifiedDate: '2021-12-25T12:00:00Z' - CommerceProducts: - title: 'Commerce: Products' + AccountMappingInfo: + title: Account mapping info x-internal: true - allOf: - - type: object - properties: - results: - type: array - items: - $ref: '#/components/schemas/CommerceProduct' - - $ref: '#/components/schemas/PagingInfo' - CommerceRecordRef: - title: Record Ref + type: object + additionalProperties: false + x-examples: + Example AccountInfo: + id: 313a4dbe-b3a4-42f0-a5f5-43e382e62db9 + nominalCode: '720' + name: Travel + currency: GBP + accountType: Expense + fullyQualifiedCategory: Expense.Overhead + isBankAccount: false + validTransactionTypes: + - Payment + - Refund + validFor: + - expense-transactions.Payment + - expense-transactions.Refund + - reimbursable-expense-transactions + properties: + id: + type: string + description: Unique identifier of account. + example: 127f3b99-8dc2-4b7e-854c-91ef9bd2757b + nullable: false + nominalCode: + type: string + description: Code used to identify each nominal account in the accounting software. + example: '300' + nullable: true + name: + type: string + description: Name of the account as it appears in the company's accounting software. + example: Purchases + nullable: false + currency: + type: string + description: Currency of the account. + example: GBP + nullable: false + accountType: + type: string + description: Type of the account. + example: Expense + enum: + - Asset + - Liability + - Income + - Expense + - Equity + nullable: false + fullyQualifiedCategory: + type: string + description: Full account type and category of the account + example: Expense.DirectCosts + nullable: false + isBankAccount: + type: boolean + description: Confirms whether the account is a bank account or not. + validTransactionTypes: + $ref: '#/components/schemas/validTransactionTypes' + description: Supported transaction types for the account. + validFor: + $ref: '#/components/schemas/validFor' + description: Supported endpoints for the account. + AdjustmentTransactionLine: x-internal: true + title: Adjustment transaction line + type: object + properties: + amount: + type: number + format: decimal + example: 50 + description: Amount of the line. A positive line represents a debit; a negative line represents a credit. + accountRef: + $ref: '#/components/schemas/RecordRef' + description: + type: string + description: 'Any private, company notes about the transaction.' + example: 'APPLE.COM/BILL - 09001077498 - Card Ending: 4590' + trackingRefs: + type: array + minItems: 1 + maxItems: 10 + nullable: true + items: + $ref: '#/components/schemas/TrackingRefAdjustmentTransaction' + invoiceTo: + $ref: '#/components/schemas/InvoiceTo' + required: + - amount + - accountRef + AdjustmentTransactionRequest: + title: Adjustment transaction type: object properties: id: - description: The unique identitifer of the record being referenced type: string - examples: - - 13d946f0-c5d5-42bc-b092-97ece17923ab - - 9wg4lep4ush5cxs79pl8sozmsndbaukll3ind4g7buqbm1h2 - - 7110701885 - - EILBDVJVNUAGVKRQ - type: - description: The type of record being referenced. + format: uuid + description: Your unique identifier for the transaction. + date: + $ref: '#/components/schemas/TransferTransactionRequest/properties/date/allOf/1' + description: Date of the transaction. + currency: + type: string + description: Currency the transaction was recorded in. + currencyRate: + $ref: '#/components/schemas/ExpenseTransaction/properties/currencyRate' + reference: type: string + nullable: true + description: User-friendly reference for the adjustment transaction. + lines: + type: array + description: Array of transaction lines. + minItems: 1 + maxItems: 100 + items: + $ref: '#/components/schemas/AdjustmentTransactionLine' required: - id - - type - description: '' - CommerceReport: - title: Commerce report + - date + - currency + - lines + AdjustmentTransactionResponse: + title: Adjustment response + x-internal: true + type: object + properties: + syncId: + type: string + example: cd937d46-8e41-43a9-9477-a79158ffd98a + format: uuid + description: Unique id of sync created + apAccountRef: + x-internal: true + type: object + title: Accounts Payable account reference + nullable: true + properties: + id: + type: string + example: 8000004C-1724173136 + description: Unique identifier for the Accounts Payable account associated with the transaction. The `apAccountRef` object is currently supported only for QuickBooks Desktop. + Attachment: + title: Attachment + type: object + x-examples: + Attachment Example: + companyId: bf1e0242-5b7a-418b-a307-9e09dbf9f39a + id: '1400000000122699154' + transactionId: f8f00edd-ddb0-4ca5-b36b-8f932e6b5160 + properties: + companyId: + type: string + format: uuid + description: Unique ID of company in Codat + id: + type: string + description: Unique identifier of attachment + transactionId: + type: string + description: Unique identifier of transaction + AttachmentUpload: + title: Attachment upload + type: object + x-internal: true + required: + - file + properties: + file: + $ref: '#/components/schemas/AttachmentUpload/definitions/codatFile' + definitions: + codatFile: + type: string + description: The file to be uploaded as an attachment. + format: binary + BankAccount: + title: 'Accounting: Bank account' description: |- - ## Structure - - Assess reports follow a consistent structure. Reports contain four sections of information: - - ### 1. Report definition - - Information such as: - - 1. The report info (e.g. enhanced_profit_and_loss). - 2. The display name of the report (e.g. Enhanced Profit and Loss). - - ### 2. Dimension info - - Information about the dimension contained in the reports such as: - - 1. The type of dimension (e.g. datetime, recordRef). - 2. The display name of the dimension (e.g. Period, Category type, Category sub type). - 3. The details about each item within the dimension (e.g. displayName:"Jan 2022", start:"...", end:"...", id:"...", name:"..."). - - ### 3. Measure info - - Information about the measures contained in the report such as: - - 1. The display name of the measure (e.g. value of account, percentage change). - 2. The type of the measure (e.g. currency, percentage). - 3. The unit of the measure (e.g. %, GBP). - - ### 4. The data for the report - - When the *includeDisplayName* parameter is set to *true*, it shows the *dimensionDisplayName* and *itemDisplayName* to make the data human-readable. The default setting for *includeDisplayName* is *false*. - - - ## Displaying the report - - Reports can be rendered as follows (ordering is implicit rather than explicit): + > **Accessing Bank Accounts through Banking API** + > + > This datatype was originally used for accessing bank account data both in accounting integrations and open banking aggregators. + > + > To view bank account data through the Banking API, please refer to the new [Banking: Account](https://docs.codat.io/sync-for-expenses-api#/schemas/Account) data type. - ![A table showing an example of how a report can be rendered](https://files.readme.io/1fa20ca-Report1.png) + ## Overview - # Data model + A list of bank accounts associated with a company and a specific data connection. - ## Dimensions + Bank accounts data includes: + * The name and ID of the account in the accounting software. + * The currency and balance of the account. + * The sort code and account number. type: object - properties: - reportInfo: - type: object - additionalProperties: - type: string - dimensions: - type: array - items: - $ref: '#/components/schemas/CommerceReport/definitions/commerceReportDimension' - measures: - type: array - items: - $ref: '#/components/schemas/CommerceReport/definitions/commerceReportMeasure' - reportData: - type: array - items: - $ref: '#/components/schemas/CommerceReport/definitions/commerceReportComponent' - errors: - type: array - items: - $ref: '#/components/schemas/CommerceReport/definitions/commerceReportError' - definitions: - commerceReportMeasure: - title: Measure - type: object - properties: - displayName: - description: The measure's display name. - type: string - units: - type: string - description: The measure's units e.g. percentage (%). - index: - type: integer - description: The measure's index. - type: - type: string - description: The measure's type. - commerceReportError: - title: Error - type: object - properties: - message: - type: string - description: Message returned by error. - type: + allOf: + - properties: + id: type: string - description: The type of error. - details: - description: Additional details on the error. - type: object - additionalProperties: - type: array - items: - type: string - commerceReportDimension: - title: Dimension + description: 'Identifier for the account, unique for the company in the accounting software.' + - $ref: '#/components/schemas/BankAccount/definitions/bankAccountPrototype' + - properties: + metadata: + $ref: '#/components/schemas/Account/allOf/2/properties/metadata' + supplementalData: + $ref: '#/components/schemas/SupplementalData' + - $ref: '#/components/schemas/Account/allOf/3' + definitions: + bankAccountPrototype: + title: Bank account prototype type: object properties: - index: - type: integer - description: The dimension's index. - displayName: + accountName: type: string - description: The dimension's display name. - type: + nullable: true + description: Name of the bank account in the accounting software. + accountType: + title: Bank Account Type + x-internal: true + enum: + - Unknown + - Credit + - Debit type: string - description: The dimension's type. - items: - type: array - items: - type: object - properties: - index: - type: integer - description: The dimension's items index. - commerceReportComponent: - title: Report component - type: object - properties: - dimension: - type: integer - description: The component's dimension. - dimensionDisplayName: + description: |- + The type of transactions and balances on the account. + For Credit accounts, positive balances are liabilities, and positive transactions **reduce** liabilities. + For Debit accounts, positive balances are assets, and positive transactions **increase** assets. + nominalCode: type: string - description: The component's display name. - item: - type: integer - description: The component's item number. - itemDisplayName: + nullable: true + description: Code used to identify each nominal account for a business. + sortCode: type: string - description: The component's item display name. - measures: - type: array - items: - $ref: '#/components/schemas/CommerceReport/definitions/reportComponentMeasure' - components: - type: array - items: - $ref: '#/components/schemas/CommerceReport/definitions/commerceReportComponent' - reportComponentMeasure: - type: object - title: Report component measure - properties: - index: - type: integer - description: The measure's index. - measureDisplayName: + nullable: true + description: |- + Sort code for the bank account. + + Xero integrations + The sort code is only displayed when the currency = GBP and the sort code and account number sum to 14 digits. For non-GBP accounts, this field is not populated. + accountNumber: type: string - description: The measure's display name. - value: + nullable: true + description: |- + Account number for the bank account. + + Xero integrations + Only a UK account number shows for bank accounts with GBP currency and a combined total of sort code and account number that equals 14 digits, For non-GBP accounts, the full bank account number is populated. + + FreeAgent integrations + For Credit accounts, only the last four digits are required. For other types, the field is optional. + iBan: + type: string + nullable: true + description: International bank account number of the account. Often used when making or receiving international payments. + currency: + $ref: '#/components/schemas/Account/definitions/accountPrototype/properties/currency' + description: Base currency of the bank account. + balance: type: number format: decimal - description: The measure's value. - x-examples: - Example 1: - reportInfo: - additionalProp1: string - additionalProp2: string - additionalProp3: string - dimensions: - - index: 0 - displayName: string - type: string - items: - - index: 0 - measures: - - displayName: string - units: string - index: 0 - type: string - reportData: - - dimension: 0 - dimensionDisplayName: string - item: 0 - itemDisplayName: string - measures: - - index: 0 - measureDisplayName: string - components: - - string - errors: - - message: string - type: DatesOutOfRange - details: - additionalProp1: - - string - additionalProp2: - - string - additionalProp3: - - string - CommerceTaxComponent: - title: 'Commerce: Tax component' - description: 'The Tax Components endpoints return tax rates data from the commerce software, including tax rate names and values. This is to support the mapping of tax rates from the commerce software to those in the accounting software.' - type: object - allOf: - - $ref: '#/components/schemas/CommerceOrder/allOf/0' - - type: object - properties: - name: + nullable: true + description: Balance of the bank account. + institution: type: string - description: Name of the Tax Rate Component in the source commerce software. - example: Sales Tax - rate: - description: Rate of taxation represented as a fraction of the net price (typically in the range 0.00 - 1.00). + nullable: true + description: The institution of the bank account. + availableBalance: type: number format: decimal - examples: - - 0.15 - - 0.2 - isCompound: - description: The Boolean flag to indicate when a Tax Rate Component compounds on a sale. - type: boolean - examples: - - true - - false - - $ref: '#/components/schemas/CommerceOrder/allOf/3' - required: - - name - definitions: - taxComponentAllocation: - title: Tax Component Allocation - type: object - properties: - taxComponentRef: - $ref: '#/components/schemas/CommerceTaxComponent/definitions/taxComponentRef' - rate: - description: Tax amount on order line sale as available from source commerce software. + nullable: true + description: Total available balance of the bank account as reported by the underlying data source. This may take into account overdrafts or pending transactions for example. + overdraftLimit: type: number format: decimal nullable: true - taxComponentRef: + description: |- + Pre-arranged overdraft limit of the account. + + The value is always positive. For example, an overdraftLimit of `1000` means that the balance of the account can go down to `-1000`. + status: + $ref: '#/components/schemas/BankAccount/definitions/bankAccountStatus' + bankAccountCreateResponse: + title: Create bank account response + allOf: + - properties: + data: + allOf: + - $ref: '#/components/schemas/BankAccount' + - deprecated: true + - $ref: '#/components/schemas/PushOperation' + bankAccountRef: + title: Bank account reference type: object - description: Taxes rates reference object depending on the rates being available on source commerce software. properties: id: - description: The unique identitifer of the tax component being referenced. type: string - examples: - - 13d946f0-c5d5-42bc-b092-97ece17923ab - - 9wg4lep4ush5cxs79pl8sozmsndbaukll3ind4g7buqbm1h2 - - 7110701885 - - EILBDVJVNUAGVKRQ + description: Bank account 'id' for the account transaction. name: - description: Name of the tax component being referenced. - type: string - required: - - id - - name - examples: - - id: 13d946f0-c5d5-42bc-b092-97ece17923ab - name: Sales Tax (15%) - rate: 0.15 - isCompound: true - modifiedDate: '2022-10-23T00:00:00Z' - sourceModifiedDate: '2022-10-23T00:00:00Z' - CommerceTransaction: - title: 'Commerce: Transaction' - description: |- - Details of all financial transactions recorded in the commerce or point of sale system are added to the Transactions data type. For example, payments, service charges, and fees. - - You can use data from the Transactions endpoints to calculate key metrics, such as: - - Transaction volumes - - Average transaction volume - - Average transaction value - - Returns - - Payouts - type: object - allOf: - - $ref: '#/components/schemas/CommerceOrder/allOf/0' - - type: object - properties: - totalAmount: - description: The total transaction amount - type: number - format: decimal - examples: - - 194.12 - - -283.56 - - 0 - currency: - $ref: '#/components/schemas/SourceAccount/properties/currency' - type: - $ref: '#/components/schemas/CommerceTransaction/definitions/transactionType' - subType: - description: Non-standardised transaction type data from the commerce software type: string - examples: - - CardPayment - - Invoice payment - transactionSourceRef: - description: Link to the source event which triggered this transaction - allOf: - - $ref: '#/components/schemas/CommerceTransaction/definitions/transactionSourceRef' - supplementalData: - $ref: '#/components/schemas/SupplementalData' - - allOf: - - type: object - x-stoplight: - id: c590b4405180f - allOf: - - $ref: '#/components/schemas/CommerceOrder/allOf/2' - - type: object - x-stoplight: - id: gdyjg7bg783br - properties: - sourceCreatedDate: - $ref: '#/components/schemas/DateTime' - description: The date on which this record was created in the originating system - - $ref: '#/components/schemas/CommerceOrder/allOf/3' - x-stoplight: - id: 9e815c1766554 - definitions: - transactionSourceRef: - title: Transaction Source Reference - x-internal: true + description: bank account 'name' for the account transaction. + description: Links to the Account transactions data type. + bankAccounts: + title: 'Accounting: Bank accounts' allOf: - - $ref: '#/components/schemas/CommerceRecordRef' - type: object properties: - type: - $ref: '#/components/schemas/CommerceTransaction/definitions/transactionSourceType' - transactionSourceType: - x-internal: true - type: string - description: The type of source the transaction arose. + results: + type: array + items: + $ref: '#/components/schemas/BankAccount' + - $ref: '#/components/schemas/PagingInfo' + bankAccountStatus: + title: Account status enum: - - Fee - - Order - - Payment - - ServiceCharge - Unknown - transactionType: - x-internal: true - description: |- - The type of the platform transaction: - - `Unknown` - - `FailedPayout` — Failed transfer of funds from the seller's merchant account to their bank account. - - `Payment` — Credit and debit card payments. - - `PaymentFee` — Payment provider's fee on each card payment. - - `PaymentFeeRefund` — Payment provider's fee that has been refunded to the seller. - - `Payout` — Transfer of funds from the seller's merchant account to their bank account. - - `Refund` — Refunds to a customer's credit or debit card. - - `Transfer` — Secure transfer of funds to the seller's bank account. + - Active + - Archived + - Pending type: string - enum: - - Payment - - Refund - - Payout - - FailedPayout - - Transfer - - PaymentFee - - PaymentFeeRefund - - Unknown - examples: [] - CommerceTransactions: - title: 'Commerce: Transactions' - x-internal: true - allOf: - - type: object + description: Status of the bank account. + example: Active + ClientRateLimitWebhook: + title: Client rate limit webhook + type: object + properties: + id: + type: string + format: uuid + example: 743ec94a-8aa4-44bb-8bd4-e1855ee0e74b + description: Unique identifier of the event. + eventType: + type: string + description: The type of event. + examples: + - client.rateLimit.reset + - client.rateLimit.reached + generatedDate: + $ref: '#/components/schemas/TransferTransactionRequest/properties/date/allOf/1' + description: The date time in UTC the event was generated in Codat. + payload: + $ref: '#/components/schemas/ClientRateLimitWebhook/definitions/clientRateLimitWebhookPayload' + definitions: + clientRateLimitWebhookPayload: + title: Client rate limit webhook payload + type: object properties: - results: - type: array - items: - $ref: '#/components/schemas/CommerceTransaction' - - $ref: '#/components/schemas/PagingInfo' + dailyQuota: + type: integer + description: The number of available requests per day. + quotaRemaining: + type: integer + description: Total number of requests remaining for your client. + expiryDate: + $ref: '#/components/schemas/TransferTransactionRequest/properties/date/allOf/1' + description: The date time in UTC when your daily quota is reset. Companies: title: Companies x-internal: true @@ -85140,8 +10696,7 @@ components: - $ref: '#/components/schemas/PagingInfo' Company: title: Company - description: "\uFEFFIn Codat, a company represents a business sharing access to their data. Each company can have multiple [connections](https://docs.codat.io/platform-api#/schemas/Connection) to different data sources such as one connection to [Xero](https://docs.codat.io/integrations/accounting/xero/accounting-xero) for accounting data, two connections to [Plaid](https://docs.codat.io/integrations/banking/plaid/banking-plaid) for two bank accounts and a connection to [Zettle](https://docs.codat.io/integrations/commerce/zettle/commerce-zettle) for POS data.\n\nTypically each company is one of your customers.\n\nWhen you create a company, you can specify a `name` and we will automatically generate a unique `id` for the company. You can also add a `description` to store any additional information about the company." - description: "\uFEFFIn Codat, a company represents a business sharing access to their data. Each company can have multiple [connections](https://docs.codat.io/lending-api#/schemas/Connection) to different data sources such as one connection to [Xero](https://docs.codat.io/integrations/accounting/xero/accounting-xero) for accounting data, two connections to [Plaid](https://docs.codat.io/integrations/banking/plaid/banking-plaid) for two bank accounts and a connection to [Zettle](https://docs.codat.io/integrations/commerce/zettle/commerce-zettle) for POS data.\n\nTypically each company is one of your customers.\n\nWhen you create a company, you can specify a `name` and we will automatically generate a unique `id` for the company. You can also add a `description` to store any additional information about the company." + description: "\uFEFFIn Codat, a company represents a business sharing access to their data. Each company can have multiple [connections](https://docs.codat.io/sync-for-expenses-api#/schemas/Connection) to different data sources such as one connection to [Xero](https://docs.codat.io/integrations/accounting/xero/accounting-xero) for accounting data, two connections to [Plaid](https://docs.codat.io/integrations/banking/plaid/banking-plaid) for two bank accounts and a connection to [Zettle](https://docs.codat.io/integrations/commerce/zettle/commerce-zettle) for POS data.\n\nTypically each company is one of your customers.\n\nWhen you create a company, you can specify a `name` and we will automatically generate a unique `id` for the company. You can also add a `description` to store any additional information about the company." type: object allOf: - $ref: '#/components/schemas/Company/definitions/companyDetails' @@ -85157,7 +10712,6 @@ components: type: object properties: id: - $ref: '#/paths/~1companies~1%7BcompanyId%7D~1syncSettings/post/requestBody/content/application~1json/schema/allOf/0/properties/companyId' $ref: '#/components/parameters/companyId/schema' name: type: string @@ -85172,10 +10726,10 @@ components: description: 'The `redirect` [Link URL](https://docs.codat.io/auth-flow/authorize-hosted-link) enabling the customer to start their auth flow journey for the company.' example: 'https://link.codat.io/company/27628208-459c-46a2-a705-5641ce25f739' lastSync: - $ref: '#/components/schemas/DateTime' + $ref: '#/components/schemas/TransferTransactionRequest/properties/date/allOf/1' nullable: true created: - $ref: '#/components/schemas/DateTime' + $ref: '#/components/schemas/TransferTransactionRequest/properties/date/allOf/1' createdByUserName: type: string description: Name of user that created the company in Codat. @@ -85215,7 +10769,6 @@ components: type: object properties: id: - $ref: '#/paths/~1companies~1%7BcompanyId%7D~1syncSettings/post/requestBody/content/application~1json/schema/allOf/0/properties/companyId' $ref: '#/components/parameters/companyId/schema' name: $ref: '#/components/schemas/Company/definitions/companyDetails/properties/name' @@ -85255,36 +10808,234 @@ components: products: - spend-insights - lending - CompanyAccessToken: - title: Company access token - description: Details of the access token provisioned for a company. + CompanyConfiguration: + required: + - bankAccount + - supplier + - customer + title: Company configuration type: object - allOf: - - $ref: '#/components/schemas/CompanyAccessToken/definitions/accessToken' + x-examples: + Config Example: + bankAccount: + id: '89' + supplier: + id: '124' + customer: + id: '140' + properties: + bankAccount: + $ref: '#/components/schemas/CompanyConfiguration/definitions/BankAccountDetails' + supplier: + $ref: '#/components/schemas/CompanyConfiguration/definitions/SupplierDetails' + customer: + $ref: '#/components/schemas/CompanyConfiguration/definitions/CustomerDetails' definitions: - accessToken: - title: Access token + BankAccountDetails: + title: Bank account details + type: object + properties: + id: + type: string + description: The id of the account from which purchases are made + example: '32' + SupplierDetails: + title: Supplier details + type: object + properties: + id: + $ref: '#/components/schemas/Supplier/allOf/0/properties/id' + CustomerDetails: + title: Customer details + type: object + properties: + id: + $ref: '#/components/schemas/Customer/allOf/0/properties/id' + CompanyInformation: + title: 'Accounting: Company information' + description: |- + Company info provides standard details about a linked company such as their address, phone number, and company registration. + + > **Company information or companies?** + > + > Company information is standard information that is held in the accounting software about a company. `Companies` is an endpoint that lists businesses in the Codat system that have linked and shared their data sources. + type: object + properties: + companyName: + type: string + nullable: true + description: Name of the linked company. + accountingPlatformRef: + type: string + nullable: true + description: Identifier or reference for the company in the accounting software. + companyLegalName: + type: string + nullable: true + description: Registered legal name of the linked company. + addresses: + type: array + nullable: true + description: An array of Addresses. + items: + title: 'Accounting: Address' + x-internal: true + type: object + properties: + type: + $ref: '#/components/schemas/CompanyInformation/properties/addresses/items/definitions/accountingAddressType' + line1: + type: string + nullable: true + description: Line 1 of the customer address. + line2: + type: string + nullable: true + description: Line 2 of the customer address. + city: + type: string + nullable: true + description: City of the customer address. + region: + type: string + nullable: true + description: Region of the customer address. + country: + type: string + nullable: true + description: Country of the customer address. + postalCode: + type: string + nullable: true + description: Postal code or zip code. + required: + - type + definitions: + accountingAddressType: + description: The type of the address + type: string + enum: + - Unknown + - Billing + - Delivery + phoneNumbers: + type: array + nullable: true + description: An array of phone numbers. + items: + title: Phone + type: object + x-internal: true + properties: + number: + type: string + nullable: true + examples: + - +44 25691 154789 + - (877) 492-8687 + - 01224 658 999 + description: A phone number. + type: + description: The type of phone number + type: string + enum: + - Primary + - Landline + - Mobile + - Fax + - Unknown + required: + - type + webLinks: + type: array + nullable: true + description: An array of weblinks. + items: + title: Weblink + description: Weblink associated with the company. + type: object + properties: + type: + description: The type of the weblink. + type: string + enum: + - Website + - Social + - Unknown + url: + description: The full URL for the weblink. + type: string + format: url + example: + type: Website + url: 'https://codat.io' + ledgerLockDate: + $ref: '#/components/schemas/TransferTransactionRequest/properties/date/allOf/1' + description: 'If set in the accounting software, the date (in the ISO 8601 date/time format) after which accounting transactions cannot be edited. Commonly used when books are closed at year-end.' + registrationNumber: + type: string + nullable: true + description: Registration number given to the linked company by the companies authority in the country of origin. In the UK this is Companies House. + taxNumber: + type: string + nullable: true + description: Company tax number. + financialYearStartDate: + $ref: '#/components/schemas/TransferTransactionRequest/properties/date/allOf/1' + description: Start date of the financial year for the company. + baseCurrency: + type: string + nullable: true + description: Currency set in the accounting software of the linked company. Used by the currency rate. + sourceUrls: type: object - properties: - expiresIn: - type: integer - description: The number of seconds until the access token expires. - example: 86400 - accessToken: - type: string - description: The access token for the company. - tokenType: - type: string - description: The type of token. - example: Bearer - required: - - expiresIn - - accessToken - - tokenType + additionalProperties: + type: string + nullable: true + nullable: true + description: |- + URL addresses for the accounting source. + + For example, for Xero integrations two URLs are returned. These have many potential use cases, such as [deep linking](https://developer.xero.com/documentation/api-guides/deep-link-xero). + createdDate: + $ref: '#/components/schemas/TransferTransactionRequest/properties/date/allOf/1' + description: Date the linked company was created in the accounting software. + supplementalData: + $ref: '#/components/schemas/SupplementalData' examples: - - expiresIn: 86400 - accessToken: string - tokenType: Bearer + - companyName: ACME Corporation + accountingPlatformRef: 4444e827-401b-4925-92cb-d79086bf3b6b + companyLegalName: ACME Corporation Ltd. + addresses: + - type: Billing + line1: Warner House + line2: 98 Theobald's Road + city: London + region: '' + country: United Kingdom + postalcode: WC1X 8WB + - type: Unknown + line1: 123 Sierra Way + line2: '' + city: San Pablo + region: CA + country: '' + postalCode: '87999' + phoneNumbers: + - number: 010 1234 5678 + type: Landline + webLinks: + - type: Website + url: 'https://www.wbsl.com/' + ledgerLockDate: '2019-03-04T12:08:01.881Z' + registrationNumber: '1234567890' + taxNumber: GB 123456789 + financialYearStartDate: '2019-04-01T00:00:00Z' + baseCurrency: USD + sourceUrls: + url1: 'https://go.xero.com/organisationlogin/default.aspx?shortcode=!rxs0Q' + url2: 'https://reporting.xero.com/!rxs0Q' + createdDate: '2020-02-03T16:42:02Z' CompanyRequestBody: title: Create company request x-internal: true @@ -85304,6 +11055,70 @@ components: $ref: '#/components/schemas/Company/definitions/companyDetails/properties/tags' required: - name + CompanySyncStatus: + title: Company sync status + type: object + additionalProperties: false + x-examples: + Success Data Pushed: + companyId: 20803807-4e9a-4cb7-b67b-9f889a3916e1 + syncId: aa4c9dfd-e945-4424-9628-9e724f14c267 + syncStatusCode: 2000 + syncStatus: Complete + errorMessage: '' + syncExceptionMessage: '' + syncUtc: '2023-01-24T14:15:22Z' + dataPushed: true + Success No Data Pushed: + companyId: 20803807-4e9a-4cb7-b67b-9f889a3916e1 + syncId: aa4c9dfd-e945-4424-9628-9e724f14c267 + syncStatusCode: 2040 + syncStatus: Complete + errorMessage: '' + syncExceptionMessage: '' + syncUtc: '2023-01-24T14:15:22Z' + dataPushed: false + properties: + companyId: + type: string + description: Unique identifier for your SMB in Codat. + example: d4d73051-ed31-42b6-99f6-d288cd940992 + nullable: true + syncId: + type: string + description: Unique identifier of the sync. + example: a6a22aff-a43a-411d-a910-2dae73217cce + nullable: true + syncStatusCode: + type: integer + format: int32 + description: Status code of the sync. + example: 2000 + syncStatus: + type: string + description: Text status of the sync. + examples: + - Complete + - PushError + - Started + - NotStarted + - Pushing + nullable: true + errorMessage: + type: string + description: Error message of the sync. + nullable: true + syncExceptionMessage: + type: string + description: Exception message of the sync. + nullable: true + syncUtc: + $ref: '#/components/schemas/TransferTransactionRequest/properties/date/allOf/1' + description: Datetime of the sync. + nullable: true + dataPushed: + type: boolean + description: Boolean of whether the sync resulted in data being pushed. CompanyUpdateRequest: title: Update company request x-internal: true @@ -85319,45 +11134,9 @@ components: $ref: '#/components/schemas/CompanyRequestBody/properties/description' tags: $ref: '#/components/schemas/Company/definitions/companyDetails/properties/tags' - CompanySyncSettings: - title: Company sync settings - type: object - properties: - companyId: - $ref: '#/paths/~1companies~1%7BcompanyId%7D~1syncSettings/post/requestBody/content/application~1json/schema/allOf/0/properties/companyId' - settings: - type: array - items: - $ref: '#/components/schemas/SyncSetting' - overridesDefaults: - type: boolean - description: 'Set to `True` if you want to override the default [sync settings](https://docs.codat.io/knowledge-base/advanced-sync-settings).' - CompanyWebhook: - title: Company webhook - type: object - properties: - id: - type: string - format: uuid - example: ba29118f-5406-4e59-b05c-ba307ca38d01 - description: Unique identifier of the event - eventType: - type: string - description: The type of event. - examples: - - company.created - - company.deleted - generatedDate: - $ref: '#/components/schemas/DateTime' - description: The date time in UTC the event was generated in Codat. - payload: - $ref: '#/components/schemas/Company/definitions/companyDetails' Connection: title: Connection - description: "\uFEFFA connection represents a [company's](https://docs.codat.io/platform-api#/schemas/Company) connection to a data source and allows you to synchronize data (pull and/or push) with that source.\n\nA company can have multiple data connections depending on the type of data source it is connecting to. For example, a single company can link to:\n\n- [Accounting data](https://docs.codat.io/accounting-api/overview) - 1 active connection.\n- [Banking data](https://docs.codat.io/banking-api/overview) - Multiple active connections.\n- [Commerce data](https://docs.codat.io/commerce-api/overview) - Multiple active connections.\nAny combination of accounting, banking, and commerce data connections is allowed.\n\nBefore you can use a data connection to pull or push data, the company must grant you access to their business data by [linking the connection](https://docs.codat.io/auth-flow/overview)." - Connection: - title: Connection - description: "\uFEFFA connection represents a [company's](https://docs.codat.io/lending-api#/schemas/Company) connection to a data source and allows you to synchronize data (pull and/or push) with that source.\n\nA company can have multiple data connections depending on the type of data source it is connecting to. For example, a single company can link to:\n\n- [Accounting data](https://docs.codat.io/accounting-api/overview) - 1 active connection.\n- [Banking data](https://docs.codat.io/banking-api/overview) - Multiple active connections.\n- [Commerce data](https://docs.codat.io/commerce-api/overview) - Multiple active connections.\nAny combination of accounting, banking, and commerce data connections is allowed.\n\nBefore you can use a data connection to pull or push data, the company must grant you access to their business data by [linking the connection](https://docs.codat.io/auth-flow/overview)." + description: "\uFEFFA connection represents a [company's](https://docs.codat.io/sync-for-expenses-api#/schemas/Company) connection to a data source and allows you to synchronize data (pull and/or push) with that source.\n\nA company can have multiple data connections depending on the type of data source it is connecting to. For example, a single company can link to:\n\n- [Accounting data](https://docs.codat.io/accounting-api/overview) - 1 active connection.\n- [Banking data](https://docs.codat.io/banking-api/overview) - Multiple active connections.\n- [Commerce data](https://docs.codat.io/commerce-api/overview) - Multiple active connections.\nAny combination of accounting, banking, and commerce data connections is allowed.\n\nBefore you can use a data connection to pull or push data, the company must grant you access to their business data by [linking the connection](https://docs.codat.io/auth-flow/overview)." type: object properties: id: @@ -85371,9 +11150,6 @@ components: type: string description: A unique four-character ID that identifies the platform of the company's data connection. This ensures continuity if the platform changes its name in the future. sourceId: - $ref: '#/components/schemas/Branding/properties/sourceId' - sourceType: - $ref: '#/components/schemas/Integration/definitions/sourceType' type: string format: uuid example: 35b92968-9851-4095-ad60-395c95cbcba4 @@ -85402,10 +11178,10 @@ components: status: $ref: '#/components/schemas/Connection/definitions/dataConnectionStatus' lastSync: - $ref: '#/components/schemas/DateTime' + $ref: '#/components/schemas/TransferTransactionRequest/properties/date/allOf/1' nullable: true created: - $ref: '#/components/schemas/DateTime' + $ref: '#/components/schemas/TransferTransactionRequest/properties/date/allOf/1' dataConnectionErrors: type: array nullable: true @@ -85430,275 +11206,65 @@ components: dataConnectionStatus: title: Data connection status description: The current authorization status of the data connection. - type: string - enum: - - PendingAuth - - Linked - - Unlinked - - Deauthorized - dataConnectionError: - title: Data connection error - type: object - properties: - statusCode: - type: string - description: The HTTP status code returned by the source platform when the error occurred. - statusText: - type: string - description: A non-numeric status code/text returned by the source platform when the error occurred. - errorMessage: - type: string - description: A message about a error returned by Codat. - erroredOnUtc: - $ref: '#/components/schemas/DateTime' - status: - title: Error status - description: The current status of a transient error. Null statuses indicate that the error is not transient. - type: string - nullable: true - enum: - - Active - - Resolved - resolvedOnUtc: - description: The datetime in Utc that the error was resolved. - nullable: true - $ref: '#/components/schemas/DateTime' - dataConnectionSourceType: - title: Source Type - description: The type of platform of the connection. - type: string - enum: - - Accounting - - Banking - - BankFeed - - Commerce - - Expense - - Other - - Unknown - example: Accounting - example: - id: ee2eb431-c0fa-4dc9-93fa-d29781c12bcd - integrationId: bf083d72-62c7-493e-aec9-81b4dbba7e2c - integrationKey: dfxm - sourceId: bdd831ce-eebd-4896-89a7-20e5ee8989ee - platformName: Basiq - linkUrl: 'https://link-api.codat.io/companies/86bd88cb-44ab-4dfb-b32f-87b19b14287f/connections/ee2eb431-c0fa-4dc9-93fa-d29781c12bcd/start' - status: Linked - lastSync: '2022-10-27T10:22:43.6464237Z' - created: '2022-10-27T09:53:29Z' - sourceType: Banking - ConnectionManagementAccessToken: - title: Access token - type: object - properties: - accessToken: - type: string - nullable: false - description: Access token that allows SMBs to manage connections that have access to their data. - example: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c - ConnectionManagementAllowedOrigins: - title: Allowed origins - type: object - properties: - allowedOrigins: - type: array - description: 'An array of allowed origins (i.e. your domains) to permit cross-origin resource sharing ([CORS](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing)).n resource sharing ([CORS](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing)).' - items: - type: string - format: uri - description: A domain you want to allow CORS with Codat. - example: - allowedOrigins: - - 'https://www.bank-of-dave.com' - Connections: - title: Connections - x-internal: true - allOf: - - type: object - properties: - results: - type: array - items: - $ref: '#/components/schemas/Connection' - - $ref: '#/components/schemas/PagingInfo' - ConnectionWebhook: - title: Connection webhook - DataIntegrityDetail: - title: Data integrity detail - type: object - properties: - id: - type: string - format: uuid - example: ba29118f-5406-4e59-b05c-ba307ca38d01 - description: Unique identifier of the event. - eventType: - type: string - description: The type of event. - examples: - - connection.created - - connection.connected - - connection.disconnected - - connection.reconnected - - connection.deleted - - connection.failed - generatedDate: - $ref: '#/components/schemas/DateTime' - description: The date time in UTC the event was generated in Codat. - payload: - $ref: '#/components/schemas/ConnectionWebhook/definitions/connectionWebhookPayload' - definitions: - connectionWebhookPayload: - title: Connection webhook payload - type: object - properties: - referenceCompany: - $ref: '#/components/schemas/Company/definitions/companyReference' - connection: - $ref: '#/components/schemas/Connection' - CreateApiKey: - title: Create API key - description: Details about the newly created API key. - x-internal: true - type: object - properties: - name: - $ref: '#/components/schemas/ApiKeyDetails/allOf/0/properties/name' - CustomDataTypeConfiguration: - title: Custom data type configuration - type: object - description: Client's configuration details for a specific custom data type and platform pair. - properties: - dataSource: - type: string - description: Underlying endpoint of the source platform that will serve as a data source for the custom data type. This value is not validated by Codat. - requiredData: - type: object - description: Properties required to be fetched from the underlying platform for the custom data type that is being configured. This value is not validated by Codat. - additionalProperties: - type: string - description: The client's defined name for the property with the value being the source system's property name which the mapping is targeting. - keyBy: - type: array - description: An array of properties from the source system that can be used to uniquely identify the records returned for the custom data type. This value is not validated by Codat. - items: - type: string - minLength: 1 - sourceModifiedDate: - type: array - nullable: true - items: - type: string - description: Property in the source platform nominated by the client that defines the date when a record was last modified there. This value is not validated by Codat. - examples: - - dataSource: api/purchaseOrders?$filter=currencyCode eq 'NOK' - requiredData: - currencyCode: '$[*].currencyCode' - id: '$[*].id' - number: '$[*].number' - orderDate: '$[*].orderDate' - totalAmountExcludingTax: '$[*].totalAmountExcludingTax' - totalTaxAmount: '$[*].totalTaxAmount' - vendorName: '$[*].number' - keyBy: - - '$[*].id' - sourceModifiedDate: - - '$[*].lastModifiedDateTime' - CustomDataTypeRecords: - title: Custom data type records - type: object - description: Resulting records pulled from the source platform for a specific custom data type. - properties: - results: - type: array - items: - $ref: '#/components/schemas/CustomDataTypeRecords/definitions/customDataTypeRecord' - pageNumber: - $ref: '#/components/schemas/PagingInfo/properties/pageNumber' - pageSize: - $ref: '#/components/schemas/PagingInfo/properties/pageSize' - totalResults: - $ref: '#/components/schemas/PagingInfo/properties/totalResults' - definitions: - customDataTypeRecord: - title: Custom data type record - description: ID GUID of the transaction. - type: - type: string - description: The data type of the record. - connectionId: - type: string - format: uuid - description: ID GUID representing the connection of the accounting or banking platform. - readOnly: true - date: - $ref: '#/components/schemas/DateTime' - description: The date of the transaction. - description: - type: string - description: The transaction description. - amount: - type: number - format: decimal - description: The transaction value. - currency: - $ref: '#/components/schemas/SourceAccount/properties/currency' - description: The currency of the transaction. - matches: - type: array - items: - $ref: '#/components/schemas/DataIntegrityDetail/definitions/dataIntegrityMatch' - definitions: - dataIntegrityMatch: + type: string + enum: + - PendingAuth + - Linked + - Unlinked + - Deauthorized + dataConnectionError: + title: Data connection error type: object properties: - id: - type: string - nullable: false - description: Unique identifier of the record. - content: - type: object - description: Values from the source system for the properties defined in the custom data type configuration. - additionalProperties: - type: object - modifiedDate: - title: ModifiedDate - x-internal: true - type: object - properties: - modifiedDate: - allOf: - - $ref: '#/components/schemas/DateTime' - - description: |- - The date when the record was last fetched from the accounting software, commerce software, or open banking provider and updated in Codat’s data cache. - - Use it to identify and retrieve records that have changed since your last fetch. For example, filtering `modifiedDate` to today will provide new records updated in Codat today. - - This date is populated for all data types except for attachments, balance sheets, company information, and profit & loss reports ([read more](https://docs.codat.io/using-the-api/modified-dates#modified-date)). - - In Codat's data model, dates and times are represented using the ISO 8601 standard. - description: ID GUID of the transaction. - type: - type: string - description: 'The data type which the data type in the URL has been matched against. For example, if you''ve matched accountTransactions and banking-transactions, and you call this endpoint with accountTransactions in the URL, this property would be banking-transactions.' - connectionId: + statusCode: type: string - description: ID GUID representing the connection of the accounting or banking platform. - format: uuid - date: + description: The HTTP status code returned by the source platform when the error occurred. + statusText: type: string - description: The date of the transaction. - description: + description: A non-numeric status code/text returned by the source platform when the error occurred. + errorMessage: type: string - description: The transaction description. - amount: + description: A message about a error returned by Codat. + erroredOnUtc: + $ref: '#/components/schemas/TransferTransactionRequest/properties/date/allOf/1' + status: + title: Error status + description: The current status of a transient error. Null statuses indicate that the error is not transient. type: string - description: The transaction value. - currency: - $ref: '#/components/schemas/SourceAccount/properties/currency' - description: The currency of the transaction. - DataIntegrityDetails: - title: Data integrity details + nullable: true + enum: + - Active + - Resolved + resolvedOnUtc: + description: The datetime in Utc that the error was resolved. + nullable: true + $ref: '#/components/schemas/TransferTransactionRequest/properties/date/allOf/1' + dataConnectionSourceType: + title: Source Type + description: The type of platform of the connection. + type: string + enum: + - Accounting + - Banking + - BankFeed + - Commerce + - Expense + - Other + - Unknown + example: Accounting + example: + id: ee2eb431-c0fa-4dc9-93fa-d29781c12bcd + integrationId: bf083d72-62c7-493e-aec9-81b4dbba7e2c + integrationKey: dfxm + sourceId: bdd831ce-eebd-4896-89a7-20e5ee8989ee + platformName: Basiq + linkUrl: 'https://link-api.codat.io/companies/86bd88cb-44ab-4dfb-b32f-87b19b14287f/connections/ee2eb431-c0fa-4dc9-93fa-d29781c12bcd/start' + status: Linked + lastSync: '2022-10-27T10:22:43.6464237Z' + created: '2022-10-27T09:53:29Z' + sourceType: Banking + Connections: + title: Connections x-internal: true allOf: - type: object @@ -85706,192 +11272,210 @@ components: results: type: array items: - $ref: '#/components/schemas/DataIntegrityDetail' + $ref: '#/components/schemas/Connection' - $ref: '#/components/schemas/PagingInfo' - DataIntegrityStatus: - title: Data integrity status - type: object + CreateAccountResponse: + title: Create account response + x-internal: true allOf: - - $ref: '#/components/schemas/DataIntegritySummary/definitions/dataIntegrityType' - type: object properties: - statusInfo: - $ref: '#/components/schemas/DataIntegrityStatus/definitions/dataIntegrityStatusInfo' - connectionIds: - $ref: '#/components/schemas/DataIntegrityStatus/definitions/dataIntegrityConnectionId' - amounts: - $ref: '#/components/schemas/DataIntegrityStatus/definitions/dataIntegrityAmounts' - dates: - $ref: '#/components/schemas/DataIntegrityStatus/definitions/dataIntegrityDates' - definitions: - dataIntegrityStatusInfo: - type: object - properties: - lastMatched: - type: string - $ref: '#/components/schemas/DateTime' - description: The date the matching algorithm last ran against the company’s data type specified. - readOnly: true - currentStatus: - $ref: '#/components/schemas/DataIntegrityStatus/definitions/integrityStatus' - statusMessage: - type: string - description: Detailed explanation supporting the status value. - dataIntegrityConnectionId: - type: object - properties: - source: - type: array - description: An array of strings. The connection IDs for the type specified in the url. - items: - type: string - target: - type: array - description: An array of strings. The connection IDs for the type being matched to. - items: - type: string - dataIntegrityAmounts: - type: object - description: 'Only returned for transactions. For accounts, there is nothing returned.' + data: + allOf: + - $ref: '#/components/schemas/Account' + - deprecated: true + - $ref: '#/components/schemas/PushOperation' + CreateAdjustmentRequest: + title: Create adjustment request + x-internal: true + type: array + minItems: 1 + maxItems: 50 + items: + $ref: '#/components/schemas/AdjustmentTransactionRequest' + CreateBankAccountResponse: + title: Create bank account response + x-internal: true + allOf: + - type: object properties: - min: - type: number - format: decimal - description: Lowest value of transaction set. - max: - type: number - format: decimal - description: Highest value of transaction set. - currency: - $ref: '#/components/schemas/SourceAccount/properties/currency' - dataIntegrityDates: - type: object - description: 'Only returned for transactions. For accounts, there is nothing returned.' + data: + allOf: + - $ref: '#/components/schemas/BankAccount' + - deprecated: true + - $ref: '#/components/schemas/PushOperation' + CreateCustomerResponse: + title: Create customer response + x-internal: true + allOf: + - type: object properties: - minDate: - $ref: '#/components/schemas/DateTime' - description: Earliest date of transaction set. - readOnly: true - maxDate: - $ref: '#/components/schemas/DateTime' - description: Latest date of transaction set. - readOnly: true - minOverlappingDate: - $ref: '#/components/schemas/DateTime' - description: Earliest date where transactions exist in both accounting and banking platforms. - readOnly: true - maxOverlappingDate: - $ref: '#/components/schemas/DateTime' - description: Latest date where transactions exist in both account and banking platforms. - readOnly: true - integrityStatus: - type: string - enum: - - Unknown - - DoesNotExist - - Error - - Complete - description: The current status of the most recently run matching algorithm. - examples: - - type: string - statusInfo: - lastMatched: '2021-10-24T14:15:22Z' - currentStatus: Unknown - statusMessage: string - connectionIds: - source: - - d5a8d1b2-b38a-4e44-8641-548ad43be6bb - - da8c9f39-8af9-4a98-964b-f1e207942837 - target: - - 3d7ce25a-c107-44bc-8e0c-36c10bdd14e0 - - a5300eac-01fa-4a77-b5b0-ea0b86a3be69 - amounts: - min: 130 - max: 2450 - currency: GBP - dates: - minDate: '2021-09-17T12:09:33.441Z' - maxDate: '2021-12-16T12:12:53.441Z' - minOverlappingDate: '2021-09-30T12:09:13.441Z' - maxOverlappingDate: '2021-11-27T12:19:33.441Z' - DataIntegrityStatuses: - title: Data integrity statuses + data: + allOf: + - $ref: '#/components/schemas/Customer' + - deprecated: true + - $ref: '#/components/schemas/PushOperation' + CreateExpenseRequest: + title: Create expense request + x-internal: true + type: array + minItems: 1 + maxItems: 50 + items: + $ref: '#/components/schemas/ExpenseTransaction' + CreateExpenseResponse: + title: Create expense response x-internal: true type: object properties: - metadata: - type: array - items: - $ref: '#/components/schemas/DataIntegrityStatus' - DataIntegritySummaries: - title: Data integrity summaries + syncId: + type: string + example: cd937d46-8e41-43a9-9477-a79158ffd98a + format: uuid + description: Unique id of sync created + CreateReimbursableExpenseResponse: + title: Create reimbursable expense response x-internal: true type: object properties: - summaries: - type: array - items: - $ref: '#/components/schemas/DataIntegritySummary' - DataIntegritySummary: - title: Data integrity summary + syncId: + type: string + example: cd937d46-8e41-43a9-9477-a79158ffd98a + format: uuid + description: Unique id of sync created + CreateSupplierResponse: + title: Create supplier response + x-internal: true + allOf: + - type: object + properties: + data: + allOf: + - $ref: '#/components/schemas/Supplier' + - deprecated: true + - $ref: '#/components/schemas/PushOperation' + Customer: + title: 'Accounting: Customer' + description: | + ## Overview + + A customer is a person or organisation that buys goods or services. From the Customers endpoints, you can retrieve a [list of all the customers of a company](https://api.codat.io/swagger/index.html#/Customers/get_companies__companyId__data_customers). + + Customers' data links to accounts receivable [invoices](https://docs.codat.io/sync-for-expenses-api#/schemas/Invoice). type: object allOf: - - $ref: '#/components/schemas/DataIntegritySummary/definitions/dataIntegrityType' - type: object properties: - byAmount: - $ref: '#/components/schemas/DataIntegritySummary/definitions/dataIntegrityByAmount' - byCount: - $ref: '#/components/schemas/DataIntegritySummary/definitions/dataIntegrityByCount' + id: + type: string + description: 'Identifier for the customer, unique to the company in the accounting software.' + customerName: + type: string + nullable: true + description: 'Name of the customer as recorded in the accounting system, typically the company name.' + contactName: + type: string + nullable: true + description: Name of the main contact for the identified customer. + emailAddress: + type: string + nullable: true + description: Email address the customer can be contacted by. + defaultCurrency: + $ref: '#/components/schemas/Account/definitions/accountPrototype/properties/currency' + description: Default currency the transactional data of the customer is recorded in. + phone: + type: string + nullable: true + description: Phone number the customer can be contacted by. + addresses: + type: array + nullable: true + description: An array of Addresses. + items: + $ref: '#/components/schemas/CompanyInformation/properties/addresses/items' + contacts: + type: array + nullable: true + description: An array of Contacts. + items: + $ref: '#/components/schemas/Customer/definitions/contact' + registrationNumber: + type: string + nullable: true + description: 'Company number. In the UK, this is typically the Companies House company registration number.' + taxNumber: + type: string + nullable: true + description: Company tax number. + status: + $ref: '#/components/schemas/Customer/definitions/customerStatus' + description: Current state of the customer. + metadata: + $ref: '#/components/schemas/Account/allOf/2/properties/metadata' + supplementalData: + $ref: '#/components/schemas/SupplementalData' + - $ref: '#/components/schemas/Account/allOf/3' + required: + - status definitions: - dataIntegrityType: + accountingCustomerRef: type: object properties: - type: + id: + minLength: 1 type: string - description: 'The data type which the data type in the URL has been matched against. For example, if you''ve matched accountTransactions and banking-transactions, and you call this endpoint with accountTransactions in the URL, this property would be banking-transactions.' - dataIntegrityByAmount: - title: Data integrity by amount - type: object - properties: - matchPercentage: - type: number - format: decimal - description: The percentage of the absolute value of transactions of the type specified in the route which have a match. - unmatched: - type: number - format: decimal - description: The sum of the absolute value of transactions of the type specified in the route which don't have a match. - matched: - type: number - format: decimal - description: The sum of the absolute value of transactions of the type specified in the route which have a match. - total: - type: number - format: decimal - description: The total of unmatched and matched. - currency: - $ref: '#/components/schemas/SourceAccount/properties/currency' - dataIntegrityByCount: - title: Data integrity by count + description: '`id` from the Customers data type' + companyName: + type: string + nullable: true + description: '`customerName` from the Customer data type' + required: + - id + customerStatus: + description: Status of customer. + type: string + enum: + - Unknown + - Active + - Archived + contact: type: object properties: - matchPercentage: - type: number - format: decimal - description: The percentage of records of the type specified in the route which have a match. - unmatched: - type: number - format: decimal - description: The number of records of the type specified in the route which don't have a match. - matched: - type: number - format: decimal - description: The number of records of the type specified in the route which do have a match. - total: - type: number - format: decimal - description: The total of unmatched and matched. + name: + type: string + nullable: true + description: Name of a contact for a customer. + email: + type: string + nullable: true + description: Email of a contact for a customer. + phone: + type: array + nullable: true + description: An array of Phone numbers. + items: + $ref: '#/components/schemas/CompanyInformation/properties/phoneNumbers/items' + address: + $ref: '#/components/schemas/CompanyInformation/properties/addresses/items' + description: An object of Address information. + status: + $ref: '#/components/schemas/Customer/definitions/customerStatus' + modifiedDate: + $ref: '#/components/schemas/TransferTransactionRequest/properties/date/allOf/1' + required: + - status + Customers: + title: Customers + x-internal: true + allOf: + - type: object + properties: + results: + type: array + items: + $ref: '#/components/schemas/Customer' + - $ref: '#/components/schemas/PagingInfo' DataStatus: title: Data status description: Describes the state of data in the Codat cache for a company and data type @@ -85951,7 +11535,7 @@ components: - commerce-transactions example: invoices lastSuccessfulSync: - $ref: '#/components/schemas/DateTime' + $ref: '#/components/schemas/TransferTransactionRequest/properties/date/allOf/1' currentStatus: $ref: '#/components/schemas/PullOperation/properties/status' latestSyncId: @@ -85970,216 +11554,6 @@ components: currentStatus: string latestSyncId: ad474a37-2003-478e-baee-9af9f1ec2fe3 latestSuccessfulSyncId: 8220fc90-55b6-47bc-9417-48ac6ea93101 - DataStatuses: - title: Data statuses - x-internal: true - type: object - properties: - accountTransactions: - $ref: '#/components/schemas/DataStatus' - nullable: true - balanceSheet: - $ref: '#/components/schemas/DataStatus' - nullable: true - bankAccounts: - $ref: '#/components/schemas/DataStatus' - nullable: true - bankTransactions: - $ref: '#/components/schemas/DataStatus' - nullable: true - billCreditNotes: - $ref: '#/components/schemas/DataStatus' - nullable: true - billPayments: - $ref: '#/components/schemas/DataStatus' - nullable: true - bills: - $ref: '#/components/schemas/DataStatus' - nullable: true - cashFlowStatement: - $ref: '#/components/schemas/DataStatus' - nullable: true - chartOfAccounts: - $ref: '#/components/schemas/DataStatus' - nullable: true - company: - $ref: '#/components/schemas/DataStatus' - nullable: true - creditNotes: - $ref: '#/components/schemas/DataStatus' - nullable: true - customers: - $ref: '#/components/schemas/DataStatus' - nullable: true - directCosts: - $ref: '#/components/schemas/DataStatus' - nullable: true - directIncomes: - $ref: '#/components/schemas/DataStatus' - nullable: true - invoices: - $ref: '#/components/schemas/DataStatus' - nullable: true - itemReceipts: - $ref: '#/components/schemas/DataStatus' - nullable: true - items: - $ref: '#/components/schemas/DataStatus' - nullable: true - journalEntries: - $ref: '#/components/schemas/DataStatus' - nullable: true - journals: - $ref: '#/components/schemas/DataStatus' - nullable: true - paymentMethods: - $ref: '#/components/schemas/DataStatus' - nullable: true - payments: - $ref: '#/components/schemas/DataStatus' - nullable: true - profitAndLoss: - $ref: '#/components/schemas/DataStatus' - nullable: true - purchaseOrders: - $ref: '#/components/schemas/DataStatus' - nullable: true - salesOrders: - $ref: '#/components/schemas/DataStatus' - nullable: true - suppliers: - $ref: '#/components/schemas/DataStatus' - nullable: true - taxRates: - $ref: '#/components/schemas/DataStatus' - nullable: true - trackingCategories: - $ref: '#/components/schemas/DataStatus' - nullable: true - transfers: - $ref: '#/components/schemas/DataStatus' - nullable: true - banking-accountBalances: - $ref: '#/components/schemas/DataStatus' - nullable: true - banking-accounts: - $ref: '#/components/schemas/DataStatus' - nullable: true - banking-transactionCategories: - $ref: '#/components/schemas/DataStatus' - nullable: true - banking-transactions: - $ref: '#/components/schemas/DataStatus' - nullable: true - commerce-companyInfo: - $ref: '#/components/schemas/DataStatus' - nullable: true - commerce-customers: - $ref: '#/components/schemas/DataStatus' - nullable: true - commerce-disputes: - $ref: '#/components/schemas/DataStatus' - nullable: true - commerce-locations: - $ref: '#/components/schemas/DataStatus' - nullable: true - commerce-orders: - $ref: '#/components/schemas/DataStatus' - nullable: true - commerce-paymentMethods: - $ref: '#/components/schemas/DataStatus' - nullable: true - commerce-payments: - $ref: '#/components/schemas/DataStatus' - nullable: true - commerce-productCategories: - $ref: '#/components/schemas/DataStatus' - nullable: true - commerce-products: - $ref: '#/components/schemas/DataStatus' - nullable: true - commerce-taxComponents: - $ref: '#/components/schemas/DataStatus' - nullable: true - commerce-transactions: - $ref: '#/components/schemas/DataStatus' - nullable: true - DataType: - x-internal: true - $ref: '#/components/schemas/DataStatus/properties/dataType' - DataTypeWriteWebhook: - title: Write data type webhook - type: object - properties: - id: - type: string - format: uuid - example: ba29118f-5406-4e59-b05c-ba307ca38d01 - description: Unique identifier of the event. - eventType: - type: string - description: The type of event. - examples: - - bills.write.successful - - bills.write.unsuccessful - generatedDate: - $ref: '#/components/schemas/DateTime' - description: The date time in UTC the event was generated in Codat. - payload: - $ref: '#/components/schemas/DataTypeWriteWebhook/definitions/dataTypeWriteWebhookPayload' - definitions: - dataTypeWriteWebhookPayload: - title: Payload - type: object - properties: - id: - type: string - description: Unique identifier of the write request. This is also known as the push operation ID. - type: - $ref: '#/components/schemas/DataTypeWriteWebhook/definitions/writeType' - referenceCompany: - $ref: '#/components/schemas/Company/definitions/companyReference' - connectionId: - $ref: '#/components/parameters/connectionId/schema' - requestedOnDate: - $ref: '#/components/schemas/DateTime' - description: The date time in UTC the write request was submitted. - completedOnDate: - $ref: '#/components/schemas/DateTime' - description: The date time in UTC the write request completed. - status: - $ref: '#/components/schemas/DataTypeWriteWebhook/definitions/writeStatus' - record: - $ref: '#/components/schemas/DataTypeWriteWebhook/definitions/dataTypeWriteWebhookRecord' - nullable: true - attachmentId: - type: string - nullable: true - description: 'Unique identifier for the uploaded attachment, null if no attachment uploaded.' - dataTypeWriteWebhookRecord: - type: object - properties: - id: - type: string - description: 'The unique identifier of the data type created, updated, deleted, or had an attachment uploaded in the accounting platform.' - writeType: - title: Write type - description: Type of write request. - type: string - enum: - - Create - - Update - - Delete - - UploadAttachment - writeStatus: - title: Write request status - type: string - enum: - - Pending - - Failed - - Success - - TimedOut - description: 'The current status of the write request, which is the same as the push operation status.' DataStatusResponse: x-internal: true title: Data status response @@ -86187,556 +11561,8 @@ components: additionalProperties: $ref: '#/components/schemas/DataStatus' DataType: - x-internal: true - $ref: '#/components/schemas/DataStatus/properties/dataType' - DateTime: - title: Date time - type: string - examples: - - '2022-10-23T00:00:00Z' - - '2022-10-23' - description: |- - In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example: - - ``` - 2020-10-08T22:40:50Z - 2021-01-01T00:00:00 - ``` - - - - When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information: - - - Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z` - - Unqualified local time: `2021-11-15T01:00:00` - - UTC time offsets: `2021-11-15T01:00:00-05:00` - - > Time zones - > - > Not all dates from Codat will contain information about time zones. - > Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. - EndUploadSessionRequest: - title: End upload session request - type: object - properties: - status: - type: string - enum: - - Cancel - - Process - description: An indicator to cancel the dataset processing or trigger ingestion and enrichment of data. - EnhancedCashFlowTransactions: - title: Enhanced cash flow transactions - description: |- - > **Categorization engine** - > - > The categorization engine uses machine learning and has been fully trained against Plaid and TrueLayer banking data sources. It is not fully trained against the Basiq banking data source. - - The Enhanced Cash Flow Transactions endpoint provides a fully categorized list of banking transactions for a company. Accounts and transaction data are obtained from the company's banking data sources. - type: object - properties: - reportInfo: - $ref: '#/components/schemas/EnhancedInvoicesReport/definitions/reportInfo' - dataSources: - type: array - items: - $ref: '#/components/schemas/EnhancedCashFlowTransactions/definitions/dataSource' - reportItems: - type: array - items: - $ref: '#/components/schemas/EnhancedCashFlowTransactions/definitions/enhancedCashFlowItem' - definitions: - dataSource: - type: object - properties: - accounts: - description: 'An array containing bank account data for each connected banking data source that have the following data types enabled: `banking-accounts`, `banking-transactions`.' - type: array - items: - $ref: '#/components/schemas/EnhancedCashFlowTransactions/definitions/accounts' - accounts: - title: Accounts - type: object - properties: - sourceRef: - title: Report source reference - description: A source reference containing the `sourceType` object "Banking". - type: object - properties: - sourceType: - description: The data source type. - type: string - examples: - - Example: - value: - sourceRef: - sourceType: Banking - platformName: - description: 'Name of the banking data source, e.g. "Plaid".' - type: string - accountProvider: - description: The bank or other financial institution providing the account. - type: string - accountName: - description: The name of the account according to the provider. - type: string - accountType: - description: 'The type of banking account, e.g. credit or debit.' - type: string - currency: - $ref: '#/components/schemas/SourceAccount/properties/currency' - description: The currency code for the bank account. - currentBalance: - description: The balance of the bank account. - type: number - format: decimal - enhancedCashFlowItem: - type: object - properties: - transactions: - description: An array of transaction data. - type: array - items: - title: Cash flow transaction - type: object - properties: - id: - description: The unique identifier of the bank transaction. - type: string - date: - description: The date the bank transaction was posted. - $ref: '#/components/schemas/DateTime' - description: - description: The description of the bank transaction. - type: string - amount: - description: The bank transaction amount. - type: number - format: decimal - currency: - $ref: '#/components/schemas/SourceAccount/properties/currency' - description: The currency code for bank transaction. - transactionCategory: - description: Contains an array of category levels. - $ref: '#/components/schemas/EnhancedCashFlowTransactions/definitions/enhancedCashFlowItem/properties/transactions/items/definitions/transactionCategory' - platformName: - description: Returns the payment processor responsible for the transaction. - type: string - counterpartyNames: - description: An array of counterparty names involved in the transaction. - type: array - items: - type: string - sourceRef: - $ref: '#/components/schemas/EnhancedCashFlowTransactions/definitions/accounts/properties/sourceRef' - accountRef: - $ref: '#/components/schemas/EnhancedCashFlowTransactions/definitions/enhancedCashFlowItem/properties/transactions/items/definitions/accountRef' - modifiedDate: - description: The date the bank transaction was last modified. - $ref: '#/components/schemas/DateTime' - isRecurring: - description: Indicates if the transaction is classified as recurring by Codat's categorization engine. - type: boolean - nullable: true - definitions: - accountRef: - title: Account reference - description: An account reference containing the account id and name. - type: object - properties: - id: - description: The id of the account. - type: string - name: - description: The name of the account. - type: string - examples: - - Example: - value: - accountRef: - id: 4f78a6b0-e9bb-40f2-82fd-f3a2daa1fd0a - name: Business Current Account - transactionCategory: - title: Transaction category - type: object - properties: - confidence: - description: Returns the aggregate confidence of the suggested category for the transaction. The value is between 0 and 100. - type: number - format: decimal - confidences: - description: An ordered array of category level confidences where each element is the confidence of the corresponding item in the `levels` array. - type: array - items: - type: number - format: decimal - levels: - description: The suggested category is an ordered array of category levels where each element (or level) is a subcategory of the previous element (or level). - type: array - items: - type: string - examples: - - Example: - value: - transactionCategory: - confidence: 92.7 - levels: - - Asset - - Current - - Bank - - BankTransfers - - ShareholderTransfers - confidences: - - 92.7 - - 95 - - 96 - - 97.5 - - 100 - examples: - - reportInfo: - pageNumber: 1 - pageSize: 100 - totalResults: 2401 - reportName: Cash Flow transactions report - companyName: Example Company - generatedDate: '2023-01-25T22:36:05.125Z' - dataSources: - - accounts: - - sourceRef: - sourceType: Banking - id: 4f78a6b0-e9bb-40f2-82fd-f3a2daa1fd0a - platformName: Plaid - accountProvider: Bank of Sandbox - accountName: Business Current Account - accountType: Debit - currency: USD - currentBalance: 1000 - identifiers: - - type: Debit - subType: Current - number: 12345678 - bankCode: 123456 - iban: US123456789 - bic: US123456789 - maskedAccountNumber: 1234 - - sourceRef: - sourceType: Banking - id: 12345678-1234-1234-1234-123456789012 - platformName: Plaid - accountProvider: Bank of Sandbox - accountName: Business Saving Account - accountType: Debit - currency: USD - currentBalance: 5321 - identifiers: - - type: Debit - subType: Saving - number: 87654321 - bankCode: 654321 - iban: US987654321 - bic: US987654321 - maskedAccountNumber: 4321 - reportItems: - - transactions: - - sourceRef: - sourceType: Banking - - accountRef: - id: 4f78a6b0-e9bb-40f2-82fd-f3a2daa1fd0a - name: Business Current Account - id: 3fa85f64-5717-4562-b3fc-2c963f66afa6 - date: '2023-01-25' - description: Payment to supplier - amount: 100 - currency: USD - transactionCategory: - confidence: 92.7 - levels: - - Asset - - Current - - Bank - confidences: - - 92.7 - - 95 - - 96 - platformName: Plaid - counterpartyNames: - - Counterparty - modifiedDate: '2023-01-25T22:36:05.125Z' - - sourceRef: - sourceType: Banking - - accountRef: - id: 12345678-1234-1234-1234-123456789012 - name: Business Saving Account - id: 3fa85f64-5717-4562-b3fc-2c963f66afa6 - date: '2023-01-25' - description: Payment to supplier - amount: 100 - currency: USD - transactionCategory: null - confidence: 92.7 - levels: - - Expense - - Operating - confidences: - - 92.7 - - 95 - platformName: Plaid - counterpartyNames: [] - modifiedDate: '2023-01-25T22:36:05.125Z' - EnhancedFinancialReport: - title: Enhanced report - type: object - properties: - reportInfo: - $ref: '#/components/schemas/EnhancedFinancialReport/definitions/enhancedReportInfo' - reportItems: - type: array - description: An array of report items. - items: - title: Report item - type: object - properties: - date: - $ref: '#/components/schemas/DateTime' - description: Last date of the period. - balance: - type: number - format: decimal - description: Balance of the account as reported on the profit and loss or Balance sheet. - accountName: - type: string - description: Name of the account. - accountId: - type: string - description: The unique account ID. - accountCategory: - $ref: '#/components/schemas/EnhancedFinancialReport/definitions/enhancedReportAccountCategory' - definitions: - enhancedReportAccountCategory: - title: Account category - descrciption: 'An object containing the suggested or confirmed account categories, up to five levels.' - type: object - properties: - status: - type: string - description: 'Returns a status of "Suggested" or "Confirmed". If an account has a confirmed category, it will replace any suggested category returned.' - levels: - type: array - items: - $ref: '#/components/schemas/EnhancedFinancialReport/definitions/accountCategoryLevel' - accountCategoryLevel: - title: Account category level - description: An object containing an ordered list of account category levels. - type: object - properties: - levelName: - type: string - description: Account category name. - confidence: - type: number - format: decimal - description: Confidence level of the category. This will only be populated where `status` is `Suggested`. - enhancedReportInfo: - type: object - properties: - currency: - $ref: '#/components/schemas/SourceAccount/properties/currency' - description: Currency of the P&L/Balance sheet. - reportName: - type: string - description: The name of the report. - companyName: - type: string - description: Name of the company queried. - generatedDate: - $ref: '#/components/schemas/DateTime' - description: Returns the YYYY-MM-DD datetime of report generation. - examples: - - reportInfo: - reportName: EnhancedProfitAndLossAccounts - companyName: ABC LTD - generatedDate: '2022-01-01' - reportItems: - - date: '2022-01-01' - balance: 70 - accountName: Sales UK - accountId: 13931cbf-ea06-4d6e-9538-a8457fa66011 - accountCategory: - status: Suggested - levels: - - levelName: Income - confidence: 0.95 - - levelName: Revenue - confidence: 0.9 - - date: '2022-01-01' - balance: 30 - accountName: Sales US - accountId: 13931cbf-ea06-4d6e-9538-a8457fa66011 - accountCategory: - lastUpdated: '2022-01-02' - status: Suggested - levels: - - levelName: Income - confidence: 0.95 - - levelName: Revenue - confidence: 0.9 - - date: '2022-01-01' - balance: 70 - accountName: Amazon - accountId: 13931cbf-ea06-4d6e-9538-a8457fa66011 - accountCategory: - lastUpdated: '2022-01-02' - status: Suggested - levels: - - levelName: Income - confidence: 0.95 - - levelName: Revenue - confidence: 0.95 - - levelName: Online - confidence: 0.8 - EnhancedInvoicesReport: - title: Enhanced invoices report - description: The enhanced invoices report takes the key elements of the Invoices report verifying those marked as paid in the accounting software have actually been paid by matching with the bank statement. - type: object - properties: - reportInfo: - $ref: '#/components/schemas/EnhancedInvoicesReport/definitions/reportInfo' - reportItems: - type: array - items: - $ref: '#/components/schemas/EnhancedInvoicesReport/definitions/enhancedInvoiceReportItem' - definitions: - lendingCustomerRef: - type: object - properties: - id: - minLength: 1 - type: string - description: '`id` from the Customers data type.' - customerName: - type: string - nullable: true - description: '`customerName` from the Customer data type.' - payment: - title: Enhanced invoice payment item - type: object - properties: - id: - type: string - description: 'ID of the invoice, which may be a GUID but it may be something else depending on the accounting software.' - date: - $ref: '#/components/schemas/DateTime' - paymentType: - type: string - description: The type of payment. - amount: - type: number - format: decimal - description: Payment amount. - currency: - $ref: '#/components/schemas/SourceAccount/properties/currency' - currencyRate: - $ref: '#/components/schemas/AccountingPaymentAllocation/definitions/paymentAllocationPayment/properties/currencyRate' - bankingTransactionRefs: - type: array - items: - $ref: '#/components/schemas/EnhancedInvoicesReport/definitions/bankingTransactionRef' - bankingTransactionRef: - title: Banking transaction reference - type: object - properties: - id: - type: string - description: Unique identifier for the bank transaction. - dataConnectionId: - type: string - description: Unique identifier of the bank transaction's connection. - accountId: - type: string - description: Unique identifier of the bank transaction's account. - accountName: - type: string - description: Name given to account. - date: - $ref: '#/components/schemas/DateTime' - description: - type: string - description: Description given to bank transaction. - amount: - type: number - description: Bank transaction amount. - format: decimal - invoiceStatus: - $ref: '#/components/schemas/AccountingInvoice/definitions/invoiceStatus' - enhancedInvoiceReportItem: - title: Enhanced invoice report item - type: object - allOf: - - type: object - properties: - id: - type: string - description: 'ID of the invoice, which may be a GUID but it may be something else depending on the accounting software.' - invoiceNumber: - type: string - description: Invoice number. - customerRef: - $ref: '#/components/schemas/EnhancedInvoicesReport/definitions/lendingCustomerRef' - issueDate: - $ref: '#/components/schemas/DateTime' - dueDate: - $ref: '#/components/schemas/DateTime' - status: - $ref: '#/components/schemas/AccountingInvoice/definitions/invoiceStatus' - currency: - $ref: '#/components/schemas/SourceAccount/properties/currency' - totalAmount: - type: number - format: decimal - description: Invoice's total amount. - amountDue: - type: number - format: decimal - description: Invoice's total amount due. - payments: - type: array - items: - $ref: '#/components/schemas/EnhancedInvoicesReport/definitions/payment' - paidOnDate: - $ref: '#/components/schemas/DateTime' - - $ref: '#/components/schemas/CommerceOrder/allOf/3' - reportInfo: - title: Report information - type: object - description: 'Report additional information, which is specific to Lending reports.' - properties: - pageNumber: - type: integer - description: The number of the page queried. - pageSize: - type: integer - description: The number of transactions returned per page. - totalResults: - type: integer - description: The total number of transactions available for a company for the period specified in the query string. - reportName: - type: string - description: Name of the report. - companyName: - type: string - description: The name of the company being queried. - generatedDate: - type: string - description: Date the report was generated. - examples: - - Example 1: - value: - pageNumber: 0 - pageSize: 0 - totalResults: 0 - reportName: string - companyName: string - generatedDate: '2023-01-26T07:36:40.487Z' + x-internal: true + $ref: '#/components/schemas/DataStatus/properties/dataType' ErrorMessage: title: Error message type: object @@ -86795,498 +11621,319 @@ components: type: string nullable: true description: Name of validator. - Integration: - title: Integration - description: An integration that Codat supports - examples: - - key: gbol - logoUrl: 'http://example.com' - name: Xero - enabled: true - sourceId: accounting - sourceType: 8193a927-ab7a-45a3-9dc2-d357a4932dfe - integrationId: 497a18ca-284e-40c0-985d-f72be35d468e - isOfflineConnector: true - isBeta: true - dataProvidedBy: string - datatypeFeatures: - - datatype: invoices - supportedFeatures: - - featureType: get - featureState: release - type: object - properties: - key: - $ref: '#/components/parameters/platformKey/schema' - logoUrl: - type: string - format: uri - description: Static url for integration's logo. - name: - type: string - example: Xero - description: Name of integration. - enabled: - type: boolean - description: Whether this integration is enabled for your customers to use. - sourceId: - $ref: '#/components/schemas/Branding/properties/sourceId' - sourceType: - $ref: '#/components/schemas/Integration/definitions/sourceType' - integrationId: - $ref: '#/components/schemas/Connection/properties/integrationId' - isOfflineConnector: - type: boolean - description: '`True` if the integration is to an application installed and run locally on an SMBs computer.' - isBeta: - type: boolean - description: '`True` if the integration is currently in beta release.' - dataProvidedBy: - type: string - description: The name of the data provider. - datatypeFeatures: - type: array - items: - $ref: '#/components/schemas/Integration/definitions/dataTypeFeature' - required: - - key - - logoUrl - - name - - enabled - definitions: - sourceType: - title: Source Type - description: The type of platform of the connection. - ExcelStatus: + ExpenseContactRef: type: object - title: Excel status + title: Supplier/customer reference + x-internal: true properties: - lastGenerated: - $ref: '#/components/schemas/DateTime' - description: The date and time of when the generation of the most recent report was initiated. - inProgress: - type: boolean - description: 'When true, the request was successful and the report is being generated. If false, the request was unsuccessful and the report is not being generated.' - queued: - type: string - description: The date and time of when a successful request was queued for the most recent report. - success: - type: boolean - description: True if the requested report was successfully queued and false if the requested report was not able to be queued. - errorMessage: - type: string - description: Error details in case the report generation request was unsuccessful. - lastInvocationId: + id: type: string - description: A unique ID generated for this request. - reportType: - $ref: '#/components/schemas/ExcelStatus/definitions/excelReportTypes' - fileSize: - type: integer - nullable: true - description: The file size in Bytes is populated upon successful generation of the report. - definitions: - excelReportTypes: + example: 40e3e57c-2322-4898-966c-ca41adfd23fd + description: Identifier of supplier or customer. + type: type: string + description: The type of contact. + example: Supplier + default: Supplier enum: - - audit - - enhancedFinancials - - enhancedInvoices - - enhancedCashFlow - description: The type of the report requested in the query string. - examples: - - lastGenerated: '2023-01-25T22:36:05.125Z' - inProgress: true - queued: '2023-01-25T22:36:05.125Z' - success: true - errorMessage: string - lastInvocationId: 3fa85f64-5717-4562-b3fc-2c963f66afa6 - reportType: string - fileSize: 0 - File: - title: File + - Supplier + required: + - id + ExpensesSyncWebhook: + title: Expenses sync webhook type: object properties: - fileName: - type: string - nullable: true - description: The file's name. - displayName: - type: string - nullable: true - description: An optional display name for the file. - sourceType: + id: type: string - nullable: true - description: The source of the file uploaded. - uploaded: - $ref: '#/components/schemas/DateTime' - additionalProperties: false - Files: - title: Files - type: array - items: - $ref: '#/components/schemas/File' - FileUpload: - title: Attachment upload - type: object - x-internal: true - required: - - file - properties: - file: - $ref: '#/components/schemas/FileUpload/definitions/codatFile' - definitions: - codatFile: + format: uuid + example: ba29118f-5406-4e59-b05c-ba307ca38d01 + description: Unique identifier of the event. + eventType: type: string - description: The file to be uploaded as an attachment. - format: binary - FinancialSummary: - title: Closed Books Indicator - type: object - properties: - booksClosedDate: - type: object - description: The date time in UTC the books closed. - properties: - date: - type: string - format: date-time - description: The date time in UTC the books closed. - example: '2025-05-31T00:00:00Z' - reason: - type: array - description: List of reasons explaining the books closed date. - items: - type: string - example: - - One or more accounts show a deviation from expected movements for March 2025 - - One of the marketing accounts haven't been booked for February 2025 - - One of the inventory accounts haven't been booked for March 2025 - accountingScore: - type: object - description: 'A score based on data completeness, accuracy, consistency, and presentation of data and the reasons for the score.' - properties: - score: - type: number - format: decimal - description: The accounting score value. - example: 90 - reason: - type: array - description: List of reasons explaining the accounting score. - items: - type: string - example: - - Balance sheet is unbalanced. - - Negative Tangible Assets on Balance Sheet - - Negative Accounts Receivable on Balance Sheet - LoanSummary: - title: Loan summary - type: object - properties: - reportInfo: - $ref: '#/components/schemas/LoanSummary/definitions/loanSummaryReportInfo' - reportItems: - type: array - description: Returns a summary of all loan activity for that integration type - items: - $ref: '#/components/schemas/LoanSummary/definitions/loanSummaryReportItem' + description: The type of event. + examples: + - expenses.sync.successful + - expenses.sync.unsuccessful + generatedDate: + $ref: '#/components/schemas/TransferTransactionRequest/properties/date/allOf/1' + description: The date time in UTC the event was generated in Codat. + payload: + $ref: '#/components/schemas/ExpensesSyncWebhook/definitions/expensesSyncWebhookPayload' definitions: - loanSummaryReportInfo: - title: Loan Summary Report Info - type: object - properties: - reportName: - type: string - description: The name of the report. - companyName: - type: string - description: Name of the company queried. - generatedDate: - $ref: '#/components/schemas/DateTime' - description: Returns the YYYY-MM-DD datetime of report generation. urns the YYYY-MM-DD datetime of report generation. - loanRef: - title: Loan Reference + transaction: + title: Transaction type: object properties: id: type: string - description: The id of the object being referred to. - dataConnectionId: - type: string - description: The dataConnectionId the object being referred to is associated with. - x-stoplight: - id: vrnhmgrfndjhh - type: - type: string - description: 'The object type data is referring to, e.g. Account.' - loanSummaryRecordRef: - title: Item reference - type: object - properties: - id: + description: Unique identifier of the transaction. + status: type: string - description: The id of the object being referred to. - dataConnectionId: + enum: + - Unknown + - PushError + - Completed + - Failed + - Pending + description: Status of transaction. + errorMessage: type: string - description: The dataConnectionId the object being referred to is associated with. - integrationType: - $ref: '#/components/schemas/LoanSummary/definitions/loanSummaryIntegrationType' - recordRefType: - $ref: '#/components/schemas/LoanSummary/definitions/loanSummaryRecordRefType' - loanSummaryReportItem: + nullable: true + description: Error message for failed transaction. + expensesSyncWebhookPayload: + title: Expenses sync webhook payload type: object properties: - recordRef: - $ref: '#/components/schemas/LoanSummary/definitions/loanSummaryRecordRef' - description: Contains object that contains a summary of all loan transactions for that integration type. - description: - type: string - description: The description of the object being referred to. E.g. the account. - startDate: - $ref: '#/components/schemas/DateTime' - description: The date of the earliest loan transaction. - totalDrawdowns: - type: number - format: decimal - description: The total loan drawdowns. - totalRepayments: - type: number - format: decimal - description: The total loan repayments which includes capital plus any interest. - balance: - type: number - format: decimal - description: The loan outstanding balance. This may not equal totalDrawdowns - totalRepayments due to interest which has been accrued. - lender: + referenceCompany: + $ref: '#/components/schemas/Company/definitions/companyReference' + syncId: type: string - description: The name of lender providing the loan. - loanSummaryIntegrationType: - title: Integration type - type: string - enum: - - Accounting - - Banking - - BankFeed - - Commerce - - Expense - - Other - - Unknown - example: Accounting - dataTypeFeature: - title: Data type feature - description: Describes support for a given datatype and associated operations - type: object - properties: - dataType: - $ref: '#/components/schemas/DataStatus/properties/dataType' - supportedFeatures: + description: Unique identifier of the sync. + transactions: type: array items: - $ref: '#/components/schemas/Integration/definitions/supportedFeature' - required: - - datatype - - supportedFeatures - examples: - - datatype: invoices - supportedFeatures: - - featureType: Get - featureState: Release - supportedFeature: - type: object - x-internal: true - properties: - featureType: - $ref: '#/components/schemas/Integration/definitions/featureType' - featureState: - $ref: '#/components/schemas/Integration/definitions/featureState' - required: - - featureType - - featureState - featureState: - title: Feature state + $ref: '#/components/schemas/ExpensesSyncWebhook/definitions/transaction' + ExpenseTransaction: + title: Expense transaction + type: object + properties: + id: type: string - example: Release - description: The current release state of the feature. - enum: - - Release - - Alpha - - Beta - - Deprecated - - NotSupported - - NotImplemented - featureType: + example: 4d7c6929-7770-412b-91bb-44d3bc71d111 + format: uuid + description: Your unique identifier for the transaction. + type: type: string - x-internal: true - description: The type of feature. + example: Payment + description: The type of transaction. enum: - - Get - - Post - - Categorization - - Delete - - Put - - GetAsPdf - - DownloadAttachment - - GetAttachment - - GetAttachments - - UploadAttachment - example: Get - Integrations: - title: Integrations - x-internal: true - allOf: - - type: object + - Payment + - Refund + - Reward + - Chargeback + issueDate: + $ref: '#/components/schemas/TransferTransactionRequest/properties/date/allOf/1' + description: Date of the transaction was recorded. + currency: + type: string + example: GBP + description: Currency the transaction was recorded in. + currencyRate: + title: Currency rate + type: number + format: decimal + nullable: true + description: |- + Rate to convert the total amount of the payment into the base currency for the company at the time of the payment. + + Currency rates in Codat are implemented as the multiple of foreign currency units to each base currency unit. + + It is not possible to perform the currency conversion with two or more non-base currencies participating in the transaction. For example, if a company's base currency is USD, and it has a bill issued in EUR, then the bill payment must happen in USD or EUR. + + Where the currency rate is provided by the underlying accounting software, it will be available from Codat with the same precision (up to a maximum of 9 decimal places). + + For accounting software which do not provide an explicit currency rate, it is calculated as `baseCurrency / foreignCurrency` and will be returned to 9 decimal places. + + ## Examples with base currency of GBP + + | Foreign Currency | Foreign Amount | Currency Rate | Base Currency Amount (GBP) | + | :--------------- | :------------- | :------------ | :------------------------- | + | **USD** | $20 | 0.781 | £15.62 | + | **EUR** | €20 | 0.885 | £17.70 | + | **RUB** | ₽20 | 0.011 | £0.22 | + + ## Examples with base currency of USD + + | Foreign Currency | Foreign Amount | Currency Rate | Base Currency Amount (USD) | + | :--------------- | :------------- | :------------ | :------------------------- | + | **GBP** | £20 | 1.277 | $25.54 | + | **EUR** | €20 | 1.134 | $22.68 | + | **RUB** | ₽20 | 0.015 | $0.30 | + + + ### Integration-specific details + + | Integration | Scenario | System behavior | + |-------------------|-------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------| + | QuickBooks Online | Transaction currency differs from base currency | If currency rate value is left `null`, a rate of 1 will be used by QBO by default. To override this, specify a currencyRate in the request body. | + contactRef: + description: Supplier or customer for the purchase to be associated to. + $ref: '#/components/schemas/ExpenseContactRef' + bankAccountRef: + type: object + title: Bank account reference properties: - results: - type: array - items: - $ref: '#/components/schemas/Integration' - - $ref: '#/components/schemas/PagingInfo' - - Commerce - description: The integration type begin referred to. - loanSummaryRecordRefType: - title: Record reference type + id: + type: string + example: 787dfb37-5707-4dc0-8a86-8d74e4cc78ea + description: Identifier of the bank account. + reference: type: string - enum: - - accounts - - banking-accounts - - commerce-transactions - description: The datatype being referred to. + nullable: true + description: User-friendly reference for the expense transaction. + merchantName: + type: string + example: Amazon UK + description: Name of the merchant where the purchase took place + lines: + type: array + description: Array of transaction lines. + minItems: 1 + maxItems: 100 + items: + $ref: '#/components/schemas/ExpenseTransactionLine' + notes: + type: string + description: 'Any private, company notes about the transaction.' + example: 'APPLE.COM/BILL - 09001077498 - Card Ending: 4590' + postAsDraft: + type: boolean + nullable: true + description: 'This optional property, when set to true, posts the transaction to a drafted state. Note that postAsDraft is only supported in Microsoft Dynamics 365 Business Central.' + required: + - id + - type + - issueDate + - currency examples: - - reportInfo: - reportName: LoanSummaryReport - companyName: The Coffee shop - generatedDate: '2022-10-23T00:00:00Z' - reportItems: - - recordRef: - id: string - dataConnectionId: DE34E8E3-089F-4DF4-89E9-F7C43618FCAAA - integrationType: Accounting - recordRefType: accounts - description: string - startDate: '2021-01-01' - totalInvestments: 100000 - totalRepayments: 83481.72 - balance: 42513.18 - lender: Barclays Bank - LoanTransactions: - title: Loan transactions + - id: a44135b0-6882-489a-83fe-a0c57a4afb19 + type: Payment + issueDate: '2024-05-21T00:00:00+00:00' + currency: GBP + currencyRate: 1 + contactRef: + id: '430' + type: Supplier + bankAccountRef: + id: '97' + merchantName: Amazon UK + notes: amazon purchase + lines: + - netAmount: 100 + taxAmount: 20 + taxRateRef: + id: 23_Bills + accountRef: + id: '35' + trackingRefs: + - id: DEPARTMENT_3 + - dataType: trackingCategories + invoiceTo: + id: '504' + type: customer + ExpenseTransactionLine: + x-internal: true + title: Expense transaction line type: object + x-examples: + ExpenseTransactionLine: + netAmount: 100 + taxAmount: 20 + taxRateRef: + id: 08d37c46-8d5d-441b-8bad-76286c43047e + accountRef: + id: 16989b16-96d4-401a-9054-f5c620c655a6 + trackingRefs: + - id: e9a1b63d-9ff0-40e7-8038-016354b987e6 + invoiceTo: + id: 80000002-1674552702 + type: customer properties: - reportInfo: - $ref: '#/components/schemas/LoanTransactions/definitions/loanTransactionsReportInfo' - reportItems: + netAmount: + type: number + format: decimal + example: 100 + description: 'Amount of the line, exclusive of tax.' + taxAmount: + type: number + format: decimal + example: 20 + description: Amount of tax for the line. + taxRateRef: + $ref: '#/components/schemas/RecordRef' + accountRef: + description: The `accountRef` contains the `id` of the account the transaction is against. The `accountRef` object is required for all integrations except QBD which currently supports either itemRef or accountRef. + $ref: '#/components/schemas/RecordRef' + itemRef: + $ref: '#/components/schemas/ItemRef' + trackingRefs: type: array - description: Contains object of reporting properties. The loan ref will reference a different object depending on the integration type. + minItems: 1 + maxItems: 10 + nullable: true items: - $ref: '#/components/schemas/LoanTransactions/definitions/reportItems' - definitions: - loanTransactionsReportInfo: - title: Loan Transactions Report Info - type: object - properties: - pageNumber: - type: integer - description: The page number. - pageSize: - type: integer - description: Queried page size. - totalResults: - type: integer - description: The total number of transactions returned. - reportName: - type: string - description: The name of the report. - companyName: - type: string - description: Name of the company queried. - generatedDate: - $ref: '#/components/schemas/DateTime' - description: Returns the YYYY-MM-DD datetime of report generation. - loanRef: - title: Loan Reference - type: object - properties: - id: - type: string - description: The id of the object being referred to. - dataConnectionId: - type: string - description: The dataConnectionId the object being referred to is associated with. - type: - type: string - description: 'The object type data is referring to, e.g. Account.' - itemRef: - title: Item reference - type: object - properties: - id: - type: string - description: 'The id of the object, e.g. the Journal entry.' - dataConnectionId: - type: string - description: The data connection id being referenced. - type: - type: string - description: The data type the loan transaction entry was extracted from. - reportItems: - type: object - properties: - loanRef: - $ref: '#/components/schemas/LoanTransactions/definitions/loanRef' - description: Contains object that contains all the Loan transactions for that integration type. - itemRef: - $ref: '#/components/schemas/LoanTransactions/definitions/itemRef' - description: Contains object of reporting properties. The loan ref will reference a different object depending on the integration type. - date: - $ref: '#/components/schemas/DateTime' - description: The date of that entry type occurred. - amount: - type: number - format: decimal - description: The loan transaction amount. - loanTransactionType: - description: The type of loan transaction. - type: string - enum: - - Investment - - Repayment - - Interest - - AccuredInterest - lender: - type: string - description: The name of lender providing the loan. - examples: - - reportInfo: - pageNumber: 1 - pageSize: 1000 - totalResults: 1 - reportName: AccountingLoanTransactions - companyName: Supermarket store - generatedDate: '2022-10-23T00:00:00Z' - reportItems: - - loanRef: - id: '332' - dataConnectionId: ecd2d6be-5194-40a1-838f-5577a4881aaa - type: chartOfAccount - itemRef: - id: '755488' - dataConnectionId: ecd2d6be-5194-40a1-838f-5577a4881aaa - type: journalEntry - date: '2020-08-02' - amount: -455 - transactionType: Repayment - lender: Barclays Bank - Metadata: - title: Metadata + $ref: '#/components/schemas/TrackingRef' + invoiceTo: + $ref: '#/components/schemas/InvoiceTo' + required: + - netAmount + IntegrationType: + title: Integration type + x-internal: true + type: string + description: Type of transaction that has been processed e.g. Expense or Bank Feed. + enum: + - expenses + - bankfeeds + default: expenses + example: expenses + nullable: true + InvoiceTo: + title: Billable customer reference + x-internal: true type: object + nullable: true + description: Unique identifier for the customer billed for the transaction. The `invoiceTo` object is currently supported only for QuickBooks Online and QuickBooks Desktop. + properties: + id: + type: string + example: 80000002-1674552702 + description: identifier of customer. + type: + type: string + example: customer + description: The type of contact. + enum: + - customer + ItemRef: x-internal: true + type: object + title: Item reference + nullable: true + properties: + id: + type: string + example: 80000002-1675158984 + description: 'Unique identifier for the item associated with the transaction. The `itemRef` object is currently supported only for QuickBooks Desktop. You can specify either `itemRef` or `accountRef`, but not both.' + MappingOptions: + title: Mapping options + type: object + additionalProperties: false + x-examples: {} properties: - isDeleted: - type: boolean - description: Indicates whether the record has been deleted in the third-party system this record originated from. + expenseProvider: + type: string + description: Name of the expense integration. + example: Partner Expense + nullable: true + accounts: + type: array + description: Array of available accounts for mapping. + nullable: true + items: + $ref: '#/components/schemas/AccountMappingInfo' + trackingCategories: + type: array + description: Array of available tracking categories for mapping. + nullable: true + items: + $ref: '#/components/schemas/TrackingCategoryMappingInfo' + taxRates: + type: array + description: Array of available tax rates for mapping. nullable: true + items: + $ref: '#/components/schemas/TaxRateMappingInfo' PagingInfo: type: object title: Pagination information @@ -87347,113 +11994,6 @@ components: href: '/companies/{id}/data/{dataType}' current: href: '/companies/{id}/data/{dataType}?page=1&pageSize=10' - Profile: - title: Profile - description: Describes your Codat client instance - examples: - - name: Bob's Burgers - logoUrl: 'https://client-images.codat.io/logo/042399f5-d104-4f38-9ce8-cac3524f4e88_5806cb1f-7342-4c0e-a0a8-99bfbc47b0ff.png' - iconUrl: 'https://client-images.codat.io/icon/042399f5-d104-4f38-9ce8-cac3524f4e88_3f5623af-d992-4c22-bc08-e58c520a8526.ico' - redirectUrl: 'https://bobs-burgers.{countrySuffix}/{companyId}' - whiteListUrls: - - 'https://bobs-burgers.com' - - 'https://bobs-burgers.co.uk' - confirmCompanyName: true - type: object - properties: - name: - type: string - example: Bob's Burgers - description: The name given to the instance. - logoUrl: - type: string - description: Static url to your organization's logo. - example: 'https://client-images.codat.io/logo/042399f5-d104-4f38-9ce8-cac3524f4e88_5806cb1f-7342-4c0e-a0a8-99bfbc47b0ff.png' - iconUrl: - type: string - description: Static url to your organization's icon. - example: 'https://client-images.codat.io/icon/042399f5-d104-4f38-9ce8-cac3524f4e88_3f5623af-d992-4c22-bc08-e58c520a8526.ico' - redirectUrl: - type: string - example: 'https://bobs-burgers.{countrySuffix}/{companyId}' - description: 'The redirect URL pasted on to the SMB once Codat''s [Hosted Link](https://docs.codat.io/auth-flow/authorize-hosted-link) has been completed by the SMB.' - whiteListUrls: - type: array - description: A list of urls that are allowed to communicate with Codat. If empty any url is allowed to communicate with Codat. - items: - type: string - format: uri - example: 'https://bobs-burgers.com' - description: A url that is allowed to communicate with Codat. - apiKey: - type: string - deprecated: true - example: sartANTjHAkLdbyDfaynoTQb7pkmj6hXHmnQKMrB - description: The API key for this Codat instance. - confirmCompanyName: - type: boolean - deprecated: true - description: '`True` if the company name has been confirmed.' - required: - - name - - redirectUrl - x-stoplight: - id: b1fyq05edangf - PaymentMethodRef: - type: object - title: Payment method reference - description: The payment method the record is linked to in the accounting or commerce software. - properties: - id: - description: The unique identifier of the location being referenced. - type: string - name: - description: Name of the location being referenced. - type: string - required: - - id - example: - id: EILBDVJVNUAGVKRQ - name: AliPay - PhoneNumber: - title: Phone - type: object - x-internal: true - properties: - number: - type: string - nullable: true - examples: - - +44 25691 154789 - - (877) 492-8687 - - 01224 658 999 - description: A phone number. - type: - description: The type of phone number - type: string - enum: - - Primary - - Landline - - Mobile - - Fax - - Unknown - required: - - type - ProjectRef: - title: 'Accounting: Project reference' - x-internal: true - required: - - id - type: object - properties: - id: - minLength: 1 - type: string - description: Unique identifier to the project reference. - name: - type: string - nullable: true - description: The project's name. PullOperation: title: Pull operation description: |- @@ -87517,9 +12057,9 @@ components: nullable: true description: A message about a transient or persistent error returned by Codat or the source platform. requested: - $ref: '#/components/schemas/DateTime' + $ref: '#/components/schemas/TransferTransactionRequest/properties/date/allOf/1' completed: - $ref: '#/components/schemas/DateTime' + $ref: '#/components/schemas/TransferTransactionRequest/properties/date/allOf/1' progress: type: integer description: An integer signifying the progress of the pull operation. @@ -87576,7 +12116,6 @@ components: $ref: '#/components/schemas/DataStatus/properties/dataType' description: 'The type of data being pushed, eg invoices, customers.' companyId: - $ref: '#/paths/~1companies~1%7BcompanyId%7D~1syncSettings/post/requestBody/content/application~1json/schema/allOf/0/properties/companyId' $ref: '#/components/parameters/companyId/schema' pushOperationKey: type: string @@ -87585,10 +12124,10 @@ components: dataConnectionKey: $ref: '#/components/parameters/connectionId/schema' requestedOnUtc: - $ref: '#/components/schemas/DateTime' + $ref: '#/components/schemas/TransferTransactionRequest/properties/date/allOf/1' description: The datetime when the push was requested. completedOnUtc: - $ref: '#/components/schemas/DateTime' + $ref: '#/components/schemas/TransferTransactionRequest/properties/date/allOf/1' description: 'The datetime when the push was completed, null if Pending.' timeoutInMinutes: type: integer @@ -87832,977 +12371,886 @@ components: $ref: '#/components/schemas/PushOption/definitions/pushOptionProperty/properties/description' required: $ref: '#/components/schemas/PushOption/definitions/pushOptionProperty/properties/required' - ReadCompletedWebhook: - title: Read completed webhook - ReportLine: + RecordRef: + x-internal: true + type: object + title: Record reference + properties: + id: + type: string + example: 40e3e57c-2322-4898-966c-ca41adfd23fd + description: Identifier of linked reference from mapping options. + ReimbursableExpenseTransactionLine: + x-internal: true + title: Reimbursable expense transaction line + type: object + properties: + description: + type: string + example: 2-night hotel stay + description: line description + netAmount: + type: number + format: decimal + example: 100 + description: 'Amount of the line, exclusive of tax.' + taxAmount: + type: number + format: decimal + example: 20 + description: Amount of tax for the line. + taxRateRef: + $ref: '#/components/schemas/RecordRef' + accountRef: + description: The `accountRef` contains the `id` of the account the transaction is against. The `accountRef` object is required for all integrations except QBD which currently supports either itemRef or accountRef. + $ref: '#/components/schemas/RecordRef' + itemRef: + $ref: '#/components/schemas/ItemRef' + trackingRefs: + type: array + minItems: 1 + maxItems: 10 + nullable: true + items: + $ref: '#/components/schemas/TrackingRef' + invoiceTo: + $ref: '#/components/schemas/InvoiceTo' + required: + - netAmount + ReimbursableExpenseTransactionRequest: + title: Reimbursable expense transaction request + type: array + minItems: 1 + maxItems: 50 + items: + $ref: '#/components/schemas/ReimbursableExpenseTransactionRequest/definitions/reimbursableExpenseTransaction' + definitions: + reimbursableExpenseTransaction: + title: Reimbursable expense transaction + type: object + properties: + id: + type: string + example: 4d7c6929-7770-412b-91bb-44d3bc71d111 + format: uuid + description: Your unique identifier for the transaction. + reference: + type: string + nullable: true + description: User-friendly reference for the reimbursable expense. + contactRef: + $ref: '#/components/schemas/ReimbursementContactRef' + apAccountRef: + $ref: '#/components/schemas/apAccountRef' + issueDate: + $ref: '#/components/schemas/TransferTransactionRequest/properties/date/allOf/1' + description: Date of the transaction was recorded. + dueDate: + description: Date the supplier is due to be paid. + $ref: '#/components/schemas/TransferTransactionRequest/properties/date/allOf/1' + currency: + type: string + example: GBP + description: Currency the transaction was recorded in. + currencyRate: + $ref: '#/components/schemas/ExpenseTransaction/properties/currencyRate' + notes: + type: string + description: 'Any private, company notes about the transaction.' + example: 'APPLE.COM/BILL - 09001077498 - Card Ending: 4590' + lines: + type: array + description: Array of transaction lines. + minItems: 1 + maxItems: 100 + items: + $ref: '#/components/schemas/ReimbursableExpenseTransactionLine' + required: + - id + - contactRef + - issueDate + - dueDate + - currency + ReimbursementContactRef: + type: object + title: Contact reference + x-internal: true + properties: + id: + type: string + example: 40e3e57c-2322-4898-966c-ca41adfd23fd + description: Identifier of contact. + required: + - id + SupplementalData: + title: Supplemental data + type: object + x-internal: true + description: |- + Supplemental data is additional data you can include in our standard data types. + + It is referenced as a configured dynamic key value pair that is unique to the accounting software. [Learn more](https://docs.codat.io/using-the-api/supplemental-data/overview) about supplemental data. + properties: + content: + type: object + additionalProperties: + type: object + additionalProperties: true + nullable: true + Supplier: + title: 'Accounting: Supplier' + description: |- + ## Overview + + From the **Suppliers** endpoints, you can retrieve a list of [all the suppliers for a company](https://docs.codat.io/sync-for-expenses-api#/operations/list-suppliers). Suppliers' data links to accounts payable [bills](https://docs.codat.io/sync-for-expenses-api#/schemas/Bill). + type: object + allOf: + - type: object + properties: + id: + type: string + description: 'Identifier for the supplier, unique to the company in the accounting software.' + supplierName: + type: string + nullable: true + description: 'Name of the supplier as recorded in the accounting system, typically the company name.' + contactName: + type: string + nullable: true + description: Name of the main contact for the supplier. + emailAddress: + type: string + nullable: true + description: Email address that the supplier may be contacted on. + phone: + type: string + nullable: true + description: Phone number that the supplier may be contacted on. + examples: + - +44 25691 154789 + - (877) 492-8687 + - 01224 658 999 + addresses: + type: array + nullable: true + description: An array of Addresses. + items: + $ref: '#/components/schemas/CompanyInformation/properties/addresses/items' + registrationNumber: + type: string + nullable: true + description: 'Company number of the supplier. In the UK, this is typically the company registration number issued by Companies House.' + taxNumber: + type: string + nullable: true + description: Supplier's company tax number. + status: + $ref: '#/components/schemas/Supplier/definitions/supplierStatus' + defaultCurrency: + type: string + nullable: true + description: Default currency the supplier's transactional data is recorded in. + metadata: + $ref: '#/components/schemas/Account/allOf/2/properties/metadata' + supplementalData: + $ref: '#/components/schemas/SupplementalData' + - $ref: '#/components/schemas/Account/allOf/3' + required: + - status + definitions: + supplierRef: + title: Supplier reference + description: Reference to the supplier the record relates to. + type: object + properties: + id: + minLength: 1 + type: string + description: The supplier's unique ID + supplierName: + type: string + nullable: true + description: The supplier's name + required: + - id + supplierStatus: + description: Status of the supplier. + type: string + enum: + - Unknown + - Active + - Archived + examples: + - id: C520FFD4-F6F6-4FC2-A6D2-5D7088B2B14F + supplierName: Kelly's Industrial Supplies + contactName: Kelly's Industrial Supplies + emailAddress: sales@kellysupplies.com + phone: 07999 999999 + addresses: + - type: Billing + line1: Unit 51 + line2: Bakersfield Industrial Estate + city: Bakersfield + region: California + country: USA + postalcode: '93308' + registrationNumber: string + taxNumber: string + status: Unknown + defaultCurrency: string + metadata: + isDeleted: true + supplementalData: + content: + property1: + property1: null + property2: null + property2: + property1: null + property2: null + modifiedDate: '2022-10-23T00:00:00Z' + sourceModifiedDate: '2022-10-23T00:00:00Z' + Suppliers: + title: Suppliers + x-internal: true + allOf: + - type: object + properties: + results: + type: array + items: + $ref: '#/components/schemas/Supplier' + - $ref: '#/components/schemas/PagingInfo' + SyncCompleteWebhook: + title: Sync complete webhook + x-internal: true + description: Webhook request body used to notify that a sync has completed. + type: object + properties: + ClientId: + $ref: '#/components/schemas/SyncFailedWebhook/properties/ClientId' + ClientName: + $ref: '#/components/schemas/SyncFailedWebhook/properties/ClientName' + CompanyId: + $ref: '#/components/parameters/companyId/schema' + RuleId: + $ref: '#/components/schemas/SyncFailedWebhook/properties/RuleId' + RuleType: + $ref: '#/components/schemas/SyncFailedWebhook/properties/RuleType' + AlertId: + $ref: '#/components/schemas/SyncFailedWebhook/properties/AlertId' + Message: + $ref: '#/components/schemas/SyncFailedWebhook/properties/Message' + Data: + $ref: '#/components/schemas/SyncCompleteWebhook/definitions/SyncCompleteWebhookData' + definitions: + SyncCompleteWebhookData: + type: object + title: Sync complete webhook data + properties: + syncId: + $ref: '#/components/schemas/SyncFailedWebhook/definitions/SyncFailedWebhookData/properties/syncId' + syncType: + $ref: '#/components/schemas/SyncFailedWebhook/definitions/SyncFailedWebhookData/properties/syncType' + examples: + - ClientId: 30e0f9d2-52c0-4c9f-a806-bcd98a3bcd7e + ClientName: Expense Sync + CompanyId: 1f9559e7-8368-48c9-bdf4-f158e16b8b85 + AlertId: 33a4f8e9-09ae-4334-9b00-7bbe83024672 + RuleId: 5c27631d-3b63-4b50-8228-ee502fd113eb + RuleType: Sync Completed + Message: Sync 321363b4-efa9-4fbc-b71c-0b58d62f3248 for company 1f9559e7-8368-48c9-bdf4-f158e16b8b85 of type Expense completed successfully. + Data: + syncId: 321363b4-efa9-4fbc-b71c-0b58d62f3248 + syncType: Expense + SyncFailedWebhook: + title: Sync failed webhook x-internal: true + description: Webhook request body used to notify that a sync has failed. type: object - title: 'Accounting: Report line' properties: - accountId: + ClientId: + title: Client ID type: string - nullable: true - description: 'Identifier for the account, unique for the company in the accounting software.' - name: + format: uuid + description: Unique identifier for your client in Codat. + ClientName: type: string - nullable: true - description: Name of the report line item. - value: - type: number - format: decimal - description: Numerical value of the line item. - items: - type: array - nullable: true - description: An array of ReportLine items. - items: - $ref: '#/components/schemas/ReportLine' - required: - - value - ReportOperation: - title: Report - type: object - properties: - id: + description: Name of your client in Codat. + CompanyId: + $ref: '#/components/parameters/companyId/schema' + RuleId: type: string format: uuid - example: 743ec94a-8aa4-44bb-8bd4-e1855ee0e74b - description: Unique identifier of the event. - eventType: + description: Unique identifier for the rule. + deprecated: true + RuleType: type: string - description: The type of event. - generatedDate: - $ref: '#/components/schemas/DateTime' - description: The date time in UTC the event was generated in Codat. - payload: - $ref: '#/components/schemas/ReadCompletedWebhook/definitions/readCompletedWebhookPayload' + x-stoplight: + id: 34d52a089f08a + description: The type of rule. + AlertId: + type: string + format: uuid + description: Unique identifier of the webhook event. + Message: + type: string + description: A human-readable message about the webhook. + Data: + $ref: '#/components/schemas/SyncFailedWebhook/definitions/SyncFailedWebhookData' definitions: - readCompletedWebhookPayload: - title: Read result webhook payload - type: object - properties: - referenceCompany: - $ref: '#/components/schemas/Company/definitions/companyReference' - modifiedFromDate: - $ref: '#/components/schemas/DateTime' - description: The date time in UTC when the data types were last fetched and input into Codat's cache. - nullable: true - dataTypes: - type: array - items: - $ref: '#/components/schemas/ReadCompletedWebhook/definitions/dataTypeReadSummary' - dataTypeReadSummary: - title: Summary of data type reads - type: object - properties: - connectionId: - $ref: '#/components/parameters/connectionId/schema' - dataType: - $ref: '#/components/schemas/DataStatus/properties/dataType' - recordsModified: - type: boolean - example: false - description: '`True` if records have been created, updated or deleted in Codat''s cache.' - status: - $ref: '#/components/schemas/PullOperation/properties/status' - issues: - type: array - nullable: true - description: A array of issues encountered during a data read. - items: - $ref: '#/components/schemas/ReadCompletedWebhook/definitions/issue' - customProductReadCompleteWebhook: - title: Read completed webhook - type: object - properties: - id: - $ref: '#/components/schemas/ReadCompletedWebhook/properties/id' - eventType: - $ref: '#/components/schemas/ReadCompletedWebhook/properties/eventType' - generatedDate: - $ref: '#/components/schemas/ReadCompletedWebhook/properties/generatedDate' - payload: - $ref: '#/components/schemas/ReadCompletedWebhook/definitions/customProductReadCompleteWebhookPayload' - customProductReadCompleteWebhookPayload: - title: Read result webhook payload - type: object - properties: - referenceCompany: - $ref: '#/components/schemas/Company/definitions/companyReference' - modifiedFromDate: - $ref: '#/components/schemas/ReadCompletedWebhook/definitions/readCompletedWebhookPayload/properties/modifiedFromDate' - dataTypes: - type: array - description: Contains all data types configured for the product or a subset of data types defined in the manual refresh call. - items: - type: object - title: Summary of data type reads - properties: - connectionId: - $ref: '#/components/parameters/connectionId/schema' - dataType: - $ref: '#/components/schemas/DataStatus/properties/dataType' - recordsModified: - $ref: '#/components/schemas/ReadCompletedWebhook/definitions/dataTypeReadSummary/properties/recordsModified' - status: - $ref: '#/components/schemas/PullOperation/properties/status' - issues: - type: array - nullable: true - description: A array of issues encountered during a data read. - items: - $ref: '#/components/schemas/ReadCompletedWebhook/definitions/issue' - issue: - title: Issue + SyncFailedWebhookData: type: object - description: Details of a problem encountered during a data read. + title: Sync failed webhook data properties: - type: + syncId: type: string - description: The type of issue. - example: warning.validation - message: + format: uuid + example: a9367074-b5c3-42c4-9be4-be129f43577e + description: Unique identifier for the failed sync. + syncType: type: string - description: A message describing the issue. - example: Something doesn't look right about these accounts from Xero. You can see more information in the logs. - links: - title: Links - type: object - properties: - logs: - type: string - description: 'A link to the validation logs, providing details on any errors or warnings encountered.' - example: 'https://api.codat.io/companies/0498e921-9b53-4396-a412-4f2f5983b0a2/sync/{datasetId}/validation' - portal: - type: string - description: A link to the company's past data read history in the Codat portal. - example: 'https://app.codat.io/companies/0498e921-9b53-4396-a412-4f2f5983b0a2/pull-history' - readMore: - type: string - description: A link to Codat's documentation with additional information on how to troubleshoot this issue. - example: 'https://docs.codat.io/using-the-api/get-data-troubleshooting#warning.validation' - SupplementalDataConfiguration: - description: '' - title: Supplemental data configuration - type: object - properties: - supplementalDataConfig: - type: object - additionalProperties: - type: object - title: Supplemental data source configuration - description: The client's defined name for the object. - properties: - dataSource: - type: string - description: 'The underlying endpoint of the source system which the configuration is targeting. ' - pullData: - type: object - description: The additional properties that are required when pulling records. - additionalProperties: - type: string - description: The client's defined name for the property with the value being the source system's property name which the mapping is targeting. - pushData: - type: object - description: The additional properties that are required to create and/or update records. - additionalProperties: - type: string - description: The client's defined name for the property with the value being the source system's property name which the mapping is targeting. - examples: - - supplementalDataConfig: - orders-supplemental-data: - dataSource: /orders - pullData: - orderNumber: order_num - pushData: - orderNumber: order_num - SyncSetting: - title: SyncSetting - description: 'Describes how often, and how much history, should be fetched for the given data type when a pull operation is queued.' + description: The type of sync being performed. + FailureStage: + type: string + description: The stage of the job the sync failed. examples: - - dataType: invoices - fetchOnFirstLink: true - syncSchedule: 24 - syncOrder: 0 - syncFromUtc: '2020-01-01T12:00:00.000Z' - syncFromWindow: 24 - monthsToSync: 24 - isLocked: true + - ClientId: 30e0f9d2-52c0-4c9f-a806-bcd98a3bcd7e + ClientName: Expense Sync + CompanyId: 1f9559e7-8368-48c9-bdf4-f158e16b8b85 + RuleId: 289c80dc-2aee-4b71-afff-9acd8d051080 + RuleType: Sync Failed + AlertId: 72c1103b-7f17-4a3a-8db5-67c2d360a516 + Message: Sync 3bead2a1-1b3d-4d90-8077-cddc5ca68b01 for company 1f9559e7-8368-48c9-bdf4-f158e16b8b85 of type Expense has failed at step Pushing. + Data: + syncId: 3bead2a1-1b3d-4d90-8077-cddc5ca68b01 + syncType: Expense + FailureStage: Pushing + SyncInitiated: + title: Sync initiated type: object properties: - dataType: - $ref: '#/components/schemas/DataStatus/properties/dataType' - fetchOnFirstLink: - type: boolean - description: Whether this data type should be queued after a company has authorized a connection. - syncSchedule: - type: integer - example: 24 - description: Number of hours after which this data type should be refreshed. - syncOrder: - type: integer - description: The sync in which data types are queued for a sync. - syncFromUtc: - $ref: '#/components/schemas/DateTime' - description: Date from which data should be fetched. Set this *or* `syncFromWindow`. - syncFromWindow: - type: integer - example: 24 - description: Number of months of data to be fetched. Set this *or* `syncFromUTC`. - monthsToSync: - type: integer - example: 24 - description: 'Months of data to fetch, for report data types (`balanceSheet` & `profitAndLoss`) only.' - isLocked: - type: boolean - description: '`True` if the [sync setting](https://docs.codat.io/knowledge-base/advanced-sync-settings) is locked.' - required: - - dataType - - fetchOnFirstLink - - syncSchedule - - syncOrder - SyncSettings: - title: Sync settings + syncId: + type: string + format: uuid + description: Unique identifier for the sync initiated. + additionalProperties: false + TaxRateMappingInfo: + title: Tax rate mapping info x-internal: true type: object + additionalProperties: false + x-examples: + UK Tax Rate: + id: 23_Bills + name: 20% Bill tax Bills + code: 20% Bill tax + effectiveTaxRate: 20 + totalTaxRate: 20 + validTransactionTypes: + - Payment + - Reward properties: - clientId: - $ref: '#/components/schemas/ClientId' - settings: - type: array - items: - $ref: '#/components/schemas/SyncSetting' - overridesDefaults: - type: boolean - description: 'Set to `True` if you want to override the default [sync settings](https://docs.codat.io/knowledge-base/advanced-sync-settings).' - UpdateConnectionStatus: - title: Update connection + id: + type: string + description: Unique identifier of tax rate. + example: 23_Bills + nullable: false + name: + type: string + description: Name of the tax rate in the accounting software. + example: 20% Bill tax Bills + nullable: false + code: + type: string + description: Code for the tax rate from the accounting software. + example: 20% Bill tax + nullable: true + effectiveTaxRate: + type: number + format: decimal + description: Effective tax rate. + example: 20 + totalTaxRate: + type: number + format: decimal + description: Total (not compounded) sum of the components of a tax rate. + example: 20 + validTransactionTypes: + $ref: '#/components/schemas/validTransactionTypes' + description: Supported transaction types for the tax rate. + TrackingCategoryMappingInfo: + title: Tracking category mapping info x-internal: true type: object - properties: - status: - $ref: '#/components/schemas/Connection/definitions/dataConnectionStatus' - description: The current authorization status of the data connection. - nullable: true additionalProperties: false - ValidationResult: - title: Validation result - type: object - properties: - errors: - type: array - items: - $ref: '#/components/schemas/ValidationResult/definitions/validationItem' - warnings: - type: array - items: - $ref: '#/components/schemas/ValidationResult/definitions/validationItem' - definitions: - validationItem: - title: Validation item - type: object - properties: - ruleId: - type: string - description: The unique identifier of the rule that wasn't met. - itemId: - type: string - description: The unique identifier of the item that was validated. - message: - type: string - description: The message that describes the validation warning or error. - validatorName: - type: string - description: The name of the validator that was used to validate the item. - WebhookConsumer: - title: Webhook consumer - type: object - description: "\uFEFFA webhook consumer is an HTTP endpoint that developers can configure to subscribe to Codat's supported event types.\n\nSee our documentation for more details on [Codat's webhook service](https://docs.codat.io/using-the-api/webhooks/overview).\n" + x-examples: + Tracking Category with parentId: + id: DEPARTMENT_1 + name: TestLocation + hasChildren: false + parentId: DEPARTMENTS + Parent Tracking Category: + id: DEPARTMENTS + name: Departments + hasChildren: true properties: id: type: string - format: uuid - example: 8a210b68-6988-11ed-a1eb-0242ac120002 - description: Unique identifier for the webhook consumer. - url: + description: Unique identifier of the tracking category. + example: DEPARTMENT_2 + nullable: false + name: type: string - format: uri - description: The URL that will consume webhook events dispatched by Codat. - disabled: + description: Name of the tracking category as it appears in the accounting software. + example: New York + nullable: false + hasChildren: type: boolean - description: Flag that enables or disables the endpoint from receiving events. Disabled when set to `true`. - nullable: true - default: false - eventTypes: - type: array - description: An array of event types the webhook consumer subscribes to. - items: - type: string - companyTags: - type: array + description: Boolean of whether the tracking category has child categories. + parentId: + type: string + description: ID of the parent tracking category + example: DEPARTMENTS nullable: true - description: 'Company tags provide an additional way to filter messages, independent of event types. Company tags are case-sensitive, and only messages from companies with matching tags will be sent to this endpoint. Use the format `tagKey:tagValue`.' - items: - type: string - maxLength: 128 - maxItems: 10 - definitions: - webhookConsumerPrototype: - title: Create webhook consumer - type: object - properties: - url: - $ref: '#/components/schemas/WebhookConsumer/properties/url' - disabled: - $ref: '#/components/schemas/WebhookConsumer/properties/disabled' - eventTypes: - $ref: '#/components/schemas/WebhookConsumer/properties/eventTypes' - companyTags: - $ref: '#/components/schemas/WebhookConsumer/properties/companyTags' - webhookConsumers: - title: Webhook consumers - type: object - properties: - results: - type: array - maxItems: 50 - items: - $ref: '#/components/schemas/WebhookConsumer' - WebhookZapierKey: - title: Zapier integration key + TrackingRef: type: object + title: Tracking reference + x-internal: true properties: - key: - type: string - description: Integration key used to authorize Zapier's HTTP requests with Codat. - example: sk_integ_WM4dfoK1nKZnDE_kceze6hWDjbRwOZwG.us - examples: - - key: sk_integ_WM4dfoK1nKZnDE_kceze6hWDjbRwOZwG.us - responses: - Bad-Request: - description: Unique identifier of the report - example: 52c0f26b-051a-43ff-b02a-258eec67f5ef - status: + id: type: string - enum: - - InProgress - - Complete - - Error - description: The status of the report generation. - type: + example: e9a1b63d-9ff0-40e7-8038-016354b987e6 + description: Unique identifier of the linked reference from mapping options or the unique identifier of the linked customer. + dataType: type: string + example: trackingCategories + default: trackingCategories + description: The type of the linked reference enum: - - categorizedBankStatement - - creditModel - - spendAnalysis - description: The name of the generated report. - requestedDate: - description: The date and time on which the report was requested. - $ref: '#/components/schemas/DateTime' - updatedDate: - description: The date and time on which the report was last updated. - $ref: '#/components/schemas/DateTime' - errorMessage: - type: string - nullable: true - description: A short message describing any errors that occurred while generating the report. - description: Information about report generation. - definitions: - reports: - title: Reports - allOf: - - type: object - properties: - results: - type: array - items: - $ref: '#/components/schemas/ReportOperation' - minLength: 0 - maxLength: 2000 - - $ref: '#/components/schemas/PagingInfo' - SourceAccount: - title: Source account (v1) + - trackingCategories + - customers + TrackingRefAdjustmentTransaction: type: object - description: The target bank account in a supported accounting software for ingestion into a bank feed. - additionalProperties: false + title: Tracking reference + x-internal: true properties: id: type: string - description: Unique ID for the bank account. - accountName: - type: string - nullable: true - description: The bank account name. - accountType: + example: e9a1b63d-9ff0-40e7-8038-016354b987e6 + description: Unique identifier of the linked reference from mapping options or the unique identifier of the linked customer or supplier. + dataType: type: string - nullable: true - description: The type of bank account e.g. Credit. - accountNumber: + example: trackingCategories + default: trackingCategories + description: The type of the linked reference + enum: + - trackingCategories + - customers + - suppliers + Transaction: + title: Transaction + type: object + additionalProperties: false + properties: + transactionId: type: string + description: Your unique idenfier of the transaction. + example: aa02271d-ed5f-47f5-be76-778d5905225a nullable: true - description: The account number. - sortCode: + status: + $ref: '#/components/schemas/TransactionStatus' + message: type: string + description: Metadata such as validation errors or the resulting record created in the accounting software. nullable: true - description: The sort code. - currency: - title: Currency - x-internal: true + integrationType: + $ref: '#/components/schemas/IntegrationType' + x-examples: + Successful Transaction: + transactionId: 8fdba4ed-e327-4925-be1a-b7a2b04627f7 + status: Completed + integrationType: expense + Unsuccessful Transaction: + transactionId: 3d694cd1-4cd9-4136-91db-32408195c6fc + status: ValidationError + message: The line item total -208.10((-195.01 + -1.09) + (-10.01 + -1.99)) must equal the transaction total -1.1 + integrationType: string + TransactionResponse: + title: Transaction response + x-internal: true + type: array + items: + $ref: '#/components/schemas/Transaction' + Transactions: + title: Transactions + x-internal: true + additionalProperties: false + allOf: + - type: object + properties: + results: + type: array + items: + $ref: '#/components/schemas/Transaction' + - $ref: '#/components/schemas/PagingInfo' + x-examples: + Example 1: + results: + - transactionId: aa02271d-ed5f-47f5-be76-778d5905225a + status: Completed + integrationType: expenses + - transactionId: 730177a2-8505-410a-9ebc-c2dd52e4bea9 + status: Completed + integrationType: expenses + pageNumber: 1 + pageSize: 100 + totalResults: 2 + links: + self: + href: string + current: + href: string + TransactionStatus: + title: Transaction status + x-internal: true + type: string + description: Status of the transaction. + enum: + - Unknown + - Pending + - ValidationError + - Completed + - PushError + example: Completed + nullable: true + TransferTransactionRequest: + title: Transfer + type: object + properties: + description: type: string - description: |- - The currency data type in Codat is the [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code, e.g. _GBP_. + description: 'Any private, company notes about the transaction.' + example: Transfer from bank account Y to bank account Z + date: + allOf: + - description: Date of the transfer transaction as recorded in the accounting software. + - title: Date time + type: string + examples: + - '2022-10-23T00:00:00Z' + - '2022-10-23' + description: |- + In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example: - ## Unknown currencies + ``` + 2020-10-08T22:40:50Z + 2021-01-01T00:00:00 + ``` - In line with the ISO 4217 specification, the code _XXX_ is used when the data source does not return a currency for a transaction. - There are only a very small number of edge cases where this currency code is returned by the Codat system. - format: ISO4217 - examples: - - GBP - - USD - - EUR - balance: - type: number - format: decimal - nullable: true - description: The latest balance for the bank account. - modifiedDate: - $ref: '#/components/schemas/DateTime' - nullable: true - description: The last date the bank account was modified. - status: - type: string - nullable: true - description: Status of the source account. - enum: - - pending - - connected - - connecting - - disconnected - - unknown - feedStartDate: - $ref: '#/components/schemas/DateTime' - nullable: true - required: - - id - definitions: - sourceAccountPrototype: - title: Source account (v1) + + When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information: + + - Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z` + - Unqualified local time: `2021-11-15T01:00:00` + - UTC time offsets: `2021-11-15T01:00:00-05:00` + + > Time zones + > + > Not all dates from Codat will contain information about time zones. + > Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. + from: type: object properties: - id: - $ref: '#/components/schemas/SourceAccount/properties/id' - accountName: - $ref: '#/components/schemas/SourceAccount/properties/accountName' - accountType: - $ref: '#/components/schemas/SourceAccount/properties/accountType' - accountNumber: - $ref: '#/components/schemas/SourceAccount/properties/accountNumber' - sortCode: - $ref: '#/components/schemas/SourceAccount/properties/sortCode' - currency: - $ref: '#/components/schemas/SourceAccount/properties/currency' - balance: - $ref: '#/components/schemas/SourceAccount/properties/balance' - modifiedDate: - $ref: '#/components/schemas/SourceAccount/properties/modifiedDate' + accountRef: + type: object + title: Account reference + description: Reference of the account you are transferring money from. + properties: + id: + type: string + description: '''id'' from the Accounts data type.' + required: + - id + amount: + type: number + format: decimal + description: Amount that has been transferred from the account in the native currency of the account. required: - - id - sourceAccounts: - title: Source accounts - type: array - items: - $ref: '#/components/schemas/SourceAccount' - examples: - - id: acc-002 - accountName: account-081 - sortCode: '123456' - accountType: Credit - accountNumber: '12345670' - currency: GBP - balance: 99.99 - modifiedDate: '2023-01-09T14:14:14.1057478Z' - status: pending - - id: acc-003 - accountName: account-095 - sortCode: '123456' - accountType: Credit - accountNumber: '12345671' - currency: USD - balance: 0 - modifiedDate: '2023-01-09T14:14:14.1057478Z' - status: pending - SourceAccountV2: - title: Source account (v2) + - accountRef + - amount + to: + type: object + properties: + accountRef: + type: object + title: Account reference + description: Reference of the account you are transferring money to. + properties: + id: + type: string + description: '''id'' from the Accounts data type.' + required: + - id + amount: + type: number + format: decimal + description: Amount that has been transferred to the account in the native currency of the account. + required: + - accountRef + - amount + required: + - date + - from + - to + TransferTransactionResponse: + title: Create transfer response + x-internal: true type: object - description: The target bank account in a supported accounting software for ingestion into a bank feed. - additionalProperties: false properties: - id: + syncId: type: string - description: Unique ID for the bank account. - accountName: - type: string - description: The bank account name. - accountType: + example: cd937d46-8e41-43a9-9477-a79158ffd98a + format: uuid + description: Unique id of sync created + UpdateCustomerResponse: + title: Update customer response + x-internal: true + allOf: + - type: object + properties: + data: + allOf: + - $ref: '#/components/schemas/Customer' + - deprecated: true + - $ref: '#/components/schemas/PushOperation' + UpdateExpenseRequest: + title: Updating expense transaction request + type: object + properties: + type: type: string - description: 'The type of bank account e.g. checking, savings, loan, creditCard, prepaidCard.' + example: Payment + description: The type of transaction. enum: - - checking - - savings - - loan - - creditCard - - prepaidCard - accountNumber: - type: string - description: The account number. - sortCode: + - Payment + - Refund + - Reward + - Chargeback + issueDate: type: string - nullable: true - description: The sort code. - routingInfo: - $ref: '#/components/schemas/SourceAccountV2/definitions/routingInfo' + description: Date the transaction was recorded. + example: '2022-06-28T00:00:00.000Z' currency: - $ref: '#/components/schemas/SourceAccount/properties/currency' - balance: - type: number - format: decimal - description: The latest balance for the bank account. - accountInfo: - $ref: '#/components/schemas/SourceAccountV2/definitions/accountInfo' - modifiedDate: - $ref: '#/components/schemas/DateTime' - nullable: true - description: The last date the bank account was modified. - status: - type: string - nullable: true - description: Status of the source account. - enum: - - pending - - connected - - connecting - - disconnected - - unknown - feedStartDate: - nullable: true - title: Date type: string - example: '2022-10-23' - description: |- - In Codat's data model, dates are represented using the ISO 8601 standard. Date fields are formatted as strings; for example: - ``` - 2020-10-08 - ``` - required: - - id - - accountName - - accountType - - accountNumber - - currency - - balance - definitions: - sourceAccountV2Prototype: - title: Source account (v2) + example: GBP + description: Currency the transaction was recorded in. + currencyRate: + $ref: '#/components/schemas/ExpenseTransaction/properties/currencyRate' + contactRef: + description: Supplier or Customer for the purchase to be associated to. + $ref: '#/components/schemas/ExpenseContactRef' + bankAccountRef: type: object + title: Bank account reference properties: id: - $ref: '#/components/schemas/SourceAccountV2/properties/id' - accountName: - $ref: '#/components/schemas/SourceAccountV2/properties/accountName' - accountType: - $ref: '#/components/schemas/SourceAccountV2/properties/accountType' - accountNumber: - $ref: '#/components/schemas/SourceAccountV2/properties/accountNumber' - routingInfo: - $ref: '#/components/schemas/SourceAccountV2/definitions/routingInfo' - sortCode: - $ref: '#/components/schemas/SourceAccountV2/properties/sortCode' - currency: - $ref: '#/components/schemas/SourceAccount/properties/currency' - balance: - $ref: '#/components/schemas/SourceAccountV2/properties/balance' - modifiedDate: - $ref: '#/components/schemas/SourceAccountV2/properties/modifiedDate' - accountInfo: - $ref: '#/components/schemas/SourceAccountV2/definitions/accountInfo' - required: - - id - - accountName - - accountType - - accountNumber - - currency - - balance - accountInfo: - title: Account Info - type: object - nullable: true - properties: - description: - type: string - nullable: true - description: Description of the account. - nickname: type: string - nullable: true - description: Name given to the account by the user. Used in UIs to assist in account selection. - accountOpenDate: - $ref: '#/components/schemas/SourceAccountV2/properties/feedStartDate' - nullable: true - description: Date when the account was opened or created at the provider - availableBalance: - type: number - format: decimal - nullable: true - description: Balance of funds available for use. This includes pending activity. - sourceAccounts: - title: Source accounts + example: 787dfb37-5707-4dc0-8a86-8d74e4cc78ea + description: Identifier of the bank account. + merchantName: + type: string + description: Name of the merchant where the purchase took place + example: Amazon UK + lines: type: array + description: Array of transaction lines. items: - $ref: '#/components/schemas/SourceAccountV2' - routingInfo: - title: Routing Info - type: object - description: Routing information for the bank. This does not include account number. - properties: - bankCode: - type: string - nullable: true - description: The numeric identifier of the routing number - type: - type: string - nullable: true - default: bankcode - enum: - - rtn - - aba - - swift - - bsb - - iban - - nz2 - - trno - - sortcode - - blz - - ifsc - - bankcode - - apca - - clabe - description: The type of routing number. - examples: - - id: acc-001 - accountName: account-081 - accountType: checking - accountNumber: '12345670' - routingInfo: - bankCode: 021001088 - type: bankcode - currency: GBP - balance: 99.99 - accountInfo: - description: account description 1 - nickname: account 123 - accountOpenDate: '2023-05-06' - availableBalance: 10 - modifiedDate: '2024-08-02T00:00:00.000Z' - status: pending - feedStartDate: '2024-05-01' - - id: acc-002 - accountName: account-083 - accountType: savings - accountNumber: '23456789' - routingInfo: - bankCode: 021001088 - type: bankcode - currency: GBP - balance: 400 - accountInfo: - description: account description 2 - nickname: account 1290 - accountOpenDate: '2023-05-23' - availableBalance: 400 - modifiedDate: '2024-08-02T00:00:00.000Z' - status: pending - feedStartDate: '2024-05-01' - StartUploadSessionRequest: - title: Upload session start request + $ref: '#/components/schemas/ExpenseTransactionLine' + notes: + type: string + description: 'Any private, company notes about the transaction.' + example: 'APPLE.COM/BILL - 09001077498 - Card Ending: 4590' + required: + - type + - issueDate + - currency + UpdateExpenseResponse: + title: Update expense response + x-internal: true type: object properties: - dataType: + syncId: type: string - enum: - - banking-accounts - - banking-transactions - description: A key for a Codat data type. - SupplementalData: - title: Supplemental data + description: Unique identifier for the update expense sync. + example: 1ad0695c-4566-4715-918c-adbb03eac81e + UpdateReimbursableExpenseTransactionRequest: + title: Updating reimbursable expense transaction request type: object - x-internal: true - description: |- - Supplemental data is additional data you can include in our standard data types. - - It is referenced as a configured dynamic key value pair that is unique to the accounting software. [Learn more](https://docs.codat.io/using-the-api/supplemental-data/overview) about supplemental data. properties: - content: - type: object - additionalProperties: - type: object - additionalProperties: true + reference: + type: string nullable: true - ThirdPartySchema: - title: Third-party schema - description: The format should be identical to the file format receieved from the third-party banking source (e.g. Plaid or TrueLayer). - type: object - x-speakeasy-type-override: any - WebLink: - title: Weblink - description: Weblink associated with the company. - type: object - properties: - type: - description: The type of the weblink. + description: User-friendly reference for the reimbursable expense. + contactRef: + $ref: '#/components/schemas/ReimbursementContactRef' + apAccountRef: + $ref: '#/components/schemas/apAccountRef' + issueDate: + $ref: '#/components/schemas/TransferTransactionRequest/properties/date/allOf/1' + description: Date of the transaction was recorded. + dueDate: + description: Date the supplier is due to be paid. + $ref: '#/components/schemas/TransferTransactionRequest/properties/date/allOf/1' + currency: type: string - enum: - - Website - - Social - - Unknown - url: - description: The full URL for the weblink. + example: GBP + description: Currency the transaction was recorded in. + currencyRate: + $ref: '#/components/schemas/ExpenseTransaction/properties/currencyRate' + notes: type: string - format: url - example: - type: Website - url: 'https://codat.io' - parameters: - page: - name: page - in: query - schema: - type: integer - format: int32 - minimum: 1 - example: 1 - default: 1 - description: 'Page number. [Read more](https://docs.codat.io/using-the-api/paging).' - pageSize: - name: pageSize - in: query - schema: - type: integer - format: int32 - default: 100 - example: 100 - minimum: 1 - maximum: 5000 - description: 'Number of records to return in a page. [Read more](https://docs.codat.io/using-the-api/paging).' - query: - name: query - in: query - required: false - schema: - type: string - example: id=e3334455-1aed-4e71-ab43-6bccf12092ee - description: 'Codat query string. [Read more](https://docs.codat.io/using-the-api/querying).' - orderBy: - name: orderBy - in: query - required: false - schema: - type: string - example: '-modifiedDate' - description: 'Field to order results by. [Read more](https://docs.codat.io/using-the-api/ordering-results).' - companyId: - name: companyId - in: path - required: true - schema: + description: 'Any private, company notes about the transaction.' + example: 'APPLE.COM/BILL - 09001077498 - Card Ending: 4590' + lines: + type: array + description: Array of transaction lines. + minItems: 1 + maxItems: 100 + items: + $ref: '#/components/schemas/ReimbursableExpenseTransactionLine' + required: + - contactRef + - issueDate + - dueDate + - currency + UpdateSupplierResponse: + title: Update supplier response + x-internal: true + allOf: + - type: object + properties: + data: + allOf: + - $ref: '#/components/schemas/Supplier' + - deprecated: true + - $ref: '#/components/schemas/PushOperation' + validFor: + title: Valid endpoints + x-internal: true + type: array + description: Supported endpoints for the account. + nullable: false + items: type: string - format: uuid - example: 8a210b68-6988-11ed-a1eb-0242ac120002 - description: Unique identifier for your SMB in Codat. - description: Unique identifier for a company. - connectionId: - name: connectionId - in: path - required: true - schema: + enum: + - expense-transactions.Payment + - expense-transactions.Refund + - expense-transactions.Reward + - expense-transactions.Chargeback + - reimbursable-expense-transactions + - transfer-transactions + - adjustment-transactions + example: expense-transactions.Payment + validTransactionTypes: + title: Valid transaction types + x-internal: true + type: array + description: Supported transaction types for the account. + nullable: false + items: type: string - format: uuid - example: 2e9d2c44-f675-40ba-8049-353bfcb5e171 - description: Unique identifier for a company's data connection. - description: Unique identifier for a connection. - dataType: - name: dataType - description: A key for a Codat data type. - in: path - required: true - schema: - $ref: '#/components/schemas/DataType' - datasetId: - name: datasetId + enum: + - Payment + - Refund + - Reward + - Chargeback + example: Payment + parameters: + syncId: + name: syncId in: path required: true schema: type: string format: uuid - description: Unique identifier for the dataset that completed its sync. - description: Unique identifier for the dataset that completed its sync. - dataIntegrityDataType: - name: dataType + example: 6fb40d5e-b13e-11ed-afa1-0242ac120002 + description: Unique identifier for a sync. + transactionId: + name: transactionId in: path required: true schema: type: string - enum: - - banking-accounts - - banking-transactions - - bankAccounts - - accountTransactions - example: banking-accounts - description: A key for a Codat data type. - reportDate: - name: reportDate - in: query - schema: - type: string - example: 29-09-2020 - description: 'The date in which the report is created up to. Users must specify a specific date, however the response will be provided for the full month.' - reportDateRequired: - name: reportDate - in: query - required: true - schema: - type: string - example: 29-09-2020 - description: 'The date in which the report is created up to. Users must specify a specific date, however the response will be provided for the full month.' - periodLength: - name: periodLength - in: query - required: true - schema: - type: integer - description: The number of months per period. E.g. 2 = 2 months per period. - numberOfPeriods: - name: numberOfPeriods + format: uuid + example: 336694d8-2dca-4cb5-a28d-3ccb83e55eee + description: The unique identifier for your SMB's transaction. + page: + name: page in: query - required: false schema: type: integer - description: 'The number of periods to return. If not provided, 12 periods will be used as the default value.' - numberOfPeriodsRequired: - name: numberOfPeriods + format: int32 + minimum: 1 + example: 1 + default: 1 + description: 'Page number. [Read more](https://docs.codat.io/using-the-api/paging).' + pageSize: + name: pageSize in: query - required: true schema: type: integer - description: The number of periods to return. There will be no pagination as a query parameter. - periodUnit: - name: periodUnit + format: int32 + default: 100 + example: 100 + minimum: 1 + maximum: 5000 + description: 'Number of records to return in a page. [Read more](https://docs.codat.io/using-the-api/paging).' + query: + name: query in: query - required: true + required: false schema: type: string - enum: - - Day - - Week - - Month - - Year - description: The period unit of time returned. - includeDisplayNames: - name: includeDisplayNames - in: query - schema: - type: boolean - description: Shows the dimensionDisplayName and itemDisplayName in measures to make the report data human-readable. - excelReportType: - name: reportType + example: id=e3334455-1aed-4e71-ab43-6bccf12092ee + description: 'Codat query string. [Read more](https://docs.codat.io/using-the-api/querying).' + orderBy: + name: orderBy in: query - schema: - $ref: '#/components/schemas/ExcelStatus/definitions/excelReportTypes' - description: The type of report you want to generate and download. - required: true - accountingAccountId: - name: accountId - in: path - required: true - schema: - type: string - examples: - - 13d946f0-c5d5-42bc-b092-97ece17923ab - - 9wg4lep4ush5cxs79pl8sozmsndbaukll3ind4g7buqbm1h2 - - 7110701885 - - EILBDVJVNUAGVKRQ - description: Unique identifier for an account. - accountingBillPaymentId: - name: billPaymentId - in: path - required: true - schema: - type: string - examples: - - 13d946f0-c5d5-42bc-b092-97ece17923ab - - 9wg4lep4ush5cxs79pl8sozmsndbaukll3ind4g7buqbm1h2 - - 7110701885 - - EILBDVJVNUAGVKRQ - description: Unique identifier for a bill payment. - accountingBillId: - name: billId - in: path - required: true + required: false schema: type: string - examples: - - 13d946f0-c5d5-42bc-b092-97ece17923ab - - 9wg4lep4ush5cxs79pl8sozmsndbaukll3ind4g7buqbm1h2 - - 7110701885 - - EILBDVJVNUAGVKRQ - description: Unique identifier for a bill. - attachmentId: - name: attachmentId + example: '-modifiedDate' + description: 'Field to order results by. [Read more](https://docs.codat.io/using-the-api/ordering-results).' + companyId: + name: companyId in: path required: true schema: type: string format: uuid example: 8a210b68-6988-11ed-a1eb-0242ac120002 - description: Unique identifier for an attachment. - accountingDirectCostId: - name: directCostId - in: path - required: true - schema: - type: string - examples: - - 13d946f0-c5d5-42bc-b092-97ece17923ab - - 9wg4lep4ush5cxs79pl8sozmsndbaukll3ind4g7buqbm1h2 - - 7110701885 - - EILBDVJVNUAGVKRQ - description: Unique identifier for a direct cost. - accountingDirectIncomeId: - name: directIncomeId + description: Unique identifier for your SMB in Codat. + description: Unique identifier for a company. + connectionId: + name: connectionId in: path required: true schema: type: string - examples: - - 13d946f0-c5d5-42bc-b092-97ece17923ab - - 9wg4lep4ush5cxs79pl8sozmsndbaukll3ind4g7buqbm1h2 - - 7110701885 - - EILBDVJVNUAGVKRQ - description: Unique identifier for a direct income. - accountingInvoiceId: - name: invoiceId + format: uuid + example: 2e9d2c44-f675-40ba-8049-353bfcb5e171 + description: Unique identifier for a company's data connection. + description: Unique identifier for a connection. + dataType: + name: dataType + description: The key of a Codat data type in: path required: true schema: - type: string - examples: - - 13d946f0-c5d5-42bc-b092-97ece17923ab - - 9wg4lep4ush5cxs79pl8sozmsndbaukll3ind4g7buqbm1h2 - - 7110701885 - - EILBDVJVNUAGVKRQ - description: Unique identifier for an invoice. - accountingSupplierId: + $ref: '#/components/schemas/DataType' + supplierId: name: supplierId in: path required: true @@ -88814,54 +13262,6 @@ components: - 7110701885 - EILBDVJVNUAGVKRQ description: Unique identifier for a supplier. - accountingReportDate: - name: reportDate - in: query - schema: - type: string - format: date - example: '2022-12-31' - description: Date the report is generated up to. - accountingNumberOfPeriods: - name: numberOfPeriods - in: query - schema: - type: integer - format: int32 - example: 12 - description: Number of periods to include in the report. - accountingPeriodLengthDays: - name: periodLengthDays - in: query - schema: - type: integer - format: int32 - example: 30 - description: The length of period in days. - accountingPeriodLength: - name: periodLength - description: Number of months defining the period of interest. - in: query - required: true - schema: - type: integer - format: int32 - example: 4 - accountingPeriodsToCompare: - name: periodsToCompare - description: Number of periods with `periodLength` to compare. - in: query - required: true - schema: - type: integer - format: int32 - example: 20 - accountingStartMonth: - name: startMonth - in: query - schema: - $ref: '#/components/schemas/DateTime' - description: The month the report starts from. customerId: name: customerId in: path @@ -88895,79 +13295,6 @@ components: type: boolean default: false description: 'When updating data in the destination platform Codat checks the `sourceModifiedDate` against the `lastupdated` date from the accounting software, if they''re different Codat will return an error suggesting you should initiate another pull of the data. If this is set to `true` then the update will override this check.' - pushOperationKey: - name: pushOperationKey - schema: - type: string - format: uuid - in: path - required: true - description: Unique identifier for the push operation. - paymentId: - name: paymentId - in: path - required: true - schema: - type: string - examples: - - 13d946f0-c5d5-42bc-b092-97ece17923ab - - 9wg4lep4ush5cxs79pl8sozmsndbaukll3ind4g7buqbm1h2 - - 7110701885 - - EILBDVJVNUAGVKRQ - description: Unique identifier for a payment. - productId: - name: productId - in: path - required: true - schema: - type: string - examples: - - 13d946f0-c5d5-42bc-b092-97ece17923ab - - 9wg4lep4ush5cxs79pl8sozmsndbaukll3ind4g7buqbm1h2 - - 7110701885 - - EILBDVJVNUAGVKRQ - description: Unique identifier for a product. - path: - name: path - description: The endpoint path of the third-party banking service that the request body originates from. Only required if the source is not `codat`. - in: query - required: false - schema: - type: string - enum: - - auth/get - reportType: - name: reportType - description: The type of the report - in: path - required: true - schema: - type: string - enum: - - categorizedBankStatement - - creditModel - reportId: - name: reportId - description: 'Unique identifier for a report, use either the Id of the report or `latest` for the most recently generate report.' - in: path - required: true - schema: - oneOf: - - type: string - title: ID - format: uuid - example: 8a210b68-6988-11ed-a1eb-0242ac120002 - - type: string - title: Latest - enum: - - latest - maxAge: - description: The maximum age of report to fetch. - name: maxAge - in: query - required: false - schema: - $ref: '#/components/schemas/DateTime' responses: BadRequest: description: The request made is not valid. @@ -88984,15 +13311,6 @@ components: correlationId: bc997528a9d7abb9161ef45f05d38599 canBeRetried: Unknown detailedErrorCode: 0 - ConnectionManagementAllowedOrigins: - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/ConnectionManagementAllowedOrigins' - examples: - Allowed origins: - $ref: '#/components/examples/connectionManagementAllowedOriginsResponse' Malformed-Query: description: Your `query` parameter was not correctly formed content: @@ -89114,8 +13432,8 @@ components: correlationId: bc997528a9d7abb9161ef45f05d38599 canBeRetried: Unknown detailedErrorCode: 0 - Too-Many-Requests: - description: Too many requests were made in a given amount of time. Wait a short period and then try again. + Unprocessable-Content: + description: The requests made can't be processed. This may be due to differences in platform support. content: application/json: schema: @@ -89123,14 +13441,14 @@ components: examples: Conflict: value: - statusCode: 429 - service: PublicApi - error: You have made too many requests in a given amount of time; please retry later. - correlationId: bc997528a9d7abb9161ef45f05d38599 + statusCode: 422 + service: ExpenseSyncApi + error: Expense transaction updates are not supported for platforms other than Xero. + correlationId: 7c8e23841d211c87f49f30b248f70c93 canBeRetried: Unknown detailedErrorCode: 0 - Legal-Reasons: - description: Not currently available due to compliance limitations. Reach out to your Codat contact for further assistance. + Too-Many-Requests: + description: Too many requests were made in a given amount of time. Wait a short period and then try again. content: application/json: schema: @@ -89138,10 +13456,10 @@ components: examples: Conflict: value: - statusCode: 451 - service: StdznCustomData - error: Platform 'qudb' is not currently available for compliance purposes. - correlationId: f63017dabb9b87865573bea95a51e55d + statusCode: 429 + service: PublicApi + error: You have made too many requests in a given amount of time; please retry later. + correlationId: bc997528a9d7abb9161ef45f05d38599 canBeRetried: Unknown detailedErrorCode: 0 Internal-Server-Error: @@ -89174,121 +13492,6 @@ components: correlationId: bc997528a9d7abb9161ef45f05d38599 canBeRetried: Unknown detailedErrorCode: 0 - parameters: - companyId: - name: companyId - in: path - required: true - schema: - $ref: '#/paths/~1companies~1%7BcompanyId%7D~1syncSettings/post/requestBody/content/application~1json/schema/allOf/0/properties/companyId' - description: Unique identifier for a company. - connectionId: - name: connectionId - in: path - required: true - schema: - type: string - format: uuid - example: 2e9d2c44-f675-40ba-8049-353bfcb5e171 - description: Unique identifier for a company's data connection. - description: Unique identifier for a connection. - customDataIdentifier: - name: customDataIdentifier - in: path - required: true - schema: - type: string - example: DynamicsPurchaseOrders - description: Unique identifier for a custom data type. - page: - name: page - in: query - schema: - type: integer - format: int32 - minimum: 1 - example: 1 - default: 1 - description: 'Page number. [Read more](https://docs.codat.io/using-the-api/paging).' - pageSize: - name: pageSize - in: query - schema: - type: integer - format: int32 - default: 100 - example: 100 - minimum: 1 - maximum: 5000 - description: 'Number of records to return in a page. [Read more](https://docs.codat.io/using-the-api/paging).' - productIdentifier: - name: productIdentifier - in: path - required: true - schema: - type: string - examples: - - bank-feeds - - lending - - payables - - expenses - description: Human-readable product identifier for a product. - query: - name: query - in: query - required: false - schema: - type: string - example: id=e3334455-1aed-4e71-ab43-6bccf12092ee - description: 'Codat query string. [Read more](https://docs.codat.io/using-the-api/querying).' - orderBy: - name: orderBy - in: query - required: false - schema: - type: string - example: '-modifiedDate' - description: 'Field to order results by. [Read more](https://docs.codat.io/using-the-api/ordering-results).' - dataType: - name: dataType - description: The key of a Codat data type. - in: path - required: true - schema: - $ref: '#/components/schemas/DataType' - datasetId: - name: datasetId - in: path - required: true - schema: - type: string - format: uuid - description: Unique identifier for the dataset that completed its sync. - description: Unique identifier for the dataset that completed its sync. - platformKey: - name: platformKey - in: path - required: true - schema: - type: string - minLength: 4 - maxLength: 4 - pattern: '[a-z]{4}' - example: gbol - description: 'A unique 4-letter key to represent a platform in each integration. View [accounting](https://docs.codat.io/integrations/accounting/overview#platform-keys), [banking](https://docs.codat.io/integrations/banking/overview#platform-keys), and [commerce](https://docs.codat.io/integrations/commerce/overview#platform-keys) platform keys.' - description: A unique 4-letter key to represent a platform in each integration. - webhookId: - name: webhookId - in: path - required: true - schema: - $ref: '#/components/schemas/WebhookConsumer/properties/id' - description: Unique identifier for the webhook consumer. - examples: - connectionManagementAllowedOriginsResponse: - value: - allowedOrigins: - - 'https://www.bank-of-dave.com' securitySchemes: auth_header: name: Authorization @@ -89296,270 +13499,3 @@ components: type: apiKey in: header x-speakeasy-example: Basic BASE_64_ENCODED(API_KEY) - examples: - CodatBankStatementUploadConfiguration: - value: - source: codat - accountId: abc123-ABC - summary: Settings for uploading codat data - EnhancedCashflowExample: - value: - reportInfo: - pageNumber: 1 - pageSize: 10 - totalResults: 2194 - reportName: Cash flow transactions report - companyName: test - generatedDate: '2023-03-24T16:44:17.5302732Z' - dataSources: - - accounts: - - sourceRef: - sourceType: Banking - platformName: Banking Sandbox - accountProvider: Lloyds Bank - accountName: Business Savings Account - accountType: Debit - currency: GBP - currentBalance: 0 - - sourceRef: - sourceType: Banking - platformName: Banking Sandbox - accountProvider: Lloyds Bank - accountName: Banking - Business Credit Card - accountType: Credit - currency: GBP - currentBalance: 0 - - sourceRef: - sourceType: Banking - platformName: Banking Sandbox - accountProvider: Lloyds Bank - accountName: Business Undeposited Funds - accountType: Debit - currency: GBP - currentBalance: 0 - - sourceRef: - sourceType: Banking - platformName: Banking Sandbox - accountProvider: Lloyds Bank - accountName: Business Current Account - accountType: Debit - currency: GBP - currentBalance: 0 - reportItems: - - transactions: - - sourceRef: - sourceType: Banking - accountRef: - id: 4f78a6b0-e9bb-40f2-82fd-f3a2daa1fd0a - name: Business Current Account - id: ab5e07a0-5578-4d91-8421-2dc72713b74f - date: '2022-11-08T00:00:00' - description: Payment m86SDGpQr3 - amount: -6905.44 - currency: GBP - transactionCategory: - confidence: 52.53 - levels: - - Expense - - Operating - confidences: - - 56 - - 52.53 - platformName: Shopify - counterpartyNames: - - Shopify - modifiedDate: '2022-11-08T12:00:00' - - sourceRef: - sourceType: Banking - accountRef: - id: 4f78a6b0-e9bb-40f2-82fd-f3a2daa1fd0a - name: Business Current Account - id: 9846bbed-46d3-472c-a848-1ce8ebea7213 - date: '2022-11-08T00:00:00' - description: Payment from customer a5c68c7b-6825-46de-bf63-6ad23ef506a4 - amount: 4332.84 - currency: GBP - transactionCategory: - confidence: 88 - levels: - - Expense - confidences: - - 88 - platformName: Amazon - counterpartyNames: - - Amazon - - Amazon Marketplace - modifiedDate: '2022-11-08T12:00:00' - - sourceRef: - sourceType: Banking - accountRef: - id: 809b9470-c9fa-4257-bc9f-06a1dc7b0cbc - name: Business Undeposited Funds - id: 94b213fb-d742-435e-90f1-bfe723a076d5 - date: '2022-11-08T00:00:00' - description: Payment from customer a5c68c7b-6825-46de-bf63-6ad23ef506a4 - amount: 4034.3 - currency: GBP - transactionCategory: - confidence: 61.08 - levels: - - Income - - Revenue - confidences: - - 65 - - 61.08 - platformName: Shopify - counterpartyNames: [] - modifiedDate: '2022-11-08T12:00:00' - - sourceRef: - sourceType: Banking - accountRef: - id: 4f78a6b0-e9bb-40f2-82fd-f3a2daa1fd0a - name: Business Current Account - id: cfceb7ff-eaa2-45b6-aca7-fa0e0b439161 - date: '2022-11-08T00:00:00' - description: Payment to supplier 78792d13-90a0-4ea2-8e07-81c3c893997e - amount: -313.76 - currency: GBP - transactionCategory: - confidence: 40.98 - levels: - - Expense - - CostOfSales - confidences: - - 40.98 - - 99.9 - platformName: Amazon - counterpartyNames: [] - modifiedDate: '2022-11-08T12:00:00' - - sourceRef: - sourceType: Banking - accountRef: - id: 809b9470-c9fa-4257-bc9f-06a1dc7b0cbc - name: Business Undeposited Funds - id: ba814f14-0fe3-41d0-9308-57f40642ac75 - date: '2022-11-08T00:00:00' - description: Payment to supplier 46d2e1fb-b4e9-469c-814a-21ff8105a26e - amount: -614.4 - currency: GBP - transactionCategory: - confidence: 55.84 - levels: - - Income - - Revenue - confidences: - - 55.84 - - 75.5 - platformName: Zettle - counterpartyNames: [] - modifiedDate: '2022-11-08T12:00:00' - - sourceRef: - sourceType: Banking - accountRef: - id: 4f78a6b0-e9bb-40f2-82fd-f3a2daa1fd0a - name: Business Current Account - id: e67cc30e-fd5c-4eea-8365-ec40dfdd3ef6 - date: '2022-11-08T00:00:00' - description: Payment from customer a5c68c7b-6825-46de-bf63-6ad23ef506a4 - amount: 5199.62 - currency: GBP - transactionCategory: - confidence: 57.85 - levels: - - Expense - confidences: - - 57.85 - platformName: Amazon - counterpartyNames: [] - modifiedDate: '2022-11-08T12:00:00' - - sourceRef: - sourceType: Banking - accountRef: - id: 4f78a6b0-e9bb-40f2-82fd-f3a2daa1fd0a - name: Business Current Account - id: e0f08a0b-3575-4dde-98c4-3c854028d2d2 - date: '2022-11-08T00:00:00' - description: Payment to supplier 18ac18dc-945b-4083-9013-e8a100b999fa - amount: -21420.94 - currency: GBP - transactionCategory: - confidence: 70.58 - levels: - - Expense - - Operating - confidences: - - 70.58 - - 100 - platformName: Amazon - counterpartyNames: [] - modifiedDate: '2022-11-08T12:00:00' - - sourceRef: - sourceType: Banking - accountRef: - id: 809b9470-c9fa-4257-bc9f-06a1dc7b0cbc - name: Business Undeposited Funds - id: 4b70d379-8284-4f44-bb37-c7935df950cc - date: '2022-11-08T00:00:00' - description: Payment to supplier 630a3f16-5f01-4986-ae6b-82333ec49449 - amount: -30924.22 - currency: GBP - transactionCategory: - confidence: 48.26 - levels: - - Income - confidences: - - 48.26 - platformName: DoorDash - counterpartyNames: [] - modifiedDate: '2022-11-08T12:00:00' - - sourceRef: - sourceType: Banking - accountRef: - id: 809b9470-c9fa-4257-bc9f-06a1dc7b0cbc - name: Business Undeposited Funds - id: 76b73373-9345-472e-8edf-5be849d797fe - date: '2022-11-08T00:00:00' - description: Payment to supplier bQATU4eSb9 - amount: -568.78 - currency: GBP - transactionCategory: - confidence: 65.21 - levels: - - Income - - Revenue - confidences: - - 65.21 - - 100 - platformName: Uber - counterpartyNames: - - Uber - modifiedDate: '2022-11-08T12:00:00' - - sourceRef: - sourceType: Banking - accountRef: - id: 809b9470-c9fa-4257-bc9f-06a1dc7b0cbc - name: Business Undeposited Funds - id: ee92fd6f-e0f7-4391-85fd-4b50921b973f - date: '2022-11-08T00:00:00' - description: Payment to supplier 9c37eb21-579a-4886-8296-3a853076b7bd - amount: -13050.79 - currency: GBP - transactionCategory: - confidence: 92.33 - levels: - - Income - - Revenue - confidences: - - 92.33 - - 92.33 - platformName: DoorDash - counterpartyNames: - - DoorDash - modifiedDate: '2022-11-08T12:00:00' - SingleReportExample: - value: - id: 6e9bae88-72c9-45ae-abe8-41fbf2871458 - status: InProgress - type: categorizedBankStatement - requestedDate: '2024-09-27T04:43:41Z' - updatedDate: '2024-10-01T14:41:46Z' diff --git a/.speakeasy/logs/changes/old.openapi.yaml b/.speakeasy/logs/changes/old.openapi.yaml index 37c0d1c85..7a8bc7ccf 100644 --- a/.speakeasy/logs/changes/old.openapi.yaml +++ b/.speakeasy/logs/changes/old.openapi.yaml @@ -1,22 +1,23 @@ openapi: 3.1.0 -x-stoplight: - id: 466k6ayziv9at -servers: - - description: Production - url: 'https://api.codat.io' info: - title: Platform API - version: 3.0.0 - summary: Platform API - description: "An API for the common components of all of Codat's products.\n\nThese end points cover creating and managing your companies, data connections, and integrations.\n\n[Read about the building blocks of Codat...](https://docs.codat.io/core-concepts/companies) | [See our OpenAPI spec](https://github.com/codatio/oas) \n\n---\n\n## Endpoints\n\n| Endpoints | Description |\n| :- |:- |\n| Companies | Create and manage your SMB users' companies. |\n| Connections | Create new and manage existing data connections for a company. |\n| Connection management | Configure connection management UI and retrieve access tokens for authentication. |\n| Webhooks | Create and manage webhooks that listen to Codat's events. |\n| Integrations | Get a list of integrations supported by Codat and their logos. |\n| Refresh data | Initiate data refreshes, view pull status and history. |\n| Settings | Manage company profile configuration, sync settings, and API keys. |\n| Push data | Initiate and monitor Create, Update, and Delete operations. |\n| Supplemental data | Configure and pull additional data you can include in Codat's standard data types. |\n| Custom data type | Configure and pull additional data types that are not included in Codat's standardized data model. |\n" - title: Lending + title: Sync for Expenses + version: prealpha + contact: + name: Codat + url: 'https://www.codat.io/' + email: expenses@codat.io 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 API for Sync for Expenses. + + Sync for Expenses is an API and a set of supporting tools. It has been built to + enable corporate card and expense management platforms to provide high-quality + integrations with multiple accounting software through a standardized API. - 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 product](https://docs.codat.io/sync-for-expenses/overview) | [See our OpenAPI spec](https://github.com/codatio/oas) - [Explore solution](https://docs.codat.io/lending/overview) | [See OpenAPI spec](https://github.com/codatio/oas) + Not seeing the endpoints you're expecting? We've [reorganized our products](https://docs.codat.io/updates/230901-new-products), and you may be using a [different version of Sync for Expenses](https://docs.codat.io/sync-for-expenses-v1-api#/). + --- ## Endpoints @@ -24,24 +25,19 @@ info: | :- |:- | | 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. | + | Configuration | View and manage mapping configuration and defaults for expense transactions. | + | Sync | Monitor the status of data syncs. | + | Expenses | Create and update transactions that represent your customers' spend. | + | Transfers | Create and update transactions that represent the movement of your customers' money. | + | Reimbursements | Create and update transactions that represent your customers' repayable spend. | + | Attachments | Attach receipts to a transaction for a complete audit trail. | + | Transaction status | Monitor the status of individual transactions in data syncs. | + | Manage data | Control and monitor the retrieval of data from an integration. | + | Push operations | View historic push operations. | + | Accounts | Create accounts and view account schemas. | + | Customers | Get, create, and update customers. | + | Suppliers | Get, create, and update suppliers. | - version: 3.0.0 - contact: - name: Codat - email: support@codat.io termsOfService: 'https://www.codat.io/legals/' security: - auth_header: [] @@ -82,8 +78,7 @@ x-speakeasy-name-override: methodNameOverride: download-attachment - operationId: ^upload-.*?-attachment methodNameOverride: upload-attachment -x-codat-docs-path: platform-api -x-codat-docs-path: lending-api +x-codat-docs-path: sync-for-expenses-api x-codat-keep-docs-paths-local: true x-codat-speakeasy-pagination: type: offsetLimit @@ -96,58 +91,42 @@ x-codat-speakeasy-pagination: tags: - name: Companies description: Create and manage your SMB users' companies. - - name: Connection management - description: Configure UI and retrieve access tokens for authentication used by **Connections SDK**. - - name: Connections - description: Create new and manage existing data connections for a company. - - name: Webhooks - description: Create and manage webhooks that listen to Codat's events. - - name: Integrations - description: Get a list of integrations supported by Codat and their logos. - - name: Refresh data - description: 'Initiate data refreshes, view pull status and history.' - - name: Settings - description: 'Manage company profile configuration, sync settings, and API keys.' - - name: Push data - description: 'Initiate and monitor Create, Update, and Delete operations.' - - name: Supplemental data - description: Configure and pull additional data you can include in Codat's standard data types. - - name: Custom data type - description: Configure and pull additional data types that are not included in Codat's standardized data model. - name: Connections description: Create new and manage existing data connections for a company. - - name: Bank statements - description: Retrieve banking data from linked bank accounts. - - name: Sales - description: Retrieve standardized sales data from a linked commerce software. - - name: Financial statements - description: Financial data and reports from a linked accounting software. - - name: Liabilities - description: Debt and other liabilities. - - name: Accounts payable - description: Data from a linked accounting software representing money the business owes money to its suppliers. - - name: Accounts receivable - description: Data from a linked accounting software representing money owed to the business for sold goods or services. - - name: Accounting bank data - description: Access bank transactions from an accounting software. - - name: Transactions - description: Data from a linked accounting software representing transactions. - name: Company info - description: View company information fetched from the source platform. - - name: Data integrity - description: Match mutable accounting data with immutable banking data to increase confidence in financial data. - - name: Excel reports - description: Download reports in Excel format. + description: View the company information of your customers' linked accounting software. - name: Manage data - description: Control how data is retrieved from an integration. - - name: File upload - description: Endpoints to manage uploaded files. - - name: Loan writeback - description: '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.' - - name: Manage reports - description: Generate and review generated reports for a company. - - name: Financial summary - description: 'View financial summary information for a company, including credit model reports and accounting score.' + description: Control and monitor the retrieval of data from an integration. + - name: Mapping options + description: 'Get accounts, trackingCategories and taxRates that can be used in your create and update requests.' + - name: Accounts + description: Create accounts and view create account options. + - name: Bank accounts + description: Create bank accounts and view create bank account options. + - name: Customers + description: 'Get, create, and update customers.' + - name: Suppliers + description: 'Get, create, and update suppliers.' + - name: Push operations + description: View historic push operations. + - name: Configuration + description: View and manage mapping configuration and defaults for expense transactions. + - name: Expenses + description: Create and update transactions that represent your customers' spend. + - name: Reimbursements + description: Create and update transactions that represent your customers' repayable spend. + - name: Transfers + description: Create and update transactions that represent the movement of your customers' money. + - name: Adjustments + description: Create transactions that represent your adjustments to your customers' spend. + - name: Attachments + description: Attach receipts to a transaction for a complete audit trail. + - name: Sync + description: Monitor the status of data syncs. + - name: Transaction status + description: Monitor the status of individual transactions in data syncs. +servers: + - url: 'https://api.codat.io' paths: /companies: get: @@ -184,11 +163,6 @@ paths: sourceType: Accounting created: '2022-01-01T11:30:00Z' createdByUserName: Mike Smith - products: - - spend-insights - - lending - - expenses-v1 - - commerce referenceSubsidiaryCompanies: [] pageNumber: 1 pageSize: 100 @@ -220,10 +194,6 @@ paths: sourceType: Accounting created: '2022-01-01T11:30:00Z' createdByUserName: Joe Bloggs - products: - - spend-insights - - lending - - payables-v2 referenceSubsidiaryCompanies: [] - id: ab12c58d-a678-4ebf-a159-ae99e1807bd0 name: Toft stores @@ -231,8 +201,6 @@ paths: dataConnections: [] created: '2022-11-10T10:45:18Z' createdByUserName: Dan Tzabar - products: - - spend-insights referenceSubsidiaryCompanies: - id: c8d3af58-7011-47ce-b3f2-89faf300ef6d name: Toft stores UK @@ -258,10 +226,6 @@ paths: sourceType: Accounting created: '2022-11-10T10:45:18Z' createdByUserName: Dan Tzabar - products: - - lending - - spend-insights - - payables referenceParentCompany: id: ab12c58d-a678-4ebf-a159-ae99e1807bd0 name: Toft stores @@ -284,8 +248,6 @@ paths: sourceType: Accounting created: '2022-11-10T10:45:18Z' createdByUserName: Dan Tzabar - products: - - spend-insights referenceParentCompany: id: ab12c58d-a678-4ebf-a159-ae99e1807bd0 name: Toft stores @@ -317,19 +279,12 @@ paths: '503': $ref: '#/components/responses/Service-Unavailable' operationId: list-companies - description: "\uFEFF\x54\x68\x65\x20\x2A\x4C\x69\x73\x74\x20\x63\x6F\x6D\x70\x61\x6E\x69\x65\x73\x2A\x20\x65\x6E\x64\x70\x6F\x69\x6E\x74\x20\x72\x65\x74\x75\x72\x6E\x73\x20\x61\x20\x6C\x69\x73\x74\x20\x6F\x66\x20\x5B\x63\x6F\x6D\x70\x61\x6E\x69\x65\x73\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x70\x6C\x61\x74\x66\x6F\x72\x6D\x2D\x61\x70\x69\x23\x2F\x73\x63\x68\x65\x6D\x61\x73\x2F\x43\x6F\x6D\x70\x61\x6E\x79\x29\x20\x61\x73\x73\x6F\x63\x69\x61\x74\x65\x64\x20\x74\x6F\x20\x79\x6F\x75\x72\x20\x69\x6E\x73\x74\x61\x6E\x63\x65\x73\x2E\n\n\x41\x20\x5B\x63\x6F\x6D\x70\x61\x6E\x79\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x70\x6C\x61\x74\x66\x6F\x72\x6D\x2D\x61\x70\x69\x23\x2F\x73\x63\x68\x65\x6D\x61\x73\x2F\x43\x6F\x6D\x70\x61\x6E\x79\x29\x20\x72\x65\x70\x72\x65\x73\x65\x6E\x74\x73\x20\x61\x20\x62\x75\x73\x69\x6E\x65\x73\x73\x20\x73\x68\x61\x72\x69\x6E\x67\x20\x61\x63\x63\x65\x73\x73\x20\x74\x6F\x20\x74\x68\x65\x69\x72\x20\x64\x61\x74\x61\x2E\n\x45\x61\x63\x68\x20\x63\x6F\x6D\x70\x61\x6E\x79\x20\x63\x61\x6E\x20\x68\x61\x76\x65\x20\x6D\x75\x6C\x74\x69\x70\x6C\x65\x20\x5B\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x73\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x70\x6C\x61\x74\x66\x6F\x72\x6D\x2D\x61\x70\x69\x23\x2F\x73\x63\x68\x65\x6D\x61\x73\x2F\x43\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x29\x20\x74\x6F\x20\x64\x69\x66\x66\x65\x72\x65\x6E\x74\x20\x64\x61\x74\x61\x20\x73\x6F\x75\x72\x63\x65\x73\x2C\x20\x73\x75\x63\x68\x20\x61\x73\x20\x6F\x6E\x65\x20\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x20\x74\x6F\x20\x58\x65\x72\x6F\x20\x66\x6F\x72\x20\x61\x63\x63\x6F\x75\x6E\x74\x69\x6E\x67\x20\x64\x61\x74\x61\x2C\x20\x74\x77\x6F\x20\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x73\x20\x74\x6F\x20\x50\x6C\x61\x69\x64\x20\x66\x6F\x72\x20\x74\x77\x6F\x20\x62\x61\x6E\x6B\x20\x61\x63\x63\x6F\x75\x6E\x74\x73\x2C\x20\x61\x6E\x64\x20\x61\x20\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x20\x74\x6F\x20\x5A\x65\x74\x74\x6C\x65\x20\x66\x6F\x72\x20\x50\x4F\x53\x20\x64\x61\x74\x61\x2E\n\n\x23\x23\x20\x46\x69\x6C\x74\x65\x72\x20\x62\x79\x20\x74\x61\x67\x73\n\n\x54\x68\x65\x20\x2A\x4C\x69\x73\x74\x20\x63\x6F\x6D\x70\x61\x6E\x69\x65\x73\x2A\x20\x65\x6E\x64\x70\x6F\x69\x6E\x74\x20\x73\x75\x70\x70\x6F\x72\x74\x73\x20\x74\x68\x65\x20\x66\x69\x6C\x74\x65\x72\x69\x6E\x67\x20\x6F\x66\x20\x63\x6F\x6D\x70\x61\x6E\x69\x65\x73\x20\x75\x73\x69\x6E\x67\x20\x5B\x74\x61\x67\x73\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x75\x73\x69\x6E\x67\x2D\x74\x68\x65\x2D\x61\x70\x69\x2F\x6D\x61\x6E\x61\x67\x69\x6E\x67\x2D\x63\x6F\x6D\x70\x61\x6E\x69\x65\x73\x23\x61\x64\x64\x2D\x6D\x65\x74\x61\x64\x61\x74\x61\x2D\x74\x6F\x2D\x61\x2D\x63\x6F\x6D\x70\x61\x6E\x79\x29\x2E\x20\x49\x74\x20\x73\x75\x70\x70\x6F\x72\x74\x73\x20\x74\x68\x65\x20\x66\x6F\x6C\x6C\x6F\x77\x69\x6E\x67\x20\x6F\x70\x65\x72\x61\x74\x6F\x72\x73\x20\x77\x69\x74\x68\x20\x5B\x43\x6F\x64\x61\x74\u2019\x73\x20\x71\x75\x65\x72\x79\x20\x6C\x61\x6E\x67\x75\x61\x67\x65\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x75\x73\x69\x6E\x67\x2D\x74\x68\x65\x2D\x61\x70\x69\x2F\x71\x75\x65\x72\x79\x69\x6E\x67\x29\x3A\n\n\x2D\x20\x65\x71\x75\x61\x6C\x73\x20\x28\x60\x3D\x60\x29\n\x2D\x20\x6E\x6F\x74\x20\x65\x71\x75\x61\x6C\x73\x20\x28\x60\x21\x3D\x60\x29\n\x2D\x20\x63\x6F\x6E\x74\x61\x69\x6E\x73\x20\x28\x60\x7E\x60\x29\n\n\x46\x6F\x72\x20\x65\x78\x61\x6D\x70\x6C\x65\x2C\x20\x79\x6F\x75\x20\x63\x61\x6E\x20\x75\x73\x65\x20\x74\x68\x65\x20\x71\x75\x65\x72\x79\x69\x6E\x67\x20\x74\x6F\x20\x66\x69\x6C\x74\x65\x72\x20\x63\x6F\x6D\x70\x61\x6E\x69\x65\x73\x20\x74\x61\x67\x67\x65\x64\x20\x77\x69\x74\x68\x20\x61\x20\x73\x70\x65\x63\x69\x66\x69\x63\x20\x66\x6F\x72\x65\x69\x67\x6E\x20\x6B\x65\x79\x2C\x20\x72\x65\x67\x69\x6F\x6E\x2C\x20\x6F\x72\x20\x6F\x77\x6E\x69\x6E\x67\x20\x74\x65\x61\x6D\x3A\x20\n\x2D\x20\x46\x6F\x72\x65\x69\x67\x6E\x20\x6B\x65\x79\x3A\x20\x60\x75\x69\x64\x20\x3D\x20\x7B\x79\x6F\x75\x72\x43\x75\x73\x74\x6F\x6D\x65\x72\x49\x64\x7D\x60\n\x2D\x20\x52\x65\x67\x69\x6F\x6E\x3A\x20\x60\x72\x65\x67\x69\x6F\x6E\x20\x21\x3D\x20\x75\x6B\x60\n\x2D\x20\x4F\x77\x6E\x69\x6E\x67\x20\x74\x65\x61\x6D\x20\x61\x6E\x64\x20\x72\x65\x67\x69\x6F\x6E\x3A\x20\x60\x72\x65\x67\x69\x6F\x6E\x20\x3D\x20\x75\x6B\x20\x26\x26\x20\x6F\x77\x6E\x69\x6E\x67\x54\x65\x61\x6D\x20\x3D\x20\x69\x6E\x76\x6F\x69\x63\x65\x2D\x66\x69\x6E\x61\x6E\x63\x65\x60" - description: "\uFEFF\x54\x68\x65\x20\x2A\x4C\x69\x73\x74\x20\x63\x6F\x6D\x70\x61\x6E\x69\x65\x73\x2A\x20\x65\x6E\x64\x70\x6F\x69\x6E\x74\x20\x72\x65\x74\x75\x72\x6E\x73\x20\x61\x20\x6C\x69\x73\x74\x20\x6F\x66\x20\x5B\x63\x6F\x6D\x70\x61\x6E\x69\x65\x73\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x6C\x65\x6E\x64\x69\x6E\x67\x2D\x61\x70\x69\x23\x2F\x73\x63\x68\x65\x6D\x61\x73\x2F\x43\x6F\x6D\x70\x61\x6E\x79\x29\x20\x61\x73\x73\x6F\x63\x69\x61\x74\x65\x64\x20\x74\x6F\x20\x79\x6F\x75\x72\x20\x69\x6E\x73\x74\x61\x6E\x63\x65\x73\x2E\n\n\x41\x20\x5B\x63\x6F\x6D\x70\x61\x6E\x79\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x6C\x65\x6E\x64\x69\x6E\x67\x2D\x61\x70\x69\x23\x2F\x73\x63\x68\x65\x6D\x61\x73\x2F\x43\x6F\x6D\x70\x61\x6E\x79\x29\x20\x72\x65\x70\x72\x65\x73\x65\x6E\x74\x73\x20\x61\x20\x62\x75\x73\x69\x6E\x65\x73\x73\x20\x73\x68\x61\x72\x69\x6E\x67\x20\x61\x63\x63\x65\x73\x73\x20\x74\x6F\x20\x74\x68\x65\x69\x72\x20\x64\x61\x74\x61\x2E\n\x45\x61\x63\x68\x20\x63\x6F\x6D\x70\x61\x6E\x79\x20\x63\x61\x6E\x20\x68\x61\x76\x65\x20\x6D\x75\x6C\x74\x69\x70\x6C\x65\x20\x5B\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x73\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x6C\x65\x6E\x64\x69\x6E\x67\x2D\x61\x70\x69\x23\x2F\x73\x63\x68\x65\x6D\x61\x73\x2F\x43\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x29\x20\x74\x6F\x20\x64\x69\x66\x66\x65\x72\x65\x6E\x74\x20\x64\x61\x74\x61\x20\x73\x6F\x75\x72\x63\x65\x73\x2C\x20\x73\x75\x63\x68\x20\x61\x73\x20\x6F\x6E\x65\x20\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x20\x74\x6F\x20\x58\x65\x72\x6F\x20\x66\x6F\x72\x20\x61\x63\x63\x6F\x75\x6E\x74\x69\x6E\x67\x20\x64\x61\x74\x61\x2C\x20\x74\x77\x6F\x20\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x73\x20\x74\x6F\x20\x50\x6C\x61\x69\x64\x20\x66\x6F\x72\x20\x74\x77\x6F\x20\x62\x61\x6E\x6B\x20\x61\x63\x63\x6F\x75\x6E\x74\x73\x2C\x20\x61\x6E\x64\x20\x61\x20\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x20\x74\x6F\x20\x5A\x65\x74\x74\x6C\x65\x20\x66\x6F\x72\x20\x50\x4F\x53\x20\x64\x61\x74\x61\x2E\n\n\x23\x23\x20\x46\x69\x6C\x74\x65\x72\x20\x62\x79\x20\x74\x61\x67\x73\n\n\x54\x68\x65\x20\x2A\x4C\x69\x73\x74\x20\x63\x6F\x6D\x70\x61\x6E\x69\x65\x73\x2A\x20\x65\x6E\x64\x70\x6F\x69\x6E\x74\x20\x73\x75\x70\x70\x6F\x72\x74\x73\x20\x74\x68\x65\x20\x66\x69\x6C\x74\x65\x72\x69\x6E\x67\x20\x6F\x66\x20\x63\x6F\x6D\x70\x61\x6E\x69\x65\x73\x20\x75\x73\x69\x6E\x67\x20\x5B\x74\x61\x67\x73\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x75\x73\x69\x6E\x67\x2D\x74\x68\x65\x2D\x61\x70\x69\x2F\x6D\x61\x6E\x61\x67\x69\x6E\x67\x2D\x63\x6F\x6D\x70\x61\x6E\x69\x65\x73\x23\x61\x64\x64\x2D\x6D\x65\x74\x61\x64\x61\x74\x61\x2D\x74\x6F\x2D\x61\x2D\x63\x6F\x6D\x70\x61\x6E\x79\x29\x2E\x20\x49\x74\x20\x73\x75\x70\x70\x6F\x72\x74\x73\x20\x74\x68\x65\x20\x66\x6F\x6C\x6C\x6F\x77\x69\x6E\x67\x20\x6F\x70\x65\x72\x61\x74\x6F\x72\x73\x20\x77\x69\x74\x68\x20\x5B\x43\x6F\x64\x61\x74\u2019\x73\x20\x71\x75\x65\x72\x79\x20\x6C\x61\x6E\x67\x75\x61\x67\x65\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x75\x73\x69\x6E\x67\x2D\x74\x68\x65\x2D\x61\x70\x69\x2F\x71\x75\x65\x72\x79\x69\x6E\x67\x29\x3A\n\n\x2D\x20\x65\x71\x75\x61\x6C\x73\x20\x28\x60\x3D\x60\x29\n\x2D\x20\x6E\x6F\x74\x20\x65\x71\x75\x61\x6C\x73\x20\x28\x60\x21\x3D\x60\x29\n\x2D\x20\x63\x6F\x6E\x74\x61\x69\x6E\x73\x20\x28\x60\x7E\x60\x29\n\n\x46\x6F\x72\x20\x65\x78\x61\x6D\x70\x6C\x65\x2C\x20\x79\x6F\x75\x20\x63\x61\x6E\x20\x75\x73\x65\x20\x74\x68\x65\x20\x71\x75\x65\x72\x79\x69\x6E\x67\x20\x74\x6F\x20\x66\x69\x6C\x74\x65\x72\x20\x63\x6F\x6D\x70\x61\x6E\x69\x65\x73\x20\x74\x61\x67\x67\x65\x64\x20\x77\x69\x74\x68\x20\x61\x20\x73\x70\x65\x63\x69\x66\x69\x63\x20\x66\x6F\x72\x65\x69\x67\x6E\x20\x6B\x65\x79\x2C\x20\x72\x65\x67\x69\x6F\x6E\x2C\x20\x6F\x72\x20\x6F\x77\x6E\x69\x6E\x67\x20\x74\x65\x61\x6D\x3A\x20\n\x2D\x20\x46\x6F\x72\x65\x69\x67\x6E\x20\x6B\x65\x79\x3A\x20\x60\x75\x69\x64\x20\x3D\x20\x7B\x79\x6F\x75\x72\x43\x75\x73\x74\x6F\x6D\x65\x72\x49\x64\x7D\x60\n\x2D\x20\x52\x65\x67\x69\x6F\x6E\x3A\x20\x60\x72\x65\x67\x69\x6F\x6E\x20\x21\x3D\x20\x75\x6B\x60\n\x2D\x20\x4F\x77\x6E\x69\x6E\x67\x20\x74\x65\x61\x6D\x20\x61\x6E\x64\x20\x72\x65\x67\x69\x6F\x6E\x3A\x20\x60\x72\x65\x67\x69\x6F\x6E\x20\x3D\x20\x75\x6B\x20\x26\x26\x20\x6F\x77\x6E\x69\x6E\x67\x54\x65\x61\x6D\x20\x3D\x20\x69\x6E\x76\x6F\x69\x63\x65\x2D\x66\x69\x6E\x61\x6E\x63\x65\x60" + description: "\uFEFF\x54\x68\x65\x20\x2A\x4C\x69\x73\x74\x20\x63\x6F\x6D\x70\x61\x6E\x69\x65\x73\x2A\x20\x65\x6E\x64\x70\x6F\x69\x6E\x74\x20\x72\x65\x74\x75\x72\x6E\x73\x20\x61\x20\x6C\x69\x73\x74\x20\x6F\x66\x20\x5B\x63\x6F\x6D\x70\x61\x6E\x69\x65\x73\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x73\x79\x6E\x63\x2D\x66\x6F\x72\x2D\x65\x78\x70\x65\x6E\x73\x65\x73\x2D\x61\x70\x69\x23\x2F\x73\x63\x68\x65\x6D\x61\x73\x2F\x43\x6F\x6D\x70\x61\x6E\x79\x29\x20\x61\x73\x73\x6F\x63\x69\x61\x74\x65\x64\x20\x74\x6F\x20\x79\x6F\x75\x72\x20\x69\x6E\x73\x74\x61\x6E\x63\x65\x73\x2E\n\n\x41\x20\x5B\x63\x6F\x6D\x70\x61\x6E\x79\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x73\x79\x6E\x63\x2D\x66\x6F\x72\x2D\x65\x78\x70\x65\x6E\x73\x65\x73\x2D\x61\x70\x69\x23\x2F\x73\x63\x68\x65\x6D\x61\x73\x2F\x43\x6F\x6D\x70\x61\x6E\x79\x29\x20\x72\x65\x70\x72\x65\x73\x65\x6E\x74\x73\x20\x61\x20\x62\x75\x73\x69\x6E\x65\x73\x73\x20\x73\x68\x61\x72\x69\x6E\x67\x20\x61\x63\x63\x65\x73\x73\x20\x74\x6F\x20\x74\x68\x65\x69\x72\x20\x64\x61\x74\x61\x2E\n\x45\x61\x63\x68\x20\x63\x6F\x6D\x70\x61\x6E\x79\x20\x63\x61\x6E\x20\x68\x61\x76\x65\x20\x6D\x75\x6C\x74\x69\x70\x6C\x65\x20\x5B\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x73\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x73\x79\x6E\x63\x2D\x66\x6F\x72\x2D\x65\x78\x70\x65\x6E\x73\x65\x73\x2D\x61\x70\x69\x23\x2F\x73\x63\x68\x65\x6D\x61\x73\x2F\x43\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x29\x20\x74\x6F\x20\x64\x69\x66\x66\x65\x72\x65\x6E\x74\x20\x64\x61\x74\x61\x20\x73\x6F\x75\x72\x63\x65\x73\x2C\x20\x73\x75\x63\x68\x20\x61\x73\x20\x6F\x6E\x65\x20\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x20\x74\x6F\x20\x58\x65\x72\x6F\x20\x66\x6F\x72\x20\x61\x63\x63\x6F\x75\x6E\x74\x69\x6E\x67\x20\x64\x61\x74\x61\x2C\x20\x74\x77\x6F\x20\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x73\x20\x74\x6F\x20\x50\x6C\x61\x69\x64\x20\x66\x6F\x72\x20\x74\x77\x6F\x20\x62\x61\x6E\x6B\x20\x61\x63\x63\x6F\x75\x6E\x74\x73\x2C\x20\x61\x6E\x64\x20\x61\x20\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x20\x74\x6F\x20\x5A\x65\x74\x74\x6C\x65\x20\x66\x6F\x72\x20\x50\x4F\x53\x20\x64\x61\x74\x61\x2E" parameters: - $ref: '#/components/parameters/page' - $ref: '#/components/parameters/pageSize' - $ref: '#/components/parameters/query' - $ref: '#/components/parameters/orderBy' - - name: tags - in: query - schema: - type: string - example: region=uk && team=invoice-finance - description: 'Filter companies by tags using the "equals" (=), "not equals" (!=), and "contains" (~) operators with [Codat’s query language](https://docs.codat.io/using-the-api/querying).' post: summary: Create company tags: @@ -354,8 +309,6 @@ paths: dataConnections: [] created: '2022-11-10T10:45:18.1950523Z' createdByUserName: Dan Tzabar - products: - - spend-insights referenceSubsidiaryCompanies: [] With a description: value: @@ -367,8 +320,6 @@ paths: dataConnections: [] created: '2022-11-10T10:45:18.1950523Z' createdByUserName: Dan Tzabar - products: - - spend-insights referenceSubsidiaryCompanies: [] With a tag: value: @@ -380,13 +331,10 @@ paths: dataConnections: [] created: '2022-11-10T10:45:18.1950523Z' createdByUserName: Dan Tzabar - products: - - spend-insights tags: region: us referenceSubsidiaryCompanies: [] '400': - $ref: '#/components/responses/Bad-Request' $ref: '#/components/responses/BadRequest' '401': $ref: '#/components/responses/Unauthorized' @@ -400,8 +348,7 @@ paths: $ref: '#/components/responses/Internal-Server-Error' '503': $ref: '#/components/responses/Service-Unavailable' - description: "\uFEFF\x55\x73\x65\x20\x74\x68\x65\x20\x2A\x43\x72\x65\x61\x74\x65\x20\x63\x6F\x6D\x70\x61\x6E\x79\x2A\x20\x65\x6E\x64\x70\x6F\x69\x6E\x74\x20\x74\x6F\x20\x63\x72\x65\x61\x74\x65\x20\x61\x20\x6E\x65\x77\x20\x5B\x63\x6F\x6D\x70\x61\x6E\x79\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x70\x6C\x61\x74\x66\x6F\x72\x6D\x2D\x61\x70\x69\x23\x2F\x73\x63\x68\x65\x6D\x61\x73\x2F\x43\x6F\x6D\x70\x61\x6E\x79\x29\x20\x74\x68\x61\x74\x20\x72\x65\x70\x72\x65\x73\x65\x6E\x74\x73\x20\x79\x6F\x75\x72\x20\x63\x75\x73\x74\x6F\x6D\x65\x72\x20\x69\x6E\x20\x43\x6F\x64\x61\x74\x2E\x20\n\n\x41\x20\x5B\x63\x6F\x6D\x70\x61\x6E\x79\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x70\x6C\x61\x74\x66\x6F\x72\x6D\x2D\x61\x70\x69\x23\x2F\x73\x63\x68\x65\x6D\x61\x73\x2F\x43\x6F\x6D\x70\x61\x6E\x79\x29\x20\x72\x65\x70\x72\x65\x73\x65\x6E\x74\x73\x20\x61\x20\x62\x75\x73\x69\x6E\x65\x73\x73\x20\x73\x68\x61\x72\x69\x6E\x67\x20\x61\x63\x63\x65\x73\x73\x20\x74\x6F\x20\x74\x68\x65\x69\x72\x20\x64\x61\x74\x61\x2E\n\x45\x61\x63\x68\x20\x63\x6F\x6D\x70\x61\x6E\x79\x20\x63\x61\x6E\x20\x68\x61\x76\x65\x20\x6D\x75\x6C\x74\x69\x70\x6C\x65\x20\x5B\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x73\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x70\x6C\x61\x74\x66\x6F\x72\x6D\x2D\x61\x70\x69\x23\x2F\x73\x63\x68\x65\x6D\x61\x73\x2F\x43\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x29\x20\x74\x6F\x20\x64\x69\x66\x66\x65\x72\x65\x6E\x74\x20\x64\x61\x74\x61\x20\x73\x6F\x75\x72\x63\x65\x73\x2C\x20\x73\x75\x63\x68\x20\x61\x73\x20\x6F\x6E\x65\x20\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x20\x74\x6F\x20\x58\x65\x72\x6F\x20\x66\x6F\x72\x20\x61\x63\x63\x6F\x75\x6E\x74\x69\x6E\x67\x20\x64\x61\x74\x61\x2C\x20\x74\x77\x6F\x20\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x73\x20\x74\x6F\x20\x50\x6C\x61\x69\x64\x20\x66\x6F\x72\x20\x74\x77\x6F\x20\x62\x61\x6E\x6B\x20\x61\x63\x63\x6F\x75\x6E\x74\x73\x2C\x20\x61\x6E\x64\x20\x61\x20\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x20\x74\x6F\x20\x5A\x65\x74\x74\x6C\x65\x20\x66\x6F\x72\x20\x50\x4F\x53\x20\x64\x61\x74\x61\x2E\n\n\x49\x66\x20\x66\x6F\x72\x62\x69\x64\x64\x65\x6E\x20\x63\x68\x61\x72\x61\x63\x74\x65\x72\x73\x20\x28\x73\x65\x65\x20\x60\x6E\x61\x6D\x65\x60\x20\x70\x61\x74\x74\x65\x72\x6E\x29\x20\x61\x72\x65\x20\x70\x72\x65\x73\x65\x6E\x74\x20\x69\x6E\x20\x74\x68\x65\x20\x72\x65\x71\x75\x65\x73\x74\x2C\x20\x61\x20\x63\x6F\x6D\x70\x61\x6E\x79\x20\x77\x69\x6C\x6C\x20\x62\x65\x20\x63\x72\x65\x61\x74\x65\x64\x20\x77\x69\x74\x68\x20\x74\x68\x65\x20\x66\x6F\x72\x62\x69\x64\x64\x65\x6E\x20\x63\x68\x61\x72\x61\x63\x74\x65\x72\x73\x20\x72\x65\x6D\x6F\x76\x65\x64\x2E\x20\x46\x6F\x72\x20\x65\x78\x61\x6D\x70\x6C\x65\x2C\x20\x60\x43\x6F\x6D\x70\x61\x6E\x79\x20\x28\x43\x6F\x64\x61\x74\x5B\x31\x5D\x29\x60\x20\x77\x69\x74\x68\x20\x62\x65\x20\x63\x72\x65\x61\x74\x65\x64\x20\x61\x73\x20\x60\x43\x6F\x6D\x70\x61\x6E\x79\x20\x43\x6F\x64\x61\x74\x31\x60\x2E" - description: "\uFEFF\x55\x73\x65\x20\x74\x68\x65\x20\x2A\x43\x72\x65\x61\x74\x65\x20\x63\x6F\x6D\x70\x61\x6E\x79\x2A\x20\x65\x6E\x64\x70\x6F\x69\x6E\x74\x20\x74\x6F\x20\x63\x72\x65\x61\x74\x65\x20\x61\x20\x6E\x65\x77\x20\x5B\x63\x6F\x6D\x70\x61\x6E\x79\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x6C\x65\x6E\x64\x69\x6E\x67\x2D\x61\x70\x69\x23\x2F\x73\x63\x68\x65\x6D\x61\x73\x2F\x43\x6F\x6D\x70\x61\x6E\x79\x29\x20\x74\x68\x61\x74\x20\x72\x65\x70\x72\x65\x73\x65\x6E\x74\x73\x20\x79\x6F\x75\x72\x20\x63\x75\x73\x74\x6F\x6D\x65\x72\x20\x69\x6E\x20\x43\x6F\x64\x61\x74\x2E\x20\n\n\x41\x20\x5B\x63\x6F\x6D\x70\x61\x6E\x79\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x6C\x65\x6E\x64\x69\x6E\x67\x2D\x61\x70\x69\x23\x2F\x73\x63\x68\x65\x6D\x61\x73\x2F\x43\x6F\x6D\x70\x61\x6E\x79\x29\x20\x72\x65\x70\x72\x65\x73\x65\x6E\x74\x73\x20\x61\x20\x62\x75\x73\x69\x6E\x65\x73\x73\x20\x73\x68\x61\x72\x69\x6E\x67\x20\x61\x63\x63\x65\x73\x73\x20\x74\x6F\x20\x74\x68\x65\x69\x72\x20\x64\x61\x74\x61\x2E\n\x45\x61\x63\x68\x20\x63\x6F\x6D\x70\x61\x6E\x79\x20\x63\x61\x6E\x20\x68\x61\x76\x65\x20\x6D\x75\x6C\x74\x69\x70\x6C\x65\x20\x5B\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x73\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x6C\x65\x6E\x64\x69\x6E\x67\x2D\x61\x70\x69\x23\x2F\x73\x63\x68\x65\x6D\x61\x73\x2F\x43\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x29\x20\x74\x6F\x20\x64\x69\x66\x66\x65\x72\x65\x6E\x74\x20\x64\x61\x74\x61\x20\x73\x6F\x75\x72\x63\x65\x73\x2C\x20\x73\x75\x63\x68\x20\x61\x73\x20\x6F\x6E\x65\x20\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x20\x74\x6F\x20\x58\x65\x72\x6F\x20\x66\x6F\x72\x20\x61\x63\x63\x6F\x75\x6E\x74\x69\x6E\x67\x20\x64\x61\x74\x61\x2C\x20\x74\x77\x6F\x20\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x73\x20\x74\x6F\x20\x50\x6C\x61\x69\x64\x20\x66\x6F\x72\x20\x74\x77\x6F\x20\x62\x61\x6E\x6B\x20\x61\x63\x63\x6F\x75\x6E\x74\x73\x2C\x20\x61\x6E\x64\x20\x61\x20\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x20\x74\x6F\x20\x5A\x65\x74\x74\x6C\x65\x20\x66\x6F\x72\x20\x50\x4F\x53\x20\x64\x61\x74\x61\x2E\n\n\x49\x66\x20\x66\x6F\x72\x62\x69\x64\x64\x65\x6E\x20\x63\x68\x61\x72\x61\x63\x74\x65\x72\x73\x20\x28\x73\x65\x65\x20\x60\x6E\x61\x6D\x65\x60\x20\x70\x61\x74\x74\x65\x72\x6E\x29\x20\x61\x72\x65\x20\x70\x72\x65\x73\x65\x6E\x74\x20\x69\x6E\x20\x74\x68\x65\x20\x72\x65\x71\x75\x65\x73\x74\x2C\x20\x61\x20\x63\x6F\x6D\x70\x61\x6E\x79\x20\x77\x69\x6C\x6C\x20\x62\x65\x20\x63\x72\x65\x61\x74\x65\x64\x20\x77\x69\x74\x68\x20\x74\x68\x65\x20\x66\x6F\x72\x62\x69\x64\x64\x65\x6E\x20\x63\x68\x61\x72\x61\x63\x74\x65\x72\x73\x20\x72\x65\x6D\x6F\x76\x65\x64\x2E\x20\x46\x6F\x72\x20\x65\x78\x61\x6D\x70\x6C\x65\x2C\x20\x60\x43\x6F\x6D\x70\x61\x6E\x79\x20\x28\x43\x6F\x64\x61\x74\x5B\x31\x5D\x29\x60\x20\x77\x69\x74\x68\x20\x62\x65\x20\x63\x72\x65\x61\x74\x65\x64\x20\x61\x73\x20\x60\x43\x6F\x6D\x70\x61\x6E\x79\x20\x43\x6F\x64\x61\x74\x31\x60\x2E" + description: "\uFEFF\x55\x73\x65\x20\x74\x68\x65\x20\x2A\x43\x72\x65\x61\x74\x65\x20\x63\x6F\x6D\x70\x61\x6E\x79\x2A\x20\x65\x6E\x64\x70\x6F\x69\x6E\x74\x20\x74\x6F\x20\x63\x72\x65\x61\x74\x65\x20\x61\x20\x6E\x65\x77\x20\x5B\x63\x6F\x6D\x70\x61\x6E\x79\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x73\x79\x6E\x63\x2D\x66\x6F\x72\x2D\x65\x78\x70\x65\x6E\x73\x65\x73\x2D\x61\x70\x69\x23\x2F\x73\x63\x68\x65\x6D\x61\x73\x2F\x43\x6F\x6D\x70\x61\x6E\x79\x29\x20\x74\x68\x61\x74\x20\x72\x65\x70\x72\x65\x73\x65\x6E\x74\x73\x20\x79\x6F\x75\x72\x20\x63\x75\x73\x74\x6F\x6D\x65\x72\x20\x69\x6E\x20\x43\x6F\x64\x61\x74\x2E\x20\n\n\x41\x20\x5B\x63\x6F\x6D\x70\x61\x6E\x79\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x73\x79\x6E\x63\x2D\x66\x6F\x72\x2D\x65\x78\x70\x65\x6E\x73\x65\x73\x2D\x61\x70\x69\x23\x2F\x73\x63\x68\x65\x6D\x61\x73\x2F\x43\x6F\x6D\x70\x61\x6E\x79\x29\x20\x72\x65\x70\x72\x65\x73\x65\x6E\x74\x73\x20\x61\x20\x62\x75\x73\x69\x6E\x65\x73\x73\x20\x73\x68\x61\x72\x69\x6E\x67\x20\x61\x63\x63\x65\x73\x73\x20\x74\x6F\x20\x74\x68\x65\x69\x72\x20\x64\x61\x74\x61\x2E\n\x45\x61\x63\x68\x20\x63\x6F\x6D\x70\x61\x6E\x79\x20\x63\x61\x6E\x20\x68\x61\x76\x65\x20\x6D\x75\x6C\x74\x69\x70\x6C\x65\x20\x5B\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x73\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x73\x79\x6E\x63\x2D\x66\x6F\x72\x2D\x65\x78\x70\x65\x6E\x73\x65\x73\x2D\x61\x70\x69\x23\x2F\x73\x63\x68\x65\x6D\x61\x73\x2F\x43\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x29\x20\x74\x6F\x20\x64\x69\x66\x66\x65\x72\x65\x6E\x74\x20\x64\x61\x74\x61\x20\x73\x6F\x75\x72\x63\x65\x73\x2C\x20\x73\x75\x63\x68\x20\x61\x73\x20\x6F\x6E\x65\x20\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x20\x74\x6F\x20\x58\x65\x72\x6F\x20\x66\x6F\x72\x20\x61\x63\x63\x6F\x75\x6E\x74\x69\x6E\x67\x20\x64\x61\x74\x61\x2C\x20\x74\x77\x6F\x20\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x73\x20\x74\x6F\x20\x50\x6C\x61\x69\x64\x20\x66\x6F\x72\x20\x74\x77\x6F\x20\x62\x61\x6E\x6B\x20\x61\x63\x63\x6F\x75\x6E\x74\x73\x2C\x20\x61\x6E\x64\x20\x61\x20\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x20\x74\x6F\x20\x5A\x65\x74\x74\x6C\x65\x20\x66\x6F\x72\x20\x50\x4F\x53\x20\x64\x61\x74\x61\x2E\n\n\x49\x66\x20\x66\x6F\x72\x62\x69\x64\x64\x65\x6E\x20\x63\x68\x61\x72\x61\x63\x74\x65\x72\x73\x20\x28\x73\x65\x65\x20\x60\x6E\x61\x6D\x65\x60\x20\x70\x61\x74\x74\x65\x72\x6E\x29\x20\x61\x72\x65\x20\x70\x72\x65\x73\x65\x6E\x74\x20\x69\x6E\x20\x74\x68\x65\x20\x72\x65\x71\x75\x65\x73\x74\x2C\x20\x61\x20\x63\x6F\x6D\x70\x61\x6E\x79\x20\x77\x69\x6C\x6C\x20\x62\x65\x20\x63\x72\x65\x61\x74\x65\x64\x20\x77\x69\x74\x68\x20\x74\x68\x65\x20\x66\x6F\x72\x62\x69\x64\x64\x65\x6E\x20\x63\x68\x61\x72\x61\x63\x74\x65\x72\x73\x20\x72\x65\x6D\x6F\x76\x65\x64\x2E\x20\x46\x6F\x72\x20\x65\x78\x61\x6D\x70\x6C\x65\x2C\x20\x60\x43\x6F\x6D\x70\x61\x6E\x79\x20\x28\x43\x6F\x64\x61\x74\x5B\x31\x5D\x29\x60\x20\x77\x69\x74\x68\x20\x62\x65\x20\x63\x72\x65\x61\x74\x65\x64\x20\x61\x73\x20\x60\x43\x6F\x6D\x70\x61\x6E\x79\x20\x43\x6F\x64\x61\x74\x31\x60\x2E" requestBody: content: application/json: @@ -416,15 +363,10 @@ paths: name: Technicalium description: 'Technology services, including web and app design and development' '/companies/{companyId}': - get: - summary: Get company - operationId: get-company - description: "\uFEFF\x54\x68\x65\x20\x2A\x47\x65\x74\x20\x63\x6F\x6D\x70\x61\x6E\x79\x2A\x20\x65\x6E\x64\x70\x6F\x69\x6E\x74\x20\x72\x65\x74\x75\x72\x6E\x73\x20\x61\x20\x73\x69\x6E\x67\x6C\x65\x20\x63\x6F\x6D\x70\x61\x6E\x79\x20\x66\x6F\x72\x20\x61\x20\x67\x69\x76\x65\x6E\x20\x60\x63\x6F\x6D\x70\x61\x6E\x79\x49\x64\x60\x2E\n\n\x41\x20\x5B\x63\x6F\x6D\x70\x61\x6E\x79\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x70\x6C\x61\x74\x66\x6F\x72\x6D\x2D\x61\x70\x69\x23\x2F\x73\x63\x68\x65\x6D\x61\x73\x2F\x43\x6F\x6D\x70\x61\x6E\x79\x29\x20\x72\x65\x70\x72\x65\x73\x65\x6E\x74\x73\x20\x61\x20\x62\x75\x73\x69\x6E\x65\x73\x73\x20\x73\x68\x61\x72\x69\x6E\x67\x20\x61\x63\x63\x65\x73\x73\x20\x74\x6F\x20\x74\x68\x65\x69\x72\x20\x64\x61\x74\x61\x2E\n\x45\x61\x63\x68\x20\x63\x6F\x6D\x70\x61\x6E\x79\x20\x63\x61\x6E\x20\x68\x61\x76\x65\x20\x6D\x75\x6C\x74\x69\x70\x6C\x65\x20\x5B\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x73\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x70\x6C\x61\x74\x66\x6F\x72\x6D\x2D\x61\x70\x69\x23\x2F\x73\x63\x68\x65\x6D\x61\x73\x2F\x43\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x29\x20\x74\x6F\x20\x64\x69\x66\x66\x65\x72\x65\x6E\x74\x20\x64\x61\x74\x61\x20\x73\x6F\x75\x72\x63\x65\x73\x2C\x20\x73\x75\x63\x68\x20\x61\x73\x20\x6F\x6E\x65\x20\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x20\x74\x6F\x20\x58\x65\x72\x6F\x20\x66\x6F\x72\x20\x61\x63\x63\x6F\x75\x6E\x74\x69\x6E\x67\x20\x64\x61\x74\x61\x2C\x20\x74\x77\x6F\x20\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x73\x20\x74\x6F\x20\x50\x6C\x61\x69\x64\x20\x66\x6F\x72\x20\x74\x77\x6F\x20\x62\x61\x6E\x6B\x20\x61\x63\x63\x6F\x75\x6E\x74\x73\x2C\x20\x61\x6E\x64\x20\x61\x20\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x20\x74\x6F\x20\x5A\x65\x74\x74\x6C\x65\x20\x66\x6F\x72\x20\x50\x4F\x53\x20\x64\x61\x74\x61\x2E\n" put: - summary: Replace company - description: "\uFEFF\x55\x73\x65\x20\x74\x68\x65\x20\x2A\x52\x65\x70\x6C\x61\x63\x65\x20\x63\x6F\x6D\x70\x61\x6E\x79\x2A\x20\x65\x6E\x64\x70\x6F\x69\x6E\x74\x20\x74\x6F\x20\x72\x65\x70\x6C\x61\x63\x65\x20\x74\x68\x65\x20\x65\x78\x69\x73\x74\x69\x6E\x67\x20\x6E\x61\x6D\x65\x2C\x20\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E\x2C\x20\x61\x6E\x64\x20\x74\x61\x67\x73\x20\x6F\x66\x20\x74\x68\x65\x20\x63\x6F\x6D\x70\x61\x6E\x79\x2E\x20\x43\x61\x6C\x6C\x69\x6E\x67\x20\x74\x68\x65\x20\x65\x6E\x64\x70\x6F\x69\x6E\x74\x20\x77\x69\x6C\x6C\x20\x72\x65\x70\x6C\x61\x63\x65\x20\x65\x78\x69\x73\x74\x69\x6E\x67\x20\x76\x61\x6C\x75\x65\x73\x20\x65\x76\x65\x6E\x20\x69\x66\x20\x6E\x65\x77\x20\x76\x61\x6C\x75\x65\x73\x20\x68\x61\x76\x65\x6E\x27\x74\x20\x62\x65\x65\x6E\x20\x64\x65\x66\x69\x6E\x65\x64\x20\x69\x6E\x20\x74\x68\x65\x20\x70\x61\x79\x6C\x6F\x61\x64\x2E\n\n\x41\x20\x5B\x63\x6F\x6D\x70\x61\x6E\x79\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x6C\x65\x6E\x64\x69\x6E\x67\x2D\x61\x70\x69\x23\x2F\x73\x63\x68\x65\x6D\x61\x73\x2F\x43\x6F\x6D\x70\x61\x6E\x79\x29\x20\x72\x65\x70\x72\x65\x73\x65\x6E\x74\x73\x20\x61\x20\x62\x75\x73\x69\x6E\x65\x73\x73\x20\x73\x68\x61\x72\x69\x6E\x67\x20\x61\x63\x63\x65\x73\x73\x20\x74\x6F\x20\x74\x68\x65\x69\x72\x20\x64\x61\x74\x61\x2E\n\x45\x61\x63\x68\x20\x63\x6F\x6D\x70\x61\x6E\x79\x20\x63\x61\x6E\x20\x68\x61\x76\x65\x20\x6D\x75\x6C\x74\x69\x70\x6C\x65\x20\x5B\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x73\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x6C\x65\x6E\x64\x69\x6E\x67\x2D\x61\x70\x69\x23\x2F\x73\x63\x68\x65\x6D\x61\x73\x2F\x43\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x29\x20\x74\x6F\x20\x64\x69\x66\x66\x65\x72\x65\x6E\x74\x20\x64\x61\x74\x61\x20\x73\x6F\x75\x72\x63\x65\x73\x2C\x20\x73\x75\x63\x68\x20\x61\x73\x20\x6F\x6E\x65\x20\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x20\x74\x6F\x20\x58\x65\x72\x6F\x20\x66\x6F\x72\x20\x61\x63\x63\x6F\x75\x6E\x74\x69\x6E\x67\x20\x64\x61\x74\x61\x2C\x20\x74\x77\x6F\x20\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x73\x20\x74\x6F\x20\x50\x6C\x61\x69\x64\x20\x66\x6F\x72\x20\x74\x77\x6F\x20\x62\x61\x6E\x6B\x20\x61\x63\x63\x6F\x75\x6E\x74\x73\x2C\x20\x61\x6E\x64\x20\x61\x20\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x20\x74\x6F\x20\x5A\x65\x74\x74\x6C\x65\x20\x66\x6F\x72\x20\x50\x4F\x53\x20\x64\x61\x74\x61\x2E" - operationId: replace-company - x-speakeasy-name-override: replace + summary: Update company + description: "\uFEFF\x55\x73\x65\x20\x74\x68\x65\x20\x2A\x55\x70\x64\x61\x74\x65\x20\x63\x6F\x6D\x70\x61\x6E\x79\x2A\x20\x65\x6E\x64\x70\x6F\x69\x6E\x74\x20\x74\x6F\x20\x75\x70\x64\x61\x74\x65\x20\x62\x6F\x74\x68\x20\x74\x68\x65\x20\x6E\x61\x6D\x65\x20\x61\x6E\x64\x20\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E\x20\x6F\x66\x20\x74\x68\x65\x20\x63\x6F\x6D\x70\x61\x6E\x79\x2E\x20\n\n\x41\x20\x5B\x63\x6F\x6D\x70\x61\x6E\x79\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x73\x79\x6E\x63\x2D\x66\x6F\x72\x2D\x65\x78\x70\x65\x6E\x73\x65\x73\x2D\x61\x70\x69\x23\x2F\x73\x63\x68\x65\x6D\x61\x73\x2F\x43\x6F\x6D\x70\x61\x6E\x79\x29\x20\x72\x65\x70\x72\x65\x73\x65\x6E\x74\x73\x20\x61\x20\x62\x75\x73\x69\x6E\x65\x73\x73\x20\x73\x68\x61\x72\x69\x6E\x67\x20\x61\x63\x63\x65\x73\x73\x20\x74\x6F\x20\x74\x68\x65\x69\x72\x20\x64\x61\x74\x61\x2E\n\x45\x61\x63\x68\x20\x63\x6F\x6D\x70\x61\x6E\x79\x20\x63\x61\x6E\x20\x68\x61\x76\x65\x20\x6D\x75\x6C\x74\x69\x70\x6C\x65\x20\x5B\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x73\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x73\x79\x6E\x63\x2D\x66\x6F\x72\x2D\x65\x78\x70\x65\x6E\x73\x65\x73\x2D\x61\x70\x69\x23\x2F\x73\x63\x68\x65\x6D\x61\x73\x2F\x43\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x29\x20\x74\x6F\x20\x64\x69\x66\x66\x65\x72\x65\x6E\x74\x20\x64\x61\x74\x61\x20\x73\x6F\x75\x72\x63\x65\x73\x2C\x20\x73\x75\x63\x68\x20\x61\x73\x20\x6F\x6E\x65\x20\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x20\x74\x6F\x20\x58\x65\x72\x6F\x20\x66\x6F\x72\x20\x61\x63\x63\x6F\x75\x6E\x74\x69\x6E\x67\x20\x64\x61\x74\x61\x2C\x20\x74\x77\x6F\x20\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x73\x20\x74\x6F\x20\x50\x6C\x61\x69\x64\x20\x66\x6F\x72\x20\x74\x77\x6F\x20\x62\x61\x6E\x6B\x20\x61\x63\x63\x6F\x75\x6E\x74\x73\x2C\x20\x61\x6E\x64\x20\x61\x20\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x20\x74\x6F\x20\x5A\x65\x74\x74\x6C\x65\x20\x66\x6F\x72\x20\x50\x4F\x53\x20\x64\x61\x74\x61\x2E" + operationId: update-company parameters: - $ref: '#/components/parameters/companyId' tags: @@ -463,54 +405,12 @@ paths: value: name: Same name description: Additional documents required - patch: - summary: Update company - description: "\uFEFF\x55\x73\x65\x20\x74\x68\x65\x20\x2A\x55\x70\x64\x61\x74\x65\x20\x63\x6F\x6D\x70\x61\x6E\x79\x2A\x20\x65\x6E\x64\x70\x6F\x69\x6E\x74\x20\x74\x6F\x20\x75\x70\x64\x61\x74\x65\x20\x74\x68\x65\x20\x6E\x61\x6D\x65\x2C\x20\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E\x2C\x20\x6F\x72\x20\x74\x61\x67\x73\x20\x6F\x66\x20\x74\x68\x65\x20\x63\x6F\x6D\x70\x61\x6E\x79\x2E\n\n\x54\x68\x65\x20\x2A\x55\x70\x64\x61\x74\x65\x20\x63\x6F\x6D\x70\x61\x6E\x79\x2A\x20\x65\x6E\x64\x70\x6F\x69\x6E\x74\x20\x64\x6F\x65\x73\x6E\x27\x74\x20\x68\x61\x76\x65\x20\x61\x6E\x79\x20\x72\x65\x71\x75\x69\x72\x65\x64\x20\x66\x69\x65\x6C\x64\x73\x2E\x20\x49\x66\x20\x61\x6E\x79\x20\x6F\x66\x20\x74\x68\x65\x20\x66\x69\x65\x6C\x64\x73\x20\x70\x72\x6F\x76\x69\x64\x65\x64\x20\x61\x72\x65\x20\x60\x6E\x75\x6C\x6C\x60\x20\x6F\x72\x20\x6E\x6F\x74\x20\x70\x72\x6F\x76\x69\x64\x65\x64\x2C\x20\x74\x68\x65\x79\x20\x77\x6F\x6E\x27\x74\x20\x62\x65\x20\x69\x6E\x63\x6C\x75\x64\x65\x64\x20\x69\x6E\x20\x74\x68\x65\x20\x75\x70\x64\x61\x74\x65\x2E\x20\x20\n\n\x41\x20\x5B\x63\x6F\x6D\x70\x61\x6E\x79\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x6C\x65\x6E\x64\x69\x6E\x67\x2D\x61\x70\x69\x23\x2F\x73\x63\x68\x65\x6D\x61\x73\x2F\x43\x6F\x6D\x70\x61\x6E\x79\x29\x20\x72\x65\x70\x72\x65\x73\x65\x6E\x74\x73\x20\x61\x20\x62\x75\x73\x69\x6E\x65\x73\x73\x20\x73\x68\x61\x72\x69\x6E\x67\x20\x61\x63\x63\x65\x73\x73\x20\x74\x6F\x20\x74\x68\x65\x69\x72\x20\x64\x61\x74\x61\x2E" - operationId: update-company - parameters: - - $ref: '#/components/parameters/companyId' - tags: - - Companies - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/Company' - '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' - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/CompanyUpdateRequest' - examples: - Update tags: - value: - tags: - refrence: new reference - Update name: - value: - name: New Name delete: summary: Delete a company operationId: delete-company parameters: - $ref: '#/components/parameters/companyId' - description: "\uFEFF\x54\x68\x65\x20\x2A\x44\x65\x6C\x65\x74\x65\x20\x63\x6F\x6D\x70\x61\x6E\x79\x2A\x20\x65\x6E\x64\x70\x6F\x69\x6E\x74\x20\x70\x65\x72\x6D\x61\x6E\x65\x6E\x74\x6C\x79\x20\x64\x65\x6C\x65\x74\x65\x73\x20\x61\x20\x5B\x63\x6F\x6D\x70\x61\x6E\x79\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x6C\x65\x6E\x64\x69\x6E\x67\x2D\x61\x70\x69\x23\x2F\x73\x63\x68\x65\x6D\x61\x73\x2F\x43\x6F\x6D\x70\x61\x6E\x79\x29\x2C\x20\x69\x74\x73\x20\x5B\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x73\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x6C\x65\x6E\x64\x69\x6E\x67\x2D\x61\x70\x69\x23\x2F\x73\x63\x68\x65\x6D\x61\x73\x2F\x43\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x29\x20\x61\x6E\x64\x20\x61\x6E\x79\x20\x63\x61\x63\x68\x65\x64\x20\x64\x61\x74\x61\x2E\x20\x54\x68\x69\x73\x20\x6F\x70\x65\x72\x61\x74\x69\x6F\x6E\x20\x69\x73\x20\x69\x72\x72\x65\x76\x65\x72\x73\x69\x62\x6C\x65\x2E\n\n\x41\x20\x5B\x63\x6F\x6D\x70\x61\x6E\x79\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x6C\x65\x6E\x64\x69\x6E\x67\x2D\x61\x70\x69\x23\x2F\x73\x63\x68\x65\x6D\x61\x73\x2F\x43\x6F\x6D\x70\x61\x6E\x79\x29\x20\x72\x65\x70\x72\x65\x73\x65\x6E\x74\x73\x20\x61\x20\x62\x75\x73\x69\x6E\x65\x73\x73\x20\x73\x68\x61\x72\x69\x6E\x67\x20\x61\x63\x63\x65\x73\x73\x20\x74\x6F\x20\x74\x68\x65\x69\x72\x20\x64\x61\x74\x61\x2E\n\x45\x61\x63\x68\x20\x63\x6F\x6D\x70\x61\x6E\x79\x20\x63\x61\x6E\x20\x68\x61\x76\x65\x20\x6D\x75\x6C\x74\x69\x70\x6C\x65\x20\x5B\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x73\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x6C\x65\x6E\x64\x69\x6E\x67\x2D\x61\x70\x69\x23\x2F\x73\x63\x68\x65\x6D\x61\x73\x2F\x43\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x29\x20\x74\x6F\x20\x64\x69\x66\x66\x65\x72\x65\x6E\x74\x20\x64\x61\x74\x61\x20\x73\x6F\x75\x72\x63\x65\x73\x2C\x20\x73\x75\x63\x68\x20\x61\x73\x20\x6F\x6E\x65\x20\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x20\x74\x6F\x20\x58\x65\x72\x6F\x20\x66\x6F\x72\x20\x61\x63\x63\x6F\x75\x6E\x74\x69\x6E\x67\x20\x64\x61\x74\x61\x2C\x20\x74\x77\x6F\x20\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x73\x20\x74\x6F\x20\x50\x6C\x61\x69\x64\x20\x66\x6F\x72\x20\x74\x77\x6F\x20\x62\x61\x6E\x6B\x20\x61\x63\x63\x6F\x75\x6E\x74\x73\x2C\x20\x61\x6E\x64\x20\x61\x20\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x20\x74\x6F\x20\x5A\x65\x74\x74\x6C\x65\x20\x66\x6F\x72\x20\x50\x4F\x53\x20\x64\x61\x74\x61\x2E\n" + description: "\uFEFF\x54\x68\x65\x20\x2A\x44\x65\x6C\x65\x74\x65\x20\x63\x6F\x6D\x70\x61\x6E\x79\x2A\x20\x65\x6E\x64\x70\x6F\x69\x6E\x74\x20\x70\x65\x72\x6D\x61\x6E\x65\x6E\x74\x6C\x79\x20\x64\x65\x6C\x65\x74\x65\x73\x20\x61\x20\x5B\x63\x6F\x6D\x70\x61\x6E\x79\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x73\x79\x6E\x63\x2D\x66\x6F\x72\x2D\x65\x78\x70\x65\x6E\x73\x65\x73\x2D\x61\x70\x69\x23\x2F\x73\x63\x68\x65\x6D\x61\x73\x2F\x43\x6F\x6D\x70\x61\x6E\x79\x29\x2C\x20\x69\x74\x73\x20\x5B\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x73\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x73\x79\x6E\x63\x2D\x66\x6F\x72\x2D\x65\x78\x70\x65\x6E\x73\x65\x73\x2D\x61\x70\x69\x23\x2F\x73\x63\x68\x65\x6D\x61\x73\x2F\x43\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x29\x20\x61\x6E\x64\x20\x61\x6E\x79\x20\x63\x61\x63\x68\x65\x64\x20\x64\x61\x74\x61\x2E\x20\x54\x68\x69\x73\x20\x6F\x70\x65\x72\x61\x74\x69\x6F\x6E\x20\x69\x73\x20\x69\x72\x72\x65\x76\x65\x72\x73\x69\x62\x6C\x65\x2E\n\n\x41\x20\x5B\x63\x6F\x6D\x70\x61\x6E\x79\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x73\x79\x6E\x63\x2D\x66\x6F\x72\x2D\x65\x78\x70\x65\x6E\x73\x65\x73\x2D\x61\x70\x69\x23\x2F\x73\x63\x68\x65\x6D\x61\x73\x2F\x43\x6F\x6D\x70\x61\x6E\x79\x29\x20\x72\x65\x70\x72\x65\x73\x65\x6E\x74\x73\x20\x61\x20\x62\x75\x73\x69\x6E\x65\x73\x73\x20\x73\x68\x61\x72\x69\x6E\x67\x20\x61\x63\x63\x65\x73\x73\x20\x74\x6F\x20\x74\x68\x65\x69\x72\x20\x64\x61\x74\x61\x2E\n\x45\x61\x63\x68\x20\x63\x6F\x6D\x70\x61\x6E\x79\x20\x63\x61\x6E\x20\x68\x61\x76\x65\x20\x6D\x75\x6C\x74\x69\x70\x6C\x65\x20\x5B\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x73\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x73\x79\x6E\x63\x2D\x66\x6F\x72\x2D\x65\x78\x70\x65\x6E\x73\x65\x73\x2D\x61\x70\x69\x23\x2F\x73\x63\x68\x65\x6D\x61\x73\x2F\x43\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x29\x20\x74\x6F\x20\x64\x69\x66\x66\x65\x72\x65\x6E\x74\x20\x64\x61\x74\x61\x20\x73\x6F\x75\x72\x63\x65\x73\x2C\x20\x73\x75\x63\x68\x20\x61\x73\x20\x6F\x6E\x65\x20\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x20\x74\x6F\x20\x58\x65\x72\x6F\x20\x66\x6F\x72\x20\x61\x63\x63\x6F\x75\x6E\x74\x69\x6E\x67\x20\x64\x61\x74\x61\x2C\x20\x74\x77\x6F\x20\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x73\x20\x74\x6F\x20\x50\x6C\x61\x69\x64\x20\x66\x6F\x72\x20\x74\x77\x6F\x20\x62\x61\x6E\x6B\x20\x61\x63\x63\x6F\x75\x6E\x74\x73\x2C\x20\x61\x6E\x64\x20\x61\x20\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x20\x74\x6F\x20\x5A\x65\x74\x74\x6C\x65\x20\x66\x6F\x72\x20\x50\x4F\x53\x20\x64\x61\x74\x61\x2E\n" tags: - Companies responses: @@ -533,7 +433,7 @@ paths: get: summary: Get company operationId: get-company - description: "\uFEFF\x54\x68\x65\x20\x2A\x47\x65\x74\x20\x63\x6F\x6D\x70\x61\x6E\x79\x2A\x20\x65\x6E\x64\x70\x6F\x69\x6E\x74\x20\x72\x65\x74\x75\x72\x6E\x73\x20\x61\x20\x73\x69\x6E\x67\x6C\x65\x20\x63\x6F\x6D\x70\x61\x6E\x79\x20\x66\x6F\x72\x20\x61\x20\x67\x69\x76\x65\x6E\x20\x60\x63\x6F\x6D\x70\x61\x6E\x79\x49\x64\x60\x2E\n\n\x41\x20\x5B\x63\x6F\x6D\x70\x61\x6E\x79\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x6C\x65\x6E\x64\x69\x6E\x67\x2D\x61\x70\x69\x23\x2F\x73\x63\x68\x65\x6D\x61\x73\x2F\x43\x6F\x6D\x70\x61\x6E\x79\x29\x20\x72\x65\x70\x72\x65\x73\x65\x6E\x74\x73\x20\x61\x20\x62\x75\x73\x69\x6E\x65\x73\x73\x20\x73\x68\x61\x72\x69\x6E\x67\x20\x61\x63\x63\x65\x73\x73\x20\x74\x6F\x20\x74\x68\x65\x69\x72\x20\x64\x61\x74\x61\x2E\n\x45\x61\x63\x68\x20\x63\x6F\x6D\x70\x61\x6E\x79\x20\x63\x61\x6E\x20\x68\x61\x76\x65\x20\x6D\x75\x6C\x74\x69\x70\x6C\x65\x20\x5B\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x73\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x6C\x65\x6E\x64\x69\x6E\x67\x2D\x61\x70\x69\x23\x2F\x73\x63\x68\x65\x6D\x61\x73\x2F\x43\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x29\x20\x74\x6F\x20\x64\x69\x66\x66\x65\x72\x65\x6E\x74\x20\x64\x61\x74\x61\x20\x73\x6F\x75\x72\x63\x65\x73\x2C\x20\x73\x75\x63\x68\x20\x61\x73\x20\x6F\x6E\x65\x20\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x20\x74\x6F\x20\x58\x65\x72\x6F\x20\x66\x6F\x72\x20\x61\x63\x63\x6F\x75\x6E\x74\x69\x6E\x67\x20\x64\x61\x74\x61\x2C\x20\x74\x77\x6F\x20\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x73\x20\x74\x6F\x20\x50\x6C\x61\x69\x64\x20\x66\x6F\x72\x20\x74\x77\x6F\x20\x62\x61\x6E\x6B\x20\x61\x63\x63\x6F\x75\x6E\x74\x73\x2C\x20\x61\x6E\x64\x20\x61\x20\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x20\x74\x6F\x20\x5A\x65\x74\x74\x6C\x65\x20\x66\x6F\x72\x20\x50\x4F\x53\x20\x64\x61\x74\x61\x2E\n" + description: "\uFEFF\x54\x68\x65\x20\x2A\x47\x65\x74\x20\x63\x6F\x6D\x70\x61\x6E\x79\x2A\x20\x65\x6E\x64\x70\x6F\x69\x6E\x74\x20\x72\x65\x74\x75\x72\x6E\x73\x20\x61\x20\x73\x69\x6E\x67\x6C\x65\x20\x63\x6F\x6D\x70\x61\x6E\x79\x20\x66\x6F\x72\x20\x61\x20\x67\x69\x76\x65\x6E\x20\x60\x63\x6F\x6D\x70\x61\x6E\x79\x49\x64\x60\x2E\n\n\x41\x20\x5B\x63\x6F\x6D\x70\x61\x6E\x79\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x73\x79\x6E\x63\x2D\x66\x6F\x72\x2D\x65\x78\x70\x65\x6E\x73\x65\x73\x2D\x61\x70\x69\x23\x2F\x73\x63\x68\x65\x6D\x61\x73\x2F\x43\x6F\x6D\x70\x61\x6E\x79\x29\x20\x72\x65\x70\x72\x65\x73\x65\x6E\x74\x73\x20\x61\x20\x62\x75\x73\x69\x6E\x65\x73\x73\x20\x73\x68\x61\x72\x69\x6E\x67\x20\x61\x63\x63\x65\x73\x73\x20\x74\x6F\x20\x74\x68\x65\x69\x72\x20\x64\x61\x74\x61\x2E\n\x45\x61\x63\x68\x20\x63\x6F\x6D\x70\x61\x6E\x79\x20\x63\x61\x6E\x20\x68\x61\x76\x65\x20\x6D\x75\x6C\x74\x69\x70\x6C\x65\x20\x5B\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x73\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x73\x79\x6E\x63\x2D\x66\x6F\x72\x2D\x65\x78\x70\x65\x6E\x73\x65\x73\x2D\x61\x70\x69\x23\x2F\x73\x63\x68\x65\x6D\x61\x73\x2F\x43\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x29\x20\x74\x6F\x20\x64\x69\x66\x66\x65\x72\x65\x6E\x74\x20\x64\x61\x74\x61\x20\x73\x6F\x75\x72\x63\x65\x73\x2C\x20\x73\x75\x63\x68\x20\x61\x73\x20\x6F\x6E\x65\x20\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x20\x74\x6F\x20\x58\x65\x72\x6F\x20\x66\x6F\x72\x20\x61\x63\x63\x6F\x75\x6E\x74\x69\x6E\x67\x20\x64\x61\x74\x61\x2C\x20\x74\x77\x6F\x20\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x73\x20\x74\x6F\x20\x50\x6C\x61\x69\x64\x20\x66\x6F\x72\x20\x74\x77\x6F\x20\x62\x61\x6E\x6B\x20\x61\x63\x63\x6F\x75\x6E\x74\x73\x2C\x20\x61\x6E\x64\x20\x61\x20\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x20\x74\x6F\x20\x5A\x65\x74\x74\x6C\x65\x20\x66\x6F\x72\x20\x50\x4F\x53\x20\x64\x61\x74\x61\x2E\n" parameters: - $ref: '#/components/parameters/companyId' tags: @@ -556,11 +456,6 @@ paths: dataConnections: [] created: '2022-11-10T10:45:18Z' createdByUserName: Dan Tzabar - products: - - spend-insights - - lending - - expenses-v1 - - commerce referenceSubsidiaryCompanies: [] Parent multi-entity company: value: @@ -572,11 +467,6 @@ paths: dataConnections: [] created: '2022-11-10T10:45:18Z' createdByUserName: Dan Tzabar - products: - - spend-insights - - lending - - expenses-v1 - - commerce referenceSubsidiaryCompanies: - id: c8d3af58-7011-47ce-b3f2-89faf300ef6d name: Toft stores UK @@ -606,11 +496,6 @@ paths: sourceType: Accounting created: '2022-11-10T10:45:18Z' createdByUserName: Dan Tzabar - products: - - spend-insights - - lending - - expenses-v1 - - commerce referenceParentCompany: id: ab12c58d-a678-4ebf-a159-ae99e1807bd0 name: Toft stores @@ -631,174 +516,6 @@ paths: $ref: '#/components/responses/Internal-Server-Error' '503': $ref: '#/components/responses/Service-Unavailable' - delete: - summary: Delete a company - operationId: delete-company - parameters: - - $ref: '#/components/parameters/companyId' - description: "\uFEFF\x54\x68\x65\x20\x2A\x44\x65\x6C\x65\x74\x65\x20\x63\x6F\x6D\x70\x61\x6E\x79\x2A\x20\x65\x6E\x64\x70\x6F\x69\x6E\x74\x20\x70\x65\x72\x6D\x61\x6E\x65\x6E\x74\x6C\x79\x20\x64\x65\x6C\x65\x74\x65\x73\x20\x61\x20\x5B\x63\x6F\x6D\x70\x61\x6E\x79\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x70\x6C\x61\x74\x66\x6F\x72\x6D\x2D\x61\x70\x69\x23\x2F\x73\x63\x68\x65\x6D\x61\x73\x2F\x43\x6F\x6D\x70\x61\x6E\x79\x29\x2C\x20\x69\x74\x73\x20\x5B\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x73\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x70\x6C\x61\x74\x66\x6F\x72\x6D\x2D\x61\x70\x69\x23\x2F\x73\x63\x68\x65\x6D\x61\x73\x2F\x43\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x29\x20\x61\x6E\x64\x20\x61\x6E\x79\x20\x63\x61\x63\x68\x65\x64\x20\x64\x61\x74\x61\x2E\x20\x54\x68\x69\x73\x20\x6F\x70\x65\x72\x61\x74\x69\x6F\x6E\x20\x69\x73\x20\x69\x72\x72\x65\x76\x65\x72\x73\x69\x62\x6C\x65\x2E\n\n\x41\x20\x5B\x63\x6F\x6D\x70\x61\x6E\x79\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x70\x6C\x61\x74\x66\x6F\x72\x6D\x2D\x61\x70\x69\x23\x2F\x73\x63\x68\x65\x6D\x61\x73\x2F\x43\x6F\x6D\x70\x61\x6E\x79\x29\x20\x72\x65\x70\x72\x65\x73\x65\x6E\x74\x73\x20\x61\x20\x62\x75\x73\x69\x6E\x65\x73\x73\x20\x73\x68\x61\x72\x69\x6E\x67\x20\x61\x63\x63\x65\x73\x73\x20\x74\x6F\x20\x74\x68\x65\x69\x72\x20\x64\x61\x74\x61\x2E\n\x45\x61\x63\x68\x20\x63\x6F\x6D\x70\x61\x6E\x79\x20\x63\x61\x6E\x20\x68\x61\x76\x65\x20\x6D\x75\x6C\x74\x69\x70\x6C\x65\x20\x5B\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x73\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x70\x6C\x61\x74\x66\x6F\x72\x6D\x2D\x61\x70\x69\x23\x2F\x73\x63\x68\x65\x6D\x61\x73\x2F\x43\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x29\x20\x74\x6F\x20\x64\x69\x66\x66\x65\x72\x65\x6E\x74\x20\x64\x61\x74\x61\x20\x73\x6F\x75\x72\x63\x65\x73\x2C\x20\x73\x75\x63\x68\x20\x61\x73\x20\x6F\x6E\x65\x20\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x20\x74\x6F\x20\x58\x65\x72\x6F\x20\x66\x6F\x72\x20\x61\x63\x63\x6F\x75\x6E\x74\x69\x6E\x67\x20\x64\x61\x74\x61\x2C\x20\x74\x77\x6F\x20\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x73\x20\x74\x6F\x20\x50\x6C\x61\x69\x64\x20\x66\x6F\x72\x20\x74\x77\x6F\x20\x62\x61\x6E\x6B\x20\x61\x63\x63\x6F\x75\x6E\x74\x73\x2C\x20\x61\x6E\x64\x20\x61\x20\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x20\x74\x6F\x20\x5A\x65\x74\x74\x6C\x65\x20\x66\x6F\x72\x20\x50\x4F\x53\x20\x64\x61\x74\x61\x2E\n" - tags: - - Companies - responses: - '204': - description: No Content - '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' - put: - summary: Replace company - description: "\uFEFF\x55\x73\x65\x20\x74\x68\x65\x20\x2A\x52\x65\x70\x6C\x61\x63\x65\x20\x63\x6F\x6D\x70\x61\x6E\x79\x2A\x20\x65\x6E\x64\x70\x6F\x69\x6E\x74\x20\x74\x6F\x20\x72\x65\x70\x6C\x61\x63\x65\x20\x74\x68\x65\x20\x65\x78\x69\x73\x74\x69\x6E\x67\x20\x6E\x61\x6D\x65\x2C\x20\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E\x2C\x20\x61\x6E\x64\x20\x74\x61\x67\x73\x20\x6F\x66\x20\x74\x68\x65\x20\x63\x6F\x6D\x70\x61\x6E\x79\x2E\x20\x43\x61\x6C\x6C\x69\x6E\x67\x20\x74\x68\x65\x20\x65\x6E\x64\x70\x6F\x69\x6E\x74\x20\x77\x69\x6C\x6C\x20\x72\x65\x70\x6C\x61\x63\x65\x20\x65\x78\x69\x73\x74\x69\x6E\x67\x20\x76\x61\x6C\x75\x65\x73\x20\x65\x76\x65\x6E\x20\x69\x66\x20\x6E\x65\x77\x20\x76\x61\x6C\x75\x65\x73\x20\x68\x61\x76\x65\x6E\x27\x74\x20\x62\x65\x65\x6E\x20\x64\x65\x66\x69\x6E\x65\x64\x20\x69\x6E\x20\x74\x68\x65\x20\x70\x61\x79\x6C\x6F\x61\x64\x2E\n\n\x41\x20\x5B\x63\x6F\x6D\x70\x61\x6E\x79\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x70\x6C\x61\x74\x66\x6F\x72\x6D\x2D\x61\x70\x69\x23\x2F\x73\x63\x68\x65\x6D\x61\x73\x2F\x43\x6F\x6D\x70\x61\x6E\x79\x29\x20\x72\x65\x70\x72\x65\x73\x65\x6E\x74\x73\x20\x61\x20\x62\x75\x73\x69\x6E\x65\x73\x73\x20\x73\x68\x61\x72\x69\x6E\x67\x20\x61\x63\x63\x65\x73\x73\x20\x74\x6F\x20\x74\x68\x65\x69\x72\x20\x64\x61\x74\x61\x2E\n\x45\x61\x63\x68\x20\x63\x6F\x6D\x70\x61\x6E\x79\x20\x63\x61\x6E\x20\x68\x61\x76\x65\x20\x6D\x75\x6C\x74\x69\x70\x6C\x65\x20\x5B\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x73\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x70\x6C\x61\x74\x66\x6F\x72\x6D\x2D\x61\x70\x69\x23\x2F\x73\x63\x68\x65\x6D\x61\x73\x2F\x43\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x29\x20\x74\x6F\x20\x64\x69\x66\x66\x65\x72\x65\x6E\x74\x20\x64\x61\x74\x61\x20\x73\x6F\x75\x72\x63\x65\x73\x2C\x20\x73\x75\x63\x68\x20\x61\x73\x20\x6F\x6E\x65\x20\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x20\x74\x6F\x20\x58\x65\x72\x6F\x20\x66\x6F\x72\x20\x61\x63\x63\x6F\x75\x6E\x74\x69\x6E\x67\x20\x64\x61\x74\x61\x2C\x20\x74\x77\x6F\x20\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x73\x20\x74\x6F\x20\x50\x6C\x61\x69\x64\x20\x66\x6F\x72\x20\x74\x77\x6F\x20\x62\x61\x6E\x6B\x20\x61\x63\x63\x6F\x75\x6E\x74\x73\x2C\x20\x61\x6E\x64\x20\x61\x20\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x20\x74\x6F\x20\x5A\x65\x74\x74\x6C\x65\x20\x66\x6F\x72\x20\x50\x4F\x53\x20\x64\x61\x74\x61\x2E" - operationId: replace-company - x-speakeasy-name-override: replace - parameters: - - $ref: '#/components/parameters/companyId' - tags: - - Companies - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/Company' - '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' - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/CompanyRequestBody' - examples: - Update name: - value: - name: New Name - Update description: - value: - name: Same name - description: Additional documents required - patch: - summary: Update company - description: "\uFEFF\x55\x73\x65\x20\x74\x68\x65\x20\x2A\x55\x70\x64\x61\x74\x65\x20\x63\x6F\x6D\x70\x61\x6E\x79\x2A\x20\x65\x6E\x64\x70\x6F\x69\x6E\x74\x20\x74\x6F\x20\x75\x70\x64\x61\x74\x65\x20\x74\x68\x65\x20\x6E\x61\x6D\x65\x2C\x20\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E\x2C\x20\x6F\x72\x20\x74\x61\x67\x73\x20\x6F\x66\x20\x74\x68\x65\x20\x63\x6F\x6D\x70\x61\x6E\x79\x2E\n\n\x54\x68\x65\x20\x2A\x55\x70\x64\x61\x74\x65\x20\x63\x6F\x6D\x70\x61\x6E\x79\x2A\x20\x65\x6E\x64\x70\x6F\x69\x6E\x74\x20\x64\x6F\x65\x73\x6E\x27\x74\x20\x68\x61\x76\x65\x20\x61\x6E\x79\x20\x72\x65\x71\x75\x69\x72\x65\x64\x20\x66\x69\x65\x6C\x64\x73\x2E\x20\x49\x66\x20\x61\x6E\x79\x20\x6F\x66\x20\x74\x68\x65\x20\x66\x69\x65\x6C\x64\x73\x20\x70\x72\x6F\x76\x69\x64\x65\x64\x20\x61\x72\x65\x20\x60\x6E\x75\x6C\x6C\x60\x20\x6F\x72\x20\x6E\x6F\x74\x20\x70\x72\x6F\x76\x69\x64\x65\x64\x2C\x20\x74\x68\x65\x79\x20\x77\x6F\x6E\x27\x74\x20\x62\x65\x20\x69\x6E\x63\x6C\x75\x64\x65\x64\x20\x69\x6E\x20\x74\x68\x65\x20\x75\x70\x64\x61\x74\x65\x2E\x20\x20\n\n\x41\x20\x5B\x63\x6F\x6D\x70\x61\x6E\x79\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x70\x6C\x61\x74\x66\x6F\x72\x6D\x2D\x61\x70\x69\x23\x2F\x73\x63\x68\x65\x6D\x61\x73\x2F\x43\x6F\x6D\x70\x61\x6E\x79\x29\x20\x72\x65\x70\x72\x65\x73\x65\x6E\x74\x73\x20\x61\x20\x62\x75\x73\x69\x6E\x65\x73\x73\x20\x73\x68\x61\x72\x69\x6E\x67\x20\x61\x63\x63\x65\x73\x73\x20\x74\x6F\x20\x74\x68\x65\x69\x72\x20\x64\x61\x74\x61\x2E" - operationId: update-company - parameters: - - $ref: '#/components/parameters/companyId' - tags: - - Companies - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/Company' - '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' - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/CompanyUpdateRequest' - examples: - Update tags: - value: - tags: - refrence: new reference - Update name: - value: - name: New Name - '/companies/{companyId}/products/{productIdentifier}': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/productIdentifier' - put: - summary: Add product - operationId: add-product - x-speakeasy-name-override: add-product - description: |- - Use the *Add product* endpoint to enable a product for the company specified by `companyId`. - - > Note: This feature is currently in alpha and available only to participants in the development program. - tags: - - Companies - responses: - '204': - description: OK - '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' - delete: - summary: Remove product - operationId: remove-product - x-speakeasy-name-override: remove-product - description: |- - Use the *Remove product* endpoint to disable a product for the company specified by `companyId`. - - > Note: This feature is currently in alpha and available only to participants in the development program. - tags: - - Companies - responses: - '204': - description: OK - '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' '/companies/{companyId}/connections': get: summary: List connections @@ -876,7 +593,6 @@ paths: type: object properties: platformKey: - $ref: '#/components/parameters/platformKey/schema' type: string minLength: 4 maxLength: 4 @@ -1022,7 +738,6 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UpdateConnectionStatus' title: Update connection x-internal: true type: object @@ -1037,69 +752,26 @@ paths: value: status: Unlinked description: '' - '/companies/{companyId}/connections/{connectionId}/authorization': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - put: - summary: Update authorization - operationId: update-connection-authorization - x-speakeasy-name-override: update-authorization - description: Update data connection's authorization. + '/companies/{companyId}/sync/expenses/connections/partnerExpense': + post: tags: - Connections - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/Connection' - '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' - requestBody: - content: - application/json: - schema: - type: object - additionalProperties: - type: string - description: '' - '/companies/{companyId}/accessToken': - get: - summary: Get company access token - operationId: get-company-access-token - x-speakeasy-name-override: get-access-token - description: "Use the _Get company access token_ endpoint to return an access token for the specified company ID. The token is valid for one day. \n\nThe token is required by Codat's embeddable UIs (such as [Connections SDK](https://docs.codat.io/auth-flow/optimize/connection-management) and [Link SDK](https://docs.codat.io/auth-flow/authorize-embedded-link)) to verify the identity of the user and improve the reliability of data provided by them." + description: Creates a partner expense data connection + summary: Create partner expense connection + operationId: create-partner-expense-connection + x-speakeasy-name-override: create-partner-expense-connection parameters: - $ref: '#/components/parameters/companyId' - tags: - - Companies responses: '200': - description: OK + description: Success content: application/json: schema: - $ref: '#/components/schemas/CompanyAccessToken' - examples: - Simple company: - value: - expiresIn: 86400 - accessToken: string - tokenType: Bearer + $ref: '#/components/schemas/Connection' + examples: {} + '400': + $ref: '#/components/responses/BadRequest' '401': $ref: '#/components/responses/Unauthorized' '402': @@ -1114,62 +786,90 @@ paths: $ref: '#/components/responses/Internal-Server-Error' '503': $ref: '#/components/responses/Service-Unavailable' - '/companies/{companyId}/connectionManagement/accessToken': - parameters: - - $ref: '#/components/parameters/companyId' + '/companies/{companyId}/data/info': get: - summary: Get access token (old) - operationId: get-connection-management-access-token - deprecated: true - x-speakeasy-deprecation-message: | - The endpoint for generating company-specific connection management access tokens has been deprecated. - Codat now supports a global company access token, providing seamless access across multiple products. - Update your integration to use the global token for improved efficiency and consistency. - x-speakeasy-deprecation-replacement: get-company-access-token tags: - - Connection management - description: "\uFEFF\x54\x68\x65\x20\x6E\x65\x77\x20\x5B\x47\x65\x74\x20\x63\x6F\x6D\x70\x61\x6E\x79\x20\x61\x63\x63\x65\x73\x73\x20\x74\x6F\x6B\x65\x6E\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x70\x6C\x61\x74\x66\x6F\x72\x6D\x2D\x61\x70\x69\x23\x2F\x6F\x70\x65\x72\x61\x74\x69\x6F\x6E\x73\x2F\x67\x65\x74\x2D\x63\x6F\x6D\x70\x61\x6E\x79\x2D\x61\x63\x63\x65\x73\x73\x2D\x74\x6F\x6B\x65\x6E\x29\x20\x65\x6E\x64\x70\x6F\x69\x6E\x74\x20\x72\x65\x70\x6C\x61\x63\x65\x73\x20\x74\x68\x69\x73\x20\x65\x6E\x64\x70\x6F\x69\x6E\x74\x20\x61\x6E\x64\x20\x69\x6E\x63\x6C\x75\x64\x65\x73\x20\x61\x64\x64\x69\x74\x69\x6F\x6E\x61\x6C\x20\x66\x75\x6E\x63\x74\x69\x6F\x6E\x61\x6C\x69\x74\x79\x2E" + - Company info + summary: Get company info + description: Gets the latest basic info for a company. + operationId: get-company-info + parameters: + - $ref: '#/components/parameters/companyId' responses: '200': description: Success content: application/json: schema: - $ref: '#/components/schemas/ConnectionManagementAccessToken' + $ref: '#/components/schemas/CompanyInformation' examples: - Access token: + Example 1: value: - accessToken: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c - '401': - $ref: '#/components/responses/Unauthorized' + companyName: Codat + accountingPlatformRef: 1700060034_ETD + companyLegalName: Codat Ltd + addresses: + - type: Billing + line1: 301 Ink Rooms + line2: 28 Easton Street + city: London + region: England + country: United Kingdom + postalCode: WC1X 0BE + - type: Delivery + line1: 28 Easton Street + city: London + country: UK + postalCode: WC1X 0BE + phoneNumbers: + - number: 02012 345678 + type: Landline + - number: 07123 456789 + type: Mobile + - number: 02012 345678 + type: Fax + webLinks: + - type: Website + url: 'https://www.codat.io/' + - type: Social + url: 'https://www.linkedin.com/company/codat-limited/' + registrationNumber: '5590111724' + taxNumber: '74111622555799035846' + financialYearStartDate: '2023-04-01T00:00:00' + baseCurrency: GBP + sourceUrls: + Api: 'https://api.codat.io' + createdDate: '2020-03-09T15:19:26' + '401': + $ref: '#/components/responses/Unauthorized' '402': $ref: '#/components/responses/Payment-Required' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/Not-Found' + '409': + $ref: '#/components/responses/Conflict' '429': $ref: '#/components/responses/Too-Many-Requests' '500': $ref: '#/components/responses/Internal-Server-Error' '503': $ref: '#/components/responses/Service-Unavailable' - /connectionManagement/corsSettings: + '/companies/{companyId}/sync/expenses/config': get: - summary: Get CORS settings (old) - operationId: get-connection-management-cors-settings - x-speakeasy-group: cors - deprecated: true - x-speakeasy-deprecation-message: | - The new [Get CORS settings](https://docs.codat.io/platform-api#/operations/get-cors-settings) endpoint replaces this endpoint and includes additional functionality. - Update your integrations to use the new path `/corsSettings` as the existing route will be removed in a future release. - x-speakeasy-deprecation-replacement: get-cors-settings tags: - - Settings - description: "\uFEFF\x54\x68\x65\x20\x2A\x47\x65\x74\x20\x43\x4F\x52\x53\x20\x73\x65\x74\x74\x69\x6E\x67\x73\x2A\x20\x65\x6E\x64\x70\x6F\x69\x6E\x74\x20\x72\x65\x74\x75\x72\x6E\x73\x20\x74\x68\x65\x20\x61\x6C\x6C\x6F\x77\x65\x64\x20\x6F\x72\x69\x67\x69\x6E\x73\x20\x28\x69\x2E\x65\x2E\x20\x79\x6F\x75\x72\x20\x64\x6F\x6D\x61\x69\x6E\x73\x29\x20\x79\x6F\x75\x20\x77\x61\x6E\x74\x20\x74\x6F\x20\x61\x6C\x6C\x6F\x77\x20\x63\x72\x6F\x73\x73\x2D\x6F\x72\x69\x67\x69\x6E\x20\x72\x65\x73\x6F\x75\x72\x63\x65\x20\x73\x68\x61\x72\x69\x6E\x67\x20\x28\x5B\x43\x4F\x52\x53\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x65\x6E\x2E\x77\x69\x6B\x69\x70\x65\x64\x69\x61\x2E\x6F\x72\x67\x2F\x77\x69\x6B\x69\x2F\x43\x72\x6F\x73\x73\x2D\x6F\x72\x69\x67\x69\x6E\x5F\x72\x65\x73\x6F\x75\x72\x63\x65\x5F\x73\x68\x61\x72\x69\x6E\x67\x29\x29\x20\x77\x69\x74\x68\x20\x43\x6F\x64\x61\x74\x2E\x20\n\n\x45\x6E\x61\x62\x6C\x69\x6E\x67\x20\x43\x4F\x52\x53\x20\x77\x69\x74\x68\x20\x43\x6F\x64\x61\x74\x20\x69\x73\x20\x72\x65\x71\x75\x69\x72\x65\x64\x20\x62\x79\x20\x6F\x75\x72\x20\x65\x6D\x62\x65\x64\x64\x61\x62\x6C\x65\x20\x55\x49\x73\x20\x28\x73\x75\x63\x68\x20\x61\x73\x20\x5B\x43\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x73\x20\x53\x44\x4B\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x61\x75\x74\x68\x2D\x66\x6C\x6F\x77\x2F\x6F\x70\x74\x69\x6D\x69\x7A\x65\x2F\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x2D\x6D\x61\x6E\x61\x67\x65\x6D\x65\x6E\x74\x29\x20\x61\x6E\x64\x20\x5B\x4C\x69\x6E\x6B\x20\x53\x44\x4B\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x61\x75\x74\x68\x2D\x66\x6C\x6F\x77\x2F\x61\x75\x74\x68\x6F\x72\x69\x7A\x65\x2D\x65\x6D\x62\x65\x64\x64\x65\x64\x2D\x6C\x69\x6E\x6B\x29\x29\x20\x74\x6F\x20\x61\x63\x63\x65\x73\x73\x20\x43\x6F\x64\x61\x74\x27\x73\x20\x41\x50\x49\x20\x65\x6E\x64\x70\x6F\x69\x6E\x74\x73\x2E" + - Configuration + parameters: + - $ref: '#/components/parameters/companyId' responses: '200': - $ref: '#/components/responses/ConnectionManagementAllowedOrigins' + description: Success + content: + application/json: + schema: + $ref: '#/components/schemas/CompanyConfiguration' + examples: {} '401': $ref: '#/components/responses/Unauthorized' '402': @@ -1184,30 +884,29 @@ paths: $ref: '#/components/responses/Internal-Server-Error' '503': $ref: '#/components/responses/Service-Unavailable' + summary: Get company configuration + description: Gets a company's expense sync configuration + operationId: get-company-configuration post: - summary: Set CORS settings (old) - operationId: set-connection-management-cors-settings - x-speakeasy-name-override: set - x-speakeasy-group: cors - deprecated: true - x-speakeasy-deprecation-message: | - The new [Set CORS settings](https://docs.codat.io/platform-api#/operations/set-cors-settings) endpoint replaces this endpoint and includes additional functionality. - Update your integrations to use the new path `/corsSettings` as the existing route will be removed in a future release. - x-speakeasy-deprecation-replacement: set-cors-settings tags: - - Settings - description: "\uFEFF\x54\x68\x65\x20\x2A\x53\x65\x74\x20\x43\x4F\x52\x53\x20\x73\x65\x74\x74\x69\x6E\x67\x73\x2A\x20\x65\x6E\x64\x70\x6F\x69\x6E\x74\x20\x61\x6C\x6C\x6F\x77\x73\x20\x79\x6F\x75\x20\x74\x6F\x20\x72\x65\x67\x69\x73\x74\x65\x72\x20\x61\x6C\x6C\x6F\x77\x65\x64\x20\x6F\x72\x69\x67\x69\x6E\x73\x20\x28\x69\x2E\x65\x2E\x20\x79\x6F\x75\x72\x20\x64\x6F\x6D\x61\x69\x6E\x73\x29\x20\x66\x6F\x72\x20\x75\x73\x65\x20\x69\x6E\x20\x63\x72\x6F\x73\x73\x2D\x6F\x72\x69\x67\x69\x6E\x20\x72\x65\x73\x6F\x75\x72\x63\x65\x20\x73\x68\x61\x72\x69\x6E\x67\x20\x28\x5B\x43\x4F\x52\x53\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x65\x6E\x2E\x77\x69\x6B\x69\x70\x65\x64\x69\x61\x2E\x6F\x72\x67\x2F\x77\x69\x6B\x69\x2F\x43\x72\x6F\x73\x73\x2D\x6F\x72\x69\x67\x69\x6E\x5F\x72\x65\x73\x6F\x75\x72\x63\x65\x5F\x73\x68\x61\x72\x69\x6E\x67\x29\x29\x2E\n\x20\n\x45\x6E\x61\x62\x6C\x69\x6E\x67\x20\x43\x4F\x52\x53\x20\x77\x69\x74\x68\x20\x43\x6F\x64\x61\x74\x20\x69\x73\x20\x72\x65\x71\x75\x69\x72\x65\x64\x20\x62\x79\x20\x6F\x75\x72\x20\x65\x6D\x62\x65\x64\x64\x61\x62\x6C\x65\x20\x55\x49\x73\x20\x28\x73\x75\x63\x68\x20\x61\x73\x20\x5B\x43\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x73\x20\x53\x44\x4B\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x61\x75\x74\x68\x2D\x66\x6C\x6F\x77\x2F\x6F\x70\x74\x69\x6D\x69\x7A\x65\x2F\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x2D\x6D\x61\x6E\x61\x67\x65\x6D\x65\x6E\x74\x29\x20\x61\x6E\x64\x20\x5B\x4C\x69\x6E\x6B\x20\x53\x44\x4B\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x61\x75\x74\x68\x2D\x66\x6C\x6F\x77\x2F\x61\x75\x74\x68\x6F\x72\x69\x7A\x65\x2D\x65\x6D\x62\x65\x64\x64\x65\x64\x2D\x6C\x69\x6E\x6B\x29\x29\x20\x74\x6F\x20\x61\x63\x63\x65\x73\x73\x20\x43\x6F\x64\x61\x74\x27\x73\x20\x41\x50\x49\x20\x65\x6E\x64\x70\x6F\x69\x6E\x74\x73\x2E\x20" + - Configuration + parameters: + - $ref: '#/components/parameters/companyId' requestBody: content: application/json: schema: - $ref: '#/components/schemas/ConnectionManagementAllowedOrigins' - examples: - Allowed origins: - $ref: '#/components/examples/connectionManagementAllowedOriginsResponse' + $ref: '#/components/schemas/CompanyConfiguration' + examples: {} responses: '200': - $ref: '#/components/responses/ConnectionManagementAllowedOrigins' + description: Success + content: + application/json: + schema: + $ref: '#/components/schemas/CompanyConfiguration' + '400': + $ref: '#/components/responses/BadRequest' '401': $ref: '#/components/responses/Unauthorized' '402': @@ -1222,16 +921,26 @@ paths: $ref: '#/components/responses/Internal-Server-Error' '503': $ref: '#/components/responses/Service-Unavailable' - /corsSettings: + summary: Set company configuration + description: Sets a company's expense sync configuration + operationId: set-company-configuration + x-speakeasy-name-override: set + parameters: + - $ref: '#/components/parameters/companyId' + '/companies/{companyId}/sync/expenses/mappingOptions': get: - summary: Get CORS settings - operationId: get-cors-settings tags: - - Settings - description: "\uFEFF\x54\x68\x65\x20\x2A\x47\x65\x74\x20\x43\x4F\x52\x53\x20\x73\x65\x74\x74\x69\x6E\x67\x73\x2A\x20\x65\x6E\x64\x70\x6F\x69\x6E\x74\x20\x72\x65\x74\x75\x72\x6E\x73\x20\x74\x68\x65\x20\x61\x6C\x6C\x6F\x77\x65\x64\x20\x6F\x72\x69\x67\x69\x6E\x73\x20\x28\x69\x2E\x65\x2E\x20\x79\x6F\x75\x72\x20\x64\x6F\x6D\x61\x69\x6E\x73\x29\x20\x79\x6F\x75\x20\x77\x61\x6E\x74\x20\x74\x6F\x20\x61\x6C\x6C\x6F\x77\x20\x63\x72\x6F\x73\x73\x2D\x6F\x72\x69\x67\x69\x6E\x20\x72\x65\x73\x6F\x75\x72\x63\x65\x20\x73\x68\x61\x72\x69\x6E\x67\x20\x28\x5B\x43\x4F\x52\x53\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x65\x6E\x2E\x77\x69\x6B\x69\x70\x65\x64\x69\x61\x2E\x6F\x72\x67\x2F\x77\x69\x6B\x69\x2F\x43\x72\x6F\x73\x73\x2D\x6F\x72\x69\x67\x69\x6E\x5F\x72\x65\x73\x6F\x75\x72\x63\x65\x5F\x73\x68\x61\x72\x69\x6E\x67\x29\x29\x20\x77\x69\x74\x68\x20\x43\x6F\x64\x61\x74\x2E\x20\n\n\x45\x6E\x61\x62\x6C\x69\x6E\x67\x20\x43\x4F\x52\x53\x20\x77\x69\x74\x68\x20\x43\x6F\x64\x61\x74\x20\x69\x73\x20\x72\x65\x71\x75\x69\x72\x65\x64\x20\x62\x79\x20\x6F\x75\x72\x20\x65\x6D\x62\x65\x64\x64\x61\x62\x6C\x65\x20\x55\x49\x73\x20\x28\x73\x75\x63\x68\x20\x61\x73\x20\x5B\x43\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x73\x20\x53\x44\x4B\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x61\x75\x74\x68\x2D\x66\x6C\x6F\x77\x2F\x6F\x70\x74\x69\x6D\x69\x7A\x65\x2F\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x2D\x6D\x61\x6E\x61\x67\x65\x6D\x65\x6E\x74\x29\x20\x61\x6E\x64\x20\x5B\x4C\x69\x6E\x6B\x20\x53\x44\x4B\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x61\x75\x74\x68\x2D\x66\x6C\x6F\x77\x2F\x61\x75\x74\x68\x6F\x72\x69\x7A\x65\x2D\x65\x6D\x62\x65\x64\x64\x65\x64\x2D\x6C\x69\x6E\x6B\x29\x29\x20\x74\x6F\x20\x61\x63\x63\x65\x73\x73\x20\x43\x6F\x64\x61\x74\x27\x73\x20\x41\x50\x49\x20\x65\x6E\x64\x70\x6F\x69\x6E\x74\x73\x2E" + - Mapping options + parameters: + - $ref: '#/components/parameters/companyId' responses: '200': - $ref: '#/components/responses/ConnectionManagementAllowedOrigins' + description: Success + content: + application/json: + schema: + $ref: '#/components/schemas/MappingOptions' + examples: {} '401': $ref: '#/components/responses/Unauthorized' '402': @@ -1246,24 +955,26 @@ paths: $ref: '#/components/responses/Internal-Server-Error' '503': $ref: '#/components/responses/Service-Unavailable' - post: - summary: Set CORS settings - operationId: set-cors-settings - x-speakeasy-name-override: set + description: 'Gets the mapping options (accounts, trackingCategories and taxRates) for a company''s accounting software' + summary: Mapping options + operationId: get-mapping-options + x-speakeasy-name-override: get-mapping-options + parameters: + - $ref: '#/components/parameters/companyId' + '/companies/{companyId}/sync/expenses/syncs/lastSuccessful/status': + get: tags: - - Settings - description: "\uFEFF\x54\x68\x65\x20\x2A\x53\x65\x74\x20\x43\x4F\x52\x53\x20\x73\x65\x74\x74\x69\x6E\x67\x73\x2A\x20\x65\x6E\x64\x70\x6F\x69\x6E\x74\x20\x61\x6C\x6C\x6F\x77\x73\x20\x79\x6F\x75\x20\x74\x6F\x20\x72\x65\x67\x69\x73\x74\x65\x72\x20\x61\x6C\x6C\x6F\x77\x65\x64\x20\x6F\x72\x69\x67\x69\x6E\x73\x20\x28\x69\x2E\x65\x2E\x20\x79\x6F\x75\x72\x20\x64\x6F\x6D\x61\x69\x6E\x73\x29\x20\x66\x6F\x72\x20\x75\x73\x65\x20\x69\x6E\x20\x63\x72\x6F\x73\x73\x2D\x6F\x72\x69\x67\x69\x6E\x20\x72\x65\x73\x6F\x75\x72\x63\x65\x20\x73\x68\x61\x72\x69\x6E\x67\x20\x28\x5B\x43\x4F\x52\x53\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x65\x6E\x2E\x77\x69\x6B\x69\x70\x65\x64\x69\x61\x2E\x6F\x72\x67\x2F\x77\x69\x6B\x69\x2F\x43\x72\x6F\x73\x73\x2D\x6F\x72\x69\x67\x69\x6E\x5F\x72\x65\x73\x6F\x75\x72\x63\x65\x5F\x73\x68\x61\x72\x69\x6E\x67\x29\x29\x2E\n\x20\n\x45\x6E\x61\x62\x6C\x69\x6E\x67\x20\x43\x4F\x52\x53\x20\x77\x69\x74\x68\x20\x43\x6F\x64\x61\x74\x20\x69\x73\x20\x72\x65\x71\x75\x69\x72\x65\x64\x20\x62\x79\x20\x6F\x75\x72\x20\x65\x6D\x62\x65\x64\x64\x61\x62\x6C\x65\x20\x55\x49\x73\x20\x28\x73\x75\x63\x68\x20\x61\x73\x20\x5B\x43\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x73\x20\x53\x44\x4B\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x61\x75\x74\x68\x2D\x66\x6C\x6F\x77\x2F\x6F\x70\x74\x69\x6D\x69\x7A\x65\x2F\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x2D\x6D\x61\x6E\x61\x67\x65\x6D\x65\x6E\x74\x29\x20\x61\x6E\x64\x20\x5B\x4C\x69\x6E\x6B\x20\x53\x44\x4B\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x61\x75\x74\x68\x2D\x66\x6C\x6F\x77\x2F\x61\x75\x74\x68\x6F\x72\x69\x7A\x65\x2D\x65\x6D\x62\x65\x64\x64\x65\x64\x2D\x6C\x69\x6E\x6B\x29\x29\x20\x74\x6F\x20\x61\x63\x63\x65\x73\x73\x20\x43\x6F\x64\x61\x74\x27\x73\x20\x41\x50\x49\x20\x65\x6E\x64\x70\x6F\x69\x6E\x74\x73\x2E" - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ConnectionManagementAllowedOrigins' - examples: - Allowed origins: - $ref: '#/components/examples/connectionManagementAllowedOriginsResponse' + - Sync + parameters: + - $ref: '#/components/parameters/companyId' responses: '200': - $ref: '#/components/responses/ConnectionManagementAllowedOrigins' + description: Success + content: + application/json: + schema: + $ref: '#/components/schemas/CompanySyncStatus' + examples: {} '401': $ref: '#/components/responses/Unauthorized' '402': @@ -1278,24 +989,62 @@ paths: $ref: '#/components/responses/Internal-Server-Error' '503': $ref: '#/components/responses/Service-Unavailable' - '/companies/{companyId}/data/all': + description: Gets the status of the last successful sync + summary: Last successful sync + operationId: get-last-successful-sync + x-speakeasy-name-override: get-last-successful-sync parameters: - $ref: '#/components/parameters/companyId' - post: - summary: Refresh all data - operationId: refresh-company-data - x-speakeasy-name-override: all + '/companies/{companyId}/sync/expenses/syncs/latest/status': + get: + tags: + - Sync + parameters: + - $ref: '#/components/parameters/companyId' responses: - '204': - description: No Content - operationId: refresh-all-data-types - x-speakeasy-group: manage-data.refresh - x-speakeasy-name-override: all-data-types + '200': + description: Success + content: + application/json: + schema: + $ref: '#/components/schemas/CompanySyncStatus' + examples: {} + '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 the latest sync status + summary: Latest sync status + operationId: get-latest-sync + x-speakeasy-name-override: get-latest-sync + parameters: + - $ref: '#/components/parameters/companyId' + '/companies/{companyId}/sync/expenses/syncs/list/status': + parameters: + - $ref: '#/components/parameters/companyId' + get: + tags: + - Sync responses: - '204': - description: No Content - '400': - $ref: '#/components/responses/Malformed-Query' + '200': + description: Success + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/CompanySyncStatus' + examples: {} '401': $ref: '#/components/responses/Unauthorized' '402': @@ -1310,42 +1059,61 @@ paths: $ref: '#/components/responses/Internal-Server-Error' '503': $ref: '#/components/responses/Service-Unavailable' - description: |- - Refreshes all data types with `fetch on first link` set to `true` for a given company. - - This is an asynchronous operation, and will bring updated data into Codat from the linked integration for you to view. - - [Read more](https://docs.codat.io/core-concepts/data-type-settings) about data type settings and `fetch on first link`. + summary: List sync statuses + description: Gets a list of sync statuses + operationId: list-syncs + '/companies/{companyId}/sync/expenses/syncs/{syncId}/status': + get: tags: - - Refresh data - '/companies/{companyId}/data/queue/{dataType}': + - Sync + parameters: + - $ref: '#/components/parameters/companyId' + - $ref: '#/components/parameters/syncId' + responses: + '200': + description: Success + content: + application/json: + schema: + $ref: '#/components/schemas/CompanySyncStatus' + examples: {} + '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' + summary: Get sync status + description: Get the sync status for a specified sync + operationId: get-sync-by-id parameters: - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/dataType' - post: - summary: Refresh data type - operationId: refresh-data-type - x-speakeasy-name-override: by-data-type - description: |- - Refreshes a given data type for a given company. - - This is an asynchronous operation, and will bring updated data into Codat from the linked integration for you to view. - tags: - - Refresh data + - $ref: '#/components/parameters/syncId' + '/companies/{companyId}/sync/expenses/syncs/{syncId}/transactions': + get: parameters: - - schema: - type: string - format: uuid - in: query - name: connectionId - description: 'Optionally, provide a data connection id to only queue pull operations on that connection.' + - $ref: '#/components/parameters/companyId' + - $ref: '#/components/parameters/syncId' + - $ref: '#/components/parameters/page' + - $ref: '#/components/parameters/pageSize' responses: '200': - description: OK + description: Success content: application/json: schema: - $ref: '#/components/schemas/PullOperation' + $ref: '#/components/schemas/Transactions' + examples: {} + '400': + $ref: '#/components/responses/Malformed-Query' '401': $ref: '#/components/responses/Unauthorized' '402': @@ -1360,423 +1128,74 @@ paths: $ref: '#/components/responses/Internal-Server-Error' '503': $ref: '#/components/responses/Service-Unavailable' - - Manage data - '/companies/{companyId}/dataStatus': + tags: + - Transaction status + summary: List sync transactions + description: Gets the transactions and status for a sync + operationId: list-sync-transactions parameters: - $ref: '#/components/parameters/companyId' + - $ref: '#/components/parameters/syncId' + '/companies/{companyId}/sync/expenses/syncs/{syncId}/transactions/{transactionId}': get: - summary: Get data status - operationId: get-company-data-status - description: Get the state of each data type for a company + parameters: + - $ref: '#/components/parameters/companyId' + - $ref: '#/components/parameters/syncId' + - $ref: '#/components/parameters/transactionId' + responses: + '200': + description: Success + content: + application/json: + schema: + $ref: '#/components/schemas/TransactionResponse' + examples: {} + '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' tags: - - Refresh data - operationId: get-data-status - x-speakeasy-group: manage-data - x-speakeasy-name-override: get-status - description: Get the state of each data type for a company + - Transaction status + summary: Get sync transaction + description: Gets the status of a transaction for a sync + operationId: get-sync-transaction + parameters: + - $ref: '#/components/parameters/companyId' + - $ref: '#/components/parameters/syncId' + - $ref: '#/components/parameters/transactionId' + '/companies/{companyId}/sync/expenses/expense-transactions': + parameters: + - $ref: '#/components/parameters/companyId' + post: + summary: Create expense transaction + operationId: create-expense-transaction + description: "The *Create expense* endpoint creates an [expense transaction](https://docs.codat.io/sync-for-expenses-api#/schemas/ExpenseTransaction) in the accounting software for a given company's connection. \n\n[Expense transactions](https://docs.codat.io/sync-for-expenses-api#/schemas/ExpenseTransaction) represent transactions made with a company debit or credit card. \n\n### Supported Integrations\n\n| Integration | Supported |\n|-------------------------------|-----------|\n| Dynamics 365 Business Central | Yes |\n| FreeAgent | Yes |\n| QuickBooks Desktop | Yes |\n| QuickBooks Online | Yes |\n| Oracle NetSuite | Yes |\n| Xero | Yes |" tags: - - Manage data + - Expenses responses: '200': description: OK content: application/json: + x-speakeasy-usage-example: true schema: - $ref: '#/components/schemas/DataStatuses' - title: Data statuses - x-internal: true - type: object - properties: - accountTransactions: - $ref: '#/components/schemas/DataStatus' - nullable: true - balanceSheet: - $ref: '#/components/schemas/DataStatus' - nullable: true - bankAccounts: - $ref: '#/components/schemas/DataStatus' - nullable: true - bankTransactions: - $ref: '#/components/schemas/DataStatus' - nullable: true - billCreditNotes: - $ref: '#/components/schemas/DataStatus' - nullable: true - billPayments: - $ref: '#/components/schemas/DataStatus' - nullable: true - bills: - $ref: '#/components/schemas/DataStatus' - nullable: true - cashFlowStatement: - $ref: '#/components/schemas/DataStatus' - nullable: true - chartOfAccounts: - $ref: '#/components/schemas/DataStatus' - nullable: true - company: - $ref: '#/components/schemas/DataStatus' - nullable: true - creditNotes: - $ref: '#/components/schemas/DataStatus' - nullable: true - customers: - $ref: '#/components/schemas/DataStatus' - nullable: true - directCosts: - $ref: '#/components/schemas/DataStatus' - nullable: true - directIncomes: - $ref: '#/components/schemas/DataStatus' - nullable: true - invoices: - $ref: '#/components/schemas/DataStatus' - nullable: true - itemReceipts: - $ref: '#/components/schemas/DataStatus' - nullable: true - items: - $ref: '#/components/schemas/DataStatus' - nullable: true - journalEntries: - $ref: '#/components/schemas/DataStatus' - nullable: true - journals: - $ref: '#/components/schemas/DataStatus' - nullable: true - paymentMethods: - $ref: '#/components/schemas/DataStatus' - nullable: true - payments: - $ref: '#/components/schemas/DataStatus' - nullable: true - profitAndLoss: - $ref: '#/components/schemas/DataStatus' - nullable: true - purchaseOrders: - $ref: '#/components/schemas/DataStatus' - nullable: true - salesOrders: - $ref: '#/components/schemas/DataStatus' - nullable: true - suppliers: - $ref: '#/components/schemas/DataStatus' - nullable: true - taxRates: - $ref: '#/components/schemas/DataStatus' - nullable: true - trackingCategories: - $ref: '#/components/schemas/DataStatus' - nullable: true - transfers: - $ref: '#/components/schemas/DataStatus' - nullable: true - banking-accountBalances: - $ref: '#/components/schemas/DataStatus' - nullable: true - banking-accounts: - $ref: '#/components/schemas/DataStatus' - nullable: true - banking-transactionCategories: - $ref: '#/components/schemas/DataStatus' - nullable: true - banking-transactions: - $ref: '#/components/schemas/DataStatus' - nullable: true - commerce-companyInfo: - $ref: '#/components/schemas/DataStatus' - nullable: true - commerce-customers: - $ref: '#/components/schemas/DataStatus' - nullable: true - commerce-disputes: - $ref: '#/components/schemas/DataStatus' - nullable: true - commerce-locations: - $ref: '#/components/schemas/DataStatus' - nullable: true - commerce-orders: - $ref: '#/components/schemas/DataStatus' - nullable: true - commerce-paymentMethods: - $ref: '#/components/schemas/DataStatus' - nullable: true - commerce-payments: - $ref: '#/components/schemas/DataStatus' - nullable: true - commerce-productCategories: - $ref: '#/components/schemas/DataStatus' - nullable: true - commerce-products: - $ref: '#/components/schemas/DataStatus' - nullable: true - commerce-taxComponents: - $ref: '#/components/schemas/DataStatus' - nullable: true - commerce-transactions: - $ref: '#/components/schemas/DataStatus' - nullable: true + $ref: '#/components/schemas/CreateExpenseResponse' examples: - Example: + Example 1: value: - accountTransactions: - dataType: accountTransactions - lastSuccessfulSync: '2022-01-01T00:00:00.000Z' - currentStatus: Complete - latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 - latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f - balanceSheet: - dataType: balanceSheet - lastSuccessfulSync: '2022-01-01T00:00:00.000Z' - currentStatus: Complete - latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 - latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f - bankAccounts: - dataType: bankAccounts - lastSuccessfulSync: '2022-01-01T00:00:00.000Z' - currentStatus: Complete - latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 - latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f - bankTransactions: - dataType: bankTransactions - lastSuccessfulSync: '2022-01-01T00:00:00.000Z' - currentStatus: Complete - latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 - latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f - billCreditNotes: - dataType: billCreditNotes - lastSuccessfulSync: '2022-01-01T00:00:00.000Z' - currentStatus: Complete - latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 - latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f - billPayments: - dataType: billPayments - lastSuccessfulSync: '2022-01-01T00:00:00.000Z' - currentStatus: Complete - latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 - latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f - bills: - dataType: bills - lastSuccessfulSync: '2022-01-01T00:00:00.000Z' - currentStatus: Complete - latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 - latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f - cashFlowStatement: - dataType: cashFlowStatement - lastSuccessfulSync: '2022-01-01T00:00:00.000Z' - currentStatus: Complete - latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 - latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f - chartOfAccounts: - dataType: chartOfAccounts - lastSuccessfulSync: '2022-01-01T00:00:00.000Z' - currentStatus: Complete - latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 - latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f - company: - dataType: company - lastSuccessfulSync: '2022-01-01T00:00:00.000Z' - currentStatus: Complete - latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 - latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f - creditNotes: - dataType: creditNotes - lastSuccessfulSync: '2022-01-01T00:00:00.000Z' - currentStatus: Complete - latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 - latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f - customers: - dataType: customers - lastSuccessfulSync: '2022-01-01T00:00:00.000Z' - currentStatus: Complete - latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 - latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f - directCosts: - dataType: directCosts - lastSuccessfulSync: '2022-01-01T00:00:00.000Z' - currentStatus: Complete - latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 - latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f - directIncomes: - dataType: directIncomes - lastSuccessfulSync: '2022-01-01T00:00:00.000Z' - currentStatus: Complete - latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 - latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f - invoices: - dataType: invoices - lastSuccessfulSync: '2022-01-01T00:00:00.000Z' - currentStatus: Complete - latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 - latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f - itemReceipts: - dataType: itemReceipts - lastSuccessfulSync: '2022-01-01T00:00:00.000Z' - currentStatus: Complete - latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 - latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f - items: - dataType: items - lastSuccessfulSync: '2022-01-01T00:00:00.000Z' - currentStatus: Complete - latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 - latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f - journalEntries: - dataType: journalEntries - lastSuccessfulSync: '2022-01-01T00:00:00.000Z' - currentStatus: Complete - latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 - latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f - journals: - dataType: journals - lastSuccessfulSync: '2022-01-01T00:00:00.000Z' - currentStatus: Complete - latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 - latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f - paymentMethods: - dataType: paymentMethods - lastSuccessfulSync: '2022-01-01T00:00:00.000Z' - currentStatus: Complete - latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 - latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f - payments: - dataType: payments - lastSuccessfulSync: '2022-01-01T00:00:00.000Z' - currentStatus: Complete - latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 - latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f - profitAndLoss: - dataType: profitAndLoss - lastSuccessfulSync: '2022-01-01T00:00:00.000Z' - currentStatus: Complete - latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 - latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f - purchaseOrders: - dataType: purchaseOrders - lastSuccessfulSync: '2022-01-01T00:00:00.000Z' - currentStatus: Complete - latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 - latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f - salesOrders: - dataType: salesOrders - lastSuccessfulSync: '2022-01-01T00:00:00.000Z' - currentStatus: Complete - latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 - latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f - suppliers: - dataType: suppliers - lastSuccessfulSync: '2022-01-01T00:00:00.000Z' - currentStatus: Complete - latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 - latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f - taxRates: - dataType: taxRates - lastSuccessfulSync: '2022-01-01T00:00:00.000Z' - currentStatus: Complete - latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 - latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f - trackingCategories: - dataType: trackingCategories - lastSuccessfulSync: '2022-01-01T00:00:00.000Z' - currentStatus: Complete - latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 - latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f - transfers: - dataType: transfers - lastSuccessfulSync: '2022-01-01T00:00:00.000Z' - currentStatus: Complete - latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 - latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f - banking-accountBalances: - dataType: banking-accountBalances - lastSuccessfulSync: '2022-01-01T00:00:00.000Z' - currentStatus: Complete - latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 - latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f - banking-accounts: - dataType: banking-accounts - lastSuccessfulSync: '2022-01-01T00:00:00.000Z' - currentStatus: Complete - latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 - latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f - banking-transactionCategories: - dataType: banking-transactionCategories - lastSuccessfulSync: '2022-01-01T00:00:00.000Z' - currentStatus: Complete - latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 - latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f - banking-transactions: - dataType: banking-transactions - lastSuccessfulSync: '2022-01-01T00:00:00.000Z' - currentStatus: Complete - latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 - latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f - commerce-companyInfo: - dataType: commerce-companyInfo - lastSuccessfulSync: '2022-01-01T00:00:00.000Z' - currentStatus: Complete - latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 - latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f - commerce-customers: - dataType: commerce-customers - lastSuccessfulSync: '2022-01-01T00:00:00.000Z' - currentStatus: Complete - latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 - latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f - commerce-disputes: - dataType: commerce-disputes - lastSuccessfulSync: '2022-01-01T00:00:00.000Z' - currentStatus: Complete - latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 - latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f - commerce-locations: - dataType: commerce-locations - lastSuccessfulSync: '2022-01-01T00:00:00.000Z' - currentStatus: Complete - latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 - latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f - commerce-orders: - dataType: commerce-orders - lastSuccessfulSync: '2022-01-01T00:00:00.000Z' - currentStatus: Complete - latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 - latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f - commerce-paymentMethods: - dataType: commerce-paymentMethods - lastSuccessfulSync: '2022-01-01T00:00:00.000Z' - currentStatus: Complete - latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 - latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f - commerce-payments: - dataType: commerce-payments - lastSuccessfulSync: '2022-01-01T00:00:00.000Z' - currentStatus: Complete - latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 - latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f - commerce-productCategories: - dataType: commerce-productCategories - lastSuccessfulSync: '2022-01-01T00:00:00.000Z' - currentStatus: Complete - latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 - latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f - commerce-products: - dataType: commerce-products - lastSuccessfulSync: '2022-01-01T00:00:00.000Z' - currentStatus: Complete - latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 - latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f - commerce-taxComponents: - dataType: commerce-taxComponents - lastSuccessfulSync: '2022-01-01T00:00:00.000Z' - currentStatus: Complete - latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 - latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f - commerce-transactions: - dataType: commerce-transactions - lastSuccessfulSync: '2022-01-01T00:00:00.000Z' - currentStatus: Complete - latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 - latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f + syncId: cd937d46-8e41-43a9-9477-a79158ffd98a + '400': + $ref: '#/components/responses/BadRequest' '401': $ref: '#/components/responses/Unauthorized' '402': @@ -1791,37 +1210,78 @@ paths: $ref: '#/components/responses/Internal-Server-Error' '503': $ref: '#/components/responses/Service-Unavailable' - '/companies/{companyId}/data/queue/{dataType}': + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CreateExpenseRequest' + examples: + Payment: + value: + - id: 4d7c6929-7770-412b-91bb-44d3bc71d111 + type: Payment + issueDate: '2024-05-21T00:00:00+00:00' + currency: GBP + currencyRate: 1 + contactRef: + id: '430' + type: Supplier + bankAccountRef: + id: '97' + merchantName: Amazon UK + notes: 'APPLE.COM/BILL - 09001077498 - Card Ending: 4590' + lines: + - netAmount: 100 + taxAmount: 20 + taxRateRef: + id: 23_Bills + accountRef: + id: '35' + trackingRefs: + - id: DEPARTMENT_5 + dataType: trackingCategories + invoiceTo: + id: '504' + type: customer + Refund: + value: + - id: 7008d3f2-aeb4-11ed-afa1-0242ac120002 + type: Refund + issueDate: '2024-02-17T00:00:00+00:00' + currency: GBP + contactRef: + id: '430' + type: Supplier + bankAccountRef: + id: '97' + merchantName: Amazon UK + notes: 'APPLE.COM/BILL - 09001077498 - Card Ending: 4590' + lines: + - netAmount: 100 + taxAmount: 20 + taxRateRef: + id: 23_Bills + accountRef: + id: '42' + trackingRefs: + - id: DEPARTMENT_6 + '/companies/{companyId}/sync/expenses/expense-transactions/{transactionId}': parameters: - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/dataType' - post: - summary: Refresh data type - operationId: refresh-data-type - x-speakeasy-group: manage-data.refresh - x-speakeasy-name-override: data-type - description: |- - Refreshes a given data type for a given company. - - This is an asynchronous operation, and will bring updated data into Codat from the linked integration for you to view. + - $ref: '#/components/parameters/transactionId' + put: + summary: Update expense transactions tags: - - Manage data - parameters: - - schema: - type: string - format: uuid - in: query - name: connectionId - description: 'Optionally, provide a data connection id to only queue pull operations on that connection.' + - Expenses responses: - '200': - description: OK + '202': + description: Accepted content: application/json: schema: - $ref: '#/components/schemas/PullOperation' + $ref: '#/components/schemas/UpdateExpenseResponse' '400': - $ref: '#/components/responses/Malformed-Query' + $ref: '#/components/responses/BadRequest' '401': $ref: '#/components/responses/Unauthorized' '402': @@ -1830,56 +1290,72 @@ paths: $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/Not-Found' + '422': + $ref: '#/components/responses/Unprocessable-Content' '429': $ref: '#/components/responses/Too-Many-Requests' '500': $ref: '#/components/responses/Internal-Server-Error' '503': $ref: '#/components/responses/Service-Unavailable' - '/companies/{companyId}/data/history': + operationId: update-expense-transaction + description: "The *Update expense* endpoint updates an existing [expense transaction](https://docs.codat.io/sync-for-expenses-api#/schemas/UpdateExpenseRequest) in the accounting software for a given company's connection. \n\n[Expense transactions](https://docs.codat.io/sync-for-expenses-api#/schemas/UpdateExpenseRequest) represent transactions made with a company debit or credit card. \n\n### Supported Integrations\nThe following integrations are supported for the [Payment](https://docs.codat.io/expenses/sync-process/expense-transactions#transaction-types) transaction `type` only: \n| Integration | Supported |\n|-----------------------|-----------|\n| FreeAgent | Yes |\n| QuickBooks Online | Yes |\n| Oracle NetSuite | Yes |\n| Xero | Yes |" + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UpdateExpenseRequest' + examples: + Payment: + value: + type: Payment + issueDate: '2024-05-21T00:00:00+00:00' + currency: GBP + currencyRate: 1 + contactRef: + id: '430' + type: Supplier + bankAccountRef: + id: '97' + merchantName: Amazon UK + notes: 'APPLE.COM/BILL - 09001077498 - Card Ending: 4590' + lines: + - netAmount: 100 + taxAmount: 20 + taxRateRef: + id: 23_Bills + accountRef: + id: '35' + trackingRefs: + - id: DEPARTMENT_5 + dataType: trackingCategories + invoiceTo: + id: '504' + type: customer + '/companies/{companyId}/sync/expenses/transfer-transactions/{transactionId}': parameters: - $ref: '#/components/parameters/companyId' - get: - summary: List pull operations + - $ref: '#/components/parameters/transactionId' + put: + summary: Create transfer transaction + operationId: create-transfer-transaction + description: "Use the *Create transfer* endpoint to create or update a [transfer transaction](https://docs.codat.io/sync-for-expenses-api#/schemas/TransferTransactionRequest) in the accounting software for a given company's connection. \r\n\r\nTransfers record the movement of money between two bank accounts, or between a bank account and a nominal account. Use them to represent actions such as topping up a debit card account or a balance transfer to another credit card.\r\n\r\nThe `from.amount` and `to.amount` fields are in the native currency of the account.\r\n\r\n### Supported Integrations\r\n| Integration | Supported |\r\n|-----------------------|-----------|\r\n| FreeAgent | Yes |\r\n| QuickBooks Desktop | Yes |\r\n| QuickBooks Online | Yes |\r\n| Xero | Yes |" tags: - - Refresh data - operationId: list-pull-operations - x-speakeasy-name-override: list-pull-operations - - Manage data - operationId: list-pull-operations - x-speakeasy-group: manage-data.pull-operations + - Transfers responses: '200': description: OK content: application/json: + x-speakeasy-usage-example: true schema: - $ref: '#/components/schemas/PullOperations' + $ref: '#/components/schemas/TransferTransactionResponse' examples: - Example: + Example 1: value: - results: - - id: 97d60846-f07a-4d42-b5a0-0bdcc6ebf56b - companyId: 4645bd78-8988-45bc-ac9e-67ba5df6e4e5 - connectionId: 51baa045-4836-4317-a42e-3542e991e581 - dataType: invoices - status: Initial - requested: '2022-11-14T11:18:37.2798351Z' - progress: 10 - isCompleted: false - isErrored: false - _links: - current: - href: /companies/17129e41-5389-4f10-ac06-e0a37e47d177/data/history?page=1&pageSize=2 - self: - href: /companies/17129e41-5389-4f10-ac06-e0a37e47d177/data/history - next: - href: /companies/17129e41-5389-4f10-ac06-e0a37e47d177/data/history?page=2&pageSize=2 - pageNumber: 0 - pageSize: 0 - totalResults: 0 + syncId: cd937d46-8e41-43a9-9477-a79158ffd98a '400': - $ref: '#/components/responses/Malformed-Query' + $ref: '#/components/responses/BadRequest' '401': $ref: '#/components/responses/Unauthorized' '402': @@ -1894,33 +1370,47 @@ paths: $ref: '#/components/responses/Internal-Server-Error' '503': $ref: '#/components/responses/Service-Unavailable' - description: Gets the pull operation history (datasets) for a given company. - parameters: - - $ref: '#/components/parameters/page' - - $ref: '#/components/parameters/pageSize' - - $ref: '#/components/parameters/query' - - $ref: '#/components/parameters/orderBy' - '/companies/{companyId}/data/history/{datasetId}': + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/TransferTransactionRequest' + examples: + Create transfer: + value: + description: Sample transfer description + date: '2021-05-21T00:00:00+00:00' + from: + accountRef: + id: 787dfb37-5707-4dc0-8a86-8d74e4cc78ea + amount: 100 + to: + accountRef: + id: 777dfb37-5506-3dc0-6g86-8d34z4cc78ea + amount: 100 + '/companies/{companyId}/sync/expenses/adjustment-transactions': parameters: - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/datasetId' - get: - summary: Get pull operation - operationId: get-pull-operation - x-speakeasy-name-override: get-pull-operation - tags: - - Refresh data - x-speakeasy-group: manage-data.pull-operations + post: + summary: Create adjustment transaction + operationId: create-adjustment-transaction + description: "Use the *Create adjustment expense* endpoint to create an [adjustment](https://docs.codat.io/sync-for-expenses-api#/schemas/AdjustmentTransactionRequest) in the accounting software for a given company's connection. \n\nAdjustments represent write-offs and transaction alterations, such as foreign exchange adjustments, in the form of a journal entry. \n\n### Supported Integrations\n\n| Integration | Supported |\n|-----------------------|-----------|\n| QuickBooks Desktop | Yes |" tags: - - Manage data + - Adjustments responses: '200': description: OK content: application/json: + x-speakeasy-usage-example: true schema: - $ref: '#/components/schemas/PullOperation' - examples: {} + $ref: '#/components/schemas/AdjustmentTransactionResponse' + examples: + Example 1: + value: + syncId: cd937d46-8e41-43a9-9477-a79158ffd98a + '400': + $ref: '#/components/responses/BadRequest' '401': $ref: '#/components/responses/Unauthorized' '402': @@ -1935,134 +1425,128 @@ paths: $ref: '#/components/responses/Internal-Server-Error' '503': $ref: '#/components/responses/Service-Unavailable' - description: Retrieve information about a single dataset or pull operation. - /webhooks: - get: - summary: List webhook consumers - operationId: list-webhook-consumers - x-speakeasy-name-override: list-consumers - description: "\uFEFF\x55\x73\x65\x20\x74\x68\x65\x20\x2A\x4C\x69\x73\x74\x20\x77\x65\x62\x68\x6F\x6F\x6B\x20\x63\x6F\x6E\x73\x75\x6D\x65\x72\x73\x2A\x20\x65\x6E\x64\x70\x6F\x69\x6E\x74\x20\x74\x6F\x20\x72\x65\x74\x75\x72\x6E\x20\x61\x20\x6C\x69\x73\x74\x20\x6F\x66\x20\x61\x6C\x6C\x20\x77\x65\x62\x68\x6F\x6F\x6B\x20\x63\x6F\x6E\x73\x75\x6D\x65\x72\x73\x20\x74\x68\x61\x74\x20\x63\x75\x72\x72\x65\x6E\x74\x6C\x79\x20\x65\x78\x69\x73\x74\x20\x66\x6F\x72\x20\x79\x6F\x75\x72\x20\x63\x6C\x69\x65\x6E\x74\x2E\n\n\x5B\x57\x65\x62\x68\x6F\x6F\x6B\x20\x63\x6F\x6E\x73\x75\x6D\x65\x72\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x70\x6C\x61\x74\x66\x6F\x72\x6D\x2D\x61\x70\x69\x23\x2F\x73\x63\x68\x65\x6D\x61\x73\x2F\x57\x65\x62\x68\x6F\x6F\x6B\x43\x6F\x6E\x73\x75\x6D\x65\x72\x29\x20\x69\x73\x20\x61\x6E\x20\x48\x54\x54\x50\x20\x65\x6E\x64\x70\x6F\x69\x6E\x74\x20\x74\x68\x61\x74\x20\x79\x6F\x75\x20\x63\x6F\x6E\x66\x69\x67\x75\x72\x65\x20\x74\x6F\x20\x73\x75\x62\x73\x63\x72\x69\x62\x65\x20\x74\x6F\x20\x73\x70\x65\x63\x69\x66\x69\x63\x20\x65\x76\x65\x6E\x74\x73\x2E\x20\x53\x65\x65\x20\x6F\x75\x72\x20\x64\x6F\x63\x75\x6D\x65\x6E\x74\x61\x74\x69\x6F\x6E\x20\x66\x6F\x72\x20\x6D\x6F\x72\x65\x20\x64\x65\x74\x61\x69\x6C\x73\x20\x6F\x6E\x20\x5B\x43\x6F\x64\x61\x74\x27\x73\x20\x77\x65\x62\x68\x6F\x6F\x6B\x20\x73\x65\x72\x76\x69\x63\x65\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x75\x73\x69\x6E\x67\x2D\x74\x68\x65\x2D\x61\x70\x69\x2F\x77\x65\x62\x68\x6F\x6F\x6B\x73\x2F\x6F\x76\x65\x72\x76\x69\x65\x77\x29\x2E" - tags: - - Webhooks - '/data/companies/{companyId}/assess/dataTypes/{dataType}/dataIntegrity/status': + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CreateAdjustmentRequest' + examples: + Create adjustment: + value: + - id: 3357b3df-5f2e-465d-b9ba-226519dbb8f1 + date: '2024-05-21T00:00:00+00:00' + currency: USD + currencyRate: 1 + reference: test reference + lines: + - amount: 50 + accountRef: + id: 80000018-1671793811 + description: debit line + trackingRefs: + - id: 80000003-1674553958 + dataType: trackingCategories + invoiceTo: + id: 80000002-1674552702 + type: customer + - amount: -50 + accountRef: + id: 80000028-1671794219 + description: credit line + trackingRefs: + - id: 80000003-1674553958 + dataType: trackingCategories + '/companies/{companyId}/sync/expenses/reimbursable-expense-transactions': parameters: - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/dataIntegrityDataType' - get: - summary: Get data integrity status + post: + summary: Create reimbursable expense transaction + operationId: create-reimbursable-expense-transaction + description: "Use the *Create reimbursable expense* endpoint to submit an employee expense claim in the accounting platform for a given company's connection.\r\n\r\n[Reimbursable expense requests](https://docs.codat.io/sync-for-expenses-api#/schemas/ReimbursableExpenseTransactionRequest) are reflected in the accounting software in the form of **Bills** against an employee (who exists as a supplier in the accounting platform).\r\n\r\n### Supported Integrations\r\n| Integration | Supported |\r\n|-----------------------|-----------|\r\n| FreeAgent | Yes |\r\n| QuickBooks Desktop | Yes |\r\n| QuickBooks Online | Yes |\r\n| Oracle NetSuite | Yes |" tags: - - Data integrity + - Reimbursements responses: '200': description: OK content: application/json: + x-speakeasy-usage-example: true schema: - $ref: '#/components/schemas/WebhookConsumer/definitions/webhookConsumers' + $ref: '#/components/schemas/CreateReimbursableExpenseResponse' examples: - Webhook consumers: + Example 1: value: - results: - - id: 12571faf-0898-47e7-afdd-0fe9eb0a9bf5 - url: 'https://example.com/webhoook-consumers/sync-complete' - eventTypes: - - DataSyncCompleted - disabled: false - - id: ca3cac86-7925-4759-abc2-96405780fdfa - url: 'https://example.com/webhoook-consumers/dataset-changed' - eventTypes: - - DatasetDataChanged - disabled: true + syncId: cd937d46-8e41-43a9-9477-a79158ffd98a '400': - $ref: '#/components/responses/Bad-Request' + $ref: '#/components/responses/BadRequest' '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' - post: - summary: Create webhook consumer - operationId: create-webhook-consumer - x-speakeasy-name-override: create-consumer - description: "\uFEFF\x55\x73\x65\x20\x74\x68\x65\x20\x2A\x43\x72\x65\x61\x74\x65\x20\x77\x65\x62\x68\x6F\x6F\x6B\x20\x63\x6F\x6E\x73\x75\x6D\x65\x72\x2A\x20\x65\x6E\x64\x70\x6F\x69\x6E\x74\x20\x74\x6F\x20\x63\x72\x65\x61\x74\x65\x20\x61\x20\x6E\x65\x77\x20\x77\x65\x62\x68\x6F\x6F\x6B\x20\x63\x6F\x6E\x73\x75\x6D\x65\x72\x20\x74\x68\x61\x74\x20\x77\x69\x6C\x6C\x20\x6C\x69\x73\x74\x65\x6E\x20\x74\x6F\x20\x6D\x65\x73\x73\x61\x67\x65\x73\x20\x77\x65\x20\x73\x65\x6E\x64\x20\x79\x6F\x75\x2E\n\n\x5B\x57\x65\x62\x68\x6F\x6F\x6B\x20\x63\x6F\x6E\x73\x75\x6D\x65\x72\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x70\x6C\x61\x74\x66\x6F\x72\x6D\x2D\x61\x70\x69\x23\x2F\x73\x63\x68\x65\x6D\x61\x73\x2F\x57\x65\x62\x68\x6F\x6F\x6B\x43\x6F\x6E\x73\x75\x6D\x65\x72\x29\x20\x69\x73\x20\x61\x6E\x20\x48\x54\x54\x50\x20\x65\x6E\x64\x70\x6F\x69\x6E\x74\x20\x74\x68\x61\x74\x20\x79\x6F\x75\x20\x63\x6F\x6E\x66\x69\x67\x75\x72\x65\x20\x74\x6F\x20\x73\x75\x62\x73\x63\x72\x69\x62\x65\x20\x74\x6F\x20\x73\x70\x65\x63\x69\x66\x69\x63\x20\x65\x76\x65\x6E\x74\x73\x2E\x20\x53\x65\x65\x20\x6F\x75\x72\x20\x64\x6F\x63\x75\x6D\x65\x6E\x74\x61\x74\x69\x6F\x6E\x20\x66\x6F\x72\x20\x6D\x6F\x72\x65\x20\x64\x65\x74\x61\x69\x6C\x73\x20\x6F\x6E\x20\x5B\x43\x6F\x64\x61\x74\x27\x73\x20\x77\x65\x62\x68\x6F\x6F\x6B\x20\x73\x65\x72\x76\x69\x63\x65\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x75\x73\x69\x6E\x67\x2D\x74\x68\x65\x2D\x61\x70\x69\x2F\x77\x65\x62\x68\x6F\x6F\x6B\x73\x2F\x6F\x76\x65\x72\x76\x69\x65\x77\x29\x2E\n\n\x23\x23\x23\x20\x54\x69\x70\x73\x20\x61\x6E\x64\x20\x74\x72\x61\x70\x73\n\x2D\x20\x54\x68\x65\x20\x6E\x75\x6D\x62\x65\x72\x20\x6F\x66\x20\x77\x65\x62\x68\x6F\x6F\x6B\x20\x63\x6F\x6E\x73\x75\x6D\x65\x72\x73\x20\x79\x6F\x75\x20\x63\x61\x6E\x20\x63\x72\x65\x61\x74\x65\x20\x69\x73\x20\x6C\x69\x6D\x69\x74\x65\x64\x20\x74\x6F\x20\x35\x30\x2E\x20\x49\x66\x20\x79\x6F\x75\x20\x68\x61\x76\x65\x20\x72\x65\x61\x63\x68\x65\x64\x20\x74\x68\x65\x20\x6D\x61\x78\x69\x6D\x75\x6D\x20\x6E\x75\x6D\x62\x65\x72\x20\x6F\x66\x20\x63\x6F\x6E\x73\x75\x6D\x65\x72\x73\x2C\x20\x75\x73\x65\x20\x74\x68\x65\x20\x5B\x2A\x44\x65\x6C\x65\x74\x65\x20\x77\x65\x62\x68\x6F\x6F\x6B\x20\x63\x6F\x6E\x73\x75\x6D\x65\x72\x2A\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x70\x6C\x61\x74\x66\x6F\x72\x6D\x2D\x61\x70\x69\x23\x2F\x6F\x70\x65\x72\x61\x74\x69\x6F\x6E\x73\x2F\x64\x65\x6C\x65\x74\x65\x2D\x77\x65\x62\x68\x6F\x6F\x6B\x2D\x63\x6F\x6E\x73\x75\x6D\x65\x72\x29\x20\x65\x6E\x64\x70\x6F\x69\x6E\x74\x20\x74\x6F\x20\x64\x65\x6C\x65\x74\x65\x20\x61\x6E\x20\x75\x6E\x75\x73\x65\x64\x20\x63\x6F\x6E\x73\x75\x6D\x65\x72\x20\x66\x69\x72\x73\x74\x2E" - tags: - - Webhooks requestBody: content: application/json: schema: - $ref: '#/components/schemas/WebhookConsumer/definitions/webhookConsumerPrototype' + $ref: '#/components/schemas/ReimbursableExpenseTransactionRequest' examples: - Subscribe consumer to one or more event types: + Create reimbursable expense: value: - url: 'https://example.com/webhoook-consumer' - eventTypes: - - DataSyncCompleted - - Dataset data changed - Subscribe consumer with disabled endpoint: - value: - url: 'https://example.com/webhoook-consumer' - eventTypes: - - DataSyncCompleted - disabled: true + - id: 4d7c6929-7770-412b-91bb-44d3bc71d111 + reference: expenses w/c 01/07 + contactRef: + id: '752' + issueDate: '2024-05-21' + dueDate: '2024-05-21' + currency: GBP + currencyRate: 1 + notes: 'APPLE.COM/BILL - 09001077498 - Card Ending: 4590' + lines: + - description: Hotel + netAmount: 100 + taxAmount: 20 + taxRateRef: + id: 23_Bills + accountRef: + id: '35' + trackingRefs: + - id: DEPARTMENT_5 + dataType: trackingCategories + invoiceTo: + id: '504' + type: customer + '/companies/{companyId}/sync/expenses/reimbursable-expense-transactions/{transactionId}': + parameters: + - $ref: '#/components/parameters/companyId' + - $ref: '#/components/parameters/transactionId' + put: + summary: Update reimbursable expense transaction + operationId: update-reimbursable-expense-transaction + description: "The *Update reimbursable expense* endpoint updates an existing employee expense claim in the accounting platform for a given company's connection. \r\n\r\nUpdating an existing [reimbursable expense transaction](https://docs.codat.io/sync-for-expenses-api#/schemas/UpdateReimbursableExpenseTransactionRequest) will update the existing **bill** against an employee (who exists as a supplier in the accounting software).\r\n\r\n### Supported Integrations\r\n| Integration | Supported |\r\n|-----------------------|-----------|\r\n| FreeAgent | Yes |\r\n| QuickBooks Online | Yes |\r\n| Oracle NetSuite | Yes |" + tags: + - Reimbursements responses: - '201': + '200': description: OK content: application/json: schema: - $ref: '#/components/schemas/WebhookConsumer' + $ref: '#/components/schemas/CreateReimbursableExpenseResponse' examples: - Subscribe consumer to one or more event types: - value: - id: 12571faf-0898-47e7-afdd-0fe9eb0a9bf5 - url: 'https://example.com/webhoook-consumer' - eventTypes: - - DataSyncCompleted - - DatasetDataChanged - disabled: false - Subscribe consumer with disabled endpoint: + Example 1: value: - id: 12571faf-0898-47e7-afdd-0fe9eb0a9bf5 - url: 'https://example.com/webhoook-consumer' - eventTypes: - - DataSyncCompleted - disabled: true + syncId: cd937d46-8e41-43a9-9477-a79158ffd98a '400': - $ref: '#/components/responses/Bad-Request' - '401': - $ref: '#/components/responses/Unauthorized' - '402': - $ref: '#/components/responses/Payment-Required' - '403': - $ref: '#/components/responses/Forbidden' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - '/webhooks/{webhookId}': - parameters: - - $ref: '#/components/parameters/webhookId' - delete: - summary: Delete webhook consumer - operationId: delete-webhook-consumer - x-speakeasy-name-override: delete-consumer - description: "\uFEFF\x55\x73\x65\x20\x74\x68\x65\x20\x2A\x44\x65\x6C\x65\x74\x65\x20\x77\x65\x62\x68\x6F\x6F\x6B\x20\x63\x6F\x6E\x73\x75\x6D\x65\x72\x2A\x20\x65\x6E\x64\x70\x6F\x69\x6E\x74\x20\x74\x6F\x20\x64\x65\x6C\x65\x74\x65\x20\x61\x6E\x20\x65\x78\x69\x73\x74\x69\x6E\x67\x20\x77\x65\x62\x68\x6F\x6F\x6F\x6B\x20\x63\x6F\x6E\x73\x75\x6D\x65\x72\x2C\x20\x70\x72\x6F\x76\x69\x64\x69\x6E\x67\x20\x69\x74\x73\x20\x76\x61\x6C\x69\x64\x20\x60\x69\x64\x60\x20\x61\x73\x20\x61\x20\x70\x61\x72\x61\x6D\x65\x74\x65\x72\x2E\n\n\x5B\x57\x65\x62\x68\x6F\x6F\x6B\x20\x63\x6F\x6E\x73\x75\x6D\x65\x72\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x70\x6C\x61\x74\x66\x6F\x72\x6D\x2D\x61\x70\x69\x23\x2F\x73\x63\x68\x65\x6D\x61\x73\x2F\x57\x65\x62\x68\x6F\x6F\x6B\x43\x6F\x6E\x73\x75\x6D\x65\x72\x29\x20\x69\x73\x20\x61\x6E\x20\x48\x54\x54\x50\x20\x65\x6E\x64\x70\x6F\x69\x6E\x74\x20\x74\x68\x61\x74\x20\x79\x6F\x75\x20\x63\x6F\x6E\x66\x69\x67\x75\x72\x65\x20\x74\x6F\x20\x73\x75\x62\x73\x63\x72\x69\x62\x65\x20\x74\x6F\x20\x73\x70\x65\x63\x69\x66\x69\x63\x20\x65\x76\x65\x6E\x74\x73\x2E\x20\x53\x65\x65\x20\x6F\x75\x72\x20\x64\x6F\x63\x75\x6D\x65\x6E\x74\x61\x74\x69\x6F\x6E\x20\x66\x6F\x72\x20\x6D\x6F\x72\x65\x20\x64\x65\x74\x61\x69\x6C\x73\x20\x6F\x6E\x20\x5B\x43\x6F\x64\x61\x74\x27\x73\x20\x77\x65\x62\x68\x6F\x6F\x6B\x20\x73\x65\x72\x76\x69\x63\x65\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x75\x73\x69\x6E\x67\x2D\x74\x68\x65\x2D\x61\x70\x69\x2F\x77\x65\x62\x68\x6F\x6F\x6B\x73\x2F\x6F\x76\x65\x72\x76\x69\x65\x77\x29\x2E" - tags: - - Webhooks - responses: - '204': - description: No content - $ref: '#/components/schemas/DataIntegrityStatuses' + $ref: '#/components/responses/BadRequest' '401': $ref: '#/components/responses/Unauthorized' '402': @@ -2077,110 +1561,55 @@ paths: $ref: '#/components/responses/Internal-Server-Error' '503': $ref: '#/components/responses/Service-Unavailable' - /webhooks/integrationKeys/zapier: + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UpdateReimbursableExpenseTransactionRequest' + examples: + Update reimbursable expense: + value: + reference: expenses w/c 01/07 + contactRef: + id: '752' + issueDate: '2024-05-21' + dueDate: '2024-05-21' + currency: GBP + currencyRate: 1 + notes: 'APPLE.COM/BILL - 09001077498 - Card Ending: 4590' + lines: + - description: Hotel + netAmount: 100 + taxAmount: 20 + taxRateRef: + id: 23_Bills + accountRef: + id: '35' + trackingRefs: + - id: DEPARTMENT_5 + dataType: trackingCategories + invoiceTo: + id: '504' + type: customer + '/companies/{companyId}/sync/expenses/syncs/{syncId}/transactions/{transactionId}/attachments': + parameters: + - $ref: '#/components/parameters/companyId' + - $ref: '#/components/parameters/syncId' + - $ref: '#/components/parameters/transactionId' post: - summary: Rotate Zapier key - operationId: rotate-zapier-key - x-speakeasy-ignore: true - description: "\uFEFF\x54\x68\x65\x20\x2A\x52\x6F\x74\x61\x74\x65\x20\x5A\x61\x70\x69\x65\x72\x20\x6B\x65\x79\x2A\x20\x65\x6E\x64\x70\x6F\x69\x6E\x74\x20\x72\x65\x74\x75\x72\x6E\x73\x20\x74\x68\x65\x20\x5A\x61\x70\x69\x65\x72\x20\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x20\x6B\x65\x79\x20\x6E\x65\x65\x64\x65\x64\x20\x74\x6F\x20\x63\x6F\x6E\x66\x69\x67\x75\x72\x65\x20\x5A\x61\x70\x73\x20\x74\x72\x69\x67\x67\x65\x72\x65\x64\x20\x62\x79\x20\x43\x6F\x64\x61\x74\x27\x73\x20\x77\x65\x62\x68\x6F\x6F\x6B\x73\x2E\x20\n\n\x49\x66\x20\x61\x20\x6B\x65\x79\x20\x68\x61\x73\x20\x61\x6C\x72\x65\x61\x64\x79\x20\x62\x65\x65\x6E\x20\x63\x72\x65\x61\x74\x65\x64\x2C\x20\x63\x61\x6C\x6C\x69\x6E\x67\x20\x74\x68\x69\x73\x20\x77\x69\x6C\x6C\x20\x72\x65\x76\x6F\x6B\x65\x20\x74\x68\x61\x74\x20\x65\x78\x69\x73\x74\x69\x6E\x67\x20\x6B\x65\x79\x2E\n\n\x54\x68\x65\x20\x6B\x65\x79\x20\x63\x68\x61\x6E\x67\x65\x73\x20\x65\x61\x63\x68\x20\x74\x69\x6D\x65\x20\x74\x68\x69\x73\x20\x65\x6E\x64\x70\x6F\x69\x6E\x74\x20\x69\x73\x20\x63\x61\x6C\x6C\x65\x64\x2E\x20\x49\x66\x20\x79\x6F\x75\x20\x61\x72\x65\x20\x61\x6C\x72\x65\x61\x64\x79\x20\x75\x73\x69\x6E\x67\x20\x6F\x75\x72\x20\x5A\x61\x70\x69\x65\x72\x20\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x20\x61\x6E\x64\x20\x63\x61\x6C\x6C\x65\x64\x20\x74\x68\x69\x73\x20\x65\x6E\x64\x70\x6F\x69\x6E\x74\x20\x61\x67\x61\x69\x6E\x2C\x20\x79\x6F\x75\x20\x6E\x65\x65\x64\x20\x74\x6F\x20\x72\x65\x61\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x20\x75\x73\x69\x6E\x67\x20\x74\x68\x65\x20\x6C\x61\x74\x65\x73\x74\x20\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x20\x6B\x65\x79\x20\x72\x65\x74\x75\x72\x6E\x65\x64\x20\x69\x6E\x20\x74\x68\x65\x20\x72\x65\x73\x70\x6F\x6E\x73\x65\x2E\n\n\x4F\x75\x72\x20\x5A\x61\x70\x69\x65\x72\x20\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x20\x6D\x61\x6B\x65\x73\x20\x69\x74\x20\x73\x69\x6D\x70\x6C\x65\x20\x66\x6F\x72\x20\x79\x6F\x75\x20\x74\x6F\x20\x73\x65\x74\x20\x75\x70\x20\x61\x6E\x64\x20\x72\x65\x63\x65\x69\x76\x65\x20\x75\x73\x65\x72\x20\x6E\x6F\x74\x69\x66\x69\x63\x61\x74\x69\x6F\x6E\x73\x20\x69\x6E\x20\x79\x6F\x75\x72\x20\x70\x72\x65\x66\x65\x72\x72\x65\x64\x20\x77\x61\x79\x73\x2C\x20\x73\x75\x63\x68\x20\x61\x73\x20\x76\x69\x61\x20\x65\x6D\x61\x69\x6C\x20\x6F\x72\x20\x53\x6C\x61\x63\x6B\x2E\x20\x53\x65\x65\x20\x6F\x75\x72\x20\x5B\x5A\x61\x70\x69\x65\x72\x20\x64\x6F\x63\x75\x6D\x65\x6E\x74\x61\x74\x69\x6F\x6E\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x75\x73\x69\x6E\x67\x2D\x74\x68\x65\x2D\x61\x70\x69\x2F\x77\x65\x62\x68\x6F\x6F\x6B\x73\x2F\x7A\x61\x70\x69\x65\x72\x2D\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x29\x20\x66\x6F\x72\x20\x64\x65\x74\x61\x69\x6C\x65\x64\x20\x69\x6E\x73\x74\x72\x75\x63\x74\x69\x6F\x6E\x73\x20\x6F\x6E\x20\x73\x65\x74\x74\x69\x6E\x67\x20\x75\x70\x20\x74\x68\x69\x73\x20\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x2E\n\n" - tags: - - Webhooks - responses: - '201': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/WebhookZapierKey' - examples: - Integration key: - value: - key: sk_integ_WM4dfoK1nKZnDE_kceze6hWDjbRwOZwG.us - '401': - $ref: '#/components/responses/Unauthorized' - '402': - $ref: '#/components/responses/Payment-Required' - '403': - $ref: '#/components/responses/Forbidden' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - /integrations: - get: - summary: List integrations - description: List your available integrations - tags: - - Integrations - operationId: list-integrations - operationId: get-data-integrity-status - x-speakeasy-name-override: status - description: |- - The *Get data integrity status* endpoint returns the [status](https://docs.codat.io/lending-api#/schemas/DataIntegrityStatus) for the company’s match results between the data type provided in the URL and other data types that Data Integrity uses to support matching. - This endpoint helps you understand whether match data is available and, if so, how to usefully query it. - - The response tells you: - - - Whether match results are available. - - When the results were generated, and their status. - - The connection IDs, amounts, and dates involved to support useful querying. - '/data/companies/{companyId}/assess/dataTypes/{dataType}/dataIntegrity/summaries': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/dataIntegrityDataType' - get: - summary: Get data integrity summaries - tags: - - Data integrity - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/Integrations' - $ref: '#/components/schemas/DataIntegritySummaries' - '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' - operationId: get-data-integrity-summaries - x-speakeasy-name-override: summaries - description: "The *Get data integrity summary* endpoint returns a [summary](https://docs.codat.io/lending-api#/schemas/DataIntegritySummary) of match results for a given data type filtered by a query string in the [Codat query language](https://docs.codat.io/using-the-api/querying). \n\nFor example, if you wanted to see summary match results only for transactions after 1 December 2020, you could include a query parameter of `query=date>2020-12-01`.\n\nThe endpoint response includes only the summary results, not transactions. To view match data for transactions, use the [List data integrity details](https://docs.codat.io/lending-api#/operations/get-data-integrity-summaries) endpoint." - parameters: - - $ref: '#/components/parameters/query' - '/data/companies/{companyId}/assess/dataTypes/{dataType}/dataIntegrity/details': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/dataIntegrityDataType' - get: - summary: List data integrity details - tags: - - Data integrity + summary: Upload attachment + operationId: upload-expense-attachment + x-speakeasy-name-override: upload responses: '200': description: OK content: application/json: schema: - $ref: '#/components/schemas/DataIntegrityDetails' + $ref: '#/components/schemas/Attachment' examples: {} '400': - $ref: '#/components/responses/Malformed-Query' + $ref: '#/components/responses/BadRequest' '401': $ref: '#/components/responses/Unauthorized' '402': @@ -2195,375 +1624,23 @@ paths: $ref: '#/components/responses/Internal-Server-Error' '503': $ref: '#/components/responses/Service-Unavailable' - operationId: list-data-integrity-details - x-speakeasy-name-override: details - parameters: - - $ref: '#/components/parameters/page' - - $ref: '#/components/parameters/pageSize' - - $ref: '#/components/parameters/query' - - $ref: '#/components/parameters/orderBy' - description: |- - The *List data integrity details* endpoint returns the match result record by record for a given data type, filtered based on a query string in the same way as summary results. - - The [details](https://docs.codat.io/lending-api#/schemas/DataIntegrityDetail) are paginated and support ordering, following the same conventions as our other data endpoints. - '/companies/{companyId}/reports/enhancedProfitAndLoss/accounts': + requestBody: + content: + multipart/form-data: + schema: + $ref: '#/components/schemas/AttachmentUpload' + tags: + - Attachments + description: "The *Upload attachment* endpoint uploads an attachment in the accounting software against the given transactionId. \n\n[Expense transactions](https://docs.codat.io/sync-for-expenses-api#/schemas/ExpenseTransaction) represent transactions made with a company debit or credit card. Attachments for `Adjustment` and `Transfer` transaction types are not supported for any integrations.\n\n**Integration-specific behaviour**\n\nEach accounting software supports different file formats and sizes.\n\n| Integration | File size | File extension |Supported transaction type\n|-------------------|-----------|------------------------------------------------------------------------------------------------------------------------------------------------|--------------|\n| **Xero** | 3 MB | 7Z, BMP, CSV, DOC, DOCX, EML, GIF, JPEG, JPG, KEYNOTE, MSG, NUMBERS, ODF, ODS, ODT, PAGES, PDF, PNG, PPT, PPTX, RAR, RTF, TIF, TIFF, TXT, XLS, XLSX, ZIP | All supported types |\n| **QuickBooks Online** | 100 MB | AI, CSV, DOC, DOCX, EPS, GIF, JPEG, JPG, ODS, PAGES, PDF, PNG, RTF, TIF, TXT, XLS, XLSX, XML | `ReimbursableExpenses`, `ExpensePayment`, `ExpenseRefund` |\n| **NetSuite** | 100 MB | BMP, CSV, XLS, XLSX, JSON, PDF, PJPG, PJPEG, PNG, TXT, SVG, TIF, TIFF, DOC, DOCX, ZIP |`ExpensePayment`, `ExpenseRefund` |\n| **Dynamics 365 Business Central** | 350 MB | [No explicit requirements outlined](https://learn.microsoft.com/en-gb/dynamics365/business-central/ui-how-add-link-to-record#to-attach-a-file-to-a-purchase-invoice) for text, image, and video files. | All supported types\n| **QuickBooks Desktop** | NA | Does not support attachment upload | N/A |\n| **FreeAgent** | 5MB | PNG, X-PNG, JPEG, PJG, GIF, X-PDF " + '/companies/{companyId}/data/all': parameters: - $ref: '#/components/parameters/companyId' - get: - summary: Get categorized profit and loss statement - description: |- - The *Get categorized profit and loss statement* endpoint returns a list of categorized accounts that appear on a company’s Profit and Loss statement. It also includes a balance as of the financial statement date. - - Codat suggests a category for each account automatically, but you can [change it](https://docs.codat.io/lending/features/financial-statements-overview#recategorizing-accounts) to a more suitable one. - tags: - - Financial statements + post: + summary: Refresh all data + operationId: refresh-all-data-types responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/EnhancedFinancialReport' - example: - reportInfo: - currency: GBP - reportName: EnhancedProfitAndLossAccounts - companyName: Biscuits - generatedDate: '2023-03-24T16:40:59.0847354Z' - reportItems: - - date: '2022-08-31T00:00:00' - balance: 830.93 - accountId: 04f7111b-55d4-4efc-b329-1bd5c791933a - accountName: Repairs & Maintenance - accountCategory: - status: Suggested - levels: - - levelName: Expense - confidence: 99.99 - - date: '2022-08-31T00:00:00' - balance: 12000 - accountId: 7f6a0e92-65be-4333-9a0a-d981b03bedd1 - accountName: Wages - accountCategory: - status: Suggested - levels: - - levelName: Expense - confidence: 99.99 - - levelName: CostOfSales - confidence: 99.99 - - date: '2022-08-31T00:00:00' - balance: 28937.71 - accountId: 7403e960-5b72-42ff-abf4-c870ad8910bd - accountName: Purchases - accountCategory: - status: Suggested - levels: - - levelName: Expense - confidence: 99.99 - - levelName: CostOfSales - confidence: 99.99 - - levelName: Inventory - confidence: 99.99 - - date: '2022-08-31T00:00:00' - balance: 582.4 - accountId: e8a0a24e-2dab-46b1-bfe1-6e92551c04e8 - accountName: Purchase Discounts - accountCategory: - status: Suggested - levels: - - levelName: Expense - confidence: 99.99 - - levelName: CostOfSales - confidence: 99.99 - - levelName: Inventory - confidence: 99.99 - - date: '2022-08-31T00:00:00' - balance: 350.44 - accountId: cbf82e0d-87a7-464d-b567-9274ea94a1c0 - accountName: Charitable and Political Donations - accountCategory: - status: Suggested - levels: - - levelName: Expense - confidence: 99.99 - - levelName: NonOperating - confidence: 99.99 - - levelName: Donations - confidence: 99.99 - - date: '2022-08-31T00:00:00' - balance: 535.81 - accountId: 78785fd7-f197-4c34-aa17-6e76b9255d34 - accountName: Interest Paid (operating) - accountCategory: - status: Suggested - levels: - - levelName: Expense - confidence: 99.99 - - levelName: NonOperating - confidence: 99.99 - - levelName: Interest - confidence: 99.99 - - date: '2022-08-31T00:00:00' - balance: 633.05 - accountId: fb3210ef-edeb-48af-bb49-b85d40c1e6bb - accountName: Corporation Tax - accountCategory: - status: Suggested - levels: - - levelName: Expense - confidence: 99.99 - - levelName: NonOperating - confidence: 99.99 - - levelName: Taxes - confidence: 99.99 - - levelName: CorporationTaxes - confidence: 99.99 - - date: '2022-08-31T00:00:00' - balance: 782.61 - accountId: f3aa84fe-5c31-4107-b207-7e0419f636d7 - accountName: Bank Fees - accountCategory: - status: Suggested - levels: - - levelName: Expense - confidence: 99.99 - - levelName: Operating - confidence: 99.99 - - levelName: BankCharges - confidence: 99.99 - - date: '2022-08-31T00:00:00' - balance: 8000 - accountId: 9cbe5fe4-ca60-4792-8bf1-de01fb7010aa - accountName: Rent - accountCategory: - status: Suggested - levels: - - levelName: Expense - confidence: 99.99 - - levelName: Operating - confidence: 99.99 - - levelName: Leases - confidence: 99.99 - - levelName: BuildingRentLease - confidence: 99.99 - - date: '2022-08-31T00:00:00' - balance: 1090.68 - accountId: 138a8eb3-5c08-4e59-a3bc-892119694447 - accountName: Motor Vehicle Expenses - accountCategory: - status: Suggested - levels: - - levelName: Expense - confidence: 99.99 - - levelName: Operating - confidence: 99.99 - - levelName: Leases - confidence: 99.99 - - levelName: EquipmentRentLease - confidence: 99.99 - - date: '2022-08-31T00:00:00' - balance: 26307.02 - accountId: 868591ad-f9c2-4956-a5ec-c32c1d48c6f3 - accountName: Advertising & Marketing - accountCategory: - status: Suggested - levels: - - levelName: Expense - confidence: 99.99 - - levelName: Operating - confidence: 99.99 - - levelName: Marketing - confidence: 99.99 - - date: '2022-08-31T00:00:00' - balance: 1128.85 - accountId: 1734ff00-2a17-45b4-8db6-2dc2e832c460 - accountName: 'Postage, Freight & Courier' - accountCategory: - status: Suggested - levels: - - levelName: Expense - confidence: 99.99 - - levelName: Operating - confidence: 99.99 - - levelName: Marketing - confidence: 99.99 - - date: '2022-08-31T00:00:00' - balance: 40 - accountId: 7d8d0322-f452-47de-a8e8-54b0130e6f38 - accountName: Subscriptions - accountCategory: - status: Suggested - levels: - - levelName: Expense - confidence: 99.99 - - levelName: Operating - confidence: 99.99 - - levelName: Marketing - confidence: 99.99 - - date: '2022-08-31T00:00:00' - balance: 5.72 - accountId: 4378ddba-36b4-4b35-9970-bd972b20d137 - accountName: Amortization - accountCategory: - status: Suggested - levels: - - levelName: Expense - confidence: 99.99 - - levelName: Operating - confidence: 99.99 - - levelName: NonCash - confidence: 99.99 - - levelName: Amortization - confidence: 99.99 - - date: '2022-08-31T00:00:00' - balance: 1539.18 - accountId: 940c8a59-3348-4a0b-a1b1-781d9f29cc8b - accountName: Depreciation Expense - accountCategory: - status: Suggested - levels: - - levelName: Expense - confidence: 99.99 - - levelName: Operating - confidence: 99.99 - - levelName: NonCash - confidence: 99.99 - - levelName: Depreciation - confidence: 99.99 - - date: '2022-08-31T00:00:00' - balance: 1416.05 - accountId: e7ac3baa-cfbe-40c1-a172-83d22e84435b - accountName: Entertainment-100% business - accountCategory: - status: Suggested - levels: - - levelName: Expense - confidence: 99.99 - - levelName: Operating - confidence: 99.99 - - levelName: Personnel - confidence: 99.99 - - levelName: EmployeeBenefits - confidence: 99.99 - - date: '2022-08-31T00:00:00' - balance: 1465.61 - accountId: b5e801e8-8dbc-4390-ac99-3b0fff54a89f - accountName: General Expenses - accountCategory: - status: Suggested - levels: - - levelName: Expense - confidence: 99.99 - - levelName: Operating - confidence: 99.99 - - levelName: SalesGeneralAdministrative - confidence: 99.99 - - date: '2022-08-31T00:00:00' - balance: 7347.35 - accountId: 5360066d-1474-49f6-a7a5-c66d5f6032ba - accountName: 'Light, Power, Heating' - accountCategory: - status: Suggested - levels: - - levelName: Expense - confidence: 99.99 - - levelName: Operating - confidence: 99.99 - - levelName: SalesGeneralAdministrative - confidence: 99.99 - - date: '2022-08-31T00:00:00' - balance: 1027.25 - accountId: 7aa7988a-ff61-4cb8-bef3-15395355d108 - accountName: Printing & Stationery - accountCategory: - status: Suggested - levels: - - levelName: Expense - confidence: 99.99 - - levelName: Operating - confidence: 99.99 - - levelName: SalesGeneralAdministrative - confidence: 99.99 - - date: '2022-08-31T00:00:00' - balance: 45 - accountId: 043b6bcb-dfe6-4c97-9b4c-f9b300fe3f03 - accountName: Telephone & Internet - accountCategory: - status: Suggested - levels: - - levelName: Expense - confidence: 99.99 - - levelName: Operating - confidence: 99.99 - - levelName: SalesGeneralAdministrative - confidence: 99.99 - - date: '2022-08-31T00:00:00' - balance: 0 - accountId: eef78ed1-dfed-447c-bdba-3a49fb2c044b - accountName: Audit & Accountancy fees - accountCategory: - status: Suggested - levels: - - levelName: Expense - confidence: 99.99 - - levelName: Operating - confidence: 99.99 - - levelName: SalesGeneralAdministrative - confidence: 99.99 - - date: '2022-08-31T00:00:00' - balance: 130 - accountId: c16f5c35-8283-47da-9d09-5fecb183b0cb - accountName: Cleaning - accountCategory: - status: Suggested - levels: - - levelName: Expense - confidence: 99.99 - - levelName: Operating - confidence: 99.99 - - levelName: SalesGeneralAdministrative - confidence: 99.99 - - date: '2022-08-31T00:00:00' - balance: 860.02 - accountId: df62060b-41cc-4bf2-9de7-c7e537b5663a - accountName: Travel - National - accountCategory: - status: Suggested - levels: - - levelName: Expense - confidence: 99.99 - - levelName: Operating - confidence: 99.99 - - levelName: Travel - confidence: 99.99 - - date: '2022-08-31T00:00:00' - balance: 850.22 - accountId: 68794a8f-b22d-4520-b97b-025b7cb10f94 - accountName: Other Revenue - accountCategory: - status: Suggested - levels: - - levelName: Income - confidence: 99.99 - - levelName: Revenue - confidence: 99.99 - - levelName: Online - confidence: 99.99 - - date: '2022-08-31T00:00:00' - balance: 138457.98 - accountId: 72df89d2-512b-4455-af51-a6b563733842 - accountName: Sales - accountCategory: - status: Suggested - levels: - - levelName: Income - confidence: 99.99 - - levelName: Revenue - confidence: 99.99 - - levelName: Wholesale - confidence: 99.99 - '400': - $ref: '#/components/responses/BadRequest' + '204': + description: No Content '401': $ref: '#/components/responses/Unauthorized' '402': @@ -2578,81164 +1655,8876 @@ paths: $ref: '#/components/responses/Internal-Server-Error' '503': $ref: '#/components/responses/Service-Unavailable' - operationId: get-categorized-profit-and-loss-statement - x-speakeasy-name-override: get-categorized-accounts - x-speakeasy-group: financial-statements.profit-and-loss - parameters: - - $ref: '#/components/parameters/reportDate' - - $ref: '#/components/parameters/numberOfPeriods' - '/companies/{companyId}/reports/enhancedBalanceSheet/accounts': - parameters: - - $ref: '#/components/parameters/companyId' - get: - summary: Get categorized balance sheet statement - operationId: get-categorized-balance-sheet-statement - x-speakeasy-name-override: get-categorized-accounts - x-speakeasy-group: financial-statements.balance-sheet description: |- - The *Get categorized balance sheet statement* endpoint returns a list of categorized accounts that appear on a company’s Balance Sheet along with a balance per financial statement date. + Refreshes all data types with `fetch on first link` set to `true` for a given company. - Codat suggests a category for each account automatically, but you can [change it](https://docs.codat.io/lending/features/financial-statements-overview#recategorizing-accounts) to a more suitable one. - tags: - - Financial statements - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/EnhancedFinancialReport' - example: - reportInfo: - currency: GBP - reportName: EnhancedBalanceSheetAccounts - companyName: Biscuits - generatedDate: '2023-03-24T16:42:09.2973105Z' - reportItems: - - date: '2022-08-31T00:00:00' - balance: 12973.03 - accountId: 22de1660-d745-4809-a363-16b134607e66 - accountName: Prepayments - accountCategory: - status: Suggested - levels: - - levelName: Asset - confidence: 99.99 - - levelName: Current - confidence: 99.99 - - levelName: AccruedDeferredAssets - confidence: 99.99 - - levelName: PrepaidExpenses - confidence: 99.99 - - date: '2022-08-31T00:00:00' - balance: 316065.92 - accountId: dbcaf288-2b39-4b95-8ab3-42202ab15918 - accountName: Business Current Account - accountCategory: - status: Suggested - levels: - - levelName: Asset - confidence: 99.99 - - levelName: Current - confidence: 99.99 - - levelName: Bank - confidence: 99.99 - - date: '2022-08-31T00:00:00' - balance: 65945.07 - accountId: e5d7612c-1671-47b4-b733-5db48363fcd0 - accountName: Inventory - accountCategory: - status: Suggested - levels: - - levelName: Asset - confidence: 99.99 - - levelName: Current - confidence: 99.99 - - levelName: Inventory - confidence: 99.99 - - date: '2022-08-31T00:00:00' - balance: 71937.95 - accountId: 1b6266d1-1e44-46c5-8eb5-a8f98e03124e - accountName: Accounts Receivable - accountCategory: - status: Suggested - levels: - - levelName: Asset - confidence: 99.99 - - levelName: Current - confidence: 99.99 - - levelName: Receivables - confidence: 99.99 - - levelName: AccountsReceivables - confidence: 99.99 - - date: '2022-08-31T00:00:00' - balance: 2180148.56 - accountId: 724ca578-8b5d-4bdb-ad45-e3820eee9de9 - accountName: Office Equipment - accountCategory: - status: Suggested - levels: - - levelName: Asset - confidence: 99.99 - - levelName: NonCurrent - confidence: 99.99 - - levelName: AccumulatedDepreciationDepletionAmortization - confidence: 99.99 - - date: '2022-08-31T00:00:00' - balance: 1804674.9 - accountId: be3eb911-034b-42de-95db-0d58ac978b7f - accountName: Computer Equipment - accountCategory: - status: Suggested - levels: - - levelName: Asset - confidence: 99.99 - - levelName: NonCurrent - confidence: 99.99 - - levelName: AccumulatedDepreciationDepletionAmortization - confidence: 99.99 - - date: '2022-08-31T00:00:00' - balance: 3417424.16 - accountId: 39225d6f-3722-4508-ac3f-a2f6ec96ad31 - accountName: Retained Earnings - accountCategory: - status: Suggested - levels: - - levelName: Equity - confidence: 99.99 - - levelName: RetainedEarnings - confidence: 99.99 - - levelName: CapitalIncomeReserve - confidence: 99.99 - - date: '2022-08-31T00:00:00' - balance: 44252.52 - accountId: 78828dd9-6008-4662-b43c-e9d87907fd2b - accountName: Current Year Earnings - accountCategory: - status: Suggested - levels: - - levelName: Equity - confidence: 99.99 - - levelName: ShareCapital - confidence: 99.99 - - levelName: CommonStock - confidence: 99.99 - - date: '2022-08-31T00:00:00' - balance: 75835.64 - accountId: 53bf27a7-7497-4c61-9887-dfaad5c6d80a - accountName: Accounts Payable - accountCategory: - status: Suggested - levels: - - levelName: Liability - confidence: 99.99 - - levelName: Current - confidence: 99.99 - - levelName: AccountsPayable - confidence: 99.99 - - date: '2022-08-31T00:00:00' - balance: 208264.65 - accountId: e2530acd-91c8-48f8-a35f-935dbd7432e2 - accountName: Accruals - accountCategory: - status: Suggested - levels: - - levelName: Liability - confidence: 99.99 - - levelName: Current - confidence: 99.99 - - levelName: AccruedLiabilities - confidence: 99.99 - - date: '2022-08-31T00:00:00' - balance: 0 - accountId: d19852a2-e292-4eb9-a909-9dadb95c0e76 - accountName: Rounding - accountCategory: - status: Suggested - levels: - - levelName: Liability - confidence: 99.99 - - levelName: Current - confidence: 99.99 - - levelName: Bank - confidence: 99.99 - - date: '2022-08-31T00:00:00' - balance: 25184.57 - accountId: 62060aae-e5a6-4db5-a3bb-6abec6d47959 - accountName: Credit Card Control Account - accountCategory: - status: Suggested - levels: - - levelName: Liability - confidence: 99.99 - - levelName: Current - confidence: 99.99 - - levelName: Debt - confidence: 99.99 - - levelName: CreditCards - confidence: 99.99 - - date: '2022-08-31T00:00:00' - balance: 9650.58 - accountId: 9be6382f-6b33-402d-b448-0db1dbf67a98 - accountName: Historical Adjustment - accountCategory: - status: Suggested - levels: - - levelName: Liability - confidence: 99.99 - - levelName: Current - confidence: 99.99 - - levelName: Debt - confidence: 99.99 - - levelName: LoansPayable - confidence: 99.99 - - date: '2022-08-31T00:00:00' - balance: 2022.41 - accountId: 8636effc-50fb-45ba-8b2b-18336fa29b6b - accountName: John Smith - accountCategory: - status: Suggested - levels: - - levelName: Liability - confidence: 99.99 - - levelName: Current - confidence: 99.99 - - levelName: Debt - confidence: 99.99 - - levelName: LoansPayable - confidence: 99.99 - - date: '2022-08-31T00:00:00' - balance: 29034.75 - accountId: 3a872b81-d1af-4d31-9bfa-a37280b8f68c - accountName: VAT - accountCategory: - status: Confirmed - levels: - - levelName: Liability - confidence: 99.99 - - levelName: Current - confidence: 99.99 - - levelName: Personnel - confidence: 99.99 - - levelName: PensionPayable - confidence: 99.99 - - date: '2022-08-31T00:00:00' - balance: 1076.55 - accountId: 3b58f7ff-fa16-453a-9931-f020816d76e7 - accountName: Interest Payables - accountCategory: - status: Confirmed - levels: - - levelName: Liability - confidence: 99.99 - - levelName: Current - confidence: 99.99 - - levelName: Personnel - confidence: 99.99 - - levelName: PensionPayable - confidence: 99.99 - - date: '2022-08-31T00:00:00' - balance: 0 - accountId: 8852a857-aa9d-4706-839f-638e9d6b5a66 - accountName: Unpaid Expense Claims - accountCategory: - status: Suggested - levels: - - levelName: Liability - confidence: 99.99 - - levelName: NonCurrent - confidence: 99.99 - - date: '2022-08-31T00:00:00' - balance: 638999.6 - accountId: 55008233-40e7-41ac-84af-2255fa028c2e - accountName: Loan - accountCategory: - status: Suggested - levels: - - levelName: Liability - confidence: 99.99 - - levelName: NonCurrent - confidence: 99.99 - '400': - $ref: '#/components/responses/BadRequest' - '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' - parameters: - - $ref: '#/components/parameters/reportDateRequired' - - $ref: '#/components/parameters/numberOfPeriods' - '/companies/{companyId}/reports/enhancedCashFlow/transactions': - parameters: - - $ref: '#/components/parameters/companyId' - get: - summary: Get categorized bank statement - operationId: get-categorized-bank-statement - x-speakeasy-group: banking.categorized-statement - description: "\uFEFF\x3E\x20\x2A\x2A\x43\x61\x74\x65\x67\x6F\x72\x69\x7A\x61\x74\x69\x6F\x6E\x20\x65\x6E\x67\x69\x6E\x65\x2A\x2A\n\x3E\n\x3E\x20\x54\x68\x65\x20\x63\x61\x74\x65\x67\x6F\x72\x69\x7A\x61\x74\x69\x6F\x6E\x20\x65\x6E\x67\x69\x6E\x65\x20\x75\x73\x65\x73\x20\x6D\x61\x63\x68\x69\x6E\x65\x20\x6C\x65\x61\x72\x6E\x69\x6E\x67\x20\x61\x6E\x64\x20\x68\x61\x73\x20\x62\x65\x65\x6E\x20\x66\x75\x6C\x6C\x79\x20\x74\x72\x61\x69\x6E\x65\x64\x20\x61\x67\x61\x69\x6E\x73\x74\x20\x50\x6C\x61\x69\x64\x20\x61\x6E\x64\x20\x54\x72\x75\x65\x4C\x61\x79\x65\x72\x20\x62\x61\x6E\x6B\x69\x6E\x67\x20\x64\x61\x74\x61\x20\x73\x6F\x75\x72\x63\x65\x73\x2E\x20\x49\x74\x20\x69\x73\x20\x6E\x6F\x74\x20\x66\x75\x6C\x6C\x79\x20\x74\x72\x61\x69\x6E\x65\x64\x20\x61\x67\x61\x69\x6E\x73\x74\x20\x74\x68\x65\x20\x42\x61\x73\x69\x71\x20\x62\x61\x6E\x6B\x69\x6E\x67\x20\x64\x61\x74\x61\x20\x73\x6F\x75\x72\x63\x65\x2E\n\n\x54\x68\x65\x20\x5F\x47\x65\x74\x20\x63\x61\x74\x65\x67\x6F\x72\x69\x7A\x65\x64\x20\x62\x61\x6E\x6B\x20\x73\x74\x61\x74\x65\x6D\x65\x6E\x74\x5F\x20\x65\x6E\x64\x70\x6F\x69\x6E\x74\x20\x70\x72\x6F\x76\x69\x64\x65\x73\x20\x61\x20\x66\x75\x6C\x6C\x79\x20\x63\x61\x74\x65\x67\x6F\x72\x69\x7A\x65\x64\x20\x6C\x69\x73\x74\x20\x6F\x66\x20\x62\x61\x6E\x6B\x69\x6E\x67\x20\x74\x72\x61\x6E\x73\x61\x63\x74\x69\x6F\x6E\x73\x20\x66\x6F\x72\x20\x61\x20\x63\x6F\x6D\x70\x61\x6E\x79\x2E\x20\x41\x63\x63\x6F\x75\x6E\x74\x73\x20\x61\x6E\x64\x20\x74\x72\x61\x6E\x73\x61\x63\x74\x69\x6F\x6E\x20\x64\x61\x74\x61\x20\x61\x72\x65\x20\x6F\x62\x74\x61\x69\x6E\x65\x64\x20\x66\x72\x6F\x6D\x20\x74\x68\x65\x20\x63\x6F\x6D\x70\x61\x6E\x79\x27\x73\x20\x62\x61\x6E\x6B\x69\x6E\x67\x20\x64\x61\x74\x61\x20\x73\x6F\x75\x72\x63\x65\x73\x2E" + This is an asynchronous operation, and will bring updated data into Codat from the linked integration for you to view. + + [Read more](https://docs.codat.io/core-concepts/data-type-settings) about data type settings and `fetch on first link`. tags: - - Bank statements - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/EnhancedCashFlowTransactions' - examples: - Categorized bank statement: - $ref: '#/components/examples/EnhancedCashflowExample' - '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' - parameters: - - $ref: '#/components/parameters/page' - - $ref: '#/components/parameters/pageSize' - - $ref: '#/components/parameters/query' - '/companies/{companyId}/reports/enhancedInvoices': + - Manage data + '/companies/{companyId}/dataStatus': parameters: - $ref: '#/components/parameters/companyId' get: - summary: List reconciled invoices + summary: Get data status + operationId: get-data-status + description: Get the state of each data type for a company 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' + - Manage data 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}/reports/liabilities/loans/transactions': - parameters: - - $ref: '#/components/parameters/companyId' - - schema: - type: string - enum: - - banking - - commerce - - accounting - in: query - name: sourceType - description: Data source type. - required: true - post: - summary: Generate loan transactions report - description: | - The _Generate loan transactions_ endpoint requests the generation of the Loan Transactions report. - - Learn more about Codat's liabilities feature [here](https://docs.codat.io/lending/features/liabilities-overview). - - Make sure you have [synced a company](https://docs.codat.io/lending-api#/operations/refresh-company-data) recently before calling the endpoint. - tags: - - Liabilities - responses: - '202': - description: Accepted - '400': - $ref: '#/components/responses/BadRequest' - '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' - operationId: generate-loan-transactions - x-speakeasy-name-override: generate-loan-transactions - get: - summary: List loan transactions - description: | - The *List loan transactions* endpoint returns all [loan transactions](https://docs.codat.io/lending-api#/schemas/LoanTransactions) identified from a company's accounting, banking, and commerce integrations. - - This detail gives analysts a better idea of the loan obligations a company may have. - - Make sure you have [synced a company](https://docs.codat.io/lending-api#/operations/refresh-company-data) recently before calling the endpoint. - tags: - - Liabilities - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/LoanTransactions' - '400': - $ref: '#/components/responses/BadRequest' - '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' - operationId: list-loan-transactions - x-speakeasy-name-override: list-loan-transactions - '/companies/{companyId}/reports/liabilities/loans': - parameters: - - $ref: '#/components/parameters/companyId' - - schema: - type: string - enum: - - banking - - commerce - - accounting - in: query - name: sourceType - description: Data source type. - required: true - post: - summary: Generate loan summaries report - description: | - The _Generate loan summaries_ endpoint requests the generation of the Loan Summaries report. - - Learn more about Codat's liabilities feature [here](https://docs.codat.io/lending/features/liabilities-overview). - - Make sure you have [synced a company](https://docs.codat.io/lending-api#/operations/refresh-company-data) recently before calling the endpoint. - tags: - - Liabilities - responses: - '202': - description: Accepted - '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' - operationId: generate-loan-summary - x-speakeasy-name-override: generate-loan-summary - get: - summary: Get loan summaries - description: | - The *Get loan summaries* endpoint returns a summary by integration type of all loans identified from a company's accounting, banking, and commerce integrations. - - The endpoint returns a list of a company's [loan summaries](https://docs.codat.io/lending-api#/schemas/LoanSummary) for each valid data connection. - - Make sure you have [synced a company](https://docs.codat.io/lending-api#/operations/refresh-company-data) recently before calling the endpoint. - tags: - - Liabilities - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/LoanSummary' - '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' - operationId: get-loan-summary - x-speakeasy-name-override: get-loan-summary - '/data/companies/{companyId}/connections/{connectionId}/assess/commerceMetrics/revenue': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - get: - summary: Get commerce revenue metrics - tags: - - Sales - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/CommerceReport' - example: - - reportInfo: - name: revenue - displayName: Revenue - dimensions: - - index: 0 - displayName: Period - type: datespan - items: - - index: 0 - displayName: Period 0 - start: '2022-01-01' - end: '2022-12-31' - - index: 1 - displayName: Revenue metrics - type: string - items: - - index: 0 - value: Revenue - - index: 1 - value: Revenue growth - measures: - - displayName: Value - units: GBP - index: 0 - type: currency - - displayName: Percentage change vs. previous period - units: '%' - index: 1 - type: percentage - reportData: - - dimension: 0 - dimensionDisplayName: Period - item: 0 - itemDisplayName: Period 0 - components: - - dimension: 1 - dimensionDisplayName: Revenue metrics - item: 0 - itemDisplayName: Revenue - measures: - - index: 0 - measureDisplayName: Value - value: 2392.48 - - dimension: 1 - dimensionDisplayName: Revenue metrics - item: 1 - itemDisplayName: Revenue growth - measures: - - index: 1 - measureDisplayName: Percentage change vs. previous period - value: 276.65 - '400': - $ref: '#/components/responses/BadRequest' - '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' - operationId: get-commerce-revenue-metrics - x-speakeasy-name-override: get-revenue - x-speakeasy-group: sales.metrics - description: "The *Get revenue report* endpoint returns the revenue and revenue growth for a specific company connection over one or more periods of time.\n\nThis detail helps you assess a merchant's health and advise them on performance improvement strategies. It also provides you with key insights you need to assess the credit risk of a company. \n\n[Learn more](https://docs.codat.io/lending/features/sales-overview#metrics) about the formulas used to calculate the revenue metrics.\n\n#### Response structure\n\nThe Revenue report's dimensions and measures are:\n\n| Index | Dimensions |\n|---------------|------------|\n| `index` = 0 | Period |\n| `index` = 1 | Revenue |\n\n| Index | Measures |\n|---------------|--------------------------------------------------------------------------------------------------------------------------|\n| `index` = 0 | Value |\n| `index` = 1 | Percentage change, defined as the change between the current and previous periods' values and expressed as a percentage. |\n\nThe report data then combines multiple reporting dimensions and measures and outputs the value of each combination.\n" - parameters: - - $ref: '#/components/parameters/reportDateRequired' - - $ref: '#/components/parameters/periodLength' - - $ref: '#/components/parameters/numberOfPeriodsRequired' - - $ref: '#/components/parameters/periodUnit' - - $ref: '#/components/parameters/includeDisplayNames' - '/data/companies/{companyId}/connections/{connectionId}/assess/commerceMetrics/orders': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - get: - summary: Get orders report - tags: - - Sales - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/CommerceReport' - example: - - reportInfo: - name: orders - displayName: Orders - dimensions: - - index: 0 - displayName: Period - type: datespan - items: - - index: 0 - displayName: Period 0 - start: '2022-01-01' - end: '2022-12-31' - - index: 1 - displayName: Order metrics - type: string - items: - - index: 0 - value: Number of orders - - index: 1 - value: Total value - - index: 2 - value: Average order value - measures: - - displayName: Count - index: 0 - type: int - - displayName: Value - units: GBP - index: 1 - type: currency - reportData: - - dimension: 0 - dimensionDisplayName: Period - item: 0 - itemDisplayName: Period 0 - components: - - dimension: 1 - dimensionDisplayName: Order metrics - item: 0 - itemDisplayName: Number of orders - measures: - - index: 0 - measureDisplayName: Count - value: 94 - - dimension: 1 - dimensionDisplayName: Order metrics - item: 1 - itemDisplayName: Total value - measures: - - index: 1 - measureDisplayName: Value - value: 3315.18 - - dimension: 1 - dimensionDisplayName: Order metrics - item: 2 - itemDisplayName: Average order value - measures: - - index: 1 - measureDisplayName: Value - value: 35.27 - '400': - $ref: '#/components/responses/BadRequest' - '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' - operationId: get-commerce-orders-report - x-speakeasy-name-override: get-orders - x-speakeasy-group: sales.reports - description: "The *Get orders report* endpoint returns the number of orders, total value, and average order value for a specific company's commerce connection over one or more periods of time.\n\nThis detail helps you assess a merchant's health and advise them on performance improvement strategies. It also provides you with key insights you need to assess the credit risk of a company. \n\n[Learn more](https://docs.codat.io/lending/features/sales-overview#metrics) about the formulas used to calculate the order metrics.\n\n#### Response structure\n\nThe Orders report's dimensions and measures are:\n\n| Index | Dimensions |\n|---------------|----------------|\n| `index` = 0 | Period |\n| `index` = 1 | Order metrics |\n\n| Index | Measures |\n|---------------|------------|\n| `index` = 0 | Count |\n| `index` = 1 | Value |\n\nThe report data then combines multiple reporting dimensions and measures and outputs the value of each combination.\n" - parameters: - - $ref: '#/components/parameters/reportDateRequired' - - $ref: '#/components/parameters/periodLength' - - $ref: '#/components/parameters/numberOfPeriodsRequired' - - $ref: '#/components/parameters/periodUnit' - - $ref: '#/components/parameters/includeDisplayNames' - '/data/companies/{companyId}/connections/{connectionId}/assess/commerceMetrics/refunds': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - get: - summary: Get refunds report - tags: - - Sales - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/CommerceReport' - example: - - reportInfo: - name: refunds - displayName: Refunds - dimensions: - - index: 0 - displayName: Period - type: datespan - items: - - index: 0 - displayName: Period 0 - start: '2022-01-01' - end: '2022-12-31' - - index: 1 - displayName: Refund metrics - type: string - items: - - index: 0 - value: Number of refunds - - index: 1 - value: Value of refunds - - index: 2 - value: Refund rate - measures: - - displayName: Count - index: 0 - type: int - - displayName: Value - units: GBP - index: 1 - type: currency - - displayName: Percentage - units: '%' - index: 2 - type: percentage - reportData: - - dimension: 0 - dimensionDisplayName: Period - item: 0 - itemDisplayName: Period 0 - components: - - dimension: 1 - dimensionDisplayName: Refund metrics - item: 0 - itemDisplayName: Number of refunds - measures: - - index: 0 - measureDisplayName: Count - value: 39 - - dimension: 1 - dimensionDisplayName: Refund metrics - item: 1 - itemDisplayName: Value of refunds - measures: - - index: 1 - measureDisplayName: Value - value: 642.82 - - dimension: 1 - dimensionDisplayName: Refund metrics - item: 2 - itemDisplayName: Refund rate - measures: - - index: 2 - measureDisplayName: Percentage - value: 0.41 - '400': - $ref: '#/components/responses/BadRequest' - '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' - operationId: get-commerce-refunds-report - x-speakeasy-name-override: get-refunds - x-speakeasy-group: sales.reports - description: "The *Get refunds report* endpoint returns the number and total value of refunds and the refund rate for a specific company's commerce connection over one or more periods of time.\n\nThis detail helps you assess a merchant's health and advise them on performance improvement strategies. It also provides you with key insights you need to assess the credit risk of a company. \n\n[Learn more](https://docs.codat.io/lending/features/sales-overview#metrics) about the formulas used to calculate the refunds metrics.\n\n#### Response structure\n\nThe Refunds report's dimensions and measures are:\n\n| Index | Dimensions |\n|----------------|----------------|\n| `index` = 0 | Period |\n| `index` = 1 | Refund metrics |\n\n| Index | Measures |\n|----------------|------------|\n| `index` = 0 | Count |\n| `index` = 1 | Value |\n| `index` = 2 | Percentage |\n\nThe report data then combines multiple reporting dimensions and measures and outputs the value of each combination.\n" - parameters: - - $ref: '#/components/parameters/reportDateRequired' - - $ref: '#/components/parameters/periodLength' - - $ref: '#/components/parameters/numberOfPeriodsRequired' - - $ref: '#/components/parameters/periodUnit' - - $ref: '#/components/parameters/includeDisplayNames' - '/data/companies/{companyId}/connections/{connectionId}/assess/commerceMetrics/customerRetention': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - get: - summary: Get customer retention metrics - tags: - - Sales - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/CommerceReport' - example: - - reportInfo: - name: customer_retention - displayName: Customer Retention - dimensions: - - index: 0 - displayName: Period - type: datespan - items: - - index: 0 - displayName: Period 0 - start: '2022-01-01' - end: '2022-12-31' - - index: 1 - displayName: Customer retention metrics - type: string - items: - - index: 0 - value: Existing customers - - index: 1 - value: New customers - - index: 2 - value: Total customers - - index: 3 - value: Retention rate - - index: 4 - value: Repeat rate - measures: - - displayName: Count - index: 0 - type: int - - displayName: Percentage - index: 1 - type: percentage - reportData: - - dimension: 0 - dimensionDisplayName: Period - item: 0 - itemDisplayName: Period 0 - components: - - dimension: 1 - dimensionDisplayName: Customer retention metrics - item: 0 - itemDisplayName: Existing customers - measures: - - index: 0 - measureDisplayName: Count - value: 13 - - dimension: 1 - dimensionDisplayName: Customer retention metrics - item: 1 - itemDisplayName: New customers - measures: - - index: 0 - measureDisplayName: Count - value: 47 - - dimension: 1 - dimensionDisplayName: Customer retention metrics - item: 2 - itemDisplayName: Total customers - measures: - - index: 0 - measureDisplayName: Count - value: 60 - - dimension: 1 - dimensionDisplayName: Customer retention metrics - item: 3 - itemDisplayName: Retention rate - measures: - - index: 1 - measureDisplayName: Percentage - value: 0 - - dimension: 1 - dimensionDisplayName: Customer retention metrics - item: 4 - itemDisplayName: Repeat rate - measures: - - index: 1 - measureDisplayName: Percentage - value: 21.67 - '400': - $ref: '#/components/responses/BadRequest' - '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' - operationId: get-commerce-customer-retention-metrics - x-speakeasy-name-override: get-customer-retention - x-speakeasy-group: sales.metrics - description: "The *Get customer retention metrics* endpoint returns customer retention insights for a specific company's commerce connection over one or more periods of time.\n\nThis detail helps you assess a merchant's health and advise them on performance improvement strategies. It also provides you with key insights you need to assess the credit risk of a company. \n\n#### Customer retention metrics\n\n- __Existing customers__: the number of unique customers that have placed an order(s) in the specified period and any previous period. \n- __New customers__: the number of unique customers that have placed an order(s) in the specified period and none in any previous period.\n- __Total customers__: the total number of existing and new customers within the specified period.\n- __Retention rate__: the ratio of existing customers within the specified period compared to the total customers at the end of the previous period represented as a percentage.\n- __Repeat rate__: the ratio of existing customers to total customers over the specified period represented as a percentage.\n\n[Learn more](https://docs.codat.io/lending/features/sales-overview#metrics) about the formulas used to calculate customer retention metrics.\n\n#### Response structure\n\nThe Customer retention report's dimensions and measures are:\n\n| Index | Dimensions |\n|-----------------------------|----------------------------|\n| `index` = 0 | Period |\n| `index` = 1 | Customer retention metrics |\n\n| Index | Measures |\n|----------------------|------------|\n| `index` = 0 | Count |\n| `index` = 1 | Percentage |\n\nThe report data then combines multiple reporting dimensions and measures and outputs the value of each combination." - parameters: - - $ref: '#/components/parameters/reportDateRequired' - - $ref: '#/components/parameters/periodLength' - - $ref: '#/components/parameters/numberOfPeriodsRequired' - - $ref: '#/components/parameters/periodUnit' - - $ref: '#/components/parameters/includeDisplayNames' - '/data/companies/{companyId}/connections/{connectionId}/assess/commerceMetrics/lifetimeValue': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - get: - summary: Get lifetime value metrics - tags: - - Sales - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/CommerceReport' - example: - - reportInfo: - name: lifetime_value - displayName: Lifetime Value - dimensions: - - index: 0 - displayName: Period - type: datespan - items: - - index: 0 - displayName: Period 0 - start: '2022-01-01' - end: '2022-12-31' - - index: 1 - displayName: Lifetime value metrics - type: string - items: - - index: 0 - value: Lifetime value - measures: - - displayName: Value - units: GBP - index: 0 - type: currency - reportData: - - dimension: 0 - dimensionDisplayName: Period - item: 0 - itemDisplayName: Period 0 - components: - - dimension: 1 - dimensionDisplayName: Lifetime value metrics - item: 0 - itemDisplayName: Lifetime value - measures: - - index: 0 - measureDisplayName: Value - value: 3782.07 - '400': - $ref: '#/components/responses/BadRequest' - '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' - operationId: get-commerce-lifetime-value-metrics - x-speakeasy-name-override: get-lifetime-value - x-speakeasy-group: sales.metrics - description: | - The *Get lifetime value metrics* endpoint returns the average revenue that a specific company will generate throughout its lifespan over one or more periods of time. - - This detail helps you assess a merchant's health and advise them on performance improvement strategies. It also provides you with key insights you need to assess the credit risk of a company. - - [Learn more](https://docs.codat.io/lending/features/sales-overview#metrics) about the formulas used to calculate the lifetime value metrics. - - #### Response structure - - The Lifetime value report's dimensions and measures are: - - | Index | Dimensions | - |---------------|------------------------| - | `index` = 0 | Period | - | `index` = 1 | Lifetime value metrics | - - | Index | Measures | - |-------------------|---------| - | `index` = 1 | Value | - - The report data then combines multiple reporting dimensions and measures and outputs the value of each combination. - parameters: - - $ref: '#/components/parameters/reportDateRequired' - - $ref: '#/components/parameters/periodLength' - - $ref: '#/components/parameters/numberOfPeriodsRequired' - - $ref: '#/components/parameters/periodUnit' - - $ref: '#/components/parameters/includeDisplayNames' - '/data/companies/{companyId}/assess/excel': - parameters: - - $ref: '#/components/parameters/companyId' - post: - summary: Generate Excel report - tags: - - Excel reports - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/ExcelStatus' - '400': - $ref: '#/components/responses/BadRequest' - '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' - operationId: generate-excel-report - x-speakeasy-name-override: generate - description: |+ - The *Generate Excel report* endpoint requests the production of a downloadable Excel file for a report type specified in the `reportType` query parameter. - - In response, the endpoint returns the [status](https://docs.codat.io/lending-api#/schemas/ExcelStatus) detailing the current state of the report generation request. - - ### Report types - - | reportType | Description | - |--------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------| - | `audit` | Identifies inaccurate or out-of-date accounts, helping you to make decisions with confidence. || [audit](https://docs.codat.io/lending/excel/audit-report) | Identify inaccurate or out-of-date accounts, helping you to make decisions with confidence. | - | `enhancedCashFlow` | Provides a fully categorized list of bank transactions for a company, allowing lenders to accurately forecast a company's cash flow. | - | `enhancedFinancials` | Supports decision-making using fully categorized financial statements to allow lenders to automate their underwriting processes. | - | `enhancedInvoices` | Helps verify that payments have been made against historic invoices. Great for invoice finance lenders. | - - [Learn more](https://docs.codat.io/lending/features/excel-download-overview#feature-components) about valid Excel report types. - - - parameters: - - $ref: '#/components/parameters/excelReportType' - get: - summary: Get Excel report status - tags: - - Excel reports - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/ExcelStatus' - '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' - operationId: get-excel-report-generation-status - x-speakeasy-name-override: get-status - description: "\uFEFF\x54\x68\x65\x20\x2A\x47\x65\x74\x20\x45\x78\x63\x65\x6C\x20\x72\x65\x70\x6F\x72\x74\x20\x73\x74\x61\x74\x75\x73\x2A\x20\x72\x65\x74\x75\x72\x6E\x73\x20\x74\x68\x65\x20\x73\x74\x61\x74\x75\x73\x20\x6F\x66\x20\x74\x68\x65\x20\x72\x65\x70\x6F\x72\x74\x20\x6D\x6F\x73\x74\x6C\x79\x20\x72\x65\x63\x65\x6E\x74\x6C\x79\x20\x72\x65\x71\x75\x65\x73\x74\x65\x64\x20\x66\x6F\x72\x20\x45\x78\x63\x65\x6C\x20\x67\x65\x6E\x65\x72\x61\x74\x69\x6F\x6E\x2E\x20\x49\x74\x20\x64\x6F\x65\x73\x20\x6E\x6F\x74\x20\x72\x65\x74\x75\x72\x6E\x20\x74\x68\x65\x20\x73\x74\x61\x74\x75\x73\x20\x6F\x66\x20\x61\x6E\x79\x20\x68\x69\x73\x74\x6F\x72\x69\x63\x61\x6C\x20\x72\x65\x70\x6F\x72\x74\x20\x72\x65\x71\x75\x65\x73\x74\x73\x2E\x20\n\n\x50\x6F\x6C\x6C\x20\x74\x68\x69\x73\x20\x65\x6E\x64\x70\x6F\x69\x6E\x74\x20\x74\x6F\x20\x63\x68\x65\x63\x6B\x20\x74\x68\x65\x20\x70\x72\x6F\x67\x72\x65\x73\x73\x20\x6F\x66\x20\x74\x68\x65\x20\x72\x65\x70\x6F\x72\x74\x20\x6F\x6E\x63\x65\x20\x79\x6F\x75\x20\x68\x61\x76\x65\x20\x72\x65\x71\x75\x65\x73\x74\x65\x64\x20\x69\x74\x73\x20\x67\x65\x6E\x65\x72\x61\x74\x69\x6F\x6E\x2E\x20\x54\x68\x69\x73\x20\x77\x69\x6C\x6C\x20\x6E\x6F\x74\x20\x61\x66\x66\x65\x63\x74\x20\x74\x68\x65\x20\x67\x65\x6E\x65\x72\x61\x74\x69\x6F\x6E\x20\x6F\x66\x20\x74\x68\x65\x20\x72\x65\x70\x6F\x72\x74\x2E\x20\n\n\x57\x68\x65\x6E\x20\x74\x68\x65\x20\x72\x65\x70\x6F\x72\x74\x20\x67\x65\x6E\x65\x72\x61\x74\x69\x6F\x6E\x20\x63\x6F\x6D\x70\x6C\x65\x74\x65\x73\x20\x73\x75\x63\x63\x65\x73\x73\x66\x75\x6C\x6C\x79\x2C\x20\x74\x68\x65\x20\x60\x69\x6E\x50\x72\x6F\x67\x72\x65\x73\x73\x60\x20\x70\x72\x6F\x70\x65\x72\x74\x79\x20\x77\x69\x6C\x6C\x20\x62\x65\x20\x6D\x61\x72\x6B\x65\x64\x20\x61\x73\x20\x60\x66\x61\x6C\x73\x65\x60\x20\x61\x6E\x64\x20\x74\x68\x65\x20\x60\x73\x75\x63\x63\x65\x73\x73\x60\x20\x66\x69\x65\x6C\x64\x20\x77\x69\x6C\x6C\x20\x62\x65\x20\x6D\x61\x72\x6B\x65\x64\x20\x61\x73\x20\x60\x74\x72\x75\x65\x60\x2E" - parameters: - - $ref: '#/components/parameters/excelReportType' - '/data/companies/{companyId}/assess/excel/download': - parameters: - - $ref: '#/components/parameters/companyId' - get: - summary: Download Excel report - tags: - - Excel reports - responses: - '200': - description: OK - content: - application/octet-stream: - schema: {} - '400': - $ref: '#/components/responses/BadRequest' - '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' - operationId: download-excel-report - x-speakeasy-name-override: download - description: "\uFEFF\x54\x68\x65\x20\x2A\x44\x6F\x77\x6E\x6C\x6F\x61\x64\x20\x45\x78\x63\x65\x6C\x20\x72\x65\x70\x6F\x72\x74\x2A\x20\x65\x6E\x64\x70\x6F\x69\x6E\x74\x20\x64\x6F\x77\x6E\x6C\x6F\x61\x64\x73\x20\x74\x68\x65\x20\x6C\x61\x74\x65\x73\x74\x20\x73\x75\x63\x63\x65\x73\x73\x66\x75\x6C\x6C\x79\x20\x67\x65\x6E\x65\x72\x61\x74\x65\x64\x20\x45\x78\x63\x65\x6C\x20\x72\x65\x70\x6F\x72\x74\x20\x6F\x66\x20\x61\x20\x73\x70\x65\x63\x69\x66\x69\x65\x64\x20\x72\x65\x70\x6F\x72\x74\x20\x74\x79\x70\x65\x20\x66\x6F\x72\x20\x61\x20\x67\x69\x76\x65\x6E\x20\x63\x6F\x6D\x70\x61\x6E\x79\x2E\x20\n\n\x54\x68\x65\x20\x64\x6F\x77\x6E\x6C\x6F\x61\x64\x61\x62\x6C\x65\x20\x45\x78\x63\x65\x6C\x20\x66\x69\x6C\x65\x20\x69\x73\x20\x72\x65\x74\x75\x72\x6E\x65\x64\x20\x69\x6E\x20\x74\x68\x65\x20\x72\x65\x73\x70\x6F\x6E\x73\x65\x2E\x20\x59\x6F\x75\x20\x63\x61\x6E\x20\x73\x61\x76\x65\x20\x69\x74\x20\x74\x6F\x20\x79\x6F\x75\x72\x20\x6C\x6F\x63\x61\x6C\x20\x6D\x61\x63\x68\x69\x6E\x65\x2E\n\n\x59\x6F\x75\x20\x63\x61\x6E\x20\x5B\x6C\x65\x61\x72\x6E\x20\x6D\x6F\x72\x65\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x6C\x65\x6E\x64\x69\x6E\x67\x2F\x66\x65\x61\x74\x75\x72\x65\x73\x2F\x65\x78\x63\x65\x6C\x2D\x64\x6F\x77\x6E\x6C\x6F\x61\x64\x2D\x6F\x76\x65\x72\x76\x69\x65\x77\x23\x66\x65\x61\x74\x75\x72\x65\x2D\x63\x6F\x6D\x70\x6F\x6E\x65\x6E\x74\x73\x29\x20\x61\x62\x6F\x75\x74\x20\x76\x61\x6C\x69\x64\x20\x45\x78\x63\x65\x6C\x20\x72\x65\x70\x6F\x72\x74\x20\x74\x79\x70\x65\x73\x2E" - parameters: - - $ref: '#/components/parameters/excelReportType' - '/companies/{companyId}/connections/{connectionId}/data/accountTransactions': - get: - tags: - - Transactions - summary: List account transactions - description: "The *List account transactions* endpoint returns a list of [account transactions](https://docs.codat.io/lending-api#/schemas/AccountTransaction) for a given company's connection.\n\n[Account transactions](https://docs.codat.io/lending-api#/schemas/AccountTransaction) represent bank activity within an accounting software. All transactions that go through a bank account are recorded as account transactions.\n\nBefore using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data).\n " - operationId: list-accounting-account-transactions - x-speakeasy-group: transactions.account-transactions - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - - $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/AccountingAccountTransactions' - examples: - Clear Books: - value: - results: - - id: 062b3a9b-b04f-4d9c-9ebc-81dcb5bbf285 - transactionId: 356deb9f-98e6-4d6f-8db3-b378241895a1 - note: Direct income 38e8c917-0afc-4583-8ffe-1b53ad601197 - bankAccountRef: - id: ff8fdc4c-2aad-4ec1-9430-6bd201832eb3 - name: Undeposited Funds - date: '2022-04-19T00:00:00' - status: Unreconciled - currency: GBP - currencyRate: 1 - lines: - - description: Payment for direct income $38e8c917-0afc-4583-8ffe-1b53ad601197 - recordRef: - id: 38e8c917-0afc-4583-8ffe-1b53ad601197 - dataType: directIncomes - amount: 188.33 - totalAmount: 188.33 - modifiedDate: '2023-04-26T12:38:18' - sourceModifiedDate: '2022-05-13T01:06:00' - metadata: - isDeleted: false - - id: f2656119-9521-4d51-a24d-003b44c1410b - transactionId: 1fde4f8f-68ca-48fc-8fe7-79ac467d2946 - note: Direct income c31a3778-e3ea-4d01-9281-dd2f291c8cb8 - bankAccountRef: - id: ff8fdc4c-2aad-4ec1-9430-6bd201832eb3 - name: Undeposited Funds - date: '2022-04-19T00:00:00' - status: Void - currency: GBP - currencyRate: 1 - lines: - - description: Payment for direct income $c31a3778-e3ea-4d01-9281-dd2f291c8cb8 - recordRef: - id: c31a3778-e3ea-4d01-9281-dd2f291c8cb8 - dataType: directIncomes - amount: 32095.91 - totalAmount: 32095.91 - modifiedDate: '2023-04-26T12:38:18' - sourceModifiedDate: '2023-02-13T00:34:00' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 1745 - _links: - current: - href: /companies/354a121b-855f-4d25-90ad-0905b498c1c0/connections/57b731ba-1d45-4386-ba58-2a1ca0234624/data/accountTransactions?page=1&pageSize=2 - self: - href: /companies/354a121b-855f-4d25-90ad-0905b498c1c0/connections/57b731ba-1d45-4386-ba58-2a1ca0234624/data/accountTransactions - next: - href: /companies/354a121b-855f-4d25-90ad-0905b498c1c0/connections/57b731ba-1d45-4386-ba58-2a1ca0234624/data/accountTransactions?page=2&pageSize=2 - QuickBooks Desktop: - value: - results: - - id: D7B-933784104 - transactionId: D7B-933784104 - bankAccountRef: - id: 20000-933270541 - name: Checking - date: '2022-12-01T00:00:00' - status: Unknown - currency: GBP - currencyRate: 1 - lines: - - recordRef: - id: D7B-933784104 - dataType: directCosts - amount: -1200 - totalAmount: -1200 - modifiedDate: '2023-04-26T09:13:23' - sourceModifiedDate: '2023-12-16T05:04:10' - metadata: - isDeleted: false - - id: DFA-933785132 - transactionId: DFA-933785132 - bankAccountRef: - id: 20000-933270541 - name: Checking - date: '2022-12-05T00:00:00' - status: Unknown - currency: GBP - currencyRate: 1 - lines: - - recordRef: - id: DFA-933785132 - dataType: directCosts - amount: -35 - totalAmount: -35 - modifiedDate: '2023-04-26T09:13:23' - sourceModifiedDate: '2023-12-16T05:04:11' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 652 - _links: - current: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/connections/2c26b4da-97d4-4ba9-baad-1e18b49b96ac/data/accountTransactions?page=1&pageSize=2 - self: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/connections/2c26b4da-97d4-4ba9-baad-1e18b49b96ac/data/accountTransactions - next: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/connections/2c26b4da-97d4-4ba9-baad-1e18b49b96ac/data/accountTransactions?page=2&pageSize=2 - QuickBooks Online Sandbox: - value: - results: - - id: '85' - transactionId: '85' - note: Opening Balance from Bank - bankAccountRef: - id: '57' - name: Visa Credit Card - date: '2015-08-12T00:00:00' - status: Unknown - currency: GBP - currencyRate: 1 - lines: - - description: Opening Balance from Bank - recordRef: - id: PUR-85 - dataType: directCosts - amount: -3831.8 - totalAmount: -3831.8 - modifiedDate: '2023-04-26T09:37:16' - sourceModifiedDate: '2016-09-12T18:13:07Z' - metadata: - isDeleted: false - - id: '5' - transactionId: '5' - bankAccountRef: - id: '81' - name: Current - date: '2015-11-24T00:00:00' - status: Unknown - currency: GBP - currencyRate: 1 - lines: - - description: contribution to start business - recordRef: - id: 5-1 - dataType: directIncomes - amount: 10000 - - description: funds borrowed to start business - recordRef: - id: 5-2 - dataType: directIncomes - amount: 25000 - totalAmount: 35000 - modifiedDate: '2023-04-26T09:37:17' - sourceModifiedDate: '2016-09-12T15:26:26Z' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 9141 - _links: - current: - href: /companies/5a7f3597-36e1-4216-86fe-289ad36088a6/connections/1f9f6013-f8a5-4278-8a47-3ab7fdb6c24c/data/accountTransactions?page=1&pageSize=2 - self: - href: /companies/5a7f3597-36e1-4216-86fe-289ad36088a6/connections/1f9f6013-f8a5-4278-8a47-3ab7fdb6c24c/data/accountTransactions - next: - href: /companies/5a7f3597-36e1-4216-86fe-289ad36088a6/connections/1f9f6013-f8a5-4278-8a47-3ab7fdb6c24c/data/accountTransactions?page=2&pageSize=2 - QuickBooks Online: - value: - results: - - id: '1' - transactionId: '1' - note: Opening Balance from Bank - bankAccountRef: - id: '61' - name: Dave PP Current - date: '2018-09-21T00:00:00' - status: Unknown - currency: GBP - currencyRate: 1 - lines: - - recordRef: - id: '1' - dataType: directIncomes - amount: 170.23 - totalAmount: 170.23 - modifiedDate: '2023-01-18T11:03:12' - sourceModifiedDate: '2018-12-17T14:56:20Z' - - id: '15' - transactionId: '15' - note: Payment to Google - bankAccountRef: - id: '61' - name: Dave PP Current - date: '2018-09-21T00:00:00' - status: Unknown - currency: GBP - currencyRate: 1 - lines: - - description: Payment to Google - recordRef: - id: PUR-15 - dataType: directCosts - amount: -1.59 - totalAmount: -1.59 - modifiedDate: '2023-01-18T11:03:11' - sourceModifiedDate: '2018-12-17T14:56:44Z' - pageNumber: 1 - pageSize: 2 - totalResults: 5984 - _links: - current: - href: /companies/10818b5e-6e6a-4ed4-a1c5-3e3efe626e87/connections/9e28a776-f4be-425b-8a3d-ad49956de2c9/data/accountTransactions?page=1&pageSize=2 - self: - href: /companies/10818b5e-6e6a-4ed4-a1c5-3e3efe626e87/connections/9e28a776-f4be-425b-8a3d-ad49956de2c9/data/accountTransactions - next: - href: /companies/10818b5e-6e6a-4ed4-a1c5-3e3efe626e87/connections/9e28a776-f4be-425b-8a3d-ad49956de2c9/data/accountTransactions?page=2&pageSize=2 - Xero: - value: - results: - - id: 74004690-82a1-4810-aaca-6ce575af94b4 - transactionId: 74004690-82a1-4810-aaca-6ce575af94b4 - bankAccountRef: - id: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - name: Business Bank Account - date: '2021-12-20T00:00:00' - status: Reconciled - currency: GBP - currencyRate: 1 - lines: - - recordRef: - id: 74004690-82a1-4810-aaca-6ce575af94b4 - dataType: billPayments - amount: -7267.2 - totalAmount: -7267.2 - modifiedDate: '2023-03-15T20:37:10' - sourceModifiedDate: '2021-01-02T22:51:40' - metadata: - isDeleted: false - - id: 65b746c8-9a5d-4a95-8096-d2316fcff592 - transactionId: 65b746c8-9a5d-4a95-8096-d2316fcff592 - bankAccountRef: - id: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - name: Business Bank Account - date: '2022-02-17T00:00:00' - status: Reconciled - currency: GBP - currencyRate: 1 - lines: - - recordRef: - id: 65b746c8-9a5d-4a95-8096-d2316fcff592 - dataType: payments - amount: 4200 - totalAmount: 4200 - modifiedDate: '2023-03-15T20:37:10' - sourceModifiedDate: '2021-01-02T22:50:58' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 70 - _links: - current: - href: /companies/5ced9667-a310-443a-a711-958d36377141/connections/6a4bcf97-e46a-465c-abf6-c42cec8e48c0/data/accountTransactions?page=1&pageSize=2 - self: - href: /companies/5ced9667-a310-443a-a711-958d36377141/connections/6a4bcf97-e46a-465c-abf6-c42cec8e48c0/data/accountTransactions - next: - href: /companies/5ced9667-a310-443a-a711-958d36377141/connections/6a4bcf97-e46a-465c-abf6-c42cec8e48c0/data/accountTransactions?page=2&pageSize=2 - '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' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - '/companies/{companyId}/connections/{connectionId}/data/accountTransactions/{accountTransactionId}': - get: - tags: - - Transactions - summary: Get account transaction - operationId: get-accounting-account-transaction - x-speakeasy-group: transactions.account-transactions - description: | - The *Get account transaction* endpoint returns a single account transaction for a given accountTransactionId. - - [Account transactions](https://docs.codat.io/lending-api#/schemas/AccountTransaction) represent bank activity within an accounting software. All transactions that go through a bank account are recorded as account transactions. - - Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data). - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - - name: accountTransactionId - in: path - required: true - schema: - type: string - description: Unique identifier for an account transaction. - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/AccountingAccountTransaction' - examples: - Clear Books: - value: - id: 062b3a9b-b04f-4d9c-9ebc-81dcb5bbf285 - transactionId: 356deb9f-98e6-4d6f-8db3-b378241895a1 - note: Direct income 38e8c917-0afc-4583-8ffe-1b53ad601197 - bankAccountRef: - id: ff8fdc4c-2aad-4ec1-9430-6bd201832eb3 - name: Undeposited Funds - date: '2022-04-19T00:00:00' - status: Unreconciled - currency: GBP - currencyRate: 1 - lines: - - description: Payment for direct income $38e8c917-0afc-4583-8ffe-1b53ad601197 - recordRef: - id: 38e8c917-0afc-4583-8ffe-1b53ad601197 - dataType: directIncomes - amount: 188.33 - totalAmount: 188.33 - modifiedDate: '2023-04-26T12:38:18' - sourceModifiedDate: '2022-05-13T01:06:00' - metadata: - isDeleted: false - QuickBooks Desktop: - value: - id: D7B-933784104 - transactionId: D7B-933784104 - bankAccountRef: - id: 20000-933270541 - name: Checking - date: '2022-12-01T00:00:00' - status: Unknown - currency: GBP - currencyRate: 1 - lines: - - recordRef: - id: D7B-933784104 - dataType: directCosts - amount: -1200 - totalAmount: -1200 - modifiedDate: '2023-04-26T09:13:23' - sourceModifiedDate: '2023-12-16T05:04:10' - metadata: - isDeleted: false - QuickBooks Online Sandbox: - value: - id: '85' - transactionId: '85' - note: Opening Balance from Bank - bankAccountRef: - id: '57' - name: Visa Credit Card - date: '2015-08-12T00:00:00' - status: Unknown - currency: GBP - currencyRate: 1 - lines: - - description: Opening Balance from Bank - recordRef: - id: PUR-85 - dataType: directCosts - amount: -3831.8 - totalAmount: -3831.8 - modifiedDate: '2023-04-26T09:37:16' - sourceModifiedDate: '2016-09-12T18:13:07Z' - metadata: - isDeleted: false - QuickBooks Online: - value: - id: '1' - transactionId: '1' - note: Opening Balance from Bank - bankAccountRef: - id: '61' - name: Dave PP Current - date: '2018-09-21T00:00:00' - status: Unknown - currency: GBP - currencyRate: 1 - lines: - - recordRef: - id: '1' - dataType: directIncomes - amount: 170.23 - totalAmount: 170.23 - modifiedDate: '2023-01-18T11:03:12' - sourceModifiedDate: '2018-12-17T14:56:20Z' - Xero: - value: - id: 74004690-82a1-4810-aaca-6ce575af94b4 - transactionId: 74004690-82a1-4810-aaca-6ce575af94b4 - bankAccountRef: - id: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - name: Business Bank Account - date: '2021-12-20T00:00:00' - status: Reconciled - currency: GBP - currencyRate: 1 - lines: - - recordRef: - id: 74004690-82a1-4810-aaca-6ce575af94b4 - dataType: billPayments - amount: -7267.2 - totalAmount: -7267.2 - modifiedDate: '2023-03-15T20:37:10' - sourceModifiedDate: '2021-01-02T22:51:40' - metadata: - isDeleted: false - '401': - $ref: '#/components/responses/Unauthorized' - '402': - $ref: '#/components/responses/Payment-Required' - '403': - $ref: '#/components/responses/Forbidden' - '404': - $ref: '#/components/responses/Not-Found' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - '/companies/{companyId}/data/accounts': - get: - tags: - - Financial statements - summary: List accounts - description: "\uFEFF\x54\x68\x65\x20\x2A\x4C\x69\x73\x74\x20\x61\x63\x63\x6F\x75\x6E\x74\x73\x2A\x20\x65\x6E\x64\x70\x6F\x69\x6E\x74\x20\x72\x65\x74\x75\x72\x6E\x73\x20\x61\x20\x6C\x69\x73\x74\x20\x6F\x66\x20\x5B\x61\x63\x63\x6F\x75\x6E\x74\x73\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x6C\x65\x6E\x64\x69\x6E\x67\x2D\x61\x70\x69\x23\x2F\x73\x63\x68\x65\x6D\x61\x73\x2F\x41\x63\x63\x6F\x75\x6E\x74\x29\x20\x66\x6F\x72\x20\x61\x20\x67\x69\x76\x65\x6E\x20\x63\x6F\x6D\x70\x61\x6E\x79\x27\x73\x20\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x2E\n\n\x5B\x41\x63\x63\x6F\x75\x6E\x74\x73\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x6C\x65\x6E\x64\x69\x6E\x67\x2D\x61\x70\x69\x23\x2F\x73\x63\x68\x65\x6D\x61\x73\x2F\x41\x63\x63\x6F\x75\x6E\x74\x29\x20\x61\x72\x65\x20\x74\x68\x65\x20\x63\x61\x74\x65\x67\x6F\x72\x69\x65\x73\x20\x61\x20\x62\x75\x73\x69\x6E\x65\x73\x73\x20\x75\x73\x65\x73\x20\x74\x6F\x20\x72\x65\x63\x6F\x72\x64\x20\x61\x63\x63\x6F\x75\x6E\x74\x69\x6E\x67\x20\x74\x72\x61\x6E\x73\x61\x63\x74\x69\x6F\x6E\x73\x2E\n\n\x42\x65\x66\x6F\x72\x65\x20\x75\x73\x69\x6E\x67\x20\x74\x68\x69\x73\x20\x65\x6E\x64\x70\x6F\x69\x6E\x74\x2C\x20\x79\x6F\x75\x20\x6D\x75\x73\x74\x20\x68\x61\x76\x65\x20\x5B\x72\x65\x74\x72\x69\x65\x76\x65\x64\x20\x64\x61\x74\x61\x20\x66\x6F\x72\x20\x74\x68\x65\x20\x63\x6F\x6D\x70\x61\x6E\x79\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x6C\x65\x6E\x64\x69\x6E\x67\x2D\x61\x70\x69\x23\x2F\x6F\x70\x65\x72\x61\x74\x69\x6F\x6E\x73\x2F\x72\x65\x66\x72\x65\x73\x68\x2D\x63\x6F\x6D\x70\x61\x6E\x79\x2D\x64\x61\x74\x61\x29\x2E" - operationId: list-accounting-accounts - x-speakeasy-group: financial-statements.accounts - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/page' - - $ref: '#/components/parameters/pageSize' - - $ref: '#/components/parameters/query' - - $ref: '#/components/parameters/orderBy' - responses: - '200': - description: Success - content: - application/json: - x-speakeasy-usage-example: true - schema: - $ref: '#/components/schemas/AccountingAccounts' - examples: - Clear Books: - value: - results: - - id: 1b6266d1-1e44-46c5-8eb5-a8f98e03124e - nominalCode: '610' - name: Accounts Receivable - description: Invoices the business has issued but has not yet collected payment on. - fullyQualifiedCategory: Asset.Current - fullyQualifiedName: Asset.Current.Accounts Receivable - currency: GBP - currentBalance: 0 - type: Asset - status: Active - isBankAccount: false - modifiedDate: '2023-04-26T12:38:15Z' - sourceModifiedDate: '2022-12-10T16:39:00' - validDatatypeLinks: [] - metadata: - isDeleted: false - - id: 76d5f23b-9623-4e3b-89cd-da57228764d3 - nominalCode: '611' - name: Accounts Receivable - description: A provision anticipating that a portion of accounts receivable will never be collected. - fullyQualifiedCategory: Asset.Current - fullyQualifiedName: Asset.Current.Accounts Receivable - currency: GBP - currentBalance: 0 - type: Asset - status: Active - isBankAccount: false - modifiedDate: '2023-04-26T12:38:15Z' - sourceModifiedDate: '2022-10-19T05:49:00' - validDatatypeLinks: [] - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 98 - _links: - current: - href: /companies/354a121b-855f-4d25-90ad-0905b498c1c0/data/accounts?page=1&pageSize=2 - self: - href: /companies/354a121b-855f-4d25-90ad-0905b498c1c0/data/accounts - next: - href: /companies/354a121b-855f-4d25-90ad-0905b498c1c0/data/accounts?page=2&pageSize=2 - Dynamics 365 Business Central: - value: - results: - - id: 8eaed16d-c69f-ec11-80f1-0022481b4546 - nominalCode: 45422026-68CA-4EF2-9 - name: '' - fullyQualifiedCategory: ' .' - fullyQualifiedName: .. - currency: GBP - currentBalance: 0 - type: Unknown - status: Active - isBankAccount: false - modifiedDate: '2023-03-27T14:21:18Z' - sourceModifiedDate: '2022-03-09T16:31:54Z' - validDatatypeLinks: - - property: Id - links: - - DirectCost.LineItems.AccountRef.Id - metadata: - isDeleted: false - - id: c0861a65-c69f-ec11-80f1-0022481b4546 - nominalCode: '10' - name: Account no cat Balance Sheet - fullyQualifiedCategory: ' .' - fullyQualifiedName: ..Account no cat Balance Sheet - currency: GBP - currentBalance: 27.34 - type: Unknown - status: Active - isBankAccount: false - modifiedDate: '2023-03-27T14:21:18Z' - sourceModifiedDate: '2022-09-13T14:45:01Z' - validDatatypeLinks: - - property: Id - links: - - DirectCost.LineItems.AccountRef.Id - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 122 - _links: - current: - href: /companies/d6849caf-c146-41be-8335-b73346e3bd84/data/accounts?page=1&pageSize=2 - self: - href: /companies/d6849caf-c146-41be-8335-b73346e3bd84/data/accounts - next: - href: /companies/d6849caf-c146-41be-8335-b73346e3bd84/data/accounts?page=2&pageSize=2 - Exact (Netherlands): - value: - results: - - id: ef2fde36-4416-4bc5-b239-315b2929348c - nominalCode: '1300' - name: Debiteuren - description: Debiteuren - fullyQualifiedCategory: Asset.Assets.AccountsReceivable - fullyQualifiedName: Asset.Assets.AccountsReceivable.Debiteuren.PaymentsEnabled - currency: EUR - currentBalance: 864435.44 - type: Asset - status: Active - isBankAccount: false - modifiedDate: '2022-10-26T13:36:17Z' - sourceModifiedDate: '2020-01-08T09:42:54Z' - validDatatypeLinks: - - property: Id - links: - - Transfer.To.AccountRef.Id - - Transfer.From.AccountRef.Id - - Payment.AccountRef.Id - - BillPayment.AccountRef.Id - - id: 2052b65b-20e9-4da1-85d8-fd5ca0ea3d38 - nominalCode: '888777888' - name: One more AR account - description: One more AR account - fullyQualifiedCategory: Asset.Assets.AccountsReceivable - fullyQualifiedName: Asset.Assets.AccountsReceivable.One more AR account.PaymentsEnabled - currency: EUR - currentBalance: 2174.82 - type: Asset - status: Active - isBankAccount: false - modifiedDate: '2022-10-26T13:36:17Z' - sourceModifiedDate: '2021-06-10T11:00:20Z' - validDatatypeLinks: - - property: Id - links: - - Transfer.To.AccountRef.Id - - Transfer.From.AccountRef.Id - - Payment.AccountRef.Id - - BillPayment.AccountRef.Id - pageNumber: 1 - pageSize: 2 - totalResults: 230 - _links: - current: - href: /companies/b83b1923-4db6-45a8-a779-b4e320c15979/data/accounts?page=1&pageSize=2 - self: - href: /companies/b83b1923-4db6-45a8-a779-b4e320c15979/data/accounts - next: - href: /companies/b83b1923-4db6-45a8-a779-b4e320c15979/data/accounts?page=2&pageSize=2 - Exact (UK): - value: - results: - - id: ca2b96b7-cc45-4e35-9fa3-82a2ba1eec40 - nominalCode: THING - name: Some thing account - description: Some thing account - fullyQualifiedCategory: Asset.Assets.AccountsReceivable - fullyQualifiedName: Asset.Assets.AccountsReceivable.Some thing account.PaymentsEnabled - currency: GBP - currentBalance: 0 - type: Asset - status: Active - isBankAccount: false - modifiedDate: '2022-10-26T13:35:15Z' - sourceModifiedDate: '2017-08-01T17:31:12Z' - validDatatypeLinks: - - property: Id - links: - - Transfer.To.AccountRef.Id - - Transfer.From.AccountRef.Id - - Payment.AccountRef.Id - - BillPayment.AccountRef.Id - - id: cf9572e7-8afa-4339-9113-af32a66d9df9 - nominalCode: '15400' - name: Trade Debtors - description: Trade Debtors - fullyQualifiedCategory: Asset.Assets.AccountsReceivable - fullyQualifiedName: Asset.Assets.AccountsReceivable.Trade Debtors.PaymentsEnabled - currency: GBP - currentBalance: 4484655.39 - type: Asset - status: Active - isBankAccount: false - modifiedDate: '2022-10-26T13:35:15Z' - sourceModifiedDate: '2020-01-08T13:48:38Z' - validDatatypeLinks: - - property: Id - links: - - Transfer.To.AccountRef.Id - - Transfer.From.AccountRef.Id - - Payment.AccountRef.Id - - BillPayment.AccountRef.Id - pageNumber: 1 - pageSize: 2 - totalResults: 121 - _links: - current: - href: /companies/d95030cd-22b2-482b-9c7b-2980dcc2b1ce/data/accounts?page=1&pageSize=2 - self: - href: /companies/d95030cd-22b2-482b-9c7b-2980dcc2b1ce/data/accounts - next: - href: /companies/d95030cd-22b2-482b-9c7b-2980dcc2b1ce/data/accounts?page=2&pageSize=2 - FreeAgent: - value: - results: - - id: '601' - nominalCode: '601' - name: Capital Asset Brought Forward - fullyQualifiedCategory: Asset.Capital - fullyQualifiedName: Asset.Capital.Capital Asset Brought Forward - currency: GBP - type: Asset - status: Active - isBankAccount: false - modifiedDate: '2023-04-25T14:19:12Z' - validDatatypeLinks: [] - metadata: - isDeleted: false - - id: '605' - nominalCode: '605' - name: Capital Asset Depreciation Brought Forward - fullyQualifiedCategory: Asset.Capital - fullyQualifiedName: Asset.Capital.Capital Asset Depreciation Brought Forward - currency: GBP - type: Asset - status: Active - isBankAccount: false - modifiedDate: '2023-04-25T14:19:12Z' - validDatatypeLinks: [] - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 292 - _links: - current: - href: /companies/071ad738-68f3-4561-afd0-69bab9df0803/data/accounts?page=1&pageSize=2 - self: - href: /companies/071ad738-68f3-4561-afd0-69bab9df0803/data/accounts - next: - href: /companies/071ad738-68f3-4561-afd0-69bab9df0803/data/accounts?page=2&pageSize=2 - FreshBooks: - value: - results: - - id: '67357' - nominalCode: '1200' - name: Accounts Receivable - fullyQualifiedCategory: Asset - fullyQualifiedName: Asset.Accounts Receivable - currency: GBP - currentBalance: 51445.53 - type: Asset - status: Active - isBankAccount: false - modifiedDate: '2023-03-24T16:07:24Z' - validDatatypeLinks: [] - metadata: - isDeleted: false - - id: '128611' - nominalCode: 1200-1 - name: Accounts Receivable - fullyQualifiedCategory: Asset.Accounts Receivable - fullyQualifiedName: Asset.Accounts Receivable.Accounts Receivable - currency: GBP - currentBalance: 51445.53 - type: Asset - status: Active - isBankAccount: false - modifiedDate: '2023-03-24T16:07:24Z' - validDatatypeLinks: [] - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 96 - _links: - current: - href: /companies/3691c49e-0db4-4172-b3ab-e4084c365013/data/accounts?page=1&pageSize=2 - self: - href: /companies/3691c49e-0db4-4172-b3ab-e4084c365013/data/accounts - next: - href: /companies/3691c49e-0db4-4172-b3ab-e4084c365013/data/accounts?page=2&pageSize=2 - KashFlow: - value: - results: - - id: '27840056' - nominalCode: '70700' - name: 16th Account - fullyQualifiedCategory: Asset.BankAccount - fullyQualifiedName: Asset.BankAccount.16th Account - currency: GBP - currentBalance: 0 - type: Asset - status: Active - isBankAccount: true - modifiedDate: '2022-09-30T10:29:16Z' - validDatatypeLinks: [] - - id: '27840049' - nominalCode: '70600' - name: 1a1a - fullyQualifiedCategory: Asset.BankAccount - fullyQualifiedName: Asset.BankAccount.1a1a - currency: GBP - currentBalance: 0 - type: Asset - status: Active - isBankAccount: true - modifiedDate: '2022-09-30T10:29:16Z' - validDatatypeLinks: [] - pageNumber: 1 - pageSize: 2 - totalResults: 157 - _links: - current: - href: /companies/3a707a99-89da-4b16-a5d6-595333a16352/data/accounts?page=1&pageSize=2 - self: - href: /companies/3a707a99-89da-4b16-a5d6-595333a16352/data/accounts - next: - href: /companies/3a707a99-89da-4b16-a5d6-595333a16352/data/accounts?page=2&pageSize=2 - Oracle NetSuite: - value: - results: - - id: '111' - name: Accounts Payable - fullyQualifiedCategory: AcctPay.AcctPay - fullyQualifiedName: AcctPay.AcctPay.Accounts Payable - currentBalance: -635.55 - type: Liability - status: Active - isBankAccount: false - modifiedDate: '2023-01-30T14:48:33Z' - sourceModifiedDate: '2021-08-11T12:51:21' - validDatatypeLinks: [] - - id: '119' - name: Accounts Receivable - fullyQualifiedCategory: AcctRec.AcctRec - fullyQualifiedName: AcctRec.AcctRec.Accounts Receivable - currentBalance: -565 - type: Asset - status: Active - isBankAccount: false - modifiedDate: '2023-01-30T14:48:33Z' - sourceModifiedDate: '2021-09-08T15:23:31' - validDatatypeLinks: [] - pageNumber: 1 - pageSize: 2 - totalResults: 44 - _links: - current: - href: /companies/d5074b08-6a34-4b06-a742-236edf5dc4f1/data/accounts?page=1&pageSize=2 - self: - href: /companies/d5074b08-6a34-4b06-a742-236edf5dc4f1/data/accounts - next: - href: /companies/d5074b08-6a34-4b06-a742-236edf5dc4f1/data/accounts?page=2&pageSize=2 - QuickBooks Desktop: - value: - results: - - id: 40000-933270541 - nominalCode: '11000' - name: Accounts Receivable - description: Accounts Receivable - fullyQualifiedCategory: Asset.CurrentAsset.AccountsReceivable - fullyQualifiedName: Asset.CurrentAsset.AccountsReceivable.Accounts Receivable - currency: GBP - currentBalance: 93007.93 - type: Asset - status: Active - isBankAccount: false - modifiedDate: '2023-04-26T09:06:23Z' - sourceModifiedDate: '2023-12-16T05:06:45' - validDatatypeLinks: [] - metadata: - isDeleted: false - - id: 20000-933270541 - nominalCode: '10100' - name: Checking - description: Cash - fullyQualifiedCategory: Asset.CurrentAsset.Bank - fullyQualifiedName: Asset.CurrentAsset.Bank.Checking - currency: GBP - currentBalance: 46954.1 - type: Asset - status: Active - isBankAccount: true - modifiedDate: '2023-04-26T09:06:23Z' - sourceModifiedDate: '2023-12-16T05:06:45' - validDatatypeLinks: - - property: Id - links: - - BillLineItem.AccountRef.Id - - BillPayment.AccountRef.Id - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 116 - _links: - current: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/data/accounts?page=1&pageSize=2 - self: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/data/accounts - next: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/data/accounts?page=2&pageSize=2 - QuickBooks Online: - value: - results: - - id: '62' - nominalCode: '246' - name: Debtors - fullyQualifiedCategory: Asset.Accounts Receivable.AccountsReceivable - fullyQualifiedName: Asset.Accounts Receivable.AccountsReceivable.Debtors - currency: GBP - currentBalance: 41289.37 - type: Asset - status: Active - isBankAccount: false - modifiedDate: '2023-01-18T11:02:34Z' - sourceModifiedDate: '2022-12-08T15:42:59Z' - validDatatypeLinks: [] - - id: '92' - nominalCode: '247' - name: Debtors - AED - fullyQualifiedCategory: Asset.Accounts Receivable.AccountsReceivable - fullyQualifiedName: Asset.Accounts Receivable.AccountsReceivable.Debtors - AED - currency: AED - currentBalance: -1533.44 - type: Asset - status: Active - isBankAccount: false - modifiedDate: '2023-01-18T11:02:34Z' - sourceModifiedDate: '2021-02-19T14:04:45Z' - validDatatypeLinks: [] - pageNumber: 1 - pageSize: 2 - totalResults: 234 - _links: - current: - href: /companies/10818b5e-6e6a-4ed4-a1c5-3e3efe626e87/data/accounts?page=1&pageSize=2 - self: - href: /companies/10818b5e-6e6a-4ed4-a1c5-3e3efe626e87/data/accounts - next: - href: /companies/10818b5e-6e6a-4ed4-a1c5-3e3efe626e87/data/accounts?page=2&pageSize=2 - QuickBooks Online Sandbox: - value: - results: - - id: '70' - name: Debtors - fullyQualifiedCategory: Asset.Accounts Receivable.AccountsReceivable - fullyQualifiedName: Asset.Accounts Receivable.AccountsReceivable.Debtors - currency: GBP - currentBalance: 3041173.77 - type: Asset - status: Active - isBankAccount: false - modifiedDate: '2023-04-26T09:35:55Z' - sourceModifiedDate: '2023-04-26T01:18:15Z' - validDatatypeLinks: [] - metadata: - isDeleted: false - - id: '80' - name: Debtors - USD - fullyQualifiedCategory: Asset.Accounts Receivable.AccountsReceivable - fullyQualifiedName: Asset.Accounts Receivable.AccountsReceivable.Debtors - USD - currency: USD - currentBalance: 54822.37 - type: Asset - status: Active - isBankAccount: false - modifiedDate: '2023-04-26T09:35:55Z' - sourceModifiedDate: '2023-04-12T15:10:38Z' - validDatatypeLinks: [] - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 186 - _links: - current: - href: /companies/5a7f3597-36e1-4216-86fe-289ad36088a6/data/accounts?page=1&pageSize=2 - self: - href: /companies/5a7f3597-36e1-4216-86fe-289ad36088a6/data/accounts - next: - href: /companies/5a7f3597-36e1-4216-86fe-289ad36088a6/data/accounts?page=2&pageSize=2 - Sage 200cloud: - value: - results: - - id: '2864' - nominalCode: '1200' - name: Bank Account - description: Bank Account - fullyQualifiedCategory: Asset.Bank Account - fullyQualifiedName: Asset.Bank Account.Bank Account - type: Asset - status: Archived - isBankAccount: false - modifiedDate: '2022-10-14T09:35:52Z' - validDatatypeLinks: [] - metadata: - isDeleted: true - - id: '2368' - nominalCode: '1200' - name: Bank Current Account - description: Bank Current Account - fullyQualifiedCategory: Asset.Bank Account - fullyQualifiedName: Asset.Bank Account.Bank Current Account - type: Asset - status: Active - isBankAccount: true - modifiedDate: '2022-10-14T09:35:52Z' - sourceModifiedDate: '2020-09-11T13:53:12Z' - validDatatypeLinks: [] - pageNumber: 1 - pageSize: 2 - totalResults: 344 - _links: - current: - href: /companies/93c21e2d-049c-4d24-b41b-57e61c30b69e/data/accounts?page=1&pageSize=2 - self: - href: /companies/93c21e2d-049c-4d24-b41b-57e61c30b69e/data/accounts - next: - href: /companies/93c21e2d-049c-4d24-b41b-57e61c30b69e/data/accounts?page=2&pageSize=2 - Sage 50 (UK): - value: - results: - - id: '1100' - nominalCode: '1100' - name: Debtors Control Account - fullyQualifiedCategory: Asset.CurrentAssets.Debtors - fullyQualifiedName: Asset.CurrentAssets.Debtors.Debtors Control Account - currency: GBP - currentBalance: 90640.61 - type: Asset - status: Active - isBankAccount: false - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - validDatatypeLinks: [] - metadata: - isDeleted: false - - id: '1102' - nominalCode: '1102' - name: Other Debtors - fullyQualifiedCategory: Asset.CurrentAssets.Debtors - fullyQualifiedName: Asset.CurrentAssets.Debtors.Other Debtors - currency: GBP - currentBalance: 0 - type: Asset - status: Active - isBankAccount: false - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - validDatatypeLinks: [] - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 155 - _links: - current: - href: /companies/cf5f2a47-2990-4221-bae6-0c19c86ac304/data/accounts?page=1&pageSize=2 - self: - href: /companies/cf5f2a47-2990-4221-bae6-0c19c86ac304/data/accounts - next: - href: /companies/cf5f2a47-2990-4221-bae6-0c19c86ac304/data/accounts?page=2&pageSize=2 - Sage Business Cloud Accounting: - value: - results: - - id: e5889b459f544926ac5b8e6756df2ad4 - nominalCode: '1560' - name: Abdi Internet Bank - fullyQualifiedCategory: Asset.Bank - fullyQualifiedName: Asset.Bank.Abdi Internet Bank - currency: GBP - currentBalance: 49.61 - type: Asset - status: Active - isBankAccount: true - modifiedDate: '2022-10-24T14:52:53Z' - sourceModifiedDate: '2020-01-27T10:53:26Z' - validDatatypeLinks: - - property: Id - links: - - Payment.AccountRef.Id - - BillPayment.AccountRef.Id - - id: b17083bc9b2748b4ab321b024e260eda - nominalCode: '147852' - name: Abdi Live Test - fullyQualifiedCategory: Asset.Bank - fullyQualifiedName: Asset.Bank.Abdi Live Test - currency: GBP - currentBalance: 225830.75 - type: Asset - status: Active - isBankAccount: true - modifiedDate: '2022-10-24T14:52:53Z' - sourceModifiedDate: '2020-01-28T14:00:20Z' - validDatatypeLinks: - - property: Id - links: - - Payment.AccountRef.Id - - BillPayment.AccountRef.Id - pageNumber: 1 - pageSize: 2 - totalResults: 283 - _links: - current: - href: /companies/390083e2-351b-407c-a3be-55081c36c182/data/accounts?page=1&pageSize=2 - self: - href: /companies/390083e2-351b-407c-a3be-55081c36c182/data/accounts - next: - href: /companies/390083e2-351b-407c-a3be-55081c36c182/data/accounts?page=2&pageSize=2 - Sage Intacct: - value: - results: - - id: '2' - nominalCode: '12100' - name: Accounts Receivable - fullyQualifiedCategory: 'Assets.Current Assets.Account Receivable, Net of Allowance.Accounts Receivable.Accounts Receivable' - fullyQualifiedName: 'Assets.Current Assets.Account Receivable, Net of Allowance.Accounts Receivable.Accounts Receivable.Accounts Receivable' - currency: GBP - currentBalance: 0 - type: Asset - status: Active - isBankAccount: false - modifiedDate: '2023-04-04T16:31:51Z' - sourceModifiedDate: '2020-01-29T01:42:43' - validDatatypeLinks: [] - metadata: - isDeleted: false - - id: '155' - nominalCode: '12710' - name: AR - Retainage - fullyQualifiedCategory: 'Assets.Current Assets.Account Receivable, Net of Allowance.Accounts Receivable.Accounts Receivable' - fullyQualifiedName: 'Assets.Current Assets.Account Receivable, Net of Allowance.Accounts Receivable.Accounts Receivable.AR - Retainage' - currency: GBP - currentBalance: 0 - type: Asset - status: Active - isBankAccount: false - modifiedDate: '2023-04-04T16:31:51Z' - sourceModifiedDate: '2020-10-15T15:33:15' - validDatatypeLinks: [] - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 181 - _links: - current: - href: /companies/df02b289-cb16-4964-ac4d-9fd60b04538e/data/accounts?page=1&pageSize=2 - self: - href: /companies/df02b289-cb16-4964-ac4d-9fd60b04538e/data/accounts - next: - href: /companies/df02b289-cb16-4964-ac4d-9fd60b04538e/data/accounts?page=2&pageSize=2 - Wave: - value: - results: - - id: QWNjb3VudDo5MjIzNDE3NjkzMzk3NjA2MzM7QnVzaW5lc3M6ZTI0OGQyZDctMWE5Ni00YTk4LWFkOTEtMDdlMGYyMmNhNmE2 - name: Abdi Bank - description: Test Balance Sheet - fullyQualifiedCategory: Asset.CashAndBank - fullyQualifiedName: Asset.CashAndBank.Abdi Bank - currency: GBP - type: Asset - status: Active - isBankAccount: true - modifiedDate: '2022-11-16T18:15:17Z' - validDatatypeLinks: [] - - id: QWNjb3VudDo3OTE3NTA1OTcwOTQxNzQ3MTU7QnVzaW5lc3M6ZTI0OGQyZDctMWE5Ni00YTk4LWFkOTEtMDdlMGYyMmNhNmE2 - name: Cash on Hand - description: Cash you haven�t deposited in the bank. Add your bank and credit card accounts to accurately categorize transactions that aren't cash. - fullyQualifiedCategory: Asset.CashAndBank - fullyQualifiedName: Asset.CashAndBank.Cash on Hand - currency: GBP - type: Asset - status: Active - isBankAccount: true - modifiedDate: '2022-11-16T18:15:17Z' - validDatatypeLinks: [] - pageNumber: 1 - pageSize: 2 - totalResults: 85 - _links: - current: - href: /companies/0b22b59d-b4e5-4c35-b03f-88bbbcb41256/data/accounts?page=1&pageSize=2 - self: - href: /companies/0b22b59d-b4e5-4c35-b03f-88bbbcb41256/data/accounts - next: - href: /companies/0b22b59d-b4e5-4c35-b03f-88bbbcb41256/data/accounts?page=2&pageSize=2 - Xero: - value: - results: - - id: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - nominalCode: A090 - name: Business Bank Account - fullyQualifiedCategory: Asset.Bank - fullyQualifiedName: Asset.Bank.Business Bank Account - currency: GBP - currentBalance: 924.25 - type: Asset - status: Active - isBankAccount: true - modifiedDate: '2023-03-15T20:35:08Z' - sourceModifiedDate: '2023-02-17T11:10:49' - validDatatypeLinks: - - property: Id - links: - - Payment.AccountRef.Id - - BillPayment.AccountRef.Id - - DirectIncome.LineItems.AccountRef.Id - - DirectCost.LineItems.AccountRef.Id - metadata: - isDeleted: false - - id: a8d6fb1a-8c5d-4683-90ce-bf9d28fc62ba - nominalCode: A091 - name: Business Savings Account - fullyQualifiedCategory: Asset.Bank - fullyQualifiedName: Asset.Bank.Business Savings Account - currency: GBP - currentBalance: 0 - type: Asset - status: Active - isBankAccount: true - modifiedDate: '2023-03-15T20:35:08Z' - sourceModifiedDate: '2023-02-17T11:10:49' - validDatatypeLinks: - - property: Id - links: - - Payment.AccountRef.Id - - BillPayment.AccountRef.Id - - DirectIncome.LineItems.AccountRef.Id - - DirectCost.LineItems.AccountRef.Id - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 90 - _links: - current: - href: /companies/5ced9667-a310-443a-a711-958d36377141/data/accounts?page=1&pageSize=2 - self: - href: /companies/5ced9667-a310-443a-a711-958d36377141/data/accounts - next: - href: /companies/5ced9667-a310-443a-a711-958d36377141/data/accounts?page=2&pageSize=2 - Zoho Books: - value: - results: - - id: '104957000000000352' - nominalCode: '' - name: Accounts Receivable - description: The money that customers owe you becomes the accounts receivable. A good example of this is a payment expected from an invoice sent to your customer. - fullyQualifiedCategory: Asset.accounts_receivable - fullyQualifiedName: Asset.accounts_receivable.Accounts Receivable - currency: GBP - currentBalance: -959.64 - type: Asset - status: Active - isBankAccount: false - modifiedDate: '2022-10-03T08:40:43Z' - sourceModifiedDate: '2020-02-05T14:58:44' - validDatatypeLinks: [] - - id: '104957000000060010' - nominalCode: '' - name: Abdi Test - description: '' - fullyQualifiedCategory: Asset.bank - fullyQualifiedName: Asset.bank.Abdi Test - currency: GBP - currentBalance: 69858.44 - type: Asset - status: Active - isBankAccount: true - modifiedDate: '2022-10-03T08:40:43Z' - sourceModifiedDate: '2020-02-17T12:19:47' - validDatatypeLinks: [] - pageNumber: 1 - pageSize: 2 - totalResults: 68 - _links: - current: - href: /companies/d0b68840-db50-4bc3-b88c-96e225333fea/data/accounts?page=1&pageSize=2 - self: - href: /companies/d0b68840-db50-4bc3-b88c-96e225333fea/data/accounts - next: - href: /companies/d0b68840-db50-4bc3-b88c-96e225333fea/data/accounts?page=2&pageSize=2 - '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' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - '/companies/{companyId}/data/accounts/{accountId}': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/accountingAccountId' - get: - tags: - - Financial statements - summary: Get account - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/AccountingAccount' - examples: - Clear Books: - value: - id: 1b6266d1-1e44-46c5-8eb5-a8f98e03124e - nominalCode: '610' - name: Accounts Receivable - description: Invoices the business has issued but has not yet collected payment on. - fullyQualifiedCategory: Asset.Current - fullyQualifiedName: Asset.Current.Accounts Receivable - currency: GBP - currentBalance: 0 - type: Asset - status: Active - isBankAccount: false - modifiedDate: '2023-04-26T12:38:15Z' - sourceModifiedDate: '2022-12-10T16:39:00' - validDatatypeLinks: [] - Dynamics 365 Business Central: - value: - id: 8eaed16d-c69f-ec11-80f1-0022481b4546 - nominalCode: 45422026-68CA-4EF2-9 - name: '' - fullyQualifiedCategory: ' .' - fullyQualifiedName: .. - currency: GBP - currentBalance: 0 - type: Unknown - status: Active - isBankAccount: false - modifiedDate: '2023-03-27T14:21:18Z' - sourceModifiedDate: '2022-03-09T16:31:54Z' - validDatatypeLinks: - - property: Id - links: - - DirectCost.LineItems.AccountRef.Id - Exact (Netherlands): - value: - id: ef2fde36-4416-4bc5-b239-315b2929348c - nominalCode: '1300' - name: Debiteuren - description: Debiteuren - fullyQualifiedCategory: Asset.Assets.AccountsReceivable - fullyQualifiedName: Asset.Assets.AccountsReceivable.Debiteuren.PaymentsEnabled - currency: EUR - currentBalance: 864435.44 - type: Asset - status: Active - isBankAccount: false - modifiedDate: '2022-10-26T13:36:17Z' - sourceModifiedDate: '2020-01-08T09:42:54Z' - validDatatypeLinks: - - property: Id - links: - - Transfer.To.AccountRef.Id - - Transfer.From.AccountRef.Id - - Payment.AccountRef.Id - - BillPayment.AccountRef.Id - Exact (UK): - value: - id: ca2b96b7-cc45-4e35-9fa3-82a2ba1eec40 - nominalCode: THING - name: Some thing account - description: Some thing account - fullyQualifiedCategory: Asset.Assets.AccountsReceivable - fullyQualifiedName: Asset.Assets.AccountsReceivable.Some thing account.PaymentsEnabled - currency: GBP - currentBalance: 0 - type: Asset - status: Active - isBankAccount: false - modifiedDate: '2022-10-26T13:35:15Z' - sourceModifiedDate: '2017-08-01T17:31:12Z' - validDatatypeLinks: - - property: Id - links: - - Transfer.To.AccountRef.Id - - Transfer.From.AccountRef.Id - - Payment.AccountRef.Id - - BillPayment.AccountRef.Id - FreeAgent: - value: - id: '601' - nominalCode: '601' - name: Capital Asset Brought Forward - fullyQualifiedCategory: Asset.Capital - fullyQualifiedName: Asset.Capital.Capital Asset Brought Forward - currency: GBP - type: Asset - status: Active - isBankAccount: false - modifiedDate: '2023-04-25T14:19:12Z' - validDatatypeLinks: [] - FreshBooks: - value: - id: '67357' - nominalCode: '1200' - name: Accounts Receivable - fullyQualifiedCategory: Asset - fullyQualifiedName: Asset.Accounts Receivable - currency: GBP - currentBalance: 51445.53 - type: Asset - status: Active - isBankAccount: false - modifiedDate: '2023-03-24T16:07:24Z' - validDatatypeLinks: [] - KashFlow: - value: - id: '27840056' - nominalCode: '70700' - name: 16th Account - fullyQualifiedCategory: Asset.BankAccount - fullyQualifiedName: Asset.BankAccount.16th Account - currency: GBP - currentBalance: 0 - type: Asset - status: Active - isBankAccount: true - modifiedDate: '2022-09-30T10:29:16Z' - validDatatypeLinks: [] - Oracle NetSuite: - value: - id: '111' - name: Accounts Payable - fullyQualifiedCategory: AcctPay.AcctPay - fullyQualifiedName: AcctPay.AcctPay.Accounts Payable - currentBalance: -635.55 - type: Liability - status: Active - isBankAccount: false - modifiedDate: '2023-01-30T14:48:33Z' - sourceModifiedDate: '2021-08-11T12:51:21' - validDatatypeLinks: [] - QuickBooks Desktop: - value: - id: 40000-933270541 - nominalCode: '11000' - name: Accounts Receivable - description: Accounts Receivable - fullyQualifiedCategory: Asset.CurrentAsset.AccountsReceivable - fullyQualifiedName: Asset.CurrentAsset.AccountsReceivable.Accounts Receivable - currency: GBP - currentBalance: 93007.93 - type: Asset - status: Active - isBankAccount: false - modifiedDate: '2023-04-26T09:06:23Z' - sourceModifiedDate: '2023-12-16T05:06:45' - validDatatypeLinks: [] - QuickBooks Online: - value: - id: '62' - nominalCode: '246' - name: Debtors - fullyQualifiedCategory: Asset.Accounts Receivable.AccountsReceivable - fullyQualifiedName: Asset.Accounts Receivable.AccountsReceivable.Debtors - currency: GBP - currentBalance: 41289.37 - type: Asset - status: Active - isBankAccount: false - modifiedDate: '2023-01-18T11:02:34Z' - sourceModifiedDate: '2022-12-08T15:42:59Z' - validDatatypeLinks: [] - QuickBooks Online Sandbox: - value: - id: '70' - name: Debtors - fullyQualifiedCategory: Asset.Accounts Receivable.AccountsReceivable - fullyQualifiedName: Asset.Accounts Receivable.AccountsReceivable.Debtors - currency: GBP - currentBalance: 3041173.77 - type: Asset - status: Active - isBankAccount: false - modifiedDate: '2023-04-26T09:35:55Z' - sourceModifiedDate: '2023-04-26T01:18:15Z' - validDatatypeLinks: [] - Sage 200cloud: - value: - id: '2864' - nominalCode: '1200' - name: Bank Account - description: Bank Account - fullyQualifiedCategory: Asset.Bank Account - fullyQualifiedName: Asset.Bank Account.Bank Account - type: Asset - status: Archived - isBankAccount: false - modifiedDate: '2022-10-14T09:35:52Z' - validDatatypeLinks: [] - Sage 50 (UK): - value: - id: '1100' - nominalCode: '1100' - name: Debtors Control Account - fullyQualifiedCategory: Asset.CurrentAssets.Debtors - fullyQualifiedName: Asset.CurrentAssets.Debtors.Debtors Control Account - currency: GBP - currentBalance: 90640.61 - type: Asset - status: Active - isBankAccount: false - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - validDatatypeLinks: [] - Sage Business Cloud Accounting: - value: - id: e5889b459f544926ac5b8e6756df2ad4 - nominalCode: '1560' - name: Abdi Internet Bank - fullyQualifiedCategory: Asset.Bank - fullyQualifiedName: Asset.Bank.Abdi Internet Bank - currency: GBP - currentBalance: 49.61 - type: Asset - status: Active - isBankAccount: true - modifiedDate: '2022-10-24T14:52:53Z' - sourceModifiedDate: '2020-01-27T10:53:26Z' - validDatatypeLinks: - - property: Id - links: - - Payment.AccountRef.Id - - BillPayment.AccountRef.Id - Sage Intacct: - value: - id: '2' - nominalCode: '12100' - name: Accounts Receivable - fullyQualifiedCategory: 'Assets.Current Assets.Account Receivable, Net of Allowance.Accounts Receivable.Accounts Receivable' - fullyQualifiedName: 'Assets.Current Assets.Account Receivable, Net of Allowance.Accounts Receivable.Accounts Receivable.Accounts Receivable' - currency: GBP - currentBalance: 0 - type: Asset - status: Active - isBankAccount: false - modifiedDate: '2023-04-04T16:31:51Z' - sourceModifiedDate: '2020-01-29T01:42:43' - validDatatypeLinks: [] - Wave: - value: - id: QWNjb3VudDo5MjIzNDE3NjkzMzk3NjA2MzM7QnVzaW5lc3M6ZTI0OGQyZDctMWE5Ni00YTk4LWFkOTEtMDdlMGYyMmNhNmE2 - name: Abdi Bank - description: Test Balance Sheet - fullyQualifiedCategory: Asset.CashAndBank - fullyQualifiedName: Asset.CashAndBank.Abdi Bank - currency: GBP - type: Asset - status: Active - isBankAccount: true - modifiedDate: '2022-11-16T18:15:17Z' - validDatatypeLinks: [] - Xero: - value: - id: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - nominalCode: A090 - name: Business Bank Account - fullyQualifiedCategory: Asset.Bank - fullyQualifiedName: Asset.Bank.Business Bank Account - currency: GBP - currentBalance: 924.25 - type: Asset - status: Active - isBankAccount: true - modifiedDate: '2023-03-15T20:35:08Z' - sourceModifiedDate: '2023-02-17T11:10:49' - validDatatypeLinks: - - property: Id - links: - - Payment.AccountRef.Id - - BillPayment.AccountRef.Id - - DirectIncome.LineItems.AccountRef.Id - - DirectCost.LineItems.AccountRef.Id - Zoho Books: - value: - id: '104957000000000352' - nominalCode: '' - name: Accounts Receivable - description: The money that customers owe you becomes the accounts receivable. A good example of this is a payment expected from an invoice sent to your customer. - fullyQualifiedCategory: Asset.accounts_receivable - fullyQualifiedName: Asset.accounts_receivable.Accounts Receivable - currency: GBP - currentBalance: -959.64 - type: Asset - status: Active - isBankAccount: false - modifiedDate: '2022-10-03T08:40:43Z' - sourceModifiedDate: '2020-02-05T14:58:44' - validDatatypeLinks: [] - '401': - $ref: '#/components/responses/Unauthorized' - '402': - $ref: '#/components/responses/Payment-Required' - '403': - $ref: '#/components/responses/Forbidden' - '404': - $ref: '#/components/responses/Not-Found' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - description: | - The *Get account* endpoint returns a single account for a given accountId. - - [Accounts](https://docs.codat.io/lending-api#/schemas/Account) are the categories a business uses to record accounting transactions. - - Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data). - operationId: get-accounting-account - x-speakeasy-group: financial-statements.accounts - '/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 - paidOnDate: '2024-12-12T00:00:00' - totalAmount: 0 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: 850 - modifiedDate: '2023-04-26T09:12:30Z' - sourceModifiedDate: '2023-12-16T05:05:03' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 3 - _links: - current: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/data/billCreditNotes?page=1&pageSize=2 - self: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/data/billCreditNotes - next: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/data/billCreditNotes?page=2&pageSize=2 - QuickBooks Online: - value: - results: - - id: '19' - billCreditNoteNumber: '19' - supplierRef: - id: '4' - supplierName: BILLy elliot - withholdingTax: [] - totalAmount: 5 - totalDiscount: 0 - subTotal: 5 - totalTaxAmount: 0 - discountPercentage: 0 - remainingCredit: 0 - status: Paid - issueDate: '2019-05-13T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: '' - unitAmount: 5 - quantity: 1 - subTotal: 5 - taxAmount: 0 - totalAmount: 5 - accountRef: - id: '16' - name: Advertising - taxRateRef: - id: NON - name: NON - effectiveTaxRate: 0 - trackingCategoryRefs: [] - tracking: - categoryRefs: [] - isBilledTo: Unknown - isRebilledTo: NotApplicable - paymentAllocations: - - payment: - id: '20' - currency: GBP - currencyRate: 1 - paidOnDate: '2019-05-13T00:00:00' - totalAmount: 0 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: 5 - modifiedDate: '2023-01-18T11:02:37Z' - sourceModifiedDate: '2019-05-13T13:14:06Z' - - id: '677' - billCreditNoteNumber: '677' - supplierRef: - id: '4' - supplierName: BILLy elliot - withholdingTax: [] - totalAmount: 5 - totalDiscount: 0 - subTotal: 5 - totalTaxAmount: 0 - discountPercentage: 0 - remainingCredit: 0 - status: Paid - issueDate: '2020-03-20T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: '' - unitAmount: 5 - quantity: 1 - subTotal: 5 - taxAmount: 0 - totalAmount: 5 - accountRef: - id: '16' - name: Advertising - taxRateRef: - id: NON - name: NON - effectiveTaxRate: 0 - trackingCategoryRefs: [] - tracking: - categoryRefs: [] - isBilledTo: Unknown - isRebilledTo: NotApplicable - paymentAllocations: - - payment: - id: '678' - note: payment note test - currency: GBP - currencyRate: 1 - paidOnDate: '2020-03-23T00:00:00' - totalAmount: 0 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: 5 - modifiedDate: '2023-01-18T11:02:37Z' - sourceModifiedDate: '2020-03-23T10:44:06Z' - note: Codat Note field - pageNumber: 1 - pageSize: 2 - totalResults: 11 - _links: - current: - href: /companies/10818b5e-6e6a-4ed4-a1c5-3e3efe626e87/data/billCreditNotes?page=1&pageSize=2 - self: - href: /companies/10818b5e-6e6a-4ed4-a1c5-3e3efe626e87/data/billCreditNotes - next: - href: /companies/10818b5e-6e6a-4ed4-a1c5-3e3efe626e87/data/billCreditNotes?page=2&pageSize=2 - QuickBooks Online Sandbox: - value: - results: - - id: '424' - billCreditNoteNumber: '424' - supplierRef: - id: '24' - supplierName: Brijesh Jain - withholdingTax: [] - totalAmount: 69 - totalDiscount: 0 - subTotal: 69 - totalTaxAmount: 0 - discountPercentage: 0 - remainingCredit: 69 - status: Submitted - issueDate: '2019-06-20T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Refund of iZettle Fees - unitAmount: 69 - quantity: 1 - subTotal: 69 - taxAmount: 0 - totalAmount: 69 - accountRef: - id: '30' - name: Janitorial Expense - taxRateRef: - id: 20_Bills - name: 5.0% RC CIS Bills - effectiveTaxRate: 0 - trackingCategoryRefs: [] - tracking: - categoryRefs: [] - isBilledTo: Unknown - isRebilledTo: NotApplicable - paymentAllocations: [] - modifiedDate: '2023-04-26T09:35:58Z' - sourceModifiedDate: '2019-06-20T15:48:50Z' - metadata: - isDeleted: false - - id: '455' - billCreditNoteNumber: '455' - supplierRef: - id: '53' - supplierName: Bank of AnyCity - withholdingTax: [] - totalAmount: 10 - totalDiscount: 0 - subTotal: 10 - totalTaxAmount: 0 - discountPercentage: 0 - remainingCredit: 0 - status: Paid - issueDate: '2019-06-26T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: a - unitAmount: 10 - quantity: 1 - subTotal: 10 - taxAmount: 0 - totalAmount: 10 - accountRef: - id: '11' - name: Ask My Accountant - taxRateRef: - id: 20_Bills - name: 5.0% RC CIS Bills - effectiveTaxRate: 0 - trackingCategoryRefs: [] - tracking: - categoryRefs: [] - isBilledTo: Unknown - isRebilledTo: NotApplicable - paymentAllocations: - - payment: - id: '530' - reference: '4' - accountRef: - id: '100' - name: Savings2 - currency: GBP - currencyRate: 1 - paidOnDate: '2019-07-16T00:00:00' - totalAmount: 170 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: 10 - modifiedDate: '2023-04-26T09:35:58Z' - sourceModifiedDate: '2019-07-16T09:49:14Z' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 26 - _links: - current: - href: /companies/5a7f3597-36e1-4216-86fe-289ad36088a6/data/billCreditNotes?page=1&pageSize=2 - self: - href: /companies/5a7f3597-36e1-4216-86fe-289ad36088a6/data/billCreditNotes - next: - href: /companies/5a7f3597-36e1-4216-86fe-289ad36088a6/data/billCreditNotes?page=2&pageSize=2 - Sage 200cloud: - value: - results: - - id: '45391' - billCreditNoteNumber: Return 1 - supplierRef: - id: CON001 - supplierName: Concept Stationery Supplies - withholdingTax: [] - totalAmount: 120 - totalDiscount: 2.5 - subTotal: 100 - totalTaxAmount: 20 - discountPercentage: 2.5 - remainingCredit: 109.5 - status: Submitted - issueDate: '2020-07-22T00:00:00Z' - allocatedOnDate: '2020-01-20T00:00:00Z' - currency: GBP - currencyRate: 1 - lineItems: - - description: Tax Summary - Tax Rate 1 - unitAmount: 0 - quantity: 0 - discountAmount: 0.5 - subTotal: 0 - taxAmount: 20 - totalAmount: 20 - taxRateRef: - id: '1729' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: [] - - description: Goods Summary - unitAmount: 0 - quantity: 0 - discountAmount: 2.5 - subTotal: 100 - taxAmount: 0 - totalAmount: 100 - trackingCategoryRefs: [] - paymentAllocations: - - payment: - id: '45391' - note: ret1 - reference: Return 1 - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-20T00:00:00' - totalAmount: 0 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -10.5 - modifiedDate: '2022-10-14T09:35:52Z' - sourceModifiedDate: '2020-02-28T14:23:46Z' - note: ret1 - - id: '45421' - billCreditNoteNumber: Return 2 - supplierRef: - id: QUA001 - supplierName: Quality Motors - withholdingTax: [] - totalAmount: 60 - totalDiscount: 1.25 - subTotal: 50 - totalTaxAmount: 10 - discountPercentage: 2.5 - remainingCredit: 60 - status: Submitted - issueDate: '2020-07-22T00:00:00Z' - allocatedOnDate: '2020-02-03T00:00:00Z' - currency: GBP - currencyRate: 1 - lineItems: - - description: Tax Summary - Tax Rate 1 - unitAmount: 0 - quantity: 0 - discountAmount: 0.25 - subTotal: 0 - taxAmount: 10 - totalAmount: 10 - taxRateRef: - id: '1729' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: [] - - description: Goods Summary - unitAmount: 0 - quantity: 0 - discountAmount: 1.25 - subTotal: 50 - taxAmount: 0 - totalAmount: 50 - trackingCategoryRefs: [] - paymentAllocations: [] - modifiedDate: '2022-10-14T09:35:52Z' - sourceModifiedDate: '2020-02-28T14:23:46Z' - note: ret2 - pageNumber: 1 - pageSize: 2 - totalResults: 21 - _links: - current: - href: /companies/93c21e2d-049c-4d24-b41b-57e61c30b69e/data/billCreditNotes?page=1&pageSize=2 - self: - href: /companies/93c21e2d-049c-4d24-b41b-57e61c30b69e/data/billCreditNotes - next: - href: /companies/93c21e2d-049c-4d24-b41b-57e61c30b69e/data/billCreditNotes?page=2&pageSize=2 - Sage 50 (UK): - value: - results: - - id: '20' - billCreditNoteNumber: O/BAL - supplierRef: - id: NEW001 - supplierName: Newtown Builders Ltd - withholdingTax: [] - totalAmount: 0.01 - totalDiscount: 0 - subTotal: 0.01 - totalTaxAmount: 0 - discountPercentage: 0 - remainingCredit: 0.01 - status: Submitted - issueDate: '2021-12-31T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Opening Balance - unitAmount: 0.01 - quantity: 1 - subTotal: 0.01 - taxAmount: 0 - totalAmount: 0.01 - accountRef: - id: '9998' - name: Suspense Account - taxRateRef: - id: '9' - name: Non-Vatable Tax Code - effectiveTaxRate: 0 - trackingCategoryRefs: - - id: department_0 - name: Default - tracking: - categoryRefs: - - id: department_0 - name: Default - isBilledTo: Unknown - isRebilledTo: Unknown - paymentAllocations: [] - modifiedDate: '2023-03-30T14:42:37Z' - sourceModifiedDate: '2022-11-25T09:43:54' - metadata: - isDeleted: false - note: Opening Balance - - id: '323' - billCreditNoteNumber: Return - supplierRef: - id: UNI001 - supplierName: Unique Systems - withholdingTax: [] - totalAmount: 103.4 - totalDiscount: 0 - subTotal: 88 - totalTaxAmount: 15.4 - discountPercentage: 0 - remainingCredit: 103.4 - status: Submitted - issueDate: '2022-02-28T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: 'Returned Goods, damaged' - unitAmount: 103.4 - quantity: 1 - subTotal: 88 - taxAmount: 15.4 - totalAmount: 103.4 - accountRef: - id: '5000' - name: Materials Purchased - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_0 - name: Default - tracking: - categoryRefs: - - id: department_0 - name: Default - isBilledTo: Unknown - isRebilledTo: Unknown - paymentAllocations: [] - modifiedDate: '2023-03-30T14:42:37Z' - sourceModifiedDate: '2022-11-25T09:43:54' - metadata: - isDeleted: false - note: 'Returned Goods, damaged' - pageNumber: 1 - pageSize: 2 - totalResults: 12 - _links: - current: - href: /companies/cf5f2a47-2990-4221-bae6-0c19c86ac304/data/billCreditNotes?page=1&pageSize=2 - self: - href: /companies/cf5f2a47-2990-4221-bae6-0c19c86ac304/data/billCreditNotes - next: - href: /companies/cf5f2a47-2990-4221-bae6-0c19c86ac304/data/billCreditNotes?page=2&pageSize=2 - Sage Business Cloud Accounting: - value: - results: - - id: b6c6fce9866849b0b44cac99ab7dc579 - billCreditNoteNumber: Supplier credit note - supplierRef: - id: ec716559789111e8aaa5027d54329956 - supplierName: Bagels Limited - withholdingTax: [] - totalAmount: 10 - totalDiscount: 0 - subTotal: 10 - totalTaxAmount: 0 - discountPercentage: 0 - remainingCredit: 0 - status: Paid - issueDate: '2018-11-23T00:00:00' - currency: USD - currencyRate: 0.776970973 - lineItems: - - description: Consulting services - unitAmount: 10 - quantity: 1 - discountAmount: 0 - subTotal: 10 - taxAmount: 0 - totalAmount: 10 - accountRef: - id: 9a995955267a11e797950a57719b2edb - name: Cost of sales - goods - discountPercentage: 0 - taxRateRef: - id: GB_ZERO - name: Zero Rated 0.00% - effectiveTaxRate: 0 - itemRef: - id: a87b922b33de11e797950a57719b2edb - name: Consulting services - trackingCategoryRefs: [] - paymentAllocations: - - payment: - id: bf6496aaf0294883b27c423ce8266113 - note: Supplier refund using credit/debit card - accountRef: - id: 9a25937b267a11e797950a57719b2edb - name: Current - currency: USD - currencyRate: 0.771449236 - paidOnDate: '2019-11-19T00:00:00' - totalAmount: -10 - allocation: - currency: USD - currencyRate: 1 - totalAmount: 10 - modifiedDate: '2022-10-24T14:53:32Z' - sourceModifiedDate: '2019-11-19T14:17:32Z' - - id: 23d866f6367d4f11956a36a71e47bc37 - supplierRef: - id: ca430e0d156011e8b45c025132dab352 - supplierName: Test Supplier - withholdingTax: [] - totalAmount: 60 - totalDiscount: 0 - subTotal: 50 - totalTaxAmount: 10 - discountPercentage: 0 - remainingCredit: 60 - status: Submitted - issueDate: '2019-01-29T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Consulting services - unitAmount: 10 - quantity: 5 - discountAmount: 0 - subTotal: 50 - taxAmount: 10 - totalAmount: 60 - accountRef: - id: 9a995955267a11e797950a57719b2edb - name: Cost of sales - goods - discountPercentage: 0 - taxRateRef: - id: GB_STANDARD - name: Standard 20.00% - effectiveTaxRate: 20 - itemRef: - id: a87b922b33de11e797950a57719b2edb - name: Consulting services - trackingCategoryRefs: [] - paymentAllocations: [] - modifiedDate: '2022-10-24T14:53:32Z' - sourceModifiedDate: '2020-07-16T15:00:36Z' - pageNumber: 1 - pageSize: 2 - totalResults: 747 - _links: - current: - href: /companies/390083e2-351b-407c-a3be-55081c36c182/data/billCreditNotes?page=1&pageSize=2 - self: - href: /companies/390083e2-351b-407c-a3be-55081c36c182/data/billCreditNotes - next: - href: /companies/390083e2-351b-407c-a3be-55081c36c182/data/billCreditNotes?page=2&pageSize=2 - Sage Intacct: - value: - results: - - id: '3359' - billCreditNoteNumber: APADJ0001 - supplierRef: - id: '3' - supplierName: ADP - withholdingTax: [] - totalAmount: 12 - totalDiscount: 0 - subTotal: 10 - totalTaxAmount: 2 - discountPercentage: 0 - remainingCredit: 12 - status: Submitted - issueDate: '2021-09-20T00:00:00' - currency: USD - currencyRate: 0.7283 - lineItems: - - description: No Description Provided - unitAmount: 5 - quantity: 1 - subTotal: 5 - taxAmount: 1 - totalAmount: 6 - accountRef: - id: '197' - name: Software and Licenses - taxRateRef: - id: '47' - name: EC Purchase Goods Standard Rate Input - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: LOCATION-8 - name: United Kingdom - - id: SUPPLIER-3 - name: ADP - tracking: - categoryRefs: - - id: LOCATION-8 - name: United Kingdom - - id: SUPPLIER-3 - name: ADP - isBilledTo: Unknown - isRebilledTo: Unknown - - description: No Description Provided - unitAmount: 5 - quantity: 1 - subTotal: 5 - taxAmount: 1 - totalAmount: 6 - accountRef: - id: '197' - name: Software and Licenses - taxRateRef: - id: '47' - name: EC Purchase Goods Standard Rate Input - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: LOCATION-8 - name: United Kingdom - - id: SUPPLIER-3 - name: ADP - tracking: - categoryRefs: - - id: LOCATION-8 - name: United Kingdom - - id: SUPPLIER-3 - name: ADP - isBilledTo: Unknown - isRebilledTo: Unknown - paymentAllocations: [] - modifiedDate: '2022-10-28T11:10:22Z' - sourceModifiedDate: '2021-09-20T13:50:16' - note: '' - - id: '3399' - billCreditNoteNumber: APADJ0002 - supplierRef: - id: '3' - supplierName: ADP - withholdingTax: [] - totalAmount: 360 - totalDiscount: 0 - subTotal: 300 - totalTaxAmount: 60 - discountPercentage: 0 - remainingCredit: 0 - status: Paid - issueDate: '2021-09-24T00:00:00' - allocatedOnDate: '2021-09-29T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: No Description Provided - unitAmount: 300 - quantity: 1 - subTotal: 300 - taxAmount: 60 - totalAmount: 360 - accountRef: - id: '197' - name: Software and Licenses - taxRateRef: - id: '81' - name: UK Purchase Goods Standard Rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: LOCATION-8 - name: United Kingdom - - id: SUPPLIER-3 - name: ADP - tracking: - categoryRefs: - - id: LOCATION-8 - name: United Kingdom - - id: SUPPLIER-3 - name: ADP - isBilledTo: Unknown - isRebilledTo: Unknown - paymentAllocations: [] - modifiedDate: '2022-10-28T11:10:22Z' - sourceModifiedDate: '2021-09-29T13:34:47' - note: '' - pageNumber: 1 - pageSize: 2 - totalResults: 82 - _links: - current: - href: /companies/71ca2b28-8e86-41e7-8c55-f681042b11a0/data/billCreditNotes?page=1&pageSize=2 - self: - href: /companies/71ca2b28-8e86-41e7-8c55-f681042b11a0/data/billCreditNotes - next: - href: /companies/71ca2b28-8e86-41e7-8c55-f681042b11a0/data/billCreditNotes?page=2&pageSize=2 - Xero: - value: - results: - - id: ee8bec08-2be8-40ba-acd0-d53d5df11235 - billCreditNoteNumber: RPT429-1 - supplierRef: - id: 3a0d40a2-2698-4cf5-b7b2-30133c632ab6 - supplierName: Swanston Security - withholdingTax: [] - totalAmount: 25.44 - totalDiscount: 0 - subTotal: 25.44 - totalTaxAmount: 4.24 - discountPercentage: 0 - remainingCredit: 0 - status: Paid - issueDate: '2022-12-12T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Refund as agreed due to window break when guard absent - unitAmount: 21.2 - quantity: 1 - discountAmount: 0 - subTotal: 21.2 - taxAmount: 4.24 - totalAmount: 25.44 - accountRef: - id: f96c9458-d724-47bf-8f74-a9d5726465ce - name: General Expenses - discountPercentage: 0 - taxRateRef: - id: INPUT2 - name: 20% (VAT on Expenses) - effectiveTaxRate: 20 - trackingCategoryRefs: [] - paymentAllocations: - - payment: - id: ee8bec08-2be8-40ba-acd0-d53d5df11235 - reference: '' - currency: GBP - currencyRate: 1 - paidOnDate: '2022-12-12T00:00:00' - totalAmount: 0 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2022-12-12T00:00:00' - totalAmount: 25.44 - modifiedDate: '2023-03-15T20:36:09Z' - sourceModifiedDate: '2011-04-07T07:26:30' - metadata: - isDeleted: false - - id: 7d1f4e11-e909-43b0-901c-2c824dff1e82 - billCreditNoteNumber: 720-2 - supplierRef: - id: cf8fa320-a527-496c-823e-22dd069d29e6 - supplierName: PC Complete - withholdingTax: [] - totalAmount: 270.36 - totalDiscount: 0 - subTotal: 270.36 - totalTaxAmount: 45.06 - discountPercentage: 0 - remainingCredit: 0 - status: Paid - issueDate: '2022-12-16T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Unable to supply DVD writer for laptop - unitAmount: 225.3 - quantity: 1 - discountAmount: 0 - subTotal: 225.3 - taxAmount: 45.06 - totalAmount: 270.36 - accountRef: - id: f96c9458-d724-47bf-8f74-a9d5726465ce - name: General Expenses - discountPercentage: 0 - taxRateRef: - id: INPUT2 - name: 20% (VAT on Expenses) - effectiveTaxRate: 20 - trackingCategoryRefs: [] - paymentAllocations: - - payment: - id: 7d1f4e11-e909-43b0-901c-2c824dff1e82 - reference: '' - currency: GBP - currencyRate: 1 - paidOnDate: '2022-12-16T00:00:00' - totalAmount: 0 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2022-12-16T00:00:00' - totalAmount: 270.36 - modifiedDate: '2023-03-15T20:36:09Z' - sourceModifiedDate: '2011-04-06T21:00:33' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 2 - _links: - current: - href: /companies/5ced9667-a310-443a-a711-958d36377141/data/billCreditNotes?page=1&pageSize=2 - self: - href: /companies/5ced9667-a310-443a-a711-958d36377141/data/billCreditNotes - '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' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - description: "The *List bill credit notes* endpoint returns a list of [bill credit notes](https://docs.codat.io/lending-api#/schemas/BillCreditNote) for a given company's connection.\n\n[Bill credit notes](https://docs.codat.io/lending-api#/schemas/BillCreditNote) are issued by a supplier for the purpose of recording credit.\n\nBefore using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data).\n " - operationId: list-accounting-bill-credit-notes - x-speakeasy-group: accounts-payable.bill-credit-notes - '/companies/{companyId}/data/billCreditNotes/{billCreditNoteId}': - parameters: - - $ref: '#/components/parameters/companyId' - - name: billCreditNoteId - in: path - required: true - schema: - type: string - examples: - - 13d946f0-c5d5-42bc-b092-97ece17923ab - - 9wg4lep4ush5cxs79pl8sozmsndbaukll3ind4g7buqbm1h2 - - 7110701885 - - EILBDVJVNUAGVKRQ - description: Unique identifier for a bill credit note. - get: - tags: - - Accounts payable - summary: Get bill credit note - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/AccountingBillCreditNote' - examples: - Dynamics 365 Business Central: - value: - 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 - Exact (Netherlands): - value: - 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' - Exact (UK): - value: - 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' - FreeAgent: - value: - 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 - KashFlow: - value: - 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' - Oracle NetSuite: - value: - 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 - createdFromLineRef: - id: '1432' - dataType: bills - lineNumber: '1' - trackingCategoryRefs: - - id: department-1 - - id: location-1 - tracking: - categoryRefs: - - id: department-1 - - id: location-1 - isBilledTo: Unknown - isRebilledTo: Unknown - paymentAllocations: [] - createdFromRefs: - - id: '1432' - dataType: bills - modifiedDate: '2022-09-20T08:16:22Z' - sourceModifiedDate: '2021-11-02T19:58:58' - note: Codat1 - QuickBooks Desktop: - value: - 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 - QuickBooks Online: - value: - id: '19' - billCreditNoteNumber: '19' - supplierRef: - id: '4' - supplierName: BILLy elliot - withholdingTax: [] - totalAmount: 5 - totalDiscount: 0 - subTotal: 5 - totalTaxAmount: 0 - discountPercentage: 0 - remainingCredit: 0 - status: Paid - issueDate: '2019-05-13T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: '' - unitAmount: 5 - quantity: 1 - subTotal: 5 - taxAmount: 0 - totalAmount: 5 - accountRef: - id: '16' - name: Advertising - taxRateRef: - id: NON - name: NON - effectiveTaxRate: 0 - trackingCategoryRefs: [] - tracking: - categoryRefs: [] - isBilledTo: Unknown - isRebilledTo: NotApplicable - paymentAllocations: - - payment: - id: '20' - currency: GBP - currencyRate: 1 - paidOnDate: '2019-05-13T00:00:00' - totalAmount: 0 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: 5 - modifiedDate: '2023-01-18T11:02:37Z' - sourceModifiedDate: '2019-05-13T13:14:06Z' - QuickBooks Online Sandbox: - value: - id: '424' - billCreditNoteNumber: '424' - supplierRef: - id: '24' - supplierName: Brijesh Jain - withholdingTax: [] - totalAmount: 69 - totalDiscount: 0 - subTotal: 69 - totalTaxAmount: 0 - discountPercentage: 0 - remainingCredit: 69 - status: Submitted - issueDate: '2019-06-20T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Refund of iZettle Fees - unitAmount: 69 - quantity: 1 - subTotal: 69 - taxAmount: 0 - totalAmount: 69 - accountRef: - id: '30' - name: Janitorial Expense - taxRateRef: - id: 20_Bills - name: 5.0% RC CIS Bills - effectiveTaxRate: 0 - trackingCategoryRefs: [] - tracking: - categoryRefs: [] - isBilledTo: Unknown - isRebilledTo: NotApplicable - paymentAllocations: [] - modifiedDate: '2023-04-26T09:35:58Z' - sourceModifiedDate: '2019-06-20T15:48:50Z' - metadata: - isDeleted: false - Sage 200cloud: - value: - id: '45391' - billCreditNoteNumber: Return 1 - supplierRef: - id: CON001 - supplierName: Concept Stationery Supplies - withholdingTax: [] - totalAmount: 120 - totalDiscount: 2.5 - subTotal: 100 - totalTaxAmount: 20 - discountPercentage: 2.5 - remainingCredit: 109.5 - status: Submitted - issueDate: '2020-07-22T00:00:00Z' - allocatedOnDate: '2020-01-20T00:00:00Z' - currency: GBP - currencyRate: 1 - lineItems: - - description: Tax Summary - Tax Rate 1 - unitAmount: 0 - quantity: 0 - discountAmount: 0.5 - subTotal: 0 - taxAmount: 20 - totalAmount: 20 - taxRateRef: - id: '1729' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: [] - - description: Goods Summary - unitAmount: 0 - quantity: 0 - discountAmount: 2.5 - subTotal: 100 - taxAmount: 0 - totalAmount: 100 - trackingCategoryRefs: [] - paymentAllocations: - - payment: - id: '45391' - note: ret1 - reference: Return 1 - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-20T00:00:00' - totalAmount: 0 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -10.5 - modifiedDate: '2022-10-14T09:35:52Z' - sourceModifiedDate: '2020-02-28T14:23:46Z' - note: ret1 - Sage 50 (UK): - value: - id: '20' - billCreditNoteNumber: O/BAL - supplierRef: - id: NEW001 - supplierName: Newtown Builders Ltd - withholdingTax: [] - totalAmount: 0.01 - totalDiscount: 0 - subTotal: 0.01 - totalTaxAmount: 0 - discountPercentage: 0 - remainingCredit: 0.01 - status: Submitted - issueDate: '2021-12-31T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Opening Balance - unitAmount: 0.01 - quantity: 1 - subTotal: 0.01 - taxAmount: 0 - totalAmount: 0.01 - accountRef: - id: '9998' - name: Suspense Account - taxRateRef: - id: '9' - name: Non-Vatable Tax Code - effectiveTaxRate: 0 - trackingCategoryRefs: - - id: department_0 - name: Default - tracking: - categoryRefs: - - id: department_0 - name: Default - isBilledTo: Unknown - isRebilledTo: Unknown - paymentAllocations: [] - modifiedDate: '2023-03-30T14:42:37Z' - sourceModifiedDate: '2022-11-25T09:43:54' - metadata: - isDeleted: false - note: Opening Balance - Sage Business Cloud Accounting: - value: - id: b6c6fce9866849b0b44cac99ab7dc579 - billCreditNoteNumber: Supplier credit note - supplierRef: - id: ec716559789111e8aaa5027d54329956 - supplierName: Bagels Limited - withholdingTax: [] - totalAmount: 10 - totalDiscount: 0 - subTotal: 10 - totalTaxAmount: 0 - discountPercentage: 0 - remainingCredit: 0 - status: Paid - issueDate: '2018-11-23T00:00:00' - currency: USD - currencyRate: 0.776970973 - lineItems: - - description: Consulting services - unitAmount: 10 - quantity: 1 - discountAmount: 0 - subTotal: 10 - taxAmount: 0 - totalAmount: 10 - accountRef: - id: 9a995955267a11e797950a57719b2edb - name: Cost of sales - goods - discountPercentage: 0 - taxRateRef: - id: GB_ZERO - name: Zero Rated 0.00% - effectiveTaxRate: 0 - itemRef: - id: a87b922b33de11e797950a57719b2edb - name: Consulting services - trackingCategoryRefs: [] - paymentAllocations: - - payment: - id: bf6496aaf0294883b27c423ce8266113 - note: Supplier refund using credit/debit card - accountRef: - id: 9a25937b267a11e797950a57719b2edb - name: Current - currency: USD - currencyRate: 0.771449236 - paidOnDate: '2019-11-19T00:00:00' - totalAmount: -10 - allocation: - currency: USD - currencyRate: 1 - totalAmount: 10 - modifiedDate: '2022-10-24T14:53:32Z' - sourceModifiedDate: '2019-11-19T14:17:32Z' - Sage Intacct: - value: - id: '3359' - billCreditNoteNumber: APADJ0001 - supplierRef: - id: '3' - supplierName: ADP - withholdingTax: [] - totalAmount: 12 - totalDiscount: 0 - subTotal: 10 - totalTaxAmount: 2 - discountPercentage: 0 - remainingCredit: 12 - status: Submitted - issueDate: '2021-09-20T00:00:00' - currency: USD - currencyRate: 0.7283 - lineItems: - - description: No Description Provided - unitAmount: 5 - quantity: 1 - subTotal: 5 - taxAmount: 1 - totalAmount: 6 - accountRef: - id: '197' - name: Software and Licenses - taxRateRef: - id: '47' - name: EC Purchase Goods Standard Rate Input - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: LOCATION-8 - name: United Kingdom - - id: SUPPLIER-3 - name: ADP - tracking: - categoryRefs: - - id: LOCATION-8 - name: United Kingdom - - id: SUPPLIER-3 - name: ADP - isBilledTo: Unknown - isRebilledTo: Unknown - - description: No Description Provided - unitAmount: 5 - quantity: 1 - subTotal: 5 - taxAmount: 1 - totalAmount: 6 - accountRef: - id: '197' - name: Software and Licenses - taxRateRef: - id: '47' - name: EC Purchase Goods Standard Rate Input - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: LOCATION-8 - name: United Kingdom - - id: SUPPLIER-3 - name: ADP - tracking: - categoryRefs: - - id: LOCATION-8 - name: United Kingdom - - id: SUPPLIER-3 - name: ADP - isBilledTo: Unknown - isRebilledTo: Unknown - paymentAllocations: [] - modifiedDate: '2022-10-28T11:10:22Z' - sourceModifiedDate: '2021-09-20T13:50:16' - note: '' - Xero: - value: - id: ee8bec08-2be8-40ba-acd0-d53d5df11235 - billCreditNoteNumber: RPT429-1 - supplierRef: - id: 3a0d40a2-2698-4cf5-b7b2-30133c632ab6 - supplierName: Swanston Security - withholdingTax: [] - totalAmount: 25.44 - totalDiscount: 0 - subTotal: 25.44 - totalTaxAmount: 4.24 - discountPercentage: 0 - remainingCredit: 0 - status: Paid - issueDate: '2022-12-12T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Refund as agreed due to window break when guard absent - unitAmount: 21.2 - quantity: 1 - discountAmount: 0 - subTotal: 21.2 - taxAmount: 4.24 - totalAmount: 25.44 - accountRef: - id: f96c9458-d724-47bf-8f74-a9d5726465ce - name: General Expenses - discountPercentage: 0 - taxRateRef: - id: INPUT2 - name: 20% (VAT on Expenses) - effectiveTaxRate: 20 - trackingCategoryRefs: [] - paymentAllocations: - - payment: - id: ee8bec08-2be8-40ba-acd0-d53d5df11235 - reference: '' - currency: GBP - currencyRate: 1 - paidOnDate: '2022-12-12T00:00:00' - totalAmount: 0 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2022-12-12T00:00:00' - totalAmount: 25.44 - modifiedDate: '2023-03-15T20:36:09Z' - sourceModifiedDate: '2011-04-07T07:26:30' - metadata: - isDeleted: false - '401': - $ref: '#/components/responses/Unauthorized' - '402': - $ref: '#/components/responses/Payment-Required' - '403': - $ref: '#/components/responses/Forbidden' - '404': - $ref: '#/components/responses/Not-Found' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - description: | - The *Get bill credit note* endpoint returns a single bill credit note for a given billCreditNoteId. - - [Bill credit notes](https://docs.codat.io/lending-api#/schemas/BillCreditNote) are issued by a supplier for the purpose of recording credit. - - Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data). - operationId: get-accounting-bill-credit-note - x-speakeasy-group: accounts-payable.bill-credit-notes - '/companies/{companyId}/data/billPayments': - parameters: - - $ref: '#/components/parameters/companyId' - get: - tags: - - Accounts payable - summary: List bill payments - 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/AccountingBillPayments' - examples: - Clear Books: - value: - results: - - id: dcb18480-8b69-44d8-aa26-268b6a80d170 - supplierRef: - id: 8GeHBdBZiZ - supplierName: 'DuBuque, Goyette and Franecki' - accountRef: - id: dbcaf288-2b39-4b95-8ab3-42202ab15918 - name: Business Current Account - totalAmount: 71351.42 - currency: GBP - currencyRate: 1 - date: '2022-05-06T00:00:00' - note: Bill Payment against bill 81539597-e681-40c9-a4dd-ec2fffcde572 - paymentMethodRef: - id: cb4a5647-aa86-40ab-bb4f-158acaa99c12 - name: Check payments-u4p - lines: - - amount: 71351.42 - links: - - type: Bill - id: 81539597-e681-40c9-a4dd-ec2fffcde572 - amount: -71351.42 - currencyRate: 1 - allocatedOnDate: '2022-05-06T00:00:00' - modifiedDate: '2023-04-26T12:38:17Z' - sourceModifiedDate: '2022-05-06T00:00:00' - metadata: - isDeleted: false - - id: ca0976d0-036d-4187-ab66-7169286b007d - supplierRef: - id: 9efd64dc-4b31-425d-9eb2-7c7773593713 - supplierName: 'Jacobson, Konopelski and Heidenreich' - accountRef: - id: dbcaf288-2b39-4b95-8ab3-42202ab15918 - name: Business Current Account - totalAmount: 16221.64 - currency: GBP - currencyRate: 1 - date: '2022-05-14T13:12:00' - note: Bill Payment against bill 3f44d2be-d4c2-4cc3-8216-8add5265eb13 - paymentMethodRef: - id: fc87fba8-812e-4a54-b633-29ef2abf4c12 - name: CreditCard payments-u4p - lines: - - amount: 16221.64 - links: - - type: Bill - id: 3f44d2be-d4c2-4cc3-8216-8add5265eb13 - amount: -16221.64 - currencyRate: 1 - allocatedOnDate: '2022-05-14T13:12:00' - modifiedDate: '2023-04-26T12:38:17Z' - sourceModifiedDate: '2022-05-14T13:12:00' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 232 - _links: - current: - href: /companies/354a121b-855f-4d25-90ad-0905b498c1c0/data/billPayments?page=1&pageSize=2 - self: - href: /companies/354a121b-855f-4d25-90ad-0905b498c1c0/data/billPayments - next: - href: /companies/354a121b-855f-4d25-90ad-0905b498c1c0/data/billPayments?page=2&pageSize=2 - Dynamics 365 Business Central: - value: - results: - - id: 19387f05-8ad1-ea11-bbaa-000d3a2b9185 - supplierRef: - id: c41217b3-89d1-ea11-bbaa-000d3a2b9185 - supplierName: Wide World Importers - accountRef: - id: 621217b3-89d1-ea11-bbaa-000d3a2b9185 - name: Petty Cash - totalAmount: 234 - currency: GBP - currencyRate: 1 - date: '2019-01-01T00:00:00' - note: Invoice 107006 - lines: - - amount: 234 - links: - - type: Bill - id: c8cb06bf-89d1-ea11-bbaa-000d3a2b9185-108006 - amount: -234 - currencyRate: 1 - allocatedOnDate: '2019-01-01T00:00:00' - modifiedDate: '2023-03-27T14:21:25Z' - reference: '108006' - metadata: - isDeleted: false - - id: 3d387f05-8ad1-ea11-bbaa-000d3a2b9185 - supplierRef: - id: be1217b3-89d1-ea11-bbaa-000d3a2b9185 - supplierName: 'Fabrikam, Inc.' - accountRef: - id: 621217b3-89d1-ea11-bbaa-000d3a2b9185 - name: Petty Cash - totalAmount: 390 - currency: GBP - currencyRate: 1 - date: '2019-01-01T00:00:00' - note: Invoice 107007 - lines: - - amount: 390 - links: - - type: Bill - id: cbcb06bf-89d1-ea11-bbaa-000d3a2b9185-108007 - amount: -390 - currencyRate: 1 - allocatedOnDate: '2019-01-01T00:00:00' - modifiedDate: '2023-03-27T14:21:25Z' - reference: '108007' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 236 - _links: - current: - href: /companies/d6849caf-c146-41be-8335-b73346e3bd84/data/billPayments?page=1&pageSize=2 - self: - href: /companies/d6849caf-c146-41be-8335-b73346e3bd84/data/billPayments - next: - href: /companies/d6849caf-c146-41be-8335-b73346e3bd84/data/billPayments?page=2&pageSize=2 - Exact (Netherlands): - value: - results: - - id: da7e456f-76f7-42ac-8dad-d90a040f3afb - supplierRef: - id: 63fadca8-4905-475a-b32a-b4341293bcf4 - supplierName: Kelly's Industrial Supplies - accountRef: - id: d79d65bd-1d7d-4f55-95d3-76b3a7b7b823 - name: Bank 1 - totalAmount: -5 - currency: EUR - currencyRate: 1 - date: '2019-11-05T00:00:00Z' - lines: - - amount: -5 - links: - - type: PaymentOnAccount - id: 63fadca8-4905-475a-b32a-b4341293bcf4 - amount: 5 - currencyRate: 1 - modifiedDate: '2022-10-26T13:35:13Z' - sourceModifiedDate: '2019-11-05T14:26:22Z' - reference: '19200008' - - id: 002b8462-f3a3-4019-84fe-6a2af1f30c5a - supplierRef: - id: 5811b467-53eb-4491-8ca1-bc9b7889811b - supplierName: Ann's test supplier 2 - accountRef: - id: 1879b322-7758-4e20-8f3f-701df27f2340 - name: Kas - totalAmount: 0.13 - currency: EUR - currencyRate: 1 - date: '2019-11-07T00:00:00Z' - lines: - - amount: -0.12 - links: - - type: CreditNote - id: 33f3016c-2ecf-4d17-911e-b385537e7341 - amount: 0.12 - currencyRate: 1 - - amount: 0.12 - links: - - type: Bill - id: de6b3634-faf2-4688-b06b-72ed3ca6cf4e - amount: -0.12 - currencyRate: 1 - - amount: 0.13 - links: - - type: Bill - id: de6b3634-faf2-4688-b06b-72ed3ca6cf4e - amount: -0.13 - currencyRate: 1 - modifiedDate: '2022-10-26T13:35:14Z' - sourceModifiedDate: '2021-11-17T12:08:10Z' - reference: '19100002' - pageNumber: 1 - pageSize: 2 - totalResults: 1173 - _links: - current: - href: /companies/b83b1923-4db6-45a8-a779-b4e320c15979/data/billPayments?page=1&pageSize=2 - self: - href: /companies/b83b1923-4db6-45a8-a779-b4e320c15979/data/billPayments - next: - href: /companies/b83b1923-4db6-45a8-a779-b4e320c15979/data/billPayments?page=2&pageSize=2 - Exact (UK): - value: - results: - - id: 7a5f621b-739f-4ed8-b738-2aae3ef886ac - supplierRef: - id: a7cad20d-44db-442b-ac1f-90475802d6fb - supplierName: Pencils Pencils Pencils - accountRef: - id: 4a4e34b5-7f62-4b64-a44a-073398b14b41 - name: Bank - totalAmount: 123 - currency: GBP - currencyRate: 1 - date: '2017-10-11T00:00:00Z' - lines: - - amount: 123 - links: - - type: Bill - id: e7a45898-2db3-424c-acb9-a51647740f26 - amount: -123 - currencyRate: 1 - modifiedDate: '2022-10-26T13:33:17Z' - sourceModifiedDate: '2017-10-11T10:12:29Z' - reference: '17200006' - - id: b358df76-3930-42ad-8f38-78edcc60172d - supplierRef: - id: 41302634-76b5-4442-b800-0bb63780e77c - supplierName: Some Supplier - accountRef: - id: 4a4e34b5-7f62-4b64-a44a-073398b14b41 - name: Bank - totalAmount: 55000 - currency: GBP - currencyRate: 1 - date: '2017-10-31T00:00:00Z' - lines: - - amount: 55000 - links: - - type: PaymentOnAccount - id: 41302634-76b5-4442-b800-0bb63780e77c - amount: -55000 - currencyRate: 1 - modifiedDate: '2022-10-26T13:33:17Z' - sourceModifiedDate: '2019-02-14T17:56:54Z' - reference: '17200001' - pageNumber: 1 - pageSize: 2 - totalResults: 39 - _links: - current: - href: /companies/d95030cd-22b2-482b-9c7b-2980dcc2b1ce/data/billPayments?page=1&pageSize=2 - self: - href: /companies/d95030cd-22b2-482b-9c7b-2980dcc2b1ce/data/billPayments - next: - href: /companies/d95030cd-22b2-482b-9c7b-2980dcc2b1ce/data/billPayments?page=2&pageSize=2 - FreeAgent: - value: - results: - - id: '135234103' - supplierRef: - id: '7169654' - supplierName: The Eagle - totalAmount: 14.3 - currency: GBP - date: '2017-11-23T00:00:00' - note: 'ATOMIC SOFTWARE LIMITE WELLINGTON,NZL OTHER �14.30 - Bill payment against Pints1 (The Eagle)' - lines: - - amount: 14.3 - links: - - type: Bill - id: '10659723' - amount: -14.3 - currencyRate: 1 - modifiedDate: '2023-04-25T14:21:36Z' - metadata: - isDeleted: false - - id: '168350314' - supplierRef: - id: '6161941' - supplierName: A & J Fabtech Ltd - totalAmount: 30 - currency: GBP - date: '2019-01-03T00:00:00' - note: �30.00 - Bill payment against Test123 (A & J Fabtech Ltd) - lines: - - amount: 30 - links: - - type: Bill - id: '11224800' - amount: -30 - currencyRate: 1 - modifiedDate: '2023-04-25T14:21:36Z' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 89 - _links: - current: - href: /companies/071ad738-68f3-4561-afd0-69bab9df0803/data/billPayments?page=1&pageSize=2 - self: - href: /companies/071ad738-68f3-4561-afd0-69bab9df0803/data/billPayments - next: - href: /companies/071ad738-68f3-4561-afd0-69bab9df0803/data/billPayments?page=2&pageSize=2 - FreshBooks: - value: - results: - - id: '16' - supplierRef: - id: '29' - accountRef: - id: '167679' - name: Cash - totalAmount: 10 - currency: GBP - date: '2021-08-18T00:00:00' - note: Bill payment - lines: - - amount: 10 - links: - - type: Bill - id: '16' - amount: -10 - currencyRate: 1 - allocatedOnDate: '2021-08-18T00:00:00' - modifiedDate: '2023-03-24T16:07:23Z' - metadata: - isDeleted: false - - id: '18' - supplierRef: - id: '39' - accountRef: - id: '167679' - name: Cash - totalAmount: 15 - currency: USD - date: '2021-08-18T00:00:00' - note: Bill payment Ikea - lines: - - amount: 15 - links: - - type: Bill - id: '18' - amount: -15 - currencyRate: 1 - allocatedOnDate: '2021-08-18T00:00:00' - modifiedDate: '2023-03-24T16:07:23Z' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 26 - _links: - current: - href: /companies/3691c49e-0db4-4172-b3ab-e4084c365013/data/billPayments?page=1&pageSize=2 - self: - href: /companies/3691c49e-0db4-4172-b3ab-e4084c365013/data/billPayments - next: - href: /companies/3691c49e-0db4-4172-b3ab-e4084c365013/data/billPayments?page=2&pageSize=2 - Oracle NetSuite: - value: - results: - - id: '112' - supplierRef: - id: '724' - supplierName: Vendor A.A.A - accountRef: - id: '825' - name: Codat Europe Bank - totalAmount: 120 - currency: GBP - currencyRate: 1 - date: '2021-03-26T00:00:00' - lines: - - amount: 120 - links: - - type: Bill - id: '7' - amount: -120 - currencyRate: 1 - modifiedDate: '2023-01-30T14:48:40Z' - sourceModifiedDate: '2021-03-26T10:31:06' - reference: 'Bill Payment #1' - - id: 159623-724 - supplierRef: - id: '724' - supplierName: Vendor A.A.A - accountRef: - id: '825' - name: Codat Europe Bank - totalAmount: -555.55 - currency: GBP - currencyRate: 1 - date: '2022-07-11T00:00:00' - lines: - - amount: -555.55 - links: - - type: PaymentOnAccount - id: '724' - amount: 555.55 - currencyRate: 1 - modifiedDate: '2023-01-30T14:48:40Z' - sourceModifiedDate: '2022-07-11T09:41:02' - reference: 'Deposit #DEP25' - pageNumber: 1 - pageSize: 2 - totalResults: 3 - _links: - current: - href: /companies/d5074b08-6a34-4b06-a742-236edf5dc4f1/data/billPayments?page=1&pageSize=2 - self: - href: /companies/d5074b08-6a34-4b06-a742-236edf5dc4f1/data/billPayments - next: - href: /companies/d5074b08-6a34-4b06-a742-236edf5dc4f1/data/billPayments?page=2&pageSize=2 - QuickBooks Desktop: - value: - results: - - id: 3A09-1071529982 - supplierRef: - id: 720000-1071512482 - supplierName: Bayshore Auto Mall - accountRef: - id: 20000-933270541 - name: Checking - totalAmount: 532.97 - currency: GBP - currencyRate: 1 - date: '2023-01-11T00:00:00' - note: Monthly Truck Payment - lines: - - amount: 532.97 - links: - - type: Bill - id: 38AA-1071513625 - amount: -532.97 - currencyRate: 1 - modifiedDate: '2023-04-26T09:09:20Z' - sourceModifiedDate: '2023-12-16T05:04:58' - reference: '101' - metadata: - isDeleted: false - - id: 84C2-1197705262 - supplierRef: - id: B0000-933272656 - supplierName: Patton Hardware Supplies - accountRef: - id: '8000007E-1197732180' - name: CalOil Credit Card - totalAmount: 4050.98 - currency: GBP - currencyRate: 1 - date: '2023-01-15T00:00:00' - lines: - - amount: 4050.98 - links: - - type: Bill - id: 84C2-1197705262 - amount: -4050.98 - currencyRate: 1 - allocatedOnDate: '2023-01-15T00:00:00' - modifiedDate: '2023-04-26T09:09:20Z' - sourceModifiedDate: '2023-12-16T05:06:15' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 214 - _links: - current: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/data/billPayments?page=1&pageSize=2 - self: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/data/billPayments - next: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/data/billPayments?page=2&pageSize=2 - QuickBooks Online: - value: - results: - - id: '20' - supplierRef: - id: '4' - supplierName: BILLy elliot - totalAmount: 0 - currency: GBP - currencyRate: 1 - date: '2019-05-13T00:00:00' - lines: - - amount: 0 - links: - - type: Bill - id: '18' - amount: -5 - currencyRate: 1 - - type: CreditNote - id: '19' - amount: 5 - currencyRate: 1 - modifiedDate: '2023-01-18T11:02:47Z' - sourceModifiedDate: '2019-05-13T13:14:26Z' - - id: '25' - supplierRef: - id: '5' - supplierName: Callum McGinley - accountRef: - id: '63' - name: Business Bank Account - totalAmount: 5999.99 - currency: GBP - currencyRate: 1 - date: '2019-05-31T00:00:00' - lines: - - amount: 5999.99 - links: - - type: Bill - id: '24' - amount: -5999.99 - currencyRate: 1 - modifiedDate: '2023-01-18T11:02:47Z' - sourceModifiedDate: '2019-05-31T12:55:10Z' - pageNumber: 1 - pageSize: 2 - totalResults: 126 - _links: - current: - href: /companies/10818b5e-6e6a-4ed4-a1c5-3e3efe626e87/data/billPayments?page=1&pageSize=2 - self: - href: /companies/10818b5e-6e6a-4ed4-a1c5-3e3efe626e87/data/billPayments - next: - href: /companies/10818b5e-6e6a-4ed4-a1c5-3e3efe626e87/data/billPayments?page=2&pageSize=2 - QuickBooks Online Sandbox: - value: - results: - - id: '158' - supplierRef: - id: '57' - supplierName: Hall's Promo Items - accountRef: - id: '81' - name: Current - totalAmount: 7940.6 - currency: HKD - currencyRate: 0.078807 - date: '2016-01-23T00:00:00' - lines: - - amount: 7940.6 - links: - - type: Bill - id: '157' - amount: -7940.6 - currencyRate: 1 - modifiedDate: '2023-04-26T09:36:42Z' - sourceModifiedDate: '2016-09-13T21:19:36Z' - reference: '1067' - metadata: - isDeleted: false - - id: '159' - supplierRef: - id: '57' - supplierName: Hall's Promo Items - accountRef: - id: '81' - name: Current - totalAmount: 742.5 - currency: HKD - currencyRate: 0.078807 - date: '2016-01-23T00:00:00' - lines: - - amount: 742.5 - links: - - type: Bill - id: '28' - amount: -742.5 - currencyRate: 1 - modifiedDate: '2023-04-26T09:36:42Z' - sourceModifiedDate: '2016-09-13T21:19:49Z' - reference: '1068' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 191 - _links: - current: - href: /companies/5a7f3597-36e1-4216-86fe-289ad36088a6/data/billPayments?page=1&pageSize=2 - self: - href: /companies/5a7f3597-36e1-4216-86fe-289ad36088a6/data/billPayments - next: - href: /companies/5a7f3597-36e1-4216-86fe-289ad36088a6/data/billPayments?page=2&pageSize=2 - Sage 200cloud: - value: - results: - - id: '45462' - supplierRef: - id: CON001 - supplierName: Concept Stationery Supplies - totalAmount: 27 - currency: GBP - currencyRate: 1 - date: '2020-01-05T00:00:00Z' - note: '' - lines: - - amount: 27 - links: - - type: PaymentOnAccount - id: CON001 - amount: -27 - currencyRate: 1 - modifiedDate: '2022-10-14T09:35:54Z' - sourceModifiedDate: '2020-02-28T14:23:46Z' - reference: Payment invoice 1 - - id: '45502' - supplierRef: - id: SDE001 - supplierName: S D Enterprises - totalAmount: 59 - currency: GBP - currencyRate: 1 - date: '2020-01-17T00:00:00Z' - note: pay3 - lines: - - amount: 59 - links: - - type: PaymentOnAccount - id: SDE001 - amount: -59 - currencyRate: 1 - modifiedDate: '2022-10-14T09:35:54Z' - sourceModifiedDate: '2020-02-28T14:23:46Z' - reference: payment inv3 - pageNumber: 1 - pageSize: 2 - totalResults: 64 - _links: - current: - href: /companies/93c21e2d-049c-4d24-b41b-57e61c30b69e/data/billPayments?page=1&pageSize=2 - self: - href: /companies/93c21e2d-049c-4d24-b41b-57e61c30b69e/data/billPayments - next: - href: /companies/93c21e2d-049c-4d24-b41b-57e61c30b69e/data/billPayments?page=2&pageSize=2 - Sage 50 (UK): - value: - results: - - id: '255' - supplierRef: - id: CON001 - supplierName: Concept Stationery Supplies - totalAmount: 370.71 - currency: GBP - currencyRate: 1 - date: '2022-01-29T00:00:00' - note: 'Purchase payment 255 linked to, purchase invoice 86, purchase invoice 87, purchase invoice 250, purchase invoice 251, purchase invoice 252.' - lines: - - amount: 117.5 - links: - - type: Bill - id: '86' - amount: -117.5 - currencyRate: 1 - - amount: 64.63 - links: - - type: Bill - id: '87' - amount: -64.63 - currencyRate: 1 - - amount: 50.57 - links: - - type: Bill - id: '250' - amount: -50.57 - currencyRate: 1 - - amount: 36.87 - links: - - type: Bill - id: '251' - amount: -36.87 - currencyRate: 1 - - amount: 101.14 - links: - - type: Bill - id: '252' - amount: -101.14 - currencyRate: 1 - modifiedDate: '2023-03-30T14:42:37Z' - sourceModifiedDate: '2022-11-25T09:43:54' - metadata: - isDeleted: false - - id: '256' - supplierRef: - id: QUA001 - supplierName: Quality Motors - totalAmount: 256.36 - currency: GBP - currencyRate: 1 - date: '2022-01-29T00:00:00' - note: 'Purchase payment 256 linked to, purchase invoice 17.' - lines: - - amount: 256.36 - links: - - type: Bill - id: '17' - amount: -256.36 - currencyRate: 1 - modifiedDate: '2023-03-30T14:42:37Z' - sourceModifiedDate: '2022-11-25T09:43:54' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 27 - _links: - current: - href: /companies/cf5f2a47-2990-4221-bae6-0c19c86ac304/data/billPayments?page=1&pageSize=2 - self: - href: /companies/cf5f2a47-2990-4221-bae6-0c19c86ac304/data/billPayments - next: - href: /companies/cf5f2a47-2990-4221-bae6-0c19c86ac304/data/billPayments?page=2&pageSize=2 - Sage Business Cloud Accounting: - value: - results: - - id: d953b45e156011e8b45c025132dab352 - supplierRef: - id: ca430e0d156011e8b45c025132dab352 - supplierName: Test Supplier - accountRef: - id: 9a25937b267a11e797950a57719b2edb - name: Current - totalAmount: 52.02 - currency: GBP - currencyRate: 1 - date: '2018-02-15T00:00:00' - note: Supplier payment using credit/debit card - Cool stuff - lines: - - amount: 52.02 - links: - - type: PaymentOnAccount - id: ca430e0d156011e8b45c025132dab352 - amount: -52.02 - currencyRate: 1 - modifiedDate: '2022-10-24T14:54:04Z' - sourceModifiedDate: '2019-11-20T09:30:03Z' - - id: a99b9aae216111e8b45c025132dab352 - supplierRef: - id: ca430e0d156011e8b45c025132dab352 - supplierName: Test Supplier - accountRef: - id: 9a3e4bc6267a11e797950a57719b2edb - name: Cash - totalAmount: 52.02 - currency: GBP - currencyRate: 1 - date: '2018-03-06T00:00:00' - note: Supplier payment using cash - lines: - - amount: 52.02 - links: - - type: PaymentOnAccount - id: ca430e0d156011e8b45c025132dab352 - amount: -52.02 - currencyRate: 1 - modifiedDate: '2022-10-24T14:54:04Z' - sourceModifiedDate: '2018-03-06T17:13:17Z' - pageNumber: 1 - pageSize: 2 - totalResults: 2225 - _links: - current: - href: /companies/390083e2-351b-407c-a3be-55081c36c182/data/billPayments?page=1&pageSize=2 - self: - href: /companies/390083e2-351b-407c-a3be-55081c36c182/data/billPayments - next: - href: /companies/390083e2-351b-407c-a3be-55081c36c182/data/billPayments?page=2&pageSize=2 - Sage Intacct: - value: - results: - - id: '4471' - supplierRef: - id: '3' - supplierName: ADP - accountRef: - id: '353' - name: Current Account - totalAmount: 20 - currency: GBP - date: '2022-01-06T00:00:00' - note: '' - paymentMethodRef: - id: '6' - name: Cash - lines: - - amount: 20 - links: - - type: Bill - id: '4470' - amount: -20 - currencyRate: 1 - modifiedDate: '2023-04-04T16:32:13Z' - sourceModifiedDate: '2022-02-23T12:03:30' - metadata: - isDeleted: false - - id: '4472' - supplierRef: - id: '3' - supplierName: ADP - accountRef: - id: '353' - name: Current Account - totalAmount: 5 - currency: GBP - date: '2022-01-06T00:00:00' - note: '' - paymentMethodRef: - id: '6' - name: Cash - lines: - - amount: 5 - links: - - type: Bill - id: '4470' - amount: -5 - currencyRate: 1 - modifiedDate: '2023-04-04T16:32:13Z' - sourceModifiedDate: '2022-02-23T12:06:58' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 2 - _links: - current: - href: /companies/df02b289-cb16-4964-ac4d-9fd60b04538e/data/billPayments?page=1&pageSize=2 - self: - href: /companies/df02b289-cb16-4964-ac4d-9fd60b04538e/data/billPayments - Xero: - value: - results: - - id: 74004690-82a1-4810-aaca-6ce575af94b4 - supplierRef: - id: 1262c350-fe0f-40ec-aeff-41c95b4a45af - supplierName: DIISR - Small Business Services - accountRef: - id: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - name: Business Bank Account - totalAmount: 7267.2 - currency: GBP - currencyRate: 1 - date: '2021-12-20T00:00:00' - lines: - - amount: 7267.2 - links: - - type: Bill - id: 3945273c-cc04-479f-a4b5-1e3dc7a55ed1 - amount: -7267.2 - currencyRate: 1 - modifiedDate: '2023-03-15T20:37:10Z' - sourceModifiedDate: '2021-01-02T22:51:40' - metadata: - isDeleted: false - - id: f2062172-b444-4c8b-b797-9f4c7a4244c7 - supplierRef: - id: 1262c350-fe0f-40ec-aeff-41c95b4a45af - supplierName: DIISR - Small Business Services - accountRef: - id: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - name: Business Bank Account - totalAmount: 7267.2 - currency: GBP - currencyRate: 1 - date: '2022-02-17T00:00:00' - lines: - - amount: 7267.2 - links: - - type: Bill - id: 09aa506f-cb81-4cd3-a1ea-6a0b91804d5a - amount: -7267.2 - currencyRate: 1 - modifiedDate: '2023-03-15T20:37:10Z' - sourceModifiedDate: '2021-01-02T22:51:38' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 30 - _links: - current: - href: /companies/5ced9667-a310-443a-a711-958d36377141/data/billPayments?page=1&pageSize=2 - self: - href: /companies/5ced9667-a310-443a-a711-958d36377141/data/billPayments - next: - href: /companies/5ced9667-a310-443a-a711-958d36377141/data/billPayments?page=2&pageSize=2 - '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' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - description: "The *List bill payments* endpoint returns a list of [bill payments](https://docs.codat.io/lending-api#/schemas/BillPayment) for a given company's connection.\n\n[Bill payments](https://docs.codat.io/lending-api#/schemas/BillPayment) are an allocation of money within any customer accounts payable account.\n\nBefore using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data).\n " - operationId: list-accounting-bill-payments - x-speakeasy-group: accounts-payable.bill-payments - '/companies/{companyId}/data/billPayments/{billPaymentId}': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/accountingBillPaymentId' - get: - tags: - - Accounts payable - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/AccountingBillPayment' - examples: - Clear Books: - value: - id: dcb18480-8b69-44d8-aa26-268b6a80d170 - supplierRef: - id: 8GeHBdBZiZ - supplierName: 'DuBuque, Goyette and Franecki' - accountRef: - id: dbcaf288-2b39-4b95-8ab3-42202ab15918 - name: Business Current Account - totalAmount: 71351.42 - currency: GBP - currencyRate: 1 - date: '2022-05-06T00:00:00' - note: Bill Payment against bill 81539597-e681-40c9-a4dd-ec2fffcde572 - paymentMethodRef: - id: cb4a5647-aa86-40ab-bb4f-158acaa99c12 - name: Check payments-u4p - lines: - - amount: 71351.42 - links: - - type: Bill - id: 81539597-e681-40c9-a4dd-ec2fffcde572 - amount: -71351.42 - currencyRate: 1 - allocatedOnDate: '2022-05-06T00:00:00' - modifiedDate: '2023-04-26T12:38:17Z' - sourceModifiedDate: '2022-05-06T00:00:00' - metadata: - isDeleted: false - Dynamics 365 Business Central: - value: - id: 19387f05-8ad1-ea11-bbaa-000d3a2b9185 - supplierRef: - id: c41217b3-89d1-ea11-bbaa-000d3a2b9185 - supplierName: Wide World Importers - accountRef: - id: 621217b3-89d1-ea11-bbaa-000d3a2b9185 - name: Petty Cash - totalAmount: 234 - currency: GBP - currencyRate: 1 - date: '2019-01-01T00:00:00' - note: Invoice 107006 - lines: - - amount: 234 - links: - - type: Bill - id: c8cb06bf-89d1-ea11-bbaa-000d3a2b9185-108006 - amount: -234 - currencyRate: 1 - allocatedOnDate: '2019-01-01T00:00:00' - modifiedDate: '2023-03-27T14:21:25Z' - reference: '108006' - metadata: - isDeleted: false - Exact (Netherlands): - value: - id: da7e456f-76f7-42ac-8dad-d90a040f3afb - supplierRef: - id: 63fadca8-4905-475a-b32a-b4341293bcf4 - supplierName: Kelly's Industrial Supplies - accountRef: - id: d79d65bd-1d7d-4f55-95d3-76b3a7b7b823 - name: Bank 1 - totalAmount: -5 - currency: EUR - currencyRate: 1 - date: '2019-11-05T00:00:00Z' - lines: - - amount: -5 - links: - - type: PaymentOnAccount - id: 63fadca8-4905-475a-b32a-b4341293bcf4 - amount: 5 - currencyRate: 1 - modifiedDate: '2022-10-26T13:35:13Z' - sourceModifiedDate: '2019-11-05T14:26:22Z' - reference: '19200008' - Exact (UK): - value: - id: 7a5f621b-739f-4ed8-b738-2aae3ef886ac - supplierRef: - id: a7cad20d-44db-442b-ac1f-90475802d6fb - supplierName: Pencils Pencils Pencils - accountRef: - id: 4a4e34b5-7f62-4b64-a44a-073398b14b41 - name: Bank - totalAmount: 123 - currency: GBP - currencyRate: 1 - date: '2017-10-11T00:00:00Z' - lines: - - amount: 123 - links: - - type: Bill - id: e7a45898-2db3-424c-acb9-a51647740f26 - amount: -123 - currencyRate: 1 - modifiedDate: '2022-10-26T13:33:17Z' - sourceModifiedDate: '2017-10-11T10:12:29Z' - reference: '17200006' - FreeAgent: - value: - id: '135234103' - supplierRef: - id: '7169654' - supplierName: The Eagle - totalAmount: 14.3 - currency: GBP - date: '2017-11-23T00:00:00' - note: 'ATOMIC SOFTWARE LIMITE WELLINGTON,NZL OTHER �14.30 - Bill payment against Pints1 (The Eagle)' - lines: - - amount: 14.3 - links: - - type: Bill - id: '10659723' - amount: -14.3 - currencyRate: 1 - modifiedDate: '2023-04-25T14:21:36Z' - metadata: - isDeleted: false - FreshBooks: - value: - id: '16' - supplierRef: - id: '29' - accountRef: - id: '167679' - name: Cash - totalAmount: 10 - currency: GBP - date: '2021-08-18T00:00:00' - note: Bill payment - lines: - - amount: 10 - links: - - type: Bill - id: '16' - amount: -10 - currencyRate: 1 - allocatedOnDate: '2021-08-18T00:00:00' - modifiedDate: '2023-03-24T16:07:23Z' - metadata: - isDeleted: false - Oracle NetSuite: - value: - id: '112' - supplierRef: - id: '724' - supplierName: Vendor A.A.A - accountRef: - id: '825' - name: Codat Europe Bank - totalAmount: 120 - currency: GBP - currencyRate: 1 - date: '2021-03-26T00:00:00' - lines: - - amount: 120 - links: - - type: Bill - id: '7' - amount: -120 - currencyRate: 1 - modifiedDate: '2023-01-30T14:48:40Z' - sourceModifiedDate: '2021-03-26T10:31:06' - reference: 'Bill Payment #1' - QuickBooks Desktop: - value: - id: 3A09-1071529982 - supplierRef: - id: 720000-1071512482 - supplierName: Bayshore Auto Mall - accountRef: - id: 20000-933270541 - name: Checking - totalAmount: 532.97 - currency: GBP - currencyRate: 1 - date: '2023-01-11T00:00:00' - note: Monthly Truck Payment - lines: - - amount: 532.97 - links: - - type: Bill - id: 38AA-1071513625 - amount: -532.97 - currencyRate: 1 - modifiedDate: '2023-04-26T09:09:20Z' - sourceModifiedDate: '2023-12-16T05:04:58' - reference: '101' - metadata: - isDeleted: false - QuickBooks Online: - value: - id: '20' - supplierRef: - id: '4' - supplierName: BILLy elliot - totalAmount: 0 - currency: GBP - currencyRate: 1 - date: '2019-05-13T00:00:00' - lines: - - amount: 0 - links: - - type: Bill - id: '18' - amount: -5 - currencyRate: 1 - - type: CreditNote - id: '19' - amount: 5 - currencyRate: 1 - modifiedDate: '2023-01-18T11:02:47Z' - sourceModifiedDate: '2019-05-13T13:14:26Z' - QuickBooks Online Sandbox: - value: - id: '158' - supplierRef: - id: '57' - supplierName: Hall's Promo Items - accountRef: - id: '81' - name: Current - totalAmount: 7940.6 - currency: HKD - currencyRate: 0.078807 - date: '2016-01-23T00:00:00' - lines: - - amount: 7940.6 - links: - - type: Bill - id: '157' - amount: -7940.6 - currencyRate: 1 - modifiedDate: '2023-04-26T09:36:42Z' - sourceModifiedDate: '2016-09-13T21:19:36Z' - reference: '1067' - metadata: - isDeleted: false - Sage 200cloud: - value: - id: '45462' - supplierRef: - id: CON001 - supplierName: Concept Stationery Supplies - totalAmount: 27 - currency: GBP - currencyRate: 1 - date: '2020-01-05T00:00:00Z' - note: '' - lines: - - amount: 27 - links: - - type: PaymentOnAccount - id: CON001 - amount: -27 - currencyRate: 1 - modifiedDate: '2022-10-14T09:35:54Z' - sourceModifiedDate: '2020-02-28T14:23:46Z' - reference: Payment invoice 1 - Sage 50 (UK): - value: - id: '255' - supplierRef: - id: CON001 - supplierName: Concept Stationery Supplies - totalAmount: 370.71 - currency: GBP - currencyRate: 1 - date: '2022-01-29T00:00:00' - note: 'Purchase payment 255 linked to, purchase invoice 86, purchase invoice 87, purchase invoice 250, purchase invoice 251, purchase invoice 252.' - lines: - - amount: 117.5 - links: - - type: Bill - id: '86' - amount: -117.5 - currencyRate: 1 - - amount: 64.63 - links: - - type: Bill - id: '87' - amount: -64.63 - currencyRate: 1 - - amount: 50.57 - links: - - type: Bill - id: '250' - amount: -50.57 - currencyRate: 1 - - amount: 36.87 - links: - - type: Bill - id: '251' - amount: -36.87 - currencyRate: 1 - - amount: 101.14 - links: - - type: Bill - id: '252' - amount: -101.14 - currencyRate: 1 - modifiedDate: '2023-03-30T14:42:37Z' - sourceModifiedDate: '2022-11-25T09:43:54' - metadata: - isDeleted: false - Sage Business Cloud Accounting: - value: - id: d953b45e156011e8b45c025132dab352 - supplierRef: - id: ca430e0d156011e8b45c025132dab352 - supplierName: Test Supplier - accountRef: - id: 9a25937b267a11e797950a57719b2edb - name: Current - totalAmount: 52.02 - currency: GBP - currencyRate: 1 - date: '2018-02-15T00:00:00' - note: Supplier payment using credit/debit card - Cool stuff - lines: - - amount: 52.02 - links: - - type: PaymentOnAccount - id: ca430e0d156011e8b45c025132dab352 - amount: -52.02 - currencyRate: 1 - modifiedDate: '2022-10-24T14:54:04Z' - sourceModifiedDate: '2019-11-20T09:30:03Z' - Sage Intacct: - value: - id: '4471' - supplierRef: - id: '3' - supplierName: ADP - accountRef: - id: '353' - name: Current Account - totalAmount: 20 - currency: GBP - date: '2022-01-06T00:00:00' - note: '' - paymentMethodRef: - id: '6' - name: Cash - lines: - - amount: 20 - links: - - type: Bill - id: '4470' - amount: -20 - currencyRate: 1 - modifiedDate: '2023-04-04T16:32:13Z' - sourceModifiedDate: '2022-02-23T12:03:30' - metadata: - isDeleted: false - Xero: - value: - id: 74004690-82a1-4810-aaca-6ce575af94b4 - supplierRef: - id: 1262c350-fe0f-40ec-aeff-41c95b4a45af - supplierName: DIISR - Small Business Services - accountRef: - id: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - name: Business Bank Account - totalAmount: 7267.2 - currency: GBP - currencyRate: 1 - date: '2021-12-20T00:00:00' - lines: - - amount: 7267.2 - links: - - type: Bill - id: 3945273c-cc04-479f-a4b5-1e3dc7a55ed1 - amount: -7267.2 - currencyRate: 1 - modifiedDate: '2023-03-15T20:37:10Z' - sourceModifiedDate: '2021-01-02T22:51:40' - metadata: - isDeleted: false - '401': - $ref: '#/components/responses/Unauthorized' - '402': - $ref: '#/components/responses/Payment-Required' - '403': - $ref: '#/components/responses/Forbidden' - '404': - $ref: '#/components/responses/Not-Found' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - summary: Get bill payment - description: | - The *Get bill payment* endpoint returns a single bill payment for a given billPaymentId. - - [Bill payments](https://docs.codat.io/lending-api#/schemas/BillPayment) are an allocation of money within any customer accounts payable account. - - Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data). - operationId: get-accounting-bill-payment - x-speakeasy-group: accounts-payable.bill-payments - '/companies/{companyId}/data/bills': - parameters: - - $ref: '#/components/parameters/companyId' - get: - tags: - - Accounts payable - summary: List bills - 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/AccountingBills' - examples: - Clear Books: - value: - results: - - id: 81539597-e681-40c9-a4dd-ec2fffcde572 - reference: b465a2c9-3212-4620-889b-6328ba148215 - supplierRef: - id: 8GeHBdBZiZ - supplierName: 'DuBuque, Goyette and Franecki' - purchaseOrderRefs: [] - issueDate: '2022-04-29T00:00:00' - dueDate: '2022-05-06T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Grease Trap - unitAmount: 2781.94 - quantity: 5 - discountAmount: 0 - subTotal: 13909.7 - taxAmount: 1390.97 - totalAmount: 15300.67 - discountPercentage: 0 - accountRef: - id: 72df89d2-512b-4455-af51-a6b563733842 - name: Sales - taxRateRef: - id: 6c88aff3-7cb9-4980-a3d3-443e72e02498 - name: Sales Tax (10%) - effectiveTaxRate: 10 - itemRef: - id: 22aee6bd-4767-48c4-8a13-fdf85b91fc80 - name: 600 Litre Grease Trap - trackingCategoryRefs: [] - isDirectCost: false - - description: Grease Trap - unitAmount: 1371.39 - quantity: 5 - discountAmount: 0 - subTotal: 6856.95 - taxAmount: 685.7 - totalAmount: 7542.65 - discountPercentage: 0 - accountRef: - id: 72df89d2-512b-4455-af51-a6b563733842 - name: Sales - taxRateRef: - id: 6c88aff3-7cb9-4980-a3d3-443e72e02498 - name: Sales Tax (10%) - effectiveTaxRate: 10 - itemRef: - id: 9409d23d-1011-432e-98a4-591fcd8d5404 - name: 300 Litre Grease Trap - trackingCategoryRefs: [] - isDirectCost: false - - description: Grease Trap - unitAmount: 1371.39 - quantity: 6 - discountAmount: 0 - subTotal: 8228.34 - taxAmount: 822.83 - totalAmount: 9051.17 - discountPercentage: 0 - accountRef: - id: 72df89d2-512b-4455-af51-a6b563733842 - name: Sales - taxRateRef: - id: 6c88aff3-7cb9-4980-a3d3-443e72e02498 - name: Sales Tax (10%) - effectiveTaxRate: 10 - itemRef: - id: 9409d23d-1011-432e-98a4-591fcd8d5404 - name: 300 Litre Grease Trap - trackingCategoryRefs: [] - isDirectCost: false - - description: Grease Trap - unitAmount: 2781.94 - quantity: 3 - discountAmount: 0 - subTotal: 8345.82 - taxAmount: 834.58 - totalAmount: 9180.4 - discountPercentage: 0 - accountRef: - id: 72df89d2-512b-4455-af51-a6b563733842 - name: Sales - taxRateRef: - id: 6c88aff3-7cb9-4980-a3d3-443e72e02498 - name: Sales Tax (10%) - effectiveTaxRate: 10 - itemRef: - id: 22aee6bd-4767-48c4-8a13-fdf85b91fc80 - name: 600 Litre Grease Trap - trackingCategoryRefs: [] - isDirectCost: false - - description: Underground - Trapped Road Gully 450mm x 450mm - unitAmount: 402.89 - quantity: 8 - discountAmount: 0 - subTotal: 3223.12 - taxAmount: 322.31 - totalAmount: 3545.43 - discountPercentage: 0 - accountRef: - id: 72df89d2-512b-4455-af51-a6b563733842 - name: Sales - taxRateRef: - id: 6c88aff3-7cb9-4980-a3d3-443e72e02498 - name: Sales Tax (10%) - effectiveTaxRate: 10 - itemRef: - id: 3abf0883-03f7-44c6-bc15-1372522d25e1 - name: Heavy Duty Hinged Gully Grating - trackingCategoryRefs: [] - isDirectCost: false - - description: Underground - Drain Bottle Gullies 90 degree Rectangular - unitAmount: 95.08 - quantity: 7 - discountAmount: 0 - subTotal: 665.56 - taxAmount: 66.56 - totalAmount: 732.12 - discountPercentage: 0 - accountRef: - id: 72df89d2-512b-4455-af51-a6b563733842 - name: Sales - taxRateRef: - id: 6c88aff3-7cb9-4980-a3d3-443e72e02498 - name: Sales Tax (10%) - effectiveTaxRate: 10 - itemRef: - id: '6' - name: Back Inlet Roddable Gully 90� Outlet Rectangular Grid - trackingCategoryRefs: [] - isDirectCost: false - - description: Underground - Drain Bottle Gullies 90 degree Rectangular - unitAmount: 95.08 - quantity: 1 - discountAmount: 0 - subTotal: 95.08 - taxAmount: 9.51 - totalAmount: 104.59 - discountPercentage: 0 - accountRef: - id: 72df89d2-512b-4455-af51-a6b563733842 - name: Sales - taxRateRef: - id: 6c88aff3-7cb9-4980-a3d3-443e72e02498 - name: Sales Tax (10%) - effectiveTaxRate: 10 - itemRef: - id: '6' - name: Back Inlet Roddable Gully 90� Outlet Rectangular Grid - trackingCategoryRefs: [] - isDirectCost: false - - description: Grease Trap - unitAmount: 1371.39 - quantity: 2 - discountAmount: 0 - subTotal: 2742.78 - taxAmount: 274.28 - totalAmount: 3017.06 - discountPercentage: 0 - accountRef: - id: 72df89d2-512b-4455-af51-a6b563733842 - name: Sales - taxRateRef: - id: 6c88aff3-7cb9-4980-a3d3-443e72e02498 - name: Sales Tax (10%) - effectiveTaxRate: 10 - itemRef: - id: 9409d23d-1011-432e-98a4-591fcd8d5404 - name: 300 Litre Grease Trap - trackingCategoryRefs: [] - isDirectCost: false - - description: Grease Trap - unitAmount: 2781.94 - quantity: 1 - discountAmount: 0 - subTotal: 2781.94 - taxAmount: 278.19 - totalAmount: 3060.13 - discountPercentage: 0 - accountRef: - id: 72df89d2-512b-4455-af51-a6b563733842 - name: Sales - taxRateRef: - id: 6c88aff3-7cb9-4980-a3d3-443e72e02498 - name: Sales Tax (10%) - effectiveTaxRate: 10 - itemRef: - id: 22aee6bd-4767-48c4-8a13-fdf85b91fc80 - name: 600 Litre Grease Trap - trackingCategoryRefs: [] - isDirectCost: false - - description: Underground - Drain Bottle Gullies 90 degree Rectangular - unitAmount: 95.08 - quantity: 7 - discountAmount: 0 - subTotal: 665.56 - taxAmount: 66.56 - totalAmount: 732.12 - discountPercentage: 0 - accountRef: - id: 72df89d2-512b-4455-af51-a6b563733842 - name: Sales - taxRateRef: - id: 6c88aff3-7cb9-4980-a3d3-443e72e02498 - name: Sales Tax (10%) - effectiveTaxRate: 10 - itemRef: - id: '6' - name: Back Inlet Roddable Gully 90� Outlet Rectangular Grid - trackingCategoryRefs: [] - isDirectCost: false - - description: Grease Trap - unitAmount: 1251.89 - quantity: 4 - discountAmount: 0 - subTotal: 5007.56 - taxAmount: 500.76 - totalAmount: 5508.32 - discountPercentage: 0 - accountRef: - id: 72df89d2-512b-4455-af51-a6b563733842 - name: Sales - taxRateRef: - id: 6c88aff3-7cb9-4980-a3d3-443e72e02498 - name: Sales Tax (10%) - effectiveTaxRate: 10 - itemRef: - id: 51077072-d5c3-463b-9cb4-7da2e11886f9 - name: 150 Litre Grease Trap - trackingCategoryRefs: [] - isDirectCost: false - - description: Grease Trap - unitAmount: 1371.39 - quantity: 9 - discountAmount: 0 - subTotal: 12342.51 - taxAmount: 1234.25 - totalAmount: 13576.76 - discountPercentage: 0 - accountRef: - id: 72df89d2-512b-4455-af51-a6b563733842 - name: Sales - taxRateRef: - id: 6c88aff3-7cb9-4980-a3d3-443e72e02498 - name: Sales Tax (10%) - effectiveTaxRate: 10 - itemRef: - id: 9409d23d-1011-432e-98a4-591fcd8d5404 - name: 300 Litre Grease Trap - trackingCategoryRefs: [] - isDirectCost: false - withholdingTax: [] - status: Paid - subTotal: 64864.92 - taxAmount: 6486.5 - totalAmount: 71351.42 - amountDue: 0 - modifiedDate: '2023-04-26T12:38:16Z' - sourceModifiedDate: '2023-02-14T17:09:02' - note: 'Bill with 12 line items, totaling 71351.42' - paymentAllocations: - - payment: - id: dcb18480-8b69-44d8-aa26-268b6a80d170 - note: Bill Payment against bill 81539597-e681-40c9-a4dd-ec2fffcde572 - accountRef: - id: dbcaf288-2b39-4b95-8ab3-42202ab15918 - name: Business Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-05-06T00:00:00' - totalAmount: 71351.42 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2022-05-06T00:00:00' - totalAmount: -71351.42 - metadata: - isDeleted: false - - id: acc1dc9d-a21a-41b8-953e-73da4afab6e6 - reference: d88e83b8-a5cc-4578-815d-afa263df4beb - supplierRef: - id: 7GObELDcsE - supplierName: 'Lakin, Schmeler and Kihn' - purchaseOrderRefs: - - id: 7f07b584-bebe-450f-aa9e-1d7aed630b66 - purchaseOrderNumber: ee9b8e00-49a2-4d83-bc33-e2eee59a1c36 - issueDate: '2022-04-30T00:00:00' - dueDate: '2022-05-15T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Underground - Drain Bottle Gullies 90 degree Rectangular - unitAmount: 95.08 - quantity: 4 - discountAmount: 0 - subTotal: 380.32 - taxAmount: 38.03 - totalAmount: 418.35 - discountPercentage: 0 - accountRef: - id: 72df89d2-512b-4455-af51-a6b563733842 - name: Sales - taxRateRef: - id: 6c88aff3-7cb9-4980-a3d3-443e72e02498 - name: Sales Tax (10%) - effectiveTaxRate: 10 - itemRef: - id: '6' - name: Back Inlet Roddable Gully 90� Outlet Rectangular Grid - trackingCategoryRefs: [] - isDirectCost: false - withholdingTax: [] - status: Paid - subTotal: 380.32 - taxAmount: 38.03 - totalAmount: 418.35 - amountDue: 0 - modifiedDate: '2023-04-26T12:38:16Z' - sourceModifiedDate: '2023-04-14T01:56:02' - note: Bill for purchase order ee9b8e00-49a2-4d83-bc33-e2eee59a1c36 - paymentAllocations: - - payment: - id: a4fa017a-3911-4eb0-aaf9-b002c446c8c3 - note: Bill Payment against bill acc1dc9d-a21a-41b8-953e-73da4afab6e6 - accountRef: - id: dbcaf288-2b39-4b95-8ab3-42202ab15918 - name: Business Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-05-15T00:00:00' - totalAmount: 418.35 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2022-05-15T00:00:00' - totalAmount: -418.35 - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 183 - _links: - current: - href: /companies/354a121b-855f-4d25-90ad-0905b498c1c0/data/bills?page=1&pageSize=2 - self: - href: /companies/354a121b-855f-4d25-90ad-0905b498c1c0/data/bills - next: - href: /companies/354a121b-855f-4d25-90ad-0905b498c1c0/data/bills?page=2&pageSize=2 - Dynamics 365 Business Central: - value: - results: - - id: 4019ee2b-d05a-ed11-8c34-000d3a0d28a2-108276 - reference: '108276' - supplierRef: - id: c01217b3-89d1-ea11-bbaa-000d3a2b9185 - supplierName: First Up Consultants - purchaseOrderRefs: [] - issueDate: '2019-01-01T00:00:00' - dueDate: '2019-01-01T00:00:00' - currency: GBP - lineItems: - - description: ATHENS Desk - unitAmount: 506.6 - quantity: 4 - discountAmount: 202.64 - subTotal: 1823.76 - taxAmount: 364.75 - totalAmount: 2188.51 - discountPercentage: 10 - accountRef: - id: 6a1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: Inventory - 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: [] - isDirectCost: false - withholdingTax: [] - status: Open - subTotal: 1823.76 - taxAmount: 364.75 - totalAmount: 2188.51 - amountDue: 2188.51 - modifiedDate: '2023-03-27T14:21:25Z' - sourceModifiedDate: '2022-11-02T17:02:48Z' - note: '129148' - paymentAllocations: [] - metadata: - isDeleted: false - - id: b9cb06bf-89d1-ea11-bbaa-000d3a2b9185-108001 - reference: '108001' - supplierRef: - id: c01217b3-89d1-ea11-bbaa-000d3a2b9185 - supplierName: First Up Consultants - purchaseOrderRefs: [] - issueDate: '2019-01-01T00:00:00' - dueDate: '2019-01-01T00:00:00' - currency: GBP - lineItems: - - description: ATHENS Desk - unitAmount: 506.6 - quantity: 4 - discountAmount: 0 - subTotal: 2026.4 - taxAmount: 405.28 - totalAmount: 2431.68 - discountPercentage: 0 - accountRef: - id: 6a1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: Inventory - 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: [] - isDirectCost: false - withholdingTax: [] - status: Paid - subTotal: 2026.4 - taxAmount: 405.28 - totalAmount: 2431.68 - amountDue: 0 - modifiedDate: '2023-03-27T14:21:25Z' - sourceModifiedDate: '2022-05-17T16:29:02Z' - note: '107001' - paymentAllocations: - - payment: - id: 57377f05-8ad1-ea11-bbaa-000d3a2b9185 - note: Invoice 107001 - reference: '108001' - accountRef: - id: 621217b3-89d1-ea11-bbaa-000d3a2b9185 - name: Petty Cash - currency: GBP - currencyRate: 1 - paidOnDate: '2019-01-01T00:00:00' - totalAmount: 2431.68 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2019-01-01T00:00:00' - totalAmount: -2431.68 - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 294 - _links: - current: - href: /companies/d6849caf-c146-41be-8335-b73346e3bd84/data/bills?page=1&pageSize=2 - self: - href: /companies/d6849caf-c146-41be-8335-b73346e3bd84/data/bills - next: - href: /companies/d6849caf-c146-41be-8335-b73346e3bd84/data/bills?page=2&pageSize=2 - Exact (Netherlands): - value: - results: - - id: 1c55118b-793e-4437-9c13-4f554b9ca989 - reference: '19600006' - supplierRef: - id: 5e6f49b9-6489-4b82-83e7-291d308919bb - supplierName: Mickey Mouse - purchaseOrderRefs: [] - issueDate: '2019-12-16T00:00:00Z' - dueDate: '2019-11-09T00: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: [] - isDirectCost: false - withholdingTax: [] - status: Paid - subTotal: 10 - taxAmount: 2.1 - totalAmount: 12.1 - amountDue: 0 - modifiedDate: '2022-10-26T13:32:18Z' - sourceModifiedDate: '2020-01-03T15:06:02Z' - paymentAllocations: - - payment: - id: d9a2980b-2a43-46f2-9c7f-413d925b3cdd - reference: '20200032' - accountRef: - id: d79d65bd-1d7d-4f55-95d3-76b3a7b7b823 - name: Bank 1 - currency: EUR - currencyRate: 1 - paidOnDate: '2021-03-22T00:00:00' - totalAmount: 12.1 - allocation: - currency: EUR - currencyRate: 1 - totalAmount: -12.1 - - id: ec0c61a1-deb6-4496-b9ee-feb29b16019c - reference: '19600008' - supplierRef: - id: fc189bfa-f083-438c-bf09-379a0631d4a1 - supplierName: Mickey Mouse - purchaseOrderRefs: [] - issueDate: '2019-12-16T00:00:00Z' - dueDate: '2019-11-09T00: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: [] - isDirectCost: false - withholdingTax: [] - status: Open - subTotal: 10 - taxAmount: 2.1 - totalAmount: 12.1 - amountDue: 12.1 - modifiedDate: '2022-10-26T13:32:18Z' - sourceModifiedDate: '2020-01-03T15:06:39Z' - paymentAllocations: - - payment: - id: ef5d140b-16da-4fd2-a0c8-d5bfb89a13ee - reference: '19900056' - accountRef: - id: a2d51b6f-677d-4bbf-ad0c-b45fd6231546 - name: Activa herwaarderingen - currency: EUR - currencyRate: 1 - paidOnDate: '2019-11-07T00:00:00' - totalAmount: 0.21 - allocation: - currency: EUR - currencyRate: 1 - totalAmount: -0.21 - - payment: - id: b69e7ad4-2b90-4a5f-a8a0-67418ac95531 - reference: '19900053' - accountRef: - id: a2d51b6f-677d-4bbf-ad0c-b45fd6231546 - name: Activa herwaarderingen - currency: EUR - currencyRate: 1 - paidOnDate: '2019-11-07T00:00:00' - totalAmount: 0.2 - allocation: - currency: EUR - currencyRate: 1 - totalAmount: -0.2 - - payment: - id: 6ccd1256-6073-4bfc-8d88-700417685e72 - reference: '21200028' - accountRef: - id: d79d65bd-1d7d-4f55-95d3-76b3a7b7b823 - name: Bank 1 - currency: EUR - currencyRate: 1 - paidOnDate: '2021-10-05T00:00:00' - totalAmount: 12.1 - allocation: - currency: EUR - currencyRate: 1 - totalAmount: -12.1 - - payment: - id: 69a8533b-3e59-4d2d-9bca-bc37bc0f7984 - reference: '19900055' - accountRef: - id: a2d51b6f-677d-4bbf-ad0c-b45fd6231546 - name: Activa herwaarderingen - currency: EUR - currencyRate: 1 - paidOnDate: '2019-11-07T00:00:00' - totalAmount: 0.21 - allocation: - currency: EUR - currencyRate: 1 - totalAmount: -0.21 - - payment: - id: 2dae3548-ff11-4ad8-886c-eb5cb7965024 - reference: '19900054' - accountRef: - id: a2d51b6f-677d-4bbf-ad0c-b45fd6231546 - name: Activa herwaarderingen - currency: EUR - currencyRate: 1 - paidOnDate: '2019-11-07T00:00:00' - totalAmount: 0.21 - allocation: - currency: EUR - currencyRate: 1 - totalAmount: -0.21 - pageNumber: 1 - pageSize: 2 - totalResults: 80 - _links: - current: - href: /companies/b83b1923-4db6-45a8-a779-b4e320c15979/data/bills?page=1&pageSize=2 - self: - href: /companies/b83b1923-4db6-45a8-a779-b4e320c15979/data/bills - next: - href: /companies/b83b1923-4db6-45a8-a779-b4e320c15979/data/bills?page=2&pageSize=2 - Exact (UK): - value: - results: - - id: e7a45898-2db3-424c-acb9-a51647740f26 - reference: '17600002' - supplierRef: - id: a7cad20d-44db-442b-ac1f-90475802d6fb - supplierName: Pencils Pencils Pencils - purchaseOrderRefs: [] - issueDate: '2017-09-26T00:00:00Z' - dueDate: '2017-10-26T00:00:00Z' - currency: GBP - currencyRate: 1 - lineItems: - - description: Stationery - unitAmount: 400 - quantity: 2 - discountAmount: 0 - subTotal: 800 - taxAmount: 160 - totalAmount: 960 - accountRef: - id: e5e9e994-0f14-4614-b162-7b5593b21276 - name: Finished Goods Stock - taxRateRef: - id: 63cd143a-66ab-4320-8a6d-ab6be85ed048 - name: UK purchases standard rate � Excluding - effectiveTaxRate: 20 - itemRef: - id: '001' - trackingCategoryRefs: [] - isDirectCost: false - withholdingTax: [] - status: Paid - subTotal: 800 - taxAmount: 160 - totalAmount: 960 - amountDue: 0 - modifiedDate: '2022-10-26T13:33:20Z' - sourceModifiedDate: '2019-01-11T14:18:17Z' - paymentAllocations: - - payment: - id: 7a5f621b-739f-4ed8-b738-2aae3ef886ac - reference: '17200006' - accountRef: - id: 4a4e34b5-7f62-4b64-a44a-073398b14b41 - name: Bank - currency: GBP - currencyRate: 1 - paidOnDate: '2017-10-11T00:00:00' - totalAmount: 123 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -123 - - id: 064fbab9-9b4d-4e83-b2df-0f4ce12bc2bf - reference: '19600001' - supplierRef: - id: a4d5d739-c979-4819-b0ce-666db1ec3a7d - supplierName: Exact Software (UK) Ltd � Exact Online - purchaseOrderRefs: [] - issueDate: '2019-01-11T00:00:00Z' - dueDate: '2019-02-10T00:00:00Z' - currency: GBP - currencyRate: 1 - lineItems: - - description: Basket balls - unitAmount: 20 - quantity: 1 - discountAmount: 0 - subTotal: 20 - taxAmount: 0 - totalAmount: 20 - accountRef: - id: 885ff551-664d-451b-995b-cb114c9877d0 - name: Unallocated Cash - itemRef: - id: '23' - trackingCategoryRefs: [] - isDirectCost: false - withholdingTax: [] - status: Paid - subTotal: 20 - taxAmount: 0 - totalAmount: 20 - amountDue: 0 - modifiedDate: '2022-10-26T13:33:20Z' - sourceModifiedDate: '2019-01-11T12:03:31Z' - paymentAllocations: - - payment: - id: d871f677-c2df-4069-bda0-c6804a46b71b - reference: '19200001' - accountRef: - id: 4a4e34b5-7f62-4b64-a44a-073398b14b41 - name: Bank - currency: GBP - currencyRate: 1 - paidOnDate: '2019-02-10T00:00:00' - totalAmount: 20 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -20 - pageNumber: 1 - pageSize: 2 - totalResults: 83 - _links: - current: - href: /companies/d95030cd-22b2-482b-9c7b-2980dcc2b1ce/data/bills?page=1&pageSize=2 - self: - href: /companies/d95030cd-22b2-482b-9c7b-2980dcc2b1ce/data/bills - next: - href: /companies/d95030cd-22b2-482b-9c7b-2980dcc2b1ce/data/bills?page=2&pageSize=2 - FreeAgent: - value: - results: - - id: '16609552' - reference: MATT - U - supplierRef: - id: '7169654' - supplierName: The Eagle - purchaseOrderRefs: [] - issueDate: '2014-08-21T00:00:00' - dueDate: '2018-09-20T00:00:00' - currency: GBP - lineItems: - - unitAmount: 125 - quantity: 1 - taxAmount: 25 - totalAmount: 150 - accountRef: - id: '285' - name: Accommodation and Meals - trackingCategoryRefs: [] - isDirectCost: false - withholdingTax: [] - status: Open - subTotal: 125 - taxAmount: 25 - totalAmount: 150 - amountDue: 150 - modifiedDate: '2023-04-25T14:19:10Z' - sourceModifiedDate: '2020-11-11T12:48:55Z' - paymentAllocations: [] - metadata: - isDeleted: false - - id: '16609589' - reference: MATT - U - supplierRef: - id: '7169654' - supplierName: The Eagle - purchaseOrderRefs: [] - issueDate: '2014-08-21T00:00:00' - dueDate: '2018-09-20T00:00:00' - currency: GBP - lineItems: - - unitAmount: 125 - quantity: 1 - taxAmount: 25 - totalAmount: 150 - accountRef: - id: '285' - name: Accommodation and Meals - trackingCategoryRefs: [] - isDirectCost: false - withholdingTax: [] - status: Open - subTotal: 125 - taxAmount: 25 - totalAmount: 150 - amountDue: 150 - modifiedDate: '2023-04-25T14:19:10Z' - sourceModifiedDate: '2020-11-11T12:50:41Z' - paymentAllocations: [] - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 137 - _links: - current: - href: /companies/071ad738-68f3-4561-afd0-69bab9df0803/data/bills?page=1&pageSize=2 - self: - href: /companies/071ad738-68f3-4561-afd0-69bab9df0803/data/bills - next: - href: /companies/071ad738-68f3-4561-afd0-69bab9df0803/data/bills?page=2&pageSize=2 - FreshBooks: - value: - results: - - id: '27' - supplierRef: - id: '87' - purchaseOrderRefs: [] - issueDate: '2021-04-26T00:00:00' - dueDate: '2021-05-26T00:00:00' - currency: USD - lineItems: - - description: Grocery - unitAmount: 50 - quantity: 1 - subTotal: 50 - taxAmount: 0 - totalAmount: 50 - accountRef: - id: '3384197' - name: Advertising - trackingCategoryRefs: [] - isDirectCost: false - withholdingTax: [] - status: Open - subTotal: 50 - taxAmount: 0 - totalAmount: 50 - amountDue: 50 - modifiedDate: '2023-03-24T16:07:23Z' - sourceModifiedDate: '2021-04-26T19:34:22' - paymentAllocations: [] - metadata: - isDeleted: false - - id: '29' - supplierRef: - id: '89' - purchaseOrderRefs: [] - issueDate: '2021-04-28T00:00:00' - dueDate: '2021-05-28T00:00:00' - currency: GBP - lineItems: - - description: Advertising refund - unitAmount: 10 - quantity: 1 - subTotal: 10 - taxAmount: 0 - totalAmount: 10 - accountRef: - id: '3384197' - name: Advertising - trackingCategoryRefs: [] - isDirectCost: false - withholdingTax: [] - status: Paid - subTotal: 10 - taxAmount: 0 - totalAmount: 10 - amountDue: 0 - modifiedDate: '2023-03-24T16:07:23Z' - sourceModifiedDate: '2021-08-18T13:52:33' - paymentAllocations: [] - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 16 - _links: - current: - href: /companies/3691c49e-0db4-4172-b3ab-e4084c365013/data/bills?page=1&pageSize=2 - self: - href: /companies/3691c49e-0db4-4172-b3ab-e4084c365013/data/bills - next: - href: /companies/3691c49e-0db4-4172-b3ab-e4084c365013/data/bills?page=2&pageSize=2 - KashFlow: - value: - results: - - id: '97615244' - reference: '25' - supplierRef: - id: '9272052' - supplierName: Supplier man - purchaseOrderRefs: [] - issueDate: '2000-01-01T00:00:00' - dueDate: '2000-01-01T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: '' - unitAmount: 8.33 - quantity: 1 - subTotal: 8.33 - taxAmount: 1.67 - totalAmount: 10 - accountRef: - id: '21481884' - name: Computer equipment cost - itemRef: - id: '122990246' - trackingCategoryRefs: [] - isDirectCost: false - withholdingTax: [] - status: Paid - subTotal: 8.33 - taxAmount: 1.67 - totalAmount: 10 - amountDue: 0 - modifiedDate: '2022-09-30T10:29:15Z' - paymentAllocations: [] - - id: '76144089' - reference: '1' - supplierRef: - id: '6202387' - supplierName: Dell - purchaseOrderRefs: [] - issueDate: '2019-01-28T00:00:00' - dueDate: '2019-02-27T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: '' - unitAmount: 120 - quantity: 5 - subTotal: 600 - taxAmount: 0 - totalAmount: 600 - accountRef: - id: '21481820' - name: Materials purchased - itemRef: - id: '95293985' - trackingCategoryRefs: [] - isDirectCost: false - withholdingTax: [] - status: Paid - subTotal: 600 - taxAmount: 0 - totalAmount: 600 - amountDue: 0 - modifiedDate: '2022-09-30T10:29:15Z' - paymentAllocations: [] - pageNumber: 1 - pageSize: 2 - totalResults: 19 - _links: - current: - href: /companies/3a707a99-89da-4b16-a5d6-595333a16352/data/bills?page=1&pageSize=2 - self: - href: /companies/3a707a99-89da-4b16-a5d6-595333a16352/data/bills - next: - href: /companies/3a707a99-89da-4b16-a5d6-595333a16352/data/bills?page=2&pageSize=2 - Oracle NetSuite: - value: - results: - - id: '7' - supplierRef: - id: '724' - supplierName: Vendor A.A.A - purchaseOrderRefs: [] - issueDate: '2021-03-26T00:00:00' - dueDate: '2021-03-26T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - unitAmount: 120 - quantity: 1 - unitOfMeasurement: litre - subTotal: 120 - totalAmount: 120 - accountRef: - id: '716' - name: Inventory In Transit - trackingCategoryRefs: - - id: location-4 - name: Europe - tracking: - categoryRefs: - - id: location-4 - name: Europe - isBilledTo: Unknown - isRebilledTo: Unknown - isDirectCost: false - withholdingTax: [] - status: PartiallyPaid - subTotal: 120 - taxAmount: 24 - totalAmount: 144 - amountDue: 24 - modifiedDate: '2023-01-30T14:47:34Z' - sourceModifiedDate: '2022-07-05T13:38:10' - paymentAllocations: - - payment: - id: '112' - reference: 'Bill Payment #1' - accountRef: - id: '825' - name: Codat Europe Bank - currency: GBP - currencyRate: 1 - paidOnDate: '2021-03-26T00:00:00' - totalAmount: 120 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -120 - - id: '165372' - supplierRef: - id: '724' - supplierName: Vendor A.A.A - purchaseOrderRefs: [] - issueDate: '2022-07-15T00:00:00' - dueDate: '2022-07-15T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - unitAmount: 555.78 - quantity: 1 - subTotal: 555.78 - totalAmount: 555.78 - accountRef: - id: '844' - name: Asset account test 2 - trackingCategoryRefs: - - id: location-4 - name: Europe - tracking: - categoryRefs: - - id: location-4 - name: Europe - isBilledTo: Unknown - isRebilledTo: Unknown - isDirectCost: false - withholdingTax: [] - status: PartiallyPaid - subTotal: 555.78 - taxAmount: 0 - totalAmount: 555.78 - amountDue: 500 - modifiedDate: '2023-01-30T14:47:34Z' - sourceModifiedDate: '2022-07-15T11:35:47' - paymentAllocations: - - payment: - id: '165373' - reference: 'Bill Payment #2' - accountRef: - id: '825' - name: Codat Europe Bank - currency: GBP - currencyRate: 1 - paidOnDate: '2022-07-15T00:00:00' - totalAmount: 555.78 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -55.78 - pageNumber: 1 - pageSize: 2 - totalResults: 3 - _links: - current: - href: /companies/d5074b08-6a34-4b06-a742-236edf5dc4f1/data/bills?page=1&pageSize=2 - self: - href: /companies/d5074b08-6a34-4b06-a742-236edf5dc4f1/data/bills - next: - href: /companies/d5074b08-6a34-4b06-a742-236edf5dc4f1/data/bills?page=2&pageSize=2 - QuickBooks Desktop: - value: - results: - - id: 3691-1071520776 - reference: '3847498' - supplierRef: - id: B0000-933272656 - supplierName: Patton Hardware Supplies - purchaseOrderRefs: - - id: 3684-1071520443 - purchaseOrderNumber: '6225' - issueDate: '2022-12-02T00:00:00' - dueDate: '2024-01-01T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: "Cabinets:Light Pine - Light pine kitchen cabinet wall unit \n#CLD- 1235-p" - unitAmount: 1500 - quantity: 5 - discountAmount: 0 - subTotal: 7500 - taxAmount: 0 - totalAmount: 7500 - discountPercentage: 0 - accountRef: - id: C0000-933270541 - name: Accounts Payable - itemRef: - id: 110000-933272656 - name: 'Cabinets:Light Pine' - trackingCategoryRefs: - - id: 10000-933272658 - name: New Construction - tracking: - categoryRefs: - - id: 10000-933272658 - name: New Construction - isBilledTo: Unknown - isRebilledTo: Unknown - isDirectCost: false - - description: 'Hardware:Doorknobs Std - Doorknobs Part # DK 3704' - unitAmount: 27 - quantity: 100 - discountAmount: 0 - subTotal: 2700 - taxAmount: 0 - totalAmount: 2700 - discountPercentage: 0 - accountRef: - id: C0000-933270541 - name: Accounts Payable - itemRef: - id: 130000-933272656 - name: 'Hardware:Doorknobs Std' - trackingCategoryRefs: - - id: 10000-933272658 - name: New Construction - tracking: - categoryRefs: - - id: 10000-933272658 - name: New Construction - isBilledTo: Unknown - isRebilledTo: Unknown - isDirectCost: false - - description: 'Hardware:Lk Doorknobs - Locking interior doorknobs Part # DK415' - unitAmount: 34.95 - quantity: 100 - discountAmount: 0 - subTotal: 3495 - taxAmount: 0 - totalAmount: 3495 - discountPercentage: 0 - accountRef: - id: C0000-933270541 - name: Accounts Payable - itemRef: - id: 140000-933272656 - name: 'Hardware:Lk Doorknobs' - trackingCategoryRefs: - - id: 10000-933272658 - name: New Construction - tracking: - categoryRefs: - - id: 10000-933272658 - name: New Construction - isBilledTo: Unknown - isRebilledTo: Unknown - isDirectCost: false - withholdingTax: [] - status: Paid - subTotal: 13695 - taxAmount: 0 - totalAmount: 13695 - amountDue: 0 - modifiedDate: '2023-04-26T09:06:42Z' - sourceModifiedDate: '2023-12-16T05:06:30' - paymentAllocations: - - payment: - id: 9E4C-1182131999 - reference: '115' - accountRef: - id: 20000-933270541 - name: Checking - currency: GBP - currencyRate: 1 - paidOnDate: '2023-01-31T00:00:00' - totalAmount: 13759 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -8695 - - payment: - id: 36AD-1071520917 - note: RC 93 - reference: '484' - accountRef: - id: 20000-933270541 - name: Checking - currency: GBP - currencyRate: 1 - paidOnDate: '2024-12-05T00:00:00' - totalAmount: 5325 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -5000 - metadata: - isDeleted: false - - id: 5CAB-1197713763 - reference: '8374892' - supplierRef: - id: 30000-933272656 - supplierName: C. U. Electric - purchaseOrderRefs: [] - issueDate: '2022-12-15T00:00:00' - dueDate: '2024-01-14T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - unitAmount: 532 - quantity: 1 - discountAmount: 0 - subTotal: 532 - taxAmount: 0 - totalAmount: 532 - discountPercentage: 0 - accountRef: - id: 490000-933270542 - name: Gas and Electric - trackingCategoryRefs: - - id: 80000007-1197713802 - name: Overhead - tracking: - categoryRefs: - - id: 80000007-1197713802 - name: Overhead - isBilledTo: Unknown - isRebilledTo: Unknown - isDirectCost: false - withholdingTax: [] - status: Paid - subTotal: 532 - taxAmount: 0 - totalAmount: 532 - amountDue: 0 - modifiedDate: '2023-04-26T09:06:42Z' - sourceModifiedDate: '2023-12-16T05:06:30' - paymentAllocations: - - payment: - id: 9E42-1182131999 - reference: '113' - accountRef: - id: 20000-933270541 - name: Checking - currency: GBP - currencyRate: 1 - paidOnDate: '2023-01-31T00:00:00' - totalAmount: 532 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -532 - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 239 - _links: - current: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/data/bills?page=1&pageSize=2 - self: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/data/bills - next: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/data/bills?page=2&pageSize=2 - QuickBooks Online: - value: - results: - - id: '18' - reference: '12' - supplierRef: - id: '4' - supplierName: BILLy elliot - purchaseOrderRefs: [] - issueDate: '2019-05-13T00:00:00' - dueDate: '2019-05-13T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - unitAmount: 5 - quantity: 1 - discountAmount: 0 - subTotal: 5 - taxAmount: 0 - totalAmount: 5 - accountRef: - id: '16' - name: Advertising - taxRateRef: - id: NON - name: NON - effectiveTaxRate: 0 - trackingCategoryRefs: [] - tracking: - categoryRefs: [] - isBilledTo: Unknown - isRebilledTo: NotApplicable - isDirectCost: false - withholdingTax: [] - status: Paid - subTotal: 5 - taxAmount: 0 - totalAmount: 5 - amountDue: 0 - modifiedDate: '2023-01-18T11:02:41Z' - sourceModifiedDate: '2022-05-26T10:34:10Z' - paymentAllocations: - - payment: - id: '20' - currency: GBP - currencyRate: 1 - paidOnDate: '2019-05-13T00:00:00' - totalAmount: 0 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -5 - - id: '22' - reference: '12' - supplierRef: - id: '4' - supplierName: BILLy elliot - purchaseOrderRefs: [] - issueDate: '2019-05-13T00:00:00' - dueDate: '2019-05-13T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - unitAmount: 5 - quantity: 1 - discountAmount: 0 - subTotal: 5 - taxAmount: 0 - totalAmount: 5 - accountRef: - id: '16' - name: Advertising - taxRateRef: - id: NON - name: NON - effectiveTaxRate: 0 - trackingCategoryRefs: [] - tracking: - categoryRefs: [] - isBilledTo: Unknown - isRebilledTo: NotApplicable - isDirectCost: false - withholdingTax: [] - status: Paid - subTotal: 5 - taxAmount: 0 - totalAmount: 5 - amountDue: 0 - modifiedDate: '2023-01-18T11:02:41Z' - sourceModifiedDate: '2020-03-23T10:44:06Z' - paymentAllocations: - - payment: - id: '678' - note: payment note test - currency: GBP - currencyRate: 1 - paidOnDate: '2020-03-23T00:00:00' - totalAmount: 0 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -5 - pageNumber: 1 - pageSize: 2 - totalResults: 147 - _links: - current: - href: /companies/10818b5e-6e6a-4ed4-a1c5-3e3efe626e87/data/bills?page=1&pageSize=2 - self: - href: /companies/10818b5e-6e6a-4ed4-a1c5-3e3efe626e87/data/bills - next: - href: /companies/10818b5e-6e6a-4ed4-a1c5-3e3efe626e87/data/bills?page=2&pageSize=2 - QuickBooks Online Sandbox: - value: - results: - - id: '157' - supplierRef: - id: '57' - supplierName: Hall's Promo Items - purchaseOrderRefs: [] - issueDate: '2016-01-06T00:00:00' - dueDate: '2016-01-16T00:00:00' - currency: HKD - currencyRate: 0.081142 - lineItems: - - description: Water bottles -- generic - unitAmount: 66.1717023 - quantity: 100 - discountAmount: 0 - subTotal: 6617.17 - taxAmount: 1323.43 - totalAmount: 7940.6 - taxRateRef: - id: 3_Bills - name: 20.0% S Bills - effectiveTaxRate: 20 - itemRef: - id: '19' - name: Water Bottles - trackingCategoryRefs: [] - tracking: - categoryRefs: [] - customerRef: - id: '55' - companyName: Oxon Insurance - Holiday Party - isBilledTo: Unknown - isRebilledTo: NotApplicable - isDirectCost: false - withholdingTax: [] - status: Paid - subTotal: 6617.17 - taxAmount: 1323.43 - totalAmount: 7940.6 - amountDue: 0 - modifiedDate: '2023-04-26T09:35:58Z' - sourceModifiedDate: '2023-01-26T11:20:45Z' - paymentAllocations: - - payment: - id: '158' - reference: '1067' - accountRef: - id: '81' - name: Current - currency: HKD - currencyRate: 0.078807 - paidOnDate: '2016-01-23T00:00:00' - totalAmount: 7940.6 - allocation: - currency: HKD - currencyRate: 1 - totalAmount: -7940.6 - metadata: - isDeleted: false - - id: '28' - supplierRef: - id: '57' - supplierName: Hall's Promo Items - purchaseOrderRefs: [] - issueDate: '2016-01-06T00:00:00' - dueDate: '2016-01-06T00:00:00' - currency: HKD - currencyRate: 0.081142 - lineItems: - - description: promotional items -- misc engraved items - unitAmount: 8.25 - quantity: 75 - discountAmount: 0 - subTotal: 618.75 - taxAmount: 123.75 - totalAmount: 742.5 - taxRateRef: - id: 3_Bills - name: 20.0% S Bills - effectiveTaxRate: 20 - itemRef: - id: '12' - name: Misc - trackingCategoryRefs: [] - tracking: - categoryRefs: [] - customerRef: - id: '59' - companyName: Ecker Holiday event - isBilledTo: Unknown - isRebilledTo: NotApplicable - isDirectCost: false - withholdingTax: [] - status: Paid - subTotal: 618.75 - taxAmount: 123.75 - totalAmount: 742.5 - amountDue: 0 - modifiedDate: '2023-04-26T09:35:58Z' - sourceModifiedDate: '2016-09-13T21:19:49Z' - paymentAllocations: - - payment: - id: '159' - reference: '1068' - accountRef: - id: '81' - name: Current - currency: HKD - currencyRate: 0.078807 - paidOnDate: '2016-01-23T00:00:00' - totalAmount: 742.5 - allocation: - currency: HKD - currencyRate: 1 - totalAmount: -742.5 - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 711 - _links: - current: - href: /companies/5a7f3597-36e1-4216-86fe-289ad36088a6/data/bills?page=1&pageSize=2 - self: - href: /companies/5a7f3597-36e1-4216-86fe-289ad36088a6/data/bills - next: - href: /companies/5a7f3597-36e1-4216-86fe-289ad36088a6/data/bills?page=2&pageSize=2 - Sage 200cloud: - value: - results: - - id: '45121' - reference: Order no 1 - supplierRef: - id: CON001 - supplierName: Concept Stationery Supplies - purchaseOrderRefs: [] - issueDate: '2020-07-22T00:00:00Z' - dueDate: '2020-02-15T00:00:00Z' - currency: GBP - currencyRate: 1 - lineItems: - - description: Tax Summary - Tax Rate 1 - unitAmount: 0 - quantity: 0 - discountAmount: 0.5 - subTotal: 0 - taxAmount: 20 - totalAmount: 20 - taxRateRef: - id: '1729' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: [] - isDirectCost: false - - description: Goods Summary - unitAmount: 0 - quantity: 0 - discountAmount: 2.5 - subTotal: 100 - taxAmount: 0 - totalAmount: 100 - trackingCategoryRefs: [] - isDirectCost: false - withholdingTax: [] - status: Open - subTotal: 100 - taxAmount: 20 - totalAmount: 120 - amountDue: 120 - modifiedDate: '2022-10-14T09:36:01Z' - sourceModifiedDate: '2020-02-28T14:23:46Z' - note: No1 - paymentAllocations: [] - - id: '45131' - reference: Order 2 - supplierRef: - id: CON001 - supplierName: Concept Stationery Supplies - purchaseOrderRefs: [] - issueDate: '2020-07-22T00:00:00Z' - dueDate: '2020-03-01T00:00:00Z' - currency: GBP - currencyRate: 1 - lineItems: - - description: Tax Summary - Tax Rate 1 - unitAmount: 0 - quantity: 0 - discountAmount: 0 - subTotal: 0 - taxAmount: 31.6 - totalAmount: 31.6 - taxRateRef: - id: '1729' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: [] - isDirectCost: false - - description: Goods Summary - unitAmount: 0 - quantity: 0 - discountAmount: 0 - subTotal: 158 - taxAmount: 0 - totalAmount: 158 - trackingCategoryRefs: [] - isDirectCost: false - withholdingTax: [] - status: PartiallyPaid - subTotal: 158 - taxAmount: 31.6 - totalAmount: 189.6 - amountDue: 179.1 - modifiedDate: '2022-10-14T09:36:01Z' - sourceModifiedDate: '2020-02-28T14:23:46Z' - note: No2 - paymentAllocations: - - payment: - id: '45391' - note: ret1 - reference: Return 1 - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-20T00:00:00' - totalAmount: 0 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: 10.5 - pageNumber: 1 - pageSize: 2 - totalResults: 162 - _links: - current: - href: /companies/93c21e2d-049c-4d24-b41b-57e61c30b69e/data/bills?page=1&pageSize=2 - self: - href: /companies/93c21e2d-049c-4d24-b41b-57e61c30b69e/data/bills - next: - href: /companies/93c21e2d-049c-4d24-b41b-57e61c30b69e/data/bills?page=2&pageSize=2 - Sage 50 (UK): - value: - results: - - id: '92' - reference: '2569' - supplierRef: - id: THO001 - supplierName: Thompsons Electricals - purchaseOrderRefs: [] - issueDate: '2021-01-01T00:00:00' - dueDate: '2022-01-31T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Goods - unitAmount: 5875 - quantity: 1 - subTotal: 5000 - taxAmount: 875 - totalAmount: 5875 - accountRef: - id: '5000' - name: Materials Purchased - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_7 - name: Workshop - tracking: - categoryRefs: - - id: department_7 - name: Workshop - isBilledTo: Unknown - isRebilledTo: Unknown - isDirectCost: false - withholdingTax: [] - status: Paid - subTotal: 5000 - taxAmount: 875 - totalAmount: 5875 - amountDue: 0 - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - note: Goods - paymentAllocations: - - payment: - id: '260' - note: 'Purchase payment 260 linked to, purchase invoice 11, purchase invoice 18, purchase invoice 92, purchase invoice 93.' - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 7141.98 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -5875 - metadata: - isDeleted: false - - id: '93' - reference: '2570' - supplierRef: - id: THO001 - supplierName: Thompsons Electricals - purchaseOrderRefs: [] - issueDate: '2021-01-15T00:00:00' - dueDate: '2022-02-14T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Goods - unitAmount: 1175 - quantity: 1 - subTotal: 1000 - taxAmount: 175 - totalAmount: 1175 - accountRef: - id: '5000' - name: Materials Purchased - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_7 - name: Workshop - tracking: - categoryRefs: - - id: department_7 - name: Workshop - isBilledTo: Unknown - isRebilledTo: Unknown - isDirectCost: false - withholdingTax: [] - status: Paid - subTotal: 1000 - taxAmount: 175 - totalAmount: 1175 - amountDue: 0 - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - note: Goods - paymentAllocations: - - payment: - id: '260' - note: 'Purchase payment 260 linked to, purchase invoice 11, purchase invoice 18, purchase invoice 92, purchase invoice 93.' - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 7141.98 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -1175 - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 95 - _links: - current: - href: /companies/cf5f2a47-2990-4221-bae6-0c19c86ac304/data/bills?page=1&pageSize=2 - self: - href: /companies/cf5f2a47-2990-4221-bae6-0c19c86ac304/data/bills - next: - href: /companies/cf5f2a47-2990-4221-bae6-0c19c86ac304/data/bills?page=2&pageSize=2 - Sage Business Cloud Accounting: - value: - results: - - id: 15a7a15773b011e8aaa5027d54329956 - reference: 19/06/2018 - 435.60 - supplierRef: - id: ca430e0d156011e8b45c025132dab352 - supplierName: Test Supplier - purchaseOrderRefs: [] - issueDate: '2018-06-19T00:00:00' - dueDate: '2018-07-19T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Consulting services - unitAmount: 11 - quantity: 33 - subTotal: 363 - taxAmount: 72.6 - totalAmount: 435.6 - accountRef: - id: 9a995955267a11e797950a57719b2edb - name: Cost of sales - goods - taxRateRef: - id: GB_STANDARD - name: Standard 20.00% - effectiveTaxRate: 20 - itemRef: - id: a87b922b33de11e797950a57719b2edb - name: Consulting services - trackingCategoryRefs: [] - isDirectCost: false - withholdingTax: [] - status: PartiallyPaid - subTotal: 363 - taxAmount: 72.6 - totalAmount: 435.6 - amountDue: 405.6 - modifiedDate: '2022-10-24T14:56:08Z' - sourceModifiedDate: '2020-02-05T15:19:28Z' - paymentAllocations: - - payment: - id: f11134e299cb4456be096265136a7770 - note: Supplier payment using credit/debit card - string - accountRef: - id: 92b80ba619d34cafbedd0eb2e69a82f7 - name: ozzbtdynvoblhytjolxaiohrtrhtpvndiqncpjtcjzwcddpvzl - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-05T00:00:00' - totalAmount: 5 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -5 - - payment: - id: e3e35dcda09642ca8880fc603b0a98e9 - note: Supplier payment using credit/debit card - string - accountRef: - id: 92b80ba619d34cafbedd0eb2e69a82f7 - name: ozzbtdynvoblhytjolxaiohrtrhtpvndiqncpjtcjzwcddpvzl - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-05T00:00:00' - totalAmount: 5 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -5 - - payment: - id: d9b643b9d6e149f4b443cbc6f22fe1dd - note: Supplier payment using credit/debit card - string - accountRef: - id: 92b80ba619d34cafbedd0eb2e69a82f7 - name: ozzbtdynvoblhytjolxaiohrtrhtpvndiqncpjtcjzwcddpvzl - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-05T00:00:00' - totalAmount: 5 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -5 - - payment: - id: cbff2fed2f1641b7bee59f5dd68d29a1 - note: Supplier payment using credit/debit card - string - accountRef: - id: 92b80ba619d34cafbedd0eb2e69a82f7 - name: ozzbtdynvoblhytjolxaiohrtrhtpvndiqncpjtcjzwcddpvzl - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-05T00:00:00' - totalAmount: 5 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -5 - - payment: - id: 3c3ed62353cf4d148352a14027738dbe - note: Supplier payment using credit/debit card - string - accountRef: - id: 92b80ba619d34cafbedd0eb2e69a82f7 - name: ozzbtdynvoblhytjolxaiohrtrhtpvndiqncpjtcjzwcddpvzl - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-05T00:00:00' - totalAmount: 5 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -5 - - payment: - id: 332e402b9d4b4614af82594d186f5f29 - note: Supplier payment using credit/debit card - string - accountRef: - id: 92b80ba619d34cafbedd0eb2e69a82f7 - name: ozzbtdynvoblhytjolxaiohrtrhtpvndiqncpjtcjzwcddpvzl - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-05T00:00:00' - totalAmount: 5 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -5 - - id: 09034445789211e8aaa5027d54329956 - reference: '25/06/2018 - 1,000.00' - supplierRef: - id: ec716559789111e8aaa5027d54329956 - supplierName: Bagels Limited - purchaseOrderRefs: [] - issueDate: '2018-06-25T00:00:00' - dueDate: '2018-07-25T00:00:00' - currency: USD - currencyRate: 0.752601305 - lineItems: - - description: Bagels - unitAmount: 1000 - quantity: 1 - subTotal: 1000 - taxAmount: 0 - totalAmount: 1000 - accountRef: - id: 9a995955267a11e797950a57719b2edb - name: Cost of sales - goods - taxRateRef: - id: GB_ZERO - name: Zero Rated 0.00% - effectiveTaxRate: 0 - trackingCategoryRefs: [] - isDirectCost: false - withholdingTax: [] - status: Paid - subTotal: 1000 - taxAmount: 0 - totalAmount: 1000 - amountDue: 0 - modifiedDate: '2022-10-24T14:56:08Z' - sourceModifiedDate: '2022-02-22T13:48:56Z' - paymentAllocations: - - payment: - id: 66d010243e3441ba89a793446eb9c74b - note: Supplier payment using credit/debit card - Test note - accountRef: - id: 9a25937b267a11e797950a57719b2edb - name: Current - currency: USD - currencyRate: 0.734679838 - paidOnDate: '2022-02-16T00:00:00' - totalAmount: 1000 - allocation: - currency: USD - currencyRate: 1 - totalAmount: -1000 - pageNumber: 1 - pageSize: 2 - totalResults: 4658 - _links: - current: - href: /companies/390083e2-351b-407c-a3be-55081c36c182/data/bills?page=1&pageSize=2 - self: - href: /companies/390083e2-351b-407c-a3be-55081c36c182/data/bills - next: - href: /companies/390083e2-351b-407c-a3be-55081c36c182/data/bills?page=2&pageSize=2 - Sage Intacct: - value: - results: - - id: '4470' - reference: test - supplierRef: - id: '3' - supplierName: ADP - purchaseOrderRefs: [] - issueDate: '2021-10-19T00:00:00' - dueDate: '2021-10-29T00:00:00' - currency: GBP - lineItems: - - unitAmount: 25 - quantity: 1 - subTotal: 25 - taxAmount: 0 - totalAmount: 25 - accountRef: - id: '3' - name: Accounts Payable - taxRateRef: - id: '82' - name: UK Purchase Goods Zero Rate - effectiveTaxRate: 0 - trackingCategoryRefs: - - id: DEPARTMENT-3 - name: Admin - - id: LOCATION-11 - name: Codat Test Entity - tracking: - categoryRefs: - - id: DEPARTMENT-3 - name: Admin - - id: LOCATION-11 - name: Codat Test Entity - isBilledTo: Unknown - isRebilledTo: Unknown - isDirectCost: false - withholdingTax: [] - status: Paid - subTotal: 25 - taxAmount: 0 - totalAmount: 25 - amountDue: 0 - modifiedDate: '2023-04-04T16:31:37Z' - sourceModifiedDate: '2022-02-23T12:06:58' - note: '' - paymentAllocations: - - payment: - id: '4471' - note: '' - accountRef: - id: '353' - name: Current Account - currency: GBP - paidOnDate: '2022-01-06T00:00:00' - totalAmount: 20 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -20 - - payment: - id: '4472' - note: '' - accountRef: - id: '353' - name: Current Account - currency: GBP - paidOnDate: '2022-01-06T00:00:00' - totalAmount: 5 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -5 - metadata: - isDeleted: false - - id: '4705' - reference: JohnAndRob - supplierRef: - id: '8' - supplierName: Worldwide Commercial - purchaseOrderRefs: [] - issueDate: '2022-02-04T00:00:00' - dueDate: '2022-02-19T00:00:00' - currency: USD - currencyRate: 14 - lineItems: - - description: Some text for a description - unitAmount: 10 - quantity: 1 - subTotal: 10 - taxAmount: 0 - totalAmount: 10 - accountRef: - id: '3' - name: Accounts Payable - taxRateRef: - id: '49' - name: EC Purchase Goods Zero Rate - effectiveTaxRate: 0 - trackingCategoryRefs: - - id: DEPARTMENT-3 - name: Admin - - id: LOCATION-11 - name: Codat Test Entity - tracking: - categoryRefs: - - id: DEPARTMENT-3 - name: Admin - - id: LOCATION-11 - name: Codat Test Entity - isBilledTo: Unknown - isRebilledTo: Unknown - isDirectCost: false - withholdingTax: [] - status: Open - subTotal: 10 - taxAmount: 0 - totalAmount: 10 - amountDue: 10 - modifiedDate: '2023-04-04T16:31:37Z' - sourceModifiedDate: '2022-04-22T12:24:59' - note: Some note on my bill - paymentAllocations: [] - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 17 - _links: - current: - href: /companies/df02b289-cb16-4964-ac4d-9fd60b04538e/data/bills?page=1&pageSize=2 - self: - href: /companies/df02b289-cb16-4964-ac4d-9fd60b04538e/data/bills - next: - href: /companies/df02b289-cb16-4964-ac4d-9fd60b04538e/data/bills?page=2&pageSize=2 - Xero: - value: - results: - - id: 3945273c-cc04-479f-a4b5-1e3dc7a55ed1 - reference: '' - supplierRef: - id: 1262c350-fe0f-40ec-aeff-41c95b4a45af - supplierName: DIISR - Small Business Services - purchaseOrderRefs: [] - issueDate: '2021-11-19T00:00:00' - dueDate: '2021-12-20T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Half day training - Microsoft Office - unitAmount: 1800 - quantity: 1 - discountAmount: 0 - subTotal: 1800 - taxAmount: 360 - totalAmount: 2160 - discountPercentage: 0 - accountRef: - id: 46f9461e-788b-4906-8b74-d1ea17f6dc10 - name: Consulting - taxRateRef: - id: INPUT2 - name: 20% (VAT on Expenses) - effectiveTaxRate: 20 - itemRef: - id: 489558f5-27b7-4f37-ad9f-d84611c2e2ab - name: Half day training - Microsoft Office - trackingCategoryRefs: [] - isDirectCost: false - - description: Desktop/network support via email & phone.Per month fixed fee for minimum 20 hours/month. - unitAmount: 4000 - quantity: 1 - discountAmount: 0 - subTotal: 4000 - taxAmount: 800 - totalAmount: 4800 - discountPercentage: 0 - accountRef: - id: f96c9458-d724-47bf-8f74-a9d5726465ce - name: General Expenses - taxRateRef: - id: INPUT2 - name: 20% (VAT on Expenses) - effectiveTaxRate: 20 - itemRef: - id: f8fb7e00-5e5d-466c-aef0-15861f73d04f - name: Desktop/network support via email & phone - trackingCategoryRefs: [] - isDirectCost: false - - description: Stationery charges - unitAmount: 32 - quantity: 8 - discountAmount: 0 - subTotal: 256 - taxAmount: 51.2 - totalAmount: 307.2 - discountPercentage: 0 - accountRef: - id: cba6527d-f102-4538-b421-e483233e9d5a - name: Printing & Stationery - taxRateRef: - id: INPUT2 - name: 20% (VAT on Expenses) - effectiveTaxRate: 20 - trackingCategoryRefs: [] - isDirectCost: false - withholdingTax: [] - status: Paid - subTotal: 6056 - taxAmount: 1211.2 - totalAmount: 7267.2 - amountDue: 0 - modifiedDate: '2023-03-15T20:36:09Z' - sourceModifiedDate: '2021-01-02T21:07:23' - paymentAllocations: - - payment: - id: 74004690-82a1-4810-aaca-6ce575af94b4 - accountRef: - id: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - name: Business Bank Account - currency: GBP - currencyRate: 1 - paidOnDate: '2021-12-20T00:00:00' - totalAmount: 7267.2 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -7267.2 - metadata: - isDeleted: false - - id: 09aa506f-cb81-4cd3-a1ea-6a0b91804d5a - reference: '' - supplierRef: - id: 1262c350-fe0f-40ec-aeff-41c95b4a45af - supplierName: DIISR - Small Business Services - purchaseOrderRefs: [] - issueDate: '2022-01-17T00:00:00' - dueDate: '2022-02-17T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Half day training - Microsoft Office - unitAmount: 1800 - quantity: 1 - discountAmount: 0 - subTotal: 1800 - taxAmount: 360 - totalAmount: 2160 - discountPercentage: 0 - accountRef: - id: 46f9461e-788b-4906-8b74-d1ea17f6dc10 - name: Consulting - taxRateRef: - id: INPUT2 - name: 20% (VAT on Expenses) - effectiveTaxRate: 20 - itemRef: - id: 489558f5-27b7-4f37-ad9f-d84611c2e2ab - name: Half day training - Microsoft Office - trackingCategoryRefs: [] - isDirectCost: false - - description: Desktop/network support via email & phone.Per month fixed fee for minimum 20 hours/month. - unitAmount: 4000 - quantity: 1 - discountAmount: 0 - subTotal: 4000 - taxAmount: 800 - totalAmount: 4800 - discountPercentage: 0 - accountRef: - id: f96c9458-d724-47bf-8f74-a9d5726465ce - name: General Expenses - taxRateRef: - id: INPUT2 - name: 20% (VAT on Expenses) - effectiveTaxRate: 20 - itemRef: - id: f8fb7e00-5e5d-466c-aef0-15861f73d04f - name: Desktop/network support via email & phone - trackingCategoryRefs: [] - isDirectCost: false - - description: Stationery charges - unitAmount: 32 - quantity: 8 - discountAmount: 0 - subTotal: 256 - taxAmount: 51.2 - totalAmount: 307.2 - discountPercentage: 0 - accountRef: - id: cba6527d-f102-4538-b421-e483233e9d5a - name: Printing & Stationery - taxRateRef: - id: INPUT2 - name: 20% (VAT on Expenses) - effectiveTaxRate: 20 - trackingCategoryRefs: [] - isDirectCost: false - withholdingTax: [] - status: Paid - subTotal: 6056 - taxAmount: 1211.2 - totalAmount: 7267.2 - amountDue: 0 - modifiedDate: '2023-03-15T20:36:09Z' - sourceModifiedDate: '2021-01-02T21:06:22' - paymentAllocations: - - payment: - id: f2062172-b444-4c8b-b797-9f4c7a4244c7 - accountRef: - id: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - name: Business Bank Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-02-17T00:00:00' - totalAmount: 7267.2 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -7267.2 - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 44 - _links: - current: - href: /companies/5ced9667-a310-443a-a711-958d36377141/data/bills?page=1&pageSize=2 - self: - href: /companies/5ced9667-a310-443a-a711-958d36377141/data/bills - next: - href: /companies/5ced9667-a310-443a-a711-958d36377141/data/bills?page=2&pageSize=2 - Zoho Books: - value: - results: - - id: '104957000000152027' - reference: '1' - supplierRef: - id: '104957000000152001' - supplierName: Mr. P N - purchaseOrderRefs: [] - issueDate: '2020-06-23T00:00:00' - dueDate: '2020-06-23T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: [] - withholdingTax: [] - status: Paid - subTotal: 0 - taxAmount: 0 - totalAmount: 10 - amountDue: 0 - modifiedDate: '2022-10-03T08:40:37Z' - sourceModifiedDate: '2020-06-23T13:47:17' - paymentAllocations: [] - - id: '104957000000152067' - reference: '2' - supplierRef: - id: '104957000000152001' - supplierName: Mr. P N - purchaseOrderRefs: [] - issueDate: '2020-06-23T00:00:00' - dueDate: '2020-06-23T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: [] - withholdingTax: [] - status: Paid - subTotal: 0 - taxAmount: 0 - totalAmount: 12 - amountDue: 0 - modifiedDate: '2022-10-03T08:40:37Z' - sourceModifiedDate: '2020-11-04T13:07:23' - paymentAllocations: [] - pageNumber: 1 - pageSize: 2 - totalResults: 36 - _links: - current: - href: /companies/d0b68840-db50-4bc3-b88c-96e225333fea/data/bills?page=1&pageSize=2 - self: - href: /companies/d0b68840-db50-4bc3-b88c-96e225333fea/data/bills - next: - href: /companies/d0b68840-db50-4bc3-b88c-96e225333fea/data/bills?page=2&pageSize=2 - '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' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - description: | - The *List bills* endpoint returns a list of [bills](https://docs.codat.io/lending-api#/schemas/Bill) for a given company's connection. - - [Bills](https://docs.codat.io/lending-api#/schemas/Bill) are invoices that represent the SMB's financial obligations to their supplier for a purchase of goods or services. - - Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data). - - ### Tips and traps - - To access the `paymentAllocations` property, ensure that the `billPayments` data type is queued and cached in Codat before retrieving `bills` from Codat's cache. - operationId: list-accounting-bills - x-speakeasy-group: accounts-payable.bills - '/companies/{companyId}/data/bills/{billId}': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/accountingBillId' - get: - tags: - - Accounts payable - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/AccountingBill' - examples: - Clear Books: - value: - id: 81539597-e681-40c9-a4dd-ec2fffcde572 - reference: b465a2c9-3212-4620-889b-6328ba148215 - supplierRef: - id: 8GeHBdBZiZ - supplierName: 'DuBuque, Goyette and Franecki' - purchaseOrderRefs: [] - issueDate: '2022-04-29T00:00:00' - dueDate: '2022-05-06T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Grease Trap - unitAmount: 2781.94 - quantity: 5 - discountAmount: 0 - subTotal: 13909.7 - taxAmount: 1390.97 - totalAmount: 15300.67 - discountPercentage: 0 - accountRef: - id: 72df89d2-512b-4455-af51-a6b563733842 - name: Sales - taxRateRef: - id: 6c88aff3-7cb9-4980-a3d3-443e72e02498 - name: Sales Tax (10%) - effectiveTaxRate: 10 - itemRef: - id: 22aee6bd-4767-48c4-8a13-fdf85b91fc80 - name: 600 Litre Grease Trap - trackingCategoryRefs: [] - isDirectCost: false - - description: Grease Trap - unitAmount: 1371.39 - quantity: 5 - discountAmount: 0 - subTotal: 6856.95 - taxAmount: 685.7 - totalAmount: 7542.65 - discountPercentage: 0 - accountRef: - id: 72df89d2-512b-4455-af51-a6b563733842 - name: Sales - taxRateRef: - id: 6c88aff3-7cb9-4980-a3d3-443e72e02498 - name: Sales Tax (10%) - effectiveTaxRate: 10 - itemRef: - id: 9409d23d-1011-432e-98a4-591fcd8d5404 - name: 300 Litre Grease Trap - trackingCategoryRefs: [] - isDirectCost: false - - description: Grease Trap - unitAmount: 1371.39 - quantity: 6 - discountAmount: 0 - subTotal: 8228.34 - taxAmount: 822.83 - totalAmount: 9051.17 - discountPercentage: 0 - accountRef: - id: 72df89d2-512b-4455-af51-a6b563733842 - name: Sales - taxRateRef: - id: 6c88aff3-7cb9-4980-a3d3-443e72e02498 - name: Sales Tax (10%) - effectiveTaxRate: 10 - itemRef: - id: 9409d23d-1011-432e-98a4-591fcd8d5404 - name: 300 Litre Grease Trap - trackingCategoryRefs: [] - isDirectCost: false - - description: Grease Trap - unitAmount: 2781.94 - quantity: 3 - discountAmount: 0 - subTotal: 8345.82 - taxAmount: 834.58 - totalAmount: 9180.4 - discountPercentage: 0 - accountRef: - id: 72df89d2-512b-4455-af51-a6b563733842 - name: Sales - taxRateRef: - id: 6c88aff3-7cb9-4980-a3d3-443e72e02498 - name: Sales Tax (10%) - effectiveTaxRate: 10 - itemRef: - id: 22aee6bd-4767-48c4-8a13-fdf85b91fc80 - name: 600 Litre Grease Trap - trackingCategoryRefs: [] - isDirectCost: false - - description: Underground - Trapped Road Gully 450mm x 450mm - unitAmount: 402.89 - quantity: 8 - discountAmount: 0 - subTotal: 3223.12 - taxAmount: 322.31 - totalAmount: 3545.43 - discountPercentage: 0 - accountRef: - id: 72df89d2-512b-4455-af51-a6b563733842 - name: Sales - taxRateRef: - id: 6c88aff3-7cb9-4980-a3d3-443e72e02498 - name: Sales Tax (10%) - effectiveTaxRate: 10 - itemRef: - id: 3abf0883-03f7-44c6-bc15-1372522d25e1 - name: Heavy Duty Hinged Gully Grating - trackingCategoryRefs: [] - isDirectCost: false - - description: Underground - Drain Bottle Gullies 90 degree Rectangular - unitAmount: 95.08 - quantity: 7 - discountAmount: 0 - subTotal: 665.56 - taxAmount: 66.56 - totalAmount: 732.12 - discountPercentage: 0 - accountRef: - id: 72df89d2-512b-4455-af51-a6b563733842 - name: Sales - taxRateRef: - id: 6c88aff3-7cb9-4980-a3d3-443e72e02498 - name: Sales Tax (10%) - effectiveTaxRate: 10 - itemRef: - id: '6' - name: Back Inlet Roddable Gully 90� Outlet Rectangular Grid - trackingCategoryRefs: [] - isDirectCost: false - - description: Underground - Drain Bottle Gullies 90 degree Rectangular - unitAmount: 95.08 - quantity: 1 - discountAmount: 0 - subTotal: 95.08 - taxAmount: 9.51 - totalAmount: 104.59 - discountPercentage: 0 - accountRef: - id: 72df89d2-512b-4455-af51-a6b563733842 - name: Sales - taxRateRef: - id: 6c88aff3-7cb9-4980-a3d3-443e72e02498 - name: Sales Tax (10%) - effectiveTaxRate: 10 - itemRef: - id: '6' - name: Back Inlet Roddable Gully 90� Outlet Rectangular Grid - trackingCategoryRefs: [] - isDirectCost: false - - description: Grease Trap - unitAmount: 1371.39 - quantity: 2 - discountAmount: 0 - subTotal: 2742.78 - taxAmount: 274.28 - totalAmount: 3017.06 - discountPercentage: 0 - accountRef: - id: 72df89d2-512b-4455-af51-a6b563733842 - name: Sales - taxRateRef: - id: 6c88aff3-7cb9-4980-a3d3-443e72e02498 - name: Sales Tax (10%) - effectiveTaxRate: 10 - itemRef: - id: 9409d23d-1011-432e-98a4-591fcd8d5404 - name: 300 Litre Grease Trap - trackingCategoryRefs: [] - isDirectCost: false - - description: Grease Trap - unitAmount: 2781.94 - quantity: 1 - discountAmount: 0 - subTotal: 2781.94 - taxAmount: 278.19 - totalAmount: 3060.13 - discountPercentage: 0 - accountRef: - id: 72df89d2-512b-4455-af51-a6b563733842 - name: Sales - taxRateRef: - id: 6c88aff3-7cb9-4980-a3d3-443e72e02498 - name: Sales Tax (10%) - effectiveTaxRate: 10 - itemRef: - id: 22aee6bd-4767-48c4-8a13-fdf85b91fc80 - name: 600 Litre Grease Trap - trackingCategoryRefs: [] - isDirectCost: false - - description: Underground - Drain Bottle Gullies 90 degree Rectangular - unitAmount: 95.08 - quantity: 7 - discountAmount: 0 - subTotal: 665.56 - taxAmount: 66.56 - totalAmount: 732.12 - discountPercentage: 0 - accountRef: - id: 72df89d2-512b-4455-af51-a6b563733842 - name: Sales - taxRateRef: - id: 6c88aff3-7cb9-4980-a3d3-443e72e02498 - name: Sales Tax (10%) - effectiveTaxRate: 10 - itemRef: - id: '6' - name: Back Inlet Roddable Gully 90� Outlet Rectangular Grid - trackingCategoryRefs: [] - isDirectCost: false - - description: Grease Trap - unitAmount: 1251.89 - quantity: 4 - discountAmount: 0 - subTotal: 5007.56 - taxAmount: 500.76 - totalAmount: 5508.32 - discountPercentage: 0 - accountRef: - id: 72df89d2-512b-4455-af51-a6b563733842 - name: Sales - taxRateRef: - id: 6c88aff3-7cb9-4980-a3d3-443e72e02498 - name: Sales Tax (10%) - effectiveTaxRate: 10 - itemRef: - id: 51077072-d5c3-463b-9cb4-7da2e11886f9 - name: 150 Litre Grease Trap - trackingCategoryRefs: [] - isDirectCost: false - - description: Grease Trap - unitAmount: 1371.39 - quantity: 9 - discountAmount: 0 - subTotal: 12342.51 - taxAmount: 1234.25 - totalAmount: 13576.76 - discountPercentage: 0 - accountRef: - id: 72df89d2-512b-4455-af51-a6b563733842 - name: Sales - taxRateRef: - id: 6c88aff3-7cb9-4980-a3d3-443e72e02498 - name: Sales Tax (10%) - effectiveTaxRate: 10 - itemRef: - id: 9409d23d-1011-432e-98a4-591fcd8d5404 - name: 300 Litre Grease Trap - trackingCategoryRefs: [] - isDirectCost: false - withholdingTax: [] - status: Paid - subTotal: 64864.92 - taxAmount: 6486.5 - totalAmount: 71351.42 - amountDue: 0 - modifiedDate: '2023-04-26T12:38:16Z' - sourceModifiedDate: '2023-02-14T17:09:02' - note: 'Bill with 12 line items, totaling 71351.42' - paymentAllocations: - - payment: - id: dcb18480-8b69-44d8-aa26-268b6a80d170 - note: Bill Payment against bill 81539597-e681-40c9-a4dd-ec2fffcde572 - accountRef: - id: dbcaf288-2b39-4b95-8ab3-42202ab15918 - name: Business Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-05-06T00:00:00' - totalAmount: 71351.42 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2022-05-06T00:00:00' - totalAmount: -71351.42 - metadata: - isDeleted: false - Dynamics 365 Business Central: - value: - id: 4019ee2b-d05a-ed11-8c34-000d3a0d28a2-108276 - reference: '108276' - supplierRef: - id: c01217b3-89d1-ea11-bbaa-000d3a2b9185 - supplierName: First Up Consultants - purchaseOrderRefs: [] - issueDate: '2019-01-01T00:00:00' - dueDate: '2019-01-01T00:00:00' - currency: GBP - lineItems: - - description: ATHENS Desk - unitAmount: 506.6 - quantity: 4 - discountAmount: 202.64 - subTotal: 1823.76 - taxAmount: 364.75 - totalAmount: 2188.51 - discountPercentage: 10 - accountRef: - id: 6a1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: Inventory - 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: [] - isDirectCost: false - withholdingTax: [] - status: Open - subTotal: 1823.76 - taxAmount: 364.75 - totalAmount: 2188.51 - amountDue: 2188.51 - modifiedDate: '2023-03-27T14:21:25Z' - sourceModifiedDate: '2022-11-02T17:02:48Z' - note: '129148' - paymentAllocations: [] - metadata: - isDeleted: false - Exact (Netherlands): - value: - id: 1c55118b-793e-4437-9c13-4f554b9ca989 - reference: '19600006' - supplierRef: - id: 5e6f49b9-6489-4b82-83e7-291d308919bb - supplierName: Mickey Mouse - purchaseOrderRefs: [] - issueDate: '2019-12-16T00:00:00Z' - dueDate: '2019-11-09T00: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: [] - isDirectCost: false - withholdingTax: [] - status: Paid - subTotal: 10 - taxAmount: 2.1 - totalAmount: 12.1 - amountDue: 0 - modifiedDate: '2022-10-26T13:32:18Z' - sourceModifiedDate: '2020-01-03T15:06:02Z' - paymentAllocations: - - payment: - id: d9a2980b-2a43-46f2-9c7f-413d925b3cdd - reference: '20200032' - accountRef: - id: d79d65bd-1d7d-4f55-95d3-76b3a7b7b823 - name: Bank 1 - currency: EUR - currencyRate: 1 - paidOnDate: '2021-03-22T00:00:00' - totalAmount: 12.1 - allocation: - currency: EUR - currencyRate: 1 - totalAmount: -12.1 - Exact (UK): - value: - id: e7a45898-2db3-424c-acb9-a51647740f26 - reference: '17600002' - supplierRef: - id: a7cad20d-44db-442b-ac1f-90475802d6fb - supplierName: Pencils Pencils Pencils - purchaseOrderRefs: [] - issueDate: '2017-09-26T00:00:00Z' - dueDate: '2017-10-26T00:00:00Z' - currency: GBP - currencyRate: 1 - lineItems: - - description: Stationery - unitAmount: 400 - quantity: 2 - discountAmount: 0 - subTotal: 800 - taxAmount: 160 - totalAmount: 960 - accountRef: - id: e5e9e994-0f14-4614-b162-7b5593b21276 - name: Finished Goods Stock - taxRateRef: - id: 63cd143a-66ab-4320-8a6d-ab6be85ed048 - name: UK purchases standard rate � Excluding - effectiveTaxRate: 20 - itemRef: - id: '001' - trackingCategoryRefs: [] - isDirectCost: false - withholdingTax: [] - status: Paid - subTotal: 800 - taxAmount: 160 - totalAmount: 960 - amountDue: 0 - modifiedDate: '2022-10-26T13:33:20Z' - sourceModifiedDate: '2019-01-11T14:18:17Z' - paymentAllocations: - - payment: - id: 7a5f621b-739f-4ed8-b738-2aae3ef886ac - reference: '17200006' - accountRef: - id: 4a4e34b5-7f62-4b64-a44a-073398b14b41 - name: Bank - currency: GBP - currencyRate: 1 - paidOnDate: '2017-10-11T00:00:00' - totalAmount: 123 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -123 - FreeAgent: - value: - id: '16609552' - reference: MATT - U - supplierRef: - id: '7169654' - supplierName: The Eagle - purchaseOrderRefs: [] - issueDate: '2014-08-21T00:00:00' - dueDate: '2018-09-20T00:00:00' - currency: GBP - lineItems: - - unitAmount: 125 - quantity: 1 - taxAmount: 25 - totalAmount: 150 - accountRef: - id: '285' - name: Accommodation and Meals - trackingCategoryRefs: [] - isDirectCost: false - withholdingTax: [] - status: Open - subTotal: 125 - taxAmount: 25 - totalAmount: 150 - amountDue: 150 - modifiedDate: '2023-04-25T14:19:10Z' - sourceModifiedDate: '2020-11-11T12:48:55Z' - paymentAllocations: [] - metadata: - isDeleted: false - FreshBooks: - value: - id: '27' - supplierRef: - id: '87' - purchaseOrderRefs: [] - issueDate: '2021-04-26T00:00:00' - dueDate: '2021-05-26T00:00:00' - currency: USD - lineItems: - - description: Grocery - unitAmount: 50 - quantity: 1 - subTotal: 50 - taxAmount: 0 - totalAmount: 50 - accountRef: - id: '3384197' - name: Advertising - trackingCategoryRefs: [] - isDirectCost: false - withholdingTax: [] - status: Open - subTotal: 50 - taxAmount: 0 - totalAmount: 50 - amountDue: 50 - modifiedDate: '2023-03-24T16:07:23Z' - sourceModifiedDate: '2021-04-26T19:34:22' - paymentAllocations: [] - metadata: - isDeleted: false - KashFlow: - value: - id: '97615244' - reference: '25' - supplierRef: - id: '9272052' - supplierName: Supplier man - purchaseOrderRefs: [] - issueDate: '2000-01-01T00:00:00' - dueDate: '2000-01-01T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: '' - unitAmount: 8.33 - quantity: 1 - subTotal: 8.33 - taxAmount: 1.67 - totalAmount: 10 - accountRef: - id: '21481884' - name: Computer equipment cost - itemRef: - id: '122990246' - trackingCategoryRefs: [] - isDirectCost: false - withholdingTax: [] - status: Paid - subTotal: 8.33 - taxAmount: 1.67 - totalAmount: 10 - amountDue: 0 - modifiedDate: '2022-09-30T10:29:15Z' - paymentAllocations: [] - Oracle NetSuite: - value: - id: '7' - supplierRef: - id: '724' - supplierName: Vendor A.A.A - purchaseOrderRefs: [] - issueDate: '2021-03-26T00:00:00' - dueDate: '2021-03-26T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - unitAmount: 120 - quantity: 1 - unitOfMeasurement: litre - subTotal: 120 - totalAmount: 120 - accountRef: - id: '716' - name: Inventory In Transit - trackingCategoryRefs: - - id: location-4 - name: Europe - tracking: - categoryRefs: - - id: location-4 - name: Europe - isBilledTo: Unknown - isRebilledTo: Unknown - isDirectCost: false - withholdingTax: [] - status: PartiallyPaid - subTotal: 120 - taxAmount: 24 - totalAmount: 144 - amountDue: 24 - modifiedDate: '2023-01-30T14:47:34Z' - sourceModifiedDate: '2022-07-05T13:38:10' - paymentAllocations: - - payment: - id: '112' - reference: 'Bill Payment #1' - accountRef: - id: '825' - name: Codat Europe Bank - currency: GBP - currencyRate: 1 - paidOnDate: '2021-03-26T00:00:00' - totalAmount: 120 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -120 - QuickBooks Desktop: - value: - id: 3691-1071520776 - reference: '3847498' - supplierRef: - id: B0000-933272656 - supplierName: Patton Hardware Supplies - purchaseOrderRefs: - - id: 3684-1071520443 - purchaseOrderNumber: '6225' - issueDate: '2022-12-02T00:00:00' - dueDate: '2024-01-01T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: "Cabinets:Light Pine - Light pine kitchen cabinet wall unit \n#CLD- 1235-p" - unitAmount: 1500 - quantity: 5 - discountAmount: 0 - subTotal: 7500 - taxAmount: 0 - totalAmount: 7500 - discountPercentage: 0 - accountRef: - id: C0000-933270541 - name: Accounts Payable - itemRef: - id: 110000-933272656 - name: 'Cabinets:Light Pine' - trackingCategoryRefs: - - id: 10000-933272658 - name: New Construction - tracking: - categoryRefs: - - id: 10000-933272658 - name: New Construction - isBilledTo: Unknown - isRebilledTo: Unknown - isDirectCost: false - - description: 'Hardware:Doorknobs Std - Doorknobs Part # DK 3704' - unitAmount: 27 - quantity: 100 - discountAmount: 0 - subTotal: 2700 - taxAmount: 0 - totalAmount: 2700 - discountPercentage: 0 - accountRef: - id: C0000-933270541 - name: Accounts Payable - itemRef: - id: 130000-933272656 - name: 'Hardware:Doorknobs Std' - trackingCategoryRefs: - - id: 10000-933272658 - name: New Construction - tracking: - categoryRefs: - - id: 10000-933272658 - name: New Construction - isBilledTo: Unknown - isRebilledTo: Unknown - isDirectCost: false - - description: 'Hardware:Lk Doorknobs - Locking interior doorknobs Part # DK415' - unitAmount: 34.95 - quantity: 100 - discountAmount: 0 - subTotal: 3495 - taxAmount: 0 - totalAmount: 3495 - discountPercentage: 0 - accountRef: - id: C0000-933270541 - name: Accounts Payable - itemRef: - id: 140000-933272656 - name: 'Hardware:Lk Doorknobs' - trackingCategoryRefs: - - id: 10000-933272658 - name: New Construction - tracking: - categoryRefs: - - id: 10000-933272658 - name: New Construction - isBilledTo: Unknown - isRebilledTo: Unknown - isDirectCost: false - withholdingTax: [] - status: Paid - subTotal: 13695 - taxAmount: 0 - totalAmount: 13695 - amountDue: 0 - modifiedDate: '2023-04-26T09:06:42Z' - sourceModifiedDate: '2023-12-16T05:06:30' - paymentAllocations: - - payment: - id: 36AD-1071520917 - note: RC 93 - reference: '484' - accountRef: - id: 20000-933270541 - name: Checking - currency: GBP - currencyRate: 1 - paidOnDate: '2024-12-05T00:00:00' - totalAmount: 5325 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -5000 - - payment: - id: 9E4C-1182131999 - reference: '115' - accountRef: - id: 20000-933270541 - name: Checking - currency: GBP - currencyRate: 1 - paidOnDate: '2023-01-31T00:00:00' - totalAmount: 13759 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -8695 - metadata: - isDeleted: false - QuickBooks Online: - value: - id: '18' - reference: '12' - supplierRef: - id: '4' - supplierName: BILLy elliot - purchaseOrderRefs: [] - issueDate: '2019-05-13T00:00:00' - dueDate: '2019-05-13T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - unitAmount: 5 - quantity: 1 - discountAmount: 0 - subTotal: 5 - taxAmount: 0 - totalAmount: 5 - accountRef: - id: '16' - name: Advertising - taxRateRef: - id: NON - name: NON - effectiveTaxRate: 0 - trackingCategoryRefs: [] - tracking: - categoryRefs: [] - isBilledTo: Unknown - isRebilledTo: NotApplicable - isDirectCost: false - withholdingTax: [] - status: Paid - subTotal: 5 - taxAmount: 0 - totalAmount: 5 - amountDue: 0 - modifiedDate: '2023-01-18T11:02:41Z' - sourceModifiedDate: '2022-05-26T10:34:10Z' - paymentAllocations: - - payment: - id: '20' - currency: GBP - currencyRate: 1 - paidOnDate: '2019-05-13T00:00:00' - totalAmount: 0 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -5 - QuickBooks Online Sandbox: - value: - id: '157' - supplierRef: - id: '57' - supplierName: Hall's Promo Items - purchaseOrderRefs: [] - issueDate: '2016-01-06T00:00:00' - dueDate: '2016-01-16T00:00:00' - currency: HKD - currencyRate: 0.081142 - lineItems: - - description: Water bottles -- generic - unitAmount: 66.1717023 - quantity: 100 - discountAmount: 0 - subTotal: 6617.17 - taxAmount: 1323.43 - totalAmount: 7940.6 - taxRateRef: - id: 3_Bills - name: 20.0% S Bills - effectiveTaxRate: 20 - itemRef: - id: '19' - name: Water Bottles - trackingCategoryRefs: [] - tracking: - categoryRefs: [] - customerRef: - id: '55' - companyName: Oxon Insurance - Holiday Party - isBilledTo: Unknown - isRebilledTo: NotApplicable - isDirectCost: false - withholdingTax: [] - status: Paid - subTotal: 6617.17 - taxAmount: 1323.43 - totalAmount: 7940.6 - amountDue: 0 - modifiedDate: '2023-04-26T09:35:58Z' - sourceModifiedDate: '2023-01-26T11:20:45Z' - paymentAllocations: - - payment: - id: '158' - reference: '1067' - accountRef: - id: '81' - name: Current - currency: HKD - currencyRate: 0.078807 - paidOnDate: '2016-01-23T00:00:00' - totalAmount: 7940.6 - allocation: - currency: HKD - currencyRate: 1 - totalAmount: -7940.6 - metadata: - isDeleted: false - Sage 200cloud: - value: - id: '45121' - reference: Order no 1 - supplierRef: - id: CON001 - supplierName: Concept Stationery Supplies - purchaseOrderRefs: [] - issueDate: '2020-07-22T00:00:00Z' - dueDate: '2020-02-15T00:00:00Z' - currency: GBP - currencyRate: 1 - lineItems: - - description: Tax Summary - Tax Rate 1 - unitAmount: 0 - quantity: 0 - discountAmount: 0.5 - subTotal: 0 - taxAmount: 20 - totalAmount: 20 - taxRateRef: - id: '1729' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: [] - isDirectCost: false - - description: Goods Summary - unitAmount: 0 - quantity: 0 - discountAmount: 2.5 - subTotal: 100 - taxAmount: 0 - totalAmount: 100 - trackingCategoryRefs: [] - isDirectCost: false - withholdingTax: [] - status: Open - subTotal: 100 - taxAmount: 20 - totalAmount: 120 - amountDue: 120 - modifiedDate: '2022-10-14T09:36:01Z' - sourceModifiedDate: '2020-02-28T14:23:46Z' - note: No1 - paymentAllocations: [] - Sage 50 (UK): - value: - id: '92' - reference: '2569' - supplierRef: - id: THO001 - supplierName: Thompsons Electricals - purchaseOrderRefs: [] - issueDate: '2021-01-01T00:00:00' - dueDate: '2022-01-31T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Goods - unitAmount: 5875 - quantity: 1 - subTotal: 5000 - taxAmount: 875 - totalAmount: 5875 - accountRef: - id: '5000' - name: Materials Purchased - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_7 - name: Workshop - tracking: - categoryRefs: - - id: department_7 - name: Workshop - isBilledTo: Unknown - isRebilledTo: Unknown - isDirectCost: false - withholdingTax: [] - status: Paid - subTotal: 5000 - taxAmount: 875 - totalAmount: 5875 - amountDue: 0 - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - note: Goods - paymentAllocations: - - payment: - id: '260' - note: 'Purchase payment 260 linked to, purchase invoice 11, purchase invoice 18, purchase invoice 92, purchase invoice 93.' - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 7141.98 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -5875 - metadata: - isDeleted: false - Sage Business Cloud Accounting: - value: - id: 15a7a15773b011e8aaa5027d54329956 - reference: 19/06/2018 - 435.60 - supplierRef: - id: ca430e0d156011e8b45c025132dab352 - supplierName: Test Supplier - purchaseOrderRefs: [] - issueDate: '2018-06-19T00:00:00' - dueDate: '2018-07-19T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Consulting services - unitAmount: 11 - quantity: 33 - subTotal: 363 - taxAmount: 72.6 - totalAmount: 435.6 - accountRef: - id: 9a995955267a11e797950a57719b2edb - name: Cost of sales - goods - taxRateRef: - id: GB_STANDARD - name: Standard 20.00% - effectiveTaxRate: 20 - itemRef: - id: a87b922b33de11e797950a57719b2edb - name: Consulting services - trackingCategoryRefs: [] - isDirectCost: false - withholdingTax: [] - status: PartiallyPaid - subTotal: 363 - taxAmount: 72.6 - totalAmount: 435.6 - amountDue: 405.6 - modifiedDate: '2022-10-24T14:56:08Z' - sourceModifiedDate: '2020-02-05T15:19:28Z' - paymentAllocations: - - payment: - id: 332e402b9d4b4614af82594d186f5f29 - note: Supplier payment using credit/debit card - string - accountRef: - id: 92b80ba619d34cafbedd0eb2e69a82f7 - name: ozzbtdynvoblhytjolxaiohrtrhtpvndiqncpjtcjzwcddpvzl - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-05T00:00:00' - totalAmount: 5 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -5 - - payment: - id: 3c3ed62353cf4d148352a14027738dbe - note: Supplier payment using credit/debit card - string - accountRef: - id: 92b80ba619d34cafbedd0eb2e69a82f7 - name: ozzbtdynvoblhytjolxaiohrtrhtpvndiqncpjtcjzwcddpvzl - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-05T00:00:00' - totalAmount: 5 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -5 - - payment: - id: cbff2fed2f1641b7bee59f5dd68d29a1 - note: Supplier payment using credit/debit card - string - accountRef: - id: 92b80ba619d34cafbedd0eb2e69a82f7 - name: ozzbtdynvoblhytjolxaiohrtrhtpvndiqncpjtcjzwcddpvzl - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-05T00:00:00' - totalAmount: 5 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -5 - - payment: - id: d9b643b9d6e149f4b443cbc6f22fe1dd - note: Supplier payment using credit/debit card - string - accountRef: - id: 92b80ba619d34cafbedd0eb2e69a82f7 - name: ozzbtdynvoblhytjolxaiohrtrhtpvndiqncpjtcjzwcddpvzl - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-05T00:00:00' - totalAmount: 5 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -5 - - payment: - id: e3e35dcda09642ca8880fc603b0a98e9 - note: Supplier payment using credit/debit card - string - accountRef: - id: 92b80ba619d34cafbedd0eb2e69a82f7 - name: ozzbtdynvoblhytjolxaiohrtrhtpvndiqncpjtcjzwcddpvzl - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-05T00:00:00' - totalAmount: 5 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -5 - - payment: - id: f11134e299cb4456be096265136a7770 - note: Supplier payment using credit/debit card - string - accountRef: - id: 92b80ba619d34cafbedd0eb2e69a82f7 - name: ozzbtdynvoblhytjolxaiohrtrhtpvndiqncpjtcjzwcddpvzl - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-05T00:00:00' - totalAmount: 5 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -5 - Sage Intacct: - value: - id: '4470' - reference: test - supplierRef: - id: '3' - supplierName: ADP - purchaseOrderRefs: [] - issueDate: '2021-10-19T00:00:00' - dueDate: '2021-10-29T00:00:00' - currency: GBP - lineItems: - - unitAmount: 25 - quantity: 1 - subTotal: 25 - taxAmount: 0 - totalAmount: 25 - accountRef: - id: '3' - name: Accounts Payable - taxRateRef: - id: '82' - name: UK Purchase Goods Zero Rate - effectiveTaxRate: 0 - trackingCategoryRefs: - - id: DEPARTMENT-3 - name: Admin - - id: LOCATION-11 - name: Codat Test Entity - tracking: - categoryRefs: - - id: DEPARTMENT-3 - name: Admin - - id: LOCATION-11 - name: Codat Test Entity - isBilledTo: Unknown - isRebilledTo: Unknown - isDirectCost: false - withholdingTax: [] - status: Paid - subTotal: 25 - taxAmount: 0 - totalAmount: 25 - amountDue: 0 - modifiedDate: '2023-04-04T16:31:37Z' - sourceModifiedDate: '2022-02-23T12:06:58' - note: '' - paymentAllocations: - - payment: - id: '4472' - note: '' - accountRef: - id: '353' - name: Current Account - currency: GBP - paidOnDate: '2022-01-06T00:00:00' - totalAmount: 5 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -5 - - payment: - id: '4471' - note: '' - accountRef: - id: '353' - name: Current Account - currency: GBP - paidOnDate: '2022-01-06T00:00:00' - totalAmount: 20 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -20 - metadata: - isDeleted: false - Xero: - value: - id: 3945273c-cc04-479f-a4b5-1e3dc7a55ed1 - reference: '' - supplierRef: - id: 1262c350-fe0f-40ec-aeff-41c95b4a45af - supplierName: DIISR - Small Business Services - purchaseOrderRefs: [] - issueDate: '2021-11-19T00:00:00' - dueDate: '2021-12-20T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Half day training - Microsoft Office - unitAmount: 1800 - quantity: 1 - discountAmount: 0 - subTotal: 1800 - taxAmount: 360 - totalAmount: 2160 - discountPercentage: 0 - accountRef: - id: 46f9461e-788b-4906-8b74-d1ea17f6dc10 - name: Consulting - taxRateRef: - id: INPUT2 - name: 20% (VAT on Expenses) - effectiveTaxRate: 20 - itemRef: - id: 489558f5-27b7-4f37-ad9f-d84611c2e2ab - name: Half day training - Microsoft Office - trackingCategoryRefs: [] - isDirectCost: false - - description: Desktop/network support via email & phone.Per month fixed fee for minimum 20 hours/month. - unitAmount: 4000 - quantity: 1 - discountAmount: 0 - subTotal: 4000 - taxAmount: 800 - totalAmount: 4800 - discountPercentage: 0 - accountRef: - id: f96c9458-d724-47bf-8f74-a9d5726465ce - name: General Expenses - taxRateRef: - id: INPUT2 - name: 20% (VAT on Expenses) - effectiveTaxRate: 20 - itemRef: - id: f8fb7e00-5e5d-466c-aef0-15861f73d04f - name: Desktop/network support via email & phone - trackingCategoryRefs: [] - isDirectCost: false - - description: Stationery charges - unitAmount: 32 - quantity: 8 - discountAmount: 0 - subTotal: 256 - taxAmount: 51.2 - totalAmount: 307.2 - discountPercentage: 0 - accountRef: - id: cba6527d-f102-4538-b421-e483233e9d5a - name: Printing & Stationery - taxRateRef: - id: INPUT2 - name: 20% (VAT on Expenses) - effectiveTaxRate: 20 - trackingCategoryRefs: [] - isDirectCost: false - withholdingTax: [] - status: Paid - subTotal: 6056 - taxAmount: 1211.2 - totalAmount: 7267.2 - amountDue: 0 - modifiedDate: '2023-03-15T20:36:09Z' - sourceModifiedDate: '2021-01-02T21:07:23' - paymentAllocations: - - payment: - id: 74004690-82a1-4810-aaca-6ce575af94b4 - accountRef: - id: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - name: Business Bank Account - currency: GBP - currencyRate: 1 - paidOnDate: '2021-12-20T00:00:00' - totalAmount: 7267.2 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -7267.2 - metadata: - isDeleted: false - Zoho Books: - value: - id: '104957000000152027' - reference: '1' - supplierRef: - id: '104957000000152001' - supplierName: Mr. P N - purchaseOrderRefs: [] - issueDate: '2020-06-23T00:00:00' - dueDate: '2020-06-23T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: [] - withholdingTax: [] - status: Paid - subTotal: 0 - taxAmount: 0 - totalAmount: 10 - amountDue: 0 - modifiedDate: '2022-10-03T08:40:37Z' - sourceModifiedDate: '2020-06-23T13:47:17' - paymentAllocations: [] - '401': - $ref: '#/components/responses/Unauthorized' - '402': - $ref: '#/components/responses/Payment-Required' - '403': - $ref: '#/components/responses/Forbidden' - '404': - $ref: '#/components/responses/Not-Found' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - summary: Get bill - description: | - The *Get bill* endpoint returns a single bill for a given billId. - - [Bills](https://docs.codat.io/lending-api#/schemas/Bill) are invoices that represent the SMB's financial obligations to their supplier for a purchase of goods or services. - - Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data). - - ### Tips and traps - - To access the `paymentAllocations` property, ensure that the `billPayments` data type is queued and cached in Codat before retrieving `bills` from Codat's cache. - operationId: get-accounting-bill - x-speakeasy-group: accounts-payable.bills - '/companies/{companyId}/connections/{connectionId}/data/bills/{billId}/attachments': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - - $ref: '#/components/parameters/accountingBillId' - get: - tags: - - Accounts payable - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/Attachments' - '401': - $ref: '#/components/responses/Unauthorized' - '402': - $ref: '#/components/responses/Payment-Required' - '403': - $ref: '#/components/responses/Forbidden' - '404': - $ref: '#/components/responses/Not-Found' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - operationId: list-accounting-bill-attachments - x-speakeasy-group: accounts-payable.bills - summary: List bill attachments - description: | - The *List bill attachments* endpoint returns a list of attachments available to download for a given `billId`. - - [Bills](https://docs.codat.io/lending-api#/schemas/Bill) are invoices that represent the SMB's financial obligations to their supplier for a purchase of goods or services. - '/companies/{companyId}/connections/{connectionId}/data/bills/{billId}/attachments/{attachmentId}': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - - $ref: '#/components/parameters/accountingBillId' - get: - tags: - - Accounts payable - parameters: - - $ref: '#/components/parameters/attachmentId' - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/AccountingAttachment' - examples: {} - '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' - summary: Get bill attachment - description: |- - The *Get bill attachment* endpoint returns a specific attachment for a given `billId` and `attachmentId`. - - [Bills](https://docs.codat.io/lending-api#/schemas/Bill) are invoices that represent the SMB's financial obligations to their supplier for a purchase of goods or services. - operationId: get-accounting-bill-attachment - x-speakeasy-group: accounts-payable.bills - '/companies/{companyId}/connections/{connectionId}/data/bills/{billId}/attachments/{attachmentId}/download': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - - $ref: '#/components/parameters/accountingBillId' - get: - tags: - - Accounts payable - parameters: - - $ref: '#/components/parameters/attachmentId' - responses: - '200': - description: Success - content: - application/octet-stream: - schema: - title: Data - type: string - format: binary - '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' - summary: Download bill attachment - description: |- - The *Download bill attachment* endpoint downloads a specific attachment for a given `billId` and `attachmentId`. - - [Bills](https://docs.codat.io/lending-api#/schemas/Bill) are invoices that represent the SMB's financial obligations to their supplier for a purchase of goods or services. - operationId: download-accounting-bill-attachment - x-speakeasy-group: accounts-payable.bills - '/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 - subTotal: -1000 - taxAmount: 0 - totalAmount: 1000 - accountRef: - id: '21481817' - name: Sale of goods - itemRef: - id: '158675173' - trackingCategoryRefs: [] - isDirectIncome: false - paymentAllocations: - - payment: - id: '86873915' - note: Applying Credit Note - currency: GBP - paidOnDate: '2017-05-09T00:00:00' - totalAmount: -400 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: 400 - - payment: - id: '86874181' - note: '' - currency: GBP - paidOnDate: '2017-05-09T00:00:00' - totalAmount: -100 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: 100 - - payment: - id: '86874199' - note: '' - currency: GBP - paidOnDate: '2017-05-09T00:00:00' - totalAmount: -50 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: 50 - - payment: - id: '86875655' - note: Credit Note - currency: GBP - paidOnDate: '2017-05-09T00:00:00' - totalAmount: -750 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: 750 - modifiedDate: '2022-09-30T10:29:16Z' - pageNumber: 1 - pageSize: 2 - totalResults: 17 - _links: - current: - href: /companies/3a707a99-89da-4b16-a5d6-595333a16352/data/creditNotes?page=1&pageSize=2 - self: - href: /companies/3a707a99-89da-4b16-a5d6-595333a16352/data/creditNotes - next: - href: /companies/3a707a99-89da-4b16-a5d6-595333a16352/data/creditNotes?page=2&pageSize=2 - Oracle NetSuite: - value: - results: - - id: '8827' - creditNoteNumber: CM27 - customerRef: - id: '417' - companyName: 10 Breww Ltd - withholdingTax: [] - totalAmount: 26 - totalDiscount: 0 - subTotal: 26 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 0 - discountPercentage: 0 - remainingCredit: 26 - status: Submitted - issueDate: '2021-04-09T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Andy Test Item - unitAmount: 2 - quantity: 3 - subTotal: 6 - totalAmount: 6 - accountRef: - id: '54' - name: Sales - itemRef: - id: '143' - name: Andy Test Item - trackingCategoryRefs: - - id: classification-2 - - id: department-1 - - id: location-1 - isDirectIncome: false - - description: Non-Recurring Services - EC - unitAmount: 4 - quantity: 5 - subTotal: 20 - totalAmount: 20 - accountRef: - id: '54' - name: Sales - itemRef: - id: '28' - name: Non-Recurring Services - EC - trackingCategoryRefs: - - id: classification-2 - - id: department-1 - - id: location-1 - isDirectIncome: false - paymentAllocations: [] - modifiedDate: '2022-09-20T08:15:31Z' - sourceModifiedDate: '2022-02-25T10:58:10' - - id: '8828' - creditNoteNumber: CM28 - customerRef: - id: '417' - companyName: 10 Breww Ltd - withholdingTax: [] - totalAmount: 26 - totalDiscount: 0 - subTotal: 26 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 0 - discountPercentage: 0 - remainingCredit: 10 - status: PartiallyPaid - issueDate: '2021-04-09T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Andy Test Item - unitAmount: 2 - quantity: 3 - subTotal: 6 - totalAmount: 6 - accountRef: - id: '54' - name: Sales - itemRef: - id: '143' - name: Andy Test Item - trackingCategoryRefs: - - id: classification-2 - - id: department-1 - - id: location-1 - isDirectIncome: false - - description: Non-Recurring Services - EC - unitAmount: 4 - quantity: 5 - subTotal: 20 - totalAmount: 20 - accountRef: - id: '54' - name: Sales - itemRef: - id: '28' - name: Non-Recurring Services - EC - trackingCategoryRefs: - - id: classification-2 - - id: department-1 - - id: location-1 - isDirectIncome: false - paymentAllocations: - - payment: - id: '8828' - reference: 'Credit Memo #CM28' - currency: GBP - currencyRate: 1 - paidOnDate: '2021-04-09T00:00:00' - totalAmount: 0 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: 16 - modifiedDate: '2022-09-20T08:15:31Z' - sourceModifiedDate: '2022-02-25T10:58:37' - pageNumber: 1 - pageSize: 2 - totalResults: 36 - _links: - current: - href: /companies/973341cc-ca0a-4a88-88de-e5954157818b/data/creditNotes?page=1&pageSize=2 - self: - href: /companies/973341cc-ca0a-4a88-88de-e5954157818b/data/creditNotes - next: - href: /companies/973341cc-ca0a-4a88-88de-e5954157818b/data/creditNotes?page=2&pageSize=2 - QuickBooks Desktop: - value: - results: - - id: 96C-933372931 - creditNoteNumber: '4002' - customerRef: - id: 150000-933272658 - companyName: 'Abercrombie, Kristy' - withholdingTax: [] - totalAmount: 711.15 - totalDiscount: 0 - subTotal: 660 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 51.15 - discountPercentage: 0 - remainingCredit: 0 - status: Paid - issueDate: '2024-12-01T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: |- - Whirlpool tub - Billed and paid for 2 tubs, should have been for only 1 tub - unitAmount: 660 - quantity: 1 - subTotal: 660 - taxAmount: 0 - totalAmount: 660 - accountRef: - id: 40000-933270541 - name: Accounts Receivable - taxRateRef: - id: 10000-999022286 - name: Taxable Sales - itemRef: - id: 1E0000-933272656 - name: Plumb Fixtrs - trackingCategoryRefs: - - id: 40000-933272658 - name: Remodel - isDirectIncome: false - paymentAllocations: - - payment: - id: 969-933372844 - accountRef: - id: 20000-933270541 - name: Checking - currency: GBP - currencyRate: 1 - paidOnDate: '2024-12-01T00:00:00' - totalAmount: -711.15 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: 711.15 - modifiedDate: '2023-04-26T09:07:38Z' - sourceModifiedDate: '2023-12-16T05:04:05' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 1 - _links: - current: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/data/creditNotes?page=1&pageSize=2 - self: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/data/creditNotes - QuickBooks Online: - value: - results: - - id: '85' - creditNoteNumber: '3122019_6' - customerRef: - id: '3' - companyName: Information Sharing Technology - withholdingTax: [] - totalAmount: 13.53 - totalDiscount: 0 - subTotal: 13.53 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 0 - discountPercentage: 0 - remainingCredit: 0 - status: Paid - issueDate: '2019-12-03T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Refunds with payment type of Cash - unitAmount: 13.53 - quantity: 1 - subTotal: 13.53 - taxAmount: 0 - totalAmount: 13.53 - accountRef: - id: '1' - name: Sales - taxRateRef: - id: 8_Invoices - name: Exempt Invoices - effectiveTaxRate: 0 - itemRef: - id: '1' - name: Sales - trackingCategoryRefs: [] - isDirectIncome: true - paymentAllocations: - - payment: - id: '85' - note: '' - accountRef: - id: '63' - name: Business Bank Account - currency: GBP - currencyRate: 1 - paidOnDate: '2019-12-03T00:00:00' - totalAmount: -13.53 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2019-12-03T00:00:00' - totalAmount: 13.53 - modifiedDate: '2023-01-18T11:02:55Z' - sourceModifiedDate: '2019-12-10T19:00:36Z' - - id: '86' - creditNoteNumber: '3122019_66' - customerRef: - id: '3' - companyName: Information Sharing Technology - withholdingTax: [] - totalAmount: 1 - totalDiscount: 0 - subTotal: 1 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 0 - discountPercentage: 0 - remainingCredit: 0 - status: Paid - issueDate: '2019-12-03T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Refunds with payment type of Card - unitAmount: 1 - quantity: 1 - subTotal: 1 - taxAmount: 0 - totalAmount: 1 - accountRef: - id: '1' - name: Sales - taxRateRef: - id: 8_Invoices - name: Exempt Invoices - effectiveTaxRate: 0 - itemRef: - id: '1' - name: Sales - trackingCategoryRefs: [] - isDirectIncome: true - paymentAllocations: - - payment: - id: '86' - note: '' - accountRef: - id: '63' - name: Business Bank Account - currency: GBP - currencyRate: 1 - paidOnDate: '2019-12-03T00:00:00' - totalAmount: -1 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2019-12-03T00:00:00' - totalAmount: 1 - modifiedDate: '2023-01-18T11:02:55Z' - sourceModifiedDate: '2019-12-10T19:00:37Z' - pageNumber: 1 - pageSize: 2 - totalResults: 1253 - _links: - current: - href: /companies/10818b5e-6e6a-4ed4-a1c5-3e3efe626e87/data/creditNotes?page=1&pageSize=2 - self: - href: /companies/10818b5e-6e6a-4ed4-a1c5-3e3efe626e87/data/creditNotes - next: - href: /companies/10818b5e-6e6a-4ed4-a1c5-3e3efe626e87/data/creditNotes?page=2&pageSize=2 - QuickBooks Online Sandbox: - value: - results: - - id: '185' - creditNoteNumber: '1015' - customerRef: - id: '16' - companyName: Jordan Burgess - withholdingTax: [] - totalAmount: 1800 - totalDiscount: 0 - subTotal: 1500 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 300 - discountPercentage: 0 - remainingCredit: 0 - status: Paid - issueDate: '2017-02-15T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Employee training off site - unitAmount: 1500 - quantity: 1 - subTotal: 1500 - taxAmount: 300 - totalAmount: 1800 - accountRef: - id: '44' - name: Sales - taxRateRef: - id: 3_Invoices - name: 20.0% S Invoices - effectiveTaxRate: 20 - itemRef: - id: '5' - name: Employee Training - trackingCategoryRefs: - - id: DEPARTMENT_1 - name: London - isDirectIncome: false - paymentAllocations: - - payment: - id: '192' - note: Created by QB Online to link credits to charges. - currency: GBP - currencyRate: 1 - paidOnDate: '2017-09-08T00:00:00' - totalAmount: 0 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: 1800 - modifiedDate: '2023-04-26T09:36:03Z' - sourceModifiedDate: '2017-09-08T12:52:27Z' - metadata: - isDeleted: false - - id: '213' - creditNoteNumber: '1030' - customerRef: - id: '5' - companyName: Whitehead and Sons - withholdingTax: [] - totalAmount: 600 - totalDiscount: 0 - subTotal: 500 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 100 - discountPercentage: 0 - remainingCredit: 0 - status: Paid - issueDate: '2018-12-18T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Employee celebration -- Anniversary / Retirement - unitAmount: 500 - quantity: 1 - subTotal: 500 - taxAmount: 100 - totalAmount: 600 - accountRef: - id: '44' - name: Sales - taxRateRef: - id: 3_Invoices - name: 20.0% S Invoices - effectiveTaxRate: 20 - itemRef: - id: '4' - name: Employee Celebration - trackingCategoryRefs: - - id: DEPARTMENT_3 - name: Birmingham - isDirectIncome: false - paymentAllocations: - - payment: - id: '215' - note: Created by QB Online to link credits to charges. - currency: GBP - currencyRate: 1 - paidOnDate: '2018-12-18T00:00:00' - totalAmount: 0 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: 600 - modifiedDate: '2023-04-26T09:36:03Z' - sourceModifiedDate: '2018-12-18T10:08:45Z' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 141 - _links: - current: - href: /companies/5a7f3597-36e1-4216-86fe-289ad36088a6/data/creditNotes?page=1&pageSize=2 - self: - href: /companies/5a7f3597-36e1-4216-86fe-289ad36088a6/data/creditNotes - next: - href: /companies/5a7f3597-36e1-4216-86fe-289ad36088a6/data/creditNotes?page=2&pageSize=2 - Sage 200cloud: - value: - results: - - id: '45891' - creditNoteNumber: return 1a - customerRef: - id: A1D001 - companyName: A1 Design Services - withholdingTax: [] - totalAmount: 378 - totalDiscount: 9.46 - subTotal: 315 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 63 - discountPercentage: 2.5 - remainingCredit: 378 - status: Submitted - issueDate: '2020-07-22T00:00:00Z' - currency: GBP - currencyRate: 1 - lineItems: - - description: Tax Summary - Standard rate - unitAmount: 0 - quantity: 0 - discountAmount: 1.58 - subTotal: 0 - taxAmount: 63 - totalAmount: 63 - taxRateRef: - id: '1' - trackingCategoryRefs: [] - isDirectIncome: false - - description: Goods Summary - unitAmount: 0 - quantity: 0 - discountAmount: 9.46 - subTotal: 315 - taxAmount: 0 - totalAmount: 315 - trackingCategoryRefs: [] - isDirectIncome: false - paymentAllocations: [] - modifiedDate: '2022-10-14T09:35:55Z' - sourceModifiedDate: '2020-02-28T14:23:46Z' - note: black - - id: '45901' - creditNoteNumber: return 003 - customerRef: - id: ABS001 - companyName: ABS Garages Ltd - withholdingTax: [] - totalAmount: 177.14 - totalDiscount: 4.42 - subTotal: 147.62 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 29.52 - discountPercentage: 2.5 - remainingCredit: 177.14 - status: Submitted - issueDate: '2020-07-22T00:00:00Z' - currency: GBP - currencyRate: 1 - lineItems: - - description: Tax Summary - Standard rate - unitAmount: 0 - quantity: 0 - discountAmount: 0.73 - subTotal: 0 - taxAmount: 29.52 - totalAmount: 29.52 - taxRateRef: - id: '1' - trackingCategoryRefs: [] - isDirectIncome: false - - description: Goods Summary - unitAmount: 0 - quantity: 0 - discountAmount: 4.42 - subTotal: 147.62 - taxAmount: 0 - totalAmount: 147.62 - trackingCategoryRefs: [] - isDirectIncome: false - paymentAllocations: [] - modifiedDate: '2022-10-14T09:35:55Z' - sourceModifiedDate: '2020-02-28T14:23:46Z' - note: cred 003 - pageNumber: 1 - pageSize: 2 - totalResults: 26 - _links: - current: - href: /companies/93c21e2d-049c-4d24-b41b-57e61c30b69e/data/creditNotes?page=1&pageSize=2 - self: - href: /companies/93c21e2d-049c-4d24-b41b-57e61c30b69e/data/creditNotes - next: - href: /companies/93c21e2d-049c-4d24-b41b-57e61c30b69e/data/creditNotes?page=2&pageSize=2 - Sage 50 (UK): - value: - results: - - id: INV-17 - creditNoteNumber: '17' - customerRef: - id: KIN001 - companyName: Kinghorn & French - withholdingTax: [] - totalAmount: 832.84 - totalDiscount: 0 - subTotal: 711.45 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 121.39 - discountPercentage: 0 - remainingCredit: 0 - status: Paid - issueDate: '2021-02-02T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: PC Combo Pack 4 - unitAmount: 832.84 - quantity: 1 - subTotal: 711.45 - taxAmount: 121.39 - totalAmount: 832.84 - accountRef: - id: '4000' - name: Sales North - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_1 - name: Sales - isDirectIncome: false - paymentAllocations: - - payment: - id: '336' - note: Sales credit inv-17 linked to sales invoice inv-45. - accountRef: - id: '' - currency: GBP - currencyRate: 1 - paidOnDate: '2022-02-02T00:00:00' - totalAmount: 0 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: 63.69 - - payment: - id: '336' - note: Sales credit inv-17 linked to sales invoice inv-45. - accountRef: - id: '' - currency: GBP - currencyRate: 1 - paidOnDate: '2022-02-02T00:00:00' - totalAmount: 0 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: 73.49 - - payment: - id: '336' - note: Sales credit inv-17 linked to sales invoice inv-45. - accountRef: - id: '' - currency: GBP - currencyRate: 1 - paidOnDate: '2022-02-02T00:00:00' - totalAmount: 0 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: 157.25 - - payment: - id: '336' - note: Sales credit inv-17 linked to sales invoice inv-45. - accountRef: - id: '' - currency: GBP - currencyRate: 1 - paidOnDate: '2022-02-02T00:00:00' - totalAmount: 0 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: 158.25 - - payment: - id: '336' - note: Sales credit inv-17 linked to sales invoice inv-45. - accountRef: - id: '' - currency: GBP - currencyRate: 1 - paidOnDate: '2022-02-02T00:00:00' - totalAmount: 0 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: 344.89 - - payment: - id: '336' - note: Sales credit inv-17 linked to sales invoice inv-45. - accountRef: - id: '' - currency: GBP - currencyRate: 1 - paidOnDate: '2022-02-02T00:00:00' - totalAmount: 0 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: 35.27 - modifiedDate: '2023-03-30T14:42:43Z' - sourceModifiedDate: '2022-11-25T09:43:54' - note: PC Combo Pack 4 - metadata: - isDeleted: false - - id: INV-34 - creditNoteNumber: '34' - customerRef: - id: MIL001 - companyName: Mile Road Health Centre - withholdingTax: [] - totalAmount: 1668.14 - totalDiscount: 0 - subTotal: 1425 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 243.14 - discountPercentage: 0 - remainingCredit: 0 - status: Paid - issueDate: '2021-02-28T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: PC Combo Pack 6 - unitAmount: 1668.14 - quantity: 1 - subTotal: 1425 - taxAmount: 243.14 - totalAmount: 1668.14 - accountRef: - id: '4000' - name: Sales North - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_1 - name: Sales - isDirectIncome: false - paymentAllocations: - - payment: - id: '530' - note: Sales credit inv-34 linked to sales invoice inv-26. - accountRef: - id: '' - currency: GBP - currencyRate: 1 - paidOnDate: '2022-02-28T00:00:00' - totalAmount: 0 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: 1668.14 - modifiedDate: '2023-03-30T14:42:43Z' - sourceModifiedDate: '2022-11-25T09:43:54' - note: PC Combo Pack 6 - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 7 - _links: - current: - href: /companies/cf5f2a47-2990-4221-bae6-0c19c86ac304/data/creditNotes?page=1&pageSize=2 - self: - href: /companies/cf5f2a47-2990-4221-bae6-0c19c86ac304/data/creditNotes - next: - href: /companies/cf5f2a47-2990-4221-bae6-0c19c86ac304/data/creditNotes?page=2&pageSize=2 - Sage Business Cloud Accounting: - value: - results: - - id: c1a0176c33de11e797950a57719b2edb - creditNoteNumber: SCN-1 - customerRef: - id: f4ff85ba33dd11e797950a57719b2edb - companyName: Widgets Limited - withholdingTax: [] - totalAmount: 1080 - totalDiscount: 0 - subTotal: 900 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 180 - discountPercentage: 0 - remainingCredit: 0 - status: Paid - issueDate: '2017-05-08T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Consulting services - unitAmount: 900 - quantity: 1 - discountAmount: 0 - subTotal: 900 - taxAmount: 180 - totalAmount: 1080 - accountRef: - id: 9a994b92267a11e797950a57719b2edb - name: Sales Type A - discountPercentage: 0 - taxRateRef: - id: GB_STANDARD - name: Standard 20.00% - effectiveTaxRate: 20 - itemRef: - id: a87b922b33de11e797950a57719b2edb - name: Consulting services - trackingCategoryRefs: [] - isDirectIncome: false - paymentAllocations: - - payment: - id: d39f7a5733de11e797950a57719b2edb - note: Customer refund using credit/debit card - accountRef: - id: 9a25937b267a11e797950a57719b2edb - name: Current - currency: GBP - currencyRate: 1 - paidOnDate: '2017-05-08T00:00:00' - totalAmount: -1080 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: 1080 - modifiedDate: '2022-10-24T14:55:35Z' - sourceModifiedDate: '2017-05-08T11:09:38Z' - note: '' - - id: 28a459069a6211e8bad90617b3da4b8a - creditNoteNumber: SCN-3 - customerRef: - id: f4ff85ba33dd11e797950a57719b2edb - companyName: Widgets Limited - withholdingTax: [] - totalAmount: 5400 - totalDiscount: 0 - subTotal: 4500 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 900 - discountPercentage: 0 - remainingCredit: 0 - status: Paid - issueDate: '2018-08-07T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Consulting services - unitAmount: 900 - quantity: 5 - discountAmount: 0 - subTotal: 4500 - taxAmount: 900 - totalAmount: 5400 - accountRef: - id: 9a994b92267a11e797950a57719b2edb - name: Sales Type A - discountPercentage: 0 - taxRateRef: - id: GB_STANDARD - name: Standard 20.00% - effectiveTaxRate: 20 - itemRef: - id: a87b922b33de11e797950a57719b2edb - name: Consulting services - trackingCategoryRefs: [] - isDirectIncome: false - paymentAllocations: - - payment: - id: 28a459069a6211e8bad90617b3da4b8a - note: Sales credit note - currency: GBP - currencyRate: 1 - paidOnDate: '2018-08-07T00:00:00' - totalAmount: 0 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: 5400 - modifiedDate: '2022-10-24T14:55:35Z' - sourceModifiedDate: '2018-08-07T16:51:41Z' - note: '' - pageNumber: 1 - pageSize: 2 - totalResults: 2972 - _links: - current: - href: /companies/390083e2-351b-407c-a3be-55081c36c182/data/creditNotes?page=1&pageSize=2 - self: - href: /companies/390083e2-351b-407c-a3be-55081c36c182/data/creditNotes - next: - href: /companies/390083e2-351b-407c-a3be-55081c36c182/data/creditNotes?page=2&pageSize=2 - Sage Intacct: - value: - results: - - id: '5018' - creditNoteNumber: IN0545 - customerRef: - id: '53' - companyName: Pacificorp - withholdingTax: [] - totalAmount: 575 - totalDiscount: 0 - subTotal: 500 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 75 - discountPercentage: 0 - remainingCredit: 0 - status: Paid - issueDate: '2022-03-16T00:00:00' - allocatedOnDate: '2022-03-16T00:00:00' - currency: ZAR - lineItems: - - description: No Description Provided - unitAmount: 500 - quantity: 1 - subTotal: 500 - taxAmount: 75 - totalAmount: 575 - accountRef: - id: '2' - name: Accounts Receivable - taxRateRef: - id: '27' - name: Standard Rate Output - effectiveTaxRate: 15 - trackingCategoryRefs: - - id: LOCATION-10 - name: South Africa - - id: DEPARTMENT-2 - name: Services - - id: CUSTOMER-53 - name: Pacificorp - isDirectIncome: false - paymentAllocations: [] - modifiedDate: '2023-02-23T14:21:40Z' - sourceModifiedDate: '2022-03-16T12:27:43Z' - note: '' - metadata: - isDeleted: false - - id: '5020' - creditNoteNumber: ARADJ0034 - customerRef: - id: '53' - companyName: Pacificorp - withholdingTax: [] - totalAmount: 115 - totalDiscount: 0 - subTotal: 100 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 15 - discountPercentage: 0 - remainingCredit: 115 - status: Submitted - issueDate: '2022-03-16T00:00:00' - currency: ZAR - currencyRate: 1 - lineItems: - - description: No Description Provided - unitAmount: 100 - quantity: 1 - subTotal: 100 - taxAmount: 15 - totalAmount: 115 - accountRef: - id: '2' - name: Accounts Receivable - taxRateRef: - id: '28' - name: Standard Rate (Capital Goods) Output - effectiveTaxRate: 15 - trackingCategoryRefs: - - id: LOCATION-10 - name: South Africa - - id: CUSTOMER-53 - name: Pacificorp - isDirectIncome: false - paymentAllocations: [] - modifiedDate: '2023-02-23T14:21:40Z' - sourceModifiedDate: '2022-03-16T12:30:19' - note: '' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 2 - _links: - current: - href: /companies/b53cfc9f-1a00-4a20-936f-34e8efbe07c5/data/creditNotes?page=1&pageSize=2 - self: - href: /companies/b53cfc9f-1a00-4a20-936f-34e8efbe07c5/data/creditNotes - Xero: - value: - results: - - id: 47fb825b-3c43-4284-905f-c6d97acc6b37 - creditNoteNumber: CN-0025 - customerRef: - id: af0091a9-82ef-4cac-9fd6-22c095ac6a58 - companyName: Hamilton Smith Ltd - withholdingTax: [] - totalAmount: 541.25 - totalDiscount: 0 - subTotal: 451.04 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 90.21 - discountPercentage: 0 - remainingCredit: 0 - status: Paid - issueDate: '2022-11-20T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: FULL CREDIT of INV-0016 due to duplication of invoice INV-0012. Please accept our apologies. - unitAmount: 0 - quantity: 0 - discountAmount: 0 - subTotal: 0 - taxAmount: 0 - totalAmount: 0 - discountPercentage: 0 - trackingCategoryRefs: [] - isDirectIncome: false - - description: Desktop/network support via email & phone.Per month fixed fee for minimum 20 hours/month. - unitAmount: 451.04 - quantity: 1 - discountAmount: 0 - subTotal: 451.04 - taxAmount: 90.21 - totalAmount: 541.25 - accountRef: - id: c563b607-fb0e-4d06-9ddb-76fdeef20ae3 - name: Sales - discountPercentage: 0 - taxRateRef: - id: OUTPUT2 - name: 20% (VAT on Income) - effectiveTaxRate: 20 - itemRef: - id: f8fb7e00-5e5d-466c-aef0-15861f73d04f - name: Desktop/network support via email & phone - trackingCategoryRefs: - - id: 34b9b859-07a9-451a-b4d3-effc9946634a - name: North - isDirectIncome: false - paymentAllocations: - - payment: - id: 47fb825b-3c43-4284-905f-c6d97acc6b37 - reference: Monthly Support - currency: GBP - currencyRate: 1 - paidOnDate: '2022-11-20T00:00:00' - totalAmount: 0 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2022-11-20T00:00:00' - totalAmount: 541.25 - modifiedDate: '2023-03-15T20:35:09Z' - sourceModifiedDate: '2011-04-07T00:34:38' - metadata: - isDeleted: false - - id: caba470e-962f-4168-9c57-35caa289204d - creditNoteNumber: CN-0026 - customerRef: - id: 9ce626d2-14ea-463c-9fff-6785ab5f9bfb - companyName: Boom FM - withholdingTax: [] - totalAmount: 500 - totalDiscount: 0 - subTotal: 416.67 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 83.33 - discountPercentage: 0 - remainingCredit: 0 - status: Paid - issueDate: '2023-01-13T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: "CREDIT Half day training - Microsoft Office and include in suite of training\r\nINV-0024" - unitAmount: 416.67 - quantity: 1 - discountAmount: 0 - subTotal: 416.67 - taxAmount: 83.33 - totalAmount: 500 - accountRef: - id: c563b607-fb0e-4d06-9ddb-76fdeef20ae3 - name: Sales - discountPercentage: 0 - taxRateRef: - id: OUTPUT2 - name: 20% (VAT on Income) - effectiveTaxRate: 20 - itemRef: - id: 489558f5-27b7-4f37-ad9f-d84611c2e2ab - name: Half day training - Microsoft Office - trackingCategoryRefs: - - id: b3900cc6-3745-40ea-955f-9ef7b1c8cf7e - name: South - isDirectIncome: false - paymentAllocations: - - payment: - id: caba470e-962f-4168-9c57-35caa289204d - reference: Training - currency: GBP - currencyRate: 1 - paidOnDate: '2023-01-13T00:00:00' - totalAmount: 0 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2023-01-13T00:00:00' - totalAmount: 500 - modifiedDate: '2023-03-15T20:35:09Z' - sourceModifiedDate: '2011-04-07T02:47:04' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 3 - _links: - current: - href: /companies/5ced9667-a310-443a-a711-958d36377141/data/creditNotes?page=1&pageSize=2 - self: - href: /companies/5ced9667-a310-443a-a711-958d36377141/data/creditNotes - next: - href: /companies/5ced9667-a310-443a-a711-958d36377141/data/creditNotes?page=2&pageSize=2 - Zoho Books: - value: - results: - - id: '104957000000129002' - creditNoteNumber: CN-00001 - customerRef: - id: '104957000000037097' - companyName: Test Company - withholdingTax: [] - totalAmount: 9001 - totalDiscount: 0 - subTotal: 0 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 0 - discountPercentage: 0 - remainingCredit: 9001 - status: Draft - issueDate: '2020-04-28T18:16:22' - currency: GBP - lineItems: [] - paymentAllocations: [] - modifiedDate: '2022-10-03T08:40:43Z' - sourceModifiedDate: '2020-04-28T18:16:22' - - id: '104957000000134023' - creditNoteNumber: CN-00002 - customerRef: - id: '104957000000054050' - companyName: 'Doe, John' - withholdingTax: [] - totalAmount: 125 - totalDiscount: 0 - subTotal: 0 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 0 - discountPercentage: 0 - remainingCredit: 0 - status: Paid - issueDate: '2020-05-06T13:04:20' - currency: GBP - lineItems: [] - paymentAllocations: - - payment: - id: '104957000000134039' - currency: GBP - paidOnDate: '2020-05-06T00:00:00' - totalAmount: 0 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: 125 - modifiedDate: '2022-10-03T08:40:43Z' - sourceModifiedDate: '2020-05-06T13:05:27' - pageNumber: 1 - pageSize: 2 - totalResults: 12 - _links: - current: - href: /companies/d0b68840-db50-4bc3-b88c-96e225333fea/data/creditNotes?page=1&pageSize=2 - self: - href: /companies/d0b68840-db50-4bc3-b88c-96e225333fea/data/creditNotes - next: - href: /companies/d0b68840-db50-4bc3-b88c-96e225333fea/data/creditNotes?page=2&pageSize=2 - '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' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - description: "The *List credit notes* endpoint returns a list of [credit notes](https://docs.codat.io/lending-api#/schemas/CreditNote) for a given company's connection.\n\n[Credit notes](https://docs.codat.io/lending-api#/schemas/CreditNote) are issued to a customer to indicate debt, typically with reference to a previously issued invoice and/or purchase.\n\nBefore using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data).\n " - operationId: list-accounting-credit-notes - x-speakeasy-group: accounts-receivable.credit-notes - '/companies/{companyId}/data/creditNotes/{creditNoteId}': - parameters: - - $ref: '#/components/parameters/companyId' - - name: creditNoteId - in: path - required: true - schema: - type: string - description: Unique identifier for a credit note. - get: - tags: - - Accounts receivable - summary: Get credit note - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/AccountingCreditNote' - examples: - Dynamics 365 Business Central: - value: - 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 - FreeAgent: - value: - 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 - FreshBooks: - value: - 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 - KashFlow: - value: - 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' - Oracle NetSuite: - value: - id: '8827' - creditNoteNumber: CM27 - customerRef: - id: '417' - companyName: 10 Breww Ltd - withholdingTax: [] - totalAmount: 26 - totalDiscount: 0 - subTotal: 26 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 0 - discountPercentage: 0 - remainingCredit: 26 - status: Submitted - issueDate: '2021-04-09T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Andy Test Item - unitAmount: 2 - quantity: 3 - subTotal: 6 - totalAmount: 6 - accountRef: - id: '54' - name: Sales - itemRef: - id: '143' - name: Andy Test Item - trackingCategoryRefs: - - id: classification-2 - - id: department-1 - - id: location-1 - isDirectIncome: false - - description: Non-Recurring Services - EC - unitAmount: 4 - quantity: 5 - subTotal: 20 - totalAmount: 20 - accountRef: - id: '54' - name: Sales - itemRef: - id: '28' - name: Non-Recurring Services - EC - trackingCategoryRefs: - - id: classification-2 - - id: department-1 - - id: location-1 - isDirectIncome: false - paymentAllocations: [] - modifiedDate: '2022-09-20T08:15:31Z' - sourceModifiedDate: '2022-02-25T10:58:10' - QuickBooks Desktop: - value: - id: 96C-933372931 - creditNoteNumber: '4002' - customerRef: - id: 150000-933272658 - companyName: 'Abercrombie, Kristy' - withholdingTax: [] - totalAmount: 711.15 - totalDiscount: 0 - subTotal: 660 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 51.15 - discountPercentage: 0 - remainingCredit: 0 - status: Paid - issueDate: '2024-12-01T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: |- - Whirlpool tub - Billed and paid for 2 tubs, should have been for only 1 tub - unitAmount: 660 - quantity: 1 - subTotal: 660 - taxAmount: 0 - totalAmount: 660 - accountRef: - id: 40000-933270541 - name: Accounts Receivable - taxRateRef: - id: 10000-999022286 - name: Taxable Sales - itemRef: - id: 1E0000-933272656 - name: Plumb Fixtrs - trackingCategoryRefs: - - id: 40000-933272658 - name: Remodel - isDirectIncome: false - paymentAllocations: - - payment: - id: 969-933372844 - accountRef: - id: 20000-933270541 - name: Checking - currency: GBP - currencyRate: 1 - paidOnDate: '2024-12-01T00:00:00' - totalAmount: -711.15 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: 711.15 - modifiedDate: '2023-04-26T09:07:38Z' - sourceModifiedDate: '2023-12-16T05:04:05' - metadata: - isDeleted: false - QuickBooks Online: - value: - id: '85' - creditNoteNumber: '3122019_6' - customerRef: - id: '3' - companyName: Information Sharing Technology - withholdingTax: [] - totalAmount: 13.53 - totalDiscount: 0 - subTotal: 13.53 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 0 - discountPercentage: 0 - remainingCredit: 0 - status: Paid - issueDate: '2019-12-03T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Refunds with payment type of Cash - unitAmount: 13.53 - quantity: 1 - subTotal: 13.53 - taxAmount: 0 - totalAmount: 13.53 - accountRef: - id: '1' - name: Sales - taxRateRef: - id: 8_Invoices - name: Exempt Invoices - effectiveTaxRate: 0 - itemRef: - id: '1' - name: Sales - trackingCategoryRefs: [] - isDirectIncome: true - paymentAllocations: - - payment: - id: '85' - note: '' - accountRef: - id: '63' - name: Business Bank Account - currency: GBP - currencyRate: 1 - paidOnDate: '2019-12-03T00:00:00' - totalAmount: -13.53 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2019-12-03T00:00:00' - totalAmount: 13.53 - modifiedDate: '2023-01-18T11:02:55Z' - sourceModifiedDate: '2019-12-10T19:00:36Z' - QuickBooks Online Sandbox: - value: - id: '185' - creditNoteNumber: '1015' - customerRef: - id: '16' - companyName: Jordan Burgess - withholdingTax: [] - totalAmount: 1800 - totalDiscount: 0 - subTotal: 1500 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 300 - discountPercentage: 0 - remainingCredit: 0 - status: Paid - issueDate: '2017-02-15T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Employee training off site - unitAmount: 1500 - quantity: 1 - subTotal: 1500 - taxAmount: 300 - totalAmount: 1800 - accountRef: - id: '44' - name: Sales - taxRateRef: - id: 3_Invoices - name: 20.0% S Invoices - effectiveTaxRate: 20 - itemRef: - id: '5' - name: Employee Training - trackingCategoryRefs: - - id: DEPARTMENT_1 - name: London - isDirectIncome: false - paymentAllocations: - - payment: - id: '192' - note: Created by QB Online to link credits to charges. - currency: GBP - currencyRate: 1 - paidOnDate: '2017-09-08T00:00:00' - totalAmount: 0 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: 1800 - modifiedDate: '2023-04-26T09:36:03Z' - sourceModifiedDate: '2017-09-08T12:52:27Z' - metadata: - isDeleted: false - Sage 200cloud: - value: - id: '45891' - creditNoteNumber: return 1a - customerRef: - id: A1D001 - companyName: A1 Design Services - withholdingTax: [] - totalAmount: 378 - totalDiscount: 9.46 - subTotal: 315 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 63 - discountPercentage: 2.5 - remainingCredit: 378 - status: Submitted - issueDate: '2020-07-22T00:00:00Z' - currency: GBP - currencyRate: 1 - lineItems: - - description: Tax Summary - Standard rate - unitAmount: 0 - quantity: 0 - discountAmount: 1.58 - subTotal: 0 - taxAmount: 63 - totalAmount: 63 - taxRateRef: - id: '1' - trackingCategoryRefs: [] - isDirectIncome: false - - description: Goods Summary - unitAmount: 0 - quantity: 0 - discountAmount: 9.46 - subTotal: 315 - taxAmount: 0 - totalAmount: 315 - trackingCategoryRefs: [] - isDirectIncome: false - paymentAllocations: [] - modifiedDate: '2022-10-14T09:35:55Z' - sourceModifiedDate: '2020-02-28T14:23:46Z' - note: black - Sage 50 (UK): - value: - id: INV-17 - creditNoteNumber: '17' - customerRef: - id: KIN001 - companyName: Kinghorn & French - withholdingTax: [] - totalAmount: 832.84 - totalDiscount: 0 - subTotal: 711.45 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 121.39 - discountPercentage: 0 - remainingCredit: 0 - status: Paid - issueDate: '2021-02-02T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: PC Combo Pack 4 - unitAmount: 832.84 - quantity: 1 - subTotal: 711.45 - taxAmount: 121.39 - totalAmount: 832.84 - accountRef: - id: '4000' - name: Sales North - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_1 - name: Sales - isDirectIncome: false - paymentAllocations: - - payment: - id: '336' - note: Sales credit inv-17 linked to sales invoice inv-45. - accountRef: - id: '' - currency: GBP - currencyRate: 1 - paidOnDate: '2022-02-02T00:00:00' - totalAmount: 0 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: 35.27 - - payment: - id: '336' - note: Sales credit inv-17 linked to sales invoice inv-45. - accountRef: - id: '' - currency: GBP - currencyRate: 1 - paidOnDate: '2022-02-02T00:00:00' - totalAmount: 0 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: 344.89 - - payment: - id: '336' - note: Sales credit inv-17 linked to sales invoice inv-45. - accountRef: - id: '' - currency: GBP - currencyRate: 1 - paidOnDate: '2022-02-02T00:00:00' - totalAmount: 0 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: 158.25 - - payment: - id: '336' - note: Sales credit inv-17 linked to sales invoice inv-45. - accountRef: - id: '' - currency: GBP - currencyRate: 1 - paidOnDate: '2022-02-02T00:00:00' - totalAmount: 0 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: 157.25 - - payment: - id: '336' - note: Sales credit inv-17 linked to sales invoice inv-45. - accountRef: - id: '' - currency: GBP - currencyRate: 1 - paidOnDate: '2022-02-02T00:00:00' - totalAmount: 0 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: 73.49 - - payment: - id: '336' - note: Sales credit inv-17 linked to sales invoice inv-45. - accountRef: - id: '' - currency: GBP - currencyRate: 1 - paidOnDate: '2022-02-02T00:00:00' - totalAmount: 0 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: 63.69 - modifiedDate: '2023-03-30T14:42:43Z' - sourceModifiedDate: '2022-11-25T09:43:54' - note: PC Combo Pack 4 - metadata: - isDeleted: false - Sage Business Cloud Accounting: - value: - id: c1a0176c33de11e797950a57719b2edb - creditNoteNumber: SCN-1 - customerRef: - id: f4ff85ba33dd11e797950a57719b2edb - companyName: Widgets Limited - withholdingTax: [] - totalAmount: 1080 - totalDiscount: 0 - subTotal: 900 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 180 - discountPercentage: 0 - remainingCredit: 0 - status: Paid - issueDate: '2017-05-08T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Consulting services - unitAmount: 900 - quantity: 1 - discountAmount: 0 - subTotal: 900 - taxAmount: 180 - totalAmount: 1080 - accountRef: - id: 9a994b92267a11e797950a57719b2edb - name: Sales Type A - discountPercentage: 0 - taxRateRef: - id: GB_STANDARD - name: Standard 20.00% - effectiveTaxRate: 20 - itemRef: - id: a87b922b33de11e797950a57719b2edb - name: Consulting services - trackingCategoryRefs: [] - isDirectIncome: false - paymentAllocations: - - payment: - id: d39f7a5733de11e797950a57719b2edb - note: Customer refund using credit/debit card - accountRef: - id: 9a25937b267a11e797950a57719b2edb - name: Current - currency: GBP - currencyRate: 1 - paidOnDate: '2017-05-08T00:00:00' - totalAmount: -1080 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: 1080 - modifiedDate: '2022-10-24T14:55:35Z' - sourceModifiedDate: '2017-05-08T11:09:38Z' - note: '' - Sage Intacct: - value: - id: '5018' - creditNoteNumber: IN0545 - customerRef: - id: '53' - companyName: Pacificorp - withholdingTax: [] - totalAmount: 575 - totalDiscount: 0 - subTotal: 500 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 75 - discountPercentage: 0 - remainingCredit: 0 - status: Paid - issueDate: '2022-03-16T00:00:00' - allocatedOnDate: '2022-03-16T00:00:00' - currency: ZAR - lineItems: - - description: No Description Provided - unitAmount: 500 - quantity: 1 - subTotal: 500 - taxAmount: 75 - totalAmount: 575 - accountRef: - id: '2' - name: Accounts Receivable - taxRateRef: - id: '27' - name: Standard Rate Output - effectiveTaxRate: 15 - trackingCategoryRefs: - - id: DEPARTMENT-2 - name: Services - - id: CUSTOMER-53 - name: Pacificorp - - id: LOCATION-10 - name: South Africa - isDirectIncome: false - paymentAllocations: [] - modifiedDate: '2023-02-23T14:21:40Z' - sourceModifiedDate: '2022-03-16T12:27:43Z' - note: '' - metadata: - isDeleted: false - Xero: - value: - id: 47fb825b-3c43-4284-905f-c6d97acc6b37 - creditNoteNumber: CN-0025 - customerRef: - id: af0091a9-82ef-4cac-9fd6-22c095ac6a58 - companyName: Hamilton Smith Ltd - withholdingTax: [] - totalAmount: 541.25 - totalDiscount: 0 - subTotal: 451.04 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 90.21 - discountPercentage: 0 - remainingCredit: 0 - status: Paid - issueDate: '2022-11-20T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: FULL CREDIT of INV-0016 due to duplication of invoice INV-0012. Please accept our apologies. - unitAmount: 0 - quantity: 0 - discountAmount: 0 - subTotal: 0 - taxAmount: 0 - totalAmount: 0 - discountPercentage: 0 - trackingCategoryRefs: [] - isDirectIncome: false - - description: Desktop/network support via email & phone.Per month fixed fee for minimum 20 hours/month. - unitAmount: 451.04 - quantity: 1 - discountAmount: 0 - subTotal: 451.04 - taxAmount: 90.21 - totalAmount: 541.25 - accountRef: - id: c563b607-fb0e-4d06-9ddb-76fdeef20ae3 - name: Sales - discountPercentage: 0 - taxRateRef: - id: OUTPUT2 - name: 20% (VAT on Income) - effectiveTaxRate: 20 - itemRef: - id: f8fb7e00-5e5d-466c-aef0-15861f73d04f - name: Desktop/network support via email & phone - trackingCategoryRefs: - - id: 34b9b859-07a9-451a-b4d3-effc9946634a - name: North - isDirectIncome: false - paymentAllocations: - - payment: - id: 47fb825b-3c43-4284-905f-c6d97acc6b37 - reference: Monthly Support - currency: GBP - currencyRate: 1 - paidOnDate: '2022-11-20T00:00:00' - totalAmount: 0 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2022-11-20T00:00:00' - totalAmount: 541.25 - modifiedDate: '2023-03-15T20:35:09Z' - sourceModifiedDate: '2011-04-07T00:34:38' - metadata: - isDeleted: false - Zoho Books: - value: - id: '104957000000129002' - creditNoteNumber: CN-00001 - customerRef: - id: '104957000000037097' - companyName: Test Company - withholdingTax: [] - totalAmount: 9001 - totalDiscount: 0 - subTotal: 0 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 0 - discountPercentage: 0 - remainingCredit: 9001 - status: Draft - issueDate: '2020-04-28T18:16:22' - currency: GBP - lineItems: [] - paymentAllocations: [] - modifiedDate: '2022-10-03T08:40:43Z' - sourceModifiedDate: '2020-04-28T18:16:22' - '401': - $ref: '#/components/responses/Unauthorized' - '402': - $ref: '#/components/responses/Payment-Required' - '403': - $ref: '#/components/responses/Forbidden' - '404': - $ref: '#/components/responses/Not-Found' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - description: | - The *Get credit note* endpoint returns a single credit note for a given creditNoteId. - - [Credit notes](https://docs.codat.io/lending-api#/schemas/CreditNote) are issued to a customer to indicate debt, typically with reference to a previously issued invoice and/or purchase. - - Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data). - operationId: get-accounting-credit-note - x-speakeasy-group: accounts-receivable.credit-notes - '/companies/{companyId}/data/customers': - parameters: - - $ref: '#/components/parameters/companyId' - get: - tags: - - Accounts receivable - summary: List customers - 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/AccountingCustomers' - examples: - Clear Books: - value: - results: - - id: c8180244-74ac-40cf-a5df-6d83661c44d7 - customerName: Arjun Kuvalis - contactName: Werner Langworth - emailAddress: Arjun34@hotmail.com - defaultCurrency: GBP - phone: 014605 64820 - addresses: - - type: Delivery - line1: Suite 214 - line2: 8439 Lueilwitz Passage - city: Fernandohaven - region: Northern Ireland - country: United Kingdom - postalCode: JG04 7PV - - type: Delivery - line1: Suite 096 - line2: 864 Halie Course - city: Juliochester - region: England - country: United Kingdom - postalCode: DZ8 4BF - - type: Delivery - line1: Suite 001 - line2: 416 Stokes Fords - city: Naderborough - region: Wales - country: United Kingdom - postalCode: XG25 0XX - contacts: - - name: Werner Langworth - email: Werner_Langworth@hotmail.com - phone: [] - address: - type: Delivery - line1: Apt. 145 - line2: 317 Williamson Freeway - city: Hortenseville - region: Scotland - country: United Kingdom - postalCode: CV4 2HR - status: Active - - name: Belle Glover - email: Belle51@yahoo.com - phone: [] - address: - type: Delivery - line1: Suite 075 - line2: 9921 Dickens Walk - city: South Ali - region: Scotland - country: United Kingdom - postalCode: TI04 4OO - status: Active - registrationNumber: NI7JEJVM - taxNumber: '7505220209.583549' - status: Active - modifiedDate: '2023-04-26T12:38:16Z' - sourceModifiedDate: '2022-07-03T01:27:00' - metadata: - isDeleted: false - - id: 6d162ee4-47b4-46c6-a2e6-aa9edd0fe6b0 - customerName: 'Breitenberg, Emard and Schiller' - contactName: Miguel Hahn - emailAddress: contact@BreitenbergEmardandSchiller.biz - defaultCurrency: GBP - phone: 0800 445 6957 - addresses: - - type: Billing - line1: Apt. 184 - line2: 60578 Louie Springs - city: East Khalid - region: Wales - country: United Kingdom - postalCode: XW89 7NT - contacts: - - name: Miguel Hahn - email: Miguel.Hahn@gmail.com - phone: - - number: 018555 09614 - type: Landline - address: - type: Delivery - line1: Suite 400 - line2: 21930 Milan Lane - city: Reingerton - region: Wales - country: United Kingdom - postalCode: QG10 2DL - status: Active - registrationNumber: KME0AMIL - taxNumber: '8560920952.553111' - status: Archived - modifiedDate: '2023-04-26T12:38:16Z' - sourceModifiedDate: '2022-12-03T11:05:01' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 20 - _links: - current: - href: /companies/354a121b-855f-4d25-90ad-0905b498c1c0/data/customers?page=1&pageSize=2 - self: - href: /companies/354a121b-855f-4d25-90ad-0905b498c1c0/data/customers - next: - href: /companies/354a121b-855f-4d25-90ad-0905b498c1c0/data/customers?page=2&pageSize=2 - Dynamics 365 Business Central: - value: - results: - - id: 0e2f7751-7696-ed11-bff5-6045bd0d2ad6 - customerName: '' - contactName: '' - emailAddress: '' - defaultCurrency: GBP - phone: '' - addresses: - - type: Billing - line1: '' - line2: '' - city: '' - region: '' - country: '' - postalCode: '' - contacts: - - name: '' - email: '' - phone: [] - address: - type: Billing - line1: '' - line2: '' - city: '' - region: '' - country: '' - postalCode: '' - status: Active - taxNumber: '' - status: Active - modifiedDate: '2023-03-27T14:21:25Z' - sourceModifiedDate: '2023-01-17T14:50:54Z' - metadata: - isDeleted: false - - id: 0ef95175-48c4-eb11-9f0a-0022481b4343 - customerName: '' - contactName: '' - emailAddress: '' - defaultCurrency: GBP - phone: '' - addresses: - - type: Billing - line1: '' - line2: '' - city: '' - region: '' - country: GB - postalCode: '' - contacts: - - name: '' - email: '' - phone: [] - address: - type: Billing - line1: '' - line2: '' - city: '' - region: '' - country: GB - postalCode: '' - status: Active - taxNumber: '' - status: Active - modifiedDate: '2023-03-27T14:21:25Z' - sourceModifiedDate: '2021-06-03T08:48:36Z' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 42 - _links: - current: - href: /companies/d6849caf-c146-41be-8335-b73346e3bd84/data/customers?page=1&pageSize=2 - self: - href: /companies/d6849caf-c146-41be-8335-b73346e3bd84/data/customers - next: - href: /companies/d6849caf-c146-41be-8335-b73346e3bd84/data/customers?page=2&pageSize=2 - Exact (Netherlands): - value: - results: - - id: 555f8251-c65a-433a-a813-5dbe04321d1e - customerName: Ab Netherlands - defaultCurrency: EUR - addresses: - - type: Billing - country: NL - contacts: [] - status: Active - modifiedDate: '2022-10-26T13:32:05Z' - sourceModifiedDate: '2021-06-14T15:26:37Z' - - id: 9fd1f78e-67aa-4af7-8a10-df1fc5fb5841 - customerName: anna test 2 - defaultCurrency: EUR - addresses: - - type: Billing - country: NL - contacts: [] - status: Active - modifiedDate: '2022-10-26T13:32:05Z' - sourceModifiedDate: '2022-05-24T11:53:21Z' - pageNumber: 1 - pageSize: 2 - totalResults: 71 - _links: - current: - href: /companies/b83b1923-4db6-45a8-a779-b4e320c15979/data/customers?page=1&pageSize=2 - self: - href: /companies/b83b1923-4db6-45a8-a779-b4e320c15979/data/customers - next: - href: /companies/b83b1923-4db6-45a8-a779-b4e320c15979/data/customers?page=2&pageSize=2 - Exact (UK): - value: - results: - - id: 5f20075a-a28e-434d-81a6-2db0dc170e87 - customerName: Abdi 99 - emailAddress: email@codat.io - defaultCurrency: GBP - addresses: - - type: Billing - line1: Ink Rooms - city: London - country: GB - postalCode: WC1X 0BE - contacts: [] - registrationNumber: '123456789' - taxNumber: GB339 0727 47 - status: Active - modifiedDate: '2022-10-26T13:33:08Z' - sourceModifiedDate: '2020-02-26T11:23:50Z' - - id: 1d9dc1a7-92d6-441b-93fd-42c9fb321b1c - customerName: Abdulbasit Al-haj - contactName: abeee - emailAddress: a.alhaj@codat.io - defaultCurrency: GBP - addresses: - - type: Billing - country: GB - contacts: - - name: abeee - phone: [] - address: - type: Unknown - line1: '' - country: 'GB ' - status: Active - modifiedDate: '2020-02-24T12:00:51.027Z' - status: Active - modifiedDate: '2022-10-26T13:33:08Z' - sourceModifiedDate: '2020-02-24T12:00:50Z' - pageNumber: 1 - pageSize: 2 - totalResults: 53 - _links: - current: - href: /companies/d95030cd-22b2-482b-9c7b-2980dcc2b1ce/data/customers?page=1&pageSize=2 - self: - href: /companies/d95030cd-22b2-482b-9c7b-2980dcc2b1ce/data/customers - next: - href: /companies/d95030cd-22b2-482b-9c7b-2980dcc2b1ce/data/customers?page=2&pageSize=2 - FreeAgent: - value: - results: - - id: '11526230' - customerName: '-' - contactName: Test 1 - addresses: - - type: Billing - line1: 1 Place House - line2: '' - city: London - country: United Kingdom - postalCode: WC1X 1AH - contacts: - - name: Test 1 - phone: [] - address: - type: Billing - line1: 1 Place House - line2: '' - city: London - country: United Kingdom - postalCode: WC1X 1AH - status: Unknown - status: Active - modifiedDate: '2023-04-25T14:19:12Z' - sourceModifiedDate: '2023-04-17T06:02:46Z' - metadata: - isDeleted: false - - id: '9677150' - customerName: '-' - contactName: Test 1 - addresses: - - type: Billing - line1: 1 Place House - line2: '' - city: London - country: United Kingdom - postalCode: WC1X 1AH - contacts: - - name: Test 1 - phone: [] - address: - type: Billing - line1: 1 Place House - line2: '' - city: London - country: United Kingdom - postalCode: WC1X 1AH - status: Unknown - status: Active - modifiedDate: '2023-04-25T14:19:12Z' - sourceModifiedDate: '2023-04-24T06:19:23Z' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 159 - _links: - current: - href: /companies/071ad738-68f3-4561-afd0-69bab9df0803/data/customers?page=1&pageSize=2 - self: - href: /companies/071ad738-68f3-4561-afd0-69bab9df0803/data/customers - next: - href: /companies/071ad738-68f3-4561-afd0-69bab9df0803/data/customers?page=2&pageSize=2 - FreshBooks: - value: - results: - - id: '634509' - customerName: A test customer 14 (updated) - contactName: test person name - emailAddress: test14@example.com - defaultCurrency: GBP - phone: 01876 541245 - addresses: - - type: Billing - line1: Line 1 - line2: Line 2 - city: Some city - region: A region - country: Country 1 - postalCode: SW1 2JQ - contacts: - - name: test person1 - email: test14A@example.com - phone: - - number: '24681012' - type: Primary - - number: '121086420' - type: Unknown - status: Active - - name: test person2 - email: test14B@example.com - phone: - - number: 1234 56789 - type: Primary - - number: 9876 54321 - type: Unknown - status: Active - - name: test person name - email: test14@example.com - phone: - - number: 01876 541245 - type: Unknown - status: Active - status: Active - modifiedDate: '2023-03-24T16:07:23Z' - sourceModifiedDate: '2022-05-18T09:23:56' - metadata: - isDeleted: false - - id: '634486' - customerName: A test customer name 2 - contactName: test person name - emailAddress: test8@example.com - defaultCurrency: GBP - phone: 01876 541245 - addresses: - - type: Billing - line1: Line 1 - line2: Line 2 - city: Some city - region: A region - country: Country 1 - postalCode: SW1 2JQ - contacts: - - name: test person1 - email: test9@example.com - phone: - - number: '24681012' - type: Primary - - number: '121086420' - type: Unknown - status: Active - - name: test person2 - email: test10@example.com - phone: - - number: '123456789' - type: Primary - - number: '987654321' - type: Unknown - status: Active - - name: test person name - email: test8@example.com - phone: - - number: 01876 541245 - type: Unknown - status: Active - status: Active - modifiedDate: '2023-03-24T16:07:23Z' - sourceModifiedDate: '2022-05-11T11:39:58' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 39 - _links: - current: - href: /companies/3691c49e-0db4-4172-b3ab-e4084c365013/data/customers?page=1&pageSize=2 - self: - href: /companies/3691c49e-0db4-4172-b3ab-e4084c365013/data/customers - next: - href: /companies/3691c49e-0db4-4172-b3ab-e4084c365013/data/customers?page=2&pageSize=2 - KashFlow: - value: - results: - - id: '92227673' - customerName: Chekko Customer Test 01 - contactName: '' - emailAddress: '' - phone: '' - addresses: [] - contacts: - - name: '' - email: '' - phone: [] - status: Active - taxNumber: '' - status: Active - modifiedDate: '2022-09-30T10:29:15Z' - sourceModifiedDate: '0001-01-01T00:00:00' - - id: '88459410' - customerName: Diogo Sousa - contactName: Mr Diogo Sousa - emailAddress: diogomail@mail.com - phone: '123123123' - addresses: - - type: Billing - line1: Billing Address - line2: Billing line 2 Billing line 3 - city: Billing line 4 - country: United Kingdom - postalCode: '123321' - - type: Delivery - line1: Delivery Address - line2: Delivery line2 Delivery line3 - city: Delivery line4 - country: United Kingdom - postalCode: '123321' - contacts: - - name: Mr Diogo Sousa - email: diogomail@mail.com - phone: - - number: '123123123' - type: Landline - - number: '321321321' - type: Mobile - address: - type: Billing - line1: Billing Address - line2: Billing line 2 Billing line 3 - city: Billing line 4 - country: United Kingdom - postalCode: '123321' - status: Active - - name: Mr Diogo Sousa - phone: [] - address: - type: Delivery - line1: Delivery Address - line2: Delivery line2 Delivery line3 - city: Delivery line4 - country: United Kingdom - postalCode: '123321' - status: Active - taxNumber: '' - status: Active - modifiedDate: '2022-09-30T10:29:15Z' - sourceModifiedDate: '2021-05-04T13:22:19' - pageNumber: 1 - pageSize: 2 - totalResults: 10 - _links: - current: - href: /companies/3a707a99-89da-4b16-a5d6-595333a16352/data/customers?page=1&pageSize=2 - self: - href: /companies/3a707a99-89da-4b16-a5d6-595333a16352/data/customers - next: - href: /companies/3a707a99-89da-4b16-a5d6-595333a16352/data/customers?page=2&pageSize=2 - Oracle NetSuite: - value: - results: - - id: '773' - customerName: 119 Test Customer - contactName: Mr Test Customer - defaultCurrency: GBP - addresses: [] - contacts: [] - status: Active - modifiedDate: '2023-01-30T14:48:02Z' - sourceModifiedDate: '2022-01-11T12:28:49' - - id: '172722' - customerName: 1248 European Company - contactName: European Company - defaultCurrency: GBP - addresses: [] - contacts: [] - status: Active - modifiedDate: '2023-01-30T14:48:02Z' - sourceModifiedDate: '2022-07-27T14:29:16' - pageNumber: 1 - pageSize: 2 - totalResults: 4 - _links: - current: - href: /companies/d5074b08-6a34-4b06-a742-236edf5dc4f1/data/customers?page=1&pageSize=2 - self: - href: /companies/d5074b08-6a34-4b06-a742-236edf5dc4f1/data/customers - next: - href: /companies/d5074b08-6a34-4b06-a742-236edf5dc4f1/data/customers?page=2&pageSize=2 - QuickBooks Desktop: - value: - results: - - id: 150000-933272658 - customerName: 'Abercrombie, Kristy' - contactName: Kristy Abercrombie - emailAddress: kristy@samplename.com - defaultCurrency: GBP - phone: 415-555-6579 - addresses: - - type: Delivery - line1: Kristy Abercrombie - line2: 5647 Cypress Hill Rd - city: Bayshore - region: CA - postalCode: '94326' - - type: Billing - line1: Kristy Abercrombie - line2: 5647 Cypress Hill Rd - city: Bayshore - region: CA - postalCode: '94326' - contacts: - - name: 'Abercrombie, Kristy' - email: kristy@samplename.com - phone: - - number: 415-555-6579 - type: Primary - status: Active - - name: Kristy Abercrombie - phone: [] - status: Active - - name: Steve Darcangelo - phone: [] - status: Active - status: Active - modifiedDate: '2023-04-26T09:07:55Z' - sourceModifiedDate: '2023-12-16T05:06:42' - metadata: - isDeleted: false - - id: 800000D0-1182061376 - customerName: 'Allard, Robert' - contactName: Amanda Roberts - emailAddress: rallard@myemail.com - defaultCurrency: GBP - phone: 650-555-3422 - addresses: - - type: Delivery - line1: Robert Allard - line2: 92834 Chandler St. - city: Millbrae - region: CA - postalCode: '94030' - - type: Billing - line1: Robert Allard - line2: 92834 Chandler St. - city: Millbrae - region: CA - postalCode: '94030' - contacts: - - name: 'Allard, Robert' - email: rallard@myemail.com - phone: - - number: 650-555-3422 - type: Primary - - number: 650-555-9804 - type: Fax - - number: 650-555-8349 - type: Unknown - status: Active - - name: Robert Allard - phone: [] - status: Active - - name: Rachel Fisher - phone: [] - status: Active - status: Active - modifiedDate: '2023-04-26T09:07:55Z' - sourceModifiedDate: '2023-12-16T05:06:42' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 64 - _links: - current: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/data/customers?page=1&pageSize=2 - self: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/data/customers - next: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/data/customers?page=2&pageSize=2 - QuickBooks Online: - value: - results: - - id: '9' - customerName: Abe - contactName: Abraham's Company - emailAddress: ab@email.com - defaultCurrency: GBP - addresses: [] - contacts: - - name: Abe - email: ab@email.com - phone: - - number: '01111111111' - type: Mobile - status: Active - registrationNumber: XXXX9900001 - taxNumber: XXXX9900001 - status: Active - modifiedDate: '2023-01-18T11:02:35Z' - sourceModifiedDate: '2022-12-08T15:42:59Z' - - id: '49' - customerName: adeel qbo child test - contactName: Adeel test - emailAddress: adeel@adeel.com - defaultCurrency: GBP - phone: '123456789' - addresses: - - type: Billing - line1: 4 Privet Drive - city: London - country: United Kingdom - postalCode: WD25 7LR - - type: Delivery - line1: 4 Privet Drive - city: London - country: United Kingdom - postalCode: WD25 7LR - contacts: - - name: Adeel test - email: adeel@adeel.com - phone: - - number: '123456789' - type: Primary - - number: '07546543216' - type: Mobile - address: - type: Billing - line1: 4 Privet Drive - city: London - country: United Kingdom - postalCode: WD25 7LR - status: Active - status: Active - modifiedDate: '2023-01-18T11:02:35Z' - sourceModifiedDate: '2022-08-22T09:21:09Z' - pageNumber: 1 - pageSize: 2 - totalResults: 40 - _links: - current: - href: /companies/10818b5e-6e6a-4ed4-a1c5-3e3efe626e87/data/customers?page=1&pageSize=2 - self: - href: /companies/10818b5e-6e6a-4ed4-a1c5-3e3efe626e87/data/customers - next: - href: /companies/10818b5e-6e6a-4ed4-a1c5-3e3efe626e87/data/customers?page=2&pageSize=2 - QuickBooks Online Sandbox: - value: - results: - - id: '66' - customerName: Abercrombie International Group - contactName: Kristy Abercrombie - defaultCurrency: GBP - addresses: - - type: Billing - line1: 123 Main St - city: 'New York, NY' - contacts: - - name: Abercrombie International Group (deleted) - phone: [] - address: - type: Billing - line1: 123 Main St - city: 'New York, NY' - status: Archived - status: Archived - modifiedDate: '2023-04-26T09:35:56Z' - sourceModifiedDate: '2016-09-12T18:53:19Z' - metadata: - isDeleted: false - - id: '67' - customerName: Abercrombie International Group - contactName: Natalie Watts - emailAddress: n.watts@google.com - defaultCurrency: USD - addresses: - - type: Billing - - type: Delivery - contacts: - - name: Abercrombie International Group - email: n.watts@google.com - phone: [] - address: - type: Billing - status: Active - registrationNumber: XXXXVat123456 - taxNumber: XXXXVat123456 - status: Active - modifiedDate: '2023-04-26T09:35:56Z' - sourceModifiedDate: '2023-03-29T01:12:55Z' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 243 - _links: - current: - href: /companies/5a7f3597-36e1-4216-86fe-289ad36088a6/data/customers?page=1&pageSize=2 - self: - href: /companies/5a7f3597-36e1-4216-86fe-289ad36088a6/data/customers - next: - href: /companies/5a7f3597-36e1-4216-86fe-289ad36088a6/data/customers?page=2&pageSize=2 - Sage 200cloud: - value: - results: - - id: A1D001 - customerName: A1 Design Services - contactName: Lee Dalkin - emailAddress: newbusinessadvice@sage.com - defaultCurrency: GBP - phone: 01742 876 234 - addresses: - - type: Delivery - line1: 67a Station Road - line2: '' - city: Blackpool - region: Lancashire - country: '' - postalCode: BP12 7HT - - type: Delivery - line1: 23a Union Street - line2: '' - city: Manchester - region: '' - country: '' - postalCode: M2 6JK - - type: Billing - line1: 67a Station Road - line2: '' - city: Blackpool - region: Lancashire - country: Great Britain - postalCode: BP12 7HT - contacts: - - name: Lee Dalkin - email: newbusinessadvice@sage.com - phone: - - number: 01742 876 234 - type: Landline - - number: 01742 876 235 - type: Landline - - number: 01742 876 236 - type: Fax - status: Active - - name: Malcolm Leverret - email: '' - phone: [] - status: Active - - name: Jim Thomas - email: Jim@a1designservices.co.uk - phone: - - number: 01742 876 234 - type: Landline - - number: 01742 876 235 - type: Fax - status: Active - - name: Jullian Plawsworth - email: Jullian@a1designservices.co.uk - phone: - - number: 0151 349 3939 - type: Landline - - number: 0151 349 3940 - type: Fax - status: Active - registrationNumber: '' - taxNumber: GB238 3839 38 - status: Active - modifiedDate: '2022-10-14T09:35:53Z' - sourceModifiedDate: '2022-04-27T15:17:36Z' - - id: A1D002 - customerName: A2 Design Services - contactName: Lee Dalkin - emailAddress: newbusinessadvice@sage.com - defaultCurrency: GBP - phone: 01742 876 234 - addresses: - - type: Billing - line1: 77a Station Road - line2: '' - city: Blackpool - region: Lancashire - country: Great Britain - postalCode: BP12 7HT - contacts: - - name: Lee Dalkin - email: newbusinessadvice@sage.com - phone: - - number: 01742 876 234 - type: Landline - - number: 01742 876 235 - type: Landline - - number: 01742 876 236 - type: Fax - status: Active - - name: Malcolm Leverret - email: '' - phone: [] - status: Active - - name: Jim Thomas - email: Jim@a1designservices.co.uk - phone: - - number: 01742 876 234 - type: Landline - - number: 01742 876 235 - type: Fax - status: Active - - name: Jullian Plawsworth - email: Jullian@a1designservices.co.uk - phone: - - number: 0151 349 3939 - type: Landline - - number: 0151 349 3940 - type: Fax - status: Active - registrationNumber: '' - taxNumber: GB238 3839 40 - status: Active - modifiedDate: '2022-10-14T09:35:53Z' - sourceModifiedDate: '2020-09-23T10:28:58Z' - pageNumber: 1 - pageSize: 2 - totalResults: 43 - _links: - current: - href: /companies/93c21e2d-049c-4d24-b41b-57e61c30b69e/data/customers?page=1&pageSize=2 - self: - href: /companies/93c21e2d-049c-4d24-b41b-57e61c30b69e/data/customers - next: - href: /companies/93c21e2d-049c-4d24-b41b-57e61c30b69e/data/customers?page=2&pageSize=2 - Sage 50 (UK): - value: - results: - - id: A1D001 - customerName: A1 Design Services - contactName: Ian Cairns - emailAddress: newbusinessadvice@sage.com - defaultCurrency: GBP - phone: 01742 876 234 - addresses: - - type: Delivery - line1: 67a Station Road - line2: '' - city: Blackpool - region: Lancashire - country: GB - postalCode: BP12 7HT - - type: Delivery - line1: 23a Union Street - line2: '' - city: Manchester - region: '' - country: GB - postalCode: M2 6JK - - type: Unknown - line1: 67a Station Road - line2: '' - city: Blackpool - region: Lancashire - country: GB - postalCode: BP12 7HT - contacts: [] - taxNumber: GB238 3839 38 - status: Active - modifiedDate: '2023-03-30T14:42:41Z' - sourceModifiedDate: '2022-11-25T09:43:54Z' - metadata: - isDeleted: false - - id: ABS001 - customerName: ABS Garages Ltd - contactName: Mike Hall - emailAddress: newbusinessadvice@sage.com - defaultCurrency: GBP - phone: 0191 254 5909 - addresses: - - type: Delivery - line1: Swanson Industries - line2: Dukes Industrial Estate - city: Whitley Bay - region: North Tyneside - country: GB - postalCode: NE56 4ER - - type: Delivery - line1: Unit 34 - line2: Holystone Ind Estate - city: Hebburn - region: Tyne & Wear - country: GB - postalCode: NE31 1VB - - type: Unknown - line1: Unit 34 - line2: Holystone Ind Estate - city: Hebburn - region: Tyne & Wear - country: GB - postalCode: NE31 1VB - contacts: [] - taxNumber: GB745 4584 68 - status: Active - modifiedDate: '2023-03-30T14:42:41Z' - sourceModifiedDate: '2022-11-25T09:43:54Z' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 30 - _links: - current: - href: /companies/cf5f2a47-2990-4221-bae6-0c19c86ac304/data/customers?page=1&pageSize=2 - self: - href: /companies/cf5f2a47-2990-4221-bae6-0c19c86ac304/data/customers - next: - href: /companies/cf5f2a47-2990-4221-bae6-0c19c86ac304/data/customers?page=2&pageSize=2 - Sage Business Cloud Accounting: - value: - results: - - id: 260f6a3f94a243738f2d5e08496a41a8 - customerName: 100 test name - contactName: Main Contact - emailAddress: email@codat.io - defaultCurrency: GBP - phone: contact phone number - addresses: - - type: Billing - line1: Aruba Address line 1 - line2: Aruba Address line 2 - city: Aruba City - region: Aruba Province - country: Aruba (AW) - postalCode: Aruba Post - contacts: - - phone: - - number: contact mobile number - type: Mobile - - number: contact fax number - type: Fax - status: Unknown - status: Active - modifiedDate: '2022-10-24T14:52:54Z' - sourceModifiedDate: '2021-05-10T16:31:51Z' - - id: 44a5d9461d9e4f6d90a5ace251c5cf35 - customerName: 100 test name DS - contactName: Main Contact - emailAddress: DCemail@codat.io - defaultCurrency: GBP - phone: contact phone number - addresses: - - type: Billing - line1: POST - Aruba Address line 1 - line2: POST - Aruba Address line 2 - city: POST - Aruba City - region: Aruba Province - country: Aruba (AW) - postalCode: Aruba Post - contacts: [] - status: Active - modifiedDate: '2022-10-24T14:52:54Z' - sourceModifiedDate: '2021-06-10T14:22:46Z' - pageNumber: 1 - pageSize: 2 - totalResults: 168 - _links: - current: - href: /companies/390083e2-351b-407c-a3be-55081c36c182/data/customers?page=1&pageSize=2 - self: - href: /companies/390083e2-351b-407c-a3be-55081c36c182/data/customers - next: - href: /companies/390083e2-351b-407c-a3be-55081c36c182/data/customers?page=2&pageSize=2 - Sage Intacct: - value: - results: - - id: '188' - customerName: 33Across - contactName: Yuna Conn - defaultCurrency: USD - phone: 520-393-4468 - addresses: - - type: Unknown - line1: 155 Westend Point - line2: '' - city: Albuquerque - region: NM - country: United States - postalCode: '87140' - contacts: - - name: 'Conn, Yuna' - phone: - - number: 520-393-4468 - type: Primary - address: - type: Unknown - line1: 155 Westend Point - line2: '' - city: Albuquerque - region: NM - country: United States - postalCode: '87140' - status: Unknown - taxNumber: '' - status: Active - modifiedDate: '2023-04-04T16:32:21Z' - sourceModifiedDate: '2022-09-06T12:58:27' - metadata: - isDeleted: false - - id: '324' - customerName: 3Way International Logistics - contactName: Lauri O'Heagertie - defaultCurrency: CAD - phone: 410-309-3976 - addresses: - - type: Unknown - line1: 7 Lerdahl Junction - line2: '' - city: Sparwood - region: British Columbia - country: Canada - postalCode: L4R - contacts: - - name: 'O''Heagertie, Lauri' - phone: - - number: 410-309-3976 - type: Primary - address: - type: Unknown - line1: 7 Lerdahl Junction - line2: '' - city: Sparwood - region: British Columbia - country: Canada - postalCode: L4R - status: Unknown - taxNumber: '' - status: Active - modifiedDate: '2023-04-04T16:32:21Z' - sourceModifiedDate: '2020-10-20T05:01:49' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 530 - _links: - current: - href: /companies/df02b289-cb16-4964-ac4d-9fd60b04538e/data/customers?page=1&pageSize=2 - self: - href: /companies/df02b289-cb16-4964-ac4d-9fd60b04538e/data/customers - next: - href: /companies/df02b289-cb16-4964-ac4d-9fd60b04538e/data/customers?page=2&pageSize=2 - Wave: - value: - results: - - id: QnVzaW5lc3M6ZTI0OGQyZDctMWE5Ni00YTk4LWFkOTEtMDdlMGYyMmNhNmE2O0N1c3RvbWVyOjMyMzkzNTA4 - customerName: ABC Textiles - contactName: '' - emailAddress: c.taylor@codat.io - defaultCurrency: USD - addresses: [] - contacts: [] - status: Active - modifiedDate: '2022-11-16T18:15:30Z' - sourceModifiedDate: '2019-10-17T07:59:04Z' - - id: QnVzaW5lc3M6ZTI0OGQyZDctMWE5Ni00YTk4LWFkOTEtMDdlMGYyMmNhNmE2O0N1c3RvbWVyOjM3MTUzNDI2 - customerName: Coffee Cart - contactName: Coffee Carl - emailAddress: coffee.cart@example.com - defaultCurrency: GBP - phone: '0201111' - addresses: - - type: Billing - line1: 11 Coffee Lane - line2: Coffee Town - city: Coffee City - region: Hampshire - country: United Kingdom - postalCode: CC1 1CC - contacts: - - name: Coffee Carl - phone: - - number: '07733' - type: Mobile - status: Active - status: Active - modifiedDate: '2022-11-16T18:15:30Z' - sourceModifiedDate: '2020-03-17T19:12:39Z' - pageNumber: 1 - pageSize: 2 - totalResults: 10 - _links: - current: - href: /companies/0b22b59d-b4e5-4c35-b03f-88bbbcb41256/data/customers?page=1&pageSize=2 - self: - href: /companies/0b22b59d-b4e5-4c35-b03f-88bbbcb41256/data/customers - next: - href: /companies/0b22b59d-b4e5-4c35-b03f-88bbbcb41256/data/customers?page=2&pageSize=2 - Xero: - value: - results: - - id: e4c9d0e2-c285-4e85-b579-6d28b180c730 - customerName: 24 Locks - emailAddress: '' - addresses: [] - contacts: [] - status: Active - modifiedDate: '2023-03-15T20:35:10Z' - sourceModifiedDate: '2023-02-17T18:03:42' - metadata: - isDeleted: false - - id: bab779bc-c5fb-42cb-a888-953e8309711c - customerName: 7-Eleven - emailAddress: '' - addresses: [] - contacts: [] - status: Active - modifiedDate: '2023-03-15T20:35:10Z' - sourceModifiedDate: '2023-02-17T18:03:42' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 48 - _links: - current: - href: /companies/5ced9667-a310-443a-a711-958d36377141/data/customers?page=1&pageSize=2 - self: - href: /companies/5ced9667-a310-443a-a711-958d36377141/data/customers - next: - href: /companies/5ced9667-a310-443a-a711-958d36377141/data/customers?page=2&pageSize=2 - Zoho Books: - value: - results: - - id: '104957000000032105' - customerName: A B - contactName: Contact (First Name) Contact (Last Name) - emailAddress: contactperson@whateveryouwantidontcare12345.com - defaultCurrency: GBP - phone: Work Phone - addresses: [] - contacts: - - name: Contact (First Name) Contact (Last Name) - email: contactperson@whateveryouwantidontcare12345.com - phone: - - number: Work Phone - type: Landline - - number: Mobile - type: Mobile - status: Active - status: Active - modifiedDate: '2022-10-03T08:40:37Z' - sourceModifiedDate: '2022-06-09T14:36:47' - - id: '104957000000054050' - customerName: 'Doe, John' - contactName: John Doe - emailAddress: '' - defaultCurrency: GBP - addresses: [] - contacts: - - name: John Doe - email: '' - phone: [] - status: Active - status: Active - modifiedDate: '2022-10-03T08:40:37Z' - sourceModifiedDate: '2022-09-28T15:09:22' - pageNumber: 1 - pageSize: 2 - totalResults: 14 - _links: - current: - href: /companies/d0b68840-db50-4bc3-b88c-96e225333fea/data/customers?page=1&pageSize=2 - self: - href: /companies/d0b68840-db50-4bc3-b88c-96e225333fea/data/customers - next: - href: /companies/d0b68840-db50-4bc3-b88c-96e225333fea/data/customers?page=2&pageSize=2 - '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' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - description: "The *List customers* endpoint returns a list of [customers](https://docs.codat.io/lending-api#/schemas/Customer) for a given company's connection.\n\n[Customers](https://docs.codat.io/lending-api#/schemas/Customer) are people or organizations that buy goods or services from the SMB.\n\nBefore using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data).\n " - operationId: list-accounting-customers - x-speakeasy-group: accounts-receivable.customers - '/companies/{companyId}/data/customers/{customerId}': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/customerId' - get: - tags: - - Accounts receivable - summary: Get customer - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/AccountingCustomer' - examples: - Clear Books: - value: - id: c8180244-74ac-40cf-a5df-6d83661c44d7 - customerName: Arjun Kuvalis - contactName: Werner Langworth - emailAddress: Arjun34@hotmail.com - defaultCurrency: GBP - phone: 014605 64820 - addresses: - - type: Delivery - line1: Suite 214 - line2: 8439 Lueilwitz Passage - city: Fernandohaven - region: Northern Ireland - country: United Kingdom - postalCode: JG04 7PV - - type: Delivery - line1: Suite 096 - line2: 864 Halie Course - city: Juliochester - region: England - country: United Kingdom - postalCode: DZ8 4BF - - type: Delivery - line1: Suite 001 - line2: 416 Stokes Fords - city: Naderborough - region: Wales - country: United Kingdom - postalCode: XG25 0XX - contacts: - - name: Werner Langworth - email: Werner_Langworth@hotmail.com - phone: [] - address: - type: Delivery - line1: Apt. 145 - line2: 317 Williamson Freeway - city: Hortenseville - region: Scotland - country: United Kingdom - postalCode: CV4 2HR - status: Active - - name: Belle Glover - email: Belle51@yahoo.com - phone: [] - address: - type: Delivery - line1: Suite 075 - line2: 9921 Dickens Walk - city: South Ali - region: Scotland - country: United Kingdom - postalCode: TI04 4OO - status: Active - registrationNumber: NI7JEJVM - taxNumber: '7505220209.583549' - status: Active - modifiedDate: '2023-04-26T12:38:16Z' - sourceModifiedDate: '2022-07-03T01:27:00' - metadata: - isDeleted: false - Dynamics 365 Business Central: - value: - id: 0e2f7751-7696-ed11-bff5-6045bd0d2ad6 - customerName: '' - contactName: '' - emailAddress: '' - defaultCurrency: GBP - phone: '' - addresses: - - type: Billing - line1: '' - line2: '' - city: '' - region: '' - country: '' - postalCode: '' - contacts: - - name: '' - email: '' - phone: [] - address: - type: Billing - line1: '' - line2: '' - city: '' - region: '' - country: '' - postalCode: '' - status: Active - taxNumber: '' - status: Active - modifiedDate: '2023-03-27T14:21:25Z' - sourceModifiedDate: '2023-01-17T14:50:54Z' - metadata: - isDeleted: false - Exact (Netherlands): - value: - id: 555f8251-c65a-433a-a813-5dbe04321d1e - customerName: Ab Netherlands - defaultCurrency: EUR - addresses: - - type: Billing - country: NL - contacts: [] - status: Active - modifiedDate: '2022-10-26T13:32:05Z' - sourceModifiedDate: '2021-06-14T15:26:37Z' - Exact (UK): - value: - id: 5f20075a-a28e-434d-81a6-2db0dc170e87 - customerName: Abdi 99 - emailAddress: email@codat.io - defaultCurrency: GBP - addresses: - - type: Billing - line1: Ink Rooms - city: London - country: GB - postalCode: WC1X 0BE - contacts: [] - registrationNumber: '123456789' - taxNumber: GB339 0727 47 - status: Active - modifiedDate: '2022-10-26T13:33:08Z' - sourceModifiedDate: '2020-02-26T11:23:50Z' - FreeAgent: - value: - id: '11526230' - customerName: '-' - contactName: Test 1 - addresses: - - type: Billing - line1: 1 Place House - line2: '' - city: London - country: United Kingdom - postalCode: WC1X 1AH - contacts: - - name: Test 1 - phone: [] - address: - type: Billing - line1: 1 Place House - line2: '' - city: London - country: United Kingdom - postalCode: WC1X 1AH - status: Unknown - status: Active - modifiedDate: '2023-04-25T14:19:12Z' - sourceModifiedDate: '2023-04-17T06:02:46Z' - metadata: - isDeleted: false - FreshBooks: - value: - id: '634509' - customerName: A test customer 14 (updated) - contactName: test person name - emailAddress: test14@example.com - defaultCurrency: GBP - phone: 01876 541245 - addresses: - - type: Billing - line1: Line 1 - line2: Line 2 - city: Some city - region: A region - country: Country 1 - postalCode: SW1 2JQ - contacts: - - name: test person1 - email: test14A@example.com - phone: - - number: '24681012' - type: Primary - - number: '121086420' - type: Unknown - status: Active - - name: test person2 - email: test14B@example.com - phone: - - number: '123456789' - type: Primary - - number: '987654321' - type: Unknown - status: Active - - name: test person name - email: test14@example.com - phone: - - number: 01876 541245 - type: Unknown - status: Active - status: Active - modifiedDate: '2023-03-24T16:07:23Z' - sourceModifiedDate: '2022-05-18T09:23:56' - metadata: - isDeleted: false - KashFlow: - value: - id: '92227673' - customerName: Chekko Customer Test 01 - contactName: '' - emailAddress: '' - phone: '' - addresses: [] - contacts: - - name: '' - email: '' - phone: [] - status: Active - taxNumber: '' - status: Active - modifiedDate: '2022-09-30T10:29:15Z' - sourceModifiedDate: '0001-01-01T00:00:00' - Oracle NetSuite: - value: - id: '773' - customerName: 119 Test Customer - contactName: Mr Test Customer - defaultCurrency: GBP - addresses: [] - contacts: [] - status: Active - modifiedDate: '2023-01-30T14:48:02Z' - sourceModifiedDate: '2022-01-11T12:28:49' - QuickBooks Desktop: - value: - id: 150000-933272658 - customerName: 'Abercrombie, Kristy' - contactName: Kristy Abercrombie - emailAddress: kristy@samplename.com - defaultCurrency: GBP - phone: 415-555-6579 - addresses: - - type: Delivery - line1: Kristy Abercrombie - line2: 5647 Cypress Hill Rd - city: Bayshore - region: CA - postalCode: '94326' - - type: Billing - line1: Kristy Abercrombie - line2: 5647 Cypress Hill Rd - city: Bayshore - region: CA - postalCode: '94326' - contacts: - - name: 'Abercrombie, Kristy' - email: kristy@samplename.com - phone: - - number: 415-555-6579 - type: Primary - status: Active - - name: Kristy Abercrombie - phone: [] - status: Active - - name: Steve Darcangelo - phone: [] - status: Active - status: Active - modifiedDate: '2023-04-26T09:07:55Z' - sourceModifiedDate: '2023-12-16T05:06:42' - metadata: - isDeleted: false - QuickBooks Online: - value: - id: '9' - customerName: Abe - contactName: Abraham's Company - emailAddress: ab@email.com - defaultCurrency: GBP - addresses: [] - contacts: - - name: Abe - email: ab@email.com - phone: - - number: '01111111111' - type: Mobile - status: Active - registrationNumber: XXXX9900001 - taxNumber: XXXX9900001 - status: Active - modifiedDate: '2023-01-18T11:02:35Z' - sourceModifiedDate: '2022-12-08T15:42:59Z' - QuickBooks Online Sandbox: - value: - id: '66' - customerName: Abercrombie International Group - contactName: Kristy Abercrombie - defaultCurrency: GBP - addresses: - - type: Billing - line1: 123 Main St - city: 'New York, NY' - contacts: - - name: Abercrombie International Group (deleted) - phone: [] - address: - type: Billing - line1: 123 Main St - city: 'New York, NY' - status: Archived - status: Archived - modifiedDate: '2023-04-26T09:35:56Z' - sourceModifiedDate: '2016-09-12T18:53:19Z' - metadata: - isDeleted: false - Sage 200cloud: - value: - id: A1D001 - customerName: A1 Design Services - contactName: Lee Dalkin - emailAddress: newbusinessadvice@sage.com - defaultCurrency: GBP - phone: 01742 876 234 - addresses: - - type: Delivery - line1: 67a Station Road - line2: '' - city: Blackpool - region: Lancashire - country: '' - postalCode: BP12 7HT - - type: Delivery - line1: 23a Union Street - line2: '' - city: Manchester - region: '' - country: '' - postalCode: M2 6JK - - type: Billing - line1: 67a Station Road - line2: '' - city: Blackpool - region: Lancashire - country: Great Britain - postalCode: BP12 7HT - contacts: - - name: Lee Dalkin - email: newbusinessadvice@sage.com - phone: - - number: 01742 876 234 - type: Landline - - number: 01742 876 235 - type: Landline - - number: 01742 876 236 - type: Fax - status: Active - - name: Malcolm Leverret - email: '' - phone: [] - status: Active - - name: Jim Thomas - email: Jim@a1designservices.co.uk - phone: - - number: 01742 876 234 - type: Landline - - number: 01742 876 235 - type: Fax - status: Active - - name: Jullian Plawsworth - email: Jullian@a1designservices.co.uk - phone: - - number: 0151 349 3939 - type: Landline - - number: 0151 349 3940 - type: Fax - status: Active - registrationNumber: '' - taxNumber: GB238 3839 38 - status: Active - modifiedDate: '2022-10-14T09:35:53Z' - sourceModifiedDate: '2022-04-27T15:17:36Z' - Sage 50 (UK): - value: - id: A1D001 - customerName: A1 Design Services - contactName: Ian Cairns - emailAddress: newbusinessadvice@sage.com - defaultCurrency: GBP - phone: 01742 876 234 - addresses: - - type: Delivery - line1: 67a Station Road - line2: '' - city: Blackpool - region: Lancashire - country: GB - postalCode: BP12 7HT - - type: Delivery - line1: 23a Union Street - line2: '' - city: Manchester - region: '' - country: GB - postalCode: M2 6JK - - type: Unknown - line1: 67a Station Road - line2: '' - city: Blackpool - region: Lancashire - country: GB - postalCode: BP12 7HT - contacts: [] - taxNumber: GB238 3839 38 - status: Active - modifiedDate: '2023-03-30T14:42:41Z' - sourceModifiedDate: '2022-11-25T09:43:54Z' - metadata: - isDeleted: false - Sage Business Cloud Accounting: - value: - id: 260f6a3f94a243738f2d5e08496a41a8 - customerName: 100 test name - contactName: Main Contact - emailAddress: email@codat.io - defaultCurrency: GBP - phone: contact phone number - addresses: - - type: Billing - line1: Aruba Address line 1 - line2: Aruba Address line 2 - city: Aruba City - region: Aruba Province - country: Aruba (AW) - postalCode: Aruba Post - contacts: - - phone: - - number: contact mobile number - type: Mobile - - number: contact fax number - type: Fax - status: Unknown - status: Active - modifiedDate: '2022-10-24T14:52:54Z' - sourceModifiedDate: '2021-05-10T16:31:51Z' - Sage Intacct: - value: - id: '188' - customerName: 33Across - contactName: Yuna Conn - defaultCurrency: USD - phone: 520-393-4468 - addresses: - - type: Unknown - line1: 155 Westend Point - line2: '' - city: Albuquerque - region: NM - country: United States - postalCode: '87140' - contacts: - - name: 'Conn, Yuna' - phone: - - number: 520-393-4468 - type: Primary - address: - type: Unknown - line1: 155 Westend Point - line2: '' - city: Albuquerque - region: NM - country: United States - postalCode: '87140' - status: Unknown - taxNumber: '' - status: Active - modifiedDate: '2023-04-04T16:32:21Z' - sourceModifiedDate: '2022-09-06T12:58:27' - metadata: - isDeleted: false - Wave: - value: - id: QnVzaW5lc3M6ZTI0OGQyZDctMWE5Ni00YTk4LWFkOTEtMDdlMGYyMmNhNmE2O0N1c3RvbWVyOjMyMzkzNTA4 - customerName: ABC Textiles - contactName: '' - emailAddress: c.taylor@codat.io - defaultCurrency: USD - addresses: [] - contacts: [] - status: Active - modifiedDate: '2022-11-16T18:15:30Z' - sourceModifiedDate: '2019-10-17T07:59:04Z' - Xero: - value: - id: e4c9d0e2-c285-4e85-b579-6d28b180c730 - customerName: 24 Locks - emailAddress: '' - addresses: [] - contacts: [] - status: Active - modifiedDate: '2023-03-15T20:35:10Z' - sourceModifiedDate: '2023-02-17T18:03:42' - metadata: - isDeleted: false - Zoho Books: - value: - id: '104957000000032105' - customerName: A B - contactName: Contact (First Name) Contact (Last Name) - emailAddress: contactperson@whateveryouwantidontcare12345.com - defaultCurrency: GBP - phone: Work Phone - addresses: [] - contacts: - - name: Contact (First Name) Contact (Last Name) - email: contactperson@whateveryouwantidontcare12345.com - phone: - - number: Work Phone - type: Landline - - number: Mobile - type: Mobile - status: Active - status: Active - modifiedDate: '2022-10-03T08:40:37Z' - sourceModifiedDate: '2022-06-09T14:36:47' - '401': - $ref: '#/components/responses/Unauthorized' - '402': - $ref: '#/components/responses/Payment-Required' - '403': - $ref: '#/components/responses/Forbidden' - '404': - $ref: '#/components/responses/Not-Found' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - description: | - The *Get customer* endpoint returns a single customer for a given customerId. - - [Customers](https://docs.codat.io/lending-api#/schemas/Customer) are people or organizations that buy goods or services from the SMB. - - Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data). - operationId: get-accounting-customer - x-speakeasy-group: accounts-receivable.customers - '/companies/{companyId}/connections/{connectionId}/data/customers/{customerId}/attachments': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - - $ref: '#/components/parameters/customerId' - get: - tags: - - Accounts receivable - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/Attachments' - '401': - $ref: '#/components/responses/Unauthorized' - '402': - $ref: '#/components/responses/Payment-Required' - '403': - $ref: '#/components/responses/Forbidden' - '404': - $ref: '#/components/responses/Not-Found' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - summary: List customer attachments - description: |- - The *List customer attachments* endpoint returns a list of attachments avialable to download for given `customerId`. - - [Customers](https://docs.codat.io/lending-api#/schemas/Customer) are people or organizations that buy goods or services from the SMB. - operationId: list-accounting-customer-attachments - x-speakeasy-group: accounts-receivable.customers - '/companies/{companyId}/connections/{connectionId}/data/customers/{customerId}/attachments/{attachmentId}': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - - $ref: '#/components/parameters/customerId' - - $ref: '#/components/parameters/attachmentId' - get: - tags: - - Accounts receivable - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/AccountingAttachment' - examples: {} - '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' - summary: Get customer attachment - description: | - The *Get customer attachment* endpoint returns a specific attachment for a given `customerId` and `attachmentId`. - - [Customers](https://docs.codat.io/lending-api#/schemas/Customer) are people or organizations that buy goods or services from the SMB. - operationId: get-accounting-customer-attachment - x-speakeasy-group: accounts-receivable.customers - '/companies/{companyId}/connections/{connectionId}/data/customers/{customerId}/attachments/{attachmentId}/download': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - - $ref: '#/components/parameters/customerId' - - $ref: '#/components/parameters/attachmentId' - get: - tags: - - Accounts receivable - responses: - '200': - description: Success - content: - application/octet-stream: - schema: - title: Data - type: string - format: binary - '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' - summary: Download customer attachment - description: |- - The *Download customer attachment* endpoint downloads a specific attachment for a given `customerId` and `attachmentId`. - - [Customers](https://docs.codat.io/lending-api#/schemas/Customer) are people or organizations that buy goods or services from the SMB. - operationId: download-accounting-customer-attachment - x-speakeasy-group: accounts-receivable.customers - '/companies/{companyId}/connections/{connectionId}/data/directCosts': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - get: - tags: - - Transactions - summary: List direct costs - 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/AccountingDirectCosts' - examples: - Clear Books: - value: - results: - - id: 994ad234-ca05-466e-8e6a-117783b38cf6 - reference: 005b7b62-dc9f-42d2-85a2-4a2cefc6bab2 - note: 'Direct Cost with 1 line items, totaling 242.20' - contactRef: - id: D4Q4iYwHou - dataType: suppliers - issueDate: '2022-04-27T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Underground - Drain Saddle Branches 160mm x 110mm x 87 � - accountRef: - id: 7403e960-5b72-42ff-abf4-c870ad8910bd - name: Purchases - taxRateRef: - id: 6c88aff3-7cb9-4980-a3d3-443e72e02498 - name: Sales Tax (10%) - effectiveTaxRate: 10 - unitAmount: 220.18 - quantity: 1 - discountAmount: 0 - discountPercentage: 0 - subTotal: 220.18 - taxAmount: 22.02 - totalAmount: 242.2 - itemRef: - id: '2' - name: Solvent Weld Branch 160mm x 110mm x 87 � - trackingCategoryRefs: [] - paymentAllocations: - - payment: - id: 994ad234-ca05-466e-8e6a-117783b38cf6 - note: Payment for direct cost 994ad234-ca05-466e-8e6a-117783b38cf6 - reference: Direct Cost 994ad234-ca05-466e-8e6a-117783b38cf6 - accountRef: - id: dbcaf288-2b39-4b95-8ab3-42202ab15918 - name: Business Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-04-27T00:00:00' - totalAmount: 242.2 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2022-04-27T00:00:00' - totalAmount: -242.2 - subTotal: 220.18 - taxAmount: 22.02 - totalAmount: 242.2 - modifiedDate: '2023-04-26T12:38:18Z' - sourceModifiedDate: '2022-09-18T20:59:02' - metadata: - isDeleted: false - - id: 735b5f9b-9e58-4f8f-8a9d-083de599986c - reference: 7d011ce8-89ae-43e7-a2ed-cf028534ccdc - note: 'Direct Cost with 4 line items, totaling 13684.57' - contactRef: - id: d3tf43eghS - dataType: suppliers - issueDate: '2022-05-02T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Underground - Drain Yard Gully - accountRef: - id: 7403e960-5b72-42ff-abf4-c870ad8910bd - name: Purchases - taxRateRef: - id: 6c88aff3-7cb9-4980-a3d3-443e72e02498 - name: Sales Tax (10%) - effectiveTaxRate: 10 - unitAmount: 148.88 - quantity: 5 - discountAmount: 73.62 - discountPercentage: 9.89 - subTotal: 670.78 - taxAmount: 67.08 - totalAmount: 737.86 - itemRef: - id: 00491160-6ee5-4d76-9f34-998f00687481 - name: Aluminium Silt Bucket - trackingCategoryRefs: [] - - description: Underground - Drain Bottle Gullies 90 degree Rectangular - accountRef: - id: 7403e960-5b72-42ff-abf4-c870ad8910bd - name: Purchases - taxRateRef: - id: 6c88aff3-7cb9-4980-a3d3-443e72e02498 - name: Sales Tax (10%) - effectiveTaxRate: 10 - unitAmount: 82.68 - quantity: 3 - discountAmount: 0 - discountPercentage: 0 - subTotal: 248.04 - taxAmount: 24.8 - totalAmount: 272.84 - itemRef: - id: '6' - name: Back Inlet Roddable Gully 90� Outlet Rectangular Grid - trackingCategoryRefs: [] - - description: Grease Trap - accountRef: - id: 7403e960-5b72-42ff-abf4-c870ad8910bd - name: Purchases - taxRateRef: - id: 6c88aff3-7cb9-4980-a3d3-443e72e02498 - name: Sales Tax (10%) - effectiveTaxRate: 10 - unitAmount: 1192.51 - quantity: 8 - discountAmount: 0 - discountPercentage: 0 - subTotal: 9540.08 - taxAmount: 954.01 - totalAmount: 10494.09 - itemRef: - id: 9409d23d-1011-432e-98a4-591fcd8d5404 - name: 300 Litre Grease Trap - trackingCategoryRefs: [] - - description: Underground - Drain Saddle Branches 160mm x 110mm x 87 � - accountRef: - id: 7403e960-5b72-42ff-abf4-c870ad8910bd - name: Purchases - taxRateRef: - id: 6c88aff3-7cb9-4980-a3d3-443e72e02498 - name: Sales Tax (10%) - effectiveTaxRate: 10 - unitAmount: 220.18 - quantity: 9 - discountAmount: 0 - discountPercentage: 0 - subTotal: 1981.62 - taxAmount: 198.16 - totalAmount: 2179.78 - itemRef: - id: '2' - name: Solvent Weld Branch 160mm x 110mm x 87 � - trackingCategoryRefs: - - id: costcode_1 - name: Green Concrete - paymentAllocations: - - payment: - id: 735b5f9b-9e58-4f8f-8a9d-083de599986c - note: Payment for direct cost 735b5f9b-9e58-4f8f-8a9d-083de599986c - reference: Direct Cost 735b5f9b-9e58-4f8f-8a9d-083de599986c - accountRef: - id: dbcaf288-2b39-4b95-8ab3-42202ab15918 - name: Business Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-05-02T00:00:00' - totalAmount: 13684.57 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2022-05-02T00:00:00' - totalAmount: -13684.57 - subTotal: 12440.52 - taxAmount: 1244.05 - totalAmount: 13684.57 - modifiedDate: '2023-04-26T12:38:18Z' - sourceModifiedDate: '2022-10-13T07:15:02' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 90 - _links: - current: - href: /companies/354a121b-855f-4d25-90ad-0905b498c1c0/connections/57b731ba-1d45-4386-ba58-2a1ca0234624/data/directCosts?page=1&pageSize=2 - self: - href: /companies/354a121b-855f-4d25-90ad-0905b498c1c0/connections/57b731ba-1d45-4386-ba58-2a1ca0234624/data/directCosts - next: - href: /companies/354a121b-855f-4d25-90ad-0905b498c1c0/connections/57b731ba-1d45-4386-ba58-2a1ca0234624/data/directCosts?page=2&pageSize=2 - Dynamics 365 Business Central: - value: - results: - - id: 6ab3e391-97d7-ec11-8e7e-000d3a0cfe40 - reference: INS000090 - note: '3931' - issueDate: '2022-05-21T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: test expenses 2 - accountRef: - id: '30' - taxRateRef: - id: cc81fea8-2917-ed11-90eb-002248009df3 - name: '' - effectiveTaxRate: 0 - unitAmount: 17.89 - quantity: -1 - subTotal: -17.89 - taxAmount: 0 - totalAmount: -17.89 - trackingCategoryRefs: [] - paymentAllocations: - - payment: - id: 6ab3e391-97d7-ec11-8e7e-000d3a0cfe40 - accountRef: - id: TEST - currency: GBP - currencyRate: 1 - paidOnDate: '2022-05-21T00:00:00' - totalAmount: -17.89 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2022-05-21T00:00:00' - totalAmount: -17.89 - subTotal: -17.89 - taxAmount: 0 - totalAmount: -17.89 - modifiedDate: '2023-03-27T14:21:25Z' - sourceModifiedDate: '2022-05-19T17:17:33Z' - metadata: - isDeleted: false - - id: b832f518-88d7-ec11-8e7e-000d3a0cfe40 - reference: INS000050 - note: '3915' - issueDate: '2022-05-23T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Utilities Expense - accountRef: - id: '31300' - taxRateRef: - id: cc81fea8-2917-ed11-90eb-002248009df3 - name: '' - effectiveTaxRate: 0 - unitAmount: 14.76 - quantity: 1 - subTotal: 14.76 - taxAmount: 0 - totalAmount: 14.76 - trackingCategoryRefs: [] - paymentAllocations: - - payment: - id: b832f518-88d7-ec11-8e7e-000d3a0cfe40 - accountRef: - id: TEST - currency: GBP - currencyRate: 1 - paidOnDate: '2022-05-23T00:00:00' - totalAmount: 14.76 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2022-05-23T00:00:00' - totalAmount: 14.76 - subTotal: 14.76 - taxAmount: 0 - totalAmount: 14.76 - modifiedDate: '2023-03-27T14:21:25Z' - sourceModifiedDate: '2022-05-19T15:26:48Z' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 67 - _links: - current: - href: /companies/d6849caf-c146-41be-8335-b73346e3bd84/connections/60acb117-5cf5-4745-b069-491551da4066/data/directCosts?page=1&pageSize=2 - self: - href: /companies/d6849caf-c146-41be-8335-b73346e3bd84/connections/60acb117-5cf5-4745-b069-491551da4066/data/directCosts - next: - href: /companies/d6849caf-c146-41be-8335-b73346e3bd84/connections/60acb117-5cf5-4745-b069-491551da4066/data/directCosts?page=2&pageSize=2 - FreeAgent: - value: - results: - - id: '190325254' - note: 'Atomic Software Limite Wellington,Nzl' - issueDate: '2017-11-23T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: 'Atomic Software Limite Wellington,Nzl' - accountRef: - id: '285' - name: Accommodation and Meals - unitAmount: 11.92 - quantity: 1 - subTotal: 11.92 - taxAmount: 2.38 - totalAmount: 14.3 - trackingCategoryRefs: [] - paymentAllocations: - - payment: - id: '190325254' - note: 'Atomic Software Limite Wellington,Nzl' - accountRef: - id: 750-1 - name: 'Bank Account: Business Current Account' - currency: GBP - paidOnDate: '2017-11-23T00:00:00' - totalAmount: 14.3 - allocation: - currency: GBP - allocatedOnDate: '2017-11-23T00:00:00' - totalAmount: 14.3 - subTotal: 11.92 - taxAmount: 2.38 - totalAmount: 14.3 - modifiedDate: '2023-04-25T14:20:36Z' - sourceModifiedDate: '2019-11-22T14:31:14Z' - metadata: - isDeleted: false - - id: '348108455' - note: 'Atomic Software Limite Wellington,Nzl' - issueDate: '2017-11-23T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: 'Atomic Software Limite Wellington,Nzl' - accountRef: - id: '285' - name: Accommodation and Meals - unitAmount: 11.92 - quantity: 1 - subTotal: 11.92 - taxAmount: 2.38 - totalAmount: 14.3 - trackingCategoryRefs: [] - paymentAllocations: - - payment: - id: '348108455' - note: 'Atomic Software Limite Wellington,Nzl' - accountRef: - id: 750-1 - name: 'Bank Account: Business Current Account' - currency: GBP - paidOnDate: '2017-11-23T00:00:00' - totalAmount: 14.3 - allocation: - currency: GBP - allocatedOnDate: '2017-11-23T00:00:00' - totalAmount: 14.3 - subTotal: 11.92 - taxAmount: 2.38 - totalAmount: 14.3 - modifiedDate: '2023-04-25T14:20:36Z' - sourceModifiedDate: '2022-10-24T12:35:29Z' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 456 - _links: - current: - href: /companies/071ad738-68f3-4561-afd0-69bab9df0803/connections/4fd7c69f-ecc1-45f5-83f2-42ed3391e386/data/directCosts?page=1&pageSize=2 - self: - href: /companies/071ad738-68f3-4561-afd0-69bab9df0803/connections/4fd7c69f-ecc1-45f5-83f2-42ed3391e386/data/directCosts - next: - href: /companies/071ad738-68f3-4561-afd0-69bab9df0803/connections/4fd7c69f-ecc1-45f5-83f2-42ed3391e386/data/directCosts?page=2&pageSize=2 - FreshBooks: - value: - results: - - id: '29870062' - reference: Food to keep me working - note: Food to keep me working - contactRef: - id: Sainsburys - dataType: suppliers - issueDate: '2019-02-12T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Food to keep me working - accountRef: - id: '3361426' - name: Meals & Entertainment - unitAmount: 10 - quantity: 1 - subTotal: 10 - taxAmount: 0 - totalAmount: 10 - trackingCategoryRefs: - - id: '4370503' - name: Meals & Entertainment - paymentAllocations: [] - subTotal: 10 - taxAmount: 0 - totalAmount: 10 - modifiedDate: '2023-03-24T16:07:23Z' - sourceModifiedDate: '2021-10-28T15:21:46' - metadata: - isDeleted: false - - id: '107509561' - reference: Buying pencils - note: Buying pencils - contactRef: - id: Pencils Wholesale - dataType: suppliers - issueDate: '2020-01-27T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Buying pencils - accountRef: - id: '3380551' - name: Supplies - unitAmount: 43.48 - quantity: 1 - subTotal: 43.48 - taxAmount: 6.52 - totalAmount: 50 - trackingCategoryRefs: - - id: '5397997' - name: Supplies - paymentAllocations: [] - subTotal: 43.48 - taxAmount: 6.52 - totalAmount: 50 - modifiedDate: '2023-03-24T16:07:23Z' - sourceModifiedDate: '2021-10-28T15:21:47' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 73 - _links: - current: - href: /companies/3691c49e-0db4-4172-b3ab-e4084c365013/connections/100d8da9-91b1-495c-ae2e-2219c244acae/data/directCosts?page=1&pageSize=2 - self: - href: /companies/3691c49e-0db4-4172-b3ab-e4084c365013/connections/100d8da9-91b1-495c-ae2e-2219c244acae/data/directCosts - next: - href: /companies/3691c49e-0db4-4172-b3ab-e4084c365013/connections/100d8da9-91b1-495c-ae2e-2219c244acae/data/directCosts?page=2&pageSize=2 - QuickBooks Desktop: - value: - results: - - id: D7B-933784104 - reference: '93' - contactRef: - id: 360000-933272659 - dataType: suppliers - issueDate: '2022-12-01T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - accountRef: - id: 3C0000-933270542 - name: Rent - unitAmount: 1200 - quantity: 1 - subTotal: 1200 - totalAmount: 1200 - trackingCategoryRefs: - - id: 80000007-1197713802 - name: Overhead - tracking: - recordRefs: - - id: 80000007-1197713802 - dataType: trackingCategories - - id: 800000B0-1197755238 - dataType: customers - paymentAllocations: - - payment: - id: D7B-933784104 - accountRef: - id: 20000-933270541 - name: Checking - currency: GBP - currencyRate: 1 - paidOnDate: '2022-12-01T00:00:00' - totalAmount: 1200 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2022-12-01T00:00:00' - totalAmount: 1200 - subTotal: 1200 - taxAmount: 0 - totalAmount: 1200 - modifiedDate: '2023-04-26T09:13:57Z' - sourceModifiedDate: '2023-12-16T05:04:10' - metadata: - isDeleted: false - - id: DFA-933785132 - reference: '95' - contactRef: - id: 320000-933272659 - dataType: suppliers - issueDate: '2022-12-05T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - accountRef: - id: 280000-933270542 - name: Freight & Delivery - unitAmount: 35 - quantity: 1 - subTotal: 35 - totalAmount: 35 - trackingCategoryRefs: - - id: 40000-933272658 - name: Remodel - tracking: - recordRefs: - - id: 40000-933272658 - dataType: trackingCategories - - id: 1E0000-933272658 - dataType: customers - paymentAllocations: - - payment: - id: DFA-933785132 - accountRef: - id: 20000-933270541 - name: Checking - currency: GBP - currencyRate: 1 - paidOnDate: '2022-12-05T00:00:00' - totalAmount: 35 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2022-12-05T00:00:00' - totalAmount: 35 - subTotal: 35 - taxAmount: 0 - totalAmount: 35 - modifiedDate: '2023-04-26T09:13:57Z' - sourceModifiedDate: '2023-12-16T05:04:11' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 250 - _links: - current: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/connections/2c26b4da-97d4-4ba9-baad-1e18b49b96ac/data/directCosts?page=1&pageSize=2 - self: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/connections/2c26b4da-97d4-4ba9-baad-1e18b49b96ac/data/directCosts - next: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/connections/2c26b4da-97d4-4ba9-baad-1e18b49b96ac/data/directCosts?page=2&pageSize=2 - QuickBooks Online Sandbox: - value: - results: - - id: PUR-85 - note: Opening Balance from Bank - issueDate: '2015-08-12T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - accountRef: - id: '55' - name: Opening Balance Equity - taxRateRef: - id: NON - name: NON - effectiveTaxRate: 0 - unitAmount: 3831.8 - quantity: 1 - subTotal: 3831.8 - taxAmount: 0 - totalAmount: 3831.8 - trackingCategoryRefs: [] - tracking: - recordRefs: [] - paymentAllocations: - - payment: - id: '85' - reference: Opening Balance from Bank - accountRef: - id: '57' - name: Visa Credit Card - currency: GBP - currencyRate: 1 - paidOnDate: '2015-08-12T00:00:00' - totalAmount: 3831.8 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2015-08-12T00:00:00' - totalAmount: -3831.8 - subTotal: 3831.8 - taxAmount: 0 - totalAmount: 3831.8 - modifiedDate: '2023-04-26T09:36:40Z' - sourceModifiedDate: '2016-09-12T18:13:07Z' - metadata: - isDeleted: false - - id: PUR-3617 - reference: '2001' - contactRef: - id: '27' - dataType: suppliers - issueDate: '2015-11-27T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Insurance - general liability - accountRef: - id: '22' - name: Insurance Expense-General Liability Insurance - taxRateRef: - id: 3_Bills - name: 20.0% S Bills - effectiveTaxRate: 20 - unitAmount: 750 - quantity: 1 - subTotal: 750 - taxAmount: 150 - totalAmount: 900 - trackingCategoryRefs: [] - tracking: - recordRefs: [] - paymentAllocations: - - payment: - id: '3617' - note: '2001' - accountRef: - id: '81' - name: Current - currency: GBP - currencyRate: 1 - paidOnDate: '2015-11-27T00:00:00' - totalAmount: 900 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2015-11-27T00:00:00' - totalAmount: -900 - subTotal: 750 - taxAmount: 150 - totalAmount: 900 - modifiedDate: '2023-04-26T09:36:40Z' - sourceModifiedDate: '2022-08-19T10:19:56Z' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 4460 - _links: - current: - href: /companies/5a7f3597-36e1-4216-86fe-289ad36088a6/connections/1f9f6013-f8a5-4278-8a47-3ab7fdb6c24c/data/directCosts?page=1&pageSize=2 - self: - href: /companies/5a7f3597-36e1-4216-86fe-289ad36088a6/connections/1f9f6013-f8a5-4278-8a47-3ab7fdb6c24c/data/directCosts - next: - href: /companies/5a7f3597-36e1-4216-86fe-289ad36088a6/connections/1f9f6013-f8a5-4278-8a47-3ab7fdb6c24c/data/directCosts?page=2&pageSize=2 - QuickBooks Online: - value: - results: - - id: PUR-15 - note: Payment to Google - issueDate: '2018-09-21T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Payment to Google - accountRef: - id: '37' - name: Computer equipment accumulated depreciation brought forward - taxRateRef: - id: NON - name: NON - effectiveTaxRate: 0 - unitAmount: 1.59 - quantity: 1 - subTotal: 1.59 - taxAmount: 0 - totalAmount: 1.59 - trackingCategoryRefs: [] - paymentAllocations: - - payment: - id: '15' - reference: Payment to Google - accountRef: - id: '61' - name: Dave PP Current - currency: GBP - currencyRate: 1 - paidOnDate: '2018-09-21T00:00:00' - totalAmount: 1.59 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2018-09-21T00:00:00' - totalAmount: -1.59 - subTotal: 1.59 - taxAmount: 0 - totalAmount: 1.59 - modifiedDate: '2023-01-18T11:02:59Z' - sourceModifiedDate: '2018-12-17T14:56:44Z' - - id: PUR-9303 - note: Payment to Google - contactRef: - id: '4' - dataType: suppliers - issueDate: '2018-09-21T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Payment to Google - accountRef: - id: '37' - name: Computer equipment accumulated depreciation brought forward - taxRateRef: - id: NON - name: NON - effectiveTaxRate: 0 - unitAmount: 1.59 - quantity: 1 - subTotal: 1.59 - taxAmount: 0 - totalAmount: 1.59 - trackingCategoryRefs: [] - paymentAllocations: - - payment: - id: '9303' - reference: Payment to Google - accountRef: - id: '61' - name: Dave PP Current - currency: GBP - currencyRate: 1 - paidOnDate: '2018-09-21T00:00:00' - totalAmount: 1.59 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2018-09-21T00:00:00' - totalAmount: -1.59 - subTotal: 1.59 - taxAmount: 0 - totalAmount: 1.59 - modifiedDate: '2023-01-18T11:02:59Z' - sourceModifiedDate: '2022-07-11T10:32:16Z' - pageNumber: 1 - pageSize: 2 - totalResults: 2176 - _links: - current: - href: /companies/10818b5e-6e6a-4ed4-a1c5-3e3efe626e87/connections/9e28a776-f4be-425b-8a3d-ad49956de2c9/data/directCosts?page=1&pageSize=2 - self: - href: /companies/10818b5e-6e6a-4ed4-a1c5-3e3efe626e87/connections/9e28a776-f4be-425b-8a3d-ad49956de2c9/data/directCosts - next: - href: /companies/10818b5e-6e6a-4ed4-a1c5-3e3efe626e87/connections/9e28a776-f4be-425b-8a3d-ad49956de2c9/data/directCosts?page=2&pageSize=2 - Sage 50 (UK): - value: - results: - - id: '73' - reference: DD/STO - issueDate: '2021-01-29T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Electrcity Direct Debit - accountRef: - id: '7200' - name: Electricity - taxRateRef: - id: '3' - unitAmount: 150 - quantity: 1 - subTotal: 150 - taxAmount: 12 - totalAmount: 162 - trackingCategoryRefs: - - id: department_0 - name: Default - paymentAllocations: - - payment: - id: '73' - reference: DD/STO - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2021-01-29T00:00:00' - totalAmount: 162 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2021-01-29T00:00:00' - totalAmount: 162 - subTotal: 150 - taxAmount: 12 - totalAmount: 162 - modifiedDate: '2023-03-30T14:42:35Z' - sourceModifiedDate: '2022-11-25T09:43:54' - metadata: - isDeleted: false - - id: '52' - reference: '568953' - issueDate: '2021-01-30T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Vat Payment Quater End 3112.96 - accountRef: - id: '2202' - name: VAT Liability - taxRateRef: - id: '9' - name: Non-Vatable Tax Code - effectiveTaxRate: 0 - unitAmount: 1497.58 - quantity: 1 - subTotal: 1497.58 - taxAmount: 0 - totalAmount: 1497.58 - trackingCategoryRefs: - - id: department_0 - name: Default - paymentAllocations: - - payment: - id: '52' - reference: '568953' - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2021-01-30T00:00:00' - totalAmount: 1497.58 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2021-01-30T00:00:00' - totalAmount: 1497.58 - subTotal: 1497.58 - taxAmount: 0 - totalAmount: 1497.58 - modifiedDate: '2023-03-30T14:42:35Z' - sourceModifiedDate: '2022-11-25T09:43:54' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 106 - _links: - current: - href: /companies/cf5f2a47-2990-4221-bae6-0c19c86ac304/connections/8ee4910f-4fc1-47e6-89b1-5931fb33d8f7/data/directCosts?page=1&pageSize=2 - self: - href: /companies/cf5f2a47-2990-4221-bae6-0c19c86ac304/connections/8ee4910f-4fc1-47e6-89b1-5931fb33d8f7/data/directCosts - next: - href: /companies/cf5f2a47-2990-4221-bae6-0c19c86ac304/connections/8ee4910f-4fc1-47e6-89b1-5931fb33d8f7/data/directCosts?page=2&pageSize=2 - Sage Intacct: - value: - results: - - id: 'CCTRANSACTION:4355' - reference: '' - note: Test 1 - issueDate: '2020-01-20T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - accountRef: - id: '195' - name: Insurance - taxRateRef: - id: '62018' - unitAmount: 9.99 - quantity: 1 - subTotal: 9.99 - taxAmount: 2 - totalAmount: 11.99 - trackingCategoryRefs: - - id: LOCATION-8 - name: United Kingdom - paymentAllocations: - - payment: - id: '4355' - note: '' - reference: '' - accountRef: - id: '348' - name: CMRR Renewal - currency: GBP - paidOnDate: '2020-01-20T00:00:00' - totalAmount: 11.99 - allocation: - currency: GBP - allocatedOnDate: '2020-01-20T00:00:00' - totalAmount: 11.99 - subTotal: 9.99 - taxAmount: 2 - totalAmount: 11.99 - modifiedDate: '2022-10-28T11:10:28Z' - sourceModifiedDate: '2022-08-22T09:26:42' - - id: 'CCTRANSACTION:4356' - reference: '' - note: Test 1 - issueDate: '2020-01-20T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - accountRef: - id: '195' - name: Insurance - taxRateRef: - id: '62022' - unitAmount: 9.99 - quantity: 1 - subTotal: 9.99 - taxAmount: 2 - totalAmount: 11.99 - trackingCategoryRefs: - - id: LOCATION-8 - name: United Kingdom - paymentAllocations: - - payment: - id: '4356' - note: '' - reference: '' - accountRef: - id: '348' - name: CMRR Renewal - currency: GBP - paidOnDate: '2020-01-20T00:00:00' - totalAmount: 11.99 - allocation: - currency: GBP - allocatedOnDate: '2020-01-20T00:00:00' - totalAmount: 11.99 - subTotal: 9.99 - taxAmount: 2 - totalAmount: 11.99 - modifiedDate: '2022-10-28T11:10:28Z' - sourceModifiedDate: '2022-02-17T23:26:16' - pageNumber: 1 - pageSize: 2 - totalResults: 57 - _links: - current: - href: /companies/71ca2b28-8e86-41e7-8c55-f681042b11a0/connections/be80adfc-1157-4db4-9170-f8bcbbc051ba/data/directCosts?page=1&pageSize=2 - self: - href: /companies/71ca2b28-8e86-41e7-8c55-f681042b11a0/connections/be80adfc-1157-4db4-9170-f8bcbbc051ba/data/directCosts - next: - href: /companies/71ca2b28-8e86-41e7-8c55-f681042b11a0/connections/be80adfc-1157-4db4-9170-f8bcbbc051ba/data/directCosts?page=2&pageSize=2 - Xero: - value: - results: - - id: dc1bb034-7bbf-4e84-b418-b7f4aee59d72 - reference: '' - contactRef: - id: 737982b0-2811-44c9-bdb3-3b26a3a6ef8c - dataType: suppliers - issueDate: '2022-11-22T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Bank fee - accountRef: - id: 2c410b86-de57-49d1-b540-4e8ce824979c - name: Bank Fees - unitAmount: 15 - quantity: 1 - subTotal: 15 - taxAmount: 0 - totalAmount: 15 - trackingCategoryRefs: [] - paymentAllocations: - - payment: - id: dc1bb034-7bbf-4e84-b418-b7f4aee59d72 - accountRef: - id: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - name: Business Bank Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-11-22T00:00:00' - totalAmount: 15 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2022-11-22T00:00:00' - totalAmount: 15 - subTotal: 15 - taxAmount: 0 - totalAmount: 15 - modifiedDate: '2023-03-15T20:36:09Z' - sourceModifiedDate: '2021-01-03T21:43:46' - metadata: - isDeleted: false - - id: 521c2396-7f74-404c-9cca-31115296b808 - reference: Eft - contactRef: - id: 74ea95ea-6e1e-435d-9c30-0dff8ae1bd80 - dataType: suppliers - issueDate: '2022-11-23T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Misc stationery - accountRef: - id: cba6527d-f102-4538-b421-e483233e9d5a - name: Printing & Stationery - taxRateRef: - id: INPUT2 - name: 20% (VAT on Expenses) - effectiveTaxRate: 20 - unitAmount: 18.09 - quantity: 1 - subTotal: 18.09 - taxAmount: 3.62 - totalAmount: 21.71 - trackingCategoryRefs: [] - paymentAllocations: - - payment: - id: 521c2396-7f74-404c-9cca-31115296b808 - accountRef: - id: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - name: Business Bank Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-11-23T00:00:00' - totalAmount: 21.71 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2022-11-23T00:00:00' - totalAmount: 21.71 - subTotal: 18.09 - taxAmount: 3.62 - totalAmount: 21.71 - modifiedDate: '2023-03-15T20:36:09Z' - sourceModifiedDate: '2021-01-03T21:43:51' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 15 - _links: - current: - href: /companies/5ced9667-a310-443a-a711-958d36377141/connections/6a4bcf97-e46a-465c-abf6-c42cec8e48c0/data/directCosts?page=1&pageSize=2 - self: - href: /companies/5ced9667-a310-443a-a711-958d36377141/connections/6a4bcf97-e46a-465c-abf6-c42cec8e48c0/data/directCosts - next: - href: /companies/5ced9667-a310-443a-a711-958d36377141/connections/6a4bcf97-e46a-465c-abf6-c42cec8e48c0/data/directCosts?page=2&pageSize=2 - '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' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - description: "The *List direct costs* endpoint returns a list of [direct costs](https://docs.codat.io/lending-api#/schemas/DirectCost) for a given company's connection.\n\n[Direct costs](https://docs.codat.io/lending-api#/schemas/DirectCost) are business expenses that don't impact Accounts Payable.\n\nBefore using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data).\n " - operationId: list-accounting-direct-costs - x-speakeasy-group: transactions.direct-costs - '/companies/{companyId}/connections/{connectionId}/data/directCosts/{directCostId}': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - - $ref: '#/components/parameters/accountingDirectCostId' - get: - tags: - - Transactions - summary: Get direct cost - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/AccountingDirectCost' - examples: - Clear Books: - value: - id: 994ad234-ca05-466e-8e6a-117783b38cf6 - reference: 005b7b62-dc9f-42d2-85a2-4a2cefc6bab2 - note: 'Direct Cost with 1 line items, totaling 242.20' - contactRef: - id: D4Q4iYwHou - dataType: suppliers - issueDate: '2022-04-27T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Underground - Drain Saddle Branches 160mm x 110mm x 87 � - accountRef: - id: 7403e960-5b72-42ff-abf4-c870ad8910bd - name: Purchases - taxRateRef: - id: 6c88aff3-7cb9-4980-a3d3-443e72e02498 - name: Sales Tax (10%) - effectiveTaxRate: 10 - unitAmount: 220.18 - quantity: 1 - discountAmount: 0 - discountPercentage: 0 - subTotal: 220.18 - taxAmount: 22.02 - totalAmount: 242.2 - itemRef: - id: '2' - name: Solvent Weld Branch 160mm x 110mm x 87 � - trackingCategoryRefs: [] - paymentAllocations: - - payment: - id: 994ad234-ca05-466e-8e6a-117783b38cf6 - note: Payment for direct cost 994ad234-ca05-466e-8e6a-117783b38cf6 - reference: Direct Cost 994ad234-ca05-466e-8e6a-117783b38cf6 - accountRef: - id: dbcaf288-2b39-4b95-8ab3-42202ab15918 - name: Business Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-04-27T00:00:00' - totalAmount: 242.2 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2022-04-27T00:00:00' - totalAmount: -242.2 - subTotal: 220.18 - taxAmount: 22.02 - totalAmount: 242.2 - modifiedDate: '2023-04-26T12:38:18Z' - sourceModifiedDate: '2022-09-18T20:59:02' - metadata: - isDeleted: false - Dynamics 365 Business Central: - value: - id: 6ab3e391-97d7-ec11-8e7e-000d3a0cfe40 - reference: INS000090 - note: '3931' - issueDate: '2022-05-21T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: test expenses 2 - accountRef: - id: '30' - taxRateRef: - id: cc81fea8-2917-ed11-90eb-002248009df3 - name: '' - effectiveTaxRate: 0 - unitAmount: 17.89 - quantity: -1 - subTotal: -17.89 - taxAmount: 0 - totalAmount: -17.89 - trackingCategoryRefs: [] - paymentAllocations: - - payment: - id: 6ab3e391-97d7-ec11-8e7e-000d3a0cfe40 - accountRef: - id: TEST - currency: GBP - currencyRate: 1 - paidOnDate: '2022-05-21T00:00:00' - totalAmount: -17.89 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2022-05-21T00:00:00' - totalAmount: -17.89 - subTotal: -17.89 - taxAmount: 0 - totalAmount: -17.89 - modifiedDate: '2023-03-27T14:21:25Z' - sourceModifiedDate: '2022-05-19T17:17:33Z' - metadata: - isDeleted: false - FreeAgent: - value: - id: '190325254' - note: 'Atomic Software Limite Wellington,Nzl' - issueDate: '2017-11-23T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: 'Atomic Software Limite Wellington,Nzl' - accountRef: - id: '285' - name: Accommodation and Meals - unitAmount: 11.92 - quantity: 1 - subTotal: 11.92 - taxAmount: 2.38 - totalAmount: 14.3 - trackingCategoryRefs: [] - paymentAllocations: - - payment: - id: '190325254' - note: 'Atomic Software Limite Wellington,Nzl' - accountRef: - id: 750-1 - name: 'Bank Account: Business Current Account' - currency: GBP - paidOnDate: '2017-11-23T00:00:00' - totalAmount: 14.3 - allocation: - currency: GBP - allocatedOnDate: '2017-11-23T00:00:00' - totalAmount: 14.3 - subTotal: 11.92 - taxAmount: 2.38 - totalAmount: 14.3 - modifiedDate: '2023-04-25T14:20:36Z' - sourceModifiedDate: '2019-11-22T14:31:14Z' - metadata: - isDeleted: false - FreshBooks: - value: - id: '29870062' - reference: Food to keep me working - note: Food to keep me working - contactRef: - id: Sainsburys - dataType: suppliers - issueDate: '2019-02-12T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Food to keep me working - accountRef: - id: '3361426' - name: Meals & Entertainment - unitAmount: 10 - quantity: 1 - subTotal: 10 - taxAmount: 0 - totalAmount: 10 - trackingCategoryRefs: - - id: '4370503' - name: Meals & Entertainment - paymentAllocations: [] - subTotal: 10 - taxAmount: 0 - totalAmount: 10 - modifiedDate: '2023-03-24T16:07:23Z' - sourceModifiedDate: '2021-10-28T15:21:46' - metadata: - isDeleted: false - QuickBooks Desktop: - value: - id: D7B-933784104 - reference: '93' - contactRef: - id: 360000-933272659 - dataType: suppliers - issueDate: '2022-12-01T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - accountRef: - id: 3C0000-933270542 - name: Rent - unitAmount: 1200 - quantity: 1 - subTotal: 1200 - totalAmount: 1200 - trackingCategoryRefs: - - id: 80000007-1197713802 - name: Overhead - tracking: - recordRefs: - - id: 80000007-1197713802 - dataType: trackingCategories - - id: 800000B0-1197755238 - dataType: customers - paymentAllocations: - - payment: - id: D7B-933784104 - accountRef: - id: 20000-933270541 - name: Checking - currency: GBP - currencyRate: 1 - paidOnDate: '2022-12-01T00:00:00' - totalAmount: 1200 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2022-12-01T00:00:00' - totalAmount: 1200 - subTotal: 1200 - taxAmount: 0 - totalAmount: 1200 - modifiedDate: '2023-04-26T09:13:57Z' - sourceModifiedDate: '2023-12-16T05:04:10' - metadata: - isDeleted: false - QuickBooks Online Sandbox: - value: - id: PUR-85 - note: Opening Balance from Bank - issueDate: '2015-08-12T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - accountRef: - id: '55' - name: Opening Balance Equity - taxRateRef: - id: NON - name: NON - effectiveTaxRate: 0 - unitAmount: 3831.8 - quantity: 1 - subTotal: 3831.8 - taxAmount: 0 - totalAmount: 3831.8 - trackingCategoryRefs: [] - tracking: - recordRefs: [] - paymentAllocations: - - payment: - id: '85' - reference: Opening Balance from Bank - accountRef: - id: '57' - name: Visa Credit Card - currency: GBP - currencyRate: 1 - paidOnDate: '2015-08-12T00:00:00' - totalAmount: 3831.8 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2015-08-12T00:00:00' - totalAmount: -3831.8 - subTotal: 3831.8 - taxAmount: 0 - totalAmount: 3831.8 - modifiedDate: '2023-04-26T09:36:40Z' - sourceModifiedDate: '2016-09-12T18:13:07Z' - metadata: - isDeleted: false - QuickBooks Online: - value: - id: PUR-15 - note: Payment to Google - issueDate: '2018-09-21T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Payment to Google - accountRef: - id: '37' - name: Computer equipment accumulated depreciation brought forward - taxRateRef: - id: NON - name: NON - effectiveTaxRate: 0 - unitAmount: 1.59 - quantity: 1 - subTotal: 1.59 - taxAmount: 0 - totalAmount: 1.59 - trackingCategoryRefs: [] - paymentAllocations: - - payment: - id: '15' - reference: Payment to Google - accountRef: - id: '61' - name: Dave PP Current - currency: GBP - currencyRate: 1 - paidOnDate: '2018-09-21T00:00:00' - totalAmount: 1.59 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2018-09-21T00:00:00' - totalAmount: -1.59 - subTotal: 1.59 - taxAmount: 0 - totalAmount: 1.59 - modifiedDate: '2023-01-18T11:02:59Z' - sourceModifiedDate: '2018-12-17T14:56:44Z' - Sage 50 (UK): - value: - id: '73' - reference: DD/STO - issueDate: '2021-01-29T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Electrcity Direct Debit - accountRef: - id: '7200' - name: Electricity - taxRateRef: - id: '3' - unitAmount: 150 - quantity: 1 - subTotal: 150 - taxAmount: 12 - totalAmount: 162 - trackingCategoryRefs: - - id: department_0 - name: Default - paymentAllocations: - - payment: - id: '73' - reference: DD/STO - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2021-01-29T00:00:00' - totalAmount: 162 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2021-01-29T00:00:00' - totalAmount: 162 - subTotal: 150 - taxAmount: 12 - totalAmount: 162 - modifiedDate: '2023-03-30T14:42:35Z' - sourceModifiedDate: '2022-11-25T09:43:54' - metadata: - isDeleted: false - Sage Intacct: - value: - id: 'CCTRANSACTION:4355' - reference: '' - note: Test 1 - issueDate: '2020-01-20T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - accountRef: - id: '195' - name: Insurance - taxRateRef: - id: '62018' - unitAmount: 9.99 - quantity: 1 - subTotal: 9.99 - taxAmount: 2 - totalAmount: 11.99 - trackingCategoryRefs: - - id: LOCATION-8 - name: United Kingdom - paymentAllocations: - - payment: - id: '4355' - note: '' - reference: '' - accountRef: - id: '348' - name: CMRR Renewal - currency: GBP - paidOnDate: '2020-01-20T00:00:00' - totalAmount: 11.99 - allocation: - currency: GBP - allocatedOnDate: '2020-01-20T00:00:00' - totalAmount: 11.99 - subTotal: 9.99 - taxAmount: 2 - totalAmount: 11.99 - modifiedDate: '2022-10-28T11:10:28Z' - sourceModifiedDate: '2022-08-22T09:26:42' - Xero: - value: - id: dc1bb034-7bbf-4e84-b418-b7f4aee59d72 - reference: '' - contactRef: - id: 737982b0-2811-44c9-bdb3-3b26a3a6ef8c - dataType: suppliers - issueDate: '2022-11-22T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Bank fee - accountRef: - id: 2c410b86-de57-49d1-b540-4e8ce824979c - name: Bank Fees - unitAmount: 15 - quantity: 1 - subTotal: 15 - taxAmount: 0 - totalAmount: 15 - trackingCategoryRefs: [] - paymentAllocations: - - payment: - id: dc1bb034-7bbf-4e84-b418-b7f4aee59d72 - accountRef: - id: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - name: Business Bank Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-11-22T00:00:00' - totalAmount: 15 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2022-11-22T00:00:00' - totalAmount: 15 - subTotal: 15 - taxAmount: 0 - totalAmount: 15 - modifiedDate: '2023-03-15T20:36:09Z' - sourceModifiedDate: '2021-01-03T21:43:46' - metadata: - isDeleted: false - '401': - $ref: '#/components/responses/Unauthorized' - '402': - $ref: '#/components/responses/Payment-Required' - '403': - $ref: '#/components/responses/Forbidden' - '404': - $ref: '#/components/responses/Not-Found' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - description: | - The *Get direct cost* endpoint returns a single direct cost for a given directCostId. - - [Direct costs](https://docs.codat.io/lending-api#/schemas/DirectCost) are business expenses that don't impact Accounts Payable. - - Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data). - operationId: get-accounting-direct-cost - x-speakeasy-group: transactions.direct-costs - '/companies/{companyId}/connections/{connectionId}/data/directCosts/{directCostId}/attachments/{attachmentId}': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - - $ref: '#/components/parameters/accountingDirectCostId' - get: - tags: - - Transactions - summary: Get direct cost attachment - parameters: - - $ref: '#/components/parameters/attachmentId' - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/AccountingAttachment' - examples: {} - '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: |- - The *Get direct cost attachment* endpoint returns a specific attachment for a given `directCostId` and `attachmentId`. - - [Direct costs](https://docs.codat.io/lending-api#/schemas/DirectCost) are business expenses that don't impact Accounts Payable. - operationId: get-accounting-direct-cost-attachment - x-speakeasy-group: transactions.direct-costs - '/companies/{companyId}/connections/{connectionId}/data/directCosts/{directCostId}/attachments/{attachmentId}/download': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - - $ref: '#/components/parameters/accountingDirectCostId' - get: - tags: - - Transactions - summary: Download direct cost attachment - parameters: - - $ref: '#/components/parameters/attachmentId' - responses: - '200': - description: Success - content: - application/octet-stream: - schema: - title: Data - type: string - format: binary - '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: | - The *Download direct cost attachment* endpoint downloads a specific attachment for a given `directCostId` and `attachmentId`. - - [Direct costs](https://docs.codat.io/lending-api#/schemas/DirectCost) are business expenses that don't impact Accounts Payable. - operationId: download-accounting-direct-cost-attachment - x-speakeasy-group: transactions.direct-costs - '/companies/{companyId}/connections/{connectionId}/data/directCosts/{directCostId}/attachments': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - - $ref: '#/components/parameters/accountingDirectCostId' - get: - tags: - - Transactions - summary: List direct cost attachments - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/Attachments' - examples: {} - '401': - $ref: '#/components/responses/Unauthorized' - '402': - $ref: '#/components/responses/Payment-Required' - '403': - $ref: '#/components/responses/Forbidden' - '404': - $ref: '#/components/responses/Not-Found' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - description: | - The *List direct cost attachments* endpoint returns a list of attachments available to download for given `directCostId`. - - [Direct costs](https://docs.codat.io/lending-api#/schemas/DirectCost) are business expenses that don't impact Accounts Payable. - operationId: list-accounting-direct-cost-attachments - x-speakeasy-group: transactions.direct-costs - '/companies/{companyId}/connections/{connectionId}/data/directIncomes': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - get: - tags: - - Accounts receivable - summary: List direct incomes - 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/AccountingDirectIncomes' - examples: - Clear Books: - value: - results: - - id: 38e8c917-0afc-4583-8ffe-1b53ad601197 - reference: 3cb8ced3-3ecb-4974-ada5-8290b0ec3355 - note: 'Direct Income with 1 line items, totaling 188.33' - contactRef: - id: 51f03576-f6b0-40d5-9fba-81a490411c03 - dataType: customers - issueDate: '2022-04-19T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Underground - Drain Yard Gully - accountRef: - id: 72df89d2-512b-4455-af51-a6b563733842 - name: Sales - taxRateRef: - id: 6c88aff3-7cb9-4980-a3d3-443e72e02498 - name: Sales Tax (10%) - effectiveTaxRate: 10 - unitAmount: 171.21 - quantity: 1 - discountAmount: 0 - discountPercentage: 0 - subTotal: 171.21 - taxAmount: 17.12 - totalAmount: 188.33 - itemRef: - id: 00491160-6ee5-4d76-9f34-998f00687481 - name: Aluminium Silt Bucket - trackingCategoryRefs: [] - paymentAllocations: - - payment: - id: 38e8c917-0afc-4583-8ffe-1b53ad601197 - note: Payment for direct income 38e8c917-0afc-4583-8ffe-1b53ad601197 - reference: Direct Income 38e8c917-0afc-4583-8ffe-1b53ad601197 - accountRef: - id: ff8fdc4c-2aad-4ec1-9430-6bd201832eb3 - name: Undeposited Funds - currency: GBP - currencyRate: 1 - paidOnDate: '2022-04-19T00:00:00' - totalAmount: 188.33 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2022-04-19T00:00:00' - totalAmount: -188.33 - subTotal: 171.21 - taxAmount: 17.12 - totalAmount: 188.33 - modifiedDate: '2023-04-26T12:38:18Z' - sourceModifiedDate: '2022-05-13T01:06:00' - metadata: - isDeleted: false - - id: c31a3778-e3ea-4d01-9281-dd2f291c8cb8 - reference: ee4ea56f-8806-494d-9c69-7ec22e68dc5e - note: 'Direct Income with 4 line items, totaling 32095.91' - contactRef: - id: 453ddfc0-49ce-4f66-a815-dae734be885c - dataType: customers - issueDate: '2022-04-19T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Underground - Drain Bottle Gullies 90 degree Rectangular - accountRef: - id: 72df89d2-512b-4455-af51-a6b563733842 - name: Sales - taxRateRef: - id: 6c88aff3-7cb9-4980-a3d3-443e72e02498 - name: Sales Tax (10%) - effectiveTaxRate: 10 - unitAmount: 95.08 - quantity: 2 - discountAmount: 0 - discountPercentage: 0 - subTotal: 190.16 - taxAmount: 19.02 - totalAmount: 209.18 - itemRef: - id: '6' - name: Back Inlet Roddable Gully 90� Outlet Rectangular Grid - trackingCategoryRefs: - - id: costcode_9 - name: PandaConstruction - - id: department_3 - name: MarshallBrotherContracting - - description: Grease Trap - accountRef: - id: 72df89d2-512b-4455-af51-a6b563733842 - name: Sales - taxRateRef: - id: 6c88aff3-7cb9-4980-a3d3-443e72e02498 - name: Sales Tax (10%) - effectiveTaxRate: 10 - unitAmount: 1251.89 - quantity: 6 - discountAmount: 778.93 - discountPercentage: 10.37 - subTotal: 6732.41 - taxAmount: 673.24 - totalAmount: 7405.66 - itemRef: - id: 51077072-d5c3-463b-9cb4-7da2e11886f9 - name: 150 Litre Grease Trap - trackingCategoryRefs: [] - - description: Grease Trap - accountRef: - id: 72df89d2-512b-4455-af51-a6b563733842 - name: Sales - taxRateRef: - id: 6c88aff3-7cb9-4980-a3d3-443e72e02498 - name: Sales Tax (10%) - effectiveTaxRate: 10 - unitAmount: 2781.94 - quantity: 2 - discountAmount: 0 - discountPercentage: 0 - subTotal: 5563.88 - taxAmount: 556.39 - totalAmount: 6120.27 - itemRef: - id: 22aee6bd-4767-48c4-8a13-fdf85b91fc80 - name: 600 Litre Grease Trap - trackingCategoryRefs: [] - - description: Grease Trap - accountRef: - id: 72df89d2-512b-4455-af51-a6b563733842 - name: Sales - taxRateRef: - id: 6c88aff3-7cb9-4980-a3d3-443e72e02498 - name: Sales Tax (10%) - effectiveTaxRate: 10 - unitAmount: 2781.94 - quantity: 6 - discountAmount: 0 - discountPercentage: 0 - subTotal: 16691.64 - taxAmount: 1669.16 - totalAmount: 18360.8 - itemRef: - id: 22aee6bd-4767-48c4-8a13-fdf85b91fc80 - name: 600 Litre Grease Trap - trackingCategoryRefs: [] - paymentAllocations: - - payment: - id: c31a3778-e3ea-4d01-9281-dd2f291c8cb8 - note: Payment for direct income c31a3778-e3ea-4d01-9281-dd2f291c8cb8 - reference: Direct Income c31a3778-e3ea-4d01-9281-dd2f291c8cb8 - accountRef: - id: ff8fdc4c-2aad-4ec1-9430-6bd201832eb3 - name: Undeposited Funds - currency: GBP - currencyRate: 1 - paidOnDate: '2022-04-19T00:00:00' - totalAmount: 32095.91 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2022-04-19T00:00:00' - totalAmount: -32095.91 - subTotal: 29178.09 - taxAmount: 2917.81 - totalAmount: 32095.91 - modifiedDate: '2023-04-26T12:38:18Z' - sourceModifiedDate: '2023-02-13T00:34:00' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 518 - _links: - current: - href: /companies/354a121b-855f-4d25-90ad-0905b498c1c0/connections/57b731ba-1d45-4386-ba58-2a1ca0234624/data/directIncomes?page=1&pageSize=2 - self: - href: /companies/354a121b-855f-4d25-90ad-0905b498c1c0/connections/57b731ba-1d45-4386-ba58-2a1ca0234624/data/directIncomes - next: - href: /companies/354a121b-855f-4d25-90ad-0905b498c1c0/connections/57b731ba-1d45-4386-ba58-2a1ca0234624/data/directIncomes?page=2&pageSize=2 - Dynamics 365 Business Central: - value: - results: - - id: 8be30162-feec-ec11-82f9-000d3a8746a9 - reference: B1234 - note: '4006' - issueDate: '2022-06-18T00:00:00' - currency: USD - currencyRate: 0.648364486 - lineItems: - - description: Interest Income - accountRef: - id: 221217b3-89d1-ea11-bbaa-000d3a2b9185 - name: Interest Income - taxRateRef: - id: 63bc0fb9-89d1-ea11-bbaa-000d3a2b9185 - name: Setup for DOMESTIC / STANDARD - effectiveTaxRate: 10 - unitAmount: 7.13 - quantity: 1 - subTotal: 7.13 - taxAmount: 1.43 - totalAmount: 8.56 - trackingCategoryRefs: - - id: adbc0fb9-89d1-ea11-bbaa-000d3a2b9185 - name: ADM-Administration - paymentAllocations: - - payment: - id: 8be30162-feec-ec11-82f9-000d3a8746a9 - accountRef: - id: 8277672c-b8e6-ec11-82f8-0022481a77f0 - name: B020-BoA - currency: USD - currencyRate: 0.6483644859813084 - paidOnDate: '2022-06-18T00:00:00' - totalAmount: 8.56 - allocation: - currency: USD - currencyRate: 0.6483644859813084 - allocatedOnDate: '2022-06-18T00:00:00' - totalAmount: 8.56 - subTotal: 7.13 - taxAmount: 1.43 - totalAmount: 8.56 - modifiedDate: '2023-03-27T14:21:25Z' - sourceModifiedDate: '2022-06-15T22:56:26Z' - metadata: - isDeleted: false - - id: f68e56e0-b8bd-ed11-9a88-6045bd0f9361 - reference: B110 - note: '4990' - issueDate: '2023-03-07T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Accounts Receivable - accountRef: - id: 641217b3-89d1-ea11-bbaa-000d3a2b9185 - name: Accounts Receivable - taxRateRef: - id: cc81fea8-2917-ed11-90eb-002248009df3 - name: '' - effectiveTaxRate: 0 - unitAmount: 649.4 - quantity: -1 - subTotal: -649.4 - taxAmount: 0 - totalAmount: -649.4 - trackingCategoryRefs: [] - paymentAllocations: - - payment: - id: f68e56e0-b8bd-ed11-9a88-6045bd0f9361 - accountRef: - id: b6545a08-a9bd-ed11-9a88-0022484358c7 - name: HOLDING_LENDING - currency: GBP - currencyRate: 1 - paidOnDate: '2023-03-07T00:00:00' - totalAmount: -649.4 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2023-03-07T00:00:00' - totalAmount: -649.4 - subTotal: -649.4 - taxAmount: 0 - totalAmount: -649.4 - modifiedDate: '2023-03-27T14:21:25Z' - sourceModifiedDate: '2023-03-08T13:55:34Z' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 2 - _links: - current: - href: /companies/d6849caf-c146-41be-8335-b73346e3bd84/connections/60acb117-5cf5-4745-b069-491551da4066/data/directIncomes?page=1&pageSize=2 - self: - href: /companies/d6849caf-c146-41be-8335-b73346e3bd84/connections/60acb117-5cf5-4745-b069-491551da4066/data/directIncomes - FreeAgent: - value: - results: - - id: '344673327' - note: Test Transaction 2 - issueDate: '2017-11-01T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Test Transaction 2 - accountRef: - id: '001' - name: Sales - unitAmount: 10.5 - quantity: 1 - subTotal: 10.5 - taxAmount: 0 - totalAmount: 10.5 - trackingCategoryRefs: [] - paymentAllocations: - - payment: - id: '344673327' - note: Test Transaction 2 - accountRef: - id: 750-1 - name: 'Bank Account: Business Current Account' - currency: GBP - paidOnDate: '2017-11-01T00:00:00' - totalAmount: 10.5 - allocation: - currency: GBP - allocatedOnDate: '2017-11-01T00:00:00' - totalAmount: 10.5 - subTotal: 10.5 - taxAmount: 0 - totalAmount: 10.5 - modifiedDate: '2023-04-25T14:20:36Z' - sourceModifiedDate: '2022-10-06T10:38:24Z' - metadata: - isDeleted: false - - id: '348104863' - note: 'Codat Ltd Ref: Nov Topup' - issueDate: '2017-11-23T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: 'Codat Ltd Ref: Nov Topup' - accountRef: - id: '001' - name: Sales - unitAmount: 100 - quantity: 1 - subTotal: 100 - taxAmount: 0 - totalAmount: 100 - trackingCategoryRefs: [] - paymentAllocations: - - payment: - id: '348104863' - note: 'Codat Ltd Ref: Nov Topup' - accountRef: - id: 750-1 - name: 'Bank Account: Business Current Account' - currency: GBP - paidOnDate: '2017-11-23T00:00:00' - totalAmount: 100 - allocation: - currency: GBP - allocatedOnDate: '2017-11-23T00:00:00' - totalAmount: 100 - subTotal: 100 - taxAmount: 0 - totalAmount: 100 - modifiedDate: '2023-04-25T14:20:36Z' - sourceModifiedDate: '2022-10-24T12:13:27Z' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 211 - _links: - current: - href: /companies/071ad738-68f3-4561-afd0-69bab9df0803/connections/4fd7c69f-ecc1-45f5-83f2-42ed3391e386/data/directIncomes?page=1&pageSize=2 - self: - href: /companies/071ad738-68f3-4561-afd0-69bab9df0803/connections/4fd7c69f-ecc1-45f5-83f2-42ed3391e386/data/directIncomes - next: - href: /companies/071ad738-68f3-4561-afd0-69bab9df0803/connections/4fd7c69f-ecc1-45f5-83f2-42ed3391e386/data/directIncomes?page=2&pageSize=2 - QuickBooks Desktop: - value: - results: - - id: 9B87-1181931723 - reference: 9C08-1181931827 - contactRef: - id: 280000-933272658 - dataType: customers - issueDate: '2023-01-15T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - accountRef: - id: 80000-933270541 - name: Undeposited Funds - unitAmount: 1228.18 - quantity: 1 - subTotal: 1228.18 - taxAmount: 0 - totalAmount: 1228.18 - trackingCategoryRefs: [] - paymentAllocations: - - payment: - id: 9B87-1181931723 - accountRef: - id: 20000-933270541 - name: Checking - currency: GBP - currencyRate: 1 - paidOnDate: '2023-01-15T00:00:00' - totalAmount: 1228.18 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2023-01-15T00:00:00' - totalAmount: 1228.18 - subTotal: 1228.18 - taxAmount: 0 - totalAmount: 1228.18 - modifiedDate: '2023-04-26T09:14:12Z' - sourceModifiedDate: '2023-12-16T05:06:23' - metadata: - isDeleted: false - - id: 68E0-1197775239 - reference: 96F3-1197775718 - contactRef: - id: 800000B5-1197701259 - dataType: customers - issueDate: '2023-01-17T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - accountRef: - id: 80000-933270541 - name: Undeposited Funds - unitAmount: 361.08 - quantity: 1 - subTotal: 361.08 - taxAmount: 0 - totalAmount: 361.08 - trackingCategoryRefs: [] - paymentAllocations: - - payment: - id: 68E0-1197775239 - accountRef: - id: 20000-933270541 - name: Checking - currency: GBP - currencyRate: 1 - paidOnDate: '2023-01-17T00:00:00' - totalAmount: 15281.67 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2023-01-17T00:00:00' - totalAmount: 361.08 - subTotal: 361.08 - taxAmount: 0 - totalAmount: 361.08 - modifiedDate: '2023-04-26T09:14:12Z' - sourceModifiedDate: '2023-12-16T05:06:11' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 104 - _links: - current: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/connections/2c26b4da-97d4-4ba9-baad-1e18b49b96ac/data/directIncomes?page=1&pageSize=2 - self: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/connections/2c26b4da-97d4-4ba9-baad-1e18b49b96ac/data/directIncomes - next: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/connections/2c26b4da-97d4-4ba9-baad-1e18b49b96ac/data/directIncomes?page=2&pageSize=2 - QuickBooks Online Sandbox: - value: - results: - - id: 5-1 - contactRef: - id: '52' - dataType: suppliers - issueDate: '2015-11-24T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: contribution to start business - accountRef: - id: '61' - name: Owner's Equity - Contributions - taxRateRef: - id: 2_Invoices - name: Exempt Invoices - effectiveTaxRate: 0 - unitAmount: 10000 - quantity: 1 - discountAmount: 0 - subTotal: 10000 - taxAmount: 0 - totalAmount: 10000 - trackingCategoryRefs: [] - paymentAllocations: - - payment: - id: 5-1 - accountRef: - id: '81' - name: Current - currency: GBP - currencyRate: 1 - paidOnDate: '2015-11-24T00:00:00' - totalAmount: 10000 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2015-11-24T00:00:00' - totalAmount: -10000 - subTotal: 10000 - taxAmount: 0 - totalAmount: 10000 - modifiedDate: '2023-04-26T09:36:04Z' - sourceModifiedDate: '2016-09-12T15:26:26Z' - metadata: - isDeleted: false - - id: 5-2 - contactRef: - id: '53' - dataType: suppliers - issueDate: '2015-11-24T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: funds borrowed to start business - accountRef: - id: '63' - name: Note Payable - taxRateRef: - id: 2_Invoices - name: Exempt Invoices - effectiveTaxRate: 0 - unitAmount: 25000 - quantity: 1 - discountAmount: 0 - subTotal: 25000 - taxAmount: 0 - totalAmount: 25000 - trackingCategoryRefs: [] - paymentAllocations: - - payment: - id: 5-2 - accountRef: - id: '81' - name: Current - currency: GBP - currencyRate: 1 - paidOnDate: '2015-11-24T00:00:00' - totalAmount: 25000 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2015-11-24T00:00:00' - totalAmount: -25000 - subTotal: 25000 - taxAmount: 0 - totalAmount: 25000 - modifiedDate: '2023-04-26T09:36:04Z' - sourceModifiedDate: '2016-09-12T15:26:26Z' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 741 - _links: - current: - href: /companies/5a7f3597-36e1-4216-86fe-289ad36088a6/connections/1f9f6013-f8a5-4278-8a47-3ab7fdb6c24c/data/directIncomes?page=1&pageSize=2 - self: - href: /companies/5a7f3597-36e1-4216-86fe-289ad36088a6/connections/1f9f6013-f8a5-4278-8a47-3ab7fdb6c24c/data/directIncomes - next: - href: /companies/5a7f3597-36e1-4216-86fe-289ad36088a6/connections/1f9f6013-f8a5-4278-8a47-3ab7fdb6c24c/data/directIncomes?page=2&pageSize=2 - QuickBooks Online: - value: - results: - - id: '1' - note: Opening Balance from Bank - issueDate: '2018-09-21T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - accountRef: - id: '53' - name: Retained profit balance forward account - unitAmount: 170.23 - quantity: 1 - discountAmount: 0 - subTotal: 170.23 - taxAmount: 0 - totalAmount: 170.23 - trackingCategoryRefs: [] - paymentAllocations: - - payment: - id: '1' - accountRef: - id: '61' - name: Dave PP Current - currency: GBP - currencyRate: 1 - paidOnDate: '2018-09-21T00:00:00' - totalAmount: 170.23 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2018-09-21T00:00:00' - totalAmount: -170.23 - subTotal: 170.23 - taxAmount: 0 - totalAmount: 170.23 - modifiedDate: '2023-01-18T11:02:50Z' - sourceModifiedDate: '2018-12-17T14:56:20Z' - - id: '11' - note: 'Payment from CD Baby, a division of Audio and Video Labs Inc' - issueDate: '2018-10-15T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: 'Payment from CD Baby, a division of Audio and Video Labs Inc' - accountRef: - id: '57' - name: Sales of Product Income - unitAmount: 8.12 - quantity: 1 - discountAmount: 0 - subTotal: 8.12 - taxAmount: 0 - totalAmount: 8.12 - trackingCategoryRefs: [] - paymentAllocations: - - payment: - id: '11' - accountRef: - id: '61' - name: Dave PP Current - currency: GBP - currencyRate: 1 - paidOnDate: '2018-10-15T00:00:00' - totalAmount: 8.12 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2018-10-15T00:00:00' - totalAmount: -8.12 - subTotal: 8.12 - taxAmount: 0 - totalAmount: 8.12 - modifiedDate: '2023-01-18T11:02:50Z' - sourceModifiedDate: '2018-12-17T14:56:44Z' - pageNumber: 1 - pageSize: 2 - totalResults: 1171 - _links: - current: - href: /companies/10818b5e-6e6a-4ed4-a1c5-3e3efe626e87/connections/9e28a776-f4be-425b-8a3d-ad49956de2c9/data/directIncomes?page=1&pageSize=2 - self: - href: /companies/10818b5e-6e6a-4ed4-a1c5-3e3efe626e87/connections/9e28a776-f4be-425b-8a3d-ad49956de2c9/data/directIncomes - next: - href: /companies/10818b5e-6e6a-4ed4-a1c5-3e3efe626e87/connections/9e28a776-f4be-425b-8a3d-ad49956de2c9/data/directIncomes?page=2&pageSize=2 - Sage Intacct: - value: - results: - - id: '4973' - reference: dt test contact - note: dt header description - issueDate: '2022-03-15T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Dt test line1 - accountRef: - id: '151' - name: Cash - taxRateRef: - id: '99' - name: UK Sale Goods Standard Rate - effectiveTaxRate: 20 - unitAmount: 125 - quantity: 1 - subTotal: 125 - taxAmount: 25 - totalAmount: 150 - trackingCategoryRefs: - - id: DEPARTMENT-1 - name: Sales - - id: LOCATION-8 - name: United Kingdom - - description: dt test line 2 - accountRef: - id: '152' - name: Cash Equivalents - taxRateRef: - id: '99' - name: UK Sale Goods Standard Rate - effectiveTaxRate: 20 - unitAmount: 166.67 - quantity: 1 - subTotal: 166.67 - taxAmount: 33.33 - totalAmount: 200 - trackingCategoryRefs: - - id: DEPARTMENT-2 - name: Services - - id: LOCATION-8 - name: United Kingdom - paymentAllocations: - - payment: - id: '4973' - note: dt header description - accountRef: - id: '289' - name: Checking 5 - Bank Of England - currency: GBP - paidOnDate: '2022-03-15T00:00:00' - totalAmount: 350 - allocation: - currency: GBP - allocatedOnDate: '2022-03-15T00:00:00' - totalAmount: 350 - subTotal: 291.67 - taxAmount: 58.33 - totalAmount: 350 - modifiedDate: '2022-10-28T11:10:26Z' - sourceModifiedDate: '2022-03-15T12:45:58Z' - - id: '5314' - reference: Test Int Income - note: Test Description - issueDate: '2022-03-24T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Interest earned - accountRef: - id: '5' - name: Other Income - unitAmount: 300 - quantity: 1 - subTotal: 300 - totalAmount: 300 - trackingCategoryRefs: - - id: DEPARTMENT-1 - name: Sales - - id: LOCATION-8 - name: United Kingdom - paymentAllocations: - - payment: - id: '5314' - note: Test Description - reference: Test Int Income - accountRef: - id: '289' - name: Checking 5 - Bank Of England - currency: GBP - paidOnDate: '2022-03-24T00:00:00' - totalAmount: 300 - allocation: - currency: GBP - allocatedOnDate: '2022-03-24T00:00:00' - totalAmount: 300 - subTotal: 300 - taxAmount: 0 - totalAmount: 300 - modifiedDate: '2022-10-28T11:10:26Z' - pageNumber: 1 - pageSize: 2 - totalResults: 43 - _links: - current: - href: /companies/71ca2b28-8e86-41e7-8c55-f681042b11a0/connections/be80adfc-1157-4db4-9170-f8bcbbc051ba/data/directIncomes?page=1&pageSize=2 - self: - href: /companies/71ca2b28-8e86-41e7-8c55-f681042b11a0/connections/be80adfc-1157-4db4-9170-f8bcbbc051ba/data/directIncomes - next: - href: /companies/71ca2b28-8e86-41e7-8c55-f681042b11a0/connections/be80adfc-1157-4db4-9170-f8bcbbc051ba/data/directIncomes?page=2&pageSize=2 - Xero: - value: - results: - - id: 3a1be853-5964-4afe-ad6a-fb89cbaf6606 - reference: Sub 098801 - contactRef: - id: bc446de5-971e-48b5-8efd-1745149844ef - dataType: customers - issueDate: '2023-02-14T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Long-term subscriber discount - refund on sub - accountRef: - id: a40f43e2-c7b0-4187-919a-04ccdc14a630 - name: Subscriptions - taxRateRef: - id: EXEMPTINPUT - name: Exempt Expenses - effectiveTaxRate: 0 - unitAmount: 35 - quantity: 1 - subTotal: 35 - taxAmount: 0 - totalAmount: 35 - trackingCategoryRefs: [] - paymentAllocations: - - payment: - id: 3a1be853-5964-4afe-ad6a-fb89cbaf6606 - accountRef: - id: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - name: Business Bank Account - currency: GBP - currencyRate: 1 - paidOnDate: '2023-02-14T00:00:00' - totalAmount: 35 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2023-02-14T00:00:00' - totalAmount: 35 - subTotal: 35 - taxAmount: 0 - totalAmount: 35 - modifiedDate: '2023-03-15T20:36:09Z' - sourceModifiedDate: '2011-04-11T00:45:38' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 1 - _links: - current: - href: /companies/5ced9667-a310-443a-a711-958d36377141/connections/6a4bcf97-e46a-465c-abf6-c42cec8e48c0/data/directIncomes?page=1&pageSize=2 - self: - href: /companies/5ced9667-a310-443a-a711-958d36377141/connections/6a4bcf97-e46a-465c-abf6-c42cec8e48c0/data/directIncomes - '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' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - description: "The *List direct incomes* endpoint returns a list of [direct incomes](https://docs.codat.io/lending-api#/schemas/DirectIncome) for a given company's connection.\n\n[Direct incomes](https://docs.codat.io/lending-api#/schemas/DirectIncome) are incomes received directly from the business' operations at the point of the sale.\n\nBefore using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data).\n " - operationId: list-accounting-direct-incomes - x-speakeasy-group: accounts-receivable.direct-incomes - '/companies/{companyId}/connections/{connectionId}/data/directIncomes/{directIncomeId}': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - get: - tags: - - Accounts receivable - summary: Get direct income - parameters: - - $ref: '#/components/parameters/accountingDirectIncomeId' - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/AccountingDirectIncome' - examples: - Clear Books: - value: - id: 38e8c917-0afc-4583-8ffe-1b53ad601197 - reference: 3cb8ced3-3ecb-4974-ada5-8290b0ec3355 - note: 'Direct Income with 1 line items, totaling 188.33' - contactRef: - id: 51f03576-f6b0-40d5-9fba-81a490411c03 - dataType: customers - issueDate: '2022-04-19T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Underground - Drain Yard Gully - accountRef: - id: 72df89d2-512b-4455-af51-a6b563733842 - name: Sales - taxRateRef: - id: 6c88aff3-7cb9-4980-a3d3-443e72e02498 - name: Sales Tax (10%) - effectiveTaxRate: 10 - unitAmount: 171.21 - quantity: 1 - discountAmount: 0 - discountPercentage: 0 - subTotal: 171.21 - taxAmount: 17.12 - totalAmount: 188.33 - itemRef: - id: 00491160-6ee5-4d76-9f34-998f00687481 - name: Aluminium Silt Bucket - trackingCategoryRefs: [] - paymentAllocations: - - payment: - id: 38e8c917-0afc-4583-8ffe-1b53ad601197 - note: Payment for direct income 38e8c917-0afc-4583-8ffe-1b53ad601197 - reference: Direct Income 38e8c917-0afc-4583-8ffe-1b53ad601197 - accountRef: - id: ff8fdc4c-2aad-4ec1-9430-6bd201832eb3 - name: Undeposited Funds - currency: GBP - currencyRate: 1 - paidOnDate: '2022-04-19T00:00:00' - totalAmount: 188.33 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2022-04-19T00:00:00' - totalAmount: -188.33 - subTotal: 171.21 - taxAmount: 17.12 - totalAmount: 188.33 - modifiedDate: '2023-04-26T12:38:18Z' - sourceModifiedDate: '2022-05-13T01:06:00' - metadata: - isDeleted: false - Dynamics 365 Business Central: - value: - id: 8be30162-feec-ec11-82f9-000d3a8746a9 - reference: B1234 - note: '4006' - issueDate: '2022-06-18T00:00:00' - currency: USD - currencyRate: 0.648364486 - lineItems: - - description: Interest Income - accountRef: - id: 221217b3-89d1-ea11-bbaa-000d3a2b9185 - name: Interest Income - taxRateRef: - id: 63bc0fb9-89d1-ea11-bbaa-000d3a2b9185 - name: Setup for DOMESTIC / STANDARD - effectiveTaxRate: 10 - unitAmount: 7.13 - quantity: 1 - subTotal: 7.13 - taxAmount: 1.43 - totalAmount: 8.56 - trackingCategoryRefs: - - id: adbc0fb9-89d1-ea11-bbaa-000d3a2b9185 - name: ADM-Administration - paymentAllocations: - - payment: - id: 8be30162-feec-ec11-82f9-000d3a8746a9 - accountRef: - id: 8277672c-b8e6-ec11-82f8-0022481a77f0 - name: B020-BoA - currency: USD - currencyRate: 0.6483644859813084 - paidOnDate: '2022-06-18T00:00:00' - totalAmount: 8.56 - allocation: - currency: USD - currencyRate: 0.6483644859813084 - allocatedOnDate: '2022-06-18T00:00:00' - totalAmount: 8.56 - subTotal: 7.13 - taxAmount: 1.43 - totalAmount: 8.56 - modifiedDate: '2023-03-27T14:21:25Z' - sourceModifiedDate: '2022-06-15T22:56:26Z' - metadata: - isDeleted: false - FreeAgent: - value: - id: '344673327' - note: Test Transaction 2 - issueDate: '2017-11-01T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Test Transaction 2 - accountRef: - id: '001' - name: Sales - unitAmount: 10.5 - quantity: 1 - subTotal: 10.5 - taxAmount: 0 - totalAmount: 10.5 - trackingCategoryRefs: [] - paymentAllocations: - - payment: - id: '344673327' - note: Test Transaction 2 - accountRef: - id: 750-1 - name: 'Bank Account: Business Current Account' - currency: GBP - paidOnDate: '2017-11-01T00:00:00' - totalAmount: 10.5 - allocation: - currency: GBP - allocatedOnDate: '2017-11-01T00:00:00' - totalAmount: 10.5 - subTotal: 10.5 - taxAmount: 0 - totalAmount: 10.5 - modifiedDate: '2023-04-25T14:20:36Z' - sourceModifiedDate: '2022-10-06T10:38:24Z' - metadata: - isDeleted: false - QuickBooks Desktop: - value: - id: 9B87-1181931723 - reference: 9C08-1181931827 - contactRef: - id: 280000-933272658 - dataType: customers - issueDate: '2023-01-15T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - accountRef: - id: 80000-933270541 - name: Undeposited Funds - unitAmount: 1228.18 - quantity: 1 - subTotal: 1228.18 - taxAmount: 0 - totalAmount: 1228.18 - trackingCategoryRefs: [] - paymentAllocations: - - payment: - id: 9B87-1181931723 - accountRef: - id: 20000-933270541 - name: Checking - currency: GBP - currencyRate: 1 - paidOnDate: '2023-01-15T00:00:00' - totalAmount: 1228.18 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2023-01-15T00:00:00' - totalAmount: 1228.18 - subTotal: 1228.18 - taxAmount: 0 - totalAmount: 1228.18 - modifiedDate: '2023-04-26T09:14:12Z' - sourceModifiedDate: '2023-12-16T05:06:23' - metadata: - isDeleted: false - QuickBooks Online Sandbox: - value: - id: 5-1 - contactRef: - id: '52' - dataType: suppliers - issueDate: '2015-11-24T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: contribution to start business - accountRef: - id: '61' - name: Owner's Equity - Contributions - taxRateRef: - id: 2_Invoices - name: Exempt Invoices - effectiveTaxRate: 0 - unitAmount: 10000 - quantity: 1 - discountAmount: 0 - subTotal: 10000 - taxAmount: 0 - totalAmount: 10000 - trackingCategoryRefs: [] - paymentAllocations: - - payment: - id: 5-1 - accountRef: - id: '81' - name: Current - currency: GBP - currencyRate: 1 - paidOnDate: '2015-11-24T00:00:00' - totalAmount: 10000 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2015-11-24T00:00:00' - totalAmount: -10000 - subTotal: 10000 - taxAmount: 0 - totalAmount: 10000 - modifiedDate: '2023-04-26T09:36:04Z' - sourceModifiedDate: '2016-09-12T15:26:26Z' - metadata: - isDeleted: false - QuickBooks Online: - value: - id: '1' - note: Opening Balance from Bank - issueDate: '2018-09-21T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - accountRef: - id: '53' - name: Retained profit balance forward account - unitAmount: 170.23 - quantity: 1 - discountAmount: 0 - subTotal: 170.23 - taxAmount: 0 - totalAmount: 170.23 - trackingCategoryRefs: [] - paymentAllocations: - - payment: - id: '1' - accountRef: - id: '61' - name: Dave PP Current - currency: GBP - currencyRate: 1 - paidOnDate: '2018-09-21T00:00:00' - totalAmount: 170.23 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2018-09-21T00:00:00' - totalAmount: -170.23 - subTotal: 170.23 - taxAmount: 0 - totalAmount: 170.23 - modifiedDate: '2023-01-18T11:02:50Z' - sourceModifiedDate: '2018-12-17T14:56:20Z' - Sage Intacct: - value: - id: '4973' - reference: dt test contact - note: dt header description - issueDate: '2022-03-15T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Dt test line1 - accountRef: - id: '151' - name: Cash - taxRateRef: - id: '99' - name: UK Sale Goods Standard Rate - effectiveTaxRate: 20 - unitAmount: 125 - quantity: 1 - subTotal: 125 - taxAmount: 25 - totalAmount: 150 - trackingCategoryRefs: - - id: DEPARTMENT-1 - name: Sales - - id: LOCATION-8 - name: United Kingdom - - description: dt test line 2 - accountRef: - id: '152' - name: Cash Equivalents - taxRateRef: - id: '99' - name: UK Sale Goods Standard Rate - effectiveTaxRate: 20 - unitAmount: 166.67 - quantity: 1 - subTotal: 166.67 - taxAmount: 33.33 - totalAmount: 200 - trackingCategoryRefs: - - id: DEPARTMENT-2 - name: Services - - id: LOCATION-8 - name: United Kingdom - paymentAllocations: - - payment: - id: '4973' - note: dt header description - accountRef: - id: '289' - name: Checking 5 - Bank Of England - currency: GBP - paidOnDate: '2022-03-15T00:00:00' - totalAmount: 350 - allocation: - currency: GBP - allocatedOnDate: '2022-03-15T00:00:00' - totalAmount: 350 - subTotal: 291.67 - taxAmount: 58.33 - totalAmount: 350 - modifiedDate: '2022-10-28T11:10:26Z' - sourceModifiedDate: '2022-03-15T12:45:58Z' - Xero: - value: - id: 3a1be853-5964-4afe-ad6a-fb89cbaf6606 - reference: Sub 098801 - contactRef: - id: bc446de5-971e-48b5-8efd-1745149844ef - dataType: customers - issueDate: '2023-02-14T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Long-term subscriber discount - refund on sub - accountRef: - id: a40f43e2-c7b0-4187-919a-04ccdc14a630 - name: Subscriptions - taxRateRef: - id: EXEMPTINPUT - name: Exempt Expenses - effectiveTaxRate: 0 - unitAmount: 35 - quantity: 1 - subTotal: 35 - taxAmount: 0 - totalAmount: 35 - trackingCategoryRefs: [] - paymentAllocations: - - payment: - id: 3a1be853-5964-4afe-ad6a-fb89cbaf6606 - accountRef: - id: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - name: Business Bank Account - currency: GBP - currencyRate: 1 - paidOnDate: '2023-02-14T00:00:00' - totalAmount: 35 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2023-02-14T00:00:00' - totalAmount: 35 - subTotal: 35 - taxAmount: 0 - totalAmount: 35 - modifiedDate: '2023-03-15T20:36:09Z' - sourceModifiedDate: '2011-04-11T00:45:38' - metadata: - isDeleted: false - '401': - $ref: '#/components/responses/Unauthorized' - '402': - $ref: '#/components/responses/Payment-Required' - '403': - $ref: '#/components/responses/Forbidden' - '404': - $ref: '#/components/responses/Not-Found' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - description: | - The *Get direct income* endpoint returns a single direct income for a given directIncomeId. - - [Direct incomes](https://docs.codat.io/lending-api#/schemas/DirectIncome) are incomes received directly from the business' operations at the point of the sale. - - Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data). - operationId: get-accounting-direct-income - x-speakeasy-group: accounts-receivable.direct-incomes - '/companies/{companyId}/connections/{connectionId}/data/directIncomes/{directIncomeId}/attachments/{attachmentId}': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - - $ref: '#/components/parameters/accountingDirectIncomeId' - - $ref: '#/components/parameters/attachmentId' - get: - tags: - - Accounts receivable - summary: Get direct income attachment - parameters: - - $ref: '#/components/parameters/timeoutInMinutes' - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/AccountingAttachment' - examples: {} - '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: |- - The *Get direct income attachment* endpoint returns a specific attachment for a given `directIncomeId` and `attachmentId`. - - [Direct incomes](https://docs.codat.io/lending-api#/schemas/DirectIncome) are incomes received directly from the business' operations at the point of the sale. - operationId: get-accounting-direct-income-attachment - x-speakeasy-group: accounts-receivable.direct-incomes - '/companies/{companyId}/connections/{connectionId}/data/directIncomes/{directIncomeId}/attachments/{attachmentId}/download': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - - $ref: '#/components/parameters/accountingDirectIncomeId' - - $ref: '#/components/parameters/attachmentId' - get: - tags: - - Accounts receivable - summary: Download direct income attachment - parameters: - - $ref: '#/components/parameters/attachmentId' - responses: - '200': - description: Success - content: - application/octet-stream: - schema: - title: Data - type: string - format: binary - '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: |- - The *Download direct income attachment* endpoint downloads a specific attachment for a given `directIncomeId` and `attachmentId`. - - [Direct incomes](https://docs.codat.io/lending-api#/schemas/DirectIncome) are incomes received directly from the business' operations at the point of the sale. - operationId: download-accounting-direct-income-attachment - x-speakeasy-group: accounts-receivable.direct-incomes - '/companies/{companyId}/connections/{connectionId}/data/directIncomes/{directIncomeId}/attachments': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - - $ref: '#/components/parameters/accountingDirectIncomeId' - get: - tags: - - Accounts receivable - summary: List direct income attachments - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/Attachments' - '401': - $ref: '#/components/responses/Unauthorized' - '402': - $ref: '#/components/responses/Payment-Required' - '403': - $ref: '#/components/responses/Forbidden' - '404': - $ref: '#/components/responses/Not-Found' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - description: |- - The *List direct income attachments* endpoint returns a list of attachments available to download for given `directIncomeId`. - - [Direct incomes](https://docs.codat.io/lending-api#/schemas/DirectIncome) are incomes received directly from the business' operations at the point of the sale. - operationId: list-accounting-direct-income-attachments - x-speakeasy-group: accounts-receivable.direct-incomes - '/companies/{companyId}/data/info': - parameters: - - $ref: '#/components/parameters/companyId' - get: - summary: Get company accounting profile - description: Gets the latest basic info for a company. - operationId: get-accounting-profile - x-speakeasy-name-override: get-accounting-profile - tags: - - Company info - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/AccountingCompanyInfo' - examples: - Example 1: - value: - companyName: Codat - accountingPlatformRef: 1700060034_ETD - companyLegalName: Codat Ltd - addresses: - - type: Billing - line1: 301 Ink Rooms - line2: 28 Easton Street - city: London - region: England - country: United Kingdom - postalCode: WC1X 0BE - - type: Delivery - line1: 28 Easton Street - city: London - country: UK - postalCode: WC1X 0BE - phoneNumbers: - - number: 02012 345678 - type: Landline - - number: 07123 456789 - type: Mobile - - number: 02012 345678 - type: Fax - webLinks: - - type: Website - url: 'https://www.codat.io/' - - type: Social - url: 'https://www.linkedin.com/company/codat-limited/' - registrationNumber: '5590111724' - taxNumber: '74111622555799035846' - financialYearStartDate: '2023-04-01T00:00:00' - baseCurrency: GBP - sourceUrls: - Api: 'https://api.codat.io' - createdDate: '2020-03-09T15:19:26' - '401': - $ref: '#/components/responses/Unauthorized' - '402': - $ref: '#/components/responses/Payment-Required' - '403': - $ref: '#/components/responses/Forbidden' - '404': - $ref: '#/components/responses/Not-Found' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - '/companies/{companyId}/data/invoices': - parameters: - - $ref: '#/components/parameters/companyId' - get: - tags: - - Accounts receivable - summary: List invoices - description: "The *List invoices* endpoint returns a list of [invoices](https://docs.codat.io/lending-api#/schemas/Invoice) for a given company's connection.\n\n[Invoices](https://docs.codat.io/lending-api#/schemas/Invoice) are itemized records of goods sold or services provided to a customer.\n\nBefore using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data).\n \n### Useful queries\n\n- Outstanding invoices - `query = amountDue > 0`\n- Invoices due after a certain date: `query = dueDate > 2021-01-28`\n\n[Read more about querying](https://docs.codat.io/using-the-api/querying).\n\n### Tips and traps\n\nTo access the `paymentAllocations` property, ensure that the `payments` data type is queued and cached in Codat before retrieving `invoices` from Codat's cache.\n" - operationId: list-accounting-invoices - x-speakeasy-group: accounts-receivable.invoices - 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/AccountingInvoices' - examples: - Clear Books: - value: - results: - - id: 2518ca08-5e2a-4630-8cee-a6bcd1625660 - invoiceNumber: TKj7oD38 - customerRef: - id: d65ac505-072c-49ec-be3c-3cb74228966d - companyName: Jensen Steuber - salesOrderRefs: [] - issueDate: '2022-04-25T13:04:02' - dueDate: '2022-04-25T13:04:02' - modifiedDate: '2023-04-26T12:38:17Z' - sourceModifiedDate: '2023-01-28T14:41:02' - paidOnDate: '2022-04-25T13:04:02' - currency: GBP - currencyRate: 1 - lineItems: - - description: Heavy Duty Hinged Gully Grating x4.00 - unitAmount: 402.89 - quantity: 4 - subTotal: 1611.56 - taxAmount: 161.16 - totalAmount: 1772.72 - accountRef: - id: dbcaf288-2b39-4b95-8ab3-42202ab15918 - name: Business Current Account - taxRateRef: - id: 6c88aff3-7cb9-4980-a3d3-443e72e02498 - name: Sales Tax (10%) - effectiveTaxRate: 10 - itemRef: - id: 3abf0883-03f7-44c6-bc15-1372522d25e1 - name: Heavy Duty Hinged Gully Grating - trackingCategoryRefs: - - id: costcode_9 - name: PandaConstruction - isDirectIncome: true - paymentAllocations: - - payment: - id: 9407d5ee-893a-4547-bd89-bc7b795ee774 - note: Payment against invoice 2518ca08-5e2a-4630-8cee-a6bcd1625660 - reference: 2518ca08-5e2a-4630-8cee-a6bcd1625660 - accountRef: - id: dbcaf288-2b39-4b95-8ab3-42202ab15918 - name: Business Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-04-25T13:04:02' - totalAmount: 1772.72 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2022-04-25T13:04:02' - totalAmount: -1772.72 - withholdingTax: [] - totalDiscount: 0 - subTotal: 1611.56 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 161.16 - totalAmount: 1772.72 - amountDue: 0 - discountPercentage: 0 - status: Paid - metadata: - isDeleted: false - - id: ac3ac4dd-defe-4f9c-b7bb-2c3fe726a9d1 - invoiceNumber: 4F6ONfFP - customerRef: - id: a82042f1-a005-4ca5-bfd3-5bc237123aa5 - companyName: Keara Leffler - salesOrderRefs: [] - issueDate: '2022-04-25T13:04:02' - dueDate: '2022-04-25T13:04:02' - modifiedDate: '2023-04-26T12:38:17Z' - sourceModifiedDate: '2022-08-22T07:43:02' - paidOnDate: '2022-04-25T13:04:02' - currency: GBP - currencyRate: 1 - lineItems: - - description: Heavy Duty Hinged Gully Grating x8.28 - unitAmount: 402.89 - quantity: 8.28 - subTotal: 3335.93 - taxAmount: 333.59 - totalAmount: 3669.52 - accountRef: - id: 72df89d2-512b-4455-af51-a6b563733842 - name: Sales - taxRateRef: - id: 6c88aff3-7cb9-4980-a3d3-443e72e02498 - name: Sales Tax (10%) - effectiveTaxRate: 10 - itemRef: - id: 3abf0883-03f7-44c6-bc15-1372522d25e1 - name: Heavy Duty Hinged Gully Grating - trackingCategoryRefs: [] - isDirectIncome: false - paymentAllocations: - - payment: - id: 7ba4fc1b-e248-49ba-8bf8-0813d7f203a8 - note: Payment against invoice ac3ac4dd-defe-4f9c-b7bb-2c3fe726a9d1 - reference: ac3ac4dd-defe-4f9c-b7bb-2c3fe726a9d1 - accountRef: - id: dbcaf288-2b39-4b95-8ab3-42202ab15918 - name: Business Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-04-25T13:04:02' - totalAmount: 3669.52 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2022-04-25T13:04:02' - totalAmount: -3669.52 - withholdingTax: [] - totalDiscount: 0 - subTotal: 3335.93 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 333.59 - totalAmount: 3669.52 - amountDue: 0 - discountPercentage: 0 - status: Paid - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 142 - _links: - current: - href: /companies/354a121b-855f-4d25-90ad-0905b498c1c0/data/invoices?page=1&pageSize=2 - self: - href: /companies/354a121b-855f-4d25-90ad-0905b498c1c0/data/invoices - next: - href: /companies/354a121b-855f-4d25-90ad-0905b498c1c0/data/invoices?page=2&pageSize=2 - Dynamics 365 Business Central: - value: - results: - - id: 18c906bf-89d1-ea11-bbaa-000d3a2b9185 - invoiceNumber: '103001' - customerRef: - id: b61217b3-89d1-ea11-bbaa-000d3a2b9185 - companyName: Trey Researches - salesOrderRefs: [] - issueDate: '2019-01-15T00:00:00' - dueDate: '2019-01-15T00:00:00' - modifiedDate: '2023-03-27T14:21:25Z' - sourceModifiedDate: '2022-05-17T16:29:00Z' - paidOnDate: '2019-01-15T00:00:00' - currency: GBP - lineItems: - - description: AMSTERDAM Lamp - unitAmount: 35.6 - quantity: 3 - discountAmount: 0 - subTotal: 106.8 - taxAmount: 21.36 - totalAmount: 128.16 - 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-d41217b3-89d1-ea11-bbaa-000d3a2b9185-DOMESTIC-DOMESTIC - name: 'AMSTERDAM Lamp / General Business Posting Group: ''DOMESTIC'' / VAT Business Posting Group: ''DOMESTIC''' - trackingCategoryRefs: [] - isDirectIncome: false - paymentAllocations: - - payment: - id: e0299ced-89d1-ea11-bbaa-000d3a2b9185 - note: Invoice 102001 - reference: 'Document No: 103001' - accountRef: - id: 621217b3-89d1-ea11-bbaa-000d3a2b9185 - name: Petty Cash - currency: GBP - currencyRate: 1 - paidOnDate: '2019-01-15T00:00:00' - totalAmount: 128.16 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2019-01-15T00:00:00' - totalAmount: -128.16 - withholdingTax: [] - totalDiscount: 0 - subTotal: 106.8 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 21.36 - totalAmount: 128.16 - amountDue: 0 - discountPercentage: 0 - status: Paid - note: '' - metadata: - isDeleted: false - - id: 31e97827-bb18-ed11-90eb-000d3a8747a0 - invoiceNumber: '102287' - customerRef: - id: 0ef95175-48c4-eb11-9f0a-0022481b4343 - companyName: '' - salesOrderRefs: [] - issueDate: '2019-01-15T00:00:00' - dueDate: '2019-01-15T00:00:00' - modifiedDate: '2023-03-27T14:21:25Z' - sourceModifiedDate: '2022-08-10T14:46:08Z' - currency: USD - lineItems: [] - paymentAllocations: [] - withholdingTax: [] - totalDiscount: 0 - subTotal: 0 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 0 - totalAmount: 0 - amountDue: 0 - discountPercentage: 0 - status: Draft - note: '' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 368 - _links: - current: - href: /companies/d6849caf-c146-41be-8335-b73346e3bd84/data/invoices?page=1&pageSize=2 - self: - href: /companies/d6849caf-c146-41be-8335-b73346e3bd84/data/invoices - next: - href: /companies/d6849caf-c146-41be-8335-b73346e3bd84/data/invoices?page=2&pageSize=2 - Exact (Netherlands): - value: - results: - - id: 91dccc63-b1af-4363-bee0-2aec6bab1bef - invoiceNumber: '19700002' - customerRef: - id: c3bf08a3-4d51-4859-acbb-5075f9484f87 - companyName: Mr Abe - salesOrderRefs: [] - issueDate: '2019-11-08T00:00:00Z' - dueDate: '2019-11-29T00:00:00Z' - modifiedDate: '2022-10-26T13:57:52Z' - sourceModifiedDate: '2019-11-08T11:56:22Z' - currency: EUR - currencyRate: 1 - lineItems: - - description: Consultancy per uur - Consultancy per uur - unitAmount: 75 - quantity: 8 - discountAmount: 0 - subTotal: 600 - taxAmount: 0 - totalAmount: 600 - accountRef: - id: 2421e8a0-5355-4ec0-af11-021fe4f39fcd - name: Omzet binnenland hoog tarief - trackingCategoryRefs: [] - isDirectIncome: false - paymentAllocations: [] - withholdingTax: [] - subTotal: 600 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 0 - totalAmount: 600 - amountDue: 599 - discountPercentage: 0 - status: PartiallyPaid - - id: 0078bc15-10a4-433d-86fa-b1bb235fc0ab - invoiceNumber: '19700004' - customerRef: - id: 46951dc4-a170-42ce-bb38-9a80b776404f - companyName: Cust 03 - salesOrderRefs: [] - issueDate: '2019-11-13T00:00:00Z' - dueDate: '2019-12-04T00:00:00Z' - modifiedDate: '2022-10-26T13:57:52Z' - sourceModifiedDate: '2019-11-13T11:47:51Z' - currency: EUR - currencyRate: 1 - lineItems: - - description: Standaard artikel - Standaard artikel - unitAmount: 25 - quantity: 1 - discountAmount: 0 - subTotal: 25 - taxAmount: 5.25 - totalAmount: 30.25 - accountRef: - id: 2421e8a0-5355-4ec0-af11-021fe4f39fcd - name: Omzet binnenland hoog tarief - trackingCategoryRefs: [] - isDirectIncome: false - paymentAllocations: [] - withholdingTax: [] - subTotal: 25 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 5.25 - totalAmount: 30.25 - amountDue: 30.25 - discountPercentage: 0 - status: Submitted - pageNumber: 1 - pageSize: 2 - totalResults: 5844 - _links: - current: - href: /companies/b83b1923-4db6-45a8-a779-b4e320c15979/data/invoices?page=1&pageSize=2 - self: - href: /companies/b83b1923-4db6-45a8-a779-b4e320c15979/data/invoices - next: - href: /companies/b83b1923-4db6-45a8-a779-b4e320c15979/data/invoices?page=2&pageSize=2 - Exact (UK): - value: - results: - - id: a05d1256-f253-46bd-aa13-c6f6a992aa47 - invoiceNumber: '17700002' - customerRef: - id: 570321bb-8b0c-49f1-a1f5-6fb1d6d94a62 - companyName: Some customer - salesOrderRefs: [] - issueDate: '2017-08-02T00:00:00Z' - dueDate: '2017-09-01T00:00:00Z' - modifiedDate: '2022-10-26T13:39:08Z' - sourceModifiedDate: '2017-08-02T18:23:43Z' - currency: GBP - currencyRate: 1 - lineItems: - - description: A bunch of stuff - A bunch of stuff - unitAmount: 100 - quantity: 1000 - discountAmount: 0 - subTotal: 100000 - taxAmount: 0 - totalAmount: 100000 - accountRef: - id: 43acd218-6a95-445f-994c-660273e0ced9 - name: Sales - trackingCategoryRefs: [] - isDirectIncome: false - paymentAllocations: [] - withholdingTax: [] - subTotal: 100000 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 0 - totalAmount: 100000 - amountDue: 0 - discountPercentage: 0 - status: Paid - - id: 0981b5d1-a817-40be-a101-4848f7b1a258 - invoiceNumber: '17700004' - customerRef: - id: 570321bb-8b0c-49f1-a1f5-6fb1d6d94a62 - companyName: Some customer - salesOrderRefs: [] - issueDate: '2017-08-03T00:00:00Z' - dueDate: '2017-09-02T00:00:00Z' - modifiedDate: '2022-10-26T13:39:08Z' - sourceModifiedDate: '2017-08-03T12:22:27Z' - paidOnDate: '2017-08-03T00:00:00Z' - currency: GBP - currencyRate: 1 - lineItems: - - description: A bunch of stuff - A bunch of stuff - unitAmount: 100 - quantity: 150 - discountAmount: 0 - subTotal: 15000 - taxAmount: 0 - totalAmount: 15000 - accountRef: - id: 43acd218-6a95-445f-994c-660273e0ced9 - name: Sales - trackingCategoryRefs: [] - isDirectIncome: false - paymentAllocations: [] - withholdingTax: [] - subTotal: 15000 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 0 - totalAmount: 15000 - amountDue: 0 - discountPercentage: 0 - status: Paid - pageNumber: 1 - pageSize: 2 - totalResults: 4214 - _links: - current: - href: /companies/d95030cd-22b2-482b-9c7b-2980dcc2b1ce/data/invoices?page=1&pageSize=2 - self: - href: /companies/d95030cd-22b2-482b-9c7b-2980dcc2b1ce/data/invoices - next: - href: /companies/d95030cd-22b2-482b-9c7b-2980dcc2b1ce/data/invoices?page=2&pageSize=2 - FreeAgent: - value: - results: - - id: '50541736' - invoiceNumber: '2348' - customerRef: - id: '10123537' - companyName: _Test 1 - salesOrderRefs: [] - issueDate: '2016-12-30T00:00:00' - dueDate: '2016-12-30T00:00:00' - modifiedDate: '2023-04-25T14:19:19Z' - sourceModifiedDate: '2022-10-20T14:28:00Z' - paidOnDate: '2020-11-05T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: 3.0 items with VatPercentage of 0.0 - unitAmount: 25.26 - quantity: 1 - discountAmount: 0 - subTotal: 25.26 - taxAmount: 0 - totalAmount: 25.26 - accountRef: - id: '001' - name: Sales - trackingCategoryRefs: [] - isDirectIncome: false - - description: 3 service charges with 0.0% vat - unitAmount: 8.85 - quantity: 1 - discountAmount: 0 - subTotal: 8.85 - taxAmount: 0 - totalAmount: 8.85 - accountRef: - id: '001' - name: Sales - trackingCategoryRefs: [] - isDirectIncome: false - - description: Tax - unitAmount: 0 - quantity: 1 - discountAmount: 0 - subTotal: 0 - taxAmount: 0 - totalAmount: 0 - trackingCategoryRefs: [] - isDirectIncome: false - paymentAllocations: - - payment: - id: '262466203' - note: E2E Test transaction 2 CREDIT �250.00 - Invoice receipt against 2348 - currency: GBP - paidOnDate: '2020-11-05T00:00:00' - totalAmount: 250 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -34.11 - withholdingTax: [] - subTotal: 34.11 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 0 - totalAmount: 34.11 - amountDue: 0 - status: Paid - metadata: - isDeleted: false - - id: '21974783' - invoiceNumber: '023' - customerRef: - id: '6162023' - companyName: Alderley plc - salesOrderRefs: [] - issueDate: '2017-01-09T00:00:00' - dueDate: '2017-02-08T00:00:00' - modifiedDate: '2023-04-25T14:19:19Z' - sourceModifiedDate: '2023-02-06T15:31:38Z' - paidOnDate: '2023-02-06T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Laptop - unitAmount: 500 - quantity: 22 - discountAmount: 0 - subTotal: 11000 - taxAmount: 0 - totalAmount: 11000 - accountRef: - id: '001' - name: Sales - trackingCategoryRefs: [] - isDirectIncome: false - - description: Tax - unitAmount: 0 - quantity: 1 - discountAmount: 0 - subTotal: 0 - taxAmount: 0 - totalAmount: 0 - trackingCategoryRefs: [] - isDirectIncome: false - paymentAllocations: - - payment: - id: '154350605' - note: Test Push Transaction OTHER �123.46 - Invoice receipt against 023 - Invoice receipt against 023 - currency: GBP - paidOnDate: '2018-08-26T00:00:00' - totalAmount: 123.46 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -2 - - payment: - id: '154350605' - note: Test Push Transaction OTHER �123.46 - Invoice receipt against 023 - Invoice receipt against 023 - currency: GBP - paidOnDate: '2018-08-26T00:00:00' - totalAmount: 123.46 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -5 - - payment: - id: '214509356' - note: �0.01 - Invoice receipt against 023 - currency: GBP - paidOnDate: '2019-11-18T00:00:00' - totalAmount: 0.01 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -0.01 - - payment: - id: '214338075' - note: �0.01 - Invoice receipt against 023 - currency: GBP - paidOnDate: '2019-11-18T00:00:00' - totalAmount: 0.01 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -0.01 - - payment: - id: '214327399' - note: �0.01 - Invoice receipt against 023 - currency: GBP - paidOnDate: '2019-11-18T00:00:00' - totalAmount: 0.01 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -0.01 - - payment: - id: '214327371' - note: �0.01 - Invoice receipt against 023 - currency: GBP - paidOnDate: '2019-11-18T00:00:00' - totalAmount: 0.01 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -0.01 - - payment: - id: '214672049' - note: �0.01 - Invoice receipt against 023 - currency: GBP - paidOnDate: '2019-11-22T00:00:00' - totalAmount: 0.01 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -0.01 - - payment: - id: '214671769' - note: �0.01 - Invoice receipt against 023 - currency: GBP - paidOnDate: '2019-11-22T00:00:00' - totalAmount: 0.01 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -0.01 - - payment: - id: '214671495' - note: �0.01 - Invoice receipt against 023 - currency: GBP - paidOnDate: '2019-11-22T00:00:00' - totalAmount: 0.01 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -0.01 - - payment: - id: '214671482' - note: �0.01 - Invoice receipt against 023 - currency: GBP - paidOnDate: '2019-11-22T00:00:00' - totalAmount: 0.01 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -0.01 - - payment: - id: '214671308' - note: �0.01 - Invoice receipt against 023 - currency: GBP - paidOnDate: '2019-11-22T00:00:00' - totalAmount: 0.01 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -0.01 - - payment: - id: '216167014' - note: �0.01 - Invoice receipt against 023 - currency: GBP - paidOnDate: '2019-11-18T00:00:00' - totalAmount: 0.01 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -0.01 - - payment: - id: '215687795' - note: �0.01 - Invoice receipt against 023 - currency: GBP - paidOnDate: '2019-11-18T00:00:00' - totalAmount: 0.01 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -0.01 - - payment: - id: '216167064' - note: �0.01 - Invoice receipt against 023 - currency: GBP - paidOnDate: '2019-12-02T00:00:00' - totalAmount: 0.01 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -0.01 - - payment: - id: '256992092' - note: �0.01 - Invoice receipt against 023 - currency: GBP - paidOnDate: '2019-11-18T00:00:00' - totalAmount: 0.01 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -0.01 - - payment: - id: '256991833' - note: �0.01 - Invoice receipt against 023 - currency: GBP - paidOnDate: '2019-11-18T00:00:00' - totalAmount: 0.01 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -0.01 - - payment: - id: '256991177' - note: �0.01 - Invoice receipt against 023 - currency: GBP - paidOnDate: '2019-11-18T00:00:00' - totalAmount: 0.01 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -0.01 - - payment: - id: '256987893' - note: �0.01 - Invoice receipt against 023 - currency: GBP - paidOnDate: '2019-11-18T00:00:00' - totalAmount: 0.01 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -0.01 - - payment: - id: '256987069' - note: �0.01 - Invoice receipt against 023 - currency: GBP - paidOnDate: '2019-11-18T00:00:00' - totalAmount: 0.01 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -0.01 - - payment: - id: '256983353' - note: �0.01 - Invoice receipt against 023 - currency: GBP - paidOnDate: '2019-11-18T00:00:00' - totalAmount: 0.01 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -0.01 - - payment: - id: '256982947' - note: �0.01 - Invoice receipt against 023 - currency: GBP - paidOnDate: '2019-11-18T00:00:00' - totalAmount: 0.01 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -0.01 - - payment: - id: '256955690' - note: �0.01 - Invoice receipt against 023 - currency: GBP - paidOnDate: '2019-11-18T00:00:00' - totalAmount: 0.01 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -0.01 - - payment: - id: '256953648' - note: �0.01 - Invoice receipt against 023 - currency: GBP - paidOnDate: '2019-11-18T00:00:00' - totalAmount: 0.01 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -0.01 - - payment: - id: '216464177' - note: �0.01 - Invoice receipt against 023 - currency: GBP - paidOnDate: '2019-11-18T00:00:00' - totalAmount: 0.01 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -0.01 - - payment: - id: '216453277' - note: �0.01 - Invoice receipt against 023 - currency: GBP - paidOnDate: '2019-11-18T00:00:00' - totalAmount: 0.01 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -0.01 - - payment: - id: '216453273' - note: �0.01 - Invoice receipt against 023 - currency: GBP - paidOnDate: '2019-11-18T00:00:00' - totalAmount: 0.01 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -0.01 - - payment: - id: '216168092' - note: �0.01 - Invoice receipt against 023 - currency: GBP - paidOnDate: '2019-11-18T00:00:00' - totalAmount: 0.01 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -0.01 - - payment: - id: '216168080' - note: �0.01 - Invoice receipt against 023 - currency: GBP - paidOnDate: '2019-11-18T00:00:00' - totalAmount: 0.01 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -0.01 - - payment: - id: '260537850' - note: E2E Test transaction 19 DEBIT �250.00 - E2 E Test Transaction 19 - E2 E Test Transaction 19 - Invoice receipt against 023 - currency: GBP - paidOnDate: '2020-10-23T00:00:00' - totalAmount: 235 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -225 - - payment: - id: '413909805' - note: �1.00 - Invoice receipt against 023 - currency: GBP - paidOnDate: '2023-02-06T00:00:00' - totalAmount: 1 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -1 - withholdingTax: [] - subTotal: 11000 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 0 - totalAmount: 11000 - amountDue: 10766.74 - status: PartiallyPaid - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 1449 - _links: - current: - href: /companies/071ad738-68f3-4561-afd0-69bab9df0803/data/invoices?page=1&pageSize=2 - self: - href: /companies/071ad738-68f3-4561-afd0-69bab9df0803/data/invoices - next: - href: /companies/071ad738-68f3-4561-afd0-69bab9df0803/data/invoices?page=2&pageSize=2 - FreshBooks: - value: - results: - - id: '2596455' - invoiceNumber: test-AL - customerRef: - id: '602174' - companyName: ab1 - salesOrderRefs: [] - issueDate: '1987-10-01T00:00:00' - dueDate: '1987-10-01T00:00:00' - modifiedDate: '2023-03-24T16:07:23Z' - sourceModifiedDate: '2023-03-03T09:27:42' - paidOnDate: '2023-03-03T00:00:00' - currency: USD - lineItems: - - description: Editing creative writing for a client - unitAmount: 222.88 - quantity: 1 - discountAmount: 0 - subTotal: 222.88 - taxAmount: 0 - totalAmount: 222.88 - itemRef: - id: '639579' - name: Creative Writing Editorial - trackingCategoryRefs: [] - isDirectIncome: false - - description: '' - unitAmount: 0 - quantity: 1 - discountAmount: 0 - subTotal: 0 - taxAmount: 0 - totalAmount: 0 - trackingCategoryRefs: [] - isDirectIncome: false - paymentAllocations: - - payment: - id: '2570292' - note: '' - currency: USD - paidOnDate: '2023-03-03T00:00:00' - totalAmount: 0.17 - allocation: - currency: USD - currencyRate: 1 - totalAmount: -0.17 - withholdingTax: [] - totalDiscount: 0 - subTotal: 222.88 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 0 - totalAmount: 222.88 - amountDue: 222.71 - status: Submitted - note: '' - metadata: - isDeleted: false - - id: '2396753' - invoiceNumber: '0000062' - customerRef: - id: '512927' - companyName: Wood Turnerss - salesOrderRefs: [] - issueDate: '2016-04-04T00:00:00' - dueDate: '2016-04-04T00:00:00' - modifiedDate: '2023-03-24T16:07:23Z' - sourceModifiedDate: '2021-02-24T07:34:31' - currency: GBP - lineItems: [] - paymentAllocations: [] - withholdingTax: [] - totalDiscount: 0 - subTotal: 0 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 0 - totalAmount: 0 - amountDue: 0 - status: Submitted - note: '' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 172 - _links: - current: - href: /companies/3691c49e-0db4-4172-b3ab-e4084c365013/data/invoices?page=1&pageSize=2 - self: - href: /companies/3691c49e-0db4-4172-b3ab-e4084c365013/data/invoices - next: - href: /companies/3691c49e-0db4-4172-b3ab-e4084c365013/data/invoices?page=2&pageSize=2 - KashFlow: - value: - results: - - id: '143008521' - invoiceNumber: '40' - customerRef: - id: '86832299' - companyName: Mr French Person - salesOrderRefs: [] - issueDate: '2005-12-15T00:00:00' - dueDate: '2006-01-12T00:00:00' - modifiedDate: '2022-09-30T10:29:15Z' - currency: EUR - currencyRate: 0.844737287 - lineItems: - - unitAmount: 0 - quantity: 0 - subTotal: 0 - taxAmount: 0 - totalAmount: 0 - accountRef: - id: '0' - trackingCategoryRefs: [] - isDirectIncome: false - paymentAllocations: [] - withholdingTax: [] - subTotal: 0 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 0 - totalAmount: 0 - amountDue: 0 - status: Paid - - id: '143008597' - invoiceNumber: '41' - customerRef: - id: '86832299' - companyName: Mr French Person - salesOrderRefs: [] - issueDate: '2010-01-01T00:00:00' - dueDate: '2010-01-29T00:00:00' - modifiedDate: '2022-09-30T10:29:15Z' - paidOnDate: '2020-11-03T00:00:00' - currency: EUR - currencyRate: 0.844737287 - lineItems: - - unitAmount: 0 - quantity: 0 - subTotal: 0 - taxAmount: 0 - totalAmount: 0 - accountRef: - id: '0' - trackingCategoryRefs: [] - isDirectIncome: false - paymentAllocations: - - payment: - id: '146438947' - note: '' - currency: EUR - paidOnDate: '2020-11-03T00:00:00' - totalAmount: 0 - allocation: - currency: EUR - currencyRate: 1 - totalAmount: 0 - withholdingTax: [] - subTotal: 0 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 0 - totalAmount: 0 - amountDue: 0 - status: Paid - pageNumber: 1 - pageSize: 2 - totalResults: 37 - _links: - current: - href: /companies/3a707a99-89da-4b16-a5d6-595333a16352/data/invoices?page=1&pageSize=2 - self: - href: /companies/3a707a99-89da-4b16-a5d6-595333a16352/data/invoices - next: - href: /companies/3a707a99-89da-4b16-a5d6-595333a16352/data/invoices?page=2&pageSize=2 - Oracle NetSuite: - value: - results: - - id: '416' - invoiceNumber: INV01 - customerRef: - id: '417' - companyName: 10 Breww Ltd - salesOrderRefs: [] - issueDate: '2021-04-09T00:00:00' - dueDate: '2021-04-30T00:00:00' - modifiedDate: '2022-09-20T08:16:10Z' - sourceModifiedDate: '2021-08-25T15:55:36' - paidOnDate: '2021-04-20T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Non-Recurring Services - EC - unitAmount: 100 - quantity: 1 - subTotal: 100 - totalAmount: 100 - accountRef: - id: '54' - name: Sales - itemRef: - id: '28' - name: Non-Recurring Services - EC - trackingCategoryRefs: - - id: location-1 - isDirectIncome: false - paymentAllocations: - - payment: - id: '428' - reference: 'Payment #PYMT01' - accountRef: - id: '122' - name: Undeposited Funds - currency: GBP - currencyRate: 1 - paidOnDate: '2021-04-20T00:00:00' - totalAmount: 90 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -10 - - payment: - id: '428' - reference: 'Payment #PYMT01' - accountRef: - id: '122' - name: Undeposited Funds - currency: GBP - currencyRate: 1 - paidOnDate: '2021-04-20T00:00:00' - totalAmount: 90 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -90 - withholdingTax: [] - totalDiscount: 0 - subTotal: 100 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 0 - totalAmount: 100 - amountDue: 0 - status: Paid - - id: '8529' - invoiceNumber: INV63 - customerRef: - id: '417' - companyName: 10 Breww Ltd - salesOrderRefs: [] - issueDate: '2021-04-09T00:00:00' - dueDate: '2021-04-30T00:00:00' - modifiedDate: '2022-09-20T08:16:10Z' - sourceModifiedDate: '2022-02-24T13:51:58' - paidOnDate: '2022-09-12T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Andy Test Item - unitAmount: 2 - quantity: 3 - subTotal: 6 - totalAmount: 6 - accountRef: - id: '54' - name: Sales - itemRef: - id: '143' - name: Andy Test Item - trackingCategoryRefs: - - id: classification-2 - - id: department-1 - - id: location-1 - isDirectIncome: false - - description: Non-Recurring Services - EC - unitAmount: 4 - quantity: 5 - subTotal: 20 - totalAmount: 20 - accountRef: - id: '54' - name: Sales - itemRef: - id: '28' - name: Non-Recurring Services - EC - trackingCategoryRefs: - - id: classification-2 - - id: department-1 - - id: location-1 - isDirectIncome: false - paymentAllocations: - - payment: - id: '17588' - note: Payment Example - Invoice allocation - reference: 'Payment #PYMT90' - accountRef: - id: '1' - name: Cheque Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-06-01T00:00:00' - totalAmount: 10 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -10 - - payment: - id: '17589' - note: Example - Payment of an invoice - reference: 'Payment #PYMT91' - accountRef: - id: '1' - name: Cheque Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-06-01T00:00:00' - totalAmount: 20 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -10 - - payment: - id: '24558' - note: Test Push Payments - 1 test - reference: 'Payment #PYMT109' - accountRef: - id: '1' - name: Cheque Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-09-12T00:00:00' - totalAmount: 0.1 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -0.1 - - payment: - id: '24659' - note: Test Push Payments - 1 test - reference: 'Payment #PYMT111' - accountRef: - id: '1' - name: Cheque Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-09-12T00:00:00' - totalAmount: 0.1 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -0.1 - withholdingTax: [] - totalDiscount: 0 - subTotal: 26 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 0 - totalAmount: 26 - amountDue: 5.8 - status: PartiallyPaid - pageNumber: 1 - pageSize: 2 - totalResults: 107 - _links: - current: - href: /companies/973341cc-ca0a-4a88-88de-e5954157818b/data/invoices?page=1&pageSize=2 - self: - href: /companies/973341cc-ca0a-4a88-88de-e5954157818b/data/invoices - next: - href: /companies/973341cc-ca0a-4a88-88de-e5954157818b/data/invoices?page=2&pageSize=2 - QuickBooks Desktop: - value: - results: - - id: 2453-1071526256 - invoiceNumber: '975' - customerRef: - id: 420000-1071522044 - companyName: 'Prentice, Adelaide' - salesOrderRefs: [] - issueDate: '2022-11-28T00:00:00' - dueDate: '2023-12-28T00:00:00' - modifiedDate: '2023-04-26T09:08:12Z' - sourceModifiedDate: '2023-12-16T05:06:11' - paidOnDate: '2023-01-15T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Foundation slab - prep and pouring - unitAmount: 167.5 - quantity: 1 - subTotal: 167.5 - taxAmount: 0 - totalAmount: 167.5 - taxRateRef: - id: 20000-999022286 - name: Non-Taxable Sales - itemRef: - id: 320000-1071525597 - name: Concrete Slab - trackingCategoryRefs: - - id: 10000-933272658 - name: New Construction - isDirectIncome: false - - unitAmount: 0 - quantity: 1 - subTotal: 0 - taxAmount: 0 - totalAmount: 0 - trackingCategoryRefs: [] - isDirectIncome: false - - description: Rough lumber - unitAmount: 48 - quantity: 1 - subTotal: 48 - taxAmount: 0 - totalAmount: 48 - taxRateRef: - id: 10000-999022286 - name: Taxable Sales - itemRef: - id: 1C0000-933272656 - name: 'Lumber:Rough' - trackingCategoryRefs: - - id: 10000-933272658 - name: New Construction - isDirectIncome: false - - description: Trim lumber - unitAmount: 38 - quantity: 1 - subTotal: 38 - taxAmount: 0 - totalAmount: 38 - taxRateRef: - id: 10000-999022286 - name: Taxable Sales - itemRef: - id: 1D0000-933272656 - name: 'Lumber:Trim' - trackingCategoryRefs: - - id: 10000-933272658 - name: New Construction - isDirectIncome: false - - description: Window - unitAmount: 25 - quantity: 2 - subTotal: 50 - taxAmount: 0 - totalAmount: 50 - taxRateRef: - id: 10000-999022286 - name: Taxable Sales - itemRef: - id: 1F0000-933272656 - name: Window - trackingCategoryRefs: - - id: 10000-933272658 - name: New Construction - isDirectIncome: false - - description: Flooring - unitAmount: 50 - quantity: 1 - subTotal: 50 - taxAmount: 0 - totalAmount: 50 - taxRateRef: - id: 10000-999022286 - name: Taxable Sales - itemRef: - id: 310000-1071509547 - name: Flooring - trackingCategoryRefs: - - id: 10000-933272658 - name: New Construction - isDirectIncome: false - - description: Window - unitAmount: 30 - quantity: 2 - subTotal: 60 - taxAmount: 0 - totalAmount: 60 - taxRateRef: - id: 10000-999022286 - name: Taxable Sales - itemRef: - id: 1F0000-933272656 - name: Window - trackingCategoryRefs: - - id: 10000-933272658 - name: New Construction - isDirectIncome: false - paymentAllocations: - - payment: - id: 6973-1197775625 - note: Check - 80000-933270541 - reference: '983409' - accountRef: - id: 80000-933270541 - name: Undeposited Funds - currency: GBP - currencyRate: 1 - paidOnDate: '2023-01-15T00:00:00' - totalAmount: 431.95 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -431.95 - withholdingTax: [] - totalDiscount: 0 - subTotal: 413.5 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 18.45 - totalAmount: 431.95 - amountDue: 0 - discountPercentage: 0 - status: Paid - metadata: - isDeleted: false - - id: '469E-1071530054' - invoiceNumber: '978' - customerRef: - id: 220000-933272658 - companyName: 'Melton, Johnny' - salesOrderRefs: [] - issueDate: '2022-11-30T00:00:00' - dueDate: '2023-12-30T00:00:00' - modifiedDate: '2023-04-26T09:08:12Z' - sourceModifiedDate: '2023-12-16T05:06:09' - paidOnDate: '2023-01-10T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: See attached specification for details on work below. - unitAmount: 0 - quantity: 1 - subTotal: 0 - taxAmount: 0 - totalAmount: 0 - trackingCategoryRefs: - - id: 40000-933272658 - name: Remodel - isDirectIncome: false - - unitAmount: 0 - quantity: 1 - subTotal: 0 - taxAmount: 0 - totalAmount: 0 - trackingCategoryRefs: - - id: 40000-933272658 - name: Remodel - isDirectIncome: false - - description: Installation labor - unitAmount: 45.5 - quantity: 1 - subTotal: 45.5 - taxAmount: 0 - totalAmount: 45.5 - taxRateRef: - id: 20000-999022286 - name: Non-Taxable Sales - itemRef: - id: 20000-933272655 - name: Installation - trackingCategoryRefs: - - id: 40000-933272658 - name: Remodel - isDirectIncome: false - - description: Install drywall - unitAmount: 1320 - quantity: 1 - subTotal: 1320 - taxAmount: 0 - totalAmount: 1320 - taxRateRef: - id: 20000-999022286 - name: Non-Taxable Sales - itemRef: - id: 70000-933272656 - name: 'Subs:Drywall' - trackingCategoryRefs: - - id: 40000-933272658 - name: Remodel - isDirectIncome: false - - description: Electrical work - unitAmount: 1650 - quantity: 1 - subTotal: 1650 - taxAmount: 0 - totalAmount: 1650 - taxRateRef: - id: 20000-999022286 - name: Non-Taxable Sales - itemRef: - id: 80000-933272656 - name: 'Subs:Electrical' - trackingCategoryRefs: - - id: 40000-933272658 - name: Remodel - isDirectIncome: false - - description: Metal Work - unitAmount: 660 - quantity: 1 - subTotal: 660 - taxAmount: 0 - totalAmount: 660 - taxRateRef: - id: 20000-999022286 - name: Non-Taxable Sales - itemRef: - id: A0000-933272656 - name: 'Subs:Metal Wrk' - trackingCategoryRefs: - - id: 40000-933272658 - name: Remodel - isDirectIncome: false - - description: Install insulation - unitAmount: 1100 - quantity: 1 - subTotal: 1100 - taxAmount: 0 - totalAmount: 1100 - taxRateRef: - id: 20000-999022286 - name: Non-Taxable Sales - itemRef: - id: 90000-933272656 - name: 'Subs:Insulating' - trackingCategoryRefs: - - id: 40000-933272658 - name: Remodel - isDirectIncome: false - - description: Plumbing - unitAmount: 1650 - quantity: 1 - subTotal: 1650 - taxAmount: 0 - totalAmount: 1650 - taxRateRef: - id: 20000-999022286 - name: Non-Taxable Sales - itemRef: - id: C0000-933272656 - name: 'Subs:Plumbing' - trackingCategoryRefs: - - id: 40000-933272658 - name: Remodel - isDirectIncome: false - - description: Painting - unitAmount: 2420 - quantity: 1 - subTotal: 2420 - taxAmount: 0 - totalAmount: 2420 - taxRateRef: - id: 20000-999022286 - name: Non-Taxable Sales - itemRef: - id: B0000-933272656 - name: 'Subs:Painting' - trackingCategoryRefs: - - id: 40000-933272658 - name: Remodel - isDirectIncome: false - - description: Install carpeting - unitAmount: 3300 - quantity: 1 - subTotal: 3300 - taxAmount: 0 - totalAmount: 3300 - taxRateRef: - id: 20000-999022286 - name: Non-Taxable Sales - itemRef: - id: 60000-933272656 - name: 'Subs:Carpet' - trackingCategoryRefs: - - id: 40000-933272658 - name: Remodel - isDirectIncome: false - - description: Custom Bay Window - unitAmount: 1925 - quantity: 1 - subTotal: 1925 - taxAmount: 0 - totalAmount: 1925 - taxRateRef: - id: 10000-999022286 - name: Taxable Sales - itemRef: - id: 1F0000-933272656 - name: Window - trackingCategoryRefs: - - id: 40000-933272658 - name: Remodel - isDirectIncome: false - - description: Window - unitAmount: 115.5 - quantity: 1 - subTotal: 115.5 - taxAmount: 0 - totalAmount: 115.5 - taxRateRef: - id: 10000-999022286 - name: Taxable Sales - itemRef: - id: 1F0000-933272656 - name: Window - trackingCategoryRefs: - - id: 40000-933272658 - name: Remodel - isDirectIncome: false - - description: Equipment Rental - unitAmount: 700 - quantity: 1 - subTotal: 700 - taxAmount: 0 - totalAmount: 700 - taxRateRef: - id: 20000-999022286 - name: Non-Taxable Sales - itemRef: - id: 230000-933272656 - name: Equip Rental - trackingCategoryRefs: - - id: 40000-933272658 - name: Remodel - isDirectIncome: false - - description: 10% retainage to be billed after job is complete and approved. - unitAmount: -555.5 - quantity: 1 - subTotal: -555.5 - taxAmount: 0 - totalAmount: -555.5 - taxRateRef: - id: 20000-999022286 - name: Non-Taxable Sales - itemRef: - id: 260000-933272656 - name: Retainage 1 - trackingCategoryRefs: - - id: 40000-933272658 - name: Remodel - isDirectIncome: false - paymentAllocations: - - payment: - id: 6915-1197775450 - note: Check - 80000-933270541 - reference: '19650' - accountRef: - id: 80000-933270541 - name: Undeposited Funds - currency: GBP - currencyRate: 1 - paidOnDate: '2023-01-10T00:00:00' - totalAmount: 14488.64 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -14488.64 - withholdingTax: [] - totalDiscount: 0 - subTotal: 14330.5 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 158.14 - totalAmount: 14488.64 - amountDue: 0 - discountPercentage: 0 - status: Paid - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 113 - _links: - current: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/data/invoices?page=1&pageSize=2 - self: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/data/invoices - next: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/data/invoices?page=2&pageSize=2 - QuickBooks Online: - value: - results: - - id: '16' - invoiceNumber: '1001' - customerRef: - id: '3' - companyName: Information Sharing Technology - salesOrderRefs: [] - issueDate: '2019-02-18T00:00:00' - dueDate: '2019-03-20T00:00:00' - modifiedDate: '2023-01-18T11:03:02Z' - sourceModifiedDate: '2022-09-20T10:12:08Z' - paidOnDate: '2020-06-01T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Service - unitAmount: 500 - quantity: 10 - subTotal: 5000 - taxAmount: 0 - totalAmount: 5000 - accountRef: - id: '1' - name: Sales - itemRef: - id: '1' - name: Sales - trackingCategoryRefs: [] - isDirectIncome: false - paymentAllocations: - - payment: - id: '500' - note: Payments of type PrepaidPayment - reference: '498254' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-20T00:00:00' - totalAmount: 37.77 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -37.77 - - payment: - id: '507' - note: Payments of type PrepaidPayment - reference: '505288' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-20T00:00:00' - totalAmount: 62.82 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -54.62 - - payment: - id: '499' - note: Payments of type Cash - reference: '498147' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-20T00:00:00' - totalAmount: 1017 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -5.08 - - payment: - id: '491' - note: Payments of type PrepaidPayment - reference: '489239' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-18T00:00:00' - totalAmount: 48.74 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -48.74 - - payment: - id: '490' - note: Payments of type Cash - reference: '489120' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-18T00:00:00' - totalAmount: 1112.76 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -7.74 - - payment: - id: '482' - note: Payments of type PrepaidPayment - reference: '480242' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-17T00:00:00' - totalAmount: 33.9 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -33.9 - - payment: - id: '481' - note: Payments of type Cash - reference: '480129' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-17T00:00:00' - totalAmount: 965.85 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -10.21 - - payment: - id: '470' - note: Payments of type PrepaidPayment - reference: '468248' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-13T00:00:00' - totalAmount: 67.83 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -41.38 - - payment: - id: '463' - note: Payments of type PrepaidPayment - reference: '461243' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-13T00:00:00' - totalAmount: 7.47 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -7.47 - - payment: - id: '462' - note: Payments of type Cash - reference: '461144' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-13T00:00:00' - totalAmount: 914.05 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -34.76 - - payment: - id: '456' - note: Payments of type PrepaidPayment - reference: '454252' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-11T00:00:00' - totalAmount: 70.44 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -33.72 - - payment: - id: '447' - note: Payments of type PrepaidPayment - reference: '445278' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-11T00:00:00' - totalAmount: 24.95 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -24.95 - - payment: - id: '446' - note: Payments of type Cash - reference: '44518' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-11T00:00:00' - totalAmount: 904.82 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -17.96 - - payment: - id: '438' - note: Payments of type PrepaidPayment - reference: '436234' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-10T00:00:00' - totalAmount: 6.03 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -6.03 - - payment: - id: '437' - note: Payments of type Cash - reference: '436168' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-10T00:00:00' - totalAmount: 760.05 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -31.48 - - payment: - id: '647' - note: Payments of type PrepaidPayment - reference: '645263' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-03-20T00:00:00' - totalAmount: 40.43 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -0.01 - - payment: - id: '429' - note: Payments of type PrepaidPayment - reference: '427270' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-09T00:00:00' - totalAmount: 56.75 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -28.75 - - payment: - id: '420' - note: Payments of type PrepaidPayment - reference: '418258' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-08T00:00:00' - totalAmount: 8.92 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -8.92 - - payment: - id: '419' - note: Payments of type Cash - reference: '418157' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-08T00:00:00' - totalAmount: 407.2 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -2.55 - - payment: - id: '705' - note: Payments of type PrepaidPayment - reference: '703246' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-04-03T00:00:00' - totalAmount: 25 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -25 - - payment: - id: '411' - note: Payments of type PrepaidPayment - reference: '409292' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-07T00:00:00' - totalAmount: 6.22 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -6.22 - - payment: - id: '410' - note: Payments of type Cash - reference: '409145' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-07T00:00:00' - totalAmount: 725.48 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -33.79 - - payment: - id: '772' - note: Payments of type PrepaidPayment - reference: '770263' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-04-24T00:00:00' - totalAmount: 10.35 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -0.01 - - payment: - id: '779' - note: Payments of type PrepaidPayment - reference: '777217' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-04-24T00:00:00' - totalAmount: 39.55 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -0.01 - - payment: - id: '792' - note: Payments of type PrepaidPayment - reference: '790262' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-04-29T00:00:00' - totalAmount: 12.46 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -0.01 - - payment: - id: '402' - note: Payments of type PrepaidPayment - reference: '400275' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-06T00:00:00' - totalAmount: 32.88 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -29.29 - - payment: - id: '393' - note: Payments of type PrepaidPayment - reference: '391247' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-05T00:00:00' - totalAmount: 16.73 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -16.73 - - payment: - id: '392' - note: Payments of type Cash - reference: '391115' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-05T00:00:00' - totalAmount: 1094.8 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -47.35 - - payment: - id: '386' - note: Payments of type PrepaidPayment - reference: '384213' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-04T00:00:00' - totalAmount: 9.99 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -9.99 - - payment: - id: '385' - note: Payments of type Cash - reference: '38418' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-04T00:00:00' - totalAmount: 858.41 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -13.4 - - payment: - id: '377' - note: Payments of type PrepaidPayment - reference: '375298' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-03T00:00:00' - totalAmount: 39.06 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -39.06 - - payment: - id: '376' - note: Payments of type Cash - reference: '375123' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-03T00:00:00' - totalAmount: 802.17 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -11.54 - - payment: - id: '368' - note: Payments of type PrepaidPayment - reference: '366288' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-02T00:00:00' - totalAmount: 12.15 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -12.15 - - payment: - id: '367' - note: Payments of type Cash - reference: '366195' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-02T00:00:00' - totalAmount: 827.2 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -25.4 - - payment: - id: '361' - note: Payments of type PrepaidPayment - reference: '359220' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-01T00:00:00' - totalAmount: 54.12 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -40.61 - - payment: - id: '349' - note: Payments of type PrepaidPayment - reference: '347216' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-31T00:00:00' - totalAmount: 25.32 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -25.32 - - payment: - id: '348' - note: Payments of type Cash - reference: '34710' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-31T00:00:00' - totalAmount: 949.74 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -7.07 - - payment: - id: '342' - note: Payments of type PrepaidPayment - reference: '340292' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-30T00:00:00' - totalAmount: 26.59 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -26.59 - - payment: - id: '341' - note: Payments of type Cash - reference: '340128' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-30T00:00:00' - totalAmount: 859.44 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -29.21 - - payment: - id: '333' - note: Payments of type PrepaidPayment - reference: '331236' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-30T00:00:00' - totalAmount: 17.94 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -17.58 - - payment: - id: '322' - note: Payments of type PrepaidPayment - reference: '320256' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-29T00:00:00' - totalAmount: 14.33 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -14.33 - - payment: - id: '321' - note: Payments of type Cash - reference: '320186' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-29T00:00:00' - totalAmount: 798.79 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -27.08 - - payment: - id: '313' - note: Payments of type PrepaidPayment - reference: '311211' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-29T00:00:00' - totalAmount: 45.06 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -41.47 - - payment: - id: '304' - note: Payments of type PrepaidPayment - reference: '302284' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-28T00:00:00' - totalAmount: 17.04 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -17.04 - - payment: - id: '303' - note: Payments of type Cash - reference: '302128' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-28T00:00:00' - totalAmount: 837.68 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -6.66 - - payment: - id: '297' - note: Payments of type PrepaidPayment - reference: '295264' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-27T00:00:00' - totalAmount: 14.92 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -14.92 - - payment: - id: '296' - note: Payments of type Cash - reference: '295176' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-27T00:00:00' - totalAmount: 687.33 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -4.18 - - payment: - id: '288' - note: Payments of type PrepaidPayment - reference: '286250' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-26T00:00:00' - totalAmount: 12.73 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -12.73 - - payment: - id: '287' - note: Payments of type Cash - reference: '286188' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-26T00:00:00' - totalAmount: 539.55 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -6.97 - - payment: - id: '279' - note: Payments of type PrepaidPayment - reference: '277281' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-25T00:00:00' - totalAmount: 30.58 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -30.58 - - payment: - id: '278' - note: Payments of type Cash - reference: '277153' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-25T00:00:00' - totalAmount: 1063.48 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -37.08 - - payment: - id: '270' - note: Payments of type PrepaidPayment - reference: '268269' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-24T00:00:00' - totalAmount: 11.69 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -11.69 - - payment: - id: '269' - note: Payments of type Cash - reference: '268154' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-24T00:00:00' - totalAmount: 968.21 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -48.58 - - payment: - id: '263' - note: Payments of type PrepaidPayment - reference: '261215' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-24T00:00:00' - totalAmount: 7.24 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -7.24 - - payment: - id: '262' - note: Payments of type Cash - reference: '261162' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-24T00:00:00' - totalAmount: 425.69 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -15.02 - - payment: - id: '256' - note: Payments of type PrepaidPayment - reference: '254258' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-23T00:00:00' - totalAmount: 37.68 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -16.6 - - payment: - id: '249' - note: Payments of type PrepaidPayment - reference: '247245' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-23T00:00:00' - totalAmount: 22.03 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -10.84 - - payment: - id: '240' - note: Payments of type PrepaidPayment - reference: '238213' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-23T00:00:00' - totalAmount: 47.7 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -31.98 - - payment: - id: '231' - note: Payments of type Prepaid - reference: '229276' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-23T00:00:00' - totalAmount: 38.7 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -30.52 - - payment: - id: '218' - note: Payments of type Prepaid - reference: '216237' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-22T00:00:00' - totalAmount: 19.67 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -19.67 - - payment: - id: '217' - note: Payments of type Cash - reference: '216161' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-22T00:00:00' - totalAmount: 565.24 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -1.66 - - payment: - id: '209' - note: Payments of type Prepaid - reference: '207254' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-21T00:00:00' - totalAmount: 27.62 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -27.62 - - payment: - id: '208' - note: Payments of type Cash - reference: '207189' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-21T00:00:00' - totalAmount: 914.33 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -7.86 - - payment: - id: '200' - note: Payments of type Prepaid - reference: '198234' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-20T00:00:00' - totalAmount: 18.35 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -18.35 - - payment: - id: '199' - note: Payments of type Cash - reference: '198128' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-20T00:00:00' - totalAmount: 1209.15 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -20.22 - - payment: - id: '191' - note: Payments of type Prepaid - reference: '18922' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-17T00:00:00' - totalAmount: 16.44 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -16.44 - - payment: - id: '190' - note: Payments of type Cash - reference: '189174' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-17T00:00:00' - totalAmount: 607.48 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -13.34 - - payment: - id: '182' - note: Payments of type Prepaid - reference: '180274' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-17T00:00:00' - totalAmount: 47.91 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -47.91 - - payment: - id: '181' - note: Payments of type Cash - reference: '180197' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-17T00:00:00' - totalAmount: 1087.13 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -10.04 - - payment: - id: '173' - note: Payments of type Prepaid - reference: '171213' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-15T00:00:00' - totalAmount: 35.36 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -26.29 - - payment: - id: '166' - note: Payments of type Prepaid - reference: '164260' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-15T00:00:00' - totalAmount: 39.98 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -39.98 - - payment: - id: '165' - note: Payments of type Cash - reference: '164142' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-15T00:00:00' - totalAmount: 913.09 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -18.99 - - payment: - id: '157' - note: Payments of type Prepaid - reference: '155266' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-15T00:00:00' - totalAmount: 14.32 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -4.87 - - payment: - id: '150' - note: Payments of type Prepaid - reference: '148217' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-13T00:00:00' - totalAmount: 11.57 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -11.57 - - payment: - id: '149' - note: Payments of type Cash - reference: '148151' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-13T00:00:00' - totalAmount: 643.97 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -22.26 - - payment: - id: '141' - note: Payments of type Prepaid - reference: '139288' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-13T00:00:00' - totalAmount: 27.88 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -27.88 - - payment: - id: '140' - note: Payments of type Cash - reference: '139163' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-13T00:00:00' - totalAmount: 1078.72 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -13.71 - - payment: - id: '132' - note: Payments of type Prepaid - reference: '13022' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-10T00:00:00' - totalAmount: 47.38 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -42.36 - - payment: - id: '123' - note: Payments of type Prepaid - reference: '121293' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-10T00:00:00' - totalAmount: 34.45 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -34.45 - - payment: - id: '122' - note: Payments of type Cash - reference: '121197' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-10T00:00:00' - totalAmount: 771.61 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -16.31 - - payment: - id: '116' - note: Payments of type Prepaid - reference: '114213' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-10T00:00:00' - totalAmount: 65.77 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -23.86 - - payment: - id: '521' - note: Payments of type PrepaidPayment - reference: '519243' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-20T00:00:00' - totalAmount: 14.74 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -0.01 - - payment: - id: '843' - note: Payments of type PrepaidPayment - reference: '841264' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-05-07T00:00:00' - totalAmount: 25.64 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -0.01 - - payment: - id: '850' - note: Payments of type PrepaidPayment - reference: '848254' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-05-14T00:00:00' - totalAmount: 53.68 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -0.01 - - payment: - id: '877' - note: Payments of type PrepaidPayment - reference: '875210' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-06-01T00:00:00' - totalAmount: 12.7 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -0.01 - withholdingTax: [] - totalDiscount: 0 - subTotal: 5000 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 0 - totalAmount: 5000 - amountDue: 3296.44 - status: PartiallyPaid - note: Invoice for service - - id: '17' - invoiceNumber: '1002' - customerRef: - id: '2' - companyName: Software Coperation - salesOrderRefs: [] - issueDate: '2019-02-18T00:00:00' - dueDate: '2019-03-20T00:00:00' - modifiedDate: '2023-01-18T11:03:02Z' - sourceModifiedDate: '2019-02-21T17:51:49Z' - currency: GBP - currencyRate: 1 - lineItems: - - description: IT Support - unitAmount: 80 - quantity: 40 - subTotal: 3200 - taxAmount: 0 - totalAmount: 3200 - accountRef: - id: '1' - name: Sales - itemRef: - id: '2' - name: Hours - trackingCategoryRefs: [] - isDirectIncome: false - paymentAllocations: [] - withholdingTax: [] - totalDiscount: 0 - subTotal: 3200 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 0 - totalAmount: 3200 - amountDue: 3200 - status: Submitted - pageNumber: 1 - pageSize: 2 - totalResults: 1326 - _links: - current: - href: /companies/10818b5e-6e6a-4ed4-a1c5-3e3efe626e87/data/invoices?page=1&pageSize=2 - self: - href: /companies/10818b5e-6e6a-4ed4-a1c5-3e3efe626e87/data/invoices - next: - href: /companies/10818b5e-6e6a-4ed4-a1c5-3e3efe626e87/data/invoices?page=2&pageSize=2 - QuickBooks Online Sandbox: - value: - results: - - id: '30' - invoiceNumber: '1002' - customerRef: - id: '59' - companyName: Ecker Holiday event - salesOrderRefs: [] - issueDate: '2016-01-06T00:00:00' - dueDate: '2016-02-05T00:00:00' - modifiedDate: '2023-04-26T09:36:12Z' - sourceModifiedDate: '2023-01-25T13:49:52Z' - paidOnDate: '2016-02-12T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Holiday party - gold level test v1 - unitAmount: 2000 - quantity: 1 - subTotal: 2000 - taxAmount: 400 - totalAmount: 2400 - accountRef: - id: '44' - name: Sales - taxRateRef: - id: 3_Invoices - name: 20.0% S Invoices - effectiveTaxRate: 20 - itemRef: - id: '7' - name: Gold party - trackingCategoryRefs: [] - isDirectIncome: false - - description: Venue rental - unitAmount: 10000 - quantity: 1 - subTotal: 10000 - taxAmount: 2000 - totalAmount: 12000 - accountRef: - id: '68' - name: Billable Expenses Income - taxRateRef: - id: 3_Invoices - name: 20.0% S Invoices - effectiveTaxRate: 20 - itemRef: - id: '20' - name: Venue Rental - trackingCategoryRefs: [] - isDirectIncome: false - - description: promotional items -- misc engraved items - unitAmount: 13.5 - quantity: 75 - subTotal: 1012.5 - taxAmount: 202.5 - totalAmount: 1215 - accountRef: - id: '68' - name: Billable Expenses Income - taxRateRef: - id: 3_Invoices - name: 20.0% S Invoices - effectiveTaxRate: 20 - itemRef: - id: '12' - name: Misc - trackingCategoryRefs: [] - isDirectIncome: false - paymentAllocations: - - payment: - id: '31' - note: '' - accountRef: - id: '81' - name: Current - currency: GBP - currencyRate: 1 - paidOnDate: '2016-02-12T00:00:00' - totalAmount: 15615 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -15615 - withholdingTax: [] - totalDiscount: 0 - subTotal: 13012.5 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 2602.5 - totalAmount: 15615 - amountDue: 0 - status: Paid - metadata: - isDeleted: false - - id: '3793' - invoiceNumber: 276e29c1 - customerRef: - id: '59' - companyName: Ecker Holiday event - salesOrderRefs: [] - issueDate: '2016-01-06T00:00:00' - dueDate: '2016-02-05T00:00:00' - modifiedDate: '2023-04-26T09:36:12Z' - sourceModifiedDate: '2022-08-22T13:04:50Z' - currency: GBP - currencyRate: 1 - lineItems: - - description: Holiday party - gold level test v1 - unitAmount: 2000 - quantity: 1 - subTotal: 2000 - taxAmount: 400 - totalAmount: 2400 - accountRef: - id: '44' - name: Sales - taxRateRef: - id: 3_Invoices - name: 20.0% S Invoices - effectiveTaxRate: 20 - itemRef: - id: '7' - name: Gold party - trackingCategoryRefs: [] - isDirectIncome: false - - description: Venue rental - unitAmount: 10000 - quantity: 1 - subTotal: 10000 - taxAmount: 2000 - totalAmount: 12000 - accountRef: - id: '68' - name: Billable Expenses Income - taxRateRef: - id: 3_Invoices - name: 20.0% S Invoices - effectiveTaxRate: 20 - itemRef: - id: '20' - name: Venue Rental - trackingCategoryRefs: [] - isDirectIncome: false - - description: promotional items -- misc engraved items - unitAmount: 13.5 - quantity: 75 - subTotal: 1012.5 - taxAmount: 202.5 - totalAmount: 1215 - accountRef: - id: '68' - name: Billable Expenses Income - taxRateRef: - id: 3_Invoices - name: 20.0% S Invoices - effectiveTaxRate: 20 - itemRef: - id: '12' - name: Misc - trackingCategoryRefs: [] - isDirectIncome: false - paymentAllocations: [] - withholdingTax: [] - totalDiscount: 0 - subTotal: 13012.5 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 2602.5 - totalAmount: 15615 - amountDue: 15615 - status: Submitted - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 1077 - _links: - current: - href: /companies/5a7f3597-36e1-4216-86fe-289ad36088a6/data/invoices?page=1&pageSize=2 - self: - href: /companies/5a7f3597-36e1-4216-86fe-289ad36088a6/data/invoices - next: - href: /companies/5a7f3597-36e1-4216-86fe-289ad36088a6/data/invoices?page=2&pageSize=2 - Sage 200cloud: - value: - results: - - id: '82322' - invoiceNumber: '0000000110' - customerRef: - id: A1D001 - companyName: A1 Design Services - salesOrderRefs: [] - issueDate: '2020-07-13T00:00:00Z' - dueDate: '2020-08-12T00:00:00Z' - modifiedDate: '2022-10-14T09:36:12Z' - sourceModifiedDate: '2020-07-13T11:06:40Z' - currency: GBP - currencyRate: 1 - lineItems: - - description: Tax Summary - Standard rate - unitAmount: 0 - quantity: 0 - discountAmount: 0.22 - subTotal: 0 - taxAmount: 8.67 - totalAmount: 8.67 - taxRateRef: - id: '1729' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: [] - isDirectIncome: false - - description: Goods Summary - unitAmount: 0 - quantity: 0 - discountAmount: 1.08 - subTotal: 43.34 - taxAmount: 0 - totalAmount: 43.34 - trackingCategoryRefs: [] - isDirectIncome: false - paymentAllocations: [] - withholdingTax: [] - totalDiscount: 1.3 - subTotal: 43.34 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 8.67 - totalAmount: 52.01 - amountDue: 52.01 - discountPercentage: 2.49 - status: Submitted - note: '0000000114' - - id: '83515' - invoiceNumber: '0000000111' - customerRef: - id: BRO001 - companyName: Bronson Inc - salesOrderRefs: [] - issueDate: '2020-07-15T00:00:00Z' - dueDate: '2020-08-29T00:00:00Z' - modifiedDate: '2022-10-14T09:36:12Z' - sourceModifiedDate: '2020-07-15T10:45:56Z' - currency: GBP - currencyRate: 1 - lineItems: - - description: Tax Summary - Zero rated - unitAmount: 0 - quantity: 0 - discountAmount: 0 - subTotal: 0 - taxAmount: 0 - totalAmount: 0 - taxRateRef: - id: '1728' - name: Zero rated - effectiveTaxRate: 0 - trackingCategoryRefs: [] - isDirectIncome: false - - description: Goods Summary - unitAmount: 0 - quantity: 0 - discountAmount: 3.13 - subTotal: 125 - taxAmount: 0 - totalAmount: 125 - trackingCategoryRefs: [] - isDirectIncome: false - paymentAllocations: [] - withholdingTax: [] - totalDiscount: 3.13 - subTotal: 125 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 0 - totalAmount: 125 - amountDue: 125 - discountPercentage: 2.5 - status: Submitted - note: '0000000111' - pageNumber: 1 - pageSize: 2 - totalResults: 409 - _links: - current: - href: /companies/93c21e2d-049c-4d24-b41b-57e61c30b69e/data/invoices?page=1&pageSize=2 - self: - href: /companies/93c21e2d-049c-4d24-b41b-57e61c30b69e/data/invoices - next: - href: /companies/93c21e2d-049c-4d24-b41b-57e61c30b69e/data/invoices?page=2&pageSize=2 - Sage 50 (UK): - value: - results: - - id: INV-1 - invoiceNumber: '1' - customerRef: - id: A1D001 - companyName: A1 Design Services - salesOrderRefs: [] - issueDate: '2021-01-02T00:00:00' - modifiedDate: '2023-03-30T14:42:42Z' - sourceModifiedDate: '2022-11-25T09:43:54' - paidOnDate: '2022-01-29T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: AT Mini Tower Case - unitAmount: 14.25 - quantity: 1 - discountAmount: 0 - subTotal: 14.25 - taxAmount: 2.43 - totalAmount: 16.68 - accountRef: - id: '4000' - name: Sales North - discountPercentage: 0 - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_1 - name: Sales - isDirectIncome: false - - description: Whiteboard - Drywipe (900 x 1200) - unitAmount: 19 - quantity: 4 - discountAmount: 0 - subTotal: 76 - taxAmount: 12.97 - totalAmount: 88.97 - accountRef: - id: '4000' - name: Sales North - discountPercentage: 0 - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_1 - name: Sales - isDirectIncome: false - - description: A4 Ledger Book - 5 Column - unitAmount: 7.59 - quantity: 8 - discountAmount: 0 - subTotal: 60.72 - taxAmount: 10.36 - totalAmount: 71.08 - accountRef: - id: '4000' - name: Sales North - discountPercentage: 0 - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_1 - name: Sales - isDirectIncome: false - - description: Shorthand Notebook - 80 Sheets - unitAmount: 4.27 - quantity: 20 - discountAmount: 0 - subTotal: 85.4 - taxAmount: 14.57 - totalAmount: 99.97 - accountRef: - id: '4000' - name: Sales North - discountPercentage: 0 - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_1 - name: Sales - isDirectIncome: false - - description: Calculator - Desktop - unitAmount: 9.5 - quantity: 1 - discountAmount: 0 - subTotal: 9.5 - taxAmount: 1.62 - totalAmount: 11.12 - accountRef: - id: '4000' - name: Sales North - discountPercentage: 0 - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_1 - name: Sales - isDirectIncome: false - - description: Calculator - Desktop (Printing) - unitAmount: 16.15 - quantity: 1 - discountAmount: 0 - subTotal: 16.15 - taxAmount: 2.76 - totalAmount: 18.91 - accountRef: - id: '4000' - name: Sales North - discountPercentage: 0 - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_1 - name: Sales - isDirectIncome: false - - description: Calculator - Printing Rolls - unitAmount: 5.7 - quantity: 15 - discountAmount: 0 - subTotal: 85.5 - taxAmount: 14.59 - totalAmount: 100.09 - accountRef: - id: '4000' - name: Sales North - discountPercentage: 0 - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_1 - name: Sales - isDirectIncome: false - - description: Correction Fluid - White - unitAmount: 2.37 - quantity: 7 - discountAmount: 0 - subTotal: 16.59 - taxAmount: 2.83 - totalAmount: 19.42 - accountRef: - id: '4000' - name: Sales North - discountPercentage: 0 - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_1 - name: Sales - isDirectIncome: false - - description: Envelope - White (110 x 220) Plain - unitAmount: 8.54 - quantity: 20 - discountAmount: 0 - subTotal: 170.8 - taxAmount: 29.14 - totalAmount: 199.94 - accountRef: - id: '4000' - name: Sales North - discountPercentage: 0 - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_1 - name: Sales - isDirectIncome: false - - description: Flip Chart - A1 Pad - unitAmount: 15.2 - quantity: 10 - discountAmount: 0 - subTotal: 152 - taxAmount: 25.94 - totalAmount: 177.94 - accountRef: - id: '4000' - name: Sales North - discountPercentage: 0 - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_1 - name: Sales - isDirectIncome: false - - description: Laminator Pouches - A4 - unitAmount: 11.4 - quantity: 5 - discountAmount: 0 - subTotal: 57 - taxAmount: 9.73 - totalAmount: 66.73 - accountRef: - id: '4000' - name: Sales North - discountPercentage: 0 - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_1 - name: Sales - isDirectIncome: false - - description: Mouse Mat - (241 x 203) Blue - unitAmount: 1.42 - quantity: 5 - discountAmount: 0 - subTotal: 7.1 - taxAmount: 1.21 - totalAmount: 8.31 - accountRef: - id: '4000' - name: Sales North - discountPercentage: 0 - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_1 - name: Sales - isDirectIncome: false - - description: Copy Paper - Economy Grade - unitAmount: 2.46 - quantity: 80 - discountAmount: 0 - subTotal: 196.8 - taxAmount: 33.58 - totalAmount: 230.38 - accountRef: - id: '4000' - name: Sales North - discountPercentage: 0 - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_1 - name: Sales - isDirectIncome: false - - description: Coloured Paper - Pastel Blue - unitAmount: 3.61 - quantity: 5 - discountAmount: 0 - subTotal: 18.05 - taxAmount: 3.08 - totalAmount: 21.13 - accountRef: - id: '4000' - name: Sales North - discountPercentage: 0 - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_1 - name: Sales - isDirectIncome: false - - description: Ball Point Pen - Black - unitAmount: 1.9 - quantity: 8 - discountAmount: 0 - subTotal: 15.2 - taxAmount: 2.59 - totalAmount: 17.79 - accountRef: - id: '4000' - name: Sales North - discountPercentage: 0 - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_1 - name: Sales - isDirectIncome: false - - description: Pencil - HB - unitAmount: 2.37 - quantity: 3 - discountAmount: 0 - subTotal: 7.11 - taxAmount: 1.21 - totalAmount: 8.32 - accountRef: - id: '4000' - name: Sales North - discountPercentage: 0 - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_1 - name: Sales - isDirectIncome: false - - description: Remember-Me Sticky Notes (Recycled) - unitAmount: 3.32 - quantity: 6 - discountAmount: 0 - subTotal: 19.92 - taxAmount: 3.4 - totalAmount: 23.32 - accountRef: - id: '4000' - name: Sales North - discountPercentage: 0 - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_1 - name: Sales - isDirectIncome: false - - description: Scissors - Economy - unitAmount: 2.85 - quantity: 1 - discountAmount: 0 - subTotal: 2.85 - taxAmount: 0.49 - totalAmount: 3.34 - accountRef: - id: '4000' - name: Sales North - discountPercentage: 0 - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_1 - name: Sales - isDirectIncome: false - - description: Adhesive Tape - Brown (50mm x 66m) - unitAmount: 2.66 - quantity: 5 - discountAmount: 0 - subTotal: 13.3 - taxAmount: 2.27 - totalAmount: 15.57 - accountRef: - id: '4000' - name: Sales North - discountPercentage: 0 - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_1 - name: Sales - isDirectIncome: false - - description: JP010 Jet Printer Cartridge - unitAmount: 17.1 - quantity: 5 - discountAmount: 0 - subTotal: 85.5 - taxAmount: 14.59 - totalAmount: 100.09 - accountRef: - id: '4000' - name: Sales North - discountPercentage: 0 - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_1 - name: Sales - isDirectIncome: false - - description: Letter Trays - 3 pack (Red) - unitAmount: 6.65 - quantity: 2 - discountAmount: 0 - subTotal: 13.3 - taxAmount: 2.27 - totalAmount: 15.57 - accountRef: - id: '4000' - name: Sales North - discountPercentage: 0 - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_1 - name: Sales - isDirectIncome: false - paymentAllocations: - - payment: - id: '265' - note: Sales receipt 265 linked to sales invoice inv-1. - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 1432.17 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -100.09 - - payment: - id: '265' - note: Sales receipt 265 linked to sales invoice inv-1. - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 1432.17 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -66.73 - - payment: - id: '265' - note: Sales receipt 265 linked to sales invoice inv-1. - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 1432.17 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -117.5 - - payment: - id: '265' - note: Sales receipt 265 linked to sales invoice inv-1. - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 1432.17 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -177.94 - - payment: - id: '265' - note: Sales receipt 265 linked to sales invoice inv-1. - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 1432.17 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -230.38 - - payment: - id: '265' - note: Sales receipt 265 linked to sales invoice inv-1. - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 1432.17 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -17.79 - - payment: - id: '265' - note: Sales receipt 265 linked to sales invoice inv-1. - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 1432.17 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -71.08 - - payment: - id: '265' - note: Sales receipt 265 linked to sales invoice inv-1. - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 1432.17 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -88.97 - - payment: - id: '265' - note: Sales receipt 265 linked to sales invoice inv-1. - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 1432.17 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -15.57 - - payment: - id: '265' - note: Sales receipt 265 linked to sales invoice inv-1. - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 1432.17 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -3.34 - - payment: - id: '265' - note: Sales receipt 265 linked to sales invoice inv-1. - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 1432.17 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -199.94 - - payment: - id: '265' - note: Sales receipt 265 linked to sales invoice inv-1. - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 1432.17 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -100.09 - - payment: - id: '265' - note: Sales receipt 265 linked to sales invoice inv-1. - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 1432.17 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -16.68 - - payment: - id: '265' - note: Sales receipt 265 linked to sales invoice inv-1. - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 1432.17 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -18.91 - - payment: - id: '265' - note: Sales receipt 265 linked to sales invoice inv-1. - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 1432.17 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -23.32 - - payment: - id: '265' - note: Sales receipt 265 linked to sales invoice inv-1. - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 1432.17 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -99.97 - - payment: - id: '265' - note: Sales receipt 265 linked to sales invoice inv-1. - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 1432.17 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -21.13 - - payment: - id: '265' - note: Sales receipt 265 linked to sales invoice inv-1. - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 1432.17 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -15.57 - - payment: - id: '265' - note: Sales receipt 265 linked to sales invoice inv-1. - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 1432.17 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -19.42 - - payment: - id: '265' - note: Sales receipt 265 linked to sales invoice inv-1. - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 1432.17 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -8.31 - - payment: - id: '265' - note: Sales receipt 265 linked to sales invoice inv-1. - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 1432.17 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -11.12 - - payment: - id: '265' - note: Sales receipt 265 linked to sales invoice inv-1. - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 1432.17 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -8.32 - withholdingTax: [] - totalDiscount: 0 - subTotal: 1223.04 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 209.13 - totalAmount: 1432.17 - amountDue: 0 - status: Paid - note: '' - metadata: - isDeleted: false - - id: INV-9 - invoiceNumber: '9' - customerRef: - id: KIN001 - companyName: Kinghorn & French - salesOrderRefs: [] - issueDate: '2021-01-04T00:00:00' - modifiedDate: '2023-03-30T14:42:42Z' - sourceModifiedDate: '2022-11-25T09:43:54' - paidOnDate: '2022-01-29T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: PC Combo Pack 4 - unitAmount: 765 - quantity: 5 - discountAmount: 765 - subTotal: 3060 - taxAmount: 522.11 - totalAmount: 3582.11 - accountRef: - id: '4000' - name: Sales North - discountPercentage: 20 - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_1 - name: Sales - isDirectIncome: false - - description: PC Combo Pack 5 - unitAmount: 1080 - quantity: 4 - discountAmount: 864 - subTotal: 3456 - taxAmount: 589.68 - totalAmount: 4045.68 - accountRef: - id: '4000' - name: Sales North - discountPercentage: 20 - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_1 - name: Sales - isDirectIncome: false - - description: PC Combo Pack 6 - unitAmount: 1350 - quantity: 2 - discountAmount: 540 - subTotal: 2160 - taxAmount: 368.55 - totalAmount: 2528.55 - accountRef: - id: '4000' - name: Sales North - discountPercentage: 20 - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_1 - name: Sales - isDirectIncome: false - - description: FX030 Multifunctional Fax - unitAmount: 414 - quantity: 2 - discountAmount: 165.6 - subTotal: 662.4 - taxAmount: 113.02 - totalAmount: 775.42 - accountRef: - id: '4000' - name: Sales North - discountPercentage: 20 - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_1 - name: Sales - isDirectIncome: false - - description: Copy Paper - Premium Grade - unitAmount: 3.06 - quantity: 100 - discountAmount: 61.2 - subTotal: 244.8 - taxAmount: 41.77 - totalAmount: 286.57 - accountRef: - id: '4000' - name: Sales North - discountPercentage: 20 - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_1 - name: Sales - isDirectIncome: false - paymentAllocations: - - payment: - id: '271' - note: Sales receipt 271 linked to sales invoice inv-9. - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 11123.33 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -276.57 - - payment: - id: '271' - note: Sales receipt 271 linked to sales invoice inv-9. - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 11123.33 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -765.42 - - payment: - id: '271' - note: Sales receipt 271 linked to sales invoice inv-9. - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 11123.33 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -4035.68 - - payment: - id: '271' - note: Sales receipt 271 linked to sales invoice inv-9. - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 11123.33 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -2518.55 - - payment: - id: '271' - note: Sales receipt 271 linked to sales invoice inv-9. - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 11123.33 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -3527.11 - - payment: - id: '272' - note: Sales discount 272 linked to sales invoice inv-9. - accountRef: - id: '' - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 0 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -10 - - payment: - id: '272' - note: Sales discount 272 linked to sales invoice inv-9. - accountRef: - id: '' - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 0 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -10 - - payment: - id: '272' - note: Sales discount 272 linked to sales invoice inv-9. - accountRef: - id: '' - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 0 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -10 - - payment: - id: '272' - note: Sales discount 272 linked to sales invoice inv-9. - accountRef: - id: '' - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 0 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -10 - - payment: - id: '272' - note: Sales discount 272 linked to sales invoice inv-9. - accountRef: - id: '' - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 0 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -10 - - payment: - id: '9' - note: Sales credit tx-9 linked to sales invoice inv-9. - accountRef: - id: '' - currency: GBP - currencyRate: 1 - paidOnDate: '2021-12-31T00:00:00' - totalAmount: 0 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -45 - withholdingTax: [] - totalDiscount: 2395.8 - subTotal: 9583.2 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 1635.13 - totalAmount: 11218.33 - amountDue: 0 - status: Paid - note: '' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 86 - _links: - current: - href: /companies/cf5f2a47-2990-4221-bae6-0c19c86ac304/data/invoices?page=1&pageSize=2 - self: - href: /companies/cf5f2a47-2990-4221-bae6-0c19c86ac304/data/invoices - next: - href: /companies/cf5f2a47-2990-4221-bae6-0c19c86ac304/data/invoices?page=2&pageSize=2 - Sage Business Cloud Accounting: - value: - results: - - id: b039b0a733de11e797950a57719b2edb - invoiceNumber: SI-1 - customerRef: - id: f4ff85ba33dd11e797950a57719b2edb - companyName: Widgets Limited - salesOrderRefs: [] - issueDate: '2017-05-08T00:00:00' - dueDate: '2017-06-07T00:00:00' - modifiedDate: '2022-10-24T15:03:37Z' - sourceModifiedDate: '2021-07-23T13:42:59Z' - paidOnDate: '2021-07-23T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Consulting services - unitAmount: 900 - quantity: 8 - discountAmount: 0 - subTotal: 7200 - taxAmount: 1440 - totalAmount: 8640 - accountRef: - id: 9a994b92267a11e797950a57719b2edb - name: Sales Type A - discountPercentage: 0 - taxRateRef: - id: GB_STANDARD - name: Standard 20.00% - effectiveTaxRate: 20 - itemRef: - id: a87b922b33de11e797950a57719b2edb - name: Consulting services - trackingCategoryRefs: [] - isDirectIncome: false - paymentAllocations: - - payment: - id: e1c2bd659a6111e8bad90617b3da4b8a - note: Sales credit note - currency: GBP - currencyRate: 1 - paidOnDate: '2018-08-07T00:00:00' - totalAmount: 0 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -1000 - - payment: - id: e1c2bd659a6111e8bad90617b3da4b8a - note: Sales credit note - currency: GBP - currencyRate: 1 - paidOnDate: '2018-08-07T00:00:00' - totalAmount: 0 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -1000 - - payment: - id: 579388a0215911e8b45c025132dab352 - note: Customer receipt using credit/debit card - accountRef: - id: 9a25937b267a11e797950a57719b2edb - name: Current - currency: GBP - currencyRate: 1 - paidOnDate: '2018-01-02T00:00:00' - totalAmount: 1400 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -1400 - - payment: - id: 52237e4e215911e8b45c025132dab352 - note: Customer receipt using credit/debit card - accountRef: - id: 9a25937b267a11e797950a57719b2edb - name: Current - currency: GBP - currencyRate: 1 - paidOnDate: '2018-01-02T00:00:00' - totalAmount: 4000 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -4000 - withholdingTax: [] - totalDiscount: 0 - subTotal: 7200 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 1440 - totalAmount: 8640 - amountDue: 1240 - status: PartiallyPaid - - id: 6420b3f8209611e8b45c025132dab352 - invoiceNumber: SI-2 - customerRef: - id: f4ff85ba33dd11e797950a57719b2edb - companyName: Widgets Limited - salesOrderRefs: [] - issueDate: '2018-03-05T00:00:00' - dueDate: '2018-04-04T00:00:00' - modifiedDate: '2022-10-24T15:03:37Z' - sourceModifiedDate: '2018-03-05T16:58:39Z' - paidOnDate: '2018-03-05T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Consulting services - unitAmount: 900 - quantity: 5 - discountAmount: 0 - subTotal: 4500 - taxAmount: 900 - totalAmount: 5400 - accountRef: - id: 9a994b92267a11e797950a57719b2edb - name: Sales Type A - discountPercentage: 0 - taxRateRef: - id: GB_STANDARD - name: Standard 20.00% - effectiveTaxRate: 20 - itemRef: - id: a87b922b33de11e797950a57719b2edb - name: Consulting services - trackingCategoryRefs: [] - isDirectIncome: false - paymentAllocations: - - payment: - id: 73a0490d209611e8b45c025132dab352 - note: Customer receipt using cash - PAYMENT-CASH-001 - accountRef: - id: 9a25937b267a11e797950a57719b2edb - name: Current - currency: GBP - currencyRate: 1 - paidOnDate: '2018-03-05T00:00:00' - totalAmount: 5400 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -5400 - withholdingTax: [] - totalDiscount: 0 - subTotal: 4500 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 900 - totalAmount: 5400 - amountDue: 0 - status: Paid - pageNumber: 1 - pageSize: 2 - totalResults: 10759 - _links: - current: - href: /companies/390083e2-351b-407c-a3be-55081c36c182/data/invoices?page=1&pageSize=2 - self: - href: /companies/390083e2-351b-407c-a3be-55081c36c182/data/invoices - next: - href: /companies/390083e2-351b-407c-a3be-55081c36c182/data/invoices?page=2&pageSize=2 - Sage Intacct: - value: - results: - - id: '2916' - invoiceNumber: IN0480 - customerRef: - id: '12' - companyName: MK Manufacturing - salesOrderRefs: [] - issueDate: '2021-04-22T00:00:00' - dueDate: '2021-05-22T00:00:00' - modifiedDate: '2023-04-04T16:31:54Z' - sourceModifiedDate: '2021-04-22T11:01:11Z' - paidOnDate: '2021-04-22T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - unitAmount: 100 - quantity: 1 - subTotal: 100 - taxAmount: 20 - totalAmount: 120 - accountRef: - id: '176' - name: Revenue - Services - taxRateRef: - id: '105' - name: UK Sale Services Standard Rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: CUSTOMER-12 - name: MK Manufacturing - - id: DEPARTMENT-2 - name: Services - - id: LOCATION-11 - name: Codat Test Entity - isDirectIncome: false - paymentAllocations: - - payment: - id: '2918' - note: '' - accountRef: - id: '353' - name: Current Account - currency: GBP - paidOnDate: '2021-04-22T00:00:00' - totalAmount: 120 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -120 - withholdingTax: [] - totalDiscount: 0 - subTotal: 100 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 20 - totalAmount: 120 - amountDue: 0 - status: Paid - metadata: - isDeleted: false - - id: '18827' - invoiceNumber: IN1515 - customerRef: - id: '6' - companyName: AG Insurance - salesOrderRefs: [] - issueDate: '2022-09-28T00:00:00' - dueDate: '2022-10-28T00:00:00' - modifiedDate: '2023-04-04T16:31:54Z' - sourceModifiedDate: '2022-10-05T11:02:22Z' - currency: USD - currencyRate: 0.9294 - lineItems: - - description: test desc Test05102022-1 - unitAmount: 180 - quantity: 1 - subTotal: 180 - taxAmount: 0 - totalAmount: 180 - accountRef: - id: '2' - name: Accounts Receivable - taxRateRef: - id: '58' - name: EC Sale Goods Standard Rate - effectiveTaxRate: 0 - trackingCategoryRefs: - - id: CUSTOMER-6 - name: AG Insurance - - id: DEPARTMENT-1 - name: Sales - - id: LOCATION-11 - name: Codat Test Entity - isDirectIncome: false - paymentAllocations: [] - withholdingTax: [] - totalDiscount: 0 - subTotal: 180 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 0 - totalAmount: 180 - amountDue: 180 - status: Submitted - note: test desc Test05102022-1 - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 2 - _links: - current: - href: /companies/df02b289-cb16-4964-ac4d-9fd60b04538e/data/invoices?page=1&pageSize=2 - self: - href: /companies/df02b289-cb16-4964-ac4d-9fd60b04538e/data/invoices - Wave: - value: - results: - - id: QnVzaW5lc3M6ZTI0OGQyZDctMWE5Ni00YTk4LWFkOTEtMDdlMGYyMmNhNmE2O0ludm9pY2U6NzgyNDQ4OTg1Nzc1MzE5MTYw - invoiceNumber: '1' - customerRef: - id: QnVzaW5lc3M6ZTI0OGQyZDctMWE5Ni00YTk4LWFkOTEtMDdlMGYyMmNhNmE2O0N1c3RvbWVyOjMyMzkzNTA4 - companyName: ABC Textiles - salesOrderRefs: [] - issueDate: '2019-10-17T00:00:00' - dueDate: '2019-10-17T00:00:00' - modifiedDate: '2022-11-16T18:15:23Z' - sourceModifiedDate: '2019-12-05T23:20:36Z' - paidOnDate: '2019-12-05T23:20:36Z' - currency: USD - currencyRate: 0.784736781 - lineItems: - - description: '' - unitAmount: 10 - quantity: 5 - subTotal: 50 - taxAmount: 2.5 - totalAmount: 52.5 - accountRef: - id: QWNjb3VudDo3OTE3NTA2MDA0MjQ0NTExMTU7QnVzaW5lc3M6ZTI0OGQyZDctMWE5Ni00YTk4LWFkOTEtMDdlMGYyMmNhNmE2 - name: Sales - itemRef: - id: QnVzaW5lc3M6ZTI0OGQyZDctMWE5Ni00YTk4LWFkOTEtMDdlMGYyMmNhNmE2O1Byb2R1Y3Q6MzU2NjcyNTI= - name: Golf balls - trackingCategoryRefs: [] - isDirectIncome: false - paymentAllocations: [] - withholdingTax: [] - subTotal: 50 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 2.5 - totalAmount: 52.5 - amountDue: 0 - status: Paid - - id: QnVzaW5lc3M6ZTI0OGQyZDctMWE5Ni00YTk4LWFkOTEtMDdlMGYyMmNhNmE2O0ludm9pY2U6ODgzOTc4MDA2NDIxMzUwODIx - invoiceNumber: '2' - customerRef: - id: QnVzaW5lc3M6ZTI0OGQyZDctMWE5Ni00YTk4LWFkOTEtMDdlMGYyMmNhNmE2O0N1c3RvbWVyOjM2OTkxOTYw - companyName: NIC Cookies - salesOrderRefs: [] - issueDate: '2020-03-05T00:00:00' - dueDate: '2020-03-05T00:00:00' - modifiedDate: '2022-11-16T18:15:23Z' - sourceModifiedDate: '2020-03-30T14:10:21Z' - paidOnDate: '2020-03-30T14:10:21Z' - currency: GBP - currencyRate: 1 - lineItems: - - description: Decorated cookies - unitAmount: 4 - quantity: 50 - subTotal: 200 - taxAmount: 40 - totalAmount: 240 - accountRef: - id: QWNjb3VudDo3OTE3NTA2MDA0MjQ0NTExMTU7QnVzaW5lc3M6ZTI0OGQyZDctMWE5Ni00YTk4LWFkOTEtMDdlMGYyMmNhNmE2 - name: Sales - itemRef: - id: QnVzaW5lc3M6ZTI0OGQyZDctMWE5Ni00YTk4LWFkOTEtMDdlMGYyMmNhNmE2O1Byb2R1Y3Q6NDEzNzEwOTU= - name: Cookies - trackingCategoryRefs: [] - isDirectIncome: false - paymentAllocations: [] - withholdingTax: [] - subTotal: 200 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 40 - totalAmount: 240 - amountDue: 0 - status: Paid - pageNumber: 1 - pageSize: 2 - totalResults: 19 - _links: - current: - href: /companies/0b22b59d-b4e5-4c35-b03f-88bbbcb41256/data/invoices?page=1&pageSize=2 - self: - href: /companies/0b22b59d-b4e5-4c35-b03f-88bbbcb41256/data/invoices - next: - href: /companies/0b22b59d-b4e5-4c35-b03f-88bbbcb41256/data/invoices?page=2&pageSize=2 - Xero: - value: - results: - - id: 321bfed3-2da2-4969-9358-4de97821181b - invoiceNumber: INV-001-0 - customerRef: - id: afd4093b-c655-4847-8ee2-10a4f2c3eae3 - companyName: Maddox Publishing Group - salesOrderRefs: [] - issueDate: '2021-12-20T00:00:00' - dueDate: '2022-01-17T00:00:00' - modifiedDate: '2023-03-15T20:38:11Z' - sourceModifiedDate: '2021-01-02T20:34:51' - paidOnDate: '2022-02-17T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Project management - onsite daily rate - your CRM integration project - unitAmount: 583.3333333333 - quantity: 6 - discountAmount: 0 - subTotal: 3500 - taxAmount: 700 - totalAmount: 4200 - accountRef: - id: a969500a-377c-4cea-8f2b-a4e385607fd0 - name: Other Revenue - discountPercentage: 0 - taxRateRef: - id: OUTPUT2 - name: 20% (VAT on Income) - effectiveTaxRate: 20 - itemRef: - id: aa1c5f84-4453-42fa-9c92-69d4085607c9 - name: Project management - daily rate - trackingCategoryRefs: - - id: 34b9b859-07a9-451a-b4d3-effc9946634a - name: North - isDirectIncome: false - paymentAllocations: - - payment: - id: 65b746c8-9a5d-4a95-8096-d2316fcff592 - accountRef: - id: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - name: Business Bank Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-02-17T00:00:00' - totalAmount: 4200 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -4200 - withholdingTax: [] - totalDiscount: 0 - subTotal: 3500 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 700 - totalAmount: 4200 - amountDue: 0 - status: Paid - metadata: - isDeleted: false - - id: 4b6d0c8f-10fa-42cd-a6e5-53b175e90005 - invoiceNumber: INV-0001 - customerRef: - id: a871a956-05b5-4e2a-9419-7aeb478ca647 - companyName: Ridgeway University - salesOrderRefs: [] - issueDate: '2022-02-07T00:00:00' - dueDate: '2022-02-17T00:00:00' - modifiedDate: '2023-03-15T20:38:11Z' - sourceModifiedDate: '2021-01-02T22:51:43' - paidOnDate: '2022-02-17T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Retainer for consulting work - unitAmount: 416.67 - quantity: 1 - discountAmount: 0 - subTotal: 416.67 - taxAmount: 83.33 - totalAmount: 500 - accountRef: - id: c563b607-fb0e-4d06-9ddb-76fdeef20ae3 - name: Sales - discountPercentage: 0 - taxRateRef: - id: OUTPUT2 - name: 20% (VAT on Income) - effectiveTaxRate: 20 - trackingCategoryRefs: [] - isDirectIncome: false - paymentAllocations: - - payment: - id: 8c481b70-b5d7-4de4-a7f7-9e161be2c472 - reference: '' - accountRef: - id: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - name: Business Bank Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-02-17T00:00:00' - totalAmount: 500 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -500 - withholdingTax: [] - totalDiscount: 0 - subTotal: 416.67 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 83.33 - totalAmount: 500 - amountDue: 0 - status: Paid - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 44 - _links: - current: - href: /companies/5ced9667-a310-443a-a711-958d36377141/data/invoices?page=1&pageSize=2 - self: - href: /companies/5ced9667-a310-443a-a711-958d36377141/data/invoices - next: - href: /companies/5ced9667-a310-443a-a711-958d36377141/data/invoices?page=2&pageSize=2 - Zoho Books: - value: - results: - - id: '104957000000038034' - invoiceNumber: INV-102 - customerRef: - id: '104957000000037097' - companyName: Test Company - salesOrderRefs: [] - issueDate: '2020-02-06T10:54:03' - dueDate: '2020-02-17T00:00:00' - modifiedDate: '2022-10-03T08:40:37Z' - sourceModifiedDate: '2020-05-19T15:36:26' - paidOnDate: '2020-05-19T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: [] - paymentAllocations: - - payment: - id: '104957000000129048' - note: '' - reference: '9' - accountRef: - id: '104957000000000349' - name: Petty Cash - currency: GBP - currencyRate: 1 - paidOnDate: '2020-04-29T00:00:00' - totalAmount: 9000 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -9000 - - payment: - id: '104957000000137017' - note: '' - reference: '11' - accountRef: - id: '104957000000060010' - name: Abdi Test - currency: GBP - currencyRate: 1 - paidOnDate: '2020-05-19T00:00:00' - totalAmount: 9000 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -1 - withholdingTax: [] - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 0 - totalAmount: 9001 - amountDue: 0 - status: Paid - - id: '104957000000038052' - invoiceNumber: INV-104 - customerRef: - id: '104957000000037097' - companyName: Test Company - salesOrderRefs: [] - issueDate: '2020-02-06T10:54:04' - dueDate: '2020-02-17T00:00:00' - modifiedDate: '2022-10-03T08:40:37Z' - sourceModifiedDate: '2020-02-17T14:21:05' - paidOnDate: '2020-02-06T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: [] - paymentAllocations: - - payment: - id: '104957000000070175' - note: Cheque deposit - reference: '4' - accountRef: - id: '104957000000060010' - name: Abdi Test - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-06T00:00:00' - totalAmount: 9001 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -9001 - withholdingTax: [] - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 0 - totalAmount: 9001 - amountDue: 0 - status: Paid - pageNumber: 1 - pageSize: 2 - totalResults: 48 - _links: - current: - href: /companies/d0b68840-db50-4bc3-b88c-96e225333fea/data/invoices?page=1&pageSize=2 - self: - href: /companies/d0b68840-db50-4bc3-b88c-96e225333fea/data/invoices - next: - href: /companies/d0b68840-db50-4bc3-b88c-96e225333fea/data/invoices?page=2&pageSize=2 - '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' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - '/companies/{companyId}/data/invoices/{invoiceId}': - parameters: - - $ref: '#/components/parameters/companyId' - get: - tags: - - Accounts receivable - parameters: - - $ref: '#/components/parameters/accountingInvoiceId' - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/AccountingInvoice' - examples: - Clear Books: - value: - id: 2518ca08-5e2a-4630-8cee-a6bcd1625660 - invoiceNumber: TKj7oD38 - customerRef: - id: d65ac505-072c-49ec-be3c-3cb74228966d - companyName: Jensen Steuber - salesOrderRefs: [] - issueDate: '2022-04-25T13:04:02' - dueDate: '2022-04-25T13:04:02' - modifiedDate: '2023-04-26T12:38:17Z' - sourceModifiedDate: '2023-01-28T14:41:02' - paidOnDate: '2022-04-25T13:04:02' - currency: GBP - currencyRate: 1 - lineItems: - - description: Heavy Duty Hinged Gully Grating x4.00 - unitAmount: 402.89 - quantity: 4 - subTotal: 1611.56 - taxAmount: 161.16 - totalAmount: 1772.72 - accountRef: - id: dbcaf288-2b39-4b95-8ab3-42202ab15918 - name: Business Current Account - taxRateRef: - id: 6c88aff3-7cb9-4980-a3d3-443e72e02498 - name: Sales Tax (10%) - effectiveTaxRate: 10 - itemRef: - id: 3abf0883-03f7-44c6-bc15-1372522d25e1 - name: Heavy Duty Hinged Gully Grating - trackingCategoryRefs: - - id: costcode_9 - name: PandaConstruction - isDirectIncome: true - paymentAllocations: - - payment: - id: 9407d5ee-893a-4547-bd89-bc7b795ee774 - note: Payment against invoice 2518ca08-5e2a-4630-8cee-a6bcd1625660 - reference: 2518ca08-5e2a-4630-8cee-a6bcd1625660 - accountRef: - id: dbcaf288-2b39-4b95-8ab3-42202ab15918 - name: Business Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-04-25T13:04:02' - totalAmount: 1772.72 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2022-04-25T13:04:02' - totalAmount: -1772.72 - withholdingTax: [] - totalDiscount: 0 - subTotal: 1611.56 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 161.16 - totalAmount: 1772.72 - amountDue: 0 - discountPercentage: 0 - status: Paid - metadata: - isDeleted: false - Dynamics 365 Business Central: - value: - id: 18c906bf-89d1-ea11-bbaa-000d3a2b9185 - invoiceNumber: '103001' - customerRef: - id: b61217b3-89d1-ea11-bbaa-000d3a2b9185 - companyName: Trey Researches - salesOrderRefs: [] - issueDate: '2019-01-15T00:00:00' - dueDate: '2019-01-15T00:00:00' - modifiedDate: '2023-03-27T14:21:25Z' - sourceModifiedDate: '2022-05-17T16:29:00Z' - paidOnDate: '2019-01-15T00:00:00' - currency: GBP - lineItems: - - description: AMSTERDAM Lamp - unitAmount: 35.6 - quantity: 3 - discountAmount: 0 - subTotal: 106.8 - taxAmount: 21.36 - totalAmount: 128.16 - 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-d41217b3-89d1-ea11-bbaa-000d3a2b9185-DOMESTIC-DOMESTIC - name: 'AMSTERDAM Lamp / General Business Posting Group: ''DOMESTIC'' / VAT Business Posting Group: ''DOMESTIC''' - trackingCategoryRefs: [] - isDirectIncome: false - paymentAllocations: - - payment: - id: e0299ced-89d1-ea11-bbaa-000d3a2b9185 - note: Invoice 102001 - reference: 'Document No: 103001' - accountRef: - id: 621217b3-89d1-ea11-bbaa-000d3a2b9185 - name: Petty Cash - currency: GBP - currencyRate: 1 - paidOnDate: '2019-01-15T00:00:00' - totalAmount: 128.16 - allocation: - currency: GBP - currencyRate: 1 - allocatedOnDate: '2019-01-15T00:00:00' - totalAmount: -128.16 - withholdingTax: [] - totalDiscount: 0 - subTotal: 106.8 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 21.36 - totalAmount: 128.16 - amountDue: 0 - discountPercentage: 0 - status: Paid - note: '' - metadata: - isDeleted: false - Exact (Netherlands): - value: - id: 91dccc63-b1af-4363-bee0-2aec6bab1bef - invoiceNumber: '19700002' - customerRef: - id: c3bf08a3-4d51-4859-acbb-5075f9484f87 - companyName: Mr Abe - salesOrderRefs: [] - issueDate: '2019-11-08T00:00:00Z' - dueDate: '2019-11-29T00:00:00Z' - modifiedDate: '2022-10-26T13:57:52Z' - sourceModifiedDate: '2019-11-08T11:56:22Z' - currency: EUR - currencyRate: 1 - lineItems: - - description: Consultancy per uur - Consultancy per uur - unitAmount: 75 - quantity: 8 - discountAmount: 0 - subTotal: 600 - taxAmount: 0 - totalAmount: 600 - accountRef: - id: 2421e8a0-5355-4ec0-af11-021fe4f39fcd - name: Omzet binnenland hoog tarief - trackingCategoryRefs: [] - isDirectIncome: false - paymentAllocations: [] - withholdingTax: [] - subTotal: 600 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 0 - totalAmount: 600 - amountDue: 599 - discountPercentage: 0 - status: PartiallyPaid - Exact (UK): - value: - id: a05d1256-f253-46bd-aa13-c6f6a992aa47 - invoiceNumber: '17700002' - customerRef: - id: 570321bb-8b0c-49f1-a1f5-6fb1d6d94a62 - companyName: Some customer - salesOrderRefs: [] - issueDate: '2017-08-02T00:00:00Z' - dueDate: '2017-09-01T00:00:00Z' - modifiedDate: '2022-10-26T13:39:08Z' - sourceModifiedDate: '2017-08-02T18:23:43Z' - currency: GBP - currencyRate: 1 - lineItems: - - description: A bunch of stuff - A bunch of stuff - unitAmount: 100 - quantity: 1000 - discountAmount: 0 - subTotal: 100000 - taxAmount: 0 - totalAmount: 100000 - accountRef: - id: 43acd218-6a95-445f-994c-660273e0ced9 - name: Sales - trackingCategoryRefs: [] - isDirectIncome: false - paymentAllocations: [] - withholdingTax: [] - subTotal: 100000 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 0 - totalAmount: 100000 - amountDue: 0 - discountPercentage: 0 - status: Paid - FreeAgent: - value: - id: '50541736' - invoiceNumber: '2348' - customerRef: - id: '10123537' - companyName: _Test 1 - salesOrderRefs: [] - issueDate: '2016-12-30T00:00:00' - dueDate: '2016-12-30T00:00:00' - modifiedDate: '2023-04-25T14:19:19Z' - sourceModifiedDate: '2022-10-20T14:28:00Z' - paidOnDate: '2020-11-05T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: 3.0 items with VatPercentage of 0.0 - unitAmount: 25.26 - quantity: 1 - discountAmount: 0 - subTotal: 25.26 - taxAmount: 0 - totalAmount: 25.26 - accountRef: - id: '001' - name: Sales - trackingCategoryRefs: [] - isDirectIncome: false - - description: 3 service charges with 0.0% vat - unitAmount: 8.85 - quantity: 1 - discountAmount: 0 - subTotal: 8.85 - taxAmount: 0 - totalAmount: 8.85 - accountRef: - id: '001' - name: Sales - trackingCategoryRefs: [] - isDirectIncome: false - - description: Tax - unitAmount: 0 - quantity: 1 - discountAmount: 0 - subTotal: 0 - taxAmount: 0 - totalAmount: 0 - trackingCategoryRefs: [] - isDirectIncome: false - paymentAllocations: - - payment: - id: '262466203' - note: E2E Test transaction 2 CREDIT �250.00 - Invoice receipt against 2348 - currency: GBP - paidOnDate: '2020-11-05T00:00:00' - totalAmount: 250 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -34.11 - withholdingTax: [] - subTotal: 34.11 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 0 - totalAmount: 34.11 - amountDue: 0 - status: Paid - metadata: - isDeleted: false - FreshBooks: - value: - id: '2596455' - invoiceNumber: test-AL - customerRef: - id: '602174' - companyName: ab1 - salesOrderRefs: [] - issueDate: '1987-10-01T00:00:00' - dueDate: '1987-10-01T00:00:00' - modifiedDate: '2023-03-24T16:07:23Z' - sourceModifiedDate: '2023-03-03T09:27:42' - paidOnDate: '2023-03-03T00:00:00' - currency: USD - lineItems: - - description: Editing creative writing for a client - unitAmount: 222.88 - quantity: 1 - discountAmount: 0 - subTotal: 222.88 - taxAmount: 0 - totalAmount: 222.88 - itemRef: - id: '639579' - name: Creative Writing Editorial - trackingCategoryRefs: [] - isDirectIncome: false - - description: '' - unitAmount: 0 - quantity: 1 - discountAmount: 0 - subTotal: 0 - taxAmount: 0 - totalAmount: 0 - trackingCategoryRefs: [] - isDirectIncome: false - paymentAllocations: - - payment: - id: '2570292' - note: '' - currency: USD - paidOnDate: '2023-03-03T00:00:00' - totalAmount: 0.17 - allocation: - currency: USD - currencyRate: 1 - totalAmount: -0.17 - withholdingTax: [] - totalDiscount: 0 - subTotal: 222.88 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 0 - totalAmount: 222.88 - amountDue: 222.71 - status: Submitted - note: '' - metadata: - isDeleted: false - KashFlow: - value: - id: '143008521' - invoiceNumber: '40' - customerRef: - id: '86832299' - companyName: Mr French Person - salesOrderRefs: [] - issueDate: '2005-12-15T00:00:00' - dueDate: '2006-01-12T00:00:00' - modifiedDate: '2022-09-30T10:29:15Z' - currency: EUR - currencyRate: 0.844737287 - lineItems: - - unitAmount: 0 - quantity: 0 - subTotal: 0 - taxAmount: 0 - totalAmount: 0 - accountRef: - id: '0' - trackingCategoryRefs: [] - isDirectIncome: false - paymentAllocations: [] - withholdingTax: [] - subTotal: 0 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 0 - totalAmount: 0 - amountDue: 0 - status: Paid - Oracle NetSuite: - value: - id: '416' - invoiceNumber: INV01 - customerRef: - id: '417' - companyName: 10 Breww Ltd - salesOrderRefs: [] - issueDate: '2021-04-09T00:00:00' - dueDate: '2021-04-30T00:00:00' - modifiedDate: '2022-09-20T08:16:10Z' - sourceModifiedDate: '2021-08-25T15:55:36' - paidOnDate: '2021-04-20T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Non-Recurring Services - EC - unitAmount: 100 - quantity: 1 - subTotal: 100 - totalAmount: 100 - accountRef: - id: '54' - name: Sales - itemRef: - id: '28' - name: Non-Recurring Services - EC - trackingCategoryRefs: - - id: location-1 - isDirectIncome: false - paymentAllocations: - - payment: - id: '428' - reference: 'Payment #PYMT01' - accountRef: - id: '122' - name: Undeposited Funds - currency: GBP - currencyRate: 1 - paidOnDate: '2021-04-20T00:00:00' - totalAmount: 90 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -90 - - payment: - id: '428' - reference: 'Payment #PYMT01' - accountRef: - id: '122' - name: Undeposited Funds - currency: GBP - currencyRate: 1 - paidOnDate: '2021-04-20T00:00:00' - totalAmount: 90 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -10 - withholdingTax: [] - totalDiscount: 0 - subTotal: 100 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 0 - totalAmount: 100 - amountDue: 0 - status: Paid - QuickBooks Desktop: - value: - id: 2453-1071526256 - invoiceNumber: '975' - customerRef: - id: 420000-1071522044 - companyName: 'Prentice, Adelaide' - salesOrderRefs: [] - issueDate: '2022-11-28T00:00:00' - dueDate: '2023-12-28T00:00:00' - modifiedDate: '2023-04-26T09:08:12Z' - sourceModifiedDate: '2023-12-16T05:06:11' - paidOnDate: '2023-01-15T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Foundation slab - prep and pouring - unitAmount: 167.5 - quantity: 1 - subTotal: 167.5 - taxAmount: 0 - totalAmount: 167.5 - taxRateRef: - id: 20000-999022286 - name: Non-Taxable Sales - itemRef: - id: 320000-1071525597 - name: Concrete Slab - trackingCategoryRefs: - - id: 10000-933272658 - name: New Construction - isDirectIncome: false - - unitAmount: 0 - quantity: 1 - subTotal: 0 - taxAmount: 0 - totalAmount: 0 - trackingCategoryRefs: [] - isDirectIncome: false - - description: Rough lumber - unitAmount: 48 - quantity: 1 - subTotal: 48 - taxAmount: 0 - totalAmount: 48 - taxRateRef: - id: 10000-999022286 - name: Taxable Sales - itemRef: - id: 1C0000-933272656 - name: 'Lumber:Rough' - trackingCategoryRefs: - - id: 10000-933272658 - name: New Construction - isDirectIncome: false - - description: Trim lumber - unitAmount: 38 - quantity: 1 - subTotal: 38 - taxAmount: 0 - totalAmount: 38 - taxRateRef: - id: 10000-999022286 - name: Taxable Sales - itemRef: - id: 1D0000-933272656 - name: 'Lumber:Trim' - trackingCategoryRefs: - - id: 10000-933272658 - name: New Construction - isDirectIncome: false - - description: Window - unitAmount: 25 - quantity: 2 - subTotal: 50 - taxAmount: 0 - totalAmount: 50 - taxRateRef: - id: 10000-999022286 - name: Taxable Sales - itemRef: - id: 1F0000-933272656 - name: Window - trackingCategoryRefs: - - id: 10000-933272658 - name: New Construction - isDirectIncome: false - - description: Flooring - unitAmount: 50 - quantity: 1 - subTotal: 50 - taxAmount: 0 - totalAmount: 50 - taxRateRef: - id: 10000-999022286 - name: Taxable Sales - itemRef: - id: 310000-1071509547 - name: Flooring - trackingCategoryRefs: - - id: 10000-933272658 - name: New Construction - isDirectIncome: false - - description: Window - unitAmount: 30 - quantity: 2 - subTotal: 60 - taxAmount: 0 - totalAmount: 60 - taxRateRef: - id: 10000-999022286 - name: Taxable Sales - itemRef: - id: 1F0000-933272656 - name: Window - trackingCategoryRefs: - - id: 10000-933272658 - name: New Construction - isDirectIncome: false - paymentAllocations: - - payment: - id: 6973-1197775625 - note: Check - 80000-933270541 - reference: '983409' - accountRef: - id: 80000-933270541 - name: Undeposited Funds - currency: GBP - currencyRate: 1 - paidOnDate: '2023-01-15T00:00:00' - totalAmount: 431.95 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -431.95 - withholdingTax: [] - totalDiscount: 0 - subTotal: 413.5 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 18.45 - totalAmount: 431.95 - amountDue: 0 - discountPercentage: 0 - status: Paid - metadata: - isDeleted: false - QuickBooks Online: - value: - id: '16' - invoiceNumber: '1001' - customerRef: - id: '3' - companyName: Information Sharing Technology - salesOrderRefs: [] - issueDate: '2019-02-18T00:00:00' - dueDate: '2019-03-20T00:00:00' - modifiedDate: '2023-01-18T11:03:02Z' - sourceModifiedDate: '2022-09-20T10:12:08Z' - paidOnDate: '2020-06-01T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Service - unitAmount: 500 - quantity: 10 - subTotal: 5000 - taxAmount: 0 - totalAmount: 5000 - accountRef: - id: '1' - name: Sales - itemRef: - id: '1' - name: Sales - trackingCategoryRefs: [] - isDirectIncome: false - paymentAllocations: - - payment: - id: '116' - note: Payments of type Prepaid - reference: '114213' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-10T00:00:00' - totalAmount: 65.77 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -23.86 - - payment: - id: '122' - note: Payments of type Cash - reference: '121197' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-10T00:00:00' - totalAmount: 771.61 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -16.31 - - payment: - id: '123' - note: Payments of type Prepaid - reference: '121293' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-10T00:00:00' - totalAmount: 34.45 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -34.45 - - payment: - id: '132' - note: Payments of type Prepaid - reference: '13022' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-10T00:00:00' - totalAmount: 47.38 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -42.36 - - payment: - id: '140' - note: Payments of type Cash - reference: '139163' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-13T00:00:00' - totalAmount: 1078.72 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -13.71 - - payment: - id: '141' - note: Payments of type Prepaid - reference: '139288' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-13T00:00:00' - totalAmount: 27.88 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -27.88 - - payment: - id: '149' - note: Payments of type Cash - reference: '148151' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-13T00:00:00' - totalAmount: 643.97 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -22.26 - - payment: - id: '150' - note: Payments of type Prepaid - reference: '148217' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-13T00:00:00' - totalAmount: 11.57 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -11.57 - - payment: - id: '157' - note: Payments of type Prepaid - reference: '155266' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-15T00:00:00' - totalAmount: 14.32 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -4.87 - - payment: - id: '165' - note: Payments of type Cash - reference: '164142' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-15T00:00:00' - totalAmount: 913.09 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -18.99 - - payment: - id: '166' - note: Payments of type Prepaid - reference: '164260' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-15T00:00:00' - totalAmount: 39.98 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -39.98 - - payment: - id: '173' - note: Payments of type Prepaid - reference: '171213' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-15T00:00:00' - totalAmount: 35.36 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -26.29 - - payment: - id: '181' - note: Payments of type Cash - reference: '180197' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-17T00:00:00' - totalAmount: 1087.13 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -10.04 - - payment: - id: '182' - note: Payments of type Prepaid - reference: '180274' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-17T00:00:00' - totalAmount: 47.91 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -47.91 - - payment: - id: '190' - note: Payments of type Cash - reference: '189174' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-17T00:00:00' - totalAmount: 607.48 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -13.34 - - payment: - id: '191' - note: Payments of type Prepaid - reference: '18922' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-17T00:00:00' - totalAmount: 16.44 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -16.44 - - payment: - id: '199' - note: Payments of type Cash - reference: '198128' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-20T00:00:00' - totalAmount: 1209.15 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -20.22 - - payment: - id: '200' - note: Payments of type Prepaid - reference: '198234' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-20T00:00:00' - totalAmount: 18.35 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -18.35 - - payment: - id: '208' - note: Payments of type Cash - reference: '207189' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-21T00:00:00' - totalAmount: 914.33 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -7.86 - - payment: - id: '209' - note: Payments of type Prepaid - reference: '207254' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-21T00:00:00' - totalAmount: 27.62 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -27.62 - - payment: - id: '217' - note: Payments of type Cash - reference: '216161' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-22T00:00:00' - totalAmount: 565.24 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -1.66 - - payment: - id: '218' - note: Payments of type Prepaid - reference: '216237' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-22T00:00:00' - totalAmount: 19.67 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -19.67 - - payment: - id: '231' - note: Payments of type Prepaid - reference: '229276' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-23T00:00:00' - totalAmount: 38.7 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -30.52 - - payment: - id: '240' - note: Payments of type PrepaidPayment - reference: '238213' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-23T00:00:00' - totalAmount: 47.7 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -31.98 - - payment: - id: '249' - note: Payments of type PrepaidPayment - reference: '247245' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-23T00:00:00' - totalAmount: 22.03 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -10.84 - - payment: - id: '256' - note: Payments of type PrepaidPayment - reference: '254258' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-23T00:00:00' - totalAmount: 37.68 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -16.6 - - payment: - id: '262' - note: Payments of type Cash - reference: '261162' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-24T00:00:00' - totalAmount: 425.69 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -15.02 - - payment: - id: '263' - note: Payments of type PrepaidPayment - reference: '261215' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-24T00:00:00' - totalAmount: 7.24 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -7.24 - - payment: - id: '269' - note: Payments of type Cash - reference: '268154' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-24T00:00:00' - totalAmount: 968.21 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -48.58 - - payment: - id: '270' - note: Payments of type PrepaidPayment - reference: '268269' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-24T00:00:00' - totalAmount: 11.69 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -11.69 - - payment: - id: '278' - note: Payments of type Cash - reference: '277153' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-25T00:00:00' - totalAmount: 1063.48 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -37.08 - - payment: - id: '279' - note: Payments of type PrepaidPayment - reference: '277281' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-25T00:00:00' - totalAmount: 30.58 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -30.58 - - payment: - id: '287' - note: Payments of type Cash - reference: '286188' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-26T00:00:00' - totalAmount: 539.55 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -6.97 - - payment: - id: '288' - note: Payments of type PrepaidPayment - reference: '286250' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-26T00:00:00' - totalAmount: 12.73 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -12.73 - - payment: - id: '296' - note: Payments of type Cash - reference: '295176' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-27T00:00:00' - totalAmount: 687.33 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -4.18 - - payment: - id: '297' - note: Payments of type PrepaidPayment - reference: '295264' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-27T00:00:00' - totalAmount: 14.92 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -14.92 - - payment: - id: '303' - note: Payments of type Cash - reference: '302128' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-28T00:00:00' - totalAmount: 837.68 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -6.66 - - payment: - id: '304' - note: Payments of type PrepaidPayment - reference: '302284' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-28T00:00:00' - totalAmount: 17.04 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -17.04 - - payment: - id: '313' - note: Payments of type PrepaidPayment - reference: '311211' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-29T00:00:00' - totalAmount: 45.06 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -41.47 - - payment: - id: '321' - note: Payments of type Cash - reference: '320186' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-29T00:00:00' - totalAmount: 798.79 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -27.08 - - payment: - id: '322' - note: Payments of type PrepaidPayment - reference: '320256' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-29T00:00:00' - totalAmount: 14.33 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -14.33 - - payment: - id: '333' - note: Payments of type PrepaidPayment - reference: '331236' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-30T00:00:00' - totalAmount: 17.94 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -17.58 - - payment: - id: '341' - note: Payments of type Cash - reference: '340128' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-30T00:00:00' - totalAmount: 859.44 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -29.21 - - payment: - id: '342' - note: Payments of type PrepaidPayment - reference: '340292' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-30T00:00:00' - totalAmount: 26.59 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -26.59 - - payment: - id: '348' - note: Payments of type Cash - reference: '34710' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-31T00:00:00' - totalAmount: 949.74 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -7.07 - - payment: - id: '349' - note: Payments of type PrepaidPayment - reference: '347216' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-01-31T00:00:00' - totalAmount: 25.32 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -25.32 - - payment: - id: '361' - note: Payments of type PrepaidPayment - reference: '359220' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-01T00:00:00' - totalAmount: 54.12 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -40.61 - - payment: - id: '367' - note: Payments of type Cash - reference: '366195' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-02T00:00:00' - totalAmount: 827.2 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -25.4 - - payment: - id: '368' - note: Payments of type PrepaidPayment - reference: '366288' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-02T00:00:00' - totalAmount: 12.15 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -12.15 - - payment: - id: '376' - note: Payments of type Cash - reference: '375123' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-03T00:00:00' - totalAmount: 802.17 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -11.54 - - payment: - id: '377' - note: Payments of type PrepaidPayment - reference: '375298' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-03T00:00:00' - totalAmount: 39.06 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -39.06 - - payment: - id: '385' - note: Payments of type Cash - reference: '38418' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-04T00:00:00' - totalAmount: 858.41 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -13.4 - - payment: - id: '386' - note: Payments of type PrepaidPayment - reference: '384213' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-04T00:00:00' - totalAmount: 9.99 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -9.99 - - payment: - id: '392' - note: Payments of type Cash - reference: '391115' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-05T00:00:00' - totalAmount: 1094.8 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -47.35 - - payment: - id: '393' - note: Payments of type PrepaidPayment - reference: '391247' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-05T00:00:00' - totalAmount: 16.73 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -16.73 - - payment: - id: '402' - note: Payments of type PrepaidPayment - reference: '400275' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-06T00:00:00' - totalAmount: 32.88 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -29.29 - - payment: - id: '410' - note: Payments of type Cash - reference: '409145' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-07T00:00:00' - totalAmount: 725.48 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -33.79 - - payment: - id: '411' - note: Payments of type PrepaidPayment - reference: '409292' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-07T00:00:00' - totalAmount: 6.22 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -6.22 - - payment: - id: '419' - note: Payments of type Cash - reference: '418157' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-08T00:00:00' - totalAmount: 407.2 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -2.55 - - payment: - id: '420' - note: Payments of type PrepaidPayment - reference: '418258' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-08T00:00:00' - totalAmount: 8.92 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -8.92 - - payment: - id: '429' - note: Payments of type PrepaidPayment - reference: '427270' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-09T00:00:00' - totalAmount: 56.75 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -28.75 - - payment: - id: '437' - note: Payments of type Cash - reference: '436168' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-10T00:00:00' - totalAmount: 760.05 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -31.48 - - payment: - id: '438' - note: Payments of type PrepaidPayment - reference: '436234' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-10T00:00:00' - totalAmount: 6.03 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -6.03 - - payment: - id: '446' - note: Payments of type Cash - reference: '44518' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-11T00:00:00' - totalAmount: 904.82 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -17.96 - - payment: - id: '447' - note: Payments of type PrepaidPayment - reference: '445278' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-11T00:00:00' - totalAmount: 24.95 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -24.95 - - payment: - id: '456' - note: Payments of type PrepaidPayment - reference: '454252' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-11T00:00:00' - totalAmount: 70.44 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -33.72 - - payment: - id: '462' - note: Payments of type Cash - reference: '461144' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-13T00:00:00' - totalAmount: 914.05 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -34.76 - - payment: - id: '463' - note: Payments of type PrepaidPayment - reference: '461243' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-13T00:00:00' - totalAmount: 7.47 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -7.47 - - payment: - id: '470' - note: Payments of type PrepaidPayment - reference: '468248' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-13T00:00:00' - totalAmount: 67.83 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -41.38 - - payment: - id: '481' - note: Payments of type Cash - reference: '480129' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-17T00:00:00' - totalAmount: 965.85 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -10.21 - - payment: - id: '482' - note: Payments of type PrepaidPayment - reference: '480242' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-17T00:00:00' - totalAmount: 33.9 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -33.9 - - payment: - id: '490' - note: Payments of type Cash - reference: '489120' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-18T00:00:00' - totalAmount: 1112.76 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -7.74 - - payment: - id: '491' - note: Payments of type PrepaidPayment - reference: '489239' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-18T00:00:00' - totalAmount: 48.74 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -48.74 - - payment: - id: '499' - note: Payments of type Cash - reference: '498147' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-20T00:00:00' - totalAmount: 1017 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -5.08 - - payment: - id: '500' - note: Payments of type PrepaidPayment - reference: '498254' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-20T00:00:00' - totalAmount: 37.77 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -37.77 - - payment: - id: '507' - note: Payments of type PrepaidPayment - reference: '505288' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-20T00:00:00' - totalAmount: 62.82 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -54.62 - - payment: - id: '521' - note: Payments of type PrepaidPayment - reference: '519243' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-02-20T00:00:00' - totalAmount: 14.74 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -0.01 - - payment: - id: '647' - note: Payments of type PrepaidPayment - reference: '645263' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-03-20T00:00:00' - totalAmount: 40.43 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -0.01 - - payment: - id: '705' - note: Payments of type PrepaidPayment - reference: '703246' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-04-03T00:00:00' - totalAmount: 25 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -25 - - payment: - id: '772' - note: Payments of type PrepaidPayment - reference: '770263' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-04-24T00:00:00' - totalAmount: 10.35 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -0.01 - - payment: - id: '779' - note: Payments of type PrepaidPayment - reference: '777217' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-04-24T00:00:00' - totalAmount: 39.55 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -0.01 - - payment: - id: '792' - note: Payments of type PrepaidPayment - reference: '790262' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-04-29T00:00:00' - totalAmount: 12.46 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -0.01 - - payment: - id: '843' - note: Payments of type PrepaidPayment - reference: '841264' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-05-07T00:00:00' - totalAmount: 25.64 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -0.01 - - payment: - id: '850' - note: Payments of type PrepaidPayment - reference: '848254' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-05-14T00:00:00' - totalAmount: 53.68 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -0.01 - - payment: - id: '877' - note: Payments of type PrepaidPayment - reference: '875210' - accountRef: - id: '60' - name: Money (oney) - currency: GBP - currencyRate: 1 - paidOnDate: '2020-06-01T00:00:00' - totalAmount: 12.7 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -0.01 - withholdingTax: [] - totalDiscount: 0 - subTotal: 5000 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 0 - totalAmount: 5000 - amountDue: 3296.44 - status: PartiallyPaid - note: Invoice for service - QuickBooks Online Sandbox: - value: - id: '30' - invoiceNumber: '1002' - customerRef: - id: '59' - companyName: Ecker Holiday event - salesOrderRefs: [] - issueDate: '2016-01-06T00:00:00' - dueDate: '2016-02-05T00:00:00' - modifiedDate: '2023-04-26T09:36:12Z' - sourceModifiedDate: '2023-01-25T13:49:52Z' - paidOnDate: '2016-02-12T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Holiday party - gold level test v1 - unitAmount: 2000 - quantity: 1 - subTotal: 2000 - taxAmount: 400 - totalAmount: 2400 - accountRef: - id: '44' - name: Sales - taxRateRef: - id: 3_Invoices - name: 20.0% S Invoices - effectiveTaxRate: 20 - itemRef: - id: '7' - name: Gold party - trackingCategoryRefs: [] - isDirectIncome: false - - description: Venue rental - unitAmount: 10000 - quantity: 1 - subTotal: 10000 - taxAmount: 2000 - totalAmount: 12000 - accountRef: - id: '68' - name: Billable Expenses Income - taxRateRef: - id: 3_Invoices - name: 20.0% S Invoices - effectiveTaxRate: 20 - itemRef: - id: '20' - name: Venue Rental - trackingCategoryRefs: [] - isDirectIncome: false - - description: promotional items -- misc engraved items - unitAmount: 13.5 - quantity: 75 - subTotal: 1012.5 - taxAmount: 202.5 - totalAmount: 1215 - accountRef: - id: '68' - name: Billable Expenses Income - taxRateRef: - id: 3_Invoices - name: 20.0% S Invoices - effectiveTaxRate: 20 - itemRef: - id: '12' - name: Misc - trackingCategoryRefs: [] - isDirectIncome: false - paymentAllocations: - - payment: - id: '31' - note: '' - accountRef: - id: '81' - name: Current - currency: GBP - currencyRate: 1 - paidOnDate: '2016-02-12T00:00:00' - totalAmount: 15615 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -15615 - withholdingTax: [] - totalDiscount: 0 - subTotal: 13012.5 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 2602.5 - totalAmount: 15615 - amountDue: 0 - status: Paid - metadata: - isDeleted: false - Sage 200cloud: - value: - id: '82322' - invoiceNumber: '0000000110' - customerRef: - id: A1D001 - companyName: A1 Design Services - salesOrderRefs: [] - issueDate: '2020-07-13T00:00:00Z' - dueDate: '2020-08-12T00:00:00Z' - modifiedDate: '2022-10-14T09:36:12Z' - sourceModifiedDate: '2020-07-13T11:06:40Z' - currency: GBP - currencyRate: 1 - lineItems: - - description: Tax Summary - Standard rate - unitAmount: 0 - quantity: 0 - discountAmount: 0.22 - subTotal: 0 - taxAmount: 8.67 - totalAmount: 8.67 - taxRateRef: - id: '1729' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: [] - isDirectIncome: false - - description: Goods Summary - unitAmount: 0 - quantity: 0 - discountAmount: 1.08 - subTotal: 43.34 - taxAmount: 0 - totalAmount: 43.34 - trackingCategoryRefs: [] - isDirectIncome: false - paymentAllocations: [] - withholdingTax: [] - totalDiscount: 1.3 - subTotal: 43.34 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 8.67 - totalAmount: 52.01 - amountDue: 52.01 - discountPercentage: 2.49 - status: Submitted - note: '0000000114' - Sage 50 (UK): - value: - id: INV-1 - invoiceNumber: '1' - customerRef: - id: A1D001 - companyName: A1 Design Services - salesOrderRefs: [] - issueDate: '2021-01-02T00:00:00' - modifiedDate: '2023-03-30T14:42:42Z' - sourceModifiedDate: '2022-11-25T09:43:54' - paidOnDate: '2022-01-29T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: AT Mini Tower Case - unitAmount: 14.25 - quantity: 1 - discountAmount: 0 - subTotal: 14.25 - taxAmount: 2.43 - totalAmount: 16.68 - accountRef: - id: '4000' - name: Sales North - discountPercentage: 0 - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_1 - name: Sales - isDirectIncome: false - - description: Whiteboard - Drywipe (900 x 1200) - unitAmount: 19 - quantity: 4 - discountAmount: 0 - subTotal: 76 - taxAmount: 12.97 - totalAmount: 88.97 - accountRef: - id: '4000' - name: Sales North - discountPercentage: 0 - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_1 - name: Sales - isDirectIncome: false - - description: A4 Ledger Book - 5 Column - unitAmount: 7.59 - quantity: 8 - discountAmount: 0 - subTotal: 60.72 - taxAmount: 10.36 - totalAmount: 71.08 - accountRef: - id: '4000' - name: Sales North - discountPercentage: 0 - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_1 - name: Sales - isDirectIncome: false - - description: Shorthand Notebook - 80 Sheets - unitAmount: 4.27 - quantity: 20 - discountAmount: 0 - subTotal: 85.4 - taxAmount: 14.57 - totalAmount: 99.97 - accountRef: - id: '4000' - name: Sales North - discountPercentage: 0 - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_1 - name: Sales - isDirectIncome: false - - description: Calculator - Desktop - unitAmount: 9.5 - quantity: 1 - discountAmount: 0 - subTotal: 9.5 - taxAmount: 1.62 - totalAmount: 11.12 - accountRef: - id: '4000' - name: Sales North - discountPercentage: 0 - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_1 - name: Sales - isDirectIncome: false - - description: Calculator - Desktop (Printing) - unitAmount: 16.15 - quantity: 1 - discountAmount: 0 - subTotal: 16.15 - taxAmount: 2.76 - totalAmount: 18.91 - accountRef: - id: '4000' - name: Sales North - discountPercentage: 0 - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_1 - name: Sales - isDirectIncome: false - - description: Calculator - Printing Rolls - unitAmount: 5.7 - quantity: 15 - discountAmount: 0 - subTotal: 85.5 - taxAmount: 14.59 - totalAmount: 100.09 - accountRef: - id: '4000' - name: Sales North - discountPercentage: 0 - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_1 - name: Sales - isDirectIncome: false - - description: Correction Fluid - White - unitAmount: 2.37 - quantity: 7 - discountAmount: 0 - subTotal: 16.59 - taxAmount: 2.83 - totalAmount: 19.42 - accountRef: - id: '4000' - name: Sales North - discountPercentage: 0 - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_1 - name: Sales - isDirectIncome: false - - description: Envelope - White (110 x 220) Plain - unitAmount: 8.54 - quantity: 20 - discountAmount: 0 - subTotal: 170.8 - taxAmount: 29.14 - totalAmount: 199.94 - accountRef: - id: '4000' - name: Sales North - discountPercentage: 0 - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_1 - name: Sales - isDirectIncome: false - - description: Flip Chart - A1 Pad - unitAmount: 15.2 - quantity: 10 - discountAmount: 0 - subTotal: 152 - taxAmount: 25.94 - totalAmount: 177.94 - accountRef: - id: '4000' - name: Sales North - discountPercentage: 0 - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_1 - name: Sales - isDirectIncome: false - - description: Laminator Pouches - A4 - unitAmount: 11.4 - quantity: 5 - discountAmount: 0 - subTotal: 57 - taxAmount: 9.73 - totalAmount: 66.73 - accountRef: - id: '4000' - name: Sales North - discountPercentage: 0 - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_1 - name: Sales - isDirectIncome: false - - description: Mouse Mat - (241 x 203) Blue - unitAmount: 1.42 - quantity: 5 - discountAmount: 0 - subTotal: 7.1 - taxAmount: 1.21 - totalAmount: 8.31 - accountRef: - id: '4000' - name: Sales North - discountPercentage: 0 - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_1 - name: Sales - isDirectIncome: false - - description: Copy Paper - Economy Grade - unitAmount: 2.46 - quantity: 80 - discountAmount: 0 - subTotal: 196.8 - taxAmount: 33.58 - totalAmount: 230.38 - accountRef: - id: '4000' - name: Sales North - discountPercentage: 0 - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_1 - name: Sales - isDirectIncome: false - - description: Coloured Paper - Pastel Blue - unitAmount: 3.61 - quantity: 5 - discountAmount: 0 - subTotal: 18.05 - taxAmount: 3.08 - totalAmount: 21.13 - accountRef: - id: '4000' - name: Sales North - discountPercentage: 0 - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_1 - name: Sales - isDirectIncome: false - - description: Ball Point Pen - Black - unitAmount: 1.9 - quantity: 8 - discountAmount: 0 - subTotal: 15.2 - taxAmount: 2.59 - totalAmount: 17.79 - accountRef: - id: '4000' - name: Sales North - discountPercentage: 0 - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_1 - name: Sales - isDirectIncome: false - - description: Pencil - HB - unitAmount: 2.37 - quantity: 3 - discountAmount: 0 - subTotal: 7.11 - taxAmount: 1.21 - totalAmount: 8.32 - accountRef: - id: '4000' - name: Sales North - discountPercentage: 0 - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_1 - name: Sales - isDirectIncome: false - - description: Remember-Me Sticky Notes (Recycled) - unitAmount: 3.32 - quantity: 6 - discountAmount: 0 - subTotal: 19.92 - taxAmount: 3.4 - totalAmount: 23.32 - accountRef: - id: '4000' - name: Sales North - discountPercentage: 0 - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_1 - name: Sales - isDirectIncome: false - - description: Scissors - Economy - unitAmount: 2.85 - quantity: 1 - discountAmount: 0 - subTotal: 2.85 - taxAmount: 0.49 - totalAmount: 3.34 - accountRef: - id: '4000' - name: Sales North - discountPercentage: 0 - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_1 - name: Sales - isDirectIncome: false - - description: Adhesive Tape - Brown (50mm x 66m) - unitAmount: 2.66 - quantity: 5 - discountAmount: 0 - subTotal: 13.3 - taxAmount: 2.27 - totalAmount: 15.57 - accountRef: - id: '4000' - name: Sales North - discountPercentage: 0 - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_1 - name: Sales - isDirectIncome: false - - description: JP010 Jet Printer Cartridge - unitAmount: 17.1 - quantity: 5 - discountAmount: 0 - subTotal: 85.5 - taxAmount: 14.59 - totalAmount: 100.09 - accountRef: - id: '4000' - name: Sales North - discountPercentage: 0 - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_1 - name: Sales - isDirectIncome: false - - description: Letter Trays - 3 pack (Red) - unitAmount: 6.65 - quantity: 2 - discountAmount: 0 - subTotal: 13.3 - taxAmount: 2.27 - totalAmount: 15.57 - accountRef: - id: '4000' - name: Sales North - discountPercentage: 0 - taxRateRef: - id: '1' - name: Standard rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: department_1 - name: Sales - isDirectIncome: false - paymentAllocations: - - payment: - id: '265' - note: Sales receipt 265 linked to sales invoice inv-1. - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 1432.17 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -8.32 - - payment: - id: '265' - note: Sales receipt 265 linked to sales invoice inv-1. - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 1432.17 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -11.12 - - payment: - id: '265' - note: Sales receipt 265 linked to sales invoice inv-1. - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 1432.17 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -8.31 - - payment: - id: '265' - note: Sales receipt 265 linked to sales invoice inv-1. - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 1432.17 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -19.42 - - payment: - id: '265' - note: Sales receipt 265 linked to sales invoice inv-1. - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 1432.17 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -15.57 - - payment: - id: '265' - note: Sales receipt 265 linked to sales invoice inv-1. - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 1432.17 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -21.13 - - payment: - id: '265' - note: Sales receipt 265 linked to sales invoice inv-1. - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 1432.17 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -99.97 - - payment: - id: '265' - note: Sales receipt 265 linked to sales invoice inv-1. - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 1432.17 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -23.32 - - payment: - id: '265' - note: Sales receipt 265 linked to sales invoice inv-1. - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 1432.17 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -18.91 - - payment: - id: '265' - note: Sales receipt 265 linked to sales invoice inv-1. - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 1432.17 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -16.68 - - payment: - id: '265' - note: Sales receipt 265 linked to sales invoice inv-1. - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 1432.17 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -100.09 - - payment: - id: '265' - note: Sales receipt 265 linked to sales invoice inv-1. - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 1432.17 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -199.94 - - payment: - id: '265' - note: Sales receipt 265 linked to sales invoice inv-1. - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 1432.17 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -3.34 - - payment: - id: '265' - note: Sales receipt 265 linked to sales invoice inv-1. - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 1432.17 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -15.57 - - payment: - id: '265' - note: Sales receipt 265 linked to sales invoice inv-1. - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 1432.17 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -100.09 - - payment: - id: '265' - note: Sales receipt 265 linked to sales invoice inv-1. - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 1432.17 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -66.73 - - payment: - id: '265' - note: Sales receipt 265 linked to sales invoice inv-1. - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 1432.17 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -117.5 - - payment: - id: '265' - note: Sales receipt 265 linked to sales invoice inv-1. - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 1432.17 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -177.94 - - payment: - id: '265' - note: Sales receipt 265 linked to sales invoice inv-1. - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 1432.17 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -230.38 - - payment: - id: '265' - note: Sales receipt 265 linked to sales invoice inv-1. - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 1432.17 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -17.79 - - payment: - id: '265' - note: Sales receipt 265 linked to sales invoice inv-1. - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 1432.17 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -71.08 - - payment: - id: '265' - note: Sales receipt 265 linked to sales invoice inv-1. - accountRef: - id: '1200' - name: Bank Current Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-01-29T00:00:00' - totalAmount: 1432.17 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -88.97 - withholdingTax: [] - totalDiscount: 0 - subTotal: 1223.04 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 209.13 - totalAmount: 1432.17 - amountDue: 0 - status: Paid - note: '' - metadata: - isDeleted: false - Sage Business Cloud Accounting: - value: - id: b039b0a733de11e797950a57719b2edb - invoiceNumber: SI-1 - customerRef: - id: f4ff85ba33dd11e797950a57719b2edb - companyName: Widgets Limited - salesOrderRefs: [] - issueDate: '2017-05-08T00:00:00' - dueDate: '2017-06-07T00:00:00' - modifiedDate: '2022-10-24T15:03:37Z' - sourceModifiedDate: '2021-07-23T13:42:59Z' - paidOnDate: '2021-07-23T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Consulting services - unitAmount: 900 - quantity: 8 - discountAmount: 0 - subTotal: 7200 - taxAmount: 1440 - totalAmount: 8640 - accountRef: - id: 9a994b92267a11e797950a57719b2edb - name: Sales Type A - discountPercentage: 0 - taxRateRef: - id: GB_STANDARD - name: Standard 20.00% - effectiveTaxRate: 20 - itemRef: - id: a87b922b33de11e797950a57719b2edb - name: Consulting services - trackingCategoryRefs: [] - isDirectIncome: false - paymentAllocations: - - payment: - id: 52237e4e215911e8b45c025132dab352 - note: Customer receipt using credit/debit card - accountRef: - id: 9a25937b267a11e797950a57719b2edb - name: Current - currency: GBP - currencyRate: 1 - paidOnDate: '2018-01-02T00:00:00' - totalAmount: 4000 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -4000 - - payment: - id: 579388a0215911e8b45c025132dab352 - note: Customer receipt using credit/debit card - accountRef: - id: 9a25937b267a11e797950a57719b2edb - name: Current - currency: GBP - currencyRate: 1 - paidOnDate: '2018-01-02T00:00:00' - totalAmount: 1400 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -1400 - - payment: - id: e1c2bd659a6111e8bad90617b3da4b8a - note: Sales credit note - currency: GBP - currencyRate: 1 - paidOnDate: '2018-08-07T00:00:00' - totalAmount: 0 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -1000 - - payment: - id: e1c2bd659a6111e8bad90617b3da4b8a - note: Sales credit note - currency: GBP - currencyRate: 1 - paidOnDate: '2018-08-07T00:00:00' - totalAmount: 0 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -1000 - withholdingTax: [] - totalDiscount: 0 - subTotal: 7200 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 1440 - totalAmount: 8640 - amountDue: 1240 - status: PartiallyPaid - Sage Intacct: - value: - id: '2916' - invoiceNumber: IN0480 - customerRef: - id: '12' - companyName: MK Manufacturing - salesOrderRefs: [] - issueDate: '2021-04-22T00:00:00' - dueDate: '2021-05-22T00:00:00' - modifiedDate: '2023-04-04T16:31:54Z' - sourceModifiedDate: '2021-04-22T11:01:11Z' - paidOnDate: '2021-04-22T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - unitAmount: 100 - quantity: 1 - subTotal: 100 - taxAmount: 20 - totalAmount: 120 - accountRef: - id: '176' - name: Revenue - Services - taxRateRef: - id: '105' - name: UK Sale Services Standard Rate - effectiveTaxRate: 20 - trackingCategoryRefs: - - id: CUSTOMER-12 - name: MK Manufacturing - - id: DEPARTMENT-2 - name: Services - - id: LOCATION-11 - name: Codat Test Entity - isDirectIncome: false - paymentAllocations: - - payment: - id: '2918' - note: '' - accountRef: - id: '353' - name: Current Account - currency: GBP - paidOnDate: '2021-04-22T00:00:00' - totalAmount: 120 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -120 - withholdingTax: [] - totalDiscount: 0 - subTotal: 100 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 20 - totalAmount: 120 - amountDue: 0 - status: Paid - metadata: - isDeleted: false - Wave: - value: - id: QnVzaW5lc3M6ZTI0OGQyZDctMWE5Ni00YTk4LWFkOTEtMDdlMGYyMmNhNmE2O0ludm9pY2U6NzgyNDQ4OTg1Nzc1MzE5MTYw - invoiceNumber: '1' - customerRef: - id: QnVzaW5lc3M6ZTI0OGQyZDctMWE5Ni00YTk4LWFkOTEtMDdlMGYyMmNhNmE2O0N1c3RvbWVyOjMyMzkzNTA4 - companyName: ABC Textiles - salesOrderRefs: [] - issueDate: '2019-10-17T00:00:00' - dueDate: '2019-10-17T00:00:00' - modifiedDate: '2022-11-16T18:15:23Z' - sourceModifiedDate: '2019-12-05T23:20:36Z' - paidOnDate: '2019-12-05T23:20:36Z' - currency: USD - currencyRate: 0.784736781 - lineItems: - - description: '' - unitAmount: 10 - quantity: 5 - subTotal: 50 - taxAmount: 2.5 - totalAmount: 52.5 - accountRef: - id: QWNjb3VudDo3OTE3NTA2MDA0MjQ0NTExMTU7QnVzaW5lc3M6ZTI0OGQyZDctMWE5Ni00YTk4LWFkOTEtMDdlMGYyMmNhNmE2 - name: Sales - itemRef: - id: QnVzaW5lc3M6ZTI0OGQyZDctMWE5Ni00YTk4LWFkOTEtMDdlMGYyMmNhNmE2O1Byb2R1Y3Q6MzU2NjcyNTI= - name: Golf balls - trackingCategoryRefs: [] - isDirectIncome: false - paymentAllocations: [] - withholdingTax: [] - subTotal: 50 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 2.5 - totalAmount: 52.5 - amountDue: 0 - status: Paid - Xero: - value: - id: 321bfed3-2da2-4969-9358-4de97821181b - invoiceNumber: INV-001-0 - customerRef: - id: afd4093b-c655-4847-8ee2-10a4f2c3eae3 - companyName: Maddox Publishing Group - salesOrderRefs: [] - issueDate: '2021-12-20T00:00:00' - dueDate: '2022-01-17T00:00:00' - modifiedDate: '2023-03-15T20:38:11Z' - sourceModifiedDate: '2021-01-02T20:34:51' - paidOnDate: '2022-02-17T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - description: Project management - onsite daily rate - your CRM integration project - unitAmount: 583.3333333333 - quantity: 6 - discountAmount: 0 - subTotal: 3500 - taxAmount: 700 - totalAmount: 4200 - accountRef: - id: a969500a-377c-4cea-8f2b-a4e385607fd0 - name: Other Revenue - discountPercentage: 0 - taxRateRef: - id: OUTPUT2 - name: 20% (VAT on Income) - effectiveTaxRate: 20 - itemRef: - id: aa1c5f84-4453-42fa-9c92-69d4085607c9 - name: Project management - daily rate - trackingCategoryRefs: - - id: 34b9b859-07a9-451a-b4d3-effc9946634a - name: North - isDirectIncome: false - paymentAllocations: - - payment: - id: 65b746c8-9a5d-4a95-8096-d2316fcff592 - accountRef: - id: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - name: Business Bank Account - currency: GBP - currencyRate: 1 - paidOnDate: '2022-02-17T00:00:00' - totalAmount: 4200 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -4200 - withholdingTax: [] - totalDiscount: 0 - subTotal: 3500 - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 700 - totalAmount: 4200 - amountDue: 0 - status: Paid - metadata: - isDeleted: false - Zoho Books: - value: - id: '104957000000038034' - invoiceNumber: INV-102 - customerRef: - id: '104957000000037097' - companyName: Test Company - salesOrderRefs: [] - issueDate: '2020-02-06T10:54:03' - dueDate: '2020-02-17T00:00:00' - modifiedDate: '2022-10-03T08:40:37Z' - sourceModifiedDate: '2020-05-19T15:36:26' - paidOnDate: '2020-05-19T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: [] - paymentAllocations: - - payment: - id: '104957000000129048' - note: '' - reference: '9' - accountRef: - id: '104957000000000349' - name: Petty Cash - currency: GBP - currencyRate: 1 - paidOnDate: '2020-04-29T00:00:00' - totalAmount: 9000 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -9000 - - payment: - id: '104957000000137017' - note: '' - reference: '11' - accountRef: - id: '104957000000060010' - name: Abdi Test - currency: GBP - currencyRate: 1 - paidOnDate: '2020-05-19T00:00:00' - totalAmount: 9000 - allocation: - currency: GBP - currencyRate: 1 - totalAmount: -1 - withholdingTax: [] - additionalTaxAmount: 0 - additionalTaxPercentage: 0 - totalTaxAmount: 0 - totalAmount: 9001 - amountDue: 0 - status: Paid - '401': - $ref: '#/components/responses/Unauthorized' - '402': - $ref: '#/components/responses/Payment-Required' - '403': - $ref: '#/components/responses/Forbidden' - '404': - $ref: '#/components/responses/Not-Found' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - summary: Get invoice - description: | - The *Get invoice* endpoint returns a single invoice for a given invoiceId. - - [Invoices](https://docs.codat.io/lending-api#/schemas/Invoice) are itemized records of goods sold or services provided to a customer. - - Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data). - - ### Tips and traps - - To access the `paymentAllocations` property, ensure that the `payments` data type is queued and cached in Codat before retrieving `invoices` from Codat's cache. - operationId: get-accounting-invoice - x-speakeasy-group: accounts-receivable.invoices - '/companies/{companyId}/data/invoices/{invoiceId}/pdf': - parameters: - - $ref: '#/components/parameters/companyId' - get: - tags: - - Accounts receivable - parameters: - - $ref: '#/components/parameters/accountingInvoiceId' - responses: - '200': - description: Success - content: - application/pdf: - schema: - title: Data - type: string - format: binary - '401': - $ref: '#/components/responses/Unauthorized' - '402': - $ref: '#/components/responses/Payment-Required' - '403': - $ref: '#/components/responses/Forbidden' - '404': - $ref: '#/components/responses/Not-Found' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - summary: Get invoice as PDF - description: "\uFEFF\x44\x6F\x77\x6E\x6C\x6F\x61\x64\x20\x69\x6E\x76\x6F\x69\x63\x65\x20\x61\x73\x20\x61\x20\x70\x64\x66\x2E" - operationId: download-accounting-invoice-pdf - x-speakeasy-name-override: download-pdf - x-speakeasy-group: accounts-receivable.invoices - '/companies/{companyId}/connections/{connectionId}/data/invoices/{invoiceId}/attachments': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - get: - tags: - - Accounts receivable - parameters: - - $ref: '#/components/parameters/accountingInvoiceId' - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/Attachments' - '401': - $ref: '#/components/responses/Unauthorized' - '402': - $ref: '#/components/responses/Payment-Required' - '403': - $ref: '#/components/responses/Forbidden' - '404': - $ref: '#/components/responses/Not-Found' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - summary: List invoice attachments - description: |- - The *List invoice attachments* endpoint returns a list of attachments available to download for given `invoiceId`. - - [Invoices](https://docs.codat.io/lending-api#/schemas/Invoice) are itemized records of goods sold or services provided to a customer. - operationId: list-accounting-invoice-attachments - x-speakeasy-group: accounts-receivable.invoices - '/companies/{companyId}/connections/{connectionId}/data/invoices/{invoiceId}/attachments/{attachmentId}': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - get: - tags: - - Accounts receivable - parameters: - - $ref: '#/components/parameters/accountingInvoiceId' - - $ref: '#/components/parameters/attachmentId' - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/AccountingAttachment' - examples: {} - '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' - summary: Get invoice attachment - description: | - The *Get invoice attachment* endpoint returns a specific attachment for a given `invoiceId` and `attachmentId`. - - [Invoices](https://docs.codat.io/lending-api#/schemas/Invoice) are itemized records of goods sold or services provided to a customer. - operationId: get-accounting-invoice-attachment - x-speakeasy-group: accounts-receivable.invoices - '/companies/{companyId}/connections/{connectionId}/data/invoices/{invoiceId}/attachments/{attachmentId}/download': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - get: - tags: - - Accounts receivable - parameters: - - $ref: '#/components/parameters/accountingInvoiceId' - - $ref: '#/components/parameters/attachmentId' - responses: - '200': - description: Success - content: - application/octet-stream: - schema: - title: Data - type: string - format: binary - '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' - summary: Download invoice attachment - description: | - The *Download invoice attachment* endpoint downloads a specific attachment for a given `invoiceId` and `attachmentId`. - - [Invoices](https://docs.codat.io/lending-api#/schemas/Invoice) are itemized records of goods sold or services provided to a customer. - operationId: download-accounting-invoice-attachment - x-speakeasy-group: accounts-receivable.invoices - '/companies/{companyId}/data/journalEntries': - parameters: - - $ref: '#/components/parameters/companyId' - get: - tags: - - Transactions - summary: List journal entries - 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/AccountingJournalEntries' - examples: - Clear Books: - value: - results: - - id: 770c89bb-3d6a-449a-9243-739378b4cd7d - postedOn: '2022-04-19T00:00:00' - createdOn: '2022-04-19T00:00:00' - journalRef: - id: 90bb7784-083b-4bcb-a534-b30756cee65d - name: General Journal - journalLines: - - description: '' - netAmount: 32095.91 - currency: GBP - accountRef: - id: ff8fdc4c-2aad-4ec1-9430-6bd201832eb3 - name: Undeposited Funds - - description: Tax for direct income c31a3778-e3ea-4d01-9281-dd2f291c8cb8 - netAmount: -2917.81 - currency: GBP - accountRef: - id: 3a872b81-d1af-4d31-9bfa-a37280b8f68c - name: VAT - - description: '' - netAmount: -29178.09 - currency: GBP - accountRef: - id: 72df89d2-512b-4455-af51-a6b563733842 - name: Sales - modifiedDate: '2023-04-26T12:38:18Z' - recordRef: - id: c31a3778-e3ea-4d01-9281-dd2f291c8cb8 - dataType: directIncomes - metadata: - isDeleted: false - - id: 9f96606f-6846-40c6-b423-9b1753458e75 - postedOn: '2022-04-19T00:00:00' - createdOn: '2022-04-19T00:00:00' - journalRef: - id: 90bb7784-083b-4bcb-a534-b30756cee65d - name: General Journal - journalLines: - - description: '' - netAmount: 188.33 - currency: GBP - accountRef: - id: ff8fdc4c-2aad-4ec1-9430-6bd201832eb3 - name: Undeposited Funds - - description: Tax for direct income 38e8c917-0afc-4583-8ffe-1b53ad601197 - netAmount: -17.12 - currency: GBP - accountRef: - id: 3a872b81-d1af-4d31-9bfa-a37280b8f68c - name: VAT - - description: '' - netAmount: -171.21 - currency: GBP - accountRef: - id: 72df89d2-512b-4455-af51-a6b563733842 - name: Sales - modifiedDate: '2023-04-26T12:38:18Z' - recordRef: - id: 38e8c917-0afc-4583-8ffe-1b53ad601197 - dataType: directIncomes - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 1862 - _links: - current: - href: /companies/354a121b-855f-4d25-90ad-0905b498c1c0/data/journalEntries?page=1&pageSize=2 - self: - href: /companies/354a121b-855f-4d25-90ad-0905b498c1c0/data/journalEntries - next: - href: /companies/354a121b-855f-4d25-90ad-0905b498c1c0/data/journalEntries?page=2&pageSize=2 - Dynamics 365 Business Central: - value: - results: - - id: START - postedOn: '2018-12-31T00:00:00' - createdOn: '2018-12-31T00:00:00' - journalRef: - id: 4caabc3e-3d64-ed11-8c34-000d3a870cba - name: DEFAULT - journalLines: - - description: Opening Entry - netAmount: -69723.14 - currency: GBP - accountRef: - id: ac1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: Retained Earnings - - description: Opening Entry - netAmount: -20000 - currency: GBP - accountRef: - id: aa1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: Share Capital - - description: Opening Entry - netAmount: -2329.42 - currency: GBP - accountRef: - id: 8a1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: Accounts Payable - - description: Opening Entry - netAmount: 3499 - currency: GBP - accountRef: - id: 6e1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: Accumulated Depreciation - - description: Opening Entry - netAmount: 5498 - currency: GBP - accountRef: - id: 6c1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: Equipment - - description: Opening Entry - netAmount: 28547.16 - currency: GBP - accountRef: - id: 6a1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: Inventory - - description: Opening Entry - netAmount: 31638.4 - currency: GBP - accountRef: - id: 641217b3-89d1-ea11-bbaa-000d3a2b9185 - name: Accounts Receivable - - description: Opening Entry - netAmount: 2870 - currency: GBP - accountRef: - id: 641217b3-89d1-ea11-bbaa-000d3a2b9185 - name: Accounts Receivable - - description: Opening Entry - netAmount: 20000 - currency: GBP - accountRef: - id: 621217b3-89d1-ea11-bbaa-000d3a2b9185 - name: Petty Cash - modifiedDate: '2023-03-27T14:21:31Z' - sourceModifiedDate: '2020-07-29T10:56:12Z' - metadata: - isDeleted: false - - id: 01-2019 - postedOn: '2019-01-01T00:00:00' - createdOn: '2019-01-01T00:00:00' - journalRef: - id: 4caabc3e-3d64-ed11-8c34-000d3a870cba - name: DEFAULT - journalLines: - - description: January 2019 - netAmount: -2000 - currency: GBP - accountRef: - id: 5e1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: Checking account - - description: January 2019 - netAmount: 1000 - currency: GBP - accountRef: - id: 401217b3-89d1-ea11-bbaa-000d3a2b9185 - name: Salaries Expense - - description: January 2019 - netAmount: 1000 - currency: GBP - accountRef: - id: 341217b3-89d1-ea11-bbaa-000d3a2b9185 - name: Rent Expense - modifiedDate: '2023-03-27T14:21:31Z' - sourceModifiedDate: '2020-07-29T10:56:12Z' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 825 - _links: - current: - href: /companies/d6849caf-c146-41be-8335-b73346e3bd84/data/journalEntries?page=1&pageSize=2 - self: - href: /companies/d6849caf-c146-41be-8335-b73346e3bd84/data/journalEntries - next: - href: /companies/d6849caf-c146-41be-8335-b73346e3bd84/data/journalEntries?page=2&pageSize=2 - Exact (Netherlands): - value: - results: - - id: 00002c0a-8061-4ad2-84fa-c879eea880a7 - createdOn: '2022-01-11T14:18:54' - updatedOn: '2022-01-11T14:18:54' - journalRef: - id: 55ff34a3-0857-4202-b7ec-a399cfc26a4e - name: Memoriaal - journalLines: - - description: 1 transactions of type CARD_PAYMENT_FEE_REFUND - netAmount: -6.94 - currency: EUR - accountRef: - id: e0217fbf-8963-4134-80ef-929d5de8612d - name: Kosten 13e maand - tracking: - recordRefs: [] - - description: 1 transactions of type CARD_PAYMENT_FEE_REFUND - netAmount: 6.94 - currency: EUR - accountRef: - id: 0166c96b-adf2-4667-a755-87e67c741f41 - name: Resultaat verkoop activa - tracking: - recordRefs: [] - modifiedDate: '2022-10-26T13:37:10Z' - sourceModifiedDate: '2022-01-11T14:18:54Z' - - id: 000154f0-e83a-4012-96a3-7db0b036b96b - createdOn: '2020-04-22T13:56:46' - updatedOn: '2020-04-22T13:56:46' - journalRef: - id: 151313ae-55b1-4ba0-b32a-e2ef6a8ce52a - name: Nominal Card - journalLines: - - description: Refunds with payment type of Cash - netAmount: -144.36 - currency: EUR - accountRef: - id: 0741cc89-e33a-4358-bcbd-3acb07b005dc - name: Nominal Card - tracking: - recordRefs: [] - - description: Refunds with payment type of Cash - netAmount: 144.36 - currency: EUR - accountRef: - id: ef2fde36-4416-4bc5-b239-315b2929348c - name: Debiteuren - tracking: - recordRefs: [] - modifiedDate: '2022-10-26T13:37:08Z' - sourceModifiedDate: '2020-04-22T13:56:46Z' - pageNumber: 1 - pageSize: 2 - totalResults: 35972 - _links: - current: - href: /companies/b83b1923-4db6-45a8-a779-b4e320c15979/data/journalEntries?page=1&pageSize=2 - self: - href: /companies/b83b1923-4db6-45a8-a779-b4e320c15979/data/journalEntries - next: - href: /companies/b83b1923-4db6-45a8-a779-b4e320c15979/data/journalEntries?page=2&pageSize=2 - Exact (UK): - value: - results: - - id: 0008ef00-c5f8-4f97-bce9-5094b2f569dd - createdOn: '2020-07-03T10:51:46' - updatedOn: '2020-07-03T10:51:46' - journalRef: - id: ed5068ff-cb0e-4edd-9777-36ac94a5d6f0 - name: Sales journal - journalLines: - - netAmount: -9.1 - currency: GBP - accountRef: - id: 45ae4323-c93b-48b1-8393-db54254e4e6c - name: VAT To Pay - tracking: - recordRefs: [] - - description: 6 service charges with 0.0% vat - netAmount: -11.21 - currency: GBP - accountRef: - id: 43acd218-6a95-445f-994c-660273e0ced9 - name: Sales - tracking: - recordRefs: [] - - description: 28.0 items with VatPercentage of 0.0 - netAmount: -308.61 - currency: GBP - accountRef: - id: 43acd218-6a95-445f-994c-660273e0ced9 - name: Sales - tracking: - recordRefs: [] - - description: Gratuity - netAmount: -25.87 - currency: GBP - accountRef: - id: febc52c4-a1ed-4000-b51a-76f9f525445d - name: Salary Control Account - tracking: - recordRefs: [] - - netAmount: -47.14 - currency: GBP - accountRef: - id: 45ae4323-c93b-48b1-8393-db54254e4e6c - name: VAT To Pay - tracking: - recordRefs: [] - - description: 19.0 items with VatPercentage of 20.0 - netAmount: -235.72 - currency: GBP - accountRef: - id: 43acd218-6a95-445f-994c-660273e0ced9 - name: Sales - tracking: - recordRefs: [] - - description: 13.0 items with VatPercentage of 5.0 - netAmount: -182.06 - currency: GBP - accountRef: - id: 43acd218-6a95-445f-994c-660273e0ced9 - name: Sales - tracking: - recordRefs: [] - - description: 1.0 gift cards - netAmount: -1 - currency: GBP - accountRef: - id: febc52c4-a1ed-4000-b51a-76f9f525445d - name: Salary Control Account - tracking: - recordRefs: [] - - netAmount: 820.71 - currency: GBP - accountRef: - id: cf9572e7-8afa-4339-9113-af32a66d9df9 - name: Trade Debtors - tracking: - recordRefs: [] - modifiedDate: '2022-10-26T13:35:45Z' - sourceModifiedDate: '2020-07-03T10:51:46Z' - recordRef: - id: 0008ef00-c5f8-4f97-bce9-5094b2f569dd - dataType: invoices - - id: 001a8d63-2d5b-4b00-b17f-894108b6ce81 - createdOn: '2021-07-30T18:02:23' - updatedOn: '2021-07-30T18:02:23' - journalRef: - id: ed5068ff-cb0e-4edd-9777-36ac94a5d6f0 - name: Sales journal - journalLines: - - netAmount: 1038.01 - currency: GBP - accountRef: - id: cf9572e7-8afa-4339-9113-af32a66d9df9 - name: Trade Debtors - tracking: - recordRefs: [] - - description: 1.0 gift cards - netAmount: -1 - currency: GBP - accountRef: - id: cc0ab812-d89a-452b-88a8-61666a0f0211 - name: Accruals - tracking: - recordRefs: [] - - netAmount: -19.29 - currency: GBP - accountRef: - id: 45ae4323-c93b-48b1-8393-db54254e4e6c - name: VAT To Pay - tracking: - recordRefs: [] - - netAmount: -60.82 - currency: GBP - accountRef: - id: 45ae4323-c93b-48b1-8393-db54254e4e6c - name: VAT To Pay - tracking: - recordRefs: [] - - description: 15.0 items with VatPercentage of 0.0 - netAmount: -248.28 - currency: GBP - accountRef: - id: ba7d27d1-72cf-411b-8ef3-55ca4b13dac3 - name: Sundry Non-Operating Expenses - tracking: - recordRefs: [] - - description: Gratuity - netAmount: -8.97 - currency: GBP - accountRef: - id: 8f27a6b8-101d-4613-a059-2b462fb01b2f - name: anna_test_prod - tracking: - recordRefs: [] - - description: 28.0 items with VatPercentage of 5.0 - netAmount: -385.7 - currency: GBP - accountRef: - id: ba7d27d1-72cf-411b-8ef3-55ca4b13dac3 - name: Sundry Non-Operating Expenses - tracking: - recordRefs: [] - - description: 2 service charges with 0.0% vat - netAmount: -9.85 - currency: GBP - accountRef: - id: ba7d27d1-72cf-411b-8ef3-55ca4b13dac3 - name: Sundry Non-Operating Expenses - tracking: - recordRefs: [] - - description: 27.0 items with VatPercentage of 20.0 - netAmount: -304.1 - currency: GBP - accountRef: - id: ba7d27d1-72cf-411b-8ef3-55ca4b13dac3 - name: Sundry Non-Operating Expenses - tracking: - recordRefs: [] - modifiedDate: '2022-10-26T13:35:45Z' - sourceModifiedDate: '2021-07-30T18:02:23Z' - recordRef: - id: 001a8d63-2d5b-4b00-b17f-894108b6ce81 - dataType: invoices - pageNumber: 1 - pageSize: 2 - totalResults: 6785 - _links: - current: - href: /companies/d95030cd-22b2-482b-9c7b-2980dcc2b1ce/data/journalEntries?page=1&pageSize=2 - self: - href: /companies/d95030cd-22b2-482b-9c7b-2980dcc2b1ce/data/journalEntries - next: - href: /companies/d95030cd-22b2-482b-9c7b-2980dcc2b1ce/data/journalEntries?page=2&pageSize=2 - FreshBooks: - value: - results: - - id: '24389149' - postedOn: '1987-10-01T00:00:00' - createdOn: '1987-10-01T00:00:00' - updatedOn: '1987-10-01T00:00:00' - journalLines: - - description: '' - netAmount: 222.88 - currency: GBP - accountRef: - id: '128611' - name: Accounts Receivable - - description: Creative Writing Editorial - netAmount: -222.88 - currency: GBP - accountRef: - id: '128613' - name: Sales - - description: '' - netAmount: 0 - currency: GBP - accountRef: - id: '128613' - name: Sales - modifiedDate: '2023-03-24T16:07:38Z' - sourceModifiedDate: '1987-10-01T00:00:00' - recordRef: - id: '2596455' - dataType: invoices - metadata: - isDeleted: false - - id: '24389396' - postedOn: '1987-10-01T00:00:00' - createdOn: '1987-10-01T00:00:00' - updatedOn: '1987-10-01T00:00:00' - journalLines: - - description: '' - netAmount: -222.88 - currency: GBP - accountRef: - id: '128611' - name: Accounts Receivable - - description: Creative Writing Editorial - netAmount: 222.88 - currency: GBP - accountRef: - id: '128613' - name: Sales - - description: '' - netAmount: 0 - currency: GBP - accountRef: - id: '128613' - name: Sales - modifiedDate: '2023-03-24T16:07:38Z' - sourceModifiedDate: '1987-10-01T00:00:00' - recordRef: - id: '2596455' - dataType: invoices - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 734 - _links: - current: - href: /companies/3691c49e-0db4-4172-b3ab-e4084c365013/data/journalEntries?page=1&pageSize=2 - self: - href: /companies/3691c49e-0db4-4172-b3ab-e4084c365013/data/journalEntries - next: - href: /companies/3691c49e-0db4-4172-b3ab-e4084c365013/data/journalEntries?page=2&pageSize=2 - Oracle NetSuite: - value: - results: - - id: '112' - postedOn: '2021-03-26T00:00:00' - createdOn: '2021-03-26T10:31:05' - updatedOn: '2021-03-26T10:31:06' - journalLines: - - netAmount: -120 - currency: GBP - accountRef: - id: '825' - name: Codat Europe Bank - tracking: - recordRefs: - - id: location-4 - dataType: trackingCategories - - id: '724' - dataType: suppliers - - netAmount: 120 - currency: GBP - accountRef: - id: '111' - name: Accounts Payable - tracking: - recordRefs: - - id: location-4 - dataType: trackingCategories - - id: '724' - dataType: suppliers - modifiedDate: '2023-01-30T14:49:07Z' - sourceModifiedDate: '2021-03-26T10:31:06' - recordRef: - id: '112' - dataType: billPayments - - id: '7' - postedOn: '2021-03-26T00:00:00' - createdOn: '2021-03-26T10:02:18' - updatedOn: '2022-07-05T13:38:10' - journalLines: - - netAmount: -144 - currency: GBP - accountRef: - id: '111' - name: Accounts Payable - tracking: - recordRefs: - - id: '724' - dataType: suppliers - - netAmount: 120 - currency: GBP - accountRef: - id: '716' - name: Inventory In Transit - tracking: - recordRefs: - - id: location-4 - dataType: trackingCategories - - description: VAT - netAmount: 24 - currency: GBP - accountRef: - id: '211' - name: VAT on Purchases - tracking: - recordRefs: - - id: '713' - dataType: suppliers - modifiedDate: '2023-01-30T14:49:07Z' - sourceModifiedDate: '2022-07-05T13:38:10' - recordRef: - id: '7' - dataType: bills - pageNumber: 1 - pageSize: 2 - totalResults: 11 - _links: - current: - href: /companies/d5074b08-6a34-4b06-a742-236edf5dc4f1/data/journalEntries?page=1&pageSize=2 - self: - href: /companies/d5074b08-6a34-4b06-a742-236edf5dc4f1/data/journalEntries - next: - href: /companies/d5074b08-6a34-4b06-a742-236edf5dc4f1/data/journalEntries?page=2&pageSize=2 - QuickBooks Desktop: - value: - results: - - id: 2453-1071526256 - postedOn: '2022-11-28T00:00:00' - createdOn: '2022-11-28T00:00:00' - journalLines: - - description: '' - netAmount: 431.95 - currency: GBP - accountRef: - id: 40000-933270541 - name: Accounts Receivable - - description: Foundation slab - prep and pouring - netAmount: -167.5 - currency: GBP - accountRef: - id: 190000-933270541 - name: Labor Income - - description: 'CA sales tax, San Domingo County' - netAmount: -18.45 - currency: GBP - accountRef: - id: 100000-933270541 - name: Sales Tax Payable - - description: Rough lumber - netAmount: -48 - currency: GBP - accountRef: - id: 1A0000-933270542 - name: Materials Income - - description: Trim lumber - netAmount: -38 - currency: GBP - accountRef: - id: 1A0000-933270542 - name: Materials Income - - description: Window - netAmount: -50 - currency: GBP - accountRef: - id: 1A0000-933270542 - name: Materials Income - - description: Flooring - netAmount: -50 - currency: GBP - accountRef: - id: 1A0000-933270542 - name: Materials Income - - description: Window - netAmount: -60 - currency: GBP - accountRef: - id: 1A0000-933270542 - name: Materials Income - modifiedDate: '2023-04-26T09:11:56Z' - sourceModifiedDate: '2023-12-16T05:04:21' - recordRef: - id: 2453-1071526256 - dataType: invoices - metadata: - isDeleted: false - - id: '469E-1071530054' - postedOn: '2022-11-30T00:00:00' - createdOn: '2022-11-30T00:00:00' - journalLines: - - description: '' - netAmount: 14488.64 - currency: GBP - accountRef: - id: 40000-933270541 - name: Accounts Receivable - - description: Installation labor - netAmount: -45.5 - currency: GBP - accountRef: - id: 190000-933270541 - name: Labor Income - - description: Install drywall - netAmount: -1320 - currency: GBP - accountRef: - id: 1C0000-933270542 - name: Subcontracted Labor Income - - description: Electrical work - netAmount: -1650 - currency: GBP - accountRef: - id: 1C0000-933270542 - name: Subcontracted Labor Income - - description: Metal Work - netAmount: -660 - currency: GBP - accountRef: - id: 1C0000-933270542 - name: Subcontracted Labor Income - - description: Install insulation - netAmount: -1100 - currency: GBP - accountRef: - id: 1C0000-933270542 - name: Subcontracted Labor Income - - description: Plumbing - netAmount: -1650 - currency: GBP - accountRef: - id: 1C0000-933270542 - name: Subcontracted Labor Income - - description: Painting - netAmount: -2420 - currency: GBP - accountRef: - id: 1C0000-933270542 - name: Subcontracted Labor Income - - description: Install carpeting - netAmount: -3300 - currency: GBP - accountRef: - id: 1C0000-933270542 - name: Subcontracted Labor Income - - description: Custom Bay Window - netAmount: -1925 - currency: GBP - accountRef: - id: 1A0000-933270542 - name: Materials Income - - description: Window - netAmount: -115.5 - currency: GBP - accountRef: - id: 1A0000-933270542 - name: Materials Income - - description: Equipment Rental - netAmount: -700 - currency: GBP - accountRef: - id: 190000-933270541 - name: Labor Income - - description: 10% retainage to be billed after job is complete and approved. - netAmount: 555.5 - currency: GBP - accountRef: - id: 70000-933270541 - name: Retainage Receivable - - description: 'CA sales tax, San Tomas County' - netAmount: -158.14 - currency: GBP - accountRef: - id: 100000-933270541 - name: Sales Tax Payable - modifiedDate: '2023-04-26T09:11:56Z' - sourceModifiedDate: '2023-12-16T05:05:41' - recordRef: - id: '469E-1071530054' - dataType: invoices - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 140 - _links: - current: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/data/journalEntries?page=1&pageSize=2 - self: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/data/journalEntries - next: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/data/journalEntries?page=2&pageSize=2 - QuickBooks Online: - value: - results: - - id: '1' - postedOn: '2018-09-21T00:00:00' - createdOn: '2018-09-21T00:00:00' - journalLines: - - description: Opening Balance from Bank - netAmount: 170.23 - currency: GBP - accountRef: - id: '61' - name: Dave PP Current - tracking: - recordRefs: [] - - description: '' - netAmount: -170.23 - currency: GBP - accountRef: - id: '53' - name: Retained profit balance forward account - tracking: - recordRefs: [] - modifiedDate: '2023-01-18T11:03:25Z' - sourceModifiedDate: '2018-12-17T14:56:20Z' - - id: '15' - postedOn: '2018-09-21T00:00:00' - createdOn: '2018-09-21T00:00:00' - journalLines: - - description: Payment to Google - netAmount: -1.59 - currency: GBP - accountRef: - id: '61' - name: Dave PP Current - tracking: - recordRefs: [] - - description: Payment to Google - netAmount: 1.59 - currency: GBP - accountRef: - id: '37' - name: Computer equipment accumulated depreciation brought forward - tracking: - recordRefs: [] - modifiedDate: '2023-01-18T11:03:25Z' - sourceModifiedDate: '2018-12-17T14:56:44Z' - recordRef: - id: PUR-15 - dataType: directCosts - pageNumber: 1 - pageSize: 2 - totalResults: 9405 - _links: - current: - href: /companies/10818b5e-6e6a-4ed4-a1c5-3e3efe626e87/data/journalEntries?page=1&pageSize=2 - self: - href: /companies/10818b5e-6e6a-4ed4-a1c5-3e3efe626e87/data/journalEntries - next: - href: /companies/10818b5e-6e6a-4ed4-a1c5-3e3efe626e87/data/journalEntries?page=2&pageSize=2 - QuickBooks Online Sandbox: - value: - results: - - id: '12' - postedOn: '2015-02-23T00:00:00' - createdOn: '2015-02-23T00:00:00' - journalLines: - - description: Opening stock for Guest Book - netAmount: 0 - currency: GBP - accountRef: - id: '55' - name: Opening Balance Equity - tracking: - recordRefs: [] - - description: Opening stock for Guest Book - netAmount: 0 - currency: GBP - accountRef: - id: '65' - name: Stock Asset - tracking: - recordRefs: [] - - description: Opening stock for Guest Book - netAmount: 250 - currency: GBP - accountRef: - id: '65' - name: Stock Asset - tracking: - recordRefs: [] - - description: Opening stock for Guest Book - netAmount: -250 - currency: GBP - accountRef: - id: '55' - name: Opening Balance Equity - tracking: - recordRefs: [] - modifiedDate: '2023-04-26T09:36:42Z' - sourceModifiedDate: '2016-09-12T16:02:02Z' - metadata: - isDeleted: false - - id: '13' - postedOn: '2015-02-23T00:00:00' - createdOn: '2015-02-23T00:00:00' - journalLines: - - description: Opening stock for Name Badges - netAmount: 0 - currency: GBP - accountRef: - id: '55' - name: Opening Balance Equity - tracking: - recordRefs: [] - - description: Opening stock for Name Badges - netAmount: 0 - currency: GBP - accountRef: - id: '65' - name: Stock Asset - tracking: - recordRefs: [] - - description: Opening stock for Name Badges - netAmount: 7500 - currency: GBP - accountRef: - id: '65' - name: Stock Asset - tracking: - recordRefs: [] - - description: Opening stock for Name Badges - netAmount: -7500 - currency: GBP - accountRef: - id: '55' - name: Opening Balance Equity - tracking: - recordRefs: [] - modifiedDate: '2023-04-26T09:36:42Z' - sourceModifiedDate: '2016-09-12T16:02:04Z' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 9190 - _links: - current: - href: /companies/5a7f3597-36e1-4216-86fe-289ad36088a6/data/journalEntries?page=1&pageSize=2 - self: - href: /companies/5a7f3597-36e1-4216-86fe-289ad36088a6/data/journalEntries - next: - href: /companies/5a7f3597-36e1-4216-86fe-289ad36088a6/data/journalEntries?page=2&pageSize=2 - Sage 50 (UK): - value: - results: - - id: '88' - description: Opening Stock - postedOn: '2021-01-01T00:00:00' - createdOn: '2010-04-27T17:16:57' - journalLines: - - description: Opening Stock - netAmount: -40710 - currency: GBP - accountRef: - id: '1001' - name: Stock - - description: Opening Stock - netAmount: 40710 - currency: GBP - accountRef: - id: '5200' - name: Opening Stock - modifiedDate: '2023-03-30T14:42:38Z' - sourceModifiedDate: '2022-11-25T09:43:54' - recordRef: - id: '88' - dataType: journalEntries - metadata: - isDeleted: false - - id: '92' - description: Goods - postedOn: '2021-01-01T00:00:00' - createdOn: '2010-04-27T17:16:57' - journalLines: - - description: Goods/Services - Goods - netAmount: -5875 - currency: GBP - accountRef: - id: '2100' - name: Creditors Control Account - - description: Goods/Services - Goods - netAmount: 5000 - currency: GBP - accountRef: - id: '5000' - name: Materials Purchased - - description: Goods/Services - Goods - netAmount: 875 - currency: GBP - accountRef: - id: '2201' - name: Purchase Tax Control Account - modifiedDate: '2023-03-30T14:42:38Z' - sourceModifiedDate: '2022-11-25T09:43:54' - recordRef: - id: '92' - dataType: bills - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 1119 - _links: - current: - href: /companies/cf5f2a47-2990-4221-bae6-0c19c86ac304/data/journalEntries?page=1&pageSize=2 - self: - href: /companies/cf5f2a47-2990-4221-bae6-0c19c86ac304/data/journalEntries - next: - href: /companies/cf5f2a47-2990-4221-bae6-0c19c86ac304/data/journalEntries?page=2&pageSize=2 - Sage Business Cloud Accounting: - value: - results: - - id: b0489c4b33de11e797950a57719b2edb - postedOn: '2017-05-08T11:08:39' - createdOn: '2017-05-08T11:08:39' - updatedOn: '2017-05-08T11:08:39' - journalLines: - - description: Consulting services - netAmount: 1440 - currency: GBP - accountRef: - id: 9a9931b4267a11e797950a57719b2edb - name: VAT on Sales - Holding Account - - description: Consulting services - netAmount: 7200 - currency: GBP - accountRef: - id: 9a994b92267a11e797950a57719b2edb - name: Sales Type A - - netAmount: -8640 - currency: GBP - accountRef: - id: 9a991c56267a11e797950a57719b2edb - name: Trade Debtors - modifiedDate: '2022-10-24T15:31:26Z' - sourceModifiedDate: '2017-05-08T11:08:39Z' - - id: c23efa4233de11e797950a57719b2edb - postedOn: '2017-05-08T11:09:09' - createdOn: '2017-05-08T11:09:09' - updatedOn: '2017-05-08T11:09:09' - journalLines: - - netAmount: 1080 - currency: GBP - accountRef: - id: 9a991c56267a11e797950a57719b2edb - name: Trade Debtors - - description: Consulting services - netAmount: -180 - currency: GBP - accountRef: - id: 9a9931b4267a11e797950a57719b2edb - name: VAT on Sales - Holding Account - - description: Consulting services - netAmount: -900 - currency: GBP - accountRef: - id: 9a994b92267a11e797950a57719b2edb - name: Sales Type A - modifiedDate: '2022-10-24T15:31:26Z' - sourceModifiedDate: '2017-05-08T11:09:09Z' - pageNumber: 1 - pageSize: 2 - totalResults: 24386 - _links: - current: - href: /companies/390083e2-351b-407c-a3be-55081c36c182/data/journalEntries?page=1&pageSize=2 - self: - href: /companies/390083e2-351b-407c-a3be-55081c36c182/data/journalEntries - next: - href: /companies/390083e2-351b-407c-a3be-55081c36c182/data/journalEntries?page=2&pageSize=2 - Sage Intacct: - value: - results: - - id: '262177' - description: 'Invoices - 1100: 2021/04/22 03:44:26:7042 Batch Summary Entry' - postedOn: '2021-04-22T00:00:00' - createdOn: '2021-04-22T10:44:27' - updatedOn: '2021-04-22T10:44:27' - journalRef: - id: '1' - name: Accounts Receivable Journal - journalLines: - - description: '' - netAmount: -100 - currency: GBP - accountRef: - id: '176' - name: Revenue - Services - - description: '' - netAmount: -20 - currency: GBP - accountRef: - id: '306' - name: Sales Tax Payable - - description: '' - netAmount: 120 - currency: GBP - accountRef: - id: '2' - name: Accounts Receivable - modifiedDate: '2023-04-04T16:31:37Z' - sourceModifiedDate: '2021-04-22T10:44:27' - metadata: - isDeleted: false - - id: '262179' - description: 'Receipts(Bank-501_CHK) - 1100: April 2021 Batch Summary Entry' - postedOn: '2021-04-30T00:00:00' - createdOn: '2021-04-22T11:01:11' - updatedOn: '2022-04-19T13:38:45' - journalRef: - id: '7' - name: Cash Receipts Journal - journalLines: - - description: '' - netAmount: -120 - currency: GBP - accountRef: - id: '2' - name: Accounts Receivable - - description: '' - netAmount: 120 - currency: GBP - accountRef: - id: '353' - name: Current Account - - description: '' - netAmount: 150 - currency: GBP - accountRef: - id: '353' - name: Current Account - - description: '' - netAmount: -150 - currency: GBP - accountRef: - id: '179' - name: Revenue - Other - modifiedDate: '2023-04-04T16:31:37Z' - sourceModifiedDate: '2022-04-19T13:38:45' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 21 - _links: - current: - href: /companies/df02b289-cb16-4964-ac4d-9fd60b04538e/data/journalEntries?page=1&pageSize=2 - self: - href: /companies/df02b289-cb16-4964-ac4d-9fd60b04538e/data/journalEntries - next: - href: /companies/df02b289-cb16-4964-ac4d-9fd60b04538e/data/journalEntries?page=2&pageSize=2 - Xero: - value: - results: - - id: 033d79c7-565b-419a-9e1b-33ab58efcf3d - postedOn: '2021-11-19T00:00:00' - createdOn: '2023-02-17T21:07:12' - journalLines: - - description: '' - netAmount: -7267.2 - currency: GBP - accountRef: - id: e0faa299-ca0d-4b0a-9e32-0dfabdf9179a - name: Accounts Payable - - description: Half day training - Microsoft Office - netAmount: 1800 - currency: GBP - accountRef: - id: 46f9461e-788b-4906-8b74-d1ea17f6dc10 - name: Consulting - - description: Desktop/network support via email & phone.Per month fixed fee for minimum 20 hours/month. - netAmount: 4000 - currency: GBP - accountRef: - id: f96c9458-d724-47bf-8f74-a9d5726465ce - name: General Expenses - - description: Stationery charges - netAmount: 256 - currency: GBP - accountRef: - id: cba6527d-f102-4538-b421-e483233e9d5a - name: Printing & Stationery - - description: '' - netAmount: 1211.2 - currency: GBP - accountRef: - id: b12f79b9-a082-4b8b-971e-d321292943c7 - name: VAT - modifiedDate: '2023-03-15T20:37:09Z' - sourceModifiedDate: '2023-02-17T21:07:12' - recordRef: - id: 3945273c-cc04-479f-a4b5-1e3dc7a55ed1 - dataType: bills - metadata: - isDeleted: false - - id: 98ac5060-c9ed-4359-bcd5-711e649e7899 - postedOn: '2021-12-20T00:00:00' - createdOn: '2023-02-17T21:07:23' - journalLines: - - description: '' - netAmount: -7267.2 - currency: GBP - accountRef: - id: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - name: Business Bank Account - - description: '' - netAmount: 7267.2 - currency: GBP - accountRef: - id: e0faa299-ca0d-4b0a-9e32-0dfabdf9179a - name: Accounts Payable - modifiedDate: '2023-03-15T20:37:09Z' - sourceModifiedDate: '2023-02-17T21:07:23' - recordRef: - id: 74004690-82a1-4810-aaca-6ce575af94b4 - dataType: billPayments - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 290 - _links: - current: - href: /companies/5ced9667-a310-443a-a711-958d36377141/data/journalEntries?page=1&pageSize=2 - self: - href: /companies/5ced9667-a310-443a-a711-958d36377141/data/journalEntries - next: - href: /companies/5ced9667-a310-443a-a711-958d36377141/data/journalEntries?page=2&pageSize=2 - '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' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - description: "The *List journal entries* endpoint returns a list of [journal entries](https://docs.codat.io/lending-api#/schemas/JournalEntry) for a given company's connection.\n\n[Journal entries](https://docs.codat.io/lending-api#/schemas/JournalEntry) are made in a company's general ledger, or accounts, when transactions are approved.\n\nBefore using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data).\n " - operationId: list-accounting-journal-entries - x-speakeasy-group: transactions.journal-entries - '/companies/{companyId}/data/journalEntries/{journalEntryId}': - parameters: - - $ref: '#/components/parameters/companyId' - - name: journalEntryId - in: path - required: true - schema: - type: string - examples: - - 13d946f0-c5d5-42bc-b092-97ece17923ab - - 9wg4lep4ush5cxs79pl8sozmsndbaukll3ind4g7buqbm1h2 - - 7110701885 - - EILBDVJVNUAGVKRQ - description: Unique identifier for a journal entry. - get: - tags: - - Transactions - summary: Get journal entry - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/AccountingJournalEntry' - examples: - Clear Books: - value: - id: 770c89bb-3d6a-449a-9243-739378b4cd7d - postedOn: '2022-04-19T00:00:00' - createdOn: '2022-04-19T00:00:00' - journalRef: - id: 90bb7784-083b-4bcb-a534-b30756cee65d - name: General Journal - journalLines: - - description: '' - netAmount: 32095.91 - currency: GBP - accountRef: - id: ff8fdc4c-2aad-4ec1-9430-6bd201832eb3 - name: Undeposited Funds - - description: Tax for direct income c31a3778-e3ea-4d01-9281-dd2f291c8cb8 - netAmount: -2917.81 - currency: GBP - accountRef: - id: 3a872b81-d1af-4d31-9bfa-a37280b8f68c - name: VAT - - description: '' - netAmount: -29178.09 - currency: GBP - accountRef: - id: 72df89d2-512b-4455-af51-a6b563733842 - name: Sales - modifiedDate: '2023-04-26T12:38:18Z' - recordRef: - id: c31a3778-e3ea-4d01-9281-dd2f291c8cb8 - dataType: directIncomes - metadata: - isDeleted: false - Dynamics 365 Business Central: - value: - id: START - postedOn: '2018-12-31T00:00:00' - createdOn: '2018-12-31T00:00:00' - journalRef: - id: 4caabc3e-3d64-ed11-8c34-000d3a870cba - name: DEFAULT - journalLines: - - description: Opening Entry - netAmount: -69723.14 - currency: GBP - accountRef: - id: ac1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: Retained Earnings - - description: Opening Entry - netAmount: -20000 - currency: GBP - accountRef: - id: aa1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: Share Capital - - description: Opening Entry - netAmount: -2329.42 - currency: GBP - accountRef: - id: 8a1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: Accounts Payable - - description: Opening Entry - netAmount: 3499 - currency: GBP - accountRef: - id: 6e1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: Accumulated Depreciation - - description: Opening Entry - netAmount: 5498 - currency: GBP - accountRef: - id: 6c1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: Equipment - - description: Opening Entry - netAmount: 28547.16 - currency: GBP - accountRef: - id: 6a1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: Inventory - - description: Opening Entry - netAmount: 31638.4 - currency: GBP - accountRef: - id: 641217b3-89d1-ea11-bbaa-000d3a2b9185 - name: Accounts Receivable - - description: Opening Entry - netAmount: 2870 - currency: GBP - accountRef: - id: 641217b3-89d1-ea11-bbaa-000d3a2b9185 - name: Accounts Receivable - - description: Opening Entry - netAmount: 20000 - currency: GBP - accountRef: - id: 621217b3-89d1-ea11-bbaa-000d3a2b9185 - name: Petty Cash - modifiedDate: '2023-03-27T14:21:31Z' - sourceModifiedDate: '2020-07-29T10:56:12Z' - metadata: - isDeleted: false - Exact (Netherlands): - value: - id: 00002c0a-8061-4ad2-84fa-c879eea880a7 - createdOn: '2022-01-11T14:18:54' - updatedOn: '2022-01-11T14:18:54' - journalRef: - id: 55ff34a3-0857-4202-b7ec-a399cfc26a4e - name: Memoriaal - journalLines: - - description: 1 transactions of type CARD_PAYMENT_FEE_REFUND - netAmount: -6.94 - currency: EUR - accountRef: - id: e0217fbf-8963-4134-80ef-929d5de8612d - name: Kosten 13e maand - tracking: - recordRefs: [] - - description: 1 transactions of type CARD_PAYMENT_FEE_REFUND - netAmount: 6.94 - currency: EUR - accountRef: - id: 0166c96b-adf2-4667-a755-87e67c741f41 - name: Resultaat verkoop activa - tracking: - recordRefs: [] - modifiedDate: '2022-10-26T13:37:10Z' - sourceModifiedDate: '2022-01-11T14:18:54Z' - Exact (UK): - value: - id: 0008ef00-c5f8-4f97-bce9-5094b2f569dd - createdOn: '2020-07-03T10:51:46' - updatedOn: '2020-07-03T10:51:46' - journalRef: - id: ed5068ff-cb0e-4edd-9777-36ac94a5d6f0 - name: Sales journal - journalLines: - - netAmount: -9.1 - currency: GBP - accountRef: - id: 45ae4323-c93b-48b1-8393-db54254e4e6c - name: VAT To Pay - tracking: - recordRefs: [] - - description: 6 service charges with 0.0% vat - netAmount: -11.21 - currency: GBP - accountRef: - id: 43acd218-6a95-445f-994c-660273e0ced9 - name: Sales - tracking: - recordRefs: [] - - description: 28.0 items with VatPercentage of 0.0 - netAmount: -308.61 - currency: GBP - accountRef: - id: 43acd218-6a95-445f-994c-660273e0ced9 - name: Sales - tracking: - recordRefs: [] - - description: Gratuity - netAmount: -25.87 - currency: GBP - accountRef: - id: febc52c4-a1ed-4000-b51a-76f9f525445d - name: Salary Control Account - tracking: - recordRefs: [] - - netAmount: -47.14 - currency: GBP - accountRef: - id: 45ae4323-c93b-48b1-8393-db54254e4e6c - name: VAT To Pay - tracking: - recordRefs: [] - - description: 19.0 items with VatPercentage of 20.0 - netAmount: -235.72 - currency: GBP - accountRef: - id: 43acd218-6a95-445f-994c-660273e0ced9 - name: Sales - tracking: - recordRefs: [] - - description: 13.0 items with VatPercentage of 5.0 - netAmount: -182.06 - currency: GBP - accountRef: - id: 43acd218-6a95-445f-994c-660273e0ced9 - name: Sales - tracking: - recordRefs: [] - - description: 1.0 gift cards - netAmount: -1 - currency: GBP - accountRef: - id: febc52c4-a1ed-4000-b51a-76f9f525445d - name: Salary Control Account - tracking: - recordRefs: [] - - netAmount: 820.71 - currency: GBP - accountRef: - id: cf9572e7-8afa-4339-9113-af32a66d9df9 - name: Trade Debtors - tracking: - recordRefs: [] - modifiedDate: '2022-10-26T13:35:45Z' - sourceModifiedDate: '2020-07-03T10:51:46Z' - recordRef: - id: 0008ef00-c5f8-4f97-bce9-5094b2f569dd - dataType: invoices - FreshBooks: - value: - id: '24389149' - postedOn: '1987-10-01T00:00:00' - createdOn: '1987-10-01T00:00:00' - updatedOn: '1987-10-01T00:00:00' - journalLines: - - description: '' - netAmount: 222.88 - currency: GBP - accountRef: - id: '128611' - name: Accounts Receivable - - description: Creative Writing Editorial - netAmount: -222.88 - currency: GBP - accountRef: - id: '128613' - name: Sales - - description: '' - netAmount: 0 - currency: GBP - accountRef: - id: '128613' - name: Sales - modifiedDate: '2023-03-24T16:07:38Z' - sourceModifiedDate: '1987-10-01T00:00:00' - recordRef: - id: '2596455' - dataType: invoices - metadata: - isDeleted: false - Oracle NetSuite: - value: - id: '112' - postedOn: '2021-03-26T00:00:00' - createdOn: '2021-03-26T10:31:05' - updatedOn: '2021-03-26T10:31:06' - journalLines: - - netAmount: -120 - currency: GBP - accountRef: - id: '825' - name: Codat Europe Bank - tracking: - recordRefs: - - id: location-4 - dataType: trackingCategories - - id: '724' - dataType: suppliers - - netAmount: 120 - currency: GBP - accountRef: - id: '111' - name: Accounts Payable - tracking: - recordRefs: - - id: location-4 - dataType: trackingCategories - - id: '724' - dataType: suppliers - modifiedDate: '2023-01-30T14:49:07Z' - sourceModifiedDate: '2021-03-26T10:31:06' - recordRef: - id: '112' - dataType: billPayments - QuickBooks Desktop: - value: - id: 2453-1071526256 - postedOn: '2022-11-28T00:00:00' - createdOn: '2022-11-28T00:00:00' - journalLines: - - description: '' - netAmount: 431.95 - currency: GBP - accountRef: - id: 40000-933270541 - name: Accounts Receivable - - description: Foundation slab - prep and pouring - netAmount: -167.5 - currency: GBP - accountRef: - id: 190000-933270541 - name: Labor Income - - description: 'CA sales tax, San Domingo County' - netAmount: -18.45 - currency: GBP - accountRef: - id: 100000-933270541 - name: Sales Tax Payable - - description: Rough lumber - netAmount: -48 - currency: GBP - accountRef: - id: 1A0000-933270542 - name: Materials Income - - description: Trim lumber - netAmount: -38 - currency: GBP - accountRef: - id: 1A0000-933270542 - name: Materials Income - - description: Window - netAmount: -50 - currency: GBP - accountRef: - id: 1A0000-933270542 - name: Materials Income - - description: Flooring - netAmount: -50 - currency: GBP - accountRef: - id: 1A0000-933270542 - name: Materials Income - - description: Window - netAmount: -60 - currency: GBP - accountRef: - id: 1A0000-933270542 - name: Materials Income - modifiedDate: '2023-04-26T09:11:56Z' - sourceModifiedDate: '2023-12-16T05:04:21' - recordRef: - id: 2453-1071526256 - dataType: invoices - metadata: - isDeleted: false - QuickBooks Online: - value: - id: '1' - postedOn: '2018-09-21T00:00:00' - createdOn: '2018-09-21T00:00:00' - journalLines: - - description: Opening Balance from Bank - netAmount: 170.23 - currency: GBP - accountRef: - id: '61' - name: Dave PP Current - tracking: - recordRefs: [] - - description: '' - netAmount: -170.23 - currency: GBP - accountRef: - id: '53' - name: Retained profit balance forward account - tracking: - recordRefs: [] - modifiedDate: '2023-01-18T11:03:25Z' - sourceModifiedDate: '2018-12-17T14:56:20Z' - QuickBooks Online Sandbox: - value: - id: '12' - postedOn: '2015-02-23T00:00:00' - createdOn: '2015-02-23T00:00:00' - journalLines: - - description: Opening stock for Guest Book - netAmount: 0 - currency: GBP - accountRef: - id: '55' - name: Opening Balance Equity - tracking: - recordRefs: [] - - description: Opening stock for Guest Book - netAmount: 0 - currency: GBP - accountRef: - id: '65' - name: Stock Asset - tracking: - recordRefs: [] - - description: Opening stock for Guest Book - netAmount: 250 - currency: GBP - accountRef: - id: '65' - name: Stock Asset - tracking: - recordRefs: [] - - description: Opening stock for Guest Book - netAmount: -250 - currency: GBP - accountRef: - id: '55' - name: Opening Balance Equity - tracking: - recordRefs: [] - modifiedDate: '2023-04-26T09:36:42Z' - sourceModifiedDate: '2016-09-12T16:02:02Z' - metadata: - isDeleted: false - Sage 50 (UK): - value: - id: '88' - description: Opening Stock - postedOn: '2021-01-01T00:00:00' - createdOn: '2010-04-27T17:16:57' - journalLines: - - description: Opening Stock - netAmount: -40710 - currency: GBP - accountRef: - id: '1001' - name: Stock - - description: Opening Stock - netAmount: 40710 - currency: GBP - accountRef: - id: '5200' - name: Opening Stock - modifiedDate: '2023-03-30T14:42:38Z' - sourceModifiedDate: '2022-11-25T09:43:54' - recordRef: - id: '88' - dataType: journalEntries - metadata: - isDeleted: false - Sage Business Cloud Accounting: - value: - id: b0489c4b33de11e797950a57719b2edb - postedOn: '2017-05-08T11:08:39' - createdOn: '2017-05-08T11:08:39' - updatedOn: '2017-05-08T11:08:39' - journalLines: - - description: Consulting services - netAmount: 1440 - currency: GBP - accountRef: - id: 9a9931b4267a11e797950a57719b2edb - name: VAT on Sales - Holding Account - - description: Consulting services - netAmount: 7200 - currency: GBP - accountRef: - id: 9a994b92267a11e797950a57719b2edb - name: Sales Type A - - netAmount: -8640 - currency: GBP - accountRef: - id: 9a991c56267a11e797950a57719b2edb - name: Trade Debtors - modifiedDate: '2022-10-24T15:31:26Z' - sourceModifiedDate: '2017-05-08T11:08:39Z' - Sage Intacct: - value: - id: '262177' - description: 'Invoices - 1100: 2021/04/22 03:44:26:7042 Batch Summary Entry' - postedOn: '2021-04-22T00:00:00' - createdOn: '2021-04-22T10:44:27' - updatedOn: '2021-04-22T10:44:27' - journalRef: - id: '1' - name: Accounts Receivable Journal - journalLines: - - description: '' - netAmount: -100 - currency: GBP - accountRef: - id: '176' - name: Revenue - Services - - description: '' - netAmount: -20 - currency: GBP - accountRef: - id: '306' - name: Sales Tax Payable - - description: '' - netAmount: 120 - currency: GBP - accountRef: - id: '2' - name: Accounts Receivable - modifiedDate: '2023-04-04T16:31:37Z' - sourceModifiedDate: '2021-04-22T10:44:27' - metadata: - isDeleted: false - Xero: - value: - id: 033d79c7-565b-419a-9e1b-33ab58efcf3d - postedOn: '2021-11-19T00:00:00' - createdOn: '2023-02-17T21:07:12' - journalLines: - - description: '' - netAmount: -7267.2 - currency: GBP - accountRef: - id: e0faa299-ca0d-4b0a-9e32-0dfabdf9179a - name: Accounts Payable - - description: Half day training - Microsoft Office - netAmount: 1800 - currency: GBP - accountRef: - id: 46f9461e-788b-4906-8b74-d1ea17f6dc10 - name: Consulting - - description: Desktop/network support via email & phone.Per month fixed fee for minimum 20 hours/month. - netAmount: 4000 - currency: GBP - accountRef: - id: f96c9458-d724-47bf-8f74-a9d5726465ce - name: General Expenses - - description: Stationery charges - netAmount: 256 - currency: GBP - accountRef: - id: cba6527d-f102-4538-b421-e483233e9d5a - name: Printing & Stationery - - description: '' - netAmount: 1211.2 - currency: GBP - accountRef: - id: b12f79b9-a082-4b8b-971e-d321292943c7 - name: VAT - modifiedDate: '2023-03-15T20:37:09Z' - sourceModifiedDate: '2023-02-17T21:07:12' - recordRef: - id: 3945273c-cc04-479f-a4b5-1e3dc7a55ed1 - dataType: bills - metadata: - isDeleted: false - '401': - $ref: '#/components/responses/Unauthorized' - '402': - $ref: '#/components/responses/Payment-Required' - '403': - $ref: '#/components/responses/Forbidden' - '404': - $ref: '#/components/responses/Not-Found' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - description: | - The *Get journal entry* endpoint returns a single journal entry for a given journalEntryId. - - [Journal entries](https://docs.codat.io/lending-api#/schemas/JournalEntry) are made in a company's general ledger, or accounts, when transactions are approved. - - Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data). - operationId: get-accounting-journal-entry - x-speakeasy-group: transactions.journal-entries - '/companies/{companyId}/data/journals': - parameters: - - $ref: '#/components/parameters/companyId' - get: - tags: - - Transactions - summary: List journals - 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/AccountingJournals' - examples: - Clear Books: - value: - results: - - id: 90bb7784-083b-4bcb-a534-b30756cee65d - journalCode: GJ - name: General Journal - type: General Journal - hasChildren: true - createdOn: '2021-12-11T13:04:02' - status: Active - modifiedDate: '2023-04-26T12:38:18Z' - sourceModifiedDate: '2022-07-15T20:19:02' - metadata: - isDeleted: false - - id: 07b94827-c0a5-4cc7-ba58-3f9efec3b4b3 - journalCode: PAY - name: Payroll Journal - type: Payroll Journal - parentId: 90bb7784-083b-4bcb-a534-b30756cee65d - hasChildren: false - createdOn: '2021-12-11T13:04:02' - status: Active - modifiedDate: '2023-04-26T12:38:18Z' - sourceModifiedDate: '2022-07-24T14:17:02' - metadata: - isDeleted: false - _links: - current: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/data/journals?page=1&pageSize=2 - self: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/data/journals - next: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/data/journals?page=2&pageSize=2 - pageNumber: 1 - pageSize: 2 - totalResults: 4 - Dynamics 365 Business Central: - value: - results: - - id: 211317b3-89d1-ea11-bbaa-000d3a2b9185 - journalCode: ASSETS - name: ASSETS - type: Assets - hasChildren: true - status: Active - modifiedDate: '2023-03-27T14:21:10Z' - sourceModifiedDate: '2023-02-02T10:26:25Z' - metadata: - isDeleted: false - - id: 9a94ef78-92ec-ec11-82f9-000d3a8746a9 - journalCode: BNKDEPOSIT-BNKD - name: BNKD - type: Bank Deposits - parentId: af7d7e6b-e5c8-ec11-8e7e-000d3a86e04a - hasChildren: false - createdOn: '2022-06-15T10:03:59' - status: Active - modifiedDate: '2023-03-27T14:21:10Z' - sourceModifiedDate: '2022-06-15T22:45:30Z' - metadata: - isDeleted: false - _links: - current: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/data/journals?page=1&pageSize=2 - self: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/data/journals - next: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/data/journals?page=2&pageSize=2 - pageNumber: 1 - pageSize: 2 - totalResults: 46 - Exact (Netherlands): - value: - results: - - id: aae31284-e23d-456b-9957-fbf4bcef6c19 - journalCode: '21' - name: '12345678' - type: Bank - hasChildren: false - createdOn: '2019-11-05T14:44:51' - status: Active - modifiedDate: '2022-10-26T13:31:58Z' - sourceModifiedDate: '2020-01-24T11:41:25Z' - - id: 74677165-1bd3-49b4-87d0-32d974674f86 - journalCode: '23' - name: Abraham's Billion Dollar stuff - type: Bank - hasChildren: false - createdOn: '2019-11-22T13:35:57' - status: Active - modifiedDate: '2022-10-26T13:31:58Z' - sourceModifiedDate: '2019-11-22T13:35:57Z' - _links: - current: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/data/journals?page=1&pageSize=2 - self: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/data/journals - next: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/data/journals?page=2&pageSize=2 - pageNumber: 1 - pageSize: 2 - totalResults: 47 - Exact (UK): - value: - results: - - id: 05b9febe-34b3-4836-8277-002294b233a9 - journalCode: '25' - name: annaBankAccount1 - type: Bank - hasChildren: false - createdOn: '2021-04-26T16:44:47' - status: Active - modifiedDate: '2022-10-26T13:33:08Z' - sourceModifiedDate: '2021-04-26T16:44:47Z' - - id: b9c3d6a6-4ce2-4714-9ff6-fb15892300f7 - journalCode: '31' - name: annaBankAccount10 - type: Bank - hasChildren: false - createdOn: '2021-05-18T10:24:18' - status: Active - modifiedDate: '2022-10-26T13:33:08Z' - sourceModifiedDate: '2021-05-18T10:24:18Z' - _links: - current: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/data/journals?page=1&pageSize=2 - self: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/data/journals - next: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/data/journals?page=2&pageSize=2 - pageNumber: 1 - pageSize: 2 - totalResults: 21 - Sage Intacct: - value: - results: - - id: '207' - journalCode: AJPT - name: A Journal Push Test - type: '' - hasChildren: false - createdOn: '2022-01-17T10:44:23' - status: Active - modifiedDate: '2023-04-04T16:31:30Z' - sourceModifiedDate: '2022-01-17T10:44:23' - metadata: - isDeleted: false - - id: '223' - journalCode: AJPT2 - name: A Journal Push Test 2 - type: '' - hasChildren: false - createdOn: '2022-01-18T15:39:07' - status: Active - modifiedDate: '2023-04-04T16:31:30Z' - sourceModifiedDate: '2022-01-18T15:39:07' - metadata: - isDeleted: false - _links: - current: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/data/journals?page=1&pageSize=2 - self: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/data/journals - next: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/data/journals?page=2&pageSize=2 - pageNumber: 1 - pageSize: 2 - totalResults: 1211 - '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' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - description: "The *List journals* endpoint returns a list of [journals](https://docs.codat.io/lending-api#/schemas/Journal) for a given company's connection.\n\n[Journals](https://docs.codat.io/lending-api#/schemas/Journal) are used to record all the financial transactions of a company.\n\nBefore using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data).\n " - operationId: list-accounting-journals - x-speakeasy-group: transactions.journals - '/companies/{companyId}/data/journals/{journalId}': - parameters: - - $ref: '#/components/parameters/companyId' - get: - tags: - - Transactions - summary: Get journal - parameters: - - name: journalId - in: path - required: true - schema: - type: string - description: Unique identifier for a journal. - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/AccountingJournal' - examples: - Clear Books: - value: - id: 90bb7784-083b-4bcb-a534-b30756cee65d - journalCode: GJ - name: General Journal - type: General Journal - hasChildren: true - createdOn: '2021-12-11T13:04:02' - status: Active - modifiedDate: '2023-04-26T12:38:18Z' - sourceModifiedDate: '2022-07-15T20:19:02' - metadata: - isDeleted: false - Dynamics 365 Business Central: - value: - id: 211317b3-89d1-ea11-bbaa-000d3a2b9185 - journalCode: ASSETS - name: ASSETS - type: Assets - hasChildren: true - status: Active - modifiedDate: '2023-03-27T14:21:10Z' - sourceModifiedDate: '2023-02-02T10:26:25Z' - metadata: - isDeleted: false - Exact (Netherlands): - value: - id: aae31284-e23d-456b-9957-fbf4bcef6c19 - journalCode: '21' - name: '12345678' - type: Bank - hasChildren: false - createdOn: '2019-11-05T14:44:51' - status: Active - modifiedDate: '2022-10-26T13:31:58Z' - sourceModifiedDate: '2020-01-24T11:41:25Z' - Exact (UK): - value: - id: 05b9febe-34b3-4836-8277-002294b233a9 - journalCode: '25' - name: annaBankAccount1 - type: Bank - hasChildren: false - createdOn: '2021-04-26T16:44:47' - status: Active - modifiedDate: '2022-10-26T13:33:08Z' - sourceModifiedDate: '2021-04-26T16:44:47Z' - Sage Intacct: - value: - id: '207' - journalCode: AJPT - name: A Journal Push Test - type: '' - hasChildren: false - createdOn: '2022-01-17T10:44:23' - status: Active - modifiedDate: '2023-04-04T16:31:30Z' - sourceModifiedDate: '2022-01-17T10:44:23' - metadata: - isDeleted: false - '401': - $ref: '#/components/responses/Unauthorized' - '402': - $ref: '#/components/responses/Payment-Required' - '403': - $ref: '#/components/responses/Forbidden' - '404': - $ref: '#/components/responses/Not-Found' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - description: | - The *Get journal* endpoint returns a single journal for a given journalId. - - [Journals](https://docs.codat.io/lending-api#/schemas/Journal) are used to record all the financial transactions of a company. - - Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data). - operationId: get-accounting-journal - x-speakeasy-group: transactions.journals - '/companies/{companyId}/data/payments': - parameters: - - $ref: '#/components/parameters/companyId' - get: - tags: - - Accounts receivable - summary: List payments - 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/AccountingPayments' - examples: - Clear Books: - value: - results: - - id: 7ba4fc1b-e248-49ba-8bf8-0813d7f203a8 - customerRef: - id: a82042f1-a005-4ca5-bfd3-5bc237123aa5 - companyName: Keara Leffler - accountRef: - id: dbcaf288-2b39-4b95-8ab3-42202ab15918 - name: Business Current Account - totalAmount: 3669.52 - currency: GBP - currencyRate: 1 - date: '2022-04-25T13:04:02' - note: Payment against invoice ac3ac4dd-defe-4f9c-b7bb-2c3fe726a9d1 - lines: - - amount: 3669.52 - links: - - type: Invoice - id: ac3ac4dd-defe-4f9c-b7bb-2c3fe726a9d1 - amount: -3669.52 - currencyRate: 1 - allocatedOnDate: '2022-04-25T13:04:02' - modifiedDate: '2023-04-26T12:38:17Z' - sourceModifiedDate: '2022-04-25T13:04:02' - reference: ac3ac4dd-defe-4f9c-b7bb-2c3fe726a9d1 - metadata: - isDeleted: false - - id: 9407d5ee-893a-4547-bd89-bc7b795ee774 - customerRef: - id: d65ac505-072c-49ec-be3c-3cb74228966d - companyName: Jensen Steuber - accountRef: - id: dbcaf288-2b39-4b95-8ab3-42202ab15918 - name: Business Current Account - paymentMethodRef: - id: 8db2de81-0db4-46ee-b7f9-c711a7e89a01 - name: Cash payments-IHz - totalAmount: 1772.72 - currency: GBP - currencyRate: 1 - date: '2022-04-25T13:04:02' - note: Payment against invoice 2518ca08-5e2a-4630-8cee-a6bcd1625660 - lines: - - amount: 1772.72 - links: - - type: Invoice - id: 2518ca08-5e2a-4630-8cee-a6bcd1625660 - amount: -1772.72 - currencyRate: 1 - allocatedOnDate: '2022-04-25T13:04:02' - modifiedDate: '2023-04-26T12:38:17Z' - sourceModifiedDate: '2022-04-25T13:04:02' - reference: 2518ca08-5e2a-4630-8cee-a6bcd1625660 - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 200 - _links: - current: - href: /companies/354a121b-855f-4d25-90ad-0905b498c1c0/data/payments?page=1&pageSize=2 - self: - href: /companies/354a121b-855f-4d25-90ad-0905b498c1c0/data/payments - next: - href: /companies/354a121b-855f-4d25-90ad-0905b498c1c0/data/payments?page=2&pageSize=2 - Dynamics 365 Business Central: - value: - results: - - id: e0299ced-89d1-ea11-bbaa-000d3a2b9185 - customerRef: - id: b61217b3-89d1-ea11-bbaa-000d3a2b9185 - companyName: Trey Researches - accountRef: - id: 621217b3-89d1-ea11-bbaa-000d3a2b9185 - name: Petty Cash - totalAmount: 128.16 - currency: GBP - currencyRate: 1 - date: '2019-01-15T00:00:00' - note: Invoice 102001 - lines: - - amount: 128.16 - links: - - type: Invoice - id: 18c906bf-89d1-ea11-bbaa-000d3a2b9185 - amount: -128.16 - currencyRate: 1 - allocatedOnDate: '2019-01-15T00:00:00' - modifiedDate: '2023-03-27T14:21:27Z' - sourceModifiedDate: '0001-01-01T00:00:00Z' - reference: 'Document No: 103001' - metadata: - isDeleted: false - - id: 042a9ced-89d1-ea11-bbaa-000d3a2b9185 - customerRef: - id: b41217b3-89d1-ea11-bbaa-000d3a2b9185 - companyName: Adatum Corporation - accountRef: - id: 621217b3-89d1-ea11-bbaa-000d3a2b9185 - name: Petty Cash - totalAmount: 600.48 - currency: GBP - currencyRate: 1 - date: '2019-01-16T00:00:00' - note: Invoice 102002 - lines: - - amount: 600.48 - links: - - type: Invoice - id: 1bc906bf-89d1-ea11-bbaa-000d3a2b9185 - amount: -600.48 - currencyRate: 1 - allocatedOnDate: '2019-01-16T00:00:00' - modifiedDate: '2023-03-27T14:21:27Z' - sourceModifiedDate: '0001-01-01T00:00:00Z' - reference: 'Document No: 103002' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 249 - _links: - current: - href: /companies/d6849caf-c146-41be-8335-b73346e3bd84/data/payments?page=1&pageSize=2 - self: - href: /companies/d6849caf-c146-41be-8335-b73346e3bd84/data/payments - next: - href: /companies/d6849caf-c146-41be-8335-b73346e3bd84/data/payments?page=2&pageSize=2 - Exact (Netherlands): - value: - results: - - id: 090f5d9f-d1ce-4a61-985f-d3915618b64a_c3bf08a3-4d51-4859-acbb-5075f9484f87 - customerRef: - id: c3bf08a3-4d51-4859-acbb-5075f9484f87 - companyName: Mr Abe - accountRef: - id: 35717508-0696-4481-a32c-2835f0ed8b4e - name: Test GL account 2 - totalAmount: 229.08 - currency: EUR - currencyRate: 1 - date: '2019-11-26T00:00:00Z' - lines: - - amount: 229.08 - links: - - type: Invoice - id: f010d4df-13ea-45d1-8525-785164df7dd9 - amount: -229.08 - currencyRate: 1 - modifiedDate: '2022-10-26T13:36:13Z' - sourceModifiedDate: '2019-11-26T12:31:46Z' - reference: '19230011' - - id: 1650bb9c-5d9a-40f2-9015-0e251a12f861_c3bf08a3-4d51-4859-acbb-5075f9484f87 - customerRef: - id: c3bf08a3-4d51-4859-acbb-5075f9484f87 - companyName: Mr Abe - accountRef: - id: 35717508-0696-4481-a32c-2835f0ed8b4e - name: Test GL account 2 - totalAmount: 991.56 - currency: EUR - currencyRate: 1 - date: '2019-11-26T00:00:00Z' - lines: - - amount: 991.56 - links: - - type: Invoice - id: 013f05e6-2583-4e6d-8309-a479808cf7bf - amount: -991.56 - currencyRate: 1 - modifiedDate: '2022-10-26T13:36:13Z' - sourceModifiedDate: '2019-11-26T12:31:12Z' - reference: '19230010' - pageNumber: 1 - pageSize: 2 - totalResults: 46 - _links: - current: - href: /companies/b83b1923-4db6-45a8-a779-b4e320c15979/data/payments?page=1&pageSize=2 - self: - href: /companies/b83b1923-4db6-45a8-a779-b4e320c15979/data/payments - next: - href: /companies/b83b1923-4db6-45a8-a779-b4e320c15979/data/payments?page=2&pageSize=2 - Exact (UK): - value: - results: - - id: 14b7d656-07ee-4d70-aafa-61c0030c08ad_7e566728-a7f3-4860-a7f5-381664673287 - customerRef: - id: 7e566728-a7f3-4860-a7f5-381664673287 - companyName: Customer A - accountRef: - id: 4a4e34b5-7f62-4b64-a44a-073398b14b41 - name: Bank - totalAmount: 1 - currency: GBP - currencyRate: 1 - date: '2020-01-02T00:00:00Z' - lines: - - amount: 1 - links: - - type: Invoice - id: 6220ed43-1fec-4e17-a88f-c7ee5b949e76 - amount: -1 - currencyRate: 1 - modifiedDate: '2022-10-26T13:35:14Z' - sourceModifiedDate: '2020-01-02T10:08:27Z' - reference: '20200002' - - id: d8b093cf-3d37-405b-9e85-72552226553f_7e566728-a7f3-4860-a7f5-381664673287 - customerRef: - id: 7e566728-a7f3-4860-a7f5-381664673287 - companyName: Customer A - accountRef: - id: 4a4e34b5-7f62-4b64-a44a-073398b14b41 - name: Bank - totalAmount: 1 - currency: GBP - currencyRate: 1 - date: '2020-01-02T00:00:00Z' - lines: - - amount: 1 - links: - - type: Invoice - id: 6220ed43-1fec-4e17-a88f-c7ee5b949e76 - amount: -1 - currencyRate: 1 - modifiedDate: '2022-10-26T13:35:14Z' - sourceModifiedDate: '2020-01-02T09:58:15Z' - reference: '20200001' - pageNumber: 1 - pageSize: 2 - totalResults: 5 - _links: - current: - href: /companies/d95030cd-22b2-482b-9c7b-2980dcc2b1ce/data/payments?page=1&pageSize=2 - self: - href: /companies/d95030cd-22b2-482b-9c7b-2980dcc2b1ce/data/payments - next: - href: /companies/d95030cd-22b2-482b-9c7b-2980dcc2b1ce/data/payments?page=2&pageSize=2 - FreeAgent: - value: - results: - - id: '135234099' - customerRef: - id: '6162049' - companyName: Wintershall Holding GmbH - totalAmount: 100 - currency: GBP - date: '2017-11-23T00:00:00' - note: 'CODAT LTD ref: NOV TOPUP OTHER �100.00 - Invoice receipt against 015' - lines: - - amount: 100 - links: - - type: Invoice - id: '21973931' - amount: -100 - currencyRate: 1 - modifiedDate: '2023-04-25T14:21:37Z' - metadata: - isDeleted: false - - id: '135258250' - customerRef: - id: '6162230' - companyName: Stronachs LLP - totalAmount: 100 - currency: GBP - date: '2017-11-23T00:00:00' - note: 'CODAT LTD ref: NOV TOPUP OTHER �100.00 - Invoice receipt against 006' - lines: - - amount: 100 - links: - - type: Invoice - id: '21952246' - amount: -100 - currencyRate: 1 - modifiedDate: '2023-04-25T14:21:37Z' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 1146 - _links: - current: - href: /companies/071ad738-68f3-4561-afd0-69bab9df0803/data/payments?page=1&pageSize=2 - self: - href: /companies/071ad738-68f3-4561-afd0-69bab9df0803/data/payments - next: - href: /companies/071ad738-68f3-4561-afd0-69bab9df0803/data/payments?page=2&pageSize=2 - FreshBooks: - value: - results: - - id: '765831' - customerRef: - id: '113070' - totalAmount: 1 - currency: GBP - date: '2018-09-11T00:00:00' - note: 'Overpayment: invoice #0000003, some test' - lines: - - amount: 1 - links: - - type: PaymentOnAccount - id: '113070' - amount: -1 - currencyRate: 1 - modifiedDate: '2023-03-24T16:07:24Z' - sourceModifiedDate: '2018-09-11T06:58:46' - metadata: - isDeleted: false - - id: '988600' - customerRef: - id: '380630' - totalAmount: 5 - currency: GBP - date: '2019-01-21T00:00:00' - note: 'Overpayment: invoice #0000007' - lines: - - amount: 5 - links: - - type: PaymentOnAccount - id: '380630' - amount: -5 - currencyRate: 1 - modifiedDate: '2023-03-24T16:07:24Z' - sourceModifiedDate: '2019-01-21T10:23:59' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 239 - _links: - current: - href: /companies/3691c49e-0db4-4172-b3ab-e4084c365013/data/payments?page=1&pageSize=2 - self: - href: /companies/3691c49e-0db4-4172-b3ab-e4084c365013/data/payments - next: - href: /companies/3691c49e-0db4-4172-b3ab-e4084c365013/data/payments?page=2&pageSize=2 - KashFlow: - value: - results: - - id: '139214921' - customerRef: - id: '85743294' - companyName: Parent customer - totalAmount: 1.2 - currency: GBP - date: '2010-04-07T00:00:00' - note: '' - lines: - - amount: 1.2 - links: - - type: Invoice - id: '137055108' - amount: -1.2 - currencyRate: 1 - modifiedDate: '2022-09-30T10:29:15Z' - - id: '86861497' - customerRef: - id: '69946501' - companyName: Peter Lord - totalAmount: 10 - currency: GBP - date: '2017-05-01T00:00:00' - note: '' - lines: - - amount: 10 - links: - - type: Invoice - id: '85315064' - amount: -10 - currencyRate: 1 - modifiedDate: '2022-09-30T10:29:15Z' - pageNumber: 1 - pageSize: 2 - totalResults: 74 - _links: - current: - href: /companies/3a707a99-89da-4b16-a5d6-595333a16352/data/payments?page=1&pageSize=2 - self: - href: /companies/3a707a99-89da-4b16-a5d6-595333a16352/data/payments - next: - href: /companies/3a707a99-89da-4b16-a5d6-595333a16352/data/payments?page=2&pageSize=2 - Oracle NetSuite: - value: - results: - - id: '8828' - customerRef: - id: '417' - companyName: 10 Breww Ltd - totalAmount: 0 - currency: GBP - currencyRate: 1 - date: '2021-04-09T00:00:00' - lines: - - amount: 0 - links: - - type: Invoice - id: '8530' - amount: -16 - currencyRate: 1 - - type: CreditNote - id: '8828' - amount: 16 - currencyRate: 1 - modifiedDate: '2022-09-20T08:18:33Z' - sourceModifiedDate: '2022-02-25T10:58:37' - reference: 'Credit Memo #CM28' - - id: '428' - customerRef: - id: '417' - companyName: 10 Breww Ltd - accountRef: - id: '122' - name: Undeposited Funds - totalAmount: 90 - currency: GBP - currencyRate: 1 - date: '2021-04-20T00:00:00' - lines: - - amount: 90 - links: - - type: Invoice - id: '416' - amount: -90 - currencyRate: 1 - - amount: 10 - links: - - type: Invoice - id: '416' - amount: -10 - currencyRate: 1 - - amount: -10 - links: - - type: Other - id: '428' - amount: 10 - currencyRate: 1 - modifiedDate: '2022-09-20T08:18:33Z' - sourceModifiedDate: '2022-04-28T13:36:54' - reference: 'Payment #PYMT01' - pageNumber: 1 - pageSize: 2 - totalResults: 113 - _links: - current: - href: /companies/973341cc-ca0a-4a88-88de-e5954157818b/data/payments?page=1&pageSize=2 - self: - href: /companies/973341cc-ca0a-4a88-88de-e5954157818b/data/payments - next: - href: /companies/973341cc-ca0a-4a88-88de-e5954157818b/data/payments?page=2&pageSize=2 - QuickBooks Desktop: - value: - results: - - id: 6915-1197775450 - customerRef: - id: 220000-933272658 - companyName: 'Melton, Johnny' - accountRef: - id: 80000-933270541 - name: Undeposited Funds - totalAmount: 14488.64 - currency: GBP - currencyRate: 1 - date: '2023-01-10T00:00:00' - note: Check - 80000-933270541 - lines: - - amount: 14488.64 - links: - - type: Invoice - id: '469E-1071530054' - amount: -14488.64 - currencyRate: 1 - modifiedDate: '2023-04-26T09:08:36Z' - sourceModifiedDate: '2023-12-16T05:06:11' - reference: '19650' - metadata: - isDeleted: false - - id: 6973-1197775625 - customerRef: - id: 420000-1071522044 - companyName: 'Prentice, Adelaide' - accountRef: - id: 80000-933270541 - name: Undeposited Funds - totalAmount: 431.95 - currency: GBP - currencyRate: 1 - date: '2023-01-15T00:00:00' - note: Check - 80000-933270541 - lines: - - amount: 431.95 - links: - - type: Invoice - id: 2453-1071526256 - amount: -431.95 - currencyRate: 1 - modifiedDate: '2023-04-26T09:08:36Z' - sourceModifiedDate: '2023-12-16T05:06:11' - reference: '983409' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 108 - _links: - current: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/data/payments?page=1&pageSize=2 - self: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/data/payments - next: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/data/payments?page=2&pageSize=2 - QuickBooks Online: - value: - results: - - id: '710' - customerRef: - id: '9' - companyName: Abe - accountRef: - id: '56' - name: Undeposited Funds - totalAmount: 95.2 - currency: GBP - currencyRate: 1 - date: '2018-10-05T00:00:00' - note: Sarah's Test - lines: - - amount: 95.2 - links: - - type: Invoice - id: '688' - amount: -95.2 - currencyRate: 1 - modifiedDate: '2023-01-18T11:03:14Z' - sourceModifiedDate: '2020-08-14T09:59:29Z' - - id: '9298' - customerRef: - id: '9' - companyName: Abe - accountRef: - id: '56' - name: Undeposited Funds - totalAmount: 95.2 - currency: GBP - currencyRate: 1 - date: '2018-10-05T00:00:00' - note: Adeel Test - lines: - - amount: 95.2 - links: - - type: PaymentOnAccount - id: '9' - amount: -95.2 - currencyRate: 1 - modifiedDate: '2023-01-18T11:03:18Z' - sourceModifiedDate: '2022-06-20T13:51:36Z' - pageNumber: 1 - pageSize: 2 - totalResults: 3723 - _links: - current: - href: /companies/10818b5e-6e6a-4ed4-a1c5-3e3efe626e87/data/payments?page=1&pageSize=2 - self: - href: /companies/10818b5e-6e6a-4ed4-a1c5-3e3efe626e87/data/payments - next: - href: /companies/10818b5e-6e6a-4ed4-a1c5-3e3efe626e87/data/payments?page=2&pageSize=2 - QuickBooks Online Sandbox: - value: - results: - - id: '25' - customerRef: - id: '55' - companyName: Oxon Insurance - Holiday Party - accountRef: - id: '81' - name: Current - totalAmount: 10800 - currency: GBP - currencyRate: 1 - date: '2016-02-12T00:00:00' - note: '' - lines: - - amount: 10800 - links: - - type: PaymentOnAccount - id: '55' - amount: -10800 - currencyRate: 1 - modifiedDate: '2023-04-26T09:36:50Z' - sourceModifiedDate: '2022-02-03T12:09:35Z' - metadata: - isDeleted: false - - id: '31' - customerRef: - id: '59' - companyName: Ecker Holiday event - accountRef: - id: '81' - name: Current - totalAmount: 15615 - currency: GBP - currencyRate: 1 - date: '2016-02-12T00:00:00' - note: '' - lines: - - amount: 15615 - links: - - type: Invoice - id: '30' - amount: -15615 - currencyRate: 1 - modifiedDate: '2023-04-26T09:36:50Z' - sourceModifiedDate: '2016-09-12T16:50:17Z' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 813 - _links: - current: - href: /companies/5a7f3597-36e1-4216-86fe-289ad36088a6/data/payments?page=1&pageSize=2 - self: - href: /companies/5a7f3597-36e1-4216-86fe-289ad36088a6/data/payments - next: - href: /companies/5a7f3597-36e1-4216-86fe-289ad36088a6/data/payments?page=2&pageSize=2 - Sage 200cloud: - value: - results: - - id: '29684' - customerRef: - id: STE001 - companyName: Stevenson & Smith - totalAmount: 500 - currency: GBP - currencyRate: 1 - date: '2019-01-30T00:00:00Z' - note: Payment on Account - lines: - - amount: 12.5 - links: - - type: Invoice - id: '29676' - amount: -12.5 - currencyRate: 1 - - amount: 487.5 - links: - - type: Invoice - id: '29851' - amount: -487.5 - currencyRate: 1 - modifiedDate: '2022-10-14T09:36:05Z' - sourceModifiedDate: '2020-02-28T14:23:46Z' - reference: '5897532' - - id: '29681' - customerRef: - id: MAC001 - companyName: Macolm Hall Associates - totalAmount: 0 - currency: GBP - currencyRate: 1 - date: '2019-12-31T00:00:00Z' - note: Opening Balance - lines: - - amount: 0 - links: - - type: Invoice - id: '29745' - amount: 0.05 - currencyRate: 1 - - type: CreditNote - id: '29681' - amount: -0.05 - currencyRate: 1 - modifiedDate: '2022-10-14T09:36:05Z' - sourceModifiedDate: '2020-02-28T14:23:46Z' - reference: O/BAL - pageNumber: 1 - pageSize: 2 - totalResults: 83 - _links: - current: - href: /companies/93c21e2d-049c-4d24-b41b-57e61c30b69e/data/payments?page=1&pageSize=2 - self: - href: /companies/93c21e2d-049c-4d24-b41b-57e61c30b69e/data/payments - next: - href: /companies/93c21e2d-049c-4d24-b41b-57e61c30b69e/data/payments?page=2&pageSize=2 - Sage 50 (UK): - value: - results: - - id: '53' - customerRef: - id: STE001 - companyName: Stevenson & Smith - accountRef: - id: '1200' - name: Bank Current Account - totalAmount: 500 - currency: GBP - currencyRate: 1 - date: '2021-01-30T00:00:00' - note: 'Sales receipt on account 53 linked to sales invoice tx-3, sales invoice inv-31.' - lines: - - amount: 12.5 - links: - - type: Invoice - id: TX-3 - amount: -12.5 - currencyRate: 1 - - amount: 245.34 - links: - - type: Invoice - id: INV-31 - amount: -245.34 - currencyRate: 1 - - amount: 126.9 - links: - - type: Invoice - id: INV-31 - amount: -126.9 - currencyRate: 1 - - amount: 115.26 - links: - - type: Invoice - id: INV-31 - amount: -115.26 - currencyRate: 1 - modifiedDate: '2023-03-30T14:42:39Z' - sourceModifiedDate: '2022-11-25T09:43:54' - metadata: - isDeleted: false - - id: '8' - customerRef: - id: MAC001 - companyName: Macolm Hall Associates - accountRef: - id: '' - totalAmount: 0 - currency: GBP - currencyRate: 1 - date: '2021-12-31T00:00:00' - note: Sales credit tx-8 linked to sales invoice inv-10. - lines: - - amount: 0 - links: - - type: Invoice - id: INV-10 - amount: -0.05 - currencyRate: 1 - - type: CreditNote - id: TX-8 - amount: 0.05 - currencyRate: 1 - modifiedDate: '2023-03-30T14:42:39Z' - sourceModifiedDate: '2022-11-25T09:43:54' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 53 - _links: - current: - href: /companies/cf5f2a47-2990-4221-bae6-0c19c86ac304/data/payments?page=1&pageSize=2 - self: - href: /companies/cf5f2a47-2990-4221-bae6-0c19c86ac304/data/payments - next: - href: /companies/cf5f2a47-2990-4221-bae6-0c19c86ac304/data/payments?page=2&pageSize=2 - Sage Business Cloud Accounting: - value: - results: - - id: d39f7a5733de11e797950a57719b2edb - customerRef: - id: f4ff85ba33dd11e797950a57719b2edb - companyName: Widgets Limited - accountRef: - id: 9a25937b267a11e797950a57719b2edb - name: Current - totalAmount: -1080 - currency: GBP - currencyRate: 1 - date: '2017-05-08T00:00:00' - note: Customer refund using credit/debit card - lines: - - amount: -1080 - links: - - type: CreditNote - id: c1a0176c33de11e797950a57719b2edb - amount: 1080 - currencyRate: 1 - modifiedDate: '2022-10-24T14:55:39Z' - sourceModifiedDate: '2017-05-08T11:09:38Z' - - id: 03a5fdc8baa643fb97587033b0c4590b - customerRef: - id: 3cc3148bbd8111e8bad90617b3da4b8a - companyName: John's Test Customer - accountRef: - id: 2572c8766afc11e8aaa5027d54329956 - name: Tide Current - totalAmount: 100 - currency: GBP - currencyRate: 1 - date: '2017-11-23T00:00:00' - note: Customer receipt using credit/debit card - lines: - - amount: 100 - links: - - type: Invoice - id: ede1e735bd8111e8bad90617b3da4b8a - amount: -100 - currencyRate: 1 - modifiedDate: '2022-10-24T14:55:39Z' - sourceModifiedDate: '2019-01-17T14:14:55Z' - pageNumber: 1 - pageSize: 2 - totalResults: 2321 - _links: - current: - href: /companies/390083e2-351b-407c-a3be-55081c36c182/data/payments?page=1&pageSize=2 - self: - href: /companies/390083e2-351b-407c-a3be-55081c36c182/data/payments - next: - href: /companies/390083e2-351b-407c-a3be-55081c36c182/data/payments?page=2&pageSize=2 - Sage Intacct: - value: - results: - - id: '2918' - customerRef: - id: '12' - companyName: MK Manufacturing - accountRef: - id: '353' - name: Current Account - paymentMethodRef: - id: '1' - name: Printed Check - totalAmount: 120 - currency: GBP - date: '2021-04-22T00:00:00' - note: '' - lines: - - amount: 120 - links: - - type: Invoice - id: '2916' - amount: -120 - currencyRate: 1 - modifiedDate: '2023-04-04T16:32:02Z' - sourceModifiedDate: '2021-04-22T11:01:11Z' - metadata: - isDeleted: false - - id: '6105' - customerRef: - id: '531' - companyName: Shoprite - accountRef: - id: '353' - name: Current Account - paymentMethodRef: - id: '6' - name: Cash - totalAmount: 150 - currency: GBP - date: '2022-04-19T00:00:00' - note: '' - lines: - - amount: 150 - links: - - type: PaymentOnAccount - id: '531' - amount: -150 - currencyRate: 1 - modifiedDate: '2023-04-04T16:32:02Z' - sourceModifiedDate: '2022-04-19T13:38:45Z' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 2 - _links: - current: - href: /companies/df02b289-cb16-4964-ac4d-9fd60b04538e/data/payments?page=1&pageSize=2 - self: - href: /companies/df02b289-cb16-4964-ac4d-9fd60b04538e/data/payments - Xero: - value: - results: - - id: 65b746c8-9a5d-4a95-8096-d2316fcff592 - customerRef: - id: afd4093b-c655-4847-8ee2-10a4f2c3eae3 - companyName: Maddox Publishing Group - accountRef: - id: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - name: Business Bank Account - totalAmount: 4200 - currency: GBP - currencyRate: 1 - date: '2022-02-17T00:00:00' - lines: - - amount: 4200 - links: - - type: Invoice - id: 321bfed3-2da2-4969-9358-4de97821181b - amount: -4200 - currencyRate: 1 - modifiedDate: '2023-03-15T20:37:08Z' - sourceModifiedDate: '2021-01-02T22:50:58' - metadata: - isDeleted: false - - id: 8c481b70-b5d7-4de4-a7f7-9e161be2c472 - customerRef: - id: a871a956-05b5-4e2a-9419-7aeb478ca647 - companyName: Ridgeway University - accountRef: - id: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - name: Business Bank Account - totalAmount: 500 - currency: GBP - currencyRate: 1 - date: '2022-02-17T00:00:00' - lines: - - amount: 500 - links: - - type: Invoice - id: 4b6d0c8f-10fa-42cd-a6e5-53b175e90005 - amount: -500 - currencyRate: 1 - modifiedDate: '2023-03-15T20:37:08Z' - sourceModifiedDate: '2021-01-02T22:51:43' - reference: '' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 30 - _links: - current: - href: /companies/5ced9667-a310-443a-a711-958d36377141/data/payments?page=1&pageSize=2 - self: - href: /companies/5ced9667-a310-443a-a711-958d36377141/data/payments - next: - href: /companies/5ced9667-a310-443a-a711-958d36377141/data/payments?page=2&pageSize=2 - Zoho Books: - value: - results: - - id: '104957000000070175' - customerRef: - id: '104957000000037097' - companyName: Test Company - accountRef: - id: '104957000000060010' - name: Abdi Test - totalAmount: 9001 - currency: GBP - currencyRate: 1 - date: '2020-02-06T00:00:00' - note: Cheque deposit - lines: - - amount: 9001 - links: - - type: Invoice - id: '104957000000038052' - amount: -9001 - currencyRate: 1 - modifiedDate: '2022-10-03T08:41:17Z' - reference: '4' - - id: '104957000000067014' - customerRef: - id: '104957000000037097' - companyName: Test Company - accountRef: - id: '104957000000060010' - name: Abdi Test - totalAmount: 9001 - currency: GBP - currencyRate: 1 - date: '2020-02-14T00:00:00' - note: '' - lines: - - amount: 9001 - links: - - type: Invoice - id: '104957000000038106' - amount: -9001 - currencyRate: 1 - modifiedDate: '2022-10-03T08:41:17Z' - reference: '1' - pageNumber: 1 - pageSize: 2 - totalResults: 33 - _links: - current: - href: /companies/d0b68840-db50-4bc3-b88c-96e225333fea/data/payments?page=1&pageSize=2 - self: - href: /companies/d0b68840-db50-4bc3-b88c-96e225333fea/data/payments - next: - href: /companies/d0b68840-db50-4bc3-b88c-96e225333fea/data/payments?page=2&pageSize=2 - '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' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - description: "The *List payments* endpoint returns a list of [payments](https://docs.codat.io/lending-api#/schemas/Payment) for a given company's connection.\n\n[Payments](https://docs.codat.io/lending-api#/schemas/Payment) represent an allocation of money within any customer accounts receivable account.\n\nBefore using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data).\n " - operationId: list-accounting-payments - x-speakeasy-group: accounts-receivable.payments - '/companies/{companyId}/data/payments/{paymentId}': - parameters: - - $ref: '#/components/parameters/companyId' - get: - tags: - - Accounts receivable - parameters: - - $ref: '#/components/parameters/paymentId' - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/AccountingPayment' - examples: - Clear Books: - value: - id: 7ba4fc1b-e248-49ba-8bf8-0813d7f203a8 - customerRef: - id: a82042f1-a005-4ca5-bfd3-5bc237123aa5 - companyName: Keara Leffler - accountRef: - id: dbcaf288-2b39-4b95-8ab3-42202ab15918 - name: Business Current Account - totalAmount: 3669.52 - currency: GBP - currencyRate: 1 - date: '2022-04-25T13:04:02' - note: Payment against invoice ac3ac4dd-defe-4f9c-b7bb-2c3fe726a9d1 - lines: - - amount: 3669.52 - links: - - type: Invoice - id: ac3ac4dd-defe-4f9c-b7bb-2c3fe726a9d1 - amount: -3669.52 - currencyRate: 1 - allocatedOnDate: '2022-04-25T13:04:02' - modifiedDate: '2023-04-26T12:38:17Z' - sourceModifiedDate: '2022-04-25T13:04:02' - reference: ac3ac4dd-defe-4f9c-b7bb-2c3fe726a9d1 - metadata: - isDeleted: false - Dynamics 365 Business Central: - value: - id: e0299ced-89d1-ea11-bbaa-000d3a2b9185 - customerRef: - id: b61217b3-89d1-ea11-bbaa-000d3a2b9185 - companyName: Trey Researches - accountRef: - id: 621217b3-89d1-ea11-bbaa-000d3a2b9185 - name: Petty Cash - totalAmount: 128.16 - currency: GBP - currencyRate: 1 - date: '2019-01-15T00:00:00' - note: Invoice 102001 - lines: - - amount: 128.16 - links: - - type: Invoice - id: 18c906bf-89d1-ea11-bbaa-000d3a2b9185 - amount: -128.16 - currencyRate: 1 - allocatedOnDate: '2019-01-15T00:00:00' - modifiedDate: '2023-03-27T14:21:27Z' - sourceModifiedDate: '0001-01-01T00:00:00Z' - reference: 'Document No: 103001' - metadata: - isDeleted: false - Exact (Netherlands): - value: - id: 090f5d9f-d1ce-4a61-985f-d3915618b64a_c3bf08a3-4d51-4859-acbb-5075f9484f87 - customerRef: - id: c3bf08a3-4d51-4859-acbb-5075f9484f87 - companyName: Mr Abe - accountRef: - id: 35717508-0696-4481-a32c-2835f0ed8b4e - name: Test GL account 2 - totalAmount: 229.08 - currency: EUR - currencyRate: 1 - date: '2019-11-26T00:00:00Z' - lines: - - amount: 229.08 - links: - - type: Invoice - id: f010d4df-13ea-45d1-8525-785164df7dd9 - amount: -229.08 - currencyRate: 1 - modifiedDate: '2022-10-26T13:36:13Z' - sourceModifiedDate: '2019-11-26T12:31:46Z' - reference: '19230011' - Exact (UK): - value: - id: 14b7d656-07ee-4d70-aafa-61c0030c08ad_7e566728-a7f3-4860-a7f5-381664673287 - customerRef: - id: 7e566728-a7f3-4860-a7f5-381664673287 - companyName: Customer A - accountRef: - id: 4a4e34b5-7f62-4b64-a44a-073398b14b41 - name: Bank - totalAmount: 1 - currency: GBP - currencyRate: 1 - date: '2020-01-02T00:00:00Z' - lines: - - amount: 1 - links: - - type: Invoice - id: 6220ed43-1fec-4e17-a88f-c7ee5b949e76 - amount: -1 - currencyRate: 1 - modifiedDate: '2022-10-26T13:35:14Z' - sourceModifiedDate: '2020-01-02T10:08:27Z' - reference: '20200002' - FreeAgent: - value: - id: '135234099' - customerRef: - id: '6162049' - companyName: Wintershall Holding GmbH - totalAmount: 100 - currency: GBP - date: '2017-11-23T00:00:00' - note: 'CODAT LTD ref: NOV TOPUP OTHER �100.00 - Invoice receipt against 015' - lines: - - amount: 100 - links: - - type: Invoice - id: '21973931' - amount: -100 - currencyRate: 1 - modifiedDate: '2023-04-25T14:21:37Z' - metadata: - isDeleted: false - FreshBooks: - value: - id: '765831' - customerRef: - id: '113070' - totalAmount: 1 - currency: GBP - date: '2018-09-11T00:00:00' - note: 'Overpayment: invoice #0000003, some test' - lines: - - amount: 1 - links: - - type: PaymentOnAccount - id: '113070' - amount: -1 - currencyRate: 1 - modifiedDate: '2023-03-24T16:07:24Z' - sourceModifiedDate: '2018-09-11T06:58:46' - metadata: - isDeleted: false - KashFlow: - value: - id: '139214921' - customerRef: - id: '85743294' - companyName: Parent customer - totalAmount: 1.2 - currency: GBP - date: '2010-04-07T00:00:00' - note: '' - lines: - - amount: 1.2 - links: - - type: Invoice - id: '137055108' - amount: -1.2 - currencyRate: 1 - modifiedDate: '2022-09-30T10:29:15Z' - Oracle NetSuite: - value: - id: '8828' - customerRef: - id: '417' - companyName: 10 Breww Ltd - totalAmount: 0 - currency: GBP - currencyRate: 1 - date: '2021-04-09T00:00:00' - lines: - - amount: 0 - links: - - type: Invoice - id: '8530' - amount: -16 - currencyRate: 1 - - type: CreditNote - id: '8828' - amount: 16 - currencyRate: 1 - modifiedDate: '2022-09-20T08:18:33Z' - sourceModifiedDate: '2022-02-25T10:58:37' - reference: 'Credit Memo #CM28' - QuickBooks Desktop: - value: - id: 6915-1197775450 - customerRef: - id: 220000-933272658 - companyName: 'Melton, Johnny' - accountRef: - id: 80000-933270541 - name: Undeposited Funds - totalAmount: 14488.64 - currency: GBP - currencyRate: 1 - date: '2023-01-10T00:00:00' - note: Check - 80000-933270541 - lines: - - amount: 14488.64 - links: - - type: Invoice - id: '469E-1071530054' - amount: -14488.64 - currencyRate: 1 - modifiedDate: '2023-04-26T09:08:36Z' - sourceModifiedDate: '2023-12-16T05:06:11' - reference: '19650' - metadata: - isDeleted: false - QuickBooks Online: - value: - id: '710' - customerRef: - id: '9' - companyName: Abe - accountRef: - id: '56' - name: Undeposited Funds - totalAmount: 95.2 - currency: GBP - currencyRate: 1 - date: '2018-10-05T00:00:00' - note: Sarah's Test - lines: - - amount: 95.2 - links: - - type: Invoice - id: '688' - amount: -95.2 - currencyRate: 1 - modifiedDate: '2023-01-18T11:03:14Z' - sourceModifiedDate: '2020-08-14T09:59:29Z' - QuickBooks Online Sandbox: - value: - id: '25' - customerRef: - id: '55' - companyName: Oxon Insurance - Holiday Party - accountRef: - id: '81' - name: Current - totalAmount: 10800 - currency: GBP - currencyRate: 1 - date: '2016-02-12T00:00:00' - note: '' - lines: - - amount: 10800 - links: - - type: PaymentOnAccount - id: '55' - amount: -10800 - currencyRate: 1 - modifiedDate: '2023-04-26T09:36:50Z' - sourceModifiedDate: '2022-02-03T12:09:35Z' - metadata: - isDeleted: false - Sage 200cloud: - value: - id: '29684' - customerRef: - id: STE001 - companyName: Stevenson & Smith - totalAmount: 500 - currency: GBP - currencyRate: 1 - date: '2019-01-30T00:00:00Z' - note: Payment on Account - lines: - - amount: 12.5 - links: - - type: Invoice - id: '29676' - amount: -12.5 - currencyRate: 1 - - amount: 487.5 - links: - - type: Invoice - id: '29851' - amount: -487.5 - currencyRate: 1 - modifiedDate: '2022-10-14T09:36:05Z' - sourceModifiedDate: '2020-02-28T14:23:46Z' - reference: '5897532' - Sage 50 (UK): - value: - id: '53' - customerRef: - id: STE001 - companyName: Stevenson & Smith - accountRef: - id: '1200' - name: Bank Current Account - totalAmount: 500 - currency: GBP - currencyRate: 1 - date: '2021-01-30T00:00:00' - note: 'Sales receipt on account 53 linked to sales invoice tx-3, sales invoice inv-31.' - lines: - - amount: 12.5 - links: - - type: Invoice - id: TX-3 - amount: -12.5 - currencyRate: 1 - - amount: 245.34 - links: - - type: Invoice - id: INV-31 - amount: -245.34 - currencyRate: 1 - - amount: 126.9 - links: - - type: Invoice - id: INV-31 - amount: -126.9 - currencyRate: 1 - - amount: 115.26 - links: - - type: Invoice - id: INV-31 - amount: -115.26 - currencyRate: 1 - modifiedDate: '2023-03-30T14:42:39Z' - sourceModifiedDate: '2022-11-25T09:43:54' - metadata: - isDeleted: false - Sage Business Cloud Accounting: - value: - id: d39f7a5733de11e797950a57719b2edb - customerRef: - id: f4ff85ba33dd11e797950a57719b2edb - companyName: Widgets Limited - accountRef: - id: 9a25937b267a11e797950a57719b2edb - name: Current - totalAmount: -1080 - currency: GBP - currencyRate: 1 - date: '2017-05-08T00:00:00' - note: Customer refund using credit/debit card - lines: - - amount: -1080 - links: - - type: CreditNote - id: c1a0176c33de11e797950a57719b2edb - amount: 1080 - currencyRate: 1 - modifiedDate: '2022-10-24T14:55:39Z' - sourceModifiedDate: '2017-05-08T11:09:38Z' - Sage Intacct: - value: - id: '2918' - customerRef: - id: '12' - companyName: MK Manufacturing - accountRef: - id: '353' - name: Current Account - paymentMethodRef: - id: '1' - name: Printed Check - totalAmount: 120 - currency: GBP - date: '2021-04-22T00:00:00' - note: '' - lines: - - amount: 120 - links: - - type: Invoice - id: '2916' - amount: -120 - currencyRate: 1 - modifiedDate: '2023-04-04T16:32:02Z' - sourceModifiedDate: '2021-04-22T11:01:11Z' - metadata: - isDeleted: false - Xero: - value: - id: 65b746c8-9a5d-4a95-8096-d2316fcff592 - customerRef: - id: afd4093b-c655-4847-8ee2-10a4f2c3eae3 - companyName: Maddox Publishing Group - accountRef: - id: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - name: Business Bank Account - totalAmount: 4200 - currency: GBP - currencyRate: 1 - date: '2022-02-17T00:00:00' - lines: - - amount: 4200 - links: - - type: Invoice - id: 321bfed3-2da2-4969-9358-4de97821181b - amount: -4200 - currencyRate: 1 - modifiedDate: '2023-03-15T20:37:08Z' - sourceModifiedDate: '2021-01-02T22:50:58' - metadata: - isDeleted: false - Zoho Books: - value: - id: '104957000000070175' - customerRef: - id: '104957000000037097' - companyName: Test Company - accountRef: - id: '104957000000060010' - name: Abdi Test - totalAmount: 9001 - currency: GBP - currencyRate: 1 - date: '2020-02-06T00:00:00' - note: Cheque deposit - lines: - - amount: 9001 - links: - - type: Invoice - id: '104957000000038052' - amount: -9001 - currencyRate: 1 - modifiedDate: '2022-10-03T08:41:17Z' - reference: '4' - '401': - $ref: '#/components/responses/Unauthorized' - '402': - $ref: '#/components/responses/Payment-Required' - '403': - $ref: '#/components/responses/Forbidden' - '404': - $ref: '#/components/responses/Not-Found' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - summary: Get payment - description: | - The *Get payment* endpoint returns a single payment for a given paymentId. - - [Payments](https://docs.codat.io/lending-api#/schemas/Payment) represent an allocation of money within any customer accounts receivable account. - - Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data). - operationId: get-accounting-payment - x-speakeasy-group: accounts-receivable.payments - '/companies/{companyId}/data/suppliers': - parameters: - - $ref: '#/components/parameters/companyId' - get: - tags: - - Accounts payable - summary: List suppliers - 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/AccountingSuppliers' - examples: - Clear Books: - value: - results: - - id: owQ2Gqgj9f - supplierName: Abshire - Kshlerin - contactName: Faye Hansen - emailAddress: hello@Abshire-Kshlerin.info - phone: 01338 858162 - addresses: - - type: Delivery - line1: Suite 431 - line2: 289 Giles Lake - city: Cesarmouth - region: Northern Ireland - country: United Kingdom - postalCode: BG40 9GP - registrationNumber: VYL1XZXR - taxNumber: '1396267523.0914588' - status: Active - modifiedDate: '2023-04-26T12:38:17Z' - sourceModifiedDate: '1660-11-28T23:18:00' - defaultCurrency: GBP - metadata: - isDeleted: false - - id: FyUkHbZxhn - supplierName: Arjun Kuvalis - contactName: Werner Langworth - emailAddress: Arjun34@hotmail.com - phone: 0116 796 3163 - addresses: - - type: Delivery - line1: Suite 214 - line2: 8439 Lueilwitz Passage - city: Fernandohaven - region: Northern Ireland - country: United Kingdom - postalCode: JG04 7PV - - type: Delivery - line1: Suite 096 - line2: 864 Halie Course - city: Juliochester - region: England - country: United Kingdom - postalCode: DZ8 4BF - - type: Delivery - line1: Suite 001 - line2: 416 Stokes Fords - city: Naderborough - region: Wales - country: United Kingdom - postalCode: XG25 0XX - registrationNumber: NI7JEJVM - taxNumber: '7505220209.583549' - status: Active - modifiedDate: '2023-04-26T12:38:17Z' - sourceModifiedDate: '0177-04-27T11:56:00' - defaultCurrency: GBP - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 100 - _links: - current: - href: /companies/354a121b-855f-4d25-90ad-0905b498c1c0/data/suppliers?page=1&pageSize=2 - self: - href: /companies/354a121b-855f-4d25-90ad-0905b498c1c0/data/suppliers - next: - href: /companies/354a121b-855f-4d25-90ad-0905b498c1c0/data/suppliers?page=2&pageSize=2 - Dynamics 365 Business Central: - value: - results: - - id: 78623f13-931e-eb11-bbf8-0022481b3585 - supplierName: '' - contactName: '' - emailAddress: '' - phone: '' - addresses: - - type: Billing - line1: '' - line2: '' - city: '' - region: '' - country: GB - postalCode: '' - taxNumber: '' - status: Active - modifiedDate: '2023-03-27T14:21:12Z' - sourceModifiedDate: '2020-11-04T11:44:22Z' - defaultCurrency: GBP - metadata: - isDeleted: false - - id: be49ec62-6754-ed11-946f-0022481b67d1 - supplierName: '' - contactName: '' - emailAddress: '' - phone: '' - addresses: - - type: Billing - line1: '' - line2: '' - city: '' - region: '' - country: GB - postalCode: '' - taxNumber: '' - status: Active - modifiedDate: '2023-03-27T14:21:12Z' - sourceModifiedDate: '2022-10-25T13:17:36Z' - defaultCurrency: GBP - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 31 - _links: - current: - href: /companies/d6849caf-c146-41be-8335-b73346e3bd84/data/suppliers?page=1&pageSize=2 - self: - href: /companies/d6849caf-c146-41be-8335-b73346e3bd84/data/suppliers - next: - href: /companies/d6849caf-c146-41be-8335-b73346e3bd84/data/suppliers?page=2&pageSize=2 - Exact (Netherlands): - value: - results: - - id: 3150917c-1d92-4d77-9018-31b5c4758ca9 - supplierName: Abe - contactName: Kelly's Contact Name - emailAddress: sales@kellysupplies.com - phone: 07999 999999 - addresses: - - type: Billing - line1: Unit 51 - city: Bakersfield - region: California - country: US - postalCode: '933081' - registrationNumber: '8409314368' - status: Active - modifiedDate: '2022-10-26T13:32:05Z' - sourceModifiedDate: '2022-07-15T12:01:15Z' - defaultCurrency: EUR - - id: 00014c12-2616-481a-a2e8-31bdf2497775 - supplierName: Ann's test supplier 2 - contactName: Ann's contact name - emailAddress: anna@anna888888.com - phone: '55555555' - addresses: - - type: Billing - line1: line1 - line2: line2 - city: city - region: region - country: RU - postalCode: postal - registrationNumber: '55566677788899944455' - taxNumber: RU4444444 - status: Active - modifiedDate: '2022-10-26T13:32:05Z' - sourceModifiedDate: '2021-06-09T12:04:08Z' - defaultCurrency: USD - pageNumber: 1 - pageSize: 2 - totalResults: 73 - _links: - current: - href: /companies/b83b1923-4db6-45a8-a779-b4e320c15979/data/suppliers?page=1&pageSize=2 - self: - href: /companies/b83b1923-4db6-45a8-a779-b4e320c15979/data/suppliers - next: - href: /companies/b83b1923-4db6-45a8-a779-b4e320c15979/data/suppliers?page=2&pageSize=2 - Exact (UK): - value: - results: - - id: 0185fea2-0298-445b-909a-0db685118a9e - supplierName: a - addresses: - - type: Billing - country: GB - status: Active - modifiedDate: '2022-10-26T13:33:13Z' - sourceModifiedDate: '2017-08-02T10:58:54Z' - defaultCurrency: GBP - - id: 64ae712f-4155-48bb-9fce-98232c51d979 - supplierName: aa - addresses: - - type: Billing - country: GB - status: Active - modifiedDate: '2022-10-26T13:33:13Z' - sourceModifiedDate: '2020-05-01T14:05:46Z' - defaultCurrency: GBP - pageNumber: 1 - pageSize: 2 - totalResults: 118 - _links: - current: - href: /companies/d95030cd-22b2-482b-9c7b-2980dcc2b1ce/data/suppliers?page=1&pageSize=2 - self: - href: /companies/d95030cd-22b2-482b-9c7b-2980dcc2b1ce/data/suppliers - next: - href: /companies/d95030cd-22b2-482b-9c7b-2980dcc2b1ce/data/suppliers?page=2&pageSize=2 - FreeAgent: - value: - results: - - id: '11526230' - supplierName: '-' - contactName: Test 1 - addresses: - - type: Billing - line1: 1 Place House - line2: '' - city: London - country: United Kingdom - postalCode: WC1X 1AH - status: Active - modifiedDate: '2023-04-25T14:19:08Z' - sourceModifiedDate: '2023-04-17T06:02:46' - metadata: - isDeleted: false - - id: '9677150' - supplierName: '-' - contactName: Test 1 - addresses: - - type: Billing - line1: 1 Place House - line2: '' - city: London - country: United Kingdom - postalCode: WC1X 1AH - status: Active - modifiedDate: '2023-04-25T14:19:08Z' - sourceModifiedDate: '2023-04-24T06:19:23' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 159 - _links: - current: - href: /companies/071ad738-68f3-4561-afd0-69bab9df0803/data/suppliers?page=1&pageSize=2 - self: - href: /companies/071ad738-68f3-4561-afd0-69bab9df0803/data/suppliers - next: - href: /companies/071ad738-68f3-4561-afd0-69bab9df0803/data/suppliers?page=2&pageSize=2 - FreshBooks: - value: - results: - - id: api vendor - supplierName: api vendor - addresses: [] - status: Active - modifiedDate: '2023-03-24T16:07:25Z' - metadata: - isDeleted: false - - id: DUndsRykrmy8kFsc+FvYk29YkJze4zSjGecoF4YcUEhVU7auJ5JkQA0VjXptZ7XQ+D4n6WoxFIkaGY2V/t4flA== - supplierName: 'Chekko Test merchant 100 - Test Very long name: ORIG CO NAME:AMERICAN EXPRESS ORIG ID:9493560001 DESC DATE:220307 CO ENTRY DESCR:ACH PMT SEC:CCD TRACE#:021000023255482 EED:220307 IND ID:A4670 IND NAME:Rick Sanchez' - addresses: [] - status: Active - modifiedDate: '2023-03-24T16:07:25Z' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 7 - _links: - current: - href: /companies/3691c49e-0db4-4172-b3ab-e4084c365013/data/suppliers?page=1&pageSize=2 - self: - href: /companies/3691c49e-0db4-4172-b3ab-e4084c365013/data/suppliers - next: - href: /companies/3691c49e-0db4-4172-b3ab-e4084c365013/data/suppliers?page=2&pageSize=2 - KashFlow: - value: - results: - - id: '6202387' - supplierName: Dell - contactName: '' - emailAddress: '' - phone: '' - addresses: [] - taxNumber: '' - status: Unknown - modifiedDate: '2022-09-30T10:29:15Z' - sourceModifiedDate: '2017-05-09T00:00:00' - - id: '9338173' - supplierName: Home - contactName: '' - emailAddress: '' - phone: '' - addresses: [] - taxNumber: '' - status: Unknown - modifiedDate: '2022-09-30T10:29:15Z' - sourceModifiedDate: '1990-01-01T00:00:00' - pageNumber: 1 - pageSize: 2 - totalResults: 7 - _links: - current: - href: /companies/3a707a99-89da-4b16-a5d6-595333a16352/data/suppliers?page=1&pageSize=2 - self: - href: /companies/3a707a99-89da-4b16-a5d6-595333a16352/data/suppliers - next: - href: /companies/3a707a99-89da-4b16-a5d6-595333a16352/data/suppliers?page=2&pageSize=2 - Oracle NetSuite: - value: - results: - - id: '779' - supplierName: Test Vendor - contactName: Test Vendor - emailAddress: '' - phone: '' - addresses: [] - status: Active - modifiedDate: '2023-01-30T14:47:02Z' - sourceModifiedDate: '2022-02-04T14:24:43' - defaultCurrency: GBP - - id: '726' - supplierName: Vendor -.A - contactName: Vendor -.A - emailAddress: '' - phone: '' - addresses: [] - status: Active - modifiedDate: '2023-01-30T14:47:02Z' - sourceModifiedDate: '2021-03-26T09:53:15' - defaultCurrency: GBP - pageNumber: 1 - pageSize: 2 - totalResults: 6 - _links: - current: - href: /companies/d5074b08-6a34-4b06-a742-236edf5dc4f1/data/suppliers?page=1&pageSize=2 - self: - href: /companies/d5074b08-6a34-4b06-a742-236edf5dc4f1/data/suppliers - next: - href: /companies/d5074b08-6a34-4b06-a742-236edf5dc4f1/data/suppliers?page=2&pageSize=2 - QuickBooks Desktop: - value: - results: - - id: A60000-1197760912 - supplierName: A Cheung Limited - contactName: Angela Cheung - emailAddress: AC@CheungLimited.com - phone: 510 555 5723 - addresses: - - type: Billing - line1: 'A Cheung Limited, Angela Cheung' - line2: 3818 Bear Rd. West - city: Berkeley - region: CA - postalCode: '94688' - status: Active - modifiedDate: '2023-04-26T09:09:03Z' - sourceModifiedDate: '2023-12-16T05:06:44' - defaultCurrency: GBP - metadata: - isDeleted: false - - id: A40000-1197774038 - supplierName: Bank of Anycity - contactName: Lisa D. Holzhauser - emailAddress: lisah@samplename.com - phone: 415-555-9135 - addresses: - - type: Billing - line1: 'Bank of Anycity, Lisa Holzhauser' - line2: 1935 Main Street - city: Middlefield - region: CA - postalCode: '94482' - status: Active - modifiedDate: '2023-04-26T09:09:03Z' - sourceModifiedDate: '2023-12-16T05:06:44' - defaultCurrency: GBP - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 54 - _links: - current: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/data/suppliers?page=1&pageSize=2 - self: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/data/suppliers - next: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/data/suppliers?page=2&pageSize=2 - QuickBooks Online: - value: - results: - - id: '41' - supplierName: AI Support - contactName: AI Support - addresses: - - type: Billing - line1: test - region: string - country: Djibouti - status: Active - modifiedDate: '2023-01-18T11:02:36Z' - sourceModifiedDate: '2022-12-07T10:48:18Z' - defaultCurrency: GBP - - id: '42' - supplierName: AI Support 2 - contactName: AI Support 2 - addresses: - - type: Billing - line1: test - region: string - country: DJ - status: Active - modifiedDate: '2023-01-18T11:02:36Z' - sourceModifiedDate: '2021-08-31T08:45:02Z' - defaultCurrency: GBP - pageNumber: 1 - pageSize: 2 - totalResults: 23 - _links: - current: - href: /companies/10818b5e-6e6a-4ed4-a1c5-3e3efe626e87/data/suppliers?page=1&pageSize=2 - self: - href: /companies/10818b5e-6e6a-4ed4-a1c5-3e3efe626e87/data/suppliers - next: - href: /companies/10818b5e-6e6a-4ed4-a1c5-3e3efe626e87/data/suppliers?page=2&pageSize=2 - QuickBooks Online Sandbox: - value: - results: - - id: '129' - supplierName: Ally Johnson - contactName: Miss Smith - phone: 0728 38474 - addresses: - - type: Billing - line1: 100 London Road - line2: Angel - city: London - region: Greater London - country: England - postalCode: EC1M - status: Active - modifiedDate: '2023-04-26T09:35:55Z' - sourceModifiedDate: '2023-04-13T01:51:08Z' - defaultCurrency: GBP - metadata: - isDeleted: false - - id: '88' - supplierName: Andrew Haberbosch - addresses: [] - status: Active - modifiedDate: '2023-04-26T09:35:55Z' - sourceModifiedDate: '2022-07-06T15:55:28Z' - defaultCurrency: GBP - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 64 - _links: - current: - href: /companies/5a7f3597-36e1-4216-86fe-289ad36088a6/data/suppliers?page=1&pageSize=2 - self: - href: /companies/5a7f3597-36e1-4216-86fe-289ad36088a6/data/suppliers - next: - href: /companies/5a7f3597-36e1-4216-86fe-289ad36088a6/data/suppliers?page=2&pageSize=2 - Sage 200cloud: - value: - results: - - id: '776' - supplierName: Aaren - contactName: '' - emailAddress: '' - phone: '' - addresses: - - type: Unknown - line1: '' - line2: '' - city: '' - region: '' - country: Great Britain - postalCode: '' - taxNumber: '' - status: Archived - modifiedDate: '2022-10-14T09:35:58Z' - defaultCurrency: GBP - metadata: - isDeleted: true - - id: '914' - supplierName: Aaren - contactName: '' - emailAddress: '' - phone: '' - addresses: - - type: Unknown - line1: '' - line2: '' - city: '' - region: '' - country: Great Britain - postalCode: '' - taxNumber: '' - status: Archived - modifiedDate: '2022-10-14T09:35:58Z' - defaultCurrency: GBP - metadata: - isDeleted: true - pageNumber: 1 - pageSize: 2 - totalResults: 943 - _links: - current: - href: /companies/93c21e2d-049c-4d24-b41b-57e61c30b69e/data/suppliers?page=1&pageSize=2 - self: - href: /companies/93c21e2d-049c-4d24-b41b-57e61c30b69e/data/suppliers - next: - href: /companies/93c21e2d-049c-4d24-b41b-57e61c30b69e/data/suppliers?page=2&pageSize=2 - Sage 50 (UK): - value: - results: - - id: CON001 - supplierName: Concept Stationery Supplies - contactName: Mark Ramsay - emailAddress: newbusinessadvice@sage.com - phone: 0191 643 4343 - addresses: - - type: Delivery - line1: 66 New Street - line2: Ridgeway - city: Newcastle Upon Tyne - region: '' - country: GB - postalCode: NE1 4GF - - type: Unknown - line1: 66 New Street - line2: Ridgeway - city: Newcastle upon Tyne - region: '' - country: GB - postalCode: NE1 4GF - taxNumber: GB988 3453 23 - status: Active - modifiedDate: '2023-03-30T14:42:38Z' - sourceModifiedDate: '2022-11-25T09:43:54Z' - defaultCurrency: GBP - metadata: - isDeleted: false - - id: MCN001 - supplierName: McNally Computer Supplies - contactName: Stuart Lynn - emailAddress: newbusinessadvice@sage.com - phone: 0191 415 3434 - addresses: - - type: Delivery - line1: Station Lane Ind Est - line2: Birtley - city: Chester le Street - region: County Durham - country: GB - postalCode: DH1 3RG - - type: Unknown - line1: Station Lane Ind Est - line2: Birtley - city: Chester le Street - region: County Durham - country: GB - postalCode: DH1 3RG - taxNumber: GB455 2385 34 - status: Active - modifiedDate: '2023-03-30T14:42:38Z' - sourceModifiedDate: '2022-12-05T13:37:26Z' - defaultCurrency: GBP - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 15 - _links: - current: - href: /companies/cf5f2a47-2990-4221-bae6-0c19c86ac304/data/suppliers?page=1&pageSize=2 - self: - href: /companies/cf5f2a47-2990-4221-bae6-0c19c86ac304/data/suppliers - next: - href: /companies/cf5f2a47-2990-4221-bae6-0c19c86ac304/data/suppliers?page=2&pageSize=2 - Sage Business Cloud Accounting: - value: - results: - - id: 65179671e9ef424caff8b9006cd111c8 - supplierName: 5555 Abdul's Test Name - contactName: Main Contact - addresses: - - type: Billing - country: United Kingdom (GB) - status: Active - modifiedDate: '2022-10-24T14:52:54Z' - sourceModifiedDate: '2020-02-25T17:23:33Z' - defaultCurrency: GBP - - id: cf7f44d693904944a6a7cf3de0887964 - supplierName: Abdi Supplier - contactName: Abdi - emailAddress: abdisupplier@company.com - addresses: - - type: Billing - line1: 1 Place House - city: London - country: United Kingdom (GB) - postalCode: WC1X 1AH - status: Active - modifiedDate: '2022-10-24T14:52:54Z' - sourceModifiedDate: '2020-02-13T10:38:19Z' - defaultCurrency: GBP - pageNumber: 1 - pageSize: 2 - totalResults: 64 - _links: - current: - href: /companies/390083e2-351b-407c-a3be-55081c36c182/data/suppliers?page=1&pageSize=2 - self: - href: /companies/390083e2-351b-407c-a3be-55081c36c182/data/suppliers - next: - href: /companies/390083e2-351b-407c-a3be-55081c36c182/data/suppliers?page=2&pageSize=2 - Sage Intacct: - value: - results: - - id: '3' - supplierName: ADP - contactName: 'Jones, William' - phone: 214-760-9491 - addresses: - - type: Unknown - line1: 208 S Akard St - line2: '' - city: Dallas - region: TX - country: United States - postalCode: '75265' - registrationNumber: '' - taxNumber: 85-3678274 - status: Active - modifiedDate: '2023-04-04T16:32:20Z' - sourceModifiedDate: '2023-02-16T09:48:27' - defaultCurrency: USD - metadata: - isDeleted: false - - id: '29' - supplierName: Advisor Printing - contactName: 'Roach, Nathan' - phone: 130-202-4796 - addresses: - - type: Unknown - line1: 5 Carey Hill - line2: '' - city: Drayton Valley - region: Alberta - country: Canada - postalCode: G8V - registrationNumber: '' - taxNumber: '' - status: Active - modifiedDate: '2023-04-04T16:32:20Z' - sourceModifiedDate: '2022-06-15T11:38:29' - defaultCurrency: CAD - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 77 - _links: - current: - href: /companies/df02b289-cb16-4964-ac4d-9fd60b04538e/data/suppliers?page=1&pageSize=2 - self: - href: /companies/df02b289-cb16-4964-ac4d-9fd60b04538e/data/suppliers - next: - href: /companies/df02b289-cb16-4964-ac4d-9fd60b04538e/data/suppliers?page=2&pageSize=2 - Wave: - value: - results: - - id: QnVzaW5lc3M6ZTI0OGQyZDctMWE5Ni00YTk4LWFkOTEtMDdlMGYyMmNhNmE2O1ZlbmRvcjo2NjA0Nzk0 - supplierName: Computer Shop - contactName: '' - emailAddress: '' - addresses: [] - status: Active - modifiedDate: '2022-11-16T18:15:24Z' - sourceModifiedDate: '2020-04-07T13:28:02Z' - defaultCurrency: GBP - - id: QnVzaW5lc3M6ZTI0OGQyZDctMWE5Ni00YTk4LWFkOTEtMDdlMGYyMmNhNmE2O1ZlbmRvcjo2NjA0NzQx - supplierName: Flour Mill - contactName: '' - emailAddress: '' - addresses: [] - status: Active - modifiedDate: '2022-11-16T18:15:24Z' - sourceModifiedDate: '2020-04-07T13:12:40Z' - defaultCurrency: GBP - pageNumber: 1 - pageSize: 2 - totalResults: 9 - _links: - current: - href: /companies/0b22b59d-b4e5-4c35-b03f-88bbbcb41256/data/suppliers?page=1&pageSize=2 - self: - href: /companies/0b22b59d-b4e5-4c35-b03f-88bbbcb41256/data/suppliers - next: - href: /companies/0b22b59d-b4e5-4c35-b03f-88bbbcb41256/data/suppliers?page=2&pageSize=2 - Xero: - value: - results: - - id: e4c9d0e2-c285-4e85-b579-6d28b180c730 - supplierName: 24 Locks - emailAddress: '' - addresses: [] - status: Active - modifiedDate: '2023-03-15T20:36:09Z' - sourceModifiedDate: '2023-02-17T18:03:42' - metadata: - isDeleted: false - - id: bab779bc-c5fb-42cb-a888-953e8309711c - supplierName: 7-Eleven - emailAddress: '' - addresses: [] - status: Active - modifiedDate: '2023-03-15T20:36:09Z' - sourceModifiedDate: '2023-02-17T18:03:42' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 48 - _links: - current: - href: /companies/5ced9667-a310-443a-a711-958d36377141/data/suppliers?page=1&pageSize=2 - self: - href: /companies/5ced9667-a310-443a-a711-958d36377141/data/suppliers - next: - href: /companies/5ced9667-a310-443a-a711-958d36377141/data/suppliers?page=2&pageSize=2 - Zoho Books: - value: - results: - - id: '104957000001494001' - supplierName: Acme Corporation - emailAddress: '' - addresses: [] - status: Active - modifiedDate: '2022-10-03T08:40:37Z' - sourceModifiedDate: '2022-09-16T13:09:56' - defaultCurrency: GBP - - id: '104957000000648001' - supplierName: Cool company - contactName: Dre - emailAddress: '' - addresses: [] - status: Active - modifiedDate: '2022-10-03T08:40:37Z' - sourceModifiedDate: '2022-06-10T09:07:16' - defaultCurrency: CAD - pageNumber: 1 - pageSize: 2 - totalResults: 6 - _links: - current: - href: /companies/d0b68840-db50-4bc3-b88c-96e225333fea/data/suppliers?page=1&pageSize=2 - self: - href: /companies/d0b68840-db50-4bc3-b88c-96e225333fea/data/suppliers - next: - href: /companies/d0b68840-db50-4bc3-b88c-96e225333fea/data/suppliers?page=2&pageSize=2 - '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' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - description: "The *List suppliers* endpoint returns a list of [suppliers](https://docs.codat.io/lending-api#/schemas/Supplier) for a given company's connection.\n\n[Suppliers](https://docs.codat.io/lending-api#/schemas/Supplier) are people or organizations that provide something, such as a product or service.\n\nBefore using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data).\n " - operationId: list-accounting-suppliers - x-speakeasy-group: accounts-payable.suppliers - '/companies/{companyId}/data/suppliers/{supplierId}': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/accountingSupplierId' - get: - tags: - - Accounts payable - summary: Get supplier - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/AccountingSupplier' - examples: - Clear Books: - value: - id: owQ2Gqgj9f - supplierName: Abshire - Kshlerin - contactName: Faye Hansen - emailAddress: hello@Abshire-Kshlerin.info - phone: 01338 858162 - addresses: - - type: Delivery - line1: Suite 431 - line2: 289 Giles Lake - city: Cesarmouth - region: Northern Ireland - country: United Kingdom - postalCode: BG40 9GP - registrationNumber: VYL1XZXR - taxNumber: '1396267523.0914588' - status: Active - modifiedDate: '2023-04-26T12:38:17Z' - sourceModifiedDate: '1660-11-28T23:18:00' - defaultCurrency: GBP - metadata: - isDeleted: false - Dynamics 365 Business Central: - value: - id: 78623f13-931e-eb11-bbf8-0022481b3585 - supplierName: '' - contactName: '' - emailAddress: '' - phone: '' - addresses: - - type: Billing - line1: '' - line2: '' - city: '' - region: '' - country: GB - postalCode: '' - taxNumber: '' - status: Active - modifiedDate: '2023-03-27T14:21:12Z' - sourceModifiedDate: '2020-11-04T11:44:22Z' - defaultCurrency: GBP - metadata: - isDeleted: false - Exact (Netherlands): - value: - id: 3150917c-1d92-4d77-9018-31b5c4758ca9 - supplierName: Abe - contactName: Kelly's Contact Name - emailAddress: sales@kellysupplies.com - phone: 07999 999999 - addresses: - - type: Billing - line1: Unit 51 - city: Bakersfield - region: California - country: US - postalCode: '933081' - registrationNumber: '8409314368' - status: Active - modifiedDate: '2022-10-26T13:32:05Z' - sourceModifiedDate: '2022-07-15T12:01:15Z' - defaultCurrency: EUR - Exact (UK): - value: - id: 0185fea2-0298-445b-909a-0db685118a9e - supplierName: a - addresses: - - type: Billing - country: GB - status: Active - modifiedDate: '2022-10-26T13:33:13Z' - sourceModifiedDate: '2017-08-02T10:58:54Z' - defaultCurrency: GBP - FreeAgent: - value: - id: '11526230' - supplierName: '-' - contactName: Test 1 - addresses: - - type: Billing - line1: 1 Place House - line2: '' - city: London - country: United Kingdom - postalCode: WC1X 1AH - status: Active - modifiedDate: '2023-04-25T14:19:08Z' - sourceModifiedDate: '2023-04-17T06:02:46' - metadata: - isDeleted: false - FreshBooks: - value: - id: api vendor - supplierName: api vendor - addresses: [] - status: Active - modifiedDate: '2023-03-24T16:07:25Z' - metadata: - isDeleted: false - KashFlow: - value: - id: '6202387' - supplierName: Dell - contactName: '' - emailAddress: '' - phone: '' - addresses: [] - taxNumber: '' - status: Unknown - modifiedDate: '2022-09-30T10:29:15Z' - sourceModifiedDate: '2017-05-09T00:00:00' - Oracle NetSuite: - value: - id: '779' - supplierName: Test Vendor - contactName: Test Vendor - emailAddress: '' - phone: '' - addresses: [] - status: Active - modifiedDate: '2023-01-30T14:47:02Z' - sourceModifiedDate: '2022-02-04T14:24:43' - defaultCurrency: GBP - QuickBooks Desktop: - value: - id: A60000-1197760912 - supplierName: A Cheung Limited - contactName: Angela Cheung - emailAddress: AC@CheungLimited.com - phone: 510 555 5723 - addresses: - - type: Billing - line1: 'A Cheung Limited, Angela Cheung' - line2: 3818 Bear Rd. West - city: Berkeley - region: CA - postalCode: '94688' - status: Active - modifiedDate: '2023-04-26T09:09:03Z' - sourceModifiedDate: '2023-12-16T05:06:44' - defaultCurrency: GBP - metadata: - isDeleted: false - QuickBooks Online: - value: - id: '41' - supplierName: AI Support - contactName: AI Support - addresses: - - type: Billing - line1: test - region: string - country: Djibouti - status: Active - modifiedDate: '2023-01-18T11:02:36Z' - sourceModifiedDate: '2022-12-07T10:48:18Z' - defaultCurrency: GBP - QuickBooks Online Sandbox: - value: - id: '129' - supplierName: Ally Johnson - contactName: Miss Smith - phone: 0728 38474 - addresses: - - type: Billing - line1: 100 London Road - line2: Angel - city: London - region: Greater London - country: England - postalCode: EC1M - status: Active - modifiedDate: '2023-04-26T09:35:55Z' - sourceModifiedDate: '2023-04-13T01:51:08Z' - defaultCurrency: GBP - metadata: - isDeleted: false - Sage 200cloud: - value: - id: '776' - supplierName: Aaren - contactName: '' - emailAddress: '' - phone: '' - addresses: - - type: Unknown - line1: '' - line2: '' - city: '' - region: '' - country: Great Britain - postalCode: '' - taxNumber: '' - status: Archived - modifiedDate: '2022-10-14T09:35:58Z' - defaultCurrency: GBP - metadata: - isDeleted: true - Sage 50 (UK): - value: - id: CON001 - supplierName: Concept Stationery Supplies - contactName: Mark Ramsay - emailAddress: newbusinessadvice@sage.com - phone: 0191 643 4343 - addresses: - - type: Delivery - line1: 66 New Street - line2: Ridgeway - city: Newcastle Upon Tyne - region: '' - country: GB - postalCode: NE1 4GF - - type: Unknown - line1: 66 New Street - line2: Ridgeway - city: Newcastle upon Tyne - region: '' - country: GB - postalCode: NE1 4GF - taxNumber: GB988 3453 23 - status: Active - modifiedDate: '2023-03-30T14:42:38Z' - sourceModifiedDate: '2022-11-25T09:43:54Z' - defaultCurrency: GBP - metadata: - isDeleted: false - Sage Business Cloud Accounting: - value: - id: 65179671e9ef424caff8b9006cd111c8 - supplierName: 5555 Abdul's Test Name - contactName: Main Contact - addresses: - - type: Billing - country: United Kingdom (GB) - status: Active - modifiedDate: '2022-10-24T14:52:54Z' - sourceModifiedDate: '2020-02-25T17:23:33Z' - defaultCurrency: GBP - Sage Intacct: - value: - id: '3' - supplierName: ADP - contactName: 'Jones, William' - phone: 214-760-9491 - addresses: - - type: Unknown - line1: 208 S Akard St - line2: '' - city: Dallas - region: TX - country: United States - postalCode: '75265' - registrationNumber: '' - taxNumber: 85-3678274 - status: Active - modifiedDate: '2023-04-04T16:32:20Z' - sourceModifiedDate: '2023-02-16T09:48:27' - defaultCurrency: USD - metadata: - isDeleted: false - Wave: - value: - id: QnVzaW5lc3M6ZTI0OGQyZDctMWE5Ni00YTk4LWFkOTEtMDdlMGYyMmNhNmE2O1ZlbmRvcjo2NjA0Nzk0 - supplierName: Computer Shop - contactName: '' - emailAddress: '' - addresses: [] - status: Active - modifiedDate: '2022-11-16T18:15:24Z' - sourceModifiedDate: '2020-04-07T13:28:02Z' - defaultCurrency: GBP - Xero: - value: - id: e4c9d0e2-c285-4e85-b579-6d28b180c730 - supplierName: 24 Locks - emailAddress: '' - addresses: [] - status: Active - modifiedDate: '2023-03-15T20:36:09Z' - sourceModifiedDate: '2023-02-17T18:03:42' - metadata: - isDeleted: false - Zoho Books: - value: - id: '104957000001494001' - supplierName: Acme Corporation - emailAddress: '' - addresses: [] - status: Active - modifiedDate: '2022-10-03T08:40:37Z' - sourceModifiedDate: '2022-09-16T13:09:56' - defaultCurrency: GBP - '401': - $ref: '#/components/responses/Unauthorized' - '402': - $ref: '#/components/responses/Payment-Required' - '403': - $ref: '#/components/responses/Forbidden' - '404': - $ref: '#/components/responses/Not-Found' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - description: | - The *Get supplier* endpoint returns a single supplier for a given supplierId. - - [Suppliers](https://docs.codat.io/lending-api#/schemas/Supplier) are people or organizations that provide something, such as a product or service. - - Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data). - operationId: get-accounting-supplier - x-speakeasy-group: accounts-payable.suppliers - '/companies/{companyId}/connections/{connectionId}/data/suppliers/{supplierId}/attachments': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - - $ref: '#/components/parameters/accountingSupplierId' - get: - tags: - - Accounts payable - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/Attachments' - '401': - $ref: '#/components/responses/Unauthorized' - '402': - $ref: '#/components/responses/Payment-Required' - '403': - $ref: '#/components/responses/Forbidden' - '404': - $ref: '#/components/responses/Not-Found' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - summary: List supplier attachments - description: | - The *List supplier attachments* endpoint returns a list of attachments available to download for given `supplierId`. - - [Suppliers](https://docs.codat.io/lending-api#/schemas/Supplier) are people or organizations that provide something, such as a product or service. - operationId: list-accounting-supplier-attachments - x-speakeasy-group: accounts-payable.suppliers - '/companies/{companyId}/connections/{connectionId}/data/suppliers/{supplierId}/attachments/{attachmentId}': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - - $ref: '#/components/parameters/accountingSupplierId' - - $ref: '#/components/parameters/attachmentId' - get: - tags: - - Accounts payable - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/AccountingAttachment' - examples: {} - '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' - summary: Get supplier attachment - description: | - The *Get supplier attachment* endpoint returns a specific attachment for a given `supplierId` and `attachmentId`. - - [Suppliers](https://docs.codat.io/lending-api#/schemas/Supplier) are people or organizations that provide something, such as a product or service. - operationId: get-accounting-supplier-attachment - x-speakeasy-group: accounts-payable.suppliers - '/companies/{companyId}/connections/{connectionId}/data/suppliers/{supplierId}/attachments/{attachmentId}/download': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - - $ref: '#/components/parameters/accountingSupplierId' - - $ref: '#/components/parameters/attachmentId' - get: - tags: - - Accounts payable - responses: - '200': - description: Success - content: - application/octet-stream: - schema: - title: Data - type: string - format: binary - '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' - summary: Download supplier attachment - description: | - The *Download supplier attachment* endpoint downloads a specific attachment for a given `supplierId` and `attachmentId`. - - [Suppliers](https://docs.codat.io/lending-api#/schemas/Supplier) are people or organizations that provide something, such as a product or service. - operationId: download-accounting-supplier-attachment - x-speakeasy-group: accounts-payable.suppliers - '/companies/{companyId}/connections/{connectionId}/data/transfers': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - get: - tags: - - Transactions - summary: List transfers - 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/AccountingTransfers' - examples: - Clear Books: - value: - results: - - id: 0bd2f801-6f02-44d6-a2ab-5431553d16f9 - description: depositing 16531.08 into Current Account - contactRef: - id: e4baf949-cb1d-4341-8452-200a93baa3fa - dataType: customers - date: '2022-04-25T07:20:00' - from: - accountRef: - id: ff8fdc4c-2aad-4ec1-9430-6bd201832eb3 - dataType: bankAccounts - currency: GBP - amount: 16531.08 - status: Unknown - to: - accountRef: - id: dbcaf288-2b39-4b95-8ab3-42202ab15918 - dataType: bankAccounts - currency: GBP - amount: 16531.08 - status: Unknown - trackingCategoryRefs: [] - depositedRecordRefs: - - id: fc253cca-0dfe-46e8-b75f-c7fb3db760b2 - dataType: directIncomes - modifiedDate: '2023-04-26T12:38:18' - sourceModifiedDate: '2022-04-25T07:20:00' - metadata: - isDeleted: false - - id: 78373000-29e1-4ef4-a2e6-9b573ed656e4 - description: depositing 188.33 into Current Account - contactRef: - id: 51f03576-f6b0-40d5-9fba-81a490411c03 - dataType: customers - date: '2022-04-25T07:20:00' - from: - accountRef: - id: ff8fdc4c-2aad-4ec1-9430-6bd201832eb3 - dataType: bankAccounts - currency: GBP - amount: 188.33 - status: Unknown - to: - accountRef: - id: dbcaf288-2b39-4b95-8ab3-42202ab15918 - dataType: bankAccounts - currency: GBP - amount: 188.33 - status: Unknown - trackingCategoryRefs: [] - depositedRecordRefs: - - id: 38e8c917-0afc-4583-8ffe-1b53ad601197 - dataType: directIncomes - modifiedDate: '2023-04-26T12:38:18' - sourceModifiedDate: '2022-04-25T07:20:00' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 357 - _links: - current: - href: /companies/354a121b-855f-4d25-90ad-0905b498c1c0/connections/57b731ba-1d45-4386-ba58-2a1ca0234624/data/transfers?page=1&pageSize=2 - self: - href: /companies/354a121b-855f-4d25-90ad-0905b498c1c0/connections/57b731ba-1d45-4386-ba58-2a1ca0234624/data/transfers - next: - href: /companies/354a121b-855f-4d25-90ad-0905b498c1c0/connections/57b731ba-1d45-4386-ba58-2a1ca0234624/data/transfers?page=2&pageSize=2 - Dynamics 365 Business Central: - value: - results: - - id: G00001 - date: '2020-11-26T00:00:00' - from: - accountRef: - id: cf1417b3-89d1-ea11-bbaa-000d3a2b9185 - dataType: bankAccounts - currency: GBP - amount: 20 - status: Unknown - to: - accountRef: - id: ce1417b3-89d1-ea11-bbaa-000d3a2b9185 - dataType: bankAccounts - currency: GBP - amount: 20 - status: Unknown - trackingCategoryRefs: [] - depositedRecordRefs: [] - modifiedDate: '2023-03-27T14:21:26' - sourceModifiedDate: '2020-11-26T12:16:44Z' - metadata: - isDeleted: false - - id: TST-001 - date: '2022-10-25T00:00:00' - from: - accountRef: - id: 8277672c-b8e6-ec11-82f8-0022481a77f0 - dataType: bankAccounts - currency: USD - amount: 3.6 - status: Unknown - to: - accountRef: - id: 8982e7d8-cb19-eb11-bbf9-0022481ad2f4 - dataType: bankAccounts - currency: GBP - amount: 2.34 - status: Unknown - trackingCategoryRefs: [] - depositedRecordRefs: [] - modifiedDate: '2023-03-27T14:21:26' - sourceModifiedDate: '2022-10-25T15:47:48Z' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 10 - _links: - current: - href: /companies/d6849caf-c146-41be-8335-b73346e3bd84/connections/60acb117-5cf5-4745-b069-491551da4066/data/transfers?page=1&pageSize=2 - self: - href: /companies/d6849caf-c146-41be-8335-b73346e3bd84/connections/60acb117-5cf5-4745-b069-491551da4066/data/transfers - next: - href: /companies/d6849caf-c146-41be-8335-b73346e3bd84/connections/60acb117-5cf5-4745-b069-491551da4066/data/transfers?page=2&pageSize=2 - FreeAgent: - value: - results: - - id: '307335275' - description: Transfer from Savings Account to Freeagent Test12 - date: '2018-06-14T00:00:00' - from: - accountRef: - id: '532100' - dataType: bankAccounts - currency: GBP - amount: 0.69 - status: Unknown - to: - accountRef: - id: '708504' - dataType: bankAccounts - currency: GBP - amount: 0.69 - status: Unknown - trackingCategoryRefs: - - id: '761' - depositedRecordRefs: [] - modifiedDate: '2023-04-25T14:21:36' - sourceModifiedDate: '2022-03-23T15:55:58Z' - metadata: - isDeleted: false - - id: '308682395' - description: Transfer from Business Current Account to Nic Test11 - date: '2019-12-23T00:00:00' - from: - accountRef: - id: '469976' - dataType: bankAccounts - currency: GBP - amount: 250 - status: Unknown - to: - accountRef: - id: '691393' - dataType: bankAccounts - currency: GBP - amount: 250 - status: Unknown - trackingCategoryRefs: - - id: '761' - depositedRecordRefs: [] - modifiedDate: '2023-04-25T14:21:36' - sourceModifiedDate: '2022-03-31T16:09:27Z' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 99 - _links: - current: - href: /companies/071ad738-68f3-4561-afd0-69bab9df0803/connections/4fd7c69f-ecc1-45f5-83f2-42ed3391e386/data/transfers?page=1&pageSize=2 - self: - href: /companies/071ad738-68f3-4561-afd0-69bab9df0803/connections/4fd7c69f-ecc1-45f5-83f2-42ed3391e386/data/transfers - next: - href: /companies/071ad738-68f3-4561-afd0-69bab9df0803/connections/4fd7c69f-ecc1-45f5-83f2-42ed3391e386/data/transfers?page=2&pageSize=2 - Oracle NetSuite: - value: - results: - - id: 2-1 - contactRef: - id: '417' - dataType: customers - date: '2021-03-10T00:00:00' - from: - accountRef: - id: '122' - dataType: bankAccounts - currency: GBP - amount: 90 - status: Unknown - to: - accountRef: - id: '513' - dataType: bankAccounts - currency: GBP - amount: 90 - status: Unknown - trackingCategoryRefs: - - id: location-1 - depositedRecordRefs: - - id: '428' - dataType: payments - modifiedDate: '2022-09-20T08:16:26' - sourceModifiedDate: '2022-04-28T13:36:47' - - id: 2-11822 - contactRef: - id: '417' - dataType: customers - date: '2022-04-28T00:00:00' - from: - accountRef: - id: '513' - dataType: bankAccounts - currency: GBP - amount: 1200 - status: Unknown - to: - accountRef: - id: '122' - dataType: bankAccounts - currency: GBP - amount: 1200 - status: Unknown - trackingCategoryRefs: - - id: location-1 - depositedRecordRefs: - - id: '7526' - dataType: payments - modifiedDate: '2022-09-20T08:16:26' - sourceModifiedDate: '2022-04-28T14:14:33' - pageNumber: 1 - pageSize: 2 - totalResults: 47 - _links: - current: - href: /companies/973341cc-ca0a-4a88-88de-e5954157818b/connections/5f07dcfb-23c0-49e6-895c-4498ea728ff3/data/transfers?page=1&pageSize=2 - self: - href: /companies/973341cc-ca0a-4a88-88de-e5954157818b/connections/5f07dcfb-23c0-49e6-895c-4498ea728ff3/data/transfers - next: - href: /companies/973341cc-ca0a-4a88-88de-e5954157818b/connections/5f07dcfb-23c0-49e6-895c-4498ea728ff3/data/transfers?page=2&pageSize=2 - QuickBooks Desktop: - value: - results: - - id: 4B1-933288922 - description: Funds Transfer - date: '2024-10-14T00:00:00' - from: - accountRef: - id: 30000-933270541 - dataType: bankAccounts - currency: GBP - amount: 15000 - status: Unknown - to: - accountRef: - id: 20000-933270541 - dataType: bankAccounts - currency: GBP - amount: 15000 - status: Unknown - trackingCategoryRefs: [] - depositedRecordRefs: [] - modifiedDate: '2023-04-26T09:13:45' - sourceModifiedDate: '2023-12-16T05:03:58' - metadata: - isDeleted: false - - id: C2A-933780606 - description: Funds Transfer - date: '2024-11-25T00:00:00' - from: - accountRef: - id: 20000-933270541 - dataType: bankAccounts - currency: GBP - amount: 42300 - status: Unknown - to: - accountRef: - id: 30000-933270541 - dataType: bankAccounts - currency: GBP - amount: 42300 - status: Unknown - trackingCategoryRefs: [] - depositedRecordRefs: [] - modifiedDate: '2023-04-26T09:13:45' - sourceModifiedDate: '2023-12-16T05:04:07' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 4 - _links: - current: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/connections/2c26b4da-97d4-4ba9-baad-1e18b49b96ac/data/transfers?page=1&pageSize=2 - self: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/connections/2c26b4da-97d4-4ba9-baad-1e18b49b96ac/data/transfers - next: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/connections/2c26b4da-97d4-4ba9-baad-1e18b49b96ac/data/transfers?page=2&pageSize=2 - QuickBooks Online Sandbox: - value: - results: - - id: '646' - date: '2020-08-21T00:00:00' - from: - accountRef: - id: '102' - dataType: bankAccounts - currency: GBP - amount: 73.41 - status: Unknown - to: - accountRef: - id: '108' - dataType: bankAccounts - currency: GBP - amount: 73.41 - status: Unknown - trackingCategoryRefs: [] - depositedRecordRefs: [] - modifiedDate: '2023-04-26T09:36:33' - sourceModifiedDate: '2020-08-26T11:41:20Z' - metadata: - isDeleted: false - - id: '678' - date: '2020-08-22T00:00:00' - from: - accountRef: - id: '124' - dataType: bankAccounts - currency: GBP - amount: 66.66 - status: Unknown - to: - accountRef: - id: '109' - dataType: bankAccounts - currency: GBP - amount: 66.66 - status: Unknown - trackingCategoryRefs: [] - depositedRecordRefs: [] - modifiedDate: '2023-04-26T09:36:33' - sourceModifiedDate: '2020-08-29T00:01:20Z' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 442 - _links: - current: - href: /companies/5a7f3597-36e1-4216-86fe-289ad36088a6/connections/1f9f6013-f8a5-4278-8a47-3ab7fdb6c24c/data/transfers?page=1&pageSize=2 - self: - href: /companies/5a7f3597-36e1-4216-86fe-289ad36088a6/connections/1f9f6013-f8a5-4278-8a47-3ab7fdb6c24c/data/transfers - next: - href: /companies/5a7f3597-36e1-4216-86fe-289ad36088a6/connections/1f9f6013-f8a5-4278-8a47-3ab7fdb6c24c/data/transfers?page=2&pageSize=2 - QuickBooks Online: - value: - results: - - id: '1881' - date: '2020-08-29T00:00:00' - from: - accountRef: - id: '60' - dataType: bankAccounts - currency: GBP - amount: 86.19 - status: Unknown - to: - accountRef: - id: '61' - dataType: bankAccounts - currency: GBP - amount: 86.19 - status: Unknown - trackingCategoryRefs: [] - depositedRecordRefs: [] - modifiedDate: '2023-01-18T11:03:00' - sourceModifiedDate: '2020-09-03T11:19:54Z' - - id: '1885' - date: '2020-09-02T00:00:00' - from: - accountRef: - id: '60' - dataType: bankAccounts - currency: GBP - amount: 45.73 - status: Unknown - to: - accountRef: - id: '61' - dataType: bankAccounts - currency: GBP - amount: 45.73 - status: Unknown - trackingCategoryRefs: [] - depositedRecordRefs: [] - modifiedDate: '2023-01-18T11:03:00' - sourceModifiedDate: '2020-09-03T11:23:44Z' - pageNumber: 1 - pageSize: 2 - totalResults: 18 - _links: - current: - href: /companies/10818b5e-6e6a-4ed4-a1c5-3e3efe626e87/connections/9e28a776-f4be-425b-8a3d-ad49956de2c9/data/transfers?page=1&pageSize=2 - self: - href: /companies/10818b5e-6e6a-4ed4-a1c5-3e3efe626e87/connections/9e28a776-f4be-425b-8a3d-ad49956de2c9/data/transfers - next: - href: /companies/10818b5e-6e6a-4ed4-a1c5-3e3efe626e87/connections/9e28a776-f4be-425b-8a3d-ad49956de2c9/data/transfers?page=2&pageSize=2 - Sage Business Cloud Accounting: - value: - results: - - id: 434bce57215a11e8b45c025132dab352 - description: Some cheque - date: '2018-03-06T00:00:00' - from: - accountRef: - id: 9a3f0ed6267a11e797950a57719b2edb - dataType: bankAccounts - currency: GBP - amount: 1000 - status: Unknown - to: - accountRef: - id: 9a2c3770267a11e797950a57719b2edb - dataType: bankAccounts - currency: GBP - amount: 1000 - status: Unknown - trackingCategoryRefs: [] - depositedRecordRefs: [] - modifiedDate: '2022-10-24T14:54:11' - sourceModifiedDate: '2018-03-06T16:20:19Z' - - id: 73d909a4215a11e8b45c025132dab352 - description: Some cash - date: '2018-03-06T00:00:00' - from: - accountRef: - id: 9a3f0ed6267a11e797950a57719b2edb - dataType: bankAccounts - currency: GBP - amount: 465 - status: Unknown - to: - accountRef: - id: 9a2c3770267a11e797950a57719b2edb - dataType: bankAccounts - currency: GBP - amount: 465 - status: Unknown - trackingCategoryRefs: [] - depositedRecordRefs: [] - modifiedDate: '2022-10-24T14:54:11' - sourceModifiedDate: '2018-03-06T16:21:40Z' - pageNumber: 1 - pageSize: 2 - totalResults: 646 - _links: - current: - href: /companies/390083e2-351b-407c-a3be-55081c36c182/connections/37916fb7-b4b8-4a78-8872-1751e20ee0cd/data/transfers?page=1&pageSize=2 - self: - href: /companies/390083e2-351b-407c-a3be-55081c36c182/connections/37916fb7-b4b8-4a78-8872-1751e20ee0cd/data/transfers - next: - href: /companies/390083e2-351b-407c-a3be-55081c36c182/connections/37916fb7-b4b8-4a78-8872-1751e20ee0cd/data/transfers?page=2&pageSize=2 - Sage Intacct: - value: - results: - - id: '4844' - description: Description - date: '2022-03-10T00:00:00' - from: - accountRef: - id: 'CHECKINGACCOUNT:12' - dataType: bankAccounts - currency: ZAR - amount: 418.27 - status: Unknown - to: - accountRef: - id: 'CHECKINGACCOUNT:9' - dataType: bankAccounts - currency: CAD - amount: 35.45 - status: Unknown - trackingCategoryRefs: - - id: LOCATION-10 - name: South Africa - depositedRecordRefs: [] - modifiedDate: '2023-02-23T14:18:48' - sourceModifiedDate: '2022-03-10T12:38:23' - metadata: - isDeleted: false - - id: '18828' - description: From bank account '700_CHK' to bank account 'Test Savings Account' - date: '2022-10-05T00:00:00' - from: - accountRef: - id: 'CHECKINGACCOUNT:12' - dataType: bankAccounts - currency: ZAR - amount: 4040.62 - status: Unknown - to: - accountRef: - id: 'SAVINGSACCOUNT:17' - dataType: bankAccounts - currency: GBP - amount: 200 - status: Unknown - trackingCategoryRefs: - - id: LOCATION-10 - name: South Africa - depositedRecordRefs: [] - modifiedDate: '2023-02-23T14:18:48' - sourceModifiedDate: '2022-10-05T15:28:15' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 2 - _links: - current: - href: /companies/b53cfc9f-1a00-4a20-936f-34e8efbe07c5/connections/d891700f-d906-4e57-998a-0cf03d2a05d3/data/transfers?page=1&pageSize=2 - self: - href: /companies/b53cfc9f-1a00-4a20-936f-34e8efbe07c5/connections/d891700f-d906-4e57-998a-0cf03d2a05d3/data/transfers - '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' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - description: "The *List transfers* endpoint returns a list of [transfers](https://docs.codat.io/lending-api#/schemas/Transfer) for a given company's connection.\n\n[Transfers](https://docs.codat.io/lending-api#/schemas/Transfer) record the movement of money between two bank accounts, or between a bank account and a nominal account.\n\nBefore using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data).\n " - operationId: list-accounting-transfers - x-speakeasy-group: transactions.transfers - '/companies/{companyId}/connections/{connectionId}/data/transfers/{transferId}': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - - name: transferId - in: path - required: true - schema: - type: string - examples: - - 13d946f0-c5d5-42bc-b092-97ece17923ab - - 9wg4lep4ush5cxs79pl8sozmsndbaukll3ind4g7buqbm1h2 - - 7110701885 - - EILBDVJVNUAGVKRQ - description: Unique identifier for a transfer. - get: - tags: - - Transactions - summary: Get transfer - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/AccountingTransfer' - examples: - Clear Books: - value: - id: 0bd2f801-6f02-44d6-a2ab-5431553d16f9 - description: depositing 16531.08 into Current Account - contactRef: - id: e4baf949-cb1d-4341-8452-200a93baa3fa - dataType: customers - date: '2022-04-25T07:20:00' - from: - accountRef: - id: ff8fdc4c-2aad-4ec1-9430-6bd201832eb3 - dataType: bankAccounts - currency: GBP - amount: 16531.08 - status: Unknown - to: - accountRef: - id: dbcaf288-2b39-4b95-8ab3-42202ab15918 - dataType: bankAccounts - currency: GBP - amount: 16531.08 - status: Unknown - trackingCategoryRefs: [] - depositedRecordRefs: - - id: fc253cca-0dfe-46e8-b75f-c7fb3db760b2 - dataType: directIncomes - modifiedDate: '2023-04-26T12:38:18' - sourceModifiedDate: '2022-04-25T07:20:00' - metadata: - isDeleted: false - Dynamics 365 Business Central: - value: - id: G00001 - date: '2020-11-26T00:00:00' - from: - accountRef: - id: cf1417b3-89d1-ea11-bbaa-000d3a2b9185 - dataType: bankAccounts - currency: GBP - amount: 20 - status: Unknown - to: - accountRef: - id: ce1417b3-89d1-ea11-bbaa-000d3a2b9185 - dataType: bankAccounts - currency: GBP - amount: 20 - status: Unknown - trackingCategoryRefs: [] - depositedRecordRefs: [] - modifiedDate: '2023-03-27T14:21:26' - sourceModifiedDate: '2020-11-26T12:16:44Z' - metadata: - isDeleted: false - FreeAgent: - value: - id: '307335275' - description: Transfer from Savings Account to Freeagent Test12 - date: '2018-06-14T00:00:00' - from: - accountRef: - id: '532100' - dataType: bankAccounts - currency: GBP - amount: 0.69 - status: Unknown - to: - accountRef: - id: '708504' - dataType: bankAccounts - currency: GBP - amount: 0.69 - status: Unknown - trackingCategoryRefs: - - id: '761' - depositedRecordRefs: [] - modifiedDate: '2023-04-25T14:21:36' - sourceModifiedDate: '2022-03-23T15:55:58Z' - metadata: - isDeleted: false - Oracle NetSuite: - value: - id: 2-1 - contactRef: - id: '417' - dataType: customers - date: '2021-03-10T00:00:00' - from: - accountRef: - id: '122' - dataType: bankAccounts - currency: GBP - amount: 90 - status: Unknown - to: - accountRef: - id: '513' - dataType: bankAccounts - currency: GBP - amount: 90 - status: Unknown - trackingCategoryRefs: - - id: location-1 - depositedRecordRefs: - - id: '428' - dataType: payments - modifiedDate: '2022-09-20T08:16:26' - sourceModifiedDate: '2022-04-28T13:36:47' - QuickBooks Desktop: - value: - id: 4B1-933288922 - description: Funds Transfer - date: '2024-10-14T00:00:00' - from: - accountRef: - id: 30000-933270541 - dataType: bankAccounts - currency: GBP - amount: 15000 - status: Unknown - to: - accountRef: - id: 20000-933270541 - dataType: bankAccounts - currency: GBP - amount: 15000 - status: Unknown - trackingCategoryRefs: [] - depositedRecordRefs: [] - modifiedDate: '2023-04-26T09:13:45' - sourceModifiedDate: '2023-12-16T05:03:58' - metadata: - isDeleted: false - QuickBooks Online Sandbox: - value: - id: '646' - date: '2020-08-21T00:00:00' - from: - accountRef: - id: '102' - dataType: bankAccounts - currency: GBP - amount: 73.41 - status: Unknown - to: - accountRef: - id: '108' - dataType: bankAccounts - currency: GBP - amount: 73.41 - status: Unknown - trackingCategoryRefs: [] - depositedRecordRefs: [] - modifiedDate: '2023-04-26T09:36:33' - sourceModifiedDate: '2020-08-26T11:41:20Z' - metadata: - isDeleted: false - QuickBooks Online: - value: - id: '1881' - date: '2020-08-29T00:00:00' - from: - accountRef: - id: '60' - dataType: bankAccounts - currency: GBP - amount: 86.19 - status: Unknown - to: - accountRef: - id: '61' - dataType: bankAccounts - currency: GBP - amount: 86.19 - status: Unknown - trackingCategoryRefs: [] - depositedRecordRefs: [] - modifiedDate: '2023-01-18T11:03:00' - sourceModifiedDate: '2020-09-03T11:19:54Z' - Sage Business Cloud Accounting: - value: - id: 434bce57215a11e8b45c025132dab352 - description: Some cheque - date: '2018-03-06T00:00:00' - from: - accountRef: - id: 9a3f0ed6267a11e797950a57719b2edb - dataType: bankAccounts - currency: GBP - amount: 1000 - status: Unknown - to: - accountRef: - id: 9a2c3770267a11e797950a57719b2edb - dataType: bankAccounts - currency: GBP - amount: 1000 - status: Unknown - trackingCategoryRefs: [] - depositedRecordRefs: [] - modifiedDate: '2022-10-24T14:54:11' - sourceModifiedDate: '2018-03-06T16:20:19Z' - Sage Intacct: - value: - id: '4844' - description: Description - date: '2022-03-10T00:00:00' - from: - accountRef: - id: 'CHECKINGACCOUNT:12' - dataType: bankAccounts - currency: ZAR - amount: 418.27 - status: Unknown - to: - accountRef: - id: 'CHECKINGACCOUNT:9' - dataType: bankAccounts - currency: CAD - amount: 35.45 - status: Unknown - trackingCategoryRefs: - - id: LOCATION-10 - name: South Africa - depositedRecordRefs: [] - modifiedDate: '2023-02-23T14:18:48' - sourceModifiedDate: '2022-03-10T12:38:23' - metadata: - isDeleted: false - '401': - $ref: '#/components/responses/Unauthorized' - '402': - $ref: '#/components/responses/Payment-Required' - '403': - $ref: '#/components/responses/Forbidden' - '404': - $ref: '#/components/responses/Not-Found' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - description: | - The *Get transfer* endpoint returns a single transfer for a given transferId. - - [Transfers](https://docs.codat.io/lending-api#/schemas/Transfer) record the movement of money between two bank accounts, or between a bank account and a nominal account. - - Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data). - operationId: get-accounting-transfer - x-speakeasy-group: transactions.transfers - '/companies/{companyId}/connections/{connectionId}/data/bankAccounts': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - get: - x-internal: true - tags: - - Accounting bank data - summary: List bank accounts - operationId: list-accounting-bank-accounts - x-speakeasy-group: accounting-bank-data.accounts - 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/AccountingBankAccounts' - examples: - Dynamics 365 Business Central: - value: - results: - - id: c9a41bc7-6e5b-ed11-8c34-0022481b8b5b - accountName: '55' - accountType: Unknown - nominalCode: '10500' - sortCode: '' - accountNumber: '' - iBan: '' - currency: GBP - balance: -352.03 - modifiedDate: '2023-03-27T14:21:10Z' - sourceModifiedDate: '2023-02-07T00:00:00' - overdraftLimit: 0 - metadata: - isDeleted: false - - id: 47020f80-60e6-ec11-82f8-0022481a77f0 - accountName: '555' - accountType: Unknown - nominalCode: '40300' - sortCode: '' - accountNumber: '' - iBan: '' - currency: PLN - balance: 661.79 - modifiedDate: '2023-03-27T14:21:10Z' - sourceModifiedDate: '2022-06-07T00:00:00' - overdraftLimit: 0 - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 28 - _links: - current: - href: /companies/d6849caf-c146-41be-8335-b73346e3bd84/connections/60acb117-5cf5-4745-b069-491551da4066/data/bankAccounts?page=1&pageSize=2 - self: - href: /companies/d6849caf-c146-41be-8335-b73346e3bd84/connections/60acb117-5cf5-4745-b069-491551da4066/data/bankAccounts - next: - href: /companies/d6849caf-c146-41be-8335-b73346e3bd84/connections/60acb117-5cf5-4745-b069-491551da4066/data/bankAccounts?page=2&pageSize=2 - FreeAgent: - value: - results: - - id: '738783' - accountName: \w3fw - accountType: Debit - sortCode: '236972' - accountNumber: A06268209 - currency: GBP - balance: -10484.65 - availableBalance: -10484.65 - modifiedDate: '2023-04-25T14:19:12Z' - metadata: - isDeleted: false - - id: '738778' - accountName: 2e2bna45hy\ - accountType: Debit - sortCode: '236972' - accountNumber: D01825250 - currency: GBP - balance: -114.4 - availableBalance: -114.4 - modifiedDate: '2023-04-25T14:19:12Z' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 82 - _links: - current: - href: /companies/071ad738-68f3-4561-afd0-69bab9df0803/connections/4fd7c69f-ecc1-45f5-83f2-42ed3391e386/data/bankAccounts?page=1&pageSize=2 - self: - href: /companies/071ad738-68f3-4561-afd0-69bab9df0803/connections/4fd7c69f-ecc1-45f5-83f2-42ed3391e386/data/bankAccounts - next: - href: /companies/071ad738-68f3-4561-afd0-69bab9df0803/connections/4fd7c69f-ecc1-45f5-83f2-42ed3391e386/data/bankAccounts?page=2&pageSize=2 - KashFlow: - value: - results: - - id: '765768' - accountName: 16th Account - accountType: Unknown - nominalCode: '70700' - currency: GBP - balance: 326 - availableBalance: 326 - modifiedDate: '2022-09-30T10:29:16Z' - - id: '765766' - accountName: 1a1a - accountType: Unknown - nominalCode: '70600' - currency: GBP - balance: 0 - availableBalance: 0 - modifiedDate: '2022-09-30T10:29:16Z' - pageNumber: 1 - pageSize: 2 - totalResults: 56 - _links: - current: - href: /companies/3a707a99-89da-4b16-a5d6-595333a16352/connections/ecab4f64-1a04-4c53-a343-bfd879f41f67/data/bankAccounts?page=1&pageSize=2 - self: - href: /companies/3a707a99-89da-4b16-a5d6-595333a16352/connections/ecab4f64-1a04-4c53-a343-bfd879f41f67/data/bankAccounts - next: - href: /companies/3a707a99-89da-4b16-a5d6-595333a16352/connections/ecab4f64-1a04-4c53-a343-bfd879f41f67/data/bankAccounts?page=2&pageSize=2 - Oracle NetSuite: - value: - results: - - id: '825' - accountName: Codat Europe Bank - accountType: Debit - nominalCode: '111111122222111' - currency: GBP - balance: 558.22 - modifiedDate: '2023-05-02T13:24:36Z' - sourceModifiedDate: '2022-07-15T11:34:02' - metadata: - isDeleted: false - - id: '826' - accountName: Codat Europe Bank USD - accountType: Debit - nominalCode: '1133221133' - currency: USD - modifiedDate: '2023-05-02T13:24:36Z' - sourceModifiedDate: '2021-03-26T10:31:40' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 4 - _links: - current: - href: /companies/d5074b08-6a34-4b06-a742-236edf5dc4f1/connections/79f8313e-210a-4dc8-b69f-ba7e5004dda7/data/bankAccounts?page=1&pageSize=2 - self: - href: /companies/d5074b08-6a34-4b06-a742-236edf5dc4f1/connections/79f8313e-210a-4dc8-b69f-ba7e5004dda7/data/bankAccounts - next: - href: /companies/d5074b08-6a34-4b06-a742-236edf5dc4f1/connections/79f8313e-210a-4dc8-b69f-ba7e5004dda7/data/bankAccounts?page=2&pageSize=2 - QuickBooks Desktop: - value: - results: - - id: 20000-933270541 - accountName: Checking - accountType: Unknown - nominalCode: '10100' - currency: GBP - balance: 46954.1 - availableBalance: 46954.1 - modifiedDate: '2023-04-26T09:12:37Z' - sourceModifiedDate: '2023-12-16T05:06:45' - metadata: - isDeleted: false - - id: 550001-1071509830 - accountName: Petty Cash - accountType: Unknown - nominalCode: '10400' - currency: GBP - balance: 500 - availableBalance: 500 - modifiedDate: '2023-04-26T09:12:37Z' - sourceModifiedDate: '2023-12-16T05:06:45' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 3 - _links: - current: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/connections/2c26b4da-97d4-4ba9-baad-1e18b49b96ac/data/bankAccounts?page=1&pageSize=2 - self: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/connections/2c26b4da-97d4-4ba9-baad-1e18b49b96ac/data/bankAccounts - next: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/connections/2c26b4da-97d4-4ba9-baad-1e18b49b96ac/data/bankAccounts?page=2&pageSize=2 - QuickBooks Online Sandbox: - value: - results: - - id: '164' - accountName: '00' - accountType: Debit - nominalCode: '123567' - currency: GBP - balance: 0 - availableBalance: 0 - modifiedDate: '2023-04-26T09:35:57Z' - sourceModifiedDate: '2022-07-20T14:11:28Z' - metadata: - isDeleted: false - - id: '163' - accountName: '11' - accountType: Debit - currency: GBP - balance: 0 - availableBalance: 0 - modifiedDate: '2023-04-26T09:35:57Z' - sourceModifiedDate: '2022-07-20T14:11:28Z' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 57 - _links: - current: - href: /companies/5a7f3597-36e1-4216-86fe-289ad36088a6/connections/1f9f6013-f8a5-4278-8a47-3ab7fdb6c24c/data/bankAccounts?page=1&pageSize=2 - self: - href: /companies/5a7f3597-36e1-4216-86fe-289ad36088a6/connections/1f9f6013-f8a5-4278-8a47-3ab7fdb6c24c/data/bankAccounts - next: - href: /companies/5a7f3597-36e1-4216-86fe-289ad36088a6/connections/1f9f6013-f8a5-4278-8a47-3ab7fdb6c24c/data/bankAccounts?page=2&pageSize=2 - QuickBooks Online: - value: - results: - - id: '202' - accountName: \aa - accountType: Debit - currency: GBP - balance: 123 - availableBalance: 123 - modifiedDate: '2023-01-18T11:02:37Z' - sourceModifiedDate: '2022-11-11T14:15:13Z' - - id: '193' - accountName: 1 year ago - accountType: Debit - currency: GBP - balance: 5300.02 - availableBalance: 5300.02 - modifiedDate: '2023-01-18T11:02:37Z' - sourceModifiedDate: '2023-01-18T06:05:12Z' - pageNumber: 1 - pageSize: 2 - totalResults: 140 - _links: - current: - href: /companies/10818b5e-6e6a-4ed4-a1c5-3e3efe626e87/connections/9e28a776-f4be-425b-8a3d-ad49956de2c9/data/bankAccounts?page=1&pageSize=2 - self: - href: /companies/10818b5e-6e6a-4ed4-a1c5-3e3efe626e87/connections/9e28a776-f4be-425b-8a3d-ad49956de2c9/data/bankAccounts - next: - href: /companies/10818b5e-6e6a-4ed4-a1c5-3e3efe626e87/connections/9e28a776-f4be-425b-8a3d-ad49956de2c9/data/bankAccounts?page=2&pageSize=2 - Sage 50 (UK): - value: - results: - - id: '1200' - accountName: Bank Current Account - accountType: Unknown - nominalCode: '1200' - sortCode: 23-34-34 - accountNumber: '003234234' - iBan: '' - currency: GBP - balance: -20091.04 - availableBalance: -20091.04 - modifiedDate: '2023-03-30T14:42:37Z' - sourceModifiedDate: '2022-11-25T09:25:48' - overdraftLimit: 120000 - institution: Lloyds Bank PLC - metadata: - isDeleted: false - - id: '1210' - accountName: Bank Deposit Account - accountType: Unknown - nominalCode: '1210' - sortCode: 45-45-45 - accountNumber: 9/00474345 - iBan: '' - currency: GBP - balance: 3510 - availableBalance: 3510 - modifiedDate: '2023-03-30T14:42:37Z' - sourceModifiedDate: '2022-11-25T09:25:48' - overdraftLimit: 0 - institution: Halifax Building Society - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 6 - _links: - current: - href: /companies/cf5f2a47-2990-4221-bae6-0c19c86ac304/connections/8ee4910f-4fc1-47e6-89b1-5931fb33d8f7/data/bankAccounts?page=1&pageSize=2 - self: - href: /companies/cf5f2a47-2990-4221-bae6-0c19c86ac304/connections/8ee4910f-4fc1-47e6-89b1-5931fb33d8f7/data/bankAccounts - next: - href: /companies/cf5f2a47-2990-4221-bae6-0c19c86ac304/connections/8ee4910f-4fc1-47e6-89b1-5931fb33d8f7/data/bankAccounts?page=2&pageSize=2 - Sage Business Cloud Accounting: - value: - results: - - id: 154d05abe9f24c4babe0f6a741dec1b9 - accountName: Abdi Internet Bank - accountType: Unknown - nominalCode: '1560' - sortCode: '010101' - accountNumber: '11111' - currency: GBP - balance: 49.61 - availableBalance: 49.61 - modifiedDate: '2022-10-24T14:52:53Z' - sourceModifiedDate: '2020-01-27T10:53:26Z' - - id: 565ce07212bc492c8c2d04f43f9f67e3 - accountName: Abdi Live Test - accountType: Unknown - nominalCode: '147852' - sortCode: '123456' - accountNumber: '1234567' - currency: GBP - balance: -225830.75 - availableBalance: -225830.75 - modifiedDate: '2022-10-24T14:52:53Z' - sourceModifiedDate: '2020-01-28T14:00:20Z' - pageNumber: 1 - pageSize: 2 - totalResults: 45 - _links: - current: - href: /companies/390083e2-351b-407c-a3be-55081c36c182/connections/37916fb7-b4b8-4a78-8872-1751e20ee0cd/data/bankAccounts?page=1&pageSize=2 - self: - href: /companies/390083e2-351b-407c-a3be-55081c36c182/connections/37916fb7-b4b8-4a78-8872-1751e20ee0cd/data/bankAccounts - next: - href: /companies/390083e2-351b-407c-a3be-55081c36c182/connections/37916fb7-b4b8-4a78-8872-1751e20ee0cd/data/bankAccounts?page=2&pageSize=2 - Sage Intacct: - value: - results: - - id: 'CREDITCARD:55' - accountName: CoT Credit Card - accountType: Credit - nominalCode: '10021' - currency: GBP - modifiedDate: '2023-04-04T16:31:46Z' - sourceModifiedDate: '2023-03-27T14:11:48' - metadata: - isDeleted: false - - id: 'CREDITCARD:58' - accountName: Cot Credit Card 2 - accountType: Credit - nominalCode: '11112' - currency: GBP - modifiedDate: '2023-04-04T16:31:46Z' - sourceModifiedDate: '2023-03-27T14:15:11' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 14 - _links: - current: - href: /companies/df02b289-cb16-4964-ac4d-9fd60b04538e/connections/8f457d9c-1142-4241-a07e-71d1ee2e3052/data/bankAccounts?page=1&pageSize=2 - self: - href: /companies/df02b289-cb16-4964-ac4d-9fd60b04538e/connections/8f457d9c-1142-4241-a07e-71d1ee2e3052/data/bankAccounts - next: - href: /companies/df02b289-cb16-4964-ac4d-9fd60b04538e/connections/8f457d9c-1142-4241-a07e-71d1ee2e3052/data/bankAccounts?page=2&pageSize=2 - Xero: - value: - results: - - id: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - accountName: Business Bank Account - accountType: Debit - sortCode: '990404' - accountNumber: '987654321' - currency: GBP - balance: 6681.79 - modifiedDate: '2023-03-15T20:36:09Z' - sourceModifiedDate: '2023-03-15T20:35:07' - metadata: - isDeleted: false - - id: a8d6fb1a-8c5d-4683-90ce-bf9d28fc62ba - accountName: Business Savings Account - accountType: Debit - sortCode: '890303' - accountNumber: '876543210' - currency: GBP - balance: 0 - modifiedDate: '2023-03-15T20:36:09Z' - sourceModifiedDate: '2023-03-15T20:36:06' - metadata: - isDeleted: false - pageNumber: 1 - pageSize: 2 - totalResults: 2 - _links: - current: - href: /companies/5ced9667-a310-443a-a711-958d36377141/connections/6a4bcf97-e46a-465c-abf6-c42cec8e48c0/data/bankAccounts?page=1&pageSize=2 - self: - href: /companies/5ced9667-a310-443a-a711-958d36377141/connections/6a4bcf97-e46a-465c-abf6-c42cec8e48c0/data/bankAccounts - Zoho Books: - value: - results: - - id: '104957000000060010' - accountName: Abdi Test - accountType: Unknown - sortCode: '112233' - accountNumber: xxxx5678 - currency: GBP - balance: 69858.44 - modifiedDate: '2022-10-03T08:40:38Z' - institution: Test Bank - - id: '104957000000065002' - accountName: Abdi Test 2 - accountType: Unknown - sortCode: '' - accountNumber: '' - currency: AED - balance: 98.03 - modifiedDate: '2022-10-03T08:40:38Z' - institution: '' - pageNumber: 1 - pageSize: 2 - totalResults: 4 - _links: - current: - href: /companies/d0b68840-db50-4bc3-b88c-96e225333fea/connections/a2324b8e-60e9-451d-8eb1-0fdc8e8224df/data/bankAccounts?page=1&pageSize=2 - self: - href: /companies/d0b68840-db50-4bc3-b88c-96e225333fea/connections/a2324b8e-60e9-451d-8eb1-0fdc8e8224df/data/bankAccounts - next: - href: /companies/d0b68840-db50-4bc3-b88c-96e225333fea/connections/a2324b8e-60e9-451d-8eb1-0fdc8e8224df/data/bankAccounts?page=2&pageSize=2 - '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' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - description: "The *List bank accounts* endpoint returns a list of [bank accounts](https://docs.codat.io/lending-api#/schemas/BankAccount) for a given company's connection.\n\n[Bank accounts](https://docs.codat.io/lending-api#/schemas/BankAccount) are financial accounts maintained by a bank or other financial institution.\n\nBefore using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data).\n " - '/companies/{companyId}/connections/{connectionId}/data/bankAccounts/{accountId}': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - - $ref: '#/components/parameters/accountingAccountId' - get: - x-internal: true - tags: - - Accounting bank data - summary: Get bank account - operationId: get-accounting-bank-account - x-speakeasy-group: accounting-bank-data.accounts - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/AccountingBankAccount' - examples: - Dynamics 365 Business Central: - value: - id: c9a41bc7-6e5b-ed11-8c34-0022481b8b5b - accountName: '55' - accountType: Unknown - nominalCode: '10500' - sortCode: '' - accountNumber: '' - iBan: '' - currency: GBP - balance: -352.03 - modifiedDate: '2023-03-27T14:21:10Z' - sourceModifiedDate: '2023-02-07T00:00:00' - overdraftLimit: 0 - metadata: - isDeleted: false - FreeAgent: - value: - id: '738783' - accountName: \w3fw - accountType: Debit - sortCode: '236972' - accountNumber: A06268209 - currency: GBP - balance: -10484.65 - availableBalance: -10484.65 - modifiedDate: '2023-04-25T14:19:12Z' - metadata: - isDeleted: false - KashFlow: - value: - id: '765768' - accountName: 16th Account - accountType: Unknown - nominalCode: '70700' - currency: GBP - balance: 326 - availableBalance: 326 - modifiedDate: '2022-09-30T10:29:16Z' - QuickBooks Desktop: - value: - id: 20000-933270541 - accountName: Checking - accountType: Unknown - nominalCode: '10100' - currency: GBP - balance: 46954.1 - availableBalance: 46954.1 - modifiedDate: '2023-04-26T09:12:37Z' - sourceModifiedDate: '2023-12-16T05:06:45' - metadata: - isDeleted: false - Sage 50 (UK): - value: - id: '1200' - accountName: Bank Current Account - accountType: Unknown - nominalCode: '1200' - sortCode: 23-34-34 - accountNumber: '003234234' - iBan: '' - currency: GBP - balance: -20091.04 - availableBalance: -20091.04 - modifiedDate: '2023-03-30T14:42:37Z' - sourceModifiedDate: '2022-11-25T09:25:48' - overdraftLimit: 120000 - institution: Lloyds Bank PLC - metadata: - isDeleted: false - Sage Business Cloud Accounting: - value: - id: 154d05abe9f24c4babe0f6a741dec1b9 - accountName: Abdi Internet Bank - accountType: Unknown - nominalCode: '1560' - sortCode: '010101' - accountNumber: '11111' - currency: GBP - balance: 49.61 - availableBalance: 49.61 - modifiedDate: '2022-10-24T14:52:53Z' - sourceModifiedDate: '2020-01-27T10:53:26Z' - Xero: - value: - id: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - accountName: Business Bank Account - accountType: Debit - sortCode: '990404' - accountNumber: '987654321' - currency: GBP - balance: 6681.79 - modifiedDate: '2023-03-15T20:36:09Z' - sourceModifiedDate: '2023-03-15T20:35:07' - metadata: - isDeleted: false - Zoho Books: - value: - id: '104957000000060010' - accountName: Abdi Test - accountType: Unknown - sortCode: '112233' - accountNumber: xxxx5678 - currency: GBP - balance: 69858.44 - modifiedDate: '2022-10-03T08:40:38Z' - institution: Test Bank - Oracle NetSuite: - value: - id: '825' - accountName: Codat Europe Bank - accountType: Debit - nominalCode: '111111122222111' - currency: GBP - balance: 558.22 - modifiedDate: '2023-05-02T13:24:36Z' - sourceModifiedDate: '2022-07-15T11:34:02' - metadata: - isDeleted: false - QuickBooks Online Sandbox: - value: - id: '164' - accountName: '00' - accountType: Debit - nominalCode: '123567' - currency: GBP - balance: 0 - availableBalance: 0 - modifiedDate: '2023-04-26T09:35:57Z' - sourceModifiedDate: '2022-07-20T14:11:28Z' - metadata: - isDeleted: false - QuickBooks Online: - value: - id: '202' - accountName: \aa - accountType: Debit - currency: GBP - balance: 123 - availableBalance: 123 - modifiedDate: '2023-01-18T11:02:37Z' - sourceModifiedDate: '2022-11-11T14:15:13Z' - Sage Intacct: - value: - id: 'CREDITCARD:55' - accountName: CoT Credit Card - accountType: Credit - nominalCode: '10021' - currency: GBP - modifiedDate: '2023-04-04T16:31:46Z' - sourceModifiedDate: '2023-03-27T14:11:48' - metadata: - isDeleted: false - '401': - $ref: '#/components/responses/Unauthorized' - '402': - $ref: '#/components/responses/Payment-Required' - '403': - $ref: '#/components/responses/Forbidden' - '404': - $ref: '#/components/responses/Not-Found' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - description: | - The *Get bank account* endpoint returns a single account for a given accountId. - - [Bank accounts](https://docs.codat.io/lending-api#/schemas/BankAccount) are financial accounts maintained by a bank or other financial institution. - - Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data). - '/companies/{companyId}/connections/{connectionId}/data/bankAccounts/{accountId}/bankTransactions': - get: - x-internal: true - tags: - - Accounting bank data - summary: List bank account transactions - description: | - The *List account bank transactions* endpoint returns a list of [bank account transactions](https://docs.codat.io/lending-api#/schemas/BankTransactions) for a given company's connection. - - [Bank account transactions](https://docs.codat.io/lending-api#/schemas/BankTransactions) are records of money that has moved in and out of an SMB's bank account. - - Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data). - operationId: list-accounting-bank-account-transactions - x-speakeasy-name-override: list-transactions - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - - $ref: '#/components/parameters/accountingAccountId' - - $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/AccountingBankTransactions' - examples: - Dynamics 365 Business Central: - value: - results: - - id: 07c891b4-f67a-ed11-9989-0022481ae525 - accountId: c9a41bc7-6e5b-ed11-8c34-0022481b8b5b - clearedOnDate: '2022-11-17T00:00:00' - description: Share Capital - reconciled: false - amount: 1 - balance: 1 - transactionType: Payment - modifiedDate: '2023-03-27T14:21:19Z' - - id: 5ced3895-f77a-ed11-9989-0022481b6241 - accountId: c9a41bc7-6e5b-ed11-8c34-0022481b8b5b - clearedOnDate: '2022-11-17T00:00:00' - description: Share Capital - reconciled: false - amount: 1 - balance: 2 - transactionType: Payment - modifiedDate: '2023-03-27T14:21:19Z' - - id: cd12966b-8871-ed11-8c34-6045bd0c6935 - accountId: c9a41bc7-6e5b-ed11-8c34-0022481b8b5b - clearedOnDate: '2022-12-02T00:00:00' - description: '' - reconciled: false - amount: -19 - balance: -17 - transactionType: Other - modifiedDate: '2023-03-27T14:21:19Z' - - id: b13392b6-95a0-ed11-9a88-6045bdd16279 - accountId: c9a41bc7-6e5b-ed11-8c34-0022481b8b5b - clearedOnDate: '2023-01-30T00:00:00' - description: '' - reconciled: false - amount: -30 - balance: -72 - transactionType: Payment - modifiedDate: '2023-03-27T14:21:19Z' - - id: b3696a16-1fa2-ed11-9a88-000d3ad59051 - accountId: c9a41bc7-6e5b-ed11-8c34-0022481b8b5b - clearedOnDate: '2023-01-30T00:00:00' - description: 'Income, Services' - reconciled: false - amount: -10 - balance: -122 - transactionType: Payment - modifiedDate: '2023-03-27T14:21:19Z' - - id: b73392b6-95a0-ed11-9a88-6045bdd16279 - accountId: c9a41bc7-6e5b-ed11-8c34-0022481b8b5b - clearedOnDate: '2023-01-30T00:00:00' - description: Child - reconciled: false - amount: -40 - balance: -112 - transactionType: Payment - modifiedDate: '2023-03-27T14:21:19Z' - - id: befdd569-22a2-ed11-9a88-000d3ad59051 - accountId: c9a41bc7-6e5b-ed11-8c34-0022481b8b5b - clearedOnDate: '2023-01-30T00:00:00' - description: Child Child - reconciled: false - amount: -13 - balance: -160 - transactionType: Other - modifiedDate: '2023-03-27T14:21:19Z' - - id: cb71c33a-22a2-ed11-9a88-000d3ad59051 - accountId: c9a41bc7-6e5b-ed11-8c34-0022481b8b5b - clearedOnDate: '2023-01-30T00:00:00' - description: 'Income, Services' - reconciled: false - amount: -25 - balance: -147 - transactionType: Other - modifiedDate: '2023-03-27T14:21:19Z' - - id: e7ec12c9-94a0-ed11-9a88-6045bdd16279 - accountId: c9a41bc7-6e5b-ed11-8c34-0022481b8b5b - clearedOnDate: '2023-01-30T00:00:00' - description: Child Child - reconciled: false - amount: -10 - balance: -27 - transactionType: Payment - modifiedDate: '2023-03-27T14:21:19Z' - - id: fef7a026-95a0-ed11-9a88-6045bdd16279 - accountId: c9a41bc7-6e5b-ed11-8c34-0022481b8b5b - clearedOnDate: '2023-01-30T00:00:00' - description: '' - reconciled: false - amount: -15 - balance: -42 - transactionType: Payment - modifiedDate: '2023-03-27T14:21:19Z' - - id: 20869cb1-39a2-ed11-9a88-000d3ad59051 - accountId: c9a41bc7-6e5b-ed11-8c34-0022481b8b5b - clearedOnDate: '2023-02-01T00:00:00' - description: Accounts Payable - reconciled: false - amount: -14 - balance: -184 - transactionType: Payment - modifiedDate: '2023-03-27T14:21:19Z' - - id: 8c298754-20a2-ed11-9a88-000d3ad59051 - accountId: c9a41bc7-6e5b-ed11-8c34-0022481b8b5b - clearedOnDate: '2023-02-01T00:00:00' - description: '' - reconciled: false - amount: -10 - balance: -170 - transactionType: Payment - modifiedDate: '2023-03-27T14:21:19Z' - - id: 935d5578-3ca2-ed11-9a88-000d3ad59051 - accountId: c9a41bc7-6e5b-ed11-8c34-0022481b8b5b - clearedOnDate: '2023-02-01T00:00:00' - description: '' - reconciled: false - amount: -17 - balance: -201 - transactionType: Payment - modifiedDate: '2023-03-27T14:21:19Z' - - id: 935f4303-e3a2-ed11-9a88-002248010b7e - accountId: c9a41bc7-6e5b-ed11-8c34-0022481b8b5b - clearedOnDate: '2023-02-01T00:00:00' - description: '' - reconciled: false - amount: -17 - balance: -239 - transactionType: Payment - modifiedDate: '2023-03-27T14:21:19Z' - - id: d8ceb342-dba2-ed11-9a88-002248010b7e - accountId: c9a41bc7-6e5b-ed11-8c34-0022481b8b5b - clearedOnDate: '2023-02-01T00:00:00' - description: '' - reconciled: false - amount: -21 - balance: -222 - transactionType: Other - modifiedDate: '2023-03-27T14:21:19Z' - - id: 15719c0c-22a6-ed11-9a88-002248010b7e - accountId: c9a41bc7-6e5b-ed11-8c34-0022481b8b5b - clearedOnDate: '2023-02-02T00:00:00' - description: '' - reconciled: false - amount: -20 - balance: -292.69 - transactionType: Payment - modifiedDate: '2023-03-27T14:21:19Z' - - id: 213d027d-b1a3-ed11-9a88-000d3ad59051 - accountId: c9a41bc7-6e5b-ed11-8c34-0022481b8b5b - clearedOnDate: '2023-02-02T00:00:00' - description: '' - reconciled: false - amount: -9.35 - balance: -265.19 - transactionType: Payment - modifiedDate: '2023-03-27T14:21:19Z' - - id: 273d027d-b1a3-ed11-9a88-000d3ad59051 - accountId: c9a41bc7-6e5b-ed11-8c34-0022481b8b5b - clearedOnDate: '2023-02-02T00:00:00' - description: Account no cat Balance Sheet - reconciled: false - amount: -7.5 - balance: -272.69 - transactionType: Payment - modifiedDate: '2023-03-27T14:21:19Z' - - id: 978c4a27-e0a2-ed11-9a88-002248010b7e - accountId: c9a41bc7-6e5b-ed11-8c34-0022481b8b5b - clearedOnDate: '2023-02-02T00:00:00' - description: '' - reconciled: false - amount: 2.16 - balance: -236.84 - transactionType: Other - modifiedDate: '2023-03-27T14:21:19Z' - - id: a80f63ae-b0a3-ed11-9a88-000d3ad59051 - accountId: c9a41bc7-6e5b-ed11-8c34-0022481b8b5b - clearedOnDate: '2023-02-02T00:00:00' - description: '' - reconciled: false - amount: -7.01 - balance: -262.85 - transactionType: Payment - modifiedDate: '2023-03-27T14:21:19Z' - - id: ad0f63ae-b0a3-ed11-9a88-000d3ad59051 - accountId: c9a41bc7-6e5b-ed11-8c34-0022481b8b5b - clearedOnDate: '2023-02-02T00:00:00' - description: Account no cat Balance Sheet - reconciled: false - amount: 7.01 - balance: -255.84 - transactionType: Payment - modifiedDate: '2023-03-27T14:21:19Z' - - id: b5de7b74-afa3-ed11-9a88-000d3ad59051 - accountId: c9a41bc7-6e5b-ed11-8c34-0022481b8b5b - clearedOnDate: '2023-02-02T00:00:00' - description: '' - reconciled: false - amount: -4.91 - balance: -260.75 - transactionType: Payment - modifiedDate: '2023-03-27T14:21:19Z' - - id: bbde7b74-afa3-ed11-9a88-000d3ad59051 - accountId: c9a41bc7-6e5b-ed11-8c34-0022481b8b5b - clearedOnDate: '2023-02-02T00:00:00' - description: '' - reconciled: false - amount: 4.91 - balance: -255.84 - transactionType: Payment - modifiedDate: '2023-03-27T14:21:19Z' - - id: f9540bf4-e5a2-ed11-9a88-000d3ad5d945 - accountId: c9a41bc7-6e5b-ed11-8c34-0022481b8b5b - clearedOnDate: '2023-02-02T00:00:00' - description: '' - reconciled: false - amount: -19 - balance: -255.84 - transactionType: Payment - modifiedDate: '2023-03-27T14:21:19Z' - - id: feca50d8-22a6-ed11-9a88-002248010b7e - accountId: c9a41bc7-6e5b-ed11-8c34-0022481b8b5b - clearedOnDate: '2023-02-06T00:00:00' - description: '' - reconciled: false - amount: -20 - balance: -312.69 - transactionType: Payment - modifiedDate: '2023-03-27T14:21:19Z' - - id: 4777d7ec-cfa6-ed11-9a88-000d3a7fb2e5 - accountId: c9a41bc7-6e5b-ed11-8c34-0022481b8b5b - clearedOnDate: '2023-02-07T00:00:00' - description: '' - reconciled: false - amount: -2.34 - balance: -315.03 - transactionType: Payment - modifiedDate: '2023-03-27T14:21:19Z' - - id: 38b632de-7aac-ed11-9a88-002248410639 - accountId: c9a41bc7-6e5b-ed11-8c34-0022481b8b5b - clearedOnDate: '2023-02-09T00:00:00' - description: Invalid VAT Posting Setup - reconciled: false - amount: -10 - balance: -315.03 - transactionType: Payment - modifiedDate: '2023-03-27T14:21:19Z' - - id: ffc0b740-68a8-ed11-9a88-6045bdd12fc1 - accountId: c9a41bc7-6e5b-ed11-8c34-0022481b8b5b - clearedOnDate: '2023-02-09T00:00:00' - description: '' - reconciled: false - amount: 10 - balance: -305.03 - transactionType: Payment - modifiedDate: '2023-03-27T14:21:19Z' - - id: 95f27455-7cac-ed11-9a88-002248410639 - accountId: c9a41bc7-6e5b-ed11-8c34-0022481b8b5b - clearedOnDate: '2023-02-14T00:00:00' - description: '' - reconciled: false - amount: -10 - balance: -325.03 - transactionType: Payment - modifiedDate: '2023-03-27T14:21:19Z' - - id: 0d6b1378-acae-ed11-9a88-6045bdd16279 - accountId: c9a41bc7-6e5b-ed11-8c34-0022481b8b5b - clearedOnDate: '2023-02-16T00:00:00' - description: Bank Account Line - reconciled: false - amount: -12 - balance: -337.03 - transactionType: Payment - modifiedDate: '2023-03-27T14:21:19Z' - - id: 978da9f7-baae-ed11-9a88-6045bdc1c1f3 - accountId: c9a41bc7-6e5b-ed11-8c34-0022481b8b5b - clearedOnDate: '2023-02-18T00:00:00' - description: Bank - reconciled: false - amount: 6 - balance: -342.03 - transactionType: Payment - modifiedDate: '2023-03-27T14:21:19Z' - - id: dd34e6eb-b6ae-ed11-9a88-6045bdc1c1f3 - accountId: c9a41bc7-6e5b-ed11-8c34-0022481b8b5b - clearedOnDate: '2023-02-18T00:00:00' - description: G/L - reconciled: false - amount: -1 - balance: -338.03 - transactionType: Payment - modifiedDate: '2023-03-27T14:21:19Z' - - id: e234e6eb-b6ae-ed11-9a88-6045bdc1c1f3 - accountId: c9a41bc7-6e5b-ed11-8c34-0022481b8b5b - clearedOnDate: '2023-02-18T00:00:00' - description: Customer - reconciled: false - amount: 2 - balance: -336.03 - transactionType: Payment - modifiedDate: '2023-03-27T14:21:19Z' - - id: e734e6eb-b6ae-ed11-9a88-6045bdc1c1f3 - accountId: c9a41bc7-6e5b-ed11-8c34-0022481b8b5b - clearedOnDate: '2023-02-18T00:00:00' - description: Vendor - reconciled: false - amount: -3 - balance: -339.03 - transactionType: Payment - modifiedDate: '2023-03-27T14:21:19Z' - - id: ed34e6eb-b6ae-ed11-9a88-6045bdc1c1f3 - accountId: c9a41bc7-6e5b-ed11-8c34-0022481b8b5b - clearedOnDate: '2023-02-18T00:00:00' - description: Bank - reconciled: false - amount: -4 - balance: -343.03 - transactionType: Payment - modifiedDate: '2023-03-27T14:21:19Z' - - id: f234e6eb-b6ae-ed11-9a88-6045bdc1c1f3 - accountId: c9a41bc7-6e5b-ed11-8c34-0022481b8b5b - clearedOnDate: '2023-02-18T00:00:00' - description: Employee - reconciled: false - amount: -5 - balance: -348.03 - transactionType: Payment - modifiedDate: '2023-03-27T14:21:19Z' - - id: 39de1293-d3b1-ed11-9a88-6045bd0f94d6 - accountId: c9a41bc7-6e5b-ed11-8c34-0022481b8b5b - clearedOnDate: '2023-02-21T00:00:00' - description: '' - reconciled: false - amount: -10 - balance: -352.03 - transactionType: Credit - modifiedDate: '2023-03-27T14:21:19Z' - pageNumber: 1 - pageSize: 100 - totalResults: 37 - _links: - current: - href: /companies/d6849caf-c146-41be-8335-b73346e3bd84/connections/60acb117-5cf5-4745-b069-491551da4066/data/bankAccounts/c9a41bc7-6e5b-ed11-8c34-0022481b8b5b/bankTransactions - self: - href: /companies/d6849caf-c146-41be-8335-b73346e3bd84/connections/60acb117-5cf5-4745-b069-491551da4066/data/bankAccounts/c9a41bc7-6e5b-ed11-8c34-0022481b8b5b/bankTransactions - FreeAgent: - value: - results: - - id: '261197890' - accountId: '738783' - clearedOnDate: '2020-10-28T00:00:00' - description: Invoice receipt against 1762 - reconciled: true - amount: 111 - transactionType: Credit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2020-10-28T16:27:10Z' - - id: '290878530' - accountId: '738783' - clearedOnDate: '2021-04-23T00:00:00' - description: Invoice receipt against 1980 - reconciled: true - amount: 10 - transactionType: Credit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2021-04-27T04:55:42Z' - - id: '290825614' - accountId: '738783' - clearedOnDate: '2021-04-26T00:00:00' - description: Invoice receipt against 1976 - reconciled: true - amount: 10 - transactionType: Credit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2021-04-26T14:05:15Z' - - id: '290878531' - accountId: '738783' - clearedOnDate: '2021-04-26T00:00:00' - description: Invoice receipt against 1981 - reconciled: true - amount: 20 - transactionType: Credit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2021-04-27T04:55:44Z' - - id: '291227300' - accountId: '738783' - clearedOnDate: '2021-04-28T00:00:00' - description: Invoice receipt against 2002 - reconciled: true - amount: 20 - transactionType: Credit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2021-04-28T13:43:56Z' - - id: '291242296' - accountId: '738783' - clearedOnDate: '2021-04-28T00:00:00' - description: Invoice receipt against 2012 - reconciled: true - amount: 40 - transactionType: Credit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2021-04-28T16:14:16Z' - - id: '346437532' - accountId: '738783' - clearedOnDate: '2022-03-21T00:00:00' - description: Invoice receipt against 2304 - reconciled: true - amount: 1 - transactionType: Credit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2022-03-21T14:59:40Z' - - id: '346444438' - accountId: '738783' - clearedOnDate: '2022-03-21T00:00:00' - description: Invoice receipt against 2304 - reconciled: true - amount: 1 - transactionType: Credit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2022-03-21T15:37:54Z' - - id: '346444989' - accountId: '738783' - clearedOnDate: '2022-03-21T00:00:00' - description: Invoice receipt against 2304 - reconciled: true - amount: 1 - transactionType: Credit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2022-03-21T15:41:22Z' - - id: '346457774' - accountId: '738783' - clearedOnDate: '2022-03-21T00:00:00' - description: Credit Note refund against 2313 - reconciled: true - amount: -1 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2022-03-21T17:07:50Z' - - id: '346458196' - accountId: '738783' - clearedOnDate: '2022-03-21T00:00:00' - description: Invoice receipt against 2311 - reconciled: true - amount: 1 - transactionType: Credit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2022-03-21T17:14:15Z' - - id: '414441841' - accountId: '738783' - clearedOnDate: '2022-12-20T00:00:00' - description: 'MCDONALDS - ROYSTON - Card Ending: 9271//OTHER/' - reconciled: false - amount: -12.78 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:33Z' - - id: '414441842' - accountId: '738783' - clearedOnDate: '2022-12-20T00:00:00' - description: 'HERMES PARCELNET LTD T/A - 08445437147 - Card Ending: 2327//OTHER/' - reconciled: false - amount: -7.98 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:33Z' - - id: '414441845' - accountId: '738783' - clearedOnDate: '2022-12-20T00:00:00' - description: 'TRAVELODGE GB0000 - THAME - Card Ending: 4999//OTHER/' - reconciled: false - amount: -648.63 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:33Z' - - id: '414441847' - accountId: '738783' - clearedOnDate: '2022-12-20T00:00:00' - description: 'TRAVELODGE GB0000 - THAME - Card Ending: 4999//OTHER/' - reconciled: false - amount: -324.31 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:33Z' - - id: '414441849' - accountId: '738783' - clearedOnDate: '2022-12-20T00:00:00' - description: 'RUGBY, PRET A MANGER - RUGBY - Card Ending: 9271//OTHER/' - reconciled: false - amount: -11.45 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:33Z' - - id: '414441851' - accountId: '738783' - clearedOnDate: '2022-12-20T00:00:00' - description: 'Just Eat - London - Card Ending: 9271//OTHER/' - reconciled: false - amount: -22.52 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:33Z' - - id: '414441852' - accountId: '738783' - clearedOnDate: '2022-12-20T00:00:00' - description: 'CN TAR TAROM SA-MOBILP - ORAS OTOPENI - Card Ending: 4999//OTHER/' - reconciled: false - amount: -340.13 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:33Z' - - id: '414441854' - accountId: '738783' - clearedOnDate: '2022-12-21T00:00:00' - description: 'MOTO RUGBY SERVICES - RUGBY - Card Ending: 9271//OTHER/' - reconciled: false - amount: -126.12 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:33Z' - - id: '414441855' - accountId: '738783' - clearedOnDate: '2022-12-21T00:00:00' - description: 'POMANDA.COM - 138 HOLBORN, - Card Ending: 2327//OTHER/' - reconciled: false - amount: -9.99 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:33Z' - - id: '414441856' - accountId: '738783' - clearedOnDate: '2022-12-21T00:00:00' - description: 'RYANAIR 224BEZ3YM - LONDON - Card Ending: 4999//OTHER/' - reconciled: false - amount: -267.97 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:33Z' - - id: '414441857' - accountId: '738783' - clearedOnDate: '2022-12-21T00:00:00' - description: 'TESCO STORES 5956 - LONDON - Card Ending: 9271//OTHER/' - reconciled: false - amount: -9.35 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:33Z' - - id: '414441859' - accountId: '738783' - clearedOnDate: '2022-12-21T00:00:00' - description: 'SPOTIFY - LONDON - Card Ending: 4999//OTHER/' - reconciled: false - amount: -16.99 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:33Z' - - id: '414441860' - accountId: '738783' - clearedOnDate: '2022-12-21T00:00:00' - description: 'Revive My Device - London - Card Ending: 5913//OTHER/' - reconciled: false - amount: -149 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:33Z' - - id: '414441861' - accountId: '738783' - clearedOnDate: '2022-12-22T00:00:00' - description: 'DELIVEROO - LONDON - Card Ending: 9271//OTHER/' - reconciled: false - amount: -39.36 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:33Z' - - id: '414441862' - accountId: '738783' - clearedOnDate: '2022-12-22T00:00:00' - description: 'UPS LTD - FELTHAM - Card Ending: 2327//OTHER/' - reconciled: false - amount: -2.4 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:33Z' - - id: '414441863' - accountId: '738783' - clearedOnDate: '2022-12-22T00:00:00' - description: 'Amazon.co.uk*1N0N04VK4 - AMAZON.CO.UK - Card Ending: 2327//OTHER/' - reconciled: false - amount: -17.76 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:34Z' - - id: '414441864' - accountId: '738783' - clearedOnDate: '2022-12-22T00:00:00' - description: 'TESCO STORES 5956 - LONDON - Card Ending: 9271//OTHER/' - reconciled: false - amount: -10.65 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:34Z' - - id: '414441865' - accountId: '738783' - clearedOnDate: '2022-12-22T00:00:00' - description: 'GATHER & GATHER 3401 - LONDON - Card Ending: 9271//OTHER/' - reconciled: false - amount: -16.75 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:34Z' - - id: '414441866' - accountId: '738783' - clearedOnDate: '2022-12-22T00:00:00' - description: 'GATHER & GATHER 3401 - LONDON - Card Ending: 9271//OTHER/' - reconciled: false - amount: -4.55 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:34Z' - - id: '414441867' - accountId: '738783' - clearedOnDate: '2022-12-22T00:00:00' - description: 'TRAVELODGE GB0937 - LONDON - Card Ending: 9271//OTHER/' - reconciled: false - amount: -10.75 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:34Z' - - id: '414441868' - accountId: '738783' - clearedOnDate: '2022-12-22T00:00:00' - description: 'DELIVEROO - LONDON - Card Ending: 9271//OTHER/' - reconciled: false - amount: -34.2 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:34Z' - - id: '414441869' - accountId: '738783' - clearedOnDate: '2022-12-22T00:00:00' - description: 'TFL TRAVEL CH - TFL.GOV.UK/CP - Card Ending: 5913//OTHER/' - reconciled: false - amount: -2.8 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:34Z' - - id: '414441870' - accountId: '738783' - clearedOnDate: '2022-12-23T00:00:00' - description: 'SIDS DIY - LONDON E1 - Card Ending: 9271//OTHER/' - reconciled: false - amount: -5.99 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:34Z' - - id: '414441871' - accountId: '738783' - clearedOnDate: '2022-12-23T00:00:00' - description: 'RESOLUTION GB LTD - WHITCHURCH - Card Ending: 2327//OTHER/' - reconciled: false - amount: -368.72 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:34Z' - - id: '414441872' - accountId: '738783' - clearedOnDate: '2022-12-23T00:00:00' - description: 'GATHER & GATHER 3401 - LONDON - Card Ending: 9271//OTHER/' - reconciled: false - amount: -6.15 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:34Z' - - id: '414441874' - accountId: '738783' - clearedOnDate: '2022-12-23T00:00:00' - description: 'HERMES PARCELNET LTD T/A - 08445437147 - Card Ending: 2327//OTHER/' - reconciled: false - amount: -5.34 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:34Z' - - id: '414441875' - accountId: '738783' - clearedOnDate: '2022-12-23T00:00:00' - description: 'Refund: SCREWFIX DIR LTD - WHITECHAP1983 - Card Ending: 9271//OTHER/' - reconciled: false - amount: 6.8 - transactionType: Credit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:34Z' - - id: '414441876' - accountId: '738783' - clearedOnDate: '2022-12-23T00:00:00' - description: 'Refund: SCREWFIX DIR LTD - WHITECHAP1983 - Card Ending: 9271//OTHER/' - reconciled: false - amount: 12.49 - transactionType: Credit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:34Z' - - id: '414441877' - accountId: '738783' - clearedOnDate: '2022-12-23T00:00:00' - description: 'SCREWFIX DIR LTD - WHITECHAP1983 - Card Ending: 9271//OTHER/' - reconciled: false - amount: -6.5 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:34Z' - - id: '414441878' - accountId: '738783' - clearedOnDate: '2022-12-23T00:00:00' - description: 'SCREWFIX DIR LTD - WHITECHAP1983 - Card Ending: 9271//OTHER/' - reconciled: false - amount: -27.15 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:34Z' - - id: '414441879' - accountId: '738783' - clearedOnDate: '2022-12-23T00:00:00' - description: 'GOODMANS FIELD - LONDON - Card Ending: 9271//OTHER/' - reconciled: false - amount: -8 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:34Z' - - id: '414441880' - accountId: '738783' - clearedOnDate: '2022-12-23T00:00:00' - description: 'GOODMANS FIELD - LONDON - Card Ending: 9271//OTHER/' - reconciled: false - amount: -25.7 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:34Z' - - id: '414441881' - accountId: '738783' - clearedOnDate: '2022-12-23T00:00:00' - description: 'CREAMLINE DAIRIES ONLINE - MANCHESTER - Card Ending: 2327//OTHER/' - reconciled: false - amount: -50 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:34Z' - - id: '414441883' - accountId: '738783' - clearedOnDate: '2022-12-24T00:00:00' - description: 'AIRBNB * HMYDEXRY4N - 203-318-1111 - Card Ending: 5913//OTHER/' - reconciled: false - amount: -388.24 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:35Z' - - id: '414441884' - accountId: '738783' - clearedOnDate: '2022-12-24T00:00:00' - description: 'UPS LTD - FELTHAM - Card Ending: 2327//OTHER/' - reconciled: false - amount: -9.35 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:35Z' - - id: '414441886' - accountId: '738783' - clearedOnDate: '2022-12-24T00:00:00' - description: 'UBER *TRIP - HELP.UBER.COM - Card Ending: 9271//OTHER/' - reconciled: false - amount: -11.9 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:35Z' - - id: '414441889' - accountId: '738783' - clearedOnDate: '2022-12-24T00:00:00' - description: 'UBER *TRIP - HELP.UBER.COM - Card Ending: 9271//OTHER/' - reconciled: false - amount: -6.84 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:35Z' - - id: '414441891' - accountId: '738783' - clearedOnDate: '2022-12-24T00:00:00' - description: 'WELCOME BREAK - NEWPORT PAGNE - Card Ending: 9271//OTHER/' - reconciled: false - amount: -102.23 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:35Z' - - id: '414441892' - accountId: '738783' - clearedOnDate: '2022-12-24T00:00:00' - description: 'SUBWAY 63582 London Gatew - Mill Hill, Lo - Card Ending: 9271//OTHER/' - reconciled: false - amount: -15.38 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:35Z' - - id: '414441893' - accountId: '738783' - clearedOnDate: '2022-12-26T00:00:00' - description: 'UBER *TRIP - HELP.UBER.COM - Card Ending: 1332//OTHER/' - reconciled: false - amount: -40.65 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:35Z' - - id: '414441894' - accountId: '738783' - clearedOnDate: '2022-12-26T00:00:00' - description: 'UBER *TRIP - HELP.UBER.COM - Card Ending: 1332//OTHER/' - reconciled: false - amount: -2 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:35Z' - - id: '414441895' - accountId: '738783' - clearedOnDate: '2022-12-26T00:00:00' - description: 'UBER *TRIP - HELP.UBER.COM - Card Ending: 1332//OTHER/' - reconciled: false - amount: -34.06 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:35Z' - - id: '414441897' - accountId: '738783' - clearedOnDate: '2022-12-26T00:00:00' - description: 'UBER *TRIP - HELP.UBER.COM - Card Ending: 1332//OTHER/' - reconciled: false - amount: -2 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:35Z' - - id: '414441901' - accountId: '738783' - clearedOnDate: '2022-12-28T00:00:00' - description: 'Tesla - West Drayton - Card Ending: 1332//OTHER/' - reconciled: false - amount: -9.99 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:35Z' - - id: '414441904' - accountId: '738783' - clearedOnDate: '2022-12-28T00:00:00' - description: 'Box Deansgate - Manchester - Card Ending: 0614//OTHER/' - reconciled: false - amount: -20.65 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:35Z' - - id: '414441906' - accountId: '738783' - clearedOnDate: '2022-12-28T00:00:00' - description: 'MANCHESTER UNITED KIOSK - MANCHESTER - Card Ending: 0614//OTHER/' - reconciled: false - amount: -26.5 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:35Z' - - id: '414441908' - accountId: '738783' - clearedOnDate: '2022-12-29T00:00:00' - description: 'TFL TRAVEL CH - TFL.GOV.UK/CP - Card Ending: 5913//OTHER/' - reconciled: false - amount: -2.8 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:35Z' - - id: '414441909' - accountId: '738783' - clearedOnDate: '2022-12-31T00:00:00' - description: 'TFL TRAVEL CH - TFL.GOV.UK/CP - Card Ending: 5913//OTHER/' - reconciled: false - amount: -1.65 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:35Z' - - id: '414441910' - accountId: '738783' - clearedOnDate: '2023-01-01T00:00:00' - description: 'UBER* TRIP - LONDON - Card Ending: 1332//OTHER/' - reconciled: false - amount: -2 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:35Z' - - id: '414441911' - accountId: '738783' - clearedOnDate: '2023-01-01T00:00:00' - description: 'UBER* TRIP - LONDON - Card Ending: 1332//OTHER/' - reconciled: false - amount: -11.95 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:35Z' - - id: '414441912' - accountId: '738783' - clearedOnDate: '2023-01-02T00:00:00' - description: 'UBER* TRIP - LONDON - Card Ending: 9271//OTHER/' - reconciled: false - amount: -13.68 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:36Z' - - id: '414441913' - accountId: '738783' - clearedOnDate: '2023-01-02T00:00:00' - description: 'WWW.KASHFLOW.COM - DATCHET - Card Ending: 1332//OTHER/' - reconciled: false - amount: -22.8 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:36Z' - - id: '414441914' - accountId: '738783' - clearedOnDate: '2023-01-02T00:00:00' - description: 'UBER *TRIP - HELP.UBER.COM - Card Ending: 1332//OTHER/' - reconciled: false - amount: -9.14 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:36Z' - - id: '414441915' - accountId: '738783' - clearedOnDate: '2023-01-02T00:00:00' - description: 'GOOGLE*GSUITE ISOMI.CO - DUBLIN 2 - Card Ending: 1332//OTHER/' - reconciled: false - amount: -216.2 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:36Z' - - id: '414441916' - accountId: '738783' - clearedOnDate: '2023-01-03T00:00:00' - description: 'Refund: AMZ*quickpickdeals - amazon.co.uk - Card Ending: 4999//OTHER/' - reconciled: false - amount: 10.97 - transactionType: Credit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:36Z' - - id: '414441917' - accountId: '738783' - clearedOnDate: '2023-01-04T00:00:00' - description: Finance Charge//OTHER/ - reconciled: false - amount: -0.41 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:36Z' - - id: '414441918' - accountId: '738783' - clearedOnDate: '2023-01-04T00:00:00' - description: 'WWW.KASHFLOW.COM - DATCHET - Card Ending: 1332//OTHER/' - reconciled: false - amount: -22.8 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:36Z' - - id: '414441919' - accountId: '738783' - clearedOnDate: '2023-01-04T00:00:00' - description: 'ACCU.CO.UK - HUDDERSFIELD - Card Ending: 2327//OTHER/' - reconciled: false - amount: -86.34 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:36Z' - - id: '414441920' - accountId: '738783' - clearedOnDate: '2023-01-04T00:00:00' - description: 'ASDA GROCERIES ONLINE - INTERNET - Card Ending: 2327//OTHER/' - reconciled: false - amount: -6.5 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:36Z' - - id: '414441922' - accountId: '738783' - clearedOnDate: '2023-01-04T00:00:00' - description: 'AMAZON PRIME*164AU3UZ4 AM - AMZN.CO.UK/PM - Card Ending: 1332//OTHER/' - reconciled: false - amount: -96 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:36Z' - - id: '414441924' - accountId: '738783' - clearedOnDate: '2023-01-05T00:00:00' - description: 'Amazon.co.uk*162DC7II4 - AMAZON.CO.UK - Card Ending: 2327//OTHER/' - reconciled: false - amount: -44.62 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:36Z' - - id: '414441926' - accountId: '738783' - clearedOnDate: '2023-01-05T00:00:00' - description: 'trainline - +443332022222 - Card Ending: 5913//OTHER/' - reconciled: false - amount: -65.46 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:36Z' - - id: '414441931' - accountId: '738783' - clearedOnDate: '2023-01-05T00:00:00' - description: 'VITAL PARTS LTD - MAIDSTONE - Card Ending: 2327//OTHER/' - reconciled: false - amount: -124.35 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:36Z' - - id: '414441934' - accountId: '738783' - clearedOnDate: '2023-01-05T00:00:00' - description: 'Amazon.co.uk*168E49IU4 - AMAZON.CO.UK - Card Ending: 2327//OTHER/' - reconciled: false - amount: -2.52 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:36Z' - - id: '414441935' - accountId: '738783' - clearedOnDate: '2023-01-05T00:00:00' - description: 'ASDA GROCERIES ONLINE - INTERNET - Card Ending: 2327//OTHER/' - reconciled: false - amount: -108.16 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:36Z' - - id: '414441936' - accountId: '738783' - clearedOnDate: '2023-01-05T00:00:00' - description: 'Refund: ASDA GROCERIES ONLINE - INTERNET - Card Ending: 2327//OTHER/' - reconciled: false - amount: 22.96 - transactionType: Credit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:36Z' - - id: '414441937' - accountId: '738783' - clearedOnDate: '2023-01-05T00:00:00' - description: 'Amazon.co.uk*1H31B0CO4 - AMAZON.CO.UK - Card Ending: 2327//OTHER/' - reconciled: false - amount: -20.52 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:36Z' - - id: '414441939' - accountId: '738783' - clearedOnDate: '2023-01-05T00:00:00' - description: 'Amazon.co.uk*1H4GR4CH4 - AMAZON.CO.UK - Card Ending: 2327//OTHER/' - reconciled: false - amount: -13.69 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:37Z' - - id: '414441941' - accountId: '738783' - clearedOnDate: '2023-01-05T00:00:00' - description: 'Amazon.co.uk*162V47WY4 - AMAZON.CO.UK - Card Ending: 2327//OTHER/' - reconciled: false - amount: -16.83 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:37Z' - - id: '414441945' - accountId: '738783' - clearedOnDate: '2023-01-05T00:00:00' - description: 'Amazon.co.uk*160J00WI4 - AMAZON.CO.UK - Card Ending: 2327//OTHER/' - reconciled: false - amount: -17.68 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:37Z' - - id: '414441946' - accountId: '738783' - clearedOnDate: '2023-01-06T00:00:00' - description: 'Amazon.co.uk*1692Y9YY4 - AMAZON.CO.UK - Card Ending: 2327//OTHER/' - reconciled: false - amount: -29.74 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:37Z' - - id: '414441947' - accountId: '738783' - clearedOnDate: '2023-01-06T00:00:00' - description: 'Amazon.co.uk*166I62Y14 - AMAZON.CO.UK - Card Ending: 2327//OTHER/' - reconciled: false - amount: -29.74 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:37Z' - - id: '414441948' - accountId: '738783' - clearedOnDate: '2023-01-06T00:00:00' - description: 'GMELIUS GROWTH - MEYRIN - Card Ending: 5913//OTHER/' - reconciled: false - amount: -121.3 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:37Z' - - id: '414441949' - accountId: '738783' - clearedOnDate: '2023-01-07T00:00:00' - description: 'ACCU.CO.UK - HUDDERSFIELD - Card Ending: 2327//OTHER/' - reconciled: false - amount: -116.34 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:37Z' - - id: '414441950' - accountId: '738783' - clearedOnDate: '2023-01-07T00:00:00' - description: 'AMZNMktplace - amazon.co.uk - Card Ending: 2327//OTHER/' - reconciled: false - amount: -66.79 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:37Z' - - id: '414441951' - accountId: '738783' - clearedOnDate: '2023-01-07T00:00:00' - description: 'TOOLSTATION UK - NORTHAMPTON - Card Ending: 2327//OTHER/' - reconciled: false - amount: -77.88 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:37Z' - - id: '414441952' - accountId: '738783' - clearedOnDate: '2023-01-07T00:00:00' - description: 'SHELL CHESTER - CHESTER - Card Ending: 9271//OTHER/' - reconciled: false - amount: -112.24 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:37Z' - - id: '414441953' - accountId: '738783' - clearedOnDate: '2023-01-08T00:00:00' - description: 'BRITISH A 1252150515112 - LONDON - Card Ending: 4999//OTHER/' - reconciled: false - amount: -450.85 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:37Z' - - id: '414441954' - accountId: '738783' - clearedOnDate: '2023-01-08T00:00:00' - description: 'BRITISH A 1254217966962 - LONDON - Card Ending: 4999//OTHER/' - reconciled: false - amount: -65 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:37Z' - - id: '414441955' - accountId: '738783' - clearedOnDate: '2023-01-08T00:00:00' - description: 'TFL TRAVEL CH - TFL.GOV.UK/CP - Card Ending: 5913//OTHER/' - reconciled: false - amount: -3.3 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:37Z' - - id: '414441956' - accountId: '738783' - clearedOnDate: '2023-01-09T00:00:00' - description: 'Amazon.co.uk*1H97Y6TL4 - AMAZON.CO.UK - Card Ending: 2327//OTHER/' - reconciled: false - amount: -17.45 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:37Z' - - id: '414441957' - accountId: '738783' - clearedOnDate: '2023-01-09T00:00:00' - description: 'UBER *TRIP - HELP.UBER.COM - Card Ending: 1332//OTHER/' - reconciled: false - amount: -15.03 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:37Z' - - id: '414441959' - accountId: '738783' - clearedOnDate: '2023-01-09T00:00:00' - description: 'UBER *TRIP - HELP.UBER.COM - Card Ending: 1332//OTHER/' - reconciled: false - amount: -16.43 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:37Z' - - id: '414441960' - accountId: '738783' - clearedOnDate: '2023-01-09T00:00:00' - description: Payment made (BACS)//OTHER/ - reconciled: false - amount: 5000 - transactionType: Credit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:37Z' - - id: '414441961' - accountId: '738783' - clearedOnDate: '2023-01-10T00:00:00' - description: 'AMZNMktplace - amazon.co.uk - Card Ending: 2327//OTHER/' - reconciled: false - amount: -32.57 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:38Z' - - id: '414441962' - accountId: '738783' - clearedOnDate: '2023-01-10T00:00:00' - description: 'TESCO STORES - LONDON - Card Ending: 5913//OTHER/' - reconciled: false - amount: -3.9 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:38Z' - - id: '414441963' - accountId: '738783' - clearedOnDate: '2023-01-10T00:00:00' - description: 'VICTORIA INN - PECKHAM - Card Ending: 5913//OTHER/' - reconciled: false - amount: -15.5 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:38Z' - - id: '414441965' - accountId: '738783' - clearedOnDate: '2023-01-10T00:00:00' - description: 'TFL TRAVEL CH - TFL.GOV.UK/CP - Card Ending: 5913//OTHER/' - reconciled: false - amount: -7.7 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:38Z' - - id: '414441967' - accountId: '738783' - clearedOnDate: '2023-01-10T00:00:00' - description: 'PRET A MANGER - 326 - Card Ending: 5913//OTHER/' - reconciled: false - amount: -13.8 - transactionType: Debit - modifiedDate: '2023-04-25T14:21:41Z' - sourceModifiedDate: '2023-02-08T09:05:38Z' - pageNumber: 1 - pageSize: 100 - totalResults: 153 - _links: - current: - href: /companies/071ad738-68f3-4561-afd0-69bab9df0803/connections/4fd7c69f-ecc1-45f5-83f2-42ed3391e386/data/bankAccounts/738783/bankTransactions - self: - href: /companies/071ad738-68f3-4561-afd0-69bab9df0803/connections/4fd7c69f-ecc1-45f5-83f2-42ed3391e386/data/bankAccounts/738783/bankTransactions - next: - href: /companies/071ad738-68f3-4561-afd0-69bab9df0803/connections/4fd7c69f-ecc1-45f5-83f2-42ed3391e386/data/bankAccounts/738783/bankTransactions?page=2&pageSize=100 - KashFlow: - value: - results: - - id: '765768:137014109' - accountId: '765768' - clearedOnDate: '2020-04-28T00:00:00' - description: FIRST Transaction - reconciled: false - amount: 100 - transactionType: Unknown - modifiedDate: '2022-09-30T10:29:15Z' - - id: '765768:137014143' - accountId: '765768' - clearedOnDate: '2020-04-28T00:00:00' - description: SECOND Transaction - reconciled: false - amount: 120 - transactionType: Unknown - modifiedDate: '2022-09-30T10:29:15Z' - - id: '765768:93269803' - accountId: '765768' - clearedOnDate: '2020-04-28T00:00:00' - description: 'KF00021:' - reconciled: false - amount: -5 - transactionType: Unknown - modifiedDate: '2022-09-30T10:29:15Z' - - id: '765768:141203309' - accountId: '765768' - clearedOnDate: '2020-06-18T00:00:00' - description: 'INV #33: Customer overpayment' - reconciled: false - amount: 110 - transactionType: Unknown - modifiedDate: '2022-09-30T10:29:15Z' - - id: '765768:144653342' - accountId: '765768' - clearedOnDate: '2020-10-23T00:00:00' - description: '' - reconciled: false - amount: 1 - transactionType: Unknown - modifiedDate: '2022-09-30T10:29:15Z' - pageNumber: 1 - pageSize: 100 - totalResults: 5 - _links: - current: - href: /companies/3a707a99-89da-4b16-a5d6-595333a16352/connections/ecab4f64-1a04-4c53-a343-bfd879f41f67/data/bankAccounts/765768/bankTransactions - self: - href: /companies/3a707a99-89da-4b16-a5d6-595333a16352/connections/ecab4f64-1a04-4c53-a343-bfd879f41f67/data/bankAccounts/765768/bankTransactions - QuickBooks Desktop: - value: - results: - - id: D7B-933784104 - accountId: 20000-933270541 - clearedOnDate: '2022-12-01T00:00:00' - description: '' - reconciled: false - amount: -1200 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:04:10' - - id: DFA-933785132 - accountId: 20000-933270541 - clearedOnDate: '2022-12-05T00:00:00' - description: '' - reconciled: false - amount: -35 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:04:11' - - id: E2E-933785785 - accountId: 20000-933270541 - clearedOnDate: '2022-12-10T00:00:00' - description: '' - reconciled: false - amount: -197.59 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:04:11' - - id: 536B-1197755199 - accountId: 20000-933270541 - clearedOnDate: '2022-12-20T00:00:00' - description: '' - reconciled: false - amount: -2100 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:05:47' - - id: 5C18-1197711471-to - accountId: 20000-933270541 - clearedOnDate: '2022-12-31T00:00:00' - description: Opening Balance - Bank Balance - Checking Account - reconciled: false - amount: 27874.62 - transactionType: Other - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:06' - - id: 3A09-1071529982 - accountId: 20000-933270541 - clearedOnDate: '2023-01-11T00:00:00' - description: Monthly Truck Payment - reconciled: false - amount: -532.97 - transactionType: Unknown - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:04:58' - - id: 95C6-1197729008 - accountId: 20000-933270541 - clearedOnDate: '2023-01-15T00:00:00' - description: 941 Deposit for December 2005 Payyroll - reconciled: false - amount: -3495.82 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:19' - - id: 95CA-1197729081 - accountId: 20000-933270541 - clearedOnDate: '2023-01-15T00:00:00' - description: FUTA Payment - 4 Qrt 2005 - reconciled: false - amount: -100 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:19' - - id: 95D0-1197729222 - accountId: 20000-933270541 - clearedOnDate: '2023-01-15T00:00:00' - description: State Unemployment and Disability - 4th Quarter 2005 - reconciled: false - amount: -208.09 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:19' - - id: 95D4-1197729376 - accountId: 20000-933270541 - clearedOnDate: '2023-01-15T00:00:00' - description: Worker's Compensation - 4th Quarter 2005 - reconciled: false - amount: -1214.31 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:19' - - id: 9C06-1181931827 - accountId: 20000-933270541 - clearedOnDate: '2023-01-15T00:00:00' - description: Deposit - reconciled: false - amount: 1228.18 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:23' - - id: 9E3A-1182063799 - accountId: 20000-933270541 - clearedOnDate: '2023-01-15T00:00:00' - description: '' - reconciled: false - amount: -308.34 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:30' - - id: A293-1197953458 - accountId: 20000-933270541 - clearedOnDate: '2023-01-15T00:00:00' - description: '' - reconciled: false - amount: -12362.89 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:35' - - id: A2AB-1197953786 - accountId: 20000-933270541 - clearedOnDate: '2023-01-15T00:00:00' - description: '' - reconciled: false - amount: -9521 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:35' - - id: A33E-1197955762 - accountId: 20000-933270541 - clearedOnDate: '2023-01-15T00:00:00' - description: ABCD 11-234567 - reconciled: false - amount: -3146.88 - transactionType: Unknown - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:36' - - id: 6992-1197775718 - accountId: 20000-933270541 - clearedOnDate: '2023-01-17T00:00:00' - description: Deposit - reconciled: false - amount: 15281.67 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:11' - - id: 3E5D-1071498699 - accountId: 20000-933270541 - clearedOnDate: '2023-01-21T00:00:00' - description: 786-35 - reconciled: false - amount: -712.56 - transactionType: Unknown - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:05:09' - - id: 699D-1197775731 - accountId: 20000-933270541 - clearedOnDate: '2023-01-25T00:00:00' - description: Deposit - reconciled: false - amount: 31474.25 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:11' - - id: 53D-933354764 - accountId: 20000-933270541 - clearedOnDate: '2023-01-31T00:00:00' - description: Monthly Water - Flat Rate Plan - reconciled: false - amount: -24 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:04:00' - - id: 9E3D-1182131998 - accountId: 20000-933270541 - clearedOnDate: '2023-01-31T00:00:00' - description: '' - reconciled: false - amount: -205 - transactionType: Unknown - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:30' - - id: 9E42-1182131999 - accountId: 20000-933270541 - clearedOnDate: '2023-01-31T00:00:00' - description: '' - reconciled: false - amount: -532 - transactionType: Unknown - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:30' - - id: 9E47-1182131999 - accountId: 20000-933270541 - clearedOnDate: '2023-01-31T00:00:00' - description: '' - reconciled: false - amount: -623 - transactionType: Unknown - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:30' - - id: 9E4C-1182131999 - accountId: 20000-933270541 - clearedOnDate: '2023-01-31T00:00:00' - description: '' - reconciled: false - amount: -13759 - transactionType: Unknown - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:30' - - id: 9ED6-1182133365 - accountId: 20000-933270541 - clearedOnDate: '2023-01-31T00:00:00' - description: Fuel - reconciled: false - amount: -138 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:32' - - id: 9F2D-1197948760 - accountId: 20000-933270541 - clearedOnDate: '2023-01-31T00:00:00' - description: Monthly Vehicle Repairs and Maintenance - reconciled: false - amount: -218 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:33' - - id: 9F96-1197949640 - accountId: 20000-933270541 - clearedOnDate: '2023-01-31T00:00:00' - description: 'Acct #560-82645-99C' - reconciled: false - amount: -123.67 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:33' - - id: A2CD-1197955250 - accountId: 20000-933270541 - clearedOnDate: '2023-01-31T00:00:00' - description: Pmt# 1 - reconciled: false - amount: -2710.9 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:36' - - id: F29-933787474 - accountId: 20000-933270541 - clearedOnDate: '2023-01-31T00:00:00' - description: Checking Account Service Charge - reconciled: false - amount: -12.5 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:04:13' - - id: 698D-1197775698 - accountId: 20000-933270541 - clearedOnDate: '2023-02-02T00:00:00' - description: Deposit - reconciled: false - amount: 1040 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:11' - - id: 69A8-1197775740 - accountId: 20000-933270541 - clearedOnDate: '2023-02-09T00:00:00' - description: Deposit - reconciled: false - amount: 271.53 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:11' - - id: 3A10-1071529997 - accountId: 20000-933270541 - clearedOnDate: '2023-02-11T00:00:00' - description: Monthly Truck Payment - reconciled: false - amount: -532.97 - transactionType: Unknown - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:04:58' - - id: A0BD-1197950967 - accountId: 20000-933270541 - clearedOnDate: '2023-02-15T00:00:00' - description: '' - reconciled: false - amount: -268.39 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:35' - - id: A2AF-1197953842 - accountId: 20000-933270541 - clearedOnDate: '2023-02-15T00:00:00' - description: '' - reconciled: false - amount: -4050.98 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:35' - - id: A343-1197955826 - accountId: 20000-933270541 - clearedOnDate: '2023-02-15T00:00:00' - description: ABCD 11-234567 - reconciled: false - amount: -1466.32 - transactionType: Unknown - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:36' - - id: 9C0B-1181931843 - accountId: 20000-933270541 - clearedOnDate: '2023-02-28T00:00:00' - description: Deposit - reconciled: false - amount: 25471.56 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:23' - - id: 9E63-1182132109 - accountId: 20000-933270541 - clearedOnDate: '2023-02-28T00:00:00' - description: For Vetter Basement Remodel - reconciled: false - amount: -2050 - transactionType: Unknown - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:30' - - id: 9ED9-1182133383 - accountId: 20000-933270541 - clearedOnDate: '2023-02-28T00:00:00' - description: Fuel - reconciled: false - amount: -142 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:32' - - id: 9F33-1197948806 - accountId: 20000-933270541 - clearedOnDate: '2023-02-28T00:00:00' - description: Monthly Vechiicle Repairs and Maintenance - reconciled: false - amount: -222 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:33' - - id: 9F99-1197949656 - accountId: 20000-933270541 - clearedOnDate: '2023-02-28T00:00:00' - description: 'Acct #560-82645-99C' - reconciled: false - amount: -125.89 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:33' - - id: 9FBD-1197949852 - accountId: 20000-933270541 - clearedOnDate: '2023-02-28T00:00:00' - description: Monthly Water - Flat Rate Plan - reconciled: false - amount: -24 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:34' - - id: A052-1197950680 - accountId: 20000-933270541 - clearedOnDate: '2023-02-28T00:00:00' - description: Flat Rate Phone and Long Distance Bundle - reconciled: false - amount: -80 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:34' - - id: A081-1197950831 - accountId: 20000-933270541 - clearedOnDate: '2023-02-28T00:00:00' - description: Checking Account Service Charge - reconciled: false - amount: -12.5 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:35' - - id: A2D1-1197955271 - accountId: 20000-933270541 - clearedOnDate: '2023-02-28T00:00:00' - description: Pmt# 2 - reconciled: false - amount: -2710.9 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:36' - - id: 3A17-1071530007 - accountId: 20000-933270541 - clearedOnDate: '2023-03-11T00:00:00' - description: Monthly Truck Payment - reconciled: false - amount: -532.97 - transactionType: Unknown - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:04:58' - - id: 9C38-1182054225 - accountId: 20000-933270541 - clearedOnDate: '2023-03-13T00:00:00' - description: '' - reconciled: false - amount: -7500 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:24' - - id: A296-1197953484 - accountId: 20000-933270541 - clearedOnDate: '2023-03-15T00:00:00' - description: '' - reconciled: false - amount: -1600 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:35' - - id: A346-1197955854 - accountId: 20000-933270541 - clearedOnDate: '2023-03-15T00:00:00' - description: ABCD 11-234567 - reconciled: false - amount: -83.6 - transactionType: Unknown - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:36' - - id: 9C10-1181931855 - accountId: 20000-933270541 - clearedOnDate: '2023-03-20T00:00:00' - description: Deposit - reconciled: false - amount: 6278.8 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:23' - - id: 9E72-1182132247 - accountId: 20000-933270541 - clearedOnDate: '2023-03-31T00:00:00' - description: '' - reconciled: false - amount: -435 - transactionType: Unknown - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:30' - - id: 9EDC-1182133383 - accountId: 20000-933270541 - clearedOnDate: '2023-03-31T00:00:00' - description: Fuel - reconciled: false - amount: -127 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:32' - - id: 9F36-1197948806 - accountId: 20000-933270541 - clearedOnDate: '2023-03-31T00:00:00' - description: Monthly Vechiicle Repairs and Maintenance - reconciled: false - amount: -232 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:33' - - id: 9F7B-1197949443 - accountId: 20000-933270541 - clearedOnDate: '2023-03-31T00:00:00' - description: Payment - Quarterly Office Maintenance Contract - reconciled: false - amount: -450 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:33' - - id: 9F9C-1197949656 - accountId: 20000-933270541 - clearedOnDate: '2023-03-31T00:00:00' - description: 'Acct #560-82645-99C' - reconciled: false - amount: -389.2 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:33' - - id: 9FC0-1197949852 - accountId: 20000-933270541 - clearedOnDate: '2023-03-31T00:00:00' - description: Monthly Water - Flat Rate Plan - reconciled: false - amount: -24 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:34' - - id: A056-1197950680 - accountId: 20000-933270541 - clearedOnDate: '2023-03-31T00:00:00' - description: Flat Rate Phone and Long Distance Bundle - reconciled: false - amount: -80 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:34' - - id: A084-1197950832 - accountId: 20000-933270541 - clearedOnDate: '2023-03-31T00:00:00' - description: Checking Account Service Charge - reconciled: false - amount: -12.5 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:35' - - id: A2D5-1197955280 - accountId: 20000-933270541 - clearedOnDate: '2023-03-31T00:00:00' - description: Pmt# 3 - reconciled: false - amount: -2710.9 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:36' - - id: 3A1E-1071530019 - accountId: 20000-933270541 - clearedOnDate: '2023-04-12T00:00:00' - description: Monthly Truck Payment - reconciled: false - amount: -532.97 - transactionType: Unknown - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:04:58' - - id: 4271-1071523732 - accountId: 20000-933270541 - clearedOnDate: '2023-04-17T00:00:00' - description: '' - reconciled: false - amount: -714 - transactionType: Unknown - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:05:32' - - id: 3E98-1071499056 - accountId: 20000-933270541 - clearedOnDate: '2023-04-19T00:00:00' - description: 786-35 - reconciled: false - amount: -712.56 - transactionType: Unknown - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:05:11' - - id: 9C68-1182054440 - accountId: 20000-933270541 - clearedOnDate: '2023-04-20T00:00:00' - description: Deposit - reconciled: false - amount: 16500 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:24' - - id: 9EDF-1182133383 - accountId: 20000-933270541 - clearedOnDate: '2023-04-30T00:00:00' - description: Fuel - reconciled: false - amount: -162 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:32' - - id: 9F39-1197948806 - accountId: 20000-933270541 - clearedOnDate: '2023-04-30T00:00:00' - description: Monthly Vechiicle Repairs and Maintenance - reconciled: false - amount: -192 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:33' - - id: 9F9F-1197949656 - accountId: 20000-933270541 - clearedOnDate: '2023-04-30T00:00:00' - description: 'Acct #560-82645-99C' - reconciled: false - amount: -120.93 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:33' - - id: 9FC3-1197949852 - accountId: 20000-933270541 - clearedOnDate: '2023-04-30T00:00:00' - description: Monthly Water - Flat Rate Plan - reconciled: false - amount: -24 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:34' - - id: A05A-1197950680 - accountId: 20000-933270541 - clearedOnDate: '2023-04-30T00:00:00' - description: Flat Rate Phone and Long Distance Bundle - reconciled: false - amount: -80 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:34' - - id: A087-1197950832 - accountId: 20000-933270541 - clearedOnDate: '2023-04-30T00:00:00' - description: Checking Account Service Charge - reconciled: false - amount: -12.5 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:35' - - id: A2D9-1197955286 - accountId: 20000-933270541 - clearedOnDate: '2023-04-30T00:00:00' - description: Pmt# 4 - reconciled: false - amount: -2710.9 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:36' - - id: 9C86-1182054823 - accountId: 20000-933270541 - clearedOnDate: '2023-05-01T00:00:00' - description: '' - reconciled: false - amount: -7500 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:24' - - id: 3A25-1071530029 - accountId: 20000-933270541 - clearedOnDate: '2023-05-13T00:00:00' - description: Monthly Truck Payment - reconciled: false - amount: -532.97 - transactionType: Unknown - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:04:59' - - id: A0C0-1197950991 - accountId: 20000-933270541 - clearedOnDate: '2023-05-15T00:00:00' - description: '' - reconciled: false - amount: -950.23 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:35' - - id: A299-1197953515 - accountId: 20000-933270541 - clearedOnDate: '2023-05-15T00:00:00' - description: '' - reconciled: false - amount: -1400 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:35' - - id: A349-1197955899 - accountId: 20000-933270541 - clearedOnDate: '2023-05-15T00:00:00' - description: ABCD 11-234567 - reconciled: false - amount: -318.02 - transactionType: Unknown - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:36' - - id: 9CB8-1182055085 - accountId: 20000-933270541 - clearedOnDate: '2023-05-31T00:00:00' - description: Deposit - reconciled: false - amount: 16500 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:25' - - id: 9EE2-1182133383 - accountId: 20000-933270541 - clearedOnDate: '2023-05-31T00:00:00' - description: Fuel - reconciled: false - amount: -143 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:32' - - id: 9F3C-1197948806 - accountId: 20000-933270541 - clearedOnDate: '2023-05-31T00:00:00' - description: Monthly Vechiicle Repairs and Maintenance - reconciled: false - amount: -232 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:33' - - id: 9FA2-1197949656 - accountId: 20000-933270541 - clearedOnDate: '2023-05-31T00:00:00' - description: 'Acct #560-82645-99C' - reconciled: false - amount: -128.03 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:33' - - id: 9FC6-1197949852 - accountId: 20000-933270541 - clearedOnDate: '2023-05-31T00:00:00' - description: Monthly Water - Flat Rate Plan - reconciled: false - amount: -24 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:34' - - id: A05E-1197950680 - accountId: 20000-933270541 - clearedOnDate: '2023-05-31T00:00:00' - description: Flat Rate Phone and Long Distance Bundle - reconciled: false - amount: -80 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:34' - - id: A08A-1197950832 - accountId: 20000-933270541 - clearedOnDate: '2023-05-31T00:00:00' - description: Checking Account Service Charge - reconciled: false - amount: -12.5 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:35' - - id: A2DD-1197955294 - accountId: 20000-933270541 - clearedOnDate: '2023-05-31T00:00:00' - description: Pmt# 5 - reconciled: false - amount: -2710.9 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:36' - - id: 9CBD-1182055262 - accountId: 20000-933270541 - clearedOnDate: '2023-06-06T00:00:00' - description: '' - reconciled: false - amount: -5275 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:25' - - id: 3A2C-1071530042 - accountId: 20000-933270541 - clearedOnDate: '2023-06-10T00:00:00' - description: Monthly Truck Payment - reconciled: false - amount: -532.97 - transactionType: Unknown - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:04:59' - - id: 5356-1197761596 - accountId: 20000-933270541 - clearedOnDate: '2023-06-16T00:00:00' - description: '' - reconciled: false - amount: -1786 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:05:46' - - id: 9EE5-1182133383 - accountId: 20000-933270541 - clearedOnDate: '2023-06-30T00:00:00' - description: Fuel - reconciled: false - amount: -157 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:32' - - id: 9F3F-1197948806 - accountId: 20000-933270541 - clearedOnDate: '2023-06-30T00:00:00' - description: Monthly Vechiicle Repairs and Maintenance - reconciled: false - amount: -186 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:33' - - id: 9F7E-1197949458 - accountId: 20000-933270541 - clearedOnDate: '2023-06-30T00:00:00' - description: Payment - Quarterly Office Maintenance Contract - reconciled: false - amount: -450 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:33' - - id: 9FA5-1197949656 - accountId: 20000-933270541 - clearedOnDate: '2023-06-30T00:00:00' - description: 'Acct #560-82645-99C' - reconciled: false - amount: -135.02 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:33' - - id: 9FC9-1197949852 - accountId: 20000-933270541 - clearedOnDate: '2023-06-30T00:00:00' - description: Monthly Water - Flat Rate Plan - reconciled: false - amount: -24 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:34' - - id: A062-1197950680 - accountId: 20000-933270541 - clearedOnDate: '2023-06-30T00:00:00' - description: Flat Rate Phone and Long Distance Bundle - reconciled: false - amount: -80 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:34' - - id: A08D-1197950832 - accountId: 20000-933270541 - clearedOnDate: '2023-06-30T00:00:00' - description: Checking Account Service Charge - reconciled: false - amount: -12.5 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:35' - - id: A2E1-1197955306 - accountId: 20000-933270541 - clearedOnDate: '2023-06-30T00:00:00' - description: Pmt# 6 - reconciled: false - amount: -2710.9 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:36' - - id: 3A33-1071530066 - accountId: 20000-933270541 - clearedOnDate: '2023-07-11T00:00:00' - description: Monthly Truck Payment - reconciled: false - amount: -532.97 - transactionType: Unknown - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:04:59' - - id: 3E67-1071498733 - accountId: 20000-933270541 - clearedOnDate: '2023-07-19T00:00:00' - description: 786-35 - reconciled: false - amount: -712.56 - transactionType: Unknown - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:05:09' - - id: A0C3-1197951027 - accountId: 20000-933270541 - clearedOnDate: '2023-07-23T00:00:00' - description: '' - reconciled: false - amount: -239.29 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:35' - - id: 9EE8-1182133383 - accountId: 20000-933270541 - clearedOnDate: '2023-07-31T00:00:00' - description: Fuel - reconciled: false - amount: -126 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:32' - - id: 9F42-1197948806 - accountId: 20000-933270541 - clearedOnDate: '2023-07-31T00:00:00' - description: Monthly Vechiicle Repairs and Maintenance - reconciled: false - amount: -126 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:33' - - id: 9FA8-1197949656 - accountId: 20000-933270541 - clearedOnDate: '2023-07-31T00:00:00' - description: 'Acct #560-82645-99C' - reconciled: false - amount: -128.03 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:33' - - id: 9FCC-1197949852 - accountId: 20000-933270541 - clearedOnDate: '2023-07-31T00:00:00' - description: Monthly Water - Flat Rate Plan - reconciled: false - amount: -24 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:34' - - id: A066-1197950680 - accountId: 20000-933270541 - clearedOnDate: '2023-07-31T00:00:00' - description: Flat Rate Phone and Long Distance Bundle - reconciled: false - amount: -80 - transactionType: Payment - modifiedDate: '2023-04-26T09:07:14Z' - sourceModifiedDate: '2023-12-16T05:06:34' - pageNumber: 1 - pageSize: 100 - totalResults: 495 - _links: - current: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/connections/2c26b4da-97d4-4ba9-baad-1e18b49b96ac/data/bankAccounts/20000-933270541/bankTransactions - self: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/connections/2c26b4da-97d4-4ba9-baad-1e18b49b96ac/data/bankAccounts/20000-933270541/bankTransactions - next: - href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/connections/2c26b4da-97d4-4ba9-baad-1e18b49b96ac/data/bankAccounts/20000-933270541/bankTransactions?page=2&pageSize=100 - Sage 50 (UK): - value: - results: - - id: '73' - accountId: '1200' - clearedOnDate: '2021-01-29T00:00:00' - description: DD/STO - reconciled: false - amount: -162 - balance: -10164.54 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '52' - accountId: '1200' - clearedOnDate: '2021-01-30T00:00:00' - description: '568953' - reconciled: false - amount: -1497.58 - balance: -10302.54 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '53' - accountId: '1200' - clearedOnDate: '2021-01-30T00:00:00' - description: '5897532' - reconciled: false - amount: 500 - balance: -9802.54 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '54' - accountId: '1200' - clearedOnDate: '2021-01-30T00:00:00' - description: TRANS - reconciled: false - amount: -250 - balance: -10052.54 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '58' - accountId: '1200' - clearedOnDate: '2021-01-30T00:00:00' - description: VOID - reconciled: false - amount: 50 - balance: -10002.54 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '50' - accountId: '1200' - clearedOnDate: '2021-01-31T00:00:00' - description: TRANS - reconciled: false - amount: -500 - balance: -8804.96 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '85' - accountId: '1200' - clearedOnDate: '2021-01-31T00:00:00' - description: '6565689' - reconciled: false - amount: -1800 - balance: -11964.54 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '97' - accountId: '1200' - clearedOnDate: '2021-01-31T00:00:00' - description: Salary - reconciled: false - amount: -5932.29 - balance: -17896.83 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '1183' - accountId: '1200' - clearedOnDate: '2021-09-01T00:00:00' - description: DD/STO - reconciled: false - amount: -162 - balance: 11299.91 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '1184' - accountId: '1200' - clearedOnDate: '2021-09-15T00:00:00' - description: DD/STO - reconciled: false - amount: -1200 - balance: 10099.91 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '1185' - accountId: '1200' - clearedOnDate: '2021-09-28T00:00:00' - description: DD/STO - reconciled: false - amount: -150 - balance: 9949.91 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '1186' - accountId: '1200' - clearedOnDate: '2021-09-28T00:00:00' - description: DD/STO - reconciled: false - amount: -5.55 - balance: 9944.36 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '1187' - accountId: '1200' - clearedOnDate: '2021-10-13T00:00:00' - description: DD/STO - reconciled: false - amount: -1200 - balance: 8744.36 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '1188' - accountId: '1200' - clearedOnDate: '2021-10-28T00:00:00' - description: DD/STO - reconciled: false - amount: -150 - balance: 8594.36 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '1189' - accountId: '1200' - clearedOnDate: '2021-10-28T00:00:00' - description: DD/STO - reconciled: false - amount: -5.55 - balance: 8588.81 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '1190' - accountId: '1200' - clearedOnDate: '2021-11-10T00:00:00' - description: DD/STO - reconciled: false - amount: -1200 - balance: 7388.81 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '1191' - accountId: '1200' - clearedOnDate: '2021-11-28T00:00:00' - description: DD/STO - reconciled: false - amount: -150 - balance: 7238.81 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '1192' - accountId: '1200' - clearedOnDate: '2021-11-28T00:00:00' - description: DD/STO - reconciled: false - amount: -5.55 - balance: 7233.26 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '1193' - accountId: '1200' - clearedOnDate: '2021-12-08T00:00:00' - description: DD/STO - reconciled: false - amount: -1200 - balance: 6033.26 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '1194' - accountId: '1200' - clearedOnDate: '2021-12-28T00:00:00' - description: DD/STO - reconciled: false - amount: -150 - balance: 5883.26 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '1195' - accountId: '1200' - clearedOnDate: '2021-12-28T00:00:00' - description: DD/STO - reconciled: false - amount: -5.55 - balance: 5877.71 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '24' - accountId: '1200' - clearedOnDate: '2021-12-31T00:00:00' - description: O/Bal - reconciled: true - amount: -6511.96 - balance: -6511.96 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '26' - accountId: '1200' - clearedOnDate: '2021-12-31T00:00:00' - description: '56956' - reconciled: false - amount: 55 - balance: -6456.96 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '27' - accountId: '1200' - clearedOnDate: '2021-12-31T00:00:00' - description: '656678' - reconciled: false - amount: -150 - balance: -6606.96 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '28' - accountId: '1200' - clearedOnDate: '2021-12-31T00:00:00' - description: '656679' - reconciled: false - amount: -352 - balance: -6958.96 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '29' - accountId: '1200' - clearedOnDate: '2021-12-31T00:00:00' - description: '656680' - reconciled: false - amount: -550 - balance: -7508.96 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '30' - accountId: '1200' - clearedOnDate: '2021-12-31T00:00:00' - description: '656681' - reconciled: false - amount: -250 - balance: -7758.96 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '31' - accountId: '1200' - clearedOnDate: '2021-12-31T00:00:00' - description: '656869' - reconciled: false - amount: -546 - balance: -8304.96 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '1196' - accountId: '1200' - clearedOnDate: '2022-01-01T00:00:00' - description: DD/STO - reconciled: false - amount: -162 - balance: 5715.71 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '1197' - accountId: '1200' - clearedOnDate: '2022-01-05T00:00:00' - description: DD/STO - reconciled: false - amount: -1200 - balance: 4515.71 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '1198' - accountId: '1200' - clearedOnDate: '2022-01-28T00:00:00' - description: DD/STO - reconciled: false - amount: -150 - balance: 4365.71 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '1199' - accountId: '1200' - clearedOnDate: '2022-01-28T00:00:00' - description: DD/STO - reconciled: false - amount: -5.55 - balance: 4360.16 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '255' - accountId: '1200' - clearedOnDate: '2022-01-29T00:00:00' - description: (BACS) - reconciled: false - amount: -370.71 - balance: -18267.54 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '256' - accountId: '1200' - clearedOnDate: '2022-01-29T00:00:00' - description: '100001' - reconciled: false - amount: -256.36 - balance: -18523.9 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '257' - accountId: '1200' - clearedOnDate: '2022-01-29T00:00:00' - description: '100002' - reconciled: false - amount: -25.5 - balance: -18549.4 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '258' - accountId: '1200' - clearedOnDate: '2022-01-29T00:00:00' - description: '100003' - reconciled: false - amount: -1977.58 - balance: -20526.98 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '259' - accountId: '1200' - clearedOnDate: '2022-01-29T00:00:00' - description: '100004' - reconciled: false - amount: -599.03 - balance: -21126.01 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '260' - accountId: '1200' - clearedOnDate: '2022-01-29T00:00:00' - description: '100005' - reconciled: false - amount: -7141.98 - balance: -28267.99 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '261' - accountId: '1200' - clearedOnDate: '2022-01-29T00:00:00' - description: '100006' - reconciled: false - amount: -150.96 - balance: -28418.95 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '262' - accountId: '1200' - clearedOnDate: '2022-01-29T00:00:00' - description: '100007' - reconciled: false - amount: -63 - balance: -28481.95 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '263' - accountId: '1200' - clearedOnDate: '2022-01-29T00:00:00' - description: '100008' - reconciled: false - amount: -35.01 - balance: -28516.96 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '264' - accountId: '1200' - clearedOnDate: '2022-01-29T00:00:00' - description: '100009' - reconciled: false - amount: -1659.34 - balance: -30176.3 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '265' - accountId: '1200' - clearedOnDate: '2022-01-29T00:00:00' - description: '4353454' - reconciled: false - amount: 1432.17 - balance: -28744.13 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '266' - accountId: '1200' - clearedOnDate: '2022-01-29T00:00:00' - description: '' - reconciled: false - amount: 2684.26 - balance: -26059.87 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '267' - accountId: '1200' - clearedOnDate: '2022-01-29T00:00:00' - description: '' - reconciled: false - amount: 1204.57 - balance: -24855.3 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '268' - accountId: '1200' - clearedOnDate: '2022-01-29T00:00:00' - description: '' - reconciled: false - amount: 1140.78 - balance: -23714.52 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '269' - accountId: '1200' - clearedOnDate: '2022-01-29T00:00:00' - description: '' - reconciled: false - amount: 4372 - balance: -19342.52 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '270' - accountId: '1200' - clearedOnDate: '2022-01-29T00:00:00' - description: '' - reconciled: false - amount: 1946.18 - balance: -17396.34 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '271' - accountId: '1200' - clearedOnDate: '2022-01-29T00:00:00' - description: '' - reconciled: false - amount: 11123.33 - balance: -6273.01 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '1200' - accountId: '1200' - clearedOnDate: '2022-02-02T00:00:00' - description: DD/STO - reconciled: false - amount: -1200 - balance: 3160.16 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '300' - accountId: '1200' - clearedOnDate: '2022-02-03T00:00:00' - description: TRANS - reconciled: false - amount: -500 - balance: -16588.09 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '1201' - accountId: '1200' - clearedOnDate: '2022-02-28T00:00:00' - description: DD/STO - reconciled: false - amount: -150 - balance: 3010.16 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '1202' - accountId: '1200' - clearedOnDate: '2022-02-28T00:00:00' - description: DD/STO - reconciled: false - amount: -5.55 - balance: 3004.61 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '276' - accountId: '1200' - clearedOnDate: '2022-02-28T00:00:00' - description: Credit - reconciled: false - amount: -500 - balance: -6773.01 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '279' - accountId: '1200' - clearedOnDate: '2022-02-28T00:00:00' - description: '' - reconciled: false - amount: -58.75 - balance: -6831.76 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '280' - accountId: '1200' - clearedOnDate: '2022-02-28T00:00:00' - description: TRANS - reconciled: false - amount: -1400 - balance: -8231.76 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '282' - accountId: '1200' - clearedOnDate: '2022-02-28T00:00:00' - description: TRANS - reconciled: false - amount: -12600 - balance: -20831.76 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '286' - accountId: '1200' - clearedOnDate: '2022-02-28T00:00:00' - description: TRANS - reconciled: false - amount: 6500 - balance: -14331.76 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '287' - accountId: '1200' - clearedOnDate: '2022-02-28T00:00:00' - description: PAYE - reconciled: false - amount: -1256.33 - balance: -15588.09 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '288' - accountId: '1200' - clearedOnDate: '2022-02-28T00:00:00' - description: Deposit - reconciled: false - amount: -500 - balance: -16088.09 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '314' - accountId: '1200' - clearedOnDate: '2022-02-28T00:00:00' - description: DD/STO - reconciled: false - amount: -162 - balance: -16750.09 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '315' - accountId: '1200' - clearedOnDate: '2022-02-28T00:00:00' - description: DD/STO - reconciled: false - amount: -1200 - balance: -17950.09 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '325' - accountId: '1200' - clearedOnDate: '2022-02-28T00:00:00' - description: Loan - reconciled: false - amount: -150 - balance: -18100.09 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '326' - accountId: '1200' - clearedOnDate: '2022-02-28T00:00:00' - description: Loan - reconciled: false - amount: -5.55 - balance: -18105.64 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '328' - accountId: '1200' - clearedOnDate: '2022-02-28T00:00:00' - description: Returned - reconciled: false - amount: 103.4 - balance: -18002.24 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '331' - accountId: '1200' - clearedOnDate: '2022-02-28T00:00:00' - description: Salary - reconciled: false - amount: -5932.29 - balance: -23934.53 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '523' - accountId: '1200' - clearedOnDate: '2022-02-28T00:00:00' - description: '' - reconciled: false - amount: 6556.33 - balance: -17378.2 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '525' - accountId: '1200' - clearedOnDate: '2022-02-28T00:00:00' - description: '' - reconciled: false - amount: 3350.33 - balance: -14027.87 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '526' - accountId: '1200' - clearedOnDate: '2022-02-28T00:00:00' - description: (BACS) - reconciled: false - amount: -435.14 - balance: -14463.01 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '529' - accountId: '1200' - clearedOnDate: '2022-02-28T00:00:00' - description: '12324' - reconciled: false - amount: -8561.48 - balance: -23024.49 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '532' - accountId: '1200' - clearedOnDate: '2022-03-01T00:00:00' - description: VOID - reconciled: false - amount: 352.5 - balance: -22671.99 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '534' - accountId: '1200' - clearedOnDate: '2022-03-01T00:00:00' - description: SED - reconciled: false - amount: 55 - balance: -22616.99 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '1203' - accountId: '1200' - clearedOnDate: '2022-03-02T00:00:00' - description: DD/STO - reconciled: false - amount: -1200 - balance: 1804.61 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '821' - accountId: '1200' - clearedOnDate: '2022-03-10T00:00:00' - description: '' - reconciled: false - amount: 1908.89 - balance: -14370.08 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '820' - accountId: '1200' - clearedOnDate: '2022-03-20T00:00:00' - description: '776' - reconciled: false - amount: 9057.34 - balance: -16278.97 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '606' - accountId: '1200' - clearedOnDate: '2022-03-24T00:00:00' - description: Deposit - reconciled: false - amount: -150 - balance: -22370.09 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '607' - accountId: '1200' - clearedOnDate: '2022-03-25T00:00:00' - description: '44555' - reconciled: false - amount: 100 - balance: -22270.09 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '823' - accountId: '1200' - clearedOnDate: '2022-03-25T00:00:00' - description: '' - reconciled: false - amount: 1770.15 - balance: -12229.5 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '578' - accountId: '1200' - clearedOnDate: '2022-03-27T00:00:00' - description: '456' - reconciled: false - amount: -15 - balance: -22084.91 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '608' - accountId: '1200' - clearedOnDate: '2022-03-27T00:00:00' - description: CREDIT - reconciled: false - amount: -100 - balance: -22370.09 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '824' - accountId: '1200' - clearedOnDate: '2022-03-27T00:00:00' - description: '' - reconciled: false - amount: 1025.86 - balance: -11203.64 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '1204' - accountId: '1200' - clearedOnDate: '2022-03-28T00:00:00' - description: DD/STO - reconciled: false - amount: -150 - balance: 1654.61 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '1205' - accountId: '1200' - clearedOnDate: '2022-03-28T00:00:00' - description: DD/STO - reconciled: false - amount: -5.55 - balance: 1649.06 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '546' - accountId: '1200' - clearedOnDate: '2022-03-28T00:00:00' - description: DD/STO - reconciled: false - amount: -162 - balance: -22778.99 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '547' - accountId: '1200' - clearedOnDate: '2022-03-28T00:00:00' - description: DD/STO - reconciled: false - amount: -1200 - balance: -23978.99 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '548' - accountId: '1200' - clearedOnDate: '2022-03-28T00:00:00' - description: DD/STO - reconciled: false - amount: -150 - balance: -24128.99 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '549' - accountId: '1200' - clearedOnDate: '2022-03-28T00:00:00' - description: DD/STO - reconciled: false - amount: -5.55 - balance: -24134.54 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '555' - accountId: '1200' - clearedOnDate: '2022-03-28T00:00:00' - description: VOID - reconciled: false - amount: 50 - balance: -24084.54 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '560' - accountId: '1200' - clearedOnDate: '2022-03-28T00:00:00' - description: REFUND - reconciled: false - amount: 64.63 - balance: -24019.91 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '562' - accountId: '1200' - clearedOnDate: '2022-03-28T00:00:00' - description: TRANS - reconciled: false - amount: 2000 - balance: -22019.91 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '563' - accountId: '1200' - clearedOnDate: '2022-03-28T00:00:00' - description: TRANS - reconciled: false - amount: -50 - balance: -22069.91 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '584' - accountId: '1200' - clearedOnDate: '2022-03-28T00:00:00' - description: CREDIT - reconciled: false - amount: -70.31 - balance: -22155.22 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '589' - accountId: '1200' - clearedOnDate: '2022-03-28T00:00:00' - description: VOID - reconciled: false - amount: 30 - balance: -22125.22 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '596' - accountId: '1200' - clearedOnDate: '2022-03-28T00:00:00' - description: REFUND - reconciled: false - amount: 35.01 - balance: -22090.21 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '597' - accountId: '1200' - clearedOnDate: '2022-03-28T00:00:00' - description: PAYE - reconciled: false - amount: -2070.23 - balance: -24160.44 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '598' - accountId: '1200' - clearedOnDate: '2022-03-28T00:00:00' - description: NI - reconciled: false - amount: -1003.49 - balance: -25163.93 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '604' - accountId: '1200' - clearedOnDate: '2022-03-28T00:00:00' - description: TRANS - reconciled: false - amount: 3000 - balance: -22163.93 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '605' - accountId: '1200' - clearedOnDate: '2022-03-28T00:00:00' - description: '225' - reconciled: false - amount: -56.16 - balance: -22220.09 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '612' - accountId: '1200' - clearedOnDate: '2022-03-29T00:00:00' - description: NI - reconciled: false - amount: -1003.49 - balance: -29305.87 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - - id: '614' - accountId: '1200' - clearedOnDate: '2022-03-29T00:00:00' - description: Sales - reconciled: false - amount: 179.2 - balance: -29126.67 - transactionType: Credit - modifiedDate: '2023-03-30T14:42:44Z' - sourceModifiedDate: '2022-11-25T09:43:54' - pageNumber: 1 - pageSize: 100 - totalResults: 179 - _links: - current: - href: /companies/cf5f2a47-2990-4221-bae6-0c19c86ac304/connections/8ee4910f-4fc1-47e6-89b1-5931fb33d8f7/data/bankAccounts/1200/bankTransactions - self: - href: /companies/cf5f2a47-2990-4221-bae6-0c19c86ac304/connections/8ee4910f-4fc1-47e6-89b1-5931fb33d8f7/data/bankAccounts/1200/bankTransactions - next: - href: /companies/cf5f2a47-2990-4221-bae6-0c19c86ac304/connections/8ee4910f-4fc1-47e6-89b1-5931fb33d8f7/data/bankAccounts/1200/bankTransactions?page=2&pageSize=100 - Sage Business Cloud Accounting: - value: - results: - - id: 26b727ca84734e3c8e245011bd04dbf1 - accountId: 154d05abe9f24c4babe0f6a741dec1b9 - clearedOnDate: '2020-02-05T00:00:00' - description: string Supplier Payment - reconciled: false - amount: -5 - transactionType: Credit - modifiedDate: '2022-10-24T15:31:14Z' - sourceModifiedDate: '2020-02-07T11:35:39Z' - - id: 508f3fd4403e45cb903b362a4ae55344 - accountId: 154d05abe9f24c4babe0f6a741dec1b9 - clearedOnDate: '2020-02-05T00:00:00' - description: string Supplier Payment - reconciled: false - amount: -3.86 - transactionType: Credit - modifiedDate: '2022-10-24T15:31:14Z' - sourceModifiedDate: '2020-02-10T10:51:43Z' - - id: 52e58431005e44328af44116e0433230 - accountId: 154d05abe9f24c4babe0f6a741dec1b9 - clearedOnDate: '2020-02-05T00:00:00' - description: string Supplier Payment - reconciled: false - amount: -3.85 - transactionType: Credit - modifiedDate: '2022-10-24T15:31:14Z' - sourceModifiedDate: '2020-02-07T14:36:01Z' - - id: f3255e4b79c5427ba5b963d0e26cecfc - accountId: 154d05abe9f24c4babe0f6a741dec1b9 - clearedOnDate: '2020-02-05T00:00:00' - description: string Supplier Payment - reconciled: false - amount: -3.86 - transactionType: Credit - modifiedDate: '2022-10-24T15:31:14Z' - sourceModifiedDate: '2020-02-07T14:19:24Z' - - id: a00e1ce357cc4064b9cce8abe1b15110 - accountId: 154d05abe9f24c4babe0f6a741dec1b9 - clearedOnDate: '2020-04-21T00:00:00' - description: Cash Deposit Bank Transfer - reconciled: false - amount: 1000 - transactionType: Debit - modifiedDate: '2022-10-24T15:31:14Z' - sourceModifiedDate: '2020-04-21T21:03:25Z' - - id: a7d26740129945c3a76209020fbb7fd1 - accountId: 154d05abe9f24c4babe0f6a741dec1b9 - clearedOnDate: '2020-11-25T00:00:00' - description: Bank Transfer - reconciled: false - amount: -40 - transactionType: Credit - modifiedDate: '2022-10-24T15:31:14Z' - sourceModifiedDate: '2020-11-25T19:35:03Z' - - id: 829f45112347471cbf99b0d9afe08113 - accountId: 154d05abe9f24c4babe0f6a741dec1b9 - clearedOnDate: '2021-07-02T00:00:00' - description: Made from codat api Customer Receipt - reconciled: false - amount: 10 - transactionType: Debit - modifiedDate: '2022-10-24T15:31:14Z' - sourceModifiedDate: '2021-07-02T13:14:57Z' - - id: 786f769ae88a4fa898e25e2cbff43be3 - accountId: 154d05abe9f24c4babe0f6a741dec1b9 - clearedOnDate: '2021-07-20T00:00:00' - description: Supplier payment AD Supplier Payment - reconciled: false - amount: -2400 - transactionType: Credit - modifiedDate: '2022-10-24T15:31:14Z' - sourceModifiedDate: '2021-07-22T14:12:38Z' - - id: abb5995867c546c2b32097d515dcef2a - accountId: 154d05abe9f24c4babe0f6a741dec1b9 - clearedOnDate: '2021-07-21T00:00:00' - description: Payment Customer Receipt - reconciled: false - amount: 12 - transactionType: Debit - modifiedDate: '2022-10-24T15:31:14Z' - sourceModifiedDate: '2021-07-21T14:09:59Z' - - id: 943f3bd6eacc4071807d89895fe03ef4 - accountId: 154d05abe9f24c4babe0f6a741dec1b9 - clearedOnDate: '2021-08-17T00:00:00' - description: Ref5565 Other Receipt - reconciled: false - amount: 50 - transactionType: Debit - modifiedDate: '2022-10-24T15:31:14Z' - sourceModifiedDate: '2021-08-17T11:58:37Z' - - id: 039e6bb20b6e44d690601e4dd04a5b21 - accountId: 154d05abe9f24c4babe0f6a741dec1b9 - clearedOnDate: '2021-09-22T00:00:00' - description: Note 1 Customer Receipt - reconciled: false - amount: 1080 - transactionType: Debit - modifiedDate: '2022-10-24T15:31:14Z' - sourceModifiedDate: '2021-09-22T14:22:57Z' - - id: 1a62f54358e74ba4a71dd733f2b08ba4 - accountId: 154d05abe9f24c4babe0f6a741dec1b9 - clearedOnDate: '2021-09-27T00:00:00' - description: Note 2 Customer Receipt - reconciled: false - amount: 1080 - transactionType: Debit - modifiedDate: '2022-10-24T15:31:14Z' - sourceModifiedDate: '2021-09-27T14:04:05Z' - - id: a79ebcf0710d415baad6b588eb28307b - accountId: 154d05abe9f24c4babe0f6a741dec1b9 - clearedOnDate: '2021-12-01T00:00:00' - description: Payment Customer Receipt - reconciled: false - amount: 33 - transactionType: Debit - modifiedDate: '2022-10-24T15:31:14Z' - sourceModifiedDate: '2021-12-01T13:03:00Z' - - id: 4b691b78b6cd43c9a64d75aeb29e4d11 - accountId: 154d05abe9f24c4babe0f6a741dec1b9 - clearedOnDate: '2022-07-19T00:00:00' - description: Bank Transfer - reconciled: false - amount: -10 - transactionType: Credit - modifiedDate: '2022-10-24T15:31:14Z' - sourceModifiedDate: '2022-07-19T08:51:52Z' - - id: 7b1f2f55f39042838d5f7226aa92386f - accountId: 154d05abe9f24c4babe0f6a741dec1b9 - clearedOnDate: '2022-07-19T00:00:00' - description: Bank Transfer - reconciled: false - amount: -1415 - transactionType: Credit - modifiedDate: '2022-10-24T15:31:14Z' - sourceModifiedDate: '2022-07-19T13:15:26Z' - - id: 87eca750292b4cfea216e13bb22923c6 - accountId: 154d05abe9f24c4babe0f6a741dec1b9 - clearedOnDate: '2022-07-19T00:00:00' - description: Bank Transfer - reconciled: false - amount: -10 - transactionType: Credit - modifiedDate: '2022-10-24T15:31:14Z' - sourceModifiedDate: '2022-07-19T13:01:47Z' - - id: a48474f83d214637a700e76e24446086 - accountId: 154d05abe9f24c4babe0f6a741dec1b9 - clearedOnDate: '2022-07-19T00:00:00' - description: Bank Transfer - reconciled: false - amount: -10 - transactionType: Credit - modifiedDate: '2022-10-24T15:31:14Z' - sourceModifiedDate: '2022-07-19T13:10:42Z' - - id: cc1fc960e05c40c1968314efe1175b9f - accountId: 154d05abe9f24c4babe0f6a741dec1b9 - clearedOnDate: '2022-09-14T00:00:00' - description: string Customer Receipt - reconciled: false - amount: 69 - transactionType: Debit - modifiedDate: '2022-10-24T15:31:15Z' - sourceModifiedDate: '2022-09-14T16:20:09Z' - - id: e600eb7549b74d96bdca18b9cc60f39d - accountId: 154d05abe9f24c4babe0f6a741dec1b9 - clearedOnDate: '2022-09-14T00:00:00' - description: Customer Receipt - reconciled: false - amount: 60 - transactionType: Debit - modifiedDate: '2022-10-24T15:31:15Z' - sourceModifiedDate: '2022-09-14T16:12:03Z' - pageNumber: 1 - pageSize: 100 - totalResults: 19 - _links: - current: - href: /companies/390083e2-351b-407c-a3be-55081c36c182/connections/37916fb7-b4b8-4a78-8872-1751e20ee0cd/data/bankAccounts/154d05abe9f24c4babe0f6a741dec1b9/bankTransactions - self: - href: /companies/390083e2-351b-407c-a3be-55081c36c182/connections/37916fb7-b4b8-4a78-8872-1751e20ee0cd/data/bankAccounts/154d05abe9f24c4babe0f6a741dec1b9/bankTransactions - Xero: - value: - results: - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2021-12-20T00:00:00' - description: DD - counterparty: DIISR - reconciled: true - amount: -7267.2 - balance: -3136.22 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2022-02-17T00:00:00' - description: DD - counterparty: Ridgeway University - reconciled: true - amount: 500 - balance: -5703.42 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2022-02-17T00:00:00' - description: INV0010 - counterparty: MADDOX PUBLISHING GP - reconciled: true - amount: 4200 - balance: -6203.42 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2022-02-17T00:00:00' - description: DD - counterparty: DIISR - reconciled: true - amount: -7267.2 - balance: -10403.42 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2022-02-19T00:00:00' - description: DD - counterparty: PowerDirect - reconciled: true - amount: -95.5 - balance: -5798.92 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2022-03-19T00:00:00' - description: DD - counterparty: Ridgeway University - reconciled: true - amount: 500 - balance: -5298.92 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2022-03-21T00:00:00' - description: DD - counterparty: PowerDirect - reconciled: true - amount: -97 - balance: -5395.92 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2022-04-19T00:00:00' - description: INV-0003 - counterparty: Ridgeway University - reconciled: true - amount: 500 - balance: -4895.92 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2022-04-21T00:00:00' - description: DD - counterparty: PowerDirect - reconciled: true - amount: -92 - balance: -4987.92 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2022-05-21T00:00:00' - description: INV-0004 - counterparty: Ridgeway University - reconciled: true - amount: 1000 - balance: -3987.92 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2022-05-21T00:00:00' - description: DD - counterparty: PowerDirect - reconciled: true - amount: -89 - balance: -4076.92 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2022-06-19T00:00:00' - description: INV-005 - counterparty: Ridgeway University - reconciled: true - amount: 500 - balance: -3576.92 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2022-06-21T00:00:00' - description: DD - counterparty: PowerDirect - reconciled: true - amount: -91 - balance: -3667.92 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2022-07-20T00:00:00' - description: INV-006 - counterparty: Ridgeway University - reconciled: true - amount: 500 - balance: -3167.92 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2022-07-22T00:00:00' - description: DD - counterparty: PowerDirect - reconciled: true - amount: -96.25 - balance: -3264.17 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2022-08-19T00:00:00' - description: INV-007 - counterparty: Ridgeway University - reconciled: true - amount: 1500 - balance: -1764.17 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2022-08-21T00:00:00' - description: DD - counterparty: PowerDirect - reconciled: true - amount: -100.6 - balance: -1864.77 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2022-09-19T00:00:00' - description: INV-008 - counterparty: Ridgeway University - reconciled: true - amount: 500 - balance: -1364.77 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2022-09-21T00:00:00' - description: DD - counterparty: PowerDirect - reconciled: true - amount: -105.75 - balance: -1470.52 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2022-10-19T00:00:00' - description: INV-009 - counterparty: Ridgeway University - reconciled: true - amount: 1200 - balance: -270.52 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2022-10-21T00:00:00' - description: DD - counterparty: PowerDirect - reconciled: true - amount: -106.5 - balance: -377.02 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2022-11-20T00:00:00' - description: INV-0010 - counterparty: Ridgeway University - reconciled: true - amount: 500 - balance: 122.98 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2022-11-21T00:00:00' - description: DD - counterparty: PowerDirect - reconciled: true - amount: -119.08 - balance: 3.9 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2022-11-22T00:00:00' - description: Monthly a/c fee - counterparty: Ridgeway Banking Corporation - reconciled: true - amount: -15 - balance: -11.1 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2022-11-23T00:00:00' - description: FP089876 - counterparty: FastPay - reconciled: true - amount: -3126.17 - balance: -1591.58 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2022-11-23T00:00:00' - description: Subs DD - counterparty: Xero - reconciled: true - amount: -56.35 - balance: -89.16 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2022-11-23T00:00:00' - description: '0015' - counterparty: Rex Media Group - reconciled: true - amount: 541.25 - balance: 1534.59 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2022-11-23T00:00:00' - description: INV-0014 - counterparty: Port & Philip Freight - reconciled: true - amount: 541.25 - balance: 993.34 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2022-11-23T00:00:00' - description: '' - counterparty: Office Supplies Company - reconciled: true - amount: -21.71 - balance: -32.81 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2022-11-23T00:00:00' - description: INV-0013 - counterparty: Young Brothers - reconciled: true - amount: 541.25 - balance: 452.09 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2022-11-24T00:00:00' - description: INV0012 - counterparty: Hamilton Smith - reconciled: true - amount: 541.25 - balance: -1050.33 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2022-12-01T00:00:00' - description: '' - counterparty: Woolworths Oaktown - reconciled: true - amount: -65.2 - balance: -1115.53 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2022-12-02T00:00:00' - description: '' - counterparty: Berry Brew Cafe - reconciled: true - amount: -15.6 - balance: -1131.13 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2022-12-09T00:00:00' - description: AR-0019 - counterparty: Bank West - reconciled: true - amount: 1500 - balance: 368.87 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2022-12-11T00:00:00' - description: CHQ 6543-000409 - counterparty: Melrose Parking Services - reconciled: true - amount: -148.5 - balance: 220.37 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2022-12-16T00:00:00' - description: '' - counterparty: Espresso 31 Ltd - reconciled: true - amount: -16 - balance: 204.37 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2022-12-19T00:00:00' - description: '' - counterparty: Brunswick Flower Suppliers T/A Brunswick Petals - reconciled: true - amount: -50 - balance: 154.37 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2022-12-20T00:00:00' - description: AR-0011 - counterparty: Ridgeway University - reconciled: true - amount: 2500 - balance: 2583.57 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2022-12-20T00:00:00' - description: '' - counterparty: Mobil - reconciled: true - amount: -70.8 - balance: 83.57 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2022-12-23T00:00:00' - description: '' - counterparty: PC Complete - reconciled: true - amount: -1463.88 - balance: 1449.49 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2022-12-23T00:00:00' - description: AR-0018 - counterparty: City Agency - reconciled: true - amount: 329.8 - balance: 2913.37 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2022-12-23T00:00:00' - description: Bank Fee - counterparty: Ridgeway Banking Corporation - reconciled: true - amount: -15 - balance: 1434.49 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2022-12-23T00:00:00' - description: '' - counterparty: Truxton Property Management - reconciled: true - amount: -1181.25 - balance: 253.24 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2022-12-29T00:00:00' - description: FP101897 - counterparty: FastPay - reconciled: false - amount: -1223.91 - balance: -970.67 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2023-01-19T00:00:00' - description: '' - counterparty: Net Connect - reconciled: true - amount: -98.32 - balance: -1177.59 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2023-01-19T00:00:00' - description: '' - counterparty: Power Direct - reconciled: true - amount: -108.6 - balance: -1079.27 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2023-01-19T00:00:00' - description: AR-0020 - counterparty: Ridgeway University - reconciled: true - amount: 6187.5 - balance: 5009.91 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2023-01-20T00:00:00' - description: '' - counterparty: Truxton Property Management - reconciled: true - amount: -1181.25 - balance: 3828.66 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2023-01-20T00:00:00' - description: '' - counterparty: Swantston Security - reconciled: true - amount: -59.54 - balance: 3769.12 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2023-01-21T00:00:00' - description: '' - counterparty: Xero - reconciled: true - amount: -56.35 - balance: 3712.77 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2023-01-22T00:00:00' - description: INV0022 - counterparty: Petrie McLoud - reconciled: true - amount: 1407.25 - balance: 5120.02 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2023-01-23T00:00:00' - description: '0024' - counterparty: Boom FM - reconciled: true - amount: 1000 - balance: 6120.02 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2023-01-24T00:00:00' - description: CHQ 6543-000410 - counterparty: Melrose Parking - reconciled: true - amount: -148.5 - balance: 5971.52 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2023-01-25T00:00:00' - description: 0027-Part - counterparty: DIISR - reconciled: true - amount: 579.37 - balance: 6550.89 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2023-01-26T00:00:00' - description: Inv 0029 - counterparty: Hamilton Smith - reconciled: true - amount: 541.25 - balance: 7092.14 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2023-01-26T00:00:00' - description: INV0032 - counterparty: Rex Media Group - reconciled: true - amount: 541.25 - balance: 8715.89 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2023-01-26T00:00:00' - description: '0030' - counterparty: Young Brothers Transport - reconciled: true - amount: 541.25 - balance: 7633.39 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2023-01-26T00:00:00' - description: INV-0031 - counterparty: Port & Philip Freight Limited - reconciled: true - amount: 541.25 - balance: 8174.64 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2023-01-27T00:00:00' - description: Eft - counterparty: Woolworths Oaktown - reconciled: true - amount: -34.1 - balance: 8681.79 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2023-01-28T00:00:00' - description: 033-Full - counterparty: DIISR - reconciled: true - amount: 250 - balance: 8931.79 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2023-01-30T00:00:00' - description: Eft - counterparty: Office Supplies Company - reconciled: true - amount: -49.2 - balance: 8882.59 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2023-01-31T00:00:00' - description: '' - counterparty: Berry Brew - reconciled: true - amount: -22 - balance: 8860.59 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2023-02-01T00:00:00' - description: CHQ 6543-000411 - counterparty: 24 Locks - reconciled: true - amount: -69.5 - balance: 8791.09 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2023-02-02T00:00:00' - description: 08-4123 - counterparty: Hoyt Productions Ltd - reconciled: true - amount: -5953.75 - balance: 2837.34 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2023-02-03T00:00:00' - description: '' - counterparty: Carlton Functions - reconciled: true - amount: -1500 - balance: 1337.34 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2023-02-06T00:00:00' - description: Exps - counterparty: O.Greenville - reconciled: true - amount: -29.5 - balance: 1307.84 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2023-02-07T00:00:00' - description: Rent - counterparty: Truxton Property Management - reconciled: false - amount: -1181.25 - balance: 6314.09 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2023-02-07T00:00:00' - description: INV-0035 - counterparty: Ridgeway University - reconciled: false - amount: 6187.5 - balance: 7495.34 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2023-02-08T00:00:00' - description: 0017-Part - counterparty: City Limousines - reconciled: false - amount: 100 - balance: 1914.09 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2023-02-08T00:00:00' - description: DEPOSIT ADV - counterparty: Jakaranda Maple Systems - reconciled: false - amount: 2000 - balance: 3914.09 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2023-02-08T00:00:00' - description: 0195 0210 - counterparty: SMART Agency - reconciled: false - amount: -4500 - balance: 1814.09 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2023-02-09T00:00:00' - description: Eft - counterparty: Cooper Street Bakery - reconciled: false - amount: -15.75 - balance: 3898.34 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2023-02-10T00:00:00' - description: '' - counterparty: 7-Eleven - reconciled: false - amount: -15.5 - balance: 3882.84 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2023-02-11T00:00:00' - description: '' - counterparty: Swanston Security - reconciled: false - amount: -59.55 - balance: 3811.39 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2023-02-11T00:00:00' - description: '' - counterparty: Cooper Street Bakery - reconciled: false - amount: -11.9 - balance: 3870.94 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2023-02-12T00:00:00' - description: '' - counterparty: Whitcoulls - reconciled: false - amount: -29.8 - balance: 4769.59 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2023-02-12T00:00:00' - description: '' - counterparty: e-Bank Dep - reconciled: false - amount: 1000 - balance: 4811.39 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2023-02-12T00:00:00' - description: '' - counterparty: Central City Parking - reconciled: false - amount: -12 - balance: 4799.39 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2023-02-13T00:00:00' - description: '' - counterparty: Central City Parking - reconciled: false - amount: -12 - balance: 4757.59 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2023-02-13T00:00:00' - description: Sub 092201 - counterparty: Wilson Online Periodicals - reconciled: false - amount: -49.9 - balance: 4588.09 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2023-02-13T00:00:00' - description: Reg 8018922 - counterparty: ACL Conferences - reconciled: false - amount: -85 - balance: 4672.59 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2023-02-13T00:00:00' - description: '' - counterparty: New World - reconciled: false - amount: -34.6 - balance: 4637.99 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2023-02-14T00:00:00' - description: Sublet RM2031 - counterparty: Majestic Contracting - reconciled: false - amount: 450 - balance: 6526.09 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2023-02-14T00:00:00' - description: '' - counterparty: Central City Parking - reconciled: false - amount: -12 - balance: 4576.09 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2023-02-14T00:00:00' - description: '' - counterparty: e-Bank Dep - reconciled: false - amount: 1500 - balance: 6076.09 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2023-02-15T00:00:00' - description: '' - counterparty: Central City Parking - reconciled: false - amount: -12 - balance: 6499.79 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2023-02-15T00:00:00' - description: CR 092201 - counterparty: Wilson Online Periodicals - reconciled: false - amount: 35 - balance: 6534.79 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2023-02-15T00:00:00' - description: '' - counterparty: Parkside Kiosk - reconciled: false - amount: -14.3 - balance: 6511.79 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2023-02-16T00:00:00' - description: '' - counterparty: e-Bank Dep - reconciled: false - amount: 200 - balance: 6712.29 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2023-02-16T00:00:00' - description: '' - counterparty: Parkside Kiosk - reconciled: false - amount: -10.5 - balance: 6512.29 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2023-02-16T00:00:00' - description: Fee - counterparty: Ridgeway Banking Corporation - reconciled: false - amount: -15 - balance: 6697.29 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2023-02-16T00:00:00' - description: '' - counterparty: 7-Eleven - reconciled: false - amount: -15.5 - balance: 6681.79 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - clearedOnDate: '2023-02-16T00:00:00' - description: '' - counterparty: Central City Parking - reconciled: false - amount: -12 - balance: 6522.79 - transactionType: Unknown - modifiedDate: '2023-03-15T20:37:10Z' - pageNumber: 1 - pageSize: 100 - totalResults: 93 - _links: - current: - href: /companies/5ced9667-a310-443a-a711-958d36377141/connections/6a4bcf97-e46a-465c-abf6-c42cec8e48c0/data/bankAccounts/bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4/bankTransactions - self: - href: /companies/5ced9667-a310-443a-a711-958d36377141/connections/6a4bcf97-e46a-465c-abf6-c42cec8e48c0/data/bankAccounts/bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4/bankTransactions - Zoho Books: - value: - results: - - id: 104957000000060010-104957000000070175 - accountId: '104957000000060010' - clearedOnDate: '2020-02-06T00:00:00' - description: '' - reconciled: false - amount: 9001 - transactionType: Cash - modifiedDate: '2022-10-03T08:40:40Z' - - id: 104957000000060010-104957000000060014 - accountId: '104957000000060010' - clearedOnDate: '2020-02-12T00:00:00' - description: '' - reconciled: false - amount: 10000 - transactionType: Dep - modifiedDate: '2022-10-03T08:40:40Z' - - id: 104957000000060010-104957000000067014 - accountId: '104957000000060010' - clearedOnDate: '2020-02-14T00:00:00' - description: '' - reconciled: false - amount: 9001 - transactionType: Cash - modifiedDate: '2022-10-03T08:40:40Z' - - id: 104957000000060010-104957000000070035 - accountId: '104957000000060010' - clearedOnDate: '2020-02-17T00:00:00' - description: '' - reconciled: false - amount: 11980 - transactionType: Debit - modifiedDate: '2022-10-03T08:40:40Z' - - id: 104957000000060010-104957000000070055 - accountId: '104957000000060010' - clearedOnDate: '2020-02-17T00:00:00' - description: '' - reconciled: false - amount: -20 - transactionType: Payment - modifiedDate: '2022-10-03T08:40:40Z' - - id: 104957000000060010-104957000000070097 - accountId: '104957000000060010' - clearedOnDate: '2020-02-17T00:00:00' - description: '' - reconciled: false - amount: 10789.21 - transactionType: Cash - modifiedDate: '2022-10-03T08:40:40Z' - - id: 104957000000060010-104957000000097011 - accountId: '104957000000060010' - clearedOnDate: '2020-02-26T00:00:00' - description: '' - reconciled: false - amount: 10000 - transactionType: Cash - modifiedDate: '2022-10-03T08:40:40Z' - - id: 104957000000060010-104957000000099013 - accountId: '104957000000060010' - clearedOnDate: '2020-02-27T00:00:00' - description: '' - reconciled: false - amount: -72 - transactionType: Payment - modifiedDate: '2022-10-03T08:40:40Z' - - id: 104957000000060010-104957000000099053 - accountId: '104957000000060010' - clearedOnDate: '2020-02-27T00:00:00' - description: '' - reconciled: false - amount: 10 - transactionType: Debit - modifiedDate: '2022-10-03T08:40:40Z' - - id: 104957000000060010-104957000000137017 - accountId: '104957000000060010' - clearedOnDate: '2020-05-19T00:00:00' - description: '' - reconciled: false - amount: 9000 - transactionType: Cash - modifiedDate: '2022-10-03T08:40:40Z' - - id: 104957000000060010-104957000000336002 - accountId: '104957000000060010' - clearedOnDate: '2020-12-01T00:00:00' - description: '' - reconciled: false - amount: -20 - transactionType: Xfer - modifiedDate: '2022-10-03T08:40:40Z' - - id: 104957000000060010-104957000000336020 - accountId: '104957000000060010' - clearedOnDate: '2020-12-01T00:00:00' - description: '' - reconciled: false - amount: 1.79 - transactionType: Xfer - modifiedDate: '2022-10-03T08:40:40Z' - - id: 104957000000060010-104957000001706009 - accountId: '104957000000060010' - clearedOnDate: '2021-04-12T00:00:00' - description: '' - reconciled: false - amount: 200 - transactionType: Cash - modifiedDate: '2022-10-03T08:40:40Z' - - id: 104957000000060010-104957000001469026 - accountId: '104957000000060010' - clearedOnDate: '2022-05-12T00:00:00' - description: '' - reconciled: false - amount: -50 - transactionType: Credit - modifiedDate: '2022-10-03T08:40:40Z' - - id: 104957000000060010-104957000001480001 - accountId: '104957000000060010' - clearedOnDate: '2022-05-13T00:00:00' - description: '' - reconciled: false - amount: 18.98 - transactionType: Debit - modifiedDate: '2022-10-03T08:40:40Z' - - id: 104957000000060010-104957000001480045 - accountId: '104957000000060010' - clearedOnDate: '2022-05-13T00:00:00' - description: '' - reconciled: false - amount: -20 - transactionType: Credit - modifiedDate: '2022-10-03T08:40:40Z' - - id: 104957000000060010-104957000001633002 - accountId: '104957000000060010' - clearedOnDate: '2022-07-27T00:00:00' - description: '' - reconciled: false - amount: 26 - transactionType: Other - modifiedDate: '2022-10-03T08:40:40Z' - - id: 104957000000060010-104957000001652007 - accountId: '104957000000060010' - clearedOnDate: '2022-08-08T00:00:00' - description: '' - reconciled: false - amount: 11.75 - transactionType: Other - modifiedDate: '2022-10-03T08:40:40Z' - - id: 104957000000060010-104957000001689069 - accountId: '104957000000060010' - clearedOnDate: '2022-08-24T00:00:00' - description: '' - reconciled: false - amount: -2.89 - transactionType: Payment - modifiedDate: '2022-10-03T08:40:40Z' - - id: 104957000000060010-104957000001689125 - accountId: '104957000000060010' - clearedOnDate: '2022-08-25T00:00:00' - description: '' - reconciled: false - amount: 3.6 - transactionType: Debit - modifiedDate: '2022-10-03T08:40:40Z' - pageNumber: 1 - pageSize: 100 - totalResults: 20 - _links: - current: - href: /companies/d0b68840-db50-4bc3-b88c-96e225333fea/connections/a2324b8e-60e9-451d-8eb1-0fdc8e8224df/data/bankAccounts/104957000000060010/bankTransactions - self: - href: /companies/d0b68840-db50-4bc3-b88c-96e225333fea/connections/a2324b8e-60e9-451d-8eb1-0fdc8e8224df/data/bankAccounts/104957000000060010/bankTransactions - '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' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - '/companies/{companyId}/reports/agedDebtor/available': - parameters: - - $ref: '#/components/parameters/companyId' - get: - x-internal: true - tags: - - Accounts receivable - summary: Aged debtors report available - description: Indicates whether the aged debtors report is available for the company. - operationId: is-aged-debtors-report-available - responses: - '200': - description: OK - content: - application/json: - schema: - type: boolean - '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' - x-speakeasy-name-override: is-aged-debtors-available - x-speakeasy-group: accounts-receivable.reports - '/companies/{companyId}/reports/agedDebtor': - parameters: - - $ref: '#/components/parameters/companyId' - get: - tags: - - Accounts receivable - parameters: - - $ref: '#/components/parameters/accountingReportDate' - - $ref: '#/components/parameters/accountingNumberOfPeriods' - - $ref: '#/components/parameters/accountingPeriodLengthDays' - summary: Aged debtors report - description: Returns aged debtors report for company that shows the total outstanding balance due from customers to the business over time. - operationId: get-accounting-aged-debtors-report - x-speakeasy-name-override: get-aged-debtors - x-speakeasy-group: accounts-receivable.reports - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/AccountingAgedDebtorReport' - examples: - Clear Books: - value: - generated: '2023-05-02T16:05:21.4959955Z' - reportDate: '2023-05-02T16:05:21.4459444Z' - data: - - customerId: c8180244-74ac-40cf-a5df-6d83661c44d7 - customerName: Arjun Kuvalis - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -3367.71 - details: - - name: CreditNotes - amount: -3367.71 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 0 - details: - - name: Invoices - amount: 0 - - customerId: 6d162ee4-47b4-46c6-a2e6-aa9edd0fe6b0 - customerName: 'Breitenberg, Emard and Schiller' - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -4299.26 - details: - - name: Invoices - amount: 0 - - name: CreditNotes - amount: -4299.26 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 0 - details: - - name: Invoices - amount: 0 - - customerId: 981d56a7-cf63-4ed2-b8db-2eba2c0aeb5a - customerName: Collins - Anderson - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -14959.84 - details: - - name: CreditNotes - amount: -14959.84 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 773.94 - details: - - name: Invoices - amount: 773.94 - - customerId: d3739e0f-5a70-465b-9dfe-deb8efac0cd3 - customerName: Damien Schneider - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -2817.59 - details: - - name: CreditNotes - amount: -2817.59 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 0 - details: - - name: Invoices - amount: 0 - - customerId: 10652b76-2a9a-43ba-a892-fb4f369fe1ef - customerName: Franco Labadie - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -1541.52 - details: - - name: CreditNotes - amount: -1541.52 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 0 - details: - - name: Invoices - amount: 0 - - customerId: 03b7f9fd-40e0-4c71-9f93-58e867233bcb - customerName: Harvey Predovic - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -14312.59 - details: - - name: CreditNotes - amount: -14312.59 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 158.76 - details: - - name: Invoices - amount: 158.76 - - customerId: bbea9634-7a60-4c3f-97cd-70e481ec2cce - customerName: Jenkins Inc - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -32818.36 - details: - - name: CreditNotes - amount: -32818.36 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 431.71 - details: - - name: Invoices - amount: 431.71 - - customerId: d65ac505-072c-49ec-be3c-3cb74228966d - customerName: Jensen Steuber - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -9766.18 - details: - - name: Invoices - amount: 0 - - name: CreditNotes - amount: -9766.18 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 1273.16 - details: - - name: Invoices - amount: 1273.16 - - customerId: a82042f1-a005-4ca5-bfd3-5bc237123aa5 - customerName: Keara Leffler - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -2595.66 - details: - - name: CreditNotes - amount: -2595.66 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 1397.98 - details: - - name: Invoices - amount: 1397.98 - - customerId: f67eab14-12f1-432f-af73-81ebf6ec8ddc - customerName: Neoma Kreiger - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -3047.62 - details: - - name: CreditNotes - amount: -3047.62 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 0 - details: - - name: Invoices - amount: 0 - - customerId: 2d6a5c2d-80dc-4aac-8909-ddfb3cb24437 - customerName: Newton Zieme - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -225.44 - details: - - name: CreditNotes - amount: -225.44 - - name: Invoices - amount: 0 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 0 - details: - - name: Invoices - amount: 0 - - customerId: 976a2402-0908-46d9-9121-a93005d29c01 - customerName: Norbert Tillman - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -537.61 - details: - - name: CreditNotes - amount: -537.61 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 0 - details: - - name: Invoices - amount: 0 - - customerId: 453ddfc0-49ce-4f66-a815-dae734be885c - customerName: Ralph Wilderman - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -2538.49 - details: - - name: CreditNotes - amount: -2538.49 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 0 - details: - - name: Invoices - amount: 0 - - customerId: 51f03576-f6b0-40d5-9fba-81a490411c03 - customerName: Raul Johns - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -4403.5 - details: - - name: CreditNotes - amount: -4403.5 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 3477.81 - details: - - name: Invoices - amount: 3477.81 - - customerId: 84539fde-118f-48ed-978d-0aa50c7ec223 - customerName: Rodger Feest - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -1456.66 - details: - - name: CreditNotes - amount: -1456.66 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 7366.21 - details: - - name: Invoices - amount: 7366.21 - - customerId: dc75136b-b504-49c5-be35-04e1d2771e1e - customerName: Vincenzo Wolff - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -80.97 - details: - - name: CreditNotes - amount: -80.97 - - name: Invoices - amount: 0 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 0 - details: - - name: Invoices - amount: 0 - Dynamics 365 Business Central: - value: - generated: '2023-05-02T16:05:20.8918448Z' - reportDate: '2023-05-02T16:05:20.8411594Z' - data: - - customerId: 8ddfa6bf-0c60-eb11-89fa-00224800af18 - customerName: Abdi Company - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -80 - details: - - name: CreditNotes - amount: -80 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -257.28 - details: - - name: Payments - amount: -300 - - name: Invoices - amount: 42.72 - - customerId: b41217b3-89d1-ea11-bbaa-000d3a2b9185 - customerName: Adatum Corporation - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -1558.56 - details: - - name: CreditNotes - amount: -1558.56 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 33200.76 - details: - - name: Invoices - amount: 34782.32 - - name: Payments - amount: -1581.56 - - currency: HKD - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 8554.46 - details: - - name: Invoices - amount: 8554.46 - - customerId: ba1217b3-89d1-ea11-bbaa-000d3a2b9185 - customerName: Alpine Ski House - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 7503.08 - details: - - name: Invoices - amount: 7503.08 - - customerId: f5860a8e-4b5a-eb11-89fa-00224800af18 - customerName: CustomerQA - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 349.68 - details: - - name: Invoices - amount: 349.68 - - customerId: feef29a2-1d59-ed11-8c36-002248c5e6c0 - customerName: DP Test Customer - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 332.2 - details: - - name: Invoices - amount: 427.2 - - name: Payments - amount: -95 - - customerId: 264d74d4-3218-ed11-90eb-000d3a873415 - customerName: Eliana - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -779.28 - details: - - name: CreditNotes - amount: -779.28 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 1905 - details: - - name: Invoices - amount: 1905 - - customerId: 99faf6fb-5209-eb11-bbf6-0022481ad2e8 - customerName: QA Customer - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 4923.48 - details: - - name: Invoices - amount: 4923.48 - - customerId: bc1217b3-89d1-ea11-bbaa-000d3a2b9185 - customerName: Relecloud - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 10559.04 - details: - - name: Invoices - amount: 10559.04 - - customerId: b81217b3-89d1-ea11-bbaa-000d3a2b9185 - customerName: School of Fine Art - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 33438.88 - details: - - name: Invoices - amount: 34811.2 - - name: Payments - amount: -1372.32 - - customerId: dc3f4f1b-3c54-ed11-9470-002248c5e18c - customerName: Test no payment terms - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 10 - details: - - name: Invoices - amount: 10 - - customerId: 9e55a119-064e-ed11-946f-0022481b84d7 - customerName: Test Push - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 126 - details: - - name: Invoices - amount: 126 - - customerId: b30ca600-074e-ed11-946f-0022481b84d7 - customerName: Test Push - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 116 - details: - - name: Invoices - amount: 116 - - customerId: b61217b3-89d1-ea11-bbaa-000d3a2b9185 - customerName: Trey Researches - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -24 - details: - - name: CreditNotes - amount: -24 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 2663.38 - details: - - name: Payments - amount: 10 - - name: Invoices - amount: 2653.38 - - customerId: d93ceb37-b805-ec11-86bc-0022481a45c2 - customerName: Vegan Bakeshop - agedCurrencyOutstanding: - - currency: USD - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -18.67 - details: - - name: Payments - amount: -18.67 - FreshBooks: - value: - generated: '2023-05-02T16:05:20.6173310Z' - reportDate: '2023-05-02T16:05:20.5039554Z' - data: - - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -1 - details: - - name: Payments - amount: -1 - - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -5 - details: - - name: Payments - amount: -5 - - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -500 - details: - - name: Payments - amount: -500 - - name: Invoices - amount: 0 - - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -100 - details: - - name: Payments - amount: -100 - - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -49 - details: - - name: Payments - amount: -49 - - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -10 - details: - - name: Payments - amount: -10 - - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 100 - details: - - name: Invoices - amount: 100 - - customerId: '602174' - customerName: ab1 - agedCurrencyOutstanding: - - currency: USD - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 222.71 - details: - - name: Invoices - amount: 222.71 - - currency: AED - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -5 - details: - - name: Payments - amount: -5 - - customerId: '511657' - customerName: Bob's Stationary - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -2060.2 - details: - - name: Payments - amount: -2083.83 - - name: Invoices - amount: 23.63 - - customerId: '581145' - customerName: CanadaCo - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -132.15 - details: - - name: Payments - amount: -160.9 - - name: Invoices - amount: 28.75 - - currency: CNY - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 2.88 - details: - - name: Invoices - amount: 2.88 - - customerId: '578409' - customerName: company1 - agedCurrencyOutstanding: - - currency: USD - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -1031.45 - details: - - name: Invoices - amount: 144 - - name: Payments - amount: -1175.45 - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -100.29 - details: - - name: Invoices - amount: 0 - - name: Payments - amount: -100.29 - - customerId: '669531' - customerName: P - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 24.98 - details: - - name: Invoices - amount: 24.98 - - customerId: '515655' - customerName: Parent company - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -2898.25 - details: - - name: Payments - amount: -2898.25 - - name: Invoices - amount: 0 - - customerId: '511669' - customerName: Pens International - agedCurrencyOutstanding: - - currency: USD - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 516.3 - details: - - name: Payments - amount: 0 - - name: Invoices - amount: 516.3 - - customerId: '582461' - customerName: QA Ltd - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -76 - details: - - name: Invoices - amount: 20 - - name: Payments - amount: -96 - - currency: USD - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -1.15 - details: - - name: Payments - amount: -1.15 - - customerId: '511661' - customerName: Sarah's Office Supplies - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -10 - details: - - name: Invoices - amount: 0 - - name: Payments - amount: -10 - - customerId: '572047' - customerName: SRS Customer - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 141.25 - details: - - name: Invoices - amount: 141.25 - - customerId: '536295' - customerName: Test company - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -144.46 - details: - - name: Invoices - amount: 7.64 - - name: Payments - amount: -152.1 - - customerId: '512927' - customerName: Wood Turnerss - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 48442.07 - details: - - name: Invoices - amount: 51089.28 - - name: Payments - amount: -2647.21 - - currency: USD - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -10 - details: - - name: Invoices - amount: 0 - - name: Payments - amount: -10 - - currency: CAD - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 192.28 - details: - - name: Invoices - amount: 1186.28 - - name: Payments - amount: -994 - KashFlow: - value: - generated: '2023-05-02T16:05:20.3727270Z' - reportDate: '2023-05-02T16:05:20.3123550Z' - data: - - customerId: '88459410' - customerName: Diogo Sousa - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 482.57 - details: - - name: Invoices - amount: 482.57 - - customerId: '86810130' - customerName: Maria Gomez - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -216 - details: - - name: Invoices - amount: -216 - - customerId: '86832299' - customerName: Mr French Person - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 5 - details: - - name: Invoices - amount: 5 - - currency: EUR - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 5 - details: - - name: Invoices - amount: 5 - - customerId: '69946501' - customerName: Peter Lord - agedCurrencyOutstanding: - - currency: EUR - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 3 - details: - - name: Invoices - amount: 3 - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -46 - details: - - name: CreditNotes - amount: -46 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 55661.49 - details: - - name: Invoices - amount: 55911.49 - - name: Payments - amount: -250 - - customerId: '88353693' - customerName: Test Customer updated - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 4771.03 - details: - - name: Invoices - amount: 4771.03 - - customerId: '69952389' - customerName: Things Limited - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -42.42 - details: - - name: CreditNotes - amount: -42.42 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 6385 - details: - - name: Invoices - amount: 6385 - MYOB AccountRight and Essentials: - value: - generated: '2023-05-02T16:05:21.0942911Z' - reportDate: '2023-05-02T16:05:20.8602315Z' - data: [] - Oracle NetSuite: - value: - generated: '2023-05-02T16:05:20.0339587Z' - reportDate: '2023-05-02T16:05:19.8669114Z' - data: [] - QuickBooks Desktop: - value: - generated: '2023-05-02T16:05:19.9204890Z' - reportDate: '2023-05-02T16:05:19.8723073Z' - data: - - customerId: 1F0000-933272658 - customerName: 'Jacobsen, Doug' - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 7991.52 - details: - - name: Invoices - amount: 7991.52 - - name: Payments - amount: 0 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 0 - details: [] - - customerId: 6F0000-1071510646 - customerName: 'Morgenthaler, Jenny' - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -271.53 - details: - - name: Payments - amount: -271.53 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 0 - details: [] - QuickBooks Online: - value: - generated: '2023-05-02T16:05:21.0640297Z' - reportDate: '2023-05-02T16:05:20.9965545Z' - data: - - customerId: '67' - customerName: Abercrombie International Group - agedCurrencyOutstanding: - - currency: USD - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -837.11 - details: - - name: CreditNotes - amount: -837.11 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 55512.84 - details: - - name: Invoices - amount: 55578.69 - - name: Payments - amount: -65.85 - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 10 - details: - - name: Payments - amount: 10 - - customerId: '4' - customerName: Cathy's Consulting Company - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -905.8 - details: - - name: Invoices - amount: 314.2 - - name: Payments - amount: -1220 - - customerId: '20' - customerName: Chadha's Consultants - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -75 - details: - - name: Payments - amount: -75 - - customerId: '7' - customerName: Clement's Cleaners - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 24 - details: - - name: Invoices - amount: 24 - - customerId: '301' - customerName: Codat Customer - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -650.27 - details: - - name: Invoices - amount: 15 - - name: CreditNotes - amount: -469.52 - - name: Payments - amount: -195.75 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 266.49 - details: - - name: Invoices - amount: 210.01 - - name: Payments - amount: 56.48 - - customerId: '305' - customerName: Codat Customer (USD) - agedCurrencyOutstanding: - - currency: USD - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: - - name: Payments - amount: 0 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 121.5 - details: - - name: Invoices - amount: 0 - - name: Payments - amount: 121.5 - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 10 - details: - - name: Payments - amount: 10 - - customerId: '136' - customerName: Customer Name - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 13.37 - details: - - name: Payments - amount: 13.37 - - customerId: '218' - customerName: Diego Trantow - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 11.65 - details: - - name: Payments - amount: 11.65 - - customerId: '8' - customerName: Ecker Designs - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 2273 - details: - - name: Invoices - amount: 2273 - - customerId: '59' - customerName: Ecker Holiday event - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 3206779 - details: - - name: Invoices - amount: 3206779 - - customerId: '13' - customerName: Himateja Madala - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -100 - details: - - name: Invoices - amount: 0 - - name: Payments - amount: -100 - - customerId: '11' - customerName: Ho Engineering Company - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 10 - details: - - name: Invoices - amount: 10 - - customerId: '114' - customerName: huw default not included - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 116.4 - details: - - name: Invoices - amount: 116.4 - - customerId: '117' - customerName: Huw's Test Push customer2 - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -521.4 - details: - - name: CreditNotes - amount: -521.4 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 1120.6 - details: - - name: Invoices - amount: 1232.2 - - name: Payments - amount: -111.6 - - customerId: '306' - customerName: J Codat - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 32.1 - details: - - name: Invoices - amount: 176.1 - - name: Payments - amount: -144 - - customerId: '15' - customerName: Jen Zaccarella - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 4800 - details: - - name: Invoices - amount: 4800 - - customerId: '307' - customerName: Jo Codat 2 - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 112.6 - details: - - name: Invoices - amount: 143.96 - - name: Payments - amount: 58.14 - - name: CreditNotes - amount: -89.5 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 0 - details: [] - - customerId: '119' - customerName: John Smith 1 - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 160 - details: - - name: Invoices - amount: 160 - - customerId: '16' - customerName: Jordan Burgess - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -1098 - details: - - name: CreditNotes - amount: -1098 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -60 - details: - - name: Invoices - amount: 0 - - name: Payments - amount: -60 - - customerId: '83' - customerName: Kay's Bake Shop - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 8508.37 - details: - - name: Invoices - amount: 8717.33 - - name: Payments - amount: -208.96 - - customerId: '1' - customerName: Ko International Ltd - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -3586.2 - details: - - name: CreditNotes - amount: -3586.2 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 11291.4 - details: - - name: Invoices - amount: 11474.05 - - name: Payments - amount: -182.65 - - customerId: '91' - customerName: Mr Huw Test - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -2311.27 - details: - - name: CreditNotes - amount: -2311.27 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 2292.91 - details: - - name: Invoices - amount: 2290.91 - - name: Payments - amount: 2 - - customerId: '55' - customerName: Oxon Insurance - Holiday Party - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -10800 - details: - - name: Payments - amount: -10800 - - customerId: '70' - customerName: Project X - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 50 - details: - - name: Invoices - amount: 50 - - customerId: '281' - customerName: Renee O'Connell - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 12.75 - details: - - name: Payments - amount: 12.75 - - customerId: '118' - customerName: RSP - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 100 - details: - - name: Payments - amount: 100 - - customerId: '76' - customerName: TestPushCustomer5 - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 1320 - details: - - name: Invoices - amount: 1320 - - customerId: '77' - customerName: TestPushCustomer6 - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 1848 - details: - - name: Invoices - amount: 1848 - - customerId: '79' - customerName: TestPushCustomer7 - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -25 - details: - - name: Payments - amount: -25 - - customerId: '84' - customerName: Vegan Cake Shop - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -86.4 - details: - - name: CreditNotes - amount: -116.4 - - name: Payments - amount: 30 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -206460.15 - details: - - name: Invoices - amount: 5145.29 - - name: Payments - amount: -211605.44 - - customerId: '60' - customerName: Whitehead - Employee celebration - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -1100 - details: - - name: CreditNotes - amount: -1100 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 0 - details: [] - - customerId: '5' - customerName: Whitehead and Sons - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 754.4 - details: - - name: Invoices - amount: 754.4 - - customerId: '3' - customerName: Yeung's Architects - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -600 - details: - - name: CreditNotes - amount: -600 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 20035.25 - details: - - name: Invoices - amount: 20604.49 - - name: Payments - amount: -569.24 - Sage 200cloud: - value: - generated: '2023-05-02T16:05:20.5553019Z' - reportDate: '2023-05-02T16:05:20.4958267Z' - data: - - customerId: A1D001 - customerName: A1 Design Services - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -378 - details: - - name: CreditNotes - amount: -378 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 4504.07 - details: - - name: Invoices - amount: 4505.07 - - name: Payments - amount: -1 - - customerId: A1D002 - customerName: A2 Design Services - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -66 - details: - - name: CreditNotes - amount: -66 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 540 - details: - - name: Invoices - amount: 540 - - customerId: A1D003 - customerName: A2 Design Services - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -24.71 - details: - - name: CreditNotes - amount: -24.71 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 16606.32 - details: - - name: Invoices - amount: 16606.32 - - customerId: ABS001 - customerName: ABS Garages Ltd - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -177.14 - details: - - name: CreditNotes - amount: -177.14 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 4345.3 - details: - - name: Invoices - amount: 4845.3 - - name: Payments - amount: -500 - - customerId: USA1 - customerName: American Sales - agedCurrencyOutstanding: - - currency: USD - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 100 - details: - - name: Invoices - amount: 100 - - customerId: BBS001 - customerName: Bobs Building Supplies - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -103.16 - details: - - name: CreditNotes - amount: -103.16 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 4284.77 - details: - - name: Invoices - amount: 4309.77 - - name: Payments - amount: -25 - - customerId: BRO001 - customerName: Bronson Inc - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 786.48 - details: - - name: Invoices - amount: 852 - - name: Payments - amount: -65.52 - - customerId: BUS001 - customerName: Business Exhibitions - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 2274.62 - details: - - name: Invoices - amount: 2374.62 - - name: Payments - amount: -100 - - customerId: CASH001 - customerName: Cash and Credit Card Sales - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 324.5 - details: - - name: Invoices - amount: 324.5 - - customerId: COM001 - customerName: Compton Packaging - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 4571.04 - details: - - name: Invoices - amount: 4571.04 - - customerId: CGS001 - customerName: County Golf Supplies - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 2028.03 - details: - - name: Invoices - amount: 2028.03 - - customerId: STU001 - customerName: Edward Stuart - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 2341.25 - details: - - name: Invoices - amount: 2341.25 - - customerId: FGL001 - customerName: F G Landscape & Design - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 11260.26 - details: - - name: Invoices - amount: 11260.26 - - customerId: BRI001 - customerName: Fred Briant - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 536.67 - details: - - name: Invoices - amount: 656.67 - - name: Payments - amount: -120 - - customerId: GRA001 - customerName: Graham Electonics - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 4149.09 - details: - - name: Invoices - amount: 4149.09 - - customerId: HAU001 - customerName: Hausser GMBH - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 2082.96 - details: - - name: Invoices - amount: 2082.96 - - customerId: JSS001 - customerName: John Smith Studios - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 1228.34 - details: - - name: Invoices - amount: 1228.34 - - customerId: KIN001 - customerName: Kinghorn & French - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 9254.03 - details: - - name: Invoices - amount: 9254.03 - - customerId: MAC001 - customerName: Macolm Hall Associates - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 6927.26 - details: - - name: Invoices - amount: 6927.26 - - customerId: 1A2B3C - customerName: Maria Company - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 69.12 - details: - - name: Invoices - amount: 69.12 - - customerId: MIB001 - customerName: Mikes Insurance Services - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 3597.16 - details: - - name: Invoices - amount: 3597.16 - - customerId: MIL001 - customerName: Mile Road Health Centre - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 5644.12 - details: - - name: Invoices - amount: 6644.12 - - name: Payments - amount: -1000 - - customerId: MOR001 - customerName: Morley Solicitors - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 392.67 - details: - - name: Invoices - amount: 1767.67 - - name: Payments - amount: -1375 - - customerId: PAT001 - customerName: Patterson & Graham Garages - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 915.24 - details: - - name: Invoices - amount: 915.24 - - customerId: YOU001 - customerName: Peter Young - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -168 - details: - - name: CreditNotes - amount: -168 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 2106.84 - details: - - name: Invoices - amount: 2106.84 - - customerId: PIC001 - customerName: Picture Frame Ltd - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 546.12 - details: - - name: Invoices - amount: 1413.9 - - name: Payments - amount: -867.78 - - customerId: RSP001 - customerName: Richard Sanderson-Pope - agedCurrencyOutstanding: - - currency: JPY - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -29210 - details: - - name: CreditNotes - amount: -29210 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 623907.28 - details: - - name: Invoices - amount: 624053.94 - - name: Payments - amount: -146.66 - - customerId: ROB001 - customerName: Robertson Joinery - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 4550.2 - details: - - name: Invoices - amount: 4550.2 - - customerId: SDE001 - customerName: S D Enterprises - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 15339.68 - details: - - name: Invoices - amount: 15339.68 - - customerId: STE001 - customerName: Stevenson & Smith - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 1562.75 - details: - - name: Invoices - amount: 1562.75 - - customerId: SWA001 - customerName: Swan Leisure Centre - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -16.68 - details: - - name: CreditNotes - amount: -16.68 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 1615.51 - details: - - name: Invoices - amount: 1615.51 - - customerId: '0001' - customerName: Test Customer01 - agedCurrencyOutstanding: - - currency: USD - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -366.71 - details: - - name: CreditNotes - amount: -366.71 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 900.22 - details: - - name: Invoices - amount: 913.38 - - name: Payments - amount: -13.16 - - customerId: TESTSUPP - customerName: Test supplier for testing purposes 1234567891234567891234567 - agedCurrencyOutstanding: - - currency: USD - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 149.61 - details: - - name: Invoices - amount: 149.61 - - customerId: SHO001 - customerName: The Show Lodge - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 7148.07 - details: - - name: Invoices - amount: 7148.07 - - customerId: VID001 - customerName: The Video Rental Company - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 2041.66 - details: - - name: Invoices - amount: 2041.66 - Sage 50 (UK): - value: - generated: '2023-05-02T16:05:19.8072734Z' - reportDate: '2023-05-02T16:05:19.7472225Z' - data: - - customerId: A1D001 - customerName: A1 Design Services - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -5.37 - details: - - name: Invoices - amount: -5.37 - - customerId: ABS001 - customerName: ABS Garages Ltd - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 2454.97 - details: - - name: Invoices - amount: 2454.97 - - customerId: BBS001 - customerName: Bobs Building Supplies - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 4309.77 - details: - - name: Invoices - amount: 4309.77 - - customerId: BUS001 - customerName: Business Exhibitions - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 2066.61 - details: - - name: Invoices - amount: 2166.61 - - name: Payments - amount: -100 - - customerId: CASH001 - customerName: Cash and Credit Card Sales - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -0.01 - details: - - name: Invoices - amount: -0.01 - - customerId: COM001 - customerName: Compton Packaging - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 2749.02 - details: - - name: Invoices - amount: 2749.02 - - customerId: CGS001 - customerName: County Golf Supplies - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 2028.03 - details: - - name: Invoices - amount: 2028.03 - - customerId: STU001 - customerName: Edward Stuart - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 2341.25 - details: - - name: Invoices - amount: 2341.25 - - customerId: FGL001 - customerName: F G Landscape & Design - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 11256.18 - details: - - name: Invoices - amount: 11256.18 - - customerId: GRA001 - customerName: Graham Electonics - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 4149.08 - details: - - name: Invoices - amount: 4149.08 - - customerId: HAU001 - customerName: Hausser GMBH - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 1965.96 - details: - - name: Invoices - amount: 1965.96 - - customerId: JSS001 - customerName: John Smith Studios - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 977.09 - details: - - name: Invoices - amount: 977.09 - - customerId: KIN001 - customerName: Kinghorn & French - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 7398.33 - details: - - name: Invoices - amount: 7398.33 - - customerId: MAC001 - customerName: Macolm Hall Associates - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 6916.46 - details: - - name: Invoices - amount: 6916.46 - - customerId: MIB001 - customerName: Mikes Insurance Services - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 3525.26 - details: - - name: Invoices - amount: 3525.26 - - customerId: MIL001 - customerName: Mile Road Health Centre - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 2307.84 - details: - - name: Invoices - amount: 3307.84 - - name: Payments - amount: -1000 - - customerId: MOR001 - customerName: Morley Solicitors - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 370.27 - details: - - name: Invoices - amount: 1745.27 - - name: Payments - amount: -1375 - - customerId: PAT001 - customerName: Patterson & Graham Garages - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 915.24 - details: - - name: Invoices - amount: 915.24 - - customerId: YOU001 - customerName: Peter Young - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 2115.77 - details: - - name: Invoices - amount: 2115.77 - - customerId: PIC001 - customerName: Picture Frame Ltd - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 268.93 - details: - - name: Invoices - amount: 1136.71 - - name: Payments - amount: -867.78 - - customerId: ROB001 - customerName: Robertson Joinery - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 4530.98 - details: - - name: Invoices - amount: 4530.98 - - customerId: SDE001 - customerName: S D Enterprises - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 15339.68 - details: - - name: Invoices - amount: 15339.68 - - customerId: STE002 - customerName: Steven Stephenson - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 8.35 - details: - - name: Invoices - amount: 8.35 - - customerId: STE001 - customerName: Stevenson & Smith - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 1562.75 - details: - - name: Invoices - amount: 1562.75 - - customerId: SWA001 - customerName: Swan Leisure Centre - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -16.68 - details: - - name: CreditNotes - amount: -16.68 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 1615.51 - details: - - name: Invoices - amount: 1615.51 - - customerId: SHO001 - customerName: The Show Lodge - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 7305.77 - details: - - name: Invoices - amount: 7305.77 - - customerId: VID001 - customerName: The Video Rental Company - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 2041.64 - details: - - name: Invoices - amount: 2041.64 - Sage Business Cloud Accounting: - value: - generated: '2023-05-02T16:05:20.9416221Z' - reportDate: '2023-05-02T16:05:20.7435694Z' - data: - - customerId: 260f6a3f94a243738f2d5e08496a41a8 - customerName: 100 test name - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -60 - details: - - name: CreditNotes - amount: -60 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 1471 - details: - - name: Invoices - amount: 1891 - - name: Payments - amount: -420 - - customerId: 860dd9f1ad9346ba85117aedfa19cc72 - customerName: 100 test name DS - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 1065 - details: - - name: Invoices - amount: 1080 - - name: Payments - amount: -15 - - customerId: 395d26ee8ab44f8b861b468caf63b00d - customerName: 222 Abdul's Test Name - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -120 - details: - - name: CreditNotes - amount: -120 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 2443.8 - details: - - name: Invoices - amount: 2759.8 - - name: Payments - amount: -316 - - customerId: 013cf04960924a0da800f019369c3262 - customerName: 333 Abdul's Test Name - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -0.66 - details: - - name: Invoices - amount: 9.34 - - name: Payments - amount: -10 - - customerId: 4ba77efb904e4380accc242b1526ac2c - customerName: 333 Abdul's Test Name - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -10 - details: - - name: CreditNotes - amount: -10 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 65 - details: - - name: Invoices - amount: 65 - - customerId: 18e45991fe6440ad8e8b5ecf9a2e7e09 - customerName: 444 Abdul's Test Name - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -2 - details: - - name: Invoices - amount: 48 - - name: Payments - amount: -50 - - customerId: 23ca7ffaa2b54360937531dde804c9aa - customerName: aaa - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -22 - details: - - name: CreditNotes - amount: -22 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -62 - details: - - name: Invoices - amount: 7 - - name: Payments - amount: -69 - - customerId: 2b93da6ce4af4dc99520eafd28768457 - customerName: Abdul Al-haj - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 288 - details: - - name: Invoices - amount: 288 - - customerId: 460af92dd82a4a61b6ce1d18245789b3 - customerName: Abdul Al-haj - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 48 - details: - - name: Invoices - amount: 48 - - customerId: b8bd7e0dfdd64d39abaaf2dcd1c48b49 - customerName: Abdul Al-haj - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -119.99 - details: - - name: CreditNotes - amount: -119.99 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 0 - details: [] - - customerId: aa37b59417024d2494f01ba23d92a2ef - customerName: Abe The Engineer - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -1562 - details: - - name: CreditNotes - amount: -1562 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 1337 - details: - - name: Invoices - amount: 1362 - - name: Payments - amount: -25 - - customerId: df65eaa6789111e8aaa5027d54329956 - customerName: Baguettes Ltd - agedCurrencyOutstanding: - - currency: EUR - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -844.99 - details: - - name: CreditNotes - amount: -844.99 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 616726.02 - details: - - name: Invoices - amount: 617888.74 - - name: Payments - amount: -1162.72 - - customerId: 2916114b3b6942a7b08f1bcc971f5bf9 - customerName: c.taylor@codat.io - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 1.2 - details: - - name: Invoices - amount: 1.2 - - customerId: 0556b365ef4e42068fff775f847c0330 - customerName: Customer 71 (AUD) - agedCurrencyOutstanding: - - currency: AUD - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -701 - details: - - name: Payments - amount: -701 - - customerId: 145dee01b49c4359a052682f234007e3 - customerName: Customer Name - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -10 - details: - - name: Payments - amount: -10 - - customerId: 76f656dfbafa4cec823f1e2e43ea1a8e - customerName: Customer Test 59 - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -10 - details: - - name: Payments - amount: -10 - - customerId: a11e6776ca9a4e16af3425982de25a22 - customerName: Debs Customer - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 5279.2 - details: - - name: Invoices - amount: 5279.2 - - customerId: cc80e0fb747e4ddaab743d778d04ec4a - customerName: Debs US Customer - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 15111 - details: - - name: Invoices - amount: 15111 - - customerId: adb9cae8b34e446da3d53305b299168b - customerName: Fo Shizzle - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 300 - details: - - name: Invoices - amount: 300 - - customerId: cc745370213545f6bd4129a7502f19fb - customerName: Grace Lo - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -1150 - details: - - name: Invoices - amount: 0 - - name: Payments - amount: -1150 - - customerId: 3b17c5ae9caf4b88a4a9e33a83fa321d - customerName: Hello - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 12 - details: - - name: Invoices - amount: 12 - - customerId: 979c5156ea0e45d9a9ea7b9d54775138 - customerName: J Customer FR - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -52795 - details: - - name: CreditNotes - amount: -52795 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 134045 - details: - - name: Invoices - amount: 134045 - - customerId: 99d52ca7060341a698a664d1737663c5 - customerName: J Customer UK - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -265 - details: - - name: CreditNotes - amount: -265 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 15 - details: - - name: Invoices - amount: 30 - - name: Payments - amount: -15 - - customerId: f40870d5b704407481be14f780122d4f - customerName: J Customer US - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -161570 - details: - - name: CreditNotes - amount: -161570 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 181372 - details: - - name: Invoices - amount: 181372 - - customerId: 50a66e9756d2416d946419948bcf3631 - customerName: J Customer ZA - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -10 - details: - - name: CreditNotes - amount: -10 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 0 - details: [] - - customerId: 0328dd6b109a4a6cbcb3d1a73f1d541b - customerName: James Arroyo - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -719 - details: - - name: Invoices - amount: 178 - - name: Payments - amount: -897 - - customerId: bca2a47d7b4549c79b0c092d26b6661c - customerName: Jay Farm - agedCurrencyOutstanding: - - currency: USD - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 25.01 - details: - - name: Invoices - amount: 25.01 - - customerId: 6477be6d012b4d48b4c160c098645c1c - customerName: Jo's Bake Shop - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -37.8 - details: - - name: CreditNotes - amount: -37.8 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 22.25 - details: - - name: Invoices - amount: 48 - - name: Payments - amount: -25.75 - - customerId: 097305a078ba473c884d2519ab290e57 - customerName: John QuickEntry Test - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 396 - details: - - name: Invoices - amount: 396 - - customerId: eac978a7622e4ef8b8d3af661f0cfdd3 - customerName: John Smith - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 200 - details: - - name: Invoices - amount: 200 - - customerId: 3cc3148bbd8111e8bad90617b3da4b8a - customerName: John's Test Customer - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -1081.2 - details: - - name: CreditNotes - amount: -1081.2 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 3379 - details: - - name: Invoices - amount: 3479 - - name: Payments - amount: -100 - - customerId: f66deccde15843ef80a82daad887146b - customerName: Kiran testing 2 - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 48 - details: - - name: Invoices - amount: 48 - - customerId: 6e921696a21a45c891ff4716a18e7649 - customerName: M Smith - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 900 - details: - - name: Invoices - amount: 900 - - customerId: bbb0582a0d054f5db268e570b50b4d6c - customerName: Mark Smith - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 40 - details: - - name: Invoices - amount: 40 - - customerId: 440ba2199c07426a93e8edc1beb09791 - customerName: Matt Ager test EUR customer - agedCurrencyOutstanding: - - currency: EUR - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -8159.78 - details: - - name: CreditNotes - amount: -8159.78 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 6016.67 - details: - - name: Invoices - amount: 6022.98 - - name: Payments - amount: -6.31 - - customerId: d430ed86b05645d7af0a630dae5d11d2 - customerName: Matthew Smith - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 240 - details: - - name: Invoices - amount: 240 - - customerId: 9e8c3d82a2164ad29e29ab3a09ddf382 - customerName: Morv Smith - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 300 - details: - - name: Invoices - amount: 300 - - customerId: fbdd38adb5b4441ebb200b83700d7ea5 - customerName: My Shop Customer - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -384 - details: - - name: CreditNotes - amount: -384 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 398 - details: - - name: Invoices - amount: 398 - - customerId: 4b4cc40d998f47c3bec92fc088dcf327 - customerName: Nicoletta Carchia - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 90 - details: - - name: Invoices - amount: 90 - - customerId: ed070b1768bb4dd295e2a544a74c8ec0 - customerName: Paige Burlingham - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -48 - details: - - name: CreditNotes - amount: -48 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 48 - details: - - name: Invoices - amount: 48 - - customerId: 84709d3f01a4462eb7f1527718f525f4 - customerName: SageOneCustomer.BusinessName - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -1085 - details: - - name: CreditNotes - amount: -1085 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 0 - details: [] - - customerId: 90c438274d0b43759407da704394c104 - customerName: Test Company - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -16.2 - details: - - name: CreditNotes - amount: -16.2 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 1137.2 - details: - - name: Invoices - amount: 1137.2 - - customerId: 762e6895c1ff43f988f35fb507e20dd9 - customerName: Test Custiomer 2 - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -615 - details: - - name: CreditNotes - amount: -615 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 2178.25 - details: - - name: Invoices - amount: 2178.25 - - customerId: 7b9c18af4b66454b9f7e9409eb7da123 - customerName: Test Customer - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 1200 - details: - - name: Invoices - amount: 1200 - - customerId: 4ccf5c5fa14046ecb591e0620d87ea2e - customerName: Test Customer 3 - agedCurrencyOutstanding: - - currency: USD - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -50 - details: - - name: CreditNotes - amount: -50 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 499971 - details: - - name: Invoices - amount: 499971 - - customerId: f4ff85ba33dd11e797950a57719b2edb - customerName: Widgets Limited - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -23206.12 - details: - - name: CreditNotes - amount: -23206.12 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 733824.64 - details: - - name: Invoices - amount: 739536.49 - - name: Payments - amount: -5711.85 - Sage Intacct: - value: - generated: '2023-05-02T16:05:22.6557479Z' - reportDate: '2023-05-02T16:05:22.6081858Z' - data: - - customerId: '6' - customerName: AG Insurance - agedCurrencyOutstanding: - - currency: USD - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 180 - details: - - name: Invoices - amount: 180 - - customerId: '531' - customerName: Shoprite - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -150 - details: - - name: Payments - amount: -150 - Xero: - value: - generated: '2023-05-02T16:05:20.0730291Z' - reportDate: '2023-05-02T16:05:20.0102278Z' - data: - - customerId: 305ca5cf-497d-4fee-a161-cdb30e6be989 - customerName: Basket Case - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 914.55 - details: - - name: Invoices - amount: 914.55 - - customerId: 362819c9-f285-4d09-ac95-26327863adac - customerName: Bayside Club - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 3434 - details: - - name: Invoices - amount: 3434 - - customerId: 9ce626d2-14ea-463c-9fff-6785ab5f9bfb - customerName: Boom FM - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 1623.75 - details: - - name: Invoices - amount: 1623.75 - - customerId: c523e12f-8b74-4d3a-bbd8-32d7a2f598b4 - customerName: City Limousines - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 1169.95 - details: - - name: Invoices - amount: 1169.95 - - customerId: 1262c350-fe0f-40ec-aeff-41c95b4a45af - customerName: DIISR - Small Business Services - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 4470.63 - details: - - name: Invoices - amount: 4470.63 - - customerId: 94cb6d7b-5291-49f3-a0bc-fc0c01e68575 - customerName: Marine Systems - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 396 - details: - - name: Invoices - amount: 396 - - customerId: 847933f0-7c35-4e5b-b884-5f9df64c8e4b - customerName: Port & Philip Freight - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 2245 - details: - - name: Invoices - amount: 2245 - - customerId: a871a956-05b5-4e2a-9419-7aeb478ca647 - customerName: Ridgeway University - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 6187.5 - details: - - name: Invoices - amount: 6187.5 - Zoho Books: - value: - generated: '2023-05-02T16:05:23.2078272Z' - reportDate: '2023-05-02T16:05:23.1573589Z' - data: - - customerId: '104957000000054050' - customerName: 'Doe, John' - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -10567 - details: - - name: CreditNotes - amount: -10567 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 38965 - details: - - name: Invoices - amount: 39865 - - name: Payments - amount: -900 - - customerId: '104957000000634160' - customerName: Dr. Jekyll - agedCurrencyOutstanding: - - currency: EUR - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -110 - details: - - name: CreditNotes - amount: -110 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 0 - details: [] - - customerId: '104957000000080010' - customerName: Max Mustermann - agedCurrencyOutstanding: - - currency: EUR - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -68 - details: - - name: Invoices - amount: 0 - - name: Payments - amount: -68 - - customerId: '104957000000277089' - customerName: Miss. No Contact Persons - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -10 - details: - - name: CreditNotes - amount: -10 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 0 - details: - - name: Invoices - amount: 0 - - customerId: '104957000000054080' - customerName: Ms. Jane Doe - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -465 - details: - - name: CreditNotes - amount: -465 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 0 - details: [] - - customerId: '104957000000277001' - customerName: 'Sousa, Diogo' - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 9001 - details: - - name: Invoices - amount: 9001 - - customerId: '104957000000037097' - customerName: Test Company - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -9001 - details: - - name: CreditNotes - amount: -9001 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 3556.98 - details: - - name: Invoices - amount: 4501 - - name: Payments - amount: -944.02 - - customerId: '104957000001497001' - customerName: Will Westrop - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 56 - details: - - name: Invoices - amount: 56 - '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' - '/companies/{companyId}/reports/agedCreditor/available': - parameters: - - $ref: '#/components/parameters/companyId' - get: - tags: - - Accounts payable - summary: Aged creditors report available - description: Indicates whether the aged creditor report is available for the company. - operationId: is-aged-creditors-report-available - x-speakeasy-name-override: is-aged-creditors-available - x-speakeasy-group: accounts-receivable.reports - responses: - '200': - description: OK - content: - application/json: - schema: - type: boolean - '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' - '/companies/{companyId}/reports/agedCreditor': - parameters: - - $ref: '#/components/parameters/companyId' - get: - tags: - - Accounts payable - parameters: - - $ref: '#/components/parameters/accountingReportDate' - - $ref: '#/components/parameters/accountingNumberOfPeriods' - - $ref: '#/components/parameters/accountingPeriodLengthDays' - summary: Aged creditors report - description: Returns aged creditors report for company that shows the total balance owed by a business to its suppliers over time. - operationId: get-accounting-aged-creditors-report - x-speakeasy-name-override: get-aged-creditors - x-speakeasy-group: accounts-receivable.reports - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/AccountingAgedCreditorReport' - examples: - Clear Books: - value: - generated: '2023-05-02T16:05:21.7545859Z' - reportDate: '2023-05-02T16:05:21.7016767Z' - data: - - supplierId: owQ2Gqgj9f - supplierName: Abshire - Kshlerin - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -78.12 - details: - - name: BillCreditNotes - amount: -78.12 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 375.6 - details: - - name: Bills - amount: 375.6 - - supplierId: FyUkHbZxhn - supplierName: Arjun Kuvalis - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -3782.27 - details: - - name: BillCreditNotes - amount: -3782.27 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 8556.1 - details: - - name: Bills - amount: 8556.1 - - supplierId: gxazX5hqx4 - supplierName: Bernier Inc - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 213.19 - details: - - name: Bills - amount: 213.19 - - supplierId: ro8nWYGzlg - supplierName: Botsford - Hickle - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -2242.95 - details: - - name: Bills - amount: 0 - - name: BillCreditNotes - amount: -2242.95 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 838.67 - details: - - name: Bills - amount: 838.67 - - supplierId: D4Q4iYwHou - supplierName: 'Breitenberg, Emard and Schiller' - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -276.5 - details: - - name: BillCreditNotes - amount: -276.5 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 46060.53 - details: - - name: Bills - amount: 46060.53 - - supplierId: 9436ead6-545e-4e8c-8444-0220047c5a38 - supplierName: Champlin LLC - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 22726.97 - details: - - name: Bills - amount: 22726.97 - - supplierId: O6jExrbN3v - supplierName: Collins - Anderson - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -19.39 - details: - - name: BillCreditNotes - amount: -19.39 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 0 - details: - - name: Bills - amount: 0 - - supplierId: 9d4b61a4-4ce3-4d90-8d6b-66614694dc27 - supplierName: Crona - Adams - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 302.8 - details: - - name: Bills - amount: 302.8 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 0 - details: [] - - supplierId: ad8f4ee1-7a04-415f-b3dc-365d41d8d4f0 - supplierName: 'Cronin, Kunde and Tremblay' - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -3271.91 - details: - - name: BillCreditNotes - amount: -3271.91 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 3479.78 - details: - - name: Bills - amount: 3479.78 - - supplierId: 8GeHBdBZiZ - supplierName: 'DuBuque, Goyette and Franecki' - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -16511.91 - details: - - name: BillCreditNotes - amount: -16511.91 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 0 - details: - - name: Bills - amount: 0 - - supplierId: XOPP3v2lQu - supplierName: Fisher and Sons - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 238599.9 - details: - - name: Bills - amount: 238599.9 - - supplierId: 0a7b0432-7de3-4e29-bf15-4e7ca0722384 - supplierName: Flatley - Kirlin - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -113.59 - details: - - name: BillCreditNotes - amount: -113.59 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 910.45 - details: - - name: Bills - amount: 910.45 - - supplierId: HrGZeW4I51 - supplierName: 'Frami, Simonis and Krajcik' - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -2070.59 - details: - - name: BillCreditNotes - amount: -2070.59 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 0 - details: - - name: Bills - amount: 0 - - supplierId: SFmBGSHLQ3 - supplierName: Gottlieb LLC - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -105.07 - details: - - name: BillCreditNotes - amount: -105.07 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 0 - details: - - name: Bills - amount: 0 - - supplierId: unNIu8Uyap - supplierName: Hahn and Sons - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -297.78 - details: - - name: BillCreditNotes - amount: -297.78 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 2095.75 - details: - - name: Bills - amount: 2095.75 - - supplierId: GTGS3Sx241 - supplierName: Harvey Predovic - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 3612.41 - details: - - name: Bills - amount: 3612.41 - - supplierId: w07H3CBm5P - supplierName: 'Hayes, Predovic and Ruecker' - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -11662.51 - details: - - name: BillCreditNotes - amount: -11662.51 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 393776.18 - details: - - name: Bills - amount: 393776.18 - - supplierId: 92144542-2227-409e-8f5b-fc73260e670b - supplierName: 'Hettinger, Schmitt and Will' - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 3433.54 - details: - - name: Bills - amount: 3433.54 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 0 - details: [] - - supplierId: rpLhEYz0ML - supplierName: Hickle - Buckridge - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -7484.88 - details: - - name: BillCreditNotes - amount: -7484.88 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 0 - details: - - name: Bills - amount: 0 - - supplierId: d2056eb9-649e-4808-8f96-d8ea4dac71fe - supplierName: Hodkiewicz Group - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -6627.16 - details: - - name: BillCreditNotes - amount: -6627.16 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 18266.27 - details: - - name: Bills - amount: 18266.27 - - supplierId: s3WcvMyVdR - supplierName: Howe - Ruecker - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 4042.16 - details: - - name: Bills - amount: 4042.16 - - supplierId: b60XbI9zhE - supplierName: Jenkins Inc - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -12938.29 - details: - - name: BillCreditNotes - amount: -12938.29 - - name: Bills - amount: 0 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 18360.8 - details: - - name: Bills - amount: 18360.8 - - supplierId: OtXKRTOcQc - supplierName: Jensen Steuber - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 190.16 - details: - - name: Bills - amount: 190.16 - - supplierId: c02bc2f1-631d-4721-aec1-a190d63e8322 - supplierName: Jones - Zulauf - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -69.05 - details: - - name: BillCreditNotes - amount: -69.05 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 51357.36 - details: - - name: Bills - amount: 51357.36 - - supplierId: c02382bd-ff23-4b34-bfd7-8dce15fa7d6a - supplierName: Keara Leffler - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -2496.69 - details: - - name: BillCreditNotes - amount: -2496.69 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 1519.74 - details: - - name: Bills - amount: 1519.74 - - supplierId: d3tf43eghS - supplierName: Klocko - Keebler - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 12367.4 - details: - - name: Bills - amount: 12367.4 - - supplierId: 7GObELDcsE - supplierName: 'Lakin, Schmeler and Kihn' - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -318.71 - details: - - name: BillCreditNotes - amount: -318.71 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 0 - details: - - name: Bills - amount: 0 - - supplierId: gO8p5O3Mvy - supplierName: Lehner Group - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -1042.8 - details: - - name: BillCreditNotes - amount: -1042.8 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 0 - details: - - name: Bills - amount: 0 - - supplierId: 62229022-713f-4c64-84f2-63cf6dd11443 - supplierName: Littel - Cole - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -7.5 - details: - - name: BillCreditNotes - amount: -7.5 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 0 - details: - - name: Bills - amount: 0 - - supplierId: 39b32019-c5d0-4db3-ae83-f0a644e614ef - supplierName: Marvin - Schaden - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -1611.56 - details: - - name: BillCreditNotes - amount: -1611.56 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 0 - details: - - name: Bills - amount: 0 - - supplierId: 8635b986-048f-424c-985d-912576c004d9 - supplierName: 'Mills, Bechtelar and Wintheiser' - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -604.41 - details: - - name: BillCreditNotes - amount: -604.41 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 0 - details: - - name: Bills - amount: 0 - - supplierId: d2fb1aba-79ac-4840-95d5-6c173c9beaad - supplierName: Morissette LLC - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -55.93 - details: - - name: BillCreditNotes - amount: -55.93 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 0 - details: - - name: Bills - amount: 0 - - supplierId: 27dc0345-aae8-4b69-a903-fed6b0a8778b - supplierName: Newton Zieme - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 1546.46 - details: - - name: Bills - amount: 1546.46 - - supplierId: 0d892acd-4b56-4412-80ee-381b8118637b - supplierName: Nicolas - McKenzie - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -186.97 - details: - - name: BillCreditNotes - amount: -186.97 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 5131.74 - details: - - name: Bills - amount: 5131.74 - - supplierId: cc283863-960f-42f8-8e38-1e22235e9cfc - supplierName: Nicolas Group - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -6.41 - details: - - name: BillCreditNotes - amount: -6.41 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 0 - details: - - name: Bills - amount: 0 - - supplierId: 9UvJVVmPHO - supplierName: Nienow - Schroeder - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -2822.41 - details: - - name: BillCreditNotes - amount: -2822.41 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 0 - details: - - name: Bills - amount: 0 - - supplierId: 1346295c-2970-47a7-8a99-1f935567db02 - supplierName: Polly Crona - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 3600.36 - details: - - name: Bills - amount: 3600.36 - - supplierId: 5fcb09bf-ae92-42a1-a69b-57c5f0ebedd9 - supplierName: Raul Johns - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -2938.85 - details: - - name: Bills - amount: 0 - - name: BillCreditNotes - amount: -2938.85 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 0 - details: [] - - supplierId: 4253a13e-638e-4a42-9e61-665a60267a48 - supplierName: 'Robel, Ledner and Stroman' - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 1106.72 - details: - - name: Bills - amount: 1106.72 - - supplierId: 143ed2c5-2623-465e-a015-5ac12df75aa6 - supplierName: Schulist - Douglas - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -12468.22 - details: - - name: BillCreditNotes - amount: -12468.22 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 39306.44 - details: - - name: Bills - amount: 39306.44 - - supplierId: d770b767-489e-455b-9d32-29c37a1b9d07 - supplierName: Schultz Group - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -517.52 - details: - - name: BillCreditNotes - amount: -517.52 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 0 - details: - - name: Bills - amount: 0 - - supplierId: 98e93284-fcaa-440c-8f86-f36e5df591da - supplierName: Simonis - Ziemann - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -597.01 - details: - - name: BillCreditNotes - amount: -597.01 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 0 - details: [] - - supplierId: 87e907ed-97f8-4146-b276-fea2a10671bf - supplierName: Sporer and Sons - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -62443.6 - details: - - name: BillCreditNotes - amount: -62443.6 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 0 - details: - - name: Bills - amount: 0 - - supplierId: 97682025-4e50-449f-8510-6d09d1d0f84b - supplierName: Sporer LLC - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -1104.37 - details: - - name: BillCreditNotes - amount: -1104.37 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 1050.12 - details: - - name: Bills - amount: 1050.12 - - supplierId: c51351a0-b43f-48c6-8dbb-8417171bda67 - supplierName: Veum - Schiller - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -1966.59 - details: - - name: BillCreditNotes - amount: -1966.59 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 10234.97 - details: - - name: Bills - amount: 10234.97 - - supplierId: 26f6b56a-4a86-468f-a302-9d60bdc01d91 - supplierName: Vincenzo Wolff - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -23450.31 - details: - - name: BillCreditNotes - amount: -23450.31 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 0 - details: - - name: Bills - amount: 0 - - supplierId: f589fd05-c5f8-4815-b205-0a9f3f0b3b96 - supplierName: Weber LLC - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -681.79 - details: - - name: BillCreditNotes - amount: -681.79 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 10221.45 - details: - - name: Bills - amount: 10221.45 - - supplierId: 1cc8b95c-62ec-415a-ab0e-facf7e7218bf - supplierName: 'Welch, Terry and Hermiston' - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 1219.54 - details: - - name: Bills - amount: 1219.54 - - supplierId: f6CgWtm1aw - supplierName: Wisoky Group - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 272.67 - details: - - name: Bills - amount: 272.67 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 0 - details: - - name: Bills - amount: 0 - - supplierId: je5ok1Cam5 - supplierName: 'Wunsch, Kerluke and West' - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 7238.24 - details: - - name: Bills - amount: 7238.24 - Dynamics 365 Business Central: - value: - generated: '2023-05-02T16:05:21.1349781Z' - reportDate: '2023-05-02T16:05:21.0866594Z' - data: - - supplierId: e89328bd-485a-eb11-89fa-00224800af18 - supplierName: A QA - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -526.8 - details: - - name: BillCreditNotes - amount: -526.8 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 120 - details: - - name: Bills - amount: 120 - - supplierId: be1217b3-89d1-ea11-bbaa-000d3a2b9185 - supplierName: 'Fabrikam, Inc.' - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -65 - details: - - name: BillCreditNotes - amount: -65 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -11904.4 - details: - - name: Bills - amount: 461.6 - - name: BillPayments - amount: -12366 - - currency: PLN - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -15 - details: - - name: BillPayments - amount: -15 - - currency: MAD - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 5 - details: - - name: Bills - amount: 5 - - supplierId: c01217b3-89d1-ea11-bbaa-000d3a2b9185 - supplierName: First Up Consultants - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 12123.81 - details: - - name: Bills - amount: 12128.81 - - name: BillPayments - amount: -5 - - supplierId: c21217b3-89d1-ea11-bbaa-000d3a2b9185 - supplierName: Graphic Design Institute - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 7514.8 - details: - - name: Bills - amount: 7520.8 - - name: BillPayments - amount: -6 - - supplierId: 4a1b210e-b805-ec11-86bc-0022481a45c2 - supplierName: Kays Farm - agedCurrencyOutstanding: - - currency: USD - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -121 - details: - - name: BillPayments - amount: -121 - - supplierId: c61217b3-89d1-ea11-bbaa-000d3a2b9185 - supplierName: Nod Publishers - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 13156.74 - details: - - name: Bills - amount: 13156.74 - - supplierId: b864b5ae-4a5a-eb11-89fa-00224800af18 - supplierName: Test Supplier - agedCurrencyOutstanding: - - currency: EUR - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 3951 - details: - - name: Bills - amount: 3951 - - currency: MAD - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 121.45 - details: - - name: Bills - amount: 121.45 - - supplierId: 8b4c95b4-b705-ec11-86bc-0022481a45c2 - supplierName: Vegan Farm - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -5.27 - details: - - name: Bills - amount: 0 - - name: BillPayments - amount: -5.27 - - currency: USD - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -11.75 - details: - - name: BillPayments - amount: -11.75 - - supplierId: c41217b3-89d1-ea11-bbaa-000d3a2b9185 - supplierName: Wide World Importers - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 15843.22 - details: - - name: Bills - amount: 15848.22 - - name: BillPayments - amount: -5 - Exact (Netherlands): - value: - generated: '2023-05-02T16:05:19.8312183Z' - reportDate: '2023-05-02T16:05:19.7538301Z' - data: - - supplierId: 3150917c-1d92-4d77-9018-31b5c4758ca9 - supplierName: Abe - agedCurrencyOutstanding: - - currency: EUR - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -38.28 - details: - - name: BillCreditNotes - amount: -38.28 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 1952.27 - details: - - name: Bills - amount: 1941.58 - - name: BillPayments - amount: 10.69 - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 10 - details: - - name: Bills - amount: 10 - - supplierId: 5811b467-53eb-4491-8ca1-bc9b7889811b - supplierName: Ann's test supplier 2 - agedCurrencyOutstanding: - - currency: EUR - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -10000 - details: - - name: BillCreditNotes - amount: -10000 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 0 - details: [] - - currency: USD - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 117 - details: - - name: Bills - amount: 117 - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 4997.25 - details: - - name: Bills - amount: 4997.25 - - supplierId: 78afea22-ee21-48c3-84d5-45b9b24768e9 - supplierName: Ann's test supplier 2 - agedCurrencyOutstanding: - - currency: EUR - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 110 - details: - - name: Bills - amount: 108 - - name: BillPayments - amount: 2 - - supplierId: 773416a6-b196-487b-ae02-eeb273a86bcd - supplierName: Belastingdienst - agedCurrencyOutstanding: - - currency: EUR - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -293.14 - details: - - name: BillCreditNotes - amount: -293.14 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 1547.08 - details: - - name: Bills - amount: 1547.08 - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 32.17 - details: - - name: Bills - amount: 32.17 - - supplierId: 7017da1f-2d49-4601-abf3-c4e779459976 - supplierName: Bool Test - agedCurrencyOutstanding: - - currency: EUR - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 121 - details: - - name: Bills - amount: 121 - - supplierId: f87070e2-bbd7-4383-a7c9-824748c1d70e - supplierName: Exact Software Nederland B.V. - agedCurrencyOutstanding: - - currency: EUR - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -65.73 - details: - - name: BillCreditNotes - amount: -65.73 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -83351.62 - details: - - name: BillPayments - amount: -83381.63 - - name: Bills - amount: 30.01 - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -8285.73 - details: - - name: BillPayments - amount: -8285.73 - - supplierId: 8cb6745b-4769-4c7a-9d92-bc688c60ca3c - supplierName: iZettle AB (Supplier) - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 19.93 - details: - - name: Bills - amount: 19.93 - - supplierId: 63fadca8-4905-475a-b32a-b4341293bcf4 - supplierName: Kelly's Industrial Supplies - agedCurrencyOutstanding: - - currency: EUR - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 5 - details: - - name: BillPayments - amount: 5 - - supplierId: acde3236-898e-4e68-b076-4e946defbc5f - supplierName: Matt Ager Test Supplier 1 - agedCurrencyOutstanding: - - currency: EUR - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -276 - details: - - name: BillCreditNotes - amount: -276 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 75 - details: - - name: Bills - amount: 105 - - name: BillPayments - amount: -30 - - currency: RUB - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -10 - details: - - name: BillPayments - amount: -10 - - supplierId: 5e6f49b9-6489-4b82-83e7-291d308919bb - supplierName: Mickey Mouse - agedCurrencyOutstanding: - - currency: EUR - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -12.1 - details: - - name: BillCreditNotes - amount: -12.1 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 119.97 - details: - - name: Bills - amount: 119.97 - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -7040 - details: - - name: BillCreditNotes - amount: -7040 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 8800 - details: - - name: Bills - amount: 8800 - - supplierId: fc189bfa-f083-438c-bf09-379a0631d4a1 - supplierName: Mickey Mouse - agedCurrencyOutstanding: - - currency: EUR - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -0.83 - details: - - name: Bills - amount: -0.83 - - supplierId: 1d2c9f47-a2fc-48e6-a967-71583d764b10 - supplierName: NLSuppliers07 - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 25 - details: - - name: Bills - amount: 25 - - supplierId: a1e88d58-caec-4ed6-ad1b-646ebb959c17 - supplierName: supplierrrr - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -55 - details: - - name: BillCreditNotes - amount: -55 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 11084 - details: - - name: Bills - amount: 11084 - - supplierId: cdcdce7b-0330-49fb-8169-0a50e0b74dcc - supplierName: Test NL sup1 - agedCurrencyOutstanding: - - currency: EUR - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 13.21 - details: - - name: BillPayments - amount: 13.21 - - supplierId: bad8020a-267f-41fb-9e0f-e93465ee9529 - supplierName: Test supplier - agedCurrencyOutstanding: - - currency: EUR - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 718.22 - details: - - name: Bills - amount: 718.22 - - supplierId: 26bc5305-8613-43e4-ab97-522ade34cbba - supplierName: Vandana's Test Supplier - agedCurrencyOutstanding: - - currency: EUR - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 403.74 - details: - - name: Bills - amount: 403.74 - Exact (UK): - value: - generated: '2023-05-02T16:05:22.8960035Z' - reportDate: '2023-05-02T16:05:22.8283897Z' - data: - - supplierId: 0185fea2-0298-445b-909a-0db685118a9e - supplierName: a - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -10 - details: - - name: BillCreditNotes - amount: -10 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 560.1 - details: - - name: Bills - amount: 660.1 - - name: BillPayments - amount: -100 - - supplierId: 64ae712f-4155-48bb-9fce-98232c51d979 - supplierName: aa - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -400 - details: - - name: BillCreditNotes - amount: -400 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 30 - details: - - name: Bills - amount: 430 - - name: BillPayments - amount: -400 - - supplierId: 5f20075a-a28e-434d-81a6-2db0dc170e87 - supplierName: Abdi 99 - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -65 - details: - - name: BillCreditNotes - amount: -65 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 609 - details: - - name: Bills - amount: 258 - - name: BillPayments - amount: 351 - - supplierId: 0d3f8692-4b0a-4bc3-85f2-4cb763306397 - supplierName: Ann's test supplier - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -3600 - details: - - name: BillCreditNotes - amount: -3600 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 2400 - details: - - name: Bills - amount: 2400 - - supplierId: fc62db43-a6f8-4b65-9d29-15290ec56674 - supplierName: Anna's test supplier - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -1717.5 - details: - - name: BillCreditNotes - amount: -1717.5 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 2751 - details: - - name: Bills - amount: 2751 - - supplierId: cde51f36-2a06-4eac-9784-c0c967c1e1ed - supplierName: b - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -6 - details: - - name: BillCreditNotes - amount: -6 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 0 - details: [] - - supplierId: 437c6631-3c5d-4351-b757-6ad4f94bd26e - supplierName: bb - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 220 - details: - - name: Bills - amount: 220 - - supplierId: fe713acb-3c98-423d-8372-68a32aae6232 - supplierName: cc - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -60 - details: - - name: BillPayments - amount: -60 - - supplierId: 1c703cce-967c-4476-a86a-32e35341a8f5 - supplierName: Customer Bill Supplier - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -100073.4 - details: - - name: BillCreditNotes - amount: -100073.4 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 374.8 - details: - - name: Bills - amount: 373.8 - - name: BillPayments - amount: 1 - - supplierId: 6a4c6a14-d5eb-4427-aae0-c544f67dff7a - supplierName: CustomerAndSupplier - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 2.05 - details: - - name: BillPayments - amount: 2.05 - - supplierId: efb5d438-7d3a-4b77-a254-2d90f76d3f22 - supplierName: dd - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 200 - details: - - name: Bills - amount: 200 - - supplierId: 77b652bb-a363-4425-adbd-0206e2ce4639 - supplierName: e - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -72.33 - details: - - name: BillCreditNotes - amount: -72.33 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 0 - details: [] - - supplierId: a4d5d739-c979-4819-b0ce-666db1ec3a7d - supplierName: Exact Software (UK) Ltd � Exact Online - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 133.6 - details: - - name: Bills - amount: 133.6 - - supplierId: 7c8a9143-7322-48e3-b809-88a038b8a0e0 - supplierName: John Doe - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 192.5 - details: - - name: Bills - amount: 192.5 - - supplierId: a7cad20d-44db-442b-ac1f-90475802d6fb - supplierName: Pencils Pencils Pencils - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -1200 - details: - - name: BillCreditNotes - amount: -1200 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 3837 - details: - - name: Bills - amount: 3837 - - supplierId: 41302634-76b5-4442-b800-0bb63780e77c - supplierName: Some Supplier - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -46.8 - details: - - name: BillCreditNotes - amount: -46.8 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -54537.12 - details: - - name: Bills - amount: 455.73 - - name: BillPayments - amount: -54992.85 - FreeAgent: - value: - generated: '2023-05-02T16:05:23.3560058Z' - reportDate: '2023-05-02T16:05:23.3059155Z' - data: - - supplierId: '10123537' - supplierName: _Test 1 - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: - - name: BillPayments - amount: 0 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 791 - details: - - name: Bills - amount: 791 - - currency: QAR - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 12 - details: - - name: Bills - amount: 12 - - supplierId: '11526230' - supplierName: '-' - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -6430 - details: - - name: Bills - amount: 1500 - - name: BillCreditNotes - amount: -7930 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 1200 - details: - - name: Bills - amount: 1200 - - supplierId: '9677150' - supplierName: '-' - agedCurrencyOutstanding: - - currency: EUR - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 5 - details: - - name: Bills - amount: 5 - - supplierId: '8959011' - supplierName: '1' - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -134.3 - details: - - name: BillCreditNotes - amount: -134.3 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 46 - details: - - name: Bills - amount: 46 - - supplierId: '6161941' - supplierName: A & J Fabtech Ltd - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -2433.99 - details: - - name: BillCreditNotes - amount: -2433.99 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 3431 - details: - - name: Bills - amount: 3431 - - currency: USD - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 400 - details: - - name: Bills - amount: 400 - - supplierId: '6161963' - supplierName: ABB Ltd - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -10 - details: - - name: BillCreditNotes - amount: -10 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 0 - details: - - name: Bills - amount: 0 - - supplierId: '9356878' - supplierName: Abdul Al-haj - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 12 - details: - - name: Bills - amount: 12 - - supplierId: '8984892' - supplierName: Abraham's Spider Hunting Ltd - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 77 - details: - - name: Bills - amount: 77 - - supplierId: '9273150' - supplierName: Best Company - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -456 - details: - - name: BillCreditNotes - amount: -456 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 0 - details: [] - - supplierId: '6161956' - supplierName: C Allen - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -100 - details: - - name: BillCreditNotes - amount: -100 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 122 - details: - - name: Bills - amount: 122 - - supplierId: '7994567' - supplierName: codat - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 10 - details: - - name: Bills - amount: 10 - - supplierId: '5730310' - supplierName: Demo Customer - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 200 - details: - - name: Bills - amount: 200 - - supplierId: '6162169' - supplierName: PricewaterhouseCoopers LLP - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 42 - details: - - name: Bills - amount: 42 - - supplierId: '10672202' - supplierName: Random Org - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -42 - details: - - name: BillCreditNotes - amount: -42 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 130 - details: - - name: Bills - amount: 130 - - supplierId: '8989342' - supplierName: Supplier Hidden - agedCurrencyOutstanding: - - currency: USD - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -500 - details: - - name: BillCreditNotes - amount: -500 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 0 - details: [] - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -150 - details: - - name: BillPayments - amount: -150 - - supplierId: '7169654' - supplierName: The Eagle - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -492 - details: - - name: BillCreditNotes - amount: -492 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 3523.75 - details: - - name: Bills - amount: 3523.75 - - currency: USD - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 301 - details: - - name: Bills - amount: 301 - MYOB AccountRight and Essentials: - value: - generated: '2023-05-02T16:05:21.5229720Z' - reportDate: '2023-05-02T16:05:21.2821865Z' - data: [] - Oracle NetSuite: - value: - generated: '2023-05-02T16:05:20.3296968Z' - reportDate: '2023-05-02T16:05:20.2442587Z' - data: - - supplierId: '779' - supplierName: Test Vendor - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 56 - details: - - name: Bills - amount: 56 - - supplierId: '724' - supplierName: Vendor A.A.A - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 579.55 - details: - - name: Bills - amount: 524 - - name: BillPayments - amount: 55.55 - QuickBooks Desktop: - value: - generated: '2023-05-02T16:05:20.3972104Z' - reportDate: '2023-05-02T16:05:20.3178060Z' - data: - - supplierId: B0000-933272656 - supplierName: Patton Hardware Supplies - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: - - name: BillPayments - amount: 0 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 5000 - details: - - name: Bills - amount: 5000 - QuickBooks Online: - value: - generated: '2023-05-02T16:05:21.3065432Z' - reportDate: '2023-05-02T16:05:21.2488309Z' - data: - - supplierId: '129' - supplierName: Ally Johnson - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 230.98 - details: - - name: Bills - amount: 276.38 - - name: BillPayments - amount: -45.4 - - supplierId: '88' - supplierName: Andrew Haberbosch - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -16 - details: - - name: BillCreditNotes - amount: -16 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 66.25 - details: - - name: BillPayments - amount: -13.75 - - name: Bills - amount: 80 - - supplierId: '53' - supplierName: Bank of AnyCity - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 63 - details: - - name: Bills - amount: 63 - - supplierId: '282' - supplierName: Becky's Bakery - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 490.5 - details: - - name: BillPayments - amount: -9.5 - - name: Bills - amount: 500 - - supplierId: '24' - supplierName: Brijesh Jain - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -69 - details: - - name: BillCreditNotes - amount: -69 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 52260 - details: - - name: Bills - amount: 52260 - - supplierId: '25' - supplierName: Brittney Hughes - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 70 - details: - - name: Bills - amount: 70 - - supplierId: '26' - supplierName: Burc Gunes - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 33.05 - details: - - name: Bills - amount: 33.05 - - supplierId: '27' - supplierName: Cass Hayden - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 1450 - details: - - name: Bills - amount: 1500 - - name: BillPayments - amount: -50 - - supplierId: '51' - supplierName: City Water Co - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 7.25 - details: - - name: Bills - amount: 24 - - name: BillPayments - amount: -16.75 - - supplierId: '297' - supplierName: Codat Supplier - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -128 - details: - - name: Bills - amount: 0 - - name: BillPayments - amount: -25 - - name: BillCreditNotes - amount: -103 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -328.32 - details: - - name: Bills - amount: 0 - - name: BillPayments - amount: -328.32 - - supplierId: '87' - supplierName: Costco - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -17.85 - details: - - name: BillPayments - amount: -17.85 - - supplierId: '57' - supplierName: Hall's Promo Items - agedCurrencyOutstanding: - - currency: HKD - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 1041.09 - details: - - name: Bills - amount: 1041.09 - - supplierId: '92' - supplierName: Huw Thomas - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 25292 - details: - - name: Bills - amount: 25302 - - name: BillPayments - amount: -10 - - supplierId: '85' - supplierName: Jay's Farm - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -446.83 - details: - - name: BillCreditNotes - amount: -446.83 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 9759.68 - details: - - name: Bills - amount: 9822.46 - - name: BillPayments - amount: -62.78 - - supplierId: '34' - supplierName: Jennifer Hargreaves - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 239.01 - details: - - name: Bills - amount: 239.01 - - supplierId: '37' - supplierName: Kristina Gibson - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -1710 - details: - - name: BillCreditNotes - amount: -1710 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 502.38 - details: - - name: Bills - amount: 502.38 - - supplierId: '41' - supplierName: Mark Howard - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 3000 - details: - - name: Bills - amount: 3000 - - supplierId: '23' - supplierName: Mr Andrew Thomas Haberbosch - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -21.2 - details: - - name: BillCreditNotes - amount: -21.2 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 54.09 - details: - - name: Bills - amount: 54.09 - - supplierId: '54' - supplierName: Organization of Outstanding Event Planners - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 390 - details: - - name: Bills - amount: 390 - - supplierId: '47' - supplierName: Sanjeev Kak - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 21 - details: - - name: Bills - amount: 21 - - supplierId: '74' - supplierName: TestPushCustomer3 - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 200 - details: - - name: Bills - amount: 200 - - supplierId: '86' - supplierName: Vegan Farm - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -42.76 - details: - - name: BillCreditNotes - amount: -42.76 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 1249.3 - details: - - name: BillPayments - amount: -504.24 - - name: Bills - amount: 1753.54 - - supplierId: '58' - supplierName: Venue Rental - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 461 - details: - - name: Bills - amount: 500 - - name: BillPayments - amount: -39 - Sage 200cloud: - value: - generated: '2023-05-02T16:05:20.7939148Z' - reportDate: '2023-05-02T16:05:20.7474542Z' - data: - - supplierId: CON002 - supplierName: Concept Stationery Sub A - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 411.76 - details: - - name: Bills - amount: 782.56 - - name: BillPayments - amount: -370.8 - - supplierId: CON001 - supplierName: Concept Stationery Supplies - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -167.1 - details: - - name: BillCreditNotes - amount: -167.1 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 5062.78 - details: - - name: Bills - amount: 5111.01 - - name: BillPayments - amount: -48.23 - - supplierId: MCN001 - supplierName: McNally Computer Supplies - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 25802.03 - details: - - name: Bills - amount: 25934.03 - - name: BillPayments - amount: -132 - - supplierId: MEA001 - supplierName: Mears Insurance - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -48 - details: - - name: BillCreditNotes - amount: -48 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 1368.02 - details: - - name: Bills - amount: 1524 - - name: BillPayments - amount: -155.98 - - supplierId: NEW001 - supplierName: Newtown Builders Ltd - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -13.21 - details: - - name: BillCreditNotes - amount: -13.21 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 1024.13 - details: - - name: Bills - amount: 1041.61 - - name: BillPayments - amount: -17.48 - - supplierId: QUA001 - supplierName: Quality Motors - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -105.64 - details: - - name: BillCreditNotes - amount: -105.64 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 155.92 - details: - - name: Bills - amount: 155.92 - - supplierId: RSP002 - supplierName: Richard Sanderson-Pope - agedCurrencyOutstanding: - - currency: JPY - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 60000 - details: - - name: Bills - amount: 60000 - - supplierId: SDE001 - supplierName: S D Enterprises - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 1130.29 - details: - - name: Bills - amount: 1189.29 - - name: BillPayments - amount: -59 - - supplierId: STU001 - supplierName: Studio Designs - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 562.06 - details: - - name: Bills - amount: 562.06 - - supplierId: SUP002 - supplierName: Superclean - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 2055.3 - details: - - name: Bills - amount: 2055.3 - - supplierId: SUP001 - supplierName: Superior Technologies Ltd - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 9433.71 - details: - - name: Bills - amount: 9433.71 - - supplierId: THO001 - supplierName: Thompsons Electricals - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -135.13 - details: - - name: BillCreditNotes - amount: -135.13 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 576.04 - details: - - name: Bills - amount: 1091.04 - - name: BillPayments - amount: -515 - - supplierId: UNI001 - supplierName: Unique Systems - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -103.4 - details: - - name: BillCreditNotes - amount: -103.4 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 1104.16 - details: - - name: Bills - amount: 1104.16 - - supplierId: WAL001 - supplierName: Wallace Office Equipment - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -70.76 - details: - - name: BillCreditNotes - amount: -70.76 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -55.52 - details: - - name: Bills - amount: 94.48 - - name: BillPayments - amount: -150 - - supplierId: WIS001 - supplierName: Wise Electricals Ltd - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -35.01 - details: - - name: BillCreditNotes - amount: -35.01 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -221.75 - details: - - name: Bills - amount: -121.75 - - name: BillPayments - amount: -100 - - supplierId: WIS002 - supplierName: Wiseman Paper Products - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 5868.13 - details: - - name: Bills - amount: 5868.13 - Sage 50 (UK): - value: - generated: '2023-05-02T16:05:20.0257207Z' - reportDate: '2023-05-02T16:05:19.9751677Z' - data: - - supplierId: CON001 - supplierName: Concept Stationery Supplies - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 1644.39 - details: - - name: Bills - amount: 1644.39 - - supplierId: MCN001 - supplierName: McNally Computer Supplies - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 24734.12 - details: - - name: Bills - amount: 24734.12 - - supplierId: NEW001 - supplierName: Newtown Builders Ltd - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -0.01 - details: - - name: BillCreditNotes - amount: -0.01 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 0.01 - details: - - name: Bills - amount: 0.01 - - supplierId: QUA001 - supplierName: Quality Motors - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -42.63 - details: - - name: BillCreditNotes - amount: -42.63 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 72.85 - details: - - name: Bills - amount: 72.85 - - supplierId: SDE001 - supplierName: S D Enterprises - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 352.5 - details: - - name: Bills - amount: 352.5 - - supplierId: SUP002 - supplierName: Superclean - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 1762.5 - details: - - name: Bills - amount: 1762.5 - - supplierId: SUP001 - supplierName: Superior Technologies Ltd - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 9164.95 - details: - - name: Bills - amount: 9164.95 - - supplierId: THO001 - supplierName: Thompsons Electricals - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -135.13 - details: - - name: BillCreditNotes - amount: -135.13 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 472.24 - details: - - name: Bills - amount: 972.24 - - name: BillPayments - amount: -500 - - supplierId: UNI001 - supplierName: Unique Systems - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -103.4 - details: - - name: BillCreditNotes - amount: -103.4 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 744.16 - details: - - name: Bills - amount: 744.16 - - supplierId: WAL001 - supplierName: Wallace Office Equipment - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -58.76 - details: - - name: BillCreditNotes - amount: -58.76 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -55.52 - details: - - name: Bills - amount: 94.48 - - name: BillPayments - amount: -150 - - supplierId: WIS001 - supplierName: Wise Electricals Ltd - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -35.01 - details: - - name: BillCreditNotes - amount: -35.01 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 117.29 - details: - - name: Bills - amount: 117.29 - - supplierId: WIS002 - supplierName: Wiseman Paper Products - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 5868.13 - details: - - name: Bills - amount: 5868.13 - Sage Business Cloud Accounting: - value: - generated: '2023-05-02T16:05:21.3095542Z' - reportDate: '2023-05-02T16:05:21.1514485Z' - data: - - supplierId: 65179671e9ef424caff8b9006cd111c8 - supplierName: 5555 Abdul's Test Name - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -60 - details: - - name: BillCreditNotes - amount: -60 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 1548.84 - details: - - name: Bills - amount: 1608.84 - - name: BillPayments - amount: -60 - - supplierId: cf7f44d693904944a6a7cf3de0887964 - supplierName: Abdi Supplier - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -841570.32 - details: - - name: BillCreditNotes - amount: -841570.32 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 661901.14 - details: - - name: Bills - amount: 662062.14 - - name: BillPayments - amount: -161 - - supplierId: f82f0f59fbf44416b833562783388ee9 - supplierName: Abe's Spider Hunting Ltd - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -38.8 - details: - - name: Bills - amount: 1.2 - - name: BillPayments - amount: -40 - - supplierId: ec716559789111e8aaa5027d54329956 - supplierName: Bagels Limited - agedCurrencyOutstanding: - - currency: USD - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -140.97 - details: - - name: BillCreditNotes - amount: -140.97 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 1856307.16 - details: - - name: BillPayments - amount: -213 - - name: Bills - amount: 1856520.16 - - supplierId: b1354c4ae5db4d069acbcf49bee62215 - supplierName: Boyer Inc - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 360000 - details: - - name: Bills - amount: 360000 - - supplierId: 46b3d6acedcb4738a9646dc512562cda - supplierName: callum - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 1.2 - details: - - name: Bills - amount: 1.2 - - supplierId: 7e7450fadbb94d09abdaf609a51d05eb - supplierName: Debs UK Supplier - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -36 - details: - - name: BillCreditNotes - amount: -36 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 1814652 - details: - - name: Bills - amount: 1814652 - - supplierId: bf6fc20701264c899a1ba96365aa9d70 - supplierName: Eliana's - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -105.6 - details: - - name: BillCreditNotes - amount: -105.6 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 26.4 - details: - - name: Bills - amount: 26.4 - - supplierId: 30862a4b2c084a4fa2e640f9ef371e4c - supplierName: Flour Inc - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 60 - details: - - name: Bills - amount: 60 - - supplierId: 390ca10633cb4bf989961491e834b47a - supplierName: Jo Cheese - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 9 - details: - - name: Bills - amount: 9 - - supplierId: b10be78d0e9340a79743c538a0b481d0 - supplierName: M7 Smith - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 65150090 - details: - - name: Bills - amount: 65150090 - - supplierId: 693d3b961e744b02a6a260f4bada75b0 - supplierName: Matt Ager Test EU Supplier - agedCurrencyOutstanding: - - currency: EUR - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -6841.33 - details: - - name: BillCreditNotes - amount: -6841.33 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 6841.33 - details: - - name: Bills - amount: 6841.33 - - supplierId: 1edf56c368e14a35a050b3e8336e2272 - supplierName: Mike B Commerce Test - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 300 - details: - - name: Bills - amount: 300 - - supplierId: c6d3fa5bf2634b148d0ee82b6fbb8fe3 - supplierName: my shop supplier - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -120 - details: - - name: BillCreditNotes - amount: -120 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 0 - details: [] - - supplierId: cdeae2fcbe6447f698d2a59d68e4ad82 - supplierName: Nic Supp - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -36 - details: - - name: BillCreditNotes - amount: -36 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 0 - details: [] - - supplierId: 2e14c8cfee3041a4a5e8a619b336f900 - supplierName: Nic Supplies Ltd - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 30 - details: - - name: Bills - amount: 30 - - supplierId: c41981674176495f927f46ce663d46ac - supplierName: Ninetta Ponting - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -306 - details: - - name: BillPayments - amount: -306 - - supplierId: e2dd680fed99410982673f8fc2722357 - supplierName: Supplier 70 - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -70 - details: - - name: BillPayments - amount: -70 - - supplierId: 8d61f7cd3a2f4ceea26ac5bca15e10da - supplierName: Supplier 71 (AUD) - agedCurrencyOutstanding: - - currency: AUD - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: -701 - details: - - name: BillPayments - amount: -701 - - supplierId: 7a67caeb261f40259f0948785090af0b - supplierName: supplier test - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 12014.4 - details: - - name: Bills - amount: 12014.4 - - supplierId: d884f637bb3a4e589d640085b31ad6ee - supplierName: Tasty Treats Icecreams - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -454 - details: - - name: BillCreditNotes - amount: -454 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 456 - details: - - name: Bills - amount: 456 - - supplierId: ca430e0d156011e8b45c025132dab352 - supplierName: Test Supplier - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -1152.78 - details: - - name: BillCreditNotes - amount: -1152.78 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 14960.37 - details: - - name: Bills - amount: 15064.41 - - name: BillPayments - amount: -104.04 - - supplierId: 2541e491791c485a96cc480cfde112d6 - supplierName: Test Supplier 2 - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -50 - details: - - name: BillCreditNotes - amount: -50 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 63338524.47 - details: - - name: Bills - amount: 63338524.47 - - supplierId: 877aac191c3c40eda61115eea12641f7 - supplierName: Test Supplier 3 - agedCurrencyOutstanding: - - currency: EUR - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: -3535.61 - details: - - name: BillCreditNotes - amount: -3535.61 - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 50658.58 - details: - - name: Bills - amount: 50658.58 - - supplierId: d98e7afb4ca846dfbb12ca285f95f863 - supplierName: Test Supplier 4 (US) - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 51872949 - details: - - name: Bills - amount: 51872949 - Sage Intacct: - value: - generated: '2023-05-02T16:05:22.9252709Z' - reportDate: '2023-05-02T16:05:22.8758390Z' - data: - - supplierId: '3' - supplierName: ADP - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 487.5 - details: - - name: Bills - amount: 487.5 - - supplierId: '14' - supplierName: Kristofferson Consulting - agedCurrencyOutstanding: - - currency: USD - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 7200 - details: - - name: Bills - amount: 7200 - - supplierId: '7' - supplierName: Lenovo - agedCurrencyOutstanding: - - currency: USD - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 190 - details: - - name: Bills - amount: 190 - - supplierId: '8' - supplierName: Worldwide Commercial - agedCurrencyOutstanding: - - currency: USD - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 10 - details: - - name: Bills - amount: 10 - Xero: - value: - generated: '2023-05-02T16:05:20.3006654Z' - reportDate: '2023-05-02T16:05:20.2587933Z' - data: - - supplierId: 699f0091-b127-4796-9f15-41a2f42abeb2 - supplierName: ABC Furniture - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 1200 - details: - - name: Bills - amount: 1200 - - supplierId: 362819c9-f285-4d09-ac95-26327863adac - supplierName: Bayside Club - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 130 - details: - - name: Bills - amount: 130 - - supplierId: 2dc0ef7c-582f-4542-963b-dbdc069e4819 - supplierName: Bayside Wholesale - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 961.21 - details: - - name: Bills - amount: 961.21 - - supplierId: 51cbbfb0-8dc9-41aa-aad6-eb93b3cc40c6 - supplierName: Capital Cab Co - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 242 - details: - - name: Bills - amount: 242 - - supplierId: 3828f379-afa5-4b2a-9000-9c53d75ba1c6 - supplierName: Central Copiers - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 1063.56 - details: - - name: Bills - amount: 1063.56 - - supplierId: 8a593982-291c-4ec3-9a42-3dbccbc6e3c8 - supplierName: MCO Cleaning Services - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 119.08 - details: - - name: Bills - amount: 119.08 - - supplierId: 97cc88ca-f89b-41f0-b8b9-e750b6f2f1d9 - supplierName: Net Connect - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 54.13 - details: - - name: Bills - amount: 54.13 - - supplierId: dec56ceb-65e9-43b3-ac98-7fe09eb37e31 - supplierName: PowerDirect - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 244.45 - details: - - name: Bills - amount: 244.45 - - supplierId: f5a77e82-50e3-4340-a6e0-13d6a482a08a - supplierName: SMART Agency - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 4500 - details: - - name: Bills - amount: 4500 - - supplierId: 3a0d40a2-2698-4cf5-b7b2-30133c632ab6 - supplierName: Swanston Security - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 93.64 - details: - - name: Bills - amount: 93.64 - - supplierId: ac48c67d-3eea-44eb-96b1-9f7a89d9b761 - supplierName: Xero - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 56.35 - details: - - name: Bills - amount: 56.35 - - supplierId: 94a82e91-53da-4f87-a417-63d6a1607ced - supplierName: Young Bros Transport - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2023-04-02T00:00:00.0000000' - toDate: '2023-05-02T00:00:00.0000000' - amount: 0 - details: [] - - fromDate: '0001-01-01T00:00:00.0000000' - toDate: '2023-04-02T00:00:00.0000000' - amount: 125.03 - details: - - name: Bills - amount: 125.03 - '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' - '/companies/{companyId}/data/financials/balanceSheet': - parameters: - - $ref: '#/components/parameters/companyId' - get: - tags: - - Financial statements - summary: Get balance sheet - description: Gets the latest balance sheet for a company. - operationId: get-accounting-balance-sheet - x-speakeasy-group: financial-statements.balance-sheet - parameters: - - $ref: '#/components/parameters/accountingPeriodLength' - - $ref: '#/components/parameters/accountingPeriodsToCompare' - - $ref: '#/components/parameters/accountingStartMonth' - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/AccountingBalanceSheet' - examples: - Clear Books: - value: - currency: GBP - reports: - - date: '2023-03-31T00:00:00' - assets: - accountId: '' - name: Assets - value: 4643976.27 - items: - - accountId: '' - name: Fixed Assets - value: 3930291.27 - items: - - accountId: 724ca578-8b5d-4bdb-ad45-e3820eee9de9 - name: Office Equipment - value: 2354838.89 - items: [] - - accountId: be3eb911-034b-42de-95db-0d58ac978b7f - name: Computer Equipment - value: 1575452.38 - items: [] - - accountId: '' - name: Current Assets - value: 713685 - items: - - accountId: 1b6266d1-1e44-46c5-8eb5-a8f98e03124e - name: Accounts Receivable - value: 66538.63 - items: [] - - accountId: 22de1660-d745-4809-a363-16b134607e66 - name: Prepayments - value: 27250.93 - items: [] - - accountId: e5d7612c-1671-47b4-b733-5db48363fcd0 - name: Inventory - value: 113157.44 - items: [] - - accountId: '' - name: Bank - value: 506738 - items: - - accountId: dbcaf288-2b39-4b95-8ab3-42202ab15918 - name: Business Current Account - value: 506738 - items: [] - liabilities: - accountId: '' - name: Liabilities - value: 1183797.31 - items: - - accountId: '' - name: Current Liabilities - value: 544797.71 - items: - - accountId: 3a872b81-d1af-4d31-9bfa-a37280b8f68c - name: VAT - value: 27683.3 - items: [] - - accountId: d19852a2-e292-4eb9-a909-9dadb95c0e76 - name: Rounding - value: 0 - items: [] - - accountId: 9be6382f-6b33-402d-b448-0db1dbf67a98 - name: Historical Adjustment - value: 8985.44 - items: [] - - accountId: 53bf27a7-7497-4c61-9887-dfaad5c6d80a - name: Accounts Payable - value: 36981.83 - items: [] - - accountId: 8852a857-aa9d-4706-839f-638e9d6b5a66 - name: Unpaid Expense Claims - value: 0 - items: [] - - accountId: 3b58f7ff-fa16-453a-9931-f020816d76e7 - name: Interest Payables - value: 1193.59 - items: [] - - accountId: 8636effc-50fb-45ba-8b2b-18336fa29b6b - name: John Smith - value: 1147.11 - items: [] - - accountId: e2530acd-91c8-48f8-a35f-935dbd7432e2 - name: Accruals - value: 439935.82 - items: [] - - accountId: 62060aae-e5a6-4db5-a3bb-6abec6d47959 - name: Credit Card Control Account - value: 28870.62 - items: [] - - accountId: '' - name: Long Term Liability - value: 638999.6 - items: - - accountId: 55008233-40e7-41ac-84af-2255fa028c2e - name: Loan - value: 638999.6 - items: [] - netAssets: 3460178.96 - equity: - accountId: '' - name: Equity - value: 3460178.96 - items: - - accountId: 39225d6f-3722-4508-ac3f-a2f6ec96ad31 - name: Retained Earnings - value: 3405201.39 - items: [] - - accountId: 78828dd9-6008-4662-b43c-e9d87907fd2b - name: Current Year Earnings - value: 54977.57 - items: [] - - date: '2023-02-28T00:00:00' - assets: - accountId: '' - name: Assets - value: 4599890.71 - items: - - accountId: '' - name: Fixed Assets - value: 3882793.51 - items: - - accountId: 724ca578-8b5d-4bdb-ad45-e3820eee9de9 - name: Office Equipment - value: 2036803.36 - items: [] - - accountId: be3eb911-034b-42de-95db-0d58ac978b7f - name: Computer Equipment - value: 1845990.15 - items: [] - - accountId: '' - name: Current Assets - value: 717097.2 - items: - - accountId: 1b6266d1-1e44-46c5-8eb5-a8f98e03124e - name: Accounts Receivable - value: 136245.44 - items: [] - - accountId: 22de1660-d745-4809-a363-16b134607e66 - name: Prepayments - value: 18719.25 - items: [] - - accountId: e5d7612c-1671-47b4-b733-5db48363fcd0 - name: Inventory - value: 146898.62 - items: [] - - accountId: '' - name: Bank - value: 415233.89 - items: - - accountId: dbcaf288-2b39-4b95-8ab3-42202ab15918 - name: Business Current Account - value: 415233.89 - items: [] - liabilities: - accountId: '' - name: Liabilities - value: 1150262.51 - items: - - accountId: '' - name: Current Liabilities - value: 508579.57 - items: - - accountId: 3a872b81-d1af-4d31-9bfa-a37280b8f68c - name: VAT - value: 22517.83 - items: [] - - accountId: d19852a2-e292-4eb9-a909-9dadb95c0e76 - name: Rounding - value: 0 - items: [] - - accountId: 9be6382f-6b33-402d-b448-0db1dbf67a98 - name: Historical Adjustment - value: 5994.86 - items: [] - - accountId: 53bf27a7-7497-4c61-9887-dfaad5c6d80a - name: Accounts Payable - value: 49993.06 - items: [] - - accountId: 8852a857-aa9d-4706-839f-638e9d6b5a66 - name: Unpaid Expense Claims - value: 0 - items: [] - - accountId: 3b58f7ff-fa16-453a-9931-f020816d76e7 - name: Interest Payables - value: 1424.88 - items: [] - - accountId: 8636effc-50fb-45ba-8b2b-18336fa29b6b - name: John Smith - value: 1863.01 - items: [] - - accountId: e2530acd-91c8-48f8-a35f-935dbd7432e2 - name: Accruals - value: 399839.88 - items: [] - - accountId: 62060aae-e5a6-4db5-a3bb-6abec6d47959 - name: Credit Card Control Account - value: 26946.05 - items: [] - - accountId: '' - name: Long Term Liability - value: 641682.94 - items: - - accountId: 55008233-40e7-41ac-84af-2255fa028c2e - name: Loan - value: 641682.94 - items: [] - netAssets: 3449628.2 - equity: - accountId: '' - name: Equity - value: 3449628.19 - items: - - accountId: 39225d6f-3722-4508-ac3f-a2f6ec96ad31 - name: Retained Earnings - value: 3405201.39 - items: [] - - accountId: 78828dd9-6008-4662-b43c-e9d87907fd2b - name: Current Year Earnings - value: 44426.8 - items: [] - mostRecentAvailableMonth: '2023-03-31T00:00:00' - earliestAvailableMonth: '2018-04-01T00:00:00' - Dynamics 365 Business Central: - value: - currency: GBP - reports: - - date: '2023-03-27T00:00:00' - assets: - name: Assets - value: 260454.26 - items: - - name: '' - value: 27.34 - items: - - accountId: c0861a65-c69f-ec11-80f1-0022481b4546 - name: 10 - Account no cat Balance Sheet - value: 27.34 - items: [] - - accountId: 9cc90e3e-843d-ed11-97e8-0022481b89f2 - name: 12345 - Income Statement and Asset - value: 0 - items: [] - - name: Equipment - value: 5504.37 - items: - - accountId: 5b9782f7-0fe7-ec11-82f9-0022481afc56 - name: 1350 - Iana test - value: 16 - items: [] - - accountId: 6c1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 40800 - Equipment - value: 5488.37 - items: [] - - name: Cash - value: 36998.49 - items: - - accountId: 5e1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 40100 - Checking account - value: -35824.11 - items: [] - - accountId: 601217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 40200 - Savings account - value: 2802.59 - items: [] - - accountId: 621217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 40300 - Petty Cash - value: 70020.01 - items: [] - - accountId: 5c062318-3c59-ed11-8c36-002248c5e6c0 - name: 4544 - cash bal - value: 0 - items: [] - - name: Accounts Receivable - value: 189399.22 - items: - - accountId: 641217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 40400 - Accounts Receivable - value: 129008.09 - items: [] - - accountId: 9cb05c6f-9fbd-ed11-9a88-000d3a7ea13c - name: 40450 - test3 - value: 0 - items: [] - - accountId: 7a1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 46200 - Purchase VAT 20 % EU - value: -11635.12 - items: [] - - accountId: 7c1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 46210 - Purchase VAT 5 % EU - value: 0 - items: [] - - accountId: 7e1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 46300 - Purchase VAT 20 % - value: 71992.44 - items: [] - - accountId: 801217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 46310 - Purchase VAT 5 % - value: 9.35 - items: [] - - accountId: 821217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 46320 - Purchase Full VAT 5 % - value: 10 - items: [] - - accountId: 841217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 46330 - Purchase Full VAT 20 % - value: 14.46 - items: [] - - accountId: 1bd1222e-94bd-ed11-9a88-6045bd0f961f - name: 9999 - BaleSales - value: 0 - items: [] - - name: Prepaid Expenses - value: -1040 - items: - - accountId: 661217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 40500 - Prepaid Rent - value: 0 - items: [] - - accountId: 681217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 40600 - Prepaid Insurance - value: -1040 - items: [] - - accountId: 781217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 41000 - Vendor Prepayments - value: 0 - items: [] - - name: Inventory - value: 26065.84 - items: - - accountId: 6a1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 40700 - Inventory - value: 26065.84 - items: [] - - name: Accumulated Depreciation - value: 3499 - items: - - accountId: 6e1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 40900 - Accumulated Depreciation - value: 3499 - items: [] - - name: Assets - value: 0 - items: - - accountId: 701217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 40910 - WIP Job Sales - value: 0 - items: [] - - accountId: 721217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 40920 - Invoiced Job Sales - value: 0 - items: [] - - accountId: 741217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 40940 - Accrued Job Costs - value: 0 - items: [] - - accountId: 761217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 40950 - WIP Job Costs - value: 0 - items: [] - liabilities: - name: Liabilities - value: 99721.85 - items: - - name: Current Liabilities - value: 99735.85 - items: - - accountId: 8a1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 50100 - Accounts Payable - value: 42435.31 - items: [] - - accountId: 8c1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 50200 - Purchase Discounts - value: 210.22 - items: [] - - accountId: 8e1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 50300 - Purchase Returns & Allowances - value: 0 - items: [] - - accountId: 901217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 50400 - Deferred Revenue - value: 0 - items: [] - - accountId: 921217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 50500 - Credit Cards - value: 0 - items: [] - - accountId: 9e1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 52000 - Customer Prepayments - value: 0 - items: [] - - accountId: a01217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 56100 - Sales VAT 20 % - value: 57906.98 - items: [] - - accountId: a21217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 56110 - Sales VAT 5 % - value: -816.66 - items: [] - - accountId: a41217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 56120 - Sales Full VAT 5 % - value: 0 - items: [] - - accountId: a61217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 56130 - Sales Full VAT 20 % - value: 0 - items: [] - - accountId: a81217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 56140 - VAT Payable - value: 0 - items: [] - - name: Payroll Liabilities - value: -14 - items: - - accountId: 941217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 50700 - Accrued Salaries & Wages - value: 0 - items: [] - - accountId: 961217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 51400 - Employee Benefits Payable - value: 0 - items: [] - - accountId: 981217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 51500 - Holiday Compensation Payable - value: 7 - items: [] - - accountId: 9a1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 51600 - Employees Payable - value: -21 - items: [] - - name: Long Term Liabilities - value: 0 - items: - - accountId: 9c1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 51900 - Notes Payable - value: 0 - items: [] - netAssets: 160732.41 - equity: - name: Equity - value: 160732.41 - items: - - name: Common Stock - value: 19988.72 - items: - - accountId: aa1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 60100 - Share Capital - value: 19988.72 - items: [] - - name: Retained Earnings - value: 69723.14 - items: - - accountId: ac1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 60200 - Retained Earnings - value: 69723.14 - items: [] - - name: Dividends - value: 0 - items: - - accountId: b01217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 60300 - Dividends - value: 0 - items: [] - - accountId: NO-ID-EARNINGS-SO-FAR - name: Earnings so far - value: 71020.55 - items: [] - - date: '2023-02-28T00:00:00' - assets: - name: Assets - value: 262531.32 - items: - - name: '' - value: 27.34 - items: - - accountId: c0861a65-c69f-ec11-80f1-0022481b4546 - name: 10 - Account no cat Balance Sheet - value: 27.34 - items: [] - - accountId: 9cc90e3e-843d-ed11-97e8-0022481b89f2 - name: 12345 - Income Statement and Asset - value: 0 - items: [] - - name: Equipment - value: 5504.37 - items: - - accountId: 5b9782f7-0fe7-ec11-82f9-0022481afc56 - name: 1350 - Iana test - value: 16 - items: [] - - accountId: 6c1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 40800 - Equipment - value: 5488.37 - items: [] - - name: Cash - value: 37693.84 - items: - - accountId: 5e1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 40100 - Checking account - value: -35778.16 - items: [] - - accountId: 601217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 40200 - Savings account - value: 2802.59 - items: [] - - accountId: 621217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 40300 - Petty Cash - value: 70669.41 - items: [] - - accountId: 5c062318-3c59-ed11-8c36-002248c5e6c0 - name: 4544 - cash bal - value: 0 - items: [] - - name: Accounts Receivable - value: 188021.29 - items: - - accountId: 641217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 40400 - Accounts Receivable - value: 127634.34 - items: [] - - accountId: 9cb05c6f-9fbd-ed11-9a88-000d3a7ea13c - name: 40450 - test3 - value: 0 - items: [] - - accountId: 7a1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 46200 - Purchase VAT 20 % EU - value: -11635.12 - items: [] - - accountId: 7c1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 46210 - Purchase VAT 5 % EU - value: 0 - items: [] - - accountId: 7e1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 46300 - Purchase VAT 20 % - value: 71988.26 - items: [] - - accountId: 801217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 46310 - Purchase VAT 5 % - value: 9.35 - items: [] - - accountId: 821217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 46320 - Purchase Full VAT 5 % - value: 10 - items: [] - - accountId: 841217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 46330 - Purchase Full VAT 20 % - value: 14.46 - items: [] - - accountId: 1bd1222e-94bd-ed11-9a88-6045bd0f961f - name: 9999 - BaleSales - value: 0 - items: [] - - name: Prepaid Expenses - value: -1040 - items: - - accountId: 661217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 40500 - Prepaid Rent - value: 0 - items: [] - - accountId: 681217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 40600 - Prepaid Insurance - value: -1040 - items: [] - - accountId: 781217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 41000 - Vendor Prepayments - value: 0 - items: [] - - name: Inventory - value: 28825.48 - items: - - accountId: 6a1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 40700 - Inventory - value: 28825.48 - items: [] - - name: Accumulated Depreciation - value: 3499 - items: - - accountId: 6e1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 40900 - Accumulated Depreciation - value: 3499 - items: [] - - name: Assets - value: 0 - items: - - accountId: 701217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 40910 - WIP Job Sales - value: 0 - items: [] - - accountId: 721217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 40920 - Invoiced Job Sales - value: 0 - items: [] - - accountId: 741217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 40940 - Accrued Job Costs - value: 0 - items: [] - - accountId: 761217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 40950 - WIP Job Costs - value: 0 - items: [] - liabilities: - name: Liabilities - value: 99680 - items: - - name: Current Liabilities - value: 99694 - items: - - accountId: 8a1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 50100 - Accounts Payable - value: 42459.31 - items: [] - - accountId: 8c1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 50200 - Purchase Discounts - value: 210.22 - items: [] - - accountId: 8e1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 50300 - Purchase Returns & Allowances - value: 0 - items: [] - - accountId: 901217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 50400 - Deferred Revenue - value: 0 - items: [] - - accountId: 921217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 50500 - Credit Cards - value: 0 - items: [] - - accountId: 9e1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 52000 - Customer Prepayments - value: 0 - items: [] - - accountId: a01217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 56100 - Sales VAT 20 % - value: 57841.13 - items: [] - - accountId: a21217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 56110 - Sales VAT 5 % - value: -816.66 - items: [] - - accountId: a41217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 56120 - Sales Full VAT 5 % - value: 0 - items: [] - - accountId: a61217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 56130 - Sales Full VAT 20 % - value: 0 - items: [] - - accountId: a81217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 56140 - VAT Payable - value: 0 - items: [] - - name: Payroll Liabilities - value: -14 - items: - - accountId: 941217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 50700 - Accrued Salaries & Wages - value: 0 - items: [] - - accountId: 961217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 51400 - Employee Benefits Payable - value: 0 - items: [] - - accountId: 981217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 51500 - Holiday Compensation Payable - value: 7 - items: [] - - accountId: 9a1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 51600 - Employees Payable - value: -21 - items: [] - - name: Long Term Liabilities - value: 0 - items: - - accountId: 9c1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 51900 - Notes Payable - value: 0 - items: [] - netAssets: 162851.32 - equity: - name: Equity - value: 162851.32 - items: - - name: Common Stock - value: 19988.72 - items: - - accountId: aa1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 60100 - Share Capital - value: 19988.72 - items: [] - - name: Retained Earnings - value: 69723.14 - items: - - accountId: ac1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 60200 - Retained Earnings - value: 69723.14 - items: [] - - name: Dividends - value: 0 - items: - - accountId: b01217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 60300 - Dividends - value: 0 - items: [] - - accountId: NO-ID-EARNINGS-SO-FAR - name: Earnings so far - value: 73139.46 - items: [] - mostRecentAvailableMonth: '2023-03-31T00:00:00' - earliestAvailableMonth: '2022-09-01T00:00:00' - Exact (Netherlands): - value: - reports: [] - Exact (UK): - value: - currency: GBP - reports: - - date: '2022-10-31T00:00:00Z' - assets: - name: Assets - value: -2 - items: - - accountId: cf9572e7-8afa-4339-9113-af32a66d9df9 - name: 15400 - Trade Debtors - value: -3 - items: [] - - accountId: ba382d88-a4e5-4117-8fc6-4752ee8bc93d - name: 15801 - Standard account - value: 1 - items: [] - liabilities: - name: Liabilities - value: 0 - items: [] - netAssets: -2 - equity: - name: Equities - value: -2 - items: - - accountId: PROFIT-AND-LOSS - name: Profit for this period - value: -2 - items: [] - - date: '2022-09-30T00:00:00Z' - assets: - name: Assets - value: 208 - items: - - accountId: 885ff551-664d-451b-995b-cb114c9877d0 - name: 15890 - Unallocated Cash - value: 0 - items: [] - - accountId: cf9572e7-8afa-4339-9113-af32a66d9df9 - name: 15400 - Trade Debtors - value: 78 - items: [] - - accountId: 4a4e34b5-7f62-4b64-a44a-073398b14b41 - name: 15880 - Bank - value: 130 - items: [] - liabilities: - name: Liabilities - value: 0 - items: - - accountId: 88d733a8-51e1-4ee7-b2a0-fb49879e36cc - name: 21000 - Trade Creditors - value: 0 - items: [] - netAssets: 208 - equity: - name: Equities - value: 208 - items: - - accountId: PROFIT-AND-LOSS - name: Profit for this period - value: 208 - items: [] - mostRecentAvailableMonth: '2022-10-31T00:00:00' - earliestAvailableMonth: '2022-04-01T00:00:00' - FreshBooks: - value: - currency: GBP - reports: - - date: '2023-04-30T00:00:00' - assets: - name: assets - value: 38416.28 - items: - - accountId: '167679' - name: Cash - value: -3011.5 - items: - - accountId: '291721' - name: Petty Cash - value: -3022.5 - items: [] - - accountId: '3427097' - name: Cash - value: 11 - items: [] - - accountId: '67357' - name: Accounts Receivable - value: 41445.53 - items: - - accountId: '128611' - name: Accounts Receivable - value: 41445.53 - items: [] - - accountId: '2761661' - name: Current Asset - value: -11 - items: - - accountId: '3420060' - name: Prepaid Expenses - value: -11 - items: [] - - accountId: '2288207' - name: 'Property, Plant, and Equipment' - value: -6.75 - items: - - accountId: '2792069' - name: Office Equipment - value: -6.75 - items: [] - liabilities: - name: liabilities - value: 9310.72 - items: - - accountId: '2288209' - name: Accounts Payable - value: 460.39 - items: - - accountId: '3385145' - name: Accounts Payable - value: 460.39 - items: [] - - accountId: '67361' - name: Taxes Payable - value: 36.75 - items: - - accountId: '128615' - name: VAT - value: -108.9 - items: [] - - accountId: '3380553' - name: Customs Duty - value: -2.5 - items: [] - - accountId: '3380555' - name: Excise Duty - value: -54.45 - items: [] - - accountId: '3384241' - name: tax 50 - value: 0.7 - items: [] - - accountId: '3384293' - name: helloabdul - value: 86.03 - items: [] - - accountId: '3384425' - name: hello2 - value: 114.76 - items: [] - - accountId: '3420099' - name: VAT1 - value: 1.11 - items: [] - - accountId: '237025' - name: Customer Credit - value: 8813.58 - items: - - accountId: '392937' - name: Customer Credit - value: 8813.58 - items: [] - netAssets: 29105.56 - equity: - name: equity - value: 29105.56 - items: - - accountId: '' - name: Net Income - value: 29105.56 - items: [] - - date: '2023-03-31T00:00:00' - assets: - name: assets - value: 38416.28 - items: - - accountId: '167679' - name: Cash - value: -3011.5 - items: - - accountId: '291721' - name: Petty Cash - value: -3022.5 - items: [] - - accountId: '3427097' - name: Cash - value: 11 - items: [] - - accountId: '67357' - name: Accounts Receivable - value: 41445.53 - items: - - accountId: '128611' - name: Accounts Receivable - value: 41445.53 - items: [] - - accountId: '2761661' - name: Current Asset - value: -11 - items: - - accountId: '3420060' - name: Prepaid Expenses - value: -11 - items: [] - - accountId: '2288207' - name: 'Property, Plant, and Equipment' - value: -6.75 - items: - - accountId: '2792069' - name: Office Equipment - value: -6.75 - items: [] - liabilities: - name: liabilities - value: 9310.72 - items: - - accountId: '2288209' - name: Accounts Payable - value: 460.39 - items: - - accountId: '3385145' - name: Accounts Payable - value: 460.39 - items: [] - - accountId: '67361' - name: Taxes Payable - value: 36.75 - items: - - accountId: '128615' - name: VAT - value: -108.9 - items: [] - - accountId: '3380553' - name: Customs Duty - value: -2.5 - items: [] - - accountId: '3380555' - name: Excise Duty - value: -54.45 - items: [] - - accountId: '3384241' - name: tax 50 - value: 0.7 - items: [] - - accountId: '3384293' - name: helloabdul - value: 86.03 - items: [] - - accountId: '3384425' - name: hello2 - value: 114.76 - items: [] - - accountId: '3420099' - name: VAT1 - value: 1.11 - items: [] - - accountId: '237025' - name: Customer Credit - value: 8813.58 - items: - - accountId: '392937' - name: Customer Credit - value: 8813.58 - items: [] - netAssets: 29105.56 - equity: - name: equity - value: 29105.56 - items: - - accountId: '' - name: Net Income - value: 29105.56 - items: [] - mostRecentAvailableMonth: '2023-04-30T00:00:00' - earliestAvailableMonth: '2022-10-01T00:00:00' - KashFlow: - value: - currency: GBP - reports: - - date: '2022-09-30T00:00:00' - assets: - name: Assets - value: 109979.14 - items: - - name: Fixed Assets - value: 923.62 - items: - - accountId: '29362903' - name: FIXED ASSET CODE (SALES) - value: -100 - items: [] - - accountId: '29362906' - name: FIXED ASSET CODE (OUTGOING) - value: 1006 - items: [] - - accountId: '29358753' - name: TESTCODE - value: 9.29 - items: [] - - accountId: '21481884' - name: Computer equipment cost - value: 8.33 - items: [] - - name: Current Assets - value: 109055.52 - items: - - accountId: '21481886' - name: Trade debtors - value: 67166.51 - items: [] - - accountId: '636062' - name: Current account - value: 425.33 - items: [] - - accountId: '680495' - name: Test Account - value: 38003 - items: [] - - accountId: '684416' - name: Tide Account 2 - value: 303.22 - items: [] - - accountId: '684418' - name: New Tide Account - value: 303.22 - items: [] - - accountId: '686687' - name: Pete Test 02/05 - value: 301.64 - items: [] - - accountId: '696204' - name: Go Live - value: 9 - items: [] - - accountId: '696740' - name: Production Test - value: 0.08 - items: [] - - accountId: '707236' - name: Dave Push Test uat - value: 123.41 - items: [] - - accountId: '707240' - name: Dave Push Test integ - value: 139.54 - items: [] - - accountId: '813944' - name: Please dont balance - value: 110 - items: [] - - accountId: '765768' - name: 16th Account - value: 326 - items: [] - - accountId: '809283' - name: abduls company credit card - value: 13.85 - items: [] - - accountId: '809318' - name: ASSET ACCOUNT - value: 110 - items: [] - - accountId: '776582' - name: VandanaKasAcc1 - value: 20 - items: [] - - accountId: '780580' - name: ABRAHAM2 - value: 40 - items: [] - - accountId: '780605' - name: AbeVanTest3 - value: 10 - items: [] - - accountId: '780619' - name: VandanaAccTest4 - value: 92.63 - items: [] - - accountId: '780669' - name: NewXeroAccount10 - value: 21 - items: [] - - accountId: '780672' - name: NewKasAccount10 - value: 111 - items: [] - - accountId: '809742' - name: HSBBBBB - value: 111 - items: [] - - accountId: '833089' - name: AAAAA - value: 260 - items: [] - - accountId: '21481890' - name: Output VAT - value: 511.04 - items: [] - - accountId: '21481891' - name: Input VAT - value: 504.05 - items: [] - - accountId: '21481895' - name: CIS deductions - value: 40 - items: [] - liabilities: - name: Liabilities - value: 80187.1 - items: - - name: Current Liabilities - value: 80187.1 - items: - - accountId: '21481902' - name: Other - value: 43799.56 - items: [] - - accountId: '21481888' - name: Cash in hand - value: 317.07 - items: [] - - accountId: '612964' - name: Bank account - value: 33011.08 - items: [] - - accountId: '687106' - name: May 4th Account - value: 926.81 - items: [] - - accountId: '21481892' - name: VAT control account - value: 322 - items: [] - - accountId: '21481893' - name: Trade creditors - value: 1618.27 - items: [] - - accountId: '29553868' - name: Creditors Control Account - value: 192.31 - items: [] - netAssets: 29792.04 - equity: - name: Equity - value: 29792.05 - items: - - name: Capital and Reserves - value: 29792.05 - items: - - accountId: '21481901' - name: Retained profit/loss - value: 31402.01 - items: [] - - accountId: '0' - name: P&L Account - value: -1609.96 - items: [] - - date: '2022-08-31T00:00:00' - assets: - name: Assets - value: 109979.14 - items: - - name: Fixed Assets - value: 923.62 - items: - - accountId: '29362903' - name: FIXED ASSET CODE (SALES) - value: -100 - items: [] - - accountId: '29362906' - name: FIXED ASSET CODE (OUTGOING) - value: 1006 - items: [] - - accountId: '29358753' - name: TESTCODE - value: 9.29 - items: [] - - accountId: '21481884' - name: Computer equipment cost - value: 8.33 - items: [] - - name: Current Assets - value: 109055.52 - items: - - accountId: '21481886' - name: Trade debtors - value: 67166.51 - items: [] - - accountId: '636062' - name: Current account - value: 425.33 - items: [] - - accountId: '680495' - name: Test Account - value: 38003 - items: [] - - accountId: '684416' - name: Tide Account 2 - value: 303.22 - items: [] - - accountId: '684418' - name: New Tide Account - value: 303.22 - items: [] - - accountId: '686687' - name: Pete Test 02/05 - value: 301.64 - items: [] - - accountId: '696204' - name: Go Live - value: 9 - items: [] - - accountId: '696740' - name: Production Test - value: 0.08 - items: [] - - accountId: '707236' - name: Dave Push Test uat - value: 123.41 - items: [] - - accountId: '707240' - name: Dave Push Test integ - value: 139.54 - items: [] - - accountId: '813944' - name: Please dont balance - value: 110 - items: [] - - accountId: '765768' - name: 16th Account - value: 326 - items: [] - - accountId: '809283' - name: abduls company credit card - value: 13.85 - items: [] - - accountId: '809318' - name: ASSET ACCOUNT - value: 110 - items: [] - - accountId: '776582' - name: VandanaKasAcc1 - value: 20 - items: [] - - accountId: '780580' - name: ABRAHAM2 - value: 40 - items: [] - - accountId: '780605' - name: AbeVanTest3 - value: 10 - items: [] - - accountId: '780619' - name: VandanaAccTest4 - value: 92.63 - items: [] - - accountId: '780669' - name: NewXeroAccount10 - value: 21 - items: [] - - accountId: '780672' - name: NewKasAccount10 - value: 111 - items: [] - - accountId: '809742' - name: HSBBBBB - value: 111 - items: [] - - accountId: '833089' - name: AAAAA - value: 260 - items: [] - - accountId: '21481890' - name: Output VAT - value: 511.04 - items: [] - - accountId: '21481891' - name: Input VAT - value: 504.05 - items: [] - - accountId: '21481895' - name: CIS deductions - value: 40 - items: [] - liabilities: - name: Liabilities - value: 80187.1 - items: - - name: Current Liabilities - value: 80187.1 - items: - - accountId: '21481902' - name: Other - value: 43799.56 - items: [] - - accountId: '21481888' - name: Cash in hand - value: 317.07 - items: [] - - accountId: '612964' - name: Bank account - value: 33011.08 - items: [] - - accountId: '687106' - name: May 4th Account - value: 926.81 - items: [] - - accountId: '21481892' - name: VAT control account - value: 322 - items: [] - - accountId: '21481893' - name: Trade creditors - value: 1618.27 - items: [] - - accountId: '29553868' - name: Creditors Control Account - value: 192.31 - items: [] - netAssets: 29792.04 - equity: - name: Equity - value: 29792.05 - items: - - name: Capital and Reserves - value: 29792.05 - items: - - accountId: '21481901' - name: Retained profit/loss - value: 31402.01 - items: [] - - accountId: '0' - name: P&L Account - value: -1609.96 - items: [] - mostRecentAvailableMonth: '2022-09-30T00:00:00' - earliestAvailableMonth: '2022-03-01T00:00:00' - MYOB AccountRight and Essentials: - value: - currency: GBP - reports: - - date: '2022-11-30T00:00:00' - assets: - name: Assets - value: 0 - items: [] - liabilities: - name: Liabilities - value: 0 - items: [] - netAssets: 0 - equity: - name: Equity - value: 0 - items: [] - - date: '2022-10-31T00:00:00' - assets: - name: Assets - value: 0 - items: [] - liabilities: - name: Liabilities - value: 0 - items: [] - netAssets: 0 - equity: - name: Equity - value: 0 - items: [] - mostRecentAvailableMonth: '2022-11-30T00:00:00' - earliestAvailableMonth: '2022-05-01T00:00:00' - Oracle NetSuite: - value: - currency: GBP - reports: - - date: '2023-05-31T00:00:00' - assets: - accountId: '' - name: Assets - value: 703 - items: - - accountId: '119' - name: Accounts Receivable - value: -565 - items: [] - - accountId: '122' - name: Undeposited Funds - value: 10 - items: [] - - accountId: '211' - name: VAT on Purchases - value: 24 - items: [] - - accountId: '716' - name: Inventory In Transit - value: 120 - items: [] - - accountId: '825' - name: Codat Europe Bank - value: 558.22 - items: - - accountId: '825' - name: Codat Europe Bank - value: 558.22 - items: [] - - accountId: '844' - name: Asset account test 2 - value: 555.78 - items: - - accountId: '844' - name: Asset account test 2 - value: 555.78 - items: [] - liabilities: - accountId: '' - name: Liabilities - value: 635.55 - items: - - accountId: '111' - name: Accounts Payable - value: 635.55 - items: - - accountId: '111' - name: Accounts Payable - value: 635.55 - items: [] - netAssets: 67.45 - equity: - accountId: '' - name: Equity - value: 67.45 - items: - - accountId: '851' - name: Demo account equity - value: -11 - items: [] - - name: Net Income - value: 78.45 - items: [] - - date: '2023-04-30T00:00:00' - assets: - accountId: '' - name: Assets - value: 703 - items: - - accountId: '119' - name: Accounts Receivable - value: -565 - items: [] - - accountId: '122' - name: Undeposited Funds - value: 10 - items: [] - - accountId: '211' - name: VAT on Purchases - value: 24 - items: [] - - accountId: '716' - name: Inventory In Transit - value: 120 - items: [] - - accountId: '825' - name: Codat Europe Bank - value: 558.22 - items: - - accountId: '825' - name: Codat Europe Bank - value: 558.22 - items: [] - - accountId: '844' - name: Asset account test 2 - value: 555.78 - items: - - accountId: '844' - name: Asset account test 2 - value: 555.78 - items: [] - liabilities: - accountId: '' - name: Liabilities - value: 635.55 - items: - - accountId: '111' - name: Accounts Payable - value: 635.55 - items: - - accountId: '111' - name: Accounts Payable - value: 635.55 - items: [] - netAssets: 67.45 - equity: - accountId: '' - name: Equity - value: 67.45 - items: - - accountId: '851' - name: Demo account equity - value: -11 - items: [] - - name: Net Income - value: 78.45 - items: [] - mostRecentAvailableMonth: '2023-05-31T00:00:00' - earliestAvailableMonth: '2022-11-01T00:00:00' - QuickBooks Desktop: - value: - currency: GBP - reports: - - date: '2023-04-30T00:00:00' - assets: - name: ASSETS - value: 549695.86 - items: - - name: Current Assets - value: 81821.64 - items: - - name: Checking/Savings - value: 57007.53 - items: - - accountId: 20000-933270541 - name: 10100 � Checking - value: 40814.11 - items: [] - - accountId: 30000-933270541 - name: 10300 � Savings - value: 15693.42 - items: [] - - accountId: 550001-1071509830 - name: 10400 � Petty Cash - value: 500 - items: [] - - name: Accounts Receivable - value: 7719.99 - items: - - accountId: 40000-933270541 - name: 11000 � Accounts Receivable - value: 7719.99 - items: [] - - name: Other Current Assets - value: 17094.12 - items: - - accountId: 60000-933270541 - name: 12100 � Inventory Asset - value: 13177.4 - items: [] - - accountId: 50000-933270541 - name: 12800 � Employee Advances - value: 770 - items: [] - - accountId: 370001-1071514466 - name: 13100 � Pre-paid Insurance - value: 1350 - items: [] - - accountId: 70000-933270541 - name: 13400 � Retainage Receivable - value: 1796.72 - items: [] - - name: Fixed Assets - value: 466154.22 - items: - - accountId: 5F0000-1197755449 - name: 15000 � Furniture and Equipment - value: 22826 - items: [] - - accountId: 90000-933270541 - name: 15100 � Vehicles - value: 78936.91 - items: [] - - accountId: 600000-1197756365 - name: 15200 � Buildings and Improvements - value: 325000 - items: [] - - accountId: 590000-1071511920 - name: 15300 � Construction Equipment - value: 15300 - items: [] - - accountId: 610000-1197756496 - name: 16900 � Land - value: 90000 - items: [] - - accountId: 620000-1197756666 - name: 17000 � Accumulated Depreciation - value: -65908.69 - items: [] - - name: Other Assets - value: 1720 - items: - - accountId: 80000063-1197709076 - name: 18700 � Security Deposits - value: 1720 - items: [] - liabilities: - name: Liabilities - value: 451499.2 - items: - - name: Current Liabilities - value: 6718.02 - items: - - name: Accounts Payable - value: 5000 - items: - - accountId: C0000-933270541 - name: 20000 � Accounts Payable - value: 5000 - items: [] - - name: Credit Cards - value: 1400 - items: - - accountId: 570000-1071509253 - name: 20500 � QuickBooks Credit Card - value: 1400 - items: [] - - name: Other Current Liabilities - value: 318.02 - items: - - accountId: 100000-933270541 - name: 25500 � Sales Tax Payable - value: 318.02 - items: [] - - name: Long Term Liabilities - value: 444781.18 - items: - - accountId: 120000-933270541 - name: 23000 � Loan - Vehicles (Van) - value: 19932.64 - items: [] - - accountId: 80000075-1197719780 - name: 23100 � Loan - Vehicles (Utility Truck) - value: 19936.91 - items: [] - - accountId: 80000076-1197719828 - name: 23200 � Loan - Vehicles (Pickup Truck) - value: 22641 - items: [] - - accountId: 5B0000-1197774305 - name: 28100 � Loan - Construction Equipment - value: 14343.11 - items: [] - - accountId: 80000068-1197710590 - name: 28200 � Loan - Furniture/Office Equip - value: 21000 - items: [] - - accountId: 8000008F-1197954502 - name: 28700 � Note Payable - Bank of Anycity - value: 50644.52 - items: [] - - accountId: 80000067-1197709946 - name: 28900 � Mortgage - Office Building - value: 296283 - items: [] - netAssets: 98196.66 - equity: - name: Equity - value: 98196.66 - items: - - accountId: 10000-933270541 - name: 30000 � Opening Bal Equity - value: 38773.75 - items: [] - - accountId: 80000066-1197709715 - name: 30100 � Capital Stock - value: 500 - items: [] - - accountId: 160000-933270541 - name: 32000 � Retained Earnings - value: 36213.97 - items: [] - - name: Net Income - value: 22708.94 - items: [] - - date: '2023-03-31T00:00:00' - assets: - name: ASSETS - value: 547971.05 - items: - - name: Current Assets - value: 80096.83 - items: - - name: Checking/Savings - value: 45769.39 - items: - - accountId: 20000-933270541 - name: 10100 � Checking - value: 29575.97 - items: [] - - accountId: 30000-933270541 - name: 10300 � Savings - value: 15693.42 - items: [] - - accountId: 550001-1071509830 - name: 10400 � Petty Cash - value: 500 - items: [] - - name: Accounts Receivable - value: 16228.47 - items: - - accountId: 40000-933270541 - name: 11000 � Accounts Receivable - value: 16228.47 - items: [] - - name: Other Current Assets - value: 18098.97 - items: - - accountId: 60000-933270541 - name: 12100 � Inventory Asset - value: 13507.25 - items: [] - - accountId: 50000-933270541 - name: 12800 � Employee Advances - value: 770 - items: [] - - accountId: 370001-1071514466 - name: 13100 � Pre-paid Insurance - value: 2025 - items: [] - - accountId: 70000-933270541 - name: 13400 � Retainage Receivable - value: 1796.72 - items: [] - - name: Fixed Assets - value: 466154.22 - items: - - accountId: 5F0000-1197755449 - name: 15000 � Furniture and Equipment - value: 22826 - items: [] - - accountId: 90000-933270541 - name: 15100 � Vehicles - value: 78936.91 - items: [] - - accountId: 600000-1197756365 - name: 15200 � Buildings and Improvements - value: 325000 - items: [] - - accountId: 590000-1071511920 - name: 15300 � Construction Equipment - value: 15300 - items: [] - - accountId: 610000-1197756496 - name: 16900 � Land - value: 90000 - items: [] - - accountId: 620000-1197756666 - name: 17000 � Accumulated Depreciation - value: -65908.69 - items: [] - - name: Other Assets - value: 1720 - items: - - accountId: 80000063-1197709076 - name: 18700 � Security Deposits - value: 1720 - items: [] - liabilities: - name: Liabilities - value: 453300.75 - items: - - name: Current Liabilities - value: 5714 - items: - - name: Accounts Payable - value: 5714 - items: - - accountId: C0000-933270541 - name: 20000 � Accounts Payable - value: 5714 - items: [] - - name: Long Term Liabilities - value: 447586.75 - items: - - accountId: 120000-933270541 - name: 23000 � Loan - Vehicles (Van) - value: 20376.27 - items: [] - - accountId: 80000075-1197719780 - name: 23100 � Loan - Vehicles (Utility Truck) - value: 19936.91 - items: [] - - accountId: 80000076-1197719828 - name: 23200 � Loan - Vehicles (Pickup Truck) - value: 22641 - items: [] - - accountId: 5B0000-1197774305 - name: 28100 � Loan - Construction Equipment - value: 14343.11 - items: [] - - accountId: 80000068-1197710590 - name: 28200 � Loan - Furniture/Office Equip - value: 21000 - items: [] - - accountId: 8000008F-1197954502 - name: 28700 � Note Payable - Bank of Anycity - value: 53006.46 - items: [] - - accountId: 80000067-1197709946 - name: 28900 � Mortgage - Office Building - value: 296283 - items: [] - netAssets: 94670.3 - equity: - name: Equity - value: 94670.3 - items: - - accountId: 10000-933270541 - name: 30000 � Opening Bal Equity - value: 38773.75 - items: [] - - accountId: 80000066-1197709715 - name: 30100 � Capital Stock - value: 500 - items: [] - - accountId: 160000-933270541 - name: 32000 � Retained Earnings - value: 36213.97 - items: [] - - name: Net Income - value: 19182.58 - items: [] - mostRecentAvailableMonth: '2023-04-30T00:00:00' - earliestAvailableMonth: '2022-10-01T00:00:00' - QuickBooks Online Sandbox: - value: - currency: GBP - reports: - - date: '2023-04-30T00:00:00' - assets: - name: Assets - value: 3856584.88 - items: - - name: Fixed Asset - value: 2766.17 - items: - - accountId: '3' - name: Accumulated Depreciation - value: -399.96 - items: [] - - accountId: '5' - name: Furniture and Equipment - value: 2750 - items: [] - - accountId: '7' - name: Leasehold Improvements - value: -99.12 - items: [] - - accountId: '9' - name: Vehicles - value: 515.25 - items: [] - - name: Bank - value: 520021.91 - items: - - accountId: '114' - name: 0983741 SamplePushBankAccount2 - value: 40.5 - items: [] - - accountId: '175' - name: 1 Push-FrontDoor-Test-1 - value: 112 - items: [] - - accountId: '134' - name: 1001001 Revenue - value: -235.34 - items: [] - - accountId: '110' - name: 101 Push Refactor Test - value: -149.4 - items: [] - - accountId: '102' - name: 10101 IntegrationTest - value: -1444.14 - items: [] - - accountId: '103' - name: 101011 testdemo1 - value: 18.6 - items: [] - - accountId: '104' - name: 101012 Dave Test - value: -5.4 - items: [] - - accountId: '105' - name: 101013 Push Test - value: 5.4 - items: [] - - accountId: '107' - name: 11 aaa - value: 23610.49 - items: [] - - accountId: '115' - name: '1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111' - value: -9000.81 - items: [] - - accountId: '100' - name: 1131 Savings2 - value: 30281.54 - items: [] - - accountId: '109' - name: 122 Generic Push Test - value: -1079.05 - items: [] - - accountId: '101' - name: 123 Test Savings - value: 2293.37 - items: [] - - accountId: '111' - name: 123123 Steve Test - value: -1104.2 - items: [] - - accountId: '124' - name: 123175 Nominal Card - value: -2013.04 - items: [] - - accountId: '137' - name: 1232 test 55 - value: 1.29 - items: [] - - accountId: '122' - name: 1234567 Card3million - value: -85 - items: [] - - accountId: '176' - name: 12345671 testName_1 - value: 17546.08 - items: [] - - accountId: '165' - name: 123564 Huws testing name - value: -2 - items: [] - - accountId: '159' - name: 1533465364 Huws test name - value: 282.21 - items: [] - - accountId: '161' - name: 160894 Tom Automated Tests ExpensesAccount - value: -15900.6 - items: [] - - accountId: '108' - name: 19191 New Push Operation Test - value: 317.54 - items: [] - - accountId: '139' - name: 2501 Barclays - value: 211127.4 - items: [] - - accountId: '140' - name: 2502 HSBC - value: 109500.4 - items: [] - - accountId: '141' - name: 2503 BoA - value: 128050.89 - items: [] - - accountId: '138' - name: 4234 test55 - value: -29.28 - items: [] - - accountId: '106' - name: aa aa - value: -5.4 - items: [] - - accountId: '129' - name: Account Test 11 - value: 33.93 - items: [] - - accountId: '147' - name: Bank EUR - value: 188.5 - items: [] - - accountId: '173' - name: Cash on hand - value: 2655 - items: [] - - accountId: '178' - name: Citi - value: 189.11 - items: [] - - accountId: '81' - name: Current - value: 24513.64 - items: [] - - accountId: '177' - name: HSBC HKD - value: -39.39 - items: [] - - accountId: '169' - name: Matt Ager Test UI Parent Account - value: 75 - items: [] - - accountId: '89' - name: TestBankAccount_1 - value: 272.07 - items: [] - - name: Accounts Receivable - value: 3074459.19 - items: - - accountId: '70' - name: Debtors - value: 3041138.07 - items: [] - - accountId: '80' - name: Debtors - USD - value: 33315.2 - items: [] - - accountId: '125' - name: Debtors 2 - value: -7.45 - items: [] - - accountId: '88' - name: TestBankAccount - value: 13.37 - items: [] - - name: Other Current Asset - value: 259337.61 - items: - - accountId: '98' - name: Account_001 - value: 545.86 - items: [] - - accountId: '185' - name: Loans To Officers - value: 1200 - items: [] - - accountId: '179' - name: Loans to Others - value: 58.2 - items: [] - - accountId: '171' - name: Matt Ager Test UI Parent Account 1 - value: 11 - items: [] - - accountId: '168' - name: Other current assets - value: 10 - items: [] - - accountId: '65' - name: Stock Asset - value: 36524 - items: [] - - accountId: '150' - name: stock test - value: 10 - items: [] - - accountId: '77' - name: Uncategorised Asset - value: 47.8 - items: [] - - accountId: '85' - name: Undeposited Funds - value: 220930.75 - items: [] - liabilities: - name: Liabilities - value: 169469.71 - items: - - name: Accounts Payable - value: 93748.74 - items: - - accountId: '71' - name: Creditors - value: 93635.4 - items: [] - - accountId: '74' - name: Creditors - HKD - value: 113.34 - items: [] - - name: Credit Card - value: 10841.34 - items: - - accountId: '142' - name: 2504 Amex - CC - value: 9957.72 - items: [] - - accountId: '126' - name: Credit Card 2 - value: -71.91 - items: [] - - accountId: '183' - name: Expense Automated Tests Credit Card - value: -2469.91 - items: [] - - accountId: '57' - name: Visa Credit Card - value: 3425.44 - items: [] - - name: Other Current Liability - value: 10001.33 - items: - - accountId: '118' - name: Current Liabilities - value: 82.12 - items: [] - - accountId: '157' - name: Loan Payable - Kay's Bank - value: 12726 - items: [] - - accountId: '187' - name: Payroll Clearing - value: -3458.3 - items: [] - - accountId: '53' - name: VAT Control - value: -4738.49 - items: [] - - accountId: '54' - name: VAT Suspense - value: 5390 - items: [] - - name: Long Term Liability - value: 54878.3 - items: - - accountId: '158' - name: Loan Long term borrowings - Jay's Bank - value: 35630 - items: [] - - accountId: '84' - name: Long term borrowings - value: -1100 - items: [] - - accountId: '63' - name: Note Payable - value: 19348.3 - items: [] - - accountId: '86' - name: Accruals and deferred income - value: 1000 - items: [] - netAssets: 3687115.17 - equity: - name: Equity - value: 3687115.17 - items: - - name: Equity - value: 3697585.43 - items: - - accountId: '55' - name: Opening Balance Equity - value: 966720.56 - items: [] - - accountId: '2' - name: Retained Earnings - value: 2706364.87 - items: [] - - accountId: '61' - name: Owner's Equity - Contributions - value: 25500 - items: [] - - accountId: '62' - name: Owner's Equity - Draws - value: -1000 - items: [] - - name: Profit for the year - value: -10470.26 - items: [] - - date: '2023-03-31T00:00:00' - assets: - name: Assets - value: 4385453.25 - items: - - name: Fixed Asset - value: 2766.17 - items: - - accountId: '3' - name: Accumulated Depreciation - value: -399.96 - items: [] - - accountId: '5' - name: Furniture and Equipment - value: 2750 - items: [] - - accountId: '7' - name: Leasehold Improvements - value: -99.12 - items: [] - - accountId: '9' - name: Vehicles - value: 515.25 - items: [] - - name: Bank - value: 1048102.14 - items: - - accountId: '114' - name: 0983741 SamplePushBankAccount2 - value: 40.5 - items: [] - - accountId: '175' - name: 1 Push-FrontDoor-Test-1 - value: 112 - items: [] - - accountId: '134' - name: 1001001 Revenue - value: -235.34 - items: [] - - accountId: '110' - name: 101 Push Refactor Test - value: -149.4 - items: [] - - accountId: '102' - name: 10101 IntegrationTest - value: -1444.14 - items: [] - - accountId: '103' - name: 101011 testdemo1 - value: 18.6 - items: [] - - accountId: '104' - name: 101012 Dave Test - value: -5.4 - items: [] - - accountId: '105' - name: 101013 Push Test - value: 5.4 - items: [] - - accountId: '107' - name: 11 aaa - value: 23610.49 - items: [] - - accountId: '115' - name: '1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111' - value: -9000.81 - items: [] - - accountId: '100' - name: 1131 Savings2 - value: 30281.54 - items: [] - - accountId: '109' - name: 122 Generic Push Test - value: -1079.05 - items: [] - - accountId: '101' - name: 123 Test Savings - value: 2293.37 - items: [] - - accountId: '111' - name: 123123 Steve Test - value: -1104.2 - items: [] - - accountId: '124' - name: 123175 Nominal Card - value: -2013.04 - items: [] - - accountId: '137' - name: 1232 test 55 - value: 1.29 - items: [] - - accountId: '122' - name: 1234567 Card3million - value: -85 - items: [] - - accountId: '176' - name: 12345671 testName_1 - value: 14029.28 - items: [] - - accountId: '165' - name: 123564 Huws testing name - value: -2 - items: [] - - accountId: '159' - name: 1533465364 Huws test name - value: 282.21 - items: [] - - accountId: '161' - name: 160894 Tom Automated Tests ExpensesAccount - value: -11410.5 - items: [] - - accountId: '108' - name: 19191 New Push Operation Test - value: 317.54 - items: [] - - accountId: '139' - name: 2501 Barclays - value: 741293.8 - items: [] - - accountId: '140' - name: 2502 HSBC - value: 109155.93 - items: [] - - accountId: '141' - name: 2503 BoA - value: 128055.89 - items: [] - - accountId: '138' - name: 4234 test55 - value: -14.28 - items: [] - - accountId: '106' - name: aa aa - value: -5.4 - items: [] - - accountId: '129' - name: Account Test 11 - value: 33.93 - items: [] - - accountId: '147' - name: Bank EUR - value: 188.5 - items: [] - - accountId: '173' - name: Cash on hand - value: -5 - items: [] - - accountId: '178' - name: Citi - value: 189.11 - items: [] - - accountId: '81' - name: Current - value: 24438.64 - items: [] - - accountId: '177' - name: HSBC HKD - value: -39.39 - items: [] - - accountId: '169' - name: Matt Ager Test UI Parent Account - value: 75 - items: [] - - accountId: '89' - name: TestBankAccount_1 - value: 272.07 - items: [] - - name: Accounts Receivable - value: 3075173.68 - items: - - accountId: '70' - name: Debtors - value: 3041854.11 - items: [] - - accountId: '80' - name: Debtors - USD - value: 33315.2 - items: [] - - accountId: '125' - name: Debtors 2 - value: -9 - items: [] - - accountId: '88' - name: TestBankAccount - value: 13.37 - items: [] - - name: Other Current Asset - value: 259411.26 - items: - - accountId: '98' - name: Account_001 - value: 545.86 - items: [] - - accountId: '185' - name: Loans To Officers - value: 1200 - items: [] - - accountId: '179' - name: Loans to Others - value: 58.2 - items: [] - - accountId: '171' - name: Matt Ager Test UI Parent Account 1 - value: 11 - items: [] - - accountId: '168' - name: Other current assets - value: 10 - items: [] - - accountId: '65' - name: Stock Asset - value: 36533.45 - items: [] - - accountId: '150' - name: stock test - value: 10 - items: [] - - accountId: '77' - name: Uncategorised Asset - value: 47.8 - items: [] - - accountId: '85' - name: Undeposited Funds - value: 220994.95 - items: [] - liabilities: - name: Liabilities - value: 699368.94 - items: - - name: Accounts Payable - value: 93773.74 - items: - - accountId: '71' - name: Creditors - value: 93660.4 - items: [] - - accountId: '74' - name: Creditors - HKD - value: 113.34 - items: [] - - name: Credit Card - value: 12226.79 - items: - - accountId: '142' - name: 2504 Amex - CC - value: 11004.72 - items: [] - - accountId: '126' - name: Credit Card 2 - value: -71.91 - items: [] - - accountId: '183' - name: Expense Automated Tests Credit Card - value: -2471.46 - items: [] - - accountId: '57' - name: Visa Credit Card - value: 3765.44 - items: [] - - name: Other Current Liability - value: 538490.11 - items: - - accountId: '118' - name: Current Liabilities - value: 72.12 - items: [] - - accountId: '157' - name: Loan Payable - Kay's Bank - value: 12726 - items: [] - - accountId: '187' - name: Payroll Clearing - value: -3458.3 - items: [] - - accountId: '53' - name: VAT Control - value: -3792.71 - items: [] - - accountId: '54' - name: VAT Suspense - value: 532943 - items: [] - - name: Long Term Liability - value: 54878.3 - items: - - accountId: '158' - name: Loan Long term borrowings - Jay's Bank - value: 35630 - items: [] - - accountId: '84' - name: Long term borrowings - value: -1100 - items: [] - - accountId: '63' - name: Note Payable - value: 19348.3 - items: [] - - accountId: '86' - name: Accruals and deferred income - value: 1000 - items: [] - netAssets: 3686084.31 - equity: - name: Equity - value: 3686084.31 - items: - - name: Equity - value: 3697585.43 - items: - - accountId: '55' - name: Opening Balance Equity - value: 966720.56 - items: [] - - accountId: '2' - name: Retained Earnings - value: 2706364.87 - items: [] - - accountId: '61' - name: Owner's Equity - Contributions - value: 25500 - items: [] - - accountId: '62' - name: Owner's Equity - Draws - value: -1000 - items: [] - - name: Profit for the year - value: -11501.12 - items: [] - mostRecentAvailableMonth: '2023-04-30T00:00:00' - earliestAvailableMonth: '2022-10-01T00:00:00' - QuickBooks Online: - value: - reports: [] - Sage 50 (UK): - value: - currency: GBP - reports: - - date: '2023-03-31T00:00:00' - assets: - name: Assets - value: 239322.69 - items: - - name: Fixed Assets - value: 81530.08 - items: - - name: Plant and Machinery - value: 46515 - items: - - accountId: '0020' - name: Plant and Machinery - value: 50000 - items: [] - - accountId: '0021' - name: Plant/Machinery Depreciation - value: -3485 - items: [] - - name: Furniture and Fixtures - value: 16807 - items: - - accountId: '0040' - name: Furniture and Fixtures - value: 16900 - items: [] - - accountId: '0041' - name: Furniture/Fixture Depreciation - value: -93 - items: [] - - name: Motor Vehicles - value: 18208.08 - items: - - accountId: '0051' - name: Motor Vehicles Depreciation - value: -2091.92 - items: [] - - accountId: '0050' - name: Motor Vehicles - value: 20300 - items: [] - - name: Current Assets - value: 157792.61 - items: - - name: Stock - value: 35000 - items: - - accountId: '1001' - name: Stock - value: 35000 - items: [] - - name: Debtors - value: 90640.61 - items: - - accountId: '1100' - name: Debtors Control Account - value: 90640.61 - items: [] - - accountId: '1103' - name: Prepayments - value: 0 - items: [] - - name: Deposits and Cash - value: 5148.01 - items: - - accountId: '1220' - name: Building Society Account - value: 507.53 - items: [] - - accountId: '1230' - name: Petty Cash - value: 1130.48 - items: [] - - accountId: '1210' - name: Bank Deposit Account - value: 3510 - items: [] - - name: VAT Liability - value: 27003.99 - items: - - accountId: '2201' - name: Purchase Tax Control Account - value: 12203.64 - items: [] - - accountId: '2202' - name: VAT Liability - value: 14800.35 - items: [] - liabilities: - name: Liabilities - value: 97996.05 - items: - - name: Current Liabilities - value: 84941.05 - items: - - name: Bank Account - value: 20091.04 - items: - - accountId: '1200' - name: Bank Current Account - value: 20091.04 - items: [] - - name: Credit Card (Creditors) - value: -9358.97 - items: - - accountId: '1240' - name: Company Credit Card - value: -9358.97 - items: [] - - name: 'Creditors : Short Term' - value: 44502.68 - items: - - accountId: '2100' - name: Creditors Control Account - value: 44502.68 - items: [] - - accountId: '2109' - name: Accruals - value: 0 - items: [] - - name: VAT Liability - value: 22182.53 - items: - - accountId: '2200' - name: Sales Tax Control Account - value: 22182.53 - items: [] - - name: Taxation - value: 7403.77 - items: - - accountId: '2210' - name: P.A.Y.E. - value: 5396.79 - items: [] - - accountId: '2211' - name: National Insurance - value: 2006.98 - items: [] - - name: Wages - value: 120 - items: - - accountId: '2220' - name: Net Wages - value: 0 - items: [] - - accountId: '2230' - name: Pension Fund - value: 120 - items: [] - - name: Non-Current Liabilities - value: 13055 - items: - - name: 'Creditors : Long Term' - value: 13055 - items: - - accountId: '2310' - name: Hire Purchase - value: 6160 - items: [] - - accountId: '2300' - name: Loans - value: 6895 - items: [] - netAssets: 141326.64 - equity: - name: Equity - value: 141326.64 - items: - - name: Share Capital - value: 96332 - items: - - accountId: '3000' - name: Ordinary Shares - value: 96332 - items: [] - - name: Profit and Loss Account - value: 44994.64 - items: [] - - date: '2023-02-28T00:00:00' - assets: - name: Assets - value: 239322.69 - items: - - name: Fixed Assets - value: 81530.08 - items: - - name: Plant and Machinery - value: 46515 - items: - - accountId: '0020' - name: Plant and Machinery - value: 50000 - items: [] - - accountId: '0021' - name: Plant/Machinery Depreciation - value: -3485 - items: [] - - name: Furniture and Fixtures - value: 16807 - items: - - accountId: '0040' - name: Furniture and Fixtures - value: 16900 - items: [] - - accountId: '0041' - name: Furniture/Fixture Depreciation - value: -93 - items: [] - - name: Motor Vehicles - value: 18208.08 - items: - - accountId: '0051' - name: Motor Vehicles Depreciation - value: -2091.92 - items: [] - - accountId: '0050' - name: Motor Vehicles - value: 20300 - items: [] - - name: Current Assets - value: 157792.61 - items: - - name: Stock - value: 35000 - items: - - accountId: '1001' - name: Stock - value: 35000 - items: [] - - name: Debtors - value: 90640.61 - items: - - accountId: '1100' - name: Debtors Control Account - value: 90640.61 - items: [] - - accountId: '1103' - name: Prepayments - value: 0 - items: [] - - name: Deposits and Cash - value: 5148.01 - items: - - accountId: '1220' - name: Building Society Account - value: 507.53 - items: [] - - accountId: '1230' - name: Petty Cash - value: 1130.48 - items: [] - - accountId: '1210' - name: Bank Deposit Account - value: 3510 - items: [] - - name: VAT Liability - value: 27003.99 - items: - - accountId: '2201' - name: Purchase Tax Control Account - value: 12203.64 - items: [] - - accountId: '2202' - name: VAT Liability - value: 14800.35 - items: [] - liabilities: - name: Liabilities - value: 97996.05 - items: - - name: Current Liabilities - value: 84941.05 - items: - - name: Bank Account - value: 20091.04 - items: - - accountId: '1200' - name: Bank Current Account - value: 20091.04 - items: [] - - name: Credit Card (Creditors) - value: -9358.97 - items: - - accountId: '1240' - name: Company Credit Card - value: -9358.97 - items: [] - - name: 'Creditors : Short Term' - value: 44502.68 - items: - - accountId: '2100' - name: Creditors Control Account - value: 44502.68 - items: [] - - accountId: '2109' - name: Accruals - value: 0 - items: [] - - name: VAT Liability - value: 22182.53 - items: - - accountId: '2200' - name: Sales Tax Control Account - value: 22182.53 - items: [] - - name: Taxation - value: 7403.77 - items: - - accountId: '2210' - name: P.A.Y.E. - value: 5396.79 - items: [] - - accountId: '2211' - name: National Insurance - value: 2006.98 - items: [] - - name: Wages - value: 120 - items: - - accountId: '2220' - name: Net Wages - value: 0 - items: [] - - accountId: '2230' - name: Pension Fund - value: 120 - items: [] - - name: Non-Current Liabilities - value: 13055 - items: - - name: 'Creditors : Long Term' - value: 13055 - items: - - accountId: '2310' - name: Hire Purchase - value: 6160 - items: [] - - accountId: '2300' - name: Loans - value: 6895 - items: [] - netAssets: 141326.64 - equity: - name: Equity - value: 141326.64 - items: - - name: Share Capital - value: 96332 - items: - - accountId: '3000' - name: Ordinary Shares - value: 96332 - items: [] - - name: Profit and Loss Account - value: 44994.64 - items: [] - mostRecentAvailableMonth: '2023-03-31T00:00:00' - earliestAvailableMonth: '2021-04-01T00:00:00' - Sage Business Cloud Accounting: - value: - currency: GBP - reports: - - date: '2022-10-31T00:00:00' - assets: - name: Assets - value: 1740591.73 - items: - - accountId: 9a25937b267a11e797950a57719b2edb - name: 1200 - Current - value: 8493.25 - items: [] - - accountId: 9a3e4bc6267a11e797950a57719b2edb - name: 1210 - Cash - value: 2664.25 - items: [] - - accountId: 9a98cf79267a11e797950a57719b2edb - name: 1 - Assets - Cost - value: 1302.24 - items: [] - - accountId: 9a990bbd267a11e797950a57719b2edb - name: 30 - Office equipment and IT - Cost - value: 100 - items: [] - - accountId: 9a99117b267a11e797950a57719b2edb - name: 40 - Fixtures and fittings - Cost - value: 485 - items: [] - - accountId: 9a9915ef267a11e797950a57719b2edb - name: 50 - Motor Vehicles - Cost - value: -426.67 - items: [] - - accountId: 9a991c56267a11e797950a57719b2edb - name: 1100 - Trade Debtors - value: 1425254.88 - items: [] - - accountId: 9a991e47267a11e797950a57719b2edb - name: 1101 - Provision for doubtful debtors - value: 25 - items: [] - - accountId: 7e6c7ed52c2d11e8b45c025132dab352 - name: 1220 - Savings - value: -155764.91 - items: [] - - accountId: 2572c8766afc11e8aaa5027d54329956 - name: 1230 - Tide Current - value: 509590.44 - items: [] - - accountId: e5889b459f544926ac5b8e6756df2ad4 - name: 1560 - Abdi Internet Bank - value: 49.61 - items: [] - - accountId: b17083bc9b2748b4ab321b024e260eda - name: 147852 - Abdi Live Test - value: -225830.75 - items: [] - - accountId: 92b80ba619d34cafbedd0eb2e69a82f7 - name: 12345678 - ozzbtdynvoblhytjolxaiohrtrhtpvndiqncpjtcjzwcddpvzl - value: 34321.11 - items: [] - - accountId: ae17d64a96a741719f1d31045aa4a8ef - name: 11113 - bills bank account - value: 2919.35 - items: [] - - accountId: 7c8be6c5e19a40cd92f93e36aecd4156 - name: 12345698 - Abdi Savings - value: 8949 - items: [] - - accountId: 5a64e8ada630412eb8fd1762175b3182 - name: 12345748 - My Test Bank Account - value: 20438.71 - items: [] - - accountId: 8cd0b0b93f0f4c8ba3434bc72d297cc2 - name: 12345758 - AlexT - value: 1080 - items: [] - - accountId: d340f7af2ba249cbb1c4cf12a6fdae14 - name: 12345768 - AbdiCredit - value: -40 - items: [] - - accountId: 8065f6270c984d6dae78ce817399ac4d - name: 101010 - Test Push Account - value: 120 - items: [] - - accountId: b34c43d0f3cd404ead4b282c2163c021 - name: 231 - TestArch12345 - value: -20 - items: [] - - accountId: 0f114074c6874794961e6e4b1ab6e4b1 - name: 466 - TestArch321 - value: 0.01 - items: [] - - accountId: fd4573ca207742d7bc8f04481952e53a - name: 1004 - Card Provider Bank Account - value: -4 - items: [] - - accountId: 90f1a608fcee4bddbc81cce5f6335060 - name: 345678 - Capital on Tap Bank Account CC - value: -120 - items: [] - - accountId: 5e77ffb2faa540a794f2dbd157064556 - name: 12345788 - Mike B Commerce Test Bank Account - value: 89120.55 - items: [] - - accountId: ad11ee61cdc54d4bb991f4855d9608b0 - name: 12345798 - Current Account 5 - value: 30 - items: [] - - accountId: f8cfa3dd79da436683f1768de75858b0 - name: 12345818 - Maria's Current Account - value: 1732.13 - items: [] - - accountId: e6717e9019c7456787e9054822772ebb - name: 12345828 - Joseph Test - value: 15662 - items: [] - - accountId: 495afbea7acb4be38cb5910b8c8db27d - name: 56743 - Nic Test Bank Account - value: 13.4 - items: [] - - accountId: f7559ab5cf8a493aa436503bd9712158 - name: 12345858 - Rob Credit Card - value: -200 - items: [] - - accountId: 83fbaf62ee244bebbee822d97b267c55 - name: 12345898 - Joseph (EUR) - value: 95.09 - items: [] - - accountId: afac9b7c22184fae8f7bc734d880b166 - name: 12345928 - Matt Ager test loan - value: 10 - items: [] - - accountId: 553ed57b302b4eda881b129b6abda736 - name: 12345938 - Matt Ager Test Current Account - value: 239.77 - items: [] - - accountId: 785c9d9f9b954307bd700bede22cf0b5 - name: 12345948 - Matt Ager Test Savings Account - value: 195 - items: [] - - accountId: 3c18fba9e0ba414bb6668bc0668a3090 - name: 12345958 - Matt Ager Test Credit Card - value: 30 - items: [] - - accountId: a11475c87cd54d0bb81951852ad91035 - name: 12345968 - Matt Ager Test Cash - value: 290 - items: [] - - accountId: 3d067bcf4a4b4a408ef3abaa4d944b91 - name: 12345978 - Matt Ager Test Other Bank Account - value: 20 - items: [] - - accountId: 179e02763960436c903b7ff2708659a2 - name: 12345988 - Matt Ager Test EUR Account - value: -58.16 - items: [] - - accountId: bb6151d3fd744fa6a81f2164b1d156dc - name: 13918348 - PUSH 1 Matt Ager Test EUR Account - value: 9 - items: [] - - accountId: 9a207c1a748b45f29117fa7126c12a9e - name: 13918594 - Australian Current Account - value: 1.43 - items: [] - - accountId: ab8e9947a5434c848e9a294188664117 - name: 13918604 - Bank Account 70 - value: -70 - items: [] - - accountId: 77650bcb6a1d4924be22d6a5da309031 - name: 13918624 - COT GBP Account - value: -10 - items: [] - - accountId: 8be8979ae30c46a6830dc653c9ad4400 - name: 57436 - Capital on Tap Business Credit Card - value: -105 - items: [] - liabilities: - name: Liabilities - value: 173084617.49 - items: - - accountId: 9a992290267a11e797950a57719b2edb - name: 2100 - Trade Creditors - value: 183778965.2 - items: [] - - accountId: 9a992966267a11e797950a57719b2edb - name: 2200 - VAT on Sales - value: 57234.67 - items: [] - - accountId: 9a992b99267a11e797950a57719b2edb - name: 2201 - VAT on Purchases - value: -34745.24 - items: [] - - accountId: 9a992d9e267a11e797950a57719b2edb - name: 2202 - VAT Liability - value: 256.86 - items: [] - - accountId: 9a992fb3267a11e797950a57719b2edb - name: 2203 - VAT Allocations & Adjustments - value: -40 - items: [] - - accountId: 9a9931b4267a11e797950a57719b2edb - name: 2205 - VAT on Sales - Holding Account - value: 199200.59 - items: [] - - accountId: 9a9933d1267a11e797950a57719b2edb - name: 2206 - VAT on Purchases - Holding Account - value: -10893226.32 - items: [] - - accountId: b954fb00e56447259a9f0cd84dbb6125 - name: 12345 - Pete Bill Account - value: -6383.05 - items: [] - - accountId: 7723dee96cbb435a800c2f7c047f47f3 - name: 312323 - Commerce Prepaid - value: -12842.93 - items: [] - - accountId: f96e7c899a1c4336bfbfe3d91ff4c157 - name: 121212 - Commerce Prepaid2 - value: -464.36 - items: [] - - accountId: 7ed323223f8d4d8f8f737d76e380a254 - name: 987 - Mike B Commerce Prepaid Test Account - value: -5011.84 - items: [] - - accountId: a2b43df636774b5a92fbfd889e390348 - name: 989 - Mike B Commerce Loan Test Account - value: 62 - items: [] - - accountId: 5cdf52bfb00d4d86b5a01e8af0761fe5 - name: 990 - Mike B Commerce Loan Test Account - value: 1538.24 - items: [] - - accountId: 09f1976c146f40c6b2009b26f1d20f97 - name: 42 - TestDatatypesAccount - value: 100 - items: [] - - accountId: 229eb087d0574c28be42fa4cc89af1f3 - name: 2110 - Trade Creditors - value: -26.33 - items: [] - netAssets: -171344025.76 - equity: - name: Equities - value: -171344025.76 - items: - - accountId: PROFIT-AND-LOSS - name: Profit for this period - value: -171344025.76 - items: [] - - date: '2022-09-30T00:00:00' - assets: - name: Assets - value: 1748139.93 - items: - - accountId: 9a25937b267a11e797950a57719b2edb - name: 1200 - Current - value: 8493.25 - items: [] - - accountId: 9a3e4bc6267a11e797950a57719b2edb - name: 1210 - Cash - value: 2664.25 - items: [] - - accountId: 9a98cf79267a11e797950a57719b2edb - name: 1 - Assets - Cost - value: 1302.24 - items: [] - - accountId: 9a990bbd267a11e797950a57719b2edb - name: 30 - Office equipment and IT - Cost - value: 100 - items: [] - - accountId: 9a99117b267a11e797950a57719b2edb - name: 40 - Fixtures and fittings - Cost - value: 485 - items: [] - - accountId: 9a9915ef267a11e797950a57719b2edb - name: 50 - Motor Vehicles - Cost - value: -426.67 - items: [] - - accountId: 9a991c56267a11e797950a57719b2edb - name: 1100 - Trade Debtors - value: 1432812.05 - items: [] - - accountId: 9a991e47267a11e797950a57719b2edb - name: 1101 - Provision for doubtful debtors - value: 25 - items: [] - - accountId: 7e6c7ed52c2d11e8b45c025132dab352 - name: 1220 - Savings - value: -155764.91 - items: [] - - accountId: 2572c8766afc11e8aaa5027d54329956 - name: 1230 - Tide Current - value: 509590.44 - items: [] - - accountId: e5889b459f544926ac5b8e6756df2ad4 - name: 1560 - Abdi Internet Bank - value: 49.61 - items: [] - - accountId: b17083bc9b2748b4ab321b024e260eda - name: 147852 - Abdi Live Test - value: -225830.75 - items: [] - - accountId: 92b80ba619d34cafbedd0eb2e69a82f7 - name: 12345678 - ozzbtdynvoblhytjolxaiohrtrhtpvndiqncpjtcjzwcddpvzl - value: 34321.11 - items: [] - - accountId: ae17d64a96a741719f1d31045aa4a8ef - name: 11113 - bills bank account - value: 2919.35 - items: [] - - accountId: 7c8be6c5e19a40cd92f93e36aecd4156 - name: 12345698 - Abdi Savings - value: 8949 - items: [] - - accountId: 5a64e8ada630412eb8fd1762175b3182 - name: 12345748 - My Test Bank Account - value: 20438.74 - items: [] - - accountId: 8cd0b0b93f0f4c8ba3434bc72d297cc2 - name: 12345758 - AlexT - value: 1080 - items: [] - - accountId: d340f7af2ba249cbb1c4cf12a6fdae14 - name: 12345768 - AbdiCredit - value: -40 - items: [] - - accountId: 8065f6270c984d6dae78ce817399ac4d - name: 101010 - Test Push Account - value: 120 - items: [] - - accountId: b34c43d0f3cd404ead4b282c2163c021 - name: 231 - TestArch12345 - value: -20 - items: [] - - accountId: 0f114074c6874794961e6e4b1ab6e4b1 - name: 466 - TestArch321 - value: 0.01 - items: [] - - accountId: fd4573ca207742d7bc8f04481952e53a - name: 1004 - Card Provider Bank Account - value: -4 - items: [] - - accountId: 90f1a608fcee4bddbc81cce5f6335060 - name: 345678 - Capital on Tap Bank Account CC - value: -120 - items: [] - - accountId: 5e77ffb2faa540a794f2dbd157064556 - name: 12345788 - Mike B Commerce Test Bank Account - value: 89120.55 - items: [] - - accountId: ad11ee61cdc54d4bb991f4855d9608b0 - name: 12345798 - Current Account 5 - value: 30 - items: [] - - accountId: f8cfa3dd79da436683f1768de75858b0 - name: 12345818 - Maria's Current Account - value: 1732.13 - items: [] - - accountId: e6717e9019c7456787e9054822772ebb - name: 12345828 - Joseph Test - value: 15662 - items: [] - - accountId: 495afbea7acb4be38cb5910b8c8db27d - name: 56743 - Nic Test Bank Account - value: 13.4 - items: [] - - accountId: f7559ab5cf8a493aa436503bd9712158 - name: 12345858 - Rob Credit Card - value: -200 - items: [] - - accountId: 83fbaf62ee244bebbee822d97b267c55 - name: 12345898 - Joseph (EUR) - value: 95.09 - items: [] - - accountId: afac9b7c22184fae8f7bc734d880b166 - name: 12345928 - Matt Ager test loan - value: 10 - items: [] - - accountId: 553ed57b302b4eda881b129b6abda736 - name: 12345938 - Matt Ager Test Current Account - value: 239.77 - items: [] - - accountId: 785c9d9f9b954307bd700bede22cf0b5 - name: 12345948 - Matt Ager Test Savings Account - value: 195 - items: [] - - accountId: 3c18fba9e0ba414bb6668bc0668a3090 - name: 12345958 - Matt Ager Test Credit Card - value: 30 - items: [] - - accountId: a11475c87cd54d0bb81951852ad91035 - name: 12345968 - Matt Ager Test Cash - value: 290 - items: [] - - accountId: 3d067bcf4a4b4a408ef3abaa4d944b91 - name: 12345978 - Matt Ager Test Other Bank Account - value: 20 - items: [] - - accountId: 179e02763960436c903b7ff2708659a2 - name: 12345988 - Matt Ager Test EUR Account - value: -58.16 - items: [] - - accountId: 9a207c1a748b45f29117fa7126c12a9e - name: 13918594 - Australian Current Account - value: 1.43 - items: [] - - accountId: ab8e9947a5434c848e9a294188664117 - name: 13918604 - Bank Account 70 - value: -70 - items: [] - - accountId: 77650bcb6a1d4924be22d6a5da309031 - name: 13918624 - COT GBP Account - value: -10 - items: [] - - accountId: 8be8979ae30c46a6830dc653c9ad4400 - name: 57436 - Capital on Tap Business Credit Card - value: -105 - items: [] - liabilities: - name: Liabilities - value: 161482418.52 - items: - - accountId: 9a992290267a11e797950a57719b2edb - name: 2100 - Trade Creditors - value: 171440565.23 - items: [] - - accountId: 9a992966267a11e797950a57719b2edb - name: 2200 - VAT on Sales - value: 57232.9 - items: [] - - accountId: 9a992b99267a11e797950a57719b2edb - name: 2201 - VAT on Purchases - value: -34745.24 - items: [] - - accountId: 9a992d9e267a11e797950a57719b2edb - name: 2202 - VAT Liability - value: 256.86 - items: [] - - accountId: 9a992fb3267a11e797950a57719b2edb - name: 2203 - VAT Allocations & Adjustments - value: -40 - items: [] - - accountId: 9a9931b4267a11e797950a57719b2edb - name: 2205 - VAT on Sales - Holding Account - value: 199003.36 - items: [] - - accountId: 9a9933d1267a11e797950a57719b2edb - name: 2206 - VAT on Purchases - Holding Account - value: -10156826.32 - items: [] - - accountId: b954fb00e56447259a9f0cd84dbb6125 - name: 12345 - Pete Bill Account - value: -6383.05 - items: [] - - accountId: 7723dee96cbb435a800c2f7c047f47f3 - name: 312323 - Commerce Prepaid - value: -12842.93 - items: [] - - accountId: f96e7c899a1c4336bfbfe3d91ff4c157 - name: 121212 - Commerce Prepaid2 - value: -464.36 - items: [] - - accountId: 7ed323223f8d4d8f8f737d76e380a254 - name: 987 - Mike B Commerce Prepaid Test Account - value: -5011.84 - items: [] - - accountId: a2b43df636774b5a92fbfd889e390348 - name: 989 - Mike B Commerce Loan Test Account - value: 62 - items: [] - - accountId: 5cdf52bfb00d4d86b5a01e8af0761fe5 - name: 990 - Mike B Commerce Loan Test Account - value: 1538.24 - items: [] - - accountId: 09f1976c146f40c6b2009b26f1d20f97 - name: 42 - TestDatatypesAccount - value: 100 - items: [] - - accountId: 229eb087d0574c28be42fa4cc89af1f3 - name: 2110 - Trade Creditors - value: -26.33 - items: [] - netAssets: -159734278.59 - equity: - name: Equities - value: -159734278.59 - items: - - accountId: PROFIT-AND-LOSS - name: Profit for this period - value: -159734278.59 - items: [] - mostRecentAvailableMonth: '2022-10-31T00:00:00' - earliestAvailableMonth: '2022-04-01T00:00:00' - Wave: - value: - currency: GBP - reports: - - date: '2022-11-30T00:00:00' - assets: - name: Assets - value: 2220.87 - items: - - name: Cash and Bank - value: 1001.87 - items: - - name: Abdi Bank - value: 158.9 - items: [] - - name: Cash on Hand - value: 245.31 - items: [] - - name: Current Account - value: 597.66 - items: [] - - name: Other Current Assets - value: 219 - items: - - name: Accounts Receivable - value: 211.99 - items: [] - - name: Unrealized Gain on Foreign Exchange - value: 7.01 - items: [] - - name: Long-term Assets - value: 1000 - items: - - name: Furniture - value: 1000 - items: [] - liabilities: - name: Liabilities - value: 4641.15 - items: - - name: Current Liabilities - value: 4641.15 - items: - - name: Accounts Payable - value: 3557.14 - items: [] - - name: Abdul's new Tax - value: 7.54 - items: [] - - name: FederalABC - value: 1002.6 - items: [] - - name: STANDARD - value: 73.87 - items: [] - netAssets: -2420.28 - equity: - name: Equity - value: -2420.28 - items: - - name: Other Equity - value: 63.8 - items: - - name: Owner Investment / Drawings - value: -36.2 - items: [] - - name: Some Equity - value: 100 - items: [] - - name: Retained Earnings - value: -2484.08 - items: - - name: Profit for all prior years - value: -1950.59 - items: [] - - name: 'Profit between Jan 1, 2022 and Nov 30, 2022' - value: -533.49 - items: [] - - date: '2022-10-31T00:00:00' - assets: - name: Assets - value: 2222.22 - items: - - name: Cash and Bank - value: 1001.87 - items: - - name: Abdi Bank - value: 158.9 - items: [] - - name: Cash on Hand - value: 245.31 - items: [] - - name: Current Account - value: 597.66 - items: [] - - name: Other Current Assets - value: 220.35 - items: - - name: Accounts Receivable - value: 211.99 - items: [] - - name: Unrealized Gain on Foreign Exchange - value: 8.36 - items: [] - - name: Long-term Assets - value: 1000 - items: - - name: Furniture - value: 1000 - items: [] - liabilities: - name: Liabilities - value: 4086.15 - items: - - name: Current Liabilities - value: 4086.15 - items: - - name: Accounts Payable - value: 3002.14 - items: [] - - name: Abdul's new Tax - value: 7.54 - items: [] - - name: FederalABC - value: 1002.6 - items: [] - - name: STANDARD - value: 73.87 - items: [] - netAssets: -1863.93 - equity: - name: Equity - value: -1863.93 - items: - - name: Other Equity - value: 63.8 - items: - - name: Owner Investment / Drawings - value: -36.2 - items: [] - - name: Some Equity - value: 100 - items: [] - - name: Retained Earnings - value: -1927.73 - items: - - name: Profit for all prior years - value: -1950.59 - items: [] - - name: 'Profit between Jan 1, 2022 and Oct 31, 2022' - value: 22.86 - items: [] - mostRecentAvailableMonth: '2022-11-30T00:00:00' - earliestAvailableMonth: '2022-05-01T00:00:00' - Xero: - value: - currency: GBP - reports: - - date: '2023-03-31T23:59:59' - assets: - name: Assets - value: 24166.8 - items: - - name: Current Assets - value: 21486.84 - items: - - name: Bank - value: 924.25 - items: - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - name: Business Bank Account - value: 924.25 - items: [] - - accountId: a1e2c53a-18b9-40cb-8e87-e2db200fe8af - name: Inventory - value: 121.21 - items: [] - - accountId: 8add7c44-ffe0-4a42-869e-b85dadd5eac1 - name: Accounts Receivable - value: 20441.38 - items: [] - - name: Fixed Assets - value: 2679.96 - items: - - accountId: a4602fb6-2e9d-4064-b318-c409032692ba - name: Office Equipment - value: 3665.63 - items: [] - - accountId: 8d1ae68b-1251-4b44-9d7a-639b3976935c - name: Computer Equipment - value: -985.67 - items: [] - liabilities: - name: Liabilities - value: 14265.73 - items: - - name: Current Liabilities - value: 14265.73 - items: - - accountId: b12f79b9-a082-4b8b-971e-d321292943c7 - name: VAT - value: 1194.45 - items: [] - - accountId: 1873bf00-e52f-48e9-89d6-619c93723f60 - name: Unpaid Expense Claims - value: 150.85 - items: [] - - accountId: 7ff95c6a-5849-4030-a361-52165fab6490 - name: Historical Adjustment - value: 4130.98 - items: [] - - accountId: e0faa299-ca0d-4b0a-9e32-0dfabdf9179a - name: Accounts Payable - value: 8789.45 - items: [] - netAssets: 9901.07 - equity: - name: Equity - value: 9901.07 - items: - - accountId: 524c9f2d-e680-4861-82f6-4ad171b51de5 - name: Retained Earnings - value: -7961.99 - items: [] - - accountId: abababab-abab-abab-abab-abababababab - name: Current Year Earnings - value: 17863.06 - items: [] - - date: '2023-02-28T23:59:59' - assets: - name: Assets - value: 24166.8 - items: - - name: Current Assets - value: 21486.84 - items: - - name: Bank - value: 924.25 - items: - - accountId: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - name: Business Bank Account - value: 924.25 - items: [] - - accountId: a1e2c53a-18b9-40cb-8e87-e2db200fe8af - name: Inventory - value: 121.21 - items: [] - - accountId: 8add7c44-ffe0-4a42-869e-b85dadd5eac1 - name: Accounts Receivable - value: 20441.38 - items: [] - - name: Fixed Assets - value: 2679.96 - items: - - accountId: a4602fb6-2e9d-4064-b318-c409032692ba - name: Office Equipment - value: 3665.63 - items: [] - - accountId: 8d1ae68b-1251-4b44-9d7a-639b3976935c - name: Computer Equipment - value: -985.67 - items: [] - liabilities: - name: Liabilities - value: 14265.73 - items: - - name: Current Liabilities - value: 14265.73 - items: - - accountId: b12f79b9-a082-4b8b-971e-d321292943c7 - name: VAT - value: 1194.45 - items: [] - - accountId: 1873bf00-e52f-48e9-89d6-619c93723f60 - name: Unpaid Expense Claims - value: 150.85 - items: [] - - accountId: 7ff95c6a-5849-4030-a361-52165fab6490 - name: Historical Adjustment - value: 4130.98 - items: [] - - accountId: e0faa299-ca0d-4b0a-9e32-0dfabdf9179a - name: Accounts Payable - value: 8789.45 - items: [] - netAssets: 9901.07 - equity: - name: Equity - value: 9901.07 - items: - - accountId: 524c9f2d-e680-4861-82f6-4ad171b51de5 - name: Retained Earnings - value: -7961.99 - items: [] - - accountId: abababab-abab-abab-abab-abababababab - name: Current Year Earnings - value: 17863.06 - items: [] - mostRecentAvailableMonth: '2023-03-31T00:00:00' - earliestAvailableMonth: '2022-09-01T00:00:00' - Zoho Books: - value: - currency: GBP - reports: - - date: '2022-10-31T00:00:00' - assets: - name: Assets - value: 63170.61 - items: - - name: Current Assets - value: 63150.61 - items: - - name: Cash - value: 1678.31 - items: - - accountId: '104957000000000349' - name: Petty Cash - value: -8246.75 - items: [] - - accountId: '104957000000000346' - name: Undeposited Funds - value: 9925.06 - items: [] - - name: Bank - value: 69910.1 - items: - - accountId: '104957000000060010' - name: Abdi Test - value: 69858.44 - items: [] - - accountId: '104957000000065002' - name: Abdi Test 2 - value: 20 - items: [] - - accountId: '104957000000080006' - name: EUR Test Bank Account - value: 24.29 - items: [] - - accountId: '104957000000508001' - name: Subtra USD wallet - value: 7.37 - items: [] - - accountId: '104957000000000352' - name: Accounts Receivable - value: -959.64 - items: [] - - name: Other Current Assets - value: -7478.16 - items: - - accountId: '104957000000000358' - name: Advance Tax - value: 2.63 - items: [] - - accountId: '104957000000000457' - name: Employee Advance - value: 0 - items: [] - - accountId: '104957000000033015' - name: Input VAT - value: 356.84 - items: [] - - accountId: '104957000000000511' - name: Inventory Asset - value: 90.06 - items: [] - - accountId: '104957000000032010' - name: Prepaid Expenses - value: -8017.69 - items: [] - - accountId: '104957000000388007' - name: Sales to Customers (Cash) - value: 0 - items: [] - - accountId: '104957000000093001' - name: Test prepaid expenses child account - value: 0 - items: [] - - accountId: '104957000000096007' - name: Test prepaid expenses child account 2 - value: 100 - items: [] - - accountId: '104957000000096001' - name: Test prepaid expenses child child account - value: -50 - items: [] - - accountId: '104957000000085001' - name: Test stock account - value: 40 - items: [] - - name: Other Assets - value: 0 - items: [] - - name: Fixed Assets - value: 20 - items: - - accountId: '104957000000000355' - name: Furniture and Equipment - value: 20 - items: [] - liabilities: - name: Liabilities - value: 8615.39 - items: - - name: Liabilities - value: 8615.39 - items: - - name: Current Liabilities - value: 8615.39 - items: - - accountId: '104957000000000361' - name: Accounts Payable - value: 2084.6 - items: [] - - accountId: '104957000000618001' - name: Creadit Card - BA Company - value: 656.05 - items: [] - - accountId: '104957000000183010' - name: Credit Card - value: 26.25 - items: [] - - accountId: '104957000000000460' - name: Employee Reimbursements - value: 10.35 - items: [] - - accountId: '104957000000000499' - name: Opening Balance Adjustments - value: 0 - items: [] - - accountId: '104957000000033017' - name: Output VAT - value: 3934.75 - items: [] - - accountId: '104957000000000501' - name: Unearned Revenue - value: 1903.39 - items: [] - - accountId: '104957000000054026' - name: VAT MOSS Payable - value: 0 - items: [] - - accountId: '104957000000000364' - name: VAT Payable - value: 0 - items: [] - - name: Long Term Liabilities - value: 0 - items: [] - - name: Other Liabilities - value: 0 - items: - - accountId: '104957000000006001' - name: Tag Adjustments - value: 0 - items: [] - netAssets: 54555.22 - equity: - name: Equities - value: 54555.22 - items: - - accountId: '' - name: Current Year Earnings - value: -15199.89 - items: [] - - accountId: '104957000000000451' - name: Drawing - value: 0 - items: [] - - accountId: '104957000000000373' - name: Opening Balance Offset - value: 10000 - items: [] - - accountId: '104957000000000370' - name: Owner's Equity - value: 0 - items: [] - - accountId: '104957000000000367' - name: Retained Earnings - value: 59755.11 - items: [] - - date: '2022-09-01T00:00:00' - assets: - name: Assets - value: 63170.61 - items: - - name: Current Assets - value: 63150.61 - items: - - name: Cash - value: 1678.31 - items: - - accountId: '104957000000000349' - name: Petty Cash - value: -8246.75 - items: [] - - accountId: '104957000000000346' - name: Undeposited Funds - value: 9925.06 - items: [] - - name: Bank - value: 69910.1 - items: - - accountId: '104957000000060010' - name: Abdi Test - value: 69858.44 - items: [] - - accountId: '104957000000065002' - name: Abdi Test 2 - value: 20 - items: [] - - accountId: '104957000000080006' - name: EUR Test Bank Account - value: 24.29 - items: [] - - accountId: '104957000000508001' - name: Subtra USD wallet - value: 7.37 - items: [] - - accountId: '104957000000000352' - name: Accounts Receivable - value: -959.64 - items: [] - - name: Other Current Assets - value: -7478.16 - items: - - accountId: '104957000000000358' - name: Advance Tax - value: 2.63 - items: [] - - accountId: '104957000000000457' - name: Employee Advance - value: 0 - items: [] - - accountId: '104957000000033015' - name: Input VAT - value: 356.84 - items: [] - - accountId: '104957000000000511' - name: Inventory Asset - value: 90.06 - items: [] - - accountId: '104957000000032010' - name: Prepaid Expenses - value: -8017.69 - items: [] - - accountId: '104957000000388007' - name: Sales to Customers (Cash) - value: 0 - items: [] - - accountId: '104957000000093001' - name: Test prepaid expenses child account - value: 0 - items: [] - - accountId: '104957000000096007' - name: Test prepaid expenses child account 2 - value: 100 - items: [] - - accountId: '104957000000096001' - name: Test prepaid expenses child child account - value: -50 - items: [] - - accountId: '104957000000085001' - name: Test stock account - value: 40 - items: [] - - name: Other Assets - value: 0 - items: [] - - name: Fixed Assets - value: 20 - items: - - accountId: '104957000000000355' - name: Furniture and Equipment - value: 20 - items: [] - liabilities: - name: Liabilities - value: 8615.39 - items: - - name: Liabilities - value: 8615.39 - items: - - name: Current Liabilities - value: 8615.39 - items: - - accountId: '104957000000000361' - name: Accounts Payable - value: 2084.6 - items: [] - - accountId: '104957000000618001' - name: Creadit Card - BA Company - value: 656.05 - items: [] - - accountId: '104957000000183010' - name: Credit Card - value: 26.25 - items: [] - - accountId: '104957000000000460' - name: Employee Reimbursements - value: 10.35 - items: [] - - accountId: '104957000000000499' - name: Opening Balance Adjustments - value: 0 - items: [] - - accountId: '104957000000033017' - name: Output VAT - value: 3934.75 - items: [] - - accountId: '104957000000000501' - name: Unearned Revenue - value: 1903.39 - items: [] - - accountId: '104957000000054026' - name: VAT MOSS Payable - value: 0 - items: [] - - accountId: '104957000000000364' - name: VAT Payable - value: 0 - items: [] - - name: Long Term Liabilities - value: 0 - items: [] - - name: Other Liabilities - value: 0 - items: - - accountId: '104957000000006001' - name: Tag Adjustments - value: 0 - items: [] - netAssets: 54555.22 - equity: - name: Equities - value: 54555.22 - items: - - accountId: '' - name: Current Year Earnings - value: -15199.89 - items: [] - - accountId: '104957000000000451' - name: Drawing - value: 0 - items: [] - - accountId: '104957000000000373' - name: Opening Balance Offset - value: 10000 - items: [] - - accountId: '104957000000000370' - name: Owner's Equity - value: 0 - items: [] - - accountId: '104957000000000367' - name: Retained Earnings - value: 59755.11 - items: [] - mostRecentAvailableMonth: '2022-10-31T00:00:00' - earliestAvailableMonth: '2022-04-01T00:00:00' - '401': - $ref: '#/components/responses/Unauthorized' - '402': - $ref: '#/components/responses/Payment-Required' - '403': - $ref: '#/components/responses/Forbidden' - '404': - $ref: '#/components/responses/Not-Found' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - '/companies/{companyId}/data/financials/profitAndLoss': - parameters: - - $ref: '#/components/parameters/companyId' - get: - tags: - - Financial statements - summary: Get profit and loss - description: Gets the latest profit and loss for a company. - operationId: get-accounting-profit-and-loss - x-speakeasy-group: financial-statements.profit-and-loss - parameters: - - $ref: '#/components/parameters/accountingPeriodLength' - - $ref: '#/components/parameters/accountingPeriodsToCompare' - - $ref: '#/components/parameters/accountingStartMonth' - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/AccountingProfitAndLossReport' - examples: - Clear Books: - value: - reports: - - fromDate: '2023-03-01T00:00:00' - toDate: '2023-03-31T00:00:00' - income: - accountId: '' - name: Income - value: 146840.42 - items: - - accountId: 72df89d2-512b-4455-af51-a6b563733842 - name: Sales - value: 146840.42 - items: [] - costOfSales: - accountId: '' - name: Cost of Sales - value: 29955.45 - items: - - accountId: 7403e960-5b72-42ff-abf4-c870ad8910bd - name: Purchases - value: 29955.45 - items: [] - grossProfit: 116884.97 - expenses: - accountId: '' - name: Expenses - value: 62407.18 - items: - - accountId: 868591ad-f9c2-4956-a5ec-c32c1d48c6f3 - name: Advertising & Marketing - value: 24962.87 - items: [] - - accountId: 940c8a59-3348-4a0b-a1b1-781d9f29cc8b - name: Depreciation Expense - value: 1550.12 - items: [] - - accountId: e7ac3baa-cfbe-40c1-a172-83d22e84435b - name: Entertainment-100% business - value: 1410.61 - items: [] - - accountId: b5e801e8-8dbc-4390-ac99-3b0fff54a89f - name: General Expenses - value: 1283.66 - items: [] - - accountId: 5360066d-1474-49f6-a7a5-c66d5f6032ba - name: 'Light, Power, Heating' - value: 1168.13 - items: [] - - accountId: 138a8eb3-5c08-4e59-a3bc-892119694447 - name: Motor Vehicle Expenses - value: 944.89 - items: [] - - accountId: 1734ff00-2a17-45b4-8db6-2dc2e832c460 - name: 'Postage, Freight & Courier' - value: 977.96 - items: [] - - accountId: 7aa7988a-ff61-4cb8-bef3-15395355d108 - name: Printing & Stationery - value: 889.94 - items: [] - - accountId: 9cbe5fe4-ca60-4792-8bf1-de01fb7010aa - name: Rent - value: 8000 - items: [] - - accountId: 04f7111b-55d4-4efc-b329-1bd5c791933a - name: Repairs & Maintenance - value: 719.86 - items: [] - - accountId: 7d8d0322-f452-47de-a8e8-54b0130e6f38 - name: Subscriptions - value: 40 - items: [] - - accountId: 043b6bcb-dfe6-4c97-9b4c-f9b300fe3f03 - name: Telephone & Internet - value: 45 - items: [] - - accountId: df62060b-41cc-4bf2-9de7-c7e537b5663a - name: Travel - National - value: 6000.46 - items: [] - - accountId: eef78ed1-dfed-447c-bdba-3a49fb2c044b - name: Audit & Accountancy fees - value: 0 - items: [] - - accountId: f3aa84fe-5c31-4107-b207-7e0419f636d7 - name: Bank Fees - value: 609.29 - items: [] - - accountId: c16f5c35-8283-47da-9d09-5fecb183b0cb - name: Cleaning - value: 130 - items: [] - - accountId: fb3210ef-edeb-48af-bb49-b85d40c1e6bb - name: Corporation Tax - value: 630.62 - items: [] - - accountId: 7f6a0e92-65be-4333-9a0a-d981b03bedd1 - name: Wages - value: 12000 - items: [] - - accountId: e8a0a24e-2dab-46b1-bfe1-6e92551c04e8 - name: Purchase Discounts - value: 510.1 - items: [] - - accountId: 4378ddba-36b4-4b35-9970-bd972b20d137 - name: Amortization - value: 5.72 - items: [] - - accountId: 78785fd7-f197-4c34-aa17-6e76b9255d34 - name: Interest Paid (operating) - value: 527.95 - items: [] - netOperatingProfit: 54477.79 - otherExpenses: - accountId: '' - name: Other Expenses - value: 350.44 - items: - - accountId: cbf82e0d-87a7-464d-b567-9274ea94a1c0 - name: Charitable and Political Donations - value: 350.44 - items: [] - otherIncome: - accountId: '' - name: Other Income - value: 850.22 - items: - - accountId: 68794a8f-b22d-4520-b97b-025b7cb10f94 - name: Other Revenue - value: 850.22 - items: [] - netOtherIncome: 499.78 - netProfit: 54977.57 - - fromDate: '2023-02-01T00:00:00' - toDate: '2023-02-28T00:00:00' - income: - accountId: '' - name: Income - value: 108461.81 - items: - - accountId: 72df89d2-512b-4455-af51-a6b563733842 - name: Sales - value: 108461.81 - items: [] - costOfSales: - accountId: '' - name: Cost of Sales - value: 18438.51 - items: - - accountId: 7403e960-5b72-42ff-abf4-c870ad8910bd - name: Purchases - value: 18438.51 - items: [] - grossProfit: 90023.3 - expenses: - accountId: '' - name: Expenses - value: 46096.28 - items: - - accountId: 868591ad-f9c2-4956-a5ec-c32c1d48c6f3 - name: Advertising & Marketing - value: 18438.51 - items: [] - - accountId: 940c8a59-3348-4a0b-a1b1-781d9f29cc8b - name: Depreciation Expense - value: 669.33 - items: [] - - accountId: e7ac3baa-cfbe-40c1-a172-83d22e84435b - name: Entertainment-100% business - value: 609.09 - items: [] - - accountId: b5e801e8-8dbc-4390-ac99-3b0fff54a89f - name: General Expenses - value: 554.28 - items: [] - - accountId: 5360066d-1474-49f6-a7a5-c66d5f6032ba - name: 'Light, Power, Heating' - value: 448.35 - items: [] - - accountId: 138a8eb3-5c08-4e59-a3bc-892119694447 - name: Motor Vehicle Expenses - value: 412.48 - items: [] - - accountId: 1734ff00-2a17-45b4-8db6-2dc2e832c460 - name: 'Postage, Freight & Courier' - value: 426.92 - items: [] - - accountId: 7aa7988a-ff61-4cb8-bef3-15395355d108 - name: Printing & Stationery - value: 388.49 - items: [] - - accountId: 9cbe5fe4-ca60-4792-8bf1-de01fb7010aa - name: Rent - value: 8000 - items: [] - - accountId: 04f7111b-55d4-4efc-b329-1bd5c791933a - name: Repairs & Maintenance - value: 314.25 - items: [] - - accountId: 7d8d0322-f452-47de-a8e8-54b0130e6f38 - name: Subscriptions - value: 40 - items: [] - - accountId: 043b6bcb-dfe6-4c97-9b4c-f9b300fe3f03 - name: Telephone & Internet - value: 45 - items: [] - - accountId: df62060b-41cc-4bf2-9de7-c7e537b5663a - name: Travel - National - value: 325.25 - items: [] - - accountId: eef78ed1-dfed-447c-bdba-3a49fb2c044b - name: Audit & Accountancy fees - value: 0 - items: [] - - accountId: f3aa84fe-5c31-4107-b207-7e0419f636d7 - name: Bank Fees - value: 2600.97 - items: [] - - accountId: c16f5c35-8283-47da-9d09-5fecb183b0cb - name: Cleaning - value: 130 - items: [] - - accountId: fb3210ef-edeb-48af-bb49-b85d40c1e6bb - name: Corporation Tax - value: 239.41 - items: [] - - accountId: 7f6a0e92-65be-4333-9a0a-d981b03bedd1 - name: Wages - value: 12000 - items: [] - - accountId: e8a0a24e-2dab-46b1-bfe1-6e92551c04e8 - name: Purchase Discounts - value: 220.26 - items: [] - - accountId: 4378ddba-36b4-4b35-9970-bd972b20d137 - name: Amortization - value: 5.72 - items: [] - - accountId: 78785fd7-f197-4c34-aa17-6e76b9255d34 - name: Interest Paid (operating) - value: 227.97 - items: [] - netOperatingProfit: 43927.02 - otherExpenses: - accountId: '' - name: Other Expenses - value: 350.44 - items: - - accountId: cbf82e0d-87a7-464d-b567-9274ea94a1c0 - name: Charitable and Political Donations - value: 350.44 - items: [] - otherIncome: - accountId: '' - name: Other Income - value: 850.22 - items: - - accountId: 68794a8f-b22d-4520-b97b-025b7cb10f94 - name: Other Revenue - value: 850.22 - items: [] - netOtherIncome: 499.78 - netProfit: 44426.8 - reportBasis: Unknown - currency: GBP - mostRecentAvailableMonth: '2023-03-01T00:00:00' - earliestAvailableMonth: '2018-04-01T00:00:00' - Dynamics 365 Business Central: - value: - reports: - - fromDate: '2023-03-01T00:00:00' - toDate: '2023-03-31T00:00:00' - income: - name: Income - value: 658.5 - items: - - name: Sales Returns & Allowances - value: 0 - items: - - accountId: 8aba49ae-461a-ed11-90eb-000d3a873324 - name: '0121 - ' - value: 0 - items: [] - - accountId: 1e1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 10400 - Sales Returns & Allowances - value: 0 - items: [] - - name: 'Income, Services' - value: 0 - items: - - accountId: ac6a3a74-c69f-ec11-80f1-0022481b4546 - name: 10005-1 - Child - value: 0 - items: [] - - accountId: 161217b3-89d1-ea11-bbaa-000d3a2b9185 - name: '10100 - Income, Services' - value: 0 - items: [] - - name: 'Income, Jobs' - value: 0 - items: - - accountId: 1f2618f9-c79f-ec11-80f1-0022481b4546 - name: 10005-2 - Child Child - value: 0 - items: [] - - accountId: 1a1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 10250 - Job Sales - value: 0 - items: [] - - name: '' - value: 0 - items: - - accountId: de1cabee-4a33-ed11-97e8-0022481aa72d - name: 1005002 - Test account no cat 2 - value: 0 - items: [] - - accountId: b74b0c08-aa59-eb11-89f9-00224800a7ae - name: '1006 - Account without category Income ' - value: 0 - items: [] - - accountId: 023a8eba-c12e-ed11-97e8-000d3a8753f5 - name: 3213 - vdfgdf - value: 0 - items: [] - - accountId: aa666f5a-c22e-ed11-97e8-0022480052b7 - name: 'TEST INCOME A/C - ' - value: 0 - items: [] - - name: 'Income, Product Sales' - value: 658.5 - items: - - accountId: 181217b3-89d1-ea11-bbaa-000d3a2b9185 - name: '10200 - Income, Product Sales' - value: 658.5 - items: [] - - name: Sales Discounts - value: 0 - items: - - accountId: 1c1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 10300 - Sales Discounts - value: 0 - items: [] - - name: Job Sales Contra - value: 0 - items: - - accountId: 201217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 10450 - Job Sales Applied - value: 0 - items: [] - - name: Income - value: 0 - items: - - accountId: 221217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 10500 - Interest Income - value: 0 - items: [] - costOfSales: - name: Cost of Goods Sold - value: 2735.64 - items: - - name: Materials - value: 2735.64 - items: - - accountId: 281217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 20100 - Cost of Materials - value: 2735.64 - items: [] - - name: Labour - value: 0 - items: - - accountId: 2a1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 20200 - Cost of Labour - value: 0 - items: [] - - name: Jobs Cost - value: 0 - items: - - accountId: 2c1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 20300 - Job Costs - value: 0 - items: [] - grossProfit: -2077.14 - expenses: - name: Expense - value: 41.77 - items: - - name: '' - value: 0 - items: - - accountId: e9b4e2c2-4b33-ed11-97e8-0022481aa72d - name: 1005003 - Expense Test account no cat - value: 0 - items: [] - - accountId: 1d60f4a2-6d19-ed11-90eb-002248009024 - name: 1234512345 - Invalid VAT Posting Setup - value: 0 - items: [] - - name: Interest Expense - value: 0 - items: - - accountId: bd407350-340b-ec11-86bc-0022481a4971 - name: 1093 - export with misc type - value: 0 - items: [] - - accountId: 381217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 30300 - Interest Expense - value: 0 - items: [] - - name: Other Income & Expenses - value: 0 - items: - - accountId: 2e1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 20399 - Job Costs Applied - value: 0 - items: [] - - accountId: 4e1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 31400 - Office Supplies Expense - value: 0 - items: [] - - accountId: 501217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 31500 - Miscellaneous Expense - value: 0 - items: [] - - accountId: 521217b3-89d1-ea11-bbaa-000d3a2b9185 - name: '31600 - Depreciation, Equipment' - value: 0 - items: [] - - accountId: 541217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 31900 - Rounding - value: 0 - items: [] - - name: Benefits Expense - value: 0 - items: - - accountId: 57a95f12-9ecf-ec11-8e7e-00224800faf5 - name: 23 - test account - value: 0 - items: [] - - name: Fees Expense - value: 0 - items: - - accountId: 3f6818aa-a4cf-ec11-8e7e-00224800faf5 - name: 30 - test expenses 2 - value: 0 - items: [] - - accountId: 3a1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 30400 - Bank Charges and Fees - value: 0 - items: [] - - accountId: 3c1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 30500 - Processing Fees - value: 0 - items: [] - - name: Rent Expense - value: 0 - items: - - accountId: 341217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 30100 - Rent Expense - value: 0 - items: [] - - name: Advertising Expense - value: 0 - items: - - accountId: 361217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 30200 - Advertising Expense - value: 0 - items: [] - - name: Bad Debt Expense - value: 0 - items: - - accountId: 3e1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 30600 - Bad Debt Expense - value: 0 - items: [] - - name: Salaries Expense - value: 0 - items: - - accountId: 401217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 30700 - Salaries Expense - value: 0 - items: [] - - name: Payroll Expense - value: 0 - items: - - accountId: 421217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 30800 - Payroll Tax Expense - value: 0 - items: [] - - accountId: 441217b3-89d1-ea11-bbaa-000d3a2b9185 - name: '30900 - Workers Compensation ' - value: 0 - items: [] - - name: Insurance Expense - value: 41.77 - items: - - accountId: 461217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 31000 - Health & Dental Insurance Expense - value: 41.77 - items: [] - - accountId: 481217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 31100 - Life Insurance Expense - value: 0 - items: [] - - name: Repairs and Maintenance Expense - value: 0 - items: - - accountId: 4a1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 31200 - Repairs and Maintenance Expense - value: 0 - items: [] - - name: Utilities Expense - value: 0 - items: - - accountId: 4c1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 31300 - Utilities Expense - value: 0 - items: [] - - name: Travel Expense - value: 0 - items: - - accountId: 61d17174-61db-ec11-82f9-002248008de8 - name: 999992 - Payhawk General - value: 0 - items: [] - - accountId: 3a37ed38-a6cf-ec11-8e7e-00224800faf5 - name: 999998 - Payhawk General - value: 0 - items: [] - - accountId: 64ee049b-a1cf-ec11-8e7e-00224800faf5 - name: 999999 - Payhawk General - value: 0 - items: [] - netOperatingProfit: -2118.91 - otherExpenses: - name: Other Expenses - value: 0 - items: [] - otherIncome: - name: Other Income - value: 0 - items: [] - netOtherIncome: 0 - netProfit: -2118.91 - - fromDate: '2023-02-01T00:00:00' - toDate: '2023-02-28T00:00:00' - income: - name: Income - value: 414.51 - items: - - name: Sales Returns & Allowances - value: -125.17 - items: - - accountId: 8aba49ae-461a-ed11-90eb-000d3a873324 - name: '0121 - ' - value: -125.17 - items: [] - - accountId: 1e1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 10400 - Sales Returns & Allowances - value: 0 - items: [] - - name: 'Income, Services' - value: -10 - items: - - accountId: ac6a3a74-c69f-ec11-80f1-0022481b4546 - name: 10005-1 - Child - value: -10 - items: [] - - accountId: 161217b3-89d1-ea11-bbaa-000d3a2b9185 - name: '10100 - Income, Services' - value: 0 - items: [] - - name: 'Income, Jobs' - value: -12.91 - items: - - accountId: 1f2618f9-c79f-ec11-80f1-0022481b4546 - name: 10005-2 - Child Child - value: -12.91 - items: [] - - accountId: 1a1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 10250 - Job Sales - value: 0 - items: [] - - name: '' - value: 0 - items: - - accountId: de1cabee-4a33-ed11-97e8-0022481aa72d - name: 1005002 - Test account no cat 2 - value: 0 - items: [] - - accountId: b74b0c08-aa59-eb11-89f9-00224800a7ae - name: '1006 - Account without category Income ' - value: 0 - items: [] - - accountId: 023a8eba-c12e-ed11-97e8-000d3a8753f5 - name: 3213 - vdfgdf - value: 0 - items: [] - - accountId: aa666f5a-c22e-ed11-97e8-0022480052b7 - name: 'TEST INCOME A/C - ' - value: 0 - items: [] - - name: 'Income, Product Sales' - value: 430.4 - items: - - accountId: 181217b3-89d1-ea11-bbaa-000d3a2b9185 - name: '10200 - Income, Product Sales' - value: 430.4 - items: [] - - name: Sales Discounts - value: 0 - items: - - accountId: 1c1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 10300 - Sales Discounts - value: 0 - items: [] - - name: Job Sales Contra - value: 0 - items: - - accountId: 201217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 10450 - Job Sales Applied - value: 0 - items: [] - - name: Income - value: 132.19 - items: - - accountId: 221217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 10500 - Interest Income - value: 132.19 - items: [] - costOfSales: - name: Cost of Goods Sold - value: 328 - items: - - name: Materials - value: 328 - items: - - accountId: 281217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 20100 - Cost of Materials - value: 328 - items: [] - - name: Labour - value: 0 - items: - - accountId: 2a1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 20200 - Cost of Labour - value: 0 - items: [] - - name: Jobs Cost - value: 0 - items: - - accountId: 2c1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 20300 - Job Costs - value: 0 - items: [] - grossProfit: 86.51 - expenses: - name: Expense - value: 1482.02 - items: - - name: '' - value: 9.52 - items: - - accountId: e9b4e2c2-4b33-ed11-97e8-0022481aa72d - name: 1005003 - Expense Test account no cat - value: 0 - items: [] - - accountId: 1d60f4a2-6d19-ed11-90eb-002248009024 - name: 1234512345 - Invalid VAT Posting Setup - value: 9.52 - items: [] - - name: Interest Expense - value: 0 - items: - - accountId: bd407350-340b-ec11-86bc-0022481a4971 - name: 1093 - export with misc type - value: 0 - items: [] - - accountId: 381217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 30300 - Interest Expense - value: 0 - items: [] - - name: Other Income & Expenses - value: 0 - items: - - accountId: 2e1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 20399 - Job Costs Applied - value: 0 - items: [] - - accountId: 4e1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 31400 - Office Supplies Expense - value: 0 - items: [] - - accountId: 501217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 31500 - Miscellaneous Expense - value: 0 - items: [] - - accountId: 521217b3-89d1-ea11-bbaa-000d3a2b9185 - name: '31600 - Depreciation, Equipment' - value: 0 - items: [] - - accountId: 541217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 31900 - Rounding - value: 0 - items: [] - - name: Benefits Expense - value: 0 - items: - - accountId: 57a95f12-9ecf-ec11-8e7e-00224800faf5 - name: 23 - test account - value: 0 - items: [] - - name: Fees Expense - value: 0 - items: - - accountId: 3f6818aa-a4cf-ec11-8e7e-00224800faf5 - name: 30 - test expenses 2 - value: 0 - items: [] - - accountId: 3a1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 30400 - Bank Charges and Fees - value: 0 - items: [] - - accountId: 3c1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 30500 - Processing Fees - value: 0 - items: [] - - name: Rent Expense - value: 0 - items: - - accountId: 341217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 30100 - Rent Expense - value: 0 - items: [] - - name: Advertising Expense - value: 0 - items: - - accountId: 361217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 30200 - Advertising Expense - value: 0 - items: [] - - name: Bad Debt Expense - value: -1.82 - items: - - accountId: 3e1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 30600 - Bad Debt Expense - value: -1.82 - items: [] - - name: Salaries Expense - value: 0 - items: - - accountId: 401217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 30700 - Salaries Expense - value: 0 - items: [] - - name: Payroll Expense - value: 0 - items: - - accountId: 421217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 30800 - Payroll Tax Expense - value: 0 - items: [] - - accountId: 441217b3-89d1-ea11-bbaa-000d3a2b9185 - name: '30900 - Workers Compensation ' - value: 0 - items: [] - - name: Insurance Expense - value: 1474.32 - items: - - accountId: 461217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 31000 - Health & Dental Insurance Expense - value: 1474.32 - items: [] - - accountId: 481217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 31100 - Life Insurance Expense - value: 0 - items: [] - - name: Repairs and Maintenance Expense - value: 0 - items: - - accountId: 4a1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 31200 - Repairs and Maintenance Expense - value: 0 - items: [] - - name: Utilities Expense - value: 0 - items: - - accountId: 4c1217b3-89d1-ea11-bbaa-000d3a2b9185 - name: 31300 - Utilities Expense - value: 0 - items: [] - - name: Travel Expense - value: 0 - items: - - accountId: 61d17174-61db-ec11-82f9-002248008de8 - name: 999992 - Payhawk General - value: 0 - items: [] - - accountId: 3a37ed38-a6cf-ec11-8e7e-00224800faf5 - name: 999998 - Payhawk General - value: 0 - items: [] - - accountId: 64ee049b-a1cf-ec11-8e7e-00224800faf5 - name: 999999 - Payhawk General - value: 0 - items: [] - netOperatingProfit: -1395.51 - otherExpenses: - name: Other Expenses - value: 0 - items: [] - otherIncome: - name: Other Income - value: 0 - items: [] - netOtherIncome: 0 - netProfit: -1395.51 - reportBasis: Accrual - currency: GBP - mostRecentAvailableMonth: '2023-03-01T00:00:00' - earliestAvailableMonth: '2021-04-01T00:00:00' - Exact (Netherlands): - value: - reports: - - fromDate: '2022-09-01T00:00:00Z' - toDate: '2022-09-30T00:00:00Z' - income: - name: Income - value: -286 - items: - - accountId: 2421e8a0-5355-4ec0-af11-021fe4f39fcd - name: 8000 - Omzet binnenland hoog tarief - value: -286 - items: [] - - accountId: 0b5b5d8b-1c0c-4767-88d8-c99206da6ace - name: 555777 - Sales - value: 0 - items: [] - costOfSales: - name: Cost of Sales - value: 0 - items: [] - grossProfit: -286 - expenses: - name: Expenses - value: 0 - items: [] - netOperatingProfit: -286 - otherExpenses: - name: Other Expenses - value: 5.25 - items: - - accountId: e405eff6-5c15-43b9-a5f0-ba592b26fbbe - name: 9410 - Inkoopkortingen - value: 5.25 - items: [] - otherIncome: - name: Other Income - value: 0 - items: [] - netOtherIncome: -5.25 - netProfit: -291.25 - - fromDate: '2022-08-01T00:00:00Z' - toDate: '2022-08-31T00:00:00Z' - income: - name: Income - value: 664.73 - items: - - accountId: 2421e8a0-5355-4ec0-af11-021fe4f39fcd - name: 8000 - Omzet binnenland hoog tarief - value: 643.33 - items: [] - - accountId: 62981769-c358-4ee5-aa8a-c9d5c559dd5c - name: 9275 - Activa realisatie verlies - value: -13.6 - items: [] - - accountId: f93008c5-f45b-4200-82a8-d0d5e1584ee7 - name: 1234567 - james_test2 - value: 35 - items: [] - costOfSales: - name: Cost of Sales - value: 0 - items: [] - grossProfit: 664.73 - expenses: - name: Expenses - value: 13.6 - items: - - accountId: 62981769-c358-4ee5-aa8a-c9d5c559dd5c - name: 9275 - Activa realisatie verlies - value: 13.6 - items: [] - netOperatingProfit: 651.13 - otherExpenses: - name: Other Expenses - value: 45 - items: - - accountId: e405eff6-5c15-43b9-a5f0-ba592b26fbbe - name: 9410 - Inkoopkortingen - value: 45 - items: [] - otherIncome: - name: Other Income - value: 0 - items: [] - netOtherIncome: -45 - netProfit: 606.13 - reportBasis: Unknown - currency: EUR - mostRecentAvailableMonth: '2022-09-01T00:00:00' - earliestAvailableMonth: '2020-11-01T00:00:00' - Exact (UK): - value: - reports: - - fromDate: '2022-10-01T00:00:00Z' - toDate: '2022-10-31T00:00:00Z' - income: - name: Income - value: -2 - items: - - accountId: 43acd218-6a95-445f-994c-660273e0ced9 - name: 41000 - Sales - value: -2 - items: [] - costOfSales: - name: Cost of Sales - value: 0 - items: [] - grossProfit: -2 - expenses: - name: Expenses - value: 0 - items: [] - netOperatingProfit: -2 - otherExpenses: - name: Other Expenses - value: 0 - items: [] - otherIncome: - name: Other Income - value: 0 - items: [] - netOtherIncome: 0 - netProfit: -2 - - fromDate: '2022-09-01T00:00:00Z' - toDate: '2022-09-30T00:00:00Z' - income: - name: Income - value: 208 - items: - - accountId: 43acd218-6a95-445f-994c-660273e0ced9 - name: 41000 - Sales - value: 208 - items: [] - costOfSales: - name: Cost of Sales - value: 0 - items: [] - grossProfit: 208 - expenses: - name: Expenses - value: 0 - items: [] - netOperatingProfit: 208 - otherExpenses: - name: Other Expenses - value: 0 - items: [] - otherIncome: - name: Other Income - value: 0 - items: [] - netOtherIncome: 0 - netProfit: 208 - reportBasis: Unknown - currency: GBP - mostRecentAvailableMonth: '2022-10-01T00:00:00' - earliestAvailableMonth: '2020-11-01T00:00:00' - FreshBooks: - value: - reports: - - fromDate: '2023-04-01T00:00:00' - toDate: '2023-04-30T00:00:00' - income: - name: Income - value: 0 - items: [] - costOfSales: - name: Cost of Sales - value: 0 - items: [] - grossProfit: 0 - expenses: - name: Expenses - value: 0 - items: [] - netOperatingProfit: 0 - otherExpenses: - name: Other Expenses - value: 0 - items: [] - otherIncome: - name: Other Income - value: 0 - items: [] - netOtherIncome: 0 - netProfit: 0 - - fromDate: '2023-03-01T00:00:00' - toDate: '2023-03-31T00:00:00' - income: - name: Income - value: 0 - items: [] - costOfSales: - name: Cost of Sales - value: 0 - items: [] - grossProfit: 0 - expenses: - name: Expenses - value: 24.05 - items: - - accountId: '3384197' - name: Advertising - value: 0.21 - items: [] - - accountId: '3380421' - name: Car & Truck Expenses - value: 11 - items: [] - - accountId: '3361426' - name: Meals & Entertainment - value: 12.82 - items: [] - - accountId: '3379249' - name: Supplies - value: 0.02 - items: [] - netOperatingProfit: -24.05 - otherExpenses: - name: Other Expenses - value: 0 - items: [] - otherIncome: - name: Other Income - value: 0 - items: [] - netOtherIncome: 0 - netProfit: -24.04 - reportBasis: Cash - currency: GBP - mostRecentAvailableMonth: '2023-04-01T00:00:00' - earliestAvailableMonth: '2021-05-01T00:00:00' - KashFlow: - value: - reports: - - fromDate: '2022-09-01T00:00:00' - toDate: '2022-09-30T00:00:00' - income: - name: Income - value: 0 - items: [] - costOfSales: - name: Cost Of Sales - value: 0 - items: [] - grossProfit: 0 - expenses: - name: Expenses - value: 0 - items: [] - netOperatingProfit: 0 - otherExpenses: - name: Other Expenses - value: 0 - items: [] - otherIncome: - name: Other Income - value: 0 - items: [] - netOtherIncome: 0 - netProfit: 0 - - fromDate: '2022-08-01T00:00:00' - toDate: '2022-08-31T00:00:00' - income: - name: Income - value: 0 - items: [] - costOfSales: - name: Cost Of Sales - value: 0 - items: [] - grossProfit: 0 - expenses: - name: Expenses - value: 0 - items: [] - netOperatingProfit: 0 - otherExpenses: - name: Other Expenses - value: 0 - items: [] - otherIncome: - name: Other Income - value: 0 - items: [] - netOtherIncome: 0 - netProfit: 0 - reportBasis: Unknown - currency: GBP - mostRecentAvailableMonth: '2022-09-01T00:00:00' - earliestAvailableMonth: '2020-10-01T00:00:00' - MYOB AccountRight and Essentials: - value: - reports: - - fromDate: '2022-11-01T00:00:00' - toDate: '2022-11-30T00:00:00' - income: - name: Income - value: 0 - items: [] - costOfSales: - name: Cost of Sales - value: 0 - items: [] - grossProfit: 0 - expenses: - name: Expenses - value: 0 - items: [] - netOperatingProfit: 0 - otherExpenses: - name: Other Expenses - value: 0 - items: [] - otherIncome: - name: Other Income - value: 0 - items: [] - netOtherIncome: 0 - netProfit: 0 - - fromDate: '2022-10-01T00:00:00' - toDate: '2022-10-31T00:00:00' - income: - name: Income - value: 0 - items: [] - costOfSales: - name: Cost of Sales - value: 0 - items: [] - grossProfit: 0 - expenses: - name: Expenses - value: 0 - items: [] - netOperatingProfit: 0 - otherExpenses: - name: Other Expenses - value: 0 - items: [] - otherIncome: - name: Other Income - value: 0 - items: [] - netOtherIncome: 0 - netProfit: 0 - reportBasis: Accrual - currency: GBP - mostRecentAvailableMonth: '2022-11-01T00:00:00' - earliestAvailableMonth: '2020-12-01T00:00:00' - Oracle NetSuite: - value: - reports: - - fromDate: '2023-03-01T00:00:00' - toDate: '2023-03-31T00:00:00' - income: - name: Income - value: 0 - items: [] - costOfSales: - name: Cost of Sales - value: 0 - items: [] - grossProfit: 0 - expenses: - name: Expenses - value: -123.45 - items: - - accountId: '58' - name: Expenses - value: -123.45 - items: [] - netOperatingProfit: 123.45 - otherExpenses: - name: Other Expenses - value: 0 - items: [] - otherIncome: - name: Other Income - value: 0 - items: [] - netOtherIncome: 0 - netProfit: 123.45 - - fromDate: '2023-01-01T00:00:00' - toDate: '2023-01-31T00:00:00' - income: - name: Income - value: 11 - items: - - accountId: '108' - name: Shipping and Handling - value: 11 - items: [] - costOfSales: - name: Cost of Sales - value: 0 - items: [] - grossProfit: 11 - expenses: - name: Expenses - value: 11 - items: - - accountId: '58' - name: Expenses - value: 11 - items: [] - netOperatingProfit: 0 - otherExpenses: - name: Other Expenses - value: 0 - items: [] - otherIncome: - name: Other Income - value: 0 - items: [] - netOtherIncome: 0 - netProfit: 0 - reportBasis: Accrual - currency: GBP - mostRecentAvailableMonth: '2023-03-01T00:00:00' - earliestAvailableMonth: '2022-11-01T00:00:00' - QuickBooks Desktop: - value: - reports: - - fromDate: '2023-04-01T00:00:00' - toDate: '2023-04-30T00:00:00' - income: - name: Income - value: 7673.5 - items: - - accountId: 170000-933270541 - name: 40100 � Construction Income - value: 7673.5 - items: - - accountId: 190000-933270541 - name: 40130 � Labor Income - value: 840 - items: [] - - accountId: 1A0000-933270542 - name: 40140 � Materials Income - value: 4103.5 - items: [] - - accountId: 1C0000-933270542 - name: 40150 � Subcontracted Labor Income - value: 2730 - items: [] - costOfSales: - name: Cost of Goods Sold - value: 1729.85 - items: - - accountId: 1E0000-933270542 - name: 50100 � Cost of Goods Sold - value: 329.85 - items: [] - - accountId: 300000-933270542 - name: 54000 � Job Expenses - value: 1400 - items: - - accountId: 340000-933270542 - name: 54500 � Subcontractors - value: 1400 - items: [] - grossProfit: 5943.65 - expenses: - name: Expense - value: 2417.29 - items: - - accountId: 1F0000-933270542 - name: 60100 � Automobile - value: 1066.56 - items: - - accountId: 200000-933270542 - name: 60110 � Fuel - value: 162 - items: [] - - accountId: 580000-1071498064 - name: 60120 � Insurance - value: 712.56 - items: [] - - accountId: 210000-933270542 - name: 60130 � Repairs and Maintenance - value: 192 - items: [] - - accountId: 230000-933270542 - name: 60600 � Bank Service Charges - value: 12.5 - items: [] - - accountId: 290000-933270542 - name: 62100 � Insurance - value: 675 - items: - - accountId: 2A0000-933270542 - name: 62110 � Disability Insurance - value: 50 - items: [] - - accountId: 2B0000-933270542 - name: 62120 � Liability Insurance - value: 350 - items: [] - - accountId: 2C0000-933270542 - name: 62130 � Work Comp - value: 275 - items: [] - - accountId: 2D0000-933270542 - name: 62400 � Interest Expense - value: 438.3 - items: - - accountId: 2F0000-933270542 - name: 62420 � Loan Interest - value: 438.3 - items: [] - - accountId: 480000-933270542 - name: 65100 � Utilities - value: 224.93 - items: - - accountId: 490000-933270542 - name: 65110 � Gas and Electric - value: 120.93 - items: [] - - accountId: 4A0000-933270542 - name: 65120 � Telephone - value: 80 - items: [] - - accountId: 4B0000-933270542 - name: 65130 � Water - value: 24 - items: [] - netOperatingProfit: 3526.36 - otherExpenses: - name: Other Expense - value: 0 - items: [] - otherIncome: - name: Other Income - value: 0 - items: [] - netOtherIncome: 0 - netProfit: 3526.36 - - fromDate: '2023-03-01T00:00:00' - toDate: '2023-03-31T00:00:00' - income: - name: Income - value: 16500 - items: - - accountId: 170000-933270541 - name: 40100 � Construction Income - value: 16500 - items: - - accountId: 1C0000-933270542 - name: 40150 � Subcontracted Labor Income - value: 16500 - items: [] - costOfSales: - name: Cost of Goods Sold - value: 7500 - items: - - accountId: 300000-933270542 - name: 54000 � Job Expenses - value: 7500 - items: - - accountId: 340000-933270542 - name: 54500 � Subcontractors - value: 7500 - items: [] - grossProfit: 9000 - expenses: - name: Expense - value: 3159.99 - items: - - accountId: 1F0000-933270542 - name: 60100 � Automobile - value: 359 - items: - - accountId: 200000-933270542 - name: 60110 � Fuel - value: 127 - items: [] - - accountId: 210000-933270542 - name: 60130 � Repairs and Maintenance - value: 232 - items: [] - - accountId: 230000-933270542 - name: 60600 � Bank Service Charges - value: 12.5 - items: [] - - accountId: 290000-933270542 - name: 62100 � Insurance - value: 675 - items: - - accountId: 2A0000-933270542 - name: 62110 � Disability Insurance - value: 50 - items: [] - - accountId: 2B0000-933270542 - name: 62120 � Liability Insurance - value: 350 - items: [] - - accountId: 2C0000-933270542 - name: 62130 � Work Comp - value: 275 - items: [] - - accountId: 2D0000-933270542 - name: 62400 � Interest Expense - value: 456.29 - items: - - accountId: 2F0000-933270542 - name: 62420 � Loan Interest - value: 456.29 - items: [] - - accountId: 3D0000-933270542 - name: 64200 � Repairs - value: 1164 - items: - - accountId: 3F0000-933270542 - name: 64220 � Computer Repairs - value: 714 - items: [] - - accountId: 400000-933270542 - name: 64230 � Equipment Repairs - value: 450 - items: [] - - accountId: 480000-933270542 - name: 65100 � Utilities - value: 493.2 - items: - - accountId: 490000-933270542 - name: 65110 � Gas and Electric - value: 389.2 - items: [] - - accountId: 4A0000-933270542 - name: 65120 � Telephone - value: 80 - items: [] - - accountId: 4B0000-933270542 - name: 65130 � Water - value: 24 - items: [] - netOperatingProfit: 5840.01 - otherExpenses: - name: Other Expense - value: 0 - items: [] - otherIncome: - name: Other Income - value: 93.42 - items: - - accountId: 4C0000-933270542 - name: 70200 � Interest Income - value: 93.42 - items: [] - netOtherIncome: 93.42 - netProfit: 5933.43 - reportBasis: Accrual - currency: GBP - mostRecentAvailableMonth: '2023-04-01T00:00:00' - earliestAvailableMonth: '2021-05-01T00:00:00' - QuickBooks Online Sandbox: - value: - reports: - - fromDate: '2023-04-01T00:00:00' - toDate: '2023-04-30T00:00:00' - income: - name: Income - value: 35.7 - items: - - accountId: '68' - name: Billable Expenses Income - value: -15 - items: [] - - accountId: '44' - name: Sales - value: 130 - items: [] - - accountId: '66' - name: Sales of Product Income - value: 42.5 - items: [] - - accountId: '1' - name: Services - value: -131.8 - items: [] - - accountId: '149' - name: Shipping Income - value: 10 - items: [] - costOfSales: - name: Cost of Sales - value: -8.16 - items: - - accountId: '67' - name: Cost of sales - value: 33.51 - items: [] - - accountId: '69' - name: Cost of Sales - billable expenses - value: -41.67 - items: [] - grossProfit: 43.86 - expenses: - name: Expenses - value: -987 - items: - - accountId: '148' - name: Billable Test - value: -250 - items: [] - - accountId: '16' - name: Computer and Internet Expenses - value: -897 - items: [] - - accountId: '18' - name: Depreciation Expense - value: 100 - items: [] - - accountId: '19' - name: Dues and Subscriptions - value: -40 - items: [] - - accountId: '64' - name: Purchases - value: 100 - items: [] - netOperatingProfit: 1030.86 - otherExpenses: - name: Other Expenses - value: 0 - items: [] - otherIncome: - name: Other Income - value: 0 - items: [] - netOtherIncome: 0 - netProfit: 1030.86 - - fromDate: '2023-03-01T00:00:00' - toDate: '2023-03-31T00:00:00' - income: - name: Income - value: 1664.93 - items: - - accountId: '14' - name: Commission Income - value: 64 - items: [] - - accountId: '44' - name: Sales - value: 952.29 - items: [] - - accountId: '43' - name: Sales Discounts - value: 9.05 - items: [] - - accountId: '66' - name: Sales of Product Income - value: 223.52 - items: [] - - accountId: '1' - name: Services - value: 392.32 - items: [] - - accountId: '149' - name: Shipping Income - value: 23.75 - items: [] - costOfSales: - name: Cost of Sales - value: 2568.09 - items: - - accountId: '67' - name: Cost of sales - value: 27.09 - items: [] - - accountId: '69' - name: Cost of Sales - billable expenses - value: 41 - items: [] - - accountId: '10' - name: Entertainment Booking Fees paid on behalf of clients - value: 2500 - items: [] - grossProfit: -903.16 - expenses: - name: Expenses - value: 397.62 - items: - - accountId: '148' - name: Billable Test - value: -35.75 - items: [] - - accountId: '12' - name: Business Licenses and Permits - value: -8 - items: [] - - accountId: '16' - name: Computer and Internet Expenses - value: 42.46 - items: [] - - accountId: '20' - name: Equipment rental - value: -22.76 - items: [] - - accountId: '116' - name: HM Revenue & Customs (VAT) Expense - value: -25.2 - items: [] - - accountId: '24' - name: Insurance Expense - value: 5.32 - items: [] - - accountId: '23' - name: Insurance Expense-Health Insurance - value: -34 - items: [] - - accountId: '31' - name: Marketing Expense - value: -11.56 - items: [] - - accountId: '35' - name: Office Supplies - value: -12.89 - items: [] - - accountId: '64' - name: Purchases - value: 500 - items: [] - netOperatingProfit: -1300.78 - otherExpenses: - name: Other Expenses - value: 11.92 - items: - - accountId: '52' - name: Exchange Gain or Loss - value: 11.92 - items: [] - otherIncome: - name: Other Income - value: 29.41 - items: - - accountId: '21' - name: Finance Charge Income - value: -13.44 - items: [] - - accountId: '27' - name: Insurance Proceeds Received - value: 7.85 - items: [] - - accountId: '29' - name: Interest income - value: 15 - items: [] - - accountId: '39' - name: Proceeds from Sale of Assets - value: 20 - items: [] - netOtherIncome: 17.49 - netProfit: -1283.29 - reportBasis: Accrual - currency: GBP - mostRecentAvailableMonth: '2023-04-01T00:00:00' - earliestAvailableMonth: '2021-05-01T00:00:00' - QuickBooks Online: - value: - reports: - - fromDate: '2023-01-01T00:00:00' - toDate: '2023-01-31T00:00:00' - income: - name: Income - value: 0 - items: [] - costOfSales: - name: Cost of Sales - value: 0 - items: [] - grossProfit: 0 - expenses: - name: Expenses - value: 4300 - items: - - accountId: '68' - name: 303 HM Revenue & Customs (VAT) Expense - value: 250 - items: [] - - accountId: '22' - name: 408 Travelling expenses - value: 4050 - items: [] - netOperatingProfit: -4300 - otherExpenses: - name: Other Expenses - value: 0 - items: [] - otherIncome: - name: Other Income - value: 0 - items: [] - netOtherIncome: 0 - netProfit: -4300 - - fromDate: '2022-12-01T00:00:00' - toDate: '2022-12-31T00:00:00' - income: - name: Income - value: 0 - items: [] - costOfSales: - name: Cost of Sales - value: 0 - items: [] - grossProfit: 0 - expenses: - name: Expenses - value: 10 - items: - - accountId: '16' - name: 292 Advertising - value: 10 - items: [] - netOperatingProfit: -10 - otherExpenses: - name: Other Expenses - value: 0 - items: [] - otherIncome: - name: Other Income - value: 0 - items: [] - netOtherIncome: 0 - netProfit: -10 - reportBasis: Accrual - currency: GBP - mostRecentAvailableMonth: '2023-01-01T00:00:00' - earliestAvailableMonth: '2021-02-01T00:00:00' - Sage 200cloud: - value: - reports: - - fromDate: '2020-12-01T00:00:00Z' - toDate: '2020-12-31T00:00:00Z' - income: - name: Income - value: 0 - items: - - name: Total Sales - value: 0 - items: - - accountId: '101' - name: Product Sales - value: 0 - items: [] - - accountId: '102' - name: Export Sales - value: 0 - items: [] - - accountId: '103' - name: Sales of Assets - value: 0 - items: [] - - accountId: '104' - name: Credit Charges (Late Payments) - value: 0 - items: [] - - accountId: '105' - name: Other Sales - value: 0 - items: [] - costOfSales: - name: Cost of Sales - value: 0 - items: - - name: Total Purchases - value: 0 - items: - - accountId: '201' - name: Purchases - value: 0 - items: [] - - accountId: '202' - name: Purchase Charges - value: 0 - items: [] - - accountId: '203' - name: Stock - value: 0 - items: [] - - name: Total Direct Expenses - value: 0 - items: - - accountId: '301' - name: Labour - value: 0 - items: [] - - accountId: '302' - name: Commissions - value: 0 - items: [] - - accountId: '303' - name: Sales Promotion - value: 0 - items: [] - - accountId: '304' - name: Miscellaneous Expenses - value: 0 - items: [] - grossProfit: 0 - expenses: - name: Expenses - value: 0 - items: - - name: Total Overheads - value: 0 - items: - - accountId: '401' - name: Gross Wages - value: 0 - items: [] - - accountId: '402' - name: Rent and Rates - value: 0 - items: [] - - accountId: '403' - name: 'Heat, Light and Power' - value: 0 - items: [] - - accountId: '404' - name: Motor Expenses - value: 0 - items: [] - - accountId: '405' - name: Travelling and Entertainment - value: 0 - items: [] - - accountId: '406' - name: Printing and Stationery - value: 0 - items: [] - - accountId: '407' - name: Professional Fees - value: 0 - items: [] - - accountId: '408' - name: Equipment Hire and Rental - value: 0 - items: [] - - accountId: '409' - name: Maintenance - value: 0 - items: [] - - accountId: '410' - name: Bank Charges and Interest - value: 0 - items: [] - - accountId: '411' - name: Depreciation - value: 0 - items: [] - - accountId: '412' - name: Bad Debts - value: 0 - items: [] - - accountId: '413' - name: General Expenses - value: 0 - items: [] - - accountId: '414' - name: Suspense & Mispostings - value: 0 - items: [] - netOperatingProfit: 0 - otherExpenses: - name: Other Expenses - value: 0 - items: - - accountId: '10,1001' - name: Taxation - value: 0 - items: [] - otherIncome: - name: Other Income - value: 0 - items: [] - netOtherIncome: 0 - netProfit: 0 - - fromDate: '2020-11-01T00:00:00Z' - toDate: '2020-11-30T00:00:00Z' - income: - name: Income - value: 0 - items: - - name: Total Sales - value: 0 - items: - - accountId: '101' - name: Product Sales - value: 0 - items: [] - - accountId: '102' - name: Export Sales - value: 0 - items: [] - - accountId: '103' - name: Sales of Assets - value: 0 - items: [] - - accountId: '104' - name: Credit Charges (Late Payments) - value: 0 - items: [] - - accountId: '105' - name: Other Sales - value: 0 - items: [] - costOfSales: - name: Cost of Sales - value: 0 - items: - - name: Total Purchases - value: 0 - items: - - accountId: '201' - name: Purchases - value: 0 - items: [] - - accountId: '202' - name: Purchase Charges - value: 0 - items: [] - - accountId: '203' - name: Stock - value: 0 - items: [] - - name: Total Direct Expenses - value: 0 - items: - - accountId: '301' - name: Labour - value: 0 - items: [] - - accountId: '302' - name: Commissions - value: 0 - items: [] - - accountId: '303' - name: Sales Promotion - value: 0 - items: [] - - accountId: '304' - name: Miscellaneous Expenses - value: 0 - items: [] - grossProfit: 0 - expenses: - name: Expenses - value: 0 - items: - - name: Total Overheads - value: 0 - items: - - accountId: '401' - name: Gross Wages - value: 0 - items: [] - - accountId: '402' - name: Rent and Rates - value: 0 - items: [] - - accountId: '403' - name: 'Heat, Light and Power' - value: 0 - items: [] - - accountId: '404' - name: Motor Expenses - value: 0 - items: [] - - accountId: '405' - name: Travelling and Entertainment - value: 0 - items: [] - - accountId: '406' - name: Printing and Stationery - value: 0 - items: [] - - accountId: '407' - name: Professional Fees - value: 0 - items: [] - - accountId: '408' - name: Equipment Hire and Rental - value: 0 - items: [] - - accountId: '409' - name: Maintenance - value: 0 - items: [] - - accountId: '410' - name: Bank Charges and Interest - value: 0 - items: [] - - accountId: '411' - name: Depreciation - value: 0 - items: [] - - accountId: '412' - name: Bad Debts - value: 0 - items: [] - - accountId: '413' - name: General Expenses - value: 0 - items: [] - - accountId: '414' - name: Suspense & Mispostings - value: 0 - items: [] - netOperatingProfit: 0 - otherExpenses: - name: Other Expenses - value: 0 - items: - - accountId: '10,1001' - name: Taxation - value: 0 - items: [] - otherIncome: - name: Other Income - value: 0 - items: [] - netOtherIncome: 0 - netProfit: 0 - reportBasis: Accrual - currency: GBP - mostRecentAvailableMonth: '2020-12-01T00:00:00' - earliestAvailableMonth: '2015-01-01T00:00:00' - Sage 50 (UK): - value: - reports: - - fromDate: '2023-03-01T00:00:00' - toDate: '2023-03-31T00:00:00' - income: - name: Income - value: 0 - items: [] - costOfSales: - name: Cost of Sales - value: 0 - items: [] - grossProfit: 0 - expenses: - name: Expenses - value: 0 - items: [] - netOperatingProfit: 0 - otherExpenses: - name: Other Expenses - value: 0 - items: [] - otherIncome: - name: Other Income - value: 0 - items: [] - netOtherIncome: 0 - netProfit: 0 - - fromDate: '2023-02-01T00:00:00' - toDate: '2023-02-28T00:00:00' - income: - name: Income - value: 0 - items: [] - costOfSales: - name: Cost of Sales - value: 0 - items: [] - grossProfit: 0 - expenses: - name: Expenses - value: 0 - items: [] - netOperatingProfit: 0 - otherExpenses: - name: Other Expenses - value: 0 - items: [] - otherIncome: - name: Other Income - value: 0 - items: [] - netOtherIncome: 0 - netProfit: 0 - reportBasis: Unknown - currency: GBP - mostRecentAvailableMonth: '2023-03-01T00:00:00' - earliestAvailableMonth: '2021-04-01T00:00:00' - Sage Business Cloud Accounting: - value: - reports: - - fromDate: '2022-10-01T00:00:00' - toDate: '2022-10-31T00:00:00' - income: - name: Income - value: -7749 - items: - - accountId: 9a994b92267a11e797950a57719b2edb - name: 4000 - Sales Type A - value: -7740 - items: [] - - accountId: 9a994e06267a11e797950a57719b2edb - name: 4009 - Sales Discounts - value: -9 - items: [] - costOfSales: - name: Cost of Sales - value: 11602000 - items: - - accountId: 9a995955267a11e797950a57719b2edb - name: 5000 - Cost of sales - goods - value: 11602000 - items: [] - grossProfit: -11609749 - expenses: - name: Expenses - value: -1.83 - items: - - accountId: 9a99a91c267a11e797950a57719b2edb - name: 8211 - Exchange rate gain/(loss) - value: -1.83 - items: [] - netOperatingProfit: -11609747.17 - otherExpenses: - name: Other Expenses - value: 0 - items: [] - otherIncome: - name: Other Income - value: 0 - items: [] - netOtherIncome: 0 - netProfit: -11609747.17 - - fromDate: '2022-09-01T00:00:00' - toDate: '2022-09-30T00:00:00' - income: - name: Income - value: 501 - items: - - accountId: 9a994b92267a11e797950a57719b2edb - name: 4000 - Sales Type A - value: 511 - items: [] - - accountId: 9a994e06267a11e797950a57719b2edb - name: 4009 - Sales Discounts - value: -10 - items: [] - costOfSales: - name: Cost of Sales - value: 13220073.7 - items: - - accountId: 9a995955267a11e797950a57719b2edb - name: 5000 - Cost of sales - goods - value: 13220073.7 - items: [] - grossProfit: -13219572.7 - expenses: - name: Expenses - value: 0 - items: [] - netOperatingProfit: -13219572.7 - otherExpenses: - name: Other Expenses - value: 0 - items: [] - otherIncome: - name: Other Income - value: -148.34 - items: - - accountId: 9a995491267a11e797950a57719b2edb - name: 4900 - Other income - value: -148.34 - items: [] - netOtherIncome: -148.34 - netProfit: -13219721.04 - reportBasis: Unknown - currency: GBP - mostRecentAvailableMonth: '2022-10-01T00:00:00' - earliestAvailableMonth: '2020-11-01T00:00:00' - Wave: - value: - reports: - - fromDate: '2022-11-01T00:00:00' - toDate: '2022-11-30T00:00:00' - income: - name: Income - value: 7.01 - items: - - name: Unrealized Gain on Foreign Exchange - value: 7.01 - items: [] - costOfSales: - name: Cost of Goods Sold - value: 0 - items: [] - grossProfit: 7.01 - expenses: - name: Operating Expenses - value: 555 - items: - - name: Office Supplies - value: 555 - items: [] - netOperatingProfit: -547.99 - otherExpenses: - name: Other Expenses - value: 0 - items: [] - otherIncome: - name: Other Income - value: 0 - items: [] - netOtherIncome: 0 - netProfit: -547.99 - - fromDate: '2022-10-01T00:00:00' - toDate: '2022-10-31T00:00:00' - income: - name: Income - value: 8.36 - items: - - name: Unrealized Gain on Foreign Exchange - value: 8.36 - items: [] - costOfSales: - name: Cost of Goods Sold - value: 0 - items: [] - grossProfit: 8.36 - expenses: - name: Operating Expenses - value: 0 - items: [] - netOperatingProfit: 8.36 - otherExpenses: - name: Other Expenses - value: 0 - items: [] - otherIncome: - name: Other Income - value: 0 - items: [] - netOtherIncome: 0 - netProfit: 8.36 - reportBasis: Accrual - currency: GBP - mostRecentAvailableMonth: '2022-11-01T00:00:00' - earliestAvailableMonth: '2020-12-01T00:00:00' - Xero: - value: - reports: - - fromDate: '2023-03-01T00:00:00' - toDate: '2023-03-31T00:00:00' - income: - name: Income - value: 0 - items: [] - costOfSales: - name: Cost of Sales - value: 0 - items: [] - grossProfit: 0 - expenses: - name: Expenses - value: 0 - items: [] - netOperatingProfit: 0 - otherExpenses: - name: Other Expenses - value: 0 - items: [] - otherIncome: - name: Other Income - value: 0 - items: [] - netOtherIncome: 0 - netProfit: 0 - - fromDate: '2023-02-01T00:00:00' - toDate: '2023-02-28T00:00:00' - income: - name: Income - value: 14496.51 - items: - - accountId: c563b607-fb0e-4d06-9ddb-76fdeef20ae3 - name: Sales - value: 14496.51 - items: [] - costOfSales: - name: Cost of Sales - value: 700 - items: - - accountId: 127f3b99-8dc2-4b7e-854c-91ef9bd2757b - name: Purchases - value: 700 - items: [] - grossProfit: 13796.51 - expenses: - name: Expenses - value: 2026.92 - items: - - accountId: f96c9458-d724-47bf-8f74-a9d5726465ce - name: General Expenses - value: 215.87 - items: [] - - accountId: d50842c3-af67-4233-b8c9-df3180f5b7bd - name: 'Light, Power, Heating' - value: 103.43 - items: [] - - accountId: 0be1631e-cc7e-4c27-951f-308c3307c0fe - name: Motor Vehicle Expenses - value: 342.79 - items: [] - - accountId: a49cc958-968e-4b54-96d6-8853c036009e - name: 'Postage, Freight & Courier' - value: 94.19 - items: [] - - accountId: cba6527d-f102-4538-b421-e483233e9d5a - name: Printing & Stationery - value: 24.58 - items: [] - - accountId: dae8e236-24bb-4a7a-9787-c5fd89385e03 - name: Rent - value: 984.38 - items: [] - - accountId: a40f43e2-c7b0-4187-919a-04ccdc14a630 - name: Subscriptions - value: 14.9 - items: [] - - accountId: f3c73c3d-9887-4377-b18b-0374ab62e4aa - name: Telephone & Internet - value: 45.11 - items: [] - - accountId: c7b73345-7f25-428a-bb97-7b20a1470a53 - name: Travel - National - value: 201.67 - items: [] - netOperatingProfit: 11769.59 - otherExpenses: - name: Other Expenses - value: 0 - items: [] - otherIncome: - name: Other Income - value: 0 - items: [] - netOtherIncome: 0 - netProfit: 11769.59 - reportBasis: Accrual - currency: GBP - mostRecentAvailableMonth: '2023-03-01T00:00:00' - earliestAvailableMonth: '2021-04-01T00:00:00' - Zoho Books: - value: - reports: - - fromDate: '2022-10-01T00:00:00' - toDate: '2022-10-31T00:00:00' - income: - name: Operating Income - value: 0 - items: - - accountId: '104957000000000394' - name: Discount - value: 0 - items: [] - - accountId: '104957000000000379' - name: General Income - value: 0 - items: [] - - accountId: '104957000000099070' - name: General Income Child Test - value: 0 - items: [] - - accountId: '104957000000000382' - name: Interest Income - value: 0 - items: [] - - accountId: '104957000000000385' - name: Late Fee Income - value: 0 - items: [] - - accountId: '104957000000000503' - name: Other Charges - value: 0 - items: [] - - accountId: '104957000000000376' - name: Sales - value: 0 - items: [] - - accountId: '104957000000000506' - name: Shipping Charge - value: 0 - items: [] - costOfSales: - name: Cost of Goods Sold - value: 0 - items: - - accountId: '104957000000000509' - name: Cost of Goods Sold - value: 0 - items: [] - grossProfit: 0 - expenses: - name: Operating Expense - value: 0 - items: - - accountId: '104957000000000391' - name: Advertising And Marketing - value: 0 - items: [] - - accountId: '104957000000000406' - name: Air Travel Expense - value: 0 - items: [] - - accountId: '104957000000000412' - name: Automobile Expense - value: 0 - items: [] - - accountId: '104957000000000427' - name: Bad Debt - value: 0 - items: [] - - accountId: '104957000000000397' - name: Bank Fees and Charges - value: 0 - items: [] - - accountId: '104957000000000442' - name: Consultant Expense - value: 0 - items: [] - - accountId: '104957000000000400' - name: Credit Card Charges - value: 0 - items: [] - - accountId: '104957000000000439' - name: Depreciation Expense - value: 0 - items: [] - - accountId: '104957000000243027' - name: Fuel/Mileage Expenses - value: 0 - items: [] - - accountId: '104957000000000415' - name: IT and Internet Expenses - value: 0 - items: [] - - accountId: '104957000000000421' - name: Janitorial Expense - value: 0 - items: [] - - accountId: '104957000000000454' - name: Lodging - value: 0 - items: [] - - accountId: '104957000000000436' - name: Meals and Entertainment - value: 0 - items: [] - - accountId: '104957000000000388' - name: Office Supplies - value: 0 - items: [] - - accountId: '104957000000000448' - name: Other Expenses - value: 0 - items: [] - - accountId: '104957000000000424' - name: Postage - value: 0 - items: [] - - accountId: '104957000000000430' - name: Printing and Stationery - value: 0 - items: [] - - accountId: '104957000000639102' - name: Purchase Discounts - value: 0 - items: [] - - accountId: '104957000000000418' - name: Rent Expense - value: 0 - items: [] - - accountId: '104957000000000445' - name: Repairs and Maintenance - value: 0 - items: [] - - accountId: '104957000000000433' - name: Salaries and Employee Wages - value: 0 - items: [] - - accountId: '104957000000000409' - name: Telephone Expense - value: 0 - items: [] - - accountId: '104957000000000463' - name: Uncategorized - value: 0 - items: [] - netOperatingProfit: 0 - otherExpenses: - name: Non Operating Expense - value: 0 - items: - - accountId: '104957000000000403' - name: Exchange Gain or Loss - value: 0 - items: [] - - accountId: '104957000000099003' - name: Insurance Expenses (Test Other Expense) - value: 0 - items: [] - otherIncome: - name: Non Operating Income - value: 0 - items: - - accountId: '104957000000054032' - name: Flat Rate Profit - value: 0 - items: [] - - accountId: '104957000000099009' - name: Interest Earned (Test Other Income) - value: 0 - items: [] - netOtherIncome: 0 - netProfit: 0 - - fromDate: '2022-09-01T00:00:00' - toDate: '2022-09-30T00:00:00' - income: - name: Operating Income - value: 69 - items: - - accountId: '104957000000000394' - name: Discount - value: 0 - items: [] - - accountId: '104957000000000379' - name: General Income - value: 0 - items: [] - - accountId: '104957000000099070' - name: General Income Child Test - value: 0 - items: [] - - accountId: '104957000000000382' - name: Interest Income - value: 0 - items: [] - - accountId: '104957000000000385' - name: Late Fee Income - value: 0 - items: [] - - accountId: '104957000000000503' - name: Other Charges - value: 0 - items: [] - - accountId: '104957000000000376' - name: Sales - value: 69 - items: [] - - accountId: '104957000000000506' - name: Shipping Charge - value: 0 - items: [] - costOfSales: - name: Cost of Goods Sold - value: 35 - items: - - accountId: '104957000000000509' - name: Cost of Goods Sold - value: 35 - items: [] - grossProfit: 34 - expenses: - name: Operating Expense - value: 69 - items: - - accountId: '104957000000000391' - name: Advertising And Marketing - value: 0 - items: [] - - accountId: '104957000000000406' - name: Air Travel Expense - value: 0 - items: [] - - accountId: '104957000000000412' - name: Automobile Expense - value: 0 - items: [] - - accountId: '104957000000000427' - name: Bad Debt - value: 69 - items: [] - - accountId: '104957000000000397' - name: Bank Fees and Charges - value: 0 - items: [] - - accountId: '104957000000000442' - name: Consultant Expense - value: 0 - items: [] - - accountId: '104957000000000400' - name: Credit Card Charges - value: 0 - items: [] - - accountId: '104957000000000439' - name: Depreciation Expense - value: 0 - items: [] - - accountId: '104957000000243027' - name: Fuel/Mileage Expenses - value: 0 - items: [] - - accountId: '104957000000000415' - name: IT and Internet Expenses - value: 0 - items: [] - - accountId: '104957000000000421' - name: Janitorial Expense - value: 0 - items: [] - - accountId: '104957000000000454' - name: Lodging - value: 0 - items: [] - - accountId: '104957000000000436' - name: Meals and Entertainment - value: 0 - items: [] - - accountId: '104957000000000388' - name: Office Supplies - value: 0 - items: [] - - accountId: '104957000000000448' - name: Other Expenses - value: 0 - items: [] - - accountId: '104957000000000424' - name: Postage - value: 0 - items: [] - - accountId: '104957000000000430' - name: Printing and Stationery - value: 0 - items: [] - - accountId: '104957000000639102' - name: Purchase Discounts - value: 0 - items: [] - - accountId: '104957000000000418' - name: Rent Expense - value: 0 - items: [] - - accountId: '104957000000000445' - name: Repairs and Maintenance - value: 0 - items: [] - - accountId: '104957000000000433' - name: Salaries and Employee Wages - value: 0 - items: [] - - accountId: '104957000000000409' - name: Telephone Expense - value: 0 - items: [] - - accountId: '104957000000000463' - name: Uncategorized - value: 0 - items: [] - netOperatingProfit: -35 - otherExpenses: - name: Non Operating Expense - value: 0 - items: - - accountId: '104957000000000403' - name: Exchange Gain or Loss - value: 0 - items: [] - - accountId: '104957000000099003' - name: Insurance Expenses (Test Other Expense) - value: 0 - items: [] - otherIncome: - name: Non Operating Income - value: 0 - items: - - accountId: '104957000000054032' - name: Flat Rate Profit - value: 0 - items: [] - - accountId: '104957000000099009' - name: Interest Earned (Test Other Income) - value: 0 - items: [] - netOtherIncome: 0 - netProfit: -35 - reportBasis: Accrual - currency: GBP - mostRecentAvailableMonth: '2022-10-01T00:00:00' - earliestAvailableMonth: '2020-11-01T00:00:00' - '401': - $ref: '#/components/responses/Unauthorized' - '402': - $ref: '#/components/responses/Payment-Required' - '403': - $ref: '#/components/responses/Forbidden' - '404': - $ref: '#/components/responses/Not-Found' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - '/companies/{companyId}/data/financials/cashFlowStatement': - parameters: - - $ref: '#/components/parameters/companyId' - get: - tags: - - Financial statements - summary: Get cash flow statement - description: Gets the latest cash flow statement for a company. - operationId: get-accounting-cash-flow-statement - x-speakeasy-group: financial-statements.cash-flow - parameters: - - $ref: '#/components/parameters/accountingPeriodLength' - - $ref: '#/components/parameters/accountingPeriodsToCompare' - - $ref: '#/components/parameters/accountingStartMonth' - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/AccountingCashFlowStatement' - examples: - Clear Books: - value: - reports: - - fromDate: '2021-02-01T00:00:00' - toDate: '2021-02-28T00:00:00' - cashReceipts: - accountId: cashReceipts - name: Cash Receipts - value: 18377.72 - items: - - accountId: 1b6266d1-1e44-46c5-8eb5-a8f98e03124e - name: Accounts Receivable - value: 11417.63 - items: [] - - accountId: 72df89d2-512b-4455-af51-a6b563733842 - name: Income - value: 6960.09 - items: [] - - accountId: 68794a8f-b22d-4520-b97b-025b7cb10f94 - name: Other Income - value: 0 - items: [] - cashPayments: - accountId: cashPayments - name: Cash Payments - value: 12377.81 - items: - - accountId: 53bf27a7-7497-4c61-9887-dfaad5c6d80a - name: Accounts Payable - value: 7479.21 - items: [] - - accountId: 7403e960-5b72-42ff-abf4-c870ad8910bd - name: Cost of Sales - value: 700 - items: [] - - accountId: e6f7e297-59d6-4bd5-9353-478ee9b39685 - name: Expenses - value: 4198.6 - items: [] - - accountId: b5e801e8-8dbc-4390-ac99-3b0fff54a89f - name: Other Expenses - value: 0 - items: [] - - fromDate: '2021-01-01T00:00:00' - toDate: '2021-01-31T00:00:00' - cashReceipts: - accountId: cashReceipts - name: Cash Receipts - value: 14508.56 - items: - - accountId: 1b6266d1-1e44-46c5-8eb5-a8f98e03124e - name: Accounts Receivable - value: 3055.53 - items: [] - - accountId: 72df89d2-512b-4455-af51-a6b563733842 - name: Income - value: 11453.03 - items: [] - - accountId: 68794a8f-b22d-4520-b97b-025b7cb10f94 - name: Other Income - value: 0 - items: [] - cashPayments: - accountId: cashPayments - name: Cash Payments - value: 18902.85 - items: - - accountId: 53bf27a7-7497-4c61-9887-dfaad5c6d80a - name: Accounts Payable - value: 9673.66 - items: [] - - accountId: 7403e960-5b72-42ff-abf4-c870ad8910bd - name: Cost of Sales - value: 1250 - items: [] - - accountId: e6f7e297-59d6-4bd5-9353-478ee9b39685 - name: Expenses - value: 7979.19 - items: [] - - accountId: b5e801e8-8dbc-4390-ac99-3b0fff54a89f - name: Other Expenses - value: 0 - items: [] - reportBasis: Cash - reportInput: Direct - currency: GBP - mostRecentAvailableMonth: '2021-02-28T00:00:00' - earliestAvailableMonth: '2019-03-01T00:00:00' - FreshBooks: - value: - reports: - - fromDate: '2023-04-01T00:00:00' - toDate: '2023-04-30T00:00:00' - cashReceipts: - accountId: CashReceipts - name: CashReceipts - value: 0 - items: [] - cashPayments: - accountId: CashPayments - name: CashPayments - value: 0 - items: [] - - fromDate: '2023-03-01T00:00:00' - toDate: '2023-03-31T00:00:00' - cashReceipts: - accountId: CashReceipts - name: CashReceipts - value: 0 - items: [] - cashPayments: - accountId: CashPayments - name: CashPayments - value: 0 - items: [] - reportBasis: Cash - reportInput: Indirect - currency: GBP - mostRecentAvailableMonth: '2023-04-30T00:00:00' - earliestAvailableMonth: '2021-05-01T00:00:00' - QuickBooks Online Sandbox: - value: - reports: - - fromDate: '2023-04-01T00:00:00' - toDate: '2023-04-30T00:00:00' - cashReceipts: - accountId: cashReceipts - name: Cash Receipts - value: 754.59 - items: - - accountId: income - name: Income - value: 729.59 - items: [] - - accountId: accountsReceivable - name: Accounts Receivable - value: 25 - items: [] - cashPayments: - accountId: cashPayments - name: Cash Payments - value: -987.94 - items: - - accountId: costOfSales - name: Cost of Sales - value: 24.06 - items: [] - - accountId: expenses - name: Expenses - value: -1012 - items: [] - - fromDate: '2023-03-01T00:00:00' - toDate: '2023-03-31T00:00:00' - cashReceipts: - accountId: cashReceipts - name: Cash Receipts - value: 1776.25 - items: - - accountId: income - name: Income - value: 1652.12 - items: [] - - accountId: accountsReceivable - name: Accounts Receivable - value: 124.13 - items: [] - cashPayments: - accountId: cashPayments - name: Cash Payments - value: 2494.43 - items: - - accountId: costOfSales - name: Cost of Sales - value: 2562 - items: [] - - accountId: accountsPayable - name: Accounts Payable - value: 38.02 - items: [] - - accountId: expenses - name: Expenses - value: -105.59 - items: [] - reportBasis: Cash - reportInput: Direct - currency: GBP - mostRecentAvailableMonth: '2023-04-30T00:00:00' - earliestAvailableMonth: '2021-05-01T00:00:00' - QuickBooks Online: - value: - reports: - - fromDate: '2023-01-01T00:00:00' - toDate: '2023-01-31T00:00:00' - cashReceipts: - accountId: cashReceipts - name: Cash Receipts - value: 0 - items: [] - cashPayments: - accountId: cashPayments - name: Cash Payments - value: 4300 - items: - - accountId: expenses - name: Expenses - value: 4300 - items: [] - - fromDate: '2022-12-01T00:00:00' - toDate: '2022-12-31T00:00:00' - cashReceipts: - accountId: cashReceipts - name: Cash Receipts - value: 0 - items: [] - cashPayments: - accountId: cashPayments - name: Cash Payments - value: 10 - items: - - accountId: expenses - name: Expenses - value: 10 - items: [] - reportBasis: Cash - reportInput: Direct - currency: GBP - mostRecentAvailableMonth: '2023-01-31T00:00:00' - earliestAvailableMonth: '2021-02-01T00:00:00' - Xero: - value: - reports: - - fromDate: '2023-03-01T00:00:00' - toDate: '2023-03-31T23:59:59.9999999' - cashReceipts: - accountId: cashReceipt - name: Cash Receipts - value: 0 - items: [] - cashPayments: - accountId: cashPayment - name: Cash Payments - value: 0 - items: [] - - fromDate: '2023-02-01T00:00:00' - toDate: '2023-02-28T23:59:59.9999999' - cashReceipts: - accountId: cashReceipt - name: Cash Receipts - value: 0 - items: [] - cashPayments: - accountId: cashPayment - name: Cash Payments - value: 0 - items: [] - reportBasis: Cash - reportInput: Direct - currency: GBP - mostRecentAvailableMonth: '2023-03-31T00:00:00' - earliestAvailableMonth: '2021-04-01T00:00:00' - Zoho Books: - value: - reports: - - fromDate: '2022-10-01T00:00:00' - toDate: '2022-10-31T00:00:00' - cashReceipts: - accountId: receipts - name: Cash Receipts - value: 0 - items: - - accountId: income - name: Net Income - value: 0 - items: [] - - accountId: '104957000000000352' - name: Accounts Receivable - value: 0 - items: [] - - accountId: '104957000000000358' - name: Advance Tax - value: 0 - items: [] - - accountId: '104957000000618001' - name: Creadit Card - BA Company - value: 0 - items: [] - - accountId: '104957000000183010' - name: Credit Card - value: 0 - items: [] - - accountId: '104957000000000460' - name: Employee Reimbursements - value: 0 - items: [] - - accountId: '104957000000033015' - name: Input VAT - value: 0 - items: [] - - accountId: '104957000000000511' - name: Inventory Asset - value: 0 - items: [] - - accountId: '104957000000033017' - name: Output VAT - value: 0 - items: [] - - accountId: '104957000000032010' - name: Prepaid Expenses - value: 0 - items: [] - - accountId: '104957000000006001' - name: Tag Adjustments - value: 0 - items: [] - - accountId: '104957000000085001' - name: Test stock account - value: 0 - items: [] - - accountId: '104957000000000501' - name: Unearned Revenue - value: 0 - items: [] - cashPayments: - accountId: payments - name: Cash Payments - value: 0 - items: - - accountId: '104957000000000361' - name: Accounts Payable - value: 0 - items: [] - - fromDate: '2022-09-01T00:00:00' - toDate: '2022-09-30T00:00:00' - cashReceipts: - accountId: receipts - name: Cash Receipts - value: -5 - items: - - accountId: income - name: Net Income - value: -35 - items: [] - - accountId: '104957000000000352' - name: Accounts Receivable - value: 30 - items: [] - - accountId: '104957000000000358' - name: Advance Tax - value: 0 - items: [] - - accountId: '104957000000618001' - name: Creadit Card - BA Company - value: 0 - items: [] - - accountId: '104957000000183010' - name: Credit Card - value: 0 - items: [] - - accountId: '104957000000000460' - name: Employee Reimbursements - value: 0 - items: [] - - accountId: '104957000000000511' - name: Inventory Asset - value: 0 - items: [] - - accountId: '104957000000033017' - name: Output VAT - value: 0 - items: [] - - accountId: '104957000000032010' - name: Prepaid Expenses - value: 0 - items: [] - - accountId: '104957000000006001' - name: Tag Adjustments - value: 0 - items: [] - - accountId: '104957000000085001' - name: Test stock account - value: 0 - items: [] - - accountId: '104957000000000501' - name: Unearned Revenue - value: 0 - items: [] - cashPayments: - accountId: payments - name: Cash Payments - value: 7 - items: - - accountId: '104957000000000361' - name: Accounts Payable - value: 0 - items: [] - - accountId: '104957000000033015' - name: Input VAT - value: 7 - items: [] - reportBasis: Accrual - reportInput: Indirect - currency: GBP - mostRecentAvailableMonth: '2022-10-31T00:00:00' - earliestAvailableMonth: '2019-11-01T00:00:00' - '401': - $ref: '#/components/responses/Unauthorized' - '402': - $ref: '#/components/responses/Payment-Required' - '403': - $ref: '#/components/responses/Forbidden' - '404': - $ref: '#/components/responses/Not-Found' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - '/companies/{companyId}/connections/{connectionId}/data/banking-accountBalances': - get: - tags: - - Bank statements - summary: List account balances - operationId: list-banking-account-balances - x-speakeasy-group: banking.account-balances - description: "The *List account balances* endpoint returns a list of [account balances](https://docs.codat.io/lending-api#/schemas/AccountBalance) for a given company's connection.\n\n[Account balances](https://docs.codat.io/lending-api#/schemas/AccountBalance) are balances for a bank account, including end-of-day batch balance or running balances per transaction.\n\nBefore using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data).\n " - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - - $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/BankingAccountBalances' - examples: - Basiq: - value: - results: - - accountId: 4811e776-6187-48d9-afee-635fb0d89d93 - balance: - current: 11389.85 - date: '2017-12-31T00:00:00Z' - modifiedDate: '2022-10-28T07:15:07Z' - - accountId: 4811e776-6187-48d9-afee-635fb0d89d93 - balance: - current: 8002.09 - date: '2018-01-01T00:00:00Z' - modifiedDate: '2022-10-28T07:15:07Z' - pageNumber: 1 - pageSize: 2 - totalResults: 3103 - _links: - current: - href: /companies/17129e41-5389-4f10-ac06-e0a37e47d177/connections/b4703906-e631-46f1-9acc-7e237acdc64d/data/banking-accountBalances?page=1&pageSize=2 - self: - href: /companies/17129e41-5389-4f10-ac06-e0a37e47d177/connections/b4703906-e631-46f1-9acc-7e237acdc64d/data/banking-accountBalances - next: - href: /companies/17129e41-5389-4f10-ac06-e0a37e47d177/connections/b4703906-e631-46f1-9acc-7e237acdc64d/data/banking-accountBalances?page=2&pageSize=2 - Plaid: - value: - results: - - accountId: 3opGv6XXNeHPEgNVbQpyCr8MAKQ3noC8Qz1zB - balance: - current: 205.78 - date: '2022-10-13T00:00:00' - modifiedDate: '2022-10-27T10:50:16Z' - - accountId: 3opGv6XXNeHPEgNVbQpyCr8MAKQ3noC8Qz1zB - balance: - current: 205.78 - date: '2022-10-14T00:00:00' - modifiedDate: '2022-10-27T10:50:16Z' - pageNumber: 1 - pageSize: 2 - totalResults: 14 - _links: - current: - href: /companies/efc2d985-cdb3-4724-8be3-c7310f7ead6c/connections/6c44dc44-e1b1-4578-800f-0bdefb658db7/data/banking-accountBalances?page=1&pageSize=2 - self: - href: /companies/efc2d985-cdb3-4724-8be3-c7310f7ead6c/connections/6c44dc44-e1b1-4578-800f-0bdefb658db7/data/banking-accountBalances - next: - href: /companies/efc2d985-cdb3-4724-8be3-c7310f7ead6c/connections/6c44dc44-e1b1-4578-800f-0bdefb658db7/data/banking-accountBalances?page=2&pageSize=2 - '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' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - '/companies/{companyId}/connections/{connectionId}/data/banking-accounts': - get: - tags: - - Bank statements - summary: List accounts - operationId: list-banking-accounts - x-speakeasy-group: banking.accounts - description: "The *List accounts* endpoint returns a list of [accounts](https://docs.codat.io/lending-api#/schemas/Account) for a given company's connection.\n\n[Accounts](https://docs.codat.io/lending-api#/schemas/Account) are financial accounts maintained by a bank or other financial institution.\n\nBefore using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data).\n " - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - - $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/BankingAccounts' - examples: - Basiq: - value: - results: - - id: 4811e776-6187-48d9-afee-635fb0d89d93 - name: Hooli Saver - holder: david smith - type: Debit - balance: - available: 2932.85 - current: 2932.85 - identifiers: - type: Account - number: '14293919644182' - bankCode: 416-982 - currency: AUD - institution: - id: AU00000 - name: Hooli Bank - modifiedDate: '2022-10-28T07:14:48Z' - sourceModifiedDate: '2022-10-27T13:00:00Z' - accountName: Hooli Saver - accountHolder: david smith - accountType: Debit - accountNumbers: - type: Account - number: '14293919644182' - bankCode: 416-982 - - id: 736d90a5-f836-4ae0-a161-1e8056f39701 - name: Standard Variable Rate Home Loan - holder: david smith - type: Credit - balance: - available: 6940.31 - current: 6940.31 - identifiers: - type: Loan - number: '14293919644183' - bankCode: 416-982 - currency: AUD - institution: - id: AU00000 - name: Hooli Bank - modifiedDate: '2022-10-28T07:14:48Z' - sourceModifiedDate: '2022-10-27T13:00:00Z' - accountName: Standard Variable Rate Home Loan - accountHolder: david smith - accountType: Credit - accountNumbers: - type: Loan - number: '14293919644183' - bankCode: 416-982 - pageNumber: 1 - pageSize: 2 - totalResults: 4 - _links: - current: - href: /companies/17129e41-5389-4f10-ac06-e0a37e47d177/connections/b4703906-e631-46f1-9acc-7e237acdc64d/data/banking-accounts?page=1&pageSize=2 - self: - href: /companies/17129e41-5389-4f10-ac06-e0a37e47d177/connections/b4703906-e631-46f1-9acc-7e237acdc64d/data/banking-accounts - next: - href: /companies/17129e41-5389-4f10-ac06-e0a37e47d177/connections/b4703906-e631-46f1-9acc-7e237acdc64d/data/banking-accounts?page=2&pageSize=2 - Plaid: - value: - results: - - id: 3opGv6XXNeHPEgNVbQpyCr8MAKQ3noC8Qz1zB - name: Plaid Silver Standard 0.1% Interest Saving - informalName: Plaid Saving - type: Debit - balance: - available: 200 - current: 210 - identifiers: - type: Depository - number: '1111222233331111' - bankCode: '00021' - maskedAccountNumber: '1111' - currency: CAD - institution: - id: ins_100533 - name: American Express (CA) - modifiedDate: '2022-10-27T10:50:16Z' - accountName: Plaid Silver Standard 0.1% Interest Saving - accountType: Debit - accountNumbers: - type: Depository - number: '1111222233331111' - bankCode: '00021' - maskedAccountNumber: '1111' - pageNumber: 1 - pageSize: 2 - totalResults: 1 - _links: - current: - href: /companies/efc2d985-cdb3-4724-8be3-c7310f7ead6c/connections/6c44dc44-e1b1-4578-800f-0bdefb658db7/data/banking-accounts?page=1&pageSize=2 - self: - href: /companies/efc2d985-cdb3-4724-8be3-c7310f7ead6c/connections/6c44dc44-e1b1-4578-800f-0bdefb658db7/data/banking-accounts - '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' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - '/companies/{companyId}/connections/{connectionId}/data/banking-accounts/{accountId}': - get: - tags: - - Bank statements - summary: Get account - operationId: get-banking-account - x-speakeasy-group: banking.accounts - description: |- - The *Get account* endpoint returns a single account for a given accountId. - - [Accounts](https://docs.codat.io/lending-api#/schemas/Account) are financial accounts maintained by a bank or other financial institution. - - Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data). - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - - $ref: '#/components/parameters/accountingAccountId' - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/BankingAccount' - examples: - Basiq: - value: - id: 4811e776-6187-48d9-afee-635fb0d89d93 - name: Hooli Saver - holder: david smith - type: Debit - balance: - available: 2932.85 - current: 2932.85 - identifiers: - type: Account - number: '14293919644182' - bankCode: 416-982 - currency: AUD - institution: - id: AU00000 - name: Hooli Bank - modifiedDate: '2022-10-28T07:14:48Z' - sourceModifiedDate: '2022-10-27T13:00:00Z' - accountName: Hooli Saver - accountHolder: david smith - accountType: Debit - accountNumbers: - type: Account - number: '14293919644182' - bankCode: 416-982 - Plaid: - value: - id: 3opGv6XXNeHPEgNVbQpyCr8MAKQ3noC8Qz1zB - name: Plaid Silver Standard 0.1% Interest Saving - informalName: Plaid Saving - type: Debit - balance: - available: 200 - current: 210 - identifiers: - type: Depository - number: '1111222233331111' - bankCode: '00021' - maskedAccountNumber: '1111' - currency: CAD - institution: - id: ins_100533 - name: American Express (CA) - modifiedDate: '2022-10-27T10:50:16Z' - accountName: Plaid Silver Standard 0.1% Interest Saving - accountType: Debit - accountNumbers: - type: Depository - number: '1111222233331111' - bankCode: '00021' - maskedAccountNumber: '1111' - '401': - $ref: '#/components/responses/Unauthorized' - '402': - $ref: '#/components/responses/Payment-Required' - '403': - $ref: '#/components/responses/Forbidden' - '404': - $ref: '#/components/responses/Not-Found' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - '/companies/{companyId}/connections/{connectionId}/data/banking-transactions': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - get: - tags: - - Bank statements - operationId: list-banking-transactions - x-speakeasy-group: banking.transactions - summary: List transactions - description: "The *List transactions* endpoint returns a list of [transactions](https://docs.codat.io/lending-api#/schemas/Transaction) for a given company's connection.\n\n[Transactions](https://docs.codat.io/lending-api#/schemas/Transaction) provide an immutable source of up-to-date information on income and expenditure.\n\nBefore using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data).\n " - parameters: - - $ref: '#/components/parameters/page' - - $ref: '#/components/parameters/pageSize' - - $ref: '#/components/parameters/query' - - $ref: '#/components/parameters/orderBy' - responses: - '200': - description: Success - content: - application/json: - x-speakeasy-usage-example: true - schema: - $ref: '#/components/schemas/BankingTransactions' - examples: - Basiq: - value: - results: - - id: 00017a94-c681-448d-ba8d-585a81b4128f - accountId: feb76128-7650-4b02-a323-e1606146be0c - description: 'RENTALCARTOLLPH131865 PARRAMATTA AU Card xx0399 Value Date: 25/07/2019' - amount: -14.26 - currency: AUD - postedDate: '2019-07-31T00:00:00Z' - code: Unknown - merchantName: '' - transactionCategoryRef: - id: payment - name: Payment - modifiedDate: '2022-10-28T07:15:10Z' - - id: 0023c431-35c8-41f5-b75e-9239413cde7e - accountId: 4811e776-6187-48d9-afee-635fb0d89d93 - description: Transfer from xx9263 CommBank app Shop - amount: 191 - currency: AUD - postedDate: '2018-07-31T00:00:00Z' - code: Unknown - merchantName: '' - transactionCategoryRef: - id: transfer - name: Transfer - modifiedDate: '2022-10-28T07:15:10Z' - pageNumber: 1 - pageSize: 2 - totalResults: 3319 - _links: - current: - href: /companies/17129e41-5389-4f10-ac06-e0a37e47d177/connections/b4703906-e631-46f1-9acc-7e237acdc64d/data/banking-transactions?page=1&pageSize=2 - self: - href: /companies/17129e41-5389-4f10-ac06-e0a37e47d177/connections/b4703906-e631-46f1-9acc-7e237acdc64d/data/banking-transactions - next: - href: /companies/17129e41-5389-4f10-ac06-e0a37e47d177/connections/b4703906-e631-46f1-9acc-7e237acdc64d/data/banking-transactions?page=2&pageSize=2 - Plaid: - value: - results: - - id: 1514wvMMajumgG7xWA1Bt8o15xP5k3fmeo9Bg_EC6E0DC820E1F9D1A2300BF4A5B80513 - accountId: 3opGv6XXNeHPEgNVbQpyCr8MAKQ3noC8Qz1zB - description: CREDIT CARD 3333 PAYMENT *// - amount: -25 - currency: CAD - postedDate: '2021-05-10T00:00:00' - authorizedDate: '2021-05-09T00:00:00' - code: Unknown - transactionCategoryRef: - id: TRANSFER_OUT.TRANSFER_OUT_ACCOUNT_TRANSFER - name: TRANSFER_OUT_ACCOUNT_TRANSFER - modifiedDate: '2022-10-27T10:50:25Z' - - id: 1514wvMMajumgG7xWA1Bt8oDLxlpm3i3zraD7_6DB63D1DACF6F5824C80F8BE2E066DB5 - accountId: 3opGv6XXNeHPEgNVbQpyCr8MAKQ3noC8Qz1zB - description: CREDIT CARD 3333 PAYMENT *// - amount: -25 - currency: CAD - postedDate: '2022-10-02T00:00:00' - authorizedDate: '2022-10-01T00:00:00' - code: Unknown - transactionCategoryRef: - id: TRANSFER_OUT.TRANSFER_OUT_ACCOUNT_TRANSFER - name: TRANSFER_OUT_ACCOUNT_TRANSFER - modifiedDate: '2022-10-27T10:50:25Z' - pageNumber: 1 - pageSize: 2 - totalResults: 49 - _links: - current: - href: /companies/efc2d985-cdb3-4724-8be3-c7310f7ead6c/connections/6c44dc44-e1b1-4578-800f-0bdefb658db7/data/banking-transactions?page=1&pageSize=2 - self: - href: /companies/efc2d985-cdb3-4724-8be3-c7310f7ead6c/connections/6c44dc44-e1b1-4578-800f-0bdefb658db7/data/banking-transactions - next: - href: /companies/efc2d985-cdb3-4724-8be3-c7310f7ead6c/connections/6c44dc44-e1b1-4578-800f-0bdefb658db7/data/banking-transactions?page=2&pageSize=2 - '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' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - '/companies/{companyId}/connections/{connectionId}/data/banking-transactions/{transactionId}': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - - schema: - type: string - name: transactionId - in: path - required: true - description: The unique identifier for a transaction - get: - summary: Get bank transaction - tags: - - Bank statements - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/BankingTransaction' - examples: - Basiq: - value: - id: 00017a94-c681-448d-ba8d-585a81b4128f - accountId: feb76128-7650-4b02-a323-e1606146be0c - description: 'RENTALCARTOLLPH131865 PARRAMATTA AU Card xx0399 Value Date: 25/07/2019' - amount: -14.26 - currency: AUD - postedDate: '2019-07-31T00:00:00Z' - code: Unknown - merchantName: '' - transactionCategoryRef: - id: payment - name: Payment - modifiedDate: '2022-10-28T07:15:10Z' - Plaid: - value: - id: 1514wvMMajumgG7xWA1Bt8o15xP5k3fmeo9Bg_EC6E0DC820E1F9D1A2300BF4A5B80513 - accountId: 3opGv6XXNeHPEgNVbQpyCr8MAKQ3noC8Qz1zB - description: CREDIT CARD 3333 PAYMENT *// - amount: -25 - currency: CAD - postedDate: '2021-05-10T00:00:00' - authorizedDate: '2021-05-09T00:00:00' - code: Unknown - transactionCategoryRef: - id: TRANSFER_OUT.TRANSFER_OUT_ACCOUNT_TRANSFER - name: TRANSFER_OUT_ACCOUNT_TRANSFER - modifiedDate: '2022-10-27T10:50:25Z' - '401': - $ref: '#/components/responses/Unauthorized' - '402': - $ref: '#/components/responses/Payment-Required' - '403': - $ref: '#/components/responses/Forbidden' - '404': - $ref: '#/components/responses/Not-Found' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - description: | - The *Get transaction* endpoint returns a single transaction for a given transactionId. - - [Transactions](https://docs.codat.io/lending-api#/schemas/Transaction) provide an immutable source of up-to-date information on income and expenditure. - - Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data). - operationId: get-banking-transaction - x-speakeasy-group: banking.transactions - '/companies/{companyId}/connections/{connectionId}/data/banking-transactionCategories': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - get: - tags: - - Bank statements - operationId: list-banking-transaction-categories - x-speakeasy-group: banking.transaction-categories - summary: List transaction categories - 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/BankingTransactionCategories' - examples: - Basiq: - value: - results: - - id: bank-fee - name: Bank Fee - hasChildren: false - status: Active - modifiedDate: '2022-10-28T07:14:46' - - id: cash-withdrawal - name: Cash Withdrawal - hasChildren: false - status: Active - modifiedDate: '2022-10-28T07:14:46' - pageNumber: 1 - pageSize: 2 - totalResults: 9 - _links: - current: - href: /companies/17129e41-5389-4f10-ac06-e0a37e47d177/connections/b4703906-e631-46f1-9acc-7e237acdc64d/data/banking-transactionCategories?page=1&pageSize=2 - self: - href: /companies/17129e41-5389-4f10-ac06-e0a37e47d177/connections/b4703906-e631-46f1-9acc-7e237acdc64d/data/banking-transactionCategories - next: - href: /companies/17129e41-5389-4f10-ac06-e0a37e47d177/connections/b4703906-e631-46f1-9acc-7e237acdc64d/data/banking-transactionCategories?page=2&pageSize=2 - Plaid: - value: - results: - - id: BANK_FEES - name: BANK_FEES - hasChildren: true - status: Active - modifiedDate: '2022-10-27T10:50:17' - - id: BANK_FEES.BANK_FEES_ATM_FEES - name: BANK_FEES_ATM_FEES - parentId: BANK_FEES - hasChildren: false - status: Active - modifiedDate: '2022-10-27T10:50:17' - pageNumber: 1 - pageSize: 2 - totalResults: 120 - _links: - current: - href: /companies/efc2d985-cdb3-4724-8be3-c7310f7ead6c/connections/6c44dc44-e1b1-4578-800f-0bdefb658db7/data/banking-transactionCategories?page=1&pageSize=2 - self: - href: /companies/efc2d985-cdb3-4724-8be3-c7310f7ead6c/connections/6c44dc44-e1b1-4578-800f-0bdefb658db7/data/banking-transactionCategories - next: - href: /companies/efc2d985-cdb3-4724-8be3-c7310f7ead6c/connections/6c44dc44-e1b1-4578-800f-0bdefb658db7/data/banking-transactionCategories?page=2&pageSize=2 - '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' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - description: "The *List transaction categories* endpoint returns a list of [transaction categories](https://docs.codat.io/lending-api#/schemas/TransactionCategory) for a given company's connection.\n\n[Transaction categories](https://docs.codat.io/lending-api#/schemas/TransactionCategory) are associated with a transaction to provide greater contextual meaning to transaction activity.\n\nBefore using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data).\n " - '/companies/{companyId}/connections/{connectionId}/data/banking-transactionCategories/{transactionCategoryId}': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - - schema: - type: string - name: transactionCategoryId - in: path - required: true - description: The unique identifier for a banking transaction category - get: - tags: - - Bank statements - operationId: get-banking-transaction-category - x-speakeasy-group: banking.transaction-categories - summary: Get transaction category - description: | - The *Get transaction category* endpoint returns a single transaction category for a given transactionCategoryId. - - [Transaction categories](https://docs.codat.io/lending-api#/schemas/TransactionCategory) are associated with a transaction to provide greater contextual meaning to transaction activity. - - Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data). - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/BankingTransactionCategory' - examples: - Basiq: - value: - id: bank-fee - name: Bank Fee - hasChildren: false - status: Active - modifiedDate: '2022-10-28T07:14:46' - Plaid: - value: - id: BANK_FEES - name: BANK_FEES - hasChildren: true - status: Active - modifiedDate: '2022-10-27T10:50:17' - '401': - $ref: '#/components/responses/Unauthorized' - '402': - $ref: '#/components/responses/Payment-Required' - '403': - $ref: '#/components/responses/Forbidden' - '404': - $ref: '#/components/responses/Not-Found' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - '/companies/{companyId}/connections/{connectionId}/data/commerce-customers': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - get: - tags: - - Sales - summary: List customers - operationId: list-commerce-customers - x-speakeasy-group: sales.customers - description: "The *List customers* endpoint returns a list of [customers](https://docs.codat.io/lending-api#/schemas/Customer) for a given company's connection.\n\n[Customers](https://docs.codat.io/lending-api#/schemas/Customer) are people or organizations that place orders, make payments and recieve goods and/or services from the SMB.\n\nBefore using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data).\n " - parameters: - - $ref: '#/components/parameters/page' - - $ref: '#/components/parameters/pageSize' - - $ref: '#/components/parameters/query' - - $ref: '#/components/parameters/orderBy' - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/CommerceCustomers' - examples: - BigCommerce: - value: - results: - - id: '1' - customerName: Amy Jones - emailAddress: a.jackson@email.me - defaultCurrency: XXX - phone: 07770 666777 - addresses: - - type: Unknown - line1: My Billing Address ./*drop table - city: Portsmouth - region: '' - country: United Kingdom - postalCode: PS13HJ - - type: Unknown - line1: 'This is my address, I cant hit enter.' - city: Portsmouth - region: '' - country: United Kingdom - postalCode: PS13HJ - createdDate: '2022-06-15T15:54:15Z' - modifiedDate: '2023-04-11T10:33:49Z' - sourceModifiedDate: '2022-06-15T15:54:15Z' - - id: '2' - customerName: Cust001 Cust001 - emailAddress: Cust001@example.com - defaultCurrency: XXX - phone: 05442 203941 - addresses: [] - createdDate: '2023-04-11T15:49:25Z' - modifiedDate: '2023-04-17T15:42:55Z' - sourceModifiedDate: '2023-04-11T15:49:25Z' - pageNumber: 1 - pageSize: 2 - totalResults: 201 - _links: - current: - href: /companies/d1ebcf6d-f7f9-4841-8a06-fec12c492a48/connections/7c0a21e8-938a-40a4-b0f7-5ab5d46804b0/data/commerce-customers?page=1&pageSize=2 - self: - href: /companies/d1ebcf6d-f7f9-4841-8a06-fec12c492a48/connections/7c0a21e8-938a-40a4-b0f7-5ab5d46804b0/data/commerce-customers - next: - href: /companies/d1ebcf6d-f7f9-4841-8a06-fec12c492a48/connections/7c0a21e8-938a-40a4-b0f7-5ab5d46804b0/data/commerce-customers?page=2&pageSize=2 - Clover: - value: - results: - - id: 2CBJ8R898ZJAR - customerName: '' - addresses: [] - createdDate: '2021-09-22T13:10:12Z' - modifiedDate: '2023-01-09T11:01:03Z' - sourceModifiedDate: '0001-01-01T00:00:00' - - id: 511JV0FRN2QYC - customerName: '' - addresses: [] - createdDate: '2021-09-21T14:54:38Z' - modifiedDate: '2023-01-09T11:01:03Z' - sourceModifiedDate: '0001-01-01T00:00:00' - pageNumber: 1 - pageSize: 2 - totalResults: 9 - _links: - current: - href: /companies/aae80eb3-1f56-41ca-a171-a59f9ee03b26/connections/4a5b633b-cd86-4715-a22b-62be98c4bcc5/data/commerce-customers?page=1&pageSize=2 - self: - href: /companies/aae80eb3-1f56-41ca-a171-a59f9ee03b26/connections/4a5b633b-cd86-4715-a22b-62be98c4bcc5/data/commerce-customers - next: - href: /companies/aae80eb3-1f56-41ca-a171-a59f9ee03b26/connections/4a5b633b-cd86-4715-a22b-62be98c4bcc5/data/commerce-customers?page=2&pageSize=2 - Mollie: - value: - results: - - id: cst_NUkBHQmekz - customerName: Frod Baggins - emailAddress: frodo.baggings@theshire.com - addresses: [] - createdDate: '2022-01-18T11:41:54' - modifiedDate: '2022-03-17T15:47:28Z' - - id: cst_BvBxwuwfvH - customerName: Frodo Baggins - emailAddress: frodo.baggings@theshire.com - addresses: [] - createdDate: '2022-01-18T11:42:05' - modifiedDate: '2022-03-17T15:47:28Z' - pageNumber: 1 - pageSize: 2 - totalResults: 3 - _links: - current: - href: /companies/a68cb447-182d-4bbe-be1a-f526d11d69d5/connections/dfbf847b-cde8-4b00-b2f9-af51dec0d337/data/commerce-customers?page=1&pageSize=2 - self: - href: /companies/a68cb447-182d-4bbe-be1a-f526d11d69d5/connections/dfbf847b-cde8-4b00-b2f9-af51dec0d337/data/commerce-customers - next: - href: /companies/a68cb447-182d-4bbe-be1a-f526d11d69d5/connections/dfbf847b-cde8-4b00-b2f9-af51dec0d337/data/commerce-customers?page=2&pageSize=2 - Mollie Test: - value: - results: - - id: cst_NUkBHQmekz - customerName: Frod Baggins - emailAddress: frodo.baggings@theshire.com - addresses: [] - createdDate: '2022-01-18T11:41:54' - modifiedDate: '2022-08-17T11:33:19Z' - - id: cst_BvBxwuwfvH - customerName: Frodo Baggins - emailAddress: frodo.baggings@theshire.com - addresses: [] - createdDate: '2022-01-18T11:42:05' - modifiedDate: '2022-08-17T11:33:19Z' - pageNumber: 1 - pageSize: 2 - totalResults: 3 - _links: - current: - href: /companies/b978f9fe-8d63-4cfc-b2c2-b61b72e22785/connections/d564f8fd-0766-4ab8-a427-7c893f9b9ff6/data/commerce-customers?page=1&pageSize=2 - self: - href: /companies/b978f9fe-8d63-4cfc-b2c2-b61b72e22785/connections/d564f8fd-0766-4ab8-a427-7c893f9b9ff6/data/commerce-customers - next: - href: /companies/b978f9fe-8d63-4cfc-b2c2-b61b72e22785/connections/d564f8fd-0766-4ab8-a427-7c893f9b9ff6/data/commerce-customers?page=2&pageSize=2 - PrestaShop: - value: - results: - - id: '2' - customerName: Bob Smith - emailAddress: bob.smith@example.com - addresses: - - type: Unknown - line1: 1 test street - city: City Test - region: Virginia - country: US - postalCode: '55678' - createdDate: '2021-09-02T07:54:26' - modifiedDate: '2022-01-26T15:09:42Z' - sourceModifiedDate: '2021-09-02T07:54:26' - - id: '3' - customerName: Fake Name - emailAddress: bob@bob.com - addresses: [] - createdDate: '2021-09-03T01:55:13' - modifiedDate: '2022-01-26T15:09:42Z' - sourceModifiedDate: '2021-09-03T01:55:13' - pageNumber: 1 - pageSize: 2 - totalResults: 5 - _links: - current: - href: /companies/2bf78e61-58ca-421a-a430-5dfa59cf15b0/connections/30774c1f-fdcd-491e-9e60-47e316b3ab9b/data/commerce-customers?page=1&pageSize=2 - self: - href: /companies/2bf78e61-58ca-421a-a430-5dfa59cf15b0/connections/30774c1f-fdcd-491e-9e60-47e316b3ab9b/data/commerce-customers - next: - href: /companies/2bf78e61-58ca-421a-a430-5dfa59cf15b0/connections/30774c1f-fdcd-491e-9e60-47e316b3ab9b/data/commerce-customers?page=2&pageSize=2 - Shopify: - value: - results: - - id: '5839032287390' - customerName: AL A - emailAddress: a.macra@codat.io - addresses: - - type: Unknown - line1: '301 Ink Rooms, 28 Easton St, Farringdon' - line2: '28 Easton St, Farringdon' - city: London - region: England - country: United Kingdom - postalCode: WC1X 0BE - createdDate: '2021-11-18T15:24:03' - modifiedDate: '2023-02-10T15:18:25Z' - sourceModifiedDate: '2021-11-18T15:24:03' - - id: '5097398534302' - customerName: Qa Test - phone: '+445593368390' - addresses: - - type: Unknown - line1: Look Street - city: London - postalCode: PO16 7GZ - - type: Unknown - line1: Look Street - city: London - region: England - country: United Kingdom - postalCode: PO16 7GZ - note: '' - createdDate: '2021-03-19T10:12:37' - modifiedDate: '2023-02-10T15:18:25Z' - sourceModifiedDate: '2022-08-01T13:07:59' - pageNumber: 1 - pageSize: 2 - totalResults: 6 - _links: - current: - href: /companies/0bc1cc44-c6d2-4537-9591-b1ad6b5e3c94/connections/d38fa6d3-d712-4cf6-9d9d-f03bacd87595/data/commerce-customers?page=1&pageSize=2 - self: - href: /companies/0bc1cc44-c6d2-4537-9591-b1ad6b5e3c94/connections/d38fa6d3-d712-4cf6-9d9d-f03bacd87595/data/commerce-customers - next: - href: /companies/0bc1cc44-c6d2-4537-9591-b1ad6b5e3c94/connections/d38fa6d3-d712-4cf6-9d9d-f03bacd87595/data/commerce-customers?page=2&pageSize=2 - Square: - value: - results: - - id: FT9948H3VD6GF8MPDD5438KY1M - emailAddress: fake@name.com - phone: '+441234567890' - addresses: - - type: Unknown - line1: 1 Main Street - line2: Flat 20 - city: London - region: London - postalCode: W1A 1AA - createdDate: '2021-03-08T11:21:11Z' - modifiedDate: '2022-08-02T10:27:32Z' - sourceModifiedDate: '2021-03-08T11:21:11Z' - - id: GXQDPSZSMN6C58270SZN4YJZ8R - emailAddress: s.shandil+square@codat.io - phone: '+447729946295' - addresses: [] - createdDate: '2020-11-19T14:56:00Z' - modifiedDate: '2022-08-02T10:27:32Z' - sourceModifiedDate: '2020-11-19T14:56:00Z' - pageNumber: 1 - pageSize: 2 - totalResults: 2 - _links: - current: - href: /companies/d779fc82-a098-4107-a9fc-c2a1dda3d522/connections/9b098b74-3770-4dad-9001-4c283a39f1e5/data/commerce-customers?page=1&pageSize=2 - self: - href: /companies/d779fc82-a098-4107-a9fc-c2a1dda3d522/connections/9b098b74-3770-4dad-9001-4c283a39f1e5/data/commerce-customers - Stripe Test: - value: - results: - - id: cus_LXdjls7KY5ZHaz - customerName: Barry Smith - emailAddress: barry@example.com - defaultCurrency: gbp - addresses: [] - note: Test Subscription - createdDate: '2022-04-20T07:59:52Z' - modifiedDate: '2022-09-30T11:18:27Z' - - id: cus_LXdFFgHqqVURIv - customerName: David Dunlow - emailAddress: david@example.com - defaultCurrency: gbp - phone: '+447545309714' - addresses: - - type: Billing - line1: 301 Ink Rooms - line2: 28 Easton Street - city: London - country: GB - postalCode: WC1X 0BE - - type: Delivery - line1: 301 Ink Rooms - line2: 28 Easton Street - city: London - country: GB - postalCode: WC1X 0BE - note: Test Subscriptions - createdDate: '2022-04-20T07:30:01Z' - modifiedDate: '2022-09-30T11:18:27Z' - pageNumber: 1 - pageSize: 2 - totalResults: 14 - _links: - current: - href: /companies/8206e78e-e340-411e-b315-473c4ab73b48/connections/43e58373-0a1d-44a0-97f0-9fa9993a14fa/data/commerce-customers?page=1&pageSize=2 - self: - href: /companies/8206e78e-e340-411e-b315-473c4ab73b48/connections/43e58373-0a1d-44a0-97f0-9fa9993a14fa/data/commerce-customers - next: - href: /companies/8206e78e-e340-411e-b315-473c4ab73b48/connections/43e58373-0a1d-44a0-97f0-9fa9993a14fa/data/commerce-customers?page=2&pageSize=2 - WooCommerce: - value: - results: - - id: '201694267' - customerName: Qa Test - emailAddress: a.macra@codat.io - phone: '' - addresses: - - type: Billing - line1: '' - line2: '' - city: '' - region: '' - country: '' - postalCode: '' - createdDate: '2021-03-11T09:04:27' - modifiedDate: '2021-07-13T16:19:00Z' - sourceModifiedDate: '2021-03-11T09:07:00' - pageNumber: 1 - pageSize: 2 - totalResults: 1 - _links: - current: - href: /companies/010c6f53-8fc8-40ab-9ed5-41191cf9c6b5/connections/7545ca2e-5f58-4f98-8af2-3b2c38bb8074/data/commerce-customers?page=1&pageSize=2 - self: - href: /companies/010c6f53-8fc8-40ab-9ed5-41191cf9c6b5/connections/7545ca2e-5f58-4f98-8af2-3b2c38bb8074/data/commerce-customers - Zettle: - value: - results: - - id: firstname.lastname@example.com - customerName: Firstname Lastname - emailAddress: firstname.lastname@example.com - addresses: - - type: Unknown - line1: Line1 - city: City - country: GB - postalCode: TT1 1TT - createdDate: '2021-01-07T16:17:34' - modifiedDate: '2021-01-27T13:08:51Z' - sourceModifiedDate: '2021-01-08T09:57:56' - - id: joe@bloggs.com - customerName: Joe Bloggs - emailAddress: joe@bloggs.com - phone: 02012 345678 - addresses: - - type: Unknown - line1: Flat 1 - line2: 1 High Street - city: London - region: London - country: GB - - type: Unknown - line1: Flat 2 - line2: 2 High Street - city: London - region: London - country: GB - createdDate: '2020-12-21T14:52:15' - modifiedDate: '2021-01-27T13:08:51Z' - sourceModifiedDate: '2020-12-21T14:52:15' - pageNumber: 1 - pageSize: 2 - totalResults: 2 - _links: - current: - href: /companies/fe8e3158-47e6-4367-9537-7d5001295500/connections/d60b15e7-7db9-459b-92a0-9557f7ebdeea/data/commerce-customers?page=1&pageSize=2 - self: - href: /companies/fe8e3158-47e6-4367-9537-7d5001295500/connections/d60b15e7-7db9-459b-92a0-9557f7ebdeea/data/commerce-customers - '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' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - '/companies/{companyId}/connections/{connectionId}/data/commerce-customers/{customerId}': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - - $ref: '#/components/parameters/customerId' - get: - tags: - - Sales - summary: Get customer - operationId: get-commerce-customer - x-speakeasy-group: sales.customers - description: | - The *Get customer* endpoint returns a single customer for a given customerId. - - [Customers](https://docs.codat.io/lending-api#/schemas/Customer) are people or organizations that place orders, make payments and receive goods and/or services from the SMB. - - Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data). - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/CommerceCustomer' - examples: - BigCommerce: - value: - id: '1' - customerName: Amy Jones - emailAddress: a.durbanjackson+amy@codat.io - defaultCurrency: XXX - phone: '07770666777' - addresses: - - type: Unknown - line1: My Billing Address ./*drop table - city: Portsmouth - region: '' - country: United Kingdom - postalCode: PS13HJ - - type: Unknown - line1: 'This is my address, I cant hit enter.' - city: Portsmouth - region: '' - country: United Kingdom - postalCode: PS13HJ - createdDate: '2022-06-15T15:54:15Z' - modifiedDate: '2023-04-11T10:33:49Z' - sourceModifiedDate: '2022-06-15T15:54:15Z' - Clover: - value: - id: 2CBJ8R898ZJAR - customerName: '' - addresses: [] - createdDate: '2021-09-22T13:10:12Z' - modifiedDate: '2023-01-09T11:01:03Z' - sourceModifiedDate: '0001-01-01T00:00:00' - Mollie: - value: - id: cst_NUkBHQmekz - customerName: Frod Baggins - emailAddress: frodo.baggings@theshire.com - addresses: [] - createdDate: '2022-01-18T11:41:54' - modifiedDate: '2022-03-17T15:47:28Z' - Mollie Test: - value: - id: cst_NUkBHQmekz - customerName: Frod Baggins - emailAddress: frodo.baggings@theshire.com - addresses: [] - createdDate: '2022-01-18T11:41:54' - modifiedDate: '2022-08-17T11:33:19Z' - PrestaShop: - value: - id: '2' - customerName: Bob Smith - emailAddress: bob.smith@example.com - addresses: - - type: Unknown - line1: 1 test street - city: City Test - region: Virginia - country: US - postalCode: '55678' - createdDate: '2021-09-02T07:54:26' - modifiedDate: '2022-01-26T15:09:42Z' - sourceModifiedDate: '2021-09-02T07:54:26' - Shopify: - value: - id: '5839032287390' - customerName: AL A - emailAddress: a.macra@codat.io - addresses: - - type: Unknown - line1: '301 Ink Rooms, 28 Easton St, Farringdon' - line2: '28 Easton St, Farringdon' - city: London - region: England - country: United Kingdom - postalCode: WC1X 0BE - createdDate: '2021-11-18T15:24:03' - modifiedDate: '2023-02-10T15:18:25Z' - sourceModifiedDate: '2021-11-18T15:24:03' - Square: - value: - id: FT9948H3VD6GF8MPDD5438KY1M - emailAddress: fake@name.com - phone: '+441234567890' - addresses: - - type: Unknown - line1: 1 Main Street - line2: Flat 20 - city: London - region: London - postalCode: W1A 1AA - createdDate: '2021-03-08T11:21:11Z' - modifiedDate: '2022-08-02T10:27:32Z' - sourceModifiedDate: '2021-03-08T11:21:11Z' - Stripe Test: - value: - id: cus_LXdjls7KY5ZHaz - customerName: Barry Smith - emailAddress: barry@example.com - defaultCurrency: gbp - addresses: [] - note: Test Subscription - createdDate: '2022-04-20T07:59:52Z' - modifiedDate: '2022-09-30T11:18:27Z' - WooCommerce: - value: - id: '201694267' - customerName: Qa Test - emailAddress: a.macra@codat.io - phone: '' - addresses: - - type: Billing - line1: '' - line2: '' - city: '' - region: '' - country: '' - postalCode: '' - createdDate: '2021-03-11T09:04:27' - modifiedDate: '2021-07-13T16:19:00Z' - sourceModifiedDate: '2021-03-11T09:07:00' - Zettle: - value: - id: firstname.lastname@example.com - customerName: Firstname Lastname - emailAddress: firstname.lastname@example.com - addresses: - - type: Unknown - line1: Line1 - city: City - country: GB - postalCode: TT1 1TT - createdDate: '2021-01-07T16:17:34' - modifiedDate: '2021-01-27T13:08:51Z' - sourceModifiedDate: '2021-01-08T09:57:56' - '401': - $ref: '#/components/responses/Unauthorized' - '402': - $ref: '#/components/responses/Payment-Required' - '403': - $ref: '#/components/responses/Forbidden' - '404': - $ref: '#/components/responses/Not-Found' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - '/companies/{companyId}/connections/{connectionId}/data/commerce-disputes': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - get: - summary: List disputes - tags: - - Sales - operationId: list-commerce-disputes - x-speakeasy-group: sales.disputes - parameters: - - $ref: '#/components/parameters/page' - - $ref: '#/components/parameters/pageSize' - - $ref: '#/components/parameters/query' - - $ref: '#/components/parameters/orderBy' - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/CommerceDisputes' - examples: - Shopify: - value: - results: - - id: '8502411422' - disputedTransactions: - - id: '3684116791454' - type: Order - totalAmount: 175 - currency: GBP - status: Processing - reason: fraudulent - dueDate: '2021-03-28T00:00:00' - createdDate: '2021-03-19T13:16:27' - modifiedDate: '2023-02-10T15:18:22Z' - sourceModifiedDate: '2021-03-28T11:00:17' - - id: '8502444190' - disputedTransactions: - - id: '3684119445662' - type: Order - totalAmount: 600 - currency: GBP - status: Processing - reason: fraudulent - dueDate: '2021-03-28T00:00:00' - createdDate: '2021-03-19T13:18:31' - modifiedDate: '2023-02-10T15:18:22Z' - sourceModifiedDate: '2021-03-28T11:00:18' - pageNumber: 1 - pageSize: 2 - totalResults: 2 - _links: - current: - href: /companies/0bc1cc44-c6d2-4537-9591-b1ad6b5e3c94/connections/d38fa6d3-d712-4cf6-9d9d-f03bacd87595/data/commerce-disputes?page=1&pageSize=2 - self: - href: /companies/0bc1cc44-c6d2-4537-9591-b1ad6b5e3c94/connections/d38fa6d3-d712-4cf6-9d9d-f03bacd87595/data/commerce-disputes - Stripe Test: - value: - results: - - id: dp_1Hqhl8A8m8S1Gh7OJrvF3gsK - disputedTransactions: - - id: txn_1Hqhl8A8m8S1Gh7OtmAPNr9e - type: Payment - totalAmount: 25 - currency: GBP - status: Processing - reason: fraudulent - dueDate: '2020-12-02T23:59:59Z' - createdDate: '2020-11-23T16:19:22Z' - modifiedDate: '2022-09-30T11:18:27Z' - - id: dp_1HqiwVA8m8S1Gh7OpS3ozlcd - disputedTransactions: - - id: txn_1HqiwVA8m8S1Gh7O0IVelTQ5 - type: Payment - totalAmount: 55 - currency: GBP - status: Lost - reason: product_not_received - dueDate: '2020-12-02T23:59:59Z' - createdDate: '2020-11-23T17:35:11Z' - modifiedDate: '2022-09-30T11:18:27Z' - pageNumber: 1 - pageSize: 2 - totalResults: 5 - _links: - current: - href: /companies/8206e78e-e340-411e-b315-473c4ab73b48/connections/43e58373-0a1d-44a0-97f0-9fa9993a14fa/data/commerce-disputes?page=1&pageSize=2 - self: - href: /companies/8206e78e-e340-411e-b315-473c4ab73b48/connections/43e58373-0a1d-44a0-97f0-9fa9993a14fa/data/commerce-disputes - next: - href: /companies/8206e78e-e340-411e-b315-473c4ab73b48/connections/43e58373-0a1d-44a0-97f0-9fa9993a14fa/data/commerce-disputes?page=2&pageSize=2 - '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' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - description: "The *List disputes* endpoint returns a list of [disputes](https://docs.codat.io/lending-api#/schemas/Dispute) for a given company's connection.\n\n[Disputes](https://docs.codat.io/lending-api#/schemas/Dispute) are created when a customer is unsatisfied with their purchase or believe they have been charged incorrectly.\n\nBefore using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data).\n " - '/companies/{companyId}/connections/{connectionId}/data/commerce-disputes/{disputeId}': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - - name: disputeId - in: path - required: true - schema: - type: string - examples: - - 13d946f0-c5d5-42bc-b092-97ece17923ab - - 9wg4lep4ush5cxs79pl8sozmsndbaukll3ind4g7buqbm1h2 - - 7110701885 - - EILBDVJVNUAGVKRQ - description: Unique identifier for a dispute. - get: - summary: Get dispute - tags: - - Sales - operationId: get-commerce-dispute - x-speakeasy-group: sales.disputes - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/CommerceDispute' - examples: - Shopify: - value: - id: '8502411422' - disputedTransactions: - - id: '3684116791454' - type: Order - totalAmount: 175 - currency: GBP - status: Processing - reason: fraudulent - dueDate: '2021-03-28T00:00:00' - createdDate: '2021-03-19T13:16:27' - modifiedDate: '2023-02-10T15:18:22Z' - sourceModifiedDate: '2021-03-28T11:00:17' - Stripe Test: - value: - id: dp_1Hqhl8A8m8S1Gh7OJrvF3gsK - disputedTransactions: - - id: txn_1Hqhl8A8m8S1Gh7OtmAPNr9e - type: Payment - totalAmount: 25 - currency: GBP - status: Processing - reason: fraudulent - dueDate: '2020-12-02T23:59:59Z' - createdDate: '2020-11-23T16:19:22Z' - modifiedDate: '2022-09-30T11:18:27Z' - '401': - $ref: '#/components/responses/Unauthorized' - '402': - $ref: '#/components/responses/Payment-Required' - '403': - $ref: '#/components/responses/Forbidden' - '404': - $ref: '#/components/responses/Not-Found' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - description: | - The *Get dispute* endpoint returns a single dispute for a given disputeId. - - [Disputes](https://docs.codat.io/lending-api#/schemas/Dispute) are created when a customer is unsatisfied with their purchase or believe they have been charged incorrectly. - - Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data). - '/companies/{companyId}/connections/{connectionId}/data/commerce-info': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - get: - summary: Get company commerce profile - tags: - - Company info - operationId: get-commerce-profile - x-speakeasy-name-override: get-commerce-profile - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/CommerceCompanyInfo' - examples: - Example 1: - value: - companyName: Codat - companyLegalName: Codat Ltd - addresses: - - type: Billing - line1: 301 Ink Rooms - line2: 28 Easton Street - city: London - region: England - country: United Kingdom - postalCode: WC1X 0BE - - type: Delivery - line1: 28 Easton Street - city: London - country: UK - postalCode: WC1X 0BE - phoneNumbers: - - number: 02012 345678 - type: Landline - - number: 07123 456789 - type: Mobile - - number: 02012 345678 - type: Fax - webLinks: - - type: Website - url: 'https://www.codat.io/' - - type: Social - url: 'https://www.linkedin.com/company/codat-limited/' - registrationNumber: '5590111724' - baseCurrency: GBP - accountBalances: - - available: 20053.23 - pending: 2034.23 - reserved: 517.23 - currency: GBP - sourceUrls: - Api: 'https://api.codat.io' - createdDate: '2019-03-07T16:50:49' - modifiedDate: '2022-03-10T15:42:13' - sourceModifiedDate: '2021-06-10T01:48:49' - '401': - $ref: '#/components/responses/Unauthorized' - '402': - $ref: '#/components/responses/Payment-Required' - '403': - $ref: '#/components/responses/Forbidden' - '404': - $ref: '#/components/responses/Not-Found' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - description: |- - Retrieve information about the company, as seen in the commerce - platform. - - This may include information like addresses, tax registration details and - social media or website information." - '/companies/{companyId}/connections/{connectionId}/data/commerce-locations': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - get: - summary: List locations - tags: - - Sales - operationId: list-commerce-locations - x-speakeasy-group: sales.locations - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/CommerceLocations' - examples: - Clover: - value: - results: - - id: GA3WP1ZC3ZFK1 - name: Codat - address: - type: Inventory - line1: '301 Ink Rooms, 28 Easton Street' - city: London - region: London - country: GB - postalCode: WC1X 0BE - modifiedDate: '2023-01-09T11:01:03Z' - pageNumber: 1 - pageSize: 2 - totalResults: 1 - _links: - current: - href: /companies/aae80eb3-1f56-41ca-a171-a59f9ee03b26/connections/4a5b633b-cd86-4715-a22b-62be98c4bcc5/data/commerce-locations?page=1&pageSize=2 - self: - href: /companies/aae80eb3-1f56-41ca-a171-a59f9ee03b26/connections/4a5b633b-cd86-4715-a22b-62be98c4bcc5/data/commerce-locations - Lightspeed K Trial: - value: - results: - - id: '647208621834538' - name: QA Shared - New Test Site - address: - type: Unknown - country: AU - modifiedDate: '2023-03-02T09:48:48Z' - pageNumber: 1 - pageSize: 2 - totalResults: 1 - _links: - current: - href: /companies/36e3213b-02f6-4264-96ce-6dd53ea69e57/connections/278ba962-466a-452b-92b0-4bdee3a23463/data/commerce-locations?page=1&pageSize=2 - self: - href: /companies/36e3213b-02f6-4264-96ce-6dd53ea69e57/connections/278ba962-466a-452b-92b0-4bdee3a23463/data/commerce-locations - Shopify: - value: - results: - - id: '61375348894' - name: '301 Ink Rooms, 28 Easton St' - address: - type: Inventory - line1: '301 Ink Rooms, 28 Easton St' - city: London - region: London - country: GB - postalCode: WC1X 0BE - modifiedDate: '2023-02-10T15:18:25Z' - sourceModifiedDate: '2021-03-19T10:06:06' - pageNumber: 1 - pageSize: 2 - totalResults: 1 - _links: - current: - href: /companies/0bc1cc44-c6d2-4537-9591-b1ad6b5e3c94/connections/d38fa6d3-d712-4cf6-9d9d-f03bacd87595/data/commerce-locations?page=1&pageSize=2 - self: - href: /companies/0bc1cc44-c6d2-4537-9591-b1ad6b5e3c94/connections/d38fa6d3-d712-4cf6-9d9d-f03bacd87595/data/commerce-locations - Square: - value: - results: - - id: D8DVHD1G6NT2J - name: Codat Limited - address: - type: Inventory - line1: 301 Ink Rooms - line2: 28 Easton Street - city: London - country: GB - postalCode: WC1X0BE - modifiedDate: '2022-08-02T10:27:32Z' - sourceModifiedDate: '2020-01-17T14:07:30Z' - pageNumber: 1 - pageSize: 2 - totalResults: 1 - _links: - current: - href: /companies/d779fc82-a098-4107-a9fc-c2a1dda3d522/connections/9b098b74-3770-4dad-9001-4c283a39f1e5/data/commerce-locations?page=1&pageSize=2 - self: - href: /companies/d779fc82-a098-4107-a9fc-c2a1dda3d522/connections/9b098b74-3770-4dad-9001-4c283a39f1e5/data/commerce-locations - '401': - $ref: '#/components/responses/Unauthorized' - '402': - $ref: '#/components/responses/Payment-Required' - '403': - $ref: '#/components/responses/Forbidden' - '404': - $ref: '#/components/responses/Not-Found' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - description: "The *List locations* endpoint returns a list of [locations](https://docs.codat.io/lending-api#/schemas/Location) for a given company's connection.\n\n[Locations](https://docs.codat.io/lending-api#/schemas/Location) hold information on the geographic location at which stocks of [products](https://docs.codat.io/lending-api#/schemas/Product) may be held or where [orders](https://docs.codat.io/lending-api#/schemas/Order) were placed.\n\nBefore using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data).\n " - '/companies/{companyId}/connections/{connectionId}/data/commerce-locations/{locationId}': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - - name: locationId - in: path - required: true - schema: - type: string - examples: - - 13d946f0-c5d5-42bc-b092-97ece17923ab - - 9wg4lep4ush5cxs79pl8sozmsndbaukll3ind4g7buqbm1h2 - - 7110701885 - - EILBDVJVNUAGVKRQ - description: Unique identifier for a location. - get: - summary: Get location - tags: - - Sales - operationId: get-commerce-location - x-speakeasy-group: sales.locations - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/CommerceLocation' - examples: - Clover: - value: - id: GA3WP1ZC3ZFK1 - name: Codat - address: - type: Inventory - line1: '301 Ink Rooms, 28 Easton Street' - city: London - region: London - country: GB - postalCode: WC1X 0BE - modifiedDate: '2023-01-09T11:01:03Z' - Lightspeed K Trial: - value: - id: '647208621834538' - name: QA Shared - New Test Site - address: - type: Unknown - country: AU - modifiedDate: '2023-03-02T09:48:48Z' - Shopify: - value: - id: '61375348894' - name: '301 Ink Rooms, 28 Easton St' - address: - type: Inventory - line1: '301 Ink Rooms, 28 Easton St' - city: London - region: London - country: GB - postalCode: WC1X 0BE - modifiedDate: '2023-02-10T15:18:25Z' - sourceModifiedDate: '2021-03-19T10:06:06' - Square: - value: - id: D8DVHD1G6NT2J - name: Codat Limited - address: - type: Inventory - line1: 301 Ink Rooms - line2: 28 Easton Street - city: London - country: GB - postalCode: WC1X0BE - modifiedDate: '2022-08-02T10:27:32Z' - sourceModifiedDate: '2020-01-17T14:07:30Z' - '401': - $ref: '#/components/responses/Unauthorized' - '402': - $ref: '#/components/responses/Payment-Required' - '403': - $ref: '#/components/responses/Forbidden' - '404': - $ref: '#/components/responses/Not-Found' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - description: | - The *Get location* endpoint returns a single location for a given locationId. - - [Locations](https://docs.codat.io/lending-api#/schemas/Location) hold information on the geographic location at which stocks of [products](https://docs.codat.io/lending-api#/schemas/Product) may be held or where [orders](https://docs.codat.io/lending-api#/schemas/Order) were placed. - - Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data). - '/companies/{companyId}/connections/{connectionId}/data/commerce-orders': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - get: - summary: List orders - tags: - - Sales - operationId: list-commerce-orders - x-speakeasy-group: sales.orders - responses: - '200': - description: OK - content: - application/json: - x-speakeasy-usage-example: true - schema: - $ref: '#/components/schemas/CommerceOrders' - examples: - Amazon Seller Central: - value: - results: - - id: 902-1845936-5435065 - orderNumber: 902-1845936-5435065 - country: 'US ' - currency: USD - createdDate: '1970-01-19T03:58:30Z' - totalAmount: 10 - totalRefund: 0 - totalTaxAmount: 1.01 - totalDiscount: 0 - totalGratuity: 0 - orderLineItems: - - id: O05015851154158 - quantity: 1 - taxPercentage: 11.23 - totalAmount: 10 - totalTaxAmount: 1.01 - unitPrice: 8.99 - taxes: [] - productVariantRef: - id: NABetaASINB00551Q3CS - discountAllocations: [] - payments: [] - serviceCharges: [] - modifiedDate: '2023-01-09T09:12:12Z' - sourceModifiedDate: '1970-01-19T03:58:32Z' - pageNumber: 1 - pageSize: 2 - totalResults: 1 - _links: - current: - href: /companies/6a59da96-e6d2-4c5c-ace7-65ba8be6a472/connections/58be1638-2c74-4ad4-8ff3-8c5b98b5f0fe/data/commerce-orders?page=1&pageSize=2 - self: - href: /companies/6a59da96-e6d2-4c5c-ace7-65ba8be6a472/connections/58be1638-2c74-4ad4-8ff3-8c5b98b5f0fe/data/commerce-orders - BigCommerce: - value: - results: - - id: '100' - orderNumber: '100' - country: GBR - currency: GBP - createdDate: '2022-06-15T15:48:18Z' - totalAmount: 675 - totalRefund: 0 - totalTaxAmount: 112.5 - totalDiscount: 10 - totalGratuity: 0 - orderLineItems: - - id: '1' - quantity: 1 - taxPercentage: 20 - totalAmount: 221.64 - totalTaxAmount: 36.94 - unitPrice: 187.5 - taxes: [] - productRef: - id: '86' - name: '[Sample] Able Brewing System' - productVariantRef: - id: '66' - name: '[Sample] Able Brewing System' - discountAllocations: - - name: Manual Discount - totalAmount: 3.36 - - id: '2' - quantity: 5 - taxPercentage: 19.9999 - totalAmount: 438.36 - totalTaxAmount: 73.06 - unitPrice: 74.1667 - taxes: [] - productRef: - id: '81' - name: '[Sample] Orbit Terrarium - Small' - productVariantRef: - id: '65' - name: '[Sample] Orbit Terrarium - Small' - discountAllocations: - - name: Manual Discount - totalAmount: 6.64 - payments: [] - serviceCharges: - - description: Shipping Charge - totalAmount: 15 - taxPercentage: 20 - taxAmount: 2.5 - taxes: [] - quantity: 1 - type: Shipping - customerRef: - id: '0' - modifiedDate: '2023-04-11T10:33:56Z' - sourceModifiedDate: '2022-06-15T15:48:18Z' - - id: '101' - orderNumber: '101' - country: GBR - currency: GBP - createdDate: '2022-06-15T15:49:02Z' - totalAmount: 675 - totalRefund: 0 - totalTaxAmount: 112.5 - totalDiscount: 10 - totalGratuity: 0 - orderLineItems: - - id: '3' - quantity: 1 - taxPercentage: 20 - totalAmount: 221.64 - totalTaxAmount: 36.94 - unitPrice: 187.5 - taxes: [] - productRef: - id: '86' - name: '[Sample] Able Brewing System' - productVariantRef: - id: '66' - name: '[Sample] Able Brewing System' - discountAllocations: - - name: Manual Discount - totalAmount: 3.36 - - id: '4' - quantity: 5 - taxPercentage: 19.9999 - totalAmount: 438.36 - totalTaxAmount: 73.06 - unitPrice: 74.1667 - taxes: [] - productRef: - id: '81' - name: '[Sample] Orbit Terrarium - Small' - productVariantRef: - id: '65' - name: '[Sample] Orbit Terrarium - Small' - discountAllocations: - - name: Manual Discount - totalAmount: 6.64 - payments: [] - serviceCharges: - - description: Shipping Charge - totalAmount: 15 - taxPercentage: 20 - taxAmount: 2.5 - taxes: [] - quantity: 1 - type: Shipping - customerRef: - id: '0' - modifiedDate: '2023-04-11T10:33:56Z' - sourceModifiedDate: '2022-06-15T15:49:02Z' - pageNumber: 1 - pageSize: 2 - totalResults: 14 - _links: - current: - href: /companies/d1ebcf6d-f7f9-4841-8a06-fec12c492a48/connections/7c0a21e8-938a-40a4-b0f7-5ab5d46804b0/data/commerce-orders?page=1&pageSize=2 - self: - href: /companies/d1ebcf6d-f7f9-4841-8a06-fec12c492a48/connections/7c0a21e8-938a-40a4-b0f7-5ab5d46804b0/data/commerce-orders - next: - href: /companies/d1ebcf6d-f7f9-4841-8a06-fec12c492a48/connections/7c0a21e8-938a-40a4-b0f7-5ab5d46804b0/data/commerce-orders?page=2&pageSize=2 - Clover: - value: - results: - - id: 0BCZPWGFC3M16 - orderNumber: 0BCZPWGFC3M16 - country: 'GB ' - currency: GBP - createdDate: '2021-05-24T10:33:41Z' - totalAmount: 1200 - totalRefund: 0 - totalTaxAmount: 200 - totalDiscount: 0 - totalGratuity: 0 - orderLineItems: - - id: 985WY5J4H12XY - quantity: 1 - taxPercentage: 20 - totalAmount: 1200 - totalTaxAmount: 200 - unitPrice: 1000 - taxes: - - taxComponentRef: - id: KAWQTPZP3R9VT - name: VAT 20% - taxAmount: 200 - productRef: - id: NMZHKK6FKF6ZJ - name: Laptop - discountAllocations: [] - payments: - - id: S2D924NX13T2G - serviceCharges: [] - locationRef: - id: GA3WP1ZC3ZFK1 - name: Codat - modifiedDate: '2022-09-08T15:47:43Z' - sourceModifiedDate: '2021-05-24T10:33:45Z' - - id: 0G22TXMYQQE54 - orderNumber: 0G22TXMYQQE54 - country: 'GB ' - currency: GBP - createdDate: '2021-05-24T11:24:48Z' - totalAmount: 1340 - totalRefund: 0 - totalTaxAmount: 240 - totalDiscount: 100 - totalGratuity: 0 - orderLineItems: - - id: GZ73TPFAV6NTP - quantity: 1 - taxPercentage: 20 - totalAmount: 1440 - totalTaxAmount: 240 - unitPrice: 1200 - taxes: - - taxComponentRef: - id: KAWQTPZP3R9VT - name: VAT 20% - taxAmount: 240 - productRef: - id: QVAV6KM1457B0 - name: Desktop - discountAllocations: [] - - id: 'Discount: �10 off' - quantity: 1 - taxPercentage: 0 - totalAmount: -100 - totalTaxAmount: 0 - unitPrice: 0 - taxes: [] - discountAllocations: - - name: �10 off - totalAmount: 100 - payments: - - id: H726AAJQYE3SP - serviceCharges: [] - locationRef: - id: GA3WP1ZC3ZFK1 - name: Codat - modifiedDate: '2022-09-08T15:47:43Z' - sourceModifiedDate: '2021-05-24T11:24:52Z' - pageNumber: 1 - pageSize: 2 - totalResults: 76 - _links: - current: - href: /companies/1535235d-5efb-4d17-9d94-491c1f35ff92/connections/ed802898-f920-486b-b553-d7b4c1ac6c8d/data/commerce-orders?page=1&pageSize=2 - self: - href: /companies/1535235d-5efb-4d17-9d94-491c1f35ff92/connections/ed802898-f920-486b-b553-d7b4c1ac6c8d/data/commerce-orders - next: - href: /companies/1535235d-5efb-4d17-9d94-491c1f35ff92/connections/ed802898-f920-486b-b553-d7b4c1ac6c8d/data/commerce-orders?page=2&pageSize=2 - Lightspeed K Trial: - value: - results: - - id: A61465.1 - orderNumber: A61465.1 - country: 'AU ' - currency: AUD - createdDate: '2022-12-09T02:27:14Z' - closedDate: '2022-12-09T02:27:46Z' - totalAmount: 5 - totalRefund: 0 - totalTaxAmount: 0.45 - totalDiscount: 0 - totalGratuity: 0 - orderLineItems: - - id: S61465.1 - quantity: 1 - taxPercentage: 10 - totalAmount: 5 - totalTaxAmount: 0.45 - unitPrice: 4.5455 - taxes: - - taxComponentRef: - id: GST10 - name: 10% GST - taxAmount: 0.45 - productRef: - id: '647208621834617' - name: Hot Chocolate - discountAllocations: [] - payments: - - id: 'R61465.1_1_A61465.1_2022-12-09T02:27:46.273Z' - amount: 5 - currency: AUD - type: Unknown - status: Paid - dueDate: '0001-01-01T00:00:00' - createdDate: '2022-12-09T02:27:46' - modifiedDate: '2023-03-02T09:50:43' - serviceCharges: [] - locationRef: - id: '647208621834538' - name: QA Shared - New Test Site - modifiedDate: '2023-03-08T13:49:34Z' - - id: A61465.2 - orderNumber: A61465.2 - country: 'AU ' - currency: AUD - createdDate: '2022-12-12T23:20:12Z' - closedDate: '2022-12-12T23:21:29Z' - totalAmount: 10 - totalRefund: 0 - totalTaxAmount: 0.91 - totalDiscount: 0 - totalGratuity: 0 - orderLineItems: - - id: S61465.2 - quantity: 1 - taxPercentage: 10 - totalAmount: 5 - totalTaxAmount: 0.46 - unitPrice: 4.5455 - taxes: - - taxComponentRef: - id: GST10 - name: 10% GST - taxAmount: 0.46 - productRef: - id: '647208621834663' - name: Royal - discountAllocations: [] - - id: S61465.3 - quantity: 1 - taxPercentage: 10 - totalAmount: 5 - totalTaxAmount: 0.45 - unitPrice: 4.5455 - taxes: - - taxComponentRef: - id: GST10 - name: 10% GST - taxAmount: 0.45 - productRef: - id: '647208621834623' - name: Mocha - discountAllocations: [] - payments: - - id: 'R61465.2_1_A61465.2_2022-12-12T23:21:29.006Z' - amount: 10 - currency: AUD - type: Unknown - status: Paid - dueDate: '0001-01-01T00:00:00' - createdDate: '2022-12-12T23:21:29' - modifiedDate: '2023-03-02T09:50:43' - serviceCharges: [] - locationRef: - id: '647208621834538' - name: QA Shared - New Test Site - modifiedDate: '2023-03-08T13:49:34Z' - pageNumber: 1 - pageSize: 2 - totalResults: 24 - _links: - current: - href: /companies/36e3213b-02f6-4264-96ce-6dd53ea69e57/connections/278ba962-466a-452b-92b0-4bdee3a23463/data/commerce-orders?page=1&pageSize=2 - self: - href: /companies/36e3213b-02f6-4264-96ce-6dd53ea69e57/connections/278ba962-466a-452b-92b0-4bdee3a23463/data/commerce-orders - next: - href: /companies/36e3213b-02f6-4264-96ce-6dd53ea69e57/connections/278ba962-466a-452b-92b0-4bdee3a23463/data/commerce-orders?page=2&pageSize=2 - Mollie: - value: - results: - - id: ord_2at3ck - orderNumber: '1337' - country: NLD - currency: EUR - createdDate: '2022-01-20T09:28:32' - totalAmount: 1027.99 - totalRefund: 0 - totalTaxAmount: 178.41 - totalDiscount: 100 - totalGratuity: 0 - orderLineItems: - - id: odl_1.3tvc32 - quantity: 1 - taxPercentage: 21 - totalAmount: 329.99 - totalTaxAmount: 57.27 - unitPrice: 329.99 - taxes: [] - discountAllocations: [] - - id: odl_1.x95vuk - quantity: 2 - taxPercentage: 21 - totalAmount: 698 - totalTaxAmount: 121.14 - unitPrice: 399 - taxes: [] - discountAllocations: - - name: Discount - totalAmount: 100 - payments: - - id: tr_GpHuaqHrca - amount: 1027.99 - currency: EUR - type: OnlineCard - status: Failed - dueDate: '0001-01-01T00:00:00' - createdDate: '2022-02-08T15:44:22' - modifiedDate: '2022-03-17T15:47:28' - sourceModifiedDate: '2022-02-08T16:02:02' - - id: tr_w7RGQc3k3V - amount: 1027.99 - currency: EUR - type: OnlineCard - status: Failed - dueDate: '0001-01-01T00:00:00' - createdDate: '2022-01-20T09:28:32' - modifiedDate: '2022-03-17T15:47:28' - sourceModifiedDate: '2022-01-20T09:46:02' - serviceCharges: [] - modifiedDate: '2022-03-17T15:47:28Z' - pageNumber: 1 - pageSize: 2 - totalResults: 1 - _links: - current: - href: /companies/a68cb447-182d-4bbe-be1a-f526d11d69d5/connections/dfbf847b-cde8-4b00-b2f9-af51dec0d337/data/commerce-orders?page=1&pageSize=2 - self: - href: /companies/a68cb447-182d-4bbe-be1a-f526d11d69d5/connections/dfbf847b-cde8-4b00-b2f9-af51dec0d337/data/commerce-orders - Mollie Test: - value: - results: - - id: ord_2at3ck - orderNumber: '1337' - country: NLD - currency: EUR - createdDate: '2022-01-20T09:28:32' - totalAmount: 1027.99 - totalRefund: 0 - totalTaxAmount: 178.41 - totalDiscount: 100 - totalGratuity: 0 - orderLineItems: - - id: odl_1.x95vuk - quantity: 2 - taxPercentage: 21 - totalAmount: 698 - totalTaxAmount: 121.14 - unitPrice: 338.43 - taxes: [] - discountAllocations: - - name: Discount - totalAmount: 100 - - id: odl_1.3tvc32 - quantity: 1 - taxPercentage: 21 - totalAmount: 329.99 - totalTaxAmount: 57.27 - unitPrice: 272.72 - taxes: [] - discountAllocations: [] - payments: - - id: tr_GpHuaqHrca - - id: tr_w7RGQc3k3V - serviceCharges: [] - modifiedDate: '2022-08-17T11:33:19Z' - pageNumber: 1 - pageSize: 2 - totalResults: 1 - _links: - current: - href: /companies/b978f9fe-8d63-4cfc-b2c2-b61b72e22785/connections/d564f8fd-0766-4ab8-a427-7c893f9b9ff6/data/commerce-orders?page=1&pageSize=2 - self: - href: /companies/b978f9fe-8d63-4cfc-b2c2-b61b72e22785/connections/d564f8fd-0766-4ab8-a427-7c893f9b9ff6/data/commerce-orders - Partner Commerce: - value: - results: - - id: 6d135134-2f77-45f7-af3d-ee873e42da45 - orderNumber: '93128704' - country: 'GM ' - currency: CAD - createdDate: '2021-02-10T01:37:23' - totalAmount: 203.82 - totalRefund: 0 - totalTaxAmount: 40.77 - totalDiscount: 25.63 - totalGratuity: 80.81 - orderLineItems: - - id: 89f5e83a-c87d-4b60-a009-0ea9065867aa - quantity: 3 - taxPercentage: 20 - totalAmount: 85.44 - totalTaxAmount: 17.09 - unitPrice: 28.48 - taxes: [] - productRef: - id: 98ef828e-33e1-4c23-9383-a029f1d6a3a6 - productVariantRef: - id: dffcd99e-13bb-4b89-89ef-719b3b0777e6 - discountAllocations: - - name: Discount - totalAmount: 8.54 - - name: Discount - totalAmount: 17.09 - - id: 4c65f0d9-05c8-48eb-9c4a-1774f5073e66 - quantity: 3 - taxPercentage: 20 - totalAmount: 118.38 - totalTaxAmount: 23.68 - unitPrice: 39.46 - taxes: [] - productRef: - id: 561f8efb-3429-4c1f-a014-1fa595f9b3c6 - productVariantRef: - id: e0715a7a-0179-4a2e-b40d-800fd2f36764 - discountAllocations: [] - payments: - - id: 3ec3d4c4-8003-4f77-a44e-08b3e17057bf - serviceCharges: [] - locationRef: - id: d84a8ce0-d7e4-400a-b07a-d4bddd9c1873 - customerRef: - id: 0dc0206d-f22f-48c9-a4e5-79f8383c3426 - modifiedDate: '2022-05-12T07:22:02Z' - sourceModifiedDate: '2021-02-10T01:37:23' - pageNumber: 1 - pageSize: 2 - totalResults: 1 - _links: - current: - href: /companies/4342cb7d-d7b1-492f-851e-4aa5084933c1/connections/9e5422fa-f03f-4d58-bcf4-161b574ab350/data/commerce-orders?page=1&pageSize=2 - self: - href: /companies/4342cb7d-d7b1-492f-851e-4aa5084933c1/connections/9e5422fa-f03f-4d58-bcf4-161b574ab350/data/commerce-orders - PrestaShop: - value: - results: - - id: '1' - orderNumber: XKBKNABJK - country: 'US ' - currency: USD - createdDate: '2021-09-02T06:00:54' - totalAmount: 61.8 - totalRefund: 0 - totalTaxAmount: 0 - totalDiscount: 0 - totalGratuity: 0 - orderLineItems: - - id: '1' - quantity: 1 - taxPercentage: 0 - totalAmount: 23.9 - totalTaxAmount: 0 - unitPrice: 23.9 - taxes: [] - productRef: - id: '1' - name: Hummingbird printed t-shirt - discountAllocations: [] - - id: '2' - quantity: 1 - taxPercentage: 0 - totalAmount: 35.9 - totalTaxAmount: 0 - unitPrice: 35.9 - taxes: [] - productRef: - id: '2' - name: Hummingbird printed sweater - discountAllocations: [] - payments: [] - serviceCharges: - - description: Shipping - totalAmount: 2 - taxPercentage: 0 - taxAmount: 0 - taxes: [] - quantity: 1 - type: Shipping - customerRef: - id: '1' - name: John DOE - modifiedDate: '2022-01-26T15:09:42Z' - sourceModifiedDate: '2021-09-02T06:00:54' - - id: '10' - orderNumber: UFQZXPGQU - country: 'US ' - currency: USD - createdDate: '2021-09-28T08:09:46' - totalAmount: 19.12 - totalRefund: 0 - totalTaxAmount: 0 - totalDiscount: 4.78 - totalGratuity: 0 - orderLineItems: - - id: '14' - quantity: 1 - taxPercentage: 0 - totalAmount: 19.12 - totalTaxAmount: 0 - unitPrice: 23.9 - taxes: [] - productRef: - id: '1' - name: Hummingbird printed t-shirt - discountAllocations: - - name: 20% Discount - totalAmount: 4.78 - payments: [] - serviceCharges: [] - customerRef: - id: '5' - name: Tobi Yinusa - modifiedDate: '2022-01-26T15:09:42Z' - sourceModifiedDate: '2021-09-28T08:09:46' - pageNumber: 1 - pageSize: 2 - totalResults: 10 - _links: - current: - href: /companies/2bf78e61-58ca-421a-a430-5dfa59cf15b0/connections/30774c1f-fdcd-491e-9e60-47e316b3ab9b/data/commerce-orders?page=1&pageSize=2 - self: - href: /companies/2bf78e61-58ca-421a-a430-5dfa59cf15b0/connections/30774c1f-fdcd-491e-9e60-47e316b3ab9b/data/commerce-orders - next: - href: /companies/2bf78e61-58ca-421a-a430-5dfa59cf15b0/connections/30774c1f-fdcd-491e-9e60-47e316b3ab9b/data/commerce-orders?page=2&pageSize=2 - Shopify: - value: - results: - - id: '3684119445662' - orderNumber: '1007' - country: XXX - currency: GBP - createdDate: '2021-03-19T13:18:33' - totalAmount: 600 - totalRefund: 0 - totalTaxAmount: 0 - totalDiscount: 0 - totalGratuity: 0 - orderLineItems: - - id: '9670458146974' - quantity: 4 - taxPercentage: 0 - totalAmount: 600 - totalTaxAmount: 0 - unitPrice: 150 - taxes: [] - productRef: - id: '6595494117534' - name: Monitor - productVariantRef: - id: '39444526694558' - name: Monitor - discountAllocations: [] - payments: - - id: '4630233579678' - amount: 600 - currency: GBP - type: OnlineCard - status: Failed - paymentProvider: Shopify Payments - dueDate: '0001-01-01T00:00:00' - createdDate: '2021-03-19T13:17:49' - modifiedDate: '2023-02-10T15:18:24' - sourceModifiedDate: '2021-03-19T13:17:49' - - id: '4630234497182' - amount: 600 - currency: GBP - type: OnlineCard - status: Paid - paymentProvider: Shopify Payments - dueDate: '0001-01-01T00:00:00' - createdDate: '2021-03-19T13:18:29' - modifiedDate: '2023-02-10T15:18:24' - sourceModifiedDate: '2021-03-19T13:18:29' - serviceCharges: [] - customerRef: - id: '5097398534302' - name: Qa Test - modifiedDate: '2023-02-10T15:18:24Z' - sourceModifiedDate: '2022-08-01T13:12:35' - - id: '3684180361374' - orderNumber: '1011' - country: XXX - currency: GBP - createdDate: '2021-03-19T13:57:30' - totalAmount: 105 - totalRefund: 0 - totalTaxAmount: 0 - totalDiscount: 0 - totalGratuity: 0 - orderLineItems: - - id: '9670570901662' - quantity: 3 - taxPercentage: 0 - totalAmount: 105 - totalTaxAmount: 0 - unitPrice: 35 - taxes: [] - productRef: - id: '6595497787550' - name: Keyboard - productVariantRef: - id: '39444537213086' - name: Keyboard - discountAllocations: [] - payments: - - id: '4630311108766' - amount: 105 - currency: GBP - type: Unknown - status: Paid - paymentProvider: Manual - dueDate: '0001-01-01T00:00:00' - createdDate: '2021-03-19T13:57:30' - modifiedDate: '2023-02-10T15:18:24' - sourceModifiedDate: '2021-03-19T13:57:30' - serviceCharges: [] - customerRef: - id: '5097398534302' - name: Qa Test - modifiedDate: '2023-02-10T15:18:24Z' - sourceModifiedDate: '2022-08-01T13:12:35' - pageNumber: 1 - pageSize: 2 - totalResults: 30 - _links: - current: - href: /companies/0bc1cc44-c6d2-4537-9591-b1ad6b5e3c94/connections/d38fa6d3-d712-4cf6-9d9d-f03bacd87595/data/commerce-orders?page=1&pageSize=2 - self: - href: /companies/0bc1cc44-c6d2-4537-9591-b1ad6b5e3c94/connections/d38fa6d3-d712-4cf6-9d9d-f03bacd87595/data/commerce-orders - next: - href: /companies/0bc1cc44-c6d2-4537-9591-b1ad6b5e3c94/connections/d38fa6d3-d712-4cf6-9d9d-f03bacd87595/data/commerce-orders?page=2&pageSize=2 - Square: - value: - results: - - id: BDYNvtIYyWClkTjnh99CFR3fPwKZY - orderNumber: BDYNvtIYyWClkTjnh99CFR3fPwKZY - country: 'GB ' - currency: GBP - createdDate: '2021-02-14T19:38:28Z' - closedDate: '0001-01-01T00:00:00' - totalAmount: 50 - totalRefund: 0 - totalTaxAmount: 0 - totalDiscount: 0 - totalGratuity: 0 - orderLineItems: - - id: lLJpgArKQbBEn9nTvLRHP - quantity: 1 - taxPercentage: 0 - totalAmount: 50 - totalTaxAmount: 0 - unitPrice: 50 - taxes: [] - discountAllocations: [] - payments: [] - serviceCharges: [] - locationRef: - id: D8DVHD1G6NT2J - name: Codat Limited - modifiedDate: '2022-08-02T10:27:33Z' - sourceModifiedDate: '2021-02-14T19:38:28Z' - pageNumber: 1 - pageSize: 2 - totalResults: 1 - _links: - current: - href: /companies/d779fc82-a098-4107-a9fc-c2a1dda3d522/connections/9b098b74-3770-4dad-9001-4c283a39f1e5/data/commerce-orders?page=1&pageSize=2 - self: - href: /companies/d779fc82-a098-4107-a9fc-c2a1dda3d522/connections/9b098b74-3770-4dad-9001-4c283a39f1e5/data/commerce-orders - SumUp: - value: - results: - - id: 07efcdd0-7f61-4d82-957f-52e8f0bd3f89 - orderNumber: TECXTU2KT6 - country: XXX - currency: GBP - createdDate: '2021-03-30T12:20:40Z' - totalAmount: 200 - totalRefund: 0 - totalTaxAmount: 0 - totalDiscount: 0 - totalGratuity: 0 - orderLineItems: - - id: Product undefined by SumUp - quantity: 1 - taxPercentage: 0 - totalAmount: 200 - totalTaxAmount: 0 - unitPrice: 200 - taxes: [] - discountAllocations: [] - payments: - - id: 07efcdd0-7f61-4d82-957f-52e8f0bd3f89 - serviceCharges: [] - modifiedDate: '2022-09-14T10:58:04Z' - - id: 46d36a64-ea48-4e37-9340-3548cbf3ca2f - orderNumber: TNEU7333HZ - country: XXX - currency: GBP - createdDate: '2021-03-26T21:09:59Z' - totalAmount: 15 - totalRefund: 0 - totalTaxAmount: 0 - totalDiscount: 0 - totalGratuity: 0 - orderLineItems: - - id: Sale of some product - quantity: 1 - taxPercentage: 0 - totalAmount: 15 - totalTaxAmount: 0 - unitPrice: 15 - taxes: [] - discountAllocations: [] - payments: - - id: 46d36a64-ea48-4e37-9340-3548cbf3ca2f - serviceCharges: [] - modifiedDate: '2022-09-14T10:58:04Z' - pageNumber: 1 - pageSize: 2 - totalResults: 6 - _links: - current: - href: /companies/e170dbe2-be50-474f-b449-82add37108de/connections/1e631dd5-a30b-4bad-ad5c-315c9743535b/data/commerce-orders?page=1&pageSize=2 - self: - href: /companies/e170dbe2-be50-474f-b449-82add37108de/connections/1e631dd5-a30b-4bad-ad5c-315c9743535b/data/commerce-orders - next: - href: /companies/e170dbe2-be50-474f-b449-82add37108de/connections/1e631dd5-a30b-4bad-ad5c-315c9743535b/data/commerce-orders?page=2&pageSize=2 - WooCommerce: - value: - results: - - id: '111' - orderNumber: '111' - country: 'GB ' - currency: GBP - createdDate: '2021-03-27T23:29:38Z' - totalAmount: 39.5 - totalRefund: 0 - totalTaxAmount: 6 - totalDiscount: 0 - totalGratuity: 0 - orderLineItems: - - id: '53' - quantity: 2 - taxPercentage: 20 - totalAmount: 12 - totalTaxAmount: 2 - unitPrice: 5 - taxes: [] - productRef: - id: '82' - discountAllocations: [] - - id: '54' - quantity: 2 - taxPercentage: 20 - totalAmount: 24 - totalTaxAmount: 4 - unitPrice: 10 - taxes: [] - productRef: - id: '81' - discountAllocations: [] - payments: [] - serviceCharges: - - description: Royal Mail - totalAmount: 3.5 - taxPercentage: 0 - taxAmount: 0 - taxes: [] - quantity: 1 - type: Shipping - customerRef: - id: '200585744' - modifiedDate: '2022-07-11T15:35:48Z' - sourceModifiedDate: '2021-04-01T13:34:59Z' - - id: '145' - orderNumber: '145' - country: 'GB ' - currency: GBP - createdDate: '2021-09-24T12:15:29Z' - totalAmount: 27.5 - totalRefund: 0 - totalTaxAmount: 5.5 - totalDiscount: 0 - totalGratuity: 0 - orderLineItems: - - id: '59' - quantity: 2 - taxPercentage: 25 - totalAmount: 27.5 - totalTaxAmount: 5.5 - unitPrice: 11 - taxes: [] - productRef: - id: '87' - discountAllocations: [] - payments: [] - serviceCharges: [] - modifiedDate: '2022-07-11T15:35:48Z' - sourceModifiedDate: '2022-03-24T16:01:23Z' - pageNumber: 1 - pageSize: 2 - totalResults: 25 - _links: - current: - href: /companies/00396b78-7113-4b1f-996f-4c561b00573a/connections/b39ed7d6-5eda-44c5-85bb-647d03edd649/data/commerce-orders?page=1&pageSize=2 - self: - href: /companies/00396b78-7113-4b1f-996f-4c561b00573a/connections/b39ed7d6-5eda-44c5-85bb-647d03edd649/data/commerce-orders - next: - href: /companies/00396b78-7113-4b1f-996f-4c561b00573a/connections/b39ed7d6-5eda-44c5-85bb-647d03edd649/data/commerce-orders?page=2&pageSize=2 - Zettle: - value: - results: - - id: 7TunRi2XEeueVK3fSQEQIw - orderNumber: '3' - country: 'GB ' - currency: GBP - createdDate: '2020-11-23T14:27:20Z' - totalAmount: 45 - totalRefund: 0 - totalTaxAmount: 0 - totalDiscount: 0 - totalGratuity: 0 - orderLineItems: - - id: '0' - quantity: 1 - taxPercentage: 0 - totalAmount: 45 - totalTaxAmount: 0 - unitPrice: 45 - taxes: [] - productRef: - id: 7f9f31e4-2d97-11eb-9f55-acde48001122 - productVariantRef: - id: 7f9f35ea-2d97-11eb-9f55-acde48001122 - discountAllocations: [] - payments: - - id: ed97bcde-2d97-11eb-a42e-25130f2dd258 - amount: 45 - currency: GBP - type: Paypal - status: Unknown - dueDate: '0001-01-01T00:00:00' - createdDate: '2020-11-23T14:27:19' - modifiedDate: '2021-10-27T15:22:37' - serviceCharges: [] - modifiedDate: '2021-10-27T15:22:37Z' - sourceModifiedDate: '2020-11-23T14:27:20Z' - - id: CV5TJC2YEeueVK3fSQEQIw - orderNumber: '4' - country: 'GB ' - currency: GBP - createdDate: '2020-11-23T14:28:05Z' - totalAmount: 25 - totalRefund: 0 - totalTaxAmount: 1.19 - totalDiscount: 0 - totalGratuity: 0 - orderLineItems: - - id: '0' - quantity: 1 - taxPercentage: 5 - totalAmount: 25 - totalTaxAmount: 1.19 - unitPrice: 23.81 - taxes: [] - productRef: - id: 89570bee-2d97-11eb-9f55-acde48001122 - productVariantRef: - id: 89570c52-2d97-11eb-9f55-acde48001122 - discountAllocations: [] - payments: - - id: 09b94cfc-2d98-11eb-8021-0e1b9dcbeca1 - amount: 25 - currency: GBP - type: Paypal - status: Unknown - dueDate: '0001-01-01T00:00:00' - createdDate: '2020-11-23T14:28:04' - modifiedDate: '2021-10-27T15:22:37' - serviceCharges: [] - modifiedDate: '2021-10-27T15:22:37Z' - sourceModifiedDate: '2020-11-23T14:28:05Z' - pageNumber: 1 - pageSize: 2 - totalResults: 6 - _links: - current: - href: /companies/9d448ad0-4508-47fc-bd3b-6950493151f1/connections/c7baa8da-3302-464b-8aa1-edcd4c900902/data/commerce-orders?page=1&pageSize=2 - self: - href: /companies/9d448ad0-4508-47fc-bd3b-6950493151f1/connections/c7baa8da-3302-464b-8aa1-edcd4c900902/data/commerce-orders - next: - href: /companies/9d448ad0-4508-47fc-bd3b-6950493151f1/connections/c7baa8da-3302-464b-8aa1-edcd4c900902/data/commerce-orders?page=2&pageSize=2 - '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' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - description: "The *List orders* endpoint returns a list of [orders](https://docs.codat.io/lending-api#/schemas/Order) for a given company's connection.\n\n[Orders](https://docs.codat.io/lending-api#/schemas/Order) contain the transaction details for all products sold by the company.\n\nBefore using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data).\n " - parameters: - - $ref: '#/components/parameters/page' - - $ref: '#/components/parameters/pageSize' - - $ref: '#/components/parameters/query' - - $ref: '#/components/parameters/orderBy' - '/companies/{companyId}/connections/{connectionId}/data/commerce-orders/{orderId}': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - - name: orderId - in: path - required: true - schema: - type: string - examples: - - 13d946f0-c5d5-42bc-b092-97ece17923ab - - 9wg4lep4ush5cxs79pl8sozmsndbaukll3ind4g7buqbm1h2 - - 7110701885 - - EILBDVJVNUAGVKRQ - description: Unique identifier for an order. - get: - summary: Get order - tags: - - Sales - operationId: get-commerce-order - x-speakeasy-group: sales.orders - responses: - '200': - description: OK - content: - application/json: - x-speakeasy-usage-example: true - schema: - $ref: '#/components/schemas/CommerceOrder' - examples: - Amazon Seller Central: - value: - id: 902-1845936-5435065 - orderNumber: 902-1845936-5435065 - country: 'US ' - currency: USD - createdDate: '1970-01-19T03:58:30Z' - totalAmount: 10 - totalRefund: 0 - totalTaxAmount: 1.01 - totalDiscount: 0 - totalGratuity: 0 - orderLineItems: - - id: O05015851154158 - quantity: 1 - taxPercentage: 11.23 - totalAmount: 10 - totalTaxAmount: 1.01 - unitPrice: 8.99 - taxes: [] - productVariantRef: - id: NABetaASINB00551Q3CS - discountAllocations: [] - payments: [] - serviceCharges: [] - modifiedDate: '2023-01-09T09:12:12Z' - sourceModifiedDate: '1970-01-19T03:58:32Z' - BigCommerce: - value: - id: '100' - orderNumber: '100' - country: GBR - currency: GBP - createdDate: '2022-06-15T15:48:18Z' - totalAmount: 675 - totalRefund: 0 - totalTaxAmount: 112.5 - totalDiscount: 10 - totalGratuity: 0 - orderLineItems: - - id: '1' - quantity: 1 - taxPercentage: 20 - totalAmount: 221.64 - totalTaxAmount: 36.94 - unitPrice: 187.5 - taxes: [] - productRef: - id: '86' - name: '[Sample] Able Brewing System' - productVariantRef: - id: '66' - name: '[Sample] Able Brewing System' - discountAllocations: - - name: Manual Discount - totalAmount: 3.36 - - id: '2' - quantity: 5 - taxPercentage: 19.9999 - totalAmount: 438.36 - totalTaxAmount: 73.06 - unitPrice: 74.1667 - taxes: [] - productRef: - id: '81' - name: '[Sample] Orbit Terrarium - Small' - productVariantRef: - id: '65' - name: '[Sample] Orbit Terrarium - Small' - discountAllocations: - - name: Manual Discount - totalAmount: 6.64 - payments: [] - serviceCharges: - - description: Shipping Charge - totalAmount: 15 - taxPercentage: 20 - taxAmount: 2.5 - taxes: [] - quantity: 1 - type: Shipping - customerRef: - id: '0' - modifiedDate: '2023-04-11T10:33:56Z' - sourceModifiedDate: '2022-06-15T15:48:18Z' - Clover: - value: - id: 0BCZPWGFC3M16 - orderNumber: 0BCZPWGFC3M16 - country: 'GB ' - currency: GBP - createdDate: '2021-05-24T10:33:41Z' - totalAmount: 1200 - totalRefund: 0 - totalTaxAmount: 200 - totalDiscount: 0 - totalGratuity: 0 - orderLineItems: - - id: 985WY5J4H12XY - quantity: 1 - taxPercentage: 20 - totalAmount: 1200 - totalTaxAmount: 200 - unitPrice: 1000 - taxes: - - taxComponentRef: - id: KAWQTPZP3R9VT - name: VAT 20% - taxAmount: 200 - productRef: - id: NMZHKK6FKF6ZJ - name: Laptop - discountAllocations: [] - payments: - - id: S2D924NX13T2G - serviceCharges: [] - locationRef: - id: GA3WP1ZC3ZFK1 - name: Codat - modifiedDate: '2022-09-08T15:47:43Z' - sourceModifiedDate: '2021-05-24T10:33:45Z' - Lightspeed K Trial: - value: - id: A61465.1 - orderNumber: A61465.1 - country: 'AU ' - currency: AUD - createdDate: '2022-12-09T02:27:14Z' - closedDate: '2022-12-09T02:27:46Z' - totalAmount: 5 - totalRefund: 0 - totalTaxAmount: 0.45 - totalDiscount: 0 - totalGratuity: 0 - orderLineItems: - - id: S61465.1 - quantity: 1 - taxPercentage: 10 - totalAmount: 5 - totalTaxAmount: 0.45 - unitPrice: 4.5455 - taxes: - - taxComponentRef: - id: GST10 - name: 10% GST - taxAmount: 0.45 - productRef: - id: '647208621834617' - name: Hot Chocolate - discountAllocations: [] - payments: - - id: 'R61465.1_1_A61465.1_2022-12-09T02:27:46.273Z' - amount: 5 - currency: AUD - type: Unknown - status: Paid - dueDate: '0001-01-01T00:00:00' - createdDate: '2022-12-09T02:27:46' - modifiedDate: '2023-03-02T09:50:43' - serviceCharges: [] - locationRef: - id: '647208621834538' - name: QA Shared - New Test Site - modifiedDate: '2023-03-08T13:49:34Z' - Mollie: - value: - id: ord_2at3ck - orderNumber: '1337' - country: NLD - currency: EUR - createdDate: '2022-01-20T09:28:32' - totalAmount: 1027.99 - totalRefund: 0 - totalTaxAmount: 178.41 - totalDiscount: 100 - totalGratuity: 0 - orderLineItems: - - id: odl_1.3tvc32 - quantity: 1 - taxPercentage: 21 - totalAmount: 329.99 - totalTaxAmount: 57.27 - unitPrice: 329.99 - taxes: [] - discountAllocations: [] - - id: odl_1.x95vuk - quantity: 2 - taxPercentage: 21 - totalAmount: 698 - totalTaxAmount: 121.14 - unitPrice: 399 - taxes: [] - discountAllocations: - - name: Discount - totalAmount: 100 - payments: - - id: tr_GpHuaqHrca - amount: 1027.99 - currency: EUR - type: OnlineCard - status: Failed - dueDate: '0001-01-01T00:00:00' - createdDate: '2022-02-08T15:44:22' - modifiedDate: '2022-03-17T15:47:28' - sourceModifiedDate: '2022-02-08T16:02:02' - - id: tr_w7RGQc3k3V - amount: 1027.99 - currency: EUR - type: OnlineCard - status: Failed - dueDate: '0001-01-01T00:00:00' - createdDate: '2022-01-20T09:28:32' - modifiedDate: '2022-03-17T15:47:28' - sourceModifiedDate: '2022-01-20T09:46:02' - serviceCharges: [] - modifiedDate: '2022-03-17T15:47:28Z' - Mollie Test: - value: - id: ord_2at3ck - orderNumber: '1337' - country: NLD - currency: EUR - createdDate: '2022-01-20T09:28:32' - totalAmount: 1027.99 - totalRefund: 0 - totalTaxAmount: 178.41 - totalDiscount: 100 - totalGratuity: 0 - orderLineItems: - - id: odl_1.x95vuk - quantity: 2 - taxPercentage: 21 - totalAmount: 698 - totalTaxAmount: 121.14 - unitPrice: 338.43 - taxes: [] - discountAllocations: - - name: Discount - totalAmount: 100 - - id: odl_1.3tvc32 - quantity: 1 - taxPercentage: 21 - totalAmount: 329.99 - totalTaxAmount: 57.27 - unitPrice: 272.72 - taxes: [] - discountAllocations: [] - payments: - - id: tr_GpHuaqHrca - - id: tr_w7RGQc3k3V - serviceCharges: [] - modifiedDate: '2022-08-17T11:33:19Z' - Partner Commerce: - value: - id: 6d135134-2f77-45f7-af3d-ee873e42da45 - orderNumber: '93128704' - country: 'GM ' - currency: CAD - createdDate: '2021-02-10T01:37:23' - totalAmount: 203.82 - totalRefund: 0 - totalTaxAmount: 40.77 - totalDiscount: 25.63 - totalGratuity: 80.81 - orderLineItems: - - id: 89f5e83a-c87d-4b60-a009-0ea9065867aa - quantity: 3 - taxPercentage: 20 - totalAmount: 85.44 - totalTaxAmount: 17.09 - unitPrice: 28.48 - taxes: [] - productRef: - id: 98ef828e-33e1-4c23-9383-a029f1d6a3a6 - productVariantRef: - id: dffcd99e-13bb-4b89-89ef-719b3b0777e6 - discountAllocations: - - name: Discount - totalAmount: 8.54 - - name: Discount - totalAmount: 17.09 - - id: 4c65f0d9-05c8-48eb-9c4a-1774f5073e66 - quantity: 3 - taxPercentage: 20 - totalAmount: 118.38 - totalTaxAmount: 23.68 - unitPrice: 39.46 - taxes: [] - productRef: - id: 561f8efb-3429-4c1f-a014-1fa595f9b3c6 - productVariantRef: - id: e0715a7a-0179-4a2e-b40d-800fd2f36764 - discountAllocations: [] - payments: - - id: 3ec3d4c4-8003-4f77-a44e-08b3e17057bf - serviceCharges: [] - locationRef: - id: d84a8ce0-d7e4-400a-b07a-d4bddd9c1873 - customerRef: - id: 0dc0206d-f22f-48c9-a4e5-79f8383c3426 - modifiedDate: '2022-05-12T07:22:02Z' - sourceModifiedDate: '2021-02-10T01:37:23' - PrestaShop: - value: - id: '1' - orderNumber: XKBKNABJK - country: 'US ' - currency: USD - createdDate: '2021-09-02T06:00:54' - totalAmount: 61.8 - totalRefund: 0 - totalTaxAmount: 0 - totalDiscount: 0 - totalGratuity: 0 - orderLineItems: - - id: '1' - quantity: 1 - taxPercentage: 0 - totalAmount: 23.9 - totalTaxAmount: 0 - unitPrice: 23.9 - taxes: [] - productRef: - id: '1' - name: Hummingbird printed t-shirt - discountAllocations: [] - - id: '2' - quantity: 1 - taxPercentage: 0 - totalAmount: 35.9 - totalTaxAmount: 0 - unitPrice: 35.9 - taxes: [] - productRef: - id: '2' - name: Hummingbird printed sweater - discountAllocations: [] - payments: [] - serviceCharges: - - description: Shipping - totalAmount: 2 - taxPercentage: 0 - taxAmount: 0 - taxes: [] - quantity: 1 - type: Shipping - customerRef: - id: '1' - name: John DOE - modifiedDate: '2022-01-26T15:09:42Z' - sourceModifiedDate: '2021-09-02T06:00:54' - Shopify: - value: - id: '3684119445662' - orderNumber: '1007' - country: XXX - currency: GBP - createdDate: '2021-03-19T13:18:33' - totalAmount: 600 - totalRefund: 0 - totalTaxAmount: 0 - totalDiscount: 0 - totalGratuity: 0 - orderLineItems: - - id: '9670458146974' - quantity: 4 - taxPercentage: 0 - totalAmount: 600 - totalTaxAmount: 0 - unitPrice: 150 - taxes: [] - productRef: - id: '6595494117534' - name: Monitor - productVariantRef: - id: '39444526694558' - name: Monitor - discountAllocations: [] - payments: - - id: '4630233579678' - amount: 600 - currency: GBP - type: OnlineCard - status: Failed - paymentProvider: Shopify Payments - dueDate: '0001-01-01T00:00:00' - createdDate: '2021-03-19T13:17:49' - modifiedDate: '2023-02-10T15:18:24' - sourceModifiedDate: '2021-03-19T13:17:49' - - id: '4630234497182' - amount: 600 - currency: GBP - type: OnlineCard - status: Paid - paymentProvider: Shopify Payments - dueDate: '0001-01-01T00:00:00' - createdDate: '2021-03-19T13:18:29' - modifiedDate: '2023-02-10T15:18:24' - sourceModifiedDate: '2021-03-19T13:18:29' - serviceCharges: [] - customerRef: - id: '5097398534302' - name: Qa Test - modifiedDate: '2023-02-10T15:18:24Z' - sourceModifiedDate: '2022-08-01T13:12:35' - Square: - value: - id: BDYNvtIYyWClkTjnh99CFR3fPwKZY - orderNumber: BDYNvtIYyWClkTjnh99CFR3fPwKZY - country: 'GB ' - currency: GBP - createdDate: '2021-02-14T19:38:28Z' - closedDate: '0001-01-01T00:00:00' - totalAmount: 50 - totalRefund: 0 - totalTaxAmount: 0 - totalDiscount: 0 - totalGratuity: 0 - orderLineItems: - - id: lLJpgArKQbBEn9nTvLRHP - quantity: 1 - taxPercentage: 0 - totalAmount: 50 - totalTaxAmount: 0 - unitPrice: 50 - taxes: [] - discountAllocations: [] - payments: [] - serviceCharges: [] - locationRef: - id: D8DVHD1G6NT2J - name: Codat Limited - modifiedDate: '2022-08-02T10:27:33Z' - sourceModifiedDate: '2021-02-14T19:38:28Z' - SumUp: - value: - id: 07efcdd0-7f61-4d82-957f-52e8f0bd3f89 - orderNumber: TECXTU2KT6 - country: XXX - currency: GBP - createdDate: '2021-03-30T12:20:40Z' - totalAmount: 200 - totalRefund: 0 - totalTaxAmount: 0 - totalDiscount: 0 - totalGratuity: 0 - orderLineItems: - - id: Product undefined by SumUp - quantity: 1 - taxPercentage: 0 - totalAmount: 200 - totalTaxAmount: 0 - unitPrice: 200 - taxes: [] - discountAllocations: [] - payments: - - id: 07efcdd0-7f61-4d82-957f-52e8f0bd3f89 - serviceCharges: [] - modifiedDate: '2022-09-14T10:58:04Z' - WooCommerce: - value: - id: '111' - orderNumber: '111' - country: 'GB ' - currency: GBP - createdDate: '2021-03-27T23:29:38Z' - totalAmount: 39.5 - totalRefund: 0 - totalTaxAmount: 6 - totalDiscount: 0 - totalGratuity: 0 - orderLineItems: - - id: '53' - quantity: 2 - taxPercentage: 20 - totalAmount: 12 - totalTaxAmount: 2 - unitPrice: 5 - taxes: [] - productRef: - id: '82' - discountAllocations: [] - - id: '54' - quantity: 2 - taxPercentage: 20 - totalAmount: 24 - totalTaxAmount: 4 - unitPrice: 10 - taxes: [] - productRef: - id: '81' - discountAllocations: [] - payments: [] - serviceCharges: - - description: Royal Mail - totalAmount: 3.5 - taxPercentage: 0 - taxAmount: 0 - taxes: [] - quantity: 1 - type: Shipping - customerRef: - id: '200585744' - modifiedDate: '2022-07-11T15:35:48Z' - sourceModifiedDate: '2021-04-01T13:34:59Z' - Zettle: - value: - id: 7TunRi2XEeueVK3fSQEQIw - orderNumber: '3' - country: 'GB ' - currency: GBP - createdDate: '2020-11-23T14:27:20Z' - totalAmount: 45 - totalRefund: 0 - totalTaxAmount: 0 - totalDiscount: 0 - totalGratuity: 0 - orderLineItems: - - id: '0' - quantity: 1 - taxPercentage: 0 - totalAmount: 45 - totalTaxAmount: 0 - unitPrice: 45 - taxes: [] - productRef: - id: 7f9f31e4-2d97-11eb-9f55-acde48001122 - productVariantRef: - id: 7f9f35ea-2d97-11eb-9f55-acde48001122 - discountAllocations: [] - payments: - - id: ed97bcde-2d97-11eb-a42e-25130f2dd258 - amount: 45 - currency: GBP - type: Paypal - status: Unknown - dueDate: '0001-01-01T00:00:00' - createdDate: '2020-11-23T14:27:19' - modifiedDate: '2021-10-27T15:22:37' - serviceCharges: [] - modifiedDate: '2021-10-27T15:22:37Z' - sourceModifiedDate: '2020-11-23T14:27:20Z' - '401': - $ref: '#/components/responses/Unauthorized' - '402': - $ref: '#/components/responses/Payment-Required' - '403': - $ref: '#/components/responses/Forbidden' - '404': - $ref: '#/components/responses/Not-Found' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - description: | - The *Get order* endpoint returns a single order for a given orderId. - - [Orders](https://docs.codat.io/lending-api#/schemas/Order) contain the transaction details for all products sold by the company. - - Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data). - '/companies/{companyId}/connections/{connectionId}/data/commerce-paymentMethods': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - get: - summary: List payment methods - tags: - - Sales - operationId: list-commerce-payment-methods - x-speakeasy-group: sales.payment-methods - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/CommercePaymentMethods' - examples: - Amazon Seller Central: - value: - results: - - id: COD - name: Cash On Delivery - status: Active - modifiedDate: '2023-01-09T09:12:03Z' - - id: GC - name: Gift Card - status: Active - modifiedDate: '2023-01-09T09:12:03Z' - pageNumber: 1 - pageSize: 2 - totalResults: 3 - _links: - current: - href: /companies/6a59da96-e6d2-4c5c-ace7-65ba8be6a472/connections/58be1638-2c74-4ad4-8ff3-8c5b98b5f0fe/data/commerce-paymentMethods?page=1&pageSize=2 - self: - href: /companies/6a59da96-e6d2-4c5c-ace7-65ba8be6a472/connections/58be1638-2c74-4ad4-8ff3-8c5b98b5f0fe/data/commerce-paymentMethods - next: - href: /companies/6a59da96-e6d2-4c5c-ace7-65ba8be6a472/connections/58be1638-2c74-4ad4-8ff3-8c5b98b5f0fe/data/commerce-paymentMethods?page=2&pageSize=2 - BigCommerce: - value: - results: - - id: bigcommerce_gift_certificate - name: Gift Certificate - status: Active - modifiedDate: '2023-04-11T10:33:48Z' - - id: bigcommerce_store_credit - name: Store Credit - status: Active - modifiedDate: '2023-04-11T10:33:48Z' - pageNumber: 1 - pageSize: 2 - totalResults: 2 - _links: - current: - href: /companies/d1ebcf6d-f7f9-4841-8a06-fec12c492a48/connections/7c0a21e8-938a-40a4-b0f7-5ab5d46804b0/data/commerce-paymentMethods?page=1&pageSize=2 - self: - href: /companies/d1ebcf6d-f7f9-4841-8a06-fec12c492a48/connections/7c0a21e8-938a-40a4-b0f7-5ab5d46804b0/data/commerce-paymentMethods - Clover: - value: - results: - - id: 0DPQ6QP48YYHW - name: TapMango Wallet - status: Active - modifiedDate: '2023-01-09T11:01:04Z' - - id: 24H1ANYP1BNXG - name: MyTab - status: Active - modifiedDate: '2023-01-09T11:01:04Z' - pageNumber: 1 - pageSize: 2 - totalResults: 13 - _links: - current: - href: /companies/aae80eb3-1f56-41ca-a171-a59f9ee03b26/connections/4a5b633b-cd86-4715-a22b-62be98c4bcc5/data/commerce-paymentMethods?page=1&pageSize=2 - self: - href: /companies/aae80eb3-1f56-41ca-a171-a59f9ee03b26/connections/4a5b633b-cd86-4715-a22b-62be98c4bcc5/data/commerce-paymentMethods - next: - href: /companies/aae80eb3-1f56-41ca-a171-a59f9ee03b26/connections/4a5b633b-cd86-4715-a22b-62be98c4bcc5/data/commerce-paymentMethods?page=2&pageSize=2 - Lightspeed K Trial: - value: - results: - - id: '647208621834260' - name: Cash - status: Active - modifiedDate: '2023-03-02T09:48:56Z' - - id: '647208621834261' - name: Credit Card - status: Active - modifiedDate: '2023-03-02T09:48:56Z' - pageNumber: 1 - pageSize: 2 - totalResults: 11 - _links: - current: - href: /companies/36e3213b-02f6-4264-96ce-6dd53ea69e57/connections/278ba962-466a-452b-92b0-4bdee3a23463/data/commerce-paymentMethods?page=1&pageSize=2 - self: - href: /companies/36e3213b-02f6-4264-96ce-6dd53ea69e57/connections/278ba962-466a-452b-92b0-4bdee3a23463/data/commerce-paymentMethods - next: - href: /companies/36e3213b-02f6-4264-96ce-6dd53ea69e57/connections/278ba962-466a-452b-92b0-4bdee3a23463/data/commerce-paymentMethods?page=2&pageSize=2 - Mollie: - value: - results: - - id: applepay - name: Apple Pay - status: Unknown - modifiedDate: '2022-08-09T15:08:19Z' - - id: bancontact - name: Bancontact - status: Unknown - modifiedDate: '2022-08-09T15:08:19Z' - pageNumber: 1 - pageSize: 2 - totalResults: 19 - _links: - current: - href: /companies/a2503b54-143c-4705-8bec-9ef84f51ca86/connections/4c8df852-f1b3-4642-939b-c33d6f34a312/data/commerce-paymentMethods?page=1&pageSize=2 - self: - href: /companies/a2503b54-143c-4705-8bec-9ef84f51ca86/connections/4c8df852-f1b3-4642-939b-c33d6f34a312/data/commerce-paymentMethods - next: - href: /companies/a2503b54-143c-4705-8bec-9ef84f51ca86/connections/4c8df852-f1b3-4642-939b-c33d6f34a312/data/commerce-paymentMethods?page=2&pageSize=2 - Mollie Test: - value: - results: - - id: applepay - name: Apple Pay - status: Unknown - modifiedDate: '2022-08-17T11:33:19Z' - - id: bancontact - name: Bancontact - status: Unknown - modifiedDate: '2022-08-17T11:33:19Z' - pageNumber: 1 - pageSize: 2 - totalResults: 19 - _links: - current: - href: /companies/b978f9fe-8d63-4cfc-b2c2-b61b72e22785/connections/d564f8fd-0766-4ab8-a427-7c893f9b9ff6/data/commerce-paymentMethods?page=1&pageSize=2 - self: - href: /companies/b978f9fe-8d63-4cfc-b2c2-b61b72e22785/connections/d564f8fd-0766-4ab8-a427-7c893f9b9ff6/data/commerce-paymentMethods - next: - href: /companies/b978f9fe-8d63-4cfc-b2c2-b61b72e22785/connections/d564f8fd-0766-4ab8-a427-7c893f9b9ff6/data/commerce-paymentMethods?page=2&pageSize=2 - Square: - value: - results: - - id: BANK_ACCOUNT - name: Bank Account - status: Unknown - modifiedDate: '2022-08-02T10:27:32Z' - - id: BUY_NOW_PAY_LATER - name: Buy Now Pay Later - status: Unknown - modifiedDate: '2022-08-02T10:27:32Z' - pageNumber: 1 - pageSize: 2 - totalResults: 20 - _links: - current: - href: /companies/d779fc82-a098-4107-a9fc-c2a1dda3d522/connections/9b098b74-3770-4dad-9001-4c283a39f1e5/data/commerce-paymentMethods?page=1&pageSize=2 - self: - href: /companies/d779fc82-a098-4107-a9fc-c2a1dda3d522/connections/9b098b74-3770-4dad-9001-4c283a39f1e5/data/commerce-paymentMethods - next: - href: /companies/d779fc82-a098-4107-a9fc-c2a1dda3d522/connections/9b098b74-3770-4dad-9001-4c283a39f1e5/data/commerce-paymentMethods?page=2&pageSize=2 - SumUp: - value: - results: - - id: CASH - name: Cash - status: Active - modifiedDate: '2022-09-14T10:58:03Z' - - id: CC_CUSTOMER_ENTERED - name: Credit Card - status: Active - modifiedDate: '2022-09-14T10:58:03Z' - pageNumber: 1 - pageSize: 2 - totalResults: 8 - _links: - current: - href: /companies/e170dbe2-be50-474f-b449-82add37108de/connections/1e631dd5-a30b-4bad-ad5c-315c9743535b/data/commerce-paymentMethods?page=1&pageSize=2 - self: - href: /companies/e170dbe2-be50-474f-b449-82add37108de/connections/1e631dd5-a30b-4bad-ad5c-315c9743535b/data/commerce-paymentMethods - next: - href: /companies/e170dbe2-be50-474f-b449-82add37108de/connections/1e631dd5-a30b-4bad-ad5c-315c9743535b/data/commerce-paymentMethods?page=2&pageSize=2 - '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' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - description: "The *List payment methods* endpoint returns a list of [payment methods](https://docs.codat.io/lending-api#/schemas/PaymentMethod) for a given company's connection.\n\n[Payment methods](https://docs.codat.io/lending-api#/schemas/PaymentMethod) represent the payment method(s) used to make payments.\n\nBefore using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data).\n " - parameters: - - $ref: '#/components/parameters/page' - - $ref: '#/components/parameters/pageSize' - - $ref: '#/components/parameters/query' - - $ref: '#/components/parameters/orderBy' - '/companies/{companyId}/connections/{connectionId}/data/commerce-paymentMethods/{paymentMethodId}': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - - name: paymentMethodId - in: path - required: true - schema: - type: string - examples: - - 13d946f0-c5d5-42bc-b092-97ece17923ab - - 9wg4lep4ush5cxs79pl8sozmsndbaukll3ind4g7buqbm1h2 - - 7110701885 - - EILBDVJVNUAGVKRQ - description: Unique identifier for a payment method. - get: - summary: Get payment method - tags: - - Sales - operationId: get-commerce-payment-method - x-speakeasy-group: sales.payment-methods - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/CommercePaymentMethod' - examples: - Amazon Seller Central: - value: - id: COD - name: Cash On Delivery - status: Active - modifiedDate: '2023-01-09T09:12:03Z' - BigCommerce: - value: - id: bigcommerce_gift_certificate - name: Gift Certificate - status: Active - modifiedDate: '2023-04-11T10:33:48Z' - Clover: - value: - id: 0DPQ6QP48YYHW - name: TapMango Wallet - status: Active - modifiedDate: '2023-01-09T11:01:04Z' - Lightspeed K Trial: - value: - id: '647208621834260' - name: Cash - status: Active - modifiedDate: '2023-03-02T09:48:56Z' - Mollie: - value: - id: applepay - name: Apple Pay - status: Unknown - modifiedDate: '2022-08-09T15:08:19Z' - Mollie Test: - value: - id: applepay - name: Apple Pay - status: Unknown - modifiedDate: '2022-08-17T11:33:19Z' - Square: - value: - id: BANK_ACCOUNT - name: Bank Account - status: Unknown - modifiedDate: '2022-08-02T10:27:32Z' - SumUp: - value: - id: CASH - name: Cash - status: Active - modifiedDate: '2022-09-14T10:58:03Z' - '401': - $ref: '#/components/responses/Unauthorized' - '402': - $ref: '#/components/responses/Payment-Required' - '403': - $ref: '#/components/responses/Forbidden' - '404': - $ref: '#/components/responses/Not-Found' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - description: | - The *Get payment method* endpoint returns a single payment method for a given paymentMethodId. - - [Payment methods](https://docs.codat.io/lending-api#/schemas/PaymentMethod) represent the payment method(s) used to make payments. - - Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data). - '/companies/{companyId}/connections/{connectionId}/data/commerce-payments': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - get: - summary: List payments - tags: - - Sales - operationId: list-commerce-payments - x-speakeasy-group: sales.payments - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/CommercePayments' - examples: - BigCommerce: - value: - results: - - id: 103_1_1_refund - amount: -64 - currency: GBP - type: Unknown - status: Paid - paymentProvider: bigpaypay - dueDate: '0001-01-01T00:00:00' - createdDate: '2022-06-15T17:13:13Z' - modifiedDate: '2023-04-11T10:33:52Z' - - id: 105_2_2_refund - amount: -33.95 - currency: GBP - type: Unknown - status: Paid - paymentProvider: bigpaypay - dueDate: '0001-01-01T00:00:00' - createdDate: '2022-06-24T13:57:01Z' - modifiedDate: '2023-04-11T10:33:52Z' - pageNumber: 1 - pageSize: 2 - totalResults: 20 - _links: - current: - href: /companies/d1ebcf6d-f7f9-4841-8a06-fec12c492a48/connections/7c0a21e8-938a-40a4-b0f7-5ab5d46804b0/data/commerce-payments?page=1&pageSize=2 - self: - href: /companies/d1ebcf6d-f7f9-4841-8a06-fec12c492a48/connections/7c0a21e8-938a-40a4-b0f7-5ab5d46804b0/data/commerce-payments - next: - href: /companies/d1ebcf6d-f7f9-4841-8a06-fec12c492a48/connections/7c0a21e8-938a-40a4-b0f7-5ab5d46804b0/data/commerce-payments?page=2&pageSize=2 - Clover: - value: - results: - - id: 01J7HV88GT6B8 - amount: 1000 - currency: USD - paymentMethodRef: - id: BR5M17TG091SP - name: Credit Card - type: Card - status: Paid - paymentProvider: clover - dueDate: '0001-01-01T00:00:00' - createdDate: '2021-05-24T10:35:08Z' - modifiedDate: '2023-01-09T11:01:02Z' - sourceModifiedDate: '2021-05-24T10:35:08Z' - - id: 0A8ZMPG40Q9AM - amount: 1000 - currency: USD - paymentMethodRef: - id: BR5M17TG091SP - name: Credit Card - type: Card - status: Paid - paymentProvider: clover - dueDate: '0001-01-01T00:00:00' - createdDate: '2021-05-24T10:35:31Z' - modifiedDate: '2023-01-09T11:01:02Z' - sourceModifiedDate: '2021-05-24T10:35:31Z' - pageNumber: 1 - pageSize: 2 - totalResults: 77 - _links: - current: - href: /companies/aae80eb3-1f56-41ca-a171-a59f9ee03b26/connections/4a5b633b-cd86-4715-a22b-62be98c4bcc5/data/commerce-payments?page=1&pageSize=2 - self: - href: /companies/aae80eb3-1f56-41ca-a171-a59f9ee03b26/connections/4a5b633b-cd86-4715-a22b-62be98c4bcc5/data/commerce-payments - next: - href: /companies/aae80eb3-1f56-41ca-a171-a59f9ee03b26/connections/4a5b633b-cd86-4715-a22b-62be98c4bcc5/data/commerce-payments?page=2&pageSize=2 - Lightspeed K Trial: - value: - results: - - id: '1_A62084.1_2023-01-05T03:34:50.296Z' - amount: 0 - currency: AUD - paymentMethodRef: - id: '0' - type: Unknown - status: Paid - dueDate: '0001-01-01T00:00:00' - createdDate: '2023-01-05T03:34:50Z' - modifiedDate: '2023-03-02T09:50:43Z' - - id: 'R61465.1_1_A61465.1_2022-12-09T02:27:46.273Z' - amount: 5 - currency: AUD - paymentMethodRef: - id: '647208621834714' - name: LSPay - Mary - type: Unknown - status: Paid - dueDate: '0001-01-01T00:00:00' - createdDate: '2022-12-09T02:27:46Z' - modifiedDate: '2023-03-02T09:50:43Z' - pageNumber: 1 - pageSize: 2 - totalResults: 26 - _links: - current: - href: /companies/36e3213b-02f6-4264-96ce-6dd53ea69e57/connections/278ba962-466a-452b-92b0-4bdee3a23463/data/commerce-payments?page=1&pageSize=2 - self: - href: /companies/36e3213b-02f6-4264-96ce-6dd53ea69e57/connections/278ba962-466a-452b-92b0-4bdee3a23463/data/commerce-payments - next: - href: /companies/36e3213b-02f6-4264-96ce-6dd53ea69e57/connections/278ba962-466a-452b-92b0-4bdee3a23463/data/commerce-payments?page=2&pageSize=2 - Mollie: - value: - results: - - id: re_Azhe8TzfUK - amount: -20 - currency: EUR - type: OnlineCard - status: Paid - paymentProvider: mollie - dueDate: '0001-01-01T00:00:00' - createdDate: '2022-01-17T16:00:46' - modifiedDate: '2022-03-17T16:15:23Z' - - id: re_NPKEJhQveu - amount: -60 - currency: EUR - type: OnlineCard - status: Paid - paymentProvider: mollie - dueDate: '0001-01-01T00:00:00' - createdDate: '2022-01-17T16:00:05' - modifiedDate: '2022-03-17T16:15:23Z' - pageNumber: 1 - pageSize: 2 - totalResults: 16 - _links: - current: - href: /companies/65fe5864-16d7-41f4-8823-87ae1cf3a283/connections/1dbbf0ab-a27a-45b0-982a-ae0d8985affc/data/commerce-payments?page=1&pageSize=2 - self: - href: /companies/65fe5864-16d7-41f4-8823-87ae1cf3a283/connections/1dbbf0ab-a27a-45b0-982a-ae0d8985affc/data/commerce-payments - next: - href: /companies/65fe5864-16d7-41f4-8823-87ae1cf3a283/connections/1dbbf0ab-a27a-45b0-982a-ae0d8985affc/data/commerce-payments?page=2&pageSize=2 - PrestaShop: - value: - results: - - id: '1' - amount: 20.9 - currency: USD - type: Unknown - status: Paid - dueDate: '0001-01-01T00:00:00' - createdDate: '2021-09-08T01:52:55' - modifiedDate: '2022-01-26T15:09:42Z' - - id: '2' - amount: 20.9 - currency: USD - type: Unknown - status: Paid - dueDate: '0001-01-01T00:00:00' - createdDate: '2021-09-08T01:53:28' - modifiedDate: '2022-01-26T15:09:42Z' - pageNumber: 1 - pageSize: 2 - totalResults: 5 - _links: - current: - href: /companies/2bf78e61-58ca-421a-a430-5dfa59cf15b0/connections/30774c1f-fdcd-491e-9e60-47e316b3ab9b/data/commerce-payments?page=1&pageSize=2 - self: - href: /companies/2bf78e61-58ca-421a-a430-5dfa59cf15b0/connections/30774c1f-fdcd-491e-9e60-47e316b3ab9b/data/commerce-payments - next: - href: /companies/2bf78e61-58ca-421a-a430-5dfa59cf15b0/connections/30774c1f-fdcd-491e-9e60-47e316b3ab9b/data/commerce-payments?page=2&pageSize=2 - Shopify: - value: - results: - - id: '4630233579678' - amount: 600 - currency: GBP - type: OnlineCard - status: Failed - paymentProvider: Shopify Payments - dueDate: '0001-01-01T00:00:00' - createdDate: '2021-03-19T13:17:49Z' - modifiedDate: '2023-02-10T15:18:24Z' - sourceModifiedDate: '2021-03-19T13:17:49Z' - - id: '4630234497182' - amount: 600 - currency: GBP - type: OnlineCard - status: Paid - paymentProvider: Shopify Payments - dueDate: '0001-01-01T00:00:00' - createdDate: '2021-03-19T13:18:29Z' - modifiedDate: '2023-02-10T15:18:24Z' - sourceModifiedDate: '2021-03-19T13:18:29Z' - pageNumber: 1 - pageSize: 2 - totalResults: 46 - _links: - current: - href: /companies/0bc1cc44-c6d2-4537-9591-b1ad6b5e3c94/connections/d38fa6d3-d712-4cf6-9d9d-f03bacd87595/data/commerce-payments?page=1&pageSize=2 - self: - href: /companies/0bc1cc44-c6d2-4537-9591-b1ad6b5e3c94/connections/d38fa6d3-d712-4cf6-9d9d-f03bacd87595/data/commerce-payments - next: - href: /companies/0bc1cc44-c6d2-4537-9591-b1ad6b5e3c94/connections/d38fa6d3-d712-4cf6-9d9d-f03bacd87595/data/commerce-payments?page=2&pageSize=2 - SumUp: - value: - results: - - id: 07efcdd0-7f61-4d82-957f-52e8f0bd3f89 - amount: 200 - currency: GBP - type: OnlineCard - status: Cancelled - paymentProvider: sumup - dueDate: '0001-01-01T00:00:00' - createdDate: '2021-03-30T12:20:40Z' - modifiedDate: '2022-03-17T16:13:46Z' - - id: 46d36a64-ea48-4e37-9340-3548cbf3ca2f - amount: 15 - currency: GBP - type: Cash - status: Paid - paymentProvider: sumup - dueDate: '0001-01-01T00:00:00' - createdDate: '2021-03-26T21:09:59Z' - modifiedDate: '2022-03-17T16:13:46Z' - pageNumber: 1 - pageSize: 2 - totalResults: 6 - _links: - current: - href: /companies/d9e78460-7ee5-4a34-a3f4-9652a5946b1f/connections/60959ebe-8491-4368-bf0a-f715c3ce2e53/data/commerce-payments?page=1&pageSize=2 - self: - href: /companies/d9e78460-7ee5-4a34-a3f4-9652a5946b1f/connections/60959ebe-8491-4368-bf0a-f715c3ce2e53/data/commerce-payments - next: - href: /companies/d9e78460-7ee5-4a34-a3f4-9652a5946b1f/connections/60959ebe-8491-4368-bf0a-f715c3ce2e53/data/commerce-payments?page=2&pageSize=2 - WooCommerce: - value: - results: - - id: '33' - amount: 0 - currency: GBP - type: Unknown - status: Paid - dueDate: '0001-01-01T00:00:00' - createdDate: '2021-03-11T09:07:00Z' - modifiedDate: '2021-07-13T16:19:00Z' - - id: '35' - amount: 30 - currency: GBP - type: Unknown - status: Paid - dueDate: '0001-01-01T00:00:00' - createdDate: '2021-03-11T09:08:56Z' - modifiedDate: '2021-07-13T16:19:00Z' - pageNumber: 1 - pageSize: 2 - totalResults: 5 - _links: - current: - href: /companies/010c6f53-8fc8-40ab-9ed5-41191cf9c6b5/connections/7545ca2e-5f58-4f98-8af2-3b2c38bb8074/data/commerce-payments?page=1&pageSize=2 - self: - href: /companies/010c6f53-8fc8-40ab-9ed5-41191cf9c6b5/connections/7545ca2e-5f58-4f98-8af2-3b2c38bb8074/data/commerce-payments - next: - href: /companies/010c6f53-8fc8-40ab-9ed5-41191cf9c6b5/connections/7545ca2e-5f58-4f98-8af2-3b2c38bb8074/data/commerce-payments?page=2&pageSize=2 - Zettle: - value: - results: - - id: 09b94cfc-2d98-11eb-8021-0e1b9dcbeca1 - amount: 25 - currency: GBP - type: Paypal - status: Unknown - dueDate: '0001-01-01T00:00:00' - createdDate: '2020-11-23T14:28:04Z' - modifiedDate: '2021-10-27T15:22:37Z' - - id: 226580d6-2d98-11eb-a35c-fed5e63de507 - amount: 58.5 - currency: GBP - type: Paypal - status: Unknown - dueDate: '0001-01-01T00:00:00' - createdDate: '2020-11-23T14:28:47Z' - modifiedDate: '2021-10-27T15:22:37Z' - pageNumber: 1 - pageSize: 2 - totalResults: 8 - _links: - current: - href: /companies/9d448ad0-4508-47fc-bd3b-6950493151f1/connections/c7baa8da-3302-464b-8aa1-edcd4c900902/data/commerce-payments?page=1&pageSize=2 - self: - href: /companies/9d448ad0-4508-47fc-bd3b-6950493151f1/connections/c7baa8da-3302-464b-8aa1-edcd4c900902/data/commerce-payments - next: - href: /companies/9d448ad0-4508-47fc-bd3b-6950493151f1/connections/c7baa8da-3302-464b-8aa1-edcd4c900902/data/commerce-payments?page=2&pageSize=2 - '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' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - description: "The *List payments* endpoint returns a list of [payments](https://docs.codat.io/lending-api#/schemas/Payment) for a given company's connection.\n\n[Payments](https://docs.codat.io/lending-api#/schemas/Payment) contain details of all payments made by customers to the company.\n\nBefore using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data).\n " - parameters: - - $ref: '#/components/parameters/page' - - $ref: '#/components/parameters/pageSize' - - $ref: '#/components/parameters/query' - - $ref: '#/components/parameters/orderBy' - '/companies/{companyId}/connections/{connectionId}/data/commerce-payments/{paymentId}': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - - $ref: '#/components/parameters/paymentId' - get: - summary: Get payment - tags: - - Sales - operationId: get-commerce-payment - x-speakeasy-group: sales.payments - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/CommercePayment' - examples: - BigCommerce: - value: - id: 103_1_1_refund - amount: -64 - currency: GBP - type: Unknown - status: Paid - paymentProvider: bigpaypay - dueDate: '0001-01-01T00:00:00' - createdDate: '2022-06-15T17:13:13Z' - modifiedDate: '2023-04-11T10:33:52Z' - Clover: - value: - id: 01J7HV88GT6B8 - amount: 1000 - currency: USD - paymentMethodRef: - id: BR5M17TG091SP - name: Credit Card - type: Card - status: Paid - paymentProvider: clover - dueDate: '0001-01-01T00:00:00' - createdDate: '2021-05-24T10:35:08Z' - modifiedDate: '2023-01-09T11:01:02Z' - sourceModifiedDate: '2021-05-24T10:35:08Z' - Lightspeed K Trial: - value: - id: '1_A62084.1_2023-01-05T03:34:50.296Z' - amount: 0 - currency: AUD - paymentMethodRef: - id: '0' - type: Unknown - status: Paid - dueDate: '0001-01-01T00:00:00' - createdDate: '2023-01-05T03:34:50Z' - modifiedDate: '2023-03-02T09:50:43Z' - Mollie: - value: - id: re_Azhe8TzfUK - amount: -20 - currency: EUR - type: OnlineCard - status: Paid - paymentProvider: mollie - dueDate: '0001-01-01T00:00:00' - createdDate: '2022-01-17T16:00:46' - modifiedDate: '2022-03-17T16:15:23Z' - PrestaShop: - value: - id: '1' - amount: 20.9 - currency: USD - type: Unknown - status: Paid - dueDate: '0001-01-01T00:00:00' - createdDate: '2021-09-08T01:52:55' - modifiedDate: '2022-01-26T15:09:42Z' - Shopify: - value: - id: '4630233579678' - amount: 600 - currency: GBP - type: OnlineCard - status: Failed - paymentProvider: Shopify Payments - dueDate: '0001-01-01T00:00:00' - createdDate: '2021-03-19T13:17:49Z' - modifiedDate: '2023-02-10T15:18:24Z' - sourceModifiedDate: '2021-03-19T13:17:49Z' - SumUp: - value: - id: 07efcdd0-7f61-4d82-957f-52e8f0bd3f89 - amount: 200 - currency: GBP - type: OnlineCard - status: Cancelled - paymentProvider: sumup - dueDate: '0001-01-01T00:00:00' - createdDate: '2021-03-30T12:20:40Z' - modifiedDate: '2022-03-17T16:13:46Z' - WooCommerce: - value: - id: '33' - amount: 0 - currency: GBP - type: Unknown - status: Paid - dueDate: '0001-01-01T00:00:00' - createdDate: '2021-03-11T09:07:00Z' - modifiedDate: '2021-07-13T16:19:00Z' - Zettle: - value: - id: 09b94cfc-2d98-11eb-8021-0e1b9dcbeca1 - amount: 25 - currency: GBP - type: Paypal - status: Unknown - dueDate: '0001-01-01T00:00:00' - createdDate: '2020-11-23T14:28:04Z' - modifiedDate: '2021-10-27T15:22:37Z' - '401': - $ref: '#/components/responses/Unauthorized' - '402': - $ref: '#/components/responses/Payment-Required' - '403': - $ref: '#/components/responses/Forbidden' - '404': - $ref: '#/components/responses/Not-Found' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - description: | - The *Get payment* endpoint returns a single payment for a given paymentId. - - [Payments](https://docs.codat.io/lending-api#/schemas/Payment) contain details of all payments made by customers to the company. - - Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data). - '/companies/{companyId}/connections/{connectionId}/data/commerce-productCategories': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - get: - summary: List product categories - tags: - - Sales - operationId: list-commerce-product-categories - x-speakeasy-group: sales.product-categories - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/CommerceProductCategories' - examples: - Lightspeed K Trial: - value: - results: - - id: '647208621834281' - name: Alcoholic beverages - ancestorRefs: [] - hasChildren: false - modifiedDate: '2023-03-02T09:49:11Z' - - id: '647208621834282' - name: NA beverages - ancestorRefs: [] - hasChildren: false - modifiedDate: '2023-03-02T09:49:11Z' - pageNumber: 1 - pageSize: 2 - totalResults: 8 - _links: - current: - href: /companies/36e3213b-02f6-4264-96ce-6dd53ea69e57/connections/278ba962-466a-452b-92b0-4bdee3a23463/data/commerce-productCategories?page=1&pageSize=2 - self: - href: /companies/36e3213b-02f6-4264-96ce-6dd53ea69e57/connections/278ba962-466a-452b-92b0-4bdee3a23463/data/commerce-productCategories - next: - href: /companies/36e3213b-02f6-4264-96ce-6dd53ea69e57/connections/278ba962-466a-452b-92b0-4bdee3a23463/data/commerce-productCategories?page=2&pageSize=2 - '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' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - parameters: - - $ref: '#/components/parameters/page' - - $ref: '#/components/parameters/pageSize' - - $ref: '#/components/parameters/query' - - $ref: '#/components/parameters/orderBy' - '/integrations/{platformKey}': - parameters: - - $ref: '#/components/parameters/platformKey' - get: - summary: Get integration - tags: - - Integrations - operationId: get-integration - description: 'Get single integration, by platformKey' - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/Integration' - '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' - '/integrations/{platformKey}/branding': - parameters: - - $ref: '#/components/parameters/platformKey' - get: - summary: Get branding - tags: - - Integrations - operationId: get-integrations-branding - x-speakeasy-name-override: get-branding - description: Get branding for platform. - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/Branding' - '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' - /profile: - get: - summary: Get profile - tags: - - Settings - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/Profile' - examples: {} - '401': - $ref: '#/components/responses/Unauthorized' - '402': - $ref: '#/components/responses/Payment-Required' - '403': - $ref: '#/components/responses/Forbidden' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - operationId: get-profile - x-speakeasy-name-override: get-profile - description: Fetch your Codat profile. - put: - summary: Update profile - operationId: update-profile - x-speakeasy-name-override: update-profile - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/Profile' - examples: {} - '401': - $ref: '#/components/responses/Unauthorized' - '402': - $ref: '#/components/responses/Payment-Required' - '403': - $ref: '#/components/responses/Forbidden' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - tags: - - Settings - description: Update your Codat profile - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/Profile' - examples: {} - description: All fields should be included when updating your profile. - /profile/syncSettings: - get: - summary: Get sync settings - tags: - - Settings - operationId: get-profile-syncSettings - x-speakeasy-name-override: get-sync-settings - description: 'Retrieve the [sync settings](https://docs.codat.io/knowledge-base/advanced-sync-settings) for your client. This includes how often data types should be queued to be updated, and how much history should be fetched.' - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/SyncSettings' - examples: - Example: - value: - clientId: 367f7975-267b-439b-90c6-a6040ee680f3 - settings: - - dataType: invoices - fetchOnFirstLink: true - syncSchedule: 24 - syncOrder: 0 - syncFromUtc: '2020-01-01T12:00:00.000Z' - syncFromWindow: 24 - monthsToSync: 24 - isLocked: true - overridesDefaults: true - '401': - $ref: '#/components/responses/Unauthorized' - '402': - $ref: '#/components/responses/Payment-Required' - '403': - $ref: '#/components/responses/Forbidden' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - post: - summary: Update all sync settings - description: Update sync settings for all data types. - tags: - - Settings - operationId: update-profile-syncSettings - x-speakeasy-name-override: update-sync-settings - responses: - '204': - description: No Content - '401': - $ref: '#/components/responses/Unauthorized' - '402': - $ref: '#/components/responses/Payment-Required' - '403': - $ref: '#/components/responses/Forbidden' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - requestBody: - content: - application/json: - schema: - allOf: - - properties: - clientId: - $ref: '#/components/schemas/ClientId' - settings: - type: array - items: - $ref: '#/components/schemas/SyncSetting' - overridesDefaults: - type: boolean - default: true - description: 'Set to `True` if you want to override default [sync settings](https://docs.codat.io/knowledge-base/advanced-sync-settings).' - required: - - clientId - - settings - - overridesDefaults - type: object - description: |- - Include a `syncSetting` object for each data type. - `syncFromWindow`, `syncFromUTC` & `monthsToSync` only need to be included if you wish to set a value for them. - /apiKeys: - get: - summary: List API keys - description: |- - Use the *List API keys* endpoint to return a list of all API keys that currently exist for your client. This includes keys created via the Portal UI or the *Create API keys* endpoint. - - [API keys](https://docs.codat.io/platform-api#/schemas/apiKeys) are tokens used to control access to the API. Include this token in the `Authorization` header parameter when making API calls, following the word "Basic" and a space with your API key. - - You can [read more](https://docs.codat.io/using-the-api/authentication) about authentication at Codat and managing API keys via the Portal UI or API. - operationId: list-api-keys - x-speakeasy-name-override: list-api-keys - tags: - - Settings - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/ApiKeys' - examples: - Example: - value: - results: - - id: 0498e921-9b53-4396-a412-4f2f5983b0a2 - apiKey: ztHQGvnC4XN2CgUhaDWEG4ySLUJqWjp7zkbZkGHd - createdDate: '2022-04-11T13:49:37Z' - - id: c438836a-61fe-443f-8a19-24cc18be21e4 - name: azure-invoice-finance-processor - apiKey: ztHQGvnC4XN2CgUhaDWEG4ySLUJqWjp7zkbZkGHd - createdDate: '2022-04-23T09:43:48Z' - '401': - $ref: '#/components/responses/Unauthorized' - '402': - $ref: '#/components/responses/Payment-Required' - '403': - $ref: '#/components/responses/Forbidden' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - post: - summary: Create API key - operationId: create-api-key - x-speakeasy-name-override: create-api-key - description: "Use the *Create API keys* endpoint to generate a new API key for your client.\n\n[API keys](https://docs.codat.io/platform-api#/schemas/apiKeys) are tokens used to control access to the API. Include this token in the `Authorization` header parameter when making API calls, following the word \"Basic\" and a space with your API key.\n\nYou can [read more](https://docs.codat.io/using-the-api/authentication) about authentication at Codat and managing API keys via the Portal UI or API.\n\n### Tips and pitfalls\n\n* Your first API key is created for you. Access this key via [Codat's Portal](https://app.codat.io/developers/api-keys).\n* If you require multiple API keys, perform multiple calls to the *Create API keys* endpoint. \n* The number of API keys is limited to 10. If you have reached the maximum amount of keys, use the *Delete API key* endpoint to delete an unused key first." - tags: - - Settings - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/CreateApiKey' - examples: - Create API key with name: - value: - name: azure-invoice-finance-processor - responses: - '201': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/ApiKeyDetails' - examples: - API key details: - value: - id: 0498e921-9b53-4396-a412-4f2f5983b0a2 - apiKey: ztHQGvnC4XN2CgUhaDWEG4ySLUJqWjp7zkbZkGHd - createdDate: '2022-04-11T13:49:37Z' - API key details with name: - value: - id: 0498e921-9b53-4396-a412-4f2f5983b0a2 - name: azure-invoice-finance-processor - apiKey: ztHQGvnC4XN2CgUhaDWEG4ySLUJqWjp7zkbZkGHd - createdDate: '2022-04-11T13:49:37Z' - '400': - description: Bad Request - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorMessage' - examples: - Max length for name reached: - value: - statusCode: 400 - service: PublicApi - error: Max string length (50) for `name` reached. - correlationId: bc997528a9d7abb9161ef45f05d38599 - canBeRetried: Unknown - detailedErrorCode: 0 - '401': - $ref: '#/components/responses/Unauthorized' - '402': - $ref: '#/components/responses/Payment-Required' - '403': - $ref: '#/components/responses/Forbidden' - '409': - description: Conflict - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorMessage' - examples: - Max length for name reached: - value: - statusCode: 400 - service: PublicApi - error: 'Maximum number of API keys reached. To create a new API key, delete an unused key and try again.' - correlationId: bc997528a9d7abb9161ef45f05d38599 - canBeRetried: Unknown - detailedErrorCode: 0 - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - '/apiKeys/{apiKeyId}': - delete: - summary: Delete API key - operationId: delete-api-key - x-speakeasy-name-override: delete-api-key - parameters: - - name: apiKeyId - in: path - required: true - schema: - type: string - example: 8a210b68-6988-11ed-a1eb-0242ac120002 - description: Unique identifier for api key. - description: |- - Use the *Delete API keys* endpoint to delete an existing API key, providing its valid `id` as a parameter. Note that this operation is not reversible. - - [API keys](https://docs.codat.io/platform-api#/schemas/apiKeys) are tokens used to control access to the API. Include this token in the `Authorization` header parameter when making API calls, following the word "Basic" and a space with your API key. - - You can [read more](https://docs.codat.io/using-the-api/authentication) about authentication at Codat and managing API keys via the Portal UI or API. - - ### Tips and pitfalls - - * It is possible to delete the last remaining API key. If this happens, a new key can be created via the [API key management page](https://app.codat.io/developers/api-keys) of the Portal. - * It is possible to delete the API key used to authenticate the *Delete API key* request. - tags: - - Settings - responses: - '204': - description: No Content - $ref: '#/components/responses/Too-Many-Requests' - '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' - '/companies/{companyId}/connections/{connectionId}/options/{dataType}': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - - $ref: '#/components/parameters/dataType' - get: - summary: Get push options - tags: - - Push data - operationId: get-create-update-model-options-by-data-type - x-speakeasy-name-override: get-model-options - description: "The *List product categories* endpoint returns a list of [product categories](https://docs.codat.io/lending-api#/schemas/ProductCategory) for a given company's connection.\n\n[Product categories](https://docs.codat.io/lending-api#/schemas/ProductCategory) are used to classify a group of products together, either by type (e.g. \"Furniture\"), or sometimes by tax profile.\n\nBefore using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data).\n " - '/companies/{companyId}/connections/{connectionId}/data/commerce-productCategories/{productId}': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - - $ref: '#/components/parameters/productId' - get: - summary: Get product category - tags: - - Sales - operationId: get-commerce-product-category - x-speakeasy-group: sales.product-categories - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/CommerceProductCategory' - examples: - Lightspeed K Trial: - value: - id: '647208621834281' - name: Alcoholic beverages - ancestorRefs: [] - hasChildren: false - modifiedDate: '2023-03-02T09:49:11Z' - '401': - $ref: '#/components/responses/Unauthorized' - '402': - $ref: '#/components/responses/Payment-Required' - '403': - $ref: '#/components/responses/Forbidden' - '404': - $ref: '#/components/responses/Not-Found' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - description: | - The *Get product* endpoint returns a single product for a given productId. - - [Product categories](https://docs.codat.io/lending-api#/schemas/ProductCategory) are used to classify a group of products together, either by type (e.g. "Furniture"), or sometimes by tax profile. - - Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data). - '/companies/{companyId}/connections/{connectionId}/data/commerce-products': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - get: - summary: List products - tags: - - Sales - operationId: list-commerce-products - x-speakeasy-group: sales.products - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/CommerceProducts' - examples: - Amazon Seller Central: - value: - results: - - id: Chromecast - categorization: DEVICE - name: Chromecast - description: Cast from your phone to your TV with this all new chromecast. - productCategoryRefs: [] - isGiftCard: false - variants: - - id: packaging_asin_gating - name: Chromecast in a cardboard box - quantity: 0 - isTaxEnabled: false - sku: packaging_asin_gating - vatPercentage: 0 - prices: - - currency: GBP - unitPrice: 50 - inventory: - totalQuantity: 0 - locations: [] - shippingRequired: false - createdDate: '2021-02-07T12:30:01Z' - createdDate: '2021-02-07T12:30:01Z' - modifiedDate: '2023-01-09T09:12:11Z' - sourceModifiedDate: '2022-08-17T09:07:07Z' - status: Published - - id: vb554a-bl1915 - categorization: COAT - name: Waterproof Jacket - description: 'Wind and rainproof, keeping you dry all year round.' - productCategoryRefs: [] - isGiftCard: false - variants: - - id: 'ARRIS,SB6141' - name: Waterproof Jacket (Black) - quantity: 0 - isTaxEnabled: false - sku: 'ARRIS,SB6141' - vatPercentage: 0 - prices: - - currency: GBP - unitPrice: 200 - inventory: - totalQuantity: 0 - locations: [] - shippingRequired: false - createdDate: '2021-02-07T12:30:01Z' - - id: RTN66U-N9000 - name: Waterproof Jacket (Blue) - quantity: 0 - isTaxEnabled: false - sku: RTN66U-N9000 - vatPercentage: 0 - prices: - - currency: GBP - unitPrice: 200 - inventory: - totalQuantity: 0 - locations: [] - shippingRequired: false - createdDate: '2021-02-07T12:30:01Z' - - id: TLWR841N - name: Waterproof Jacket (Red) - quantity: 0 - isTaxEnabled: false - sku: TLWR841N - vatPercentage: 0 - prices: - - currency: GBP - unitPrice: 200 - inventory: - totalQuantity: 0 - locations: [] - shippingRequired: false - createdDate: '2021-02-07T12:30:01Z' - createdDate: '2021-02-07T12:30:01Z' - modifiedDate: '2023-01-09T09:12:11Z' - sourceModifiedDate: '2022-08-17T09:07:07Z' - status: Published - pageNumber: 1 - pageSize: 2 - totalResults: 3 - _links: - current: - href: /companies/6a59da96-e6d2-4c5c-ace7-65ba8be6a472/connections/58be1638-2c74-4ad4-8ff3-8c5b98b5f0fe/data/commerce-products?page=1&pageSize=2 - self: - href: /companies/6a59da96-e6d2-4c5c-ace7-65ba8be6a472/connections/58be1638-2c74-4ad4-8ff3-8c5b98b5f0fe/data/commerce-products - next: - href: /companies/6a59da96-e6d2-4c5c-ace7-65ba8be6a472/connections/58be1638-2c74-4ad4-8ff3-8c5b98b5f0fe/data/commerce-products?page=2&pageSize=2 - BigCommerce: - value: - results: - - id: '103' - categorization: 'Shop All, Utility' - name: '[Sample] Canvas Laundry Cart' - description: 'The last laundry cart you''ll ever buy. This industrial non-collapsable cart is constructed with a steel framed body using heavyweight canvas capped with a soft leather rim sitting on four smooth rolling casters. Keeps the grubby garments off the floor and almost makes laundry enjoyable. Can also be used as the ideal storage solution: many people find it ideal for children''s toys or a load of chopped firewood. Load it up and wheel it away. Natural Heavyweight Canvas with Vegetable Tanned Leather Rim Measure�' - productCategoryRefs: [] - isGiftCard: false - variants: - - id: '71' - name: '[Sample] Canvas Laundry Cart' - quantity: 0 - isTaxEnabled: false - sku: CLC - barcode: '' - vatPercentage: 0 - prices: - - currency: GBP - unitPrice: 200 - inventory: - totalQuantity: 0 - locations: [] - shippingRequired: true - createdDate: '0001-01-01T00:00:00' - createdDate: '2015-07-03T18:48:07Z' - modifiedDate: '2023-04-11T10:33:49Z' - sourceModifiedDate: '2022-06-16T07:59:46Z' - status: Published - - id: '104' - categorization: 'Shop All, Utility' - name: '[Sample] Utility Caddy' - description: 'This powder coated steel utility caddy ensures your cleaning essentials are stowed away in one spot ready for your household chores. Brushes, cloths, liquid soaps can all easily be stashed away. Also ideal to be used as a garden caddy to easily grab from the shed for a days work. Works well as a mop bucket too. The wood carrying handle ensures a comfortable grip when toting it from room to room. Measures 19 h x 36 w x 20 dia cm/7.5 h x 14.1 w x 7.8 dia in' - productCategoryRefs: [] - isGiftCard: false - variants: - - id: '72' - name: '[Sample] Utility Caddy' - quantity: 0 - isTaxEnabled: false - sku: OFSUC - barcode: '' - vatPercentage: 0 - prices: - - currency: GBP - unitPrice: 45.95 - inventory: - totalQuantity: 0 - locations: [] - shippingRequired: true - createdDate: '0001-01-01T00:00:00' - createdDate: '2015-07-03T18:49:26Z' - modifiedDate: '2023-04-11T10:33:49Z' - sourceModifiedDate: '2015-07-03T20:45:54Z' - status: Published - pageNumber: 1 - pageSize: 2 - totalResults: 18 - _links: - current: - href: /companies/d1ebcf6d-f7f9-4841-8a06-fec12c492a48/connections/7c0a21e8-938a-40a4-b0f7-5ab5d46804b0/data/commerce-products?page=1&pageSize=2 - self: - href: /companies/d1ebcf6d-f7f9-4841-8a06-fec12c492a48/connections/7c0a21e8-938a-40a4-b0f7-5ab5d46804b0/data/commerce-products - next: - href: /companies/d1ebcf6d-f7f9-4841-8a06-fec12c492a48/connections/7c0a21e8-938a-40a4-b0f7-5ab5d46804b0/data/commerce-products?page=2&pageSize=2 - Clover: - value: - results: - - id: DJANHKK2AVEYY - name: Coffee - description: Coffee - productCategoryRefs: [] - isGiftCard: false - variants: - - id: DJANHKK2AVEYY - name: Coffee - quantity: 0 - isTaxEnabled: true - sku: '12222' - barcode: '1234' - vatPercentage: 20 - prices: - - currency: GBP - unitPrice: 3 - inventory: - totalQuantity: 0 - locations: [] - shippingRequired: false - createdDate: '0001-01-01T00:00:00' - createdDate: '0001-01-01T00:00:00' - modifiedDate: '2023-01-09T11:01:03Z' - sourceModifiedDate: '2021-05-24T15:50:55Z' - status: Published - - id: NMZHKK6FKF6ZJ - name: Laptop - description: Cool Laptop - productCategoryRefs: [] - isGiftCard: false - variants: - - id: NMZHKK6FKF6ZJ - name: Laptop - quantity: 0 - isTaxEnabled: true - sku: '111' - barcode: '123' - vatPercentage: 20 - prices: - - currency: GBP - unitPrice: 1000 - inventory: - totalQuantity: 0 - locations: [] - shippingRequired: false - createdDate: '0001-01-01T00:00:00' - createdDate: '0001-01-01T00:00:00' - modifiedDate: '2023-01-09T11:01:03Z' - sourceModifiedDate: '2021-05-24T08:19:14Z' - status: Published - pageNumber: 1 - pageSize: 2 - totalResults: 3 - _links: - current: - href: /companies/aae80eb3-1f56-41ca-a171-a59f9ee03b26/connections/4a5b633b-cd86-4715-a22b-62be98c4bcc5/data/commerce-products?page=1&pageSize=2 - self: - href: /companies/aae80eb3-1f56-41ca-a171-a59f9ee03b26/connections/4a5b633b-cd86-4715-a22b-62be98c4bcc5/data/commerce-products - next: - href: /companies/aae80eb3-1f56-41ca-a171-a59f9ee03b26/connections/4a5b633b-cd86-4715-a22b-62be98c4bcc5/data/commerce-products?page=2&pageSize=2 - Lightspeed K Trial: - value: - results: - - id: '647208621834539' - categorization: Alcoholic beverages - name: Alcoholic beverages - description: Alcoholic beverages - productCategoryRefs: - - id: '647208621834281' - name: Alcoholic beverages - isGiftCard: false - variants: [] - createdDate: '0001-01-01T00:00:00' - modifiedDate: '2023-03-02T09:50:32Z' - status: Published - - id: '647208621834542' - categorization: NA beverages - name: NA beverages - description: NA beverages - productCategoryRefs: - - id: '647208621834282' - name: NA beverages - isGiftCard: false - variants: [] - createdDate: '0001-01-01T00:00:00' - modifiedDate: '2023-03-02T09:50:32Z' - status: Published - pageNumber: 1 - pageSize: 2 - totalResults: 39 - _links: - current: - href: /companies/36e3213b-02f6-4264-96ce-6dd53ea69e57/connections/278ba962-466a-452b-92b0-4bdee3a23463/data/commerce-products?page=1&pageSize=2 - self: - href: /companies/36e3213b-02f6-4264-96ce-6dd53ea69e57/connections/278ba962-466a-452b-92b0-4bdee3a23463/data/commerce-products - next: - href: /companies/36e3213b-02f6-4264-96ce-6dd53ea69e57/connections/278ba962-466a-452b-92b0-4bdee3a23463/data/commerce-products?page=2&pageSize=2 - PrestaShop: - value: - results: - - id: '1' - categorization: Home - Clothes - Men - name: Hummingbird printed t-shirt - description: 'Symbol of lightness and delicacy, the hummingbird evokes curiosity and joy. Studio Design'' PolyFaune collection features classic products with colorful patterns, inspired by the traditional japanese origamis. To wear with a chino or jeans. The sublimation textile printing process provides an exceptional color rendering and a color, guaranteed overtime.' - productCategoryRefs: [] - isGiftCard: false - variants: - - id: '8' - name: 'Hummingbird printed t-shirt (Size = XL, Color = Black)' - quantity: 0 - isTaxEnabled: true - sku: demo_1 - vatPercentage: 6 - prices: - - currency: USD - unitPrice: 23.9 - inventory: - totalQuantity: 300 - locations: [] - shippingRequired: true - createdDate: '0001-01-01T00:00:00' - - id: '4' - name: 'Hummingbird printed t-shirt (Size = M, Color = Black)' - quantity: 0 - isTaxEnabled: true - sku: demo_1 - vatPercentage: 6 - prices: - - currency: USD - unitPrice: 23.9 - inventory: - totalQuantity: 300 - locations: [] - shippingRequired: true - createdDate: '0001-01-01T00:00:00' - - id: '5' - name: 'Hummingbird printed t-shirt (Size = L, Color = White)' - quantity: 0 - isTaxEnabled: true - sku: demo_1 - vatPercentage: 6 - prices: - - currency: USD - unitPrice: 23.9 - inventory: - totalQuantity: 300 - locations: [] - shippingRequired: true - createdDate: '0001-01-01T00:00:00' - - id: '3' - name: 'Hummingbird printed t-shirt (Size = M, Color = White)' - quantity: 0 - isTaxEnabled: true - sku: demo_1 - vatPercentage: 6 - prices: - - currency: USD - unitPrice: 23.9 - inventory: - totalQuantity: 300 - locations: [] - shippingRequired: true - createdDate: '0001-01-01T00:00:00' - - id: '6' - name: 'Hummingbird printed t-shirt (Size = L, Color = Black)' - quantity: 0 - isTaxEnabled: true - sku: demo_1 - vatPercentage: 6 - prices: - - currency: USD - unitPrice: 23.9 - inventory: - totalQuantity: 300 - locations: [] - shippingRequired: true - createdDate: '0001-01-01T00:00:00' - - id: '1' - name: 'Hummingbird printed t-shirt (Size = S, Color = White)' - quantity: 0 - isTaxEnabled: true - sku: demo_1 - vatPercentage: 6 - prices: - - currency: USD - unitPrice: 23.9 - inventory: - totalQuantity: 300 - locations: [] - shippingRequired: true - createdDate: '0001-01-01T00:00:00' - - id: '2' - name: 'Hummingbird printed t-shirt (Size = S, Color = Black)' - quantity: 0 - isTaxEnabled: true - sku: demo_1 - vatPercentage: 6 - prices: - - currency: USD - unitPrice: 23.9 - inventory: - totalQuantity: 300 - locations: [] - shippingRequired: true - createdDate: '0001-01-01T00:00:00' - - id: '7' - name: 'Hummingbird printed t-shirt (Size = XL, Color = White)' - quantity: 0 - isTaxEnabled: true - sku: demo_1 - vatPercentage: 6 - prices: - - currency: USD - unitPrice: 23.9 - inventory: - totalQuantity: 300 - locations: [] - shippingRequired: true - createdDate: '0001-01-01T00:00:00' - createdDate: '2021-09-02T06:00:49' - modifiedDate: '2022-01-26T15:09:42Z' - sourceModifiedDate: '2021-09-02T06:00:49' - status: Published - - id: '10' - categorization: Home - Accessories - Home Accessories - name: Brown bear cushion - description: 'The brown bear cushion will add a graphic and colorful touch to your sofa, armchair or bed. Create a modern and zen atmosphere that inspires relaxation. Cover 100% cotton, machine washable at 60� / Filling 100% hypoallergenic polyester.' - productCategoryRefs: [] - isGiftCard: false - variants: - - id: '24' - name: Brown bear cushion (Color = White) - quantity: 0 - isTaxEnabled: true - sku: demo_16 - vatPercentage: 6 - prices: - - currency: USD - unitPrice: 18.9 - inventory: - totalQuantity: 300 - locations: [] - shippingRequired: true - createdDate: '0001-01-01T00:00:00' - - id: '25' - name: Brown bear cushion (Color = Black) - quantity: 0 - isTaxEnabled: true - sku: demo_16 - vatPercentage: 6 - prices: - - currency: USD - unitPrice: 18.9 - inventory: - totalQuantity: 300 - locations: [] - shippingRequired: true - createdDate: '0001-01-01T00:00:00' - createdDate: '2021-09-02T06:00:49' - modifiedDate: '2022-01-26T15:09:42Z' - sourceModifiedDate: '2021-09-02T06:00:49' - status: Published - pageNumber: 1 - pageSize: 2 - totalResults: 22 - _links: - current: - href: /companies/2bf78e61-58ca-421a-a430-5dfa59cf15b0/connections/30774c1f-fdcd-491e-9e60-47e316b3ab9b/data/commerce-products?page=1&pageSize=2 - self: - href: /companies/2bf78e61-58ca-421a-a430-5dfa59cf15b0/connections/30774c1f-fdcd-491e-9e60-47e316b3ab9b/data/commerce-products - next: - href: /companies/2bf78e61-58ca-421a-a430-5dfa59cf15b0/connections/30774c1f-fdcd-491e-9e60-47e316b3ab9b/data/commerce-products?page=2&pageSize=2 - Shopify: - value: - results: - - id: '6595494117534' - categorization: Asus - name: Monitor - description: '' - productCategoryRefs: [] - isGiftCard: false - variants: - - id: '39444526694558' - name: Monitor - quantity: 0 - isTaxEnabled: true - sku: '' - barcode: '' - vatPercentage: 0 - prices: - - currency: GBP - unitPrice: 150 - inventory: - totalQuantity: 91 - locations: [] - shippingRequired: true - createdDate: '2021-03-19T10:13:22Z' - createdDate: '2021-03-19T10:13:22Z' - modifiedDate: '2023-02-10T15:18:25Z' - sourceModifiedDate: '2022-08-01T13:05:22Z' - status: Published - - id: '6595497066654' - categorization: Logitech - name: Mouse - description: '' - productCategoryRefs: [] - isGiftCard: false - variants: - - id: '39444533706910' - name: Mouse - quantity: 0 - isTaxEnabled: false - sku: '' - barcode: '' - vatPercentage: 0 - prices: - - currency: GBP - unitPrice: 25 - inventory: - totalQuantity: 71 - locations: [] - shippingRequired: true - createdDate: '2021-03-19T10:14:01Z' - createdDate: '2021-03-19T10:14:01Z' - modifiedDate: '2023-02-10T15:18:25Z' - sourceModifiedDate: '2022-08-01T13:05:22Z' - status: Published - pageNumber: 1 - pageSize: 2 - totalResults: 4 - _links: - current: - href: /companies/0bc1cc44-c6d2-4537-9591-b1ad6b5e3c94/connections/d38fa6d3-d712-4cf6-9d9d-f03bacd87595/data/commerce-products?page=1&pageSize=2 - self: - href: /companies/0bc1cc44-c6d2-4537-9591-b1ad6b5e3c94/connections/d38fa6d3-d712-4cf6-9d9d-f03bacd87595/data/commerce-products - next: - href: /companies/0bc1cc44-c6d2-4537-9591-b1ad6b5e3c94/connections/d38fa6d3-d712-4cf6-9d9d-f03bacd87595/data/commerce-products?page=2&pageSize=2 - Square: - value: - results: - - id: AX54KZQ3UAVCVPUMNEGFEU35 - categorization: Hardware - name: Monitor - productCategoryRefs: [] - isGiftCard: false - variants: - - id: A5BUT6SYUNYRSQ2R7GZ6UKN6 - name: Regular - quantity: 0 - isTaxEnabled: true - vatPercentage: 10 - prices: - - currency: GBP - unitPrice: 200 - inventory: - totalQuantity: 0 - locations: [] - shippingRequired: false - createdDate: '2021-02-18T15:47:31Z' - createdDate: '2021-02-18T15:47:31Z' - modifiedDate: '2021-06-17T14:23:02Z' - sourceModifiedDate: '2021-02-18T15:47:31Z' - status: Unknown - - id: FYRIQNFTFRGQNQZGZG66MJWI - categorization: Furniture - name: Desk - productCategoryRefs: [] - isGiftCard: false - variants: - - id: VMKSQEABA3WIYGXNAV63JOTZ - name: Regular - quantity: 0 - isTaxEnabled: true - vatPercentage: 10 - prices: - - currency: GBP - unitPrice: 70 - inventory: - totalQuantity: 0 - locations: [] - shippingRequired: false - createdDate: '2021-02-18T15:47:45Z' - createdDate: '2021-02-18T15:47:45Z' - modifiedDate: '2021-06-17T14:23:02Z' - sourceModifiedDate: '2021-02-18T15:47:45Z' - status: Unknown - pageNumber: 1 - pageSize: 2 - totalResults: 4 - _links: - current: - href: /companies/25debd39-e024-41a1-a86c-4fd47f29c853/connections/d5071fdf-a769-48f3-b39e-e588d515bb83/data/commerce-products?page=1&pageSize=2 - self: - href: /companies/25debd39-e024-41a1-a86c-4fd47f29c853/connections/d5071fdf-a769-48f3-b39e-e588d515bb83/data/commerce-products - next: - href: /companies/25debd39-e024-41a1-a86c-4fd47f29c853/connections/d5071fdf-a769-48f3-b39e-e588d515bb83/data/commerce-products?page=2&pageSize=2 - Stripe Test: - value: - results: - - id: prod_IaSbzLnxOHmC0i - name: Blue T Shirt - description: Nice cozy cotton t shirt - productCategoryRefs: [] - isGiftCard: false - variants: - - id: price_1ICJVEA8m8S1Gh7OIOCDOG8j - name: Blue T Shirt - Standard Price - quantity: 0 - isTaxEnabled: false - vatPercentage: 0 - prices: - - currency: GBP - unitPrice: 15 - inventory: - totalQuantity: 0 - locations: [] - shippingRequired: true - createdDate: '2021-01-22T06:52:16Z' - - id: price_1ICJQgA8m8S1Gh7OfErQdx5R - name: Blue T Shirt - Standard Price - quantity: 0 - isTaxEnabled: false - vatPercentage: 0 - prices: - - currency: USD - unitPrice: 30 - inventory: - totalQuantity: 0 - locations: [] - shippingRequired: true - createdDate: '2021-01-22T06:47:34Z' - - id: price_1HzHiCA8m8S1Gh7OXZVa6r3F - name: Blue T Shirt - Standard Price - quantity: 0 - isTaxEnabled: false - vatPercentage: 0 - prices: - - currency: GBP - unitPrice: 15 - inventory: - totalQuantity: 0 - locations: [] - shippingRequired: true - createdDate: '2020-12-17T08:19:48Z' - createdDate: '2020-12-17T08:17:48Z' - modifiedDate: '2022-09-30T11:18:27Z' - sourceModifiedDate: '2021-01-22T06:52:17Z' - status: Published - - id: prod_IQ6G1MDsvUb87Y - name: Laptop - productCategoryRefs: [] - isGiftCard: false - variants: - - id: price_1HpG3tA8m8S1Gh7Oa6bGLvVD - name: Laptop - Standard Price - quantity: 0 - isTaxEnabled: false - vatPercentage: 0 - prices: - - currency: GBP - unitPrice: 100 - inventory: - totalQuantity: 0 - locations: [] - shippingRequired: false - createdDate: '2020-11-19T16:32:45Z' - createdDate: '2020-11-19T16:32:45Z' - modifiedDate: '2022-09-30T11:18:27Z' - sourceModifiedDate: '2022-05-12T23:31:33Z' - status: Published - pageNumber: 1 - pageSize: 2 - totalResults: 4 - _links: - current: - href: /companies/8206e78e-e340-411e-b315-473c4ab73b48/connections/43e58373-0a1d-44a0-97f0-9fa9993a14fa/data/commerce-products?page=1&pageSize=2 - self: - href: /companies/8206e78e-e340-411e-b315-473c4ab73b48/connections/43e58373-0a1d-44a0-97f0-9fa9993a14fa/data/commerce-products - next: - href: /companies/8206e78e-e340-411e-b315-473c4ab73b48/connections/43e58373-0a1d-44a0-97f0-9fa9993a14fa/data/commerce-products?page=2&pageSize=2 - WooCommerce: - value: - results: - - id: '27' - categorization: Hardware - name: Monitor - description: '' - productCategoryRefs: [] - isGiftCard: false - variants: - - id: '27' - name: Monitor - quantity: 0 - isTaxEnabled: true - vatPercentage: 0 - prices: - - currency: GBP - unitPrice: 150 - inventory: - totalQuantity: 0 - locations: [] - shippingRequired: true - createdDate: '2021-03-11T08:55:22' - createdDate: '2021-03-11T08:55:22' - modifiedDate: '2021-07-13T16:19:00Z' - sourceModifiedDate: '2021-03-11T09:03:15' - status: Published - - id: '28' - categorization: Hardware - name: Keyboard - description: '' - productCategoryRefs: [] - isGiftCard: false - variants: - - id: '28' - name: Keyboard - quantity: 0 - isTaxEnabled: true - vatPercentage: 0 - prices: - - currency: GBP - unitPrice: 30 - inventory: - totalQuantity: 0 - locations: [] - shippingRequired: true - createdDate: '2021-03-11T09:02:58' - createdDate: '2021-03-11T09:02:58' - modifiedDate: '2021-07-13T16:19:00Z' - sourceModifiedDate: '2021-03-11T09:02:58' - status: Published - pageNumber: 1 - pageSize: 2 - totalResults: 3 - _links: - current: - href: /companies/010c6f53-8fc8-40ab-9ed5-41191cf9c6b5/connections/7545ca2e-5f58-4f98-8af2-3b2c38bb8074/data/commerce-products?page=1&pageSize=2 - self: - href: /companies/010c6f53-8fc8-40ab-9ed5-41191cf9c6b5/connections/7545ca2e-5f58-4f98-8af2-3b2c38bb8074/data/commerce-products - next: - href: /companies/010c6f53-8fc8-40ab-9ed5-41191cf9c6b5/connections/7545ca2e-5f58-4f98-8af2-3b2c38bb8074/data/commerce-products?page=2&pageSize=2 - Zettle: - value: - results: - - id: 9d21fd90-a34a-11eb-b574-ad6abe469b61 - categorization: Clothing - name: T-Shirt - productCategoryRefs: [] - isGiftCard: false - variants: - - id: bb9bcf30-a34a-11eb-b574-ad6abe469b61 - name: Medium - quantity: 0 - isTaxEnabled: true - vatPercentage: 20 - prices: - - currency: GBP - unitPrice: 10 - inventory: - totalQuantity: 0 - locations: [] - shippingRequired: false - createdDate: '0001-01-01T00:00:00' - - id: b919df40-a34a-11eb-b574-ad6abe469b61 - name: Large - quantity: 0 - isTaxEnabled: true - vatPercentage: 20 - prices: - - currency: GBP - unitPrice: 10 - inventory: - totalQuantity: 0 - locations: [] - shippingRequired: false - createdDate: '0001-01-01T00:00:00' - - id: bcb5cab0-a34a-11eb-b574-ad6abe469b61 - name: Small - quantity: 0 - isTaxEnabled: true - vatPercentage: 20 - prices: - - currency: GBP - unitPrice: 10 - inventory: - totalQuantity: 0 - locations: [] - shippingRequired: false - createdDate: '0001-01-01T00:00:00' - createdDate: '2021-04-22T09:12:09Z' - modifiedDate: '2021-10-27T15:22:37Z' - sourceModifiedDate: '2021-08-04T14:32:20Z' - status: Published - - id: e02c2930-a34a-11eb-b9db-8f5efc0924aa - categorization: Clothing - name: Hoodie - productCategoryRefs: [] - isGiftCard: false - variants: - - id: fa180e40-a34a-11eb-b9db-8f5efc0924aa - name: Medium - quantity: 0 - isTaxEnabled: true - vatPercentage: 20 - prices: - - currency: GBP - unitPrice: 30 - inventory: - totalQuantity: 0 - locations: [] - shippingRequired: false - createdDate: '0001-01-01T00:00:00' - - id: fc412fd0-a34a-11eb-b9db-8f5efc0924aa - name: Extra Large - quantity: 0 - isTaxEnabled: true - vatPercentage: 20 - prices: - - currency: GBP - unitPrice: 30 - inventory: - totalQuantity: 0 - locations: [] - shippingRequired: false - createdDate: '0001-01-01T00:00:00' - - id: f8a03b50-a34a-11eb-b9db-8f5efc0924aa - name: Small - quantity: 0 - isTaxEnabled: true - vatPercentage: 20 - prices: - - currency: GBP - unitPrice: 30 - inventory: - totalQuantity: 0 - locations: [] - shippingRequired: false - createdDate: '0001-01-01T00:00:00' - - id: fac1bbc0-a34a-11eb-b9db-8f5efc0924aa - name: Large - quantity: 0 - isTaxEnabled: true - vatPercentage: 20 - prices: - - currency: GBP - unitPrice: 30 - inventory: - totalQuantity: 0 - locations: [] - shippingRequired: false - createdDate: '0001-01-01T00:00:00' - createdDate: '2021-04-22T09:13:26Z' - modifiedDate: '2021-10-27T15:22:37Z' - sourceModifiedDate: '2021-08-04T14:31:58Z' - status: Published - pageNumber: 1 - pageSize: 2 - totalResults: 2 - _links: - current: - href: /companies/9d448ad0-4508-47fc-bd3b-6950493151f1/connections/c7baa8da-3302-464b-8aa1-edcd4c900902/data/commerce-products?page=1&pageSize=2 - self: - href: /companies/9d448ad0-4508-47fc-bd3b-6950493151f1/connections/c7baa8da-3302-464b-8aa1-edcd4c900902/data/commerce-products - '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' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - parameters: - - $ref: '#/components/parameters/page' - - $ref: '#/components/parameters/pageSize' - - $ref: '#/components/parameters/query' - - $ref: '#/components/parameters/orderBy' - description: "The *List products* endpoint returns a list of [products](https://docs.codat.io/lending-api#/schemas/Product) for a given company's connection.\n\n[Products](https://docs.codat.io/lending-api#/schemas/Product) are items in the company's inventory that are available for sale.\n\nBefore using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data).\n " - '/companies/{companyId}/connections/{connectionId}/data/commerce-products/{productId}': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - - $ref: '#/components/parameters/productId' - get: - summary: Get product - tags: - - Sales - operationId: get-commerce-product - x-speakeasy-group: sales.products - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/CommerceProduct' - examples: - Amazon Seller Central: - value: - id: Chromecast - categorization: DEVICE - name: Chromecast - description: Cast from your phone to your TV with this all new chromecast. - productCategoryRefs: [] - isGiftCard: false - variants: - - id: packaging_asin_gating - name: Chromecast in a cardboard box - quantity: 0 - isTaxEnabled: false - sku: packaging_asin_gating - vatPercentage: 0 - prices: - - currency: GBP - unitPrice: 50 - inventory: - totalQuantity: 0 - locations: [] - shippingRequired: false - createdDate: '2021-02-07T12:30:01Z' - createdDate: '2021-02-07T12:30:01Z' - modifiedDate: '2023-01-09T09:12:11Z' - sourceModifiedDate: '2022-08-17T09:07:07Z' - status: Published - BigCommerce: - value: - id: '103' - categorization: 'Shop All, Utility' - name: '[Sample] Canvas Laundry Cart' - description: 'The last laundry cart you''ll ever buy. This industrial non-collapsable cart is constructed with a steel framed body using heavyweight canvas capped with a soft leather rim sitting on four smooth rolling casters. Keeps the grubby garments off the floor and almost makes laundry enjoyable. Can also be used as the ideal storage solution: many people find it ideal for children''s toys or a load of chopped firewood. Load it up and wheel it away. Natural Heavyweight Canvas with Vegetable Tanned Leather Rim Measure�' - productCategoryRefs: [] - isGiftCard: false - variants: - - id: '71' - name: '[Sample] Canvas Laundry Cart' - quantity: 0 - isTaxEnabled: false - sku: CLC - barcode: '' - vatPercentage: 0 - prices: - - currency: GBP - unitPrice: 200 - inventory: - totalQuantity: 0 - locations: [] - shippingRequired: true - createdDate: '0001-01-01T00:00:00' - createdDate: '2015-07-03T18:48:07Z' - modifiedDate: '2023-04-11T10:33:49Z' - sourceModifiedDate: '2022-06-16T07:59:46Z' - status: Published - Clover: - value: - id: DJANHKK2AVEYY - name: Coffee - description: Coffee - productCategoryRefs: [] - isGiftCard: false - variants: - - id: DJANHKK2AVEYY - name: Coffee - quantity: 0 - isTaxEnabled: true - sku: '12222' - barcode: '1234' - vatPercentage: 20 - prices: - - currency: GBP - unitPrice: 3 - inventory: - totalQuantity: 0 - locations: [] - shippingRequired: false - createdDate: '0001-01-01T00:00:00' - createdDate: '0001-01-01T00:00:00' - modifiedDate: '2023-01-09T11:01:03Z' - sourceModifiedDate: '2021-05-24T15:50:55Z' - status: Published - Lightspeed K Trial: - value: - id: '647208621834539' - categorization: Alcoholic beverages - name: Alcoholic beverages - description: Alcoholic beverages - productCategoryRefs: - - id: '647208621834281' - name: Alcoholic beverages - isGiftCard: false - variants: [] - createdDate: '0001-01-01T00:00:00' - modifiedDate: '2023-03-02T09:50:32Z' - status: Published - PrestaShop: - value: - id: '1' - categorization: Home - Clothes - Men - name: Hummingbird printed t-shirt - description: 'Symbol of lightness and delicacy, the hummingbird evokes curiosity and joy. Studio Design'' PolyFaune collection features classic products with colorful patterns, inspired by the traditional japanese origamis. To wear with a chino or jeans. The sublimation textile printing process provides an exceptional color rendering and a color, guaranteed overtime.' - productCategoryRefs: [] - isGiftCard: false - variants: - - id: '8' - name: 'Hummingbird printed t-shirt (Size = XL, Color = Black)' - quantity: 0 - isTaxEnabled: true - sku: demo_1 - vatPercentage: 6 - prices: - - currency: USD - unitPrice: 23.9 - inventory: - totalQuantity: 300 - locations: [] - shippingRequired: true - createdDate: '0001-01-01T00:00:00' - - id: '4' - name: 'Hummingbird printed t-shirt (Size = M, Color = Black)' - quantity: 0 - isTaxEnabled: true - sku: demo_1 - vatPercentage: 6 - prices: - - currency: USD - unitPrice: 23.9 - inventory: - totalQuantity: 300 - locations: [] - shippingRequired: true - createdDate: '0001-01-01T00:00:00' - - id: '5' - name: 'Hummingbird printed t-shirt (Size = L, Color = White)' - quantity: 0 - isTaxEnabled: true - sku: demo_1 - vatPercentage: 6 - prices: - - currency: USD - unitPrice: 23.9 - inventory: - totalQuantity: 300 - locations: [] - shippingRequired: true - createdDate: '0001-01-01T00:00:00' - - id: '3' - name: 'Hummingbird printed t-shirt (Size = M, Color = White)' - quantity: 0 - isTaxEnabled: true - sku: demo_1 - vatPercentage: 6 - prices: - - currency: USD - unitPrice: 23.9 - inventory: - totalQuantity: 300 - locations: [] - shippingRequired: true - createdDate: '0001-01-01T00:00:00' - - id: '6' - name: 'Hummingbird printed t-shirt (Size = L, Color = Black)' - quantity: 0 - isTaxEnabled: true - sku: demo_1 - vatPercentage: 6 - prices: - - currency: USD - unitPrice: 23.9 - inventory: - totalQuantity: 300 - locations: [] - shippingRequired: true - createdDate: '0001-01-01T00:00:00' - - id: '1' - name: 'Hummingbird printed t-shirt (Size = S, Color = White)' - quantity: 0 - isTaxEnabled: true - sku: demo_1 - vatPercentage: 6 - prices: - - currency: USD - unitPrice: 23.9 - inventory: - totalQuantity: 300 - locations: [] - shippingRequired: true - createdDate: '0001-01-01T00:00:00' - - id: '2' - name: 'Hummingbird printed t-shirt (Size = S, Color = Black)' - quantity: 0 - isTaxEnabled: true - sku: demo_1 - vatPercentage: 6 - prices: - - currency: USD - unitPrice: 23.9 - inventory: - totalQuantity: 300 - locations: [] - shippingRequired: true - createdDate: '0001-01-01T00:00:00' - - id: '7' - name: 'Hummingbird printed t-shirt (Size = XL, Color = White)' - quantity: 0 - isTaxEnabled: true - sku: demo_1 - vatPercentage: 6 - prices: - - currency: USD - unitPrice: 23.9 - inventory: - totalQuantity: 300 - locations: [] - shippingRequired: true - createdDate: '0001-01-01T00:00:00' - createdDate: '2021-09-02T06:00:49' - modifiedDate: '2022-01-26T15:09:42Z' - sourceModifiedDate: '2021-09-02T06:00:49' - status: Published - Shopify: - value: - id: '6595494117534' - categorization: Asus - name: Monitor - description: '' - productCategoryRefs: [] - isGiftCard: false - variants: - - id: '39444526694558' - name: Monitor - quantity: 0 - isTaxEnabled: true - sku: '' - barcode: '' - vatPercentage: 0 - prices: - - currency: GBP - unitPrice: 150 - inventory: - totalQuantity: 91 - locations: [] - shippingRequired: true - createdDate: '2021-03-19T10:13:22Z' - createdDate: '2021-03-19T10:13:22Z' - modifiedDate: '2023-02-10T15:18:25Z' - sourceModifiedDate: '2022-08-01T13:05:22Z' - status: Published - Square: - value: - id: AX54KZQ3UAVCVPUMNEGFEU35 - categorization: Hardware - name: Monitor - productCategoryRefs: [] - isGiftCard: false - variants: - - id: A5BUT6SYUNYRSQ2R7GZ6UKN6 - name: Regular - quantity: 0 - isTaxEnabled: true - vatPercentage: 10 - prices: - - currency: GBP - unitPrice: 200 - inventory: - totalQuantity: 0 - locations: [] - shippingRequired: false - createdDate: '2021-02-18T15:47:31Z' - createdDate: '2021-02-18T15:47:31Z' - modifiedDate: '2021-06-17T14:23:02Z' - sourceModifiedDate: '2021-02-18T15:47:31Z' - status: Unknown - Stripe Test: - value: - id: prod_IaSbzLnxOHmC0i - name: Blue T Shirt - description: Nice cozy cotton t shirt - productCategoryRefs: [] - isGiftCard: false - variants: - - id: price_1ICJVEA8m8S1Gh7OIOCDOG8j - name: Blue T Shirt - Standard Price - quantity: 0 - isTaxEnabled: false - vatPercentage: 0 - prices: - - currency: GBP - unitPrice: 15 - inventory: - totalQuantity: 0 - locations: [] - shippingRequired: true - createdDate: '2021-01-22T06:52:16Z' - - id: price_1ICJQgA8m8S1Gh7OfErQdx5R - name: Blue T Shirt - Standard Price - quantity: 0 - isTaxEnabled: false - vatPercentage: 0 - prices: - - currency: USD - unitPrice: 30 - inventory: - totalQuantity: 0 - locations: [] - shippingRequired: true - createdDate: '2021-01-22T06:47:34Z' - - id: price_1HzHiCA8m8S1Gh7OXZVa6r3F - name: Blue T Shirt - Standard Price - quantity: 0 - isTaxEnabled: false - vatPercentage: 0 - prices: - - currency: GBP - unitPrice: 15 - inventory: - totalQuantity: 0 - locations: [] - shippingRequired: true - createdDate: '2020-12-17T08:19:48Z' - createdDate: '2020-12-17T08:17:48Z' - modifiedDate: '2022-09-30T11:18:27Z' - sourceModifiedDate: '2021-01-22T06:52:17Z' - status: Published - WooCommerce: - value: - id: '27' - categorization: Hardware - name: Monitor - description: '' - productCategoryRefs: [] - isGiftCard: false - variants: - - id: '27' - name: Monitor - quantity: 0 - isTaxEnabled: true - vatPercentage: 0 - prices: - - currency: GBP - unitPrice: 150 - inventory: - totalQuantity: 0 - locations: [] - shippingRequired: true - createdDate: '2021-03-11T08:55:22' - createdDate: '2021-03-11T08:55:22' - modifiedDate: '2021-07-13T16:19:00Z' - sourceModifiedDate: '2021-03-11T09:03:15' - status: Published - Zettle: - value: - id: 9d21fd90-a34a-11eb-b574-ad6abe469b61 - categorization: Clothing - name: T-Shirt - productCategoryRefs: [] - isGiftCard: false - variants: - - id: bb9bcf30-a34a-11eb-b574-ad6abe469b61 - name: Medium - quantity: 0 - isTaxEnabled: true - vatPercentage: 20 - prices: - - currency: GBP - unitPrice: 10 - inventory: - totalQuantity: 0 - locations: [] - shippingRequired: false - createdDate: '0001-01-01T00:00:00' - - id: b919df40-a34a-11eb-b574-ad6abe469b61 - name: Large - quantity: 0 - isTaxEnabled: true - vatPercentage: 20 - prices: - - currency: GBP - unitPrice: 10 - inventory: - totalQuantity: 0 - locations: [] - shippingRequired: false - createdDate: '0001-01-01T00:00:00' - - id: bcb5cab0-a34a-11eb-b574-ad6abe469b61 - name: Small - quantity: 0 - isTaxEnabled: true - vatPercentage: 20 - prices: - - currency: GBP - unitPrice: 10 - inventory: - totalQuantity: 0 - locations: [] - shippingRequired: false - createdDate: '0001-01-01T00:00:00' - createdDate: '2021-04-22T09:12:09Z' - modifiedDate: '2021-10-27T15:22:37Z' - sourceModifiedDate: '2021-08-04T14:32:20Z' - status: Published - '401': - $ref: '#/components/responses/Unauthorized' - '402': - $ref: '#/components/responses/Payment-Required' - '403': - $ref: '#/components/responses/Forbidden' - '404': - $ref: '#/components/responses/Not-Found' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - description: | - The *Get product* endpoint returns a single product for a given productId. - - [Products](https://docs.codat.io/lending-api#/schemas/Product) are items in the company's inventory that are available for sale. - - Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data). - '/companies/{companyId}/connections/{connectionId}/data/commerce-transactions': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - get: - summary: List transactions - tags: - - Sales - operationId: list-commerce-transactions - x-speakeasy-group: sales.transactions - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/CommerceTransactions' - examples: - Mollie: - value: - results: - - id: re_Azhe8TzfUK - totalAmount: -20 - currency: EUR - type: Refund - createdDate: '2022-01-17T16:00:46' - modifiedDate: '2022-03-17T15:47:28Z' - - id: re_NPKEJhQveu - totalAmount: -60 - currency: EUR - type: Refund - createdDate: '2022-01-17T16:00:05' - modifiedDate: '2022-03-17T15:47:28Z' - pageNumber: 1 - pageSize: 2 - totalResults: 7 - _links: - current: - href: /companies/a68cb447-182d-4bbe-be1a-f526d11d69d5/connections/dfbf847b-cde8-4b00-b2f9-af51dec0d337/data/commerce-transactions?page=1&pageSize=2 - self: - href: /companies/a68cb447-182d-4bbe-be1a-f526d11d69d5/connections/dfbf847b-cde8-4b00-b2f9-af51dec0d337/data/commerce-transactions - next: - href: /companies/a68cb447-182d-4bbe-be1a-f526d11d69d5/connections/dfbf847b-cde8-4b00-b2f9-af51dec0d337/data/commerce-transactions?page=2&pageSize=2 - Mollie Test: - value: - results: - - id: re_Azhe8TzfUK - totalAmount: -20 - currency: EUR - type: Refund - subType: PaymentRefund - createdDate: '2022-01-17T16:00:46' - modifiedDate: '2022-08-17T11:33:19Z' - - id: re_NPKEJhQveu - totalAmount: -60 - currency: EUR - type: Refund - subType: PaymentRefund - createdDate: '2022-01-17T16:00:05' - modifiedDate: '2022-08-17T11:33:19Z' - pageNumber: 1 - pageSize: 2 - totalResults: 7 - _links: - current: - href: /companies/b978f9fe-8d63-4cfc-b2c2-b61b72e22785/connections/d564f8fd-0766-4ab8-a427-7c893f9b9ff6/data/commerce-transactions?page=1&pageSize=2 - self: - href: /companies/b978f9fe-8d63-4cfc-b2c2-b61b72e22785/connections/d564f8fd-0766-4ab8-a427-7c893f9b9ff6/data/commerce-transactions - next: - href: /companies/b978f9fe-8d63-4cfc-b2c2-b61b72e22785/connections/d564f8fd-0766-4ab8-a427-7c893f9b9ff6/data/commerce-transactions?page=2&pageSize=2 - Shopify: - value: - results: - - id: ShopifyPayment-1633176289438 - totalAmount: 175 - currency: GBP - type: Payment - subType: charge - transactionSourceRef: - id: '3684116791454' - type: Order - createdDate: '2021-03-19T13:16:26' - modifiedDate: '2023-02-10T15:18:23Z' - sourceModifiedDate: '2021-03-19T13:16:26' - - id: 'ShopifyPayment-1633176289438:Fee' - totalAmount: -4.05 - currency: GBP - type: PaymentFee - subType: charge - transactionSourceRef: - id: '3684116791454' - type: Order - createdDate: '2021-03-19T13:16:26' - modifiedDate: '2023-02-10T15:18:23Z' - sourceModifiedDate: '2021-03-19T13:16:26' - pageNumber: 1 - pageSize: 2 - totalResults: 64 - _links: - current: - href: /companies/0bc1cc44-c6d2-4537-9591-b1ad6b5e3c94/connections/d38fa6d3-d712-4cf6-9d9d-f03bacd87595/data/commerce-transactions?page=1&pageSize=2 - self: - href: /companies/0bc1cc44-c6d2-4537-9591-b1ad6b5e3c94/connections/d38fa6d3-d712-4cf6-9d9d-f03bacd87595/data/commerce-transactions - next: - href: /companies/0bc1cc44-c6d2-4537-9591-b1ad6b5e3c94/connections/d38fa6d3-d712-4cf6-9d9d-f03bacd87595/data/commerce-transactions?page=2&pageSize=2 - Stripe Test: - value: - results: - - id: txn_1HpGQUA8m8S1Gh7OR21pB0Yj - totalAmount: 50 - currency: GBP - type: Payment - subType: charge - transactionSourceRef: - id: ch_1HpGQUA8m8S1Gh7Ot4WDTus5 - type: Payment - createdDate: '2020-11-19T16:56:06Z' - modifiedDate: '2022-09-30T11:18:28Z' - - id: 'txn_1HpGQUA8m8S1Gh7OR21pB0Yj:Stripe processing fees' - totalAmount: -0.9 - currency: GBP - type: PaymentFee - subType: stripe_fee - transactionSourceRef: - id: ch_1HpGQUA8m8S1Gh7Ot4WDTus5 - type: Payment - createdDate: '2020-11-19T16:56:06Z' - modifiedDate: '2022-09-30T11:18:28Z' - pageNumber: 1 - pageSize: 2 - totalResults: 70 - _links: - current: - href: /companies/8206e78e-e340-411e-b315-473c4ab73b48/connections/43e58373-0a1d-44a0-97f0-9fa9993a14fa/data/commerce-transactions?page=1&pageSize=2 - self: - href: /companies/8206e78e-e340-411e-b315-473c4ab73b48/connections/43e58373-0a1d-44a0-97f0-9fa9993a14fa/data/commerce-transactions - next: - href: /companies/8206e78e-e340-411e-b315-473c4ab73b48/connections/43e58373-0a1d-44a0-97f0-9fa9993a14fa/data/commerce-transactions?page=2&pageSize=2 - SumUp: - value: - results: - - id: 46d36a64-ea48-4e37-9340-3548cbf3ca2f - totalAmount: 15 - currency: GBP - type: Payment - subType: PAYMENT - createdDate: '2021-03-26T21:09:59Z' - modifiedDate: '2022-09-14T10:58:03Z' - - id: 471914a4-a82f-4fc4-b39b-9986fd706d26 - totalAmount: 215 - currency: GBP - type: Payment - subType: PAYMENT - createdDate: '2021-03-30T12:22:14Z' - modifiedDate: '2022-09-14T10:58:03Z' - pageNumber: 1 - pageSize: 2 - totalResults: 3 - _links: - current: - href: /companies/e170dbe2-be50-474f-b449-82add37108de/connections/1e631dd5-a30b-4bad-ad5c-315c9743535b/data/commerce-transactions?page=1&pageSize=2 - self: - href: /companies/e170dbe2-be50-474f-b449-82add37108de/connections/1e631dd5-a30b-4bad-ad5c-315c9743535b/data/commerce-transactions - next: - href: /companies/e170dbe2-be50-474f-b449-82add37108de/connections/1e631dd5-a30b-4bad-ad5c-315c9743535b/data/commerce-transactions?page=2&pageSize=2 - Zettle: - value: - results: - - id: 'PAYMENT:09b94cfc-2d98-11eb-8021-0e1b9dcbeca1' - totalAmount: 25 - currency: GBP - type: Payment - transactionSourceRef: - id: 09b94cfc-2d98-11eb-8021-0e1b9dcbeca1 - type: Unknown - createdDate: '2020-11-23T14:27:38Z' - modifiedDate: '2021-10-27T15:23:04Z' - sourceModifiedDate: '2020-11-25T23:10:01Z' - - id: 'PAYMENT:226580d6-2d98-11eb-a35c-fed5e63de507' - totalAmount: 58.5 - currency: GBP - type: Payment - transactionSourceRef: - id: 226580d6-2d98-11eb-a35c-fed5e63de507 - type: Unknown - createdDate: '2020-11-23T14:28:20Z' - modifiedDate: '2021-10-27T15:23:04Z' - sourceModifiedDate: '2020-11-25T23:10:02Z' - pageNumber: 1 - pageSize: 2 - totalResults: 16 - _links: - current: - href: /companies/9d448ad0-4508-47fc-bd3b-6950493151f1/connections/c7baa8da-3302-464b-8aa1-edcd4c900902/data/commerce-transactions?page=1&pageSize=2 - self: - href: /companies/9d448ad0-4508-47fc-bd3b-6950493151f1/connections/c7baa8da-3302-464b-8aa1-edcd4c900902/data/commerce-transactions - next: - href: /companies/9d448ad0-4508-47fc-bd3b-6950493151f1/connections/c7baa8da-3302-464b-8aa1-edcd4c900902/data/commerce-transactions?page=2&pageSize=2 - '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' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - description: "The *List transactions* endpoint returns a list of [transactions](https://docs.codat.io/lending-api#/schemas/Transaction) for a given company's connection.\n\n[Transactions](https://docs.codat.io/lending-api#/schemas/Transaction) detail all financial affairs recorded in the commerce or point of sale system.\n\nBefore using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data).\n " - parameters: - - $ref: '#/components/parameters/page' - - $ref: '#/components/parameters/pageSize' - - $ref: '#/components/parameters/query' - - $ref: '#/components/parameters/orderBy' - '/companies/{companyId}/connections/{connectionId}/data/commerce-transactions/{transactionId}': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - - name: transactionId - in: path - required: true - schema: - type: string - examples: - - 13d946f0-c5d5-42bc-b092-97ece17923ab - - 9wg4lep4ush5cxs79pl8sozmsndbaukll3ind4g7buqbm1h2 - - 7110701885 - - EILBDVJVNUAGVKRQ - description: Unique identifier for a transaction. - get: - summary: Get transaction - tags: - - Sales - operationId: get-commerce-transaction - x-speakeasy-group: sales.transactions - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/CommerceTransaction' - examples: - Mollie: - value: - id: re_Azhe8TzfUK - totalAmount: -20 - currency: EUR - type: Refund - createdDate: '2022-01-17T16:00:46' - modifiedDate: '2022-03-17T15:47:28Z' - Mollie Test: - value: - id: re_Azhe8TzfUK - totalAmount: -20 - currency: EUR - type: Refund - subType: PaymentRefund - createdDate: '2022-01-17T16:00:46' - modifiedDate: '2022-08-17T11:33:19Z' - Shopify: - value: - id: ShopifyPayment-1633176289438 - totalAmount: 175 - currency: GBP - type: Payment - subType: charge - transactionSourceRef: - id: '3684116791454' - type: Order - createdDate: '2021-03-19T13:16:26' - modifiedDate: '2023-02-10T15:18:23Z' - sourceModifiedDate: '2021-03-19T13:16:26' - Stripe Test: - value: - id: txn_1HpGQUA8m8S1Gh7OR21pB0Yj - totalAmount: 50 - currency: GBP - type: Payment - subType: charge - transactionSourceRef: - id: ch_1HpGQUA8m8S1Gh7Ot4WDTus5 - type: Payment - createdDate: '2020-11-19T16:56:06Z' - modifiedDate: '2022-09-30T11:18:28Z' - SumUp: - value: - id: 46d36a64-ea48-4e37-9340-3548cbf3ca2f - totalAmount: 15 - currency: GBP - type: Payment - subType: PAYMENT - createdDate: '2021-03-26T21:09:59Z' - modifiedDate: '2022-09-14T10:58:03Z' - Zettle: - value: - id: 'PAYMENT:09b94cfc-2d98-11eb-8021-0e1b9dcbeca1' - totalAmount: 25 - currency: GBP - type: Payment - transactionSourceRef: - id: 09b94cfc-2d98-11eb-8021-0e1b9dcbeca1 - type: Unknown - createdDate: '2020-11-23T14:27:38Z' - modifiedDate: '2021-10-27T15:23:04Z' - sourceModifiedDate: '2020-11-25T23:10:01Z' - '401': - $ref: '#/components/responses/Unauthorized' - '402': - $ref: '#/components/responses/Payment-Required' - '403': - $ref: '#/components/responses/Forbidden' - '404': - $ref: '#/components/responses/Not-Found' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - description: | - The *Get transaction* endpoint returns a single transaction for a given transactionId. - - [Transactions](https://docs.codat.io/lending-api#/schemas/Transaction) detail all financial affairs recorded in the commerce or point of sale system. - - Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data). - '/companies/{companyId}/files': - parameters: - - $ref: '#/components/parameters/companyId' - get: - tags: - - File upload - summary: List all files uploaded by a company - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/Files' - examples: {} - '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: "\uFEFF\x54\x68\x65\x20\x2A\x4C\x69\x73\x74\x20\x66\x69\x6C\x65\x73\x2A\x20\x65\x6E\x64\x70\x6F\x69\x6E\x74\x20\x72\x65\x74\x75\x72\x6E\x73\x20\x61\x20\x6C\x69\x73\x74\x20\x6F\x66\x20\x61\x6C\x6C\x20\x66\x69\x6C\x65\x73\x20\x75\x70\x6C\x6F\x61\x64\x65\x64\x20\x74\x6F\x20\x43\x6F\x64\x61\x74\x20\x62\x79\x20\x74\x68\x65\x20\x53\x4D\x42\x2E\x20" - operationId: list-files - x-speakeasy-name-override: list-uploaded - '/companies/{companyId}/files/download': - parameters: - - $ref: '#/components/parameters/companyId' - get: - tags: - - File upload - summary: Download all files for a company - parameters: - - name: date - in: query - schema: - $ref: '#/components/schemas/DateTime' - description: Only download files uploaded on this date. - responses: - '200': - description: Success - content: - application/octet-stream: - x-speakeasy-usage-example: true - schema: - title: Data - type: string - format: binary - '400': - $ref: '#/components/responses/BadRequest' - '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: The *Download files* endpoint downloads all files that have been uploaded by to SMB to Codat. A `date` may be specified to download any files uploaded on the date provided. - operationId: download-files - x-speakeasy-name-override: download - '/companies/{companyId}/connections/{connectionId}/files': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - post: - tags: - - File upload - summary: Upload files for a company - responses: - '200': - description: Success - '400': - $ref: '#/components/responses/BadRequest' - '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' - requestBody: - content: - multipart/form-data: - schema: - $ref: '#/components/schemas/FileUpload' - description: |- - The *Upload files* endpoint uploads multiple files provided by the SMB to Codat. This may include personal identity documents, pitch decks, contracts, or files with accounting and banking data. - - Uploaded files must meet the following requirements: - - - Up to 20 files can be uploaded at a time. - - PDF, XLS, XLSX, XLSB, CSV, DOC, DOCX, PPT, PPTX, JPEG, JPG, and PNG files can be uploaded. - - Each file can be up to 10MB in size. - operationId: upload-files - x-speakeasy-name-override: upload - '/companies/{companyId}/connections/{connectionId}/options/bankAccounts': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - get: - summary: Get create/update bank account model - tags: - - Loan writeback - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/PushOption' - examples: - Dynamics 365 Business Central: - value: - type: Object - displayName: Bank Account - description: An account that bank transactions may be recorded against - properties: - accountName: - type: String - displayName: Name - description: The name of the bank account in the originating system - required: true - validation: - warnings: [] - information: - - field: AccountName - details: 'Needs to be of the format ''{No.}-{Name}''' - currency: - type: String - displayName: Currency - description: The currency of the bank account - required: true - accountNumber: - type: String - displayName: Account Number - description: The account number for the bank account - required: false - nominalCode: - type: String - displayName: Nominal Code - description: The external reference given to each nominal account for a business - required: false - validation: - warnings: [] - information: - - field: NominalCode - details: Bank Account Posting Group with Nominal Account must exist - sortCode: - type: String - displayName: Sort Code - description: The sort code for the bank account - required: false - validation: - warnings: [] - information: - - field: SortCode - details: Must have a length between 0 and 20 characters - iBan: - type: String - displayName: IBAN - description: The international bank account number of the account. Often used when making or receiving international payments - required: false - overdraftLimit: - type: Number - displayName: Overdraft Limit - description: The pre-arranged overdraft limit of the account - required: false - validation: - warnings: [] - information: - - field: OverdraftLimit - details: Default value is 0 - required: true - Exact (Netherlands): - value: - type: Object - displayName: Bank Account - description: An account that bank transactions may be recorded against - properties: - accountName: - type: String - displayName: Name - description: The name of the bank account in the originating system - required: true - accountNumber: - type: String - displayName: Account Number - description: The account number for the bank account - required: true - validation: - warnings: - - field: AccountNumber - details: Should not exceed the maximum length of 14 characters if the specified currency is GBP. - information: [] - sortCode: - type: String - displayName: Sort Code - description: The sort code for the bank account - required: false - validation: - warnings: - - field: SortCode - details: Must be 6 characters long if the specified currency is GBP. - - field: SortCode - details: Must be provided if the specified currency is GBP. - information: [] - currency: - type: String - displayName: Currency - description: The currency of the bank account - required: false - nominalCode: - type: String - displayName: Nominal Code - description: The external reference given to each nominal account for a business - required: false - required: true - Exact (UK): - value: - type: Object - displayName: Bank Account - description: An account that bank transactions may be recorded against - properties: - accountName: - type: String - displayName: Name - description: The name of the bank account in the originating system - required: true - accountNumber: - type: String - displayName: Account Number - description: The account number for the bank account - required: true - validation: - warnings: - - field: AccountNumber - details: Should not exceed the maximum length of 14 characters if the specified currency is GBP. - information: [] - sortCode: - type: String - displayName: Sort Code - description: The sort code for the bank account - required: false - validation: - warnings: - - field: SortCode - details: Must be 6 characters long if the specified currency is GBP. - - field: SortCode - details: Must be provided if the specified currency is GBP. - information: [] - currency: - type: String - displayName: Currency - description: The currency of the bank account - required: false - nominalCode: - type: String - displayName: Nominal Code - description: The external reference given to each nominal account for a business - required: false - required: true - FreeAgent: - value: - type: Object - displayName: Bank Account - description: An account that bank transactions may be recorded against - properties: - accountName: - type: String - displayName: Name - description: The name of the bank account in the originating system - required: true - sortCode: - type: String - displayName: Sort Code - description: The sort code for the bank account - required: false - validation: - warnings: - - field: SortCode - details: Must have a length between 0 and 8 characters - information: [] - accountNumber: - type: String - displayName: Account Number - description: The account number for the bank account - required: false - iBan: - type: String - displayName: IBAN - description: The international bank account number of the account. Often used when making or receiving international payments - required: false - currency: - type: String - displayName: Currency - description: The currency of the bank account - options: - - value: AED - type: String - displayName: AED - required: false - - value: AMD - type: String - displayName: AMD - required: false - - value: AOA - type: String - displayName: AOA - required: false - - value: ARS - type: String - displayName: ARS - required: false - - value: AUD - type: String - displayName: AUD - required: false - - value: AWG - type: String - displayName: AWG - required: false - - value: AZN - type: String - displayName: AZN - required: false - - value: BBD - type: String - displayName: BBD - required: false - - value: BDT - type: String - displayName: BDT - required: false - - value: BGN - type: String - displayName: BGN - required: false - - value: BRL - type: String - displayName: BRL - required: false - - value: BWP - type: String - displayName: BWP - required: false - - value: CAD - type: String - displayName: CAD - required: false - - value: CHF - type: String - displayName: CHF - required: false - - value: CLP - type: String - displayName: CLP - required: false - - value: CNY - type: String - displayName: CNY - required: false - - value: COP - type: String - displayName: COP - required: false - - value: CRC - type: String - displayName: CRC - required: false - - value: CUC - type: String - displayName: CUC - required: false - - value: CUP - type: String - displayName: CUP - required: false - - value: CZK - type: String - displayName: CZK - required: false - - value: DKK - type: String - displayName: DKK - required: false - - value: DOP - type: String - displayName: DOP - required: false - - value: EGP - type: String - displayName: EGP - required: false - - value: EUR - type: String - displayName: EUR - required: false - - value: FJD - type: String - displayName: FJD - required: false - - value: GBP - type: String - displayName: GBP - required: false - - value: GEL - type: String - displayName: GEL - required: false - - value: GHS - type: String - displayName: GHS - required: false - - value: GTQ - type: String - displayName: GTQ - required: false - - value: GYD - type: String - displayName: GYD - required: false - - value: HKD - type: String - displayName: HKD - required: false - - value: HNL - type: String - displayName: HNL - required: false - - value: HRK - type: String - displayName: HRK - required: false - - value: HUF - type: String - displayName: HUF - required: false - - value: IDR - type: String - displayName: IDR - required: false - - value: ILS - type: String - displayName: ILS - required: false - - value: INR - type: String - displayName: INR - required: false - - value: ISK - type: String - displayName: ISK - required: false - - value: JMD - type: String - displayName: JMD - required: false - - value: JPY - type: String - displayName: JPY - required: false - - value: KES - type: String - displayName: KES - required: false - - value: KRW - type: String - displayName: KRW - required: false - - value: KWD - type: String - displayName: KWD - required: false - - value: KYD - type: String - displayName: KYD - required: false - - value: KZT - type: String - displayName: KZT - required: false - - value: LAK - type: String - displayName: LAK - required: false - - value: LBP - type: String - displayName: LBP - required: false - - value: LKR - type: String - displayName: LKR - required: false - - value: LTL - type: String - displayName: LTL - required: false - - value: LVL - type: String - displayName: LVL - required: false - - value: MAD - type: String - displayName: MAD - required: false - - value: MDL - type: String - displayName: MDL - required: false - - value: MGA - type: String - displayName: MGA - required: false - - value: MUR - type: String - displayName: MUR - required: false - - value: MVR - type: String - displayName: MVR - required: false - - value: MWK - type: String - displayName: MWK - required: false - - value: MXN - type: String - displayName: MXN - required: false - - value: MYR - type: String - displayName: MYR - required: false - - value: MZN - type: String - displayName: MZN - required: false - - value: NAD - type: String - displayName: NAD - required: false - - value: NGN - type: String - displayName: NGN - required: false - - value: NOK - type: String - displayName: NOK - required: false - - value: NPR - type: String - displayName: NPR - required: false - - value: NZD - type: String - displayName: NZD - required: false - - value: OMR - type: String - displayName: OMR - required: false - - value: PEN - type: String - displayName: PEN - required: false - - value: PHP - type: String - displayName: PHP - required: false - - value: PKR - type: String - displayName: PKR - required: false - - value: PLN - type: String - displayName: PLN - required: false - - value: QAR - type: String - displayName: QAR - required: false - - value: RON - type: String - displayName: RON - required: false - - value: RSD - type: String - displayName: RSD - required: false - - value: RUB - type: String - displayName: RUB - required: false - - value: RWF - type: String - displayName: RWF - required: false - - value: SAR - type: String - displayName: SAR - required: false - - value: SCR - type: String - displayName: SCR - required: false - - value: SEK - type: String - displayName: SEK - required: false - - value: SGD - type: String - displayName: SGD - required: false - - value: THB - type: String - displayName: THB - required: false - - value: TND - type: String - displayName: TND - required: false - - value: TRY - type: String - displayName: TRY - required: false - - value: TTD - type: String - displayName: TTD - required: false - - value: TWD - type: String - displayName: TWD - required: false - - value: TZS - type: String - displayName: TZS - required: false - - value: UAH - type: String - displayName: UAH - required: false - - value: UGX - type: String - displayName: UGX - required: false - - value: USD - type: String - displayName: USD - required: false - - value: UYU - type: String - displayName: UYU - required: false - - value: VEF - type: String - displayName: VEF - required: false - - value: VND - type: String - displayName: VND - required: false - - value: VUV - type: String - displayName: VUV - required: false - - value: XAF - type: String - displayName: XAF - required: false - - value: XCD - type: String - displayName: XCD - required: false - - value: XOF - type: String - displayName: XOF - required: false - - value: ZAR - type: String - displayName: ZAR - required: false - - value: ZMK - type: String - displayName: ZMK - required: false - required: true - balance: - type: Number - displayName: Balance - description: The balance of the bank account - required: false - validation: - warnings: [] - information: - - field: Balance - details: 'The opening balance, in the account currency' - institution: - type: String - displayName: Institution - description: The institution of the bank account - required: false - required: true - KashFlow: - value: - type: Object - displayName: Bank Account - description: An account that bank transactions may be recorded against - properties: - accountName: - type: String - displayName: Account Name - description: Name of the bank account as it appears in Kashflow. - required: true - balance: - type: Number - displayName: Balance - description: 'The opening balance, in the account currency.' - required: false - currency: - type: String - displayName: Currency - description: The currency of the bank account. - required: true - required: true - QuickBooks Desktop: - value: - type: Object - displayName: Bank Account - description: An account that bank transactions may be recorded against - properties: - nominalCode: - type: String - displayName: Nominal Code - description: The external reference given to each nominal account for a business - required: true - validation: - warnings: - - field: NominalCode - details: Max length of 7 characters. - information: [] - accountName: - type: String - displayName: Name - description: The name of the bank account in the originating system - required: true - validation: - warnings: - - field: AccountName - details: Max length of 31 characters. - information: [] - currency: - type: String - displayName: Currency - description: The currency of the bank account - required: false - validation: - warnings: - - field: Currency - details: 'The currency must match the base currency of the QuickBooks Desktop company unless the FullyQualifiedCategory is ''Asset.AccountsReceivable'',''Liability.AccountsPayable'' or ''Liability.CreditCard''' - - field: Currency - details: Must be a three letter ISO code that matches an existing active currency in the QuickBooks Desktop company - - field: Currency - details: Can only be set if the QuickBooks Desktop company has Multicurrency enabled. - information: - - field: Currency - details: 'If not set, will default to the base currency of the QuickBooks Desktop company' - balance: - type: Number - displayName: Balance - description: The balance of the bank account - required: false - required: true - QuickBooks Online Sandbox: - value: - type: Object - displayName: Bank Account - description: An account that bank transactions may be recorded against - properties: - accountName: - type: String - displayName: Account Name - description: Name of account as it appears in the chart of accounts or general ledger. - required: true - accountNumber: - type: String - displayName: Account Number - description: User-defined account number to help the user in identifying the account within the chart-of-accounts and in deciding what should be posted to the account. - required: true - currency: - type: String - displayName: Currency - description: Currency of the bank account. - required: true - required: true - Sage Business Cloud Accounting: - value: - type: Object - displayName: Bank Account - description: An account that bank transactions may be recorded against - properties: - accountName: - type: String - displayName: Name - description: The name of the bank account in the originating system - required: true - validation: - warnings: [] - information: - - field: AccountName - details: Must be provided. - - field: AccountName - details: Should not be longer than 50 characters. - currency: - type: String - displayName: Currency - description: The currency of the bank account - required: true - validation: - warnings: [] - information: - - field: Currency - details: Must be provided. - - field: Currency - details: Must match the company's base currency. - sortCode: - type: String - displayName: Sort Code - description: The sort code for the bank account - required: false - validation: - warnings: [] - information: - - field: SortCode - details: Should be a 6 digit number. - accountNumber: - type: String - displayName: Account Number - description: The account number for the bank account - required: false - validation: - warnings: [] - information: - - field: AccountNumber - details: Should not be longer than 25 characters. - iBan: - type: String - displayName: IBAN - description: The international bank account number of the account. Often used when making or receiving international payments - required: false - validation: - warnings: [] - information: - - field: IBan - details: Should be in the international bank account number format. - nominalCode: - type: String - displayName: Nominal Code - description: The external reference given to each nominal account for a business - required: false - validation: - warnings: [] - information: - - field: NominalCode - details: Should be a number between 1 and 99999999. - required: true - Sandbox: - value: - type: Object - displayName: Bank Account - description: An account that bank transactions may be recorded against - properties: - accountName: - type: String - displayName: Name - description: The name of the bank account in the originating system - required: true - accountType: - type: String - displayName: Account Type - description: The type of account - required: true - nominalCode: - type: String - displayName: Nominal Code - description: The external reference given to each nominal account for a business - required: true - sortCode: - type: String - displayName: Sort Code - description: The sort code for the bank account - required: true - accountNumber: - type: String - displayName: Account Number - description: The account number for the bank account - required: true - iBan: - type: String - displayName: IBAN - description: The international bank account number of the account. Often used when making or receiving international payments - required: true - currency: - type: String - displayName: Currency - description: The currency of the bank account - required: true - balance: - type: Number - displayName: Balance - description: The balance of the bank account - required: true - availableBalance: - type: Number - displayName: Available Balance - description: The available balance of the bank account - required: true - overdraftLimit: - type: Number - displayName: Overdraft Limit - description: The pre-arranged overdraft limit of the account - required: true - institution: - type: String - displayName: Institution - description: The institution of the bank account - required: true - metadata: - type: Object - displayName: Metadata - description: Miscellaneous data about the item - properties: - isDeleted: - type: Boolean - displayName: IsDeleted - description: A boolean to indicate whether the object has been deleted - required: true - required: true - required: true - '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' - operationId: get-create-update-bankAccounts-model - x-speakeasy-group: loan-writeback.bank-accounts - description: "The *Get create/update bank account model* endpoint returns the expected data for the request payload when creating and updating a [bank account](https://docs.codat.io/lending-api#/schemas/BankAccount) for a given company and integration.\r\n\r\n[Bank accounts](https://docs.codat.io/lending-api#/schemas/BankAccount) are financial accounts maintained by a bank or other financial institution.\r\n\r\n**Integration-specific behavior**\r\n\r\nSee the *response examples* for integration-specific indicative models.\r\n" - '/companies/{companyId}/connections/{connectionId}/push/bankAccounts': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - post: - tags: - - Loan writeback - summary: Create bank account - parameters: - - $ref: '#/components/parameters/timeoutInMinutes' - - $ref: '#/components/parameters/allowSyncOnPushComplete' - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/AccountingBankAccount' - examples: {} - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/AccountingCreateBankAccountResponse' - examples: {} - '400': - $ref: '#/components/responses/BadRequest' - '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: "The *Create bank account* endpoint creates a new [bank account](https://docs.codat.io/lending-api#/schemas/BankAccount) for a given company's connection.\r\n\r\n[Bank accounts](https://docs.codat.io/lending-api#/schemas/BankAccount) are financial accounts maintained by a bank or other financial institution.\r\n\r\n**Integration-specific behavior**\r\n\r\nRequired data may vary by integration. To see what data to post, first call [Get create/update bank account model](https://docs.codat.io/lending-api#/operations/get-create-update-bankAccounts-model)." - operationId: create-bank-account - x-speakeasy-group: loan-writeback.bank-accounts - '/companies/{companyId}/connections/{connectionId}/options/chartOfAccounts': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - get: - summary: Get create account model - tags: - - Loan writeback - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/PushOption' - examples: - Exact (Netherlands): - value: - type: Object - displayName: Nominal Account - description: Nominal Accounts are the categories a business uses to record transactions - properties: - nominalCode: - type: String - displayName: Nominal Code - description: The external reference given to each nominal account for a business - required: true - validation: - warnings: [] - information: - - field: NominalCode - details: Must be provided. - name: - type: String - displayName: Name - description: Name of the account - required: true - validation: - warnings: [] - information: - - field: Name - details: Must be provided. - fullyQualifiedCategory: - type: String - displayName: Fully Qualified Category - description: The full category of the account e.g. Liability.Current or Income.Revenue - options: - - value: Asset.Assets.Cash - type: String - displayName: Asset.Assets.Cash - required: false - - value: Asset.Assets.Bank - type: String - displayName: Asset.Assets.Bank - required: false - - value: Asset.Assets.PaymentServices - type: String - displayName: Asset.Assets.PaymentServices - required: false - - value: Asset.Assets.AccountsReceivable - type: String - displayName: Asset.Assets.AccountsReceivable - required: false - - value: Liability.EquityAndLiabilities.AccountsPayable - type: String - displayName: Liability.EquityAndLiabilities.AccountsPayable - required: false - - value: Asset.Assets.VAT - type: String - displayName: Asset.Assets.VAT - required: false - - value: Liability.EquityAndLiabilities.EmployeesPayable - type: String - displayName: Liability.EquityAndLiabilities.EmployeesPayable - required: false - - value: Asset.Assets.PrepaidExpenses - type: String - displayName: Asset.Assets.PrepaidExpenses - required: false - - value: Liability.EquityAndLiabilities.AccruedExpenses - type: String - displayName: Liability.EquityAndLiabilities.AccruedExpenses - required: false - - value: Liability.EquityAndLiabilities.IncomeTaxesPayable - type: String - displayName: Liability.EquityAndLiabilities.IncomeTaxesPayable - required: false - - value: Asset.Assets.FixedAssets - type: String - displayName: Asset.Assets.FixedAssets - required: false - - value: Asset.Assets.OtherAssets - type: String - displayName: Asset.Assets.OtherAssets - required: false - - value: Asset.Assets.AccumulatedDeprecation - type: String - displayName: Asset.Assets.AccumulatedDeprecation - required: false - - value: Asset.Assets.Inventory - type: String - displayName: Asset.Assets.Inventory - required: false - - value: Equity.EquityAndLiabilities.CapitalStock - type: String - displayName: Equity.EquityAndLiabilities.CapitalStock - required: false - - value: Equity.EquityAndLiabilities.RetainedEarnings - type: String - displayName: Equity.EquityAndLiabilities.RetainedEarnings - required: false - - value: Liability.EquityAndLiabilities.LongTermDebt - type: String - displayName: Liability.EquityAndLiabilities.LongTermDebt - required: false - - value: Liability.EquityAndLiabilities.CurrentPortionOfDebt - type: String - displayName: Liability.EquityAndLiabilities.CurrentPortionOfDebt - required: false - - value: Unknown.EquityAndLiabilities.Intercompany - type: String - displayName: Unknown.EquityAndLiabilities.Intercompany - required: false - - value: Unknown.General.General - type: String - displayName: Unknown.General.General - required: false - - value: Income.NetIncome.Revenue - type: String - displayName: Income.NetIncome.Revenue - required: false - - value: Expense.NetIncome.CostOfGoods - type: String - displayName: Expense.NetIncome.CostOfGoods - required: false - - value: Expense.NetIncome.OtherCosts - type: String - displayName: Expense.NetIncome.OtherCosts - required: false - - value: Expense.NetIncome.SalesGeneralAdministrativeExpenses - type: String - displayName: Expense.NetIncome.SalesGeneralAdministrativeExpenses - required: false - - value: Expense.NetIncome.DeprecationCosts - type: String - displayName: Expense.NetIncome.DeprecationCosts - required: false - - value: Expense.NetIncome.ResearchAndDevelopment - type: String - displayName: Expense.NetIncome.ResearchAndDevelopment - required: false - - value: Expense.NetIncome.EmployeeCosts - type: String - displayName: Expense.NetIncome.EmployeeCosts - required: false - - value: Expense.NetIncome.EmploymentCosts - type: String - displayName: Expense.NetIncome.EmploymentCosts - required: false - - value: Expense.ExceptionalIncome.ExceptionalCosts - type: String - displayName: Expense.ExceptionalIncome.ExceptionalCosts - required: false - - value: Income.ExceptionalIncome.ExceptionalIncome - type: String - displayName: Income.ExceptionalIncome.ExceptionalIncome - required: false - - value: Expense.ExceptionalIncome.IncomeTaxes - type: String - displayName: Expense.ExceptionalIncome.IncomeTaxes - required: false - - value: Income.ExceptionalIncome.InterestIncome - type: String - displayName: Income.ExceptionalIncome.InterestIncome - required: false - required: true - validation: - warnings: [] - information: - - field: FullyQualifiedCategory - details: Must be provided. - status: - type: String - displayName: Account Status - description: The status of the account - options: - - value: Active - type: String - displayName: Active - required: false - - value: Pending - type: String - displayName: Pending - required: false - - value: Unknown - type: String - displayName: Unknown - required: false - required: true - validation: - warnings: [] - information: - - field: Status - details: Must be provided. - required: true - Exact (UK): - value: - type: Object - displayName: Nominal Account - description: Nominal Accounts are the categories a business uses to record transactions - properties: - nominalCode: - type: String - displayName: Nominal Code - description: The external reference given to each nominal account for a business - required: true - validation: - warnings: [] - information: - - field: NominalCode - details: Must be provided. - name: - type: String - displayName: Name - description: Name of the account - required: true - validation: - warnings: [] - information: - - field: Name - details: Must be provided. - fullyQualifiedCategory: - type: String - displayName: Fully Qualified Category - description: The full category of the account e.g. Liability.Current or Income.Revenue - options: - - value: Asset.Assets.Cash - type: String - displayName: Asset.Assets.Cash - required: false - - value: Asset.Assets.Bank - type: String - displayName: Asset.Assets.Bank - required: false - - value: Asset.Assets.PaymentServices - type: String - displayName: Asset.Assets.PaymentServices - required: false - - value: Asset.Assets.AccountsReceivable - type: String - displayName: Asset.Assets.AccountsReceivable - required: false - - value: Liability.EquityAndLiabilities.AccountsPayable - type: String - displayName: Liability.EquityAndLiabilities.AccountsPayable - required: false - - value: Asset.Assets.VAT - type: String - displayName: Asset.Assets.VAT - required: false - - value: Liability.EquityAndLiabilities.EmployeesPayable - type: String - displayName: Liability.EquityAndLiabilities.EmployeesPayable - required: false - - value: Asset.Assets.PrepaidExpenses - type: String - displayName: Asset.Assets.PrepaidExpenses - required: false - - value: Liability.EquityAndLiabilities.AccruedExpenses - type: String - displayName: Liability.EquityAndLiabilities.AccruedExpenses - required: false - - value: Liability.EquityAndLiabilities.IncomeTaxesPayable - type: String - displayName: Liability.EquityAndLiabilities.IncomeTaxesPayable - required: false - - value: Asset.Assets.FixedAssets - type: String - displayName: Asset.Assets.FixedAssets - required: false - - value: Asset.Assets.OtherAssets - type: String - displayName: Asset.Assets.OtherAssets - required: false - - value: Asset.Assets.AccumulatedDeprecation - type: String - displayName: Asset.Assets.AccumulatedDeprecation - required: false - - value: Asset.Assets.Inventory - type: String - displayName: Asset.Assets.Inventory - required: false - - value: Equity.EquityAndLiabilities.CapitalStock - type: String - displayName: Equity.EquityAndLiabilities.CapitalStock - required: false - - value: Equity.EquityAndLiabilities.RetainedEarnings - type: String - displayName: Equity.EquityAndLiabilities.RetainedEarnings - required: false - - value: Liability.EquityAndLiabilities.LongTermDebt - type: String - displayName: Liability.EquityAndLiabilities.LongTermDebt - required: false - - value: Liability.EquityAndLiabilities.CurrentPortionOfDebt - type: String - displayName: Liability.EquityAndLiabilities.CurrentPortionOfDebt - required: false - - value: Unknown.EquityAndLiabilities.Intercompany - type: String - displayName: Unknown.EquityAndLiabilities.Intercompany - required: false - - value: Unknown.General.General - type: String - displayName: Unknown.General.General - required: false - - value: Income.NetIncome.Revenue - type: String - displayName: Income.NetIncome.Revenue - required: false - - value: Expense.NetIncome.CostOfGoods - type: String - displayName: Expense.NetIncome.CostOfGoods - required: false - - value: Expense.NetIncome.OtherCosts - type: String - displayName: Expense.NetIncome.OtherCosts - required: false - - value: Expense.NetIncome.SalesGeneralAdministrativeExpenses - type: String - displayName: Expense.NetIncome.SalesGeneralAdministrativeExpenses - required: false - - value: Expense.NetIncome.DeprecationCosts - type: String - displayName: Expense.NetIncome.DeprecationCosts - required: false - - value: Expense.NetIncome.ResearchAndDevelopment - type: String - displayName: Expense.NetIncome.ResearchAndDevelopment - required: false - - value: Expense.NetIncome.EmployeeCosts - type: String - displayName: Expense.NetIncome.EmployeeCosts - required: false - - value: Expense.NetIncome.EmploymentCosts - type: String - displayName: Expense.NetIncome.EmploymentCosts - required: false - - value: Expense.ExceptionalIncome.ExceptionalCosts - type: String - displayName: Expense.ExceptionalIncome.ExceptionalCosts - required: false - - value: Income.ExceptionalIncome.ExceptionalIncome - type: String - displayName: Income.ExceptionalIncome.ExceptionalIncome - required: false - - value: Expense.ExceptionalIncome.IncomeTaxes - type: String - displayName: Expense.ExceptionalIncome.IncomeTaxes - required: false - - value: Income.ExceptionalIncome.InterestIncome - type: String - displayName: Income.ExceptionalIncome.InterestIncome - required: false - required: true - validation: - warnings: [] - information: - - field: FullyQualifiedCategory - details: Must be provided. - status: - type: String - displayName: Account Status - description: The status of the account - options: - - value: Active - type: String - displayName: Active - required: false - - value: Pending - type: String - displayName: Pending - required: false - - value: Unknown - type: String - displayName: Unknown - required: false - required: true - validation: - warnings: [] - information: - - field: Status - details: Must be provided. - required: true - MYOB AccountRight and Essentials: - value: - type: Object - displayName: Nominal Account - description: Nominal Accounts are the categories a business uses to record transactions - properties: - nominalCode: - type: String - displayName: Nominal Code - description: The external reference given to each nominal account for a business - required: true - validation: - warnings: - - field: NominalCode - details: 'If alphanumeric is supported, must be between 1 and 10 characters. Otherwise format is x-xxxx' - information: [] - name: - type: String - displayName: Name - description: Name of the account - required: false - validation: - warnings: - - field: Name - details: Must have a length between 1 and 60 characters - information: [] - description: - type: String - displayName: Description - description: Description of the account - required: false - validation: - warnings: - - field: Description - details: Must have a length between 1 and 255 characters - information: [] - fullyQualifiedCategory: - type: String - displayName: Fully Qualified Category - description: The full category of the account e.g. Liability.Current or Income.Revenue - options: - - value: Asset.Bank - type: String - displayName: Bank - required: false - - value: Asset.AccountReceivable - type: String - displayName: Accounts Receivable - required: false - - value: Asset.OtherCurrentAsset - type: String - displayName: Other Current Asset - required: false - - value: Asset.FixedAsset - type: String - displayName: Fixed Asset - required: false - - value: Asset.OtherAsset - type: String - displayName: Other Asset - required: false - - value: Asset.CashAndBank - type: String - displayName: Cash - required: false - - value: Asset.Property Plant and Equipment - type: String - displayName: Equipment Machinery - required: false - - value: Liability.CreditCard - type: String - displayName: Credit Card - required: false - - value: Liability.AccountsPayable - type: String - displayName: Accounts Payable - required: false - - value: Liability.OtherCurrentLiability - type: String - displayName: Other Current Liability - required: false - - value: Liability.LongTermLiability - type: String - displayName: Long Term Liability - required: false - - value: Liability.OtherLiability - type: String - displayName: Other Liability - required: false - - value: Equity - type: String - displayName: Equity - required: false - - value: Equity.Equity - type: String - displayName: Retained Earnings - required: false - - value: Equity.Equity.RetainedEarnings - type: String - displayName: Retained Earnings - required: false - - value: Equity.Owner's Equity - type: String - displayName: Retained Earnings - required: false - - value: Income - type: String - displayName: Income - required: false - - value: OtherIncome - type: String - displayName: Other Income - required: false - - value: Expense - type: String - displayName: Expense - required: false - - value: Expense.Expense - type: String - displayName: Sales Marketing - required: false - - value: Expense.Expense.Insurance - type: String - displayName: General Administrative - required: false - - value: Expense.Overhead - type: String - displayName: General Administrative - required: false - - value: Expense.Expense.RepairMaintenance - type: String - displayName: Repairs Maintenance - required: false - - value: OtherExpense - type: String - displayName: Other Expense - required: false - - value: CostOfSales - type: String - displayName: Cost of Sales - required: false - - value: Cost Of Goods Sold.Cost of Sales - type: String - displayName: Other - required: false - required: true - status: - type: String - displayName: Account Status - description: The status of the account - options: - - value: Active - type: String - displayName: Active - required: false - - value: Archived - type: String - displayName: Archived - required: false - required: true - required: true - QuickBooks Desktop: - value: - type: Object - displayName: Nominal Account - description: Nominal Accounts are the categories a business uses to record transactions - properties: - nominalCode: - type: String - displayName: Nominal Code - description: The external reference given to each nominal account for a business - required: true - validation: - warnings: - - field: NominalCode - details: Max length of 7 characters. - information: [] - name: - type: String - displayName: Name - description: Name of the account - required: true - validation: - warnings: - - field: Name - details: Max length of 31 characters. - information: [] - description: - type: String - displayName: Description - description: Description of the account - required: false - validation: - warnings: - - field: Description - details: Max length of 200 characters. - information: [] - currency: - type: String - displayName: Currency - description: The currency of the account - required: false - validation: - warnings: - - field: Currency - details: 'The currency must match the base currency of the QuickBooks Desktop company unless the FullyQualifiedCategory is ''Asset.AccountsReceivable'',''Liability.AccountsPayable'' or ''Liability.CreditCard''' - - field: Currency - details: Must be a three letter ISO code that matches an existing active currency in the QuickBooks Desktop company - - field: Currency - details: Can only be set if the QuickBooks Desktop company has Multicurrency enabled. - information: - - field: Currency - details: 'If not set, will default to the base currency of the QuickBooks Desktop company' - fullyQualifiedCategory: - type: String - displayName: Fully Qualified Category - description: The full category of the account e.g. Liability.Current or Income.Revenue - options: - - value: Asset.AccountsReceivable - type: String - displayName: Account Receivable - required: false - - value: Asset.FixedAsset - type: String - displayName: Fixed Asset - required: false - - value: Asset.OtherCurrentAsset - type: String - displayName: Other Current Asset - required: false - - value: Asset.OtherAsset - type: String - displayName: Other Asset - required: false - - value: Income.Income - type: String - displayName: Income - required: false - - value: Income.OtherIncome - type: String - displayName: Other Income - required: false - - value: Liability.AccountsPayable - type: String - displayName: Accounts Payable - required: false - - value: Liability.CreditCard - type: String - displayName: Credit Card - required: false - - value: Liability.LongTermLiability - type: String - displayName: Long Term Liability - required: false - - value: Liability.OtherCurrentLiability - type: String - displayName: Other Current Liability - required: false - - value: Liability.CostOfGoodsSold - type: String - displayName: Cost Of Goods Sold - required: false - - value: Equity.Equity - type: String - displayName: Equity - required: false - - value: Expense.Expense - type: String - displayName: Expense - required: false - - value: Expense.OtherExpense - type: String - displayName: Other Expense - required: false - required: true - currentBalance: - type: Number - displayName: Current Balance - description: The current balance in the account - required: false - required: true - QuickBooks Online Sandbox: - value: - type: Object - displayName: Nominal Account - description: Nominal Accounts are the categories a business uses to record transactions - properties: - nominalCode: - type: String - displayName: Nominal Code - description: The external reference given to each nominal account for a business - required: false - validation: - warnings: [] - information: - - field: NominalCode - details: If included must have a length between 1 and 7 characters - name: - type: String - displayName: Name - description: Name of the account - required: true - validation: - warnings: - - field: Name - details: Must have a length between 1 and 100 characters - information: [] - currency: - type: String - displayName: Currency - description: The currency of the account - required: false - validation: - warnings: [] - information: - - field: Currency - details: When not specified company base currency will be used - fullyQualifiedCategory: - type: String - displayName: Fully Qualified Category - description: The full category of the account e.g. Liability.Current or Income.Revenue - options: - - value: Asset.Bank.CashOnHand - type: String - displayName: Cash On Hand - required: false - - value: Asset.Bank.Checking - type: String - displayName: Checking - required: false - - value: Asset.Bank.MoneyMarket - type: String - displayName: Money Market - required: false - - value: Asset.Bank.RentsHeldInTrust - type: String - displayName: Rents Held In Trust - required: false - - value: Asset.Bank.Savings - type: String - displayName: Savings - required: false - - value: Asset.Bank.TrustAccounts - type: String - displayName: Trust Accounts - required: false - - value: Asset.Bank.CashAndCashEquivalents - type: String - displayName: Cash And Cash Equivalents - required: false - - value: Asset.Bank.OtherEarmarkedBankAccounts - type: String - displayName: Other Earmarked Bank Accounts - required: false - - value: Asset.Other Current Asset.AllowanceForBadDebts - type: String - displayName: Allowance For Bad Debts - required: false - - value: Asset.Other Current Asset.DevelopmentCosts - type: String - displayName: Development Costs - required: false - - value: Asset.Other Current Asset.EmployeeCashAdvances - type: String - displayName: Employee Cash Advances - required: false - - value: Asset.Other Current Asset.OtherCurrentAssets - type: String - displayName: Other Current Assets - required: false - - value: Asset.Other Current Asset.Inventory - type: String - displayName: Inventory - required: false - - value: Asset.Other Current Asset.Investment_MortgageRealEstateLoans - type: String - displayName: Investment Mortgage Real Estate Loans - required: false - - value: Asset.Other Current Asset.Investment_Other - type: String - displayName: Investment Other - required: false - - value: Asset.Other Current Asset.Investment_TaxExemptSecurities - type: String - displayName: Investment Tax Exempt Securities - required: false - - value: Asset.Other Current Asset.Investment_USGovernmentObligations - type: String - displayName: Investment US Government Obligations - required: false - - value: Asset.Other Current Asset.LoansToOfficers - type: String - displayName: Loans To Officers - required: false - - value: Asset.Other Current Asset.LoansToOthers - type: String - displayName: Loans To Others - required: false - - value: Asset.Other Current Asset.LoansToStockholders - type: String - displayName: Loans To Stockholders - required: false - - value: Asset.Other Current Asset.PrepaidExpenses - type: String - displayName: Prepaid Expenses - required: false - - value: Asset.Other Current Asset.Retainage - type: String - displayName: Retainage - required: false - - value: Asset.Other Current Asset.UndepositedFunds - type: String - displayName: Undeposited Funds - required: false - - value: Asset.Other Current Asset.AssetsAvailableForSale - type: String - displayName: Assets Available For Sale - required: false - - value: Asset.Other Current Asset.BalWithGovtAuthorities - type: String - displayName: Balance With Govt Authorities - required: false - - value: Asset.Other Current Asset.CalledUpShareCapitalNotPaid - type: String - displayName: Called Up Share Capital Not Paid - required: false - - value: Asset.Other Current Asset.ExpenditureAuthorisationsAndLettersOfCredit - type: String - displayName: Expenditure Authorisations And Letters Of Credit - required: false - - value: Asset.Other Current Asset.GlobalTaxDeferred - type: String - displayName: Global Tax Deferred - required: false - - value: Asset.Other Current Asset.GlobalTaxRefund - type: String - displayName: Global Tax Refund - required: false - - value: Asset.Other Current Asset.InternalTransfers - type: String - displayName: Internal Transfers - required: false - - value: Asset.Other Current Asset.OtherConsumables - type: String - displayName: Other Consumables - required: false - - value: Asset.Other Current Asset.ProvisionsCurrentAssets - type: String - displayName: Provisions Current Assets - required: false - - value: Asset.Other Current Asset.ShortTermInvestmentsInRelatedParties - type: String - displayName: Short Term Investments In Related Parties - required: false - - value: Asset.Other Current Asset.ShortTermLoansAndAdvancesToRelatedParties - type: String - displayName: Short Term Loans And Advances To Related Parties - required: false - - value: Asset.Other Current Asset.TradeAndOtherReceivables - type: String - displayName: Trade And Other Receivables - required: false - - value: Asset.Fixed Asset.AccumulatedDepletion - type: String - displayName: Accumulated Depletion - required: false - - value: Asset.Fixed Asset.AccumulatedDepreciation - type: String - displayName: Accumulated Depreciation - required: false - - value: Asset.Fixed Asset.DepletableAssets - type: String - displayName: Depletable Assets - required: false - - value: Asset.Fixed Asset.FixedAssetComputers - type: String - displayName: Fixed Asset Computers - required: false - - value: Asset.Fixed Asset.FixedAssetCopiers - type: String - displayName: Fixed Asset Copiers - required: false - - value: Asset.Fixed Asset.FixedAssetFurniture - type: String - displayName: Fixed Asset Furniture - required: false - - value: Asset.Fixed Asset.FixedAssetPhone - type: String - displayName: Fixed Asset Phone - required: false - - value: Asset.Fixed Asset.FixedAssetPhotoVideo - type: String - displayName: Fixed Asset Photo Video - required: false - - value: Asset.Fixed Asset.FixedAssetSoftware - type: String - displayName: Fixed Asset Software - required: false - - value: Asset.Fixed Asset.FixedAssetOtherToolsEquipment - type: String - displayName: Fixed Asset Other Tools Equipment - required: false - - value: Asset.Fixed Asset.FurnitureAndFixtures - type: String - displayName: Furniture And Fixtures - required: false - - value: Asset.Fixed Asset.Land - type: String - displayName: Land - required: false - - value: Asset.Fixed Asset.LeaseholdImprovements - type: String - displayName: Leasehold Improvements - required: false - - value: Asset.Fixed Asset.OtherFixedAssets - type: String - displayName: Other Fixed Assets - required: false - - value: Asset.Fixed Asset.AccumulatedAmortization - type: String - displayName: Accumulated Amortization - required: false - - value: Asset.Fixed Asset.Buildings - type: String - displayName: Buildings - required: false - - value: Asset.Fixed Asset.IntangibleAssets - type: String - displayName: Intangible Assets - required: false - - value: Asset.Fixed Asset.MachineryAndEquipment - type: String - displayName: Machinery And Equipment - required: false - - value: Asset.Fixed Asset.Vehicles - type: String - displayName: Vehicles - required: false - - value: Asset.Fixed Asset.AssetsInCourseOfConstruction - type: String - displayName: Assets In Course Of Construction - required: false - - value: Asset.Fixed Asset.CapitalWip - type: String - displayName: Capital Wip - required: false - - value: Asset.Fixed Asset.CumulativeDepreciationOnIntangibleAssets - type: String - displayName: Cumulative Depreciation On Intangible Assets - required: false - - value: Asset.Fixed Asset.IntangibleAssetsUnderDevelopment - type: String - displayName: Intangible Assets Under Development - required: false - - value: Asset.Fixed Asset.LandAsset - type: String - displayName: Land Asset - required: false - - value: Asset.Fixed Asset.NonCurrentAssets - type: String - displayName: Non Current Assets - required: false - - value: Asset.Fixed Asset.ParticipatingInterests - type: String - displayName: Participating Interests - required: false - - value: Asset.Fixed Asset.ProvisionsFixedAssets - type: String - displayName: Provisions Fixed Assets - required: false - - value: Asset.Other Asset.LeaseBuyout - type: String - displayName: Lease Buyout - required: false - - value: Asset.Other Asset.OtherLongTermAssets - type: String - displayName: Other Long Term Assets - required: false - - value: Asset.Other Asset.SecurityDeposits - type: String - displayName: Security Deposits - required: false - - value: Asset.Other Asset.AccumulatedAmortizationOfOtherAssets - type: String - displayName: Accumulated Amortization Of Other Assets - required: false - - value: Asset.Other Asset.Goodwill - type: String - displayName: Goodwill - required: false - - value: Asset.Other Asset.Licenses - type: String - displayName: Licenses - required: false - - value: Asset.Other Asset.OrganizationalCosts - type: String - displayName: Organizational Costs - required: false - - value: Asset.Other Asset.AssetsHeldForSale - type: String - displayName: Assets Held For Sale - required: false - - value: Asset.Other Asset.AvailableForSaleFinancialAssets - type: String - displayName: Available For Sale Financial Assets - required: false - - value: Asset.Other Asset.DeferredTax - type: String - displayName: Deferred Tax - required: false - - value: Asset.Other Asset.Investments - type: String - displayName: Investments - required: false - - value: Asset.Other Asset.LongTermInvestments - type: String - displayName: Long Term Investments - required: false - - value: Asset.Other Asset.LongTermLoansAndAdvancesToRelatedParties - type: String - displayName: Long Term Loans And Advances To Related Parties - required: false - - value: Asset.Other Asset.OtherIntangibleAssets - type: String - displayName: Other Intangible Assets - required: false - - value: Asset.Other Asset.OtherLongTermInvestments - type: String - displayName: Other Long Term Investments - required: false - - value: Asset.Other Asset.OtherLongTermLoansAndAdvances - type: String - displayName: Other Long Term Loans And Advances - required: false - - value: Asset.Other Asset.PrepaymentsAndAccruedIncome - type: String - displayName: Prepayments And Accrued Income - required: false - - value: Asset.Other Asset.ProvisionsNonCurrentAssets - type: String - displayName: Provisions Non-Current Assets - required: false - - value: Asset.Accounts Receivable.AccountsReceivable - type: String - displayName: Accounts Receivable - required: false - - value: Expense.Expense.AdvertisingPromotional - type: String - displayName: Advertising/Promotional - required: false - - value: Expense.Expense.BadDebts - type: String - displayName: Bad Debts - required: false - - value: Expense.Expense.BankCharges - type: String - displayName: Bank Charges - required: false - - value: Expense.Expense.CharitableContributions - type: String - displayName: Charitable Contributions - required: false - - value: Expense.Expense.CommissionsAndFees - type: String - displayName: Commissions And Fees - required: false - - value: Expense.Expense.Entertainment - type: String - displayName: Entertainment - required: false - - value: Expense.Expense.EntertainmentMeals - type: String - displayName: Entertainment Meals - required: false - - value: Expense.Expense.EquipmentRental - type: String - displayName: Equipment Rental - required: false - - value: Expense.Expense.FinanceCosts - type: String - displayName: Finance Costs - required: false - - value: Expense.Expense.GlobalTaxExpense - type: String - displayName: Global Tax Expense - required: false - - value: Expense.Expense.Insurance - type: String - displayName: Insurance - required: false - - value: Expense.Expense.InterestPaid - type: String - displayName: Interest Paid - required: false - - value: Expense.Expense.LegalProfessionalFees - type: String - displayName: Legal And Professional Fees - required: false - - value: Expense.Expense.OfficeExpenses - type: String - displayName: Office Expenses - required: false - - value: Expense.Expense.OfficeGeneralAdministrativeExpenses - type: String - displayName: Office/General Administrative Expenses - required: false - - value: Expense.Expense.OtherBusinessExpenses - type: String - displayName: Other Business Expenses - required: false - - value: Expense.Expense.OtherMiscellaneousServiceCost - type: String - displayName: Other Miscellaneous Service Cost - required: false - - value: Expense.Expense.PromotionalMeals - type: String - displayName: Promotional Meals - required: false - - value: Expense.Expense.RentOrLeaseOfBuildings - type: String - displayName: Rent Or Lease Of Buildings - required: false - - value: Expense.Expense.RepairMaintenance - type: String - displayName: Repair And Maintenance - required: false - - value: Expense.Expense.ShippingFreightDelivery - type: String - displayName: 'Shipping, Freight And Delivery' - required: false - - value: Expense.Expense.SuppliesMaterials - type: String - displayName: Supplies And Materials - required: false - - value: Expense.Expense.Travel - type: String - displayName: Travel - required: false - - value: Expense.Expense.TravelMeals - type: String - displayName: Travel Meals - required: false - - value: Expense.Expense.Utilities - type: String - displayName: Utilities - required: false - - value: Expense.Expense.Auto - type: String - displayName: Auto - required: false - - value: Expense.Expense.CostOfLabor - type: String - displayName: Cost Of Labor - required: false - - value: Expense.Expense.DuesSubscriptions - type: String - displayName: Dues And Subscriptions - required: false - - value: Expense.Expense.PayrollExpenses - type: String - displayName: Payroll Expenses - required: false - - value: Expense.Expense.TaxesPaid - type: String - displayName: Taxes Paid - required: false - - value: Expense.Expense.UnappliedCashBillPaymentExpense - type: String - displayName: Unapplied Cash Bill Payment Expense - required: false - - value: Expense.Expense.Utilities - type: String - displayName: Utilities - required: false - - value: Expense.Expense.AmortizationExpense - type: String - displayName: Amortization Expense - required: false - - value: Expense.Expense.AppropriationsToDepreciation - type: String - displayName: Appropriations To Depreciation - required: false - - value: Expense.Expense.BorrowingCost - type: String - displayName: Borrowing Cost - required: false - - value: Expense.Expense.CommissionsAndFees - type: String - displayName: Commissions And Fees - required: false - - value: Expense.Expense.DistributionCosts - type: String - displayName: Distribution Costs - required: false - - value: Expense.Expense.ExternalServices - type: String - displayName: External Services - required: false - - value: Expense.Expense.ExtraordinaryCharges - type: String - displayName: Extraordinary Charges - required: false - - value: Expense.Expense.IncomeTaxExpense - type: String - displayName: Income Tax Expense - required: false - - value: Expense.Expense.LossOnDiscontinuedOperationsNetOfTax - type: String - displayName: Loss On Discontinued Operations Net Of Tax - required: false - - value: Expense.Expense.ManagementCompensation - type: String - displayName: Management Compensation - required: false - - value: Expense.Expense.OtherCurrentOperatingCharges - type: String - displayName: Other Current Operating Charges - required: false - - value: Expense.Expense.OtherExternalServices - type: String - displayName: Other External Services - required: false - - value: Expense.Expense.OtherRentalCosts - type: String - displayName: Other Rental Costs - required: false - - value: Expense.Expense.OtherSellingExpenses - type: String - displayName: Other Selling Expenses - required: false - - value: Expense.Expense.ProjectStudiesSurveysAssessments - type: String - displayName: Project Studies Surveys Assessments - required: false - - value: Expense.Expense.PurchasesRebates - type: String - displayName: Purchases Rebates - required: false - - value: Expense.Expense.ShippingAndDeliveryExpense - type: String - displayName: Shipping And Delivery Expense - required: false - - value: Expense.Expense.StaffCosts - type: String - displayName: Staff Costs - required: false - - value: Expense.Expense.Sundry - type: String - displayName: Sundry - required: false - - value: Expense.Expense.TravelExpensesGeneralAndAdminExpenses - type: String - displayName: Travel Expenses General And Admin Expenses - required: false - - value: Expense.Expense.TravelExpensesSellingExpense - type: String - displayName: Travel Expenses Selling Expense - required: false - - value: Expense.Other Expense.Depreciation - type: String - displayName: Depreciation - required: false - - value: Expense.Other Expense.ExchangeGainOrLoss - type: String - displayName: Exchange Gain Or Loss - required: false - - value: Expense.Other Expense.OtherMiscellaneousExpense - type: String - displayName: Other Miscellaneous Expense - required: false - - value: Expense.Other Expense.PenaltiesSettlements - type: String - displayName: Penalties And Settlements - required: false - - value: Expense.Other Expense.Amortization - type: String - displayName: Amortization - required: false - - value: Expense.Other Expense.GasAndFuel - type: String - displayName: Gas And Fuel - required: false - - value: Expense.Other Expense.HomeOffice - type: String - displayName: Home Office - required: false - - value: Expense.Other Expense.HomeOwnerRentalInsurance - type: String - displayName: Home Owner Rental Insurance - required: false - - value: Expense.Other Expense.OtherHomeOfficeExpenses - type: String - displayName: Other Home Office Expenses - required: false - - value: Expense.Other Expense.MortgageInterest - type: String - displayName: Mortgage Interest - required: false - - value: Expense.Other Expense.RentAndLease - type: String - displayName: Rent And Lease - required: false - - value: Expense.Other Expense.RepairsAndMaintenance - type: String - displayName: Repairs And Maintenance - required: false - - value: Expense.Other Expense.ParkingAndTolls - type: String - displayName: Parking And Tolls - required: false - - value: Expense.Other Expense.Vehicle - type: String - displayName: Vehicle - required: false - - value: Expense.Other Expense.VehicleInsurance - type: String - displayName: Vehicle Insurance - required: false - - value: Expense.Other Expense.VehicleLease - type: String - displayName: Vehicle Lease - required: false - - value: Expense.Other Expense.VehicleLoanInterest - type: String - displayName: Vehicle Loan Interest - required: false - - value: Expense.Other Expense.VehicleLoan - type: String - displayName: Vehicle Loan - required: false - - value: Expense.Other Expense.VehicleRegistration - type: String - displayName: Vehicle Registration - required: false - - value: Expense.Other Expense.VehicleRepairs - type: String - displayName: Vehicle Repairs - required: false - - value: Expense.Other Expense.OtherVehicleExpenses - type: String - displayName: Other Vehicle Expenses - required: false - - value: Expense.Other Expense.Utilities - type: String - displayName: Utilities - required: false - - value: Expense.Other Expense.WashAndRoadServices - type: String - displayName: Wash And Road Services - required: false - - value: Expense.Other Expense.DeferredTaxExpense - type: String - displayName: Deferred Tax Expense - required: false - - value: Expense.Other Expense.Depletion - type: String - displayName: Depletion - required: false - - value: Expense.Other Expense.ExceptionalItems - type: String - displayName: Exceptional Items - required: false - - value: Expense.Other Expense.ExtraordinaryItems - type: String - displayName: Extraordinary Items - required: false - - value: Expense.Other Expense.IncomeTaxOtherExpense - type: String - displayName: Income Tax Other Expense - required: false - - value: Expense.Other Expense.MatCredit - type: String - displayName: Mat Credit - required: false - - value: Expense.Other Expense.PriorPeriodItems - type: String - displayName: Prior Period Items - required: false - - value: Expense.Other Expense.TaxRoundoffGainOrLoss - type: String - displayName: Tax Roundoff Gain Or Loss - required: false - - value: Expense.Cost of Goods Sold.EquipmentRentalCos - type: String - displayName: Equipment Rental - COS - required: false - - value: Expense.Cost of Goods Sold.OtherCostsOfServiceCos - type: String - displayName: Other Costs Of Sales - COS - required: false - - value: Expense.Cost of Goods Sold.ShippingFreightDeliveryCos - type: String - displayName: 'Shipping, Freight And Delivery - COS' - required: false - - value: Expense.Cost of Goods Sold.SuppliesMaterialsCogs - type: String - displayName: Supplies And Materials - COS - required: false - - value: Expense.Cost of Goods Sold.CostOfLaborCos - type: String - displayName: Cost Of Labor - COS - required: false - - value: Expense.Cost of Goods Sold.CostOfSales - type: String - displayName: Cost Of Sales - required: false - - value: Expense.Cost of Goods Sold.FreightAndDeliveryCost - type: String - displayName: Freight And Delivery Cost - required: false - - value: Income.Income.NonProfitIncome - type: String - displayName: Non Profit Income - required: false - - value: Income.Income.OtherPrimaryIncome - type: String - displayName: Other Primary Income - required: false - - value: Income.Income.SalesOfProductIncome - type: String - displayName: Sales Of ProductIncome - required: false - - value: Income.Income.ServiceFeeIncome - type: String - displayName: Service Fee Income - required: false - - value: Income.Income.DiscountsRefundsGiven - type: String - displayName: Discounts Refunds Given - required: false - - value: Income.Income.UnappliedCashPaymentIncome - type: String - displayName: Unapplied Cash Payment Income - required: false - - value: Income.Income.CashReceiptIncome - type: String - displayName: Cash Receipt Income - required: false - - value: Income.Income.OperatingGrants - type: String - displayName: Operating Grants - required: false - - value: Income.Income.OtherCurrentOperatingIncome - type: String - displayName: Other Current Operating Income - required: false - - value: Income.Income.OwnWorkCapitalized - type: String - displayName: Own Work Capitalized - required: false - - value: Income.Income.RevenueGeneral - type: String - displayName: Revenue General - required: false - - value: Income.Income.SalesRetail - type: String - displayName: Sales Retail - required: false - - value: Income.Income.SalesWholesale - type: String - displayName: Sales Wholesale - required: false - - value: Income.Income.SavingsByTaxScheme - type: String - displayName: Savings By Tax Scheme - required: false - - value: Income.Other Income.DividendIncome - type: String - displayName: Dividend Income - required: false - - value: Income.Other Income.InterestEarned - type: String - displayName: Interest Earned - required: false - - value: Income.Other Income.OtherInvestmentIncome - type: String - displayName: Other Investment Income - required: false - - value: Income.Other Income.OtherMiscellaneousIncome - type: String - displayName: Other Miscellaneous Income - required: false - - value: Income.Other Income.TaxExemptInterest - type: String - displayName: Tax Exempt Interest - required: false - - value: Income.Other Income.GainLossOnSaleOfFixedAssets - type: String - displayName: Gain Loss On Sale Of Fixed Assets - required: false - - value: Income.Other Income.GainLossOnSaleOfInvestments - type: String - displayName: Gain Loss On Sale Of Investments - required: false - - value: Income.Other Income.LossOnDisposalOfAssets - type: String - displayName: Loss On Disposal Of Assets - required: false - - value: Income.Other Income.OtherOperatingIncome - type: String - displayName: Other Operating Income - required: false - - value: Income.Other Income.UnrealisedLossOnSecuritiesNetOfTax - type: String - displayName: Unrealised Loss On Securities Net Of Tax - required: false - - value: Liability.Accounts Payable.AccountsPayable - type: String - displayName: Accounts Payable - required: false - - value: Liability.Accounts Payable.OutstandingDuesMicroSmallEnterprise - type: String - displayName: Outstanding Dues Micro Small Enterprise - required: false - - value: Liability.Accounts Payable.OutstandingDuesOtherThanMicroSmallEnterprise - type: String - displayName: Outstanding Dues Other Than Micro Small Enterprise - required: false - - value: Liability.Credit Card.CreditCard - type: String - displayName: Credit Card - required: false - - value: Liability.Long Term Liability.NotesPayable - type: String - displayName: Notes Payable - required: false - - value: Liability.Long Term Liability.OtherLongTermLiabilities - type: String - displayName: Other Long Term Liabilities - required: false - - value: Liability.Long Term Liability.ShareholderNotesPayable - type: String - displayName: Shareholder Notes Payable - required: false - - value: Liability.Long Term Liability.AccrualsAndDeferredIncome - type: String - displayName: Accruals And Deferred Income - required: false - - value: Liability.Long Term Liability.AccruedLongLermLiabilities - type: String - displayName: Accrued Long Lerm Liabilities - required: false - - value: Liability.Long Term Liability.AccruedVacationPayable - type: String - displayName: Accrued Vacation Payable - required: false - - value: Liability.Long Term Liability.BankLoans - type: String - displayName: Bank Loans - required: false - - value: Liability.Long Term Liability.DebtsRelatedToParticipatingInterests - type: String - displayName: Debts Related To Participating Interests - required: false - - value: Liability.Long Term Liability.DeferredTaxLiabilities - type: String - displayName: Deferred Tax Liabilities - required: false - - value: Liability.Long Term Liability.GovernmentAndOtherPublicAuthorities - type: String - displayName: Government And Other Public Authorities - required: false - - value: Liability.Long Term Liability.GroupAndAssociates - type: String - displayName: Group And Associates - required: false - - value: Liability.Long Term Liability.LiabilitiesRelatedToAssetsHeldForSale - type: String - displayName: Liabilities Related To Assets Held For Sale - required: false - - value: Liability.Long Term Liability.LongTermBorrowings - type: String - displayName: Long Term Borrowings - required: false - - value: Liability.Long Term Liability.LongTermDebit - type: String - displayName: Long Term Debit - required: false - - value: Liability.Long Term Liability.LongTermEmployeeBenefitObligations - type: String - displayName: Long Term Employee Benefit Obligations - required: false - - value: Liability.Long Term Liability.ObligationsUnderFinanceLeases - type: String - displayName: Obligations Under Finance Leases - required: false - - value: Liability.Long Term Liability.OtherLongTermProvisions - type: String - displayName: Other Long Term Provisions - required: false - - value: Liability.Long Term Liability.ProvisionForLiabilities - type: String - displayName: Provision For Liabilities - required: false - - value: Liability.Long Term Liability.ProvisionsNonCurrentLiabilities - type: String - displayName: Provisions Non Current Liabilities - required: false - - value: Liability.Long Term Liability.StaffAndRelatedLongTermLiabilityAccounts - type: String - displayName: Staff And Related Long Term Liability Accounts - required: false - - value: Liability.Other Current Liability.DirectDepositPayable - type: String - displayName: Direct Deposit Payable - required: false - - value: Liability.Other Current Liability.LineOfCredit - type: String - displayName: Line Of Credit - required: false - - value: Liability.Other Current Liability.LoanPayable - type: String - displayName: Loan Payable - required: false - - value: Liability.Other Current Liability.GlobalTaxPayable - type: String - displayName: Global Tax Payable - required: false - - value: Liability.Other Current Liability.GlobalTaxSuspense - type: String - displayName: Global Tax Suspense - required: false - - value: Liability.Other Current Liability.OtherCurrentLiabilities - type: String - displayName: Other Current Liabilities - required: false - - value: Liability.Other Current Liability.PayrollClearing - type: String - displayName: Payroll Clearing - required: false - - value: Liability.Other Current Liability.PayrollTaxPayable - type: String - displayName: Payroll Tax Payable - required: false - - value: Liability.Other Current Liability.PrepaidExpensesPayable - type: String - displayName: Prepaid Expenses Payable - required: false - - value: Liability.Other Current Liability.RentsInTrustLiability - type: String - displayName: Rents In Trust Liability - required: false - - value: Liability.Other Current Liability.TrustAccountsLiabilities - type: String - displayName: Trust Accounts Liabilities - required: false - - value: Liability.Other Current Liability.FederalIncomeTaxPayable - type: String - displayName: Federal Income Tax Payable - required: false - - value: Liability.Other Current Liability.InsurancePayable - type: String - displayName: Insurance Payable - required: false - - value: Liability.Other Current Liability.SalesTaxPayable - type: String - displayName: Sales Tax Payable - required: false - - value: Liability.Other Current Liability.StateLocalIncomeTaxPayable - type: String - displayName: State Local Income Tax Payable - required: false - - value: Liability.Other Current Liability.AccruedLiabilities - type: String - displayName: Accrued Liabilities - required: false - - value: Liability.Other Current Liability.CurrentLiabilities - type: String - displayName: Current Liabilities - required: false - - value: Liability.Other Current Liability.CurrentPortionEmployeeBenefitsObligations - type: String - displayName: Current Portion EmployeeBenefits Obligations - required: false - - value: Liability.Other Current Liability.CurrentPortionOfObligationsUnderFinanceLeases - type: String - displayName: Current Portion Of Obligations Under Finance Leases - required: false - - value: Liability.Other Current Liability.CurrentTaxLiability - type: String - displayName: Current Tax Liability - required: false - - value: Liability.Other Current Liability.DividendsPayable - type: String - displayName: Dividends Payable - required: false - - value: Liability.Other Current Liability.DutiesAndTaxes - type: String - displayName: Duties And Taxes - required: false - - value: Liability.Other Current Liability.InterestPayables - type: String - displayName: Interest Payables - required: false - - value: Liability.Other Current Liability.ProvisionForWarrantyObligations - type: String - displayName: Provision For Warranty Obligations - required: false - - value: Liability.Other Current Liability.ProvisionsCurrentLiabilities - type: String - displayName: Provisions Current Liabilities - required: false - - value: Liability.Other Current Liability.ShortTermBorrowings - type: String - displayName: Short Term Borrowings - required: false - - value: Liability.Other Current Liability.SocialSecurityAgencies - type: String - displayName: Social Security Agencies - required: false - - value: Liability.Other Current Liability.StaffAndRelatedLiabilityAccounts - type: String - displayName: Staff And Related Liability Accounts - required: false - - value: Liability.Other Current Liability.SundryDebtorsAndCreditors - type: String - displayName: Sundry Debtors And Creditors - required: false - - value: Liability.Other Current Liability.TradeAndOtherPayables - type: String - displayName: Trade And Other Payables - required: false - - value: Equity.Equity.OpeningBalanceEquity - type: String - displayName: Opening Balance Equity - required: false - - value: Equity.Equity.PartnersEquity - type: String - displayName: Partners Equity - required: false - - value: Equity.Equity.RetainedEarnings - type: String - displayName: Retained Earnings - required: false - - value: Equity.Equity.AccumulatedAdjustment - type: String - displayName: Accumulated Adjustment - required: false - - value: Equity.Equity.OwnersEquity - type: String - displayName: Owners Equity - required: false - - value: Equity.Equity.PaidInCapitalOrSurplus - type: String - displayName: Paid In Capital Or Surplus - required: false - - value: Equity.Equity.PartnerContributions - type: String - displayName: Partner Contributions - required: false - - value: Equity.Equity.PartnerDistributions - type: String - displayName: Partner Distributions - required: false - - value: Equity.Equity.PreferredStock - type: String - displayName: Preferred Stock - required: false - - value: Equity.Equity.CommonStock - type: String - displayName: Common Stock - required: false - - value: Equity.Equity.TreasuryStock - type: String - displayName: Treasury Stock - required: false - - value: Equity.Equity.EstimatedTaxes - type: String - displayName: Estimated Taxes - required: false - - value: Equity.Equity.Healthcare - type: String - displayName: Healthcare - required: false - - value: Equity.Equity.PersonalIncome - type: String - displayName: Personal Income - required: false - - value: Equity.Equity.PersonalExpense - type: String - displayName: Personal Expense - required: false - - value: Equity.Equity.AccumulatedOtherComprehensiveIncome - type: String - displayName: Accumulated Other Comprehensive Income - required: false - - value: Equity.Equity.CalledUpShareCapital - type: String - displayName: Called Up Share Capital - required: false - - value: Equity.Equity.CapitalReserves - type: String - displayName: Capital Reserves - required: false - - value: Equity.Equity.DividendDisbursed - type: String - displayName: Dividend Disbursed - required: false - - value: Equity.Equity.EquityInEarningsOfSubsiduaries - type: String - displayName: Equity In Earnings Of Subsiduaries - required: false - - value: Equity.Equity.InvestmentGrants - type: String - displayName: Investment Grants - required: false - - value: Equity.Equity.MoneyReceivedAgainstShareWarrants - type: String - displayName: Money Received Against Share Warrants - required: false - - value: Equity.Equity.OtherFreeReserves - type: String - displayName: Other Free Reserves - required: false - - value: Equity.Equity.ShareApplicationMoneyPendingAllotment - type: String - displayName: Share Application Money Pending Allotment - required: false - - value: Equity.Equity.ShareCapital - type: String - displayName: Share Capital - required: false - - value: Equity.Equity.Funds - type: String - displayName: Funds - required: false - required: true - required: true - QuickBooks Online: - value: - type: Object - displayName: Nominal Account - description: Nominal Accounts are the categories a business uses to record transactions - properties: - nominalCode: - type: String - displayName: Nominal Code - description: The external reference given to each nominal account for a business - required: false - validation: - warnings: [] - information: - - field: NominalCode - details: If included must have a length between 1 and 7 characters - name: - type: String - displayName: Name - description: Name of the account - required: true - validation: - warnings: - - field: Name - details: Must have a length between 1 and 100 characters - information: [] - currency: - type: String - displayName: Currency - description: The currency of the account - required: false - validation: - warnings: [] - information: - - field: Currency - details: When not specified company base currency will be used - fullyQualifiedCategory: - type: String - displayName: Fully Qualified Category - description: The full category of the account e.g. Liability.Current or Income.Revenue - options: - - value: Asset.Bank.CashOnHand - type: String - displayName: Cash On Hand - required: false - - value: Asset.Bank.Checking - type: String - displayName: Checking - required: false - - value: Asset.Bank.MoneyMarket - type: String - displayName: Money Market - required: false - - value: Asset.Bank.RentsHeldInTrust - type: String - displayName: Rents Held In Trust - required: false - - value: Asset.Bank.Savings - type: String - displayName: Savings - required: false - - value: Asset.Bank.TrustAccounts - type: String - displayName: Trust Accounts - required: false - - value: Asset.Bank.CashAndCashEquivalents - type: String - displayName: Cash And Cash Equivalents - required: false - - value: Asset.Bank.OtherEarmarkedBankAccounts - type: String - displayName: Other Earmarked Bank Accounts - required: false - - value: Asset.Other Current Asset.AllowanceForBadDebts - type: String - displayName: Allowance For Bad Debts - required: false - - value: Asset.Other Current Asset.DevelopmentCosts - type: String - displayName: Development Costs - required: false - - value: Asset.Other Current Asset.EmployeeCashAdvances - type: String - displayName: Employee Cash Advances - required: false - - value: Asset.Other Current Asset.OtherCurrentAssets - type: String - displayName: Other Current Assets - required: false - - value: Asset.Other Current Asset.Inventory - type: String - displayName: Inventory - required: false - - value: Asset.Other Current Asset.Investment_MortgageRealEstateLoans - type: String - displayName: Investment Mortgage Real Estate Loans - required: false - - value: Asset.Other Current Asset.Investment_Other - type: String - displayName: Investment Other - required: false - - value: Asset.Other Current Asset.Investment_TaxExemptSecurities - type: String - displayName: Investment Tax Exempt Securities - required: false - - value: Asset.Other Current Asset.Investment_USGovernmentObligations - type: String - displayName: Investment US Government Obligations - required: false - - value: Asset.Other Current Asset.LoansToOfficers - type: String - displayName: Loans To Officers - required: false - - value: Asset.Other Current Asset.LoansToOthers - type: String - displayName: Loans To Others - required: false - - value: Asset.Other Current Asset.LoansToStockholders - type: String - displayName: Loans To Stockholders - required: false - - value: Asset.Other Current Asset.PrepaidExpenses - type: String - displayName: Prepaid Expenses - required: false - - value: Asset.Other Current Asset.Retainage - type: String - displayName: Retainage - required: false - - value: Asset.Other Current Asset.UndepositedFunds - type: String - displayName: Undeposited Funds - required: false - - value: Asset.Other Current Asset.AssetsAvailableForSale - type: String - displayName: Assets Available For Sale - required: false - - value: Asset.Other Current Asset.BalWithGovtAuthorities - type: String - displayName: Balance With Govt Authorities - required: false - - value: Asset.Other Current Asset.CalledUpShareCapitalNotPaid - type: String - displayName: Called Up Share Capital Not Paid - required: false - - value: Asset.Other Current Asset.ExpenditureAuthorisationsAndLettersOfCredit - type: String - displayName: Expenditure Authorisations And Letters Of Credit - required: false - - value: Asset.Other Current Asset.GlobalTaxDeferred - type: String - displayName: Global Tax Deferred - required: false - - value: Asset.Other Current Asset.GlobalTaxRefund - type: String - displayName: Global Tax Refund - required: false - - value: Asset.Other Current Asset.InternalTransfers - type: String - displayName: Internal Transfers - required: false - - value: Asset.Other Current Asset.OtherConsumables - type: String - displayName: Other Consumables - required: false - - value: Asset.Other Current Asset.ProvisionsCurrentAssets - type: String - displayName: Provisions Current Assets - required: false - - value: Asset.Other Current Asset.ShortTermInvestmentsInRelatedParties - type: String - displayName: Short Term Investments In Related Parties - required: false - - value: Asset.Other Current Asset.ShortTermLoansAndAdvancesToRelatedParties - type: String - displayName: Short Term Loans And Advances To Related Parties - required: false - - value: Asset.Other Current Asset.TradeAndOtherReceivables - type: String - displayName: Trade And Other Receivables - required: false - - value: Asset.Fixed Asset.AccumulatedDepletion - type: String - displayName: Accumulated Depletion - required: false - - value: Asset.Fixed Asset.AccumulatedDepreciation - type: String - displayName: Accumulated Depreciation - required: false - - value: Asset.Fixed Asset.DepletableAssets - type: String - displayName: Depletable Assets - required: false - - value: Asset.Fixed Asset.FixedAssetComputers - type: String - displayName: Fixed Asset Computers - required: false - - value: Asset.Fixed Asset.FixedAssetCopiers - type: String - displayName: Fixed Asset Copiers - required: false - - value: Asset.Fixed Asset.FixedAssetFurniture - type: String - displayName: Fixed Asset Furniture - required: false - - value: Asset.Fixed Asset.FixedAssetPhone - type: String - displayName: Fixed Asset Phone - required: false - - value: Asset.Fixed Asset.FixedAssetPhotoVideo - type: String - displayName: Fixed Asset Photo Video - required: false - - value: Asset.Fixed Asset.FixedAssetSoftware - type: String - displayName: Fixed Asset Software - required: false - - value: Asset.Fixed Asset.FixedAssetOtherToolsEquipment - type: String - displayName: Fixed Asset Other Tools Equipment - required: false - - value: Asset.Fixed Asset.FurnitureAndFixtures - type: String - displayName: Furniture And Fixtures - required: false - - value: Asset.Fixed Asset.Land - type: String - displayName: Land - required: false - - value: Asset.Fixed Asset.LeaseholdImprovements - type: String - displayName: Leasehold Improvements - required: false - - value: Asset.Fixed Asset.OtherFixedAssets - type: String - displayName: Other Fixed Assets - required: false - - value: Asset.Fixed Asset.AccumulatedAmortization - type: String - displayName: Accumulated Amortization - required: false - - value: Asset.Fixed Asset.Buildings - type: String - displayName: Buildings - required: false - - value: Asset.Fixed Asset.IntangibleAssets - type: String - displayName: Intangible Assets - required: false - - value: Asset.Fixed Asset.MachineryAndEquipment - type: String - displayName: Machinery And Equipment - required: false - - value: Asset.Fixed Asset.Vehicles - type: String - displayName: Vehicles - required: false - - value: Asset.Fixed Asset.AssetsInCourseOfConstruction - type: String - displayName: Assets In Course Of Construction - required: false - - value: Asset.Fixed Asset.CapitalWip - type: String - displayName: Capital Wip - required: false - - value: Asset.Fixed Asset.CumulativeDepreciationOnIntangibleAssets - type: String - displayName: Cumulative Depreciation On Intangible Assets - required: false - - value: Asset.Fixed Asset.IntangibleAssetsUnderDevelopment - type: String - displayName: Intangible Assets Under Development - required: false - - value: Asset.Fixed Asset.LandAsset - type: String - displayName: Land Asset - required: false - - value: Asset.Fixed Asset.NonCurrentAssets - type: String - displayName: Non Current Assets - required: false - - value: Asset.Fixed Asset.ParticipatingInterests - type: String - displayName: Participating Interests - required: false - - value: Asset.Fixed Asset.ProvisionsFixedAssets - type: String - displayName: Provisions Fixed Assets - required: false - - value: Asset.Other Asset.LeaseBuyout - type: String - displayName: Lease Buyout - required: false - - value: Asset.Other Asset.OtherLongTermAssets - type: String - displayName: Other Long Term Assets - required: false - - value: Asset.Other Asset.SecurityDeposits - type: String - displayName: Security Deposits - required: false - - value: Asset.Other Asset.AccumulatedAmortizationOfOtherAssets - type: String - displayName: Accumulated Amortization Of Other Assets - required: false - - value: Asset.Other Asset.Goodwill - type: String - displayName: Goodwill - required: false - - value: Asset.Other Asset.Licenses - type: String - displayName: Licenses - required: false - - value: Asset.Other Asset.OrganizationalCosts - type: String - displayName: Organizational Costs - required: false - - value: Asset.Other Asset.AssetsHeldForSale - type: String - displayName: Assets Held For Sale - required: false - - value: Asset.Other Asset.AvailableForSaleFinancialAssets - type: String - displayName: Available For Sale Financial Assets - required: false - - value: Asset.Other Asset.DeferredTax - type: String - displayName: Deferred Tax - required: false - - value: Asset.Other Asset.Investments - type: String - displayName: Investments - required: false - - value: Asset.Other Asset.LongTermInvestments - type: String - displayName: Long Term Investments - required: false - - value: Asset.Other Asset.LongTermLoansAndAdvancesToRelatedParties - type: String - displayName: Long Term Loans And Advances To Related Parties - required: false - - value: Asset.Other Asset.OtherIntangibleAssets - type: String - displayName: Other Intangible Assets - required: false - - value: Asset.Other Asset.OtherLongTermInvestments - type: String - displayName: Other Long Term Investments - required: false - - value: Asset.Other Asset.OtherLongTermLoansAndAdvances - type: String - displayName: Other Long Term Loans And Advances - required: false - - value: Asset.Other Asset.PrepaymentsAndAccruedIncome - type: String - displayName: Prepayments And Accrued Income - required: false - - value: Asset.Other Asset.ProvisionsNonCurrentAssets - type: String - displayName: Provisions Non-Current Assets - required: false - - value: Asset.Accounts Receivable.AccountsReceivable - type: String - displayName: Accounts Receivable - required: false - - value: Expense.Expense.AdvertisingPromotional - type: String - displayName: Advertising/Promotional - required: false - - value: Expense.Expense.BadDebts - type: String - displayName: Bad Debts - required: false - - value: Expense.Expense.BankCharges - type: String - displayName: Bank Charges - required: false - - value: Expense.Expense.CharitableContributions - type: String - displayName: Charitable Contributions - required: false - - value: Expense.Expense.CommissionsAndFees - type: String - displayName: Commissions And Fees - required: false - - value: Expense.Expense.Entertainment - type: String - displayName: Entertainment - required: false - - value: Expense.Expense.EntertainmentMeals - type: String - displayName: Entertainment Meals - required: false - - value: Expense.Expense.EquipmentRental - type: String - displayName: Equipment Rental - required: false - - value: Expense.Expense.FinanceCosts - type: String - displayName: Finance Costs - required: false - - value: Expense.Expense.GlobalTaxExpense - type: String - displayName: Global Tax Expense - required: false - - value: Expense.Expense.Insurance - type: String - displayName: Insurance - required: false - - value: Expense.Expense.InterestPaid - type: String - displayName: Interest Paid - required: false - - value: Expense.Expense.LegalProfessionalFees - type: String - displayName: Legal And Professional Fees - required: false - - value: Expense.Expense.OfficeExpenses - type: String - displayName: Office Expenses - required: false - - value: Expense.Expense.OfficeGeneralAdministrativeExpenses - type: String - displayName: Office/General Administrative Expenses - required: false - - value: Expense.Expense.OtherBusinessExpenses - type: String - displayName: Other Business Expenses - required: false - - value: Expense.Expense.OtherMiscellaneousServiceCost - type: String - displayName: Other Miscellaneous Service Cost - required: false - - value: Expense.Expense.PromotionalMeals - type: String - displayName: Promotional Meals - required: false - - value: Expense.Expense.RentOrLeaseOfBuildings - type: String - displayName: Rent Or Lease Of Buildings - required: false - - value: Expense.Expense.RepairMaintenance - type: String - displayName: Repair And Maintenance - required: false - - value: Expense.Expense.ShippingFreightDelivery - type: String - displayName: 'Shipping, Freight And Delivery' - required: false - - value: Expense.Expense.SuppliesMaterials - type: String - displayName: Supplies And Materials - required: false - - value: Expense.Expense.Travel - type: String - displayName: Travel - required: false - - value: Expense.Expense.TravelMeals - type: String - displayName: Travel Meals - required: false - - value: Expense.Expense.Utilities - type: String - displayName: Utilities - required: false - - value: Expense.Expense.Auto - type: String - displayName: Auto - required: false - - value: Expense.Expense.CostOfLabor - type: String - displayName: Cost Of Labor - required: false - - value: Expense.Expense.DuesSubscriptions - type: String - displayName: Dues And Subscriptions - required: false - - value: Expense.Expense.PayrollExpenses - type: String - displayName: Payroll Expenses - required: false - - value: Expense.Expense.TaxesPaid - type: String - displayName: Taxes Paid - required: false - - value: Expense.Expense.UnappliedCashBillPaymentExpense - type: String - displayName: Unapplied Cash Bill Payment Expense - required: false - - value: Expense.Expense.Utilities - type: String - displayName: Utilities - required: false - - value: Expense.Expense.AmortizationExpense - type: String - displayName: Amortization Expense - required: false - - value: Expense.Expense.AppropriationsToDepreciation - type: String - displayName: Appropriations To Depreciation - required: false - - value: Expense.Expense.BorrowingCost - type: String - displayName: Borrowing Cost - required: false - - value: Expense.Expense.CommissionsAndFees - type: String - displayName: Commissions And Fees - required: false - - value: Expense.Expense.DistributionCosts - type: String - displayName: Distribution Costs - required: false - - value: Expense.Expense.ExternalServices - type: String - displayName: External Services - required: false - - value: Expense.Expense.ExtraordinaryCharges - type: String - displayName: Extraordinary Charges - required: false - - value: Expense.Expense.IncomeTaxExpense - type: String - displayName: Income Tax Expense - required: false - - value: Expense.Expense.LossOnDiscontinuedOperationsNetOfTax - type: String - displayName: Loss On Discontinued Operations Net Of Tax - required: false - - value: Expense.Expense.ManagementCompensation - type: String - displayName: Management Compensation - required: false - - value: Expense.Expense.OtherCurrentOperatingCharges - type: String - displayName: Other Current Operating Charges - required: false - - value: Expense.Expense.OtherExternalServices - type: String - displayName: Other External Services - required: false - - value: Expense.Expense.OtherRentalCosts - type: String - displayName: Other Rental Costs - required: false - - value: Expense.Expense.OtherSellingExpenses - type: String - displayName: Other Selling Expenses - required: false - - value: Expense.Expense.ProjectStudiesSurveysAssessments - type: String - displayName: Project Studies Surveys Assessments - required: false - - value: Expense.Expense.PurchasesRebates - type: String - displayName: Purchases Rebates - required: false - - value: Expense.Expense.ShippingAndDeliveryExpense - type: String - displayName: Shipping And Delivery Expense - required: false - - value: Expense.Expense.StaffCosts - type: String - displayName: Staff Costs - required: false - - value: Expense.Expense.Sundry - type: String - displayName: Sundry - required: false - - value: Expense.Expense.TravelExpensesGeneralAndAdminExpenses - type: String - displayName: Travel Expenses General And Admin Expenses - required: false - - value: Expense.Expense.TravelExpensesSellingExpense - type: String - displayName: Travel Expenses Selling Expense - required: false - - value: Expense.Other Expense.Depreciation - type: String - displayName: Depreciation - required: false - - value: Expense.Other Expense.ExchangeGainOrLoss - type: String - displayName: Exchange Gain Or Loss - required: false - - value: Expense.Other Expense.OtherMiscellaneousExpense - type: String - displayName: Other Miscellaneous Expense - required: false - - value: Expense.Other Expense.PenaltiesSettlements - type: String - displayName: Penalties And Settlements - required: false - - value: Expense.Other Expense.Amortization - type: String - displayName: Amortization - required: false - - value: Expense.Other Expense.GasAndFuel - type: String - displayName: Gas And Fuel - required: false - - value: Expense.Other Expense.HomeOffice - type: String - displayName: Home Office - required: false - - value: Expense.Other Expense.HomeOwnerRentalInsurance - type: String - displayName: Home Owner Rental Insurance - required: false - - value: Expense.Other Expense.OtherHomeOfficeExpenses - type: String - displayName: Other Home Office Expenses - required: false - - value: Expense.Other Expense.MortgageInterest - type: String - displayName: Mortgage Interest - required: false - - value: Expense.Other Expense.RentAndLease - type: String - displayName: Rent And Lease - required: false - - value: Expense.Other Expense.RepairsAndMaintenance - type: String - displayName: Repairs And Maintenance - required: false - - value: Expense.Other Expense.ParkingAndTolls - type: String - displayName: Parking And Tolls - required: false - - value: Expense.Other Expense.Vehicle - type: String - displayName: Vehicle - required: false - - value: Expense.Other Expense.VehicleInsurance - type: String - displayName: Vehicle Insurance - required: false - - value: Expense.Other Expense.VehicleLease - type: String - displayName: Vehicle Lease - required: false - - value: Expense.Other Expense.VehicleLoanInterest - type: String - displayName: Vehicle Loan Interest - required: false - - value: Expense.Other Expense.VehicleLoan - type: String - displayName: Vehicle Loan - required: false - - value: Expense.Other Expense.VehicleRegistration - type: String - displayName: Vehicle Registration - required: false - - value: Expense.Other Expense.VehicleRepairs - type: String - displayName: Vehicle Repairs - required: false - - value: Expense.Other Expense.OtherVehicleExpenses - type: String - displayName: Other Vehicle Expenses - required: false - - value: Expense.Other Expense.Utilities - type: String - displayName: Utilities - required: false - - value: Expense.Other Expense.WashAndRoadServices - type: String - displayName: Wash And Road Services - required: false - - value: Expense.Other Expense.DeferredTaxExpense - type: String - displayName: Deferred Tax Expense - required: false - - value: Expense.Other Expense.Depletion - type: String - displayName: Depletion - required: false - - value: Expense.Other Expense.ExceptionalItems - type: String - displayName: Exceptional Items - required: false - - value: Expense.Other Expense.ExtraordinaryItems - type: String - displayName: Extraordinary Items - required: false - - value: Expense.Other Expense.IncomeTaxOtherExpense - type: String - displayName: Income Tax Other Expense - required: false - - value: Expense.Other Expense.MatCredit - type: String - displayName: Mat Credit - required: false - - value: Expense.Other Expense.PriorPeriodItems - type: String - displayName: Prior Period Items - required: false - - value: Expense.Other Expense.TaxRoundoffGainOrLoss - type: String - displayName: Tax Roundoff Gain Or Loss - required: false - - value: Expense.Cost of Goods Sold.EquipmentRentalCos - type: String - displayName: Equipment Rental - COS - required: false - - value: Expense.Cost of Goods Sold.OtherCostsOfServiceCos - type: String - displayName: Other Costs Of Sales - COS - required: false - - value: Expense.Cost of Goods Sold.ShippingFreightDeliveryCos - type: String - displayName: 'Shipping, Freight And Delivery - COS' - required: false - - value: Expense.Cost of Goods Sold.SuppliesMaterialsCogs - type: String - displayName: Supplies And Materials - COS - required: false - - value: Expense.Cost of Goods Sold.CostOfLaborCos - type: String - displayName: Cost Of Labor - COS - required: false - - value: Expense.Cost of Goods Sold.CostOfSales - type: String - displayName: Cost Of Sales - required: false - - value: Expense.Cost of Goods Sold.FreightAndDeliveryCost - type: String - displayName: Freight And Delivery Cost - required: false - - value: Income.Income.NonProfitIncome - type: String - displayName: Non Profit Income - required: false - - value: Income.Income.OtherPrimaryIncome - type: String - displayName: Other Primary Income - required: false - - value: Income.Income.SalesOfProductIncome - type: String - displayName: Sales Of ProductIncome - required: false - - value: Income.Income.ServiceFeeIncome - type: String - displayName: Service Fee Income - required: false - - value: Income.Income.DiscountsRefundsGiven - type: String - displayName: Discounts Refunds Given - required: false - - value: Income.Income.UnappliedCashPaymentIncome - type: String - displayName: Unapplied Cash Payment Income - required: false - - value: Income.Income.CashReceiptIncome - type: String - displayName: Cash Receipt Income - required: false - - value: Income.Income.OperatingGrants - type: String - displayName: Operating Grants - required: false - - value: Income.Income.OtherCurrentOperatingIncome - type: String - displayName: Other Current Operating Income - required: false - - value: Income.Income.OwnWorkCapitalized - type: String - displayName: Own Work Capitalized - required: false - - value: Income.Income.RevenueGeneral - type: String - displayName: Revenue General - required: false - - value: Income.Income.SalesRetail - type: String - displayName: Sales Retail - required: false - - value: Income.Income.SalesWholesale - type: String - displayName: Sales Wholesale - required: false - - value: Income.Income.SavingsByTaxScheme - type: String - displayName: Savings By Tax Scheme - required: false - - value: Income.Other Income.DividendIncome - type: String - displayName: Dividend Income - required: false - - value: Income.Other Income.InterestEarned - type: String - displayName: Interest Earned - required: false - - value: Income.Other Income.OtherInvestmentIncome - type: String - displayName: Other Investment Income - required: false - - value: Income.Other Income.OtherMiscellaneousIncome - type: String - displayName: Other Miscellaneous Income - required: false - - value: Income.Other Income.TaxExemptInterest - type: String - displayName: Tax Exempt Interest - required: false - - value: Income.Other Income.GainLossOnSaleOfFixedAssets - type: String - displayName: Gain Loss On Sale Of Fixed Assets - required: false - - value: Income.Other Income.GainLossOnSaleOfInvestments - type: String - displayName: Gain Loss On Sale Of Investments - required: false - - value: Income.Other Income.LossOnDisposalOfAssets - type: String - displayName: Loss On Disposal Of Assets - required: false - - value: Income.Other Income.OtherOperatingIncome - type: String - displayName: Other Operating Income - required: false - - value: Income.Other Income.UnrealisedLossOnSecuritiesNetOfTax - type: String - displayName: Unrealised Loss On Securities Net Of Tax - required: false - - value: Liability.Accounts Payable.AccountsPayable - type: String - displayName: Accounts Payable - required: false - - value: Liability.Accounts Payable.OutstandingDuesMicroSmallEnterprise - type: String - displayName: Outstanding Dues Micro Small Enterprise - required: false - - value: Liability.Accounts Payable.OutstandingDuesOtherThanMicroSmallEnterprise - type: String - displayName: Outstanding Dues Other Than Micro Small Enterprise - required: false - - value: Liability.Credit Card.CreditCard - type: String - displayName: Credit Card - required: false - - value: Liability.Long Term Liability.NotesPayable - type: String - displayName: Notes Payable - required: false - - value: Liability.Long Term Liability.OtherLongTermLiabilities - type: String - displayName: Other Long Term Liabilities - required: false - - value: Liability.Long Term Liability.ShareholderNotesPayable - type: String - displayName: Shareholder Notes Payable - required: false - - value: Liability.Long Term Liability.AccrualsAndDeferredIncome - type: String - displayName: Accruals And Deferred Income - required: false - - value: Liability.Long Term Liability.AccruedLongLermLiabilities - type: String - displayName: Accrued Long Lerm Liabilities - required: false - - value: Liability.Long Term Liability.AccruedVacationPayable - type: String - displayName: Accrued Vacation Payable - required: false - - value: Liability.Long Term Liability.BankLoans - type: String - displayName: Bank Loans - required: false - - value: Liability.Long Term Liability.DebtsRelatedToParticipatingInterests - type: String - displayName: Debts Related To Participating Interests - required: false - - value: Liability.Long Term Liability.DeferredTaxLiabilities - type: String - displayName: Deferred Tax Liabilities - required: false - - value: Liability.Long Term Liability.GovernmentAndOtherPublicAuthorities - type: String - displayName: Government And Other Public Authorities - required: false - - value: Liability.Long Term Liability.GroupAndAssociates - type: String - displayName: Group And Associates - required: false - - value: Liability.Long Term Liability.LiabilitiesRelatedToAssetsHeldForSale - type: String - displayName: Liabilities Related To Assets Held For Sale - required: false - - value: Liability.Long Term Liability.LongTermBorrowings - type: String - displayName: Long Term Borrowings - required: false - - value: Liability.Long Term Liability.LongTermDebit - type: String - displayName: Long Term Debit - required: false - - value: Liability.Long Term Liability.LongTermEmployeeBenefitObligations - type: String - displayName: Long Term Employee Benefit Obligations - required: false - - value: Liability.Long Term Liability.ObligationsUnderFinanceLeases - type: String - displayName: Obligations Under Finance Leases - required: false - - value: Liability.Long Term Liability.OtherLongTermProvisions - type: String - displayName: Other Long Term Provisions - required: false - - value: Liability.Long Term Liability.ProvisionForLiabilities - type: String - displayName: Provision For Liabilities - required: false - - value: Liability.Long Term Liability.ProvisionsNonCurrentLiabilities - type: String - displayName: Provisions Non Current Liabilities - required: false - - value: Liability.Long Term Liability.StaffAndRelatedLongTermLiabilityAccounts - type: String - displayName: Staff And Related Long Term Liability Accounts - required: false - - value: Liability.Other Current Liability.DirectDepositPayable - type: String - displayName: Direct Deposit Payable - required: false - - value: Liability.Other Current Liability.LineOfCredit - type: String - displayName: Line Of Credit - required: false - - value: Liability.Other Current Liability.LoanPayable - type: String - displayName: Loan Payable - required: false - - value: Liability.Other Current Liability.GlobalTaxPayable - type: String - displayName: Global Tax Payable - required: false - - value: Liability.Other Current Liability.GlobalTaxSuspense - type: String - displayName: Global Tax Suspense - required: false - - value: Liability.Other Current Liability.OtherCurrentLiabilities - type: String - displayName: Other Current Liabilities - required: false - - value: Liability.Other Current Liability.PayrollClearing - type: String - displayName: Payroll Clearing - required: false - - value: Liability.Other Current Liability.PayrollTaxPayable - type: String - displayName: Payroll Tax Payable - required: false - - value: Liability.Other Current Liability.PrepaidExpensesPayable - type: String - displayName: Prepaid Expenses Payable - required: false - - value: Liability.Other Current Liability.RentsInTrustLiability - type: String - displayName: Rents In Trust Liability - required: false - - value: Liability.Other Current Liability.TrustAccountsLiabilities - type: String - displayName: Trust Accounts Liabilities - required: false - - value: Liability.Other Current Liability.FederalIncomeTaxPayable - type: String - displayName: Federal Income Tax Payable - required: false - - value: Liability.Other Current Liability.InsurancePayable - type: String - displayName: Insurance Payable - required: false - - value: Liability.Other Current Liability.SalesTaxPayable - type: String - displayName: Sales Tax Payable - required: false - - value: Liability.Other Current Liability.StateLocalIncomeTaxPayable - type: String - displayName: State Local Income Tax Payable - required: false - - value: Liability.Other Current Liability.AccruedLiabilities - type: String - displayName: Accrued Liabilities - required: false - - value: Liability.Other Current Liability.CurrentLiabilities - type: String - displayName: Current Liabilities - required: false - - value: Liability.Other Current Liability.CurrentPortionEmployeeBenefitsObligations - type: String - displayName: Current Portion EmployeeBenefits Obligations - required: false - - value: Liability.Other Current Liability.CurrentPortionOfObligationsUnderFinanceLeases - type: String - displayName: Current Portion Of Obligations Under Finance Leases - required: false - - value: Liability.Other Current Liability.CurrentTaxLiability - type: String - displayName: Current Tax Liability - required: false - - value: Liability.Other Current Liability.DividendsPayable - type: String - displayName: Dividends Payable - required: false - - value: Liability.Other Current Liability.DutiesAndTaxes - type: String - displayName: Duties And Taxes - required: false - - value: Liability.Other Current Liability.InterestPayables - type: String - displayName: Interest Payables - required: false - - value: Liability.Other Current Liability.ProvisionForWarrantyObligations - type: String - displayName: Provision For Warranty Obligations - required: false - - value: Liability.Other Current Liability.ProvisionsCurrentLiabilities - type: String - displayName: Provisions Current Liabilities - required: false - - value: Liability.Other Current Liability.ShortTermBorrowings - type: String - displayName: Short Term Borrowings - required: false - - value: Liability.Other Current Liability.SocialSecurityAgencies - type: String - displayName: Social Security Agencies - required: false - - value: Liability.Other Current Liability.StaffAndRelatedLiabilityAccounts - type: String - displayName: Staff And Related Liability Accounts - required: false - - value: Liability.Other Current Liability.SundryDebtorsAndCreditors - type: String - displayName: Sundry Debtors And Creditors - required: false - - value: Liability.Other Current Liability.TradeAndOtherPayables - type: String - displayName: Trade And Other Payables - required: false - - value: Equity.Equity.OpeningBalanceEquity - type: String - displayName: Opening Balance Equity - required: false - - value: Equity.Equity.PartnersEquity - type: String - displayName: Partners Equity - required: false - - value: Equity.Equity.RetainedEarnings - type: String - displayName: Retained Earnings - required: false - - value: Equity.Equity.AccumulatedAdjustment - type: String - displayName: Accumulated Adjustment - required: false - - value: Equity.Equity.OwnersEquity - type: String - displayName: Owners Equity - required: false - - value: Equity.Equity.PaidInCapitalOrSurplus - type: String - displayName: Paid In Capital Or Surplus - required: false - - value: Equity.Equity.PartnerContributions - type: String - displayName: Partner Contributions - required: false - - value: Equity.Equity.PartnerDistributions - type: String - displayName: Partner Distributions - required: false - - value: Equity.Equity.PreferredStock - type: String - displayName: Preferred Stock - required: false - - value: Equity.Equity.CommonStock - type: String - displayName: Common Stock - required: false - - value: Equity.Equity.TreasuryStock - type: String - displayName: Treasury Stock - required: false - - value: Equity.Equity.EstimatedTaxes - type: String - displayName: Estimated Taxes - required: false - - value: Equity.Equity.Healthcare - type: String - displayName: Healthcare - required: false - - value: Equity.Equity.PersonalIncome - type: String - displayName: Personal Income - required: false - - value: Equity.Equity.PersonalExpense - type: String - displayName: Personal Expense - required: false - - value: Equity.Equity.AccumulatedOtherComprehensiveIncome - type: String - displayName: Accumulated Other Comprehensive Income - required: false - - value: Equity.Equity.CalledUpShareCapital - type: String - displayName: Called Up Share Capital - required: false - - value: Equity.Equity.CapitalReserves - type: String - displayName: Capital Reserves - required: false - - value: Equity.Equity.DividendDisbursed - type: String - displayName: Dividend Disbursed - required: false - - value: Equity.Equity.EquityInEarningsOfSubsiduaries - type: String - displayName: Equity In Earnings Of Subsiduaries - required: false - - value: Equity.Equity.InvestmentGrants - type: String - displayName: Investment Grants - required: false - - value: Equity.Equity.MoneyReceivedAgainstShareWarrants - type: String - displayName: Money Received Against Share Warrants - required: false - - value: Equity.Equity.OtherFreeReserves - type: String - displayName: Other Free Reserves - required: false - - value: Equity.Equity.ShareApplicationMoneyPendingAllotment - type: String - displayName: Share Application Money Pending Allotment - required: false - - value: Equity.Equity.ShareCapital - type: String - displayName: Share Capital - required: false - - value: Equity.Equity.Funds - type: String - displayName: Funds - required: false - required: true - required: true - Sage Business Cloud Accounting: - value: - type: Object - displayName: Nominal Account - description: Nominal Accounts are the categories a business uses to record transactions - properties: - name: - type: String - displayName: Name - description: Name of the account - required: true - validation: - warnings: [] - information: - - field: Name - details: Should not be longer than 200 characters. - nominalCode: - type: String - displayName: Nominal Code - description: The external reference given to each nominal account for a business - required: true - validation: - warnings: [] - information: - - field: NominalCode - details: Should be a number between 1 and 99999999. - fullyQualifiedCategory: - type: String - displayName: Fully Qualified Category - description: The full category of the account e.g. Liability.Current or Income.Revenue - options: - - value: SALES - type: String - displayName: Sales - required: false - - value: OTHER_INCOME - type: String - displayName: Other Income - required: false - - value: DIRECT_EXPENSES - type: String - displayName: Direct Expenses - required: false - - value: OVERHEADS - type: String - displayName: Overheads - required: false - - value: DEPRECIATION - type: String - displayName: Depreciation - required: false - - value: CURRENT_ASSETS - type: String - displayName: Current Assets - required: false - - value: FIXED_ASSETS - type: String - displayName: Fixed Assets - required: false - - value: FUTURE_ASSETS - type: String - displayName: Future Assets - required: false - - value: BANK - type: String - displayName: Bank - required: false - - value: CURRENT_LIABILITY - type: String - displayName: Current Liability - required: false - - value: FUTURE_LIABILITY - type: String - displayName: Future Liability - required: false - - value: EQUITY - type: String - displayName: Equity - required: false - - value: LINE_OF_CREDIT - type: String - displayName: Credit Card / Loan - required: false - required: true - required: true - Sage Intacct: - value: - type: Object - displayName: Nominal Account - description: Nominal Accounts are the categories a business uses to record transactions - properties: - nominalCode: - type: String - displayName: Nominal Code - description: The external reference given to each nominal account for a business - required: true - validation: - warnings: - - field: NominalCode - details: Must be unique within the entity. - - field: NominalCode - details: 'Must be at most 24 characters in length, although restrictions may vary between entities.' - information: [] - name: - type: String - displayName: Name - description: Name of the account - required: true - status: - type: String - displayName: Account Status - description: The status of the account - options: - - value: Active - type: String - displayName: Active - required: false - - value: Archived - type: String - displayName: Archived - required: false - required: true - type: - type: String - displayName: Account Type - description: 'The type, or base category, of the account' - options: - - value: Asset - type: String - displayName: Asset - required: false - - value: Equity - type: String - displayName: Equity - required: false - - value: Expense - type: String - displayName: Expense - required: false - - value: Income - type: String - displayName: Income - required: false - - value: Liability - type: String - displayName: Liability - required: false - required: true - fullyQualifiedCategory: - type: String - displayName: Fully Qualified Category - description: The full category of the account e.g. Liability.Current or Income.Revenue - required: true - validation: - warnings: [] - information: - - field: FullyQualifiedCategory - details: 'Any category that is part of the hierarchy of one of: ''Assets'', ''Equity'', ''Liabilities'', ''Total Expenses'' and ''Total Income'' is permitted.' - required: true - Sandbox: - value: - type: Object - displayName: Nominal Account - description: Nominal Accounts are the categories a business uses to record transactions - properties: - nominalCode: - type: String - displayName: Nominal Code - description: The external reference given to each nominal account for a business - required: true - name: - type: String - displayName: Name - description: Name of the account - required: true - description: - type: String - displayName: Description - description: Description of the account - required: true - fullyQualifiedCategory: - type: String - displayName: Fully Qualified Category - description: The full category of the account e.g. Liability.Current or Income.Revenue - required: true - fullyQualifiedName: - type: String - displayName: Fully Qualified Name - description: The full name of the account e.g. Liability.Current.VAT or Income.Revenue.Sales - required: true - currency: - type: String - displayName: Currency - description: The currency of the account - required: true - currentBalance: - type: Number - displayName: Current Balance - description: The current balance in the account - required: true - type: - type: String - displayName: Account Type - description: 'The type, or base category, of the account' - required: true - status: - type: String - displayName: Account Status - description: The status of the account - required: true - isBankAccount: - type: Boolean - displayName: Is Bank Account? - description: Confirms whether the nominal account represents a bank account or not - required: true - validDatatypeLinks: - type: Array - displayName: Valid Datatype Links - description: Describes which fields on other data types are valid links to this account in the originating system - properties: - property: - type: String - displayName: Property - description: The field on the source data type that other data types can link to - required: true - links: - type: Array - displayName: Links - description: 'A collection of absolute names of fields from other data types, e.g. Invoice.LineItems.AccountRef.Id' - required: true - required: true - metadata: - type: Object - displayName: Metadata - description: Miscellaneous data about the item - properties: - isDeleted: - type: Boolean - displayName: IsDeleted - description: A boolean to indicate whether the object has been deleted - required: true - required: true - required: true - Xero: - value: - type: Object - displayName: Nominal Account - description: Nominal Accounts are the categories a business uses to record transactions - properties: - nominalCode: - type: String - displayName: Nominal Code - description: Identifier for the nominal account. - required: true - validation: - warnings: - - field: NominalCode - details: Max length of 10 characters. - information: [] - name: - type: String - displayName: Name - description: Name of account as it appears in the chart of accounts or general ledger. - required: true - validation: - warnings: [] - information: - - field: Name - details: Payments are enabled to this account if the name ends in .PaymentsEnabled. - description: - type: String - displayName: Description - description: Description for the nominal account. - required: false - fullyQualifiedCategory: - type: String - displayName: Fully Qualified Category - description: Account type and category for nominal account. - options: - - value: Asset.Current - type: String - displayName: Current Asset - required: false - - value: Asset.Fixed - type: String - displayName: Fixed Asset - required: false - - value: Asset.Inventory - type: String - displayName: Inventory - required: false - - value: Asset.NonCurrent - type: String - displayName: Non-current Asset - required: false - - value: Asset.Prepayment - type: String - displayName: Prepayment - required: false - - value: Expense.DirectCosts - type: String - displayName: Direct Costs - required: false - - value: Expense.Expense - type: String - displayName: Expense - required: false - - value: Expense.Overhead - type: String - displayName: Overhead - required: false - - value: Expense.Superannuation - type: String - displayName: Superannuation - required: false - - value: Expense.Wages - type: String - displayName: Wages - required: false - - value: Income.Sales - type: String - displayName: Sales - required: false - - value: Income.Revenue - type: String - displayName: Revenue - required: false - - value: Income.Other - type: String - displayName: Other Income - required: false - - value: Liability.Current - type: String - displayName: Current Liability - required: false - - value: Liability.Depreciation - type: String - displayName: Depreciation - required: false - - value: Liability.Liability - type: String - displayName: Liability - required: false - - value: Liability.NonCurrent - type: String - displayName: Non Current Liability - required: false - - value: Liability.PayAsYouGo - type: String - displayName: Pay As You Go Liability - required: false - - value: Liability.Superannuation - type: String - displayName: Superannuation Liability - required: false - - value: Liability.WagesPayable - type: String - displayName: Wages Payable Liability - required: false - - value: Equity.Equity - type: String - displayName: Equity - required: false - required: true - required: true - '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' - operationId: get-create-chartOfAccounts-model - x-speakeasy-group: loan-writeback.accounts - description: |- - The *Get create account model* endpoint returns the expected data for the request payload when creating an [account](https://docs.codat.io/lending-api#/schemas/Account) for a given company and integration. - - [Accounts](https://docs.codat.io/lending-api#/schemas/Account) are the categories a business uses to record accounting transactions. - - **Integration-specific behavior** - - See the *response examples* for integration-specific indicative models. - '/companies/{companyId}/connections/{connectionId}/push/accounts': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - post: - tags: - - Loan writeback - summary: Create account - parameters: - - $ref: '#/components/parameters/timeoutInMinutes' - - $ref: '#/components/parameters/allowSyncOnPushComplete' - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/AccountingAccount/definitions/accountPrototype' - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/AccountingCreateAccountResponse' - examples: {} - '400': - $ref: '#/components/responses/BadRequest' - '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: |- - The *Create account* endpoint creates a new [account](https://docs.codat.io/lending-api#/schemas/Account) for a given company's connection. - - [Accounts](https://docs.codat.io/lending-api#/schemas/Account) are the categories a business uses to record accounting transactions. - - **Integration-specific behavior** - - Required data may vary by integration. To see what data to post, first call [Get create account model](https://docs.codat.io/lending-api#/operations/get-create-chartOfAccounts-model). - operationId: create-account - x-speakeasy-group: loan-writeback.accounts - '/companies/{companyId}/connections/{connectionId}/connectionInfo/bankFeedAccounts': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - post: - tags: - - Loan writeback - summary: Create source account - description: |- - The _Create Source Account_ endpoint allows you to create a representation of a bank account within Codat's domain. The company can then map the source account to an existing or new target account in their accounting software. - - > ### Versioning - > If you are integrating the Bank Feeds solution with Codat after August 1, 2024, please use the v2 version of the API, as detailed in the schema below. For integrations completed before August 1, 2024, select the v1 version from the schema dropdown below. - operationId: create-source-account - requestBody: - content: - application/json: - schema: - oneOf: - - $ref: '#/components/schemas/SourceAccountV2/definitions/sourceAccountV2Prototype' - - $ref: '#/components/schemas/SourceAccount/definitions/sourceAccountPrototype' - examples: - Version 2: - value: - id: acc-001 - accountName: account-081 - accountType: checking - accountNumber: '12345670' - routingInfo: - bankCode: 021001088 - type: bankcode - currency: GBP - balance: 99.99 - accountInfo: - description: account description 1 - nickname: account 123 - accountOpenDate: '2023-05-06' - availableBalance: 10 - modifiedDate: '2024-08-02T00:00:00.000Z' - Version 1: - value: - id: acc-002 - accountName: account-081 - sortCode: '123456' - accountType: Credit - accountNumber: '12345670' - currency: GBP - balance: 99.99 - modifiedDate: '2023-01-09T14:14:14.1057478Z' - responses: - '200': - description: Success - content: - application/json: - schema: - oneOf: - - $ref: '#/components/schemas/SourceAccountV2' - - $ref: '#/components/schemas/SourceAccount' - examples: {} - '400': - $ref: '#/components/responses/BadRequest' - '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' - x-speakeasy-group: loan-writeback.source-accounts - '/companies/{companyId}/connections/{connectionId}/bankFeedAccounts/mapping': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - get: - tags: - - Loan writeback - summary: List bank feed account mappings - description: "\uFEFF\x54\x68\x65\x20\x2A\x4C\x69\x73\x74\x20\x62\x61\x6E\x6B\x20\x61\x63\x63\x6F\x75\x6E\x74\x73\x2A\x20\x65\x6E\x64\x70\x6F\x69\x6E\x74\x20\x72\x65\x74\x75\x72\x6E\x73\x20\x69\x6E\x66\x6F\x72\x6D\x61\x74\x69\x6F\x6E\x20\x61\x62\x6F\x75\x74\x20\x61\x20\x73\x6F\x75\x72\x63\x65\x20\x62\x61\x6E\x6B\x20\x61\x63\x63\x6F\x75\x6E\x74\x20\x61\x6E\x64\x20\x61\x6E\x79\x20\x63\x75\x72\x72\x65\x6E\x74\x20\x6F\x72\x20\x70\x6F\x74\x65\x6E\x74\x69\x61\x6C\x20\x74\x61\x72\x67\x65\x74\x20\x6D\x61\x70\x70\x69\x6E\x67\x20\x61\x63\x63\x6F\x75\x6E\x74\x73\x2E\n\n\x41\x20\x62\x61\x6E\x6B\x20\x66\x65\x65\x64\x20\x61\x63\x63\x6F\x75\x6E\x74\x20\x6D\x61\x70\x70\x69\x6E\x67\x20\x69\x73\x20\x61\x20\x73\x70\x65\x63\x69\x66\x69\x65\x64\x20\x6C\x69\x6E\x6B\x20\x62\x65\x74\x77\x65\x65\x6E\x20\x74\x68\x65\x20\x73\x6F\x75\x72\x63\x65\x20\x61\x63\x63\x6F\x75\x6E\x74\x20\x28\x70\x72\x6F\x76\x69\x64\x65\x64\x20\x62\x79\x20\x74\x68\x65\x20\x43\x6F\x64\x61\x74\x20\x75\x73\x65\x72\x29\x20\x61\x6E\x64\x20\x74\x68\x65\x20\x74\x61\x72\x67\x65\x74\x20\x61\x63\x63\x6F\x75\x6E\x74\x20\x28\x74\x68\x65\x20\x65\x6E\x64\x20\x75\x73\x65\x72\x27\x73\x20\x61\x63\x63\x6F\x75\x6E\x74\x20\x69\x6E\x20\x74\x68\x65\x20\x75\x6E\x64\x65\x72\x6C\x79\x69\x6E\x67\x20\x73\x6F\x66\x74\x77\x61\x72\x65\x29\x2E\n\n\x3E\x20\x2A\x2A\x46\x6F\x72\x20\x63\x75\x73\x74\x6F\x6D\x20\x62\x75\x69\x6C\x64\x73\x20\x6F\x6E\x6C\x79\x2A\x2A\n\x3E\x20\n\x3E\x20\x4F\x6E\x6C\x79\x20\x75\x73\x65\x20\x74\x68\x69\x73\x20\x65\x6E\x64\x70\x6F\x69\x6E\x74\x20\x69\x66\x20\x79\x6F\x75\x20\x61\x72\x65\x20\x62\x75\x69\x6C\x64\x69\x6E\x67\x20\x79\x6F\x75\x72\x20\x6F\x77\x6E\x20\x61\x63\x63\x6F\x75\x6E\x74\x20\x6D\x61\x6E\x61\x67\x65\x6D\x65\x6E\x74\x20\x55\x49\x2E" - operationId: get-bank-account-mapping - x-speakeasy-group: loan-writeback.source-accounts - x-speakeasy-name-override: list-mappings - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/BankFeedMapping/definitions/bankFeedMappings' - examples: - Example: - value: - - sourceAccountId: account-001 - status: pending - targetAccountOptions: - - name: Money Bank account - id: d21e25d6-98c5-4bfb-b469-105833bea3c8 - accountNumber: '789' - sortCode: '123456' - - name: Bank of Dave account - id: d06ff4b2-e4f2-4681-9841-014bd008cdab - accountNumber: '99887766' - sortCode: '998866' - - name: LuxLend account - id: c8f252fc-84f3-4a8b-ace8-ae99f41a81ae - accountNumber: '123456789' - sortCode: '123456' - sourceAccountName: account-001 - sourceAccountNumber: '12345670' - sourceBalance: 99.99 - sourceCurrency: GBP - '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' - post: - tags: - - Loan writeback - summary: Create bank feed account mapping - description: "\uFEFF\x54\x68\x65\x20\x2A\x43\x72\x65\x61\x74\x65\x20\x62\x61\x6E\x6B\x20\x61\x63\x63\x6F\x75\x6E\x74\x20\x6D\x61\x70\x70\x69\x6E\x67\x2A\x20\x65\x6E\x64\x70\x6F\x69\x6E\x74\x20\x63\x72\x65\x61\x74\x65\x73\x20\x61\x20\x6E\x65\x77\x20\x6D\x61\x70\x70\x69\x6E\x67\x20\x62\x65\x74\x77\x65\x65\x6E\x20\x61\x20\x73\x6F\x75\x72\x63\x65\x20\x62\x61\x6E\x6B\x20\x61\x63\x63\x6F\x75\x6E\x74\x20\x61\x6E\x64\x20\x61\x20\x70\x6F\x74\x65\x6E\x74\x69\x61\x6C\x20\x61\x63\x63\x6F\x75\x6E\x74\x20\x69\x6E\x20\x74\x68\x65\x20\x61\x63\x63\x6F\x75\x6E\x74\x69\x6E\x67\x20\x73\x6F\x66\x74\x77\x61\x72\x65\x20\x28\x74\x61\x72\x67\x65\x74\x20\x61\x63\x63\x6F\x75\x6E\x74\x29\x2E\n\n\x41\x20\x62\x61\x6E\x6B\x20\x66\x65\x65\x64\x20\x61\x63\x63\x6F\x75\x6E\x74\x20\x6D\x61\x70\x70\x69\x6E\x67\x20\x69\x73\x20\x61\x20\x73\x70\x65\x63\x69\x66\x69\x65\x64\x20\x6C\x69\x6E\x6B\x20\x62\x65\x74\x77\x65\x65\x6E\x20\x74\x68\x65\x20\x73\x6F\x75\x72\x63\x65\x20\x61\x63\x63\x6F\x75\x6E\x74\x20\x28\x70\x72\x6F\x76\x69\x64\x65\x64\x20\x62\x79\x20\x74\x68\x65\x20\x43\x6F\x64\x61\x74\x20\x75\x73\x65\x72\x29\x20\x61\x6E\x64\x20\x74\x68\x65\x20\x74\x61\x72\x67\x65\x74\x20\x61\x63\x63\x6F\x75\x6E\x74\x20\x28\x74\x68\x65\x20\x65\x6E\x64\x20\x75\x73\x65\x72\x27\x73\x20\x61\x63\x63\x6F\x75\x6E\x74\x20\x69\x6E\x20\x74\x68\x65\x20\x75\x6E\x64\x65\x72\x6C\x79\x69\x6E\x67\x20\x73\x6F\x66\x74\x77\x61\x72\x65\x29\x2E\n\n\x54\x6F\x20\x66\x69\x6E\x64\x20\x76\x61\x6C\x69\x64\x20\x74\x61\x72\x67\x65\x74\x20\x61\x63\x63\x6F\x75\x6E\x74\x20\x6F\x70\x74\x69\x6F\x6E\x73\x2C\x20\x66\x69\x72\x73\x74\x20\x63\x61\x6C\x6C\x20\x74\x68\x65\x20\x5B\x4C\x69\x73\x74\x20\x62\x61\x6E\x6B\x20\x66\x65\x65\x64\x20\x61\x63\x63\x6F\x75\x6E\x74\x20\x6D\x61\x70\x70\x69\x6E\x67\x73\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x2F\x62\x61\x6E\x6B\x2D\x66\x65\x65\x64\x73\x2D\x61\x70\x69\x23\x2F\x6F\x70\x65\x72\x61\x74\x69\x6F\x6E\x73\x2F\x67\x65\x74\x2D\x62\x61\x6E\x6B\x2D\x61\x63\x63\x6F\x75\x6E\x74\x2D\x6D\x61\x70\x70\x69\x6E\x67\x29\x20\x65\x6E\x64\x70\x6F\x69\x6E\x74\x2E\n\n\x3E\x20\x2A\x2A\x46\x6F\x72\x20\x63\x75\x73\x74\x6F\x6D\x20\x62\x75\x69\x6C\x64\x73\x20\x6F\x6E\x6C\x79\x2A\x2A\n\x3E\n\x3E\x20\x4F\x6E\x6C\x79\x20\x75\x73\x65\x20\x74\x68\x69\x73\x20\x65\x6E\x64\x70\x6F\x69\x6E\x74\x20\x69\x66\x20\x79\x6F\x75\x20\x61\x72\x65\x20\x62\x75\x69\x6C\x64\x69\x6E\x67\x20\x79\x6F\x75\x72\x20\x6F\x77\x6E\x20\x61\x63\x63\x6F\x75\x6E\x74\x20\x6D\x61\x6E\x61\x67\x65\x6D\x65\x6E\x74\x20\x55\x49\x2E\n\n\x23\x23\x23\x23\x20\x41\x63\x63\x6F\x75\x6E\x74\x20\x6D\x61\x70\x70\x69\x6E\x67\x20\x76\x61\x72\x69\x61\x62\x69\x6C\x69\x74\x79\n\n\x54\x68\x65\x20\x6D\x65\x74\x68\x6F\x64\x20\x6F\x66\x20\x6D\x61\x70\x70\x69\x6E\x67\x20\x74\x68\x65\x20\x73\x6F\x75\x72\x63\x65\x20\x61\x63\x63\x6F\x75\x6E\x74\x20\x74\x6F\x20\x74\x68\x65\x20\x74\x61\x72\x67\x65\x74\x20\x61\x63\x63\x6F\x75\x6E\x74\x20\x76\x61\x72\x69\x65\x73\x20\x64\x65\x70\x65\x6E\x64\x69\x6E\x67\x20\x6F\x6E\x20\x74\x68\x65\x20\x61\x63\x63\x6F\x75\x6E\x74\x69\x6E\x67\x20\x73\x6F\x66\x74\x77\x61\x72\x65\x20\x79\x6F\x75\x72\x20\x63\x6F\x6D\x70\x61\x6E\x79\x20\x75\x73\x65\x73\x2E\n\n\x23\x23\x23\x23\x20\x4D\x61\x70\x70\x69\x6E\x67\x20\x6F\x70\x74\x69\x6F\x6E\x73\x3A\n\n\x31\x2E\x20\x2A\x2A\x41\x50\x49\x20\x4D\x61\x70\x70\x69\x6E\x67\x2A\x2A\x3A\x20\x49\x6E\x74\x65\x67\x72\x61\x74\x65\x20\x74\x68\x65\x20\x6D\x61\x70\x70\x69\x6E\x67\x20\x6A\x6F\x75\x72\x6E\x65\x79\x20\x64\x69\x72\x65\x63\x74\x6C\x79\x20\x69\x6E\x74\x6F\x20\x79\x6F\x75\x72\x20\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x20\x66\x6F\x72\x20\x61\x20\x73\x65\x61\x6D\x6C\x65\x73\x73\x20\x75\x73\x65\x72\x20\x65\x78\x70\x65\x72\x69\x65\x6E\x63\x65\x2E\n\x32\x2E\x20\x2A\x2A\x43\x6F\x64\x61\x74\x20\x55\x49\x20\x4D\x61\x70\x70\x69\x6E\x67\x2A\x2A\x3A\x20\x49\x66\x20\x79\x6F\x75\x20\x70\x72\x65\x66\x65\x72\x20\x61\x20\x71\x75\x69\x63\x6B\x65\x72\x20\x73\x65\x74\x75\x70\x2C\x20\x79\x6F\x75\x20\x63\x61\x6E\x20\x75\x74\x69\x6C\x69\x7A\x65\x20\x43\x6F\x64\x61\x74\x27\x73\x20\x70\x72\x6F\x76\x69\x64\x65\x64\x20\x75\x73\x65\x72\x20\x69\x6E\x74\x65\x72\x66\x61\x63\x65\x20\x66\x6F\x72\x20\x6D\x61\x70\x70\x69\x6E\x67\x2E\n\x33\x2E\x20\x2A\x2A\x41\x63\x63\x6F\x75\x6E\x74\x69\x6E\x67\x20\x50\x6C\x61\x74\x66\x6F\x72\x6D\x20\x4D\x61\x70\x70\x69\x6E\x67\x2A\x2A\x3A\x20\x46\x6F\x72\x20\x73\x6F\x6D\x65\x20\x61\x63\x63\x6F\x75\x6E\x74\x69\x6E\x67\x20\x73\x6F\x66\x74\x77\x61\x72\x65\x2C\x20\x74\x68\x65\x20\x6D\x61\x70\x70\x69\x6E\x67\x20\x70\x72\x6F\x63\x65\x73\x73\x20\x6D\x75\x73\x74\x20\x62\x65\x20\x63\x6F\x6E\x64\x75\x63\x74\x65\x64\x20\x77\x69\x74\x68\x69\x6E\x20\x74\x68\x65\x20\x73\x6F\x66\x74\x77\x61\x72\x65\x20\x69\x74\x73\x65\x6C\x66\x2E\n\n\x23\x23\x23\x20\x49\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x2D\x73\x70\x65\x63\x69\x66\x69\x63\x20\x62\x65\x68\x61\x76\x69\x6F\x72\n\n\x7C\x20\x42\x61\x6E\x6B\x20\x46\x65\x65\x64\x20\x49\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x20\x7C\x20\x41\x50\x49\x20\x4D\x61\x70\x70\x69\x6E\x67\x20\x7C\x20\x43\x6F\x64\x61\x74\x20\x55\x49\x20\x4D\x61\x70\x70\x69\x6E\x67\x20\x7C\x20\x41\x63\x63\x6F\x75\x6E\x74\x69\x6E\x67\x20\x50\x6C\x61\x74\x66\x6F\x72\x6D\x20\x4D\x61\x70\x70\x69\x6E\x67\x20\x7C\n\x7C\x20\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x20\x7C\x20\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x20\x7C\x20\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x20\x7C\x20\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x20\x7C\n\x7C\x20\x58\x65\x72\x6F\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7C\x20\u2705\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7C\x20\u2705\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7C\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7C\n\x7C\x20\x46\x72\x65\x65\x41\x67\x65\x6E\x74\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7C\x20\u2705\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7C\x20\u2705\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7C\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7C\n\x7C\x20\x4F\x72\x61\x63\x6C\x65\x20\x4E\x65\x74\x53\x75\x69\x74\x65\x20\x20\x20\x20\x20\x20\x20\x7C\x20\u2705\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7C\x20\u2705\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7C\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7C\n\x7C\x20\x45\x78\x61\x63\x74\x20\x4F\x6E\x6C\x69\x6E\x65\x20\x28\x4E\x4C\x29\x20\x20\x20\x20\x20\x7C\x20\u2705\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7C\x20\u2705\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7C\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7C\n\x7C\x20\x51\x75\x69\x63\x6B\x42\x6F\x6F\x6B\x73\x20\x4F\x6E\x6C\x69\x6E\x65\x20\x20\x20\x20\x20\x7C\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7C\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7C\x20\u2705\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7C\n\x7C\x20\x53\x61\x67\x65\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7C\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7C\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7C\x20\u2705\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7C" - operationId: create-bank-account-mapping - x-speakeasy-group: loan-writeback.source-accounts - x-speakeasy-name-override: create-mapping - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/BankFeedBankAccountMapping' - examples: - Example: - value: - sourceAccountId: acc-002 - targetAccountId: account-081 - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/BankFeedBankAccountMappingResponse' - examples: {} - '400': - $ref: '#/components/responses/BadRequest' - '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' - '/companies/{companyId}/connections/{connectionId}/options/suppliers': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - get: - summary: Get create/update supplier model - tags: - - Loan writeback - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/PushOption' - examples: - Exact (Netherlands): - value: - type: Object - displayName: Supplier - description: A Supplier is a person or organisation that provides a product or service - properties: - supplierName: - type: String - displayName: Supplier Name - description: 'The name for the supplier, typically a company name' - required: true - emailAddress: - type: String - displayName: Email Address - description: The preferred email address the supplier should be contacted on - required: false - phone: - type: String - displayName: Phone - description: The preferred phone number the supplier should be contacted on - required: false - defaultCurrency: - type: String - displayName: Default Currency - description: The default currency for transactions recorded against the supplier - required: false - registrationNumber: - type: String - displayName: Registration Number - description: The supplier's registration number - required: false - validation: - warnings: - - field: RegistrationNumber - details: 'Only for Exact Netherlands, if provided, must be exactly 20 characters in length' - information: [] - taxNumber: - type: String - displayName: Tax Number - description: The supplier's tax number - required: false - contactName: - type: String - displayName: Contact Name - description: The name of the main contact for the supplier - required: false - addresses: - type: Array - displayName: Addresses - description: A collection of addresses associated to the supplier - properties: - country: - type: String - displayName: Country - description: The country for the address - required: false - validation: - warnings: - - field: Addresses.Country - details: Must be a 2-letter country code - information: [] - line1: - type: String - displayName: Line 1 - description: The first line of the address - required: false - line2: - type: String - displayName: Line 2 - description: The second line of the address - required: false - region: - type: String - displayName: Region - description: 'The fourth line of the address, or region' - required: false - city: - type: String - displayName: City - description: 'The third line of the address, or city' - required: false - postalCode: - type: String - displayName: Postal/Zip Code - description: The postal (or zip) code for the address - required: false - required: false - validation: - warnings: [] - information: - - field: Addresses - details: 'Only the first address provided will be considered, all other entries will be not be recorded' - required: true - Exact (UK): - value: - type: Object - displayName: Supplier - description: A Supplier is a person or organisation that provides a product or service - properties: - supplierName: - type: String - displayName: Supplier Name - description: 'The name for the supplier, typically a company name' - required: true - emailAddress: - type: String - displayName: Email Address - description: The preferred email address the supplier should be contacted on - required: false - phone: - type: String - displayName: Phone - description: The preferred phone number the supplier should be contacted on - required: false - defaultCurrency: - type: String - displayName: Default Currency - description: The default currency for transactions recorded against the supplier - required: false - registrationNumber: - type: String - displayName: Registration Number - description: The supplier's registration number - required: false - validation: - warnings: - - field: RegistrationNumber - details: 'Only for Exact Netherlands, if provided, must be exactly 20 characters in length' - information: [] - taxNumber: - type: String - displayName: Tax Number - description: The supplier's tax number - required: false - contactName: - type: String - displayName: Contact Name - description: The name of the main contact for the supplier - required: false - addresses: - type: Array - displayName: Addresses - description: A collection of addresses associated to the supplier - properties: - country: - type: String - displayName: Country - description: The country for the address - required: false - validation: - warnings: - - field: Addresses.Country - details: Must be a 2-letter country code - information: [] - line1: - type: String - displayName: Line 1 - description: The first line of the address - required: false - line2: - type: String - displayName: Line 2 - description: The second line of the address - required: false - region: - type: String - displayName: Region - description: 'The fourth line of the address, or region' - required: false - city: - type: String - displayName: City - description: 'The third line of the address, or city' - required: false - postalCode: - type: String - displayName: Postal/Zip Code - description: The postal (or zip) code for the address - required: false - required: false - validation: - warnings: [] - information: - - field: Addresses - details: 'Only the first address provided will be considered, all other entries will be not be recorded' - required: true - FreeAgent: - value: - type: Object - displayName: Supplier - description: A Supplier is a person or organisation that provides a product or service - properties: - supplierName: - type: String - displayName: Supplier Name - description: 'The name for the supplier, typically a company name' - required: true - status: - type: String - displayName: Supplier Status - description: The current state of the supplier - options: - - value: Active - type: String - displayName: Active - required: false - - value: Archived - type: String - displayName: Archived - required: false - required: true - addresses: - type: Array - displayName: Addresses - description: A collection of addresses associated to the supplier - properties: - line1: - type: String - displayName: Line 1 - description: The first line of the address - required: true - line2: - type: String - displayName: Line 2 - description: The second line of the address - required: false - city: - type: String - displayName: City - description: 'The third line of the address, or city' - required: false - region: - type: String - displayName: Region - description: 'The fourth line of the address, or region' - required: false - country: - type: String - displayName: Country - description: The country for the address - required: false - postalCode: - type: String - displayName: Postal/Zip Code - description: The postal (or zip) code for the address - required: false - required: false - validation: - warnings: [] - information: - - field: Addresses - details: Only one address may be specified - contactName: - type: String - displayName: Contact Name - description: The name of the main contact for the supplier - required: false - emailAddress: - type: String - displayName: Email Address - description: The preferred email address the supplier should be contacted on - required: false - taxNumber: - type: String - displayName: Tax Number - description: The supplier's tax number - required: false - required: true - MYOB AccountRight and Essentials: - value: - type: Object - displayName: Supplier - description: A Supplier is a person or organisation that provides a product or service - properties: - supplierName: - type: String - displayName: Supplier Name - description: 'The name for the supplier, typically a company name' - required: true - validation: - warnings: - - field: SupplierName - details: Must not have the part after the first name longer than 30 characters. - - field: SupplierName - details: Must not have its first part (i.e. the first name) longer than 20 characters. - information: - - field: SupplierName - details: Must be provided and must contain a First and Last name separated by a ' '(space). - emailAddress: - type: String - displayName: Email Address - description: The preferred email address the supplier should be contacted on - required: false - validation: - warnings: [] - information: - - field: EmailAddress - details: Must not be longer than 255 characters. - phone: - type: String - displayName: Phone - description: The preferred phone number the supplier should be contacted on - required: false - validation: - warnings: [] - information: - - field: Phone - details: Must not be longer than 21 characters. - taxNumber: - type: String - displayName: Tax Number - description: The supplier's tax number - required: false - validation: - warnings: [] - information: - - field: TaxNumber - details: Must not be longer than 19 characters. - registrationNumber: - type: String - displayName: Registration Number - description: The supplier's registration number - required: false - validation: - warnings: [] - information: - - field: RegistrationNumber - details: Must not be longer than 14 characters. - status: - type: String - displayName: Supplier Status - description: The current state of the supplier - options: - - value: Active - type: String - required: false - - value: Unknown - type: String - required: false - required: true - validation: - warnings: [] - information: - - field: Status - details: Must be provided. - addresses: - type: Array - displayName: Addresses - description: A collection of addresses associated to the supplier - properties: - line1: - type: String - displayName: Line 1 - description: The first line of the address - required: false - validation: - warnings: [] - information: - - field: Addresses.Line1 - details: Must not be longer than 127 characters. - line2: - type: String - displayName: Line 2 - description: The second line of the address - required: false - validation: - warnings: [] - information: - - field: Addresses.Line2 - details: Must not be longer than 127 characters. - city: - type: String - displayName: City - description: 'The third line of the address, or city' - required: false - validation: - warnings: [] - information: - - field: Addresses.City - details: Must not be longer than 255 characters. - region: - type: String - displayName: Region - description: 'The fourth line of the address, or region' - required: false - validation: - warnings: [] - information: - - field: Addresses.Region - details: Must not be longer than 255 characters. - postalCode: - type: String - displayName: Postal/Zip Code - description: The postal (or zip) code for the address - required: false - validation: - warnings: [] - information: - - field: Addresses.PostalCode - details: Must not be longer than 11 characters. - country: - type: String - displayName: Country - description: The country for the address - required: false - validation: - warnings: [] - information: - - field: Addresses.Country - details: Must not be longer than 255 characters. - required: true - validation: - warnings: - - field: Addresses - details: Must only have 5 address entries at most. - information: - - field: Addresses - details: Must be provided. - required: true - Oracle NetSuite: - value: - type: Object - displayName: Supplier - description: A Supplier is a person or organisation that provides a product or service - properties: - supplierName: - type: String - displayName: Supplier Name - description: 'The name for the supplier, typically a company name' - required: true - emailAddress: - type: String - displayName: Email Address - description: The preferred email address the supplier should be contacted on - required: false - defaultCurrency: - type: String - displayName: Default Currency - description: The default currency for transactions recorded against the supplier - required: false - phone: - type: String - displayName: Phone - description: The preferred phone number the supplier should be contacted on - required: false - taxNumber: - type: String - displayName: Tax Number - description: The supplier's tax number - required: false - status: - type: String - displayName: Supplier Status - description: The current state of the supplier - options: - - value: Active - type: String - displayName: Active - required: false - - value: Archived - type: String - displayName: Archived - required: false - required: true - addresses: - type: Array - displayName: Addresses - description: A collection of addresses associated to the supplier - properties: - type: - type: String - displayName: Address Type - description: The type of the address - options: - - value: Billing - type: String - displayName: Billing - required: false - - value: Delivery - type: String - displayName: Delivery - required: false - - value: Unknown - type: String - displayName: Unknown - required: false - required: true - line1: - type: String - displayName: Line 1 - description: The first line of the address - required: false - line2: - type: String - displayName: Line 2 - description: The second line of the address - required: false - city: - type: String - displayName: City - description: 'The third line of the address, or city' - required: false - region: - type: String - displayName: Region - description: 'The fourth line of the address, or region' - required: false - country: - type: String - displayName: Country - description: The country for the address - required: true - validation: - warnings: - - field: Addresses.Country - details: Must be a two letter Country ISO code - information: [] - postalCode: - type: String - displayName: Postal/Zip Code - description: The postal (or zip) code for the address - required: false - required: false - validation: - warnings: - - field: Addresses - details: Only one each of Billing and Delivery addresses can be provided - information: - - field: Addresses - details: Multiple addresses of Unknown type may be provided - required: true - QuickBooks Desktop: - value: - type: Object - displayName: Supplier - description: A Supplier is a person or organisation that provides a product or service - properties: - supplierName: - type: String - displayName: Supplier Name - description: 'The name for the supplier, typically a company name' - required: true - validation: - warnings: - - field: SupplierName - details: Max length of 41 characters. - information: [] - contactName: - type: String - displayName: Contact Name - description: The name of the main contact for the supplier - required: false - validation: - warnings: - - field: ContactName - details: Max length of 25 characters for first and last names - information: [] - phone: - type: String - displayName: Phone - description: The preferred phone number the supplier should be contacted on - required: false - emailAddress: - type: String - displayName: Email Address - description: The preferred email address the supplier should be contacted on - required: false - registrationNumber: - type: String - displayName: Registration Number - description: The supplier's registration number - required: false - taxNumber: - type: String - displayName: Tax Number - description: The supplier's tax number - required: false - validation: - warnings: - - field: TaxNumber - details: Max length of 30 characters. - information: [] - defaultCurrency: - type: String - displayName: Default Currency - description: The default currency for transactions recorded against the supplier - required: false - validation: - warnings: - - field: DefaultCurrency - details: 'Must be a three letter ISO code that matches an existing, active currency in the QuickBooks Desktop company' - - field: DefaultCurrency - details: Can only be set if Multicurrency is enabled within the QuickBooks Desktop company - information: - - field: DefaultCurrency - details: 'If not set, will default to the base currency of the QuickBooks Desktop company' - status: - type: String - displayName: Supplier Status - description: The current state of the supplier - options: - - value: Active - type: String - displayName: Active - required: false - - value: Archived - type: String - displayName: Archived - required: false - required: true - addresses: - type: Array - displayName: Addresses - description: A collection of addresses associated to the supplier - properties: - line1: - type: String - displayName: Line 1 - description: The first line of the address - required: false - validation: - warnings: - - field: Addresses.Line1 - details: Max length of 41 characters. - information: [] - line2: - type: String - displayName: Line 2 - description: The second line of the address - required: false - validation: - warnings: - - field: Addresses.Line2 - details: Max length of 41 characters. - information: [] - city: - type: String - displayName: City - description: 'The third line of the address, or city' - required: false - validation: - warnings: - - field: Addresses.City - details: Max length of 31 characters. - information: [] - region: - type: String - displayName: Region - description: 'The fourth line of the address, or region' - required: false - validation: - warnings: - - field: Addresses.Region - details: Max length of 21 characters. - information: [] - country: - type: String - displayName: Country - description: The country for the address - required: false - validation: - warnings: - - field: Addresses.Country - details: Max length of 31 characters. - information: [] - postalCode: - type: String - displayName: Postal/Zip Code - description: The postal (or zip) code for the address - required: false - validation: - warnings: - - field: Addresses.PostalCode - details: Max length of 13 characters. - information: [] - type: - type: String - displayName: Address Type - description: The type of the address - options: - - value: Billing - type: String - displayName: Billing Address - required: false - - value: Delivery - type: String - displayName: Delivery Address - required: false - required: true - validation: - warnings: [] - information: - - field: Addresses.Type - details: Only 1 address each of type(s) Billing/Delivery may be specified. - required: false - required: true - QuickBooks Online Sandbox: - value: - type: Object - displayName: Supplier - description: A Supplier is a person or organisation that provides a product or service - properties: - supplierName: - type: String - displayName: Supplier Name - description: 'The name for the supplier, typically a company name' - required: true - phone: - type: String - displayName: Phone - description: The preferred phone number the supplier should be contacted on - required: false - validation: - warnings: - - field: Phone - details: 'Country, area, and number are space separated' - information: [] - emailAddress: - type: String - displayName: Email Address - description: The preferred email address the supplier should be contacted on - required: false - registrationNumber: - type: String - displayName: Registration Number - description: The supplier's registration number - required: false - taxNumber: - type: String - displayName: Tax Number - description: The supplier's tax number - required: false - status: - type: String - displayName: Supplier Status - description: The current state of the supplier - options: - - value: Active - type: String - displayName: Active - required: false - - value: Archived - type: String - displayName: Archived - required: false - required: true - addresses: - type: Array - displayName: Addresses - description: A collection of addresses associated to the supplier - properties: - line1: - type: String - displayName: Line 1 - description: The first line of the address - required: false - validation: - warnings: - - field: Addresses.Line1 - details: Max length of 500 characters. - information: [] - line2: - type: String - displayName: Line 2 - description: The second line of the address - required: false - validation: - warnings: - - field: Addresses.Line2 - details: Max length of 500 characters. - information: [] - city: - type: String - displayName: City - description: 'The third line of the address, or city' - required: false - validation: - warnings: - - field: Addresses.City - details: Max length of 255 characters. - information: [] - region: - type: String - displayName: Region - description: 'The fourth line of the address, or region' - required: false - validation: - warnings: - - field: Addresses.Region - details: Max length of 255 characters. - information: [] - country: - type: String - displayName: Country - description: The country for the address - required: false - validation: - warnings: - - field: Addresses.Country - details: Max length of 50 characters. - information: [] - postalCode: - type: String - displayName: Postal/Zip Code - description: The postal (or zip) code for the address - required: false - validation: - warnings: - - field: Addresses.PostalCode - details: Only English alphabet characters are permitted. - - field: Addresses.PostalCode - details: Max length of 50 characters. - information: [] - type: - type: String - displayName: Address Type - description: The type of the address - options: - - value: Billing - type: String - displayName: Billing Address - required: false - required: true - required: false - defaultCurrency: - type: String - displayName: Default Currency - description: The default currency for transactions recorded against the supplier - required: false - required: true - QuickBooks Online: - value: - type: Object - displayName: Supplier - description: A Supplier is a person or organisation that provides a product or service - properties: - supplierName: - type: String - displayName: Supplier Name - description: 'The name for the supplier, typically a company name' - required: true - phone: - type: String - displayName: Phone - description: The preferred phone number the supplier should be contacted on - required: false - validation: - warnings: - - field: Phone - details: 'Country, area, and number are space separated' - information: [] - emailAddress: - type: String - displayName: Email Address - description: The preferred email address the supplier should be contacted on - required: false - registrationNumber: - type: String - displayName: Registration Number - description: The supplier's registration number - required: false - taxNumber: - type: String - displayName: Tax Number - description: The supplier's tax number - required: false - status: - type: String - displayName: Supplier Status - description: The current state of the supplier - options: - - value: Active - type: String - displayName: Active - required: false - - value: Archived - type: String - displayName: Archived - required: false - required: true - addresses: - type: Array - displayName: Addresses - description: A collection of addresses associated to the supplier - properties: - line1: - type: String - displayName: Line 1 - description: The first line of the address - required: false - validation: - warnings: - - field: Addresses.Line1 - details: Max length of 500 characters. - information: [] - line2: - type: String - displayName: Line 2 - description: The second line of the address - required: false - validation: - warnings: - - field: Addresses.Line2 - details: Max length of 500 characters. - information: [] - city: - type: String - displayName: City - description: 'The third line of the address, or city' - required: false - validation: - warnings: - - field: Addresses.City - details: Max length of 255 characters. - information: [] - region: - type: String - displayName: Region - description: 'The fourth line of the address, or region' - required: false - validation: - warnings: - - field: Addresses.Region - details: Max length of 255 characters. - information: [] - country: - type: String - displayName: Country - description: The country for the address - required: false - validation: - warnings: - - field: Addresses.Country - details: Max length of 50 characters. - information: [] - postalCode: - type: String - displayName: Postal/Zip Code - description: The postal (or zip) code for the address - required: false - validation: - warnings: - - field: Addresses.PostalCode - details: Only English alphabet characters are permitted. - - field: Addresses.PostalCode - details: Max length of 50 characters. - information: [] - type: - type: String - displayName: Address Type - description: The type of the address - options: - - value: Billing - type: String - displayName: Billing Address - required: false - required: true - required: false - defaultCurrency: - type: String - displayName: Default Currency - description: The default currency for transactions recorded against the supplier - required: false - required: true - Sage 50 (UK): - value: - type: Object - displayName: Supplier - description: A Supplier is a person or organisation that provides a product or service - properties: - id: - type: String - displayName: Id - description: ID of the supplier. - required: true - validation: - warnings: - - field: id - details: 'The supplier ID must be unique, contain no spaces and have a maximum of 8 characters.' - information: - - field: id - details: 'The supplier ID must be all Uppercase, if it is not, it will be converted to Uppercase before pushing.' - supplierName: - type: String - displayName: Name - description: Name of the supplier. - required: true - validation: - warnings: - - field: supplierName - details: The supplier name can have a maximum of 60 characters - information: [] - contactName: - type: String - displayName: Contact Name - description: The name of the main contact for the supplier. - required: false - validation: - warnings: - - field: contactName - details: The contact name can have a maximum of 30 characters - information: [] - emailAddress: - type: String - displayName: Email Address - description: The email address that the supplier may be contacted on. - required: false - phone: - type: String - displayName: Telephone - description: The telephone number that the supplier may be contacted on. - required: false - defaultCurrency: - type: String - displayName: Default Currency - description: 'If not provided, the currency will default to the company''s base currency.' - required: false - status: - type: String - displayName: Status - description: The status of the supplier. - options: - - value: Active - type: String - displayName: Active Status - required: false - required: false - addresses: - type: Array - displayName: Addresses - description: Contact addresses for the supplier. - properties: - line1: - type: String - displayName: Line 1 - description: Line 1 of the supplier address. - required: true - line2: - type: String - displayName: Line 2 - description: Line 2 of the supplier address. - required: false - city: - type: String - displayName: City - description: The city of the supplier address. - required: false - region: - type: String - displayName: Region - description: The region of the supplier address. - required: false - postalCode: - type: String - displayName: Postal code - description: Post or Zip code for the address. - required: false - type: - type: String - displayName: Type - description: The type of address as it related to the supplier. - options: - - value: Unknown - type: String - displayName: Unknown Address - required: false - required: false - validation: - warnings: [] - information: - - field: addresses.type - details: 'If Address type is not specified, it will default to type ''''Unknown''''' - required: false - validation: - warnings: - - field: addresses - details: Only one address can be included in the Addresses array. - information: [] - taxNumber: - type: String - displayName: Tax Number - description: Legal company registration identifier. - required: false - required: true - validation: - warnings: [] - information: - - details: 'Pushing to Sage 50 2015 (v21) or below is not supported. To enable push, please upgrade to at least Sage 50 2016 (v22) and re-sync the company.' - Sage Business Cloud Accounting: - value: - type: Object - displayName: Supplier - description: A Supplier is a person or organisation that provides a product or service - properties: - supplierName: - type: String - displayName: Supplier Name - description: 'The name for the supplier, typically a company name' - required: true - contactName: - type: String - displayName: Contact Name - description: The name of the main contact for the supplier - required: false - emailAddress: - type: String - displayName: Email Address - description: The preferred email address the supplier should be contacted on - required: false - phone: - type: String - displayName: Phone - description: The preferred phone number the supplier should be contacted on - required: false - taxNumber: - type: String - displayName: Tax Number - description: The supplier's tax number - required: false - addresses: - type: Array - displayName: Addresses - description: A collection of addresses associated to the supplier - properties: - line1: - type: String - displayName: Line 1 - description: The first line of the address - required: true - validation: - warnings: - - field: Addresses.Line1 - details: 'If you''re adding an address for this Supplier, you must also include the first line' - information: [] - line2: - type: String - displayName: Line 2 - description: The second line of the address - required: false - city: - type: String - displayName: City - description: 'The third line of the address, or city' - required: false - region: - type: String - displayName: Region - description: 'The fourth line of the address, or region' - required: false - postalCode: - type: String - displayName: Postal/Zip Code - description: The postal (or zip) code for the address - required: false - country: - type: String - displayName: Country - description: The country for the address - options: - - value: Afghanistan (AF) - type: String - displayName: Afghanistan (AF) - required: false - - value: Albania (AL) - type: String - displayName: Albania (AL) - required: false - - value: Algeria (DZ) - type: String - displayName: Algeria (DZ) - required: false - - value: Andorra (AD) - type: String - displayName: Andorra (AD) - required: false - - value: Angola (AO) - type: String - displayName: Angola (AO) - required: false - - value: Argentina (AR) - type: String - displayName: Argentina (AR) - required: false - - value: Armenia (AM) - type: String - displayName: Armenia (AM) - required: false - - value: Aruba (AW) - type: String - displayName: Aruba (AW) - required: false - - value: Australia (AU) - type: String - displayName: Australia (AU) - required: false - - value: Austria (AT) - type: String - displayName: Austria (AT) - required: false - - value: Azerbaijan (AZ) - type: String - displayName: Azerbaijan (AZ) - required: false - - value: Bahamas (BS) - type: String - displayName: Bahamas (BS) - required: false - - value: Bahrain (BH) - type: String - displayName: Bahrain (BH) - required: false - - value: Bangladesh (BD) - type: String - displayName: Bangladesh (BD) - required: false - - value: Barbados (BB) - type: String - displayName: Barbados (BB) - required: false - - value: Belarus (BY) - type: String - displayName: Belarus (BY) - required: false - - value: Belgium (BE) - type: String - displayName: Belgium (BE) - required: false - - value: Belize (BZ) - type: String - displayName: Belize (BZ) - required: false - - value: Benin (BJ) - type: String - displayName: Benin (BJ) - required: false - - value: Bermuda (BM) - type: String - displayName: Bermuda (BM) - required: false - - value: Bhutan (BT) - type: String - displayName: Bhutan (BT) - required: false - - value: Bolivia (BO) - type: String - displayName: Bolivia (BO) - required: false - - value: Bosnia and Herzegovina (BA) - type: String - displayName: Bosnia and Herzegovina (BA) - required: false - - value: Botswana (BW) - type: String - displayName: Botswana (BW) - required: false - - value: Brazil (BR) - type: String - displayName: Brazil (BR) - required: false - - value: British Virgin Islands (VG) - type: String - displayName: British Virgin Islands (VG) - required: false - - value: Brunei Darussalam (BN) - type: String - displayName: Brunei Darussalam (BN) - required: false - - value: Bulgaria (BG) - type: String - displayName: Bulgaria (BG) - required: false - - value: Burkina Faso (BF) - type: String - displayName: Burkina Faso (BF) - required: false - - value: Burundi (BI) - type: String - displayName: Burundi (BI) - required: false - - value: Cambodia (KH) - type: String - displayName: Cambodia (KH) - required: false - - value: Cameroon (CM) - type: String - displayName: Cameroon (CM) - required: false - - value: Canada (CA) - type: String - displayName: Canada (CA) - required: false - - value: Cape Verde (CV) - type: String - displayName: Cape Verde (CV) - required: false - - value: Cayman Islands (KY) - type: String - displayName: Cayman Islands (KY) - required: false - - value: Central African Republic (CF) - type: String - displayName: Central African Republic (CF) - required: false - - value: Chad (TD) - type: String - displayName: Chad (TD) - required: false - - value: Chile (CL) - type: String - displayName: Chile (CL) - required: false - - value: China (CN) - type: String - displayName: China (CN) - required: false - - value: Colombia (CO) - type: String - displayName: Colombia (CO) - required: false - - value: Comoros (KM) - type: String - displayName: Comoros (KM) - required: false - - value: Congo (CG) - type: String - displayName: Congo (CG) - required: false - - value: Costa Rica (CR) - type: String - displayName: Costa Rica (CR) - required: false - - value: Croatia (HR) - type: String - displayName: Croatia (HR) - required: false - - value: Cuba (CU) - type: String - displayName: Cuba (CU) - required: false - - value: Cura�ao (CW) - type: String - displayName: Cura�ao (CW) - required: false - - value: Cyprus (CY) - type: String - displayName: Cyprus (CY) - required: false - - value: Czech Republic (CZ) - type: String - displayName: Czech Republic (CZ) - required: false - - value: Democratic Republic of the Congo (CD) - type: String - displayName: Democratic Republic of the Congo (CD) - required: false - - value: Denmark (DK) - type: String - displayName: Denmark (DK) - required: false - - value: Djibouti (DJ) - type: String - displayName: Djibouti (DJ) - required: false - - value: Dominica (DM) - type: String - displayName: Dominica (DM) - required: false - - value: Dominican Republic (DO) - type: String - displayName: Dominican Republic (DO) - required: false - - value: East Timor (TP) - type: String - displayName: East Timor (TP) - required: false - - value: Ecuador (EC) - type: String - displayName: Ecuador (EC) - required: false - - value: Egypt (EG) - type: String - displayName: Egypt (EG) - required: false - - value: El Salvador (SV) - type: String - displayName: El Salvador (SV) - required: false - - value: Equatorial Guinea (GQ) - type: String - displayName: Equatorial Guinea (GQ) - required: false - - value: Eritrea (ER) - type: String - displayName: Eritrea (ER) - required: false - - value: Estonia (EE) - type: String - displayName: Estonia (EE) - required: false - - value: Ethiopia (ET) - type: String - displayName: Ethiopia (ET) - required: false - - value: Falkland Islands (Malvinas) (FK) - type: String - displayName: Falkland Islands (Malvinas) (FK) - required: false - - value: Federated States of Micronesia (FM) - type: String - displayName: Federated States of Micronesia (FM) - required: false - - value: Fiji (FJ) - type: String - displayName: Fiji (FJ) - required: false - - value: Finland (FI) - type: String - displayName: Finland (FI) - required: false - - value: France (FR) - type: String - displayName: France (FR) - required: false - - value: French Polynesia (PF) - type: String - displayName: French Polynesia (PF) - required: false - - value: Gabon (GA) - type: String - displayName: Gabon (GA) - required: false - - value: Gambia (GM) - type: String - displayName: Gambia (GM) - required: false - - value: Georgia (GE) - type: String - displayName: Georgia (GE) - required: false - - value: Germany (DE) - type: String - displayName: Germany (DE) - required: false - - value: Ghana (GH) - type: String - displayName: Ghana (GH) - required: false - - value: Gibraltar (GI) - type: String - displayName: Gibraltar (GI) - required: false - - value: Greece (GR) - type: String - displayName: Greece (GR) - required: false - - value: Greenland (GL) - type: String - displayName: Greenland (GL) - required: false - - value: Grenada (GD) - type: String - displayName: Grenada (GD) - required: false - - value: Guadaloupe (GP) - type: String - displayName: Guadaloupe (GP) - required: false - - value: Guam (GU) - type: String - displayName: Guam (GU) - required: false - - value: Guatemala (GT) - type: String - displayName: Guatemala (GT) - required: false - - value: Guernsey (GG) - type: String - displayName: Guernsey (GG) - required: false - - value: Guinea (GN) - type: String - displayName: Guinea (GN) - required: false - - value: Guinea-Bissau (GW) - type: String - displayName: Guinea-Bissau (GW) - required: false - - value: Guyana (GY) - type: String - displayName: Guyana (GY) - required: false - - value: Haiti (HT) - type: String - displayName: Haiti (HT) - required: false - - value: Honduras (HN) - type: String - displayName: Honduras (HN) - required: false - - value: Hong Kong (HK) - type: String - displayName: Hong Kong (HK) - required: false - - value: Hungary (HU) - type: String - displayName: Hungary (HU) - required: false - - value: Iceland (IS) - type: String - displayName: Iceland (IS) - required: false - - value: India (IN) - type: String - displayName: India (IN) - required: false - - value: Indonesia (ID) - type: String - displayName: Indonesia (ID) - required: false - - value: Iran (IR) - type: String - displayName: Iran (IR) - required: false - - value: Iraq (IQ) - type: String - displayName: Iraq (IQ) - required: false - - value: Ireland (IE) - type: String - displayName: Ireland (IE) - required: false - - value: Israel (IL) - type: String - displayName: Israel (IL) - required: false - - value: Italy (IT) - type: String - displayName: Italy (IT) - required: false - - value: Ivory Coast (CI) - type: String - displayName: Ivory Coast (CI) - required: false - - value: Jamaica (JM) - type: String - displayName: Jamaica (JM) - required: false - - value: Japan (JP) - type: String - displayName: Japan (JP) - required: false - - value: Jersey (JE) - type: String - displayName: Jersey (JE) - required: false - - value: Jordan (JO) - type: String - displayName: Jordan (JO) - required: false - - value: Kazakhstan (KZ) - type: String - displayName: Kazakhstan (KZ) - required: false - - value: Kenya (KE) - type: String - displayName: Kenya (KE) - required: false - - value: Kuwait (KW) - type: String - displayName: Kuwait (KW) - required: false - - value: Kyrgyzstan (KG) - type: String - displayName: Kyrgyzstan (KG) - required: false - - value: Laos (LA) - type: String - displayName: Laos (LA) - required: false - - value: Latvia (LV) - type: String - displayName: Latvia (LV) - required: false - - value: Lebanon (LB) - type: String - displayName: Lebanon (LB) - required: false - - value: Lesotho (LS) - type: String - displayName: Lesotho (LS) - required: false - - value: Liberia (LR) - type: String - displayName: Liberia (LR) - required: false - - value: Libya (LY) - type: String - displayName: Libya (LY) - required: false - - value: Liechtenstein (LI) - type: String - displayName: Liechtenstein (LI) - required: false - - value: Lithuania (LT) - type: String - displayName: Lithuania (LT) - required: false - - value: Luxembourg (LU) - type: String - displayName: Luxembourg (LU) - required: false - - value: Macau (MO) - type: String - displayName: Macau (MO) - required: false - - value: Macedonia (MK) - type: String - displayName: Macedonia (MK) - required: false - - value: Madagascar (MG) - type: String - displayName: Madagascar (MG) - required: false - - value: Malawi (MW) - type: String - displayName: Malawi (MW) - required: false - - value: Malaysia (MY) - type: String - displayName: Malaysia (MY) - required: false - - value: Maldives (MV) - type: String - displayName: Maldives (MV) - required: false - - value: Mali (ML) - type: String - displayName: Mali (ML) - required: false - - value: Malta (MT) - type: String - displayName: Malta (MT) - required: false - - value: Mauritania (MR) - type: String - displayName: Mauritania (MR) - required: false - - value: Mauritius (MU) - type: String - displayName: Mauritius (MU) - required: false - - value: Mexico (MX) - type: String - displayName: Mexico (MX) - required: false - - value: Moldova (MD) - type: String - displayName: Moldova (MD) - required: false - - value: Monaco (MC) - type: String - displayName: Monaco (MC) - required: false - - value: Mongolia (MN) - type: String - displayName: Mongolia (MN) - required: false - - value: Montenegro (ME) - type: String - displayName: Montenegro (ME) - required: false - - value: Morocco (MA) - type: String - displayName: Morocco (MA) - required: false - - value: Mozambique (MZ) - type: String - displayName: Mozambique (MZ) - required: false - - value: Myanmar (MM) - type: String - displayName: Myanmar (MM) - required: false - - value: Namibia (NA) - type: String - displayName: Namibia (NA) - required: false - - value: Nepal (NP) - type: String - displayName: Nepal (NP) - required: false - - value: Netherlands (NL) - type: String - displayName: Netherlands (NL) - required: false - - value: Netherlands Antilles (AN) - type: String - displayName: Netherlands Antilles (AN) - required: false - - value: New Caledonia (NC) - type: String - displayName: New Caledonia (NC) - required: false - - value: New Zealand (NZ) - type: String - displayName: New Zealand (NZ) - required: false - - value: Nicaragua (NI) - type: String - displayName: Nicaragua (NI) - required: false - - value: Niger (NE) - type: String - displayName: Niger (NE) - required: false - - value: Nigeria (NG) - type: String - displayName: Nigeria (NG) - required: false - - value: North Korea (KP) - type: String - displayName: North Korea (KP) - required: false - - value: Norway (NO) - type: String - displayName: Norway (NO) - required: false - - value: Oman (OM) - type: String - displayName: Oman (OM) - required: false - - value: Pakistan (PK) - type: String - displayName: Pakistan (PK) - required: false - - value: Panama (PA) - type: String - displayName: Panama (PA) - required: false - - value: Papua New Guinea (PG) - type: String - displayName: Papua New Guinea (PG) - required: false - - value: Paraguay (PY) - type: String - displayName: Paraguay (PY) - required: false - - value: Peru (PE) - type: String - displayName: Peru (PE) - required: false - - value: Philippines (PH) - type: String - displayName: Philippines (PH) - required: false - - value: Poland (PL) - type: String - displayName: Poland (PL) - required: false - - value: Portugal (PT) - type: String - displayName: Portugal (PT) - required: false - - value: Puerto Rico (PR) - type: String - displayName: Puerto Rico (PR) - required: false - - value: Qatar (QA) - type: String - displayName: Qatar (QA) - required: false - - value: Romania (RO) - type: String - displayName: Romania (RO) - required: false - - value: Russia (RU) - type: String - displayName: Russia (RU) - required: false - - value: Rwanda (RW) - type: String - displayName: Rwanda (RW) - required: false - - value: Saint Kitts and Nevis (KN) - type: String - displayName: Saint Kitts and Nevis (KN) - required: false - - value: Saint Pierre and Miquelon (PM) - type: String - displayName: Saint Pierre and Miquelon (PM) - required: false - - value: Samoa (WS) - type: String - displayName: Samoa (WS) - required: false - - value: San Marino (SM) - type: String - displayName: San Marino (SM) - required: false - - value: Sao Tome and Principe (ST) - type: String - displayName: Sao Tome and Principe (ST) - required: false - - value: Saudi Arabia (SA) - type: String - displayName: Saudi Arabia (SA) - required: false - - value: Senegal (SN) - type: String - displayName: Senegal (SN) - required: false - - value: Serbia (RS) - type: String - displayName: Serbia (RS) - required: false - - value: Seychelles (SC) - type: String - displayName: Seychelles (SC) - required: false - - value: Sierra Leone (SL) - type: String - displayName: Sierra Leone (SL) - required: false - - value: Singapore (SG) - type: String - displayName: Singapore (SG) - required: false - - value: Slovakia (SK) - type: String - displayName: Slovakia (SK) - required: false - - value: Slovenia (SI) - type: String - displayName: Slovenia (SI) - required: false - - value: Solomon Islands (SB) - type: String - displayName: Solomon Islands (SB) - required: false - - value: Somalia (SO) - type: String - displayName: Somalia (SO) - required: false - - value: South Africa (ZA) - type: String - displayName: South Africa (ZA) - required: false - - value: South Korea (KR) - type: String - displayName: South Korea (KR) - required: false - - value: Spain (ES) - type: String - displayName: Spain (ES) - required: false - - value: Sri Lanka (LK) - type: String - displayName: Sri Lanka (LK) - required: false - - value: St. Lucia (LC) - type: String - displayName: St. Lucia (LC) - required: false - - value: Sudan (SD) - type: String - displayName: Sudan (SD) - required: false - - value: Surinam (SR) - type: String - displayName: Surinam (SR) - required: false - - value: Swaziland (SZ) - type: String - displayName: Swaziland (SZ) - required: false - - value: Sweden (SE) - type: String - displayName: Sweden (SE) - required: false - - value: Switzerland (CH) - type: String - displayName: Switzerland (CH) - required: false - - value: Syria (SY) - type: String - displayName: Syria (SY) - required: false - - value: Taiwan (TW) - type: String - displayName: Taiwan (TW) - required: false - - value: Tajikistan (TJ) - type: String - displayName: Tajikistan (TJ) - required: false - - value: Tanzania (TZ) - type: String - displayName: Tanzania (TZ) - required: false - - value: Thailand (TH) - type: String - displayName: Thailand (TH) - required: false - - value: Togo (TG) - type: String - displayName: Togo (TG) - required: false - - value: Tonga (TO) - type: String - displayName: Tonga (TO) - required: false - - value: Trinidad and Tobago (TT) - type: String - displayName: Trinidad and Tobago (TT) - required: false - - value: Tunisia (TN) - type: String - displayName: Tunisia (TN) - required: false - - value: Turkey (TR) - type: String - displayName: Turkey (TR) - required: false - - value: Turkmenistan (TM) - type: String - displayName: Turkmenistan (TM) - required: false - - value: Tuvalu (TV) - type: String - displayName: Tuvalu (TV) - required: false - - value: Uganda (UG) - type: String - displayName: Uganda (UG) - required: false - - value: Ukraine (UA) - type: String - displayName: Ukraine (UA) - required: false - - value: United Arab Emirates (AE) - type: String - displayName: United Arab Emirates (AE) - required: false - - value: United Kingdom (GB) - type: String - displayName: United Kingdom (GB) - required: false - - value: United States (US) - type: String - displayName: United States (US) - required: false - - value: Uruguay (UY) - type: String - displayName: Uruguay (UY) - required: false - - value: Uzbekistan (UZ) - type: String - displayName: Uzbekistan (UZ) - required: false - - value: Vanuatu (VU) - type: String - displayName: Vanuatu (VU) - required: false - - value: Venezuela (VE) - type: String - displayName: Venezuela (VE) - required: false - - value: Vietnam (VN) - type: String - displayName: Vietnam (VN) - required: false - - value: Virgin Islands U.S. (VI) - type: String - displayName: Virgin Islands U.S. (VI) - required: false - - value: Western Sahara (EH) - type: String - displayName: Western Sahara (EH) - required: false - - value: Yemen (YE) - type: String - displayName: Yemen (YE) - required: false - - value: Zaire (ZR) - type: String - displayName: Zaire (ZR) - required: false - - value: Zambia (ZM) - type: String - displayName: Zambia (ZM) - required: false - - value: Zimbabwe (ZW) - type: String - displayName: Zimbabwe (ZW) - required: false - required: false - required: false - validation: - warnings: [] - information: - - field: Addresses - details: Can contain a maximum of one address - required: true - Sage Intacct: - value: - type: Object - displayName: Supplier - description: A Supplier is a person or organisation that provides a product or service - properties: - supplierName: - type: String - displayName: Supplier Name - description: 'The name for the supplier, typically a company name' - required: true - validation: - warnings: - - field: SupplierName - details: Must be between 1 and 100 characters - information: [] - contactName: - type: String - displayName: Contact Name - description: The name of the main contact for the supplier - required: true - validation: - warnings: - - field: ContactName - details: Must be between 1 and 200 characters - information: [] - status: - type: String - displayName: Supplier Status - description: The current state of the supplier - options: - - value: Active - type: String - displayName: Active - required: false - - value: Archived - type: String - displayName: Archived - required: false - required: true - phone: - type: String - displayName: Phone - description: The preferred phone number the supplier should be contacted on - required: false - validation: - warnings: - - field: Phone - details: Must be no greater than 30 characters - information: [] - emailAddress: - type: String - displayName: Email Address - description: The preferred email address the supplier should be contacted on - required: false - validation: - warnings: - - field: EmailAddress - details: Must be no greater than 200 characters - information: [] - taxNumber: - type: String - displayName: Tax Number - description: The supplier's tax number - required: false - validation: - warnings: - - field: TaxNumber - details: Must be no greater than 20 characters - information: [] - registrationNumber: - type: String - displayName: Registration Number - description: The supplier's registration number - required: false - validation: - warnings: - - field: RegistrationNumber - details: Must be no greater than 100 characters - information: [] - defaultCurrency: - type: String - displayName: Default Currency - description: The default currency for transactions recorded against the supplier - options: - - value: AUD - type: String - displayName: Australian Dollar - required: false - - value: CAD - type: String - displayName: Canadian Dollar - required: false - - value: GBP - type: String - displayName: Pound Sterling - required: false - - value: USD - type: String - displayName: US Dollar - required: false - - value: ZAR - type: String - displayName: Rand - required: false - required: false - addresses: - type: Array - displayName: Addresses - description: A collection of addresses associated to the supplier - properties: - line1: - type: String - displayName: Line 1 - description: The first line of the address - required: false - validation: - warnings: - - field: Addresses.Line1 - details: Must be no greater than 200 characters - information: [] - line2: - type: String - displayName: Line 2 - description: The second line of the address - required: false - validation: - warnings: - - field: Addresses.Line2 - details: Must be no greater than 200 characters - information: [] - city: - type: String - displayName: City - description: 'The third line of the address, or city' - required: false - validation: - warnings: - - field: Addresses.City - details: Must be no greater than 80 characters - information: [] - region: - type: String - displayName: Region - description: 'The fourth line of the address, or region' - required: false - validation: - warnings: - - field: Addresses.Region - details: Must be no greater than 40 characters - information: [] - postalCode: - type: String - displayName: Postal/Zip Code - description: The postal (or zip) code for the address - required: false - validation: - warnings: - - field: Addresses.PostalCode - details: Must be no greater than 30 characters - information: [] - country: - type: String - displayName: Country - description: The country for the address - options: - - value: United States - type: String - displayName: United States - required: false - - value: Afghanistan - type: String - displayName: Afghanistan - required: false - - value: Aland Islands - type: String - displayName: Aland Islands - required: false - - value: Albania - type: String - displayName: Albania - required: false - - value: Algeria - type: String - displayName: Algeria - required: false - - value: American Samoa - type: String - displayName: American Samoa - required: false - - value: Andorra - type: String - displayName: Andorra - required: false - - value: Angola - type: String - displayName: Angola - required: false - - value: Anguilla - type: String - displayName: Anguilla - required: false - - value: Antarctica - type: String - displayName: Antarctica - required: false - - value: Antigua and Barbuda - type: String - displayName: Antigua and Barbuda - required: false - - value: Argentina - type: String - displayName: Argentina - required: false - - value: Armenia - type: String - displayName: Armenia - required: false - - value: Aruba - type: String - displayName: Aruba - required: false - - value: Australia - type: String - displayName: Australia - required: false - - value: Austria - type: String - displayName: Austria - required: false - - value: Azerbaijan - type: String - displayName: Azerbaijan - required: false - - value: Bahamas - type: String - displayName: Bahamas - required: false - - value: Bahrain - type: String - displayName: Bahrain - required: false - - value: Bangladesh - type: String - displayName: Bangladesh - required: false - - value: Barbados - type: String - displayName: Barbados - required: false - - value: Belarus - type: String - displayName: Belarus - required: false - - value: Belgium - type: String - displayName: Belgium - required: false - - value: Belize - type: String - displayName: Belize - required: false - - value: Benin - type: String - displayName: Benin - required: false - - value: Bermuda - type: String - displayName: Bermuda - required: false - - value: Bhutan - type: String - displayName: Bhutan - required: false - - value: Bolivia - type: String - displayName: Bolivia - required: false - - value: 'Bonaire, Sint Eustatius and Saba' - type: String - displayName: 'Bonaire, Sint Eustatius and Saba' - required: false - - value: Bosnia and Herzegovina - type: String - displayName: Bosnia and Herzegovina - required: false - - value: Botswana - type: String - displayName: Botswana - required: false - - value: Bouvet Island - type: String - displayName: Bouvet Island - required: false - - value: Brazil - type: String - displayName: Brazil - required: false - - value: British Indian Ocean Territory - type: String - displayName: British Indian Ocean Territory - required: false - - value: Brunei Darussalam - type: String - displayName: Brunei Darussalam - required: false - - value: Bulgaria - type: String - displayName: Bulgaria - required: false - - value: Burkina Faso - type: String - displayName: Burkina Faso - required: false - - value: Burundi - type: String - displayName: Burundi - required: false - - value: Cambodia - type: String - displayName: Cambodia - required: false - - value: Cameroon - type: String - displayName: Cameroon - required: false - - value: Canada - type: String - displayName: Canada - required: false - - value: Cape Verde - type: String - displayName: Cape Verde - required: false - - value: Cayman Islands - type: String - displayName: Cayman Islands - required: false - - value: Central African Republic - type: String - displayName: Central African Republic - required: false - - value: Chad - type: String - displayName: Chad - required: false - - value: Chile - type: String - displayName: Chile - required: false - - value: China - type: String - displayName: China - required: false - - value: Christmas Island - type: String - displayName: Christmas Island - required: false - - value: Cocos (Keeling) Islands - type: String - displayName: Cocos (Keeling) Islands - required: false - - value: Colombia - type: String - displayName: Colombia - required: false - - value: Comoros - type: String - displayName: Comoros - required: false - - value: Congo - type: String - displayName: Congo - required: false - - value: 'Congo, Democratic Republic' - type: String - displayName: 'Congo, Democratic Republic' - required: false - - value: Cook Islands - type: String - displayName: Cook Islands - required: false - - value: Costa Rica - type: String - displayName: Costa Rica - required: false - - value: C�te d'Ivoire - type: String - displayName: C�te d'Ivoire - required: false - - value: Croatia - type: String - displayName: Croatia - required: false - - value: Cuba - type: String - displayName: Cuba - required: false - - value: Cura�ao - type: String - displayName: Cura�ao - required: false - - value: Cyprus - type: String - displayName: Cyprus - required: false - - value: Czech Republic - type: String - displayName: Czech Republic - required: false - - value: Denmark - type: String - displayName: Denmark - required: false - - value: Djibouti - type: String - displayName: Djibouti - required: false - - value: Dominica - type: String - displayName: Dominica - required: false - - value: Dominican Republic - type: String - displayName: Dominican Republic - required: false - - value: Ecuador - type: String - displayName: Ecuador - required: false - - value: Egypt - type: String - displayName: Egypt - required: false - - value: El Salvador - type: String - displayName: El Salvador - required: false - - value: Equatorial Guinea - type: String - displayName: Equatorial Guinea - required: false - - value: Eritrea - type: String - displayName: Eritrea - required: false - - value: Estonia - type: String - displayName: Estonia - required: false - - value: Eswatini - type: String - displayName: Eswatini - required: false - - value: Ethiopia - type: String - displayName: Ethiopia - required: false - - value: Falkland Islands (Malvinas - type: String - displayName: Falkland Islands (Malvinas - required: false - - value: Faroe Islands - type: String - displayName: Faroe Islands - required: false - - value: Fiji - type: String - displayName: Fiji - required: false - - value: Finland - type: String - displayName: Finland - required: false - - value: France - type: String - displayName: France - required: false - - value: French Guiana - type: String - displayName: French Guiana - required: false - - value: French Polynesia - type: String - displayName: French Polynesia - required: false - - value: French Southern Territories - type: String - displayName: French Southern Territories - required: false - - value: Gabon - type: String - displayName: Gabon - required: false - - value: Gambia - type: String - displayName: Gambia - required: false - - value: Georgia - type: String - displayName: Georgia - required: false - - value: Germany - type: String - displayName: Germany - required: false - - value: Ghana - type: String - displayName: Ghana - required: false - - value: Gibraltar - type: String - displayName: Gibraltar - required: false - - value: Greece - type: String - displayName: Greece - required: false - - value: Greenland - type: String - displayName: Greenland - required: false - - value: Grenada - type: String - displayName: Grenada - required: false - - value: Guadeloupe - type: String - displayName: Guadeloupe - required: false - - value: Guam - type: String - displayName: Guam - required: false - - value: Guatemala - type: String - displayName: Guatemala - required: false - - value: Guernsey - type: String - displayName: Guernsey - required: false - - value: Guinea - type: String - displayName: Guinea - required: false - - value: Guinea-Bissau - type: String - displayName: Guinea-Bissau - required: false - - value: Guyana - type: String - displayName: Guyana - required: false - - value: Haiti - type: String - displayName: Haiti - required: false - - value: Heard Is. & Mcdonald Islands - type: String - displayName: Heard Is. & Mcdonald Islands - required: false - - value: Honduras - type: String - displayName: Honduras - required: false - - value: Hong Kong - type: String - displayName: Hong Kong - required: false - - value: Hungary - type: String - displayName: Hungary - required: false - - value: Iceland - type: String - displayName: Iceland - required: false - - value: India - type: String - displayName: India - required: false - - value: Indonesia - type: String - displayName: Indonesia - required: false - - value: 'Iran, Islamic Republic of' - type: String - displayName: 'Iran, Islamic Republic of' - required: false - - value: Iraq - type: String - displayName: Iraq - required: false - - value: Ireland - type: String - displayName: Ireland - required: false - - value: Isle of Man - type: String - displayName: Isle of Man - required: false - - value: Israel - type: String - displayName: Israel - required: false - - value: Italy - type: String - displayName: Italy - required: false - - value: Jamaica - type: String - displayName: Jamaica - required: false - - value: Japan - type: String - displayName: Japan - required: false - - value: Jersey - type: String - displayName: Jersey - required: false - - value: Jordan - type: String - displayName: Jordan - required: false - - value: Kazakhstan - type: String - displayName: Kazakhstan - required: false - - value: Kenya - type: String - displayName: Kenya - required: false - - value: Kiribati - type: String - displayName: Kiribati - required: false - - value: 'Korea, Republic of' - type: String - displayName: 'Korea, Republic of' - required: false - - value: 'Korea, Demo. People''s Rep' - type: String - displayName: 'Korea, Demo. People''s Rep' - required: false - - value: Kosovo - type: String - displayName: Kosovo - required: false - - value: Kuwait - type: String - displayName: Kuwait - required: false - - value: Kyrgyzstan - type: String - displayName: Kyrgyzstan - required: false - - value: Lao - type: String - displayName: Lao - required: false - - value: Latvia - type: String - displayName: Latvia - required: false - - value: Lebanon - type: String - displayName: Lebanon - required: false - - value: Lesotho - type: String - displayName: Lesotho - required: false - - value: Liberia - type: String - displayName: Liberia - required: false - - value: Libyan Arab Jamahiriya - type: String - displayName: Libyan Arab Jamahiriya - required: false - - value: Liechtenstein - type: String - displayName: Liechtenstein - required: false - - value: Lithuania - type: String - displayName: Lithuania - required: false - - value: Luxembourg - type: String - displayName: Luxembourg - required: false - - value: Macao - type: String - displayName: Macao - required: false - - value: Macedonia - type: String - displayName: Macedonia - required: false - - value: Madagascar - type: String - displayName: Madagascar - required: false - - value: Malawi - type: String - displayName: Malawi - required: false - - value: Malaysia - type: String - displayName: Malaysia - required: false - - value: Maldives - type: String - displayName: Maldives - required: false - - value: Mali - type: String - displayName: Mali - required: false - - value: Malta - type: String - displayName: Malta - required: false - - value: Marshall Islands - type: String - displayName: Marshall Islands - required: false - - value: Martinique - type: String - displayName: Martinique - required: false - - value: Mauritania - type: String - displayName: Mauritania - required: false - - value: Mauritius - type: String - displayName: Mauritius - required: false - - value: Mayotte - type: String - displayName: Mayotte - required: false - - value: Mexico - type: String - displayName: Mexico - required: false - - value: Micronesia - type: String - displayName: Micronesia - required: false - - value: 'Moldova, Republic of' - type: String - displayName: 'Moldova, Republic of' - required: false - - value: Monaco - type: String - displayName: Monaco - required: false - - value: Mongolia - type: String - displayName: Mongolia - required: false - - value: Montenegro - type: String - displayName: Montenegro - required: false - - value: Montserrat - type: String - displayName: Montserrat - required: false - - value: Morocco - type: String - displayName: Morocco - required: false - - value: Mozambique - type: String - displayName: Mozambique - required: false - - value: Myanmar - type: String - displayName: Myanmar - required: false - - value: Namibia - type: String - displayName: Namibia - required: false - - value: Nauru - type: String - displayName: Nauru - required: false - - value: Nepal - type: String - displayName: Nepal - required: false - - value: Netherlands - type: String - displayName: Netherlands - required: false - - value: Netherlands Antilles - type: String - displayName: Netherlands Antilles - required: false - - value: New Caledonia - type: String - displayName: New Caledonia - required: false - - value: New Zealand - type: String - displayName: New Zealand - required: false - - value: Nicaragua - type: String - displayName: Nicaragua - required: false - - value: Niger - type: String - displayName: Niger - required: false - - value: Nigeria - type: String - displayName: Nigeria - required: false - - value: Niue - type: String - displayName: Niue - required: false - - value: Norfolk Island - type: String - displayName: Norfolk Island - required: false - - value: Northern Mariana Islands - type: String - displayName: Northern Mariana Islands - required: false - - value: Norway - type: String - displayName: Norway - required: false - - value: Oman - type: String - displayName: Oman - required: false - - value: Pakistan - type: String - displayName: Pakistan - required: false - - value: Palau - type: String - displayName: Palau - required: false - - value: 'Palestinian Territory, Occupied' - type: String - displayName: 'Palestinian Territory, Occupied' - required: false - - value: Panama - type: String - displayName: Panama - required: false - - value: Papua New Guinea - type: String - displayName: Papua New Guinea - required: false - - value: Paraguay - type: String - displayName: Paraguay - required: false - - value: Peru - type: String - displayName: Peru - required: false - - value: Philippines - type: String - displayName: Philippines - required: false - - value: Pitcairn - type: String - displayName: Pitcairn - required: false - - value: Poland - type: String - displayName: Poland - required: false - - value: Portugal - type: String - displayName: Portugal - required: false - - value: Puerto Rico - type: String - displayName: Puerto Rico - required: false - - value: Qatar - type: String - displayName: Qatar - required: false - - value: Reunion - type: String - displayName: Reunion - required: false - - value: Romania - type: String - displayName: Romania - required: false - - value: Russian Federation - type: String - displayName: Russian Federation - required: false - - value: Rwanda - type: String - displayName: Rwanda - required: false - - value: Saint Barthelemy - type: String - displayName: Saint Barthelemy - required: false - - value: Saint Helena - type: String - displayName: Saint Helena - required: false - - value: Saint Kitts and Nevis - type: String - displayName: Saint Kitts and Nevis - required: false - - value: Saint Lucia - type: String - displayName: Saint Lucia - required: false - - value: Saint Martin - type: String - displayName: Saint Martin - required: false - - value: Saint Pierre and Miquelon - type: String - displayName: Saint Pierre and Miquelon - required: false - - value: Saint Vincent and the Grenadines - type: String - displayName: Saint Vincent and the Grenadines - required: false - - value: Samoa - type: String - displayName: Samoa - required: false - - value: San Marino - type: String - displayName: San Marino - required: false - - value: Sao Tome and Principe - type: String - displayName: Sao Tome and Principe - required: false - - value: Saudi Arabia - type: String - displayName: Saudi Arabia - required: false - - value: Senegal - type: String - displayName: Senegal - required: false - - value: Serbia - type: String - displayName: Serbia - required: false - - value: Seychelles - type: String - displayName: Seychelles - required: false - - value: Sierra Leone - type: String - displayName: Sierra Leone - required: false - - value: Singapore - type: String - displayName: Singapore - required: false - - value: Sint Maarten - type: String - displayName: Sint Maarten - required: false - - value: Slovakia - type: String - displayName: Slovakia - required: false - - value: Slovenia - type: String - displayName: Slovenia - required: false - - value: Solomon Islands - type: String - displayName: Solomon Islands - required: false - - value: Somalia - type: String - displayName: Somalia - required: false - - value: South Africa - type: String - displayName: South Africa - required: false - - value: S. Georgia & S. Sandwich Is - type: String - displayName: S. Georgia & S. Sandwich Is - required: false - - value: Spain - type: String - displayName: Spain - required: false - - value: Sri Lanka - type: String - displayName: Sri Lanka - required: false - - value: Sudan - type: String - displayName: Sudan - required: false - - value: South Sudan - type: String - displayName: South Sudan - required: false - - value: Suriname - type: String - displayName: Suriname - required: false - - value: Svalbard and Jan Mayen - type: String - displayName: Svalbard and Jan Mayen - required: false - - value: Sweden - type: String - displayName: Sweden - required: false - - value: Switzerland - type: String - displayName: Switzerland - required: false - - value: Syrian Arab Republic - type: String - displayName: Syrian Arab Republic - required: false - - value: Taiwan - type: String - displayName: Taiwan - required: false - - value: Tajikistan - type: String - displayName: Tajikistan - required: false - - value: 'Tanzania, United Republic of' - type: String - displayName: 'Tanzania, United Republic of' - required: false - - value: Thailand - type: String - displayName: Thailand - required: false - - value: Timor-Leste - type: String - displayName: Timor-Leste - required: false - - value: Togo - type: String - displayName: Togo - required: false - - value: Tokelau - type: String - displayName: Tokelau - required: false - - value: Tonga - type: String - displayName: Tonga - required: false - - value: Trinidad and Tobago - type: String - displayName: Trinidad and Tobago - required: false - - value: Tunisia - type: String - displayName: Tunisia - required: false - - value: Turkey - type: String - displayName: Turkey - required: false - - value: Turkmenistan - type: String - displayName: Turkmenistan - required: false - - value: Turks and Caicos Islands - type: String - displayName: Turks and Caicos Islands - required: false - - value: Tuvalu - type: String - displayName: Tuvalu - required: false - - value: Uganda - type: String - displayName: Uganda - required: false - - value: Ukraine - type: String - displayName: Ukraine - required: false - - value: United Arab Emirates - type: String - displayName: United Arab Emirates - required: false - - value: United Kingdom - type: String - displayName: United Kingdom - required: false - - value: US Minor Outlying Islands - type: String - displayName: US Minor Outlying Islands - required: false - - value: Uruguay - type: String - displayName: Uruguay - required: false - - value: Uzbekistan - type: String - displayName: Uzbekistan - required: false - - value: Vanuatu - type: String - displayName: Vanuatu - required: false - - value: Vatican City State - type: String - displayName: Vatican City State - required: false - - value: Venezuela - type: String - displayName: Venezuela - required: false - - value: Vietnam - type: String - displayName: Vietnam - required: false - - value: 'Virgin Islands, British' - type: String - displayName: 'Virgin Islands, British' - required: false - - value: 'Virgin Islands, U.S' - type: String - displayName: 'Virgin Islands, U.S' - required: false - - value: Wallis and Futuna - type: String - displayName: Wallis and Futuna - required: false - - value: Western Sahara - type: String - displayName: Western Sahara - required: false - - value: Yemen - type: String - displayName: Yemen - required: false - - value: Zambia - type: String - displayName: Zambia - required: false - - value: Zimbabwe - type: String - displayName: Zimbabwe - required: false - required: false - validation: - warnings: - - field: Addresses.Country - details: Required if TaxNumber is supplied - information: [] - required: false - validation: - warnings: - - field: Addresses - details: 'If supplied, must contain only 1 address' - - field: Addresses - details: 'If TaxNumber is supplied, an Address with a Country is required' - information: [] - required: true - Sandbox: - value: - type: Object - displayName: Supplier - description: A Supplier is a person or organisation that provides a product or service - properties: - supplierName: - type: String - displayName: Supplier Name - description: 'The name for the supplier, typically a company name' - required: true - contactName: - type: String - displayName: Contact Name - description: The name of the main contact for the supplier - required: true - emailAddress: - type: String - displayName: Email Address - description: The preferred email address the supplier should be contacted on - required: true - phone: - type: String - displayName: Phone - description: The preferred phone number the supplier should be contacted on - required: true - addresses: - type: Array - displayName: Addresses - description: A collection of addresses associated to the supplier - properties: - type: - type: String - displayName: Address Type - description: The type of the address - required: true - line1: - type: String - displayName: Line 1 - description: The first line of the address - required: true - line2: - type: String - displayName: Line 2 - description: The second line of the address - required: true - city: - type: String - displayName: City - description: 'The third line of the address, or city' - required: true - region: - type: String - displayName: Region - description: 'The fourth line of the address, or region' - required: true - country: - type: String - displayName: Country - description: The country for the address - required: true - postalCode: - type: String - displayName: Postal/Zip Code - description: The postal (or zip) code for the address - required: true - required: true - registrationNumber: - type: String - displayName: Registration Number - description: The supplier's registration number - required: true - taxNumber: - type: String - displayName: Tax Number - description: The supplier's tax number - required: true - status: - type: String - displayName: Supplier Status - description: The current state of the supplier - required: true - defaultCurrency: - type: String - displayName: Default Currency - description: The default currency for transactions recorded against the supplier - required: true - metadata: - type: Object - displayName: Metadata - description: Miscellaneous data about the item - properties: - isDeleted: - type: Boolean - displayName: IsDeleted - description: A boolean to indicate whether the object has been deleted - required: true - required: true - required: true - Xero: - value: - type: Object - displayName: Suppliers - description: 'An accounts payable contact that supplies good or services, also referred to as a vendor.' - properties: - supplierName: - type: String - displayName: Name - description: Name of the supplier. - required: true - phone: - type: String - displayName: Phone - description: Main contact phone number for the supplier. - required: false - validation: - warnings: - - field: phone - details: 'Country, area, and number are space separated' - information: [] - emailAddress: - type: String - displayName: Email - description: Main contact email for the supplier. - required: false - registrationNumber: - type: String - displayName: Registration Number - description: Legal company registration identifier. - required: false - validation: - warnings: - - field: registrationNumber - details: Max length of 50 characters - information: [] - taxNumber: - type: String - displayName: Tax Number - description: Legal tax registration identifier. - required: false - status: - type: String - displayName: Status - description: Status of the supplier account. - options: - - value: Active - type: String - displayName: Active - required: false - - value: InActive - type: String - displayName: Inactive - required: false - required: false - addresses: - type: Array - displayName: Addresses - description: Contact addresses for the supplier. - properties: - line1: - type: String - displayName: Address Line 1 - description: First line of the address. - required: false - validation: - warnings: - - field: addresses.line1 - details: Max length of 500 characters. - information: [] - line2: - type: String - displayName: Address Line 2 - description: Second line of the address. - required: false - validation: - warnings: - - field: addresses.line2 - details: Max length of 500 characters. - information: [] - city: - type: String - displayName: City - description: Local city for the address. - required: false - validation: - warnings: - - field: addresses.city - details: Max length of 255 characters. - information: [] - region: - type: String - displayName: Region - description: Region the address is located in. - required: false - validation: - warnings: - - field: addresses.region - details: Max length of 255 characters. - information: [] - country: - type: String - displayName: Country - description: Country for the address. - required: false - validation: - warnings: - - field: addresses.country - details: Max length of 50 characters. - information: [] - postalCode: - type: String - displayName: Postal code - description: Post or Zip code for the address. - required: false - validation: - warnings: - - field: addresses.postalCode - details: Only English alphabet characters are permitted. - - field: addresses.postalCode - details: Max length of 50 characters. - information: [] - type: - type: String - displayName: Type - description: The type of address as it related to the supplier. - options: - - value: Billing - type: String - displayName: Billing Address - required: false - - value: Delivery - type: String - displayName: Delivery Address - required: false - required: true - validation: - warnings: - - field: addresses.type - details: 'Billing = POBOX, Delivery/Unknown = DELIVERY' - information: [] - required: false - required: true - '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' - operationId: get-create-update-suppliers-model - x-speakeasy-group: loan-writeback.suppliers - description: "The *Get create/update supplier model* endpoint returns the expected data for the request payload when creating and updating a [supplier](https://docs.codat.io/lending-api#/schemas/Supplier) for a given company and integration.\r\n\r\n[Suppliers](https://docs.codat.io/lending-api#/schemas/Supplier) are people or organizations that provide something, such as a product or service.\r\n\r\n**Integration-specific behavior**\r\n\r\nSee the *response examples* for integration-specific indicative models.\r\n" - '/companies/{companyId}/connections/{connectionId}/push/suppliers': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - post: - tags: - - Loan writeback - parameters: - - $ref: '#/components/parameters/timeoutInMinutes' - - $ref: '#/components/parameters/allowSyncOnPushComplete' - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/AccountingSupplier' - examples: - Sage Intacct: - value: - id: '73593' - supplierName: test 20230420 1004 - contactName: Joe Bloggs - status: Active - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/AccountingCreateSupplierResponse' - examples: {} - '400': - $ref: '#/components/responses/BadRequest' - '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' - summary: Create supplier - description: "The *Create supplier* endpoint creates a new [supplier](https://docs.codat.io/lending-api#/schemas/Supplier) for a given company's connection.\r\n\r\n[Suppliers](https://docs.codat.io/lending-api#/schemas/Supplier) are people or organizations that provide something, such as a product or service.\r\n\r\n**Integration-specific behavior**\r\n\r\nRequired data may vary by integration. To see what data to post, first call [Get create/update supplier model](https://docs.codat.io/lending-api#/operations/get-create-update-suppliers-model).\r\n" - operationId: create-supplier - x-speakeasy-group: loan-writeback.suppliers - '/companies/{companyId}/connections/{connectionId}/options/transfers': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - get: - summary: Get create transfer model - tags: - - Loan writeback - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/PushOption' - examples: - Exact (Netherlands): - value: - type: Object - displayName: Transfer - description: Transfers to or from a bank account - properties: - description: - type: String - displayName: Transfer Description - description: The description of the transfer - required: false - contactRef: - type: Object - displayName: Contact Reference - description: The customer or supplier for this transfer if known - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the record - required: true - validation: - warnings: - - field: ContactRef.Id - details: Must match the ID of an existing customer or supplier. - information: [] - dataType: - type: String - displayName: DataType - description: The name of the data type for which the ID is valid. - options: - - value: customers - type: String - displayName: customers - required: false - - value: suppliers - type: String - displayName: suppliers - required: false - required: true - required: false - date: - type: DateTime - displayName: Transfer Date - description: The date the transfer occurred - required: true - from: - type: Object - displayName: Transfered From - description: The account and amount that money was transfered from - properties: - currency: - type: String - displayName: Currency - description: The currency of the transfer - required: false - amount: - type: Number - displayName: Amount - description: The amount transfered - required: true - validation: - warnings: - - field: From.Amount - details: Transfer Amount must be greater than zero. - information: [] - accountRef: - type: Object - displayName: Account Reference - description: Reference to the bank or nominal account - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the record - required: true - validation: - warnings: - - field: AccountRef.Id - details: Must match the ID of an existing bank or nominal account. - information: [] - dataType: - type: String - displayName: DataType - description: The name of the data type for which the ID is valid. - options: - - value: chartOfAccounts - type: String - displayName: chartOfAccounts - required: false - required: true - required: true - validation: - warnings: - - field: From.AccountRef - details: Transfers between two bank accounts must be handled with two separate transfers to/from an offset account (only balance sheet type nominal account). - information: [] - required: true - to: - type: Object - displayName: Transfered To - description: The account and amount that money was transfered to - properties: - currency: - type: String - displayName: Currency - description: The currency of the transfer - required: false - amount: - type: Number - displayName: Amount - description: The amount transfered - required: true - validation: - warnings: - - field: To.Amount - details: Transfer Amount must be greater than zero. - information: [] - accountRef: - type: Object - displayName: Account Reference - description: Reference to the bank or nominal account - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the record - required: true - validation: - warnings: - - field: AccountRef.Id - details: Must match the ID of an existing bank or nominal account. - information: [] - dataType: - type: String - displayName: DataType - description: The name of the data type for which the ID is valid. - options: - - value: chartOfAccounts - type: String - displayName: chartOfAccounts - required: false - required: true - required: true - validation: - warnings: - - field: To.AccountRef - details: Transfers between two bank accounts must be handled with two separate transfers to/from an offset account (only balance sheet type nominal account). - information: [] - required: true - trackingCategoryRefs: - type: Array - displayName: Tracking Category References - description: A collection of categories this transfer is being tracked against - properties: - id: - type: String - displayName: Identifier - description: 'The identifier for the item, unique per tracking category' - required: false - required: false - required: true - Exact (UK): - value: - type: Object - displayName: Transfer - description: Transfers to or from a bank account - properties: - description: - type: String - displayName: Transfer Description - description: The description of the transfer - required: false - contactRef: - type: Object - displayName: Contact Reference - description: The customer or supplier for this transfer if known - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the record - required: true - validation: - warnings: - - field: ContactRef.Id - details: Must match the ID of an existing customer or supplier. - information: [] - dataType: - type: String - displayName: DataType - description: The name of the data type for which the ID is valid. - options: - - value: customers - type: String - displayName: customers - required: false - - value: suppliers - type: String - displayName: suppliers - required: false - required: true - required: false - date: - type: DateTime - displayName: Transfer Date - description: The date the transfer occurred - required: true - from: - type: Object - displayName: Transfered From - description: The account and amount that money was transfered from - properties: - currency: - type: String - displayName: Currency - description: The currency of the transfer - required: false - amount: - type: Number - displayName: Amount - description: The amount transfered - required: true - validation: - warnings: - - field: From.Amount - details: Transfer Amount must be greater than zero. - information: [] - accountRef: - type: Object - displayName: Account Reference - description: Reference to the bank or nominal account - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the record - required: true - validation: - warnings: - - field: AccountRef.Id - details: Must match the ID of an existing bank or nominal account. - information: [] - dataType: - type: String - displayName: DataType - description: The name of the data type for which the ID is valid. - options: - - value: chartOfAccounts - type: String - displayName: chartOfAccounts - required: false - required: true - required: true - validation: - warnings: - - field: From.AccountRef - details: Transfers between two bank accounts must be handled with two separate transfers to/from an offset account (only balance sheet type nominal account). - information: [] - required: true - to: - type: Object - displayName: Transfered To - description: The account and amount that money was transfered to - properties: - currency: - type: String - displayName: Currency - description: The currency of the transfer - required: false - amount: - type: Number - displayName: Amount - description: The amount transfered - required: true - validation: - warnings: - - field: To.Amount - details: Transfer Amount must be greater than zero. - information: [] - accountRef: - type: Object - displayName: Account Reference - description: Reference to the bank or nominal account - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the record - required: true - validation: - warnings: - - field: AccountRef.Id - details: Must match the ID of an existing bank or nominal account. - information: [] - dataType: - type: String - displayName: DataType - description: The name of the data type for which the ID is valid. - options: - - value: chartOfAccounts - type: String - displayName: chartOfAccounts - required: false - required: true - required: true - validation: - warnings: - - field: To.AccountRef - details: Transfers between two bank accounts must be handled with two separate transfers to/from an offset account (only balance sheet type nominal account). - information: [] - required: true - trackingCategoryRefs: - type: Array - displayName: Tracking Category References - description: A collection of categories this transfer is being tracked against - properties: - id: - type: String - displayName: Identifier - description: 'The identifier for the item, unique per tracking category' - required: false - required: false - required: true - FreeAgent: - value: - type: Object - displayName: Transfer - description: Transfers to or from a bank account - properties: - date: - type: DateTime - displayName: Transfer Date - description: The date the transfer occurred - required: true - from: - type: Object - displayName: Transfered From - description: The account and amount that money was transfered from - properties: - accountRef: - type: Object - displayName: Account Reference - description: Reference to the bank or nominal account - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the record - required: true - validation: - warnings: - - field: AccountRef.Id - details: Must match the ID of an existing bank account. - information: [] - required: true - amount: - type: Number - displayName: Amount - description: The amount transfered - required: true - validation: - warnings: - - field: From.Amount - details: Must be provided and be greater than zero. - information: [] - required: true - to: - type: Object - displayName: Transfered To - description: The account and amount that money was transfered to - properties: - accountRef: - type: Object - displayName: Account Reference - description: Reference to the bank or nominal account - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the record - required: true - validation: - warnings: - - field: AccountRef.Id - details: Must match the ID of an existing bank account. - information: [] - required: true - amount: - type: Number - displayName: Amount - description: The amount transfered - required: false - validation: - warnings: - - field: To.Amount - details: 'If provided, must be greater than zero.' - - field: To.Amount - details: It will be taken into account just if the accounts are in different currencies and will override the automatic currency conversion. - information: [] - required: true - required: true - Oracle NetSuite: - value: - type: Object - displayName: Transfer - description: Transfers to or from a bank account - properties: - description: - type: String - displayName: Transfer Description - description: The description of the transfer - required: false - date: - type: DateTime - displayName: Transfer Date - description: The date the transfer occurred - required: false - validation: - warnings: [] - information: - - field: Date - details: Will default to today's date if not provided - from: - type: Object - displayName: Transfered From - description: The account and amount that money was transfered from - properties: - amount: - type: Number - displayName: Amount - description: The amount transfered - required: true - accountRef: - type: Object - displayName: Account Reference - description: Reference to the bank or nominal account - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the record - required: true - validation: - warnings: - - field: AccountRef.Id - details: Either the 'From' account or the 'To' account must be a bank account - the other must be an undeposited funds account - information: [] - required: true - required: true - to: - type: Object - displayName: Transfered To - description: The account and amount that money was transfered to - properties: - amount: - type: Number - displayName: Amount - description: The amount transfered - required: true - accountRef: - type: Object - displayName: Account Reference - description: Reference to the bank or nominal account - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the record - required: true - validation: - warnings: - - field: AccountRef.Id - details: Either the 'From' account or the 'To' account must be a bank account - the other must be an undeposited funds account - information: [] - required: true - required: true - depositedRecordRefs: - type: Array - displayName: Deposited Record References - description: A collection of selected transactions to associate with the transfer. Use this field to include transactions which are posted to the undeposited funds (or other holding) account within this transfer. - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the record - required: true - required: true - trackingCategoryRefs: - type: Array - displayName: Tracking Category References - description: A collection of categories this transfer is being tracked against - properties: - id: - type: String - displayName: Identifier - description: 'The identifier for the item, unique per tracking category' - required: true - validation: - warnings: - - field: TrackingCategoryRefs.Id - details: 'One location, one department and one classification may be provided' - information: [] - required: false - required: true - validation: - warnings: - - details: Currently only transfers between bank accounts and undeposited funds accounts are supported - information: [] - QuickBooks Desktop: - value: - type: Object - displayName: Transfer - description: Transfers to or from a bank account - properties: - from: - type: Object - displayName: Transfered From - description: The account and amount that money was transfered from - properties: - amount: - type: Number - displayName: Amount - description: The amount transfered - required: true - validation: - warnings: - - field: From.Amount - details: Value should match To.Amount - - field: From.Amount - details: Value should be greater than zero - information: [] - currency: - type: String - displayName: Currency - description: The currency of the transfer - required: false - validation: - warnings: - - field: From.Currency - details: 'This value is not used in the push, and will be ignored.' - information: [] - accountRef: - type: Object - displayName: Account Reference - description: Reference to the bank or nominal account - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the record - required: true - required: true - required: true - to: - type: Object - displayName: Transfered To - description: The account and amount that money was transfered to - properties: - amount: - type: Number - displayName: Amount - description: The amount transfered - required: true - validation: - warnings: - - field: To.Amount - details: Value should match To.Amount - - field: To.Amount - details: Value should be greater than zero - information: [] - currency: - type: String - displayName: Currency - description: The currency of the transfer - required: false - validation: - warnings: - - field: To.Currency - details: 'This value is not used in the push, and will be ignored.' - information: [] - accountRef: - type: Object - displayName: Account Reference - description: Reference to the bank or nominal account - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the record - required: true - required: true - required: true - trackingCategoryRefs: - type: Array - displayName: Tracking Category References - description: A collection of categories this transfer is being tracked against - required: false - description: - type: String - displayName: Transfer Description - description: The description of the transfer - required: false - validation: - warnings: - - field: Description - details: Max length of 4096 characters. - information: [] - date: - type: DateTime - displayName: Transfer Date - description: The date the transfer occurred - required: true - contactRef: - type: Object - displayName: Contact Reference - description: The customer or supplier for this transfer if known - required: false - validation: - warnings: - - field: ContactRef - details: 'This value is not used in the push, and will be ignored.' - information: [] - sourceModifiedDate: - type: DateTime - displayName: Source Modified Date - description: The date the record was last changed in the originating system - required: true - required: true - QuickBooks Online Sandbox: - value: - type: Object - displayName: Transfer - description: Transfers to or from a bank account - properties: - description: - type: String - displayName: Transfer Description - description: The description of the transfer - required: false - from: - type: Object - displayName: Transfered From - description: The account and amount that money was transfered from - properties: - accountRef: - type: Object - displayName: Account Reference - description: Reference to the bank or nominal account - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the record - required: true - required: true - amount: - type: Number - displayName: Amount - description: The amount transfered - required: true - required: true - to: - type: Object - displayName: Transfered To - description: The account and amount that money was transfered to - properties: - accountRef: - type: Object - displayName: Account Reference - description: Reference to the bank or nominal account - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the record - required: true - required: true - required: true - depositedRecordRefs: - type: Array - displayName: Deposited Record References - description: A collection of selected transactions to associate with the transfer. Use this field to include transactions which are posted to the undeposited funds (or other holding) account within this transfer. - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the record - required: true - dataType: - type: String - displayName: DataType - description: The name of the data type for which the ID is valid. - options: - - value: payments - type: String - displayName: Payments - required: false - - value: directIncomes - type: String - displayName: DirectIncomes - required: false - - value: journalEntries - type: String - displayName: JournalEntries - required: false - required: true - required: false - required: true - validation: - warnings: - - details: 'When pushing a transfer using two different currencies, the exchange rate will be calculated and passed to QuickBooks, QuickBooks performs rounding on this value which may affect the values in the transfer' - - details: Transfers between accounts in different currencies can only be made if multi-currency is enabled for company - - details: The currency of at least one of the accounts used must be the same as the company's currency - information: [] - QuickBooks Online: - value: - type: Object - displayName: Transfer - description: Transfers to or from a bank account - properties: - description: - type: String - displayName: Transfer Description - description: The description of the transfer - required: false - from: - type: Object - displayName: Transfered From - description: The account and amount that money was transfered from - properties: - accountRef: - type: Object - displayName: Account Reference - description: Reference to the bank or nominal account - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the record - required: true - required: true - amount: - type: Number - displayName: Amount - description: The amount transfered - required: true - required: true - to: - type: Object - displayName: Transfered To - description: The account and amount that money was transfered to - properties: - accountRef: - type: Object - displayName: Account Reference - description: Reference to the bank or nominal account - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the record - required: true - required: true - required: true - depositedRecordRefs: - type: Array - displayName: Deposited Record References - description: A collection of selected transactions to associate with the transfer. Use this field to include transactions which are posted to the undeposited funds (or other holding) account within this transfer. - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the record - required: true - dataType: - type: String - displayName: DataType - description: The name of the data type for which the ID is valid. - options: - - value: payments - type: String - displayName: Payments - required: false - - value: directIncomes - type: String - displayName: DirectIncomes - required: false - - value: journalEntries - type: String - displayName: JournalEntries - required: false - required: true - required: false - required: true - validation: - warnings: - - details: 'When pushing a transfer using two different currencies, the exchange rate will be calculated and passed to QuickBooks, QuickBooks performs rounding on this value which may affect the values in the transfer' - - details: Transfers between accounts in different currencies can only be made if multi-currency is enabled for company - - details: The currency of at least one of the accounts used must be the same as the company's currency - information: [] - Sage Business Cloud Accounting: - value: - type: Object - displayName: Transfer - description: Transfers to or from a bank account - properties: - description: - type: String - displayName: Transfer Description - description: The description of the transfer - required: false - validation: - warnings: - - field: Description - details: Must be provided if pushing a bank deposit. - information: - - field: Description - details: Must not be longer than 2000 characters. - date: - type: DateTime - displayName: Transfer Date - description: The date the transfer occurred - required: true - validation: - warnings: [] - information: - - field: Date - details: Must be provided. - from: - type: Object - displayName: Transfered From - description: The account and amount that money was transfered from - properties: - accountRef: - type: Object - displayName: Account Reference - description: Reference to the bank or nominal account - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the record - required: true - validation: - warnings: [] - information: - - field: AccountRef.Id - details: Must be different from To.AccountRef.Id. - - field: AccountRef.Id - details: Must match the ID of an existing bank account in the company's base currency. - required: true - amount: - type: Number - displayName: Amount - description: The amount transfered - required: true - validation: - warnings: [] - information: - - field: From.Amount - details: Must be equal to To.Amount. - - field: From.Amount - details: Must be greater than zero. - required: true - to: - type: Object - displayName: Transfered To - description: The account and amount that money was transfered to - properties: - accountRef: - type: Object - displayName: Account Reference - description: Reference to the bank or nominal account - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the record - required: true - validation: - warnings: [] - information: - - field: AccountRef.Id - details: Must be different from From.AccountRef.Id. - - field: AccountRef.Id - details: Must match the ID of an existing bank account in the company's base currency. - required: true - amount: - type: Number - displayName: Amount - description: The amount transfered - required: true - validation: - warnings: [] - information: - - field: To.Amount - details: Must be equal to From.Amount. - - field: To.Amount - details: Must be greater than zero. - required: true - required: true - Sandbox: - value: - type: Object - displayName: Transfer - description: Transfers to or from a bank account - properties: - description: - type: String - displayName: Transfer Description - description: The description of the transfer - required: true - contactRef: - type: Object - displayName: Contact Reference - description: The customer or supplier for this transfer if known - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the record - required: true - dataType: - type: String - displayName: DataType - description: The name of the data type for which the ID is valid. - required: true - required: true - date: - type: DateTime - displayName: Transfer Date - description: The date the transfer occurred - required: true - from: - type: Object - displayName: Transfered From - description: The account and amount that money was transfered from - properties: - accountRef: - type: Object - displayName: Account Reference - description: Reference to the bank or nominal account - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the record - required: true - dataType: - type: String - displayName: DataType - description: The name of the data type for which the ID is valid. - required: true - required: true - currency: - type: String - displayName: Currency - description: The currency of the transfer - required: true - amount: - type: Number - displayName: Amount - description: The amount transfered - required: true - status: - type: String - displayName: Status - description: The status of the transfer in the account - required: true - required: true - to: - type: Object - displayName: Transfered To - description: The account and amount that money was transfered to - properties: - accountRef: - type: Object - displayName: Account Reference - description: Reference to the bank or nominal account - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the record - required: true - dataType: - type: String - displayName: DataType - description: The name of the data type for which the ID is valid. - required: true - required: true - currency: - type: String - displayName: Currency - description: The currency of the transfer - required: true - amount: - type: Number - displayName: Amount - description: The amount transfered - required: true - status: - type: String - displayName: Status - description: The status of the transfer in the account - required: true - required: true - trackingCategoryRefs: - type: Array - displayName: Tracking Category References - description: A collection of categories this transfer is being tracked against - properties: - id: - type: String - displayName: Identifier - description: 'The identifier for the item, unique per tracking category' - required: true - name: - type: String - displayName: Tracking Category Name - description: The name of the category referenced by the identifier - required: true - required: true - depositedRecordRefs: - type: Array - displayName: Deposited Record References - description: A collection of selected transactions to associate with the transfer. Use this field to include transactions which are posted to the undeposited funds (or other holding) account within this transfer. - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the record - required: true - dataType: - type: String - displayName: DataType - description: The name of the data type for which the ID is valid. - required: true - required: true - metadata: - type: Object - displayName: Metadata - description: Miscellaneous data about the item - properties: - isDeleted: - type: Boolean - displayName: IsDeleted - description: A boolean to indicate whether the object has been deleted - required: true - required: true - required: true - Xero: - value: - type: Object - displayName: Transfer - description: Transfers to or from a bank account - properties: - date: - type: DateTime - displayName: Transfer Date - description: The date the transfer occurred - required: true - from: - type: Object - displayName: Transfered From - description: The account and amount that money was transfered from - properties: - accountRef: - type: Object - displayName: Account Reference - description: Reference to the bank or nominal account - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the record - required: true - validation: - warnings: - - field: AccountRef.Id - details: Must match the ID of an existing bank account. - information: [] - required: true - amount: - type: Number - displayName: Amount - description: The amount transfered - required: true - validation: - warnings: - - field: From.Amount - details: Must be equal to To.Amount. - - field: From.Amount - details: Must be greater than zero. - information: [] - status: - type: String - displayName: Status - description: The status of the transfer in the account - options: - - value: Unknown - type: String - displayName: Unknown - required: false - - value: Unreconciled - type: String - displayName: Unreconciled - required: false - - value: Reconciled - type: String - displayName: Reconciled - required: false - required: true - validation: - warnings: [] - information: - - field: From.Status - details: Must be provided. - required: true - to: - type: Object - displayName: Transfered To - description: The account and amount that money was transfered to - properties: - accountRef: - type: Object - displayName: Account Reference - description: Reference to the bank or nominal account - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the record - required: true - validation: - warnings: - - field: AccountRef.Id - details: Must match the ID of an existing bank account. - information: [] - required: true - amount: - type: Number - displayName: Amount - description: The amount transfered - required: true - validation: - warnings: - - field: To.Amount - details: Must be equal to From.Amount. - - field: To.Amount - details: Must be greater than zero. - information: [] - status: - type: String - displayName: Status - description: The status of the transfer in the account - options: - - value: Unknown - type: String - displayName: Unknown - required: false - - value: Unreconciled - type: String - displayName: Unreconciled - required: false - - value: Reconciled - type: String - displayName: Reconciled - required: false - required: true - validation: - warnings: [] - information: - - field: To.Status - details: Must be provided. - required: true - required: true - '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' - operationId: get-create-transfers-model - x-speakeasy-group: loan-writeback.transfers - description: | - The *Get create transfer model* endpoint returns the expected data for the request payload when creating a [transfer](https://docs.codat.io/lending-api#/schemas/Transfer) for a given company and integration. - - [Transfers](https://docs.codat.io/lending-api#/schemas/Transfer) record the movement of money between two bank accounts, or between a bank account and a nominal account. - - **Integration-specific behavior** - - See the *response examples* for integration-specific indicative models. - '/companies/{companyId}/connections/{connectionId}/push/transfers': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - post: - tags: - - Loan writeback - parameters: - - $ref: '#/components/parameters/timeoutInMinutes' - - $ref: '#/components/parameters/allowSyncOnPushComplete' - summary: Create transfer - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/AccountingTransfer' - examples: - QuickBooks Desktop: - value: - description: test transfers push 20230126 12.08 - contactRef: - id: 80000028-167239230944 - dataType: customers - date: '2023-01-26T11:51:18.104Z' - from: - accountRef: - id: 80000028-1671794219 - dataType: bankAccounts - amount: 12 - to: - accountRef: - id: 80000004-1671793811 - dataType: bankAccounts - amount: 12 - status: Unknown - trackingCategoryRefs: - - id: 80000001-1674553252 - name: Class 1 - metadata: - isDeleted: true - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/AccountingCreateTransferResponse' - examples: {} - '400': - $ref: '#/components/responses/BadRequest' - '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: |- - The *Create transfer* endpoint creates a new [transfer](https://docs.codat.io/lending-api#/schemas/Transfer) for a given company's connection. - - [Transfers](https://docs.codat.io/lending-api#/schemas/Transfer) record the movement of money between two bank accounts, or between a bank account and a nominal account. - - **Integration-specific behavior** - - Required data may vary by integration. To see what data to post, first call [Get create transfer model](https://docs.codat.io/lending-api#/operations/get-create-transfers-model). - operationId: create-transfer - x-speakeasy-group: loan-writeback.transfers - '/companies/{companyId}/connections/{connectionId}/options/bankAccounts/{accountId}/bankTransactions': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - - $ref: '#/components/parameters/accountingAccountId' - get: - tags: - - Loan writeback - summary: Get create bank account transactions model - description: |- - The *Get create bank account transactions model* endpoint returns the expected data for the request payload when creating [bank account transactions](https://docs.codat.io/lending-api#/schemas/BankTransactions) for a given company and integration. - - [Bank account transactions](https://docs.codat.io/lending-api#/schemas/BankTransactions) are records of money that has moved in and out of an SMB's bank account. - - **Integration-specific behavior** - - See the *response examples* for integration-specific indicative models. - operationId: get-create-bank-transactions-model - x-speakeasy-group: loan-writeback.bank-transactions - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/PushOption' - examples: {} - '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: "This is the generic documentation for creation and updating of data. See the equivalent endpoint for a given data type for more specific information. \n\nBefore pushing data into accounting software, it is often necessary to collect some details from the user as to how they would like the data to be inserted. This includes names and amounts on transactional entities, but also factors such as categorisation of entities, which is often handled differently between different accounting software. A good example of this is specifying where on the balance sheet/profit and loss reports the user would like a newly-created nominal account to appear.\n\nCodat tries not to limit users to pushing to a very limited number of standard categories, so we have implemented \"options\" endpoints, which allow us to expose to our clients the fields which are required to be pushed for a specific linked company, and the options which may be selected for each field." - '/companies/{companyId}/connections/{connectionId}/push/bankAccounts/{accountId}/bankTransactions': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - - $ref: '#/components/parameters/accountingAccountId' - post: - tags: - - Loan writeback - summary: Create bank account transactions - description: | - The *Create bank account transactions* endpoint creates new [bank account transactions](https://docs.codat.io/lending-api#/schemas/BankTransactions) for a given company's connection. - - [Bank account transactions](https://docs.codat.io/lending-api#/schemas/BankTransactions) are records of money that has moved in and out of an SMB's bank account. - - **Integration-specific behavior** - - Required data may vary by integration. To see what data to post, first call [Get create bank transaction model](https://docs.codat.io/lending-api#/operations/get-create-bankTransactions-model). - operationId: create-bank-transactions - x-speakeasy-group: loan-writeback.bank-transactions - parameters: - - $ref: '#/components/parameters/timeoutInMinutes' - - $ref: '#/components/parameters/allowSyncOnPushComplete' - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/AccountingCreateBankTransactions' - examples: {} - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/AccountingCreateBankTransactionsResponse' - examples: {} - '400': - $ref: '#/components/responses/BadRequest' - '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' - '/companies/{companyId}/connections/{connectionId}/options/directCosts': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - get: - summary: Get create direct cost model - tags: - - Loan writeback - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/PushOption' - examples: - Dynamics 365 Business Central: - value: - type: Object - displayName: Direct Cost - description: '' - properties: - reference: - type: String - displayName: Reference - description: User friendly reference for the direct transaction - required: false - note: - type: String - displayName: Note - description: The note attached to the direct transaction - required: false - validation: - warnings: [] - information: - - field: Note - details: is not supported and will be ignored - contactRef: - type: Object - displayName: Contact Ref - description: 'The contact associated with the direct transaction, if known' - required: false - validation: - warnings: [] - information: - - field: ContactRef - details: is not supported and will be ignored - issueDate: - type: DateTime - displayName: Issue Date - description: The date the direct transaction was issued - required: true - currency: - type: String - displayName: Currency - description: The currency of the direct transaction - required: false - validation: - warnings: [] - information: - - field: Currency - details: 'If unspecified, base currency is assumed. Must agree with the bank account in PaymentAllocations' - currencyRate: - type: Number - displayName: Currency Exchange Rate - description: The exchange rate between the currency of the direct transaction and the base currency of the company - required: false - validation: - warnings: [] - information: - - field: CurrencyRate - details: Required if the currency is not the base currency - subTotal: - type: Number - displayName: Sub Total Amount - description: The total amount of the direct transaction excluding any taxes - required: false - validation: - warnings: [] - information: - - field: SubTotal - details: is not supported and will be ignored - taxAmount: - type: Number - displayName: Tax Amount - description: The total amount of tax on the direct transaction - required: false - validation: - warnings: [] - information: - - field: TaxAmount - details: is not supported and will be ignored - totalAmount: - type: Number - displayName: Total Amount - description: 'The amount of the direct transaction, inclusive of tax' - required: false - validation: - warnings: [] - information: - - field: TotalAmount - details: is not supported and will be ignored - lineItems: - type: Array - displayName: Direct Transaction Lines - description: A collection of lines that detail items related to the direct transaction - properties: - description: - type: String - displayName: Description - description: Friendly name of the goods or services purchased - required: false - unitAmount: - type: Number - displayName: Unit Amount - description: The price of each unit of goods or services - required: false - validation: - warnings: [] - information: - - field: LineItems.UnitAmount - details: is not supported and will be ignored - quantity: - type: Number - displayName: Quantity - description: The number of units of goods or services purchased - required: false - validation: - warnings: [] - information: - - field: LineItems.Quantity - details: is not supported and will be ignored - discountAmount: - type: Number - displayName: Discount Amount - description: 'The value, in the given currency, of any discounts applied' - required: false - validation: - warnings: [] - information: - - field: LineItems.DiscountAmount - details: is not supported and will be ignored - discountPercentage: - type: Number - displayName: Discount Percentage - description: The percentage rate of any discount that has been applied - required: false - validation: - warnings: [] - information: - - field: LineItems.DiscountPercentage - details: is not supported and will be ignored - subTotal: - type: Number - displayName: Sub Total Amount - description: 'The amount of the line, inclusive of discounts but exclusive of tax' - required: false - validation: - warnings: [] - information: - - field: LineItems.SubTotal - details: Required if totalAmount is not specified - taxAmount: - type: Number - displayName: Tax Amount - description: The amount of tax for the line - required: false - validation: - warnings: [] - information: - - field: LineItems.TaxAmount - details: is not supported and will be ignored - totalAmount: - type: Number - displayName: Total Amount - description: 'The total amount of the line, inclusive of discounts and tax' - required: false - validation: - warnings: [] - information: - - field: LineItems.TotalAmount - details: Required if subTotal is not specified - accountRef: - type: Object - displayName: Nominal Account Reference - description: Reference to the nominal account the line item is linked to - properties: - id: - type: String - displayName: Account ID - description: The identifier for the account - required: true - name: - type: String - displayName: Name - description: Name of the account - required: false - validation: - warnings: [] - information: - - field: AccountRef.Name - details: is not supported and will be ignored - required: true - taxRateRef: - type: Object - displayName: Tax Rate Reference - description: Reference to the tax rate code the line item is linked to - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the tax rate - required: true - name: - type: String - displayName: Name - description: The name of the tax rate referenced by the identifier - required: false - validation: - warnings: [] - information: - - field: TaxRateRef.Name - details: is not supported and will be ignored - effectiveTaxRate: - type: Number - displayName: Effective Tax Rate - description: 'The total applied tax percentage, including compounding details' - required: false - validation: - warnings: [] - information: - - field: TaxRateRef.EffectiveTaxRate - details: is not supported and will be ignored - required: true - itemRef: - type: Object - displayName: Item Reference - description: 'Reference to the product or service type, or inventory item' - required: false - validation: - warnings: [] - information: - - field: LineItems.ItemRef - details: is not supported and will be ignored - trackingCategoryRefs: - type: Array - displayName: Tracking Category References - description: A collection of categories this item is being tracked against - required: false - validation: - warnings: [] - information: - - field: LineItems.TrackingCategoryRefs - details: is not supported and will be ignored - required: true - validation: - warnings: - - field: LineItems - details: Only one line is supported - information: [] - paymentAllocations: - type: Array - displayName: Payment Allocations - description: A collection of payments allocated to the direct transaction - properties: - payment: - type: Object - displayName: Payment - description: The payment to be allocated - properties: - accountRef: - type: Object - displayName: Account Reference - description: Reference to the account associated with the allocated payment - properties: - id: - type: String - displayName: Account ID - description: The identifier for the account - required: true - name: - type: String - displayName: Name - description: Name of the account - required: false - validation: - warnings: [] - information: - - field: AccountRef.Name - details: is not supported and will be ignored - required: true - currency: - type: String - displayName: Currency - description: The currency for the payment - required: false - validation: - warnings: [] - information: - - field: Payment.Currency - details: is not supported and will be ignored - currencyRate: - type: Number - displayName: Currency Exchange Rate - description: The exchange rate between the currency of the allocated payment and the currency of the base company - required: false - validation: - warnings: [] - information: - - field: Payment.CurrencyRate - details: is not supported and will be ignored - paidOnDate: - type: DateTime - displayName: Paid On Date - description: The date the payment was paid - required: false - validation: - warnings: [] - information: - - field: Payment.PaidOnDate - details: is not supported and will be ignored - totalAmount: - type: Number - displayName: Total Amount - description: The total amount that has been paid - required: false - validation: - warnings: [] - information: - - field: Payment.TotalAmount - details: is not supported and will be ignored - required: true - allocation: - type: Object - displayName: Allocation - description: The allocation information - properties: - currency: - type: String - displayName: Currency - description: The currency of the transaction - required: false - validation: - warnings: [] - information: - - field: Allocation.Currency - details: is not supported and will be ignored - currencyRate: - type: Number - displayName: Currency Exchange Rate - description: The exchange rate between the currency of the allocated payment and the currency of the transaction - required: false - validation: - warnings: [] - information: - - field: Allocation.CurrencyRate - details: is not supported and will be ignored - allocatedOnDate: - type: DateTime - displayName: Allocated On Date - description: The date the payment was allocated - required: false - validation: - warnings: [] - information: - - field: Allocation.AllocatedOnDate - details: is not supported and will be ignored - totalAmount: - type: Number - displayName: Total Amount - description: The total amount that has been allocated - required: false - validation: - warnings: [] - information: - - field: Allocation.TotalAmount - details: is not supported and will be ignored - required: true - required: true - validation: - warnings: - - field: PaymentAllocations - details: Only one line is supported - information: [] - required: true - FreeAgent: - value: - type: Object - displayName: Direct Cost - description: '' - properties: - id: - type: String - displayName: Unique Direct Transaction ID - description: 'The identifier for the direct transaction, unique to the company' - required: false - validation: - warnings: - - field: Id - details: 'will be ignored on push. ' - information: [] - reference: - type: String - displayName: Reference - description: User friendly reference for the direct transaction - required: false - validation: - warnings: - - field: Reference - details: 'is not supported by FreeAgent and will not be mapped. ' - information: [] - note: - type: String - displayName: Note - description: The note attached to the direct transaction - required: true - validation: - warnings: [] - information: - - field: Note - details: must be provided - contactRef: - type: Object - displayName: Contact Ref - description: 'The contact associated with the direct transaction, if known' - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the record - required: false - validation: - warnings: - - field: ContactRef.Id - details: 'is not supported by FreeAgent and will be ignored on push. ' - information: [] - dataType: - type: String - displayName: DataType - description: The name of the data type for which the ID is valid. - required: false - validation: - warnings: - - field: ContactRef.DataType - details: 'is not supported by FreeAgent and will be ignored on push. ' - information: [] - required: false - issueDate: - type: DateTime - displayName: Issue Date - description: The date the direct transaction was issued - required: true - validation: - warnings: [] - information: - - field: IssueDate - details: must be provided - currency: - type: String - displayName: Currency - description: The currency of the direct transaction - required: false - currencyRate: - type: Number - displayName: Currency Exchange Rate - description: The exchange rate between the currency of the direct transaction and the base currency of the company - required: false - validation: - warnings: - - field: CurrencyRate - details: 'will be ignored on push. ' - information: [] - lineItems: - type: Array - displayName: Direct Transaction Lines - description: A collection of lines that detail items related to the direct transaction - properties: - description: - type: String - displayName: Description - description: Friendly name of the goods or services purchased - required: false - validation: - warnings: - - field: LineItems.Description - details: 'If a Note is provided, this field will be ignored on push. ' - information: [] - unitAmount: - type: Number - displayName: Unit Amount - description: The price of each unit of goods or services - required: false - validation: - warnings: - - field: LineItems.UnitAmount - details: 'will be ignored on push. ' - information: [] - quantity: - type: Number - displayName: Quantity - description: The number of units of goods or services purchased - required: false - validation: - warnings: - - field: LineItems.Quantity - details: 'will be ignored on push. ' - information: [] - subTotal: - type: Number - displayName: Sub Total Amount - description: 'The amount of the line, inclusive of discounts but exclusive of tax' - required: false - taxAmount: - type: Number - displayName: Tax Amount - description: The amount of tax for the line - required: false - totalAmount: - type: Number - displayName: Total Amount - description: 'The total amount of the line, inclusive of discounts and tax' - required: false - accountRef: - type: Object - displayName: Nominal Account Reference - description: Reference to the nominal account the line item is linked to - properties: - id: - type: String - displayName: Account ID - description: The identifier for the account - required: true - validation: - warnings: [] - information: - - field: AccountRef.Id - details: must be provided - name: - type: String - displayName: Name - description: Name of the account - required: false - validation: - warnings: - - field: AccountRef.Name - details: 'will be ignored on push. ' - information: [] - required: true - taxRateRef: - type: Object - displayName: Tax Rate Reference - description: Reference to the tax rate code the line item is linked to - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the tax rate - required: false - validation: - warnings: - - field: TaxRateRef.Id - details: 'will be ignored on push. ' - information: [] - name: - type: String - displayName: Name - description: The name of the tax rate referenced by the identifier - required: false - validation: - warnings: - - field: TaxRateRef.Name - details: 'will be ignored on push. ' - information: [] - effectiveTaxRate: - type: Number - displayName: Effective Tax Rate - description: 'The total applied tax percentage, including compounding details' - required: false - validation: - warnings: - - field: TaxRateRef.EffectiveTaxRate - details: 'will be ignored on push. ' - information: [] - required: false - required: true - validation: - warnings: - - field: LineItems - details: Exactly one line item must be specified - information: [] - paymentAllocations: - type: Array - displayName: Payment Allocations - description: A collection of payments allocated to the direct transaction - properties: - payment: - type: Object - displayName: Payment - description: The payment to be allocated - properties: - id: - type: String - displayName: Identifier - description: The identifier for the allocated payment - required: false - note: - type: String - displayName: Note - description: Any additional text based information associated with the allocated payment - required: false - reference: - type: String - displayName: Reference - description: Reference associated with the allocated payment - required: false - accountRef: - type: Object - displayName: Account Reference - description: Reference to the account associated with the allocated payment - properties: - id: - type: String - displayName: Account ID - description: The identifier for the account - required: true - validation: - warnings: [] - information: - - field: AccountRef.Id - details: must be provided - name: - type: String - displayName: Name - description: Name of the account - required: false - validation: - warnings: - - field: AccountRef.Name - details: 'will be ignored on push. ' - information: [] - required: true - currency: - type: String - displayName: Currency - description: The currency for the payment - required: false - currencyRate: - type: Number - displayName: Currency Exchange Rate - description: The exchange rate between the currency of the allocated payment and the currency of the base company - required: false - paidOnDate: - type: DateTime - displayName: Paid On Date - description: The date the payment was paid - required: false - totalAmount: - type: Number - displayName: Total Amount - description: The total amount that has been paid - required: false - required: true - allocation: - type: Object - displayName: Allocation - description: The allocation information - properties: - currency: - type: String - displayName: Currency - description: The currency of the transaction - required: false - currencyRate: - type: Number - displayName: Currency Exchange Rate - description: The exchange rate between the currency of the allocated payment and the currency of the transaction - required: false - allocatedOnDate: - type: DateTime - displayName: Allocated On Date - description: The date the payment was allocated - required: false - totalAmount: - type: Number - displayName: Total Amount - description: The total amount that has been allocated - required: false - required: false - required: true - subTotal: - type: Number - displayName: Sub Total Amount - description: The total amount of the direct transaction excluding any taxes - required: false - taxAmount: - type: Number - displayName: Tax Amount - description: The total amount of tax on the direct transaction - required: false - totalAmount: - type: Number - displayName: Total Amount - description: 'The amount of the direct transaction, inclusive of tax' - required: false - modifiedDate: - type: DateTime - displayName: Modified Date - description: The date the record was last updated in the system cache - required: false - validation: - warnings: - - field: ModifiedDate - details: 'will be ignored on push. ' - information: [] - sourceModifiedDate: - type: DateTime - displayName: Source Modified Date - description: The date the record was last changed in the originating system - required: false - validation: - warnings: - - field: SourceModifiedDate - details: 'will be ignored on push. ' - information: [] - required: true - Oracle NetSuite: - value: - type: Object - displayName: Direct Cost - description: Direct Cost - properties: - note: - type: String - displayName: Note - description: The note attached to the direct transaction - required: false - contactRef: - type: Object - displayName: Contact Ref - description: 'The contact associated with the direct transaction, if known' - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the record - required: true - required: true - issueDate: - type: DateTime - displayName: Issue Date - description: The date the direct transaction was issued - required: true - currency: - type: String - displayName: Currency - description: The currency of the direct transaction - required: true - currencyRate: - type: Number - displayName: Currency Exchange Rate - description: The exchange rate between the currency of the direct transaction and the base currency of the company - required: true - lineItems: - type: Array - displayName: Direct Transaction Lines - description: A collection of lines that detail items related to the direct transaction - properties: - description: - type: String - displayName: Description - description: Friendly name of the goods or services purchased - required: false - unitAmount: - type: Number - displayName: Unit Amount - description: The price of each unit of goods or services - required: false - validation: - warnings: [] - information: - - field: LineItems.UnitAmount - details: Should have the same sign across all line items - quantity: - type: Number - displayName: Quantity - description: The number of units of goods or services purchased - required: false - accountRef: - type: Object - displayName: Nominal Account Reference - description: Reference to the nominal account the line item is linked to - properties: - id: - type: String - displayName: Account ID - description: The identifier for the account - required: true - required: false - validation: - warnings: - - field: LineItems.AccountRef - details: Should not be a bank account - - field: LineItems.AccountRef - details: Should only be specified when pushing an expense - information: [] - itemRef: - type: Object - displayName: Item Reference - description: 'Reference to the product or service type, or inventory item' - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the item - required: true - required: false - validation: - warnings: - - field: LineItems.ItemRef - details: Should only be specified when pushing an item (not an expense) - information: [] - taxRateRef: - type: Object - displayName: Tax Rate Reference - description: Reference to the tax rate code the line item is linked to - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the tax rate - required: true - required: false - validation: - warnings: - - field: LineItems.TaxRateRef - details: Should be specified when item type is not 'Discount' - information: [] - trackingCategoryRefs: - type: Array - displayName: Tracking Category References - description: A collection of categories this item is being tracked against - properties: - id: - type: String - displayName: Identifier - description: 'The identifier for the item, unique per tracking category' - required: true - required: false - required: true - paymentAllocations: - type: Array - displayName: Payment Allocations - description: A collection of payments allocated to the direct transaction - properties: - payment: - type: Object - displayName: Payment - description: The payment to be allocated - properties: - accountRef: - type: Object - displayName: Account Reference - description: Reference to the account associated with the allocated payment - properties: - id: - type: String - displayName: Account ID - description: The identifier for the account - required: true - validation: - warnings: - - field: AccountRef.Id - details: Must match the ID of an existing account of type 'Bank' OR type 'Credit Card' - information: [] - required: true - required: true - allocation: - type: Object - displayName: Allocation - description: The allocation information - required: true - required: true - validation: - warnings: [] - information: - - field: PaymentAllocations - details: Must contain a single allocation - required: true - QuickBooks Desktop: - value: - type: Object - displayName: Direct Cost - description: Direct Cost - properties: - reference: - type: String - displayName: Reference - description: User friendly reference for the direct transaction - required: false - validation: - warnings: - - field: Reference - details: Represents the check number - information: [] - note: - type: String - displayName: Note - description: The note attached to the direct transaction - required: false - validation: - warnings: - - field: Note - details: Max length of 4096 characters. - information: [] - contactRef: - type: Object - displayName: Contact Ref - description: 'The contact associated with the direct transaction, if known' - required: false - currency: - type: String - displayName: Currency - description: The currency of the direct transaction - required: false - validation: - warnings: - - field: Currency - details: Must be a three letter ISO code - - field: Currency - details: Can only be set if the QuickBooks Desktop company has Multicurrency enabled. - information: - - field: Currency - details: 'If not set, will default to the default currency' - currencyRate: - type: Number - displayName: Currency Exchange Rate - description: The exchange rate between the currency of the direct transaction and the base currency of the company - required: false - validation: - warnings: [] - information: - - field: CurrencyRate - details: 'If not set, will default to the rate set within QuickBooks Desktop, if no rate is set in QuickBooks Desktop, it will default to 1.' - - field: CurrencyRate - details: Can only be set if the QuickBooks Desktop company has Multicurrency enabled. - issueDate: - type: DateTime - displayName: Issue Date - description: The date the direct transaction was issued - required: true - lineItems: - type: Array - displayName: Direct Transaction Lines - description: A collection of lines that detail items related to the direct transaction - properties: - description: - type: String - displayName: Description - description: Friendly name of the goods or services purchased - required: true - unitAmount: - type: Number - displayName: Unit Amount - description: The price of each unit of goods or services - required: true - quantity: - type: Number - displayName: Quantity - description: The number of units of goods or services purchased - required: true - subTotal: - type: Number - displayName: Sub Total Amount - description: 'The amount of the line, inclusive of discounts but exclusive of tax' - required: false - taxAmount: - type: Number - displayName: Tax Amount - description: The amount of tax for the line - required: true - totalAmount: - type: Number - displayName: Total Amount - description: 'The total amount of the line, inclusive of discounts and tax' - required: false - accountRef: - type: Object - displayName: Nominal Account Reference - description: Reference to the nominal account the line item is linked to - required: true - taxRateRef: - type: Object - displayName: Tax Rate Reference - description: Reference to the tax rate code the line item is linked to - required: true - itemRef: - type: Object - displayName: Item Reference - description: 'Reference to the product or service type, or inventory item' - required: true - trackingCategoryRefs: - type: Array - displayName: Tracking Category References - description: A collection of categories this item is being tracked against - required: true - required: true - paymentAllocations: - type: Array - displayName: Payment Allocations - description: A collection of payments allocated to the direct transaction - properties: - payment: - type: Object - displayName: Payment - description: The payment to be allocated - properties: - id: - type: String - displayName: Identifier - description: The identifier for the allocated payment - required: true - accountRef: - type: Object - displayName: Account Reference - description: Reference to the account associated with the allocated payment - required: true - validation: - warnings: [] - information: - - field: Payment.AccountRef - details: The account in which to make the deposit - reference: - type: String - displayName: Reference - description: Reference associated with the allocated payment - required: false - validation: - warnings: [] - information: - - field: Payment.Reference - details: Use to reference the check number of this deposit. - note: - type: String - displayName: Note - description: Any additional text based information associated with the allocated payment - required: true - currency: - type: String - displayName: Currency - description: The currency for the payment - required: true - currencyRate: - type: Number - displayName: Currency Exchange Rate - description: The exchange rate between the currency of the allocated payment and the currency of the base company - required: true - paidOnDate: - type: DateTime - displayName: Paid On Date - description: The date the payment was paid - required: true - totalAmount: - type: Number - displayName: Total Amount - description: The total amount that has been paid - required: true - required: true - required: true - validation: - warnings: - - field: PaymentAllocations - details: Must contain a single payment allocation - information: [] - taxAmount: - type: Number - displayName: Tax Amount - description: The total amount of tax on the direct transaction - required: true - subTotal: - type: Number - displayName: Sub Total Amount - description: The total amount of the direct transaction excluding any taxes - required: false - totalAmount: - type: Number - displayName: Total Amount - description: 'The amount of the direct transaction, inclusive of tax' - required: false - sourceModifiedDate: - type: DateTime - displayName: Source Modified Date - description: The date the record was last changed in the originating system - required: false - modifiedDate: - type: DateTime - displayName: Modified Date - description: The date the record was last updated in the system cache - required: false - required: true - QuickBooks Online Sandbox: - value: - type: Object - displayName: Direct Cost - description: Direct Cost - properties: - contactRef: - type: Object - displayName: Contact Ref - description: 'The contact associated with the direct transaction, if known' - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the record - required: true - dataType: - type: String - displayName: DataType - description: The name of the data type for which the ID is valid. - options: - - value: Suppliers - type: String - displayName: Suppliers - required: false - required: true - required: true - issueDate: - type: DateTime - displayName: Issue Date - description: The date the direct transaction was issued - required: false - validation: - warnings: [] - information: - - field: IssueDate - details: 'If the issue date is not supplied, the current date on the server is used.' - currencyRate: - type: Number - displayName: Currency Exchange Rate - description: The exchange rate between the currency of the direct transaction and the base currency of the company - required: false - reference: - type: String - displayName: Reference - description: User friendly reference for the direct transaction - required: false - validation: - warnings: - - field: Reference - details: Must be less than 22 characters. - information: [] - currency: - type: String - displayName: Currency - description: The currency of the direct transaction - required: false - validation: - warnings: [] - information: - - field: Currency - details: Required if multi-currency is enabled for the company. - note: - type: String - displayName: Note - description: The note attached to the direct transaction - required: false - paymentAllocations: - type: Array - displayName: Payment Allocations - description: A collection of payments allocated to the direct transaction - properties: - allocation: - type: Object - displayName: Allocation - description: The allocation information - properties: - totalAmount: - type: Number - displayName: Total Amount - description: The total amount that has been allocated - required: false - validation: - warnings: - - field: Allocation.TotalAmount - details: Must match the sum of the line items - information: [] - currency: - type: String - displayName: Currency - description: The currency of the transaction - required: false - validation: - warnings: - - field: Allocation.Currency - details: Must match the Currency of the company - information: [] - required: false - payment: - type: Object - displayName: Payment - description: The payment to be allocated - properties: - totalAmount: - type: Number - displayName: Total Amount - description: The total amount that has been paid - required: false - validation: - warnings: - - field: Payment.TotalAmount - details: Must match the sum of the line items - information: [] - currency: - type: String - displayName: Currency - description: The currency for the payment - required: false - validation: - warnings: - - field: Payment.Currency - details: Must match the Currency of the company - information: [] - accountRef: - type: Object - displayName: Account Reference - description: Reference to the account associated with the allocated payment - properties: - id: - type: String - displayName: Account ID - description: The identifier for the account - required: true - validation: - warnings: [] - information: - - field: AccountRef.Id - details: 'Must be Bank, Cash or Asset account' - required: true - required: true - required: true - validation: - warnings: - - field: PaymentAllocations - details: Must have exactly one payment allocation. - information: [] - lineItems: - type: Array - displayName: Direct Transaction Lines - description: A collection of lines that detail items related to the direct transaction - properties: - trackingCategoryRefs: - type: Array - displayName: Tracking Category References - description: A collection of categories this item is being tracked against - properties: - id: - type: String - displayName: Identifier - description: 'The identifier for the item, unique per tracking category' - required: true - validation: - warnings: - - field: TrackingCategoryRefs.TrackingCategoryRefs - details: Must be a valid Id - information: [] - required: false - validation: - warnings: - - field: LineItems.TrackingCategoryRefs - details: Only one tracking category of type CLASS can be provided per item. - - field: LineItems.TrackingCategoryRefs - details: Only one tracking category of type DEPARTMENT can be provided per invoice. - - field: LineItems.TrackingCategoryRefs - details: All DEPARTMENT tracking categories must be the same - information: [] - accountRef: - type: Object - displayName: Nominal Account Reference - description: Reference to the nominal account the line item is linked to - properties: - id: - type: String - displayName: Account ID - description: The identifier for the account - required: true - validation: - warnings: - - field: AccountRef.Id - details: Must be an Expense or Income account - information: [] - required: false - validation: - warnings: - - field: LineItems.AccountRef - details: Must be set if ItemRef is not - information: [] - itemRef: - type: Object - displayName: Item Reference - description: 'Reference to the product or service type, or inventory item' - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the item - required: true - required: false - validation: - warnings: - - field: LineItems.ItemRef - details: Must be set if AccountRef is not - information: [] - description: - type: String - displayName: Description - description: Friendly name of the goods or services purchased - required: false - validation: - warnings: - - field: LineItems.Description - details: Must be less than 4000 characters. - information: [] - quantity: - type: Number - displayName: Quantity - description: The number of units of goods or services purchased - required: true - unitAmount: - type: Number - displayName: Unit Amount - description: The price of each unit of goods or services - required: true - taxAmount: - type: Number - displayName: Tax Amount - description: The amount of tax for the line - required: false - validation: - warnings: - - field: LineItems.TaxAmount - details: Must be specified on all line items or none. If specified will override QBO tax calculations. - information: [] - taxRateRef: - type: Object - displayName: Tax Rate Reference - description: Reference to the tax rate code the line item is linked to - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the tax rate - required: true - validation: - warnings: [] - information: - - field: TaxRateRef.Id - details: 'If an organisation has Automated Sales Tax enabled for US locales, then only ''TAX'' (Automated Sales Tax) or ''NON'' (no tax) can be used. If Automated Sales Tax is disabled for US locales then ''TAX'' (Automated Sales Tax) will not be accepted and a different tax rate must be used.' - required: false - validation: - warnings: - - field: LineItems.TaxRateRef - details: Required for all companies except QuickBooks Online France companies. - information: [] - required: true - required: true - QuickBooks Online: - value: - type: Object - displayName: Direct Cost - description: Direct Cost - properties: - contactRef: - type: Object - displayName: Contact Ref - description: 'The contact associated with the direct transaction, if known' - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the record - required: true - dataType: - type: String - displayName: DataType - description: The name of the data type for which the ID is valid. - options: - - value: Suppliers - type: String - displayName: Suppliers - required: false - required: true - required: true - issueDate: - type: DateTime - displayName: Issue Date - description: The date the direct transaction was issued - required: false - validation: - warnings: [] - information: - - field: IssueDate - details: 'If the issue date is not supplied, the current date on the server is used.' - currencyRate: - type: Number - displayName: Currency Exchange Rate - description: The exchange rate between the currency of the direct transaction and the base currency of the company - required: false - reference: - type: String - displayName: Reference - description: User friendly reference for the direct transaction - required: false - validation: - warnings: - - field: Reference - details: Must be less than 22 characters. - information: [] - currency: - type: String - displayName: Currency - description: The currency of the direct transaction - required: false - validation: - warnings: [] - information: - - field: Currency - details: Required if multi-currency is enabled for the company. - note: - type: String - displayName: Note - description: The note attached to the direct transaction - required: false - paymentAllocations: - type: Array - displayName: Payment Allocations - description: A collection of payments allocated to the direct transaction - properties: - allocation: - type: Object - displayName: Allocation - description: The allocation information - properties: - totalAmount: - type: Number - displayName: Total Amount - description: The total amount that has been allocated - required: false - validation: - warnings: - - field: Allocation.TotalAmount - details: Must match the sum of the line items - information: [] - currency: - type: String - displayName: Currency - description: The currency of the transaction - required: false - validation: - warnings: - - field: Allocation.Currency - details: Must match the Currency of the company - information: [] - required: false - payment: - type: Object - displayName: Payment - description: The payment to be allocated - properties: - totalAmount: - type: Number - displayName: Total Amount - description: The total amount that has been paid - required: false - validation: - warnings: - - field: Payment.TotalAmount - details: Must match the sum of the line items - information: [] - currency: - type: String - displayName: Currency - description: The currency for the payment - required: false - validation: - warnings: - - field: Payment.Currency - details: Must match the Currency of the company - information: [] - accountRef: - type: Object - displayName: Account Reference - description: Reference to the account associated with the allocated payment - properties: - id: - type: String - displayName: Account ID - description: The identifier for the account - required: true - validation: - warnings: [] - information: - - field: AccountRef.Id - details: 'Must be Bank, Cash or Asset account' - required: true - required: true - required: true - validation: - warnings: - - field: PaymentAllocations - details: Must have exactly one payment allocation. - information: [] - lineItems: - type: Array - displayName: Direct Transaction Lines - description: A collection of lines that detail items related to the direct transaction - properties: - trackingCategoryRefs: - type: Array - displayName: Tracking Category References - description: A collection of categories this item is being tracked against - properties: - id: - type: String - displayName: Identifier - description: 'The identifier for the item, unique per tracking category' - required: true - validation: - warnings: - - field: TrackingCategoryRefs.TrackingCategoryRefs - details: Must be a valid Id - information: [] - required: false - validation: - warnings: - - field: LineItems.TrackingCategoryRefs - details: Only one tracking category of type CLASS can be provided per item. - - field: LineItems.TrackingCategoryRefs - details: Only one tracking category of type DEPARTMENT can be provided per invoice. - - field: LineItems.TrackingCategoryRefs - details: All DEPARTMENT tracking categories must be the same - information: [] - accountRef: - type: Object - displayName: Nominal Account Reference - description: Reference to the nominal account the line item is linked to - properties: - id: - type: String - displayName: Account ID - description: The identifier for the account - required: true - validation: - warnings: - - field: AccountRef.Id - details: Must be an Expense or Income account - information: [] - required: false - validation: - warnings: - - field: LineItems.AccountRef - details: Must be set if ItemRef is not - information: [] - itemRef: - type: Object - displayName: Item Reference - description: 'Reference to the product or service type, or inventory item' - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the item - required: true - required: false - validation: - warnings: - - field: LineItems.ItemRef - details: Must be set if AccountRef is not - information: [] - description: - type: String - displayName: Description - description: Friendly name of the goods or services purchased - required: false - validation: - warnings: - - field: LineItems.Description - details: Must be less than 4000 characters. - information: [] - quantity: - type: Number - displayName: Quantity - description: The number of units of goods or services purchased - required: true - unitAmount: - type: Number - displayName: Unit Amount - description: The price of each unit of goods or services - required: true - taxAmount: - type: Number - displayName: Tax Amount - description: The amount of tax for the line - required: false - validation: - warnings: - - field: LineItems.TaxAmount - details: Must be specified on all line items or none. If specified will override QBO tax calculations. - information: [] - taxRateRef: - type: Object - displayName: Tax Rate Reference - description: Reference to the tax rate code the line item is linked to - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the tax rate - required: true - validation: - warnings: [] - information: - - field: TaxRateRef.Id - details: 'If an organisation has Automated Sales Tax enabled for US locales, then only ''TAX'' (Automated Sales Tax) or ''NON'' (no tax) can be used. If Automated Sales Tax is disabled for US locales then ''TAX'' (Automated Sales Tax) will not be accepted and a different tax rate must be used.' - required: false - validation: - warnings: - - field: LineItems.TaxRateRef - details: Required for all companies except QuickBooks Online France companies. - information: [] - required: true - required: true - Sage 50 (UK): - value: - type: Object - displayName: Direct Cost - description: Direct Cost - properties: - reference: - type: String - displayName: Reference - description: The user reference for this direct cost. - required: false - issueDate: - type: Number - displayName: Issue Date - description: The date this payment was issued. - required: true - currency: - type: String - displayName: Currency - description: The currency in which the direct cost is issued in. - required: true - validation: - warnings: - - field: currency - details: This must match the target account's default currency. - information: [] - currencyRate: - type: Number - displayName: Currency Rate - description: The currency rate associated with this transaction. - required: true - accountRef: - type: Object - displayName: Bank Account - description: The bank account to pay this direct cost from. - properties: - id: - type: String - displayName: Account Id - description: Nominal code of the bank account. - required: true - validation: - warnings: - - field: accountRef.id - details: Must match the ID of an existing bank account and have a max length of 8 characters. - information: [] - required: true - subTotal: - type: Number - displayName: Sub Total - description: The net amount being paid in this direct cost. - required: true - validation: - warnings: [] - information: - - details: This must equal the sum of the line net amounts - taxAmount: - type: Number - displayName: Tax Amount - description: The tax amount being paid in this direct cost. - required: true - validation: - warnings: [] - information: - - details: This must equal the sum of the line tax amounts - totalAmount: - type: Number - displayName: Total Amount - description: The total amount being paid in this direct cost. - required: true - validation: - warnings: [] - information: - - details: This must equal the sum of the line amounts - lineItems: - type: Array - displayName: Line Items - description: Line items of the direct cost. - properties: - description: - type: String - displayName: description - description: Description of the direct cost line item. - required: false - accountRef: - type: Object - displayName: Nominal Code - description: Target bank account for the direct cost line item. - properties: - id: - type: String - displayName: Id - description: The ID of the Account the line is linked to. - required: true - required: true - unitAmount: - type: Number - displayName: Unit Amount - description: Unit amount for the direct cost line item. - required: true - validation: - warnings: - - field: LineItems.unitAmount - details: Cannot equal 0 and will be set to Net amount if not provided accordingly. - information: [] - quantity: - type: Number - displayName: Quantity - description: Quantity for the direct cost line item. - required: true - validation: - warnings: - - field: LineItems.quantity - details: Must be 1 or -1. - information: [] - subTotal: - type: Number - displayName: Net Amount - description: 'Amount for the direct cost line item. Debit entries are considered positive, and credit entries are considered negative.' - required: true - validation: - warnings: - - field: LineItems.subTotal - details: Cannot have both subtotal and tax amount as 0 for line item. - information: [] - taxAmount: - type: Number - displayName: Tax Amount - description: Tax amount for the direct cost line item. - required: false - validation: - warnings: - - field: LineItems.taxAmount - details: Cannot have both tax amount and subtotal as 0 for line item. - information: [] - totalAmount: - type: Number - displayName: Total Amount - description: Total amount for the direct cost line item. - required: false - validation: - warnings: [] - information: - - field: LineItems.totalAmount - details: Will be auto populated using tax amount and net amount. - taxCode: - type: Number - displayName: Tax Code Id - description: The tax code ID associated with this transaction. - required: true - trackingCategoryRefs: - type: Object - displayName: Tracking Category References - description: Tracking categories associated with this transaction. - properties: - id: - type: String - displayName: Id - description: The ID of the tracking category associated with the transaction - required: true - validation: - warnings: - - field: id - details: 'A department is required. If a project reference is provided, the cost code for that project must also be provided.' - information: [] - required: true - required: true - required: true - validation: - warnings: [] - information: - - details: 'Pushing to Sage 50 2015 (v21) or below is not supported. To enable push, please upgrade to at least Sage 50 2016 (v22) and re-sync the company.' - Sage Intacct: - value: - type: Object - displayName: Direct Cost - description: Direct Cost - properties: - note: - type: String - displayName: Note - description: The note attached to the direct transaction - required: true - validation: - warnings: [] - information: - - field: Note - details: Must be used to provide payee's name and contain no more than 80 characters. - lineItems: - type: Array - displayName: Direct Transaction Lines - description: A collection of lines that detail items related to the direct transaction - properties: - unitAmount: - type: Number - displayName: Unit Amount - description: The price of each unit of goods or services - required: true - taxRateRef: - type: Object - displayName: Tax Rate Reference - description: Reference to the tax rate code the line item is linked to - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the tax rate - required: true - validation: - warnings: [] - information: - - field: TaxRateRef.Id - details: Must be an existing tax rate in Sage Intacct. - required: true - accountRef: - type: Object - displayName: Nominal Account Reference - description: Reference to the nominal account the line item is linked to - properties: - id: - type: String - displayName: Account ID - description: The identifier for the account - required: true - required: true - description: - type: String - displayName: Description - description: Friendly name of the goods or services purchased - required: false - validation: - warnings: [] - information: - - field: LineItems.Description - details: Must not contain no more than 1000 characters. - taxAmount: - type: Number - displayName: Tax Amount - description: The amount of tax for the line - required: false - totalAmount: - type: Number - displayName: Total Amount - description: 'The total amount of the line, inclusive of discounts and tax' - required: false - subTotal: - type: Number - displayName: Sub Total Amount - description: 'The amount of the line, inclusive of discounts but exclusive of tax' - required: false - trackingCategoryRefs: - type: Array - displayName: Tracking Category References - description: A collection of categories this item is being tracked against - properties: - id: - type: String - displayName: Identifier - description: 'The identifier for the item, unique per tracking category' - required: false - name: - type: String - displayName: Tracking Category Name - description: The name of the category referenced by the identifier - required: false - required: false - required: true - validation: - warnings: [] - information: - - field: LineItems - details: Must contain at least one line item. - paymentAllocations: - type: Array - displayName: Payment Allocations - description: A collection of payments allocated to the direct transaction - properties: - payment: - type: Object - displayName: Payment - description: The payment to be allocated - properties: - paidOnDate: - type: DateTime - displayName: Paid On Date - description: The date the payment was paid - required: true - accountRef: - type: Object - displayName: Account Reference - description: Reference to the account associated with the allocated payment - properties: - id: - type: String - displayName: Account ID - description: The identifier for the account - required: true - required: true - totalAmount: - type: Number - displayName: Total Amount - description: The total amount that has been paid - required: false - validation: - warnings: [] - information: - - field: Payment.TotalAmount - details: 'If provided, must match the sum of the line items.' - required: true - allocation: - type: Object - displayName: Allocation - description: The allocation information - properties: - totalAmount: - type: Number - displayName: Total Amount - description: The total amount that has been allocated - required: false - validation: - warnings: [] - information: - - field: Allocation.TotalAmount - details: 'If provided, must match the sum of the line items.' - required: true - required: true - validation: - warnings: [] - information: - - field: PaymentAllocations - details: Must contain a single allocation. - currency: - type: String - displayName: Currency - description: The currency of the direct transaction - required: false - validation: - warnings: - - field: Currency - details: When supplying a currency ensure that it exists in your Sage Intacct entity otherwise the request will fail. - information: [] - reference: - type: String - displayName: Reference - description: User friendly reference for the direct transaction - required: false - validation: - warnings: [] - information: - - field: Reference - details: Must not contain no more than 45 characters. - currencyRate: - type: Number - displayName: Currency Exchange Rate - description: The exchange rate between the currency of the direct transaction and the base currency of the company - required: false - totalAmount: - type: Number - displayName: Total Amount - description: 'The amount of the direct transaction, inclusive of tax' - required: false - validation: - warnings: [] - information: - - field: TotalAmount - details: 'If provided, must match the sum of the line items.' - required: true - Sandbox: - value: - type: Object - displayName: Direct Cost - description: Direct Cost - properties: - reference: - type: String - displayName: Reference - description: User friendly reference for the direct transaction - required: true - note: - type: String - displayName: Note - description: The note attached to the direct transaction - required: true - contactRef: - type: Object - displayName: Contact Ref - description: 'The contact associated with the direct transaction, if known' - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the record - required: true - dataType: - type: String - displayName: DataType - description: The name of the data type for which the ID is valid. - required: true - required: true - issueDate: - type: DateTime - displayName: Issue Date - description: The date the direct transaction was issued - required: true - currency: - type: String - displayName: Currency - description: The currency of the direct transaction - required: true - currencyRate: - type: Number - displayName: Currency Exchange Rate - description: The exchange rate between the currency of the direct transaction and the base currency of the company - required: true - lineItems: - type: Array - displayName: Direct Transaction Lines - description: A collection of lines that detail items related to the direct transaction - properties: - description: - type: String - displayName: Description - description: Friendly name of the goods or services purchased - required: true - accountRef: - type: Object - displayName: Nominal Account Reference - description: Reference to the nominal account the line item is linked to - properties: - id: - type: String - displayName: Account ID - description: The identifier for the account - required: true - name: - type: String - displayName: Name - description: Name of the account - required: true - required: true - taxRateRef: - type: Object - displayName: Tax Rate Reference - description: Reference to the tax rate code the line item is linked to - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the tax rate - required: true - name: - type: String - displayName: Name - description: The name of the tax rate referenced by the identifier - required: true - effectiveTaxRate: - type: Number - displayName: Effective Tax Rate - description: 'The total applied tax percentage, including compounding details' - required: true - required: true - unitAmount: - type: Number - displayName: Unit Amount - description: The price of each unit of goods or services - required: true - quantity: - type: Number - displayName: Quantity - description: The number of units of goods or services purchased - required: true - discountAmount: - type: Number - displayName: Discount Amount - description: 'The value, in the given currency, of any discounts applied' - required: true - discountPercentage: - type: Number - displayName: Discount Percentage - description: The percentage rate of any discount that has been applied - required: true - subTotal: - type: Number - displayName: Sub Total Amount - description: 'The amount of the line, inclusive of discounts but exclusive of tax' - required: true - taxAmount: - type: Number - displayName: Tax Amount - description: The amount of tax for the line - required: true - totalAmount: - type: Number - displayName: Total Amount - description: 'The total amount of the line, inclusive of discounts and tax' - required: true - itemRef: - type: Object - displayName: Item Reference - description: 'Reference to the product or service type, or inventory item' - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the item - required: true - name: - type: String - displayName: Name - description: The name of the item referenced by the identifier - required: true - required: true - trackingCategoryRefs: - type: Array - displayName: Tracking Category References - description: A collection of categories this item is being tracked against - properties: - id: - type: String - displayName: Identifier - description: 'The identifier for the item, unique per tracking category' - required: true - name: - type: String - displayName: Tracking Category Name - description: The name of the category referenced by the identifier - required: true - required: true - tracking: - type: Object - displayName: Tracking - description: Information this item is being tracked against - properties: - recordRefs: - type: Array - displayName: Record References - description: A collection of records this item is being tracked against - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the record - required: true - dataType: - type: String - displayName: DataType - description: The name of the data type for which the ID is valid. - required: true - required: true - invoiceTo: - type: Object - displayName: Invoice To - description: The entity the record should be invoiced to - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the record - required: true - dataType: - type: String - displayName: DataType - description: The name of the data type for which the ID is valid. - required: true - required: true - required: true - required: true - paymentAllocations: - type: Array - displayName: Payment Allocations - description: A collection of payments allocated to the direct transaction - properties: - payment: - type: Object - displayName: Payment - description: The payment to be allocated - properties: - id: - type: String - displayName: Identifier - description: The identifier for the allocated payment - required: true - note: - type: String - displayName: Note - description: Any additional text based information associated with the allocated payment - required: true - reference: - type: String - displayName: Reference - description: Reference associated with the allocated payment - required: true - accountRef: - type: Object - displayName: Account Reference - description: Reference to the account associated with the allocated payment - properties: - id: - type: String - displayName: Account ID - description: The identifier for the account - required: true - name: - type: String - displayName: Name - description: Name of the account - required: true - required: true - currency: - type: String - displayName: Currency - description: The currency for the payment - required: true - currencyRate: - type: Number - displayName: Currency Exchange Rate - description: The exchange rate between the currency of the allocated payment and the currency of the base company - required: true - paidOnDate: - type: DateTime - displayName: Paid On Date - description: The date the payment was paid - required: true - totalAmount: - type: Number - displayName: Total Amount - description: The total amount that has been paid - required: true - required: true - allocation: - type: Object - displayName: Allocation - description: The allocation information - properties: - currency: - type: String - displayName: Currency - description: The currency of the transaction - required: true - currencyRate: - type: Number - displayName: Currency Exchange Rate - description: The exchange rate between the currency of the allocated payment and the currency of the transaction - required: true - allocatedOnDate: - type: DateTime - displayName: Allocated On Date - description: The date the payment was allocated - required: true - totalAmount: - type: Number - displayName: Total Amount - description: The total amount that has been allocated - required: true - required: true - required: true - subTotal: - type: Number - displayName: Sub Total Amount - description: The total amount of the direct transaction excluding any taxes - required: true - taxAmount: - type: Number - displayName: Tax Amount - description: The total amount of tax on the direct transaction - required: true - totalAmount: - type: Number - displayName: Total Amount - description: 'The amount of the direct transaction, inclusive of tax' - required: true - metadata: - type: Object - displayName: Metadata - description: Miscellaneous data about the item - properties: - isDeleted: - type: Boolean - displayName: IsDeleted - description: A boolean to indicate whether the object has been deleted - required: true - required: true - required: true - Xero: - value: - type: Object - displayName: Direct Cost - description: Direct Cost - properties: - issueDate: - type: DateTime - displayName: Issue Date - description: The date the direct transaction was issued - required: true - validation: - warnings: [] - information: - - field: IssueDate - details: Must be provided. - reference: - type: String - displayName: Reference - description: User friendly reference for the direct transaction - required: false - validation: - warnings: [] - information: - - field: Reference - details: Must not exceed 255 characters. - currency: - type: String - displayName: Currency - description: The currency of the direct transaction - required: true - validation: - warnings: [] - information: - - field: Currency - details: Must be provided. - currencyRate: - type: Number - displayName: Currency Exchange Rate - description: The exchange rate between the currency of the direct transaction and the base currency of the company - required: false - taxAmount: - type: Number - displayName: Tax Amount - description: The total amount of tax on the direct transaction - required: true - validation: - warnings: [] - information: - - field: TaxAmount - details: Must be provided. - totalAmount: - type: Number - displayName: Total Amount - description: 'The amount of the direct transaction, inclusive of tax' - required: true - validation: - warnings: [] - information: - - field: TotalAmount - details: Must be provided. - contactRef: - type: Object - displayName: Contact Ref - description: 'The contact associated with the direct transaction, if known' - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the record - required: true - validation: - warnings: - - field: ContactRef.Id - details: Must be a valid GUID. - - field: ContactRef.Id - details: Must match the ID of an existing contact. - information: - - field: ContactRef.Id - details: Must be provided. - required: true - validation: - warnings: [] - information: - - field: ContactRef - details: Must be provided. - paymentAllocations: - type: Array - displayName: Payment Allocations - description: A collection of payments allocated to the direct transaction - properties: - payment: - type: Object - displayName: Payment - description: The payment to be allocated - properties: - accountRef: - type: Object - displayName: Account Reference - description: Reference to the account associated with the allocated payment - properties: - id: - type: String - displayName: Account ID - description: The identifier for the account - required: true - validation: - warnings: - - field: AccountRef.Id - details: Must be a bank account. - - field: AccountRef.Id - details: Must match the ID of an existing bank account. - information: - - field: AccountRef.Id - details: Must be provided. - required: true - validation: - warnings: [] - information: - - field: Payment.AccountRef - details: Must be provided. - required: true - validation: - warnings: [] - information: - - field: PaymentAllocations.Payment - details: Must be provided. - allocation: - type: Object - displayName: Allocation - description: The allocation information - properties: - totalAmount: - type: Number - displayName: Total Amount - description: The total amount that has been allocated - required: true - validation: - warnings: - - field: Allocation.TotalAmount - details: Must be equal to the sum of line items. - information: - - field: Allocation.TotalAmount - details: Must be provided. - required: true - validation: - warnings: [] - information: - - field: PaymentAllocations.Allocation - details: Must be provided. - required: true - validation: - warnings: [] - information: - - field: PaymentAllocations - details: Must be provided. - lineItems: - type: Array - displayName: Direct Transaction Lines - description: A collection of lines that detail items related to the direct transaction - properties: - description: - type: String - displayName: Description - description: Friendly name of the goods or services purchased - required: true - validation: - warnings: [] - information: - - field: LineItems.Description - details: Must not be longer than 4000 characters long. - quantity: - type: Number - displayName: Quantity - description: The number of units of goods or services purchased - required: true - validation: - warnings: [] - information: - - field: LineItems.Quantity - details: Must be provided. - unitAmount: - type: Number - displayName: Unit Amount - description: The price of each unit of goods or services - required: true - validation: - warnings: [] - information: - - field: LineItems.UnitAmount - details: Must be provided. - totalAmount: - type: Number - displayName: Total Amount - description: 'The total amount of the line, inclusive of discounts and tax' - required: false - validation: - warnings: - - field: LineItems.TotalAmount - details: 'When negative, the push item will be converted to a DirectIncome and will be pushed accordingly.' - information: - - field: LineItems.TotalAmount - details: 'When one line is negative, all lines must be negative.' - taxAmount: - type: Number - displayName: Tax Amount - description: The amount of tax for the line - required: true - validation: - warnings: [] - information: - - field: LineItems.TaxAmount - details: Must be provided. - accountRef: - type: Object - displayName: Nominal Account Reference - description: Reference to the nominal account the line item is linked to - properties: - id: - type: String - displayName: Account ID - description: The identifier for the account - required: true - validation: - warnings: - - field: AccountRef.Id - details: Must be a valid GUID. - - field: AccountRef.Id - details: Must match the ID of an existing account. - information: - - field: AccountRef.Id - details: Must be provided. - required: true - validation: - warnings: [] - information: - - field: LineItems.AccountRef - details: Must be provided. - trackingCategoryRefs: - type: Array - displayName: Tracking Category References - description: A collection of categories this item is being tracked against - properties: - id: - type: String - displayName: Identifier - description: 'The identifier for the item, unique per tracking category' - required: true - validation: - warnings: [] - information: - - field: TrackingCategoryRefs.Id - details: Must be provided. - required: false - validation: - warnings: [] - information: - - field: LineItems.TrackingCategoryRefs - details: Tracking categories must not have the same parent tracking category. - - field: LineItems.TrackingCategoryRefs - details: Maximum of 2 Tracking Categories. - taxRateRef: - type: Object - displayName: Tax Rate Reference - description: Reference to the tax rate code the line item is linked to - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the tax rate - required: false - validation: - warnings: - - field: TaxRateRef.Id - details: Must match the ID of an existing tax rate. - information: - - field: TaxRateRef.Id - details: 'If not provided, will be set to the default tax rate for the line''s account.' - required: false - itemRef: - type: Object - displayName: Item Reference - description: 'Reference to the product or service type, or inventory item' - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the item - required: false - validation: - warnings: - - field: ItemRef.Id - details: Must be a valid GUID. - - field: ItemRef.Id - details: Must match the ID of an existing item. - information: [] - required: false - required: true - validation: - warnings: [] - information: - - field: LineItems - details: Must be provided. - required: true - validation: - warnings: - - details: 'When negative, the push item will be converted to a DirectIncome and will be pushed accordingly.' - information: [] - Zoho Books: - value: - type: Object - displayName: Direct Cost - description: Direct Cost - properties: - reference: - type: String - displayName: Reference - description: User friendly reference for the direct transaction - required: false - note: - type: String - displayName: Note - description: The note attached to the direct transaction - required: false - issueDate: - type: DateTime - displayName: Issue Date - description: The date the direct transaction was issued - required: true - currencyRate: - type: Number - displayName: Currency Exchange Rate - description: The exchange rate between the currency of the direct transaction and the base currency of the company - required: false - contactRef: - type: Object - displayName: Contact Ref - description: 'The contact associated with the direct transaction, if known' - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the record - required: false - required: false - validation: - warnings: [] - information: - - field: ContactRef - details: Required when pushing a negative direct cost & should reference either a Customer or Supplier when provided - lineItems: - type: Array - displayName: Direct Transaction Lines - description: A collection of lines that detail items related to the direct transaction - properties: - totalAmount: - type: Number - displayName: Total Amount - description: 'The total amount of the line, inclusive of discounts and tax' - required: false - validation: - warnings: [] - information: - - field: LineItems.TotalAmount - details: Should be provided when SubTotal is not provided - subTotal: - type: Number - displayName: Sub Total Amount - description: 'The amount of the line, inclusive of discounts but exclusive of tax' - required: false - validation: - warnings: [] - information: - - field: LineItems.SubTotal - details: Should be provided when TotalAmount is not provided - accountRef: - type: Object - displayName: Nominal Account Reference - description: Reference to the nominal account the line item is linked to - properties: - id: - type: String - displayName: Account ID - description: The identifier for the account - required: true - required: true - taxRateRef: - type: Object - displayName: Tax Rate Reference - description: Reference to the tax rate code the line item is linked to - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the tax rate - required: false - required: false - trackingCategoryRefs: - type: Array - displayName: Tracking Category References - description: A collection of categories this item is being tracked against - required: false - required: true - currency: - type: String - displayName: Currency - description: The currency of the direct transaction - required: false - validation: - warnings: [] - information: - - field: Currency - details: Is required when pushing a negative direct cost - paymentAllocations: - type: Array - displayName: Payment Allocations - description: A collection of payments allocated to the direct transaction - properties: - payment: - type: Object - displayName: Payment - description: The payment to be allocated - properties: - currency: - type: String - displayName: Currency - description: The currency for the payment - required: false - validation: - warnings: [] - information: - - field: Payment.Currency - details: Is required when pushing a negative direct cost - accountRef: - type: Object - displayName: Account Reference - description: Reference to the account associated with the allocated payment - properties: - id: - type: String - displayName: Account ID - description: The identifier for the account - required: true - required: true - required: true - allocation: - type: Object - displayName: Allocation - description: The allocation information - properties: - currency: - type: String - displayName: Currency - description: The currency of the transaction - required: false - validation: - warnings: [] - information: - - field: Allocation.Currency - details: Is required when pushing a negative direct cost - required: true - required: true - required: true - '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' - operationId: get-create-directCosts-model - x-speakeasy-group: loan-writeback.direct-costs - description: | - The *Get create direct cost model* endpoint returns the expected data for the request payload when creating a [direct cost](https://docs.codat.io/lending-api#/schemas/DirectCost) for a given company and integration. - - [Direct costs](https://docs.codat.io/lending-api#/schemas/DirectCost) are business expenses that don't impact Accounts Payable. - - **Integration-specific behavior** - - See the *response examples* for integration-specific indicative models. - '/companies/{companyId}/connections/{connectionId}/push/directCosts': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - post: - tags: - - Loan writeback - summary: Create direct cost - parameters: - - $ref: '#/components/parameters/timeoutInMinutes' - - $ref: '#/components/parameters/allowSyncOnPushComplete' - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/AccountingDirectCost/definitions/directCostPrototype' - examples: - QuickBooks Desktop: - value: - reference: test ref - note: directCost 21/03 09.20 - contactRef: - id: 80000001-1671793885 - dataType: suppliers - issueDate: '2023-03-21T10:19:52.223Z' - currency: USD - lineItems: - - description: test description line 1 - unitAmount: 7 - quantity: 1 - discountAmount: 0 - discountPercentage: 0 - subTotal: 99 - taxAmount: 360 - totalAmount: 70 - accountRef: - id: 8000000D-1671793811 - name: Purchases - Hardware for Resale - itemRef: - id: 80000001-1674566705 - name: item test - trackingCategoryRefs: - - id: 80000001-1674553252 - name: Class 1 - paymentAllocations: - - payment: - note: payment allocations note - reference: payment allocations reference - accountRef: - id: 80000028-1671794219 - name: Bank Account 1 - paidOnDate: '2023-01-28T10:19:52.223Z' - totalAmount: 54 - allocation: - currencyRate: 0 - allocatedOnDate: '2023-01-29T10:19:52.223Z' - totalAmount: 88 - subTotal: 362 - taxAmount: 4 - totalAmount: 366 - Xero: - value: - reference: Scenario One neg DC - contactRef: - id: 699f0091-b127-4796-9f15-41a2f42abeb2 - dataType: suppliers - issueDate: '2023-02-25' - currency: GBP - lineItems: - - description: negative direct cost - unitAmount: 35 - quantity: -1 - subTotal: -35 - taxAmount: -7 - totalAmount: -42 - itemRef: - id: 965cfc0e-4d80-4059-9641-4a392f9ad549 - taxRateRef: - id: INPUT2 - paymentAllocations: - - payment: - accountRef: - id: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - currency: GBP - allocation: - totalAmount: -42 - subTotal: -35 - taxAmount: -7 - totalAmount: -42 - FreeAgent: - value: - issueDate: '2023-02-12' - currency: GBP - lineItems: - - unitAmount: 15 - quantity: 1 - subTotal: 15 - accountRef: - id: '288' - paymentAllocations: - - payment: - accountRef: - id: 750-1 - allocation: {} - subTotal: 15 - taxAmount: 0 - totalAmount: 15 - Sage Intacct: - value: - reference: test ref - note: Test 1 - issueDate: '2023-03-31T00:00:00' - currency: USD - currencyRate: 0.5 - lineItems: - - accountRef: - id: '195' - unitAmount: 9.99 - quantity: 1 - subTotal: 9.99 - taxAmount: 2 - totalAmount: 11.99 - paymentAllocations: - - payment: - id: '4355' - note: test note - reference: test reference - accountRef: - id: '348' - name: CMRR Renewal - currency: USD - paidOnDate: '2023-03-31T00:00:00' - totalAmount: 11.99 - allocation: - currency: USD - allocatedOnDate: '2023-03-31T00:00:00' - totalAmount: 11.99 - subTotal: 9.99 - taxAmount: 2 - totalAmount: 11.99 - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/AccountingCreateDirectCostResponse' - examples: - FreeAgent: - value: - changes: [] - data: - id: '372060709' - issueDate: '2023-02-12T00:00:00' - currency: GBP - currencyRate: 1 - lineItems: - - accountRef: - id: '288' - unitAmount: 15 - quantity: 1 - subTotal: 15 - taxAmount: 3 - totalAmount: 18 - trackingCategoryRefs: [] - paymentAllocations: - - payment: - id: '372060709' - accountRef: - id: 750-1 - currency: GBP - paidOnDate: '2023-02-12T00:00:00' - totalAmount: 18 - allocation: - currency: GBP - allocatedOnDate: '2023-02-12T00:00:00' - totalAmount: 18 - subTotal: 15 - taxAmount: 3 - totalAmount: 18 - sourceModifiedDate: '2023-02-12T15:15:53Z' - dataType: directCosts - companyId: a23f79d6-7cc9-486c-b388-8ab88faea947 - pushOperationKey: 0659a24d-2b66-4979-971e-4b98c3ed7f61 - dataConnectionKey: 35e38cd5-66ea-41b8-b555-9efd5b792b68 - requestedOnUtc: '2023-02-12T15:15:51.1723204Z' - completedOnUtc: '2023-02-12T15:15:54.7161036Z' - status: Success - statusCode: 200 - Sage Intacct: - value: - changes: - - type: Created - recordRef: - dataType: directCosts - data: - reference: test ref - note: Test 1 - issueDate: '2023-03-31T00:00:00' - currency: USD - currencyRate: 0.5 - lineItems: - - accountRef: - id: '195' - taxRateRef: - id: '95' - unitAmount: 9.99 - quantity: 1 - subTotal: 9.99 - taxAmount: 2 - totalAmount: 11.99 - trackingCategoryRefs: [] - paymentAllocations: - - payment: - id: '4355' - note: test note - reference: test reference - accountRef: - id: '348' - name: CMRR Renewal - currency: USD - paidOnDate: '2023-03-31T00:00:00' - totalAmount: 11.99 - allocation: - currency: USD - allocatedOnDate: '2023-03-31T00:00:00' - totalAmount: 11.99 - subTotal: 9.99 - taxAmount: 2 - totalAmount: 11.99 - dataType: directCosts - companyId: d7f743a9-1804-4116-8c8a-e606f7e2f66c - pushOperationKey: 0d74c1ad-00ad-4731-9e6e-98a86056959a - dataConnectionKey: fa139396-523a-4a58-bf2b-8da82c8a673f - requestedOnUtc: '2023-03-31T12:49:51.6503324Z' - status: Pending - statusCode: 202 - Xero: - value: - changes: [] - data: - reference: Scenario One neg DC - contactRef: - id: 699f0091-b127-4796-9f15-41a2f42abeb2 - dataType: suppliers - issueDate: '2023-02-25T00:00:00' - currency: GBP - lineItems: - - description: negative direct cost - taxRateRef: - id: INPUT2 - unitAmount: 35 - quantity: -1 - subTotal: -35 - taxAmount: -7 - totalAmount: -42 - itemRef: - id: 965cfc0e-4d80-4059-9641-4a392f9ad549 - trackingCategoryRefs: [] - paymentAllocations: - - payment: - accountRef: - id: bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4 - currency: GBP - paidOnDate: '0001-01-01T00:00:00' - totalAmount: 0 - allocation: - totalAmount: -42 - subTotal: 0 - taxAmount: -7 - totalAmount: -42 - dataType: directCosts - companyId: b5efee61-3fab-4a5d-9247-de03d6eda6db - pushOperationKey: 33347930-fcc5-4f95-aa13-4a0f7291b559 - dataConnectionKey: 1e355304-4476-422e-95cb-fa2a6d47fab4 - requestedOnUtc: '2023-02-24T13:43:26.5109173Z' - status: Pending - validation: - errors: [] - warnings: [] - statusCode: 202 - '400': - $ref: '#/components/responses/BadRequest' - '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: |- - The *Create direct cost* endpoint creates a new [direct cost](https://docs.codat.io/lending-api#/schemas/DirectCost) for a given company's connection. - - [Direct costs](https://docs.codat.io/lending-api#/schemas/DirectCost) are business expenses that don't impact Accounts Payable. - - **Integration-specific behavior** - - Required data may vary by integration. To see what data to post, first call [Get create direct cost model](https://docs.codat.io/lending-api#/operations/get-create-directCosts-model). - operationId: create-direct-cost - x-speakeasy-group: loan-writeback.direct-costs - '/companies/{companyId}/connections/{connectionId}/options/payments': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - get: - summary: Get create payment model - tags: - - Loan writeback - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/PushOption' - examples: - FreeAgent: - value: - type: Object - displayName: Payment - description: A payment represents an allocation of transactions across an 'accounts receivable' account (customer) - properties: - accountRef: - type: Object - displayName: Nominal Account Reference - description: Reference to the nominal account the payment is linked to - properties: - id: - type: String - displayName: Account ID - description: The identifier for the account - required: true - validation: - warnings: - - field: AccountRef.Id - details: Must match the ID of an existing account. - information: [] - required: true - date: - type: DateTime - displayName: Date - description: The date the payment was recorded - required: true - totalAmount: - type: Number - displayName: Total Amount - description: 'The total amount of the payment, inclusive of discounts and tax' - required: true - validation: - warnings: - - field: TotalAmount - details: Must match the sum of the line amounts. - information: [] - currency: - type: String - displayName: Currency - description: Currency of the payment - required: true - currencyRate: - type: Number - displayName: Currency Exchange Rate - description: The exchange rate between the currency of the payment and the base currency of the company - required: true - lines: - type: Array - displayName: Lines - description: A collection of payment lines - properties: - amount: - type: Number - displayName: Amount - description: The total amount for the line in the payment currency - required: true - validation: - warnings: [] - information: - - field: Lines.Amount - details: Must match the sum of the link amounts. - links: - type: Array - displayName: Links - description: A collection of linked transactions - properties: - id: - type: String - displayName: Identifier - description: The identifier for the referenced transaction - required: true - amount: - type: Number - displayName: Amount - description: 'The amount by which the balance of the linked entity is altered, in the currency of the linked entity' - required: true - type: - type: String - displayName: Link Type - description: The type of transaction that is being linked - options: - - value: Invoice - type: String - displayName: Invoice - required: false - - value: CreditNote - type: String - displayName: CreditNote - required: false - - value: Other - type: String - displayName: Other - required: false - required: true - required: true - required: true - validation: - warnings: - - field: Lines - details: Only one line may be specified - information: [] - required: true - FreshBooks: - value: - type: Object - displayName: Payment - description: A payment represents an allocation of transactions across an 'accounts receivable' account (customer) - properties: - date: - type: DateTime - displayName: Date - description: The date the payment was recorded - required: true - lines: - type: Array - displayName: Lines - description: A collection of payment lines - properties: - links: - type: Array - displayName: Links - description: A collection of linked transactions - properties: - id: - type: String - displayName: Identifier - description: The identifier for the referenced transaction - required: true - amount: - type: Number - displayName: Amount - description: 'The amount by which the balance of the linked entity is altered, in the currency of the linked entity' - required: true - type: - type: String - displayName: Link Type - description: The type of transaction that is being linked - required: true - required: true - validation: - warnings: - - field: Lines.Links - details: Payment Amount must not exceed Invoice Amount Due or available Customer Credit - - field: Lines.Links - details: Must be a Payment with one Invoice of PaymentOnAccount Link or two links of types Invoice and PaymentOnAccount - information: [] - required: true - validation: - warnings: - - field: Lines - details: Only one line is supported - information: [] - currency: - type: String - displayName: Currency - description: Currency of the payment - options: - - value: AED - type: Array - displayName: AED - required: false - - value: AFN - type: Array - displayName: AFN - required: false - - value: ALL - type: Array - displayName: ALL - required: false - - value: AMD - type: Array - displayName: AMD - required: false - - value: ANG - type: Array - displayName: ANG - required: false - - value: AOA - type: Array - displayName: AOA - required: false - - value: ARS - type: Array - displayName: ARS - required: false - - value: AUD - type: Array - displayName: AUD - required: false - - value: AWG - type: Array - displayName: AWG - required: false - - value: AZN - type: Array - displayName: AZN - required: false - - value: BAM - type: Array - displayName: BAM - required: false - - value: BBD - type: Array - displayName: BBD - required: false - - value: BDT - type: Array - displayName: BDT - required: false - - value: BGN - type: Array - displayName: BGN - required: false - - value: BHD - type: Array - displayName: BHD - required: false - - value: BIF - type: Array - displayName: BIF - required: false - - value: BMD - type: Array - displayName: BMD - required: false - - value: BND - type: Array - displayName: BND - required: false - - value: BOB - type: Array - displayName: BOB - required: false - - value: BRL - type: Array - displayName: BRL - required: false - - value: BSD - type: Array - displayName: BSD - required: false - - value: BTN - type: Array - displayName: BTN - required: false - - value: BWP - type: Array - displayName: BWP - required: false - - value: BYR - type: Array - displayName: BYR - required: false - - value: BZD - type: Array - displayName: BZD - required: false - - value: CAD - type: Array - displayName: CAD - required: false - - value: CDF - type: Array - displayName: CDF - required: false - - value: CHF - type: Array - displayName: CHF - required: false - - value: CLP - type: Array - displayName: CLP - required: false - - value: CNY - type: Array - displayName: CNY - required: false - - value: COP - type: Array - displayName: COP - required: false - - value: CRC - type: Array - displayName: CRC - required: false - - value: CUC - type: Array - displayName: CUC - required: false - - value: CUP - type: Array - displayName: CUP - required: false - - value: CVE - type: Array - displayName: CVE - required: false - - value: CZK - type: Array - displayName: CZK - required: false - - value: DJF - type: Array - displayName: DJF - required: false - - value: DKK - type: Array - displayName: DKK - required: false - - value: DOP - type: Array - displayName: DOP - required: false - - value: DZD - type: Array - displayName: DZD - required: false - - value: EGP - type: Array - displayName: EGP - required: false - - value: ERN - type: Array - displayName: ERN - required: false - - value: ETB - type: Array - displayName: ETB - required: false - - value: EUR - type: Array - displayName: EUR - required: false - - value: FJD - type: Array - displayName: FJD - required: false - - value: FKP - type: Array - displayName: FKP - required: false - - value: GBP - type: Array - displayName: GBP - required: false - - value: GEL - type: Array - displayName: GEL - required: false - - value: GGP - type: Array - displayName: GGP - required: false - - value: GHS - type: Array - displayName: GHS - required: false - - value: GIP - type: Array - displayName: GIP - required: false - - value: GMD - type: Array - displayName: GMD - required: false - - value: GNF - type: Array - displayName: GNF - required: false - - value: GTQ - type: Array - displayName: GTQ - required: false - - value: GYD - type: Array - displayName: GYD - required: false - - value: HKD - type: Array - displayName: HKD - required: false - - value: HNL - type: Array - displayName: HNL - required: false - - value: HRK - type: Array - displayName: HRK - required: false - - value: HTG - type: Array - displayName: HTG - required: false - - value: HUF - type: Array - displayName: HUF - required: false - - value: IDR - type: Array - displayName: IDR - required: false - - value: ILS - type: Array - displayName: ILS - required: false - - value: IMP - type: Array - displayName: IMP - required: false - - value: INR - type: Array - displayName: INR - required: false - - value: IQD - type: Array - displayName: IQD - required: false - - value: IRR - type: Array - displayName: IRR - required: false - - value: ISK - type: Array - displayName: ISK - required: false - - value: JEP - type: Array - displayName: JEP - required: false - - value: JMD - type: Array - displayName: JMD - required: false - - value: JOD - type: Array - displayName: JOD - required: false - - value: JPY - type: Array - displayName: JPY - required: false - - value: KES - type: Array - displayName: KES - required: false - - value: KGS - type: Array - displayName: KGS - required: false - - value: KHR - type: Array - displayName: KHR - required: false - - value: KMF - type: Array - displayName: KMF - required: false - - value: KPW - type: Array - displayName: KPW - required: false - - value: KRW - type: Array - displayName: KRW - required: false - - value: KWD - type: Array - displayName: KWD - required: false - - value: KYD - type: Array - displayName: KYD - required: false - - value: KZT - type: Array - displayName: KZT - required: false - - value: LAK - type: Array - displayName: LAK - required: false - - value: LBP - type: Array - displayName: LBP - required: false - - value: LKR - type: Array - displayName: LKR - required: false - - value: LRD - type: Array - displayName: LRD - required: false - - value: LSL - type: Array - displayName: LSL - required: false - - value: LYD - type: Array - displayName: LYD - required: false - - value: MAD - type: Array - displayName: MAD - required: false - - value: MDL - type: Array - displayName: MDL - required: false - - value: MGA - type: Array - displayName: MGA - required: false - - value: MKD - type: Array - displayName: MKD - required: false - - value: MMK - type: Array - displayName: MMK - required: false - - value: MNT - type: Array - displayName: MNT - required: false - - value: MOP - type: Array - displayName: MOP - required: false - - value: MRO - type: Array - displayName: MRO - required: false - - value: MUR - type: Array - displayName: MUR - required: false - - value: MVR - type: Array - displayName: MVR - required: false - - value: MWK - type: Array - displayName: MWK - required: false - - value: MXN - type: Array - displayName: MXN - required: false - - value: MYR - type: Array - displayName: MYR - required: false - - value: MZN - type: Array - displayName: MZN - required: false - - value: NAD - type: Array - displayName: NAD - required: false - - value: NGN - type: Array - displayName: NGN - required: false - - value: NIO - type: Array - displayName: NIO - required: false - - value: NOK - type: Array - displayName: NOK - required: false - - value: NPR - type: Array - displayName: NPR - required: false - - value: NZD - type: Array - displayName: NZD - required: false - - value: OMR - type: Array - displayName: OMR - required: false - - value: PAB - type: Array - displayName: PAB - required: false - - value: PEN - type: Array - displayName: PEN - required: false - - value: PGK - type: Array - displayName: PGK - required: false - - value: PHP - type: Array - displayName: PHP - required: false - - value: PKR - type: Array - displayName: PKR - required: false - - value: PLN - type: Array - displayName: PLN - required: false - - value: PYG - type: Array - displayName: PYG - required: false - - value: QAR - type: Array - displayName: QAR - required: false - - value: RON - type: Array - displayName: RON - required: false - - value: RSD - type: Array - displayName: RSD - required: false - - value: RUB - type: Array - displayName: RUB - required: false - - value: RWF - type: Array - displayName: RWF - required: false - - value: SAR - type: Array - displayName: SAR - required: false - - value: SBD - type: Array - displayName: SBD - required: false - - value: SCR - type: Array - displayName: SCR - required: false - - value: SDG - type: Array - displayName: SDG - required: false - - value: SEK - type: Array - displayName: SEK - required: false - - value: SGD - type: Array - displayName: SGD - required: false - - value: SHP - type: Array - displayName: SHP - required: false - - value: SLL - type: Array - displayName: SLL - required: false - - value: SOS - type: Array - displayName: SOS - required: false - - value: SPL - type: Array - displayName: SPL - required: false - - value: SRD - type: Array - displayName: SRD - required: false - - value: STD - type: Array - displayName: STD - required: false - - value: SVC - type: Array - displayName: SVC - required: false - - value: SYP - type: Array - displayName: SYP - required: false - - value: SZL - type: Array - displayName: SZL - required: false - - value: THB - type: Array - displayName: THB - required: false - - value: TJS - type: Array - displayName: TJS - required: false - - value: TMT - type: Array - displayName: TMT - required: false - - value: TND - type: Array - displayName: TND - required: false - - value: TOP - type: Array - displayName: TOP - required: false - - value: TRY - type: Array - displayName: TRY - required: false - - value: TTD - type: Array - displayName: TTD - required: false - - value: TVD - type: Array - displayName: TVD - required: false - - value: TWD - type: Array - displayName: TWD - required: false - - value: TZS - type: Array - displayName: TZS - required: false - - value: UAH - type: Array - displayName: UAH - required: false - - value: UGX - type: Array - displayName: UGX - required: false - - value: USD - type: Array - displayName: USD - required: false - - value: UYU - type: Array - displayName: UYU - required: false - - value: UZS - type: Array - displayName: UZS - required: false - - value: VEF - type: Array - displayName: VEF - required: false - - value: VND - type: Array - displayName: VND - required: false - - value: VUV - type: Array - displayName: VUV - required: false - - value: WST - type: Array - displayName: WST - required: false - - value: XAF - type: Array - displayName: XAF - required: false - - value: XCD - type: Array - displayName: XCD - required: false - - value: XDR - type: Array - displayName: XDR - required: false - - value: XOF - type: Array - displayName: XOF - required: false - - value: XPF - type: Array - displayName: XPF - required: false - - value: YER - type: Array - displayName: YER - required: false - - value: ZAR - type: Array - displayName: ZAR - required: false - - value: ZMW - type: Array - displayName: ZMW - required: false - - value: ZWD - type: Array - displayName: ZWD - required: false - required: false - validation: - warnings: - - field: Currency - details: Can be used for Payments on Account only - information: [] - note: - type: String - displayName: Note - description: Any additional text based information associated with the payment - required: false - required: true - MYOB AccountRight and Essentials: - value: - type: Object - displayName: Payment - description: A payment represents an allocation of transactions across an 'accounts receivable' account (customer) - properties: - customerRef: - type: Object - displayName: Customer Reference - description: Reference to the customer the payment has been sent by - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the customer - required: true - validation: - warnings: - - field: CustomerRef.Id - details: Must be a valid GUID. - - field: CustomerRef.Id - details: Must match the ID of an existing customer. - information: - - field: CustomerRef.Id - details: Must be provided. - required: true - validation: - warnings: [] - information: - - field: CustomerRef - details: Must be provided. - accountRef: - type: Object - displayName: Nominal Account Reference - description: Reference to the nominal account the payment is linked to - properties: - id: - type: String - displayName: Account ID - description: The identifier for the account - required: true - validation: - warnings: - - field: AccountRef.Id - details: Must be a valid GUID. - - field: AccountRef.Id - details: Must match the ID of an existing account. - information: - - field: AccountRef.Id - details: Must be provided. - required: true - validation: - warnings: [] - information: - - field: AccountRef - details: Must be provided. - totalAmount: - type: Number - displayName: Total Amount - description: 'The total amount of the payment, inclusive of discounts and tax' - required: true - validation: - warnings: - - field: TotalAmount - details: Precision must be maximum of two decimal places. - - field: TotalAmount - details: Must be greater than zero. - information: - - field: TotalAmount - details: Must be provided and must equal the sum of the link items amount. - date: - type: DateTime - displayName: Date - description: The date the payment was recorded - required: true - validation: - warnings: [] - information: - - field: Date - details: Must be provided. - reference: - type: String - displayName: Reference - description: A user friendly reference for the payment - required: false - validation: - warnings: [] - information: - - field: Reference - details: Must not be greater than 8 characters long. - currency: - type: String - displayName: Currency - description: Currency of the payment - options: - - value: AUD - type: String - displayName: Australian Dollar - required: false - required: true - validation: - warnings: [] - information: - - field: Currency - details: Must be provided. - lines: - type: Array - displayName: Lines - description: A collection of payment lines - properties: - amount: - type: Number - displayName: Amount - description: The total amount for the line in the payment currency - required: true - validation: - warnings: [] - information: - - field: Lines.Amount - details: Must be provided. - links: - type: Array - displayName: Links - description: A collection of linked transactions - properties: - id: - type: String - displayName: Identifier - description: The identifier for the referenced transaction - required: true - validation: - warnings: [] - information: - - field: Links.Id - details: Must be provided. - amount: - type: Number - displayName: Amount - description: 'The amount by which the balance of the linked entity is altered, in the currency of the linked entity' - required: true - validation: - warnings: [] - information: - - field: Links.Amount - details: Precision must be maximum of two decimal places. - - field: Links.Amount - details: Must be provided. - type: - type: String - displayName: Link Type - description: The type of transaction that is being linked - options: - - value: Invoice - type: String - required: false - required: true - validation: - warnings: [] - information: - - field: Links.Type - details: Must be provided. - required: true - validation: - warnings: [] - information: - - field: Lines.Links - details: Must be provided. - required: true - validation: - warnings: [] - information: - - field: Lines - details: Must be provided. - required: true - Oracle NetSuite: - value: - type: Object - displayName: Payment - description: A payment represents an allocation of transactions across an 'accounts receivable' account (customer) - properties: - customerRef: - type: Object - displayName: Customer Reference - description: Reference to the customer the payment has been sent by - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the customer - required: true - required: true - accountRef: - type: Object - displayName: Nominal Account Reference - description: Reference to the nominal account the payment is linked to - properties: - id: - type: String - displayName: Account ID - description: The identifier for the account - required: true - validation: - warnings: - - field: AccountRef.Id - details: Must match the ID of an existing account of type 'Bank' OR type 'Asset' (with category 'FixedAsset'/'OthAsset'/'OthCurrAsset') OR type 'Liability' (with category 'LongTermLiab'/'OthCurrLiab') OR type 'Expense' (with category 'Expense'/'OthExpense') - information: [] - required: false - totalAmount: - type: Number - displayName: Total Amount - description: 'The total amount of the payment, inclusive of discounts and tax' - required: true - validation: - warnings: - - field: TotalAmount - details: Must be greater than zero - - field: TotalAmount - details: Must be provided and must be equal to the sum of the lines amounts - information: [] - date: - type: DateTime - displayName: Date - description: The date the payment was recorded - required: true - currency: - type: String - displayName: Currency - description: Currency of the payment - required: false - validation: - warnings: - - field: Currency - details: If the currency is set make sure it's the same as the 'Invoice' and/or 'CreditMemo' currency - information: [] - note: - type: String - displayName: Note - description: Any additional text based information associated with the payment - required: false - reference: - type: String - displayName: Reference - description: A user friendly reference for the payment - required: false - validation: - warnings: - - field: Reference - details: The id format should be 'location-' - information: - - field: Reference - details: This field can be used to provide a tracking category id (Location only) - lines: - type: Array - displayName: Lines - description: A collection of payment lines - properties: - amount: - type: Number - displayName: Amount - description: The total amount for the line in the payment currency - required: true - links: - type: Array - displayName: Links - description: A collection of linked transactions - properties: - id: - type: String - displayName: Identifier - description: The identifier for the referenced transaction - required: true - validation: - warnings: - - field: Links.Id - details: If the Link Type specified is an 'Invoice' or 'CreditNote' make sure the status is either 'PartiallyPaid' or 'Submitted' - information: [] - type: - type: String - displayName: Link Type - description: The type of transaction that is being linked - options: - - value: Invoice - type: String - displayName: Invoice - required: false - - value: CreditNote - type: String - displayName: Credit Note - required: false - - value: PaymentOnAccount - type: String - displayName: Payment On Account - required: false - required: true - amount: - type: Number - displayName: Amount - description: 'The amount by which the balance of the linked entity is altered, in the currency of the linked entity' - required: true - required: true - required: true - required: true - QuickBooks Desktop: - value: - type: Object - displayName: Payment - description: A payment represents an allocation of transactions across an 'accounts receivable' account (customer) - properties: - customerRef: - type: Object - displayName: Customer Reference - description: Reference to the customer the payment has been sent by - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the customer - required: true - validation: - warnings: - - field: CustomerRef.Id - details: Must match the ID of an existing supplier. - information: [] - required: true - accountRef: - type: Object - displayName: Nominal Account Reference - description: Reference to the nominal account the payment is linked to - properties: - id: - type: String - displayName: Account ID - description: The identifier for the account - required: true - validation: - warnings: - - field: AccountRef.Id - details: Must match the ID of an existing 'Bank' or 'Other Current Asset' account. - information: - - field: AccountRef.Id - details: Not required if total amount of the payment is 0. - required: true - date: - type: DateTime - displayName: Date - description: The date the payment was recorded - required: true - note: - type: String - displayName: Note - description: Any additional text based information associated with the payment - required: false - reference: - type: String - displayName: Reference - description: A user friendly reference for the payment - required: false - validation: - warnings: - - field: Reference - details: Max length of 20 characters. - information: [] - currency: - type: String - displayName: Currency - description: Currency of the payment - required: false - validation: - warnings: - - field: Currency - details: Must be a three letter ISO code that matches the currency of the customer. - - field: Currency - details: Can only be set if the QuickBooks Desktop company has Multicurrency enabled. - information: - - field: Currency - details: 'If not set, will default to the default currency of the customer.' - currencyRate: - type: Number - displayName: Currency Exchange Rate - description: The exchange rate between the currency of the payment and the base currency of the company - required: false - validation: - warnings: [] - information: - - field: CurrencyRate - details: 'If not set, will default to the rate set within QuickBooks Desktop, if no rate is set in QuickBooks Desktop, it will default to 1.' - - field: CurrencyRate - details: Can only be set if the QuickBooks Desktop company has Multicurrency enabled. - totalAmount: - type: Number - displayName: Total Amount - description: 'The total amount of the payment, inclusive of discounts and tax' - required: true - validation: - warnings: - - field: TotalAmount - details: Must match the sum of amounts in the lines - information: [] - lines: - type: Array - displayName: Lines - description: A collection of payment lines - properties: - amount: - type: Number - displayName: Amount - description: The total amount for the line in the payment currency - required: true - validation: - warnings: - - field: Lines.Amount - details: Amount plus the sum of amounts in the links must equal 0 - information: [] - links: - type: Array - displayName: Links - description: A collection of linked transactions - properties: - type: - type: String - displayName: Link Type - description: The type of transaction that is being linked - options: - - value: Invoice - type: String - displayName: Invoice - required: false - - value: CreditNote - type: String - displayName: Credit Note - required: false - - value: PaymentOnAccount - type: String - displayName: Payment On Account - required: false - required: true - validation: - warnings: - - field: Links.Type - details: 'Only 1 link with type ''PaymentOnAccount'' may be specified per line, this line may contain no other links' - - field: Links.Type - details: Only 1 link with type 'Invoice' may be specified per line - information: [] - id: - type: String - displayName: Identifier - description: The identifier for the referenced transaction - required: true - amount: - type: Number - displayName: Amount - description: 'The amount by which the balance of the linked entity is altered, in the currency of the linked entity' - required: true - required: true - required: true - required: true - QuickBooks Online Sandbox: - value: - type: Object - displayName: Payment - description: A payment represents an allocation of transactions across an 'accounts receivable' account (customer) - properties: - customerRef: - type: Object - displayName: Customer Reference - description: Reference to the customer the payment has been sent by - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the customer - required: true - required: true - validation: - warnings: [] - information: - - field: CustomerRef - details: 'Must be the ID of the Customer associated with the Invoice, Credit Note or Payment On Account.' - accountRef: - type: Object - displayName: Nominal Account Reference - description: Reference to the nominal account the payment is linked to - properties: - id: - type: String - displayName: Account ID - description: The identifier for the account - required: true - required: false - validation: - warnings: [] - information: - - field: AccountRef - details: Must match the ID of an existing Account. - paymentMethodRef: - type: Object - displayName: Payment Method Reference - description: Reference to the method of this payment - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the payment method - required: true - required: false - totalAmount: - type: Number - displayName: Total Amount - description: 'The total amount of the payment, inclusive of discounts and tax' - required: true - currency: - type: String - displayName: Currency - description: Currency of the payment - required: false - validation: - warnings: [] - information: - - field: Currency - details: Required if multi-currency is enabled for the company - date: - type: DateTime - displayName: Date - description: The date the payment was recorded - required: true - note: - type: String - displayName: Note - description: Any additional text based information associated with the payment - required: false - lines: - type: Array - displayName: Lines - description: A collection of payment lines - properties: - amount: - type: Number - displayName: Amount - description: The total amount for the line in the payment currency - required: true - links: - type: Array - displayName: Links - description: A collection of linked transactions - properties: - type: - type: String - displayName: Link Type - description: The type of transaction that is being linked - options: - - value: Invoice - type: String - displayName: Invoice - required: false - - value: CreditNote - type: String - displayName: Credit Note - required: false - - value: PaymentOnAccount - type: String - displayName: Payment On Account - required: false - required: true - id: - type: String - displayName: Identifier - description: The identifier for the referenced transaction - required: true - amount: - type: Number - displayName: Amount - description: 'The amount by which the balance of the linked entity is altered, in the currency of the linked entity' - required: true - required: true - required: false - required: true - QuickBooks Online: - value: - type: Object - displayName: Payment - description: A payment represents an allocation of transactions across an 'accounts receivable' account (customer) - properties: - customerRef: - type: Object - displayName: Customer Reference - description: Reference to the customer the payment has been sent by - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the customer - required: true - required: true - validation: - warnings: [] - information: - - field: CustomerRef - details: 'Must be the ID of the Customer associated with the Invoice, Credit Note or Payment On Account.' - accountRef: - type: Object - displayName: Nominal Account Reference - description: Reference to the nominal account the payment is linked to - properties: - id: - type: String - displayName: Account ID - description: The identifier for the account - required: true - required: false - validation: - warnings: [] - information: - - field: AccountRef - details: Must match the ID of an existing Account. - paymentMethodRef: - type: Object - displayName: Payment Method Reference - description: Reference to the method of this payment - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the payment method - required: true - required: false - totalAmount: - type: Number - displayName: Total Amount - description: 'The total amount of the payment, inclusive of discounts and tax' - required: true - currency: - type: String - displayName: Currency - description: Currency of the payment - required: false - validation: - warnings: [] - information: - - field: Currency - details: Required if multi-currency is enabled for the company - date: - type: DateTime - displayName: Date - description: The date the payment was recorded - required: true - note: - type: String - displayName: Note - description: Any additional text based information associated with the payment - required: false - lines: - type: Array - displayName: Lines - description: A collection of payment lines - properties: - amount: - type: Number - displayName: Amount - description: The total amount for the line in the payment currency - required: true - links: - type: Array - displayName: Links - description: A collection of linked transactions - properties: - type: - type: String - displayName: Link Type - description: The type of transaction that is being linked - options: - - value: Invoice - type: String - displayName: Invoice - required: false - - value: CreditNote - type: String - displayName: Credit Note - required: false - - value: PaymentOnAccount - type: String - displayName: Payment On Account - required: false - required: true - id: - type: String - displayName: Identifier - description: The identifier for the referenced transaction - required: true - amount: - type: Number - displayName: Amount - description: 'The amount by which the balance of the linked entity is altered, in the currency of the linked entity' - required: true - required: true - required: false - required: true - Sage 50 (UK): - value: - type: Object - displayName: Payment - description: A payment represents an allocation of transactions across an 'accounts receivable' account (customer) - properties: - accountRef: - type: Object - displayName: Bank Account - description: The bank account to pay this invoice from. - properties: - id: - type: String - displayName: Account Id - description: Nominal code of the bank account. - required: true - validation: - warnings: - - field: accountRef.id - details: Must match the ID of an existing bank account and have a max length of 8 characters. - information: [] - required: true - customerRef: - type: Object - displayName: Customer - description: Customer to be paid. - properties: - id: - type: String - displayName: Customer Id - description: Identifier of the customer. - required: true - validation: - warnings: - - field: customerRef.id - details: Must match the ID of an existing customer and have a max length of 8 characters. - information: [] - required: true - totalAmount: - type: Number - displayName: Total Amount - description: The total amount being paid to the customer. - required: true - validation: - warnings: [] - information: - - details: This must equal the sum of the line amounts - reference: - type: Number - displayName: Reference - description: The user reference for this invoice payment. - required: false - date: - type: Number - displayName: Issue Date - description: The date this payment was issued. - required: true - note: - type: Number - displayName: Note - description: A description of the payment. - required: false - lines: - type: Array - displayName: Line Items - description: Line items of the payment. - properties: - amount: - type: Number - displayName: Amount - description: The amount of this line item - required: true - validation: - warnings: [] - information: - - details: this must equal the negative of the sum of the link amounts - links: - type: Array - displayName: Links - description: Links to the invoice being paid. - properties: - amount: - type: Number - displayName: Amount - description: The amount to be added to the value of the invoice - required: true - validation: - warnings: [] - information: - - details: 'When paying off an invoice, this value will be negative' - id: - type: String - displayName: Invoice Id - description: The ID of the invoice to pay - required: true - type: - type: String - displayName: Payment Link Type - description: The type of the item to be paid - options: - - value: Invoice - type: String - displayName: Invoice - required: false - - value: PaymentOnAccount - type: String - displayName: Payment On Account - required: false - - value: Refund - type: String - displayName: Refund - required: false - - value: CreditNote - type: String - displayName: Credit Note - required: false - - value: Payment - type: String - displayName: Payment - required: false - required: true - required: true - required: true - validation: - warnings: [] - information: - - details: Sage 50 only supports one line item per invoice payment so all lines will be merged together in the response. - required: true - validation: - warnings: [] - information: - - details: 'Pushing to Sage 50 2015 (v21) or below is not supported. To enable push, please upgrade to at least Sage 50 2016 (v22) and re-sync the company.' - Sage Business Cloud Accounting: - value: - type: Object - displayName: Payment - description: A payment represents an allocation of transactions across an 'accounts receivable' account (customer) - properties: - accountRef: - type: Object - displayName: Nominal Account Reference - description: Reference to the nominal account the payment is linked to - properties: - id: - type: String - displayName: Account ID - description: The identifier for the account - required: true - validation: - warnings: - - field: AccountRef.Id - details: Must match the ID of an existing Account. - information: - - field: AccountRef.Id - details: Must be provided. - required: false - validation: - warnings: - - field: AccountRef - details: Required unless the Payment is only allocating a Credit Note. - information: [] - customerRef: - type: Object - displayName: Customer Reference - description: Reference to the customer the payment has been sent by - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the customer - required: true - validation: - warnings: - - field: CustomerRef.Id - details: Must match the ID of an existing Customer. - information: - - field: CustomerRef.Id - details: Must be provided. - required: true - date: - type: DateTime - displayName: Date - description: The date the payment was recorded - required: true - validation: - warnings: [] - information: - - field: Date - details: Must be provided. - totalAmount: - type: Number - displayName: Total Amount - description: 'The total amount of the payment, inclusive of discounts and tax' - required: true - validation: - warnings: - - field: TotalAmount - details: Must be zero when allocating against Invoices using a Credit Note only. - - field: TotalAmount - details: Must equal the sum of the link items amount. - information: - - field: TotalAmount - details: Must be provided. - note: - type: String - displayName: Note - description: Any additional text based information associated with the payment - required: false - validation: - warnings: - - field: Note - details: Should not be longer than 25 characters. - information: [] - currency: - type: String - displayName: Currency - description: Currency of the payment - required: false - validation: - warnings: [] - information: - - field: Currency - details: 'If supplied, must match the currency of the customer.' - currencyRate: - type: Number - displayName: Currency Exchange Rate - description: The exchange rate between the currency of the payment and the base currency of the company - required: false - lines: - type: Array - displayName: Lines - description: A collection of payment lines - properties: - links: - type: Array - displayName: Links - description: A collection of linked transactions - properties: - id: - type: String - displayName: Identifier - description: The identifier for the referenced transaction - required: true - validation: - warnings: [] - information: - - field: Links.Id - details: Must be provided. - amount: - type: Number - displayName: Amount - description: 'The amount by which the balance of the linked entity is altered, in the currency of the linked entity' - required: true - validation: - warnings: - - field: Links.Amount - details: Must be greater than zero except when Type is Invoice - information: - - field: Links.Amount - details: Must be provided. - type: - type: String - displayName: Link Type - description: The type of transaction that is being linked - options: - - value: Invoice - type: String - displayName: Invoice - required: false - - value: PaymentOnAccount - type: String - displayName: PaymentOnAccount - required: false - - value: Refund - type: String - displayName: Refund - required: false - - value: CreditNote - type: String - displayName: CreditNote - required: false - required: true - validation: - warnings: [] - information: - - field: Links.Type - details: Must be provided. - required: true - validation: - warnings: [] - information: - - field: Lines.Links - details: Must be provided. - required: true - required: true - Sage Intacct: - value: - type: Object - displayName: Payment - description: A payment represents an allocation of transactions across an 'accounts receivable' account (customer) - properties: - totalAmount: - type: Number - displayName: Total Amount - description: 'The total amount of the payment, inclusive of discounts and tax' - required: true - validation: - warnings: [] - information: - - field: TotalAmount - details: Must equal the sum of Lines.Amount. - note: - type: String - displayName: Note - description: Any additional text based information associated with the payment - required: false - validation: - warnings: [] - information: - - field: Note - details: Must be less than 1000 characters. - paymentMethodRef: - type: Object - displayName: Payment Method Reference - description: Reference to the method of this payment - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the payment method - options: - - value: '1' - type: String - displayName: Printed Check - required: false - - value: '3' - type: String - displayName: Credit Card - required: false - - value: '5' - type: String - displayName: EFT - required: false - - value: '6' - type: String - displayName: Cash - required: false - required: true - required: true - reference: - type: String - displayName: Reference - description: A user friendly reference for the payment - required: false - validation: - warnings: [] - information: - - field: Reference - details: Can be used to set the Document/Check No. in Sage Intacct. - currency: - type: String - displayName: Currency - description: Currency of the payment - required: false - currencyRate: - type: Number - displayName: Currency Exchange Rate - description: The exchange rate between the currency of the payment and the base currency of the company - required: false - validation: - warnings: [] - information: - - field: CurrencyRate - details: Is required if currency is provided. - date: - type: DateTime - displayName: Date - description: The date the payment was recorded - required: true - validation: - warnings: [] - information: - - field: Date - details: Must occur after the date the invoice was created. - customerRef: - type: Object - displayName: Customer Reference - description: Reference to the customer the payment has been sent by - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the customer - required: true - validation: - warnings: [] - information: - - field: CustomerRef.Id - details: Must be an existing customer ID in Sage Intacct. - required: true - accountRef: - type: Object - displayName: Nominal Account Reference - description: Reference to the nominal account the payment is linked to - properties: - id: - type: String - displayName: Account ID - description: The identifier for the account - required: true - validation: - warnings: [] - information: - - field: AccountRef.Id - details: For undeposited payments use the GL account record number to charge. - - field: AccountRef.Id - details: 'To charge either a savings, checking or credit card account use its associated GL account number.' - required: true - lines: - type: Array - displayName: Lines - description: A collection of payment lines - properties: - amount: - type: Number - displayName: Amount - description: The total amount for the line in the payment currency - required: true - validation: - warnings: [] - information: - - field: Lines.Amount - details: When added together with the sum of the Links.Amount the total must be zero. - links: - type: Array - displayName: Links - description: A collection of linked transactions - properties: - id: - type: String - displayName: Identifier - description: The identifier for the referenced transaction - required: true - validation: - warnings: [] - information: - - field: Links.Id - details: 'Must be a valid Record No. from accounts receivable of either an invoice for an ''Invoice'', adjustment for a ''CreditNote'' or an advance for a ''PaymentOnAccount'' in Sage Intacct.' - - field: Links.Id - details: Must be an integer. - - field: Links.Id - details: Must related to CustomerRef.Id in Sage Intacct. - type: - type: String - displayName: Link Type - description: The type of transaction that is being linked - required: true - validation: - warnings: [] - information: - - field: Links.Type - details: Must be one of Invoiceor CreditNoteor PaymentOnAccount. - amount: - type: Number - displayName: Amount - description: 'The amount by which the balance of the linked entity is altered, in the currency of the linked entity' - required: true - validation: - warnings: [] - information: - - field: Links.Amount - details: Must not be more than the total amount due for an invoice or the available funds in the account to be charged. - required: true - validation: - warnings: [] - information: - - field: Lines.Links - details: No more than two links can exist when paying for an invoice via a CreditNoteor PaymentOnAccount. - - field: Lines.Links - details: Must contain only one Invoice. - required: true - validation: - warnings: [] - information: - - field: Lines - details: Must contain at least one payment line. - required: true - validation: - warnings: [] - information: - - details: Sage Intacct handles allocated payments only. - Sandbox: - value: - type: Object - displayName: Payment - description: A payment represents an allocation of transactions across an 'accounts receivable' account (customer) - properties: - customerRef: - type: Object - displayName: Customer Reference - description: Reference to the customer the payment has been sent by - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the customer - required: true - companyName: - type: String - displayName: Name - description: The name of the customer referenced by the identifier - required: true - required: true - accountRef: - type: Object - displayName: Nominal Account Reference - description: Reference to the nominal account the payment is linked to - properties: - id: - type: String - displayName: Account ID - description: The identifier for the account - required: true - name: - type: String - displayName: Name - description: Name of the account - required: true - required: true - paymentMethodRef: - type: Object - displayName: Payment Method Reference - description: Reference to the method of this payment - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the payment method - required: true - name: - type: String - displayName: Name - description: The name of the payment method referenced by the identifier - required: true - required: true - totalAmount: - type: Number - displayName: Total Amount - description: 'The total amount of the payment, inclusive of discounts and tax' - required: true - currency: - type: String - displayName: Currency - description: Currency of the payment - required: true - currencyRate: - type: Number - displayName: Currency Exchange Rate - description: The exchange rate between the currency of the payment and the base currency of the company - required: true - date: - type: DateTime - displayName: Date - description: The date the payment was recorded - required: true - note: - type: String - displayName: Note - description: Any additional text based information associated with the payment - required: true - lines: - type: Array - displayName: Lines - description: A collection of payment lines - properties: - amount: - type: Number - displayName: Amount - description: The total amount for the line in the payment currency - required: true - links: - type: Array - displayName: Links - description: A collection of linked transactions - properties: - type: - type: String - displayName: Link Type - description: The type of transaction that is being linked - required: true - id: - type: String - displayName: Identifier - description: The identifier for the referenced transaction - required: true - amount: - type: Number - displayName: Amount - description: 'The amount by which the balance of the linked entity is altered, in the currency of the linked entity' - required: true - currencyRate: - type: Number - displayName: Currency Exchange Rate - description: The exchange rate between the currency of the payment and the currency of the linked transaction - required: true - required: true - allocatedOnDate: - type: DateTime - displayName: Allocated On Date - description: The date the payment was allocated - required: true - required: true - reference: - type: String - displayName: Reference - description: A user friendly reference for the payment - required: true - metadata: - type: Object - displayName: Metadata - description: Miscellaneous data about the item - properties: - isDeleted: - type: Boolean - displayName: IsDeleted - description: A boolean to indicate whether the object has been deleted - required: true - required: true - required: true - Xero: - value: - type: Object - displayName: Payment - description: A payment represents an allocation of transactions across an 'accounts receivable' account (customer) - properties: - customerRef: - type: Object - displayName: Customer Reference - description: Reference to the customer the payment has been sent by - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the customer - required: true - validation: - warnings: - - field: CustomerRef.Id - details: Must be a valid GUID. - - field: CustomerRef.Id - details: Must match the ID of an existing account. - information: - - field: CustomerRef.Id - details: Must be provided. - required: true - validation: - warnings: [] - information: - - field: CustomerRef - details: Must be provided. - accountRef: - type: Object - displayName: Nominal Account Reference - description: Reference to the nominal account the payment is linked to - properties: - id: - type: String - displayName: Account ID - description: The identifier for the account - required: true - validation: - warnings: - - field: AccountRef.Id - details: Must be a valid GUID. - - field: AccountRef.Id - details: Must match the ID of an existing account. - information: - - field: AccountRef.Id - details: Must be either a type of BANK account or enable payments must be switched on. - required: true - validation: - warnings: [] - information: - - field: AccountRef - details: Must be provided. - totalAmount: - type: Number - displayName: Total Amount - description: 'The total amount of the payment, inclusive of discounts and tax' - required: true - validation: - warnings: - - field: TotalAmount - details: 'Must be greater than 0, unless the payment is a credit note allocation.' - information: - - field: TotalAmount - details: Must be provided and must equal the sum of the link items amount. - date: - type: DateTime - displayName: Date - description: The date the payment was recorded - required: true - validation: - warnings: [] - information: - - field: Date - details: Must be provided. - reference: - type: String - displayName: Reference - description: A user friendly reference for the payment - required: false - currencyRate: - type: Number - displayName: Currency Exchange Rate - description: The exchange rate between the currency of the payment and the base currency of the company - required: false - currency: - type: String - displayName: Currency - description: Currency of the payment - required: true - validation: - warnings: [] - information: - - field: Currency - details: Must be provided. - lines: - type: Array - displayName: Lines - description: A collection of payment lines - properties: - amount: - type: Number - displayName: Amount - description: The total amount for the line in the payment currency - required: true - validation: - warnings: [] - information: - - field: Lines.Amount - details: Must be provided. - links: - type: Array - displayName: Links - description: A collection of linked transactions - properties: - id: - type: String - displayName: Identifier - description: The identifier for the referenced transaction - required: true - validation: - warnings: - - field: Links.Id - details: Must be a valid GUID. - information: - - field: Links.Id - details: Invoice and Credit Note ID must be provided in order to allocate a Credit Note to an Invoice. - - field: Links.Id - details: Must be provided. - amount: - type: Number - displayName: Amount - description: 'The amount by which the balance of the linked entity is altered, in the currency of the linked entity' - required: true - validation: - warnings: [] - information: - - field: Links.Amount - details: Must be provided. - type: - type: String - displayName: Link Type - description: The type of transaction that is being linked - options: - - value: Invoice - type: String - displayName: Invoice - required: false - - value: CreditNote - type: String - displayName: CreditNote - required: false - - value: Payment - type: String - displayName: Payment - required: false - required: true - validation: - warnings: [] - information: - - field: Links.Type - details: Must be provided. - required: true - validation: - warnings: [] - information: - - field: Lines.Links - details: Must be provided. - required: true - validation: - warnings: [] - information: - - field: Lines - details: Must be provided. - required: true - Zoho Books: - value: - type: Object - displayName: Payment - description: A payment represents an allocation of transactions across an 'accounts receivable' account (customer) - properties: - accountRef: - type: Object - displayName: Nominal Account Reference - description: Reference to the nominal account the payment is linked to - properties: - id: - type: String - displayName: Account ID - description: The identifier for the account - required: true - validation: - warnings: - - field: AccountRef.Id - details: AccountRef.ID is required when making a payment to an invoice and/or a payment on account - information: [] - required: true - customerRef: - type: Object - displayName: Customer Reference - description: Reference to the customer the payment has been sent by - properties: - id: - type: String - displayName: Identifier - description: The reference identifier for the customer - required: true - required: true - currency: - type: String - displayName: Currency - description: Currency of the payment - required: true - validation: - warnings: - - field: Currency - details: must match the currency of any invoices or credit notes - information: [] - date: - type: DateTime - displayName: Date - description: The date the payment was recorded - required: true - currencyRate: - type: Number - displayName: Currency Exchange Rate - description: The exchange rate between the currency of the payment and the base currency of the company - required: true - note: - type: String - displayName: Note - description: Any additional text based information associated with the payment - required: false - totalAmount: - type: Number - displayName: Total Amount - description: 'The total amount of the payment, inclusive of discounts and tax' - required: true - validation: - warnings: - - field: TotalAmount - details: must be greater than or equal to 0 - information: [] - lines: - type: Array - displayName: Lines - description: A collection of payment lines - properties: - links: - type: Array - displayName: Links - description: A collection of linked transactions - properties: - amount: - type: Number - displayName: Amount - description: 'The amount by which the balance of the linked entity is altered, in the currency of the linked entity' - required: true - validation: - warnings: - - field: Links.Amount - details: the sum of all link amounts must equal the negated total amount of the payment - information: [] - id: - type: String - displayName: Identifier - description: The identifier for the referenced transaction - required: true - type: - type: String - displayName: Link Type - description: The type of transaction that is being linked - options: - - type: Array - displayName: Invoice - required: false - - type: Array - displayName: CreditNote - required: false - - type: Array - displayName: PaymentOnAccount - required: false - required: true - required: true - validation: - warnings: - - field: Lines.Links - details: 'if a credit note link is provided, exactly one invoice link must be provided, otherwise unlimited invoice links and one payment on account link are allowed' - information: [] - required: true - required: true - '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' - operationId: get-create-payment-model - x-speakeasy-group: loan-writeback.payments - description: |- - The *Get create payment model* endpoint returns the expected data for the request payload when creating a [payment](https://docs.codat.io/lending-api#/schemas/Payment) for a given company and integration. - - [Payments](https://docs.codat.io/lending-api#/schemas/Payment) represent an allocation of money within any customer accounts receivable account. - - **Integration-specific behavior** - - See the *response examples* for integration-specific indicative models. - '/companies/{companyId}/connections/{connectionId}/push/payments': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - post: - tags: - - Loan writeback - summary: Create payment - parameters: - - $ref: '#/components/parameters/timeoutInMinutes' - - $ref: '#/components/parameters/allowSyncOnPushComplete' - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/AccountingPayment' - examples: - QuickBooks Desktop: - value: - customerRef: - id: 80000002-1674552702 - companyName: string - accountRef: - id: '8000002E-1675267199' - name: Undeposited Funds - paymentMethodRef: - id: string - name: string - totalAmount: 28 - currency: USD - currencyRate: 1 - date: '2023-02-10T11:47:04.792Z' - note: note 14/02 1147 - lines: - - amount: 28 - links: - - type: Invoice - id: 181-1676374586 - amount: -28 - currencyRate: 1 - allocatedOnDate: '2023-02-11T11:47:04.792Z' - reference: ref 14/02 1147 - Sage 50 (UK): - value: - customerRef: - id: CUST1 - accountRef: - id: '1200' - name: Bank Current Account - paymentMethodRef: - id: '4405' - totalAmount: 4 - currency: GBP - currencyRate: 1 - date: '2023-03-17T11:47:04.792Z' - note: note 07/03 14.31 - lines: - - amount: 4 - links: - - type: Invoice - id: INV-31 - amount: -4 - currencyRate: 1 - allocatedOnDate: '2023-02-11T11:47:04.792Z' - reference: ref - Sage Business Cloud Accounting: - value: - customerRef: - id: 30444c5bd4964fd787c7f8e2e5301ce1 - companyName: Stanley test customer - accountRef: - id: 9a25937b267a11e797950a57719b2edb - name: Current - totalAmount: 0.17 - currency: GBP - currencyRate: 1 - date: '2023-03-20T11:47:04.792Z' - note: Need to send products asap. - lines: - - amount: 0.17 - links: - - type: Invoice - id: bb85db9226d7450fb99eb83e7fb37505 - amount: -0.17 - currencyRate: 1 - allocatedOnDate: '2023-02-11T11:47:04.792Z' - reference: normal payment 20/03 17.05 - Sage Intacct: - value: - customerRef: - id: '19' - accountRef: - id: '81' - date: '2022-03-12T00:00:00' - totalAmount: 0 - lines: - - amount: 0 - links: - - id: '246' - type: Invoice - amount: -1.1 - - id: '280' - type: CreditNote - amount: 1.1 - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/AccountingCreatePaymentResponse' - examples: - Sage Intacct: - value: - data: - customerRef: - id: '19' - accountRef: - id: '81' - totalAmount: 0 - date: '2022-03-12T00:00:00' - lines: - - amount: 0 - links: - - type: Invoice - id: '246' - amount: -1.1 - - type: CreditNote - id: '280' - amount: 1.1 - dataType: payments - companyId: ffa6368e-fde4-4165-9a0a-4bda1a6f916e - pushOperationKey: 673f5d97-1c53-41ef-b9c8-cc9a8415d17c - dataConnectionKey: bbecdbf3-913a-43ae-9c91-e830b3686657 - requestedOnUtc: '0001-01-01T00:00:00' - status: Pending - statusCode: 202 - '400': - $ref: '#/components/responses/BadRequest' - '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: |- - The *Create payment* endpoint creates a new [payment](https://docs.codat.io/lending-api#/schemas/Payment) for a given company's connection. - - [Payments](https://docs.codat.io/lending-api#/schemas/Payment) represent an allocation of money within any customer accounts receivable account. - - **Integration-specific behavior** - - Required data may vary by integration. To see what data to post, first call [Get create payment model](https://docs.codat.io/lending-api#/operations/get-create-payments-model). - operationId: create-payment - x-speakeasy-group: loan-writeback.payments - '/companies/{companyId}/push/{pushOperationKey}': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/pushOperationKey' - get: - summary: Get create operation - tags: - - Loan writeback - operationId: get-create-operation - x-speakeasy-group: loan-writeback.create-operations - description: Retrieve create operation. - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/PushOperation' - examples: {} - '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' - '/companies/{companyId}/push': - parameters: - - $ref: '#/components/parameters/companyId' - get: - parameters: - - $ref: '#/components/parameters/page' - - $ref: '#/components/parameters/pageSize' - - $ref: '#/components/parameters/query' - - $ref: '#/components/parameters/orderBy' - summary: List push operations - tags: - - Push data - operationId: get-company-push-history - x-speakeasy-name-override: list-operations - description: |- - The **List push operations** endpoint returns a list of [push operations](/using-the-api/push) performed on the company. - - Write operations are actions that send requests to Codat, enabling the creation, updating, deletion of records, or uploading attachments in the connected accounting software. - summary: List create operations - tags: - - Loan writeback - operationId: list-create-operations - x-speakeasy-group: loan-writeback.create-operations - description: List create operations. - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/PushOperations' - examples: {} - '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' - '/companies/{companyId}/push/{pushOperationKey}': - parameters: - - $ref: '#/components/parameters/companyId' - - schema: - type: string - format: uuid - name: pushOperationKey - in: path - required: true - description: Push operation key. - get: - summary: Get push operation - tags: - - Push data - operationId: get-push-operation - x-speakeasy-name-override: get-operation - description: |- - The **Get push operation** endpoint returns a specific [push operation](/using-the-api/push) identified by the `pushOperationKey` that was performed on the company. - - Write operations are actions that send requests to Codat, enabling the creation, updating, deletion of records, or uploading attachments in the connected accounting software. - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/PushOperation' - examples: {} - '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' - '/integrations/{platformKey}/dataTypes/{dataType}/supplementalDataConfig': - parameters: - - $ref: '#/components/parameters/platformKey' - - name: dataType - in: path - required: true - description: Supported supplemental data data type. - schema: - x-internal: true - type: string - description: Data types that support supplemental data - enum: - - chartOfAccounts - - bills - - company - - creditNotes - - customers - - invoices - - items - - journalEntries - - suppliers - - taxRates - - commerce-companyInfo - - commerce-customers - - commerce-disputes - - commerce-locations - - commerce-orders - - commerce-payments - - commerce-paymentMethods - - commerce-products - - commerce-productCategories - - commerce-taxComponents - - commerce-transactions - example: invoices - put: - summary: Configure - description: |- - The *Configure* endpoint allows you to maintain or change configuration required to return supplemental data for each integration and data type combination. - - [Supplemental data](https://docs.codat.io/using-the-api/supplemental-data/overview) is additional data you can include in Codat's standard data types. - - **Integration-specific behaviour** - See the *examples* for integration-specific frequently requested properties. - operationId: configure-supplemental-data - x-speakeasy-name-override: configure - tags: - - Supplemental data - responses: - '200': - description: OK - '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' - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/SupplementalDataConfiguration' - examples: - Xero - Accounts: - value: - yourKeyNameForAccounts: - dataSource: /Accounts - pullData: - yourNameForTaxType: TaxType - yourNameForSystemAccount: SystemAccount - Xero - Invoices: - value: - yourKeyNameForInvoices: - dataSource: /Invoices - pullData: - yourNameForExpectedPaymentDate: ExpectedPaymentDate - yourNameForHasAttachments: HasAttachments - Xero - Items: - value: - yourKeyNameForItems: - dataSource: /Items - pullData: - yourNameForQuantityOnHand: QuantityOnHand - yourNameForTotalCostPool: TotalCostPool - Xero - Contacts: - value: - yourKeyNameForContacts: - dataSource: /Contacts - pullData: - yourNameForBankAccounts: BankAccountDetails - Xero - Tax rates: - value: - yourKeyNameForTaxRates: - dataSource: /TaxRates - pullData: - yourNameForCanApplyToLiabilities: CanApplyToLiabilities - yourNameForCanApplyToAssets: CanApplyToAssets - yourNameForCanApplyToEquity: CanApplyToEquity - yourNameForCanApplyToExpenses: CanApplyToExpenses - yourNameForCanApplyToRevenue: CanApplyToRevenue - QBO - Customers: - value: - yourKeyNameForCustomers: - dataSource: /Customer - pullData: - yourNameForSalesTermRef: SalesTermRef.value - yourNameForParentRef: ParentRef.value - QBO - Invoices: - value: - yourKeyNameForInvoices: - dataSource: /Invoice - pullData: - yourNameForSalesTermRef: SalesTermRef.value - description: The configuration for the specified platform and data type. - get: - summary: Get configuration - description: |- - The *Get configuration* endpoint returns supplemental data configuration previously created for each integration and data type combination. - - [Supplemental data](https://docs.codat.io/using-the-api/supplemental-data/overview) is additional data you can include in Codat's standard data types. - operationId: get-supplemental-data-configuration - x-speakeasy-name-override: get-configuration - tags: - - Supplemental data - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/SupplementalDataConfiguration' - '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' - '/integrations/{platformKey}/dataTypes/custom/{customDataIdentifier}': - parameters: - - $ref: '#/components/parameters/platformKey' - - $ref: '#/components/parameters/customDataIdentifier' - put: - summary: Configure custom data type - description: "The *Configure custom data type* endpoint allows you to maintain or change the configuration required to return a custom data type for a specific integration. \n\nA [custom data type](https://docs.codat.io/using-the-api/custom-data) is an additional data type you can create that is not included in Codat's standardized data model.\n\n### Tips and traps\n\n- You can only configure a single custom data type for a single platform at a time. Use the endpoint multiple times if you need to configure it for multiple platforms. \n\n- You can only indicate a single data source for each customer data type. \n\n- Make your custom configuration as similar as possible to our standard data types so you can interact with them in exactly the same way." - operationId: configure-custom-data-type - x-speakeasy-name-override: configure - tags: - - Custom data type - requestBody: - description: Custom data type configuration for the specified platform. - content: - application/json: - schema: - $ref: '#/components/schemas/CustomDataTypeConfiguration' - examples: - Dynamics 365 Business Central: - value: - dataSource: api/purchaseOrders - requiredData: - currency: '$[*].currencyCode' - number: '$[*].number' - date: '$[*].orderDate' - totalexvat: '$[*].totalAmountExcludingTax' - totaltax: '$[*].totalTaxAmount' - vendor: '$[*].number' - keyBy: - - '$[*].id' - sourceModifiedDate: - - '$[*].lastModifiedDateTime' - Xero Simple Record: - value: - dataSource: /api.xro/2.0/Accounts - requiredData: - code: $.Code - accountId: $.AccountID - type: $.Type - SysAcc: $.SystemAccount - keyBy: - - $.AccountID - Xero Mapping Arrays: - value: - dataSource: /api.xro/2.0/Invoices - requiredData: - invNumber: $.InvoiceNumber - type: $.Type - InvoiceID: $.InvoiceID - lines: '$.LineItems[*]' - keyBy: - - $.InvoiceID - sourceModifiedDate: - - $.UpdatedDateUTC - QuickBooks Online: - value: - dataSource: /query?query=select * from Account - requiredData: - id: $.Id - Currentbal: $.CurrentBalance - SubAcc: $.SubAccount - keyBy: - - $.Id - sourceModifiedDate: - - $.time - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/CustomDataTypeConfiguration' - examples: - Dynamics 365 Business Central: - value: - dataSource: api/purchaseOrders - requiredData: - currency: '$[*].currencyCode' - number: '$[*].number' - date: '$[*].orderDate' - totalexvat: '$[*].totalAmountExcludingTax' - totaltax: '$[*].totalTaxAmount' - vendor: '$[*].number' - keyBy: - - '$[*].id' - sourceModifiedDate: - - '$[*].lastModifiedDateTime' - Xero Simple Record: - value: - dataSource: /api.xro/2.0/Accounts - requiredData: - code: $.Code - accountId: $.AccountID - type: $.Type - SysAcc: $.SystemAccount - keyBy: - - $.AccountID - Xero Mapping Arrays: - value: - dataSource: /api.xro/2.0/Invoices - requiredData: - invNumber: $.InvoiceNumber - type: $.Type - InvoiceID: $.InvoiceID - lines: '$.LineItems[*]' - keyBy: - - $.InvoiceID - sourceModifiedDate: - - $.UpdatedDateUTC - QuickBooks Online: - value: - dataSource: /query?query=select * from Account - requiredData: - id: $.Id - Currentbal: $.CurrentBalance - SubAcc: $.SubAccount - keyBy: - - $.Id - sourceModifiedDate: - - $.time - '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' - get: - summary: Get custom data configuration - description: |- - The *Get custom data configuration* endpoint returns existing configuration details for the specified custom data type and integration pair you previously configured. - - A [custom data type](https://docs.codat.io/using-the-api/custom-data) is an additional data type you can create that is not included in Codat's standardized data model. - operationId: get-custom-data-type-configuration - x-speakeasy-name-override: get-configuration - tags: - - Custom data type - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/CustomDataTypeRecords' - '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' - '/companies/{companyId}/connections/{connectionId}/data/queue/custom/{customDataIdentifier}': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - - $ref: '#/components/parameters/customDataIdentifier' - post: - summary: Refresh custom data type - description: The *Refresh custom data type* endpoint refreshes the specified custom data type for a given company. This is an asynchronous operation that will sync updated data from the linked integration into Codat for you to view. - operationId: refresh-custom-data-type - x-speakeasy-name-override: refresh - tags: - - Custom data type - responses: - '200': - description: OK - '/companies/{companyId}/connections/{connectionId}/bankStatements/upload/configuration': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - get: - tags: - - Bank statements - summary: Get upload configuration - description: "Use the *Get upload configuration* endpoint to view the existing bank statement upload configuration for the specified data connection.\n\nWith this configuration, you set the source of the data you plan to upload, the ID of the account in third-party banking platform, and a provider ID, if required. This lets us determine the expected format of the data and any source-specific requirements.\n\nWhen you use the [*Upload data*](https://docs.codat.io/lending-api#/operations/upload-bank-statement-data) endpoint next, you must upload the data for the account you configured. " - operationId: get-bank-statement-upload-configuration - x-speakeasy-name-override: get-upload-configuration - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/BankStatementUploadConfiguration' - examples: - Codat: - $ref: '#/components/examples/CodatBankStatementUploadConfiguration' - '400': - $ref: '#/components/responses/BadRequest' - '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' - post: - tags: - - Bank statements - summary: Set upload configuration - description: "Use the *Set upload configuration* endpoint to create bank statement upload configuration for the specified data connection. \n\nWith this configuration, you set the source of the data you plan to upload, the ID of the account in third-party banking platform, and a provider ID, if required. This lets us determine the expected format of the data and any source-specific requirements.\n\nEach data connection can only have one configuration for each company and external account ID combination. You will receive a Bad Request response if you try to set it again. " - operationId: set-bank-statement-upload-configuration - x-speakeasy-name-override: set-upload-configuration - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/BankStatementUploadConfiguration' - examples: - Codat: - $ref: '#/components/examples/CodatBankStatementUploadConfiguration' - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/BankStatementUploadConfiguration' - examples: - Codat: - $ref: '#/components/examples/CodatBankStatementUploadConfiguration' - '400': - $ref: '#/components/responses/BadRequest' - '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' - '/companies/{companyId}/connections/{connectionId}/bankStatements/upload/startSession': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - post: - tags: - - Bank statements - summary: Start upload session - description: "Use the *Start upload session* endpoint to initiate a bank statement upload session for a given company.\n\nA session is a one-time process that enables you to upload bank statements to Codat. It will time out after 90 minutes if no data is uploaded. \n\nYou can only have one active session per data type at a time. You can complete or cancel a session using the [*End upload session*](https://docs.codat.io/lending-api#/operations/end-bank-statement-upload-session) endpoint." - operationId: start-bank-statement-upload-session - x-speakeasy-name-override: start-upload-session - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/StartUploadSessionRequest' - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/PullOperation' - '400': - $ref: '#/components/responses/BadRequest' - '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' - '451': - $ref: '#/components/responses/Legal-Reasons' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - '/companies/{companyId}/connections/{connectionId}/data/custom/{customDataIdentifier}': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - - $ref: '#/components/parameters/customDataIdentifier' - get: - summary: List custom data type records - description: |- - The *List custom data type records* endpoint returns a paginated list of records pulled for the specified custom data type you previously configured. - - A [custom data type](https://docs.codat.io/using-the-api/custom-data) is an additional data type you can create that is not included in Codat's standardized data model.s endpoint returns a paginated list of records whose schema is defined [Configure custom data type](https://docs.codat.io/platform-api#/operations/configure-custom-data-type) - operationId: list-custom-data-type-records - parameters: - - $ref: '#/components/parameters/page' - - $ref: '#/components/parameters/pageSize' - tags: - - Custom data type - '/companies/{companyId}/connections/{connectionId}/bankStatements/upload/dataset/{datasetId}/upload': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - - $ref: '#/components/parameters/datasetId' - - $ref: '#/components/parameters/path' - post: - tags: - - Bank statements - summary: Upload data - description: "During an active session, use the **Upload data* endpoint to uploads a page of bank accounts or bank transactions data to the session.\n\nMake sure you created configuration for the account using the [*Set upload configuration*](https://docs.codat.io/lending-api#/operations/set-bank-statement-upload-configuration) endpoint before attempting an upload. " - operationId: upload-bank-statement-data - requestBody: - required: true - content: - application/json: - schema: - oneOf: - - $ref: '#/components/schemas/BankingAccount' - - $ref: '#/components/schemas/BankingTransactions' - - $ref: '#/components/schemas/ThirdPartySchema' - responses: - '200': - description: Success - '400': - $ref: '#/components/responses/BadRequest' - '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' - '/companies/{companyId}/connections/{connectionId}/bankStatements/upload/dataset/{datasetId}/endSession': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/connectionId' - - $ref: '#/components/parameters/datasetId' - post: - tags: - - Bank statements - summary: End upload session - description: |- - Use the *End upload session* endpoint to finalize a bank statement upload session. Include a `status` in the request body to indicate if you want to cancel the processing of the dataset or trigger the ingestion and enrichment of the data. - - A session is a one-time process that enables you to upload bank statements to Codat. It will time out after 90 minutes if no data is uploaded. - operationId: end-bank-statement-upload-session - x-speakeasy-name-override: end-upload-session - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/EndUploadSessionRequest' - responses: - '200': - description: Success - '400': - $ref: '#/components/responses/BadRequest' - '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' - '/companies/{companyId}/reports/{reportType}': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/reportType' - post: - tags: - - Manage reports - summary: Generate report - description: |- - Use the *Generate report* endpoint to initiate the generation of a report specified by the `reportType` parameter. - - This action triggers the system to refresh and pull the necessary data from the company's data sources to ensure the report contains the most up-to-date information. - operationId: generate-report - x-speakeasy-name-override: generate-report - responses: - '202': - description: Accepted (pending) - content: - application/json: - schema: - $ref: '#/components/schemas/ReportOperation' - examples: - Report: - $ref: '#/components/examples/SingleReportExample' - '400': - $ref: '#/components/responses/BadRequest' - '401': - $ref: '#/components/responses/Unauthorized' - '402': - $ref: '#/components/responses/Payment-Required' - '403': - $ref: '#/components/responses/Forbidden' - '404': - $ref: '#/components/responses/Not-Found' - '409': - $ref: '#/components/responses/Conflict' - '429': - $ref: '#/components/responses/Too-Many-Requests' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' - '/companies/{companyId}/reports/{reportType}/{reportId}/status': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/reportType' - - $ref: '#/components/parameters/reportId' - - $ref: '#/components/parameters/maxAge' - get: - tags: - - Manage reports - summary: Get report status - description: |+ - Use the *Get report status* endpoint to return the metadata about report generation, such as its current status, date of request, and date of generation. - - You can either provide the ID of a report or use `latest` as the ID value to get the most recent generated *reportName* report for the company. - - operationId: get-report-status - x-speakeasy-name-override: get-report-status - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/ReportOperation' - examples: - Report: - $ref: '#/components/examples/SingleReportExample' - '400': - $ref: '#/components/responses/BadRequest' - '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' - '/companies/{companyId}/reports/categorizedBankStatement/{reportId}/transactions': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/reportId' - - $ref: '#/components/parameters/maxAge' - - $ref: '#/components/parameters/page' - - $ref: '#/components/parameters/pageSize' - - $ref: '#/components/parameters/query' - - $ref: '#/components/parameters/orderBy' - get: - tags: - - Bank statements - summary: Get categorized bank statement transactions - description: |- - The *Get categorized bank statement transactions* endpoint returns fully categorized bank transactions for a company. Transaction data is obtained from the company's connected bank accounts. - - Before using it, you must call the [Generate report](https://docs.codat.io/lending-api#/operations/generate-report) endpoint of type `categorizedBankStatement`. - operationId: get-categorized-bank-statement-transactions - x-speakeasy-name-override: get-categorized-bank-statement-transactions - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/CustomDataTypeRecords' - '400': - $ref: '#/components/responses/Bad-Request' - $ref: '#/components/schemas/CategorizedBankStatementTransactions' - example: - pageNumber: 1 - pageSize: 100 - totalResults: 2194 - _links: - self: - href: /companies/82458839-6812-49e9-baac-7dcf8c32de1f/reports/categorizedBankStatement/latest/transactions - current: - href: /companies/82458839-6812-49e9-baac-7dcf8c32de1f/reports/categorizedBankStatement/latest/transactions?page=1&pageSize=100 - next: - href: /companies/82458839-6812-49e9-baac-7dcf8c32de1f/reports/categorizedBankStatement/latest/transactions?page=2&pageSize=100 - results: - - sourceRef: - sourceType: Banking - accountRef: - id: 4f78a6b0-e9bb-40f2-82fd-f3a2daa1fd0a - name: Business Current Account - id: ab5e07a0-5578-4d91-8421-2dc72713b74f - date: '2022-11-08T00:00:00' - description: Payment m86SDGpQr3 - amount: -6905.44 - currency: GBP - transactionCategory: - confidence: 52.53 - levels: - - Expense - - Operating - confidences: - - 56 - - 52.53 - platformName: Shopify - counterpartyNames: - - Shopify - modifiedDate: '2022-11-08T12:00:00' - - sourceRef: - sourceType: Banking - accountRef: - id: 4f78a6b0-e9bb-40f2-82fd-f3a2daa1fd0a - name: Business Current Account - id: 9846bbed-46d3-472c-a848-1ce8ebea7213 - date: '2022-11-08T00:00:00' - description: Payment from customer a5c68c7b-6825-46de-bf63-6ad23ef506a4 - amount: 4332.84 - currency: GBP - transactionCategory: - confidence: 88 - levels: - - Expense - confidences: - - 88 - platformName: Amazon - counterpartyNames: - - Amazon - - Amazon Marketplace - modifiedDate: '2022-11-08T12:00:00' - - sourceRef: - sourceType: Banking - accountRef: - id: 809b9470-c9fa-4257-bc9f-06a1dc7b0cbc - name: Business Undeposited Funds - id: 94b213fb-d742-435e-90f1-bfe723a076d5 - date: '2022-11-08T00:00:00' - description: Payment from customer a5c68c7b-6825-46de-bf63-6ad23ef506a4 - amount: 4034.3 - currency: GBP - transactionCategory: - confidence: 61.08 - levels: - - Income - - Revenue - confidences: - - 65 - - 61.08 - platformName: Shopify - counterpartyNames: [] - modifiedDate: '2022-11-08T12:00:00' - - sourceRef: - sourceType: Banking - accountRef: - id: 4f78a6b0-e9bb-40f2-82fd-f3a2daa1fd0a - name: Business Current Account - id: cfceb7ff-eaa2-45b6-aca7-fa0e0b439161 - date: '2022-11-08T00:00:00' - description: Payment to supplier 78792d13-90a0-4ea2-8e07-81c3c893997e - amount: -313.76 - currency: GBP - transactionCategory: - confidence: 40.98 - levels: - - Expense - - CostOfSales - confidences: - - 40.98 - - 99.9 - platformName: Amazon - counterpartyNames: [] - modifiedDate: '2022-11-08T12:00:00' - - sourceRef: - sourceType: Banking - accountRef: - id: 809b9470-c9fa-4257-bc9f-06a1dc7b0cbc - name: Business Undeposited Funds - id: ba814f14-0fe3-41d0-9308-57f40642ac75 - date: '2022-11-08T00:00:00' - description: Payment to supplier 46d2e1fb-b4e9-469c-814a-21ff8105a26e - amount: -614.4 - currency: GBP - transactionCategory: - confidence: 55.84 - levels: - - Income - - Revenue - confidences: - - 55.84 - - 75.5 - platformName: Zettle - counterpartyNames: [] - modifiedDate: '2022-11-08T12:00:00' - - sourceRef: - sourceType: Banking - accountRef: - id: 4f78a6b0-e9bb-40f2-82fd-f3a2daa1fd0a - name: Business Current Account - id: e67cc30e-fd5c-4eea-8365-ec40dfdd3ef6 - date: '2022-11-08T00:00:00' - description: Payment from customer a5c68c7b-6825-46de-bf63-6ad23ef506a4 - amount: 5199.62 - currency: GBP - transactionCategory: - confidence: 57.85 - levels: - - Expense - confidences: - - 57.85 - platformName: Amazon - counterpartyNames: [] - modifiedDate: '2022-11-08T12:00:00' - - sourceRef: - sourceType: Banking - accountRef: - id: 4f78a6b0-e9bb-40f2-82fd-f3a2daa1fd0a - name: Business Current Account - id: e0f08a0b-3575-4dde-98c4-3c854028d2d2 - date: '2022-11-08T00:00:00' - description: Payment to supplier 18ac18dc-945b-4083-9013-e8a100b999fa - amount: -21420.94 - currency: GBP - transactionCategory: - confidence: 70.58 - levels: - - Expense - - Operating - confidences: - - 70.58 - - 100 - platformName: Amazon - counterpartyNames: [] - modifiedDate: '2022-11-08T12:00:00' - - sourceRef: - sourceType: Banking - accountRef: - id: 809b9470-c9fa-4257-bc9f-06a1dc7b0cbc - name: Business Undeposited Funds - id: 4b70d379-8284-4f44-bb37-c7935df950cc - date: '2022-11-08T00:00:00' - description: Payment to supplier 630a3f16-5f01-4986-ae6b-82333ec49449 - amount: -30924.22 - currency: GBP - transactionCategory: - confidence: 48.26 - levels: - - Income - confidences: - - 48.26 - platformName: DoorDash - counterpartyNames: [] - modifiedDate: '2022-11-08T12:00:00' - - sourceRef: - sourceType: Banking - accountRef: - id: 809b9470-c9fa-4257-bc9f-06a1dc7b0cbc - name: Business Undeposited Funds - id: 76b73373-9345-472e-8edf-5be849d797fe - date: '2022-11-08T00:00:00' - description: Payment to supplier bQATU4eSb9 - amount: -568.78 - currency: GBP - transactionCategory: - confidence: 65.21 - levels: - - Income - - Revenue - confidences: - - 65.21 - - 100 - platformName: Uber - counterpartyNames: - - Uber - modifiedDate: '2022-11-08T12:00:00' - - sourceRef: - sourceType: Banking - accountRef: - id: 809b9470-c9fa-4257-bc9f-06a1dc7b0cbc - name: Business Undeposited Funds - id: ee92fd6f-e0f7-4391-85fd-4b50921b973f - date: '2022-11-08T00:00:00' - description: Payment to supplier 9c37eb21-579a-4886-8296-3a853076b7bd - amount: -13050.79 - currency: GBP - transactionCategory: - confidence: 92.33 - levels: - - Income - - Revenue - confidences: - - 92.33 - - 92.33 - platformName: DoorDash - counterpartyNames: - - DoorDash - modifiedDate: '2022-11-08T12:00:00' - '400': - $ref: '#/components/responses/BadRequest' - '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' - '/companies/{companyId}/reports/categorizedBankStatement/{reportId}/accounts': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/reportId' - - $ref: '#/components/parameters/maxAge' - - $ref: '#/components/parameters/page' - - $ref: '#/components/parameters/pageSize' - - $ref: '#/components/parameters/query' - - $ref: '#/components/parameters/orderBy' - get: - tags: - - Bank statements - summary: List categorized bank statement accounts - description: "The *Get categorized bank statement accounts* endpoint returns a list of bank accounts associated with categorized transactions for a company. \n\nBefore using it, you must call the [Generate report](https://docs.codat.io/lending-api#/operations/generate-report) endpoint of type `categorizedBankStatement`." - operationId: list-categorized-bank-statement-accounts - x-speakeasy-name-override: list-categorized-bank-statement-accounts - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/CategorizedBankStatementAccounts' - example: - pageNumber: 1 - pageSize: 10 - totalResults: 15 - _links: - self: - href: /companies/82458839-6812-49e9-baac-7dcf8c32de1f/reports/categorizedBankStatement/latest/transactions - current: - href: /companies/82458839-6812-49e9-baac-7dcf8c32de1f/reports/categorizedBankStatement/latest/transactions?page=1&pageSize=10 - next: - href: /companies/82458839-6812-49e9-baac-7dcf8c32de1f/reports/categorizedBankStatement/latest/transactions?page=2&pageSize=10 - results: - - sourceRef: - sourceType: Banking - platformName: Banking Sandbox - accountProvider: Lloyds Bank - accountName: Business Savings Account - accountType: Debit - currency: GBP - currentBalance: 0 - - sourceRef: - sourceType: Banking - platformName: Banking Sandbox - accountProvider: Lloyds Bank - accountName: Banking - Business Credit Card - accountType: Credit - currency: GBP - currentBalance: 0 - - sourceRef: - sourceType: Banking - platformName: Banking Sandbox - accountProvider: Lloyds Bank - accountName: Business Undeposited Funds - accountType: Debit - currency: GBP - currentBalance: 0 - - sourceRef: - sourceType: Banking - platformName: Banking Sandbox - accountProvider: Lloyds Bank - accountName: Business Current Account - accountType: Debit - currency: GBP - currentBalance: 0 - '400': - $ref: '#/components/responses/BadRequest' - '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' - '/companies/{companyId}/reports/categorizedBankStatement/{reportId}/excel': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/reportId' - - $ref: '#/components/parameters/maxAge' - get: - tags: - - Bank statements - summary: Download categorized bank statement Excel - description: "Use the *Download categorized bank statement Excel* endpoint to download the categorized bank statement Excel file. \n\nBefore using it, you must call the [Generate report](https://docs.codat.io/lending-api#/operations/generate-report) endpoint of type `categorizedBankStatement`." - operationId: download-categorized-bank-statement-excel - x-speakeasy-name-override: download-categorized-bank-statement-excel - responses: - '200': - description: OK - content: - application/octet-stream: - schema: {} - '400': - $ref: '#/components/responses/BadRequest' - '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' - '/companies/{companyId}/reports/creditModel/{reportId}/excel': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/reportId' - - $ref: '#/components/parameters/maxAge' - get: - tags: - - Financial summary - summary: Download credit model Excel - description: "> **Available as beta release**\n>\n> This endpoint is part of a beta release. Please contact your account manager if you want to enable it.\n\nUse the *Download Credit Model Excel* endpoint to download the credit model Excel file. \n\nBefore using it, you must call the [Generate report](https://docs.codat.io/lending-api#/operations/generate-report) endpoint of type `creditModel`." - operationId: download-credit-model-excel - x-speakeasy-name-override: download-credit-model-excel - responses: - '200': - description: OK - content: - application/octet-stream: - schema: {} - '400': - $ref: '#/components/responses/BadRequest' - '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' - '/companies/{companyId}/reports': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/page' - - $ref: '#/components/parameters/pageSize' - - $ref: '#/components/parameters/query' - - $ref: '#/components/parameters/orderBy' - get: - tags: - - Manage reports - summary: List reports - description: 'Use the *List reports* endpoint to return details (such as generation''s current status, date of request, and date of generation) about all reports generated for a company. The query parameter can be used to filter the results.' - operationId: list-reports - x-speakeasy-name-override: list-reports - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/ReportOperation/definitions/reports' - example: - pageNumber: 1 - pageSize: 4 - totalResults: 15 - _links: - self: - href: /companies/0f591937-4ea9-48c4-847a-fe65fb24bb41/reports - current: - href: /companies/0f591937-4ea9-48c4-847a-fe65fb24bb41/reports?page=1&pageSize=4 - next: - href: /companies/0f591937-4ea9-48c4-847a-fe65fb24bb41/reports?page=2&pageSize=4 - results: - - id: c0d52c82-777f-4309-81a0-d935aea0562b - status: InProgress - type: categorizedBankStatement - requested: '2024-10-15T07:00:00Z' - updated: '2024-10-15T15:31:45Z' - - id: 79ef0451-edbd-4108-82ff-0b991444f1ec - status: Complete - type: categorizedBankStatement - requested: '2024-09-10T05:50:00Z' - updated: '2024-09-11T14:37:12Z' - - id: ae125b45-ed37-4bb4-bb4a-d55383fd56b2 - status: Complete - type: categorizedBankStatement - requested: '2024-09-06T07:47:10Z' - updated: '2024-09-20T14:42:15Z' - - id: ebfaf90c-31fe-407f-a016-bc2b3e60894a - status: Error - type: categorizedBankStatement - requested: '2024-07-15T04:45:14Z' - updated: '2024-07-15T17:41:45Z' - errorMessage: Failed to generate the report because.... - '400': - $ref: '#/components/responses/BadRequest' - '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' - '/companies/{companyId}/reports/creditModel/{reportId}/financialSummary': - parameters: - - $ref: '#/components/parameters/companyId' - - $ref: '#/components/parameters/reportId' - get: - tags: - - Financial summary - summary: Get financial summary insights - description: |- - > **Available as beta release** - > - > This endpoint is part of a beta release. Please contact your account manager if you want to enable it. - - Financial summary insights provide high-level indicators about the accuracy and completeness of a business’s financial data. These insights include: - - Closed Books Indicator – An estimate of the most recent accounting period officially closed by a business - - Accounting Score – An evaluation of the quality and completeness of a business’s bookkeeping - - Before accessing this endpoint, you must call the [Generate report](https://docs.codat.io/lending-api#/operations/generate-report) endpoint of type `creditModel`. - - > Please note that missing elements might be disabled for the account. Please contact account manager for more details. - operationId: get-financial-summary - x-speakeasy-name-override: get-financial-summary - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/FinancialSummary' - example: - booksClosedDate: - date: '2025-05-31T00:00:00Z' - reason: - - One or more accounts show a deviation from expected movements for March 2025 - - One of the marketing accounts haven't been booked for February 2025 - - One of the inventory accounts haven't been booked for March 2025 - accountingScore: - score: 90 - reason: - - Balance sheet is unbalanced. - - Negative Tangible Assets on Balance Sheet - - Negative Accounts Receivable on Balance Sheet - '204': - description: No content - '400': - $ref: '#/components/responses/BadRequest' - '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' - '451': - $ref: '#/components/responses/Legal-Reasons' - '500': - $ref: '#/components/responses/Internal-Server-Error' - '503': - $ref: '#/components/responses/Service-Unavailable' -webhooks: - company.created: - post: - description: Called when a company is created in Codat. - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/CompanyWebhook' - examples: - Company created: - value: - id: ba29118f-5406-4e59-b05c-ba307ca38d01 - eventType: company.created - generatedDate: '2024-08-08T17:10:34.015Z' - payload: - id: 0498e921-9b53-4396-a412-4f2f5983b0a2 - name: Bank of Dave - description: Requested a loan for refurb. - redirect: 'https://link.codat.io/company/0498e921-9b53-4396-a412-4f2f5983b0a2' - lastSync: '2022-01-01T12:00:00.000Z' - created: '2022-01-01T12:00:00.000Z' - tags: - customerRegion: us - uid: 335a086e-8563-4b03-94e3-39544225ecb6 - responses: - '200': - description: Return a 200 status to indicate that the webhook was received successfully. - company.deleted: - post: - description: Called when a company is deleted in Codat. - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/CompanyWebhook' - examples: - Company deleted: - value: - id: ba29118f-5406-4e59-b05c-ba307ca38d01 - eventType: company.deleted - generatedDate: '2024-08-08T17:10:34.015Z' - payload: - id: 0498e921-9b53-4396-a412-4f2f5983b0a2 - name: Bank of Dave - description: Requested a loan for refurb. - redirect: 'https://link.codat.io/company/0498e921-9b53-4396-a412-4f2f5983b0a2' - lastSync: '2022-01-01T12:00:00.000Z' - created: '2022-01-01T12:00:00.000Z' - tags: - customerRegion: uk - uid: f6b0c253-16c7-4da1-a0c5-9c871e9c9d6c - responses: - '200': - description: Return a 200 status to indicate that the webhook was received successfully. - connection.created: - post: - description: Called when a connection is created by the SMB. - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ConnectionWebhook' - examples: - Connection created: - value: - id: ba29118f-5406-4e59-b05c-ba307ca38d01 - eventType: connection.created - generatedDate: '2024-08-08T17:10:34.015Z' - payload: - referenceCompany: - id: 0498e921-9b53-4396-a412-4f2f5983b0a2 - name: Bank of Dave - description: internal_id_mxO7rLfo - links: - portal: 'https://app.codat.io/companies/0498e921-9b53-4396-a412-4f2f5983b0a2/summary' - tags: - customerRegion: us - uid: 335a086e-8563-4b03-94e3-39544225ecb6 - connection: - id: ee2eb431-c0fa-4dc9-93fa-d29781c12bcd - integrationId: bf083d72-62c7-493e-aec9-81b4dbba7e2c - integrationKey: dfxm - sourceId: bdd831ce-eebd-4896-89a7-20e5ee8989ee - platformName: Basiq - linkUrl: 'https://link-api.codat.io/companies/0498e921-9b53-4396-a412-4f2f5983b0a2/connections/ee2eb431-c0fa-4dc9-93fa-d29781c12bcd/start' - status: PendingAuth - lastSync: 2022-10-27T10:22:43.646Z - created: 2022-10-27T09:53:29.000Z - sourceType: Banking - responses: - '200': - description: Return a 200 status to indicate that the webhook was received successfully. - connection.connected: - post: - description: Called when a connection is successfully linked by the SMB. - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ConnectionWebhook' - examples: - Connection connected: - value: - id: ba29118f-5406-4e59-b05c-ba307ca38d01 - eventType: connection.connected - generatedDate: '2024-08-08T17:10:34.015Z' - payload: - referenceCompany: - id: 0498e921-9b53-4396-a412-4f2f5983b0a2 - name: Bank of Dave - description: internal_id_mxO7rLfo - links: - portal: 'https://app.codat.io/companies/0498e921-9b53-4396-a412-4f2f5983b0a2/summary' - tags: - customerRegion: us - uid: 335a086e-8563-4b03-94e3-39544225ecb6 - connection: - id: ee2eb431-c0fa-4dc9-93fa-d29781c12bcd - integrationId: bf083d72-62c7-493e-aec9-81b4dbba7e2c - integrationKey: dfxm - sourceId: bdd831ce-eebd-4896-89a7-20e5ee8989ee - platformName: Basiq - linkUrl: 'https://link-api.codat.io/companies/0498e921-9b53-4396-a412-4f2f5983b0a2/connections/ee2eb431-c0fa-4dc9-93fa-d29781c12bcd/start' - status: Linked - lastSync: 2022-10-27T10:22:43.646Z - created: 2022-10-27T09:53:29.000Z - sourceType: Banking - responses: - '200': - description: Return a 200 status to indicate that the webhook was received successfully. - connection.failed: - post: - description: Called when a connection failed linking to the SMB. - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ConnectionWebhook' - examples: - Connection failed: - value: - id: ba29118f-5406-4e59-b05c-ba307ca38d01 - eventType: connection.failed - generatedDate: '2024-08-08T17:10:34.015Z' - payload: - referenceCompany: - id: 0498e921-9b53-4396-a412-4f2f5983b0a2 - name: Bank of Dave - description: internal_id_mxO7rLfo - links: - portal: 'https://app.codat.io/companies/0498e921-9b53-4396-a412-4f2f5983b0a2/summary' - tags: - customerRegion: us - uid: 335a086e-8563-4b03-94e3-39544225ecb6 - connection: - id: ee2eb431-c0fa-4dc9-93fa-d29781c12bcd - integrationId: bf083d72-62c7-493e-aec9-81b4dbba7e2c - integrationKey: dfxm - sourceId: bdd831ce-eebd-4896-89a7-20e5ee8989ee - platformName: Basiq - linkUrl: 'https://link-api.codat.io/companies/0498e921-9b53-4396-a412-4f2f5983b0a2/connections/ee2eb431-c0fa-4dc9-93fa-d29781c12bcd/start' - status: PendingAuth - created: 2022-10-27T09:53:29.000Z - sourceType: Banking - dataConnectionErrors: - - statusCode: '403' - statusText: User cancelled linking - errorMessage: User cancelled - erroredOnUtc: 2022-10-27T09:53:29.000Z - status: Active - responses: - '200': - description: Return a 200 status to indicate that the webhook was received successfully. - connection.disconnected: - post: - description: Called when a connection is disconnected either due to being unlinked or de-authorized by the SMB or integration. - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ConnectionWebhook' - examples: - Unlinked: - value: - id: ba29118f-5406-4e59-b05c-ba307ca38d01 - eventType: connection.disconnected - generatedDate: '2024-08-08T17:10:34.015Z' - payload: - referenceCompany: - id: 0498e921-9b53-4396-a412-4f2f5983b0a2 - name: Bank of Dave - description: internal_id_mxO7rLfo - links: - portal: 'https://app.codat.io/companies/0498e921-9b53-4396-a412-4f2f5983b0a2/summary' - tags: - customerRegion: us - uid: 335a086e-8563-4b03-94e3-39544225ecb6 - connection: - id: ee2eb431-c0fa-4dc9-93fa-d29781c12bcd - integrationId: bf083d72-62c7-493e-aec9-81b4dbba7e2c - integrationKey: dfxm - sourceId: bdd831ce-eebd-4896-89a7-20e5ee8989ee - platformName: Basiq - linkUrl: 'https://link-api.codat.io/companies/0498e921-9b53-4396-a412-4f2f5983b0a2/connections/ee2eb431-c0fa-4dc9-93fa-d29781c12bcd/start' - status: Unlinked - lastSync: 2022-10-27T10:22:43.646Z - created: 2022-10-27T09:53:29.000Z - sourceType: Banking - De-authorized: - value: - id: ba29118f-5406-4e59-b05c-ba307ca38d01 - type: connection.disconnected - generatedDate: '2024-08-08T17:10:34.015Z' - payload: - referenceCompany: - id: 0498e921-9b53-4396-a412-4f2f5983b0a2 - name: Bank of Dave - description: internal_id_mxO7rLfo - links: - portal: 'https://app.codat.io/companies/0498e921-9b53-4396-a412-4f2f5983b0a2/summary' - tags: - customerRegion: us - uid: 335a086e-8563-4b03-94e3-39544225ecb6 - connection: - id: ee2eb431-c0fa-4dc9-93fa-d29781c12bcd - integrationId: bf083d72-62c7-493e-aec9-81b4dbba7e2c - integrationKey: dfxm - sourceId: bdd831ce-eebd-4896-89a7-20e5ee8989ee - platformName: Basiq - linkUrl: 'https://link-api.codat.io/companies/0498e921-9b53-4396-a412-4f2f5983b0a2/connections/ee2eb431-c0fa-4dc9-93fa-d29781c12bcd/start' - status: Deauthorized - lastSync: 2022-10-27T10:22:43.646Z - created: 2022-10-27T09:53:29.000Z - sourceType: Banking - dataConnectionErrors: - - statusCode: '401' - statusText: The integration de-authorized access to the connection. - errorMessage: The integration de-authorized access to the connection. - erroredOnUtc: 2022-12-27T09:53:29.000Z - status: Active - responses: - '200': - description: Return a 200 status to indicate that the webhook was received successfully. - connection.reconnected: - post: - description: Called when a connection is reconnected after becoming disconnected. - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ConnectionWebhook' - examples: - Reconnected: - value: - id: ba29118f-5406-4e59-b05c-ba307ca38d01 - eventType: connection.reconnected - generatedDate: '2024-08-08T17:10:34.015Z' - payload: - referenceCompany: - id: 0498e921-9b53-4396-a412-4f2f5983b0a2 - name: Bank of Dave - description: internal_id_mxO7rLfo - links: - portal: 'https://app.codat.io/companies/0498e921-9b53-4396-a412-4f2f5983b0a2/summary' - tags: - customerRegion: us - uid: 335a086e-8563-4b03-94e3-39544225ecb6 - connection: - id: ee2eb431-c0fa-4dc9-93fa-d29781c12bcd - integrationId: bf083d72-62c7-493e-aec9-81b4dbba7e2c - integrationKey: dfxm - sourceId: bdd831ce-eebd-4896-89a7-20e5ee8989ee - platformName: Basiq - linkUrl: 'https://link-api.codat.io/companies/0498e921-9b53-4396-a412-4f2f5983b0a2/connections/ee2eb431-c0fa-4dc9-93fa-d29781c12bcd/start' - status: Linked - lastSync: 2022-10-27T10:22:43.646Z - created: 2022-10-27T09:53:29.000Z - sourceType: Banking - responses: - '200': - description: Return a 200 status to indicate that the webhook was received successfully. - connection.deleted: - post: - description: Called when a connection is deleted. - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ConnectionWebhook' - examples: - Deleted: - value: - id: ba29118f-5406-4e59-b05c-ba307ca38d01 - eventType: connection.deleted - generatedDate: '2024-08-08T17:10:34.015Z' - payload: - referenceCompany: - id: 0498e921-9b53-4396-a412-4f2f5983b0a2 - name: Bank of Dave - description: internal_id_mxO7rLfo - links: - portal: 'https://app.codat.io/companies/0498e921-9b53-4396-a412-4f2f5983b0a2/summary' - tags: - customerRegion: us - uid: 335a086e-8563-4b03-94e3-39544225ecb6 - connection: - id: ee2eb431-c0fa-4dc9-93fa-d29781c12bcd - integrationId: bf083d72-62c7-493e-aec9-81b4dbba7e2c - integrationKey: dfxm - sourceId: bdd831ce-eebd-4896-89a7-20e5ee8989ee - platformName: Basiq - linkUrl: 'https://link-api.codat.io/companies/0498e921-9b53-4396-a412-4f2f5983b0a2/connections/ee2eb431-c0fa-4dc9-93fa-d29781c12bcd/start' - status: Linked - lastSync: 2022-10-27T10:22:43.646Z - created: 2022-10-27T09:53:29.000Z - sourceType: Banking - responses: - '200': - description: Return a 200 status to indicate that the webhook was received successfully. - read.completed: - post: - description: Called when the fetch of data types for a product has completed. - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ReadCompletedWebhook' - examples: - Read completed: - value: - id: 743ec94a-8aa4-44bb-8bd4-e1855ee0e74b - eventType: read.completed - generatedDate: 2022-10-23T00:00:00.000Z - payload: - referenceCompany: - id: 0498e921-9b53-4396-a412-4f2f5983b0a2 - name: Toft stores - description: Requested early access to the new financing scheme. - links: - portal: 'https://app.codat.io/companies/0498e921-9b53-4396-a412-4f2f5983b0a2/summary' - modifiedFromDate: 2022-10-23T00:00:00.000Z - dataTypes: - - connectionId: 2e9d2c44-f675-40ba-8049-353bfcb5e171 - dataType: invoices - recordsModified: false - status: Complete - responses: - '200': - description: Return a 200 status to indicate that the webhook was received successfully. - read.completed.initial: - post: - description: Called when the initial fetch of data types for a product has been completed. - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ReadCompletedWebhook' - examples: - Initial: - value: - id: 743ec94a-8aa4-44bb-8bd4-e1855ee0e74b - eventType: read.completed.initial - generatedDate: 2022-10-23T00:00:00.000Z - payload: - referenceCompany: - id: 0498e921-9b53-4396-a412-4f2f5983b0a2 - name: Toft stores - description: Requested early access to the new financing scheme. - links: - portal: 'https://app.codat.io/companies/0498e921-9b53-4396-a412-4f2f5983b0a2/summary' - modifiedFromDate: 2022-10-23T00:00:00.000Z - dataTypes: - - connectionId: 2e9d2c44-f675-40ba-8049-353bfcb5e171 - dataType: invoices - recordsModified: false - status: Complete - responses: - '200': - description: Return a 200 status to indicate that the webhook was received successfully. - '{dataType}.write.successful': - post: - description: "Indicates that a `dataType` has been successfully created, updated, deleted, or had an attachment uploaded in the accounting software.\n\nCodat now refers to push operations as write requests.\n\nFor example, to subscribe to events where a bill is written into the accounting software, use the `bills.write.successful` webhook.\n\n### Supported data types and write types\n\n| `dataType` | Create | Update | Delete | UploadAttachment |\n|------------------|---------|---------|---------|------------------|\n| bankAccounts | ✅ | ✅ | - | - | \n| bankTransactions | ✅ | - | - | - |\n| billCreditNotes | ✅ | ✅ | - | ✅ | \n| billPayments | ✅ | - | ✅ | - | \n| bills | ✅ | ✅ | ✅ | ✅ | \n| chartOfAccounts | ✅ | - | - | - | \n| creditNotes | ✅ | ✅ | - | - | \n| customers | ✅ | ✅ | - | - | \n| directCosts | ✅ | - | ✅ | ✅ | \n| directIncomes | ✅ | - | - | ✅ | \n| invoices | ✅ | ✅ | ✅ | ✅ | \n| items | ✅ | - | - | - | \n| journalEntries | ✅ | - | ✅ | - | \n| journals | ✅ | - | - | - | \n| payments | ✅ | - | - | - | \n| purchaseOrders | ✅ | ✅ | - | - | \n| suppliers | ✅ | ✅ | - | - | \n| transfers | ✅ | - | - | ✅ | \n" - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/DataTypeWriteWebhook' - examples: - Record: - value: - id: bae71d36-ff47-420a-b4a6-f8c9ddf41140 - eventType: '{dataType}.write.successful' - generatedDate: 2023-05-03T10:00:23.000Z - payload: - id: a9367074-b5c3-42c4-9be4-be129f43577e - type: Create - referenceCompany: - id: 70af3071-65d9-4ec3-b3cb-5283e8d55dac - name: Toft stores - description: cust_1MtJUT2eZvKYlo2CNaw2HvEv - connectionId: 12571faf-0898-47e7-afdd-0fe9eb0a9bf5 - requestedOnDate: 2023-05-03T10:00:00.000Z - completedOnDate: 2023-05-03T10:00:23.000Z - status: Success - record: - id: bil_1Nispe2eZvKYlo2Cd31jOCgZ - Attachment: - value: - id: bae71d36-ff47-420a-b4a6-f8c9ddf41140 - eventType: '{dataType}.write.successful' - generatedDate: 2023-05-03T10:00:23.000Z - payload: - id: a9367074-b5c3-42c4-9be4-be129f43577e - type: UploadAttachment - referenceCompany: - id: 70af3071-65d9-4ec3-b3cb-5283e8d55dac - name: Toft stores - description: cust_1MtJUT2eZvKYlo2CNaw2HvEv - connectionId: 12571faf-0898-47e7-afdd-0fe9eb0a9bf5 - requestedOnDate: 2023-05-03T10:00:00.000Z - completedOnDate: 2023-05-03T10:00:23.000Z - status: Success - record: - id: bil_1Nispe2eZvKYlo2Cd31jOCgZ - attachmentId: att_1AZtxr2eZvKYlo2CJDX8whov - responses: - '200': - description: Return a 200 status to indicate that the webhook was received. - '{dataType}.write.unsuccessful': - post: - description: "Indicates that a `dataType` has not been successfully created, updated, deleted, or had an attachment uploaded in the accounting software.\n\nCodat now refers to push operations as write requests.\n\nFor example, to subscribe to events where a bill is written into the accounting software, use the `bills.write.unsuccessful` webhook.\n\n### Supported data types and write types\n\n| `dataType` | Create | Update | Delete | UploadAttachment |\n|------------------|---------|---------|---------|------------------|\n| bankAccounts | ✅ | ✅ | - | - | \n| bankTransactions | ✅ | - | - | - |\n| billCreditNotes | ✅ | ✅ | - | ✅ | \n| billPayments | ✅ | - | ✅ | - | \n| bills | ✅ | ✅ | ✅ | ✅ | \n| chartOfAccounts | ✅ | - | - | - | \n| creditNotes | ✅ | ✅ | - | - | \n| customers | ✅ | ✅ | - | - | \n| directCosts | ✅ | - | ✅ | ✅ | \n| directIncomes | ✅ | - | - | ✅ | \n| invoices | ✅ | ✅ | ✅ | ✅ | \n| items | ✅ | - | - | - | \n| journalEntries | ✅ | - | ✅ | - | \n| journals | ✅ | - | - | - | \n| payments | ✅ | - | - | - | \n| purchaseOrders | ✅ | ✅ | - | - | \n| suppliers | ✅ | ✅ | - | - | \n| transfers | ✅ | - | - | ✅ | \n" - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/DataTypeWriteWebhook' - examples: - Record: - value: - id: bae71d36-ff47-420a-b4a6-f8c9ddf41140 - eventType: '{dataType}.write.unsuccessful' - generatedDate: 2023-05-03T10:00:23.000Z - payload: - id: a9367074-b5c3-42c4-9be4-be129f43577e - type: Update - referenceCompany: - id: 70af3071-65d9-4ec3-b3cb-5283e8d55dac - name: Toft stores - description: cust_1MtJUT2eZvKYlo2CNaw2HvEv - connectionId: 12571faf-0898-47e7-afdd-0fe9eb0a9bf5 - requestedOnDate: 2023-05-03T10:00:00.000Z - completedOnDate: 2023-05-03T10:00:23.000Z - status: Failed - Record timed out: - value: - id: bae71d36-ff47-420a-b4a6-f8c9ddf41140 - eventType: '{dataType}.write.unsuccessful' - generatedDate: 2023-05-03T10:00:23.000Z - payload: - id: a9367074-b5c3-42c4-9be4-be129f43577e - type: Delete - referenceCompany: - id: 70af3071-65d9-4ec3-b3cb-5283e8d55dac - name: Toft stores - description: cust_1MtJUT2eZvKYlo2CNaw2HvEv - connectionId: 12571faf-0898-47e7-afdd-0fe9eb0a9bf5 - requestedOnDate: 2023-05-03T10:00:00.000Z - completedOnDate: 2023-05-03T10:00:23.000Z - status: TimedOut - Attachment: - value: - id: bae71d36-ff47-420a-b4a6-f8c9ddf41140 - eventType: '{dataType}.write.unsuccessful' - generatedDate: 2023-05-03T10:00:23.000Z - payload: - id: a9367074-b5c3-42c4-9be4-be129f43577e - type: UploadAttachment - referenceCompany: - id: 70af3071-65d9-4ec3-b3cb-5283e8d55dac - name: Toft stores - description: cust_1MtJUT2eZvKYlo2CNaw2HvEv - connectionId: 12571faf-0898-47e7-afdd-0fe9eb0a9bf5 - requestedOnDate: 2023-05-03T10:00:00.000Z - completedOnDate: 2023-05-03T10:00:23.000Z - status: TimedOut - record: - id: bil_1Nispe2eZvKYlo2Cd31jOCgZ - responses: - '200': - description: Return a 200 status to indicate that the webhook was received. - Account categories updated: - post: - requestBody: - description: Triggered when a company's accounts are categorized. - content: - application/json: - schema: - $ref: '#/components/schemas/AccountCategoriesUpdatedWebhook' - responses: - '200': - description: Return a 200 status to indicate that the webhook was received successfully. - client.rateLimit.reached: - post: - description: Called when your client’s request count to Codat's API surpasses the allocated quota. - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ClientRateLimitWebhook' - examples: - Reached: - value: - id: 743ec94a-8aa4-44bb-8bd4-e1855ee0e74b - eventType: client.rateLimit.reached - generatedDate: '2024-09-01T00:00:00Z' - payload: - dailyQuota: 12000 - quotaRemaining: 0 - expiryDate: '2024-09-01T12:14:14Z' - responses: - '200': - description: Return a 200 status to indicate that the webhook was received successfully. - client.rateLimit.reset: - post: - description: 'Called when your client''s rate limit quota is reset, allowing additional requests to Codat''s API.' - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ClientRateLimitWebhook' - examples: - Reset: - value: - id: 743ec94a-8aa4-44bb-8bd4-e1855ee0e74b - eventType: client.rateLimit.reset - generatedDate: '2024-09-01T00:00:00Z' - payload: - dailyQuota: 12000 - quotaRemaining: 11993 - expiryDate: '2024-09-01T23:59:99Z' - responses: - '200': - description: Return a 200 status to indicate that the webhook was received successfully. -components: - schemas: - ApiKeyDetails: - title: API key details - description: Details of the API key. - reports.categorizedBankStatement.generate.successful: - post: - description: Called when a categorized bank statement is successfully generated for a company. - requestBody: - content: - application/json: - schema: - $ref: '#/webhooks/reports.creditModel.generate.successful/post/requestBody/content/application~1json/schema' - examples: - Successful: - value: - id: bae71d36-ff47-420a-b4a6-f8c9ddf41140 - eventType: reports.categorizedBankStatement.generate.successful - generatedDate: '2023-05-03T10:00:23.000Z' - payload: - id: bb42ce7e-720a-4ac5-b640-f24f53ff47c8 - referenceCompany: - id: 0498e921-9b53-4396-a412-4f2f5983b0a2 - name: Bank of Dave - description: internal_id_mxO7rLfo - links: - portal: 'https://app.codat.io/companies/0498e921-9b53-4396-a412-4f2f5983b0a2/summary' - tags: - customerRegion: us - uid: 335a086e-8563-4b03-94e3-39544225ecb6 - responses: - '200': - description: Return a 200 status to indicate that the webhook was received successfully. - reports.categorizedBankStatement.generate.unsuccessful: - post: - description: Called when a categorized bank statement has failed to be generated for a company. - requestBody: - content: - application/json: - schema: - $ref: '#/webhooks/reports.creditModel.generate.successful/post/requestBody/content/application~1json/schema' - examples: - Unsuccessful: - value: - id: bae71d36-ff47-420a-b4a6-f8c9ddf41140 - eventType: reports.categorizedBankStatement.generate.unsuccessful - generatedDate: '2023-05-03T10:00:23.000Z' - payload: - id: bb42ce7e-720a-4ac5-b640-f24f53ff47c8 - referenceCompany: - id: 0498e921-9b53-4396-a412-4f2f5983b0a2 - name: Bank of Dave - description: internal_id_mxO7rLfo - links: - portal: 'https://app.codat.io/companies/0498e921-9b53-4396-a412-4f2f5983b0a2/summary' - tags: - customerRegion: us - uid: 335a086e-8563-4b03-94e3-39544225ecb6 - responses: - '200': - description: Return a 200 status to indicate that the webhook was received successfully. - reports.creditModel.generate.successful: - post: - description: Called when a credit model report is successfully generated. - requestBody: - content: - application/json: - schema: - title: Report generation webhook - type: object - properties: - id: - type: string - format: uuid - example: ba29118f-5406-4e59-b05c-ba307ca38d01 - description: Unique identifier of the event. - eventType: - type: string - description: The type of event. - examples: - - reports.categorizedBankStatement.generate.successful - - reports.creditModel.generate.successful - generatedDate: - $ref: '#/components/schemas/DateTime' - description: The date time in UTC the event was generated in Codat. - payload: - $ref: '#/webhooks/reports.creditModel.generate.successful/post/requestBody/content/application~1json/schema/definitions/ReportGenerationPayload' - definitions: - ReportGenerationPayload: - title: Report generation payload - type: object - properties: - id: - type: string - format: uuid - example: a78e2625-7190-4d94-ae3b-071320451026 - description: Unique identifier of the report. - referenceCompany: - $ref: '#/components/schemas/Company/definitions/companyReference' - examples: - Successful: - value: - id: bae71d36-ff47-420a-b4a6-f8c9ddf41140 - eventType: reports.creditModel.generate.successful - generatedDate: '2023-05-03T10:00:23.000Z' - payload: - id: bb42ce7e-720a-4ac5-b640-f24f53ff47c8 - referenceCompany: - id: 0498e921-9b53-4396-a412-4f2f5983b0a2 - name: Bank of Dave - description: Looking for a loan. - links: - portal: 'https://app.codat.io/companies/0498e921-9b53-4396-a412-4f2f5983b0a2/summary' - tags: - customerRegion: us - uid: 335a086e-8563-4b03-94e3-39544225ecb6 - responses: - '200': - description: Return a 200 status to indicate that the webhook was received successfully. - reports.creditModel.generate.unsuccessful: - post: - description: Called when a credit model report has failed to be generated for a company. - requestBody: - content: - application/json: - schema: - $ref: '#/webhooks/reports.creditModel.generate.successful/post/requestBody/content/application~1json/schema' - examples: - Unsuccessful: - value: - id: bae71d36-ff47-420a-b4a6-f8c9ddf41140 - eventType: reports.creditModel.generate.unsuccessful - generatedDate: '2023-05-03T10:00:23.000Z' - payload: - id: bb42ce7e-720a-4ac5-b640-f24f53ff47c8 - referenceCompany: - id: 0498e921-9b53-4396-a412-4f2f5983b0a2 - name: Bank of Dave - description: Looking for a loan. - links: - portal: 'https://app.codat.io/companies/0498e921-9b53-4396-a412-4f2f5983b0a2/summary' - tags: - customerRegion: us - uid: 335a086e-8563-4b03-94e3-39544225ecb6 - responses: - '200': - description: Return a 200 status to indicate that the webhook was received successfully. -components: - schemas: - AccountCategoriesUpdatedWebhook: - title: Account categories updated webhook - description: Webhook request body for the "Account categories updated" event. - x-internal: true - type: object - properties: - ClientId: - title: Client ID - type: string - format: uuid - description: Unique identifier for your client in Codat. - ClientName: - type: string - description: Name of your client in Codat. - CompanyId: - $ref: '#/components/parameters/companyId/schema' - DataConnectionId: - $ref: '#/components/parameters/connectionId/schema' - RuleId: - type: string - format: uuid - description: Unique identifier for the rule. - deprecated: true - RuleType: - type: string - x-stoplight: - id: 34d52a089f08a - description: The type of rule. - AlertId: - type: string - format: uuid - description: Unique identifier of the webhook event. - Message: - type: string - description: A human-readable message about the webhook. - Data: - $ref: '#/components/schemas/AccountCategoriesUpdatedWebhook/definitions/AccountCategoriesUpdatedWebhookData' - definitions: - AccountCategoriesUpdatedWebhookData: - type: object - title: Account categories updated webhook data - properties: - modifiedDate: - $ref: '#/components/schemas/SourceAccountV2/properties/feedStartDate' - description: The date on which the company's account categories were last modified in Codat. - examples: - - ClientId: bae71d36-ff47-420a-b4a6-f8c9ddf41140 - ClientName: Bank of Dave - CompanyId: 8a210b68-6988-11ed-a1eb-0242ac120002 - DataConnectionId: 2e9d2c44-f675-40ba-8049-353bfcb5e171 - RuleId: 70af3071-65d9-4ec3-b3cb-5283e8d55dac - RuleType: Account Categories Updated - AlertId: a9367074-b5c3-42c4-9be4-be129f43577e - Message: Account categories updated for company f1c35bdc-1546-41b9-baf4-3f31135af968. - Data: - modifiedDate: '2019-08-24T14:15:22Z' - AccountingAccount: - title: 'Accounting: Account' - description: "\uFEFF\x3E\x20\x2A\x2A\x4C\x61\x6E\x67\x75\x61\x67\x65\x20\x74\x69\x70\x3A\x2A\x2A\x20\x41\x63\x63\x6F\x75\x6E\x74\x73\x20\x61\x72\x65\x20\x61\x6C\x73\x6F\x20\x72\x65\x66\x65\x72\x72\x65\x64\x20\x74\x6F\x20\x61\x73\x20\x2A\x2A\x63\x68\x61\x72\x74\x20\x6F\x66\x20\x61\x63\x63\x6F\x75\x6E\x74\x73\x2A\x2A\x2C\x20\x2A\x2A\x6E\x6F\x6D\x69\x6E\x61\x6C\x20\x61\x63\x63\x6F\x75\x6E\x74\x73\x2A\x2A\x2C\x20\x61\x6E\x64\x20\x2A\x2A\x67\x65\x6E\x65\x72\x61\x6C\x20\x6C\x65\x64\x67\x65\x72\x2A\x2A\x2E\n\n\x23\x23\x20\x4F\x76\x65\x72\x76\x69\x65\x77\n\n\x41\x63\x63\x6F\x75\x6E\x74\x73\x20\x61\x72\x65\x20\x74\x68\x65\x20\x63\x61\x74\x65\x67\x6F\x72\x69\x65\x73\x20\x61\x20\x62\x75\x73\x69\x6E\x65\x73\x73\x20\x75\x73\x65\x73\x20\x74\x6F\x20\x72\x65\x63\x6F\x72\x64\x20\x61\x63\x63\x6F\x75\x6E\x74\x69\x6E\x67\x20\x74\x72\x61\x6E\x73\x61\x63\x74\x69\x6F\x6E\x73\x2E\x20\x46\x72\x6F\x6D\x20\x74\x68\x65\x20\x41\x63\x63\x6F\x75\x6E\x74\x73\x20\x65\x6E\x64\x70\x6F\x69\x6E\x74\x73\x2C\x20\x79\x6F\x75\x20\x63\x61\x6E\x20\x72\x65\x74\x72\x69\x65\x76\x65\x20\x61\x20\x6C\x69\x73\x74\x20\x6F\x66\x20\x61\x6C\x6C\x20\x61\x63\x63\x6F\x75\x6E\x74\x73\x20\x66\x6F\x72\x20\x61\x20\x73\x70\x65\x63\x69\x66\x69\x65\x64\x20\x63\x6F\x6D\x70\x61\x6E\x79\x2E\n\n\x54\x68\x65\x20\x63\x61\x74\x65\x67\x6F\x72\x69\x65\x73\x20\x66\x6F\x72\x20\x61\x6E\x20\x61\x63\x63\x6F\x75\x6E\x74\x20\x69\x6E\x63\x6C\x75\x64\x65\x3A\n\x2A\x20\x41\x73\x73\x65\x74\n\x2A\x20\x45\x78\x70\x65\x6E\x73\x65\n\x2A\x20\x49\x6E\x63\x6F\x6D\x65\n\x2A\x20\x4C\x69\x61\x62\x69\x6C\x69\x74\x79\n\x2A\x20\x45\x71\x75\x69\x74\x79\x2E\n\n\x54\x68\x65\x20\x73\x61\x6D\x65\x20\x61\x63\x63\x6F\x75\x6E\x74\x20\x6D\x61\x79\x20\x68\x61\x76\x65\x20\x61\x20\x64\x69\x66\x66\x65\x72\x65\x6E\x74\x20\x63\x61\x74\x65\x67\x6F\x72\x79\x20\x62\x61\x73\x65\x64\x20\x6F\x6E\x20\x74\x68\x65\x20\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x20\x69\x74\x20\x69\x73\x20\x75\x73\x65\x64\x20\x69\x6E\x2E\x20\x46\x6F\x72\x20\x65\x78\x61\x6D\x70\x6C\x65\x2C\x20\x61\x20\x63\x75\x72\x72\x65\x6E\x74\x20\x61\x63\x63\x6F\x75\x6E\x74\x20\x28\x6B\x6E\x6F\x77\x6E\x20\x61\x73\x20\x63\x68\x65\x63\x6B\x69\x6E\x67\x20\x69\x6E\x20\x74\x68\x65\x20\x55\x53\x29\x20\x73\x68\x6F\x75\x6C\x64\x20\x62\x65\x20\x63\x61\x74\x65\x67\x6F\x72\x69\x7A\x65\x64\x20\x61\x73\x20\x60\x41\x73\x73\x65\x74\x2E\x43\x75\x72\x72\x65\x6E\x74\x60\x20\x66\x6F\x72\x20\x58\x65\x72\x6F\x2C\x20\x61\x6E\x64\x20\x60\x41\x73\x73\x65\x74\x2E\x42\x61\x6E\x6B\x2E\x43\x68\x65\x63\x6B\x69\x6E\x67\x60\x20\x66\x6F\x72\x20\x51\x75\x69\x63\x6B\x42\x6F\x6F\x6B\x73\x20\x4F\x6E\x6C\x69\x6E\x65\x2E\n\n\x41\x74\x20\x74\x68\x65\x20\x73\x61\x6D\x65\x20\x74\x69\x6D\x65\x2C\x20\x65\x61\x63\x68\x20\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x20\x6D\x61\x79\x20\x68\x61\x76\x65\x20\x69\x74\x73\x20\x6F\x77\x6E\x20\x72\x65\x71\x75\x69\x72\x65\x6D\x65\x6E\x74\x73\x20\x74\x6F\x20\x74\x68\x65\x20\x63\x61\x74\x65\x67\x6F\x72\x69\x65\x73\x2E\x20\x46\x6F\x72\x20\x65\x78\x61\x6D\x70\x6C\x65\x2C\x20\x61\x20\x50\x61\x79\x70\x61\x6C\x20\x61\x63\x63\x6F\x75\x6E\x74\x20\x69\x6E\x20\x58\x65\x72\x6F\x20\x69\x73\x20\x6F\x66\x20\x74\x68\x65\x20\x60\x41\x73\x73\x65\x74\x2E\x42\x61\x6E\x6B\x60\x20\x63\x61\x74\x65\x67\x6F\x72\x79\x20\x61\x6E\x64\x20\x74\x68\x65\x72\x65\x66\x6F\x72\x65\x20\x72\x65\x71\x75\x69\x72\x65\x73\x20\x61\x64\x64\x69\x74\x69\x6F\x6E\x61\x6C\x20\x70\x72\x6F\x70\x65\x72\x74\x69\x65\x73\x20\x74\x6F\x20\x62\x65\x20\x70\x72\x6F\x76\x69\x64\x65\x64\x2E\n\n\x54\x6F\x20\x64\x65\x74\x65\x72\x6D\x69\x6E\x65\x20\x74\x68\x65\x20\x6C\x69\x73\x74\x20\x6F\x66\x20\x61\x6C\x6C\x6F\x77\x65\x64\x20\x63\x61\x74\x65\x67\x6F\x72\x69\x65\x73\x20\x66\x6F\x72\x20\x61\x20\x73\x70\x65\x63\x69\x66\x69\x63\x20\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x2C\x20\x79\x6F\x75\x20\x63\x61\x6E\x3A\n\x2D\x20\x46\x6F\x6C\x6C\x6F\x77\x20\x6F\x75\x72\x20\x5B\x43\x72\x65\x61\x74\x65\x2C\x20\x75\x70\x64\x61\x74\x65\x2C\x20\x64\x65\x6C\x65\x74\x65\x20\x64\x61\x74\x61\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x75\x73\x69\x6E\x67\x2D\x74\x68\x65\x2D\x61\x70\x69\x2F\x70\x75\x73\x68\x29\x20\x67\x75\x69\x64\x65\x20\x61\x6E\x64\x20\x75\x73\x65\x20\x74\x68\x65\x20\x5B\x47\x65\x74\x20\x63\x72\x65\x61\x74\x65\x20\x61\x63\x63\x6F\x75\x6E\x74\x20\x6D\x6F\x64\x65\x6C\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x6C\x65\x6E\x64\x69\x6E\x67\x2D\x61\x70\x69\x23\x2F\x6F\x70\x65\x72\x61\x74\x69\x6F\x6E\x73\x2F\x67\x65\x74\x2D\x63\x72\x65\x61\x74\x65\x2D\x63\x68\x61\x72\x74\x4F\x66\x41\x63\x63\x6F\x75\x6E\x74\x73\x2D\x6D\x6F\x64\x65\x6C\x29\x2E\n\x2D\x20\x52\x65\x66\x65\x72\x20\x74\x6F\x20\x74\x68\x65\x20\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x27\x73\x20\x6F\x77\x6E\x20\x64\x6F\x63\x75\x6D\x65\x6E\x74\x61\x74\x69\x6F\x6E\x2E\n\n\x3E\x20\x2A\x2A\x41\x63\x63\x6F\x75\x6E\x74\x73\x20\x77\x69\x74\x68\x20\x6E\x6F\x20\x63\x61\x74\x65\x67\x6F\x72\x79\x2A\x2A\n\x3E\n\x3E\x20\x49\x66\x20\x61\x6E\x20\x61\x63\x63\x6F\x75\x6E\x74\x20\x69\x73\x20\x70\x75\x6C\x6C\x65\x64\x20\x66\x72\x6F\x6D\x20\x74\x68\x65\x20\x63\x68\x61\x72\x74\x20\x6F\x66\x20\x61\x63\x63\x6F\x75\x6E\x74\x73\x20\x61\x6E\x64\x20\x69\x74\x73\x20\x6E\x6F\x6D\x69\x6E\x61\x6C\x20\x63\x6F\x64\x65\x20\x64\x6F\x65\x73\x20\x6E\x6F\x74\x20\x6C\x69\x65\x20\x77\x69\x74\x68\x69\x6E\x20\x74\x68\x65\x20\x63\x61\x74\x65\x67\x6F\x72\x79\x20\x6C\x61\x79\x6F\x75\x74\x20\x66\x6F\x72\x20\x74\x68\x65\x20\x63\x6F\x6D\x70\x61\x6E\x79\x27\x73\x20\x61\x63\x63\x6F\x75\x6E\x74\x73\x2C\x20\x74\x68\x65\x6E\x20\x74\x68\x65\x20\x2A\x2A\x74\x79\x70\x65\x2A\x2A\x20\x69\x73\x20\x60\x55\x6E\x6B\x6E\x6F\x77\x6E\x60\x2E\x20\x54\x68\x65\x20\x2A\x2A\x66\x75\x6C\x6C\x79\x51\x75\x61\x6C\x69\x66\x69\x65\x64\x43\x61\x74\x65\x67\x6F\x72\x79\x2A\x2A\x20\x61\x6E\x64\x20\x2A\x2A\x66\x75\x6C\x6C\x79\x51\x75\x61\x6C\x69\x66\x69\x65\x64\x4E\x61\x6D\x65\x2A\x2A\x20\x66\x69\x65\x6C\x64\x73\x20\x72\x65\x74\x75\x72\x6E\x20\x60\x6E\x75\x6C\x6C\x60\x2E\n\x3E\n\x3E\x20\x54\x68\x69\x73\x20\x61\x70\x70\x72\x6F\x61\x63\x68\x20\x67\x69\x76\x65\x73\x20\x61\x20\x74\x72\x75\x65\x20\x72\x65\x70\x72\x65\x73\x65\x6E\x74\x61\x74\x69\x6F\x6E\x20\x6F\x66\x20\x74\x68\x65\x20\x63\x6F\x6D\x70\x61\x6E\x79\x27\x73\x20\x61\x63\x63\x6F\x75\x6E\x74\x73\x20\x77\x68\x69\x6C\x73\x74\x20\x70\x72\x65\x76\x65\x6E\x74\x69\x6E\x67\x20\x64\x69\x73\x74\x6F\x72\x74\x69\x6E\x67\x20\x66\x69\x6E\x61\x6E\x63\x69\x61\x6C\x73\x20\x73\x75\x63\x68\x20\x61\x73\x20\x61\x20\x63\x6F\x6D\x70\x61\x6E\x79\x27\x73\x20\x70\x72\x6F\x66\x69\x74\x20\x61\x6E\x64\x20\x6C\x6F\x73\x73\x20\x61\x6E\x64\x20\x62\x61\x6C\x61\x6E\x63\x65\x20\x73\x68\x65\x65\x74\x20\x72\x65\x70\x6F\x72\x74\x73\x2E" - allOf: - - properties: - id: - type: string - description: 'Identifier for the account, unique for the company.' - example: 1b6266d1-1e44-46c5-8eb5-a8f98e03124e - - $ref: '#/components/schemas/AccountingAccount/definitions/accountPrototype' - - properties: - metadata: - $ref: '#/components/schemas/Metadata' - - $ref: '#/components/schemas/CommerceOrder/allOf/3' - definitions: - accountPrototype: - title: Account prototype - type: object - properties: - nominalCode: - type: string - nullable: true - description: Reference given to each nominal account for a business. It ensures money is allocated to the correct account. This code isn't a unique identifier in the Codat system. - example: '610' - name: - type: string - nullable: true - description: Name of the account. - example: Accounts Receivable - description: - type: string - nullable: true - description: Description for the account. - example: Invoices the business has issued but has not yet collected payment on. - fullyQualifiedCategory: - type: string - nullable: true - description: "Full category of the account. \r\n\r\nFor example, `Liability.Current` or `Income.Revenue`. To determine a list of possible categories for each integration, see our examples, follow our [Create, update, delete data](https://docs.codat.io/using-the-api/push) guide, or refer to the integration's own documentation." - example: Asset.Current - fullyQualifiedName: - type: string - nullable: true - description: |- - Full name of the account, for example: - - `Cash On Hand` - - `Rents Held In Trust` - - `Fixed Asset` - examples: - - Cash On Hand - - Fixed Asset - currency: - $ref: '#/components/schemas/SourceAccount/properties/currency' - currentBalance: - type: number - format: decimal - nullable: true - description: Current balance in the account. - example: 0 - type: - $ref: '#/components/schemas/AccountingAccount/definitions/accountType' - status: - $ref: '#/components/schemas/AccountingAccount/definitions/accountStatus' - isBankAccount: - type: boolean - description: Confirms whether the account is a bank account or not. - validDatatypeLinks: - type: array - nullable: true - description: 'The validDatatypeLinks can be used to determine whether an account can be correctly mapped to another object; for example, accounts with a `type` of `income` might only support being used on an Invoice and Direct Income. For more information, see [Valid Data Type Links](/lending-api#/schemas/ValidDataTypeLinks).' - items: - title: Valid data type links - description: "When querying Codat's data model, some data types return `validDatatypeLinks` metadata in the JSON response. This indicates where that object can be used as a reference—a _valid link_—when creating or updating other data.\n\nFor example, `validDatatypeLinks` might indicate the following references:\n\n- Which tax rates are valid to use on the line item of a bill.\n- Which items can be used when creating an invoice. \n\nYou can use `validDatatypeLinks` to present your SMB customers with only valid choices when selecting objects from a list, for example.\n\n## `validDatatypeLinks` example\n\nThe following example uses the `Accounting.Accounts` data type. It shows that, on the linked integration, this account is valid as the account on a payment or bill payment; and as the account referenced on the line item of a direct income or direct cost. Because there is no valid link to Invoices or Bills, using this account on those data types will result in an error.\n\n```json validDatatypeLinks for an account\n{\n \"id\": \"bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4\",\n \"nominalCode\": \"090\",\n \"name\": \"Business Bank Account\",\n #...\n \"validDatatypeLinks\": [\n {\n \"property\": \"Id\",\n \"links\": [\n \"Payment.AccountRef.Id\",\n \"BillPayment.AccountRef.Id\",\n \"DirectIncome.LineItems.AccountRef.Id\",\n \"DirectCost.LineItems.AccountRef.Id\"\n ]\n }\n ]\n }\n```\n\n\n\n## Support for `validDatatypeLinks`\n\nCodat currently supports `validDatatypeLinks` for some data types on our Xero, QuickBooks Online, QuickBooks Desktop, Exact (NL), and Sage Business Cloud integrations. \n\nIf you'd like us to extend support to more data types or integrations, suggest or vote for this on our Product Roadmap." - type: object - properties: - property: - type: string - nullable: true - description: The property from the account that can be linked. - links: - type: array - nullable: true - description: Supported `dataTypes` that the record can be linked to. - items: - type: string - supplementalData: - $ref: '#/components/schemas/SupplementalData' - accountRef: - title: Account reference - type: object - description: 'Data types that reference an account, for example bill and invoice line items, use an accountRef that includes the ID and name of the linked account.' - properties: - id: - type: string - description: '''id'' from the Accounts data type.' - name: - type: string - description: '''name'' from the Accounts data type.' - accountType: - title: Account type - enum: - - Unknown - - Asset - - Expense - - Income - - Liability - - Equity - type: string - description: Type of account - example: Asset - accountStatus: - title: Account status - enum: - - Unknown - - Active - - Archived - - Pending - type: string - description: Status of the account - example: Active - type: object - AccountingAccounts: - title: 'Accounting: Accounts' - x-internal: true - allOf: - - type: object - properties: - results: - type: array - items: - $ref: '#/components/schemas/AccountingAccount' - - $ref: '#/components/schemas/PagingInfo' - AccountingAccountTransaction: - title: 'Accounting: Account transaction' - description: |- - > **Language tip:** In Codat, account transactions represent all transactions posted to a bank account within an accounting software. For bank transactions posted within a banking platform, refer to [Banking transactions](https://docs.codat.io/lending-api#/operations/list-all-banking-transactions). - - ## Overview - - In Codat’s data model, account transactions represent bank activity within an accounting software. All transactions that go through a bank account are recorded as account transactions. - - Account transactions are created as a result of different business activities, for example: - - * Payments: for example, receiving money for payment against an invoice. - * Bill payments: for example, spending money for a payment against a bill. - * Direct costs: for example, withdrawing money from a bank account, either for cash purposes or to make a payment. - * Direct incomes: for example, selling an item directly to a contact and receiving payment at point of sale. - * Transfers: for example, transferring money between two bank accounts. - - Account transactions is the parent data type of [payments](https://docs.codat.io/lending-api#/schemas/Payment), [bill payments](https://docs.codat.io/lending-api#/schemas/BillPayment), [direct costs](https://docs.codat.io/lending-api#/schemas/DirectCost), [direct incomes](https://docs.codat.io/lending-api#/schemas/DirectIncome), and [transfers](https://docs.codat.io/lending-api#/schemas/Transfer). - type: object - allOf: - - type: object - properties: - id: - type: string - description: Identifier of the direct cost (unique to the company). - transactionId: - type: string - nullable: true - description: Identifier of the transaction (unique to the company). - note: - type: string - nullable: true - description: 'Additional information about the account transaction, if available.' - bankAccountRef: - $ref: '#/components/schemas/AccountingBankAccount/definitions/bankAccountRef' - description: Reference to the bank account the account transaction is recorded against. - date: - $ref: '#/components/schemas/DateTime' - description: The date the account transaction was recorded in the platform. - status: - enum: - - Unknown - - Unreconciled - - Reconciled - - Void - type: string - description: The status of the account transaction. - currency: - $ref: '#/components/schemas/SourceAccount/properties/currency' - currencyRate: - $ref: '#/components/schemas/AccountingPaymentAllocation/definitions/paymentAllocationPayment/properties/currencyRate' - lines: - type: array - nullable: true - description: Array of account transaction lines. - items: - $ref: '#/components/schemas/AccountingAccountTransaction/definitions/accountTransactionLine' - totalAmount: - type: number - format: decimal - description: 'Total amount of the account transactions, inclusive of tax.' - metadata: - $ref: '#/components/schemas/Metadata' - - $ref: '#/components/schemas/CommerceOrder/allOf/3' - definitions: - accountTransactionLine: - type: object - properties: - description: - type: string - nullable: true - description: Description of the account transaction. - recordRef: - $ref: '#/components/schemas/AccountingAccountTransaction/definitions/accountTransactionLineRecordRef' - amount: - type: number - format: decimal - description: Amount in the bill payment currency. - accountTransactionLineRecordRef: - type: object - title: Record reference - description: Links an account transaction line to the underlying record that created it. - properties: - id: - type: string - description: '''id'' of the underlying record or data type.' - dataType: - type: string - description: Name of underlying data type. - enum: - - bankTransactions - - billCreditNotes - - billPayments - - bills - - creditNotes - - directCosts - - directIncomes - - invoices - - journalEntries - - payments - - transfers - example: transfers - AccountingAccountTransactions: - title: 'Accounting: Account transactions' - x-internal: true - allOf: - - type: object - properties: - results: - type: array - items: - $ref: '#/components/schemas/AccountingAccountTransaction' - - $ref: '#/components/schemas/PagingInfo' - AccountingAddress: - title: 'Accounting: Address' - x-internal: true - type: object - properties: - type: - $ref: '#/components/schemas/AccountingAddress/definitions/accountingAddressType' - line1: - type: string - nullable: true - description: Line 1 of the customer address. - line2: - type: string - nullable: true - description: Line 2 of the customer address. - city: - type: string - nullable: true - description: City of the customer address. - region: - type: string - nullable: true - description: Region of the customer address. - country: - type: string - nullable: true - description: Country of the customer address. - postalCode: - type: string - nullable: true - description: Postal code or zip code. - required: - - type - definitions: - accountingAddressType: - description: The type of the address - type: string - enum: - - Unknown - - Billing - - Delivery - AccountingAgedCreditorReport: - title: 'Accounting: Aged creditors report' - description: "The Aged Creditors report shows the total balance owed by a business to its suppliers over time.\n\nYou can generate it for a company based on recently synced data from your customers' accounting software. The report is available in the **Reports** tab in the Codat portal.\n\nTotal assets or liabilities are grouped into 30-day periods for each supplier, up to the current date. You can adjust the report date, period length, and number of periods to show on each report. The data can be grouped by customer or currency.\n\n> It is not guaranteed that write-offs are included in the Aged Creditors report.\n\n## Underlying data\n\nThe Aged Creditors report is generated from a set of required data types: [Suppliers](https://docs.codat.io/lending-api#/schemas/Supplier), [Bills](https://docs.codat.io/lending-api#/schemas/Bill), [Bill credit notes](https://docs.codat.io/lending-api#/schemas/BillCreditNote), and [Bill payments](https://docs.codat.io/lending-api#/schemas/BillPayment).\n\nTo generate the report, the underlying data types must have been synced within 24 hours of each other. Otherwise an error is displayed when you try to run the report. Sync the required data types by clicking the link in the error, and then run the report again.\n\n> The Aged Creditor report runs based on the **issue dates** of the underlying data types rather than the due date.\n\n## Accessing the Aged Creditors report in Portal\n\nApart from returning the report via the API as JSON and query, you can also return the Aged Creditors report in the Codat portal.\n\n1. In the navigation bar, click **Companies**.\n2. Click the name of the company you want to generate the report for. The company's data page is displayed.\n3. Click the **Accounting** tab then click **Reports**.\n4. Select **Aged Creditors**.\n5. _(Optional)_ Edit the default reporting parameters.\n a. You can change the report date in the **Date** box. By default, the report includes transactions that occurred up to, but not including, today's date. To include transactions for today, enter tomorrow's date. \n b. In the **Period Length Days** box, select the default period length for each column (the default is 30 days).\n b. In the **Number of Periods** box, enter the number of periods to show as columns in the report (the default is 4 periods).\n6. To run the report, click **Load aged creditors**.\n7. The report is generated and displayed at the bottom of the page.\n\nThe report will be grouped per supplier and depending on the periods requested. The details indicates whether the amounts owed come from outstanding bills or bill credit notes." - type: object - properties: - generated: - $ref: '#/components/schemas/DateTime' - description: Date and time the report was generated. - reportDate: - $ref: '#/components/schemas/DateTime' - description: Date the report is generated up to. - data: - type: array - description: Array of aged creditor. - items: - $ref: '#/components/schemas/AccountingAgedCreditorReport/definitions/agedCreditor' - examples: - - generated: '2022-10-23T00:00:00Z' - reportDate: '2022-10-23T00:00:00Z' - data: - - customerId: f594cefb-7750-4c3a-bab2-b5322026dee9 - customerName: John Doe - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2022-10-01T00:00:00Z' - toDate: '2022-10-31T00:00:00Z' - amount: 1547.5 - details: - - name: Bills - amount: 1547.5 - definitions: - agedCreditor: - title: Aged creditor - type: object - properties: - supplierId: - type: string - description: Supplier ID of the aged creditor. - example: f594cefb-7750-4c3a-bab2-b5322026dee9 - supplierName: - type: string - description: Supplier name of the aged creditor. - example: John Doe - agedCurrencyOutstanding: - type: array - description: Array of aged creditors by currency. - items: - $ref: '#/components/schemas/AgedCurrencyOutstanding' - AccountingAgedDebtorReport: - type: object - title: 'Accounting: Aged debtors report' - description: "The Aged Debtors report shows the total outstanding balance due from customers to the business over time. \n\nYou can generate it for a company based on recently synced data from your customers' accounting software. The report is available in the **Reports** tab in the Codat portal.\n\nTotal assets or liabilities are grouped into 30-day periods for each customer, up to the current date. You can adjust the report date, period length, and number of periods to show on each report. The data can be grouped by customer or currency.\n\n> It is not guaranteed that write-offs are included in the Aged Debtors report.\n\n## Underlying data\n\nThe Aged Debtors report is generated from a set of required data types: [Customers](https://docs.codat.io/lending-api#/schemas/Customer), [Invoices](https://docs.codat.io/lending-api#/schemas/Invoice), [Credit notes](https://docs.codat.io/lending-api#/schemas/CreditNote), and [Payments](https://docs.codat.io/lending-api#/schemas/Payment).\n\nTo generate the report, the underlying data types must have been synced within 24 hours of each other. Otherwise an error is displayed when you try to run the report. Sync the required data types by clicking the link in the error, and then run the report again.\n\n> The Aged Debtors report runs based on the **issue dates** of the underlying data types rather than the due date.\n\n## Accessing the Aged Debtors report in Portal\n\nApart from returning the report via the API as JSON and query, you can also return the Aged Debtors report in the Codat portal.\n\n1. In the navigation bar, click **Companies**.\n2. Click the name of the company you want to generate the report for. The company's data page is displayed.\n3. Click the **Accounting** tab then click **Reports**.\n4. Select **Aged Debtors**.\n5. _(Optional)_ Edit the default reporting parameters.\n a. You can change the report date in the **Date** box. By default, the report includes transactions that occurred up to, but not including, today's date. To include transactions for today, enter tomorrow's date. \n b. In the **Period Length Days** box, select the default period length for each column (the default is 30 days).\n b. In the **Number of Periods** box, enter the number of periods to show as columns in the report (the default is 4 periods).\n6. To run the report, click **Load aged debtors**.\n7. The report is generated and displayed at the bottom of the page.\n\nThe report will be grouped per supplier and depending on the periods requested. The details indicates whether the amounts owed come from outstanding invoices or credit notes." - properties: - generated: - $ref: '#/components/schemas/DateTime' - description: Date and time the report was generated. - reportDate: - $ref: '#/components/schemas/DateTime' - description: Date the report is generated up to. - data: - type: array - description: Array of aged debtors. - items: - $ref: '#/components/schemas/AccountingAgedDebtorReport/definitions/agedDebtor' - definitions: - agedDebtor: - title: Aged debtor - type: object - properties: - customerId: - type: string - description: Customer ID of the aged debtor. - example: f594cefb-7750-4c3a-bab2-b5322026dee9 - customerName: - type: string - description: Customer name of the aged debtor. - example: John Doe - agedCurrencyOutstanding: - type: array - description: Array of aged debtors by currency. - items: - $ref: '#/components/schemas/AgedCurrencyOutstanding' - examples: - - generated: '2022-10-23T00:00:00Z' - reportDate: '2022-10-23T00:00:00Z' - data: - - customerId: f594cefb-7750-4c3a-bab2-b5322026dee9 - customerName: John Doe - agedCurrencyOutstanding: - - currency: GBP - agedOutstandingAmounts: - - fromDate: '2022-10-01T00:00:00Z' - toDate: '2022-10-31T00:00:00Z' - amount: 1547.5 - details: - - name: Invoices - amount: 1547.5 - AccountingAttachment: - title: 'Accounting: Attachment' - description: "The Codat API supports pulling and pushing of file attachments for invoices, bills, direct costs, and direct incomes.\n\n> **Retrieving attachments**\n> \n> If a company is authorized, you can query the Codat API to read, download, and upload attachments without requiring a fresh sync of data.\n\nUnlike other data types, Codat doesn't support [sync settings](https://docs.codat.io/knowledge-base/advanced-sync-settings) for attachments.\n\nNote that different integrations have different requirements to file size and extension of attachments.\n\n| Integration | File size | File extension |\n|-------------------|-----------|--------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Xero | 4 MB | 7Z, BMP, CSV, DOC, DOCX, EML, GIF, JPEG, JPG, KEYNOTE, MSG, NUMBERS, ODF, ODS, ODT, PAGES, PDF, PNG, PPT, PPTX, RAR, RTF, TIF, TIFF, TXT, XLS, XLSX, ZIP |\n| QuickBooks Online | 100 MB | AI, CSV, DOC, DOCX, EPS, GIF, JPEG, JPG, ODS, PAGES, PDF, PNG, RTF, TIF, TXT, XLS, XLSX, XML |\n| NetSuite | 100 MB | BMP, CSV, XLS, XLSX, JSON, PDF, PJPG, PJPEG, PNG, TXT, SVG, TIF, TIFF, DOC, DOCX, ZIP |\n| Dynamics 365 Business Central | 350 MB | Dynamics do not explicitly outline which file types are supported but they do state here that \"You can attach any type of file, such as text, image, or video files\". |\n" - type: object - allOf: - - type: object - properties: - id: - type: string - description: 'Identifier for the attachment, unique for the company in the accounting software.' - name: - type: string - nullable: true - description: Name of the attachment file. - contentType: - type: string - nullable: true - description: "File type of the attachment. This is represented by appending the file type to the [IETF standard file naming requirements](https://tools.ietf.org/html/rfc6838). For example, for a jpeg file the output is **image/jpeg**.\n\nSupported file types vary per platform. " - dateCreated: - $ref: '#/components/schemas/DateTime' - fileSize: - type: integer - format: int32 - nullable: true - description: 'File size in bytes. For example, if this reads **46153**, then the file size is 46kb.' - includeWhenSent: - type: boolean - description: 'If `true`, then the attachment is included with the associated invoice, bill or direct costs when it is printed, emailed, or sent to a customer, if the underlying accounting software allows this.' - - $ref: '#/components/schemas/CommerceOrder/allOf/3' - examples: [] - definitions: - attachments: - title: Attachments - type: object - properties: - attachments: - description: An array of attachments related to the record. - type: array - items: - $ref: '#/components/schemas/AccountingAttachment' - nullable: true - AccountingBalanceSheet: - title: 'Accounting: Balance sheet' - description: |- - ## Overview - - The balance sheet is a snapshot of a company's accounts at a single point in time that provides a statement of the assets, liabilities and equity of an organization. It gives interested parties an idea of the company's financial position, in addition to displaying what the company owns and owes. - - > **Balance sheet or profit and loss report?** - > - > A profit and loss report summarises the total revenue, expenses, and profit or loss during a specified time period. A balance sheet report shows the financial position of a company at a specific moment in time. - - **Structure of this report** - This report will reflect the structure and line descriptions that the business has set in their own accounting software. - - **History** - By default, Codat pulls (up to) 24 months of balance sheets for a company. You can adjust this to fetch more history, where available, by updating the `monthsToSync` value for `balanceSheet` on the [data type settings endpoint](https://docs.codat.io/lending-api#/operations/update-sync-settings). - - **Want to pull this in a standardised structure?** - Our [Enhanced Financials](https://docs.codat.io/lending/features/financial-statements-overview) endpoints provide the same report under standardized headings, allowing you to pull it in the same format for all of your business customers. - type: object - additionalProperties: false - properties: - currency: - $ref: '#/components/schemas/SourceAccount/properties/currency' - description: Currency of the balance sheet. - reports: - type: array - description: An array of balance sheet reports. - items: - $ref: '#/components/schemas/AccountingBalanceSheet/definitions/balanceSheet' - mostRecentAvailableMonth: - $ref: '#/components/schemas/DateTime' - nullable: true - description: Most recent available monthly report data. - earliestAvailableMonth: - $ref: '#/components/schemas/DateTime' - nullable: true - description: Earliest available monthly report data. - required: - - reports - definitions: - balanceSheet: - type: object - properties: - date: - $ref: '#/components/schemas/DateTime' - description: Point in time when a snapshot of a company's financial position is taken. - assets: - $ref: '#/components/schemas/ReportLine' - description: 'ReportLines for assets. For example, fixed and current assets.' - liabilities: - $ref: '#/components/schemas/ReportLine' - description: 'ReportLines for liabilities. For example, current liabilities.' - netAssets: - type: number - format: decimal - description: Value of net assets for a company in their base currency. - equity: - $ref: '#/components/schemas/ReportLine' - description: 'ReportLines for equities. For example, retained and current year earnings. See below.' - required: - - netAssets - AccountingBankAccount: - title: 'Accounting: Bank account' - description: "> **Accessing Bank Accounts through Banking API**\n> \n> This datatype was originally used for accessing bank account data both in accounting integrations and open banking aggregators. \n> \n> To view bank account data through the Banking API, please refer to the new [Banking: Account](https://docs.codat.io/lending-api#/schemas/Account) data type.\n\n## Overview\n\nA list of bank accounts associated with a company and a specific data connection.\n\nBank accounts data includes:\n* The name and ID of the account in the accounting software.\n* The currency and balance of the account.\n* The sort code and account number." - type: object - allOf: - - properties: - id: - type: string - description: Unique identifier for the API key. - example: e288a972-b402-4b21-93f9-b5335ae5679c - name: - type: string - maxLength: 50 - nullable: true - description: A meaningful name assigned to the API key. - example: azure-invoice-finance-processor - apiKey: - type: string - description: The API key value used to make authenticated http requests. - example: ztHQGvnC4XN2CgUhaDWEG4ySLUJqWjp7zkbZkGHd - - nullable: true - description: Datetime in UTC the API key was created. The created date will be null if the API key created before YYYY-MM-DD. - title: Created date - type: object - x-internal: true - properties: - createdDate: - $ref: '#/components/schemas/DateTime' - description: The date the entity was created. - ApiKeys: - title: API keys - x-internal: true - type: object - properties: - results: - type: array - items: - $ref: '#/components/schemas/ApiKeyDetails' - Branding: - title: Branding - type: object - properties: - logo: - $ref: '#/components/schemas/Branding/definitions/brandingLogo' - button: - $ref: '#/components/schemas/Branding/definitions/brandingButton' - sourceId: - type: string - format: uuid - example: 35b92968-9851-4095-ad60-395c95cbcba4 - description: 'A source-specific ID used to distinguish between different sources originating from the same data connection. In general, a data connection is a single data source. However, for TrueLayer, `sourceId` is associated with a specific bank and has a many-to-one relationship with the `integrationId`.' - definitions: - brandingLogo: - description: Logo branding references. - type: object - properties: - full: - $ref: '#/components/schemas/Branding/definitions/brandingImage' - square: - $ref: '#/components/schemas/Branding/definitions/brandingImage' - brandingButton: - type: object - description: Button branding references. - properties: - default: - $ref: '#/components/schemas/Branding/definitions/brandingImage' - hover: - $ref: '#/components/schemas/Branding/definitions/brandingImage' - brandingImage: - title: Branding Image - type: object - properties: - image: - $ref: '#/components/schemas/Branding/definitions/imageReference' - examples: [] - imageReference: - type: object - title: Image Reference - description: Image reference. - properties: - src: - type: string - format: uri - description: Source URL for image. - alt: - type: string - description: Alternative text when image is not available. - examples: - - logo: - full: - image: - src: 'https://static.codat.io/public/officialLogos/Full/8A156A5A-39CB-4F9D-856E-76EF9B9A9607.png' - alt: xero full icon - square: - image: - src: 'https://static.codat.io/public/officialLogos/Square/8A156A5A-39CB-4F9D-856E-76EF9B2W3607.png' - alt: xero square icon - button: - default: - image: - src: 'https://static.codat.io/public/officialButtons/Full/8A156A5A-39CB-4F9D-856E-76EF9Q7A9607.png' - alt: xero default button icon - hover: - image: - src: 'https://static.codat.io/public/officialLogos/Full/8A156A5A-39CB-4F9D-856E-76EF9B9A9607.png' - alt: xero hover button icon - sourceId: 35b92968-9851-4095-ad60-395c95cbcba4 - ClientId: - title: Client ID - type: string - format: uuid - description: Unique identifier for your client in Codat. - description: 'Identifier for the account, unique for the company in the accounting software.' - - $ref: '#/components/schemas/AccountingBankAccount/definitions/bankAccountPrototype' - - properties: - metadata: - $ref: '#/components/schemas/Metadata' - supplementalData: - $ref: '#/components/schemas/SupplementalData' - - $ref: '#/components/schemas/CommerceOrder/allOf/3' - definitions: - bankAccountPrototype: - title: Bank account prototype - type: object - properties: - accountName: - type: string - nullable: true - description: Name of the bank account in the accounting software. - accountType: - $ref: '#/components/schemas/AccountingBankAccountType' - nominalCode: - type: string - nullable: true - description: Code used to identify each nominal account for a business. - sortCode: - type: string - nullable: true - description: |- - Sort code for the bank account. - - Xero integrations - The sort code is only displayed when the currency = GBP and the sort code and account number sum to 14 digits. For non-GBP accounts, this field is not populated. - accountNumber: - type: string - nullable: true - description: |- - Account number for the bank account. - - Xero integrations - Only a UK account number shows for bank accounts with GBP currency and a combined total of sort code and account number that equals 14 digits, For non-GBP accounts, the full bank account number is populated. - - FreeAgent integrations - For Credit accounts, only the last four digits are required. For other types, the field is optional. - iBan: - type: string - nullable: true - description: International bank account number of the account. Often used when making or receiving international payments. - currency: - $ref: '#/components/schemas/SourceAccount/properties/currency' - description: Base currency of the bank account. - balance: - type: number - format: decimal - nullable: true - description: Balance of the bank account. - institution: - type: string - nullable: true - description: The institution of the bank account. - availableBalance: - type: number - format: decimal - nullable: true - description: Total available balance of the bank account as reported by the underlying data source. This may take into account overdrafts or pending transactions for example. - overdraftLimit: - type: number - format: decimal - nullable: true - description: |- - Pre-arranged overdraft limit of the account. - - The value is always positive. For example, an overdraftLimit of `1000` means that the balance of the account can go down to `-1000`. - status: - $ref: '#/components/schemas/AccountingBankAccount/definitions/bankAccountStatus' - bankAccountCreateResponse: - title: Create bank account response - allOf: - - properties: - data: - allOf: - - $ref: '#/components/schemas/AccountingBankAccount' - - deprecated: true - - $ref: '#/components/schemas/PushOperation' - bankAccountRef: - title: Bank account reference - type: object - properties: - id: - type: string - description: Bank account 'id' for the account transaction. - name: - type: string - description: bank account 'name' for the account transaction. - description: Links to the Account transactions data type. - bankAccounts: - title: 'Accounting: Bank accounts' - allOf: - - type: object - properties: - results: - type: array - items: - $ref: '#/components/schemas/AccountingBankAccount' - - $ref: '#/components/schemas/PagingInfo' - bankAccountStatus: - title: Account status - enum: - - Unknown - - Active - - Archived - - Pending - type: string - description: Status of the bank account. - example: Active - AccountingBankAccounts: - x-internal: true - title: 'Accounting: Bank accounts' - allOf: - - type: object - properties: - results: - type: array - items: - $ref: '#/components/schemas/AccountingBankAccount' - - $ref: '#/components/schemas/PagingInfo' - AccountingBankAccountType: - title: Bank Account Type - x-internal: true - enum: - - Unknown - - Credit - - Debit - type: string - description: "The type of transactions and balances on the account. \nFor Credit accounts, positive balances are liabilities, and positive transactions **reduce** liabilities. \nFor Debit accounts, positive balances are assets, and positive transactions **increase** assets." - AccountingBankTransaction: - title: 'Accounting: Bank account transaction' - description: "> **Accessing Bank Accounts through Banking API**\n> \n> This datatype was originally used for accessing bank account data both in accounting integrations and open banking aggregators. \n>\n> To view bank account data through the Banking API, please refer to the new [Banking: Transaction](https://docs.codat.io/lending-api#/operations/list-transactions) data type.\n\n## Overview\n\nTransactional banking data for a specific company and account.\n\nBank transactions include the:\n* Amount of the transaction.\n* Current account balance.\n* Transaction type, for example, credit, debit, or transfer." - type: object - allOf: - - type: object - properties: - id: - type: string - description: 'Identifier for the bank transaction, unique to the company in the accounting software.' - accountId: - type: string - nullable: true - description: Unique identifier to the `accountId` the bank transactions originates from. - clearedOnDate: - $ref: '#/components/schemas/DateTime' - description: - type: string - nullable: true - description: Description of the bank transaction. - reconciled: - type: boolean - description: '`True` if the bank transaction has been [reconciled](https://www.xero.com/uk/guides/what-is-bank-reconciliation/) in the accounting software.' - amount: - type: number - format: decimal - description: The amount transacted in the bank transaction. - balance: - type: number - format: decimal - description: The remaining balance in the account with ID `accountId`. - transactionType: - $ref: '#/components/schemas/AccountingBankTransaction/definitions/bankTransactionType' - - $ref: '#/components/schemas/CommerceOrder/allOf/3' - definitions: - bankTransactionType: - title: Bank transaction type - description: Type of transaction for the bank statement line. - type: string - enum: - - Unknown - - Credit - - Debit - - Int - - Div - - Fee - - SerChg - - Dep - - Atm - - Pos - - Xfer - - Check - - Payment - - Cash - - DirectDep - - DirectDebit - - RepeatPmt - - Other - AccountingBankTransactions: - title: 'Accounting: Accounting bank transactions' - x-internal: true - allOf: - - type: object - properties: - results: - type: array - items: - $ref: '#/components/schemas/AccountingBankTransaction' - - $ref: '#/components/schemas/PagingInfo' - AccountingBill: - title: 'Accounting: Bill' - description: |- - > **Invoices or bills?** - > - > We distinguish between invoices where the company *owes money* vs. *is owed money*. If the company has received an invoice, and owes money to someone else (accounts payable) we call this a Bill. - > - > See [Invoices](https://docs.codat.io/lending-api#/schemas/Invoice) for the accounts receivable equivalent of bills. - - ## Overview - - In Codat, a bill contains details of: - * When the bill was recorded in the accounting system. - * How much the bill is for and the currency of the amount. - * Who the bill was received from — the *supplier*. - * What the bill is for — the *line items*. - - Some accounting software give a separate name to purchases where the payment is made immediately, such as something bought with a credit card or online payment. One example of this would be QuickBooks Online's *expenses*. - - You can find these types of transactions in our [Direct costs](https://docs.codat.io/lending-api#/schemas/DirectCost) data model. - type: object - allOf: - - type: object - properties: - id: - type: string - description: 'Identifier for the bill, unique for the company in the accounting software.' - reference: - type: string - nullable: true - description: User-friendly reference for the bill. - supplierRef: - $ref: '#/components/schemas/AccountingSupplier/definitions/supplierRef' - purchaseOrderRefs: - type: array - nullable: true - items: - title: Purchase order Reference - type: object - additionalProperties: false - properties: - id: - type: string - description: 'Identifier for the purchase order, unique for the company in the accounting software.' - purchaseOrderNumber: - type: string - nullable: true - description: 'Friendly reference for the purchase order, commonly generated by the accounting software.' - issueDate: - allOf: - - description: Date of the bill as recorded in the accounting software. - - $ref: '#/components/schemas/DateTime' - dueDate: - allOf: - - description: Date the supplier is due to be paid. - - $ref: '#/components/schemas/DateTime' - currency: - $ref: '#/components/schemas/SourceAccount/properties/currency' - currencyRate: - $ref: '#/components/schemas/AccountingPaymentAllocation/definitions/paymentAllocationPayment/properties/currencyRate' - lineItems: - type: array - nullable: true - description: Array of Bill line items. - items: - $ref: '#/components/schemas/AccountingBill/definitions/billLineItem' - withholdingTax: - type: array - nullable: true - items: - type: object - properties: - name: - minLength: 1 - type: string - description: Name assigned to withheld tax. - amount: - type: number - format: decimal - description: Amount of tax withheld. - required: - - amount - - name - status: - $ref: '#/components/schemas/AccountingBill/definitions/billStatus' - subTotal: - type: number - format: decimal - description: 'Total amount of the bill, excluding any taxes.' - taxAmount: - type: number - format: decimal - description: Amount of tax on the bill. - totalAmount: - type: number - format: decimal - description: 'Amount of the bill, including tax.' - amountDue: - type: number - format: decimal - nullable: true - description: Amount outstanding on the bill. - note: - type: string - nullable: true - description: 'Any private, company notes about the bill, such as payment information.' - paymentAllocations: - type: array - nullable: true - description: An array of payment allocations. - items: - $ref: '#/components/schemas/AccountingPaymentAllocation' - metadata: - $ref: '#/components/schemas/Metadata' - supplementalData: - $ref: '#/components/schemas/SupplementalData' - - $ref: '#/components/schemas/CommerceOrder/allOf/3' - required: - - issueDate - - status - - subTotal - - taxAmount - - totalAmount - definitions: - billStatus: - description: Current state of the bill. - type: string - enum: - - Unknown - - Open - - PartiallyPaid - - Paid - - Void - - Draft - billLineItem: - title: Bill line item - type: object - properties: - lineNumber: - type: string - nullable: true - description: The bill line's number. - description: - type: string - nullable: true - description: Friendly name of the goods or services received. - unitAmount: - type: number - format: decimal - description: Price of each unit of goods or services. - quantity: - type: number - format: decimal - description: Number of units of goods or services received. - unitOfMeasurement: - type: string - nullable: true - description: 'The measurement which defines a unit for this item (e.g. ''kilogram'', ''litre'').' - discountAmount: - type: number - format: decimal - nullable: true - description: |- - Numerical value of any discounts applied. - - Do not use to apply discounts in Oracle NetSuite—see Oracle NetSuite integration reference. - subTotal: - type: number - format: decimal - nullable: true - description: 'Amount of the line, inclusive of discounts but exclusive of tax.' - taxAmount: - type: number - format: decimal - nullable: true - description: Amount of tax for the line. - totalAmount: - type: number - format: decimal - nullable: true - description: 'Total amount of the line, including tax.' - discountPercentage: - type: number - format: decimal - nullable: true - description: Percentage rate of any discount applied to the bill. - accountRef: - $ref: '#/components/schemas/AccountingAccount/definitions/accountRef' - description: Reference to the account to which the line item is linked. - nullable: true - taxRateRef: - $ref: '#/components/schemas/AccountingBillCreditNote/definitions/billCreditNoteLineItem/properties/taxRateRef' - description: Reference to the tax rate to which the line item is linked. - itemRef: - $ref: '#/components/schemas/AccountingBillCreditNote/definitions/billCreditNoteLineItem/properties/itemRef' - description: 'Reference to the product, service type, or inventory item to which the line item is linked.' - purchaseOrderLineRef: - allOf: - - type: object - x-internal: true - title: Record line reference - description: "Links the current record line to the underlying record line that created it. \n\nFor example, if a bill is generated from a purchase order, this property allows you to connect the bill line item to the purchase order line item in our data model. " - properties: - id: - type: string - description: '''id'' of the underlying record.' - dataType: - type: string - description: Allowed name of the 'dataType'. - enum: - - purchaseOrders - - bills - lineNumber: - type: string - description: Line number of the underlying record. - - description: Reference to the purchase order line this line was generated from. - trackingCategoryRefs: - type: array - nullable: true - description: Collection of categories against which this item is tracked. - items: - $ref: '#/components/schemas/AccountingTrackingCategory/definitions/trackingCategoryRef' - tracking: - $ref: '#/components/schemas/AccountsPayableTracking' - isDirectCost: - type: boolean - description: The bill is a direct cost if `True`. - AccountingBillCreditNote: - title: 'Accounting: Bill credit note' - description: "> **Bill credit notes or credit notes?**\n> \n> In Codat, bill credit notes represent accounts payable only. For accounts receivable, see [Credit notes](https://docs.codat.io/lending-api#/schemas/CreditNote).\n\n## Overview\n\nA bill credit note is issued by a supplier for the purpose of recording credit. For example, if a supplier was unable to fulfil an order that was placed by a business, or delivered damaged goods, they would issue a bill credit note. A bill credit note reduces the amount a business owes to the supplier. It can be refunded to the business or used to pay off future bills.\n\nIn the Codat API, a bill credit note is an accounts payable record issued by a [supplier](https://docs.codat.io/lending-api#/schemas/Supplier). \n\nA bill credit note includes details of:\n* The original and remaining credit.\n* Any allocations of the credit against other records, such as [bills](https://docs.codat.io/lending-api#/schemas/Bill).\n* The supplier that issued the bill credit note." - type: object - allOf: - - type: object - properties: - id: - type: string - description: Identifier for the bill credit note that is unique to a company in the accounting software. - example: 1509398f-98e2-436d-8a5d-c042e0c74ffc - billCreditNoteNumber: - type: string - nullable: true - description: Friendly reference for the bill credit note. - example: 91fe2a83-e161-4c21-929d-c5c10c4b07e5 - supplierRef: - $ref: '#/components/schemas/AccountingSupplier/definitions/supplierRef' - withholdingTax: - type: array - nullable: true - items: - $ref: '#/components/schemas/AccountingBill/allOf/0/properties/withholdingTax/items' - totalAmount: - type: number - format: decimal - description: 'Total amount of credit that has been applied to the business'' account with the supplier, including discounts and tax.' - example: 805.78 - totalDiscount: - type: number - format: decimal - description: Total value of any discounts applied. - example: 0 - subTotal: - type: number - format: decimal - description: 'Total amount of the bill credit note, including discounts but excluding tax.' - example: 805.78 - totalTaxAmount: - type: number - format: decimal - description: Amount of tax included in the bill credit note. - example: 0 - discountPercentage: - type: number - format: decimal - description: Percentage rate of any discount applied to the bill credit note. - example: 0 - remainingCredit: - type: number - format: decimal - description: Amount of the bill credit note that is still outstanding. - example: 0 - status: - $ref: '#/components/schemas/AccountingBillCreditNote/definitions/billCreditNoteStatus' - issueDate: - $ref: '#/components/schemas/DateTime' - description: Date the bill credit note was issued by the supplier. - example: '2022-03-15T00:00:00' - allocatedOnDate: - $ref: '#/components/schemas/DateTime' - nullable: true - description: Date the bill credit note was fully refunded or allocated. - example: '2022-09-15T16:35:00' - currency: - $ref: '#/components/schemas/SourceAccount/properties/currency' - description: Currency of the bill credit note. - currencyRate: - $ref: '#/components/schemas/AccountingPaymentAllocation/definitions/paymentAllocationPayment/properties/currencyRate' - lineItems: - type: array - nullable: true - description: 'An array of line ' - items: - $ref: '#/components/schemas/AccountingBillCreditNote/definitions/billCreditNoteLineItem' - paymentAllocations: - nullable: true - type: array - description: An array of payment allocations. - items: - $ref: '#/components/schemas/AccountingPaymentAllocation' - createdFromRefs: - nullable: true - type: array - description: An array of records the credit note was created from. - items: - $ref: '#/components/schemas/AccountingRecordRef' - note: - type: string - nullable: true - description: Any additional information about the bill credit note. - example: 'Bill Credit Note with 1 line items, totaling 805.78' - supplementalData: - $ref: '#/components/schemas/SupplementalData' - metadata: - $ref: '#/components/schemas/Metadata' - - $ref: '#/components/schemas/CommerceOrder/allOf/3' - required: - - totalAmount - - totalDiscount - - subTotal - - totalTaxAmount - - discountPercentage - - status - definitions: - billCreditNoteStatus: - type: string - description: Current state of the bill credit note - enum: - - Unknown - - Draft - - Submitted - - Paid - - Void - - PartiallyPaid - example: Paid - billCreditNoteLineItem: - type: object - properties: - description: - type: string - nullable: true - description: 'Friendly name of each line item. For example, the goods or service for which credit has been received.' - unitAmount: - type: number - format: decimal - description: Unit price of the goods or service. - quantity: - type: number - format: decimal - description: Number of units of the goods or service for which credit has been received. - unitOfMeasurement: - type: string - nullable: true - description: 'The measurement which defines a unit for this item (e.g. ''kilogram'', ''litre'').' - discountAmount: - type: number - format: decimal - nullable: true - description: Value of any discounts applied. - subTotal: - type: number - format: decimal - nullable: true - description: 'Amount of credit associated with the line item, including discounts but excluding tax.' - taxAmount: - type: number - format: decimal - nullable: true - description: Amount of tax associated with the line item. - totalAmount: - type: number - format: decimal - nullable: true - description: 'Total amount of the line item, including discounts and tax.' - accountRef: - $ref: '#/components/schemas/AccountingAccount/definitions/accountRef' - discountPercentage: - type: number - format: decimal - nullable: true - description: Percentage rate of any discount applied to the line item. - taxRateRef: - title: Tax rate reference - type: object - description: |- - Data types that reference a tax rate, for example invoice and bill line items, use a taxRateRef that includes the ID and name of the linked tax rate. - - Found on: - - - Bill line items - - Bill Credit Note line items - - Credit Note line items - - Direct incomes line items - - Invoice line items - - Items - properties: - id: - type: string - description: Unique identifier for the tax rate in the accounting software. - name: - type: string - description: Name of the tax rate in the accounting software. - effectiveTaxRate: - type: number - format: decimal - description: Applicable tax rate. - itemRef: - description: Reference to the item the line is linked to. - title: Item reference - type: object - properties: - id: - minLength: 1 - type: string - description: Unique identifier for the item in the accounting software. - name: - type: string - nullable: true - description: Name of the item in the accounting software. - required: - - id - createdFromLineRef: - $ref: '#/components/schemas/AccountingBill/definitions/billLineItem/properties/purchaseOrderLineRef/allOf/0' - description: Reference to the line of the item that the current line was created from. - trackingCategoryRefs: - type: array - nullable: true - deprecated: true - description: Reference to the tracking categories to which the line item is linked. - items: - $ref: '#/components/schemas/AccountingTrackingCategory/definitions/trackingCategoryRef' - tracking: - $ref: '#/components/schemas/AccountsPayableTracking' - required: - - unitAmount - - quantity - examples: - - id: 6a0e9dfb-87b0-47d3-aaaf-9753ae9e757d - billCreditNoteNumber: '14763237' - totalAmount: 693 - remainingCredit: 693 - status: Submitted - issueDate: '2019-02-18T16:03:07.268Z' - note: Track separately - currency: USD - lineItems: - - description: AcmeMagnet - unitAmount: 25 - discountAmount: 0 - quantity: 4 - subTotal: 100 - taxAmount: 10 - totalAmount: 110 - itemRef: - id: '3' - taxRateRef: - id: 6c88aff3-7cb9-4980-a3d3-443e72e02498 - accountRef: - id: 3f267b10-757d-44c0-bef9-20f70cc8fbe3 - trackingCategoryRefs: - - id: department_1 - name: ACMERockets - - id: costcode_2 - name: ACM2-ACMESigns - createdFromLineRef: - - id: '8462' - dataType: bill - lineNumber: 1 - - description: ACMEDisintegratingPistol - unitAmount: 25 - discountAmount: 0 - quantity: 3 - subTotal: 75 - taxAmount: 7.5 - totalAmount: 82.5 - itemRef: - id: 3abf0883-03f7-44c6-bc15-1372522d25e1 - taxRateRef: - id: 6c88aff3-7cb9-4980-a3d3-443e72e02498 - accountRef: - id: 3f267b10-757d-44c0-bef9-20f70cc8fbe3 - - description: ACMEWhippedCreamDispenser - unitAmount: 52 - discountAmount: 0 - quantity: 6 - subTotal: 312 - taxAmount: 31.2 - totalAmount: 343.2 - itemRef: - id: 3691f3d9-0ff7-4358-8a93-bed31c1b4b03 - taxRateRef: - id: 6c88aff3-7cb9-4980-a3d3-443e72e02498 - accountRef: - id: 3f267b10-757d-44c0-bef9-20f70cc8fbe3 - - description: ACMEJetPropelledPogoStick - unitAmount: 130 - discountAmount: 0 - quantity: 1 - subTotal: 130 - taxAmount: 27.3 - totalAmount: 157.3 - itemRef: - id: 075410d4-7edc-4936-ba52-9e1e43cbe300 - taxRateRef: - id: d606732b-db18-44d7-823b-7f15f42c32ea - accountRef: - id: 3f267b10-757d-44c0-bef9-20f70cc8fbe3 - supplierRef: - id: 67C6A7A1-5E84-4AC4-B950-24A114E379D0 - supplierName: Chin's Gas and Oil - createdFromLineRef: - id: '8462' - dataType: bills - line: 1 - AccountingBillCreditNotes: - title: 'Accounting: Bill credit notes' - x-internal: true - allOf: - - type: object - properties: - results: - type: array - items: - $ref: '#/components/schemas/AccountingBillCreditNote' - - $ref: '#/components/schemas/PagingInfo' - AccountingBillPayment: - title: 'Accounting: Bill payment' - description: "> **Bill payments or payments?** \n> \n> We distinguish between transactions where the company received money vs. paid money. If the transaction represents a company spending money (accounts payable) we call this a Bill payment.\n>\n> See [payments](https://docs.codat.io/lending-api#/schemas/Payment) for the accounts receivable equivalent of Bill payments, which covers [invoices](https://docs.codat.io/lending-api#/schemas/Invoice) and [credit notes](https://docs.codat.io/lending-api#/schemas/CreditNote).\n\n## Overview\n\nBill payments include all accounts payable transaction data ([bills](https://docs.codat.io/lending-api#/schemas/Bill) and [credit notes against bills](https://docs.codat.io/lending-api#/schemas/BillCreditNote)).\n\nA bill payment in Codat usually represents an allocation of money within any customer accounts payable account. This includes, but is not strictly limited to:\n\n- A payment made against a bill — for example, a credit card payment, cheque payment, or cash payment.\n- An allocation of a supplier's credit note to a bill or perhaps a refund.\n- A bill payment made directly to an accounts payable account. This could be an overpayment or a prepayment, or a refund of a payment made directly to an accounts payable account.\n\nDepending on the bill payments which are allowed by the underlying accounting software, some of these types may be combined. Please see the example data section for samples of what these cases look like.\n\nIn Codat, a bill payment contains details of:\n\n- When the bill payment was recorded in the accounting system.\n- How much it is for and in the currency.\n- Who the payment has been paid to, the _supplier_.\n- The types of bill payments, the _line items_. \n\nSome accounting software give a separate name to purchases where the payment is made immediately, such as something bought with a credit card or online payment. One example of this would be QuickBooks Online's _expenses_. You can find these types of transactions in our [Direct costs](https://docs.codat.io/lending-api#/schemas/DirectCost) data model.\n\nBill payments is a child data type of [account transactions](https://docs.codat.io/lending-api#/schemas/AccountTransaction).\n\n---\n\n## Bill payment types\n\n### Payment of a bill\n\nA payment paying a single bill should have the following properties:\n\n- A `totalAmount` indicating the amount of the bill that was paid. This is always positive.\n- A `lines` array containing one element with the following properties:\n - An `amount` equal to the `totalAmount` above.\n - A `links` array containing one element with the following properties:\n - A `type` indicating the type of link, in this case a `Bill`.\n - An `id` containing the ID of the bill that was paid.\n - An amount of `-totalAmount` (negative `totalAmount`), indicating that the entirety of the paid amount is allocated to the bill.\n\n### Payment of multiple bills\n\nIt is possible for one payment to pay multiple bills. This can be represented using two possible formats, depending on how the supplier keeps their books:\n\n1. The payment has multiple entries in its **lines** array, one for each bill that is paid. Each line will follow the above example for paying a bill, and the rules detailed in the data model.\n2. The payment has a line with multiple links to each bill. This occurs when the proportion of the original payment allocated to each bill is not available.\n\nEach line is the same as those described above, with the **amount** indicating how much of the payment is allocated to the bill. The **amount** on the lines sum to the **totalAmount** on the payment.\n\n> Pushing batch payments to Xero\n> \n> When pushing a single bill payment to Xero to pay multiple bills, only the first format is supported—multiple entries in the payment **lines** array.\n\n### Payments and refunds on account\n\nA payment on account, that is a payment that doesn’t pay a specific bill, has one entry in its lines array.\n\nThe line has the following properties:\n\n- A **totalAmount** indicating the amount paid by a supplier or refunded to them by a company. A payment to the supplier is always negative. A refund is always positive.\n- A **links** array containing one element with the following properties:\n - A **type** indicating the type of link. For a payment this is `PaymentOnAccount`. For a refund this is `Refund`.\n - The **id** containing the ID of the supplier.\n - An amount for the link is `0` **totalAmount** or the amount of the payment or refund.\n\nIt is possible to have a payment that is part on account and part allocated to a bill. Each line should follow the examples above.\n\n### Using a credit note to pay a bill\n\nThe payment of a bill using a credit note has one entry in its `lines` array. This **line** has the following properties:\n\n- An **amount** indicating the amount of money moved, which in this case is `0`, as the credit note and bill allocation must balance each other.\n- A **links** array containing two elements:\n - The first link has:\n - A **type** indicating the type of link, in this case a `Bill`.\n - An **id** containing the ID of the bill that was paid.\n - The second link has:\n - A **type** indicating the type of link, in this case a `CreditNote`.\n - An **id** containing the ID of the credit note used by this payment.\n\nThe **amount** field on the **line** equals the **totalAmount** on the payment.\n\n### Refunding a credit note\n\nA bill payment refunding a credit note has one entry in its **lines** array. This line has the following properties:\n\n- An **amount** indicating the amount of the credit note that was refunded. This is always negative, indicating that it is a refund.\n- A **links** array containing one element with the following properties:\n - A **type** indicating the type of `link`, in this case a `CreditNote`.\n - An **id** containing the ID of the credit note that was refunded.\n\nThe **totalAmount** field on the payment equals the line's **amount** field. These are both negative, as this is money leaving accounts payable.\n\n### Refunding a payment\n\nIf a payment is refunded, for example, when a company overpaid a bill and the overpayment is returned, there are two payment records: \n\n- One for the incoming overpayment.\n- Another for the outgoing refund.\n\nThe payment issuing the refund is identified by the fact that the **totalAmount** is negative. This payment has one entry in its lines array that have the following properties:\n\n- An **amount** indicating the amount that was refunded. This is always negative.\n- A **links** array containing one element with the following properties:\n - A **type** indicating the type of a the link, in this case a `BillPayment`.\n - An **id** containing the ID of the payment that was refunded.\n\nThe **amount** field on the line equals the **totalAmount** on the payment and is negative as this is money leaving accounts payable.\n\nThe payment that was refunded can be identified as it has a line where the `amount` on its `line` is positive and the type of the link is `Refund`. This payment may have several entries in its **lines** array if it was partly used to pay an bill. For example, a £1,050 payment paying a £1,000 bill with a refund of £50 has two lines: \n\n- One for £1,000 linked to the bill that was paid\n- Another for £50 linked to the payment that refunded the over payment. This link is of type `Refund` but the ID corresponds to a bill payment.\n\nThe line linked to the bill payment has the following properties:\n\n- An **amount** indicating the amount that was refunded. This is positive as its money that was added to accounts payable, but is balanced out by the negative amount of the refund.\n- A **links** array containing one element with the following properties:\n - A **type** indicating the type of the link, in this case a `Refund`.\n - An **id** containing the ID of the payment that refunded this line.\n\n> Linked payments\n> \n> Not all accounting software support linked payments in this way. In these platforms you may see a payment on account and a refund on account.\n\n## Foreign currencies\n\nThere are two types of currency rate that are detailed in the bill payments data type: \n\nPayment currency rate: \n\n- Base currency of the accounts payable account.\n- Foreign currency of the bill payment.\n\nPayment line link currency rate: \n\n- Base currency of the item that the link represents.\n- Foreign currency of the payment.\n\nThese two rates allow the calculation of currency loss or gain for any of the transactions affected by the payment lines. The second rate is used when a bill payment is applied to an item in a currency that does not match either:\n\n- The base currency for the accounts payable account. \n- The currency of the item.\n" - type: object - allOf: - - type: object - properties: - id: - type: string - description: 'Identifier for the bill payment, unique for the company in the accounting software.' - example: 3d5a8e00-d108-4045-8823-7f342676cffa - supplierRef: - allOf: - - $ref: '#/components/schemas/AccountingSupplier/definitions/supplierRef' - - description: Supplier against which the payment is recorded in the accounting software. - accountRef: - $ref: '#/components/schemas/AccountingAccount/definitions/accountRef' - description: Account the payment is linked to in the accounting software. - totalAmount: - type: number - format: decimal - description: Amount of the payment in the payment currency. This value never changes and represents the amount of money that is paid into the supplier's account. - example: 1329.54 - currency: - allOf: - - $ref: '#/components/schemas/SourceAccount/properties/currency' - - description: ISO currency code in which the bill payment is recorded in the accounting software. - currencyRate: - $ref: '#/components/schemas/AccountingPaymentAllocation/definitions/paymentAllocationPayment/properties/currencyRate' - date: - allOf: - - $ref: '#/components/schemas/DateTime' - - description: Date the bill payment was recorded in the accounting software. - note: - type: string - nullable: true - description: Additional information associated with the payment. - example: Bill Payment against bill c13e37b6-dfaa-4894-b3be-9fe97bda9f44 - paymentMethodRef: - allOf: - - $ref: '#/components/schemas/PaymentMethodRef' - - description: The Payment Method to which the payment is linked in the accounting software. - lines: - type: array - nullable: true - description: An array of bill payment lines. - items: - $ref: '#/components/schemas/AccountingBillPayment/definitions/billPaymentLine' - reference: - type: string - nullable: true - description: Additional information associated with the payment. - metadata: - $ref: '#/components/schemas/Metadata' - supplementalData: - $ref: '#/components/schemas/SupplementalData' - - $ref: '#/components/schemas/CommerceOrder/allOf/3' - required: - - date - definitions: - billPaymentLine: - type: object - properties: - amount: - type: number - format: decimal - description: Amount in the bill payment currency. - links: - type: array - nullable: true - items: - $ref: '#/components/schemas/AccountingBillPayment/definitions/billPaymentLineLink' - allocatedOnDate: - $ref: '#/components/schemas/DateTime' - description: AllocatedOnDate must be specified and be later than the issue date of the bill. - required: - - amount - billPaymentLineLink: - type: object - properties: - type: - $ref: '#/components/schemas/AccountingBillPayment/definitions/billPaymentLineLinkType' - id: - type: string - nullable: true - description: Unique identifier of the transaction represented by the link. - amount: - type: number - format: decimal - nullable: true - description: |- - Amount by which the balance of the linked entity is altered, in the currency of the linked entity. - - - A negative link amount reduces the outstanding amount on the accounts payable account. - - A positive link amount increases the outstanding amount on the accounts payable account. - currencyRate: - $ref: '#/components/schemas/AccountingPaymentAllocation/definitions/paymentAllocationPayment/properties/currencyRate' - required: - - type - billPaymentLineLinkType: - description: Types of links to bill payment lines. - type: string - enum: - - Unknown - - Unlinked - - Bill - - Other - - CreditNote - - BillPayment - - PaymentOnAccount - - Refund - - ManualJournal - - Discount - examples: - - totalAmount: 1000 - lines: - - amount: 1000 - links: - - type: Bill - id: x - amount: -1000 - - totalAmount: 0 - lines: - - amount: 0 - links: - - type: Bill - id: x - amount: -1000 - - type: CreditNote - id: 'y' - amount: 1000 - - totalAmount: 2000 - lines: - - amount: 1000 - links: - - type: Bill - id: x - amount: -1000 - - amount: 1000 - links: - - type: PaymentOnAccount - id: 'y' - amount: -1000 - - totalAmount: -1000 - lines: - - amount: -1000 - links: - - type: CreditNote - id: 'y' - amount: 1000 - - totalAmount: -1000 - lines: - - amount: -1000 - links: - - type: PaymentOnAccount - id: 'y' - amount: 1000 - - totalAmount: 250 - lines: - - amount: 0 - links: - - type: Bill - id: x - amount: -750 - - type: CreditNote - id: 'y' - amount: 750 - - amount: 250 - links: - - type: Bill - id: x - amount: -250 - - totalAmount: 1000 - lines: - - amount: 1000 - links: - - type: Bill - id: x - amount: -1000 - modifiedDate: '2022-10-23T00:00:00Z' - sourceModifiedDate: '2022-10-23T00:00:00Z' - - totalAmount: 2000 - lines: - - amount: 0 - links: - - type: Bill - id: x - amount: -1000 - - type: CreditNote - id: 'y' - amount: 1000 - - amount: 0 - links: - - type: Bill - id: x - amount: -1000 - - type: CreditNote - id: z - amount: 1000 - - amount: 1000 - links: - - type: Bill - id: x - amount: -1000 - - amount: 1000 - links: - - type: PaymentOnAccount - id: customer-001 - amount: -1000 - - totalAmount: 0 - lines: - - amount: 0 - links: - - type: Bill - id: w - amount: -1000 - - type: Bill - id: x - amount: -1000 - - type: CreditNote - id: 'y' - amount: 1000 - - type: CreditNote - id: z - amount: 1000 - - totalAmount: 1000 - lines: - - amount: 1000 - links: - - type: Bill - id: x - amount: -1000 - modifiedDate: '2022-10-23T00:00:00Z' - sourceModifiedDate: '2022-10-23T00:00:00Z' - - id: '001' - totalAmount: 5000 - date: '1901-01-01' - lines: - - amount: 1000 - links: - - type: Bill - id: x - amount: -1000 - - amount: 4000 - links: - - type: PaymentOnAccount - id: 'y' - amount: -4000 - - id: '001' - totalAmount: 5000 - date: '1901-01-01' - lines: - - amount: 1000 - links: - - type: Bill - id: x - amount: -1000 - - amount: 1000 - links: - - type: Bill - id: 'y' - amount: -1000 - - amount: 3000 - links: - - type: PaymentOnAccount - id: 'y' - amount: -3000 - - totalAmount: 500 - lines: - - amount: 500 - links: - - type: Bill - id: a - amount: -1000 - - type: Bill - id: b - amount: -1000 - - type: CreditNote - id: 'y' - amount: 750 - - type: CreditNote - id: z - amount: 750 - AccountingBillPayments: - title: 'Accounting: Bill payments' - x-internal: true - allOf: - - type: object - properties: - results: - type: array - items: - $ref: '#/components/schemas/AccountingBillPayment' - - $ref: '#/components/schemas/PagingInfo' - AccountingBills: - title: 'Accounting: Bills' - x-internal: true - allOf: - - type: object - properties: - results: - type: array - items: - $ref: '#/components/schemas/AccountingBill' - - $ref: '#/components/schemas/PagingInfo' - AccountingCashFlowStatement: - title: 'Accounting: Cash flow statement' - description: "> **Operating activities only** \n> \n> Currently, the cash flow statement shows cash that flows into and out of the company from operating activities *only*. Operating activities generate cash from the sale of goods or services.\n\n## Overview\n\nA cash flow statement is a financial report that records all cash that is received or spent by a company during a given period. It gives you a clearer picture of the company’s performance, and their ability to pay creditors and finance growth.\n\n> **Cash flow statement or balance sheet?**\n> \n> Look at the cash flow statement to understand a company's ability to pay its bills. Although the balance sheet may show healthy earnings at a specific point in time, the cash flow statement allows you to see whether the company is meeting its financial commitments, such as paying creditors or its employees." - type: object - properties: - reports: - description: Array of cash flow statements. - type: array - items: - $ref: '#/components/schemas/AccountingCashFlowStatement/definitions/cashFlowStatement' - reportBasis: - $ref: '#/components/schemas/AccountingCashFlowStatement/definitions/reportBasis' - reportInput: - $ref: '#/components/schemas/AccountingCashFlowStatement/definitions/reportInput' - currency: - $ref: '#/components/schemas/SourceAccount/properties/currency' - description: Currency of all values in the cash flow statement. - mostRecentAvailableMonth: - $ref: '#/components/schemas/DateTime' - nullable: true - earliestAvailableMonth: - $ref: '#/components/schemas/DateTime' - nullable: true - required: - - reports - - reportBasis - - reportInput - definitions: - reportBasis: - title: Report basis - description: 'Accounting method used when aggregating the report data. In this case, `Cash`.' - type: string - enum: - - Unknown - - Accrual - - Cash - reportInput: - description: Accounting method used to prepare the cash flow statement. - type: string - enum: - - Unknown - - Indirect - - Direct - cashFlowStatement: - title: Cash flow statement - type: object - properties: - fromDate: - $ref: '#/components/schemas/DateTime' - description: Start date for the reporting period. - toDate: - $ref: '#/components/schemas/DateTime' - description: End date for the reporting period. - cashReceipts: - $ref: '#/components/schemas/ReportLine' - description: ReportLines for cash receipts from the sale of goods. - cashPayments: - $ref: '#/components/schemas/ReportLine' - description: ReportLines for cash payments to suppliers for the purchase of goods or services. - AccountingCompanyInfo: - title: 'Accounting: Company information' - description: "Company info provides standard details about a linked company such as their address, phone number, and company registration.\n\n> **Company information or companies?**\n> \n> Company information is standard information that is held in the accounting software about a company. `Companies` is an endpoint that lists businesses in the Codat system that have linked and shared their data sources." - type: object - properties: - companyName: - type: string - nullable: true - description: Name of the linked company. - accountingPlatformRef: - type: string - nullable: true - description: Identifier or reference for the company in the accounting software. - companyLegalName: - type: string - nullable: true - description: Registered legal name of the linked company. - addresses: - type: array - nullable: true - description: An array of Addresses. - items: - $ref: '#/components/schemas/AccountingAddress' - phoneNumbers: - type: array - nullable: true - description: An array of phone numbers. - items: - $ref: '#/components/schemas/PhoneNumber' - webLinks: - type: array - nullable: true - description: An array of weblinks. - items: - $ref: '#/components/schemas/WebLink' - ledgerLockDate: - $ref: '#/components/schemas/DateTime' - description: 'If set in the accounting software, the date (in the ISO 8601 date/time format) after which accounting transactions cannot be edited. Commonly used when books are closed at year-end.' - registrationNumber: - type: string - nullable: true - description: Registration number given to the linked company by the companies authority in the country of origin. In the UK this is Companies House. - taxNumber: - type: string - nullable: true - description: Company tax number. - financialYearStartDate: - $ref: '#/components/schemas/DateTime' - description: Start date of the financial year for the company. - baseCurrency: - type: string - nullable: true - description: Currency set in the accounting software of the linked company. Used by the currency rate. - sourceUrls: - type: object - additionalProperties: - type: string - nullable: true - nullable: true - description: |- - URL addresses for the accounting source. - - For example, for Xero integrations two URLs are returned. These have many potential use cases, such as [deep linking](https://developer.xero.com/documentation/api-guides/deep-link-xero). - createdDate: - $ref: '#/components/schemas/DateTime' - description: Date the linked company was created in the accounting software. - supplementalData: - $ref: '#/components/schemas/SupplementalData' - examples: - - companyName: ACME Corporation - accountingPlatformRef: 4444e827-401b-4925-92cb-d79086bf3b6b - companyLegalName: ACME Corporation Ltd. - addresses: - - type: Billing - line1: Warner House - line2: 98 Theobald's Road - city: London - region: '' - country: United Kingdom - postalcode: WC1X 8WB - - type: Unknown - line1: 123 Sierra Way - line2: '' - city: San Pablo - region: CA - country: '' - postalCode: '87999' - phoneNumbers: - - number: 010 1234 5678 - type: Landline - webLinks: - - type: Website - url: 'https://www.wbsl.com/' - ledgerLockDate: '2019-03-04T12:08:01.881Z' - registrationNumber: '1234567890' - taxNumber: GB 123456789 - financialYearStartDate: '2019-04-01T00:00:00Z' - baseCurrency: USD - sourceUrls: - url1: 'https://go.xero.com/organisationlogin/default.aspx?shortcode=!rxs0Q' - url2: 'https://reporting.xero.com/!rxs0Q' - createdDate: '2020-02-03T16:42:02Z' - AccountingCreateAccountResponse: - title: 'Accounting: Create account response' - x-internal: true - allOf: - - type: object - properties: - data: - allOf: - - $ref: '#/components/schemas/AccountingAccount' - - deprecated: true - - $ref: '#/components/schemas/PushOperation' - AccountingCreateBankAccountResponse: - title: 'Accounting: Create bank account response' - x-internal: true - allOf: - - type: object - properties: - data: - allOf: - - $ref: '#/components/schemas/AccountingBankAccount' - - deprecated: true - - $ref: '#/components/schemas/PushOperation' - AccountingCreateBankTransactions: - title: 'Accounting: Create bank account transactions' - type: object - properties: - accountId: - type: string - description: Unique identifier for a bank account. - examples: - - 13d946f0-c5d5-42bc-b092-97ece17923ab - - 9wg4lep4ush5cxs79pl8sozmsndbaukll3ind4g7buqbm1h2 - - '7110701885' - - EILBDVJVNUAGVKRQ - - Checking 0202 - transactions: - type: array - items: - $ref: '#/components/schemas/AccountingCreateBankTransactions/definitions/CreateBankAccountTransaction' - definitions: - CreateBankAccountTransaction: - title: Bank account transaction - type: object - properties: - id: - type: string - description: 'Identifier for the bank account transaction, unique for the company in the accounting software.' - amount: - type: number - format: decimal - description: The amount transacted in the bank transaction. - date: - $ref: '#/components/schemas/DateTime' - description: - nullable: false - type: string - description: Description of the bank transaction. - balance: - type: number - format: decimal - description: The remaining balance in the account with ID `accountId`. - AccountingCreateBankTransactionsResponse: - title: 'Accounting: Create/update bank transaction response' - x-internal: true - allOf: - - type: object - properties: - data: - allOf: - - $ref: '#/components/schemas/AccountingCreateBankTransactions' - - deprecated: true - - $ref: '#/components/schemas/PushOperation' - AccountingCreateDirectCostResponse: - title: 'Accounting: Create direct cost response' - x-internal: true - allOf: - - type: object - properties: - data: - allOf: - - $ref: '#/components/schemas/AccountingDirectCost' - - deprecated: true - - $ref: '#/components/schemas/PushOperation' - AccountingCreatePaymentResponse: - title: 'Accounting: Create payment response' - x-internal: true - allOf: - - type: object - properties: - data: - allOf: - - $ref: '#/components/schemas/AccountingPayment' - - deprecated: true - - $ref: '#/components/schemas/PushOperation' - AccountingCreateSupplierResponse: - title: 'Accounting: Create supplier response' - x-internal: true - allOf: - - type: object - properties: - data: - allOf: - - $ref: '#/components/schemas/AccountingSupplier' - - deprecated: true - - $ref: '#/components/schemas/PushOperation' - AccountingCreateTransferResponse: - title: 'Accounting: Create transfer response' - x-internal: true - allOf: - - type: object - properties: - data: - allOf: - - $ref: '#/components/schemas/AccountingTransfer' - - deprecated: true - - $ref: '#/components/schemas/PushOperation' - AccountingCreditNote: - title: 'Accounting: Credit note' - description: "## Overview\n\nThink of a credit note as a voucher issued to a customer. It is a reduction that can be applied against one or multiple invoices. A credit note can either reduce the amount owed or cancel out an invoice entirely.\n\nIn the Codat system a credit note is issued to a [customer's](https://docs.codat.io/lending-api#/schemas/Customer) accounts receivable. \n\nIt contains details of:\n* The amount of credit remaining and its status.\n* Payment allocations against the payments type, in this case an invoice.\n* Which customers the credit notes have been issued to." - type: object - allOf: - - type: object - properties: - id: - type: string - description: 'Identifier for the credit note, unique to the company in the accounting software.' - creditNoteNumber: - type: string - nullable: true - description: Friendly reference for the credit note. - customerRef: - $ref: '#/components/schemas/AccountingCustomer/definitions/accountingCustomerRef' - description: Reference to the customer the credit note has been issued to. - withholdingTax: - type: array - nullable: true - items: - $ref: '#/components/schemas/AccountingBill/allOf/0/properties/withholdingTax/items' - totalAmount: - type: number - format: decimal - description: Total amount of credit that has been applied to the customer's accounts receivable - totalDiscount: - type: number - format: decimal - description: Any discounts applied to the credit note amount. - subTotal: - type: number - format: decimal - description: 'Value of the credit note, including discounts and excluding tax.' - additionalTaxAmount: - type: number - format: decimal - description: Additional tax amount applied to credit note. - additionalTaxPercentage: - type: number - format: decimal - description: Percentage rate of any additional tax applied to the credit note. - totalTaxAmount: - type: number - format: decimal - description: Any tax applied to the credit note amount. - discountPercentage: - type: number - format: decimal - description: Percentage rate (from 0 to 100) of discounts applied to the credit note. - remainingCredit: - type: number - format: decimal - description: Unused balance of totalAmount originally raised. - status: - $ref: '#/components/schemas/AccountingCreditNote/definitions/creditNoteStatus' - description: Current state of the credit note. - issueDate: - $ref: '#/components/schemas/DateTime' - description: Date of the credit note as recorded in the accounting system. - allocatedOnDate: - $ref: '#/components/schemas/DateTime' - description: Date on which the credit note was fully allocated. - currency: - $ref: '#/components/schemas/SourceAccount/properties/currency' - description: Currency of the credit note. - currencyRate: - $ref: '#/components/schemas/AccountingPaymentAllocation/definitions/paymentAllocationPayment/properties/currencyRate' - lineItems: - type: array - nullable: true - items: - $ref: '#/components/schemas/AccountingCreditNote/definitions/creditNoteLineItem' - paymentAllocations: - type: array - nullable: true - description: An array of payment allocations. - items: - $ref: '#/components/schemas/AccountingPaymentAllocation' - note: - type: string - nullable: true - description: 'Any additional information about the credit note. Where possible, Codat links to a data field in the accounting software that is publicly available. This means that the contents of the note field are included when a credit note is emailed from the accounting software to the customer.' - metadata: - $ref: '#/components/schemas/Metadata' - supplementalData: - $ref: '#/components/schemas/SupplementalData' - - $ref: '#/components/schemas/CommerceOrder/allOf/3' - required: - - totalAmount - - totalDiscount - - subTotal - - totalTaxAmount - - discountPercentage - - remainingCredit - - status - definitions: - creditNoteStatus: - title: Credit note status - description: Current state of the credit note. - type: string - enum: - - Unknown - - Draft - - Submitted - - Paid - - Void - - PartiallyPaid - creditNoteLineItem: - type: object - properties: - description: - type: string - nullable: true - description: 'Friendly name of each line item. For example, the goods or service for which credit has been issued.' - unitAmount: - type: number - format: decimal - description: Unit price of the goods or service. - quantity: - type: number - format: decimal - description: Number of units of the goods or service for which credit has been issued. - discountAmount: - type: number - format: decimal - nullable: true - description: Value of any discounts applied. - subTotal: - type: number - format: decimal - nullable: true - description: 'Amount of credit associated with the line item, including discounts but excluding tax.' - taxAmount: - type: number - format: decimal - nullable: true - description: Amount of tax associated with the line item. - totalAmount: - type: number - format: decimal - nullable: true - description: 'Total amount of the line item, including discounts and tax.' - accountRef: - $ref: '#/components/schemas/AccountingAccount/definitions/accountRef' - description: Reference to the account to which the line item is linked. - discountPercentage: - type: number - format: decimal - nullable: true - description: Percentage rate of any discount applied to the line item. - taxRateRef: - $ref: '#/components/schemas/AccountingBillCreditNote/definitions/billCreditNoteLineItem/properties/taxRateRef' - description: Reference to the tax rate to which the line item is linked. - itemRef: - $ref: '#/components/schemas/AccountingBillCreditNote/definitions/billCreditNoteLineItem/properties/itemRef' - description: Reference to the item the line is linked to. - trackingCategoryRefs: - type: array - nullable: true - deprecated: true - description: Reference to the tracking categories to which the line item is linked. - items: - $ref: '#/components/schemas/AccountingTrackingCategory/definitions/trackingCategoryRef' - tracking: - $ref: '#/components/schemas/AccountsReceivableTracking' - isDirectIncome: - type: boolean - description: The credit note is a direct income if `True`. - required: - - unitAmount - - quantity - examples: - - - id: 0316bd24-8a01-4a3a-a0e5-a73f14ebcbec - creditNoteNumber: '5239277' - customerRef: - id: b5511228-b9ef-4713-91b1-ad2cf60eadb1 - companyName: Tool Hire Company - totalAmount: 550 - totalDiscount: 0 - subTotal: 0 - totalTaxAmount: 0 - discountPercentage: 0 - remainingCredit: 550 - status: Submitted - issueDate: '2018-03-28T21:28:58.249Z' - allocatedOnDate: null - note: More information available on request. - currency: USD - currencyRate: null - lineItems: - - description: Anvil10000Lb - unitAmount: 50 - quantity: 10 - discountAmount: 0 - subTotal: 500 - taxAmount: 50 - totalAmount: 550 - accountRef: - id: 3f267b10-757d-44c0-bef9-20f70cc8fbe3 - name: null - discountPercentage: null - taxRateRef: - id: 6c88aff3-7cb9-4980-a3d3-443e72e02498 - name: null - itemRef: - id: '1' - name: null - paymentAllocations: [] - modifiedDate: null - sourceModifiedDate: null - AccountingCreditNotes: - title: 'Accounting: Credit notes' - x-internal: true - allOf: - - type: object - properties: - results: - type: array - items: - $ref: '#/components/schemas/AccountingCreditNote' - - $ref: '#/components/schemas/PagingInfo' - AccountingCustomer: - title: 'Accounting: Customer' - description: | - ## Overview - - A customer is a person or organisation that buys goods or services. From the Customers endpoints, you can retrieve a [list of all the customers of a company](https://api.codat.io/swagger/index.html#/Customers/get_companies__companyId__data_customers). - - Customers' data links to accounts receivable [invoices](https://docs.codat.io/lending-api#/schemas/Invoice). - type: object - allOf: - - type: object - properties: - id: - type: string - description: 'Identifier for the customer, unique to the company in the accounting software.' - customerName: - type: string - nullable: true - description: 'Name of the customer as recorded in the accounting system, typically the company name.' - contactName: - type: string - nullable: true - description: Name of the main contact for the identified customer. - emailAddress: - type: string - nullable: true - description: Email address the customer can be contacted by. - defaultCurrency: - $ref: '#/components/schemas/SourceAccount/properties/currency' - description: Default currency the transactional data of the customer is recorded in. - phone: - type: string - nullable: true - description: Phone number the customer can be contacted by. - addresses: - type: array - nullable: true - description: An array of Addresses. - items: - $ref: '#/components/schemas/AccountingAddress' - contacts: - type: array - nullable: true - description: An array of Contacts. - items: - $ref: '#/components/schemas/AccountingCustomer/definitions/contact' - registrationNumber: - type: string - nullable: true - description: 'Company number. In the UK, this is typically the Companies House company registration number.' - taxNumber: - type: string - nullable: true - description: Company tax number. - status: - $ref: '#/components/schemas/AccountingCustomer/definitions/customerStatus' - description: Current state of the customer. - metadata: - $ref: '#/components/schemas/Metadata' - supplementalData: - $ref: '#/components/schemas/SupplementalData' - - $ref: '#/components/schemas/CommerceOrder/allOf/3' - required: - - status - definitions: - accountingCustomerRef: - type: object - properties: - id: - minLength: 1 - type: string - description: '`id` from the Customers data type' - companyName: - type: string - nullable: true - description: '`customerName` from the Customer data type' - required: - - id - customerStatus: - description: Status of customer. - type: string - enum: - - Unknown - - Active - - Archived - contact: - type: object - properties: - name: - type: string - nullable: true - description: Name of a contact for a customer. - email: - type: string - nullable: true - description: Email of a contact for a customer. - phone: - type: array - nullable: true - description: An array of Phone numbers. - items: - $ref: '#/components/schemas/PhoneNumber' - address: - $ref: '#/components/schemas/AccountingAddress' - description: An object of Address information. - status: - $ref: '#/components/schemas/AccountingCustomer/definitions/customerStatus' - modifiedDate: - $ref: '#/components/schemas/DateTime' - required: - - status - AccountingCustomers: - title: 'Accounting: Customers' - x-internal: true - allOf: - - type: object - properties: - results: - type: array - items: - $ref: '#/components/schemas/AccountingCustomer' - - $ref: '#/components/schemas/PagingInfo' - AccountingDirectCost: - title: 'Accounting: Direct cost' - description: |- - > **Language tip:** Direct costs may also be referred to as **Spend transactions**, **Spend money transactions**, or **Payments** in various accounting software. - - ## Overview - - Direct costs are money that leave the business without impacting Accounts Payable, and refunds associated with such transactions. - - Direct costs include: - * Purchasing an item and paying it off at the point of the purchase - * Receiving cash from a refunded item if the refund is made by the supplier - - Direct costs is a child data type of [account transactions](https://docs.codat.io/lending-api#/schemas/AccountTransaction). - type: object - allOf: - - type: object - properties: - id: - type: string - description: 'Identifier of the direct cost, unique for the company.' - - $ref: '#/components/schemas/AccountingDirectCost/definitions/directCostPrototype' - - properties: - metadata: - $ref: '#/components/schemas/Metadata' - - $ref: '#/components/schemas/CommerceOrder/allOf/3' - definitions: - directCostPrototype: - type: object - properties: - reference: - type: string - nullable: true - description: User-friendly reference for the direct cost. - note: - type: string - nullable: true - description: A note attached to the direct cost. - contactRef: - $ref: '#/components/schemas/AccountingJournalEntry/definitions/journalLine/properties/contactRef' - description: A customer or supplier associated with the direct cost. - issueDate: - $ref: '#/components/schemas/DateTime' - description: Date of the direct cost as recorded in the accounting software.Date of the direct cost as recorded in the accounting software. - currency: - $ref: '#/components/schemas/SourceAccount/properties/currency' - description: Currency of the direct cost. - currencyRate: - $ref: '#/components/schemas/AccountingPaymentAllocation/definitions/paymentAllocationPayment/properties/currencyRate' - lineItems: - type: array - description: An array of line items. - items: - $ref: '#/components/schemas/AccountingDirectCost/definitions/directCostLineItem' - paymentAllocations: - type: array - description: An array of payment allocations. - items: - $ref: '#/components/schemas/AccountingPaymentAllocation' - subTotal: - type: number - format: decimal - description: 'The total amount of the direct costs, excluding any taxes.' - taxAmount: - type: number - format: decimal - description: The total amount of tax on the direct costs. - totalAmount: - type: number - format: decimal - description: 'The amount of the direct costs, inclusive of tax.' - supplementalData: - $ref: '#/components/schemas/SupplementalData' - required: - - issueDate - - currency - - lineItems - - paymentAllocations - - subTotal - - taxAmount - - totalAmount - directCostLineItem: - type: object - properties: - description: - type: string - nullable: true - description: Friendly name of the goods or services. - unitAmount: - type: number - format: decimal - description: |- - Price of each unit of goods or services. - Note: If the platform does not provide this information, the unit amount will be mapped to the total amount. - quantity: - type: number - format: decimal - description: |- - Number of units of goods or services received. - - Note: If the platform does not provide this information, the quantity will be mapped as 1. - discountAmount: - type: number - format: decimal - nullable: true - description: Discount amount for the line before tax. - discountPercentage: - type: number - format: decimal - nullable: true - description: Discount percentage for the line before tax. - subTotal: - type: number - format: decimal - nullable: true - description: 'Amount of the line, inclusive of discounts but exclusive of tax.' - taxAmount: - type: number - format: decimal - nullable: true - description: Amount of tax for the line. - totalAmount: - type: number - format: decimal - nullable: true - description: 'Total amount of the line, including tax.' - accountRef: - $ref: '#/components/schemas/AccountingAccount/definitions/accountRef' - description: Reference to the account to which the line item is linked. - taxRateRef: - $ref: '#/components/schemas/AccountingBillCreditNote/definitions/billCreditNoteLineItem/properties/taxRateRef' - description: Reference to the tax rate to which the the line item is linked. - itemRef: - $ref: '#/components/schemas/AccountingBillCreditNote/definitions/billCreditNoteLineItem/properties/itemRef' - description: 'Reference to the product, service type, or inventory item to which the direct cost is linked.' - trackingCategoryRefs: - type: array - nullable: true - deprecated: true - description: Collection of categories against which this direct cost is tracked. - items: - $ref: '#/components/schemas/AccountingTrackingCategory/definitions/trackingCategoryRef' - tracking: - $ref: '#/components/schemas/AccountingDirectCost/definitions/tracking' - required: - - unitAmount - - quantity - tracking: - title: Invoiceable tracking - required: - - recordRefs - type: object - properties: - recordRefs: - type: array - items: - $ref: '#/components/schemas/AccountingJournalEntry/definitions/journalLine/properties/tracking/definitions/trackingRecordRef' - invoiceTo: - $ref: '#/components/schemas/AccountingRecordRef' - additionalProperties: false - invoiceTo: - type: object - title: Invoice to - description: Links to the customer the direct cost is associated. - properties: - id: - type: string - description: '''id'' of the underlying record or data type.' - dataType: - type: string - description: Name of underlying data type. - enum: - - customers - example: customers - AccountingDirectCosts: - title: 'Accounting: Direct costs' - x-internal: true - allOf: - - type: object - properties: - results: - type: array - items: - $ref: '#/components/schemas/AccountingDirectCost' - - $ref: '#/components/schemas/PagingInfo' - AccountingDirectIncome: - title: 'Accounting: Direct income' - description: "> **Language tip:** Direct incomes may also be referred to as **Receive transactions**, **Receive money transactions**, **Sales receipts**, or **Cash sales** in various accounting software.\n\n## Overview\n\nDirect incomes are incomes received directly from the business' operations. For example, cash sales of items to a customer, referral commissions, and service fee refunds are considered direct incomes made at the point of sale.\n\nDirect incomes include: \n\n- Selling an item directly to a contact, and receiving payment at the point of the sale.\n- Refunding an item sold at the point of sale in cash to a contact.\n\nDirect incomes is a child data type of [account transactions](https://docs.codat.io/lending-api#/schemas/AccountTransaction).\n" - type: object - allOf: - - type: object - properties: - id: - type: string - description: 'Identifier of the direct income, unique for the company.' - reference: - type: string - nullable: true - description: User-friendly reference for the direct income. - note: - type: string - nullable: true - description: An optional note on the direct income that can be used to assign the direct income with a reference ID in your application. - contactRef: - $ref: '#/components/schemas/AccountingJournalEntry/definitions/journalLine/properties/contactRef' - description: A customer or supplier associated with the direct income. - issueDate: - $ref: '#/components/schemas/DateTime' - description: The date of the direct income as recorded in the accounting software. - currency: - $ref: '#/components/schemas/SourceAccount/properties/currency' - description: The currency of the direct income. - currencyRate: - $ref: '#/components/schemas/AccountingPaymentAllocation/definitions/paymentAllocationPayment/properties/currencyRate' - lineItems: - type: array - description: An array of line items. - items: - $ref: '#/components/schemas/AccountingDirectIncome/definitions/directIncomeLineItem' - paymentAllocations: - type: array - items: - $ref: '#/components/schemas/AccountingPaymentAllocation' - subTotal: - type: number - format: decimal - description: 'The total amount of the direct incomes, excluding any taxes.' - taxAmount: - type: number - format: decimal - description: The total amount of tax on the direct incomes. - totalAmount: - type: number - format: decimal - description: 'The amount of the direct incomes, inclusive of tax.' - metadata: - $ref: '#/components/schemas/Metadata' - supplementalData: - $ref: '#/components/schemas/SupplementalData' - - $ref: '#/components/schemas/CommerceOrder/allOf/3' - required: - - issueDate - - currency - - lineItems - - paymentAllocations - - subTotal - - taxAmount - - totalAmount - definitions: - directIncomeLineItem: - type: object - properties: - description: - type: string - nullable: true - description: A user-friendly name of the goods or services. - unitAmount: - type: number - format: decimal - description: |- - The price of each unit of goods or services. - Note: If the platform does not provide this information, the unit amount will be mapped to the total amount. - quantity: - type: number - format: decimal - description: |- - The number of units of goods or services received. - - Note: If the platform does not provide this information, the quantity will be mapped as 1. - discountAmount: - type: number - format: decimal - nullable: true - description: Discount amount for the line before tax. - discountPercentage: - type: number - format: decimal - nullable: true - description: Discount percentage for the line before tax. - subTotal: - type: number - format: decimal - nullable: true - description: 'The amount of the line, inclusive of discounts, but exclusive of tax.' - taxAmount: - type: number - format: decimal - nullable: true - description: |- - The amount of tax for the line. - Note: If the platform does not provide this information, the quantity will be mapped as 0.00. - totalAmount: - type: number - format: decimal - nullable: true - description: 'The total amount of the line, including tax.' - accountRef: - $ref: '#/components/schemas/AccountingAccount/definitions/accountRef' - description: Reference to the account to which the line item is linked. - taxRateRef: - $ref: '#/components/schemas/AccountingBillCreditNote/definitions/billCreditNoteLineItem/properties/taxRateRef' - description: Reference to the tax rate to which the line item is linked. - itemRef: - $ref: '#/components/schemas/AccountingBillCreditNote/definitions/billCreditNoteLineItem/properties/itemRef' - description: 'Reference to the product, service type, or inventory item to which the direct cost is linked.' - trackingCategoryRefs: - type: array - nullable: true - description: An array of categories against which this direct cost is tracked. - items: - $ref: '#/components/schemas/AccountingTrackingCategory/definitions/trackingCategoryRef' - required: - - unitAmount - - quantity - AccountingDirectIncomes: - title: 'Accounting: Direct incomes' - x-internal: true - allOf: - - type: object - properties: - results: - type: array - items: - $ref: '#/components/schemas/AccountingDirectIncome' - - $ref: '#/components/schemas/PagingInfo' - AccountingInvoice: - title: 'Accounting: Invoice' - description: "> **Invoices or bills?**\n>\n> We distinguish between invoices where the company *owes money* vs. *is owed money*. If the company issued an invoice, and is owed money (accounts receivable) we call this an Invoice.\n>\n> See [Bills](https://docs.codat.io/lending-api#/schemas/Bill) for the accounts payable equivalent of bills.\n\n## Overview\n\nAn invoice is an itemized record of goods sold or services provided to a [customer](https://docs.codat.io/lending-api#/schemas/Customer).\n\nIn Codat, an invoice contains details of:\n\n- The timeline of the invoice—when it was raised, marked as paid, last edited, and so on.\n- How much the invoice is for, what portion of the invoice is tax or discounts, and what currency the amounts are represented in. \n- Who the invoice has been raised to; the _customer_.\n- The breakdown of what the invoice is for; the _line items_.\n- Any [payments](https://docs.codat.io/lending-api#/schemas/Payment) assigned to the invoice; the _payment allocations_.\n\n> **Invoice PDF downloads** \n>\n> You can download a PDF version of an invoice for supported integrations.\n> \n> The filename will be invoice-{number}.pdf.\n\n> **Referencing an invoice in Sage 50 and ClearBooks**\n>\n> In Sage 50 and ClearBooks, you may prefer to use the **invoiceNumber** to identify an invoice rather than the invoice **id**. Each time a draft invoice is submitted or printed, the draft **id** becomes void and a submitted invoice with a new **id** exists in its place. In both platforms, the **invoiceNumber** should remain the same." - type: object - allOf: - - type: object - properties: - id: - type: string - description: 'Identifier for the invoice, unique to the company in the accounting software.' - invoiceNumber: - type: string - nullable: true - description: 'Friendly reference for the invoice. If available, this appears in the file name of invoice attachments.' - customerRef: - $ref: '#/components/schemas/AccountingCustomer/definitions/accountingCustomerRef' - description: Reference to the customer the invoice has been issued to. - salesOrderRefs: - type: array - nullable: true - description: List of references to related Sales orders. - items: - title: Sales order reference - type: object - properties: - id: - type: string - description: Unique identifier to a record in `dataType`. - dataType: - type: string - description: The underlying data type associated to the reference `id`. - enum: - - salesOrders - issueDate: - $ref: '#/components/schemas/DateTime' - description: Date of the invoice as recorded in the accounting system. - dueDate: - $ref: '#/components/schemas/DateTime' - description: Date the customer is due to be paid by. - paidOnDate: - $ref: '#/components/schemas/DateTime' - description: 'Date the invoice was marked as paid in the accounting system. If this field is not available from the accounting software, it is calculated by Codat using associated payments.' - currency: - $ref: '#/components/schemas/SourceAccount/properties/currency' - description: Currency of the invoice. - currencyRate: - $ref: '#/components/schemas/AccountingPaymentAllocation/definitions/paymentAllocationPayment/properties/currencyRate' - lineItems: - type: array - nullable: true - description: An array of line items. - items: - $ref: '#/components/schemas/AccountingInvoice/definitions/invoiceLineItem' - paymentAllocations: - type: array - nullable: true - description: An array of payment allocations. - items: - $ref: '#/components/schemas/AccountingPaymentAllocation' - withholdingTax: - type: array - nullable: true - items: - $ref: '#/components/schemas/AccountingBill/allOf/0/properties/withholdingTax/items' - totalDiscount: - type: number - format: decimal - nullable: true - description: Numerical value of discounts applied to the invoice. - subTotal: - type: number - format: decimal - nullable: true - description: Total amount of the invoice excluding any taxes. - additionalTaxAmount: - type: number - format: decimal - description: Additional tax amount applied to invoice. - additionalTaxPercentage: - type: number - format: decimal - description: Percentage rate of any additional tax applied to the invoice. - totalTaxAmount: - type: number - format: decimal - description: Amount of tax on the invoice. - totalAmount: - type: number - format: decimal - description: 'Amount of the invoice, inclusive of tax.' - amountDue: - type: number - format: decimal - description: Amount outstanding on the invoice. - discountPercentage: - type: number - format: decimal - nullable: true - description: 'Percentage rate (from 0 to 100) of discounts applied to the invoice. For example: A 5% discount will return a value of `5`, not `0.05`.' - status: - $ref: '#/components/schemas/AccountingInvoice/definitions/invoiceStatus' - note: - type: string - nullable: true - description: 'Any additional information about the invoice. Where possible, Codat links to a data field in the accounting software that is publicly available. This means that the contents of the note field are included when an invoice is emailed from the accounting software to the customer.' - metadata: - $ref: '#/components/schemas/Metadata' - supplementalData: - $ref: '#/components/schemas/SupplementalData' - - $ref: '#/components/schemas/CommerceOrder/allOf/3' - required: - - issueDate - - totalTaxAmount - - totalAmount - - amountDue - - status - definitions: - invoiceLineItem: - type: object - properties: - description: - type: string - nullable: true - description: Friendly name of the goods or services provided. - unitAmount: - type: number - format: decimal - description: Price of each unit of goods or services. - quantity: - type: number - format: decimal - description: Number of units of goods or services provided. - discountAmount: - type: number - format: decimal - nullable: true - description: Numerical value of any discounts applied. - subTotal: - type: number - format: decimal - nullable: true - description: 'Amount of the line, inclusive of discounts but exclusive of tax.' - taxAmount: - type: number - format: decimal - nullable: true - description: Amount of tax for the line. - totalAmount: - type: number - format: decimal - nullable: true - description: 'Total amount of the line, including tax. When pushing invoices to Xero, the total amount is exclusive of tax to allow automatic calculations if a tax rate or tax amount is not specified.' - accountRef: - $ref: '#/components/schemas/AccountingAccount/definitions/accountRef' - description: Reference to the account to which the line item is linked. - discountPercentage: - type: number - format: decimal - nullable: true - description: Percentage rate (from 0 to 100) of any discounts applied to the unit amount. - taxRateRef: - $ref: '#/components/schemas/AccountingBillCreditNote/definitions/billCreditNoteLineItem/properties/taxRateRef' - description: Reference to the tax rate to which the line item is linked. - itemRef: - $ref: '#/components/schemas/AccountingBillCreditNote/definitions/billCreditNoteLineItem/properties/itemRef' - description: Reference to the item the line is linked to. - trackingCategoryRefs: - type: array - nullable: true - description: Reference to the tracking categories to which the line item is linked. - items: - $ref: '#/components/schemas/AccountingTrackingCategory/definitions/trackingCategoryRef' - tracking: - $ref: '#/components/schemas/AccountsReceivableTracking' - isDirectIncome: - type: boolean - description: The invoice is a direct income if `True`. - required: - - unitAmount - - quantity - invoiceStatus: - type: string - enum: - - Unknown - - Draft - - Submitted - - PartiallyPaid - - Paid - - Void - description: |- - Current state of the invoice: - - - `Draft` - Invoice hasn't been submitted to the supplier. It may be in a pending state or is scheduled for future submission, for example by email. - - `Submitted` - Invoice is no longer a draft. It has been processed and, or, sent to the customer. In this state, it will impact the ledger. It also has no payments made against it, meaning `amountDue` will usually equal `totalAmount` (unless tax is witheld). - - `PartiallyPaid` - The balance paid against the invoice is positive, but less than the total invoice amount, meaning `0 < amountDue < totalAmount`. - - `Paid` - Invoice is paid in full. This includes if the invoice has been credited or overpaid, meaning `amountDue == 0`. - - `Void` - An invoice can become Void when it's deleted, refunded, written off, or cancelled. A voided invoice may still be PartiallyPaid, and so all outstanding amounts on voided invoices are removed from the accounts receivable account. - AccountingInvoices: - title: 'Accounting: Invoices' - x-internal: true - allOf: - - type: object - properties: - results: - type: array - items: - $ref: '#/components/schemas/AccountingInvoice' - - $ref: '#/components/schemas/PagingInfo' - AccountingJournal: - title: 'Accounting: Journal' - description: | - > **Language tip:** For line items, or individual transactions, of a company's financial documents, refer to the [Journal entries](https://docs.codat.io/lending-api#/schemas/JournalEntry) data type - - ## Overview - - In accounting software, journals are used to record all the financial transactions of a company. Each transaction in a journal is represented by a separate [journal entry](https://docs.codat.io/lending-api#/schemas/JournalEntry). These entries are used to create the general ledger, which is then used to create the financial statements of a business. - - When a company records all their transactions in a single journal, it can become large and difficult to maintain and track. This is why large companies often use multiple journals (also known as subjournals) to categorize and manage journal entries. - - Such journals can be divided into two categories: - - - Special journals: journals used to record specific types of transactions; for example, a purchases journal, a sales journal, or a cash management journal. - - General journals: journals used to record transactions that fall outside the scope of the special journals. - - Multiple journals or subjournals are used in the following Codat integrations: - - - [Sage Intacct](https://docs.codat.io/integrations/accounting/sage-intacct/accounting-sage-intacct) (mandatory) - - [Exact Online](https://docs.codat.io/integrations/accounting/exact-online/accounting-exact-online) (mandatory) - - [Oracle NetSuite](https://docs.codat.io/integrations/accounting/netsuite/accounting-netsuite) (optional) - - > When pushing journal entries to an accounting software that doesn’t support multiple journals (multi-book accounting), the entries will be linked to the platform-generic journal. The Journals data type will only include one object. - type: object - allOf: - - type: object - properties: - id: - type: string - description: Journal ID. - - $ref: '#/components/schemas/AccountingJournal/definitions/journalPrototype' - - properties: - metadata: - $ref: '#/components/schemas/Metadata' - - $ref: '#/components/schemas/CommerceOrder/allOf/3' - definitions: - journalPrototype: - type: object - properties: - journalCode: - type: string - nullable: true - description: Native journal number or code. - name: - type: string - nullable: true - description: |- - Journal name. - The maximum length for a journal name is 256 characters. All characters above that number will be truncated. - type: - type: string - nullable: true - description: The type of the journal. - parentId: - type: string - nullable: true - description: |- - Parent journal ID. - If the journal is a parent journal, this value is not present. - hasChildren: - type: boolean - description: 'If the journal has child journals, this value is true. If it doesn’t, it is false.' - createdOn: - $ref: '#/components/schemas/DateTime' - description: Journal creation date. - status: - $ref: '#/components/schemas/AccountingJournal/definitions/journalStatus' - journalRef: - title: Journal reference - type: object - additionalProperties: false - description: Links journal entries to the relevant journal in accounting integrations that use multi-book accounting (multiple journals). - properties: - id: - minLength: 1 - type: string - description: GUID of the underlying journal. - name: - type: string - maxLength: 256 - nullable: true - description: Name of journal - required: - - id - journalStatus: - type: string - description: Current journal status. - enum: - - Unknown - - Active - - Archived - AccountingJournalEntries: - title: 'Accounting: Journal entries' - x-internal: true - allOf: - - type: object - properties: - results: - type: array - items: - $ref: '#/components/schemas/AccountingJournalEntry' - - $ref: '#/components/schemas/PagingInfo' - AccountingJournalEntry: - title: 'Accounting: Journal entry' - description: "> **Language tip:** For the top-level record of a company's financial transactions, refer to the [Journals](https://docs.codat.io/lending-api#/schemas/Journal) data type\n\n## Overview\n\nA journal entry report shows the entries made in a company's general ledger, or [accounts](https://docs.codat.io/lending-api#/schemas/Account), when transactions are approved. The journal line items for each journal entry should balance.\n\nA journal entry line item is a single transaction line on the journal entry. For example: \n\n- When a journal entry is recording a receipt of cash, the credit to accounts receivable and the debit to cash are separate line items. \n- When a company needs to recognise revenue from an annual contract on a monthly basis, on receipt of cash for month one, they make a debit to deferred income and a credit to revenue.\n\nIn Codat a journal entry contains details of:\n\n- The date on which the entry was created and posted.\n- Itemised lines, including amounts and currency.\n- A reference to the associated accounts.\n- A reference to the underlying record. For example, the invoice, bill, or other data type that triggered the posting of the journal entry to the general ledger. \n\n> **Pushing journal entries** \n> Codat only supports journal entries in the base currency of the company that are pushed into accounts denominated in the same base currency." - type: object - allOf: - - type: object - properties: - id: - type: string - description: Unique identifier of the journal entry for the company in the accounting software. - description: - type: string - nullable: true - description: Optional description of the journal entry. - postedOn: - $ref: '#/components/schemas/DateTime' - description: |- - Date on which the journal entry was posted to the accounting software, and had an impact on the general ledger. This may be different from the creation date. - - For example, a user creates a journal entry on Monday and saves it as draft, which has no impact on the general ledger. On Thursday, they return to the entry and post it. - - The **createdOn** date shows as Monday. - The **postedOn** date shows as Thursday. - Journal entries can also be backdated, so the **postedOn** date may be earlier than the **createdOn** date. - createdOn: - $ref: '#/components/schemas/DateTime' - description: Date on which the journal was created in the accounting software. - updatedOn: - $ref: '#/components/schemas/DateTime' - description: Date on which the journal was last updated in the accounting software. - journalRef: - $ref: '#/components/schemas/AccountingJournal/definitions/journalRef' - journalLines: - type: array - nullable: true - description: An array of journal lines. - items: - $ref: '#/components/schemas/AccountingJournalEntry/definitions/journalLine' - recordRef: - $ref: '#/components/schemas/AccountingJournalEntry/definitions/journalEntryRecordRef' - metadata: - $ref: '#/components/schemas/Metadata' - supplementalData: - $ref: '#/components/schemas/SupplementalData' - - $ref: '#/components/schemas/CommerceOrder/allOf/3' - definitions: - journalLine: - type: object - properties: - description: - type: string - nullable: true - description: Description of the journal line item. - netAmount: - type: number - format: decimal - description: 'Amount for the journal line. Debit entries are considered positive, and credit entries are considered negative.' - transactionAmount: - type: number - format: decimal - description: The amount in the original transaction currency. - currency: - type: string - nullable: true - description: Currency for the journal line item. - transactionCurrency: - type: string - nullable: true - description: Currency of the original transaction. - accountRef: - $ref: '#/components/schemas/AccountingAccount/definitions/accountRef' - tracking: - description: 'List of record refs associated with the tracking information for the line (eg to a Tracking Category, or customer etc.)' - title: Tracking - type: object - properties: - recordRefs: - type: array - items: - $ref: '#/components/schemas/AccountingJournalEntry/definitions/journalLine/properties/tracking/definitions/trackingRecordRef' - nullable: true - definitions: - trackingRecordRef: - type: object - title: Record reference - description: Links to the customer or tracking category. - properties: - id: - type: string - description: '''id'' of the underlying record or data type.' - dataType: - type: string - description: Name of underlying data type. - enum: - - customers - - suppliers - - trackingCategories - example: trackingCategories - contactRef: - title: Contact reference - type: object - properties: - id: - minLength: 1 - type: string - description: Unique identifier for a customer or supplier. - dataType: - type: string - nullable: true - description: Allowed name of the 'dataType'. - enum: - - customers - - suppliers - required: - - id - required: - - netAmount - journalEntryRecordRef: - type: object - title: Record reference - description: Links a journal entry to the underlying record that created it. - properties: - id: - type: string - description: '''id'' of the underlying record or data type.' - dataType: - type: string - description: Name of underlying data type. - enum: - - bankTransactions - - billCreditNotes - - billPayments - - bills - - creditNotes - - directCosts - - directIncomes - - invoices - - journalEntries - - payments - - transfers - example: transfers - AccountingJournals: - title: 'Accounting: Journals' - x-internal: true - allOf: - - type: object - properties: - results: - type: array - items: - $ref: '#/components/schemas/AccountingJournal' - - $ref: '#/components/schemas/PagingInfo' - AccountingPayment: - title: 'Accounting: Payment' - description: "\uFEFF\x3E\x20\x2A\x2A\x50\x61\x79\x6D\x65\x6E\x74\x73\x20\x6F\x72\x20\x62\x69\x6C\x6C\x20\x70\x61\x79\x6D\x65\x6E\x74\x73\x3F\x2A\x2A\n\x3E\n\x3E\x20\x20\x49\x6E\x20\x43\x6F\x64\x61\x74\x2C\x20\x70\x61\x79\x6D\x65\x6E\x74\x73\x20\x72\x65\x70\x72\x65\x73\x65\x6E\x74\x20\x61\x63\x63\x6F\x75\x6E\x74\x73\x20\x72\x65\x63\x65\x69\x76\x61\x62\x6C\x65\x20\x6F\x6E\x6C\x79\x2E\x20\x46\x6F\x72\x20\x61\x63\x63\x6F\x75\x6E\x74\x73\x20\x70\x61\x79\x61\x62\x6C\x65\x2C\x20\x73\x65\x65\x20\x5B\x62\x69\x6C\x6C\x20\x70\x61\x79\x6D\x65\x6E\x74\x73\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x6C\x65\x6E\x64\x69\x6E\x67\x2D\x61\x70\x69\x23\x2F\x73\x63\x68\x65\x6D\x61\x73\x2F\x42\x69\x6C\x6C\x50\x61\x79\x6D\x65\x6E\x74\x29\x2E\x20\x54\x68\x65\x73\x65\x20\x69\x6E\x63\x6C\x75\x64\x65\x20\x5B\x62\x69\x6C\x6C\x73\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x6C\x65\x6E\x64\x69\x6E\x67\x2D\x61\x70\x69\x23\x2F\x73\x63\x68\x65\x6D\x61\x73\x2F\x42\x69\x6C\x6C\x29\x20\x61\x6E\x64\x20\x63\x72\x65\x64\x69\x74\x20\x6E\x6F\x74\x65\x73\x20\x61\x67\x61\x69\x6E\x73\x74\x20\x62\x69\x6C\x6C\x73\x2E\n\n\x23\x23\x20\x4F\x76\x65\x72\x76\x69\x65\x77\n\n\x50\x61\x79\x6D\x65\x6E\x74\x73\x20\x69\x6E\x63\x6C\x75\x64\x65\x20\x61\x6C\x6C\x20\x61\x63\x63\x6F\x75\x6E\x74\x73\x20\x72\x65\x63\x65\x69\x76\x61\x62\x6C\x65\x20\x74\x72\x61\x6E\x73\x61\x63\x74\x69\x6F\x6E\x20\x64\x61\x74\x61\x2E\x20\x54\x68\x69\x73\x20\x69\x6E\x63\x6C\x75\x64\x65\x73\x20\x5B\x69\x6E\x76\x6F\x69\x63\x65\x73\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x6C\x65\x6E\x64\x69\x6E\x67\x2D\x61\x70\x69\x23\x2F\x73\x63\x68\x65\x6D\x61\x73\x2F\x49\x6E\x76\x6F\x69\x63\x65\x29\x20\x61\x6E\x64\x20\x5B\x63\x72\x65\x64\x69\x74\x20\x6E\x6F\x74\x65\x73\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x6C\x65\x6E\x64\x69\x6E\x67\x2D\x61\x70\x69\x23\x2F\x73\x63\x68\x65\x6D\x61\x73\x2F\x43\x72\x65\x64\x69\x74\x4E\x6F\x74\x65\x29\x2E\n\n\x41\x20\x70\x61\x79\x6D\x65\x6E\x74\x20\x69\x6E\x20\x43\x6F\x64\x61\x74\x20\x75\x73\x75\x61\x6C\x6C\x79\x20\x72\x65\x70\x72\x65\x73\x65\x6E\x74\x73\x20\x61\x6E\x20\x61\x6C\x6C\x6F\x63\x61\x74\x69\x6F\x6E\x20\x6F\x66\x20\x6D\x6F\x6E\x65\x79\x20\x77\x69\x74\x68\x69\x6E\x20\x61\x6E\x79\x20\x63\x75\x73\x74\x6F\x6D\x65\x72\x20\x61\x63\x63\x6F\x75\x6E\x74\x73\x20\x72\x65\x63\x65\x69\x76\x61\x62\x6C\x65\x20\x61\x63\x63\x6F\x75\x6E\x74\x2E\x20\x54\x68\x69\x73\x20\x69\x6E\x63\x6C\x75\x64\x65\x73\x2C\x20\x62\x75\x74\x20\x69\x73\x20\x6E\x6F\x74\x20\x73\x74\x72\x69\x63\x74\x6C\x79\x20\x6C\x69\x6D\x69\x74\x65\x64\x20\x74\x6F\x3A\n\n\x2D\x20\x41\x20\x70\x61\x79\x6D\x65\x6E\x74\x20\x6D\x61\x64\x65\x20\x61\x67\x61\x69\x6E\x73\x74\x20\x61\x6E\x20\x69\x6E\x76\x6F\x69\x63\x65\x2C\x20\x6C\x69\x6B\x65\x20\x61\x20\x63\x72\x65\x64\x69\x74\x20\x63\x61\x72\x64\x2C\x20\x63\x68\x65\x71\x75\x65\x2C\x20\x6F\x72\x20\x63\x61\x73\x68\x20\x70\x61\x79\x6D\x65\x6E\x74\x2E\n\x2D\x20\x41\x6E\x20\x61\x6C\x6C\x6F\x63\x61\x74\x69\x6F\x6E\x20\x6F\x66\x20\x61\x20\x63\x75\x73\x74\x6F\x6D\x65\x72\x27\x73\x20\x63\x72\x65\x64\x69\x74\x20\x6E\x6F\x74\x65\x2C\x20\x65\x69\x74\x68\x65\x72\x20\x74\x6F\x20\x61\x6E\x20\x69\x6E\x76\x6F\x69\x63\x65\x20\x6F\x72\x20\x6D\x61\x79\x62\x65\x20\x61\x20\x72\x65\x66\x75\x6E\x64\x2E\n\x2D\x20\x41\x20\x70\x61\x79\x6D\x65\x6E\x74\x20\x6D\x61\x64\x65\x20\x64\x69\x72\x65\x63\x74\x6C\x79\x20\x74\x6F\x20\x74\x68\x61\x74\x20\x61\x63\x63\x6F\x75\x6E\x74\x73\x20\x72\x65\x63\x65\x69\x76\x61\x62\x6C\x65\x20\x61\x63\x63\x6F\x75\x6E\x74\x2E\x20\x54\x68\x69\x73\x20\x6D\x69\x67\x68\x74\x20\x62\x65\x20\x61\x6E\x20\x6F\x76\x65\x72\x70\x61\x79\x6D\x65\x6E\x74\x20\x6F\x72\x20\x61\x20\x70\x72\x65\x70\x61\x79\x6D\x65\x6E\x74\x2E\x20\x49\x74\x20\x6D\x69\x67\x68\x74\x20\x61\x6C\x73\x6F\x20\x62\x65\x20\x74\x68\x65\x20\x72\x65\x66\x75\x6E\x64\x20\x6F\x66\x20\x61\x20\x70\x61\x79\x6D\x65\x6E\x74\x20\x6D\x61\x64\x65\x20\x64\x69\x72\x65\x63\x74\x6C\x79\x20\x74\x6F\x20\x61\x6E\x20\x61\x63\x63\x6F\x75\x6E\x74\x73\x20\x72\x65\x63\x65\x69\x76\x61\x62\x6C\x65\x20\x61\x63\x63\x6F\x75\x6E\x74\x2E\n\n\x44\x65\x70\x65\x6E\x64\x69\x6E\x67\x20\x6F\x6E\x20\x74\x68\x65\x20\x70\x61\x79\x6D\x65\x6E\x74\x73\x20\x61\x6C\x6C\x6F\x77\x65\x64\x20\x62\x79\x20\x74\x68\x65\x20\x75\x6E\x64\x65\x72\x6C\x79\x69\x6E\x67\x20\x61\x63\x63\x6F\x75\x6E\x74\x69\x6E\x67\x20\x73\x6F\x66\x74\x77\x61\x72\x65\x2C\x20\x73\x6F\x6D\x65\x20\x70\x61\x79\x6D\x65\x6E\x74\x20\x74\x79\x70\x65\x73\x20\x6D\x61\x79\x20\x62\x65\x20\x63\x6F\x6D\x62\x69\x6E\x65\x64\x2E\x20\x50\x6C\x65\x61\x73\x65\x20\x73\x65\x65\x20\x74\x68\x65\x20\x65\x78\x61\x6D\x70\x6C\x65\x20\x66\x6F\x72\x20\x6D\x6F\x72\x65\x20\x64\x65\x74\x61\x69\x6C\x73\x2E\n\n\x49\x6E\x20\x43\x6F\x64\x61\x74\x2C\x20\x61\x20\x70\x61\x79\x6D\x65\x6E\x74\x20\x63\x6F\x6E\x74\x61\x69\x6E\x73\x20\x64\x65\x74\x61\x69\x6C\x73\x20\x6F\x66\x3A\n\n\x2D\x20\x57\x68\x65\x6E\x20\x74\x68\x65\x20\x70\x61\x79\x6D\x65\x6E\x74\x20\x77\x61\x73\x20\x72\x65\x63\x6F\x72\x64\x65\x64\x20\x69\x6E\x20\x74\x68\x65\x20\x61\x63\x63\x6F\x75\x6E\x74\x69\x6E\x67\x20\x73\x79\x73\x74\x65\x6D\x2E\n\x2D\x20\x48\x6F\x77\x20\x6D\x75\x63\x68\x20\x69\x74\x20\x69\x73\x20\x66\x6F\x72\x20\x61\x6E\x64\x20\x69\x6E\x20\x77\x68\x61\x74\x20\x63\x75\x72\x72\x65\x6E\x63\x79\x20\x74\x68\x61\x74\x20\x61\x6D\x6F\x75\x6E\x74\x20\x69\x73\x20\x69\x6E\x2E\n\x2D\x20\x57\x68\x6F\x20\x74\x68\x65\x20\x70\x61\x79\x6D\x65\x6E\x74\x20\x77\x61\x73\x20\x5F\x70\x61\x69\x64\x20\x62\x79\x5F\x20\u2013\x20\x74\x68\x65\x20\x5F\x63\x75\x73\x74\x6F\x6D\x65\x72\x5F\x2E\n\x2D\x20\x54\x68\x65\x20\x70\x61\x79\x6D\x65\x6E\x74\x20\x6D\x65\x74\x68\x6F\x64\x20\x75\x73\x65\x64\x2E\n\x2D\x20\x54\x68\x65\x20\x62\x72\x65\x61\x6B\x64\x6F\x77\x6E\x20\x6F\x66\x20\x74\x68\x65\x20\x74\x79\x70\x65\x73\x20\x6F\x66\x20\x70\x61\x79\x6D\x65\x6E\x74\x73\x20\u2013\x20\x74\x68\x65\x20\x5F\x6C\x69\x6E\x65\x20\x69\x74\x65\x6D\x73\x5F\x2E\n\n\x50\x61\x79\x6D\x65\x6E\x74\x73\x20\x69\x73\x20\x61\x20\x63\x68\x69\x6C\x64\x20\x64\x61\x74\x61\x20\x74\x79\x70\x65\x20\x6F\x66\x20\x5B\x61\x63\x63\x6F\x75\x6E\x74\x20\x74\x72\x61\x6E\x73\x61\x63\x74\x69\x6F\x6E\x73\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x6C\x65\x6E\x64\x69\x6E\x67\x2D\x61\x70\x69\x23\x2F\x73\x63\x68\x65\x6D\x61\x73\x2F\x41\x63\x63\x6F\x75\x6E\x74\x54\x72\x61\x6E\x73\x61\x63\x74\x69\x6F\x6E\x29\x2E\n\n\x23\x23\x20\x50\x61\x79\x6D\x65\x6E\x74\x20\x74\x79\x70\x65\x73\n\n\x23\x23\x20\x50\x61\x79\x6D\x65\x6E\x74\x20\x6F\x66\x20\x61\x6E\x20\x69\x6E\x76\x6F\x69\x63\x65\n\n\x41\x20\x70\x61\x79\x6D\x65\x6E\x74\x20\x70\x61\x79\x69\x6E\x67\x20\x61\x20\x73\x69\x6E\x67\x6C\x65\x20\x69\x6E\x76\x6F\x69\x63\x65\x20\x68\x61\x73\x20\x6F\x6E\x65\x20\x65\x6E\x74\x72\x79\x20\x69\x6E\x20\x69\x74\x73\x20\x60\x6C\x69\x6E\x65\x73\x60\x20\x61\x72\x72\x61\x79\x2E\x20\x54\x68\x69\x73\x20\x2A\x2A\x6C\x69\x6E\x65\x2A\x2A\x20\x68\x61\x73\x20\x74\x68\x65\x20\x66\x6F\x6C\x6C\x6F\x77\x69\x6E\x67\x20\x70\x72\x6F\x70\x65\x72\x74\x69\x65\x73\x3A\n\n\x2D\x20\x41\x6E\x20\x5F\x61\x6D\x6F\x75\x6E\x74\x5F\x20\x74\x68\x61\x74\x20\x69\x6E\x64\x69\x63\x61\x74\x65\x73\x20\x74\x68\x65\x20\x61\x6D\x6F\x75\x6E\x74\x20\x6F\x66\x20\x74\x68\x65\x20\x69\x6E\x76\x6F\x69\x63\x65\x20\x74\x68\x61\x74\x20\x77\x61\x73\x20\x70\x61\x69\x64\x2E\x20\x54\x68\x69\x73\x20\x69\x73\x20\x61\x6C\x77\x61\x79\x73\x20\x70\x6F\x73\x69\x74\x69\x76\x65\x2E\n\x2D\x20\x41\x20\x2A\x2A\x6C\x69\x6E\x6B\x73\x2A\x2A\x20\x61\x72\x72\x61\x79\x20\x63\x6F\x6E\x74\x61\x69\x6E\x69\x6E\x67\x20\x6F\x6E\x65\x20\x65\x6C\x65\x6D\x65\x6E\x74\x20\x77\x69\x74\x68\x20\x74\x68\x65\x20\x66\x6F\x6C\x6C\x6F\x77\x69\x6E\x67\x20\x70\x72\x6F\x70\x65\x72\x74\x69\x65\x73\x3A\n\x20\x20\x20\x20\x2D\x20\x41\x20\x2A\x2A\x74\x79\x70\x65\x2A\x2A\x20\x74\x68\x61\x74\x20\x69\x6E\x64\x69\x63\x61\x74\x65\x73\x20\x74\x68\x65\x20\x74\x79\x70\x65\x20\x6F\x66\x20\x2A\x2A\x6C\x69\x6E\x6B\x2A\x2A\x2C\x20\x69\x6E\x20\x74\x68\x69\x73\x20\x63\x61\x73\x65\x20\x61\x6E\x20\x60\x49\x6E\x76\x6F\x69\x63\x65\x60\x2E\n\x20\x20\x20\x20\x2D\x20\x41\x6E\x20\x2A\x2A\x69\x64\x2A\x2A\x20\x74\x68\x61\x74\x20\x63\x6F\x6E\x74\x61\x69\x6E\x73\x20\x74\x68\x65\x20\x49\x44\x20\x6F\x66\x20\x74\x68\x65\x20\x69\x6E\x76\x6F\x69\x63\x65\x20\x74\x68\x61\x74\x20\x77\x61\x73\x20\x70\x61\x69\x64\x2E\n\x20\x20\x20\x20\x2D\x20\x41\x6E\x20\x2A\x2A\x61\x6D\x6F\x75\x6E\x74\x2A\x2A\x20\x66\x6F\x72\x20\x74\x68\x65\x20\x6C\x69\x6E\x6B\x2E\x20\x54\x68\x65\x20\x73\x75\x6D\x20\x6F\x66\x20\x74\x68\x65\x20\x2A\x2A\x6C\x69\x6E\x65\x2E\x61\x6D\x6F\x75\x6E\x74\x2A\x2A\x20\x61\x6E\x64\x20\x74\x68\x65\x20\x2A\x2A\x6C\x69\x6E\x6B\x73\x2E\x61\x6D\x6F\x75\x6E\x74\x2A\x2A\x20\x6D\x75\x73\x74\x20\x65\x71\x75\x61\x6C\x20\x60\x30\x60\x2E\n\n\x54\x68\x65\x20\x2A\x2A\x61\x6D\x6F\x75\x6E\x74\x2A\x2A\x20\x66\x69\x65\x6C\x64\x20\x6F\x6E\x20\x74\x68\x65\x20\x2A\x2A\x6C\x69\x6E\x65\x2A\x2A\x20\x65\x71\x75\x61\x6C\x73\x20\x74\x68\x65\x20\x2A\x2A\x74\x6F\x74\x61\x6C\x41\x6D\x6F\x75\x6E\x74\x2A\x2A\x20\x6F\x6E\x20\x74\x68\x65\x20\x70\x61\x79\x6D\x65\x6E\x74\x2E\n\n\x23\x23\x20\x50\x61\x79\x6D\x65\x6E\x74\x20\x6F\x66\x20\x6D\x75\x6C\x74\x69\x70\x6C\x65\x20\x69\x6E\x76\x6F\x69\x63\x65\x73\n\n\x41\x20\x73\x69\x6E\x67\x6C\x65\x20\x70\x61\x79\x6D\x65\x6E\x74\x20\x63\x61\x6E\x20\x70\x61\x79\x20\x6D\x75\x6C\x74\x69\x70\x6C\x65\x20\x69\x6E\x76\x6F\x69\x63\x65\x73\x2E\x20\x54\x68\x69\x73\x20\x63\x61\x6E\x20\x62\x65\x20\x72\x65\x70\x72\x65\x73\x65\x6E\x74\x65\x64\x20\x69\x6E\x20\x6F\x6E\x65\x20\x6F\x66\x20\x74\x77\x6F\x20\x66\x6F\x72\x6D\x61\x74\x73\x20\x64\x65\x70\x65\x6E\x64\x69\x6E\x67\x20\x6F\x6E\x20\x68\x6F\x77\x20\x74\x68\x65\x20\x63\x75\x73\x74\x6F\x6D\x65\x72\x20\x6B\x65\x65\x70\x73\x20\x74\x68\x65\x69\x72\x20\x62\x6F\x6F\x6B\x73\x3A\n\n\x2D\x20\x54\x68\x65\x20\x70\x61\x79\x6D\x65\x6E\x74\x20\x68\x61\x73\x20\x6D\x75\x6C\x74\x69\x70\x6C\x65\x20\x65\x6E\x74\x72\x69\x65\x73\x20\x69\x6E\x20\x69\x74\x73\x20\x2A\x2A\x6C\x69\x6E\x65\x73\x2A\x2A\x20\x61\x72\x72\x61\x79\x2C\x20\x6F\x6E\x65\x20\x66\x6F\x72\x20\x65\x61\x63\x68\x20\x69\x6E\x76\x6F\x69\x63\x65\x20\x74\x68\x61\x74\x20\x69\x73\x20\x70\x61\x69\x64\x2E\x20\x45\x61\x63\x68\x20\x6C\x69\x6E\x65\x20\x66\x6F\x6C\x6C\x6F\x77\x73\x20\x74\x68\x65\x20\x65\x78\x61\x6D\x70\x6C\x65\x20\x61\x6E\x64\x20\x72\x75\x6C\x65\x73\x20\x64\x65\x73\x63\x72\x69\x62\x65\x64\x20\x69\x6E\x20\x5B\x50\x61\x79\x6D\x65\x6E\x74\x20\x6F\x66\x20\x61\x6E\x20\x69\x6E\x76\x6F\x69\x63\x65\x5D\x28\x23\x70\x61\x79\x6D\x65\x6E\x74\x2D\x6F\x66\x2D\x61\x6E\x2D\x69\x6E\x76\x6F\x69\x63\x65\x29\x2E\n\x2D\x20\x54\x68\x65\x20\x70\x61\x79\x6D\x65\x6E\x74\x20\x68\x61\x73\x20\x61\x20\x6C\x69\x6E\x65\x20\x77\x69\x74\x68\x20\x6D\x75\x6C\x74\x69\x70\x6C\x65\x20\x6C\x69\x6E\x6B\x73\x20\x74\x6F\x20\x65\x61\x63\x68\x20\x69\x6E\x76\x6F\x69\x63\x65\x2E\x20\x54\x68\x69\x73\x20\x6F\x63\x63\x75\x72\x73\x20\x77\x68\x65\x6E\x20\x74\x68\x65\x20\x70\x72\x6F\x70\x6F\x72\x74\x69\x6F\x6E\x20\x6F\x66\x20\x74\x68\x65\x20\x6F\x72\x69\x67\x69\x6E\x61\x6C\x20\x70\x61\x79\x6D\x65\x6E\x74\x20\x61\x6C\x6C\x6F\x63\x61\x74\x65\x64\x20\x74\x6F\x20\x65\x61\x63\x68\x20\x69\x6E\x76\x6F\x69\x63\x65\x20\x69\x73\x20\x6E\x6F\x74\x20\x61\x76\x61\x69\x6C\x61\x62\x6C\x65\x2E\n\n\x45\x61\x63\x68\x20\x2A\x2A\x6C\x69\x6E\x65\x2A\x2A\x20\x68\x61\x73\x20\x74\x68\x65\x20\x73\x61\x6D\x65\x20\x70\x72\x6F\x70\x65\x72\x74\x69\x65\x73\x20\x61\x73\x20\x74\x68\x6F\x73\x65\x20\x64\x65\x73\x63\x72\x69\x62\x65\x64\x20\x69\x6E\x20\x5B\x50\x61\x79\x6D\x65\x6E\x74\x20\x6F\x66\x20\x61\x6E\x20\x69\x6E\x76\x6F\x69\x63\x65\x5D\x28\x23\x70\x61\x79\x6D\x65\x6E\x74\x2D\x6F\x66\x2D\x61\x6E\x2D\x69\x6E\x76\x6F\x69\x63\x65\x29\x2C\x20\x77\x69\x74\x68\x20\x74\x68\x65\x20\x2A\x2A\x61\x6D\x6F\x75\x6E\x74\x2A\x2A\x20\x69\x6E\x64\x69\x63\x61\x74\x69\x6E\x67\x20\x68\x6F\x77\x20\x6D\x75\x63\x68\x20\x6F\x66\x20\x74\x68\x65\x20\x70\x61\x79\x6D\x65\x6E\x74\x20\x77\x61\x73\x20\x61\x6C\x6C\x6F\x63\x61\x74\x65\x64\x20\x74\x6F\x20\x74\x68\x65\x20\x69\x6E\x76\x6F\x69\x63\x65\x2E\x20\x54\x68\x65\x20\x73\x75\x6D\x20\x6F\x66\x20\x6C\x69\x6E\x65\x20\x61\x6D\x6F\x75\x6E\x74\x73\x20\x65\x71\x75\x61\x6C\x73\x20\x74\x68\x65\x20\x2A\x2A\x74\x6F\x74\x61\x6C\x41\x6D\x6F\x75\x6E\x74\x2A\x2A\x20\x6F\x6E\x20\x74\x68\x65\x20\x70\x61\x79\x6D\x65\x6E\x74\x2E\n\n\x23\x23\x20\x50\x61\x79\x6D\x65\x6E\x74\x73\x20\x61\x6E\x64\x20\x72\x65\x66\x75\x6E\x64\x73\x20\x6F\x6E\x20\x61\x63\x63\x6F\x75\x6E\x74\n\n\x41\x20\x70\x61\x79\x6D\x65\x6E\x74\x20\x6F\x6E\x20\x61\x63\x63\x6F\x75\x6E\x74\x2C\x20\x74\x68\x61\x74\x20\x69\x73\x20\x61\x20\x70\x61\x79\x6D\x65\x6E\x74\x20\x74\x68\x61\x74\x20\x64\x6F\x65\x73\x6E\u2019\x74\x20\x70\x61\x79\x20\x61\x20\x73\x70\x65\x63\x69\x66\x69\x63\x20\x69\x6E\x76\x6F\x69\x63\x65\x2C\x20\x68\x61\x73\x20\x6F\x6E\x65\x20\x65\x6E\x74\x72\x79\x20\x69\x6E\x20\x69\x74\x73\x20\x6C\x69\x6E\x65\x73\x20\x61\x72\x72\x61\x79\x2E\x20\x54\x68\x65\x20\x2A\x2A\x6C\x69\x6E\x65\x2A\x2A\x20\x68\x61\x73\x20\x74\x68\x65\x20\x66\x6F\x6C\x6C\x6F\x77\x69\x6E\x67\x20\x70\x72\x6F\x70\x65\x72\x74\x69\x65\x73\x3A\n\n\x2D\x20\x41\x20\x2A\x2A\x74\x6F\x74\x61\x6C\x41\x6D\x6F\x75\x6E\x74\x2A\x2A\x20\x74\x68\x61\x74\x20\x69\x6E\x64\x69\x63\x61\x74\x65\x73\x20\x74\x68\x65\x20\x61\x6D\x6F\x75\x6E\x74\x20\x70\x61\x69\x64\x20\x62\x79\x20\x61\x20\x63\x75\x73\x74\x6F\x6D\x65\x72\x20\x6F\x72\x20\x72\x65\x66\x75\x6E\x64\x65\x64\x20\x74\x6F\x20\x74\x68\x65\x6D\x20\x62\x79\x20\x61\x20\x63\x6F\x6D\x70\x61\x6E\x79\x2E\x20\x41\x20\x70\x61\x79\x6D\x65\x6E\x74\x20\x74\x6F\x20\x74\x68\x65\x20\x63\x75\x73\x74\x6F\x6D\x65\x72\x20\x69\x73\x20\x61\x6C\x77\x61\x79\x73\x20\x6E\x65\x67\x61\x74\x69\x76\x65\x2E\x20\x41\x20\x72\x65\x66\x75\x6E\x64\x20\x69\x73\x20\x61\x6C\x77\x61\x79\x73\x20\x70\x6F\x73\x69\x74\x69\x76\x65\x2E\n\x2D\x20\x41\x20\x2A\x2A\x6C\x69\x6E\x6B\x73\x2A\x2A\x20\x61\x72\x72\x61\x79\x20\x63\x6F\x6E\x74\x61\x69\x6E\x69\x6E\x67\x20\x6F\x6E\x65\x20\x65\x6C\x65\x6D\x65\x6E\x74\x20\x77\x69\x74\x68\x20\x74\x68\x65\x20\x66\x6F\x6C\x6C\x6F\x77\x69\x6E\x67\x20\x70\x72\x6F\x70\x65\x72\x74\x69\x65\x73\x3A\n\x2D\x20\x41\x20\x2A\x2A\x74\x79\x70\x65\x2A\x2A\x20\x74\x68\x61\x74\x20\x69\x6E\x64\x69\x63\x61\x74\x65\x73\x20\x74\x68\x65\x20\x74\x79\x70\x65\x20\x6F\x66\x20\x6C\x69\x6E\x6B\x2E\x20\x46\x6F\x72\x20\x61\x20\x70\x61\x79\x6D\x65\x6E\x74\x20\x74\x68\x69\x73\x20\x69\x73\x20\x60\x50\x61\x79\x6D\x65\x6E\x74\x4F\x6E\x41\x63\x63\x6F\x75\x6E\x74\x60\x2E\x20\x46\x6F\x72\x20\x61\x20\x72\x65\x66\x75\x6E\x64\x20\x74\x68\x69\x73\x20\x69\x73\x20\x60\x52\x65\x66\x75\x6E\x64\x60\x2E\n\x2D\x20\x54\x68\x65\x20\x2A\x2A\x69\x64\x2A\x2A\x20\x63\x6F\x6E\x74\x61\x69\x6E\x69\x6E\x67\x20\x74\x68\x65\x20\x49\x44\x20\x6F\x66\x20\x74\x68\x65\x20\x63\x75\x73\x74\x6F\x6D\x65\x72\x2E\n\x2D\x20\x54\x68\x65\x20\x2A\x2A\x61\x6D\x6F\x75\x6E\x74\x2A\x2A\x20\x66\x6F\x72\x20\x74\x68\x65\x20\x6C\x69\x6E\x6B\x20\x69\x73\x20\x60\x30\x60\x20\u2013\x20\x74\x68\x65\x20\x2A\x2A\x74\x6F\x74\x61\x6C\x41\x6D\x6F\x75\x6E\x74\x2A\x2A\x20\x5F\x6F\x72\x5F\x20\x74\x68\x65\x20\x61\x6D\x6F\x75\x6E\x74\x20\x6F\x66\x20\x74\x68\x65\x20\x70\x61\x79\x6D\x65\x6E\x74\x20\x6F\x72\x20\x72\x65\x66\x75\x6E\x64\x2E\n\n\x49\x74\x20\x69\x73\x20\x70\x6F\x73\x73\x69\x62\x6C\x65\x20\x74\x6F\x20\x68\x61\x76\x65\x20\x61\x20\x70\x61\x79\x6D\x65\x6E\x74\x20\x74\x68\x61\x74\x20\x69\x73\x20\x70\x61\x72\x74\x20\x5F\x6F\x6E\x20\x61\x63\x63\x6F\x75\x6E\x74\x5F\x20\x61\x6E\x64\x20\x70\x61\x72\x74\x20\x5F\x61\x6C\x6C\x6F\x63\x61\x74\x65\x64\x5F\x20\x74\x6F\x20\x61\x6E\x20\x69\x6E\x76\x6F\x69\x63\x65\x2E\x20\x45\x61\x63\x68\x20\x6C\x69\x6E\x65\x20\x73\x68\x6F\x75\x6C\x64\x20\x66\x6F\x6C\x6C\x6F\x77\x20\x74\x68\x65\x20\x65\x78\x61\x6D\x70\x6C\x65\x73\x20\x61\x62\x6F\x76\x65\x2E\n\n\x23\x23\x20\x55\x73\x69\x6E\x67\x20\x61\x20\x63\x72\x65\x64\x69\x74\x20\x6E\x6F\x74\x65\x20\x74\x6F\x20\x70\x61\x79\x20\x61\x6E\x20\x69\x6E\x76\x6F\x69\x63\x65\n\n\x54\x68\x65\x20\x70\x61\x79\x6D\x65\x6E\x74\x20\x6F\x66\x20\x61\x6E\x20\x69\x6E\x76\x6F\x69\x63\x65\x20\x75\x73\x69\x6E\x67\x20\x61\x20\x63\x72\x65\x64\x69\x74\x20\x6E\x6F\x74\x65\x20\x68\x61\x73\x20\x6F\x6E\x65\x20\x65\x6E\x74\x72\x79\x20\x69\x6E\x20\x69\x74\x73\x20\x2A\x2A\x6C\x69\x6E\x65\x73\x2A\x2A\x20\x61\x72\x72\x61\x79\x2E\x20\x54\x68\x69\x73\x20\x2A\x2A\x6C\x69\x6E\x65\x2A\x2A\x20\x68\x61\x73\x20\x74\x68\x65\x20\x66\x6F\x6C\x6C\x6F\x77\x69\x6E\x67\x20\x70\x72\x6F\x70\x65\x72\x74\x69\x65\x73\x3A\n\n\x2D\x20\x41\x6E\x20\x2A\x2A\x61\x6D\x6F\x75\x6E\x74\x2A\x2A\x20\x74\x68\x61\x74\x20\x69\x6E\x64\x69\x63\x61\x74\x65\x73\x20\x74\x68\x65\x20\x61\x6D\x6F\x75\x6E\x74\x20\x6F\x66\x20\x6D\x6F\x6E\x65\x79\x20\x6D\x6F\x76\x65\x64\x2C\x20\x77\x68\x69\x63\x68\x20\x69\x6E\x20\x74\x68\x69\x73\x20\x63\x61\x73\x65\x20\x69\x73\x20\x60\x30\x60\x2C\x20\x61\x73\x20\x74\x68\x65\x20\x63\x72\x65\x64\x69\x74\x20\x6E\x6F\x74\x65\x20\x61\x6E\x64\x20\x69\x6E\x76\x6F\x69\x63\x65\x20\x61\x6C\x6C\x6F\x63\x61\x74\x69\x6F\x6E\x20\x6D\x75\x73\x74\x20\x62\x61\x6C\x61\x6E\x63\x65\x20\x65\x61\x63\x68\x20\x6F\x74\x68\x65\x72\x2E\n\x2D\x20\x41\x20\x2A\x2A\x6C\x69\x6E\x6B\x73\x2A\x2A\x20\x61\x72\x72\x61\x79\x20\x63\x6F\x6E\x74\x61\x69\x6E\x69\x6E\x67\x20\x74\x77\x6F\x20\x65\x6C\x65\x6D\x65\x6E\x74\x73\x3A\n\x20\x20\x20\x20\x2D\x20\x54\x68\x65\x20\x66\x69\x72\x73\x74\x20\x2A\x2A\x6C\x69\x6E\x6B\x2A\x2A\x20\x68\x61\x73\x3A\n\x20\x20\x20\x20\x20\x20\x20\x20\x2D\x20\x41\x20\x2A\x2A\x74\x79\x70\x65\x2A\x2A\x20\x74\x68\x61\x74\x20\x69\x6E\x64\x69\x63\x61\x74\x65\x73\x20\x74\x68\x65\x20\x74\x79\x70\x65\x20\x6F\x66\x20\x2A\x2A\x6C\x69\x6E\x6B\x2A\x2A\x2C\x20\x69\x6E\x20\x74\x68\x69\x73\x20\x63\x61\x73\x65\x20\x61\x6E\x20\x60\x49\x6E\x76\x6F\x69\x63\x65\x60\x2E\n\x20\x20\x20\x20\x20\x20\x20\x20\x2D\x20\x41\x6E\x20\x2A\x2A\x69\x64\x2A\x2A\x20\x74\x68\x61\x74\x20\x63\x6F\x6E\x74\x61\x69\x6E\x73\x20\x74\x68\x65\x20\x49\x44\x20\x6F\x66\x20\x74\x68\x65\x20\x69\x6E\x76\x6F\x69\x63\x65\x20\x74\x68\x61\x74\x20\x77\x61\x73\x20\x70\x61\x69\x64\x2E\n\x20\x20\x20\x20\x2D\x20\x54\x68\x65\x20\x73\x65\x63\x6F\x6E\x64\x20\x2A\x2A\x6C\x69\x6E\x6B\x2A\x2A\x20\x68\x61\x73\x3A\n\x20\x20\x20\x20\x20\x20\x20\x20\x2D\x20\x41\x20\x2A\x2A\x74\x79\x70\x65\x2A\x2A\x20\x74\x68\x61\x74\x20\x69\x6E\x64\x69\x63\x61\x74\x65\x73\x20\x74\x68\x65\x20\x74\x79\x70\x65\x20\x6F\x66\x20\x2A\x2A\x6C\x69\x6E\x6B\x2A\x2A\x2C\x20\x69\x6E\x20\x74\x68\x69\x73\x20\x63\x61\x73\x65\x20\x61\x20\x60\x43\x72\x65\x64\x69\x74\x4E\x6F\x74\x65\x60\x2E\n\x20\x20\x20\x20\x20\x20\x20\x20\x2D\x20\x41\x6E\x20\x2A\x2A\x69\x64\x2A\x2A\x20\x74\x68\x61\x74\x20\x63\x6F\x6E\x74\x61\x69\x6E\x73\x20\x74\x68\x65\x20\x49\x44\x20\x6F\x66\x20\x74\x68\x65\x20\x63\x72\x65\x64\x69\x74\x20\x6E\x6F\x74\x65\x20\x75\x73\x65\x64\x20\x62\x79\x20\x74\x68\x69\x73\x20\x70\x61\x79\x6D\x65\x6E\x74\x2E\n\n\x54\x68\x65\x20\x2A\x2A\x61\x6D\x6F\x75\x6E\x74\x2A\x2A\x20\x66\x69\x65\x6C\x64\x20\x6F\x6E\x20\x74\x68\x65\x20\x2A\x2A\x6C\x69\x6E\x65\x2A\x2A\x20\x65\x71\x75\x61\x6C\x73\x20\x74\x68\x65\x20\x2A\x2A\x74\x6F\x74\x61\x6C\x41\x6D\x6F\x75\x6E\x74\x2A\x2A\x20\x6F\x6E\x20\x74\x68\x65\x20\x70\x61\x79\x6D\x65\x6E\x74\x2E\n\n\x23\x23\x20\x52\x65\x66\x75\x6E\x64\x69\x6E\x67\x20\x61\x20\x63\x72\x65\x64\x69\x74\x20\x6E\x6F\x74\x65\n\n\x41\x20\x70\x61\x79\x6D\x65\x6E\x74\x20\x72\x65\x66\x75\x6E\x64\x69\x6E\x67\x20\x61\x20\x63\x72\x65\x64\x69\x74\x20\x6E\x6F\x74\x65\x20\x68\x61\x73\x20\x6F\x6E\x65\x20\x65\x6E\x74\x72\x79\x20\x69\x6E\x20\x69\x74\x73\x20\x2A\x2A\x6C\x69\x6E\x65\x73\x2A\x2A\x20\x61\x72\x72\x61\x79\x2E\x20\x54\x68\x69\x73\x20\x2A\x2A\x6C\x69\x6E\x65\x2A\x2A\x20\x68\x61\x73\x20\x74\x68\x65\x20\x66\x6F\x6C\x6C\x6F\x77\x69\x6E\x67\x20\x70\x72\x6F\x70\x65\x72\x74\x69\x65\x73\x3A\n\n\x2D\x20\x41\x6E\x20\x2A\x2A\x61\x6D\x6F\x75\x6E\x74\x2A\x2A\x20\x74\x68\x61\x74\x20\x69\x6E\x64\x69\x63\x61\x74\x65\x73\x20\x74\x68\x65\x20\x61\x6D\x6F\x75\x6E\x74\x20\x6F\x66\x20\x74\x68\x65\x20\x63\x72\x65\x64\x69\x74\x20\x6E\x6F\x74\x65\x20\x74\x68\x61\x74\x20\x77\x61\x73\x20\x72\x65\x66\x75\x6E\x64\x65\x64\x2E\x20\x54\x68\x69\x73\x20\x69\x73\x20\x61\x6C\x77\x61\x79\x73\x20\x6E\x65\x67\x61\x74\x69\x76\x65\x20\x66\x6F\x72\x20\x61\x20\x72\x65\x66\x75\x6E\x64\x2E\n\x2D\x20\x41\x20\x2A\x2A\x6C\x69\x6E\x6B\x73\x2A\x2A\x20\x61\x72\x72\x61\x79\x20\x74\x68\x61\x74\x20\x63\x6F\x6E\x74\x61\x69\x6E\x73\x20\x6F\x6E\x65\x20\x65\x6C\x65\x6D\x65\x6E\x74\x20\x77\x69\x74\x68\x20\x74\x68\x65\x20\x66\x6F\x6C\x6C\x6F\x77\x69\x6E\x67\x20\x70\x72\x6F\x70\x65\x72\x74\x69\x65\x73\x3A\n\x20\x20\x20\x20\x2D\x20\x41\x20\x2A\x2A\x74\x79\x70\x65\x2A\x2A\x20\x74\x68\x61\x74\x20\x69\x6E\x64\x69\x63\x61\x74\x65\x73\x20\x74\x68\x65\x20\x74\x79\x70\x65\x20\x6F\x66\x20\x2A\x2A\x6C\x69\x6E\x6B\x2A\x2A\x2C\x20\x69\x6E\x20\x74\x68\x69\x73\x20\x63\x61\x73\x65\x20\x61\x20\x60\x43\x72\x65\x64\x69\x74\x4E\x6F\x74\x65\x60\x2E\n\x20\x20\x20\x20\x2D\x20\x41\x6E\x20\x2A\x2A\x69\x64\x2A\x2A\x20\x74\x68\x61\x74\x20\x63\x6F\x6E\x74\x61\x69\x6E\x73\x20\x74\x68\x65\x20\x49\x44\x20\x6F\x66\x20\x74\x68\x65\x20\x63\x72\x65\x64\x69\x74\x20\x6E\x6F\x74\x65\x20\x74\x68\x61\x74\x20\x77\x61\x73\x20\x72\x65\x66\x75\x6E\x64\x65\x64\x2E\n\n\x54\x68\x65\x20\x2A\x2A\x74\x6F\x74\x61\x6C\x41\x6D\x6F\x75\x6E\x74\x2A\x2A\x20\x66\x69\x65\x6C\x64\x20\x6F\x6E\x20\x74\x68\x65\x20\x70\x61\x79\x6D\x65\x6E\x74\x20\x65\x71\x75\x61\x6C\x73\x20\x74\x68\x65\x20\x2A\x2A\x61\x6D\x6F\x75\x6E\x74\x2A\x2A\x20\x66\x69\x65\x6C\x64\x20\x6F\x66\x20\x74\x68\x65\x20\x2A\x2A\x6C\x69\x6E\x65\x2A\x2A\x2E\x20\x54\x68\x65\x73\x65\x20\x61\x72\x65\x20\x62\x6F\x74\x68\x20\x6E\x65\x67\x61\x74\x69\x76\x65\x2C\x20\x61\x73\x20\x74\x68\x69\x73\x20\x69\x73\x20\x6D\x6F\x6E\x65\x79\x20\x6C\x65\x61\x76\x69\x6E\x67\x20\x61\x63\x63\x6F\x75\x6E\x74\x73\x20\x72\x65\x63\x65\x69\x76\x61\x62\x6C\x65\x2E\n\n\x23\x23\x20\x52\x65\x66\x75\x6E\x64\x69\x6E\x67\x20\x61\x20\x70\x61\x79\x6D\x65\x6E\x74\n\n\x49\x66\x20\x61\x20\x70\x61\x79\x6D\x65\x6E\x74\x20\x69\x73\x20\x72\x65\x66\x75\x6E\x64\x65\x64\x2C\x20\x66\x6F\x72\x20\x65\x78\x61\x6D\x70\x6C\x65\x2C\x20\x69\x66\x20\x61\x20\x63\x75\x73\x74\x6F\x6D\x65\x72\x20\x6F\x76\x65\x72\x70\x61\x69\x64\x20\x61\x6E\x20\x69\x6E\x76\x6F\x69\x63\x65\x20\x61\x6E\x64\x20\x74\x68\x65\x20\x6F\x76\x65\x72\x70\x61\x79\x6D\x65\x6E\x74\x20\x69\x73\x20\x72\x65\x74\x75\x72\x6E\x65\x64\x20\x74\x6F\x20\x74\x68\x65\x20\x63\x75\x73\x74\x6F\x6D\x65\x72\x2C\x20\x74\x68\x65\x72\x65\x20\x61\x72\x65\x20\x74\x77\x6F\x20\x70\x61\x79\x6D\x65\x6E\x74\x20\x72\x65\x63\x6F\x72\x64\x73\x3A\n\n\x2D\x20\x4F\x6E\x65\x20\x66\x6F\x72\x20\x74\x68\x65\x20\x69\x6E\x63\x6F\x6D\x69\x6E\x67\x20\x6F\x76\x65\x72\x20\x70\x61\x79\x6D\x65\x6E\x74\x2E\n\x2D\x20\x41\x6E\x6F\x74\x68\x65\x72\x20\x66\x6F\x72\x20\x74\x68\x65\x20\x6F\x75\x74\x67\x6F\x69\x6E\x67\x20\x72\x65\x66\x75\x6E\x64\x2E\n\n\x54\x68\x65\x20\x70\x61\x79\x6D\x65\x6E\x74\x20\x69\x73\x73\x75\x69\x6E\x67\x20\x74\x68\x65\x20\x72\x65\x66\x75\x6E\x64\x20\x68\x61\x73\x20\x61\x20\x6E\x65\x67\x61\x74\x69\x76\x65\x20\x2A\x2A\x74\x6F\x74\x61\x6C\x41\x6D\x6F\x75\x6E\x74\x2A\x2A\x2E\x20\x54\x68\x69\x73\x20\x70\x61\x79\x6D\x65\x6E\x74\x20\x61\x6C\x73\x6F\x20\x68\x61\x73\x20\x6F\x6E\x65\x20\x65\x6E\x74\x72\x79\x20\x69\x6E\x20\x69\x74\x73\x20\x6C\x69\x6E\x65\x73\x20\x61\x72\x72\x61\x79\x20\x77\x69\x74\x68\x20\x74\x68\x65\x20\x66\x6F\x6C\x6C\x6F\x77\x69\x6E\x67\x20\x70\x72\x6F\x70\x65\x72\x74\x69\x65\x73\x3A\n\n\x2D\x20\x41\x6E\x20\x2A\x2A\x61\x6D\x6F\x75\x6E\x74\x2A\x2A\x20\x74\x68\x61\x74\x20\x69\x6E\x64\x69\x63\x61\x74\x65\x73\x20\x74\x68\x65\x20\x61\x6D\x6F\x75\x6E\x74\x20\x74\x68\x61\x74\x20\x77\x61\x73\x20\x72\x65\x66\x75\x6E\x64\x65\x64\x2E\x20\x54\x68\x69\x73\x20\x69\x73\x20\x61\x6C\x77\x61\x79\x73\x20\x6E\x65\x67\x61\x74\x69\x76\x65\x2E\n\x2D\x20\x41\x20\x2A\x2A\x6C\x69\x6E\x6B\x73\x2A\x2A\x20\x61\x72\x72\x61\x79\x20\x74\x68\x61\x74\x20\x63\x6F\x6E\x74\x61\x69\x6E\x73\x20\x6F\x6E\x65\x20\x65\x6C\x65\x6D\x65\x6E\x74\x20\x77\x69\x74\x68\x20\x74\x68\x65\x20\x66\x6F\x6C\x6C\x6F\x77\x69\x6E\x67\x20\x70\x72\x6F\x70\x65\x72\x74\x69\x65\x73\x3A\n\x20\x20\x20\x20\x2D\x20\x41\x20\x2A\x2A\x74\x79\x70\x65\x2A\x2A\x20\x74\x68\x61\x74\x20\x69\x6E\x64\x69\x63\x61\x74\x65\x73\x20\x74\x68\x65\x20\x74\x79\x70\x65\x20\x6F\x66\x20\x2A\x2A\x6C\x69\x6E\x6B\x2A\x2A\x2C\x20\x69\x6E\x20\x74\x68\x69\x73\x20\x63\x61\x73\x65\x20\x61\x20\x60\x50\x61\x79\x6D\x65\x6E\x74\x60\x2E\n\x20\x20\x20\x20\x2D\x20\x41\x6E\x20\x2A\x2A\x69\x64\x2A\x2A\x20\x74\x68\x61\x74\x20\x63\x6F\x6E\x74\x61\x69\x6E\x73\x20\x74\x68\x65\x20\x49\x44\x20\x6F\x66\x20\x74\x68\x65\x20\x70\x61\x79\x6D\x65\x6E\x74\x20\x74\x68\x61\x74\x20\x77\x61\x73\x20\x72\x65\x66\x75\x6E\x64\x65\x64\x2E\n\n\x54\x68\x65\x20\x2A\x2A\x61\x6D\x6F\x75\x6E\x74\x2A\x2A\x20\x66\x69\x65\x6C\x64\x20\x6F\x6E\x20\x74\x68\x65\x20\x2A\x2A\x6C\x69\x6E\x65\x2A\x2A\x20\x65\x71\x75\x61\x6C\x73\x20\x74\x68\x65\x20\x2A\x2A\x74\x6F\x74\x61\x6C\x41\x6D\x6F\x75\x6E\x74\x2A\x2A\x20\x6F\x6E\x20\x74\x68\x65\x20\x70\x61\x79\x6D\x65\x6E\x74\x20\x61\x6E\x64\x20\x69\x73\x20\x6E\x65\x67\x61\x74\x69\x76\x65\x2C\x20\x61\x73\x20\x74\x68\x69\x73\x20\x69\x73\x20\x6D\x6F\x6E\x65\x79\x20\x6C\x65\x61\x76\x69\x6E\x67\x20\x61\x63\x63\x6F\x75\x6E\x74\x73\x20\x72\x65\x63\x65\x69\x76\x61\x62\x6C\x65\x2E\n\n\x54\x68\x65\x20\x70\x61\x79\x6D\x65\x6E\x74\x20\x74\x68\x61\x74\x20\x77\x61\x73\x20\x72\x65\x66\x75\x6E\x64\x65\x64\x20\x68\x61\x73\x20\x61\x20\x6C\x69\x6E\x65\x20\x77\x68\x65\x72\x65\x20\x74\x68\x65\x20\x2A\x2A\x61\x6D\x6F\x75\x6E\x74\x2A\x2A\x20\x69\x73\x20\x70\x6F\x73\x69\x74\x69\x76\x65\x20\x61\x6E\x64\x20\x74\x68\x65\x20\x74\x79\x70\x65\x20\x6F\x66\x20\x74\x68\x65\x20\x6C\x69\x6E\x6B\x20\x69\x73\x20\x60\x52\x65\x66\x75\x6E\x64\x60\x2E\x20\x54\x68\x69\x73\x20\x70\x61\x79\x6D\x65\x6E\x74\x20\x6D\x61\x79\x20\x68\x61\x76\x65\x20\x73\x65\x76\x65\x72\x61\x6C\x20\x65\x6E\x74\x72\x69\x65\x73\x20\x69\x6E\x20\x69\x74\x73\x20\x2A\x2A\x6C\x69\x6E\x65\x73\x2A\x2A\x20\x61\x72\x72\x61\x79\x20\x69\x66\x20\x69\x74\x20\x77\x61\x73\x20\x75\x73\x65\x64\x20\x74\x6F\x20\x70\x61\x72\x74\x6C\x79\x20\x70\x61\x79\x20\x61\x6E\x20\x69\x6E\x76\x6F\x69\x63\x65\x2E\n\n\x46\x6F\x72\x20\x65\x78\x61\x6D\x70\x6C\x65\x3A\x20\x41\x20\xA3\x31\x2C\x30\x35\x30\x20\x70\x61\x79\x6D\x65\x6E\x74\x20\x6F\x6E\x20\x61\x20\xA3\x31\x2C\x30\x30\x30\x20\x69\x6E\x76\x6F\x69\x63\x65\x20\x77\x69\x74\x68\x20\x61\x20\x72\x65\x66\x75\x6E\x64\x20\x6F\x66\x20\xA3\x35\x30\x20\x68\x61\x73\x20\x74\x77\x6F\x20\x6C\x69\x6E\x65\x73\x3A\n\n\x2D\x20\x4F\x6E\x65\x20\x66\x6F\x72\x20\xA3\x31\x2C\x30\x30\x30\x20\x6C\x69\x6E\x6B\x65\x64\x20\x74\x6F\x20\x74\x68\x65\x20\x69\x6E\x76\x6F\x69\x63\x65\x20\x74\x68\x61\x74\x20\x77\x61\x73\x20\x70\x61\x69\x64\x2E\n\x2D\x20\x41\x6E\x6F\x74\x68\x65\x72\x20\x66\x6F\x72\x20\xA3\x35\x30\x20\x6C\x69\x6E\x6B\x65\x64\x20\x74\x6F\x20\x74\x68\x65\x20\x70\x61\x79\x6D\x65\x6E\x74\x20\x74\x68\x61\x74\x20\x72\x65\x66\x75\x6E\x64\x65\x64\x20\x74\x68\x65\x20\x6F\x76\x65\x72\x70\x61\x79\x6D\x65\x6E\x74\x20\x77\x69\x74\x68\x20\x61\x2A\x2A\x20\x74\x79\x70\x65\x2A\x2A\x20\x6F\x66\x20\x60\x52\x65\x66\x75\x6E\x64\x60\x20\x61\x6E\x64\x20\x61\x6E\x20\x49\x44\x20\x74\x68\x61\x74\x20\x63\x6F\x72\x72\x65\x73\x70\x6F\x6E\x64\x73\x20\x74\x6F\x20\x74\x68\x65\x20\x70\x61\x79\x6D\x65\x6E\x74\x2E\n\n\x54\x68\x65\x20\x2A\x2A\x6C\x69\x6E\x65\x2A\x2A\x20\x6C\x69\x6E\x6B\x65\x64\x20\x74\x6F\x20\x74\x68\x65\x20\x70\x61\x79\x6D\x65\x6E\x74\x20\x68\x61\x73\x20\x74\x68\x65\x20\x66\x6F\x6C\x6C\x6F\x77\x69\x6E\x67\x20\x70\x72\x6F\x70\x65\x72\x74\x69\x65\x73\x3A\n\n\x2D\x20\x41\x6E\x20\x2A\x2A\x61\x6D\x6F\x75\x6E\x74\x2A\x2A\x20\x74\x68\x61\x74\x20\x69\x6E\x64\x69\x63\x61\x74\x65\x73\x20\x74\x68\x65\x20\x61\x6D\x6F\x75\x6E\x74\x20\x74\x68\x61\x74\x20\x77\x61\x73\x20\x72\x65\x66\x75\x6E\x64\x65\x64\x2E\x20\x54\x68\x69\x73\x20\x69\x73\x20\x70\x6F\x73\x69\x74\x69\x76\x65\x20\x61\x73\x20\x69\x74\x73\x20\x6D\x6F\x6E\x65\x79\x20\x74\x68\x61\x74\x20\x77\x61\x73\x20\x61\x64\x64\x65\x64\x20\x74\x6F\x20\x61\x63\x63\x6F\x75\x6E\x74\x73\x20\x72\x65\x63\x65\x69\x76\x61\x62\x6C\x65\x2E\x20\x49\x74\x27\x73\x20\x62\x61\x6C\x61\x6E\x63\x65\x64\x20\x6F\x75\x74\x20\x62\x79\x20\x74\x68\x65\x20\x6E\x65\x67\x61\x74\x69\x76\x65\x20\x61\x6D\x6F\x75\x6E\x74\x20\x6F\x66\x20\x74\x68\x65\x20\x72\x65\x66\x75\x6E\x64\x2E\n\x2D\x20\x41\x20\x2A\x2A\x6C\x69\x6E\x6B\x73\x2A\x2A\x20\x61\x72\x72\x61\x79\x20\x63\x6F\x6E\x74\x61\x69\x6E\x69\x6E\x67\x20\x6F\x6E\x65\x20\x65\x6C\x65\x6D\x65\x6E\x74\x20\x77\x69\x74\x68\x20\x74\x68\x65\x20\x66\x6F\x6C\x6C\x6F\x77\x69\x6E\x67\x20\x70\x72\x6F\x70\x65\x72\x74\x69\x65\x73\x3A\n\x20\x20\x20\x20\x2D\x20\x41\x20\x2A\x2A\x74\x79\x70\x65\x2A\x2A\x20\x74\x68\x61\x74\x20\x69\x6E\x64\x69\x63\x61\x74\x65\x73\x20\x74\x68\x65\x20\x74\x79\x70\x65\x20\x6F\x66\x20\x2A\x2A\x6C\x69\x6E\x6B\x2A\x2A\x2C\x20\x69\x6E\x20\x74\x68\x69\x73\x20\x63\x61\x73\x65\x20\x61\x20\x60\x52\x65\x66\x75\x6E\x64\x60\x2E\n\x20\x20\x20\x20\x2D\x20\x41\x6E\x20\x2A\x2A\x69\x64\x2A\x2A\x20\x74\x68\x61\x74\x20\x63\x6F\x6E\x74\x61\x69\x6E\x73\x20\x74\x68\x65\x20\x49\x44\x20\x6F\x66\x20\x74\x68\x65\x20\x70\x61\x79\x6D\x65\x6E\x74\x20\x74\x68\x61\x74\x20\x72\x65\x66\x75\x6E\x64\x65\x64\x20\x74\x68\x69\x73\x20\x6C\x69\x6E\x65\x2E\n\n\x3E\x20\x2A\x2A\x53\x75\x70\x70\x6F\x72\x74\x20\x66\x6F\x72\x20\x6C\x69\x6E\x6B\x65\x64\x20\x70\x61\x79\x6D\x65\x6E\x74\x73\x2A\x2A\n\x3E\n\x3E\x20\x4E\x6F\x74\x20\x61\x6C\x6C\x20\x61\x63\x63\x6F\x75\x6E\x74\x69\x6E\x67\x20\x73\x6F\x66\x74\x77\x61\x72\x65\x20\x73\x75\x70\x70\x6F\x72\x74\x20\x6C\x69\x6E\x6B\x69\x6E\x67\x20\x70\x61\x79\x6D\x65\x6E\x74\x73\x20\x69\x6E\x20\x74\x68\x69\x73\x20\x77\x61\x79\x2E\x20\x49\x6E\x20\x73\x6F\x6D\x65\x20\x70\x6C\x61\x74\x66\x6F\x72\x6D\x73\x2C\x20\x79\x6F\x75\x20\x6D\x61\x79\x20\x73\x65\x65\x20\x61\x20\x70\x61\x79\x6D\x65\x6E\x74\x20\x6F\x6E\x20\x61\x63\x63\x6F\x75\x6E\x74\x20\x61\x6E\x64\x20\x61\x20\x72\x65\x66\x75\x6E\x64\x20\x6F\x6E\x20\x61\x63\x63\x6F\x75\x6E\x74\x2E\n\n\x23\x23\x20\x46\x6F\x72\x65\x69\x67\x6E\x20\x63\x75\x72\x72\x65\x6E\x63\x69\x65\x73\n\n\x54\x68\x65\x72\x65\x20\x61\x72\x65\x20\x74\x77\x6F\x20\x74\x79\x70\x65\x73\x20\x6F\x66\x20\x63\x75\x72\x72\x65\x6E\x63\x79\x20\x72\x61\x74\x65\x20\x74\x68\x61\x74\x20\x61\x72\x65\x20\x69\x6E\x63\x6C\x75\x64\x65\x64\x20\x69\x6E\x20\x74\x68\x65\x20\x70\x61\x79\x6D\x65\x6E\x74\x73\x20\x64\x61\x74\x61\x20\x74\x79\x70\x65\x3A\n\n\x50\x61\x79\x6D\x65\x6E\x74\x20\x63\x75\x72\x72\x65\x6E\x63\x79\x20\x72\x61\x74\x65\x3A\n\n\x2D\x20\x42\x61\x73\x65\x20\x63\x75\x72\x72\x65\x6E\x63\x79\x20\x6F\x66\x20\x74\x68\x65\x20\x61\x63\x63\x6F\x75\x6E\x74\x73\x20\x72\x65\x63\x65\x69\x76\x61\x62\x6C\x65\x20\x61\x63\x63\x6F\x75\x6E\x74\x2E\n\x2D\x20\x46\x6F\x72\x65\x69\x67\x6E\x20\x63\x75\x72\x72\x65\x6E\x63\x79\x20\x6F\x66\x20\x74\x68\x65\x20\x70\x61\x79\x6D\x65\x6E\x74\x2E\n\n\x50\x61\x79\x6D\x65\x6E\x74\x20\x6C\x69\x6E\x65\x20\x6C\x69\x6E\x6B\x20\x63\x75\x72\x72\x65\x6E\x63\x79\x20\x72\x61\x74\x65\x3A\n\n\x2D\x20\x42\x61\x73\x65\x20\x63\x75\x72\x72\x65\x6E\x63\x79\x20\x6F\x66\x20\x74\x68\x65\x20\x69\x74\x65\x6D\x20\x74\x68\x65\x20\x6C\x69\x6E\x6B\x20\x72\x65\x70\x72\x65\x73\x65\x6E\x74\x73\x2E\n\x2D\x20\x46\x6F\x72\x65\x69\x67\x6E\x20\x63\x75\x72\x72\x65\x6E\x63\x79\x20\x6F\x66\x20\x74\x68\x65\x20\x70\x61\x79\x6D\x65\x6E\x74\x2E\n\n\x54\x68\x65\x73\x65\x20\x74\x77\x6F\x20\x72\x61\x74\x65\x73\x20\x61\x6C\x6C\x6F\x77\x20\x74\x68\x65\x20\x63\x61\x6C\x63\x75\x6C\x61\x74\x69\x6F\x6E\x20\x6F\x66\x20\x63\x75\x72\x72\x65\x6E\x63\x79\x20\x6C\x6F\x73\x73\x20\x6F\x72\x20\x67\x61\x69\x6E\x20\x66\x6F\x72\x20\x61\x6E\x79\x20\x6F\x66\x20\x74\x68\x65\x20\x74\x72\x61\x6E\x73\x61\x63\x74\x69\x6F\x6E\x73\x20\x61\x66\x66\x65\x63\x74\x65\x64\x20\x62\x79\x20\x74\x68\x65\x20\x70\x61\x79\x6D\x65\x6E\x74\x20\x6C\x69\x6E\x65\x73\x2E\x20\x54\x68\x65\x20\x73\x65\x63\x6F\x6E\x64\x20\x72\x61\x74\x65\x20\x69\x73\x20\x75\x73\x65\x64\x20\x77\x68\x65\x6E\x20\x61\x20\x70\x61\x79\x6D\x65\x6E\x74\x20\x69\x73\x20\x61\x70\x70\x6C\x69\x65\x64\x20\x74\x6F\x20\x61\x6E\x20\x69\x74\x65\x6D\x20\x69\x6E\x20\x61\x20\x63\x75\x72\x72\x65\x6E\x63\x79\x20\x74\x68\x61\x74\x20\x64\x6F\x65\x73\x6E\x27\x74\x20\x6D\x61\x74\x63\x68\x20\x65\x69\x74\x68\x65\x72\x3A\n\n\x2D\x20\x54\x68\x65\x20\x62\x61\x73\x65\x20\x63\x75\x72\x72\x65\x6E\x63\x79\x20\x66\x6F\x72\x20\x74\x68\x65\x20\x61\x63\x63\x6F\x75\x6E\x74\x73\x20\x72\x65\x63\x65\x69\x76\x61\x62\x6C\x65\x20\x61\x63\x63\x6F\x75\x6E\x74\x2E\n\x2D\x20\x54\x68\x65\x20\x63\x75\x72\x72\x65\x6E\x63\x79\x20\x6F\x66\x20\x74\x68\x65\x20\x69\x74\x65\x6D\x2E\n\n\x20\x20\x60\x60\x60\x6A\x73\x6F\x6E\x20\x74\x69\x74\x6C\x65\x3D\"\x43\x75\x72\x72\x65\x6E\x63\x79\x20\x72\x61\x74\x65\x20\x65\x78\x61\x6D\x70\x6C\x65\"\n\x20\x20\x7B\n\x20\x20\x20\x20\x20\x20\"\x69\x64\"\x3A\x20\"\x31\x32\x33\"\x2C\n\x20\x20\x20\x20\x20\x20\"\x6E\x6F\x74\x65\"\x3A\x20\"\"\x2C\n\x20\x20\x20\x20\x20\x20\"\x74\x6F\x74\x61\x6C\x41\x6D\x6F\x75\x6E\x74\"\x3A\x20\x39\x39\x2E\x39\x39\x2C\n\x20\x20\x20\x20\x20\x20\"\x63\x75\x72\x72\x65\x6E\x63\x79\"\x3A\x20\"\x47\x42\x50\"\x2C\n\x20\x20\x20\x20\x20\x20\"\x6C\x69\x6E\x65\x73\"\x3A\x20\x5B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x61\x6D\x6F\x75\x6E\x74\"\x3A\x20\x39\x39\x2E\x39\x39\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x6C\x69\x6E\x6B\x73\"\x3A\x20\x5B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x74\x79\x70\x65\"\x3A\x20\"\x49\x6E\x76\x6F\x69\x63\x65\"\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x69\x64\"\x3A\x20\"\x31\x37\x38\"\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x61\x6D\x6F\x75\x6E\x74\"\x3A\x20\x2D\x35\x30\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x63\x75\x72\x72\x65\x6E\x63\x79\x52\x61\x74\x65\"\x3A\x20\x20\x31\x2E\x39\x39\x39\x38\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7D\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x5D\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7D\n\x20\x20\x20\x20\x20\x20\x5D\n\x20\x20\x7D\n\x20\x20\x60\x60\x60\n\n\n\n\x23\x23\x20\x45\x78\x61\x6D\x70\x6C\x65\x20\x64\x61\x74\x61\n\n\x3E\x20\x2A\x2A\x4F\x62\x6A\x65\x63\x74\x20\x70\x72\x6F\x70\x65\x72\x74\x69\x65\x73\x2A\x2A\n\x3E\n\x3E\x20\x46\x6F\x72\x20\x74\x68\x65\x20\x73\x61\x6B\x65\x20\x6F\x66\x20\x62\x72\x65\x76\x69\x74\x79\x2C\x20\x74\x68\x65\x20\x65\x78\x61\x6D\x70\x6C\x65\x73\x20\x68\x65\x72\x65\x20\x6D\x61\x79\x20\x6F\x6D\x69\x74\x20\x70\x72\x6F\x70\x65\x72\x74\x69\x65\x73\x20\x66\x72\x6F\x6D\x20\x6F\x62\x6A\x65\x63\x74\x73\x2E\x20\x46\x6F\x72\x20\x74\x68\x65\x20\x66\x75\x6C\x6C\x20\x6F\x62\x6A\x65\x63\x74\x20\x64\x65\x66\x69\x6E\x69\x74\x69\x6F\x6E\x2C\x20\x73\x65\x65\x20\x5B\x50\x61\x79\x6D\x65\x6E\x74\x73\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x61\x70\x69\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x73\x77\x61\x67\x67\x65\x72\x2F\x69\x6E\x64\x65\x78\x2E\x68\x74\x6D\x6C\x23\x2F\x50\x61\x79\x6D\x65\x6E\x74\x73\x29\x2E\n\n\x23\x23\x20\x53\x69\x6D\x70\x6C\x65\x20\x65\x78\x61\x6D\x70\x6C\x65\x73\n\n\x20\x20\x60\x60\x60\x6A\x73\x6F\x6E\x20\x74\x69\x74\x6C\x65\x3D\"\x50\x61\x79\x6D\x65\x6E\x74\x20\x66\x6F\x72\x20\x69\x6E\x76\x6F\x69\x63\x65\"\n\x20\x20\x7B\n\x20\x20\x20\x20\x20\x20\"\x74\x6F\x74\x61\x6C\x41\x6D\x6F\x75\x6E\x74\"\x3A\x20\x31\x30\x30\x30\x2C\n\x20\x20\x20\x20\x20\x20\"\x6C\x69\x6E\x65\x73\"\x3A\x20\x5B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x61\x6D\x6F\x75\x6E\x74\"\x20\x3A\x20\x31\x30\x30\x30\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x6C\x69\x6E\x6B\x73\"\x20\x3A\x20\x5B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x74\x79\x70\x65\"\x20\x3A\x20\"\x49\x6E\x76\x6F\x69\x63\x65\"\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x69\x64\"\x20\x3A\x20\"\x78\"\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x61\x6D\x6F\x75\x6E\x74\"\x20\x3A\x20\x2D\x31\x30\x30\x30\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7D\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x5D\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7D\n\x20\x20\x20\x20\x20\x20\x5D\n\x20\x20\x7D\n\x20\x20\x60\x60\x60\n\n\n\n\x20\x20\x60\x60\x60\x6A\x73\x6F\x6E\x20\x74\x69\x74\x6C\x65\x3D\"\x41\x6C\x6C\x6F\x63\x61\x74\x69\x6F\x6E\x20\x6F\x66\x20\x63\x72\x65\x64\x69\x74\x20\x6E\x6F\x74\x65\"\n\x20\x20\x7B\n\x20\x20\x20\x20\x20\x20\"\x74\x6F\x74\x61\x6C\x41\x6D\x6F\x75\x6E\x74\"\x3A\x20\x30\x2C\n\x20\x20\x20\x20\x20\x20\"\x6C\x69\x6E\x65\x73\"\x3A\x20\x5B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x61\x6D\x6F\x75\x6E\x74\"\x20\x3A\x20\x30\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x6C\x69\x6E\x6B\x73\"\x20\x3A\x20\x5B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x74\x79\x70\x65\"\x20\x3A\x20\"\x49\x6E\x76\x6F\x69\x63\x65\"\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x69\x64\"\x20\x3A\x20\"\x78\"\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x61\x6D\x6F\x75\x6E\x74\"\x20\x3A\x20\x2D\x31\x30\x30\x30\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7D\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x74\x79\x70\x65\"\x20\x3A\x20\"\x43\x72\x65\x64\x69\x74\x4E\x6F\x74\x65\"\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x69\x64\"\x20\x3A\x20\"\x79\"\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x61\x6D\x6F\x75\x6E\x74\"\x20\x3A\x20\x31\x30\x30\x30\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7D\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x5D\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7D\n\x20\x20\x20\x20\x20\x20\x5D\n\x20\x20\x7D\n\x20\x20\x60\x60\x60\n\n\n\n\x20\x20\x60\x60\x60\x6A\x73\x6F\x6E\x20\x74\x69\x74\x6C\x65\x3D\"\x50\x61\x79\x6D\x65\x6E\x74\x20\x6F\x66\x20\x69\x6E\x76\x6F\x69\x63\x65\x20\x61\x6E\x64\x20\x70\x61\x79\x6D\x65\x6E\x74\x20\x6F\x6E\x20\x61\x63\x63\x6F\x75\x6E\x74\"\n\x20\x20\x7B\n\x20\x20\x20\x20\x20\x20\"\x74\x6F\x74\x61\x6C\x41\x6D\x6F\x75\x6E\x74\"\x3A\x20\x32\x30\x30\x30\x2C\n\x20\x20\x20\x20\x20\x20\"\x6C\x69\x6E\x65\x73\"\x3A\x20\x5B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x61\x6D\x6F\x75\x6E\x74\"\x20\x3A\x20\x31\x30\x30\x30\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x6C\x69\x6E\x6B\x73\"\x20\x3A\x20\x5B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x74\x79\x70\x65\"\x20\x3A\x20\"\x49\x6E\x76\x6F\x69\x63\x65\"\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x69\x64\"\x20\x3A\x20\"\x78\"\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x61\x6D\x6F\x75\x6E\x74\"\x20\x3A\x20\x2D\x31\x30\x30\x30\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7D\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x5D\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7D\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x61\x6D\x6F\x75\x6E\x74\"\x20\x3A\x20\x31\x30\x30\x30\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x6C\x69\x6E\x6B\x73\"\x20\x3A\x20\x5B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x74\x79\x70\x65\"\x20\x3A\x20\"\x50\x61\x79\x6D\x65\x6E\x74\x4F\x6E\x41\x63\x63\x6F\x75\x6E\x74\"\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x69\x64\"\x20\x3A\x20\"\x79\"\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x61\x6D\x6F\x75\x6E\x74\"\x20\x3A\x20\x2D\x31\x30\x30\x30\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7D\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x5D\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7D\n\x20\x20\x20\x20\x20\x20\x5D\n\x20\x20\x7D\n\x20\x20\x60\x60\x60\n\n\n\n\x20\x20\x60\x60\x60\x6A\x73\x6F\x6E\x20\x74\x69\x74\x6C\x65\x3D\"\x52\x65\x66\x75\x6E\x64\x20\x6F\x66\x20\x63\x72\x65\x64\x69\x74\x20\x6E\x6F\x74\x65\"\n\x20\x20\x7B\n\x20\x20\x20\x20\x20\x20\"\x74\x6F\x74\x61\x6C\x41\x6D\x6F\x75\x6E\x74\"\x3A\x20\x2D\x31\x30\x30\x30\x2C\n\x20\x20\x20\x20\x20\x20\"\x6C\x69\x6E\x65\x73\"\x3A\x20\x5B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x61\x6D\x6F\x75\x6E\x74\"\x20\x3A\x20\x2D\x31\x30\x30\x30\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x6C\x69\x6E\x6B\x73\"\x20\x3A\x20\x5B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x74\x79\x70\x65\"\x20\x3A\x20\"\x43\x72\x65\x64\x69\x74\x4E\x6F\x74\x65\"\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x69\x64\"\x20\x3A\x20\"\x79\"\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x61\x6D\x6F\x75\x6E\x74\"\x20\x3A\x20\x31\x30\x30\x30\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7D\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x5D\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7D\n\x20\x20\x20\x20\x20\x20\x5D\n\x20\x20\x7D\n\x20\x20\x60\x60\x60\n\n\n\n\x20\x20\x60\x60\x60\x6A\x73\x6F\x6E\x20\x74\x69\x74\x6C\x65\x3D\"\x52\x65\x66\x75\x6E\x64\x20\x6F\x6E\x20\x61\x63\x63\x6F\x75\x6E\x74\x73\x20\x72\x65\x63\x65\x69\x76\x61\x62\x6C\x65\x20\x61\x63\x63\x6F\x75\x6E\x74\"\n\x20\x20\x7B\n\x20\x20\x20\x20\x20\x20\"\x74\x6F\x74\x61\x6C\x41\x6D\x6F\x75\x6E\x74\"\x3A\x20\x2D\x31\x30\x30\x30\x2C\n\x20\x20\x20\x20\x20\x20\"\x6C\x69\x6E\x65\x73\"\x3A\x20\x5B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x61\x6D\x6F\x75\x6E\x74\"\x20\x3A\x20\x2D\x31\x30\x30\x30\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x6C\x69\x6E\x6B\x73\"\x20\x3A\x20\x5B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x74\x79\x70\x65\"\x20\x3A\x20\"\x50\x61\x79\x6D\x65\x6E\x74\x4F\x6E\x41\x63\x63\x6F\x75\x6E\x74\"\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x69\x64\"\x20\x3A\x20\"\x79\"\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x61\x6D\x6F\x75\x6E\x74\"\x20\x3A\x20\x31\x30\x30\x30\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7D\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x5D\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7D\n\x20\x20\x20\x20\x20\x20\x5D\n\x20\x20\x7D\n\x20\x20\x60\x60\x60\n\n\n\n\x20\x20\x60\x60\x60\x6A\x73\x6F\x6E\x20\x74\x69\x74\x6C\x65\x3D\"\x4C\x69\x6E\x6B\x65\x64\x20\x72\x65\x66\x75\x6E\x64\x20\x6F\x6E\x20\x61\x63\x63\x6F\x75\x6E\x74\x73\x20\x72\x65\x63\x65\x69\x76\x61\x62\x6C\x65\x20\x61\x63\x63\x6F\x75\x6E\x74\"\n\x20\x20\x7B\n\x20\x20\x20\x20\x20\x20\"\x69\x64\"\x20\x3A\x20\"\x70\x61\x79\x6D\x65\x6E\x74\x2D\x30\x30\x31\"\x2C\n\x20\x20\x20\x20\x20\x20\"\x74\x6F\x74\x61\x6C\x41\x6D\x6F\x75\x6E\x74\"\x3A\x20\x31\x30\x30\x30\x2C\n\x20\x20\x20\x20\x20\x20\"\x6C\x69\x6E\x65\x73\"\x3A\x20\x5B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x61\x6D\x6F\x75\x6E\x74\"\x20\x3A\x20\x31\x30\x30\x30\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x6C\x69\x6E\x6B\x73\"\x20\x3A\x20\x5B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x74\x79\x70\x65\"\x20\x3A\x20\"\x52\x65\x66\x75\x6E\x64\"\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x69\x64\"\x20\x3A\x20\"\x72\x65\x66\x75\x6E\x64\x2D\x30\x30\x31\"\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x61\x6D\x6F\x75\x6E\x74\"\x20\x3A\x20\x2D\x31\x30\x30\x30\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7D\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x5D\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7D\n\x20\x20\x20\x20\x20\x20\x5D\n\x20\x20\x7D\n\x20\x20\x7B\n\x20\x20\x20\x20\x20\x20\"\x69\x64\"\x20\x3A\x20\"\x72\x65\x66\x75\x6E\x64\x2D\x30\x30\x31\"\x2C\n\x20\x20\x20\x20\x20\x20\"\x74\x6F\x74\x61\x6C\x41\x6D\x6F\x75\x6E\x74\"\x3A\x20\x2D\x31\x30\x30\x30\x2C\n\x20\x20\x20\x20\x20\x20\"\x6C\x69\x6E\x65\x73\"\x3A\x20\x5B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x61\x6D\x6F\x75\x6E\x74\"\x20\x3A\x20\x2D\x31\x30\x30\x30\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x6C\x69\x6E\x6B\x73\"\x20\x3A\x20\x5B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x74\x79\x70\x65\"\x20\x3A\x20\"\x50\x61\x79\x6D\x65\x6E\x74\"\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x69\x64\"\x20\x3A\x20\"\x70\x61\x79\x6D\x65\x6E\x74\x2D\x30\x30\x31\"\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x61\x6D\x6F\x75\x6E\x74\"\x20\x3A\x20\x31\x30\x30\x30\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7D\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x5D\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7D\n\x20\x20\x20\x20\x20\x20\x5D\n\x20\x20\x7D\n\x20\x20\x60\x60\x60\n\n\n\n\x20\x20\x60\x60\x60\x6A\x73\x6F\x6E\x20\x74\x69\x74\x6C\x65\x3D\"\x55\x73\x69\x6E\x67\x20\x61\x20\x63\x72\x65\x64\x69\x74\x20\x6E\x6F\x74\x65\x20\x61\x6E\x64\x20\x63\x61\x73\x68\x20\x74\x6F\x20\x70\x61\x79\x20\x61\x6E\x20\x69\x6E\x76\x6F\x69\x63\x65\"\n\x20\x20\x7B\n\x20\x20\x20\x20\x20\x20\"\x74\x6F\x74\x61\x6C\x41\x6D\x6F\x75\x6E\x74\"\x3A\x20\x32\x35\x30\x2C\n\x20\x20\x20\x20\x20\x20\"\x6C\x69\x6E\x65\x73\"\x3A\x20\x5B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x61\x6D\x6F\x75\x6E\x74\"\x3A\x20\x30\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x6C\x69\x6E\x6B\x73\"\x3A\x20\x5B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x74\x79\x70\x65\"\x3A\x20\"\x49\x6E\x76\x6F\x69\x63\x65\"\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x69\x64\"\x3A\x20\"\x78\"\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x61\x6D\x6F\x75\x6E\x74\"\x3A\x20\x2D\x37\x35\x30\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7D\x2C\x20\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x74\x79\x70\x65\"\x3A\x20\"\x43\x72\x65\x64\x69\x74\x4E\x6F\x74\x65\"\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x69\x64\"\x3A\x20\"\x79\"\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x61\x6D\x6F\x75\x6E\x74\"\x3A\x20\x37\x35\x30\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7D\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x5D\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7D\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x61\x6D\x6F\x75\x6E\x74\"\x3A\x20\x32\x35\x30\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x6C\x69\x6E\x6B\x73\"\x3A\x20\x5B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x74\x79\x70\x65\"\x3A\x20\"\x49\x6E\x76\x6F\x69\x63\x65\"\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x69\x64\"\x3A\x20\"\x78\"\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x61\x6D\x6F\x75\x6E\x74\"\x3A\x20\x2D\x32\x35\x30\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7D\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x5D\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7D\n\x20\x20\x20\x20\x20\x20\x5D\n\x20\x20\x7D\n\x20\x20\x60\x60\x60\n\n\n\n\x23\x23\x20\x43\x6F\x6D\x70\x6C\x65\x78\x20\x65\x78\x61\x6D\x70\x6C\x65\x73\n\n\x20\x20\x60\x60\x60\x6A\x73\x6F\x6E\x20\x74\x69\x74\x6C\x65\x3D\"\x55\x73\x65\x20\x74\x77\x6F\x20\x63\x72\x65\x64\x69\x74\x20\x6E\x6F\x74\x65\x73\x20\x61\x6E\x64\x20\x31\x30\x30\x30\x20\x69\x6E\x20\x74\x6F\x20\"\x62\x61\x6E\x6B\"\x20\x28\x63\x61\x73\x68\x2C\x20\x63\x68\x65\x71\x75\x65\x20\x65\x74\x63\x2E\x29\x20\x74\x6F\x20\x70\x61\x79\x20\x69\x6E\x76\x6F\x69\x63\x65\"\n\x20\x20\x7B\n\x20\x20\x20\x20\x20\x20\"\x74\x6F\x74\x61\x6C\x41\x6D\x6F\x75\x6E\x74\"\x3A\x20\x31\x30\x30\x30\x2C\n\x20\x20\x20\x20\x20\x20\"\x6C\x69\x6E\x65\x73\"\x3A\x20\x5B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x61\x6D\x6F\x75\x6E\x74\"\x20\x3A\x20\x30\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x6C\x69\x6E\x6B\x73\"\x20\x3A\x20\x5B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x74\x79\x70\x65\"\x20\x3A\x20\"\x49\x6E\x76\x6F\x69\x63\x65\"\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x69\x64\"\x20\x3A\x20\"\x78\"\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x61\x6D\x6F\x75\x6E\x74\"\x20\x3A\x20\x2D\x31\x30\x30\x30\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7D\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x74\x79\x70\x65\"\x20\x3A\x20\"\x43\x72\x65\x64\x69\x74\x4E\x6F\x74\x65\"\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x69\x64\"\x20\x3A\x20\"\x79\"\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x61\x6D\x6F\x75\x6E\x74\"\x20\x3A\x20\x31\x30\x30\x30\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7D\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x5D\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7D\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x61\x6D\x6F\x75\x6E\x74\"\x20\x3A\x20\x30\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x6C\x69\x6E\x6B\x73\"\x20\x3A\x20\x5B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x74\x79\x70\x65\"\x20\x3A\x20\"\x49\x6E\x76\x6F\x69\x63\x65\"\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x69\x64\"\x20\x3A\x20\"\x78\"\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x61\x6D\x6F\x75\x6E\x74\"\x20\x3A\x20\x2D\x31\x30\x30\x30\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7D\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x74\x79\x70\x65\"\x20\x3A\x20\"\x43\x72\x65\x64\x69\x74\x4E\x6F\x74\x65\"\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x69\x64\"\x20\x3A\x20\"\x7A\"\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x61\x6D\x6F\x75\x6E\x74\"\x20\x3A\x20\x31\x30\x30\x30\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7D\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x5D\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7D\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x61\x6D\x6F\x75\x6E\x74\"\x20\x3A\x20\x31\x30\x30\x30\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x6C\x69\x6E\x6B\x73\"\x20\x3A\x20\x5B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x74\x79\x70\x65\"\x20\x3A\x20\"\x49\x6E\x76\x6F\x69\x63\x65\"\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x69\x64\"\x20\x3A\x20\"\x78\"\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x61\x6D\x6F\x75\x6E\x74\"\x20\x3A\x20\x2D\x31\x30\x30\x30\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7D\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x5D\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7D\n\x20\x20\x20\x20\x20\x20\x5D\n\x20\x20\x7D\n\x20\x20\x60\x60\x60\n\n\n\n\x20\x20\x60\x60\x60\x6A\x73\x6F\x6E\x20\x74\x69\x74\x6C\x65\x3D\"\x50\x61\x79\x20\x61\x6E\x20\x69\x6E\x76\x6F\x69\x63\x65\x20\x77\x69\x74\x68\x20\x74\x77\x6F\x20\x63\x72\x65\x64\x69\x74\x20\x6E\x6F\x74\x65\x73\x20\x61\x6E\x64\x20\x63\x61\x73\x68\x2C\x20\x77\x69\x74\x68\x20\x31\x30\x30\x30\x20\x6C\x65\x66\x74\x20\x27\x6F\x6E\x20\x61\x63\x63\x6F\x75\x6E\x74\x27\"\n\x20\x20\x7B\n\x20\x20\x20\x20\x20\x20\"\x74\x6F\x74\x61\x6C\x41\x6D\x6F\x75\x6E\x74\"\x3A\x20\x32\x30\x30\x30\x2C\n\x20\x20\x20\x20\x20\x20\"\x6C\x69\x6E\x65\x73\"\x3A\x20\x5B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x61\x6D\x6F\x75\x6E\x74\"\x20\x3A\x20\x30\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x6C\x69\x6E\x6B\x73\"\x20\x3A\x20\x5B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x74\x79\x70\x65\"\x20\x3A\x20\"\x49\x6E\x76\x6F\x69\x63\x65\"\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x69\x64\"\x20\x3A\x20\"\x78\"\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x61\x6D\x6F\x75\x6E\x74\"\x20\x3A\x20\x2D\x31\x30\x30\x30\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7D\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x74\x79\x70\x65\"\x20\x3A\x20\"\x43\x72\x65\x64\x69\x74\x4E\x6F\x74\x65\"\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x69\x64\"\x20\x3A\x20\"\x79\"\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x61\x6D\x6F\x75\x6E\x74\"\x20\x3A\x20\x31\x30\x30\x30\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7D\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x5D\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7D\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x61\x6D\x6F\x75\x6E\x74\"\x20\x3A\x20\x30\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x6C\x69\x6E\x6B\x73\"\x20\x3A\x20\x5B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x74\x79\x70\x65\"\x20\x3A\x20\"\x49\x6E\x76\x6F\x69\x63\x65\"\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x69\x64\"\x20\x3A\x20\"\x78\"\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x61\x6D\x6F\x75\x6E\x74\"\x20\x3A\x20\x2D\x31\x30\x30\x30\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7D\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x74\x79\x70\x65\"\x20\x3A\x20\"\x43\x72\x65\x64\x69\x74\x4E\x6F\x74\x65\"\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x69\x64\"\x20\x3A\x20\"\x7A\"\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x61\x6D\x6F\x75\x6E\x74\"\x20\x3A\x20\x31\x30\x30\x30\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7D\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x5D\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7D\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x61\x6D\x6F\x75\x6E\x74\"\x20\x3A\x20\x31\x30\x30\x30\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x6C\x69\x6E\x6B\x73\"\x20\x3A\x20\x5B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x74\x79\x70\x65\"\x20\x3A\x20\"\x49\x6E\x76\x6F\x69\x63\x65\"\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x69\x64\"\x20\x3A\x20\"\x78\"\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x61\x6D\x6F\x75\x6E\x74\"\x20\x3A\x20\x2D\x31\x30\x30\x30\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7D\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x5D\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7D\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x61\x6D\x6F\x75\x6E\x74\"\x20\x3A\x20\x31\x30\x30\x30\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x6C\x69\x6E\x6B\x73\"\x20\x3A\x20\x5B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x74\x79\x70\x65\"\x20\x3A\x20\"\x50\x61\x79\x6D\x65\x6E\x74\x4F\x6E\x41\x63\x63\x6F\x75\x6E\x74\"\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x69\x64\"\x20\x3A\x20\"\x63\x75\x73\x74\x6F\x6D\x65\x72\x2D\x30\x30\x31\"\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x61\x6D\x6F\x75\x6E\x74\"\x20\x3A\x20\x2D\x31\x30\x30\x30\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7D\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x5D\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7D\n\x20\x20\x20\x20\x20\x20\x5D\n\x20\x20\x7D\n\x20\x20\x60\x60\x60\n\n\n\n\x20\x20\x60\x60\x60\x6A\x73\x6F\x6E\x20\x74\x69\x74\x6C\x65\x3D\"\x54\x77\x6F\x20\x63\x72\x65\x64\x69\x74\x20\x6E\x6F\x74\x65\x73\x20\x70\x61\x79\x20\x74\x77\x6F\x20\x69\x6E\x76\x6F\x69\x63\x65\x73\x20\x77\x69\x74\x68\x20\x6E\x6F\x20\x61\x6C\x6C\x6F\x63\x61\x74\x69\x6F\x6E\x20\x61\x6D\x6F\x75\x6E\x74\x20\x73\x70\x65\x63\x69\x66\x69\x65\x64\"\n\x20\x20\x7B\n\x20\x20\x20\x20\x20\x20\"\x74\x6F\x74\x61\x6C\x41\x6D\x6F\x75\x6E\x74\"\x3A\x20\x30\x2C\n\x20\x20\x20\x20\x20\x20\"\x6C\x69\x6E\x65\x73\"\x3A\x20\x5B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x61\x6D\x6F\x75\x6E\x74\"\x20\x3A\x20\x30\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x6C\x69\x6E\x6B\x73\"\x20\x3A\x20\x5B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x74\x79\x70\x65\"\x20\x3A\x20\"\x49\x6E\x76\x6F\x69\x63\x65\"\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x69\x64\"\x20\x3A\x20\"\x77\"\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x61\x6D\x6F\x75\x6E\x74\"\x20\x3A\x20\x2D\x31\x30\x30\x30\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7D\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x74\x79\x70\x65\"\x20\x3A\x20\"\x49\x6E\x76\x6F\x69\x63\x65\"\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x69\x64\"\x20\x3A\x20\"\x78\"\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x61\x6D\x6F\x75\x6E\x74\"\x20\x3A\x20\x2D\x31\x30\x30\x30\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7D\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x74\x79\x70\x65\"\x20\x3A\x20\"\x43\x72\x65\x64\x69\x74\x4E\x6F\x74\x65\"\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x69\x64\"\x20\x3A\x20\"\x79\"\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x61\x6D\x6F\x75\x6E\x74\"\x20\x3A\x20\x31\x30\x30\x30\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7D\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x74\x79\x70\x65\"\x20\x3A\x20\"\x43\x72\x65\x64\x69\x74\x4E\x6F\x74\x65\"\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x69\x64\"\x20\x3A\x20\"\x7A\"\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x61\x6D\x6F\x75\x6E\x74\"\x20\x3A\x20\x31\x30\x30\x30\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7D\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x5D\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7D\n\x20\x20\x20\x20\x20\x20\x5D\n\x20\x20\x7D\n\x20\x20\x60\x60\x60\n\n\n\n\x20\x20\x60\x60\x60\x6A\x73\x6F\x6E\x20\x74\x69\x74\x6C\x65\x3D\"\x54\x77\x6F\x20\x63\x72\x65\x64\x69\x74\x20\x6E\x6F\x74\x65\x73\x20\x61\x6E\x64\x20\x63\x61\x73\x68\x20\x70\x61\x79\x20\x74\x68\x72\x65\x65\x20\x69\x6E\x76\x6F\x69\x63\x65\x73\x20\x77\x69\x74\x68\x20\x6E\x6F\x20\x61\x6C\x6C\x6F\x63\x61\x74\x69\x6F\x6E\x20\x61\x6D\x6F\x75\x6E\x74\x20\x73\x70\x65\x63\x69\x66\x69\x65\x64\x2C\x20\x61\x6E\x64\x20\x72\x65\x66\x75\x6E\x64\x20\x63\x61\x73\x68\"\n\x20\x20\x7B\n\x20\x20\x20\x20\x20\x20\"\x74\x6F\x74\x61\x6C\x41\x6D\x6F\x75\x6E\x74\"\x3A\x20\x32\x30\x30\x30\x2C\n\x20\x20\x20\x20\x20\x20\"\x6C\x69\x6E\x65\x73\"\x3A\x20\x5B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x61\x6D\x6F\x75\x6E\x74\"\x20\x3A\x20\x31\x30\x30\x30\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x6C\x69\x6E\x6B\x73\"\x20\x3A\x20\x5B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x74\x79\x70\x65\"\x20\x3A\x20\"\x49\x6E\x76\x6F\x69\x63\x65\"\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x69\x64\"\x20\x3A\x20\"\x77\"\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x61\x6D\x6F\x75\x6E\x74\"\x20\x3A\x20\x2D\x31\x30\x30\x30\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7D\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x74\x79\x70\x65\"\x20\x3A\x20\"\x49\x6E\x76\x6F\x69\x63\x65\"\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x69\x64\"\x20\x3A\x20\"\x78\"\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x61\x6D\x6F\x75\x6E\x74\"\x20\x3A\x20\x2D\x31\x30\x30\x30\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7D\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x74\x79\x70\x65\"\x20\x3A\x20\"\x49\x6E\x76\x6F\x69\x63\x65\"\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x69\x64\"\x20\x3A\x20\"\x75\"\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x61\x6D\x6F\x75\x6E\x74\"\x20\x3A\x20\x2D\x31\x30\x30\x30\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7D\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x74\x79\x70\x65\"\x20\x3A\x20\"\x43\x72\x65\x64\x69\x74\x4E\x6F\x74\x65\"\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x69\x64\"\x20\x3A\x20\"\x79\"\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x61\x6D\x6F\x75\x6E\x74\"\x20\x3A\x20\x31\x30\x30\x30\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7D\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x74\x79\x70\x65\"\x20\x3A\x20\"\x43\x72\x65\x64\x69\x74\x4E\x6F\x74\x65\"\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x69\x64\"\x20\x3A\x20\"\x7A\"\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x61\x6D\x6F\x75\x6E\x74\"\x20\x3A\x20\x31\x30\x30\x30\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7D\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x5D\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7D\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x61\x6D\x6F\x75\x6E\x74\"\x20\x3A\x20\x31\x30\x30\x30\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x6C\x69\x6E\x6B\x73\"\x20\x3A\x20\x5B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x74\x79\x70\x65\"\x20\x3A\x20\"\x52\x65\x66\x75\x6E\x64\"\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x69\x64\"\x20\x3A\x20\"\x72\x65\x66\x75\x6E\x64\x2D\x30\x30\x31\"\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x61\x6D\x6F\x75\x6E\x74\"\x20\x3A\x20\x2D\x31\x30\x30\x30\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7D\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x5D\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7D\n\x20\x20\x20\x20\x20\x20\x5D\n\x20\x20\x7D\n\x20\x20\x7B\n\x20\x20\x20\x20\x20\x20\"\x69\x64\"\x20\x3A\x20\"\x72\x65\x66\x75\x6E\x64\x2D\x30\x30\x31\"\x2C\n\x20\x20\x20\x20\x20\x20\"\x74\x6F\x74\x61\x6C\x41\x6D\x6F\x75\x6E\x74\"\x3A\x20\x2D\x31\x30\x30\x30\x2C\n\x20\x20\x20\x20\x20\x20\"\x6C\x69\x6E\x65\x73\"\x3A\x20\x5B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x61\x6D\x6F\x75\x6E\x74\"\x20\x3A\x20\x2D\x31\x30\x30\x30\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x6C\x69\x6E\x6B\x73\"\x20\x3A\x20\x5B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x74\x79\x70\x65\"\x20\x3A\x20\"\x50\x61\x79\x6D\x65\x6E\x74\"\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x69\x64\"\x20\x3A\x20\"\x70\x61\x79\x6D\x65\x6E\x74\x2D\x30\x30\x31\"\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x61\x6D\x6F\x75\x6E\x74\"\x20\x3A\x20\x31\x30\x30\x30\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7D\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x5D\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7D\n\x20\x20\x20\x20\x20\x20\x5D\n\x20\x20\x7D\n\x20\x20\x60\x60\x60\n\n\n\n\x49\x6E\x20\x74\x68\x69\x73\x20\x65\x78\x61\x6D\x70\x6C\x65\x2C\x20\x61\x20\x70\x61\x79\x6D\x65\x6E\x74\x20\x6F\x6E\x20\x61\x63\x63\x6F\x75\x6E\x74\x20\x69\x73\x20\x75\x73\x65\x64\x20\x74\x6F\x20\x70\x61\x79\x20\x74\x68\x65\x20\x73\x61\x6D\x65\x20\x69\x6E\x76\x6F\x69\x63\x65\x20\x69\x6E\x20\x4A\x61\x6E\x75\x61\x72\x79\x20\x61\x6E\x64\x20\x61\x67\x61\x69\x6E\x20\x69\x6E\x20\x46\x65\x62\x72\x75\x61\x72\x79\x2E\n\n\x20\x20\x60\x60\x60\x6A\x73\x6F\x6E\x20\x74\x69\x74\x6C\x65\x3D\"\x4A\x61\x6E\x75\x61\x72\x79\"\n\x20\x20\x7B\n\x20\x20\x20\x20\x20\x20\"\x69\x64\"\x3A\x20\"\x30\x30\x31\"\x2C\n\x20\x20\x20\x20\x20\x20\"\x74\x6F\x74\x61\x6C\x41\x6D\x6F\x75\x6E\x74\"\x3A\x20\x35\x30\x30\x30\x2C\n\x20\x20\x20\x20\x20\x20\"\x64\x61\x74\x65\"\x20\x3A\x20\"\x31\x39\x30\x31\x2D\x30\x31\x2D\x30\x31\"\x2C\n\x20\x20\x20\x20\x20\x20\"\x6C\x69\x6E\x65\x73\"\x3A\x20\x5B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x61\x6D\x6F\x75\x6E\x74\"\x20\x3A\x20\x31\x30\x30\x30\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x6C\x69\x6E\x6B\x73\"\x20\x3A\x20\x5B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x74\x79\x70\x65\"\x20\x3A\x20\"\x49\x6E\x76\x6F\x69\x63\x65\"\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x69\x64\"\x20\x3A\x20\"\x49\x6E\x76\x6F\x69\x63\x65\x2D\x78\"\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x61\x6D\x6F\x75\x6E\x74\"\x20\x3A\x20\x2D\x31\x30\x30\x30\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7D\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x5D\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7D\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x61\x6D\x6F\x75\x6E\x74\"\x20\x3A\x20\x34\x30\x30\x30\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x6C\x69\x6E\x6B\x73\"\x20\x3A\x20\x5B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x74\x79\x70\x65\"\x20\x3A\x20\"\x50\x61\x79\x6D\x65\x6E\x74\x4F\x6E\x41\x63\x63\x6F\x75\x6E\x74\"\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x69\x64\"\x20\x3A\x20\"\x50\x61\x79\x6D\x65\x6E\x74\x4F\x6E\x41\x63\x63\x6F\x75\x6E\x74\x2D\x79\"\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x61\x6D\x6F\x75\x6E\x74\"\x20\x3A\x20\x2D\x34\x30\x30\x30\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7D\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x5D\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7D\n\x20\x20\x20\x20\x20\x20\x5D\n\x20\x20\x7D\n\x20\x20\x60\x60\x60\n\n\n\n\x20\x20\x60\x60\x60\x6A\x73\x6F\x6E\x20\x74\x69\x74\x6C\x65\x3D\"\x46\x65\x62\x72\x75\x61\x72\x79\"\n\x20\x20\x7B\n\x20\x20\x20\x20\x20\x20\"\x69\x64\"\x3A\x20\"\x30\x30\x31\"\x2C\n\x20\x20\x20\x20\x20\x20\"\x74\x6F\x74\x61\x6C\x41\x6D\x6F\x75\x6E\x74\"\x3A\x20\x35\x30\x30\x30\x2C\n\x20\x20\x20\x20\x20\x20\"\x64\x61\x74\x65\"\x20\x3A\x20\"\x31\x39\x30\x31\x2D\x30\x32\x2D\x30\x31\"\x2C\n\x20\x20\x20\x20\x20\x20\"\x6C\x69\x6E\x65\x73\"\x3A\x20\x5B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x61\x6D\x6F\x75\x6E\x74\"\x20\x3A\x20\x31\x30\x30\x30\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x6C\x69\x6E\x6B\x73\"\x20\x3A\x20\x5B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x74\x79\x70\x65\"\x20\x3A\x20\"\x49\x6E\x76\x6F\x69\x63\x65\"\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x69\x64\"\x20\x3A\x20\"\x49\x6E\x76\x6F\x69\x63\x65\x2D\x78\"\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x61\x6D\x6F\x75\x6E\x74\"\x20\x3A\x20\x2D\x31\x30\x30\x30\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7D\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x5D\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7D\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x61\x6D\x6F\x75\x6E\x74\"\x20\x3A\x20\x31\x30\x30\x30\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x6C\x69\x6E\x6B\x73\"\x20\x3A\x20\x5B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x74\x79\x70\x65\"\x20\x3A\x20\"\x49\x6E\x76\x6F\x69\x63\x65\"\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x69\x64\"\x20\x3A\x20\"\x49\x6E\x76\x6F\x69\x63\x65\x2D\x79\"\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x61\x6D\x6F\x75\x6E\x74\"\x20\x3A\x20\x2D\x31\x30\x30\x30\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7D\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x5D\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7D\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x61\x6D\x6F\x75\x6E\x74\"\x20\x3A\x20\x33\x30\x30\x30\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x6C\x69\x6E\x6B\x73\"\x20\x3A\x20\x5B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x74\x79\x70\x65\"\x20\x3A\x20\"\x50\x61\x79\x6D\x65\x6E\x74\x4F\x6E\x41\x63\x63\x6F\x75\x6E\x74\"\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x69\x64\"\x20\x3A\x20\"\x50\x61\x79\x6D\x65\x6E\x74\x4F\x6E\x41\x63\x63\x6F\x75\x6E\x74\x2D\x79\"\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x61\x6D\x6F\x75\x6E\x74\"\x20\x3A\x20\x2D\x33\x30\x30\x30\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7D\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x5D\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7D\n\x20\x20\x20\x20\x20\x20\x5D\n\x20\x20\x7D\n\x20\x20\x60\x60\x60\n\n\n\n\x20\x20\x60\x60\x60\x6A\x73\x6F\x6E\x20\x74\x69\x74\x6C\x65\x3D\"\x54\x77\x6F\x20\x63\x72\x65\x64\x69\x74\x20\x6E\x6F\x74\x65\x73\x20\x61\x6E\x64\x20\x73\x6F\x6D\x65\x20\x63\x61\x73\x68\x20\x70\x61\x79\x20\x74\x77\x6F\x20\x69\x6E\x76\x6F\x69\x63\x65\x73\x20\x77\x69\x74\x68\x20\x6E\x6F\x20\x61\x6C\x6C\x6F\x63\x61\x74\x69\x6F\x6E\x73\x20\x73\x70\x65\x63\x69\x66\x69\x65\x64\"\n\x20\x20\x7B\n\x20\x20\x20\x20\x20\x20\"\x74\x6F\x74\x61\x6C\x41\x6D\x6F\x75\x6E\x74\"\x3A\x20\x35\x30\x30\x2C\n\x20\x20\x20\x20\x20\x20\"\x6C\x69\x6E\x65\x73\"\x3A\x20\x5B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x61\x6D\x6F\x75\x6E\x74\"\x3A\x20\x35\x30\x30\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x6C\x69\x6E\x6B\x73\"\x3A\x20\x5B\x7B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x74\x79\x70\x65\"\x3A\x20\"\x49\x6E\x76\x6F\x69\x63\x65\"\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x69\x64\"\x3A\x20\"\x61\"\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x61\x6D\x6F\x75\x6E\x74\"\x3A\x20\x2D\x31\x30\x30\x30\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7D\x2C\x20\x7B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x74\x79\x70\x65\"\x3A\x20\"\x49\x6E\x76\x6F\x69\x63\x65\"\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x69\x64\"\x3A\x20\"\x62\"\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x61\x6D\x6F\x75\x6E\x74\"\x3A\x20\x2D\x31\x30\x30\x30\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7D\x2C\x20\x7B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x74\x79\x70\x65\"\x3A\x20\"\x43\x72\x65\x64\x69\x74\x4E\x6F\x74\x65\"\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x69\x64\"\x3A\x20\"\x79\"\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x61\x6D\x6F\x75\x6E\x74\"\x3A\x20\x37\x35\x30\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7D\x2C\x7B\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x74\x79\x70\x65\"\x3A\x20\"\x43\x72\x65\x64\x69\x74\x4E\x6F\x74\x65\"\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x69\x64\"\x3A\x20\"\x7A\"\x2C\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\x61\x6D\x6F\x75\x6E\x74\"\x3A\x20\x37\x35\x30\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7D\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x5D\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7D\n\x20\x20\x20\x20\x20\x20\x5D\n\x20\x20\x7D\n\x20\x20\x60\x60\x60" - type: object - allOf: - - type: object - properties: - id: - type: string - description: 'Identifier for the payment, unique to the company in the accounting software.' - customerRef: - $ref: '#/components/schemas/AccountingCustomer/definitions/accountingCustomerRef' - description: Customer the payment is recorded against in the accounting software. - accountRef: - $ref: '#/components/schemas/AccountingAccount/definitions/accountRef' - description: Account the payment is recorded against in the accounting software. - paymentMethodRef: - $ref: '#/components/schemas/PaymentMethodRef' - description: The Payment Method to which the payment is linked in the accounting software. - totalAmount: - type: number - format: decimal - description: Amount of the payment in the payment currency. This value should never change and represents the amount of money paid into the customer's account. - currency: - $ref: '#/components/schemas/SourceAccount/properties/currency' - description: ISO currency code recorded for the payment in the accounting software. - currencyRate: - $ref: '#/components/schemas/AccountingPaymentAllocation/definitions/paymentAllocationPayment/properties/currencyRate' - date: - $ref: '#/components/schemas/DateTime' - description: Date the payment was recorded in the accounting software. - note: - type: string - nullable: true - description: Any additional information associated with the payment. - lines: - type: array - nullable: true - description: An array of payment lines. - items: - $ref: '#/components/schemas/AccountingPayment/definitions/paymentLine' - reference: - type: string - nullable: true - description: Friendly reference for the payment. - metadata: - $ref: '#/components/schemas/Metadata' - supplementalData: - $ref: '#/components/schemas/SupplementalData' - - $ref: '#/components/schemas/CommerceOrder/allOf/3' - required: - - date - definitions: - paymentLine: - title: Payment Line - type: object - properties: - amount: - type: number - format: decimal - description: Amount in the payment currency. - links: - type: array - nullable: true - items: - $ref: '#/components/schemas/AccountingPayment/definitions/paymentLineLink' - allocatedOnDate: - $ref: '#/components/schemas/DateTime' - description: The date the payment was allocated. - required: - - amount - paymentLineLink: - title: Payment Line Link - type: object - additionalProperties: false - properties: - type: - $ref: '#/components/schemas/AccountingPayment/definitions/paymentLinkType' - id: - type: string - description: Unique identifier of the transaction represented by the link. - amount: - type: number - format: decimal - nullable: true - description: "Amount by which the balance of the linked entity is altered, in the currency of the linked entity. \nA negative link amount _reduces_ the outstanding amount on the accounts receivable account. \nA positive link amount _increases_ the outstanding amount on the accounts receivable account." - currencyRate: - $ref: '#/components/schemas/AccountingPaymentAllocation/definitions/paymentAllocationPayment/properties/currencyRate' - required: - - type - paymentLinkType: - title: Payment Link Type - type: string - enum: - - Unknown - - Unlinked - - Invoice - - CreditNote - - Other - - Refund - - Payment - - PaymentOnAccount - - ManualJournal - - Discount - description: "Types of payment line links, either: \n`Unknown` \n`Unlinked` - Not used \n`Invoice` - ID refers to the invoice \n`CreditNote` - ID refers to the credit note \n`Refund` - ID refers to the sibling payment \n`Payment` - ID refers to the sibling payment \n`PaymentOnAccount` - ID refers to the customer \n`Other` - ID refers to the customer \n`Manual Journal` \n`Discount` - ID refers to the payment" - AccountingPaymentAllocation: - title: 'Accounting: Payment allocation' - type: object - properties: - payment: - $ref: '#/components/schemas/AccountingPaymentAllocation/definitions/paymentAllocationPayment' - allocation: - type: object - properties: - currency: - $ref: '#/components/schemas/SourceAccount/properties/currency' - description: The currency of the transaction. - currencyRate: - $ref: '#/components/schemas/AccountingPaymentAllocation/definitions/paymentAllocationPayment/properties/currencyRate' - allocatedOnDate: - $ref: '#/components/schemas/DateTime' - description: The date the payment was allocated. - totalAmount: - type: number - format: decimal - description: The total amount that has been allocated. - required: - - payment - - allocation - definitions: - paymentAllocationPayment: - type: object - properties: - id: - type: string - description: Identifier of the allocated payment. - note: - type: string - nullable: true - description: Notes attached to the allocated payment. - reference: - type: string - nullable: true - description: Reference to the allocated payment. - accountRef: - $ref: '#/components/schemas/AccountingAccount/definitions/accountRef' - description: The account that the allocated payment is made from or to. - currency: - $ref: '#/components/schemas/SourceAccount/properties/currency' - description: Currency the payment has been made in. - currencyRate: - title: Currency rate - type: number - format: decimal - nullable: true - description: "Rate to convert the total amount of the payment into the base currency for the company at the time of the payment.\n\nCurrency rates in Codat are implemented as the multiple of foreign currency units to each base currency unit. \n\nIt is not possible to perform the currency conversion with two or more non-base currencies participating in the transaction. For example, if a company's base currency is USD, and it has a bill issued in EUR, then the bill payment must happen in USD or EUR.\n\nWhere the currency rate is provided by the underlying accounting software, it will be available from Codat with the same precision (up to a maximum of 9 decimal places). \n\nFor accounting software which do not provide an explicit currency rate, it is calculated as `baseCurrency / foreignCurrency` and will be returned to 9 decimal places.\n\n## Examples with base currency of GBP\n\n| Foreign Currency | Foreign Amount | Currency Rate | Base Currency Amount (GBP) |\n| :--------------- | :------------- | :------------ | :------------------------- |\n| **USD** | $20 | 0.781 | £15.62 |\n| **EUR** | €20 | 0.885 | £17.70 |\n| **RUB** | ₽20 | 0.011 | £0.22 |\n\n## Examples with base currency of USD\n\n| Foreign Currency | Foreign Amount | Currency Rate | Base Currency Amount (USD) |\n| :--------------- | :------------- | :------------ | :------------------------- |\n| **GBP** | £20 | 1.277 | $25.54 |\n| **EUR** | €20 | 1.134 | $22.68 |\n| **RUB** | ₽20 | 0.015 | $0.30 |\n\n\n### Integration-specific details\n\n| Integration | Scenario | System behavior |\n|-------------------|-------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| QuickBooks Online | Transaction currency differs from base currency | If currency rate value is left `null`, a rate of 1 will be used by QBO by default. To override this, specify a currencyRate in the request body. |" - paidOnDate: - $ref: '#/components/schemas/DateTime' - description: The date the payment was paid. - totalAmount: - type: number - format: decimal - description: Total amount that was paid. - AccountingPaymentMethod: - title: 'Accounting: Payment method' - description: |- - ## Overview - - A Payment Method represents the payment method(s) used to pay a Bill. Payment Methods are referenced on [Bill Payments](https://docs.codat.io/lending-api#/schemas/BillPayment) and [Payments](https://docs.codat.io/lending-api#/schemas/Payment). - type: object - allOf: - - type: object - properties: - id: - type: string - description: Unique identifier for the payment method. - name: - type: string - nullable: true - description: Name of the payment method. - type: - $ref: '#/components/schemas/AccountingPaymentMethod/definitions/paymentMethodType' - status: - $ref: '#/components/schemas/CommercePaymentMethod/allOf/1/properties/status' - metadata: - $ref: '#/components/schemas/Metadata' - - $ref: '#/components/schemas/CommerceOrder/allOf/3' - definitions: - paymentMethodType: - description: Method of payment. - type: string - enum: - - Unknown - - Cash - - Check - - CreditCard - - DebitCard - - BankTransfer - - Other - AccountingPayments: - title: 'Accounting: Payments' - x-internal: true - allOf: - - type: object - properties: - results: - type: array - items: - $ref: '#/components/schemas/AccountingPayment' - - $ref: '#/components/schemas/PagingInfo' - AccountingProfitAndLossReport: - title: 'Accounting: Profit and loss report' - description: "> **Language tip:** Profit and loss statement is also referred to as **income statement** under US GAAP (Generally Accepted Accounting Principles).\n\n## Overview\n\nThe purpose of a profit and loss report is to present the financial performance of a company over a specified time period.\n\nA profit and loss report shows a company's total income and expenses for a specified period of time and whether a profit or loss has been made.\n\n> **Profit and loss or balance sheet?** \n> Profit and loss reports summarise the total revenue, expenses, and profit or loss over a specified time period. A balance sheet report presents all assets, liability, and equity for a given date.\n\n\n**Structure of this report** \nThis report will reflect the structure and line descriptions that the business has set in their own accounting software.\n\n**History** \nBy default, Codat pulls (up to) 24 months of profit and loss history for a company. You can adjust this to fetch more history, where available, by updating the `monthsToSync` value for `profitAndLoss` on the [data type settings endpoint](https://docs.codat.io/lending-api#/operations/post-profile-syncSettings).\n\n**Want to pull this in a standardised structure?** \nOur [Enhanced Financials](https://docs.codat.io/lending/features/financial-statements-overview) endpoints provide the same report under standardized headings, allowing you to pull it in the same format for all of your business customers." - type: object - properties: - reports: - type: array - description: An array of profit and loss reports. - items: - $ref: '#/components/schemas/AccountingProfitAndLossReport/definitions/profitAndLossReport' - reportBasis: - $ref: '#/components/schemas/AccountingProfitAndLossReport/definitions/reportBasis' - currency: - type: string - description: Base currency of the company in which the profit and loss report is presented. - mostRecentAvailableMonth: - $ref: '#/components/schemas/DateTime' - description: Most recent available monthly report data. - earliestAvailableMonth: - $ref: '#/components/schemas/DateTime' - description: Earliest available monthly report data. - required: - - reports - - reportBasis - definitions: - reportBasis: - enum: - - Unknown - - Accrual - - Cash - type: string - description: The basis of a report. - profitAndLossReport: - type: object - additionalProperties: false - properties: - fromDate: - $ref: '#/components/schemas/DateTime' - description: Date from which the report data begins. - toDate: - $ref: '#/components/schemas/DateTime' - description: Date on which the report data ends. - income: - $ref: '#/components/schemas/ReportLine' - description: ReportLine items for income in the given date range. - costOfSales: - $ref: '#/components/schemas/ReportLine' - description: ReportLine items for cost of sales in the given date range. - grossProfit: - type: number - format: decimal - description: Gross profit of the company in the given date range. - expenses: - $ref: '#/components/schemas/ReportLine' - description: ReportLine items for expenses in the given date range. - netOperatingProfit: - type: number - format: decimal - description: Net operating profit of the company in the given date range. - otherExpenses: - $ref: '#/components/schemas/ReportLine' - description: ReportLine items for other expenses in the given date range. - otherIncome: - $ref: '#/components/schemas/ReportLine' - description: ReportLine items for other income in the given date range. - netOtherIncome: - type: number - format: decimal - description: Net other income of the company in the given date range. - netProfit: - type: number - format: decimal - description: Net profit of the company in the given date range. - required: - - grossProfit - - netOperatingProfit - - netOtherIncome - - netProfit - AccountingRecordRef: - type: object - x-internal: true - title: Record reference - description: "Links the current record to the underlying record or data type that created it. \n\nFor example, if a journal entry is generated based on an invoice, this property allows you to connect the journal entry to the underlying invoice in our data model. " - properties: - id: - type: string - description: '''id'' of the underlying record or data type.' - dataType: - type: string - description: Allowed name of the 'dataType'. - examples: - - journalEntry - - invoice - - accountTransaction - - transfer - AccountingSupplier: - title: 'Accounting: Supplier' - description: |- - ## Overview - - From the **Suppliers** endpoints, you can retrieve a list of [all the suppliers for a company](https://docs.codat.io/lending-api#/operations/list-suppliers). Suppliers' data links to accounts payable [bills](https://docs.codat.io/lending-api#/schemas/Bill). - type: object - allOf: - - type: object - properties: - id: - type: string - description: 'Identifier for the supplier, unique to the company in the accounting software.' - supplierName: - type: string - nullable: true - description: 'Name of the supplier as recorded in the accounting system, typically the company name.' - contactName: - type: string - nullable: true - description: Name of the main contact for the supplier. - emailAddress: - type: string - nullable: true - description: Email address that the supplier may be contacted on. - phone: - type: string - nullable: true - description: Phone number that the supplier may be contacted on. - examples: - - +44 25691 154789 - - (877) 492-8687 - - 01224 658 999 - addresses: - type: array - nullable: true - description: An array of Addresses. - items: - $ref: '#/components/schemas/AccountingAddress' - registrationNumber: - type: string - nullable: true - description: 'Company number of the supplier. In the UK, this is typically the company registration number issued by Companies House.' - taxNumber: - type: string - nullable: true - description: Supplier's company tax number. - status: - $ref: '#/components/schemas/AccountingSupplier/definitions/supplierStatus' - defaultCurrency: - type: string - nullable: true - description: Default currency the supplier's transactional data is recorded in. - metadata: - $ref: '#/components/schemas/Metadata' - supplementalData: - $ref: '#/components/schemas/SupplementalData' - - $ref: '#/components/schemas/CommerceOrder/allOf/3' - required: - - status - definitions: - supplierRef: - title: Supplier reference - description: Reference to the supplier the record relates to. - type: object - properties: - id: - minLength: 1 - type: string - description: The supplier's unique ID - supplierName: - type: string - nullable: true - description: The supplier's name - required: - - id - supplierStatus: - description: Status of the supplier. + title: Data statuses + x-internal: true + type: object + properties: + accountTransactions: + $ref: '#/components/schemas/DataStatus' + nullable: true + balanceSheet: + $ref: '#/components/schemas/DataStatus' + nullable: true + bankAccounts: + $ref: '#/components/schemas/DataStatus' + nullable: true + bankTransactions: + $ref: '#/components/schemas/DataStatus' + nullable: true + billCreditNotes: + $ref: '#/components/schemas/DataStatus' + nullable: true + billPayments: + $ref: '#/components/schemas/DataStatus' + nullable: true + bills: + $ref: '#/components/schemas/DataStatus' + nullable: true + cashFlowStatement: + $ref: '#/components/schemas/DataStatus' + nullable: true + chartOfAccounts: + $ref: '#/components/schemas/DataStatus' + nullable: true + company: + $ref: '#/components/schemas/DataStatus' + nullable: true + creditNotes: + $ref: '#/components/schemas/DataStatus' + nullable: true + customers: + $ref: '#/components/schemas/DataStatus' + nullable: true + directCosts: + $ref: '#/components/schemas/DataStatus' + nullable: true + directIncomes: + $ref: '#/components/schemas/DataStatus' + nullable: true + invoices: + $ref: '#/components/schemas/DataStatus' + nullable: true + itemReceipts: + $ref: '#/components/schemas/DataStatus' + nullable: true + items: + $ref: '#/components/schemas/DataStatus' + nullable: true + journalEntries: + $ref: '#/components/schemas/DataStatus' + nullable: true + journals: + $ref: '#/components/schemas/DataStatus' + nullable: true + paymentMethods: + $ref: '#/components/schemas/DataStatus' + nullable: true + payments: + $ref: '#/components/schemas/DataStatus' + nullable: true + profitAndLoss: + $ref: '#/components/schemas/DataStatus' + nullable: true + purchaseOrders: + $ref: '#/components/schemas/DataStatus' + nullable: true + salesOrders: + $ref: '#/components/schemas/DataStatus' + nullable: true + suppliers: + $ref: '#/components/schemas/DataStatus' + nullable: true + taxRates: + $ref: '#/components/schemas/DataStatus' + nullable: true + trackingCategories: + $ref: '#/components/schemas/DataStatus' + nullable: true + transfers: + $ref: '#/components/schemas/DataStatus' + nullable: true + banking-accountBalances: + $ref: '#/components/schemas/DataStatus' + nullable: true + banking-accounts: + $ref: '#/components/schemas/DataStatus' + nullable: true + banking-transactionCategories: + $ref: '#/components/schemas/DataStatus' + nullable: true + banking-transactions: + $ref: '#/components/schemas/DataStatus' + nullable: true + commerce-companyInfo: + $ref: '#/components/schemas/DataStatus' + nullable: true + commerce-customers: + $ref: '#/components/schemas/DataStatus' + nullable: true + commerce-disputes: + $ref: '#/components/schemas/DataStatus' + nullable: true + commerce-locations: + $ref: '#/components/schemas/DataStatus' + nullable: true + commerce-orders: + $ref: '#/components/schemas/DataStatus' + nullable: true + commerce-paymentMethods: + $ref: '#/components/schemas/DataStatus' + nullable: true + commerce-payments: + $ref: '#/components/schemas/DataStatus' + nullable: true + commerce-productCategories: + $ref: '#/components/schemas/DataStatus' + nullable: true + commerce-products: + $ref: '#/components/schemas/DataStatus' + nullable: true + commerce-taxComponents: + $ref: '#/components/schemas/DataStatus' + nullable: true + commerce-transactions: + $ref: '#/components/schemas/DataStatus' + nullable: true + examples: + Example: + value: + accountTransactions: + dataType: accountTransactions + lastSuccessfulSync: '2022-01-01T00:00:00.000Z' + currentStatus: Complete + latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 + latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f + balanceSheet: + dataType: balanceSheet + lastSuccessfulSync: '2022-01-01T00:00:00.000Z' + currentStatus: Complete + latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 + latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f + bankAccounts: + dataType: bankAccounts + lastSuccessfulSync: '2022-01-01T00:00:00.000Z' + currentStatus: Complete + latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 + latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f + bankTransactions: + dataType: bankTransactions + lastSuccessfulSync: '2022-01-01T00:00:00.000Z' + currentStatus: Complete + latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 + latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f + billCreditNotes: + dataType: billCreditNotes + lastSuccessfulSync: '2022-01-01T00:00:00.000Z' + currentStatus: Complete + latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 + latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f + billPayments: + dataType: billPayments + lastSuccessfulSync: '2022-01-01T00:00:00.000Z' + currentStatus: Complete + latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 + latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f + bills: + dataType: bills + lastSuccessfulSync: '2022-01-01T00:00:00.000Z' + currentStatus: Complete + latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 + latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f + cashFlowStatement: + dataType: cashFlowStatement + lastSuccessfulSync: '2022-01-01T00:00:00.000Z' + currentStatus: Complete + latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 + latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f + chartOfAccounts: + dataType: chartOfAccounts + lastSuccessfulSync: '2022-01-01T00:00:00.000Z' + currentStatus: Complete + latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 + latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f + company: + dataType: company + lastSuccessfulSync: '2022-01-01T00:00:00.000Z' + currentStatus: Complete + latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 + latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f + creditNotes: + dataType: creditNotes + lastSuccessfulSync: '2022-01-01T00:00:00.000Z' + currentStatus: Complete + latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 + latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f + customers: + dataType: customers + lastSuccessfulSync: '2022-01-01T00:00:00.000Z' + currentStatus: Complete + latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 + latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f + directCosts: + dataType: directCosts + lastSuccessfulSync: '2022-01-01T00:00:00.000Z' + currentStatus: Complete + latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 + latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f + directIncomes: + dataType: directIncomes + lastSuccessfulSync: '2022-01-01T00:00:00.000Z' + currentStatus: Complete + latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 + latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f + invoices: + dataType: invoices + lastSuccessfulSync: '2022-01-01T00:00:00.000Z' + currentStatus: Complete + latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 + latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f + itemReceipts: + dataType: itemReceipts + lastSuccessfulSync: '2022-01-01T00:00:00.000Z' + currentStatus: Complete + latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 + latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f + items: + dataType: items + lastSuccessfulSync: '2022-01-01T00:00:00.000Z' + currentStatus: Complete + latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 + latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f + journalEntries: + dataType: journalEntries + lastSuccessfulSync: '2022-01-01T00:00:00.000Z' + currentStatus: Complete + latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 + latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f + journals: + dataType: journals + lastSuccessfulSync: '2022-01-01T00:00:00.000Z' + currentStatus: Complete + latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 + latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f + paymentMethods: + dataType: paymentMethods + lastSuccessfulSync: '2022-01-01T00:00:00.000Z' + currentStatus: Complete + latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 + latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f + payments: + dataType: payments + lastSuccessfulSync: '2022-01-01T00:00:00.000Z' + currentStatus: Complete + latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 + latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f + profitAndLoss: + dataType: profitAndLoss + lastSuccessfulSync: '2022-01-01T00:00:00.000Z' + currentStatus: Complete + latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 + latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f + purchaseOrders: + dataType: purchaseOrders + lastSuccessfulSync: '2022-01-01T00:00:00.000Z' + currentStatus: Complete + latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 + latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f + salesOrders: + dataType: salesOrders + lastSuccessfulSync: '2022-01-01T00:00:00.000Z' + currentStatus: Complete + latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 + latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f + suppliers: + dataType: suppliers + lastSuccessfulSync: '2022-01-01T00:00:00.000Z' + currentStatus: Complete + latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 + latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f + taxRates: + dataType: taxRates + lastSuccessfulSync: '2022-01-01T00:00:00.000Z' + currentStatus: Complete + latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 + latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f + trackingCategories: + dataType: trackingCategories + lastSuccessfulSync: '2022-01-01T00:00:00.000Z' + currentStatus: Complete + latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 + latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f + transfers: + dataType: transfers + lastSuccessfulSync: '2022-01-01T00:00:00.000Z' + currentStatus: Complete + latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 + latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f + banking-accountBalances: + dataType: banking-accountBalances + lastSuccessfulSync: '2022-01-01T00:00:00.000Z' + currentStatus: Complete + latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 + latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f + banking-accounts: + dataType: banking-accounts + lastSuccessfulSync: '2022-01-01T00:00:00.000Z' + currentStatus: Complete + latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 + latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f + banking-transactionCategories: + dataType: banking-transactionCategories + lastSuccessfulSync: '2022-01-01T00:00:00.000Z' + currentStatus: Complete + latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 + latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f + banking-transactions: + dataType: banking-transactions + lastSuccessfulSync: '2022-01-01T00:00:00.000Z' + currentStatus: Complete + latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 + latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f + commerce-companyInfo: + dataType: commerce-companyInfo + lastSuccessfulSync: '2022-01-01T00:00:00.000Z' + currentStatus: Complete + latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 + latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f + commerce-customers: + dataType: commerce-customers + lastSuccessfulSync: '2022-01-01T00:00:00.000Z' + currentStatus: Complete + latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 + latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f + commerce-disputes: + dataType: commerce-disputes + lastSuccessfulSync: '2022-01-01T00:00:00.000Z' + currentStatus: Complete + latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 + latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f + commerce-locations: + dataType: commerce-locations + lastSuccessfulSync: '2022-01-01T00:00:00.000Z' + currentStatus: Complete + latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 + latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f + commerce-orders: + dataType: commerce-orders + lastSuccessfulSync: '2022-01-01T00:00:00.000Z' + currentStatus: Complete + latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 + latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f + commerce-paymentMethods: + dataType: commerce-paymentMethods + lastSuccessfulSync: '2022-01-01T00:00:00.000Z' + currentStatus: Complete + latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 + latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f + commerce-payments: + dataType: commerce-payments + lastSuccessfulSync: '2022-01-01T00:00:00.000Z' + currentStatus: Complete + latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 + latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f + commerce-productCategories: + dataType: commerce-productCategories + lastSuccessfulSync: '2022-01-01T00:00:00.000Z' + currentStatus: Complete + latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 + latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f + commerce-products: + dataType: commerce-products + lastSuccessfulSync: '2022-01-01T00:00:00.000Z' + currentStatus: Complete + latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 + latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f + commerce-taxComponents: + dataType: commerce-taxComponents + lastSuccessfulSync: '2022-01-01T00:00:00.000Z' + currentStatus: Complete + latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 + latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f + commerce-transactions: + dataType: commerce-transactions + lastSuccessfulSync: '2022-01-01T00:00:00.000Z' + currentStatus: Complete + latestSyncId: d03b6979-eb3b-447a-a27a-13cf457a9f48 + latestSuccessfulSyncId: 6883bba8-514d-423f-ba7f-c38285a80b7f + '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' + '/companies/{companyId}/data/queue/{dataType}': + parameters: + - $ref: '#/components/parameters/companyId' + - $ref: '#/components/parameters/dataType' + post: + summary: Refresh data type + operationId: refresh-data-type + description: |- + Refreshes a given data type for a given company. + + This is an asynchronous operation, and will bring updated data into Codat from the linked integration for you to view. + tags: + - Manage data + parameters: + - schema: type: string - enum: - - Unknown - - Active - - Archived - examples: - - id: C520FFD4-F6F6-4FC2-A6D2-5D7088B2B14F - supplierName: Kelly's Industrial Supplies - contactName: Kelly's Industrial Supplies - emailAddress: sales@kellysupplies.com - phone: 07999 999999 - addresses: - - type: Billing - line1: Unit 51 - line2: Bakersfield Industrial Estate - city: Bakersfield - region: California - country: USA - postalcode: '93308' - registrationNumber: string - taxNumber: string - status: Unknown - defaultCurrency: string - metadata: - isDeleted: true - supplementalData: + format: uuid + in: query + name: connectionId + description: 'Optionally, provide a data connection id to only queue pull operations on that connection.' + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/PullOperation' + '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' + '/companies/{companyId}/data/history': + parameters: + - $ref: '#/components/parameters/companyId' + get: + summary: List pull operations + tags: + - Manage data + operationId: list-pull-operations + x-speakeasy-name-override: list-pull-operations + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/PullOperations' + examples: + Example: + value: + results: + - id: 97d60846-f07a-4d42-b5a0-0bdcc6ebf56b + companyId: 4645bd78-8988-45bc-ac9e-67ba5df6e4e5 + connectionId: 51baa045-4836-4317-a42e-3542e991e581 + dataType: invoices + status: Initial + requested: '2022-11-14T11:18:37.2798351Z' + progress: 10 + isCompleted: false + isErrored: false + _links: + current: + href: /companies/17129e41-5389-4f10-ac06-e0a37e47d177/data/history?page=1&pageSize=2 + self: + href: /companies/17129e41-5389-4f10-ac06-e0a37e47d177/data/history + next: + href: /companies/17129e41-5389-4f10-ac06-e0a37e47d177/data/history?page=2&pageSize=2 + pageNumber: 0 + pageSize: 0 + totalResults: 0 + '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 the pull operation history (datasets) for a given company. + parameters: + - $ref: '#/components/parameters/page' + - $ref: '#/components/parameters/pageSize' + - $ref: '#/components/parameters/query' + - $ref: '#/components/parameters/orderBy' + '/companies/{companyId}/data/history/{datasetId}': + parameters: + - $ref: '#/components/parameters/companyId' + - name: datasetId + in: path + required: true + schema: + type: string + format: uuid + description: Unique identifier for the dataset that completed its sync. + description: Unique identifier for the dataset that completed its sync. + get: + summary: Get pull operation + operationId: get-pull-operation + x-speakeasy-name-override: get-pull-operation + tags: + - Manage data + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/PullOperation' + examples: {} + '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: Retrieve information about a single dataset or pull operation. + '/companies/{companyId}/push': + parameters: + - $ref: '#/components/parameters/companyId' + get: + parameters: + - $ref: '#/components/parameters/page' + - $ref: '#/components/parameters/pageSize' + - $ref: '#/components/parameters/query' + - $ref: '#/components/parameters/orderBy' + summary: List push operations + tags: + - Push operations + operationId: list-push-operations + description: List push operation records. + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/PushOperations' + examples: {} + '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' + '/companies/{companyId}/push/{pushOperationKey}': + parameters: + - $ref: '#/components/parameters/companyId' + - schema: + type: string + format: uuid + name: pushOperationKey + in: path + required: true + description: Push operation key. + get: + summary: Get push operation + tags: + - Push operations + operationId: get-push-operation + description: Retrieve push operation. + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/PushOperation' + examples: {} + '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' + '/companies/{companyId}/connections/{connectionId}/push/accounts': + parameters: + - $ref: '#/components/parameters/companyId' + - $ref: '#/components/parameters/connectionId' + post: + tags: + - Accounts + summary: Create account + parameters: + - $ref: '#/components/parameters/timeoutInMinutes' + - $ref: '#/components/parameters/allowSyncOnPushComplete' + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Account/definitions/accountPrototype' + responses: + '200': + description: Success content: - property1: - property1: null - property2: null - property2: - property1: null - property2: null - modifiedDate: '2022-10-23T00:00:00Z' - sourceModifiedDate: '2022-10-23T00:00:00Z' - AccountingSuppliers: - title: Suppliers - x-internal: true - allOf: - - type: object - properties: - results: - type: array - items: - $ref: '#/components/schemas/AccountingSupplier' - - $ref: '#/components/schemas/PagingInfo' - AccountingTrackingCategory: - x-internal: true - title: 'Accounting: Tracking category' - description: "Details of a category used for tracking transactions.\n\n> Language tip\n>\n> Parameters used to track types of spend in various parts of an organization can be called **dimensions**, **projects**, **classes**, or **locations** in different accounting software. In Codat, we refer to these as tracking categories.\n\n## Overview\n\nTracking categories are used to monitor cost centres and control budgets that sit outside the standard chart of accounts. Customers may use tracking categories to group together and track the income and costs of specific departments, projects, locations or customers.\n\nFrom their accounting system, customers can: \n\n- Create and maintain tracking categories and tracking category types.\n- View all tracking categories that are available for use.\n- View the relationships between the categories.\n- Assign invoices, bills, credit notes, or bill credit notes to one or more categories.\n- View the categories that a transaction belongs to.\n- View all transactions in a tracking category.\n\n### Tracking categories per platform\n\nReview the platform-specific tracking categories that Codat supports, and the level they are assigned to in the source platform. \n\n\n\n \n \n \n \n \n\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n
PlatformTracking categoryTracking level
Dynamics 365DimensionsLine item
FreshbooksExpense categoriesLine item
MYOBCategoriesTransaction
NetsuiteClassesLine item
LocationsLine item
DepartmentsLine item
Custom segmentsLine item
QuickBooks DesktopClassesLine item or transaction level
LocationsTransaction
QuickBooks OnlineClassesLine item or transaction level
LocationsTransaction
Sage 200Cost centersLine item
DepartmentsLine item
Analysis codesTransaction
Sage 50DepartmentsLine item
CostcodesLine item
ProjectsLine item
Sage IntacctDimensionsLine item
XeroTracking categoriesLine item
\n\n> **Example use case**\n>\n> Monitor the budget for your annual conference using a tracking category called 'AnnualConference2020' with the **type** set to **Costing**.\n\nIf a tracking category has a parent category, the ID of that parent category is displayed. There is also a `hasChildren` field that shows whether there are child subcategories nested beneath. " - type: object - allOf: - - type: object - properties: - id: - type: string - description: 'The identifier for the item, unique per tracking category.' - nullable: true - name: - type: string - description: The name of the tracking category. - nullable: true - status: - $ref: '#/components/schemas/AccountingTrackingCategory/definitions/status' - parentId: - type: string - description: The identifier for this item's immediate parent. - nullable: true - hasChildren: - type: boolean - description: Boolean value indicating whether this category has SubCategories. - metadata: - $ref: '#/components/schemas/Metadata' - - $ref: '#/components/schemas/CommerceOrder/allOf/3' - definitions: - trackingCategoryRef: - required: - - id - type: object - description: References a category against which the item is tracked. - deprecated: true - properties: - id: - minLength: 1 - type: string - description: Unique identifier to the tracking category. - name: - type: string - nullable: true - description: Name of tracking category. - status: - title: Tracking category status - type: string - description: Current state of the tracking category. - enum: - - Unknown - - Active - - Archived - examples: - - id: string - name: string - status: Unknown - parentId: string - hasChildren: true - modifiedDate: '2022-10-23T00:00:00Z' - sourceModifiedDate: '2022-10-23T00:00:00Z' - AccountingTransfer: - title: 'Accounting: Transfer' - description: 'A transfer records the movement of money between two bank accounts, or between a bank account and a nominal account. It is a child data type of [account transactions](https://docs.codat.io/lending-api#/schemas/AccountTransaction).' - allOf: - - properties: - id: - type: string - description: Unique identifier for the transfer. - description: - type: string - nullable: true - description: Description of the transfer. - contactRef: - $ref: '#/components/schemas/AccountingJournalEntry/definitions/journalLine/properties/contactRef' - description: 'The customer or supplier for the transfer, if available.' - date: - $ref: '#/components/schemas/DateTime' - description: The day on which the transfer was made. - from: - $ref: '#/components/schemas/AccountingTransfer/definitions/transferAccount' - description: The details of the accounts the transfer is moving from. - to: - $ref: '#/components/schemas/AccountingTransfer/definitions/transferAccount' - description: The details of the accounts the transfer is moving to. - status: - description: The status of the transfer in the account - type: string - enum: - - Unknown - - Unreconciled - - Reconciled - - Void - nullable: true - trackingCategoryRefs: - type: array - nullable: true - description: Reference to the tracking categories this transfer is being tracked against. - items: - $ref: '#/components/schemas/AccountingTrackingCategory/definitions/trackingCategoryRef' - depositedRecordRefs: - type: array - nullable: true - description: List of selected transactions to associate with the transfer. Use this field to include transactions which are posted to the _undeposited funds_ (or other holding) account within the transfer. - items: - $ref: '#/components/schemas/AccountingRecordRef' - metadata: - $ref: '#/components/schemas/Metadata' - supplementalData: - $ref: '#/components/schemas/SupplementalData' - - $ref: '#/components/schemas/CommerceOrder/allOf/3' - definitions: - transferAccount: - title: Transfer account - description: Account details of the account sending or receiving the transfer. - type: object - properties: - accountRef: - $ref: '#/components/schemas/AccountingRecordRef' - description: The account that the transfer is moving from or to. - currency: - $ref: '#/components/schemas/SourceAccount/properties/currency' - amount: - type: number - format: decimal - description: The amount transferred between accounts. - type: object - AccountingTransfers: - title: 'Accounting: Transfers' - x-internal: true - allOf: - - type: object - properties: - results: - type: array - items: - $ref: '#/components/schemas/AccountingTransfer' - - $ref: '#/components/schemas/PagingInfo' - AccountsPayableTracking: - title: Tracking - x-internal: true - type: object - description: 'Categories, and a project and customer, against which the item is tracked.' - properties: - categoryRefs: - type: array - items: - $ref: '#/components/schemas/AccountingTrackingCategory/definitions/trackingCategoryRef' - customerRef: - $ref: '#/components/schemas/AccountingCustomer/definitions/accountingCustomerRef' - projectRef: - $ref: '#/components/schemas/ProjectRef' - isBilledTo: - $ref: '#/components/schemas/AccountsPayableTracking/definitions/billedToType' - isRebilledTo: - $ref: '#/components/schemas/AccountsPayableTracking/definitions/billedToType' - required: - - categoryRefs - - isBilledTo - - isRebilledTo - definitions: - billedToType: - type: string - description: Defines if the invoice or credit note is billed/rebilled to a project or customer. - enum: - - Unknown - - NotApplicable - - Customer - - Project - AccountsReceivableTracking: - title: Tracking - x-internal: true - type: object - description: 'Categories, and a project and customer, against which the item is tracked.' - properties: - categoryRefs: - type: array - items: - $ref: '#/components/schemas/AccountingTrackingCategory/definitions/trackingCategoryRef' - customerRef: - $ref: '#/components/schemas/AccountingCustomer/definitions/accountingCustomerRef' - projectRef: - $ref: '#/components/schemas/ProjectRef' - isBilledTo: - $ref: '#/components/schemas/AccountsReceivableTracking/definitions/billedToType' - isRebilledTo: - $ref: '#/components/schemas/AccountsReceivableTracking/definitions/billedToType' - recordRef: - $ref: '#/components/schemas/AccountingRecordRef' - required: - - categoryRefs - - isBilledTo - - isRebilledTo - definitions: - billedToType: - type: string - enum: - - Unknown - - NotApplicable - - Project - description: Defines if the bill or bill credit note is billed/rebilled to a project. - AgedCurrencyOutstanding: - type: object - title: 'Accounting: Aged currency outstanding' - properties: - currency: - $ref: '#/components/schemas/SourceAccount/properties/currency' - agedOutstandingAmounts: - type: array - description: Array of outstanding amounts by period. - items: - $ref: '#/components/schemas/AgedCurrencyOutstanding/definitions/agedOutstandingAmount' - definitions: - agedOutstandingAmount: - type: object - title: Aged outstanding amount - properties: - fromDate: - $ref: '#/components/schemas/DateTime' - description: Start date of period. - toDate: - $ref: '#/components/schemas/DateTime' - description: End date of period. - amount: - type: number - format: decimal - description: The amount outstanding. - details: - type: array - description: Array of details. - items: - $ref: '#/components/schemas/AgedCurrencyOutstanding/definitions/agedOutstandingAmountDetail' - agedOutstandingAmountDetail: - type: object - title: Amounts outstanding by data type - properties: - name: - type: string - description: Name of data type with outstanding amount for given period. - amount: - type: number - format: decimal - description: The amount outstanding. - Attachments: - x-internal: true - type: object - properties: - attachments: - type: array - items: - $ref: '#/components/schemas/AccountingAttachment' - nullable: true - title: Attachments - BankFeedBankAccountMapping: - title: Bank feed account mapping - type: object - additionalProperties: false - properties: - sourceAccountId: - type: string - description: Unique ID for the source account - targetAccountId: - type: string - nullable: true - description: Unique ID for the target account - feedStartDate: - $ref: '#/components/schemas/DateTime' - nullable: true - description: The date from which bank transactions can be provided to the platform. - required: - - sourceAccountId - examples: - - sourceAccountId: acc-002 - targetAccountId: account-081 - BankFeedBankAccountMappingResponse: - title: Bank feed account mapping response - type: object - additionalProperties: false - properties: - sourceAccountId: - type: string - description: Unique ID for the source account. - targetAccountId: - type: string - nullable: true - description: Unique ID for the target account. - status: - type: string - nullable: true - description: Status of the POST request. - error: - type: string - nullable: true - description: Error returned during the post request - examples: - - sourceAccountId: acc-002 - targetAccountId: account-081 - status: Failed - error: A feed connection already exists to this account - BankFeedMapping: - title: Bank feed mapping - type: object - additionalProperties: false - properties: - sourceAccountId: - type: string - description: Unique ID for the source account. - sourceAccountName: - type: string - description: Name for the source account. - sourceAccountNumber: - type: string - description: Account number for the source account. - sourceBalance: - type: number - format: decimal - description: Balance for the source account. - sourceCurrency: - $ref: '#/components/schemas/SourceAccount/properties/currency' - targetAccountId: - type: string - nullable: true - description: Unique ID for the target account in the accounting software. - targetAccountName: - type: string - description: Name for the target account in the accounting software. - status: - type: string - description: The status. - targetAccountOptions: - type: array - nullable: true - description: An array of potential target accounts. - items: - $ref: '#/components/schemas/BankFeedMapping/definitions/targetAccountOption' - feedStartDate: - $ref: '#/components/schemas/DateTime' - nullable: true - description: The date from which bank transactions can be provided to the platform. - description: 'A bank feed connection between a source account and a target account, including potential target accounts.' - definitions: - targetAccountOption: - title: Target Account Option - type: object - properties: - id: - type: string - description: Id of the target account. - name: - type: string - nullable: true - description: Name of the target account. - balance: - type: number - format: decimal - nullable: true - description: The balance of the account. - sortCode: - type: string - nullable: true - description: The sort code of the account. - accountNumber: - type: string - nullable: true - description: The account number of the account. - bankFeedMappings: - title: Bank feed mappings - type: array - items: - $ref: '#/components/schemas/BankFeedMapping' - additionalProperties: false - examples: - - sourceAccountId: acc-002 - targetAccountId: account-081 - sourceCurrency: USD - status: Success - feedStartDate: '2023-01-09T14:14:14.1057478Z' - sourceAccountName: ACME Bank - sourceAccountNumber: 1234-5678 - sourceBalance: 500 - targetAccountName: ACME Bank - - sourceAccountId: c53fd75a-dddb-4493-839a-5090b008f625 - status: pending - targetAccountOptions: - - name: account-081 - id: 044096a7-1478-4554-8820-f478caad1b00 - balance: 100.99 - sortCode: '602336' - accountNumber: '23203' - sourceAccountName: bank name here - sourceAccountNumber: '5670' - sourceBalance: 1550 - sourceCurrency: GBP - BankingAccount: - title: 'Banking: Bank account' + application/json: + schema: + $ref: '#/components/schemas/CreateAccountResponse' + examples: {} + '400': + $ref: '#/components/responses/BadRequest' + '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: |- + The *Create account* endpoint creates a new [account](https://docs.codat.io/sync-for-expenses-api#/schemas/Account) for a given company's connection. + + [Accounts](https://docs.codat.io/sync-for-expenses-api#/schemas/Account) are the categories a business uses to record accounting transactions. + + **Integration-specific behaviour** + + Required data may vary by integration. To see what data to post, first call [Get create account model](https://docs.codat.io/sync-for-expenses-api#/operations/get-create-chartOfAccounts-model). + operationId: create-account + '/companies/{companyId}/connections/{connectionId}/options/chartOfAccounts': + parameters: + - $ref: '#/components/parameters/companyId' + - $ref: '#/components/parameters/connectionId' + get: + summary: Get create account model + tags: + - Accounts + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/PushOption' + examples: + Exact (Netherlands): + value: + type: Object + displayName: Nominal Account + description: Nominal Accounts are the categories a business uses to record transactions + properties: + nominalCode: + type: String + displayName: Nominal Code + description: The external reference given to each nominal account for a business + required: true + validation: + warnings: [] + information: + - field: NominalCode + details: Must be provided. + name: + type: String + displayName: Name + description: Name of the account + required: true + validation: + warnings: [] + information: + - field: Name + details: Must be provided. + fullyQualifiedCategory: + type: String + displayName: Fully Qualified Category + description: The full category of the account e.g. Liability.Current or Income.Revenue + options: + - value: Asset.Assets.Cash + type: String + displayName: Asset.Assets.Cash + required: false + - value: Asset.Assets.Bank + type: String + displayName: Asset.Assets.Bank + required: false + - value: Asset.Assets.PaymentServices + type: String + displayName: Asset.Assets.PaymentServices + required: false + - value: Asset.Assets.AccountsReceivable + type: String + displayName: Asset.Assets.AccountsReceivable + required: false + - value: Liability.EquityAndLiabilities.AccountsPayable + type: String + displayName: Liability.EquityAndLiabilities.AccountsPayable + required: false + - value: Asset.Assets.VAT + type: String + displayName: Asset.Assets.VAT + required: false + - value: Liability.EquityAndLiabilities.EmployeesPayable + type: String + displayName: Liability.EquityAndLiabilities.EmployeesPayable + required: false + - value: Asset.Assets.PrepaidExpenses + type: String + displayName: Asset.Assets.PrepaidExpenses + required: false + - value: Liability.EquityAndLiabilities.AccruedExpenses + type: String + displayName: Liability.EquityAndLiabilities.AccruedExpenses + required: false + - value: Liability.EquityAndLiabilities.IncomeTaxesPayable + type: String + displayName: Liability.EquityAndLiabilities.IncomeTaxesPayable + required: false + - value: Asset.Assets.FixedAssets + type: String + displayName: Asset.Assets.FixedAssets + required: false + - value: Asset.Assets.OtherAssets + type: String + displayName: Asset.Assets.OtherAssets + required: false + - value: Asset.Assets.AccumulatedDeprecation + type: String + displayName: Asset.Assets.AccumulatedDeprecation + required: false + - value: Asset.Assets.Inventory + type: String + displayName: Asset.Assets.Inventory + required: false + - value: Equity.EquityAndLiabilities.CapitalStock + type: String + displayName: Equity.EquityAndLiabilities.CapitalStock + required: false + - value: Equity.EquityAndLiabilities.RetainedEarnings + type: String + displayName: Equity.EquityAndLiabilities.RetainedEarnings + required: false + - value: Liability.EquityAndLiabilities.LongTermDebt + type: String + displayName: Liability.EquityAndLiabilities.LongTermDebt + required: false + - value: Liability.EquityAndLiabilities.CurrentPortionOfDebt + type: String + displayName: Liability.EquityAndLiabilities.CurrentPortionOfDebt + required: false + - value: Unknown.EquityAndLiabilities.Intercompany + type: String + displayName: Unknown.EquityAndLiabilities.Intercompany + required: false + - value: Unknown.General.General + type: String + displayName: Unknown.General.General + required: false + - value: Income.NetIncome.Revenue + type: String + displayName: Income.NetIncome.Revenue + required: false + - value: Expense.NetIncome.CostOfGoods + type: String + displayName: Expense.NetIncome.CostOfGoods + required: false + - value: Expense.NetIncome.OtherCosts + type: String + displayName: Expense.NetIncome.OtherCosts + required: false + - value: Expense.NetIncome.SalesGeneralAdministrativeExpenses + type: String + displayName: Expense.NetIncome.SalesGeneralAdministrativeExpenses + required: false + - value: Expense.NetIncome.DeprecationCosts + type: String + displayName: Expense.NetIncome.DeprecationCosts + required: false + - value: Expense.NetIncome.ResearchAndDevelopment + type: String + displayName: Expense.NetIncome.ResearchAndDevelopment + required: false + - value: Expense.NetIncome.EmployeeCosts + type: String + displayName: Expense.NetIncome.EmployeeCosts + required: false + - value: Expense.NetIncome.EmploymentCosts + type: String + displayName: Expense.NetIncome.EmploymentCosts + required: false + - value: Expense.ExceptionalIncome.ExceptionalCosts + type: String + displayName: Expense.ExceptionalIncome.ExceptionalCosts + required: false + - value: Income.ExceptionalIncome.ExceptionalIncome + type: String + displayName: Income.ExceptionalIncome.ExceptionalIncome + required: false + - value: Expense.ExceptionalIncome.IncomeTaxes + type: String + displayName: Expense.ExceptionalIncome.IncomeTaxes + required: false + - value: Income.ExceptionalIncome.InterestIncome + type: String + displayName: Income.ExceptionalIncome.InterestIncome + required: false + required: true + validation: + warnings: [] + information: + - field: FullyQualifiedCategory + details: Must be provided. + status: + type: String + displayName: Account Status + description: The status of the account + options: + - value: Active + type: String + displayName: Active + required: false + - value: Pending + type: String + displayName: Pending + required: false + - value: Unknown + type: String + displayName: Unknown + required: false + required: true + validation: + warnings: [] + information: + - field: Status + details: Must be provided. + required: true + Exact (UK): + value: + type: Object + displayName: Nominal Account + description: Nominal Accounts are the categories a business uses to record transactions + properties: + nominalCode: + type: String + displayName: Nominal Code + description: The external reference given to each nominal account for a business + required: true + validation: + warnings: [] + information: + - field: NominalCode + details: Must be provided. + name: + type: String + displayName: Name + description: Name of the account + required: true + validation: + warnings: [] + information: + - field: Name + details: Must be provided. + fullyQualifiedCategory: + type: String + displayName: Fully Qualified Category + description: The full category of the account e.g. Liability.Current or Income.Revenue + options: + - value: Asset.Assets.Cash + type: String + displayName: Asset.Assets.Cash + required: false + - value: Asset.Assets.Bank + type: String + displayName: Asset.Assets.Bank + required: false + - value: Asset.Assets.PaymentServices + type: String + displayName: Asset.Assets.PaymentServices + required: false + - value: Asset.Assets.AccountsReceivable + type: String + displayName: Asset.Assets.AccountsReceivable + required: false + - value: Liability.EquityAndLiabilities.AccountsPayable + type: String + displayName: Liability.EquityAndLiabilities.AccountsPayable + required: false + - value: Asset.Assets.VAT + type: String + displayName: Asset.Assets.VAT + required: false + - value: Liability.EquityAndLiabilities.EmployeesPayable + type: String + displayName: Liability.EquityAndLiabilities.EmployeesPayable + required: false + - value: Asset.Assets.PrepaidExpenses + type: String + displayName: Asset.Assets.PrepaidExpenses + required: false + - value: Liability.EquityAndLiabilities.AccruedExpenses + type: String + displayName: Liability.EquityAndLiabilities.AccruedExpenses + required: false + - value: Liability.EquityAndLiabilities.IncomeTaxesPayable + type: String + displayName: Liability.EquityAndLiabilities.IncomeTaxesPayable + required: false + - value: Asset.Assets.FixedAssets + type: String + displayName: Asset.Assets.FixedAssets + required: false + - value: Asset.Assets.OtherAssets + type: String + displayName: Asset.Assets.OtherAssets + required: false + - value: Asset.Assets.AccumulatedDeprecation + type: String + displayName: Asset.Assets.AccumulatedDeprecation + required: false + - value: Asset.Assets.Inventory + type: String + displayName: Asset.Assets.Inventory + required: false + - value: Equity.EquityAndLiabilities.CapitalStock + type: String + displayName: Equity.EquityAndLiabilities.CapitalStock + required: false + - value: Equity.EquityAndLiabilities.RetainedEarnings + type: String + displayName: Equity.EquityAndLiabilities.RetainedEarnings + required: false + - value: Liability.EquityAndLiabilities.LongTermDebt + type: String + displayName: Liability.EquityAndLiabilities.LongTermDebt + required: false + - value: Liability.EquityAndLiabilities.CurrentPortionOfDebt + type: String + displayName: Liability.EquityAndLiabilities.CurrentPortionOfDebt + required: false + - value: Unknown.EquityAndLiabilities.Intercompany + type: String + displayName: Unknown.EquityAndLiabilities.Intercompany + required: false + - value: Unknown.General.General + type: String + displayName: Unknown.General.General + required: false + - value: Income.NetIncome.Revenue + type: String + displayName: Income.NetIncome.Revenue + required: false + - value: Expense.NetIncome.CostOfGoods + type: String + displayName: Expense.NetIncome.CostOfGoods + required: false + - value: Expense.NetIncome.OtherCosts + type: String + displayName: Expense.NetIncome.OtherCosts + required: false + - value: Expense.NetIncome.SalesGeneralAdministrativeExpenses + type: String + displayName: Expense.NetIncome.SalesGeneralAdministrativeExpenses + required: false + - value: Expense.NetIncome.DeprecationCosts + type: String + displayName: Expense.NetIncome.DeprecationCosts + required: false + - value: Expense.NetIncome.ResearchAndDevelopment + type: String + displayName: Expense.NetIncome.ResearchAndDevelopment + required: false + - value: Expense.NetIncome.EmployeeCosts + type: String + displayName: Expense.NetIncome.EmployeeCosts + required: false + - value: Expense.NetIncome.EmploymentCosts + type: String + displayName: Expense.NetIncome.EmploymentCosts + required: false + - value: Expense.ExceptionalIncome.ExceptionalCosts + type: String + displayName: Expense.ExceptionalIncome.ExceptionalCosts + required: false + - value: Income.ExceptionalIncome.ExceptionalIncome + type: String + displayName: Income.ExceptionalIncome.ExceptionalIncome + required: false + - value: Expense.ExceptionalIncome.IncomeTaxes + type: String + displayName: Expense.ExceptionalIncome.IncomeTaxes + required: false + - value: Income.ExceptionalIncome.InterestIncome + type: String + displayName: Income.ExceptionalIncome.InterestIncome + required: false + required: true + validation: + warnings: [] + information: + - field: FullyQualifiedCategory + details: Must be provided. + status: + type: String + displayName: Account Status + description: The status of the account + options: + - value: Active + type: String + displayName: Active + required: false + - value: Pending + type: String + displayName: Pending + required: false + - value: Unknown + type: String + displayName: Unknown + required: false + required: true + validation: + warnings: [] + information: + - field: Status + details: Must be provided. + required: true + MYOB AccountRight and Essentials: + value: + type: Object + displayName: Nominal Account + description: Nominal Accounts are the categories a business uses to record transactions + properties: + nominalCode: + type: String + displayName: Nominal Code + description: The external reference given to each nominal account for a business + required: true + validation: + warnings: + - field: NominalCode + details: 'If alphanumeric is supported, must be between 1 and 10 characters. Otherwise format is x-xxxx' + information: [] + name: + type: String + displayName: Name + description: Name of the account + required: false + validation: + warnings: + - field: Name + details: Must have a length between 1 and 60 characters + information: [] + description: + type: String + displayName: Description + description: Description of the account + required: false + validation: + warnings: + - field: Description + details: Must have a length between 1 and 255 characters + information: [] + fullyQualifiedCategory: + type: String + displayName: Fully Qualified Category + description: The full category of the account e.g. Liability.Current or Income.Revenue + options: + - value: Asset.Bank + type: String + displayName: Bank + required: false + - value: Asset.AccountReceivable + type: String + displayName: Accounts Receivable + required: false + - value: Asset.OtherCurrentAsset + type: String + displayName: Other Current Asset + required: false + - value: Asset.FixedAsset + type: String + displayName: Fixed Asset + required: false + - value: Asset.OtherAsset + type: String + displayName: Other Asset + required: false + - value: Asset.CashAndBank + type: String + displayName: Cash + required: false + - value: Asset.Property Plant and Equipment + type: String + displayName: Equipment Machinery + required: false + - value: Liability.CreditCard + type: String + displayName: Credit Card + required: false + - value: Liability.AccountsPayable + type: String + displayName: Accounts Payable + required: false + - value: Liability.OtherCurrentLiability + type: String + displayName: Other Current Liability + required: false + - value: Liability.LongTermLiability + type: String + displayName: Long Term Liability + required: false + - value: Liability.OtherLiability + type: String + displayName: Other Liability + required: false + - value: Equity + type: String + displayName: Equity + required: false + - value: Equity.Equity + type: String + displayName: Retained Earnings + required: false + - value: Equity.Equity.RetainedEarnings + type: String + displayName: Retained Earnings + required: false + - value: Equity.Owner's Equity + type: String + displayName: Retained Earnings + required: false + - value: Income + type: String + displayName: Income + required: false + - value: OtherIncome + type: String + displayName: Other Income + required: false + - value: Expense + type: String + displayName: Expense + required: false + - value: Expense.Expense + type: String + displayName: Sales Marketing + required: false + - value: Expense.Expense.Insurance + type: String + displayName: General Administrative + required: false + - value: Expense.Overhead + type: String + displayName: General Administrative + required: false + - value: Expense.Expense.RepairMaintenance + type: String + displayName: Repairs Maintenance + required: false + - value: OtherExpense + type: String + displayName: Other Expense + required: false + - value: CostOfSales + type: String + displayName: Cost of Sales + required: false + - value: Cost Of Goods Sold.Cost of Sales + type: String + displayName: Other + required: false + required: true + status: + type: String + displayName: Account Status + description: The status of the account + options: + - value: Active + type: String + displayName: Active + required: false + - value: Archived + type: String + displayName: Archived + required: false + required: true + required: true + QuickBooks Desktop: + value: + type: Object + displayName: Nominal Account + description: Nominal Accounts are the categories a business uses to record transactions + properties: + nominalCode: + type: String + displayName: Nominal Code + description: The external reference given to each nominal account for a business + required: true + validation: + warnings: + - field: NominalCode + details: Max length of 7 characters. + information: [] + name: + type: String + displayName: Name + description: Name of the account + required: true + validation: + warnings: + - field: Name + details: Max length of 31 characters. + information: [] + description: + type: String + displayName: Description + description: Description of the account + required: false + validation: + warnings: + - field: Description + details: Max length of 200 characters. + information: [] + currency: + type: String + displayName: Currency + description: The currency of the account + required: false + validation: + warnings: + - field: Currency + details: 'The currency must match the base currency of the QuickBooks Desktop company unless the FullyQualifiedCategory is ''Asset.AccountsReceivable'',''Liability.AccountsPayable'' or ''Liability.CreditCard''' + - field: Currency + details: Must be a three letter ISO code that matches an existing active currency in the QuickBooks Desktop company + - field: Currency + details: Can only be set if the Quickbooks Desktop company has Multicurrency enabled. + information: + - field: Currency + details: 'If not set, will default to the base currency of the QuickBooks Desktop company' + fullyQualifiedCategory: + type: String + displayName: Fully Qualified Category + description: The full category of the account e.g. Liability.Current or Income.Revenue + options: + - value: Asset.AccountsReceivable + type: String + displayName: Account Receivable + required: false + - value: Asset.FixedAsset + type: String + displayName: Fixed Asset + required: false + - value: Asset.OtherCurrentAsset + type: String + displayName: Other Current Asset + required: false + - value: Asset.OtherAsset + type: String + displayName: Other Asset + required: false + - value: Income.Income + type: String + displayName: Income + required: false + - value: Income.OtherIncome + type: String + displayName: Other Income + required: false + - value: Liability.AccountsPayable + type: String + displayName: Accounts Payable + required: false + - value: Liability.CreditCard + type: String + displayName: Credit Card + required: false + - value: Liability.LongTermLiability + type: String + displayName: Long Term Liability + required: false + - value: Liability.OtherCurrentLiability + type: String + displayName: Other Current Liability + required: false + - value: Liability.CostOfGoodsSold + type: String + displayName: Cost Of Goods Sold + required: false + - value: Equity.Equity + type: String + displayName: Equity + required: false + - value: Expense.Expense + type: String + displayName: Expense + required: false + - value: Expense.OtherExpense + type: String + displayName: Other Expense + required: false + required: true + currentBalance: + type: Number + displayName: Current Balance + description: The current balance in the account + required: false + required: true + QuickBooks Online Sandbox: + value: + type: Object + displayName: Nominal Account + description: Nominal Accounts are the categories a business uses to record transactions + properties: + nominalCode: + type: String + displayName: Nominal Code + description: The external reference given to each nominal account for a business + required: false + validation: + warnings: [] + information: + - field: NominalCode + details: If included must have a length between 1 and 7 characters + name: + type: String + displayName: Name + description: Name of the account + required: true + validation: + warnings: + - field: Name + details: Must have a length between 1 and 100 characters + information: [] + currency: + type: String + displayName: Currency + description: The currency of the account + required: false + validation: + warnings: [] + information: + - field: Currency + details: When not specified company base currency will be used + fullyQualifiedCategory: + type: String + displayName: Fully Qualified Category + description: The full category of the account e.g. Liability.Current or Income.Revenue + options: + - value: Asset.Bank.CashOnHand + type: String + displayName: Cash On Hand + required: false + - value: Asset.Bank.Checking + type: String + displayName: Checking + required: false + - value: Asset.Bank.MoneyMarket + type: String + displayName: Money Market + required: false + - value: Asset.Bank.RentsHeldInTrust + type: String + displayName: Rents Held In Trust + required: false + - value: Asset.Bank.Savings + type: String + displayName: Savings + required: false + - value: Asset.Bank.TrustAccounts + type: String + displayName: Trust Accounts + required: false + - value: Asset.Bank.CashAndCashEquivalents + type: String + displayName: Cash And Cash Equivalents + required: false + - value: Asset.Bank.OtherEarmarkedBankAccounts + type: String + displayName: Other Earmarked Bank Accounts + required: false + - value: Asset.Other Current Asset.AllowanceForBadDebts + type: String + displayName: Allowance For Bad Debts + required: false + - value: Asset.Other Current Asset.DevelopmentCosts + type: String + displayName: Development Costs + required: false + - value: Asset.Other Current Asset.EmployeeCashAdvances + type: String + displayName: Employee Cash Advances + required: false + - value: Asset.Other Current Asset.OtherCurrentAssets + type: String + displayName: Other Current Assets + required: false + - value: Asset.Other Current Asset.Inventory + type: String + displayName: Inventory + required: false + - value: Asset.Other Current Asset.Investment_MortgageRealEstateLoans + type: String + displayName: Investment Mortgage Real Estate Loans + required: false + - value: Asset.Other Current Asset.Investment_Other + type: String + displayName: Investment Other + required: false + - value: Asset.Other Current Asset.Investment_TaxExemptSecurities + type: String + displayName: Investment Tax Exempt Securities + required: false + - value: Asset.Other Current Asset.Investment_USGovernmentObligations + type: String + displayName: Investment US Government Obligations + required: false + - value: Asset.Other Current Asset.LoansToOfficers + type: String + displayName: Loans To Officers + required: false + - value: Asset.Other Current Asset.LoansToOthers + type: String + displayName: Loans To Others + required: false + - value: Asset.Other Current Asset.LoansToStockholders + type: String + displayName: Loans To Stockholders + required: false + - value: Asset.Other Current Asset.PrepaidExpenses + type: String + displayName: Prepaid Expenses + required: false + - value: Asset.Other Current Asset.Retainage + type: String + displayName: Retainage + required: false + - value: Asset.Other Current Asset.UndepositedFunds + type: String + displayName: Undeposited Funds + required: false + - value: Asset.Other Current Asset.AssetsAvailableForSale + type: String + displayName: Assets Available For Sale + required: false + - value: Asset.Other Current Asset.BalWithGovtAuthorities + type: String + displayName: Balance With Govt Authorities + required: false + - value: Asset.Other Current Asset.CalledUpShareCapitalNotPaid + type: String + displayName: Called Up Share Capital Not Paid + required: false + - value: Asset.Other Current Asset.ExpenditureAuthorisationsAndLettersOfCredit + type: String + displayName: Expenditure Authorisations And Letters Of Credit + required: false + - value: Asset.Other Current Asset.GlobalTaxDeferred + type: String + displayName: Global Tax Deferred + required: false + - value: Asset.Other Current Asset.GlobalTaxRefund + type: String + displayName: Global Tax Refund + required: false + - value: Asset.Other Current Asset.InternalTransfers + type: String + displayName: Internal Transfers + required: false + - value: Asset.Other Current Asset.OtherConsumables + type: String + displayName: Other Consumables + required: false + - value: Asset.Other Current Asset.ProvisionsCurrentAssets + type: String + displayName: Provisions Current Assets + required: false + - value: Asset.Other Current Asset.ShortTermInvestmentsInRelatedParties + type: String + displayName: Short Term Investments In Related Parties + required: false + - value: Asset.Other Current Asset.ShortTermLoansAndAdvancesToRelatedParties + type: String + displayName: Short Term Loans And Advances To Related Parties + required: false + - value: Asset.Other Current Asset.TradeAndOtherReceivables + type: String + displayName: Trade And Other Receivables + required: false + - value: Asset.Fixed Asset.AccumulatedDepletion + type: String + displayName: Accumulated Depletion + required: false + - value: Asset.Fixed Asset.AccumulatedDepreciation + type: String + displayName: Accumulated Depreciation + required: false + - value: Asset.Fixed Asset.DepletableAssets + type: String + displayName: Depletable Assets + required: false + - value: Asset.Fixed Asset.FixedAssetComputers + type: String + displayName: Fixed Asset Computers + required: false + - value: Asset.Fixed Asset.FixedAssetCopiers + type: String + displayName: Fixed Asset Copiers + required: false + - value: Asset.Fixed Asset.FixedAssetFurniture + type: String + displayName: Fixed Asset Furniture + required: false + - value: Asset.Fixed Asset.FixedAssetPhone + type: String + displayName: Fixed Asset Phone + required: false + - value: Asset.Fixed Asset.FixedAssetPhotoVideo + type: String + displayName: Fixed Asset Photo Video + required: false + - value: Asset.Fixed Asset.FixedAssetSoftware + type: String + displayName: Fixed Asset Software + required: false + - value: Asset.Fixed Asset.FixedAssetOtherToolsEquipment + type: String + displayName: Fixed Asset Other Tools Equipment + required: false + - value: Asset.Fixed Asset.FurnitureAndFixtures + type: String + displayName: Furniture And Fixtures + required: false + - value: Asset.Fixed Asset.Land + type: String + displayName: Land + required: false + - value: Asset.Fixed Asset.LeaseholdImprovements + type: String + displayName: Leasehold Improvements + required: false + - value: Asset.Fixed Asset.OtherFixedAssets + type: String + displayName: Other Fixed Assets + required: false + - value: Asset.Fixed Asset.AccumulatedAmortization + type: String + displayName: Accumulated Amortization + required: false + - value: Asset.Fixed Asset.Buildings + type: String + displayName: Buildings + required: false + - value: Asset.Fixed Asset.IntangibleAssets + type: String + displayName: Intangible Assets + required: false + - value: Asset.Fixed Asset.MachineryAndEquipment + type: String + displayName: Machinery And Equipment + required: false + - value: Asset.Fixed Asset.Vehicles + type: String + displayName: Vehicles + required: false + - value: Asset.Fixed Asset.AssetsInCourseOfConstruction + type: String + displayName: Assets In Course Of Construction + required: false + - value: Asset.Fixed Asset.CapitalWip + type: String + displayName: Capital Wip + required: false + - value: Asset.Fixed Asset.CumulativeDepreciationOnIntangibleAssets + type: String + displayName: Cumulative Depreciation On Intangible Assets + required: false + - value: Asset.Fixed Asset.IntangibleAssetsUnderDevelopment + type: String + displayName: Intangible Assets Under Development + required: false + - value: Asset.Fixed Asset.LandAsset + type: String + displayName: Land Asset + required: false + - value: Asset.Fixed Asset.NonCurrentAssets + type: String + displayName: Non Current Assets + required: false + - value: Asset.Fixed Asset.ParticipatingInterests + type: String + displayName: Participating Interests + required: false + - value: Asset.Fixed Asset.ProvisionsFixedAssets + type: String + displayName: Provisions Fixed Assets + required: false + - value: Asset.Other Asset.LeaseBuyout + type: String + displayName: Lease Buyout + required: false + - value: Asset.Other Asset.OtherLongTermAssets + type: String + displayName: Other Long Term Assets + required: false + - value: Asset.Other Asset.SecurityDeposits + type: String + displayName: Security Deposits + required: false + - value: Asset.Other Asset.AccumulatedAmortizationOfOtherAssets + type: String + displayName: Accumulated Amortization Of Other Assets + required: false + - value: Asset.Other Asset.Goodwill + type: String + displayName: Goodwill + required: false + - value: Asset.Other Asset.Licenses + type: String + displayName: Licenses + required: false + - value: Asset.Other Asset.OrganizationalCosts + type: String + displayName: Organizational Costs + required: false + - value: Asset.Other Asset.AssetsHeldForSale + type: String + displayName: Assets Held For Sale + required: false + - value: Asset.Other Asset.AvailableForSaleFinancialAssets + type: String + displayName: Available For Sale Financial Assets + required: false + - value: Asset.Other Asset.DeferredTax + type: String + displayName: Deferred Tax + required: false + - value: Asset.Other Asset.Investments + type: String + displayName: Investments + required: false + - value: Asset.Other Asset.LongTermInvestments + type: String + displayName: Long Term Investments + required: false + - value: Asset.Other Asset.LongTermLoansAndAdvancesToRelatedParties + type: String + displayName: Long Term Loans And Advances To Related Parties + required: false + - value: Asset.Other Asset.OtherIntangibleAssets + type: String + displayName: Other Intangible Assets + required: false + - value: Asset.Other Asset.OtherLongTermInvestments + type: String + displayName: Other Long Term Investments + required: false + - value: Asset.Other Asset.OtherLongTermLoansAndAdvances + type: String + displayName: Other Long Term Loans And Advances + required: false + - value: Asset.Other Asset.PrepaymentsAndAccruedIncome + type: String + displayName: Prepayments And Accrued Income + required: false + - value: Asset.Other Asset.ProvisionsNonCurrentAssets + type: String + displayName: Provisions Non-Current Assets + required: false + - value: Asset.Accounts Receivable.AccountsReceivable + type: String + displayName: Accounts Receivable + required: false + - value: Expense.Expense.AdvertisingPromotional + type: String + displayName: Advertising/Promotional + required: false + - value: Expense.Expense.BadDebts + type: String + displayName: Bad Debts + required: false + - value: Expense.Expense.BankCharges + type: String + displayName: Bank Charges + required: false + - value: Expense.Expense.CharitableContributions + type: String + displayName: Charitable Contributions + required: false + - value: Expense.Expense.CommissionsAndFees + type: String + displayName: Commissions And Fees + required: false + - value: Expense.Expense.Entertainment + type: String + displayName: Entertainment + required: false + - value: Expense.Expense.EntertainmentMeals + type: String + displayName: Entertainment Meals + required: false + - value: Expense.Expense.EquipmentRental + type: String + displayName: Equipment Rental + required: false + - value: Expense.Expense.FinanceCosts + type: String + displayName: Finance Costs + required: false + - value: Expense.Expense.GlobalTaxExpense + type: String + displayName: Global Tax Expense + required: false + - value: Expense.Expense.Insurance + type: String + displayName: Insurance + required: false + - value: Expense.Expense.InterestPaid + type: String + displayName: Interest Paid + required: false + - value: Expense.Expense.LegalProfessionalFees + type: String + displayName: Legal And Professional Fees + required: false + - value: Expense.Expense.OfficeExpenses + type: String + displayName: Office Expenses + required: false + - value: Expense.Expense.OfficeGeneralAdministrativeExpenses + type: String + displayName: Office/General Administrative Expenses + required: false + - value: Expense.Expense.OtherBusinessExpenses + type: String + displayName: Other Business Expenses + required: false + - value: Expense.Expense.OtherMiscellaneousServiceCost + type: String + displayName: Other Miscellaneous Service Cost + required: false + - value: Expense.Expense.PromotionalMeals + type: String + displayName: Promotional Meals + required: false + - value: Expense.Expense.RentOrLeaseOfBuildings + type: String + displayName: Rent Or Lease Of Buildings + required: false + - value: Expense.Expense.RepairMaintenance + type: String + displayName: Repair And Maintenance + required: false + - value: Expense.Expense.ShippingFreightDelivery + type: String + displayName: 'Shipping, Freight And Delivery' + required: false + - value: Expense.Expense.SuppliesMaterials + type: String + displayName: Supplies And Materials + required: false + - value: Expense.Expense.Travel + type: String + displayName: Travel + required: false + - value: Expense.Expense.TravelMeals + type: String + displayName: Travel Meals + required: false + - value: Expense.Expense.Utilities + type: String + displayName: Utilities + required: false + - value: Expense.Expense.Auto + type: String + displayName: Auto + required: false + - value: Expense.Expense.CostOfLabor + type: String + displayName: Cost Of Labor + required: false + - value: Expense.Expense.DuesSubscriptions + type: String + displayName: Dues And Subscriptions + required: false + - value: Expense.Expense.PayrollExpenses + type: String + displayName: Payroll Expenses + required: false + - value: Expense.Expense.TaxesPaid + type: String + displayName: Taxes Paid + required: false + - value: Expense.Expense.UnappliedCashBillPaymentExpense + type: String + displayName: Unapplied Cash Bill Payment Expense + required: false + - value: Expense.Expense.Utilities + type: String + displayName: Utilities + required: false + - value: Expense.Expense.AmortizationExpense + type: String + displayName: Amortization Expense + required: false + - value: Expense.Expense.AppropriationsToDepreciation + type: String + displayName: Appropriations To Depreciation + required: false + - value: Expense.Expense.BorrowingCost + type: String + displayName: Borrowing Cost + required: false + - value: Expense.Expense.CommissionsAndFees + type: String + displayName: Commissions And Fees + required: false + - value: Expense.Expense.DistributionCosts + type: String + displayName: Distribution Costs + required: false + - value: Expense.Expense.ExternalServices + type: String + displayName: External Services + required: false + - value: Expense.Expense.ExtraordinaryCharges + type: String + displayName: Extraordinary Charges + required: false + - value: Expense.Expense.IncomeTaxExpense + type: String + displayName: Income Tax Expense + required: false + - value: Expense.Expense.LossOnDiscontinuedOperationsNetOfTax + type: String + displayName: Loss On Discontinued Operations Net Of Tax + required: false + - value: Expense.Expense.ManagementCompensation + type: String + displayName: Management Compensation + required: false + - value: Expense.Expense.OtherCurrentOperatingCharges + type: String + displayName: Other Current Operating Charges + required: false + - value: Expense.Expense.OtherExternalServices + type: String + displayName: Other External Services + required: false + - value: Expense.Expense.OtherRentalCosts + type: String + displayName: Other Rental Costs + required: false + - value: Expense.Expense.OtherSellingExpenses + type: String + displayName: Other Selling Expenses + required: false + - value: Expense.Expense.ProjectStudiesSurveysAssessments + type: String + displayName: Project Studies Surveys Assessments + required: false + - value: Expense.Expense.PurchasesRebates + type: String + displayName: Purchases Rebates + required: false + - value: Expense.Expense.ShippingAndDeliveryExpense + type: String + displayName: Shipping And Delivery Expense + required: false + - value: Expense.Expense.StaffCosts + type: String + displayName: Staff Costs + required: false + - value: Expense.Expense.Sundry + type: String + displayName: Sundry + required: false + - value: Expense.Expense.TravelExpensesGeneralAndAdminExpenses + type: String + displayName: Travel Expenses General And Admin Expenses + required: false + - value: Expense.Expense.TravelExpensesSellingExpense + type: String + displayName: Travel Expenses Selling Expense + required: false + - value: Expense.Other Expense.Depreciation + type: String + displayName: Depreciation + required: false + - value: Expense.Other Expense.ExchangeGainOrLoss + type: String + displayName: Exchange Gain Or Loss + required: false + - value: Expense.Other Expense.OtherMiscellaneousExpense + type: String + displayName: Other Miscellaneous Expense + required: false + - value: Expense.Other Expense.PenaltiesSettlements + type: String + displayName: Penalties And Settlements + required: false + - value: Expense.Other Expense.Amortization + type: String + displayName: Amortization + required: false + - value: Expense.Other Expense.GasAndFuel + type: String + displayName: Gas And Fuel + required: false + - value: Expense.Other Expense.HomeOffice + type: String + displayName: Home Office + required: false + - value: Expense.Other Expense.HomeOwnerRentalInsurance + type: String + displayName: Home Owner Rental Insurance + required: false + - value: Expense.Other Expense.OtherHomeOfficeExpenses + type: String + displayName: Other Home Office Expenses + required: false + - value: Expense.Other Expense.MortgageInterest + type: String + displayName: Mortgage Interest + required: false + - value: Expense.Other Expense.RentAndLease + type: String + displayName: Rent And Lease + required: false + - value: Expense.Other Expense.RepairsAndMaintenance + type: String + displayName: Repairs And Maintenance + required: false + - value: Expense.Other Expense.ParkingAndTolls + type: String + displayName: Parking And Tolls + required: false + - value: Expense.Other Expense.Vehicle + type: String + displayName: Vehicle + required: false + - value: Expense.Other Expense.VehicleInsurance + type: String + displayName: Vehicle Insurance + required: false + - value: Expense.Other Expense.VehicleLease + type: String + displayName: Vehicle Lease + required: false + - value: Expense.Other Expense.VehicleLoanInterest + type: String + displayName: Vehicle Loan Interest + required: false + - value: Expense.Other Expense.VehicleLoan + type: String + displayName: Vehicle Loan + required: false + - value: Expense.Other Expense.VehicleRegistration + type: String + displayName: Vehicle Registration + required: false + - value: Expense.Other Expense.VehicleRepairs + type: String + displayName: Vehicle Repairs + required: false + - value: Expense.Other Expense.OtherVehicleExpenses + type: String + displayName: Other Vehicle Expenses + required: false + - value: Expense.Other Expense.Utilities + type: String + displayName: Utilities + required: false + - value: Expense.Other Expense.WashAndRoadServices + type: String + displayName: Wash And Road Services + required: false + - value: Expense.Other Expense.DeferredTaxExpense + type: String + displayName: Deferred Tax Expense + required: false + - value: Expense.Other Expense.Depletion + type: String + displayName: Depletion + required: false + - value: Expense.Other Expense.ExceptionalItems + type: String + displayName: Exceptional Items + required: false + - value: Expense.Other Expense.ExtraordinaryItems + type: String + displayName: Extraordinary Items + required: false + - value: Expense.Other Expense.IncomeTaxOtherExpense + type: String + displayName: Income Tax Other Expense + required: false + - value: Expense.Other Expense.MatCredit + type: String + displayName: Mat Credit + required: false + - value: Expense.Other Expense.PriorPeriodItems + type: String + displayName: Prior Period Items + required: false + - value: Expense.Other Expense.TaxRoundoffGainOrLoss + type: String + displayName: Tax Roundoff Gain Or Loss + required: false + - value: Expense.Cost of Goods Sold.EquipmentRentalCos + type: String + displayName: Equipment Rental - COS + required: false + - value: Expense.Cost of Goods Sold.OtherCostsOfServiceCos + type: String + displayName: Other Costs Of Sales - COS + required: false + - value: Expense.Cost of Goods Sold.ShippingFreightDeliveryCos + type: String + displayName: 'Shipping, Freight And Delivery - COS' + required: false + - value: Expense.Cost of Goods Sold.SuppliesMaterialsCogs + type: String + displayName: Supplies And Materials - COS + required: false + - value: Expense.Cost of Goods Sold.CostOfLaborCos + type: String + displayName: Cost Of Labor - COS + required: false + - value: Expense.Cost of Goods Sold.CostOfSales + type: String + displayName: Cost Of Sales + required: false + - value: Expense.Cost of Goods Sold.FreightAndDeliveryCost + type: String + displayName: Freight And Delivery Cost + required: false + - value: Income.Income.NonProfitIncome + type: String + displayName: Non Profit Income + required: false + - value: Income.Income.OtherPrimaryIncome + type: String + displayName: Other Primary Income + required: false + - value: Income.Income.SalesOfProductIncome + type: String + displayName: Sales Of ProductIncome + required: false + - value: Income.Income.ServiceFeeIncome + type: String + displayName: Service Fee Income + required: false + - value: Income.Income.DiscountsRefundsGiven + type: String + displayName: Discounts Refunds Given + required: false + - value: Income.Income.UnappliedCashPaymentIncome + type: String + displayName: Unapplied Cash Payment Income + required: false + - value: Income.Income.CashReceiptIncome + type: String + displayName: Cash Receipt Income + required: false + - value: Income.Income.OperatingGrants + type: String + displayName: Operating Grants + required: false + - value: Income.Income.OtherCurrentOperatingIncome + type: String + displayName: Other Current Operating Income + required: false + - value: Income.Income.OwnWorkCapitalized + type: String + displayName: Own Work Capitalized + required: false + - value: Income.Income.RevenueGeneral + type: String + displayName: Revenue General + required: false + - value: Income.Income.SalesRetail + type: String + displayName: Sales Retail + required: false + - value: Income.Income.SalesWholesale + type: String + displayName: Sales Wholesale + required: false + - value: Income.Income.SavingsByTaxScheme + type: String + displayName: Savings By Tax Scheme + required: false + - value: Income.Other Income.DividendIncome + type: String + displayName: Dividend Income + required: false + - value: Income.Other Income.InterestEarned + type: String + displayName: Interest Earned + required: false + - value: Income.Other Income.OtherInvestmentIncome + type: String + displayName: Other Investment Income + required: false + - value: Income.Other Income.OtherMiscellaneousIncome + type: String + displayName: Other Miscellaneous Income + required: false + - value: Income.Other Income.TaxExemptInterest + type: String + displayName: Tax Exempt Interest + required: false + - value: Income.Other Income.GainLossOnSaleOfFixedAssets + type: String + displayName: Gain Loss On Sale Of Fixed Assets + required: false + - value: Income.Other Income.GainLossOnSaleOfInvestments + type: String + displayName: Gain Loss On Sale Of Investments + required: false + - value: Income.Other Income.LossOnDisposalOfAssets + type: String + displayName: Loss On Disposal Of Assets + required: false + - value: Income.Other Income.OtherOperatingIncome + type: String + displayName: Other Operating Income + required: false + - value: Income.Other Income.UnrealisedLossOnSecuritiesNetOfTax + type: String + displayName: Unrealised Loss On Securities Net Of Tax + required: false + - value: Liability.Accounts Payable.AccountsPayable + type: String + displayName: Accounts Payable + required: false + - value: Liability.Accounts Payable.OutstandingDuesMicroSmallEnterprise + type: String + displayName: Outstanding Dues Micro Small Enterprise + required: false + - value: Liability.Accounts Payable.OutstandingDuesOtherThanMicroSmallEnterprise + type: String + displayName: Outstanding Dues Other Than Micro Small Enterprise + required: false + - value: Liability.Credit Card.CreditCard + type: String + displayName: Credit Card + required: false + - value: Liability.Long Term Liability.NotesPayable + type: String + displayName: Notes Payable + required: false + - value: Liability.Long Term Liability.OtherLongTermLiabilities + type: String + displayName: Other Long Term Liabilities + required: false + - value: Liability.Long Term Liability.ShareholderNotesPayable + type: String + displayName: Shareholder Notes Payable + required: false + - value: Liability.Long Term Liability.AccrualsAndDeferredIncome + type: String + displayName: Accruals And Deferred Income + required: false + - value: Liability.Long Term Liability.AccruedLongLermLiabilities + type: String + displayName: Accrued Long Lerm Liabilities + required: false + - value: Liability.Long Term Liability.AccruedVacationPayable + type: String + displayName: Accrued Vacation Payable + required: false + - value: Liability.Long Term Liability.BankLoans + type: String + displayName: Bank Loans + required: false + - value: Liability.Long Term Liability.DebtsRelatedToParticipatingInterests + type: String + displayName: Debts Related To Participating Interests + required: false + - value: Liability.Long Term Liability.DeferredTaxLiabilities + type: String + displayName: Deferred Tax Liabilities + required: false + - value: Liability.Long Term Liability.GovernmentAndOtherPublicAuthorities + type: String + displayName: Government And Other Public Authorities + required: false + - value: Liability.Long Term Liability.GroupAndAssociates + type: String + displayName: Group And Associates + required: false + - value: Liability.Long Term Liability.LiabilitiesRelatedToAssetsHeldForSale + type: String + displayName: Liabilities Related To Assets Held For Sale + required: false + - value: Liability.Long Term Liability.LongTermBorrowings + type: String + displayName: Long Term Borrowings + required: false + - value: Liability.Long Term Liability.LongTermDebit + type: String + displayName: Long Term Debit + required: false + - value: Liability.Long Term Liability.LongTermEmployeeBenefitObligations + type: String + displayName: Long Term Employee Benefit Obligations + required: false + - value: Liability.Long Term Liability.ObligationsUnderFinanceLeases + type: String + displayName: Obligations Under Finance Leases + required: false + - value: Liability.Long Term Liability.OtherLongTermProvisions + type: String + displayName: Other Long Term Provisions + required: false + - value: Liability.Long Term Liability.ProvisionForLiabilities + type: String + displayName: Provision For Liabilities + required: false + - value: Liability.Long Term Liability.ProvisionsNonCurrentLiabilities + type: String + displayName: Provisions Non Current Liabilities + required: false + - value: Liability.Long Term Liability.StaffAndRelatedLongTermLiabilityAccounts + type: String + displayName: Staff And Related Long Term Liability Accounts + required: false + - value: Liability.Other Current Liability.DirectDepositPayable + type: String + displayName: Direct Deposit Payable + required: false + - value: Liability.Other Current Liability.LineOfCredit + type: String + displayName: Line Of Credit + required: false + - value: Liability.Other Current Liability.LoanPayable + type: String + displayName: Loan Payable + required: false + - value: Liability.Other Current Liability.GlobalTaxPayable + type: String + displayName: Global Tax Payable + required: false + - value: Liability.Other Current Liability.GlobalTaxSuspense + type: String + displayName: Global Tax Suspense + required: false + - value: Liability.Other Current Liability.OtherCurrentLiabilities + type: String + displayName: Other Current Liabilities + required: false + - value: Liability.Other Current Liability.PayrollClearing + type: String + displayName: Payroll Clearing + required: false + - value: Liability.Other Current Liability.PayrollTaxPayable + type: String + displayName: Payroll Tax Payable + required: false + - value: Liability.Other Current Liability.PrepaidExpensesPayable + type: String + displayName: Prepaid Expenses Payable + required: false + - value: Liability.Other Current Liability.RentsInTrustLiability + type: String + displayName: Rents In Trust Liability + required: false + - value: Liability.Other Current Liability.TrustAccountsLiabilities + type: String + displayName: Trust Accounts Liabilities + required: false + - value: Liability.Other Current Liability.FederalIncomeTaxPayable + type: String + displayName: Federal Income Tax Payable + required: false + - value: Liability.Other Current Liability.InsurancePayable + type: String + displayName: Insurance Payable + required: false + - value: Liability.Other Current Liability.SalesTaxPayable + type: String + displayName: Sales Tax Payable + required: false + - value: Liability.Other Current Liability.StateLocalIncomeTaxPayable + type: String + displayName: State Local Income Tax Payable + required: false + - value: Liability.Other Current Liability.AccruedLiabilities + type: String + displayName: Accrued Liabilities + required: false + - value: Liability.Other Current Liability.CurrentLiabilities + type: String + displayName: Current Liabilities + required: false + - value: Liability.Other Current Liability.CurrentPortionEmployeeBenefitsObligations + type: String + displayName: Current Portion EmployeeBenefits Obligations + required: false + - value: Liability.Other Current Liability.CurrentPortionOfObligationsUnderFinanceLeases + type: String + displayName: Current Portion Of Obligations Under Finance Leases + required: false + - value: Liability.Other Current Liability.CurrentTaxLiability + type: String + displayName: Current Tax Liability + required: false + - value: Liability.Other Current Liability.DividendsPayable + type: String + displayName: Dividends Payable + required: false + - value: Liability.Other Current Liability.DutiesAndTaxes + type: String + displayName: Duties And Taxes + required: false + - value: Liability.Other Current Liability.InterestPayables + type: String + displayName: Interest Payables + required: false + - value: Liability.Other Current Liability.ProvisionForWarrantyObligations + type: String + displayName: Provision For Warranty Obligations + required: false + - value: Liability.Other Current Liability.ProvisionsCurrentLiabilities + type: String + displayName: Provisions Current Liabilities + required: false + - value: Liability.Other Current Liability.ShortTermBorrowings + type: String + displayName: Short Term Borrowings + required: false + - value: Liability.Other Current Liability.SocialSecurityAgencies + type: String + displayName: Social Security Agencies + required: false + - value: Liability.Other Current Liability.StaffAndRelatedLiabilityAccounts + type: String + displayName: Staff And Related Liability Accounts + required: false + - value: Liability.Other Current Liability.SundryDebtorsAndCreditors + type: String + displayName: Sundry Debtors And Creditors + required: false + - value: Liability.Other Current Liability.TradeAndOtherPayables + type: String + displayName: Trade And Other Payables + required: false + - value: Equity.Equity.OpeningBalanceEquity + type: String + displayName: Opening Balance Equity + required: false + - value: Equity.Equity.PartnersEquity + type: String + displayName: Partners Equity + required: false + - value: Equity.Equity.RetainedEarnings + type: String + displayName: Retained Earnings + required: false + - value: Equity.Equity.AccumulatedAdjustment + type: String + displayName: Accumulated Adjustment + required: false + - value: Equity.Equity.OwnersEquity + type: String + displayName: Owners Equity + required: false + - value: Equity.Equity.PaidInCapitalOrSurplus + type: String + displayName: Paid In Capital Or Surplus + required: false + - value: Equity.Equity.PartnerContributions + type: String + displayName: Partner Contributions + required: false + - value: Equity.Equity.PartnerDistributions + type: String + displayName: Partner Distributions + required: false + - value: Equity.Equity.PreferredStock + type: String + displayName: Preferred Stock + required: false + - value: Equity.Equity.CommonStock + type: String + displayName: Common Stock + required: false + - value: Equity.Equity.TreasuryStock + type: String + displayName: Treasury Stock + required: false + - value: Equity.Equity.EstimatedTaxes + type: String + displayName: Estimated Taxes + required: false + - value: Equity.Equity.Healthcare + type: String + displayName: Healthcare + required: false + - value: Equity.Equity.PersonalIncome + type: String + displayName: Personal Income + required: false + - value: Equity.Equity.PersonalExpense + type: String + displayName: Personal Expense + required: false + - value: Equity.Equity.AccumulatedOtherComprehensiveIncome + type: String + displayName: Accumulated Other Comprehensive Income + required: false + - value: Equity.Equity.CalledUpShareCapital + type: String + displayName: Called Up Share Capital + required: false + - value: Equity.Equity.CapitalReserves + type: String + displayName: Capital Reserves + required: false + - value: Equity.Equity.DividendDisbursed + type: String + displayName: Dividend Disbursed + required: false + - value: Equity.Equity.EquityInEarningsOfSubsiduaries + type: String + displayName: Equity In Earnings Of Subsiduaries + required: false + - value: Equity.Equity.InvestmentGrants + type: String + displayName: Investment Grants + required: false + - value: Equity.Equity.MoneyReceivedAgainstShareWarrants + type: String + displayName: Money Received Against Share Warrants + required: false + - value: Equity.Equity.OtherFreeReserves + type: String + displayName: Other Free Reserves + required: false + - value: Equity.Equity.ShareApplicationMoneyPendingAllotment + type: String + displayName: Share Application Money Pending Allotment + required: false + - value: Equity.Equity.ShareCapital + type: String + displayName: Share Capital + required: false + - value: Equity.Equity.Funds + type: String + displayName: Funds + required: false + required: true + required: true + QuickBooks Online: + value: + type: Object + displayName: Nominal Account + description: Nominal Accounts are the categories a business uses to record transactions + properties: + nominalCode: + type: String + displayName: Nominal Code + description: The external reference given to each nominal account for a business + required: false + validation: + warnings: [] + information: + - field: NominalCode + details: If included must have a length between 1 and 7 characters + name: + type: String + displayName: Name + description: Name of the account + required: true + validation: + warnings: + - field: Name + details: Must have a length between 1 and 100 characters + information: [] + currency: + type: String + displayName: Currency + description: The currency of the account + required: false + validation: + warnings: [] + information: + - field: Currency + details: When not specified company base currency will be used + fullyQualifiedCategory: + type: String + displayName: Fully Qualified Category + description: The full category of the account e.g. Liability.Current or Income.Revenue + options: + - value: Asset.Bank.CashOnHand + type: String + displayName: Cash On Hand + required: false + - value: Asset.Bank.Checking + type: String + displayName: Checking + required: false + - value: Asset.Bank.MoneyMarket + type: String + displayName: Money Market + required: false + - value: Asset.Bank.RentsHeldInTrust + type: String + displayName: Rents Held In Trust + required: false + - value: Asset.Bank.Savings + type: String + displayName: Savings + required: false + - value: Asset.Bank.TrustAccounts + type: String + displayName: Trust Accounts + required: false + - value: Asset.Bank.CashAndCashEquivalents + type: String + displayName: Cash And Cash Equivalents + required: false + - value: Asset.Bank.OtherEarmarkedBankAccounts + type: String + displayName: Other Earmarked Bank Accounts + required: false + - value: Asset.Other Current Asset.AllowanceForBadDebts + type: String + displayName: Allowance For Bad Debts + required: false + - value: Asset.Other Current Asset.DevelopmentCosts + type: String + displayName: Development Costs + required: false + - value: Asset.Other Current Asset.EmployeeCashAdvances + type: String + displayName: Employee Cash Advances + required: false + - value: Asset.Other Current Asset.OtherCurrentAssets + type: String + displayName: Other Current Assets + required: false + - value: Asset.Other Current Asset.Inventory + type: String + displayName: Inventory + required: false + - value: Asset.Other Current Asset.Investment_MortgageRealEstateLoans + type: String + displayName: Investment Mortgage Real Estate Loans + required: false + - value: Asset.Other Current Asset.Investment_Other + type: String + displayName: Investment Other + required: false + - value: Asset.Other Current Asset.Investment_TaxExemptSecurities + type: String + displayName: Investment Tax Exempt Securities + required: false + - value: Asset.Other Current Asset.Investment_USGovernmentObligations + type: String + displayName: Investment US Government Obligations + required: false + - value: Asset.Other Current Asset.LoansToOfficers + type: String + displayName: Loans To Officers + required: false + - value: Asset.Other Current Asset.LoansToOthers + type: String + displayName: Loans To Others + required: false + - value: Asset.Other Current Asset.LoansToStockholders + type: String + displayName: Loans To Stockholders + required: false + - value: Asset.Other Current Asset.PrepaidExpenses + type: String + displayName: Prepaid Expenses + required: false + - value: Asset.Other Current Asset.Retainage + type: String + displayName: Retainage + required: false + - value: Asset.Other Current Asset.UndepositedFunds + type: String + displayName: Undeposited Funds + required: false + - value: Asset.Other Current Asset.AssetsAvailableForSale + type: String + displayName: Assets Available For Sale + required: false + - value: Asset.Other Current Asset.BalWithGovtAuthorities + type: String + displayName: Balance With Govt Authorities + required: false + - value: Asset.Other Current Asset.CalledUpShareCapitalNotPaid + type: String + displayName: Called Up Share Capital Not Paid + required: false + - value: Asset.Other Current Asset.ExpenditureAuthorisationsAndLettersOfCredit + type: String + displayName: Expenditure Authorisations And Letters Of Credit + required: false + - value: Asset.Other Current Asset.GlobalTaxDeferred + type: String + displayName: Global Tax Deferred + required: false + - value: Asset.Other Current Asset.GlobalTaxRefund + type: String + displayName: Global Tax Refund + required: false + - value: Asset.Other Current Asset.InternalTransfers + type: String + displayName: Internal Transfers + required: false + - value: Asset.Other Current Asset.OtherConsumables + type: String + displayName: Other Consumables + required: false + - value: Asset.Other Current Asset.ProvisionsCurrentAssets + type: String + displayName: Provisions Current Assets + required: false + - value: Asset.Other Current Asset.ShortTermInvestmentsInRelatedParties + type: String + displayName: Short Term Investments In Related Parties + required: false + - value: Asset.Other Current Asset.ShortTermLoansAndAdvancesToRelatedParties + type: String + displayName: Short Term Loans And Advances To Related Parties + required: false + - value: Asset.Other Current Asset.TradeAndOtherReceivables + type: String + displayName: Trade And Other Receivables + required: false + - value: Asset.Fixed Asset.AccumulatedDepletion + type: String + displayName: Accumulated Depletion + required: false + - value: Asset.Fixed Asset.AccumulatedDepreciation + type: String + displayName: Accumulated Depreciation + required: false + - value: Asset.Fixed Asset.DepletableAssets + type: String + displayName: Depletable Assets + required: false + - value: Asset.Fixed Asset.FixedAssetComputers + type: String + displayName: Fixed Asset Computers + required: false + - value: Asset.Fixed Asset.FixedAssetCopiers + type: String + displayName: Fixed Asset Copiers + required: false + - value: Asset.Fixed Asset.FixedAssetFurniture + type: String + displayName: Fixed Asset Furniture + required: false + - value: Asset.Fixed Asset.FixedAssetPhone + type: String + displayName: Fixed Asset Phone + required: false + - value: Asset.Fixed Asset.FixedAssetPhotoVideo + type: String + displayName: Fixed Asset Photo Video + required: false + - value: Asset.Fixed Asset.FixedAssetSoftware + type: String + displayName: Fixed Asset Software + required: false + - value: Asset.Fixed Asset.FixedAssetOtherToolsEquipment + type: String + displayName: Fixed Asset Other Tools Equipment + required: false + - value: Asset.Fixed Asset.FurnitureAndFixtures + type: String + displayName: Furniture And Fixtures + required: false + - value: Asset.Fixed Asset.Land + type: String + displayName: Land + required: false + - value: Asset.Fixed Asset.LeaseholdImprovements + type: String + displayName: Leasehold Improvements + required: false + - value: Asset.Fixed Asset.OtherFixedAssets + type: String + displayName: Other Fixed Assets + required: false + - value: Asset.Fixed Asset.AccumulatedAmortization + type: String + displayName: Accumulated Amortization + required: false + - value: Asset.Fixed Asset.Buildings + type: String + displayName: Buildings + required: false + - value: Asset.Fixed Asset.IntangibleAssets + type: String + displayName: Intangible Assets + required: false + - value: Asset.Fixed Asset.MachineryAndEquipment + type: String + displayName: Machinery And Equipment + required: false + - value: Asset.Fixed Asset.Vehicles + type: String + displayName: Vehicles + required: false + - value: Asset.Fixed Asset.AssetsInCourseOfConstruction + type: String + displayName: Assets In Course Of Construction + required: false + - value: Asset.Fixed Asset.CapitalWip + type: String + displayName: Capital Wip + required: false + - value: Asset.Fixed Asset.CumulativeDepreciationOnIntangibleAssets + type: String + displayName: Cumulative Depreciation On Intangible Assets + required: false + - value: Asset.Fixed Asset.IntangibleAssetsUnderDevelopment + type: String + displayName: Intangible Assets Under Development + required: false + - value: Asset.Fixed Asset.LandAsset + type: String + displayName: Land Asset + required: false + - value: Asset.Fixed Asset.NonCurrentAssets + type: String + displayName: Non Current Assets + required: false + - value: Asset.Fixed Asset.ParticipatingInterests + type: String + displayName: Participating Interests + required: false + - value: Asset.Fixed Asset.ProvisionsFixedAssets + type: String + displayName: Provisions Fixed Assets + required: false + - value: Asset.Other Asset.LeaseBuyout + type: String + displayName: Lease Buyout + required: false + - value: Asset.Other Asset.OtherLongTermAssets + type: String + displayName: Other Long Term Assets + required: false + - value: Asset.Other Asset.SecurityDeposits + type: String + displayName: Security Deposits + required: false + - value: Asset.Other Asset.AccumulatedAmortizationOfOtherAssets + type: String + displayName: Accumulated Amortization Of Other Assets + required: false + - value: Asset.Other Asset.Goodwill + type: String + displayName: Goodwill + required: false + - value: Asset.Other Asset.Licenses + type: String + displayName: Licenses + required: false + - value: Asset.Other Asset.OrganizationalCosts + type: String + displayName: Organizational Costs + required: false + - value: Asset.Other Asset.AssetsHeldForSale + type: String + displayName: Assets Held For Sale + required: false + - value: Asset.Other Asset.AvailableForSaleFinancialAssets + type: String + displayName: Available For Sale Financial Assets + required: false + - value: Asset.Other Asset.DeferredTax + type: String + displayName: Deferred Tax + required: false + - value: Asset.Other Asset.Investments + type: String + displayName: Investments + required: false + - value: Asset.Other Asset.LongTermInvestments + type: String + displayName: Long Term Investments + required: false + - value: Asset.Other Asset.LongTermLoansAndAdvancesToRelatedParties + type: String + displayName: Long Term Loans And Advances To Related Parties + required: false + - value: Asset.Other Asset.OtherIntangibleAssets + type: String + displayName: Other Intangible Assets + required: false + - value: Asset.Other Asset.OtherLongTermInvestments + type: String + displayName: Other Long Term Investments + required: false + - value: Asset.Other Asset.OtherLongTermLoansAndAdvances + type: String + displayName: Other Long Term Loans And Advances + required: false + - value: Asset.Other Asset.PrepaymentsAndAccruedIncome + type: String + displayName: Prepayments And Accrued Income + required: false + - value: Asset.Other Asset.ProvisionsNonCurrentAssets + type: String + displayName: Provisions Non-Current Assets + required: false + - value: Asset.Accounts Receivable.AccountsReceivable + type: String + displayName: Accounts Receivable + required: false + - value: Expense.Expense.AdvertisingPromotional + type: String + displayName: Advertising/Promotional + required: false + - value: Expense.Expense.BadDebts + type: String + displayName: Bad Debts + required: false + - value: Expense.Expense.BankCharges + type: String + displayName: Bank Charges + required: false + - value: Expense.Expense.CharitableContributions + type: String + displayName: Charitable Contributions + required: false + - value: Expense.Expense.CommissionsAndFees + type: String + displayName: Commissions And Fees + required: false + - value: Expense.Expense.Entertainment + type: String + displayName: Entertainment + required: false + - value: Expense.Expense.EntertainmentMeals + type: String + displayName: Entertainment Meals + required: false + - value: Expense.Expense.EquipmentRental + type: String + displayName: Equipment Rental + required: false + - value: Expense.Expense.FinanceCosts + type: String + displayName: Finance Costs + required: false + - value: Expense.Expense.GlobalTaxExpense + type: String + displayName: Global Tax Expense + required: false + - value: Expense.Expense.Insurance + type: String + displayName: Insurance + required: false + - value: Expense.Expense.InterestPaid + type: String + displayName: Interest Paid + required: false + - value: Expense.Expense.LegalProfessionalFees + type: String + displayName: Legal And Professional Fees + required: false + - value: Expense.Expense.OfficeExpenses + type: String + displayName: Office Expenses + required: false + - value: Expense.Expense.OfficeGeneralAdministrativeExpenses + type: String + displayName: Office/General Administrative Expenses + required: false + - value: Expense.Expense.OtherBusinessExpenses + type: String + displayName: Other Business Expenses + required: false + - value: Expense.Expense.OtherMiscellaneousServiceCost + type: String + displayName: Other Miscellaneous Service Cost + required: false + - value: Expense.Expense.PromotionalMeals + type: String + displayName: Promotional Meals + required: false + - value: Expense.Expense.RentOrLeaseOfBuildings + type: String + displayName: Rent Or Lease Of Buildings + required: false + - value: Expense.Expense.RepairMaintenance + type: String + displayName: Repair And Maintenance + required: false + - value: Expense.Expense.ShippingFreightDelivery + type: String + displayName: 'Shipping, Freight And Delivery' + required: false + - value: Expense.Expense.SuppliesMaterials + type: String + displayName: Supplies And Materials + required: false + - value: Expense.Expense.Travel + type: String + displayName: Travel + required: false + - value: Expense.Expense.TravelMeals + type: String + displayName: Travel Meals + required: false + - value: Expense.Expense.Utilities + type: String + displayName: Utilities + required: false + - value: Expense.Expense.Auto + type: String + displayName: Auto + required: false + - value: Expense.Expense.CostOfLabor + type: String + displayName: Cost Of Labor + required: false + - value: Expense.Expense.DuesSubscriptions + type: String + displayName: Dues And Subscriptions + required: false + - value: Expense.Expense.PayrollExpenses + type: String + displayName: Payroll Expenses + required: false + - value: Expense.Expense.TaxesPaid + type: String + displayName: Taxes Paid + required: false + - value: Expense.Expense.UnappliedCashBillPaymentExpense + type: String + displayName: Unapplied Cash Bill Payment Expense + required: false + - value: Expense.Expense.Utilities + type: String + displayName: Utilities + required: false + - value: Expense.Expense.AmortizationExpense + type: String + displayName: Amortization Expense + required: false + - value: Expense.Expense.AppropriationsToDepreciation + type: String + displayName: Appropriations To Depreciation + required: false + - value: Expense.Expense.BorrowingCost + type: String + displayName: Borrowing Cost + required: false + - value: Expense.Expense.CommissionsAndFees + type: String + displayName: Commissions And Fees + required: false + - value: Expense.Expense.DistributionCosts + type: String + displayName: Distribution Costs + required: false + - value: Expense.Expense.ExternalServices + type: String + displayName: External Services + required: false + - value: Expense.Expense.ExtraordinaryCharges + type: String + displayName: Extraordinary Charges + required: false + - value: Expense.Expense.IncomeTaxExpense + type: String + displayName: Income Tax Expense + required: false + - value: Expense.Expense.LossOnDiscontinuedOperationsNetOfTax + type: String + displayName: Loss On Discontinued Operations Net Of Tax + required: false + - value: Expense.Expense.ManagementCompensation + type: String + displayName: Management Compensation + required: false + - value: Expense.Expense.OtherCurrentOperatingCharges + type: String + displayName: Other Current Operating Charges + required: false + - value: Expense.Expense.OtherExternalServices + type: String + displayName: Other External Services + required: false + - value: Expense.Expense.OtherRentalCosts + type: String + displayName: Other Rental Costs + required: false + - value: Expense.Expense.OtherSellingExpenses + type: String + displayName: Other Selling Expenses + required: false + - value: Expense.Expense.ProjectStudiesSurveysAssessments + type: String + displayName: Project Studies Surveys Assessments + required: false + - value: Expense.Expense.PurchasesRebates + type: String + displayName: Purchases Rebates + required: false + - value: Expense.Expense.ShippingAndDeliveryExpense + type: String + displayName: Shipping And Delivery Expense + required: false + - value: Expense.Expense.StaffCosts + type: String + displayName: Staff Costs + required: false + - value: Expense.Expense.Sundry + type: String + displayName: Sundry + required: false + - value: Expense.Expense.TravelExpensesGeneralAndAdminExpenses + type: String + displayName: Travel Expenses General And Admin Expenses + required: false + - value: Expense.Expense.TravelExpensesSellingExpense + type: String + displayName: Travel Expenses Selling Expense + required: false + - value: Expense.Other Expense.Depreciation + type: String + displayName: Depreciation + required: false + - value: Expense.Other Expense.ExchangeGainOrLoss + type: String + displayName: Exchange Gain Or Loss + required: false + - value: Expense.Other Expense.OtherMiscellaneousExpense + type: String + displayName: Other Miscellaneous Expense + required: false + - value: Expense.Other Expense.PenaltiesSettlements + type: String + displayName: Penalties And Settlements + required: false + - value: Expense.Other Expense.Amortization + type: String + displayName: Amortization + required: false + - value: Expense.Other Expense.GasAndFuel + type: String + displayName: Gas And Fuel + required: false + - value: Expense.Other Expense.HomeOffice + type: String + displayName: Home Office + required: false + - value: Expense.Other Expense.HomeOwnerRentalInsurance + type: String + displayName: Home Owner Rental Insurance + required: false + - value: Expense.Other Expense.OtherHomeOfficeExpenses + type: String + displayName: Other Home Office Expenses + required: false + - value: Expense.Other Expense.MortgageInterest + type: String + displayName: Mortgage Interest + required: false + - value: Expense.Other Expense.RentAndLease + type: String + displayName: Rent And Lease + required: false + - value: Expense.Other Expense.RepairsAndMaintenance + type: String + displayName: Repairs And Maintenance + required: false + - value: Expense.Other Expense.ParkingAndTolls + type: String + displayName: Parking And Tolls + required: false + - value: Expense.Other Expense.Vehicle + type: String + displayName: Vehicle + required: false + - value: Expense.Other Expense.VehicleInsurance + type: String + displayName: Vehicle Insurance + required: false + - value: Expense.Other Expense.VehicleLease + type: String + displayName: Vehicle Lease + required: false + - value: Expense.Other Expense.VehicleLoanInterest + type: String + displayName: Vehicle Loan Interest + required: false + - value: Expense.Other Expense.VehicleLoan + type: String + displayName: Vehicle Loan + required: false + - value: Expense.Other Expense.VehicleRegistration + type: String + displayName: Vehicle Registration + required: false + - value: Expense.Other Expense.VehicleRepairs + type: String + displayName: Vehicle Repairs + required: false + - value: Expense.Other Expense.OtherVehicleExpenses + type: String + displayName: Other Vehicle Expenses + required: false + - value: Expense.Other Expense.Utilities + type: String + displayName: Utilities + required: false + - value: Expense.Other Expense.WashAndRoadServices + type: String + displayName: Wash And Road Services + required: false + - value: Expense.Other Expense.DeferredTaxExpense + type: String + displayName: Deferred Tax Expense + required: false + - value: Expense.Other Expense.Depletion + type: String + displayName: Depletion + required: false + - value: Expense.Other Expense.ExceptionalItems + type: String + displayName: Exceptional Items + required: false + - value: Expense.Other Expense.ExtraordinaryItems + type: String + displayName: Extraordinary Items + required: false + - value: Expense.Other Expense.IncomeTaxOtherExpense + type: String + displayName: Income Tax Other Expense + required: false + - value: Expense.Other Expense.MatCredit + type: String + displayName: Mat Credit + required: false + - value: Expense.Other Expense.PriorPeriodItems + type: String + displayName: Prior Period Items + required: false + - value: Expense.Other Expense.TaxRoundoffGainOrLoss + type: String + displayName: Tax Roundoff Gain Or Loss + required: false + - value: Expense.Cost of Goods Sold.EquipmentRentalCos + type: String + displayName: Equipment Rental - COS + required: false + - value: Expense.Cost of Goods Sold.OtherCostsOfServiceCos + type: String + displayName: Other Costs Of Sales - COS + required: false + - value: Expense.Cost of Goods Sold.ShippingFreightDeliveryCos + type: String + displayName: 'Shipping, Freight And Delivery - COS' + required: false + - value: Expense.Cost of Goods Sold.SuppliesMaterialsCogs + type: String + displayName: Supplies And Materials - COS + required: false + - value: Expense.Cost of Goods Sold.CostOfLaborCos + type: String + displayName: Cost Of Labor - COS + required: false + - value: Expense.Cost of Goods Sold.CostOfSales + type: String + displayName: Cost Of Sales + required: false + - value: Expense.Cost of Goods Sold.FreightAndDeliveryCost + type: String + displayName: Freight And Delivery Cost + required: false + - value: Income.Income.NonProfitIncome + type: String + displayName: Non Profit Income + required: false + - value: Income.Income.OtherPrimaryIncome + type: String + displayName: Other Primary Income + required: false + - value: Income.Income.SalesOfProductIncome + type: String + displayName: Sales Of ProductIncome + required: false + - value: Income.Income.ServiceFeeIncome + type: String + displayName: Service Fee Income + required: false + - value: Income.Income.DiscountsRefundsGiven + type: String + displayName: Discounts Refunds Given + required: false + - value: Income.Income.UnappliedCashPaymentIncome + type: String + displayName: Unapplied Cash Payment Income + required: false + - value: Income.Income.CashReceiptIncome + type: String + displayName: Cash Receipt Income + required: false + - value: Income.Income.OperatingGrants + type: String + displayName: Operating Grants + required: false + - value: Income.Income.OtherCurrentOperatingIncome + type: String + displayName: Other Current Operating Income + required: false + - value: Income.Income.OwnWorkCapitalized + type: String + displayName: Own Work Capitalized + required: false + - value: Income.Income.RevenueGeneral + type: String + displayName: Revenue General + required: false + - value: Income.Income.SalesRetail + type: String + displayName: Sales Retail + required: false + - value: Income.Income.SalesWholesale + type: String + displayName: Sales Wholesale + required: false + - value: Income.Income.SavingsByTaxScheme + type: String + displayName: Savings By Tax Scheme + required: false + - value: Income.Other Income.DividendIncome + type: String + displayName: Dividend Income + required: false + - value: Income.Other Income.InterestEarned + type: String + displayName: Interest Earned + required: false + - value: Income.Other Income.OtherInvestmentIncome + type: String + displayName: Other Investment Income + required: false + - value: Income.Other Income.OtherMiscellaneousIncome + type: String + displayName: Other Miscellaneous Income + required: false + - value: Income.Other Income.TaxExemptInterest + type: String + displayName: Tax Exempt Interest + required: false + - value: Income.Other Income.GainLossOnSaleOfFixedAssets + type: String + displayName: Gain Loss On Sale Of Fixed Assets + required: false + - value: Income.Other Income.GainLossOnSaleOfInvestments + type: String + displayName: Gain Loss On Sale Of Investments + required: false + - value: Income.Other Income.LossOnDisposalOfAssets + type: String + displayName: Loss On Disposal Of Assets + required: false + - value: Income.Other Income.OtherOperatingIncome + type: String + displayName: Other Operating Income + required: false + - value: Income.Other Income.UnrealisedLossOnSecuritiesNetOfTax + type: String + displayName: Unrealised Loss On Securities Net Of Tax + required: false + - value: Liability.Accounts Payable.AccountsPayable + type: String + displayName: Accounts Payable + required: false + - value: Liability.Accounts Payable.OutstandingDuesMicroSmallEnterprise + type: String + displayName: Outstanding Dues Micro Small Enterprise + required: false + - value: Liability.Accounts Payable.OutstandingDuesOtherThanMicroSmallEnterprise + type: String + displayName: Outstanding Dues Other Than Micro Small Enterprise + required: false + - value: Liability.Credit Card.CreditCard + type: String + displayName: Credit Card + required: false + - value: Liability.Long Term Liability.NotesPayable + type: String + displayName: Notes Payable + required: false + - value: Liability.Long Term Liability.OtherLongTermLiabilities + type: String + displayName: Other Long Term Liabilities + required: false + - value: Liability.Long Term Liability.ShareholderNotesPayable + type: String + displayName: Shareholder Notes Payable + required: false + - value: Liability.Long Term Liability.AccrualsAndDeferredIncome + type: String + displayName: Accruals And Deferred Income + required: false + - value: Liability.Long Term Liability.AccruedLongLermLiabilities + type: String + displayName: Accrued Long Lerm Liabilities + required: false + - value: Liability.Long Term Liability.AccruedVacationPayable + type: String + displayName: Accrued Vacation Payable + required: false + - value: Liability.Long Term Liability.BankLoans + type: String + displayName: Bank Loans + required: false + - value: Liability.Long Term Liability.DebtsRelatedToParticipatingInterests + type: String + displayName: Debts Related To Participating Interests + required: false + - value: Liability.Long Term Liability.DeferredTaxLiabilities + type: String + displayName: Deferred Tax Liabilities + required: false + - value: Liability.Long Term Liability.GovernmentAndOtherPublicAuthorities + type: String + displayName: Government And Other Public Authorities + required: false + - value: Liability.Long Term Liability.GroupAndAssociates + type: String + displayName: Group And Associates + required: false + - value: Liability.Long Term Liability.LiabilitiesRelatedToAssetsHeldForSale + type: String + displayName: Liabilities Related To Assets Held For Sale + required: false + - value: Liability.Long Term Liability.LongTermBorrowings + type: String + displayName: Long Term Borrowings + required: false + - value: Liability.Long Term Liability.LongTermDebit + type: String + displayName: Long Term Debit + required: false + - value: Liability.Long Term Liability.LongTermEmployeeBenefitObligations + type: String + displayName: Long Term Employee Benefit Obligations + required: false + - value: Liability.Long Term Liability.ObligationsUnderFinanceLeases + type: String + displayName: Obligations Under Finance Leases + required: false + - value: Liability.Long Term Liability.OtherLongTermProvisions + type: String + displayName: Other Long Term Provisions + required: false + - value: Liability.Long Term Liability.ProvisionForLiabilities + type: String + displayName: Provision For Liabilities + required: false + - value: Liability.Long Term Liability.ProvisionsNonCurrentLiabilities + type: String + displayName: Provisions Non Current Liabilities + required: false + - value: Liability.Long Term Liability.StaffAndRelatedLongTermLiabilityAccounts + type: String + displayName: Staff And Related Long Term Liability Accounts + required: false + - value: Liability.Other Current Liability.DirectDepositPayable + type: String + displayName: Direct Deposit Payable + required: false + - value: Liability.Other Current Liability.LineOfCredit + type: String + displayName: Line Of Credit + required: false + - value: Liability.Other Current Liability.LoanPayable + type: String + displayName: Loan Payable + required: false + - value: Liability.Other Current Liability.GlobalTaxPayable + type: String + displayName: Global Tax Payable + required: false + - value: Liability.Other Current Liability.GlobalTaxSuspense + type: String + displayName: Global Tax Suspense + required: false + - value: Liability.Other Current Liability.OtherCurrentLiabilities + type: String + displayName: Other Current Liabilities + required: false + - value: Liability.Other Current Liability.PayrollClearing + type: String + displayName: Payroll Clearing + required: false + - value: Liability.Other Current Liability.PayrollTaxPayable + type: String + displayName: Payroll Tax Payable + required: false + - value: Liability.Other Current Liability.PrepaidExpensesPayable + type: String + displayName: Prepaid Expenses Payable + required: false + - value: Liability.Other Current Liability.RentsInTrustLiability + type: String + displayName: Rents In Trust Liability + required: false + - value: Liability.Other Current Liability.TrustAccountsLiabilities + type: String + displayName: Trust Accounts Liabilities + required: false + - value: Liability.Other Current Liability.FederalIncomeTaxPayable + type: String + displayName: Federal Income Tax Payable + required: false + - value: Liability.Other Current Liability.InsurancePayable + type: String + displayName: Insurance Payable + required: false + - value: Liability.Other Current Liability.SalesTaxPayable + type: String + displayName: Sales Tax Payable + required: false + - value: Liability.Other Current Liability.StateLocalIncomeTaxPayable + type: String + displayName: State Local Income Tax Payable + required: false + - value: Liability.Other Current Liability.AccruedLiabilities + type: String + displayName: Accrued Liabilities + required: false + - value: Liability.Other Current Liability.CurrentLiabilities + type: String + displayName: Current Liabilities + required: false + - value: Liability.Other Current Liability.CurrentPortionEmployeeBenefitsObligations + type: String + displayName: Current Portion EmployeeBenefits Obligations + required: false + - value: Liability.Other Current Liability.CurrentPortionOfObligationsUnderFinanceLeases + type: String + displayName: Current Portion Of Obligations Under Finance Leases + required: false + - value: Liability.Other Current Liability.CurrentTaxLiability + type: String + displayName: Current Tax Liability + required: false + - value: Liability.Other Current Liability.DividendsPayable + type: String + displayName: Dividends Payable + required: false + - value: Liability.Other Current Liability.DutiesAndTaxes + type: String + displayName: Duties And Taxes + required: false + - value: Liability.Other Current Liability.InterestPayables + type: String + displayName: Interest Payables + required: false + - value: Liability.Other Current Liability.ProvisionForWarrantyObligations + type: String + displayName: Provision For Warranty Obligations + required: false + - value: Liability.Other Current Liability.ProvisionsCurrentLiabilities + type: String + displayName: Provisions Current Liabilities + required: false + - value: Liability.Other Current Liability.ShortTermBorrowings + type: String + displayName: Short Term Borrowings + required: false + - value: Liability.Other Current Liability.SocialSecurityAgencies + type: String + displayName: Social Security Agencies + required: false + - value: Liability.Other Current Liability.StaffAndRelatedLiabilityAccounts + type: String + displayName: Staff And Related Liability Accounts + required: false + - value: Liability.Other Current Liability.SundryDebtorsAndCreditors + type: String + displayName: Sundry Debtors And Creditors + required: false + - value: Liability.Other Current Liability.TradeAndOtherPayables + type: String + displayName: Trade And Other Payables + required: false + - value: Equity.Equity.OpeningBalanceEquity + type: String + displayName: Opening Balance Equity + required: false + - value: Equity.Equity.PartnersEquity + type: String + displayName: Partners Equity + required: false + - value: Equity.Equity.RetainedEarnings + type: String + displayName: Retained Earnings + required: false + - value: Equity.Equity.AccumulatedAdjustment + type: String + displayName: Accumulated Adjustment + required: false + - value: Equity.Equity.OwnersEquity + type: String + displayName: Owners Equity + required: false + - value: Equity.Equity.PaidInCapitalOrSurplus + type: String + displayName: Paid In Capital Or Surplus + required: false + - value: Equity.Equity.PartnerContributions + type: String + displayName: Partner Contributions + required: false + - value: Equity.Equity.PartnerDistributions + type: String + displayName: Partner Distributions + required: false + - value: Equity.Equity.PreferredStock + type: String + displayName: Preferred Stock + required: false + - value: Equity.Equity.CommonStock + type: String + displayName: Common Stock + required: false + - value: Equity.Equity.TreasuryStock + type: String + displayName: Treasury Stock + required: false + - value: Equity.Equity.EstimatedTaxes + type: String + displayName: Estimated Taxes + required: false + - value: Equity.Equity.Healthcare + type: String + displayName: Healthcare + required: false + - value: Equity.Equity.PersonalIncome + type: String + displayName: Personal Income + required: false + - value: Equity.Equity.PersonalExpense + type: String + displayName: Personal Expense + required: false + - value: Equity.Equity.AccumulatedOtherComprehensiveIncome + type: String + displayName: Accumulated Other Comprehensive Income + required: false + - value: Equity.Equity.CalledUpShareCapital + type: String + displayName: Called Up Share Capital + required: false + - value: Equity.Equity.CapitalReserves + type: String + displayName: Capital Reserves + required: false + - value: Equity.Equity.DividendDisbursed + type: String + displayName: Dividend Disbursed + required: false + - value: Equity.Equity.EquityInEarningsOfSubsiduaries + type: String + displayName: Equity In Earnings Of Subsiduaries + required: false + - value: Equity.Equity.InvestmentGrants + type: String + displayName: Investment Grants + required: false + - value: Equity.Equity.MoneyReceivedAgainstShareWarrants + type: String + displayName: Money Received Against Share Warrants + required: false + - value: Equity.Equity.OtherFreeReserves + type: String + displayName: Other Free Reserves + required: false + - value: Equity.Equity.ShareApplicationMoneyPendingAllotment + type: String + displayName: Share Application Money Pending Allotment + required: false + - value: Equity.Equity.ShareCapital + type: String + displayName: Share Capital + required: false + - value: Equity.Equity.Funds + type: String + displayName: Funds + required: false + required: true + required: true + Sage Business Cloud Accounting: + value: + type: Object + displayName: Nominal Account + description: Nominal Accounts are the categories a business uses to record transactions + properties: + name: + type: String + displayName: Name + description: Name of the account + required: true + validation: + warnings: [] + information: + - field: Name + details: Should not be longer than 200 characters. + nominalCode: + type: String + displayName: Nominal Code + description: The external reference given to each nominal account for a business + required: true + validation: + warnings: [] + information: + - field: NominalCode + details: Should be a number between 1 and 99999999. + fullyQualifiedCategory: + type: String + displayName: Fully Qualified Category + description: The full category of the account e.g. Liability.Current or Income.Revenue + options: + - value: SALES + type: String + displayName: Sales + required: false + - value: OTHER_INCOME + type: String + displayName: Other Income + required: false + - value: DIRECT_EXPENSES + type: String + displayName: Direct Expenses + required: false + - value: OVERHEADS + type: String + displayName: Overheads + required: false + - value: DEPRECIATION + type: String + displayName: Depreciation + required: false + - value: CURRENT_ASSETS + type: String + displayName: Current Assets + required: false + - value: FIXED_ASSETS + type: String + displayName: Fixed Assets + required: false + - value: FUTURE_ASSETS + type: String + displayName: Future Assets + required: false + - value: BANK + type: String + displayName: Bank + required: false + - value: CURRENT_LIABILITY + type: String + displayName: Current Liability + required: false + - value: FUTURE_LIABILITY + type: String + displayName: Future Liability + required: false + - value: EQUITY + type: String + displayName: Equity + required: false + - value: LINE_OF_CREDIT + type: String + displayName: Credit Card / Loan + required: false + required: true + required: true + Sage Intacct: + value: + type: Object + displayName: Nominal Account + description: Nominal Accounts are the categories a business uses to record transactions + properties: + nominalCode: + type: String + displayName: Nominal Code + description: The external reference given to each nominal account for a business + required: true + validation: + warnings: + - field: NominalCode + details: Must be unique within the entity. + - field: NominalCode + details: 'Must be at most 24 characters in length, although restrictions may vary between entities.' + information: [] + name: + type: String + displayName: Name + description: Name of the account + required: true + status: + type: String + displayName: Account Status + description: The status of the account + options: + - value: Active + type: String + displayName: Active + required: false + - value: Archived + type: String + displayName: Archived + required: false + required: true + type: + type: String + displayName: Account Type + description: 'The type, or base category, of the account' + options: + - value: Asset + type: String + displayName: Asset + required: false + - value: Equity + type: String + displayName: Equity + required: false + - value: Expense + type: String + displayName: Expense + required: false + - value: Income + type: String + displayName: Income + required: false + - value: Liability + type: String + displayName: Liability + required: false + required: true + fullyQualifiedCategory: + type: String + displayName: Fully Qualified Category + description: The full category of the account e.g. Liability.Current or Income.Revenue + required: true + validation: + warnings: [] + information: + - field: FullyQualifiedCategory + details: 'Any category that is part of the hierarchy of one of: ''Assets'', ''Equity'', ''Liabilities'', ''Total Expenses'' and ''Total Income'' is permitted.' + required: true + Sandbox: + value: + type: Object + displayName: Nominal Account + description: Nominal Accounts are the categories a business uses to record transactions + properties: + nominalCode: + type: String + displayName: Nominal Code + description: The external reference given to each nominal account for a business + required: true + name: + type: String + displayName: Name + description: Name of the account + required: true + description: + type: String + displayName: Description + description: Description of the account + required: true + fullyQualifiedCategory: + type: String + displayName: Fully Qualified Category + description: The full category of the account e.g. Liability.Current or Income.Revenue + required: true + fullyQualifiedName: + type: String + displayName: Fully Qualified Name + description: The full name of the account e.g. Liability.Current.VAT or Income.Revenue.Sales + required: true + currency: + type: String + displayName: Currency + description: The currency of the account + required: true + currentBalance: + type: Number + displayName: Current Balance + description: The current balance in the account + required: true + type: + type: String + displayName: Account Type + description: 'The type, or base category, of the account' + required: true + status: + type: String + displayName: Account Status + description: The status of the account + required: true + isBankAccount: + type: Boolean + displayName: Is Bank Account? + description: Confirms whether the nominal account represents a bank account or not + required: true + validDatatypeLinks: + type: Array + displayName: Valid Datatype Links + description: Describes which fields on other data types are valid links to this account in the originating system + properties: + property: + type: String + displayName: Property + description: The field on the source data type that other data types can link to + required: true + links: + type: Array + displayName: Links + description: 'A collection of absolute names of fields from other data types, e.g. Invoice.LineItems.AccountRef.Id' + required: true + required: true + metadata: + type: Object + displayName: Metadata + description: Miscellaneous data about the item + properties: + isDeleted: + type: Boolean + displayName: IsDeleted + description: A boolean to indicate whether the object has been deleted + required: true + required: true + required: true + Xero: + value: + type: Object + displayName: Nominal Account + description: Nominal Accounts are the categories a business uses to record transactions + properties: + nominalCode: + type: String + displayName: Nominal Code + description: Identifier for the nominal account. + required: true + validation: + warnings: + - field: NominalCode + details: Max length of 10 characters. + information: [] + name: + type: String + displayName: Name + description: Name of account as it appears in the chart of accounts or general ledger. + required: true + validation: + warnings: [] + information: + - field: Name + details: Payments are enabled to this account if the name ends in .PaymentsEnabled. + description: + type: String + displayName: Description + description: Description for the nominal account. + required: false + fullyQualifiedCategory: + type: String + displayName: Fully Qualified Category + description: Account type and category for nominal account. + options: + - value: Asset.Current + type: String + displayName: Current Asset + required: false + - value: Asset.Fixed + type: String + displayName: Fixed Asset + required: false + - value: Asset.Inventory + type: String + displayName: Inventory + required: false + - value: Asset.NonCurrent + type: String + displayName: Non-current Asset + required: false + - value: Asset.Prepayment + type: String + displayName: Prepayment + required: false + - value: Expense.DirectCosts + type: String + displayName: Direct Costs + required: false + - value: Expense.Expense + type: String + displayName: Expense + required: false + - value: Expense.Overhead + type: String + displayName: Overhead + required: false + - value: Expense.Superannuation + type: String + displayName: Superannuation + required: false + - value: Expense.Wages + type: String + displayName: Wages + required: false + - value: Income.Sales + type: String + displayName: Sales + required: false + - value: Income.Revenue + type: String + displayName: Revenue + required: false + - value: Income.Other + type: String + displayName: Other Income + required: false + - value: Liability.Current + type: String + displayName: Current Liability + required: false + - value: Liability.Depreciation + type: String + displayName: Depreciation + required: false + - value: Liability.Liability + type: String + displayName: Liability + required: false + - value: Liability.NonCurrent + type: String + displayName: Non Current Liability + required: false + - value: Liability.PayAsYouGo + type: String + displayName: Pay As You Go Liability + required: false + - value: Liability.Superannuation + type: String + displayName: Superannuation Liability + required: false + - value: Liability.WagesPayable + type: String + displayName: Wages Payable Liability + required: false + - value: Equity.Equity + type: String + displayName: Equity + required: false + required: true + required: true + '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' + operationId: get-create-chartOfAccounts-model description: |- - This data type provides a list of all the SMB's bank accounts, with rich data like balances, account numbers, and institutions holding the accounts. + The *Get create account model* endpoint returns the expected data for the request payload when creating an [account](https://docs.codat.io/sync-for-expenses-api#/schemas/Account) for a given company and integration. - Responses are paged, so you should provide `page` and `pageSize` query parameters in your request. - type: object - allOf: - - type: object - properties: - id: - minLength: 1 - type: string - description: The ID of the account from the provider. - name: - minLength: 1 - type: string - description: The name of the account according to the provider. - informalName: - type: string - nullable: true - description: 'The friendly name of the account, chosen by the holder. This may not have been set by the account holder and therefore is not always available.' - holder: - type: string - nullable: true - description: The name of the person or company who holds the account. - type: - $ref: '#/components/schemas/AccountingBankAccountType' - balance: - $ref: '#/components/schemas/BankingAccountBalance/definitions/accountBalanceAmounts' - description: An object containing bank balance data. - identifiers: - $ref: '#/components/schemas/BankingAccount/definitions/accountIdentifiers' - currency: - minLength: 1 - type: string - description: The currency code for the account. - institution: - $ref: '#/components/schemas/BankingAccount/definitions/accountInstitution' - - $ref: '#/components/schemas/CommerceOrder/allOf/3' - required: - - id - - name - - type - - balance - - identifiers - - currency - - institution - definitions: - accountIdentifiers: - title: Account Identifiers - description: An object containing bank account identification information. - type: object - x-internal: true - additionalProperties: false - properties: - type: - $ref: '#/components/schemas/BankingAccount/definitions/accountIdentifierType' - subtype: - type: string - nullable: true - description: Detailed account category - number: - type: string - nullable: true - description: 'The account number for the account. When combined with the`bankCode`, this is usually enough to uniquely identify an account within a jurisdiction.' - bankCode: - type: string - nullable: true - description: |- - The local (usually national) routing number for the account. + [Accounts](https://docs.codat.io/sync-for-expenses-api#/schemas/Account) are the categories a business uses to record accounting transactions. - This is known by different names in different countries: - * BSB code (Australia) - * routing number (Canada, USA) - * sort code (UK) - iban: - type: string - nullable: true - description: 'The international bank account number (IBAN) for the account, if known.' - bic: - type: string - nullable: true - description: 'The ISO 9362 code (commonly called SWIFT code, SWIFT-BIC or BIC) for the account.' - maskedAccountNumber: - type: string - nullable: true - description: A portion of the actual account `number` to help account identification where number is tokenised (Plaid only) - required: - - type - accountIdentifierType: - type: string - x-internal: true - description: Type of account - enum: - - Account - - Card - - Credit - - Depository - - Investment - - Loan - - Other - accountInstitution: - title: Account Institution - description: The bank or other financial institution providing the account. - x-internal: true - type: object - additionalProperties: false - properties: - id: - type: string - description: 'The institution''s ID, according to the provider.' - name: - type: string - description: 'The institution''s name, according to the underlying provider.' - examples: - - results: - - id: 1703194f-7805-4da8-bac0-2ba5da4a4216 - name: Business Current Account - informalName: Codat - holder: Codat Ltd - type: Debit - balance: - available: -459987.97 - current: -459964.9 - limit: 5000 - identifiers: - type: Depository - subtype: checking - number: '46762629' - bankCode: 009911 - iban: GB29 LOYD 4773 2346 7626 29 - bic: LOYDGB21006 - maskedAccountNumber: LOYDGB21006 - currency: GBP - institution: - id: lloyds-bank - name: Lloyds Bank - modifiedDate: '2022-05-23T16:32:50Z' - sourceModifiedDate: '2021-08-14T05:04:12' - BankingAccountBalance: - title: 'Banking: Account balance' - description: "The Banking Account Balances data type provides a list of balances for a bank account including end-of-day batch balance or running balances per transaction.\n\nResponses are paged, so you should provide `page` and `pageSize` query parameters in your request.\n\n> **How often should I pull Account Balances?**\n>\n> Because these balances are closing balances, we recommend you pull Account Balance no more frequently than daily. If you require a live intraday balance, this can be found for each account on the [Account](https://docs.codat.io/lending-api#/schemas/Account) data type.\n> \n> Whilst you can choose to sync hourly, this may incur usage charges from Plaid or TrueLayer." - type: object - allOf: - - type: object - properties: - accountId: - minLength: 1 - type: string - description: The unique identifier of the account. - balance: - $ref: '#/components/schemas/BankingAccountBalance/definitions/accountBalanceAmounts' - date: - $ref: '#/components/schemas/DateTime' - description: Date of the balance. - - $ref: '#/components/schemas/CommerceOrder/allOf/3' - required: - - accountId - - balance - - date - definitions: - accountBalanceAmounts: - title: Account Balance Amounts - x-internal: true - type: object - properties: - available: - type: number - format: decimal - nullable: true - description: 'The balance available in the account, including any pending transactions. This doesn''t include additional funds available from any overdrafts.' - current: - type: number - format: decimal - description: The balance of the account only including cleared transactions. - limit: - type: number - format: decimal - nullable: true - description: 'The minimum allowed balance for the account. For example, a $100.00 overdraft would show as a limit of `-100.00`.' - additionalProperties: false - description: 'Depending on the data provided by the underlying bank, not all balances are always available.' - examples: - - accountBalances: - - accountId: cce404db-27f7-4286-95db-622b53596cf4 - balance: - available: 714374.48 - current: 714374.57 - limit: 5000 - date: '2021-03-18T00:00:00' - - accountId: cce404db-27f7-4286-95db-622b53596cf4 - balance: - available: 714374.48 - current: 714374.57 - limit: 5000 - date: '2021-03-19T00:00:00' - - accountId: cce404db-27f7-4286-95db-622b53596cf4 - balance: - available: 714195.66 - current: 714204.39 - limit: 5000 - date: '2021-03-22T00:00:00' - - accountId: 2f593774-1075-4805-a552-84eecc7eb264 - balance: - available: -644945.42 - current: -644925.84 - limit: 0 - date: '2022-03-09T00:00:00' - BankingAccountBalances: - title: 'Banking: Account balances' - x-internal: true - allOf: - - type: object - properties: - results: - type: array - items: - $ref: '#/components/schemas/BankingAccountBalance' - - $ref: '#/components/schemas/PagingInfo' - BankingAccounts: - title: 'Banking: Bank accounts' - x-internal: true - allOf: - - type: object - properties: - results: - type: array - items: - $ref: '#/components/schemas/BankingAccount' - - $ref: '#/components/schemas/PagingInfo' - BankingTransaction: - title: 'Banking: Transaction' - description: |- - The Banking Transactions data type provides an immutable source of up-to-date information on income and expenditure. + **Integration-specific behaviour** + + See the *response examples* for integration-specific indicative models. + '/companies/{companyId}/connections/{connectionId}/push/bankAccounts': + parameters: + - $ref: '#/components/parameters/companyId' + - $ref: '#/components/parameters/connectionId' + post: + tags: + - Bank accounts + parameters: + - $ref: '#/components/parameters/timeoutInMinutes' + - $ref: '#/components/parameters/allowSyncOnPushComplete' + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/BankAccount' + examples: + QuickBooks Online: + value: + accountName: GBP Bank Account + accountType: Debit + accountNumber: '12345678' + currency: GBP + status: Active + Xero: + value: + accountName: Xero GBP Bank Account + accountType: Debit + sortCode: '445566' + accountNumber: '12345678' + currency: GBP + status: Active + responses: + '200': + description: Success + content: + application/json: + schema: + $ref: '#/components/schemas/CreateBankAccountResponse' + examples: {} + '400': + $ref: '#/components/responses/BadRequest' + '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' + summary: Create bank account + description: "The *Create bank account* endpoint creates a new [bank account](https://docs.codat.io/sync-for-expenses-api#/schemas/BankAccount) for a given company's connection.\r\n\r\n[Bank accounts](https://docs.codat.io/sync-for-expenses-api#/schemas/BankAccount) are financial accounts maintained by a bank or other financial institution.\r\n\r\n**Integration-specific behaviour**\r\n\r\nRequired data may vary by integration. To see what data to post, first call [Get create/update bank account model](https://docs.codat.io/sync-for-expenses-api#/operations/get-create-update-bankAccounts-model)." + operationId: create-bank-account + '/companies/{companyId}/connections/{connectionId}/options/bankAccounts': + parameters: + - $ref: '#/components/parameters/companyId' + - $ref: '#/components/parameters/connectionId' + get: + summary: Get create bank account model + tags: + - Bank accounts + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/PushOption' + examples: + Dynamics 365 Business Central: + value: + type: Object + displayName: Bank Account + description: An account that bank transactions may be recorded against + properties: + accountName: + type: String + displayName: Name + description: The name of the bank account in the originating system + required: true + validation: + warnings: [] + information: + - field: AccountName + details: 'Needs to be of the format ''{No.}-{Name}''' + currency: + type: String + displayName: Currency + description: The currency of the bank account + required: true + accountNumber: + type: String + displayName: Account Number + description: The account number for the bank account + required: false + nominalCode: + type: String + displayName: Nominal Code + description: The external reference given to each nominal account for a business + required: false + validation: + warnings: [] + information: + - field: NominalCode + details: Bank Account Posting Group with Nominal Account must exist + sortCode: + type: String + displayName: Sort Code + description: The sort code for the bank account + required: false + validation: + warnings: [] + information: + - field: SortCode + details: Must have a length between 0 and 20 characters + iBan: + type: String + displayName: IBAN + description: The international bank account number of the account. Often used when making or receiving international payments + required: false + overdraftLimit: + type: Number + displayName: Overdraft Limit + description: The pre-arranged overdraft limit of the account + required: false + validation: + warnings: [] + information: + - field: OverdraftLimit + details: Default value is 0 + required: true + Exact (Netherlands): + value: + type: Object + displayName: Bank Account + description: An account that bank transactions may be recorded against + properties: + accountName: + type: String + displayName: Name + description: The name of the bank account in the originating system + required: true + accountNumber: + type: String + displayName: Account Number + description: The account number for the bank account + required: true + validation: + warnings: + - field: AccountNumber + details: Should not exceed the maximum length of 14 characters if the specified currency is GBP. + information: [] + sortCode: + type: String + displayName: Sort Code + description: The sort code for the bank account + required: false + validation: + warnings: + - field: SortCode + details: Must be 6 characters long if the specified currency is GBP. + - field: SortCode + details: Must be provided if the specified currency is GBP. + information: [] + currency: + type: String + displayName: Currency + description: The currency of the bank account + required: false + nominalCode: + type: String + displayName: Nominal Code + description: The external reference given to each nominal account for a business + required: false + required: true + Exact (UK): + value: + type: Object + displayName: Bank Account + description: An account that bank transactions may be recorded against + properties: + accountName: + type: String + displayName: Name + description: The name of the bank account in the originating system + required: true + accountNumber: + type: String + displayName: Account Number + description: The account number for the bank account + required: true + validation: + warnings: + - field: AccountNumber + details: Should not exceed the maximum length of 14 characters if the specified currency is GBP. + information: [] + sortCode: + type: String + displayName: Sort Code + description: The sort code for the bank account + required: false + validation: + warnings: + - field: SortCode + details: Must be 6 characters long if the specified currency is GBP. + - field: SortCode + details: Must be provided if the specified currency is GBP. + information: [] + currency: + type: String + displayName: Currency + description: The currency of the bank account + required: false + nominalCode: + type: String + displayName: Nominal Code + description: The external reference given to each nominal account for a business + required: false + required: true + FreeAgent: + value: + type: Object + displayName: Bank Account + description: An account that bank transactions may be recorded against + properties: + accountName: + type: String + displayName: Name + description: The name of the bank account in the originating system + required: true + sortCode: + type: String + displayName: Sort Code + description: The sort code for the bank account + required: false + validation: + warnings: + - field: SortCode + details: Must have a length between 0 and 8 characters + information: [] + accountNumber: + type: String + displayName: Account Number + description: The account number for the bank account + required: false + iBan: + type: String + displayName: IBAN + description: The international bank account number of the account. Often used when making or receiving international payments + required: false + currency: + type: String + displayName: Currency + description: The currency of the bank account + options: + - value: AED + type: String + displayName: AED + required: false + - value: AMD + type: String + displayName: AMD + required: false + - value: AOA + type: String + displayName: AOA + required: false + - value: ARS + type: String + displayName: ARS + required: false + - value: AUD + type: String + displayName: AUD + required: false + - value: AWG + type: String + displayName: AWG + required: false + - value: AZN + type: String + displayName: AZN + required: false + - value: BBD + type: String + displayName: BBD + required: false + - value: BDT + type: String + displayName: BDT + required: false + - value: BGN + type: String + displayName: BGN + required: false + - value: BRL + type: String + displayName: BRL + required: false + - value: BWP + type: String + displayName: BWP + required: false + - value: CAD + type: String + displayName: CAD + required: false + - value: CHF + type: String + displayName: CHF + required: false + - value: CLP + type: String + displayName: CLP + required: false + - value: CNY + type: String + displayName: CNY + required: false + - value: COP + type: String + displayName: COP + required: false + - value: CRC + type: String + displayName: CRC + required: false + - value: CUC + type: String + displayName: CUC + required: false + - value: CUP + type: String + displayName: CUP + required: false + - value: CZK + type: String + displayName: CZK + required: false + - value: DKK + type: String + displayName: DKK + required: false + - value: DOP + type: String + displayName: DOP + required: false + - value: EGP + type: String + displayName: EGP + required: false + - value: EUR + type: String + displayName: EUR + required: false + - value: FJD + type: String + displayName: FJD + required: false + - value: GBP + type: String + displayName: GBP + required: false + - value: GEL + type: String + displayName: GEL + required: false + - value: GHS + type: String + displayName: GHS + required: false + - value: GTQ + type: String + displayName: GTQ + required: false + - value: GYD + type: String + displayName: GYD + required: false + - value: HKD + type: String + displayName: HKD + required: false + - value: HNL + type: String + displayName: HNL + required: false + - value: HRK + type: String + displayName: HRK + required: false + - value: HUF + type: String + displayName: HUF + required: false + - value: IDR + type: String + displayName: IDR + required: false + - value: ILS + type: String + displayName: ILS + required: false + - value: INR + type: String + displayName: INR + required: false + - value: ISK + type: String + displayName: ISK + required: false + - value: JMD + type: String + displayName: JMD + required: false + - value: JPY + type: String + displayName: JPY + required: false + - value: KES + type: String + displayName: KES + required: false + - value: KRW + type: String + displayName: KRW + required: false + - value: KWD + type: String + displayName: KWD + required: false + - value: KYD + type: String + displayName: KYD + required: false + - value: KZT + type: String + displayName: KZT + required: false + - value: LAK + type: String + displayName: LAK + required: false + - value: LBP + type: String + displayName: LBP + required: false + - value: LKR + type: String + displayName: LKR + required: false + - value: LTL + type: String + displayName: LTL + required: false + - value: LVL + type: String + displayName: LVL + required: false + - value: MAD + type: String + displayName: MAD + required: false + - value: MDL + type: String + displayName: MDL + required: false + - value: MGA + type: String + displayName: MGA + required: false + - value: MUR + type: String + displayName: MUR + required: false + - value: MVR + type: String + displayName: MVR + required: false + - value: MWK + type: String + displayName: MWK + required: false + - value: MXN + type: String + displayName: MXN + required: false + - value: MYR + type: String + displayName: MYR + required: false + - value: MZN + type: String + displayName: MZN + required: false + - value: NAD + type: String + displayName: NAD + required: false + - value: NGN + type: String + displayName: NGN + required: false + - value: NOK + type: String + displayName: NOK + required: false + - value: NPR + type: String + displayName: NPR + required: false + - value: NZD + type: String + displayName: NZD + required: false + - value: OMR + type: String + displayName: OMR + required: false + - value: PEN + type: String + displayName: PEN + required: false + - value: PHP + type: String + displayName: PHP + required: false + - value: PKR + type: String + displayName: PKR + required: false + - value: PLN + type: String + displayName: PLN + required: false + - value: QAR + type: String + displayName: QAR + required: false + - value: RON + type: String + displayName: RON + required: false + - value: RSD + type: String + displayName: RSD + required: false + - value: RUB + type: String + displayName: RUB + required: false + - value: RWF + type: String + displayName: RWF + required: false + - value: SAR + type: String + displayName: SAR + required: false + - value: SCR + type: String + displayName: SCR + required: false + - value: SEK + type: String + displayName: SEK + required: false + - value: SGD + type: String + displayName: SGD + required: false + - value: THB + type: String + displayName: THB + required: false + - value: TND + type: String + displayName: TND + required: false + - value: TRY + type: String + displayName: TRY + required: false + - value: TTD + type: String + displayName: TTD + required: false + - value: TWD + type: String + displayName: TWD + required: false + - value: TZS + type: String + displayName: TZS + required: false + - value: UAH + type: String + displayName: UAH + required: false + - value: UGX + type: String + displayName: UGX + required: false + - value: USD + type: String + displayName: USD + required: false + - value: UYU + type: String + displayName: UYU + required: false + - value: VEF + type: String + displayName: VEF + required: false + - value: VND + type: String + displayName: VND + required: false + - value: VUV + type: String + displayName: VUV + required: false + - value: XAF + type: String + displayName: XAF + required: false + - value: XCD + type: String + displayName: XCD + required: false + - value: XOF + type: String + displayName: XOF + required: false + - value: ZAR + type: String + displayName: ZAR + required: false + - value: ZMK + type: String + displayName: ZMK + required: false + required: true + balance: + type: Number + displayName: Balance + description: The balance of the bank account + required: false + validation: + warnings: [] + information: + - field: Balance + details: 'The opening balance, in the account currency' + institution: + type: String + displayName: Institution + description: The institution of the bank account + required: false + required: true + KashFlow: + value: + type: Object + displayName: Bank Account + description: An account that bank transactions may be recorded against + properties: + accountName: + type: String + displayName: Account Name + description: Name of the bank account as it appears in Kashflow. + required: true + balance: + type: Number + displayName: Balance + description: 'The opening balance, in the account currency.' + required: false + currency: + type: String + displayName: Currency + description: The currency of the bank account. + required: true + required: true + QuickBooks Desktop: + value: + type: Object + displayName: Bank Account + description: An account that bank transactions may be recorded against + properties: + nominalCode: + type: String + displayName: Nominal Code + description: The external reference given to each nominal account for a business + required: true + validation: + warnings: + - field: NominalCode + details: Max length of 7 characters. + information: [] + accountName: + type: String + displayName: Name + description: The name of the bank account in the originating system + required: true + validation: + warnings: + - field: AccountName + details: Max length of 31 characters. + information: [] + currency: + type: String + displayName: Currency + description: The currency of the bank account + required: false + validation: + warnings: + - field: Currency + details: 'The currency must match the base currency of the QuickBooks Desktop company unless the FullyQualifiedCategory is ''Asset.AccountsReceivable'',''Liability.AccountsPayable'' or ''Liability.CreditCard''' + - field: Currency + details: Must be a three letter ISO code that matches an existing active currency in the QuickBooks Desktop company + - field: Currency + details: Can only be set if the Quickbooks Desktop company has Multicurrency enabled. + information: + - field: Currency + details: 'If not set, will default to the base currency of the QuickBooks Desktop company' + balance: + type: Number + displayName: Balance + description: The balance of the bank account + required: false + required: true + QuickBooks Online Sandbox: + value: + type: Object + displayName: Bank Account + description: An account that bank transactions may be recorded against + properties: + accountName: + type: String + displayName: Account Name + description: Name of account as it appears in the chart of accounts or general ledger. + required: true + accountNumber: + type: String + displayName: Account Number + description: User-defined account number to help the user in identifying the account within the chart-of-accounts and in deciding what should be posted to the account. + required: true + currency: + type: String + displayName: Currency + description: Currency of the bank account. + required: true + required: true + Sage Business Cloud Accounting: + value: + type: Object + displayName: Bank Account + description: An account that bank transactions may be recorded against + properties: + accountName: + type: String + displayName: Name + description: The name of the bank account in the originating system + required: true + validation: + warnings: [] + information: + - field: AccountName + details: Must be provided. + - field: AccountName + details: Should not be longer than 50 characters. + currency: + type: String + displayName: Currency + description: The currency of the bank account + required: true + validation: + warnings: [] + information: + - field: Currency + details: Must be provided. + - field: Currency + details: Must match the company's base currency. + sortCode: + type: String + displayName: Sort Code + description: The sort code for the bank account + required: false + validation: + warnings: [] + information: + - field: SortCode + details: Should be a 6 digit number. + accountNumber: + type: String + displayName: Account Number + description: The account number for the bank account + required: false + validation: + warnings: [] + information: + - field: AccountNumber + details: Should not be longer than 25 characters. + iBan: + type: String + displayName: IBAN + description: The international bank account number of the account. Often used when making or receiving international payments + required: false + validation: + warnings: [] + information: + - field: IBan + details: Should be in the international bank account number format. + nominalCode: + type: String + displayName: Nominal Code + description: The external reference given to each nominal account for a business + required: false + validation: + warnings: [] + information: + - field: NominalCode + details: Should be a number between 1 and 99999999. + required: true + Sandbox: + value: + type: Object + displayName: Bank Account + description: An account that bank transactions may be recorded against + properties: + accountName: + type: String + displayName: Name + description: The name of the bank account in the originating system + required: true + accountType: + type: String + displayName: Account Type + description: The type of account + required: true + nominalCode: + type: String + displayName: Nominal Code + description: The external reference given to each nominal account for a business + required: true + sortCode: + type: String + displayName: Sort Code + description: The sort code for the bank account + required: true + accountNumber: + type: String + displayName: Account Number + description: The account number for the bank account + required: true + iBan: + type: String + displayName: IBAN + description: The international bank account number of the account. Often used when making or receiving international payments + required: true + currency: + type: String + displayName: Currency + description: The currency of the bank account + required: true + balance: + type: Number + displayName: Balance + description: The balance of the bank account + required: true + availableBalance: + type: Number + displayName: Available Balance + description: The available balance of the bank account + required: true + overdraftLimit: + type: Number + displayName: Overdraft Limit + description: The pre-arranged overdraft limit of the account + required: true + institution: + type: String + displayName: Institution + description: The institution of the bank account + required: true + metadata: + type: Object + displayName: Metadata + description: Miscellaneous data about the item + properties: + isDeleted: + type: Boolean + displayName: IsDeleted + description: A boolean to indicate whether the object has been deleted + required: true + required: true + required: true + '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' + operationId: get-create-bankAccounts-model + description: "The *Get create/update bank account model* endpoint returns the expected data for the request payload when creating and updating a [bank account](https://docs.codat.io/sync-for-expenses-api#/schemas/BankAccount) for a given company and integration.\r\n\r\n[Bank accounts](https://docs.codat.io/sync-for-expenses-api#/schemas/BankAccount) are financial accounts maintained by a bank or other financial institution.\r\n\r\n**Integration-specific behaviour**\r\n\r\nSee the *response examples* for integration-specific indicative models.\r\n" + '/companies/{companyId}/data/customers': + parameters: + - $ref: '#/components/parameters/companyId' + get: + tags: + - Customers + summary: List customers + 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/Customers' + examples: + Clear Books: + value: + results: + - id: c8180244-74ac-40cf-a5df-6d83661c44d7 + customerName: Arjun Kuvalis + contactName: Werner Langworth + emailAddress: Arjun34@hotmail.com + defaultCurrency: GBP + phone: 014605 64820 + addresses: + - type: Delivery + line1: Suite 214 + line2: 8439 Lueilwitz Passage + city: Fernandohaven + region: Northern Ireland + country: United Kingdom + postalCode: JG04 7PV + - type: Delivery + line1: Suite 096 + line2: 864 Halie Course + city: Juliochester + region: England + country: United Kingdom + postalCode: DZ8 4BF + - type: Delivery + line1: Suite 001 + line2: 416 Stokes Fords + city: Naderborough + region: Wales + country: United Kingdom + postalCode: XG25 0XX + contacts: + - name: Werner Langworth + email: Werner_Langworth@hotmail.com + phone: [] + address: + type: Delivery + line1: Apt. 145 + line2: 317 Williamson Freeway + city: Hortenseville + region: Scotland + country: United Kingdom + postalCode: CV4 2HR + status: Active + - name: Belle Glover + email: Belle51@yahoo.com + phone: [] + address: + type: Delivery + line1: Suite 075 + line2: 9921 Dickens Walk + city: South Ali + region: Scotland + country: United Kingdom + postalCode: TI04 4OO + status: Active + registrationNumber: NI7JEJVM + taxNumber: '7505220209.583549' + status: Active + modifiedDate: '2023-04-26T12:38:16Z' + sourceModifiedDate: '2022-07-03T01:27:00' + metadata: + isDeleted: false + - id: 6d162ee4-47b4-46c6-a2e6-aa9edd0fe6b0 + customerName: 'Breitenberg, Emard and Schiller' + contactName: Miguel Hahn + emailAddress: contact@BreitenbergEmardandSchiller.biz + defaultCurrency: GBP + phone: 0800 445 6957 + addresses: + - type: Billing + line1: Apt. 184 + line2: 60578 Louie Springs + city: East Khalid + region: Wales + country: United Kingdom + postalCode: XW89 7NT + contacts: + - name: Miguel Hahn + email: Miguel.Hahn@gmail.com + phone: + - number: 018555 09614 + type: Landline + address: + type: Delivery + line1: Suite 400 + line2: 21930 Milan Lane + city: Reingerton + region: Wales + country: United Kingdom + postalCode: QG10 2DL + status: Active + registrationNumber: KME0AMIL + taxNumber: '8560920952.553111' + status: Archived + modifiedDate: '2023-04-26T12:38:16Z' + sourceModifiedDate: '2022-12-03T11:05:01' + metadata: + isDeleted: false + pageNumber: 1 + pageSize: 2 + totalResults: 20 + _links: + current: + href: /companies/354a121b-855f-4d25-90ad-0905b498c1c0/data/customers?page=1&pageSize=2 + self: + href: /companies/354a121b-855f-4d25-90ad-0905b498c1c0/data/customers + next: + href: /companies/354a121b-855f-4d25-90ad-0905b498c1c0/data/customers?page=2&pageSize=2 + Dynamics 365 Business Central: + value: + results: + - id: 0e2f7751-7696-ed11-bff5-6045bd0d2ad6 + customerName: '' + contactName: '' + emailAddress: '' + defaultCurrency: GBP + phone: '' + addresses: + - type: Billing + line1: '' + line2: '' + city: '' + region: '' + country: '' + postalCode: '' + contacts: + - name: '' + email: '' + phone: [] + address: + type: Billing + line1: '' + line2: '' + city: '' + region: '' + country: '' + postalCode: '' + status: Active + taxNumber: '' + status: Active + modifiedDate: '2023-03-27T14:21:25Z' + sourceModifiedDate: '2023-01-17T14:50:54Z' + metadata: + isDeleted: false + - id: 0ef95175-48c4-eb11-9f0a-0022481b4343 + customerName: '' + contactName: '' + emailAddress: '' + defaultCurrency: GBP + phone: '' + addresses: + - type: Billing + line1: '' + line2: '' + city: '' + region: '' + country: GB + postalCode: '' + contacts: + - name: '' + email: '' + phone: [] + address: + type: Billing + line1: '' + line2: '' + city: '' + region: '' + country: GB + postalCode: '' + status: Active + taxNumber: '' + status: Active + modifiedDate: '2023-03-27T14:21:25Z' + sourceModifiedDate: '2021-06-03T08:48:36Z' + metadata: + isDeleted: false + pageNumber: 1 + pageSize: 2 + totalResults: 42 + _links: + current: + href: /companies/d6849caf-c146-41be-8335-b73346e3bd84/data/customers?page=1&pageSize=2 + self: + href: /companies/d6849caf-c146-41be-8335-b73346e3bd84/data/customers + next: + href: /companies/d6849caf-c146-41be-8335-b73346e3bd84/data/customers?page=2&pageSize=2 + Exact (Netherlands): + value: + results: + - id: 555f8251-c65a-433a-a813-5dbe04321d1e + customerName: Ab Netherlands + defaultCurrency: EUR + addresses: + - type: Billing + country: NL + contacts: [] + status: Active + modifiedDate: '2022-10-26T13:32:05Z' + sourceModifiedDate: '2021-06-14T15:26:37Z' + - id: 9fd1f78e-67aa-4af7-8a10-df1fc5fb5841 + customerName: anna test 2 + defaultCurrency: EUR + addresses: + - type: Billing + country: NL + contacts: [] + status: Active + modifiedDate: '2022-10-26T13:32:05Z' + sourceModifiedDate: '2022-05-24T11:53:21Z' + pageNumber: 1 + pageSize: 2 + totalResults: 71 + _links: + current: + href: /companies/b83b1923-4db6-45a8-a779-b4e320c15979/data/customers?page=1&pageSize=2 + self: + href: /companies/b83b1923-4db6-45a8-a779-b4e320c15979/data/customers + next: + href: /companies/b83b1923-4db6-45a8-a779-b4e320c15979/data/customers?page=2&pageSize=2 + Exact (UK): + value: + results: + - id: 5f20075a-a28e-434d-81a6-2db0dc170e87 + customerName: Abdi 99 + emailAddress: email@codat.io + defaultCurrency: GBP + addresses: + - type: Billing + line1: Ink Rooms + city: London + country: GB + postalCode: WC1X 0BE + contacts: [] + registrationNumber: '123456789' + taxNumber: GB339 0727 47 + status: Active + modifiedDate: '2022-10-26T13:33:08Z' + sourceModifiedDate: '2020-02-26T11:23:50Z' + - id: 1d9dc1a7-92d6-441b-93fd-42c9fb321b1c + customerName: Abdulbasit Al-haj + contactName: abeee + emailAddress: a.alhaj@codat.io + defaultCurrency: GBP + addresses: + - type: Billing + country: GB + contacts: + - name: abeee + phone: [] + address: + type: Unknown + line1: '' + country: 'GB ' + status: Active + modifiedDate: '2020-02-24T12:00:51.027Z' + status: Active + modifiedDate: '2022-10-26T13:33:08Z' + sourceModifiedDate: '2020-02-24T12:00:50Z' + pageNumber: 1 + pageSize: 2 + totalResults: 53 + _links: + current: + href: /companies/d95030cd-22b2-482b-9c7b-2980dcc2b1ce/data/customers?page=1&pageSize=2 + self: + href: /companies/d95030cd-22b2-482b-9c7b-2980dcc2b1ce/data/customers + next: + href: /companies/d95030cd-22b2-482b-9c7b-2980dcc2b1ce/data/customers?page=2&pageSize=2 + FreeAgent: + value: + results: + - id: '11526230' + customerName: '-' + contactName: Test 1 + addresses: + - type: Billing + line1: 1 Place House + line2: '' + city: London + country: United Kingdom + postalCode: WC1X 1AH + contacts: + - name: Test 1 + phone: [] + address: + type: Billing + line1: 1 Place House + line2: '' + city: London + country: United Kingdom + postalCode: WC1X 1AH + status: Unknown + status: Active + modifiedDate: '2023-04-25T14:19:12Z' + sourceModifiedDate: '2023-04-17T06:02:46Z' + metadata: + isDeleted: false + - id: '9677150' + customerName: '-' + contactName: Test 1 + addresses: + - type: Billing + line1: 1 Place House + line2: '' + city: London + country: United Kingdom + postalCode: WC1X 1AH + contacts: + - name: Test 1 + phone: [] + address: + type: Billing + line1: 1 Place House + line2: '' + city: London + country: United Kingdom + postalCode: WC1X 1AH + status: Unknown + status: Active + modifiedDate: '2023-04-25T14:19:12Z' + sourceModifiedDate: '2023-04-24T06:19:23Z' + metadata: + isDeleted: false + pageNumber: 1 + pageSize: 2 + totalResults: 159 + _links: + current: + href: /companies/071ad738-68f3-4561-afd0-69bab9df0803/data/customers?page=1&pageSize=2 + self: + href: /companies/071ad738-68f3-4561-afd0-69bab9df0803/data/customers + next: + href: /companies/071ad738-68f3-4561-afd0-69bab9df0803/data/customers?page=2&pageSize=2 + FreshBooks: + value: + results: + - id: '634509' + customerName: A test customer 14 (updated) + contactName: test person name + emailAddress: test14@example.com + defaultCurrency: GBP + phone: 01876 541245 + addresses: + - type: Billing + line1: Line 1 + line2: Line 2 + city: Some city + region: A region + country: Country 1 + postalCode: SW1 2JQ + contacts: + - name: test person1 + email: test14A@example.com + phone: + - number: '24681012' + type: Primary + - number: '121086420' + type: Unknown + status: Active + - name: test person2 + email: test14B@example.com + phone: + - number: 1234 56789 + type: Primary + - number: 9876 54321 + type: Unknown + status: Active + - name: test person name + email: test14@example.com + phone: + - number: 01876 541245 + type: Unknown + status: Active + status: Active + modifiedDate: '2023-03-24T16:07:23Z' + sourceModifiedDate: '2022-05-18T09:23:56' + metadata: + isDeleted: false + - id: '634486' + customerName: A test customer name 2 + contactName: test person name + emailAddress: test8@example.com + defaultCurrency: GBP + phone: 01876 541245 + addresses: + - type: Billing + line1: Line 1 + line2: Line 2 + city: Some city + region: A region + country: Country 1 + postalCode: SW1 2JQ + contacts: + - name: test person1 + email: test9@example.com + phone: + - number: '24681012' + type: Primary + - number: '121086420' + type: Unknown + status: Active + - name: test person2 + email: test10@example.com + phone: + - number: '123456789' + type: Primary + - number: '987654321' + type: Unknown + status: Active + - name: test person name + email: test8@example.com + phone: + - number: 01876 541245 + type: Unknown + status: Active + status: Active + modifiedDate: '2023-03-24T16:07:23Z' + sourceModifiedDate: '2022-05-11T11:39:58' + metadata: + isDeleted: false + pageNumber: 1 + pageSize: 2 + totalResults: 39 + _links: + current: + href: /companies/3691c49e-0db4-4172-b3ab-e4084c365013/data/customers?page=1&pageSize=2 + self: + href: /companies/3691c49e-0db4-4172-b3ab-e4084c365013/data/customers + next: + href: /companies/3691c49e-0db4-4172-b3ab-e4084c365013/data/customers?page=2&pageSize=2 + KashFlow: + value: + results: + - id: '92227673' + customerName: Chekko Customer Test 01 + contactName: '' + emailAddress: '' + phone: '' + addresses: [] + contacts: + - name: '' + email: '' + phone: [] + status: Active + taxNumber: '' + status: Active + modifiedDate: '2022-09-30T10:29:15Z' + sourceModifiedDate: '0001-01-01T00:00:00' + - id: '88459410' + customerName: Diogo Sousa + contactName: Mr Diogo Sousa + emailAddress: diogomail@mail.com + phone: '123123123' + addresses: + - type: Billing + line1: Billing Address + line2: Billing line 2 Billing line 3 + city: Billing line 4 + country: United Kingdom + postalCode: '123321' + - type: Delivery + line1: Delivery Address + line2: Delivery line2 Delivery line3 + city: Delivery line4 + country: United Kingdom + postalCode: '123321' + contacts: + - name: Mr Diogo Sousa + email: diogomail@mail.com + phone: + - number: '123123123' + type: Landline + - number: '321321321' + type: Mobile + address: + type: Billing + line1: Billing Address + line2: Billing line 2 Billing line 3 + city: Billing line 4 + country: United Kingdom + postalCode: '123321' + status: Active + - name: Mr Diogo Sousa + phone: [] + address: + type: Delivery + line1: Delivery Address + line2: Delivery line2 Delivery line3 + city: Delivery line4 + country: United Kingdom + postalCode: '123321' + status: Active + taxNumber: '' + status: Active + modifiedDate: '2022-09-30T10:29:15Z' + sourceModifiedDate: '2021-05-04T13:22:19' + pageNumber: 1 + pageSize: 2 + totalResults: 10 + _links: + current: + href: /companies/3a707a99-89da-4b16-a5d6-595333a16352/data/customers?page=1&pageSize=2 + self: + href: /companies/3a707a99-89da-4b16-a5d6-595333a16352/data/customers + next: + href: /companies/3a707a99-89da-4b16-a5d6-595333a16352/data/customers?page=2&pageSize=2 + Oracle NetSuite: + value: + results: + - id: '773' + customerName: 119 Test Customer + contactName: Mr Test Customer + defaultCurrency: GBP + addresses: [] + contacts: [] + status: Active + modifiedDate: '2023-01-30T14:48:02Z' + sourceModifiedDate: '2022-01-11T12:28:49' + - id: '172722' + customerName: 1248 European Company + contactName: European Company + defaultCurrency: GBP + addresses: [] + contacts: [] + status: Active + modifiedDate: '2023-01-30T14:48:02Z' + sourceModifiedDate: '2022-07-27T14:29:16' + pageNumber: 1 + pageSize: 2 + totalResults: 4 + _links: + current: + href: /companies/d5074b08-6a34-4b06-a742-236edf5dc4f1/data/customers?page=1&pageSize=2 + self: + href: /companies/d5074b08-6a34-4b06-a742-236edf5dc4f1/data/customers + next: + href: /companies/d5074b08-6a34-4b06-a742-236edf5dc4f1/data/customers?page=2&pageSize=2 + QuickBooks Desktop: + value: + results: + - id: 150000-933272658 + customerName: 'Abercrombie, Kristy' + contactName: Kristy Abercrombie + emailAddress: kristy@samplename.com + defaultCurrency: GBP + phone: 415-555-6579 + addresses: + - type: Delivery + line1: Kristy Abercrombie + line2: 5647 Cypress Hill Rd + city: Bayshore + region: CA + postalCode: '94326' + - type: Billing + line1: Kristy Abercrombie + line2: 5647 Cypress Hill Rd + city: Bayshore + region: CA + postalCode: '94326' + contacts: + - name: 'Abercrombie, Kristy' + email: kristy@samplename.com + phone: + - number: 415-555-6579 + type: Primary + status: Active + - name: Kristy Abercrombie + phone: [] + status: Active + - name: Steve Darcangelo + phone: [] + status: Active + status: Active + modifiedDate: '2023-04-26T09:07:55Z' + sourceModifiedDate: '2023-12-16T05:06:42' + metadata: + isDeleted: false + - id: 800000D0-1182061376 + customerName: 'Allard, Robert' + contactName: Amanda Roberts + emailAddress: rallard@myemail.com + defaultCurrency: GBP + phone: 650-555-3422 + addresses: + - type: Delivery + line1: Robert Allard + line2: 92834 Chandler St. + city: Millbrae + region: CA + postalCode: '94030' + - type: Billing + line1: Robert Allard + line2: 92834 Chandler St. + city: Millbrae + region: CA + postalCode: '94030' + contacts: + - name: 'Allard, Robert' + email: rallard@myemail.com + phone: + - number: 650-555-3422 + type: Primary + - number: 650-555-9804 + type: Fax + - number: 650-555-8349 + type: Unknown + status: Active + - name: Robert Allard + phone: [] + status: Active + - name: Rachel Fisher + phone: [] + status: Active + status: Active + modifiedDate: '2023-04-26T09:07:55Z' + sourceModifiedDate: '2023-12-16T05:06:42' + metadata: + isDeleted: false + pageNumber: 1 + pageSize: 2 + totalResults: 64 + _links: + current: + href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/data/customers?page=1&pageSize=2 + self: + href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/data/customers + next: + href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/data/customers?page=2&pageSize=2 + QuickBooks Online: + value: + results: + - id: '9' + customerName: Abe + contactName: Abraham's Company + emailAddress: ab@email.com + defaultCurrency: GBP + addresses: [] + contacts: + - name: Abe + email: ab@email.com + phone: + - number: '01111111111' + type: Mobile + status: Active + registrationNumber: XXXX9900001 + taxNumber: XXXX9900001 + status: Active + modifiedDate: '2023-01-18T11:02:35Z' + sourceModifiedDate: '2022-12-08T15:42:59Z' + - id: '49' + customerName: adeel qbo child test + contactName: Adeel test + emailAddress: adeel@adeel.com + defaultCurrency: GBP + phone: '123456789' + addresses: + - type: Billing + line1: 4 Privet Drive + city: London + country: United Kingdom + postalCode: WD25 7LR + - type: Delivery + line1: 4 Privet Drive + city: London + country: United Kingdom + postalCode: WD25 7LR + contacts: + - name: Adeel test + email: adeel@adeel.com + phone: + - number: '123456789' + type: Primary + - number: '07546543216' + type: Mobile + address: + type: Billing + line1: 4 Privet Drive + city: London + country: United Kingdom + postalCode: WD25 7LR + status: Active + status: Active + modifiedDate: '2023-01-18T11:02:35Z' + sourceModifiedDate: '2022-08-22T09:21:09Z' + pageNumber: 1 + pageSize: 2 + totalResults: 40 + _links: + current: + href: /companies/10818b5e-6e6a-4ed4-a1c5-3e3efe626e87/data/customers?page=1&pageSize=2 + self: + href: /companies/10818b5e-6e6a-4ed4-a1c5-3e3efe626e87/data/customers + next: + href: /companies/10818b5e-6e6a-4ed4-a1c5-3e3efe626e87/data/customers?page=2&pageSize=2 + QuickBooks Online Sandbox: + value: + results: + - id: '66' + customerName: Abercrombie International Group + contactName: Kristy Abercrombie + defaultCurrency: GBP + addresses: + - type: Billing + line1: 123 Main St + city: 'New York, NY' + contacts: + - name: Abercrombie International Group (deleted) + phone: [] + address: + type: Billing + line1: 123 Main St + city: 'New York, NY' + status: Archived + status: Archived + modifiedDate: '2023-04-26T09:35:56Z' + sourceModifiedDate: '2016-09-12T18:53:19Z' + metadata: + isDeleted: false + - id: '67' + customerName: Abercrombie International Group + contactName: Natalie Watts + emailAddress: n.watts@google.com + defaultCurrency: USD + addresses: + - type: Billing + - type: Delivery + contacts: + - name: Abercrombie International Group + email: n.watts@google.com + phone: [] + address: + type: Billing + status: Active + registrationNumber: XXXXVat123456 + taxNumber: XXXXVat123456 + status: Active + modifiedDate: '2023-04-26T09:35:56Z' + sourceModifiedDate: '2023-03-29T01:12:55Z' + metadata: + isDeleted: false + pageNumber: 1 + pageSize: 2 + totalResults: 243 + _links: + current: + href: /companies/5a7f3597-36e1-4216-86fe-289ad36088a6/data/customers?page=1&pageSize=2 + self: + href: /companies/5a7f3597-36e1-4216-86fe-289ad36088a6/data/customers + next: + href: /companies/5a7f3597-36e1-4216-86fe-289ad36088a6/data/customers?page=2&pageSize=2 + Sage 200cloud: + value: + results: + - id: A1D001 + customerName: A1 Design Services + contactName: Lee Dalkin + emailAddress: newbusinessadvice@sage.com + defaultCurrency: GBP + phone: 01742 876 234 + addresses: + - type: Delivery + line1: 67a Station Road + line2: '' + city: Blackpool + region: Lancashire + country: '' + postalCode: BP12 7HT + - type: Delivery + line1: 23a Union Street + line2: '' + city: Manchester + region: '' + country: '' + postalCode: M2 6JK + - type: Billing + line1: 67a Station Road + line2: '' + city: Blackpool + region: Lancashire + country: Great Britain + postalCode: BP12 7HT + contacts: + - name: Lee Dalkin + email: newbusinessadvice@sage.com + phone: + - number: 01742 876 234 + type: Landline + - number: 01742 876 235 + type: Landline + - number: 01742 876 236 + type: Fax + status: Active + - name: Malcolm Leverret + email: '' + phone: [] + status: Active + - name: Jim Thomas + email: Jim@a1designservices.co.uk + phone: + - number: 01742 876 234 + type: Landline + - number: 01742 876 235 + type: Fax + status: Active + - name: Jullian Plawsworth + email: Jullian@a1designservices.co.uk + phone: + - number: 0151 349 3939 + type: Landline + - number: 0151 349 3940 + type: Fax + status: Active + registrationNumber: '' + taxNumber: GB238 3839 38 + status: Active + modifiedDate: '2022-10-14T09:35:53Z' + sourceModifiedDate: '2022-04-27T15:17:36Z' + - id: A1D002 + customerName: A2 Design Services + contactName: Lee Dalkin + emailAddress: newbusinessadvice@sage.com + defaultCurrency: GBP + phone: 01742 876 234 + addresses: + - type: Billing + line1: 77a Station Road + line2: '' + city: Blackpool + region: Lancashire + country: Great Britain + postalCode: BP12 7HT + contacts: + - name: Lee Dalkin + email: newbusinessadvice@sage.com + phone: + - number: 01742 876 234 + type: Landline + - number: 01742 876 235 + type: Landline + - number: 01742 876 236 + type: Fax + status: Active + - name: Malcolm Leverret + email: '' + phone: [] + status: Active + - name: Jim Thomas + email: Jim@a1designservices.co.uk + phone: + - number: 01742 876 234 + type: Landline + - number: 01742 876 235 + type: Fax + status: Active + - name: Jullian Plawsworth + email: Jullian@a1designservices.co.uk + phone: + - number: 0151 349 3939 + type: Landline + - number: 0151 349 3940 + type: Fax + status: Active + registrationNumber: '' + taxNumber: GB238 3839 40 + status: Active + modifiedDate: '2022-10-14T09:35:53Z' + sourceModifiedDate: '2020-09-23T10:28:58Z' + pageNumber: 1 + pageSize: 2 + totalResults: 43 + _links: + current: + href: /companies/93c21e2d-049c-4d24-b41b-57e61c30b69e/data/customers?page=1&pageSize=2 + self: + href: /companies/93c21e2d-049c-4d24-b41b-57e61c30b69e/data/customers + next: + href: /companies/93c21e2d-049c-4d24-b41b-57e61c30b69e/data/customers?page=2&pageSize=2 + Sage 50 (UK): + value: + results: + - id: A1D001 + customerName: A1 Design Services + contactName: Ian Cairns + emailAddress: newbusinessadvice@sage.com + defaultCurrency: GBP + phone: 01742 876 234 + addresses: + - type: Delivery + line1: 67a Station Road + line2: '' + city: Blackpool + region: Lancashire + country: GB + postalCode: BP12 7HT + - type: Delivery + line1: 23a Union Street + line2: '' + city: Manchester + region: '' + country: GB + postalCode: M2 6JK + - type: Unknown + line1: 67a Station Road + line2: '' + city: Blackpool + region: Lancashire + country: GB + postalCode: BP12 7HT + contacts: [] + taxNumber: GB238 3839 38 + status: Active + modifiedDate: '2023-03-30T14:42:41Z' + sourceModifiedDate: '2022-11-25T09:43:54Z' + metadata: + isDeleted: false + - id: ABS001 + customerName: ABS Garages Ltd + contactName: Mike Hall + emailAddress: newbusinessadvice@sage.com + defaultCurrency: GBP + phone: 0191 254 5909 + addresses: + - type: Delivery + line1: Swanson Industries + line2: Dukes Industrial Estate + city: Whitley Bay + region: North Tyneside + country: GB + postalCode: NE56 4ER + - type: Delivery + line1: Unit 34 + line2: Holystone Ind Estate + city: Hebburn + region: Tyne & Wear + country: GB + postalCode: NE31 1VB + - type: Unknown + line1: Unit 34 + line2: Holystone Ind Estate + city: Hebburn + region: Tyne & Wear + country: GB + postalCode: NE31 1VB + contacts: [] + taxNumber: GB745 4584 68 + status: Active + modifiedDate: '2023-03-30T14:42:41Z' + sourceModifiedDate: '2022-11-25T09:43:54Z' + metadata: + isDeleted: false + pageNumber: 1 + pageSize: 2 + totalResults: 30 + _links: + current: + href: /companies/cf5f2a47-2990-4221-bae6-0c19c86ac304/data/customers?page=1&pageSize=2 + self: + href: /companies/cf5f2a47-2990-4221-bae6-0c19c86ac304/data/customers + next: + href: /companies/cf5f2a47-2990-4221-bae6-0c19c86ac304/data/customers?page=2&pageSize=2 + Sage Business Cloud Accounting: + value: + results: + - id: 260f6a3f94a243738f2d5e08496a41a8 + customerName: 100 test name + contactName: Main Contact + emailAddress: email@codat.io + defaultCurrency: GBP + phone: contact phone number + addresses: + - type: Billing + line1: Aruba Address line 1 + line2: Aruba Address line 2 + city: Aruba City + region: Aruba Province + country: Aruba (AW) + postalCode: Aruba Post + contacts: + - phone: + - number: contact mobile number + type: Mobile + - number: contact fax number + type: Fax + status: Unknown + status: Active + modifiedDate: '2022-10-24T14:52:54Z' + sourceModifiedDate: '2021-05-10T16:31:51Z' + - id: 44a5d9461d9e4f6d90a5ace251c5cf35 + customerName: 100 test name DS + contactName: Main Contact + emailAddress: DCemail@codat.io + defaultCurrency: GBP + phone: contact phone number + addresses: + - type: Billing + line1: POST - Aruba Address line 1 + line2: POST - Aruba Address line 2 + city: POST - Aruba City + region: Aruba Province + country: Aruba (AW) + postalCode: Aruba Post + contacts: [] + status: Active + modifiedDate: '2022-10-24T14:52:54Z' + sourceModifiedDate: '2021-06-10T14:22:46Z' + pageNumber: 1 + pageSize: 2 + totalResults: 168 + _links: + current: + href: /companies/390083e2-351b-407c-a3be-55081c36c182/data/customers?page=1&pageSize=2 + self: + href: /companies/390083e2-351b-407c-a3be-55081c36c182/data/customers + next: + href: /companies/390083e2-351b-407c-a3be-55081c36c182/data/customers?page=2&pageSize=2 + Sage Intacct: + value: + results: + - id: '188' + customerName: 33Across + contactName: Yuna Conn + defaultCurrency: USD + phone: 520-393-4468 + addresses: + - type: Unknown + line1: 155 Westend Point + line2: '' + city: Albuquerque + region: NM + country: United States + postalCode: '87140' + contacts: + - name: 'Conn, Yuna' + phone: + - number: 520-393-4468 + type: Primary + address: + type: Unknown + line1: 155 Westend Point + line2: '' + city: Albuquerque + region: NM + country: United States + postalCode: '87140' + status: Unknown + taxNumber: '' + status: Active + modifiedDate: '2023-04-04T16:32:21Z' + sourceModifiedDate: '2022-09-06T12:58:27' + metadata: + isDeleted: false + - id: '324' + customerName: 3Way International Logistics + contactName: Lauri O'Heagertie + defaultCurrency: CAD + phone: 410-309-3976 + addresses: + - type: Unknown + line1: 7 Lerdahl Junction + line2: '' + city: Sparwood + region: British Columbia + country: Canada + postalCode: L4R + contacts: + - name: 'O''Heagertie, Lauri' + phone: + - number: 410-309-3976 + type: Primary + address: + type: Unknown + line1: 7 Lerdahl Junction + line2: '' + city: Sparwood + region: British Columbia + country: Canada + postalCode: L4R + status: Unknown + taxNumber: '' + status: Active + modifiedDate: '2023-04-04T16:32:21Z' + sourceModifiedDate: '2020-10-20T05:01:49' + metadata: + isDeleted: false + pageNumber: 1 + pageSize: 2 + totalResults: 530 + _links: + current: + href: /companies/df02b289-cb16-4964-ac4d-9fd60b04538e/data/customers?page=1&pageSize=2 + self: + href: /companies/df02b289-cb16-4964-ac4d-9fd60b04538e/data/customers + next: + href: /companies/df02b289-cb16-4964-ac4d-9fd60b04538e/data/customers?page=2&pageSize=2 + Wave: + value: + results: + - id: QnVzaW5lc3M6ZTI0OGQyZDctMWE5Ni00YTk4LWFkOTEtMDdlMGYyMmNhNmE2O0N1c3RvbWVyOjMyMzkzNTA4 + customerName: ABC Textiles + contactName: '' + emailAddress: c.taylor@codat.io + defaultCurrency: USD + addresses: [] + contacts: [] + status: Active + modifiedDate: '2022-11-16T18:15:30Z' + sourceModifiedDate: '2019-10-17T07:59:04Z' + - id: QnVzaW5lc3M6ZTI0OGQyZDctMWE5Ni00YTk4LWFkOTEtMDdlMGYyMmNhNmE2O0N1c3RvbWVyOjM3MTUzNDI2 + customerName: Coffee Cart + contactName: Coffee Carl + emailAddress: coffee.cart@example.com + defaultCurrency: GBP + phone: '0201111' + addresses: + - type: Billing + line1: 11 Coffee Lane + line2: Coffee Town + city: Coffee City + region: Hampshire + country: United Kingdom + postalCode: CC1 1CC + contacts: + - name: Coffee Carl + phone: + - number: '07733' + type: Mobile + status: Active + status: Active + modifiedDate: '2022-11-16T18:15:30Z' + sourceModifiedDate: '2020-03-17T19:12:39Z' + pageNumber: 1 + pageSize: 2 + totalResults: 10 + _links: + current: + href: /companies/0b22b59d-b4e5-4c35-b03f-88bbbcb41256/data/customers?page=1&pageSize=2 + self: + href: /companies/0b22b59d-b4e5-4c35-b03f-88bbbcb41256/data/customers + next: + href: /companies/0b22b59d-b4e5-4c35-b03f-88bbbcb41256/data/customers?page=2&pageSize=2 + Xero: + value: + results: + - id: e4c9d0e2-c285-4e85-b579-6d28b180c730 + customerName: 24 Locks + emailAddress: '' + addresses: [] + contacts: [] + status: Active + modifiedDate: '2023-03-15T20:35:10Z' + sourceModifiedDate: '2023-02-17T18:03:42' + metadata: + isDeleted: false + - id: bab779bc-c5fb-42cb-a888-953e8309711c + customerName: 7-Eleven + emailAddress: '' + addresses: [] + contacts: [] + status: Active + modifiedDate: '2023-03-15T20:35:10Z' + sourceModifiedDate: '2023-02-17T18:03:42' + metadata: + isDeleted: false + pageNumber: 1 + pageSize: 2 + totalResults: 48 + _links: + current: + href: /companies/5ced9667-a310-443a-a711-958d36377141/data/customers?page=1&pageSize=2 + self: + href: /companies/5ced9667-a310-443a-a711-958d36377141/data/customers + next: + href: /companies/5ced9667-a310-443a-a711-958d36377141/data/customers?page=2&pageSize=2 + Zoho Books: + value: + results: + - id: '104957000000032105' + customerName: A B + contactName: Contact (First Name) Contact (Last Name) + emailAddress: contactperson@whateveryouwantidontcare12345.com + defaultCurrency: GBP + phone: Work Phone + addresses: [] + contacts: + - name: Contact (First Name) Contact (Last Name) + email: contactperson@whateveryouwantidontcare12345.com + phone: + - number: Work Phone + type: Landline + - number: Mobile + type: Mobile + status: Active + status: Active + modifiedDate: '2022-10-03T08:40:37Z' + sourceModifiedDate: '2022-06-09T14:36:47' + - id: '104957000000054050' + customerName: 'Doe, John' + contactName: John Doe + emailAddress: '' + defaultCurrency: GBP + addresses: [] + contacts: + - name: John Doe + email: '' + phone: [] + status: Active + status: Active + modifiedDate: '2022-10-03T08:40:37Z' + sourceModifiedDate: '2022-09-28T15:09:22' + pageNumber: 1 + pageSize: 2 + totalResults: 14 + _links: + current: + href: /companies/d0b68840-db50-4bc3-b88c-96e225333fea/data/customers?page=1&pageSize=2 + self: + href: /companies/d0b68840-db50-4bc3-b88c-96e225333fea/data/customers + next: + href: /companies/d0b68840-db50-4bc3-b88c-96e225333fea/data/customers?page=2&pageSize=2 + '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' + '409': + $ref: '#/components/responses/Conflict' + '429': + $ref: '#/components/responses/Too-Many-Requests' + '500': + $ref: '#/components/responses/Internal-Server-Error' + '503': + $ref: '#/components/responses/Service-Unavailable' + description: "The *List customers* endpoint returns a list of [customers](https://docs.codat.io/sync-for-expenses-api#/schemas/Customer) for a given company's connection.\n\n[Customers](https://docs.codat.io/sync-for-expenses-api#/schemas/Customer) are people or organizations that buy goods or services from the SMB.\n\nBefore using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/sync-for-expenses-api#/operations/refresh-company-data).\n " + operationId: list-customers + '/companies/{companyId}/data/customers/{customerId}': + parameters: + - $ref: '#/components/parameters/companyId' + - $ref: '#/components/parameters/customerId' + get: + tags: + - Customers + summary: Get customer + responses: + '200': + description: Success + content: + application/json: + schema: + $ref: '#/components/schemas/Customer' + examples: + Clear Books: + value: + id: c8180244-74ac-40cf-a5df-6d83661c44d7 + customerName: Arjun Kuvalis + contactName: Werner Langworth + emailAddress: Arjun34@hotmail.com + defaultCurrency: GBP + phone: 014605 64820 + addresses: + - type: Delivery + line1: Suite 214 + line2: 8439 Lueilwitz Passage + city: Fernandohaven + region: Northern Ireland + country: United Kingdom + postalCode: JG04 7PV + - type: Delivery + line1: Suite 096 + line2: 864 Halie Course + city: Juliochester + region: England + country: United Kingdom + postalCode: DZ8 4BF + - type: Delivery + line1: Suite 001 + line2: 416 Stokes Fords + city: Naderborough + region: Wales + country: United Kingdom + postalCode: XG25 0XX + contacts: + - name: Werner Langworth + email: Werner_Langworth@hotmail.com + phone: [] + address: + type: Delivery + line1: Apt. 145 + line2: 317 Williamson Freeway + city: Hortenseville + region: Scotland + country: United Kingdom + postalCode: CV4 2HR + status: Active + - name: Belle Glover + email: Belle51@yahoo.com + phone: [] + address: + type: Delivery + line1: Suite 075 + line2: 9921 Dickens Walk + city: South Ali + region: Scotland + country: United Kingdom + postalCode: TI04 4OO + status: Active + registrationNumber: NI7JEJVM + taxNumber: '7505220209.583549' + status: Active + modifiedDate: '2023-04-26T12:38:16Z' + sourceModifiedDate: '2022-07-03T01:27:00' + metadata: + isDeleted: false + Dynamics 365 Business Central: + value: + id: 0e2f7751-7696-ed11-bff5-6045bd0d2ad6 + customerName: '' + contactName: '' + emailAddress: '' + defaultCurrency: GBP + phone: '' + addresses: + - type: Billing + line1: '' + line2: '' + city: '' + region: '' + country: '' + postalCode: '' + contacts: + - name: '' + email: '' + phone: [] + address: + type: Billing + line1: '' + line2: '' + city: '' + region: '' + country: '' + postalCode: '' + status: Active + taxNumber: '' + status: Active + modifiedDate: '2023-03-27T14:21:25Z' + sourceModifiedDate: '2023-01-17T14:50:54Z' + metadata: + isDeleted: false + Exact (Netherlands): + value: + id: 555f8251-c65a-433a-a813-5dbe04321d1e + customerName: Ab Netherlands + defaultCurrency: EUR + addresses: + - type: Billing + country: NL + contacts: [] + status: Active + modifiedDate: '2022-10-26T13:32:05Z' + sourceModifiedDate: '2021-06-14T15:26:37Z' + Exact (UK): + value: + id: 5f20075a-a28e-434d-81a6-2db0dc170e87 + customerName: Abdi 99 + emailAddress: email@codat.io + defaultCurrency: GBP + addresses: + - type: Billing + line1: Ink Rooms + city: London + country: GB + postalCode: WC1X 0BE + contacts: [] + registrationNumber: '123456789' + taxNumber: GB339 0727 47 + status: Active + modifiedDate: '2022-10-26T13:33:08Z' + sourceModifiedDate: '2020-02-26T11:23:50Z' + FreeAgent: + value: + id: '11526230' + customerName: '-' + contactName: Test 1 + addresses: + - type: Billing + line1: 1 Place House + line2: '' + city: London + country: United Kingdom + postalCode: WC1X 1AH + contacts: + - name: Test 1 + phone: [] + address: + type: Billing + line1: 1 Place House + line2: '' + city: London + country: United Kingdom + postalCode: WC1X 1AH + status: Unknown + status: Active + modifiedDate: '2023-04-25T14:19:12Z' + sourceModifiedDate: '2023-04-17T06:02:46Z' + metadata: + isDeleted: false + FreshBooks: + value: + id: '634509' + customerName: A test customer 14 (updated) + contactName: test person name + emailAddress: test14@example.com + defaultCurrency: GBP + phone: 01876 541245 + addresses: + - type: Billing + line1: Line 1 + line2: Line 2 + city: Some city + region: A region + country: Country 1 + postalCode: SW1 2JQ + contacts: + - name: test person1 + email: test14A@example.com + phone: + - number: '24681012' + type: Primary + - number: '121086420' + type: Unknown + status: Active + - name: test person2 + email: test14B@example.com + phone: + - number: '123456789' + type: Primary + - number: '987654321' + type: Unknown + status: Active + - name: test person name + email: test14@example.com + phone: + - number: 01876 541245 + type: Unknown + status: Active + status: Active + modifiedDate: '2023-03-24T16:07:23Z' + sourceModifiedDate: '2022-05-18T09:23:56' + metadata: + isDeleted: false + KashFlow: + value: + id: '92227673' + customerName: Chekko Customer Test 01 + contactName: '' + emailAddress: '' + phone: '' + addresses: [] + contacts: + - name: '' + email: '' + phone: [] + status: Active + taxNumber: '' + status: Active + modifiedDate: '2022-09-30T10:29:15Z' + sourceModifiedDate: '0001-01-01T00:00:00' + Oracle NetSuite: + value: + id: '773' + customerName: 119 Test Customer + contactName: Mr Test Customer + defaultCurrency: GBP + addresses: [] + contacts: [] + status: Active + modifiedDate: '2023-01-30T14:48:02Z' + sourceModifiedDate: '2022-01-11T12:28:49' + QuickBooks Desktop: + value: + id: 150000-933272658 + customerName: 'Abercrombie, Kristy' + contactName: Kristy Abercrombie + emailAddress: kristy@samplename.com + defaultCurrency: GBP + phone: 415-555-6579 + addresses: + - type: Delivery + line1: Kristy Abercrombie + line2: 5647 Cypress Hill Rd + city: Bayshore + region: CA + postalCode: '94326' + - type: Billing + line1: Kristy Abercrombie + line2: 5647 Cypress Hill Rd + city: Bayshore + region: CA + postalCode: '94326' + contacts: + - name: 'Abercrombie, Kristy' + email: kristy@samplename.com + phone: + - number: 415-555-6579 + type: Primary + status: Active + - name: Kristy Abercrombie + phone: [] + status: Active + - name: Steve Darcangelo + phone: [] + status: Active + status: Active + modifiedDate: '2023-04-26T09:07:55Z' + sourceModifiedDate: '2023-12-16T05:06:42' + metadata: + isDeleted: false + QuickBooks Online: + value: + id: '9' + customerName: Abe + contactName: Abraham's Company + emailAddress: ab@email.com + defaultCurrency: GBP + addresses: [] + contacts: + - name: Abe + email: ab@email.com + phone: + - number: '01111111111' + type: Mobile + status: Active + registrationNumber: XXXX9900001 + taxNumber: XXXX9900001 + status: Active + modifiedDate: '2023-01-18T11:02:35Z' + sourceModifiedDate: '2022-12-08T15:42:59Z' + QuickBooks Online Sandbox: + value: + id: '66' + customerName: Abercrombie International Group + contactName: Kristy Abercrombie + defaultCurrency: GBP + addresses: + - type: Billing + line1: 123 Main St + city: 'New York, NY' + contacts: + - name: Abercrombie International Group (deleted) + phone: [] + address: + type: Billing + line1: 123 Main St + city: 'New York, NY' + status: Archived + status: Archived + modifiedDate: '2023-04-26T09:35:56Z' + sourceModifiedDate: '2016-09-12T18:53:19Z' + metadata: + isDeleted: false + Sage 200cloud: + value: + id: A1D001 + customerName: A1 Design Services + contactName: Lee Dalkin + emailAddress: newbusinessadvice@sage.com + defaultCurrency: GBP + phone: 01742 876 234 + addresses: + - type: Delivery + line1: 67a Station Road + line2: '' + city: Blackpool + region: Lancashire + country: '' + postalCode: BP12 7HT + - type: Delivery + line1: 23a Union Street + line2: '' + city: Manchester + region: '' + country: '' + postalCode: M2 6JK + - type: Billing + line1: 67a Station Road + line2: '' + city: Blackpool + region: Lancashire + country: Great Britain + postalCode: BP12 7HT + contacts: + - name: Lee Dalkin + email: newbusinessadvice@sage.com + phone: + - number: 01742 876 234 + type: Landline + - number: 01742 876 235 + type: Landline + - number: 01742 876 236 + type: Fax + status: Active + - name: Malcolm Leverret + email: '' + phone: [] + status: Active + - name: Jim Thomas + email: Jim@a1designservices.co.uk + phone: + - number: 01742 876 234 + type: Landline + - number: 01742 876 235 + type: Fax + status: Active + - name: Jullian Plawsworth + email: Jullian@a1designservices.co.uk + phone: + - number: 0151 349 3939 + type: Landline + - number: 0151 349 3940 + type: Fax + status: Active + registrationNumber: '' + taxNumber: GB238 3839 38 + status: Active + modifiedDate: '2022-10-14T09:35:53Z' + sourceModifiedDate: '2022-04-27T15:17:36Z' + Sage 50 (UK): + value: + id: A1D001 + customerName: A1 Design Services + contactName: Ian Cairns + emailAddress: newbusinessadvice@sage.com + defaultCurrency: GBP + phone: 01742 876 234 + addresses: + - type: Delivery + line1: 67a Station Road + line2: '' + city: Blackpool + region: Lancashire + country: GB + postalCode: BP12 7HT + - type: Delivery + line1: 23a Union Street + line2: '' + city: Manchester + region: '' + country: GB + postalCode: M2 6JK + - type: Unknown + line1: 67a Station Road + line2: '' + city: Blackpool + region: Lancashire + country: GB + postalCode: BP12 7HT + contacts: [] + taxNumber: GB238 3839 38 + status: Active + modifiedDate: '2023-03-30T14:42:41Z' + sourceModifiedDate: '2022-11-25T09:43:54Z' + metadata: + isDeleted: false + Sage Business Cloud Accounting: + value: + id: 260f6a3f94a243738f2d5e08496a41a8 + customerName: 100 test name + contactName: Main Contact + emailAddress: email@codat.io + defaultCurrency: GBP + phone: contact phone number + addresses: + - type: Billing + line1: Aruba Address line 1 + line2: Aruba Address line 2 + city: Aruba City + region: Aruba Province + country: Aruba (AW) + postalCode: Aruba Post + contacts: + - phone: + - number: contact mobile number + type: Mobile + - number: contact fax number + type: Fax + status: Unknown + status: Active + modifiedDate: '2022-10-24T14:52:54Z' + sourceModifiedDate: '2021-05-10T16:31:51Z' + Sage Intacct: + value: + id: '188' + customerName: 33Across + contactName: Yuna Conn + defaultCurrency: USD + phone: 520-393-4468 + addresses: + - type: Unknown + line1: 155 Westend Point + line2: '' + city: Albuquerque + region: NM + country: United States + postalCode: '87140' + contacts: + - name: 'Conn, Yuna' + phone: + - number: 520-393-4468 + type: Primary + address: + type: Unknown + line1: 155 Westend Point + line2: '' + city: Albuquerque + region: NM + country: United States + postalCode: '87140' + status: Unknown + taxNumber: '' + status: Active + modifiedDate: '2023-04-04T16:32:21Z' + sourceModifiedDate: '2022-09-06T12:58:27' + metadata: + isDeleted: false + Wave: + value: + id: QnVzaW5lc3M6ZTI0OGQyZDctMWE5Ni00YTk4LWFkOTEtMDdlMGYyMmNhNmE2O0N1c3RvbWVyOjMyMzkzNTA4 + customerName: ABC Textiles + contactName: '' + emailAddress: c.taylor@codat.io + defaultCurrency: USD + addresses: [] + contacts: [] + status: Active + modifiedDate: '2022-11-16T18:15:30Z' + sourceModifiedDate: '2019-10-17T07:59:04Z' + Xero: + value: + id: e4c9d0e2-c285-4e85-b579-6d28b180c730 + customerName: 24 Locks + emailAddress: '' + addresses: [] + contacts: [] + status: Active + modifiedDate: '2023-03-15T20:35:10Z' + sourceModifiedDate: '2023-02-17T18:03:42' + metadata: + isDeleted: false + Zoho Books: + value: + id: '104957000000032105' + customerName: A B + contactName: Contact (First Name) Contact (Last Name) + emailAddress: contactperson@whateveryouwantidontcare12345.com + defaultCurrency: GBP + phone: Work Phone + addresses: [] + contacts: + - name: Contact (First Name) Contact (Last Name) + email: contactperson@whateveryouwantidontcare12345.com + phone: + - number: Work Phone + type: Landline + - number: Mobile + type: Mobile + status: Active + status: Active + modifiedDate: '2022-10-03T08:40:37Z' + sourceModifiedDate: '2022-06-09T14:36:47' + '401': + $ref: '#/components/responses/Unauthorized' + '402': + $ref: '#/components/responses/Payment-Required' + '403': + $ref: '#/components/responses/Forbidden' + '404': + $ref: '#/components/responses/Not-Found' + '409': + $ref: '#/components/responses/Conflict' + '429': + $ref: '#/components/responses/Too-Many-Requests' + '500': + $ref: '#/components/responses/Internal-Server-Error' + '503': + $ref: '#/components/responses/Service-Unavailable' + description: | + The *Get customer* endpoint returns a single customer for a given customerId. - Responses are paged, so you should provide `page` and `pageSize` query parameters in your request. - type: object - allOf: - - type: object - properties: - id: - minLength: 1 - type: string - description: The unique identifier of the bank transaction. - accountId: - minLength: 1 - type: string - description: The unique identifier of the bank account. - description: - type: string - nullable: true - description: The description of the bank transaction. - amount: - type: number - format: decimal - description: The amount of the bank transaction. - currency: - minLength: 1 - type: string - description: The currency of the bank transaction. - postedDate: - $ref: '#/components/schemas/DateTime' - description: The date the bank transaction was cleared. - authorizedDate: - $ref: '#/components/schemas/DateTime' - description: The date the bank transaction was authorized. - code: - $ref: '#/components/schemas/BankingTransaction/definitions/transactionCode' - merchantName: - type: string - nullable: true - description: The name of the merchant. - transactionCategoryRef: - $ref: '#/components/schemas/BankingTransactionCategory/definitions/transactionCategoryRef' - - $ref: '#/components/schemas/CommerceOrder/allOf/3' - required: - - id - - accountId - - currency - definitions: - transactionCode: - type: string - x-internal: true - description: Code to identify the underlying transaction. - enum: - - Unknown - - Fee - - Payment - - Cash - - Transfer - - Interest - - Cashback - - Cheque - - DirectDebit - - Purchase - - StandingOrder - - Adjustment - - Credit - - Other - - NotSupported - examples: - - id: 0130b5bb-1419-40f6-8a27-7362d0381229 - accountId: 1703194f-7805-4da8-bac0-2ba5da4a4216 - description: Payments for direct income ce149943-c157-43fc-aac7-42a716b655b6 - amount: 5062.39 - currency: GBP - postedDate: '2021-07-06T00:00:00' - authorizedDate: '2021-07-06T00:00:00' - merchantName: New Look - transactionCategoryRef: - id: health-and-fitness-sports - modifiedDate: '2022-05-23T16:32:50Z' - sourceModifiedDate: '2021-06-28T10:48:12' - BankingTransactionCategories: - title: 'Banking: Transaction categories' - x-internal: true - allOf: - - type: object - properties: - results: - type: array - items: - $ref: '#/components/schemas/BankingTransactionCategory' - - $ref: '#/components/schemas/PagingInfo' - BankingTransactionCategory: - title: 'Banking: Transaction category' + [Customers](https://docs.codat.io/sync-for-expenses-api#/schemas/Customer) are people or organizations that buy goods or services from the SMB. + + Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/sync-for-expenses-api#/operations/refresh-company-data). + operationId: get-customer + '/companies/{companyId}/connections/{connectionId}/push/customers': + parameters: + - $ref: '#/components/parameters/companyId' + - $ref: '#/components/parameters/connectionId' + post: + tags: + - Customers + summary: Create customer + parameters: + - $ref: '#/components/parameters/timeoutInMinutes' + - $ref: '#/components/parameters/allowSyncOnPushComplete' + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Customer' + responses: + '200': + description: Success + content: + application/json: + schema: + $ref: '#/components/schemas/CreateCustomerResponse' + examples: {} + '400': + $ref: '#/components/responses/BadRequest' + '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' + operationId: create-customer description: |- - The Banking Transaction Categories data type provides a list of hierarchical categories associated with a transaction for greater contextual meaning to transaction activity. + The *Create customer* endpoint creates a new [customer](https://docs.codat.io/sync-for-expenses-api#/schemas/Customer) for a given company's connection. - Responses are paged, so you should provide `page` and `pageSize` query parameters in your request. - type: object - allOf: - - type: object - description: Status of the bank transaction category. - properties: - id: - minLength: 1 - type: string - description: The unique identifier of the bank transaction category. - name: - minLength: 1 - type: string - description: The name of the bank transaction category. - parentId: - type: string - nullable: true - description: The unique identifier of the parent bank transaction category. - hasChildren: - type: boolean - description: A Boolean indicating whether there are other bank transaction categories beneath this one in the hierarchy. - status: - $ref: '#/components/schemas/BankingTransactionCategory/definitions/transactionCategoryStatus' - - $ref: '#/components/schemas/CommerceOrder/allOf/3' - required: - - id - - name - definitions: - transactionCategoryRef: - type: object - x-internal: true - description: An object of bank transaction category reference data. - properties: - id: - minLength: 1 - type: string - description: The unique category reference id for the bank transaction. - name: - type: string - nullable: true - description: The category name reference for the bank transaction. - required: - - id - transactionCategoryStatus: - type: string - description: The status of the transaction category. - x-internal: true - enum: - - Unknown - - Active - - Archived - examples: - - id: auto-and-transport - name: Auto & Transport - hasChildren: true - status: Active - modifiedDate: '2022-05-23T16:32:50' - sourceModifiedDate: '2021-04-24T07:59:10' - BankingTransactions: - title: 'Banking: Transactions' - x-internal: true - allOf: - - type: object - properties: - results: - type: array - items: - $ref: '#/components/schemas/BankingTransaction' - - $ref: '#/components/schemas/PagingInfo' - BankStatementUploadConfiguration: - title: Banking data upload settings - description: Configuration settings for uploading banking data to Codat - additionalProperties: false - type: object - properties: - source: - type: string - enum: - - codat - description: The source of the banking data that determines its format - accountId: - type: string - description: The ID of the account in the third-party platform - providerId: - type: string - description: TrueLayer provider ID (only required if source is TrueLayer) - CategorizedBankStatementAccounts: - title: Categorized bank statement accounts + [Customers](https://docs.codat.io/sync-for-expenses-api#/schemas/Customer) are people or organizations that buy goods or services from the SMB. + + **Integration-specific behaviour** + + Required data may vary by integration. To see what data to post, first call [Get create/update customer model](https://docs.codat.io/sync-for-expenses-api#/operations/get-create-update-customers-model). + '/companies/{companyId}/connections/{connectionId}/push/customers/{customerId}': + parameters: + - $ref: '#/components/parameters/companyId' + - $ref: '#/components/parameters/connectionId' + - $ref: '#/components/parameters/customerId' + put: + tags: + - Customers + summary: Update customer + parameters: + - $ref: '#/components/parameters/timeoutInMinutes' + - $ref: '#/components/parameters/allowSyncOnPushComplete' + - $ref: '#/components/parameters/forceUpdate' + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Customer' + responses: + '200': + description: Success + content: + application/json: + schema: + $ref: '#/components/schemas/UpdateCustomerResponse' + examples: {} + '400': + $ref: '#/components/responses/BadRequest' + '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: |- - > **Categorization engine** - > - > The categorization engine uses machine learning and has been fully trained against Plaid and TrueLayer banking data sources. It is not fully trained against the Basiq banking data source. + The *Update customer* endpoint updates an existing [customer](https://docs.codat.io/sync-for-expenses-api#/schemas/Customer) for a given company's connection. + + [Customers](https://docs.codat.io/sync-for-expenses-api#/schemas/Customer) are people or organizations that buy goods or services from the SMB. + + **Integration-specific behaviour** + + Required data may vary by integration. To see what data to post, first call [Get create/update customer model](https://docs.codat.io/sync-for-expenses-api#/operations/get-create-update-customers-model). + operationId: update-customer + '/companies/{companyId}/data/suppliers': + parameters: + - $ref: '#/components/parameters/companyId' + get: + tags: + - Suppliers + summary: List suppliers + 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/Suppliers' + examples: + Clear Books: + value: + results: + - id: owQ2Gqgj9f + supplierName: Abshire - Kshlerin + contactName: Faye Hansen + emailAddress: hello@Abshire-Kshlerin.info + phone: 01338 858162 + addresses: + - type: Delivery + line1: Suite 431 + line2: 289 Giles Lake + city: Cesarmouth + region: Northern Ireland + country: United Kingdom + postalCode: BG40 9GP + registrationNumber: VYL1XZXR + taxNumber: '1396267523.0914588' + status: Active + modifiedDate: '2023-04-26T12:38:17Z' + sourceModifiedDate: '1660-11-28T23:18:00' + defaultCurrency: GBP + metadata: + isDeleted: false + - id: FyUkHbZxhn + supplierName: Arjun Kuvalis + contactName: Werner Langworth + emailAddress: Arjun34@hotmail.com + phone: 0116 796 3163 + addresses: + - type: Delivery + line1: Suite 214 + line2: 8439 Lueilwitz Passage + city: Fernandohaven + region: Northern Ireland + country: United Kingdom + postalCode: JG04 7PV + - type: Delivery + line1: Suite 096 + line2: 864 Halie Course + city: Juliochester + region: England + country: United Kingdom + postalCode: DZ8 4BF + - type: Delivery + line1: Suite 001 + line2: 416 Stokes Fords + city: Naderborough + region: Wales + country: United Kingdom + postalCode: XG25 0XX + registrationNumber: NI7JEJVM + taxNumber: '7505220209.583549' + status: Active + modifiedDate: '2023-04-26T12:38:17Z' + sourceModifiedDate: '0177-04-27T11:56:00' + defaultCurrency: GBP + metadata: + isDeleted: false + pageNumber: 1 + pageSize: 2 + totalResults: 100 + _links: + current: + href: /companies/354a121b-855f-4d25-90ad-0905b498c1c0/data/suppliers?page=1&pageSize=2 + self: + href: /companies/354a121b-855f-4d25-90ad-0905b498c1c0/data/suppliers + next: + href: /companies/354a121b-855f-4d25-90ad-0905b498c1c0/data/suppliers?page=2&pageSize=2 + Dynamics 365 Business Central: + value: + results: + - id: 78623f13-931e-eb11-bbf8-0022481b3585 + supplierName: '' + contactName: '' + emailAddress: '' + phone: '' + addresses: + - type: Billing + line1: '' + line2: '' + city: '' + region: '' + country: GB + postalCode: '' + taxNumber: '' + status: Active + modifiedDate: '2023-03-27T14:21:12Z' + sourceModifiedDate: '2020-11-04T11:44:22Z' + defaultCurrency: GBP + metadata: + isDeleted: false + - id: be49ec62-6754-ed11-946f-0022481b67d1 + supplierName: '' + contactName: '' + emailAddress: '' + phone: '' + addresses: + - type: Billing + line1: '' + line2: '' + city: '' + region: '' + country: GB + postalCode: '' + taxNumber: '' + status: Active + modifiedDate: '2023-03-27T14:21:12Z' + sourceModifiedDate: '2022-10-25T13:17:36Z' + defaultCurrency: GBP + metadata: + isDeleted: false + pageNumber: 1 + pageSize: 2 + totalResults: 31 + _links: + current: + href: /companies/d6849caf-c146-41be-8335-b73346e3bd84/data/suppliers?page=1&pageSize=2 + self: + href: /companies/d6849caf-c146-41be-8335-b73346e3bd84/data/suppliers + next: + href: /companies/d6849caf-c146-41be-8335-b73346e3bd84/data/suppliers?page=2&pageSize=2 + Exact (Netherlands): + value: + results: + - id: 3150917c-1d92-4d77-9018-31b5c4758ca9 + supplierName: Abe + contactName: Kelly's Contact Name + emailAddress: sales@kellysupplies.com + phone: 07999 999999 + addresses: + - type: Billing + line1: Unit 51 + city: Bakersfield + region: California + country: US + postalCode: '933081' + registrationNumber: '8409314368' + status: Active + modifiedDate: '2022-10-26T13:32:05Z' + sourceModifiedDate: '2022-07-15T12:01:15Z' + defaultCurrency: EUR + - id: 00014c12-2616-481a-a2e8-31bdf2497775 + supplierName: Ann's test supplier 2 + contactName: Ann's contact name + emailAddress: anna@anna888888.com + phone: '55555555' + addresses: + - type: Billing + line1: line1 + line2: line2 + city: city + region: region + country: RU + postalCode: postal + registrationNumber: '55566677788899944455' + taxNumber: RU4444444 + status: Active + modifiedDate: '2022-10-26T13:32:05Z' + sourceModifiedDate: '2021-06-09T12:04:08Z' + defaultCurrency: USD + pageNumber: 1 + pageSize: 2 + totalResults: 73 + _links: + current: + href: /companies/b83b1923-4db6-45a8-a779-b4e320c15979/data/suppliers?page=1&pageSize=2 + self: + href: /companies/b83b1923-4db6-45a8-a779-b4e320c15979/data/suppliers + next: + href: /companies/b83b1923-4db6-45a8-a779-b4e320c15979/data/suppliers?page=2&pageSize=2 + Exact (UK): + value: + results: + - id: 0185fea2-0298-445b-909a-0db685118a9e + supplierName: a + addresses: + - type: Billing + country: GB + status: Active + modifiedDate: '2022-10-26T13:33:13Z' + sourceModifiedDate: '2017-08-02T10:58:54Z' + defaultCurrency: GBP + - id: 64ae712f-4155-48bb-9fce-98232c51d979 + supplierName: aa + addresses: + - type: Billing + country: GB + status: Active + modifiedDate: '2022-10-26T13:33:13Z' + sourceModifiedDate: '2020-05-01T14:05:46Z' + defaultCurrency: GBP + pageNumber: 1 + pageSize: 2 + totalResults: 118 + _links: + current: + href: /companies/d95030cd-22b2-482b-9c7b-2980dcc2b1ce/data/suppliers?page=1&pageSize=2 + self: + href: /companies/d95030cd-22b2-482b-9c7b-2980dcc2b1ce/data/suppliers + next: + href: /companies/d95030cd-22b2-482b-9c7b-2980dcc2b1ce/data/suppliers?page=2&pageSize=2 + FreeAgent: + value: + results: + - id: '11526230' + supplierName: '-' + contactName: Test 1 + addresses: + - type: Billing + line1: 1 Place House + line2: '' + city: London + country: United Kingdom + postalCode: WC1X 1AH + status: Active + modifiedDate: '2023-04-25T14:19:08Z' + sourceModifiedDate: '2023-04-17T06:02:46' + metadata: + isDeleted: false + - id: '9677150' + supplierName: '-' + contactName: Test 1 + addresses: + - type: Billing + line1: 1 Place House + line2: '' + city: London + country: United Kingdom + postalCode: WC1X 1AH + status: Active + modifiedDate: '2023-04-25T14:19:08Z' + sourceModifiedDate: '2023-04-24T06:19:23' + metadata: + isDeleted: false + pageNumber: 1 + pageSize: 2 + totalResults: 159 + _links: + current: + href: /companies/071ad738-68f3-4561-afd0-69bab9df0803/data/suppliers?page=1&pageSize=2 + self: + href: /companies/071ad738-68f3-4561-afd0-69bab9df0803/data/suppliers + next: + href: /companies/071ad738-68f3-4561-afd0-69bab9df0803/data/suppliers?page=2&pageSize=2 + FreshBooks: + value: + results: + - id: api vendor + supplierName: api vendor + addresses: [] + status: Active + modifiedDate: '2023-03-24T16:07:25Z' + metadata: + isDeleted: false + - id: DUndsRykrmy8kFsc+FvYk29YkJze4zSjGecoF4YcUEhVU7auJ5JkQA0VjXptZ7XQ+D4n6WoxFIkaGY2V/t4flA== + supplierName: 'Chekko Test merchant 100 - Test Very long name: ORIG CO NAME:AMERICAN EXPRESS ORIG ID:9493560001 DESC DATE:220307 CO ENTRY DESCR:ACH PMT SEC:CCD TRACE#:021000023255482 EED:220307 IND ID:A4670 IND NAME:Rick Sanchez' + addresses: [] + status: Active + modifiedDate: '2023-03-24T16:07:25Z' + metadata: + isDeleted: false + pageNumber: 1 + pageSize: 2 + totalResults: 7 + _links: + current: + href: /companies/3691c49e-0db4-4172-b3ab-e4084c365013/data/suppliers?page=1&pageSize=2 + self: + href: /companies/3691c49e-0db4-4172-b3ab-e4084c365013/data/suppliers + next: + href: /companies/3691c49e-0db4-4172-b3ab-e4084c365013/data/suppliers?page=2&pageSize=2 + KashFlow: + value: + results: + - id: '6202387' + supplierName: Dell + contactName: '' + emailAddress: '' + phone: '' + addresses: [] + taxNumber: '' + status: Unknown + modifiedDate: '2022-09-30T10:29:15Z' + sourceModifiedDate: '2017-05-09T00:00:00' + - id: '9338173' + supplierName: Home + contactName: '' + emailAddress: '' + phone: '' + addresses: [] + taxNumber: '' + status: Unknown + modifiedDate: '2022-09-30T10:29:15Z' + sourceModifiedDate: '1990-01-01T00:00:00' + pageNumber: 1 + pageSize: 2 + totalResults: 7 + _links: + current: + href: /companies/3a707a99-89da-4b16-a5d6-595333a16352/data/suppliers?page=1&pageSize=2 + self: + href: /companies/3a707a99-89da-4b16-a5d6-595333a16352/data/suppliers + next: + href: /companies/3a707a99-89da-4b16-a5d6-595333a16352/data/suppliers?page=2&pageSize=2 + Oracle NetSuite: + value: + results: + - id: '779' + supplierName: Test Vendor + contactName: Test Vendor + emailAddress: '' + phone: '' + addresses: [] + status: Active + modifiedDate: '2023-01-30T14:47:02Z' + sourceModifiedDate: '2022-02-04T14:24:43' + defaultCurrency: GBP + - id: '726' + supplierName: Vendor -.A + contactName: Vendor -.A + emailAddress: '' + phone: '' + addresses: [] + status: Active + modifiedDate: '2023-01-30T14:47:02Z' + sourceModifiedDate: '2021-03-26T09:53:15' + defaultCurrency: GBP + pageNumber: 1 + pageSize: 2 + totalResults: 6 + _links: + current: + href: /companies/d5074b08-6a34-4b06-a742-236edf5dc4f1/data/suppliers?page=1&pageSize=2 + self: + href: /companies/d5074b08-6a34-4b06-a742-236edf5dc4f1/data/suppliers + next: + href: /companies/d5074b08-6a34-4b06-a742-236edf5dc4f1/data/suppliers?page=2&pageSize=2 + QuickBooks Desktop: + value: + results: + - id: A60000-1197760912 + supplierName: A Cheung Limited + contactName: Angela Cheung + emailAddress: AC@CheungLimited.com + phone: 510 555 5723 + addresses: + - type: Billing + line1: 'A Cheung Limited, Angela Cheung' + line2: 3818 Bear Rd. West + city: Berkeley + region: CA + postalCode: '94688' + status: Active + modifiedDate: '2023-04-26T09:09:03Z' + sourceModifiedDate: '2023-12-16T05:06:44' + defaultCurrency: GBP + metadata: + isDeleted: false + - id: A40000-1197774038 + supplierName: Bank of Anycity + contactName: Lisa D. Holzhauser + emailAddress: lisah@samplename.com + phone: 415-555-9135 + addresses: + - type: Billing + line1: 'Bank of Anycity, Lisa Holzhauser' + line2: 1935 Main Street + city: Middlefield + region: CA + postalCode: '94482' + status: Active + modifiedDate: '2023-04-26T09:09:03Z' + sourceModifiedDate: '2023-12-16T05:06:44' + defaultCurrency: GBP + metadata: + isDeleted: false + pageNumber: 1 + pageSize: 2 + totalResults: 54 + _links: + current: + href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/data/suppliers?page=1&pageSize=2 + self: + href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/data/suppliers + next: + href: /companies/fc72ba08-af13-4474-b28a-01dcfa6cfb51/data/suppliers?page=2&pageSize=2 + QuickBooks Online: + value: + results: + - id: '41' + supplierName: AI Support + contactName: AI Support + addresses: + - type: Billing + line1: test + region: string + country: Djibouti + status: Active + modifiedDate: '2023-01-18T11:02:36Z' + sourceModifiedDate: '2022-12-07T10:48:18Z' + defaultCurrency: GBP + - id: '42' + supplierName: AI Support 2 + contactName: AI Support 2 + addresses: + - type: Billing + line1: test + region: string + country: DJ + status: Active + modifiedDate: '2023-01-18T11:02:36Z' + sourceModifiedDate: '2021-08-31T08:45:02Z' + defaultCurrency: GBP + pageNumber: 1 + pageSize: 2 + totalResults: 23 + _links: + current: + href: /companies/10818b5e-6e6a-4ed4-a1c5-3e3efe626e87/data/suppliers?page=1&pageSize=2 + self: + href: /companies/10818b5e-6e6a-4ed4-a1c5-3e3efe626e87/data/suppliers + next: + href: /companies/10818b5e-6e6a-4ed4-a1c5-3e3efe626e87/data/suppliers?page=2&pageSize=2 + QuickBooks Online Sandbox: + value: + results: + - id: '129' + supplierName: Ally Johnson + contactName: Miss Smith + phone: 0728 38474 + addresses: + - type: Billing + line1: 100 London Road + line2: Angel + city: London + region: Greater London + country: England + postalCode: EC1M + status: Active + modifiedDate: '2023-04-26T09:35:55Z' + sourceModifiedDate: '2023-04-13T01:51:08Z' + defaultCurrency: GBP + metadata: + isDeleted: false + - id: '88' + supplierName: Andrew Haberbosch + addresses: [] + status: Active + modifiedDate: '2023-04-26T09:35:55Z' + sourceModifiedDate: '2022-07-06T15:55:28Z' + defaultCurrency: GBP + metadata: + isDeleted: false + pageNumber: 1 + pageSize: 2 + totalResults: 64 + _links: + current: + href: /companies/5a7f3597-36e1-4216-86fe-289ad36088a6/data/suppliers?page=1&pageSize=2 + self: + href: /companies/5a7f3597-36e1-4216-86fe-289ad36088a6/data/suppliers + next: + href: /companies/5a7f3597-36e1-4216-86fe-289ad36088a6/data/suppliers?page=2&pageSize=2 + Sage 200cloud: + value: + results: + - id: '776' + supplierName: Aaren + contactName: '' + emailAddress: '' + phone: '' + addresses: + - type: Unknown + line1: '' + line2: '' + city: '' + region: '' + country: Great Britain + postalCode: '' + taxNumber: '' + status: Archived + modifiedDate: '2022-10-14T09:35:58Z' + defaultCurrency: GBP + metadata: + isDeleted: true + - id: '914' + supplierName: Aaren + contactName: '' + emailAddress: '' + phone: '' + addresses: + - type: Unknown + line1: '' + line2: '' + city: '' + region: '' + country: Great Britain + postalCode: '' + taxNumber: '' + status: Archived + modifiedDate: '2022-10-14T09:35:58Z' + defaultCurrency: GBP + metadata: + isDeleted: true + pageNumber: 1 + pageSize: 2 + totalResults: 943 + _links: + current: + href: /companies/93c21e2d-049c-4d24-b41b-57e61c30b69e/data/suppliers?page=1&pageSize=2 + self: + href: /companies/93c21e2d-049c-4d24-b41b-57e61c30b69e/data/suppliers + next: + href: /companies/93c21e2d-049c-4d24-b41b-57e61c30b69e/data/suppliers?page=2&pageSize=2 + Sage 50 (UK): + value: + results: + - id: CON001 + supplierName: Concept Stationery Supplies + contactName: Mark Ramsay + emailAddress: newbusinessadvice@sage.com + phone: 0191 643 4343 + addresses: + - type: Delivery + line1: 66 New Street + line2: Ridgeway + city: Newcastle Upon Tyne + region: '' + country: GB + postalCode: NE1 4GF + - type: Unknown + line1: 66 New Street + line2: Ridgeway + city: Newcastle upon Tyne + region: '' + country: GB + postalCode: NE1 4GF + taxNumber: GB988 3453 23 + status: Active + modifiedDate: '2023-03-30T14:42:38Z' + sourceModifiedDate: '2022-11-25T09:43:54Z' + defaultCurrency: GBP + metadata: + isDeleted: false + - id: MCN001 + supplierName: McNally Computer Supplies + contactName: Stuart Lynn + emailAddress: newbusinessadvice@sage.com + phone: 0191 415 3434 + addresses: + - type: Delivery + line1: Station Lane Ind Est + line2: Birtley + city: Chester le Street + region: County Durham + country: GB + postalCode: DH1 3RG + - type: Unknown + line1: Station Lane Ind Est + line2: Birtley + city: Chester le Street + region: County Durham + country: GB + postalCode: DH1 3RG + taxNumber: GB455 2385 34 + status: Active + modifiedDate: '2023-03-30T14:42:38Z' + sourceModifiedDate: '2022-12-05T13:37:26Z' + defaultCurrency: GBP + metadata: + isDeleted: false + pageNumber: 1 + pageSize: 2 + totalResults: 15 + _links: + current: + href: /companies/cf5f2a47-2990-4221-bae6-0c19c86ac304/data/suppliers?page=1&pageSize=2 + self: + href: /companies/cf5f2a47-2990-4221-bae6-0c19c86ac304/data/suppliers + next: + href: /companies/cf5f2a47-2990-4221-bae6-0c19c86ac304/data/suppliers?page=2&pageSize=2 + Sage Business Cloud Accounting: + value: + results: + - id: 65179671e9ef424caff8b9006cd111c8 + supplierName: 5555 Abdul's Test Name + contactName: Main Contact + addresses: + - type: Billing + country: United Kingdom (GB) + status: Active + modifiedDate: '2022-10-24T14:52:54Z' + sourceModifiedDate: '2020-02-25T17:23:33Z' + defaultCurrency: GBP + - id: cf7f44d693904944a6a7cf3de0887964 + supplierName: Abdi Supplier + contactName: Abdi + emailAddress: abdisupplier@company.com + addresses: + - type: Billing + line1: 1 Place House + city: London + country: United Kingdom (GB) + postalCode: WC1X 1AH + status: Active + modifiedDate: '2022-10-24T14:52:54Z' + sourceModifiedDate: '2020-02-13T10:38:19Z' + defaultCurrency: GBP + pageNumber: 1 + pageSize: 2 + totalResults: 64 + _links: + current: + href: /companies/390083e2-351b-407c-a3be-55081c36c182/data/suppliers?page=1&pageSize=2 + self: + href: /companies/390083e2-351b-407c-a3be-55081c36c182/data/suppliers + next: + href: /companies/390083e2-351b-407c-a3be-55081c36c182/data/suppliers?page=2&pageSize=2 + Sage Intacct: + value: + results: + - id: '3' + supplierName: ADP + contactName: 'Jones, William' + phone: 214-760-9491 + addresses: + - type: Unknown + line1: 208 S Akard St + line2: '' + city: Dallas + region: TX + country: United States + postalCode: '75265' + registrationNumber: '' + taxNumber: 85-3678274 + status: Active + modifiedDate: '2023-04-04T16:32:20Z' + sourceModifiedDate: '2023-02-16T09:48:27' + defaultCurrency: USD + metadata: + isDeleted: false + - id: '29' + supplierName: Advisor Printing + contactName: 'Roach, Nathan' + phone: 130-202-4796 + addresses: + - type: Unknown + line1: 5 Carey Hill + line2: '' + city: Drayton Valley + region: Alberta + country: Canada + postalCode: G8V + registrationNumber: '' + taxNumber: '' + status: Active + modifiedDate: '2023-04-04T16:32:20Z' + sourceModifiedDate: '2022-06-15T11:38:29' + defaultCurrency: CAD + metadata: + isDeleted: false + pageNumber: 1 + pageSize: 2 + totalResults: 77 + _links: + current: + href: /companies/df02b289-cb16-4964-ac4d-9fd60b04538e/data/suppliers?page=1&pageSize=2 + self: + href: /companies/df02b289-cb16-4964-ac4d-9fd60b04538e/data/suppliers + next: + href: /companies/df02b289-cb16-4964-ac4d-9fd60b04538e/data/suppliers?page=2&pageSize=2 + Wave: + value: + results: + - id: QnVzaW5lc3M6ZTI0OGQyZDctMWE5Ni00YTk4LWFkOTEtMDdlMGYyMmNhNmE2O1ZlbmRvcjo2NjA0Nzk0 + supplierName: Computer Shop + contactName: '' + emailAddress: '' + addresses: [] + status: Active + modifiedDate: '2022-11-16T18:15:24Z' + sourceModifiedDate: '2020-04-07T13:28:02Z' + defaultCurrency: GBP + - id: QnVzaW5lc3M6ZTI0OGQyZDctMWE5Ni00YTk4LWFkOTEtMDdlMGYyMmNhNmE2O1ZlbmRvcjo2NjA0NzQx + supplierName: Flour Mill + contactName: '' + emailAddress: '' + addresses: [] + status: Active + modifiedDate: '2022-11-16T18:15:24Z' + sourceModifiedDate: '2020-04-07T13:12:40Z' + defaultCurrency: GBP + pageNumber: 1 + pageSize: 2 + totalResults: 9 + _links: + current: + href: /companies/0b22b59d-b4e5-4c35-b03f-88bbbcb41256/data/suppliers?page=1&pageSize=2 + self: + href: /companies/0b22b59d-b4e5-4c35-b03f-88bbbcb41256/data/suppliers + next: + href: /companies/0b22b59d-b4e5-4c35-b03f-88bbbcb41256/data/suppliers?page=2&pageSize=2 + Xero: + value: + results: + - id: e4c9d0e2-c285-4e85-b579-6d28b180c730 + supplierName: 24 Locks + emailAddress: '' + addresses: [] + status: Active + modifiedDate: '2023-03-15T20:36:09Z' + sourceModifiedDate: '2023-02-17T18:03:42' + metadata: + isDeleted: false + - id: bab779bc-c5fb-42cb-a888-953e8309711c + supplierName: 7-Eleven + emailAddress: '' + addresses: [] + status: Active + modifiedDate: '2023-03-15T20:36:09Z' + sourceModifiedDate: '2023-02-17T18:03:42' + metadata: + isDeleted: false + pageNumber: 1 + pageSize: 2 + totalResults: 48 + _links: + current: + href: /companies/5ced9667-a310-443a-a711-958d36377141/data/suppliers?page=1&pageSize=2 + self: + href: /companies/5ced9667-a310-443a-a711-958d36377141/data/suppliers + next: + href: /companies/5ced9667-a310-443a-a711-958d36377141/data/suppliers?page=2&pageSize=2 + Zoho Books: + value: + results: + - id: '104957000001494001' + supplierName: Acme Corporation + emailAddress: '' + addresses: [] + status: Active + modifiedDate: '2022-10-03T08:40:37Z' + sourceModifiedDate: '2022-09-16T13:09:56' + defaultCurrency: GBP + - id: '104957000000648001' + supplierName: Cool company + contactName: Dre + emailAddress: '' + addresses: [] + status: Active + modifiedDate: '2022-10-03T08:40:37Z' + sourceModifiedDate: '2022-06-10T09:07:16' + defaultCurrency: CAD + pageNumber: 1 + pageSize: 2 + totalResults: 6 + _links: + current: + href: /companies/d0b68840-db50-4bc3-b88c-96e225333fea/data/suppliers?page=1&pageSize=2 + self: + href: /companies/d0b68840-db50-4bc3-b88c-96e225333fea/data/suppliers + next: + href: /companies/d0b68840-db50-4bc3-b88c-96e225333fea/data/suppliers?page=2&pageSize=2 + '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' + '409': + $ref: '#/components/responses/Conflict' + '429': + $ref: '#/components/responses/Too-Many-Requests' + '500': + $ref: '#/components/responses/Internal-Server-Error' + '503': + $ref: '#/components/responses/Service-Unavailable' + description: "The *List suppliers* endpoint returns a list of [suppliers](https://docs.codat.io/sync-for-expenses-api#/schemas/Supplier) for a given company's connection.\n\n[Suppliers](https://docs.codat.io/sync-for-expenses-api#/schemas/Supplier) are people or organizations that provide something, such as a product or service.\n\nBefore using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/sync-for-expenses-api#/operations/refresh-company-data).\n " + operationId: list-suppliers + '/companies/{companyId}/data/suppliers/{supplierId}': + parameters: + - $ref: '#/components/parameters/companyId' + - $ref: '#/components/parameters/supplierId' + get: + tags: + - Suppliers + summary: Get supplier + responses: + '200': + description: Success + content: + application/json: + schema: + $ref: '#/components/schemas/Supplier' + examples: + Clear Books: + value: + id: owQ2Gqgj9f + supplierName: Abshire - Kshlerin + contactName: Faye Hansen + emailAddress: hello@Abshire-Kshlerin.info + phone: 01338 858162 + addresses: + - type: Delivery + line1: Suite 431 + line2: 289 Giles Lake + city: Cesarmouth + region: Northern Ireland + country: United Kingdom + postalCode: BG40 9GP + registrationNumber: VYL1XZXR + taxNumber: '1396267523.0914588' + status: Active + modifiedDate: '2023-04-26T12:38:17Z' + sourceModifiedDate: '1660-11-28T23:18:00' + defaultCurrency: GBP + metadata: + isDeleted: false + Dynamics 365 Business Central: + value: + id: 78623f13-931e-eb11-bbf8-0022481b3585 + supplierName: '' + contactName: '' + emailAddress: '' + phone: '' + addresses: + - type: Billing + line1: '' + line2: '' + city: '' + region: '' + country: GB + postalCode: '' + taxNumber: '' + status: Active + modifiedDate: '2023-03-27T14:21:12Z' + sourceModifiedDate: '2020-11-04T11:44:22Z' + defaultCurrency: GBP + metadata: + isDeleted: false + Exact (Netherlands): + value: + id: 3150917c-1d92-4d77-9018-31b5c4758ca9 + supplierName: Abe + contactName: Kelly's Contact Name + emailAddress: sales@kellysupplies.com + phone: 07999 999999 + addresses: + - type: Billing + line1: Unit 51 + city: Bakersfield + region: California + country: US + postalCode: '933081' + registrationNumber: '8409314368' + status: Active + modifiedDate: '2022-10-26T13:32:05Z' + sourceModifiedDate: '2022-07-15T12:01:15Z' + defaultCurrency: EUR + Exact (UK): + value: + id: 0185fea2-0298-445b-909a-0db685118a9e + supplierName: a + addresses: + - type: Billing + country: GB + status: Active + modifiedDate: '2022-10-26T13:33:13Z' + sourceModifiedDate: '2017-08-02T10:58:54Z' + defaultCurrency: GBP + FreeAgent: + value: + id: '11526230' + supplierName: '-' + contactName: Test 1 + addresses: + - type: Billing + line1: 1 Place House + line2: '' + city: London + country: United Kingdom + postalCode: WC1X 1AH + status: Active + modifiedDate: '2023-04-25T14:19:08Z' + sourceModifiedDate: '2023-04-17T06:02:46' + metadata: + isDeleted: false + FreshBooks: + value: + id: api vendor + supplierName: api vendor + addresses: [] + status: Active + modifiedDate: '2023-03-24T16:07:25Z' + metadata: + isDeleted: false + KashFlow: + value: + id: '6202387' + supplierName: Dell + contactName: '' + emailAddress: '' + phone: '' + addresses: [] + taxNumber: '' + status: Unknown + modifiedDate: '2022-09-30T10:29:15Z' + sourceModifiedDate: '2017-05-09T00:00:00' + Oracle NetSuite: + value: + id: '779' + supplierName: Test Vendor + contactName: Test Vendor + emailAddress: '' + phone: '' + addresses: [] + status: Active + modifiedDate: '2023-01-30T14:47:02Z' + sourceModifiedDate: '2022-02-04T14:24:43' + defaultCurrency: GBP + QuickBooks Desktop: + value: + id: A60000-1197760912 + supplierName: A Cheung Limited + contactName: Angela Cheung + emailAddress: AC@CheungLimited.com + phone: 510 555 5723 + addresses: + - type: Billing + line1: 'A Cheung Limited, Angela Cheung' + line2: 3818 Bear Rd. West + city: Berkeley + region: CA + postalCode: '94688' + status: Active + modifiedDate: '2023-04-26T09:09:03Z' + sourceModifiedDate: '2023-12-16T05:06:44' + defaultCurrency: GBP + metadata: + isDeleted: false + QuickBooks Online: + value: + id: '41' + supplierName: AI Support + contactName: AI Support + addresses: + - type: Billing + line1: test + region: string + country: Djibouti + status: Active + modifiedDate: '2023-01-18T11:02:36Z' + sourceModifiedDate: '2022-12-07T10:48:18Z' + defaultCurrency: GBP + QuickBooks Online Sandbox: + value: + id: '129' + supplierName: Ally Johnson + contactName: Miss Smith + phone: 0728 38474 + addresses: + - type: Billing + line1: 100 London Road + line2: Angel + city: London + region: Greater London + country: England + postalCode: EC1M + status: Active + modifiedDate: '2023-04-26T09:35:55Z' + sourceModifiedDate: '2023-04-13T01:51:08Z' + defaultCurrency: GBP + metadata: + isDeleted: false + Sage 200cloud: + value: + id: '776' + supplierName: Aaren + contactName: '' + emailAddress: '' + phone: '' + addresses: + - type: Unknown + line1: '' + line2: '' + city: '' + region: '' + country: Great Britain + postalCode: '' + taxNumber: '' + status: Archived + modifiedDate: '2022-10-14T09:35:58Z' + defaultCurrency: GBP + metadata: + isDeleted: true + Sage 50 (UK): + value: + id: CON001 + supplierName: Concept Stationery Supplies + contactName: Mark Ramsay + emailAddress: newbusinessadvice@sage.com + phone: 0191 643 4343 + addresses: + - type: Delivery + line1: 66 New Street + line2: Ridgeway + city: Newcastle Upon Tyne + region: '' + country: GB + postalCode: NE1 4GF + - type: Unknown + line1: 66 New Street + line2: Ridgeway + city: Newcastle upon Tyne + region: '' + country: GB + postalCode: NE1 4GF + taxNumber: GB988 3453 23 + status: Active + modifiedDate: '2023-03-30T14:42:38Z' + sourceModifiedDate: '2022-11-25T09:43:54Z' + defaultCurrency: GBP + metadata: + isDeleted: false + Sage Business Cloud Accounting: + value: + id: 65179671e9ef424caff8b9006cd111c8 + supplierName: 5555 Abdul's Test Name + contactName: Main Contact + addresses: + - type: Billing + country: United Kingdom (GB) + status: Active + modifiedDate: '2022-10-24T14:52:54Z' + sourceModifiedDate: '2020-02-25T17:23:33Z' + defaultCurrency: GBP + Sage Intacct: + value: + id: '3' + supplierName: ADP + contactName: 'Jones, William' + phone: 214-760-9491 + addresses: + - type: Unknown + line1: 208 S Akard St + line2: '' + city: Dallas + region: TX + country: United States + postalCode: '75265' + registrationNumber: '' + taxNumber: 85-3678274 + status: Active + modifiedDate: '2023-04-04T16:32:20Z' + sourceModifiedDate: '2023-02-16T09:48:27' + defaultCurrency: USD + metadata: + isDeleted: false + Wave: + value: + id: QnVzaW5lc3M6ZTI0OGQyZDctMWE5Ni00YTk4LWFkOTEtMDdlMGYyMmNhNmE2O1ZlbmRvcjo2NjA0Nzk0 + supplierName: Computer Shop + contactName: '' + emailAddress: '' + addresses: [] + status: Active + modifiedDate: '2022-11-16T18:15:24Z' + sourceModifiedDate: '2020-04-07T13:28:02Z' + defaultCurrency: GBP + Xero: + value: + id: e4c9d0e2-c285-4e85-b579-6d28b180c730 + supplierName: 24 Locks + emailAddress: '' + addresses: [] + status: Active + modifiedDate: '2023-03-15T20:36:09Z' + sourceModifiedDate: '2023-02-17T18:03:42' + metadata: + isDeleted: false + Zoho Books: + value: + id: '104957000001494001' + supplierName: Acme Corporation + emailAddress: '' + addresses: [] + status: Active + modifiedDate: '2022-10-03T08:40:37Z' + sourceModifiedDate: '2022-09-16T13:09:56' + defaultCurrency: GBP + '401': + $ref: '#/components/responses/Unauthorized' + '402': + $ref: '#/components/responses/Payment-Required' + '403': + $ref: '#/components/responses/Forbidden' + '404': + $ref: '#/components/responses/Not-Found' + '409': + $ref: '#/components/responses/Conflict' + '429': + $ref: '#/components/responses/Too-Many-Requests' + '500': + $ref: '#/components/responses/Internal-Server-Error' + '503': + $ref: '#/components/responses/Service-Unavailable' + description: | + The *Get supplier* endpoint returns a single supplier for a given supplierId. - The Enhanced Cash Flow accounts endpoint provides a list of accounts that categorized transactions have been taken from. - allOf: - - type: object - properties: - results: - type: array - items: - title: Account - type: object - properties: - id: - description: The ID of the account from the provider. - type: string - sourceRef: - $ref: '#/components/schemas/EnhancedCashFlowTransactions/definitions/accounts/properties/sourceRef' - platformName: - description: 'Name of the banking data source, e.g. "Plaid".' - type: string - accountProvider: - description: The bank or other financial institution providing the account. - type: string - accountName: - description: The name of the account according to the provider. - type: string - accountType: - description: 'The type of banking account, e.g. credit or debit.' - type: string - currency: - $ref: '#/components/schemas/SourceAccount/properties/currency' - description: The currency code for the bank account. - currentBalance: - description: The balance of the bank account. - type: number - format: decimal - identifiers: - $ref: '#/components/schemas/BankingAccount/definitions/accountIdentifiers' - - $ref: '#/components/schemas/PagingInfo' - example: - results: - - sourceRef: - sourceType: Banking - platformName: Banking Sandbox - accountProvider: Lloyds Bank - accountName: Business Savings Account - accountType: Debit - currency: GBP - currentBalance: 0 - - sourceRef: - sourceType: Banking - platformName: Banking Sandbox - accountProvider: Lloyds Bank - accountName: Banking - Business Credit Card - accountType: Credit - currency: GBP - currentBalance: 0 - - sourceRef: - sourceType: Banking - platformName: Banking Sandbox - accountProvider: Lloyds Bank - accountName: Business Undeposited Funds - accountType: Debit - currency: GBP - currentBalance: 0 - - sourceRef: - sourceType: Banking - platformName: Banking Sandbox - accountProvider: Lloyds Bank - accountName: Business Current Account - accountType: Debit - currency: GBP - currentBalance: 0 - pageNumber: 1 - pageSize: 10 - totalResults: 15 - _links: - self: - href: /companies/82458839-6812-49e9-baac-7dcf8c32de1f/reports/categorizedBankStatement/latest/accounts - current: - href: /companies/82458839-6812-49e9-baac-7dcf8c32de1f/reports/categorizedBankStatement/latest/accounts?page=1&pageSize=10 - next: - href: /companies/82458839-6812-49e9-baac-7dcf8c32de1f/reports/categorizedBankStatement/latest/accounts?page=2&pageSize=10 - CategorizedBankStatementTransactions: - title: Categorized bank statement transactions - description: |- - > **Categorization engine** - > - > The categorization engine uses machine learning and has been fully trained against Plaid and TrueLayer banking data sources. It is not fully trained against the Basiq banking data source. + [Suppliers](https://docs.codat.io/sync-for-expenses-api#/schemas/Supplier) are people or organizations that provide something, such as a product or service. - The Enhanced Cash Flow Transactions endpoint provides a fully categorized list of banking transactions for a company. Accounts and transaction data are obtained from the company's banking data sources. - allOf: - - type: object - properties: - results: - type: array - items: - $ref: '#/components/schemas/EnhancedCashFlowTransactions/definitions/enhancedCashFlowItem/properties/transactions/items' - - $ref: '#/components/schemas/PagingInfo' - example: - results: - - sourceRef: - sourceType: Banking - - accountRef: - id: 4f78a6b0-e9bb-40f2-82fd-f3a2daa1fd0a - name: Business Current Account - id: 3fa85f64-5717-4562-b3fc-2c963f66afa6 - date: '2023-01-25' - description: Payment to supplier - amount: 100 - currency: USD - transactionCategory: - confidence: 92.7 - levels: - - Asset - - Current - - Bank - confidences: - - 92.7 - - 95 - - 96 - platformName: Plaid - counterpartyNames: - - Counterparty - modifiedDate: '2023-01-25T22:36:05.125Z' - - sourceRef: - sourceType: Banking - - accountRef: - id: 12345678-1234-1234-1234-123456789012 - name: Business Saving Account - id: 3fa85f64-5717-4562-b3fc-2c963f66afa6 - date: '2023-01-25' - description: Payment to supplier - amount: 100 - currency: USD - transactionCategory: null - confidence: 92.7 - levels: - - Expense - - Operating - confidences: - - 92.7 - - 95 - platformName: Plaid - counterpartyNames: [] - modifiedDate: '2023-01-25T22:36:05.125Z' - pageNumber: 1 - pageSize: 100 - totalResults: 2401 - _links: - self: - href: /companies/82458839-6812-49e9-baac-7dcf8c32de1f/reports/categorizedBankStatement/latest/transactions - current: - href: /companies/82458839-6812-49e9-baac-7dcf8c32de1f/reports/categorizedBankStatement/latest/transactions?page=1&pageSize=100 - next: - href: /companies/82458839-6812-49e9-baac-7dcf8c32de1f/reports/categorizedBankStatement/latest/transactions?page=2&pageSize=100 - ClientRateLimitWebhook: - title: Client rate limit webhook - type: object - properties: - id: - type: string - format: uuid - example: 743ec94a-8aa4-44bb-8bd4-e1855ee0e74b - description: Unique identifier of the event. - eventType: - type: string - description: The type of event. - examples: - - client.rateLimit.reset - - client.rateLimit.reached - generatedDate: - $ref: '#/components/schemas/DateTime' - description: The date time in UTC the event was generated in Codat. - payload: - $ref: '#/components/schemas/ClientRateLimitWebhook/definitions/clientRateLimitWebhookPayload' - definitions: - clientRateLimitWebhookPayload: - title: Client rate limit webhook payload - type: object - properties: - dailyQuota: - type: integer - description: The number of available requests per day. - quotaRemaining: - type: integer - description: Total number of requests remaining for your client. - expiryDate: - $ref: '#/components/schemas/DateTime' - description: The date time in UTC when your daily quota is reset. - CommerceAddress: - title: 'Commerce: Address' - x-internal: true - type: object - properties: - type: - $ref: '#/components/schemas/CommerceAddress/definitions/commerceAddressType' - line1: - description: The first line of the address - type: string - line2: - description: The second line of the address - type: string - city: - description: 'The third line of the address, or city' - type: string - region: - description: 'The fourth line of the address, or region' - type: string - country: - description: The country for the address - type: string - postalCode: - description: The postal (or zip) code for the address - type: string - definitions: - commerceAddressType: - description: The type of the address - type: string - enum: - - Billing - - Delivery - - Order - - Inventory - - Unknown - CommerceCompanyInfo: - title: 'Commerce: Company profile' - description: "In the Codat system, company profile includes standard commercial details about \na linked company, such as their address, phone number, and company registration.\n" - type: object - allOf: - - type: object - properties: - companyName: - type: string - description: The name of the company - example: Codat - commercePlatformRef: - type: string - description: Identifier or reference for the company in the commerce software - companyLegalName: - type: string - description: The full legal name of the company - example: Codat Limited - addresses: - type: array - description: Addresses associated with the company - items: - $ref: '#/components/schemas/CommerceAddress' - phoneNumbers: - type: array - description: Phone numbers associated with the company - items: - $ref: '#/components/schemas/PhoneNumber' - webLinks: - description: Weblinks associated with the company - type: array - items: - $ref: '#/components/schemas/WebLink' - registrationNumber: - description: The registration number of the company - type: string - examples: - - 10480375 - baseCurrency: - $ref: '#/components/schemas/SourceAccount/properties/currency' - accountBalances: - description: The available and current cash balances for the company's accounts - type: array - items: - $ref: '#/components/schemas/CommerceCompanyInfo/definitions/accountBalance' - sourceUrls: - description: 'URL addresses for the originating system. For example, potential use cases include ''deeplinking'' to the originating system' - type: object - additionalProperties: - type: string - example: - url1: 'https://connect.sandbox.com/v2/customers' - url2: 'https://connect.sandbox.com/v2/disputes' - - $ref: '#/components/schemas/CommerceOrder/allOf/2' - - $ref: '#/components/schemas/CommerceOrder/allOf/3' - definitions: - accountBalance: - title: Account Balance - type: object - x-internal: true - properties: - available: - description: The account's current balance - type: number - format: decimal - pending: - description: Funds that are not yet available in the balance - type: number - format: decimal - reserved: - description: Funds reserved as holdings - format: decimal - currency: - description: The currency of the account - allOf: - - $ref: '#/components/schemas/SourceAccount/properties/currency' - CommerceCustomer: - title: 'Commerce: Customer' - description: 'When a customer places an order with the connected commerce store their details are added to the Customers dataset. You can use the data from the Customers endpoints to calculate key metrics, such as customer churn.' - type: object - allOf: - - $ref: '#/components/schemas/CommerceOrder/allOf/0' - - type: object - properties: - customerName: - type: string - description: Name of the customer - example: Fred Smith - emailAddress: - type: string - description: Email address of the customer - example: fred.smith@myCompany.com - phone: - $ref: '#/components/schemas/PhoneNumber/properties/number' - defaultCurrency: - allOf: - - description: "Default currency of any transactional data for the customer, \nfor example, orders or payments\n" - - $ref: '#/components/schemas/SourceAccount/properties/currency' - addresses: - type: array - description: Addresses of the customer - items: - $ref: '#/components/schemas/CommerceAddress' - note: - type: string - description: Any additional information about the customer - - $ref: '#/components/schemas/CommerceOrder/allOf/2' - - $ref: '#/components/schemas/CommerceOrder/allOf/3' - definitions: - commerceCustomerRef: - type: object - description: Reference to the customer that placed the order. - properties: - id: - description: The unique identitifer of the customer being referenced - type: string - examples: - - 13d946f0-c5d5-42bc-b092-97ece17923ab - - 9wg4lep4ush5cxs79pl8sozmsndbaukll3ind4g7buqbm1h2 - - 7110701885 - - EILBDVJVNUAGVKRQ - name: - description: Name of the customer being referenced. - type: string - required: - - id - examples: - - customers: - - id: '15' - customerName: Daffy Duck - emailAddress: d.duck@warnerbros.com - defaultCurrency: GBP - phone: (877) 492-8687 - addresses: - - type: billing - line1: 301 Duck Pond - line2: 28 Green Street - city: London - region: England - country: United Kingdom - postalCode: WX1X 0BE - - type: delivery - line1: Bread Street - line2: Bird Avenue - city: Paris - region: France - country: France - postalCode: WDF 123 - note: Regular customer - createdDate: '0001-01-01T00:00:00' - modifiedDate: null - sourceModifiedDate: '2020-09-15T23:52:28' - - id: '18' - customerName: Tasmanian Devil - emailAddress: t.devil@warnerbros.com - defaultCurrency: GBP - phone: +1-202-555-0181 - addresses: - - type: billing - line1: 101 Fire Rooms - line2: Engine Street - city: London - region: England - country: United Kingdom - postalCode: WC1X 0BE - note: Handle with care - createdDate: '0001-01-01T00:00:00' - modifiedDate: null - sourceModifiedDate: '2020-04-16T02:41:52' - - id: a99f5e0c-a4db-452f-8d2c-8fd15482b384 - customerName: Bugs Bunny - emailAddress: b.bunny@warnerbros.com - defaultCurrency: GBP - phone: '' - addresses: - - type: billing - line1: 301 Carrot Street - line2: Orange Town - city: Yorkshire - region: England - country: United Kingdom - postalCode: WF1X 0BE - - type: delivery - line1: 424 Field Street - line2: The Meadow - city: Paris - region: France - country: France - postalCode: WDF 123 - note: Regular customer - createdDate: '0001-01-01T00:00:00' - modifiedDate: null - sourceModifiedDate: '2020-08-12T14:37:37' - CommerceCustomers: - title: 'Commerce: Customers' - x-internal: true - allOf: - - type: object - properties: - results: - type: array - items: - $ref: '#/components/schemas/CommerceCustomer' - - $ref: '#/components/schemas/PagingInfo' - CommerceDispute: - title: 'Commerce: Dispute' - description: "A customer may file a payment dispute with their bank or other card issuer when they're unsatisfied with their purchase or believe they have been charged incorrectly. For example: \n- They didn't receive an order. \n- The product they received was different to the commerce store's description. \n- They've been the victim of online fraud. \n\nYou can use data from the Disputes endpoints to calculate key metrics, such as the number of chargebacks." - type: object - allOf: - - $ref: '#/components/schemas/CommerceOrder/allOf/0' - - type: object - required: - - currency - properties: - disputedTransactions: - description: Link to the source event(s) which triggered this transaction. - type: array - items: - $ref: '#/components/schemas/CommerceTransaction/definitions/transactionSourceRef' - totalAmount: - description: Total transaction amount that is under dispute. - format: decimal - examples: - - 194.12 - - -283.56 - - 0 - currency: - description: Currency of the disputed transaction. - $ref: '#/components/schemas/SourceAccount/properties/currency' - status: - $ref: '#/components/schemas/CommerceDispute/definitions/disputeStatus' - reason: - description: Reason for the dispute - type: string + Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/sync-for-expenses-api#/operations/refresh-company-data). + operationId: get-supplier + '/companies/{companyId}/connections/{connectionId}/push/suppliers': + parameters: + - $ref: '#/components/parameters/companyId' + - $ref: '#/components/parameters/connectionId' + post: + tags: + - Suppliers + parameters: + - $ref: '#/components/parameters/timeoutInMinutes' + - $ref: '#/components/parameters/allowSyncOnPushComplete' + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Supplier' examples: - - Unhappy with product - dueDate: - description: Date when the next action in the dispute resolution is due - $ref: '#/components/schemas/DateTime' - - $ref: '#/components/schemas/CommerceOrder/allOf/2' - - $ref: '#/components/schemas/CommerceOrder/allOf/3' - definitions: - disputeStatus: - description: Current status of the dispute - x-internal: true - type: string - enum: - - Won - - Lost - - Accepted - - Processing - - ChargeRefunded - - EvidenceRequired - - InquiryEvidenceRequired - - InquiryProcessing - - InquiryClosed - - WaitingThirdParty - - Unknown - example: EvidenceRequired - examples: - - id: 03e608e3-bd1c-454f-8c2b-fb0133e43b95 - disputedTransactions: - - id: e63ad857-7e12-4e64-9185-cdfd7c45d09d - type: Order - totalAmount: -47.66 - currency: GBP - status: InquiryEvidenceRequired - reason: Unhappy with product - dueDate: '2021-03-29T14:39:55' - createdDate: '2021-03-22T14:39:55' - modifiedDate: '2022-02-02T11:02:45Z' - sourceModifiedDate: '2021-03-22T14:39:55' - CommerceDisputes: - title: 'Commerce: Disputes' - x-internal: true - allOf: - - type: object - properties: - results: - type: array - items: - $ref: '#/components/schemas/CommerceDispute' - - $ref: '#/components/schemas/PagingInfo' - CommerceLocation: - title: 'Commerce: Location' - type: object - description: |- - The Location datatype holds information on the geographic location at which stocks of products may be held, as referenced in the Products data type. - - A Location also holds information on geographic locations where orders were placed, as referenced in the Orders data type. - allOf: - - $ref: '#/components/schemas/CommerceOrder/allOf/0' - - type: object - properties: - name: - description: Name of this location - type: string - address: - description: Address associated with the location - $ref: '#/components/schemas/CommerceAddress' - - $ref: '#/components/schemas/CommerceOrder/allOf/3' - definitions: - locationRef: - type: object - description: Reference to the geographic location where the order was placed. - properties: - id: - description: The unique identitifer of the location being referenced. - type: string - examples: - - 13d946f0-c5d5-42bc-b092-97ece17923ab - - 9wg4lep4ush5cxs79pl8sozmsndbaukll3ind4g7buqbm1h2 - - 7110701885 - - EILBDVJVNUAGVKRQ - name: - description: Name of the location being referenced. - type: string - required: - - id - examples: - - id: '15' - name: London Warehouse - address: - type: Inventory - line1: Warner House - line2: 98 Theobald's Road - city: London - region: '' - country: United Kingdom - postalCode: WC1X 8WB - modifiedDate: '2020-08-12T14:37:37' - sourceModifiedDate: '2020-08-12T14:37:37' - CommerceLocations: - title: 'Commerce: Locations' - x-internal: true - allOf: - - type: object - properties: - results: - type: array - items: - $ref: '#/components/schemas/CommerceLocation' - - $ref: '#/components/schemas/PagingInfo' - CommerceOrder: - title: 'Commerce: Order' - description: | - Orders contain the transaction details for all products sold by the company, and include details of any payments, service charges, or refunds related to each order. You can use data from the Orders endpoints to calculate key metrics, such as gross sales values and monthly recurring revenue (MRR). - allOf: - - type: object - x-stoplight: - id: 516bf0ecc4907 - required: - - id - properties: - id: - type: string - description: 'A unique, persistent identifier for this record' + Sage Intacct: + value: + id: '73593' + supplierName: test 20230420 1004 + contactName: Joe Bloggs + status: Active + responses: + '200': + description: Success + content: + application/json: + schema: + $ref: '#/components/schemas/CreateSupplierResponse' + examples: {} + '400': + $ref: '#/components/responses/BadRequest' + '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' + summary: Create supplier + description: "The *Create supplier* endpoint creates a new [supplier](https://docs.codat.io/sync-for-expenses-api#/schemas/Supplier) for a given company's connection.\r\n\r\n[Suppliers](https://docs.codat.io/sync-for-expenses-api#/schemas/Supplier) are people or organizations that provide something, such as a product or service.\r\n\r\n**Integration-specific behaviour**\r\n\r\nRequired data may vary by integration. To see what data to post, first call [Get create/update supplier model](https://docs.codat.io/sync-for-expenses-api#/operations/get-create-update-suppliers-model).\r\n" + operationId: create-supplier + '/companies/{companyId}/connections/{connectionId}/push/suppliers/{supplierId}': + parameters: + - $ref: '#/components/parameters/companyId' + - $ref: '#/components/parameters/connectionId' + - $ref: '#/components/parameters/supplierId' + put: + tags: + - Suppliers + parameters: + - $ref: '#/components/parameters/timeoutInMinutes' + - $ref: '#/components/parameters/allowSyncOnPushComplete' + - $ref: '#/components/parameters/forceUpdate' + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Supplier' + responses: + '200': + description: Success + content: + application/json: + schema: + $ref: '#/components/schemas/UpdateSupplierResponse' + examples: {} + '400': + $ref: '#/components/responses/BadRequest' + '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' + summary: Update supplier + description: "The *Update supplier* endpoint updates an existing [supplier](https://docs.codat.io/sync-for-expenses-api#/schemas/Supplier) for a given company's connection.\r\n\r\n[Suppliers](https://docs.codat.io/sync-for-expenses-api#/schemas/Supplier) are people or organizations that provide something, such as a product or service.\r\n\r\n**Integration-specific behaviour**\r\n\r\nRequired data may vary by integration. To see what data to post, first call [Get create/update supplier model](https://docs.codat.io/sync-for-expenses-api#/operations/get-create-update-suppliers-model)." + operationId: update-supplier +webhooks: + expenses.sync.successful: + post: + description: Called when an expense sync successfully completes without any errors or warnings. + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ExpensesSyncWebhook' examples: - - 13d946f0-c5d5-42bc-b092-97ece17923ab - - 9wg4lep4ush5cxs79pl8sozmsndbaukll3ind4g7buqbm1h2 - - 7110701885 - - EILBDVJVNUAGVKRQ - x-codat-validation: - - validator: UniqueWithinConnection - - properties: - orderNumber: - type: string - description: Friendly reference for the order in the commerce or point of sale platform. - country: - description: "The Codat country property is returned as it was provided in the underlying platform by the company without any formatting on our part.\n\nDepending on the platform the value of this property will either be an ISO 3166 code (2-alpha or 3-alpha) or free-form text returned as a string name in our model. \n\nFor POST operations against platforms that demand a specific format for the country code, we have documented accepted values in the [options](https://docs.codat.io/lending-api#/operations/get-companies-companyId-connections-connectionId-push) endpoint." - type: string - format: ISO3166 Alpha-3 + Successful: + value: + id: ba29118f-5406-4e59-b05c-ba307ca38d01 + eventType: expenses.sync.successful + generatedDate: '2024-09-01T00:00:00Z' + payload: + referenceCompany: + id: 0498e921-9b53-4396-a412-4f2f5983b0a2 + name: Toft stores + description: Syncing expenses + syncId: ee2eb431-c0fa-4dc9-93fa-d29781c12bcd + transactions: + - id: f47ac10b-58cc-4372-a567-0e02b2c3d479 + status: Completed + errorMessage: null + - id: e7f8a3d5-0c3c-4c9b-b5d3-56b4a43b62e4 + status: Completed + errorMessage: null + responses: + '200': + description: Return a 200 status to indicate that the webhook was received successfully. + expenses.sync.unsuccessful: + post: + description: 'Called when an expense sync fails to complete successfully, resulting in at least one error or warning.' + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ExpensesSyncWebhook' examples: - - GBR - - USA - - ABW - currency: - allOf: - - $ref: '#/components/schemas/SourceAccount/properties/currency' - - description: Currency in which the order was placed. - closedDate: - $ref: '#/components/schemas/DateTime' - description: 'Date on which order was closed after the product was shipped, paid for, and any refund period had elapsed.' - totalAmount: - description: 'Total amount of the order, including discounts, refunds, and tax, but excluding gratuities.' - type: number - format: decimal - totalRefund: - description: 'Total amount of any refunds issued on the order, including discounts and tax, but excluding gratuities. This is always negative.' - type: number - format: decimal - totalTaxAmount: - description: Total amount of tax applied to the order. - type: number - format: decimal - totalDiscount: - description: 'Total amount of any discounts applied to the order, excluding tax. This is typically positive (for discounts which decrease the amount of the order), but can also be negative (for discounts which increase the amount of the order).' - type: number - format: decimal - totalGratuity: - description: Extra amount added to the order. - type: number - format: decimal - orderLineItems: - type: array - items: - $ref: '#/components/schemas/CommerceOrder/definitions/orderLineItem' - payments: - type: array - items: - $ref: '#/components/schemas/CommercePayment/definitions/paymentRef' - serviceCharges: - type: array - items: - $ref: '#/components/schemas/CommerceOrder/definitions/serviceCharge' - locationRef: - $ref: '#/components/schemas/CommerceLocation/definitions/locationRef' - customerRef: - $ref: '#/components/schemas/CommerceCustomer/definitions/commerceCustomerRef' - supplementalData: - $ref: '#/components/schemas/SupplementalData' - - title: Created date - type: object - x-internal: true - properties: - createdDate: - $ref: '#/components/schemas/DateTime' - description: The date the entity was created. - - title: Modified dates - x-internal: true - allOf: - - title: ModifiedDate - x-internal: true - type: object - properties: - modifiedDate: - allOf: - - $ref: '#/components/schemas/DateTime' - - description: |- - The date when the record was last fetched from the accounting software, commerce software, or open banking provider and updated in Codat’s data cache. - - Use it to identify and retrieve records that have changed since your last fetch. For example, filtering `modifiedDate` to today will provide new records updated in Codat today. - - This date is populated for all data types except for attachments, balance sheets, company information, and profit & loss reports ([read more](https://docs.codat.io/using-the-api/modified-dates#modified-date)). - - In Codat's data model, dates and times are represented using the ISO 8601 standard. - - title: Source Modified Date - x-internal: true - type: object - nullable: true - properties: - sourceModifiedDate: - allOf: - - $ref: '#/components/schemas/DateTime' - - description: "The date when a record was last modified in the accounting software, usually by the business or a business process. For example, when payments are made against an invoice. \n\nIt is not populated ([read more](https://docs.codat.io/using-the-api/modified-dates#source-modified-date)) when:\n - Pulling attachments\n - The accounting software does not provide modification dates for a data type\n - A record has been deleted from the source platform and Codat doesn't have a record of when the deletion occurred\n - A record has been voided. For certain platforms that soft delete records, `isDeleted` metadata is used to identify void records\n\nIn Codat's data model, dates and times are represented using the ISO 8601 standard." - definitions: - orderLineItem: - allOf: - - $ref: '#/components/schemas/CommerceOrder/allOf/0' - - type: object - properties: - quantity: - type: number - format: decimal - description: | - Number of units of the product sold. - For refunds, quantity is negative. - taxPercentage: - type: number - format: decimal - description: Percentage rate (from 0 to 100) of any sales tax applied to the unit price. - examples: - - 0 - - 12.5 - - '45.00' - totalAmount: - type: number - format: decimal - description: 'Total amount of the line item, including discounts and tax.' - totalTaxAmount: - type: number - format: decimal - description: 'Total amount of tax applied to the line item, factoring in any discounts.' - unitPrice: - type: number - format: decimal - description: 'Price per unit of goods or services, excluding discounts and tax.' - taxes: - type: array - items: - $ref: '#/components/schemas/CommerceTaxComponent/definitions/taxComponentAllocation' - description: Taxes breakdown as applied to order lines. - productRef: - $ref: '#/components/schemas/CommerceProduct/definitions/productRef' - productVariantRef: - $ref: '#/components/schemas/CommerceProduct/definitions/productVariantRef' - discountAllocations: - type: array - items: - $ref: '#/components/schemas/CommerceOrder/definitions/orderDiscountAllocation' - serviceCharge: - type: object - properties: - description: - description: Service charges for this order. - type: string - example: A service charge - totalAmount: - description: 'Total amount of the service charge, including tax.' - type: number - format: decimal - examples: - - 0 - - 12.5 - - 45 - taxPercentage: - description: Percentage rate (from 0 to 100) of any tax applied to the service charge. - type: number - format: decimal - examples: - - 0 - - 12.5 - - 45 - taxAmount: - description: Amount of the service charge that is tax. - type: number - format: decimal - examples: - - 0 - - 12.5 - - 45 - taxes: - description: Taxes breakdown as applied to service charges. - type: array - items: - $ref: '#/components/schemas/CommerceTaxComponent/definitions/taxComponentAllocation' - quantity: - description: The number of times the charge is charged. - type: integer - examples: - - 1 - - 12 - - 45 - type: - $ref: '#/components/schemas/CommerceOrder/definitions/serviceChargeType' - serviceChargeType: - description: The type of the service charge. - type: string - enum: - - Generic - - Shipping - - Overpayment - - Unknown - example: Overpayment - orderDiscountAllocation: - type: object - properties: - name: - type: string - description: Name of the discount in the commerce or point of sale platform. - example: Promotional Discount - totalAmount: - type: number - format: decimal - description: 'Total amount of discount applied, excluding tax. This is typically positive (for discounts which decrease the amount of the order line), but can also be negative (for discounts which increase the amount of the order line).' - example: 15.25 - examples: - - id: 01e63721-1205-478e-8503-9d8bf8a93f44 - orderNumber: '99123956' - country: CAN - currency: CAD - createdDate: '2021-03-28T03:00:14' - totalAmount: 12 - totalRefund: 0 - totalTaxAmount: 2 - totalDiscount: 0 - totalGratuity: 1 - orderLineItems: - - id: 116113a6-54d3-4624-ba73-26a77a5ffd51 - quantity: 1 - taxPercentage: 20 - totalAmount: 12 - totalTaxAmount: 2 - unitPrice: 10 - taxes: - - taxComponentRef: - id: '72' - name: Sales Tax - taxAmount: '' - - taxComponentRef: - id: '72' - name: City Tax - taxAmount: '' - productRef: - id: ac186646-41f2-4280-afea-1012c59459ab - name: Intelligent Concrete Salad - productVariantRef: - id: f9ca9de5-9e31-460d-ac81-368f4e7c8fc0 - name: Small Incredible Wooden Soap - discountAllocations: [] - payments: - - id: defdceb6-83a3-4b7d-a74e-e9ef947d5f48 - amount: 12 - currency: CAD - type: Paypal - status: Unknown - dueDate: '2021-04-04T03:00:14' - createdDate: '2021-03-28T03:00:14' - modifiedDate: '2022-02-02T11:02:45' - serviceCharges: - - description: Service Charge - totalAmount: 1.2 - taxPercentage: 20 - taxAmount: 0.2 - taxes: - - taxComponentRef: - id: '72' - name: Service Tax - taxAmount: '' - quantity: 1 - type: Generic - locationRef: - id: 47bbffc7-c045-4b0f-a3bb-ecf1f669edfa - customerRef: - id: 2634d180-7205-43f0-a73d-84af6443a005 - name: Emmy Roberts - modifiedDate: '2022-02-02T11:02:45Z' - sourceModifiedDate: '2021-03-28T03:00:14' - type: object - CommerceOrders: - title: 'Commerce: Orders' - x-internal: true - allOf: - - type: object - properties: - results: - type: array - items: - $ref: '#/components/schemas/CommerceOrder' - - $ref: '#/components/schemas/PagingInfo' - CommercePayment: - title: 'Commerce: Payment' + Unsuccessful: + value: + id: ba29118f-5406-4e59-b05c-ba307ca38d01 + eventType: expenses.sync.unsuccessful + generatedDate: '2024-09-01T00:00:00Z' + payload: + referenceCompany: + id: 0498e921-9b53-4396-a412-4f2f5983b0a2 + name: Toft stores + description: Syncing expenses + syncId: ee2eb431-c0fa-4dc9-93fa-d29781c12bcd + transactions: + - id: f47ac10b-58cc-4372-a567-0e02b2c3d479 + status: Completed + errorMessage: null + - id: e7f8a3d5-0c3c-4c9b-b5d3-56b4a43b62e4 + status: Failed + errorMessage: Insufficient funds + responses: + '200': + description: Return a 200 status to indicate that the webhook was received successfully. + SyncCompleted: + post: + deprecated: true description: |- - Payments contain details of all payments made by customers to a company, including: amounts, currency used, payment method, payment provider, and payment status. + Triggered anytime an expense sync completes. Used for Sync for Expenses only. - Refunds are recorded as separate, negative payments. Note that a refund can only occur in relation to a payment that has been completed (i.e. has a status of `Paid`). When a customer cancels an order _before_ a payment has been completed, the payment shows as `Cancelled`. + > This event type is deprecated. Use the `expenses.sync.successful` to get notified when an expense sync completes successfully. + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/SyncCompleteWebhook' + responses: + '200': + description: Return a 200 status to indicate that the webhook was received successfully. + SyncFailed: + post: + deprecated: true + description: |- + Indicates a failure occurred during an expense sync. Used for Sync for Expenses only. - You can use data from the Payments endpoints to calculate key metrics, such as gross sales and monthly recurring revenue (MRR). - type: object - allOf: - - $ref: '#/components/schemas/CommerceOrder/allOf/0' - - type: object - properties: - amount: - type: number - format: decimal - description: Payment Amount (including gratuity) + > This event type is deprecated. Use the `expenses.sync.unsuccessful` to get notified when an expense sync completes unsuccessfully. + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/SyncFailedWebhook' + responses: + '200': + description: Return a 200 status to indicate that the webhook was received successfully. + client.rateLimit.reached: + post: + description: Called when your client’s request count to Codat's API surpasses the allocated quota. + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ClientRateLimitWebhook' examples: - - 194.12 - - -283.56 - - 0 - currency: - $ref: '#/components/schemas/SourceAccount/properties/currency' - description: Currency in which the payment was made - paymentMethodRef: - $ref: '#/components/schemas/PaymentMethodRef' - status: - $ref: '#/components/schemas/CommercePayment/definitions/paymentStatus' - paymentProvider: - type: string - description: 'Service provider of the payment, if applicable.' + Reached: + value: + id: 743ec94a-8aa4-44bb-8bd4-e1855ee0e74b + eventType: client.rateLimit.reached + generatedDate: '2024-09-01T00:00:00Z' + payload: + dailyQuota: 12000 + quotaRemaining: 0 + expiryDate: '2024-09-01T12:14:14Z' + responses: + '200': + description: Return a 200 status to indicate that the webhook was received successfully. + client.rateLimit.reset: + post: + description: 'Called when your client''s rate limit quota is reset, allowing additional requests to Codat''s API.' + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ClientRateLimitWebhook' examples: - - Amazon Pay - - Checkout.com - - SagePay - dueDate: - description: Date by which payment must be made - $ref: '#/components/schemas/DateTime' - supplementalData: - $ref: '#/components/schemas/SupplementalData' - - $ref: '#/components/schemas/CommerceOrder/allOf/2' - - $ref: '#/components/schemas/CommerceOrder/allOf/3' - definitions: - paymentStatus: - type: string - x-internal: true - description: Status of the payment. - enum: - - Pending - - Authorized - - Paid - - Failed - - Cancelled - - Unknown - paymentType: - type: string - x-internal: true - nullable: true - description: Type of payment. - enum: - - Cash - - Card - - Invoice - - OnlineCard - - Swish - - Vipps - - Mobile - - StoreCredit - - Paypal - - Custom - - Prepaid - - Unknown - example: Cash - paymentRef: - x-internal: true - allOf: - - $ref: '#/components/schemas/CommerceOrder/allOf/0' - - type: object - properties: - amount: - type: number - format: decimal - nullable: true - description: Payment Amount (including gratuity). - examples: - - 194.12 - - -283.56 - - 0 - currency: - $ref: '#/components/schemas/SourceAccount/properties/currency' - description: Currency in which the payment was made. - type: - $ref: '#/components/schemas/CommercePayment/definitions/paymentType' - status: - $ref: '#/components/schemas/CommercePayment/definitions/paymentStatus' - paymentProvider: - type: string - description: 'Service provider of the payment, if applicable.' - examples: - - Amazon Pay - - Checkout.com - - SagePay - dueDate: - description: Date by which payment must be made - $ref: '#/components/schemas/DateTime' - - $ref: '#/components/schemas/CommerceOrder/allOf/2' - - $ref: '#/components/schemas/CommerceOrder/allOf/3' - CommercePaymentMethod: - title: 'Commerce: Payment method' - description: A Payment Method represents the payment method(s) used to make payments. - type: object + Reset: + value: + id: 743ec94a-8aa4-44bb-8bd4-e1855ee0e74b + eventType: client.rateLimit.reset + generatedDate: '2024-09-01T00:00:00Z' + payload: + dailyQuota: 12000 + quotaRemaining: 11993 + expiryDate: '2024-09-01T23:59:99Z' + responses: + '200': + description: Return a 200 status to indicate that the webhook was received successfully. + Client rate limit reached: + post: + deprecated: true + description: "Called when your client’s requests to Codat's API exceed the allocated quota. \n\n**Note: This event type is deprecated. Developers should now use the `client.rateLimit.reached` event for handling rate limit notifications.**" + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ClientRateLimitReachedWebhook' + responses: + '200': + description: Return a 200 status to indicate that the webhook was received successfully. + Client rate limit reset: + post: + deprecated: true + description: |- + Called when the rate limit quota has reset for the client, and more requests to Codat's API are available. + + Note: This event type is deprecated. Developers should now use the `client.rateLimit.reset` event for handling rate limit notifications. + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ClientRateLimitResetWebhook' + responses: + '200': + description: Return a 200 status to indicate that the webhook was received successfully. +components: + schemas: + Account: + title: 'Accounting: Account' + description: "\uFEFF\x3E\x20\x2A\x2A\x4C\x61\x6E\x67\x75\x61\x67\x65\x20\x74\x69\x70\x3A\x2A\x2A\x20\x41\x63\x63\x6F\x75\x6E\x74\x73\x20\x61\x72\x65\x20\x61\x6C\x73\x6F\x20\x72\x65\x66\x65\x72\x72\x65\x64\x20\x74\x6F\x20\x61\x73\x20\x2A\x2A\x63\x68\x61\x72\x74\x20\x6F\x66\x20\x61\x63\x63\x6F\x75\x6E\x74\x73\x2A\x2A\x2C\x20\x2A\x2A\x6E\x6F\x6D\x69\x6E\x61\x6C\x20\x61\x63\x63\x6F\x75\x6E\x74\x73\x2A\x2A\x2C\x20\x61\x6E\x64\x20\x2A\x2A\x67\x65\x6E\x65\x72\x61\x6C\x20\x6C\x65\x64\x67\x65\x72\x2A\x2A\x2E\n\n\x23\x23\x20\x4F\x76\x65\x72\x76\x69\x65\x77\n\n\x41\x63\x63\x6F\x75\x6E\x74\x73\x20\x61\x72\x65\x20\x74\x68\x65\x20\x63\x61\x74\x65\x67\x6F\x72\x69\x65\x73\x20\x61\x20\x62\x75\x73\x69\x6E\x65\x73\x73\x20\x75\x73\x65\x73\x20\x74\x6F\x20\x72\x65\x63\x6F\x72\x64\x20\x61\x63\x63\x6F\x75\x6E\x74\x69\x6E\x67\x20\x74\x72\x61\x6E\x73\x61\x63\x74\x69\x6F\x6E\x73\x2E\x20\x46\x72\x6F\x6D\x20\x74\x68\x65\x20\x41\x63\x63\x6F\x75\x6E\x74\x73\x20\x65\x6E\x64\x70\x6F\x69\x6E\x74\x73\x2C\x20\x79\x6F\x75\x20\x63\x61\x6E\x20\x72\x65\x74\x72\x69\x65\x76\x65\x20\x61\x20\x6C\x69\x73\x74\x20\x6F\x66\x20\x61\x6C\x6C\x20\x61\x63\x63\x6F\x75\x6E\x74\x73\x20\x66\x6F\x72\x20\x61\x20\x73\x70\x65\x63\x69\x66\x69\x65\x64\x20\x63\x6F\x6D\x70\x61\x6E\x79\x2E\n\n\x54\x68\x65\x20\x63\x61\x74\x65\x67\x6F\x72\x69\x65\x73\x20\x66\x6F\x72\x20\x61\x6E\x20\x61\x63\x63\x6F\x75\x6E\x74\x20\x69\x6E\x63\x6C\x75\x64\x65\x3A\n\x2A\x20\x41\x73\x73\x65\x74\n\x2A\x20\x45\x78\x70\x65\x6E\x73\x65\n\x2A\x20\x49\x6E\x63\x6F\x6D\x65\n\x2A\x20\x4C\x69\x61\x62\x69\x6C\x69\x74\x79\n\x2A\x20\x45\x71\x75\x69\x74\x79\x2E\n\n\x54\x68\x65\x20\x73\x61\x6D\x65\x20\x61\x63\x63\x6F\x75\x6E\x74\x20\x6D\x61\x79\x20\x68\x61\x76\x65\x20\x61\x20\x64\x69\x66\x66\x65\x72\x65\x6E\x74\x20\x63\x61\x74\x65\x67\x6F\x72\x79\x20\x62\x61\x73\x65\x64\x20\x6F\x6E\x20\x74\x68\x65\x20\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x20\x69\x74\x20\x69\x73\x20\x75\x73\x65\x64\x20\x69\x6E\x2E\x20\x46\x6F\x72\x20\x65\x78\x61\x6D\x70\x6C\x65\x2C\x20\x61\x20\x63\x75\x72\x72\x65\x6E\x74\x20\x61\x63\x63\x6F\x75\x6E\x74\x20\x28\x6B\x6E\x6F\x77\x6E\x20\x61\x73\x20\x63\x68\x65\x63\x6B\x69\x6E\x67\x20\x69\x6E\x20\x74\x68\x65\x20\x55\x53\x29\x20\x73\x68\x6F\x75\x6C\x64\x20\x62\x65\x20\x63\x61\x74\x65\x67\x6F\x72\x69\x7A\x65\x64\x20\x61\x73\x20\x60\x41\x73\x73\x65\x74\x2E\x43\x75\x72\x72\x65\x6E\x74\x60\x20\x66\x6F\x72\x20\x58\x65\x72\x6F\x2C\x20\x61\x6E\x64\x20\x60\x41\x73\x73\x65\x74\x2E\x42\x61\x6E\x6B\x2E\x43\x68\x65\x63\x6B\x69\x6E\x67\x60\x20\x66\x6F\x72\x20\x51\x75\x69\x63\x6B\x42\x6F\x6F\x6B\x73\x20\x4F\x6E\x6C\x69\x6E\x65\x2E\n\n\x41\x74\x20\x74\x68\x65\x20\x73\x61\x6D\x65\x20\x74\x69\x6D\x65\x2C\x20\x65\x61\x63\x68\x20\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x20\x6D\x61\x79\x20\x68\x61\x76\x65\x20\x69\x74\x73\x20\x6F\x77\x6E\x20\x72\x65\x71\x75\x69\x72\x65\x6D\x65\x6E\x74\x73\x20\x74\x6F\x20\x74\x68\x65\x20\x63\x61\x74\x65\x67\x6F\x72\x69\x65\x73\x2E\x20\x46\x6F\x72\x20\x65\x78\x61\x6D\x70\x6C\x65\x2C\x20\x61\x20\x50\x61\x79\x70\x61\x6C\x20\x61\x63\x63\x6F\x75\x6E\x74\x20\x69\x6E\x20\x58\x65\x72\x6F\x20\x69\x73\x20\x6F\x66\x20\x74\x68\x65\x20\x60\x41\x73\x73\x65\x74\x2E\x42\x61\x6E\x6B\x60\x20\x63\x61\x74\x65\x67\x6F\x72\x79\x20\x61\x6E\x64\x20\x74\x68\x65\x72\x65\x66\x6F\x72\x65\x20\x72\x65\x71\x75\x69\x72\x65\x73\x20\x61\x64\x64\x69\x74\x69\x6F\x6E\x61\x6C\x20\x70\x72\x6F\x70\x65\x72\x74\x69\x65\x73\x20\x74\x6F\x20\x62\x65\x20\x70\x72\x6F\x76\x69\x64\x65\x64\x2E\n\n\x54\x6F\x20\x64\x65\x74\x65\x72\x6D\x69\x6E\x65\x20\x74\x68\x65\x20\x6C\x69\x73\x74\x20\x6F\x66\x20\x61\x6C\x6C\x6F\x77\x65\x64\x20\x63\x61\x74\x65\x67\x6F\x72\x69\x65\x73\x20\x66\x6F\x72\x20\x61\x20\x73\x70\x65\x63\x69\x66\x69\x63\x20\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x2C\x20\x79\x6F\x75\x20\x63\x61\x6E\x3A\n\x2D\x20\x46\x6F\x6C\x6C\x6F\x77\x20\x6F\x75\x72\x20\x5B\x43\x72\x65\x61\x74\x65\x2C\x20\x75\x70\x64\x61\x74\x65\x2C\x20\x64\x65\x6C\x65\x74\x65\x20\x64\x61\x74\x61\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x75\x73\x69\x6E\x67\x2D\x74\x68\x65\x2D\x61\x70\x69\x2F\x70\x75\x73\x68\x29\x20\x67\x75\x69\x64\x65\x20\x61\x6E\x64\x20\x75\x73\x65\x20\x74\x68\x65\x20\x5B\x47\x65\x74\x20\x63\x72\x65\x61\x74\x65\x20\x61\x63\x63\x6F\x75\x6E\x74\x20\x6D\x6F\x64\x65\x6C\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x73\x79\x6E\x63\x2D\x66\x6F\x72\x2D\x65\x78\x70\x65\x6E\x73\x65\x73\x2D\x61\x70\x69\x23\x2F\x6F\x70\x65\x72\x61\x74\x69\x6F\x6E\x73\x2F\x67\x65\x74\x2D\x63\x72\x65\x61\x74\x65\x2D\x63\x68\x61\x72\x74\x4F\x66\x41\x63\x63\x6F\x75\x6E\x74\x73\x2D\x6D\x6F\x64\x65\x6C\x29\x2E\n\x2D\x20\x52\x65\x66\x65\x72\x20\x74\x6F\x20\x74\x68\x65\x20\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x27\x73\x20\x6F\x77\x6E\x20\x64\x6F\x63\x75\x6D\x65\x6E\x74\x61\x74\x69\x6F\x6E\x2E\n\n\x3E\x20\x2A\x2A\x41\x63\x63\x6F\x75\x6E\x74\x73\x20\x77\x69\x74\x68\x20\x6E\x6F\x20\x63\x61\x74\x65\x67\x6F\x72\x79\x2A\x2A\n\x3E\n\x3E\x20\x49\x66\x20\x61\x6E\x20\x61\x63\x63\x6F\x75\x6E\x74\x20\x69\x73\x20\x70\x75\x6C\x6C\x65\x64\x20\x66\x72\x6F\x6D\x20\x74\x68\x65\x20\x63\x68\x61\x72\x74\x20\x6F\x66\x20\x61\x63\x63\x6F\x75\x6E\x74\x73\x20\x61\x6E\x64\x20\x69\x74\x73\x20\x6E\x6F\x6D\x69\x6E\x61\x6C\x20\x63\x6F\x64\x65\x20\x64\x6F\x65\x73\x20\x6E\x6F\x74\x20\x6C\x69\x65\x20\x77\x69\x74\x68\x69\x6E\x20\x74\x68\x65\x20\x63\x61\x74\x65\x67\x6F\x72\x79\x20\x6C\x61\x79\x6F\x75\x74\x20\x66\x6F\x72\x20\x74\x68\x65\x20\x63\x6F\x6D\x70\x61\x6E\x79\x27\x73\x20\x61\x63\x63\x6F\x75\x6E\x74\x73\x2C\x20\x74\x68\x65\x6E\x20\x74\x68\x65\x20\x2A\x2A\x74\x79\x70\x65\x2A\x2A\x20\x69\x73\x20\x60\x55\x6E\x6B\x6E\x6F\x77\x6E\x60\x2E\x20\x54\x68\x65\x20\x2A\x2A\x66\x75\x6C\x6C\x79\x51\x75\x61\x6C\x69\x66\x69\x65\x64\x43\x61\x74\x65\x67\x6F\x72\x79\x2A\x2A\x20\x61\x6E\x64\x20\x2A\x2A\x66\x75\x6C\x6C\x79\x51\x75\x61\x6C\x69\x66\x69\x65\x64\x4E\x61\x6D\x65\x2A\x2A\x20\x66\x69\x65\x6C\x64\x73\x20\x72\x65\x74\x75\x72\x6E\x20\x60\x6E\x75\x6C\x6C\x60\x2E\n\x3E\n\x3E\x20\x54\x68\x69\x73\x20\x61\x70\x70\x72\x6F\x61\x63\x68\x20\x67\x69\x76\x65\x73\x20\x61\x20\x74\x72\x75\x65\x20\x72\x65\x70\x72\x65\x73\x65\x6E\x74\x61\x74\x69\x6F\x6E\x20\x6F\x66\x20\x74\x68\x65\x20\x63\x6F\x6D\x70\x61\x6E\x79\x27\x73\x20\x61\x63\x63\x6F\x75\x6E\x74\x73\x20\x77\x68\x69\x6C\x73\x74\x20\x70\x72\x65\x76\x65\x6E\x74\x69\x6E\x67\x20\x64\x69\x73\x74\x6F\x72\x74\x69\x6E\x67\x20\x66\x69\x6E\x61\x6E\x63\x69\x61\x6C\x73\x20\x73\x75\x63\x68\x20\x61\x73\x20\x61\x20\x63\x6F\x6D\x70\x61\x6E\x79\x27\x73\x20\x70\x72\x6F\x66\x69\x74\x20\x61\x6E\x64\x20\x6C\x6F\x73\x73\x20\x61\x6E\x64\x20\x62\x61\x6C\x61\x6E\x63\x65\x20\x73\x68\x65\x65\x74\x20\x72\x65\x70\x6F\x72\x74\x73\x2E" allOf: - - $ref: '#/components/schemas/CommerceOrder/allOf/0' - - type: object - properties: - name: + - properties: + id: type: string - description: The name of the PaymentMethod - example: Alipay - status: - description: Status of the Payment Method. + description: 'Identifier for the account, unique for the company.' + example: 1b6266d1-1e44-46c5-8eb5-a8f98e03124e + - $ref: '#/components/schemas/Account/definitions/accountPrototype' + - properties: + metadata: + title: Metadata + type: object x-internal: true - type: string - enum: - - Unknown - - Active - - Archived - - $ref: '#/components/schemas/CommerceOrder/allOf/3' - CommercePaymentMethods: - title: 'Commerce: Payment methods' - x-internal: true - allOf: - - type: object - properties: - results: - type: array - items: - $ref: '#/components/schemas/CommercePaymentMethod' - - $ref: '#/components/schemas/PagingInfo' - CommercePayments: - title: 'Commerce: Payments' - x-internal: true - allOf: - - type: object - properties: - results: - type: array - items: - $ref: '#/components/schemas/CommercePayment' - - $ref: '#/components/schemas/PagingInfo' - CommerceProduct: - title: 'Commerce: Product' - description: | - A Product is an item in the company's inventory, and includes information about the price and quantity of all products, and variants thereof, available for sale. - type: object - allOf: - - $ref: '#/components/schemas/CommerceOrder/allOf/0' - - type: object - properties: - name: - type: string - description: Name of the product in the commerce or POS system - examples: - - Hard Drive - - Windows Installation - - Software Support (Hourly) - description: - type: string - description: Description of the product recorded in the commerce or point of sale platform. - examples: - - 1tb Western Digital Hard Drive - - Install of Windows 11 (Professional Edition) - - 1 hour of support from an agent (phone or remote) - categorization: - type: string - description: Retail category that the product is assigned to e.g. `Hardware`. - examples: - - Hardware - - Software - - Support Services - isGiftCard: - type: boolean - description: | - Whether the product represents a gift card or voucher that - can be redeemed in the commerce or POS platform. - variants: - type: array - items: - $ref: '#/components/schemas/CommerceProduct/definitions/productVariant' - supplementalData: - $ref: '#/components/schemas/SupplementalData' + properties: + isDeleted: + type: boolean + description: Indicates whether the record has been deleted in the third-party system this record originated from. + nullable: true + - title: Modified dates + x-internal: true + allOf: + - title: ModifiedDate + x-internal: true + type: object + properties: + modifiedDate: + allOf: + - $ref: '#/components/schemas/TransferTransactionRequest/properties/date/allOf/1' + - description: "The date when the record was last fetched from the data source and updated in Codat’s data cache. \n\nUse it to identify and retrieve records that have changed since your last fetch. For example, filtering `modifiedDate` to today will provide new records updated in Codat today.\n\nThis date is populated for all data types except for attachments, balance sheets, company information, and profit & loss reports ([read more](https://docs.codat.io/using-the-api/modified-dates#modified-date)).\n\nIn Codat's data model, dates and times are represented using the ISO 8601 standard." + - title: Source Modified Date + x-internal: true + type: object + nullable: true + properties: + sourceModifiedDate: + allOf: + - $ref: '#/components/schemas/TransferTransactionRequest/properties/date/allOf/1' + - description: "The date when a record was last modified in the source platform, usually by the business or a business process. For example, when payments are made against an invoice. \n\nIt is not populated ([read more](https://docs.codat.io/using-the-api/modified-dates#source-modified-date)) when:\n - Pulling attachments\n - The integration platform does not provide modification dates for a data type\n - A record has been deleted from the source platform and Codat doesn't have a record of when the deletion occurred\n - A record has been voided. For certain platforms that soft delete records, `isDeleted` metadata is used to identify void records\n\nIn Codat's data model, dates and times are represented using the ISO 8601 standard." definitions: - productRef: + accountPrototype: + title: Account prototype type: object - description: Reference that links the line item to the correct product details. properties: - id: - description: The unique identifier of the product being referenced. + nominalCode: type: string - examples: - - 13d946f0-c5d5-42bc-b092-97ece17923ab - - 9wg4lep4ush5cxs79pl8sozmsndbaukll3ind4g7buqbm1h2 - - 7110701885 - - EILBDVJVNUAGVKRQ + nullable: true + description: Reference given to each nominal account for a business. It ensures money is allocated to the correct account. This code isn't a unique identifier in the Codat system. + example: '610' name: - description: Name of the product being referenced. type: string - required: - - id - productVariant: - title: Product Variant - description: | - Represents a variation of a product available for sale, for example an item of clothing that may be available for sale in multiple sizes and colors. - allOf: - - $ref: '#/components/schemas/CommerceOrder/allOf/0' - description: 'Identifier of the product variant, unique to the company.' - - properties: - name: - type: string - examples: - - Red Coat - - Black Coat - - Large Brown Hat - description: Name of the product recorded in the commerce or point of sale platform. - isTaxEnabled: - type: boolean - description: Whether sales taxes are enabled for this product variant. - sku: - type: string - examples: - - Coat-Red-Lrg - - Coat-Black-Md - - LargeBrownHat - - A725BA2 - description: 'SKU (stock keeping unit) of the variant, as defined by the merchant.' - barcode: - type: string - examples: - - '564158468416486458646886484' - - CSE370 - description: 'Unique product number of the variant. This might be a barcode, UPC, ISBN, etc.' - unitOfMeasure: - type: string - examples: - - kg - - m - - meters - description: 'Unit of measure for the variant, such as `kg` or `meters`.' - vatPercentage: - type: number - format: decimal - examples: - - 12.5 - - 0 - - 20 - description: VAT rate for the product variant if sales taxes are enabled. - prices: - type: array - description: Prices for the product variants in different currencies. - items: - $ref: '#/components/schemas/CommerceProduct/definitions/productPrice' - inventory: - $ref: '#/components/schemas/CommerceProduct/definitions/productInventory' - shippingRequired: - type: boolean - description: Indicates whether or not the product requires physical delivery. - status: - $ref: '#/components/schemas/CommerceProduct/definitions/productVariantStatus' - - $ref: '#/components/schemas/CommerceOrder/allOf/2' - - $ref: '#/components/schemas/CommerceOrder/allOf/3' - productVariantRef: - title: Product variant reference - type: object - description: Reference that links the line item to the specific version of product that has been ordered. - properties: - id: - description: The unique identifier of the product variant being referenced. + nullable: true + description: Name of the account. + example: Accounts Receivable + description: type: string - examples: - - 13d946f0-c5d5-42bc-b092-97ece17923ab - - 9wg4lep4ush5cxs79pl8sozmsndbaukll3ind4g7buqbm1h2 - - 7110701885 - - EILBDVJVNUAGVKRQ - name: - description: Name of the product variant being referenced. + nullable: true + description: Description for the account. + example: Invoices the business has issued but has not yet collected payment on. + fullyQualifiedCategory: type: string - required: - - id - productPrice: - title: Product Price Variant - x-internal: true - type: object - properties: - currency: - $ref: '#/components/schemas/SourceAccount/properties/currency' nullable: true - unitPrice: - type: number - format: decimal - description: The product variant's unit price. - productInventory: - title: Product Inventory - description: Information about the total inventory as well as the locations inventory is in. - x-internal: true - type: object - properties: - totalQuantity: + description: "Full category of the account. \r\n\r\nFor example, `Liability.Current` or `Income.Revenue`. To determine a list of possible categories for each integration, see our examples, follow our [Create, update, delete data](https://docs.codat.io/using-the-api/push) guide, or refer to the integration's own documentation." + example: Asset.Current + fullyQualifiedName: + type: string + nullable: true + description: |- + Full name of the account, for example: + - `Cash On Hand` + - `Rents Held In Trust` + - `Fixed Asset` + examples: + - Cash On Hand + - Fixed Asset + currency: + title: Currency + x-internal: true + type: string + description: "The currency data type in Codat is the [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code, e.g. _GBP_.\n\n## Unknown currencies\n\nIn line with the ISO 4217 specification, the code _XXX_ is used when the data source does not return a currency for a transaction. \n\nThere are only a very small number of edge cases where this currency code is returned by the Codat system." + format: ISO4217 + examples: + - GBP + - USD + - EUR + currentBalance: type: number format: decimal nullable: true - description: The total quantity of stock remaining across locations. - locations: + description: Current balance in the account. + example: 0 + type: + $ref: '#/components/schemas/Account/definitions/accountType' + status: + $ref: '#/components/schemas/Account/definitions/accountStatus' + isBankAccount: + type: boolean + description: Confirms whether the account is a bank account or not. + validDatatypeLinks: type: array + nullable: true + description: 'The validDatatypeLinks can be used to determine whether an account can be correctly mapped to another object; for example, accounts with a `type` of `income` might only support being used on an Invoice and Direct Income. For more information, see [Valid Data Type Links](/sync-for-expenses-api#/schemas/ValidDataTypeLinks).' items: - $ref: '#/components/schemas/CommerceProduct/definitions/productInventoryLocation' - productInventoryLocation: - title: Product Inventory Location - x-internal: true + title: Valid data type links + description: "When querying Codat's data model, some data types return `validDatatypeLinks` metadata in the JSON response. This indicates where that object can be used as a reference—a _valid link_—when creating or updating other data.\n\nFor example, `validDatatypeLinks` might indicate the following references:\n\n- Which tax rates are valid to use on the line item of a bill.\n- Which items can be used when creating an invoice. \n\nYou can use `validDatatypeLinks` to present your SMB customers with only valid choices when selecting objects from a list, for example.\n\n## `validDatatypeLinks` example\n\nThe following example uses the `Accounting.Accounts` data type. It shows that, on the linked integration, this account is valid as the account on a payment or bill payment; and as the account referenced on the line item of a direct income or direct cost. Because there is no valid link to Invoices or Bills, using this account on those data types will result in an error.\n\n```json validDatatypeLinks for an account\n{\n \"id\": \"bd9e85e0-0478-433d-ae9f-0b3c4f04bfe4\",\n \"nominalCode\": \"090\",\n \"name\": \"Business Bank Account\",\n #...\n \"validDatatypeLinks\": [\n {\n \"property\": \"Id\",\n \"links\": [\n \"Payment.AccountRef.Id\",\n \"BillPayment.AccountRef.Id\",\n \"DirectIncome.LineItems.AccountRef.Id\",\n \"DirectCost.LineItems.AccountRef.Id\"\n ]\n }\n ]\n }\n```\n\n\n\n## Support for `validDatatypeLinks`\n\nCodat currently supports `validDatatypeLinks` for some data types on our Xero, QuickBooks Online, QuickBooks Desktop, Exact (NL), and Sage Business Cloud integrations. \n\nIf you'd like us to extend support to more data types or integrations, suggest or vote for this on our Product Roadmap." + type: object + properties: + property: + type: string + nullable: true + description: The property from the account that can be linked. + links: + type: array + nullable: true + description: Supported `dataTypes` that the record can be linked to. + items: + type: string + supplementalData: + $ref: '#/components/schemas/SupplementalData' + accountRef: + title: Account reference type: object + description: 'Data types that reference an account, for example bill and invoice line items, use an accountRef that includes the ID and name of the linked account.' properties: - quantity: - type: number - format: decimal - description: The quantity of stock remaining at location. - locationRef: - $ref: '#/components/schemas/CommerceLocation/definitions/locationRef' - productVariantStatus: - x-internal: true + id: + type: string + description: '''id'' from the Accounts data type.' + name: + type: string + description: '''name'' from the Accounts data type.' + accountType: + title: Account type + enum: + - Unknown + - Asset + - Expense + - Income + - Liability + - Equity type: string - description: The status of the product variant. + description: Type of account + example: Asset + accountStatus: + title: Account status enum: - Unknown - - Published - - Unpublished - CommerceProductCategories: - title: 'Commerce: Product categories' - x-internal: true - allOf: - - type: object - properties: - results: - type: array - items: - $ref: '#/components/schemas/CommerceProductCategory' - - $ref: '#/components/schemas/PagingInfo' - CommerceProductCategory: - title: 'Commerce: Product category' - description: 'Product categories are used to classify a group of products together, either by type (e.g. "Furniture"), or sometimes by tax profile.' + - Active + - Archived + - Pending + type: string + description: Status of the account + example: Active type: object - allOf: - - type: object - properties: - id: - type: string - example: '"102"' - description: The unique identifier of the product category - name: - type: string - example: Entertainment - description: The name of the product category - ancestorRefs: - type: array - description: A collection of parent product categories implicitly ordered with the immediate parent last in the list. - items: - $ref: '#/components/schemas/CommerceRecordRef' - hasChildren: - type: boolean - description: A boolean indicating whether there are other product categories beneath this one in the hierarchy. - - $ref: '#/components/schemas/CommerceOrder/allOf/3' - examples: - - productCategories: - - id: '100' - name: Entertainment - ancestorRefs: [] - hasChildren: true - modifiedDate: '2022-01-01T12:00:00Z' - sourceModifiedDate: '2021-10-01T12:53:21Z' - - id: '101' - name: Cinema - ancestorRefs: - - id: '100' - name: Entertainment - hasChildren: true - modifiedDate: '2022-01-01T12:00:00Z' - sourceModifiedDate: '2021-10-01T12:55:02Z' - - id: '102' - name: Movie - ancestorRefs: - - id: '100' - name: Entertainment - - id: '101' - name: Cinema - hasChildren: false - modifiedDate: '2022-01-01T12:00:00Z' - sourceModifiedDate: '2021-12-25T12:00:00Z' - CommerceProducts: - title: 'Commerce: Products' + AccountMappingInfo: + title: Account mapping info x-internal: true - allOf: - - type: object - properties: - results: - type: array - items: - $ref: '#/components/schemas/CommerceProduct' - - $ref: '#/components/schemas/PagingInfo' - CommerceRecordRef: - title: Record Ref + type: object + additionalProperties: false + x-examples: + Example AccountInfo: + id: 313a4dbe-b3a4-42f0-a5f5-43e382e62db9 + nominalCode: '720' + name: Travel + currency: GBP + accountType: Expense + fullyQualifiedCategory: Expense.Overhead + isBankAccount: false + validTransactionTypes: + - Payment + - Refund + validFor: + - expense-transactions.Payment + - expense-transactions.Refund + - reimbursable-expense-transactions + properties: + id: + type: string + description: Unique identifier of account. + example: 127f3b99-8dc2-4b7e-854c-91ef9bd2757b + nullable: false + nominalCode: + type: string + description: Code used to identify each nominal account in the accounting software. + example: '300' + nullable: true + name: + type: string + description: Name of the account as it appears in the company's accounting software. + example: Purchases + nullable: false + currency: + type: string + description: Currency of the account. + example: GBP + nullable: false + accountType: + type: string + description: Type of the account. + example: Expense + enum: + - Asset + - Liability + - Income + - Expense + - Equity + nullable: false + fullyQualifiedCategory: + type: string + description: Full account type and category of the account + example: Expense.DirectCosts + nullable: false + isBankAccount: + type: boolean + description: Confirms whether the account is a bank account or not. + validTransactionTypes: + $ref: '#/components/schemas/validTransactionTypes' + description: Supported transaction types for the account. + validFor: + $ref: '#/components/schemas/validFor' + description: Supported endpoints for the account. + AdjustmentTransactionLine: x-internal: true + title: Adjustment transaction line + type: object + properties: + amount: + type: number + format: decimal + example: 50 + description: Amount of the line. A positive line represents a debit; a negative line represents a credit. + accountRef: + $ref: '#/components/schemas/RecordRef' + description: + type: string + description: 'Any private, company notes about the transaction.' + example: 'APPLE.COM/BILL - 09001077498 - Card Ending: 4590' + trackingRefs: + type: array + minItems: 1 + maxItems: 10 + nullable: true + items: + $ref: '#/components/schemas/TrackingRefAdjustmentTransaction' + invoiceTo: + $ref: '#/components/schemas/InvoiceTo' + required: + - amount + - accountRef + AdjustmentTransactionRequest: + title: Adjustment transaction type: object properties: id: - description: The unique identitifer of the record being referenced type: string - examples: - - 13d946f0-c5d5-42bc-b092-97ece17923ab - - 9wg4lep4ush5cxs79pl8sozmsndbaukll3ind4g7buqbm1h2 - - 7110701885 - - EILBDVJVNUAGVKRQ - type: - description: The type of record being referenced. + format: uuid + description: Your unique identifier for the transaction. + date: + $ref: '#/components/schemas/TransferTransactionRequest/properties/date/allOf/1' + description: Date of the transaction. + currency: + type: string + description: Currency the transaction was recorded in. + currencyRate: + $ref: '#/components/schemas/ExpenseTransaction/properties/currencyRate' + reference: type: string + nullable: true + description: User-friendly reference for the adjustment transaction. + lines: + type: array + description: Array of transaction lines. + minItems: 1 + maxItems: 100 + items: + $ref: '#/components/schemas/AdjustmentTransactionLine' required: - id - - type - description: '' - CommerceReport: - title: Commerce report - description: "## Structure\n\nAssess reports follow a consistent structure. Reports contain four sections of information:\n\n### 1. Report definition\n\nInformation such as:\n\n 1. The report info (e.g. enhanced_profit_and_loss).\n 2. The display name of the report (e.g. Enhanced Profit and Loss).\n \n### 2. Dimension info\n\nInformation about the dimension contained in the reports such as:\n\n 1. The type of dimension (e.g. datetime, recordRef).\n 2. The display name of the dimension (e.g. Period, Category type, Category sub type).\n 3. The details about each item within the dimension (e.g. displayName:\"Jan 2022\", start:\"...\", end:\"...\", id:\"...\", name:\"...\").\n\n### 3. Measure info\n\nInformation about the measures contained in the report such as:\n\n 1. The display name of the measure (e.g. value of account, percentage change).\n 2. The type of the measure (e.g. currency, percentage).\n 3. The unit of the measure (e.g. %, GBP).\n \n### 4. The data for the report\n\nWhen the *includeDisplayName* parameter is set to *true*, it shows the *dimensionDisplayName* and *itemDisplayName* to make the data human-readable. The default setting for *includeDisplayName* is *false*.\n\n\n## Displaying the report\n\nReports can be rendered as follows (ordering is implicit rather than explicit):\n\n![A table showing an example of how a report can be rendered](https://files.readme.io/1fa20ca-Report1.png)\n\n# Data model\n\n## Dimensions" + - date + - currency + - lines + AdjustmentTransactionResponse: + title: Adjustment response + x-internal: true type: object properties: - reportInfo: - type: object - additionalProperties: + syncId: + type: string + example: cd937d46-8e41-43a9-9477-a79158ffd98a + format: uuid + description: Unique id of sync created + apAccountRef: + x-internal: true + type: object + title: Accounts Payable account reference + nullable: true + properties: + id: + type: string + example: 8000004C-1724173136 + description: Unique identifier for the Accounts Payable account associated with the transaction. The `apAccountRef` object is currently supported only for QuickBooks Desktop. + Attachment: + title: Attachment + type: object + x-examples: + Attachment Example: + companyId: bf1e0242-5b7a-418b-a307-9e09dbf9f39a + id: '1400000000122699154' + transactionId: f8f00edd-ddb0-4ca5-b36b-8f932e6b5160 + properties: + companyId: + type: string + format: uuid + description: Unique ID of company in Codat + id: + type: string + description: Unique identifier of attachment + transactionId: + type: string + description: Unique identifier of transaction + AttachmentUpload: + title: Attachment upload + type: object + x-internal: true + required: + - file + properties: + file: + $ref: '#/components/schemas/AttachmentUpload/definitions/codatFile' + definitions: + codatFile: + type: string + description: The file to be uploaded as an attachment. + format: binary + BankAccount: + title: 'Accounting: Bank account' + description: "> **Accessing Bank Accounts through Banking API**\n> \n> This datatype was originally used for accessing bank account data both in accounting integrations and open banking aggregators. \n> \n> To view bank account data through the Banking API, please refer to the new [Banking: Account](https://docs.codat.io/sync-for-expenses-api#/schemas/Account) data type.\n\n## Overview\n\nA list of bank accounts associated with a company and a specific data connection.\n\nBank accounts data includes:\n* The name and ID of the account in the accounting software.\n* The currency and balance of the account.\n* The sort code and account number." + type: object + allOf: + - properties: + id: type: string - dimensions: - type: array - items: - $ref: '#/components/schemas/CommerceReport/definitions/commerceReportDimension' - measures: - type: array - items: - $ref: '#/components/schemas/CommerceReport/definitions/commerceReportMeasure' - reportData: - type: array - items: - $ref: '#/components/schemas/CommerceReport/definitions/commerceReportComponent' - errors: - type: array - items: - $ref: '#/components/schemas/CommerceReport/definitions/commerceReportError' + description: 'Identifier for the account, unique for the company in the accounting software.' + - $ref: '#/components/schemas/BankAccount/definitions/bankAccountPrototype' + - properties: + metadata: + $ref: '#/components/schemas/Account/allOf/2/properties/metadata' + supplementalData: + $ref: '#/components/schemas/SupplementalData' + - $ref: '#/components/schemas/Account/allOf/3' definitions: - commerceReportMeasure: - title: Measure - type: object - properties: - displayName: - description: The measure's display name. - type: string - units: - type: string - description: The measure's units e.g. percentage (%). - index: - type: integer - description: The measure's index. - type: - type: string - description: The measure's type. - commerceReportError: - title: Error + bankAccountPrototype: + title: Bank account prototype type: object properties: - message: + accountName: type: string - description: Message returned by error. - type: + nullable: true + description: Name of the bank account in the accounting software. + accountType: + title: Bank Account Type + x-internal: true + enum: + - Unknown + - Credit + - Debit type: string - description: The type of error. - details: - description: Additional details on the error. - type: object - additionalProperties: - type: array - items: - type: string - commerceReportDimension: - title: Dimension - type: object - properties: - index: - type: integer - description: The dimension's index. - displayName: + description: "The type of transactions and balances on the account. \nFor Credit accounts, positive balances are liabilities, and positive transactions **reduce** liabilities. \nFor Debit accounts, positive balances are assets, and positive transactions **increase** assets." + nominalCode: type: string - description: The dimension's display name. - type: + nullable: true + description: Code used to identify each nominal account for a business. + sortCode: type: string - description: The dimension's type. - items: - type: array - items: - type: object - properties: - index: - type: integer - description: The dimension's items index. - commerceReportComponent: - title: Report component - type: object - properties: - dimension: - type: integer - description: The component's dimension. - dimensionDisplayName: + nullable: true + description: |- + Sort code for the bank account. + + Xero integrations + The sort code is only displayed when the currency = GBP and the sort code and account number sum to 14 digits. For non-GBP accounts, this field is not populated. + accountNumber: type: string - description: The component's display name. - item: - type: integer - description: The component's item number. - itemDisplayName: + nullable: true + description: |- + Account number for the bank account. + + Xero integrations + Only a UK account number shows for bank accounts with GBP currency and a combined total of sort code and account number that equals 14 digits, For non-GBP accounts, the full bank account number is populated. + + FreeAgent integrations + For Credit accounts, only the last four digits are required. For other types, the field is optional. + iBan: type: string - description: The component's item display name. - measures: - type: array - items: - $ref: '#/components/schemas/CommerceReport/definitions/reportComponentMeasure' - components: - type: array - items: - $ref: '#/components/schemas/CommerceReport/definitions/commerceReportComponent' - reportComponentMeasure: - type: object - title: Report component measure - properties: - index: - type: integer - description: The measure's index. - measureDisplayName: + nullable: true + description: International bank account number of the account. Often used when making or receiving international payments. + currency: + $ref: '#/components/schemas/Account/definitions/accountPrototype/properties/currency' + description: Base currency of the bank account. + balance: + type: number + format: decimal + nullable: true + description: Balance of the bank account. + institution: type: string - description: The measure's display name. - value: + nullable: true + description: The institution of the bank account. + availableBalance: type: number format: decimal - description: The measure's value. - x-examples: - Example 1: - reportInfo: - additionalProp1: string - additionalProp2: string - additionalProp3: string - dimensions: - - index: 0 - displayName: string - type: string - items: - - index: 0 - measures: - - displayName: string - units: string - index: 0 - type: string - reportData: - - dimension: 0 - dimensionDisplayName: string - item: 0 - itemDisplayName: string - measures: - - index: 0 - measureDisplayName: string - components: - - string - errors: - - message: string - type: DatesOutOfRange - details: - additionalProp1: - - string - additionalProp2: - - string - additionalProp3: - - string - CommerceTaxComponent: - title: 'Commerce: Tax component' - description: 'The Tax Components endpoints return tax rates data from the commerce software, including tax rate names and values. This is to support the mapping of tax rates from the commerce software to those in the accounting software.' - type: object - allOf: - - $ref: '#/components/schemas/CommerceOrder/allOf/0' - - type: object - properties: - name: - type: string - description: Name of the Tax Rate Component in the source commerce software. - example: Sales Tax - rate: - description: Rate of taxation represented as a fraction of the net price (typically in the range 0.00 - 1.00). - type: number - format: decimal - examples: - - 0.15 - - 0.2 - isCompound: - description: The Boolean flag to indicate when a Tax Rate Component compounds on a sale. - type: boolean - examples: - - true - - false - - $ref: '#/components/schemas/CommerceOrder/allOf/3' - required: - - name - definitions: - taxComponentAllocation: - title: Tax Component Allocation - type: object - properties: - taxComponentRef: - $ref: '#/components/schemas/CommerceTaxComponent/definitions/taxComponentRef' - rate: - description: Tax amount on order line sale as available from source commerce software. + nullable: true + description: Total available balance of the bank account as reported by the underlying data source. This may take into account overdrafts or pending transactions for example. + overdraftLimit: type: number format: decimal nullable: true - taxComponentRef: + description: |- + Pre-arranged overdraft limit of the account. + + The value is always positive. For example, an overdraftLimit of `1000` means that the balance of the account can go down to `-1000`. + status: + $ref: '#/components/schemas/BankAccount/definitions/bankAccountStatus' + bankAccountCreateResponse: + title: Create bank account response + allOf: + - properties: + data: + allOf: + - $ref: '#/components/schemas/BankAccount' + - deprecated: true + - $ref: '#/components/schemas/PushOperation' + bankAccountRef: + title: Bank account reference type: object - description: Taxes rates reference object depending on the rates being available on source commerce software. properties: id: - description: The unique identitifer of the tax component being referenced. type: string - examples: - - 13d946f0-c5d5-42bc-b092-97ece17923ab - - 9wg4lep4ush5cxs79pl8sozmsndbaukll3ind4g7buqbm1h2 - - 7110701885 - - EILBDVJVNUAGVKRQ + description: Bank account 'id' for the account transaction. name: - description: Name of the tax component being referenced. type: string - required: - - id - - name - examples: - - id: 13d946f0-c5d5-42bc-b092-97ece17923ab - name: Sales Tax (15%) - rate: 0.15 - isCompound: true - modifiedDate: '2022-10-23T00:00:00Z' - sourceModifiedDate: '2022-10-23T00:00:00Z' - CommerceTransaction: - title: 'Commerce: Transaction' - description: "Details of all financial transactions recorded in the commerce or point of sale system are added to the Transactions data type. For example, payments, service charges, and fees.\n\nYou can use data from the Transactions endpoints to calculate key metrics, such as: \n- Transaction volumes \n- Average transaction volume \n- Average transaction value \n- Returns \n- Payouts" - type: object - allOf: - - $ref: '#/components/schemas/CommerceOrder/allOf/0' - - type: object - properties: - totalAmount: - description: The total transaction amount - type: number - format: decimal - examples: - - 194.12 - - -283.56 - - 0 - currency: - $ref: '#/components/schemas/SourceAccount/properties/currency' - type: - $ref: '#/components/schemas/CommerceTransaction/definitions/transactionType' - subType: - description: Non-standardised transaction type data from the commerce software - type: string - examples: - - CardPayment - - Invoice payment - transactionSourceRef: - description: Link to the source event which triggered this transaction - allOf: - - $ref: '#/components/schemas/CommerceTransaction/definitions/transactionSourceRef' - supplementalData: - $ref: '#/components/schemas/SupplementalData' - - allOf: - - type: object - x-stoplight: - id: c590b4405180f - allOf: - - $ref: '#/components/schemas/CommerceOrder/allOf/2' - - type: object - x-stoplight: - id: gdyjg7bg783br - properties: - sourceCreatedDate: - $ref: '#/components/schemas/DateTime' - description: The date on which this record was created in the originating system - - $ref: '#/components/schemas/CommerceOrder/allOf/3' - x-stoplight: - id: 9e815c1766554 - definitions: - transactionSourceRef: - title: Transaction Source Reference - x-internal: true + description: bank account 'name' for the account transaction. + description: Links to the Account transactions data type. + bankAccounts: + title: 'Accounting: Bank accounts' allOf: - - $ref: '#/components/schemas/CommerceRecordRef' - type: object properties: - type: - $ref: '#/components/schemas/CommerceTransaction/definitions/transactionSourceType' - transactionSourceType: - x-internal: true + results: + type: array + items: + $ref: '#/components/schemas/BankAccount' + - $ref: '#/components/schemas/PagingInfo' + bankAccountStatus: + title: Account status + enum: + - Unknown + - Active + - Archived + - Pending + type: string + description: Status of the bank account. + example: Active + ClientRateLimitReachedWebhook: + title: Client rate limit reached webhook + x-internal: true + description: Webhook request body for a client that has reached their rate limit. + type: object + properties: + ClientId: + $ref: '#/components/schemas/SyncFailedWebhook/properties/ClientId' + ClientName: + $ref: '#/components/schemas/SyncFailedWebhook/properties/ClientName' + RuleId: + $ref: '#/components/schemas/SyncFailedWebhook/properties/RuleId' + RuleType: + $ref: '#/components/schemas/SyncFailedWebhook/properties/RuleType' + AlertId: + $ref: '#/components/schemas/SyncFailedWebhook/properties/AlertId' + Message: + $ref: '#/components/schemas/SyncFailedWebhook/properties/Message' + Data: + $ref: '#/components/schemas/ClientRateLimitReachedWebhook/definitions/ClientRateLimitReachedWebhookData' + definitions: + ClientRateLimitReachedWebhookData: + type: object + title: Client rate limit reached webhook data + properties: + DailyQuota: + type: integer + description: The number of available requests per day. + ExpiresUtc: + $ref: '#/components/schemas/TransferTransactionRequest/properties/date/allOf/1' + description: The date time in UTC when your daily quota is reset. + examples: + - ClientId: bae71d36-ff47-420a-b4a6-f8c9ddf41140 + ClientName: Bank of Dave + RuleId: 70af3071-65d9-4ec3-b3cb-5283e8d55dac + RuleType: Rate Limit Reached + AlertId: a9367074-b5c3-42c4-9be4-be129f43577e + Message: The current daily rate limit quota of 1000 requests for bae71d36-ff47-420a-b4a6-f8c9ddf41140 has been reached. + Data: + DailyQuota: 1000 + ExpiresUtc: '2023-05-03T00:00:00Z' + ClientRateLimitResetWebhook: + title: Client rate limit reset webhook + x-internal: true + description: Webhook request body for a client that has had their rate limit reset. + type: object + properties: + ClientId: + $ref: '#/components/schemas/SyncFailedWebhook/properties/ClientId' + ClientName: + $ref: '#/components/schemas/SyncFailedWebhook/properties/ClientName' + RuleId: + $ref: '#/components/schemas/SyncFailedWebhook/properties/RuleId' + RuleType: + $ref: '#/components/schemas/SyncFailedWebhook/properties/RuleType' + AlertId: + $ref: '#/components/schemas/SyncFailedWebhook/properties/AlertId' + Message: + $ref: '#/components/schemas/SyncFailedWebhook/properties/Message' + Data: + $ref: '#/components/schemas/ClientRateLimitResetWebhook/definitions/ClientRateLimitResetWebhookData' + definitions: + ClientRateLimitResetWebhookData: + type: object + title: Client rate limit reset webhook data + properties: + QuotaRemaining: + type: integer + description: Total number of requests remaining for your client. + nullable: true + ResetReason: + type: string + description: The reason for your rate limit quota being reset. + DailyQuota: + $ref: '#/components/schemas/ClientRateLimitReachedWebhook/definitions/ClientRateLimitReachedWebhookData/properties/DailyQuota' + nullable: true + ExpiresUtc: + $ref: '#/components/schemas/ClientRateLimitReachedWebhook/definitions/ClientRateLimitReachedWebhookData/properties/ExpiresUtc' + nullable: true + examples: + - ClientId: bae71d36-ff47-420a-b4a6-f8c9ddf41140 + ClientName: Bank of Dave + RuleId: 70af3071-65d9-4ec3-b3cb-5283e8d55dac + RuleType: Rate Limit Reset + AlertId: a9367074-b5c3-42c4-9be4-be129f43577e + Message: The current daily rate limit quota for client 30e0f9d2-52c0-4c9f-a806-bcd98a3bcd7e has been reset to 1000 requests. + Data: + QuotaRemaining: 1000 + ResetReason: The quota was reset because it is a new day. + DailyQuota: 1000 + ExpiresUtc: '2023-05-03T00:00:00Z' + ClientRateLimitWebhook: + title: Client rate limit webhook + type: object + properties: + id: type: string - description: The type of source the transaction arose. - enum: - - Fee - - Order - - Payment - - ServiceCharge - - Unknown - transactionType: - x-internal: true - description: "The type of the platform transaction: \n- `Unknown` \n- `FailedPayout` — Failed transfer of funds from the seller's merchant account to their bank account. \n- `Payment` — Credit and debit card payments. \n- `PaymentFee` — Payment provider's fee on each card payment. \n- `PaymentFeeRefund` — Payment provider's fee that has been refunded to the seller. \n- `Payout` — Transfer of funds from the seller's merchant account to their bank account. \n- `Refund` — Refunds to a customer's credit or debit card. \n- `Transfer` — Secure transfer of funds to the seller's bank account. " + format: uuid + example: 743ec94a-8aa4-44bb-8bd4-e1855ee0e74b + description: Unique identifier of the event. + eventType: type: string - enum: - - Payment - - Refund - - Payout - - FailedPayout - - Transfer - - PaymentFee - - PaymentFeeRefund - - Unknown - examples: [] - CommerceTransactions: - title: 'Commerce: Transactions' - x-internal: true - allOf: - - type: object - properties: - results: - type: array - items: - $ref: '#/components/schemas/CommerceTransaction' - - $ref: '#/components/schemas/PagingInfo' + description: The type of event. + examples: + - client.rateLimit.reset + - client.rateLimit.reached + generatedDate: + $ref: '#/components/schemas/TransferTransactionRequest/properties/date/allOf/1' + description: The date time in UTC the event was generated in Codat. + payload: + $ref: '#/components/schemas/ClientRateLimitWebhook/definitions/clientRateLimitWebhookPayload' + definitions: + clientRateLimitWebhookPayload: + title: Client rate limit webhook payload + type: object + properties: + dailyQuota: + type: integer + description: The number of available requests per day. + quotaRemaining: + type: integer + description: Total number of requests remaining for your client. + expiryDate: + $ref: '#/components/schemas/TransferTransactionRequest/properties/date/allOf/1' + description: The date time in UTC when your daily quota is reset. Companies: title: Companies x-internal: true @@ -83749,8 +10538,7 @@ components: - $ref: '#/components/schemas/PagingInfo' Company: title: Company - description: "\uFEFF\x49\x6E\x20\x43\x6F\x64\x61\x74\x2C\x20\x61\x20\x63\x6F\x6D\x70\x61\x6E\x79\x20\x72\x65\x70\x72\x65\x73\x65\x6E\x74\x73\x20\x61\x20\x62\x75\x73\x69\x6E\x65\x73\x73\x20\x73\x68\x61\x72\x69\x6E\x67\x20\x61\x63\x63\x65\x73\x73\x20\x74\x6F\x20\x74\x68\x65\x69\x72\x20\x64\x61\x74\x61\x2E\x20\x45\x61\x63\x68\x20\x63\x6F\x6D\x70\x61\x6E\x79\x20\x63\x61\x6E\x20\x68\x61\x76\x65\x20\x6D\x75\x6C\x74\x69\x70\x6C\x65\x20\x5B\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x73\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x70\x6C\x61\x74\x66\x6F\x72\x6D\x2D\x61\x70\x69\x23\x2F\x73\x63\x68\x65\x6D\x61\x73\x2F\x43\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x29\x20\x74\x6F\x20\x64\x69\x66\x66\x65\x72\x65\x6E\x74\x20\x64\x61\x74\x61\x20\x73\x6F\x75\x72\x63\x65\x73\x20\x73\x75\x63\x68\x20\x61\x73\x20\x6F\x6E\x65\x20\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x20\x74\x6F\x20\x5B\x58\x65\x72\x6F\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x73\x2F\x61\x63\x63\x6F\x75\x6E\x74\x69\x6E\x67\x2F\x78\x65\x72\x6F\x2F\x61\x63\x63\x6F\x75\x6E\x74\x69\x6E\x67\x2D\x78\x65\x72\x6F\x29\x20\x66\x6F\x72\x20\x61\x63\x63\x6F\x75\x6E\x74\x69\x6E\x67\x20\x64\x61\x74\x61\x2C\x20\x74\x77\x6F\x20\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x73\x20\x74\x6F\x20\x5B\x50\x6C\x61\x69\x64\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x73\x2F\x62\x61\x6E\x6B\x69\x6E\x67\x2F\x70\x6C\x61\x69\x64\x2F\x62\x61\x6E\x6B\x69\x6E\x67\x2D\x70\x6C\x61\x69\x64\x29\x20\x66\x6F\x72\x20\x74\x77\x6F\x20\x62\x61\x6E\x6B\x20\x61\x63\x63\x6F\x75\x6E\x74\x73\x20\x61\x6E\x64\x20\x61\x20\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x20\x74\x6F\x20\x5B\x5A\x65\x74\x74\x6C\x65\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x73\x2F\x63\x6F\x6D\x6D\x65\x72\x63\x65\x2F\x7A\x65\x74\x74\x6C\x65\x2F\x63\x6F\x6D\x6D\x65\x72\x63\x65\x2D\x7A\x65\x74\x74\x6C\x65\x29\x20\x66\x6F\x72\x20\x50\x4F\x53\x20\x64\x61\x74\x61\x2E\n\n\x54\x79\x70\x69\x63\x61\x6C\x6C\x79\x20\x65\x61\x63\x68\x20\x63\x6F\x6D\x70\x61\x6E\x79\x20\x69\x73\x20\x6F\x6E\x65\x20\x6F\x66\x20\x79\x6F\x75\x72\x20\x63\x75\x73\x74\x6F\x6D\x65\x72\x73\x2E\n\n\x57\x68\x65\x6E\x20\x79\x6F\x75\x20\x63\x72\x65\x61\x74\x65\x20\x61\x20\x63\x6F\x6D\x70\x61\x6E\x79\x2C\x20\x79\x6F\x75\x20\x63\x61\x6E\x20\x73\x70\x65\x63\x69\x66\x79\x20\x61\x20\x60\x6E\x61\x6D\x65\x60\x20\x61\x6E\x64\x20\x77\x65\x20\x77\x69\x6C\x6C\x20\x61\x75\x74\x6F\x6D\x61\x74\x69\x63\x61\x6C\x6C\x79\x20\x67\x65\x6E\x65\x72\x61\x74\x65\x20\x61\x20\x75\x6E\x69\x71\x75\x65\x20\x60\x69\x64\x60\x20\x66\x6F\x72\x20\x74\x68\x65\x20\x63\x6F\x6D\x70\x61\x6E\x79\x2E\x20\x59\x6F\x75\x20\x63\x61\x6E\x20\x61\x6C\x73\x6F\x20\x61\x64\x64\x20\x61\x20\x60\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E\x60\x20\x74\x6F\x20\x73\x74\x6F\x72\x65\x20\x61\x6E\x79\x20\x61\x64\x64\x69\x74\x69\x6F\x6E\x61\x6C\x20\x69\x6E\x66\x6F\x72\x6D\x61\x74\x69\x6F\x6E\x20\x61\x62\x6F\x75\x74\x20\x74\x68\x65\x20\x63\x6F\x6D\x70\x61\x6E\x79\x2E" - description: "\uFEFF\x49\x6E\x20\x43\x6F\x64\x61\x74\x2C\x20\x61\x20\x63\x6F\x6D\x70\x61\x6E\x79\x20\x72\x65\x70\x72\x65\x73\x65\x6E\x74\x73\x20\x61\x20\x62\x75\x73\x69\x6E\x65\x73\x73\x20\x73\x68\x61\x72\x69\x6E\x67\x20\x61\x63\x63\x65\x73\x73\x20\x74\x6F\x20\x74\x68\x65\x69\x72\x20\x64\x61\x74\x61\x2E\x20\x45\x61\x63\x68\x20\x63\x6F\x6D\x70\x61\x6E\x79\x20\x63\x61\x6E\x20\x68\x61\x76\x65\x20\x6D\x75\x6C\x74\x69\x70\x6C\x65\x20\x5B\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x73\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x6C\x65\x6E\x64\x69\x6E\x67\x2D\x61\x70\x69\x23\x2F\x73\x63\x68\x65\x6D\x61\x73\x2F\x43\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x29\x20\x74\x6F\x20\x64\x69\x66\x66\x65\x72\x65\x6E\x74\x20\x64\x61\x74\x61\x20\x73\x6F\x75\x72\x63\x65\x73\x20\x73\x75\x63\x68\x20\x61\x73\x20\x6F\x6E\x65\x20\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x20\x74\x6F\x20\x5B\x58\x65\x72\x6F\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x73\x2F\x61\x63\x63\x6F\x75\x6E\x74\x69\x6E\x67\x2F\x78\x65\x72\x6F\x2F\x61\x63\x63\x6F\x75\x6E\x74\x69\x6E\x67\x2D\x78\x65\x72\x6F\x29\x20\x66\x6F\x72\x20\x61\x63\x63\x6F\x75\x6E\x74\x69\x6E\x67\x20\x64\x61\x74\x61\x2C\x20\x74\x77\x6F\x20\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x73\x20\x74\x6F\x20\x5B\x50\x6C\x61\x69\x64\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x73\x2F\x62\x61\x6E\x6B\x69\x6E\x67\x2F\x70\x6C\x61\x69\x64\x2F\x62\x61\x6E\x6B\x69\x6E\x67\x2D\x70\x6C\x61\x69\x64\x29\x20\x66\x6F\x72\x20\x74\x77\x6F\x20\x62\x61\x6E\x6B\x20\x61\x63\x63\x6F\x75\x6E\x74\x73\x20\x61\x6E\x64\x20\x61\x20\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x20\x74\x6F\x20\x5B\x5A\x65\x74\x74\x6C\x65\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x73\x2F\x63\x6F\x6D\x6D\x65\x72\x63\x65\x2F\x7A\x65\x74\x74\x6C\x65\x2F\x63\x6F\x6D\x6D\x65\x72\x63\x65\x2D\x7A\x65\x74\x74\x6C\x65\x29\x20\x66\x6F\x72\x20\x50\x4F\x53\x20\x64\x61\x74\x61\x2E\n\n\x54\x79\x70\x69\x63\x61\x6C\x6C\x79\x20\x65\x61\x63\x68\x20\x63\x6F\x6D\x70\x61\x6E\x79\x20\x69\x73\x20\x6F\x6E\x65\x20\x6F\x66\x20\x79\x6F\x75\x72\x20\x63\x75\x73\x74\x6F\x6D\x65\x72\x73\x2E\n\n\x57\x68\x65\x6E\x20\x79\x6F\x75\x20\x63\x72\x65\x61\x74\x65\x20\x61\x20\x63\x6F\x6D\x70\x61\x6E\x79\x2C\x20\x79\x6F\x75\x20\x63\x61\x6E\x20\x73\x70\x65\x63\x69\x66\x79\x20\x61\x20\x60\x6E\x61\x6D\x65\x60\x20\x61\x6E\x64\x20\x77\x65\x20\x77\x69\x6C\x6C\x20\x61\x75\x74\x6F\x6D\x61\x74\x69\x63\x61\x6C\x6C\x79\x20\x67\x65\x6E\x65\x72\x61\x74\x65\x20\x61\x20\x75\x6E\x69\x71\x75\x65\x20\x60\x69\x64\x60\x20\x66\x6F\x72\x20\x74\x68\x65\x20\x63\x6F\x6D\x70\x61\x6E\x79\x2E\x20\x59\x6F\x75\x20\x63\x61\x6E\x20\x61\x6C\x73\x6F\x20\x61\x64\x64\x20\x61\x20\x60\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E\x60\x20\x74\x6F\x20\x73\x74\x6F\x72\x65\x20\x61\x6E\x79\x20\x61\x64\x64\x69\x74\x69\x6F\x6E\x61\x6C\x20\x69\x6E\x66\x6F\x72\x6D\x61\x74\x69\x6F\x6E\x20\x61\x62\x6F\x75\x74\x20\x74\x68\x65\x20\x63\x6F\x6D\x70\x61\x6E\x79\x2E" + description: "\uFEFF\x49\x6E\x20\x43\x6F\x64\x61\x74\x2C\x20\x61\x20\x63\x6F\x6D\x70\x61\x6E\x79\x20\x72\x65\x70\x72\x65\x73\x65\x6E\x74\x73\x20\x61\x20\x62\x75\x73\x69\x6E\x65\x73\x73\x20\x73\x68\x61\x72\x69\x6E\x67\x20\x61\x63\x63\x65\x73\x73\x20\x74\x6F\x20\x74\x68\x65\x69\x72\x20\x64\x61\x74\x61\x2E\x20\x45\x61\x63\x68\x20\x63\x6F\x6D\x70\x61\x6E\x79\x20\x63\x61\x6E\x20\x68\x61\x76\x65\x20\x6D\x75\x6C\x74\x69\x70\x6C\x65\x20\x5B\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x73\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x73\x79\x6E\x63\x2D\x66\x6F\x72\x2D\x65\x78\x70\x65\x6E\x73\x65\x73\x2D\x61\x70\x69\x23\x2F\x73\x63\x68\x65\x6D\x61\x73\x2F\x43\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x29\x20\x74\x6F\x20\x64\x69\x66\x66\x65\x72\x65\x6E\x74\x20\x64\x61\x74\x61\x20\x73\x6F\x75\x72\x63\x65\x73\x20\x73\x75\x63\x68\x20\x61\x73\x20\x6F\x6E\x65\x20\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x20\x74\x6F\x20\x5B\x58\x65\x72\x6F\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x73\x2F\x61\x63\x63\x6F\x75\x6E\x74\x69\x6E\x67\x2F\x78\x65\x72\x6F\x2F\x61\x63\x63\x6F\x75\x6E\x74\x69\x6E\x67\x2D\x78\x65\x72\x6F\x29\x20\x66\x6F\x72\x20\x61\x63\x63\x6F\x75\x6E\x74\x69\x6E\x67\x20\x64\x61\x74\x61\x2C\x20\x74\x77\x6F\x20\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x73\x20\x74\x6F\x20\x5B\x50\x6C\x61\x69\x64\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x73\x2F\x62\x61\x6E\x6B\x69\x6E\x67\x2F\x70\x6C\x61\x69\x64\x2F\x62\x61\x6E\x6B\x69\x6E\x67\x2D\x70\x6C\x61\x69\x64\x29\x20\x66\x6F\x72\x20\x74\x77\x6F\x20\x62\x61\x6E\x6B\x20\x61\x63\x63\x6F\x75\x6E\x74\x73\x20\x61\x6E\x64\x20\x61\x20\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x20\x74\x6F\x20\x5B\x5A\x65\x74\x74\x6C\x65\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x73\x2F\x63\x6F\x6D\x6D\x65\x72\x63\x65\x2F\x7A\x65\x74\x74\x6C\x65\x2F\x63\x6F\x6D\x6D\x65\x72\x63\x65\x2D\x7A\x65\x74\x74\x6C\x65\x29\x20\x66\x6F\x72\x20\x50\x4F\x53\x20\x64\x61\x74\x61\x2E\n\n\x54\x79\x70\x69\x63\x61\x6C\x6C\x79\x20\x65\x61\x63\x68\x20\x63\x6F\x6D\x70\x61\x6E\x79\x20\x69\x73\x20\x6F\x6E\x65\x20\x6F\x66\x20\x79\x6F\x75\x72\x20\x63\x75\x73\x74\x6F\x6D\x65\x72\x73\x2E\n\n\x57\x68\x65\x6E\x20\x79\x6F\x75\x20\x63\x72\x65\x61\x74\x65\x20\x61\x20\x63\x6F\x6D\x70\x61\x6E\x79\x2C\x20\x79\x6F\x75\x20\x63\x61\x6E\x20\x73\x70\x65\x63\x69\x66\x79\x20\x61\x20\x60\x6E\x61\x6D\x65\x60\x20\x61\x6E\x64\x20\x77\x65\x20\x77\x69\x6C\x6C\x20\x61\x75\x74\x6F\x6D\x61\x74\x69\x63\x61\x6C\x6C\x79\x20\x67\x65\x6E\x65\x72\x61\x74\x65\x20\x61\x20\x75\x6E\x69\x71\x75\x65\x20\x60\x69\x64\x60\x20\x66\x6F\x72\x20\x74\x68\x65\x20\x63\x6F\x6D\x70\x61\x6E\x79\x2E\x20\x59\x6F\x75\x20\x63\x61\x6E\x20\x61\x6C\x73\x6F\x20\x61\x64\x64\x20\x61\x20\x60\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E\x60\x20\x74\x6F\x20\x73\x74\x6F\x72\x65\x20\x61\x6E\x79\x20\x61\x64\x64\x69\x74\x69\x6F\x6E\x61\x6C\x20\x69\x6E\x66\x6F\x72\x6D\x61\x74\x69\x6F\x6E\x20\x61\x62\x6F\x75\x74\x20\x74\x68\x65\x20\x63\x6F\x6D\x70\x61\x6E\x79\x2E" type: object allOf: - $ref: '#/components/schemas/Company/definitions/companyDetails' @@ -83780,10 +10568,10 @@ components: description: 'The `redirect` [Link URL](https://docs.codat.io/auth-flow/authorize-hosted-link) enabling the customer to start their auth flow journey for the company.' example: 'https://link.codat.io/company/27628208-459c-46a2-a705-5641ce25f739' lastSync: - $ref: '#/components/schemas/DateTime' + $ref: '#/components/schemas/TransferTransactionRequest/properties/date/allOf/1' nullable: true created: - $ref: '#/components/schemas/DateTime' + $ref: '#/components/schemas/TransferTransactionRequest/properties/date/allOf/1' createdByUserName: type: string description: Name of user that created the company in Codat. @@ -83859,39 +10647,232 @@ components: lastSync: '2022-10-27T10:22:43.6464237Z' created: '2022-10-27T09:53:29Z' sourceType: Banking - products: - - spend-insights - - lending - CompanyAccessToken: - title: Company access token - description: Details of the access token provisioned for a company. + CompanyConfiguration: + required: + - bankAccount + - supplier + - customer + title: Company configuration type: object - allOf: - - $ref: '#/components/schemas/CompanyAccessToken/definitions/accessToken' + x-examples: + Config Example: + bankAccount: + id: '89' + supplier: + id: '124' + customer: + id: '140' + properties: + bankAccount: + $ref: '#/components/schemas/CompanyConfiguration/definitions/BankAccountDetails' + supplier: + $ref: '#/components/schemas/CompanyConfiguration/definitions/SupplierDetails' + customer: + $ref: '#/components/schemas/CompanyConfiguration/definitions/CustomerDetails' definitions: - accessToken: - title: Access token + BankAccountDetails: + title: Bank account details type: object properties: - expiresIn: - type: integer - description: The number of seconds until the access token expires. - example: 86400 - accessToken: - type: string - description: The access token for the company. - tokenType: + id: type: string - description: The type of token. - example: Bearer - required: - - expiresIn - - accessToken - - tokenType + description: The id of the account from which purchases are made + example: '32' + SupplierDetails: + title: Supplier details + type: object + properties: + id: + $ref: '#/components/schemas/Supplier/allOf/0/properties/id' + CustomerDetails: + title: Customer details + type: object + properties: + id: + $ref: '#/components/schemas/Customer/allOf/0/properties/id' + CompanyInformation: + title: 'Accounting: Company information' + description: "Company info provides standard details about a linked company such as their address, phone number, and company registration.\n\n> **Company information or companies?**\n> \n> Company information is standard information that is held in the accounting software about a company. `Companies` is an endpoint that lists businesses in the Codat system that have linked and shared their data sources." + type: object + properties: + companyName: + type: string + nullable: true + description: Name of the linked company. + accountingPlatformRef: + type: string + nullable: true + description: Identifier or reference for the company in the accounting software. + companyLegalName: + type: string + nullable: true + description: Registered legal name of the linked company. + addresses: + type: array + nullable: true + description: An array of Addresses. + items: + title: 'Accounting: Address' + x-internal: true + type: object + properties: + type: + $ref: '#/components/schemas/CompanyInformation/properties/addresses/items/definitions/accountingAddressType' + line1: + type: string + nullable: true + description: Line 1 of the customer address. + line2: + type: string + nullable: true + description: Line 2 of the customer address. + city: + type: string + nullable: true + description: City of the customer address. + region: + type: string + nullable: true + description: Region of the customer address. + country: + type: string + nullable: true + description: Country of the customer address. + postalCode: + type: string + nullable: true + description: Postal code or zip code. + required: + - type + definitions: + accountingAddressType: + description: The type of the address + type: string + enum: + - Unknown + - Billing + - Delivery + phoneNumbers: + type: array + nullable: true + description: An array of phone numbers. + items: + title: Phone + type: object + x-internal: true + properties: + number: + type: string + nullable: true + examples: + - +44 25691 154789 + - (877) 492-8687 + - 01224 658 999 + description: A phone number. + type: + $ref: '#/components/schemas/CompanyInformation/properties/phoneNumbers/items/definitions/phoneNumberType' + required: + - type + definitions: + phoneNumberType: + description: The type of phone number + type: string + enum: + - Primary + - Landline + - Mobile + - Fax + - Unknown + webLinks: + type: array + nullable: true + description: An array of weblinks. + items: + title: Weblink + description: Weblink associated with the company. + type: object + properties: + type: + description: The type of the weblink. + type: string + enum: + - Website + - Social + - Unknown + url: + description: The full URL for the weblink. + type: string + format: url + example: + type: Website + url: 'https://codat.io' + ledgerLockDate: + $ref: '#/components/schemas/TransferTransactionRequest/properties/date/allOf/1' + description: 'If set in the accounting software, the date (in the ISO 8601 date/time format) after which accounting transactions cannot be edited. Commonly used when books are closed at year-end.' + registrationNumber: + type: string + nullable: true + description: Registration number given to the linked company by the companies authority in the country of origin. In the UK this is Companies House. + taxNumber: + type: string + nullable: true + description: Company tax number. + financialYearStartDate: + $ref: '#/components/schemas/TransferTransactionRequest/properties/date/allOf/1' + description: Start date of the financial year for the company. + baseCurrency: + type: string + nullable: true + description: Currency set in the accounting software of the linked company. Used by the currency rate. + sourceUrls: + type: object + additionalProperties: + type: string + nullable: true + nullable: true + description: |- + URL addresses for the accounting source. + + For example, for Xero integrations two URLs are returned. These have many potential use cases, such as [deep linking](https://developer.xero.com/documentation/api-guides/deep-link-xero). + createdDate: + $ref: '#/components/schemas/TransferTransactionRequest/properties/date/allOf/1' + description: Date the linked company was created in the accounting software. + supplementalData: + $ref: '#/components/schemas/SupplementalData' examples: - - expiresIn: 86400 - accessToken: string - tokenType: Bearer + - companyName: ACME Corporation + accountingPlatformRef: 4444e827-401b-4925-92cb-d79086bf3b6b + companyLegalName: ACME Corporation Ltd. + addresses: + - type: Billing + line1: Warner House + line2: 98 Theobald's Road + city: London + region: '' + country: United Kingdom + postalcode: WC1X 8WB + - type: Unknown + line1: 123 Sierra Way + line2: '' + city: San Pablo + region: CA + country: '' + postalCode: '87999' + phoneNumbers: + - number: 010 1234 5678 + type: Landline + webLinks: + - type: Website + url: 'https://www.wbsl.com/' + ledgerLockDate: '2019-03-04T12:08:01.881Z' + registrationNumber: '1234567890' + taxNumber: GB 123456789 + financialYearStartDate: '2019-04-01T00:00:00Z' + baseCurrency: USD + sourceUrls: + url1: 'https://go.xero.com/organisationlogin/default.aspx?shortcode=!rxs0Q' + url2: 'https://reporting.xero.com/!rxs0Q' + createdDate: '2020-02-03T16:42:02Z' CompanyRequestBody: title: Create company request x-internal: true @@ -83911,47 +10892,73 @@ components: $ref: '#/components/schemas/Company/definitions/companyDetails/properties/tags' required: - name - CompanyUpdateRequest: - title: Update company request - x-internal: true + CompanySyncStatus: + title: Company sync status type: object + additionalProperties: false + x-examples: + Success Data Pushed: + companyId: 20803807-4e9a-4cb7-b67b-9f889a3916e1 + syncId: aa4c9dfd-e945-4424-9628-9e724f14c267 + syncStatusCode: 2000 + syncStatus: Complete + errorMessage: '' + syncExceptionMessage: '' + syncUtc: '2023-01-24T14:15:22Z' + dataPushed: true + Success No Data Pushed: + companyId: 20803807-4e9a-4cb7-b67b-9f889a3916e1 + syncId: aa4c9dfd-e945-4424-9628-9e724f14c267 + syncStatusCode: 2040 + syncStatus: Complete + errorMessage: '' + syncExceptionMessage: '' + syncUtc: '2023-01-24T14:15:22Z' + dataPushed: false properties: - name: + companyId: type: string - description: Name of company being connected. - pattern: '^[A-Za-z0-9\s\-'',&@.,?!\s]+$' - minLength: 1 - example: Bank of Dave - description: - $ref: '#/components/schemas/CompanyRequestBody/properties/description' - tags: - $ref: '#/components/schemas/Company/definitions/companyDetails/properties/tags' - CompanyWebhook: - title: Company webhook - type: object - properties: - id: + description: Unique identifier for your SMB in Codat. + example: d4d73051-ed31-42b6-99f6-d288cd940992 + nullable: true + syncId: type: string - format: uuid - example: ba29118f-5406-4e59-b05c-ba307ca38d01 - description: Unique identifier of the event - eventType: + description: Unique identifier of the sync. + example: a6a22aff-a43a-411d-a910-2dae73217cce + nullable: true + syncStatusCode: + type: integer + format: int32 + description: Status code of the sync. + example: 2000 + syncStatus: type: string - description: The type of event. + description: Text status of the sync. examples: - - company.created - - company.deleted - generatedDate: - $ref: '#/components/schemas/DateTime' - description: The date time in UTC the event was generated in Codat. - payload: - $ref: '#/components/schemas/Company/definitions/companyDetails' - Connection: - title: Connection - description: "\uFEFF\x41\x20\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x20\x72\x65\x70\x72\x65\x73\x65\x6E\x74\x73\x20\x61\x20\x5B\x63\x6F\x6D\x70\x61\x6E\x79\x27\x73\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x70\x6C\x61\x74\x66\x6F\x72\x6D\x2D\x61\x70\x69\x23\x2F\x73\x63\x68\x65\x6D\x61\x73\x2F\x43\x6F\x6D\x70\x61\x6E\x79\x29\x20\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x20\x74\x6F\x20\x61\x20\x64\x61\x74\x61\x20\x73\x6F\x75\x72\x63\x65\x20\x61\x6E\x64\x20\x61\x6C\x6C\x6F\x77\x73\x20\x79\x6F\x75\x20\x74\x6F\x20\x73\x79\x6E\x63\x68\x72\x6F\x6E\x69\x7A\x65\x20\x64\x61\x74\x61\x20\x28\x70\x75\x6C\x6C\x20\x61\x6E\x64\x2F\x6F\x72\x20\x70\x75\x73\x68\x29\x20\x77\x69\x74\x68\x20\x74\x68\x61\x74\x20\x73\x6F\x75\x72\x63\x65\x2E\n\n\x41\x20\x63\x6F\x6D\x70\x61\x6E\x79\x20\x63\x61\x6E\x20\x68\x61\x76\x65\x20\x6D\x75\x6C\x74\x69\x70\x6C\x65\x20\x64\x61\x74\x61\x20\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x73\x20\x64\x65\x70\x65\x6E\x64\x69\x6E\x67\x20\x6F\x6E\x20\x74\x68\x65\x20\x74\x79\x70\x65\x20\x6F\x66\x20\x64\x61\x74\x61\x20\x73\x6F\x75\x72\x63\x65\x20\x69\x74\x20\x69\x73\x20\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6E\x67\x20\x74\x6F\x2E\x20\x46\x6F\x72\x20\x65\x78\x61\x6D\x70\x6C\x65\x2C\x20\x61\x20\x73\x69\x6E\x67\x6C\x65\x20\x63\x6F\x6D\x70\x61\x6E\x79\x20\x63\x61\x6E\x20\x6C\x69\x6E\x6B\x20\x74\x6F\x3A\n\n\x2D\x20\x5B\x41\x63\x63\x6F\x75\x6E\x74\x69\x6E\x67\x20\x64\x61\x74\x61\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x61\x63\x63\x6F\x75\x6E\x74\x69\x6E\x67\x2D\x61\x70\x69\x2F\x6F\x76\x65\x72\x76\x69\x65\x77\x29\x20\x2D\x20\x31\x20\x61\x63\x74\x69\x76\x65\x20\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x2E\n\x2D\x20\x5B\x42\x61\x6E\x6B\x69\x6E\x67\x20\x64\x61\x74\x61\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x62\x61\x6E\x6B\x69\x6E\x67\x2D\x61\x70\x69\x2F\x6F\x76\x65\x72\x76\x69\x65\x77\x29\x20\x2D\x20\x4D\x75\x6C\x74\x69\x70\x6C\x65\x20\x61\x63\x74\x69\x76\x65\x20\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x73\x2E\n\x2D\x20\x5B\x43\x6F\x6D\x6D\x65\x72\x63\x65\x20\x64\x61\x74\x61\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x63\x6F\x6D\x6D\x65\x72\x63\x65\x2D\x61\x70\x69\x2F\x6F\x76\x65\x72\x76\x69\x65\x77\x29\x20\x2D\x20\x4D\x75\x6C\x74\x69\x70\x6C\x65\x20\x61\x63\x74\x69\x76\x65\x20\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x73\x2E\n\x41\x6E\x79\x20\x63\x6F\x6D\x62\x69\x6E\x61\x74\x69\x6F\x6E\x20\x6F\x66\x20\x61\x63\x63\x6F\x75\x6E\x74\x69\x6E\x67\x2C\x20\x62\x61\x6E\x6B\x69\x6E\x67\x2C\x20\x61\x6E\x64\x20\x63\x6F\x6D\x6D\x65\x72\x63\x65\x20\x64\x61\x74\x61\x20\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x73\x20\x69\x73\x20\x61\x6C\x6C\x6F\x77\x65\x64\x2E\n\n\x42\x65\x66\x6F\x72\x65\x20\x79\x6F\x75\x20\x63\x61\x6E\x20\x75\x73\x65\x20\x61\x20\x64\x61\x74\x61\x20\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x20\x74\x6F\x20\x70\x75\x6C\x6C\x20\x6F\x72\x20\x70\x75\x73\x68\x20\x64\x61\x74\x61\x2C\x20\x74\x68\x65\x20\x63\x6F\x6D\x70\x61\x6E\x79\x20\x6D\x75\x73\x74\x20\x67\x72\x61\x6E\x74\x20\x79\x6F\x75\x20\x61\x63\x63\x65\x73\x73\x20\x74\x6F\x20\x74\x68\x65\x69\x72\x20\x62\x75\x73\x69\x6E\x65\x73\x73\x20\x64\x61\x74\x61\x20\x62\x79\x20\x5B\x6C\x69\x6E\x6B\x69\x6E\x67\x20\x74\x68\x65\x20\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x61\x75\x74\x68\x2D\x66\x6C\x6F\x77\x2F\x6F\x76\x65\x72\x76\x69\x65\x77\x29\x2E" + - Complete + - PushError + - Started + - NotStarted + - Pushing + nullable: true + errorMessage: + type: string + description: Error message of the sync. + nullable: true + syncExceptionMessage: + type: string + description: Exception message of the sync. + nullable: true + syncUtc: + $ref: '#/components/schemas/TransferTransactionRequest/properties/date/allOf/1' + description: Datetime of the sync. + nullable: true + dataPushed: + type: boolean + description: Boolean of whether the sync resulted in data being pushed. Connection: title: Connection - description: "\uFEFF\x41\x20\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x20\x72\x65\x70\x72\x65\x73\x65\x6E\x74\x73\x20\x61\x20\x5B\x63\x6F\x6D\x70\x61\x6E\x79\x27\x73\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x6C\x65\x6E\x64\x69\x6E\x67\x2D\x61\x70\x69\x23\x2F\x73\x63\x68\x65\x6D\x61\x73\x2F\x43\x6F\x6D\x70\x61\x6E\x79\x29\x20\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x20\x74\x6F\x20\x61\x20\x64\x61\x74\x61\x20\x73\x6F\x75\x72\x63\x65\x20\x61\x6E\x64\x20\x61\x6C\x6C\x6F\x77\x73\x20\x79\x6F\x75\x20\x74\x6F\x20\x73\x79\x6E\x63\x68\x72\x6F\x6E\x69\x7A\x65\x20\x64\x61\x74\x61\x20\x28\x70\x75\x6C\x6C\x20\x61\x6E\x64\x2F\x6F\x72\x20\x70\x75\x73\x68\x29\x20\x77\x69\x74\x68\x20\x74\x68\x61\x74\x20\x73\x6F\x75\x72\x63\x65\x2E\n\n\x41\x20\x63\x6F\x6D\x70\x61\x6E\x79\x20\x63\x61\x6E\x20\x68\x61\x76\x65\x20\x6D\x75\x6C\x74\x69\x70\x6C\x65\x20\x64\x61\x74\x61\x20\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x73\x20\x64\x65\x70\x65\x6E\x64\x69\x6E\x67\x20\x6F\x6E\x20\x74\x68\x65\x20\x74\x79\x70\x65\x20\x6F\x66\x20\x64\x61\x74\x61\x20\x73\x6F\x75\x72\x63\x65\x20\x69\x74\x20\x69\x73\x20\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6E\x67\x20\x74\x6F\x2E\x20\x46\x6F\x72\x20\x65\x78\x61\x6D\x70\x6C\x65\x2C\x20\x61\x20\x73\x69\x6E\x67\x6C\x65\x20\x63\x6F\x6D\x70\x61\x6E\x79\x20\x63\x61\x6E\x20\x6C\x69\x6E\x6B\x20\x74\x6F\x3A\n\n\x2D\x20\x5B\x41\x63\x63\x6F\x75\x6E\x74\x69\x6E\x67\x20\x64\x61\x74\x61\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x61\x63\x63\x6F\x75\x6E\x74\x69\x6E\x67\x2D\x61\x70\x69\x2F\x6F\x76\x65\x72\x76\x69\x65\x77\x29\x20\x2D\x20\x31\x20\x61\x63\x74\x69\x76\x65\x20\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x2E\n\x2D\x20\x5B\x42\x61\x6E\x6B\x69\x6E\x67\x20\x64\x61\x74\x61\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x62\x61\x6E\x6B\x69\x6E\x67\x2D\x61\x70\x69\x2F\x6F\x76\x65\x72\x76\x69\x65\x77\x29\x20\x2D\x20\x4D\x75\x6C\x74\x69\x70\x6C\x65\x20\x61\x63\x74\x69\x76\x65\x20\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x73\x2E\n\x2D\x20\x5B\x43\x6F\x6D\x6D\x65\x72\x63\x65\x20\x64\x61\x74\x61\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x63\x6F\x6D\x6D\x65\x72\x63\x65\x2D\x61\x70\x69\x2F\x6F\x76\x65\x72\x76\x69\x65\x77\x29\x20\x2D\x20\x4D\x75\x6C\x74\x69\x70\x6C\x65\x20\x61\x63\x74\x69\x76\x65\x20\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x73\x2E\n\x41\x6E\x79\x20\x63\x6F\x6D\x62\x69\x6E\x61\x74\x69\x6F\x6E\x20\x6F\x66\x20\x61\x63\x63\x6F\x75\x6E\x74\x69\x6E\x67\x2C\x20\x62\x61\x6E\x6B\x69\x6E\x67\x2C\x20\x61\x6E\x64\x20\x63\x6F\x6D\x6D\x65\x72\x63\x65\x20\x64\x61\x74\x61\x20\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x73\x20\x69\x73\x20\x61\x6C\x6C\x6F\x77\x65\x64\x2E\n\n\x42\x65\x66\x6F\x72\x65\x20\x79\x6F\x75\x20\x63\x61\x6E\x20\x75\x73\x65\x20\x61\x20\x64\x61\x74\x61\x20\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x20\x74\x6F\x20\x70\x75\x6C\x6C\x20\x6F\x72\x20\x70\x75\x73\x68\x20\x64\x61\x74\x61\x2C\x20\x74\x68\x65\x20\x63\x6F\x6D\x70\x61\x6E\x79\x20\x6D\x75\x73\x74\x20\x67\x72\x61\x6E\x74\x20\x79\x6F\x75\x20\x61\x63\x63\x65\x73\x73\x20\x74\x6F\x20\x74\x68\x65\x69\x72\x20\x62\x75\x73\x69\x6E\x65\x73\x73\x20\x64\x61\x74\x61\x20\x62\x79\x20\x5B\x6C\x69\x6E\x6B\x69\x6E\x67\x20\x74\x68\x65\x20\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x61\x75\x74\x68\x2D\x66\x6C\x6F\x77\x2F\x6F\x76\x65\x72\x76\x69\x65\x77\x29\x2E" + description: "\uFEFF\x41\x20\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x20\x72\x65\x70\x72\x65\x73\x65\x6E\x74\x73\x20\x61\x20\x5B\x63\x6F\x6D\x70\x61\x6E\x79\x27\x73\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x73\x79\x6E\x63\x2D\x66\x6F\x72\x2D\x65\x78\x70\x65\x6E\x73\x65\x73\x2D\x61\x70\x69\x23\x2F\x73\x63\x68\x65\x6D\x61\x73\x2F\x43\x6F\x6D\x70\x61\x6E\x79\x29\x20\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x20\x74\x6F\x20\x61\x20\x64\x61\x74\x61\x20\x73\x6F\x75\x72\x63\x65\x20\x61\x6E\x64\x20\x61\x6C\x6C\x6F\x77\x73\x20\x79\x6F\x75\x20\x74\x6F\x20\x73\x79\x6E\x63\x68\x72\x6F\x6E\x69\x7A\x65\x20\x64\x61\x74\x61\x20\x28\x70\x75\x6C\x6C\x20\x61\x6E\x64\x2F\x6F\x72\x20\x70\x75\x73\x68\x29\x20\x77\x69\x74\x68\x20\x74\x68\x61\x74\x20\x73\x6F\x75\x72\x63\x65\x2E\n\n\x41\x20\x63\x6F\x6D\x70\x61\x6E\x79\x20\x63\x61\x6E\x20\x68\x61\x76\x65\x20\x6D\x75\x6C\x74\x69\x70\x6C\x65\x20\x64\x61\x74\x61\x20\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x73\x20\x64\x65\x70\x65\x6E\x64\x69\x6E\x67\x20\x6F\x6E\x20\x74\x68\x65\x20\x74\x79\x70\x65\x20\x6F\x66\x20\x64\x61\x74\x61\x20\x73\x6F\x75\x72\x63\x65\x20\x69\x74\x20\x69\x73\x20\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6E\x67\x20\x74\x6F\x2E\x20\x46\x6F\x72\x20\x65\x78\x61\x6D\x70\x6C\x65\x2C\x20\x61\x20\x73\x69\x6E\x67\x6C\x65\x20\x63\x6F\x6D\x70\x61\x6E\x79\x20\x63\x61\x6E\x20\x6C\x69\x6E\x6B\x20\x74\x6F\x3A\n\n\x2D\x20\x5B\x41\x63\x63\x6F\x75\x6E\x74\x69\x6E\x67\x20\x64\x61\x74\x61\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x61\x63\x63\x6F\x75\x6E\x74\x69\x6E\x67\x2D\x61\x70\x69\x2F\x6F\x76\x65\x72\x76\x69\x65\x77\x29\x20\x2D\x20\x31\x20\x61\x63\x74\x69\x76\x65\x20\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x2E\n\x2D\x20\x5B\x42\x61\x6E\x6B\x69\x6E\x67\x20\x64\x61\x74\x61\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x62\x61\x6E\x6B\x69\x6E\x67\x2D\x61\x70\x69\x2F\x6F\x76\x65\x72\x76\x69\x65\x77\x29\x20\x2D\x20\x4D\x75\x6C\x74\x69\x70\x6C\x65\x20\x61\x63\x74\x69\x76\x65\x20\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x73\x2E\n\x2D\x20\x5B\x43\x6F\x6D\x6D\x65\x72\x63\x65\x20\x64\x61\x74\x61\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x63\x6F\x6D\x6D\x65\x72\x63\x65\x2D\x61\x70\x69\x2F\x6F\x76\x65\x72\x76\x69\x65\x77\x29\x20\x2D\x20\x4D\x75\x6C\x74\x69\x70\x6C\x65\x20\x61\x63\x74\x69\x76\x65\x20\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x73\x2E\n\x41\x6E\x79\x20\x63\x6F\x6D\x62\x69\x6E\x61\x74\x69\x6F\x6E\x20\x6F\x66\x20\x61\x63\x63\x6F\x75\x6E\x74\x69\x6E\x67\x2C\x20\x62\x61\x6E\x6B\x69\x6E\x67\x2C\x20\x61\x6E\x64\x20\x63\x6F\x6D\x6D\x65\x72\x63\x65\x20\x64\x61\x74\x61\x20\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x73\x20\x69\x73\x20\x61\x6C\x6C\x6F\x77\x65\x64\x2E\n\n\x42\x65\x66\x6F\x72\x65\x20\x79\x6F\x75\x20\x63\x61\x6E\x20\x75\x73\x65\x20\x61\x20\x64\x61\x74\x61\x20\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x20\x74\x6F\x20\x70\x75\x6C\x6C\x20\x6F\x72\x20\x70\x75\x73\x68\x20\x64\x61\x74\x61\x2C\x20\x74\x68\x65\x20\x63\x6F\x6D\x70\x61\x6E\x79\x20\x6D\x75\x73\x74\x20\x67\x72\x61\x6E\x74\x20\x79\x6F\x75\x20\x61\x63\x63\x65\x73\x73\x20\x74\x6F\x20\x74\x68\x65\x69\x72\x20\x62\x75\x73\x69\x6E\x65\x73\x73\x20\x64\x61\x74\x61\x20\x62\x79\x20\x5B\x6C\x69\x6E\x6B\x69\x6E\x67\x20\x74\x68\x65\x20\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x61\x75\x74\x68\x2D\x66\x6C\x6F\x77\x2F\x6F\x76\x65\x72\x76\x69\x65\x77\x29\x2E" type: object properties: id: @@ -83965,9 +10972,6 @@ components: type: string description: A unique four-character ID that identifies the platform of the company's data connection. This ensures continuity if the platform changes its name in the future. sourceId: - $ref: '#/components/schemas/Branding/properties/sourceId' - sourceType: - $ref: '#/components/schemas/Integration/definitions/sourceType' type: string format: uuid example: 35b92968-9851-4095-ad60-395c95cbcba4 @@ -83996,10 +11000,10 @@ components: status: $ref: '#/components/schemas/Connection/definitions/dataConnectionStatus' lastSync: - $ref: '#/components/schemas/DateTime' + $ref: '#/components/schemas/TransferTransactionRequest/properties/date/allOf/1' nullable: true created: - $ref: '#/components/schemas/DateTime' + $ref: '#/components/schemas/TransferTransactionRequest/properties/date/allOf/1' dataConnectionErrors: type: array nullable: true @@ -84010,7 +11014,6 @@ components: nullable: true additionalProperties: type: string - additionalProperties: true additionalProperties: false required: - id @@ -84046,7 +11049,7 @@ components: type: string description: A message about a error returned by Codat. erroredOnUtc: - $ref: '#/components/schemas/DateTime' + $ref: '#/components/schemas/TransferTransactionRequest/properties/date/allOf/1' status: title: Error status description: The current status of a transient error. Null statuses indicate that the error is not transient. @@ -84058,7 +11061,7 @@ components: resolvedOnUtc: description: The datetime in Utc that the error was resolved. nullable: true - $ref: '#/components/schemas/DateTime' + $ref: '#/components/schemas/TransferTransactionRequest/properties/date/allOf/1' dataConnectionSourceType: title: Source Type description: The type of platform of the connection. @@ -84083,411 +11086,219 @@ components: lastSync: '2022-10-27T10:22:43.6464237Z' created: '2022-10-27T09:53:29Z' sourceType: Banking - ConnectionManagementAccessToken: - title: Access token - type: object - properties: - accessToken: - type: string - nullable: false - description: Access token that allows SMBs to manage connections that have access to their data. - example: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c - ConnectionManagementAllowedOrigins: - title: Allowed origins - type: object - properties: - allowedOrigins: - type: array - description: 'An array of allowed origins (i.e. your domains) to permit cross-origin resource sharing ([CORS](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing)).n resource sharing ([CORS](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing)).' - items: - type: string - format: uri - description: A domain you want to allow CORS with Codat. - example: - allowedOrigins: - - 'https://www.bank-of-dave.com' Connections: title: Connections x-internal: true allOf: - type: object properties: - results: - type: array - items: - $ref: '#/components/schemas/Connection' - - $ref: '#/components/schemas/PagingInfo' - ConnectionWebhook: - title: Connection webhook - DataIntegrityDetail: - title: Data integrity detail + results: + type: array + items: + $ref: '#/components/schemas/Connection' + - $ref: '#/components/schemas/PagingInfo' + CreateAccountResponse: + title: Create account response + x-internal: true + allOf: + - type: object + properties: + data: + allOf: + - $ref: '#/components/schemas/Account' + - deprecated: true + - $ref: '#/components/schemas/PushOperation' + CreateAdjustmentRequest: + title: Create adjustment request + x-internal: true + type: array + minItems: 1 + maxItems: 50 + items: + $ref: '#/components/schemas/AdjustmentTransactionRequest' + CreateBankAccountResponse: + title: Create bank account response + x-internal: true + allOf: + - type: object + properties: + data: + allOf: + - $ref: '#/components/schemas/BankAccount' + - deprecated: true + - $ref: '#/components/schemas/PushOperation' + CreateCustomerResponse: + title: Create customer response + x-internal: true + allOf: + - type: object + properties: + data: + allOf: + - $ref: '#/components/schemas/Customer' + - deprecated: true + - $ref: '#/components/schemas/PushOperation' + CreateExpenseRequest: + title: Create expense request + x-internal: true + type: array + minItems: 1 + maxItems: 50 + items: + $ref: '#/components/schemas/ExpenseTransaction' + CreateExpenseResponse: + title: Create expense response + x-internal: true type: object properties: - id: + syncId: type: string + example: cd937d46-8e41-43a9-9477-a79158ffd98a format: uuid - example: ba29118f-5406-4e59-b05c-ba307ca38d01 - description: Unique identifier of the event. - eventType: - type: string - description: The type of event. - examples: - - connection.created - - connection.connected - - connection.disconnected - - connection.reconnected - - connection.deleted - - connection.failed - generatedDate: - $ref: '#/components/schemas/DateTime' - description: The date time in UTC the event was generated in Codat. - payload: - $ref: '#/components/schemas/ConnectionWebhook/definitions/connectionWebhookPayload' - definitions: - connectionWebhookPayload: - title: Connection webhook payload - type: object - properties: - referenceCompany: - $ref: '#/components/schemas/Company/definitions/companyReference' - connection: - $ref: '#/components/schemas/Connection' - CreateApiKey: - title: Create API key - description: Details about the newly created API key. + description: Unique id of sync created + CreateReimbursableExpenseResponse: + title: Create reimbursable expense response x-internal: true type: object properties: - name: - $ref: '#/components/schemas/ApiKeyDetails/allOf/0/properties/name' - CustomDataTypeConfiguration: - title: Custom data type configuration - type: object - description: Client's configuration details for a specific custom data type and platform pair. - properties: - dataSource: - type: string - description: Underlying endpoint of the source platform that will serve as a data source for the custom data type. This value is not validated by Codat. - requiredData: - type: object - description: Properties required to be fetched from the underlying platform for the custom data type that is being configured. This value is not validated by Codat. - additionalProperties: - type: string - description: The client's defined name for the property with the value being the source system's property name which the mapping is targeting. - keyBy: - type: array - description: An array of properties from the source system that can be used to uniquely identify the records returned for the custom data type. This value is not validated by Codat. - items: - type: string - minLength: 1 - sourceModifiedDate: - type: array - nullable: true - items: - type: string - description: Property in the source platform nominated by the client that defines the date when a record was last modified there. This value is not validated by Codat. - examples: - - dataSource: api/purchaseOrders?$filter=currencyCode eq 'NOK' - requiredData: - currencyCode: '$[*].currencyCode' - id: '$[*].id' - number: '$[*].number' - orderDate: '$[*].orderDate' - totalAmountExcludingTax: '$[*].totalAmountExcludingTax' - totalTaxAmount: '$[*].totalTaxAmount' - vendorName: '$[*].number' - keyBy: - - '$[*].id' - sourceModifiedDate: - - '$[*].lastModifiedDateTime' - CustomDataTypeRecords: - title: Custom data type records - type: object - description: Resulting records pulled from the source platform for a specific custom data type. - properties: - results: - type: array - items: - $ref: '#/components/schemas/CustomDataTypeRecords/definitions/customDataTypeRecord' - pageNumber: - $ref: '#/components/schemas/PagingInfo/properties/pageNumber' - pageSize: - $ref: '#/components/schemas/PagingInfo/properties/pageSize' - totalResults: - $ref: '#/components/schemas/PagingInfo/properties/totalResults' - definitions: - customDataTypeRecord: - title: Custom data type record - description: ID GUID of the transaction. - type: - type: string - description: The data type of the record. - connectionId: + syncId: type: string + example: cd937d46-8e41-43a9-9477-a79158ffd98a format: uuid - description: ID GUID representing the connection of the accounting or banking platform. - readOnly: true - date: - $ref: '#/components/schemas/DateTime' - description: The date of the transaction. - description: - type: string - description: The transaction description. - amount: - type: number - format: decimal - description: The transaction value. - currency: - $ref: '#/components/schemas/SourceAccount/properties/currency' - description: The currency of the transaction. - matches: - type: array - items: - $ref: '#/components/schemas/DataIntegrityDetail/definitions/dataIntegrityMatch' - definitions: - dataIntegrityMatch: - type: object - properties: - id: - type: string - nullable: false - description: Unique identifier of the record. - content: - type: object - description: Values from the source system for the properties defined in the custom data type configuration. - additionalProperties: - type: object - modifiedDate: - title: ModifiedDate - x-internal: true - type: object - properties: - modifiedDate: - allOf: - - $ref: '#/components/schemas/DateTime' - - description: |- - The date when the record was last fetched from the accounting software, commerce software, or open banking provider and updated in Codat’s data cache. - - Use it to identify and retrieve records that have changed since your last fetch. For example, filtering `modifiedDate` to today will provide new records updated in Codat today. - - This date is populated for all data types except for attachments, balance sheets, company information, and profit & loss reports ([read more](https://docs.codat.io/using-the-api/modified-dates#modified-date)). - - In Codat's data model, dates and times are represented using the ISO 8601 standard. - description: ID GUID of the transaction. - type: - type: string - description: 'The data type which the data type in the URL has been matched against. For example, if you''ve matched accountTransactions and banking-transactions, and you call this endpoint with accountTransactions in the URL, this property would be banking-transactions.' - connectionId: - type: string - description: ID GUID representing the connection of the accounting or banking platform. - format: uuid - date: - type: string - description: The date of the transaction. - description: - type: string - description: The transaction description. - amount: - type: string - description: The transaction value. - currency: - $ref: '#/components/schemas/SourceAccount/properties/currency' - description: The currency of the transaction. - DataIntegrityDetails: - title: Data integrity details + description: Unique id of sync created + CreateSupplierResponse: + title: Create supplier response x-internal: true allOf: - type: object properties: - results: - type: array - items: - $ref: '#/components/schemas/DataIntegrityDetail' - - $ref: '#/components/schemas/PagingInfo' - DataIntegrityStatus: - title: Data integrity status + data: + allOf: + - $ref: '#/components/schemas/Supplier' + - deprecated: true + - $ref: '#/components/schemas/PushOperation' + Customer: + title: 'Accounting: Customer' + description: | + ## Overview + + A customer is a person or organisation that buys goods or services. From the Customers endpoints, you can retrieve a [list of all the customers of a company](https://api.codat.io/swagger/index.html#/Customers/get_companies__companyId__data_customers). + + Customers' data links to accounts receivable [invoices](https://docs.codat.io/sync-for-expenses-api#/schemas/Invoice). type: object allOf: - - $ref: '#/components/schemas/DataIntegritySummary/definitions/dataIntegrityType' - type: object properties: - statusInfo: - $ref: '#/components/schemas/DataIntegrityStatus/definitions/dataIntegrityStatusInfo' - connectionIds: - $ref: '#/components/schemas/DataIntegrityStatus/definitions/dataIntegrityConnectionId' - amounts: - $ref: '#/components/schemas/DataIntegrityStatus/definitions/dataIntegrityAmounts' - dates: - $ref: '#/components/schemas/DataIntegrityStatus/definitions/dataIntegrityDates' + id: + type: string + description: 'Identifier for the customer, unique to the company in the accounting software.' + customerName: + type: string + nullable: true + description: 'Name of the customer as recorded in the accounting system, typically the company name.' + contactName: + type: string + nullable: true + description: Name of the main contact for the identified customer. + emailAddress: + type: string + nullable: true + description: Email address the customer can be contacted by. + defaultCurrency: + $ref: '#/components/schemas/Account/definitions/accountPrototype/properties/currency' + description: Default currency the transactional data of the customer is recorded in. + phone: + type: string + nullable: true + description: Phone number the customer can be contacted by. + addresses: + type: array + nullable: true + description: An array of Addresses. + items: + $ref: '#/components/schemas/CompanyInformation/properties/addresses/items' + contacts: + type: array + nullable: true + description: An array of Contacts. + items: + $ref: '#/components/schemas/Customer/definitions/contact' + registrationNumber: + type: string + nullable: true + description: 'Company number. In the UK, this is typically the Companies House company registration number.' + taxNumber: + type: string + nullable: true + description: Company tax number. + status: + $ref: '#/components/schemas/Customer/definitions/customerStatus' + description: Current state of the customer. + metadata: + $ref: '#/components/schemas/Account/allOf/2/properties/metadata' + supplementalData: + $ref: '#/components/schemas/SupplementalData' + - $ref: '#/components/schemas/Account/allOf/3' + required: + - status definitions: - dataIntegrityStatusInfo: + accountingCustomerRef: type: object properties: - lastMatched: + id: + minLength: 1 type: string - $ref: '#/components/schemas/DateTime' - description: The date the matching algorithm last ran against the company’s data type specified. - readOnly: true - currentStatus: - $ref: '#/components/schemas/DataIntegrityStatus/definitions/integrityStatus' - statusMessage: + description: '`id` from the Customers data type' + companyName: type: string - description: Detailed explanation supporting the status value. - dataIntegrityConnectionId: + nullable: true + description: '`customerName` from the Customer data type' + required: + - id + customerStatus: + description: Status of customer. + type: string + enum: + - Unknown + - Active + - Archived + contact: type: object properties: - source: - type: array - description: An array of strings. The connection IDs for the type specified in the url. - items: - type: string - target: + name: + type: string + nullable: true + description: Name of a contact for a customer. + email: + type: string + nullable: true + description: Email of a contact for a customer. + phone: type: array - description: An array of strings. The connection IDs for the type being matched to. + nullable: true + description: An array of Phone numbers. items: - type: string - dataIntegrityAmounts: - type: object - description: 'Only returned for transactions. For accounts, there is nothing returned.' - properties: - min: - type: number - format: decimal - description: Lowest value of transaction set. - max: - type: number - format: decimal - description: Highest value of transaction set. - currency: - $ref: '#/components/schemas/SourceAccount/properties/currency' - dataIntegrityDates: - type: object - description: 'Only returned for transactions. For accounts, there is nothing returned.' - properties: - minDate: - $ref: '#/components/schemas/DateTime' - description: Earliest date of transaction set. - readOnly: true - maxDate: - $ref: '#/components/schemas/DateTime' - description: Latest date of transaction set. - readOnly: true - minOverlappingDate: - $ref: '#/components/schemas/DateTime' - description: Earliest date where transactions exist in both accounting and banking platforms. - readOnly: true - maxOverlappingDate: - $ref: '#/components/schemas/DateTime' - description: Latest date where transactions exist in both account and banking platforms. - readOnly: true - integrityStatus: - type: string - enum: - - Unknown - - DoesNotExist - - Error - - Complete - description: The current status of the most recently run matching algorithm. - examples: - - type: string - statusInfo: - lastMatched: '2021-10-24T14:15:22Z' - currentStatus: Unknown - statusMessage: string - connectionIds: - source: - - d5a8d1b2-b38a-4e44-8641-548ad43be6bb - - da8c9f39-8af9-4a98-964b-f1e207942837 - target: - - 3d7ce25a-c107-44bc-8e0c-36c10bdd14e0 - - a5300eac-01fa-4a77-b5b0-ea0b86a3be69 - amounts: - min: 130 - max: 2450 - currency: GBP - dates: - minDate: '2021-09-17T12:09:33.441Z' - maxDate: '2021-12-16T12:12:53.441Z' - minOverlappingDate: '2021-09-30T12:09:13.441Z' - maxOverlappingDate: '2021-11-27T12:19:33.441Z' - DataIntegrityStatuses: - title: Data integrity statuses - x-internal: true - type: object - properties: - metadata: - type: array - items: - $ref: '#/components/schemas/DataIntegrityStatus' - DataIntegritySummaries: - title: Data integrity summaries + $ref: '#/components/schemas/CompanyInformation/properties/phoneNumbers/items' + address: + $ref: '#/components/schemas/CompanyInformation/properties/addresses/items' + description: An object of Address information. + status: + $ref: '#/components/schemas/Customer/definitions/customerStatus' + modifiedDate: + $ref: '#/components/schemas/TransferTransactionRequest/properties/date/allOf/1' + required: + - status + Customers: + title: Customers x-internal: true - type: object - properties: - summaries: - type: array - items: - $ref: '#/components/schemas/DataIntegritySummary' - DataIntegritySummary: - title: Data integrity summary - type: object allOf: - - $ref: '#/components/schemas/DataIntegritySummary/definitions/dataIntegrityType' - type: object properties: - byAmount: - $ref: '#/components/schemas/DataIntegritySummary/definitions/dataIntegrityByAmount' - byCount: - $ref: '#/components/schemas/DataIntegritySummary/definitions/dataIntegrityByCount' - definitions: - dataIntegrityType: - type: object - properties: - type: - type: string - description: 'The data type which the data type in the URL has been matched against. For example, if you''ve matched accountTransactions and banking-transactions, and you call this endpoint with accountTransactions in the URL, this property would be banking-transactions.' - dataIntegrityByAmount: - title: Data integrity by amount - type: object - properties: - matchPercentage: - type: number - format: decimal - description: The percentage of the absolute value of transactions of the type specified in the route which have a match. - unmatched: - type: number - format: decimal - description: The sum of the absolute value of transactions of the type specified in the route which don't have a match. - matched: - type: number - format: decimal - description: The sum of the absolute value of transactions of the type specified in the route which have a match. - total: - type: number - format: decimal - description: The total of unmatched and matched. - currency: - $ref: '#/components/schemas/SourceAccount/properties/currency' - dataIntegrityByCount: - title: Data integrity by count - type: object - properties: - matchPercentage: - type: number - format: decimal - description: The percentage of records of the type specified in the route which have a match. - unmatched: - type: number - format: decimal - description: The number of records of the type specified in the route which don't have a match. - matched: - type: number - format: decimal - description: The number of records of the type specified in the route which do have a match. - total: - type: number - format: decimal - description: The total of unmatched and matched. + results: + type: array + items: + $ref: '#/components/schemas/Customer' + - $ref: '#/components/schemas/PagingInfo' DataStatus: title: Data status description: Describes the state of data in the Codat cache for a company and data type @@ -84548,772 +11359,34 @@ components: - commerce-transactions example: invoices lastSuccessfulSync: - $ref: '#/components/schemas/DateTime' + $ref: '#/components/schemas/TransferTransactionRequest/properties/date/allOf/1' currentStatus: $ref: '#/components/schemas/PullOperation/properties/status' latestSyncId: type: string description: Unique identifier for most recent sync of data type. - format: uuid - example: ad474a37-2003-478e-baee-9af9f1ec2fe3 - latestSuccessfulSyncId: - type: string - description: Unique identifier for the most recent successful sync of data type. - format: uuid - example: 8220fc90-55b6-47bc-9417-48ac6ea93101 - examples: - - dataType: string - lastSuccessfulSync: '2022-01-01T13:00:00.000Z' - currentStatus: string - latestSyncId: ad474a37-2003-478e-baee-9af9f1ec2fe3 - latestSuccessfulSyncId: 8220fc90-55b6-47bc-9417-48ac6ea93101 - DataStatuses: - title: Data statuses - x-internal: true - type: object - properties: - accountTransactions: - $ref: '#/components/schemas/DataStatus' - nullable: true - balanceSheet: - $ref: '#/components/schemas/DataStatus' - nullable: true - bankAccounts: - $ref: '#/components/schemas/DataStatus' - nullable: true - bankTransactions: - $ref: '#/components/schemas/DataStatus' - nullable: true - billCreditNotes: - $ref: '#/components/schemas/DataStatus' - nullable: true - billPayments: - $ref: '#/components/schemas/DataStatus' - nullable: true - bills: - $ref: '#/components/schemas/DataStatus' - nullable: true - cashFlowStatement: - $ref: '#/components/schemas/DataStatus' - nullable: true - chartOfAccounts: - $ref: '#/components/schemas/DataStatus' - nullable: true - company: - $ref: '#/components/schemas/DataStatus' - nullable: true - creditNotes: - $ref: '#/components/schemas/DataStatus' - nullable: true - customers: - $ref: '#/components/schemas/DataStatus' - nullable: true - directCosts: - $ref: '#/components/schemas/DataStatus' - nullable: true - directIncomes: - $ref: '#/components/schemas/DataStatus' - nullable: true - invoices: - $ref: '#/components/schemas/DataStatus' - nullable: true - itemReceipts: - $ref: '#/components/schemas/DataStatus' - nullable: true - items: - $ref: '#/components/schemas/DataStatus' - nullable: true - journalEntries: - $ref: '#/components/schemas/DataStatus' - nullable: true - journals: - $ref: '#/components/schemas/DataStatus' - nullable: true - paymentMethods: - $ref: '#/components/schemas/DataStatus' - nullable: true - payments: - $ref: '#/components/schemas/DataStatus' - nullable: true - profitAndLoss: - $ref: '#/components/schemas/DataStatus' - nullable: true - purchaseOrders: - $ref: '#/components/schemas/DataStatus' - nullable: true - salesOrders: - $ref: '#/components/schemas/DataStatus' - nullable: true - suppliers: - $ref: '#/components/schemas/DataStatus' - nullable: true - taxRates: - $ref: '#/components/schemas/DataStatus' - nullable: true - trackingCategories: - $ref: '#/components/schemas/DataStatus' - nullable: true - transfers: - $ref: '#/components/schemas/DataStatus' - nullable: true - banking-accountBalances: - $ref: '#/components/schemas/DataStatus' - nullable: true - banking-accounts: - $ref: '#/components/schemas/DataStatus' - nullable: true - banking-transactionCategories: - $ref: '#/components/schemas/DataStatus' - nullable: true - banking-transactions: - $ref: '#/components/schemas/DataStatus' - nullable: true - commerce-companyInfo: - $ref: '#/components/schemas/DataStatus' - nullable: true - commerce-customers: - $ref: '#/components/schemas/DataStatus' - nullable: true - commerce-disputes: - $ref: '#/components/schemas/DataStatus' - nullable: true - commerce-locations: - $ref: '#/components/schemas/DataStatus' - nullable: true - commerce-orders: - $ref: '#/components/schemas/DataStatus' - nullable: true - commerce-paymentMethods: - $ref: '#/components/schemas/DataStatus' - nullable: true - commerce-payments: - $ref: '#/components/schemas/DataStatus' - nullable: true - commerce-productCategories: - $ref: '#/components/schemas/DataStatus' - nullable: true - commerce-products: - $ref: '#/components/schemas/DataStatus' - nullable: true - commerce-taxComponents: - $ref: '#/components/schemas/DataStatus' - nullable: true - commerce-transactions: - $ref: '#/components/schemas/DataStatus' - nullable: true - DataType: - x-internal: true - $ref: '#/components/schemas/DataStatus/properties/dataType' - DataTypeWriteWebhook: - title: Write data type webhook - type: object - properties: - id: - type: string - format: uuid - example: ba29118f-5406-4e59-b05c-ba307ca38d01 - description: Unique identifier of the event. - eventType: - type: string - description: The type of event. - examples: - - bills.write.successful - - bills.write.unsuccessful - generatedDate: - $ref: '#/components/schemas/DateTime' - description: The date time in UTC the event was generated in Codat. - payload: - $ref: '#/components/schemas/DataTypeWriteWebhook/definitions/dataTypeWriteWebhookPayload' - definitions: - dataTypeWriteWebhookPayload: - title: Payload - type: object - properties: - id: - type: string - description: Unique identifier of the write request. This is also known as the push operation ID. - type: - $ref: '#/components/schemas/DataTypeWriteWebhook/definitions/writeType' - referenceCompany: - $ref: '#/components/schemas/Company/definitions/companyReference' - connectionId: - $ref: '#/components/parameters/connectionId/schema' - requestedOnDate: - $ref: '#/components/schemas/DateTime' - description: The date time in UTC the write request was submitted. - completedOnDate: - $ref: '#/components/schemas/DateTime' - description: The date time in UTC the write request completed. - status: - $ref: '#/components/schemas/DataTypeWriteWebhook/definitions/writeStatus' - record: - $ref: '#/components/schemas/DataTypeWriteWebhook/definitions/dataTypeWriteWebhookRecord' - nullable: true - attachmentId: - type: string - nullable: true - description: 'Unique identifier for the uploaded attachment, null if no attachment uploaded.' - dataTypeWriteWebhookRecord: - type: object - properties: - id: - type: string - description: 'The unique identifier of the data type created, updated, deleted, or had an attachment uploaded in the accounting platform.' - writeType: - title: Write type - description: Type of write request. - type: string - enum: - - Create - - Update - - Delete - - UploadAttachment - writeStatus: - title: Write request status - type: string - enum: - - Pending - - Failed - - Success - - TimedOut - description: 'The current status of the write request, which is the same as the push operation status.' - DataStatusResponse: - x-internal: true - title: Data status response - type: object - additionalProperties: - $ref: '#/components/schemas/DataStatus' - DataType: - x-internal: true - $ref: '#/components/schemas/DataStatus/properties/dataType' - DateTime: - title: Date time - type: string - examples: - - 2022-10-23T00:00:00.000Z - - 2022-10-23T00:00:00.000Z - description: "In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:\n\n```\n2020-10-08T22:40:50Z\n2021-01-01T00:00:00\n```\n\n\n\nWhen syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:\n\n- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`\n- Unqualified local time: `2021-11-15T01:00:00`\n- UTC time offsets: `2021-11-15T01:00:00-05:00`\n\n> Time zones\n> \n> Not all dates from Codat will contain information about time zones. \n> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced." - - '2022-10-23T00:00:00Z' - - '2022-10-23' - description: "In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:\n\n```\n2020-10-08T22:40:50Z\n2021-01-01T00:00:00\n```\n\n\n\nWhen syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:\n\n- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`\n- Unqualified local time: `2021-11-15T01:00:00`\n- UTC time offsets: `2021-11-15T01:00:00-05:00`\n\n> Time zones\n> \n> Not all dates from Codat will contain information about time zones. \n> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced." - EndUploadSessionRequest: - title: End upload session request - type: object - properties: - status: - type: string - enum: - - Cancel - - Process - description: An indicator to cancel the dataset processing or trigger ingestion and enrichment of data. - EnhancedCashFlowTransactions: - title: Enhanced cash flow transactions - description: |- - > **Categorization engine** - > - > The categorization engine uses machine learning and has been fully trained against Plaid and TrueLayer banking data sources. It is not fully trained against the Basiq banking data source. - - The Enhanced Cash Flow Transactions endpoint provides a fully categorized list of banking transactions for a company. Accounts and transaction data are obtained from the company's banking data sources. - type: object - properties: - reportInfo: - $ref: '#/components/schemas/EnhancedInvoicesReport/definitions/reportInfo' - dataSources: - type: array - items: - $ref: '#/components/schemas/EnhancedCashFlowTransactions/definitions/dataSource' - reportItems: - type: array - items: - $ref: '#/components/schemas/EnhancedCashFlowTransactions/definitions/enhancedCashFlowItem' - definitions: - dataSource: - type: object - properties: - accounts: - description: 'An array containing bank account data for each connected banking data source that have the following data types enabled: `banking-accounts`, `banking-transactions`.' - type: array - items: - $ref: '#/components/schemas/EnhancedCashFlowTransactions/definitions/accounts' - accounts: - title: Accounts - type: object - properties: - sourceRef: - title: Report source reference - description: A source reference containing the `sourceType` object "Banking". - type: object - properties: - sourceType: - description: The data source type. - type: string - examples: - - Example: - value: - sourceRef: - sourceType: Banking - platformName: - description: 'Name of the banking data source, e.g. "Plaid".' - type: string - accountProvider: - description: The bank or other financial institution providing the account. - type: string - accountName: - description: The name of the account according to the provider. - type: string - accountType: - description: 'The type of banking account, e.g. credit or debit.' - type: string - currency: - $ref: '#/components/schemas/SourceAccount/properties/currency' - description: The currency code for the bank account. - currentBalance: - description: The balance of the bank account. - type: number - format: decimal - enhancedCashFlowItem: - type: object - properties: - transactions: - description: An array of transaction data. - type: array - items: - title: Cash flow transaction - type: object - properties: - id: - description: The unique identifier of the bank transaction. - type: string - date: - description: The date the bank transaction was posted. - $ref: '#/components/schemas/DateTime' - description: - description: The description of the bank transaction. - type: string - amount: - description: The bank transaction amount. - type: number - format: decimal - currency: - $ref: '#/components/schemas/SourceAccount/properties/currency' - description: The currency code for bank transaction. - transactionCategory: - description: Contains an array of category levels. - $ref: '#/components/schemas/EnhancedCashFlowTransactions/definitions/enhancedCashFlowItem/properties/transactions/items/definitions/transactionCategory' - platformName: - description: Returns the payment processor responsible for the transaction. - type: string - counterpartyNames: - description: An array of counterparty names involved in the transaction. - type: array - items: - type: string - sourceRef: - $ref: '#/components/schemas/EnhancedCashFlowTransactions/definitions/accounts/properties/sourceRef' - accountRef: - $ref: '#/components/schemas/EnhancedCashFlowTransactions/definitions/enhancedCashFlowItem/properties/transactions/items/definitions/accountRef' - modifiedDate: - description: The date the bank transaction was last modified. - $ref: '#/components/schemas/DateTime' - definitions: - accountRef: - title: Account reference - description: An account reference containing the account id and name. - type: object - properties: - id: - description: The id of the account. - type: string - name: - description: The name of the account. - type: string - examples: - - Example: - value: - accountRef: - id: 4f78a6b0-e9bb-40f2-82fd-f3a2daa1fd0a - name: Business Current Account - transactionCategory: - title: Transaction category - type: object - properties: - confidence: - description: Returns the aggregate confidence of the suggested category for the transaction. The value is between 0 and 100. - type: number - format: decimal - confidences: - description: An ordered array of category level confidences where each element is the confidence of the corresponding item in the `levels` array. - type: array - items: - type: number - format: decimal - levels: - description: The suggested category is an ordered array of category levels where each element (or level) is a subcategory of the previous element (or level). - type: array - items: - type: string - examples: - - Example: - value: - transactionCategory: - confidence: 92.7 - levels: - - Asset - - Current - - Bank - - BankTransfers - - ShareholderTransfers - confidences: - - 92.7 - - 95 - - 96 - - 97.5 - - 100 - examples: - - reportInfo: - pageNumber: 1 - pageSize: 100 - totalResults: 2401 - reportName: Cash Flow transactions report - companyName: Example Company - generatedDate: '2023-01-25T22:36:05.125Z' - dataSources: - - accounts: - - sourceRef: - sourceType: Banking - id: 4f78a6b0-e9bb-40f2-82fd-f3a2daa1fd0a - platformName: Plaid - accountProvider: Bank of Sandbox - accountName: Business Current Account - accountType: Debit - currency: USD - currentBalance: 1000 - identifiers: - - type: Debit - subType: Current - number: 12345678 - bankCode: 123456 - iban: US123456789 - bic: US123456789 - maskedAccountNumber: 1234 - - sourceRef: - sourceType: Banking - id: 12345678-1234-1234-1234-123456789012 - platformName: Plaid - accountProvider: Bank of Sandbox - accountName: Business Saving Account - accountType: Debit - currency: USD - currentBalance: 5321 - identifiers: - - type: Debit - subType: Saving - number: 87654321 - bankCode: 654321 - iban: US987654321 - bic: US987654321 - maskedAccountNumber: 4321 - reportItems: - - transactions: - - sourceRef: - sourceType: Banking - - accountRef: - id: 4f78a6b0-e9bb-40f2-82fd-f3a2daa1fd0a - name: Business Current Account - id: 3fa85f64-5717-4562-b3fc-2c963f66afa6 - date: '2023-01-25' - description: Payment to supplier - amount: 100 - currency: USD - transactionCategory: - confidence: 92.7 - levels: - - Asset - - Current - - Bank - confidences: - - 92.7 - - 95 - - 96 - platformName: Plaid - counterpartyNames: - - Counterparty - modifiedDate: '2023-01-25T22:36:05.125Z' - - sourceRef: - sourceType: Banking - - accountRef: - id: 12345678-1234-1234-1234-123456789012 - name: Business Saving Account - id: 3fa85f64-5717-4562-b3fc-2c963f66afa6 - date: '2023-01-25' - description: Payment to supplier - amount: 100 - currency: USD - transactionCategory: null - confidence: 92.7 - levels: - - Expense - - Operating - confidences: - - 92.7 - - 95 - platformName: Plaid - counterpartyNames: [] - modifiedDate: '2023-01-25T22:36:05.125Z' - EnhancedFinancialReport: - title: Enhanced report - type: object - properties: - reportInfo: - $ref: '#/components/schemas/EnhancedFinancialReport/definitions/enhancedReportInfo' - reportItems: - type: array - description: An array of report items. - items: - title: Report item - type: object - properties: - date: - $ref: '#/components/schemas/DateTime' - description: Last date of the period. - balance: - type: number - format: decimal - description: Balance of the account as reported on the profit and loss or Balance sheet. - accountName: - type: string - description: Name of the account. - accountId: - type: string - description: The unique account ID. - accountCategory: - $ref: '#/components/schemas/EnhancedFinancialReport/definitions/enhancedReportAccountCategory' - definitions: - enhancedReportAccountCategory: - title: Account category - descrciption: 'An object containing the suggested or confirmed account categories, up to five levels.' - type: object - properties: - status: - type: string - description: 'Returns a status of "Suggested" or "Confirmed". If an account has a confirmed category, it will replace any suggested category returned.' - levels: - type: array - items: - $ref: '#/components/schemas/EnhancedFinancialReport/definitions/accountCategoryLevel' - accountCategoryLevel: - title: Account category level - description: An object containing an ordered list of account category levels. - type: object - properties: - levelName: - type: string - description: Account category name. - confidence: - type: number - format: decimal - description: Confidence level of the category. This will only be populated where `status` is `Suggested`. - enhancedReportInfo: - type: object - properties: - currency: - $ref: '#/components/schemas/SourceAccount/properties/currency' - description: Currency of the P&L/Balance sheet. - reportName: - type: string - description: The name of the report. - companyName: - type: string - description: Name of the company queried. - generatedDate: - $ref: '#/components/schemas/DateTime' - description: Returns the YYYY-MM-DD datetime of report generation. - examples: - - reportInfo: - reportName: EnhancedProfitAndLossAccounts - companyName: ABC LTD - generatedDate: '2022-01-01' - reportItems: - - date: '2022-01-01' - balance: 70 - accountName: Sales UK - accountId: 13931cbf-ea06-4d6e-9538-a8457fa66011 - accountCategory: - status: Suggested - levels: - - levelName: Income - confidence: 0.95 - - levelName: Revenue - confidence: 0.9 - - date: '2022-01-01' - balance: 30 - accountName: Sales US - accountId: 13931cbf-ea06-4d6e-9538-a8457fa66011 - accountCategory: - lastUpdated: '2022-01-02' - status: Suggested - levels: - - levelName: Income - confidence: 0.95 - - levelName: Revenue - confidence: 0.9 - - date: '2022-01-01' - balance: 70 - accountName: Amazon - accountId: 13931cbf-ea06-4d6e-9538-a8457fa66011 - accountCategory: - lastUpdated: '2022-01-02' - status: Suggested - levels: - - levelName: Income - confidence: 0.95 - - levelName: Revenue - confidence: 0.95 - - levelName: Online - confidence: 0.8 - EnhancedInvoicesReport: - title: Enhanced invoices report - description: The enhanced invoices report takes the key elements of the Invoices report verifying those marked as paid in the accounting software have actually been paid by matching with the bank statement. - type: object - properties: - reportInfo: - $ref: '#/components/schemas/EnhancedInvoicesReport/definitions/reportInfo' - reportItems: - type: array - items: - $ref: '#/components/schemas/EnhancedInvoicesReport/definitions/enhancedInvoiceReportItem' - definitions: - lendingCustomerRef: - type: object - properties: - id: - minLength: 1 - type: string - description: '`id` from the Customers data type.' - customerName: - type: string - nullable: true - description: '`customerName` from the Customer data type.' - payment: - title: Enhanced invoice payment item - type: object - properties: - id: - type: string - description: 'ID of the invoice, which may be a GUID but it may be something else depending on the accounting software.' - date: - $ref: '#/components/schemas/DateTime' - paymentType: - type: string - description: The type of payment. - amount: - type: number - format: decimal - description: Payment amount. - currency: - $ref: '#/components/schemas/SourceAccount/properties/currency' - currencyRate: - $ref: '#/components/schemas/AccountingPaymentAllocation/definitions/paymentAllocationPayment/properties/currencyRate' - bankingTransactionRefs: - type: array - items: - $ref: '#/components/schemas/EnhancedInvoicesReport/definitions/bankingTransactionRef' - bankingTransactionRef: - title: Banking transaction reference - type: object - properties: - id: - type: string - description: Unique identifier for the bank transaction. - dataConnectionId: - type: string - description: Unique identifier of the bank transaction's connection. - accountId: - type: string - description: Unique identifier of the bank transaction's account. - accountName: - type: string - description: Name given to account. - date: - $ref: '#/components/schemas/DateTime' - description: - type: string - description: Description given to bank transaction. - amount: - type: number - description: Bank transaction amount. - format: decimal - invoiceStatus: - $ref: '#/components/schemas/AccountingInvoice/definitions/invoiceStatus' - enhancedInvoiceReportItem: - title: Enhanced invoice report item - type: object - allOf: - - type: object - properties: - id: - type: string - description: 'ID of the invoice, which may be a GUID but it may be something else depending on the accounting software.' - invoiceNumber: - type: string - description: Invoice number. - customerRef: - $ref: '#/components/schemas/EnhancedInvoicesReport/definitions/lendingCustomerRef' - issueDate: - $ref: '#/components/schemas/DateTime' - dueDate: - $ref: '#/components/schemas/DateTime' - status: - $ref: '#/components/schemas/AccountingInvoice/definitions/invoiceStatus' - currency: - $ref: '#/components/schemas/SourceAccount/properties/currency' - totalAmount: - type: number - format: decimal - description: Invoice's total amount. - amountDue: - type: number - format: decimal - description: Invoice's total amount due. - payments: - type: array - items: - $ref: '#/components/schemas/EnhancedInvoicesReport/definitions/payment' - paidOnDate: - $ref: '#/components/schemas/DateTime' - - $ref: '#/components/schemas/CommerceOrder/allOf/3' - reportInfo: - title: Report information - type: object - description: 'Report additional information, which is specific to Lending reports.' - properties: - pageNumber: - type: integer - description: The number of the page queried. - pageSize: - type: integer - description: The number of transactions returned per page. - totalResults: - type: integer - description: The total number of transactions available for a company for the period specified in the query string. - reportName: - type: string - description: Name of the report. - companyName: - type: string - description: The name of the company being queried. - generatedDate: - type: string - description: Date the report was generated. - examples: - - Example 1: - value: - pageNumber: 0 - pageSize: 0 - totalResults: 0 - reportName: string - companyName: string - generatedDate: '2023-01-26T07:36:40.487Z' + format: uuid + example: ad474a37-2003-478e-baee-9af9f1ec2fe3 + latestSuccessfulSyncId: + type: string + description: Unique identifier for the most recent successful sync of data type. + format: uuid + example: 8220fc90-55b6-47bc-9417-48ac6ea93101 + examples: + - dataType: string + lastSuccessfulSync: '2022-01-01T13:00:00.000Z' + currentStatus: string + latestSyncId: ad474a37-2003-478e-baee-9af9f1ec2fe3 + latestSuccessfulSyncId: 8220fc90-55b6-47bc-9417-48ac6ea93101 + DataStatusResponse: + x-internal: true + title: Data status response + type: object + additionalProperties: + $ref: '#/components/schemas/DataStatus' + DataType: + x-internal: true + $ref: '#/components/schemas/DataStatus/properties/dataType' ErrorMessage: title: Error message type: object @@ -85372,498 +11445,287 @@ components: type: string nullable: true description: Name of validator. - Integration: - title: Integration - description: An integration that Codat supports - examples: - - key: gbol - logoUrl: 'http://example.com' - name: Xero - enabled: true - sourceId: accounting - sourceType: 8193a927-ab7a-45a3-9dc2-d357a4932dfe - integrationId: 497a18ca-284e-40c0-985d-f72be35d468e - isOfflineConnector: true - isBeta: true - dataProvidedBy: string - datatypeFeatures: - - datatype: invoices - supportedFeatures: - - featureType: get - featureState: release - type: object - properties: - key: - $ref: '#/components/parameters/platformKey/schema' - logoUrl: - type: string - format: uri - description: Static url for integration's logo. - name: - type: string - example: Xero - description: Name of integration. - enabled: - type: boolean - description: Whether this integration is enabled for your customers to use. - sourceId: - $ref: '#/components/schemas/Branding/properties/sourceId' - sourceType: - $ref: '#/components/schemas/Integration/definitions/sourceType' - integrationId: - $ref: '#/components/schemas/Connection/properties/integrationId' - isOfflineConnector: - type: boolean - description: '`True` if the integration is to an application installed and run locally on an SMBs computer.' - isBeta: - type: boolean - description: '`True` if the integration is currently in beta release.' - dataProvidedBy: - type: string - description: The name of the data provider. - datatypeFeatures: - type: array - items: - $ref: '#/components/schemas/Integration/definitions/dataTypeFeature' - required: - - key - - logoUrl - - name - - enabled - definitions: - sourceType: - title: Source Type - description: The type of platform of the connection. - ExcelStatus: + ExpenseContactRef: type: object - title: Excel status + title: Supplier/customer reference + x-internal: true properties: - lastGenerated: - $ref: '#/components/schemas/DateTime' - description: The date and time of when the generation of the most recent report was initiated. - inProgress: - type: boolean - description: 'When true, the request was successful and the report is being generated. If false, the request was unsuccessful and the report is not being generated.' - queued: - type: string - description: The date and time of when a successful request was queued for the most recent report. - success: - type: boolean - description: True if the requested report was successfully queued and false if the requested report was not able to be queued. - errorMessage: - type: string - description: Error details in case the report generation request was unsuccessful. - lastInvocationId: + id: type: string - description: A unique ID generated for this request. - reportType: - $ref: '#/components/schemas/ExcelStatus/definitions/excelReportTypes' - fileSize: - type: integer - nullable: true - description: The file size in Bytes is populated upon successful generation of the report. - definitions: - excelReportTypes: + example: 40e3e57c-2322-4898-966c-ca41adfd23fd + description: Identifier of supplier or customer. + type: type: string + description: The type of contact. + example: Supplier + default: Supplier enum: - - audit - - enhancedFinancials - - enhancedInvoices - - enhancedCashFlow - description: The type of the report requested in the query string. - examples: - - lastGenerated: '2023-01-25T22:36:05.125Z' - inProgress: true - queued: '2023-01-25T22:36:05.125Z' - success: true - errorMessage: string - lastInvocationId: 3fa85f64-5717-4562-b3fc-2c963f66afa6 - reportType: string - fileSize: 0 - File: - title: File + - Supplier + required: + - id + ExpensesSyncWebhook: + title: Expenses sync webhook type: object properties: - fileName: - type: string - nullable: true - description: The file's name. - displayName: - type: string - nullable: true - description: An optional display name for the file. - sourceType: + id: type: string - nullable: true - description: The source of the file uploaded. - uploaded: - $ref: '#/components/schemas/DateTime' - additionalProperties: false - Files: - title: Files - type: array - items: - $ref: '#/components/schemas/File' - FileUpload: - title: Attachment upload - type: object - x-internal: true - required: - - file - properties: - file: - $ref: '#/components/schemas/FileUpload/definitions/codatFile' - definitions: - codatFile: + format: uuid + example: ba29118f-5406-4e59-b05c-ba307ca38d01 + description: Unique identifier of the event. + eventType: type: string - description: The file to be uploaded as an attachment. - format: binary - FinancialSummary: - title: Closed Books Indicator - type: object - properties: - booksClosedDate: - type: object - description: The date time in UTC the books closed. - properties: - date: - type: string - format: date-time - description: The date time in UTC the books closed. - example: '2025-05-31T00:00:00Z' - reason: - type: array - description: List of reasons explaining the books closed date. - items: - type: string - example: - - One or more accounts show a deviation from expected movements for March 2025 - - One of the marketing accounts haven't been booked for February 2025 - - One of the inventory accounts haven't been booked for March 2025 - accountingScore: - type: object - description: 'A score based on data completeness, accuracy, consistency, and presentation of data and the reasons for the score.' - properties: - score: - type: number - format: decimal - description: The accounting score value. - example: 90 - reason: - type: array - description: List of reasons explaining the accounting score. - items: - type: string - example: - - Balance sheet is unbalanced. - - Negative Tangible Assets on Balance Sheet - - Negative Accounts Receivable on Balance Sheet - LoanSummary: - title: Loan summary - type: object - properties: - reportInfo: - $ref: '#/components/schemas/LoanSummary/definitions/loanSummaryReportInfo' - reportItems: - type: array - description: Returns a summary of all loan activity for that integration type - items: - $ref: '#/components/schemas/LoanSummary/definitions/loanSummaryReportItem' + description: The type of event. + examples: + - expenses.sync.successful + - expenses.sync.unsuccessful + generatedDate: + $ref: '#/components/schemas/TransferTransactionRequest/properties/date/allOf/1' + description: The date time in UTC the event was generated in Codat. + payload: + $ref: '#/components/schemas/ExpensesSyncWebhook/definitions/expensesSyncWebhookPayload' definitions: - loanSummaryReportInfo: - title: Loan Summary Report Info - type: object - properties: - reportName: - type: string - description: The name of the report. - companyName: - type: string - description: Name of the company queried. - generatedDate: - $ref: '#/components/schemas/DateTime' - description: Returns the YYYY-MM-DD datetime of report generation. urns the YYYY-MM-DD datetime of report generation. - loanRef: - title: Loan Reference + transaction: + title: Transaction type: object properties: id: type: string - description: The id of the object being referred to. - dataConnectionId: - type: string - description: The dataConnectionId the object being referred to is associated with. - x-stoplight: - id: vrnhmgrfndjhh - type: - type: string - description: 'The object type data is referring to, e.g. Account.' - loanSummaryRecordRef: - title: Item reference - type: object - properties: - id: + description: Unique identifier of the transaction. + status: type: string - description: The id of the object being referred to. - dataConnectionId: + enum: + - Unknown + - PushError + - Completed + - Failed + - Pending + description: Status of transaction. + errorMessage: type: string - description: The dataConnectionId the object being referred to is associated with. - integrationType: - $ref: '#/components/schemas/LoanSummary/definitions/loanSummaryIntegrationType' - recordRefType: - $ref: '#/components/schemas/LoanSummary/definitions/loanSummaryRecordRefType' - loanSummaryReportItem: + nullable: true + description: Error message for failed transaction. + expensesSyncWebhookPayload: + title: Expenses sync webhook payload type: object properties: - recordRef: - $ref: '#/components/schemas/LoanSummary/definitions/loanSummaryRecordRef' - description: Contains object that contains a summary of all loan transactions for that integration type. - description: - type: string - description: The description of the object being referred to. E.g. the account. - startDate: - $ref: '#/components/schemas/DateTime' - description: The date of the earliest loan transaction. - totalDrawdowns: - type: number - format: decimal - description: The total loan drawdowns. - totalRepayments: - type: number - format: decimal - description: The total loan repayments which includes capital plus any interest. - balance: - type: number - format: decimal - description: The loan outstanding balance. This may not equal totalDrawdowns - totalRepayments due to interest which has been accrued. - lender: + referenceCompany: + $ref: '#/components/schemas/Company/definitions/companyReference' + syncId: type: string - description: The name of lender providing the loan. - loanSummaryIntegrationType: - title: Integration type - type: string - enum: - - Accounting - - Banking - - BankFeed - - Commerce - - Expense - - Other - - Unknown - example: Accounting - dataTypeFeature: - title: Data type feature - description: Describes support for a given datatype and associated operations - type: object - properties: - dataType: - $ref: '#/components/schemas/DataStatus/properties/dataType' - supportedFeatures: + description: Unique identifier of the sync. + transactions: type: array items: - $ref: '#/components/schemas/Integration/definitions/supportedFeature' - required: - - datatype - - supportedFeatures - examples: - - datatype: invoices - supportedFeatures: - - featureType: Get - featureState: Release - supportedFeature: + $ref: '#/components/schemas/ExpensesSyncWebhook/definitions/transaction' + ExpenseTransaction: + title: Expense transaction + type: object + properties: + id: + type: string + example: 4d7c6929-7770-412b-91bb-44d3bc71d111 + format: uuid + description: Your unique identifier for the transaction. + type: + type: string + example: Payment + description: The type of transaction. + enum: + - Payment + - Refund + - Reward + - Chargeback + issueDate: + $ref: '#/components/schemas/TransferTransactionRequest/properties/date/allOf/1' + description: Date of the transaction was recorded. + currency: + type: string + example: GBP + description: Currency the transaction was recorded in. + currencyRate: + title: Currency rate + type: number + format: decimal + nullable: true + description: "Rate to convert the total amount of the payment into the base currency for the company at the time of the payment.\n\nCurrency rates in Codat are implemented as the multiple of foreign currency units to each base currency unit. \n\nIt is not possible to perform the currency conversion with two or more non-base currencies participating in the transaction. For example, if a company's base currency is USD, and it has a bill issued in EUR, then the bill payment must happen in USD or EUR.\n\nWhere the currency rate is provided by the underlying accounting software, it will be available from Codat with the same precision (up to a maximum of 9 decimal places). \n\nFor accounting software which do not provide an explicit currency rate, it is calculated as `baseCurrency / foreignCurrency` and will be returned to 9 decimal places.\n\n## Examples with base currency of GBP\n\n| Foreign Currency | Foreign Amount | Currency Rate | Base Currency Amount (GBP) |\n| :--------------- | :------------- | :------------ | :------------------------- |\n| **USD** | $20 | 0.781 | £15.62 |\n| **EUR** | €20 | 0.885 | £17.70 |\n| **RUB** | ₽20 | 0.011 | £0.22 |\n\n## Examples with base currency of USD\n\n| Foreign Currency | Foreign Amount | Currency Rate | Base Currency Amount (USD) |\n| :--------------- | :------------- | :------------ | :------------------------- |\n| **GBP** | £20 | 1.277 | $25.54 |\n| **EUR** | €20 | 1.134 | $22.68 |\n| **RUB** | ₽20 | 0.015 | $0.30 |\n\n\n### Integration-specific details\n\n| Integration | Scenario | System behavior |\n|-------------------|-------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| QuickBooks Online | Transaction currency differs from base currency | If currency rate value is left `null`, a rate of 1 will be used by QBO by default. To override this, specify a currencyRate in the request body. |" + contactRef: + description: Supplier or customer for the purchase to be associated to. + $ref: '#/components/schemas/ExpenseContactRef' + bankAccountRef: type: object - x-internal: true + title: Bank account reference properties: - featureType: - $ref: '#/components/schemas/Integration/definitions/featureType' - featureState: - $ref: '#/components/schemas/Integration/definitions/featureState' - required: - - featureType - - featureState - featureState: - title: Feature state + id: + type: string + example: 787dfb37-5707-4dc0-8a86-8d74e4cc78ea + description: Identifier of the bank account. + reference: type: string - example: Release - description: The current release state of the feature. - enum: - - Release - - Alpha - - Beta - - Deprecated - - NotSupported - - NotImplemented - featureType: + nullable: true + description: User-friendly reference for the expense transaction. + merchantName: type: string - x-internal: true - description: The type of feature. - enum: - - Get - - Post - - Categorization - - Delete - - Put - - GetAsPdf - - DownloadAttachment - - GetAttachment - - GetAttachments - - UploadAttachment - example: Get - Integrations: - title: Integrations - x-internal: true - allOf: - - type: object - properties: - results: - type: array - items: - $ref: '#/components/schemas/Integration' - - $ref: '#/components/schemas/PagingInfo' - - Commerce - description: The integration type begin referred to. - loanSummaryRecordRefType: - title: Record reference type + example: Amazon UK + description: Name of the merchant where the purchase took place + lines: + type: array + description: Array of transaction lines. + minItems: 1 + maxItems: 100 + items: + $ref: '#/components/schemas/ExpenseTransactionLine' + notes: type: string - enum: - - accounts - - banking-accounts - - commerce-transactions - description: The datatype being referred to. + description: 'Any private, company notes about the transaction.' + example: 'APPLE.COM/BILL - 09001077498 - Card Ending: 4590' + postAsDraft: + type: boolean + nullable: true + description: 'This optional property, when set to true, posts the transaction to a drafted state. Note that postAsDraft is only supported in Microsoft Dynamics 365 Business Central.' + required: + - id + - type + - issueDate + - currency examples: - - reportInfo: - reportName: LoanSummaryReport - companyName: The Coffee shop - generatedDate: '2022-10-23T00:00:00Z' - reportItems: - - recordRef: - id: string - dataConnectionId: DE34E8E3-089F-4DF4-89E9-F7C43618FCAAA - integrationType: Accounting - recordRefType: accounts - description: string - startDate: '2021-01-01' - totalInvestments: 100000 - totalRepayments: 83481.72 - balance: 42513.18 - lender: Barclays Bank - LoanTransactions: - title: Loan transactions + - id: a44135b0-6882-489a-83fe-a0c57a4afb19 + type: Payment + issueDate: '2024-05-21T00:00:00+00:00' + currency: GBP + currencyRate: 1 + contactRef: + id: '430' + type: Supplier + bankAccountRef: + id: '97' + merchantName: Amazon UK + notes: amazon purchase + lines: + - netAmount: 100 + taxAmount: 20 + taxRateRef: + id: 23_Bills + accountRef: + id: '35' + trackingRefs: + - id: DEPARTMENT_3 + - dataType: trackingCategories + invoiceTo: + id: '504' + type: customer + ExpenseTransactionLine: + x-internal: true + title: Expense transaction line type: object + x-examples: + ExpenseTransactionLine: + netAmount: 100 + taxAmount: 20 + taxRateRef: + id: 08d37c46-8d5d-441b-8bad-76286c43047e + accountRef: + id: 16989b16-96d4-401a-9054-f5c620c655a6 + trackingRefs: + - id: e9a1b63d-9ff0-40e7-8038-016354b987e6 + invoiceTo: + id: 80000002-1674552702 + type: customer properties: - reportInfo: - $ref: '#/components/schemas/LoanTransactions/definitions/loanTransactionsReportInfo' - reportItems: + netAmount: + type: number + format: decimal + example: 100 + description: 'Amount of the line, exclusive of tax.' + taxAmount: + type: number + format: decimal + example: 20 + description: Amount of tax for the line. + taxRateRef: + $ref: '#/components/schemas/RecordRef' + accountRef: + description: The `accountRef` contains the `id` of the account the transaction is against. The `accountRef` object is required for all integrations except QBD which currently supports either itemRef or accountRef. + $ref: '#/components/schemas/RecordRef' + itemRef: + $ref: '#/components/schemas/ItemRef' + trackingRefs: type: array - description: Contains object of reporting properties. The loan ref will reference a different object depending on the integration type. + minItems: 1 + maxItems: 10 + nullable: true items: - $ref: '#/components/schemas/LoanTransactions/definitions/reportItems' - definitions: - loanTransactionsReportInfo: - title: Loan Transactions Report Info - type: object - properties: - pageNumber: - type: integer - description: The page number. - pageSize: - type: integer - description: Queried page size. - totalResults: - type: integer - description: The total number of transactions returned. - reportName: - type: string - description: The name of the report. - companyName: - type: string - description: Name of the company queried. - generatedDate: - $ref: '#/components/schemas/DateTime' - description: Returns the YYYY-MM-DD datetime of report generation. - loanRef: - title: Loan Reference - type: object - properties: - id: - type: string - description: The id of the object being referred to. - dataConnectionId: - type: string - description: The dataConnectionId the object being referred to is associated with. - type: - type: string - description: 'The object type data is referring to, e.g. Account.' - itemRef: - title: Item reference - type: object - properties: - id: - type: string - description: 'The id of the object, e.g. the Journal entry.' - dataConnectionId: - type: string - description: The data connection id being referenced. - type: - type: string - description: The data type the loan transaction entry was extracted from. - reportItems: - type: object - properties: - loanRef: - $ref: '#/components/schemas/LoanTransactions/definitions/loanRef' - description: Contains object that contains all the Loan transactions for that integration type. - itemRef: - $ref: '#/components/schemas/LoanTransactions/definitions/itemRef' - description: Contains object of reporting properties. The loan ref will reference a different object depending on the integration type. - date: - $ref: '#/components/schemas/DateTime' - description: The date of that entry type occurred. - amount: - type: number - format: decimal - description: The loan transaction amount. - loanTransactionType: - description: The type of loan transaction. - type: string - enum: - - Investment - - Repayment - - Interest - - AccuredInterest - lender: - type: string - description: The name of lender providing the loan. - examples: - - reportInfo: - pageNumber: 1 - pageSize: 1000 - totalResults: 1 - reportName: AccountingLoanTransactions - companyName: Supermarket store - generatedDate: '2022-10-23T00:00:00Z' - reportItems: - - loanRef: - id: '332' - dataConnectionId: ecd2d6be-5194-40a1-838f-5577a4881aaa - type: chartOfAccount - itemRef: - id: '755488' - dataConnectionId: ecd2d6be-5194-40a1-838f-5577a4881aaa - type: journalEntry - date: '2020-08-02' - amount: -455 - transactionType: Repayment - lender: Barclays Bank - Metadata: - title: Metadata + $ref: '#/components/schemas/TrackingRef' + invoiceTo: + $ref: '#/components/schemas/InvoiceTo' + required: + - netAmount + IntegrationType: + title: Integration type + x-internal: true + type: string + description: Type of transaction that has been processed e.g. Expense or Bank Feed. + enum: + - expenses + - bankfeeds + default: expenses + example: expenses + nullable: true + InvoiceTo: + title: Billable customer reference + x-internal: true type: object + nullable: true + description: Unique identifier for the customer billed for the transaction. The `invoiceTo` object is currently supported only for QuickBooks Online and QuickBooks Desktop. + properties: + id: + type: string + example: 80000002-1674552702 + description: identifier of customer. + type: + type: string + example: customer + description: The type of contact. + enum: + - customer + ItemRef: x-internal: true + type: object + title: Item reference + nullable: true properties: - isDeleted: - type: boolean - description: Indicates whether the record has been deleted in the third-party system this record originated from. + id: + type: string + example: 80000002-1675158984 + description: 'Unique identifier for the item associated with the transaction. The `itemRef` object is currently supported only for QuickBooks Desktop. You can specify either `itemRef` or `accountRef`, but not both.' + MappingOptions: + title: Mapping options + type: object + additionalProperties: false + x-examples: {} + properties: + expenseProvider: + type: string + description: Name of the expense integration. + example: Partner Expense + nullable: true + accounts: + type: array + description: Array of available accounts for mapping. + nullable: true + items: + $ref: '#/components/schemas/AccountMappingInfo' + trackingCategories: + type: array + description: Array of available tracking categories for mapping. + nullable: true + items: + $ref: '#/components/schemas/TrackingCategoryMappingInfo' + taxRates: + type: array + description: Array of available tax rates for mapping. nullable: true + items: + $ref: '#/components/schemas/TaxRateMappingInfo' PagingInfo: type: object title: Pagination information @@ -85924,113 +11786,6 @@ components: href: '/companies/{id}/data/{dataType}' current: href: '/companies/{id}/data/{dataType}?page=1&pageSize=10' - Profile: - title: Profile - description: Describes your Codat client instance - examples: - - name: Bob's Burgers - logoUrl: 'https://client-images.codat.io/logo/042399f5-d104-4f38-9ce8-cac3524f4e88_5806cb1f-7342-4c0e-a0a8-99bfbc47b0ff.png' - iconUrl: 'https://client-images.codat.io/icon/042399f5-d104-4f38-9ce8-cac3524f4e88_3f5623af-d992-4c22-bc08-e58c520a8526.ico' - redirectUrl: 'https://bobs-burgers.{countrySuffix}/{companyId}' - whiteListUrls: - - 'https://bobs-burgers.com' - - 'https://bobs-burgers.co.uk' - confirmCompanyName: true - type: object - properties: - name: - type: string - example: Bob's Burgers - description: The name given to the instance. - logoUrl: - type: string - description: Static url to your organization's logo. - example: 'https://client-images.codat.io/logo/042399f5-d104-4f38-9ce8-cac3524f4e88_5806cb1f-7342-4c0e-a0a8-99bfbc47b0ff.png' - iconUrl: - type: string - description: Static url to your organization's icon. - example: 'https://client-images.codat.io/icon/042399f5-d104-4f38-9ce8-cac3524f4e88_3f5623af-d992-4c22-bc08-e58c520a8526.ico' - redirectUrl: - type: string - example: 'https://bobs-burgers.{countrySuffix}/{companyId}' - description: 'The redirect URL pasted on to the SMB once Codat''s [Hosted Link](https://docs.codat.io/auth-flow/authorize-hosted-link) has been completed by the SMB.' - whiteListUrls: - type: array - description: A list of urls that are allowed to communicate with Codat. If empty any url is allowed to communicate with Codat. - items: - type: string - format: uri - example: 'https://bobs-burgers.com' - description: A url that is allowed to communicate with Codat. - apiKey: - type: string - deprecated: true - example: sartANTjHAkLdbyDfaynoTQb7pkmj6hXHmnQKMrB - description: The API key for this Codat instance. - confirmCompanyName: - type: boolean - deprecated: true - description: '`True` if the company name has been confirmed.' - required: - - name - - redirectUrl - x-stoplight: - id: b1fyq05edangf - PaymentMethodRef: - type: object - title: Payment method reference - description: The payment method the record is linked to in the accounting or commerce software. - properties: - id: - description: The unique identifier of the location being referenced. - type: string - name: - description: Name of the location being referenced. - type: string - required: - - id - example: - id: EILBDVJVNUAGVKRQ - name: AliPay - PhoneNumber: - title: Phone - type: object - x-internal: true - properties: - number: - type: string - nullable: true - examples: - - +44 25691 154789 - - (877) 492-8687 - - 01224 658 999 - description: A phone number. - type: - description: The type of phone number - type: string - enum: - - Primary - - Landline - - Mobile - - Fax - - Unknown - required: - - type - ProjectRef: - title: 'Accounting: Project reference' - x-internal: true - required: - - id - type: object - properties: - id: - minLength: 1 - type: string - description: Unique identifier to the project reference. - name: - type: string - nullable: true - description: The project's name. PullOperation: title: Pull operation description: |- @@ -86094,9 +11849,9 @@ components: nullable: true description: A message about a transient or persistent error returned by Codat or the source platform. requested: - $ref: '#/components/schemas/DateTime' + $ref: '#/components/schemas/TransferTransactionRequest/properties/date/allOf/1' completed: - $ref: '#/components/schemas/DateTime' + $ref: '#/components/schemas/TransferTransactionRequest/properties/date/allOf/1' progress: type: integer description: An integer signifying the progress of the pull operation. @@ -86161,10 +11916,10 @@ components: dataConnectionKey: $ref: '#/components/parameters/connectionId/schema' requestedOnUtc: - $ref: '#/components/schemas/DateTime' + $ref: '#/components/schemas/TransferTransactionRequest/properties/date/allOf/1' description: The datetime when the push was requested. completedOnUtc: - $ref: '#/components/schemas/DateTime' + $ref: '#/components/schemas/TransferTransactionRequest/properties/date/allOf/1' description: 'The datetime when the push was completed, null if Pending.' timeoutInMinutes: type: integer @@ -86396,943 +12151,878 @@ components: title: Push Option Choice type: object properties: - value: - type: string - minLength: 1 - description: Allowed value for field. - type: - $ref: '#/components/schemas/PushOption/definitions/pushOptionType' - displayName: - $ref: '#/components/schemas/PushOption/definitions/pushOptionProperty/properties/displayName' - description: - $ref: '#/components/schemas/PushOption/definitions/pushOptionProperty/properties/description' - required: - $ref: '#/components/schemas/PushOption/definitions/pushOptionProperty/properties/required' - ReadCompletedWebhook: - title: Read completed webhook - ReportLine: + value: + type: string + minLength: 1 + description: Allowed value for field. + type: + $ref: '#/components/schemas/PushOption/definitions/pushOptionType' + displayName: + $ref: '#/components/schemas/PushOption/definitions/pushOptionProperty/properties/displayName' + description: + $ref: '#/components/schemas/PushOption/definitions/pushOptionProperty/properties/description' + required: + $ref: '#/components/schemas/PushOption/definitions/pushOptionProperty/properties/required' + RecordRef: + x-internal: true + type: object + title: Record reference + properties: + id: + type: string + example: 40e3e57c-2322-4898-966c-ca41adfd23fd + description: Identifier of linked reference from mapping options. + ReimbursableExpenseTransactionLine: + x-internal: true + title: Reimbursable expense transaction line + type: object + properties: + description: + type: string + example: 2-night hotel stay + description: line description + netAmount: + type: number + format: decimal + example: 100 + description: 'Amount of the line, exclusive of tax.' + taxAmount: + type: number + format: decimal + example: 20 + description: Amount of tax for the line. + taxRateRef: + $ref: '#/components/schemas/RecordRef' + accountRef: + description: The `accountRef` contains the `id` of the account the transaction is against. The `accountRef` object is required for all integrations except QBD which currently supports either itemRef or accountRef. + $ref: '#/components/schemas/RecordRef' + itemRef: + $ref: '#/components/schemas/ItemRef' + trackingRefs: + type: array + minItems: 1 + maxItems: 10 + nullable: true + items: + $ref: '#/components/schemas/TrackingRef' + invoiceTo: + $ref: '#/components/schemas/InvoiceTo' + required: + - netAmount + ReimbursableExpenseTransactionRequest: + title: Reimbursable expense transaction request + type: array + minItems: 1 + maxItems: 50 + items: + $ref: '#/components/schemas/ReimbursableExpenseTransactionRequest/definitions/reimbursableExpenseTransaction' + definitions: + reimbursableExpenseTransaction: + title: Reimbursable expense transaction + type: object + properties: + id: + type: string + example: 4d7c6929-7770-412b-91bb-44d3bc71d111 + format: uuid + description: Your unique identifier for the transaction. + reference: + type: string + nullable: true + description: User-friendly reference for the reimbursable expense. + contactRef: + $ref: '#/components/schemas/ReimbursementContactRef' + apAccountRef: + $ref: '#/components/schemas/apAccountRef' + issueDate: + $ref: '#/components/schemas/TransferTransactionRequest/properties/date/allOf/1' + description: Date of the transaction was recorded. + dueDate: + description: Date the supplier is due to be paid. + $ref: '#/components/schemas/TransferTransactionRequest/properties/date/allOf/1' + currency: + type: string + example: GBP + description: Currency the transaction was recorded in. + currencyRate: + $ref: '#/components/schemas/ExpenseTransaction/properties/currencyRate' + notes: + type: string + description: 'Any private, company notes about the transaction.' + example: 'APPLE.COM/BILL - 09001077498 - Card Ending: 4590' + lines: + type: array + description: Array of transaction lines. + minItems: 1 + maxItems: 100 + items: + $ref: '#/components/schemas/ReimbursableExpenseTransactionLine' + required: + - id + - contactRef + - issueDate + - dueDate + - currency + ReimbursementContactRef: + type: object + title: Contact reference + x-internal: true + properties: + id: + type: string + example: 40e3e57c-2322-4898-966c-ca41adfd23fd + description: Identifier of contact. + required: + - id + SupplementalData: + title: Supplemental data + type: object + x-internal: true + description: "Supplemental data is additional data you can include in our standard data types. \n\nIt is referenced as a configured dynamic key value pair that is unique to the accounting software. [Learn more](https://docs.codat.io/using-the-api/supplemental-data/overview) about supplemental data." + properties: + content: + type: object + additionalProperties: + type: object + additionalProperties: true + nullable: true + Supplier: + title: 'Accounting: Supplier' + description: |- + ## Overview + + From the **Suppliers** endpoints, you can retrieve a list of [all the suppliers for a company](https://docs.codat.io/sync-for-expenses-api#/operations/list-suppliers). Suppliers' data links to accounts payable [bills](https://docs.codat.io/sync-for-expenses-api#/schemas/Bill). + type: object + allOf: + - type: object + properties: + id: + type: string + description: 'Identifier for the supplier, unique to the company in the accounting software.' + supplierName: + type: string + nullable: true + description: 'Name of the supplier as recorded in the accounting system, typically the company name.' + contactName: + type: string + nullable: true + description: Name of the main contact for the supplier. + emailAddress: + type: string + nullable: true + description: Email address that the supplier may be contacted on. + phone: + type: string + nullable: true + description: Phone number that the supplier may be contacted on. + examples: + - +44 25691 154789 + - (877) 492-8687 + - 01224 658 999 + addresses: + type: array + nullable: true + description: An array of Addresses. + items: + $ref: '#/components/schemas/CompanyInformation/properties/addresses/items' + registrationNumber: + type: string + nullable: true + description: 'Company number of the supplier. In the UK, this is typically the company registration number issued by Companies House.' + taxNumber: + type: string + nullable: true + description: Supplier's company tax number. + status: + $ref: '#/components/schemas/Supplier/definitions/supplierStatus' + defaultCurrency: + type: string + nullable: true + description: Default currency the supplier's transactional data is recorded in. + metadata: + $ref: '#/components/schemas/Account/allOf/2/properties/metadata' + supplementalData: + $ref: '#/components/schemas/SupplementalData' + - $ref: '#/components/schemas/Account/allOf/3' + required: + - status + definitions: + supplierRef: + title: Supplier reference + description: Reference to the supplier the record relates to. + type: object + properties: + id: + minLength: 1 + type: string + description: The supplier's unique ID + supplierName: + type: string + nullable: true + description: The supplier's name + required: + - id + supplierStatus: + description: Status of the supplier. + type: string + enum: + - Unknown + - Active + - Archived + examples: + - id: C520FFD4-F6F6-4FC2-A6D2-5D7088B2B14F + supplierName: Kelly's Industrial Supplies + contactName: Kelly's Industrial Supplies + emailAddress: sales@kellysupplies.com + phone: 07999 999999 + addresses: + - type: Billing + line1: Unit 51 + line2: Bakersfield Industrial Estate + city: Bakersfield + region: California + country: USA + postalcode: '93308' + registrationNumber: string + taxNumber: string + status: Unknown + defaultCurrency: string + metadata: + isDeleted: true + supplementalData: + content: + property1: + property1: null + property2: null + property2: + property1: null + property2: null + modifiedDate: '2022-10-23T00:00:00Z' + sourceModifiedDate: '2022-10-23T00:00:00Z' + Suppliers: + title: Suppliers + x-internal: true + allOf: + - type: object + properties: + results: + type: array + items: + $ref: '#/components/schemas/Supplier' + - $ref: '#/components/schemas/PagingInfo' + SyncCompleteWebhook: + title: Sync complete webhook + x-internal: true + description: Webhook request body used to notify that a sync has completed. + type: object + properties: + ClientId: + $ref: '#/components/schemas/SyncFailedWebhook/properties/ClientId' + ClientName: + $ref: '#/components/schemas/SyncFailedWebhook/properties/ClientName' + CompanyId: + $ref: '#/components/parameters/companyId/schema' + RuleId: + $ref: '#/components/schemas/SyncFailedWebhook/properties/RuleId' + RuleType: + $ref: '#/components/schemas/SyncFailedWebhook/properties/RuleType' + AlertId: + $ref: '#/components/schemas/SyncFailedWebhook/properties/AlertId' + Message: + $ref: '#/components/schemas/SyncFailedWebhook/properties/Message' + Data: + $ref: '#/components/schemas/SyncCompleteWebhook/definitions/SyncCompleteWebhookData' + definitions: + SyncCompleteWebhookData: + type: object + title: Sync complete webhook data + properties: + syncId: + $ref: '#/components/schemas/SyncFailedWebhook/definitions/SyncFailedWebhookData/properties/syncId' + syncType: + $ref: '#/components/schemas/SyncFailedWebhook/definitions/SyncFailedWebhookData/properties/syncType' + examples: + - ClientId: 30e0f9d2-52c0-4c9f-a806-bcd98a3bcd7e + ClientName: Expense Sync + CompanyId: 1f9559e7-8368-48c9-bdf4-f158e16b8b85 + AlertId: 33a4f8e9-09ae-4334-9b00-7bbe83024672 + RuleId: 5c27631d-3b63-4b50-8228-ee502fd113eb + RuleType: Sync Completed + Message: Sync 321363b4-efa9-4fbc-b71c-0b58d62f3248 for company 1f9559e7-8368-48c9-bdf4-f158e16b8b85 of type Expense completed successfully. + Data: + syncId: 321363b4-efa9-4fbc-b71c-0b58d62f3248 + syncType: Expense + SyncFailedWebhook: + title: Sync failed webhook x-internal: true + description: Webhook request body used to notify that a sync has failed. type: object - title: 'Accounting: Report line' properties: - accountId: + ClientId: + title: Client ID type: string - nullable: true - description: 'Identifier for the account, unique for the company in the accounting software.' - name: + format: uuid + description: Unique identifier for your client in Codat. + ClientName: type: string - nullable: true - description: Name of the report line item. - value: - type: number - format: decimal - description: Numerical value of the line item. - items: - type: array - nullable: true - description: An array of ReportLine items. - items: - $ref: '#/components/schemas/ReportLine' - required: - - value - ReportOperation: - title: Report - type: object - properties: - id: + description: Name of your client in Codat. + CompanyId: + $ref: '#/components/parameters/companyId/schema' + RuleId: type: string format: uuid - example: 743ec94a-8aa4-44bb-8bd4-e1855ee0e74b - description: Unique identifier of the event. - eventType: + description: Unique identifier for the rule. + deprecated: true + RuleType: type: string - description: The type of event. - generatedDate: - $ref: '#/components/schemas/DateTime' - description: The date time in UTC the event was generated in Codat. - payload: - $ref: '#/components/schemas/ReadCompletedWebhook/definitions/readCompletedWebhookPayload' + x-stoplight: + id: 34d52a089f08a + description: The type of rule. + AlertId: + type: string + format: uuid + description: Unique identifier of the webhook event. + Message: + type: string + description: A human-readable message about the webhook. + Data: + $ref: '#/components/schemas/SyncFailedWebhook/definitions/SyncFailedWebhookData' definitions: - readCompletedWebhookPayload: - title: Read result webhook payload - type: object - properties: - referenceCompany: - $ref: '#/components/schemas/Company/definitions/companyReference' - modifiedFromDate: - $ref: '#/components/schemas/DateTime' - description: The date time in UTC when the data types were last fetched and input into Codat's cache. - nullable: true - dataTypes: - type: array - items: - $ref: '#/components/schemas/ReadCompletedWebhook/definitions/dataTypeReadSummary' - dataTypeReadSummary: - title: Summary of data type reads - type: object - properties: - connectionId: - $ref: '#/components/parameters/connectionId/schema' - dataType: - $ref: '#/components/schemas/DataStatus/properties/dataType' - recordsModified: - type: boolean - example: false - description: '`True` if records have been created, updated or deleted in Codat''s cache.' - status: - $ref: '#/components/schemas/PullOperation/properties/status' - customProductReadCompleteWebhook: - title: Read completed webhook - type: object - properties: - id: - $ref: '#/components/schemas/ReadCompletedWebhook/properties/id' - eventType: - $ref: '#/components/schemas/ReadCompletedWebhook/properties/eventType' - generatedDate: - $ref: '#/components/schemas/ReadCompletedWebhook/properties/generatedDate' - payload: - $ref: '#/components/schemas/ReadCompletedWebhook/definitions/customProductReadCompleteWebhookPayload' - customProductReadCompleteWebhookPayload: - title: Read result webhook payload - type: object - properties: - referenceCompany: - $ref: '#/components/schemas/Company/definitions/companyReference' - modifiedFromDate: - $ref: '#/components/schemas/ReadCompletedWebhook/definitions/readCompletedWebhookPayload/properties/modifiedFromDate' - dataTypes: - type: array - items: - type: object - title: Summary of data type reads - properties: - connectionId: - $ref: '#/components/parameters/connectionId/schema' - dataType: - $ref: '#/components/schemas/DataStatus/properties/dataType' - recordsModified: - $ref: '#/components/schemas/ReadCompletedWebhook/definitions/dataTypeReadSummary/properties/recordsModified' - status: - $ref: '#/components/schemas/PullOperation/properties/status' - issues: - type: array - nullable: true - description: A array of issues encountered during a data read. - items: - $ref: '#/components/schemas/ReadCompletedWebhook/definitions/issue' - issue: - title: Issue + SyncFailedWebhookData: type: object - description: Details of a problem encountered during a data read. + title: Sync failed webhook data properties: - type: + syncId: type: string - description: The type of issue. - example: warning.validation - message: + format: uuid + example: a9367074-b5c3-42c4-9be4-be129f43577e + description: Unique identifier for the failed sync. + syncType: type: string - description: A message describing the issue. - example: Something doesn't look right about these accounts from Xero. You can see more information in the logs. - links: - title: Links - type: object - properties: - logs: - type: string - description: 'A link to the validation logs, providing details on any errors or warnings encountered.' - example: 'https://api.codat.io/companies/0498e921-9b53-4396-a412-4f2f5983b0a2/sync/{datasetId}/validation' - portal: - type: string - description: A link to the company's past data read history in the Codat portal. - example: 'https://app.codat.io/companies/0498e921-9b53-4396-a412-4f2f5983b0a2/pull-history' - readMore: - type: string - description: A link to Codat's documentation with additional information on how to troubleshoot this issue. - example: 'https://docs.codat.io/using-the-api/get-data-troubleshooting#warning.validation' - SupplementalDataConfiguration: - description: '' - title: Supplemental data configuration - type: object - properties: - supplementalDataConfig: - type: object - additionalProperties: - type: object - title: Supplemental data source configuration - description: The client's defined name for the object. - properties: - dataSource: - type: string - description: 'The underlying endpoint of the source system which the configuration is targeting. ' - pullData: - type: object - description: The additional properties that are required when pulling records. - additionalProperties: - type: string - description: The client's defined name for the property with the value being the source system's property name which the mapping is targeting. - pushData: - type: object - description: The additional properties that are required to create and/or update records. - additionalProperties: - type: string - description: The client's defined name for the property with the value being the source system's property name which the mapping is targeting. - examples: - - supplementalDataConfig: - orders-supplemental-data: - dataSource: /orders - pullData: - orderNumber: order_num - pushData: - orderNumber: order_num - SyncSetting: - title: SyncSetting - description: 'Describes how often, and how much history, should be fetched for the given data type when a pull operation is queued.' + description: The type of sync being performed. + FailureStage: + type: string + description: The stage of the job the sync failed. examples: - - dataType: invoices - fetchOnFirstLink: true - syncSchedule: 24 - syncOrder: 0 - syncFromUtc: '2020-01-01T12:00:00.000Z' - syncFromWindow: 24 - monthsToSync: 24 - isLocked: true + - ClientId: 30e0f9d2-52c0-4c9f-a806-bcd98a3bcd7e + ClientName: Expense Sync + CompanyId: 1f9559e7-8368-48c9-bdf4-f158e16b8b85 + RuleId: 289c80dc-2aee-4b71-afff-9acd8d051080 + RuleType: Sync Failed + AlertId: 72c1103b-7f17-4a3a-8db5-67c2d360a516 + Message: Sync 3bead2a1-1b3d-4d90-8077-cddc5ca68b01 for company 1f9559e7-8368-48c9-bdf4-f158e16b8b85 of type Expense has failed at step Pushing. + Data: + syncId: 3bead2a1-1b3d-4d90-8077-cddc5ca68b01 + syncType: Expense + FailureStage: Pushing + SyncInitiated: + title: Sync initiated type: object properties: - dataType: - $ref: '#/components/schemas/DataStatus/properties/dataType' - fetchOnFirstLink: - type: boolean - description: Whether this data type should be queued after a company has authorized a connection. - syncSchedule: - type: integer - example: 24 - description: Number of hours after which this data type should be refreshed. - syncOrder: - type: integer - description: The sync in which data types are queued for a sync. - syncFromUtc: - $ref: '#/components/schemas/DateTime' - description: Date from which data should be fetched. Set this *or* `syncFromWindow`. - syncFromWindow: - type: integer - example: 24 - description: Number of months of data to be fetched. Set this *or* `syncFromUTC`. - monthsToSync: - type: integer - example: 24 - description: 'Months of data to fetch, for report data types (`balanceSheet` & `profitAndLoss`) only.' - isLocked: - type: boolean - description: '`True` if the [sync setting](https://docs.codat.io/knowledge-base/advanced-sync-settings) is locked.' - required: - - dataType - - fetchOnFirstLink - - syncSchedule - - syncOrder - SyncSettings: - title: Sync settings + syncId: + type: string + format: uuid + description: Unique identifier for the sync initiated. + additionalProperties: false + TaxRateMappingInfo: + title: Tax rate mapping info x-internal: true type: object + additionalProperties: false + x-examples: + UK Tax Rate: + id: 23_Bills + name: 20% Bill tax Bills + code: 20% Bill tax + effectiveTaxRate: 20 + totalTaxRate: 20 + validTransactionTypes: + - Payment + - Reward properties: - clientId: - $ref: '#/components/schemas/ClientId' - settings: - type: array - items: - $ref: '#/components/schemas/SyncSetting' - overridesDefaults: - type: boolean - description: 'Set to `True` if you want to override the default [sync settings](https://docs.codat.io/knowledge-base/advanced-sync-settings).' - UpdateConnectionStatus: - title: Update connection + id: + type: string + description: Unique identifier of tax rate. + example: 23_Bills + nullable: false + name: + type: string + description: Name of the tax rate in the accounting software. + example: 20% Bill tax Bills + nullable: false + code: + type: string + description: Code for the tax rate from the accounting software. + example: 20% Bill tax + nullable: true + effectiveTaxRate: + type: number + format: decimal + description: Effective tax rate. + example: 20 + totalTaxRate: + type: number + format: decimal + description: Total (not compounded) sum of the components of a tax rate. + example: 20 + validTransactionTypes: + $ref: '#/components/schemas/validTransactionTypes' + description: Supported transaction types for the tax rate. + TrackingCategoryMappingInfo: + title: Tracking category mapping info x-internal: true type: object - properties: - status: - $ref: '#/components/schemas/Connection/definitions/dataConnectionStatus' - description: The current authorization status of the data connection. - nullable: true additionalProperties: false - WebhookConsumer: - title: Webhook consumer - type: object - description: "\uFEFF\x41\x20\x77\x65\x62\x68\x6F\x6F\x6B\x20\x63\x6F\x6E\x73\x75\x6D\x65\x72\x20\x69\x73\x20\x61\x6E\x20\x48\x54\x54\x50\x20\x65\x6E\x64\x70\x6F\x69\x6E\x74\x20\x74\x68\x61\x74\x20\x64\x65\x76\x65\x6C\x6F\x70\x65\x72\x73\x20\x63\x61\x6E\x20\x63\x6F\x6E\x66\x69\x67\x75\x72\x65\x20\x74\x6F\x20\x73\x75\x62\x73\x63\x72\x69\x62\x65\x20\x74\x6F\x20\x43\x6F\x64\x61\x74\x27\x73\x20\x73\x75\x70\x70\x6F\x72\x74\x65\x64\x20\x65\x76\x65\x6E\x74\x20\x74\x79\x70\x65\x73\x2E\n\n\x53\x65\x65\x20\x6F\x75\x72\x20\x64\x6F\x63\x75\x6D\x65\x6E\x74\x61\x74\x69\x6F\x6E\x20\x66\x6F\x72\x20\x6D\x6F\x72\x65\x20\x64\x65\x74\x61\x69\x6C\x73\x20\x6F\x6E\x20\x5B\x43\x6F\x64\x61\x74\x27\x73\x20\x77\x65\x62\x68\x6F\x6F\x6B\x20\x73\x65\x72\x76\x69\x63\x65\x5D\x28\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x6F\x63\x73\x2E\x63\x6F\x64\x61\x74\x2E\x69\x6F\x2F\x75\x73\x69\x6E\x67\x2D\x74\x68\x65\x2D\x61\x70\x69\x2F\x77\x65\x62\x68\x6F\x6F\x6B\x73\x2F\x6F\x76\x65\x72\x76\x69\x65\x77\x29\x2E\n" + x-examples: + Tracking Category with parentId: + id: DEPARTMENT_1 + name: TestLocation + hasChildren: false + parentId: DEPARTMENTS + Parent Tracking Category: + id: DEPARTMENTS + name: Departments + hasChildren: true properties: id: type: string - format: uuid - example: 8a210b68-6988-11ed-a1eb-0242ac120002 - description: Unique identifier for the webhook consumer. - url: + description: Unique identifier of the tracking category. + example: DEPARTMENT_2 + nullable: false + name: type: string - format: uri - description: The URL that will consume webhook events dispatched by Codat. - disabled: + description: Name of the tracking category as it appears in the accounting software. + example: New York + nullable: false + hasChildren: type: boolean - description: Flag that enables or disables the endpoint from receiving events. Disabled when set to `true`. - nullable: true - default: false - eventTypes: - type: array - description: An array of event types the webhook consumer subscribes to. - items: - type: string - companyTags: - type: array + description: Boolean of whether the tracking category has child categories. + parentId: + type: string + description: ID of the parent tracking category + example: DEPARTMENTS nullable: true - description: 'Company tags provide an additional way to filter messages, independent of event types. Company tags are case-sensitive, and only messages from companies with matching tags will be sent to this endpoint. Use the format `tagKey:tagValue`.' - items: - type: string - maxLength: 128 - maxItems: 10 - definitions: - webhookConsumerPrototype: - title: Create webhook consumer - type: object - properties: - url: - $ref: '#/components/schemas/WebhookConsumer/properties/url' - disabled: - $ref: '#/components/schemas/WebhookConsumer/properties/disabled' - eventTypes: - $ref: '#/components/schemas/WebhookConsumer/properties/eventTypes' - companyTags: - $ref: '#/components/schemas/WebhookConsumer/properties/companyTags' - webhookConsumers: - title: Webhook consumers - type: object - properties: - results: - type: array - maxItems: 50 - items: - $ref: '#/components/schemas/WebhookConsumer' - WebhookZapierKey: - title: Zapier integration key + TrackingRef: type: object + title: Tracking reference + x-internal: true properties: - key: - type: string - description: Integration key used to authorize Zapier's HTTP requests with Codat. - example: sk_integ_WM4dfoK1nKZnDE_kceze6hWDjbRwOZwG.us - examples: - - key: sk_integ_WM4dfoK1nKZnDE_kceze6hWDjbRwOZwG.us - responses: - Bad-Request: - description: Unique identifier of the report - example: 52c0f26b-051a-43ff-b02a-258eec67f5ef - status: + id: type: string - enum: - - InProgress - - Complete - - Error - description: The status of the report generation. - type: + example: e9a1b63d-9ff0-40e7-8038-016354b987e6 + description: Unique identifier of the linked reference from mapping options or the unique identifier of the linked customer. + dataType: type: string + example: trackingCategories + default: trackingCategories + description: The type of the linked reference enum: - - categorizedBankStatement - - creditModel - - spendAnalysis - description: The name of the generated report. - requestedDate: - description: The date and time on which the report was requested. - $ref: '#/components/schemas/DateTime' - updatedDate: - description: The date and time on which the report was last updated. - $ref: '#/components/schemas/DateTime' - errorMessage: - type: string - nullable: true - description: A short message describing any errors that occurred while generating the report. - description: Information about report generation. - definitions: - reports: - title: Reports - allOf: - - type: object - properties: - results: - type: array - items: - $ref: '#/components/schemas/ReportOperation' - minLength: 0 - maxLength: 2000 - - $ref: '#/components/schemas/PagingInfo' - SourceAccount: - title: Source account (v1) + - trackingCategories + - customers + TrackingRefAdjustmentTransaction: type: object - description: The target bank account in a supported accounting software for ingestion into a bank feed. - additionalProperties: false + title: Tracking reference + x-internal: true properties: id: type: string - description: Unique ID for the bank account. - accountName: - type: string - nullable: true - description: The bank account name. - accountType: - type: string - nullable: true - description: The type of bank account e.g. Credit. - accountNumber: + example: e9a1b63d-9ff0-40e7-8038-016354b987e6 + description: Unique identifier of the linked reference from mapping options or the unique identifier of the linked customer or supplier. + dataType: type: string - nullable: true - description: The account number. - sortCode: + example: trackingCategories + default: trackingCategories + description: The type of the linked reference + enum: + - trackingCategories + - customers + - suppliers + Transaction: + title: Transaction + type: object + additionalProperties: false + properties: + transactionId: type: string + description: Your unique idenfier of the transaction. + example: aa02271d-ed5f-47f5-be76-778d5905225a nullable: true - description: The sort code. - currency: - title: Currency - x-internal: true + status: + $ref: '#/components/schemas/TransactionStatus' + message: type: string - description: "The currency data type in Codat is the [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code, e.g. _GBP_.\n\n## Unknown currencies\n\nIn line with the ISO 4217 specification, the code _XXX_ is used when the data source does not return a currency for a transaction. \n\nThere are only a very small number of edge cases where this currency code is returned by the Codat system." - format: ISO4217 - examples: - - GBP - - USD - - EUR - balance: - type: number - format: decimal + description: Metadata such as validation errors or the resulting record created in the accounting software. nullable: true - description: The latest balance for the bank account. - modifiedDate: - $ref: '#/components/schemas/DateTime' - nullable: true - description: The last date the bank account was modified. - status: + integrationType: + $ref: '#/components/schemas/IntegrationType' + x-examples: + Successful Transaction: + transactionId: 8fdba4ed-e327-4925-be1a-b7a2b04627f7 + status: Completed + integrationType: expense + Unsuccessful Transaction: + transactionId: 3d694cd1-4cd9-4136-91db-32408195c6fc + status: ValidationError + message: The line item total -208.10((-195.01 + -1.09) + (-10.01 + -1.99)) must equal the transaction total -1.1 + integrationType: string + TransactionResponse: + title: Transaction response + x-internal: true + type: array + items: + $ref: '#/components/schemas/Transaction' + Transactions: + title: Transactions + x-internal: true + additionalProperties: false + allOf: + - type: object + properties: + results: + type: array + items: + $ref: '#/components/schemas/Transaction' + - $ref: '#/components/schemas/PagingInfo' + x-examples: + Example 1: + results: + - transactionId: aa02271d-ed5f-47f5-be76-778d5905225a + status: Completed + integrationType: expenses + - transactionId: 730177a2-8505-410a-9ebc-c2dd52e4bea9 + status: Completed + integrationType: expenses + pageNumber: 1 + pageSize: 100 + totalResults: 2 + links: + self: + href: string + current: + href: string + TransactionStatus: + title: Transaction status + x-internal: true + type: string + description: Status of the transaction. + enum: + - Unknown + - Pending + - ValidationError + - Completed + - PushError + example: Completed + nullable: true + TransferTransactionRequest: + title: Transfer + type: object + properties: + description: type: string - nullable: true - description: Status of the source account. - enum: - - pending - - connected - - connecting - - disconnected - - unknown - feedStartDate: - $ref: '#/components/schemas/DateTime' - nullable: true - required: - - id - definitions: - sourceAccountPrototype: - title: Source account (v1) + description: 'Any private, company notes about the transaction.' + example: Transfer from bank account Y to bank account Z + date: + allOf: + - description: Date of the transfer transaction as recorded in the accounting software. + - title: Date time + type: string + examples: + - 2022-10-23T00:00:00.000Z + - 2022-10-23T00:00:00.000Z + description: "In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:\n\n```\n2020-10-08T22:40:50Z\n2021-01-01T00:00:00\n```\n\n\n\nWhen syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:\n\n- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`\n- Unqualified local time: `2021-11-15T01:00:00`\n- UTC time offsets: `2021-11-15T01:00:00-05:00`\n\n> Time zones\n> \n> Not all dates from Codat will contain information about time zones. \n> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced." + from: type: object properties: - id: - $ref: '#/components/schemas/SourceAccount/properties/id' - accountName: - $ref: '#/components/schemas/SourceAccount/properties/accountName' - accountType: - $ref: '#/components/schemas/SourceAccount/properties/accountType' - accountNumber: - $ref: '#/components/schemas/SourceAccount/properties/accountNumber' - sortCode: - $ref: '#/components/schemas/SourceAccount/properties/sortCode' - currency: - $ref: '#/components/schemas/SourceAccount/properties/currency' - balance: - $ref: '#/components/schemas/SourceAccount/properties/balance' - modifiedDate: - $ref: '#/components/schemas/SourceAccount/properties/modifiedDate' + accountRef: + type: object + title: Account reference + description: Reference of the account you are transferring money from. + properties: + id: + type: string + description: '''id'' from the Accounts data type.' + required: + - id + amount: + type: number + format: decimal + description: Amount that has been transferred from the account in the native currency of the account. required: - - id - sourceAccounts: - title: Source accounts - type: array - items: - $ref: '#/components/schemas/SourceAccount' - examples: - - id: acc-002 - accountName: account-081 - sortCode: '123456' - accountType: Credit - accountNumber: '12345670' - currency: GBP - balance: 99.99 - modifiedDate: '2023-01-09T14:14:14.1057478Z' - status: pending - - id: acc-003 - accountName: account-095 - sortCode: '123456' - accountType: Credit - accountNumber: '12345671' - currency: USD - balance: 0 - modifiedDate: '2023-01-09T14:14:14.1057478Z' - status: pending - SourceAccountV2: - title: Source account (v2) + - accountRef + - amount + to: + type: object + properties: + accountRef: + type: object + title: Account reference + description: Reference of the account you are transferring money to. + properties: + id: + type: string + description: '''id'' from the Accounts data type.' + required: + - id + amount: + type: number + format: decimal + description: Amount that has been transferred to the account in the native currency of the account. + required: + - accountRef + - amount + required: + - date + - from + - to + TransferTransactionResponse: + title: Create transfer response + x-internal: true type: object - description: The target bank account in a supported accounting software for ingestion into a bank feed. - additionalProperties: false properties: - id: - type: string - description: Unique ID for the bank account. - accountName: + syncId: type: string - description: The bank account name. - accountType: + example: cd937d46-8e41-43a9-9477-a79158ffd98a + format: uuid + description: Unique id of sync created + UpdateCustomerResponse: + title: Update customer response + x-internal: true + allOf: + - type: object + properties: + data: + allOf: + - $ref: '#/components/schemas/Customer' + - deprecated: true + - $ref: '#/components/schemas/PushOperation' + UpdateExpenseRequest: + title: Updating expense transaction request + type: object + properties: + type: type: string - description: 'The type of bank account e.g. checking, savings, loan, creditCard, prepaidCard.' + example: Payment + description: The type of transaction. enum: - - checking - - savings - - loan - - creditCard - - prepaidCard - accountNumber: - type: string - description: The account number. - sortCode: + - Payment + - Refund + - Reward + - Chargeback + issueDate: type: string - nullable: true - description: The sort code. - routingInfo: - $ref: '#/components/schemas/SourceAccountV2/definitions/routingInfo' + description: Date the transaction was recorded. + example: '2022-06-28T00:00:00.000Z' currency: - $ref: '#/components/schemas/SourceAccount/properties/currency' - balance: - type: number - format: decimal - description: The latest balance for the bank account. - accountInfo: - $ref: '#/components/schemas/SourceAccountV2/definitions/accountInfo' - modifiedDate: - $ref: '#/components/schemas/DateTime' - nullable: true - description: The last date the bank account was modified. - status: - type: string - nullable: true - description: Status of the source account. - enum: - - pending - - connected - - connecting - - disconnected - - unknown - feedStartDate: - nullable: true - title: Date type: string - example: '2022-10-23' - description: |- - In Codat's data model, dates are represented using the ISO 8601 standard. Date fields are formatted as strings; for example: - ``` - 2020-10-08 - ``` - required: - - id - - accountName - - accountType - - accountNumber - - currency - - balance - definitions: - sourceAccountV2Prototype: - title: Source account (v2) + example: GBP + description: Currency the transaction was recorded in. + currencyRate: + $ref: '#/components/schemas/ExpenseTransaction/properties/currencyRate' + contactRef: + description: Supplier or Customer for the purchase to be associated to. + $ref: '#/components/schemas/ExpenseContactRef' + bankAccountRef: type: object + title: Bank account reference properties: id: - $ref: '#/components/schemas/SourceAccountV2/properties/id' - accountName: - $ref: '#/components/schemas/SourceAccountV2/properties/accountName' - accountType: - $ref: '#/components/schemas/SourceAccountV2/properties/accountType' - accountNumber: - $ref: '#/components/schemas/SourceAccountV2/properties/accountNumber' - routingInfo: - $ref: '#/components/schemas/SourceAccountV2/definitions/routingInfo' - sortCode: - $ref: '#/components/schemas/SourceAccountV2/properties/sortCode' - currency: - $ref: '#/components/schemas/SourceAccount/properties/currency' - balance: - $ref: '#/components/schemas/SourceAccountV2/properties/balance' - modifiedDate: - $ref: '#/components/schemas/SourceAccountV2/properties/modifiedDate' - accountInfo: - $ref: '#/components/schemas/SourceAccountV2/definitions/accountInfo' - required: - - id - - accountName - - accountType - - accountNumber - - currency - - balance - accountInfo: - title: Account Info - type: object - nullable: true - properties: - description: type: string - nullable: true - description: Description of the account. - nickname: - type: string - nullable: true - description: Name given to the account by the user. Used in UIs to assist in account selection. - accountOpenDate: - $ref: '#/components/schemas/SourceAccountV2/properties/feedStartDate' - nullable: true - description: Date when the account was opened or created at the provider - availableBalance: - type: number - format: decimal - nullable: true - description: Balance of funds available for use. This includes pending activity. - sourceAccounts: - title: Source accounts + example: 787dfb37-5707-4dc0-8a86-8d74e4cc78ea + description: Identifier of the bank account. + merchantName: + type: string + description: Name of the merchant where the purchase took place + example: Amazon UK + lines: type: array + description: Array of transaction lines. items: - $ref: '#/components/schemas/SourceAccountV2' - routingInfo: - title: Routing Info - type: object - description: Routing information for the bank. This does not include account number. - properties: - bankCode: - type: string - nullable: true - description: The numeric identifier of the routing number - type: - type: string - nullable: true - default: bankcode - enum: - - rtn - - aba - - swift - - bsb - - iban - - nz2 - - trno - - sortcode - - blz - - ifsc - - bankcode - - apca - - clabe - description: The type of routing number. - examples: - - id: acc-001 - accountName: account-081 - accountType: checking - accountNumber: '12345670' - routingInfo: - bankCode: 021001088 - type: bankcode - currency: GBP - balance: 99.99 - accountInfo: - description: account description 1 - nickname: account 123 - accountOpenDate: '2023-05-06' - availableBalance: 10 - modifiedDate: '2024-08-02T00:00:00.000Z' - status: pending - feedStartDate: '2024-05-01' - - id: acc-002 - accountName: account-083 - accountType: savings - accountNumber: '23456789' - routingInfo: - bankCode: 021001088 - type: bankcode - currency: GBP - balance: 400 - accountInfo: - description: account description 2 - nickname: account 1290 - accountOpenDate: '2023-05-23' - availableBalance: 400 - modifiedDate: '2024-08-02T00:00:00.000Z' - status: pending - feedStartDate: '2024-05-01' - StartUploadSessionRequest: - title: Upload session start request + $ref: '#/components/schemas/ExpenseTransactionLine' + notes: + type: string + description: 'Any private, company notes about the transaction.' + example: 'APPLE.COM/BILL - 09001077498 - Card Ending: 4590' + required: + - type + - issueDate + - currency + UpdateExpenseResponse: + title: Update expense response + x-internal: true type: object properties: - dataType: + syncId: type: string - enum: - - banking-accounts - - banking-transactions - description: A key for a Codat data type. - SupplementalData: - title: Supplemental data + description: Unique identifier for the update expense sync. + examples: + Example 1: + syncId: 1ad0695c-4566-4715-918c-adbb03eac81e + UpdateReimbursableExpenseTransactionRequest: + title: Updating reimbursable expense transaction request type: object - x-internal: true - description: "Supplemental data is additional data you can include in our standard data types. \n\nIt is referenced as a configured dynamic key value pair that is unique to the accounting software. [Learn more](https://docs.codat.io/using-the-api/supplemental-data/overview) about supplemental data." properties: - content: - type: object - additionalProperties: - type: object - additionalProperties: true + reference: + type: string nullable: true - ThirdPartySchema: - title: Third-party schema - description: The format should be identical to the file format receieved from the third-party banking source (e.g. Plaid or TrueLayer). - type: object - x-speakeasy-type-override: any - WebLink: - title: Weblink - description: Weblink associated with the company. - type: object - properties: - type: - description: The type of the weblink. + description: User-friendly reference for the reimbursable expense. + contactRef: + $ref: '#/components/schemas/ReimbursementContactRef' + apAccountRef: + $ref: '#/components/schemas/apAccountRef' + issueDate: + $ref: '#/components/schemas/TransferTransactionRequest/properties/date/allOf/1' + description: Date of the transaction was recorded. + dueDate: + description: Date the supplier is due to be paid. + $ref: '#/components/schemas/TransferTransactionRequest/properties/date/allOf/1' + currency: type: string - enum: - - Website - - Social - - Unknown - url: - description: The full URL for the weblink. + example: GBP + description: Currency the transaction was recorded in. + currencyRate: + $ref: '#/components/schemas/ExpenseTransaction/properties/currencyRate' + notes: type: string - format: url - example: - type: Website - url: 'https://codat.io' - parameters: - page: - name: page - in: query - schema: - type: integer - format: int32 - minimum: 1 - example: 1 - default: 1 - description: 'Page number. [Read more](https://docs.codat.io/using-the-api/paging).' - pageSize: - name: pageSize - in: query - schema: - type: integer - format: int32 - default: 100 - example: 100 - minimum: 1 - maximum: 5000 - description: 'Number of records to return in a page. [Read more](https://docs.codat.io/using-the-api/paging).' - query: - name: query - in: query - required: false - schema: - type: string - example: id=e3334455-1aed-4e71-ab43-6bccf12092ee - description: 'Codat query string. [Read more](https://docs.codat.io/using-the-api/querying).' - orderBy: - name: orderBy - in: query - required: false - schema: + description: 'Any private, company notes about the transaction.' + example: 'APPLE.COM/BILL - 09001077498 - Card Ending: 4590' + lines: + type: array + description: Array of transaction lines. + minItems: 1 + maxItems: 100 + items: + $ref: '#/components/schemas/ReimbursableExpenseTransactionLine' + required: + - contactRef + - issueDate + - dueDate + - currency + UpdateSupplierResponse: + title: Update supplier response + x-internal: true + allOf: + - type: object + properties: + data: + allOf: + - $ref: '#/components/schemas/Supplier' + - deprecated: true + - $ref: '#/components/schemas/PushOperation' + validFor: + title: Valid endpoints + x-internal: true + type: array + description: Supported endpoints for the account. + nullable: false + items: type: string - example: '-modifiedDate' - description: 'Field to order results by. [Read more](https://docs.codat.io/using-the-api/ordering-results).' - companyId: - name: companyId - in: path - required: true - schema: + enum: + - expense-transactions.Payment + - expense-transactions.Refund + - expense-transactions.Reward + - expense-transactions.Chargeback + - reimbursable-expense-transactions + - transfer-transactions + - adjustment-transactions + example: expense-transactions.Payment + validTransactionTypes: + title: Valid transaction types + x-internal: true + type: array + description: Supported transaction types for the account. + nullable: false + items: type: string - format: uuid - example: 8a210b68-6988-11ed-a1eb-0242ac120002 - description: Unique identifier for your SMB in Codat. - description: Unique identifier for a company. - connectionId: - name: connectionId + enum: + - Payment + - Refund + - Reward + - Chargeback + example: Payment + parameters: + syncId: + name: syncId in: path required: true schema: type: string format: uuid - example: 2e9d2c44-f675-40ba-8049-353bfcb5e171 - description: Unique identifier for a company's data connection. - description: Unique identifier for a connection. - dataType: - name: dataType - description: A key for a Codat data type. - in: path - required: true - schema: - $ref: '#/components/schemas/DataType' - datasetId: - name: datasetId + example: 6fb40d5e-b13e-11ed-afa1-0242ac120002 + description: Unique identifier for a sync. + transactionId: + name: transactionId in: path required: true schema: type: string format: uuid - description: Unique identifier for the dataset that completed its sync. - description: Unique identifier for the dataset that completed its sync. - dataIntegrityDataType: - name: dataType - in: path - required: true - schema: - type: string - enum: - - banking-accounts - - banking-transactions - - bankAccounts - - accountTransactions - example: banking-accounts - description: A key for a Codat data type. - reportDate: - name: reportDate - in: query - schema: - type: string - example: 29-09-2020 - description: 'The date in which the report is created up to. Users must specify a specific date, however the response will be provided for the full month.' - reportDateRequired: - name: reportDate - in: query - required: true - schema: - type: string - example: 29-09-2020 - description: 'The date in which the report is created up to. Users must specify a specific date, however the response will be provided for the full month.' - periodLength: - name: periodLength - in: query - required: true - schema: - type: integer - description: The number of months per period. E.g. 2 = 2 months per period. - numberOfPeriods: - name: numberOfPeriods + example: 336694d8-2dca-4cb5-a28d-3ccb83e55eee + description: The unique identifier for your SMB's transaction. + page: + name: page in: query - required: false schema: type: integer - description: 'The number of periods to return. If not provided, 12 periods will be used as the default value.' - numberOfPeriodsRequired: - name: numberOfPeriods + format: int32 + minimum: 1 + example: 1 + default: 1 + description: 'Page number. [Read more](https://docs.codat.io/using-the-api/paging).' + pageSize: + name: pageSize in: query - required: true schema: type: integer - description: The number of periods to return. There will be no pagination as a query parameter. - periodUnit: - name: periodUnit + format: int32 + default: 100 + example: 100 + minimum: 1 + maximum: 5000 + description: 'Number of records to return in a page. [Read more](https://docs.codat.io/using-the-api/paging).' + query: + name: query in: query - required: true + required: false schema: type: string - enum: - - Day - - Week - - Month - - Year - description: The period unit of time returned. - includeDisplayNames: - name: includeDisplayNames - in: query - schema: - type: boolean - description: Shows the dimensionDisplayName and itemDisplayName in measures to make the report data human-readable. - excelReportType: - name: reportType + example: id=e3334455-1aed-4e71-ab43-6bccf12092ee + description: 'Codat query string. [Read more](https://docs.codat.io/using-the-api/querying).' + orderBy: + name: orderBy in: query - schema: - $ref: '#/components/schemas/ExcelStatus/definitions/excelReportTypes' - description: The type of report you want to generate and download. - required: true - accountingAccountId: - name: accountId - in: path - required: true - schema: - type: string - examples: - - 13d946f0-c5d5-42bc-b092-97ece17923ab - - 9wg4lep4ush5cxs79pl8sozmsndbaukll3ind4g7buqbm1h2 - - 7110701885 - - EILBDVJVNUAGVKRQ - description: Unique identifier for an account. - accountingBillPaymentId: - name: billPaymentId - in: path - required: true - schema: - type: string - examples: - - 13d946f0-c5d5-42bc-b092-97ece17923ab - - 9wg4lep4ush5cxs79pl8sozmsndbaukll3ind4g7buqbm1h2 - - 7110701885 - - EILBDVJVNUAGVKRQ - description: Unique identifier for a bill payment. - accountingBillId: - name: billId - in: path - required: true + required: false schema: type: string - examples: - - 13d946f0-c5d5-42bc-b092-97ece17923ab - - 9wg4lep4ush5cxs79pl8sozmsndbaukll3ind4g7buqbm1h2 - - 7110701885 - - EILBDVJVNUAGVKRQ - description: Unique identifier for a bill. - attachmentId: - name: attachmentId + example: '-modifiedDate' + description: 'Field to order results by. [Read more](https://docs.codat.io/using-the-api/ordering-results).' + companyId: + name: companyId in: path required: true schema: type: string format: uuid example: 8a210b68-6988-11ed-a1eb-0242ac120002 - description: Unique identifier for an attachment. - accountingDirectCostId: - name: directCostId - in: path - required: true - schema: - type: string - examples: - - 13d946f0-c5d5-42bc-b092-97ece17923ab - - 9wg4lep4ush5cxs79pl8sozmsndbaukll3ind4g7buqbm1h2 - - 7110701885 - - EILBDVJVNUAGVKRQ - description: Unique identifier for a direct cost. - accountingDirectIncomeId: - name: directIncomeId + description: Unique identifier for your SMB in Codat. + description: Unique identifier for a company. + connectionId: + name: connectionId in: path required: true schema: type: string - examples: - - 13d946f0-c5d5-42bc-b092-97ece17923ab - - 9wg4lep4ush5cxs79pl8sozmsndbaukll3ind4g7buqbm1h2 - - 7110701885 - - EILBDVJVNUAGVKRQ - description: Unique identifier for a direct income. - accountingInvoiceId: - name: invoiceId + format: uuid + example: 2e9d2c44-f675-40ba-8049-353bfcb5e171 + description: Unique identifier for a company's data connection. + description: Unique identifier for a connection. + dataType: + name: dataType + description: The key of a Codat data type in: path required: true schema: - type: string - examples: - - 13d946f0-c5d5-42bc-b092-97ece17923ab - - 9wg4lep4ush5cxs79pl8sozmsndbaukll3ind4g7buqbm1h2 - - 7110701885 - - EILBDVJVNUAGVKRQ - description: Unique identifier for an invoice. - accountingSupplierId: + $ref: '#/components/schemas/DataType' + supplierId: name: supplierId in: path required: true @@ -87344,54 +13034,6 @@ components: - 7110701885 - EILBDVJVNUAGVKRQ description: Unique identifier for a supplier. - accountingReportDate: - name: reportDate - in: query - schema: - type: string - format: date - example: '2022-12-31' - description: Date the report is generated up to. - accountingNumberOfPeriods: - name: numberOfPeriods - in: query - schema: - type: integer - format: int32 - example: 12 - description: Number of periods to include in the report. - accountingPeriodLengthDays: - name: periodLengthDays - in: query - schema: - type: integer - format: int32 - example: 30 - description: The length of period in days. - accountingPeriodLength: - name: periodLength - description: Number of months defining the period of interest. - in: query - required: true - schema: - type: integer - format: int32 - example: 4 - accountingPeriodsToCompare: - name: periodsToCompare - description: Number of periods with `periodLength` to compare. - in: query - required: true - schema: - type: integer - format: int32 - example: 20 - accountingStartMonth: - name: startMonth - in: query - schema: - $ref: '#/components/schemas/DateTime' - description: The month the report starts from. customerId: name: customerId in: path @@ -87425,79 +13067,6 @@ components: type: boolean default: false description: 'When updating data in the destination platform Codat checks the `sourceModifiedDate` against the `lastupdated` date from the accounting software, if they''re different Codat will return an error suggesting you should initiate another pull of the data. If this is set to `true` then the update will override this check.' - pushOperationKey: - name: pushOperationKey - schema: - type: string - format: uuid - in: path - required: true - description: Unique identifier for the push operation. - paymentId: - name: paymentId - in: path - required: true - schema: - type: string - examples: - - 13d946f0-c5d5-42bc-b092-97ece17923ab - - 9wg4lep4ush5cxs79pl8sozmsndbaukll3ind4g7buqbm1h2 - - 7110701885 - - EILBDVJVNUAGVKRQ - description: Unique identifier for a payment. - productId: - name: productId - in: path - required: true - schema: - type: string - examples: - - 13d946f0-c5d5-42bc-b092-97ece17923ab - - 9wg4lep4ush5cxs79pl8sozmsndbaukll3ind4g7buqbm1h2 - - 7110701885 - - EILBDVJVNUAGVKRQ - description: Unique identifier for a product. - path: - name: path - description: The endpoint path of the third-party banking service that the request body originates from. Only required if the source is not `codat`. - in: query - required: false - schema: - type: string - enum: - - auth/get - reportType: - name: reportType - description: The type of the report - in: path - required: true - schema: - type: string - enum: - - categorizedBankStatement - - creditModel - reportId: - name: reportId - description: 'Unique identifier for a report, use either the Id of the report or `latest` for the most recently generate report.' - in: path - required: true - schema: - oneOf: - - type: string - title: ID - format: uuid - example: 8a210b68-6988-11ed-a1eb-0242ac120002 - - type: string - title: Latest - enum: - - latest - maxAge: - description: The maximum age of report to fetch. - name: maxAge - in: query - required: false - schema: - $ref: '#/components/schemas/DateTime' responses: BadRequest: description: The request made is not valid. @@ -87514,15 +13083,6 @@ components: correlationId: bc997528a9d7abb9161ef45f05d38599 canBeRetried: Unknown detailedErrorCode: 0 - ConnectionManagementAllowedOrigins: - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/ConnectionManagementAllowedOrigins' - examples: - Allowed origins: - $ref: '#/components/examples/connectionManagementAllowedOriginsResponse' Malformed-Query: description: Your `query` parameter was not correctly formed content: @@ -87644,8 +13204,8 @@ components: correlationId: bc997528a9d7abb9161ef45f05d38599 canBeRetried: Unknown detailedErrorCode: 0 - Too-Many-Requests: - description: Too many requests were made in a given amount of time. Wait a short period and then try again. + Unprocessable-Content: + description: The requests made can't be processed. This may be due to differences in platform support. content: application/json: schema: @@ -87653,14 +13213,14 @@ components: examples: Conflict: value: - statusCode: 429 - service: PublicApi - error: You have made too many requests in a given amount of time; please retry later. - correlationId: bc997528a9d7abb9161ef45f05d38599 + statusCode: 422 + service: ExpenseSyncApi + error: Expense transaction updates are not supported for platforms other than Xero. + correlationId: 7c8e23841d211c87f49f30b248f70c93 canBeRetried: Unknown detailedErrorCode: 0 - Legal-Reasons: - description: Not currently available due to compliance limitations. Reach out to your Codat contact for further assistance. + Too-Many-Requests: + description: Too many requests were made in a given amount of time. Wait a short period and then try again. content: application/json: schema: @@ -87668,10 +13228,10 @@ components: examples: Conflict: value: - statusCode: 451 - service: StdznCustomData - error: Platform 'qudb' is not currently available for compliance purposes. - correlationId: f63017dabb9b87865573bea95a51e55d + statusCode: 429 + service: PublicApi + error: You have made too many requests in a given amount of time; please retry later. + correlationId: bc997528a9d7abb9161ef45f05d38599 canBeRetried: Unknown detailedErrorCode: 0 Internal-Server-Error: @@ -87704,124 +13264,6 @@ components: correlationId: bc997528a9d7abb9161ef45f05d38599 canBeRetried: Unknown detailedErrorCode: 0 - parameters: - companyId: - name: companyId - in: path - required: true - schema: - type: string - format: uuid - example: 8a210b68-6988-11ed-a1eb-0242ac120002 - description: Unique identifier for your SMB in Codat. - description: Unique identifier for a company. - connectionId: - name: connectionId - in: path - required: true - schema: - type: string - format: uuid - example: 2e9d2c44-f675-40ba-8049-353bfcb5e171 - description: Unique identifier for a company's data connection. - description: Unique identifier for a connection. - customDataIdentifier: - name: customDataIdentifier - in: path - required: true - schema: - type: string - example: DynamicsPurchaseOrders - description: Unique identifier for a custom data type. - page: - name: page - in: query - schema: - type: integer - format: int32 - minimum: 1 - example: 1 - default: 1 - description: 'Page number. [Read more](https://docs.codat.io/using-the-api/paging).' - pageSize: - name: pageSize - in: query - schema: - type: integer - format: int32 - default: 100 - example: 100 - minimum: 1 - maximum: 5000 - description: 'Number of records to return in a page. [Read more](https://docs.codat.io/using-the-api/paging).' - productIdentifier: - name: productIdentifier - in: path - required: true - schema: - type: string - examples: - - bank-feeds - - lending - - payables - - expenses - description: Human-readable product identifier for a product. - query: - name: query - in: query - required: false - schema: - type: string - example: id=e3334455-1aed-4e71-ab43-6bccf12092ee - description: 'Codat query string. [Read more](https://docs.codat.io/using-the-api/querying).' - orderBy: - name: orderBy - in: query - required: false - schema: - type: string - example: '-modifiedDate' - description: 'Field to order results by. [Read more](https://docs.codat.io/using-the-api/ordering-results).' - dataType: - name: dataType - description: The key of a Codat data type. - in: path - required: true - schema: - $ref: '#/components/schemas/DataType' - datasetId: - name: datasetId - in: path - required: true - schema: - type: string - format: uuid - description: Unique identifier for the dataset that completed its sync. - description: Unique identifier for the dataset that completed its sync. - platformKey: - name: platformKey - in: path - required: true - schema: - type: string - minLength: 4 - maxLength: 4 - pattern: '[a-z]{4}' - example: gbol - description: 'A unique 4-letter key to represent a platform in each integration. View [accounting](https://docs.codat.io/integrations/accounting/overview#platform-keys), [banking](https://docs.codat.io/integrations/banking/overview#platform-keys), and [commerce](https://docs.codat.io/integrations/commerce/overview#platform-keys) platform keys.' - description: A unique 4-letter key to represent a platform in each integration. - webhookId: - name: webhookId - in: path - required: true - schema: - $ref: '#/components/schemas/WebhookConsumer/properties/id' - description: Unique identifier for the webhook consumer. - examples: - connectionManagementAllowedOriginsResponse: - value: - allowedOrigins: - - 'https://www.bank-of-dave.com' securitySchemes: auth_header: name: Authorization @@ -87829,270 +13271,3 @@ components: type: apiKey in: header x-speakeasy-example: Basic BASE_64_ENCODED(API_KEY) - examples: - CodatBankStatementUploadConfiguration: - value: - source: codat - accountId: abc123-ABC - summary: Settings for uploading codat data - EnhancedCashflowExample: - value: - reportInfo: - pageNumber: 1 - pageSize: 10 - totalResults: 2194 - reportName: Cash flow transactions report - companyName: test - generatedDate: '2023-03-24T16:44:17.5302732Z' - dataSources: - - accounts: - - sourceRef: - sourceType: Banking - platformName: Banking Sandbox - accountProvider: Lloyds Bank - accountName: Business Savings Account - accountType: Debit - currency: GBP - currentBalance: 0 - - sourceRef: - sourceType: Banking - platformName: Banking Sandbox - accountProvider: Lloyds Bank - accountName: Banking - Business Credit Card - accountType: Credit - currency: GBP - currentBalance: 0 - - sourceRef: - sourceType: Banking - platformName: Banking Sandbox - accountProvider: Lloyds Bank - accountName: Business Undeposited Funds - accountType: Debit - currency: GBP - currentBalance: 0 - - sourceRef: - sourceType: Banking - platformName: Banking Sandbox - accountProvider: Lloyds Bank - accountName: Business Current Account - accountType: Debit - currency: GBP - currentBalance: 0 - reportItems: - - transactions: - - sourceRef: - sourceType: Banking - accountRef: - id: 4f78a6b0-e9bb-40f2-82fd-f3a2daa1fd0a - name: Business Current Account - id: ab5e07a0-5578-4d91-8421-2dc72713b74f - date: '2022-11-08T00:00:00' - description: Payment m86SDGpQr3 - amount: -6905.44 - currency: GBP - transactionCategory: - confidence: 52.53 - levels: - - Expense - - Operating - confidences: - - 56 - - 52.53 - platformName: Shopify - counterpartyNames: - - Shopify - modifiedDate: '2022-11-08T12:00:00' - - sourceRef: - sourceType: Banking - accountRef: - id: 4f78a6b0-e9bb-40f2-82fd-f3a2daa1fd0a - name: Business Current Account - id: 9846bbed-46d3-472c-a848-1ce8ebea7213 - date: '2022-11-08T00:00:00' - description: Payment from customer a5c68c7b-6825-46de-bf63-6ad23ef506a4 - amount: 4332.84 - currency: GBP - transactionCategory: - confidence: 88 - levels: - - Expense - confidences: - - 88 - platformName: Amazon - counterpartyNames: - - Amazon - - Amazon Marketplace - modifiedDate: '2022-11-08T12:00:00' - - sourceRef: - sourceType: Banking - accountRef: - id: 809b9470-c9fa-4257-bc9f-06a1dc7b0cbc - name: Business Undeposited Funds - id: 94b213fb-d742-435e-90f1-bfe723a076d5 - date: '2022-11-08T00:00:00' - description: Payment from customer a5c68c7b-6825-46de-bf63-6ad23ef506a4 - amount: 4034.3 - currency: GBP - transactionCategory: - confidence: 61.08 - levels: - - Income - - Revenue - confidences: - - 65 - - 61.08 - platformName: Shopify - counterpartyNames: [] - modifiedDate: '2022-11-08T12:00:00' - - sourceRef: - sourceType: Banking - accountRef: - id: 4f78a6b0-e9bb-40f2-82fd-f3a2daa1fd0a - name: Business Current Account - id: cfceb7ff-eaa2-45b6-aca7-fa0e0b439161 - date: '2022-11-08T00:00:00' - description: Payment to supplier 78792d13-90a0-4ea2-8e07-81c3c893997e - amount: -313.76 - currency: GBP - transactionCategory: - confidence: 40.98 - levels: - - Expense - - CostOfSales - confidences: - - 40.98 - - 99.9 - platformName: Amazon - counterpartyNames: [] - modifiedDate: '2022-11-08T12:00:00' - - sourceRef: - sourceType: Banking - accountRef: - id: 809b9470-c9fa-4257-bc9f-06a1dc7b0cbc - name: Business Undeposited Funds - id: ba814f14-0fe3-41d0-9308-57f40642ac75 - date: '2022-11-08T00:00:00' - description: Payment to supplier 46d2e1fb-b4e9-469c-814a-21ff8105a26e - amount: -614.4 - currency: GBP - transactionCategory: - confidence: 55.84 - levels: - - Income - - Revenue - confidences: - - 55.84 - - 75.5 - platformName: Zettle - counterpartyNames: [] - modifiedDate: '2022-11-08T12:00:00' - - sourceRef: - sourceType: Banking - accountRef: - id: 4f78a6b0-e9bb-40f2-82fd-f3a2daa1fd0a - name: Business Current Account - id: e67cc30e-fd5c-4eea-8365-ec40dfdd3ef6 - date: '2022-11-08T00:00:00' - description: Payment from customer a5c68c7b-6825-46de-bf63-6ad23ef506a4 - amount: 5199.62 - currency: GBP - transactionCategory: - confidence: 57.85 - levels: - - Expense - confidences: - - 57.85 - platformName: Amazon - counterpartyNames: [] - modifiedDate: '2022-11-08T12:00:00' - - sourceRef: - sourceType: Banking - accountRef: - id: 4f78a6b0-e9bb-40f2-82fd-f3a2daa1fd0a - name: Business Current Account - id: e0f08a0b-3575-4dde-98c4-3c854028d2d2 - date: '2022-11-08T00:00:00' - description: Payment to supplier 18ac18dc-945b-4083-9013-e8a100b999fa - amount: -21420.94 - currency: GBP - transactionCategory: - confidence: 70.58 - levels: - - Expense - - Operating - confidences: - - 70.58 - - 100 - platformName: Amazon - counterpartyNames: [] - modifiedDate: '2022-11-08T12:00:00' - - sourceRef: - sourceType: Banking - accountRef: - id: 809b9470-c9fa-4257-bc9f-06a1dc7b0cbc - name: Business Undeposited Funds - id: 4b70d379-8284-4f44-bb37-c7935df950cc - date: '2022-11-08T00:00:00' - description: Payment to supplier 630a3f16-5f01-4986-ae6b-82333ec49449 - amount: -30924.22 - currency: GBP - transactionCategory: - confidence: 48.26 - levels: - - Income - confidences: - - 48.26 - platformName: DoorDash - counterpartyNames: [] - modifiedDate: '2022-11-08T12:00:00' - - sourceRef: - sourceType: Banking - accountRef: - id: 809b9470-c9fa-4257-bc9f-06a1dc7b0cbc - name: Business Undeposited Funds - id: 76b73373-9345-472e-8edf-5be849d797fe - date: '2022-11-08T00:00:00' - description: Payment to supplier bQATU4eSb9 - amount: -568.78 - currency: GBP - transactionCategory: - confidence: 65.21 - levels: - - Income - - Revenue - confidences: - - 65.21 - - 100 - platformName: Uber - counterpartyNames: - - Uber - modifiedDate: '2022-11-08T12:00:00' - - sourceRef: - sourceType: Banking - accountRef: - id: 809b9470-c9fa-4257-bc9f-06a1dc7b0cbc - name: Business Undeposited Funds - id: ee92fd6f-e0f7-4391-85fd-4b50921b973f - date: '2022-11-08T00:00:00' - description: Payment to supplier 9c37eb21-579a-4886-8296-3a853076b7bd - amount: -13050.79 - currency: GBP - transactionCategory: - confidence: 92.33 - levels: - - Income - - Revenue - confidences: - - 92.33 - - 92.33 - platformName: DoorDash - counterpartyNames: - - DoorDash - modifiedDate: '2022-11-08T12:00:00' - SingleReportExample: - value: - id: 6e9bae88-72c9-45ae-abe8-41fbf2871458 - status: InProgress - type: categorizedBankStatement - requestedDate: '2024-09-27T04:43:41Z' - updatedDate: '2024-10-01T14:41:46Z' diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 08cf5cd51..c927e0015 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,4 +1,4 @@ -speakeasyVersion: 1.715.0 +speakeasyVersion: 1.741.1 sources: accounting-source: sourceNamespace: accounting-source @@ -76,11 +76,10 @@ sources: - "1.1" sync-for-expenses-source: sourceNamespace: sync-for-expenses-source - sourceRevisionDigest: sha256:e60ac3b8ca5e89b501cd2ce3274beb969f3ef05c2624ed101bd505c237d8fe82 - sourceBlobDigest: sha256:abe56a70fc7e5c5883c7e8a6bef59d69ceb2dc4eddbb3106ae06b6c5acb38408 + sourceRevisionDigest: sha256:62683d8745c6d1a5c87fcfcf9b37c8d8d6209fabf2dd7ea7082e8f21531d1ebc + sourceBlobDigest: sha256:aa297e6cc1e1af7d1b8f9832e8da914f7e3d365f13c80edf6ac5a0c5f8789aeb tags: - latest - - speakeasy-sdk-regen-1733826174 - prealpha sync-for-payables-source: sourceNamespace: sync-for-payables-source @@ -159,10 +158,10 @@ targets: sync-for-expenses-library: source: sync-for-expenses-source sourceNamespace: sync-for-expenses-source - sourceRevisionDigest: sha256:e60ac3b8ca5e89b501cd2ce3274beb969f3ef05c2624ed101bd505c237d8fe82 - sourceBlobDigest: sha256:abe56a70fc7e5c5883c7e8a6bef59d69ceb2dc4eddbb3106ae06b6c5acb38408 + sourceRevisionDigest: sha256:62683d8745c6d1a5c87fcfcf9b37c8d8d6209fabf2dd7ea7082e8f21531d1ebc + sourceBlobDigest: sha256:aa297e6cc1e1af7d1b8f9832e8da914f7e3d365f13c80edf6ac5a0c5f8789aeb codeSamplesNamespace: sync-for-expenses-source-python-code-samples - codeSamplesRevisionDigest: sha256:6e93c873ec2b973bec09d3aba9c80da9cb80998a324225092e6e1f3737411c96 + codeSamplesRevisionDigest: sha256:e3caf5ee3c300a67f60328a4414edc58c832b4024f36ea2d17998e1065218710 sync-for-payables-library: source: sync-for-payables-source sourceNamespace: sync-for-payables-source diff --git a/sync-for-expenses/.gitignore b/sync-for-expenses/.gitignore index f49ed9610..181b6c71c 100755 --- a/sync-for-expenses/.gitignore +++ b/sync-for-expenses/.gitignore @@ -1,3 +1,9 @@ +**/__pycache__/ +**/.speakeasy/temp/ +**/.speakeasy/logs/ +.speakeasy/reports +.env +.env.local .venv/ pyrightconfig.json README-PYPI.md diff --git a/sync-for-expenses/.speakeasy/gen.lock b/sync-for-expenses/.speakeasy/gen.lock index 21cab7d36..4719233e3 100755 --- a/sync-for-expenses/.speakeasy/gen.lock +++ b/sync-for-expenses/.speakeasy/gen.lock @@ -1,475 +1,1746 @@ lockVersion: 2.0.0 id: a2c830ee-4f93-4e8e-8f01-48d0991317f5 management: - docChecksum: c99953b67f6a5e5522a0340e273decdb + docChecksum: 9d547e67e069f901700226b1e2d7ca24 docVersion: prealpha - speakeasyVersion: 1.453.8 - generationVersion: 2.474.15 - releaseVersion: 7.0.1 - configChecksum: 748c8b0d651d25e7b0b603920971a83e + speakeasyVersion: 1.741.1 + generationVersion: 2.849.2 + releaseVersion: 8.0.0 + configChecksum: a08c372ed640798001bf6718f37793b4 repoURL: https://github.com/codatio/client-sdk-python.git repoSubDirectory: sync-for-expenses installationURL: https://github.com/codatio/client-sdk-python.git#subdirectory=sync-for-expenses published: true +persistentEdits: + generation_id: eac77583-ec69-4c17-8d36-66b0c9f0e775 + pristine_commit_hash: f3b9d90035cbe32bc473010a803dba3506012aa3 + pristine_tree_hash: 985376b5998af094bdfb48067eb3246f514fa9f3 features: python: additionalDependencies: 1.0.0 - constsAndDefaults: 1.0.5 - core: 5.6.11 + constsAndDefaults: 1.0.7 + core: 6.0.15 decimal: 1.0.0 defaultEnabledRetries: 0.2.0 - deprecations: 3.0.0 + deprecations: 3.0.2 enumUnions: 0.1.0 envVarSecurityUsage: 0.3.2 - examples: 3.0.0 - globalSecurity: 3.0.2 + examples: 3.0.3 + globalSecurity: 3.0.5 globalSecurityCallbacks: 1.0.0 - globalServerURLs: 3.0.0 + globalServerURLs: 3.2.1 inputOutputModels: 3.0.0 methodArguments: 1.0.2 multipartFileContentType: 1.0.0 - nameOverrides: 3.0.0 - nullables: 1.0.0 - responseFormat: 1.0.1 - retries: 3.0.2 - sdkHooks: 1.0.0 + nameOverrides: 3.0.3 + nullables: 1.0.2 + responseFormat: 1.1.0 + retries: 3.0.4 + sdkHooks: 1.2.1 serverEventsSentinels: 0.1.0 uploadStreams: 1.0.0 webhooks: 2.0.0 -generatedFiles: - - .gitattributes - - .python-version - - .vscode/settings.json - - CONTRIBUTING.md - - USAGE.md - - docs/models/errors/errormessage.md - - docs/models/operations/createaccountrequest.md - - docs/models/operations/createadjustmenttransactionrequest.md - - docs/models/operations/createbankaccountrequest.md - - docs/models/operations/createconnectionrequest.md - - docs/models/operations/createconnectionrequestbody.md - - docs/models/operations/createcustomerrequest.md - - docs/models/operations/createexpensetransactionrequest.md - - docs/models/operations/createpartnerexpenseconnectionrequest.md - - docs/models/operations/createreimbursableexpensetransactionrequest.md - - docs/models/operations/createsupplierrequest.md - - docs/models/operations/createtransfertransactionrequest.md - - docs/models/operations/deletecompanyrequest.md - - docs/models/operations/deleteconnectionrequest.md - - docs/models/operations/getcompanyconfigurationrequest.md - - docs/models/operations/getcompanyinforequest.md - - docs/models/operations/getcompanyrequest.md - - docs/models/operations/getconnectionrequest.md - - docs/models/operations/getcreatebankaccountsmodelrequest.md - - docs/models/operations/getcreatechartofaccountsmodelrequest.md - - docs/models/operations/getcustomerrequest.md - - docs/models/operations/getdatastatusdatastatuses.md - - docs/models/operations/getdatastatusrequest.md - - docs/models/operations/getlastsuccessfulsyncrequest.md - - docs/models/operations/getlatestsyncrequest.md - - docs/models/operations/getmappingoptionsrequest.md - - docs/models/operations/getpulloperationrequest.md - - docs/models/operations/getpushoperationrequest.md - - docs/models/operations/getsupplierrequest.md - - docs/models/operations/getsyncbyidrequest.md - - docs/models/operations/getsynctransactionrequest.md - - docs/models/operations/listcompaniesrequest.md - - docs/models/operations/listconnectionsrequest.md - - docs/models/operations/listcustomersrequest.md - - docs/models/operations/listpulloperationsrequest.md - - docs/models/operations/listpushoperationsrequest.md - - docs/models/operations/listsuppliersrequest.md - - docs/models/operations/listsyncsrequest.md - - docs/models/operations/listsynctransactionsrequest.md - - docs/models/operations/refreshalldatatypesrequest.md - - docs/models/operations/refreshdatatyperequest.md - - docs/models/operations/setcompanyconfigurationrequest.md - - docs/models/operations/unlinkconnectionrequest.md - - docs/models/operations/unlinkconnectionupdateconnection.md - - docs/models/operations/updatecompanyrequest.md - - docs/models/operations/updatecustomerrequest.md - - docs/models/operations/updateexpensetransactionrequest.md - - docs/models/operations/updatereimbursableexpensetransactionrequest.md - - docs/models/operations/updatesupplierrequest.md - - docs/models/operations/uploadexpenseattachmentrequest.md - - docs/models/shared/accountingaccount.md - - docs/models/shared/accountingaddress.md - - docs/models/shared/accountingaddresstype.md - - docs/models/shared/accountingbankaccount.md - - docs/models/shared/accountingcustomer.md - - docs/models/shared/accountingsupplier.md - - docs/models/shared/accountmappinginfo.md - - docs/models/shared/accountmappinginfoaccounttype.md - - docs/models/shared/accountprototype.md - - docs/models/shared/accountreference.md - - docs/models/shared/accountstatus.md - - docs/models/shared/accounttype.md - - docs/models/shared/adjustmenttransactionline.md - - docs/models/shared/adjustmenttransactionrequest.md - - docs/models/shared/adjustmenttransactionresponse.md - - docs/models/shared/apaccountref.md - - docs/models/shared/attachment.md - - docs/models/shared/attachmentupload.md - - docs/models/shared/bankaccount.md - - docs/models/shared/bankaccountdetails.md - - docs/models/shared/bankaccountreference.md - - docs/models/shared/bankaccountstatus.md - - docs/models/shared/bankaccounttype.md - - docs/models/shared/clientratelimitreachedwebhook.md - - docs/models/shared/clientratelimitreachedwebhookdata.md - - docs/models/shared/clientratelimitresetwebhook.md - - docs/models/shared/clientratelimitresetwebhookdata.md - - docs/models/shared/clientratelimitwebhook.md - - docs/models/shared/clientratelimitwebhookpayload.md - - docs/models/shared/codatfile.md - - docs/models/shared/companies.md - - docs/models/shared/company.md - - docs/models/shared/companyconfiguration.md - - docs/models/shared/companyinformation.md - - docs/models/shared/companyinformationtype.md - - docs/models/shared/companyreference.md - - docs/models/shared/companyreferencelinks.md - - docs/models/shared/companyrequestbody.md - - docs/models/shared/companysyncstatus.md - - docs/models/shared/connection.md - - docs/models/shared/connections.md - - docs/models/shared/contact.md - - docs/models/shared/createaccountresponse.md - - docs/models/shared/createaccountresponsemetadata.md - - docs/models/shared/createaccountresponsevaliddatatypelinks.md - - docs/models/shared/createbankaccountresponse.md - - docs/models/shared/createbankaccountresponsebankaccounttype.md - - docs/models/shared/createcustomerresponse.md - - docs/models/shared/createexpenseresponse.md - - docs/models/shared/createreimbursableexpenseresponse.md - - docs/models/shared/createsupplierresponse.md - - docs/models/shared/customer.md - - docs/models/shared/customerdetails.md - - docs/models/shared/customers.md - - docs/models/shared/customerstatus.md - - docs/models/shared/dataconnectionerror.md - - docs/models/shared/dataconnectionstatus.md - - docs/models/shared/datasetstatus.md - - docs/models/shared/datastatus.md - - docs/models/shared/datatype.md - - docs/models/shared/datatypes.md - - docs/models/shared/errorstatus.md - - docs/models/shared/errorvalidation.md - - docs/models/shared/errorvalidationitem.md - - docs/models/shared/expensecontactref.md - - docs/models/shared/expensessyncwebhook.md - - docs/models/shared/expensessyncwebhookpayload.md - - docs/models/shared/expensetransaction.md - - docs/models/shared/expensetransactionline.md - - docs/models/shared/expensetransactiontype.md - - docs/models/shared/from_.md - - docs/models/shared/halref.md - - docs/models/shared/integrationtype.md - - docs/models/shared/invoiceto.md - - docs/models/shared/invoicetotype.md - - docs/models/shared/itemref.md - - docs/models/shared/items.md - - docs/models/shared/links.md - - docs/models/shared/mappingoptions.md - - docs/models/shared/metadata.md - - docs/models/shared/phone.md - - docs/models/shared/phonenumberitems.md - - docs/models/shared/phonenumbertype.md - - docs/models/shared/pulloperation.md - - docs/models/shared/pulloperations.md - - docs/models/shared/pushchangetype.md - - docs/models/shared/pushfieldvalidation.md - - docs/models/shared/pushoperation.md - - docs/models/shared/pushoperationchange.md - - docs/models/shared/pushoperationref.md - - docs/models/shared/pushoperations.md - - docs/models/shared/pushoperationstatus.md - - docs/models/shared/pushoption.md - - docs/models/shared/pushoptionchoice.md - - docs/models/shared/pushoptionproperty.md - - docs/models/shared/pushoptiontype.md - - docs/models/shared/pushvalidationinfo.md - - docs/models/shared/recordref.md - - docs/models/shared/reimbursableexpensetransaction.md - - docs/models/shared/reimbursableexpensetransactionline.md - - docs/models/shared/reimbursementcontactref.md - - docs/models/shared/schemadatatype.md - - docs/models/shared/schematransaction.md - - docs/models/shared/security.md - - docs/models/shared/sourcetype.md - - docs/models/shared/status.md - - docs/models/shared/supplementaldata.md - - docs/models/shared/supplier.md - - docs/models/shared/supplierdetails.md - - docs/models/shared/suppliers.md - - docs/models/shared/supplierstatus.md - - docs/models/shared/synccompletewebhook.md - - docs/models/shared/synccompletewebhookdata.md - - docs/models/shared/syncfailedwebhook.md - - docs/models/shared/syncfailedwebhookdata.md - - docs/models/shared/taxratemappinginfo.md - - docs/models/shared/to.md - - docs/models/shared/trackingcategorymappinginfo.md - - docs/models/shared/trackingref.md - - docs/models/shared/trackingrefadjustmenttransaction.md - - docs/models/shared/trackingrefadjustmenttransactiondatatype.md - - docs/models/shared/trackingrefdatatype.md - - docs/models/shared/transaction.md - - docs/models/shared/transactiondefinitionsstatus.md - - docs/models/shared/transactions.md - - docs/models/shared/transactionstatus.md - - docs/models/shared/transfertransactionrequest.md - - docs/models/shared/transfertransactionrequestaccountreference.md - - docs/models/shared/transfertransactionresponse.md - - docs/models/shared/type.md - - docs/models/shared/updatecustomerresponse.md - - docs/models/shared/updatecustomerresponseaccountingcustomer.md - - docs/models/shared/updateexpenserequest.md - - docs/models/shared/updateexpenserequestbankaccountreference.md - - docs/models/shared/updateexpenserequesttype.md - - docs/models/shared/updateexpenseresponse.md - - docs/models/shared/updatereimbursableexpensetransactionrequest.md - - docs/models/shared/updatesupplierresponse.md - - docs/models/shared/updatesupplierresponseaccountingsupplier.md - - docs/models/shared/validation.md - - docs/models/shared/validationitem.md - - docs/models/shared/validdatatypelinks.md - - docs/models/shared/validfor.md - - docs/models/shared/validtransactiontypes.md - - docs/models/shared/weblink.md - - docs/models/utils/retryconfig.md - - docs/sdks/accounts/README.md - - docs/sdks/adjustments/README.md - - docs/sdks/attachments/README.md - - docs/sdks/bankaccounts/README.md - - docs/sdks/codatsyncexpenses/README.md - - docs/sdks/companies/README.md - - docs/sdks/companyinfo/README.md - - docs/sdks/configuration/README.md - - docs/sdks/connections/README.md - - docs/sdks/customers/README.md - - docs/sdks/expenses/README.md - - docs/sdks/managedata/README.md - - docs/sdks/mappingoptions/README.md - - docs/sdks/pushoperations/README.md - - docs/sdks/reimbursements/README.md - - docs/sdks/suppliers/README.md - - docs/sdks/sync/README.md - - docs/sdks/transactionstatus/README.md - - docs/sdks/transfers/README.md - - poetry.toml - - py.typed - - pylintrc - - pyproject.toml - - scripts/prepare-readme.py - - scripts/publish.sh - - src/codat_sync_for_expenses/__init__.py - - src/codat_sync_for_expenses/_hooks/__init__.py - - src/codat_sync_for_expenses/_hooks/sdkhooks.py - - src/codat_sync_for_expenses/_hooks/types.py - - src/codat_sync_for_expenses/_version.py - - src/codat_sync_for_expenses/accounts.py - - src/codat_sync_for_expenses/adjustments.py - - src/codat_sync_for_expenses/attachments.py - - src/codat_sync_for_expenses/bank_accounts.py - - src/codat_sync_for_expenses/basesdk.py - - src/codat_sync_for_expenses/companies.py - - src/codat_sync_for_expenses/company_info.py - - src/codat_sync_for_expenses/configuration.py - - src/codat_sync_for_expenses/connections.py - - src/codat_sync_for_expenses/customers.py - - src/codat_sync_for_expenses/expenses.py - - src/codat_sync_for_expenses/httpclient.py - - src/codat_sync_for_expenses/manage_data.py - - src/codat_sync_for_expenses/mapping_options.py - - src/codat_sync_for_expenses/models/errors/__init__.py - - src/codat_sync_for_expenses/models/errors/errormessage.py - - src/codat_sync_for_expenses/models/errors/sdkerror.py - - src/codat_sync_for_expenses/models/operations/__init__.py - - src/codat_sync_for_expenses/models/operations/create_account.py - - src/codat_sync_for_expenses/models/operations/create_adjustment_transaction.py - - src/codat_sync_for_expenses/models/operations/create_bank_account.py - - src/codat_sync_for_expenses/models/operations/create_connection.py - - src/codat_sync_for_expenses/models/operations/create_customer.py - - src/codat_sync_for_expenses/models/operations/create_expense_transaction.py - - src/codat_sync_for_expenses/models/operations/create_partner_expense_connection.py - - src/codat_sync_for_expenses/models/operations/create_reimbursable_expense_transaction.py - - src/codat_sync_for_expenses/models/operations/create_supplier.py - - src/codat_sync_for_expenses/models/operations/create_transfer_transaction.py - - src/codat_sync_for_expenses/models/operations/delete_company.py - - src/codat_sync_for_expenses/models/operations/delete_connection.py - - src/codat_sync_for_expenses/models/operations/get_company.py - - src/codat_sync_for_expenses/models/operations/get_company_configuration.py - - src/codat_sync_for_expenses/models/operations/get_company_info.py - - src/codat_sync_for_expenses/models/operations/get_connection.py - - src/codat_sync_for_expenses/models/operations/get_create_bankaccounts_model.py - - src/codat_sync_for_expenses/models/operations/get_create_chartofaccounts_model.py - - src/codat_sync_for_expenses/models/operations/get_customer.py - - src/codat_sync_for_expenses/models/operations/get_data_status.py - - src/codat_sync_for_expenses/models/operations/get_last_successful_sync.py - - src/codat_sync_for_expenses/models/operations/get_latest_sync.py - - src/codat_sync_for_expenses/models/operations/get_mapping_options.py - - src/codat_sync_for_expenses/models/operations/get_pull_operation.py - - src/codat_sync_for_expenses/models/operations/get_push_operation.py - - src/codat_sync_for_expenses/models/operations/get_supplier.py - - src/codat_sync_for_expenses/models/operations/get_sync_by_id.py - - src/codat_sync_for_expenses/models/operations/get_sync_transaction.py - - src/codat_sync_for_expenses/models/operations/list_companies.py - - src/codat_sync_for_expenses/models/operations/list_connections.py - - src/codat_sync_for_expenses/models/operations/list_customers.py - - src/codat_sync_for_expenses/models/operations/list_pull_operations.py - - src/codat_sync_for_expenses/models/operations/list_push_operations.py - - src/codat_sync_for_expenses/models/operations/list_suppliers.py - - src/codat_sync_for_expenses/models/operations/list_sync_transactions.py - - src/codat_sync_for_expenses/models/operations/list_syncs.py - - src/codat_sync_for_expenses/models/operations/refresh_all_data_types.py - - src/codat_sync_for_expenses/models/operations/refresh_data_type.py - - src/codat_sync_for_expenses/models/operations/set_company_configuration.py - - src/codat_sync_for_expenses/models/operations/unlink_connection.py - - src/codat_sync_for_expenses/models/operations/update_company.py - - src/codat_sync_for_expenses/models/operations/update_customer.py - - src/codat_sync_for_expenses/models/operations/update_expense_transaction.py - - src/codat_sync_for_expenses/models/operations/update_reimbursable_expense_transaction.py - - src/codat_sync_for_expenses/models/operations/update_supplier.py - - src/codat_sync_for_expenses/models/operations/upload_expense_attachment.py - - src/codat_sync_for_expenses/models/shared/__init__.py - - src/codat_sync_for_expenses/models/shared/accountingaddresstype.py - - src/codat_sync_for_expenses/models/shared/accountmappinginfo.py - - src/codat_sync_for_expenses/models/shared/accountprototype.py - - src/codat_sync_for_expenses/models/shared/accountstatus.py - - src/codat_sync_for_expenses/models/shared/accounttype.py - - src/codat_sync_for_expenses/models/shared/adjustmenttransactionline.py - - src/codat_sync_for_expenses/models/shared/adjustmenttransactionrequest.py - - src/codat_sync_for_expenses/models/shared/adjustmenttransactionresponse.py - - src/codat_sync_for_expenses/models/shared/apaccountref.py - - src/codat_sync_for_expenses/models/shared/attachment.py - - src/codat_sync_for_expenses/models/shared/attachmentupload.py - - src/codat_sync_for_expenses/models/shared/bankaccount.py - - src/codat_sync_for_expenses/models/shared/bankaccountdetails.py - - src/codat_sync_for_expenses/models/shared/bankaccountstatus.py - - src/codat_sync_for_expenses/models/shared/clientratelimitreachedwebhook.py - - src/codat_sync_for_expenses/models/shared/clientratelimitreachedwebhookdata.py - - src/codat_sync_for_expenses/models/shared/clientratelimitresetwebhook.py - - src/codat_sync_for_expenses/models/shared/clientratelimitresetwebhookdata.py - - src/codat_sync_for_expenses/models/shared/clientratelimitwebhook.py - - src/codat_sync_for_expenses/models/shared/clientratelimitwebhookpayload.py - - src/codat_sync_for_expenses/models/shared/codatfile.py - - src/codat_sync_for_expenses/models/shared/companies.py - - src/codat_sync_for_expenses/models/shared/company.py - - src/codat_sync_for_expenses/models/shared/companyconfiguration.py - - src/codat_sync_for_expenses/models/shared/companyinformation.py - - src/codat_sync_for_expenses/models/shared/companyreference.py - - src/codat_sync_for_expenses/models/shared/companyrequestbody.py - - src/codat_sync_for_expenses/models/shared/companysyncstatus.py - - src/codat_sync_for_expenses/models/shared/connection.py - - src/codat_sync_for_expenses/models/shared/connections.py - - src/codat_sync_for_expenses/models/shared/contact.py - - src/codat_sync_for_expenses/models/shared/createaccountresponse.py - - src/codat_sync_for_expenses/models/shared/createbankaccountresponse.py - - src/codat_sync_for_expenses/models/shared/createcustomerresponse.py - - src/codat_sync_for_expenses/models/shared/createexpenseresponse.py - - src/codat_sync_for_expenses/models/shared/createreimbursableexpenseresponse.py - - src/codat_sync_for_expenses/models/shared/createsupplierresponse.py - - src/codat_sync_for_expenses/models/shared/customer.py - - src/codat_sync_for_expenses/models/shared/customerdetails.py - - src/codat_sync_for_expenses/models/shared/customers.py - - src/codat_sync_for_expenses/models/shared/customerstatus.py - - src/codat_sync_for_expenses/models/shared/dataconnectionerror.py - - src/codat_sync_for_expenses/models/shared/dataconnectionstatus.py - - src/codat_sync_for_expenses/models/shared/datastatus.py - - src/codat_sync_for_expenses/models/shared/datatype.py - - src/codat_sync_for_expenses/models/shared/errorvalidation.py - - src/codat_sync_for_expenses/models/shared/errorvalidationitem.py - - src/codat_sync_for_expenses/models/shared/expensecontactref.py - - src/codat_sync_for_expenses/models/shared/expensessyncwebhook.py - - src/codat_sync_for_expenses/models/shared/expensessyncwebhookpayload.py - - src/codat_sync_for_expenses/models/shared/expensetransaction.py - - src/codat_sync_for_expenses/models/shared/expensetransactionline.py - - src/codat_sync_for_expenses/models/shared/halref.py - - src/codat_sync_for_expenses/models/shared/integrationtype.py - - src/codat_sync_for_expenses/models/shared/invoiceto.py - - src/codat_sync_for_expenses/models/shared/itemref.py - - src/codat_sync_for_expenses/models/shared/items.py - - src/codat_sync_for_expenses/models/shared/links.py - - src/codat_sync_for_expenses/models/shared/mappingoptions.py - - src/codat_sync_for_expenses/models/shared/metadata.py - - src/codat_sync_for_expenses/models/shared/phonenumber_items.py - - src/codat_sync_for_expenses/models/shared/phonenumbertype.py - - src/codat_sync_for_expenses/models/shared/pulloperation.py - - src/codat_sync_for_expenses/models/shared/pulloperations.py - - src/codat_sync_for_expenses/models/shared/pushchangetype.py - - src/codat_sync_for_expenses/models/shared/pushfieldvalidation.py - - src/codat_sync_for_expenses/models/shared/pushoperation.py - - src/codat_sync_for_expenses/models/shared/pushoperationchange.py - - src/codat_sync_for_expenses/models/shared/pushoperationref.py - - src/codat_sync_for_expenses/models/shared/pushoperations.py - - src/codat_sync_for_expenses/models/shared/pushoperationstatus.py - - src/codat_sync_for_expenses/models/shared/pushoption.py - - src/codat_sync_for_expenses/models/shared/pushoptionchoice.py - - src/codat_sync_for_expenses/models/shared/pushoptionproperty.py - - src/codat_sync_for_expenses/models/shared/pushoptiontype.py - - src/codat_sync_for_expenses/models/shared/pushvalidationinfo.py - - src/codat_sync_for_expenses/models/shared/recordref.py - - src/codat_sync_for_expenses/models/shared/reimbursableexpensetransaction.py - - src/codat_sync_for_expenses/models/shared/reimbursableexpensetransactionline.py - - src/codat_sync_for_expenses/models/shared/reimbursementcontactref.py - - src/codat_sync_for_expenses/models/shared/schema_datatype.py - - src/codat_sync_for_expenses/models/shared/schema_transaction.py - - src/codat_sync_for_expenses/models/shared/security.py - - src/codat_sync_for_expenses/models/shared/status.py - - src/codat_sync_for_expenses/models/shared/supplementaldata.py - - src/codat_sync_for_expenses/models/shared/supplier.py - - src/codat_sync_for_expenses/models/shared/supplierdetails.py - - src/codat_sync_for_expenses/models/shared/suppliers.py - - src/codat_sync_for_expenses/models/shared/supplierstatus.py - - src/codat_sync_for_expenses/models/shared/synccompletewebhook.py - - src/codat_sync_for_expenses/models/shared/synccompletewebhookdata.py - - src/codat_sync_for_expenses/models/shared/syncfailedwebhook.py - - src/codat_sync_for_expenses/models/shared/syncfailedwebhookdata.py - - src/codat_sync_for_expenses/models/shared/taxratemappinginfo.py - - src/codat_sync_for_expenses/models/shared/trackingcategorymappinginfo.py - - src/codat_sync_for_expenses/models/shared/trackingref.py - - src/codat_sync_for_expenses/models/shared/trackingrefadjustmenttransaction.py - - src/codat_sync_for_expenses/models/shared/transaction.py - - src/codat_sync_for_expenses/models/shared/transactions.py - - src/codat_sync_for_expenses/models/shared/transactionstatus.py - - src/codat_sync_for_expenses/models/shared/transfertransactionrequest.py - - src/codat_sync_for_expenses/models/shared/transfertransactionresponse.py - - src/codat_sync_for_expenses/models/shared/updatecustomerresponse.py - - src/codat_sync_for_expenses/models/shared/updateexpenserequest.py - - src/codat_sync_for_expenses/models/shared/updateexpenseresponse.py - - src/codat_sync_for_expenses/models/shared/updatereimbursableexpensetransactionrequest.py - - src/codat_sync_for_expenses/models/shared/updatesupplierresponse.py - - src/codat_sync_for_expenses/models/shared/validation.py - - src/codat_sync_for_expenses/models/shared/validationitem.py - - src/codat_sync_for_expenses/models/shared/validfor.py - - src/codat_sync_for_expenses/models/shared/validtransactiontypes.py - - src/codat_sync_for_expenses/push_operations.py - - src/codat_sync_for_expenses/py.typed - - src/codat_sync_for_expenses/reimbursements.py - - src/codat_sync_for_expenses/sdk.py - - src/codat_sync_for_expenses/sdkconfiguration.py - - src/codat_sync_for_expenses/suppliers.py - - src/codat_sync_for_expenses/sync.py - - src/codat_sync_for_expenses/transaction_status.py - - src/codat_sync_for_expenses/transfers.py - - src/codat_sync_for_expenses/types/__init__.py - - src/codat_sync_for_expenses/types/basemodel.py - - src/codat_sync_for_expenses/utils/__init__.py - - src/codat_sync_for_expenses/utils/annotations.py - - src/codat_sync_for_expenses/utils/enums.py - - src/codat_sync_for_expenses/utils/eventstreaming.py - - src/codat_sync_for_expenses/utils/forms.py - - src/codat_sync_for_expenses/utils/headers.py - - src/codat_sync_for_expenses/utils/logger.py - - src/codat_sync_for_expenses/utils/metadata.py - - src/codat_sync_for_expenses/utils/queryparams.py - - src/codat_sync_for_expenses/utils/requestbodies.py - - src/codat_sync_for_expenses/utils/retries.py - - src/codat_sync_for_expenses/utils/security.py - - src/codat_sync_for_expenses/utils/serializers.py - - src/codat_sync_for_expenses/utils/url.py - - src/codat_sync_for_expenses/utils/values.py +trackedFiles: + .gitattributes: + id: 24139dae6567 + last_write_checksum: sha1:53134de3ada576f37c22276901e1b5b6d85cd2da + pristine_git_object: 4d75d59008e4d8609876d263419a9dc56c8d6f3a + .vscode/settings.json: + id: 89aa447020cd + last_write_checksum: sha1:f84632c81029fcdda8c3b0c768d02b836fc80526 + pristine_git_object: 8d79f0abb72526f1fb34a4c03e5bba612c6ba2ae + USAGE.md: + id: 3aed33ce6e6f + last_write_checksum: sha1:0fa6263220552124b641608bb63abaa9f7ba67f0 + pristine_git_object: 57a78c03228d28f3e69902f9c92ac625cffa7be4 + docs/models/errors/errormessage.md: + id: 4d5230d16c88 + last_write_checksum: sha1:faa31b6b66d35ee6354f7a67b3b8dd67209d57e4 + pristine_git_object: c24cd9accf0bfe09f8b060677e156b2ea3e241b8 + docs/models/operations/createaccountrequest.md: + id: 4bd6ef0c782f + last_write_checksum: sha1:13398f8059d22652689d131a43313ab631064314 + pristine_git_object: f8733acf404e523efdc3c12400c0cf979b0dedc6 + docs/models/operations/createadjustmenttransactionrequest.md: + id: 027ad9cde135 + last_write_checksum: sha1:ff766471c76e09fc8b41f42fe806b29b9d04cf2a + pristine_git_object: 4fb25bd35b9a9830940c836274c825a3a682150d + docs/models/operations/createbankaccountrequest.md: + id: 02f431df4335 + last_write_checksum: sha1:c1af569347e296c79ec880cce869e708f1d969ce + pristine_git_object: 0d433a076135c0bd0d40af4d771d4f6b2d6e1779 + docs/models/operations/createconnectionrequest.md: + id: e9d604e527c2 + last_write_checksum: sha1:259948ead837f84e136df199757950f6dac3a38d + pristine_git_object: 0998495bf27065bac0589c69147105eebbb92c5a + docs/models/operations/createconnectionrequestbody.md: + id: 8495a5169d38 + last_write_checksum: sha1:ffadef3b76218e7de44fa85abf4ebbeee34498c8 + pristine_git_object: 891314d08a8c421f5bbf7620adb2330f0989ca56 + docs/models/operations/createcustomerrequest.md: + id: c3734eb8b76d + last_write_checksum: sha1:8a2319bd4f03fe01051f8bf140a09292000e5dee + pristine_git_object: 46669ae4a83ad3b1609310fcc924d0757e295f21 + docs/models/operations/createexpensetransactionrequest.md: + id: f77480a846a0 + last_write_checksum: sha1:8f9b0e3ab6694df0560ca9edae601a4cf38a3d71 + pristine_git_object: 34338390a2d61f09405e8f4d808c9e56d691f3c8 + docs/models/operations/createpartnerexpenseconnectionrequest.md: + id: 7a0b03eae3f5 + last_write_checksum: sha1:278b35131840e03258b98e0e3909fa47338a7406 + pristine_git_object: d1793f934ad1269ff064a452c06747971c85786e + docs/models/operations/createreimbursableexpensetransactionrequest.md: + id: 9aaa5c8cf974 + last_write_checksum: sha1:0fa923d3ad9df789333b4646602e6175d0cb1484 + pristine_git_object: 7201650d935997d41989da98d653dd755261a8d7 + docs/models/operations/createsupplierrequest.md: + id: 7cee9988969a + last_write_checksum: sha1:96b07c2c9800fe309dee4f898f21374357d7a369 + pristine_git_object: 914b9f20ea93d0599598c69eae2a524c9d6270cb + docs/models/operations/createtransfertransactionrequest.md: + id: f8ff17ca39ef + last_write_checksum: sha1:835fa67abd87bf244172317edc189c581958be18 + pristine_git_object: cd1574e9990f78a9bdc5cc7715299724b259eac4 + docs/models/operations/deletecompanyrequest.md: + id: 9bc77c024acd + last_write_checksum: sha1:811626e298388a197f3f7fd5259323343b6df0bd + pristine_git_object: 338ee40e5c1fcf34581e351eb61ceaf43fa83e21 + docs/models/operations/deleteconnectionrequest.md: + id: 7524c534e204 + last_write_checksum: sha1:38374b09889ade73ae3ea9976586e56ad75cc13c + pristine_git_object: 9650dc387d5e9833a246e673b7f5b2b2f3b4bf27 + docs/models/operations/getcompanyconfigurationrequest.md: + id: 86e0b48abfb6 + last_write_checksum: sha1:e4b7eff98d42d23c8ad4c14d97e3ed6155b53bc5 + pristine_git_object: a5b1fe78400c626ee541fe523a27467536a69f79 + docs/models/operations/getcompanyinforequest.md: + id: af29b32c6c26 + last_write_checksum: sha1:2941a897fba609d7b3a83f06aa74c6169b5b1412 + pristine_git_object: bd218de01a1e8d0991fc4971672bc6dce13b3e2a + docs/models/operations/getcompanyrequest.md: + id: ebdeba1bae07 + last_write_checksum: sha1:6483770af67645c56f1c2c444154ccb545a93f56 + pristine_git_object: 240b811b65ffaad0a074a2e2bb184681031157a8 + docs/models/operations/getconnectionrequest.md: + id: ead07ee6aac0 + last_write_checksum: sha1:5264cca686dceade941ca0a5471d7366ea5f95c5 + pristine_git_object: 6e9f3d18b84f18e668276fbfcb4f955fb1261b1c + docs/models/operations/getcreatebankaccountsmodelrequest.md: + id: 51a2b83ef47f + last_write_checksum: sha1:af8e4d3ff11f31f926f35373d5250feb2d6c8f9b + pristine_git_object: a45e1bb79239db3b0549df9e1e984ec94ed6e2fd + docs/models/operations/getcreatechartofaccountsmodelrequest.md: + id: cb5ac9a4be9b + last_write_checksum: sha1:410d471490ef134420843bd8d67b8f483fe5f1fc + pristine_git_object: 11af40316ac2e0c20c048d0558b9d70c626f2950 + docs/models/operations/getcustomerrequest.md: + id: 2c25d8b5c423 + last_write_checksum: sha1:dea20e9e2267e777be23a7811874bec53ab04d1d + pristine_git_object: 7f0aa4a75de5a444d9d6dc5f704162a71f1c17a6 + docs/models/operations/getdatastatusdatastatuses.md: + id: a7ff21abf4b8 + last_write_checksum: sha1:bf1c7c444db0c1bf4375d77b1bf0df6607bbff7d + pristine_git_object: f3e954e3c0d65f7aaa49e08aa1f9eb4be450b0af + docs/models/operations/getdatastatusrequest.md: + id: 8d83e286dd53 + last_write_checksum: sha1:fd9ed32d26be02bdeb8bfc920dd8d8a290c82119 + pristine_git_object: 12c2e50b63ad894010060643714684afcb29e9b3 + docs/models/operations/getlastsuccessfulsyncrequest.md: + id: 9bfe72b53c7c + last_write_checksum: sha1:b31817b911290819b6e9958bd0776585e3a23c6f + pristine_git_object: 9963e44ed3d9031a7f88d23424faafa72c798de8 + docs/models/operations/getlatestsyncrequest.md: + id: 0ee4f2661950 + last_write_checksum: sha1:5795d954b61fafa5ba5477814fbb3e83a44af85b + pristine_git_object: a3bf4745ad43966af431507cb46929e73edd4411 + docs/models/operations/getmappingoptionsrequest.md: + id: f42fd1a44414 + last_write_checksum: sha1:2a53a97d3ec4de405fd02505a33db0cde4ab75fc + pristine_git_object: ee9e961013e15f0d30b528f8e11307ca1d6a2c93 + docs/models/operations/getpulloperationrequest.md: + id: d7e2f966d911 + last_write_checksum: sha1:7e318f704c273e99da94af7282cb8a014b41e1a2 + pristine_git_object: d2382bd6c73d0bf953a96b0702071cbfe38b77e8 + docs/models/operations/getpushoperationrequest.md: + id: 17c55623254e + last_write_checksum: sha1:d89e15613dac685b730647ac91eff21b7dde1c4a + pristine_git_object: d667790b5158a8abda5ecd44ff7ecb86ebf7e0ae + docs/models/operations/getsupplierrequest.md: + id: c4f9c57504ab + last_write_checksum: sha1:7720b829c5589841950d78d4be41320bfd2bf209 + pristine_git_object: b7f4e35f1fedf13abdd9c428e465077d62f75905 + docs/models/operations/getsyncbyidrequest.md: + id: 55c54290757d + last_write_checksum: sha1:a9efe063fc00f33a5d437632be91688e3599939f + pristine_git_object: 3de850e2b71c83c44efca043ea2354bf63ecf69f + docs/models/operations/getsynctransactionrequest.md: + id: 6eb0988f37ef + last_write_checksum: sha1:bb9a3439ebc41104b9bd1859a71e355ad279f86c + pristine_git_object: d5075762f71f6b2474bedb773840f43572a9c9bf + docs/models/operations/listcompaniesrequest.md: + id: 4020e616e068 + last_write_checksum: sha1:0ad2e773db263edc53a8a0d6a9f5e114eade47cd + pristine_git_object: 25cc480a037b96d2394d0e60d0b7a5661e76a5f7 + docs/models/operations/listconnectionsrequest.md: + id: 8ba0b147f0cd + last_write_checksum: sha1:0df2748e376f3983732731f2e1f310e180e1568b + pristine_git_object: 949d3e3b64d036260dccdda3132bd4bca76f1548 + docs/models/operations/listcustomersrequest.md: + id: 14ff269ba0f9 + last_write_checksum: sha1:7e1ffca9cca46c6b68f8502be248e9370c429116 + pristine_git_object: 8b6276cb488da284e792dad28967c1ebffe5904d + docs/models/operations/listpulloperationsrequest.md: + id: 8290fd876f84 + last_write_checksum: sha1:6f3c0773caedb5b881a505b29ef7109e2ebbd965 + pristine_git_object: 90a05e6425c2efb6d8c997315c2857b163089537 + docs/models/operations/listpushoperationsrequest.md: + id: 674bd09bd0c0 + last_write_checksum: sha1:bd8babe661dc2703e59bb071adadbdaff143f064 + pristine_git_object: 68a41042d9e7b7ae28adaaece827f6b01e2afad4 + docs/models/operations/listsuppliersrequest.md: + id: 5639fa018695 + last_write_checksum: sha1:6198db88d3dd97d735320033f7ad538ea8e0ec22 + pristine_git_object: 0590ff1a1ef6cec91766e7a585c763b8604dc9a9 + docs/models/operations/listsyncsrequest.md: + id: 899fb3f111ba + last_write_checksum: sha1:d402c13e694730d44d767b79edd6b82c8187b85f + pristine_git_object: 5bf61df8ef78b6560ece99ffbe20c87f130efc14 + docs/models/operations/listsynctransactionsrequest.md: + id: aa2b235a25ce + last_write_checksum: sha1:fb8dd9fc27d33742e263d048576173d1e7221c61 + pristine_git_object: 3293bbae1dfb6f244d0ac780c5dad825ee81a0a6 + docs/models/operations/refreshalldatatypesrequest.md: + id: 28ca918d4c88 + last_write_checksum: sha1:029044beecde867a1fe514b112cebad40e5068fa + pristine_git_object: ea381e387b03094b9d96cee53565a5fa73a998e0 + docs/models/operations/refreshdatatyperequest.md: + id: 72ccf7280b0f + last_write_checksum: sha1:7ffb70a7598e22eb3c4c058647cd7f236807d68c + pristine_git_object: 1047c2228724d38b6a37ee13d122e6fa0db7ee01 + docs/models/operations/replacecompanyrequest.md: + id: d8590cda3149 + last_write_checksum: sha1:948b7af184daff21c77ad99defdd3136e8f04063 + pristine_git_object: cde3d20e38e68f94ba77129073cf3b5ce2cd4f53 + docs/models/operations/setcompanyconfigurationrequest.md: + id: d5b5fb2c7bb1 + last_write_checksum: sha1:f74b495cbfd485cdc63e3cb0681e159f613805c0 + pristine_git_object: 1afe2e73fd03d12bf678abc9d2436ecb95de0345 + docs/models/operations/unlinkconnectionrequest.md: + id: 9b4ac9e3b796 + last_write_checksum: sha1:21ffe0670e0ff874ce312a6d0c1842aff6976474 + pristine_git_object: 37c72c7bc239123a5e567c130dbac1d007e6e80e + docs/models/operations/unlinkconnectionupdateconnection.md: + id: 0cf08370c07c + last_write_checksum: sha1:67b74154047ab22efda9f8ab140190c84bd4f284 + pristine_git_object: 5a5f2911b77fc950faa35700eedf274f69a4937a + docs/models/operations/updatecompanyrequest.md: + id: 8d0c2e6362d6 + last_write_checksum: sha1:bd676ce020c0beebeb35966ee92db75024ea7ffc + pristine_git_object: 47802c383327c21b0566ef4405c442fdf7448255 + docs/models/operations/updatecustomerrequest.md: + id: f101533d0565 + last_write_checksum: sha1:07d4359123078788c6c66ff15bd3cf678787186a + pristine_git_object: ecdd8a1aa51462729c4ad3e183d7857436a558db + docs/models/operations/updateexpensetransactionrequest.md: + id: 7ac094e110f9 + last_write_checksum: sha1:8999fa95ede9af324d8ed7ad922647a08cf59bfc + pristine_git_object: 44a52487cc5c709a12dc3f0007baee9579831503 + docs/models/operations/updatereimbursableexpensetransactionrequest.md: + id: e974a270920a + last_write_checksum: sha1:f99b3ed500f752dc9195a8c4102ca7b0cccb6f50 + pristine_git_object: 8f89b39456e065b6833107562233f3810a39815d + docs/models/operations/updatesupplierrequest.md: + id: b7f6cf235793 + last_write_checksum: sha1:1472216a9a1436053c3e1b9fa99557311f9559a3 + pristine_git_object: c8d3266f8af3c4ecff5fe5b55b1c9223d9e8d020 + docs/models/operations/uploadexpenseattachmentrequest.md: + id: aea23ca7eb7d + last_write_checksum: sha1:1b12264c517c4df5ca2a8cf4a5f0ae6ec8ce2637 + pristine_git_object: 747fb2886b572541a3e7ea59aadbadcd71951827 + docs/models/shared/accountingaccount.md: + id: fd0c3d6b8a26 + last_write_checksum: sha1:a9e158ce1e88327bc3cda282ab8fbd2a98861ee1 + pristine_git_object: ad4be6caef0dec1d2af5ae8986ef90308983c34a + docs/models/shared/accountingaddress.md: + id: c910548ed6a2 + last_write_checksum: sha1:43680b051f23240be2a4a68280a4e52f0fbeb4bc + pristine_git_object: 25c7e6e6ce98c10fcf778aa0bf0835c80fd66880 + docs/models/shared/accountingaddresstype.md: + id: ce36d485f0cc + last_write_checksum: sha1:aefadfa783d2ea538ed10b02c76607b5cbd6629c + pristine_git_object: 28e84404ed7a8d528bcaca62a110a9df0100fdfc + docs/models/shared/accountingbankaccount.md: + id: 60e06574e55b + last_write_checksum: sha1:b19cb80f482951067532e76879b271228c11a941 + pristine_git_object: 456f3800539794274d2b5b115c7949959bf93e45 + docs/models/shared/accountingcustomer.md: + id: 7ac0ea953bcc + last_write_checksum: sha1:19cab2e6873bd33430bc0d75c7c3353150e711e0 + pristine_git_object: 91aac80644512b09ca3c915634b9787e080c9f90 + docs/models/shared/accountingsupplier.md: + id: 0b37b081024f + last_write_checksum: sha1:81c6175a6bce4d905e5b09ef202b6500c08ef5f8 + pristine_git_object: d0ef2eeb65b38e70249007cc51b3454be38a24b5 + docs/models/shared/accountmappinginfo.md: + id: 46f151fc037f + last_write_checksum: sha1:5b23108dc9715b61026e4597b2565be5c2f6978d + pristine_git_object: 9f9808346e02f3db082fe64cde7f9d151d6d5dd0 + docs/models/shared/accountmappinginfoaccounttype.md: + id: 19dd5e9bfe91 + last_write_checksum: sha1:829127d108b3680fea8ee1818e3b4af11429845a + pristine_git_object: ef9375435f55c38588b7ca1ed4107deed1800207 + docs/models/shared/accountprototype.md: + id: 8a2ea830c41c + last_write_checksum: sha1:2087ff342e72a4667f3d905cd1e3db03c8a5d8db + pristine_git_object: 69221bd5d171bcd5ffd31acf4e51556401f21493 + docs/models/shared/accountreference.md: + id: e3eedac5a82f + last_write_checksum: sha1:0ab2411362b66dfa357a855f52948718137f5767 + pristine_git_object: 227c434449e2edbb75f1cd015803cc410ee1a88b + docs/models/shared/accountstatus.md: + id: 4cde87c0bb51 + last_write_checksum: sha1:32e14060e117aaedc09ed41fda4d56a76f4f7f97 + pristine_git_object: 829cd124d5c13e4e58264d0db210dc884ff68d3c + docs/models/shared/accounttype.md: + id: 5910e7f6c1bd + last_write_checksum: sha1:2498891fcbd61c03536628b23138670a0692b86a + pristine_git_object: 9885b254fe4399f56960e9361a1e5736ab93fd5f + docs/models/shared/adjustmenttransactionline.md: + id: 3917514b5def + last_write_checksum: sha1:3b6fb7325e157e68bcaacff53d366b2cc96bf71d + pristine_git_object: 74acaa0f6053f7e3749aaac9978c1d8948fa655d + docs/models/shared/adjustmenttransactionrequest.md: + id: dbaa3adbf87c + last_write_checksum: sha1:35fa9a4bec05e4699d2d95b504dea06fad850226 + pristine_git_object: ca09716bf3968b5b385fd4357a2002d92b069f9a + docs/models/shared/adjustmenttransactionresponse.md: + id: 036ffea6123b + last_write_checksum: sha1:54c5f1fc8f022ffc03a7e691690afdd0895aa27b + pristine_git_object: 9f2fce3ad67300f7f4ca001f0b088a5dfb40967a + docs/models/shared/apaccountref.md: + id: 081bee46fd7b + last_write_checksum: sha1:d7267e1bd98a22135427a68a6d2ab7fc1d86c85b + pristine_git_object: bcc81692d8bac1c2175b6a75d492ca6b538e0ed6 + docs/models/shared/attachment.md: + id: 3e31336af04a + last_write_checksum: sha1:7ec6cc44aeb8c2a978a3fe87b8a400043147c173 + pristine_git_object: 1248b8574616d30144761880b03cef9411abdf83 + docs/models/shared/attachmentupload.md: + id: 6d86ca5f45ce + last_write_checksum: sha1:c5d955cc17e8cf27f15812400ecff8c67862224b + pristine_git_object: 02d7ac41a576611cd15c7591d540d4da02f158e9 + docs/models/shared/bankaccount.md: + id: 33bf0def5f28 + last_write_checksum: sha1:2662154e99769a7e301a053e7702f3311f7b6062 + pristine_git_object: e47a40d27388efa9ae7c3f8df8939d2a9c3a4946 + docs/models/shared/bankaccountdetails.md: + id: d1acf08dec3f + last_write_checksum: sha1:6b60b9fa6debce736ee85758d8c3d2be72a42954 + pristine_git_object: 3501548d527b71291a471e0e88981fb854e65624 + docs/models/shared/bankaccountreference.md: + id: 03eb258f01d6 + last_write_checksum: sha1:0a96f3e0897a5c73f8a0af1a093188ae51665526 + pristine_git_object: 9e4e2473de2586f2122f68fd3b5dcbfb87cbb354 + docs/models/shared/bankaccountstatus.md: + id: 021a83bbf7b9 + last_write_checksum: sha1:f70728d430a58928a64cc0731479c7338cee887f + pristine_git_object: b87e4763f9e7307553c84d9743ead1891aa4e757 + docs/models/shared/bankaccounttype.md: + id: 9b7d8afc1f13 + last_write_checksum: sha1:7ed02f56736479bb39fea7be62d898412eab3b0b + pristine_git_object: 60adff60ef5b72533ef73e9c7d83cf49ee811539 + docs/models/shared/clientratelimitwebhook.md: + id: b22baadb776e + last_write_checksum: sha1:049b54e572a11e8bcbcfbcd16352615227c81b63 + pristine_git_object: 36e2030f07808c0cefa46f69cae63fe802c91dc1 + docs/models/shared/clientratelimitwebhookpayload.md: + id: acee7ef96850 + last_write_checksum: sha1:56cbee8de88ee607ca24fbc79ca0e65ca7d0411f + pristine_git_object: 41b82096c42a6d74716c17054b5e3786ea280734 + docs/models/shared/codatfile.md: + id: 91427b129f50 + last_write_checksum: sha1:49c13c8aeb4ea4651529ca3ce8a03c84b9ea09f4 + pristine_git_object: 07b4ca48cd26a2b24b1a74d0abb00aa939f57310 + docs/models/shared/companies.md: + id: 2572802991c0 + last_write_checksum: sha1:8658a535c4c4a001cb6423adaa50070c18d4e86b + pristine_git_object: 670c41db2a643c9f5afa020d9ff63268b12050a6 + docs/models/shared/company.md: + id: a20db760623e + last_write_checksum: sha1:dc199e4ab2a1d5f39be3fcc915c491e317e47fe1 + pristine_git_object: 1d19987edb03641164e2ea389d40ee0152fccd93 + docs/models/shared/companyconfiguration.md: + id: ad371558c834 + last_write_checksum: sha1:980f018edeeb8e1a4bed659f10c2f05815146590 + pristine_git_object: 00c9598fb8146c27b7d5a4581b2ab9825c9a8dd6 + docs/models/shared/companyinformation.md: + id: 90a8665c65f4 + last_write_checksum: sha1:61460754c1b475080bf3656354a56bce718fd762 + pristine_git_object: 0b027bf679ba1f8e7f73ea7cc7bd3d1f16383ffd + docs/models/shared/companyinformationschemastype.md: + id: 1be7feb2320f + last_write_checksum: sha1:96fd928440f51bff37bda1bbb34e42bd7059db75 + pristine_git_object: 89193e999104f83357574c8b52849c52fc3189ce + docs/models/shared/companyinformationtype.md: + id: 4745039fb9c3 + last_write_checksum: sha1:9310f00b20fe1218722159f84c537b1d0ad5ebaa + pristine_git_object: 5fe0b49ca1321d162e3a701e92aef149356937f8 + docs/models/shared/companyreference.md: + id: 04b06c6e3636 + last_write_checksum: sha1:a6d8ecbde0d50bd0b8a6dbbc5d74de123bcc573e + pristine_git_object: b651f69d50975bd3a4c6e5db163cc2823c19188a + docs/models/shared/companyreferencelinks.md: + id: d56fc1d93399 + last_write_checksum: sha1:0dbd8353289b35519ca7e01742fb90ef1c79a31a + pristine_git_object: ee01fd3203f2bf056837004cc333f8216673c1a6 + docs/models/shared/companyrequestbody.md: + id: 9fdfac9f00ff + last_write_checksum: sha1:23f4f7add7474144a390a9516b143b170005b32c + pristine_git_object: 3ae35b3c79ff38aeb2208c73d6bb9a217ff3915d + docs/models/shared/companysyncstatus.md: + id: a5ab0de42ed1 + last_write_checksum: sha1:1c45db3a6c416792c24261b53bf880a4f2e53319 + pristine_git_object: 8c66b8b9fb6c5da51d4aedfdd7a624ca60fd1d80 + docs/models/shared/companyupdaterequest.md: + id: 66e1d94296e1 + last_write_checksum: sha1:824dffb3ef34f3e26f11c5fe7e0bf4b321dbc994 + pristine_git_object: c79edb11bd2ca64d886d93cb120d12da03228300 + docs/models/shared/connection.md: + id: 906ff4b2d85c + last_write_checksum: sha1:fff47ac387831f68ff55601894c3fcc54117de63 + pristine_git_object: 108eb913c296dbb0b3b3363f54f8728dc81004f1 + docs/models/shared/connections.md: + id: f1fe5197905a + last_write_checksum: sha1:4b2bee44d11f447b172efd1f9173e9dc635bf06c + pristine_git_object: 69b3bdc2cf2234b41f31aa3e352a701b58202ba9 + docs/models/shared/contact.md: + id: 0c0137984e06 + last_write_checksum: sha1:51584ede8c25d6468b85011dc50c1db53c2168de + pristine_git_object: 2be9860ceacf66f178442050182376f0fc08128f + docs/models/shared/createaccountresponse.md: + id: c82c4df143bb + last_write_checksum: sha1:d0bc5d8b8ce372c6a4e6c06fbe72e62314814302 + pristine_git_object: a910294dce21a081e8d71098f1465dadf9ffe696 + docs/models/shared/createaccountresponsemetadata.md: + id: b93b7bd3c661 + last_write_checksum: sha1:c0b41c432aadd91d39a5b4485d627dc48f76246e + pristine_git_object: 33f612f3f3f824fbee8fea1cf702cdd3eccc0b2d + docs/models/shared/createaccountresponsevaliddatatypelinks.md: + id: df3c1e174747 + last_write_checksum: sha1:64bdb36854764e7ae53e9db6877ca11a4195d2c0 + pristine_git_object: 00f6b195fe3631072b5ecc187ca00d5ae729226a + docs/models/shared/createbankaccountresponse.md: + id: f18025333e5a + last_write_checksum: sha1:f4e27cef54b3d18a8888cf12c47395208df438f0 + pristine_git_object: 253e20888dcc83619667d598c5df1f46c9d2782b + docs/models/shared/createbankaccountresponsebankaccounttype.md: + id: 6c9757a50cc7 + last_write_checksum: sha1:d4afe962136a90efe97869a609b023182f16ba13 + pristine_git_object: fd4de5286f51d0d0868635b1138e2ce8fd5b063b + docs/models/shared/createcustomerresponse.md: + id: b515e3ec4c94 + last_write_checksum: sha1:5eb2d667797ff23cd0e45535577130df56b75852 + pristine_git_object: 7bcb27ed063082f8a38fe51588b1b96692c95c2f + docs/models/shared/createexpenseresponse.md: + id: 8e80dc7bee63 + last_write_checksum: sha1:adbeb7ed676adb38df469ae624284ee0f3760435 + pristine_git_object: 7a5d81b0812c7a5822b2feef2b26a8f9206bf4e1 + docs/models/shared/createreimbursableexpenseresponse.md: + id: 926a4f9f38d9 + last_write_checksum: sha1:fbb964573b2eef368ff62996971471646598fb95 + pristine_git_object: 437f5a2d36015fc19b8fa2ac91c37d6b5db58370 + docs/models/shared/createsupplierresponse.md: + id: 4d7c3bbf679a + last_write_checksum: sha1:0bc3cd0fe583ef60060746e145f8c454ca2ec08e + pristine_git_object: 14914734bca00d0b749a970902f8762940be96c8 + docs/models/shared/customer.md: + id: 7800920b0562 + last_write_checksum: sha1:2ecbc289b53d6c4ec417323a06c6ff10b1659d41 + pristine_git_object: c82c028967bdb74f17d181127962427c65bccd58 + docs/models/shared/customerdetails.md: + id: ec3f4b4d2ff3 + last_write_checksum: sha1:983eb04ce53187bd7967da731a4d8dea8c96dba3 + pristine_git_object: a9f2451b9439c8cc32a74bda9fb109ff4ddf4f2f + docs/models/shared/customers.md: + id: 412eac4505c3 + last_write_checksum: sha1:ff218968f5282f7e1d8372c26705188adb58652e + pristine_git_object: 5ebaa24c1a9563b0a7436e18c93dcea9cebd51d3 + docs/models/shared/customerstatus.md: + id: 0584ae9ca860 + last_write_checksum: sha1:78ac05dd23c0ed585d40e4e29db5be3e403134c0 + pristine_git_object: a4cdc76a68ac2112e914cb34534833f572348aa4 + docs/models/shared/dataconnectionerror.md: + id: 0fcd3ffd993d + last_write_checksum: sha1:6cc5a3fee80352ff4d78960823c0d906bebf3424 + pristine_git_object: 33b5234772b24557caf11700650c5a6f6106f835 + docs/models/shared/dataconnectionstatus.md: + id: 4703bf7d9519 + last_write_checksum: sha1:9b4ffcd2adbac4d6bbd6ea673f65c1274a265f6d + pristine_git_object: 813579bf0856eb68c5ddaedd55972d171f57f51a + docs/models/shared/datasetstatus.md: + id: cd5f541b33d1 + last_write_checksum: sha1:356d875f7a77148018870ecdb54cfec034560fc0 + pristine_git_object: 40804df7e9cf13f3e363b40a88da1931e6e3d3cf + docs/models/shared/datastatus.md: + id: 2c8b773421ad + last_write_checksum: sha1:ac9002eef1b8cff60fe4ee3bb6880be7810ad11a + pristine_git_object: c89b472449a640cd583bc7cd38201cc348a8c810 + docs/models/shared/datatype.md: + id: b71835d2a72b + last_write_checksum: sha1:55371b6cd2eb542f2537e89fb5c46e760b97251c + pristine_git_object: 2f337d67b0265cf52ba81da853903bdc6167e842 + docs/models/shared/datatypes.md: + id: b5d33c366d5b + last_write_checksum: sha1:e21400da74fd891c2ca89cbe9d937f4741a11300 + pristine_git_object: 5d7b8f590f6a6783223d3dc8b312860f3d9d9006 + docs/models/shared/errorstatus.md: + id: 080dc9ade2a1 + last_write_checksum: sha1:40d96e468db2512fb1a75ab9c22c507dd271ddfb + pristine_git_object: 1c9e3e20e83ee35609af102e8ec125a3f22ae2fd + docs/models/shared/errorvalidation.md: + id: 16c1cb223d2f + last_write_checksum: sha1:95c0612deeeffbcdad88e43e6ac3b9c5a27dbc5b + pristine_git_object: 122badd9dc677268354300580e2cf4a816648b75 + docs/models/shared/errorvalidationitem.md: + id: 387d0284dfc7 + last_write_checksum: sha1:9b65cc3e6aa3f0d5a402144850337bf43dc151a2 + pristine_git_object: fca2ef14a61187257e94508739301789fe95ca75 + docs/models/shared/expensecontactref.md: + id: 475c4efbc658 + last_write_checksum: sha1:784eb4940ba3a5a8accd55b0651d8acc1f69ee46 + pristine_git_object: 7889b747dcb7a16490437c15e01c0858dd8fd39b + docs/models/shared/expensecontactreftype.md: + id: a0ba9b3de636 + last_write_checksum: sha1:a887b2978c99f41f5c97271bb8295959332c47e0 + pristine_git_object: 8542b2e038b11fb05059eae00bb38cecaf1bd595 + docs/models/shared/expensessyncwebhook.md: + id: 5b32dce5d40a + last_write_checksum: sha1:e36f9d908b266c5438fdbbcdb96fd68047e09026 + pristine_git_object: 7b8e3b103a1b6efc0ea80d23e8872fd62c28f842 + docs/models/shared/expensessyncwebhookpayload.md: + id: 96c9cbaef47a + last_write_checksum: sha1:301a4eaa72c06de415fc2170672d6128db28a020 + pristine_git_object: e849000df6ce75daa2acc2d68dd7ed3cb2999f21 + docs/models/shared/expensetransaction.md: + id: a853fe94b997 + last_write_checksum: sha1:f4c4bcd6c2cd711e02d5b9c8de595ee0d1188219 + pristine_git_object: 9f6ab23dea90b4b3555bc39582a014dbd5d0b8b2 + docs/models/shared/expensetransactionline.md: + id: 10d7613aeed9 + last_write_checksum: sha1:c0b3b6d3276c7bf3fc4f64bcd3acdd1341f08567 + pristine_git_object: 90501ae8200fa51f9ccd13ab0df5c7ab411cc6b9 + docs/models/shared/expensetransactiontype.md: + id: 549a6bc72d40 + last_write_checksum: sha1:c7907a19a652c1d548e4dd8df81569379bdf1eb6 + pristine_git_object: 186aa20ae41d281cf99ac92668481946b6ea43e6 + docs/models/shared/from_.md: + id: a57aa82e9590 + last_write_checksum: sha1:4fa461be6f26079dc980be656d78a6be5c967f1c + pristine_git_object: 069b6cda68a2121d115517404211d3e513087367 + docs/models/shared/halref.md: + id: 6419816ff8a5 + last_write_checksum: sha1:3351eecf720075f09f46151fdb5cadb941a45d2c + pristine_git_object: 94c6476ffb09fbcb1b7b417dcd7a1c1448db767b + docs/models/shared/integrationtype.md: + id: 0bc8c139fae4 + last_write_checksum: sha1:33c8cfc1369107eabfa61f9d5f0a8bb2e64b243a + pristine_git_object: 8d9afc862fa9025108df02d16d4b6bc539c434a9 + docs/models/shared/invoiceto.md: + id: 5f62612476be + last_write_checksum: sha1:8224ee737388c552c511a4ad5b4f030b749dfaec + pristine_git_object: 7e1b8850e6fa14159fbcea3591d8827a6dbff2a4 + docs/models/shared/invoicetotype.md: + id: dc6fe494d8bf + last_write_checksum: sha1:e54666b372b1ad4faa45be2ba1253f087342a06a + pristine_git_object: 8977ebc0479905c9e8dbe3ac50cafcc786fc638f + docs/models/shared/itemref.md: + id: 6ad2db83305f + last_write_checksum: sha1:173f42358ddcb4b8804859b002d49f2489f8f26a + pristine_git_object: 502d437402aab7fbe09fa46b09ba83cc24df21cf + docs/models/shared/items.md: + id: 4e5a844391b1 + last_write_checksum: sha1:922caf4f3370d5188669b569a6a56b155cceab07 + pristine_git_object: 740e1b1b98a0734d3886f64894d7ecf94adee1a1 + docs/models/shared/links.md: + id: 62457336618a + last_write_checksum: sha1:3fe73154f80694c37f70abca49683a8585acdf2a + pristine_git_object: 5f80d26528763c8e795116d26e55a567f5bc068f + docs/models/shared/mappingoptions.md: + id: 24d1a4fce3d8 + last_write_checksum: sha1:5dcb47af4aad1dbe39074a13b02833915c21b772 + pristine_git_object: 3b366f7dd6c06a53f9fd70f08f44d4fabf901c8f + docs/models/shared/metadata.md: + id: c5516375ff4b + last_write_checksum: sha1:706e842c83712d9e690b1524a4287335e19d481a + pristine_git_object: 8fb4a6e5c3f2b37c006ee7c454fce5928a500c64 + docs/models/shared/phone.md: + id: 1c27af9decf1 + last_write_checksum: sha1:de59e03ca9c14f4488581594a653110b5b78a83d + pristine_git_object: ea0d84c06683969f69c622f5435db0167592c226 + docs/models/shared/phonenumberitems.md: + id: 55045e502f32 + last_write_checksum: sha1:b85a8e07aac5d621f9c68c7e401e507331a96532 + pristine_git_object: 9fa79fec0cd742d02299e04cd16c9e1b5f111d74 + docs/models/shared/pulloperation.md: + id: "7981133966e3" + last_write_checksum: sha1:d9470bb06f6b7cba0c644ad0f1cfdc6c38dab1f4 + pristine_git_object: bea7bb1d5aded6fa2737fa2b637b0a5df56b4ab8 + docs/models/shared/pulloperations.md: + id: 9b8a979f7431 + last_write_checksum: sha1:68ba6d27043ffa8ef10eab963db5eb47d7a14281 + pristine_git_object: a5761e0aac988dfe0dcdbf8982161b17a8b3f2b8 + docs/models/shared/pushchangetype.md: + id: a61fbf2a7601 + last_write_checksum: sha1:3e11346ca8276758077ff45bddbae4962f8e2fa0 + pristine_git_object: 9eb2c36e86f8923ef2129c934b989139048dbb27 + docs/models/shared/pushfieldvalidation.md: + id: 1781a6745a01 + last_write_checksum: sha1:1d2c204d98d50e865dd855dd94a9db2b777924bc + pristine_git_object: d3558cfad507ed0a7f6df5be0bcabd1c97403940 + docs/models/shared/pushoperation.md: + id: 9ed839ce93f2 + last_write_checksum: sha1:a1c93a190a210285c4c47a2fe9734e1e7080b943 + pristine_git_object: d01e17840385b67e208dd13986294ca086a103db + docs/models/shared/pushoperationchange.md: + id: c0623d7fc644 + last_write_checksum: sha1:3b3665e63f0af6f6bb5c315a125d9f99e67e871d + pristine_git_object: d5516b5c7636977887d623bf8ce278b162e7560e + docs/models/shared/pushoperationref.md: + id: ec0a5e0789e6 + last_write_checksum: sha1:561017da2e72b15cdc02ce288499c572dc0f1811 + pristine_git_object: 7c26e1c4f3009e3a3ef9038bb28054328e7c35be + docs/models/shared/pushoperations.md: + id: 6ad8020d03ce + last_write_checksum: sha1:54e4bd505231399be8a426b3026e4e7075fe22c5 + pristine_git_object: 6a06b9c2bb2ed1b8576b43900e93c32afee3e8c8 + docs/models/shared/pushoperationstatus.md: + id: 72dec332b896 + last_write_checksum: sha1:42364faae268c0fac99a152ef5903b2d696c6993 + pristine_git_object: e04e39490029c1d8651c2c6196ab985536ebc81a + docs/models/shared/pushoption.md: + id: 8f9aac847848 + last_write_checksum: sha1:e86653e74a5548b07b1c7494d1c3489d99876a91 + pristine_git_object: e908d0b282aa7ee10bc3fdfd1ac6478a9bada805 + docs/models/shared/pushoptionchoice.md: + id: 142b3813ac30 + last_write_checksum: sha1:39da817126ff10dc88c27a84f44ec5b05117211a + pristine_git_object: 44e988b26355b99e22941f6d244e0d62d35058d9 + docs/models/shared/pushoptionproperty.md: + id: c4afadf82a30 + last_write_checksum: sha1:442b9bc3f2d3ed668fa8108ea6f64eb0d74780b2 + pristine_git_object: 2bedd19d3a046df928f90fd08a40ae4718db1dfc + docs/models/shared/pushoptiontype.md: + id: c72ec1304c75 + last_write_checksum: sha1:062f87db88458714ef72df6bf4a58e0ff482df8c + pristine_git_object: c5c9f39dad6ef72f9223e49c6d0088bc37a8d67b + docs/models/shared/pushvalidationinfo.md: + id: fa655d40a67b + last_write_checksum: sha1:631c72c2e9e4164463b66747ffe42f103ba7ccc0 + pristine_git_object: 110eb3f7661a0ed9c153c3893045cee7967bbbfa + docs/models/shared/recordref.md: + id: 66fe6db7babe + last_write_checksum: sha1:31f8655a3d6df8828d72632f27036f54f5564903 + pristine_git_object: cd4ef66cc2677cfe239a061f43a0e4fa139c5dd7 + docs/models/shared/reimbursableexpensetransaction.md: + id: ef0962d45df8 + last_write_checksum: sha1:1576cec25b34374088a31b97565fa51f2417b15c + pristine_git_object: 39f21606ea36e2baf88014c2bfb8ee0f0b9fd9a0 + docs/models/shared/reimbursableexpensetransactionline.md: + id: e730cd120d8b + last_write_checksum: sha1:d1cc48f2e7575e0665ac51e6335b20329cf5a326 + pristine_git_object: 3b7c4f24d4bf83d98f535331142cc18b6c0f1cec + docs/models/shared/reimbursementcontactref.md: + id: 76293061f0bd + last_write_checksum: sha1:fc42840f5ec865100b9f811044bc613fe1c6535e + pristine_git_object: bb509541fc0470406aa43c75e823a3872c87bcb1 + docs/models/shared/schemadatatype.md: + id: 434964da1e21 + last_write_checksum: sha1:4f6fec6a2bcacd3f66b699009eac075b79b5feeb + pristine_git_object: 39865d9ab1d405678e48b812279a8c8035ff26dd + docs/models/shared/schematransaction.md: + id: c4c395656f65 + last_write_checksum: sha1:d5bb58ed4586bac52718b8851be2712ce0afba3f + pristine_git_object: 63efd245481b15dc38bc8efc0609c6b7b1b72c31 + docs/models/shared/security.md: + id: 3035c5c37727 + last_write_checksum: sha1:ad8f2bb99d7b8a122835078105808dca5b211113 + pristine_git_object: 2b68bd0e737786201357cb36c00787f0689e6bbf + docs/models/shared/sourcetype.md: + id: 89991911fb97 + last_write_checksum: sha1:fe02711850651e8b8852176e3d7d60e0f54d4493 + pristine_git_object: 2aa214f6194adf20dcc14fdfd49b9006fa3ec2ed + docs/models/shared/status.md: + id: eac4bfd601f3 + last_write_checksum: sha1:27c80aee64d2e5cc2874ce7699abb215aeda5bdc + pristine_git_object: 33ac01645ee6bd4484f1dc120c748f69f1ca93c3 + docs/models/shared/supplementaldata.md: + id: f3c0dabce656 + last_write_checksum: sha1:68b0016d9e5d0e1715fa071208ebc4512354fbc3 + pristine_git_object: 7415a85191246d3c178b5b26401af75989b47168 + docs/models/shared/supplier.md: + id: f468b19e04fe + last_write_checksum: sha1:825c6861e1ce4d8b4817fc57973e026cda371f41 + pristine_git_object: 3d1c0b2bfa96bd5943524fb8743484effe377723 + docs/models/shared/supplierdetails.md: + id: 75ac7c48c64d + last_write_checksum: sha1:6f87a6ee8daba2f624d5e49305376d932de27dc1 + pristine_git_object: fe67734d853d92612a7e413c8f9db008a9c85771 + docs/models/shared/suppliers.md: + id: 7bbf53a9940c + last_write_checksum: sha1:3895a392b3ea217c9b6e7661754401d4f5788e0b + pristine_git_object: bb6880b0d6805562af03a6395b8fd905a47d4c28 + docs/models/shared/supplierstatus.md: + id: fb4ad50793c3 + last_write_checksum: sha1:ac998ee8d43a0c2ffa7f35c46b67a3f8152cf806 + pristine_git_object: 60d0de4fba49024bc0f52b4d12bd82fb3cb0dc7f + docs/models/shared/taxratemappinginfo.md: + id: 68bb42de8631 + last_write_checksum: sha1:5bb9a7cdd5a0d580a9e9d875432e5291b95569d4 + pristine_git_object: edb55bd02f24467a96df942e8e3a2c66106d79d0 + docs/models/shared/to.md: + id: 7d1f08d13fc4 + last_write_checksum: sha1:99de8ff79d1b6bf20dc7c8069db766a2c5eeeb80 + pristine_git_object: 9e32f98f03fc65de25d7427647ee57f635cfcbfc + docs/models/shared/trackingcategorymappinginfo.md: + id: cbbea9e773e9 + last_write_checksum: sha1:d3f370c5402977586019d8274231740bdf4565c6 + pristine_git_object: 86fe420f02d36b1ab6d51e7d6a15177f6f0a2676 + docs/models/shared/trackingref.md: + id: 2ec0eb719b40 + last_write_checksum: sha1:f9e85bee8d172790b13b98f27e2bc08ee5d9045a + pristine_git_object: 3ca9e02628281a07afbc2fc2a84cd19ea79eb74f + docs/models/shared/trackingrefadjustmenttransaction.md: + id: 892a6e1eb145 + last_write_checksum: sha1:c82ebcc78360c0a666c302a2fe9833ea311584c9 + pristine_git_object: bd5ddd3f70c4243fcfb8c9ec1b977c13f0db5360 + docs/models/shared/trackingrefadjustmenttransactiondatatype.md: + id: 6f3d5a0506c1 + last_write_checksum: sha1:e9ef32ff4b16519407a99452d06a6399733c0cdc + pristine_git_object: 32d5fb8303a8cf3866cf0ce0aebae55015537314 + docs/models/shared/trackingrefdatatype.md: + id: 249da5c83b68 + last_write_checksum: sha1:f9c3b34584151e31204d882262bed34139a95677 + pristine_git_object: befe27dae475763f170509123c73d4bfd623f04c + docs/models/shared/transaction.md: + id: b48623cb1204 + last_write_checksum: sha1:f7014421611d2e0b6aa0b375a96ab8066bb2d893 + pristine_git_object: 07593a6e5c3567226de88f63b4b8e7b7d940b9e2 + docs/models/shared/transactiondefinitionsstatus.md: + id: 72482b83bad8 + last_write_checksum: sha1:ca1abb4058c419e5afc03e0a1a2e3bbed00abf1e + pristine_git_object: 4b5ec7609931bdecfb9199408f5220f85ee118ad + docs/models/shared/transactions.md: + id: 2bbc6b35c5f4 + last_write_checksum: sha1:16179a97b76bba718663db9645cdc716ab725245 + pristine_git_object: d1a752145294a6915569824c6f9e09e7535bc825 + docs/models/shared/transactionstatus.md: + id: 7634a8a3b5d9 + last_write_checksum: sha1:f4afa633a5d0cbee173de950aaf17de682910bfc + pristine_git_object: 8be5f378905a59c33bea36023d5253f49ad7ee7a + docs/models/shared/transfertransactionrequest.md: + id: 6d3cdf2cd801 + last_write_checksum: sha1:9a57f5bac2340334cdaae97f3e2ee03d2449a4fc + pristine_git_object: ac0e1d51cca56fc5198d1f6e9bc5509b899b8d1d + docs/models/shared/transfertransactionrequestaccountreference.md: + id: 30969405e1a4 + last_write_checksum: sha1:1f93769bb8d84c8a17d6377e1fb12e8f81eb0b80 + pristine_git_object: b691ef2140cfca896645c9dbc0402b334380112c + docs/models/shared/transfertransactionresponse.md: + id: 23c482d61f4c + last_write_checksum: sha1:4cd6c8e2fa90f728f78e114c4a213e05b687579e + pristine_git_object: f2cddc48603fb3443315403c6f778759fbb82c97 + docs/models/shared/type.md: + id: 0d8d18a9f10d + last_write_checksum: sha1:ff9ae457bdc2bab52cb9237f943f12735c52c67e + pristine_git_object: efa4c06a7a8150c57415bcbf1de21dfdebc3ea75 + docs/models/shared/updatecustomerresponse.md: + id: 04fa423b2abb + last_write_checksum: sha1:00378738105ffd727101d3531cf1ca45bfe519cf + pristine_git_object: 10c3776e64ed240814548310c0055f58a076b08c + docs/models/shared/updatecustomerresponseaccountingcustomer.md: + id: d541508c72a9 + last_write_checksum: sha1:2627439b151cf18fac0455c8045429a9bff6df0c + pristine_git_object: de8148803601ff8c1ce0597671c0a33a2d8ea7bc + docs/models/shared/updateexpenserequest.md: + id: 480c28fcba4e + last_write_checksum: sha1:d6485d189a9ad31dcadce366dd37b9848c50fe63 + pristine_git_object: 3c54841ec79d11fbba3223465ccfe90a3f0019d6 + docs/models/shared/updateexpenserequestbankaccountreference.md: + id: 4dca5e50fe51 + last_write_checksum: sha1:1eaee0657bc2d19c66e8127c6a6460c8ebad316a + pristine_git_object: 17f0eb4ddbf872e58c2efa416d76db756695fea9 + docs/models/shared/updateexpenserequesttype.md: + id: 194b1d69904c + last_write_checksum: sha1:4363f9c60fda4788f554aa330aab553a354a9bed + pristine_git_object: 2de3891b7f356a22261f752c583d66bef8039503 + docs/models/shared/updateexpenseresponse.md: + id: a43d909ffe2b + last_write_checksum: sha1:bc34e1712c02daf4982a1e993bc5cd41e2669e16 + pristine_git_object: 4e6366339f2247d6fca8bcd8d1c7fedd9d4001e7 + docs/models/shared/updatereimbursableexpensetransactionrequest.md: + id: 2e6eb0728cf4 + last_write_checksum: sha1:d7d1d04227b424017348a328676314da68df645a + pristine_git_object: f6255e33c04f06d7ee57614e5c7292535b127bf4 + docs/models/shared/updatesupplierresponse.md: + id: de976a757b24 + last_write_checksum: sha1:99fb1c446af3a73a560cd50dfafb912e1015a21e + pristine_git_object: 9378b0397c09388edfd55637ac7b26b0e252d5cf + docs/models/shared/updatesupplierresponseaccountingsupplier.md: + id: 951a84120109 + last_write_checksum: sha1:f394f172263871280453c1880e7b638b51ccc216 + pristine_git_object: 637f71bd3cf044313c2740ce813403ce08794031 + docs/models/shared/validation.md: + id: 104faaa27f1e + last_write_checksum: sha1:48e8e142f8d7481086e625a674b81d9629a6d8a7 + pristine_git_object: 4cfc544dc16274535b64adbec2952a174f8df033 + docs/models/shared/validationitem.md: + id: 7bec81cc2dbd + last_write_checksum: sha1:94a250b9a199f0f4ea49e6acb4b7d7568acc31a6 + pristine_git_object: 1aaf084c93a9674b923e0a68b1e84e9164ab5e2d + docs/models/shared/validdatatypelinks.md: + id: 60c0f3e80aa3 + last_write_checksum: sha1:cfc4e44f4574fb6f4eb413064ae35fd67fbdac81 + pristine_git_object: 809a80db082ac550fc975636bd3eca41029ce6b2 + docs/models/shared/validfor.md: + id: 478f705be5d2 + last_write_checksum: sha1:dd6942dc799adf37810bfa3bb6f08e1446100647 + pristine_git_object: 112c68ea0ca65bce15a23f6086f82fd60626a84c + docs/models/shared/validtransactiontypes.md: + id: 0bb68fbe0a06 + last_write_checksum: sha1:38439b9fc83cc9ffae4a126cf3477e5ed235c472 + pristine_git_object: 05e8fcbc5291317f97a9e9c610fe35bc770e45b2 + docs/models/shared/weblink.md: + id: 64ed24c165ed + last_write_checksum: sha1:3e523f8e990e6641f6ab0036729772bc171f39e4 + pristine_git_object: bb96fcb0b70a74ef88890e95cf12af682eeb26fa + docs/models/utils/retryconfig.md: + id: 4343ac43161c + last_write_checksum: sha1:562c0f21e308ad10c27f85f75704c15592c6929d + pristine_git_object: 69dd549ec7f5f885101d08dd502e25748183aebf + docs/sdks/accounts/README.md: + id: d6c754b1ca96 + last_write_checksum: sha1:97e0926221b024c3030b1def9c27b94338c05690 + pristine_git_object: 71f286a99d28b4233afa44b60daacc9e0f62256b + docs/sdks/adjustments/README.md: + id: e7bc3bb1d249 + last_write_checksum: sha1:53ce2ac3c023a35e1d20690aecdeb50ff7c28d8f + pristine_git_object: 256d7d86639fb09cc218c30d344267f56e977f73 + docs/sdks/attachments/README.md: + id: b60e6ecf628b + last_write_checksum: sha1:b07c1c9c58a4505a10292b5957e71bfdc9c8a826 + pristine_git_object: 0da303ab53ee271f5c93e0499ba655182b3bfebd + docs/sdks/bankaccounts/README.md: + id: 510ffee224ea + last_write_checksum: sha1:0c696ea43f67b074a973eb277c54a58f4792ed37 + pristine_git_object: a68f84a84c6a15cf14947d56d67affecee3820a0 + docs/sdks/companies/README.md: + id: 67e8a49afa67 + last_write_checksum: sha1:5963fa66b352bb3c7ff9e5cb3144fe4059d343f1 + pristine_git_object: 42963b2e857008252b01e5b22ba486a58c25e12a + docs/sdks/companyinfo/README.md: + id: 198b84d5c0c5 + last_write_checksum: sha1:539fdb5b6b2cc182d7101b0f67e93f129f2e33a1 + pristine_git_object: d67a192bc10cc8b35eef54882c578ec5d1804c0b + docs/sdks/configuration/README.md: + id: d3a07ea941dd + last_write_checksum: sha1:69ffc4e8eebbacb5180e88affafa594b22e2a1e2 + pristine_git_object: 59d0ed9bc3f5f9f12920c7136779db4c54d13a89 + docs/sdks/connections/README.md: + id: 3ef8931411ea + last_write_checksum: sha1:f0c3631317b488bb08079095de58f62185c7aba6 + pristine_git_object: 2068f6abb19a809375e2a00c06c2e0618c28531f + docs/sdks/customers/README.md: + id: 9332759cffc2 + last_write_checksum: sha1:97afd06f9f942316987ab7b282422b9ef8692332 + pristine_git_object: 32263cfd5d2e5feb4109a5024229f8dc87493a01 + docs/sdks/expenses/README.md: + id: 5692d1aab79d + last_write_checksum: sha1:7d6ea5bd128643bac9f3b3676b435c4e924f6deb + pristine_git_object: 7d6df159a762ca9fd059280c2562a807d9abeb1c + docs/sdks/managedata/README.md: + id: 5fccd800fae5 + last_write_checksum: sha1:d1ac36febfb6d03983c82347f21b0bf99ef39b37 + pristine_git_object: 5bd5f931b853541bfc548034e5fd92c87efed7b4 + docs/sdks/mappingoptions/README.md: + id: 05c1205f046b + last_write_checksum: sha1:08bd4252b9728d9d0143bdf4d0aab7ba21094e94 + pristine_git_object: 202c82e69dd9ca7040fbbaa9f1637f162a27a94b + docs/sdks/pushoperations/README.md: + id: 5f0b3f80f615 + last_write_checksum: sha1:2bf4e4881fd58cf90434b873f2ea775299cb0a8d + pristine_git_object: febd1fb5d2addf1a505dc4d59c259aee52254c68 + docs/sdks/reimbursements/README.md: + id: a5d637dcab67 + last_write_checksum: sha1:4dcc6d1e08976b85f5a4854829e4ddb0084c06d4 + pristine_git_object: 4e7a3037fd28a0d133d82c66e253e6dc150bbfbf + docs/sdks/suppliers/README.md: + id: 85867190cd79 + last_write_checksum: sha1:9e087eca363078280343f85c491a24a07146fb33 + pristine_git_object: 807668a7d93d1b713325db01952dbd0d08bb95ce + docs/sdks/sync/README.md: + id: a2e09f86bd16 + last_write_checksum: sha1:9c0802bea362a9a75bc74584a0f82687075095fb + pristine_git_object: 49bde36bf45aac39f5f943249cd81dfcfec7e62b + docs/sdks/transactionstatus/README.md: + id: c3d24e0bf8e7 + last_write_checksum: sha1:83d34c7630860a636b7242ec2f58a55e2d89cd21 + pristine_git_object: 67c89f4307a57140a849064ba4496e40a7edf523 + docs/sdks/transfers/README.md: + id: f56918861798 + last_write_checksum: sha1:3dc28f019a1efc0a153a837764ff2d11e09effd2 + pristine_git_object: 402381ba365f0a120f0994eb6fc497a06d66f1ce + poetry.toml: + id: a81ade82122a + last_write_checksum: sha1:2242305e29dc6921bdf5b200aea5d4bf67830230 + pristine_git_object: cd3492ac9dc870fdcf23dbd94fd1d40cc753cc8e + py.typed: + id: 258c3ed47ae4 + last_write_checksum: sha1:8efc425ffe830805ffcc0f3055871bdcdc542c60 + pristine_git_object: 3e38f1a929f7d6b1d6de74604aa87e3d8f010544 + pylintrc: + id: 7ce8b9f946e6 + last_write_checksum: sha1:920eefe315bc1e2d60018c00251d4c3ab06eb834 + pristine_git_object: 61b9570dea04a5d30f10901415117b1211dea708 + pyproject.toml: + id: 5d07e7d72637 + last_write_checksum: sha1:fe62966cb5fbff0364ec9f12a0a76a945521e241 + pristine_git_object: 7d51a3d5a7b93a6aa049124090d0012843d6bef5 + scripts/prepare_readme.py: + id: e0c5957a6035 + last_write_checksum: sha1:c9d3fb80d212f12afe5780a4498271a24b7c7dd4 + pristine_git_object: 714831c7d7b48884ebdbc3c0a0b77b8605d74813 + scripts/publish.sh: + id: fe273b08f514 + last_write_checksum: sha1:b31bafc19c15ab5ea925fdf8d5d4adce2b115a63 + pristine_git_object: 2a3ead70ccc6228cbae1c5c8a319b1399f3804ea + src/codat_sync_for_expenses/__init__.py: + id: 3b5a7c16e866 + last_write_checksum: sha1:da077c0bdfcef64a4a5aea91a17292f72fa2b088 + pristine_git_object: 833c68cd526fe34aab2b7e7c45f974f7f4b9e120 + src/codat_sync_for_expenses/_hooks/__init__.py: + id: 81f671365e73 + last_write_checksum: sha1:e3111289afd28ad557c21d9e2f918caabfb7037d + pristine_git_object: 2ee66cdd592fe41731c24ddd407c8ca31c50aec1 + src/codat_sync_for_expenses/_hooks/sdkhooks.py: + id: 8f1585d7ba7d + last_write_checksum: sha1:6461b1488ee84aceb5ba8262366c12eb7c6cf3e3 + pristine_git_object: 7f6fec9c80bb09cc8bf5c1dc47ec236f3bbf9600 + src/codat_sync_for_expenses/_hooks/types.py: + id: f2688999dcdc + last_write_checksum: sha1:ddf23acce15db6b0c0cae2b40e56493fd41cffa4 + pristine_git_object: fbff2b21de688cd60f00e9ebcfe18f1e852700ee + src/codat_sync_for_expenses/_version.py: + id: 4eaecdcaa585 + last_write_checksum: sha1:199bd7cdf4aba10b98129310a466b29c920be2ae + pristine_git_object: d4bdbd0e33c72fd3add244d88cef663809927250 + src/codat_sync_for_expenses/accounts.py: + id: d2880ef8ea4c + last_write_checksum: sha1:ebcec1b930f34213940f9c54c8b813057be4a5d6 + pristine_git_object: a82a8984f5c350bf70358f697c43c522fa61efa4 + src/codat_sync_for_expenses/adjustments.py: + id: 34292198560a + last_write_checksum: sha1:e193645fa4bb2f7884ce1c214ff38dbdae64c0d0 + pristine_git_object: c34ec16b6c7b9ec48302fc788d675ed11619c913 + src/codat_sync_for_expenses/attachments.py: + id: 8915e70e4d2c + last_write_checksum: sha1:1cdaa720ff4165b697beb77e0ce3125a1fc9df9f + pristine_git_object: 5dd33e2a07b1aaf75a649e6e789d6b5122574722 + src/codat_sync_for_expenses/bank_accounts.py: + id: 6e28d646eece + last_write_checksum: sha1:47f2fd372ffbc0aaff9fe058cb1bc5def2f31e4a + pristine_git_object: 01843dadae90e787bda04bf1039d57dd0bccc112 + src/codat_sync_for_expenses/basesdk.py: + id: 8428daa15a92 + last_write_checksum: sha1:d087d87d2542fe76ea6ca52bda1ba81288161290 + pristine_git_object: 8355740f1b3e04767695a464e662d0c3411dfc44 + src/codat_sync_for_expenses/companies.py: + id: d3bd5734ad43 + last_write_checksum: sha1:6ab8c9ace191b185b3c60a2fc567bb3ba164d587 + pristine_git_object: 3a88801d0b7ceefe2a13ff0e1997b6acf47c6735 + src/codat_sync_for_expenses/company_info.py: + id: 4ff54297bd2f + last_write_checksum: sha1:38c3fa5ecfc3bf938581ede8c23a8324e1d13315 + pristine_git_object: f0df70fded36653b70a7b181070cbb379fb99c32 + src/codat_sync_for_expenses/configuration.py: + id: d6d264878c9b + last_write_checksum: sha1:ea0b07bcdae0e3bea48ca5d3c6612933ffca627c + pristine_git_object: a73937af330bc551f180eee7469b2fb17fbf6e7a + src/codat_sync_for_expenses/connections.py: + id: f600c6870ded + last_write_checksum: sha1:68a9568f2b6ad8393692b284cd221af7ec7e185d + pristine_git_object: ae747c57c147cec29b9b8cd55f8e4fa9ac63b136 + src/codat_sync_for_expenses/customers.py: + id: 3de95af1cfe4 + last_write_checksum: sha1:46550176cfc9d87fd70d6010603fe19aceae0e73 + pristine_git_object: 2197110dededf0b8de0def43d25afc1ad31c4215 + src/codat_sync_for_expenses/expenses.py: + id: 1a81e5617a14 + last_write_checksum: sha1:3e4dbdae451765d6de4b79c0d29e1a9bd61483ee + pristine_git_object: cc3b70604c14ea2a3afda1d2a12999708f566f4c + src/codat_sync_for_expenses/httpclient.py: + id: 5700e3065fa5 + last_write_checksum: sha1:5e55338d6ee9f01ab648cad4380201a8a3da7dd7 + pristine_git_object: 89560b566073785535643e694c112bedbd3db13d + src/codat_sync_for_expenses/manage_data.py: + id: 07d9d6fa02aa + last_write_checksum: sha1:76f43524100ca219155fe2b989687be23ff387e2 + pristine_git_object: 05e9ac0e7020865e3e769976bbe8ace907ca99cc + src/codat_sync_for_expenses/mapping_options.py: + id: 8f4196c6c67a + last_write_checksum: sha1:536aff6ff4790a32be3b1dd159fefb346fb680e7 + pristine_git_object: b5c7e39ec3e423a8644d51023f5bedb48f16a8a2 + src/codat_sync_for_expenses/models/__init__.py: + id: e3eca998ee77 + last_write_checksum: sha1:9a8939813e0fb58048e96b0a5815d0c70598a72c + pristine_git_object: 3e68f3290c565d964be2beea652551b21a0f2eab + src/codat_sync_for_expenses/models/errors/__init__.py: + id: 3de5538b43f6 + last_write_checksum: sha1:0e307a3722272675a5196fadc9bf9e12c7ec4649 + pristine_git_object: a7c0be6a583721f4efce300c08404cf83c137a99 + src/codat_sync_for_expenses/models/errors/codatsyncexpenseserror.py: + id: eb0e4bd51919 + last_write_checksum: sha1:5826890af3c7d69969a0908ac729804fa349bc2e + pristine_git_object: 36f9c691434036393f7b6566c3789ea6bf980ce9 + src/codat_sync_for_expenses/models/errors/errormessage.py: + id: fadd4ee86f7d + last_write_checksum: sha1:0eca605bac3f3929bebfa69ef94cdb32850c7a1e + pristine_git_object: 0afb6562e4b0fd3f3fd7eecf0b4410b29d39504b + src/codat_sync_for_expenses/models/errors/no_response_error.py: + id: 177ac36ed81c + last_write_checksum: sha1:7f326424a7d5ae1bcd5c89a0d6b3dbda9138942f + pristine_git_object: 1deab64bc43e1e65bf3c412d326a4032ce342366 + src/codat_sync_for_expenses/models/errors/responsevalidationerror.py: + id: 529ac0ee4f22 + last_write_checksum: sha1:7a5f1965b9219027457b32648dd8f336ca4d66e6 + pristine_git_object: 129dfa81c7d240abc7fcf80e986fdc62ea4af602 + src/codat_sync_for_expenses/models/errors/sdkerror.py: + id: 267be9d9499d + last_write_checksum: sha1:462670d44422dc3b682b10f431296743d28f1391 + pristine_git_object: 9eb94a8ababbdf8fd2a2061bd7026762bf9f87f1 + src/codat_sync_for_expenses/models/operations/__init__.py: + id: 48e2ae8822e3 + last_write_checksum: sha1:e5557135b469b65c4154648d0c738fdb594a01e2 + pristine_git_object: bd69bd0ce658e35dec6e2b1fbb4dd5990e1b826f + src/codat_sync_for_expenses/models/operations/create_account.py: + id: d316390906d9 + last_write_checksum: sha1:300e0acecf2ddf4700c66bc3e0ef21d1ba4dddce + pristine_git_object: b014abf733a6db2542fde049989917c8d8a47a97 + src/codat_sync_for_expenses/models/operations/create_adjustment_transaction.py: + id: 2e3930de967f + last_write_checksum: sha1:68fadced2a9dc67522a5f28d37a30bc18c5b7721 + pristine_git_object: 5d8acceb749c48a3103d28509fdcb6fa2fcc907e + src/codat_sync_for_expenses/models/operations/create_bank_account.py: + id: 7901f9fe0e85 + last_write_checksum: sha1:38178f5b7fbdfec17366a8dd43c01c18a083282e + pristine_git_object: 47d09c1eb558e34434a74d5ed70824c6a628f88a + src/codat_sync_for_expenses/models/operations/create_connection.py: + id: c10cea6d43f6 + last_write_checksum: sha1:c47a316c1a73ab14a04a2f9ec93ca514e92d33c5 + pristine_git_object: fe32944cd7dc419676815e6ed0c13d240bee167e + src/codat_sync_for_expenses/models/operations/create_customer.py: + id: 1bd8f3571bb1 + last_write_checksum: sha1:c69007979d3031329a1d7d04477a5c0197947cb4 + pristine_git_object: 86b847773411b5df2bdfe9df730ef4bb9e69b0f3 + src/codat_sync_for_expenses/models/operations/create_expense_transaction.py: + id: f116beaccb77 + last_write_checksum: sha1:ab48fd2c289f374a6f52509b6731e31eacd04143 + pristine_git_object: 08ed16580240c00ec0612302153d4a3b3f92024e + src/codat_sync_for_expenses/models/operations/create_partner_expense_connection.py: + id: 5085bf125e72 + last_write_checksum: sha1:2b1fde6dc483689de54f0f12ba90c2f6f5194fcb + pristine_git_object: 17406776b70fdc0797762b575932fde35a733f62 + src/codat_sync_for_expenses/models/operations/create_reimbursable_expense_transaction.py: + id: 771ba24f7d0f + last_write_checksum: sha1:b3d7e3765fd125d97545e30ad06a1390629c5acd + pristine_git_object: 303ecc019663158768490ca765344f22a4cef830 + src/codat_sync_for_expenses/models/operations/create_supplier.py: + id: f2e347629d12 + last_write_checksum: sha1:8c8b2f72100df1fa3ffe340063ac87df5ceda735 + pristine_git_object: 6eedda1b6e6ff5e49a39191b84a90e17b96e11b1 + src/codat_sync_for_expenses/models/operations/create_transfer_transaction.py: + id: fce90dd57d32 + last_write_checksum: sha1:ec4eb56d463a8a63feaa2e496d663c9fdc933b81 + pristine_git_object: 89caf70691d139fe30382c2cb6666bb5ca70a626 + src/codat_sync_for_expenses/models/operations/delete_company.py: + id: 0fdb9629675a + last_write_checksum: sha1:1ddee87c3b6e88be89a971c71d0e8dda2662ecf6 + pristine_git_object: f06b15f4fbe1029af954b456d43a9db30bdcd9a3 + src/codat_sync_for_expenses/models/operations/delete_connection.py: + id: 4e7332736bba + last_write_checksum: sha1:867a8b0e42c0be67113c0f7a013ec06e04944063 + pristine_git_object: 74caa4486da589dba4cdc7d9a4df3167cb8079c0 + src/codat_sync_for_expenses/models/operations/get_company.py: + id: 650f597abcaf + last_write_checksum: sha1:3e8f9ad3f97c8dc225327968b8c258b576b10496 + pristine_git_object: ca429a3bb55bd765776b4b024ff2c9472bdb7de2 + src/codat_sync_for_expenses/models/operations/get_company_configuration.py: + id: 6c50f3b7d891 + last_write_checksum: sha1:5c2a13c7bf3e98fe95435f11e6fee45205e12a56 + pristine_git_object: 4bed062ce21c15ca24b4e8998496756259bad5eb + src/codat_sync_for_expenses/models/operations/get_company_info.py: + id: 4195ceeb6fd5 + last_write_checksum: sha1:05001aec66f24679b4f797d070cd2c004ae184f0 + pristine_git_object: a2fba7c13cfa3dc72dcc6bff73a412e59c346f85 + src/codat_sync_for_expenses/models/operations/get_connection.py: + id: 145bfae3786a + last_write_checksum: sha1:00f5770c65c178d2186b4e6a494fd3f019636d47 + pristine_git_object: 5fb7d8a57a6aa77d8ba0626d2c63409bdf26f266 + src/codat_sync_for_expenses/models/operations/get_create_bankaccounts_model.py: + id: 4af48abd2e7f + last_write_checksum: sha1:42de2d4674521f0c9fd494e2ea655b1175ef165b + pristine_git_object: 2cac31c231767863be5fa154f2111742512974b0 + src/codat_sync_for_expenses/models/operations/get_create_chartofaccounts_model.py: + id: dad2d83e2bc7 + last_write_checksum: sha1:413c3831b88f2cb0a02e324d634101450a60b65f + pristine_git_object: a34eec9852689983e367d28cfd108f20a34c3081 + src/codat_sync_for_expenses/models/operations/get_customer.py: + id: 2841b6057e2e + last_write_checksum: sha1:2559dbbaa0ef48dd760ffdc263bb05347347346a + pristine_git_object: a2a9c4ac4c02cb4d0f922d90786e981ff4088a54 + src/codat_sync_for_expenses/models/operations/get_data_status.py: + id: 987d6a733255 + last_write_checksum: sha1:8bb99659b1487788eefeec0442fcca8f869e0e85 + pristine_git_object: a1f7820c4bf2f6bdaf2a98126e00e8d913ca2e01 + src/codat_sync_for_expenses/models/operations/get_last_successful_sync.py: + id: 4dbb31ee5f7a + last_write_checksum: sha1:4bbffc30ed06e6c73288b4179d2104733450ab6d + pristine_git_object: 77151a2dd6f8ee8874cceb21207d6dc9c7588f67 + src/codat_sync_for_expenses/models/operations/get_latest_sync.py: + id: 46083b688996 + last_write_checksum: sha1:f9875dd0be98460f2518fc26c42261e2c6ce9721 + pristine_git_object: 6263a106dce21a8f496b5d2590f5257e255f9ac1 + src/codat_sync_for_expenses/models/operations/get_mapping_options.py: + id: f46bbd549816 + last_write_checksum: sha1:5030e1de4b9d097e801fbed62f92cc4f048c2ed3 + pristine_git_object: b7cebbe88f38cadcab50e89edb243f0f3946b09d + src/codat_sync_for_expenses/models/operations/get_pull_operation.py: + id: 1fe4c6735a9c + last_write_checksum: sha1:feca64e6324923659689a01764b0d396854a0551 + pristine_git_object: dec74b03bda0a76f287d750e9844cb7b2148af57 + src/codat_sync_for_expenses/models/operations/get_push_operation.py: + id: ee6fc69cd763 + last_write_checksum: sha1:a0fe09d621271ef656b5fdcf04f09f924c1a841b + pristine_git_object: cccda80a3096aa95e82e783505102185c9ac98bf + src/codat_sync_for_expenses/models/operations/get_supplier.py: + id: 062e5c4fe9be + last_write_checksum: sha1:93f4c7551a93cd526edb1080c8d0d0c41664af55 + pristine_git_object: 769ac5ae0b19c50edd40f8e9067c97bd873bccdf + src/codat_sync_for_expenses/models/operations/get_sync_by_id.py: + id: c76da3f9366c + last_write_checksum: sha1:ee0859ffba3954dfed57c826b7212e2ffb5ca20b + pristine_git_object: 7315d40eb15367e1c55ced0e5fcd9646d89e963d + src/codat_sync_for_expenses/models/operations/get_sync_transaction.py: + id: "757132247439" + last_write_checksum: sha1:750cba6806484f3df22e68034896e849cefb215c + pristine_git_object: ee22b2b87e920b85bafa28e7579b2120ab543b88 + src/codat_sync_for_expenses/models/operations/list_companies.py: + id: 273be1f9b2b3 + last_write_checksum: sha1:8de8b512d2ad2e558593ab89636bf544e4929e19 + pristine_git_object: c6c42c9e469b690878fa6dee314d292d37283413 + src/codat_sync_for_expenses/models/operations/list_connections.py: + id: 04a7aad0ea20 + last_write_checksum: sha1:e43fe84cf74b3d9b8c97d4390b5fba44962ab6f2 + pristine_git_object: 069de1d1c6661f2f718c77555ba58b2f04b35425 + src/codat_sync_for_expenses/models/operations/list_customers.py: + id: 4dc57829f3a4 + last_write_checksum: sha1:c4925c29df2d3ccecde9dfe8785b54739419eabf + pristine_git_object: 09884489143288289cfc2c4419c1c160267fe474 + src/codat_sync_for_expenses/models/operations/list_pull_operations.py: + id: 27d4d455f746 + last_write_checksum: sha1:e4ef3ba5eb9da5f855bf4f8c8eafc7c608fdc92e + pristine_git_object: a94ace9107390d9668e1d1b33b878542f8093c11 + src/codat_sync_for_expenses/models/operations/list_push_operations.py: + id: 00db3d8e0de9 + last_write_checksum: sha1:6bd62564cf355ba8f5792f7bd98afad9bbeacb37 + pristine_git_object: a6220ff5359a905ffbc94920f0d04caf10ff7768 + src/codat_sync_for_expenses/models/operations/list_suppliers.py: + id: 2f83a2546c15 + last_write_checksum: sha1:94f3331346c4f08b6d82cf709ef7680c74224711 + pristine_git_object: cb3d6a917672dc536b5e75d619ea814a3a286020 + src/codat_sync_for_expenses/models/operations/list_sync_transactions.py: + id: 34cfb66021c5 + last_write_checksum: sha1:12977c5ddee693b0c1424bf4df0a5db6db3d796e + pristine_git_object: 9bb0e29c5fbf2b930cb8b28fd1dfaf830bf5ea9c + src/codat_sync_for_expenses/models/operations/list_syncs.py: + id: a1253c24bf3f + last_write_checksum: sha1:d9fdeebd9a4e96d5cf1b0aebdc9a6ac0a7609080 + pristine_git_object: 90658a7a7b8b414c83c11067fa3bee3d1ff51e3a + src/codat_sync_for_expenses/models/operations/refresh_all_data_types.py: + id: dd32165bf567 + last_write_checksum: sha1:0bb6584fb39565bf7abda942f72d8a9dcaa41a6a + pristine_git_object: 4fb422130ea85bdb2c33a25beadf6d809b3cfe7a + src/codat_sync_for_expenses/models/operations/refresh_data_type.py: + id: 000bd39ac4dd + last_write_checksum: sha1:89d454ced26f53ea35e219ca725d8becb88f5621 + pristine_git_object: c41c5f5850e022b0e788f86f0b580caa6949a79a + src/codat_sync_for_expenses/models/operations/replace_company.py: + id: ee254352f1a0 + last_write_checksum: sha1:4cd0086652b58287ddc115711826fdd824fb3f04 + pristine_git_object: 3d73fa639978ce6aa26c4b845b36514ea59dd927 + src/codat_sync_for_expenses/models/operations/set_company_configuration.py: + id: f5dde846a2fd + last_write_checksum: sha1:a8de2ce7d594dd440b30e4f9aef707ff9795104a + pristine_git_object: fef9f0bd86eeaa1816e5cbffb02cadf2b4e971df + src/codat_sync_for_expenses/models/operations/unlink_connection.py: + id: db2717e79799 + last_write_checksum: sha1:6912dffde3aa142b03eef99cf24a90d8a61be8dd + pristine_git_object: eb4e88727fa03f463571515b66019244c181858c + src/codat_sync_for_expenses/models/operations/update_company.py: + id: 43c9d718eb3c + last_write_checksum: sha1:8f40a15fc27585e6ea4727537503fa9a277bc9aa + pristine_git_object: a37d229d3bfeb04edaab63309a040ad3a6f88b59 + src/codat_sync_for_expenses/models/operations/update_customer.py: + id: da93fb2c686f + last_write_checksum: sha1:ae0e83bb83d887edbcfe6d2bbd828828f9e1f202 + pristine_git_object: ab7e879f46f54c13e523a193b80cc38b075c6a47 + src/codat_sync_for_expenses/models/operations/update_expense_transaction.py: + id: 92ad908eab72 + last_write_checksum: sha1:81b4fbd3a4c3f225cbe42c61937026f570c59cd2 + pristine_git_object: 11c3b42f3dbcde980eae12a51b4bd89de71a27c9 + src/codat_sync_for_expenses/models/operations/update_reimbursable_expense_transaction.py: + id: 62cc488c0173 + last_write_checksum: sha1:6cf17ea1a64f23d40dd42543b16db0dee6db08ce + pristine_git_object: fc6a6fc88838d6300b6d88393a26323fc9a7c947 + src/codat_sync_for_expenses/models/operations/update_supplier.py: + id: d942a053cb8b + last_write_checksum: sha1:5874debebbd6df01a4d1d3a0aa6ec51e2a4c24c2 + pristine_git_object: 36016092e1ced0f60c0523c277c2b930d976fb03 + src/codat_sync_for_expenses/models/operations/upload_expense_attachment.py: + id: 6357b66d52a7 + last_write_checksum: sha1:1772234760f6811ba4024d4b46714bd39a9bc1ea + pristine_git_object: 9ed3d2684c75fb99111b7bf4191fcc87de6c6121 + src/codat_sync_for_expenses/models/shared/__init__.py: + id: e3ed273c3e3a + last_write_checksum: sha1:20aaa84a0ccfb7a37b3631c3bd65a95250eaf762 + pristine_git_object: 2585206d735990a23d335b506c268e4a2a2b35af + src/codat_sync_for_expenses/models/shared/accountingaddresstype.py: + id: bfdb6011d2bb + last_write_checksum: sha1:166977c6c5e0d1a6ca189571871072d81cfb85b3 + pristine_git_object: 4d5a97871c6d88113540a0551db56d90f570bdb5 + src/codat_sync_for_expenses/models/shared/accountmappinginfo.py: + id: 7db296ce155b + last_write_checksum: sha1:49524171e376b56b95cd54b45db216e29d187ed9 + pristine_git_object: ee4fef873709c5e83a9985a966e9617d7342301f + src/codat_sync_for_expenses/models/shared/accountprototype.py: + id: 4389e2eddaf9 + last_write_checksum: sha1:f65acf1c28ae17dcfcb0aabf0abe03962a6bc7d6 + pristine_git_object: 893e03cfb9d2740d9b733fdc2e828d1f40390aa1 + src/codat_sync_for_expenses/models/shared/accountstatus.py: + id: 52c233994544 + last_write_checksum: sha1:1d8db2db30b08576be8feee77b76a60c8e1a91bb + pristine_git_object: 2ae331abcec79a6d167c0a1a4af6499e408b8ea7 + src/codat_sync_for_expenses/models/shared/accounttype.py: + id: 25b518120761 + last_write_checksum: sha1:7d19cb45b275fc5cdb79542d1ed42c286ad39518 + pristine_git_object: b893d55ba2052c214a6eb08b76038018280ae609 + src/codat_sync_for_expenses/models/shared/adjustmenttransactionline.py: + id: 8a0379fa0fb9 + last_write_checksum: sha1:261e376e63ca7d758c5530c55bd529c7d3a70d58 + pristine_git_object: 280672d8a50693622022f9474c460a3fc4a612b6 + src/codat_sync_for_expenses/models/shared/adjustmenttransactionrequest.py: + id: bc47355a6f3b + last_write_checksum: sha1:8741dbe04758d04799588623a89d54a8e7a66c5d + pristine_git_object: 1d0b167692040acbf65e832b154b012a8101e519 + src/codat_sync_for_expenses/models/shared/adjustmenttransactionresponse.py: + id: e1622d1e5218 + last_write_checksum: sha1:ef30a0333ab2fe0de82f2595aec9d2c87ae6ccc2 + pristine_git_object: 0f030a5556cc1f00faa2b2df1a57d43952361cc5 + src/codat_sync_for_expenses/models/shared/apaccountref.py: + id: 0d0b6f65ee40 + last_write_checksum: sha1:7c55d55f8f04b4a9c6acee960713737d69033036 + pristine_git_object: 91e068da054aead7efb653c3b9a2ca8bf06e27e6 + src/codat_sync_for_expenses/models/shared/attachment.py: + id: d9dadd2e8cc8 + last_write_checksum: sha1:ef17998d2609b8e93db9e4823a421a3542c9e97f + pristine_git_object: a03114689e6c73d9c1c47e6d69fd1e026568f73d + src/codat_sync_for_expenses/models/shared/attachmentupload.py: + id: "751637436612" + last_write_checksum: sha1:c1d00f8a71e292b0896cb61c0f722a27061ae1e0 + pristine_git_object: 1cf8149b88bd564178644fb89e311b51eba2253b + src/codat_sync_for_expenses/models/shared/bankaccount.py: + id: 4c03e03632a9 + last_write_checksum: sha1:620412b77160a4ce1508dcbd878858ee0752248a + pristine_git_object: 9c24b0136a70192b4e84e6d97dbf4f9b1a4e25cb + src/codat_sync_for_expenses/models/shared/bankaccountdetails.py: + id: 1ee3a2e5b946 + last_write_checksum: sha1:1229f3a65e5bbe1abe0d28c7a21c03059155cb27 + pristine_git_object: ea1c066af9c684e87d90e5b0bd3601543a027317 + src/codat_sync_for_expenses/models/shared/bankaccountstatus.py: + id: cf769e1107b9 + last_write_checksum: sha1:93c9533318e3edb228c515b8f9b414cfa50f550c + pristine_git_object: be857f929f6a97fca9cd7442125c06859ae5ee4e + src/codat_sync_for_expenses/models/shared/clientratelimitwebhook.py: + id: 568b2fa14dc8 + last_write_checksum: sha1:ce6cd89ebdb32f639bb6885352700e523281e11d + pristine_git_object: b7b86f1705ba9da22766e539b454fac266f174be + src/codat_sync_for_expenses/models/shared/clientratelimitwebhookpayload.py: + id: d22f5dbdec3d + last_write_checksum: sha1:8b1aedebad48c1d1ac1d3a20d4c96dacb0fb5ca9 + pristine_git_object: 16dcddd81a905b5b479ed480ba1f30d454d6ae26 + src/codat_sync_for_expenses/models/shared/codatfile.py: + id: a843d99cffeb + last_write_checksum: sha1:c614a71e67c82257fdb8455bb4c3de564082d7fa + pristine_git_object: 1fccd037f6659853e37718905b3bc1f67023e8f8 + src/codat_sync_for_expenses/models/shared/companies.py: + id: a6ba694921d6 + last_write_checksum: sha1:9c8e62b05ad92b31f42794651cb977e1f2eeec01 + pristine_git_object: 72e095fdc16a087e97b21b85181f52c141beccfa + src/codat_sync_for_expenses/models/shared/company.py: + id: 225e9a44279f + last_write_checksum: sha1:7e6393c3982cebcdce1535aef785a3c9cd7f0ecf + pristine_git_object: 3a2a37c192b566163e7cae0b7b8f5ef167f4e780 + src/codat_sync_for_expenses/models/shared/companyconfiguration.py: + id: b80498c75398 + last_write_checksum: sha1:3ab099b3f5ffd58f8c88eb4d0d20a68be0c1544a + pristine_git_object: e990d8d9a83504d78f0efe0c2751bffac18e05d7 + src/codat_sync_for_expenses/models/shared/companyinformation.py: + id: 4da0c6d19a74 + last_write_checksum: sha1:34691674680de611d9f98a210aa860822611c7f3 + pristine_git_object: 50c378e8ff349f51bf582f36abaafec7720ebffd + src/codat_sync_for_expenses/models/shared/companyreference.py: + id: e6984677db9d + last_write_checksum: sha1:b3bdceea00aed1dfc06e945a23fe3c1f59f4fca8 + pristine_git_object: 0a96d1a4c7f90a972c5f3d41eb488ff95d2da840 + src/codat_sync_for_expenses/models/shared/companyrequestbody.py: + id: 2c198e64e394 + last_write_checksum: sha1:b04b97d160fa5c35a8a747a4cf302d56a7c2d4da + pristine_git_object: 65088a37acf2c4a7781a04ec0745155ec916b07a + src/codat_sync_for_expenses/models/shared/companysyncstatus.py: + id: 899a8dc9175c + last_write_checksum: sha1:b221f4ca6c8ea860e4f1022de537701e52c6bf2b + pristine_git_object: bcf22d9a1eda049a761fd5350ec305f501475f50 + src/codat_sync_for_expenses/models/shared/companyupdaterequest.py: + id: 65c2c2b8c92c + last_write_checksum: sha1:840aadb1a713dfc00b0c95091a69879bd58e15d2 + pristine_git_object: 3bd4c757734bbffcfbf722b473380950b38e848b + src/codat_sync_for_expenses/models/shared/connection.py: + id: f66117ee0d9d + last_write_checksum: sha1:a585f92a785543b6859337b10b859e8316482825 + pristine_git_object: 26f77d441b65c0c95f1245f1c6214049a21df503 + src/codat_sync_for_expenses/models/shared/connections.py: + id: d6554abbbb75 + last_write_checksum: sha1:dc0f6db06119f8285b395f673ec73cc679cfe1b7 + pristine_git_object: 9e61c2ffc927f1237c260407ea2ab7face39d22c + src/codat_sync_for_expenses/models/shared/contact.py: + id: 4674c0a19128 + last_write_checksum: sha1:99a5f4627756516274df92939d4b4d0f21636e3c + pristine_git_object: d88bec7f28528e53be253a370c2dc51361ac17a9 + src/codat_sync_for_expenses/models/shared/createaccountresponse.py: + id: 9bb0172dba75 + last_write_checksum: sha1:56b4bed06fe689baf1500f58a9d19b39fdbf5dd8 + pristine_git_object: 29a62e2782e9a69f051f35564ffd1a54c61826b2 + src/codat_sync_for_expenses/models/shared/createbankaccountresponse.py: + id: 185e806efcfb + last_write_checksum: sha1:6ec45bbfaa06c881bc7893fabcd7ffc8b772cc8c + pristine_git_object: 8d66428434d6fb95fdaa8a3d5d9abeb4374b584c + src/codat_sync_for_expenses/models/shared/createcustomerresponse.py: + id: 71d44fc27ad8 + last_write_checksum: sha1:d598daf6eaa5f9c514801a20a2fbe1412b74b214 + pristine_git_object: b272c016e36714364d304a9a0e670b34010a74c4 + src/codat_sync_for_expenses/models/shared/createexpenseresponse.py: + id: a78f3caa19cc + last_write_checksum: sha1:1d71f1235bab87cbe9b68c52258be3d513980e4a + pristine_git_object: 4a56887d9a457e17951a033ce63cb327887193fb + src/codat_sync_for_expenses/models/shared/createreimbursableexpenseresponse.py: + id: f62555ec6143 + last_write_checksum: sha1:cf5729565b9ac3af5f49fe6b2930556c27fd4336 + pristine_git_object: 120a27cedefeea200676bfb2c93f2eedb0db2d0d + src/codat_sync_for_expenses/models/shared/createsupplierresponse.py: + id: b32be5a9dfa3 + last_write_checksum: sha1:fc5cce3b26c8ecaedd661ceebb0cd3b6fbf2525f + pristine_git_object: 8c01f6adc6f6977b12a28cb27cdb3882e6412bc9 + src/codat_sync_for_expenses/models/shared/customer.py: + id: 47001e7e3c91 + last_write_checksum: sha1:78d0ec4be94bb7927ad01f41afdebc5c17ea918a + pristine_git_object: 5752bac086324c7ffd4a6ecea46bba2b8b893065 + src/codat_sync_for_expenses/models/shared/customerdetails.py: + id: c0b06312638f + last_write_checksum: sha1:21a14dc02a728e1a0f1819bd41303e44b4070054 + pristine_git_object: 8f3e80eb29cfe35266472ccd924cd2f26e08e3df + src/codat_sync_for_expenses/models/shared/customers.py: + id: df402fbfe7c3 + last_write_checksum: sha1:7259679920a0ee22a1fb87ad072f8643a497381b + pristine_git_object: 0d95f4f4ad5fa5984681e306334f0c6c1435f52c + src/codat_sync_for_expenses/models/shared/customerstatus.py: + id: 4159a746dfaa + last_write_checksum: sha1:02cf795df270c4a398c17870bd2643c91d12a13d + pristine_git_object: 1e060f7bdf5c840b611ffca4d72028382982247e + src/codat_sync_for_expenses/models/shared/dataconnectionerror.py: + id: b3d9a01ed58d + last_write_checksum: sha1:d24ad101e1f7d366adb303d7a0bb90cf3361a03e + pristine_git_object: 1bd613a8376b99d9828ea3bdbb6562b533a7888d + src/codat_sync_for_expenses/models/shared/dataconnectionstatus.py: + id: d371596b2aef + last_write_checksum: sha1:7acc81f8f37f266c26a45828d3b5bf2cb63c3b5d + pristine_git_object: a97f7be301fae66aed392cc85bbec15fa366e2aa + src/codat_sync_for_expenses/models/shared/datastatus.py: + id: 1e5c27ca33bd + last_write_checksum: sha1:971e3a9d3c9fab34cd357a835d38d5e45670b086 + pristine_git_object: b4a63f5835d43a36a152750b79a4f22d8099e300 + src/codat_sync_for_expenses/models/shared/datatype.py: + id: 7e50abdd6669 + last_write_checksum: sha1:95c90fb6624fbc1dbea0b8b0bd81ee18f32039b0 + pristine_git_object: e0aff6fb80c57f375add51978ca0e60a6b031487 + src/codat_sync_for_expenses/models/shared/errorvalidation.py: + id: 0897e74a8926 + last_write_checksum: sha1:f623abbb671e956325ae08befe917cb8eb86ad0c + pristine_git_object: 22ebd2cb5da960a49d034adebd819c74fdc2a3fc + src/codat_sync_for_expenses/models/shared/errorvalidationitem.py: + id: 265e174be3dd + last_write_checksum: sha1:2114a8799cd733bf59386700aa1df9d4f9900599 + pristine_git_object: ab9b69eacc61280e4530975a861c9dd4c0abad0f + src/codat_sync_for_expenses/models/shared/expensecontactref.py: + id: cef5d5810ad1 + last_write_checksum: sha1:5f4a73ce504fc2977b08d93544a2f7871dbfb2ba + pristine_git_object: 9d86d31fef3983e9003209ad1546edb886f97f6b + src/codat_sync_for_expenses/models/shared/expensessyncwebhook.py: + id: 05fc8f09b499 + last_write_checksum: sha1:b82e73906a5528abb203ef240f628de857bd8470 + pristine_git_object: 23155b4a598a87ff7bd183a14188feaea72d6953 + src/codat_sync_for_expenses/models/shared/expensessyncwebhookpayload.py: + id: e0f6100f93e2 + last_write_checksum: sha1:976836dc29b08cb93d7c6c71d94c7f4bad570e0b + pristine_git_object: 842564f8a3fcf03c3f4b84427ea64b6948a5385a + src/codat_sync_for_expenses/models/shared/expensetransaction.py: + id: ddc071d68103 + last_write_checksum: sha1:08d39b39c11d24566bf2f4108885304f23104d2b + pristine_git_object: 2991af38b8826688ea9d26b20dba9beef4319d60 + src/codat_sync_for_expenses/models/shared/expensetransactionline.py: + id: 07df5f6ce398 + last_write_checksum: sha1:dc2cafa405ee1dee8489f49adf6e92af850a29e2 + pristine_git_object: 820b25e9602d2fe669433df10f665c9ddc897298 + src/codat_sync_for_expenses/models/shared/halref.py: + id: 4d88f533af97 + last_write_checksum: sha1:b6530b4ec37ccd7fa92f41acdbb798b523dcea15 + pristine_git_object: 72d1107d9f477a7637bfb5cb1fb544493b93f790 + src/codat_sync_for_expenses/models/shared/integrationtype.py: + id: ec646bb11466 + last_write_checksum: sha1:901b7a88a0a25b45db568e177807917bdaaa1ee5 + pristine_git_object: 92c91ae17cd338cb51dc30928f6bf7536c4fd256 + src/codat_sync_for_expenses/models/shared/invoiceto.py: + id: d8058b8c3cc3 + last_write_checksum: sha1:5a8893248ce6cf93c36d6cffa5a899c39e84c1b9 + pristine_git_object: 4653378cc2849e46365bf5557cab404d5e5b8cb2 + src/codat_sync_for_expenses/models/shared/itemref.py: + id: be69d8f95848 + last_write_checksum: sha1:afb4311b9f608cad3811c3263c0bb232d8aa6bbc + pristine_git_object: 4e9e29b2664dcf21d24736fc4d67e01629e92468 + src/codat_sync_for_expenses/models/shared/items.py: + id: ffee1aa31dc2 + last_write_checksum: sha1:871a52967a2392e4b149bd629d6a7545a6820cfa + pristine_git_object: 48065505704e59211176c8a19e32580d85a6f839 + src/codat_sync_for_expenses/models/shared/links.py: + id: 7210d28bd682 + last_write_checksum: sha1:b43bd55bae256ab29f82f9a832af14875400ed11 + pristine_git_object: d4b29eb056d19f0fd7a78faf2bcb26f7920435b8 + src/codat_sync_for_expenses/models/shared/mappingoptions.py: + id: 1f461eb81b58 + last_write_checksum: sha1:9a16af3d1081b64ff87a5499ce6fab4cb42122ae + pristine_git_object: 012243f1aa35a0b562b950d467d2066be490eb28 + src/codat_sync_for_expenses/models/shared/metadata.py: + id: ed2ac7116f1e + last_write_checksum: sha1:447e3ef9daff666fb43dbec55537c594a5061e72 + pristine_git_object: ddf19744b1548a6bb77b53dabdd1091a80fb132a + src/codat_sync_for_expenses/models/shared/phonenumber_items.py: + id: b2dd60bd9da9 + last_write_checksum: sha1:757595aebe2e5c36e421c77b8219a3fc42aefb8e + pristine_git_object: 4beb5d1c75e07050c35f84e96c24289539f58c82 + src/codat_sync_for_expenses/models/shared/pulloperation.py: + id: 20403ec5d20f + last_write_checksum: sha1:d14c306081b745935130f86b5dc87e241d7e9c20 + pristine_git_object: 704b9980d888d8872faeca4e1b5a458e0d8cdc6e + src/codat_sync_for_expenses/models/shared/pulloperations.py: + id: 39252f4dfcc4 + last_write_checksum: sha1:538ba2d3fc508164080b4d91aa16974bc43153bf + pristine_git_object: 450c34d574ca94c8e67a83ed8ecf8ba6386d5d0a + src/codat_sync_for_expenses/models/shared/pushchangetype.py: + id: 0b0958593bb4 + last_write_checksum: sha1:b263b06ca5c495200d5627bedea075aaf2e7aec9 + pristine_git_object: 76371e9e3d91f7b55bbba84b28e53b8423982d93 + src/codat_sync_for_expenses/models/shared/pushfieldvalidation.py: + id: 4a5a4cb753cc + last_write_checksum: sha1:85bd2682d421530c79453fd2bb28bb7e9b69debf + pristine_git_object: 754aff838385c324757f442214bed7310ab19ac6 + src/codat_sync_for_expenses/models/shared/pushoperation.py: + id: 3517b3e9935f + last_write_checksum: sha1:45df12a7f85f1f5e87d979328373d79370dfe4f9 + pristine_git_object: 491a3ca82e36d7c8c95180e06cafa35bac5b4aac + src/codat_sync_for_expenses/models/shared/pushoperationchange.py: + id: b8d6d50ad42f + last_write_checksum: sha1:225b29fec27e85dbcbee324a5e1e41e0320062bf + pristine_git_object: 9691a11a24971aefc8baca6bccf5e1b21312ea00 + src/codat_sync_for_expenses/models/shared/pushoperationref.py: + id: fb1269945a8b + last_write_checksum: sha1:77c5d8ebc7f948cb39fc110d4c9fc0d98d48106c + pristine_git_object: a49fff40047a523a4ab55232ca7da4653f276076 + src/codat_sync_for_expenses/models/shared/pushoperations.py: + id: 9af2185373e7 + last_write_checksum: sha1:541c2093cc651cd46b180fef9816c80e6aaf5234 + pristine_git_object: cc201ae996ee85a2e53738e69216b2f27d2601ec + src/codat_sync_for_expenses/models/shared/pushoperationstatus.py: + id: c698fe9694b6 + last_write_checksum: sha1:e89dd5bfb1bd6889e43c352f52d969b5afb39a9d + pristine_git_object: 09fa8b1f2b82555de549f5a923b1e5937c4ae322 + src/codat_sync_for_expenses/models/shared/pushoption.py: + id: f6060a04ffd9 + last_write_checksum: sha1:f003d1ca55f72b8cc8b275eeab053117b0807264 + pristine_git_object: 213dc66f76ea0c09fccb19570932482ee805edbd + src/codat_sync_for_expenses/models/shared/pushoptionchoice.py: + id: eb4423c1d52f + last_write_checksum: sha1:fc1fb5f003a55998525fdae0080c7ce1852052af + pristine_git_object: d9a345dacadc91ac6c1e14f3befafd9cb8f726f8 + src/codat_sync_for_expenses/models/shared/pushoptionproperty.py: + id: 5d6b7a255304 + last_write_checksum: sha1:c7f01e1ce0d87674692d47a4dcf10227824cab1e + pristine_git_object: f97c12d688da1f7639f4e5127f00adf2e3ca2a6f + src/codat_sync_for_expenses/models/shared/pushoptiontype.py: + id: e3fe8c57af4f + last_write_checksum: sha1:504af1bcd8284b1140331bd704633863a2dcb976 + pristine_git_object: c9c246f2a5647e93ffbd8f932e8074bc2b4caa8c + src/codat_sync_for_expenses/models/shared/pushvalidationinfo.py: + id: c7544b903806 + last_write_checksum: sha1:323d9d87e11a720702b78ef14a96be8ba881d281 + pristine_git_object: eac1327150b5dfd1d28733b2b3e26d21812feada + src/codat_sync_for_expenses/models/shared/recordref.py: + id: 4d572d86b607 + last_write_checksum: sha1:42ebf621daa96d7806e471d52300bbe9ae461957 + pristine_git_object: 1ba3d6e789518b3539fd916bc0020ec426fbcba2 + src/codat_sync_for_expenses/models/shared/reimbursableexpensetransaction.py: + id: be4394b6b248 + last_write_checksum: sha1:7dad953e25ae358be78fdbe7dac2831b3a961583 + pristine_git_object: 6da9dad5371dbbf2b2cf6c6d5e3b14321bca3aeb + src/codat_sync_for_expenses/models/shared/reimbursableexpensetransactionline.py: + id: f6986042fd42 + last_write_checksum: sha1:272b00ca221280798ecfc225eee9011a691a069a + pristine_git_object: 7d32bbbf2543167017c2bfaa86490d7754b73c59 + src/codat_sync_for_expenses/models/shared/reimbursementcontactref.py: + id: 90aeaf49ad6c + last_write_checksum: sha1:8a71b23f0ca486190941a1011477e6ee28a29201 + pristine_git_object: 51cb2d5ec70d5cb7f95b69cb1171cde5469f2f85 + src/codat_sync_for_expenses/models/shared/schema_datatype.py: + id: 8f28952871cf + last_write_checksum: sha1:ac4dd220a6a60d7fefb1d735cf11259bed998154 + pristine_git_object: aa72f531c6213646c8f87f11a80877186eb83a9b + src/codat_sync_for_expenses/models/shared/schema_transaction.py: + id: 4b4aec1cfe02 + last_write_checksum: sha1:df4a7b73755a6a0dad61d2d98a9696ec48a4e532 + pristine_git_object: a486e39633c1f6d83d0fe9f86d5b1175a84f2848 + src/codat_sync_for_expenses/models/shared/security.py: + id: 2cc6162bad1d + last_write_checksum: sha1:f25d86580d0e339c885459fddeffccb4acc54c51 + pristine_git_object: 0963a8d5fd0237fbe5e4c7b68bca4ac8ce2adfa6 + src/codat_sync_for_expenses/models/shared/status.py: + id: 048acc1590dc + last_write_checksum: sha1:4e3d6067fb58f59dd982c416e0dfb9b5eaf1ece5 + pristine_git_object: bab5b3828780c9f3a05e7b7a710f39790417acfd + src/codat_sync_for_expenses/models/shared/supplementaldata.py: + id: 3313440b4092 + last_write_checksum: sha1:88d0d438a14eb97ddb44700cd49572213a17b751 + pristine_git_object: c3943955308b35f51483d6d105a7dd932126b35b + src/codat_sync_for_expenses/models/shared/supplier.py: + id: 9b2d8aa8bba7 + last_write_checksum: sha1:e2764f680931e2c65b3f8e1fb31360c085117a69 + pristine_git_object: 1acfb52e3d81d63a4d1a1f6427fd1ca9ca59a277 + src/codat_sync_for_expenses/models/shared/supplierdetails.py: + id: 6421d62e0967 + last_write_checksum: sha1:3695390e17ed5da0cb8f16b64ead982fe9237dc8 + pristine_git_object: 4ee414aef622a7c0d1cea5d5e9b6aded7d40230c + src/codat_sync_for_expenses/models/shared/suppliers.py: + id: f07433c0607c + last_write_checksum: sha1:8617305d55c1a8913e71ae0e5f3c1f9c149774df + pristine_git_object: 197c4d2819df81899eb187e246cb6ea6459ced0d + src/codat_sync_for_expenses/models/shared/supplierstatus.py: + id: 2f1df013a451 + last_write_checksum: sha1:40fbb3969f650a2e9e44d161449b2657ec71afd6 + pristine_git_object: 0f77858378e92bc4a21c9a82ea0b496b8211230d + src/codat_sync_for_expenses/models/shared/taxratemappinginfo.py: + id: 48201472c97e + last_write_checksum: sha1:e358beb7883d815b67d1f6f69d1ee01bb5ff81d0 + pristine_git_object: 9b14b78b25737a94a01c258067b31eb8bb0a89a7 + src/codat_sync_for_expenses/models/shared/trackingcategorymappinginfo.py: + id: 44ce766d8150 + last_write_checksum: sha1:ade3c3f2ad412d5a9a3222df9f19d26ee1c5c2b1 + pristine_git_object: f2f9314e04919624f64eb5f5b9592bd23aed0231 + src/codat_sync_for_expenses/models/shared/trackingref.py: + id: d40af23e7626 + last_write_checksum: sha1:8667aa9094876141b85d735818f06b0c13af0509 + pristine_git_object: 14381c67b08a1fa81cc29d4c66504183cc1582d1 + src/codat_sync_for_expenses/models/shared/trackingrefadjustmenttransaction.py: + id: b2e89e7bf28f + last_write_checksum: sha1:fdfa8b5b2403ffc6b9a7a003abfd50b7c7c0935c + pristine_git_object: 55f0a13de782e150e3548e514f714659a854c9fb + src/codat_sync_for_expenses/models/shared/transaction.py: + id: b294ad5ed60f + last_write_checksum: sha1:b1f55631a266f12912557a46d2eedb3d8793a0c9 + pristine_git_object: 78fa181b1e5eef9046a1daa709f4f685ebc8d769 + src/codat_sync_for_expenses/models/shared/transactions.py: + id: 9675aad54a84 + last_write_checksum: sha1:f63249ecdcc3dc5c599e7311e85a0d2b0f8ccba8 + pristine_git_object: f510a189c35966b6e57f4b44e27c431641b0082d + src/codat_sync_for_expenses/models/shared/transactionstatus.py: + id: 8d7b6b668258 + last_write_checksum: sha1:c54d3439c7f8e92ca5891f95b8750712a5530871 + pristine_git_object: a6a2deccc9cc822b265b42d155aa5e884aa5e8e7 + src/codat_sync_for_expenses/models/shared/transfertransactionrequest.py: + id: 8438ce70b498 + last_write_checksum: sha1:31d8f2655b6b1eb09f0f8defe76e1d6ea7adb4df + pristine_git_object: 1d49b752265b2191b372f17bb984d3c378341bf3 + src/codat_sync_for_expenses/models/shared/transfertransactionresponse.py: + id: cfea6c6cd407 + last_write_checksum: sha1:728d87e933e9c5473d3a85c85cf826dde33ab365 + pristine_git_object: b4f2ed72c80ccbf2eaae8116400addec7ecaa05c + src/codat_sync_for_expenses/models/shared/updatecustomerresponse.py: + id: 5bec316bf56d + last_write_checksum: sha1:7e04285ff136a78f70cd51f2cea4fac69c6554e6 + pristine_git_object: f5f0cdaad18576aed0e3e7af50cdcc521800b88d + src/codat_sync_for_expenses/models/shared/updateexpenserequest.py: + id: 129650b27aa5 + last_write_checksum: sha1:be4b988bc941617fed761a9c918de2e430121744 + pristine_git_object: b37c5aa92628c196fe4f468e27b82b4e2fde8d30 + src/codat_sync_for_expenses/models/shared/updateexpenseresponse.py: + id: c04dbe7628cd + last_write_checksum: sha1:e01451321d8554d02b78ac8285e469a07e0fb582 + pristine_git_object: 895e0eec5354e63c99ae33d8cd60e4b7cdedcac8 + src/codat_sync_for_expenses/models/shared/updatereimbursableexpensetransactionrequest.py: + id: 722020d476b8 + last_write_checksum: sha1:9c81ea8f13fda73dffd2f5e6d6165729cec45a02 + pristine_git_object: 4bce9f4cd7d59051a6457efa992ca5b8ec0f44fc + src/codat_sync_for_expenses/models/shared/updatesupplierresponse.py: + id: b12cc5249c1d + last_write_checksum: sha1:b029cf02f0b613e5ecc67bedc1a90c8ae593d4d1 + pristine_git_object: b3065bc7c1ac5cf1ca28747d5dc7c67548e4dbee + src/codat_sync_for_expenses/models/shared/validation.py: + id: 094c3072fe3a + last_write_checksum: sha1:95314ee78df8b994c168ebead62460335cdda0ff + pristine_git_object: c528aa693862a386522364b18afd6ee00e051d6d + src/codat_sync_for_expenses/models/shared/validationitem.py: + id: 980488165c9f + last_write_checksum: sha1:1b84f45d1043b63641a52ce70d5b2b9bea696b0b + pristine_git_object: 9caa2170ce54e5bc5e62eaba1f458d7658b2d0dd + src/codat_sync_for_expenses/models/shared/validfor.py: + id: 23bd8a47b1dc + last_write_checksum: sha1:7d304187c90806c44230a8c655cea4d8c5bc3e74 + pristine_git_object: 5141d7a4247032f82ac712a4947f3e65fdeaef5d + src/codat_sync_for_expenses/models/shared/validtransactiontypes.py: + id: 7825b6ccb229 + last_write_checksum: sha1:7b6b314539e8b6258d56e417cdc5e296f37e2daf + pristine_git_object: 3751f5020669efcbc816d484ee23fd606eea31a4 + src/codat_sync_for_expenses/push_operations.py: + id: d47dd9babd68 + last_write_checksum: sha1:bdacb2bbe086669570485f2a463fe05f0521fad4 + pristine_git_object: e3736b5651c4123ef146c9f9d4228c890189ea83 + src/codat_sync_for_expenses/py.typed: + id: e310e43dfdd2 + last_write_checksum: sha1:8efc425ffe830805ffcc0f3055871bdcdc542c60 + pristine_git_object: 3e38f1a929f7d6b1d6de74604aa87e3d8f010544 + src/codat_sync_for_expenses/reimbursements.py: + id: acc1858c3fb3 + last_write_checksum: sha1:3cdd90c4087de4d246c694f92aa97de4eee8c3ab + pristine_git_object: c88213a6129ad8fe5f392ac31c9d9d4560460c32 + src/codat_sync_for_expenses/sdk.py: + id: 5078dc18b55d + last_write_checksum: sha1:fa3db0ca7da31db0a3b965ea227cb9485ac18632 + pristine_git_object: 83328ccee5e18bfff2517f3ab52d1286654a83f1 + src/codat_sync_for_expenses/sdkconfiguration.py: + id: 3887fca06eee + last_write_checksum: sha1:92f974d41ae94af3373d656dcfb233aa224ad4ec + pristine_git_object: c775d7e3c066e387d574111dafb5c6761d6d758f + src/codat_sync_for_expenses/suppliers.py: + id: 8b0ba331d831 + last_write_checksum: sha1:cdc848e1897fca545a889c650eee9d9ae40f34a0 + pristine_git_object: aa59544a19462a1c213a660c5632931624da96b5 + src/codat_sync_for_expenses/sync.py: + id: 823586a122d7 + last_write_checksum: sha1:1ab1aff430bb318d0de8cd234f772ea5b3e5a916 + pristine_git_object: d7ecb923f19034abba3e828029032e22fd2330aa + src/codat_sync_for_expenses/transaction_status.py: + id: 90c0b74e6ab7 + last_write_checksum: sha1:147d51667c31dc1407e8ff7a629c7fd0c5745a69 + pristine_git_object: b7cedfb4a4f856c859b81c2d571fb2ed9a25ac56 + src/codat_sync_for_expenses/transfers.py: + id: 762c7677672c + last_write_checksum: sha1:5c6789fa292c55469b6b772d4c61fe6c56a456d8 + pristine_git_object: 373ec19a755164f21aee97767dd64cfbca371aeb + src/codat_sync_for_expenses/types/__init__.py: + id: b28e148a29db + last_write_checksum: sha1:140ebdd01a46f92ffc710c52c958c4eba3cf68ed + pristine_git_object: fc76fe0c5505e29859b5d2bb707d48fd27661b8c + src/codat_sync_for_expenses/types/basemodel.py: + id: 3ebd98b38780 + last_write_checksum: sha1:10d84aedeb9d35edfdadf2c3020caa1d24d8b584 + pristine_git_object: a9a640a1a7048736383f96c67c6290c86bf536ee + src/codat_sync_for_expenses/utils/__init__.py: + id: 27ee60b8a17f + last_write_checksum: sha1:1970816f2234ecb8785798240b0edced961de971 + pristine_git_object: 0498cb8dabf249b39609f81fb10cddc30f1b78b5 + src/codat_sync_for_expenses/utils/annotations.py: + id: 5954e7143d01 + last_write_checksum: sha1:a4824ad65f730303e4e1e3ec1febf87b4eb46dbc + pristine_git_object: 12e0aa4f1151bb52474cc02e88397329b90703f6 + src/codat_sync_for_expenses/utils/datetimes.py: + id: 4e739c1a5e18 + last_write_checksum: sha1:c721e4123000e7dc61ec52b28a739439d9e17341 + pristine_git_object: a6c52cd61bbe2d459046c940ce5e8c469f2f0664 + src/codat_sync_for_expenses/utils/dynamic_imports.py: + id: 58979bac04d1 + last_write_checksum: sha1:a1940c63feb8eddfd8026de53384baf5056d5dcc + pristine_git_object: 673edf82a97d0fea7295625d3e092ea369a36b79 + src/codat_sync_for_expenses/utils/enums.py: + id: af76c8a61dbf + last_write_checksum: sha1:bc8c3c1285ae09ba8a094ee5c3d9c7f41fa1284d + pristine_git_object: 3324e1bc2668c54c4d5f5a1a845675319757a828 + src/codat_sync_for_expenses/utils/eventstreaming.py: + id: 3f45f5d8ab8b + last_write_checksum: sha1:ffa870a25a7e4e2015bfd7a467ccd3aa1de97f0e + pristine_git_object: f2052fc22d9fd6c663ba3dce019fe234ca37108b + src/codat_sync_for_expenses/utils/forms.py: + id: 994366b7c5ee + last_write_checksum: sha1:15fa7e9ab1611e062a9984cf06cb20969713d295 + pristine_git_object: f961e76beaf0a8b1fe0dda44754a74eebd3608e7 + src/codat_sync_for_expenses/utils/headers.py: + id: bdd204d4a5ef + last_write_checksum: sha1:7c6df233ee006332b566a8afa9ce9a245941d935 + pristine_git_object: 37864cbbbc40d1a47112bbfdd3ba79568fc8818a + src/codat_sync_for_expenses/utils/logger.py: + id: 08387b5c7fa0 + last_write_checksum: sha1:f3fdb154a3f09b8cc43d74c7e9c02f899f8086e4 + pristine_git_object: b661aff65d38b77d035149699aea09b2785d2fc6 + src/codat_sync_for_expenses/utils/metadata.py: + id: c7a7a7f47cab + last_write_checksum: sha1:c6a560bd0c63ab158582f34dadb69433ea73b3d4 + pristine_git_object: 173b3e5ce658675c2f504222a56b3daaaa68107d + src/codat_sync_for_expenses/utils/queryparams.py: + id: 0df03c7633a7 + last_write_checksum: sha1:b94c3f314fd3da0d1d215afc2731f48748e2aa59 + pristine_git_object: c04e0db82b68eca041f2cb2614d748fbac80fd41 + src/codat_sync_for_expenses/utils/requestbodies.py: + id: 75c6e5c77090 + last_write_checksum: sha1:41e2d2d2d3ecc394c8122ca4d4b85e1c3e03f054 + pristine_git_object: 1de32b6d26f46590232f398fdba6ce0072f1659c + src/codat_sync_for_expenses/utils/retries.py: + id: a26553975c8e + last_write_checksum: sha1:471372f5c5d1dd5583239c9cf3c75f1b636e5d87 + pristine_git_object: af07d4e941007af4213c5ec9047ef8a2fca04e5e + src/codat_sync_for_expenses/utils/security.py: + id: 1c5e552f39c9 + last_write_checksum: sha1:435dd8b180cefcd733e635b9fa45512da091d9c0 + pristine_git_object: 17996bd54b8624009802fbbdf30bcb4225b8dfed + src/codat_sync_for_expenses/utils/serializers.py: + id: ef50cb660918 + last_write_checksum: sha1:ce1d8d7f500a9ccba0aeca5057cee9c271f4dfd7 + pristine_git_object: 14321eb479de81d0d9580ec8291e0ff91bf29e57 + src/codat_sync_for_expenses/utils/unmarshal_json_response.py: + id: 18372fc36b7e + last_write_checksum: sha1:820e522b0636ff7a98f8faa121d96366cad2343a + pristine_git_object: 4853515261950ffcc0676415c510b5f2bce0073f + src/codat_sync_for_expenses/utils/url.py: + id: c39335fbff44 + last_write_checksum: sha1:6479961baa90432ca25626f8e40a7bbc32e73b41 + pristine_git_object: c78ccbae426ce6d385709d97ce0b1c2813ea2418 + src/codat_sync_for_expenses/utils/values.py: + id: 648fa5680f17 + last_write_checksum: sha1:acaa178a7c41ddd000f58cc691e4632d925b2553 + pristine_git_object: dae01a44384ac3bc13ae07453a053bf6c898ebe3 examples: create-company: With no description: @@ -477,25 +1748,27 @@ examples: application/json: {"name": "Technicalium"} responses: "200": - application/json: {"created": "2022-11-10T10:45:18.1950523Z", "createdByUserName": "Dan Tzabar", "dataConnections": [], "description": "", "id": "ab12c58d-a678-4ebf-a159-ae99e1807bd0", "name": "Technicalium", "redirect": "https://link.codat.io/company/ab12c58d-a678-4ebf-a159-ae99e1807bd0", "referenceSubsidiaryCompanies": []} + application/json: {"created": "2022-11-10T10:45:18.1950523Z", "createdByUserName": "Dan Tzabar", "dataConnections": [], "description": "", "id": "ab12c58d-a678-4ebf-a159-ae99e1807bd0", "name": "Technicalium", "products": ["spend-insights"], "redirect": "https://link.codat.io/company/ab12c58d-a678-4ebf-a159-ae99e1807bd0", "referenceSubsidiaryCompanies": []} With a description: requestBody: application/json: {"description": "Technology services, including web and app design and development", "name": "Technicalium"} responses: "200": - application/json: {"created": "2022-11-10T10:45:18.1950523Z", "createdByUserName": "Dan Tzabar", "dataConnections": [], "description": "Technology services, including web and app design and development", "id": "ab12c58d-a678-4ebf-a159-ae99e1807bd0", "name": "Technicalium", "redirect": "https://link.codat.io/company/ab12c58d-a678-4ebf-a159-ae99e1807bd0", "referenceSubsidiaryCompanies": []} + application/json: {"created": "2022-11-10T10:45:18.1950523Z", "createdByUserName": "Dan Tzabar", "dataConnections": [], "description": "Technology services, including web and app design and development", "id": "ab12c58d-a678-4ebf-a159-ae99e1807bd0", "name": "Technicalium", "products": ["spend-insights"], "redirect": "https://link.codat.io/company/ab12c58d-a678-4ebf-a159-ae99e1807bd0", "referenceSubsidiaryCompanies": []} With a tag: requestBody: application/json: {"description": "Requested early access to the new financing scheme.", "name": "Bank of Dave"} responses: "200": - application/json: {"created": "2022-11-10T10:45:18.1950523Z", "createdByUserName": "Dan Tzabar", "dataConnections": [], "description": "", "id": "ab12c58d-a678-4ebf-a159-ae99e1807bd0", "name": "Technicalium", "redirect": "https://link.codat.io/company/ab12c58d-a678-4ebf-a159-ae99e1807bd0", "referenceSubsidiaryCompanies": [], "tags": {"region": "us"}} + application/json: {"created": "2022-11-10T10:45:18.1950523Z", "createdByUserName": "Dan Tzabar", "dataConnections": [], "description": "", "id": "ab12c58d-a678-4ebf-a159-ae99e1807bd0", "name": "Technicalium", "products": ["spend-insights"], "redirect": "https://link.codat.io/company/ab12c58d-a678-4ebf-a159-ae99e1807bd0", "referenceSubsidiaryCompanies": [], "tags": {"region": "us"}} Malformed query: requestBody: application/json: {"description": "Requested early access to the new financing scheme.", "name": "Bank of Dave"} responses: "400": application/json: {"canBeRetried": "Unknown", "correlationId": "bc997528a9d7abb9161ef45f05d38599", "detailedErrorCode": 0, "error": "Error processing request - not valid.", "service": "PublicApi", "statusCode": 400} + "500": + application/json: {"canBeRetried": "Unknown", "correlationId": "bc997528a9d7abb9161ef45f05d38599", "detailedErrorCode": 0, "error": "Error processing request - not valid.", "service": "PublicApi", "statusCode": 400} delete-company: Unauthorized: parameters: @@ -504,6 +1777,17 @@ examples: responses: "401": application/json: {"canBeRetried": "Unknown", "correlationId": "7eb40d6b415d7bcd99ce658268284056", "detailedErrorCode": 0, "error": "Unauthorized", "service": "PublicApi", "statusCode": 401} + "500": + application/json: {"canBeRetried": "Unknown", "correlationId": "7eb40d6b415d7bcd99ce658268284056", "detailedErrorCode": 0, "error": "Unauthorized", "service": "PublicApi", "statusCode": 401} + speakeasy-default-delete-company: + parameters: + path: + companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" + responses: + "401": + application/json: {} + "500": + application/json: {} get-company: Simple company: parameters: @@ -511,21 +1795,21 @@ examples: companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" responses: "200": - application/json: {"created": "2022-11-10T10:45:18Z", "createdByUserName": "Dan Tzabar", "dataConnections": [], "description": "", "id": "ab12c58d-a678-4ebf-a159-ae99e1807bd0", "name": "Toft stores holdings", "redirect": "https://link.codat.io/company/ab12c58d-a678-4ebf-a159-ae99e1807bd0", "referenceSubsidiaryCompanies": []} + application/json: {"created": "2022-11-10T10:45:18Z", "createdByUserName": "Dan Tzabar", "dataConnections": [], "description": "", "id": "ab12c58d-a678-4ebf-a159-ae99e1807bd0", "name": "Toft stores holdings", "products": ["spend-insights", "lending", "expenses-v1", "commerce"], "redirect": "https://link.codat.io/company/ab12c58d-a678-4ebf-a159-ae99e1807bd0", "referenceSubsidiaryCompanies": []} Parent multi-entity company: parameters: path: companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" responses: "200": - application/json: {"created": "2022-11-10T10:45:18Z", "createdByUserName": "Dan Tzabar", "dataConnections": [], "description": "", "id": "ab12c58d-a678-4ebf-a159-ae99e1807bd0", "name": "Toft stores", "redirect": "https://link.codat.io/company/ab12c58d-a678-4ebf-a159-ae99e1807bd0", "referenceSubsidiaryCompanies": [{"id": "c8d3af58-7011-47ce-b3f2-89faf300ef6d", "links": {"portal": "https://app.codat.io/companies/c8d3af58-7011-47ce-b3f2-89faf300ef6d/summary"}, "name": "Toft stores UK"}, {"id": "db94eddc-9212-4568-9b5c-3eab0e325913", "links": {"portal": "https://app.codat.io/companies/db94eddc-9212-4568-9b5c-3eab0e325913/summary"}, "name": "Toft stores US"}]} + application/json: {"created": "2022-11-10T10:45:18Z", "createdByUserName": "Dan Tzabar", "dataConnections": [], "description": "", "id": "ab12c58d-a678-4ebf-a159-ae99e1807bd0", "name": "Toft stores", "products": ["spend-insights", "lending", "expenses-v1", "commerce"], "redirect": "https://link.codat.io/company/ab12c58d-a678-4ebf-a159-ae99e1807bd0", "referenceSubsidiaryCompanies": [{"id": "c8d3af58-7011-47ce-b3f2-89faf300ef6d", "links": {"portal": "https://app.codat.io/companies/c8d3af58-7011-47ce-b3f2-89faf300ef6d/summary"}, "name": "Toft stores UK"}, {"id": "db94eddc-9212-4568-9b5c-3eab0e325913", "links": {"portal": "https://app.codat.io/companies/db94eddc-9212-4568-9b5c-3eab0e325913/summary"}, "name": "Toft stores US"}]} Subsidiary multi-entity company: parameters: path: companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" responses: "200": - application/json: {"created": "2022-11-10T10:45:18Z", "createdByUserName": "Dan Tzabar", "dataConnections": [{"created": "2022-01-01T11:30:00Z", "id": "d5ab61b7-1ad0-46fd-9f9f-b6761047941e", "integrationId": "cc750323-5a47-4f28-8d8e-30fbbf2ce137", "integrationKey": "akxx", "lastSync": "2022-01-01T12:30:00.000Z", "linkUrl": "https://link-api.codat.io/companies/c8d3af58-7011-47ce-b3f2-89faf300ef6d/connections/d5ab61b7-1ad0-46fd-9f9f-b6761047941e/start", "platformName": "Oracle NetSuite", "sourceId": "9815b998-024d-4415-a40b-89903b2cad6f", "sourceType": "Accounting", "status": "Linked"}], "description": "", "id": "c8d3af58-7011-47ce-b3f2-89faf300ef6d", "name": "Toft stores UK", "redirect": "https://link.codat.io/company/c8d3af58-7011-47ce-b3f2-89faf300ef6d", "referenceParentCompany": {"id": "ab12c58d-a678-4ebf-a159-ae99e1807bd0", "links": {"portal": "https://app.codat.io/companies/ab12c58d-a678-4ebf-a159-ae99e1807bd0/summary"}, "name": "Toft stores"}, "referenceSubsidiaryCompanies": []} + application/json: {"created": "2022-11-10T10:45:18Z", "createdByUserName": "Dan Tzabar", "dataConnections": [{"created": "2022-01-01T11:30:00Z", "id": "d5ab61b7-1ad0-46fd-9f9f-b6761047941e", "integrationId": "cc750323-5a47-4f28-8d8e-30fbbf2ce137", "integrationKey": "akxx", "lastSync": "2022-01-01T12:30:00.000Z", "linkUrl": "https://link-api.codat.io/companies/c8d3af58-7011-47ce-b3f2-89faf300ef6d/connections/d5ab61b7-1ad0-46fd-9f9f-b6761047941e/start", "platformName": "Oracle NetSuite", "sourceId": "9815b998-024d-4415-a40b-89903b2cad6f", "sourceType": "Accounting", "status": "Linked"}], "description": "", "id": "c8d3af58-7011-47ce-b3f2-89faf300ef6d", "name": "Toft stores UK", "products": ["spend-insights", "lending", "expenses-v1", "commerce"], "redirect": "https://link.codat.io/company/c8d3af58-7011-47ce-b3f2-89faf300ef6d", "referenceParentCompany": {"id": "ab12c58d-a678-4ebf-a159-ae99e1807bd0", "links": {"portal": "https://app.codat.io/companies/ab12c58d-a678-4ebf-a159-ae99e1807bd0/summary"}, "name": "Toft stores"}, "referenceSubsidiaryCompanies": []} Unauthorized: parameters: path: @@ -533,18 +1817,24 @@ examples: responses: "401": application/json: {"canBeRetried": "Unknown", "correlationId": "7eb40d6b415d7bcd99ce658268284056", "detailedErrorCode": 0, "error": "Unauthorized", "service": "PublicApi", "statusCode": 401} + "500": + application/json: {"canBeRetried": "Unknown", "correlationId": "7eb40d6b415d7bcd99ce658268284056", "detailedErrorCode": 0, "error": "Unauthorized", "service": "PublicApi", "statusCode": 401} list-companies: - "": + speakeasy-default-list-companies: parameters: query: page: 1 pageSize: 100 query: "id=e3334455-1aed-4e71-ab43-6bccf12092ee" orderBy: "-modifiedDate" + tags: "region=uk && team=invoice-finance" responses: "200": application/json: {"_links": {"current": {"href": "/companies/{id}/data/{dataType}?page=1&pageSize=10"}, "self": {"href": "/companies/{id}/data/{dataType}"}}, "pageNumber": 1, "pageSize": 10, "totalResults": 1} - "400": {} + "400": + application/json: {} + "500": + application/json: {} One company: parameters: query: @@ -552,9 +1842,10 @@ examples: pageSize: 100 query: "id=e3334455-1aed-4e71-ab43-6bccf12092ee" orderBy: "-modifiedDate" + tags: "region=uk && team=invoice-finance" responses: "200": - application/json: {"_links": {"current": {"href": "/companies?page=1&pageSize=100"}, "self": {"href": "/companies"}}, "pageNumber": 1, "pageSize": 100, "results": [{"created": "2022-01-01T11:30:00Z", "createdByUserName": "Mike Smith", "dataConnections": [{"created": "2022-01-01T11:30:00Z", "id": "51baa045-4836-4317-a42e-3542e991e581", "integrationId": "1c312d69-e638-46d4-ad31-72e6c3ba8390", "integrationKey": "vjms", "lastSync": "2022-01-01T12:30:00.000Z", "linkUrl": "https://link-api.codat.io/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/connections/51baa045-4836-4317-a42e-3542e991e581/start", "platformName": "Pandle", "sourceId": "396c3158-5dd7-481b-a7c4-a795ca31792b", "sourceType": "Accounting", "status": "Linked"}], "description": "My Test Company make testing software", "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "lastSync": "2022-01-01T12:30:00.000Z", "name": "My Test Company", "redirect": "https://link.codat.io/company/3fa85f64-5717-4562-b3fc-2c963f66afa6", "referenceSubsidiaryCompanies": []}], "totalResults": 1} + application/json: {"_links": {"current": {"href": "/companies?page=1&pageSize=100"}, "self": {"href": "/companies"}}, "pageNumber": 1, "pageSize": 100, "results": [{"created": "2022-01-01T11:30:00Z", "createdByUserName": "Mike Smith", "dataConnections": [{"created": "2022-01-01T11:30:00Z", "id": "51baa045-4836-4317-a42e-3542e991e581", "integrationId": "1c312d69-e638-46d4-ad31-72e6c3ba8390", "integrationKey": "vjms", "lastSync": "2022-01-01T12:30:00.000Z", "linkUrl": "https://link-api.codat.io/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/connections/51baa045-4836-4317-a42e-3542e991e581/start", "platformName": "Pandle", "sourceId": "396c3158-5dd7-481b-a7c4-a795ca31792b", "sourceType": "Accounting", "status": "Linked"}], "description": "My Test Company make testing software", "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "lastSync": "2022-01-01T12:30:00.000Z", "name": "My Test Company", "products": ["spend-insights", "lending", "expenses-v1", "commerce"], "redirect": "https://link.codat.io/company/3fa85f64-5717-4562-b3fc-2c963f66afa6", "referenceSubsidiaryCompanies": []}], "totalResults": 1} List of Companies: parameters: query: @@ -562,9 +1853,10 @@ examples: pageSize: 100 query: "id=e3334455-1aed-4e71-ab43-6bccf12092ee" orderBy: "-modifiedDate" + tags: "region=uk && team=invoice-finance" responses: "200": - application/json: {"_links": {"current": {"href": "/companies?page=1&pageSize=100"}, "self": {"href": "/companies"}}, "pageNumber": 1, "pageSize": 100, "results": [{"created": "2022-01-01T11:30:00Z", "createdByUserName": "Joe Bloggs", "dataConnections": [{"created": "2022-01-01T11:30:00Z", "id": "51baa045-4836-4317-a42e-3542e991e581", "integrationId": "1c312d69-e638-46d4-ad31-72e6c3ba8390", "integrationKey": "vjms", "lastSync": "2022-01-01T12:30:00.000Z", "linkUrl": "https://link-api.codat.io/companies/d1568dde-adf6-11ed-afa1-0242ac120002/connections/51baa045-4836-4317-a42e-3542e991e581/start", "platformName": "Pandle", "sourceId": "396c3158-5dd7-481b-a7c4-a795ca31792b", "sourceType": "Accounting", "status": "Linked"}], "description": "Technology services, including web and app design and development", "id": "d1568dde-adf6-11ed-afa1-0242ac120002", "lastSync": "2022-01-01T12:30:00.000Z", "name": "Technicalium", "redirect": "https://link.codat.io/company/d1568dde-adf6-11ed-afa1-0242ac120002", "referenceSubsidiaryCompanies": []}, {"created": "2022-11-10T10:45:18Z", "createdByUserName": "Dan Tzabar", "dataConnections": [], "id": "ab12c58d-a678-4ebf-a159-ae99e1807bd0", "name": "Toft stores", "redirect": "https://link.codat.io/company/ab12c58d-a678-4ebf-a159-ae99e1807bd0", "referenceSubsidiaryCompanies": [{"id": "c8d3af58-7011-47ce-b3f2-89faf300ef6d", "links": {"portal": "https://app.codat.io/companies/c8d3af58-7011-47ce-b3f2-89faf300ef6d/summary"}, "name": "Toft stores UK"}, {"id": "db94eddc-9212-4568-9b5c-3eab0e325913", "links": {"portal": "https://app.codat.io/companies/db94eddc-9212-4568-9b5c-3eab0e325913/summary"}, "name": "Toft stores US"}]}, {"created": "2022-11-10T10:45:18Z", "createdByUserName": "Dan Tzabar", "dataConnections": [{"created": "2022-01-01T11:30:00Z", "id": "d5ab61b7-1ad0-46fd-9f9f-b6761047941e", "integrationId": "cc750323-5a47-4f28-8d8e-30fbbf2ce137", "integrationKey": "akxx", "lastSync": "2022-01-01T12:30:00.000Z", "linkUrl": "https://link-api.codat.io/companies/c8d3af58-7011-47ce-b3f2-89faf300ef6d/connections/d5ab61b7-1ad0-46fd-9f9f-b6761047941e/start", "platformName": "Oracle NetSuite", "sourceId": "9815b998-024d-4415-a40b-89903b2cad6f", "sourceType": "Accounting", "status": "Linked"}], "id": "c8d3af58-7011-47ce-b3f2-89faf300ef6d", "name": "Toft stores UK", "redirect": "https://link.codat.io/company/c8d3af58-7011-47ce-b3f2-89faf300ef6d", "referenceParentCompany": {"id": "ab12c58d-a678-4ebf-a159-ae99e1807bd0", "links": {"portal": "https://app.codat.io/companies/ab12c58d-a678-4ebf-a159-ae99e1807bd0/summary"}, "name": "Toft stores"}, "referenceSubsidiaryCompanies": []}, {"created": "2022-11-10T10:45:18Z", "createdByUserName": "Dan Tzabar", "dataConnections": [{"created": "2022-01-01T11:30:00Z", "id": "1e5c8c9e-27fd-4ba9-9a2a-d02ba65bc2fb", "integrationId": "cc750323-5a47-4f28-8d8e-30fbbf2ce137", "integrationKey": "akxx", "lastSync": "2022-01-01T12:30:00.000Z", "linkUrl": "https://link-api.codat.io/companies/db94eddc-9212-4568-9b5c-3eab0e325913/connections/1e5c8c9e-27fd-4ba9-9a2a-d02ba65bc2fb/start", "platformName": "Oracle NetSuite", "sourceId": "9815b998-024d-4415-a40b-89903b2cad6f", "sourceType": "Accounting", "status": "Linked"}], "id": "db94eddc-9212-4568-9b5c-3eab0e325913", "name": "Toft stores US", "redirect": "https://link.codat.io/company/db94eddc-9212-4568-9b5c-3eab0e325913", "referenceParentCompany": {"id": "ab12c58d-a678-4ebf-a159-ae99e1807bd0", "links": {"portal": "https://app.codat.io/companies/ab12c58d-a678-4ebf-a159-ae99e1807bd0/summary"}, "name": "Toft stores"}, "referenceSubsidiaryCompanies": []}], "totalResults": 3} + application/json: {"_links": {"current": {"href": "/companies?page=1&pageSize=100"}, "self": {"href": "/companies"}}, "pageNumber": 1, "pageSize": 100, "results": [{"created": "2022-01-01T11:30:00Z", "createdByUserName": "Joe Bloggs", "dataConnections": [{"created": "2022-01-01T11:30:00Z", "id": "51baa045-4836-4317-a42e-3542e991e581", "integrationId": "1c312d69-e638-46d4-ad31-72e6c3ba8390", "integrationKey": "vjms", "lastSync": "2022-01-01T12:30:00.000Z", "linkUrl": "https://link-api.codat.io/companies/d1568dde-adf6-11ed-afa1-0242ac120002/connections/51baa045-4836-4317-a42e-3542e991e581/start", "platformName": "Pandle", "sourceId": "396c3158-5dd7-481b-a7c4-a795ca31792b", "sourceType": "Accounting", "status": "Linked"}], "description": "Technology services, including web and app design and development", "id": "d1568dde-adf6-11ed-afa1-0242ac120002", "lastSync": "2022-01-01T12:30:00.000Z", "name": "Technicalium", "products": ["spend-insights", "lending", "payables-v2"], "redirect": "https://link.codat.io/company/d1568dde-adf6-11ed-afa1-0242ac120002", "referenceSubsidiaryCompanies": []}, {"created": "2022-11-10T10:45:18Z", "createdByUserName": "Dan Tzabar", "dataConnections": [], "id": "ab12c58d-a678-4ebf-a159-ae99e1807bd0", "name": "Toft stores", "products": ["spend-insights"], "redirect": "https://link.codat.io/company/ab12c58d-a678-4ebf-a159-ae99e1807bd0", "referenceSubsidiaryCompanies": [{"id": "c8d3af58-7011-47ce-b3f2-89faf300ef6d", "links": {"portal": "https://app.codat.io/companies/c8d3af58-7011-47ce-b3f2-89faf300ef6d/summary"}, "name": "Toft stores UK"}, {"id": "db94eddc-9212-4568-9b5c-3eab0e325913", "links": {"portal": "https://app.codat.io/companies/db94eddc-9212-4568-9b5c-3eab0e325913/summary"}, "name": "Toft stores US"}]}, {"created": "2022-11-10T10:45:18Z", "createdByUserName": "Dan Tzabar", "dataConnections": [{"created": "2022-01-01T11:30:00Z", "id": "d5ab61b7-1ad0-46fd-9f9f-b6761047941e", "integrationId": "cc750323-5a47-4f28-8d8e-30fbbf2ce137", "integrationKey": "akxx", "lastSync": "2022-01-01T12:30:00.000Z", "linkUrl": "https://link-api.codat.io/companies/c8d3af58-7011-47ce-b3f2-89faf300ef6d/connections/d5ab61b7-1ad0-46fd-9f9f-b6761047941e/start", "platformName": "Oracle NetSuite", "sourceId": "9815b998-024d-4415-a40b-89903b2cad6f", "sourceType": "Accounting", "status": "Linked"}], "id": "c8d3af58-7011-47ce-b3f2-89faf300ef6d", "name": "Toft stores UK", "products": ["lending", "spend-insights", "payables"], "redirect": "https://link.codat.io/company/c8d3af58-7011-47ce-b3f2-89faf300ef6d", "referenceParentCompany": {"id": "ab12c58d-a678-4ebf-a159-ae99e1807bd0", "links": {"portal": "https://app.codat.io/companies/ab12c58d-a678-4ebf-a159-ae99e1807bd0/summary"}, "name": "Toft stores"}, "referenceSubsidiaryCompanies": []}, {"created": "2022-11-10T10:45:18Z", "createdByUserName": "Dan Tzabar", "dataConnections": [{"created": "2022-01-01T11:30:00Z", "id": "1e5c8c9e-27fd-4ba9-9a2a-d02ba65bc2fb", "integrationId": "cc750323-5a47-4f28-8d8e-30fbbf2ce137", "integrationKey": "akxx", "lastSync": "2022-01-01T12:30:00.000Z", "linkUrl": "https://link-api.codat.io/companies/db94eddc-9212-4568-9b5c-3eab0e325913/connections/1e5c8c9e-27fd-4ba9-9a2a-d02ba65bc2fb/start", "platformName": "Oracle NetSuite", "sourceId": "9815b998-024d-4415-a40b-89903b2cad6f", "sourceType": "Accounting", "status": "Linked"}], "id": "db94eddc-9212-4568-9b5c-3eab0e325913", "name": "Toft stores US", "products": ["spend-insights"], "redirect": "https://link.codat.io/company/db94eddc-9212-4568-9b5c-3eab0e325913", "referenceParentCompany": {"id": "ab12c58d-a678-4ebf-a159-ae99e1807bd0", "links": {"portal": "https://app.codat.io/companies/ab12c58d-a678-4ebf-a159-ae99e1807bd0/summary"}, "name": "Toft stores"}, "referenceSubsidiaryCompanies": []}], "totalResults": 3} Malformed query: parameters: query: @@ -572,9 +1864,12 @@ examples: pageSize: 100 query: "id=e3334455-1aed-4e71-ab43-6bccf12092ee" orderBy: "-modifiedDate" + tags: "region=uk && team=invoice-finance" responses: "400": application/json: {"canBeRetried": "Unknown", "correlationId": "bc997528a9d7abb9161ef45f05d38599", "detailedErrorCode": 0, "error": "Error parsing query - Malformed query.", "service": "ClientsApi", "statusCode": 400} + "500": + application/json: {"canBeRetried": "Unknown", "correlationId": "bc997528a9d7abb9161ef45f05d38599", "detailedErrorCode": 0, "error": "Error parsing query - Malformed query.", "service": "ClientsApi", "statusCode": 400} Unresolved property: parameters: query: @@ -582,10 +1877,13 @@ examples: pageSize: 100 query: "id=e3334455-1aed-4e71-ab43-6bccf12092ee" orderBy: "-modifiedDate" + tags: "region=uk && team=invoice-finance" responses: "400": application/json: {"canBeRetried": "Unknown", "correlationId": "98457fb9956b7f9b4b2fd4f6e23bb5c8", "detailedErrorCode": 0, "error": "Error parsing query - Could not resolve property isCompleted on Dataset", "service": "PullApi", "statusCode": 400} - update-company: + "500": + application/json: {"canBeRetried": "Unknown", "correlationId": "98457fb9956b7f9b4b2fd4f6e23bb5c8", "detailedErrorCode": 0, "error": "Error parsing query - Could not resolve property isCompleted on Dataset", "service": "PullApi", "statusCode": 400} + replace-company: Update name: parameters: path: @@ -594,8 +1892,11 @@ examples: application/json: {"name": "New Name"} responses: "200": - application/json: {"created": "2022-01-01T12:00:00.000Z", "createdByUserName": "string", "dataConnections": [{"created": "2022-10-27T09:53:29Z", "id": "ee2eb431-c0fa-4dc9-93fa-d29781c12bcd", "integrationId": "bf083d72-62c7-493e-aec9-81b4dbba7e2c", "integrationKey": "dfxm", "lastSync": "2022-10-27T10:22:43.6464237Z", "linkUrl": "https://link-api.codat.io/companies/86bd88cb-44ab-4dfb-b32f-87b19b14287f/connections/ee2eb431-c0fa-4dc9-93fa-d29781c12bcd/start", "platformName": "Basiq", "sourceId": "bdd831ce-eebd-4896-89a7-20e5ee8989ee", "sourceType": "Banking", "status": "Linked"}], "id": "0498e921-9b53-4396-a412-4f2f5983b0a2", "lastSync": "2022-01-01T12:00:00.000Z", "name": "string", "redirect": "https://link.codat.io/company/27628208-459c-46a2-a705-5641ce25f739", "tags": {"region": "us", "uid": "f6b0c253-16c7-4da1-a0c5-9c871e9c9d6c"}} - "401": {} + application/json: {"created": "2022-01-01T12:00:00.000Z", "createdByUserName": "string", "dataConnections": [{"created": "2022-10-27T09:53:29Z", "id": "ee2eb431-c0fa-4dc9-93fa-d29781c12bcd", "integrationId": "bf083d72-62c7-493e-aec9-81b4dbba7e2c", "integrationKey": "dfxm", "lastSync": "2022-10-27T10:22:43.6464237Z", "linkUrl": "https://link-api.codat.io/companies/86bd88cb-44ab-4dfb-b32f-87b19b14287f/connections/ee2eb431-c0fa-4dc9-93fa-d29781c12bcd/start", "platformName": "Basiq", "sourceId": "bdd831ce-eebd-4896-89a7-20e5ee8989ee", "sourceType": "Banking", "status": "Linked"}], "id": "0498e921-9b53-4396-a412-4f2f5983b0a2", "lastSync": "2022-01-01T12:00:00.000Z", "name": "string", "products": ["spend-insights", "lending"], "redirect": "https://link.codat.io/company/27628208-459c-46a2-a705-5641ce25f739", "tags": {"region": "us", "uid": "f6b0c253-16c7-4da1-a0c5-9c871e9c9d6c"}} + "401": + application/json: {} + "500": + application/json: {} Update description: parameters: path: @@ -603,18 +1904,87 @@ examples: requestBody: application/json: {"description": "Additional documents required", "name": "Same name"} responses: - "200": - application/json: {"created": "2022-01-01T12:00:00.000Z", "createdByUserName": "string", "dataConnections": [{"created": "2022-10-27T09:53:29Z", "id": "ee2eb431-c0fa-4dc9-93fa-d29781c12bcd", "integrationId": "bf083d72-62c7-493e-aec9-81b4dbba7e2c", "integrationKey": "dfxm", "lastSync": "2022-10-27T10:22:43.6464237Z", "linkUrl": "https://link-api.codat.io/companies/86bd88cb-44ab-4dfb-b32f-87b19b14287f/connections/ee2eb431-c0fa-4dc9-93fa-d29781c12bcd/start", "platformName": "Basiq", "sourceId": "bdd831ce-eebd-4896-89a7-20e5ee8989ee", "sourceType": "Banking", "status": "Linked"}], "id": "0498e921-9b53-4396-a412-4f2f5983b0a2", "lastSync": "2022-01-01T12:00:00.000Z", "name": "string", "redirect": "https://link.codat.io/company/27628208-459c-46a2-a705-5641ce25f739", "tags": {"region": "us", "uid": "f6b0c253-16c7-4da1-a0c5-9c871e9c9d6c"}} - "401": {} - Unauthorized: + "200": + application/json: {"created": "2022-01-01T12:00:00.000Z", "createdByUserName": "string", "dataConnections": [{"created": "2022-10-27T09:53:29Z", "id": "ee2eb431-c0fa-4dc9-93fa-d29781c12bcd", "integrationId": "bf083d72-62c7-493e-aec9-81b4dbba7e2c", "integrationKey": "dfxm", "lastSync": "2022-10-27T10:22:43.6464237Z", "linkUrl": "https://link-api.codat.io/companies/86bd88cb-44ab-4dfb-b32f-87b19b14287f/connections/ee2eb431-c0fa-4dc9-93fa-d29781c12bcd/start", "platformName": "Basiq", "sourceId": "bdd831ce-eebd-4896-89a7-20e5ee8989ee", "sourceType": "Banking", "status": "Linked"}], "id": "0498e921-9b53-4396-a412-4f2f5983b0a2", "lastSync": "2022-01-01T12:00:00.000Z", "name": "string", "products": ["spend-insights", "lending"], "redirect": "https://link.codat.io/company/27628208-459c-46a2-a705-5641ce25f739", "tags": {"region": "us", "uid": "f6b0c253-16c7-4da1-a0c5-9c871e9c9d6c"}} + "401": + application/json: {} + "500": + application/json: {} + Unauthorized: + parameters: + path: + companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" + requestBody: + application/json: {"description": "Requested early access to the new financing scheme.", "name": "Bank of Dave"} + responses: + "401": + application/json: {"canBeRetried": "Unknown", "correlationId": "7eb40d6b415d7bcd99ce658268284056", "detailedErrorCode": 0, "error": "Unauthorized", "service": "PublicApi", "statusCode": 401} + "500": + application/json: {"canBeRetried": "Unknown", "correlationId": "7eb40d6b415d7bcd99ce658268284056", "detailedErrorCode": 0, "error": "Unauthorized", "service": "PublicApi", "statusCode": 401} + speakeasy-default-replace-company: + parameters: + path: + companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" + requestBody: + application/json: {"description": "Requested early access to the new financing scheme.", "name": "Bank of Dave"} + responses: + "200": + application/json: {"created": "2022-01-01T12:00:00.000Z", "createdByUserName": "string", "dataConnections": [{"created": "2022-10-27T09:53:29Z", "id": "ee2eb431-c0fa-4dc9-93fa-d29781c12bcd", "integrationId": "bf083d72-62c7-493e-aec9-81b4dbba7e2c", "integrationKey": "dfxm", "lastSync": "2022-10-27T10:22:43.6464237Z", "linkUrl": "https://link-api.codat.io/companies/86bd88cb-44ab-4dfb-b32f-87b19b14287f/connections/ee2eb431-c0fa-4dc9-93fa-d29781c12bcd/start", "platformName": "Basiq", "sourceId": "bdd831ce-eebd-4896-89a7-20e5ee8989ee", "sourceType": "Banking", "status": "Linked"}], "id": "0498e921-9b53-4396-a412-4f2f5983b0a2", "lastSync": "2022-01-01T12:00:00.000Z", "name": "string", "products": ["spend-insights", "lending"], "redirect": "https://link.codat.io/company/27628208-459c-46a2-a705-5641ce25f739", "tags": {"region": "us", "uid": "f6b0c253-16c7-4da1-a0c5-9c871e9c9d6c"}} + "401": + application/json: {} + "500": + application/json: {} + update-company: + Update tags: + parameters: + path: + companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" + requestBody: + application/json: {"tags": {"refrence": "new reference"}} + responses: + "200": + application/json: {"created": "2022-01-01T12:00:00.000Z", "createdByUserName": "string", "dataConnections": [{"created": "2022-10-27T09:53:29Z", "id": "ee2eb431-c0fa-4dc9-93fa-d29781c12bcd", "integrationId": "bf083d72-62c7-493e-aec9-81b4dbba7e2c", "integrationKey": "dfxm", "lastSync": "2022-10-27T10:22:43.6464237Z", "linkUrl": "https://link-api.codat.io/companies/86bd88cb-44ab-4dfb-b32f-87b19b14287f/connections/ee2eb431-c0fa-4dc9-93fa-d29781c12bcd/start", "platformName": "Basiq", "sourceId": "bdd831ce-eebd-4896-89a7-20e5ee8989ee", "sourceType": "Banking", "status": "Linked"}], "id": "0498e921-9b53-4396-a412-4f2f5983b0a2", "lastSync": "2022-01-01T12:00:00.000Z", "name": "string", "products": ["spend-insights", "lending"], "redirect": "https://link.codat.io/company/27628208-459c-46a2-a705-5641ce25f739", "tags": {"region": "us", "uid": "f6b0c253-16c7-4da1-a0c5-9c871e9c9d6c"}} + "401": + application/json: {} + "500": + application/json: {} + Update name: + parameters: + path: + companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" + requestBody: + application/json: {"name": "New Name"} + responses: + "200": + application/json: {"created": "2022-01-01T12:00:00.000Z", "createdByUserName": "string", "dataConnections": [{"created": "2022-10-27T09:53:29Z", "id": "ee2eb431-c0fa-4dc9-93fa-d29781c12bcd", "integrationId": "bf083d72-62c7-493e-aec9-81b4dbba7e2c", "integrationKey": "dfxm", "lastSync": "2022-10-27T10:22:43.6464237Z", "linkUrl": "https://link-api.codat.io/companies/86bd88cb-44ab-4dfb-b32f-87b19b14287f/connections/ee2eb431-c0fa-4dc9-93fa-d29781c12bcd/start", "platformName": "Basiq", "sourceId": "bdd831ce-eebd-4896-89a7-20e5ee8989ee", "sourceType": "Banking", "status": "Linked"}], "id": "0498e921-9b53-4396-a412-4f2f5983b0a2", "lastSync": "2022-01-01T12:00:00.000Z", "name": "string", "products": ["spend-insights", "lending"], "redirect": "https://link.codat.io/company/27628208-459c-46a2-a705-5641ce25f739", "tags": {"region": "us", "uid": "f6b0c253-16c7-4da1-a0c5-9c871e9c9d6c"}} + "401": + application/json: {} + "500": + application/json: {} + Unauthorized: + parameters: + path: + companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" + requestBody: + application/json: {"description": "Requested early access to the new financing scheme.", "name": "Bank of Dave"} + responses: + "401": + application/json: {"canBeRetried": "Unknown", "correlationId": "7eb40d6b415d7bcd99ce658268284056", "detailedErrorCode": 0, "error": "Unauthorized", "service": "PublicApi", "statusCode": 401} + "500": + application/json: {"canBeRetried": "Unknown", "correlationId": "7eb40d6b415d7bcd99ce658268284056", "detailedErrorCode": 0, "error": "Unauthorized", "service": "PublicApi", "statusCode": 401} + speakeasy-default-update-company: parameters: path: companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" requestBody: application/json: {"description": "Requested early access to the new financing scheme.", "name": "Bank of Dave"} responses: + "200": + application/json: {"created": "2022-01-01T12:00:00.000Z", "createdByUserName": "string", "dataConnections": [{"created": "2022-10-27T09:53:29Z", "id": "ee2eb431-c0fa-4dc9-93fa-d29781c12bcd", "integrationId": "bf083d72-62c7-493e-aec9-81b4dbba7e2c", "integrationKey": "dfxm", "lastSync": "2022-10-27T10:22:43.6464237Z", "linkUrl": "https://link-api.codat.io/companies/86bd88cb-44ab-4dfb-b32f-87b19b14287f/connections/ee2eb431-c0fa-4dc9-93fa-d29781c12bcd/start", "platformName": "Basiq", "sourceId": "bdd831ce-eebd-4896-89a7-20e5ee8989ee", "sourceType": "Banking", "status": "Linked"}], "id": "0498e921-9b53-4396-a412-4f2f5983b0a2", "lastSync": "2022-01-01T12:00:00.000Z", "name": "string", "products": ["spend-insights", "lending"], "redirect": "https://link.codat.io/company/27628208-459c-46a2-a705-5641ce25f739", "tags": {"region": "us", "uid": "f6b0c253-16c7-4da1-a0c5-9c871e9c9d6c"}} "401": - application/json: {"canBeRetried": "Unknown", "correlationId": "7eb40d6b415d7bcd99ce658268284056", "detailedErrorCode": 0, "error": "Unauthorized", "service": "PublicApi", "statusCode": 401} + application/json: {} + "500": + application/json: {} create-connection: Connection: parameters: @@ -634,6 +2004,8 @@ examples: responses: "401": application/json: {"canBeRetried": "Unknown", "correlationId": "7eb40d6b415d7bcd99ce658268284056", "detailedErrorCode": 0, "error": "Unauthorized", "service": "PublicApi", "statusCode": 401} + "500": + application/json: {"canBeRetried": "Unknown", "correlationId": "7eb40d6b415d7bcd99ce658268284056", "detailedErrorCode": 0, "error": "Unauthorized", "service": "PublicApi", "statusCode": 401} create-partner-expense-connection: Malformed query: parameters: @@ -642,6 +2014,19 @@ examples: responses: "400": application/json: {"canBeRetried": "Unknown", "correlationId": "bc997528a9d7abb9161ef45f05d38599", "detailedErrorCode": 0, "error": "Error processing request - not valid.", "service": "PublicApi", "statusCode": 400} + "500": + application/json: {"canBeRetried": "Unknown", "correlationId": "bc997528a9d7abb9161ef45f05d38599", "detailedErrorCode": 0, "error": "Error processing request - not valid.", "service": "PublicApi", "statusCode": 400} + speakeasy-default-create-partner-expense-connection: + parameters: + path: + companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" + responses: + "200": + application/json: {"created": "2022-10-27T09:53:29Z", "id": "ee2eb431-c0fa-4dc9-93fa-d29781c12bcd", "integrationId": "bf083d72-62c7-493e-aec9-81b4dbba7e2c", "integrationKey": "dfxm", "lastSync": "2022-10-27T10:22:43.6464237Z", "linkUrl": "https://link-api.codat.io/companies/86bd88cb-44ab-4dfb-b32f-87b19b14287f/connections/ee2eb431-c0fa-4dc9-93fa-d29781c12bcd/start", "platformName": "Basiq", "sourceId": "bdd831ce-eebd-4896-89a7-20e5ee8989ee", "sourceType": "Banking", "status": "Linked"} + "400": + application/json: {} + "500": + application/json: {} delete-connection: Unauthorized: parameters: @@ -651,6 +2036,18 @@ examples: responses: "401": application/json: {"canBeRetried": "Unknown", "correlationId": "7eb40d6b415d7bcd99ce658268284056", "detailedErrorCode": 0, "error": "Unauthorized", "service": "PublicApi", "statusCode": 401} + "500": + application/json: {"canBeRetried": "Unknown", "correlationId": "7eb40d6b415d7bcd99ce658268284056", "detailedErrorCode": 0, "error": "Unauthorized", "service": "PublicApi", "statusCode": 401} + speakeasy-default-delete-connection: + parameters: + path: + companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" + connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171" + responses: + "401": + application/json: {} + "500": + application/json: {} get-connection: Connection: parameters: @@ -668,8 +2065,10 @@ examples: responses: "401": application/json: {"canBeRetried": "Unknown", "correlationId": "7eb40d6b415d7bcd99ce658268284056", "detailedErrorCode": 0, "error": "Unauthorized", "service": "PublicApi", "statusCode": 401} + "500": + application/json: {"canBeRetried": "Unknown", "correlationId": "7eb40d6b415d7bcd99ce658268284056", "detailedErrorCode": 0, "error": "Unauthorized", "service": "PublicApi", "statusCode": 401} list-connections: - "": + speakeasy-default-list-connections: parameters: path: companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" @@ -681,7 +2080,10 @@ examples: responses: "200": application/json: {"_links": {"current": {"href": "/companies/{id}/data/{dataType}?page=1&pageSize=10"}, "self": {"href": "/companies/{id}/data/{dataType}"}}, "pageNumber": 1, "pageSize": 10, "totalResults": 1} - "400": {} + "400": + application/json: {} + "500": + application/json: {} Connections: parameters: path: @@ -706,6 +2108,8 @@ examples: responses: "400": application/json: {"canBeRetried": "Unknown", "correlationId": "bc997528a9d7abb9161ef45f05d38599", "detailedErrorCode": 0, "error": "Error parsing query - Malformed query.", "service": "ClientsApi", "statusCode": 400} + "500": + application/json: {"canBeRetried": "Unknown", "correlationId": "bc997528a9d7abb9161ef45f05d38599", "detailedErrorCode": 0, "error": "Error parsing query - Malformed query.", "service": "ClientsApi", "statusCode": 400} Unresolved property: parameters: path: @@ -718,6 +2122,8 @@ examples: responses: "400": application/json: {"canBeRetried": "Unknown", "correlationId": "98457fb9956b7f9b4b2fd4f6e23bb5c8", "detailedErrorCode": 0, "error": "Error parsing query - Could not resolve property isCompleted on Dataset", "service": "PullApi", "statusCode": 400} + "500": + application/json: {"canBeRetried": "Unknown", "correlationId": "98457fb9956b7f9b4b2fd4f6e23bb5c8", "detailedErrorCode": 0, "error": "Error parsing query - Could not resolve property isCompleted on Dataset", "service": "PullApi", "statusCode": 400} unlink-connection: Example: parameters: @@ -729,7 +2135,10 @@ examples: responses: "200": application/json: {"created": "2022-10-27T09:53:29Z", "id": "ee2eb431-c0fa-4dc9-93fa-d29781c12bcd", "integrationId": "bf083d72-62c7-493e-aec9-81b4dbba7e2c", "integrationKey": "dfxm", "lastSync": "2022-10-27T10:22:43.6464237Z", "linkUrl": "https://link-api.codat.io/companies/86bd88cb-44ab-4dfb-b32f-87b19b14287f/connections/ee2eb431-c0fa-4dc9-93fa-d29781c12bcd/start", "platformName": "Basiq", "sourceId": "bdd831ce-eebd-4896-89a7-20e5ee8989ee", "sourceType": "Banking", "status": "Linked"} - "401": {} + "401": + application/json: {} + "500": + application/json: {} Unauthorized: parameters: path: @@ -738,42 +2147,83 @@ examples: responses: "401": application/json: {"canBeRetried": "Unknown", "correlationId": "7eb40d6b415d7bcd99ce658268284056", "detailedErrorCode": 0, "error": "Unauthorized", "service": "PublicApi", "statusCode": 401} + "500": + application/json: {"canBeRetried": "Unknown", "correlationId": "7eb40d6b415d7bcd99ce658268284056", "detailedErrorCode": 0, "error": "Unauthorized", "service": "PublicApi", "statusCode": 401} + speakeasy-default-unlink-connection: + parameters: + path: + companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" + connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171" + responses: + "200": + application/json: {"created": "2022-10-27T09:53:29Z", "id": "ee2eb431-c0fa-4dc9-93fa-d29781c12bcd", "integrationId": "bf083d72-62c7-493e-aec9-81b4dbba7e2c", "integrationKey": "dfxm", "lastSync": "2022-10-27T10:22:43.6464237Z", "linkUrl": "https://link-api.codat.io/companies/86bd88cb-44ab-4dfb-b32f-87b19b14287f/connections/ee2eb431-c0fa-4dc9-93fa-d29781c12bcd/start", "platformName": "Basiq", "sourceId": "bdd831ce-eebd-4896-89a7-20e5ee8989ee", "sourceType": "Banking", "status": "Linked"} + "401": + application/json: {} + "500": + application/json: {} create-bank-account: QuickBooks Online: parameters: path: companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171" - query: {} + query: + allowSyncOnPushComplete: true requestBody: application/json: {"accountName": "GBP Bank Account", "accountNumber": "12345678", "accountType": "Debit", "currency": "GBP", "status": "Active"} responses: "200": - application/json: {"changes": [{"recordRef": {"dataType": "invoices"}}], "companyId": "8a210b68-6988-11ed-a1eb-0242ac120002", "completedOnUtc": "2022-10-23T00:00:00Z", "dataConnectionKey": "2e9d2c44-f675-40ba-8049-353bfcb5e171", "dataType": "invoices", "pushOperationKey": "621cf021-cd9c-4f54-a033-15211a509a30", "requestedOnUtc": "2022-10-23T00:00:00Z", "status": "Success", "statusCode": 550483} - "400": {} + application/json: {"changes": [{"recordRef": {"dataType": "invoices"}}], "companyId": "8a210b68-6988-11ed-a1eb-0242ac120002", "completedOnUtc": "2022-10-23T00:00:00Z", "data": {"currency": "GBP", "modifiedDate": "2022-10-23T00:00:00Z", "sourceModifiedDate": "2022-10-23T00:00:00Z", "status": "Active"}, "dataConnectionKey": "2e9d2c44-f675-40ba-8049-353bfcb5e171", "dataType": "invoices", "pushOperationKey": "bbf55378-5e09-4654-9ce4-ff3208e30267", "requestedOnUtc": "2022-10-23T00:00:00Z", "status": "Pending", "statusCode": 16290} + "400": + application/json: {} + "500": + application/json: {} Xero: parameters: path: companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171" - query: {} + query: + allowSyncOnPushComplete: true requestBody: application/json: {"accountName": "Xero GBP Bank Account", "accountNumber": "12345678", "accountType": "Debit", "currency": "GBP", "sortCode": "445566", "status": "Active"} responses: "200": - application/json: {"changes": [{"recordRef": {"dataType": "invoices"}}, {"recordRef": {"dataType": "invoices"}}, {"recordRef": {"dataType": "invoices"}}], "companyId": "8a210b68-6988-11ed-a1eb-0242ac120002", "completedOnUtc": "2022-10-23T00:00:00Z", "dataConnectionKey": "2e9d2c44-f675-40ba-8049-353bfcb5e171", "dataType": "invoices", "pushOperationKey": "74c2becc-3769-4177-b5e0-24985613de0e", "requestedOnUtc": "2022-10-23T00:00:00Z", "status": "Pending", "statusCode": 198175} - "400": {} + application/json: {"changes": [{"recordRef": {"dataType": "invoices"}}], "companyId": "8a210b68-6988-11ed-a1eb-0242ac120002", "completedOnUtc": "2022-10-23T00:00:00Z", "data": {"currency": "GBP", "modifiedDate": "2022-10-23T00:00:00Z", "sourceModifiedDate": "2022-10-23T00:00:00Z", "status": "Active"}, "dataConnectionKey": "2e9d2c44-f675-40ba-8049-353bfcb5e171", "dataType": "invoices", "pushOperationKey": "bbf55378-5e09-4654-9ce4-ff3208e30267", "requestedOnUtc": "2022-10-23T00:00:00Z", "status": "Pending", "statusCode": 16290} + "400": + application/json: {} + "500": + application/json: {} Malformed query: parameters: path: companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171" - query: {} + query: + allowSyncOnPushComplete: true requestBody: - application/json: {"currency": "EUR", "modifiedDate": "2022-10-23T00:00:00Z", "sourceModifiedDate": "2022-10-23T00:00:00Z", "status": "Active"} + application/json: {"currency": "GBP", "modifiedDate": "2022-10-23T00:00:00Z", "sourceModifiedDate": "2022-10-23T00:00:00Z", "status": "Active"} responses: "400": application/json: {"canBeRetried": "Unknown", "correlationId": "bc997528a9d7abb9161ef45f05d38599", "detailedErrorCode": 0, "error": "Error processing request - not valid.", "service": "PublicApi", "statusCode": 400} + "500": + application/json: {"canBeRetried": "Unknown", "correlationId": "bc997528a9d7abb9161ef45f05d38599", "detailedErrorCode": 0, "error": "Error processing request - not valid.", "service": "PublicApi", "statusCode": 400} + speakeasy-default-create-bank-account: + parameters: + path: + companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" + connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171" + query: + allowSyncOnPushComplete: true + requestBody: + application/json: {"currency": "GBP", "modifiedDate": "2022-10-23T00:00:00Z", "sourceModifiedDate": "2022-10-23T00:00:00Z", "status": "Active"} + responses: + "200": + application/json: {"changes": [{"recordRef": {"dataType": "invoices"}}], "companyId": "8a210b68-6988-11ed-a1eb-0242ac120002", "completedOnUtc": "2022-10-23T00:00:00Z", "data": {"currency": "GBP", "modifiedDate": "2022-10-23T00:00:00Z", "sourceModifiedDate": "2022-10-23T00:00:00Z", "status": "Active"}, "dataConnectionKey": "2e9d2c44-f675-40ba-8049-353bfcb5e171", "dataType": "invoices", "pushOperationKey": "bbf55378-5e09-4654-9ce4-ff3208e30267", "requestedOnUtc": "2022-10-23T00:00:00Z", "status": "Pending", "statusCode": 16290} + "400": + application/json: {} + "500": + application/json: {} get-create-bankAccounts-model: Dynamics 365 Business Central: parameters: @@ -822,7 +2272,7 @@ examples: connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171" responses: "200": - application/json: {"description": "An account that bank transactions may be recorded against", "displayName": "Bank Account", "properties": {"nominalCode": {"description": "The external reference given to each nominal account for a business", "displayName": "Nominal Code", "required": true, "type": "String", "validation": {"information": [], "warnings": [{"details": "Max length of 7 characters.", "field": "NominalCode"}]}}, "accountName": {"description": "The name of the bank account in the originating system", "displayName": "Name", "required": true, "type": "String", "validation": {"information": [], "warnings": [{"details": "Max length of 31 characters.", "field": "AccountName"}]}}, "currency": {"description": "The currency of the bank account", "displayName": "Currency", "required": false, "type": "String", "validation": {"information": [{"details": "If not set, will default to the base currency of the QuickBooks Desktop company", "field": "Currency"}], "warnings": [{"details": "The currency must match the base currency of the QuickBooks Desktop company unless the FullyQualifiedCategory is 'Asset.AccountsReceivable','Liability.AccountsPayable' or 'Liability.CreditCard'", "field": "Currency"}, {"details": "Must be a three letter ISO code that matches an existing active currency in the QuickBooks Desktop company", "field": "Currency"}, {"details": "Can only be set if the Quickbooks Desktop company has Multicurrency enabled.", "field": "Currency"}]}}, "balance": {"description": "The balance of the bank account", "displayName": "Balance", "required": false, "type": "Number"}}, "required": true, "type": "Object"} + application/json: {"description": "An account that bank transactions may be recorded against", "displayName": "Bank Account", "properties": {"nominalCode": {"description": "The external reference given to each nominal account for a business", "displayName": "Nominal Code", "required": true, "type": "String", "validation": {"information": [], "warnings": [{"details": "Max length of 7 characters.", "field": "NominalCode"}]}}, "accountName": {"description": "The name of the bank account in the originating system", "displayName": "Name", "required": true, "type": "String", "validation": {"information": [], "warnings": [{"details": "Max length of 31 characters.", "field": "AccountName"}]}}, "currency": {"description": "The currency of the bank account", "displayName": "Currency", "required": false, "type": "String", "validation": {"information": [{"details": "If not set, will default to the base currency of the QuickBooks Desktop company", "field": "Currency"}], "warnings": [{"details": "The currency must match the base currency of the QuickBooks Desktop company unless the FullyQualifiedCategory is 'Asset.AccountsReceivable','Liability.AccountsPayable' or 'Liability.CreditCard'", "field": "Currency"}, {"details": "Must be a three letter ISO code that matches an existing active currency in the QuickBooks Desktop company", "field": "Currency"}, {"details": "Can only be set if the QuickBooks Desktop company has Multicurrency enabled.", "field": "Currency"}]}}, "balance": {"description": "The balance of the bank account", "displayName": "Balance", "required": false, "type": "Number"}}, "required": true, "type": "Object"} QuickBooks Online Sandbox: parameters: path: @@ -846,7 +2296,7 @@ examples: connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171" responses: "200": - application/json: {"description": "An account that bank transactions may be recorded against", "displayName": "Bank Account", "properties": {"accountName": {"description": "The name of the bank account in the originating system", "displayName": "Name", "required": true, "type": "String"}, "accountType": {"description": "The type of account", "displayName": "Account Type", "required": true, "type": "String"}, "nominalCode": {"description": "The external reference given to each nominal account for a business", "displayName": "Nominal Code", "required": true, "type": "String"}, "sortCode": {"description": "The sort code for the bank account", "displayName": "Sort Code", "required": true, "type": "String"}, "accountNumber": {"description": "The account number for the bank account", "displayName": "Account Number", "required": true, "type": "String"}, "iBan": {"description": "The international bank account number of the account. Often used when making or receiving international payments", "displayName": "IBAN", "required": true, "type": "String"}, "currency": {"description": "The currency of the bank account", "displayName": "Currency", "required": true, "type": "String"}, "balance": {"description": "The balance of the bank account", "displayName": "Balance", "required": true, "type": "Number"}, "availableBalance": {"description": "The available balance of the bank account", "displayName": "Available Balance", "required": true, "type": "Number"}, "overdraftLimit": {"description": "The pre-arranged overdraft limit of the account", "displayName": "Overdraft Limit", "required": true, "type": "Number"}, "institution": {"description": "The institution of the bank account", "displayName": "Institution", "required": true, "type": "String"}, "metadata": {"description": "Miscellaneous data about the item", "displayName": "Metadata", "required": true, "type": "Object"}}, "required": true, "type": "Object"} + application/json: {"description": "An account that bank transactions may be recorded against", "displayName": "Bank Account", "properties": {"accountName": {"description": "The name of the bank account in the originating system", "displayName": "Name", "required": true, "type": "String"}, "accountType": {"description": "The type of account", "displayName": "Account Type", "required": true, "type": "String"}, "nominalCode": {"description": "The external reference given to each nominal account for a business", "displayName": "Nominal Code", "required": true, "type": "String"}, "sortCode": {"description": "The sort code for the bank account", "displayName": "Sort Code", "required": true, "type": "String"}, "accountNumber": {"description": "The account number for the bank account", "displayName": "Account Number", "required": true, "type": "String"}, "iBan": {"description": "The international bank account number of the account. Often used when making or receiving international payments", "displayName": "IBAN", "required": true, "type": "String"}, "currency": {"description": "The currency of the bank account", "displayName": "Currency", "required": true, "type": "String"}, "balance": {"description": "The balance of the bank account", "displayName": "Balance", "required": true, "type": "Number"}, "availableBalance": {"description": "The available balance of the bank account", "displayName": "Available Balance", "required": true, "type": "Number"}, "overdraftLimit": {"description": "The pre-arranged overdraft limit of the account", "displayName": "Overdraft Limit", "required": true, "type": "Number"}, "institution": {"description": "The institution of the bank account", "displayName": "Institution", "required": true, "type": "String"}, "metadata": {"description": "Miscellaneous data about the item", "displayName": "Metadata", "properties": {"isDeleted": {"description": "A boolean to indicate whether the object has been deleted", "displayName": "IsDeleted", "required": true, "type": "Boolean"}}, "required": true, "type": "Object"}}, "required": true, "type": "Object"} Unauthorized: parameters: path: @@ -855,18 +2305,39 @@ examples: responses: "401": application/json: {"canBeRetried": "Unknown", "correlationId": "7eb40d6b415d7bcd99ce658268284056", "detailedErrorCode": 0, "error": "Unauthorized", "service": "PublicApi", "statusCode": 401} + "500": + application/json: {"canBeRetried": "Unknown", "correlationId": "7eb40d6b415d7bcd99ce658268284056", "detailedErrorCode": 0, "error": "Unauthorized", "service": "PublicApi", "statusCode": 401} create-account: Malformed query: parameters: path: companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171" - query: {} + query: + allowSyncOnPushComplete: true requestBody: - application/json: {"currency": "USD", "currentBalance": 0, "description": "Invoices the business has issued but has not yet collected payment on.", "fullyQualifiedCategory": "Asset.Current", "fullyQualifiedName": "Fixed Asset", "name": "Accounts Receivable", "nominalCode": "610", "status": "Active", "type": "Asset"} + application/json: {"currency": "GBP", "currentBalance": 0, "description": "Invoices the business has issued but has not yet collected payment on.", "fullyQualifiedCategory": "Asset.Current", "fullyQualifiedName": "Cash On Hand", "name": "Accounts Receivable", "nominalCode": "610", "status": "Active", "type": "Asset"} responses: "400": application/json: {"canBeRetried": "Unknown", "correlationId": "bc997528a9d7abb9161ef45f05d38599", "detailedErrorCode": 0, "error": "Error processing request - not valid.", "service": "PublicApi", "statusCode": 400} + "500": + application/json: {"canBeRetried": "Unknown", "correlationId": "bc997528a9d7abb9161ef45f05d38599", "detailedErrorCode": 0, "error": "Error processing request - not valid.", "service": "PublicApi", "statusCode": 400} + speakeasy-default-create-account: + parameters: + path: + companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" + connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171" + query: + allowSyncOnPushComplete: true + requestBody: + application/json: {"currency": "GBP", "currentBalance": 0, "description": "Invoices the business has issued but has not yet collected payment on.", "fullyQualifiedCategory": "Asset.Current", "fullyQualifiedName": "Cash On Hand", "name": "Accounts Receivable", "nominalCode": "610", "status": "Active", "type": "Asset"} + responses: + "200": + application/json: {"changes": [{"recordRef": {"dataType": "invoices"}}], "companyId": "8a210b68-6988-11ed-a1eb-0242ac120002", "completedOnUtc": "2022-10-23T00:00:00Z", "data": {"currency": "GBP", "currentBalance": 0, "description": "Invoices the business has issued but has not yet collected payment on.", "fullyQualifiedCategory": "Asset.Current", "fullyQualifiedName": "Cash On Hand", "id": "1b6266d1-1e44-46c5-8eb5-a8f98e03124e", "modifiedDate": "2022-10-23T00:00:00Z", "name": "Accounts Receivable", "nominalCode": "610", "sourceModifiedDate": "2022-10-23T00:00:00Z", "status": "Active", "type": "Asset"}, "dataConnectionKey": "2e9d2c44-f675-40ba-8049-353bfcb5e171", "dataType": "invoices", "pushOperationKey": "936358e8-4e4d-4663-93c0-e27c0d06dd56", "requestedOnUtc": "2022-10-23T00:00:00Z", "status": "Failed", "statusCode": 239266} + "400": + application/json: {} + "500": + application/json: {} get-create-chartOfAccounts-model: Exact (Netherlands): parameters: @@ -899,7 +2370,7 @@ examples: connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171" responses: "200": - application/json: {"description": "Nominal Accounts are the categories a business uses to record transactions", "displayName": "Nominal Account", "properties": {"nominalCode": {"description": "The external reference given to each nominal account for a business", "displayName": "Nominal Code", "required": true, "type": "String", "validation": {"information": [], "warnings": [{"details": "Max length of 7 characters.", "field": "NominalCode"}]}}, "name": {"description": "Name of the account", "displayName": "Name", "required": true, "type": "String", "validation": {"information": [], "warnings": [{"details": "Max length of 31 characters.", "field": "Name"}]}}, "description": {"description": "Description of the account", "displayName": "Description", "required": false, "type": "String", "validation": {"information": [], "warnings": [{"details": "Max length of 200 characters.", "field": "Description"}]}}, "currency": {"description": "The currency of the account", "displayName": "Currency", "required": false, "type": "String", "validation": {"information": [{"details": "If not set, will default to the base currency of the QuickBooks Desktop company", "field": "Currency"}], "warnings": [{"details": "The currency must match the base currency of the QuickBooks Desktop company unless the FullyQualifiedCategory is 'Asset.AccountsReceivable','Liability.AccountsPayable' or 'Liability.CreditCard'", "field": "Currency"}, {"details": "Must be a three letter ISO code that matches an existing active currency in the QuickBooks Desktop company", "field": "Currency"}, {"details": "Can only be set if the Quickbooks Desktop company has Multicurrency enabled.", "field": "Currency"}]}}, "fullyQualifiedCategory": {"description": "The full category of the account e.g. Liability.Current or Income.Revenue", "displayName": "Fully Qualified Category", "options": [{"displayName": "Account Receivable", "required": false, "type": "String", "value": "Asset.AccountsReceivable"}, {"displayName": "Fixed Asset", "required": false, "type": "String", "value": "Asset.FixedAsset"}, {"displayName": "Other Current Asset", "required": false, "type": "String", "value": "Asset.OtherCurrentAsset"}, {"displayName": "Other Asset", "required": false, "type": "String", "value": "Asset.OtherAsset"}, {"displayName": "Income", "required": false, "type": "String", "value": "Income.Income"}, {"displayName": "Other Income", "required": false, "type": "String", "value": "Income.OtherIncome"}, {"displayName": "Accounts Payable", "required": false, "type": "String", "value": "Liability.AccountsPayable"}, {"displayName": "Credit Card", "required": false, "type": "String", "value": "Liability.CreditCard"}, {"displayName": "Long Term Liability", "required": false, "type": "String", "value": "Liability.LongTermLiability"}, {"displayName": "Other Current Liability", "required": false, "type": "String", "value": "Liability.OtherCurrentLiability"}, {"displayName": "Cost Of Goods Sold", "required": false, "type": "String", "value": "Liability.CostOfGoodsSold"}, {"displayName": "Equity", "required": false, "type": "String", "value": "Equity.Equity"}, {"displayName": "Expense", "required": false, "type": "String", "value": "Expense.Expense"}, {"displayName": "Other Expense", "required": false, "type": "String", "value": "Expense.OtherExpense"}], "required": true, "type": "String"}, "currentBalance": {"description": "The current balance in the account", "displayName": "Current Balance", "required": false, "type": "Number"}}, "required": true, "type": "Object"} + application/json: {"description": "Nominal Accounts are the categories a business uses to record transactions", "displayName": "Nominal Account", "properties": {"nominalCode": {"description": "The external reference given to each nominal account for a business", "displayName": "Nominal Code", "required": true, "type": "String", "validation": {"information": [], "warnings": [{"details": "Max length of 7 characters.", "field": "NominalCode"}]}}, "name": {"description": "Name of the account", "displayName": "Name", "required": true, "type": "String", "validation": {"information": [], "warnings": [{"details": "Max length of 31 characters.", "field": "Name"}]}}, "description": {"description": "Description of the account", "displayName": "Description", "required": false, "type": "String", "validation": {"information": [], "warnings": [{"details": "Max length of 200 characters.", "field": "Description"}]}}, "currency": {"description": "The currency of the account", "displayName": "Currency", "required": false, "type": "String", "validation": {"information": [{"details": "If not set, will default to the base currency of the QuickBooks Desktop company", "field": "Currency"}], "warnings": [{"details": "The currency must match the base currency of the QuickBooks Desktop company unless the FullyQualifiedCategory is 'Asset.AccountsReceivable','Liability.AccountsPayable' or 'Liability.CreditCard'", "field": "Currency"}, {"details": "Must be a three letter ISO code that matches an existing active currency in the QuickBooks Desktop company", "field": "Currency"}, {"details": "Can only be set if the QuickBooks Desktop company has Multicurrency enabled.", "field": "Currency"}]}}, "fullyQualifiedCategory": {"description": "The full category of the account e.g. Liability.Current or Income.Revenue", "displayName": "Fully Qualified Category", "options": [{"displayName": "Account Receivable", "required": false, "type": "String", "value": "Asset.AccountsReceivable"}, {"displayName": "Fixed Asset", "required": false, "type": "String", "value": "Asset.FixedAsset"}, {"displayName": "Other Current Asset", "required": false, "type": "String", "value": "Asset.OtherCurrentAsset"}, {"displayName": "Other Asset", "required": false, "type": "String", "value": "Asset.OtherAsset"}, {"displayName": "Income", "required": false, "type": "String", "value": "Income.Income"}, {"displayName": "Other Income", "required": false, "type": "String", "value": "Income.OtherIncome"}, {"displayName": "Accounts Payable", "required": false, "type": "String", "value": "Liability.AccountsPayable"}, {"displayName": "Credit Card", "required": false, "type": "String", "value": "Liability.CreditCard"}, {"displayName": "Long Term Liability", "required": false, "type": "String", "value": "Liability.LongTermLiability"}, {"displayName": "Other Current Liability", "required": false, "type": "String", "value": "Liability.OtherCurrentLiability"}, {"displayName": "Cost Of Goods Sold", "required": false, "type": "String", "value": "Liability.CostOfGoodsSold"}, {"displayName": "Equity", "required": false, "type": "String", "value": "Equity.Equity"}, {"displayName": "Expense", "required": false, "type": "String", "value": "Expense.Expense"}, {"displayName": "Other Expense", "required": false, "type": "String", "value": "Expense.OtherExpense"}], "required": true, "type": "String"}, "currentBalance": {"description": "The current balance in the account", "displayName": "Current Balance", "required": false, "type": "Number"}}, "required": true, "type": "Object"} QuickBooks Online Sandbox: parameters: path: @@ -939,7 +2410,7 @@ examples: connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171" responses: "200": - application/json: {"description": "Nominal Accounts are the categories a business uses to record transactions", "displayName": "Nominal Account", "properties": {"nominalCode": {"description": "The external reference given to each nominal account for a business", "displayName": "Nominal Code", "required": true, "type": "String"}, "name": {"description": "Name of the account", "displayName": "Name", "required": true, "type": "String"}, "description": {"description": "Description of the account", "displayName": "Description", "required": true, "type": "String"}, "fullyQualifiedCategory": {"description": "The full category of the account e.g. Liability.Current or Income.Revenue", "displayName": "Fully Qualified Category", "required": true, "type": "String"}, "fullyQualifiedName": {"description": "The full name of the account e.g. Liability.Current.VAT or Income.Revenue.Sales", "displayName": "Fully Qualified Name", "required": true, "type": "String"}, "currency": {"description": "The currency of the account", "displayName": "Currency", "required": true, "type": "String"}, "currentBalance": {"description": "The current balance in the account", "displayName": "Current Balance", "required": true, "type": "Number"}, "type": {"description": "The type, or base category, of the account", "displayName": "Account Type", "required": true, "type": "String"}, "status": {"description": "The status of the account", "displayName": "Account Status", "required": true, "type": "String"}, "isBankAccount": {"description": "Confirms whether the nominal account represents a bank account or not", "displayName": "Is Bank Account?", "required": true, "type": "Boolean"}, "validDatatypeLinks": {"description": "Describes which fields on other data types are valid links to this account in the originating system", "displayName": "Valid Datatype Links", "required": true, "type": "Array"}, "metadata": {"description": "Miscellaneous data about the item", "displayName": "Metadata", "required": true, "type": "Object"}}, "required": true, "type": "Object"} + application/json: {"description": "Nominal Accounts are the categories a business uses to record transactions", "displayName": "Nominal Account", "properties": {"nominalCode": {"description": "The external reference given to each nominal account for a business", "displayName": "Nominal Code", "required": true, "type": "String"}, "name": {"description": "Name of the account", "displayName": "Name", "required": true, "type": "String"}, "description": {"description": "Description of the account", "displayName": "Description", "required": true, "type": "String"}, "fullyQualifiedCategory": {"description": "The full category of the account e.g. Liability.Current or Income.Revenue", "displayName": "Fully Qualified Category", "required": true, "type": "String"}, "fullyQualifiedName": {"description": "The full name of the account e.g. Liability.Current.VAT or Income.Revenue.Sales", "displayName": "Fully Qualified Name", "required": true, "type": "String"}, "currency": {"description": "The currency of the account", "displayName": "Currency", "required": true, "type": "String"}, "currentBalance": {"description": "The current balance in the account", "displayName": "Current Balance", "required": true, "type": "Number"}, "type": {"description": "The type, or base category, of the account", "displayName": "Account Type", "required": true, "type": "String"}, "status": {"description": "The status of the account", "displayName": "Account Status", "required": true, "type": "String"}, "isBankAccount": {"description": "Confirms whether the nominal account represents a bank account or not", "displayName": "Is Bank Account?", "required": true, "type": "Boolean"}, "validDatatypeLinks": {"description": "Describes which fields on other data types are valid links to this account in the originating system", "displayName": "Valid Datatype Links", "properties": {"property": {"description": "The field on the source data type that other data types can link to", "displayName": "Property", "required": true, "type": "String"}, "links": {"description": "A collection of absolute names of fields from other data types, e.g. Invoice.LineItems.AccountRef.Id", "displayName": "Links", "required": true, "type": "Array"}}, "required": true, "type": "Array"}, "metadata": {"description": "Miscellaneous data about the item", "displayName": "Metadata", "properties": {"isDeleted": {"description": "A boolean to indicate whether the object has been deleted", "displayName": "IsDeleted", "required": true, "type": "Boolean"}}, "required": true, "type": "Object"}}, "required": true, "type": "Object"} Xero: parameters: path: @@ -956,24 +2427,45 @@ examples: responses: "401": application/json: {"canBeRetried": "Unknown", "correlationId": "7eb40d6b415d7bcd99ce658268284056", "detailedErrorCode": 0, "error": "Unauthorized", "service": "PublicApi", "statusCode": 401} + "500": + application/json: {"canBeRetried": "Unknown", "correlationId": "7eb40d6b415d7bcd99ce658268284056", "detailedErrorCode": 0, "error": "Unauthorized", "service": "PublicApi", "statusCode": 401} create-customer: Malformed query: parameters: path: companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171" - query: {} + query: + allowSyncOnPushComplete: true requestBody: - application/json: {"contacts": [{"modifiedDate": "2022-10-23T00:00:00Z", "phone": [{"number": "+44 25691 154789", "type": "Primary"}], "status": "Archived"}], "defaultCurrency": "EUR", "modifiedDate": "2022-10-23T00:00:00Z", "sourceModifiedDate": "2022-10-23T00:00:00Z", "status": "Unknown"} + application/json: {"contacts": [{"modifiedDate": "2022-10-23T00:00:00Z", "phone": null, "status": "Unknown"}], "defaultCurrency": "GBP", "modifiedDate": "2022-10-23T00:00:00Z", "sourceModifiedDate": "2022-10-23T00:00:00Z", "status": "Unknown"} responses: "400": application/json: {"canBeRetried": "Unknown", "correlationId": "bc997528a9d7abb9161ef45f05d38599", "detailedErrorCode": 0, "error": "Error processing request - not valid.", "service": "PublicApi", "statusCode": 400} + "500": + application/json: {"canBeRetried": "Unknown", "correlationId": "bc997528a9d7abb9161ef45f05d38599", "detailedErrorCode": 0, "error": "Error processing request - not valid.", "service": "PublicApi", "statusCode": 400} + speakeasy-default-create-customer: + parameters: + path: + companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" + connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171" + query: + allowSyncOnPushComplete: true + requestBody: + application/json: {"contacts": [{"modifiedDate": "2022-10-23T00:00:00Z", "phone": null, "status": "Unknown"}], "defaultCurrency": "GBP", "modifiedDate": "2022-10-23T00:00:00Z", "sourceModifiedDate": "2022-10-23T00:00:00Z", "status": "Unknown"} + responses: + "200": + application/json: {"changes": [{"recordRef": {"dataType": "invoices"}}], "companyId": "8a210b68-6988-11ed-a1eb-0242ac120002", "completedOnUtc": "2022-10-23T00:00:00Z", "data": {"contacts": [{"modifiedDate": "2022-10-23T00:00:00Z", "phone": null, "status": "Unknown"}], "defaultCurrency": "GBP", "modifiedDate": "2022-10-23T00:00:00Z", "sourceModifiedDate": "2022-10-23T00:00:00Z", "status": "Archived"}, "dataConnectionKey": "2e9d2c44-f675-40ba-8049-353bfcb5e171", "dataType": "invoices", "pushOperationKey": "6df7882c-3b9a-422b-806d-10a8882c0066", "requestedOnUtc": "2022-10-23T00:00:00Z", "status": "TimedOut", "statusCode": 973924} + "400": + application/json: {} + "500": + application/json: {} get-customer: Clear Books: parameters: path: companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" - customerId: "7110701885" + customerId: "13d946f0-c5d5-42bc-b092-97ece17923ab" responses: "200": application/json: {"addresses": [{"city": "Fernandohaven", "country": "United Kingdom", "line1": "Suite 214", "line2": "8439 Lueilwitz Passage", "postalCode": "JG04 7PV", "region": "Northern Ireland", "type": "Delivery"}, {"city": "Juliochester", "country": "United Kingdom", "line1": "Suite 096", "line2": "864 Halie Course", "postalCode": "DZ8 4BF", "region": "England", "type": "Delivery"}, {"city": "Naderborough", "country": "United Kingdom", "line1": "Suite 001", "line2": "416 Stokes Fords", "postalCode": "XG25 0XX", "region": "Wales", "type": "Delivery"}], "contactName": "Werner Langworth", "contacts": [{"address": {"city": "Hortenseville", "country": "United Kingdom", "line1": "Apt. 145", "line2": "317 Williamson Freeway", "postalCode": "CV4 2HR", "region": "Scotland", "type": "Delivery"}, "email": "Werner_Langworth@hotmail.com", "name": "Werner Langworth", "phone": [], "status": "Active"}, {"address": {"city": "South Ali", "country": "United Kingdom", "line1": "Suite 075", "line2": "9921 Dickens Walk", "postalCode": "TI04 4OO", "region": "Scotland", "type": "Delivery"}, "email": "Belle51@yahoo.com", "name": "Belle Glover", "phone": [], "status": "Active"}], "customerName": "Arjun Kuvalis", "defaultCurrency": "GBP", "emailAddress": "Arjun34@hotmail.com", "id": "c8180244-74ac-40cf-a5df-6d83661c44d7", "metadata": {"isDeleted": false}, "modifiedDate": "2023-04-26T12:38:16Z", "phone": "014605 64820", "registrationNumber": "NI7JEJVM", "sourceModifiedDate": "2022-07-03T01:27:00", "status": "Active", "taxNumber": "7505220209.583549"} @@ -981,7 +2473,7 @@ examples: parameters: path: companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" - customerId: "7110701885" + customerId: "13d946f0-c5d5-42bc-b092-97ece17923ab" responses: "200": application/json: {"addresses": [{"city": "", "country": "", "line1": "", "line2": "", "postalCode": "", "region": "", "type": "Billing"}], "contactName": "", "contacts": [{"address": {"city": "", "country": "", "line1": "", "line2": "", "postalCode": "", "region": "", "type": "Billing"}, "email": "", "name": "", "phone": [], "status": "Active"}], "customerName": "", "defaultCurrency": "GBP", "emailAddress": "", "id": "0e2f7751-7696-ed11-bff5-6045bd0d2ad6", "metadata": {"isDeleted": false}, "modifiedDate": "2023-03-27T14:21:25Z", "phone": "", "sourceModifiedDate": "2023-01-17T14:50:54Z", "status": "Active", "taxNumber": ""} @@ -989,7 +2481,7 @@ examples: parameters: path: companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" - customerId: "7110701885" + customerId: "13d946f0-c5d5-42bc-b092-97ece17923ab" responses: "200": application/json: {"addresses": [{"country": "NL", "type": "Billing"}], "contacts": [], "customerName": "Ab Netherlands", "defaultCurrency": "EUR", "id": "555f8251-c65a-433a-a813-5dbe04321d1e", "modifiedDate": "2022-10-26T13:32:05Z", "sourceModifiedDate": "2021-06-14T15:26:37Z", "status": "Active"} @@ -997,7 +2489,7 @@ examples: parameters: path: companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" - customerId: "7110701885" + customerId: "13d946f0-c5d5-42bc-b092-97ece17923ab" responses: "200": application/json: {"addresses": [{"city": "London", "country": "GB", "line1": "Ink Rooms", "postalCode": "WC1X 0BE", "type": "Billing"}], "contacts": [], "customerName": "Abdi 99", "defaultCurrency": "GBP", "emailAddress": "email@codat.io", "id": "5f20075a-a28e-434d-81a6-2db0dc170e87", "modifiedDate": "2022-10-26T13:33:08Z", "registrationNumber": "123456789", "sourceModifiedDate": "2020-02-26T11:23:50Z", "status": "Active", "taxNumber": "GB339 0727 47"} @@ -1005,7 +2497,7 @@ examples: parameters: path: companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" - customerId: "EILBDVJVNUAGVKRQ" + customerId: "13d946f0-c5d5-42bc-b092-97ece17923ab" responses: "200": application/json: {"addresses": [{"city": "London", "country": "United Kingdom", "line1": "1 Place House", "line2": "", "postalCode": "WC1X 1AH", "type": "Billing"}], "contactName": "Test 1", "contacts": [{"address": {"city": "London", "country": "United Kingdom", "line1": "1 Place House", "line2": "", "postalCode": "WC1X 1AH", "type": "Billing"}, "name": "Test 1", "phone": [], "status": "Unknown"}], "customerName": "-", "id": "11526230", "metadata": {"isDeleted": false}, "modifiedDate": "2023-04-25T14:19:12Z", "sourceModifiedDate": "2023-04-17T06:02:46Z", "status": "Active"} @@ -1013,7 +2505,7 @@ examples: parameters: path: companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" - customerId: "9wg4lep4ush5cxs79pl8sozmsndbaukll3ind4g7buqbm1h2" + customerId: "13d946f0-c5d5-42bc-b092-97ece17923ab" responses: "200": application/json: {"addresses": [{"city": "Some city", "country": "Country 1", "line1": "Line 1", "line2": "Line 2", "postalCode": "SW1 2JQ", "region": "A region", "type": "Billing"}], "contactName": "test person name", "contacts": [{"email": "test14A@example.com", "name": "test person1", "phone": [{"number": "24681012", "type": "Primary"}, {"number": "121086420", "type": "Unknown"}], "status": "Active"}, {"email": "test14B@example.com", "name": "test person2", "phone": [{"number": "123456789", "type": "Primary"}, {"number": "987654321", "type": "Unknown"}], "status": "Active"}, {"email": "test14@example.com", "name": "test person name", "phone": [{"number": "01876 541245", "type": "Unknown"}], "status": "Active"}], "customerName": "A test customer 14 (updated)", "defaultCurrency": "GBP", "emailAddress": "test14@example.com", "id": "634509", "metadata": {"isDeleted": false}, "modifiedDate": "2023-03-24T16:07:23Z", "phone": "01876 541245", "sourceModifiedDate": "2022-05-18T09:23:56", "status": "Active"} @@ -1021,7 +2513,7 @@ examples: parameters: path: companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" - customerId: "9wg4lep4ush5cxs79pl8sozmsndbaukll3ind4g7buqbm1h2" + customerId: "13d946f0-c5d5-42bc-b092-97ece17923ab" responses: "200": application/json: {"addresses": [], "contactName": "", "contacts": [{"email": "", "name": "", "phone": [], "status": "Active"}], "customerName": "Chekko Customer Test 01", "emailAddress": "", "id": "92227673", "modifiedDate": "2022-09-30T10:29:15Z", "phone": "", "sourceModifiedDate": "0001-01-01T00:00:00", "status": "Active", "taxNumber": ""} @@ -1029,7 +2521,7 @@ examples: parameters: path: companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" - customerId: "9wg4lep4ush5cxs79pl8sozmsndbaukll3ind4g7buqbm1h2" + customerId: "13d946f0-c5d5-42bc-b092-97ece17923ab" responses: "200": application/json: {"addresses": [], "contactName": "Mr Test Customer", "contacts": [], "customerName": "119 Test Customer", "defaultCurrency": "GBP", "id": "773", "modifiedDate": "2023-01-30T14:48:02Z", "sourceModifiedDate": "2022-01-11T12:28:49", "status": "Active"} @@ -1045,7 +2537,7 @@ examples: parameters: path: companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" - customerId: "EILBDVJVNUAGVKRQ" + customerId: "13d946f0-c5d5-42bc-b092-97ece17923ab" responses: "200": application/json: {"addresses": [], "contactName": "Abraham's Company", "contacts": [{"email": "ab@email.com", "name": "Abe", "phone": [{"number": "01111111111", "type": "Mobile"}], "status": "Active"}], "customerName": "Abe", "defaultCurrency": "GBP", "emailAddress": "ab@email.com", "id": "9", "modifiedDate": "2023-01-18T11:02:35Z", "registrationNumber": "XXXX9900001", "sourceModifiedDate": "2022-12-08T15:42:59Z", "status": "Active", "taxNumber": "XXXX9900001"} @@ -1053,7 +2545,7 @@ examples: parameters: path: companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" - customerId: "9wg4lep4ush5cxs79pl8sozmsndbaukll3ind4g7buqbm1h2" + customerId: "13d946f0-c5d5-42bc-b092-97ece17923ab" responses: "200": application/json: {"addresses": [{"city": "New York, NY", "line1": "123 Main St", "type": "Billing"}], "contactName": "Kristy Abercrombie", "contacts": [{"address": {"city": "New York, NY", "line1": "123 Main St", "type": "Billing"}, "name": "Abercrombie International Group (deleted)", "phone": [], "status": "Archived"}], "customerName": "Abercrombie International Group", "defaultCurrency": "GBP", "id": "66", "metadata": {"isDeleted": false}, "modifiedDate": "2023-04-26T09:35:56Z", "sourceModifiedDate": "2016-09-12T18:53:19Z", "status": "Archived"} @@ -1061,7 +2553,7 @@ examples: parameters: path: companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" - customerId: "EILBDVJVNUAGVKRQ" + customerId: "13d946f0-c5d5-42bc-b092-97ece17923ab" responses: "200": application/json: {"addresses": [{"city": "Blackpool", "country": "", "line1": "67a Station Road", "line2": "", "postalCode": "BP12 7HT", "region": "Lancashire", "type": "Delivery"}, {"city": "Manchester", "country": "", "line1": "23a Union Street", "line2": "", "postalCode": "M2 6JK", "region": "", "type": "Delivery"}, {"city": "Blackpool", "country": "Great Britain", "line1": "67a Station Road", "line2": "", "postalCode": "BP12 7HT", "region": "Lancashire", "type": "Billing"}], "contactName": "Lee Dalkin", "contacts": [{"email": "newbusinessadvice@sage.com", "name": "Lee Dalkin", "phone": [{"number": "01742 876 234", "type": "Landline"}, {"number": "01742 876 235", "type": "Landline"}, {"number": "01742 876 236", "type": "Fax"}], "status": "Active"}, {"email": "", "name": "Malcolm Leverret", "phone": [], "status": "Active"}, {"email": "Jim@a1designservices.co.uk", "name": "Jim Thomas", "phone": [{"number": "01742 876 234", "type": "Landline"}, {"number": "01742 876 235", "type": "Fax"}], "status": "Active"}, {"email": "Jullian@a1designservices.co.uk", "name": "Jullian Plawsworth", "phone": [{"number": "0151 349 3939", "type": "Landline"}, {"number": "0151 349 3940", "type": "Fax"}], "status": "Active"}], "customerName": "A1 Design Services", "defaultCurrency": "GBP", "emailAddress": "newbusinessadvice@sage.com", "id": "A1D001", "modifiedDate": "2022-10-14T09:35:53Z", "phone": "01742 876 234", "registrationNumber": "", "sourceModifiedDate": "2022-04-27T15:17:36Z", "status": "Active", "taxNumber": "GB238 3839 38"} @@ -1085,7 +2577,7 @@ examples: parameters: path: companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" - customerId: "9wg4lep4ush5cxs79pl8sozmsndbaukll3ind4g7buqbm1h2" + customerId: "13d946f0-c5d5-42bc-b092-97ece17923ab" responses: "200": application/json: {"addresses": [{"city": "Albuquerque", "country": "United States", "line1": "155 Westend Point", "line2": "", "postalCode": "87140", "region": "NM", "type": "Unknown"}], "contactName": "Yuna Conn", "contacts": [{"address": {"city": "Albuquerque", "country": "United States", "line1": "155 Westend Point", "line2": "", "postalCode": "87140", "region": "NM", "type": "Unknown"}, "name": "Conn, Yuna", "phone": [{"number": "520-393-4468", "type": "Primary"}], "status": "Unknown"}], "customerName": "33Across", "defaultCurrency": "USD", "id": "188", "metadata": {"isDeleted": false}, "modifiedDate": "2023-04-04T16:32:21Z", "phone": "520-393-4468", "sourceModifiedDate": "2022-09-06T12:58:27", "status": "Active", "taxNumber": ""} @@ -1101,7 +2593,7 @@ examples: parameters: path: companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" - customerId: "7110701885" + customerId: "13d946f0-c5d5-42bc-b092-97ece17923ab" responses: "200": application/json: {"addresses": [], "contacts": [], "customerName": "24 Locks", "emailAddress": "", "id": "e4c9d0e2-c285-4e85-b579-6d28b180c730", "metadata": {"isDeleted": false}, "modifiedDate": "2023-03-15T20:35:10Z", "sourceModifiedDate": "2023-02-17T18:03:42", "status": "Active"} @@ -1109,7 +2601,7 @@ examples: parameters: path: companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" - customerId: "EILBDVJVNUAGVKRQ" + customerId: "13d946f0-c5d5-42bc-b092-97ece17923ab" responses: "200": application/json: {"addresses": [], "contactName": "Contact (First Name) Contact (Last Name)", "contacts": [{"email": "contactperson@whateveryouwantidontcare12345.com", "name": "Contact (First Name) Contact (Last Name)", "phone": [{"number": "Work Phone", "type": "Landline"}, {"number": "Mobile", "type": "Mobile"}], "status": "Active"}], "customerName": "A B", "defaultCurrency": "GBP", "emailAddress": "contactperson@whateveryouwantidontcare12345.com", "id": "104957000000032105", "modifiedDate": "2022-10-03T08:40:37Z", "phone": "Work Phone", "sourceModifiedDate": "2022-06-09T14:36:47", "status": "Active"} @@ -1117,12 +2609,14 @@ examples: parameters: path: companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" - customerId: "9wg4lep4ush5cxs79pl8sozmsndbaukll3ind4g7buqbm1h2" + customerId: "13d946f0-c5d5-42bc-b092-97ece17923ab" responses: "401": application/json: {"canBeRetried": "Unknown", "correlationId": "7eb40d6b415d7bcd99ce658268284056", "detailedErrorCode": 0, "error": "Unauthorized", "service": "PublicApi", "statusCode": 401} + "500": + application/json: {"canBeRetried": "Unknown", "correlationId": "7eb40d6b415d7bcd99ce658268284056", "detailedErrorCode": 0, "error": "Unauthorized", "service": "PublicApi", "statusCode": 401} list-customers: - "": + speakeasy-default-list-customers: parameters: path: companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" @@ -1134,7 +2628,10 @@ examples: responses: "200": application/json: {"_links": {"current": {"href": "/companies/{id}/data/{dataType}?page=1&pageSize=10"}, "self": {"href": "/companies/{id}/data/{dataType}"}}, "pageNumber": 1, "pageSize": 10, "totalResults": 1} - "400": {} + "400": + application/json: {} + "500": + application/json: {} Clear Books: parameters: path: @@ -1363,6 +2860,8 @@ examples: responses: "400": application/json: {"canBeRetried": "Unknown", "correlationId": "bc997528a9d7abb9161ef45f05d38599", "detailedErrorCode": 0, "error": "Error parsing query - Malformed query.", "service": "ClientsApi", "statusCode": 400} + "500": + application/json: {"canBeRetried": "Unknown", "correlationId": "bc997528a9d7abb9161ef45f05d38599", "detailedErrorCode": 0, "error": "Error parsing query - Malformed query.", "service": "ClientsApi", "statusCode": 400} Unresolved property: parameters: path: @@ -1375,49 +2874,96 @@ examples: responses: "400": application/json: {"canBeRetried": "Unknown", "correlationId": "98457fb9956b7f9b4b2fd4f6e23bb5c8", "detailedErrorCode": 0, "error": "Error parsing query - Could not resolve property isCompleted on Dataset", "service": "PullApi", "statusCode": 400} + "500": + application/json: {"canBeRetried": "Unknown", "correlationId": "98457fb9956b7f9b4b2fd4f6e23bb5c8", "detailedErrorCode": 0, "error": "Error parsing query - Could not resolve property isCompleted on Dataset", "service": "PullApi", "statusCode": 400} update-customer: Malformed query: parameters: path: companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171" - customerId: "EILBDVJVNUAGVKRQ" - query: {} + customerId: "13d946f0-c5d5-42bc-b092-97ece17923ab" + query: + allowSyncOnPushComplete: true + forceUpdate: false requestBody: - application/json: {"contacts": [{"modifiedDate": "2022-10-23T00:00:00Z", "phone": [{"number": "01224 658 999", "type": "Fax"}], "status": "Active"}, {"modifiedDate": "2022-10-23T00:00:00Z", "phone": [], "status": "Archived"}, {"modifiedDate": "2022-10-23T00:00:00Z", "phone": [{"number": "+44 25691 154789", "type": "Primary"}], "status": "Archived"}], "defaultCurrency": "EUR", "modifiedDate": "2022-10-23T00:00:00Z", "sourceModifiedDate": "2022-10-23T00:00:00Z", "status": "Archived"} + application/json: {"contacts": [{"modifiedDate": "2022-10-23T00:00:00Z", "phone": [{"number": "+44 25691 154789", "type": "Primary"}], "status": "Unknown"}], "defaultCurrency": "GBP", "modifiedDate": "2022-10-23T00:00:00Z", "sourceModifiedDate": "2022-10-23T00:00:00Z", "status": "Active"} responses: "400": application/json: {"canBeRetried": "Unknown", "correlationId": "bc997528a9d7abb9161ef45f05d38599", "detailedErrorCode": 0, "error": "Error processing request - not valid.", "service": "PublicApi", "statusCode": 400} + "500": + application/json: {"canBeRetried": "Unknown", "correlationId": "bc997528a9d7abb9161ef45f05d38599", "detailedErrorCode": 0, "error": "Error processing request - not valid.", "service": "PublicApi", "statusCode": 400} + speakeasy-default-update-customer: + parameters: + path: + companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" + connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171" + customerId: "13d946f0-c5d5-42bc-b092-97ece17923ab" + query: + allowSyncOnPushComplete: true + forceUpdate: false + requestBody: + application/json: {"contacts": [{"modifiedDate": "2022-10-23T00:00:00Z", "phone": [{"number": "+44 25691 154789", "type": "Primary"}], "status": "Unknown"}], "defaultCurrency": "GBP", "modifiedDate": "2022-10-23T00:00:00Z", "sourceModifiedDate": "2022-10-23T00:00:00Z", "status": "Active"} + responses: + "200": + application/json: {"changes": [{"recordRef": {"dataType": "invoices"}}], "companyId": "8a210b68-6988-11ed-a1eb-0242ac120002", "completedOnUtc": "2022-10-23T00:00:00Z", "data": {"contacts": [{"modifiedDate": "2022-10-23T00:00:00Z", "phone": [{"number": "+44 25691 154789", "type": "Primary"}], "status": "Unknown"}], "defaultCurrency": "GBP", "modifiedDate": "2022-10-23T00:00:00Z", "sourceModifiedDate": "2022-10-23T00:00:00Z", "status": "Active"}, "dataConnectionKey": "2e9d2c44-f675-40ba-8049-353bfcb5e171", "dataType": "invoices", "pushOperationKey": "da9d96e3-14de-4669-8614-4a94010074c2", "requestedOnUtc": "2022-10-23T00:00:00Z", "status": "Pending", "statusCode": 671250} + "400": + application/json: {} + "500": + application/json: {} create-supplier: Sage Intacct: parameters: path: companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171" - query: {} + query: + allowSyncOnPushComplete: true requestBody: application/json: {"contactName": "Joe Bloggs", "id": "73593", "status": "Active", "supplierName": "test 20230420 1004"} responses: "200": - application/json: {"changes": [{"recordRef": {"dataType": "invoices"}}], "companyId": "8a210b68-6988-11ed-a1eb-0242ac120002", "completedOnUtc": "2022-10-23T00:00:00Z", "dataConnectionKey": "2e9d2c44-f675-40ba-8049-353bfcb5e171", "dataType": "invoices", "pushOperationKey": "621cf021-cd9c-4f54-a033-15211a509a30", "requestedOnUtc": "2022-10-23T00:00:00Z", "status": "Success", "statusCode": 550483} - "400": {} + application/json: {"changes": [{"recordRef": {"dataType": "invoices"}}], "companyId": "8a210b68-6988-11ed-a1eb-0242ac120002", "completedOnUtc": "2022-10-23T00:00:00Z", "data": {"addresses": [{"city": "Bakersfield", "country": "USA", "line1": "Unit 51", "line2": "Bakersfield Industrial Estate", "region": "California", "type": "Billing"}], "contactName": "Kelly's Industrial Supplies", "defaultCurrency": "string", "emailAddress": "sales@kellysupplies.com", "id": "C520FFD4-F6F6-4FC2-A6D2-5D7088B2B14F", "metadata": {"isDeleted": true}, "modifiedDate": "2022-10-23T00:00:00Z", "phone": "07999 999999", "registrationNumber": "string", "sourceModifiedDate": "2022-10-23T00:00:00Z", "status": "Unknown", "supplementalData": {"content": {"property1": {"property1": "", "property2": ""}, "property2": {"property1": "", "property2": ""}}}, "supplierName": "Kelly's Industrial Supplies", "taxNumber": "string"}, "dataConnectionKey": "2e9d2c44-f675-40ba-8049-353bfcb5e171", "dataType": "invoices", "pushOperationKey": "a724c908-5d52-46dc-ac48-5fbb4ff4bff9", "requestedOnUtc": "2022-10-23T00:00:00Z", "status": "Failed", "statusCode": 416715} + "400": + application/json: {} + "500": + application/json: {} Malformed query: parameters: path: companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171" - query: {} + query: + allowSyncOnPushComplete: true requestBody: application/json: {"addresses": [{"city": "Bakersfield", "country": "USA", "line1": "Unit 51", "line2": "Bakersfield Industrial Estate", "region": "California", "type": "Billing"}], "contactName": "Kelly's Industrial Supplies", "defaultCurrency": "string", "emailAddress": "sales@kellysupplies.com", "id": "C520FFD4-F6F6-4FC2-A6D2-5D7088B2B14F", "metadata": {"isDeleted": true}, "modifiedDate": "2022-10-23T00:00:00Z", "phone": "07999 999999", "registrationNumber": "string", "sourceModifiedDate": "2022-10-23T00:00:00Z", "status": "Unknown", "supplementalData": {"content": {"property1": {"property1": "", "property2": ""}, "property2": {"property1": "", "property2": ""}}}, "supplierName": "Kelly's Industrial Supplies", "taxNumber": "string"} responses: "400": application/json: {"canBeRetried": "Unknown", "correlationId": "bc997528a9d7abb9161ef45f05d38599", "detailedErrorCode": 0, "error": "Error processing request - not valid.", "service": "PublicApi", "statusCode": 400} + "500": + application/json: {"canBeRetried": "Unknown", "correlationId": "bc997528a9d7abb9161ef45f05d38599", "detailedErrorCode": 0, "error": "Error processing request - not valid.", "service": "PublicApi", "statusCode": 400} + speakeasy-default-create-supplier: + parameters: + path: + companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" + connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171" + query: + allowSyncOnPushComplete: true + requestBody: + application/json: {"addresses": [{"city": "Bakersfield", "country": "USA", "line1": "Unit 51", "line2": "Bakersfield Industrial Estate", "region": "California", "type": "Billing"}], "contactName": "Kelly's Industrial Supplies", "defaultCurrency": "string", "emailAddress": "sales@kellysupplies.com", "id": "C520FFD4-F6F6-4FC2-A6D2-5D7088B2B14F", "metadata": {"isDeleted": true}, "modifiedDate": "2022-10-23T00:00:00Z", "phone": "07999 999999", "registrationNumber": "string", "sourceModifiedDate": "2022-10-23T00:00:00Z", "status": "Unknown", "supplementalData": {"content": {"property1": {"property1": "", "property2": ""}, "property2": {"property1": "", "property2": ""}}}, "supplierName": "Kelly's Industrial Supplies", "taxNumber": "string"} + responses: + "200": + application/json: {"changes": [{"recordRef": {"dataType": "invoices"}}], "companyId": "8a210b68-6988-11ed-a1eb-0242ac120002", "completedOnUtc": "2022-10-23T00:00:00Z", "data": {"addresses": [{"city": "Bakersfield", "country": "USA", "line1": "Unit 51", "line2": "Bakersfield Industrial Estate", "region": "California", "type": "Billing"}], "contactName": "Kelly's Industrial Supplies", "defaultCurrency": "string", "emailAddress": "sales@kellysupplies.com", "id": "C520FFD4-F6F6-4FC2-A6D2-5D7088B2B14F", "metadata": {"isDeleted": true}, "modifiedDate": "2022-10-23T00:00:00Z", "phone": "07999 999999", "registrationNumber": "string", "sourceModifiedDate": "2022-10-23T00:00:00Z", "status": "Unknown", "supplementalData": {"content": {"property1": {"property1": "", "property2": ""}, "property2": {"property1": "", "property2": ""}}}, "supplierName": "Kelly's Industrial Supplies", "taxNumber": "string"}, "dataConnectionKey": "2e9d2c44-f675-40ba-8049-353bfcb5e171", "dataType": "invoices", "pushOperationKey": "a724c908-5d52-46dc-ac48-5fbb4ff4bff9", "requestedOnUtc": "2022-10-23T00:00:00Z", "status": "Failed", "statusCode": 416715} + "400": + application/json: {} + "500": + application/json: {} get-supplier: Clear Books: parameters: path: companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" - supplierId: "7110701885" + supplierId: "13d946f0-c5d5-42bc-b092-97ece17923ab" responses: "200": application/json: {"addresses": [{"city": "Cesarmouth", "country": "United Kingdom", "line1": "Suite 431", "line2": "289 Giles Lake", "postalCode": "BG40 9GP", "region": "Northern Ireland", "type": "Delivery"}], "contactName": "Faye Hansen", "defaultCurrency": "GBP", "emailAddress": "hello@Abshire-Kshlerin.info", "id": "owQ2Gqgj9f", "metadata": {"isDeleted": false}, "modifiedDate": "2023-04-26T12:38:17Z", "phone": "01338 858162", "registrationNumber": "VYL1XZXR", "sourceModifiedDate": "1660-11-28T23:18:00", "status": "Active", "supplierName": "Abshire - Kshlerin", "taxNumber": "1396267523.0914588"} @@ -1425,7 +2971,7 @@ examples: parameters: path: companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" - supplierId: "7110701885" + supplierId: "13d946f0-c5d5-42bc-b092-97ece17923ab" responses: "200": application/json: {"addresses": [{"city": "", "country": "GB", "line1": "", "line2": "", "postalCode": "", "region": "", "type": "Billing"}], "contactName": "", "defaultCurrency": "GBP", "emailAddress": "", "id": "78623f13-931e-eb11-bbf8-0022481b3585", "metadata": {"isDeleted": false}, "modifiedDate": "2023-03-27T14:21:12Z", "phone": "", "sourceModifiedDate": "2020-11-04T11:44:22Z", "status": "Active", "supplierName": "", "taxNumber": ""} @@ -1433,7 +2979,7 @@ examples: parameters: path: companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" - supplierId: "7110701885" + supplierId: "13d946f0-c5d5-42bc-b092-97ece17923ab" responses: "200": application/json: {"addresses": [{"city": "Bakersfield", "country": "US", "line1": "Unit 51", "postalCode": "933081", "region": "California", "type": "Billing"}], "contactName": "Kelly's Contact Name", "defaultCurrency": "EUR", "emailAddress": "sales@kellysupplies.com", "id": "3150917c-1d92-4d77-9018-31b5c4758ca9", "modifiedDate": "2022-10-26T13:32:05Z", "phone": "07999 999999", "registrationNumber": "8409314368", "sourceModifiedDate": "2022-07-15T12:01:15Z", "status": "Active", "supplierName": "Abe"} @@ -1441,7 +2987,7 @@ examples: parameters: path: companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" - supplierId: "7110701885" + supplierId: "13d946f0-c5d5-42bc-b092-97ece17923ab" responses: "200": application/json: {"addresses": [{"country": "GB", "type": "Billing"}], "defaultCurrency": "GBP", "id": "0185fea2-0298-445b-909a-0db685118a9e", "modifiedDate": "2022-10-26T13:33:13Z", "sourceModifiedDate": "2017-08-02T10:58:54Z", "status": "Active", "supplierName": "a"} @@ -1449,7 +2995,7 @@ examples: parameters: path: companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" - supplierId: "EILBDVJVNUAGVKRQ" + supplierId: "13d946f0-c5d5-42bc-b092-97ece17923ab" responses: "200": application/json: {"addresses": [{"city": "London", "country": "United Kingdom", "line1": "1 Place House", "line2": "", "postalCode": "WC1X 1AH", "type": "Billing"}], "contactName": "Test 1", "id": "11526230", "metadata": {"isDeleted": false}, "modifiedDate": "2023-04-25T14:19:08Z", "sourceModifiedDate": "2023-04-17T06:02:46", "status": "Active", "supplierName": "-"} @@ -1457,7 +3003,7 @@ examples: parameters: path: companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" - supplierId: "9wg4lep4ush5cxs79pl8sozmsndbaukll3ind4g7buqbm1h2" + supplierId: "13d946f0-c5d5-42bc-b092-97ece17923ab" responses: "200": application/json: {"addresses": [], "id": "api vendor", "metadata": {"isDeleted": false}, "modifiedDate": "2023-03-24T16:07:25Z", "status": "Active", "supplierName": "api vendor"} @@ -1465,7 +3011,7 @@ examples: parameters: path: companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" - supplierId: "9wg4lep4ush5cxs79pl8sozmsndbaukll3ind4g7buqbm1h2" + supplierId: "13d946f0-c5d5-42bc-b092-97ece17923ab" responses: "200": application/json: {"addresses": [], "contactName": "", "emailAddress": "", "id": "6202387", "modifiedDate": "2022-09-30T10:29:15Z", "phone": "", "sourceModifiedDate": "2017-05-09T00:00:00", "status": "Unknown", "supplierName": "Dell", "taxNumber": ""} @@ -1473,7 +3019,7 @@ examples: parameters: path: companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" - supplierId: "9wg4lep4ush5cxs79pl8sozmsndbaukll3ind4g7buqbm1h2" + supplierId: "13d946f0-c5d5-42bc-b092-97ece17923ab" responses: "200": application/json: {"addresses": [], "contactName": "Test Vendor", "defaultCurrency": "GBP", "emailAddress": "", "id": "779", "modifiedDate": "2023-01-30T14:47:02Z", "phone": "", "sourceModifiedDate": "2022-02-04T14:24:43", "status": "Active", "supplierName": "Test Vendor"} @@ -1489,7 +3035,7 @@ examples: parameters: path: companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" - supplierId: "EILBDVJVNUAGVKRQ" + supplierId: "13d946f0-c5d5-42bc-b092-97ece17923ab" responses: "200": application/json: {"addresses": [{"country": "Djibouti", "line1": "test", "region": "string", "type": "Billing"}], "contactName": "AI Support", "defaultCurrency": "GBP", "id": "41", "modifiedDate": "2023-01-18T11:02:36Z", "sourceModifiedDate": "2022-12-07T10:48:18Z", "status": "Active", "supplierName": "AI Support"} @@ -1497,7 +3043,7 @@ examples: parameters: path: companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" - supplierId: "9wg4lep4ush5cxs79pl8sozmsndbaukll3ind4g7buqbm1h2" + supplierId: "13d946f0-c5d5-42bc-b092-97ece17923ab" responses: "200": application/json: {"addresses": [{"city": "London", "country": "England", "line1": "100 London Road", "line2": "Angel", "postalCode": "EC1M", "region": "Greater London", "type": "Billing"}], "contactName": "Miss Smith", "defaultCurrency": "GBP", "id": "129", "metadata": {"isDeleted": false}, "modifiedDate": "2023-04-26T09:35:55Z", "phone": "0728 38474", "sourceModifiedDate": "2023-04-13T01:51:08Z", "status": "Active", "supplierName": "Ally Johnson"} @@ -1505,7 +3051,7 @@ examples: parameters: path: companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" - supplierId: "EILBDVJVNUAGVKRQ" + supplierId: "13d946f0-c5d5-42bc-b092-97ece17923ab" responses: "200": application/json: {"addresses": [{"city": "", "country": "Great Britain", "line1": "", "line2": "", "postalCode": "", "region": "", "type": "Unknown"}], "contactName": "", "defaultCurrency": "GBP", "emailAddress": "", "id": "776", "metadata": {"isDeleted": true}, "modifiedDate": "2022-10-14T09:35:58Z", "phone": "", "status": "Archived", "supplierName": "Aaren", "taxNumber": ""} @@ -1529,7 +3075,7 @@ examples: parameters: path: companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" - supplierId: "9wg4lep4ush5cxs79pl8sozmsndbaukll3ind4g7buqbm1h2" + supplierId: "13d946f0-c5d5-42bc-b092-97ece17923ab" responses: "200": application/json: {"addresses": [{"city": "Dallas", "country": "United States", "line1": "208 S Akard St", "line2": "", "postalCode": "75265", "region": "TX", "type": "Unknown"}], "contactName": "Jones, William", "defaultCurrency": "USD", "id": "3", "metadata": {"isDeleted": false}, "modifiedDate": "2023-04-04T16:32:20Z", "phone": "214-760-9491", "registrationNumber": "", "sourceModifiedDate": "2023-02-16T09:48:27", "status": "Active", "supplierName": "ADP", "taxNumber": "85-3678274"} @@ -1545,7 +3091,7 @@ examples: parameters: path: companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" - supplierId: "7110701885" + supplierId: "13d946f0-c5d5-42bc-b092-97ece17923ab" responses: "200": application/json: {"addresses": [], "emailAddress": "", "id": "e4c9d0e2-c285-4e85-b579-6d28b180c730", "metadata": {"isDeleted": false}, "modifiedDate": "2023-03-15T20:36:09Z", "sourceModifiedDate": "2023-02-17T18:03:42", "status": "Active", "supplierName": "24 Locks"} @@ -1553,7 +3099,7 @@ examples: parameters: path: companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" - supplierId: "EILBDVJVNUAGVKRQ" + supplierId: "13d946f0-c5d5-42bc-b092-97ece17923ab" responses: "200": application/json: {"addresses": [], "defaultCurrency": "GBP", "emailAddress": "", "id": "104957000001494001", "modifiedDate": "2022-10-03T08:40:37Z", "sourceModifiedDate": "2022-09-16T13:09:56", "status": "Active", "supplierName": "Acme Corporation"} @@ -1561,12 +3107,14 @@ examples: parameters: path: companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" - supplierId: "9wg4lep4ush5cxs79pl8sozmsndbaukll3ind4g7buqbm1h2" + supplierId: "13d946f0-c5d5-42bc-b092-97ece17923ab" responses: "401": application/json: {"canBeRetried": "Unknown", "correlationId": "7eb40d6b415d7bcd99ce658268284056", "detailedErrorCode": 0, "error": "Unauthorized", "service": "PublicApi", "statusCode": 401} + "500": + application/json: {"canBeRetried": "Unknown", "correlationId": "7eb40d6b415d7bcd99ce658268284056", "detailedErrorCode": 0, "error": "Unauthorized", "service": "PublicApi", "statusCode": 401} list-suppliers: - "": + speakeasy-default-list-suppliers: parameters: path: companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" @@ -1578,7 +3126,10 @@ examples: responses: "200": application/json: {"_links": {"current": {"href": "/companies/{id}/data/{dataType}?page=1&pageSize=10"}, "self": {"href": "/companies/{id}/data/{dataType}"}}, "pageNumber": 1, "pageSize": 10, "totalResults": 1} - "400": {} + "400": + application/json: {} + "500": + application/json: {} Clear Books: parameters: path: @@ -1807,6 +3358,8 @@ examples: responses: "400": application/json: {"canBeRetried": "Unknown", "correlationId": "bc997528a9d7abb9161ef45f05d38599", "detailedErrorCode": 0, "error": "Error parsing query - Malformed query.", "service": "ClientsApi", "statusCode": 400} + "500": + application/json: {"canBeRetried": "Unknown", "correlationId": "bc997528a9d7abb9161ef45f05d38599", "detailedErrorCode": 0, "error": "Error parsing query - Malformed query.", "service": "ClientsApi", "statusCode": 400} Unresolved property: parameters: path: @@ -1819,19 +3372,43 @@ examples: responses: "400": application/json: {"canBeRetried": "Unknown", "correlationId": "98457fb9956b7f9b4b2fd4f6e23bb5c8", "detailedErrorCode": 0, "error": "Error parsing query - Could not resolve property isCompleted on Dataset", "service": "PullApi", "statusCode": 400} + "500": + application/json: {"canBeRetried": "Unknown", "correlationId": "98457fb9956b7f9b4b2fd4f6e23bb5c8", "detailedErrorCode": 0, "error": "Error parsing query - Could not resolve property isCompleted on Dataset", "service": "PullApi", "statusCode": 400} update-supplier: Malformed query: parameters: path: companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171" - supplierId: "EILBDVJVNUAGVKRQ" - query: {} + supplierId: "13d946f0-c5d5-42bc-b092-97ece17923ab" + query: + allowSyncOnPushComplete: true + forceUpdate: false requestBody: application/json: {"addresses": [{"city": "Bakersfield", "country": "USA", "line1": "Unit 51", "line2": "Bakersfield Industrial Estate", "region": "California", "type": "Billing"}], "contactName": "Kelly's Industrial Supplies", "defaultCurrency": "string", "emailAddress": "sales@kellysupplies.com", "id": "C520FFD4-F6F6-4FC2-A6D2-5D7088B2B14F", "metadata": {"isDeleted": true}, "modifiedDate": "2022-10-23T00:00:00Z", "phone": "07999 999999", "registrationNumber": "string", "sourceModifiedDate": "2022-10-23T00:00:00Z", "status": "Unknown", "supplementalData": {"content": {"property1": {"property1": "", "property2": ""}, "property2": {"property1": "", "property2": ""}}}, "supplierName": "Kelly's Industrial Supplies", "taxNumber": "string"} responses: "400": application/json: {"canBeRetried": "Unknown", "correlationId": "bc997528a9d7abb9161ef45f05d38599", "detailedErrorCode": 0, "error": "Error processing request - not valid.", "service": "PublicApi", "statusCode": 400} + "500": + application/json: {"canBeRetried": "Unknown", "correlationId": "bc997528a9d7abb9161ef45f05d38599", "detailedErrorCode": 0, "error": "Error processing request - not valid.", "service": "PublicApi", "statusCode": 400} + speakeasy-default-update-supplier: + parameters: + path: + companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" + connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171" + supplierId: "13d946f0-c5d5-42bc-b092-97ece17923ab" + query: + allowSyncOnPushComplete: true + forceUpdate: false + requestBody: + application/json: {"addresses": [{"city": "Bakersfield", "country": "USA", "line1": "Unit 51", "line2": "Bakersfield Industrial Estate", "region": "California", "type": "Billing"}], "contactName": "Kelly's Industrial Supplies", "defaultCurrency": "string", "emailAddress": "sales@kellysupplies.com", "id": "C520FFD4-F6F6-4FC2-A6D2-5D7088B2B14F", "metadata": {"isDeleted": true}, "modifiedDate": "2022-10-23T00:00:00Z", "phone": "07999 999999", "registrationNumber": "string", "sourceModifiedDate": "2022-10-23T00:00:00Z", "status": "Unknown", "supplementalData": {"content": {"property1": {"property1": "", "property2": ""}, "property2": {"property1": "", "property2": ""}}}, "supplierName": "Kelly's Industrial Supplies", "taxNumber": "string"} + responses: + "200": + application/json: {"changes": [{"recordRef": {"dataType": "invoices"}}], "companyId": "8a210b68-6988-11ed-a1eb-0242ac120002", "completedOnUtc": "2022-10-23T00:00:00Z", "data": {"addresses": [{"city": "Bakersfield", "country": "USA", "line1": "Unit 51", "line2": "Bakersfield Industrial Estate", "region": "California", "type": "Billing"}], "contactName": "Kelly's Industrial Supplies", "defaultCurrency": "string", "emailAddress": "sales@kellysupplies.com", "id": "C520FFD4-F6F6-4FC2-A6D2-5D7088B2B14F", "metadata": {"isDeleted": true}, "modifiedDate": "2022-10-23T00:00:00Z", "phone": "07999 999999", "registrationNumber": "string", "sourceModifiedDate": "2022-10-23T00:00:00Z", "status": "Unknown", "supplementalData": {"content": {"property1": {"property1": "", "property2": ""}, "property2": {"property1": "", "property2": ""}}}, "supplierName": "Kelly's Industrial Supplies", "taxNumber": "string"}, "dataConnectionKey": "2e9d2c44-f675-40ba-8049-353bfcb5e171", "dataType": "invoices", "pushOperationKey": "221aa977-fea1-4c37-aad6-2bae775afc58", "requestedOnUtc": "2022-10-23T00:00:00Z", "status": "Pending", "statusCode": 663803} + "400": + application/json: {} + "500": + application/json: {} get-data-status: Example: parameters: @@ -1847,17 +3424,33 @@ examples: responses: "401": application/json: {"canBeRetried": "Unknown", "correlationId": "7eb40d6b415d7bcd99ce658268284056", "detailedErrorCode": 0, "error": "Unauthorized", "service": "PublicApi", "statusCode": 401} + "500": + application/json: {"canBeRetried": "Unknown", "correlationId": "7eb40d6b415d7bcd99ce658268284056", "detailedErrorCode": 0, "error": "Unauthorized", "service": "PublicApi", "statusCode": 401} get-pull-operation: Unauthorized: parameters: path: companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" - datasetId: "71a4c0fb-8e15-45bd-958d-330b4e6e9f07" + datasetId: "fa5f3e86-bd80-49b8-853c-5fbba4b201f5" responses: "401": application/json: {"canBeRetried": "Unknown", "correlationId": "7eb40d6b415d7bcd99ce658268284056", "detailedErrorCode": 0, "error": "Unauthorized", "service": "PublicApi", "statusCode": 401} + "500": + application/json: {"canBeRetried": "Unknown", "correlationId": "7eb40d6b415d7bcd99ce658268284056", "detailedErrorCode": 0, "error": "Unauthorized", "service": "PublicApi", "statusCode": 401} + speakeasy-default-get-pull-operation: + parameters: + path: + companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" + datasetId: "567094de-cafa-4f13-96d3-59e21b47ebe2" + responses: + "200": + application/json: {"companyId": "4645bd78-8988-45bc-ac9e-67ba5df6e4e5", "connectionId": "51baa045-4836-4317-a42e-3542e991e581", "dataType": "invoices", "id": "97d60846-f07a-4d42-b5a0-0bdcc6ebf56b", "isCompleted": false, "isErrored": false, "progress": 10, "requested": "2022-11-14T11:18:37.2798351Z", "status": "Initial", "statusDescription": "Paused until 2022-10-23T00:00:00.000Z"} + "401": + application/json: {} + "500": + application/json: {} list-pull-operations: - "": + speakeasy-default-list-pull-operations: parameters: path: companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" @@ -1869,7 +3462,10 @@ examples: responses: "200": application/json: {"_links": {"current": {"href": "/companies/{id}/data/{dataType}?page=1&pageSize=10"}, "self": {"href": "/companies/{id}/data/{dataType}"}}, "pageNumber": 1, "pageSize": 10, "totalResults": 1} - "400": {} + "400": + application/json: {} + "500": + application/json: {} Example: parameters: path: @@ -1894,6 +3490,8 @@ examples: responses: "400": application/json: {"canBeRetried": "Unknown", "correlationId": "bc997528a9d7abb9161ef45f05d38599", "detailedErrorCode": 0, "error": "Error parsing query - Malformed query.", "service": "ClientsApi", "statusCode": 400} + "500": + application/json: {"canBeRetried": "Unknown", "correlationId": "bc997528a9d7abb9161ef45f05d38599", "detailedErrorCode": 0, "error": "Error parsing query - Malformed query.", "service": "ClientsApi", "statusCode": 400} Unresolved property: parameters: path: @@ -1906,24 +3504,69 @@ examples: responses: "400": application/json: {"canBeRetried": "Unknown", "correlationId": "98457fb9956b7f9b4b2fd4f6e23bb5c8", "detailedErrorCode": 0, "error": "Error parsing query - Could not resolve property isCompleted on Dataset", "service": "PullApi", "statusCode": 400} + "500": + application/json: {"canBeRetried": "Unknown", "correlationId": "98457fb9956b7f9b4b2fd4f6e23bb5c8", "detailedErrorCode": 0, "error": "Error parsing query - Could not resolve property isCompleted on Dataset", "service": "PullApi", "statusCode": 400} refresh-all-data-types: - Unauthorized: + Malformed query: parameters: path: companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" responses: - "401": - application/json: {"canBeRetried": "Unknown", "correlationId": "7eb40d6b415d7bcd99ce658268284056", "detailedErrorCode": 0, "error": "Unauthorized", "service": "PublicApi", "statusCode": 401} + "400": + application/json: {"canBeRetried": "Unknown", "correlationId": "bc997528a9d7abb9161ef45f05d38599", "detailedErrorCode": 0, "error": "Error parsing query - Malformed query.", "service": "ClientsApi", "statusCode": 400} + "500": + application/json: {"canBeRetried": "Unknown", "correlationId": "bc997528a9d7abb9161ef45f05d38599", "detailedErrorCode": 0, "error": "Error parsing query - Malformed query.", "service": "ClientsApi", "statusCode": 400} + Unresolved property: + parameters: + path: + companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" + responses: + "400": + application/json: {"canBeRetried": "Unknown", "correlationId": "98457fb9956b7f9b4b2fd4f6e23bb5c8", "detailedErrorCode": 0, "error": "Error parsing query - Could not resolve property isCompleted on Dataset", "service": "PullApi", "statusCode": 400} + "500": + application/json: {"canBeRetried": "Unknown", "correlationId": "98457fb9956b7f9b4b2fd4f6e23bb5c8", "detailedErrorCode": 0, "error": "Error parsing query - Could not resolve property isCompleted on Dataset", "service": "PullApi", "statusCode": 400} + speakeasy-default-refresh-all-data-types: + parameters: + path: + companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" + responses: + "400": + application/json: {} + "500": + application/json: {} refresh-data-type: - Unauthorized: + Malformed query: parameters: path: companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" dataType: "invoices" - query: {} responses: - "401": - application/json: {"canBeRetried": "Unknown", "correlationId": "7eb40d6b415d7bcd99ce658268284056", "detailedErrorCode": 0, "error": "Unauthorized", "service": "PublicApi", "statusCode": 401} + "400": + application/json: {"canBeRetried": "Unknown", "correlationId": "bc997528a9d7abb9161ef45f05d38599", "detailedErrorCode": 0, "error": "Error parsing query - Malformed query.", "service": "ClientsApi", "statusCode": 400} + "500": + application/json: {"canBeRetried": "Unknown", "correlationId": "bc997528a9d7abb9161ef45f05d38599", "detailedErrorCode": 0, "error": "Error parsing query - Malformed query.", "service": "ClientsApi", "statusCode": 400} + Unresolved property: + parameters: + path: + companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" + dataType: "invoices" + responses: + "400": + application/json: {"canBeRetried": "Unknown", "correlationId": "98457fb9956b7f9b4b2fd4f6e23bb5c8", "detailedErrorCode": 0, "error": "Error parsing query - Could not resolve property isCompleted on Dataset", "service": "PullApi", "statusCode": 400} + "500": + application/json: {"canBeRetried": "Unknown", "correlationId": "98457fb9956b7f9b4b2fd4f6e23bb5c8", "detailedErrorCode": 0, "error": "Error parsing query - Could not resolve property isCompleted on Dataset", "service": "PullApi", "statusCode": 400} + speakeasy-default-refresh-data-type: + parameters: + path: + companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" + dataType: "invoices" + responses: + "200": + application/json: {"companyId": "4645bd78-8988-45bc-ac9e-67ba5df6e4e5", "connectionId": "51baa045-4836-4317-a42e-3542e991e581", "dataType": "invoices", "id": "97d60846-f07a-4d42-b5a0-0bdcc6ebf56b", "isCompleted": false, "isErrored": false, "progress": 10, "requested": "2022-11-14T11:18:37.2798351Z", "status": "Initial", "statusDescription": "Paused until 2022-10-23T00:00:00.000Z"} + "400": + application/json: {} + "500": + application/json: {} get-company-info: Example 1: parameters: @@ -1939,17 +3582,33 @@ examples: responses: "401": application/json: {"canBeRetried": "Unknown", "correlationId": "7eb40d6b415d7bcd99ce658268284056", "detailedErrorCode": 0, "error": "Unauthorized", "service": "PublicApi", "statusCode": 401} + "500": + application/json: {"canBeRetried": "Unknown", "correlationId": "7eb40d6b415d7bcd99ce658268284056", "detailedErrorCode": 0, "error": "Unauthorized", "service": "PublicApi", "statusCode": 401} get-push-operation: Unauthorized: parameters: path: companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" - pushOperationKey: "b888f774-3e7c-4135-a18c-6b985523c4bc" + pushOperationKey: "660e8684-c0fb-4468-9e2a-b2e3b115d747" responses: "401": application/json: {"canBeRetried": "Unknown", "correlationId": "7eb40d6b415d7bcd99ce658268284056", "detailedErrorCode": 0, "error": "Unauthorized", "service": "PublicApi", "statusCode": 401} + "500": + application/json: {"canBeRetried": "Unknown", "correlationId": "7eb40d6b415d7bcd99ce658268284056", "detailedErrorCode": 0, "error": "Unauthorized", "service": "PublicApi", "statusCode": 401} + speakeasy-default-get-push-operation: + parameters: + path: + companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" + pushOperationKey: "86946e36-000f-4e6e-b76f-84a3be88f2b5" + responses: + "200": + application/json: {"changes": [{"recordRef": {"dataType": "invoices"}}], "companyId": "8a210b68-6988-11ed-a1eb-0242ac120002", "completedOnUtc": "2022-10-23T00:00:00Z", "dataConnectionKey": "2e9d2c44-f675-40ba-8049-353bfcb5e171", "dataType": "invoices", "pushOperationKey": "e12fb736-33cd-4b97-8d90-32b5be7c8586", "requestedOnUtc": "2022-10-23T00:00:00Z", "status": "Pending", "statusCode": 480134} + "401": + application/json: {} + "500": + application/json: {} list-push-operations: - "": + speakeasy-default-list-push-operations: parameters: path: companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" @@ -1961,7 +3620,10 @@ examples: responses: "200": application/json: {"_links": {"current": {"href": "/companies/{id}/data/{dataType}?page=1&pageSize=10"}, "self": {"href": "/companies/{id}/data/{dataType}"}}, "pageNumber": 1, "pageSize": 10, "totalResults": 1} - "400": {} + "400": + application/json: {} + "500": + application/json: {} Malformed query: parameters: path: @@ -1974,6 +3636,8 @@ examples: responses: "400": application/json: {"canBeRetried": "Unknown", "correlationId": "bc997528a9d7abb9161ef45f05d38599", "detailedErrorCode": 0, "error": "Error parsing query - Malformed query.", "service": "ClientsApi", "statusCode": 400} + "500": + application/json: {"canBeRetried": "Unknown", "correlationId": "bc997528a9d7abb9161ef45f05d38599", "detailedErrorCode": 0, "error": "Error parsing query - Malformed query.", "service": "ClientsApi", "statusCode": 400} Unresolved property: parameters: path: @@ -1986,6 +3650,8 @@ examples: responses: "400": application/json: {"canBeRetried": "Unknown", "correlationId": "98457fb9956b7f9b4b2fd4f6e23bb5c8", "detailedErrorCode": 0, "error": "Error parsing query - Could not resolve property isCompleted on Dataset", "service": "PullApi", "statusCode": 400} + "500": + application/json: {"canBeRetried": "Unknown", "correlationId": "98457fb9956b7f9b4b2fd4f6e23bb5c8", "detailedErrorCode": 0, "error": "Error parsing query - Could not resolve property isCompleted on Dataset", "service": "PullApi", "statusCode": 400} create-adjustment-transaction: Create adjustment: parameters: @@ -1996,13 +3662,16 @@ examples: responses: "200": application/json: {"syncId": "cd937d46-8e41-43a9-9477-a79158ffd98a"} - "400": {} + "400": + application/json: {} + "500": + application/json: {} Example 1: parameters: path: companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" requestBody: - application/json: [{"currency": "New Zealand Dollar", "date": "2022-10-23T00:00:00Z", "id": "21cf021c-d9cf-4540-8331-5211a509a308", "lines": [{"accountRef": {"id": "40e3e57c-2322-4898-966c-ca41adfd23fd"}, "amount": 50, "description": "APPLE.COM/BILL - 09001077498 - Card Ending: 4590", "invoiceTo": {"id": "80000002-1674552702", "type": "customer"}, "trackingRefs": [{"dataType": "trackingCategories", "id": "e9a1b63d-9ff0-40e7-8038-016354b987e6"}, {"dataType": "trackingCategories", "id": "e9a1b63d-9ff0-40e7-8038-016354b987e6"}]}, {"accountRef": {"id": "40e3e57c-2322-4898-966c-ca41adfd23fd"}, "amount": 50, "description": "APPLE.COM/BILL - 09001077498 - Card Ending: 4590", "invoiceTo": {"id": "80000002-1674552702", "type": "customer"}, "trackingRefs": [{"dataType": "trackingCategories", "id": "e9a1b63d-9ff0-40e7-8038-016354b987e6"}, {"dataType": "trackingCategories", "id": "e9a1b63d-9ff0-40e7-8038-016354b987e6"}, {"dataType": "trackingCategories", "id": "e9a1b63d-9ff0-40e7-8038-016354b987e6"}]}]}] + application/json: [{"currency": "Iraqi Dinar", "date": "2022-10-23T00:00:00Z", "id": "a13b8cfd-4823-489f-b930-8d52faa3dc07", "lines": []}] responses: "200": application/json: {"syncId": "cd937d46-8e41-43a9-9477-a79158ffd98a"} @@ -2011,10 +3680,12 @@ examples: path: companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" requestBody: - application/json: [{"currency": "Lebanese Pound", "date": "2022-10-23T00:00:00Z", "id": "c2becc37-6917-475e-8024-985613de0ee8", "lines": []}] + application/json: [{"currency": "Iraqi Dinar", "date": "2022-10-23T00:00:00Z", "id": "a13b8cfd-4823-489f-b930-8d52faa3dc07", "lines": []}] responses: "400": application/json: {"canBeRetried": "Unknown", "correlationId": "bc997528a9d7abb9161ef45f05d38599", "detailedErrorCode": 0, "error": "Error processing request - not valid.", "service": "PublicApi", "statusCode": 400} + "500": + application/json: {"canBeRetried": "Unknown", "correlationId": "bc997528a9d7abb9161ef45f05d38599", "detailedErrorCode": 0, "error": "Error processing request - not valid.", "service": "PublicApi", "statusCode": 400} get-company-configuration: Unauthorized: parameters: @@ -2023,16 +3694,44 @@ examples: responses: "401": application/json: {"canBeRetried": "Unknown", "correlationId": "7eb40d6b415d7bcd99ce658268284056", "detailedErrorCode": 0, "error": "Unauthorized", "service": "PublicApi", "statusCode": 401} + "500": + application/json: {"canBeRetried": "Unknown", "correlationId": "7eb40d6b415d7bcd99ce658268284056", "detailedErrorCode": 0, "error": "Unauthorized", "service": "PublicApi", "statusCode": 401} + speakeasy-default-get-company-configuration: + parameters: + path: + companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" + responses: + "200": + application/json: {"bankAccount": {"id": "32"}, "customer": {}, "supplier": {}} + "401": + application/json: {} + "500": + application/json: {} set-company-configuration: Malformed query: parameters: path: companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" requestBody: - application/json: {"bankAccount": {"id": "32"}} + application/json: {"bankAccount": {"id": "32"}, "customer": {}, "supplier": {}} responses: "400": application/json: {"canBeRetried": "Unknown", "correlationId": "bc997528a9d7abb9161ef45f05d38599", "detailedErrorCode": 0, "error": "Error processing request - not valid.", "service": "PublicApi", "statusCode": 400} + "500": + application/json: {"canBeRetried": "Unknown", "correlationId": "bc997528a9d7abb9161ef45f05d38599", "detailedErrorCode": 0, "error": "Error processing request - not valid.", "service": "PublicApi", "statusCode": 400} + speakeasy-default-set-company-configuration: + parameters: + path: + companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" + requestBody: + application/json: {"bankAccount": {"id": "32"}, "customer": {}, "supplier": {}} + responses: + "200": + application/json: {"bankAccount": {"id": "32"}, "customer": {}, "supplier": {}} + "400": + application/json: {} + "500": + application/json: {} create-expense-transaction: Payment: parameters: @@ -2043,23 +3742,29 @@ examples: responses: "200": application/json: {"syncId": "cd937d46-8e41-43a9-9477-a79158ffd98a"} - "400": {} + "400": + application/json: {} + "500": + application/json: {} Refund: parameters: path: companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" requestBody: - application/json: [{"bankAccountRef": {"id": "97"}, "contactRef": {"id": "430", "type": "Supplier"}, "currency": "GBP", "id": "7008d3f2-aeb4-11ed-afa1-0242ac120002", "issueDate": "2024-02-17T00:00:00+00:00", "lines": [{"accountRef": {"id": "42"}, "netAmount": 100, "taxAmount": 20, "taxRateRef": {"id": "23_Bills"}, "trackingRefs": [{"id": "DEPARTMENT_6"}]}], "merchantName": "Amazon UK", "notes": "APPLE.COM/BILL - 09001077498 - Card Ending: 4590", "type": "Refund"}] + application/json: [{"bankAccountRef": {"id": "97"}, "contactRef": {"id": "430", "type": "Supplier"}, "currency": "GBP", "id": "7008d3f2-aeb4-11ed-afa1-0242ac120002", "issueDate": "2024-02-17T00:00:00+00:00", "lines": [{"accountRef": {"id": "42"}, "netAmount": 100, "taxAmount": 20, "taxRateRef": {"id": "23_Bills"}, "trackingRefs": [{"dataType": "trackingCategories", "id": "DEPARTMENT_6"}]}], "merchantName": "Amazon UK", "notes": "APPLE.COM/BILL - 09001077498 - Card Ending: 4590", "type": "Refund"}] responses: "200": application/json: {"syncId": "cd937d46-8e41-43a9-9477-a79158ffd98a"} - "400": {} + "400": + application/json: {} + "500": + application/json: {} Example 1: parameters: path: companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" requestBody: - application/json: [{"bankAccountRef": {"id": "97"}, "contactRef": {"id": "430", "type": "Supplier"}, "currency": "GBP", "currencyRate": 1, "id": "a44135b0-6882-489a-83fe-a0c57a4afb19", "issueDate": "2024-05-21T00:00:00+00:00", "lines": [{"accountRef": {"id": "35"}, "invoiceTo": {"id": "504", "type": "customer"}, "netAmount": 100, "taxAmount": 20, "taxRateRef": {"id": "23_Bills"}, "trackingRefs": [{"id": "DEPARTMENT_3"}, {"dataType": "trackingCategories"}]}], "merchantName": "Amazon UK", "notes": "amazon purchase", "type": "Payment"}] + application/json: [{"bankAccountRef": {"id": "97"}, "contactRef": {"id": "430", "type": "Supplier"}, "currency": "GBP", "currencyRate": 1, "id": "a44135b0-6882-489a-83fe-a0c57a4afb19", "issueDate": "2024-05-21T00:00:00+00:00", "lines": [{"accountRef": {"id": "35"}, "invoiceTo": {"id": "504", "type": "customer"}, "netAmount": 100, "taxAmount": 20, "taxRateRef": {"id": "23_Bills"}, "trackingRefs": [{"dataType": "trackingCategories", "id": "DEPARTMENT_3"}, {"dataType": "trackingCategories"}]}], "merchantName": "Amazon UK", "notes": "amazon purchase", "type": "Payment"}] responses: "200": application/json: {"syncId": "cd937d46-8e41-43a9-9477-a79158ffd98a"} @@ -2068,10 +3773,12 @@ examples: path: companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" requestBody: - application/json: [{"bankAccountRef": {"id": "97"}, "contactRef": {"id": "430", "type": "Supplier"}, "currency": "GBP", "currencyRate": 1, "id": "a44135b0-6882-489a-83fe-a0c57a4afb19", "issueDate": "2024-05-21T00:00:00+00:00", "lines": [{"accountRef": {"id": "35"}, "invoiceTo": {"id": "504", "type": "customer"}, "netAmount": 100, "taxAmount": 20, "taxRateRef": {"id": "23_Bills"}, "trackingRefs": [{"id": "DEPARTMENT_3"}, {"dataType": "trackingCategories"}]}], "merchantName": "Amazon UK", "notes": "amazon purchase", "type": "Payment"}] + application/json: [{"bankAccountRef": {"id": "97"}, "contactRef": {"id": "430", "type": "Supplier"}, "currency": "GBP", "currencyRate": 1, "id": "a44135b0-6882-489a-83fe-a0c57a4afb19", "issueDate": "2024-05-21T00:00:00+00:00", "lines": [{"accountRef": {"id": "35"}, "invoiceTo": {"id": "504", "type": "customer"}, "netAmount": 100, "taxAmount": 20, "taxRateRef": {"id": "23_Bills"}, "trackingRefs": [{"dataType": "trackingCategories", "id": "DEPARTMENT_3"}, {"dataType": "trackingCategories"}]}], "merchantName": "Amazon UK", "notes": "amazon purchase", "type": "Payment"}] responses: "400": application/json: {"canBeRetried": "Unknown", "correlationId": "bc997528a9d7abb9161ef45f05d38599", "detailedErrorCode": 0, "error": "Error processing request - not valid.", "service": "PublicApi", "statusCode": 400} + "500": + application/json: {"canBeRetried": "Unknown", "correlationId": "bc997528a9d7abb9161ef45f05d38599", "detailedErrorCode": 0, "error": "Error processing request - not valid.", "service": "PublicApi", "statusCode": 400} update-expense-transaction: Payment: parameters: @@ -2080,16 +3787,39 @@ examples: transactionId: "336694d8-2dca-4cb5-a28d-3ccb83e55eee" requestBody: application/json: {"bankAccountRef": {"id": "97"}, "contactRef": {"id": "430", "type": "Supplier"}, "currency": "GBP", "currencyRate": 1, "issueDate": "2024-05-21T00:00:00+00:00", "lines": [{"accountRef": {"id": "35"}, "invoiceTo": {"id": "504", "type": "customer"}, "netAmount": 100, "taxAmount": 20, "taxRateRef": {"id": "23_Bills"}, "trackingRefs": [{"dataType": "trackingCategories", "id": "DEPARTMENT_5"}]}], "merchantName": "Amazon UK", "notes": "APPLE.COM/BILL - 09001077498 - Card Ending: 4590", "type": "Payment"} + responses: + "202": + application/json: {"syncId": "1ad0695c-4566-4715-918c-adbb03eac81e"} + "400": + application/json: {} + "500": + application/json: {} Malformed query: parameters: path: companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" transactionId: "336694d8-2dca-4cb5-a28d-3ccb83e55eee" requestBody: - application/json: {"bankAccountRef": {"id": "787dfb37-5707-4dc0-8a86-8d74e4cc78ea"}, "contactRef": {"id": "40e3e57c-2322-4898-966c-ca41adfd23fd", "type": "Supplier"}, "currency": "GBP", "issueDate": "2022-06-28T00:00:00.000Z", "lines": [{"accountRef": {"id": "40e3e57c-2322-4898-966c-ca41adfd23fd"}, "invoiceTo": {"id": "80000002-1674552702", "type": "customer"}, "itemRef": {"id": "80000002-1675158984"}, "netAmount": 100, "taxAmount": 20, "taxRateRef": {"id": "40e3e57c-2322-4898-966c-ca41adfd23fd"}, "trackingRefs": [{"dataType": "trackingCategories", "id": "e9a1b63d-9ff0-40e7-8038-016354b987e6"}, {"dataType": "trackingCategories", "id": "e9a1b63d-9ff0-40e7-8038-016354b987e6"}]}, {"accountRef": {"id": "40e3e57c-2322-4898-966c-ca41adfd23fd"}, "invoiceTo": {"id": "80000002-1674552702", "type": "customer"}, "itemRef": {"id": "80000002-1675158984"}, "netAmount": 100, "taxAmount": 20, "taxRateRef": {"id": "40e3e57c-2322-4898-966c-ca41adfd23fd"}, "trackingRefs": [{"dataType": "trackingCategories", "id": "e9a1b63d-9ff0-40e7-8038-016354b987e6"}]}, {"accountRef": {"id": "40e3e57c-2322-4898-966c-ca41adfd23fd"}, "invoiceTo": {"id": "80000002-1674552702", "type": "customer"}, "itemRef": {"id": "80000002-1675158984"}, "netAmount": 100, "taxAmount": 20, "taxRateRef": {"id": "40e3e57c-2322-4898-966c-ca41adfd23fd"}, "trackingRefs": [{"dataType": "trackingCategories", "id": "e9a1b63d-9ff0-40e7-8038-016354b987e6"}, {"dataType": "trackingCategories", "id": "e9a1b63d-9ff0-40e7-8038-016354b987e6"}, {"dataType": "trackingCategories", "id": "e9a1b63d-9ff0-40e7-8038-016354b987e6"}]}], "merchantName": "Amazon UK", "notes": "APPLE.COM/BILL - 09001077498 - Card Ending: 4590", "type": "Payment"} + application/json: {"bankAccountRef": {"id": "787dfb37-5707-4dc0-8a86-8d74e4cc78ea"}, "contactRef": {"id": "40e3e57c-2322-4898-966c-ca41adfd23fd", "type": "Supplier"}, "currency": "GBP", "issueDate": "2022-06-28T00:00:00.000Z", "lines": [{"accountRef": {"id": "40e3e57c-2322-4898-966c-ca41adfd23fd"}, "invoiceTo": null, "itemRef": null, "netAmount": 100, "taxAmount": 20, "taxRateRef": {"id": "40e3e57c-2322-4898-966c-ca41adfd23fd"}, "trackingRefs": null}], "merchantName": "Amazon UK", "notes": "APPLE.COM/BILL - 09001077498 - Card Ending: 4590", "type": "Payment"} responses: "400": application/json: {"canBeRetried": "Unknown", "correlationId": "bc997528a9d7abb9161ef45f05d38599", "detailedErrorCode": 0, "error": "Error processing request - not valid.", "service": "PublicApi", "statusCode": 400} + "500": + application/json: {"canBeRetried": "Unknown", "correlationId": "bc997528a9d7abb9161ef45f05d38599", "detailedErrorCode": 0, "error": "Error processing request - not valid.", "service": "PublicApi", "statusCode": 400} + speakeasy-default-update-expense-transaction: + parameters: + path: + companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" + transactionId: "336694d8-2dca-4cb5-a28d-3ccb83e55eee" + requestBody: + application/json: {"bankAccountRef": {"id": "787dfb37-5707-4dc0-8a86-8d74e4cc78ea"}, "contactRef": {"id": "40e3e57c-2322-4898-966c-ca41adfd23fd", "type": "Supplier"}, "currency": "GBP", "issueDate": "2022-06-28T00:00:00.000Z", "lines": [{"accountRef": {"id": "40e3e57c-2322-4898-966c-ca41adfd23fd"}, "invoiceTo": null, "itemRef": null, "netAmount": 100, "taxAmount": 20, "taxRateRef": {"id": "40e3e57c-2322-4898-966c-ca41adfd23fd"}, "trackingRefs": null}], "merchantName": "Amazon UK", "notes": "APPLE.COM/BILL - 09001077498 - Card Ending: 4590", "type": "Payment"} + responses: + "202": + application/json: {"syncId": "1ad0695c-4566-4715-918c-adbb03eac81e"} + "400": + application/json: {} + "500": + application/json: {} get-mapping-options: Unauthorized: parameters: @@ -2097,7 +3827,20 @@ examples: companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" responses: "401": - application/json: {"canBeRetried": "Unknown", "correlationId": "7eb40d6b415d7bcd99ce658268284056", "detailedErrorCode": 0, "error": "Unauthorized", "service": "PublicApi", "statusCode": 401} + application/json: {"canBeRetried": "Unknown", "correlationId": "7eb40d6b415d7bcd99ce658268284056", "detailedErrorCode": 0, "error": "Unauthorized", "service": "PublicApi", "statusCode": 401} + "500": + application/json: {"canBeRetried": "Unknown", "correlationId": "7eb40d6b415d7bcd99ce658268284056", "detailedErrorCode": 0, "error": "Unauthorized", "service": "PublicApi", "statusCode": 401} + speakeasy-default-get-mapping-options: + parameters: + path: + companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" + responses: + "200": + application/json: {"accounts": [{"accountType": "Expense", "currency": "GBP", "fullyQualifiedCategory": "Expense.DirectCosts", "id": "127f3b99-8dc2-4b7e-854c-91ef9bd2757b", "name": "Purchases", "nominalCode": "300", "validFor": ["expense-transactions.Payment"], "validTransactionTypes": ["Payment"]}], "expenseProvider": "Partner Expense", "taxRates": [{"code": "20% Bill tax", "effectiveTaxRate": 20, "id": "23_Bills", "name": "20% Bill tax Bills", "totalTaxRate": 20, "validTransactionTypes": ["Payment"]}], "trackingCategories": [{"id": "DEPARTMENT_2", "name": "New York", "parentId": "DEPARTMENTS"}]} + "401": + application/json: {} + "500": + application/json: {} create-reimbursable-expense-transaction: Create reimbursable expense: parameters: @@ -2108,13 +3851,16 @@ examples: responses: "200": application/json: {"syncId": "cd937d46-8e41-43a9-9477-a79158ffd98a"} - "400": {} + "400": + application/json: {} + "500": + application/json: {} Example 1: parameters: path: companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" requestBody: - application/json: [{"apAccountRef": {"id": "8000004C-1724173136"}, "contactRef": {"id": "40e3e57c-2322-4898-966c-ca41adfd23fd"}, "currency": "GBP", "dueDate": "2022-10-23T00:00:00Z", "id": "4d7c6929-7770-412b-91bb-44d3bc71d111", "issueDate": "2022-10-23T00:00:00Z", "lines": [], "notes": "APPLE.COM/BILL - 09001077498 - Card Ending: 4590"}] + application/json: [{"apAccountRef": null, "contactRef": {"id": "40e3e57c-2322-4898-966c-ca41adfd23fd"}, "currency": "GBP", "dueDate": "2022-10-23T00:00:00Z", "id": "4d7c6929-7770-412b-91bb-44d3bc71d111", "issueDate": "2022-10-23T00:00:00Z", "lines": [{"accountRef": {"id": "40e3e57c-2322-4898-966c-ca41adfd23fd"}, "description": "2-night hotel stay", "invoiceTo": {"id": "80000002-1674552702", "type": "customer"}, "itemRef": {"id": "80000002-1675158984"}, "netAmount": 100, "taxAmount": 20, "taxRateRef": {"id": "40e3e57c-2322-4898-966c-ca41adfd23fd"}, "trackingRefs": [{"dataType": "trackingCategories", "id": "e9a1b63d-9ff0-40e7-8038-016354b987e6"}]}], "notes": "APPLE.COM/BILL - 09001077498 - Card Ending: 4590"}] responses: "200": application/json: {"syncId": "cd937d46-8e41-43a9-9477-a79158ffd98a"} @@ -2123,10 +3869,12 @@ examples: path: companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" requestBody: - application/json: [] + application/json: [{"apAccountRef": null, "contactRef": {"id": "40e3e57c-2322-4898-966c-ca41adfd23fd"}, "currency": "GBP", "dueDate": "2022-10-23T00:00:00Z", "id": "4d7c6929-7770-412b-91bb-44d3bc71d111", "issueDate": "2022-10-23T00:00:00Z", "lines": [{"accountRef": {"id": "40e3e57c-2322-4898-966c-ca41adfd23fd"}, "description": "2-night hotel stay", "invoiceTo": {"id": "80000002-1674552702", "type": "customer"}, "itemRef": {"id": "80000002-1675158984"}, "netAmount": 100, "taxAmount": 20, "taxRateRef": {"id": "40e3e57c-2322-4898-966c-ca41adfd23fd"}, "trackingRefs": [{"dataType": "trackingCategories", "id": "e9a1b63d-9ff0-40e7-8038-016354b987e6"}]}], "notes": "APPLE.COM/BILL - 09001077498 - Card Ending: 4590"}] responses: "400": application/json: {"canBeRetried": "Unknown", "correlationId": "bc997528a9d7abb9161ef45f05d38599", "detailedErrorCode": 0, "error": "Error processing request - not valid.", "service": "PublicApi", "statusCode": 400} + "500": + application/json: {"canBeRetried": "Unknown", "correlationId": "bc997528a9d7abb9161ef45f05d38599", "detailedErrorCode": 0, "error": "Error processing request - not valid.", "service": "PublicApi", "statusCode": 400} update-reimbursable-expense-transaction: Update reimbursable expense: parameters: @@ -2138,14 +3886,17 @@ examples: responses: "200": application/json: {"syncId": "cd937d46-8e41-43a9-9477-a79158ffd98a"} - "400": {} + "400": + application/json: {} + "500": + application/json: {} Example 1: parameters: path: companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" transactionId: "336694d8-2dca-4cb5-a28d-3ccb83e55eee" requestBody: - application/json: {"apAccountRef": {"id": "8000004C-1724173136"}, "contactRef": {"id": "40e3e57c-2322-4898-966c-ca41adfd23fd"}, "currency": "GBP", "dueDate": "2022-10-23T00:00:00Z", "issueDate": "2022-10-23T00:00:00Z", "lines": [{"accountRef": {"id": "40e3e57c-2322-4898-966c-ca41adfd23fd"}, "description": "2-night hotel stay", "invoiceTo": {"id": "80000002-1674552702", "type": "customer"}, "itemRef": {"id": "80000002-1675158984"}, "netAmount": 100, "taxAmount": 20, "taxRateRef": {"id": "40e3e57c-2322-4898-966c-ca41adfd23fd"}, "trackingRefs": [{"dataType": "trackingCategories", "id": "e9a1b63d-9ff0-40e7-8038-016354b987e6"}, {"dataType": "trackingCategories", "id": "e9a1b63d-9ff0-40e7-8038-016354b987e6"}, {"dataType": "trackingCategories", "id": "e9a1b63d-9ff0-40e7-8038-016354b987e6"}]}], "notes": "APPLE.COM/BILL - 09001077498 - Card Ending: 4590"} + application/json: {"apAccountRef": {"id": "8000004C-1724173136"}, "contactRef": {"id": "40e3e57c-2322-4898-966c-ca41adfd23fd"}, "currency": "GBP", "dueDate": "2022-10-23T00:00:00Z", "issueDate": "2022-10-23T00:00:00Z", "lines": [{"accountRef": {"id": "40e3e57c-2322-4898-966c-ca41adfd23fd"}, "description": "2-night hotel stay", "invoiceTo": {"id": "80000002-1674552702", "type": "customer"}, "itemRef": {"id": "80000002-1675158984"}, "netAmount": 100, "taxAmount": 20, "taxRateRef": {"id": "40e3e57c-2322-4898-966c-ca41adfd23fd"}, "trackingRefs": [{"dataType": "trackingCategories", "id": "e9a1b63d-9ff0-40e7-8038-016354b987e6"}]}], "notes": "APPLE.COM/BILL - 09001077498 - Card Ending: 4590"} responses: "200": application/json: {"syncId": "cd937d46-8e41-43a9-9477-a79158ffd98a"} @@ -2155,10 +3906,12 @@ examples: companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" transactionId: "336694d8-2dca-4cb5-a28d-3ccb83e55eee" requestBody: - application/json: {"apAccountRef": {"id": "8000004C-1724173136"}, "contactRef": {"id": "40e3e57c-2322-4898-966c-ca41adfd23fd"}, "currency": "GBP", "dueDate": "2022-10-23T00:00:00Z", "issueDate": "2022-10-23T00:00:00Z", "lines": [{"accountRef": {"id": "40e3e57c-2322-4898-966c-ca41adfd23fd"}, "description": "2-night hotel stay", "invoiceTo": {"id": "80000002-1674552702", "type": "customer"}, "itemRef": {"id": "80000002-1675158984"}, "netAmount": 100, "taxAmount": 20, "taxRateRef": {"id": "40e3e57c-2322-4898-966c-ca41adfd23fd"}, "trackingRefs": []}, {"accountRef": {"id": "40e3e57c-2322-4898-966c-ca41adfd23fd"}, "description": "2-night hotel stay", "invoiceTo": {"id": "80000002-1674552702", "type": "customer"}, "itemRef": {"id": "80000002-1675158984"}, "netAmount": 100, "taxAmount": 20, "taxRateRef": {"id": "40e3e57c-2322-4898-966c-ca41adfd23fd"}, "trackingRefs": [{"dataType": "trackingCategories", "id": "e9a1b63d-9ff0-40e7-8038-016354b987e6"}, {"dataType": "trackingCategories", "id": "e9a1b63d-9ff0-40e7-8038-016354b987e6"}, {"dataType": "trackingCategories", "id": "e9a1b63d-9ff0-40e7-8038-016354b987e6"}]}, {"accountRef": {"id": "40e3e57c-2322-4898-966c-ca41adfd23fd"}, "description": "2-night hotel stay", "invoiceTo": {"id": "80000002-1674552702", "type": "customer"}, "itemRef": {"id": "80000002-1675158984"}, "netAmount": 100, "taxAmount": 20, "taxRateRef": {"id": "40e3e57c-2322-4898-966c-ca41adfd23fd"}, "trackingRefs": [{"dataType": "trackingCategories", "id": "e9a1b63d-9ff0-40e7-8038-016354b987e6"}]}], "notes": "APPLE.COM/BILL - 09001077498 - Card Ending: 4590"} + application/json: {"apAccountRef": {"id": "8000004C-1724173136"}, "contactRef": {"id": "40e3e57c-2322-4898-966c-ca41adfd23fd"}, "currency": "GBP", "dueDate": "2022-10-23T00:00:00Z", "issueDate": "2022-10-23T00:00:00Z", "lines": [{"accountRef": {"id": "40e3e57c-2322-4898-966c-ca41adfd23fd"}, "description": "2-night hotel stay", "invoiceTo": {"id": "80000002-1674552702", "type": "customer"}, "itemRef": {"id": "80000002-1675158984"}, "netAmount": 100, "taxAmount": 20, "taxRateRef": {"id": "40e3e57c-2322-4898-966c-ca41adfd23fd"}, "trackingRefs": [{"dataType": "trackingCategories", "id": "e9a1b63d-9ff0-40e7-8038-016354b987e6"}]}], "notes": "APPLE.COM/BILL - 09001077498 - Card Ending: 4590"} responses: "400": application/json: {"canBeRetried": "Unknown", "correlationId": "bc997528a9d7abb9161ef45f05d38599", "detailedErrorCode": 0, "error": "Error processing request - not valid.", "service": "PublicApi", "statusCode": 400} + "500": + application/json: {"canBeRetried": "Unknown", "correlationId": "bc997528a9d7abb9161ef45f05d38599", "detailedErrorCode": 0, "error": "Error processing request - not valid.", "service": "PublicApi", "statusCode": 400} get-sync-by-id: Unauthorized: parameters: @@ -2168,6 +3921,20 @@ examples: responses: "401": application/json: {"canBeRetried": "Unknown", "correlationId": "7eb40d6b415d7bcd99ce658268284056", "detailedErrorCode": 0, "error": "Unauthorized", "service": "PublicApi", "statusCode": 401} + "500": + application/json: {"canBeRetried": "Unknown", "correlationId": "7eb40d6b415d7bcd99ce658268284056", "detailedErrorCode": 0, "error": "Unauthorized", "service": "PublicApi", "statusCode": 401} + speakeasy-default-get-sync-by-id: + parameters: + path: + companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" + syncId: "6fb40d5e-b13e-11ed-afa1-0242ac120002" + responses: + "200": + application/json: {"companyId": "d4d73051-ed31-42b6-99f6-d288cd940992", "syncId": "a6a22aff-a43a-411d-a910-2dae73217cce", "syncStatus": "Complete", "syncStatusCode": 2000, "syncUtc": "2022-10-23T00:00:00Z"} + "401": + application/json: {} + "500": + application/json: {} get-last-successful-sync: Unauthorized: parameters: @@ -2176,6 +3943,19 @@ examples: responses: "401": application/json: {"canBeRetried": "Unknown", "correlationId": "7eb40d6b415d7bcd99ce658268284056", "detailedErrorCode": 0, "error": "Unauthorized", "service": "PublicApi", "statusCode": 401} + "500": + application/json: {"canBeRetried": "Unknown", "correlationId": "7eb40d6b415d7bcd99ce658268284056", "detailedErrorCode": 0, "error": "Unauthorized", "service": "PublicApi", "statusCode": 401} + speakeasy-default-get-last-successful-sync: + parameters: + path: + companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" + responses: + "200": + application/json: {"companyId": "d4d73051-ed31-42b6-99f6-d288cd940992", "syncId": "a6a22aff-a43a-411d-a910-2dae73217cce", "syncStatus": "Complete", "syncStatusCode": 2000, "syncUtc": "2022-10-23T00:00:00Z"} + "401": + application/json: {} + "500": + application/json: {} get-latest-sync: Unauthorized: parameters: @@ -2184,6 +3964,19 @@ examples: responses: "401": application/json: {"canBeRetried": "Unknown", "correlationId": "7eb40d6b415d7bcd99ce658268284056", "detailedErrorCode": 0, "error": "Unauthorized", "service": "PublicApi", "statusCode": 401} + "500": + application/json: {"canBeRetried": "Unknown", "correlationId": "7eb40d6b415d7bcd99ce658268284056", "detailedErrorCode": 0, "error": "Unauthorized", "service": "PublicApi", "statusCode": 401} + speakeasy-default-get-latest-sync: + parameters: + path: + companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" + responses: + "200": + application/json: {"companyId": "d4d73051-ed31-42b6-99f6-d288cd940992", "syncId": "a6a22aff-a43a-411d-a910-2dae73217cce", "syncStatus": "Complete", "syncStatusCode": 2000, "syncUtc": "2022-10-23T00:00:00Z"} + "401": + application/json: {} + "500": + application/json: {} list-syncs: Unauthorized: parameters: @@ -2192,6 +3985,19 @@ examples: responses: "401": application/json: {"canBeRetried": "Unknown", "correlationId": "7eb40d6b415d7bcd99ce658268284056", "detailedErrorCode": 0, "error": "Unauthorized", "service": "PublicApi", "statusCode": 401} + "500": + application/json: {"canBeRetried": "Unknown", "correlationId": "7eb40d6b415d7bcd99ce658268284056", "detailedErrorCode": 0, "error": "Unauthorized", "service": "PublicApi", "statusCode": 401} + speakeasy-default-list-syncs: + parameters: + path: + companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" + responses: + "200": + application/json: [{"companyId": "d4d73051-ed31-42b6-99f6-d288cd940992", "syncId": "a6a22aff-a43a-411d-a910-2dae73217cce", "syncStatus": "Complete", "syncStatusCode": 2000, "syncUtc": "2022-10-23T00:00:00Z"}] + "401": + application/json: {} + "500": + application/json: {} get-sync-transaction: Unauthorized: parameters: @@ -2202,6 +4008,21 @@ examples: responses: "401": application/json: {"canBeRetried": "Unknown", "correlationId": "7eb40d6b415d7bcd99ce658268284056", "detailedErrorCode": 0, "error": "Unauthorized", "service": "PublicApi", "statusCode": 401} + "500": + application/json: {"canBeRetried": "Unknown", "correlationId": "7eb40d6b415d7bcd99ce658268284056", "detailedErrorCode": 0, "error": "Unauthorized", "service": "PublicApi", "statusCode": 401} + speakeasy-default-get-sync-transaction: + parameters: + path: + companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" + syncId: "6fb40d5e-b13e-11ed-afa1-0242ac120002" + transactionId: "336694d8-2dca-4cb5-a28d-3ccb83e55eee" + responses: + "200": + application/json: [{"integrationType": "expenses", "status": "Completed", "transactionId": "aa02271d-ed5f-47f5-be76-778d5905225a"}] + "401": + application/json: {} + "500": + application/json: {} list-sync-transactions: Malformed query: parameters: @@ -2214,6 +4035,8 @@ examples: responses: "400": application/json: {"canBeRetried": "Unknown", "correlationId": "bc997528a9d7abb9161ef45f05d38599", "detailedErrorCode": 0, "error": "Error parsing query - Malformed query.", "service": "ClientsApi", "statusCode": 400} + "500": + application/json: {"canBeRetried": "Unknown", "correlationId": "bc997528a9d7abb9161ef45f05d38599", "detailedErrorCode": 0, "error": "Error parsing query - Malformed query.", "service": "ClientsApi", "statusCode": 400} Unresolved property: parameters: path: @@ -2225,6 +4048,23 @@ examples: responses: "400": application/json: {"canBeRetried": "Unknown", "correlationId": "98457fb9956b7f9b4b2fd4f6e23bb5c8", "detailedErrorCode": 0, "error": "Error parsing query - Could not resolve property isCompleted on Dataset", "service": "PullApi", "statusCode": 400} + "500": + application/json: {"canBeRetried": "Unknown", "correlationId": "98457fb9956b7f9b4b2fd4f6e23bb5c8", "detailedErrorCode": 0, "error": "Error parsing query - Could not resolve property isCompleted on Dataset", "service": "PullApi", "statusCode": 400} + speakeasy-default-list-sync-transactions: + parameters: + path: + companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" + syncId: "6fb40d5e-b13e-11ed-afa1-0242ac120002" + query: + page: 1 + pageSize: 100 + responses: + "200": + application/json: {"_links": {"current": {"href": "/companies/{id}/data/{dataType}?page=1&pageSize=10"}, "self": {"href": "/companies/{id}/data/{dataType}"}}, "pageNumber": 1, "pageSize": 10, "totalResults": 1} + "400": + application/json: {} + "500": + application/json: {} upload-expense-attachment: Malformed query: parameters: @@ -2235,6 +4075,21 @@ examples: responses: "400": application/json: {"canBeRetried": "Unknown", "correlationId": "bc997528a9d7abb9161ef45f05d38599", "detailedErrorCode": 0, "error": "Error processing request - not valid.", "service": "PublicApi", "statusCode": 400} + "500": + application/json: {"canBeRetried": "Unknown", "correlationId": "bc997528a9d7abb9161ef45f05d38599", "detailedErrorCode": 0, "error": "Error processing request - not valid.", "service": "PublicApi", "statusCode": 400} + speakeasy-default-upload-expense-attachment: + parameters: + path: + companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" + syncId: "6fb40d5e-b13e-11ed-afa1-0242ac120002" + transactionId: "336694d8-2dca-4cb5-a28d-3ccb83e55eee" + responses: + "200": + application/json: {} + "400": + application/json: {} + "500": + application/json: {} create-transfer-transaction: Create transfer: parameters: @@ -2246,14 +4101,17 @@ examples: responses: "200": application/json: {"syncId": "cd937d46-8e41-43a9-9477-a79158ffd98a"} - "400": {} + "400": + application/json: {} + "500": + application/json: {} Example 1: parameters: path: companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" transactionId: "336694d8-2dca-4cb5-a28d-3ccb83e55eee" requestBody: - application/json: {"date": "2022-10-23T00:00:00Z", "description": "Transfer from bank account Y to bank account Z", "from": {"accountRef": {"id": ""}, "amount": "6384.24"}, "to": {"accountRef": {"id": ""}, "amount": "4174.58"}} + application/json: {"date": "2022-10-23T00:00:00Z", "description": "Transfer from bank account Y to bank account Z", "from": {"accountRef": {"id": ""}, "amount": 7329.18}, "to": {"accountRef": {"id": ""}, "amount": 522.15}} responses: "200": application/json: {"syncId": "cd937d46-8e41-43a9-9477-a79158ffd98a"} @@ -2263,40 +4121,446 @@ examples: companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" transactionId: "336694d8-2dca-4cb5-a28d-3ccb83e55eee" requestBody: - application/json: {"date": "2022-10-23T00:00:00Z", "description": "Transfer from bank account Y to bank account Z", "from": {"accountRef": {"id": ""}, "amount": "690.26"}, "to": {"accountRef": {"id": ""}, "amount": "7964.74"}} + application/json: {"date": "2022-10-23T00:00:00Z", "description": "Transfer from bank account Y to bank account Z", "from": {"accountRef": {"id": ""}, "amount": 7329.18}, "to": {"accountRef": {"id": ""}, "amount": 522.15}} responses: "400": application/json: {"canBeRetried": "Unknown", "correlationId": "bc997528a9d7abb9161ef45f05d38599", "detailedErrorCode": 0, "error": "Error processing request - not valid.", "service": "PublicApi", "statusCode": 400} - Client rate limit reached: - speakeasy-default-client-rate-limit-reached: - requestBody: - application/json: {"AlertId": "a9367074-b5c3-42c4-9be4-be129f43577e", "ClientId": "bae71d36-ff47-420a-b4a6-f8c9ddf41140", "ClientName": "Bank of Dave", "Data": {"DailyQuota": 1000, "ExpiresUtc": "2022-10-23T00:00:00Z"}, "Message": "The current daily rate limit quota of 1000 requests for bae71d36-ff47-420a-b4a6-f8c9ddf41140 has been reached.", "RuleId": "70af3071-65d9-4ec3-b3cb-5283e8d55dac", "RuleType": "Rate Limit Reached"} - Client rate limit reset: - speakeasy-default-client-rate-limit-reset: - requestBody: - application/json: {"AlertId": "a9367074-b5c3-42c4-9be4-be129f43577e", "ClientId": "bae71d36-ff47-420a-b4a6-f8c9ddf41140", "ClientName": "Bank of Dave", "Data": {"DailyQuota": 1000, "ExpiresUtc": "2022-10-23T00:00:00Z", "QuotaRemaining": 1000, "ResetReason": "The quota was reset because it is a new day."}, "Message": "The current daily rate limit quota for client 30e0f9d2-52c0-4c9f-a806-bcd98a3bcd7e has been reset to 1000 requests.", "RuleId": "70af3071-65d9-4ec3-b3cb-5283e8d55dac", "RuleType": "Rate Limit Reset"} - SyncCompleted: - speakeasy-default-sync-completed: - requestBody: - application/json: {"AlertId": "33a4f8e9-09ae-4334-9b00-7bbe83024672", "ClientId": "30e0f9d2-52c0-4c9f-a806-bcd98a3bcd7e", "ClientName": "Expense Sync", "CompanyId": "8a210b68-6988-11ed-a1eb-0242ac120002", "Data": {"syncId": "a9367074-b5c3-42c4-9be4-be129f43577e", "syncType": "Expense"}, "Message": "Sync 321363b4-efa9-4fbc-b71c-0b58d62f3248 for company 1f9559e7-8368-48c9-bdf4-f158e16b8b85 of type Expense completed successfully.", "RuleId": "5c27631d-3b63-4b50-8228-ee502fd113eb", "RuleType": "Sync Completed"} - SyncFailed: - speakeasy-default-sync-failed: - requestBody: - application/json: {"AlertId": "72c1103b-7f17-4a3a-8db5-67c2d360a516", "ClientId": "30e0f9d2-52c0-4c9f-a806-bcd98a3bcd7e", "ClientName": "Expense Sync", "CompanyId": "8a210b68-6988-11ed-a1eb-0242ac120002", "Data": {"FailureStage": "Pushing", "syncId": "a9367074-b5c3-42c4-9be4-be129f43577e", "syncType": "Expense"}, "Message": "Sync 3bead2a1-1b3d-4d90-8077-cddc5ca68b01 for company 1f9559e7-8368-48c9-bdf4-f158e16b8b85 of type Expense has failed at step Pushing.", "RuleId": "289c80dc-2aee-4b71-afff-9acd8d051080", "RuleType": "Sync Failed"} - client.rateLimit.reached: - Reached: - requestBody: - application/json: {"eventType": "client.rateLimit.reached", "generatedDate": "2024-09-01T00:00:00Z", "id": "743ec94a-8aa4-44bb-8bd4-e1855ee0e74b", "payload": {"dailyQuota": 12000, "expiryDate": "2024-09-01T12:14:14Z", "quotaRemaining": 0}} - client.rateLimit.reset: - Reset: - requestBody: - application/json: {"eventType": "client.rateLimit.reset", "generatedDate": "2024-09-01T00:00:00Z", "id": "743ec94a-8aa4-44bb-8bd4-e1855ee0e74b", "payload": {"dailyQuota": 12000, "expiryDate": "2024-09-01T23:59:99Z", "quotaRemaining": 11993}} - expenses.sync.successful: - Successful: - requestBody: - application/json: {"eventType": "expenses.sync.successful", "generatedDate": "2024-09-01T00:00:00Z", "id": "ba29118f-5406-4e59-b05c-ba307ca38d01", "payload": {"referenceCompany": {"description": "Syncing expenses", "id": "0498e921-9b53-4396-a412-4f2f5983b0a2", "name": "Toft stores"}, "syncId": "ee2eb431-c0fa-4dc9-93fa-d29781c12bcd", "transactions": [{"errorMessage": null, "id": "f47ac10b-58cc-4372-a567-0e02b2c3d479", "status": "Completed"}, {"errorMessage": null, "id": "e7f8a3d5-0c3c-4c9b-b5d3-56b4a43b62e4", "status": "Completed"}]}} - expenses.sync.unsuccessful: - Unsuccessful: - requestBody: - application/json: {"eventType": "expenses.sync.unsuccessful", "generatedDate": "2024-09-01T00:00:00Z", "id": "ba29118f-5406-4e59-b05c-ba307ca38d01", "payload": {"referenceCompany": {"description": "Syncing expenses", "id": "0498e921-9b53-4396-a412-4f2f5983b0a2", "name": "Toft stores"}, "syncId": "ee2eb431-c0fa-4dc9-93fa-d29781c12bcd", "transactions": [{"errorMessage": null, "id": "f47ac10b-58cc-4372-a567-0e02b2c3d479", "status": "Completed"}, {"errorMessage": "Insufficient funds", "id": "e7f8a3d5-0c3c-4c9b-b5d3-56b4a43b62e4", "status": "Failed"}]}} + "500": + application/json: {"canBeRetried": "Unknown", "correlationId": "bc997528a9d7abb9161ef45f05d38599", "detailedErrorCode": 0, "error": "Error processing request - not valid.", "service": "PublicApi", "statusCode": 400} +examplesVersion: 1.0.2 generatedTests: {} +releaseNotes: "## Python SDK Changes:\n* `codat_sync_expenses.connections.create_partner_expense_connection()`: `response.connection_info.Map` **Changed** (Breaking ⚠️)\n* `codat_sync_expenses.companies.create()`: `response.data_connections[].connection_info.Map` **Changed** (Breaking ⚠️)\n* `codat_sync_expenses.companies.get()`: `response.data_connections[].connection_info.Map` **Changed** (Breaking ⚠️)\n* `codat_sync_expenses.companies.list()`: \n * `request.tags` **Added**\n * `response.results[].data_connections[].connection_info.Map` **Changed** (Breaking ⚠️)\n* `codat_sync_expenses.companies.update()`: \n * `request` **Changed** (Breaking ⚠️)\n * `response.data_connections[].connection_info.Map` **Changed** (Breaking ⚠️)\n* `codat_sync_expenses.connections.create()`: `response.connection_info.Map` **Changed** (Breaking ⚠️)\n* `codat_sync_expenses.connections.get()`: `response.connection_info.Map` **Changed** (Breaking ⚠️)\n* `codat_sync_expenses.connections.list()`: `response.results[].connection_info.Map` **Changed** (Breaking ⚠️)\n* `codat_sync_expenses.connections.unlink()`: `response.connection_info.Map` **Changed** (Breaking ⚠️)\n* `codat_sync_expenses.companies.replace()`: **Added**\n* `codat_sync_expenses.manage_data.get()`: `response.account_transactions.last_successful_sync` **Changed**\n* `codat_sync_expenses.manage_data.refresh_all_data_types()`: `error.status[400]` **Added**\n* `codat_sync_expenses.manage_data.refresh_data_type()`: `error.status[400]` **Added**\n" +generatedFiles: + - .gitattributes + - .python-version + - .vscode/settings.json + - CONTRIBUTING.md + - USAGE.md + - docs/models/errors/errormessage.md + - docs/models/operations/createaccountrequest.md + - docs/models/operations/createadjustmenttransactionrequest.md + - docs/models/operations/createbankaccountrequest.md + - docs/models/operations/createconnectionrequest.md + - docs/models/operations/createconnectionrequestbody.md + - docs/models/operations/createcustomerrequest.md + - docs/models/operations/createexpensetransactionrequest.md + - docs/models/operations/createpartnerexpenseconnectionrequest.md + - docs/models/operations/createreimbursableexpensetransactionrequest.md + - docs/models/operations/createsupplierrequest.md + - docs/models/operations/createtransfertransactionrequest.md + - docs/models/operations/deletecompanyrequest.md + - docs/models/operations/deleteconnectionrequest.md + - docs/models/operations/getcompanyconfigurationrequest.md + - docs/models/operations/getcompanyinforequest.md + - docs/models/operations/getcompanyrequest.md + - docs/models/operations/getconnectionrequest.md + - docs/models/operations/getcreatebankaccountsmodelrequest.md + - docs/models/operations/getcreatechartofaccountsmodelrequest.md + - docs/models/operations/getcustomerrequest.md + - docs/models/operations/getdatastatusdatastatuses.md + - docs/models/operations/getdatastatusrequest.md + - docs/models/operations/getlastsuccessfulsyncrequest.md + - docs/models/operations/getlatestsyncrequest.md + - docs/models/operations/getmappingoptionsrequest.md + - docs/models/operations/getpulloperationrequest.md + - docs/models/operations/getpushoperationrequest.md + - docs/models/operations/getsupplierrequest.md + - docs/models/operations/getsyncbyidrequest.md + - docs/models/operations/getsynctransactionrequest.md + - docs/models/operations/listcompaniesrequest.md + - docs/models/operations/listconnectionsrequest.md + - docs/models/operations/listcustomersrequest.md + - docs/models/operations/listpulloperationsrequest.md + - docs/models/operations/listpushoperationsrequest.md + - docs/models/operations/listsuppliersrequest.md + - docs/models/operations/listsyncsrequest.md + - docs/models/operations/listsynctransactionsrequest.md + - docs/models/operations/refreshalldatatypesrequest.md + - docs/models/operations/refreshdatatyperequest.md + - docs/models/operations/setcompanyconfigurationrequest.md + - docs/models/operations/unlinkconnectionrequest.md + - docs/models/operations/unlinkconnectionupdateconnection.md + - docs/models/operations/updatecompanyrequest.md + - docs/models/operations/updatecustomerrequest.md + - docs/models/operations/updateexpensetransactionrequest.md + - docs/models/operations/updatereimbursableexpensetransactionrequest.md + - docs/models/operations/updatesupplierrequest.md + - docs/models/operations/uploadexpenseattachmentrequest.md + - docs/models/shared/accountingaccount.md + - docs/models/shared/accountingaddress.md + - docs/models/shared/accountingaddresstype.md + - docs/models/shared/accountingbankaccount.md + - docs/models/shared/accountingcustomer.md + - docs/models/shared/accountingsupplier.md + - docs/models/shared/accountmappinginfo.md + - docs/models/shared/accountmappinginfoaccounttype.md + - docs/models/shared/accountprototype.md + - docs/models/shared/accountreference.md + - docs/models/shared/accountstatus.md + - docs/models/shared/accounttype.md + - docs/models/shared/adjustmenttransactionline.md + - docs/models/shared/adjustmenttransactionrequest.md + - docs/models/shared/adjustmenttransactionresponse.md + - docs/models/shared/apaccountref.md + - docs/models/shared/attachment.md + - docs/models/shared/attachmentupload.md + - docs/models/shared/bankaccount.md + - docs/models/shared/bankaccountdetails.md + - docs/models/shared/bankaccountreference.md + - docs/models/shared/bankaccountstatus.md + - docs/models/shared/bankaccounttype.md + - docs/models/shared/clientratelimitreachedwebhook.md + - docs/models/shared/clientratelimitreachedwebhookdata.md + - docs/models/shared/clientratelimitresetwebhook.md + - docs/models/shared/clientratelimitresetwebhookdata.md + - docs/models/shared/clientratelimitwebhook.md + - docs/models/shared/clientratelimitwebhookpayload.md + - docs/models/shared/codatfile.md + - docs/models/shared/companies.md + - docs/models/shared/company.md + - docs/models/shared/companyconfiguration.md + - docs/models/shared/companyinformation.md + - docs/models/shared/companyinformationtype.md + - docs/models/shared/companyreference.md + - docs/models/shared/companyreferencelinks.md + - docs/models/shared/companyrequestbody.md + - docs/models/shared/companysyncstatus.md + - docs/models/shared/connection.md + - docs/models/shared/connections.md + - docs/models/shared/contact.md + - docs/models/shared/createaccountresponse.md + - docs/models/shared/createaccountresponsemetadata.md + - docs/models/shared/createaccountresponsevaliddatatypelinks.md + - docs/models/shared/createbankaccountresponse.md + - docs/models/shared/createbankaccountresponsebankaccounttype.md + - docs/models/shared/createcustomerresponse.md + - docs/models/shared/createexpenseresponse.md + - docs/models/shared/createreimbursableexpenseresponse.md + - docs/models/shared/createsupplierresponse.md + - docs/models/shared/customer.md + - docs/models/shared/customerdetails.md + - docs/models/shared/customers.md + - docs/models/shared/customerstatus.md + - docs/models/shared/dataconnectionerror.md + - docs/models/shared/dataconnectionstatus.md + - docs/models/shared/datasetstatus.md + - docs/models/shared/datastatus.md + - docs/models/shared/datatype.md + - docs/models/shared/datatypes.md + - docs/models/shared/errorstatus.md + - docs/models/shared/errorvalidation.md + - docs/models/shared/errorvalidationitem.md + - docs/models/shared/expensecontactref.md + - docs/models/shared/expensessyncwebhook.md + - docs/models/shared/expensessyncwebhookpayload.md + - docs/models/shared/expensetransaction.md + - docs/models/shared/expensetransactionline.md + - docs/models/shared/expensetransactiontype.md + - docs/models/shared/from_.md + - docs/models/shared/halref.md + - docs/models/shared/integrationtype.md + - docs/models/shared/invoiceto.md + - docs/models/shared/invoicetotype.md + - docs/models/shared/itemref.md + - docs/models/shared/items.md + - docs/models/shared/links.md + - docs/models/shared/mappingoptions.md + - docs/models/shared/metadata.md + - docs/models/shared/phone.md + - docs/models/shared/phonenumberitems.md + - docs/models/shared/phonenumbertype.md + - docs/models/shared/pulloperation.md + - docs/models/shared/pulloperations.md + - docs/models/shared/pushchangetype.md + - docs/models/shared/pushfieldvalidation.md + - docs/models/shared/pushoperation.md + - docs/models/shared/pushoperationchange.md + - docs/models/shared/pushoperationref.md + - docs/models/shared/pushoperations.md + - docs/models/shared/pushoperationstatus.md + - docs/models/shared/pushoption.md + - docs/models/shared/pushoptionchoice.md + - docs/models/shared/pushoptionproperty.md + - docs/models/shared/pushoptiontype.md + - docs/models/shared/pushvalidationinfo.md + - docs/models/shared/recordref.md + - docs/models/shared/reimbursableexpensetransaction.md + - docs/models/shared/reimbursableexpensetransactionline.md + - docs/models/shared/reimbursementcontactref.md + - docs/models/shared/schemadatatype.md + - docs/models/shared/schematransaction.md + - docs/models/shared/security.md + - docs/models/shared/sourcetype.md + - docs/models/shared/status.md + - docs/models/shared/supplementaldata.md + - docs/models/shared/supplier.md + - docs/models/shared/supplierdetails.md + - docs/models/shared/suppliers.md + - docs/models/shared/supplierstatus.md + - docs/models/shared/synccompletewebhook.md + - docs/models/shared/synccompletewebhookdata.md + - docs/models/shared/syncfailedwebhook.md + - docs/models/shared/syncfailedwebhookdata.md + - docs/models/shared/taxratemappinginfo.md + - docs/models/shared/to.md + - docs/models/shared/trackingcategorymappinginfo.md + - docs/models/shared/trackingref.md + - docs/models/shared/trackingrefadjustmenttransaction.md + - docs/models/shared/trackingrefadjustmenttransactiondatatype.md + - docs/models/shared/trackingrefdatatype.md + - docs/models/shared/transaction.md + - docs/models/shared/transactiondefinitionsstatus.md + - docs/models/shared/transactions.md + - docs/models/shared/transactionstatus.md + - docs/models/shared/transfertransactionrequest.md + - docs/models/shared/transfertransactionrequestaccountreference.md + - docs/models/shared/transfertransactionresponse.md + - docs/models/shared/type.md + - docs/models/shared/updatecustomerresponse.md + - docs/models/shared/updatecustomerresponseaccountingcustomer.md + - docs/models/shared/updateexpenserequest.md + - docs/models/shared/updateexpenserequestbankaccountreference.md + - docs/models/shared/updateexpenserequesttype.md + - docs/models/shared/updateexpenseresponse.md + - docs/models/shared/updatereimbursableexpensetransactionrequest.md + - docs/models/shared/updatesupplierresponse.md + - docs/models/shared/updatesupplierresponseaccountingsupplier.md + - docs/models/shared/validation.md + - docs/models/shared/validationitem.md + - docs/models/shared/validdatatypelinks.md + - docs/models/shared/validfor.md + - docs/models/shared/validtransactiontypes.md + - docs/models/shared/weblink.md + - docs/models/utils/retryconfig.md + - docs/sdks/accounts/README.md + - docs/sdks/adjustments/README.md + - docs/sdks/attachments/README.md + - docs/sdks/bankaccounts/README.md + - docs/sdks/codatsyncexpenses/README.md + - docs/sdks/companies/README.md + - docs/sdks/companyinfo/README.md + - docs/sdks/configuration/README.md + - docs/sdks/connections/README.md + - docs/sdks/customers/README.md + - docs/sdks/expenses/README.md + - docs/sdks/managedata/README.md + - docs/sdks/mappingoptions/README.md + - docs/sdks/pushoperations/README.md + - docs/sdks/reimbursements/README.md + - docs/sdks/suppliers/README.md + - docs/sdks/sync/README.md + - docs/sdks/transactionstatus/README.md + - docs/sdks/transfers/README.md + - poetry.toml + - py.typed + - pylintrc + - pyproject.toml + - scripts/prepare-readme.py + - scripts/publish.sh + - src/codat_sync_for_expenses/__init__.py + - src/codat_sync_for_expenses/_hooks/__init__.py + - src/codat_sync_for_expenses/_hooks/sdkhooks.py + - src/codat_sync_for_expenses/_hooks/types.py + - src/codat_sync_for_expenses/_version.py + - src/codat_sync_for_expenses/accounts.py + - src/codat_sync_for_expenses/adjustments.py + - src/codat_sync_for_expenses/attachments.py + - src/codat_sync_for_expenses/bank_accounts.py + - src/codat_sync_for_expenses/basesdk.py + - src/codat_sync_for_expenses/companies.py + - src/codat_sync_for_expenses/company_info.py + - src/codat_sync_for_expenses/configuration.py + - src/codat_sync_for_expenses/connections.py + - src/codat_sync_for_expenses/customers.py + - src/codat_sync_for_expenses/expenses.py + - src/codat_sync_for_expenses/httpclient.py + - src/codat_sync_for_expenses/manage_data.py + - src/codat_sync_for_expenses/mapping_options.py + - src/codat_sync_for_expenses/models/errors/__init__.py + - src/codat_sync_for_expenses/models/errors/errormessage.py + - src/codat_sync_for_expenses/models/errors/sdkerror.py + - src/codat_sync_for_expenses/models/operations/__init__.py + - src/codat_sync_for_expenses/models/operations/create_account.py + - src/codat_sync_for_expenses/models/operations/create_adjustment_transaction.py + - src/codat_sync_for_expenses/models/operations/create_bank_account.py + - src/codat_sync_for_expenses/models/operations/create_connection.py + - src/codat_sync_for_expenses/models/operations/create_customer.py + - src/codat_sync_for_expenses/models/operations/create_expense_transaction.py + - src/codat_sync_for_expenses/models/operations/create_partner_expense_connection.py + - src/codat_sync_for_expenses/models/operations/create_reimbursable_expense_transaction.py + - src/codat_sync_for_expenses/models/operations/create_supplier.py + - src/codat_sync_for_expenses/models/operations/create_transfer_transaction.py + - src/codat_sync_for_expenses/models/operations/delete_company.py + - src/codat_sync_for_expenses/models/operations/delete_connection.py + - src/codat_sync_for_expenses/models/operations/get_company.py + - src/codat_sync_for_expenses/models/operations/get_company_configuration.py + - src/codat_sync_for_expenses/models/operations/get_company_info.py + - src/codat_sync_for_expenses/models/operations/get_connection.py + - src/codat_sync_for_expenses/models/operations/get_create_bankaccounts_model.py + - src/codat_sync_for_expenses/models/operations/get_create_chartofaccounts_model.py + - src/codat_sync_for_expenses/models/operations/get_customer.py + - src/codat_sync_for_expenses/models/operations/get_data_status.py + - src/codat_sync_for_expenses/models/operations/get_last_successful_sync.py + - src/codat_sync_for_expenses/models/operations/get_latest_sync.py + - src/codat_sync_for_expenses/models/operations/get_mapping_options.py + - src/codat_sync_for_expenses/models/operations/get_pull_operation.py + - src/codat_sync_for_expenses/models/operations/get_push_operation.py + - src/codat_sync_for_expenses/models/operations/get_supplier.py + - src/codat_sync_for_expenses/models/operations/get_sync_by_id.py + - src/codat_sync_for_expenses/models/operations/get_sync_transaction.py + - src/codat_sync_for_expenses/models/operations/list_companies.py + - src/codat_sync_for_expenses/models/operations/list_connections.py + - src/codat_sync_for_expenses/models/operations/list_customers.py + - src/codat_sync_for_expenses/models/operations/list_pull_operations.py + - src/codat_sync_for_expenses/models/operations/list_push_operations.py + - src/codat_sync_for_expenses/models/operations/list_suppliers.py + - src/codat_sync_for_expenses/models/operations/list_sync_transactions.py + - src/codat_sync_for_expenses/models/operations/list_syncs.py + - src/codat_sync_for_expenses/models/operations/refresh_all_data_types.py + - src/codat_sync_for_expenses/models/operations/refresh_data_type.py + - src/codat_sync_for_expenses/models/operations/set_company_configuration.py + - src/codat_sync_for_expenses/models/operations/unlink_connection.py + - src/codat_sync_for_expenses/models/operations/update_company.py + - src/codat_sync_for_expenses/models/operations/update_customer.py + - src/codat_sync_for_expenses/models/operations/update_expense_transaction.py + - src/codat_sync_for_expenses/models/operations/update_reimbursable_expense_transaction.py + - src/codat_sync_for_expenses/models/operations/update_supplier.py + - src/codat_sync_for_expenses/models/operations/upload_expense_attachment.py + - src/codat_sync_for_expenses/models/shared/__init__.py + - src/codat_sync_for_expenses/models/shared/accountingaddresstype.py + - src/codat_sync_for_expenses/models/shared/accountmappinginfo.py + - src/codat_sync_for_expenses/models/shared/accountprototype.py + - src/codat_sync_for_expenses/models/shared/accountstatus.py + - src/codat_sync_for_expenses/models/shared/accounttype.py + - src/codat_sync_for_expenses/models/shared/adjustmenttransactionline.py + - src/codat_sync_for_expenses/models/shared/adjustmenttransactionrequest.py + - src/codat_sync_for_expenses/models/shared/adjustmenttransactionresponse.py + - src/codat_sync_for_expenses/models/shared/apaccountref.py + - src/codat_sync_for_expenses/models/shared/attachment.py + - src/codat_sync_for_expenses/models/shared/attachmentupload.py + - src/codat_sync_for_expenses/models/shared/bankaccount.py + - src/codat_sync_for_expenses/models/shared/bankaccountdetails.py + - src/codat_sync_for_expenses/models/shared/bankaccountstatus.py + - src/codat_sync_for_expenses/models/shared/clientratelimitreachedwebhook.py + - src/codat_sync_for_expenses/models/shared/clientratelimitreachedwebhookdata.py + - src/codat_sync_for_expenses/models/shared/clientratelimitresetwebhook.py + - src/codat_sync_for_expenses/models/shared/clientratelimitresetwebhookdata.py + - src/codat_sync_for_expenses/models/shared/clientratelimitwebhook.py + - src/codat_sync_for_expenses/models/shared/clientratelimitwebhookpayload.py + - src/codat_sync_for_expenses/models/shared/codatfile.py + - src/codat_sync_for_expenses/models/shared/companies.py + - src/codat_sync_for_expenses/models/shared/company.py + - src/codat_sync_for_expenses/models/shared/companyconfiguration.py + - src/codat_sync_for_expenses/models/shared/companyinformation.py + - src/codat_sync_for_expenses/models/shared/companyreference.py + - src/codat_sync_for_expenses/models/shared/companyrequestbody.py + - src/codat_sync_for_expenses/models/shared/companysyncstatus.py + - src/codat_sync_for_expenses/models/shared/connection.py + - src/codat_sync_for_expenses/models/shared/connections.py + - src/codat_sync_for_expenses/models/shared/contact.py + - src/codat_sync_for_expenses/models/shared/createaccountresponse.py + - src/codat_sync_for_expenses/models/shared/createbankaccountresponse.py + - src/codat_sync_for_expenses/models/shared/createcustomerresponse.py + - src/codat_sync_for_expenses/models/shared/createexpenseresponse.py + - src/codat_sync_for_expenses/models/shared/createreimbursableexpenseresponse.py + - src/codat_sync_for_expenses/models/shared/createsupplierresponse.py + - src/codat_sync_for_expenses/models/shared/customer.py + - src/codat_sync_for_expenses/models/shared/customerdetails.py + - src/codat_sync_for_expenses/models/shared/customers.py + - src/codat_sync_for_expenses/models/shared/customerstatus.py + - src/codat_sync_for_expenses/models/shared/dataconnectionerror.py + - src/codat_sync_for_expenses/models/shared/dataconnectionstatus.py + - src/codat_sync_for_expenses/models/shared/datastatus.py + - src/codat_sync_for_expenses/models/shared/datatype.py + - src/codat_sync_for_expenses/models/shared/errorvalidation.py + - src/codat_sync_for_expenses/models/shared/errorvalidationitem.py + - src/codat_sync_for_expenses/models/shared/expensecontactref.py + - src/codat_sync_for_expenses/models/shared/expensessyncwebhook.py + - src/codat_sync_for_expenses/models/shared/expensessyncwebhookpayload.py + - src/codat_sync_for_expenses/models/shared/expensetransaction.py + - src/codat_sync_for_expenses/models/shared/expensetransactionline.py + - src/codat_sync_for_expenses/models/shared/halref.py + - src/codat_sync_for_expenses/models/shared/integrationtype.py + - src/codat_sync_for_expenses/models/shared/invoiceto.py + - src/codat_sync_for_expenses/models/shared/itemref.py + - src/codat_sync_for_expenses/models/shared/items.py + - src/codat_sync_for_expenses/models/shared/links.py + - src/codat_sync_for_expenses/models/shared/mappingoptions.py + - src/codat_sync_for_expenses/models/shared/metadata.py + - src/codat_sync_for_expenses/models/shared/phonenumber_items.py + - src/codat_sync_for_expenses/models/shared/phonenumbertype.py + - src/codat_sync_for_expenses/models/shared/pulloperation.py + - src/codat_sync_for_expenses/models/shared/pulloperations.py + - src/codat_sync_for_expenses/models/shared/pushchangetype.py + - src/codat_sync_for_expenses/models/shared/pushfieldvalidation.py + - src/codat_sync_for_expenses/models/shared/pushoperation.py + - src/codat_sync_for_expenses/models/shared/pushoperationchange.py + - src/codat_sync_for_expenses/models/shared/pushoperationref.py + - src/codat_sync_for_expenses/models/shared/pushoperations.py + - src/codat_sync_for_expenses/models/shared/pushoperationstatus.py + - src/codat_sync_for_expenses/models/shared/pushoption.py + - src/codat_sync_for_expenses/models/shared/pushoptionchoice.py + - src/codat_sync_for_expenses/models/shared/pushoptionproperty.py + - src/codat_sync_for_expenses/models/shared/pushoptiontype.py + - src/codat_sync_for_expenses/models/shared/pushvalidationinfo.py + - src/codat_sync_for_expenses/models/shared/recordref.py + - src/codat_sync_for_expenses/models/shared/reimbursableexpensetransaction.py + - src/codat_sync_for_expenses/models/shared/reimbursableexpensetransactionline.py + - src/codat_sync_for_expenses/models/shared/reimbursementcontactref.py + - src/codat_sync_for_expenses/models/shared/schema_datatype.py + - src/codat_sync_for_expenses/models/shared/schema_transaction.py + - src/codat_sync_for_expenses/models/shared/security.py + - src/codat_sync_for_expenses/models/shared/status.py + - src/codat_sync_for_expenses/models/shared/supplementaldata.py + - src/codat_sync_for_expenses/models/shared/supplier.py + - src/codat_sync_for_expenses/models/shared/supplierdetails.py + - src/codat_sync_for_expenses/models/shared/suppliers.py + - src/codat_sync_for_expenses/models/shared/supplierstatus.py + - src/codat_sync_for_expenses/models/shared/synccompletewebhook.py + - src/codat_sync_for_expenses/models/shared/synccompletewebhookdata.py + - src/codat_sync_for_expenses/models/shared/syncfailedwebhook.py + - src/codat_sync_for_expenses/models/shared/syncfailedwebhookdata.py + - src/codat_sync_for_expenses/models/shared/taxratemappinginfo.py + - src/codat_sync_for_expenses/models/shared/trackingcategorymappinginfo.py + - src/codat_sync_for_expenses/models/shared/trackingref.py + - src/codat_sync_for_expenses/models/shared/trackingrefadjustmenttransaction.py + - src/codat_sync_for_expenses/models/shared/transaction.py + - src/codat_sync_for_expenses/models/shared/transactions.py + - src/codat_sync_for_expenses/models/shared/transactionstatus.py + - src/codat_sync_for_expenses/models/shared/transfertransactionrequest.py + - src/codat_sync_for_expenses/models/shared/transfertransactionresponse.py + - src/codat_sync_for_expenses/models/shared/updatecustomerresponse.py + - src/codat_sync_for_expenses/models/shared/updateexpenserequest.py + - src/codat_sync_for_expenses/models/shared/updateexpenseresponse.py + - src/codat_sync_for_expenses/models/shared/updatereimbursableexpensetransactionrequest.py + - src/codat_sync_for_expenses/models/shared/updatesupplierresponse.py + - src/codat_sync_for_expenses/models/shared/validation.py + - src/codat_sync_for_expenses/models/shared/validationitem.py + - src/codat_sync_for_expenses/models/shared/validfor.py + - src/codat_sync_for_expenses/models/shared/validtransactiontypes.py + - src/codat_sync_for_expenses/push_operations.py + - src/codat_sync_for_expenses/py.typed + - src/codat_sync_for_expenses/reimbursements.py + - src/codat_sync_for_expenses/sdk.py + - src/codat_sync_for_expenses/sdkconfiguration.py + - src/codat_sync_for_expenses/suppliers.py + - src/codat_sync_for_expenses/sync.py + - src/codat_sync_for_expenses/transaction_status.py + - src/codat_sync_for_expenses/transfers.py + - src/codat_sync_for_expenses/types/__init__.py + - src/codat_sync_for_expenses/types/basemodel.py + - src/codat_sync_for_expenses/utils/__init__.py + - src/codat_sync_for_expenses/utils/annotations.py + - src/codat_sync_for_expenses/utils/enums.py + - src/codat_sync_for_expenses/utils/eventstreaming.py + - src/codat_sync_for_expenses/utils/forms.py + - src/codat_sync_for_expenses/utils/headers.py + - src/codat_sync_for_expenses/utils/logger.py + - src/codat_sync_for_expenses/utils/metadata.py + - src/codat_sync_for_expenses/utils/queryparams.py + - src/codat_sync_for_expenses/utils/requestbodies.py + - src/codat_sync_for_expenses/utils/retries.py + - src/codat_sync_for_expenses/utils/security.py + - src/codat_sync_for_expenses/utils/serializers.py + - src/codat_sync_for_expenses/utils/url.py + - src/codat_sync_for_expenses/utils/values.py diff --git a/sync-for-expenses/.speakeasy/gen.yaml b/sync-for-expenses/.speakeasy/gen.yaml index f9fb55217..e06553388 100644 --- a/sync-for-expenses/.speakeasy/gen.yaml +++ b/sync-for-expenses/.speakeasy/gen.yaml @@ -3,31 +3,58 @@ generation: sdkClassName: CodatSyncExpenses usageSnippets: optionalPropertyRendering: withExample + sdkInitStyle: constructor fixes: - nameResolutionDec2023: false + nameResolutionFeb2025: false parameterOrderingFeb2024: false requestResponseComponentNamesFeb2024: false + securityFeb2025: false + sharedErrorComponentsApr2025: false + sharedNestedComponentsJan2026: false + nameOverrideFeb2026: false auth: oAuth2ClientCredentialsEnabled: false oAuth2PasswordEnabled: false + hoistGlobalSecurity: true + schemas: + allOfMergeStrategy: shallowMerge + requestBodyFieldName: "" + versioningStrategy: automatic + persistentEdits: {} + tests: + generateTests: true + generateNewTests: false + skipResponseBodyAssertions: false telemetryEnabled: true python: - version: 7.0.1 + version: 8.0.0 additionalDependencies: dev: {} main: {} + allowedRedefinedBuiltins: + - id + - object + - dir + asyncMode: both author: Codat authors: - Speakeasy + baseErrorName: CodatSyncExpensesError clientServerStatusCodesAsErrors: true + constFieldCasing: upper defaultErrorName: SDKError description: Push expenses to accounting software. + enableCustomCodeRegions: false enumFormat: enum fixFlags: + asyncPaginationSep2025: false + conflictResistantModelImportsFeb2026: false responseRequiredSep2024: false flattenGlobalSecurity: false flattenRequests: false flatteningOrder: parameters-first + forwardCompatibleEnumsByDefault: false + forwardCompatibleUnionsByDefault: "false" imports: option: openapi paths: @@ -36,11 +63,21 @@ python: operations: models/operations shared: models/shared webhooks: models/webhooks + inferUnionDiscriminators: true inputModelSuffix: input + license: "" maxMethodParams: 0 methodArguments: infer-optional-args + moduleName: "" + multipartArrayFormat: legacy outputModelSuffix: output + packageManager: poetry packageName: codat-sync-for-expenses + preApplyUnionDiscriminators: false projectUrls: {} + pytestFilterWarnings: [] + pytestTimeout: 0 responseFormat: flat + sseFlatResponse: false templateVersion: v2 + useAsyncHooks: false diff --git a/sync-for-expenses/README.md b/sync-for-expenses/README.md index a83bf0017..aea429e0d 100755 --- a/sync-for-expenses/README.md +++ b/sync-for-expenses/README.md @@ -7,15 +7,15 @@ ## Summary -Sync for Expenses: The API for Sync for Expenses. +Expenses: The API for Codat's Expenses solution. -Sync for Expenses is an API and a set of supporting tools. It has been built to +Expenses is an API and a set of supporting tools. It has been built to enable corporate card and expense management platforms to provide high-quality integrations with multiple accounting software through a standardized API. -[Explore product](https://docs.codat.io/sync-for-expenses/overview) | [See our OpenAPI spec](https://github.com/codatio/oas) +[Explore solution](https://docs.codat.io/sync-for-expenses/overview) | [See our OpenAPI spec](https://github.com/codatio/oas) -Not seeing the endpoints you're expecting? We've [reorganized our products](https://docs.codat.io/updates/230901-new-products), and you may be using a [different version of Sync for Expenses](https://docs.codat.io/sync-for-expenses-v1-api#/). +Not seeing the endpoints you're expecting? We've [reorganized our solutions](https://docs.codat.io/updates/230901-new-products), and you may be using a [different version of Expenses](https://docs.codat.io/sync-for-expenses-v1-api#/). --- @@ -56,6 +56,7 @@ Not seeing the endpoints you're expecting? We've [reorganized our products](http * [Server Selection](#server-selection) * [Custom HTTP Client](#custom-http-client) * [Authentication](#authentication) + * [Resource Management](#resource-management) * [Debugging](#debugging) * [Support](#support) @@ -64,7 +65,20 @@ Not seeing the endpoints you're expecting? We've [reorganized our products](http ## SDK Installation -The SDK can be installed with either *pip* or *poetry* package managers. +> [!NOTE] +> **Python version upgrade policy** +> +> Once a Python version reaches its [official end of life date](https://devguide.python.org/versions/), a 3-month grace period is provided for users to upgrade. Following this grace period, the minimum python version supported in the SDK will be updated. + +The SDK can be installed with *uv*, *pip*, or *poetry* package managers. + +### uv + +*uv* is a fast Python package installer and resolver, designed as a drop-in replacement for pip and pip-tools. It's recommended for its speed and modern Python tooling capabilities. + +```bash +uv add codat-sync-for-expenses +``` ### PIP @@ -81,6 +95,37 @@ pip install codat-sync-for-expenses ```bash poetry add codat-sync-for-expenses ``` + +### Shell and script usage with `uv` + +You can use this SDK in a Python shell with [uv](https://docs.astral.sh/uv/) and the `uvx` command that comes with it like so: + +```shell +uvx --from codat-sync-for-expenses python +``` + +It's also possible to write a standalone Python script without needing to set up a whole project like so: + +```python +#!/usr/bin/env -S uv run --script +# /// script +# requires-python = ">=3.10" +# dependencies = [ +# "codat-sync-for-expenses", +# ] +# /// + +from codat_sync_for_expenses import CodatSyncExpenses + +sdk = CodatSyncExpenses( + # SDK arguments +) + +# Rest of script here... +``` + +Once that is saved to a file, you can run it with `uv run script.py` where +`script.py` can be replaced with the actual file name. ## Example Usage @@ -102,44 +147,47 @@ Generally, the SDK will work well with most IDEs out of the box. However, when u ```python # Synchronous Example from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared + + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: -with CodatSyncExpenses() as codat_sync_expenses: - codat_sync_expenses.client_rate_limit_reached(request={ - "event_type": "client.rateLimit.reached", - "generated_date": "2024-09-01T00:00:00Z", - "id": "743ec94a-8aa4-44bb-8bd4-e1855ee0e74b", - "payload": { - "daily_quota": 12000, - "expiry_date": "2024-09-01T12:14:14Z", - "quota_remaining": 0, - }, + res = codat_sync_expenses.companies.create(request={ + "name": "Technicalium", }) - # Use the SDK ... + # Handle response + print(res) ```
-The same SDK client can also be used to make asychronous requests by importing asyncio. +The same SDK client can also be used to make asynchronous requests by importing asyncio. + ```python # Asynchronous Example import asyncio from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared async def main(): - async with CodatSyncExpenses() as codat_sync_expenses: - await codat_sync_expenses.client_rate_limit_reached_async(request={ - "event_type": "client.rateLimit.reached", - "generated_date": "2024-09-01T00:00:00Z", - "id": "743ec94a-8aa4-44bb-8bd4-e1855ee0e74b", - "payload": { - "daily_quota": 12000, - "expiry_date": "2024-09-01T12:14:14Z", - "quota_remaining": 0, - }, + + async with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), + ) as codat_sync_expenses: + + res = await codat_sync_expenses.companies.create_async(request={ + "name": "Technicalium", }) - # Use the SDK ... + # Handle response + print(res) asyncio.run(main()) ``` @@ -151,43 +199,43 @@ asyncio.run(main())
Available methods -### [accounts](docs/sdks/accounts/README.md) +### [Accounts](docs/sdks/accounts/README.md) * [create](docs/sdks/accounts/README.md#create) - Create account * [get_create_model](docs/sdks/accounts/README.md#get_create_model) - Get create account model -### [adjustments](docs/sdks/adjustments/README.md) +### [Adjustments](docs/sdks/adjustments/README.md) * [create](docs/sdks/adjustments/README.md#create) - Create adjustment transaction -### [attachments](docs/sdks/attachments/README.md) +### [Attachments](docs/sdks/attachments/README.md) * [upload](docs/sdks/attachments/README.md#upload) - Upload attachment -### [bank_accounts](docs/sdks/bankaccounts/README.md) +### [BankAccounts](docs/sdks/bankaccounts/README.md) * [create](docs/sdks/bankaccounts/README.md#create) - Create bank account * [get_create_model](docs/sdks/bankaccounts/README.md#get_create_model) - Get create bank account model - -### [companies](docs/sdks/companies/README.md) +### [Companies](docs/sdks/companies/README.md) * [create](docs/sdks/companies/README.md#create) - Create company * [delete](docs/sdks/companies/README.md#delete) - Delete a company * [get](docs/sdks/companies/README.md#get) - Get company * [list](docs/sdks/companies/README.md#list) - List companies +* [replace](docs/sdks/companies/README.md#replace) - Replace company * [update](docs/sdks/companies/README.md#update) - Update company -### [company_info](docs/sdks/companyinfo/README.md) +### [CompanyInfo](docs/sdks/companyinfo/README.md) * [get](docs/sdks/companyinfo/README.md#get) - Get company info -### [configuration](docs/sdks/configuration/README.md) +### [Configuration](docs/sdks/configuration/README.md) * [get](docs/sdks/configuration/README.md#get) - Get company configuration * [set](docs/sdks/configuration/README.md#set) - Set company configuration -### [connections](docs/sdks/connections/README.md) +### [Connections](docs/sdks/connections/README.md) * [create](docs/sdks/connections/README.md#create) - Create connection * [create_partner_expense_connection](docs/sdks/connections/README.md#create_partner_expense_connection) - Create partner expense connection @@ -196,19 +244,19 @@ asyncio.run(main()) * [list](docs/sdks/connections/README.md#list) - List connections * [unlink](docs/sdks/connections/README.md#unlink) - Unlink connection -### [customers](docs/sdks/customers/README.md) +### [Customers](docs/sdks/customers/README.md) * [create](docs/sdks/customers/README.md#create) - Create customer * [get](docs/sdks/customers/README.md#get) - Get customer * [list](docs/sdks/customers/README.md#list) - List customers * [update](docs/sdks/customers/README.md#update) - Update customer -### [expenses](docs/sdks/expenses/README.md) +### [Expenses](docs/sdks/expenses/README.md) * [create](docs/sdks/expenses/README.md#create) - Create expense transaction * [update](docs/sdks/expenses/README.md#update) - Update expense transactions -### [manage_data](docs/sdks/managedata/README.md) +### [ManageData](docs/sdks/managedata/README.md) * [get](docs/sdks/managedata/README.md#get) - Get data status * [get_pull_operation](docs/sdks/managedata/README.md#get_pull_operation) - Get pull operation @@ -216,40 +264,40 @@ asyncio.run(main()) * [refresh_all_data_types](docs/sdks/managedata/README.md#refresh_all_data_types) - Refresh all data * [refresh_data_type](docs/sdks/managedata/README.md#refresh_data_type) - Refresh data type -### [mapping_options](docs/sdks/mappingoptions/README.md) +### [MappingOptions](docs/sdks/mappingoptions/README.md) * [get_mapping_options](docs/sdks/mappingoptions/README.md#get_mapping_options) - Mapping options -### [push_operations](docs/sdks/pushoperations/README.md) +### [PushOperations](docs/sdks/pushoperations/README.md) * [get](docs/sdks/pushoperations/README.md#get) - Get push operation * [list](docs/sdks/pushoperations/README.md#list) - List push operations -### [reimbursements](docs/sdks/reimbursements/README.md) +### [Reimbursements](docs/sdks/reimbursements/README.md) * [create](docs/sdks/reimbursements/README.md#create) - Create reimbursable expense transaction * [update](docs/sdks/reimbursements/README.md#update) - Update reimbursable expense transaction -### [suppliers](docs/sdks/suppliers/README.md) +### [Suppliers](docs/sdks/suppliers/README.md) * [create](docs/sdks/suppliers/README.md#create) - Create supplier * [get](docs/sdks/suppliers/README.md#get) - Get supplier * [list](docs/sdks/suppliers/README.md#list) - List suppliers * [update](docs/sdks/suppliers/README.md#update) - Update supplier -### [sync](docs/sdks/sync/README.md) +### [Sync](docs/sdks/sync/README.md) * [get](docs/sdks/sync/README.md#get) - Get sync status * [get_last_successful_sync](docs/sdks/sync/README.md#get_last_successful_sync) - Last successful sync * [get_latest_sync](docs/sdks/sync/README.md#get_latest_sync) - Latest sync status * [list](docs/sdks/sync/README.md#list) - List sync statuses -### [transaction_status](docs/sdks/transactionstatus/README.md) +### [TransactionStatus](docs/sdks/transactionstatus/README.md) * [get](docs/sdks/transactionstatus/README.md#get) - Get sync transaction * [list](docs/sdks/transactionstatus/README.md#list) - List sync transactions -### [transfers](docs/sdks/transfers/README.md) +### [Transfers](docs/sdks/transfers/README.md) * [create](docs/sdks/transfers/README.md#create) - Create transfer transaction @@ -272,20 +320,21 @@ Certain SDK methods accept file objects as part of a request body or multi-part from codat_sync_for_expenses import CodatSyncExpenses from codat_sync_for_expenses.models import shared + with CodatSyncExpenses( security=shared.Security( auth_header="Basic BASE_64_ENCODED(API_KEY)", ), ) as codat_sync_expenses: + res = codat_sync_expenses.attachments.upload(request={ "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", "sync_id": "6fb40d5e-b13e-11ed-afa1-0242ac120002", "transaction_id": "336694d8-2dca-4cb5-a28d-3ccb83e55eee", }) - if res is not None: - # handle response - pass + # Handle response + print(res) ``` @@ -301,19 +350,20 @@ from codat_sync_for_expenses import CodatSyncExpenses from codat_sync_for_expenses.models import shared from codat_sync_for_expenses.utils import BackoffStrategy, RetryConfig + with CodatSyncExpenses( security=shared.Security( auth_header="Basic BASE_64_ENCODED(API_KEY)", ), ) as codat_sync_expenses: + res = codat_sync_expenses.companies.create(request={ "name": "Technicalium", }, RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False)) - if res is not None: - # handle response - pass + # Handle response + print(res) ``` @@ -323,19 +373,20 @@ from codat_sync_for_expenses import CodatSyncExpenses from codat_sync_for_expenses.models import shared from codat_sync_for_expenses.utils import BackoffStrategy, RetryConfig + with CodatSyncExpenses( retry_config=RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False), security=shared.Security( auth_header="Basic BASE_64_ENCODED(API_KEY)", ), ) as codat_sync_expenses: + res = codat_sync_expenses.companies.create(request={ "name": "Technicalium", }) - if res is not None: - # handle response - pass + # Handle response + print(res) ``` @@ -343,30 +394,23 @@ with CodatSyncExpenses( ## Error Handling -Handling errors in this SDK should largely match your expectations. All operations return a response object or raise an exception. +[`CodatSyncExpensesError`](./src/codat_sync_for_expenses/models/errors/codatsyncexpenseserror.py) is the base class for all HTTP error responses. It has the following properties: -By default, an API error will raise a errors.SDKError exception, which has the following properties: - -| Property | Type | Description | -|-----------------|------------------|-----------------------| -| `.status_code` | *int* | The HTTP status code | -| `.message` | *str* | The error message | -| `.raw_response` | *httpx.Response* | The raw HTTP response | -| `.body` | *str* | The response content | - -When custom error responses are specified for an operation, the SDK may also raise their associated exceptions. You can refer to respective *Errors* tables in SDK docs for more details on possible exception types for each operation. For example, the `create_async` method may raise the following exceptions: - -| Error Type | Status Code | Content Type | -| ------------------- | --------------------------------- | ---------------- | -| errors.ErrorMessage | 400, 401, 402, 403, 429, 500, 503 | application/json | -| errors.SDKError | 4XX, 5XX | \*/\* | +| Property | Type | Description | +| ------------------ | ---------------- | --------------------------------------------------------------------------------------- | +| `err.message` | `str` | Error message | +| `err.status_code` | `int` | HTTP response status code eg `404` | +| `err.headers` | `httpx.Headers` | HTTP response headers | +| `err.body` | `str` | HTTP body. Can be empty string if no body is returned. | +| `err.raw_response` | `httpx.Response` | Raw HTTP response | +| `err.data` | | Optional. Some errors may contain structured data. [See Error Classes](#error-classes). | ### Example - ```python from codat_sync_for_expenses import CodatSyncExpenses from codat_sync_for_expenses.models import errors, shared + with CodatSyncExpenses( security=shared.Security( auth_header="Basic BASE_64_ENCODED(API_KEY)", @@ -374,21 +418,51 @@ with CodatSyncExpenses( ) as codat_sync_expenses: res = None try: + res = codat_sync_expenses.companies.create(request={ "name": "Technicalium", }) - if res is not None: - # handle response - pass - - except errors.ErrorMessage as e: - # handle e.data: errors.ErrorMessageData - raise(e) - except errors.SDKError as e: - # handle exception - raise(e) + # Handle response + print(res) + + + except errors.CodatSyncExpensesError as e: + # The base class for HTTP error responses + print(e.message) + print(e.status_code) + print(e.body) + print(e.headers) + print(e.raw_response) + + # Depending on the method different errors may be thrown + if isinstance(e, errors.ErrorMessage): + print(e.data.can_be_retried) # Optional[str] + print(e.data.correlation_id) # Optional[str] + print(e.data.detailed_error_code) # Optional[int] + print(e.data.error) # Optional[str] + print(e.data.service) # Optional[str] ``` + +### Error Classes +**Primary errors:** +* [`CodatSyncExpensesError`](./src/codat_sync_for_expenses/models/errors/codatsyncexpenseserror.py): The base class for HTTP error responses. + * [`ErrorMessage`](./src/codat_sync_for_expenses/models/errors/errormessage.py): Your `query` parameter was not correctly formed. + +
Less common errors (5) + +
+ +**Network errors:** +* [`httpx.RequestError`](https://www.python-httpx.org/exceptions/#httpx.RequestError): Base class for request errors. + * [`httpx.ConnectError`](https://www.python-httpx.org/exceptions/#httpx.ConnectError): HTTP client was unable to make a request to a server. + * [`httpx.TimeoutException`](https://www.python-httpx.org/exceptions/#httpx.TimeoutException): HTTP request timed out. + + +**Inherit from [`CodatSyncExpensesError`](./src/codat_sync_for_expenses/models/errors/codatsyncexpenseserror.py)**: +* [`ResponseValidationError`](./src/codat_sync_for_expenses/models/errors/responsevalidationerror.py): Type mismatch between the response data and the expected Pydantic model. Provides access to the Pydantic validation error via the `cause` attribute. + +
@@ -396,24 +470,25 @@ with CodatSyncExpenses( ### Override Server URL Per-Client -The default server can also be overridden globally by passing a URL to the `server_url: str` optional parameter when initializing the SDK client instance. For example: +The default server can be overridden globally by passing a URL to the `server_url: str` optional parameter when initializing the SDK client instance. For example: ```python from codat_sync_for_expenses import CodatSyncExpenses from codat_sync_for_expenses.models import shared + with CodatSyncExpenses( server_url="https://api.codat.io", security=shared.Security( auth_header="Basic BASE_64_ENCODED(API_KEY)", ), ) as codat_sync_expenses: + res = codat_sync_expenses.companies.create(request={ "name": "Technicalium", }) - if res is not None: - # handle response - pass + # Handle response + print(res) ``` @@ -515,22 +590,55 @@ You can set the security parameters through the `security` optional parameter wh from codat_sync_for_expenses import CodatSyncExpenses from codat_sync_for_expenses.models import shared + with CodatSyncExpenses( security=shared.Security( auth_header="Basic BASE_64_ENCODED(API_KEY)", ), ) as codat_sync_expenses: + res = codat_sync_expenses.companies.create(request={ "name": "Technicalium", }) - if res is not None: - # handle response - pass + # Handle response + print(res) ``` + +## Resource Management + +The `CodatSyncExpenses` class implements the context manager protocol and registers a finalizer function to close the underlying sync and async HTTPX clients it uses under the hood. This will close HTTP connections, release memory and free up other resources held by the SDK. In short-lived Python programs and notebooks that make a few SDK method calls, resource management may not be a concern. However, in longer-lived programs, it is beneficial to create a single SDK instance via a [context manager][context-manager] and reuse it across the application. + +[context-manager]: https://docs.python.org/3/reference/datamodel.html#context-managers + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared +def main(): + + with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), + ) as codat_sync_expenses: + # Rest of application here... + + +# Or when using async: +async def amain(): + + async with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), + ) as codat_sync_expenses: + # Rest of application here... +``` + + ## Debugging diff --git a/sync-for-expenses/RELEASES.md b/sync-for-expenses/RELEASES.md index 19c43e6db..627306aa2 100644 --- a/sync-for-expenses/RELEASES.md +++ b/sync-for-expenses/RELEASES.md @@ -746,4 +746,14 @@ Based on: ### Generated - [python v7.0.1] sync-for-expenses ### Releases -- [PyPI v7.0.1] https://pypi.org/project/codat-sync-for-expenses/7.0.1 - sync-for-expenses \ No newline at end of file +- [PyPI v7.0.1] https://pypi.org/project/codat-sync-for-expenses/7.0.1 - sync-for-expenses + +## 2026-03-04 15:07:45 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.741.1 (2.849.2) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v8.0.0] sync-for-expenses +### Releases +- [PyPI v8.0.0] https://pypi.org/project/codat-sync-for-expenses/8.0.0 - sync-for-expenses \ No newline at end of file diff --git a/sync-for-expenses/USAGE.md b/sync-for-expenses/USAGE.md index b9621f469..57a78c032 100644 --- a/sync-for-expenses/USAGE.md +++ b/sync-for-expenses/USAGE.md @@ -4,23 +4,25 @@ from codat_sync_for_expenses import CodatSyncExpenses from codat_sync_for_expenses.models import shared + with CodatSyncExpenses( security=shared.Security( auth_header="Basic BASE_64_ENCODED(API_KEY)", ), ) as codat_sync_expenses: + res = codat_sync_expenses.companies.create(request={ "name": "Technicalium", }) - if res is not None: - # handle response - pass + # Handle response + print(res) ```
-The same SDK client can also be used to make asychronous requests by importing asyncio. +The same SDK client can also be used to make asynchronous requests by importing asyncio. + ```python # Asynchronous Example import asyncio @@ -28,18 +30,19 @@ from codat_sync_for_expenses import CodatSyncExpenses from codat_sync_for_expenses.models import shared async def main(): + async with CodatSyncExpenses( security=shared.Security( auth_header="Basic BASE_64_ENCODED(API_KEY)", ), ) as codat_sync_expenses: + res = await codat_sync_expenses.companies.create_async(request={ "name": "Technicalium", }) - if res is not None: - # handle response - pass + # Handle response + print(res) asyncio.run(main()) ``` diff --git a/sync-for-expenses/docs/models/operations/createaccountrequest.md b/sync-for-expenses/docs/models/operations/createaccountrequest.md index 2bf17b3d4..f8733acf4 100644 --- a/sync-for-expenses/docs/models/operations/createaccountrequest.md +++ b/sync-for-expenses/docs/models/operations/createaccountrequest.md @@ -5,8 +5,8 @@ | Field | Type | Required | Description | Example | | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | -| `company_id` | *str* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 | -| `connection_id` | *str* | :heavy_check_mark: | Unique identifier for a connection. | 2e9d2c44-f675-40ba-8049-353bfcb5e171 | | `account_prototype` | [Optional[shared.AccountPrototype]](../../models/shared/accountprototype.md) | :heavy_minus_sign: | N/A | | | `allow_sync_on_push_complete` | *Optional[bool]* | :heavy_minus_sign: | Allow a sync upon push completion. | | +| `company_id` | *str* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 | +| `connection_id` | *str* | :heavy_check_mark: | Unique identifier for a connection. | 2e9d2c44-f675-40ba-8049-353bfcb5e171 | | `timeout_in_minutes` | *Optional[int]* | :heavy_minus_sign: | Time limit for the push operation to complete before it is timed out. | | \ No newline at end of file diff --git a/sync-for-expenses/docs/models/operations/createadjustmenttransactionrequest.md b/sync-for-expenses/docs/models/operations/createadjustmenttransactionrequest.md index 49ef25831..4fb25bd35 100644 --- a/sync-for-expenses/docs/models/operations/createadjustmenttransactionrequest.md +++ b/sync-for-expenses/docs/models/operations/createadjustmenttransactionrequest.md @@ -5,5 +5,5 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | -| `company_id` | *str* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 | -| `request_body` | List[[shared.AdjustmentTransactionRequest](../../models/shared/adjustmenttransactionrequest.md)] | :heavy_minus_sign: | N/A | | \ No newline at end of file +| `request_body` | List[[shared.AdjustmentTransactionRequest](../../models/shared/adjustmenttransactionrequest.md)] | :heavy_minus_sign: | N/A | | +| `company_id` | *str* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 | \ No newline at end of file diff --git a/sync-for-expenses/docs/models/operations/createbankaccountrequest.md b/sync-for-expenses/docs/models/operations/createbankaccountrequest.md index d37dc696c..0d433a076 100644 --- a/sync-for-expenses/docs/models/operations/createbankaccountrequest.md +++ b/sync-for-expenses/docs/models/operations/createbankaccountrequest.md @@ -5,8 +5,8 @@ | Field | Type | Required | Description | Example | | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -| `company_id` | *str* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 | -| `connection_id` | *str* | :heavy_check_mark: | Unique identifier for a connection. | 2e9d2c44-f675-40ba-8049-353bfcb5e171 | | `bank_account` | [OptionalNullable[shared.BankAccount]](../../models/shared/bankaccount.md) | :heavy_minus_sign: | N/A | | | `allow_sync_on_push_complete` | *Optional[bool]* | :heavy_minus_sign: | Allow a sync upon push completion. | | +| `company_id` | *str* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 | +| `connection_id` | *str* | :heavy_check_mark: | Unique identifier for a connection. | 2e9d2c44-f675-40ba-8049-353bfcb5e171 | | `timeout_in_minutes` | *Optional[int]* | :heavy_minus_sign: | Time limit for the push operation to complete before it is timed out. | | \ No newline at end of file diff --git a/sync-for-expenses/docs/models/operations/createconnectionrequest.md b/sync-for-expenses/docs/models/operations/createconnectionrequest.md index ff26e52b6..0998495bf 100644 --- a/sync-for-expenses/docs/models/operations/createconnectionrequest.md +++ b/sync-for-expenses/docs/models/operations/createconnectionrequest.md @@ -5,5 +5,5 @@ | Field | Type | Required | Description | Example | | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | -| `company_id` | *str* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 | -| `request_body` | [Optional[operations.CreateConnectionRequestBody]](../../models/operations/createconnectionrequestbody.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file +| `request_body` | [Optional[operations.CreateConnectionRequestBody]](../../models/operations/createconnectionrequestbody.md) | :heavy_minus_sign: | N/A | | +| `company_id` | *str* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 | \ No newline at end of file diff --git a/sync-for-expenses/docs/models/operations/createcustomerrequest.md b/sync-for-expenses/docs/models/operations/createcustomerrequest.md index 67427843b..46669ae4a 100644 --- a/sync-for-expenses/docs/models/operations/createcustomerrequest.md +++ b/sync-for-expenses/docs/models/operations/createcustomerrequest.md @@ -5,8 +5,8 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `company_id` | *str* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 | -| `connection_id` | *str* | :heavy_check_mark: | Unique identifier for a connection. | 2e9d2c44-f675-40ba-8049-353bfcb5e171 | | `customer` | [OptionalNullable[shared.Customer]](../../models/shared/customer.md) | :heavy_minus_sign: | N/A | | | `allow_sync_on_push_complete` | *Optional[bool]* | :heavy_minus_sign: | Allow a sync upon push completion. | | +| `company_id` | *str* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 | +| `connection_id` | *str* | :heavy_check_mark: | Unique identifier for a connection. | 2e9d2c44-f675-40ba-8049-353bfcb5e171 | | `timeout_in_minutes` | *Optional[int]* | :heavy_minus_sign: | Time limit for the push operation to complete before it is timed out. | | \ No newline at end of file diff --git a/sync-for-expenses/docs/models/operations/createexpensetransactionrequest.md b/sync-for-expenses/docs/models/operations/createexpensetransactionrequest.md index 304c37888..34338390a 100644 --- a/sync-for-expenses/docs/models/operations/createexpensetransactionrequest.md +++ b/sync-for-expenses/docs/models/operations/createexpensetransactionrequest.md @@ -5,5 +5,5 @@ | Field | Type | Required | Description | Example | | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | -| `company_id` | *str* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 | -| `request_body` | List[[shared.ExpenseTransaction](../../models/shared/expensetransaction.md)] | :heavy_minus_sign: | N/A | | \ No newline at end of file +| `request_body` | List[[shared.ExpenseTransaction](../../models/shared/expensetransaction.md)] | :heavy_minus_sign: | N/A | | +| `company_id` | *str* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 | \ No newline at end of file diff --git a/sync-for-expenses/docs/models/operations/createreimbursableexpensetransactionrequest.md b/sync-for-expenses/docs/models/operations/createreimbursableexpensetransactionrequest.md index b0790dbfc..7201650d9 100644 --- a/sync-for-expenses/docs/models/operations/createreimbursableexpensetransactionrequest.md +++ b/sync-for-expenses/docs/models/operations/createreimbursableexpensetransactionrequest.md @@ -5,5 +5,5 @@ | Field | Type | Required | Description | Example | | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | -| `company_id` | *str* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 | -| `request_body` | List[[shared.ReimbursableExpenseTransaction](../../models/shared/reimbursableexpensetransaction.md)] | :heavy_minus_sign: | N/A | | \ No newline at end of file +| `request_body` | List[[shared.ReimbursableExpenseTransaction](../../models/shared/reimbursableexpensetransaction.md)] | :heavy_minus_sign: | N/A | | +| `company_id` | *str* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 | \ No newline at end of file diff --git a/sync-for-expenses/docs/models/operations/createsupplierrequest.md b/sync-for-expenses/docs/models/operations/createsupplierrequest.md index 8526143b7..914b9f20e 100644 --- a/sync-for-expenses/docs/models/operations/createsupplierrequest.md +++ b/sync-for-expenses/docs/models/operations/createsupplierrequest.md @@ -5,8 +5,8 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `company_id` | *str* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 | -| `connection_id` | *str* | :heavy_check_mark: | Unique identifier for a connection. | 2e9d2c44-f675-40ba-8049-353bfcb5e171 | | `supplier` | [OptionalNullable[shared.Supplier]](../../models/shared/supplier.md) | :heavy_minus_sign: | N/A | {
"id": "C520FFD4-F6F6-4FC2-A6D2-5D7088B2B14F",
"supplierName": "Kelly's Industrial Supplies",
"contactName": "Kelly's Industrial Supplies",
"emailAddress": "sales@kellysupplies.com",
"phone": "07999 999999",
"addresses": [
{
"type": "Billing",
"line1": "Unit 51",
"line2": "Bakersfield Industrial Estate",
"city": "Bakersfield",
"region": "California",
"country": "USA",
"postalcode": "93308"
}
],
"registrationNumber": "string",
"taxNumber": "string",
"status": "Unknown",
"defaultCurrency": "string",
"metadata": {
"isDeleted": true
},
"supplementalData": {
"content": {
"property1": {
"property1": null,
"property2": null
},
"property2": {
"property1": null,
"property2": null
}
}
},
"modifiedDate": "2022-10-23T00:00:00Z",
"sourceModifiedDate": "2022-10-23T00:00:00Z"
} | | `allow_sync_on_push_complete` | *Optional[bool]* | :heavy_minus_sign: | Allow a sync upon push completion. | | +| `company_id` | *str* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 | +| `connection_id` | *str* | :heavy_check_mark: | Unique identifier for a connection. | 2e9d2c44-f675-40ba-8049-353bfcb5e171 | | `timeout_in_minutes` | *Optional[int]* | :heavy_minus_sign: | Time limit for the push operation to complete before it is timed out. | | \ No newline at end of file diff --git a/sync-for-expenses/docs/models/operations/createtransfertransactionrequest.md b/sync-for-expenses/docs/models/operations/createtransfertransactionrequest.md index dc6bf51a9..cd1574e99 100644 --- a/sync-for-expenses/docs/models/operations/createtransfertransactionrequest.md +++ b/sync-for-expenses/docs/models/operations/createtransfertransactionrequest.md @@ -5,6 +5,6 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | +| `transfer_transaction_request` | [Optional[shared.TransferTransactionRequest]](../../models/shared/transfertransactionrequest.md) | :heavy_minus_sign: | N/A | | | `company_id` | *str* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 | -| `transaction_id` | *str* | :heavy_check_mark: | The unique identifier for your SMB's transaction. | 336694d8-2dca-4cb5-a28d-3ccb83e55eee | -| `transfer_transaction_request` | [Optional[shared.TransferTransactionRequest]](../../models/shared/transfertransactionrequest.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file +| `transaction_id` | *str* | :heavy_check_mark: | The unique identifier for your SMB's transaction. | 336694d8-2dca-4cb5-a28d-3ccb83e55eee | \ No newline at end of file diff --git a/sync-for-expenses/docs/models/operations/getcustomerrequest.md b/sync-for-expenses/docs/models/operations/getcustomerrequest.md index 701b68159..7f0aa4a75 100644 --- a/sync-for-expenses/docs/models/operations/getcustomerrequest.md +++ b/sync-for-expenses/docs/models/operations/getcustomerrequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | -| `company_id` | *str* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 | -| `customer_id` | *str* | :heavy_check_mark: | Unique identifier for a customer. | 13d946f0-c5d5-42bc-b092-97ece17923ab | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `company_id` | *str* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 | +| `customer_id` | *str* | :heavy_check_mark: | Unique identifier for a customer. | **Example 1:** 13d946f0-c5d5-42bc-b092-97ece17923ab
**Example 2:** 9wg4lep4ush5cxs79pl8sozmsndbaukll3ind4g7buqbm1h2
**Example 3:** 7110701885
**Example 4:** EILBDVJVNUAGVKRQ | \ No newline at end of file diff --git a/sync-for-expenses/docs/models/operations/getsupplierrequest.md b/sync-for-expenses/docs/models/operations/getsupplierrequest.md index afebc9154..b7f4e35f1 100644 --- a/sync-for-expenses/docs/models/operations/getsupplierrequest.md +++ b/sync-for-expenses/docs/models/operations/getsupplierrequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | -| `company_id` | *str* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 | -| `supplier_id` | *str* | :heavy_check_mark: | Unique identifier for a supplier. | 13d946f0-c5d5-42bc-b092-97ece17923ab | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `company_id` | *str* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 | +| `supplier_id` | *str* | :heavy_check_mark: | Unique identifier for a supplier. | **Example 1:** 13d946f0-c5d5-42bc-b092-97ece17923ab
**Example 2:** 9wg4lep4ush5cxs79pl8sozmsndbaukll3ind4g7buqbm1h2
**Example 3:** 7110701885
**Example 4:** EILBDVJVNUAGVKRQ | \ No newline at end of file diff --git a/sync-for-expenses/docs/models/operations/listcompaniesrequest.md b/sync-for-expenses/docs/models/operations/listcompaniesrequest.md index 9fc1a9c7e..25cc480a0 100644 --- a/sync-for-expenses/docs/models/operations/listcompaniesrequest.md +++ b/sync-for-expenses/docs/models/operations/listcompaniesrequest.md @@ -3,9 +3,10 @@ ## Fields -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | -| `order_by` | *Optional[str]* | :heavy_minus_sign: | Field to order results by. [Read more](https://docs.codat.io/using-the-api/ordering-results). | -modifiedDate | -| `page` | *Optional[int]* | :heavy_minus_sign: | Page number. [Read more](https://docs.codat.io/using-the-api/paging). | 1 | -| `page_size` | *Optional[int]* | :heavy_minus_sign: | Number of records to return in a page. [Read more](https://docs.codat.io/using-the-api/paging). | 100 | -| `query` | *Optional[str]* | :heavy_minus_sign: | Codat query string. [Read more](https://docs.codat.io/using-the-api/querying). | id=e3334455-1aed-4e71-ab43-6bccf12092ee | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `order_by` | *Optional[str]* | :heavy_minus_sign: | Field to order results by. [Read more](https://docs.codat.io/using-the-api/ordering-results). | -modifiedDate | +| `page` | *Optional[int]* | :heavy_minus_sign: | Page number. [Read more](https://docs.codat.io/using-the-api/paging). | 1 | +| `page_size` | *Optional[int]* | :heavy_minus_sign: | Number of records to return in a page. [Read more](https://docs.codat.io/using-the-api/paging). | 100 | +| `query` | *Optional[str]* | :heavy_minus_sign: | Codat query string. [Read more](https://docs.codat.io/using-the-api/querying). | id=e3334455-1aed-4e71-ab43-6bccf12092ee | +| `tags` | *Optional[str]* | :heavy_minus_sign: | Filter companies by tags using the "equals" (=), "not equals" (!=), and "contains" (~) operators with [Codat’s query language](https://docs.codat.io/using-the-api/querying). | region=uk && team=invoice-finance | \ No newline at end of file diff --git a/sync-for-expenses/docs/models/operations/listsynctransactionsrequest.md b/sync-for-expenses/docs/models/operations/listsynctransactionsrequest.md index 6a4beb9fc..3293bbae1 100644 --- a/sync-for-expenses/docs/models/operations/listsynctransactionsrequest.md +++ b/sync-for-expenses/docs/models/operations/listsynctransactionsrequest.md @@ -6,6 +6,6 @@ | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | | `company_id` | *str* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 | -| `sync_id` | *str* | :heavy_check_mark: | Unique identifier for a sync. | 6fb40d5e-b13e-11ed-afa1-0242ac120002 | | `page` | *Optional[int]* | :heavy_minus_sign: | Page number. [Read more](https://docs.codat.io/using-the-api/paging). | 1 | -| `page_size` | *Optional[int]* | :heavy_minus_sign: | Number of records to return in a page. [Read more](https://docs.codat.io/using-the-api/paging). | 100 | \ No newline at end of file +| `page_size` | *Optional[int]* | :heavy_minus_sign: | Number of records to return in a page. [Read more](https://docs.codat.io/using-the-api/paging). | 100 | +| `sync_id` | *str* | :heavy_check_mark: | Unique identifier for a sync. | 6fb40d5e-b13e-11ed-afa1-0242ac120002 | \ No newline at end of file diff --git a/sync-for-expenses/docs/models/operations/refreshdatatyperequest.md b/sync-for-expenses/docs/models/operations/refreshdatatyperequest.md index 35df09d55..1047c2228 100644 --- a/sync-for-expenses/docs/models/operations/refreshdatatyperequest.md +++ b/sync-for-expenses/docs/models/operations/refreshdatatyperequest.md @@ -6,5 +6,5 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | | `company_id` | *str* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 | -| `data_type` | [shared.SchemaDataType](../../models/shared/schemadatatype.md) | :heavy_check_mark: | The key of a Codat data type | invoices | -| `connection_id` | *Optional[str]* | :heavy_minus_sign: | Optionally, provide a data connection id to only queue pull operations on that connection. | | \ No newline at end of file +| `connection_id` | *Optional[str]* | :heavy_minus_sign: | Optionally, provide a data connection id to only queue pull operations on that connection. | | +| `data_type` | [shared.SchemaDataType](../../models/shared/schemadatatype.md) | :heavy_check_mark: | The key of a Codat data type | invoices | \ No newline at end of file diff --git a/sync-for-expenses/docs/models/operations/replacecompanyrequest.md b/sync-for-expenses/docs/models/operations/replacecompanyrequest.md new file mode 100644 index 000000000..cde3d20e3 --- /dev/null +++ b/sync-for-expenses/docs/models/operations/replacecompanyrequest.md @@ -0,0 +1,9 @@ +# ReplaceCompanyRequest + + +## Fields + +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | +| `company_request_body` | [Optional[shared.CompanyRequestBody]](../../models/shared/companyrequestbody.md) | :heavy_minus_sign: | N/A | | +| `company_id` | *str* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 | \ No newline at end of file diff --git a/sync-for-expenses/docs/models/operations/setcompanyconfigurationrequest.md b/sync-for-expenses/docs/models/operations/setcompanyconfigurationrequest.md index bac7ddc03..1afe2e73f 100644 --- a/sync-for-expenses/docs/models/operations/setcompanyconfigurationrequest.md +++ b/sync-for-expenses/docs/models/operations/setcompanyconfigurationrequest.md @@ -5,5 +5,5 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | -| `company_id` | *str* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 | -| `company_configuration` | [Optional[shared.CompanyConfiguration]](../../models/shared/companyconfiguration.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file +| `company_configuration` | [Optional[shared.CompanyConfiguration]](../../models/shared/companyconfiguration.md) | :heavy_minus_sign: | N/A | | +| `company_id` | *str* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 | \ No newline at end of file diff --git a/sync-for-expenses/docs/models/operations/unlinkconnectionrequest.md b/sync-for-expenses/docs/models/operations/unlinkconnectionrequest.md index 79d8b2072..37c72c7bc 100644 --- a/sync-for-expenses/docs/models/operations/unlinkconnectionrequest.md +++ b/sync-for-expenses/docs/models/operations/unlinkconnectionrequest.md @@ -5,6 +5,6 @@ | Field | Type | Required | Description | Example | | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `request_body` | [Optional[operations.UnlinkConnectionUpdateConnection]](../../models/operations/unlinkconnectionupdateconnection.md) | :heavy_minus_sign: | N/A | | | `company_id` | *str* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 | -| `connection_id` | *str* | :heavy_check_mark: | Unique identifier for a connection. | 2e9d2c44-f675-40ba-8049-353bfcb5e171 | -| `request_body` | [Optional[operations.UnlinkConnectionUpdateConnection]](../../models/operations/unlinkconnectionupdateconnection.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file +| `connection_id` | *str* | :heavy_check_mark: | Unique identifier for a connection. | 2e9d2c44-f675-40ba-8049-353bfcb5e171 | \ No newline at end of file diff --git a/sync-for-expenses/docs/models/operations/updatecompanyrequest.md b/sync-for-expenses/docs/models/operations/updatecompanyrequest.md index 8ee99180f..47802c383 100644 --- a/sync-for-expenses/docs/models/operations/updatecompanyrequest.md +++ b/sync-for-expenses/docs/models/operations/updatecompanyrequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -| `company_id` | *str* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 | -| `company_request_body` | [Optional[shared.CompanyRequestBody]](../../models/shared/companyrequestbody.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | +| `company_update_request` | [Optional[shared.CompanyUpdateRequest]](../../models/shared/companyupdaterequest.md) | :heavy_minus_sign: | N/A | | +| `company_id` | *str* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 | \ No newline at end of file diff --git a/sync-for-expenses/docs/models/operations/updatecustomerrequest.md b/sync-for-expenses/docs/models/operations/updatecustomerrequest.md index f01d10ce8..ecdd8a1aa 100644 --- a/sync-for-expenses/docs/models/operations/updatecustomerrequest.md +++ b/sync-for-expenses/docs/models/operations/updatecustomerrequest.md @@ -5,10 +5,10 @@ | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `company_id` | *str* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 | -| `connection_id` | *str* | :heavy_check_mark: | Unique identifier for a connection. | 2e9d2c44-f675-40ba-8049-353bfcb5e171 | -| `customer_id` | *str* | :heavy_check_mark: | Unique identifier for a customer. | 13d946f0-c5d5-42bc-b092-97ece17923ab | | `customer` | [OptionalNullable[shared.Customer]](../../models/shared/customer.md) | :heavy_minus_sign: | N/A | | | `allow_sync_on_push_complete` | *Optional[bool]* | :heavy_minus_sign: | Allow a sync upon push completion. | | +| `company_id` | *str* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 | +| `connection_id` | *str* | :heavy_check_mark: | Unique identifier for a connection. | 2e9d2c44-f675-40ba-8049-353bfcb5e171 | +| `customer_id` | *str* | :heavy_check_mark: | Unique identifier for a customer. | **Example 1:** 13d946f0-c5d5-42bc-b092-97ece17923ab
**Example 2:** 9wg4lep4ush5cxs79pl8sozmsndbaukll3ind4g7buqbm1h2
**Example 3:** 7110701885
**Example 4:** EILBDVJVNUAGVKRQ | | `force_update` | *Optional[bool]* | :heavy_minus_sign: | When updating data in the destination platform Codat checks the `sourceModifiedDate` against the `lastupdated` date from the accounting software, if they're different Codat will return an error suggesting you should initiate another pull of the data. If this is set to `true` then the update will override this check. | | | `timeout_in_minutes` | *Optional[int]* | :heavy_minus_sign: | Time limit for the push operation to complete before it is timed out. | | \ No newline at end of file diff --git a/sync-for-expenses/docs/models/operations/updateexpensetransactionrequest.md b/sync-for-expenses/docs/models/operations/updateexpensetransactionrequest.md index 7b6577be1..44a52487c 100644 --- a/sync-for-expenses/docs/models/operations/updateexpensetransactionrequest.md +++ b/sync-for-expenses/docs/models/operations/updateexpensetransactionrequest.md @@ -5,6 +5,6 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | +| `update_expense_request` | [Optional[shared.UpdateExpenseRequest]](../../models/shared/updateexpenserequest.md) | :heavy_minus_sign: | N/A | | | `company_id` | *str* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 | -| `transaction_id` | *str* | :heavy_check_mark: | The unique identifier for your SMB's transaction. | 336694d8-2dca-4cb5-a28d-3ccb83e55eee | -| `update_expense_request` | [Optional[shared.UpdateExpenseRequest]](../../models/shared/updateexpenserequest.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file +| `transaction_id` | *str* | :heavy_check_mark: | The unique identifier for your SMB's transaction. | 336694d8-2dca-4cb5-a28d-3ccb83e55eee | \ No newline at end of file diff --git a/sync-for-expenses/docs/models/operations/updatereimbursableexpensetransactionrequest.md b/sync-for-expenses/docs/models/operations/updatereimbursableexpensetransactionrequest.md index b6a8a1329..8f89b3945 100644 --- a/sync-for-expenses/docs/models/operations/updatereimbursableexpensetransactionrequest.md +++ b/sync-for-expenses/docs/models/operations/updatereimbursableexpensetransactionrequest.md @@ -5,6 +5,6 @@ | Field | Type | Required | Description | Example | | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | +| `update_reimbursable_expense_transaction_request` | [Optional[shared.UpdateReimbursableExpenseTransactionRequest]](../../models/shared/updatereimbursableexpensetransactionrequest.md) | :heavy_minus_sign: | N/A | | | `company_id` | *str* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 | -| `transaction_id` | *str* | :heavy_check_mark: | The unique identifier for your SMB's transaction. | 336694d8-2dca-4cb5-a28d-3ccb83e55eee | -| `update_reimbursable_expense_transaction_request` | [Optional[shared.UpdateReimbursableExpenseTransactionRequest]](../../models/shared/updatereimbursableexpensetransactionrequest.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file +| `transaction_id` | *str* | :heavy_check_mark: | The unique identifier for your SMB's transaction. | 336694d8-2dca-4cb5-a28d-3ccb83e55eee | \ No newline at end of file diff --git a/sync-for-expenses/docs/models/operations/updatesupplierrequest.md b/sync-for-expenses/docs/models/operations/updatesupplierrequest.md index 688abbe4b..c8d3266f8 100644 --- a/sync-for-expenses/docs/models/operations/updatesupplierrequest.md +++ b/sync-for-expenses/docs/models/operations/updatesupplierrequest.md @@ -5,10 +5,10 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `company_id` | *str* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 | -| `connection_id` | *str* | :heavy_check_mark: | Unique identifier for a connection. | 2e9d2c44-f675-40ba-8049-353bfcb5e171 | -| `supplier_id` | *str* | :heavy_check_mark: | Unique identifier for a supplier. | 13d946f0-c5d5-42bc-b092-97ece17923ab | | `supplier` | [OptionalNullable[shared.Supplier]](../../models/shared/supplier.md) | :heavy_minus_sign: | N/A | {
"id": "C520FFD4-F6F6-4FC2-A6D2-5D7088B2B14F",
"supplierName": "Kelly's Industrial Supplies",
"contactName": "Kelly's Industrial Supplies",
"emailAddress": "sales@kellysupplies.com",
"phone": "07999 999999",
"addresses": [
{
"type": "Billing",
"line1": "Unit 51",
"line2": "Bakersfield Industrial Estate",
"city": "Bakersfield",
"region": "California",
"country": "USA",
"postalcode": "93308"
}
],
"registrationNumber": "string",
"taxNumber": "string",
"status": "Unknown",
"defaultCurrency": "string",
"metadata": {
"isDeleted": true
},
"supplementalData": {
"content": {
"property1": {
"property1": null,
"property2": null
},
"property2": {
"property1": null,
"property2": null
}
}
},
"modifiedDate": "2022-10-23T00:00:00Z",
"sourceModifiedDate": "2022-10-23T00:00:00Z"
} | | `allow_sync_on_push_complete` | *Optional[bool]* | :heavy_minus_sign: | Allow a sync upon push completion. | | +| `company_id` | *str* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 | +| `connection_id` | *str* | :heavy_check_mark: | Unique identifier for a connection. | 2e9d2c44-f675-40ba-8049-353bfcb5e171 | | `force_update` | *Optional[bool]* | :heavy_minus_sign: | When updating data in the destination platform Codat checks the `sourceModifiedDate` against the `lastupdated` date from the accounting software, if they're different Codat will return an error suggesting you should initiate another pull of the data. If this is set to `true` then the update will override this check. | | +| `supplier_id` | *str* | :heavy_check_mark: | Unique identifier for a supplier. | **Example 1:** 13d946f0-c5d5-42bc-b092-97ece17923ab
**Example 2:** 9wg4lep4ush5cxs79pl8sozmsndbaukll3ind4g7buqbm1h2
**Example 3:** 7110701885
**Example 4:** EILBDVJVNUAGVKRQ | | `timeout_in_minutes` | *Optional[int]* | :heavy_minus_sign: | Time limit for the push operation to complete before it is timed out. | | \ No newline at end of file diff --git a/sync-for-expenses/docs/models/operations/uploadexpenseattachmentrequest.md b/sync-for-expenses/docs/models/operations/uploadexpenseattachmentrequest.md index 3ed90fbb2..747fb2886 100644 --- a/sync-for-expenses/docs/models/operations/uploadexpenseattachmentrequest.md +++ b/sync-for-expenses/docs/models/operations/uploadexpenseattachmentrequest.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | Example | | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | +| `attachment_upload` | [Optional[shared.AttachmentUpload]](../../models/shared/attachmentupload.md) | :heavy_minus_sign: | N/A | | | `company_id` | *str* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 | | `sync_id` | *str* | :heavy_check_mark: | Unique identifier for a sync. | 6fb40d5e-b13e-11ed-afa1-0242ac120002 | -| `transaction_id` | *str* | :heavy_check_mark: | The unique identifier for your SMB's transaction. | 336694d8-2dca-4cb5-a28d-3ccb83e55eee | -| `attachment_upload` | [Optional[shared.AttachmentUpload]](../../models/shared/attachmentupload.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file +| `transaction_id` | *str* | :heavy_check_mark: | The unique identifier for your SMB's transaction. | 336694d8-2dca-4cb5-a28d-3ccb83e55eee | \ No newline at end of file diff --git a/sync-for-expenses/docs/models/shared/accountingaccount.md b/sync-for-expenses/docs/models/shared/accountingaccount.md index 26b2f8b94..ad4be6cae 100644 --- a/sync-for-expenses/docs/models/shared/accountingaccount.md +++ b/sync-for-expenses/docs/models/shared/accountingaccount.md @@ -34,18 +34,18 @@ To determine the list of allowed categories for a specific integration, you can: | Field | Type | Required | Description | Example | | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `currency` | *Optional[str]* | :heavy_minus_sign: | The currency data type in Codat is the [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code, e.g. _GBP_.

## Unknown currencies

In line with the ISO 4217 specification, the code _XXX_ is used when the data source does not return a currency for a transaction.

There are only a very small number of edge cases where this currency code is returned by the Codat system. | GBP | +| `currency` | *Optional[str]* | :heavy_minus_sign: | The currency data type in Codat is the [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code, e.g. _GBP_.

## Unknown currencies

In line with the ISO 4217 specification, the code _XXX_ is used when the data source does not return a currency for a transaction.

There are only a very small number of edge cases where this currency code is returned by the Codat system. | **Example 1:** GBP
**Example 2:** USD
**Example 3:** EUR | | `current_balance` | *OptionalNullable[Decimal]* | :heavy_minus_sign: | Current balance in the account. | 0 | | `description` | *OptionalNullable[str]* | :heavy_minus_sign: | Description for the account. | Invoices the business has issued but has not yet collected payment on. | | `fully_qualified_category` | *OptionalNullable[str]* | :heavy_minus_sign: | Full category of the account.

For example, `Liability.Current` or `Income.Revenue`. To determine a list of possible categories for each integration, see our examples, follow our [Create, update, delete data](https://docs.codat.io/using-the-api/push) guide, or refer to the integration's own documentation. | Asset.Current | -| `fully_qualified_name` | *OptionalNullable[str]* | :heavy_minus_sign: | Full name of the account, for example:
- `Cash On Hand`
- `Rents Held In Trust`
- `Fixed Asset` | Cash On Hand | +| `fully_qualified_name` | *OptionalNullable[str]* | :heavy_minus_sign: | Full name of the account, for example:
- `Cash On Hand`
- `Rents Held In Trust`
- `Fixed Asset` | **Example 1:** Cash On Hand
**Example 2:** Fixed Asset | | `id` | *Optional[str]* | :heavy_minus_sign: | Identifier for the account, unique for the company. | 1b6266d1-1e44-46c5-8eb5-a8f98e03124e | | `is_bank_account` | *Optional[bool]* | :heavy_minus_sign: | Confirms whether the account is a bank account or not. | | | `metadata` | [Optional[shared.CreateAccountResponseMetadata]](../../models/shared/createaccountresponsemetadata.md) | :heavy_minus_sign: | N/A | | -| `modified_date` | *Optional[str]* | :heavy_minus_sign: | N/A | 2022-10-23 00:00:00 +0000 UTC | +| `modified_date` | *Optional[str]* | :heavy_minus_sign: | N/A | **Example 1:** 2022-10-23T00:00:00Z
**Example 2:** 2022-10-23 | | `name` | *OptionalNullable[str]* | :heavy_minus_sign: | Name of the account. | Accounts Receivable | | `nominal_code` | *OptionalNullable[str]* | :heavy_minus_sign: | Reference given to each nominal account for a business. It ensures money is allocated to the correct account. This code isn't a unique identifier in the Codat system. | 610 | -| `source_modified_date` | *Optional[str]* | :heavy_minus_sign: | N/A | 2022-10-23 00:00:00 +0000 UTC | +| `source_modified_date` | *Optional[str]* | :heavy_minus_sign: | N/A | **Example 1:** 2022-10-23T00:00:00Z
**Example 2:** 2022-10-23 | | `status` | [Optional[shared.AccountStatus]](../../models/shared/accountstatus.md) | :heavy_minus_sign: | Status of the account | Active | | `supplemental_data` | [Optional[shared.SupplementalData]](../../models/shared/supplementaldata.md) | :heavy_minus_sign: | Supplemental data is additional data you can include in our standard data types.

It is referenced as a configured dynamic key value pair that is unique to the accounting software. [Learn more](https://docs.codat.io/using-the-api/supplemental-data/overview) about supplemental data. | | | `type` | [Optional[shared.AccountType]](../../models/shared/accounttype.md) | :heavy_minus_sign: | Type of account | Asset | diff --git a/sync-for-expenses/docs/models/shared/accountingaddress.md b/sync-for-expenses/docs/models/shared/accountingaddress.md index 2fbc694ab..25c7e6e6c 100644 --- a/sync-for-expenses/docs/models/shared/accountingaddress.md +++ b/sync-for-expenses/docs/models/shared/accountingaddress.md @@ -5,10 +5,10 @@ | Field | Type | Required | Description | | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | -| `type` | [shared.AccountingAddressType](../../models/shared/accountingaddresstype.md) | :heavy_check_mark: | The type of the address | | `city` | *OptionalNullable[str]* | :heavy_minus_sign: | City of the customer address. | | `country` | *OptionalNullable[str]* | :heavy_minus_sign: | Country of the customer address. | | `line1` | *OptionalNullable[str]* | :heavy_minus_sign: | Line 1 of the customer address. | | `line2` | *OptionalNullable[str]* | :heavy_minus_sign: | Line 2 of the customer address. | | `postal_code` | *OptionalNullable[str]* | :heavy_minus_sign: | Postal code or zip code. | -| `region` | *OptionalNullable[str]* | :heavy_minus_sign: | Region of the customer address. | \ No newline at end of file +| `region` | *OptionalNullable[str]* | :heavy_minus_sign: | Region of the customer address. | +| `type` | [shared.AccountingAddressType](../../models/shared/accountingaddresstype.md) | :heavy_check_mark: | The type of the address | \ No newline at end of file diff --git a/sync-for-expenses/docs/models/shared/accountingaddresstype.md b/sync-for-expenses/docs/models/shared/accountingaddresstype.md index ab6961bcd..28e84404e 100644 --- a/sync-for-expenses/docs/models/shared/accountingaddresstype.md +++ b/sync-for-expenses/docs/models/shared/accountingaddresstype.md @@ -2,6 +2,14 @@ The type of the address +## Example Usage + +```python +from codat_sync_for_expenses.models.shared import AccountingAddressType + +value = AccountingAddressType.UNKNOWN +``` + ## Values diff --git a/sync-for-expenses/docs/models/shared/accountingbankaccount.md b/sync-for-expenses/docs/models/shared/accountingbankaccount.md index 62a02f042..456f38005 100644 --- a/sync-for-expenses/docs/models/shared/accountingbankaccount.md +++ b/sync-for-expenses/docs/models/shared/accountingbankaccount.md @@ -27,15 +27,15 @@ Bank accounts data includes: | `account_type` | [Optional[shared.CreateBankAccountResponseBankAccountType]](../../models/shared/createbankaccountresponsebankaccounttype.md) | :heavy_minus_sign: | The type of transactions and balances on the account.
For Credit accounts, positive balances are liabilities, and positive transactions **reduce** liabilities.
For Debit accounts, positive balances are assets, and positive transactions **increase** assets. | | | `available_balance` | *OptionalNullable[Decimal]* | :heavy_minus_sign: | Total available balance of the bank account as reported by the underlying data source. This may take into account overdrafts or pending transactions for example. | | | `balance` | *OptionalNullable[Decimal]* | :heavy_minus_sign: | Balance of the bank account. | | -| `currency` | *Optional[str]* | :heavy_minus_sign: | The currency data type in Codat is the [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code, e.g. _GBP_.

## Unknown currencies

In line with the ISO 4217 specification, the code _XXX_ is used when the data source does not return a currency for a transaction.

There are only a very small number of edge cases where this currency code is returned by the Codat system. | GBP | +| `currency` | *Optional[str]* | :heavy_minus_sign: | The currency data type in Codat is the [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code, e.g. _GBP_.

## Unknown currencies

In line with the ISO 4217 specification, the code _XXX_ is used when the data source does not return a currency for a transaction.

There are only a very small number of edge cases where this currency code is returned by the Codat system. | **Example 1:** GBP
**Example 2:** USD
**Example 3:** EUR | | `i_ban` | *OptionalNullable[str]* | :heavy_minus_sign: | International bank account number of the account. Often used when making or receiving international payments. | | | `id` | *Optional[str]* | :heavy_minus_sign: | Identifier for the account, unique for the company in the accounting software. | | | `institution` | *OptionalNullable[str]* | :heavy_minus_sign: | The institution of the bank account. | | | `metadata` | [Optional[shared.Metadata]](../../models/shared/metadata.md) | :heavy_minus_sign: | N/A | | -| `modified_date` | *Optional[str]* | :heavy_minus_sign: | N/A | 2022-10-23 00:00:00 +0000 UTC | +| `modified_date` | *Optional[str]* | :heavy_minus_sign: | N/A | **Example 1:** 2022-10-23T00:00:00Z
**Example 2:** 2022-10-23 | | `nominal_code` | *OptionalNullable[str]* | :heavy_minus_sign: | Code used to identify each nominal account for a business. | | | `overdraft_limit` | *OptionalNullable[Decimal]* | :heavy_minus_sign: | Pre-arranged overdraft limit of the account.

The value is always positive. For example, an overdraftLimit of `1000` means that the balance of the account can go down to `-1000`. | | | `sort_code` | *OptionalNullable[str]* | :heavy_minus_sign: | Sort code for the bank account.

Xero integrations
The sort code is only displayed when the currency = GBP and the sort code and account number sum to 14 digits. For non-GBP accounts, this field is not populated. | | -| `source_modified_date` | *Optional[str]* | :heavy_minus_sign: | N/A | 2022-10-23 00:00:00 +0000 UTC | +| `source_modified_date` | *Optional[str]* | :heavy_minus_sign: | N/A | **Example 1:** 2022-10-23T00:00:00Z
**Example 2:** 2022-10-23 | | `status` | [Optional[shared.BankAccountStatus]](../../models/shared/bankaccountstatus.md) | :heavy_minus_sign: | Status of the bank account. | Active | | `supplemental_data` | [Optional[shared.SupplementalData]](../../models/shared/supplementaldata.md) | :heavy_minus_sign: | Supplemental data is additional data you can include in our standard data types.

It is referenced as a configured dynamic key value pair that is unique to the accounting software. [Learn more](https://docs.codat.io/using-the-api/supplemental-data/overview) about supplemental data. | | \ No newline at end of file diff --git a/sync-for-expenses/docs/models/shared/accountingcustomer.md b/sync-for-expenses/docs/models/shared/accountingcustomer.md index 026a4abb1..91aac8064 100644 --- a/sync-for-expenses/docs/models/shared/accountingcustomer.md +++ b/sync-for-expenses/docs/models/shared/accountingcustomer.md @@ -14,18 +14,18 @@ Customers' data links to accounts receivable [invoices](https://docs.codat.io/sy | Field | Type | Required | Description | Example | | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `status` | [shared.CustomerStatus](../../models/shared/customerstatus.md) | :heavy_check_mark: | Status of customer. | | | `addresses` | List[[shared.Items](../../models/shared/items.md)] | :heavy_minus_sign: | An array of Addresses. | | | `contact_name` | *OptionalNullable[str]* | :heavy_minus_sign: | Name of the main contact for the identified customer. | | | `contacts` | List[[shared.Contact](../../models/shared/contact.md)] | :heavy_minus_sign: | An array of Contacts. | | | `customer_name` | *OptionalNullable[str]* | :heavy_minus_sign: | Name of the customer as recorded in the accounting system, typically the company name. | | -| `default_currency` | *Optional[str]* | :heavy_minus_sign: | The currency data type in Codat is the [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code, e.g. _GBP_.

## Unknown currencies

In line with the ISO 4217 specification, the code _XXX_ is used when the data source does not return a currency for a transaction.

There are only a very small number of edge cases where this currency code is returned by the Codat system. | GBP | +| `default_currency` | *Optional[str]* | :heavy_minus_sign: | The currency data type in Codat is the [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code, e.g. _GBP_.

## Unknown currencies

In line with the ISO 4217 specification, the code _XXX_ is used when the data source does not return a currency for a transaction.

There are only a very small number of edge cases where this currency code is returned by the Codat system. | **Example 1:** GBP
**Example 2:** USD
**Example 3:** EUR | | `email_address` | *OptionalNullable[str]* | :heavy_minus_sign: | Email address the customer can be contacted by. | | | `id` | *Optional[str]* | :heavy_minus_sign: | Identifier for the customer, unique to the company in the accounting software. | | | `metadata` | [Optional[shared.Metadata]](../../models/shared/metadata.md) | :heavy_minus_sign: | N/A | | -| `modified_date` | *Optional[str]* | :heavy_minus_sign: | N/A | 2022-10-23 00:00:00 +0000 UTC | +| `modified_date` | *Optional[str]* | :heavy_minus_sign: | N/A | **Example 1:** 2022-10-23T00:00:00Z
**Example 2:** 2022-10-23 | | `phone` | *OptionalNullable[str]* | :heavy_minus_sign: | Phone number the customer can be contacted by. | | | `registration_number` | *OptionalNullable[str]* | :heavy_minus_sign: | Company number. In the UK, this is typically the Companies House company registration number. | | -| `source_modified_date` | *Optional[str]* | :heavy_minus_sign: | N/A | 2022-10-23 00:00:00 +0000 UTC | +| `source_modified_date` | *Optional[str]* | :heavy_minus_sign: | N/A | **Example 1:** 2022-10-23T00:00:00Z
**Example 2:** 2022-10-23 | +| `status` | [shared.CustomerStatus](../../models/shared/customerstatus.md) | :heavy_check_mark: | Status of customer. | | | `supplemental_data` | [Optional[shared.SupplementalData]](../../models/shared/supplementaldata.md) | :heavy_minus_sign: | Supplemental data is additional data you can include in our standard data types.

It is referenced as a configured dynamic key value pair that is unique to the accounting software. [Learn more](https://docs.codat.io/using-the-api/supplemental-data/overview) about supplemental data. | | | `tax_number` | *OptionalNullable[str]* | :heavy_minus_sign: | Company tax number. | | \ No newline at end of file diff --git a/sync-for-expenses/docs/models/shared/accountingsupplier.md b/sync-for-expenses/docs/models/shared/accountingsupplier.md index 91f163eae..d0ef2eeb6 100644 --- a/sync-for-expenses/docs/models/shared/accountingsupplier.md +++ b/sync-for-expenses/docs/models/shared/accountingsupplier.md @@ -11,17 +11,17 @@ From the **Suppliers** endpoints, you can retrieve a list of [all the suppliers | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `status` | [shared.SupplierStatus](../../models/shared/supplierstatus.md) | :heavy_check_mark: | Status of the supplier. | | | `addresses` | List[[shared.Items](../../models/shared/items.md)] | :heavy_minus_sign: | An array of Addresses. | | | `contact_name` | *OptionalNullable[str]* | :heavy_minus_sign: | Name of the main contact for the supplier. | | | `default_currency` | *OptionalNullable[str]* | :heavy_minus_sign: | Default currency the supplier's transactional data is recorded in. | | | `email_address` | *OptionalNullable[str]* | :heavy_minus_sign: | Email address that the supplier may be contacted on. | | | `id` | *Optional[str]* | :heavy_minus_sign: | Identifier for the supplier, unique to the company in the accounting software. | | | `metadata` | [Optional[shared.Metadata]](../../models/shared/metadata.md) | :heavy_minus_sign: | N/A | | -| `modified_date` | *Optional[str]* | :heavy_minus_sign: | N/A | 2022-10-23 00:00:00 +0000 UTC | -| `phone` | *OptionalNullable[str]* | :heavy_minus_sign: | Phone number that the supplier may be contacted on. | +44 25691 154789 | +| `modified_date` | *Optional[str]* | :heavy_minus_sign: | N/A | **Example 1:** 2022-10-23T00:00:00Z
**Example 2:** 2022-10-23 | +| `phone` | *OptionalNullable[str]* | :heavy_minus_sign: | Phone number that the supplier may be contacted on. | **Example 1:** +44 25691 154789
**Example 2:** (877) 492-8687
**Example 3:** 01224 658 999 | | `registration_number` | *OptionalNullable[str]* | :heavy_minus_sign: | Company number of the supplier. In the UK, this is typically the company registration number issued by Companies House. | | -| `source_modified_date` | *Optional[str]* | :heavy_minus_sign: | N/A | 2022-10-23 00:00:00 +0000 UTC | +| `source_modified_date` | *Optional[str]* | :heavy_minus_sign: | N/A | **Example 1:** 2022-10-23T00:00:00Z
**Example 2:** 2022-10-23 | +| `status` | [shared.SupplierStatus](../../models/shared/supplierstatus.md) | :heavy_check_mark: | Status of the supplier. | | | `supplemental_data` | [Optional[shared.SupplementalData]](../../models/shared/supplementaldata.md) | :heavy_minus_sign: | Supplemental data is additional data you can include in our standard data types.

It is referenced as a configured dynamic key value pair that is unique to the accounting software. [Learn more](https://docs.codat.io/using-the-api/supplemental-data/overview) about supplemental data. | | | `supplier_name` | *OptionalNullable[str]* | :heavy_minus_sign: | Name of the supplier as recorded in the accounting system, typically the company name. | | | `tax_number` | *OptionalNullable[str]* | :heavy_minus_sign: | Supplier's company tax number. | | \ No newline at end of file diff --git a/sync-for-expenses/docs/models/shared/accountmappinginfoaccounttype.md b/sync-for-expenses/docs/models/shared/accountmappinginfoaccounttype.md index d5b4f8125..ef9375435 100644 --- a/sync-for-expenses/docs/models/shared/accountmappinginfoaccounttype.md +++ b/sync-for-expenses/docs/models/shared/accountmappinginfoaccounttype.md @@ -2,6 +2,14 @@ Type of the account. +## Example Usage + +```python +from codat_sync_for_expenses.models.shared import AccountMappingInfoAccountType + +value = AccountMappingInfoAccountType.ASSET +``` + ## Values diff --git a/sync-for-expenses/docs/models/shared/accountprototype.md b/sync-for-expenses/docs/models/shared/accountprototype.md index 03d002e05..69221bd5d 100644 --- a/sync-for-expenses/docs/models/shared/accountprototype.md +++ b/sync-for-expenses/docs/models/shared/accountprototype.md @@ -5,11 +5,11 @@ | Field | Type | Required | Description | Example | | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `currency` | *Optional[str]* | :heavy_minus_sign: | The currency data type in Codat is the [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code, e.g. _GBP_.

## Unknown currencies

In line with the ISO 4217 specification, the code _XXX_ is used when the data source does not return a currency for a transaction.

There are only a very small number of edge cases where this currency code is returned by the Codat system. | GBP | +| `currency` | *Optional[str]* | :heavy_minus_sign: | The currency data type in Codat is the [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code, e.g. _GBP_.

## Unknown currencies

In line with the ISO 4217 specification, the code _XXX_ is used when the data source does not return a currency for a transaction.

There are only a very small number of edge cases where this currency code is returned by the Codat system. | **Example 1:** GBP
**Example 2:** USD
**Example 3:** EUR | | `current_balance` | *OptionalNullable[Decimal]* | :heavy_minus_sign: | Current balance in the account. | 0 | | `description` | *OptionalNullable[str]* | :heavy_minus_sign: | Description for the account. | Invoices the business has issued but has not yet collected payment on. | | `fully_qualified_category` | *OptionalNullable[str]* | :heavy_minus_sign: | Full category of the account.

For example, `Liability.Current` or `Income.Revenue`. To determine a list of possible categories for each integration, see our examples, follow our [Create, update, delete data](https://docs.codat.io/using-the-api/push) guide, or refer to the integration's own documentation. | Asset.Current | -| `fully_qualified_name` | *OptionalNullable[str]* | :heavy_minus_sign: | Full name of the account, for example:
- `Cash On Hand`
- `Rents Held In Trust`
- `Fixed Asset` | Cash On Hand | +| `fully_qualified_name` | *OptionalNullable[str]* | :heavy_minus_sign: | Full name of the account, for example:
- `Cash On Hand`
- `Rents Held In Trust`
- `Fixed Asset` | **Example 1:** Cash On Hand
**Example 2:** Fixed Asset | | `is_bank_account` | *Optional[bool]* | :heavy_minus_sign: | Confirms whether the account is a bank account or not. | | | `name` | *OptionalNullable[str]* | :heavy_minus_sign: | Name of the account. | Accounts Receivable | | `nominal_code` | *OptionalNullable[str]* | :heavy_minus_sign: | Reference given to each nominal account for a business. It ensures money is allocated to the correct account. This code isn't a unique identifier in the Codat system. | 610 | diff --git a/sync-for-expenses/docs/models/shared/accountstatus.md b/sync-for-expenses/docs/models/shared/accountstatus.md index bd4cf2f26..829cd124d 100644 --- a/sync-for-expenses/docs/models/shared/accountstatus.md +++ b/sync-for-expenses/docs/models/shared/accountstatus.md @@ -2,6 +2,14 @@ Status of the account +## Example Usage + +```python +from codat_sync_for_expenses.models.shared import AccountStatus + +value = AccountStatus.UNKNOWN +``` + ## Values diff --git a/sync-for-expenses/docs/models/shared/accounttype.md b/sync-for-expenses/docs/models/shared/accounttype.md index f9c49f991..9885b254f 100644 --- a/sync-for-expenses/docs/models/shared/accounttype.md +++ b/sync-for-expenses/docs/models/shared/accounttype.md @@ -2,6 +2,14 @@ Type of account +## Example Usage + +```python +from codat_sync_for_expenses.models.shared import AccountType + +value = AccountType.UNKNOWN +``` + ## Values diff --git a/sync-for-expenses/docs/models/shared/adjustmenttransactionrequest.md b/sync-for-expenses/docs/models/shared/adjustmenttransactionrequest.md index 867190174..ca09716bf 100644 --- a/sync-for-expenses/docs/models/shared/adjustmenttransactionrequest.md +++ b/sync-for-expenses/docs/models/shared/adjustmenttransactionrequest.md @@ -6,8 +6,8 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `currency` | *str* | :heavy_check_mark: | Currency the transaction was recorded in. | | -| `date_` | *str* | :heavy_check_mark: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23 00:00:00 +0000 UTC | +| `currency_rate` | *OptionalNullable[Decimal]* | :heavy_minus_sign: | Rate to convert the total amount of the payment into the base currency for the company at the time of the payment.

Currency rates in Codat are implemented as the multiple of foreign currency units to each base currency unit.

It is not possible to perform the currency conversion with two or more non-base currencies participating in the transaction. For example, if a company's base currency is USD, and it has a bill issued in EUR, then the bill payment must happen in USD or EUR.

Where the currency rate is provided by the underlying accounting software, it will be available from Codat with the same precision (up to a maximum of 9 decimal places).

For accounting software which do not provide an explicit currency rate, it is calculated as `baseCurrency / foreignCurrency` and will be returned to 9 decimal places.

## Examples with base currency of GBP

\| Foreign Currency \| Foreign Amount \| Currency Rate \| Base Currency Amount (GBP) \|
\| :--------------- \| :------------- \| :------------ \| :------------------------- \|
\| **USD** \| $20 \| 0.781 \| £15.62 \|
\| **EUR** \| €20 \| 0.885 \| £17.70 \|
\| **RUB** \| ₽20 \| 0.011 \| £0.22 \|

## Examples with base currency of USD

\| Foreign Currency \| Foreign Amount \| Currency Rate \| Base Currency Amount (USD) \|
\| :--------------- \| :------------- \| :------------ \| :------------------------- \|
\| **GBP** \| £20 \| 1.277 \| $25.54 \|
\| **EUR** \| €20 \| 1.134 \| $22.68 \|
\| **RUB** \| ₽20 \| 0.015 \| $0.30 \|


### Integration-specific details

\| Integration \| Scenario \| System behavior \|
\|-------------------\|-------------------------------------------------\|----------------------------------------------------------------------------------------------------------------------------------------------------------------------\|
\| QuickBooks Online \| Transaction currency differs from base currency \| If currency rate value is left `null`, a rate of 1 will be used by QBO by default. To override this, specify a currencyRate in the request body. \| | | +| `date_` | *str* | :heavy_check_mark: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | **Example 1:** 2022-10-23T00:00:00Z
**Example 2:** 2022-10-23 | | `id` | *str* | :heavy_check_mark: | Your unique identifier for the transaction. | | | `lines` | List[[shared.AdjustmentTransactionLine](../../models/shared/adjustmenttransactionline.md)] | :heavy_check_mark: | Array of transaction lines. | | -| `currency_rate` | *OptionalNullable[Decimal]* | :heavy_minus_sign: | Rate to convert the total amount of the payment into the base currency for the company at the time of the payment.

Currency rates in Codat are implemented as the multiple of foreign currency units to each base currency unit.

It is not possible to perform the currency conversion with two or more non-base currencies participating in the transaction. For example, if a company's base currency is USD, and it has a bill issued in EUR, then the bill payment must happen in USD or EUR.

Where the currency rate is provided by the underlying accounting software, it will be available from Codat with the same precision (up to a maximum of 9 decimal places).

For accounting software which do not provide an explicit currency rate, it is calculated as `baseCurrency / foreignCurrency` and will be returned to 9 decimal places.

## Examples with base currency of GBP

\| Foreign Currency \| Foreign Amount \| Currency Rate \| Base Currency Amount (GBP) \|
\| :--------------- \| :------------- \| :------------ \| :------------------------- \|
\| **USD** \| $20 \| 0.781 \| £15.62 \|
\| **EUR** \| €20 \| 0.885 \| £17.70 \|
\| **RUB** \| ₽20 \| 0.011 \| £0.22 \|

## Examples with base currency of USD

\| Foreign Currency \| Foreign Amount \| Currency Rate \| Base Currency Amount (USD) \|
\| :--------------- \| :------------- \| :------------ \| :------------------------- \|
\| **GBP** \| £20 \| 1.277 \| $25.54 \|
\| **EUR** \| €20 \| 1.134 \| $22.68 \|
\| **RUB** \| ₽20 \| 0.015 \| $0.30 \|


### Integration-specific details

\| Integration \| Scenario \| System behavior \|
\|-------------------\|-------------------------------------------------\|----------------------------------------------------------------------------------------------------------------------------------------------------------------------\|
\| QuickBooks Online \| Transaction currency differs from base currency \| If currency rate value is left `null`, a rate of 1 will be used by QBO by default. To override this, specify a currencyRate in the request body. \| | | | `reference` | *OptionalNullable[str]* | :heavy_minus_sign: | User-friendly reference for the adjustment transaction. | | \ No newline at end of file diff --git a/sync-for-expenses/docs/models/shared/bankaccount.md b/sync-for-expenses/docs/models/shared/bankaccount.md index 446eb908f..e47a40d27 100644 --- a/sync-for-expenses/docs/models/shared/bankaccount.md +++ b/sync-for-expenses/docs/models/shared/bankaccount.md @@ -25,15 +25,15 @@ Bank accounts data includes: | `account_type` | [Optional[shared.BankAccountType]](../../models/shared/bankaccounttype.md) | :heavy_minus_sign: | The type of transactions and balances on the account.
For Credit accounts, positive balances are liabilities, and positive transactions **reduce** liabilities.
For Debit accounts, positive balances are assets, and positive transactions **increase** assets. | | | `available_balance` | *OptionalNullable[Decimal]* | :heavy_minus_sign: | Total available balance of the bank account as reported by the underlying data source. This may take into account overdrafts or pending transactions for example. | | | `balance` | *OptionalNullable[Decimal]* | :heavy_minus_sign: | Balance of the bank account. | | -| `currency` | *Optional[str]* | :heavy_minus_sign: | The currency data type in Codat is the [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code, e.g. _GBP_.

## Unknown currencies

In line with the ISO 4217 specification, the code _XXX_ is used when the data source does not return a currency for a transaction.

There are only a very small number of edge cases where this currency code is returned by the Codat system. | GBP | +| `currency` | *Optional[str]* | :heavy_minus_sign: | The currency data type in Codat is the [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code, e.g. _GBP_.

## Unknown currencies

In line with the ISO 4217 specification, the code _XXX_ is used when the data source does not return a currency for a transaction.

There are only a very small number of edge cases where this currency code is returned by the Codat system. | **Example 1:** GBP
**Example 2:** USD
**Example 3:** EUR | | `i_ban` | *OptionalNullable[str]* | :heavy_minus_sign: | International bank account number of the account. Often used when making or receiving international payments. | | | `id` | *Optional[str]* | :heavy_minus_sign: | Identifier for the account, unique for the company in the accounting software. | | | `institution` | *OptionalNullable[str]* | :heavy_minus_sign: | The institution of the bank account. | | | `metadata` | [Optional[shared.Metadata]](../../models/shared/metadata.md) | :heavy_minus_sign: | N/A | | -| `modified_date` | *Optional[str]* | :heavy_minus_sign: | N/A | 2022-10-23 00:00:00 +0000 UTC | +| `modified_date` | *Optional[str]* | :heavy_minus_sign: | N/A | **Example 1:** 2022-10-23T00:00:00Z
**Example 2:** 2022-10-23 | | `nominal_code` | *OptionalNullable[str]* | :heavy_minus_sign: | Code used to identify each nominal account for a business. | | | `overdraft_limit` | *OptionalNullable[Decimal]* | :heavy_minus_sign: | Pre-arranged overdraft limit of the account.

The value is always positive. For example, an overdraftLimit of `1000` means that the balance of the account can go down to `-1000`. | | | `sort_code` | *OptionalNullable[str]* | :heavy_minus_sign: | Sort code for the bank account.

Xero integrations
The sort code is only displayed when the currency = GBP and the sort code and account number sum to 14 digits. For non-GBP accounts, this field is not populated. | | -| `source_modified_date` | *Optional[str]* | :heavy_minus_sign: | N/A | 2022-10-23 00:00:00 +0000 UTC | +| `source_modified_date` | *Optional[str]* | :heavy_minus_sign: | N/A | **Example 1:** 2022-10-23T00:00:00Z
**Example 2:** 2022-10-23 | | `status` | [Optional[shared.BankAccountStatus]](../../models/shared/bankaccountstatus.md) | :heavy_minus_sign: | Status of the bank account. | Active | | `supplemental_data` | [Optional[shared.SupplementalData]](../../models/shared/supplementaldata.md) | :heavy_minus_sign: | Supplemental data is additional data you can include in our standard data types.

It is referenced as a configured dynamic key value pair that is unique to the accounting software. [Learn more](https://docs.codat.io/using-the-api/supplemental-data/overview) about supplemental data. | | \ No newline at end of file diff --git a/sync-for-expenses/docs/models/shared/bankaccountstatus.md b/sync-for-expenses/docs/models/shared/bankaccountstatus.md index b4d504d31..b87e4763f 100644 --- a/sync-for-expenses/docs/models/shared/bankaccountstatus.md +++ b/sync-for-expenses/docs/models/shared/bankaccountstatus.md @@ -2,6 +2,14 @@ Status of the bank account. +## Example Usage + +```python +from codat_sync_for_expenses.models.shared import BankAccountStatus + +value = BankAccountStatus.UNKNOWN +``` + ## Values diff --git a/sync-for-expenses/docs/models/shared/bankaccounttype.md b/sync-for-expenses/docs/models/shared/bankaccounttype.md index a995a4e52..60adff60e 100644 --- a/sync-for-expenses/docs/models/shared/bankaccounttype.md +++ b/sync-for-expenses/docs/models/shared/bankaccounttype.md @@ -4,6 +4,14 @@ The type of transactions and balances on the account. For Credit accounts, positive balances are liabilities, and positive transactions **reduce** liabilities. For Debit accounts, positive balances are assets, and positive transactions **increase** assets. +## Example Usage + +```python +from codat_sync_for_expenses.models.shared import BankAccountType + +value = BankAccountType.UNKNOWN +``` + ## Values diff --git a/sync-for-expenses/docs/models/shared/clientratelimitreachedwebhook.md b/sync-for-expenses/docs/models/shared/clientratelimitreachedwebhook.md deleted file mode 100644 index 7e8db4c18..000000000 --- a/sync-for-expenses/docs/models/shared/clientratelimitreachedwebhook.md +++ /dev/null @@ -1,16 +0,0 @@ -# ClientRateLimitReachedWebhook - -Webhook request body for a client that has reached their rate limit. - - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `alert_id` | *Optional[str]* | :heavy_minus_sign: | Unique identifier of the webhook event. | -| `client_id` | *Optional[str]* | :heavy_minus_sign: | Unique identifier for your client in Codat. | -| `client_name` | *Optional[str]* | :heavy_minus_sign: | Name of your client in Codat. | -| `data` | [Optional[shared.ClientRateLimitReachedWebhookData]](../../models/shared/clientratelimitreachedwebhookdata.md) | :heavy_minus_sign: | N/A | -| `message` | *Optional[str]* | :heavy_minus_sign: | A human-readable message about the webhook. | -| ~~`rule_id`~~ | *Optional[str]* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

Unique identifier for the rule. | -| `rule_type` | *Optional[str]* | :heavy_minus_sign: | The type of rule. | \ No newline at end of file diff --git a/sync-for-expenses/docs/models/shared/clientratelimitreachedwebhookdata.md b/sync-for-expenses/docs/models/shared/clientratelimitreachedwebhookdata.md deleted file mode 100644 index bab6ec72f..000000000 --- a/sync-for-expenses/docs/models/shared/clientratelimitreachedwebhookdata.md +++ /dev/null @@ -1,9 +0,0 @@ -# ClientRateLimitReachedWebhookData - - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `daily_quota` | *Optional[int]* | :heavy_minus_sign: | The number of available requests per day. | | -| `expires_utc` | *Optional[str]* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23 00:00:00 +0000 UTC | \ No newline at end of file diff --git a/sync-for-expenses/docs/models/shared/clientratelimitresetwebhook.md b/sync-for-expenses/docs/models/shared/clientratelimitresetwebhook.md deleted file mode 100644 index 4b69731e8..000000000 --- a/sync-for-expenses/docs/models/shared/clientratelimitresetwebhook.md +++ /dev/null @@ -1,16 +0,0 @@ -# ClientRateLimitResetWebhook - -Webhook request body for a client that has had their rate limit reset. - - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `alert_id` | *Optional[str]* | :heavy_minus_sign: | Unique identifier of the webhook event. | -| `client_id` | *Optional[str]* | :heavy_minus_sign: | Unique identifier for your client in Codat. | -| `client_name` | *Optional[str]* | :heavy_minus_sign: | Name of your client in Codat. | -| `data` | [Optional[shared.ClientRateLimitResetWebhookData]](../../models/shared/clientratelimitresetwebhookdata.md) | :heavy_minus_sign: | N/A | -| `message` | *Optional[str]* | :heavy_minus_sign: | A human-readable message about the webhook. | -| ~~`rule_id`~~ | *Optional[str]* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

Unique identifier for the rule. | -| `rule_type` | *Optional[str]* | :heavy_minus_sign: | The type of rule. | \ No newline at end of file diff --git a/sync-for-expenses/docs/models/shared/clientratelimitresetwebhookdata.md b/sync-for-expenses/docs/models/shared/clientratelimitresetwebhookdata.md deleted file mode 100644 index e585938fa..000000000 --- a/sync-for-expenses/docs/models/shared/clientratelimitresetwebhookdata.md +++ /dev/null @@ -1,11 +0,0 @@ -# ClientRateLimitResetWebhookData - - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `daily_quota` | *Optional[int]* | :heavy_minus_sign: | The number of available requests per day. | | -| `expires_utc` | *Optional[str]* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23 00:00:00 +0000 UTC | -| `quota_remaining` | *OptionalNullable[int]* | :heavy_minus_sign: | Total number of requests remaining for your client. | | -| `reset_reason` | *Optional[str]* | :heavy_minus_sign: | The reason for your rate limit quota being reset. | | \ No newline at end of file diff --git a/sync-for-expenses/docs/models/shared/clientratelimitwebhook.md b/sync-for-expenses/docs/models/shared/clientratelimitwebhook.md index 063e072ec..36e2030f0 100644 --- a/sync-for-expenses/docs/models/shared/clientratelimitwebhook.md +++ b/sync-for-expenses/docs/models/shared/clientratelimitwebhook.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `event_type` | *Optional[str]* | :heavy_minus_sign: | The type of event. | client.rateLimit.reset | -| `generated_date` | *Optional[str]* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23 00:00:00 +0000 UTC | +| `event_type` | *Optional[str]* | :heavy_minus_sign: | The type of event. | **Example 1:** client.rateLimit.reset
**Example 2:** client.rateLimit.reached | +| `generated_date` | *Optional[str]* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | **Example 1:** 2022-10-23T00:00:00Z
**Example 2:** 2022-10-23 | | `id` | *Optional[str]* | :heavy_minus_sign: | Unique identifier of the event. | 743ec94a-8aa4-44bb-8bd4-e1855ee0e74b | | `payload` | [Optional[shared.ClientRateLimitWebhookPayload]](../../models/shared/clientratelimitwebhookpayload.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/sync-for-expenses/docs/models/shared/clientratelimitwebhookpayload.md b/sync-for-expenses/docs/models/shared/clientratelimitwebhookpayload.md index 449b685f6..41b82096c 100644 --- a/sync-for-expenses/docs/models/shared/clientratelimitwebhookpayload.md +++ b/sync-for-expenses/docs/models/shared/clientratelimitwebhookpayload.md @@ -6,5 +6,5 @@ | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `daily_quota` | *Optional[int]* | :heavy_minus_sign: | The number of available requests per day. | | -| `expiry_date` | *Optional[str]* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23 00:00:00 +0000 UTC | +| `expiry_date` | *Optional[str]* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | **Example 1:** 2022-10-23T00:00:00Z
**Example 2:** 2022-10-23 | | `quota_remaining` | *Optional[int]* | :heavy_minus_sign: | Total number of requests remaining for your client. | | \ No newline at end of file diff --git a/sync-for-expenses/docs/models/shared/codatfile.md b/sync-for-expenses/docs/models/shared/codatfile.md index 1b6592448..07b4ca48c 100644 --- a/sync-for-expenses/docs/models/shared/codatfile.md +++ b/sync-for-expenses/docs/models/shared/codatfile.md @@ -6,5 +6,5 @@ | Field | Type | Required | Description | | -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | | `content` | *Union[bytes, IO[bytes], io.BufferedReader]* | :heavy_check_mark: | N/A | -| `file_name` | *str* | :heavy_check_mark: | N/A | -| `content_type` | *Optional[str]* | :heavy_minus_sign: | N/A | \ No newline at end of file +| `content_type` | *Optional[str]* | :heavy_minus_sign: | N/A | +| `file_name` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/sync-for-expenses/docs/models/shared/companies.md b/sync-for-expenses/docs/models/shared/companies.md index d6b5a8ea8..670c41db2 100644 --- a/sync-for-expenses/docs/models/shared/companies.md +++ b/sync-for-expenses/docs/models/shared/companies.md @@ -8,5 +8,5 @@ | `links` | [shared.Links](../../models/shared/links.md) | :heavy_check_mark: | N/A | {
"self": {
"href": "/companies"
},
"current": {
"href": "/companies?page=1\u0026pageSize=10"
}
} | | `page_number` | *int* | :heavy_check_mark: | Current page number. | | | `page_size` | *int* | :heavy_check_mark: | Number of items to return in results array. | | -| `total_results` | *int* | :heavy_check_mark: | Total number of items. | | -| `results` | List[[shared.Company](../../models/shared/company.md)] | :heavy_minus_sign: | N/A | | \ No newline at end of file +| `results` | List[[shared.Company](../../models/shared/company.md)] | :heavy_minus_sign: | N/A | | +| `total_results` | *int* | :heavy_check_mark: | Total number of items. | | \ No newline at end of file diff --git a/sync-for-expenses/docs/models/shared/company.md b/sync-for-expenses/docs/models/shared/company.md index 505d88ed2..1d19987ed 100644 --- a/sync-for-expenses/docs/models/shared/company.md +++ b/sync-for-expenses/docs/models/shared/company.md @@ -11,15 +11,15 @@ When you create a company, you can specify a `name` and we will automatically ge | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `id` | *str* | :heavy_check_mark: | Unique identifier for your SMB in Codat. | 8a210b68-6988-11ed-a1eb-0242ac120002 | -| `name` | *str* | :heavy_check_mark: | The name of the company | Codat Ltd. | -| `redirect` | *str* | :heavy_check_mark: | The `redirect` [Link URL](https://docs.codat.io/auth-flow/authorize-hosted-link) enabling the customer to start their auth flow journey for the company. | https://link.codat.io/company/27628208-459c-46a2-a705-5641ce25f739 | -| `created` | *Optional[str]* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23 00:00:00 +0000 UTC | +| `created` | *Optional[str]* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | **Example 1:** 2022-10-23T00:00:00Z
**Example 2:** 2022-10-23 | | `created_by_user_name` | *OptionalNullable[str]* | :heavy_minus_sign: | Name of user that created the company in Codat. | | | `data_connections` | List[[shared.Connection](../../models/shared/connection.md)] | :heavy_minus_sign: | N/A | | | `description` | *Optional[str]* | :heavy_minus_sign: | Additional information about the company. This can be used to store foreign IDs, references, etc. | Requested early access to the new financing scheme. | -| `last_sync` | *Optional[str]* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23 00:00:00 +0000 UTC | +| `id` | *str* | :heavy_check_mark: | Unique identifier for your SMB in Codat. | 8a210b68-6988-11ed-a1eb-0242ac120002 | +| `last_sync` | *Optional[str]* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | **Example 1:** 2022-10-23T00:00:00Z
**Example 2:** 2022-10-23 | +| `name` | *str* | :heavy_check_mark: | The name of the company | Codat Ltd. | | `products` | List[*str*] | :heavy_minus_sign: | An array of products that are currently enabled for the company. | | +| `redirect` | *str* | :heavy_check_mark: | The `redirect` [Link URL](https://docs.codat.io/auth-flow/authorize-hosted-link) enabling the customer to start their auth flow journey for the company. | https://link.codat.io/company/27628208-459c-46a2-a705-5641ce25f739 | | `reference_parent_company` | [Optional[shared.CompanyReference]](../../models/shared/companyreference.md) | :heavy_minus_sign: | N/A | | | `reference_subsidiary_companies` | List[[shared.CompanyReference](../../models/shared/companyreference.md)] | :heavy_minus_sign: | A list of subsidiary companies owned or controlled by this entity. Empty if the company has no children. | | | `tags` | Dict[str, *str*] | :heavy_minus_sign: | A collection of user-defined key-value pairs that store custom metadata against the company. | | \ No newline at end of file diff --git a/sync-for-expenses/docs/models/shared/companyinformation.md b/sync-for-expenses/docs/models/shared/companyinformation.md index 8129bc596..0b027bf67 100644 --- a/sync-for-expenses/docs/models/shared/companyinformation.md +++ b/sync-for-expenses/docs/models/shared/companyinformation.md @@ -16,12 +16,12 @@ Company info provides standard details about a linked company such as their addr | `base_currency` | *OptionalNullable[str]* | :heavy_minus_sign: | Currency set in the accounting software of the linked company. Used by the currency rate. | | | `company_legal_name` | *OptionalNullable[str]* | :heavy_minus_sign: | Registered legal name of the linked company. | | | `company_name` | *OptionalNullable[str]* | :heavy_minus_sign: | Name of the linked company. | | -| `created_date` | *Optional[str]* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23 00:00:00 +0000 UTC | -| `financial_year_start_date` | *Optional[str]* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23 00:00:00 +0000 UTC | -| `ledger_lock_date` | *Optional[str]* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23 00:00:00 +0000 UTC | +| `created_date` | *Optional[str]* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | **Example 1:** 2022-10-23T00:00:00Z
**Example 2:** 2022-10-23 | +| `financial_year_start_date` | *Optional[str]* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | **Example 1:** 2022-10-23T00:00:00Z
**Example 2:** 2022-10-23 | +| `ledger_lock_date` | *Optional[str]* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | **Example 1:** 2022-10-23T00:00:00Z
**Example 2:** 2022-10-23 | | `phone_numbers` | List[[shared.Phone](../../models/shared/phone.md)] | :heavy_minus_sign: | An array of phone numbers. | | | `registration_number` | *OptionalNullable[str]* | :heavy_minus_sign: | Registration number given to the linked company by the companies authority in the country of origin. In the UK this is Companies House. | | -| `source_urls` | Dict[str, *str*] | :heavy_minus_sign: | URL addresses for the accounting source.

For example, for Xero integrations two URLs are returned. These have many potential use cases, such as [deep linking](https://developer.xero.com/documentation/api-guides/deep-link-xero). | | +| `source_urls` | Dict[str, *Nullable[str]*] | :heavy_minus_sign: | URL addresses for the accounting source.

For example, for Xero integrations two URLs are returned. These have many potential use cases, such as [deep linking](https://developer.xero.com/documentation/api-guides/deep-link-xero). | | | `supplemental_data` | [Optional[shared.SupplementalData]](../../models/shared/supplementaldata.md) | :heavy_minus_sign: | Supplemental data is additional data you can include in our standard data types.

It is referenced as a configured dynamic key value pair that is unique to the accounting software. [Learn more](https://docs.codat.io/using-the-api/supplemental-data/overview) about supplemental data. | | | `tax_number` | *OptionalNullable[str]* | :heavy_minus_sign: | Company tax number. | | | `web_links` | List[[shared.Weblink](../../models/shared/weblink.md)] | :heavy_minus_sign: | An array of weblinks. | | \ No newline at end of file diff --git a/sync-for-expenses/docs/models/shared/companyinformationschemastype.md b/sync-for-expenses/docs/models/shared/companyinformationschemastype.md new file mode 100644 index 000000000..89193e999 --- /dev/null +++ b/sync-for-expenses/docs/models/shared/companyinformationschemastype.md @@ -0,0 +1,20 @@ +# CompanyInformationSchemasType + +The type of the weblink. + +## Example Usage + +```python +from codat_sync_for_expenses.models.shared import CompanyInformationSchemasType + +value = CompanyInformationSchemasType.WEBSITE +``` + + +## Values + +| Name | Value | +| --------- | --------- | +| `WEBSITE` | Website | +| `SOCIAL` | Social | +| `UNKNOWN` | Unknown | \ No newline at end of file diff --git a/sync-for-expenses/docs/models/shared/companyinformationtype.md b/sync-for-expenses/docs/models/shared/companyinformationtype.md index d44732c6d..5fe0b49ca 100644 --- a/sync-for-expenses/docs/models/shared/companyinformationtype.md +++ b/sync-for-expenses/docs/models/shared/companyinformationtype.md @@ -1,12 +1,22 @@ # CompanyInformationType -The type of the weblink. +The type of phone number + +## Example Usage + +```python +from codat_sync_for_expenses.models.shared import CompanyInformationType + +value = CompanyInformationType.PRIMARY +``` ## Values -| Name | Value | -| --------- | --------- | -| `WEBSITE` | Website | -| `SOCIAL` | Social | -| `UNKNOWN` | Unknown | \ No newline at end of file +| Name | Value | +| ---------- | ---------- | +| `PRIMARY` | Primary | +| `LANDLINE` | Landline | +| `MOBILE` | Mobile | +| `FAX` | Fax | +| `UNKNOWN` | Unknown | \ No newline at end of file diff --git a/sync-for-expenses/docs/models/shared/companyrequestbody.md b/sync-for-expenses/docs/models/shared/companyrequestbody.md index 3b85563a1..3ae35b3c7 100644 --- a/sync-for-expenses/docs/models/shared/companyrequestbody.md +++ b/sync-for-expenses/docs/models/shared/companyrequestbody.md @@ -5,6 +5,6 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | -| `name` | *str* | :heavy_check_mark: | Name of company being connected. | Bank of Dave | | `description` | *Optional[str]* | :heavy_minus_sign: | Additional information about the company. This can be used to store foreign IDs, references, etc. | Requested early access to the new financing scheme. | +| `name` | *str* | :heavy_check_mark: | Name of company being connected. | Bank of Dave | | `tags` | Dict[str, *str*] | :heavy_minus_sign: | A collection of user-defined key-value pairs that store custom metadata against the company. | | \ No newline at end of file diff --git a/sync-for-expenses/docs/models/shared/companysyncstatus.md b/sync-for-expenses/docs/models/shared/companysyncstatus.md index 8e8337f4d..8c66b8b9f 100644 --- a/sync-for-expenses/docs/models/shared/companysyncstatus.md +++ b/sync-for-expenses/docs/models/shared/companysyncstatus.md @@ -10,6 +10,6 @@ | `error_message` | *OptionalNullable[str]* | :heavy_minus_sign: | Error message of the sync. | | | `sync_exception_message` | *OptionalNullable[str]* | :heavy_minus_sign: | Exception message of the sync. | | | `sync_id` | *OptionalNullable[str]* | :heavy_minus_sign: | Unique identifier of the sync. | a6a22aff-a43a-411d-a910-2dae73217cce | -| `sync_status` | *OptionalNullable[str]* | :heavy_minus_sign: | Text status of the sync. | Complete | +| `sync_status` | *OptionalNullable[str]* | :heavy_minus_sign: | Text status of the sync. | **Example 1:** Complete
**Example 2:** PushError
**Example 3:** Started
**Example 4:** NotStarted
**Example 5:** Pushing | | `sync_status_code` | *Optional[int]* | :heavy_minus_sign: | Status code of the sync. | 2000 | -| `sync_utc` | *Optional[str]* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23 00:00:00 +0000 UTC | \ No newline at end of file +| `sync_utc` | *Optional[str]* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | **Example 1:** 2022-10-23T00:00:00Z
**Example 2:** 2022-10-23 | \ No newline at end of file diff --git a/sync-for-expenses/docs/models/shared/companyupdaterequest.md b/sync-for-expenses/docs/models/shared/companyupdaterequest.md new file mode 100644 index 000000000..c79edb11b --- /dev/null +++ b/sync-for-expenses/docs/models/shared/companyupdaterequest.md @@ -0,0 +1,10 @@ +# CompanyUpdateRequest + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | +| `description` | *Optional[str]* | :heavy_minus_sign: | Additional information about the company. This can be used to store foreign IDs, references, etc. | Requested early access to the new financing scheme. | +| `name` | *Optional[str]* | :heavy_minus_sign: | Name of company being connected. | Bank of Dave | +| `tags` | Dict[str, *str*] | :heavy_minus_sign: | A collection of user-defined key-value pairs that store custom metadata against the company. | | \ No newline at end of file diff --git a/sync-for-expenses/docs/models/shared/connection.md b/sync-for-expenses/docs/models/shared/connection.md index da1267119..108eb913c 100644 --- a/sync-for-expenses/docs/models/shared/connection.md +++ b/sync-for-expenses/docs/models/shared/connection.md @@ -16,15 +16,15 @@ Before you can use a data connection to pull or push data, the company must gran | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `created` | *str* | :heavy_check_mark: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23 00:00:00 +0000 UTC | +| `connection_info` | Dict[str, *Any*] | :heavy_minus_sign: | N/A | | +| `created` | *str* | :heavy_check_mark: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | **Example 1:** 2022-10-23T00:00:00Z
**Example 2:** 2022-10-23 | +| `data_connection_errors` | List[[shared.DataConnectionError](../../models/shared/dataconnectionerror.md)] | :heavy_minus_sign: | N/A | | | `id` | *str* | :heavy_check_mark: | Unique identifier for a company's data connection. | 2e9d2c44-f675-40ba-8049-353bfcb5e171 | | `integration_id` | *str* | :heavy_check_mark: | A Codat ID representing the integration. | fd321cb6-7963-4506-b873-e99593a45e30 | | `integration_key` | *str* | :heavy_check_mark: | A unique four-character ID that identifies the platform of the company's data connection. This ensures continuity if the platform changes its name in the future. | | +| `last_sync` | *Optional[str]* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | **Example 1:** 2022-10-23T00:00:00Z
**Example 2:** 2022-10-23 | | `link_url` | *str* | :heavy_check_mark: | The link URL your customers can use to authorize access to their business application. | https://link-api.codat.io/companies/86bd88cb-44ab-4dfb-b32f-87b19b14287f/connections/2e2eb431-c1fa-4dc9-93fa-d29781c12bcd/start | | `platform_name` | *str* | :heavy_check_mark: | Name of integration connected to company. | | | `source_id` | *str* | :heavy_check_mark: | A source-specific ID used to distinguish between different sources originating from the same data connection. In general, a data connection is a single data source. However, for TrueLayer, `sourceId` is associated with a specific bank and has a many-to-one relationship with the `integrationId`. | 35b92968-9851-4095-ad60-395c95cbcba4 | | `source_type` | [shared.SourceType](../../models/shared/sourcetype.md) | :heavy_check_mark: | The type of platform of the connection. | Accounting | -| `status` | [shared.DataConnectionStatus](../../models/shared/dataconnectionstatus.md) | :heavy_check_mark: | The current authorization status of the data connection. | | -| `connection_info` | Dict[str, *str*] | :heavy_minus_sign: | N/A | | -| `data_connection_errors` | List[[shared.DataConnectionError](../../models/shared/dataconnectionerror.md)] | :heavy_minus_sign: | N/A | | -| `last_sync` | *Optional[str]* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23 00:00:00 +0000 UTC | \ No newline at end of file +| `status` | [shared.DataConnectionStatus](../../models/shared/dataconnectionstatus.md) | :heavy_check_mark: | The current authorization status of the data connection. | | \ No newline at end of file diff --git a/sync-for-expenses/docs/models/shared/connections.md b/sync-for-expenses/docs/models/shared/connections.md index 1323c74a1..69b3bdc2c 100644 --- a/sync-for-expenses/docs/models/shared/connections.md +++ b/sync-for-expenses/docs/models/shared/connections.md @@ -8,5 +8,5 @@ | `links` | [shared.Links](../../models/shared/links.md) | :heavy_check_mark: | N/A | {
"self": {
"href": "/companies"
},
"current": {
"href": "/companies?page=1\u0026pageSize=10"
}
} | | `page_number` | *int* | :heavy_check_mark: | Current page number. | | | `page_size` | *int* | :heavy_check_mark: | Number of items to return in results array. | | -| `total_results` | *int* | :heavy_check_mark: | Total number of items. | | -| `results` | List[[shared.Connection](../../models/shared/connection.md)] | :heavy_minus_sign: | N/A | | \ No newline at end of file +| `results` | List[[shared.Connection](../../models/shared/connection.md)] | :heavy_minus_sign: | N/A | | +| `total_results` | *int* | :heavy_check_mark: | Total number of items. | | \ No newline at end of file diff --git a/sync-for-expenses/docs/models/shared/contact.md b/sync-for-expenses/docs/models/shared/contact.md index 2e80ace11..2be9860ce 100644 --- a/sync-for-expenses/docs/models/shared/contact.md +++ b/sync-for-expenses/docs/models/shared/contact.md @@ -5,9 +5,9 @@ | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `status` | [shared.CustomerStatus](../../models/shared/customerstatus.md) | :heavy_check_mark: | Status of customer. | | | `address` | [Optional[shared.Items]](../../models/shared/items.md) | :heavy_minus_sign: | N/A | | | `email` | *OptionalNullable[str]* | :heavy_minus_sign: | Email of a contact for a customer. | | -| `modified_date` | *Optional[str]* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23 00:00:00 +0000 UTC | +| `modified_date` | *Optional[str]* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | **Example 1:** 2022-10-23T00:00:00Z
**Example 2:** 2022-10-23 | | `name` | *OptionalNullable[str]* | :heavy_minus_sign: | Name of a contact for a customer. | | -| `phone` | List[[shared.PhoneNumberItems](../../models/shared/phonenumberitems.md)] | :heavy_minus_sign: | An array of Phone numbers. | | \ No newline at end of file +| `phone` | List[[shared.PhoneNumberItems](../../models/shared/phonenumberitems.md)] | :heavy_minus_sign: | An array of Phone numbers. | | +| `status` | [shared.CustomerStatus](../../models/shared/customerstatus.md) | :heavy_check_mark: | Status of customer. | | \ No newline at end of file diff --git a/sync-for-expenses/docs/models/shared/createaccountresponse.md b/sync-for-expenses/docs/models/shared/createaccountresponse.md index 2757a3460..a910294dc 100644 --- a/sync-for-expenses/docs/models/shared/createaccountresponse.md +++ b/sync-for-expenses/docs/models/shared/createaccountresponse.md @@ -5,17 +5,17 @@ | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `changes` | List[[shared.PushOperationChange](../../models/shared/pushoperationchange.md)] | :heavy_minus_sign: | Contains a single entry that communicates which record has changed and the manner in which it changed. | | | `company_id` | *str* | :heavy_check_mark: | Unique identifier for your SMB in Codat. | 8a210b68-6988-11ed-a1eb-0242ac120002 | +| `completed_on_utc` | *Optional[str]* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | **Example 1:** 2022-10-23T00:00:00Z
**Example 2:** 2022-10-23 | +| `data` | [OptionalNullable[shared.AccountingAccount]](../../models/shared/accountingaccount.md) | :heavy_minus_sign: | N/A | | | `data_connection_key` | *str* | :heavy_check_mark: | Unique identifier for a company's data connection. | 2e9d2c44-f675-40ba-8049-353bfcb5e171 | +| `data_type` | [Optional[shared.DataType]](../../models/shared/datatype.md) | :heavy_minus_sign: | Available data types | invoices | +| `error_message` | *OptionalNullable[str]* | :heavy_minus_sign: | A message about the error. | | | `push_operation_key` | *str* | :heavy_check_mark: | A unique identifier generated by Codat to represent this single push operation. This identifier can be used to track the status of the push, and should be persisted. | | -| `requested_on_utc` | *str* | :heavy_check_mark: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23 00:00:00 +0000 UTC | +| `requested_on_utc` | *str* | :heavy_check_mark: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | **Example 1:** 2022-10-23T00:00:00Z
**Example 2:** 2022-10-23 | | `status` | [shared.PushOperationStatus](../../models/shared/pushoperationstatus.md) | :heavy_check_mark: | The current status of the push operation. | | | `status_code` | *int* | :heavy_check_mark: | Push status code. | | -| `changes` | List[[shared.PushOperationChange](../../models/shared/pushoperationchange.md)] | :heavy_minus_sign: | Contains a single entry that communicates which record has changed and the manner in which it changed. | | -| `completed_on_utc` | *Optional[str]* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23 00:00:00 +0000 UTC | -| `data` | [OptionalNullable[shared.AccountingAccount]](../../models/shared/accountingaccount.md) | :heavy_minus_sign: | N/A | | -| `data_type` | [Optional[shared.DataType]](../../models/shared/datatype.md) | :heavy_minus_sign: | Available data types | invoices | -| `error_message` | *OptionalNullable[str]* | :heavy_minus_sign: | A message about the error. | | | `timeout_in_minutes` | *OptionalNullable[int]* | :heavy_minus_sign: | Number of minutes the push operation must complete within before it times out. | | | ~~`timeout_in_seconds`~~ | *OptionalNullable[int]* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

Number of seconds the push operation must complete within before it times out. | | | `validation` | [Optional[shared.Validation]](../../models/shared/validation.md) | :heavy_minus_sign: | A human-readable object describing validation decisions Codat has made when pushing data into the platform. If a push has failed because of validation errors, they will be detailed here. | | \ No newline at end of file diff --git a/sync-for-expenses/docs/models/shared/createbankaccountresponse.md b/sync-for-expenses/docs/models/shared/createbankaccountresponse.md index c783e2fb1..253e20888 100644 --- a/sync-for-expenses/docs/models/shared/createbankaccountresponse.md +++ b/sync-for-expenses/docs/models/shared/createbankaccountresponse.md @@ -5,17 +5,17 @@ | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `changes` | List[[shared.PushOperationChange](../../models/shared/pushoperationchange.md)] | :heavy_minus_sign: | Contains a single entry that communicates which record has changed and the manner in which it changed. | | | `company_id` | *str* | :heavy_check_mark: | Unique identifier for your SMB in Codat. | 8a210b68-6988-11ed-a1eb-0242ac120002 | +| `completed_on_utc` | *Optional[str]* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | **Example 1:** 2022-10-23T00:00:00Z
**Example 2:** 2022-10-23 | +| `data` | [OptionalNullable[shared.AccountingBankAccount]](../../models/shared/accountingbankaccount.md) | :heavy_minus_sign: | N/A | | | `data_connection_key` | *str* | :heavy_check_mark: | Unique identifier for a company's data connection. | 2e9d2c44-f675-40ba-8049-353bfcb5e171 | +| `data_type` | [Optional[shared.DataType]](../../models/shared/datatype.md) | :heavy_minus_sign: | Available data types | invoices | +| `error_message` | *OptionalNullable[str]* | :heavy_minus_sign: | A message about the error. | | | `push_operation_key` | *str* | :heavy_check_mark: | A unique identifier generated by Codat to represent this single push operation. This identifier can be used to track the status of the push, and should be persisted. | | -| `requested_on_utc` | *str* | :heavy_check_mark: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23 00:00:00 +0000 UTC | +| `requested_on_utc` | *str* | :heavy_check_mark: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | **Example 1:** 2022-10-23T00:00:00Z
**Example 2:** 2022-10-23 | | `status` | [shared.PushOperationStatus](../../models/shared/pushoperationstatus.md) | :heavy_check_mark: | The current status of the push operation. | | | `status_code` | *int* | :heavy_check_mark: | Push status code. | | -| `changes` | List[[shared.PushOperationChange](../../models/shared/pushoperationchange.md)] | :heavy_minus_sign: | Contains a single entry that communicates which record has changed and the manner in which it changed. | | -| `completed_on_utc` | *Optional[str]* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23 00:00:00 +0000 UTC | -| `data` | [OptionalNullable[shared.AccountingBankAccount]](../../models/shared/accountingbankaccount.md) | :heavy_minus_sign: | N/A | | -| `data_type` | [Optional[shared.DataType]](../../models/shared/datatype.md) | :heavy_minus_sign: | Available data types | invoices | -| `error_message` | *OptionalNullable[str]* | :heavy_minus_sign: | A message about the error. | | | `timeout_in_minutes` | *OptionalNullable[int]* | :heavy_minus_sign: | Number of minutes the push operation must complete within before it times out. | | | ~~`timeout_in_seconds`~~ | *OptionalNullable[int]* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

Number of seconds the push operation must complete within before it times out. | | | `validation` | [Optional[shared.Validation]](../../models/shared/validation.md) | :heavy_minus_sign: | A human-readable object describing validation decisions Codat has made when pushing data into the platform. If a push has failed because of validation errors, they will be detailed here. | | \ No newline at end of file diff --git a/sync-for-expenses/docs/models/shared/createbankaccountresponsebankaccounttype.md b/sync-for-expenses/docs/models/shared/createbankaccountresponsebankaccounttype.md index b3cdb6f60..fd4de5286 100644 --- a/sync-for-expenses/docs/models/shared/createbankaccountresponsebankaccounttype.md +++ b/sync-for-expenses/docs/models/shared/createbankaccountresponsebankaccounttype.md @@ -4,6 +4,14 @@ The type of transactions and balances on the account. For Credit accounts, positive balances are liabilities, and positive transactions **reduce** liabilities. For Debit accounts, positive balances are assets, and positive transactions **increase** assets. +## Example Usage + +```python +from codat_sync_for_expenses.models.shared import CreateBankAccountResponseBankAccountType + +value = CreateBankAccountResponseBankAccountType.UNKNOWN +``` + ## Values diff --git a/sync-for-expenses/docs/models/shared/createcustomerresponse.md b/sync-for-expenses/docs/models/shared/createcustomerresponse.md index d0cc51c87..7bcb27ed0 100644 --- a/sync-for-expenses/docs/models/shared/createcustomerresponse.md +++ b/sync-for-expenses/docs/models/shared/createcustomerresponse.md @@ -5,17 +5,17 @@ | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `changes` | List[[shared.PushOperationChange](../../models/shared/pushoperationchange.md)] | :heavy_minus_sign: | Contains a single entry that communicates which record has changed and the manner in which it changed. | | | `company_id` | *str* | :heavy_check_mark: | Unique identifier for your SMB in Codat. | 8a210b68-6988-11ed-a1eb-0242ac120002 | +| `completed_on_utc` | *Optional[str]* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | **Example 1:** 2022-10-23T00:00:00Z
**Example 2:** 2022-10-23 | +| `data` | [OptionalNullable[shared.AccountingCustomer]](../../models/shared/accountingcustomer.md) | :heavy_minus_sign: | N/A | | | `data_connection_key` | *str* | :heavy_check_mark: | Unique identifier for a company's data connection. | 2e9d2c44-f675-40ba-8049-353bfcb5e171 | +| `data_type` | [Optional[shared.DataType]](../../models/shared/datatype.md) | :heavy_minus_sign: | Available data types | invoices | +| `error_message` | *OptionalNullable[str]* | :heavy_minus_sign: | A message about the error. | | | `push_operation_key` | *str* | :heavy_check_mark: | A unique identifier generated by Codat to represent this single push operation. This identifier can be used to track the status of the push, and should be persisted. | | -| `requested_on_utc` | *str* | :heavy_check_mark: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23 00:00:00 +0000 UTC | +| `requested_on_utc` | *str* | :heavy_check_mark: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | **Example 1:** 2022-10-23T00:00:00Z
**Example 2:** 2022-10-23 | | `status` | [shared.PushOperationStatus](../../models/shared/pushoperationstatus.md) | :heavy_check_mark: | The current status of the push operation. | | | `status_code` | *int* | :heavy_check_mark: | Push status code. | | -| `changes` | List[[shared.PushOperationChange](../../models/shared/pushoperationchange.md)] | :heavy_minus_sign: | Contains a single entry that communicates which record has changed and the manner in which it changed. | | -| `completed_on_utc` | *Optional[str]* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23 00:00:00 +0000 UTC | -| `data` | [OptionalNullable[shared.AccountingCustomer]](../../models/shared/accountingcustomer.md) | :heavy_minus_sign: | N/A | | -| `data_type` | [Optional[shared.DataType]](../../models/shared/datatype.md) | :heavy_minus_sign: | Available data types | invoices | -| `error_message` | *OptionalNullable[str]* | :heavy_minus_sign: | A message about the error. | | | `timeout_in_minutes` | *OptionalNullable[int]* | :heavy_minus_sign: | Number of minutes the push operation must complete within before it times out. | | | ~~`timeout_in_seconds`~~ | *OptionalNullable[int]* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

Number of seconds the push operation must complete within before it times out. | | | `validation` | [Optional[shared.Validation]](../../models/shared/validation.md) | :heavy_minus_sign: | A human-readable object describing validation decisions Codat has made when pushing data into the platform. If a push has failed because of validation errors, they will be detailed here. | | \ No newline at end of file diff --git a/sync-for-expenses/docs/models/shared/createsupplierresponse.md b/sync-for-expenses/docs/models/shared/createsupplierresponse.md index 0345ee33f..14914734b 100644 --- a/sync-for-expenses/docs/models/shared/createsupplierresponse.md +++ b/sync-for-expenses/docs/models/shared/createsupplierresponse.md @@ -5,17 +5,17 @@ | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `changes` | List[[shared.PushOperationChange](../../models/shared/pushoperationchange.md)] | :heavy_minus_sign: | Contains a single entry that communicates which record has changed and the manner in which it changed. | | | `company_id` | *str* | :heavy_check_mark: | Unique identifier for your SMB in Codat. | 8a210b68-6988-11ed-a1eb-0242ac120002 | +| `completed_on_utc` | *Optional[str]* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | **Example 1:** 2022-10-23T00:00:00Z
**Example 2:** 2022-10-23 | +| `data` | [OptionalNullable[shared.AccountingSupplier]](../../models/shared/accountingsupplier.md) | :heavy_minus_sign: | N/A | {
"id": "C520FFD4-F6F6-4FC2-A6D2-5D7088B2B14F",
"supplierName": "Kelly's Industrial Supplies",
"contactName": "Kelly's Industrial Supplies",
"emailAddress": "sales@kellysupplies.com",
"phone": "07999 999999",
"addresses": [
{
"type": "Billing",
"line1": "Unit 51",
"line2": "Bakersfield Industrial Estate",
"city": "Bakersfield",
"region": "California",
"country": "USA",
"postalcode": "93308"
}
],
"registrationNumber": "string",
"taxNumber": "string",
"status": "Unknown",
"defaultCurrency": "string",
"metadata": {
"isDeleted": true
},
"supplementalData": {
"content": {
"property1": {
"property1": null,
"property2": null
},
"property2": {
"property1": null,
"property2": null
}
}
},
"modifiedDate": "2022-10-23T00:00:00Z",
"sourceModifiedDate": "2022-10-23T00:00:00Z"
} | | `data_connection_key` | *str* | :heavy_check_mark: | Unique identifier for a company's data connection. | 2e9d2c44-f675-40ba-8049-353bfcb5e171 | +| `data_type` | [Optional[shared.DataType]](../../models/shared/datatype.md) | :heavy_minus_sign: | Available data types | invoices | +| `error_message` | *OptionalNullable[str]* | :heavy_minus_sign: | A message about the error. | | | `push_operation_key` | *str* | :heavy_check_mark: | A unique identifier generated by Codat to represent this single push operation. This identifier can be used to track the status of the push, and should be persisted. | | -| `requested_on_utc` | *str* | :heavy_check_mark: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23 00:00:00 +0000 UTC | +| `requested_on_utc` | *str* | :heavy_check_mark: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | **Example 1:** 2022-10-23T00:00:00Z
**Example 2:** 2022-10-23 | | `status` | [shared.PushOperationStatus](../../models/shared/pushoperationstatus.md) | :heavy_check_mark: | The current status of the push operation. | | | `status_code` | *int* | :heavy_check_mark: | Push status code. | | -| `changes` | List[[shared.PushOperationChange](../../models/shared/pushoperationchange.md)] | :heavy_minus_sign: | Contains a single entry that communicates which record has changed and the manner in which it changed. | | -| `completed_on_utc` | *Optional[str]* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23 00:00:00 +0000 UTC | -| `data` | [OptionalNullable[shared.AccountingSupplier]](../../models/shared/accountingsupplier.md) | :heavy_minus_sign: | N/A | {
"id": "C520FFD4-F6F6-4FC2-A6D2-5D7088B2B14F",
"supplierName": "Kelly's Industrial Supplies",
"contactName": "Kelly's Industrial Supplies",
"emailAddress": "sales@kellysupplies.com",
"phone": "07999 999999",
"addresses": [
{
"type": "Billing",
"line1": "Unit 51",
"line2": "Bakersfield Industrial Estate",
"city": "Bakersfield",
"region": "California",
"country": "USA",
"postalcode": "93308"
}
],
"registrationNumber": "string",
"taxNumber": "string",
"status": "Unknown",
"defaultCurrency": "string",
"metadata": {
"isDeleted": true
},
"supplementalData": {
"content": {
"property1": {
"property1": null,
"property2": null
},
"property2": {
"property1": null,
"property2": null
}
}
},
"modifiedDate": "2022-10-23T00:00:00Z",
"sourceModifiedDate": "2022-10-23T00:00:00Z"
} | -| `data_type` | [Optional[shared.DataType]](../../models/shared/datatype.md) | :heavy_minus_sign: | Available data types | invoices | -| `error_message` | *OptionalNullable[str]* | :heavy_minus_sign: | A message about the error. | | | `timeout_in_minutes` | *OptionalNullable[int]* | :heavy_minus_sign: | Number of minutes the push operation must complete within before it times out. | | | ~~`timeout_in_seconds`~~ | *OptionalNullable[int]* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

Number of seconds the push operation must complete within before it times out. | | | `validation` | [Optional[shared.Validation]](../../models/shared/validation.md) | :heavy_minus_sign: | A human-readable object describing validation decisions Codat has made when pushing data into the platform. If a push has failed because of validation errors, they will be detailed here. | | \ No newline at end of file diff --git a/sync-for-expenses/docs/models/shared/customer.md b/sync-for-expenses/docs/models/shared/customer.md index 2e6bc2e66..c82c02896 100644 --- a/sync-for-expenses/docs/models/shared/customer.md +++ b/sync-for-expenses/docs/models/shared/customer.md @@ -12,18 +12,18 @@ Customers' data links to accounts receivable [invoices](https://docs.codat.io/sy | Field | Type | Required | Description | Example | | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `status` | [shared.CustomerStatus](../../models/shared/customerstatus.md) | :heavy_check_mark: | Status of customer. | | | `addresses` | List[[shared.Items](../../models/shared/items.md)] | :heavy_minus_sign: | An array of Addresses. | | | `contact_name` | *OptionalNullable[str]* | :heavy_minus_sign: | Name of the main contact for the identified customer. | | | `contacts` | List[[shared.Contact](../../models/shared/contact.md)] | :heavy_minus_sign: | An array of Contacts. | | | `customer_name` | *OptionalNullable[str]* | :heavy_minus_sign: | Name of the customer as recorded in the accounting system, typically the company name. | | -| `default_currency` | *Optional[str]* | :heavy_minus_sign: | The currency data type in Codat is the [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code, e.g. _GBP_.

## Unknown currencies

In line with the ISO 4217 specification, the code _XXX_ is used when the data source does not return a currency for a transaction.

There are only a very small number of edge cases where this currency code is returned by the Codat system. | GBP | +| `default_currency` | *Optional[str]* | :heavy_minus_sign: | The currency data type in Codat is the [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code, e.g. _GBP_.

## Unknown currencies

In line with the ISO 4217 specification, the code _XXX_ is used when the data source does not return a currency for a transaction.

There are only a very small number of edge cases where this currency code is returned by the Codat system. | **Example 1:** GBP
**Example 2:** USD
**Example 3:** EUR | | `email_address` | *OptionalNullable[str]* | :heavy_minus_sign: | Email address the customer can be contacted by. | | | `id` | *Optional[str]* | :heavy_minus_sign: | Identifier for the customer, unique to the company in the accounting software. | | | `metadata` | [Optional[shared.Metadata]](../../models/shared/metadata.md) | :heavy_minus_sign: | N/A | | -| `modified_date` | *Optional[str]* | :heavy_minus_sign: | N/A | 2022-10-23 00:00:00 +0000 UTC | +| `modified_date` | *Optional[str]* | :heavy_minus_sign: | N/A | **Example 1:** 2022-10-23T00:00:00Z
**Example 2:** 2022-10-23 | | `phone` | *OptionalNullable[str]* | :heavy_minus_sign: | Phone number the customer can be contacted by. | | | `registration_number` | *OptionalNullable[str]* | :heavy_minus_sign: | Company number. In the UK, this is typically the Companies House company registration number. | | -| `source_modified_date` | *Optional[str]* | :heavy_minus_sign: | N/A | 2022-10-23 00:00:00 +0000 UTC | +| `source_modified_date` | *Optional[str]* | :heavy_minus_sign: | N/A | **Example 1:** 2022-10-23T00:00:00Z
**Example 2:** 2022-10-23 | +| `status` | [shared.CustomerStatus](../../models/shared/customerstatus.md) | :heavy_check_mark: | Status of customer. | | | `supplemental_data` | [Optional[shared.SupplementalData]](../../models/shared/supplementaldata.md) | :heavy_minus_sign: | Supplemental data is additional data you can include in our standard data types.

It is referenced as a configured dynamic key value pair that is unique to the accounting software. [Learn more](https://docs.codat.io/using-the-api/supplemental-data/overview) about supplemental data. | | | `tax_number` | *OptionalNullable[str]* | :heavy_minus_sign: | Company tax number. | | \ No newline at end of file diff --git a/sync-for-expenses/docs/models/shared/customers.md b/sync-for-expenses/docs/models/shared/customers.md index 73c695b56..5ebaa24c1 100644 --- a/sync-for-expenses/docs/models/shared/customers.md +++ b/sync-for-expenses/docs/models/shared/customers.md @@ -8,5 +8,5 @@ | `links` | [shared.Links](../../models/shared/links.md) | :heavy_check_mark: | N/A | {
"self": {
"href": "/companies"
},
"current": {
"href": "/companies?page=1\u0026pageSize=10"
}
} | | `page_number` | *int* | :heavy_check_mark: | Current page number. | | | `page_size` | *int* | :heavy_check_mark: | Number of items to return in results array. | | -| `total_results` | *int* | :heavy_check_mark: | Total number of items. | | -| `results` | List[[shared.Customer](../../models/shared/customer.md)] | :heavy_minus_sign: | N/A | | \ No newline at end of file +| `results` | List[[Nullable[shared.Customer]](../../models/shared/customer.md)] | :heavy_minus_sign: | N/A | | +| `total_results` | *int* | :heavy_check_mark: | Total number of items. | | \ No newline at end of file diff --git a/sync-for-expenses/docs/models/shared/customerstatus.md b/sync-for-expenses/docs/models/shared/customerstatus.md index 0c72447c4..a4cdc76a6 100644 --- a/sync-for-expenses/docs/models/shared/customerstatus.md +++ b/sync-for-expenses/docs/models/shared/customerstatus.md @@ -2,6 +2,14 @@ Status of customer. +## Example Usage + +```python +from codat_sync_for_expenses.models.shared import CustomerStatus + +value = CustomerStatus.UNKNOWN +``` + ## Values diff --git a/sync-for-expenses/docs/models/shared/dataconnectionerror.md b/sync-for-expenses/docs/models/shared/dataconnectionerror.md index 413231fec..33b523477 100644 --- a/sync-for-expenses/docs/models/shared/dataconnectionerror.md +++ b/sync-for-expenses/docs/models/shared/dataconnectionerror.md @@ -6,8 +6,8 @@ | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `error_message` | *Optional[str]* | :heavy_minus_sign: | A message about a error returned by Codat. | | -| `errored_on_utc` | *Optional[str]* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23 00:00:00 +0000 UTC | -| `resolved_on_utc` | *Optional[str]* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23 00:00:00 +0000 UTC | +| `errored_on_utc` | *Optional[str]* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | **Example 1:** 2022-10-23T00:00:00Z
**Example 2:** 2022-10-23 | +| `resolved_on_utc` | *Optional[str]* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | **Example 1:** 2022-10-23T00:00:00Z
**Example 2:** 2022-10-23 | | `status` | [OptionalNullable[shared.ErrorStatus]](../../models/shared/errorstatus.md) | :heavy_minus_sign: | The current status of a transient error. Null statuses indicate that the error is not transient. | | | `status_code` | *Optional[str]* | :heavy_minus_sign: | The HTTP status code returned by the source platform when the error occurred. | | | `status_text` | *Optional[str]* | :heavy_minus_sign: | A non-numeric status code/text returned by the source platform when the error occurred. | | \ No newline at end of file diff --git a/sync-for-expenses/docs/models/shared/dataconnectionstatus.md b/sync-for-expenses/docs/models/shared/dataconnectionstatus.md index 4e79f5d5a..813579bf0 100644 --- a/sync-for-expenses/docs/models/shared/dataconnectionstatus.md +++ b/sync-for-expenses/docs/models/shared/dataconnectionstatus.md @@ -2,6 +2,14 @@ The current authorization status of the data connection. +## Example Usage + +```python +from codat_sync_for_expenses.models.shared import DataConnectionStatus + +value = DataConnectionStatus.PENDING_AUTH +``` + ## Values diff --git a/sync-for-expenses/docs/models/shared/datasetstatus.md b/sync-for-expenses/docs/models/shared/datasetstatus.md index 42a224341..40804df7e 100644 --- a/sync-for-expenses/docs/models/shared/datasetstatus.md +++ b/sync-for-expenses/docs/models/shared/datasetstatus.md @@ -2,6 +2,14 @@ The current status of the dataset. +## Example Usage + +```python +from codat_sync_for_expenses.models.shared import DatasetStatus + +value = DatasetStatus.INITIAL +``` + ## Values diff --git a/sync-for-expenses/docs/models/shared/datastatus.md b/sync-for-expenses/docs/models/shared/datastatus.md index 07be889e4..c89b47244 100644 --- a/sync-for-expenses/docs/models/shared/datastatus.md +++ b/sync-for-expenses/docs/models/shared/datastatus.md @@ -9,6 +9,6 @@ Describes the state of data in the Codat cache for a company and data type | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `current_status` | [shared.Status](../../models/shared/status.md) | :heavy_check_mark: | The current status of the dataset. | | | `data_type` | [shared.DataTypes](../../models/shared/datatypes.md) | :heavy_check_mark: | Available data types | invoices | -| `last_successful_sync` | *str* | :heavy_check_mark: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23 00:00:00 +0000 UTC | +| `last_successful_sync` | *Optional[str]* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | **Example 1:** 2022-10-23T00:00:00Z
**Example 2:** 2022-10-23 | | `latest_successful_sync_id` | *Optional[str]* | :heavy_minus_sign: | Unique identifier for the most recent successful sync of data type. | 8220fc90-55b6-47bc-9417-48ac6ea93101 | | `latest_sync_id` | *Optional[str]* | :heavy_minus_sign: | Unique identifier for most recent sync of data type. | ad474a37-2003-478e-baee-9af9f1ec2fe3 | \ No newline at end of file diff --git a/sync-for-expenses/docs/models/shared/datatype.md b/sync-for-expenses/docs/models/shared/datatype.md index 593192d4b..2f337d67b 100644 --- a/sync-for-expenses/docs/models/shared/datatype.md +++ b/sync-for-expenses/docs/models/shared/datatype.md @@ -2,6 +2,14 @@ Available data types +## Example Usage + +```python +from codat_sync_for_expenses.models.shared import DataType + +value = DataType.ACCOUNT_TRANSACTIONS +``` + ## Values diff --git a/sync-for-expenses/docs/models/shared/datatypes.md b/sync-for-expenses/docs/models/shared/datatypes.md index a102001d1..5d7b8f590 100644 --- a/sync-for-expenses/docs/models/shared/datatypes.md +++ b/sync-for-expenses/docs/models/shared/datatypes.md @@ -2,6 +2,14 @@ Available data types +## Example Usage + +```python +from codat_sync_for_expenses.models.shared import DataTypes + +value = DataTypes.ACCOUNT_TRANSACTIONS +``` + ## Values diff --git a/sync-for-expenses/docs/models/shared/errorstatus.md b/sync-for-expenses/docs/models/shared/errorstatus.md index 02c0ec3d9..1c9e3e20e 100644 --- a/sync-for-expenses/docs/models/shared/errorstatus.md +++ b/sync-for-expenses/docs/models/shared/errorstatus.md @@ -2,6 +2,14 @@ The current status of a transient error. Null statuses indicate that the error is not transient. +## Example Usage + +```python +from codat_sync_for_expenses.models.shared import ErrorStatus + +value = ErrorStatus.ACTIVE +``` + ## Values diff --git a/sync-for-expenses/docs/models/shared/expensecontactref.md b/sync-for-expenses/docs/models/shared/expensecontactref.md index d1609e63c..7889b747d 100644 --- a/sync-for-expenses/docs/models/shared/expensecontactref.md +++ b/sync-for-expenses/docs/models/shared/expensecontactref.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | -| `id` | *str* | :heavy_check_mark: | Identifier of supplier or customer. | 40e3e57c-2322-4898-966c-ca41adfd23fd | -| `type` | [Optional[shared.Type]](../../models/shared/type.md) | :heavy_minus_sign: | The type of contact. | Supplier | \ No newline at end of file +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | +| `id` | *str* | :heavy_check_mark: | Identifier of supplier or customer. | 40e3e57c-2322-4898-966c-ca41adfd23fd | +| `type` | [Optional[shared.ExpenseContactRefType]](../../models/shared/expensecontactreftype.md) | :heavy_minus_sign: | The type of contact. | Supplier | \ No newline at end of file diff --git a/sync-for-expenses/docs/models/shared/expensecontactreftype.md b/sync-for-expenses/docs/models/shared/expensecontactreftype.md new file mode 100644 index 000000000..8542b2e03 --- /dev/null +++ b/sync-for-expenses/docs/models/shared/expensecontactreftype.md @@ -0,0 +1,18 @@ +# ExpenseContactRefType + +The type of contact. + +## Example Usage + +```python +from codat_sync_for_expenses.models.shared import ExpenseContactRefType + +value = ExpenseContactRefType.SUPPLIER +``` + + +## Values + +| Name | Value | +| ---------- | ---------- | +| `SUPPLIER` | Supplier | \ No newline at end of file diff --git a/sync-for-expenses/docs/models/shared/expensessyncwebhook.md b/sync-for-expenses/docs/models/shared/expensessyncwebhook.md index 001e360e5..7b8e3b103 100644 --- a/sync-for-expenses/docs/models/shared/expensessyncwebhook.md +++ b/sync-for-expenses/docs/models/shared/expensessyncwebhook.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `event_type` | *Optional[str]* | :heavy_minus_sign: | The type of event. | expenses.sync.successful | -| `generated_date` | *Optional[str]* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23 00:00:00 +0000 UTC | +| `event_type` | *Optional[str]* | :heavy_minus_sign: | The type of event. | **Example 1:** expenses.sync.successful
**Example 2:** expenses.sync.unsuccessful | +| `generated_date` | *Optional[str]* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | **Example 1:** 2022-10-23T00:00:00Z
**Example 2:** 2022-10-23 | | `id` | *Optional[str]* | :heavy_minus_sign: | Unique identifier of the event. | ba29118f-5406-4e59-b05c-ba307ca38d01 | | `payload` | [Optional[shared.ExpensesSyncWebhookPayload]](../../models/shared/expensessyncwebhookpayload.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/sync-for-expenses/docs/models/shared/expensetransaction.md b/sync-for-expenses/docs/models/shared/expensetransaction.md index 92fcb1494..9f6ab23de 100644 --- a/sync-for-expenses/docs/models/shared/expensetransaction.md +++ b/sync-for-expenses/docs/models/shared/expensetransaction.md @@ -5,15 +5,15 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `currency` | *str* | :heavy_check_mark: | Currency the transaction was recorded in. | GBP | -| `id` | *str* | :heavy_check_mark: | Your unique identifier for the transaction. | 4d7c6929-7770-412b-91bb-44d3bc71d111 | -| `issue_date` | *str* | :heavy_check_mark: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23 00:00:00 +0000 UTC | -| `type` | [shared.ExpenseTransactionType](../../models/shared/expensetransactiontype.md) | :heavy_check_mark: | The type of transaction. | Payment | | `bank_account_ref` | [Optional[shared.BankAccountReference]](../../models/shared/bankaccountreference.md) | :heavy_minus_sign: | N/A | | | `contact_ref` | [Optional[shared.ExpenseContactRef]](../../models/shared/expensecontactref.md) | :heavy_minus_sign: | N/A | | +| `currency` | *str* | :heavy_check_mark: | Currency the transaction was recorded in. | GBP | | `currency_rate` | *OptionalNullable[Decimal]* | :heavy_minus_sign: | Rate to convert the total amount of the payment into the base currency for the company at the time of the payment.

Currency rates in Codat are implemented as the multiple of foreign currency units to each base currency unit.

It is not possible to perform the currency conversion with two or more non-base currencies participating in the transaction. For example, if a company's base currency is USD, and it has a bill issued in EUR, then the bill payment must happen in USD or EUR.

Where the currency rate is provided by the underlying accounting software, it will be available from Codat with the same precision (up to a maximum of 9 decimal places).

For accounting software which do not provide an explicit currency rate, it is calculated as `baseCurrency / foreignCurrency` and will be returned to 9 decimal places.

## Examples with base currency of GBP

\| Foreign Currency \| Foreign Amount \| Currency Rate \| Base Currency Amount (GBP) \|
\| :--------------- \| :------------- \| :------------ \| :------------------------- \|
\| **USD** \| $20 \| 0.781 \| £15.62 \|
\| **EUR** \| €20 \| 0.885 \| £17.70 \|
\| **RUB** \| ₽20 \| 0.011 \| £0.22 \|

## Examples with base currency of USD

\| Foreign Currency \| Foreign Amount \| Currency Rate \| Base Currency Amount (USD) \|
\| :--------------- \| :------------- \| :------------ \| :------------------------- \|
\| **GBP** \| £20 \| 1.277 \| $25.54 \|
\| **EUR** \| €20 \| 1.134 \| $22.68 \|
\| **RUB** \| ₽20 \| 0.015 \| $0.30 \|


### Integration-specific details

\| Integration \| Scenario \| System behavior \|
\|-------------------\|-------------------------------------------------\|----------------------------------------------------------------------------------------------------------------------------------------------------------------------\|
\| QuickBooks Online \| Transaction currency differs from base currency \| If currency rate value is left `null`, a rate of 1 will be used by QBO by default. To override this, specify a currencyRate in the request body. \| | | +| `id` | *str* | :heavy_check_mark: | Your unique identifier for the transaction. | 4d7c6929-7770-412b-91bb-44d3bc71d111 | +| `issue_date` | *str* | :heavy_check_mark: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | **Example 1:** 2022-10-23T00:00:00Z
**Example 2:** 2022-10-23 | | `lines` | List[[shared.ExpenseTransactionLine](../../models/shared/expensetransactionline.md)] | :heavy_minus_sign: | Array of transaction lines. | | | `merchant_name` | *Optional[str]* | :heavy_minus_sign: | Name of the merchant where the purchase took place | Amazon UK | | `notes` | *Optional[str]* | :heavy_minus_sign: | Any private, company notes about the transaction. | APPLE.COM/BILL - 09001077498 - Card Ending: 4590 | | `post_as_draft` | *OptionalNullable[bool]* | :heavy_minus_sign: | This optional property, when set to true, posts the transaction to a drafted state. Note that postAsDraft is only supported in Microsoft Dynamics 365 Business Central. | | -| `reference` | *OptionalNullable[str]* | :heavy_minus_sign: | User-friendly reference for the expense transaction. | | \ No newline at end of file +| `reference` | *OptionalNullable[str]* | :heavy_minus_sign: | User-friendly reference for the expense transaction. | | +| `type` | [shared.ExpenseTransactionType](../../models/shared/expensetransactiontype.md) | :heavy_check_mark: | The type of transaction. | Payment | \ No newline at end of file diff --git a/sync-for-expenses/docs/models/shared/expensetransactionline.md b/sync-for-expenses/docs/models/shared/expensetransactionline.md index 0597510df..90501ae82 100644 --- a/sync-for-expenses/docs/models/shared/expensetransactionline.md +++ b/sync-for-expenses/docs/models/shared/expensetransactionline.md @@ -5,10 +5,10 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `net_amount` | *Decimal* | :heavy_check_mark: | Amount of the line, exclusive of tax. | 100 | | `account_ref` | [Optional[shared.RecordRef]](../../models/shared/recordref.md) | :heavy_minus_sign: | N/A | | | `invoice_to` | [OptionalNullable[shared.InvoiceTo]](../../models/shared/invoiceto.md) | :heavy_minus_sign: | Unique identifier for the customer billed for the transaction. The `invoiceTo` object is currently supported only for QuickBooks Online and QuickBooks Desktop. | | | `item_ref` | [OptionalNullable[shared.ItemRef]](../../models/shared/itemref.md) | :heavy_minus_sign: | N/A | | +| `net_amount` | *Decimal* | :heavy_check_mark: | Amount of the line, exclusive of tax. | 100 | | `tax_amount` | *Optional[Decimal]* | :heavy_minus_sign: | Amount of tax for the line. | 20 | | `tax_rate_ref` | [Optional[shared.RecordRef]](../../models/shared/recordref.md) | :heavy_minus_sign: | N/A | | | `tracking_refs` | List[[shared.TrackingRef](../../models/shared/trackingref.md)] | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/sync-for-expenses/docs/models/shared/expensetransactiontype.md b/sync-for-expenses/docs/models/shared/expensetransactiontype.md index 8fd4ae17c..186aa20ae 100644 --- a/sync-for-expenses/docs/models/shared/expensetransactiontype.md +++ b/sync-for-expenses/docs/models/shared/expensetransactiontype.md @@ -2,6 +2,14 @@ The type of transaction. +## Example Usage + +```python +from codat_sync_for_expenses.models.shared import ExpenseTransactionType + +value = ExpenseTransactionType.PAYMENT +``` + ## Values diff --git a/sync-for-expenses/docs/models/shared/integrationtype.md b/sync-for-expenses/docs/models/shared/integrationtype.md index 44c0c2d48..8d9afc862 100644 --- a/sync-for-expenses/docs/models/shared/integrationtype.md +++ b/sync-for-expenses/docs/models/shared/integrationtype.md @@ -2,6 +2,14 @@ Type of transaction that has been processed e.g. Expense or Bank Feed. +## Example Usage + +```python +from codat_sync_for_expenses.models.shared import IntegrationType + +value = IntegrationType.EXPENSES +``` + ## Values diff --git a/sync-for-expenses/docs/models/shared/invoicetotype.md b/sync-for-expenses/docs/models/shared/invoicetotype.md index d236b6933..8977ebc04 100644 --- a/sync-for-expenses/docs/models/shared/invoicetotype.md +++ b/sync-for-expenses/docs/models/shared/invoicetotype.md @@ -2,6 +2,14 @@ The type of contact. +## Example Usage + +```python +from codat_sync_for_expenses.models.shared import InvoiceToType + +value = InvoiceToType.CUSTOMER +``` + ## Values diff --git a/sync-for-expenses/docs/models/shared/items.md b/sync-for-expenses/docs/models/shared/items.md index 38d3365ac..740e1b1b9 100644 --- a/sync-for-expenses/docs/models/shared/items.md +++ b/sync-for-expenses/docs/models/shared/items.md @@ -5,10 +5,10 @@ | Field | Type | Required | Description | | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | -| `type` | [shared.AccountingAddressType](../../models/shared/accountingaddresstype.md) | :heavy_check_mark: | The type of the address | | `city` | *OptionalNullable[str]* | :heavy_minus_sign: | City of the customer address. | | `country` | *OptionalNullable[str]* | :heavy_minus_sign: | Country of the customer address. | | `line1` | *OptionalNullable[str]* | :heavy_minus_sign: | Line 1 of the customer address. | | `line2` | *OptionalNullable[str]* | :heavy_minus_sign: | Line 2 of the customer address. | | `postal_code` | *OptionalNullable[str]* | :heavy_minus_sign: | Postal code or zip code. | -| `region` | *OptionalNullable[str]* | :heavy_minus_sign: | Region of the customer address. | \ No newline at end of file +| `region` | *OptionalNullable[str]* | :heavy_minus_sign: | Region of the customer address. | +| `type` | [shared.AccountingAddressType](../../models/shared/accountingaddresstype.md) | :heavy_check_mark: | The type of the address | \ No newline at end of file diff --git a/sync-for-expenses/docs/models/shared/links.md b/sync-for-expenses/docs/models/shared/links.md index bfd552f9a..5f80d2652 100644 --- a/sync-for-expenses/docs/models/shared/links.md +++ b/sync-for-expenses/docs/models/shared/links.md @@ -6,6 +6,6 @@ | Field | Type | Required | Description | | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | | `current` | [shared.HalRef](../../models/shared/halref.md) | :heavy_check_mark: | N/A | -| `self_` | [shared.HalRef](../../models/shared/halref.md) | :heavy_check_mark: | N/A | | `next` | [Optional[shared.HalRef]](../../models/shared/halref.md) | :heavy_minus_sign: | N/A | -| `previous` | [Optional[shared.HalRef]](../../models/shared/halref.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| `previous` | [Optional[shared.HalRef]](../../models/shared/halref.md) | :heavy_minus_sign: | N/A | +| `self_` | [shared.HalRef](../../models/shared/halref.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/sync-for-expenses/docs/models/shared/phone.md b/sync-for-expenses/docs/models/shared/phone.md index bc45fef3d..ea0d84c06 100644 --- a/sync-for-expenses/docs/models/shared/phone.md +++ b/sync-for-expenses/docs/models/shared/phone.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | -| `type` | [shared.PhoneNumberType](../../models/shared/phonenumbertype.md) | :heavy_check_mark: | The type of phone number | | -| `number` | *OptionalNullable[str]* | :heavy_minus_sign: | A phone number. | +44 25691 154789 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | +| `number` | *OptionalNullable[str]* | :heavy_minus_sign: | A phone number. | **Example 1:** +44 25691 154789
**Example 2:** (877) 492-8687
**Example 3:** 01224 658 999 | +| `type` | [shared.CompanyInformationType](../../models/shared/companyinformationtype.md) | :heavy_check_mark: | The type of phone number | | \ No newline at end of file diff --git a/sync-for-expenses/docs/models/shared/phonenumberitems.md b/sync-for-expenses/docs/models/shared/phonenumberitems.md index 011f3c606..9fa79fec0 100644 --- a/sync-for-expenses/docs/models/shared/phonenumberitems.md +++ b/sync-for-expenses/docs/models/shared/phonenumberitems.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | -| `type` | [shared.PhoneNumberType](../../models/shared/phonenumbertype.md) | :heavy_check_mark: | The type of phone number | | -| `number` | *OptionalNullable[str]* | :heavy_minus_sign: | A phone number. | +44 25691 154789 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | +| `number` | *OptionalNullable[str]* | :heavy_minus_sign: | A phone number. | **Example 1:** +44 25691 154789
**Example 2:** (877) 492-8687
**Example 3:** 01224 658 999 | +| `type` | [shared.Type](../../models/shared/type.md) | :heavy_check_mark: | The type of phone number | | \ No newline at end of file diff --git a/sync-for-expenses/docs/models/shared/phonenumbertype.md b/sync-for-expenses/docs/models/shared/phonenumbertype.md deleted file mode 100644 index 4702d4b78..000000000 --- a/sync-for-expenses/docs/models/shared/phonenumbertype.md +++ /dev/null @@ -1,14 +0,0 @@ -# PhoneNumberType - -The type of phone number - - -## Values - -| Name | Value | -| ---------- | ---------- | -| `PRIMARY` | Primary | -| `LANDLINE` | Landline | -| `MOBILE` | Mobile | -| `FAX` | Fax | -| `UNKNOWN` | Unknown | \ No newline at end of file diff --git a/sync-for-expenses/docs/models/shared/pulloperation.md b/sync-for-expenses/docs/models/shared/pulloperation.md index 5cfeb2fb3..bea7bb1d5 100644 --- a/sync-for-expenses/docs/models/shared/pulloperation.md +++ b/sync-for-expenses/docs/models/shared/pulloperation.md @@ -9,14 +9,14 @@ Information about a queued, in progress or completed pull operation. | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `company_id` | *str* | :heavy_check_mark: | Unique identifier of the company associated to this pull operation. | 22ece347-e5f6-4896-95e0-35a4c7f17023 | +| `completed` | *Optional[str]* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | **Example 1:** 2022-10-23T00:00:00Z
**Example 2:** 2022-10-23 | | `connection_id` | *str* | :heavy_check_mark: | Unique identifier of the connection associated to this pull operation. | 50830828-7d39-4367-b0eb-5ddb2de5faa5 | | `data_type` | *str* | :heavy_check_mark: | The data type you are requesting in a pull operation. | | +| `error_message` | *OptionalNullable[str]* | :heavy_minus_sign: | A message about a transient or persistent error returned by Codat or the source platform. | | | `id` | *str* | :heavy_check_mark: | Unique identifier of the pull operation. | 943accd0-4247-42d8-865b-363c8629e1da | | `is_completed` | *bool* | :heavy_check_mark: | `True` if the pull operation is completed successfully. The `isCompleted` property is not queryable. To filter failed pull operations, query by `status!=Complete&&status!=NotSupported` instead. | | | `is_errored` | *bool* | :heavy_check_mark: | `True` if the pull operation entered an error state. | | | `progress` | *int* | :heavy_check_mark: | An integer signifying the progress of the pull operation. | | -| `requested` | *str* | :heavy_check_mark: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23 00:00:00 +0000 UTC | +| `requested` | *str* | :heavy_check_mark: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | **Example 1:** 2022-10-23T00:00:00Z
**Example 2:** 2022-10-23 | | `status` | [shared.DatasetStatus](../../models/shared/datasetstatus.md) | :heavy_check_mark: | The current status of the dataset. | | -| `completed` | *Optional[str]* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23 00:00:00 +0000 UTC | -| `error_message` | *OptionalNullable[str]* | :heavy_minus_sign: | A message about a transient or persistent error returned by Codat or the source platform. | | | `status_description` | *OptionalNullable[str]* | :heavy_minus_sign: | Additional information about the dataset status. | Paused until 2022-10-23T00:00:00.000Z | \ No newline at end of file diff --git a/sync-for-expenses/docs/models/shared/pulloperations.md b/sync-for-expenses/docs/models/shared/pulloperations.md index 69df81c54..a5761e0aa 100644 --- a/sync-for-expenses/docs/models/shared/pulloperations.md +++ b/sync-for-expenses/docs/models/shared/pulloperations.md @@ -8,5 +8,5 @@ | `links` | [shared.Links](../../models/shared/links.md) | :heavy_check_mark: | N/A | {
"self": {
"href": "/companies"
},
"current": {
"href": "/companies?page=1\u0026pageSize=10"
}
} | | `page_number` | *int* | :heavy_check_mark: | Current page number. | | | `page_size` | *int* | :heavy_check_mark: | Number of items to return in results array. | | -| `total_results` | *int* | :heavy_check_mark: | Total number of items. | | -| `results` | List[[shared.PullOperation](../../models/shared/pulloperation.md)] | :heavy_minus_sign: | N/A | | \ No newline at end of file +| `results` | List[[shared.PullOperation](../../models/shared/pulloperation.md)] | :heavy_minus_sign: | N/A | | +| `total_results` | *int* | :heavy_check_mark: | Total number of items. | | \ No newline at end of file diff --git a/sync-for-expenses/docs/models/shared/pushchangetype.md b/sync-for-expenses/docs/models/shared/pushchangetype.md index 33a957e79..9eb2c36e8 100644 --- a/sync-for-expenses/docs/models/shared/pushchangetype.md +++ b/sync-for-expenses/docs/models/shared/pushchangetype.md @@ -2,6 +2,14 @@ Type of change being applied to record in third party platform. +## Example Usage + +```python +from codat_sync_for_expenses.models.shared import PushChangeType + +value = PushChangeType.UNKNOWN +``` + ## Values diff --git a/sync-for-expenses/docs/models/shared/pushoperation.md b/sync-for-expenses/docs/models/shared/pushoperation.md index 13591843b..d01e17840 100644 --- a/sync-for-expenses/docs/models/shared/pushoperation.md +++ b/sync-for-expenses/docs/models/shared/pushoperation.md @@ -5,16 +5,16 @@ | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `changes` | List[[shared.PushOperationChange](../../models/shared/pushoperationchange.md)] | :heavy_minus_sign: | Contains a single entry that communicates which record has changed and the manner in which it changed. | | | `company_id` | *str* | :heavy_check_mark: | Unique identifier for your SMB in Codat. | 8a210b68-6988-11ed-a1eb-0242ac120002 | +| `completed_on_utc` | *Optional[str]* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | **Example 1:** 2022-10-23T00:00:00Z
**Example 2:** 2022-10-23 | | `data_connection_key` | *str* | :heavy_check_mark: | Unique identifier for a company's data connection. | 2e9d2c44-f675-40ba-8049-353bfcb5e171 | +| `data_type` | [Optional[shared.DataType]](../../models/shared/datatype.md) | :heavy_minus_sign: | Available data types | invoices | +| `error_message` | *OptionalNullable[str]* | :heavy_minus_sign: | A message about the error. | | | `push_operation_key` | *str* | :heavy_check_mark: | A unique identifier generated by Codat to represent this single push operation. This identifier can be used to track the status of the push, and should be persisted. | | -| `requested_on_utc` | *str* | :heavy_check_mark: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23 00:00:00 +0000 UTC | +| `requested_on_utc` | *str* | :heavy_check_mark: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | **Example 1:** 2022-10-23T00:00:00Z
**Example 2:** 2022-10-23 | | `status` | [shared.PushOperationStatus](../../models/shared/pushoperationstatus.md) | :heavy_check_mark: | The current status of the push operation. | | | `status_code` | *int* | :heavy_check_mark: | Push status code. | | -| `changes` | List[[shared.PushOperationChange](../../models/shared/pushoperationchange.md)] | :heavy_minus_sign: | Contains a single entry that communicates which record has changed and the manner in which it changed. | | -| `completed_on_utc` | *Optional[str]* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23 00:00:00 +0000 UTC | -| `data_type` | [Optional[shared.DataType]](../../models/shared/datatype.md) | :heavy_minus_sign: | Available data types | invoices | -| `error_message` | *OptionalNullable[str]* | :heavy_minus_sign: | A message about the error. | | | `timeout_in_minutes` | *OptionalNullable[int]* | :heavy_minus_sign: | Number of minutes the push operation must complete within before it times out. | | | ~~`timeout_in_seconds`~~ | *OptionalNullable[int]* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

Number of seconds the push operation must complete within before it times out. | | | `validation` | [Optional[shared.Validation]](../../models/shared/validation.md) | :heavy_minus_sign: | A human-readable object describing validation decisions Codat has made when pushing data into the platform. If a push has failed because of validation errors, they will be detailed here. | | \ No newline at end of file diff --git a/sync-for-expenses/docs/models/shared/pushoperations.md b/sync-for-expenses/docs/models/shared/pushoperations.md index 91dea4734..6a06b9c2b 100644 --- a/sync-for-expenses/docs/models/shared/pushoperations.md +++ b/sync-for-expenses/docs/models/shared/pushoperations.md @@ -8,5 +8,5 @@ | `links` | [shared.Links](../../models/shared/links.md) | :heavy_check_mark: | N/A | {
"self": {
"href": "/companies"
},
"current": {
"href": "/companies?page=1\u0026pageSize=10"
}
} | | `page_number` | *int* | :heavy_check_mark: | Current page number. | | | `page_size` | *int* | :heavy_check_mark: | Number of items to return in results array. | | -| `total_results` | *int* | :heavy_check_mark: | Total number of items. | | -| `results` | List[[shared.PushOperation](../../models/shared/pushoperation.md)] | :heavy_minus_sign: | N/A | | \ No newline at end of file +| `results` | List[[shared.PushOperation](../../models/shared/pushoperation.md)] | :heavy_minus_sign: | N/A | | +| `total_results` | *int* | :heavy_check_mark: | Total number of items. | | \ No newline at end of file diff --git a/sync-for-expenses/docs/models/shared/pushoperationstatus.md b/sync-for-expenses/docs/models/shared/pushoperationstatus.md index 721aaa76b..e04e39490 100644 --- a/sync-for-expenses/docs/models/shared/pushoperationstatus.md +++ b/sync-for-expenses/docs/models/shared/pushoperationstatus.md @@ -2,6 +2,14 @@ The current status of the push operation. +## Example Usage + +```python +from codat_sync_for_expenses.models.shared import PushOperationStatus + +value = PushOperationStatus.PENDING +``` + ## Values diff --git a/sync-for-expenses/docs/models/shared/pushoption.md b/sync-for-expenses/docs/models/shared/pushoption.md index a41fbc063..e908d0b28 100644 --- a/sync-for-expenses/docs/models/shared/pushoption.md +++ b/sync-for-expenses/docs/models/shared/pushoption.md @@ -5,10 +5,10 @@ | Field | Type | Required | Description | | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | -| `display_name` | *str* | :heavy_check_mark: | The property's display name. | -| `required` | *bool* | :heavy_check_mark: | The property is required if `True`. | -| `type` | [shared.PushOptionType](../../models/shared/pushoptiontype.md) | :heavy_check_mark: | The option type. | | `description` | *Optional[str]* | :heavy_minus_sign: | A description of the property. | +| `display_name` | *str* | :heavy_check_mark: | The property's display name. | | `options` | List[[shared.PushOptionChoice](../../models/shared/pushoptionchoice.md)] | :heavy_minus_sign: | N/A | | `properties` | Dict[str, [shared.PushOptionProperty](../../models/shared/pushoptionproperty.md)] | :heavy_minus_sign: | N/A | +| `required` | *bool* | :heavy_check_mark: | The property is required if `True`. | +| `type` | [shared.PushOptionType](../../models/shared/pushoptiontype.md) | :heavy_check_mark: | The option type. | | `validation` | [Optional[shared.PushValidationInfo]](../../models/shared/pushvalidationinfo.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/sync-for-expenses/docs/models/shared/pushoptionproperty.md b/sync-for-expenses/docs/models/shared/pushoptionproperty.md index cb20b30fe..2bedd19d3 100644 --- a/sync-for-expenses/docs/models/shared/pushoptionproperty.md +++ b/sync-for-expenses/docs/models/shared/pushoptionproperty.md @@ -7,8 +7,8 @@ | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | | `description` | *str* | :heavy_check_mark: | A description of the property. | | `display_name` | *str* | :heavy_check_mark: | The property's display name. | -| `required` | *bool* | :heavy_check_mark: | The property is required if `True`. | -| `type` | [shared.PushOptionType](../../models/shared/pushoptiontype.md) | :heavy_check_mark: | The option type. | | `options` | List[[shared.PushOptionChoice](../../models/shared/pushoptionchoice.md)] | :heavy_minus_sign: | N/A | | `properties` | Dict[str, [shared.PushOptionProperty](../../models/shared/pushoptionproperty.md)] | :heavy_minus_sign: | N/A | +| `required` | *bool* | :heavy_check_mark: | The property is required if `True`. | +| `type` | [shared.PushOptionType](../../models/shared/pushoptiontype.md) | :heavy_check_mark: | The option type. | | `validation` | [Optional[shared.PushValidationInfo]](../../models/shared/pushvalidationinfo.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/sync-for-expenses/docs/models/shared/pushoptiontype.md b/sync-for-expenses/docs/models/shared/pushoptiontype.md index 2f263a07c..c5c9f39da 100644 --- a/sync-for-expenses/docs/models/shared/pushoptiontype.md +++ b/sync-for-expenses/docs/models/shared/pushoptiontype.md @@ -2,6 +2,14 @@ The option type. +## Example Usage + +```python +from codat_sync_for_expenses.models.shared import PushOptionType + +value = PushOptionType.ARRAY +``` + ## Values diff --git a/sync-for-expenses/docs/models/shared/reimbursableexpensetransaction.md b/sync-for-expenses/docs/models/shared/reimbursableexpensetransaction.md index e36e3fdb6..39f21606e 100644 --- a/sync-for-expenses/docs/models/shared/reimbursableexpensetransaction.md +++ b/sync-for-expenses/docs/models/shared/reimbursableexpensetransaction.md @@ -5,13 +5,13 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `ap_account_ref` | [OptionalNullable[shared.ApAccountRef]](../../models/shared/apaccountref.md) | :heavy_minus_sign: | N/A | | | `contact_ref` | [shared.ReimbursementContactRef](../../models/shared/reimbursementcontactref.md) | :heavy_check_mark: | N/A | | | `currency` | *str* | :heavy_check_mark: | Currency the transaction was recorded in. | GBP | -| `due_date` | *str* | :heavy_check_mark: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23 00:00:00 +0000 UTC | -| `id` | *str* | :heavy_check_mark: | Your unique identifier for the transaction. | 4d7c6929-7770-412b-91bb-44d3bc71d111 | -| `issue_date` | *str* | :heavy_check_mark: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23 00:00:00 +0000 UTC | -| `ap_account_ref` | [OptionalNullable[shared.ApAccountRef]](../../models/shared/apaccountref.md) | :heavy_minus_sign: | N/A | | | `currency_rate` | *OptionalNullable[Decimal]* | :heavy_minus_sign: | Rate to convert the total amount of the payment into the base currency for the company at the time of the payment.

Currency rates in Codat are implemented as the multiple of foreign currency units to each base currency unit.

It is not possible to perform the currency conversion with two or more non-base currencies participating in the transaction. For example, if a company's base currency is USD, and it has a bill issued in EUR, then the bill payment must happen in USD or EUR.

Where the currency rate is provided by the underlying accounting software, it will be available from Codat with the same precision (up to a maximum of 9 decimal places).

For accounting software which do not provide an explicit currency rate, it is calculated as `baseCurrency / foreignCurrency` and will be returned to 9 decimal places.

## Examples with base currency of GBP

\| Foreign Currency \| Foreign Amount \| Currency Rate \| Base Currency Amount (GBP) \|
\| :--------------- \| :------------- \| :------------ \| :------------------------- \|
\| **USD** \| $20 \| 0.781 \| £15.62 \|
\| **EUR** \| €20 \| 0.885 \| £17.70 \|
\| **RUB** \| ₽20 \| 0.011 \| £0.22 \|

## Examples with base currency of USD

\| Foreign Currency \| Foreign Amount \| Currency Rate \| Base Currency Amount (USD) \|
\| :--------------- \| :------------- \| :------------ \| :------------------------- \|
\| **GBP** \| £20 \| 1.277 \| $25.54 \|
\| **EUR** \| €20 \| 1.134 \| $22.68 \|
\| **RUB** \| ₽20 \| 0.015 \| $0.30 \|


### Integration-specific details

\| Integration \| Scenario \| System behavior \|
\|-------------------\|-------------------------------------------------\|----------------------------------------------------------------------------------------------------------------------------------------------------------------------\|
\| QuickBooks Online \| Transaction currency differs from base currency \| If currency rate value is left `null`, a rate of 1 will be used by QBO by default. To override this, specify a currencyRate in the request body. \| | | +| `due_date` | *str* | :heavy_check_mark: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | **Example 1:** 2022-10-23T00:00:00Z
**Example 2:** 2022-10-23 | +| `id` | *str* | :heavy_check_mark: | Your unique identifier for the transaction. | 4d7c6929-7770-412b-91bb-44d3bc71d111 | +| `issue_date` | *str* | :heavy_check_mark: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | **Example 1:** 2022-10-23T00:00:00Z
**Example 2:** 2022-10-23 | | `lines` | List[[shared.ReimbursableExpenseTransactionLine](../../models/shared/reimbursableexpensetransactionline.md)] | :heavy_minus_sign: | Array of transaction lines. | | | `notes` | *Optional[str]* | :heavy_minus_sign: | Any private, company notes about the transaction. | APPLE.COM/BILL - 09001077498 - Card Ending: 4590 | | `reference` | *OptionalNullable[str]* | :heavy_minus_sign: | User-friendly reference for the reimbursable expense. | | \ No newline at end of file diff --git a/sync-for-expenses/docs/models/shared/reimbursableexpensetransactionline.md b/sync-for-expenses/docs/models/shared/reimbursableexpensetransactionline.md index f2003dbf9..3b7c4f24d 100644 --- a/sync-for-expenses/docs/models/shared/reimbursableexpensetransactionline.md +++ b/sync-for-expenses/docs/models/shared/reimbursableexpensetransactionline.md @@ -5,11 +5,11 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `net_amount` | *Decimal* | :heavy_check_mark: | Amount of the line, exclusive of tax. | 100 | | `account_ref` | [Optional[shared.RecordRef]](../../models/shared/recordref.md) | :heavy_minus_sign: | N/A | | | `description` | *Optional[str]* | :heavy_minus_sign: | line description | 2-night hotel stay | | `invoice_to` | [OptionalNullable[shared.InvoiceTo]](../../models/shared/invoiceto.md) | :heavy_minus_sign: | Unique identifier for the customer billed for the transaction. The `invoiceTo` object is currently supported only for QuickBooks Online and QuickBooks Desktop. | | | `item_ref` | [OptionalNullable[shared.ItemRef]](../../models/shared/itemref.md) | :heavy_minus_sign: | N/A | | +| `net_amount` | *Decimal* | :heavy_check_mark: | Amount of the line, exclusive of tax. | 100 | | `tax_amount` | *Optional[Decimal]* | :heavy_minus_sign: | Amount of tax for the line. | 20 | | `tax_rate_ref` | [Optional[shared.RecordRef]](../../models/shared/recordref.md) | :heavy_minus_sign: | N/A | | | `tracking_refs` | List[[shared.TrackingRef](../../models/shared/trackingref.md)] | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/sync-for-expenses/docs/models/shared/schemadatatype.md b/sync-for-expenses/docs/models/shared/schemadatatype.md index a7b7e6ae3..39865d9ab 100644 --- a/sync-for-expenses/docs/models/shared/schemadatatype.md +++ b/sync-for-expenses/docs/models/shared/schemadatatype.md @@ -2,6 +2,14 @@ Available data types +## Example Usage + +```python +from codat_sync_for_expenses.models.shared import SchemaDataType + +value = SchemaDataType.ACCOUNT_TRANSACTIONS +``` + ## Values diff --git a/sync-for-expenses/docs/models/shared/sourcetype.md b/sync-for-expenses/docs/models/shared/sourcetype.md index 2daec8ef3..2aa214f61 100644 --- a/sync-for-expenses/docs/models/shared/sourcetype.md +++ b/sync-for-expenses/docs/models/shared/sourcetype.md @@ -2,6 +2,14 @@ The type of platform of the connection. +## Example Usage + +```python +from codat_sync_for_expenses.models.shared import SourceType + +value = SourceType.ACCOUNTING +``` + ## Values diff --git a/sync-for-expenses/docs/models/shared/status.md b/sync-for-expenses/docs/models/shared/status.md index 2fb340539..33ac01645 100644 --- a/sync-for-expenses/docs/models/shared/status.md +++ b/sync-for-expenses/docs/models/shared/status.md @@ -2,6 +2,14 @@ The current status of the dataset. +## Example Usage + +```python +from codat_sync_for_expenses.models.shared import Status + +value = Status.INITIAL +``` + ## Values diff --git a/sync-for-expenses/docs/models/shared/supplier.md b/sync-for-expenses/docs/models/shared/supplier.md index d78c617b9..3d1c0b2bf 100644 --- a/sync-for-expenses/docs/models/shared/supplier.md +++ b/sync-for-expenses/docs/models/shared/supplier.md @@ -9,17 +9,17 @@ From the **Suppliers** endpoints, you can retrieve a list of [all the suppliers | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `status` | [shared.SupplierStatus](../../models/shared/supplierstatus.md) | :heavy_check_mark: | Status of the supplier. | | | `addresses` | List[[shared.Items](../../models/shared/items.md)] | :heavy_minus_sign: | An array of Addresses. | | | `contact_name` | *OptionalNullable[str]* | :heavy_minus_sign: | Name of the main contact for the supplier. | | | `default_currency` | *OptionalNullable[str]* | :heavy_minus_sign: | Default currency the supplier's transactional data is recorded in. | | | `email_address` | *OptionalNullable[str]* | :heavy_minus_sign: | Email address that the supplier may be contacted on. | | | `id` | *Optional[str]* | :heavy_minus_sign: | Identifier for the supplier, unique to the company in the accounting software. | | | `metadata` | [Optional[shared.Metadata]](../../models/shared/metadata.md) | :heavy_minus_sign: | N/A | | -| `modified_date` | *Optional[str]* | :heavy_minus_sign: | N/A | 2022-10-23 00:00:00 +0000 UTC | -| `phone` | *OptionalNullable[str]* | :heavy_minus_sign: | Phone number that the supplier may be contacted on. | +44 25691 154789 | +| `modified_date` | *Optional[str]* | :heavy_minus_sign: | N/A | **Example 1:** 2022-10-23T00:00:00Z
**Example 2:** 2022-10-23 | +| `phone` | *OptionalNullable[str]* | :heavy_minus_sign: | Phone number that the supplier may be contacted on. | **Example 1:** +44 25691 154789
**Example 2:** (877) 492-8687
**Example 3:** 01224 658 999 | | `registration_number` | *OptionalNullable[str]* | :heavy_minus_sign: | Company number of the supplier. In the UK, this is typically the company registration number issued by Companies House. | | -| `source_modified_date` | *Optional[str]* | :heavy_minus_sign: | N/A | 2022-10-23 00:00:00 +0000 UTC | +| `source_modified_date` | *Optional[str]* | :heavy_minus_sign: | N/A | **Example 1:** 2022-10-23T00:00:00Z
**Example 2:** 2022-10-23 | +| `status` | [shared.SupplierStatus](../../models/shared/supplierstatus.md) | :heavy_check_mark: | Status of the supplier. | | | `supplemental_data` | [Optional[shared.SupplementalData]](../../models/shared/supplementaldata.md) | :heavy_minus_sign: | Supplemental data is additional data you can include in our standard data types.

It is referenced as a configured dynamic key value pair that is unique to the accounting software. [Learn more](https://docs.codat.io/using-the-api/supplemental-data/overview) about supplemental data. | | | `supplier_name` | *OptionalNullable[str]* | :heavy_minus_sign: | Name of the supplier as recorded in the accounting system, typically the company name. | | | `tax_number` | *OptionalNullable[str]* | :heavy_minus_sign: | Supplier's company tax number. | | \ No newline at end of file diff --git a/sync-for-expenses/docs/models/shared/suppliers.md b/sync-for-expenses/docs/models/shared/suppliers.md index 3374dc9b4..bb6880b0d 100644 --- a/sync-for-expenses/docs/models/shared/suppliers.md +++ b/sync-for-expenses/docs/models/shared/suppliers.md @@ -8,5 +8,5 @@ | `links` | [shared.Links](../../models/shared/links.md) | :heavy_check_mark: | N/A | {
"self": {
"href": "/companies"
},
"current": {
"href": "/companies?page=1\u0026pageSize=10"
}
} | | `page_number` | *int* | :heavy_check_mark: | Current page number. | | | `page_size` | *int* | :heavy_check_mark: | Number of items to return in results array. | | -| `total_results` | *int* | :heavy_check_mark: | Total number of items. | | -| `results` | List[[shared.Supplier](../../models/shared/supplier.md)] | :heavy_minus_sign: | N/A | | \ No newline at end of file +| `results` | List[[Nullable[shared.Supplier]](../../models/shared/supplier.md)] | :heavy_minus_sign: | N/A | | +| `total_results` | *int* | :heavy_check_mark: | Total number of items. | | \ No newline at end of file diff --git a/sync-for-expenses/docs/models/shared/supplierstatus.md b/sync-for-expenses/docs/models/shared/supplierstatus.md index 0374ea9e0..60d0de4fb 100644 --- a/sync-for-expenses/docs/models/shared/supplierstatus.md +++ b/sync-for-expenses/docs/models/shared/supplierstatus.md @@ -2,6 +2,14 @@ Status of the supplier. +## Example Usage + +```python +from codat_sync_for_expenses.models.shared import SupplierStatus + +value = SupplierStatus.UNKNOWN +``` + ## Values diff --git a/sync-for-expenses/docs/models/shared/synccompletewebhook.md b/sync-for-expenses/docs/models/shared/synccompletewebhook.md deleted file mode 100644 index cd87c20ba..000000000 --- a/sync-for-expenses/docs/models/shared/synccompletewebhook.md +++ /dev/null @@ -1,17 +0,0 @@ -# SyncCompleteWebhook - -Webhook request body used to notify that a sync has completed. - - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `alert_id` | *Optional[str]* | :heavy_minus_sign: | Unique identifier of the webhook event. | | -| `client_id` | *Optional[str]* | :heavy_minus_sign: | Unique identifier for your client in Codat. | | -| `client_name` | *Optional[str]* | :heavy_minus_sign: | Name of your client in Codat. | | -| `company_id` | *Optional[str]* | :heavy_minus_sign: | Unique identifier for your SMB in Codat. | 8a210b68-6988-11ed-a1eb-0242ac120002 | -| `data` | [Optional[shared.SyncCompleteWebhookData]](../../models/shared/synccompletewebhookdata.md) | :heavy_minus_sign: | N/A | | -| `message` | *Optional[str]* | :heavy_minus_sign: | A human-readable message about the webhook. | | -| ~~`rule_id`~~ | *Optional[str]* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

Unique identifier for the rule. | | -| `rule_type` | *Optional[str]* | :heavy_minus_sign: | The type of rule. | | \ No newline at end of file diff --git a/sync-for-expenses/docs/models/shared/synccompletewebhookdata.md b/sync-for-expenses/docs/models/shared/synccompletewebhookdata.md deleted file mode 100644 index 2ce503401..000000000 --- a/sync-for-expenses/docs/models/shared/synccompletewebhookdata.md +++ /dev/null @@ -1,9 +0,0 @@ -# SyncCompleteWebhookData - - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------- | -------------------------------------- | -------------------------------------- | -------------------------------------- | -------------------------------------- | -| `sync_id` | *Optional[str]* | :heavy_minus_sign: | Unique identifier for the failed sync. | a9367074-b5c3-42c4-9be4-be129f43577e | -| `sync_type` | *Optional[str]* | :heavy_minus_sign: | The type of sync being performed. | | \ No newline at end of file diff --git a/sync-for-expenses/docs/models/shared/syncfailedwebhook.md b/sync-for-expenses/docs/models/shared/syncfailedwebhook.md deleted file mode 100644 index af3e34457..000000000 --- a/sync-for-expenses/docs/models/shared/syncfailedwebhook.md +++ /dev/null @@ -1,17 +0,0 @@ -# SyncFailedWebhook - -Webhook request body used to notify that a sync has failed. - - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `alert_id` | *Optional[str]* | :heavy_minus_sign: | Unique identifier of the webhook event. | | -| `client_id` | *Optional[str]* | :heavy_minus_sign: | Unique identifier for your client in Codat. | | -| `client_name` | *Optional[str]* | :heavy_minus_sign: | Name of your client in Codat. | | -| `company_id` | *Optional[str]* | :heavy_minus_sign: | Unique identifier for your SMB in Codat. | 8a210b68-6988-11ed-a1eb-0242ac120002 | -| `data` | [Optional[shared.SyncFailedWebhookData]](../../models/shared/syncfailedwebhookdata.md) | :heavy_minus_sign: | N/A | | -| `message` | *Optional[str]* | :heavy_minus_sign: | A human-readable message about the webhook. | | -| ~~`rule_id`~~ | *Optional[str]* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

Unique identifier for the rule. | | -| `rule_type` | *Optional[str]* | :heavy_minus_sign: | The type of rule. | | \ No newline at end of file diff --git a/sync-for-expenses/docs/models/shared/syncfailedwebhookdata.md b/sync-for-expenses/docs/models/shared/syncfailedwebhookdata.md deleted file mode 100644 index ff93525d7..000000000 --- a/sync-for-expenses/docs/models/shared/syncfailedwebhookdata.md +++ /dev/null @@ -1,10 +0,0 @@ -# SyncFailedWebhookData - - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------- | -------------------------------------- | -------------------------------------- | -------------------------------------- | -------------------------------------- | -| `failure_stage` | *Optional[str]* | :heavy_minus_sign: | The stage of the job the sync failed. | | -| `sync_id` | *Optional[str]* | :heavy_minus_sign: | Unique identifier for the failed sync. | a9367074-b5c3-42c4-9be4-be129f43577e | -| `sync_type` | *Optional[str]* | :heavy_minus_sign: | The type of sync being performed. | | \ No newline at end of file diff --git a/sync-for-expenses/docs/models/shared/trackingrefadjustmenttransactiondatatype.md b/sync-for-expenses/docs/models/shared/trackingrefadjustmenttransactiondatatype.md index c2a6d32bb..32d5fb830 100644 --- a/sync-for-expenses/docs/models/shared/trackingrefadjustmenttransactiondatatype.md +++ b/sync-for-expenses/docs/models/shared/trackingrefadjustmenttransactiondatatype.md @@ -2,6 +2,14 @@ The type of the linked reference +## Example Usage + +```python +from codat_sync_for_expenses.models.shared import TrackingRefAdjustmentTransactionDataType + +value = TrackingRefAdjustmentTransactionDataType.TRACKING_CATEGORIES +``` + ## Values diff --git a/sync-for-expenses/docs/models/shared/trackingrefdatatype.md b/sync-for-expenses/docs/models/shared/trackingrefdatatype.md index d51f15959..befe27dae 100644 --- a/sync-for-expenses/docs/models/shared/trackingrefdatatype.md +++ b/sync-for-expenses/docs/models/shared/trackingrefdatatype.md @@ -2,6 +2,14 @@ The type of the linked reference +## Example Usage + +```python +from codat_sync_for_expenses.models.shared import TrackingRefDataType + +value = TrackingRefDataType.TRACKING_CATEGORIES +``` + ## Values diff --git a/sync-for-expenses/docs/models/shared/transactiondefinitionsstatus.md b/sync-for-expenses/docs/models/shared/transactiondefinitionsstatus.md index ab0d38dd5..4b5ec7609 100644 --- a/sync-for-expenses/docs/models/shared/transactiondefinitionsstatus.md +++ b/sync-for-expenses/docs/models/shared/transactiondefinitionsstatus.md @@ -2,6 +2,14 @@ Status of transaction. +## Example Usage + +```python +from codat_sync_for_expenses.models.shared import TransactionDefinitionsStatus + +value = TransactionDefinitionsStatus.UNKNOWN +``` + ## Values diff --git a/sync-for-expenses/docs/models/shared/transactions.md b/sync-for-expenses/docs/models/shared/transactions.md index 4772df220..d1a752145 100644 --- a/sync-for-expenses/docs/models/shared/transactions.md +++ b/sync-for-expenses/docs/models/shared/transactions.md @@ -8,5 +8,5 @@ | `links` | [shared.Links](../../models/shared/links.md) | :heavy_check_mark: | N/A | {
"self": {
"href": "/companies"
},
"current": {
"href": "/companies?page=1\u0026pageSize=10"
}
} | | `page_number` | *int* | :heavy_check_mark: | Current page number. | | | `page_size` | *int* | :heavy_check_mark: | Number of items to return in results array. | | -| `total_results` | *int* | :heavy_check_mark: | Total number of items. | | -| `results` | List[[shared.SchemaTransaction](../../models/shared/schematransaction.md)] | :heavy_minus_sign: | N/A | | \ No newline at end of file +| `results` | List[[shared.SchemaTransaction](../../models/shared/schematransaction.md)] | :heavy_minus_sign: | N/A | | +| `total_results` | *int* | :heavy_check_mark: | Total number of items. | | \ No newline at end of file diff --git a/sync-for-expenses/docs/models/shared/transactionstatus.md b/sync-for-expenses/docs/models/shared/transactionstatus.md index 6f9a25285..8be5f3789 100644 --- a/sync-for-expenses/docs/models/shared/transactionstatus.md +++ b/sync-for-expenses/docs/models/shared/transactionstatus.md @@ -2,6 +2,14 @@ Status of the transaction. +## Example Usage + +```python +from codat_sync_for_expenses.models.shared import TransactionStatus + +value = TransactionStatus.UNKNOWN +``` + ## Values diff --git a/sync-for-expenses/docs/models/shared/transfertransactionrequest.md b/sync-for-expenses/docs/models/shared/transfertransactionrequest.md index d42466ede..ac0e1d51c 100644 --- a/sync-for-expenses/docs/models/shared/transfertransactionrequest.md +++ b/sync-for-expenses/docs/models/shared/transfertransactionrequest.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | -| `date_` | *str* | :heavy_check_mark: | N/A | 2022-10-23 00:00:00 +0000 UTC | -| `from_` | [shared.From](../../models/shared/from_.md) | :heavy_check_mark: | N/A | | -| `to` | [shared.To](../../models/shared/to.md) | :heavy_check_mark: | N/A | | -| `description` | *Optional[str]* | :heavy_minus_sign: | Any private, company notes about the transaction. | Transfer from bank account Y to bank account Z | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | +| `date_` | *str* | :heavy_check_mark: | N/A | **Example 1:** 2022-10-23T00:00:00Z
**Example 2:** 2022-10-23 | +| `description` | *Optional[str]* | :heavy_minus_sign: | Any private, company notes about the transaction. | Transfer from bank account Y to bank account Z | +| `from_` | [shared.From](../../models/shared/from_.md) | :heavy_check_mark: | N/A | | +| `to` | [shared.To](../../models/shared/to.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/sync-for-expenses/docs/models/shared/type.md b/sync-for-expenses/docs/models/shared/type.md index 0c8688ed8..efa4c06a7 100644 --- a/sync-for-expenses/docs/models/shared/type.md +++ b/sync-for-expenses/docs/models/shared/type.md @@ -1,10 +1,22 @@ # Type -The type of contact. +The type of phone number + +## Example Usage + +```python +from codat_sync_for_expenses.models.shared import Type + +value = Type.PRIMARY +``` ## Values | Name | Value | | ---------- | ---------- | -| `SUPPLIER` | Supplier | \ No newline at end of file +| `PRIMARY` | Primary | +| `LANDLINE` | Landline | +| `MOBILE` | Mobile | +| `FAX` | Fax | +| `UNKNOWN` | Unknown | \ No newline at end of file diff --git a/sync-for-expenses/docs/models/shared/updatecustomerresponse.md b/sync-for-expenses/docs/models/shared/updatecustomerresponse.md index 330396f1d..10c3776e6 100644 --- a/sync-for-expenses/docs/models/shared/updatecustomerresponse.md +++ b/sync-for-expenses/docs/models/shared/updatecustomerresponse.md @@ -5,17 +5,17 @@ | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `changes` | List[[shared.PushOperationChange](../../models/shared/pushoperationchange.md)] | :heavy_minus_sign: | Contains a single entry that communicates which record has changed and the manner in which it changed. | | | `company_id` | *str* | :heavy_check_mark: | Unique identifier for your SMB in Codat. | 8a210b68-6988-11ed-a1eb-0242ac120002 | +| `completed_on_utc` | *Optional[str]* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | **Example 1:** 2022-10-23T00:00:00Z
**Example 2:** 2022-10-23 | +| `data` | [OptionalNullable[shared.UpdateCustomerResponseAccountingCustomer]](../../models/shared/updatecustomerresponseaccountingcustomer.md) | :heavy_minus_sign: | N/A | | | `data_connection_key` | *str* | :heavy_check_mark: | Unique identifier for a company's data connection. | 2e9d2c44-f675-40ba-8049-353bfcb5e171 | +| `data_type` | [Optional[shared.DataType]](../../models/shared/datatype.md) | :heavy_minus_sign: | Available data types | invoices | +| `error_message` | *OptionalNullable[str]* | :heavy_minus_sign: | A message about the error. | | | `push_operation_key` | *str* | :heavy_check_mark: | A unique identifier generated by Codat to represent this single push operation. This identifier can be used to track the status of the push, and should be persisted. | | -| `requested_on_utc` | *str* | :heavy_check_mark: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23 00:00:00 +0000 UTC | +| `requested_on_utc` | *str* | :heavy_check_mark: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | **Example 1:** 2022-10-23T00:00:00Z
**Example 2:** 2022-10-23 | | `status` | [shared.PushOperationStatus](../../models/shared/pushoperationstatus.md) | :heavy_check_mark: | The current status of the push operation. | | | `status_code` | *int* | :heavy_check_mark: | Push status code. | | -| `changes` | List[[shared.PushOperationChange](../../models/shared/pushoperationchange.md)] | :heavy_minus_sign: | Contains a single entry that communicates which record has changed and the manner in which it changed. | | -| `completed_on_utc` | *Optional[str]* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23 00:00:00 +0000 UTC | -| `data` | [OptionalNullable[shared.UpdateCustomerResponseAccountingCustomer]](../../models/shared/updatecustomerresponseaccountingcustomer.md) | :heavy_minus_sign: | N/A | | -| `data_type` | [Optional[shared.DataType]](../../models/shared/datatype.md) | :heavy_minus_sign: | Available data types | invoices | -| `error_message` | *OptionalNullable[str]* | :heavy_minus_sign: | A message about the error. | | | `timeout_in_minutes` | *OptionalNullable[int]* | :heavy_minus_sign: | Number of minutes the push operation must complete within before it times out. | | | ~~`timeout_in_seconds`~~ | *OptionalNullable[int]* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

Number of seconds the push operation must complete within before it times out. | | | `validation` | [Optional[shared.Validation]](../../models/shared/validation.md) | :heavy_minus_sign: | A human-readable object describing validation decisions Codat has made when pushing data into the platform. If a push has failed because of validation errors, they will be detailed here. | | \ No newline at end of file diff --git a/sync-for-expenses/docs/models/shared/updatecustomerresponseaccountingcustomer.md b/sync-for-expenses/docs/models/shared/updatecustomerresponseaccountingcustomer.md index 8d382fbc7..de8148803 100644 --- a/sync-for-expenses/docs/models/shared/updatecustomerresponseaccountingcustomer.md +++ b/sync-for-expenses/docs/models/shared/updatecustomerresponseaccountingcustomer.md @@ -14,18 +14,18 @@ Customers' data links to accounts receivable [invoices](https://docs.codat.io/sy | Field | Type | Required | Description | Example | | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `status` | [shared.CustomerStatus](../../models/shared/customerstatus.md) | :heavy_check_mark: | Status of customer. | | | `addresses` | List[[shared.Items](../../models/shared/items.md)] | :heavy_minus_sign: | An array of Addresses. | | | `contact_name` | *OptionalNullable[str]* | :heavy_minus_sign: | Name of the main contact for the identified customer. | | | `contacts` | List[[shared.Contact](../../models/shared/contact.md)] | :heavy_minus_sign: | An array of Contacts. | | | `customer_name` | *OptionalNullable[str]* | :heavy_minus_sign: | Name of the customer as recorded in the accounting system, typically the company name. | | -| `default_currency` | *Optional[str]* | :heavy_minus_sign: | The currency data type in Codat is the [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code, e.g. _GBP_.

## Unknown currencies

In line with the ISO 4217 specification, the code _XXX_ is used when the data source does not return a currency for a transaction.

There are only a very small number of edge cases where this currency code is returned by the Codat system. | GBP | +| `default_currency` | *Optional[str]* | :heavy_minus_sign: | The currency data type in Codat is the [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code, e.g. _GBP_.

## Unknown currencies

In line with the ISO 4217 specification, the code _XXX_ is used when the data source does not return a currency for a transaction.

There are only a very small number of edge cases where this currency code is returned by the Codat system. | **Example 1:** GBP
**Example 2:** USD
**Example 3:** EUR | | `email_address` | *OptionalNullable[str]* | :heavy_minus_sign: | Email address the customer can be contacted by. | | | `id` | *Optional[str]* | :heavy_minus_sign: | Identifier for the customer, unique to the company in the accounting software. | | | `metadata` | [Optional[shared.Metadata]](../../models/shared/metadata.md) | :heavy_minus_sign: | N/A | | -| `modified_date` | *Optional[str]* | :heavy_minus_sign: | N/A | 2022-10-23 00:00:00 +0000 UTC | +| `modified_date` | *Optional[str]* | :heavy_minus_sign: | N/A | **Example 1:** 2022-10-23T00:00:00Z
**Example 2:** 2022-10-23 | | `phone` | *OptionalNullable[str]* | :heavy_minus_sign: | Phone number the customer can be contacted by. | | | `registration_number` | *OptionalNullable[str]* | :heavy_minus_sign: | Company number. In the UK, this is typically the Companies House company registration number. | | -| `source_modified_date` | *Optional[str]* | :heavy_minus_sign: | N/A | 2022-10-23 00:00:00 +0000 UTC | +| `source_modified_date` | *Optional[str]* | :heavy_minus_sign: | N/A | **Example 1:** 2022-10-23T00:00:00Z
**Example 2:** 2022-10-23 | +| `status` | [shared.CustomerStatus](../../models/shared/customerstatus.md) | :heavy_check_mark: | Status of customer. | | | `supplemental_data` | [Optional[shared.SupplementalData]](../../models/shared/supplementaldata.md) | :heavy_minus_sign: | Supplemental data is additional data you can include in our standard data types.

It is referenced as a configured dynamic key value pair that is unique to the accounting software. [Learn more](https://docs.codat.io/using-the-api/supplemental-data/overview) about supplemental data. | | | `tax_number` | *OptionalNullable[str]* | :heavy_minus_sign: | Company tax number. | | \ No newline at end of file diff --git a/sync-for-expenses/docs/models/shared/updateexpenserequest.md b/sync-for-expenses/docs/models/shared/updateexpenserequest.md index 204ae1b62..3c54841ec 100644 --- a/sync-for-expenses/docs/models/shared/updateexpenserequest.md +++ b/sync-for-expenses/docs/models/shared/updateexpenserequest.md @@ -5,12 +5,12 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `currency` | *str* | :heavy_check_mark: | Currency the transaction was recorded in. | GBP | -| `issue_date` | *str* | :heavy_check_mark: | Date the transaction was recorded. | 2022-06-28T00:00:00.000Z | -| `type` | [shared.UpdateExpenseRequestType](../../models/shared/updateexpenserequesttype.md) | :heavy_check_mark: | The type of transaction. | Payment | | `bank_account_ref` | [Optional[shared.UpdateExpenseRequestBankAccountReference]](../../models/shared/updateexpenserequestbankaccountreference.md) | :heavy_minus_sign: | N/A | | | `contact_ref` | [Optional[shared.ExpenseContactRef]](../../models/shared/expensecontactref.md) | :heavy_minus_sign: | N/A | | +| `currency` | *str* | :heavy_check_mark: | Currency the transaction was recorded in. | GBP | | `currency_rate` | *OptionalNullable[Decimal]* | :heavy_minus_sign: | Rate to convert the total amount of the payment into the base currency for the company at the time of the payment.

Currency rates in Codat are implemented as the multiple of foreign currency units to each base currency unit.

It is not possible to perform the currency conversion with two or more non-base currencies participating in the transaction. For example, if a company's base currency is USD, and it has a bill issued in EUR, then the bill payment must happen in USD or EUR.

Where the currency rate is provided by the underlying accounting software, it will be available from Codat with the same precision (up to a maximum of 9 decimal places).

For accounting software which do not provide an explicit currency rate, it is calculated as `baseCurrency / foreignCurrency` and will be returned to 9 decimal places.

## Examples with base currency of GBP

\| Foreign Currency \| Foreign Amount \| Currency Rate \| Base Currency Amount (GBP) \|
\| :--------------- \| :------------- \| :------------ \| :------------------------- \|
\| **USD** \| $20 \| 0.781 \| £15.62 \|
\| **EUR** \| €20 \| 0.885 \| £17.70 \|
\| **RUB** \| ₽20 \| 0.011 \| £0.22 \|

## Examples with base currency of USD

\| Foreign Currency \| Foreign Amount \| Currency Rate \| Base Currency Amount (USD) \|
\| :--------------- \| :------------- \| :------------ \| :------------------------- \|
\| **GBP** \| £20 \| 1.277 \| $25.54 \|
\| **EUR** \| €20 \| 1.134 \| $22.68 \|
\| **RUB** \| ₽20 \| 0.015 \| $0.30 \|


### Integration-specific details

\| Integration \| Scenario \| System behavior \|
\|-------------------\|-------------------------------------------------\|----------------------------------------------------------------------------------------------------------------------------------------------------------------------\|
\| QuickBooks Online \| Transaction currency differs from base currency \| If currency rate value is left `null`, a rate of 1 will be used by QBO by default. To override this, specify a currencyRate in the request body. \| | | +| `issue_date` | *str* | :heavy_check_mark: | Date the transaction was recorded. | 2022-06-28T00:00:00.000Z | | `lines` | List[[shared.ExpenseTransactionLine](../../models/shared/expensetransactionline.md)] | :heavy_minus_sign: | Array of transaction lines. | | | `merchant_name` | *Optional[str]* | :heavy_minus_sign: | Name of the merchant where the purchase took place | Amazon UK | -| `notes` | *Optional[str]* | :heavy_minus_sign: | Any private, company notes about the transaction. | APPLE.COM/BILL - 09001077498 - Card Ending: 4590 | \ No newline at end of file +| `notes` | *Optional[str]* | :heavy_minus_sign: | Any private, company notes about the transaction. | APPLE.COM/BILL - 09001077498 - Card Ending: 4590 | +| `type` | [shared.UpdateExpenseRequestType](../../models/shared/updateexpenserequesttype.md) | :heavy_check_mark: | The type of transaction. | Payment | \ No newline at end of file diff --git a/sync-for-expenses/docs/models/shared/updateexpenserequesttype.md b/sync-for-expenses/docs/models/shared/updateexpenserequesttype.md index 672ee78f4..2de3891b7 100644 --- a/sync-for-expenses/docs/models/shared/updateexpenserequesttype.md +++ b/sync-for-expenses/docs/models/shared/updateexpenserequesttype.md @@ -2,6 +2,14 @@ The type of transaction. +## Example Usage + +```python +from codat_sync_for_expenses.models.shared import UpdateExpenseRequestType + +value = UpdateExpenseRequestType.PAYMENT +``` + ## Values diff --git a/sync-for-expenses/docs/models/shared/updateexpenseresponse.md b/sync-for-expenses/docs/models/shared/updateexpenseresponse.md index e4d492236..4e6366339 100644 --- a/sync-for-expenses/docs/models/shared/updateexpenseresponse.md +++ b/sync-for-expenses/docs/models/shared/updateexpenseresponse.md @@ -3,6 +3,6 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | -| `sync_id` | *Optional[str]* | :heavy_minus_sign: | Unique identifier for the update expense sync. | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | +| `sync_id` | *Optional[str]* | :heavy_minus_sign: | Unique identifier for the update expense sync. | 1ad0695c-4566-4715-918c-adbb03eac81e | \ No newline at end of file diff --git a/sync-for-expenses/docs/models/shared/updatereimbursableexpensetransactionrequest.md b/sync-for-expenses/docs/models/shared/updatereimbursableexpensetransactionrequest.md index 3751d6fa4..f6255e33c 100644 --- a/sync-for-expenses/docs/models/shared/updatereimbursableexpensetransactionrequest.md +++ b/sync-for-expenses/docs/models/shared/updatereimbursableexpensetransactionrequest.md @@ -5,12 +5,12 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `ap_account_ref` | [OptionalNullable[shared.ApAccountRef]](../../models/shared/apaccountref.md) | :heavy_minus_sign: | N/A | | | `contact_ref` | [shared.ReimbursementContactRef](../../models/shared/reimbursementcontactref.md) | :heavy_check_mark: | N/A | | | `currency` | *str* | :heavy_check_mark: | Currency the transaction was recorded in. | GBP | -| `due_date` | *str* | :heavy_check_mark: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23 00:00:00 +0000 UTC | -| `issue_date` | *str* | :heavy_check_mark: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23 00:00:00 +0000 UTC | -| `ap_account_ref` | [OptionalNullable[shared.ApAccountRef]](../../models/shared/apaccountref.md) | :heavy_minus_sign: | N/A | | | `currency_rate` | *OptionalNullable[Decimal]* | :heavy_minus_sign: | Rate to convert the total amount of the payment into the base currency for the company at the time of the payment.

Currency rates in Codat are implemented as the multiple of foreign currency units to each base currency unit.

It is not possible to perform the currency conversion with two or more non-base currencies participating in the transaction. For example, if a company's base currency is USD, and it has a bill issued in EUR, then the bill payment must happen in USD or EUR.

Where the currency rate is provided by the underlying accounting software, it will be available from Codat with the same precision (up to a maximum of 9 decimal places).

For accounting software which do not provide an explicit currency rate, it is calculated as `baseCurrency / foreignCurrency` and will be returned to 9 decimal places.

## Examples with base currency of GBP

\| Foreign Currency \| Foreign Amount \| Currency Rate \| Base Currency Amount (GBP) \|
\| :--------------- \| :------------- \| :------------ \| :------------------------- \|
\| **USD** \| $20 \| 0.781 \| £15.62 \|
\| **EUR** \| €20 \| 0.885 \| £17.70 \|
\| **RUB** \| ₽20 \| 0.011 \| £0.22 \|

## Examples with base currency of USD

\| Foreign Currency \| Foreign Amount \| Currency Rate \| Base Currency Amount (USD) \|
\| :--------------- \| :------------- \| :------------ \| :------------------------- \|
\| **GBP** \| £20 \| 1.277 \| $25.54 \|
\| **EUR** \| €20 \| 1.134 \| $22.68 \|
\| **RUB** \| ₽20 \| 0.015 \| $0.30 \|


### Integration-specific details

\| Integration \| Scenario \| System behavior \|
\|-------------------\|-------------------------------------------------\|----------------------------------------------------------------------------------------------------------------------------------------------------------------------\|
\| QuickBooks Online \| Transaction currency differs from base currency \| If currency rate value is left `null`, a rate of 1 will be used by QBO by default. To override this, specify a currencyRate in the request body. \| | | +| `due_date` | *str* | :heavy_check_mark: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | **Example 1:** 2022-10-23T00:00:00Z
**Example 2:** 2022-10-23 | +| `issue_date` | *str* | :heavy_check_mark: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | **Example 1:** 2022-10-23T00:00:00Z
**Example 2:** 2022-10-23 | | `lines` | List[[shared.ReimbursableExpenseTransactionLine](../../models/shared/reimbursableexpensetransactionline.md)] | :heavy_minus_sign: | Array of transaction lines. | | | `notes` | *Optional[str]* | :heavy_minus_sign: | Any private, company notes about the transaction. | APPLE.COM/BILL - 09001077498 - Card Ending: 4590 | | `reference` | *OptionalNullable[str]* | :heavy_minus_sign: | User-friendly reference for the reimbursable expense. | | \ No newline at end of file diff --git a/sync-for-expenses/docs/models/shared/updatesupplierresponse.md b/sync-for-expenses/docs/models/shared/updatesupplierresponse.md index bea4a87c4..9378b0397 100644 --- a/sync-for-expenses/docs/models/shared/updatesupplierresponse.md +++ b/sync-for-expenses/docs/models/shared/updatesupplierresponse.md @@ -5,17 +5,17 @@ | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `changes` | List[[shared.PushOperationChange](../../models/shared/pushoperationchange.md)] | :heavy_minus_sign: | Contains a single entry that communicates which record has changed and the manner in which it changed. | | | `company_id` | *str* | :heavy_check_mark: | Unique identifier for your SMB in Codat. | 8a210b68-6988-11ed-a1eb-0242ac120002 | +| `completed_on_utc` | *Optional[str]* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | **Example 1:** 2022-10-23T00:00:00Z
**Example 2:** 2022-10-23 | +| `data` | [OptionalNullable[shared.UpdateSupplierResponseAccountingSupplier]](../../models/shared/updatesupplierresponseaccountingsupplier.md) | :heavy_minus_sign: | N/A | {
"id": "C520FFD4-F6F6-4FC2-A6D2-5D7088B2B14F",
"supplierName": "Kelly's Industrial Supplies",
"contactName": "Kelly's Industrial Supplies",
"emailAddress": "sales@kellysupplies.com",
"phone": "07999 999999",
"addresses": [
{
"type": "Billing",
"line1": "Unit 51",
"line2": "Bakersfield Industrial Estate",
"city": "Bakersfield",
"region": "California",
"country": "USA",
"postalcode": "93308"
}
],
"registrationNumber": "string",
"taxNumber": "string",
"status": "Unknown",
"defaultCurrency": "string",
"metadata": {
"isDeleted": true
},
"supplementalData": {
"content": {
"property1": {
"property1": null,
"property2": null
},
"property2": {
"property1": null,
"property2": null
}
}
},
"modifiedDate": "2022-10-23T00:00:00Z",
"sourceModifiedDate": "2022-10-23T00:00:00Z"
} | | `data_connection_key` | *str* | :heavy_check_mark: | Unique identifier for a company's data connection. | 2e9d2c44-f675-40ba-8049-353bfcb5e171 | +| `data_type` | [Optional[shared.DataType]](../../models/shared/datatype.md) | :heavy_minus_sign: | Available data types | invoices | +| `error_message` | *OptionalNullable[str]* | :heavy_minus_sign: | A message about the error. | | | `push_operation_key` | *str* | :heavy_check_mark: | A unique identifier generated by Codat to represent this single push operation. This identifier can be used to track the status of the push, and should be persisted. | | -| `requested_on_utc` | *str* | :heavy_check_mark: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23 00:00:00 +0000 UTC | +| `requested_on_utc` | *str* | :heavy_check_mark: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | **Example 1:** 2022-10-23T00:00:00Z
**Example 2:** 2022-10-23 | | `status` | [shared.PushOperationStatus](../../models/shared/pushoperationstatus.md) | :heavy_check_mark: | The current status of the push operation. | | | `status_code` | *int* | :heavy_check_mark: | Push status code. | | -| `changes` | List[[shared.PushOperationChange](../../models/shared/pushoperationchange.md)] | :heavy_minus_sign: | Contains a single entry that communicates which record has changed and the manner in which it changed. | | -| `completed_on_utc` | *Optional[str]* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23 00:00:00 +0000 UTC | -| `data` | [OptionalNullable[shared.UpdateSupplierResponseAccountingSupplier]](../../models/shared/updatesupplierresponseaccountingsupplier.md) | :heavy_minus_sign: | N/A | {
"id": "C520FFD4-F6F6-4FC2-A6D2-5D7088B2B14F",
"supplierName": "Kelly's Industrial Supplies",
"contactName": "Kelly's Industrial Supplies",
"emailAddress": "sales@kellysupplies.com",
"phone": "07999 999999",
"addresses": [
{
"type": "Billing",
"line1": "Unit 51",
"line2": "Bakersfield Industrial Estate",
"city": "Bakersfield",
"region": "California",
"country": "USA",
"postalcode": "93308"
}
],
"registrationNumber": "string",
"taxNumber": "string",
"status": "Unknown",
"defaultCurrency": "string",
"metadata": {
"isDeleted": true
},
"supplementalData": {
"content": {
"property1": {
"property1": null,
"property2": null
},
"property2": {
"property1": null,
"property2": null
}
}
},
"modifiedDate": "2022-10-23T00:00:00Z",
"sourceModifiedDate": "2022-10-23T00:00:00Z"
} | -| `data_type` | [Optional[shared.DataType]](../../models/shared/datatype.md) | :heavy_minus_sign: | Available data types | invoices | -| `error_message` | *OptionalNullable[str]* | :heavy_minus_sign: | A message about the error. | | | `timeout_in_minutes` | *OptionalNullable[int]* | :heavy_minus_sign: | Number of minutes the push operation must complete within before it times out. | | | ~~`timeout_in_seconds`~~ | *OptionalNullable[int]* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

Number of seconds the push operation must complete within before it times out. | | | `validation` | [Optional[shared.Validation]](../../models/shared/validation.md) | :heavy_minus_sign: | A human-readable object describing validation decisions Codat has made when pushing data into the platform. If a push has failed because of validation errors, they will be detailed here. | | \ No newline at end of file diff --git a/sync-for-expenses/docs/models/shared/updatesupplierresponseaccountingsupplier.md b/sync-for-expenses/docs/models/shared/updatesupplierresponseaccountingsupplier.md index 82bc233ea..637f71bd3 100644 --- a/sync-for-expenses/docs/models/shared/updatesupplierresponseaccountingsupplier.md +++ b/sync-for-expenses/docs/models/shared/updatesupplierresponseaccountingsupplier.md @@ -11,17 +11,17 @@ From the **Suppliers** endpoints, you can retrieve a list of [all the suppliers | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `status` | [shared.SupplierStatus](../../models/shared/supplierstatus.md) | :heavy_check_mark: | Status of the supplier. | | | `addresses` | List[[shared.Items](../../models/shared/items.md)] | :heavy_minus_sign: | An array of Addresses. | | | `contact_name` | *OptionalNullable[str]* | :heavy_minus_sign: | Name of the main contact for the supplier. | | | `default_currency` | *OptionalNullable[str]* | :heavy_minus_sign: | Default currency the supplier's transactional data is recorded in. | | | `email_address` | *OptionalNullable[str]* | :heavy_minus_sign: | Email address that the supplier may be contacted on. | | | `id` | *Optional[str]* | :heavy_minus_sign: | Identifier for the supplier, unique to the company in the accounting software. | | | `metadata` | [Optional[shared.Metadata]](../../models/shared/metadata.md) | :heavy_minus_sign: | N/A | | -| `modified_date` | *Optional[str]* | :heavy_minus_sign: | N/A | 2022-10-23 00:00:00 +0000 UTC | -| `phone` | *OptionalNullable[str]* | :heavy_minus_sign: | Phone number that the supplier may be contacted on. | +44 25691 154789 | +| `modified_date` | *Optional[str]* | :heavy_minus_sign: | N/A | **Example 1:** 2022-10-23T00:00:00Z
**Example 2:** 2022-10-23 | +| `phone` | *OptionalNullable[str]* | :heavy_minus_sign: | Phone number that the supplier may be contacted on. | **Example 1:** +44 25691 154789
**Example 2:** (877) 492-8687
**Example 3:** 01224 658 999 | | `registration_number` | *OptionalNullable[str]* | :heavy_minus_sign: | Company number of the supplier. In the UK, this is typically the company registration number issued by Companies House. | | -| `source_modified_date` | *Optional[str]* | :heavy_minus_sign: | N/A | 2022-10-23 00:00:00 +0000 UTC | +| `source_modified_date` | *Optional[str]* | :heavy_minus_sign: | N/A | **Example 1:** 2022-10-23T00:00:00Z
**Example 2:** 2022-10-23 | +| `status` | [shared.SupplierStatus](../../models/shared/supplierstatus.md) | :heavy_check_mark: | Status of the supplier. | | | `supplemental_data` | [Optional[shared.SupplementalData]](../../models/shared/supplementaldata.md) | :heavy_minus_sign: | Supplemental data is additional data you can include in our standard data types.

It is referenced as a configured dynamic key value pair that is unique to the accounting software. [Learn more](https://docs.codat.io/using-the-api/supplemental-data/overview) about supplemental data. | | | `supplier_name` | *OptionalNullable[str]* | :heavy_minus_sign: | Name of the supplier as recorded in the accounting system, typically the company name. | | | `tax_number` | *OptionalNullable[str]* | :heavy_minus_sign: | Supplier's company tax number. | | \ No newline at end of file diff --git a/sync-for-expenses/docs/models/shared/validfor.md b/sync-for-expenses/docs/models/shared/validfor.md index 4d6bb5070..112c68ea0 100644 --- a/sync-for-expenses/docs/models/shared/validfor.md +++ b/sync-for-expenses/docs/models/shared/validfor.md @@ -1,5 +1,13 @@ # ValidFor +## Example Usage + +```python +from codat_sync_for_expenses.models.shared import ValidFor + +value = ValidFor.EXPENSE_TRANSACTIONS_PAYMENT +``` + ## Values diff --git a/sync-for-expenses/docs/models/shared/validtransactiontypes.md b/sync-for-expenses/docs/models/shared/validtransactiontypes.md index 07fc5f95d..05e8fcbc5 100644 --- a/sync-for-expenses/docs/models/shared/validtransactiontypes.md +++ b/sync-for-expenses/docs/models/shared/validtransactiontypes.md @@ -1,5 +1,13 @@ # ValidTransactionTypes +## Example Usage + +```python +from codat_sync_for_expenses.models.shared import ValidTransactionTypes + +value = ValidTransactionTypes.PAYMENT +``` + ## Values diff --git a/sync-for-expenses/docs/models/shared/weblink.md b/sync-for-expenses/docs/models/shared/weblink.md index 99ac51f5a..bb96fcb0b 100644 --- a/sync-for-expenses/docs/models/shared/weblink.md +++ b/sync-for-expenses/docs/models/shared/weblink.md @@ -5,7 +5,7 @@ Weblink associated with the company. ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | -| `type` | [Optional[shared.CompanyInformationType]](../../models/shared/companyinformationtype.md) | :heavy_minus_sign: | The type of the weblink. | -| `url` | *Optional[str]* | :heavy_minus_sign: | The full URL for the weblink. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | +| `type` | [Optional[shared.CompanyInformationSchemasType]](../../models/shared/companyinformationschemastype.md) | :heavy_minus_sign: | The type of the weblink. | +| `url` | *Optional[str]* | :heavy_minus_sign: | The full URL for the weblink. | \ No newline at end of file diff --git a/sync-for-expenses/docs/sdks/accounts/README.md b/sync-for-expenses/docs/sdks/accounts/README.md index 65462e72e..71f286a99 100644 --- a/sync-for-expenses/docs/sdks/accounts/README.md +++ b/sync-for-expenses/docs/sdks/accounts/README.md @@ -1,5 +1,4 @@ # Accounts -(*accounts*) ## Overview @@ -16,41 +15,43 @@ The *Create account* endpoint creates a new [account](https://docs.codat.io/sync [Accounts](https://docs.codat.io/sync-for-expenses-api#/schemas/Account) are the categories a business uses to record accounting transactions. -**Integration-specific behaviour** +**Integration-specific behavior** Required data may vary by integration. To see what data to post, first call [Get create account model](https://docs.codat.io/sync-for-expenses-api#/operations/get-create-chartOfAccounts-model). ### Example Usage + ```python from codat_sync_for_expenses import CodatSyncExpenses from codat_sync_for_expenses.models import shared from decimal import Decimal + with CodatSyncExpenses( security=shared.Security( auth_header="Basic BASE_64_ENCODED(API_KEY)", ), ) as codat_sync_expenses: + res = codat_sync_expenses.accounts.create(request={ - "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", - "connection_id": "2e9d2c44-f675-40ba-8049-353bfcb5e171", "account_prototype": { - "currency": "USD", + "currency": "GBP", "current_balance": Decimal("0"), "description": "Invoices the business has issued but has not yet collected payment on.", "fully_qualified_category": "Asset.Current", - "fully_qualified_name": "Fixed Asset", + "fully_qualified_name": "Cash On Hand", "name": "Accounts Receivable", "nominal_code": "610", "status": shared.AccountStatus.ACTIVE, "type": shared.AccountType.ASSET, }, + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + "connection_id": "2e9d2c44-f675-40ba-8049-353bfcb5e171", }) - if res is not None: - # handle response - pass + # Handle response + print(res) ``` @@ -67,10 +68,11 @@ with CodatSyncExpenses( ### Errors -| Error Type | Status Code | Content Type | -| -------------------------------------- | -------------------------------------- | -------------------------------------- | -| errors.ErrorMessage | 400, 401, 402, 403, 404, 429, 500, 503 | application/json | -| errors.SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| ---------------------------- | ---------------------------- | ---------------------------- | +| errors.ErrorMessage | 400, 401, 402, 403, 404, 429 | application/json | +| errors.ErrorMessage | 500, 503 | application/json | +| errors.SDKError | 4XX, 5XX | \*/\* | ## get_create_model @@ -78,29 +80,238 @@ The *Get create account model* endpoint returns the expected data for the reques [Accounts](https://docs.codat.io/sync-for-expenses-api#/schemas/Account) are the categories a business uses to record accounting transactions. -**Integration-specific behaviour** +**Integration-specific behavior** See the *response examples* for integration-specific indicative models. -### Example Usage +### Example Usage: Exact (Netherlands) + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared + + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + + res = codat_sync_expenses.accounts.get_create_model(request={ + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + "connection_id": "2e9d2c44-f675-40ba-8049-353bfcb5e171", + }) + + # Handle response + print(res) + +``` +### Example Usage: Exact (UK) + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared + + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + + res = codat_sync_expenses.accounts.get_create_model(request={ + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + "connection_id": "2e9d2c44-f675-40ba-8049-353bfcb5e171", + }) + + # Handle response + print(res) + +``` +### Example Usage: MYOB AccountRight and Essentials + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared + + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + + res = codat_sync_expenses.accounts.get_create_model(request={ + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + "connection_id": "2e9d2c44-f675-40ba-8049-353bfcb5e171", + }) + + # Handle response + print(res) + +``` +### Example Usage: QuickBooks Desktop + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared + + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + + res = codat_sync_expenses.accounts.get_create_model(request={ + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + "connection_id": "2e9d2c44-f675-40ba-8049-353bfcb5e171", + }) + + # Handle response + print(res) + +``` +### Example Usage: QuickBooks Online + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared + + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + + res = codat_sync_expenses.accounts.get_create_model(request={ + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + "connection_id": "2e9d2c44-f675-40ba-8049-353bfcb5e171", + }) + + # Handle response + print(res) + +``` +### Example Usage: QuickBooks Online Sandbox + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared + + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + + res = codat_sync_expenses.accounts.get_create_model(request={ + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + "connection_id": "2e9d2c44-f675-40ba-8049-353bfcb5e171", + }) + + # Handle response + print(res) + +``` +### Example Usage: Sage Business Cloud Accounting + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared + + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + + res = codat_sync_expenses.accounts.get_create_model(request={ + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + "connection_id": "2e9d2c44-f675-40ba-8049-353bfcb5e171", + }) + + # Handle response + print(res) +``` +### Example Usage: Sage Intacct + + ```python from codat_sync_for_expenses import CodatSyncExpenses from codat_sync_for_expenses.models import shared + with CodatSyncExpenses( security=shared.Security( auth_header="Basic BASE_64_ENCODED(API_KEY)", ), ) as codat_sync_expenses: + + res = codat_sync_expenses.accounts.get_create_model(request={ + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + "connection_id": "2e9d2c44-f675-40ba-8049-353bfcb5e171", + }) + + # Handle response + print(res) + +``` +### Example Usage: Sandbox + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared + + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + + res = codat_sync_expenses.accounts.get_create_model(request={ + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + "connection_id": "2e9d2c44-f675-40ba-8049-353bfcb5e171", + }) + + # Handle response + print(res) + +``` +### Example Usage: Xero + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared + + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + res = codat_sync_expenses.accounts.get_create_model(request={ "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", "connection_id": "2e9d2c44-f675-40ba-8049-353bfcb5e171", }) - if res is not None: - # handle response - pass + # Handle response + print(res) ``` @@ -117,7 +328,8 @@ with CodatSyncExpenses( ### Errors -| Error Type | Status Code | Content Type | -| --------------------------------- | --------------------------------- | --------------------------------- | -| errors.ErrorMessage | 401, 402, 403, 404, 429, 500, 503 | application/json | -| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file +| Error Type | Status Code | Content Type | +| ----------------------- | ----------------------- | ----------------------- | +| errors.ErrorMessage | 401, 402, 403, 404, 429 | application/json | +| errors.ErrorMessage | 500, 503 | application/json | +| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/sync-for-expenses/docs/sdks/adjustments/README.md b/sync-for-expenses/docs/sdks/adjustments/README.md index fcce21c65..256d7d866 100644 --- a/sync-for-expenses/docs/sdks/adjustments/README.md +++ b/sync-for-expenses/docs/sdks/adjustments/README.md @@ -1,5 +1,4 @@ # Adjustments -(*adjustments*) ## Overview @@ -21,23 +20,26 @@ Adjustments represent write-offs and transaction alterations, such as foreign ex |-----------------------|-----------| | QuickBooks Desktop | Yes | -### Example Usage +### Example Usage: Create adjustment + ```python from codat_sync_for_expenses import CodatSyncExpenses from codat_sync_for_expenses.models import shared from decimal import Decimal + with CodatSyncExpenses( security=shared.Security( auth_header="Basic BASE_64_ENCODED(API_KEY)", ), ) as codat_sync_expenses: + res = codat_sync_expenses.adjustments.create(request={ - "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", "request_body": [ { "currency": "USD", + "currency_rate": Decimal("1"), "date_": "2024-05-21T00:00:00+00:00", "id": "3357b3df-5f2e-465d-b9ba-226519dbb8f1", "lines": [ @@ -53,7 +55,6 @@ with CodatSyncExpenses( }, "tracking_refs": [ { - "data_type": shared.TrackingRefAdjustmentTransactionDataType.TRACKING_CATEGORIES, "id": "80000003-1674553958", }, ], @@ -66,21 +67,79 @@ with CodatSyncExpenses( "description": "credit line", "tracking_refs": [ { - "data_type": shared.TrackingRefAdjustmentTransactionDataType.TRACKING_CATEGORIES, "id": "80000003-1674553958", }, ], }, ], - "currency_rate": Decimal("1"), "reference": "test reference", }, ], + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + }) + + # Handle response + print(res) + +``` +### Example Usage: Example 1 + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared + + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + + res = codat_sync_expenses.adjustments.create(request={ + "request_body": [ + { + "currency": "Iraqi Dinar", + "date_": "2022-10-23T00:00:00Z", + "id": "a13b8cfd-4823-489f-b930-8d52faa3dc07", + "lines": [], + }, + ], + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + }) + + # Handle response + print(res) + +``` +### Example Usage: Malformed query + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared + + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + + res = codat_sync_expenses.adjustments.create(request={ + "request_body": [ + { + "currency": "Iraqi Dinar", + "date_": "2022-10-23T00:00:00Z", + "id": "a13b8cfd-4823-489f-b930-8d52faa3dc07", + "lines": [], + }, + ], + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", }) - if res is not None: - # handle response - pass + # Handle response + print(res) ``` @@ -97,7 +156,8 @@ with CodatSyncExpenses( ### Errors -| Error Type | Status Code | Content Type | -| -------------------------------------- | -------------------------------------- | -------------------------------------- | -| errors.ErrorMessage | 400, 401, 402, 403, 404, 429, 500, 503 | application/json | -| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file +| Error Type | Status Code | Content Type | +| ---------------------------- | ---------------------------- | ---------------------------- | +| errors.ErrorMessage | 400, 401, 402, 403, 404, 429 | application/json | +| errors.ErrorMessage | 500, 503 | application/json | +| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/sync-for-expenses/docs/sdks/attachments/README.md b/sync-for-expenses/docs/sdks/attachments/README.md index 4373542cc..0da303ab5 100644 --- a/sync-for-expenses/docs/sdks/attachments/README.md +++ b/sync-for-expenses/docs/sdks/attachments/README.md @@ -1,5 +1,4 @@ # Attachments -(*attachments*) ## Overview @@ -15,39 +14,42 @@ The *Upload attachment* endpoint uploads an attachment in the accounting softwar [Expense transactions](https://docs.codat.io/sync-for-expenses-api#/schemas/ExpenseTransaction) represent transactions made with a company debit or credit card. Attachments for `Adjustment` and `Transfer` transaction types are not supported for any integrations. -**Integration-specific behaviour** +**Integration-specific behavior** Each accounting software supports different file formats and sizes. -| Integration | File size | File extension |Supported transaction type -|-------------------|-----------|------------------------------------------------------------------------------------------------------------------------------------------------|--------------| -| **Xero** | 3 MB | 7Z, BMP, CSV, DOC, DOCX, EML, GIF, JPEG, JPG, KEYNOTE, MSG, NUMBERS, ODF, ODS, ODT, PAGES, PDF, PNG, PPT, PPTX, RAR, RTF, TIF, TIFF, TXT, XLS, XLSX, ZIP | All supported types | -| **QuickBooks Online** | 100 MB | AI, CSV, DOC, DOCX, EPS, GIF, JPEG, JPG, ODS, PAGES, PDF, PNG, RTF, TIF, TXT, XLS, XLSX, XML | `ReimbursableExpenses`, `ExpensePayment`, `ExpenseRefund` | -| **NetSuite** | 100 MB | BMP, CSV, XLS, XLSX, JSON, PDF, PJPG, PJPEG, PNG, TXT, SVG, TIF, TIFF, DOC, DOCX, ZIP |`ExpensePayment`, `ExpenseRefund` | -| **Dynamics 365 Business Central** | 350 MB | [No explicit requirements outlined](https://learn.microsoft.com/en-gb/dynamics365/business-central/ui-how-add-link-to-record#to-attach-a-file-to-a-purchase-invoice) for text, image, and video files. | All supported types -| **QuickBooks Desktop** | NA | Does not support attachment upload | N/A | -| **FreeAgent** | 5MB | PNG, X-PNG, JPEG, PJG, GIF, X-PDF +| Integration | File size | File extension | Supported transactions | +|-----------------------------------|-----------|-------------------------------------------------------|------------------------| +| **Xero** | 3 MB | 7Z, BMP, CSV, DOC, DOCX, EML, GIF, JPEG, JPG, KEYNOTE, MSG, NUMBERS, ODF, ODS, ODT, PAGES, PDF, PNG, PPT, PPTX, RAR, RTF, TIF, TIFF, TXT, XLS, XLSX, ZIP | All supported types | +| **QuickBooks Online** | 100 MB | AI, CSV, DOC, DOCX, EPS, GIF, JPEG, JPG, ODS, PAGES, PDF, PNG, RTF, TIF, TXT, XLS, XLSX, XML | `expense-transactions.Payment`, `expense-transactions.Refund`, `reimbursable-expense-transactions` | +| **NetSuite** | 100 MB | BMP, CSV, XLS, XLSX, JSON, PDF, PJPG, PJPEG, PNG, TXT, SVG, TIF, TIFF, DOC, DOCX, ZIP |`expense-transactions.Payment`, `expense-transactions.Refund` | +| **Dynamics 365 Business Central** | 350 MB | [No explicit requirements outlined](https://learn.microsoft.com/en-gb/dynamics365/business-central/ui-how-add-link-to-record#to-attach-a-file-to-a-purchase-invoice) for text, image, and video files. | All supported types +| **QuickBooks Desktop** | NA | Does not support attachment upload | N/A | +| **FreeAgent** | 5MB | PNG, X-PNG, JPEG, PJG, GIF, X-PDF | `expense-transactions.Payment`, `reimbursable-expense-transactions` +| **Zoho Books** | 5MB | GIF, PNG, JPEG, JPG, BMP, PDF | `expense-transactions.Payment`, `reimbursable-expense-transactions` | ### Example Usage + ```python from codat_sync_for_expenses import CodatSyncExpenses from codat_sync_for_expenses.models import shared + with CodatSyncExpenses( security=shared.Security( auth_header="Basic BASE_64_ENCODED(API_KEY)", ), ) as codat_sync_expenses: + res = codat_sync_expenses.attachments.upload(request={ "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", "sync_id": "6fb40d5e-b13e-11ed-afa1-0242ac120002", "transaction_id": "336694d8-2dca-4cb5-a28d-3ccb83e55eee", }) - if res is not None: - # handle response - pass + # Handle response + print(res) ``` @@ -64,7 +66,8 @@ with CodatSyncExpenses( ### Errors -| Error Type | Status Code | Content Type | -| -------------------------------------- | -------------------------------------- | -------------------------------------- | -| errors.ErrorMessage | 400, 401, 402, 403, 404, 429, 500, 503 | application/json | -| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file +| Error Type | Status Code | Content Type | +| ---------------------------- | ---------------------------- | ---------------------------- | +| errors.ErrorMessage | 400, 401, 402, 403, 404, 429 | application/json | +| errors.ErrorMessage | 500, 503 | application/json | +| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/sync-for-expenses/docs/sdks/bankaccounts/README.md b/sync-for-expenses/docs/sdks/bankaccounts/README.md index 46f5c91bd..a68f84a84 100644 --- a/sync-for-expenses/docs/sdks/bankaccounts/README.md +++ b/sync-for-expenses/docs/sdks/bankaccounts/README.md @@ -1,5 +1,4 @@ # BankAccounts -(*bank_accounts*) ## Overview @@ -12,28 +11,58 @@ Create bank accounts and view create bank account options. ## create -The *Create bank account* endpoint creates a new [bank account](https://docs.codat.io/sync-for-expenses-api#/schemas/BankAccount) for a given company's connection. - -[Bank accounts](https://docs.codat.io/sync-for-expenses-api#/schemas/BankAccount) are financial accounts maintained by a bank or other financial institution. - -**Integration-specific behaviour** - +The *Create bank account* endpoint creates a new [bank account](https://docs.codat.io/sync-for-expenses-api#/schemas/BankAccount) for a given company's connection. + +[Bank accounts](https://docs.codat.io/sync-for-expenses-api#/schemas/BankAccount) are financial accounts maintained by a bank or other financial institution. + +**Integration-specific behavior** + Required data may vary by integration. To see what data to post, first call [Get create/update bank account model](https://docs.codat.io/sync-for-expenses-api#/operations/get-create-update-bankAccounts-model). -### Example Usage +### Example Usage: Malformed query + ```python from codat_sync_for_expenses import CodatSyncExpenses from codat_sync_for_expenses.models import shared + with CodatSyncExpenses( security=shared.Security( auth_header="Basic BASE_64_ENCODED(API_KEY)", ), ) as codat_sync_expenses: + res = codat_sync_expenses.bank_accounts.create(request={ + "bank_account": { + "currency": "GBP", + "modified_date": "2022-10-23T00:00:00Z", + "source_modified_date": "2022-10-23T00:00:00Z", + "status": shared.BankAccountStatus.ACTIVE, + }, "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", "connection_id": "2e9d2c44-f675-40ba-8049-353bfcb5e171", + }) + + # Handle response + print(res) + +``` +### Example Usage: QuickBooks Online + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared + + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + + res = codat_sync_expenses.bank_accounts.create(request={ "bank_account": { "account_name": "GBP Bank Account", "account_number": "12345678", @@ -41,11 +70,43 @@ with CodatSyncExpenses( "currency": "GBP", "status": shared.BankAccountStatus.ACTIVE, }, + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + "connection_id": "2e9d2c44-f675-40ba-8049-353bfcb5e171", + }) + + # Handle response + print(res) + +``` +### Example Usage: Xero + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared + + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + + res = codat_sync_expenses.bank_accounts.create(request={ + "bank_account": { + "account_name": "Xero GBP Bank Account", + "account_number": "12345678", + "account_type": shared.BankAccountType.DEBIT, + "currency": "GBP", + "sort_code": "445566", + "status": shared.BankAccountStatus.ACTIVE, + }, + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + "connection_id": "2e9d2c44-f675-40ba-8049-353bfcb5e171", }) - if res is not None: - # handle response - pass + # Handle response + print(res) ``` @@ -62,41 +123,228 @@ with CodatSyncExpenses( ### Errors -| Error Type | Status Code | Content Type | -| -------------------------------------- | -------------------------------------- | -------------------------------------- | -| errors.ErrorMessage | 400, 401, 402, 403, 404, 429, 500, 503 | application/json | -| errors.SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| ---------------------------- | ---------------------------- | ---------------------------- | +| errors.ErrorMessage | 400, 401, 402, 403, 404, 429 | application/json | +| errors.ErrorMessage | 500, 503 | application/json | +| errors.SDKError | 4XX, 5XX | \*/\* | ## get_create_model -The *Get create/update bank account model* endpoint returns the expected data for the request payload when creating and updating a [bank account](https://docs.codat.io/sync-for-expenses-api#/schemas/BankAccount) for a given company and integration. - -[Bank accounts](https://docs.codat.io/sync-for-expenses-api#/schemas/BankAccount) are financial accounts maintained by a bank or other financial institution. - -**Integration-specific behaviour** - -See the *response examples* for integration-specific indicative models. +The *Get create/update bank account model* endpoint returns the expected data for the request payload when creating and updating a [bank account](https://docs.codat.io/sync-for-expenses-api#/schemas/BankAccount) for a given company and integration. + +[Bank accounts](https://docs.codat.io/sync-for-expenses-api#/schemas/BankAccount) are financial accounts maintained by a bank or other financial institution. + +**Integration-specific behavior** + +See the *response examples* for integration-specific indicative models. + + +### Example Usage: Dynamics 365 Business Central + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared + + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + + res = codat_sync_expenses.bank_accounts.get_create_model(request={ + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + "connection_id": "2e9d2c44-f675-40ba-8049-353bfcb5e171", + }) + + # Handle response + print(res) + +``` +### Example Usage: Exact (Netherlands) + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared + + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + + res = codat_sync_expenses.bank_accounts.get_create_model(request={ + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + "connection_id": "2e9d2c44-f675-40ba-8049-353bfcb5e171", + }) + + # Handle response + print(res) + +``` +### Example Usage: Exact (UK) + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared + + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + + res = codat_sync_expenses.bank_accounts.get_create_model(request={ + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + "connection_id": "2e9d2c44-f675-40ba-8049-353bfcb5e171", + }) + # Handle response + print(res) -### Example Usage +``` +### Example Usage: FreeAgent + ```python from codat_sync_for_expenses import CodatSyncExpenses from codat_sync_for_expenses.models import shared + with CodatSyncExpenses( security=shared.Security( auth_header="Basic BASE_64_ENCODED(API_KEY)", ), ) as codat_sync_expenses: + + res = codat_sync_expenses.bank_accounts.get_create_model(request={ + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + "connection_id": "2e9d2c44-f675-40ba-8049-353bfcb5e171", + }) + + # Handle response + print(res) + +``` +### Example Usage: KashFlow + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared + + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + + res = codat_sync_expenses.bank_accounts.get_create_model(request={ + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + "connection_id": "2e9d2c44-f675-40ba-8049-353bfcb5e171", + }) + + # Handle response + print(res) + +``` +### Example Usage: QuickBooks Desktop + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared + + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + + res = codat_sync_expenses.bank_accounts.get_create_model(request={ + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + "connection_id": "2e9d2c44-f675-40ba-8049-353bfcb5e171", + }) + + # Handle response + print(res) + +``` +### Example Usage: QuickBooks Online Sandbox + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared + + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + + res = codat_sync_expenses.bank_accounts.get_create_model(request={ + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + "connection_id": "2e9d2c44-f675-40ba-8049-353bfcb5e171", + }) + + # Handle response + print(res) + +``` +### Example Usage: Sage Business Cloud Accounting + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared + + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + + res = codat_sync_expenses.bank_accounts.get_create_model(request={ + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + "connection_id": "2e9d2c44-f675-40ba-8049-353bfcb5e171", + }) + + # Handle response + print(res) + +``` +### Example Usage: Sandbox + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared + + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + res = codat_sync_expenses.bank_accounts.get_create_model(request={ "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", "connection_id": "2e9d2c44-f675-40ba-8049-353bfcb5e171", }) - if res is not None: - # handle response - pass + # Handle response + print(res) ``` @@ -113,7 +361,8 @@ with CodatSyncExpenses( ### Errors -| Error Type | Status Code | Content Type | -| --------------------------------- | --------------------------------- | --------------------------------- | -| errors.ErrorMessage | 401, 402, 403, 404, 429, 500, 503 | application/json | -| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file +| Error Type | Status Code | Content Type | +| ----------------------- | ----------------------- | ----------------------- | +| errors.ErrorMessage | 401, 402, 403, 404, 429 | application/json | +| errors.ErrorMessage | 500, 503 | application/json | +| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/sync-for-expenses/docs/sdks/codatsyncexpenses/README.md b/sync-for-expenses/docs/sdks/codatsyncexpenses/README.md deleted file mode 100644 index e86931ee9..000000000 --- a/sync-for-expenses/docs/sdks/codatsyncexpenses/README.md +++ /dev/null @@ -1,37 +0,0 @@ -# CodatSyncExpenses SDK - -## Overview - -Sync for Expenses: The API for Sync for Expenses. - -Sync for Expenses is an API and a set of supporting tools. It has been built to -enable corporate card and expense management platforms to provide high-quality -integrations with multiple accounting software through a standardized API. - -[Explore product](https://docs.codat.io/sync-for-expenses/overview) | [See our OpenAPI spec](https://github.com/codatio/oas) - -Not seeing the endpoints you're expecting? We've [reorganized our products](https://docs.codat.io/updates/230901-new-products), and you may be using a [different version of Sync for Expenses](https://docs.codat.io/sync-for-expenses-v1-api#/). - ---- - -## Endpoints - -| Endpoints | Description | -| :- |:- | -| Companies | Create and manage your SMB users' companies. | -| Connections | Create new and manage existing data connections for a company. | -| Configuration | View and manage mapping configuration and defaults for expense transactions. | -| Sync | Monitor the status of data syncs. | -| Expenses | Create and update transactions that represent your customers' spend. | -| Transfers | Create and update transactions that represent the movement of your customers' money. | -| Reimbursements | Create and update transactions that represent your customers' repayable spend. | -| Attachments | Attach receipts to a transaction for a complete audit trail. | -| Transaction status | Monitor the status of individual transactions in data syncs. | -| Manage data | Control and monitor the retrieval of data from an integration. | -| Push operations | View historic push operations. | -| Accounts | Create accounts and view account schemas. | -| Customers | Get, create, and update customers. | -| Suppliers | Get, create, and update suppliers. | - - -### Available Operations diff --git a/sync-for-expenses/docs/sdks/companies/README.md b/sync-for-expenses/docs/sdks/companies/README.md index ac445a094..42963b2e8 100644 --- a/sync-for-expenses/docs/sdks/companies/README.md +++ b/sync-for-expenses/docs/sdks/companies/README.md @@ -1,5 +1,4 @@ # Companies -(*companies*) ## Overview @@ -11,6 +10,7 @@ Create and manage your SMB users' companies. * [delete](#delete) - Delete a company * [get](#get) - Get company * [list](#list) - List companies +* [replace](#replace) - Replace company * [update](#update) - Update company ## create @@ -22,24 +22,95 @@ Each company can have multiple [connections](https://docs.codat.io/sync-for-expe If forbidden characters (see `name` pattern) are present in the request, a company will be created with the forbidden characters removed. For example, `Company (Codat[1])` with be created as `Company Codat1`. -### Example Usage +### Example Usage: Malformed query + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared + + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + + res = codat_sync_expenses.companies.create(request={ + "description": "Requested early access to the new financing scheme.", + "name": "Bank of Dave", + }) + + # Handle response + print(res) + +``` +### Example Usage: With a description + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared + + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + + res = codat_sync_expenses.companies.create(request={ + "description": "Technology services, including web and app design and development", + "name": "Technicalium", + }) + + # Handle response + print(res) + +``` +### Example Usage: With a tag + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared + + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + + res = codat_sync_expenses.companies.create(request={ + "description": "Requested early access to the new financing scheme.", + "name": "Bank of Dave", + }) + + # Handle response + print(res) + +``` +### Example Usage: With no description + ```python from codat_sync_for_expenses import CodatSyncExpenses from codat_sync_for_expenses.models import shared + with CodatSyncExpenses( security=shared.Security( auth_header="Basic BASE_64_ENCODED(API_KEY)", ), ) as codat_sync_expenses: + res = codat_sync_expenses.companies.create(request={ "name": "Technicalium", }) - if res is not None: - # handle response - pass + # Handle response + print(res) ``` @@ -56,10 +127,11 @@ with CodatSyncExpenses( ### Errors -| Error Type | Status Code | Content Type | -| --------------------------------- | --------------------------------- | --------------------------------- | -| errors.ErrorMessage | 400, 401, 402, 403, 429, 500, 503 | application/json | -| errors.SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| ----------------------- | ----------------------- | ----------------------- | +| errors.ErrorMessage | 400, 401, 402, 403, 429 | application/json | +| errors.ErrorMessage | 500, 503 | application/json | +| errors.SDKError | 4XX, 5XX | \*/\* | ## delete @@ -71,15 +143,18 @@ Each company can have multiple [connections](https://docs.codat.io/sync-for-expe ### Example Usage + ```python from codat_sync_for_expenses import CodatSyncExpenses from codat_sync_for_expenses.models import shared + with CodatSyncExpenses( security=shared.Security( auth_header="Basic BASE_64_ENCODED(API_KEY)", ), ) as codat_sync_expenses: + codat_sync_expenses.companies.delete(request={ "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", }) @@ -97,10 +172,11 @@ with CodatSyncExpenses( ### Errors -| Error Type | Status Code | Content Type | -| --------------------------------- | --------------------------------- | --------------------------------- | -| errors.ErrorMessage | 401, 402, 403, 404, 429, 500, 503 | application/json | -| errors.SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| ----------------------- | ----------------------- | ----------------------- | +| errors.ErrorMessage | 401, 402, 403, 404, 429 | application/json | +| errors.ErrorMessage | 500, 503 | application/json | +| errors.SDKError | 4XX, 5XX | \*/\* | ## get @@ -110,24 +186,70 @@ A [company](https://docs.codat.io/sync-for-expenses-api#/schemas/Company) repres Each company can have multiple [connections](https://docs.codat.io/sync-for-expenses-api#/schemas/Connection) to different data sources, such as one connection to Xero for accounting data, two connections to Plaid for two bank accounts, and a connection to Zettle for POS data. -### Example Usage +### Example Usage: Parent multi-entity company + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared + + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + + res = codat_sync_expenses.companies.get(request={ + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + }) + + # Handle response + print(res) + +``` +### Example Usage: Simple company + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared + + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + + res = codat_sync_expenses.companies.get(request={ + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + }) + + # Handle response + print(res) + +``` +### Example Usage: Subsidiary multi-entity company + ```python from codat_sync_for_expenses import CodatSyncExpenses from codat_sync_for_expenses.models import shared + with CodatSyncExpenses( security=shared.Security( auth_header="Basic BASE_64_ENCODED(API_KEY)", ), ) as codat_sync_expenses: + res = codat_sync_expenses.companies.get(request={ "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", }) - if res is not None: - # handle response - pass + # Handle response + print(res) ``` @@ -144,10 +266,11 @@ with CodatSyncExpenses( ### Errors -| Error Type | Status Code | Content Type | -| --------------------------------- | --------------------------------- | --------------------------------- | -| errors.ErrorMessage | 401, 402, 403, 404, 429, 500, 503 | application/json | -| errors.SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| ----------------------- | ----------------------- | ----------------------- | +| errors.ErrorMessage | 401, 402, 403, 404, 429 | application/json | +| errors.ErrorMessage | 500, 503 | application/json | +| errors.SDKError | 4XX, 5XX | \*/\* | ## list @@ -156,27 +279,65 @@ with CodatSyncExpenses( A [company](https://docs.codat.io/sync-for-expenses-api#/schemas/Company) represents a business sharing access to their data. Each company can have multiple [connections](https://docs.codat.io/sync-for-expenses-api#/schemas/Connection) to different data sources, such as one connection to Xero for accounting data, two connections to Plaid for two bank accounts, and a connection to Zettle for POS data. -### Example Usage +## Filter by tags + +The *List companies* endpoint supports the filtering of companies using [tags](https://docs.codat.io/using-the-api/managing-companies#add-metadata-to-a-company). It supports the following operators with [Codat’s query language](https://docs.codat.io/using-the-api/querying): + +- equals (`=`) +- not equals (`!=`) +- contains (`~`) + +For example, you can use the querying to filter companies tagged with a specific foreign key, region, or owning team: +- Foreign key: `uid = {yourCustomerId}` +- Region: `region != uk` +- Owning team and region: `region = uk && owningTeam = invoice-finance` + +### Example Usage: List of Companies + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared + + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + + res = codat_sync_expenses.companies.list(request={ + "order_by": "-modifiedDate", + "query": "id=e3334455-1aed-4e71-ab43-6bccf12092ee", + "tags": "region=uk && team=invoice-finance", + }) + + # Handle response + print(res) + +``` +### Example Usage: One company + ```python from codat_sync_for_expenses import CodatSyncExpenses from codat_sync_for_expenses.models import shared + with CodatSyncExpenses( security=shared.Security( auth_header="Basic BASE_64_ENCODED(API_KEY)", ), ) as codat_sync_expenses: + res = codat_sync_expenses.companies.list(request={ "order_by": "-modifiedDate", - "page": 1, - "page_size": 100, "query": "id=e3334455-1aed-4e71-ab43-6bccf12092ee", + "tags": "region=uk && team=invoice-finance", }) - if res is not None: - # handle response - pass + # Handle response + print(res) ``` @@ -193,39 +354,200 @@ with CodatSyncExpenses( ### Errors -| Error Type | Status Code | Content Type | -| -------------------------------------- | -------------------------------------- | -------------------------------------- | -| errors.ErrorMessage | 400, 401, 402, 403, 404, 429, 500, 503 | application/json | -| errors.SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| ---------------------------- | ---------------------------- | ---------------------------- | +| errors.ErrorMessage | 400, 401, 402, 403, 404, 429 | application/json | +| errors.ErrorMessage | 500, 503 | application/json | +| errors.SDKError | 4XX, 5XX | \*/\* | -## update +## replace -Use the *Update company* endpoint to update both the name and description of the company. +Use the *Replace company* endpoint to replace the existing name, description, and tags of the company. Calling the endpoint will replace existing values even if new values haven't been defined in the payload. A [company](https://docs.codat.io/sync-for-expenses-api#/schemas/Company) represents a business sharing access to their data. Each company can have multiple [connections](https://docs.codat.io/sync-for-expenses-api#/schemas/Connection) to different data sources, such as one connection to Xero for accounting data, two connections to Plaid for two bank accounts, and a connection to Zettle for POS data. -### Example Usage +### Example Usage: Unauthorized + ```python from codat_sync_for_expenses import CodatSyncExpenses from codat_sync_for_expenses.models import shared + with CodatSyncExpenses( security=shared.Security( auth_header="Basic BASE_64_ENCODED(API_KEY)", ), ) as codat_sync_expenses: - res = codat_sync_expenses.companies.update(request={ + + res = codat_sync_expenses.companies.replace(request={ + "company_request_body": { + "description": "Requested early access to the new financing scheme.", + "name": "Bank of Dave", + }, + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + }) + + # Handle response + print(res) + +``` +### Example Usage: Update description + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared + + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + + res = codat_sync_expenses.companies.replace(request={ + "company_request_body": { + "description": "Additional documents required", + "name": "Same name", + }, "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + }) + + # Handle response + print(res) + +``` +### Example Usage: Update name + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared + + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + + res = codat_sync_expenses.companies.replace(request={ "company_request_body": { "name": "New Name", }, + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + }) + + # Handle response + print(res) + +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | +| `request` | [operations.ReplaceCompanyRequest](../../models/operations/replacecompanyrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | + +### Response + +**[shared.Company](../../models/shared/company.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| ----------------------- | ----------------------- | ----------------------- | +| errors.ErrorMessage | 401, 402, 403, 404, 429 | application/json | +| errors.ErrorMessage | 500, 503 | application/json | +| errors.SDKError | 4XX, 5XX | \*/\* | + +## update + +Use the *Update company* endpoint to update the name, description, or tags of the company. + +The *Update company* endpoint doesn't have any required fields. If any of the fields provided are `null` or not provided, they won't be included in the update. + +A [company](https://docs.codat.io/sync-for-expenses-api#/schemas/Company) represents a business sharing access to their data. + +### Example Usage: Unauthorized + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared + + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + + res = codat_sync_expenses.companies.update(request={ + "company_update_request": { + "description": "Requested early access to the new financing scheme.", + "name": "Bank of Dave", + }, + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + }) + + # Handle response + print(res) + +``` +### Example Usage: Update name + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared + + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + + res = codat_sync_expenses.companies.update(request={ + "company_update_request": { + "name": "New Name", + }, + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + }) + + # Handle response + print(res) + +``` +### Example Usage: Update tags + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared + + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + + res = codat_sync_expenses.companies.update(request={ + "company_update_request": { + "tags": { + "refrence": "new reference", + }, + }, + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", }) - if res is not None: - # handle response - pass + # Handle response + print(res) ``` @@ -242,7 +564,8 @@ with CodatSyncExpenses( ### Errors -| Error Type | Status Code | Content Type | -| --------------------------------- | --------------------------------- | --------------------------------- | -| errors.ErrorMessage | 401, 402, 403, 404, 429, 500, 503 | application/json | -| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file +| Error Type | Status Code | Content Type | +| ----------------------- | ----------------------- | ----------------------- | +| errors.ErrorMessage | 401, 402, 403, 404, 429 | application/json | +| errors.ErrorMessage | 500, 503 | application/json | +| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/sync-for-expenses/docs/sdks/companyinfo/README.md b/sync-for-expenses/docs/sdks/companyinfo/README.md index 8523031b2..d67a192bc 100644 --- a/sync-for-expenses/docs/sdks/companyinfo/README.md +++ b/sync-for-expenses/docs/sdks/companyinfo/README.md @@ -1,5 +1,4 @@ # CompanyInfo -(*company_info*) ## Overview @@ -15,22 +14,24 @@ Gets the latest basic info for a company. ### Example Usage + ```python from codat_sync_for_expenses import CodatSyncExpenses from codat_sync_for_expenses.models import shared + with CodatSyncExpenses( security=shared.Security( auth_header="Basic BASE_64_ENCODED(API_KEY)", ), ) as codat_sync_expenses: + res = codat_sync_expenses.company_info.get(request={ "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", }) - if res is not None: - # handle response - pass + # Handle response + print(res) ``` @@ -47,7 +48,8 @@ with CodatSyncExpenses( ### Errors -| Error Type | Status Code | Content Type | -| -------------------------------------- | -------------------------------------- | -------------------------------------- | -| errors.ErrorMessage | 401, 402, 403, 404, 409, 429, 500, 503 | application/json | -| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file +| Error Type | Status Code | Content Type | +| ---------------------------- | ---------------------------- | ---------------------------- | +| errors.ErrorMessage | 401, 402, 403, 404, 409, 429 | application/json | +| errors.ErrorMessage | 500, 503 | application/json | +| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/sync-for-expenses/docs/sdks/configuration/README.md b/sync-for-expenses/docs/sdks/configuration/README.md index ce6dfde2f..59d0ed9bc 100644 --- a/sync-for-expenses/docs/sdks/configuration/README.md +++ b/sync-for-expenses/docs/sdks/configuration/README.md @@ -1,5 +1,4 @@ # Configuration -(*configuration*) ## Overview @@ -16,22 +15,24 @@ Gets a company's expense sync configuration ### Example Usage + ```python from codat_sync_for_expenses import CodatSyncExpenses from codat_sync_for_expenses.models import shared + with CodatSyncExpenses( security=shared.Security( auth_header="Basic BASE_64_ENCODED(API_KEY)", ), ) as codat_sync_expenses: + res = codat_sync_expenses.configuration.get(request={ "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", }) - if res is not None: - # handle response - pass + # Handle response + print(res) ``` @@ -48,10 +49,11 @@ with CodatSyncExpenses( ### Errors -| Error Type | Status Code | Content Type | -| --------------------------------- | --------------------------------- | --------------------------------- | -| errors.ErrorMessage | 401, 402, 403, 404, 429, 500, 503 | application/json | -| errors.SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| ----------------------- | ----------------------- | ----------------------- | +| errors.ErrorMessage | 401, 402, 403, 404, 429 | application/json | +| errors.ErrorMessage | 500, 503 | application/json | +| errors.SDKError | 4XX, 5XX | \*/\* | ## set @@ -59,17 +61,19 @@ Sets a company's expense sync configuration ### Example Usage + ```python from codat_sync_for_expenses import CodatSyncExpenses from codat_sync_for_expenses.models import shared + with CodatSyncExpenses( security=shared.Security( auth_header="Basic BASE_64_ENCODED(API_KEY)", ), ) as codat_sync_expenses: + res = codat_sync_expenses.configuration.set(request={ - "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", "company_configuration": { "bank_account": { "id": "32", @@ -77,11 +81,11 @@ with CodatSyncExpenses( "customer": {}, "supplier": {}, }, + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", }) - if res is not None: - # handle response - pass + # Handle response + print(res) ``` @@ -98,7 +102,8 @@ with CodatSyncExpenses( ### Errors -| Error Type | Status Code | Content Type | -| -------------------------------------- | -------------------------------------- | -------------------------------------- | -| errors.ErrorMessage | 400, 401, 402, 403, 404, 429, 500, 503 | application/json | -| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file +| Error Type | Status Code | Content Type | +| ---------------------------- | ---------------------------- | ---------------------------- | +| errors.ErrorMessage | 400, 401, 402, 403, 404, 429 | application/json | +| errors.ErrorMessage | 500, 503 | application/json | +| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/sync-for-expenses/docs/sdks/connections/README.md b/sync-for-expenses/docs/sdks/connections/README.md index abe4b6e16..2068f6abb 100644 --- a/sync-for-expenses/docs/sdks/connections/README.md +++ b/sync-for-expenses/docs/sdks/connections/README.md @@ -1,5 +1,4 @@ # Connections -(*connections*) ## Overview @@ -20,27 +19,54 @@ Create new and manage existing data connections for a company. Use the [List Integrations](https://docs.codat.io/platform-api#/operations/list-integrations) endpoint to access valid platform keys. -### Example Usage +### Example Usage: Connection + ```python from codat_sync_for_expenses import CodatSyncExpenses from codat_sync_for_expenses.models import shared + with CodatSyncExpenses( security=shared.Security( auth_header="Basic BASE_64_ENCODED(API_KEY)", ), ) as codat_sync_expenses: + res = codat_sync_expenses.connections.create(request={ + "request_body": { + "platform_key": "gbol", + }, "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + }) + + # Handle response + print(res) + +``` +### Example Usage: Unauthorized + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared + + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + + res = codat_sync_expenses.connections.create(request={ "request_body": { "platform_key": "gbol", }, + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", }) - if res is not None: - # handle response - pass + # Handle response + print(res) ``` @@ -57,10 +83,11 @@ with CodatSyncExpenses( ### Errors -| Error Type | Status Code | Content Type | -| --------------------------------- | --------------------------------- | --------------------------------- | -| errors.ErrorMessage | 401, 402, 403, 404, 429, 500, 503 | application/json | -| errors.SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| ----------------------- | ----------------------- | ----------------------- | +| errors.ErrorMessage | 401, 402, 403, 404, 429 | application/json | +| errors.ErrorMessage | 500, 503 | application/json | +| errors.SDKError | 4XX, 5XX | \*/\* | ## create_partner_expense_connection @@ -68,22 +95,24 @@ Creates a partner expense data connection ### Example Usage + ```python from codat_sync_for_expenses import CodatSyncExpenses from codat_sync_for_expenses.models import shared + with CodatSyncExpenses( security=shared.Security( auth_header="Basic BASE_64_ENCODED(API_KEY)", ), ) as codat_sync_expenses: + res = codat_sync_expenses.connections.create_partner_expense_connection(request={ "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", }) - if res is not None: - # handle response - pass + # Handle response + print(res) ``` @@ -100,10 +129,11 @@ with CodatSyncExpenses( ### Errors -| Error Type | Status Code | Content Type | -| -------------------------------------- | -------------------------------------- | -------------------------------------- | -| errors.ErrorMessage | 400, 401, 402, 403, 404, 429, 500, 503 | application/json | -| errors.SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| ---------------------------- | ---------------------------- | ---------------------------- | +| errors.ErrorMessage | 400, 401, 402, 403, 404, 429 | application/json | +| errors.ErrorMessage | 500, 503 | application/json | +| errors.SDKError | 4XX, 5XX | \*/\* | ## delete @@ -112,15 +142,18 @@ This operation is not reversible. The end user would need to reauthorize a new d ### Example Usage + ```python from codat_sync_for_expenses import CodatSyncExpenses from codat_sync_for_expenses.models import shared + with CodatSyncExpenses( security=shared.Security( auth_header="Basic BASE_64_ENCODED(API_KEY)", ), ) as codat_sync_expenses: + codat_sync_expenses.connections.delete(request={ "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", "connection_id": "2e9d2c44-f675-40ba-8049-353bfcb5e171", @@ -139,10 +172,11 @@ with CodatSyncExpenses( ### Errors -| Error Type | Status Code | Content Type | -| --------------------------------- | --------------------------------- | --------------------------------- | -| errors.ErrorMessage | 401, 402, 403, 404, 429, 500, 503 | application/json | -| errors.SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| ----------------------- | ----------------------- | ----------------------- | +| errors.ErrorMessage | 401, 402, 403, 404, 429 | application/json | +| errors.ErrorMessage | 500, 503 | application/json | +| errors.SDKError | 4XX, 5XX | \*/\* | ## get @@ -150,23 +184,25 @@ with CodatSyncExpenses( ### Example Usage + ```python from codat_sync_for_expenses import CodatSyncExpenses from codat_sync_for_expenses.models import shared + with CodatSyncExpenses( security=shared.Security( auth_header="Basic BASE_64_ENCODED(API_KEY)", ), ) as codat_sync_expenses: + res = codat_sync_expenses.connections.get(request={ "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", "connection_id": "2e9d2c44-f675-40ba-8049-353bfcb5e171", }) - if res is not None: - # handle response - pass + # Handle response + print(res) ``` @@ -183,10 +219,11 @@ with CodatSyncExpenses( ### Errors -| Error Type | Status Code | Content Type | -| --------------------------------- | --------------------------------- | --------------------------------- | -| errors.ErrorMessage | 401, 402, 403, 404, 429, 500, 503 | application/json | -| errors.SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| ----------------------- | ----------------------- | ----------------------- | +| errors.ErrorMessage | 401, 402, 403, 404, 429 | application/json | +| errors.ErrorMessage | 500, 503 | application/json | +| errors.SDKError | 4XX, 5XX | \*/\* | ## list @@ -194,26 +231,26 @@ with CodatSyncExpenses( ### Example Usage + ```python from codat_sync_for_expenses import CodatSyncExpenses from codat_sync_for_expenses.models import shared + with CodatSyncExpenses( security=shared.Security( auth_header="Basic BASE_64_ENCODED(API_KEY)", ), ) as codat_sync_expenses: + res = codat_sync_expenses.connections.list(request={ "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", "order_by": "-modifiedDate", - "page": 1, - "page_size": 100, "query": "id=e3334455-1aed-4e71-ab43-6bccf12092ee", }) - if res is not None: - # handle response - pass + # Handle response + print(res) ``` @@ -230,10 +267,11 @@ with CodatSyncExpenses( ### Errors -| Error Type | Status Code | Content Type | -| -------------------------------------- | -------------------------------------- | -------------------------------------- | -| errors.ErrorMessage | 400, 401, 402, 403, 404, 429, 500, 503 | application/json | -| errors.SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| ---------------------------- | ---------------------------- | ---------------------------- | +| errors.ErrorMessage | 400, 401, 402, 403, 404, 429 | application/json | +| errors.ErrorMessage | 500, 503 | application/json | +| errors.SDKError | 4XX, 5XX | \*/\* | ## unlink @@ -241,26 +279,28 @@ with CodatSyncExpenses( ### Example Usage + ```python from codat_sync_for_expenses import CodatSyncExpenses from codat_sync_for_expenses.models import shared + with CodatSyncExpenses( security=shared.Security( auth_header="Basic BASE_64_ENCODED(API_KEY)", ), ) as codat_sync_expenses: + res = codat_sync_expenses.connections.unlink(request={ - "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", - "connection_id": "2e9d2c44-f675-40ba-8049-353bfcb5e171", "request_body": { "status": shared.DataConnectionStatus.UNLINKED, }, + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + "connection_id": "2e9d2c44-f675-40ba-8049-353bfcb5e171", }) - if res is not None: - # handle response - pass + # Handle response + print(res) ``` @@ -277,7 +317,8 @@ with CodatSyncExpenses( ### Errors -| Error Type | Status Code | Content Type | -| --------------------------------- | --------------------------------- | --------------------------------- | -| errors.ErrorMessage | 401, 402, 403, 404, 429, 500, 503 | application/json | -| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file +| Error Type | Status Code | Content Type | +| ----------------------- | ----------------------- | ----------------------- | +| errors.ErrorMessage | 401, 402, 403, 404, 429 | application/json | +| errors.ErrorMessage | 500, 503 | application/json | +| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/sync-for-expenses/docs/sdks/customers/README.md b/sync-for-expenses/docs/sdks/customers/README.md index 6e517101f..32263cfd5 100644 --- a/sync-for-expenses/docs/sdks/customers/README.md +++ b/sync-for-expenses/docs/sdks/customers/README.md @@ -1,5 +1,4 @@ # Customers -(*customers*) ## Overview @@ -18,148 +17,948 @@ The *Create customer* endpoint creates a new [customer](https://docs.codat.io/sy [Customers](https://docs.codat.io/sync-for-expenses-api#/schemas/Customer) are people or organizations that buy goods or services from the SMB. -**Integration-specific behaviour** +**Integration-specific behavior** Required data may vary by integration. To see what data to post, first call [Get create/update customer model](https://docs.codat.io/sync-for-expenses-api#/operations/get-create-update-customers-model). ### Example Usage + ```python from codat_sync_for_expenses import CodatSyncExpenses from codat_sync_for_expenses.models import shared + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + + res = codat_sync_expenses.customers.create(request={ + "customer": { + "contacts": [ + { + "modified_date": "2022-10-23T00:00:00Z", + "phone": None, + "status": shared.CustomerStatus.UNKNOWN, + }, + ], + "default_currency": "GBP", + "modified_date": "2022-10-23T00:00:00Z", + "source_modified_date": "2022-10-23T00:00:00Z", + "status": shared.CustomerStatus.UNKNOWN, + }, + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + "connection_id": "2e9d2c44-f675-40ba-8049-353bfcb5e171", + }) + + # Handle response + print(res) + +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | +| `request` | [operations.CreateCustomerRequest](../../models/operations/createcustomerrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | + +### Response + +**[shared.CreateCustomerResponse](../../models/shared/createcustomerresponse.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| ---------------------------- | ---------------------------- | ---------------------------- | +| errors.ErrorMessage | 400, 401, 402, 403, 404, 429 | application/json | +| errors.ErrorMessage | 500, 503 | application/json | +| errors.SDKError | 4XX, 5XX | \*/\* | + +## get + +The *Get customer* endpoint returns a single customer for a given customerId. + +[Customers](https://docs.codat.io/sync-for-expenses-api#/schemas/Customer) are people or organizations that buy goods or services from the SMB. + +Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/sync-for-expenses-api#/operations/refresh-company-data). + + +### Example Usage: Clear Books + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared + + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + + res = codat_sync_expenses.customers.get(request={ + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + "customer_id": "13d946f0-c5d5-42bc-b092-97ece17923ab", + }) + + # Handle response + print(res) + +``` +### Example Usage: Dynamics 365 Business Central + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared + + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + + res = codat_sync_expenses.customers.get(request={ + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + "customer_id": "13d946f0-c5d5-42bc-b092-97ece17923ab", + }) + + # Handle response + print(res) + +``` +### Example Usage: Exact (Netherlands) + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared + + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + + res = codat_sync_expenses.customers.get(request={ + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + "customer_id": "13d946f0-c5d5-42bc-b092-97ece17923ab", + }) + + # Handle response + print(res) + +``` +### Example Usage: Exact (UK) + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared + + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + + res = codat_sync_expenses.customers.get(request={ + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + "customer_id": "13d946f0-c5d5-42bc-b092-97ece17923ab", + }) + + # Handle response + print(res) + +``` +### Example Usage: FreeAgent + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared + + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + + res = codat_sync_expenses.customers.get(request={ + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + "customer_id": "13d946f0-c5d5-42bc-b092-97ece17923ab", + }) + + # Handle response + print(res) + +``` +### Example Usage: FreshBooks + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared + + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + + res = codat_sync_expenses.customers.get(request={ + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + "customer_id": "13d946f0-c5d5-42bc-b092-97ece17923ab", + }) + + # Handle response + print(res) + +``` +### Example Usage: KashFlow + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared + + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + + res = codat_sync_expenses.customers.get(request={ + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + "customer_id": "13d946f0-c5d5-42bc-b092-97ece17923ab", + }) + + # Handle response + print(res) + +``` +### Example Usage: Oracle NetSuite + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared + + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + + res = codat_sync_expenses.customers.get(request={ + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + "customer_id": "13d946f0-c5d5-42bc-b092-97ece17923ab", + }) + + # Handle response + print(res) + +``` +### Example Usage: QuickBooks Desktop + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared + + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + + res = codat_sync_expenses.customers.get(request={ + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + "customer_id": "13d946f0-c5d5-42bc-b092-97ece17923ab", + }) + + # Handle response + print(res) + +``` +### Example Usage: QuickBooks Online + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared + + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + + res = codat_sync_expenses.customers.get(request={ + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + "customer_id": "13d946f0-c5d5-42bc-b092-97ece17923ab", + }) + + # Handle response + print(res) + +``` +### Example Usage: QuickBooks Online Sandbox + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared + + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + + res = codat_sync_expenses.customers.get(request={ + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + "customer_id": "13d946f0-c5d5-42bc-b092-97ece17923ab", + }) + + # Handle response + print(res) + +``` +### Example Usage: Sage 200cloud + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared + + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + + res = codat_sync_expenses.customers.get(request={ + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + "customer_id": "13d946f0-c5d5-42bc-b092-97ece17923ab", + }) + + # Handle response + print(res) + +``` +### Example Usage: Sage 50 (UK) + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared + + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + + res = codat_sync_expenses.customers.get(request={ + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + "customer_id": "13d946f0-c5d5-42bc-b092-97ece17923ab", + }) + + # Handle response + print(res) + +``` +### Example Usage: Sage Business Cloud Accounting + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared + + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + + res = codat_sync_expenses.customers.get(request={ + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + "customer_id": "13d946f0-c5d5-42bc-b092-97ece17923ab", + }) + + # Handle response + print(res) + +``` +### Example Usage: Sage Intacct + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared + + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + + res = codat_sync_expenses.customers.get(request={ + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + "customer_id": "13d946f0-c5d5-42bc-b092-97ece17923ab", + }) + + # Handle response + print(res) + +``` +### Example Usage: Wave + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared + + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + + res = codat_sync_expenses.customers.get(request={ + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + "customer_id": "13d946f0-c5d5-42bc-b092-97ece17923ab", + }) + + # Handle response + print(res) + +``` +### Example Usage: Xero + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared + + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + + res = codat_sync_expenses.customers.get(request={ + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + "customer_id": "13d946f0-c5d5-42bc-b092-97ece17923ab", + }) + + # Handle response + print(res) + +``` +### Example Usage: Zoho Books + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared + + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + + res = codat_sync_expenses.customers.get(request={ + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + "customer_id": "13d946f0-c5d5-42bc-b092-97ece17923ab", + }) + + # Handle response + print(res) + +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | +| `request` | [operations.GetCustomerRequest](../../models/operations/getcustomerrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | + +### Response + +**[shared.Customer](../../models/shared/customer.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| ---------------------------- | ---------------------------- | ---------------------------- | +| errors.ErrorMessage | 401, 402, 403, 404, 409, 429 | application/json | +| errors.ErrorMessage | 500, 503 | application/json | +| errors.SDKError | 4XX, 5XX | \*/\* | + +## list + +The *List customers* endpoint returns a list of [customers](https://docs.codat.io/sync-for-expenses-api#/schemas/Customer) for a given company's connection. + +[Customers](https://docs.codat.io/sync-for-expenses-api#/schemas/Customer) are people or organizations that buy goods or services from the SMB. + +Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/sync-for-expenses-api#/operations/refresh-company-data). + + +### Example Usage: Clear Books + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared + + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + + res = codat_sync_expenses.customers.list(request={ + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + "order_by": "-modifiedDate", + "query": "id=e3334455-1aed-4e71-ab43-6bccf12092ee", + }) + + # Handle response + print(res) + +``` +### Example Usage: Dynamics 365 Business Central + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared + + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + + res = codat_sync_expenses.customers.list(request={ + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + "order_by": "-modifiedDate", + "query": "id=e3334455-1aed-4e71-ab43-6bccf12092ee", + }) + + # Handle response + print(res) + +``` +### Example Usage: Exact (Netherlands) + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared + + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + + res = codat_sync_expenses.customers.list(request={ + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + "order_by": "-modifiedDate", + "query": "id=e3334455-1aed-4e71-ab43-6bccf12092ee", + }) + + # Handle response + print(res) + +``` +### Example Usage: Exact (UK) + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared + + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + + res = codat_sync_expenses.customers.list(request={ + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + "order_by": "-modifiedDate", + "query": "id=e3334455-1aed-4e71-ab43-6bccf12092ee", + }) + + # Handle response + print(res) + +``` +### Example Usage: FreeAgent + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared + + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + + res = codat_sync_expenses.customers.list(request={ + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + "order_by": "-modifiedDate", + "query": "id=e3334455-1aed-4e71-ab43-6bccf12092ee", + }) + + # Handle response + print(res) + +``` +### Example Usage: FreshBooks + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared + + with CodatSyncExpenses( security=shared.Security( auth_header="Basic BASE_64_ENCODED(API_KEY)", ), ) as codat_sync_expenses: - res = codat_sync_expenses.customers.create(request={ + + res = codat_sync_expenses.customers.list(request={ "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", - "connection_id": "2e9d2c44-f675-40ba-8049-353bfcb5e171", - "customer": { - "status": shared.CustomerStatus.UNKNOWN, - "contacts": [ - { - "status": shared.CustomerStatus.ARCHIVED, - "modified_date": "2022-10-23T00:00:00Z", - "phone": [ - { - "type": shared.PhoneNumberType.PRIMARY, - "number": "+44 25691 154789", - }, - ], - }, - ], - "default_currency": "EUR", - "modified_date": "2022-10-23T00:00:00Z", - "source_modified_date": "2022-10-23T00:00:00Z", - }, + "order_by": "-modifiedDate", + "query": "id=e3334455-1aed-4e71-ab43-6bccf12092ee", }) - if res is not None: - # handle response - pass + # Handle response + print(res) ``` +### Example Usage: KashFlow -### Parameters + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | -| `request` | [operations.CreateCustomerRequest](../../models/operations/createcustomerrequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | -### Response +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: -**[shared.CreateCustomerResponse](../../models/shared/createcustomerresponse.md)** + res = codat_sync_expenses.customers.list(request={ + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + "order_by": "-modifiedDate", + "query": "id=e3334455-1aed-4e71-ab43-6bccf12092ee", + }) -### Errors + # Handle response + print(res) -| Error Type | Status Code | Content Type | -| -------------------------------------- | -------------------------------------- | -------------------------------------- | -| errors.ErrorMessage | 400, 401, 402, 403, 404, 429, 500, 503 | application/json | -| errors.SDKError | 4XX, 5XX | \*/\* | +``` +### Example Usage: Oracle NetSuite -## get + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared -The *Get customer* endpoint returns a single customer for a given customerId. -[Customers](https://docs.codat.io/sync-for-expenses-api#/schemas/Customer) are people or organizations that buy goods or services from the SMB. +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: -Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/sync-for-expenses-api#/operations/refresh-company-data). + res = codat_sync_expenses.customers.list(request={ + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + "order_by": "-modifiedDate", + "query": "id=e3334455-1aed-4e71-ab43-6bccf12092ee", + }) + # Handle response + print(res) -### Example Usage +``` +### Example Usage: QuickBooks Desktop + ```python from codat_sync_for_expenses import CodatSyncExpenses from codat_sync_for_expenses.models import shared + with CodatSyncExpenses( security=shared.Security( auth_header="Basic BASE_64_ENCODED(API_KEY)", ), ) as codat_sync_expenses: - res = codat_sync_expenses.customers.get(request={ + + res = codat_sync_expenses.customers.list(request={ "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", - "customer_id": "7110701885", + "order_by": "-modifiedDate", + "query": "id=e3334455-1aed-4e71-ab43-6bccf12092ee", }) - if res is not None: - # handle response - pass + # Handle response + print(res) ``` +### Example Usage: QuickBooks Online -### Parameters + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | -| `request` | [operations.GetCustomerRequest](../../models/operations/getcustomerrequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | -### Response +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: -**[shared.Customer](../../models/shared/customer.md)** + res = codat_sync_expenses.customers.list(request={ + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + "order_by": "-modifiedDate", + "query": "id=e3334455-1aed-4e71-ab43-6bccf12092ee", + }) -### Errors + # Handle response + print(res) -| Error Type | Status Code | Content Type | -| -------------------------------------- | -------------------------------------- | -------------------------------------- | -| errors.ErrorMessage | 401, 402, 403, 404, 409, 429, 500, 503 | application/json | -| errors.SDKError | 4XX, 5XX | \*/\* | +``` +### Example Usage: QuickBooks Online Sandbox -## list + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared -The *List customers* endpoint returns a list of [customers](https://docs.codat.io/sync-for-expenses-api#/schemas/Customer) for a given company's connection. -[Customers](https://docs.codat.io/sync-for-expenses-api#/schemas/Customer) are people or organizations that buy goods or services from the SMB. +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: -Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/sync-for-expenses-api#/operations/refresh-company-data). - + res = codat_sync_expenses.customers.list(request={ + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + "order_by": "-modifiedDate", + "query": "id=e3334455-1aed-4e71-ab43-6bccf12092ee", + }) -### Example Usage + # Handle response + print(res) + +``` +### Example Usage: Sage 200cloud + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared + + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + + res = codat_sync_expenses.customers.list(request={ + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + "order_by": "-modifiedDate", + "query": "id=e3334455-1aed-4e71-ab43-6bccf12092ee", + }) + + # Handle response + print(res) + +``` +### Example Usage: Sage 50 (UK) + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared + + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + + res = codat_sync_expenses.customers.list(request={ + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + "order_by": "-modifiedDate", + "query": "id=e3334455-1aed-4e71-ab43-6bccf12092ee", + }) + + # Handle response + print(res) + +``` +### Example Usage: Sage Business Cloud Accounting + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared + + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + + res = codat_sync_expenses.customers.list(request={ + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + "order_by": "-modifiedDate", + "query": "id=e3334455-1aed-4e71-ab43-6bccf12092ee", + }) + + # Handle response + print(res) + +``` +### Example Usage: Sage Intacct + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared + + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + + res = codat_sync_expenses.customers.list(request={ + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + "order_by": "-modifiedDate", + "query": "id=e3334455-1aed-4e71-ab43-6bccf12092ee", + }) + + # Handle response + print(res) +``` +### Example Usage: Wave + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared + + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + + res = codat_sync_expenses.customers.list(request={ + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + "order_by": "-modifiedDate", + "query": "id=e3334455-1aed-4e71-ab43-6bccf12092ee", + }) + + # Handle response + print(res) + +``` +### Example Usage: Xero + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared + + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + + res = codat_sync_expenses.customers.list(request={ + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + "order_by": "-modifiedDate", + "query": "id=e3334455-1aed-4e71-ab43-6bccf12092ee", + }) + + # Handle response + print(res) + +``` +### Example Usage: Zoho Books + + ```python from codat_sync_for_expenses import CodatSyncExpenses from codat_sync_for_expenses.models import shared + with CodatSyncExpenses( security=shared.Security( auth_header="Basic BASE_64_ENCODED(API_KEY)", ), ) as codat_sync_expenses: + res = codat_sync_expenses.customers.list(request={ "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", "order_by": "-modifiedDate", - "page": 1, - "page_size": 100, "query": "id=e3334455-1aed-4e71-ab43-6bccf12092ee", }) - if res is not None: - # handle response - pass + # Handle response + print(res) ``` @@ -176,10 +975,11 @@ with CodatSyncExpenses( ### Errors -| Error Type | Status Code | Content Type | -| ------------------------------------------- | ------------------------------------------- | ------------------------------------------- | -| errors.ErrorMessage | 400, 401, 402, 403, 404, 409, 429, 500, 503 | application/json | -| errors.SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| --------------------------------- | --------------------------------- | --------------------------------- | +| errors.ErrorMessage | 400, 401, 402, 403, 404, 409, 429 | application/json | +| errors.ErrorMessage | 500, 503 | application/json | +| errors.SDKError | 4XX, 5XX | \*/\* | ## update @@ -187,68 +987,50 @@ The *Update customer* endpoint updates an existing [customer](https://docs.codat [Customers](https://docs.codat.io/sync-for-expenses-api#/schemas/Customer) are people or organizations that buy goods or services from the SMB. -**Integration-specific behaviour** +**Integration-specific behavior** Required data may vary by integration. To see what data to post, first call [Get create/update customer model](https://docs.codat.io/sync-for-expenses-api#/operations/get-create-update-customers-model). ### Example Usage + ```python from codat_sync_for_expenses import CodatSyncExpenses from codat_sync_for_expenses.models import shared + with CodatSyncExpenses( security=shared.Security( auth_header="Basic BASE_64_ENCODED(API_KEY)", ), ) as codat_sync_expenses: + res = codat_sync_expenses.customers.update(request={ - "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", - "connection_id": "2e9d2c44-f675-40ba-8049-353bfcb5e171", - "customer_id": "EILBDVJVNUAGVKRQ", "customer": { - "status": shared.CustomerStatus.ARCHIVED, "contacts": [ { - "status": shared.CustomerStatus.ACTIVE, "modified_date": "2022-10-23T00:00:00Z", "phone": [ { - "type": shared.PhoneNumberType.FAX, - "number": "01224 658 999", - }, - ], - }, - { - "status": shared.CustomerStatus.ARCHIVED, - "modified_date": "2022-10-23T00:00:00Z", - "phone": [ - { - "type": shared.PhoneNumberType.UNKNOWN, - "number": "(877) 492-8687", - }, - ], - }, - { - "status": shared.CustomerStatus.ARCHIVED, - "modified_date": "2022-10-23T00:00:00Z", - "phone": [ - { - "type": shared.PhoneNumberType.PRIMARY, "number": "+44 25691 154789", + "type": shared.Type.PRIMARY, }, ], + "status": shared.CustomerStatus.UNKNOWN, }, ], - "default_currency": "EUR", + "default_currency": "GBP", "modified_date": "2022-10-23T00:00:00Z", "source_modified_date": "2022-10-23T00:00:00Z", + "status": shared.CustomerStatus.ACTIVE, }, + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + "connection_id": "2e9d2c44-f675-40ba-8049-353bfcb5e171", + "customer_id": "13d946f0-c5d5-42bc-b092-97ece17923ab", }) - if res is not None: - # handle response - pass + # Handle response + print(res) ``` @@ -265,7 +1047,8 @@ with CodatSyncExpenses( ### Errors -| Error Type | Status Code | Content Type | -| -------------------------------------- | -------------------------------------- | -------------------------------------- | -| errors.ErrorMessage | 400, 401, 402, 403, 404, 429, 500, 503 | application/json | -| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file +| Error Type | Status Code | Content Type | +| ---------------------------- | ---------------------------- | ---------------------------- | +| errors.ErrorMessage | 400, 401, 402, 403, 404, 429 | application/json | +| errors.ErrorMessage | 500, 503 | application/json | +| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/sync-for-expenses/docs/sdks/expenses/README.md b/sync-for-expenses/docs/sdks/expenses/README.md index 2cfc241f9..7d6df159a 100644 --- a/sync-for-expenses/docs/sdks/expenses/README.md +++ b/sync-for-expenses/docs/sdks/expenses/README.md @@ -1,5 +1,4 @@ # Expenses -(*expenses*) ## Overview @@ -25,67 +24,250 @@ The *Create expense* endpoint creates an [expense transaction](https://docs.coda | QuickBooks Desktop | Yes | | QuickBooks Online | Yes | | Oracle NetSuite | Yes | +| Sage Intacct | Yes | | Xero | Yes | +| Zoho Books | Yes | -### Example Usage +### Example Usage: Example 1 + + ```python from codat_sync_for_expenses import CodatSyncExpenses from codat_sync_for_expenses.models import shared from decimal import Decimal + with CodatSyncExpenses( security=shared.Security( auth_header="Basic BASE_64_ENCODED(API_KEY)", ), ) as codat_sync_expenses: + res = codat_sync_expenses.expenses.create(request={ + "request_body": [ + { + "bank_account_ref": { + "id": "97", + }, + "contact_ref": { + "id": "430", + }, + "currency": "GBP", + "currency_rate": Decimal("1"), + "id": "a44135b0-6882-489a-83fe-a0c57a4afb19", + "issue_date": "2024-05-21T00:00:00+00:00", + "lines": [ + shared.ExpenseTransactionLine( + account_ref=shared.RecordRef( + id="35", + ), + invoice_to=shared.InvoiceTo( + id="504", + type=shared.InvoiceToType.CUSTOMER, + ), + net_amount=Decimal("100"), + tax_amount=Decimal("20"), + tax_rate_ref=shared.RecordRef( + id="23_Bills", + ), + tracking_refs=[ + shared.TrackingRef( + id="DEPARTMENT_3", + ), + shared.TrackingRef(), + ], + ), + ], + "merchant_name": "Amazon UK", + "notes": "amazon purchase", + "type": shared.ExpenseTransactionType.PAYMENT, + }, + ], "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + }) + + # Handle response + print(res) + +``` +### Example Usage: Malformed query + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared +from decimal import Decimal + + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + + res = codat_sync_expenses.expenses.create(request={ "request_body": [ { + "bank_account_ref": { + "id": "97", + }, + "contact_ref": { + "id": "430", + }, "currency": "GBP", - "id": "4d7c6929-7770-412b-91bb-44d3bc71d111", + "currency_rate": Decimal("1"), + "id": "a44135b0-6882-489a-83fe-a0c57a4afb19", "issue_date": "2024-05-21T00:00:00+00:00", + "lines": [ + shared.ExpenseTransactionLine( + account_ref=shared.RecordRef( + id="35", + ), + invoice_to=shared.InvoiceTo( + id="504", + type=shared.InvoiceToType.CUSTOMER, + ), + net_amount=Decimal("100"), + tax_amount=Decimal("20"), + tax_rate_ref=shared.RecordRef( + id="23_Bills", + ), + tracking_refs=[ + shared.TrackingRef( + id="DEPARTMENT_3", + ), + shared.TrackingRef(), + ], + ), + ], + "merchant_name": "Amazon UK", + "notes": "amazon purchase", "type": shared.ExpenseTransactionType.PAYMENT, + }, + ], + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + }) + + # Handle response + print(res) + +``` +### Example Usage: Payment + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared +from decimal import Decimal + + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + + res = codat_sync_expenses.expenses.create(request={ + "request_body": [ + { "bank_account_ref": { "id": "97", }, "contact_ref": { "id": "430", - "type": shared.Type.SUPPLIER, }, + "currency": "GBP", "currency_rate": Decimal("1"), + "id": "4d7c6929-7770-412b-91bb-44d3bc71d111", + "issue_date": "2024-05-21T00:00:00+00:00", "lines": [ - { - "net_amount": Decimal("100"), - "account_ref": { - "id": "35", - }, - "invoice_to": { - "id": "504", - "type": shared.InvoiceToType.CUSTOMER, - }, - "tax_amount": Decimal("20"), - "tax_rate_ref": { - "id": "23_Bills", - }, - "tracking_refs": [ - { - "data_type": shared.TrackingRefDataType.TRACKING_CATEGORIES, - "id": "DEPARTMENT_5", - }, + shared.ExpenseTransactionLine( + account_ref=shared.RecordRef( + id="35", + ), + invoice_to=shared.InvoiceTo( + id="504", + type=shared.InvoiceToType.CUSTOMER, + ), + net_amount=Decimal("100"), + tax_amount=Decimal("20"), + tax_rate_ref=shared.RecordRef( + id="23_Bills", + ), + tracking_refs=[ + shared.TrackingRef( + id="DEPARTMENT_5", + ), ], - }, + ), ], "merchant_name": "Amazon UK", "notes": "APPLE.COM/BILL - 09001077498 - Card Ending: 4590", + "type": shared.ExpenseTransactionType.PAYMENT, }, ], + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", }) - if res is not None: - # handle response - pass + # Handle response + print(res) + +``` +### Example Usage: Refund + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared +from decimal import Decimal + + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + + res = codat_sync_expenses.expenses.create(request={ + "request_body": [ + { + "bank_account_ref": { + "id": "97", + }, + "contact_ref": { + "id": "430", + }, + "currency": "GBP", + "id": "7008d3f2-aeb4-11ed-afa1-0242ac120002", + "issue_date": "2024-02-17T00:00:00+00:00", + "lines": [ + shared.ExpenseTransactionLine( + account_ref=shared.RecordRef( + id="42", + ), + net_amount=Decimal("100"), + tax_amount=Decimal("20"), + tax_rate_ref=shared.RecordRef( + id="23_Bills", + ), + tracking_refs=[ + shared.TrackingRef( + id="DEPARTMENT_6", + ), + ], + ), + ], + "merchant_name": "Amazon UK", + "notes": "APPLE.COM/BILL - 09001077498 - Card Ending: 4590", + "type": shared.ExpenseTransactionType.REFUND, + }, + ], + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + }) + + # Handle response + print(res) ``` @@ -102,10 +284,11 @@ with CodatSyncExpenses( ### Errors -| Error Type | Status Code | Content Type | -| -------------------------------------- | -------------------------------------- | -------------------------------------- | -| errors.ErrorMessage | 400, 401, 402, 403, 404, 429, 500, 503 | application/json | -| errors.SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| ---------------------------- | ---------------------------- | ---------------------------- | +| errors.ErrorMessage | 400, 401, 402, 403, 404, 429 | application/json | +| errors.ErrorMessage | 500, 503 | application/json | +| errors.SDKError | 4XX, 5XX | \*/\* | ## update @@ -113,72 +296,133 @@ The *Update expense* endpoint updates an existing [expense transaction](https:// [Expense transactions](https://docs.codat.io/sync-for-expenses-api#/schemas/UpdateExpenseRequest) represent transactions made with a company debit or credit card. -### Supported Integrations +### Supported integrations The following integrations are supported for the [Payment](https://docs.codat.io/expenses/sync-process/expense-transactions#transaction-types) transaction `type` only: | Integration | Supported | |-----------------------|-----------| | FreeAgent | Yes | +| QuickBooks Desktop | Yes | | QuickBooks Online | Yes | | Oracle NetSuite | Yes | +| Sage Intacct | Yes | | Xero | Yes | +| Zoho Books | Yes | -### Example Usage +#### Integration-specific behavior +| Integration | Specifics | +|-----------------------|-----------| +| Sage Intacct | To sync **debit card expenses**, map the debit card to a Credit Card with the account type set to `Debit`.| + +### Example Usage: Malformed query + + ```python from codat_sync_for_expenses import CodatSyncExpenses from codat_sync_for_expenses.models import shared from decimal import Decimal + with CodatSyncExpenses( security=shared.Security( auth_header="Basic BASE_64_ENCODED(API_KEY)", ), ) as codat_sync_expenses: + res = codat_sync_expenses.expenses.update(request={ - "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", - "transaction_id": "336694d8-2dca-4cb5-a28d-3ccb83e55eee", "update_expense_request": { + "bank_account_ref": { + "id": "787dfb37-5707-4dc0-8a86-8d74e4cc78ea", + }, + "contact_ref": { + "id": "40e3e57c-2322-4898-966c-ca41adfd23fd", + }, "currency": "GBP", - "issue_date": "2024-05-21T00:00:00+00:00", + "issue_date": "2022-06-28T00:00:00.000Z", + "lines": [ + shared.ExpenseTransactionLine( + account_ref=shared.RecordRef( + id="40e3e57c-2322-4898-966c-ca41adfd23fd", + ), + invoice_to=None, + item_ref=None, + net_amount=Decimal("100"), + tax_amount=Decimal("20"), + tax_rate_ref=shared.RecordRef( + id="40e3e57c-2322-4898-966c-ca41adfd23fd", + ), + tracking_refs=None, + ), + ], + "merchant_name": "Amazon UK", + "notes": "APPLE.COM/BILL - 09001077498 - Card Ending: 4590", "type": shared.UpdateExpenseRequestType.PAYMENT, + }, + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + "transaction_id": "336694d8-2dca-4cb5-a28d-3ccb83e55eee", + }) + + # Handle response + print(res) + +``` +### Example Usage: Payment + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared +from decimal import Decimal + + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + + res = codat_sync_expenses.expenses.update(request={ + "update_expense_request": { "bank_account_ref": { "id": "97", }, "contact_ref": { "id": "430", - "type": shared.Type.SUPPLIER, }, + "currency": "GBP", "currency_rate": Decimal("1"), + "issue_date": "2024-05-21T00:00:00+00:00", "lines": [ - { - "net_amount": Decimal("100"), - "account_ref": { - "id": "35", - }, - "invoice_to": { - "id": "504", - "type": shared.InvoiceToType.CUSTOMER, - }, - "tax_amount": Decimal("20"), - "tax_rate_ref": { - "id": "23_Bills", - }, - "tracking_refs": [ - { - "data_type": shared.TrackingRefDataType.TRACKING_CATEGORIES, - "id": "DEPARTMENT_5", - }, + shared.ExpenseTransactionLine( + account_ref=shared.RecordRef( + id="35", + ), + invoice_to=shared.InvoiceTo( + id="504", + type=shared.InvoiceToType.CUSTOMER, + ), + net_amount=Decimal("100"), + tax_amount=Decimal("20"), + tax_rate_ref=shared.RecordRef( + id="23_Bills", + ), + tracking_refs=[ + shared.TrackingRef( + id="DEPARTMENT_5", + ), ], - }, + ), ], "merchant_name": "Amazon UK", "notes": "APPLE.COM/BILL - 09001077498 - Card Ending: 4590", + "type": shared.UpdateExpenseRequestType.PAYMENT, }, + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + "transaction_id": "336694d8-2dca-4cb5-a28d-3ccb83e55eee", }) - if res is not None: - # handle response - pass + # Handle response + print(res) ``` @@ -195,7 +439,8 @@ with CodatSyncExpenses( ### Errors -| Error Type | Status Code | Content Type | -| ------------------------------------------- | ------------------------------------------- | ------------------------------------------- | -| errors.ErrorMessage | 400, 401, 402, 403, 404, 422, 429, 500, 503 | application/json | -| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file +| Error Type | Status Code | Content Type | +| --------------------------------- | --------------------------------- | --------------------------------- | +| errors.ErrorMessage | 400, 401, 402, 403, 404, 422, 429 | application/json | +| errors.ErrorMessage | 500, 503 | application/json | +| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/sync-for-expenses/docs/sdks/managedata/README.md b/sync-for-expenses/docs/sdks/managedata/README.md index 748d84658..5bd5f931b 100644 --- a/sync-for-expenses/docs/sdks/managedata/README.md +++ b/sync-for-expenses/docs/sdks/managedata/README.md @@ -1,5 +1,4 @@ # ManageData -(*manage_data*) ## Overview @@ -19,22 +18,24 @@ Get the state of each data type for a company ### Example Usage + ```python from codat_sync_for_expenses import CodatSyncExpenses from codat_sync_for_expenses.models import shared + with CodatSyncExpenses( security=shared.Security( auth_header="Basic BASE_64_ENCODED(API_KEY)", ), ) as codat_sync_expenses: + res = codat_sync_expenses.manage_data.get(request={ "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", }) - if res is not None: - # handle response - pass + # Handle response + print(res) ``` @@ -51,10 +52,11 @@ with CodatSyncExpenses( ### Errors -| Error Type | Status Code | Content Type | -| --------------------------------- | --------------------------------- | --------------------------------- | -| errors.ErrorMessage | 401, 402, 403, 404, 429, 500, 503 | application/json | -| errors.SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| ----------------------- | ----------------------- | ----------------------- | +| errors.ErrorMessage | 401, 402, 403, 404, 429 | application/json | +| errors.ErrorMessage | 500, 503 | application/json | +| errors.SDKError | 4XX, 5XX | \*/\* | ## get_pull_operation @@ -62,23 +64,25 @@ Retrieve information about a single dataset or pull operation. ### Example Usage + ```python from codat_sync_for_expenses import CodatSyncExpenses from codat_sync_for_expenses.models import shared + with CodatSyncExpenses( security=shared.Security( auth_header="Basic BASE_64_ENCODED(API_KEY)", ), ) as codat_sync_expenses: + res = codat_sync_expenses.manage_data.get_pull_operation(request={ "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", - "dataset_id": "71a4c0fb-8e15-45bd-958d-330b4e6e9f07", + "dataset_id": "fa5f3e86-bd80-49b8-853c-5fbba4b201f5", }) - if res is not None: - # handle response - pass + # Handle response + print(res) ``` @@ -95,10 +99,11 @@ with CodatSyncExpenses( ### Errors -| Error Type | Status Code | Content Type | -| --------------------------------- | --------------------------------- | --------------------------------- | -| errors.ErrorMessage | 401, 402, 403, 404, 429, 500, 503 | application/json | -| errors.SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| ----------------------- | ----------------------- | ----------------------- | +| errors.ErrorMessage | 401, 402, 403, 404, 429 | application/json | +| errors.ErrorMessage | 500, 503 | application/json | +| errors.SDKError | 4XX, 5XX | \*/\* | ## list_pull_operations @@ -106,26 +111,26 @@ Gets the pull operation history (datasets) for a given company. ### Example Usage + ```python from codat_sync_for_expenses import CodatSyncExpenses from codat_sync_for_expenses.models import shared + with CodatSyncExpenses( security=shared.Security( auth_header="Basic BASE_64_ENCODED(API_KEY)", ), ) as codat_sync_expenses: + res = codat_sync_expenses.manage_data.list_pull_operations(request={ "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", "order_by": "-modifiedDate", - "page": 1, - "page_size": 100, "query": "id=e3334455-1aed-4e71-ab43-6bccf12092ee", }) - if res is not None: - # handle response - pass + # Handle response + print(res) ``` @@ -142,10 +147,11 @@ with CodatSyncExpenses( ### Errors -| Error Type | Status Code | Content Type | -| -------------------------------------- | -------------------------------------- | -------------------------------------- | -| errors.ErrorMessage | 400, 401, 402, 403, 404, 429, 500, 503 | application/json | -| errors.SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| ---------------------------- | ---------------------------- | ---------------------------- | +| errors.ErrorMessage | 400, 401, 402, 403, 404, 429 | application/json | +| errors.ErrorMessage | 500, 503 | application/json | +| errors.SDKError | 4XX, 5XX | \*/\* | ## refresh_all_data_types @@ -157,15 +163,18 @@ This is an asynchronous operation, and will bring updated data into Codat from t ### Example Usage + ```python from codat_sync_for_expenses import CodatSyncExpenses from codat_sync_for_expenses.models import shared + with CodatSyncExpenses( security=shared.Security( auth_header="Basic BASE_64_ENCODED(API_KEY)", ), ) as codat_sync_expenses: + codat_sync_expenses.manage_data.refresh_all_data_types(request={ "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", }) @@ -183,10 +192,11 @@ with CodatSyncExpenses( ### Errors -| Error Type | Status Code | Content Type | -| --------------------------------- | --------------------------------- | --------------------------------- | -| errors.ErrorMessage | 401, 402, 403, 404, 429, 500, 503 | application/json | -| errors.SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| ---------------------------- | ---------------------------- | ---------------------------- | +| errors.ErrorMessage | 400, 401, 402, 403, 404, 429 | application/json | +| errors.ErrorMessage | 500, 503 | application/json | +| errors.SDKError | 4XX, 5XX | \*/\* | ## refresh_data_type @@ -196,23 +206,25 @@ This is an asynchronous operation, and will bring updated data into Codat from t ### Example Usage + ```python from codat_sync_for_expenses import CodatSyncExpenses from codat_sync_for_expenses.models import shared + with CodatSyncExpenses( security=shared.Security( auth_header="Basic BASE_64_ENCODED(API_KEY)", ), ) as codat_sync_expenses: + res = codat_sync_expenses.manage_data.refresh_data_type(request={ "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", "data_type": shared.SchemaDataType.INVOICES, }) - if res is not None: - # handle response - pass + # Handle response + print(res) ``` @@ -229,7 +241,8 @@ with CodatSyncExpenses( ### Errors -| Error Type | Status Code | Content Type | -| --------------------------------- | --------------------------------- | --------------------------------- | -| errors.ErrorMessage | 401, 402, 403, 404, 429, 500, 503 | application/json | -| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file +| Error Type | Status Code | Content Type | +| ---------------------------- | ---------------------------- | ---------------------------- | +| errors.ErrorMessage | 400, 401, 402, 403, 404, 429 | application/json | +| errors.ErrorMessage | 500, 503 | application/json | +| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/sync-for-expenses/docs/sdks/mappingoptions/README.md b/sync-for-expenses/docs/sdks/mappingoptions/README.md index e6c3fc935..202c82e69 100644 --- a/sync-for-expenses/docs/sdks/mappingoptions/README.md +++ b/sync-for-expenses/docs/sdks/mappingoptions/README.md @@ -1,5 +1,4 @@ # MappingOptions -(*mapping_options*) ## Overview @@ -15,22 +14,24 @@ Gets the mapping options (accounts, trackingCategories and taxRates) for a compa ### Example Usage + ```python from codat_sync_for_expenses import CodatSyncExpenses from codat_sync_for_expenses.models import shared + with CodatSyncExpenses( security=shared.Security( auth_header="Basic BASE_64_ENCODED(API_KEY)", ), ) as codat_sync_expenses: + res = codat_sync_expenses.mapping_options.get_mapping_options(request={ "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", }) - if res is not None: - # handle response - pass + # Handle response + print(res) ``` @@ -47,7 +48,8 @@ with CodatSyncExpenses( ### Errors -| Error Type | Status Code | Content Type | -| --------------------------------- | --------------------------------- | --------------------------------- | -| errors.ErrorMessage | 401, 402, 403, 404, 429, 500, 503 | application/json | -| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file +| Error Type | Status Code | Content Type | +| ----------------------- | ----------------------- | ----------------------- | +| errors.ErrorMessage | 401, 402, 403, 404, 429 | application/json | +| errors.ErrorMessage | 500, 503 | application/json | +| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/sync-for-expenses/docs/sdks/pushoperations/README.md b/sync-for-expenses/docs/sdks/pushoperations/README.md index 668fc7080..febd1fb5d 100644 --- a/sync-for-expenses/docs/sdks/pushoperations/README.md +++ b/sync-for-expenses/docs/sdks/pushoperations/README.md @@ -1,5 +1,4 @@ # PushOperations -(*push_operations*) ## Overview @@ -16,23 +15,25 @@ Retrieve push operation. ### Example Usage + ```python from codat_sync_for_expenses import CodatSyncExpenses from codat_sync_for_expenses.models import shared + with CodatSyncExpenses( security=shared.Security( auth_header="Basic BASE_64_ENCODED(API_KEY)", ), ) as codat_sync_expenses: + res = codat_sync_expenses.push_operations.get(request={ "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", - "push_operation_key": "b888f774-3e7c-4135-a18c-6b985523c4bc", + "push_operation_key": "660e8684-c0fb-4468-9e2a-b2e3b115d747", }) - if res is not None: - # handle response - pass + # Handle response + print(res) ``` @@ -49,10 +50,11 @@ with CodatSyncExpenses( ### Errors -| Error Type | Status Code | Content Type | -| --------------------------------- | --------------------------------- | --------------------------------- | -| errors.ErrorMessage | 401, 402, 403, 404, 429, 500, 503 | application/json | -| errors.SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| ----------------------- | ----------------------- | ----------------------- | +| errors.ErrorMessage | 401, 402, 403, 404, 429 | application/json | +| errors.ErrorMessage | 500, 503 | application/json | +| errors.SDKError | 4XX, 5XX | \*/\* | ## list @@ -60,26 +62,26 @@ List push operation records. ### Example Usage + ```python from codat_sync_for_expenses import CodatSyncExpenses from codat_sync_for_expenses.models import shared + with CodatSyncExpenses( security=shared.Security( auth_header="Basic BASE_64_ENCODED(API_KEY)", ), ) as codat_sync_expenses: + res = codat_sync_expenses.push_operations.list(request={ "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", "order_by": "-modifiedDate", - "page": 1, - "page_size": 100, "query": "id=e3334455-1aed-4e71-ab43-6bccf12092ee", }) - if res is not None: - # handle response - pass + # Handle response + print(res) ``` @@ -96,7 +98,8 @@ with CodatSyncExpenses( ### Errors -| Error Type | Status Code | Content Type | -| -------------------------------------- | -------------------------------------- | -------------------------------------- | -| errors.ErrorMessage | 400, 401, 402, 403, 404, 429, 500, 503 | application/json | -| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file +| Error Type | Status Code | Content Type | +| ---------------------------- | ---------------------------- | ---------------------------- | +| errors.ErrorMessage | 400, 401, 402, 403, 404, 429 | application/json | +| errors.ErrorMessage | 500, 503 | application/json | +| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/sync-for-expenses/docs/sdks/reimbursements/README.md b/sync-for-expenses/docs/sdks/reimbursements/README.md index 701e45c13..4e7a3037f 100644 --- a/sync-for-expenses/docs/sdks/reimbursements/README.md +++ b/sync-for-expenses/docs/sdks/reimbursements/README.md @@ -1,5 +1,4 @@ # Reimbursements -(*reimbursements*) ## Overview @@ -12,74 +11,199 @@ Create and update transactions that represent your customers' repayable spend. ## create -Use the *Create reimbursable expense* endpoint to submit an employee expense claim in the accounting platform for a given company's connection. - -[Reimbursable expense requests](https://docs.codat.io/sync-for-expenses-api#/schemas/ReimbursableExpenseTransactionRequest) are reflected in the accounting software in the form of **Bills** against an employee (who exists as a supplier in the accounting platform). - -### Supported Integrations -| Integration | Supported | -|-----------------------|-----------| -| FreeAgent | Yes | -| QuickBooks Desktop | Yes | -| QuickBooks Online | Yes | +Use the *Create reimbursable expense* endpoint to submit an employee expense claim in the accounting platform for a given company's connection. + +[Reimbursable expense requests](https://docs.codat.io/sync-for-expenses-api#/schemas/ReimbursableExpenseTransactionRequest) are reflected in the accounting software in the form of **Bills** against an employee (who exists as a supplier in the accounting platform). + +### Supported Integrations +| Integration | Supported | +|-----------------------|-----------| +| FreeAgent | Yes | +| QuickBooks Desktop | Yes | +| QuickBooks Online | Yes | | Oracle NetSuite | Yes | +| Zoho Books | Yes | +| Sage Intacct | Yes | -### Example Usage +### Example Usage: Create reimbursable expense + ```python from codat_sync_for_expenses import CodatSyncExpenses from codat_sync_for_expenses.models import shared from decimal import Decimal + with CodatSyncExpenses( security=shared.Security( auth_header="Basic BASE_64_ENCODED(API_KEY)", ), ) as codat_sync_expenses: + res = codat_sync_expenses.reimbursements.create(request={ - "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", "request_body": [ { "contact_ref": { "id": "752", }, "currency": "GBP", + "currency_rate": Decimal("1"), "due_date": "2024-05-21", "id": "4d7c6929-7770-412b-91bb-44d3bc71d111", "issue_date": "2024-05-21", - "currency_rate": Decimal("1"), "lines": [ - { - "net_amount": Decimal("100"), - "account_ref": { - "id": "35", - }, - "description": "Hotel", - "invoice_to": { - "id": "504", - "type": shared.InvoiceToType.CUSTOMER, - }, - "tax_amount": Decimal("20"), - "tax_rate_ref": { - "id": "23_Bills", - }, - "tracking_refs": [ - { - "data_type": shared.TrackingRefDataType.TRACKING_CATEGORIES, - "id": "DEPARTMENT_5", - }, + shared.ReimbursableExpenseTransactionLine( + account_ref=shared.RecordRef( + id="35", + ), + description="Hotel", + invoice_to=shared.InvoiceTo( + id="504", + type=shared.InvoiceToType.CUSTOMER, + ), + net_amount=Decimal("100"), + tax_amount=Decimal("20"), + tax_rate_ref=shared.RecordRef( + id="23_Bills", + ), + tracking_refs=[ + shared.TrackingRef( + id="DEPARTMENT_5", + ), ], - }, + ), ], "notes": "APPLE.COM/BILL - 09001077498 - Card Ending: 4590", "reference": "expenses w/c 01/07", }, ], + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", }) - if res is not None: - # handle response - pass + # Handle response + print(res) + +``` +### Example Usage: Example 1 + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared +from decimal import Decimal + + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + + res = codat_sync_expenses.reimbursements.create(request={ + "request_body": [ + { + "ap_account_ref": None, + "contact_ref": { + "id": "40e3e57c-2322-4898-966c-ca41adfd23fd", + }, + "currency": "GBP", + "due_date": "2022-10-23T00:00:00Z", + "id": "4d7c6929-7770-412b-91bb-44d3bc71d111", + "issue_date": "2022-10-23T00:00:00Z", + "lines": [ + shared.ReimbursableExpenseTransactionLine( + account_ref=shared.RecordRef( + id="40e3e57c-2322-4898-966c-ca41adfd23fd", + ), + description="2-night hotel stay", + invoice_to=shared.InvoiceTo( + id="80000002-1674552702", + type=shared.InvoiceToType.CUSTOMER, + ), + item_ref=shared.ItemRef( + id="80000002-1675158984", + ), + net_amount=Decimal("100"), + tax_amount=Decimal("20"), + tax_rate_ref=shared.RecordRef( + id="40e3e57c-2322-4898-966c-ca41adfd23fd", + ), + tracking_refs=[ + shared.TrackingRef( + id="e9a1b63d-9ff0-40e7-8038-016354b987e6", + ), + ], + ), + ], + "notes": "APPLE.COM/BILL - 09001077498 - Card Ending: 4590", + }, + ], + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + }) + + # Handle response + print(res) + +``` +### Example Usage: Malformed query + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared +from decimal import Decimal + + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + + res = codat_sync_expenses.reimbursements.create(request={ + "request_body": [ + { + "ap_account_ref": None, + "contact_ref": { + "id": "40e3e57c-2322-4898-966c-ca41adfd23fd", + }, + "currency": "GBP", + "due_date": "2022-10-23T00:00:00Z", + "id": "4d7c6929-7770-412b-91bb-44d3bc71d111", + "issue_date": "2022-10-23T00:00:00Z", + "lines": [ + shared.ReimbursableExpenseTransactionLine( + account_ref=shared.RecordRef( + id="40e3e57c-2322-4898-966c-ca41adfd23fd", + ), + description="2-night hotel stay", + invoice_to=shared.InvoiceTo( + id="80000002-1674552702", + type=shared.InvoiceToType.CUSTOMER, + ), + item_ref=shared.ItemRef( + id="80000002-1675158984", + ), + net_amount=Decimal("100"), + tax_amount=Decimal("20"), + tax_rate_ref=shared.RecordRef( + id="40e3e57c-2322-4898-966c-ca41adfd23fd", + ), + tracking_refs=[ + shared.TrackingRef( + id="e9a1b63d-9ff0-40e7-8038-016354b987e6", + ), + ], + ), + ], + "notes": "APPLE.COM/BILL - 09001077498 - Card Ending: 4590", + }, + ], + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + }) + + # Handle response + print(res) ``` @@ -96,78 +220,204 @@ with CodatSyncExpenses( ### Errors -| Error Type | Status Code | Content Type | -| -------------------------------------- | -------------------------------------- | -------------------------------------- | -| errors.ErrorMessage | 400, 401, 402, 403, 404, 429, 500, 503 | application/json | -| errors.SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| ---------------------------- | ---------------------------- | ---------------------------- | +| errors.ErrorMessage | 400, 401, 402, 403, 404, 429 | application/json | +| errors.ErrorMessage | 500, 503 | application/json | +| errors.SDKError | 4XX, 5XX | \*/\* | ## update -The *Update reimbursable expense* endpoint updates an existing employee expense claim in the accounting platform for a given company's connection. - -Updating an existing [reimbursable expense transaction](https://docs.codat.io/sync-for-expenses-api#/schemas/UpdateReimbursableExpenseTransactionRequest) will update the existing **bill** against an employee (who exists as a supplier in the accounting software). - -### Supported Integrations -| Integration | Supported | -|-----------------------|-----------| -| FreeAgent | Yes | -| QuickBooks Online | Yes | +The *Update reimbursable expense* endpoint updates an existing employee expense claim in the accounting platform for a given company's connection. + +Updating an existing [reimbursable expense transaction](https://docs.codat.io/sync-for-expenses-api#/schemas/UpdateReimbursableExpenseTransactionRequest) will update the existing **bill** against an employee (who exists as a supplier in the accounting software). + +### Supported Integrations +| Integration | Supported | +|-----------------------|-----------| +| FreeAgent | Yes | +| QuickBooks Online | Yes | | Oracle NetSuite | Yes | +| Sage Intacct | Yes | +| Zoho Books | Yes | + +### Example Usage: Example 1 + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared +from decimal import Decimal + + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + + res = codat_sync_expenses.reimbursements.update(request={ + "update_reimbursable_expense_transaction_request": { + "ap_account_ref": { + "id": "8000004C-1724173136", + }, + "contact_ref": { + "id": "40e3e57c-2322-4898-966c-ca41adfd23fd", + }, + "currency": "GBP", + "due_date": "2022-10-23T00:00:00Z", + "issue_date": "2022-10-23T00:00:00Z", + "lines": [ + shared.ReimbursableExpenseTransactionLine( + account_ref=shared.RecordRef( + id="40e3e57c-2322-4898-966c-ca41adfd23fd", + ), + description="2-night hotel stay", + invoice_to=shared.InvoiceTo( + id="80000002-1674552702", + type=shared.InvoiceToType.CUSTOMER, + ), + item_ref=shared.ItemRef( + id="80000002-1675158984", + ), + net_amount=Decimal("100"), + tax_amount=Decimal("20"), + tax_rate_ref=shared.RecordRef( + id="40e3e57c-2322-4898-966c-ca41adfd23fd", + ), + tracking_refs=[ + shared.TrackingRef( + id="e9a1b63d-9ff0-40e7-8038-016354b987e6", + ), + ], + ), + ], + "notes": "APPLE.COM/BILL - 09001077498 - Card Ending: 4590", + }, + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + "transaction_id": "336694d8-2dca-4cb5-a28d-3ccb83e55eee", + }) + + # Handle response + print(res) -### Example Usage +``` +### Example Usage: Malformed query + ```python from codat_sync_for_expenses import CodatSyncExpenses from codat_sync_for_expenses.models import shared from decimal import Decimal + with CodatSyncExpenses( security=shared.Security( auth_header="Basic BASE_64_ENCODED(API_KEY)", ), ) as codat_sync_expenses: + res = codat_sync_expenses.reimbursements.update(request={ + "update_reimbursable_expense_transaction_request": { + "ap_account_ref": { + "id": "8000004C-1724173136", + }, + "contact_ref": { + "id": "40e3e57c-2322-4898-966c-ca41adfd23fd", + }, + "currency": "GBP", + "due_date": "2022-10-23T00:00:00Z", + "issue_date": "2022-10-23T00:00:00Z", + "lines": [ + shared.ReimbursableExpenseTransactionLine( + account_ref=shared.RecordRef( + id="40e3e57c-2322-4898-966c-ca41adfd23fd", + ), + description="2-night hotel stay", + invoice_to=shared.InvoiceTo( + id="80000002-1674552702", + type=shared.InvoiceToType.CUSTOMER, + ), + item_ref=shared.ItemRef( + id="80000002-1675158984", + ), + net_amount=Decimal("100"), + tax_amount=Decimal("20"), + tax_rate_ref=shared.RecordRef( + id="40e3e57c-2322-4898-966c-ca41adfd23fd", + ), + tracking_refs=[ + shared.TrackingRef( + id="e9a1b63d-9ff0-40e7-8038-016354b987e6", + ), + ], + ), + ], + "notes": "APPLE.COM/BILL - 09001077498 - Card Ending: 4590", + }, "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", "transaction_id": "336694d8-2dca-4cb5-a28d-3ccb83e55eee", + }) + + # Handle response + print(res) + +``` +### Example Usage: Update reimbursable expense + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared +from decimal import Decimal + + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + + res = codat_sync_expenses.reimbursements.update(request={ "update_reimbursable_expense_transaction_request": { "contact_ref": { "id": "752", }, "currency": "GBP", + "currency_rate": Decimal("1"), "due_date": "2024-05-21", "issue_date": "2024-05-21", - "currency_rate": Decimal("1"), "lines": [ - { - "net_amount": Decimal("100"), - "account_ref": { - "id": "35", - }, - "description": "Hotel", - "invoice_to": { - "id": "504", - "type": shared.InvoiceToType.CUSTOMER, - }, - "tax_amount": Decimal("20"), - "tax_rate_ref": { - "id": "23_Bills", - }, - "tracking_refs": [ - { - "data_type": shared.TrackingRefDataType.TRACKING_CATEGORIES, - "id": "DEPARTMENT_5", - }, + shared.ReimbursableExpenseTransactionLine( + account_ref=shared.RecordRef( + id="35", + ), + description="Hotel", + invoice_to=shared.InvoiceTo( + id="504", + type=shared.InvoiceToType.CUSTOMER, + ), + net_amount=Decimal("100"), + tax_amount=Decimal("20"), + tax_rate_ref=shared.RecordRef( + id="23_Bills", + ), + tracking_refs=[ + shared.TrackingRef( + id="DEPARTMENT_5", + ), ], - }, + ), ], "notes": "APPLE.COM/BILL - 09001077498 - Card Ending: 4590", "reference": "expenses w/c 01/07", }, + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + "transaction_id": "336694d8-2dca-4cb5-a28d-3ccb83e55eee", }) - if res is not None: - # handle response - pass + # Handle response + print(res) ``` @@ -184,7 +434,8 @@ with CodatSyncExpenses( ### Errors -| Error Type | Status Code | Content Type | -| -------------------------------------- | -------------------------------------- | -------------------------------------- | -| errors.ErrorMessage | 400, 401, 402, 403, 404, 429, 500, 503 | application/json | -| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file +| Error Type | Status Code | Content Type | +| ---------------------------- | ---------------------------- | ---------------------------- | +| errors.ErrorMessage | 400, 401, 402, 403, 404, 429 | application/json | +| errors.ErrorMessage | 500, 503 | application/json | +| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/sync-for-expenses/docs/sdks/suppliers/README.md b/sync-for-expenses/docs/sdks/suppliers/README.md index 1911d58b0..807668a7d 100644 --- a/sync-for-expenses/docs/sdks/suppliers/README.md +++ b/sync-for-expenses/docs/sdks/suppliers/README.md @@ -1,5 +1,4 @@ # Suppliers -(*suppliers*) ## Overview @@ -14,141 +13,1046 @@ Get, create, and update suppliers. ## create -The *Create supplier* endpoint creates a new [supplier](https://docs.codat.io/sync-for-expenses-api#/schemas/Supplier) for a given company's connection. - -[Suppliers](https://docs.codat.io/sync-for-expenses-api#/schemas/Supplier) are people or organizations that provide something, such as a product or service. - -**Integration-specific behaviour** - -Required data may vary by integration. To see what data to post, first call [Get create/update supplier model](https://docs.codat.io/sync-for-expenses-api#/operations/get-create-update-suppliers-model). +The *Create supplier* endpoint creates a new [supplier](https://docs.codat.io/sync-for-expenses-api#/schemas/Supplier) for a given company's connection. +[Suppliers](https://docs.codat.io/sync-for-expenses-api#/schemas/Supplier) are people or organizations that provide something, such as a product or service. + +**Integration-specific behavior** + +Required data may vary by integration. To see what data to post, first call [Get create/update supplier model](https://docs.codat.io/sync-for-expenses-api#/operations/get-create-update-suppliers-model). + +### Supported Integrations + +| Integration | Supported | +|-------------------------------|-----------| +| Dynamics 365 Business Central | Yes | +| FreeAgent | Yes | +| Oracle NetSuite | Yes | +| QuickBooks Desktop | Yes | +| QuickBooks Online | Yes | +| Sage Intacct | Yes | +| Xero | Yes | +| Zoho Books | Yes | + + +### Example Usage: Malformed query + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared + + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + + res = codat_sync_expenses.suppliers.create(request={ + "supplier": { + "addresses": [ + { + "city": "Bakersfield", + "country": "USA", + "line1": "Unit 51", + "line2": "Bakersfield Industrial Estate", + "region": "California", + "type": shared.AccountingAddressType.BILLING, + }, + ], + "contact_name": "Kelly's Industrial Supplies", + "default_currency": "string", + "email_address": "sales@kellysupplies.com", + "id": "C520FFD4-F6F6-4FC2-A6D2-5D7088B2B14F", + "metadata": { + "is_deleted": True, + }, + "modified_date": "2022-10-23T00:00:00Z", + "phone": "07999 999999", + "registration_number": "string", + "source_modified_date": "2022-10-23T00:00:00Z", + "status": shared.SupplierStatus.UNKNOWN, + "supplemental_data": { + "content": { + "property1": { + "property1": "", + "property2": "", + }, + "property2": { + "property1": "", + "property2": "", + }, + }, + }, + "supplier_name": "Kelly's Industrial Supplies", + "tax_number": "string", + }, + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + "connection_id": "2e9d2c44-f675-40ba-8049-353bfcb5e171", + }) + + # Handle response + print(res) + +``` +### Example Usage: Sage Intacct + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared + + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + + res = codat_sync_expenses.suppliers.create(request={ + "supplier": { + "contact_name": "Joe Bloggs", + "id": "73593", + "status": shared.SupplierStatus.ACTIVE, + "supplier_name": "test 20230420 1004", + }, + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + "connection_id": "2e9d2c44-f675-40ba-8049-353bfcb5e171", + }) + + # Handle response + print(res) + +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | +| `request` | [operations.CreateSupplierRequest](../../models/operations/createsupplierrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | + +### Response + +**[shared.CreateSupplierResponse](../../models/shared/createsupplierresponse.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| ---------------------------- | ---------------------------- | ---------------------------- | +| errors.ErrorMessage | 400, 401, 402, 403, 404, 429 | application/json | +| errors.ErrorMessage | 500, 503 | application/json | +| errors.SDKError | 4XX, 5XX | \*/\* | + +## get + +The *Get supplier* endpoint returns a single supplier for a given supplierId. + +[Suppliers](https://docs.codat.io/sync-for-expenses-api#/schemas/Supplier) are people or organizations that provide something, such as a product or service. + +Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/sync-for-expenses-api#/operations/refresh-all-data-types). + +### Supported Integrations + +| Integration | Supported | +|-------------------------------|-----------| +| Dynamics 365 Business Central | Yes | +| FreeAgent | Yes | +| Oracle NetSuite | Yes | +| QuickBooks Desktop | Yes | +| QuickBooks Online | Yes | +| Sage Intacct | Yes | +| Xero | Yes | +| Zoho Books | Yes | + + +### Example Usage: Clear Books + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared + + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + + res = codat_sync_expenses.suppliers.get(request={ + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + "supplier_id": "13d946f0-c5d5-42bc-b092-97ece17923ab", + }) + + # Handle response + print(res) + +``` +### Example Usage: Dynamics 365 Business Central + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared + + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + + res = codat_sync_expenses.suppliers.get(request={ + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + "supplier_id": "13d946f0-c5d5-42bc-b092-97ece17923ab", + }) + + # Handle response + print(res) + +``` +### Example Usage: Exact (Netherlands) + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared + + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + + res = codat_sync_expenses.suppliers.get(request={ + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + "supplier_id": "13d946f0-c5d5-42bc-b092-97ece17923ab", + }) + + # Handle response + print(res) + +``` +### Example Usage: Exact (UK) + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared + + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + + res = codat_sync_expenses.suppliers.get(request={ + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + "supplier_id": "13d946f0-c5d5-42bc-b092-97ece17923ab", + }) + + # Handle response + print(res) + +``` +### Example Usage: FreeAgent + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared + + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + + res = codat_sync_expenses.suppliers.get(request={ + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + "supplier_id": "13d946f0-c5d5-42bc-b092-97ece17923ab", + }) + + # Handle response + print(res) + +``` +### Example Usage: FreshBooks + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared + + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + + res = codat_sync_expenses.suppliers.get(request={ + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + "supplier_id": "13d946f0-c5d5-42bc-b092-97ece17923ab", + }) + + # Handle response + print(res) + +``` +### Example Usage: KashFlow + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared + + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + + res = codat_sync_expenses.suppliers.get(request={ + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + "supplier_id": "13d946f0-c5d5-42bc-b092-97ece17923ab", + }) + + # Handle response + print(res) + +``` +### Example Usage: Oracle NetSuite + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared + + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + + res = codat_sync_expenses.suppliers.get(request={ + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + "supplier_id": "13d946f0-c5d5-42bc-b092-97ece17923ab", + }) + + # Handle response + print(res) + +``` +### Example Usage: QuickBooks Desktop + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared + + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + + res = codat_sync_expenses.suppliers.get(request={ + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + "supplier_id": "13d946f0-c5d5-42bc-b092-97ece17923ab", + }) + + # Handle response + print(res) + +``` +### Example Usage: QuickBooks Online + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared + + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + + res = codat_sync_expenses.suppliers.get(request={ + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + "supplier_id": "13d946f0-c5d5-42bc-b092-97ece17923ab", + }) + + # Handle response + print(res) + +``` +### Example Usage: QuickBooks Online Sandbox + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared + + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + + res = codat_sync_expenses.suppliers.get(request={ + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + "supplier_id": "13d946f0-c5d5-42bc-b092-97ece17923ab", + }) + + # Handle response + print(res) + +``` +### Example Usage: Sage 200cloud + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared + + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + + res = codat_sync_expenses.suppliers.get(request={ + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + "supplier_id": "13d946f0-c5d5-42bc-b092-97ece17923ab", + }) + + # Handle response + print(res) + +``` +### Example Usage: Sage 50 (UK) + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared + + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + + res = codat_sync_expenses.suppliers.get(request={ + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + "supplier_id": "13d946f0-c5d5-42bc-b092-97ece17923ab", + }) + + # Handle response + print(res) + +``` +### Example Usage: Sage Business Cloud Accounting + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared + + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + + res = codat_sync_expenses.suppliers.get(request={ + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + "supplier_id": "13d946f0-c5d5-42bc-b092-97ece17923ab", + }) + + # Handle response + print(res) + +``` +### Example Usage: Sage Intacct + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared + + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + + res = codat_sync_expenses.suppliers.get(request={ + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + "supplier_id": "13d946f0-c5d5-42bc-b092-97ece17923ab", + }) + + # Handle response + print(res) + +``` +### Example Usage: Wave + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared + + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + + res = codat_sync_expenses.suppliers.get(request={ + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + "supplier_id": "13d946f0-c5d5-42bc-b092-97ece17923ab", + }) + + # Handle response + print(res) + +``` +### Example Usage: Xero + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared + + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + + res = codat_sync_expenses.suppliers.get(request={ + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + "supplier_id": "13d946f0-c5d5-42bc-b092-97ece17923ab", + }) + + # Handle response + print(res) + +``` +### Example Usage: Zoho Books + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared + + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + + res = codat_sync_expenses.suppliers.get(request={ + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + "supplier_id": "13d946f0-c5d5-42bc-b092-97ece17923ab", + }) + + # Handle response + print(res) + +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | +| `request` | [operations.GetSupplierRequest](../../models/operations/getsupplierrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | + +### Response + +**[shared.Supplier](../../models/shared/supplier.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| ---------------------------- | ---------------------------- | ---------------------------- | +| errors.ErrorMessage | 401, 402, 403, 404, 409, 429 | application/json | +| errors.ErrorMessage | 500, 503 | application/json | +| errors.SDKError | 4XX, 5XX | \*/\* | + +## list + +The *List suppliers* endpoint returns a list of [suppliers](https://docs.codat.io/sync-for-expenses-api#/schemas/Supplier) for a given company's connection. + +[Suppliers](https://docs.codat.io/sync-for-expenses-api#/schemas/Supplier) are people or organizations that provide something, such as a product or service. + +Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/sync-for-expenses-api#/operations/refresh-all-data-types). + +### Supported Integrations + +| Integration | Supported | +|-------------------------------|-----------| +| Dynamics 365 Business Central | Yes | +| FreeAgent | Yes | +| Oracle NetSuite | Yes | +| QuickBooks Desktop | Yes | +| QuickBooks Online | Yes | +| Sage Intacct | Yes | +| Xero | Yes | +| Zoho Books | Yes | + + +### Example Usage: Clear Books + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared + + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + + res = codat_sync_expenses.suppliers.list(request={ + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + "order_by": "-modifiedDate", + "query": "id=e3334455-1aed-4e71-ab43-6bccf12092ee", + }) + + # Handle response + print(res) + +``` +### Example Usage: Dynamics 365 Business Central + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared + + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + + res = codat_sync_expenses.suppliers.list(request={ + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + "order_by": "-modifiedDate", + "query": "id=e3334455-1aed-4e71-ab43-6bccf12092ee", + }) + + # Handle response + print(res) + +``` +### Example Usage: Exact (Netherlands) + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared + + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + + res = codat_sync_expenses.suppliers.list(request={ + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + "order_by": "-modifiedDate", + "query": "id=e3334455-1aed-4e71-ab43-6bccf12092ee", + }) + + # Handle response + print(res) + +``` +### Example Usage: Exact (UK) + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared + + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + + res = codat_sync_expenses.suppliers.list(request={ + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + "order_by": "-modifiedDate", + "query": "id=e3334455-1aed-4e71-ab43-6bccf12092ee", + }) + + # Handle response + print(res) + +``` +### Example Usage: FreeAgent + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared -### Example Usage +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + + res = codat_sync_expenses.suppliers.list(request={ + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + "order_by": "-modifiedDate", + "query": "id=e3334455-1aed-4e71-ab43-6bccf12092ee", + }) + + # Handle response + print(res) + +``` +### Example Usage: FreshBooks + + ```python from codat_sync_for_expenses import CodatSyncExpenses from codat_sync_for_expenses.models import shared + with CodatSyncExpenses( security=shared.Security( auth_header="Basic BASE_64_ENCODED(API_KEY)", ), ) as codat_sync_expenses: - res = codat_sync_expenses.suppliers.create(request={ + + res = codat_sync_expenses.suppliers.list(request={ "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", - "connection_id": "2e9d2c44-f675-40ba-8049-353bfcb5e171", - "supplier": { - "status": shared.SupplierStatus.ACTIVE, - "contact_name": "Joe Bloggs", - "id": "73593", - "supplier_name": "test 20230420 1004", - }, + "order_by": "-modifiedDate", + "query": "id=e3334455-1aed-4e71-ab43-6bccf12092ee", }) - if res is not None: - # handle response - pass + # Handle response + print(res) ``` +### Example Usage: KashFlow -### Parameters + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | -| `request` | [operations.CreateSupplierRequest](../../models/operations/createsupplierrequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | -### Response +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: -**[shared.CreateSupplierResponse](../../models/shared/createsupplierresponse.md)** + res = codat_sync_expenses.suppliers.list(request={ + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + "order_by": "-modifiedDate", + "query": "id=e3334455-1aed-4e71-ab43-6bccf12092ee", + }) -### Errors + # Handle response + print(res) -| Error Type | Status Code | Content Type | -| -------------------------------------- | -------------------------------------- | -------------------------------------- | -| errors.ErrorMessage | 400, 401, 402, 403, 404, 429, 500, 503 | application/json | -| errors.SDKError | 4XX, 5XX | \*/\* | +``` +### Example Usage: Oracle NetSuite -## get + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared -The *Get supplier* endpoint returns a single supplier for a given supplierId. -[Suppliers](https://docs.codat.io/sync-for-expenses-api#/schemas/Supplier) are people or organizations that provide something, such as a product or service. +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: -Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/sync-for-expenses-api#/operations/refresh-company-data). + res = codat_sync_expenses.suppliers.list(request={ + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + "order_by": "-modifiedDate", + "query": "id=e3334455-1aed-4e71-ab43-6bccf12092ee", + }) + # Handle response + print(res) -### Example Usage +``` +### Example Usage: QuickBooks Desktop + ```python from codat_sync_for_expenses import CodatSyncExpenses from codat_sync_for_expenses.models import shared + with CodatSyncExpenses( security=shared.Security( auth_header="Basic BASE_64_ENCODED(API_KEY)", ), ) as codat_sync_expenses: - res = codat_sync_expenses.suppliers.get(request={ + + res = codat_sync_expenses.suppliers.list(request={ "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", - "supplier_id": "7110701885", + "order_by": "-modifiedDate", + "query": "id=e3334455-1aed-4e71-ab43-6bccf12092ee", }) - if res is not None: - # handle response - pass + # Handle response + print(res) ``` +### Example Usage: QuickBooks Online -### Parameters + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | -| `request` | [operations.GetSupplierRequest](../../models/operations/getsupplierrequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | -### Response +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: -**[shared.Supplier](../../models/shared/supplier.md)** + res = codat_sync_expenses.suppliers.list(request={ + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + "order_by": "-modifiedDate", + "query": "id=e3334455-1aed-4e71-ab43-6bccf12092ee", + }) -### Errors + # Handle response + print(res) -| Error Type | Status Code | Content Type | -| -------------------------------------- | -------------------------------------- | -------------------------------------- | -| errors.ErrorMessage | 401, 402, 403, 404, 409, 429, 500, 503 | application/json | -| errors.SDKError | 4XX, 5XX | \*/\* | +``` +### Example Usage: QuickBooks Online Sandbox -## list + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared -The *List suppliers* endpoint returns a list of [suppliers](https://docs.codat.io/sync-for-expenses-api#/schemas/Supplier) for a given company's connection. -[Suppliers](https://docs.codat.io/sync-for-expenses-api#/schemas/Supplier) are people or organizations that provide something, such as a product or service. +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + + res = codat_sync_expenses.suppliers.list(request={ + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + "order_by": "-modifiedDate", + "query": "id=e3334455-1aed-4e71-ab43-6bccf12092ee", + }) -Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/sync-for-expenses-api#/operations/refresh-company-data). - + # Handle response + print(res) -### Example Usage +``` +### Example Usage: Sage 200cloud + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared + + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + res = codat_sync_expenses.suppliers.list(request={ + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + "order_by": "-modifiedDate", + "query": "id=e3334455-1aed-4e71-ab43-6bccf12092ee", + }) + + # Handle response + print(res) + +``` +### Example Usage: Sage 50 (UK) + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared + + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + + res = codat_sync_expenses.suppliers.list(request={ + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + "order_by": "-modifiedDate", + "query": "id=e3334455-1aed-4e71-ab43-6bccf12092ee", + }) + + # Handle response + print(res) + +``` +### Example Usage: Sage Business Cloud Accounting + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared + + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + + res = codat_sync_expenses.suppliers.list(request={ + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + "order_by": "-modifiedDate", + "query": "id=e3334455-1aed-4e71-ab43-6bccf12092ee", + }) + + # Handle response + print(res) + +``` +### Example Usage: Sage Intacct + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared + + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + + res = codat_sync_expenses.suppliers.list(request={ + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + "order_by": "-modifiedDate", + "query": "id=e3334455-1aed-4e71-ab43-6bccf12092ee", + }) + + # Handle response + print(res) + +``` +### Example Usage: Wave + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared + + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + + res = codat_sync_expenses.suppliers.list(request={ + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + "order_by": "-modifiedDate", + "query": "id=e3334455-1aed-4e71-ab43-6bccf12092ee", + }) + + # Handle response + print(res) + +``` +### Example Usage: Xero + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared + + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + + res = codat_sync_expenses.suppliers.list(request={ + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + "order_by": "-modifiedDate", + "query": "id=e3334455-1aed-4e71-ab43-6bccf12092ee", + }) + + # Handle response + print(res) + +``` +### Example Usage: Zoho Books + + ```python from codat_sync_for_expenses import CodatSyncExpenses from codat_sync_for_expenses.models import shared + with CodatSyncExpenses( security=shared.Security( auth_header="Basic BASE_64_ENCODED(API_KEY)", ), ) as codat_sync_expenses: + res = codat_sync_expenses.suppliers.list(request={ "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", "order_by": "-modifiedDate", - "page": 1, - "page_size": 100, "query": "id=e3334455-1aed-4e71-ab43-6bccf12092ee", }) - if res is not None: - # handle response - pass + # Handle response + print(res) ``` @@ -165,46 +1069,55 @@ with CodatSyncExpenses( ### Errors -| Error Type | Status Code | Content Type | -| ------------------------------------------- | ------------------------------------------- | ------------------------------------------- | -| errors.ErrorMessage | 400, 401, 402, 403, 404, 409, 429, 500, 503 | application/json | -| errors.SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| --------------------------------- | --------------------------------- | --------------------------------- | +| errors.ErrorMessage | 400, 401, 402, 403, 404, 409, 429 | application/json | +| errors.ErrorMessage | 500, 503 | application/json | +| errors.SDKError | 4XX, 5XX | \*/\* | ## update -The *Update supplier* endpoint updates an existing [supplier](https://docs.codat.io/sync-for-expenses-api#/schemas/Supplier) for a given company's connection. - -[Suppliers](https://docs.codat.io/sync-for-expenses-api#/schemas/Supplier) are people or organizations that provide something, such as a product or service. - -**Integration-specific behaviour** - +The *Update supplier* endpoint updates an existing [supplier](https://docs.codat.io/sync-for-expenses-api#/schemas/Supplier) for a given company's connection. + +[Suppliers](https://docs.codat.io/sync-for-expenses-api#/schemas/Supplier) are people or organizations that provide something, such as a product or service. + +**Integration-specific behavior** + Required data may vary by integration. To see what data to post, first call [Get create/update supplier model](https://docs.codat.io/sync-for-expenses-api#/operations/get-create-update-suppliers-model). +### Supported Integrations + +| Integration | Supported | +|-------------------|-----------| +| FreeAgent | Yes | +| QuickBooks Online | Yes | +| Xero | Yes | + + ### Example Usage + ```python from codat_sync_for_expenses import CodatSyncExpenses from codat_sync_for_expenses.models import shared + with CodatSyncExpenses( security=shared.Security( auth_header="Basic BASE_64_ENCODED(API_KEY)", ), ) as codat_sync_expenses: + res = codat_sync_expenses.suppliers.update(request={ - "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", - "connection_id": "2e9d2c44-f675-40ba-8049-353bfcb5e171", - "supplier_id": "EILBDVJVNUAGVKRQ", "supplier": { - "status": shared.SupplierStatus.UNKNOWN, "addresses": [ { - "type": shared.AccountingAddressType.BILLING, "city": "Bakersfield", "country": "USA", "line1": "Unit 51", "line2": "Bakersfield Industrial Estate", "region": "California", + "type": shared.AccountingAddressType.BILLING, }, ], "contact_name": "Kelly's Industrial Supplies", @@ -218,6 +1131,7 @@ with CodatSyncExpenses( "phone": "07999 999999", "registration_number": "string", "source_modified_date": "2022-10-23T00:00:00Z", + "status": shared.SupplierStatus.UNKNOWN, "supplemental_data": { "content": { "property1": { @@ -233,11 +1147,13 @@ with CodatSyncExpenses( "supplier_name": "Kelly's Industrial Supplies", "tax_number": "string", }, + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + "connection_id": "2e9d2c44-f675-40ba-8049-353bfcb5e171", + "supplier_id": "13d946f0-c5d5-42bc-b092-97ece17923ab", }) - if res is not None: - # handle response - pass + # Handle response + print(res) ``` @@ -254,7 +1170,8 @@ with CodatSyncExpenses( ### Errors -| Error Type | Status Code | Content Type | -| -------------------------------------- | -------------------------------------- | -------------------------------------- | -| errors.ErrorMessage | 400, 401, 402, 403, 404, 429, 500, 503 | application/json | -| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file +| Error Type | Status Code | Content Type | +| ---------------------------- | ---------------------------- | ---------------------------- | +| errors.ErrorMessage | 400, 401, 402, 403, 404, 429 | application/json | +| errors.ErrorMessage | 500, 503 | application/json | +| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/sync-for-expenses/docs/sdks/sync/README.md b/sync-for-expenses/docs/sdks/sync/README.md index e59aca047..49bde36bf 100644 --- a/sync-for-expenses/docs/sdks/sync/README.md +++ b/sync-for-expenses/docs/sdks/sync/README.md @@ -1,5 +1,4 @@ # Sync -(*sync*) ## Overview @@ -18,23 +17,25 @@ Get the sync status for a specified sync ### Example Usage + ```python from codat_sync_for_expenses import CodatSyncExpenses from codat_sync_for_expenses.models import shared + with CodatSyncExpenses( security=shared.Security( auth_header="Basic BASE_64_ENCODED(API_KEY)", ), ) as codat_sync_expenses: + res = codat_sync_expenses.sync.get(request={ "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", "sync_id": "6fb40d5e-b13e-11ed-afa1-0242ac120002", }) - if res is not None: - # handle response - pass + # Handle response + print(res) ``` @@ -51,10 +52,11 @@ with CodatSyncExpenses( ### Errors -| Error Type | Status Code | Content Type | -| --------------------------------- | --------------------------------- | --------------------------------- | -| errors.ErrorMessage | 401, 402, 403, 404, 429, 500, 503 | application/json | -| errors.SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| ----------------------- | ----------------------- | ----------------------- | +| errors.ErrorMessage | 401, 402, 403, 404, 429 | application/json | +| errors.ErrorMessage | 500, 503 | application/json | +| errors.SDKError | 4XX, 5XX | \*/\* | ## get_last_successful_sync @@ -62,22 +64,24 @@ Gets the status of the last successful sync ### Example Usage + ```python from codat_sync_for_expenses import CodatSyncExpenses from codat_sync_for_expenses.models import shared + with CodatSyncExpenses( security=shared.Security( auth_header="Basic BASE_64_ENCODED(API_KEY)", ), ) as codat_sync_expenses: + res = codat_sync_expenses.sync.get_last_successful_sync(request={ "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", }) - if res is not None: - # handle response - pass + # Handle response + print(res) ``` @@ -94,10 +98,11 @@ with CodatSyncExpenses( ### Errors -| Error Type | Status Code | Content Type | -| --------------------------------- | --------------------------------- | --------------------------------- | -| errors.ErrorMessage | 401, 402, 403, 404, 429, 500, 503 | application/json | -| errors.SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| ----------------------- | ----------------------- | ----------------------- | +| errors.ErrorMessage | 401, 402, 403, 404, 429 | application/json | +| errors.ErrorMessage | 500, 503 | application/json | +| errors.SDKError | 4XX, 5XX | \*/\* | ## get_latest_sync @@ -105,22 +110,24 @@ Gets the latest sync status ### Example Usage + ```python from codat_sync_for_expenses import CodatSyncExpenses from codat_sync_for_expenses.models import shared + with CodatSyncExpenses( security=shared.Security( auth_header="Basic BASE_64_ENCODED(API_KEY)", ), ) as codat_sync_expenses: + res = codat_sync_expenses.sync.get_latest_sync(request={ "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", }) - if res is not None: - # handle response - pass + # Handle response + print(res) ``` @@ -137,10 +144,11 @@ with CodatSyncExpenses( ### Errors -| Error Type | Status Code | Content Type | -| --------------------------------- | --------------------------------- | --------------------------------- | -| errors.ErrorMessage | 401, 402, 403, 404, 429, 500, 503 | application/json | -| errors.SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| ----------------------- | ----------------------- | ----------------------- | +| errors.ErrorMessage | 401, 402, 403, 404, 429 | application/json | +| errors.ErrorMessage | 500, 503 | application/json | +| errors.SDKError | 4XX, 5XX | \*/\* | ## list @@ -148,22 +156,24 @@ Gets a list of sync statuses ### Example Usage + ```python from codat_sync_for_expenses import CodatSyncExpenses from codat_sync_for_expenses.models import shared + with CodatSyncExpenses( security=shared.Security( auth_header="Basic BASE_64_ENCODED(API_KEY)", ), ) as codat_sync_expenses: + res = codat_sync_expenses.sync.list(request={ "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", }) - if res is not None: - # handle response - pass + # Handle response + print(res) ``` @@ -180,7 +190,8 @@ with CodatSyncExpenses( ### Errors -| Error Type | Status Code | Content Type | -| --------------------------------- | --------------------------------- | --------------------------------- | -| errors.ErrorMessage | 401, 402, 403, 404, 429, 500, 503 | application/json | -| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file +| Error Type | Status Code | Content Type | +| ----------------------- | ----------------------- | ----------------------- | +| errors.ErrorMessage | 401, 402, 403, 404, 429 | application/json | +| errors.ErrorMessage | 500, 503 | application/json | +| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/sync-for-expenses/docs/sdks/transactionstatus/README.md b/sync-for-expenses/docs/sdks/transactionstatus/README.md index 05ec74b21..67c89f430 100644 --- a/sync-for-expenses/docs/sdks/transactionstatus/README.md +++ b/sync-for-expenses/docs/sdks/transactionstatus/README.md @@ -1,5 +1,4 @@ # TransactionStatus -(*transaction_status*) ## Overview @@ -16,24 +15,26 @@ Gets the status of a transaction for a sync ### Example Usage + ```python from codat_sync_for_expenses import CodatSyncExpenses from codat_sync_for_expenses.models import shared + with CodatSyncExpenses( security=shared.Security( auth_header="Basic BASE_64_ENCODED(API_KEY)", ), ) as codat_sync_expenses: + res = codat_sync_expenses.transaction_status.get(request={ "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", "sync_id": "6fb40d5e-b13e-11ed-afa1-0242ac120002", "transaction_id": "336694d8-2dca-4cb5-a28d-3ccb83e55eee", }) - if res is not None: - # handle response - pass + # Handle response + print(res) ``` @@ -50,10 +51,11 @@ with CodatSyncExpenses( ### Errors -| Error Type | Status Code | Content Type | -| --------------------------------- | --------------------------------- | --------------------------------- | -| errors.ErrorMessage | 401, 402, 403, 404, 429, 500, 503 | application/json | -| errors.SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| ----------------------- | ----------------------- | ----------------------- | +| errors.ErrorMessage | 401, 402, 403, 404, 429 | application/json | +| errors.ErrorMessage | 500, 503 | application/json | +| errors.SDKError | 4XX, 5XX | \*/\* | ## list @@ -61,25 +63,25 @@ Gets the transactions and status for a sync ### Example Usage + ```python from codat_sync_for_expenses import CodatSyncExpenses from codat_sync_for_expenses.models import shared + with CodatSyncExpenses( security=shared.Security( auth_header="Basic BASE_64_ENCODED(API_KEY)", ), ) as codat_sync_expenses: + res = codat_sync_expenses.transaction_status.list(request={ "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", "sync_id": "6fb40d5e-b13e-11ed-afa1-0242ac120002", - "page": 1, - "page_size": 100, }) - if res is not None: - # handle response - pass + # Handle response + print(res) ``` @@ -96,7 +98,8 @@ with CodatSyncExpenses( ### Errors -| Error Type | Status Code | Content Type | -| -------------------------------------- | -------------------------------------- | -------------------------------------- | -| errors.ErrorMessage | 400, 401, 402, 403, 404, 429, 500, 503 | application/json | -| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file +| Error Type | Status Code | Content Type | +| ---------------------------- | ---------------------------- | ---------------------------- | +| errors.ErrorMessage | 400, 401, 402, 403, 404, 429 | application/json | +| errors.ErrorMessage | 500, 503 | application/json | +| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/sync-for-expenses/docs/sdks/transfers/README.md b/sync-for-expenses/docs/sdks/transfers/README.md index aa1afd4dc..402381ba3 100644 --- a/sync-for-expenses/docs/sdks/transfers/README.md +++ b/sync-for-expenses/docs/sdks/transfers/README.md @@ -1,5 +1,4 @@ # Transfers -(*transfers*) ## Overview @@ -11,37 +10,43 @@ Create and update transactions that represent the movement of your customers' mo ## create -Use the *Create transfer* endpoint to create or update a [transfer transaction](https://docs.codat.io/sync-for-expenses-api#/schemas/TransferTransactionRequest) in the accounting software for a given company's connection. - -Transfers record the movement of money between two bank accounts, or between a bank account and a nominal account. Use them to represent actions such as topping up a debit card account or a balance transfer to another credit card. - -The `from.amount` and `to.amount` fields are in the native currency of the account. - -### Supported Integrations -| Integration | Supported | -|-----------------------|-----------| -| FreeAgent | Yes | -| QuickBooks Desktop | Yes | -| QuickBooks Online | Yes | -| Xero | Yes | - -### Example Usage +Use the *Create transfer* endpoint to create or update a [transfer transaction](https://docs.codat.io/sync-for-expenses-api#/schemas/TransferTransactionRequest) in the accounting software for a given company's connection. +Transfers record the movement of money between two bank accounts, or between a bank account and a nominal account. Use them to represent actions such as topping up a debit card account or a balance transfer to another credit card. + +The `from.amount` and `to.amount` fields are in the native currency of the account. + +### Supported Integrations +| Integration | Create transfer | Update transfer | +|-----------------------|------------------|------------------| +| Dynamics | No | No | +| FreeAgent | Yes | Yes | +| NetSuite | No | No | +| QuickBooks Desktop | Yes | No | +| QuickBooks Online | Yes | Yes | +| Sage Intacct | No | No | +| Xero | Yes | No | +| Zoho Books | No | No | + +### Example Usage: Create transfer + + ```python from codat_sync_for_expenses import CodatSyncExpenses from codat_sync_for_expenses.models import shared from decimal import Decimal + with CodatSyncExpenses( security=shared.Security( auth_header="Basic BASE_64_ENCODED(API_KEY)", ), ) as codat_sync_expenses: + res = codat_sync_expenses.transfers.create(request={ - "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", - "transaction_id": "336694d8-2dca-4cb5-a28d-3ccb83e55eee", "transfer_transaction_request": { "date_": "2021-05-21T00:00:00+00:00", + "description": "Sample transfer description", "from_": { "account_ref": { "id": "787dfb37-5707-4dc0-8a86-8d74e4cc78ea", @@ -54,13 +59,93 @@ with CodatSyncExpenses( }, "amount": Decimal("100"), }, - "description": "Sample transfer description", }, + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + "transaction_id": "336694d8-2dca-4cb5-a28d-3ccb83e55eee", + }) + + # Handle response + print(res) + +``` +### Example Usage: Example 1 + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared +from decimal import Decimal + + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + + res = codat_sync_expenses.transfers.create(request={ + "transfer_transaction_request": { + "date_": "2022-10-23T00:00:00Z", + "description": "Transfer from bank account Y to bank account Z", + "from_": { + "account_ref": { + "id": "", + }, + "amount": Decimal("7329.18"), + }, + "to": { + "account_ref": { + "id": "", + }, + "amount": Decimal("522.15"), + }, + }, + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + "transaction_id": "336694d8-2dca-4cb5-a28d-3ccb83e55eee", + }) + + # Handle response + print(res) + +``` +### Example Usage: Malformed query + + +```python +from codat_sync_for_expenses import CodatSyncExpenses +from codat_sync_for_expenses.models import shared +from decimal import Decimal + + +with CodatSyncExpenses( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) as codat_sync_expenses: + + res = codat_sync_expenses.transfers.create(request={ + "transfer_transaction_request": { + "date_": "2022-10-23T00:00:00Z", + "description": "Transfer from bank account Y to bank account Z", + "from_": { + "account_ref": { + "id": "", + }, + "amount": Decimal("7329.18"), + }, + "to": { + "account_ref": { + "id": "", + }, + "amount": Decimal("522.15"), + }, + }, + "company_id": "8a210b68-6988-11ed-a1eb-0242ac120002", + "transaction_id": "336694d8-2dca-4cb5-a28d-3ccb83e55eee", }) - if res is not None: - # handle response - pass + # Handle response + print(res) ``` @@ -77,7 +162,8 @@ with CodatSyncExpenses( ### Errors -| Error Type | Status Code | Content Type | -| -------------------------------------- | -------------------------------------- | -------------------------------------- | -| errors.ErrorMessage | 400, 401, 402, 403, 404, 429, 500, 503 | application/json | -| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file +| Error Type | Status Code | Content Type | +| ---------------------------- | ---------------------------- | ---------------------------- | +| errors.ErrorMessage | 400, 401, 402, 403, 404, 429 | application/json | +| errors.ErrorMessage | 500, 503 | application/json | +| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/sync-for-expenses/poetry.lock b/sync-for-expenses/poetry.lock index 109ac6ce7..149aea8df 100644 --- a/sync-for-expenses/poetry.lock +++ b/sync-for-expenses/poetry.lock @@ -1,4 +1,4 @@ -# This file is automatically @generated by Poetry 1.8.3 and should not be changed by hand. +# This file is automatically @generated by Poetry 2.2.1 and should not be changed by hand. [[package]] name = "annotated-types" @@ -6,20 +6,19 @@ version = "0.7.0" description = "Reusable constraint types to use with typing.Annotated" optional = false python-versions = ">=3.8" +groups = ["main"] files = [ {file = "annotated_types-0.7.0-py3-none-any.whl", hash = "sha256:1f02e8b43a8fbbc3f3e0d4f0f4bfc8131bcb4eebe8849b8e5c773f3a1c582a53"}, {file = "annotated_types-0.7.0.tar.gz", hash = "sha256:aff07c09a53a08bc8cfccb9c85b05f1aa9a2a6f23728d790723543408344ce89"}, ] -[package.dependencies] -typing-extensions = {version = ">=4.0.0", markers = "python_version < \"3.9\""} - [[package]] name = "anyio" version = "4.5.2" description = "High level compatibility layer for multiple asynchronous event loop implementations" optional = false python-versions = ">=3.8" +groups = ["main"] files = [ {file = "anyio-4.5.2-py3-none-any.whl", hash = "sha256:c011ee36bc1e8ba40e5a81cb9df91925c218fe9b778554e0b56a21e1b5d4716f"}, {file = "anyio-4.5.2.tar.gz", hash = "sha256:23009af4ed04ce05991845451e11ef02fc7c5ed29179ac9a420e5ad0ac7ddc5b"}, @@ -33,7 +32,7 @@ typing-extensions = {version = ">=4.1", markers = "python_version < \"3.11\""} [package.extras] doc = ["Sphinx (>=7.4,<8.0)", "packaging", "sphinx-autodoc-typehints (>=1.2.0)", "sphinx-rtd-theme"] -test = ["anyio[trio]", "coverage[toml] (>=7)", "exceptiongroup (>=1.2.0)", "hypothesis (>=4.0)", "psutil (>=5.9)", "pytest (>=7.0)", "pytest-mock (>=3.6.1)", "trustme", "truststore (>=0.9.1)", "uvloop (>=0.21.0b1)"] +test = ["anyio[trio]", "coverage[toml] (>=7)", "exceptiongroup (>=1.2.0)", "hypothesis (>=4.0)", "psutil (>=5.9)", "pytest (>=7.0)", "pytest-mock (>=3.6.1)", "trustme", "truststore (>=0.9.1) ; python_version >= \"3.10\"", "uvloop (>=0.21.0b1) ; platform_python_implementation == \"CPython\" and platform_system != \"Windows\""] trio = ["trio (>=0.26.1)"] [[package]] @@ -42,6 +41,7 @@ version = "3.2.4" description = "An abstract syntax tree for Python with inference support." optional = false python-versions = ">=3.8.0" +groups = ["dev"] files = [ {file = "astroid-3.2.4-py3-none-any.whl", hash = "sha256:413658a61eeca6202a59231abb473f932038fbcbf1666587f66d482083413a25"}, {file = "astroid-3.2.4.tar.gz", hash = "sha256:0e14202810b30da1b735827f78f5157be2bbd4a7a59b7707ca0bfc2fb4c0063a"}, @@ -56,6 +56,7 @@ version = "2024.8.30" description = "Python package for providing Mozilla's CA Bundle." optional = false python-versions = ">=3.6" +groups = ["main"] files = [ {file = "certifi-2024.8.30-py3-none-any.whl", hash = "sha256:922820b53db7a7257ffbda3f597266d435245903d80737e34f8a45ff3e3230d8"}, {file = "certifi-2024.8.30.tar.gz", hash = "sha256:bec941d2aa8195e248a60b31ff9f0558284cf01a52591ceda73ea9afffd69fd9"}, @@ -67,6 +68,8 @@ version = "0.4.6" description = "Cross-platform colored terminal text." optional = false python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*,>=2.7" +groups = ["dev"] +markers = "sys_platform == \"win32\"" files = [ {file = "colorama-0.4.6-py2.py3-none-any.whl", hash = "sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6"}, {file = "colorama-0.4.6.tar.gz", hash = "sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44"}, @@ -78,6 +81,7 @@ version = "0.3.9" description = "serialize all of Python" optional = false python-versions = ">=3.8" +groups = ["dev"] files = [ {file = "dill-0.3.9-py3-none-any.whl", hash = "sha256:468dff3b89520b474c0397703366b7b95eebe6303f108adf9b19da1f702be87a"}, {file = "dill-0.3.9.tar.gz", hash = "sha256:81aa267dddf68cbfe8029c42ca9ec6a4ab3b22371d1c450abc54422577b4512c"}, @@ -87,26 +91,14 @@ files = [ graph = ["objgraph (>=1.7.2)"] profile = ["gprof2dot (>=2022.7.29)"] -[[package]] -name = "eval-type-backport" -version = "0.2.0" -description = "Like `typing._eval_type`, but lets older Python versions use newer typing features." -optional = false -python-versions = ">=3.8" -files = [ - {file = "eval_type_backport-0.2.0-py3-none-any.whl", hash = "sha256:ac2f73d30d40c5a30a80b8739a789d6bb5e49fdffa66d7912667e2015d9c9933"}, - {file = "eval_type_backport-0.2.0.tar.gz", hash = "sha256:68796cfbc7371ebf923f03bdf7bef415f3ec098aeced24e054b253a0e78f7b37"}, -] - -[package.extras] -tests = ["pytest"] - [[package]] name = "exceptiongroup" version = "1.2.2" description = "Backport of PEP 654 (exception groups)" optional = false python-versions = ">=3.7" +groups = ["main"] +markers = "python_version == \"3.10\"" files = [ {file = "exceptiongroup-1.2.2-py3-none-any.whl", hash = "sha256:3111b9d131c238bec2f8f516e123e14ba243563fb135d3fe885990585aa7795b"}, {file = "exceptiongroup-1.2.2.tar.gz", hash = "sha256:47c2edf7c6738fafb49fd34290706d1a1a2f4d1c6df275526b62cbb4aa5393cc"}, @@ -117,29 +109,31 @@ test = ["pytest (>=6)"] [[package]] name = "h11" -version = "0.14.0" +version = "0.16.0" description = "A pure-Python, bring-your-own-I/O implementation of HTTP/1.1" optional = false -python-versions = ">=3.7" +python-versions = ">=3.8" +groups = ["main"] files = [ - {file = "h11-0.14.0-py3-none-any.whl", hash = "sha256:e3fe4ac4b851c468cc8363d500db52c2ead036020723024a109d37346efaa761"}, - {file = "h11-0.14.0.tar.gz", hash = "sha256:8f19fbbe99e72420ff35c00b27a34cb9937e902a8b810e2c88300c6f0a3b699d"}, + {file = "h11-0.16.0-py3-none-any.whl", hash = "sha256:63cf8bbe7522de3bf65932fda1d9c2772064ffb3dae62d55932da54b31cb6c86"}, + {file = "h11-0.16.0.tar.gz", hash = "sha256:4e35b956cf45792e4caa5885e69fba00bdbc6ffafbfa020300e549b208ee5ff1"}, ] [[package]] name = "httpcore" -version = "1.0.7" +version = "1.0.9" description = "A minimal low-level HTTP client." optional = false python-versions = ">=3.8" +groups = ["main"] files = [ - {file = "httpcore-1.0.7-py3-none-any.whl", hash = "sha256:a3fff8f43dc260d5bd363d9f9cf1830fa3a458b332856f34282de498ed420edd"}, - {file = "httpcore-1.0.7.tar.gz", hash = "sha256:8551cb62a169ec7162ac7be8d4817d561f60e08eaa485234898414bb5a8a0b4c"}, + {file = "httpcore-1.0.9-py3-none-any.whl", hash = "sha256:2d400746a40668fc9dec9810239072b40b4484b640a8c38fd654a024c7a1bf55"}, + {file = "httpcore-1.0.9.tar.gz", hash = "sha256:6e34463af53fd2ab5d807f399a9b45ea31c3dfa2276f15a2c3f00afff6e176e8"}, ] [package.dependencies] certifi = "*" -h11 = ">=0.13,<0.15" +h11 = ">=0.16" [package.extras] asyncio = ["anyio (>=4.0,<5.0)"] @@ -153,6 +147,7 @@ version = "0.28.1" description = "The next generation HTTP client." optional = false python-versions = ">=3.8" +groups = ["main"] files = [ {file = "httpx-0.28.1-py3-none-any.whl", hash = "sha256:d909fcccc110f8c7faf814ca82a9a4d816bc5a6dbfea25d6591d6985b8ba59ad"}, {file = "httpx-0.28.1.tar.gz", hash = "sha256:75e98c5f16b0f35b567856f597f06ff2270a374470a5c2392242528e3e3e42fc"}, @@ -165,7 +160,7 @@ httpcore = "==1.*" idna = "*" [package.extras] -brotli = ["brotli", "brotlicffi"] +brotli = ["brotli ; platform_python_implementation == \"CPython\"", "brotlicffi ; platform_python_implementation != \"CPython\""] cli = ["click (==8.*)", "pygments (==2.*)", "rich (>=10,<14)"] http2 = ["h2 (>=3,<5)"] socks = ["socksio (==1.*)"] @@ -177,6 +172,7 @@ version = "3.10" description = "Internationalized Domain Names in Applications (IDNA)" optional = false python-versions = ">=3.6" +groups = ["main"] files = [ {file = "idna-3.10-py3-none-any.whl", hash = "sha256:946d195a0d259cbba61165e88e65941f16e9b36ea6ddb97f00452bae8b1287d3"}, {file = "idna-3.10.tar.gz", hash = "sha256:12f65c9b470abda6dc35cf8e63cc574b1c52b11df2c86030af0ac09b01b13ea9"}, @@ -191,6 +187,7 @@ version = "5.13.2" description = "A Python utility / library to sort Python imports." optional = false python-versions = ">=3.8.0" +groups = ["dev"] files = [ {file = "isort-5.13.2-py3-none-any.whl", hash = "sha256:8ca5e72a8d85860d5a3fa69b8745237f2939afe12dbf656afbcb47fe72d947a6"}, {file = "isort-5.13.2.tar.gz", hash = "sha256:48fdfcb9face5d58a4f6dde2e72a1fb8dcaf8ab26f95ab49fab84c2ddefb0109"}, @@ -199,23 +196,13 @@ files = [ [package.extras] colors = ["colorama (>=0.4.6)"] -[[package]] -name = "jsonpath-python" -version = "1.0.6" -description = "A more powerful JSONPath implementation in modern python" -optional = false -python-versions = ">=3.6" -files = [ - {file = "jsonpath-python-1.0.6.tar.gz", hash = "sha256:dd5be4a72d8a2995c3f583cf82bf3cd1a9544cfdabf2d22595b67aff07349666"}, - {file = "jsonpath_python-1.0.6-py3-none-any.whl", hash = "sha256:1e3b78df579f5efc23565293612decee04214609208a2335884b3ee3f786b575"}, -] - [[package]] name = "mccabe" version = "0.7.0" description = "McCabe checker, plugin for flake8" optional = false python-versions = ">=3.6" +groups = ["dev"] files = [ {file = "mccabe-0.7.0-py2.py3-none-any.whl", hash = "sha256:6c2d30ab6be0e4a46919781807b4f0d834ebdd6c6e3dca0bda5a15f863427b6e"}, {file = "mccabe-0.7.0.tar.gz", hash = "sha256:348e0240c33b60bbdf4e523192ef919f28cb2c3d7d5c7794f74009290f236325"}, @@ -223,49 +210,50 @@ files = [ [[package]] name = "mypy" -version = "1.13.0" +version = "1.15.0" description = "Optional static typing for Python" optional = false -python-versions = ">=3.8" +python-versions = ">=3.9" +groups = ["dev"] files = [ - {file = "mypy-1.13.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:6607e0f1dd1fb7f0aca14d936d13fd19eba5e17e1cd2a14f808fa5f8f6d8f60a"}, - {file = "mypy-1.13.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:8a21be69bd26fa81b1f80a61ee7ab05b076c674d9b18fb56239d72e21d9f4c80"}, - {file = "mypy-1.13.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:7b2353a44d2179846a096e25691d54d59904559f4232519d420d64da6828a3a7"}, - {file = "mypy-1.13.0-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:0730d1c6a2739d4511dc4253f8274cdd140c55c32dfb0a4cf8b7a43f40abfa6f"}, - {file = "mypy-1.13.0-cp310-cp310-win_amd64.whl", hash = "sha256:c5fc54dbb712ff5e5a0fca797e6e0aa25726c7e72c6a5850cfd2adbc1eb0a372"}, - {file = "mypy-1.13.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:581665e6f3a8a9078f28d5502f4c334c0c8d802ef55ea0e7276a6e409bc0d82d"}, - {file = "mypy-1.13.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:3ddb5b9bf82e05cc9a627e84707b528e5c7caaa1c55c69e175abb15a761cec2d"}, - {file = "mypy-1.13.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:20c7ee0bc0d5a9595c46f38beb04201f2620065a93755704e141fcac9f59db2b"}, - {file = "mypy-1.13.0-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:3790ded76f0b34bc9c8ba4def8f919dd6a46db0f5a6610fb994fe8efdd447f73"}, - {file = "mypy-1.13.0-cp311-cp311-win_amd64.whl", hash = "sha256:51f869f4b6b538229c1d1bcc1dd7d119817206e2bc54e8e374b3dfa202defcca"}, - {file = "mypy-1.13.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:5c7051a3461ae84dfb5dd15eff5094640c61c5f22257c8b766794e6dd85e72d5"}, - {file = "mypy-1.13.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:39bb21c69a5d6342f4ce526e4584bc5c197fd20a60d14a8624d8743fffb9472e"}, - {file = "mypy-1.13.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:164f28cb9d6367439031f4c81e84d3ccaa1e19232d9d05d37cb0bd880d3f93c2"}, - {file = "mypy-1.13.0-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:a4c1bfcdbce96ff5d96fc9b08e3831acb30dc44ab02671eca5953eadad07d6d0"}, - {file = "mypy-1.13.0-cp312-cp312-win_amd64.whl", hash = "sha256:a0affb3a79a256b4183ba09811e3577c5163ed06685e4d4b46429a271ba174d2"}, - {file = "mypy-1.13.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:a7b44178c9760ce1a43f544e595d35ed61ac2c3de306599fa59b38a6048e1aa7"}, - {file = "mypy-1.13.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:5d5092efb8516d08440e36626f0153b5006d4088c1d663d88bf79625af3d1d62"}, - {file = "mypy-1.13.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:de2904956dac40ced10931ac967ae63c5089bd498542194b436eb097a9f77bc8"}, - {file = "mypy-1.13.0-cp313-cp313-musllinux_1_1_x86_64.whl", hash = "sha256:7bfd8836970d33c2105562650656b6846149374dc8ed77d98424b40b09340ba7"}, - {file = "mypy-1.13.0-cp313-cp313-win_amd64.whl", hash = "sha256:9f73dba9ec77acb86457a8fc04b5239822df0c14a082564737833d2963677dbc"}, - {file = "mypy-1.13.0-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:100fac22ce82925f676a734af0db922ecfea991e1d7ec0ceb1e115ebe501301a"}, - {file = "mypy-1.13.0-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:7bcb0bb7f42a978bb323a7c88f1081d1b5dee77ca86f4100735a6f541299d8fb"}, - {file = "mypy-1.13.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:bde31fc887c213e223bbfc34328070996061b0833b0a4cfec53745ed61f3519b"}, - {file = "mypy-1.13.0-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:07de989f89786f62b937851295ed62e51774722e5444a27cecca993fc3f9cd74"}, - {file = "mypy-1.13.0-cp38-cp38-win_amd64.whl", hash = "sha256:4bde84334fbe19bad704b3f5b78c4abd35ff1026f8ba72b29de70dda0916beb6"}, - {file = "mypy-1.13.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:0246bcb1b5de7f08f2826451abd947bf656945209b140d16ed317f65a17dc7dc"}, - {file = "mypy-1.13.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:7f5b7deae912cf8b77e990b9280f170381fdfbddf61b4ef80927edd813163732"}, - {file = "mypy-1.13.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:7029881ec6ffb8bc233a4fa364736789582c738217b133f1b55967115288a2bc"}, - {file = "mypy-1.13.0-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:3e38b980e5681f28f033f3be86b099a247b13c491f14bb8b1e1e134d23bb599d"}, - {file = "mypy-1.13.0-cp39-cp39-win_amd64.whl", hash = "sha256:a6789be98a2017c912ae6ccb77ea553bbaf13d27605d2ca20a76dfbced631b24"}, - {file = "mypy-1.13.0-py3-none-any.whl", hash = "sha256:9c250883f9fd81d212e0952c92dbfcc96fc237f4b7c92f56ac81fd48460b3e5a"}, - {file = "mypy-1.13.0.tar.gz", hash = "sha256:0291a61b6fbf3e6673e3405cfcc0e7650bebc7939659fdca2702958038bd835e"}, + {file = "mypy-1.15.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:979e4e1a006511dacf628e36fadfecbcc0160a8af6ca7dad2f5025529e082c13"}, + {file = "mypy-1.15.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:c4bb0e1bd29f7d34efcccd71cf733580191e9a264a2202b0239da95984c5b559"}, + {file = "mypy-1.15.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:be68172e9fd9ad8fb876c6389f16d1c1b5f100ffa779f77b1fb2176fcc9ab95b"}, + {file = "mypy-1.15.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:c7be1e46525adfa0d97681432ee9fcd61a3964c2446795714699a998d193f1a3"}, + {file = "mypy-1.15.0-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:2e2c2e6d3593f6451b18588848e66260ff62ccca522dd231cd4dd59b0160668b"}, + {file = "mypy-1.15.0-cp310-cp310-win_amd64.whl", hash = "sha256:6983aae8b2f653e098edb77f893f7b6aca69f6cffb19b2cc7443f23cce5f4828"}, + {file = "mypy-1.15.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:2922d42e16d6de288022e5ca321cd0618b238cfc5570e0263e5ba0a77dbef56f"}, + {file = "mypy-1.15.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:2ee2d57e01a7c35de00f4634ba1bbf015185b219e4dc5909e281016df43f5ee5"}, + {file = "mypy-1.15.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:973500e0774b85d9689715feeffcc980193086551110fd678ebe1f4342fb7c5e"}, + {file = "mypy-1.15.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:5a95fb17c13e29d2d5195869262f8125dfdb5c134dc8d9a9d0aecf7525b10c2c"}, + {file = "mypy-1.15.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:1905f494bfd7d85a23a88c5d97840888a7bd516545fc5aaedff0267e0bb54e2f"}, + {file = "mypy-1.15.0-cp311-cp311-win_amd64.whl", hash = "sha256:c9817fa23833ff189db061e6d2eff49b2f3b6ed9856b4a0a73046e41932d744f"}, + {file = "mypy-1.15.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:aea39e0583d05124836ea645f412e88a5c7d0fd77a6d694b60d9b6b2d9f184fd"}, + {file = "mypy-1.15.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:2f2147ab812b75e5b5499b01ade1f4a81489a147c01585cda36019102538615f"}, + {file = "mypy-1.15.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:ce436f4c6d218a070048ed6a44c0bbb10cd2cc5e272b29e7845f6a2f57ee4464"}, + {file = "mypy-1.15.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:8023ff13985661b50a5928fc7a5ca15f3d1affb41e5f0a9952cb68ef090b31ee"}, + {file = "mypy-1.15.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:1124a18bc11a6a62887e3e137f37f53fbae476dc36c185d549d4f837a2a6a14e"}, + {file = "mypy-1.15.0-cp312-cp312-win_amd64.whl", hash = "sha256:171a9ca9a40cd1843abeca0e405bc1940cd9b305eaeea2dda769ba096932bb22"}, + {file = "mypy-1.15.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:93faf3fdb04768d44bf28693293f3904bbb555d076b781ad2530214ee53e3445"}, + {file = "mypy-1.15.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:811aeccadfb730024c5d3e326b2fbe9249bb7413553f15499a4050f7c30e801d"}, + {file = "mypy-1.15.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:98b7b9b9aedb65fe628c62a6dc57f6d5088ef2dfca37903a7d9ee374d03acca5"}, + {file = "mypy-1.15.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:c43a7682e24b4f576d93072216bf56eeff70d9140241f9edec0c104d0c515036"}, + {file = "mypy-1.15.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:baefc32840a9f00babd83251560e0ae1573e2f9d1b067719479bfb0e987c6357"}, + {file = "mypy-1.15.0-cp313-cp313-win_amd64.whl", hash = "sha256:b9378e2c00146c44793c98b8d5a61039a048e31f429fb0eb546d93f4b000bedf"}, + {file = "mypy-1.15.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:e601a7fa172c2131bff456bb3ee08a88360760d0d2f8cbd7a75a65497e2df078"}, + {file = "mypy-1.15.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:712e962a6357634fef20412699a3655c610110e01cdaa6180acec7fc9f8513ba"}, + {file = "mypy-1.15.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:f95579473af29ab73a10bada2f9722856792a36ec5af5399b653aa28360290a5"}, + {file = "mypy-1.15.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:8f8722560a14cde92fdb1e31597760dc35f9f5524cce17836c0d22841830fd5b"}, + {file = "mypy-1.15.0-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:1fbb8da62dc352133d7d7ca90ed2fb0e9d42bb1a32724c287d3c76c58cbaa9c2"}, + {file = "mypy-1.15.0-cp39-cp39-win_amd64.whl", hash = "sha256:d10d994b41fb3497719bbf866f227b3489048ea4bbbb5015357db306249f7980"}, + {file = "mypy-1.15.0-py3-none-any.whl", hash = "sha256:5469affef548bd1895d86d3bf10ce2b44e33d86923c29e4d675b3e323437ea3e"}, + {file = "mypy-1.15.0.tar.gz", hash = "sha256:404534629d51d3efea5c800ee7c42b72a6554d6c400e6a79eafe15d11341fd43"}, ] [package.dependencies] -mypy-extensions = ">=1.0.0" +mypy_extensions = ">=1.0.0" tomli = {version = ">=1.1.0", markers = "python_version < \"3.11\""} -typing-extensions = ">=4.6.0" +typing_extensions = ">=4.6.0" [package.extras] dmypy = ["psutil (>=4.0)"] @@ -280,17 +268,31 @@ version = "1.0.0" description = "Type system extensions for programs checked with the mypy type checker." optional = false python-versions = ">=3.5" +groups = ["dev"] files = [ {file = "mypy_extensions-1.0.0-py3-none-any.whl", hash = "sha256:4392f6c0eb8a5668a69e23d168ffa70f0be9ccfd32b5cc2d26a34ae5b844552d"}, {file = "mypy_extensions-1.0.0.tar.gz", hash = "sha256:75dbf8955dc00442a438fc4d0666508a9a97b6bd41aa2f0ffe9d2f2725af0782"}, ] +[[package]] +name = "nodeenv" +version = "1.10.0" +description = "Node.js virtual environment builder" +optional = false +python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*,>=2.7" +groups = ["dev"] +files = [ + {file = "nodeenv-1.10.0-py2.py3-none-any.whl", hash = "sha256:5bb13e3eed2923615535339b3c620e76779af4cb4c6a90deccc9e36b274d3827"}, + {file = "nodeenv-1.10.0.tar.gz", hash = "sha256:996c191ad80897d076bdfba80a41994c2b47c68e224c542b48feba42ba00f8bb"}, +] + [[package]] name = "platformdirs" version = "4.3.6" description = "A small Python package for determining appropriate platform-specific dirs, e.g. a `user data dir`." optional = false python-versions = ">=3.8" +groups = ["dev"] files = [ {file = "platformdirs-4.3.6-py3-none-any.whl", hash = "sha256:73e575e1408ab8103900836b97580d5307456908a03e92031bab39e4554cc3fb"}, {file = "platformdirs-4.3.6.tar.gz", hash = "sha256:357fb2acbc885b0419afd3ce3ed34564c13c9b95c89360cd9563f73aa5e2b907"}, @@ -303,131 +305,133 @@ type = ["mypy (>=1.11.2)"] [[package]] name = "pydantic" -version = "2.10.3" +version = "2.11.10" description = "Data validation using Python type hints" optional = false -python-versions = ">=3.8" +python-versions = ">=3.9" +groups = ["main"] files = [ - {file = "pydantic-2.10.3-py3-none-any.whl", hash = "sha256:be04d85bbc7b65651c5f8e6b9976ed9c6f41782a55524cef079a34a0bb82144d"}, - {file = "pydantic-2.10.3.tar.gz", hash = "sha256:cb5ac360ce894ceacd69c403187900a02c4b20b693a9dd1d643e1effab9eadf9"}, + {file = "pydantic-2.11.10-py3-none-any.whl", hash = "sha256:802a655709d49bd004c31e865ef37da30b540786a46bfce02333e0e24b5fe29a"}, + {file = "pydantic-2.11.10.tar.gz", hash = "sha256:dc280f0982fbda6c38fada4e476dc0a4f3aeaf9c6ad4c28df68a666ec3c61423"}, ] [package.dependencies] annotated-types = ">=0.6.0" -pydantic-core = "2.27.1" +pydantic-core = "2.33.2" typing-extensions = ">=4.12.2" +typing-inspection = ">=0.4.0" [package.extras] email = ["email-validator (>=2.0.0)"] -timezone = ["tzdata"] +timezone = ["tzdata ; python_version >= \"3.9\" and platform_system == \"Windows\""] [[package]] name = "pydantic-core" -version = "2.27.1" +version = "2.33.2" description = "Core functionality for Pydantic validation and serialization" optional = false -python-versions = ">=3.8" +python-versions = ">=3.9" +groups = ["main"] files = [ - {file = "pydantic_core-2.27.1-cp310-cp310-macosx_10_12_x86_64.whl", hash = "sha256:71a5e35c75c021aaf400ac048dacc855f000bdfed91614b4a726f7432f1f3d6a"}, - {file = "pydantic_core-2.27.1-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:f82d068a2d6ecfc6e054726080af69a6764a10015467d7d7b9f66d6ed5afa23b"}, - {file = "pydantic_core-2.27.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:121ceb0e822f79163dd4699e4c54f5ad38b157084d97b34de8b232bcaad70278"}, - {file = "pydantic_core-2.27.1-cp310-cp310-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:4603137322c18eaf2e06a4495f426aa8d8388940f3c457e7548145011bb68e05"}, - {file = "pydantic_core-2.27.1-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:a33cd6ad9017bbeaa9ed78a2e0752c5e250eafb9534f308e7a5f7849b0b1bfb4"}, - {file = "pydantic_core-2.27.1-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:15cc53a3179ba0fcefe1e3ae50beb2784dede4003ad2dfd24f81bba4b23a454f"}, - {file = "pydantic_core-2.27.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:45d9c5eb9273aa50999ad6adc6be5e0ecea7e09dbd0d31bd0c65a55a2592ca08"}, - {file = "pydantic_core-2.27.1-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:8bf7b66ce12a2ac52d16f776b31d16d91033150266eb796967a7e4621707e4f6"}, - {file = "pydantic_core-2.27.1-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:655d7dd86f26cb15ce8a431036f66ce0318648f8853d709b4167786ec2fa4807"}, - {file = "pydantic_core-2.27.1-cp310-cp310-musllinux_1_1_armv7l.whl", hash = "sha256:5556470f1a2157031e676f776c2bc20acd34c1990ca5f7e56f1ebf938b9ab57c"}, - {file = "pydantic_core-2.27.1-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:f69ed81ab24d5a3bd93861c8c4436f54afdf8e8cc421562b0c7504cf3be58206"}, - {file = "pydantic_core-2.27.1-cp310-none-win32.whl", hash = "sha256:f5a823165e6d04ccea61a9f0576f345f8ce40ed533013580e087bd4d7442b52c"}, - {file = "pydantic_core-2.27.1-cp310-none-win_amd64.whl", hash = "sha256:57866a76e0b3823e0b56692d1a0bf722bffb324839bb5b7226a7dbd6c9a40b17"}, - {file = "pydantic_core-2.27.1-cp311-cp311-macosx_10_12_x86_64.whl", hash = "sha256:ac3b20653bdbe160febbea8aa6c079d3df19310d50ac314911ed8cc4eb7f8cb8"}, - {file = "pydantic_core-2.27.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:a5a8e19d7c707c4cadb8c18f5f60c843052ae83c20fa7d44f41594c644a1d330"}, - {file = "pydantic_core-2.27.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:7f7059ca8d64fea7f238994c97d91f75965216bcbe5f695bb44f354893f11d52"}, - {file = "pydantic_core-2.27.1-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:bed0f8a0eeea9fb72937ba118f9db0cb7e90773462af7962d382445f3005e5a4"}, - {file = "pydantic_core-2.27.1-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:a3cb37038123447cf0f3ea4c74751f6a9d7afef0eb71aa07bf5f652b5e6a132c"}, - {file = "pydantic_core-2.27.1-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:84286494f6c5d05243456e04223d5a9417d7f443c3b76065e75001beb26f88de"}, - {file = "pydantic_core-2.27.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:acc07b2cfc5b835444b44a9956846b578d27beeacd4b52e45489e93276241025"}, - {file = "pydantic_core-2.27.1-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:4fefee876e07a6e9aad7a8c8c9f85b0cdbe7df52b8a9552307b09050f7512c7e"}, - {file = "pydantic_core-2.27.1-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:258c57abf1188926c774a4c94dd29237e77eda19462e5bb901d88adcab6af919"}, - {file = "pydantic_core-2.27.1-cp311-cp311-musllinux_1_1_armv7l.whl", hash = "sha256:35c14ac45fcfdf7167ca76cc80b2001205a8d5d16d80524e13508371fb8cdd9c"}, - {file = "pydantic_core-2.27.1-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:d1b26e1dff225c31897696cab7d4f0a315d4c0d9e8666dbffdb28216f3b17fdc"}, - {file = "pydantic_core-2.27.1-cp311-none-win32.whl", hash = "sha256:2cdf7d86886bc6982354862204ae3b2f7f96f21a3eb0ba5ca0ac42c7b38598b9"}, - {file = "pydantic_core-2.27.1-cp311-none-win_amd64.whl", hash = "sha256:3af385b0cee8df3746c3f406f38bcbfdc9041b5c2d5ce3e5fc6637256e60bbc5"}, - {file = "pydantic_core-2.27.1-cp311-none-win_arm64.whl", hash = "sha256:81f2ec23ddc1b476ff96563f2e8d723830b06dceae348ce02914a37cb4e74b89"}, - {file = "pydantic_core-2.27.1-cp312-cp312-macosx_10_12_x86_64.whl", hash = "sha256:9cbd94fc661d2bab2bc702cddd2d3370bbdcc4cd0f8f57488a81bcce90c7a54f"}, - {file = "pydantic_core-2.27.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:5f8c4718cd44ec1580e180cb739713ecda2bdee1341084c1467802a417fe0f02"}, - {file = "pydantic_core-2.27.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:15aae984e46de8d376df515f00450d1522077254ef6b7ce189b38ecee7c9677c"}, - {file = "pydantic_core-2.27.1-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:1ba5e3963344ff25fc8c40da90f44b0afca8cfd89d12964feb79ac1411a260ac"}, - {file = "pydantic_core-2.27.1-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:992cea5f4f3b29d6b4f7f1726ed8ee46c8331c6b4eed6db5b40134c6fe1768bb"}, - {file = "pydantic_core-2.27.1-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:0325336f348dbee6550d129b1627cb8f5351a9dc91aad141ffb96d4937bd9529"}, - {file = "pydantic_core-2.27.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7597c07fbd11515f654d6ece3d0e4e5093edc30a436c63142d9a4b8e22f19c35"}, - {file = "pydantic_core-2.27.1-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:3bbd5d8cc692616d5ef6fbbbd50dbec142c7e6ad9beb66b78a96e9c16729b089"}, - {file = "pydantic_core-2.27.1-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:dc61505e73298a84a2f317255fcc72b710b72980f3a1f670447a21efc88f8381"}, - {file = "pydantic_core-2.27.1-cp312-cp312-musllinux_1_1_armv7l.whl", hash = "sha256:e1f735dc43da318cad19b4173dd1ffce1d84aafd6c9b782b3abc04a0d5a6f5bb"}, - {file = "pydantic_core-2.27.1-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:f4e5658dbffe8843a0f12366a4c2d1c316dbe09bb4dfbdc9d2d9cd6031de8aae"}, - {file = "pydantic_core-2.27.1-cp312-none-win32.whl", hash = "sha256:672ebbe820bb37988c4d136eca2652ee114992d5d41c7e4858cdd90ea94ffe5c"}, - {file = "pydantic_core-2.27.1-cp312-none-win_amd64.whl", hash = "sha256:66ff044fd0bb1768688aecbe28b6190f6e799349221fb0de0e6f4048eca14c16"}, - {file = "pydantic_core-2.27.1-cp312-none-win_arm64.whl", hash = "sha256:9a3b0793b1bbfd4146304e23d90045f2a9b5fd5823aa682665fbdaf2a6c28f3e"}, - {file = "pydantic_core-2.27.1-cp313-cp313-macosx_10_12_x86_64.whl", hash = "sha256:f216dbce0e60e4d03e0c4353c7023b202d95cbaeff12e5fd2e82ea0a66905073"}, - {file = "pydantic_core-2.27.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:a2e02889071850bbfd36b56fd6bc98945e23670773bc7a76657e90e6b6603c08"}, - {file = "pydantic_core-2.27.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:42b0e23f119b2b456d07ca91b307ae167cc3f6c846a7b169fca5326e32fdc6cf"}, - {file = "pydantic_core-2.27.1-cp313-cp313-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:764be71193f87d460a03f1f7385a82e226639732214b402f9aa61f0d025f0737"}, - {file = "pydantic_core-2.27.1-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:1c00666a3bd2f84920a4e94434f5974d7bbc57e461318d6bb34ce9cdbbc1f6b2"}, - {file = "pydantic_core-2.27.1-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:3ccaa88b24eebc0f849ce0a4d09e8a408ec5a94afff395eb69baf868f5183107"}, - {file = "pydantic_core-2.27.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c65af9088ac534313e1963443d0ec360bb2b9cba6c2909478d22c2e363d98a51"}, - {file = "pydantic_core-2.27.1-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:206b5cf6f0c513baffaeae7bd817717140770c74528f3e4c3e1cec7871ddd61a"}, - {file = "pydantic_core-2.27.1-cp313-cp313-musllinux_1_1_aarch64.whl", hash = "sha256:062f60e512fc7fff8b8a9d680ff0ddaaef0193dba9fa83e679c0c5f5fbd018bc"}, - {file = "pydantic_core-2.27.1-cp313-cp313-musllinux_1_1_armv7l.whl", hash = "sha256:a0697803ed7d4af5e4c1adf1670af078f8fcab7a86350e969f454daf598c4960"}, - {file = "pydantic_core-2.27.1-cp313-cp313-musllinux_1_1_x86_64.whl", hash = "sha256:58ca98a950171f3151c603aeea9303ef6c235f692fe555e883591103da709b23"}, - {file = "pydantic_core-2.27.1-cp313-none-win32.whl", hash = "sha256:8065914ff79f7eab1599bd80406681f0ad08f8e47c880f17b416c9f8f7a26d05"}, - {file = "pydantic_core-2.27.1-cp313-none-win_amd64.whl", hash = "sha256:ba630d5e3db74c79300d9a5bdaaf6200172b107f263c98a0539eeecb857b2337"}, - {file = "pydantic_core-2.27.1-cp313-none-win_arm64.whl", hash = "sha256:45cf8588c066860b623cd11c4ba687f8d7175d5f7ef65f7129df8a394c502de5"}, - {file = "pydantic_core-2.27.1-cp38-cp38-macosx_10_12_x86_64.whl", hash = "sha256:5897bec80a09b4084aee23f9b73a9477a46c3304ad1d2d07acca19723fb1de62"}, - {file = "pydantic_core-2.27.1-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:d0165ab2914379bd56908c02294ed8405c252250668ebcb438a55494c69f44ab"}, - {file = "pydantic_core-2.27.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:6b9af86e1d8e4cfc82c2022bfaa6f459381a50b94a29e95dcdda8442d6d83864"}, - {file = "pydantic_core-2.27.1-cp38-cp38-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:5f6c8a66741c5f5447e047ab0ba7a1c61d1e95580d64bce852e3df1f895c4067"}, - {file = "pydantic_core-2.27.1-cp38-cp38-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:9a42d6a8156ff78981f8aa56eb6394114e0dedb217cf8b729f438f643608cbcd"}, - {file = "pydantic_core-2.27.1-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:64c65f40b4cd8b0e049a8edde07e38b476da7e3aaebe63287c899d2cff253fa5"}, - {file = "pydantic_core-2.27.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9fdcf339322a3fae5cbd504edcefddd5a50d9ee00d968696846f089b4432cf78"}, - {file = "pydantic_core-2.27.1-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:bf99c8404f008750c846cb4ac4667b798a9f7de673ff719d705d9b2d6de49c5f"}, - {file = "pydantic_core-2.27.1-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:8f1edcea27918d748c7e5e4d917297b2a0ab80cad10f86631e488b7cddf76a36"}, - {file = "pydantic_core-2.27.1-cp38-cp38-musllinux_1_1_armv7l.whl", hash = "sha256:159cac0a3d096f79ab6a44d77a961917219707e2a130739c64d4dd46281f5c2a"}, - {file = "pydantic_core-2.27.1-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:029d9757eb621cc6e1848fa0b0310310de7301057f623985698ed7ebb014391b"}, - {file = "pydantic_core-2.27.1-cp38-none-win32.whl", hash = "sha256:a28af0695a45f7060e6f9b7092558a928a28553366519f64083c63a44f70e618"}, - {file = "pydantic_core-2.27.1-cp38-none-win_amd64.whl", hash = "sha256:2d4567c850905d5eaaed2f7a404e61012a51caf288292e016360aa2b96ff38d4"}, - {file = "pydantic_core-2.27.1-cp39-cp39-macosx_10_12_x86_64.whl", hash = "sha256:e9386266798d64eeb19dd3677051f5705bf873e98e15897ddb7d76f477131967"}, - {file = "pydantic_core-2.27.1-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:4228b5b646caa73f119b1ae756216b59cc6e2267201c27d3912b592c5e323b60"}, - {file = "pydantic_core-2.27.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0b3dfe500de26c52abe0477dde16192ac39c98f05bf2d80e76102d394bd13854"}, - {file = "pydantic_core-2.27.1-cp39-cp39-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:aee66be87825cdf72ac64cb03ad4c15ffef4143dbf5c113f64a5ff4f81477bf9"}, - {file = "pydantic_core-2.27.1-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:3b748c44bb9f53031c8cbc99a8a061bc181c1000c60a30f55393b6e9c45cc5bd"}, - {file = "pydantic_core-2.27.1-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:5ca038c7f6a0afd0b2448941b6ef9d5e1949e999f9e5517692eb6da58e9d44be"}, - {file = "pydantic_core-2.27.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6e0bd57539da59a3e4671b90a502da9a28c72322a4f17866ba3ac63a82c4498e"}, - {file = "pydantic_core-2.27.1-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:ac6c2c45c847bbf8f91930d88716a0fb924b51e0c6dad329b793d670ec5db792"}, - {file = "pydantic_core-2.27.1-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:b94d4ba43739bbe8b0ce4262bcc3b7b9f31459ad120fb595627eaeb7f9b9ca01"}, - {file = "pydantic_core-2.27.1-cp39-cp39-musllinux_1_1_armv7l.whl", hash = "sha256:00e6424f4b26fe82d44577b4c842d7df97c20be6439e8e685d0d715feceb9fb9"}, - {file = "pydantic_core-2.27.1-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:38de0a70160dd97540335b7ad3a74571b24f1dc3ed33f815f0880682e6880131"}, - {file = "pydantic_core-2.27.1-cp39-none-win32.whl", hash = "sha256:7ccebf51efc61634f6c2344da73e366c75e735960b5654b63d7e6f69a5885fa3"}, - {file = "pydantic_core-2.27.1-cp39-none-win_amd64.whl", hash = "sha256:a57847b090d7892f123726202b7daa20df6694cbd583b67a592e856bff603d6c"}, - {file = "pydantic_core-2.27.1-pp310-pypy310_pp73-macosx_10_12_x86_64.whl", hash = "sha256:3fa80ac2bd5856580e242dbc202db873c60a01b20309c8319b5c5986fbe53ce6"}, - {file = "pydantic_core-2.27.1-pp310-pypy310_pp73-macosx_11_0_arm64.whl", hash = "sha256:d950caa237bb1954f1b8c9227b5065ba6875ac9771bb8ec790d956a699b78676"}, - {file = "pydantic_core-2.27.1-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0e4216e64d203e39c62df627aa882f02a2438d18a5f21d7f721621f7a5d3611d"}, - {file = "pydantic_core-2.27.1-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:02a3d637bd387c41d46b002f0e49c52642281edacd2740e5a42f7017feea3f2c"}, - {file = "pydantic_core-2.27.1-pp310-pypy310_pp73-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:161c27ccce13b6b0c8689418da3885d3220ed2eae2ea5e9b2f7f3d48f1d52c27"}, - {file = "pydantic_core-2.27.1-pp310-pypy310_pp73-musllinux_1_1_aarch64.whl", hash = "sha256:19910754e4cc9c63bc1c7f6d73aa1cfee82f42007e407c0f413695c2f7ed777f"}, - {file = "pydantic_core-2.27.1-pp310-pypy310_pp73-musllinux_1_1_armv7l.whl", hash = "sha256:e173486019cc283dc9778315fa29a363579372fe67045e971e89b6365cc035ed"}, - {file = "pydantic_core-2.27.1-pp310-pypy310_pp73-musllinux_1_1_x86_64.whl", hash = "sha256:af52d26579b308921b73b956153066481f064875140ccd1dfd4e77db89dbb12f"}, - {file = "pydantic_core-2.27.1-pp310-pypy310_pp73-win_amd64.whl", hash = "sha256:981fb88516bd1ae8b0cbbd2034678a39dedc98752f264ac9bc5839d3923fa04c"}, - {file = "pydantic_core-2.27.1-pp39-pypy39_pp73-macosx_10_12_x86_64.whl", hash = "sha256:5fde892e6c697ce3e30c61b239330fc5d569a71fefd4eb6512fc6caec9dd9e2f"}, - {file = "pydantic_core-2.27.1-pp39-pypy39_pp73-macosx_11_0_arm64.whl", hash = "sha256:816f5aa087094099fff7edabb5e01cc370eb21aa1a1d44fe2d2aefdfb5599b31"}, - {file = "pydantic_core-2.27.1-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:9c10c309e18e443ddb108f0ef64e8729363adbfd92d6d57beec680f6261556f3"}, - {file = "pydantic_core-2.27.1-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:98476c98b02c8e9b2eec76ac4156fd006628b1b2d0ef27e548ffa978393fd154"}, - {file = "pydantic_core-2.27.1-pp39-pypy39_pp73-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:c3027001c28434e7ca5a6e1e527487051136aa81803ac812be51802150d880dd"}, - {file = "pydantic_core-2.27.1-pp39-pypy39_pp73-musllinux_1_1_aarch64.whl", hash = "sha256:7699b1df36a48169cdebda7ab5a2bac265204003f153b4bd17276153d997670a"}, - {file = "pydantic_core-2.27.1-pp39-pypy39_pp73-musllinux_1_1_armv7l.whl", hash = "sha256:1c39b07d90be6b48968ddc8c19e7585052088fd7ec8d568bb31ff64c70ae3c97"}, - {file = "pydantic_core-2.27.1-pp39-pypy39_pp73-musllinux_1_1_x86_64.whl", hash = "sha256:46ccfe3032b3915586e469d4972973f893c0a2bb65669194a5bdea9bacc088c2"}, - {file = "pydantic_core-2.27.1-pp39-pypy39_pp73-win_amd64.whl", hash = "sha256:62ba45e21cf6571d7f716d903b5b7b6d2617e2d5d67c0923dc47b9d41369f840"}, - {file = "pydantic_core-2.27.1.tar.gz", hash = "sha256:62a763352879b84aa31058fc931884055fd75089cccbd9d58bb6afd01141b235"}, + {file = "pydantic_core-2.33.2-cp310-cp310-macosx_10_12_x86_64.whl", hash = "sha256:2b3d326aaef0c0399d9afffeb6367d5e26ddc24d351dbc9c636840ac355dc5d8"}, + {file = "pydantic_core-2.33.2-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:0e5b2671f05ba48b94cb90ce55d8bdcaaedb8ba00cc5359f6810fc918713983d"}, + {file = "pydantic_core-2.33.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0069c9acc3f3981b9ff4cdfaf088e98d83440a4c7ea1bc07460af3d4dc22e72d"}, + {file = "pydantic_core-2.33.2-cp310-cp310-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:d53b22f2032c42eaaf025f7c40c2e3b94568ae077a606f006d206a463bc69572"}, + {file = "pydantic_core-2.33.2-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:0405262705a123b7ce9f0b92f123334d67b70fd1f20a9372b907ce1080c7ba02"}, + {file = "pydantic_core-2.33.2-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:4b25d91e288e2c4e0662b8038a28c6a07eaac3e196cfc4ff69de4ea3db992a1b"}, + {file = "pydantic_core-2.33.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6bdfe4b3789761f3bcb4b1ddf33355a71079858958e3a552f16d5af19768fef2"}, + {file = "pydantic_core-2.33.2-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:efec8db3266b76ef9607c2c4c419bdb06bf335ae433b80816089ea7585816f6a"}, + {file = "pydantic_core-2.33.2-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:031c57d67ca86902726e0fae2214ce6770bbe2f710dc33063187a68744a5ecac"}, + {file = "pydantic_core-2.33.2-cp310-cp310-musllinux_1_1_armv7l.whl", hash = "sha256:f8de619080e944347f5f20de29a975c2d815d9ddd8be9b9b7268e2e3ef68605a"}, + {file = "pydantic_core-2.33.2-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:73662edf539e72a9440129f231ed3757faab89630d291b784ca99237fb94db2b"}, + {file = "pydantic_core-2.33.2-cp310-cp310-win32.whl", hash = "sha256:0a39979dcbb70998b0e505fb1556a1d550a0781463ce84ebf915ba293ccb7e22"}, + {file = "pydantic_core-2.33.2-cp310-cp310-win_amd64.whl", hash = "sha256:b0379a2b24882fef529ec3b4987cb5d003b9cda32256024e6fe1586ac45fc640"}, + {file = "pydantic_core-2.33.2-cp311-cp311-macosx_10_12_x86_64.whl", hash = "sha256:4c5b0a576fb381edd6d27f0a85915c6daf2f8138dc5c267a57c08a62900758c7"}, + {file = "pydantic_core-2.33.2-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:e799c050df38a639db758c617ec771fd8fb7a5f8eaaa4b27b101f266b216a246"}, + {file = "pydantic_core-2.33.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:dc46a01bf8d62f227d5ecee74178ffc448ff4e5197c756331f71efcc66dc980f"}, + {file = "pydantic_core-2.33.2-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:a144d4f717285c6d9234a66778059f33a89096dfb9b39117663fd8413d582dcc"}, + {file = "pydantic_core-2.33.2-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:73cf6373c21bc80b2e0dc88444f41ae60b2f070ed02095754eb5a01df12256de"}, + {file = "pydantic_core-2.33.2-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:3dc625f4aa79713512d1976fe9f0bc99f706a9dee21dfd1810b4bbbf228d0e8a"}, + {file = "pydantic_core-2.33.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:881b21b5549499972441da4758d662aeea93f1923f953e9cbaff14b8b9565aef"}, + {file = "pydantic_core-2.33.2-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:bdc25f3681f7b78572699569514036afe3c243bc3059d3942624e936ec93450e"}, + {file = "pydantic_core-2.33.2-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:fe5b32187cbc0c862ee201ad66c30cf218e5ed468ec8dc1cf49dec66e160cc4d"}, + {file = "pydantic_core-2.33.2-cp311-cp311-musllinux_1_1_armv7l.whl", hash = "sha256:bc7aee6f634a6f4a95676fcb5d6559a2c2a390330098dba5e5a5f28a2e4ada30"}, + {file = "pydantic_core-2.33.2-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:235f45e5dbcccf6bd99f9f472858849f73d11120d76ea8707115415f8e5ebebf"}, + {file = "pydantic_core-2.33.2-cp311-cp311-win32.whl", hash = "sha256:6368900c2d3ef09b69cb0b913f9f8263b03786e5b2a387706c5afb66800efd51"}, + {file = "pydantic_core-2.33.2-cp311-cp311-win_amd64.whl", hash = "sha256:1e063337ef9e9820c77acc768546325ebe04ee38b08703244c1309cccc4f1bab"}, + {file = "pydantic_core-2.33.2-cp311-cp311-win_arm64.whl", hash = "sha256:6b99022f1d19bc32a4c2a0d544fc9a76e3be90f0b3f4af413f87d38749300e65"}, + {file = "pydantic_core-2.33.2-cp312-cp312-macosx_10_12_x86_64.whl", hash = "sha256:a7ec89dc587667f22b6a0b6579c249fca9026ce7c333fc142ba42411fa243cdc"}, + {file = "pydantic_core-2.33.2-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:3c6db6e52c6d70aa0d00d45cdb9b40f0433b96380071ea80b09277dba021ddf7"}, + {file = "pydantic_core-2.33.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4e61206137cbc65e6d5256e1166f88331d3b6238e082d9f74613b9b765fb9025"}, + {file = "pydantic_core-2.33.2-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:eb8c529b2819c37140eb51b914153063d27ed88e3bdc31b71198a198e921e011"}, + {file = "pydantic_core-2.33.2-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:c52b02ad8b4e2cf14ca7b3d918f3eb0ee91e63b3167c32591e57c4317e134f8f"}, + {file = "pydantic_core-2.33.2-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:96081f1605125ba0855dfda83f6f3df5ec90c61195421ba72223de35ccfb2f88"}, + {file = "pydantic_core-2.33.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8f57a69461af2a5fa6e6bbd7a5f60d3b7e6cebb687f55106933188e79ad155c1"}, + {file = "pydantic_core-2.33.2-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:572c7e6c8bb4774d2ac88929e3d1f12bc45714ae5ee6d9a788a9fb35e60bb04b"}, + {file = "pydantic_core-2.33.2-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:db4b41f9bd95fbe5acd76d89920336ba96f03e149097365afe1cb092fceb89a1"}, + {file = "pydantic_core-2.33.2-cp312-cp312-musllinux_1_1_armv7l.whl", hash = "sha256:fa854f5cf7e33842a892e5c73f45327760bc7bc516339fda888c75ae60edaeb6"}, + {file = "pydantic_core-2.33.2-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:5f483cfb75ff703095c59e365360cb73e00185e01aaea067cd19acffd2ab20ea"}, + {file = "pydantic_core-2.33.2-cp312-cp312-win32.whl", hash = "sha256:9cb1da0f5a471435a7bc7e439b8a728e8b61e59784b2af70d7c169f8dd8ae290"}, + {file = "pydantic_core-2.33.2-cp312-cp312-win_amd64.whl", hash = "sha256:f941635f2a3d96b2973e867144fde513665c87f13fe0e193c158ac51bfaaa7b2"}, + {file = "pydantic_core-2.33.2-cp312-cp312-win_arm64.whl", hash = "sha256:cca3868ddfaccfbc4bfb1d608e2ccaaebe0ae628e1416aeb9c4d88c001bb45ab"}, + {file = "pydantic_core-2.33.2-cp313-cp313-macosx_10_12_x86_64.whl", hash = "sha256:1082dd3e2d7109ad8b7da48e1d4710c8d06c253cbc4a27c1cff4fbcaa97a9e3f"}, + {file = "pydantic_core-2.33.2-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:f517ca031dfc037a9c07e748cefd8d96235088b83b4f4ba8939105d20fa1dcd6"}, + {file = "pydantic_core-2.33.2-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0a9f2c9dd19656823cb8250b0724ee9c60a82f3cdf68a080979d13092a3b0fef"}, + {file = "pydantic_core-2.33.2-cp313-cp313-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:2b0a451c263b01acebe51895bfb0e1cc842a5c666efe06cdf13846c7418caa9a"}, + {file = "pydantic_core-2.33.2-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:1ea40a64d23faa25e62a70ad163571c0b342b8bf66d5fa612ac0dec4f069d916"}, + {file = "pydantic_core-2.33.2-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:0fb2d542b4d66f9470e8065c5469ec676978d625a8b7a363f07d9a501a9cb36a"}, + {file = "pydantic_core-2.33.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9fdac5d6ffa1b5a83bca06ffe7583f5576555e6c8b3a91fbd25ea7780f825f7d"}, + {file = "pydantic_core-2.33.2-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:04a1a413977ab517154eebb2d326da71638271477d6ad87a769102f7c2488c56"}, + {file = "pydantic_core-2.33.2-cp313-cp313-musllinux_1_1_aarch64.whl", hash = "sha256:c8e7af2f4e0194c22b5b37205bfb293d166a7344a5b0d0eaccebc376546d77d5"}, + {file = "pydantic_core-2.33.2-cp313-cp313-musllinux_1_1_armv7l.whl", hash = "sha256:5c92edd15cd58b3c2d34873597a1e20f13094f59cf88068adb18947df5455b4e"}, + {file = "pydantic_core-2.33.2-cp313-cp313-musllinux_1_1_x86_64.whl", hash = "sha256:65132b7b4a1c0beded5e057324b7e16e10910c106d43675d9bd87d4f38dde162"}, + {file = "pydantic_core-2.33.2-cp313-cp313-win32.whl", hash = "sha256:52fb90784e0a242bb96ec53f42196a17278855b0f31ac7c3cc6f5c1ec4811849"}, + {file = "pydantic_core-2.33.2-cp313-cp313-win_amd64.whl", hash = "sha256:c083a3bdd5a93dfe480f1125926afcdbf2917ae714bdb80b36d34318b2bec5d9"}, + {file = "pydantic_core-2.33.2-cp313-cp313-win_arm64.whl", hash = "sha256:e80b087132752f6b3d714f041ccf74403799d3b23a72722ea2e6ba2e892555b9"}, + {file = "pydantic_core-2.33.2-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:61c18fba8e5e9db3ab908620af374db0ac1baa69f0f32df4f61ae23f15e586ac"}, + {file = "pydantic_core-2.33.2-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:95237e53bb015f67b63c91af7518a62a8660376a6a0db19b89acc77a4d6199f5"}, + {file = "pydantic_core-2.33.2-cp313-cp313t-win_amd64.whl", hash = "sha256:c2fc0a768ef76c15ab9238afa6da7f69895bb5d1ee83aeea2e3509af4472d0b9"}, + {file = "pydantic_core-2.33.2-cp39-cp39-macosx_10_12_x86_64.whl", hash = "sha256:a2b911a5b90e0374d03813674bf0a5fbbb7741570dcd4b4e85a2e48d17def29d"}, + {file = "pydantic_core-2.33.2-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:6fa6dfc3e4d1f734a34710f391ae822e0a8eb8559a85c6979e14e65ee6ba2954"}, + {file = "pydantic_core-2.33.2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c54c939ee22dc8e2d545da79fc5381f1c020d6d3141d3bd747eab59164dc89fb"}, + {file = "pydantic_core-2.33.2-cp39-cp39-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:53a57d2ed685940a504248187d5685e49eb5eef0f696853647bf37c418c538f7"}, + {file = "pydantic_core-2.33.2-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:09fb9dd6571aacd023fe6aaca316bd01cf60ab27240d7eb39ebd66a3a15293b4"}, + {file = "pydantic_core-2.33.2-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:0e6116757f7959a712db11f3e9c0a99ade00a5bbedae83cb801985aa154f071b"}, + {file = "pydantic_core-2.33.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8d55ab81c57b8ff8548c3e4947f119551253f4e3787a7bbc0b6b3ca47498a9d3"}, + {file = "pydantic_core-2.33.2-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:c20c462aa4434b33a2661701b861604913f912254e441ab8d78d30485736115a"}, + {file = "pydantic_core-2.33.2-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:44857c3227d3fb5e753d5fe4a3420d6376fa594b07b621e220cd93703fe21782"}, + {file = "pydantic_core-2.33.2-cp39-cp39-musllinux_1_1_armv7l.whl", hash = "sha256:eb9b459ca4df0e5c87deb59d37377461a538852765293f9e6ee834f0435a93b9"}, + {file = "pydantic_core-2.33.2-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:9fcd347d2cc5c23b06de6d3b7b8275be558a0c90549495c699e379a80bf8379e"}, + {file = "pydantic_core-2.33.2-cp39-cp39-win32.whl", hash = "sha256:83aa99b1285bc8f038941ddf598501a86f1536789740991d7d8756e34f1e74d9"}, + {file = "pydantic_core-2.33.2-cp39-cp39-win_amd64.whl", hash = "sha256:f481959862f57f29601ccced557cc2e817bce7533ab8e01a797a48b49c9692b3"}, + {file = "pydantic_core-2.33.2-pp310-pypy310_pp73-macosx_10_12_x86_64.whl", hash = "sha256:5c4aa4e82353f65e548c476b37e64189783aa5384903bfea4f41580f255fddfa"}, + {file = "pydantic_core-2.33.2-pp310-pypy310_pp73-macosx_11_0_arm64.whl", hash = "sha256:d946c8bf0d5c24bf4fe333af284c59a19358aa3ec18cb3dc4370080da1e8ad29"}, + {file = "pydantic_core-2.33.2-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:87b31b6846e361ef83fedb187bb5b4372d0da3f7e28d85415efa92d6125d6e6d"}, + {file = "pydantic_core-2.33.2-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:aa9d91b338f2df0508606f7009fde642391425189bba6d8c653afd80fd6bb64e"}, + {file = "pydantic_core-2.33.2-pp310-pypy310_pp73-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:2058a32994f1fde4ca0480ab9d1e75a0e8c87c22b53a3ae66554f9af78f2fe8c"}, + {file = "pydantic_core-2.33.2-pp310-pypy310_pp73-musllinux_1_1_aarch64.whl", hash = "sha256:0e03262ab796d986f978f79c943fc5f620381be7287148b8010b4097f79a39ec"}, + {file = "pydantic_core-2.33.2-pp310-pypy310_pp73-musllinux_1_1_armv7l.whl", hash = "sha256:1a8695a8d00c73e50bff9dfda4d540b7dee29ff9b8053e38380426a85ef10052"}, + {file = "pydantic_core-2.33.2-pp310-pypy310_pp73-musllinux_1_1_x86_64.whl", hash = "sha256:fa754d1850735a0b0e03bcffd9d4b4343eb417e47196e4485d9cca326073a42c"}, + {file = "pydantic_core-2.33.2-pp310-pypy310_pp73-win_amd64.whl", hash = "sha256:a11c8d26a50bfab49002947d3d237abe4d9e4b5bdc8846a63537b6488e197808"}, + {file = "pydantic_core-2.33.2-pp311-pypy311_pp73-macosx_10_12_x86_64.whl", hash = "sha256:dd14041875d09cc0f9308e37a6f8b65f5585cf2598a53aa0123df8b129d481f8"}, + {file = "pydantic_core-2.33.2-pp311-pypy311_pp73-macosx_11_0_arm64.whl", hash = "sha256:d87c561733f66531dced0da6e864f44ebf89a8fba55f31407b00c2f7f9449593"}, + {file = "pydantic_core-2.33.2-pp311-pypy311_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:2f82865531efd18d6e07a04a17331af02cb7a651583c418df8266f17a63c6612"}, + {file = "pydantic_core-2.33.2-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2bfb5112df54209d820d7bf9317c7a6c9025ea52e49f46b6a2060104bba37de7"}, + {file = "pydantic_core-2.33.2-pp311-pypy311_pp73-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:64632ff9d614e5eecfb495796ad51b0ed98c453e447a76bcbeeb69615079fc7e"}, + {file = "pydantic_core-2.33.2-pp311-pypy311_pp73-musllinux_1_1_aarch64.whl", hash = "sha256:f889f7a40498cc077332c7ab6b4608d296d852182211787d4f3ee377aaae66e8"}, + {file = "pydantic_core-2.33.2-pp311-pypy311_pp73-musllinux_1_1_armv7l.whl", hash = "sha256:de4b83bb311557e439b9e186f733f6c645b9417c84e2eb8203f3f820a4b988bf"}, + {file = "pydantic_core-2.33.2-pp311-pypy311_pp73-musllinux_1_1_x86_64.whl", hash = "sha256:82f68293f055f51b51ea42fafc74b6aad03e70e191799430b90c13d643059ebb"}, + {file = "pydantic_core-2.33.2-pp311-pypy311_pp73-win_amd64.whl", hash = "sha256:329467cecfb529c925cf2bbd4d60d2c509bc2fb52a20c1045bf09bb70971a9c1"}, + {file = "pydantic_core-2.33.2-pp39-pypy39_pp73-macosx_10_12_x86_64.whl", hash = "sha256:87acbfcf8e90ca885206e98359d7dca4bcbb35abdc0ff66672a293e1d7a19101"}, + {file = "pydantic_core-2.33.2-pp39-pypy39_pp73-macosx_11_0_arm64.whl", hash = "sha256:7f92c15cd1e97d4b12acd1cc9004fa092578acfa57b67ad5e43a197175d01a64"}, + {file = "pydantic_core-2.33.2-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d3f26877a748dc4251cfcfda9dfb5f13fcb034f5308388066bcfe9031b63ae7d"}, + {file = "pydantic_core-2.33.2-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:dac89aea9af8cd672fa7b510e7b8c33b0bba9a43186680550ccf23020f32d535"}, + {file = "pydantic_core-2.33.2-pp39-pypy39_pp73-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:970919794d126ba8645f3837ab6046fb4e72bbc057b3709144066204c19a455d"}, + {file = "pydantic_core-2.33.2-pp39-pypy39_pp73-musllinux_1_1_aarch64.whl", hash = "sha256:3eb3fe62804e8f859c49ed20a8451342de53ed764150cb14ca71357c765dc2a6"}, + {file = "pydantic_core-2.33.2-pp39-pypy39_pp73-musllinux_1_1_armv7l.whl", hash = "sha256:3abcd9392a36025e3bd55f9bd38d908bd17962cc49bc6da8e7e96285336e2bca"}, + {file = "pydantic_core-2.33.2-pp39-pypy39_pp73-musllinux_1_1_x86_64.whl", hash = "sha256:3a1c81334778f9e3af2f8aeb7a960736e5cab1dfebfb26aabca09afd2906c039"}, + {file = "pydantic_core-2.33.2-pp39-pypy39_pp73-win_amd64.whl", hash = "sha256:2807668ba86cb38c6817ad9bc66215ab8584d1d304030ce4f0887336f28a5e27"}, + {file = "pydantic_core-2.33.2.tar.gz", hash = "sha256:7cb8bc3605c29176e1b105350d2e6474142d7c1bd1d9327c4a9bdb46bf827acc"}, ] [package.dependencies] @@ -439,6 +443,7 @@ version = "3.2.3" description = "python code static checker" optional = false python-versions = ">=3.8.0" +groups = ["dev"] files = [ {file = "pylint-3.2.3-py3-none-any.whl", hash = "sha256:b3d7d2708a3e04b4679e02d99e72329a8b7ee8afb8d04110682278781f889fa8"}, {file = "pylint-3.2.3.tar.gz", hash = "sha256:02f6c562b215582386068d52a30f520d84fdbcf2a95fc7e855b816060d048b60"}, @@ -450,43 +455,38 @@ colorama = {version = ">=0.4.5", markers = "sys_platform == \"win32\""} dill = [ {version = ">=0.2", markers = "python_version < \"3.11\""}, {version = ">=0.3.7", markers = "python_version >= \"3.12\""}, - {version = ">=0.3.6", markers = "python_version >= \"3.11\" and python_version < \"3.12\""}, + {version = ">=0.3.6", markers = "python_version == \"3.11\""}, ] isort = ">=4.2.5,<5.13.0 || >5.13.0,<6" mccabe = ">=0.6,<0.8" platformdirs = ">=2.2.0" tomli = {version = ">=1.1.0", markers = "python_version < \"3.11\""} tomlkit = ">=0.10.1" -typing-extensions = {version = ">=3.10.0", markers = "python_version < \"3.10\""} [package.extras] spelling = ["pyenchant (>=3.2,<4.0)"] testutils = ["gitpython (>3)"] [[package]] -name = "python-dateutil" -version = "2.9.0.post0" -description = "Extensions to the standard Python datetime module" +name = "pyright" +version = "1.1.398" +description = "Command line wrapper for pyright" optional = false -python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,>=2.7" +python-versions = ">=3.7" +groups = ["dev"] files = [ - {file = "python-dateutil-2.9.0.post0.tar.gz", hash = "sha256:37dd54208da7e1cd875388217d5e00ebd4179249f90fb72437e91a35459a0ad3"}, - {file = "python_dateutil-2.9.0.post0-py2.py3-none-any.whl", hash = "sha256:a8b2bc7bffae282281c8140a97d3aa9c14da0b136dfe83f850eea9a5f7470427"}, + {file = "pyright-1.1.398-py3-none-any.whl", hash = "sha256:0a70bfd007d9ea7de1cf9740e1ad1a40a122592cfe22a3f6791b06162ad08753"}, + {file = "pyright-1.1.398.tar.gz", hash = "sha256:357a13edd9be8082dc73be51190913e475fa41a6efb6ec0d4b7aab3bc11638d8"}, ] [package.dependencies] -six = ">=1.5" +nodeenv = ">=1.6.0" +typing-extensions = ">=4.1" -[[package]] -name = "six" -version = "1.16.0" -description = "Python 2 and 3 compatibility utilities" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*" -files = [ - {file = "six-1.16.0-py2.py3-none-any.whl", hash = "sha256:8abb2f1d86890a2dfb989f9a77cfcfd3e47c2a354b01111771326f8aa26e0254"}, - {file = "six-1.16.0.tar.gz", hash = "sha256:1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926"}, -] +[package.extras] +all = ["nodejs-wheel-binaries", "twine (>=3.4.1)"] +dev = ["twine (>=3.4.1)"] +nodejs = ["nodejs-wheel-binaries"] [[package]] name = "sniffio" @@ -494,6 +494,7 @@ version = "1.3.1" description = "Sniff out which async library your code is running under" optional = false python-versions = ">=3.7" +groups = ["main"] files = [ {file = "sniffio-1.3.1-py3-none-any.whl", hash = "sha256:2f6da418d1f1e0fddd844478f41680e794e6051915791a034ff65e5f100525a2"}, {file = "sniffio-1.3.1.tar.gz", hash = "sha256:f4324edc670a0f49750a81b895f35c3adb843cca46f0530f79fc1babb23789dc"}, @@ -505,6 +506,8 @@ version = "2.1.0" description = "A lil' TOML parser" optional = false python-versions = ">=3.8" +groups = ["dev"] +markers = "python_version == \"3.10\"" files = [ {file = "tomli-2.1.0-py3-none-any.whl", hash = "sha256:a5c57c3d1c56f5ccdf89f6523458f60ef716e210fc47c4cfb188c5ba473e0391"}, {file = "tomli-2.1.0.tar.gz", hash = "sha256:3f646cae2aec94e17d04973e4249548320197cfabdf130015d023de4b74d8ab8"}, @@ -516,49 +519,40 @@ version = "0.13.2" description = "Style preserving TOML library" optional = false python-versions = ">=3.8" +groups = ["dev"] files = [ {file = "tomlkit-0.13.2-py3-none-any.whl", hash = "sha256:7a974427f6e119197f670fbbbeae7bef749a6c14e793db934baefc1b5f03efde"}, {file = "tomlkit-0.13.2.tar.gz", hash = "sha256:fff5fe59a87295b278abd31bec92c15d9bc4a06885ab12bcea52c71119392e79"}, ] -[[package]] -name = "types-python-dateutil" -version = "2.9.0.20241003" -description = "Typing stubs for python-dateutil" -optional = false -python-versions = ">=3.8" -files = [ - {file = "types-python-dateutil-2.9.0.20241003.tar.gz", hash = "sha256:58cb85449b2a56d6684e41aeefb4c4280631246a0da1a719bdbe6f3fb0317446"}, - {file = "types_python_dateutil-2.9.0.20241003-py3-none-any.whl", hash = "sha256:250e1d8e80e7bbc3a6c99b907762711d1a1cdd00e978ad39cb5940f6f0a87f3d"}, -] - [[package]] name = "typing-extensions" version = "4.12.2" description = "Backported and Experimental Type Hints for Python 3.8+" optional = false python-versions = ">=3.8" +groups = ["main", "dev"] files = [ {file = "typing_extensions-4.12.2-py3-none-any.whl", hash = "sha256:04e5ca0351e0f3f85c6853954072df659d0d13fac324d0072316b67d7794700d"}, {file = "typing_extensions-4.12.2.tar.gz", hash = "sha256:1a7ead55c7e559dd4dee8856e3a88b41225abfe1ce8df57b7c13915fe121ffb8"}, ] [[package]] -name = "typing-inspect" -version = "0.9.0" -description = "Runtime inspection utilities for typing module." +name = "typing-inspection" +version = "0.4.2" +description = "Runtime typing introspection tools" optional = false -python-versions = "*" +python-versions = ">=3.9" +groups = ["main"] files = [ - {file = "typing_inspect-0.9.0-py3-none-any.whl", hash = "sha256:9ee6fc59062311ef8547596ab6b955e1b8aa46242d854bfc78f4f6b0eff35f9f"}, - {file = "typing_inspect-0.9.0.tar.gz", hash = "sha256:b23fc42ff6f6ef6954e4852c1fb512cdd18dbea03134f91f856a95ccc9461f78"}, + {file = "typing_inspection-0.4.2-py3-none-any.whl", hash = "sha256:4ed1cacbdc298c220f1bd249ed5287caa16f34d44ef4e9c3d0cbad5b521545e7"}, + {file = "typing_inspection-0.4.2.tar.gz", hash = "sha256:ba561c48a67c5958007083d386c3295464928b01faa735ab8547c5692e87f464"}, ] [package.dependencies] -mypy-extensions = ">=0.3.0" -typing-extensions = ">=3.7.4" +typing-extensions = ">=4.12.0" [metadata] -lock-version = "2.0" -python-versions = "^3.8" -content-hash = "231d09484040ca8e2e4ea801ceedb0b672113dd483caa7cb13d217c3e92d7655" +lock-version = "2.1" +python-versions = ">=3.10" +content-hash = "f6a8355b7012376d6650030a1b23aaf67653ed8ccc9eae2880ccb8d9a23e3d6b" diff --git a/sync-for-expenses/poetry.toml b/sync-for-expenses/poetry.toml index ab1033bd3..cd3492ac9 100644 --- a/sync-for-expenses/poetry.toml +++ b/sync-for-expenses/poetry.toml @@ -1,2 +1,3 @@ + [virtualenvs] in-project = true diff --git a/sync-for-expenses/pylintrc b/sync-for-expenses/pylintrc index c97dd0049..61b9570de 100644 --- a/sync-for-expenses/pylintrc +++ b/sync-for-expenses/pylintrc @@ -89,7 +89,7 @@ persistent=yes # Minimum Python version to use for version dependent checks. Will default to # the version used to run pylint. -py-version=3.8 +py-version=3.10 # Discover python modules and packages in the file system subtree. recursive=no @@ -455,7 +455,12 @@ disable=raw-checker-failed, bare-except, broad-exception-caught, fixme, - relative-beyond-top-level + relative-beyond-top-level, + consider-using-with, + wildcard-import, + unused-wildcard-import, + too-many-return-statements, + redefined-builtin # Enable the message, report, category or checker with the given id(s). You can # either give multiple identifier separated by comma (,) or put this option @@ -637,7 +642,7 @@ additional-builtins= allow-global-unused-variables=yes # List of names allowed to shadow builtins -allowed-redefined-builtins=id,object +allowed-redefined-builtins=id,object,dir # List of strings which can identify a callback function by name. A callback # name must start or end with one of those strings. @@ -656,4 +661,4 @@ init-import=no # List of qualified module names which can have objects that can redefine # builtins. -redefining-builtins-modules=six.moves,past.builtins,future.builtins,builtins,io +redefining-builtins-modules=six.moves,past.builtins,future.builtins,builtins,io \ No newline at end of file diff --git a/sync-for-expenses/pyproject.toml b/sync-for-expenses/pyproject.toml index 94858706e..7d51a3d5a 100644 --- a/sync-for-expenses/pyproject.toml +++ b/sync-for-expenses/pyproject.toml @@ -1,9 +1,18 @@ -[tool.poetry] + +[project] name = "codat-sync-for-expenses" -version = "7.0.1" +version = "8.0.0" description = "Push expenses to accounting software." -authors = ["Speakeasy",] +authors = [{ name = "Speakeasy" },] readme = "README-PYPI.md" +requires-python = ">=3.10" +dependencies = [ + "httpcore >=1.0.9", + "httpx >=0.28.1", + "pydantic >=2.11.2", +] + +[tool.poetry] repository = "https://github.com/codatio/client-sdk-python.git" packages = [ { include = "codat_sync_for_expenses", from = "src" } @@ -16,29 +25,23 @@ include = ["py.typed", "src/codat_sync_for_expenses/py.typed"] [virtualenvs] in-project = true -[tool.poetry.dependencies] -python = "^3.8" -eval-type-backport = "^0.2.0" -httpx = "^0.28.1" -jsonpath-python = "^1.0.6" -pydantic = "~2.10.3" -python-dateutil = "^2.8.2" -typing-inspect = "^0.9.0" - [tool.poetry.group.dev.dependencies] -mypy = "==1.13.0" +mypy = "==1.15.0" pylint = "==3.2.3" -types-python-dateutil = "^2.9.0.20240316" +pyright = "==1.1.398" [build-system] requires = ["poetry-core"] build-backend = "poetry.core.masonry.api" [tool.pytest.ini_options] +asyncio_default_fixture_loop_scope = "function" pythonpath = ["src"] [tool.mypy] disable_error_code = "misc" +explicit_package_bases = true +mypy_path = "src" [[tool.mypy.overrides]] module = "typing_inspect" diff --git a/sync-for-expenses/scripts/prepare-readme.py b/sync-for-expenses/scripts/prepare_readme.py similarity index 71% rename from sync-for-expenses/scripts/prepare-readme.py rename to sync-for-expenses/scripts/prepare_readme.py index 7c07cddd7..714831c7d 100644 --- a/sync-for-expenses/scripts/prepare-readme.py +++ b/sync-for-expenses/scripts/prepare_readme.py @@ -4,30 +4,35 @@ import shutil try: - with open("README.md", "r") as rh: + with open("README.md", "r", encoding="utf-8") as rh: readme_contents = rh.read() GITHUB_URL = "https://github.com/codatio/client-sdk-python.git" GITHUB_URL = ( GITHUB_URL[: -len(".git")] if GITHUB_URL.endswith(".git") else GITHUB_URL ) + REPO_SUBDIR = "sync-for-expenses" + # Ensure the subdirectory has a trailing slash + if not REPO_SUBDIR.endswith("/"): + REPO_SUBDIR += "/" # links on PyPI should have absolute URLs readme_contents = re.sub( r"(\[[^\]]+\]\()((?!https?:)[^\)]+)(\))", lambda m: m.group(1) + GITHUB_URL + "/blob/master/" + + REPO_SUBDIR + m.group(2) + m.group(3), readme_contents, ) - with open("README-PYPI.md", "w") as wh: + with open("README-PYPI.md", "w", encoding="utf-8") as wh: wh.write(readme_contents) except Exception as e: try: print("Failed to rewrite README.md to README-PYPI.md, copying original instead") print(e) shutil.copyfile("README.md", "README-PYPI.md") - except Exception as e: + except Exception as ie: print("Failed to copy README.md to README-PYPI.md") - print(e) + print(ie) diff --git a/sync-for-expenses/scripts/publish.sh b/sync-for-expenses/scripts/publish.sh index ab45b1f94..2a3ead70c 100755 --- a/sync-for-expenses/scripts/publish.sh +++ b/sync-for-expenses/scripts/publish.sh @@ -1,7 +1,6 @@ #!/usr/bin/env bash - export POETRY_PYPI_TOKEN_PYPI=${PYPI_TOKEN} -poetry run python scripts/prepare-readme.py +poetry run python scripts/prepare_readme.py poetry publish --build --skip-existing diff --git a/sync-for-expenses/src/codat_sync_for_expenses/__init__.py b/sync-for-expenses/src/codat_sync_for_expenses/__init__.py index 5c3491793..833c68cd5 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/__init__.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/__init__.py @@ -1,8 +1,17 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -from ._version import __title__, __version__ +from ._version import ( + __title__, + __version__, + __openapi_doc_version__, + __gen_version__, + __user_agent__, +) from .sdk import * from .sdkconfiguration import * VERSION: str = __version__ +OPENAPI_DOC_VERSION = __openapi_doc_version__ +SPEAKEASY_GENERATOR_VERSION = __gen_version__ +USER_AGENT = __user_agent__ diff --git a/sync-for-expenses/src/codat_sync_for_expenses/_hooks/types.py b/sync-for-expenses/src/codat_sync_for_expenses/_hooks/types.py index e00879c20..fbff2b21d 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/_hooks/types.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/_hooks/types.py @@ -2,21 +2,28 @@ from abc import ABC, abstractmethod from codat_sync_for_expenses.httpclient import HttpClient +from codat_sync_for_expenses.sdkconfiguration import SDKConfiguration import httpx from typing import Any, Callable, List, Optional, Tuple, Union class HookContext: + config: SDKConfiguration + base_url: str operation_id: str oauth2_scopes: Optional[List[str]] = None security_source: Optional[Union[Any, Callable[[], Any]]] = None def __init__( self, + config: SDKConfiguration, + base_url: str, operation_id: str, oauth2_scopes: Optional[List[str]], security_source: Optional[Union[Any, Callable[[], Any]]], ): + self.config = config + self.base_url = base_url self.operation_id = operation_id self.oauth2_scopes = oauth2_scopes self.security_source = security_source @@ -25,21 +32,33 @@ def __init__( class BeforeRequestContext(HookContext): def __init__(self, hook_ctx: HookContext): super().__init__( - hook_ctx.operation_id, hook_ctx.oauth2_scopes, hook_ctx.security_source + hook_ctx.config, + hook_ctx.base_url, + hook_ctx.operation_id, + hook_ctx.oauth2_scopes, + hook_ctx.security_source, ) class AfterSuccessContext(HookContext): def __init__(self, hook_ctx: HookContext): super().__init__( - hook_ctx.operation_id, hook_ctx.oauth2_scopes, hook_ctx.security_source + hook_ctx.config, + hook_ctx.base_url, + hook_ctx.operation_id, + hook_ctx.oauth2_scopes, + hook_ctx.security_source, ) class AfterErrorContext(HookContext): def __init__(self, hook_ctx: HookContext): super().__init__( - hook_ctx.operation_id, hook_ctx.oauth2_scopes, hook_ctx.security_source + hook_ctx.config, + hook_ctx.base_url, + hook_ctx.operation_id, + hook_ctx.oauth2_scopes, + hook_ctx.security_source, ) diff --git a/sync-for-expenses/src/codat_sync_for_expenses/_version.py b/sync-for-expenses/src/codat_sync_for_expenses/_version.py index d5f660db6..d4bdbd0e3 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/_version.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/_version.py @@ -3,7 +3,12 @@ import importlib.metadata __title__: str = "codat-sync-for-expenses" -__version__: str = "7.0.1" +__version__: str = "8.0.0" +__openapi_doc_version__: str = "prealpha" +__gen_version__: str = "2.849.2" +__user_agent__: str = ( + "speakeasy-sdk/python 8.0.0 2.849.2 prealpha codat-sync-for-expenses" +) try: if __package__ is not None: diff --git a/sync-for-expenses/src/codat_sync_for_expenses/accounts.py b/sync-for-expenses/src/codat_sync_for_expenses/accounts.py index a34fcdcc6..a82a8984f 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/accounts.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/accounts.py @@ -5,7 +5,10 @@ from codat_sync_for_expenses._hooks import HookContext from codat_sync_for_expenses.models import errors, operations, shared from codat_sync_for_expenses.types import BaseModel, OptionalNullable, UNSET -from typing import Any, Optional, Union, cast +from codat_sync_for_expenses.utils.unmarshal_json_response import ( + unmarshal_json_response, +) +from typing import Any, Mapping, Optional, Union, cast class Accounts(BaseSDK): @@ -20,14 +23,15 @@ def create( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[shared.CreateAccountResponse]: + http_headers: Optional[Mapping[str, str]] = None, + ) -> shared.CreateAccountResponse: r"""Create account The *Create account* endpoint creates a new [account](https://docs.codat.io/sync-for-expenses-api#/schemas/Account) for a given company's connection. [Accounts](https://docs.codat.io/sync-for-expenses-api#/schemas/Account) are the categories a business uses to record accounting transactions. - **Integration-specific behaviour** + **Integration-specific behavior** Required data may vary by integration. To see what data to post, first call [Get create account model](https://docs.codat.io/sync-for-expenses-api#/operations/get-create-chartOfAccounts-model). @@ -35,6 +39,7 @@ def create( :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. """ base_url = None url_variables = None @@ -43,12 +48,14 @@ def create( if server_url is not None: base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) if not isinstance(request, BaseModel): request = utils.unmarshal(request, operations.CreateAccountRequest) request = cast(operations.CreateAccountRequest, request) - req = self.build_request( + req = self._build_request( method="POST", path="/companies/{companyId}/connections/{connectionId}/push/accounts", base_url=base_url, @@ -59,14 +66,16 @@ def create( request_has_query_params=True, user_agent_header="user-agent", accept_header_value="application/json", + http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request.account_prototype, + request.account_prototype if request is not None else None, False, True, "json", Optional[shared.AccountPrototype], ), + allow_empty_value=None, timeout_ms=timeout_ms, ) @@ -84,8 +93,10 @@ def create( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", operation_id="create-account", - oauth2_scopes=[], + oauth2_scopes=None, security_source=self.sdk_configuration.security, ), request=req, @@ -104,32 +115,25 @@ def create( retry_config=retry_config, ) - data: Any = None + response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[shared.CreateAccountResponse] - ) + return unmarshal_json_response(shared.CreateAccountResponse, http_res) if utils.match_response( - http_res, - ["400", "401", "402", "403", "404", "429", "500", "503"], - "application/json", + http_res, ["400", "401", "402", "403", "404", "429"], "application/json" ): - data = utils.unmarshal_json(http_res.text, errors.ErrorMessageData) - raise errors.ErrorMessage(data=data) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, ["500", "503"], "application/json"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = utils.stream_to_text(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) - content_type = http_res.headers.get("Content-Type") - http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res_text, - http_res, - ) + raise errors.SDKError("Unexpected response received", http_res) async def create_async( self, @@ -140,14 +144,15 @@ async def create_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[shared.CreateAccountResponse]: + http_headers: Optional[Mapping[str, str]] = None, + ) -> shared.CreateAccountResponse: r"""Create account The *Create account* endpoint creates a new [account](https://docs.codat.io/sync-for-expenses-api#/schemas/Account) for a given company's connection. [Accounts](https://docs.codat.io/sync-for-expenses-api#/schemas/Account) are the categories a business uses to record accounting transactions. - **Integration-specific behaviour** + **Integration-specific behavior** Required data may vary by integration. To see what data to post, first call [Get create account model](https://docs.codat.io/sync-for-expenses-api#/operations/get-create-chartOfAccounts-model). @@ -155,6 +160,7 @@ async def create_async( :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. """ base_url = None url_variables = None @@ -163,12 +169,14 @@ async def create_async( if server_url is not None: base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) if not isinstance(request, BaseModel): request = utils.unmarshal(request, operations.CreateAccountRequest) request = cast(operations.CreateAccountRequest, request) - req = self.build_request_async( + req = self._build_request_async( method="POST", path="/companies/{companyId}/connections/{connectionId}/push/accounts", base_url=base_url, @@ -179,14 +187,16 @@ async def create_async( request_has_query_params=True, user_agent_header="user-agent", accept_header_value="application/json", + http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request.account_prototype, + request.account_prototype if request is not None else None, False, True, "json", Optional[shared.AccountPrototype], ), + allow_empty_value=None, timeout_ms=timeout_ms, ) @@ -204,8 +214,10 @@ async def create_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", operation_id="create-account", - oauth2_scopes=[], + oauth2_scopes=None, security_source=self.sdk_configuration.security, ), request=req, @@ -224,32 +236,25 @@ async def create_async( retry_config=retry_config, ) - data: Any = None + response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[shared.CreateAccountResponse] - ) + return unmarshal_json_response(shared.CreateAccountResponse, http_res) if utils.match_response( - http_res, - ["400", "401", "402", "403", "404", "429", "500", "503"], - "application/json", + http_res, ["400", "401", "402", "403", "404", "429"], "application/json" ): - data = utils.unmarshal_json(http_res.text, errors.ErrorMessageData) - raise errors.ErrorMessage(data=data) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, ["500", "503"], "application/json"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = await utils.stream_to_text_async(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) - content_type = http_res.headers.get("Content-Type") - http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res_text, - http_res, - ) + raise errors.SDKError("Unexpected response received", http_res) def get_create_model( self, @@ -261,14 +266,15 @@ def get_create_model( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[shared.PushOption]: + http_headers: Optional[Mapping[str, str]] = None, + ) -> shared.PushOption: r"""Get create account model The *Get create account model* endpoint returns the expected data for the request payload when creating an [account](https://docs.codat.io/sync-for-expenses-api#/schemas/Account) for a given company and integration. [Accounts](https://docs.codat.io/sync-for-expenses-api#/schemas/Account) are the categories a business uses to record accounting transactions. - **Integration-specific behaviour** + **Integration-specific behavior** See the *response examples* for integration-specific indicative models. @@ -276,6 +282,7 @@ def get_create_model( :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. """ base_url = None url_variables = None @@ -284,6 +291,8 @@ def get_create_model( if server_url is not None: base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) if not isinstance(request, BaseModel): request = utils.unmarshal( @@ -291,7 +300,7 @@ def get_create_model( ) request = cast(operations.GetCreateChartOfAccountsModelRequest, request) - req = self.build_request( + req = self._build_request( method="GET", path="/companies/{companyId}/connections/{connectionId}/options/chartOfAccounts", base_url=base_url, @@ -302,7 +311,9 @@ def get_create_model( request_has_query_params=True, user_agent_header="user-agent", accept_header_value="application/json", + http_headers=http_headers, security=self.sdk_configuration.security, + allow_empty_value=None, timeout_ms=timeout_ms, ) @@ -320,8 +331,10 @@ def get_create_model( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", operation_id="get-create-chartOfAccounts-model", - oauth2_scopes=[], + oauth2_scopes=None, security_source=self.sdk_configuration.security, ), request=req, @@ -339,30 +352,25 @@ def get_create_model( retry_config=retry_config, ) - data: Any = None + response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json(http_res.text, Optional[shared.PushOption]) + return unmarshal_json_response(shared.PushOption, http_res) if utils.match_response( - http_res, - ["401", "402", "403", "404", "429", "500", "503"], - "application/json", + http_res, ["401", "402", "403", "404", "429"], "application/json" ): - data = utils.unmarshal_json(http_res.text, errors.ErrorMessageData) - raise errors.ErrorMessage(data=data) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, ["500", "503"], "application/json"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = utils.stream_to_text(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) - content_type = http_res.headers.get("Content-Type") - http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res_text, - http_res, - ) + raise errors.SDKError("Unexpected response received", http_res) async def get_create_model_async( self, @@ -374,14 +382,15 @@ async def get_create_model_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[shared.PushOption]: + http_headers: Optional[Mapping[str, str]] = None, + ) -> shared.PushOption: r"""Get create account model The *Get create account model* endpoint returns the expected data for the request payload when creating an [account](https://docs.codat.io/sync-for-expenses-api#/schemas/Account) for a given company and integration. [Accounts](https://docs.codat.io/sync-for-expenses-api#/schemas/Account) are the categories a business uses to record accounting transactions. - **Integration-specific behaviour** + **Integration-specific behavior** See the *response examples* for integration-specific indicative models. @@ -389,6 +398,7 @@ async def get_create_model_async( :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. """ base_url = None url_variables = None @@ -397,6 +407,8 @@ async def get_create_model_async( if server_url is not None: base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) if not isinstance(request, BaseModel): request = utils.unmarshal( @@ -404,7 +416,7 @@ async def get_create_model_async( ) request = cast(operations.GetCreateChartOfAccountsModelRequest, request) - req = self.build_request_async( + req = self._build_request_async( method="GET", path="/companies/{companyId}/connections/{connectionId}/options/chartOfAccounts", base_url=base_url, @@ -415,7 +427,9 @@ async def get_create_model_async( request_has_query_params=True, user_agent_header="user-agent", accept_header_value="application/json", + http_headers=http_headers, security=self.sdk_configuration.security, + allow_empty_value=None, timeout_ms=timeout_ms, ) @@ -433,8 +447,10 @@ async def get_create_model_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", operation_id="get-create-chartOfAccounts-model", - oauth2_scopes=[], + oauth2_scopes=None, security_source=self.sdk_configuration.security, ), request=req, @@ -452,27 +468,22 @@ async def get_create_model_async( retry_config=retry_config, ) - data: Any = None + response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json(http_res.text, Optional[shared.PushOption]) + return unmarshal_json_response(shared.PushOption, http_res) if utils.match_response( - http_res, - ["401", "402", "403", "404", "429", "500", "503"], - "application/json", + http_res, ["401", "402", "403", "404", "429"], "application/json" ): - data = utils.unmarshal_json(http_res.text, errors.ErrorMessageData) - raise errors.ErrorMessage(data=data) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, ["500", "503"], "application/json"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = await utils.stream_to_text_async(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) - content_type = http_res.headers.get("Content-Type") - http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res_text, - http_res, - ) + raise errors.SDKError("Unexpected response received", http_res) diff --git a/sync-for-expenses/src/codat_sync_for_expenses/adjustments.py b/sync-for-expenses/src/codat_sync_for_expenses/adjustments.py index 7bb105b74..c34ec16b6 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/adjustments.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/adjustments.py @@ -5,7 +5,10 @@ from codat_sync_for_expenses._hooks import HookContext from codat_sync_for_expenses.models import errors, operations, shared from codat_sync_for_expenses.types import BaseModel, OptionalNullable, UNSET -from typing import Any, List, Optional, Union, cast +from codat_sync_for_expenses.utils.unmarshal_json_response import ( + unmarshal_json_response, +) +from typing import Any, List, Mapping, Optional, Union, cast class Adjustments(BaseSDK): @@ -21,7 +24,8 @@ def create( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[shared.AdjustmentTransactionResponse]: + http_headers: Optional[Mapping[str, str]] = None, + ) -> shared.AdjustmentTransactionResponse: r"""Create adjustment transaction Use the *Create adjustment expense* endpoint to create an [adjustment](https://docs.codat.io/sync-for-expenses-api#/schemas/AdjustmentTransactionRequest) in the accounting software for a given company's connection. @@ -38,6 +42,7 @@ def create( :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. """ base_url = None url_variables = None @@ -46,6 +51,8 @@ def create( if server_url is not None: base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) if not isinstance(request, BaseModel): request = utils.unmarshal( @@ -53,7 +60,7 @@ def create( ) request = cast(operations.CreateAdjustmentTransactionRequest, request) - req = self.build_request( + req = self._build_request( method="POST", path="/companies/{companyId}/sync/expenses/adjustment-transactions", base_url=base_url, @@ -64,14 +71,16 @@ def create( request_has_query_params=True, user_agent_header="user-agent", accept_header_value="application/json", + http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request.request_body, + request.request_body if request is not None else None, False, True, "json", Optional[List[shared.AdjustmentTransactionRequest]], ), + allow_empty_value=None, timeout_ms=timeout_ms, ) @@ -89,8 +98,10 @@ def create( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", operation_id="create-adjustment-transaction", - oauth2_scopes=[], + oauth2_scopes=None, security_source=self.sdk_configuration.security, ), request=req, @@ -109,32 +120,27 @@ def create( retry_config=retry_config, ) - data: Any = None + response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[shared.AdjustmentTransactionResponse] + return unmarshal_json_response( + shared.AdjustmentTransactionResponse, http_res ) if utils.match_response( - http_res, - ["400", "401", "402", "403", "404", "429", "500", "503"], - "application/json", + http_res, ["400", "401", "402", "403", "404", "429"], "application/json" ): - data = utils.unmarshal_json(http_res.text, errors.ErrorMessageData) - raise errors.ErrorMessage(data=data) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, ["500", "503"], "application/json"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = utils.stream_to_text(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) - content_type = http_res.headers.get("Content-Type") - http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res_text, - http_res, - ) + raise errors.SDKError("Unexpected response received", http_res) async def create_async( self, @@ -146,7 +152,8 @@ async def create_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[shared.AdjustmentTransactionResponse]: + http_headers: Optional[Mapping[str, str]] = None, + ) -> shared.AdjustmentTransactionResponse: r"""Create adjustment transaction Use the *Create adjustment expense* endpoint to create an [adjustment](https://docs.codat.io/sync-for-expenses-api#/schemas/AdjustmentTransactionRequest) in the accounting software for a given company's connection. @@ -163,6 +170,7 @@ async def create_async( :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. """ base_url = None url_variables = None @@ -171,6 +179,8 @@ async def create_async( if server_url is not None: base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) if not isinstance(request, BaseModel): request = utils.unmarshal( @@ -178,7 +188,7 @@ async def create_async( ) request = cast(operations.CreateAdjustmentTransactionRequest, request) - req = self.build_request_async( + req = self._build_request_async( method="POST", path="/companies/{companyId}/sync/expenses/adjustment-transactions", base_url=base_url, @@ -189,14 +199,16 @@ async def create_async( request_has_query_params=True, user_agent_header="user-agent", accept_header_value="application/json", + http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request.request_body, + request.request_body if request is not None else None, False, True, "json", Optional[List[shared.AdjustmentTransactionRequest]], ), + allow_empty_value=None, timeout_ms=timeout_ms, ) @@ -214,8 +226,10 @@ async def create_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", operation_id="create-adjustment-transaction", - oauth2_scopes=[], + oauth2_scopes=None, security_source=self.sdk_configuration.security, ), request=req, @@ -234,29 +248,24 @@ async def create_async( retry_config=retry_config, ) - data: Any = None + response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[shared.AdjustmentTransactionResponse] + return unmarshal_json_response( + shared.AdjustmentTransactionResponse, http_res ) if utils.match_response( - http_res, - ["400", "401", "402", "403", "404", "429", "500", "503"], - "application/json", + http_res, ["400", "401", "402", "403", "404", "429"], "application/json" ): - data = utils.unmarshal_json(http_res.text, errors.ErrorMessageData) - raise errors.ErrorMessage(data=data) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, ["500", "503"], "application/json"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = await utils.stream_to_text_async(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) - content_type = http_res.headers.get("Content-Type") - http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res_text, - http_res, - ) + raise errors.SDKError("Unexpected response received", http_res) diff --git a/sync-for-expenses/src/codat_sync_for_expenses/attachments.py b/sync-for-expenses/src/codat_sync_for_expenses/attachments.py index 05386ddd4..5dd33e2a0 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/attachments.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/attachments.py @@ -5,7 +5,10 @@ from codat_sync_for_expenses._hooks import HookContext from codat_sync_for_expenses.models import errors, operations, shared from codat_sync_for_expenses.types import BaseModel, OptionalNullable, UNSET -from typing import Any, Optional, Union, cast +from codat_sync_for_expenses.utils.unmarshal_json_response import ( + unmarshal_json_response, +) +from typing import Any, Mapping, Optional, Union, cast class Attachments(BaseSDK): @@ -21,30 +24,33 @@ def upload( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[shared.Attachment]: + http_headers: Optional[Mapping[str, str]] = None, + ) -> shared.Attachment: r"""Upload attachment The *Upload attachment* endpoint uploads an attachment in the accounting software against the given transactionId. [Expense transactions](https://docs.codat.io/sync-for-expenses-api#/schemas/ExpenseTransaction) represent transactions made with a company debit or credit card. Attachments for `Adjustment` and `Transfer` transaction types are not supported for any integrations. - **Integration-specific behaviour** + **Integration-specific behavior** Each accounting software supports different file formats and sizes. - | Integration | File size | File extension |Supported transaction type - |-------------------|-----------|------------------------------------------------------------------------------------------------------------------------------------------------|--------------| - | **Xero** | 3 MB | 7Z, BMP, CSV, DOC, DOCX, EML, GIF, JPEG, JPG, KEYNOTE, MSG, NUMBERS, ODF, ODS, ODT, PAGES, PDF, PNG, PPT, PPTX, RAR, RTF, TIF, TIFF, TXT, XLS, XLSX, ZIP | All supported types | - | **QuickBooks Online** | 100 MB | AI, CSV, DOC, DOCX, EPS, GIF, JPEG, JPG, ODS, PAGES, PDF, PNG, RTF, TIF, TXT, XLS, XLSX, XML | `ReimbursableExpenses`, `ExpensePayment`, `ExpenseRefund` | - | **NetSuite** | 100 MB | BMP, CSV, XLS, XLSX, JSON, PDF, PJPG, PJPEG, PNG, TXT, SVG, TIF, TIFF, DOC, DOCX, ZIP |`ExpensePayment`, `ExpenseRefund` | - | **Dynamics 365 Business Central** | 350 MB | [No explicit requirements outlined](https://learn.microsoft.com/en-gb/dynamics365/business-central/ui-how-add-link-to-record#to-attach-a-file-to-a-purchase-invoice) for text, image, and video files. | All supported types - | **QuickBooks Desktop** | NA | Does not support attachment upload | N/A | - | **FreeAgent** | 5MB | PNG, X-PNG, JPEG, PJG, GIF, X-PDF + | Integration | File size | File extension | Supported transactions | + |-----------------------------------|-----------|-------------------------------------------------------|------------------------| + | **Xero** | 3 MB | 7Z, BMP, CSV, DOC, DOCX, EML, GIF, JPEG, JPG, KEYNOTE, MSG, NUMBERS, ODF, ODS, ODT, PAGES, PDF, PNG, PPT, PPTX, RAR, RTF, TIF, TIFF, TXT, XLS, XLSX, ZIP | All supported types | + | **QuickBooks Online** | 100 MB | AI, CSV, DOC, DOCX, EPS, GIF, JPEG, JPG, ODS, PAGES, PDF, PNG, RTF, TIF, TXT, XLS, XLSX, XML | `expense-transactions.Payment`, `expense-transactions.Refund`, `reimbursable-expense-transactions` | + | **NetSuite** | 100 MB | BMP, CSV, XLS, XLSX, JSON, PDF, PJPG, PJPEG, PNG, TXT, SVG, TIF, TIFF, DOC, DOCX, ZIP |`expense-transactions.Payment`, `expense-transactions.Refund` | + | **Dynamics 365 Business Central** | 350 MB | [No explicit requirements outlined](https://learn.microsoft.com/en-gb/dynamics365/business-central/ui-how-add-link-to-record#to-attach-a-file-to-a-purchase-invoice) for text, image, and video files. | All supported types + | **QuickBooks Desktop** | NA | Does not support attachment upload | N/A | + | **FreeAgent** | 5MB | PNG, X-PNG, JPEG, PJG, GIF, X-PDF | `expense-transactions.Payment`, `reimbursable-expense-transactions` + | **Zoho Books** | 5MB | GIF, PNG, JPEG, JPG, BMP, PDF | `expense-transactions.Payment`, `reimbursable-expense-transactions` | :param request: The request object to send. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. """ base_url = None url_variables = None @@ -53,6 +59,8 @@ def upload( if server_url is not None: base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) if not isinstance(request, BaseModel): request = utils.unmarshal( @@ -60,7 +68,7 @@ def upload( ) request = cast(operations.UploadExpenseAttachmentRequest, request) - req = self.build_request( + req = self._build_request( method="POST", path="/companies/{companyId}/sync/expenses/syncs/{syncId}/transactions/{transactionId}/attachments", base_url=base_url, @@ -71,14 +79,16 @@ def upload( request_has_query_params=True, user_agent_header="user-agent", accept_header_value="application/json", + http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request.attachment_upload, + request.attachment_upload if request is not None else None, False, True, "multipart", Optional[shared.AttachmentUpload], ), + allow_empty_value=None, timeout_ms=timeout_ms, ) @@ -96,8 +106,10 @@ def upload( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", operation_id="upload-expense-attachment", - oauth2_scopes=[], + oauth2_scopes=None, security_source=self.sdk_configuration.security, ), request=req, @@ -116,30 +128,25 @@ def upload( retry_config=retry_config, ) - data: Any = None + response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json(http_res.text, Optional[shared.Attachment]) + return unmarshal_json_response(shared.Attachment, http_res) if utils.match_response( - http_res, - ["400", "401", "402", "403", "404", "429", "500", "503"], - "application/json", + http_res, ["400", "401", "402", "403", "404", "429"], "application/json" ): - data = utils.unmarshal_json(http_res.text, errors.ErrorMessageData) - raise errors.ErrorMessage(data=data) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, ["500", "503"], "application/json"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = utils.stream_to_text(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) - content_type = http_res.headers.get("Content-Type") - http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res_text, - http_res, - ) + raise errors.SDKError("Unexpected response received", http_res) async def upload_async( self, @@ -151,30 +158,33 @@ async def upload_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[shared.Attachment]: + http_headers: Optional[Mapping[str, str]] = None, + ) -> shared.Attachment: r"""Upload attachment The *Upload attachment* endpoint uploads an attachment in the accounting software against the given transactionId. [Expense transactions](https://docs.codat.io/sync-for-expenses-api#/schemas/ExpenseTransaction) represent transactions made with a company debit or credit card. Attachments for `Adjustment` and `Transfer` transaction types are not supported for any integrations. - **Integration-specific behaviour** + **Integration-specific behavior** Each accounting software supports different file formats and sizes. - | Integration | File size | File extension |Supported transaction type - |-------------------|-----------|------------------------------------------------------------------------------------------------------------------------------------------------|--------------| - | **Xero** | 3 MB | 7Z, BMP, CSV, DOC, DOCX, EML, GIF, JPEG, JPG, KEYNOTE, MSG, NUMBERS, ODF, ODS, ODT, PAGES, PDF, PNG, PPT, PPTX, RAR, RTF, TIF, TIFF, TXT, XLS, XLSX, ZIP | All supported types | - | **QuickBooks Online** | 100 MB | AI, CSV, DOC, DOCX, EPS, GIF, JPEG, JPG, ODS, PAGES, PDF, PNG, RTF, TIF, TXT, XLS, XLSX, XML | `ReimbursableExpenses`, `ExpensePayment`, `ExpenseRefund` | - | **NetSuite** | 100 MB | BMP, CSV, XLS, XLSX, JSON, PDF, PJPG, PJPEG, PNG, TXT, SVG, TIF, TIFF, DOC, DOCX, ZIP |`ExpensePayment`, `ExpenseRefund` | - | **Dynamics 365 Business Central** | 350 MB | [No explicit requirements outlined](https://learn.microsoft.com/en-gb/dynamics365/business-central/ui-how-add-link-to-record#to-attach-a-file-to-a-purchase-invoice) for text, image, and video files. | All supported types - | **QuickBooks Desktop** | NA | Does not support attachment upload | N/A | - | **FreeAgent** | 5MB | PNG, X-PNG, JPEG, PJG, GIF, X-PDF + | Integration | File size | File extension | Supported transactions | + |-----------------------------------|-----------|-------------------------------------------------------|------------------------| + | **Xero** | 3 MB | 7Z, BMP, CSV, DOC, DOCX, EML, GIF, JPEG, JPG, KEYNOTE, MSG, NUMBERS, ODF, ODS, ODT, PAGES, PDF, PNG, PPT, PPTX, RAR, RTF, TIF, TIFF, TXT, XLS, XLSX, ZIP | All supported types | + | **QuickBooks Online** | 100 MB | AI, CSV, DOC, DOCX, EPS, GIF, JPEG, JPG, ODS, PAGES, PDF, PNG, RTF, TIF, TXT, XLS, XLSX, XML | `expense-transactions.Payment`, `expense-transactions.Refund`, `reimbursable-expense-transactions` | + | **NetSuite** | 100 MB | BMP, CSV, XLS, XLSX, JSON, PDF, PJPG, PJPEG, PNG, TXT, SVG, TIF, TIFF, DOC, DOCX, ZIP |`expense-transactions.Payment`, `expense-transactions.Refund` | + | **Dynamics 365 Business Central** | 350 MB | [No explicit requirements outlined](https://learn.microsoft.com/en-gb/dynamics365/business-central/ui-how-add-link-to-record#to-attach-a-file-to-a-purchase-invoice) for text, image, and video files. | All supported types + | **QuickBooks Desktop** | NA | Does not support attachment upload | N/A | + | **FreeAgent** | 5MB | PNG, X-PNG, JPEG, PJG, GIF, X-PDF | `expense-transactions.Payment`, `reimbursable-expense-transactions` + | **Zoho Books** | 5MB | GIF, PNG, JPEG, JPG, BMP, PDF | `expense-transactions.Payment`, `reimbursable-expense-transactions` | :param request: The request object to send. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. """ base_url = None url_variables = None @@ -183,6 +193,8 @@ async def upload_async( if server_url is not None: base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) if not isinstance(request, BaseModel): request = utils.unmarshal( @@ -190,7 +202,7 @@ async def upload_async( ) request = cast(operations.UploadExpenseAttachmentRequest, request) - req = self.build_request_async( + req = self._build_request_async( method="POST", path="/companies/{companyId}/sync/expenses/syncs/{syncId}/transactions/{transactionId}/attachments", base_url=base_url, @@ -201,14 +213,16 @@ async def upload_async( request_has_query_params=True, user_agent_header="user-agent", accept_header_value="application/json", + http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request.attachment_upload, + request.attachment_upload if request is not None else None, False, True, "multipart", Optional[shared.AttachmentUpload], ), + allow_empty_value=None, timeout_ms=timeout_ms, ) @@ -226,8 +240,10 @@ async def upload_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", operation_id="upload-expense-attachment", - oauth2_scopes=[], + oauth2_scopes=None, security_source=self.sdk_configuration.security, ), request=req, @@ -246,27 +262,22 @@ async def upload_async( retry_config=retry_config, ) - data: Any = None + response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json(http_res.text, Optional[shared.Attachment]) + return unmarshal_json_response(shared.Attachment, http_res) if utils.match_response( - http_res, - ["400", "401", "402", "403", "404", "429", "500", "503"], - "application/json", + http_res, ["400", "401", "402", "403", "404", "429"], "application/json" ): - data = utils.unmarshal_json(http_res.text, errors.ErrorMessageData) - raise errors.ErrorMessage(data=data) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, ["500", "503"], "application/json"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = await utils.stream_to_text_async(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) - content_type = http_res.headers.get("Content-Type") - http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res_text, - http_res, - ) + raise errors.SDKError("Unexpected response received", http_res) diff --git a/sync-for-expenses/src/codat_sync_for_expenses/bank_accounts.py b/sync-for-expenses/src/codat_sync_for_expenses/bank_accounts.py index f47f8a947..01843dada 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/bank_accounts.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/bank_accounts.py @@ -5,7 +5,10 @@ from codat_sync_for_expenses._hooks import HookContext from codat_sync_for_expenses.models import errors, operations, shared from codat_sync_for_expenses.types import BaseModel, OptionalNullable, UNSET -from typing import Any, Optional, Union, cast +from codat_sync_for_expenses.utils.unmarshal_json_response import ( + unmarshal_json_response, +) +from typing import Any, Mapping, Optional, Union, cast class BankAccounts(BaseSDK): @@ -21,14 +24,15 @@ def create( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[shared.CreateBankAccountResponse]: + http_headers: Optional[Mapping[str, str]] = None, + ) -> shared.CreateBankAccountResponse: r"""Create bank account The *Create bank account* endpoint creates a new [bank account](https://docs.codat.io/sync-for-expenses-api#/schemas/BankAccount) for a given company's connection. [Bank accounts](https://docs.codat.io/sync-for-expenses-api#/schemas/BankAccount) are financial accounts maintained by a bank or other financial institution. - **Integration-specific behaviour** + **Integration-specific behavior** Required data may vary by integration. To see what data to post, first call [Get create/update bank account model](https://docs.codat.io/sync-for-expenses-api#/operations/get-create-update-bankAccounts-model). @@ -36,6 +40,7 @@ def create( :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. """ base_url = None url_variables = None @@ -44,12 +49,14 @@ def create( if server_url is not None: base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) if not isinstance(request, BaseModel): request = utils.unmarshal(request, operations.CreateBankAccountRequest) request = cast(operations.CreateBankAccountRequest, request) - req = self.build_request( + req = self._build_request( method="POST", path="/companies/{companyId}/connections/{connectionId}/push/bankAccounts", base_url=base_url, @@ -60,14 +67,16 @@ def create( request_has_query_params=True, user_agent_header="user-agent", accept_header_value="application/json", + http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request.bank_account, + request.bank_account if request is not None else None, True, True, "json", OptionalNullable[shared.BankAccount], ), + allow_empty_value=None, timeout_ms=timeout_ms, ) @@ -85,8 +94,10 @@ def create( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", operation_id="create-bank-account", - oauth2_scopes=[], + oauth2_scopes=None, security_source=self.sdk_configuration.security, ), request=req, @@ -105,32 +116,25 @@ def create( retry_config=retry_config, ) - data: Any = None + response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[shared.CreateBankAccountResponse] - ) + return unmarshal_json_response(shared.CreateBankAccountResponse, http_res) if utils.match_response( - http_res, - ["400", "401", "402", "403", "404", "429", "500", "503"], - "application/json", + http_res, ["400", "401", "402", "403", "404", "429"], "application/json" ): - data = utils.unmarshal_json(http_res.text, errors.ErrorMessageData) - raise errors.ErrorMessage(data=data) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, ["500", "503"], "application/json"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = utils.stream_to_text(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) - content_type = http_res.headers.get("Content-Type") - http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res_text, - http_res, - ) + raise errors.SDKError("Unexpected response received", http_res) async def create_async( self, @@ -142,14 +146,15 @@ async def create_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[shared.CreateBankAccountResponse]: + http_headers: Optional[Mapping[str, str]] = None, + ) -> shared.CreateBankAccountResponse: r"""Create bank account The *Create bank account* endpoint creates a new [bank account](https://docs.codat.io/sync-for-expenses-api#/schemas/BankAccount) for a given company's connection. [Bank accounts](https://docs.codat.io/sync-for-expenses-api#/schemas/BankAccount) are financial accounts maintained by a bank or other financial institution. - **Integration-specific behaviour** + **Integration-specific behavior** Required data may vary by integration. To see what data to post, first call [Get create/update bank account model](https://docs.codat.io/sync-for-expenses-api#/operations/get-create-update-bankAccounts-model). @@ -157,6 +162,7 @@ async def create_async( :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. """ base_url = None url_variables = None @@ -165,12 +171,14 @@ async def create_async( if server_url is not None: base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) if not isinstance(request, BaseModel): request = utils.unmarshal(request, operations.CreateBankAccountRequest) request = cast(operations.CreateBankAccountRequest, request) - req = self.build_request_async( + req = self._build_request_async( method="POST", path="/companies/{companyId}/connections/{connectionId}/push/bankAccounts", base_url=base_url, @@ -181,14 +189,16 @@ async def create_async( request_has_query_params=True, user_agent_header="user-agent", accept_header_value="application/json", + http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request.bank_account, + request.bank_account if request is not None else None, True, True, "json", OptionalNullable[shared.BankAccount], ), + allow_empty_value=None, timeout_ms=timeout_ms, ) @@ -206,8 +216,10 @@ async def create_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", operation_id="create-bank-account", - oauth2_scopes=[], + oauth2_scopes=None, security_source=self.sdk_configuration.security, ), request=req, @@ -226,32 +238,25 @@ async def create_async( retry_config=retry_config, ) - data: Any = None + response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[shared.CreateBankAccountResponse] - ) + return unmarshal_json_response(shared.CreateBankAccountResponse, http_res) if utils.match_response( - http_res, - ["400", "401", "402", "403", "404", "429", "500", "503"], - "application/json", + http_res, ["400", "401", "402", "403", "404", "429"], "application/json" ): - data = utils.unmarshal_json(http_res.text, errors.ErrorMessageData) - raise errors.ErrorMessage(data=data) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, ["500", "503"], "application/json"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = await utils.stream_to_text_async(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) - content_type = http_res.headers.get("Content-Type") - http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res_text, - http_res, - ) + raise errors.SDKError("Unexpected response received", http_res) def get_create_model( self, @@ -263,14 +268,15 @@ def get_create_model( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[shared.PushOption]: + http_headers: Optional[Mapping[str, str]] = None, + ) -> shared.PushOption: r"""Get create bank account model The *Get create/update bank account model* endpoint returns the expected data for the request payload when creating and updating a [bank account](https://docs.codat.io/sync-for-expenses-api#/schemas/BankAccount) for a given company and integration. [Bank accounts](https://docs.codat.io/sync-for-expenses-api#/schemas/BankAccount) are financial accounts maintained by a bank or other financial institution. - **Integration-specific behaviour** + **Integration-specific behavior** See the *response examples* for integration-specific indicative models. @@ -279,6 +285,7 @@ def get_create_model( :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. """ base_url = None url_variables = None @@ -287,6 +294,8 @@ def get_create_model( if server_url is not None: base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) if not isinstance(request, BaseModel): request = utils.unmarshal( @@ -294,7 +303,7 @@ def get_create_model( ) request = cast(operations.GetCreateBankAccountsModelRequest, request) - req = self.build_request( + req = self._build_request( method="GET", path="/companies/{companyId}/connections/{connectionId}/options/bankAccounts", base_url=base_url, @@ -305,7 +314,9 @@ def get_create_model( request_has_query_params=True, user_agent_header="user-agent", accept_header_value="application/json", + http_headers=http_headers, security=self.sdk_configuration.security, + allow_empty_value=None, timeout_ms=timeout_ms, ) @@ -323,8 +334,10 @@ def get_create_model( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", operation_id="get-create-bankAccounts-model", - oauth2_scopes=[], + oauth2_scopes=None, security_source=self.sdk_configuration.security, ), request=req, @@ -342,30 +355,25 @@ def get_create_model( retry_config=retry_config, ) - data: Any = None + response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json(http_res.text, Optional[shared.PushOption]) + return unmarshal_json_response(shared.PushOption, http_res) if utils.match_response( - http_res, - ["401", "402", "403", "404", "429", "500", "503"], - "application/json", + http_res, ["401", "402", "403", "404", "429"], "application/json" ): - data = utils.unmarshal_json(http_res.text, errors.ErrorMessageData) - raise errors.ErrorMessage(data=data) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, ["500", "503"], "application/json"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = utils.stream_to_text(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) - content_type = http_res.headers.get("Content-Type") - http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res_text, - http_res, - ) + raise errors.SDKError("Unexpected response received", http_res) async def get_create_model_async( self, @@ -377,14 +385,15 @@ async def get_create_model_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[shared.PushOption]: + http_headers: Optional[Mapping[str, str]] = None, + ) -> shared.PushOption: r"""Get create bank account model The *Get create/update bank account model* endpoint returns the expected data for the request payload when creating and updating a [bank account](https://docs.codat.io/sync-for-expenses-api#/schemas/BankAccount) for a given company and integration. [Bank accounts](https://docs.codat.io/sync-for-expenses-api#/schemas/BankAccount) are financial accounts maintained by a bank or other financial institution. - **Integration-specific behaviour** + **Integration-specific behavior** See the *response examples* for integration-specific indicative models. @@ -393,6 +402,7 @@ async def get_create_model_async( :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. """ base_url = None url_variables = None @@ -401,6 +411,8 @@ async def get_create_model_async( if server_url is not None: base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) if not isinstance(request, BaseModel): request = utils.unmarshal( @@ -408,7 +420,7 @@ async def get_create_model_async( ) request = cast(operations.GetCreateBankAccountsModelRequest, request) - req = self.build_request_async( + req = self._build_request_async( method="GET", path="/companies/{companyId}/connections/{connectionId}/options/bankAccounts", base_url=base_url, @@ -419,7 +431,9 @@ async def get_create_model_async( request_has_query_params=True, user_agent_header="user-agent", accept_header_value="application/json", + http_headers=http_headers, security=self.sdk_configuration.security, + allow_empty_value=None, timeout_ms=timeout_ms, ) @@ -437,8 +451,10 @@ async def get_create_model_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", operation_id="get-create-bankAccounts-model", - oauth2_scopes=[], + oauth2_scopes=None, security_source=self.sdk_configuration.security, ), request=req, @@ -456,27 +472,22 @@ async def get_create_model_async( retry_config=retry_config, ) - data: Any = None + response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json(http_res.text, Optional[shared.PushOption]) + return unmarshal_json_response(shared.PushOption, http_res) if utils.match_response( - http_res, - ["401", "402", "403", "404", "429", "500", "503"], - "application/json", + http_res, ["401", "402", "403", "404", "429"], "application/json" ): - data = utils.unmarshal_json(http_res.text, errors.ErrorMessageData) - raise errors.ErrorMessage(data=data) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, ["500", "503"], "application/json"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = await utils.stream_to_text_async(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) - content_type = http_res.headers.get("Content-Type") - http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res_text, - http_res, - ) + raise errors.SDKError("Unexpected response received", http_res) diff --git a/sync-for-expenses/src/codat_sync_for_expenses/basesdk.py b/sync-for-expenses/src/codat_sync_for_expenses/basesdk.py index 1af020004..8355740f1 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/basesdk.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/basesdk.py @@ -12,19 +12,30 @@ RetryConfig, SerializedRequestBody, get_body_content, + run_sync_in_thread, ) import httpx -from typing import Callable, List, Optional, Tuple +from typing import Callable, List, Mapping, Optional, Tuple from urllib.parse import parse_qs, urlparse class BaseSDK: sdk_configuration: SDKConfiguration + parent_ref: Optional[object] = None + """ + Reference to the root SDK instance, if any. This will prevent it from + being garbage collected while there are active streams. + """ - def __init__(self, sdk_config: SDKConfiguration) -> None: + def __init__( + self, + sdk_config: SDKConfiguration, + parent_ref: Optional[object] = None, + ) -> None: self.sdk_configuration = sdk_config + self.parent_ref = parent_ref - def get_url(self, base_url, url_variables): + def _get_url(self, base_url, url_variables): sdk_url, sdk_variables = self.sdk_configuration.get_server_details() if base_url is None: @@ -35,7 +46,7 @@ def get_url(self, base_url, url_variables): return utils.template_url(base_url, url_variables) - def build_request_async( + def _build_request_async( self, method, path, @@ -54,9 +65,11 @@ def build_request_async( Callable[[], Optional[SerializedRequestBody]] ] = None, url_override: Optional[str] = None, + http_headers: Optional[Mapping[str, str]] = None, + allow_empty_value: Optional[List[str]] = None, ) -> httpx.Request: client = self.sdk_configuration.async_client - return self.build_request_with_client( + return self._build_request_with_client( client, method, path, @@ -73,9 +86,11 @@ def build_request_async( timeout_ms, get_serialized_body, url_override, + http_headers, + allow_empty_value, ) - def build_request( + def _build_request( self, method, path, @@ -94,9 +109,11 @@ def build_request( Callable[[], Optional[SerializedRequestBody]] ] = None, url_override: Optional[str] = None, + http_headers: Optional[Mapping[str, str]] = None, + allow_empty_value: Optional[List[str]] = None, ) -> httpx.Request: client = self.sdk_configuration.client - return self.build_request_with_client( + return self._build_request_with_client( client, method, path, @@ -113,9 +130,11 @@ def build_request( timeout_ms, get_serialized_body, url_override, + http_headers, + allow_empty_value, ) - def build_request_with_client( + def _build_request_with_client( self, client, method, @@ -135,13 +154,15 @@ def build_request_with_client( Callable[[], Optional[SerializedRequestBody]] ] = None, url_override: Optional[str] = None, + http_headers: Optional[Mapping[str, str]] = None, + allow_empty_value: Optional[List[str]] = None, ) -> httpx.Request: query_params = {} url = url_override if url is None: url = utils.generate_url( - self.get_url(base_url, url_variables), + self._get_url(base_url, url_variables), path, request if request_has_path_params else None, _globals if request_has_path_params else None, @@ -150,6 +171,7 @@ def build_request_with_client( query_params = utils.get_query_params( request if request_has_query_params else None, _globals if request_has_query_params else None, + allow_empty_value, ) else: # Pick up the query parameter from the override so they can be @@ -190,6 +212,10 @@ def build_request_with_client( ): headers["content-type"] = serialized_request_body.media_type + if http_headers is not None: + for header, value in http_headers.items(): + headers[header] = value + timeout = timeout_ms / 1000 if timeout_ms is not None else None return client.build_request( @@ -214,12 +240,12 @@ def do_request( client = self.sdk_configuration.client logger = self.sdk_configuration.debug_logger + hooks = self.sdk_configuration.__dict__["_hooks"] + def do(): http_res = None try: - req = self.sdk_configuration.get_hooks().before_request( - BeforeRequestContext(hook_ctx), request - ) + req = hooks.before_request(BeforeRequestContext(hook_ctx), request) logger.debug( "Request:\nMethod: %s\nURL: %s\nHeaders: %s\nBody: %s", req.method, @@ -227,18 +253,20 @@ def do(): req.headers, get_body_content(req), ) + + if client is None: + raise ValueError("client is required") + http_res = client.send(req, stream=stream) except Exception as e: - _, e = self.sdk_configuration.get_hooks().after_error( - AfterErrorContext(hook_ctx), None, e - ) + _, e = hooks.after_error(AfterErrorContext(hook_ctx), None, e) if e is not None: logger.debug("Request Exception", exc_info=True) raise e if http_res is None: logger.debug("Raising no response SDK error") - raise errors.SDKError("No response received") + raise errors.NoResponseError("No response received") logger.debug( "Response:\nStatus Code: %s\nURL: %s\nHeaders: %s\nBody: %s", @@ -249,7 +277,7 @@ def do(): ) if utils.match_status_codes(error_status_codes, http_res.status_code): - result, err = self.sdk_configuration.get_hooks().after_error( + result, err = hooks.after_error( AfterErrorContext(hook_ctx), http_res, None ) if err is not None: @@ -259,7 +287,7 @@ def do(): http_res = result else: logger.debug("Raising unexpected SDK error") - raise errors.SDKError("Unexpected error occurred") + raise errors.SDKError("Unexpected error occurred", http_res) return http_res @@ -269,9 +297,7 @@ def do(): http_res = do() if not utils.match_status_codes(error_status_codes, http_res.status_code): - http_res = self.sdk_configuration.get_hooks().after_success( - AfterSuccessContext(hook_ctx), http_res - ) + http_res = hooks.after_success(AfterSuccessContext(hook_ctx), http_res) return http_res @@ -286,12 +312,15 @@ async def do_request_async( client = self.sdk_configuration.async_client logger = self.sdk_configuration.debug_logger + hooks = self.sdk_configuration.__dict__["_hooks"] + async def do(): http_res = None try: - req = self.sdk_configuration.get_hooks().before_request( - BeforeRequestContext(hook_ctx), request + req = await run_sync_in_thread( + hooks.before_request, BeforeRequestContext(hook_ctx), request ) + logger.debug( "Request:\nMethod: %s\nURL: %s\nHeaders: %s\nBody: %s", req.method, @@ -299,18 +328,23 @@ async def do(): req.headers, get_body_content(req), ) + + if client is None: + raise ValueError("client is required") + http_res = await client.send(req, stream=stream) except Exception as e: - _, e = self.sdk_configuration.get_hooks().after_error( - AfterErrorContext(hook_ctx), None, e + _, e = await run_sync_in_thread( + hooks.after_error, AfterErrorContext(hook_ctx), None, e ) + if e is not None: logger.debug("Request Exception", exc_info=True) raise e if http_res is None: logger.debug("Raising no response SDK error") - raise errors.SDKError("No response received") + raise errors.NoResponseError("No response received") logger.debug( "Response:\nStatus Code: %s\nURL: %s\nHeaders: %s\nBody: %s", @@ -321,9 +355,10 @@ async def do(): ) if utils.match_status_codes(error_status_codes, http_res.status_code): - result, err = self.sdk_configuration.get_hooks().after_error( - AfterErrorContext(hook_ctx), http_res, None + result, err = await run_sync_in_thread( + hooks.after_error, AfterErrorContext(hook_ctx), http_res, None ) + if err is not None: logger.debug("Request Exception", exc_info=True) raise err @@ -331,7 +366,7 @@ async def do(): http_res = result else: logger.debug("Raising unexpected SDK error") - raise errors.SDKError("Unexpected error occurred") + raise errors.SDKError("Unexpected error occurred", http_res) return http_res @@ -343,8 +378,8 @@ async def do(): http_res = await do() if not utils.match_status_codes(error_status_codes, http_res.status_code): - http_res = self.sdk_configuration.get_hooks().after_success( - AfterSuccessContext(hook_ctx), http_res + http_res = await run_sync_in_thread( + hooks.after_success, AfterSuccessContext(hook_ctx), http_res ) return http_res diff --git a/sync-for-expenses/src/codat_sync_for_expenses/companies.py b/sync-for-expenses/src/codat_sync_for_expenses/companies.py index 90e1e97ed..3a88801d0 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/companies.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/companies.py @@ -5,7 +5,10 @@ from codat_sync_for_expenses._hooks import HookContext from codat_sync_for_expenses.models import errors, operations, shared from codat_sync_for_expenses.types import BaseModel, OptionalNullable, UNSET -from typing import Any, Optional, Union, cast +from codat_sync_for_expenses.utils.unmarshal_json_response import ( + unmarshal_json_response, +) +from typing import Any, Mapping, Optional, Union, cast class Companies(BaseSDK): @@ -20,7 +23,8 @@ def create( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[shared.Company]: + http_headers: Optional[Mapping[str, str]] = None, + ) -> shared.Company: r"""Create company Use the *Create company* endpoint to create a new [company](https://docs.codat.io/sync-for-expenses-api#/schemas/Company) that represents your customer in Codat. @@ -34,6 +38,7 @@ def create( :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. """ base_url = None url_variables = None @@ -42,12 +47,14 @@ def create( if server_url is not None: base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) if not isinstance(request, BaseModel): request = utils.unmarshal(request, Optional[shared.CompanyRequestBody]) request = cast(Optional[shared.CompanyRequestBody], request) - req = self.build_request( + req = self._build_request( method="POST", path="/companies", base_url=base_url, @@ -58,10 +65,12 @@ def create( request_has_query_params=True, user_agent_header="user-agent", accept_header_value="application/json", + http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( request, False, True, "json", Optional[shared.CompanyRequestBody] ), + allow_empty_value=None, timeout_ms=timeout_ms, ) @@ -79,8 +88,10 @@ def create( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", operation_id="create-company", - oauth2_scopes=[], + oauth2_scopes=None, security_source=self.sdk_configuration.security, ), request=req, @@ -98,30 +109,25 @@ def create( retry_config=retry_config, ) - data: Any = None + response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json(http_res.text, Optional[shared.Company]) + return unmarshal_json_response(shared.Company, http_res) if utils.match_response( - http_res, - ["400", "401", "402", "403", "429", "500", "503"], - "application/json", + http_res, ["400", "401", "402", "403", "429"], "application/json" ): - data = utils.unmarshal_json(http_res.text, errors.ErrorMessageData) - raise errors.ErrorMessage(data=data) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, ["500", "503"], "application/json"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) - - content_type = http_res.headers.get("Content-Type") - http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res_text, - http_res, - ) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = utils.stream_to_text(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) + + raise errors.SDKError("Unexpected response received", http_res) async def create_async( self, @@ -132,7 +138,8 @@ async def create_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[shared.Company]: + http_headers: Optional[Mapping[str, str]] = None, + ) -> shared.Company: r"""Create company Use the *Create company* endpoint to create a new [company](https://docs.codat.io/sync-for-expenses-api#/schemas/Company) that represents your customer in Codat. @@ -146,6 +153,7 @@ async def create_async( :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. """ base_url = None url_variables = None @@ -154,12 +162,14 @@ async def create_async( if server_url is not None: base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) if not isinstance(request, BaseModel): request = utils.unmarshal(request, Optional[shared.CompanyRequestBody]) request = cast(Optional[shared.CompanyRequestBody], request) - req = self.build_request_async( + req = self._build_request_async( method="POST", path="/companies", base_url=base_url, @@ -170,10 +180,12 @@ async def create_async( request_has_query_params=True, user_agent_header="user-agent", accept_header_value="application/json", + http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( request, False, True, "json", Optional[shared.CompanyRequestBody] ), + allow_empty_value=None, timeout_ms=timeout_ms, ) @@ -191,8 +203,10 @@ async def create_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", operation_id="create-company", - oauth2_scopes=[], + oauth2_scopes=None, security_source=self.sdk_configuration.security, ), request=req, @@ -210,30 +224,25 @@ async def create_async( retry_config=retry_config, ) - data: Any = None + response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json(http_res.text, Optional[shared.Company]) + return unmarshal_json_response(shared.Company, http_res) if utils.match_response( - http_res, - ["400", "401", "402", "403", "429", "500", "503"], - "application/json", + http_res, ["400", "401", "402", "403", "429"], "application/json" ): - data = utils.unmarshal_json(http_res.text, errors.ErrorMessageData) - raise errors.ErrorMessage(data=data) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, ["500", "503"], "application/json"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) - - content_type = http_res.headers.get("Content-Type") - http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res_text, - http_res, - ) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = await utils.stream_to_text_async(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) + + raise errors.SDKError("Unexpected response received", http_res) def delete( self, @@ -244,6 +253,7 @@ def delete( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, + http_headers: Optional[Mapping[str, str]] = None, ): r"""Delete a company @@ -257,6 +267,7 @@ def delete( :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. """ base_url = None url_variables = None @@ -265,12 +276,14 @@ def delete( if server_url is not None: base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) if not isinstance(request, BaseModel): request = utils.unmarshal(request, operations.DeleteCompanyRequest) request = cast(operations.DeleteCompanyRequest, request) - req = self.build_request( + req = self._build_request( method="DELETE", path="/companies/{companyId}", base_url=base_url, @@ -281,7 +294,9 @@ def delete( request_has_query_params=True, user_agent_header="user-agent", accept_header_value="application/json", + http_headers=http_headers, security=self.sdk_configuration.security, + allow_empty_value=None, timeout_ms=timeout_ms, ) @@ -299,8 +314,10 @@ def delete( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", operation_id="delete-company", - oauth2_scopes=[], + oauth2_scopes=None, security_source=self.sdk_configuration.security, ), request=req, @@ -318,30 +335,25 @@ def delete( retry_config=retry_config, ) - data: Any = None + response_data: Any = None if utils.match_response(http_res, "204", "*"): return if utils.match_response( - http_res, - ["401", "402", "403", "404", "429", "500", "503"], - "application/json", + http_res, ["401", "402", "403", "404", "429"], "application/json" ): - data = utils.unmarshal_json(http_res.text, errors.ErrorMessageData) - raise errors.ErrorMessage(data=data) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, ["500", "503"], "application/json"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) - - content_type = http_res.headers.get("Content-Type") - http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res_text, - http_res, - ) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = utils.stream_to_text(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) + + raise errors.SDKError("Unexpected response received", http_res) async def delete_async( self, @@ -352,6 +364,7 @@ async def delete_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, + http_headers: Optional[Mapping[str, str]] = None, ): r"""Delete a company @@ -365,6 +378,7 @@ async def delete_async( :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. """ base_url = None url_variables = None @@ -373,12 +387,14 @@ async def delete_async( if server_url is not None: base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) if not isinstance(request, BaseModel): request = utils.unmarshal(request, operations.DeleteCompanyRequest) request = cast(operations.DeleteCompanyRequest, request) - req = self.build_request_async( + req = self._build_request_async( method="DELETE", path="/companies/{companyId}", base_url=base_url, @@ -389,7 +405,9 @@ async def delete_async( request_has_query_params=True, user_agent_header="user-agent", accept_header_value="application/json", + http_headers=http_headers, security=self.sdk_configuration.security, + allow_empty_value=None, timeout_ms=timeout_ms, ) @@ -407,8 +425,10 @@ async def delete_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", operation_id="delete-company", - oauth2_scopes=[], + oauth2_scopes=None, security_source=self.sdk_configuration.security, ), request=req, @@ -426,30 +446,25 @@ async def delete_async( retry_config=retry_config, ) - data: Any = None + response_data: Any = None if utils.match_response(http_res, "204", "*"): return if utils.match_response( - http_res, - ["401", "402", "403", "404", "429", "500", "503"], - "application/json", + http_res, ["401", "402", "403", "404", "429"], "application/json" ): - data = utils.unmarshal_json(http_res.text, errors.ErrorMessageData) - raise errors.ErrorMessage(data=data) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, ["500", "503"], "application/json"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) - - content_type = http_res.headers.get("Content-Type") - http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res_text, - http_res, - ) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = await utils.stream_to_text_async(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) + + raise errors.SDKError("Unexpected response received", http_res) def get( self, @@ -460,7 +475,8 @@ def get( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[shared.Company]: + http_headers: Optional[Mapping[str, str]] = None, + ) -> shared.Company: r"""Get company The *Get company* endpoint returns a single company for a given `companyId`. @@ -473,6 +489,7 @@ def get( :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. """ base_url = None url_variables = None @@ -481,12 +498,14 @@ def get( if server_url is not None: base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) if not isinstance(request, BaseModel): request = utils.unmarshal(request, operations.GetCompanyRequest) request = cast(operations.GetCompanyRequest, request) - req = self.build_request( + req = self._build_request( method="GET", path="/companies/{companyId}", base_url=base_url, @@ -497,7 +516,9 @@ def get( request_has_query_params=True, user_agent_header="user-agent", accept_header_value="application/json", + http_headers=http_headers, security=self.sdk_configuration.security, + allow_empty_value=None, timeout_ms=timeout_ms, ) @@ -515,8 +536,10 @@ def get( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", operation_id="get-company", - oauth2_scopes=[], + oauth2_scopes=None, security_source=self.sdk_configuration.security, ), request=req, @@ -534,30 +557,25 @@ def get( retry_config=retry_config, ) - data: Any = None + response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json(http_res.text, Optional[shared.Company]) + return unmarshal_json_response(shared.Company, http_res) if utils.match_response( - http_res, - ["401", "402", "403", "404", "429", "500", "503"], - "application/json", + http_res, ["401", "402", "403", "404", "429"], "application/json" ): - data = utils.unmarshal_json(http_res.text, errors.ErrorMessageData) - raise errors.ErrorMessage(data=data) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, ["500", "503"], "application/json"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) - - content_type = http_res.headers.get("Content-Type") - http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res_text, - http_res, - ) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = utils.stream_to_text(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) + + raise errors.SDKError("Unexpected response received", http_res) async def get_async( self, @@ -568,7 +586,8 @@ async def get_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[shared.Company]: + http_headers: Optional[Mapping[str, str]] = None, + ) -> shared.Company: r"""Get company The *Get company* endpoint returns a single company for a given `companyId`. @@ -581,6 +600,7 @@ async def get_async( :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. """ base_url = None url_variables = None @@ -589,12 +609,14 @@ async def get_async( if server_url is not None: base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) if not isinstance(request, BaseModel): request = utils.unmarshal(request, operations.GetCompanyRequest) request = cast(operations.GetCompanyRequest, request) - req = self.build_request_async( + req = self._build_request_async( method="GET", path="/companies/{companyId}", base_url=base_url, @@ -605,7 +627,9 @@ async def get_async( request_has_query_params=True, user_agent_header="user-agent", accept_header_value="application/json", + http_headers=http_headers, security=self.sdk_configuration.security, + allow_empty_value=None, timeout_ms=timeout_ms, ) @@ -623,8 +647,10 @@ async def get_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", operation_id="get-company", - oauth2_scopes=[], + oauth2_scopes=None, security_source=self.sdk_configuration.security, ), request=req, @@ -642,30 +668,25 @@ async def get_async( retry_config=retry_config, ) - data: Any = None + response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json(http_res.text, Optional[shared.Company]) + return unmarshal_json_response(shared.Company, http_res) if utils.match_response( - http_res, - ["401", "402", "403", "404", "429", "500", "503"], - "application/json", + http_res, ["401", "402", "403", "404", "429"], "application/json" ): - data = utils.unmarshal_json(http_res.text, errors.ErrorMessageData) - raise errors.ErrorMessage(data=data) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, ["500", "503"], "application/json"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) - - content_type = http_res.headers.get("Content-Type") - http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res_text, - http_res, - ) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = await utils.stream_to_text_async(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) + + raise errors.SDKError("Unexpected response received", http_res) def list( self, @@ -676,7 +697,8 @@ def list( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[shared.Companies]: + http_headers: Optional[Mapping[str, str]] = None, + ) -> shared.Companies: r"""List companies The *List companies* endpoint returns a list of [companies](https://docs.codat.io/sync-for-expenses-api#/schemas/Company) associated to your instances. @@ -684,10 +706,24 @@ def list( A [company](https://docs.codat.io/sync-for-expenses-api#/schemas/Company) represents a business sharing access to their data. Each company can have multiple [connections](https://docs.codat.io/sync-for-expenses-api#/schemas/Connection) to different data sources, such as one connection to Xero for accounting data, two connections to Plaid for two bank accounts, and a connection to Zettle for POS data. + ## Filter by tags + + The *List companies* endpoint supports the filtering of companies using [tags](https://docs.codat.io/using-the-api/managing-companies#add-metadata-to-a-company). It supports the following operators with [Codat’s query language](https://docs.codat.io/using-the-api/querying): + + - equals (`=`) + - not equals (`!=`) + - contains (`~`) + + For example, you can use the querying to filter companies tagged with a specific foreign key, region, or owning team: + - Foreign key: `uid = {yourCustomerId}` + - Region: `region != uk` + - Owning team and region: `region = uk && owningTeam = invoice-finance` + :param request: The request object to send. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. """ base_url = None url_variables = None @@ -696,12 +732,14 @@ def list( if server_url is not None: base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) if not isinstance(request, BaseModel): request = utils.unmarshal(request, operations.ListCompaniesRequest) request = cast(operations.ListCompaniesRequest, request) - req = self.build_request( + req = self._build_request( method="GET", path="/companies", base_url=base_url, @@ -712,7 +750,9 @@ def list( request_has_query_params=True, user_agent_header="user-agent", accept_header_value="application/json", + http_headers=http_headers, security=self.sdk_configuration.security, + allow_empty_value=None, timeout_ms=timeout_ms, ) @@ -730,8 +770,10 @@ def list( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", operation_id="list-companies", - oauth2_scopes=[], + oauth2_scopes=None, security_source=self.sdk_configuration.security, ), request=req, @@ -750,30 +792,25 @@ def list( retry_config=retry_config, ) - data: Any = None + response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json(http_res.text, Optional[shared.Companies]) + return unmarshal_json_response(shared.Companies, http_res) if utils.match_response( - http_res, - ["400", "401", "402", "403", "404", "429", "500", "503"], - "application/json", + http_res, ["400", "401", "402", "403", "404", "429"], "application/json" ): - data = utils.unmarshal_json(http_res.text, errors.ErrorMessageData) - raise errors.ErrorMessage(data=data) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, ["500", "503"], "application/json"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) - - content_type = http_res.headers.get("Content-Type") - http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res_text, - http_res, - ) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = utils.stream_to_text(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) + + raise errors.SDKError("Unexpected response received", http_res) async def list_async( self, @@ -784,7 +821,8 @@ async def list_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[shared.Companies]: + http_headers: Optional[Mapping[str, str]] = None, + ) -> shared.Companies: r"""List companies The *List companies* endpoint returns a list of [companies](https://docs.codat.io/sync-for-expenses-api#/schemas/Company) associated to your instances. @@ -792,10 +830,24 @@ async def list_async( A [company](https://docs.codat.io/sync-for-expenses-api#/schemas/Company) represents a business sharing access to their data. Each company can have multiple [connections](https://docs.codat.io/sync-for-expenses-api#/schemas/Connection) to different data sources, such as one connection to Xero for accounting data, two connections to Plaid for two bank accounts, and a connection to Zettle for POS data. + ## Filter by tags + + The *List companies* endpoint supports the filtering of companies using [tags](https://docs.codat.io/using-the-api/managing-companies#add-metadata-to-a-company). It supports the following operators with [Codat’s query language](https://docs.codat.io/using-the-api/querying): + + - equals (`=`) + - not equals (`!=`) + - contains (`~`) + + For example, you can use the querying to filter companies tagged with a specific foreign key, region, or owning team: + - Foreign key: `uid = {yourCustomerId}` + - Region: `region != uk` + - Owning team and region: `region = uk && owningTeam = invoice-finance` + :param request: The request object to send. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. """ base_url = None url_variables = None @@ -804,12 +856,14 @@ async def list_async( if server_url is not None: base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) if not isinstance(request, BaseModel): request = utils.unmarshal(request, operations.ListCompaniesRequest) request = cast(operations.ListCompaniesRequest, request) - req = self.build_request_async( + req = self._build_request_async( method="GET", path="/companies", base_url=base_url, @@ -820,7 +874,9 @@ async def list_async( request_has_query_params=True, user_agent_header="user-agent", accept_header_value="application/json", + http_headers=http_headers, security=self.sdk_configuration.security, + allow_empty_value=None, timeout_ms=timeout_ms, ) @@ -838,8 +894,10 @@ async def list_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", operation_id="list-companies", - oauth2_scopes=[], + oauth2_scopes=None, security_source=self.sdk_configuration.security, ), request=req, @@ -858,31 +916,260 @@ async def list_async( retry_config=retry_config, ) - data: Any = None + response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json(http_res.text, Optional[shared.Companies]) + return unmarshal_json_response(shared.Companies, http_res) if utils.match_response( - http_res, - ["400", "401", "402", "403", "404", "429", "500", "503"], - "application/json", + http_res, ["400", "401", "402", "403", "404", "429"], "application/json" ): - data = utils.unmarshal_json(http_res.text, errors.ErrorMessageData) - raise errors.ErrorMessage(data=data) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, ["500", "503"], "application/json"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) - - content_type = http_res.headers.get("Content-Type") - http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res_text, - http_res, + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = await utils.stream_to_text_async(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) + + raise errors.SDKError("Unexpected response received", http_res) + + def replace( + self, + *, + request: Union[ + operations.ReplaceCompanyRequest, operations.ReplaceCompanyRequestTypedDict + ], + retries: OptionalNullable[utils.RetryConfig] = UNSET, + server_url: Optional[str] = None, + timeout_ms: Optional[int] = None, + http_headers: Optional[Mapping[str, str]] = None, + ) -> shared.Company: + r"""Replace company + + Use the *Replace company* endpoint to replace the existing name, description, and tags of the company. Calling the endpoint will replace existing values even if new values haven't been defined in the payload. + + A [company](https://docs.codat.io/sync-for-expenses-api#/schemas/Company) represents a business sharing access to their data. + Each company can have multiple [connections](https://docs.codat.io/sync-for-expenses-api#/schemas/Connection) to different data sources, such as one connection to Xero for accounting data, two connections to Plaid for two bank accounts, and a connection to Zettle for POS data. + + :param request: The request object to send. + :param retries: Override the default retry configuration for this method + :param server_url: Override the default server URL for this method + :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. + """ + base_url = None + url_variables = None + if timeout_ms is None: + timeout_ms = self.sdk_configuration.timeout_ms + + if server_url is not None: + base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) + + if not isinstance(request, BaseModel): + request = utils.unmarshal(request, operations.ReplaceCompanyRequest) + request = cast(operations.ReplaceCompanyRequest, request) + + req = self._build_request( + method="PUT", + path="/companies/{companyId}", + base_url=base_url, + url_variables=url_variables, + request=request, + request_body_required=False, + request_has_path_params=True, + request_has_query_params=True, + user_agent_header="user-agent", + accept_header_value="application/json", + http_headers=http_headers, + security=self.sdk_configuration.security, + get_serialized_body=lambda: utils.serialize_request_body( + request.company_request_body if request is not None else None, + False, + True, + "json", + Optional[shared.CompanyRequestBody], + ), + allow_empty_value=None, + timeout_ms=timeout_ms, + ) + + if retries == UNSET: + if self.sdk_configuration.retry_config is not UNSET: + retries = self.sdk_configuration.retry_config + else: + retries = utils.RetryConfig( + "backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True + ) + + retry_config = None + if isinstance(retries, utils.RetryConfig): + retry_config = (retries, ["408", "429", "5XX"]) + + http_res = self.do_request( + hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", + operation_id="replace-company", + oauth2_scopes=None, + security_source=self.sdk_configuration.security, + ), + request=req, + error_status_codes=[ + "401", + "402", + "403", + "404", + "429", + "4XX", + "500", + "503", + "5XX", + ], + retry_config=retry_config, ) + response_data: Any = None + if utils.match_response(http_res, "200", "application/json"): + return unmarshal_json_response(shared.Company, http_res) + if utils.match_response( + http_res, ["401", "402", "403", "404", "429"], "application/json" + ): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, ["500", "503"], "application/json"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): + http_res_text = utils.stream_to_text(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = utils.stream_to_text(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) + + raise errors.SDKError("Unexpected response received", http_res) + + async def replace_async( + self, + *, + request: Union[ + operations.ReplaceCompanyRequest, operations.ReplaceCompanyRequestTypedDict + ], + retries: OptionalNullable[utils.RetryConfig] = UNSET, + server_url: Optional[str] = None, + timeout_ms: Optional[int] = None, + http_headers: Optional[Mapping[str, str]] = None, + ) -> shared.Company: + r"""Replace company + + Use the *Replace company* endpoint to replace the existing name, description, and tags of the company. Calling the endpoint will replace existing values even if new values haven't been defined in the payload. + + A [company](https://docs.codat.io/sync-for-expenses-api#/schemas/Company) represents a business sharing access to their data. + Each company can have multiple [connections](https://docs.codat.io/sync-for-expenses-api#/schemas/Connection) to different data sources, such as one connection to Xero for accounting data, two connections to Plaid for two bank accounts, and a connection to Zettle for POS data. + + :param request: The request object to send. + :param retries: Override the default retry configuration for this method + :param server_url: Override the default server URL for this method + :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. + """ + base_url = None + url_variables = None + if timeout_ms is None: + timeout_ms = self.sdk_configuration.timeout_ms + + if server_url is not None: + base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) + + if not isinstance(request, BaseModel): + request = utils.unmarshal(request, operations.ReplaceCompanyRequest) + request = cast(operations.ReplaceCompanyRequest, request) + + req = self._build_request_async( + method="PUT", + path="/companies/{companyId}", + base_url=base_url, + url_variables=url_variables, + request=request, + request_body_required=False, + request_has_path_params=True, + request_has_query_params=True, + user_agent_header="user-agent", + accept_header_value="application/json", + http_headers=http_headers, + security=self.sdk_configuration.security, + get_serialized_body=lambda: utils.serialize_request_body( + request.company_request_body if request is not None else None, + False, + True, + "json", + Optional[shared.CompanyRequestBody], + ), + allow_empty_value=None, + timeout_ms=timeout_ms, + ) + + if retries == UNSET: + if self.sdk_configuration.retry_config is not UNSET: + retries = self.sdk_configuration.retry_config + else: + retries = utils.RetryConfig( + "backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True + ) + + retry_config = None + if isinstance(retries, utils.RetryConfig): + retry_config = (retries, ["408", "429", "5XX"]) + + http_res = await self.do_request_async( + hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", + operation_id="replace-company", + oauth2_scopes=None, + security_source=self.sdk_configuration.security, + ), + request=req, + error_status_codes=[ + "401", + "402", + "403", + "404", + "429", + "4XX", + "500", + "503", + "5XX", + ], + retry_config=retry_config, + ) + + response_data: Any = None + if utils.match_response(http_res, "200", "application/json"): + return unmarshal_json_response(shared.Company, http_res) + if utils.match_response( + http_res, ["401", "402", "403", "404", "429"], "application/json" + ): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, ["500", "503"], "application/json"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): + http_res_text = await utils.stream_to_text_async(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = await utils.stream_to_text_async(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) + + raise errors.SDKError("Unexpected response received", http_res) + def update( self, *, @@ -892,18 +1179,21 @@ def update( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[shared.Company]: + http_headers: Optional[Mapping[str, str]] = None, + ) -> shared.Company: r"""Update company - Use the *Update company* endpoint to update both the name and description of the company. + Use the *Update company* endpoint to update the name, description, or tags of the company. + + The *Update company* endpoint doesn't have any required fields. If any of the fields provided are `null` or not provided, they won't be included in the update. A [company](https://docs.codat.io/sync-for-expenses-api#/schemas/Company) represents a business sharing access to their data. - Each company can have multiple [connections](https://docs.codat.io/sync-for-expenses-api#/schemas/Connection) to different data sources, such as one connection to Xero for accounting data, two connections to Plaid for two bank accounts, and a connection to Zettle for POS data. :param request: The request object to send. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. """ base_url = None url_variables = None @@ -912,13 +1202,15 @@ def update( if server_url is not None: base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) if not isinstance(request, BaseModel): request = utils.unmarshal(request, operations.UpdateCompanyRequest) request = cast(operations.UpdateCompanyRequest, request) - req = self.build_request( - method="PUT", + req = self._build_request( + method="PATCH", path="/companies/{companyId}", base_url=base_url, url_variables=url_variables, @@ -928,14 +1220,16 @@ def update( request_has_query_params=True, user_agent_header="user-agent", accept_header_value="application/json", + http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request.company_request_body, + request.company_update_request if request is not None else None, False, True, "json", - Optional[shared.CompanyRequestBody], + Optional[shared.CompanyUpdateRequest], ), + allow_empty_value=None, timeout_ms=timeout_ms, ) @@ -953,8 +1247,10 @@ def update( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", operation_id="update-company", - oauth2_scopes=[], + oauth2_scopes=None, security_source=self.sdk_configuration.security, ), request=req, @@ -972,30 +1268,25 @@ def update( retry_config=retry_config, ) - data: Any = None + response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json(http_res.text, Optional[shared.Company]) + return unmarshal_json_response(shared.Company, http_res) if utils.match_response( - http_res, - ["401", "402", "403", "404", "429", "500", "503"], - "application/json", + http_res, ["401", "402", "403", "404", "429"], "application/json" ): - data = utils.unmarshal_json(http_res.text, errors.ErrorMessageData) - raise errors.ErrorMessage(data=data) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, ["500", "503"], "application/json"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) - - content_type = http_res.headers.get("Content-Type") - http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res_text, - http_res, - ) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = utils.stream_to_text(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) + + raise errors.SDKError("Unexpected response received", http_res) async def update_async( self, @@ -1006,18 +1297,21 @@ async def update_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[shared.Company]: + http_headers: Optional[Mapping[str, str]] = None, + ) -> shared.Company: r"""Update company - Use the *Update company* endpoint to update both the name and description of the company. + Use the *Update company* endpoint to update the name, description, or tags of the company. + + The *Update company* endpoint doesn't have any required fields. If any of the fields provided are `null` or not provided, they won't be included in the update. A [company](https://docs.codat.io/sync-for-expenses-api#/schemas/Company) represents a business sharing access to their data. - Each company can have multiple [connections](https://docs.codat.io/sync-for-expenses-api#/schemas/Connection) to different data sources, such as one connection to Xero for accounting data, two connections to Plaid for two bank accounts, and a connection to Zettle for POS data. :param request: The request object to send. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. """ base_url = None url_variables = None @@ -1026,13 +1320,15 @@ async def update_async( if server_url is not None: base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) if not isinstance(request, BaseModel): request = utils.unmarshal(request, operations.UpdateCompanyRequest) request = cast(operations.UpdateCompanyRequest, request) - req = self.build_request_async( - method="PUT", + req = self._build_request_async( + method="PATCH", path="/companies/{companyId}", base_url=base_url, url_variables=url_variables, @@ -1042,14 +1338,16 @@ async def update_async( request_has_query_params=True, user_agent_header="user-agent", accept_header_value="application/json", + http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request.company_request_body, + request.company_update_request if request is not None else None, False, True, "json", - Optional[shared.CompanyRequestBody], + Optional[shared.CompanyUpdateRequest], ), + allow_empty_value=None, timeout_ms=timeout_ms, ) @@ -1067,8 +1365,10 @@ async def update_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", operation_id="update-company", - oauth2_scopes=[], + oauth2_scopes=None, security_source=self.sdk_configuration.security, ), request=req, @@ -1086,27 +1386,22 @@ async def update_async( retry_config=retry_config, ) - data: Any = None + response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json(http_res.text, Optional[shared.Company]) + return unmarshal_json_response(shared.Company, http_res) if utils.match_response( - http_res, - ["401", "402", "403", "404", "429", "500", "503"], - "application/json", + http_res, ["401", "402", "403", "404", "429"], "application/json" ): - data = utils.unmarshal_json(http_res.text, errors.ErrorMessageData) - raise errors.ErrorMessage(data=data) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, ["500", "503"], "application/json"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) - - content_type = http_res.headers.get("Content-Type") - http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res_text, - http_res, - ) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = await utils.stream_to_text_async(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) + + raise errors.SDKError("Unexpected response received", http_res) diff --git a/sync-for-expenses/src/codat_sync_for_expenses/company_info.py b/sync-for-expenses/src/codat_sync_for_expenses/company_info.py index b9b1a1791..f0df70fde 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/company_info.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/company_info.py @@ -5,7 +5,10 @@ from codat_sync_for_expenses._hooks import HookContext from codat_sync_for_expenses.models import errors, operations, shared from codat_sync_for_expenses.types import BaseModel, OptionalNullable, UNSET -from typing import Any, Optional, Union, cast +from codat_sync_for_expenses.utils.unmarshal_json_response import ( + unmarshal_json_response, +) +from typing import Any, Mapping, Optional, Union, cast class CompanyInfo(BaseSDK): @@ -20,7 +23,8 @@ def get( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[shared.CompanyInformation]: + http_headers: Optional[Mapping[str, str]] = None, + ) -> shared.CompanyInformation: r"""Get company info Gets the latest basic info for a company. @@ -29,6 +33,7 @@ def get( :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. """ base_url = None url_variables = None @@ -37,12 +42,14 @@ def get( if server_url is not None: base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) if not isinstance(request, BaseModel): request = utils.unmarshal(request, operations.GetCompanyInfoRequest) request = cast(operations.GetCompanyInfoRequest, request) - req = self.build_request( + req = self._build_request( method="GET", path="/companies/{companyId}/data/info", base_url=base_url, @@ -53,7 +60,9 @@ def get( request_has_query_params=True, user_agent_header="user-agent", accept_header_value="application/json", + http_headers=http_headers, security=self.sdk_configuration.security, + allow_empty_value=None, timeout_ms=timeout_ms, ) @@ -71,8 +80,10 @@ def get( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", operation_id="get-company-info", - oauth2_scopes=[], + oauth2_scopes=None, security_source=self.sdk_configuration.security, ), request=req, @@ -91,32 +102,25 @@ def get( retry_config=retry_config, ) - data: Any = None + response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[shared.CompanyInformation] - ) + return unmarshal_json_response(shared.CompanyInformation, http_res) if utils.match_response( - http_res, - ["401", "402", "403", "404", "409", "429", "500", "503"], - "application/json", + http_res, ["401", "402", "403", "404", "409", "429"], "application/json" ): - data = utils.unmarshal_json(http_res.text, errors.ErrorMessageData) - raise errors.ErrorMessage(data=data) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, ["500", "503"], "application/json"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) - - content_type = http_res.headers.get("Content-Type") - http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res_text, - http_res, - ) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = utils.stream_to_text(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) + + raise errors.SDKError("Unexpected response received", http_res) async def get_async( self, @@ -127,7 +131,8 @@ async def get_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[shared.CompanyInformation]: + http_headers: Optional[Mapping[str, str]] = None, + ) -> shared.CompanyInformation: r"""Get company info Gets the latest basic info for a company. @@ -136,6 +141,7 @@ async def get_async( :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. """ base_url = None url_variables = None @@ -144,12 +150,14 @@ async def get_async( if server_url is not None: base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) if not isinstance(request, BaseModel): request = utils.unmarshal(request, operations.GetCompanyInfoRequest) request = cast(operations.GetCompanyInfoRequest, request) - req = self.build_request_async( + req = self._build_request_async( method="GET", path="/companies/{companyId}/data/info", base_url=base_url, @@ -160,7 +168,9 @@ async def get_async( request_has_query_params=True, user_agent_header="user-agent", accept_header_value="application/json", + http_headers=http_headers, security=self.sdk_configuration.security, + allow_empty_value=None, timeout_ms=timeout_ms, ) @@ -178,8 +188,10 @@ async def get_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", operation_id="get-company-info", - oauth2_scopes=[], + oauth2_scopes=None, security_source=self.sdk_configuration.security, ), request=req, @@ -198,29 +210,22 @@ async def get_async( retry_config=retry_config, ) - data: Any = None + response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[shared.CompanyInformation] - ) + return unmarshal_json_response(shared.CompanyInformation, http_res) if utils.match_response( - http_res, - ["401", "402", "403", "404", "409", "429", "500", "503"], - "application/json", + http_res, ["401", "402", "403", "404", "409", "429"], "application/json" ): - data = utils.unmarshal_json(http_res.text, errors.ErrorMessageData) - raise errors.ErrorMessage(data=data) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, ["500", "503"], "application/json"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) - - content_type = http_res.headers.get("Content-Type") - http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res_text, - http_res, - ) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = await utils.stream_to_text_async(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) + + raise errors.SDKError("Unexpected response received", http_res) diff --git a/sync-for-expenses/src/codat_sync_for_expenses/configuration.py b/sync-for-expenses/src/codat_sync_for_expenses/configuration.py index 226b7d3be..a73937af3 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/configuration.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/configuration.py @@ -5,7 +5,10 @@ from codat_sync_for_expenses._hooks import HookContext from codat_sync_for_expenses.models import errors, operations, shared from codat_sync_for_expenses.types import BaseModel, OptionalNullable, UNSET -from typing import Any, Optional, Union, cast +from codat_sync_for_expenses.utils.unmarshal_json_response import ( + unmarshal_json_response, +) +from typing import Any, Mapping, Optional, Union, cast class Configuration(BaseSDK): @@ -21,7 +24,8 @@ def get( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[shared.CompanyConfiguration]: + http_headers: Optional[Mapping[str, str]] = None, + ) -> shared.CompanyConfiguration: r"""Get company configuration Gets a company's expense sync configuration @@ -30,6 +34,7 @@ def get( :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. """ base_url = None url_variables = None @@ -38,6 +43,8 @@ def get( if server_url is not None: base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) if not isinstance(request, BaseModel): request = utils.unmarshal( @@ -45,7 +52,7 @@ def get( ) request = cast(operations.GetCompanyConfigurationRequest, request) - req = self.build_request( + req = self._build_request( method="GET", path="/companies/{companyId}/sync/expenses/config", base_url=base_url, @@ -56,7 +63,9 @@ def get( request_has_query_params=True, user_agent_header="user-agent", accept_header_value="application/json", + http_headers=http_headers, security=self.sdk_configuration.security, + allow_empty_value=None, timeout_ms=timeout_ms, ) @@ -74,8 +83,10 @@ def get( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", operation_id="get-company-configuration", - oauth2_scopes=[], + oauth2_scopes=None, security_source=self.sdk_configuration.security, ), request=req, @@ -93,32 +104,25 @@ def get( retry_config=retry_config, ) - data: Any = None + response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[shared.CompanyConfiguration] - ) + return unmarshal_json_response(shared.CompanyConfiguration, http_res) if utils.match_response( - http_res, - ["401", "402", "403", "404", "429", "500", "503"], - "application/json", + http_res, ["401", "402", "403", "404", "429"], "application/json" ): - data = utils.unmarshal_json(http_res.text, errors.ErrorMessageData) - raise errors.ErrorMessage(data=data) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, ["500", "503"], "application/json"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = utils.stream_to_text(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) - content_type = http_res.headers.get("Content-Type") - http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res_text, - http_res, - ) + raise errors.SDKError("Unexpected response received", http_res) async def get_async( self, @@ -130,7 +134,8 @@ async def get_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[shared.CompanyConfiguration]: + http_headers: Optional[Mapping[str, str]] = None, + ) -> shared.CompanyConfiguration: r"""Get company configuration Gets a company's expense sync configuration @@ -139,6 +144,7 @@ async def get_async( :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. """ base_url = None url_variables = None @@ -147,6 +153,8 @@ async def get_async( if server_url is not None: base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) if not isinstance(request, BaseModel): request = utils.unmarshal( @@ -154,7 +162,7 @@ async def get_async( ) request = cast(operations.GetCompanyConfigurationRequest, request) - req = self.build_request_async( + req = self._build_request_async( method="GET", path="/companies/{companyId}/sync/expenses/config", base_url=base_url, @@ -165,7 +173,9 @@ async def get_async( request_has_query_params=True, user_agent_header="user-agent", accept_header_value="application/json", + http_headers=http_headers, security=self.sdk_configuration.security, + allow_empty_value=None, timeout_ms=timeout_ms, ) @@ -183,8 +193,10 @@ async def get_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", operation_id="get-company-configuration", - oauth2_scopes=[], + oauth2_scopes=None, security_source=self.sdk_configuration.security, ), request=req, @@ -202,32 +214,25 @@ async def get_async( retry_config=retry_config, ) - data: Any = None + response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[shared.CompanyConfiguration] - ) + return unmarshal_json_response(shared.CompanyConfiguration, http_res) if utils.match_response( - http_res, - ["401", "402", "403", "404", "429", "500", "503"], - "application/json", + http_res, ["401", "402", "403", "404", "429"], "application/json" ): - data = utils.unmarshal_json(http_res.text, errors.ErrorMessageData) - raise errors.ErrorMessage(data=data) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, ["500", "503"], "application/json"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = await utils.stream_to_text_async(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) - content_type = http_res.headers.get("Content-Type") - http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res_text, - http_res, - ) + raise errors.SDKError("Unexpected response received", http_res) def set( self, @@ -239,7 +244,8 @@ def set( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[shared.CompanyConfiguration]: + http_headers: Optional[Mapping[str, str]] = None, + ) -> shared.CompanyConfiguration: r"""Set company configuration Sets a company's expense sync configuration @@ -248,6 +254,7 @@ def set( :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. """ base_url = None url_variables = None @@ -256,6 +263,8 @@ def set( if server_url is not None: base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) if not isinstance(request, BaseModel): request = utils.unmarshal( @@ -263,7 +272,7 @@ def set( ) request = cast(operations.SetCompanyConfigurationRequest, request) - req = self.build_request( + req = self._build_request( method="POST", path="/companies/{companyId}/sync/expenses/config", base_url=base_url, @@ -274,14 +283,16 @@ def set( request_has_query_params=True, user_agent_header="user-agent", accept_header_value="application/json", + http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request.company_configuration, + request.company_configuration if request is not None else None, False, True, "json", Optional[shared.CompanyConfiguration], ), + allow_empty_value=None, timeout_ms=timeout_ms, ) @@ -299,8 +310,10 @@ def set( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", operation_id="set-company-configuration", - oauth2_scopes=[], + oauth2_scopes=None, security_source=self.sdk_configuration.security, ), request=req, @@ -319,32 +332,25 @@ def set( retry_config=retry_config, ) - data: Any = None + response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[shared.CompanyConfiguration] - ) + return unmarshal_json_response(shared.CompanyConfiguration, http_res) if utils.match_response( - http_res, - ["400", "401", "402", "403", "404", "429", "500", "503"], - "application/json", + http_res, ["400", "401", "402", "403", "404", "429"], "application/json" ): - data = utils.unmarshal_json(http_res.text, errors.ErrorMessageData) - raise errors.ErrorMessage(data=data) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, ["500", "503"], "application/json"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = utils.stream_to_text(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) - content_type = http_res.headers.get("Content-Type") - http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res_text, - http_res, - ) + raise errors.SDKError("Unexpected response received", http_res) async def set_async( self, @@ -356,7 +362,8 @@ async def set_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[shared.CompanyConfiguration]: + http_headers: Optional[Mapping[str, str]] = None, + ) -> shared.CompanyConfiguration: r"""Set company configuration Sets a company's expense sync configuration @@ -365,6 +372,7 @@ async def set_async( :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. """ base_url = None url_variables = None @@ -373,6 +381,8 @@ async def set_async( if server_url is not None: base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) if not isinstance(request, BaseModel): request = utils.unmarshal( @@ -380,7 +390,7 @@ async def set_async( ) request = cast(operations.SetCompanyConfigurationRequest, request) - req = self.build_request_async( + req = self._build_request_async( method="POST", path="/companies/{companyId}/sync/expenses/config", base_url=base_url, @@ -391,14 +401,16 @@ async def set_async( request_has_query_params=True, user_agent_header="user-agent", accept_header_value="application/json", + http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request.company_configuration, + request.company_configuration if request is not None else None, False, True, "json", Optional[shared.CompanyConfiguration], ), + allow_empty_value=None, timeout_ms=timeout_ms, ) @@ -416,8 +428,10 @@ async def set_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", operation_id="set-company-configuration", - oauth2_scopes=[], + oauth2_scopes=None, security_source=self.sdk_configuration.security, ), request=req, @@ -436,29 +450,22 @@ async def set_async( retry_config=retry_config, ) - data: Any = None + response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[shared.CompanyConfiguration] - ) + return unmarshal_json_response(shared.CompanyConfiguration, http_res) if utils.match_response( - http_res, - ["400", "401", "402", "403", "404", "429", "500", "503"], - "application/json", + http_res, ["400", "401", "402", "403", "404", "429"], "application/json" ): - data = utils.unmarshal_json(http_res.text, errors.ErrorMessageData) - raise errors.ErrorMessage(data=data) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, ["500", "503"], "application/json"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = await utils.stream_to_text_async(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) - content_type = http_res.headers.get("Content-Type") - http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res_text, - http_res, - ) + raise errors.SDKError("Unexpected response received", http_res) diff --git a/sync-for-expenses/src/codat_sync_for_expenses/connections.py b/sync-for-expenses/src/codat_sync_for_expenses/connections.py index 6e4508e6c..ae747c57c 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/connections.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/connections.py @@ -5,7 +5,10 @@ from codat_sync_for_expenses._hooks import HookContext from codat_sync_for_expenses.models import errors, operations, shared from codat_sync_for_expenses.types import BaseModel, OptionalNullable, UNSET -from typing import Any, Optional, Union, cast +from codat_sync_for_expenses.utils.unmarshal_json_response import ( + unmarshal_json_response, +) +from typing import Any, Mapping, Optional, Union, cast class Connections(BaseSDK): @@ -21,7 +24,8 @@ def create( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[shared.Connection]: + http_headers: Optional[Mapping[str, str]] = None, + ) -> shared.Connection: r"""Create connection Creates a connection for the company by providing a valid `platformKey`. @@ -32,6 +36,7 @@ def create( :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. """ base_url = None url_variables = None @@ -40,12 +45,14 @@ def create( if server_url is not None: base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) if not isinstance(request, BaseModel): request = utils.unmarshal(request, operations.CreateConnectionRequest) request = cast(operations.CreateConnectionRequest, request) - req = self.build_request( + req = self._build_request( method="POST", path="/companies/{companyId}/connections", base_url=base_url, @@ -56,14 +63,16 @@ def create( request_has_query_params=True, user_agent_header="user-agent", accept_header_value="application/json", + http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request.request_body, + request.request_body if request is not None else None, False, True, "json", Optional[operations.CreateConnectionRequestBody], ), + allow_empty_value=None, timeout_ms=timeout_ms, ) @@ -81,8 +90,10 @@ def create( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", operation_id="create-connection", - oauth2_scopes=[], + oauth2_scopes=None, security_source=self.sdk_configuration.security, ), request=req, @@ -100,30 +111,25 @@ def create( retry_config=retry_config, ) - data: Any = None + response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json(http_res.text, Optional[shared.Connection]) + return unmarshal_json_response(shared.Connection, http_res) if utils.match_response( - http_res, - ["401", "402", "403", "404", "429", "500", "503"], - "application/json", + http_res, ["401", "402", "403", "404", "429"], "application/json" ): - data = utils.unmarshal_json(http_res.text, errors.ErrorMessageData) - raise errors.ErrorMessage(data=data) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, ["500", "503"], "application/json"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = utils.stream_to_text(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) - content_type = http_res.headers.get("Content-Type") - http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res_text, - http_res, - ) + raise errors.SDKError("Unexpected response received", http_res) async def create_async( self, @@ -135,7 +141,8 @@ async def create_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[shared.Connection]: + http_headers: Optional[Mapping[str, str]] = None, + ) -> shared.Connection: r"""Create connection Creates a connection for the company by providing a valid `platformKey`. @@ -146,6 +153,7 @@ async def create_async( :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. """ base_url = None url_variables = None @@ -154,12 +162,14 @@ async def create_async( if server_url is not None: base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) if not isinstance(request, BaseModel): request = utils.unmarshal(request, operations.CreateConnectionRequest) request = cast(operations.CreateConnectionRequest, request) - req = self.build_request_async( + req = self._build_request_async( method="POST", path="/companies/{companyId}/connections", base_url=base_url, @@ -170,14 +180,16 @@ async def create_async( request_has_query_params=True, user_agent_header="user-agent", accept_header_value="application/json", + http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request.request_body, + request.request_body if request is not None else None, False, True, "json", Optional[operations.CreateConnectionRequestBody], ), + allow_empty_value=None, timeout_ms=timeout_ms, ) @@ -195,8 +207,10 @@ async def create_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", operation_id="create-connection", - oauth2_scopes=[], + oauth2_scopes=None, security_source=self.sdk_configuration.security, ), request=req, @@ -214,30 +228,25 @@ async def create_async( retry_config=retry_config, ) - data: Any = None + response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json(http_res.text, Optional[shared.Connection]) + return unmarshal_json_response(shared.Connection, http_res) if utils.match_response( - http_res, - ["401", "402", "403", "404", "429", "500", "503"], - "application/json", + http_res, ["401", "402", "403", "404", "429"], "application/json" ): - data = utils.unmarshal_json(http_res.text, errors.ErrorMessageData) - raise errors.ErrorMessage(data=data) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, ["500", "503"], "application/json"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = await utils.stream_to_text_async(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) - content_type = http_res.headers.get("Content-Type") - http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res_text, - http_res, - ) + raise errors.SDKError("Unexpected response received", http_res) def create_partner_expense_connection( self, @@ -249,7 +258,8 @@ def create_partner_expense_connection( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[shared.Connection]: + http_headers: Optional[Mapping[str, str]] = None, + ) -> shared.Connection: r"""Create partner expense connection Creates a partner expense data connection @@ -258,6 +268,7 @@ def create_partner_expense_connection( :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. """ base_url = None url_variables = None @@ -266,6 +277,8 @@ def create_partner_expense_connection( if server_url is not None: base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) if not isinstance(request, BaseModel): request = utils.unmarshal( @@ -273,7 +286,7 @@ def create_partner_expense_connection( ) request = cast(operations.CreatePartnerExpenseConnectionRequest, request) - req = self.build_request( + req = self._build_request( method="POST", path="/companies/{companyId}/sync/expenses/connections/partnerExpense", base_url=base_url, @@ -284,7 +297,9 @@ def create_partner_expense_connection( request_has_query_params=True, user_agent_header="user-agent", accept_header_value="application/json", + http_headers=http_headers, security=self.sdk_configuration.security, + allow_empty_value=None, timeout_ms=timeout_ms, ) @@ -302,8 +317,10 @@ def create_partner_expense_connection( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", operation_id="create-partner-expense-connection", - oauth2_scopes=[], + oauth2_scopes=None, security_source=self.sdk_configuration.security, ), request=req, @@ -322,30 +339,25 @@ def create_partner_expense_connection( retry_config=retry_config, ) - data: Any = None + response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json(http_res.text, Optional[shared.Connection]) + return unmarshal_json_response(shared.Connection, http_res) if utils.match_response( - http_res, - ["400", "401", "402", "403", "404", "429", "500", "503"], - "application/json", + http_res, ["400", "401", "402", "403", "404", "429"], "application/json" ): - data = utils.unmarshal_json(http_res.text, errors.ErrorMessageData) - raise errors.ErrorMessage(data=data) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, ["500", "503"], "application/json"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = utils.stream_to_text(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) - content_type = http_res.headers.get("Content-Type") - http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res_text, - http_res, - ) + raise errors.SDKError("Unexpected response received", http_res) async def create_partner_expense_connection_async( self, @@ -357,7 +369,8 @@ async def create_partner_expense_connection_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[shared.Connection]: + http_headers: Optional[Mapping[str, str]] = None, + ) -> shared.Connection: r"""Create partner expense connection Creates a partner expense data connection @@ -366,6 +379,7 @@ async def create_partner_expense_connection_async( :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. """ base_url = None url_variables = None @@ -374,6 +388,8 @@ async def create_partner_expense_connection_async( if server_url is not None: base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) if not isinstance(request, BaseModel): request = utils.unmarshal( @@ -381,7 +397,7 @@ async def create_partner_expense_connection_async( ) request = cast(operations.CreatePartnerExpenseConnectionRequest, request) - req = self.build_request_async( + req = self._build_request_async( method="POST", path="/companies/{companyId}/sync/expenses/connections/partnerExpense", base_url=base_url, @@ -392,7 +408,9 @@ async def create_partner_expense_connection_async( request_has_query_params=True, user_agent_header="user-agent", accept_header_value="application/json", + http_headers=http_headers, security=self.sdk_configuration.security, + allow_empty_value=None, timeout_ms=timeout_ms, ) @@ -410,8 +428,10 @@ async def create_partner_expense_connection_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", operation_id="create-partner-expense-connection", - oauth2_scopes=[], + oauth2_scopes=None, security_source=self.sdk_configuration.security, ), request=req, @@ -430,30 +450,25 @@ async def create_partner_expense_connection_async( retry_config=retry_config, ) - data: Any = None + response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json(http_res.text, Optional[shared.Connection]) + return unmarshal_json_response(shared.Connection, http_res) if utils.match_response( - http_res, - ["400", "401", "402", "403", "404", "429", "500", "503"], - "application/json", + http_res, ["400", "401", "402", "403", "404", "429"], "application/json" ): - data = utils.unmarshal_json(http_res.text, errors.ErrorMessageData) - raise errors.ErrorMessage(data=data) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, ["500", "503"], "application/json"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = await utils.stream_to_text_async(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) - content_type = http_res.headers.get("Content-Type") - http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res_text, - http_res, - ) + raise errors.SDKError("Unexpected response received", http_res) def delete( self, @@ -465,6 +480,7 @@ def delete( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, + http_headers: Optional[Mapping[str, str]] = None, ): r"""Delete connection @@ -475,6 +491,7 @@ def delete( :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. """ base_url = None url_variables = None @@ -483,12 +500,14 @@ def delete( if server_url is not None: base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) if not isinstance(request, BaseModel): request = utils.unmarshal(request, operations.DeleteConnectionRequest) request = cast(operations.DeleteConnectionRequest, request) - req = self.build_request( + req = self._build_request( method="DELETE", path="/companies/{companyId}/connections/{connectionId}", base_url=base_url, @@ -499,7 +518,9 @@ def delete( request_has_query_params=True, user_agent_header="user-agent", accept_header_value="application/json", + http_headers=http_headers, security=self.sdk_configuration.security, + allow_empty_value=None, timeout_ms=timeout_ms, ) @@ -517,8 +538,10 @@ def delete( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", operation_id="delete-connection", - oauth2_scopes=[], + oauth2_scopes=None, security_source=self.sdk_configuration.security, ), request=req, @@ -536,30 +559,25 @@ def delete( retry_config=retry_config, ) - data: Any = None + response_data: Any = None if utils.match_response(http_res, "200", "*"): return if utils.match_response( - http_res, - ["401", "402", "403", "404", "429", "500", "503"], - "application/json", + http_res, ["401", "402", "403", "404", "429"], "application/json" ): - data = utils.unmarshal_json(http_res.text, errors.ErrorMessageData) - raise errors.ErrorMessage(data=data) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, ["500", "503"], "application/json"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = utils.stream_to_text(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) - content_type = http_res.headers.get("Content-Type") - http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res_text, - http_res, - ) + raise errors.SDKError("Unexpected response received", http_res) async def delete_async( self, @@ -571,6 +589,7 @@ async def delete_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, + http_headers: Optional[Mapping[str, str]] = None, ): r"""Delete connection @@ -581,6 +600,7 @@ async def delete_async( :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. """ base_url = None url_variables = None @@ -589,12 +609,14 @@ async def delete_async( if server_url is not None: base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) if not isinstance(request, BaseModel): request = utils.unmarshal(request, operations.DeleteConnectionRequest) request = cast(operations.DeleteConnectionRequest, request) - req = self.build_request_async( + req = self._build_request_async( method="DELETE", path="/companies/{companyId}/connections/{connectionId}", base_url=base_url, @@ -605,7 +627,9 @@ async def delete_async( request_has_query_params=True, user_agent_header="user-agent", accept_header_value="application/json", + http_headers=http_headers, security=self.sdk_configuration.security, + allow_empty_value=None, timeout_ms=timeout_ms, ) @@ -623,8 +647,10 @@ async def delete_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", operation_id="delete-connection", - oauth2_scopes=[], + oauth2_scopes=None, security_source=self.sdk_configuration.security, ), request=req, @@ -642,30 +668,25 @@ async def delete_async( retry_config=retry_config, ) - data: Any = None + response_data: Any = None if utils.match_response(http_res, "200", "*"): return if utils.match_response( - http_res, - ["401", "402", "403", "404", "429", "500", "503"], - "application/json", + http_res, ["401", "402", "403", "404", "429"], "application/json" ): - data = utils.unmarshal_json(http_res.text, errors.ErrorMessageData) - raise errors.ErrorMessage(data=data) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, ["500", "503"], "application/json"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = await utils.stream_to_text_async(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) - content_type = http_res.headers.get("Content-Type") - http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res_text, - http_res, - ) + raise errors.SDKError("Unexpected response received", http_res) def get( self, @@ -676,7 +697,8 @@ def get( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[shared.Connection]: + http_headers: Optional[Mapping[str, str]] = None, + ) -> shared.Connection: r"""Get connection Returns a specific connection for a company when valid identifiers are provided. If the identifiers are for a deleted company and/or connection, a not found response is returned. @@ -685,6 +707,7 @@ def get( :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. """ base_url = None url_variables = None @@ -693,12 +716,14 @@ def get( if server_url is not None: base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) if not isinstance(request, BaseModel): request = utils.unmarshal(request, operations.GetConnectionRequest) request = cast(operations.GetConnectionRequest, request) - req = self.build_request( + req = self._build_request( method="GET", path="/companies/{companyId}/connections/{connectionId}", base_url=base_url, @@ -709,7 +734,9 @@ def get( request_has_query_params=True, user_agent_header="user-agent", accept_header_value="application/json", + http_headers=http_headers, security=self.sdk_configuration.security, + allow_empty_value=None, timeout_ms=timeout_ms, ) @@ -727,8 +754,10 @@ def get( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", operation_id="get-connection", - oauth2_scopes=[], + oauth2_scopes=None, security_source=self.sdk_configuration.security, ), request=req, @@ -746,30 +775,25 @@ def get( retry_config=retry_config, ) - data: Any = None + response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json(http_res.text, Optional[shared.Connection]) + return unmarshal_json_response(shared.Connection, http_res) if utils.match_response( - http_res, - ["401", "402", "403", "404", "429", "500", "503"], - "application/json", + http_res, ["401", "402", "403", "404", "429"], "application/json" ): - data = utils.unmarshal_json(http_res.text, errors.ErrorMessageData) - raise errors.ErrorMessage(data=data) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, ["500", "503"], "application/json"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = utils.stream_to_text(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) - content_type = http_res.headers.get("Content-Type") - http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res_text, - http_res, - ) + raise errors.SDKError("Unexpected response received", http_res) async def get_async( self, @@ -780,7 +804,8 @@ async def get_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[shared.Connection]: + http_headers: Optional[Mapping[str, str]] = None, + ) -> shared.Connection: r"""Get connection Returns a specific connection for a company when valid identifiers are provided. If the identifiers are for a deleted company and/or connection, a not found response is returned. @@ -789,6 +814,7 @@ async def get_async( :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. """ base_url = None url_variables = None @@ -797,12 +823,14 @@ async def get_async( if server_url is not None: base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) if not isinstance(request, BaseModel): request = utils.unmarshal(request, operations.GetConnectionRequest) request = cast(operations.GetConnectionRequest, request) - req = self.build_request_async( + req = self._build_request_async( method="GET", path="/companies/{companyId}/connections/{connectionId}", base_url=base_url, @@ -813,7 +841,9 @@ async def get_async( request_has_query_params=True, user_agent_header="user-agent", accept_header_value="application/json", + http_headers=http_headers, security=self.sdk_configuration.security, + allow_empty_value=None, timeout_ms=timeout_ms, ) @@ -831,8 +861,10 @@ async def get_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", operation_id="get-connection", - oauth2_scopes=[], + oauth2_scopes=None, security_source=self.sdk_configuration.security, ), request=req, @@ -850,30 +882,25 @@ async def get_async( retry_config=retry_config, ) - data: Any = None + response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json(http_res.text, Optional[shared.Connection]) + return unmarshal_json_response(shared.Connection, http_res) if utils.match_response( - http_res, - ["401", "402", "403", "404", "429", "500", "503"], - "application/json", + http_res, ["401", "402", "403", "404", "429"], "application/json" ): - data = utils.unmarshal_json(http_res.text, errors.ErrorMessageData) - raise errors.ErrorMessage(data=data) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, ["500", "503"], "application/json"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = await utils.stream_to_text_async(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) - content_type = http_res.headers.get("Content-Type") - http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res_text, - http_res, - ) + raise errors.SDKError("Unexpected response received", http_res) def list( self, @@ -885,7 +912,8 @@ def list( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[shared.Connections]: + http_headers: Optional[Mapping[str, str]] = None, + ) -> shared.Connections: r"""List connections List the connections for a company. @@ -894,6 +922,7 @@ def list( :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. """ base_url = None url_variables = None @@ -902,12 +931,14 @@ def list( if server_url is not None: base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) if not isinstance(request, BaseModel): request = utils.unmarshal(request, operations.ListConnectionsRequest) request = cast(operations.ListConnectionsRequest, request) - req = self.build_request( + req = self._build_request( method="GET", path="/companies/{companyId}/connections", base_url=base_url, @@ -918,7 +949,9 @@ def list( request_has_query_params=True, user_agent_header="user-agent", accept_header_value="application/json", + http_headers=http_headers, security=self.sdk_configuration.security, + allow_empty_value=None, timeout_ms=timeout_ms, ) @@ -936,8 +969,10 @@ def list( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", operation_id="list-connections", - oauth2_scopes=[], + oauth2_scopes=None, security_source=self.sdk_configuration.security, ), request=req, @@ -956,30 +991,25 @@ def list( retry_config=retry_config, ) - data: Any = None + response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json(http_res.text, Optional[shared.Connections]) + return unmarshal_json_response(shared.Connections, http_res) if utils.match_response( - http_res, - ["400", "401", "402", "403", "404", "429", "500", "503"], - "application/json", + http_res, ["400", "401", "402", "403", "404", "429"], "application/json" ): - data = utils.unmarshal_json(http_res.text, errors.ErrorMessageData) - raise errors.ErrorMessage(data=data) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, ["500", "503"], "application/json"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = utils.stream_to_text(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) - content_type = http_res.headers.get("Content-Type") - http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res_text, - http_res, - ) + raise errors.SDKError("Unexpected response received", http_res) async def list_async( self, @@ -991,7 +1021,8 @@ async def list_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[shared.Connections]: + http_headers: Optional[Mapping[str, str]] = None, + ) -> shared.Connections: r"""List connections List the connections for a company. @@ -1000,6 +1031,7 @@ async def list_async( :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. """ base_url = None url_variables = None @@ -1008,12 +1040,14 @@ async def list_async( if server_url is not None: base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) if not isinstance(request, BaseModel): request = utils.unmarshal(request, operations.ListConnectionsRequest) request = cast(operations.ListConnectionsRequest, request) - req = self.build_request_async( + req = self._build_request_async( method="GET", path="/companies/{companyId}/connections", base_url=base_url, @@ -1024,7 +1058,9 @@ async def list_async( request_has_query_params=True, user_agent_header="user-agent", accept_header_value="application/json", + http_headers=http_headers, security=self.sdk_configuration.security, + allow_empty_value=None, timeout_ms=timeout_ms, ) @@ -1042,8 +1078,10 @@ async def list_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", operation_id="list-connections", - oauth2_scopes=[], + oauth2_scopes=None, security_source=self.sdk_configuration.security, ), request=req, @@ -1062,30 +1100,25 @@ async def list_async( retry_config=retry_config, ) - data: Any = None + response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json(http_res.text, Optional[shared.Connections]) + return unmarshal_json_response(shared.Connections, http_res) if utils.match_response( - http_res, - ["400", "401", "402", "403", "404", "429", "500", "503"], - "application/json", + http_res, ["400", "401", "402", "403", "404", "429"], "application/json" ): - data = utils.unmarshal_json(http_res.text, errors.ErrorMessageData) - raise errors.ErrorMessage(data=data) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, ["500", "503"], "application/json"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = await utils.stream_to_text_async(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) - content_type = http_res.headers.get("Content-Type") - http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res_text, - http_res, - ) + raise errors.SDKError("Unexpected response received", http_res) def unlink( self, @@ -1097,7 +1130,8 @@ def unlink( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[shared.Connection]: + http_headers: Optional[Mapping[str, str]] = None, + ) -> shared.Connection: r"""Unlink connection This allows you to deauthorize a connection, without deleting it from Codat. This means you can still view any data that has previously been pulled into Codat, and also lets you re-authorize in future if your customer wishes to resume sharing their data. @@ -1106,6 +1140,7 @@ def unlink( :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. """ base_url = None url_variables = None @@ -1114,12 +1149,14 @@ def unlink( if server_url is not None: base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) if not isinstance(request, BaseModel): request = utils.unmarshal(request, operations.UnlinkConnectionRequest) request = cast(operations.UnlinkConnectionRequest, request) - req = self.build_request( + req = self._build_request( method="PATCH", path="/companies/{companyId}/connections/{connectionId}", base_url=base_url, @@ -1130,14 +1167,16 @@ def unlink( request_has_query_params=True, user_agent_header="user-agent", accept_header_value="application/json", + http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request.request_body, + request.request_body if request is not None else None, False, True, "json", Optional[operations.UnlinkConnectionUpdateConnection], ), + allow_empty_value=None, timeout_ms=timeout_ms, ) @@ -1155,8 +1194,10 @@ def unlink( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", operation_id="unlink-connection", - oauth2_scopes=[], + oauth2_scopes=None, security_source=self.sdk_configuration.security, ), request=req, @@ -1174,30 +1215,25 @@ def unlink( retry_config=retry_config, ) - data: Any = None + response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json(http_res.text, Optional[shared.Connection]) + return unmarshal_json_response(shared.Connection, http_res) if utils.match_response( - http_res, - ["401", "402", "403", "404", "429", "500", "503"], - "application/json", + http_res, ["401", "402", "403", "404", "429"], "application/json" ): - data = utils.unmarshal_json(http_res.text, errors.ErrorMessageData) - raise errors.ErrorMessage(data=data) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, ["500", "503"], "application/json"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = utils.stream_to_text(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) - content_type = http_res.headers.get("Content-Type") - http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res_text, - http_res, - ) + raise errors.SDKError("Unexpected response received", http_res) async def unlink_async( self, @@ -1209,7 +1245,8 @@ async def unlink_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[shared.Connection]: + http_headers: Optional[Mapping[str, str]] = None, + ) -> shared.Connection: r"""Unlink connection This allows you to deauthorize a connection, without deleting it from Codat. This means you can still view any data that has previously been pulled into Codat, and also lets you re-authorize in future if your customer wishes to resume sharing their data. @@ -1218,6 +1255,7 @@ async def unlink_async( :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. """ base_url = None url_variables = None @@ -1226,12 +1264,14 @@ async def unlink_async( if server_url is not None: base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) if not isinstance(request, BaseModel): request = utils.unmarshal(request, operations.UnlinkConnectionRequest) request = cast(operations.UnlinkConnectionRequest, request) - req = self.build_request_async( + req = self._build_request_async( method="PATCH", path="/companies/{companyId}/connections/{connectionId}", base_url=base_url, @@ -1242,14 +1282,16 @@ async def unlink_async( request_has_query_params=True, user_agent_header="user-agent", accept_header_value="application/json", + http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request.request_body, + request.request_body if request is not None else None, False, True, "json", Optional[operations.UnlinkConnectionUpdateConnection], ), + allow_empty_value=None, timeout_ms=timeout_ms, ) @@ -1267,8 +1309,10 @@ async def unlink_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", operation_id="unlink-connection", - oauth2_scopes=[], + oauth2_scopes=None, security_source=self.sdk_configuration.security, ), request=req, @@ -1286,27 +1330,22 @@ async def unlink_async( retry_config=retry_config, ) - data: Any = None + response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json(http_res.text, Optional[shared.Connection]) + return unmarshal_json_response(shared.Connection, http_res) if utils.match_response( - http_res, - ["401", "402", "403", "404", "429", "500", "503"], - "application/json", + http_res, ["401", "402", "403", "404", "429"], "application/json" ): - data = utils.unmarshal_json(http_res.text, errors.ErrorMessageData) - raise errors.ErrorMessage(data=data) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, ["500", "503"], "application/json"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = await utils.stream_to_text_async(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) - content_type = http_res.headers.get("Content-Type") - http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res_text, - http_res, - ) + raise errors.SDKError("Unexpected response received", http_res) diff --git a/sync-for-expenses/src/codat_sync_for_expenses/customers.py b/sync-for-expenses/src/codat_sync_for_expenses/customers.py index 29e39d1e9..2197110de 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/customers.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/customers.py @@ -5,7 +5,10 @@ from codat_sync_for_expenses._hooks import HookContext from codat_sync_for_expenses.models import errors, operations, shared from codat_sync_for_expenses.types import BaseModel, OptionalNullable, UNSET -from typing import Any, Optional, Union, cast +from codat_sync_for_expenses.utils.unmarshal_json_response import ( + unmarshal_json_response, +) +from typing import Any, Mapping, Optional, Union, cast class Customers(BaseSDK): @@ -20,14 +23,15 @@ def create( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[shared.CreateCustomerResponse]: + http_headers: Optional[Mapping[str, str]] = None, + ) -> shared.CreateCustomerResponse: r"""Create customer The *Create customer* endpoint creates a new [customer](https://docs.codat.io/sync-for-expenses-api#/schemas/Customer) for a given company's connection. [Customers](https://docs.codat.io/sync-for-expenses-api#/schemas/Customer) are people or organizations that buy goods or services from the SMB. - **Integration-specific behaviour** + **Integration-specific behavior** Required data may vary by integration. To see what data to post, first call [Get create/update customer model](https://docs.codat.io/sync-for-expenses-api#/operations/get-create-update-customers-model). @@ -35,6 +39,7 @@ def create( :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. """ base_url = None url_variables = None @@ -43,12 +48,14 @@ def create( if server_url is not None: base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) if not isinstance(request, BaseModel): request = utils.unmarshal(request, operations.CreateCustomerRequest) request = cast(operations.CreateCustomerRequest, request) - req = self.build_request( + req = self._build_request( method="POST", path="/companies/{companyId}/connections/{connectionId}/push/customers", base_url=base_url, @@ -59,10 +66,16 @@ def create( request_has_query_params=True, user_agent_header="user-agent", accept_header_value="application/json", + http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request.customer, True, True, "json", OptionalNullable[shared.Customer] + request.customer if request is not None else None, + True, + True, + "json", + OptionalNullable[shared.Customer], ), + allow_empty_value=None, timeout_ms=timeout_ms, ) @@ -80,8 +93,10 @@ def create( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", operation_id="create-customer", - oauth2_scopes=[], + oauth2_scopes=None, security_source=self.sdk_configuration.security, ), request=req, @@ -100,32 +115,25 @@ def create( retry_config=retry_config, ) - data: Any = None + response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[shared.CreateCustomerResponse] - ) + return unmarshal_json_response(shared.CreateCustomerResponse, http_res) if utils.match_response( - http_res, - ["400", "401", "402", "403", "404", "429", "500", "503"], - "application/json", + http_res, ["400", "401", "402", "403", "404", "429"], "application/json" ): - data = utils.unmarshal_json(http_res.text, errors.ErrorMessageData) - raise errors.ErrorMessage(data=data) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, ["500", "503"], "application/json"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) - - content_type = http_res.headers.get("Content-Type") - http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res_text, - http_res, - ) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = utils.stream_to_text(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) + + raise errors.SDKError("Unexpected response received", http_res) async def create_async( self, @@ -136,14 +144,15 @@ async def create_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[shared.CreateCustomerResponse]: + http_headers: Optional[Mapping[str, str]] = None, + ) -> shared.CreateCustomerResponse: r"""Create customer The *Create customer* endpoint creates a new [customer](https://docs.codat.io/sync-for-expenses-api#/schemas/Customer) for a given company's connection. [Customers](https://docs.codat.io/sync-for-expenses-api#/schemas/Customer) are people or organizations that buy goods or services from the SMB. - **Integration-specific behaviour** + **Integration-specific behavior** Required data may vary by integration. To see what data to post, first call [Get create/update customer model](https://docs.codat.io/sync-for-expenses-api#/operations/get-create-update-customers-model). @@ -151,6 +160,7 @@ async def create_async( :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. """ base_url = None url_variables = None @@ -159,12 +169,14 @@ async def create_async( if server_url is not None: base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) if not isinstance(request, BaseModel): request = utils.unmarshal(request, operations.CreateCustomerRequest) request = cast(operations.CreateCustomerRequest, request) - req = self.build_request_async( + req = self._build_request_async( method="POST", path="/companies/{companyId}/connections/{connectionId}/push/customers", base_url=base_url, @@ -175,10 +187,16 @@ async def create_async( request_has_query_params=True, user_agent_header="user-agent", accept_header_value="application/json", + http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request.customer, True, True, "json", OptionalNullable[shared.Customer] + request.customer if request is not None else None, + True, + True, + "json", + OptionalNullable[shared.Customer], ), + allow_empty_value=None, timeout_ms=timeout_ms, ) @@ -196,8 +214,10 @@ async def create_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", operation_id="create-customer", - oauth2_scopes=[], + oauth2_scopes=None, security_source=self.sdk_configuration.security, ), request=req, @@ -216,32 +236,25 @@ async def create_async( retry_config=retry_config, ) - data: Any = None + response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[shared.CreateCustomerResponse] - ) + return unmarshal_json_response(shared.CreateCustomerResponse, http_res) if utils.match_response( - http_res, - ["400", "401", "402", "403", "404", "429", "500", "503"], - "application/json", + http_res, ["400", "401", "402", "403", "404", "429"], "application/json" ): - data = utils.unmarshal_json(http_res.text, errors.ErrorMessageData) - raise errors.ErrorMessage(data=data) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, ["500", "503"], "application/json"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) - - content_type = http_res.headers.get("Content-Type") - http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res_text, - http_res, - ) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = await utils.stream_to_text_async(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) + + raise errors.SDKError("Unexpected response received", http_res) def get( self, @@ -252,7 +265,8 @@ def get( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[shared.Customer]: + http_headers: Optional[Mapping[str, str]] = None, + ) -> shared.Customer: r"""Get customer The *Get customer* endpoint returns a single customer for a given customerId. @@ -266,6 +280,7 @@ def get( :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. """ base_url = None url_variables = None @@ -274,12 +289,14 @@ def get( if server_url is not None: base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) if not isinstance(request, BaseModel): request = utils.unmarshal(request, operations.GetCustomerRequest) request = cast(operations.GetCustomerRequest, request) - req = self.build_request( + req = self._build_request( method="GET", path="/companies/{companyId}/data/customers/{customerId}", base_url=base_url, @@ -290,7 +307,9 @@ def get( request_has_query_params=True, user_agent_header="user-agent", accept_header_value="application/json", + http_headers=http_headers, security=self.sdk_configuration.security, + allow_empty_value=None, timeout_ms=timeout_ms, ) @@ -308,8 +327,10 @@ def get( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", operation_id="get-customer", - oauth2_scopes=[], + oauth2_scopes=None, security_source=self.sdk_configuration.security, ), request=req, @@ -328,30 +349,25 @@ def get( retry_config=retry_config, ) - data: Any = None + response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json(http_res.text, Optional[shared.Customer]) + return unmarshal_json_response(shared.Customer, http_res) if utils.match_response( - http_res, - ["401", "402", "403", "404", "409", "429", "500", "503"], - "application/json", + http_res, ["401", "402", "403", "404", "409", "429"], "application/json" ): - data = utils.unmarshal_json(http_res.text, errors.ErrorMessageData) - raise errors.ErrorMessage(data=data) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, ["500", "503"], "application/json"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) - - content_type = http_res.headers.get("Content-Type") - http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res_text, - http_res, - ) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = utils.stream_to_text(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) + + raise errors.SDKError("Unexpected response received", http_res) async def get_async( self, @@ -362,7 +378,8 @@ async def get_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[shared.Customer]: + http_headers: Optional[Mapping[str, str]] = None, + ) -> shared.Customer: r"""Get customer The *Get customer* endpoint returns a single customer for a given customerId. @@ -376,6 +393,7 @@ async def get_async( :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. """ base_url = None url_variables = None @@ -384,12 +402,14 @@ async def get_async( if server_url is not None: base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) if not isinstance(request, BaseModel): request = utils.unmarshal(request, operations.GetCustomerRequest) request = cast(operations.GetCustomerRequest, request) - req = self.build_request_async( + req = self._build_request_async( method="GET", path="/companies/{companyId}/data/customers/{customerId}", base_url=base_url, @@ -400,7 +420,9 @@ async def get_async( request_has_query_params=True, user_agent_header="user-agent", accept_header_value="application/json", + http_headers=http_headers, security=self.sdk_configuration.security, + allow_empty_value=None, timeout_ms=timeout_ms, ) @@ -418,8 +440,10 @@ async def get_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", operation_id="get-customer", - oauth2_scopes=[], + oauth2_scopes=None, security_source=self.sdk_configuration.security, ), request=req, @@ -438,30 +462,25 @@ async def get_async( retry_config=retry_config, ) - data: Any = None + response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json(http_res.text, Optional[shared.Customer]) + return unmarshal_json_response(shared.Customer, http_res) if utils.match_response( - http_res, - ["401", "402", "403", "404", "409", "429", "500", "503"], - "application/json", + http_res, ["401", "402", "403", "404", "409", "429"], "application/json" ): - data = utils.unmarshal_json(http_res.text, errors.ErrorMessageData) - raise errors.ErrorMessage(data=data) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, ["500", "503"], "application/json"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) - - content_type = http_res.headers.get("Content-Type") - http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res_text, - http_res, - ) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = await utils.stream_to_text_async(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) + + raise errors.SDKError("Unexpected response received", http_res) def list( self, @@ -472,7 +491,8 @@ def list( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[shared.Customers]: + http_headers: Optional[Mapping[str, str]] = None, + ) -> shared.Customers: r"""List customers The *List customers* endpoint returns a list of [customers](https://docs.codat.io/sync-for-expenses-api#/schemas/Customer) for a given company's connection. @@ -486,6 +506,7 @@ def list( :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. """ base_url = None url_variables = None @@ -494,12 +515,14 @@ def list( if server_url is not None: base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) if not isinstance(request, BaseModel): request = utils.unmarshal(request, operations.ListCustomersRequest) request = cast(operations.ListCustomersRequest, request) - req = self.build_request( + req = self._build_request( method="GET", path="/companies/{companyId}/data/customers", base_url=base_url, @@ -510,7 +533,9 @@ def list( request_has_query_params=True, user_agent_header="user-agent", accept_header_value="application/json", + http_headers=http_headers, security=self.sdk_configuration.security, + allow_empty_value=None, timeout_ms=timeout_ms, ) @@ -528,8 +553,10 @@ def list( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", operation_id="list-customers", - oauth2_scopes=[], + oauth2_scopes=None, security_source=self.sdk_configuration.security, ), request=req, @@ -549,30 +576,27 @@ def list( retry_config=retry_config, ) - data: Any = None + response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json(http_res.text, Optional[shared.Customers]) + return unmarshal_json_response(shared.Customers, http_res) if utils.match_response( http_res, - ["400", "401", "402", "403", "404", "409", "429", "500", "503"], + ["400", "401", "402", "403", "404", "409", "429"], "application/json", ): - data = utils.unmarshal_json(http_res.text, errors.ErrorMessageData) - raise errors.ErrorMessage(data=data) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, ["500", "503"], "application/json"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) - - content_type = http_res.headers.get("Content-Type") - http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res_text, - http_res, - ) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = utils.stream_to_text(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) + + raise errors.SDKError("Unexpected response received", http_res) async def list_async( self, @@ -583,7 +607,8 @@ async def list_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[shared.Customers]: + http_headers: Optional[Mapping[str, str]] = None, + ) -> shared.Customers: r"""List customers The *List customers* endpoint returns a list of [customers](https://docs.codat.io/sync-for-expenses-api#/schemas/Customer) for a given company's connection. @@ -597,6 +622,7 @@ async def list_async( :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. """ base_url = None url_variables = None @@ -605,12 +631,14 @@ async def list_async( if server_url is not None: base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) if not isinstance(request, BaseModel): request = utils.unmarshal(request, operations.ListCustomersRequest) request = cast(operations.ListCustomersRequest, request) - req = self.build_request_async( + req = self._build_request_async( method="GET", path="/companies/{companyId}/data/customers", base_url=base_url, @@ -621,7 +649,9 @@ async def list_async( request_has_query_params=True, user_agent_header="user-agent", accept_header_value="application/json", + http_headers=http_headers, security=self.sdk_configuration.security, + allow_empty_value=None, timeout_ms=timeout_ms, ) @@ -639,8 +669,10 @@ async def list_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", operation_id="list-customers", - oauth2_scopes=[], + oauth2_scopes=None, security_source=self.sdk_configuration.security, ), request=req, @@ -660,30 +692,27 @@ async def list_async( retry_config=retry_config, ) - data: Any = None + response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json(http_res.text, Optional[shared.Customers]) + return unmarshal_json_response(shared.Customers, http_res) if utils.match_response( http_res, - ["400", "401", "402", "403", "404", "409", "429", "500", "503"], + ["400", "401", "402", "403", "404", "409", "429"], "application/json", ): - data = utils.unmarshal_json(http_res.text, errors.ErrorMessageData) - raise errors.ErrorMessage(data=data) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, ["500", "503"], "application/json"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) - - content_type = http_res.headers.get("Content-Type") - http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res_text, - http_res, - ) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = await utils.stream_to_text_async(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) + + raise errors.SDKError("Unexpected response received", http_res) def update( self, @@ -694,14 +723,15 @@ def update( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[shared.UpdateCustomerResponse]: + http_headers: Optional[Mapping[str, str]] = None, + ) -> shared.UpdateCustomerResponse: r"""Update customer The *Update customer* endpoint updates an existing [customer](https://docs.codat.io/sync-for-expenses-api#/schemas/Customer) for a given company's connection. [Customers](https://docs.codat.io/sync-for-expenses-api#/schemas/Customer) are people or organizations that buy goods or services from the SMB. - **Integration-specific behaviour** + **Integration-specific behavior** Required data may vary by integration. To see what data to post, first call [Get create/update customer model](https://docs.codat.io/sync-for-expenses-api#/operations/get-create-update-customers-model). @@ -709,6 +739,7 @@ def update( :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. """ base_url = None url_variables = None @@ -717,12 +748,14 @@ def update( if server_url is not None: base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) if not isinstance(request, BaseModel): request = utils.unmarshal(request, operations.UpdateCustomerRequest) request = cast(operations.UpdateCustomerRequest, request) - req = self.build_request( + req = self._build_request( method="PUT", path="/companies/{companyId}/connections/{connectionId}/push/customers/{customerId}", base_url=base_url, @@ -733,10 +766,16 @@ def update( request_has_query_params=True, user_agent_header="user-agent", accept_header_value="application/json", + http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request.customer, True, True, "json", OptionalNullable[shared.Customer] + request.customer if request is not None else None, + True, + True, + "json", + OptionalNullable[shared.Customer], ), + allow_empty_value=None, timeout_ms=timeout_ms, ) @@ -754,8 +793,10 @@ def update( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", operation_id="update-customer", - oauth2_scopes=[], + oauth2_scopes=None, security_source=self.sdk_configuration.security, ), request=req, @@ -774,32 +815,25 @@ def update( retry_config=retry_config, ) - data: Any = None + response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[shared.UpdateCustomerResponse] - ) + return unmarshal_json_response(shared.UpdateCustomerResponse, http_res) if utils.match_response( - http_res, - ["400", "401", "402", "403", "404", "429", "500", "503"], - "application/json", + http_res, ["400", "401", "402", "403", "404", "429"], "application/json" ): - data = utils.unmarshal_json(http_res.text, errors.ErrorMessageData) - raise errors.ErrorMessage(data=data) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, ["500", "503"], "application/json"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) - - content_type = http_res.headers.get("Content-Type") - http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res_text, - http_res, - ) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = utils.stream_to_text(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) + + raise errors.SDKError("Unexpected response received", http_res) async def update_async( self, @@ -810,14 +844,15 @@ async def update_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[shared.UpdateCustomerResponse]: + http_headers: Optional[Mapping[str, str]] = None, + ) -> shared.UpdateCustomerResponse: r"""Update customer The *Update customer* endpoint updates an existing [customer](https://docs.codat.io/sync-for-expenses-api#/schemas/Customer) for a given company's connection. [Customers](https://docs.codat.io/sync-for-expenses-api#/schemas/Customer) are people or organizations that buy goods or services from the SMB. - **Integration-specific behaviour** + **Integration-specific behavior** Required data may vary by integration. To see what data to post, first call [Get create/update customer model](https://docs.codat.io/sync-for-expenses-api#/operations/get-create-update-customers-model). @@ -825,6 +860,7 @@ async def update_async( :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. """ base_url = None url_variables = None @@ -833,12 +869,14 @@ async def update_async( if server_url is not None: base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) if not isinstance(request, BaseModel): request = utils.unmarshal(request, operations.UpdateCustomerRequest) request = cast(operations.UpdateCustomerRequest, request) - req = self.build_request_async( + req = self._build_request_async( method="PUT", path="/companies/{companyId}/connections/{connectionId}/push/customers/{customerId}", base_url=base_url, @@ -849,10 +887,16 @@ async def update_async( request_has_query_params=True, user_agent_header="user-agent", accept_header_value="application/json", + http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request.customer, True, True, "json", OptionalNullable[shared.Customer] + request.customer if request is not None else None, + True, + True, + "json", + OptionalNullable[shared.Customer], ), + allow_empty_value=None, timeout_ms=timeout_ms, ) @@ -870,8 +914,10 @@ async def update_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", operation_id="update-customer", - oauth2_scopes=[], + oauth2_scopes=None, security_source=self.sdk_configuration.security, ), request=req, @@ -890,29 +936,22 @@ async def update_async( retry_config=retry_config, ) - data: Any = None + response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[shared.UpdateCustomerResponse] - ) + return unmarshal_json_response(shared.UpdateCustomerResponse, http_res) if utils.match_response( - http_res, - ["400", "401", "402", "403", "404", "429", "500", "503"], - "application/json", + http_res, ["400", "401", "402", "403", "404", "429"], "application/json" ): - data = utils.unmarshal_json(http_res.text, errors.ErrorMessageData) - raise errors.ErrorMessage(data=data) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, ["500", "503"], "application/json"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) - - content_type = http_res.headers.get("Content-Type") - http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res_text, - http_res, - ) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = await utils.stream_to_text_async(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) + + raise errors.SDKError("Unexpected response received", http_res) diff --git a/sync-for-expenses/src/codat_sync_for_expenses/expenses.py b/sync-for-expenses/src/codat_sync_for_expenses/expenses.py index baa7a4549..cc3b70604 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/expenses.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/expenses.py @@ -5,7 +5,10 @@ from codat_sync_for_expenses._hooks import HookContext from codat_sync_for_expenses.models import errors, operations, shared from codat_sync_for_expenses.types import BaseModel, OptionalNullable, UNSET -from typing import Any, List, Optional, Union, cast +from codat_sync_for_expenses.utils.unmarshal_json_response import ( + unmarshal_json_response, +) +from typing import Any, List, Mapping, Optional, Union, cast class Expenses(BaseSDK): @@ -21,7 +24,8 @@ def create( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[shared.CreateExpenseResponse]: + http_headers: Optional[Mapping[str, str]] = None, + ) -> shared.CreateExpenseResponse: r"""Create expense transaction The *Create expense* endpoint creates an [expense transaction](https://docs.codat.io/sync-for-expenses-api#/schemas/ExpenseTransaction) in the accounting software for a given company's connection. @@ -37,12 +41,16 @@ def create( | QuickBooks Desktop | Yes | | QuickBooks Online | Yes | | Oracle NetSuite | Yes | + | Sage Intacct | Yes | | Xero | Yes | + | Zoho Books | Yes | + :param request: The request object to send. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. """ base_url = None url_variables = None @@ -51,6 +59,8 @@ def create( if server_url is not None: base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) if not isinstance(request, BaseModel): request = utils.unmarshal( @@ -58,7 +68,7 @@ def create( ) request = cast(operations.CreateExpenseTransactionRequest, request) - req = self.build_request( + req = self._build_request( method="POST", path="/companies/{companyId}/sync/expenses/expense-transactions", base_url=base_url, @@ -69,14 +79,16 @@ def create( request_has_query_params=True, user_agent_header="user-agent", accept_header_value="application/json", + http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request.request_body, + request.request_body if request is not None else None, False, True, "json", Optional[List[shared.ExpenseTransaction]], ), + allow_empty_value=None, timeout_ms=timeout_ms, ) @@ -94,8 +106,10 @@ def create( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", operation_id="create-expense-transaction", - oauth2_scopes=[], + oauth2_scopes=None, security_source=self.sdk_configuration.security, ), request=req, @@ -114,32 +128,25 @@ def create( retry_config=retry_config, ) - data: Any = None + response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[shared.CreateExpenseResponse] - ) + return unmarshal_json_response(shared.CreateExpenseResponse, http_res) if utils.match_response( - http_res, - ["400", "401", "402", "403", "404", "429", "500", "503"], - "application/json", + http_res, ["400", "401", "402", "403", "404", "429"], "application/json" ): - data = utils.unmarshal_json(http_res.text, errors.ErrorMessageData) - raise errors.ErrorMessage(data=data) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, ["500", "503"], "application/json"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = utils.stream_to_text(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) - content_type = http_res.headers.get("Content-Type") - http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res_text, - http_res, - ) + raise errors.SDKError("Unexpected response received", http_res) async def create_async( self, @@ -151,7 +158,8 @@ async def create_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[shared.CreateExpenseResponse]: + http_headers: Optional[Mapping[str, str]] = None, + ) -> shared.CreateExpenseResponse: r"""Create expense transaction The *Create expense* endpoint creates an [expense transaction](https://docs.codat.io/sync-for-expenses-api#/schemas/ExpenseTransaction) in the accounting software for a given company's connection. @@ -167,12 +175,16 @@ async def create_async( | QuickBooks Desktop | Yes | | QuickBooks Online | Yes | | Oracle NetSuite | Yes | + | Sage Intacct | Yes | | Xero | Yes | + | Zoho Books | Yes | + :param request: The request object to send. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. """ base_url = None url_variables = None @@ -181,6 +193,8 @@ async def create_async( if server_url is not None: base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) if not isinstance(request, BaseModel): request = utils.unmarshal( @@ -188,7 +202,7 @@ async def create_async( ) request = cast(operations.CreateExpenseTransactionRequest, request) - req = self.build_request_async( + req = self._build_request_async( method="POST", path="/companies/{companyId}/sync/expenses/expense-transactions", base_url=base_url, @@ -199,14 +213,16 @@ async def create_async( request_has_query_params=True, user_agent_header="user-agent", accept_header_value="application/json", + http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request.request_body, + request.request_body if request is not None else None, False, True, "json", Optional[List[shared.ExpenseTransaction]], ), + allow_empty_value=None, timeout_ms=timeout_ms, ) @@ -224,8 +240,10 @@ async def create_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", operation_id="create-expense-transaction", - oauth2_scopes=[], + oauth2_scopes=None, security_source=self.sdk_configuration.security, ), request=req, @@ -244,32 +262,25 @@ async def create_async( retry_config=retry_config, ) - data: Any = None + response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[shared.CreateExpenseResponse] - ) + return unmarshal_json_response(shared.CreateExpenseResponse, http_res) if utils.match_response( - http_res, - ["400", "401", "402", "403", "404", "429", "500", "503"], - "application/json", + http_res, ["400", "401", "402", "403", "404", "429"], "application/json" ): - data = utils.unmarshal_json(http_res.text, errors.ErrorMessageData) - raise errors.ErrorMessage(data=data) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, ["500", "503"], "application/json"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = await utils.stream_to_text_async(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) - content_type = http_res.headers.get("Content-Type") - http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res_text, - http_res, - ) + raise errors.SDKError("Unexpected response received", http_res) def update( self, @@ -281,26 +292,37 @@ def update( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[shared.UpdateExpenseResponse]: + http_headers: Optional[Mapping[str, str]] = None, + ) -> shared.UpdateExpenseResponse: r"""Update expense transactions The *Update expense* endpoint updates an existing [expense transaction](https://docs.codat.io/sync-for-expenses-api#/schemas/UpdateExpenseRequest) in the accounting software for a given company's connection. [Expense transactions](https://docs.codat.io/sync-for-expenses-api#/schemas/UpdateExpenseRequest) represent transactions made with a company debit or credit card. - ### Supported Integrations + ### Supported integrations The following integrations are supported for the [Payment](https://docs.codat.io/expenses/sync-process/expense-transactions#transaction-types) transaction `type` only: | Integration | Supported | |-----------------------|-----------| | FreeAgent | Yes | + | QuickBooks Desktop | Yes | | QuickBooks Online | Yes | | Oracle NetSuite | Yes | + | Sage Intacct | Yes | | Xero | Yes | + | Zoho Books | Yes | + + #### Integration-specific behavior + + | Integration | Specifics | + |-----------------------|-----------| + | Sage Intacct | To sync **debit card expenses**, map the debit card to a Credit Card with the account type set to `Debit`.| :param request: The request object to send. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. """ base_url = None url_variables = None @@ -309,6 +331,8 @@ def update( if server_url is not None: base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) if not isinstance(request, BaseModel): request = utils.unmarshal( @@ -316,7 +340,7 @@ def update( ) request = cast(operations.UpdateExpenseTransactionRequest, request) - req = self.build_request( + req = self._build_request( method="PUT", path="/companies/{companyId}/sync/expenses/expense-transactions/{transactionId}", base_url=base_url, @@ -327,14 +351,16 @@ def update( request_has_query_params=True, user_agent_header="user-agent", accept_header_value="application/json", + http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request.update_expense_request, + request.update_expense_request if request is not None else None, False, True, "json", Optional[shared.UpdateExpenseRequest], ), + allow_empty_value=None, timeout_ms=timeout_ms, ) @@ -352,8 +378,10 @@ def update( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", operation_id="update-expense-transaction", - oauth2_scopes=[], + oauth2_scopes=None, security_source=self.sdk_configuration.security, ), request=req, @@ -373,32 +401,27 @@ def update( retry_config=retry_config, ) - data: Any = None + response_data: Any = None if utils.match_response(http_res, "202", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[shared.UpdateExpenseResponse] - ) + return unmarshal_json_response(shared.UpdateExpenseResponse, http_res) if utils.match_response( http_res, - ["400", "401", "402", "403", "404", "422", "429", "500", "503"], + ["400", "401", "402", "403", "404", "422", "429"], "application/json", ): - data = utils.unmarshal_json(http_res.text, errors.ErrorMessageData) - raise errors.ErrorMessage(data=data) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, ["500", "503"], "application/json"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = utils.stream_to_text(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) - content_type = http_res.headers.get("Content-Type") - http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res_text, - http_res, - ) + raise errors.SDKError("Unexpected response received", http_res) async def update_async( self, @@ -410,26 +433,37 @@ async def update_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[shared.UpdateExpenseResponse]: + http_headers: Optional[Mapping[str, str]] = None, + ) -> shared.UpdateExpenseResponse: r"""Update expense transactions The *Update expense* endpoint updates an existing [expense transaction](https://docs.codat.io/sync-for-expenses-api#/schemas/UpdateExpenseRequest) in the accounting software for a given company's connection. [Expense transactions](https://docs.codat.io/sync-for-expenses-api#/schemas/UpdateExpenseRequest) represent transactions made with a company debit or credit card. - ### Supported Integrations + ### Supported integrations The following integrations are supported for the [Payment](https://docs.codat.io/expenses/sync-process/expense-transactions#transaction-types) transaction `type` only: | Integration | Supported | |-----------------------|-----------| | FreeAgent | Yes | + | QuickBooks Desktop | Yes | | QuickBooks Online | Yes | | Oracle NetSuite | Yes | + | Sage Intacct | Yes | | Xero | Yes | + | Zoho Books | Yes | + + #### Integration-specific behavior + + | Integration | Specifics | + |-----------------------|-----------| + | Sage Intacct | To sync **debit card expenses**, map the debit card to a Credit Card with the account type set to `Debit`.| :param request: The request object to send. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. """ base_url = None url_variables = None @@ -438,6 +472,8 @@ async def update_async( if server_url is not None: base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) if not isinstance(request, BaseModel): request = utils.unmarshal( @@ -445,7 +481,7 @@ async def update_async( ) request = cast(operations.UpdateExpenseTransactionRequest, request) - req = self.build_request_async( + req = self._build_request_async( method="PUT", path="/companies/{companyId}/sync/expenses/expense-transactions/{transactionId}", base_url=base_url, @@ -456,14 +492,16 @@ async def update_async( request_has_query_params=True, user_agent_header="user-agent", accept_header_value="application/json", + http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request.update_expense_request, + request.update_expense_request if request is not None else None, False, True, "json", Optional[shared.UpdateExpenseRequest], ), + allow_empty_value=None, timeout_ms=timeout_ms, ) @@ -481,8 +519,10 @@ async def update_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", operation_id="update-expense-transaction", - oauth2_scopes=[], + oauth2_scopes=None, security_source=self.sdk_configuration.security, ), request=req, @@ -502,29 +542,24 @@ async def update_async( retry_config=retry_config, ) - data: Any = None + response_data: Any = None if utils.match_response(http_res, "202", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[shared.UpdateExpenseResponse] - ) + return unmarshal_json_response(shared.UpdateExpenseResponse, http_res) if utils.match_response( http_res, - ["400", "401", "402", "403", "404", "422", "429", "500", "503"], + ["400", "401", "402", "403", "404", "422", "429"], "application/json", ): - data = utils.unmarshal_json(http_res.text, errors.ErrorMessageData) - raise errors.ErrorMessage(data=data) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, ["500", "503"], "application/json"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = await utils.stream_to_text_async(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) - content_type = http_res.headers.get("Content-Type") - http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res_text, - http_res, - ) + raise errors.SDKError("Unexpected response received", http_res) diff --git a/sync-for-expenses/src/codat_sync_for_expenses/httpclient.py b/sync-for-expenses/src/codat_sync_for_expenses/httpclient.py index 167cea4ef..89560b566 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/httpclient.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/httpclient.py @@ -1,6 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" # pyright: reportReturnType = false +import asyncio from typing_extensions import Protocol, runtime_checkable import httpx from typing import Any, Optional, Union @@ -82,3 +83,43 @@ def build_request( async def aclose(self) -> None: pass + + +class ClientOwner(Protocol): + client: Union[HttpClient, None] + async_client: Union[AsyncHttpClient, None] + + +def close_clients( + owner: ClientOwner, + sync_client: Union[HttpClient, None], + sync_client_supplied: bool, + async_client: Union[AsyncHttpClient, None], + async_client_supplied: bool, +) -> None: + """ + A finalizer function that is meant to be used with weakref.finalize to close + httpx clients used by an SDK so that underlying resources can be garbage + collected. + """ + + # Unset the client/async_client properties so there are no more references + # to them from the owning SDK instance and they can be reaped. + owner.client = None + owner.async_client = None + if sync_client is not None and not sync_client_supplied: + try: + sync_client.close() + except Exception: + pass + + if async_client is not None and not async_client_supplied: + try: + loop = asyncio.get_running_loop() + asyncio.run_coroutine_threadsafe(async_client.aclose(), loop) + except RuntimeError: + try: + asyncio.run(async_client.aclose()) + except RuntimeError: + # best effort + pass diff --git a/sync-for-expenses/src/codat_sync_for_expenses/manage_data.py b/sync-for-expenses/src/codat_sync_for_expenses/manage_data.py index 7e932b7f5..05e9ac0e7 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/manage_data.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/manage_data.py @@ -5,7 +5,10 @@ from codat_sync_for_expenses._hooks import HookContext from codat_sync_for_expenses.models import errors, operations, shared from codat_sync_for_expenses.types import BaseModel, OptionalNullable, UNSET -from typing import Any, Optional, Union, cast +from codat_sync_for_expenses.utils.unmarshal_json_response import ( + unmarshal_json_response, +) +from typing import Any, Mapping, Optional, Union, cast class ManageData(BaseSDK): @@ -20,7 +23,8 @@ def get( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[operations.GetDataStatusDataStatuses]: + http_headers: Optional[Mapping[str, str]] = None, + ) -> operations.GetDataStatusDataStatuses: r"""Get data status Get the state of each data type for a company @@ -29,6 +33,7 @@ def get( :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. """ base_url = None url_variables = None @@ -37,12 +42,14 @@ def get( if server_url is not None: base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) if not isinstance(request, BaseModel): request = utils.unmarshal(request, operations.GetDataStatusRequest) request = cast(operations.GetDataStatusRequest, request) - req = self.build_request( + req = self._build_request( method="GET", path="/companies/{companyId}/dataStatus", base_url=base_url, @@ -53,7 +60,9 @@ def get( request_has_query_params=True, user_agent_header="user-agent", accept_header_value="application/json", + http_headers=http_headers, security=self.sdk_configuration.security, + allow_empty_value=None, timeout_ms=timeout_ms, ) @@ -71,8 +80,10 @@ def get( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", operation_id="get-data-status", - oauth2_scopes=[], + oauth2_scopes=None, security_source=self.sdk_configuration.security, ), request=req, @@ -90,32 +101,27 @@ def get( retry_config=retry_config, ) - data: Any = None + response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[operations.GetDataStatusDataStatuses] + return unmarshal_json_response( + operations.GetDataStatusDataStatuses, http_res ) if utils.match_response( - http_res, - ["401", "402", "403", "404", "429", "500", "503"], - "application/json", + http_res, ["401", "402", "403", "404", "429"], "application/json" ): - data = utils.unmarshal_json(http_res.text, errors.ErrorMessageData) - raise errors.ErrorMessage(data=data) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, ["500", "503"], "application/json"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = utils.stream_to_text(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) - content_type = http_res.headers.get("Content-Type") - http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res_text, - http_res, - ) + raise errors.SDKError("Unexpected response received", http_res) async def get_async( self, @@ -126,7 +132,8 @@ async def get_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[operations.GetDataStatusDataStatuses]: + http_headers: Optional[Mapping[str, str]] = None, + ) -> operations.GetDataStatusDataStatuses: r"""Get data status Get the state of each data type for a company @@ -135,6 +142,7 @@ async def get_async( :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. """ base_url = None url_variables = None @@ -143,12 +151,14 @@ async def get_async( if server_url is not None: base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) if not isinstance(request, BaseModel): request = utils.unmarshal(request, operations.GetDataStatusRequest) request = cast(operations.GetDataStatusRequest, request) - req = self.build_request_async( + req = self._build_request_async( method="GET", path="/companies/{companyId}/dataStatus", base_url=base_url, @@ -159,7 +169,9 @@ async def get_async( request_has_query_params=True, user_agent_header="user-agent", accept_header_value="application/json", + http_headers=http_headers, security=self.sdk_configuration.security, + allow_empty_value=None, timeout_ms=timeout_ms, ) @@ -177,8 +189,10 @@ async def get_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", operation_id="get-data-status", - oauth2_scopes=[], + oauth2_scopes=None, security_source=self.sdk_configuration.security, ), request=req, @@ -196,32 +210,27 @@ async def get_async( retry_config=retry_config, ) - data: Any = None + response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[operations.GetDataStatusDataStatuses] + return unmarshal_json_response( + operations.GetDataStatusDataStatuses, http_res ) if utils.match_response( - http_res, - ["401", "402", "403", "404", "429", "500", "503"], - "application/json", + http_res, ["401", "402", "403", "404", "429"], "application/json" ): - data = utils.unmarshal_json(http_res.text, errors.ErrorMessageData) - raise errors.ErrorMessage(data=data) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, ["500", "503"], "application/json"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = await utils.stream_to_text_async(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) - content_type = http_res.headers.get("Content-Type") - http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res_text, - http_res, - ) + raise errors.SDKError("Unexpected response received", http_res) def get_pull_operation( self, @@ -233,7 +242,8 @@ def get_pull_operation( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[shared.PullOperation]: + http_headers: Optional[Mapping[str, str]] = None, + ) -> shared.PullOperation: r"""Get pull operation Retrieve information about a single dataset or pull operation. @@ -242,6 +252,7 @@ def get_pull_operation( :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. """ base_url = None url_variables = None @@ -250,12 +261,14 @@ def get_pull_operation( if server_url is not None: base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) if not isinstance(request, BaseModel): request = utils.unmarshal(request, operations.GetPullOperationRequest) request = cast(operations.GetPullOperationRequest, request) - req = self.build_request( + req = self._build_request( method="GET", path="/companies/{companyId}/data/history/{datasetId}", base_url=base_url, @@ -266,7 +279,9 @@ def get_pull_operation( request_has_query_params=True, user_agent_header="user-agent", accept_header_value="application/json", + http_headers=http_headers, security=self.sdk_configuration.security, + allow_empty_value=None, timeout_ms=timeout_ms, ) @@ -284,8 +299,10 @@ def get_pull_operation( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", operation_id="get-pull-operation", - oauth2_scopes=[], + oauth2_scopes=None, security_source=self.sdk_configuration.security, ), request=req, @@ -303,30 +320,25 @@ def get_pull_operation( retry_config=retry_config, ) - data: Any = None + response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json(http_res.text, Optional[shared.PullOperation]) + return unmarshal_json_response(shared.PullOperation, http_res) if utils.match_response( - http_res, - ["401", "402", "403", "404", "429", "500", "503"], - "application/json", + http_res, ["401", "402", "403", "404", "429"], "application/json" ): - data = utils.unmarshal_json(http_res.text, errors.ErrorMessageData) - raise errors.ErrorMessage(data=data) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, ["500", "503"], "application/json"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = utils.stream_to_text(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) - content_type = http_res.headers.get("Content-Type") - http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res_text, - http_res, - ) + raise errors.SDKError("Unexpected response received", http_res) async def get_pull_operation_async( self, @@ -338,7 +350,8 @@ async def get_pull_operation_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[shared.PullOperation]: + http_headers: Optional[Mapping[str, str]] = None, + ) -> shared.PullOperation: r"""Get pull operation Retrieve information about a single dataset or pull operation. @@ -347,6 +360,7 @@ async def get_pull_operation_async( :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. """ base_url = None url_variables = None @@ -355,12 +369,14 @@ async def get_pull_operation_async( if server_url is not None: base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) if not isinstance(request, BaseModel): request = utils.unmarshal(request, operations.GetPullOperationRequest) request = cast(operations.GetPullOperationRequest, request) - req = self.build_request_async( + req = self._build_request_async( method="GET", path="/companies/{companyId}/data/history/{datasetId}", base_url=base_url, @@ -371,7 +387,9 @@ async def get_pull_operation_async( request_has_query_params=True, user_agent_header="user-agent", accept_header_value="application/json", + http_headers=http_headers, security=self.sdk_configuration.security, + allow_empty_value=None, timeout_ms=timeout_ms, ) @@ -389,8 +407,10 @@ async def get_pull_operation_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", operation_id="get-pull-operation", - oauth2_scopes=[], + oauth2_scopes=None, security_source=self.sdk_configuration.security, ), request=req, @@ -408,30 +428,25 @@ async def get_pull_operation_async( retry_config=retry_config, ) - data: Any = None + response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json(http_res.text, Optional[shared.PullOperation]) + return unmarshal_json_response(shared.PullOperation, http_res) if utils.match_response( - http_res, - ["401", "402", "403", "404", "429", "500", "503"], - "application/json", + http_res, ["401", "402", "403", "404", "429"], "application/json" ): - data = utils.unmarshal_json(http_res.text, errors.ErrorMessageData) - raise errors.ErrorMessage(data=data) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, ["500", "503"], "application/json"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = await utils.stream_to_text_async(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) - content_type = http_res.headers.get("Content-Type") - http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res_text, - http_res, - ) + raise errors.SDKError("Unexpected response received", http_res) def list_pull_operations( self, @@ -443,7 +458,8 @@ def list_pull_operations( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[shared.PullOperations]: + http_headers: Optional[Mapping[str, str]] = None, + ) -> shared.PullOperations: r"""List pull operations Gets the pull operation history (datasets) for a given company. @@ -452,6 +468,7 @@ def list_pull_operations( :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. """ base_url = None url_variables = None @@ -460,12 +477,14 @@ def list_pull_operations( if server_url is not None: base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) if not isinstance(request, BaseModel): request = utils.unmarshal(request, operations.ListPullOperationsRequest) request = cast(operations.ListPullOperationsRequest, request) - req = self.build_request( + req = self._build_request( method="GET", path="/companies/{companyId}/data/history", base_url=base_url, @@ -476,7 +495,9 @@ def list_pull_operations( request_has_query_params=True, user_agent_header="user-agent", accept_header_value="application/json", + http_headers=http_headers, security=self.sdk_configuration.security, + allow_empty_value=None, timeout_ms=timeout_ms, ) @@ -494,8 +515,10 @@ def list_pull_operations( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", operation_id="list-pull-operations", - oauth2_scopes=[], + oauth2_scopes=None, security_source=self.sdk_configuration.security, ), request=req, @@ -514,30 +537,25 @@ def list_pull_operations( retry_config=retry_config, ) - data: Any = None + response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json(http_res.text, Optional[shared.PullOperations]) + return unmarshal_json_response(shared.PullOperations, http_res) if utils.match_response( - http_res, - ["400", "401", "402", "403", "404", "429", "500", "503"], - "application/json", + http_res, ["400", "401", "402", "403", "404", "429"], "application/json" ): - data = utils.unmarshal_json(http_res.text, errors.ErrorMessageData) - raise errors.ErrorMessage(data=data) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, ["500", "503"], "application/json"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = utils.stream_to_text(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) - content_type = http_res.headers.get("Content-Type") - http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res_text, - http_res, - ) + raise errors.SDKError("Unexpected response received", http_res) async def list_pull_operations_async( self, @@ -549,7 +567,8 @@ async def list_pull_operations_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[shared.PullOperations]: + http_headers: Optional[Mapping[str, str]] = None, + ) -> shared.PullOperations: r"""List pull operations Gets the pull operation history (datasets) for a given company. @@ -558,6 +577,7 @@ async def list_pull_operations_async( :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. """ base_url = None url_variables = None @@ -566,12 +586,14 @@ async def list_pull_operations_async( if server_url is not None: base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) if not isinstance(request, BaseModel): request = utils.unmarshal(request, operations.ListPullOperationsRequest) request = cast(operations.ListPullOperationsRequest, request) - req = self.build_request_async( + req = self._build_request_async( method="GET", path="/companies/{companyId}/data/history", base_url=base_url, @@ -582,7 +604,9 @@ async def list_pull_operations_async( request_has_query_params=True, user_agent_header="user-agent", accept_header_value="application/json", + http_headers=http_headers, security=self.sdk_configuration.security, + allow_empty_value=None, timeout_ms=timeout_ms, ) @@ -600,8 +624,10 @@ async def list_pull_operations_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", operation_id="list-pull-operations", - oauth2_scopes=[], + oauth2_scopes=None, security_source=self.sdk_configuration.security, ), request=req, @@ -620,30 +646,25 @@ async def list_pull_operations_async( retry_config=retry_config, ) - data: Any = None + response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json(http_res.text, Optional[shared.PullOperations]) + return unmarshal_json_response(shared.PullOperations, http_res) if utils.match_response( - http_res, - ["400", "401", "402", "403", "404", "429", "500", "503"], - "application/json", + http_res, ["400", "401", "402", "403", "404", "429"], "application/json" ): - data = utils.unmarshal_json(http_res.text, errors.ErrorMessageData) - raise errors.ErrorMessage(data=data) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, ["500", "503"], "application/json"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = await utils.stream_to_text_async(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) - content_type = http_res.headers.get("Content-Type") - http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res_text, - http_res, - ) + raise errors.SDKError("Unexpected response received", http_res) def refresh_all_data_types( self, @@ -655,6 +676,7 @@ def refresh_all_data_types( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, + http_headers: Optional[Mapping[str, str]] = None, ): r"""Refresh all data @@ -668,6 +690,7 @@ def refresh_all_data_types( :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. """ base_url = None url_variables = None @@ -676,12 +699,14 @@ def refresh_all_data_types( if server_url is not None: base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) if not isinstance(request, BaseModel): request = utils.unmarshal(request, operations.RefreshAllDataTypesRequest) request = cast(operations.RefreshAllDataTypesRequest, request) - req = self.build_request( + req = self._build_request( method="POST", path="/companies/{companyId}/data/all", base_url=base_url, @@ -692,7 +717,9 @@ def refresh_all_data_types( request_has_query_params=True, user_agent_header="user-agent", accept_header_value="application/json", + http_headers=http_headers, security=self.sdk_configuration.security, + allow_empty_value=None, timeout_ms=timeout_ms, ) @@ -710,12 +737,15 @@ def refresh_all_data_types( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", operation_id="refresh-all-data-types", - oauth2_scopes=[], + oauth2_scopes=None, security_source=self.sdk_configuration.security, ), request=req, error_status_codes=[ + "400", "401", "402", "403", @@ -729,30 +759,25 @@ def refresh_all_data_types( retry_config=retry_config, ) - data: Any = None + response_data: Any = None if utils.match_response(http_res, "204", "*"): return if utils.match_response( - http_res, - ["401", "402", "403", "404", "429", "500", "503"], - "application/json", + http_res, ["400", "401", "402", "403", "404", "429"], "application/json" ): - data = utils.unmarshal_json(http_res.text, errors.ErrorMessageData) - raise errors.ErrorMessage(data=data) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, ["500", "503"], "application/json"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = utils.stream_to_text(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) - content_type = http_res.headers.get("Content-Type") - http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res_text, - http_res, - ) + raise errors.SDKError("Unexpected response received", http_res) async def refresh_all_data_types_async( self, @@ -764,6 +789,7 @@ async def refresh_all_data_types_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, + http_headers: Optional[Mapping[str, str]] = None, ): r"""Refresh all data @@ -777,6 +803,7 @@ async def refresh_all_data_types_async( :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. """ base_url = None url_variables = None @@ -785,12 +812,14 @@ async def refresh_all_data_types_async( if server_url is not None: base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) if not isinstance(request, BaseModel): request = utils.unmarshal(request, operations.RefreshAllDataTypesRequest) request = cast(operations.RefreshAllDataTypesRequest, request) - req = self.build_request_async( + req = self._build_request_async( method="POST", path="/companies/{companyId}/data/all", base_url=base_url, @@ -801,7 +830,9 @@ async def refresh_all_data_types_async( request_has_query_params=True, user_agent_header="user-agent", accept_header_value="application/json", + http_headers=http_headers, security=self.sdk_configuration.security, + allow_empty_value=None, timeout_ms=timeout_ms, ) @@ -819,12 +850,15 @@ async def refresh_all_data_types_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", operation_id="refresh-all-data-types", - oauth2_scopes=[], + oauth2_scopes=None, security_source=self.sdk_configuration.security, ), request=req, error_status_codes=[ + "400", "401", "402", "403", @@ -838,30 +872,25 @@ async def refresh_all_data_types_async( retry_config=retry_config, ) - data: Any = None + response_data: Any = None if utils.match_response(http_res, "204", "*"): return if utils.match_response( - http_res, - ["401", "402", "403", "404", "429", "500", "503"], - "application/json", + http_res, ["400", "401", "402", "403", "404", "429"], "application/json" ): - data = utils.unmarshal_json(http_res.text, errors.ErrorMessageData) - raise errors.ErrorMessage(data=data) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, ["500", "503"], "application/json"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = await utils.stream_to_text_async(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) - content_type = http_res.headers.get("Content-Type") - http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res_text, - http_res, - ) + raise errors.SDKError("Unexpected response received", http_res) def refresh_data_type( self, @@ -873,7 +902,8 @@ def refresh_data_type( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[shared.PullOperation]: + http_headers: Optional[Mapping[str, str]] = None, + ) -> shared.PullOperation: r"""Refresh data type Refreshes a given data type for a given company. @@ -884,6 +914,7 @@ def refresh_data_type( :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. """ base_url = None url_variables = None @@ -892,12 +923,14 @@ def refresh_data_type( if server_url is not None: base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) if not isinstance(request, BaseModel): request = utils.unmarshal(request, operations.RefreshDataTypeRequest) request = cast(operations.RefreshDataTypeRequest, request) - req = self.build_request( + req = self._build_request( method="POST", path="/companies/{companyId}/data/queue/{dataType}", base_url=base_url, @@ -908,7 +941,9 @@ def refresh_data_type( request_has_query_params=True, user_agent_header="user-agent", accept_header_value="application/json", + http_headers=http_headers, security=self.sdk_configuration.security, + allow_empty_value=None, timeout_ms=timeout_ms, ) @@ -926,12 +961,15 @@ def refresh_data_type( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", operation_id="refresh-data-type", - oauth2_scopes=[], + oauth2_scopes=None, security_source=self.sdk_configuration.security, ), request=req, error_status_codes=[ + "400", "401", "402", "403", @@ -945,30 +983,25 @@ def refresh_data_type( retry_config=retry_config, ) - data: Any = None + response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json(http_res.text, Optional[shared.PullOperation]) + return unmarshal_json_response(shared.PullOperation, http_res) if utils.match_response( - http_res, - ["401", "402", "403", "404", "429", "500", "503"], - "application/json", + http_res, ["400", "401", "402", "403", "404", "429"], "application/json" ): - data = utils.unmarshal_json(http_res.text, errors.ErrorMessageData) - raise errors.ErrorMessage(data=data) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, ["500", "503"], "application/json"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = utils.stream_to_text(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) - content_type = http_res.headers.get("Content-Type") - http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res_text, - http_res, - ) + raise errors.SDKError("Unexpected response received", http_res) async def refresh_data_type_async( self, @@ -980,7 +1013,8 @@ async def refresh_data_type_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[shared.PullOperation]: + http_headers: Optional[Mapping[str, str]] = None, + ) -> shared.PullOperation: r"""Refresh data type Refreshes a given data type for a given company. @@ -991,6 +1025,7 @@ async def refresh_data_type_async( :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. """ base_url = None url_variables = None @@ -999,12 +1034,14 @@ async def refresh_data_type_async( if server_url is not None: base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) if not isinstance(request, BaseModel): request = utils.unmarshal(request, operations.RefreshDataTypeRequest) request = cast(operations.RefreshDataTypeRequest, request) - req = self.build_request_async( + req = self._build_request_async( method="POST", path="/companies/{companyId}/data/queue/{dataType}", base_url=base_url, @@ -1015,7 +1052,9 @@ async def refresh_data_type_async( request_has_query_params=True, user_agent_header="user-agent", accept_header_value="application/json", + http_headers=http_headers, security=self.sdk_configuration.security, + allow_empty_value=None, timeout_ms=timeout_ms, ) @@ -1033,12 +1072,15 @@ async def refresh_data_type_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", operation_id="refresh-data-type", - oauth2_scopes=[], + oauth2_scopes=None, security_source=self.sdk_configuration.security, ), request=req, error_status_codes=[ + "400", "401", "402", "403", @@ -1052,27 +1094,22 @@ async def refresh_data_type_async( retry_config=retry_config, ) - data: Any = None + response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json(http_res.text, Optional[shared.PullOperation]) + return unmarshal_json_response(shared.PullOperation, http_res) if utils.match_response( - http_res, - ["401", "402", "403", "404", "429", "500", "503"], - "application/json", + http_res, ["400", "401", "402", "403", "404", "429"], "application/json" ): - data = utils.unmarshal_json(http_res.text, errors.ErrorMessageData) - raise errors.ErrorMessage(data=data) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, ["500", "503"], "application/json"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = await utils.stream_to_text_async(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) - content_type = http_res.headers.get("Content-Type") - http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res_text, - http_res, - ) + raise errors.SDKError("Unexpected response received", http_res) diff --git a/sync-for-expenses/src/codat_sync_for_expenses/mapping_options.py b/sync-for-expenses/src/codat_sync_for_expenses/mapping_options.py index f86518f74..b5c7e39ec 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/mapping_options.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/mapping_options.py @@ -5,7 +5,10 @@ from codat_sync_for_expenses._hooks import HookContext from codat_sync_for_expenses.models import errors, operations, shared from codat_sync_for_expenses.types import BaseModel, OptionalNullable, UNSET -from typing import Any, Optional, Union, cast +from codat_sync_for_expenses.utils.unmarshal_json_response import ( + unmarshal_json_response, +) +from typing import Any, Mapping, Optional, Union, cast class MappingOptions(BaseSDK): @@ -21,7 +24,8 @@ def get_mapping_options( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[shared.MappingOptions]: + http_headers: Optional[Mapping[str, str]] = None, + ) -> shared.MappingOptions: r"""Mapping options Gets the mapping options (accounts, trackingCategories and taxRates) for a company's accounting software @@ -30,6 +34,7 @@ def get_mapping_options( :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. """ base_url = None url_variables = None @@ -38,12 +43,14 @@ def get_mapping_options( if server_url is not None: base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) if not isinstance(request, BaseModel): request = utils.unmarshal(request, operations.GetMappingOptionsRequest) request = cast(operations.GetMappingOptionsRequest, request) - req = self.build_request( + req = self._build_request( method="GET", path="/companies/{companyId}/sync/expenses/mappingOptions", base_url=base_url, @@ -54,7 +61,9 @@ def get_mapping_options( request_has_query_params=True, user_agent_header="user-agent", accept_header_value="application/json", + http_headers=http_headers, security=self.sdk_configuration.security, + allow_empty_value=None, timeout_ms=timeout_ms, ) @@ -72,8 +81,10 @@ def get_mapping_options( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", operation_id="get-mapping-options", - oauth2_scopes=[], + oauth2_scopes=None, security_source=self.sdk_configuration.security, ), request=req, @@ -91,30 +102,25 @@ def get_mapping_options( retry_config=retry_config, ) - data: Any = None + response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json(http_res.text, Optional[shared.MappingOptions]) + return unmarshal_json_response(shared.MappingOptions, http_res) if utils.match_response( - http_res, - ["401", "402", "403", "404", "429", "500", "503"], - "application/json", + http_res, ["401", "402", "403", "404", "429"], "application/json" ): - data = utils.unmarshal_json(http_res.text, errors.ErrorMessageData) - raise errors.ErrorMessage(data=data) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, ["500", "503"], "application/json"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) - - content_type = http_res.headers.get("Content-Type") - http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res_text, - http_res, - ) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = utils.stream_to_text(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) + + raise errors.SDKError("Unexpected response received", http_res) async def get_mapping_options_async( self, @@ -126,7 +132,8 @@ async def get_mapping_options_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[shared.MappingOptions]: + http_headers: Optional[Mapping[str, str]] = None, + ) -> shared.MappingOptions: r"""Mapping options Gets the mapping options (accounts, trackingCategories and taxRates) for a company's accounting software @@ -135,6 +142,7 @@ async def get_mapping_options_async( :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. """ base_url = None url_variables = None @@ -143,12 +151,14 @@ async def get_mapping_options_async( if server_url is not None: base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) if not isinstance(request, BaseModel): request = utils.unmarshal(request, operations.GetMappingOptionsRequest) request = cast(operations.GetMappingOptionsRequest, request) - req = self.build_request_async( + req = self._build_request_async( method="GET", path="/companies/{companyId}/sync/expenses/mappingOptions", base_url=base_url, @@ -159,7 +169,9 @@ async def get_mapping_options_async( request_has_query_params=True, user_agent_header="user-agent", accept_header_value="application/json", + http_headers=http_headers, security=self.sdk_configuration.security, + allow_empty_value=None, timeout_ms=timeout_ms, ) @@ -177,8 +189,10 @@ async def get_mapping_options_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", operation_id="get-mapping-options", - oauth2_scopes=[], + oauth2_scopes=None, security_source=self.sdk_configuration.security, ), request=req, @@ -196,27 +210,22 @@ async def get_mapping_options_async( retry_config=retry_config, ) - data: Any = None + response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json(http_res.text, Optional[shared.MappingOptions]) + return unmarshal_json_response(shared.MappingOptions, http_res) if utils.match_response( - http_res, - ["401", "402", "403", "404", "429", "500", "503"], - "application/json", + http_res, ["401", "402", "403", "404", "429"], "application/json" ): - data = utils.unmarshal_json(http_res.text, errors.ErrorMessageData) - raise errors.ErrorMessage(data=data) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, ["500", "503"], "application/json"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) - - content_type = http_res.headers.get("Content-Type") - http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res_text, - http_res, - ) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = await utils.stream_to_text_async(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) + + raise errors.SDKError("Unexpected response received", http_res) diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/__init__.py b/sync-for-expenses/src/codat_sync_for_expenses/models/__init__.py new file mode 100644 index 000000000..3e68f3290 --- /dev/null +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/__init__.py @@ -0,0 +1,23 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from typing import Any, TYPE_CHECKING + +from codat_sync_for_expenses.utils.dynamic_imports import lazy_getattr, lazy_dir + +if TYPE_CHECKING: + from . import errors, operations, shared + +# package + + +_sub_packages = ["errors", "operations", "shared"] + + +def __getattr__(attr_name: str) -> Any: + return lazy_getattr( + attr_name, package=__package__, dynamic_imports={}, sub_packages=_sub_packages + ) + + +def __dir__(): + return lazy_dir(dynamic_imports={}, sub_packages=_sub_packages) diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/errors/__init__.py b/sync-for-expenses/src/codat_sync_for_expenses/models/errors/__init__.py index f056b05a6..a7c0be6a5 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/errors/__init__.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/errors/__init__.py @@ -1,6 +1,39 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -from .errormessage import ErrorMessage, ErrorMessageData -from .sdkerror import SDKError +from .codatsyncexpenseserror import CodatSyncExpensesError +from typing import Any, TYPE_CHECKING -__all__ = ["ErrorMessage", "ErrorMessageData", "SDKError"] +from codat_sync_for_expenses.utils.dynamic_imports import lazy_getattr, lazy_dir + +if TYPE_CHECKING: + from .errormessage import ErrorMessage, ErrorMessageData + from .no_response_error import NoResponseError + from .responsevalidationerror import ResponseValidationError + from .sdkerror import SDKError + +__all__ = [ + "CodatSyncExpensesError", + "ErrorMessage", + "ErrorMessageData", + "NoResponseError", + "ResponseValidationError", + "SDKError", +] + +_dynamic_imports: dict[str, str] = { + "ErrorMessage": ".errormessage", + "ErrorMessageData": ".errormessage", + "NoResponseError": ".no_response_error", + "ResponseValidationError": ".responsevalidationerror", + "SDKError": ".sdkerror", +} + + +def __getattr__(attr_name: str) -> Any: + return lazy_getattr( + attr_name, package=__package__, dynamic_imports=_dynamic_imports + ) + + +def __dir__(): + return lazy_dir(dynamic_imports=_dynamic_imports) diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/errors/codatsyncexpenseserror.py b/sync-for-expenses/src/codat_sync_for_expenses/models/errors/codatsyncexpenseserror.py new file mode 100644 index 000000000..36f9c6914 --- /dev/null +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/errors/codatsyncexpenseserror.py @@ -0,0 +1,30 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +import httpx +from typing import Optional +from dataclasses import dataclass, field + + +@dataclass(unsafe_hash=True) +class CodatSyncExpensesError(Exception): + """The base class for all HTTP error responses.""" + + message: str + status_code: int + body: str + headers: httpx.Headers = field(hash=False) + raw_response: httpx.Response = field(hash=False) + + def __init__( + self, message: str, raw_response: httpx.Response, body: Optional[str] = None + ): + object.__setattr__(self, "message", message) + object.__setattr__(self, "status_code", raw_response.status_code) + object.__setattr__( + self, "body", body if body is not None else raw_response.text + ) + object.__setattr__(self, "headers", raw_response.headers) + object.__setattr__(self, "raw_response", raw_response) + + def __str__(self): + return self.message diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/errors/errormessage.py b/sync-for-expenses/src/codat_sync_for_expenses/models/errors/errormessage.py index a6b70c809..0afb6562e 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/errors/errormessage.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/errors/errormessage.py @@ -1,11 +1,13 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from codat_sync_for_expenses import utils +from codat_sync_for_expenses.models.errors import CodatSyncExpensesError from codat_sync_for_expenses.models.shared import ( errorvalidation as shared_errorvalidation, ) from codat_sync_for_expenses.types import BaseModel, OptionalNullable, UNSET +from dataclasses import dataclass, field +import httpx import pydantic from typing import Optional from typing_extensions import Annotated @@ -16,37 +18,36 @@ class ErrorMessageData(BaseModel): None ) r"""`True` if the error occurred transiently and can be retried.""" - correlation_id: Annotated[Optional[str], pydantic.Field(alias="correlationId")] = ( None ) r"""Unique identifier used to propagate to all downstream services and determine the source of the error.""" - detailed_error_code: Annotated[ Optional[int], pydantic.Field(alias="detailedErrorCode") ] = None r"""Machine readable error code used to automate processes based on the code returned.""" - error: Optional[str] = None r"""A brief description of the error.""" - service: Optional[str] = None r"""Codat's service the returned the error.""" - status_code: Annotated[Optional[int], pydantic.Field(alias="statusCode")] = None r"""The HTTP status code returned by the error.""" - validation: OptionalNullable[shared_errorvalidation.ErrorValidation] = UNSET r"""A human-readable object describing validation decisions Codat has made. If an operation has failed because of validation errors, they will be detailed here.""" -class ErrorMessage(Exception): +@dataclass(unsafe_hash=True) +class ErrorMessage(CodatSyncExpensesError): r"""Your `query` parameter was not correctly formed""" - data: ErrorMessageData - - def __init__(self, data: ErrorMessageData): - self.data = data - - def __str__(self) -> str: - return utils.marshal_json(self.data, ErrorMessageData) + data: ErrorMessageData = field(hash=False) + + def __init__( + self, + data: ErrorMessageData, + raw_response: httpx.Response, + body: Optional[str] = None, + ): + message = body or raw_response.text + super().__init__(message, raw_response, body) + object.__setattr__(self, "data", data) diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/errors/no_response_error.py b/sync-for-expenses/src/codat_sync_for_expenses/models/errors/no_response_error.py new file mode 100644 index 000000000..1deab64bc --- /dev/null +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/errors/no_response_error.py @@ -0,0 +1,17 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from dataclasses import dataclass + + +@dataclass(unsafe_hash=True) +class NoResponseError(Exception): + """Error raised when no HTTP response is received from the server.""" + + message: str + + def __init__(self, message: str = "No response received"): + object.__setattr__(self, "message", message) + super().__init__(message) + + def __str__(self): + return self.message diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/errors/responsevalidationerror.py b/sync-for-expenses/src/codat_sync_for_expenses/models/errors/responsevalidationerror.py new file mode 100644 index 000000000..129dfa81c --- /dev/null +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/errors/responsevalidationerror.py @@ -0,0 +1,27 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +import httpx +from typing import Optional +from dataclasses import dataclass + +from codat_sync_for_expenses.models.errors import CodatSyncExpensesError + + +@dataclass(unsafe_hash=True) +class ResponseValidationError(CodatSyncExpensesError): + """Error raised when there is a type mismatch between the response data and the expected Pydantic model.""" + + def __init__( + self, + message: str, + raw_response: httpx.Response, + cause: Exception, + body: Optional[str] = None, + ): + message = f"{message}: {cause}" + super().__init__(message, raw_response, body) + + @property + def cause(self): + """Normally the Pydantic ValidationError""" + return self.__cause__ diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/errors/sdkerror.py b/sync-for-expenses/src/codat_sync_for_expenses/models/errors/sdkerror.py index 03216cbf5..9eb94a8ab 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/errors/sdkerror.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/errors/sdkerror.py @@ -1,22 +1,40 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -from dataclasses import dataclass -from typing import Optional import httpx +from typing import Optional +from dataclasses import dataclass + +from codat_sync_for_expenses.models.errors import CodatSyncExpensesError + +MAX_MESSAGE_LEN = 10_000 + + +@dataclass(unsafe_hash=True) +class SDKError(CodatSyncExpensesError): + """The fallback error class if no more specific error class is matched.""" + + def __init__( + self, message: str, raw_response: httpx.Response, body: Optional[str] = None + ): + body_display = body or raw_response.text or '""' + if message: + message += ": " + message += f"Status {raw_response.status_code}" -@dataclass -class SDKError(Exception): - """Represents an error returned by the API.""" + headers = raw_response.headers + content_type = headers.get("content-type", '""') + if content_type != "application/json": + if " " in content_type: + content_type = f'"{content_type}"' + message += f" Content-Type {content_type}" - message: str - status_code: int = -1 - body: str = "" - raw_response: Optional[httpx.Response] = None + if len(body_display) > MAX_MESSAGE_LEN: + truncated = body_display[:MAX_MESSAGE_LEN] + remaining = len(body_display) - MAX_MESSAGE_LEN + body_display = f"{truncated}...and {remaining} more chars" - def __str__(self): - body = "" - if len(self.body) > 0: - body = f"\n{self.body}" + message += f". Body: {body_display}" + message = message.strip() - return f"{self.message}: Status {self.status_code}{body}" + super().__init__(message, raw_response, body) diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/operations/__init__.py b/sync-for-expenses/src/codat_sync_for_expenses/models/operations/__init__.py index 9af9916f7..bd69bd0ce 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/operations/__init__.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/operations/__init__.py @@ -1,132 +1,147 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -from .create_account import CreateAccountRequest, CreateAccountRequestTypedDict -from .create_adjustment_transaction import ( - CreateAdjustmentTransactionRequest, - CreateAdjustmentTransactionRequestTypedDict, -) -from .create_bank_account import ( - CreateBankAccountRequest, - CreateBankAccountRequestTypedDict, -) -from .create_connection import ( - CreateConnectionRequest, - CreateConnectionRequestBody, - CreateConnectionRequestBodyTypedDict, - CreateConnectionRequestTypedDict, -) -from .create_customer import CreateCustomerRequest, CreateCustomerRequestTypedDict -from .create_expense_transaction import ( - CreateExpenseTransactionRequest, - CreateExpenseTransactionRequestTypedDict, -) -from .create_partner_expense_connection import ( - CreatePartnerExpenseConnectionRequest, - CreatePartnerExpenseConnectionRequestTypedDict, -) -from .create_reimbursable_expense_transaction import ( - CreateReimbursableExpenseTransactionRequest, - CreateReimbursableExpenseTransactionRequestTypedDict, -) -from .create_supplier import CreateSupplierRequest, CreateSupplierRequestTypedDict -from .create_transfer_transaction import ( - CreateTransferTransactionRequest, - CreateTransferTransactionRequestTypedDict, -) -from .delete_company import DeleteCompanyRequest, DeleteCompanyRequestTypedDict -from .delete_connection import DeleteConnectionRequest, DeleteConnectionRequestTypedDict -from .get_company import GetCompanyRequest, GetCompanyRequestTypedDict -from .get_company_configuration import ( - GetCompanyConfigurationRequest, - GetCompanyConfigurationRequestTypedDict, -) -from .get_company_info import GetCompanyInfoRequest, GetCompanyInfoRequestTypedDict -from .get_connection import GetConnectionRequest, GetConnectionRequestTypedDict -from .get_create_bankaccounts_model import ( - GetCreateBankAccountsModelRequest, - GetCreateBankAccountsModelRequestTypedDict, -) -from .get_create_chartofaccounts_model import ( - GetCreateChartOfAccountsModelRequest, - GetCreateChartOfAccountsModelRequestTypedDict, -) -from .get_customer import GetCustomerRequest, GetCustomerRequestTypedDict -from .get_data_status import ( - GetDataStatusDataStatuses, - GetDataStatusDataStatusesTypedDict, - GetDataStatusRequest, - GetDataStatusRequestTypedDict, -) -from .get_last_successful_sync import ( - GetLastSuccessfulSyncRequest, - GetLastSuccessfulSyncRequestTypedDict, -) -from .get_latest_sync import GetLatestSyncRequest, GetLatestSyncRequestTypedDict -from .get_mapping_options import ( - GetMappingOptionsRequest, - GetMappingOptionsRequestTypedDict, -) -from .get_pull_operation import ( - GetPullOperationRequest, - GetPullOperationRequestTypedDict, -) -from .get_push_operation import ( - GetPushOperationRequest, - GetPushOperationRequestTypedDict, -) -from .get_supplier import GetSupplierRequest, GetSupplierRequestTypedDict -from .get_sync_by_id import GetSyncByIDRequest, GetSyncByIDRequestTypedDict -from .get_sync_transaction import ( - GetSyncTransactionRequest, - GetSyncTransactionRequestTypedDict, -) -from .list_companies import ListCompaniesRequest, ListCompaniesRequestTypedDict -from .list_connections import ListConnectionsRequest, ListConnectionsRequestTypedDict -from .list_customers import ListCustomersRequest, ListCustomersRequestTypedDict -from .list_pull_operations import ( - ListPullOperationsRequest, - ListPullOperationsRequestTypedDict, -) -from .list_push_operations import ( - ListPushOperationsRequest, - ListPushOperationsRequestTypedDict, -) -from .list_suppliers import ListSuppliersRequest, ListSuppliersRequestTypedDict -from .list_sync_transactions import ( - ListSyncTransactionsRequest, - ListSyncTransactionsRequestTypedDict, -) -from .list_syncs import ListSyncsRequest, ListSyncsRequestTypedDict -from .refresh_all_data_types import ( - RefreshAllDataTypesRequest, - RefreshAllDataTypesRequestTypedDict, -) -from .refresh_data_type import RefreshDataTypeRequest, RefreshDataTypeRequestTypedDict -from .set_company_configuration import ( - SetCompanyConfigurationRequest, - SetCompanyConfigurationRequestTypedDict, -) -from .unlink_connection import ( - UnlinkConnectionRequest, - UnlinkConnectionRequestTypedDict, - UnlinkConnectionUpdateConnection, - UnlinkConnectionUpdateConnectionTypedDict, -) -from .update_company import UpdateCompanyRequest, UpdateCompanyRequestTypedDict -from .update_customer import UpdateCustomerRequest, UpdateCustomerRequestTypedDict -from .update_expense_transaction import ( - UpdateExpenseTransactionRequest, - UpdateExpenseTransactionRequestTypedDict, -) -from .update_reimbursable_expense_transaction import ( - UpdateReimbursableExpenseTransactionRequest, - UpdateReimbursableExpenseTransactionRequestTypedDict, -) -from .update_supplier import UpdateSupplierRequest, UpdateSupplierRequestTypedDict -from .upload_expense_attachment import ( - UploadExpenseAttachmentRequest, - UploadExpenseAttachmentRequestTypedDict, -) +from typing import Any, TYPE_CHECKING + +from codat_sync_for_expenses.utils.dynamic_imports import lazy_getattr, lazy_dir + +if TYPE_CHECKING: + from .create_account import CreateAccountRequest, CreateAccountRequestTypedDict + from .create_adjustment_transaction import ( + CreateAdjustmentTransactionRequest, + CreateAdjustmentTransactionRequestTypedDict, + ) + from .create_bank_account import ( + CreateBankAccountRequest, + CreateBankAccountRequestTypedDict, + ) + from .create_connection import ( + CreateConnectionRequest, + CreateConnectionRequestBody, + CreateConnectionRequestBodyTypedDict, + CreateConnectionRequestTypedDict, + ) + from .create_customer import CreateCustomerRequest, CreateCustomerRequestTypedDict + from .create_expense_transaction import ( + CreateExpenseTransactionRequest, + CreateExpenseTransactionRequestTypedDict, + ) + from .create_partner_expense_connection import ( + CreatePartnerExpenseConnectionRequest, + CreatePartnerExpenseConnectionRequestTypedDict, + ) + from .create_reimbursable_expense_transaction import ( + CreateReimbursableExpenseTransactionRequest, + CreateReimbursableExpenseTransactionRequestTypedDict, + ) + from .create_supplier import CreateSupplierRequest, CreateSupplierRequestTypedDict + from .create_transfer_transaction import ( + CreateTransferTransactionRequest, + CreateTransferTransactionRequestTypedDict, + ) + from .delete_company import DeleteCompanyRequest, DeleteCompanyRequestTypedDict + from .delete_connection import ( + DeleteConnectionRequest, + DeleteConnectionRequestTypedDict, + ) + from .get_company import GetCompanyRequest, GetCompanyRequestTypedDict + from .get_company_configuration import ( + GetCompanyConfigurationRequest, + GetCompanyConfigurationRequestTypedDict, + ) + from .get_company_info import GetCompanyInfoRequest, GetCompanyInfoRequestTypedDict + from .get_connection import GetConnectionRequest, GetConnectionRequestTypedDict + from .get_create_bankaccounts_model import ( + GetCreateBankAccountsModelRequest, + GetCreateBankAccountsModelRequestTypedDict, + ) + from .get_create_chartofaccounts_model import ( + GetCreateChartOfAccountsModelRequest, + GetCreateChartOfAccountsModelRequestTypedDict, + ) + from .get_customer import GetCustomerRequest, GetCustomerRequestTypedDict + from .get_data_status import ( + GetDataStatusDataStatuses, + GetDataStatusDataStatusesTypedDict, + GetDataStatusRequest, + GetDataStatusRequestTypedDict, + ) + from .get_last_successful_sync import ( + GetLastSuccessfulSyncRequest, + GetLastSuccessfulSyncRequestTypedDict, + ) + from .get_latest_sync import GetLatestSyncRequest, GetLatestSyncRequestTypedDict + from .get_mapping_options import ( + GetMappingOptionsRequest, + GetMappingOptionsRequestTypedDict, + ) + from .get_pull_operation import ( + GetPullOperationRequest, + GetPullOperationRequestTypedDict, + ) + from .get_push_operation import ( + GetPushOperationRequest, + GetPushOperationRequestTypedDict, + ) + from .get_supplier import GetSupplierRequest, GetSupplierRequestTypedDict + from .get_sync_by_id import GetSyncByIDRequest, GetSyncByIDRequestTypedDict + from .get_sync_transaction import ( + GetSyncTransactionRequest, + GetSyncTransactionRequestTypedDict, + ) + from .list_companies import ListCompaniesRequest, ListCompaniesRequestTypedDict + from .list_connections import ( + ListConnectionsRequest, + ListConnectionsRequestTypedDict, + ) + from .list_customers import ListCustomersRequest, ListCustomersRequestTypedDict + from .list_pull_operations import ( + ListPullOperationsRequest, + ListPullOperationsRequestTypedDict, + ) + from .list_push_operations import ( + ListPushOperationsRequest, + ListPushOperationsRequestTypedDict, + ) + from .list_suppliers import ListSuppliersRequest, ListSuppliersRequestTypedDict + from .list_sync_transactions import ( + ListSyncTransactionsRequest, + ListSyncTransactionsRequestTypedDict, + ) + from .list_syncs import ListSyncsRequest, ListSyncsRequestTypedDict + from .refresh_all_data_types import ( + RefreshAllDataTypesRequest, + RefreshAllDataTypesRequestTypedDict, + ) + from .refresh_data_type import ( + RefreshDataTypeRequest, + RefreshDataTypeRequestTypedDict, + ) + from .replace_company import ReplaceCompanyRequest, ReplaceCompanyRequestTypedDict + from .set_company_configuration import ( + SetCompanyConfigurationRequest, + SetCompanyConfigurationRequestTypedDict, + ) + from .unlink_connection import ( + UnlinkConnectionRequest, + UnlinkConnectionRequestTypedDict, + UnlinkConnectionUpdateConnection, + UnlinkConnectionUpdateConnectionTypedDict, + ) + from .update_company import UpdateCompanyRequest, UpdateCompanyRequestTypedDict + from .update_customer import UpdateCustomerRequest, UpdateCustomerRequestTypedDict + from .update_expense_transaction import ( + UpdateExpenseTransactionRequest, + UpdateExpenseTransactionRequestTypedDict, + ) + from .update_reimbursable_expense_transaction import ( + UpdateReimbursableExpenseTransactionRequest, + UpdateReimbursableExpenseTransactionRequestTypedDict, + ) + from .update_supplier import UpdateSupplierRequest, UpdateSupplierRequestTypedDict + from .upload_expense_attachment import ( + UploadExpenseAttachmentRequest, + UploadExpenseAttachmentRequestTypedDict, + ) __all__ = [ "CreateAccountRequest", @@ -209,6 +224,8 @@ "RefreshAllDataTypesRequestTypedDict", "RefreshDataTypeRequest", "RefreshDataTypeRequestTypedDict", + "ReplaceCompanyRequest", + "ReplaceCompanyRequestTypedDict", "SetCompanyConfigurationRequest", "SetCompanyConfigurationRequestTypedDict", "UnlinkConnectionRequest", @@ -228,3 +245,116 @@ "UploadExpenseAttachmentRequest", "UploadExpenseAttachmentRequestTypedDict", ] + +_dynamic_imports: dict[str, str] = { + "CreateAccountRequest": ".create_account", + "CreateAccountRequestTypedDict": ".create_account", + "CreateAdjustmentTransactionRequest": ".create_adjustment_transaction", + "CreateAdjustmentTransactionRequestTypedDict": ".create_adjustment_transaction", + "CreateBankAccountRequest": ".create_bank_account", + "CreateBankAccountRequestTypedDict": ".create_bank_account", + "CreateConnectionRequest": ".create_connection", + "CreateConnectionRequestBody": ".create_connection", + "CreateConnectionRequestBodyTypedDict": ".create_connection", + "CreateConnectionRequestTypedDict": ".create_connection", + "CreateCustomerRequest": ".create_customer", + "CreateCustomerRequestTypedDict": ".create_customer", + "CreateExpenseTransactionRequest": ".create_expense_transaction", + "CreateExpenseTransactionRequestTypedDict": ".create_expense_transaction", + "CreatePartnerExpenseConnectionRequest": ".create_partner_expense_connection", + "CreatePartnerExpenseConnectionRequestTypedDict": ".create_partner_expense_connection", + "CreateReimbursableExpenseTransactionRequest": ".create_reimbursable_expense_transaction", + "CreateReimbursableExpenseTransactionRequestTypedDict": ".create_reimbursable_expense_transaction", + "CreateSupplierRequest": ".create_supplier", + "CreateSupplierRequestTypedDict": ".create_supplier", + "CreateTransferTransactionRequest": ".create_transfer_transaction", + "CreateTransferTransactionRequestTypedDict": ".create_transfer_transaction", + "DeleteCompanyRequest": ".delete_company", + "DeleteCompanyRequestTypedDict": ".delete_company", + "DeleteConnectionRequest": ".delete_connection", + "DeleteConnectionRequestTypedDict": ".delete_connection", + "GetCompanyRequest": ".get_company", + "GetCompanyRequestTypedDict": ".get_company", + "GetCompanyConfigurationRequest": ".get_company_configuration", + "GetCompanyConfigurationRequestTypedDict": ".get_company_configuration", + "GetCompanyInfoRequest": ".get_company_info", + "GetCompanyInfoRequestTypedDict": ".get_company_info", + "GetConnectionRequest": ".get_connection", + "GetConnectionRequestTypedDict": ".get_connection", + "GetCreateBankAccountsModelRequest": ".get_create_bankaccounts_model", + "GetCreateBankAccountsModelRequestTypedDict": ".get_create_bankaccounts_model", + "GetCreateChartOfAccountsModelRequest": ".get_create_chartofaccounts_model", + "GetCreateChartOfAccountsModelRequestTypedDict": ".get_create_chartofaccounts_model", + "GetCustomerRequest": ".get_customer", + "GetCustomerRequestTypedDict": ".get_customer", + "GetDataStatusDataStatuses": ".get_data_status", + "GetDataStatusDataStatusesTypedDict": ".get_data_status", + "GetDataStatusRequest": ".get_data_status", + "GetDataStatusRequestTypedDict": ".get_data_status", + "GetLastSuccessfulSyncRequest": ".get_last_successful_sync", + "GetLastSuccessfulSyncRequestTypedDict": ".get_last_successful_sync", + "GetLatestSyncRequest": ".get_latest_sync", + "GetLatestSyncRequestTypedDict": ".get_latest_sync", + "GetMappingOptionsRequest": ".get_mapping_options", + "GetMappingOptionsRequestTypedDict": ".get_mapping_options", + "GetPullOperationRequest": ".get_pull_operation", + "GetPullOperationRequestTypedDict": ".get_pull_operation", + "GetPushOperationRequest": ".get_push_operation", + "GetPushOperationRequestTypedDict": ".get_push_operation", + "GetSupplierRequest": ".get_supplier", + "GetSupplierRequestTypedDict": ".get_supplier", + "GetSyncByIDRequest": ".get_sync_by_id", + "GetSyncByIDRequestTypedDict": ".get_sync_by_id", + "GetSyncTransactionRequest": ".get_sync_transaction", + "GetSyncTransactionRequestTypedDict": ".get_sync_transaction", + "ListCompaniesRequest": ".list_companies", + "ListCompaniesRequestTypedDict": ".list_companies", + "ListConnectionsRequest": ".list_connections", + "ListConnectionsRequestTypedDict": ".list_connections", + "ListCustomersRequest": ".list_customers", + "ListCustomersRequestTypedDict": ".list_customers", + "ListPullOperationsRequest": ".list_pull_operations", + "ListPullOperationsRequestTypedDict": ".list_pull_operations", + "ListPushOperationsRequest": ".list_push_operations", + "ListPushOperationsRequestTypedDict": ".list_push_operations", + "ListSuppliersRequest": ".list_suppliers", + "ListSuppliersRequestTypedDict": ".list_suppliers", + "ListSyncTransactionsRequest": ".list_sync_transactions", + "ListSyncTransactionsRequestTypedDict": ".list_sync_transactions", + "ListSyncsRequest": ".list_syncs", + "ListSyncsRequestTypedDict": ".list_syncs", + "RefreshAllDataTypesRequest": ".refresh_all_data_types", + "RefreshAllDataTypesRequestTypedDict": ".refresh_all_data_types", + "RefreshDataTypeRequest": ".refresh_data_type", + "RefreshDataTypeRequestTypedDict": ".refresh_data_type", + "ReplaceCompanyRequest": ".replace_company", + "ReplaceCompanyRequestTypedDict": ".replace_company", + "SetCompanyConfigurationRequest": ".set_company_configuration", + "SetCompanyConfigurationRequestTypedDict": ".set_company_configuration", + "UnlinkConnectionRequest": ".unlink_connection", + "UnlinkConnectionRequestTypedDict": ".unlink_connection", + "UnlinkConnectionUpdateConnection": ".unlink_connection", + "UnlinkConnectionUpdateConnectionTypedDict": ".unlink_connection", + "UpdateCompanyRequest": ".update_company", + "UpdateCompanyRequestTypedDict": ".update_company", + "UpdateCustomerRequest": ".update_customer", + "UpdateCustomerRequestTypedDict": ".update_customer", + "UpdateExpenseTransactionRequest": ".update_expense_transaction", + "UpdateExpenseTransactionRequestTypedDict": ".update_expense_transaction", + "UpdateReimbursableExpenseTransactionRequest": ".update_reimbursable_expense_transaction", + "UpdateReimbursableExpenseTransactionRequestTypedDict": ".update_reimbursable_expense_transaction", + "UpdateSupplierRequest": ".update_supplier", + "UpdateSupplierRequestTypedDict": ".update_supplier", + "UploadExpenseAttachmentRequest": ".upload_expense_attachment", + "UploadExpenseAttachmentRequestTypedDict": ".upload_expense_attachment", +} + + +def __getattr__(attr_name: str) -> Any: + return lazy_getattr( + attr_name, package=__package__, dynamic_imports=_dynamic_imports + ) + + +def __dir__(): + return lazy_dir(dynamic_imports=_dynamic_imports) diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/operations/create_account.py b/sync-for-expenses/src/codat_sync_for_expenses/models/operations/create_account.py index 7d6b23f89..b014abf73 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/operations/create_account.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/operations/create_account.py @@ -4,7 +4,7 @@ from codat_sync_for_expenses.models.shared import ( accountprototype as shared_accountprototype, ) -from codat_sync_for_expenses.types import BaseModel +from codat_sync_for_expenses.types import BaseModel, UNSET_SENTINEL from codat_sync_for_expenses.utils import ( FieldMetadata, PathParamMetadata, @@ -12,6 +12,7 @@ RequestMetadata, ) import pydantic +from pydantic import model_serializer from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict @@ -61,3 +62,21 @@ class CreateAccountRequest(BaseModel): FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), ] = None r"""Time limit for the push operation to complete before it is timed out.""" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set( + ["accountPrototype", "allowSyncOnPushComplete", "timeoutInMinutes"] + ) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/operations/create_adjustment_transaction.py b/sync-for-expenses/src/codat_sync_for_expenses/models/operations/create_adjustment_transaction.py index 167cb1d98..5d8acceb7 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/operations/create_adjustment_transaction.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/operations/create_adjustment_transaction.py @@ -4,13 +4,14 @@ from codat_sync_for_expenses.models.shared import ( adjustmenttransactionrequest as shared_adjustmenttransactionrequest, ) -from codat_sync_for_expenses.types import BaseModel +from codat_sync_for_expenses.types import BaseModel, UNSET_SENTINEL from codat_sync_for_expenses.utils import ( FieldMetadata, PathParamMetadata, RequestMetadata, ) import pydantic +from pydantic import model_serializer from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict @@ -37,3 +38,19 @@ class CreateAdjustmentTransactionRequest(BaseModel): ], FieldMetadata(request=RequestMetadata(media_type="application/json")), ] = None + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["RequestBody"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/operations/create_bank_account.py b/sync-for-expenses/src/codat_sync_for_expenses/models/operations/create_bank_account.py index 8a8b32979..47d09c1eb 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/operations/create_bank_account.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/operations/create_bank_account.py @@ -69,30 +69,27 @@ class CreateBankAccountRequest(BaseModel): @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = ["BankAccount", "allowSyncOnPushComplete", "timeoutInMinutes"] - nullable_fields = ["BankAccount"] - null_default_fields = [] - + optional_fields = set( + ["BankAccount", "allowSyncOnPushComplete", "timeoutInMinutes"] + ) + nullable_fields = set(["BankAccount"]) serialized = handler(self) - m = {} - for n, f in self.model_fields.items(): + for n, f in type(self).model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member - - if val is not None and val != UNSET_SENTINEL: - m[k] = val - elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) - ): - m[k] = val + is_nullable_and_explicitly_set = ( + k in nullable_fields + and (self.__pydantic_fields_set__.intersection({n})) # pylint: disable=no-member + ) + + if val != UNSET_SENTINEL: + if ( + val is not None + or k not in optional_fields + or is_nullable_and_explicitly_set + ): + m[k] = val return m diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/operations/create_connection.py b/sync-for-expenses/src/codat_sync_for_expenses/models/operations/create_connection.py index b15f053fe..fe32944cd 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/operations/create_connection.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/operations/create_connection.py @@ -1,13 +1,14 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from codat_sync_for_expenses.types import BaseModel +from codat_sync_for_expenses.types import BaseModel, UNSET_SENTINEL from codat_sync_for_expenses.utils import ( FieldMetadata, PathParamMetadata, RequestMetadata, ) import pydantic +from pydantic import model_serializer from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict @@ -21,6 +22,22 @@ class CreateConnectionRequestBody(BaseModel): platform_key: Annotated[Optional[str], pydantic.Field(alias="platformKey")] = None r"""A unique 4-letter key to represent a platform in each integration. View [accounting](https://docs.codat.io/integrations/accounting/overview#platform-keys), [banking](https://docs.codat.io/integrations/banking/overview#platform-keys), and [commerce](https://docs.codat.io/integrations/commerce/overview#platform-keys) platform keys.""" + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["platformKey"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m + class CreateConnectionRequestTypedDict(TypedDict): company_id: str @@ -40,3 +57,25 @@ class CreateConnectionRequest(BaseModel): Optional[CreateConnectionRequestBody], FieldMetadata(request=RequestMetadata(media_type="application/json")), ] = None + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["RequestBody"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m + + +try: + CreateConnectionRequestBody.model_rebuild() +except NameError: + pass diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/operations/create_customer.py b/sync-for-expenses/src/codat_sync_for_expenses/models/operations/create_customer.py index efee60822..86b847773 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/operations/create_customer.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/operations/create_customer.py @@ -69,30 +69,27 @@ class CreateCustomerRequest(BaseModel): @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = ["Customer", "allowSyncOnPushComplete", "timeoutInMinutes"] - nullable_fields = ["Customer"] - null_default_fields = [] - + optional_fields = set( + ["Customer", "allowSyncOnPushComplete", "timeoutInMinutes"] + ) + nullable_fields = set(["Customer"]) serialized = handler(self) - m = {} - for n, f in self.model_fields.items(): + for n, f in type(self).model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member - - if val is not None and val != UNSET_SENTINEL: - m[k] = val - elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) - ): - m[k] = val + is_nullable_and_explicitly_set = ( + k in nullable_fields + and (self.__pydantic_fields_set__.intersection({n})) # pylint: disable=no-member + ) + + if val != UNSET_SENTINEL: + if ( + val is not None + or k not in optional_fields + or is_nullable_and_explicitly_set + ): + m[k] = val return m diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/operations/create_expense_transaction.py b/sync-for-expenses/src/codat_sync_for_expenses/models/operations/create_expense_transaction.py index c119c872b..08ed16580 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/operations/create_expense_transaction.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/operations/create_expense_transaction.py @@ -4,13 +4,14 @@ from codat_sync_for_expenses.models.shared import ( expensetransaction as shared_expensetransaction, ) -from codat_sync_for_expenses.types import BaseModel +from codat_sync_for_expenses.types import BaseModel, UNSET_SENTINEL from codat_sync_for_expenses.utils import ( FieldMetadata, PathParamMetadata, RequestMetadata, ) import pydantic +from pydantic import model_serializer from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict @@ -35,3 +36,19 @@ class CreateExpenseTransactionRequest(BaseModel): Optional[List[shared_expensetransaction.ExpenseTransaction]], FieldMetadata(request=RequestMetadata(media_type="application/json")), ] = None + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["RequestBody"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/operations/create_reimbursable_expense_transaction.py b/sync-for-expenses/src/codat_sync_for_expenses/models/operations/create_reimbursable_expense_transaction.py index 3112fe936..303ecc019 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/operations/create_reimbursable_expense_transaction.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/operations/create_reimbursable_expense_transaction.py @@ -4,13 +4,14 @@ from codat_sync_for_expenses.models.shared import ( reimbursableexpensetransaction as shared_reimbursableexpensetransaction, ) -from codat_sync_for_expenses.types import BaseModel +from codat_sync_for_expenses.types import BaseModel, UNSET_SENTINEL from codat_sync_for_expenses.utils import ( FieldMetadata, PathParamMetadata, RequestMetadata, ) import pydantic +from pydantic import model_serializer from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict @@ -39,3 +40,19 @@ class CreateReimbursableExpenseTransactionRequest(BaseModel): ], FieldMetadata(request=RequestMetadata(media_type="application/json")), ] = None + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["RequestBody"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/operations/create_supplier.py b/sync-for-expenses/src/codat_sync_for_expenses/models/operations/create_supplier.py index 8828149a4..6eedda1b6 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/operations/create_supplier.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/operations/create_supplier.py @@ -69,30 +69,27 @@ class CreateSupplierRequest(BaseModel): @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = ["Supplier", "allowSyncOnPushComplete", "timeoutInMinutes"] - nullable_fields = ["Supplier"] - null_default_fields = [] - + optional_fields = set( + ["Supplier", "allowSyncOnPushComplete", "timeoutInMinutes"] + ) + nullable_fields = set(["Supplier"]) serialized = handler(self) - m = {} - for n, f in self.model_fields.items(): + for n, f in type(self).model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member - - if val is not None and val != UNSET_SENTINEL: - m[k] = val - elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) - ): - m[k] = val + is_nullable_and_explicitly_set = ( + k in nullable_fields + and (self.__pydantic_fields_set__.intersection({n})) # pylint: disable=no-member + ) + + if val != UNSET_SENTINEL: + if ( + val is not None + or k not in optional_fields + or is_nullable_and_explicitly_set + ): + m[k] = val return m diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/operations/create_transfer_transaction.py b/sync-for-expenses/src/codat_sync_for_expenses/models/operations/create_transfer_transaction.py index a4bb788dc..89caf7069 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/operations/create_transfer_transaction.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/operations/create_transfer_transaction.py @@ -4,13 +4,14 @@ from codat_sync_for_expenses.models.shared import ( transfertransactionrequest as shared_transfertransactionrequest, ) -from codat_sync_for_expenses.types import BaseModel +from codat_sync_for_expenses.types import BaseModel, UNSET_SENTINEL from codat_sync_for_expenses.utils import ( FieldMetadata, PathParamMetadata, RequestMetadata, ) import pydantic +from pydantic import model_serializer from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict @@ -44,3 +45,19 @@ class CreateTransferTransactionRequest(BaseModel): Optional[shared_transfertransactionrequest.TransferTransactionRequest], FieldMetadata(request=RequestMetadata(media_type="application/json")), ] = None + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["TransferTransactionRequest"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/operations/get_data_status.py b/sync-for-expenses/src/codat_sync_for_expenses/models/operations/get_data_status.py index d51590854..a1f7820c4 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/operations/get_data_status.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/operations/get_data_status.py @@ -2,9 +2,10 @@ from __future__ import annotations from codat_sync_for_expenses.models.shared import datastatus as shared_datastatus -from codat_sync_for_expenses.types import BaseModel +from codat_sync_for_expenses.types import BaseModel, UNSET_SENTINEL from codat_sync_for_expenses.utils import FieldMetadata, PathParamMetadata import pydantic +from pydantic import model_serializer from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict @@ -329,3 +330,71 @@ class GetDataStatusDataStatuses(BaseModel): transfers: Optional[shared_datastatus.DataStatus] = None r"""Describes the state of data in the Codat cache for a company and data type""" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set( + [ + "accountTransactions", + "balanceSheet", + "bankAccounts", + "bankTransactions", + "banking-accountBalances", + "banking-accounts", + "banking-transactionCategories", + "banking-transactions", + "billCreditNotes", + "billPayments", + "bills", + "cashFlowStatement", + "chartOfAccounts", + "commerce-companyInfo", + "commerce-customers", + "commerce-disputes", + "commerce-locations", + "commerce-orders", + "commerce-paymentMethods", + "commerce-payments", + "commerce-productCategories", + "commerce-products", + "commerce-taxComponents", + "commerce-transactions", + "company", + "creditNotes", + "customers", + "directCosts", + "directIncomes", + "invoices", + "itemReceipts", + "items", + "journalEntries", + "journals", + "paymentMethods", + "payments", + "profitAndLoss", + "purchaseOrders", + "salesOrders", + "suppliers", + "taxRates", + "trackingCategories", + "transfers", + ] + ) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m + + +try: + GetDataStatusDataStatuses.model_rebuild() +except NameError: + pass diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/operations/list_companies.py b/sync-for-expenses/src/codat_sync_for_expenses/models/operations/list_companies.py index 4c33b0559..c6c42c9e4 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/operations/list_companies.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/operations/list_companies.py @@ -1,9 +1,10 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from codat_sync_for_expenses.types import BaseModel +from codat_sync_for_expenses.types import BaseModel, UNSET_SENTINEL from codat_sync_for_expenses.utils import FieldMetadata, QueryParamMetadata import pydantic +from pydantic import model_serializer from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict @@ -17,6 +18,8 @@ class ListCompaniesRequestTypedDict(TypedDict): r"""Number of records to return in a page. [Read more](https://docs.codat.io/using-the-api/paging).""" query: NotRequired[str] r"""Codat query string. [Read more](https://docs.codat.io/using-the-api/querying).""" + tags: NotRequired[str] + r"""Filter companies by tags using the \"equals\" (=), \"not equals\" (!=), and \"contains\" (~) operators with [Codat’s query language](https://docs.codat.io/using-the-api/querying).""" class ListCompaniesRequest(BaseModel): @@ -45,3 +48,25 @@ class ListCompaniesRequest(BaseModel): FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), ] = None r"""Codat query string. [Read more](https://docs.codat.io/using-the-api/querying).""" + + tags: Annotated[ + Optional[str], + FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), + ] = None + r"""Filter companies by tags using the \"equals\" (=), \"not equals\" (!=), and \"contains\" (~) operators with [Codat’s query language](https://docs.codat.io/using-the-api/querying).""" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["orderBy", "page", "pageSize", "query", "tags"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/operations/list_connections.py b/sync-for-expenses/src/codat_sync_for_expenses/models/operations/list_connections.py index 42e5a863d..069de1d1c 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/operations/list_connections.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/operations/list_connections.py @@ -1,13 +1,14 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from codat_sync_for_expenses.types import BaseModel +from codat_sync_for_expenses.types import BaseModel, UNSET_SENTINEL from codat_sync_for_expenses.utils import ( FieldMetadata, PathParamMetadata, QueryParamMetadata, ) import pydantic +from pydantic import model_serializer from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict @@ -58,3 +59,19 @@ class ListConnectionsRequest(BaseModel): FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), ] = None r"""Codat query string. [Read more](https://docs.codat.io/using-the-api/querying).""" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["orderBy", "page", "pageSize", "query"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/operations/list_customers.py b/sync-for-expenses/src/codat_sync_for_expenses/models/operations/list_customers.py index a711c8be8..098844891 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/operations/list_customers.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/operations/list_customers.py @@ -1,13 +1,14 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from codat_sync_for_expenses.types import BaseModel +from codat_sync_for_expenses.types import BaseModel, UNSET_SENTINEL from codat_sync_for_expenses.utils import ( FieldMetadata, PathParamMetadata, QueryParamMetadata, ) import pydantic +from pydantic import model_serializer from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict @@ -58,3 +59,19 @@ class ListCustomersRequest(BaseModel): FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), ] = None r"""Codat query string. [Read more](https://docs.codat.io/using-the-api/querying).""" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["orderBy", "page", "pageSize", "query"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/operations/list_pull_operations.py b/sync-for-expenses/src/codat_sync_for_expenses/models/operations/list_pull_operations.py index 8c3fd14e0..a94ace910 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/operations/list_pull_operations.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/operations/list_pull_operations.py @@ -1,13 +1,14 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from codat_sync_for_expenses.types import BaseModel +from codat_sync_for_expenses.types import BaseModel, UNSET_SENTINEL from codat_sync_for_expenses.utils import ( FieldMetadata, PathParamMetadata, QueryParamMetadata, ) import pydantic +from pydantic import model_serializer from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict @@ -58,3 +59,19 @@ class ListPullOperationsRequest(BaseModel): FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), ] = None r"""Codat query string. [Read more](https://docs.codat.io/using-the-api/querying).""" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["orderBy", "page", "pageSize", "query"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/operations/list_push_operations.py b/sync-for-expenses/src/codat_sync_for_expenses/models/operations/list_push_operations.py index d776cb34a..a6220ff53 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/operations/list_push_operations.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/operations/list_push_operations.py @@ -1,13 +1,14 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from codat_sync_for_expenses.types import BaseModel +from codat_sync_for_expenses.types import BaseModel, UNSET_SENTINEL from codat_sync_for_expenses.utils import ( FieldMetadata, PathParamMetadata, QueryParamMetadata, ) import pydantic +from pydantic import model_serializer from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict @@ -58,3 +59,19 @@ class ListPushOperationsRequest(BaseModel): FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), ] = None r"""Codat query string. [Read more](https://docs.codat.io/using-the-api/querying).""" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["orderBy", "page", "pageSize", "query"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/operations/list_suppliers.py b/sync-for-expenses/src/codat_sync_for_expenses/models/operations/list_suppliers.py index ee66d0ad2..cb3d6a917 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/operations/list_suppliers.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/operations/list_suppliers.py @@ -1,13 +1,14 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from codat_sync_for_expenses.types import BaseModel +from codat_sync_for_expenses.types import BaseModel, UNSET_SENTINEL from codat_sync_for_expenses.utils import ( FieldMetadata, PathParamMetadata, QueryParamMetadata, ) import pydantic +from pydantic import model_serializer from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict @@ -58,3 +59,19 @@ class ListSuppliersRequest(BaseModel): FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), ] = None r"""Codat query string. [Read more](https://docs.codat.io/using-the-api/querying).""" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["orderBy", "page", "pageSize", "query"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/operations/list_sync_transactions.py b/sync-for-expenses/src/codat_sync_for_expenses/models/operations/list_sync_transactions.py index 855608bec..9bb0e29c5 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/operations/list_sync_transactions.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/operations/list_sync_transactions.py @@ -1,13 +1,14 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from codat_sync_for_expenses.types import BaseModel +from codat_sync_for_expenses.types import BaseModel, UNSET_SENTINEL from codat_sync_for_expenses.utils import ( FieldMetadata, PathParamMetadata, QueryParamMetadata, ) import pydantic +from pydantic import model_serializer from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict @@ -50,3 +51,19 @@ class ListSyncTransactionsRequest(BaseModel): FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), ] = 100 r"""Number of records to return in a page. [Read more](https://docs.codat.io/using-the-api/paging).""" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["page", "pageSize"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/operations/refresh_data_type.py b/sync-for-expenses/src/codat_sync_for_expenses/models/operations/refresh_data_type.py index 5b5316c6b..c41c5f585 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/operations/refresh_data_type.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/operations/refresh_data_type.py @@ -4,13 +4,14 @@ from codat_sync_for_expenses.models.shared import ( schema_datatype as shared_schema_datatype, ) -from codat_sync_for_expenses.types import BaseModel +from codat_sync_for_expenses.types import BaseModel, UNSET_SENTINEL from codat_sync_for_expenses.utils import ( FieldMetadata, PathParamMetadata, QueryParamMetadata, ) import pydantic +from pydantic import model_serializer from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict @@ -45,3 +46,19 @@ class RefreshDataTypeRequest(BaseModel): FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), ] = None r"""Optionally, provide a data connection id to only queue pull operations on that connection.""" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["connectionId"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/operations/replace_company.py b/sync-for-expenses/src/codat_sync_for_expenses/models/operations/replace_company.py new file mode 100644 index 000000000..3d73fa639 --- /dev/null +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/operations/replace_company.py @@ -0,0 +1,54 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from codat_sync_for_expenses.models.shared import ( + companyrequestbody as shared_companyrequestbody, +) +from codat_sync_for_expenses.types import BaseModel, UNSET_SENTINEL +from codat_sync_for_expenses.utils import ( + FieldMetadata, + PathParamMetadata, + RequestMetadata, +) +import pydantic +from pydantic import model_serializer +from typing import Optional +from typing_extensions import Annotated, NotRequired, TypedDict + + +class ReplaceCompanyRequestTypedDict(TypedDict): + company_id: str + r"""Unique identifier for a company.""" + company_request_body: NotRequired[ + shared_companyrequestbody.CompanyRequestBodyTypedDict + ] + + +class ReplaceCompanyRequest(BaseModel): + company_id: Annotated[ + str, + pydantic.Field(alias="companyId"), + FieldMetadata(path=PathParamMetadata(style="simple", explode=False)), + ] + r"""Unique identifier for a company.""" + + company_request_body: Annotated[ + Optional[shared_companyrequestbody.CompanyRequestBody], + FieldMetadata(request=RequestMetadata(media_type="application/json")), + ] = None + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["CompanyRequestBody"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/operations/set_company_configuration.py b/sync-for-expenses/src/codat_sync_for_expenses/models/operations/set_company_configuration.py index 1ee51f1c9..fef9f0bd8 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/operations/set_company_configuration.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/operations/set_company_configuration.py @@ -4,13 +4,14 @@ from codat_sync_for_expenses.models.shared import ( companyconfiguration as shared_companyconfiguration, ) -from codat_sync_for_expenses.types import BaseModel +from codat_sync_for_expenses.types import BaseModel, UNSET_SENTINEL from codat_sync_for_expenses.utils import ( FieldMetadata, PathParamMetadata, RequestMetadata, ) import pydantic +from pydantic import model_serializer from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict @@ -35,3 +36,19 @@ class SetCompanyConfigurationRequest(BaseModel): Optional[shared_companyconfiguration.CompanyConfiguration], FieldMetadata(request=RequestMetadata(media_type="application/json")), ] = None + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["CompanyConfiguration"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/operations/unlink_connection.py b/sync-for-expenses/src/codat_sync_for_expenses/models/operations/unlink_connection.py index 8e7b2d22c..eb4e88727 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/operations/unlink_connection.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/operations/unlink_connection.py @@ -4,13 +4,14 @@ from codat_sync_for_expenses.models.shared import ( dataconnectionstatus as shared_dataconnectionstatus, ) -from codat_sync_for_expenses.types import BaseModel +from codat_sync_for_expenses.types import BaseModel, UNSET_SENTINEL from codat_sync_for_expenses.utils import ( FieldMetadata, PathParamMetadata, RequestMetadata, ) import pydantic +from pydantic import model_serializer from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict @@ -24,6 +25,22 @@ class UnlinkConnectionUpdateConnection(BaseModel): status: Optional[shared_dataconnectionstatus.DataConnectionStatus] = None r"""The current authorization status of the data connection.""" + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["status"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m + class UnlinkConnectionRequestTypedDict(TypedDict): company_id: str @@ -52,3 +69,19 @@ class UnlinkConnectionRequest(BaseModel): Optional[UnlinkConnectionUpdateConnection], FieldMetadata(request=RequestMetadata(media_type="application/json")), ] = None + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["RequestBody"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/operations/update_company.py b/sync-for-expenses/src/codat_sync_for_expenses/models/operations/update_company.py index 0435cee4a..a37d229d3 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/operations/update_company.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/operations/update_company.py @@ -2,15 +2,16 @@ from __future__ import annotations from codat_sync_for_expenses.models.shared import ( - companyrequestbody as shared_companyrequestbody, + companyupdaterequest as shared_companyupdaterequest, ) -from codat_sync_for_expenses.types import BaseModel +from codat_sync_for_expenses.types import BaseModel, UNSET_SENTINEL from codat_sync_for_expenses.utils import ( FieldMetadata, PathParamMetadata, RequestMetadata, ) import pydantic +from pydantic import model_serializer from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict @@ -18,8 +19,8 @@ class UpdateCompanyRequestTypedDict(TypedDict): company_id: str r"""Unique identifier for a company.""" - company_request_body: NotRequired[ - shared_companyrequestbody.CompanyRequestBodyTypedDict + company_update_request: NotRequired[ + shared_companyupdaterequest.CompanyUpdateRequestTypedDict ] @@ -31,7 +32,23 @@ class UpdateCompanyRequest(BaseModel): ] r"""Unique identifier for a company.""" - company_request_body: Annotated[ - Optional[shared_companyrequestbody.CompanyRequestBody], + company_update_request: Annotated[ + Optional[shared_companyupdaterequest.CompanyUpdateRequest], FieldMetadata(request=RequestMetadata(media_type="application/json")), ] = None + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["CompanyUpdateRequest"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/operations/update_customer.py b/sync-for-expenses/src/codat_sync_for_expenses/models/operations/update_customer.py index 008da7cca..ab7e879f4 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/operations/update_customer.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/operations/update_customer.py @@ -87,35 +87,27 @@ class UpdateCustomerRequest(BaseModel): @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "Customer", - "allowSyncOnPushComplete", - "forceUpdate", - "timeoutInMinutes", - ] - nullable_fields = ["Customer"] - null_default_fields = [] - + optional_fields = set( + ["Customer", "allowSyncOnPushComplete", "forceUpdate", "timeoutInMinutes"] + ) + nullable_fields = set(["Customer"]) serialized = handler(self) - m = {} - for n, f in self.model_fields.items(): + for n, f in type(self).model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member - - if val is not None and val != UNSET_SENTINEL: - m[k] = val - elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) - ): - m[k] = val + is_nullable_and_explicitly_set = ( + k in nullable_fields + and (self.__pydantic_fields_set__.intersection({n})) # pylint: disable=no-member + ) + + if val != UNSET_SENTINEL: + if ( + val is not None + or k not in optional_fields + or is_nullable_and_explicitly_set + ): + m[k] = val return m diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/operations/update_expense_transaction.py b/sync-for-expenses/src/codat_sync_for_expenses/models/operations/update_expense_transaction.py index fa64837be..11c3b42f3 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/operations/update_expense_transaction.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/operations/update_expense_transaction.py @@ -4,13 +4,14 @@ from codat_sync_for_expenses.models.shared import ( updateexpenserequest as shared_updateexpenserequest, ) -from codat_sync_for_expenses.types import BaseModel +from codat_sync_for_expenses.types import BaseModel, UNSET_SENTINEL from codat_sync_for_expenses.utils import ( FieldMetadata, PathParamMetadata, RequestMetadata, ) import pydantic +from pydantic import model_serializer from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict @@ -44,3 +45,19 @@ class UpdateExpenseTransactionRequest(BaseModel): Optional[shared_updateexpenserequest.UpdateExpenseRequest], FieldMetadata(request=RequestMetadata(media_type="application/json")), ] = None + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["UpdateExpenseRequest"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/operations/update_reimbursable_expense_transaction.py b/sync-for-expenses/src/codat_sync_for_expenses/models/operations/update_reimbursable_expense_transaction.py index 728c92bd7..fc6a6fc88 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/operations/update_reimbursable_expense_transaction.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/operations/update_reimbursable_expense_transaction.py @@ -4,13 +4,14 @@ from codat_sync_for_expenses.models.shared import ( updatereimbursableexpensetransactionrequest as shared_updatereimbursableexpensetransactionrequest, ) -from codat_sync_for_expenses.types import BaseModel +from codat_sync_for_expenses.types import BaseModel, UNSET_SENTINEL from codat_sync_for_expenses.utils import ( FieldMetadata, PathParamMetadata, RequestMetadata, ) import pydantic +from pydantic import model_serializer from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict @@ -46,3 +47,19 @@ class UpdateReimbursableExpenseTransactionRequest(BaseModel): ], FieldMetadata(request=RequestMetadata(media_type="application/json")), ] = None + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["UpdateReimbursableExpenseTransactionRequest"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/operations/update_supplier.py b/sync-for-expenses/src/codat_sync_for_expenses/models/operations/update_supplier.py index d62a906d5..36016092e 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/operations/update_supplier.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/operations/update_supplier.py @@ -87,35 +87,27 @@ class UpdateSupplierRequest(BaseModel): @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "Supplier", - "allowSyncOnPushComplete", - "forceUpdate", - "timeoutInMinutes", - ] - nullable_fields = ["Supplier"] - null_default_fields = [] - + optional_fields = set( + ["Supplier", "allowSyncOnPushComplete", "forceUpdate", "timeoutInMinutes"] + ) + nullable_fields = set(["Supplier"]) serialized = handler(self) - m = {} - for n, f in self.model_fields.items(): + for n, f in type(self).model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member - - if val is not None and val != UNSET_SENTINEL: - m[k] = val - elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) - ): - m[k] = val + is_nullable_and_explicitly_set = ( + k in nullable_fields + and (self.__pydantic_fields_set__.intersection({n})) # pylint: disable=no-member + ) + + if val != UNSET_SENTINEL: + if ( + val is not None + or k not in optional_fields + or is_nullable_and_explicitly_set + ): + m[k] = val return m diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/operations/upload_expense_attachment.py b/sync-for-expenses/src/codat_sync_for_expenses/models/operations/upload_expense_attachment.py index 8ed34f5a4..9ed3d2684 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/operations/upload_expense_attachment.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/operations/upload_expense_attachment.py @@ -4,13 +4,14 @@ from codat_sync_for_expenses.models.shared import ( attachmentupload as shared_attachmentupload, ) -from codat_sync_for_expenses.types import BaseModel +from codat_sync_for_expenses.types import BaseModel, UNSET_SENTINEL from codat_sync_for_expenses.utils import ( FieldMetadata, PathParamMetadata, RequestMetadata, ) import pydantic +from pydantic import model_serializer from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict @@ -51,3 +52,19 @@ class UploadExpenseAttachmentRequest(BaseModel): Optional[shared_attachmentupload.AttachmentUpload], FieldMetadata(request=RequestMetadata(media_type="multipart/form-data")), ] = None + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["AttachmentUpload"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/__init__.py b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/__init__.py index 3c6f7fe7c..2585206d7 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/__init__.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/__init__.py @@ -1,263 +1,266 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -from .accountingaddresstype import AccountingAddressType -from .accountmappinginfo import ( - AccountMappingInfo, - AccountMappingInfoAccountType, - AccountMappingInfoTypedDict, -) -from .accountprototype import ( - AccountPrototype, - AccountPrototypeTypedDict, - ValidDataTypeLinks, - ValidDataTypeLinksTypedDict, -) -from .accountstatus import AccountStatus -from .accounttype import AccountType -from .adjustmenttransactionline import ( - AdjustmentTransactionLine, - AdjustmentTransactionLineTypedDict, -) -from .adjustmenttransactionrequest import ( - AdjustmentTransactionRequest, - AdjustmentTransactionRequestTypedDict, -) -from .adjustmenttransactionresponse import ( - AdjustmentTransactionResponse, - AdjustmentTransactionResponseTypedDict, -) -from .apaccountref import ApAccountRef, ApAccountRefTypedDict -from .attachment import Attachment, AttachmentTypedDict -from .attachmentupload import AttachmentUpload, AttachmentUploadTypedDict -from .bankaccount import BankAccount, BankAccountType, BankAccountTypedDict -from .bankaccountdetails import BankAccountDetails, BankAccountDetailsTypedDict -from .bankaccountstatus import BankAccountStatus -from .clientratelimitreachedwebhook import ( - ClientRateLimitReachedWebhook, - ClientRateLimitReachedWebhookTypedDict, -) -from .clientratelimitreachedwebhookdata import ( - ClientRateLimitReachedWebhookData, - ClientRateLimitReachedWebhookDataTypedDict, -) -from .clientratelimitresetwebhook import ( - ClientRateLimitResetWebhook, - ClientRateLimitResetWebhookTypedDict, -) -from .clientratelimitresetwebhookdata import ( - ClientRateLimitResetWebhookData, - ClientRateLimitResetWebhookDataTypedDict, -) -from .clientratelimitwebhook import ( - ClientRateLimitWebhook, - ClientRateLimitWebhookTypedDict, -) -from .clientratelimitwebhookpayload import ( - ClientRateLimitWebhookPayload, - ClientRateLimitWebhookPayloadTypedDict, -) -from .codatfile import CodatFile, CodatFileTypedDict -from .companies import Companies, CompaniesTypedDict -from .company import Company, CompanyTypedDict -from .companyconfiguration import CompanyConfiguration, CompanyConfigurationTypedDict -from .companyinformation import ( - AccountingAddress, - AccountingAddressTypedDict, - CompanyInformation, - CompanyInformationType, - CompanyInformationTypedDict, - Phone, - PhoneTypedDict, - Weblink, - WeblinkTypedDict, -) -from .companyreference import ( - CompanyReference, - CompanyReferenceLinks, - CompanyReferenceLinksTypedDict, - CompanyReferenceTypedDict, -) -from .companyrequestbody import CompanyRequestBody, CompanyRequestBodyTypedDict -from .companysyncstatus import CompanySyncStatus, CompanySyncStatusTypedDict -from .connection import Connection, ConnectionTypedDict, SourceType -from .connections import Connections, ConnectionsTypedDict -from .contact import Contact, ContactTypedDict -from .createaccountresponse import ( - AccountingAccount, - AccountingAccountTypedDict, - CreateAccountResponse, - CreateAccountResponseMetadata, - CreateAccountResponseMetadataTypedDict, - CreateAccountResponseTypedDict, - CreateAccountResponseValidDataTypeLinks, - CreateAccountResponseValidDataTypeLinksTypedDict, -) -from .createbankaccountresponse import ( - AccountingBankAccount, - AccountingBankAccountTypedDict, - CreateBankAccountResponse, - CreateBankAccountResponseBankAccountType, - CreateBankAccountResponseTypedDict, -) -from .createcustomerresponse import ( - AccountingCustomer, - AccountingCustomerTypedDict, - CreateCustomerResponse, - CreateCustomerResponseTypedDict, -) -from .createexpenseresponse import CreateExpenseResponse, CreateExpenseResponseTypedDict -from .createreimbursableexpenseresponse import ( - CreateReimbursableExpenseResponse, - CreateReimbursableExpenseResponseTypedDict, -) -from .createsupplierresponse import ( - AccountingSupplier, - AccountingSupplierTypedDict, - CreateSupplierResponse, - CreateSupplierResponseTypedDict, -) -from .customer import Customer, CustomerTypedDict -from .customerdetails import CustomerDetails, CustomerDetailsTypedDict -from .customers import Customers, CustomersTypedDict -from .customerstatus import CustomerStatus -from .dataconnectionerror import ( - DataConnectionError, - DataConnectionErrorTypedDict, - ErrorStatus, -) -from .dataconnectionstatus import DataConnectionStatus -from .datastatus import DataStatus, DataStatusTypedDict, DataTypes -from .datatype import DataType -from .errorvalidation import ErrorValidation, ErrorValidationTypedDict -from .errorvalidationitem import ErrorValidationItem, ErrorValidationItemTypedDict -from .expensecontactref import ExpenseContactRef, ExpenseContactRefTypedDict, Type -from .expensessyncwebhook import ExpensesSyncWebhook, ExpensesSyncWebhookTypedDict -from .expensessyncwebhookpayload import ( - ExpensesSyncWebhookPayload, - ExpensesSyncWebhookPayloadTypedDict, -) -from .expensetransaction import ( - BankAccountReference, - BankAccountReferenceTypedDict, - ExpenseTransaction, - ExpenseTransactionType, - ExpenseTransactionTypedDict, -) -from .expensetransactionline import ( - ExpenseTransactionLine, - ExpenseTransactionLineTypedDict, -) -from .halref import HalRef, HalRefTypedDict -from .integrationtype import IntegrationType -from .invoiceto import InvoiceTo, InvoiceToType, InvoiceToTypedDict -from .itemref import ItemRef, ItemRefTypedDict -from .items import Items, ItemsTypedDict -from .links import Links, LinksTypedDict -from .mappingoptions import MappingOptions, MappingOptionsTypedDict -from .metadata import Metadata, MetadataTypedDict -from .phonenumber_items import PhoneNumberItems, PhoneNumberItemsTypedDict -from .phonenumbertype import PhoneNumberType -from .pulloperation import DatasetStatus, PullOperation, PullOperationTypedDict -from .pulloperations import PullOperations, PullOperationsTypedDict -from .pushchangetype import PushChangeType -from .pushfieldvalidation import PushFieldValidation, PushFieldValidationTypedDict -from .pushoperation import PushOperation, PushOperationTypedDict -from .pushoperationchange import PushOperationChange, PushOperationChangeTypedDict -from .pushoperationref import PushOperationRef, PushOperationRefTypedDict -from .pushoperations import PushOperations, PushOperationsTypedDict -from .pushoperationstatus import PushOperationStatus -from .pushoption import PushOption, PushOptionTypedDict -from .pushoptionchoice import PushOptionChoice, PushOptionChoiceTypedDict -from .pushoptionproperty import PushOptionProperty, PushOptionPropertyTypedDict -from .pushoptiontype import PushOptionType -from .pushvalidationinfo import PushValidationInfo, PushValidationInfoTypedDict -from .recordref import RecordRef, RecordRefTypedDict -from .reimbursableexpensetransaction import ( - ReimbursableExpenseTransaction, - ReimbursableExpenseTransactionTypedDict, -) -from .reimbursableexpensetransactionline import ( - ReimbursableExpenseTransactionLine, - ReimbursableExpenseTransactionLineTypedDict, -) -from .reimbursementcontactref import ( - ReimbursementContactRef, - ReimbursementContactRefTypedDict, -) -from .schema_datatype import SchemaDataType -from .schema_transaction import SchemaTransaction, SchemaTransactionTypedDict -from .security import Security, SecurityTypedDict -from .status import Status -from .supplementaldata import SupplementalData, SupplementalDataTypedDict -from .supplier import Supplier, SupplierTypedDict -from .supplierdetails import SupplierDetails, SupplierDetailsTypedDict -from .suppliers import Suppliers, SuppliersTypedDict -from .supplierstatus import SupplierStatus -from .synccompletewebhook import SyncCompleteWebhook, SyncCompleteWebhookTypedDict -from .synccompletewebhookdata import ( - SyncCompleteWebhookData, - SyncCompleteWebhookDataTypedDict, -) -from .syncfailedwebhook import SyncFailedWebhook, SyncFailedWebhookTypedDict -from .syncfailedwebhookdata import SyncFailedWebhookData, SyncFailedWebhookDataTypedDict -from .taxratemappinginfo import TaxRateMappingInfo, TaxRateMappingInfoTypedDict -from .trackingcategorymappinginfo import ( - TrackingCategoryMappingInfo, - TrackingCategoryMappingInfoTypedDict, -) -from .trackingref import TrackingRef, TrackingRefDataType, TrackingRefTypedDict -from .trackingrefadjustmenttransaction import ( - TrackingRefAdjustmentTransaction, - TrackingRefAdjustmentTransactionDataType, - TrackingRefAdjustmentTransactionTypedDict, -) -from .transaction import Transaction, TransactionDefinitionsStatus, TransactionTypedDict -from .transactions import Transactions, TransactionsTypedDict -from .transactionstatus import TransactionStatus -from .transfertransactionrequest import ( - AccountReference, - AccountReferenceTypedDict, - From, - FromTypedDict, - To, - ToTypedDict, - TransferTransactionRequest, - TransferTransactionRequestAccountReference, - TransferTransactionRequestAccountReferenceTypedDict, - TransferTransactionRequestTypedDict, -) -from .transfertransactionresponse import ( - TransferTransactionResponse, - TransferTransactionResponseTypedDict, -) -from .updatecustomerresponse import ( - UpdateCustomerResponse, - UpdateCustomerResponseAccountingCustomer, - UpdateCustomerResponseAccountingCustomerTypedDict, - UpdateCustomerResponseTypedDict, -) -from .updateexpenserequest import ( - UpdateExpenseRequest, - UpdateExpenseRequestBankAccountReference, - UpdateExpenseRequestBankAccountReferenceTypedDict, - UpdateExpenseRequestType, - UpdateExpenseRequestTypedDict, -) -from .updateexpenseresponse import UpdateExpenseResponse, UpdateExpenseResponseTypedDict -from .updatereimbursableexpensetransactionrequest import ( - UpdateReimbursableExpenseTransactionRequest, - UpdateReimbursableExpenseTransactionRequestTypedDict, -) -from .updatesupplierresponse import ( - UpdateSupplierResponse, - UpdateSupplierResponseAccountingSupplier, - UpdateSupplierResponseAccountingSupplierTypedDict, - UpdateSupplierResponseTypedDict, -) -from .validation import Validation, ValidationTypedDict -from .validationitem import ValidationItem, ValidationItemTypedDict -from .validfor import ValidFor -from .validtransactiontypes import ValidTransactionTypes +from typing import Any, TYPE_CHECKING + +from codat_sync_for_expenses.utils.dynamic_imports import lazy_getattr, lazy_dir + +if TYPE_CHECKING: + from .accountingaddresstype import AccountingAddressType + from .accountmappinginfo import ( + AccountMappingInfo, + AccountMappingInfoAccountType, + AccountMappingInfoTypedDict, + ) + from .accountprototype import ( + AccountPrototype, + AccountPrototypeTypedDict, + ValidDataTypeLinks, + ValidDataTypeLinksTypedDict, + ) + from .accountstatus import AccountStatus + from .accounttype import AccountType + from .adjustmenttransactionline import ( + AdjustmentTransactionLine, + AdjustmentTransactionLineTypedDict, + ) + from .adjustmenttransactionrequest import ( + AdjustmentTransactionRequest, + AdjustmentTransactionRequestTypedDict, + ) + from .adjustmenttransactionresponse import ( + AdjustmentTransactionResponse, + AdjustmentTransactionResponseTypedDict, + ) + from .apaccountref import ApAccountRef, ApAccountRefTypedDict + from .attachment import Attachment, AttachmentTypedDict + from .attachmentupload import AttachmentUpload, AttachmentUploadTypedDict + from .bankaccount import BankAccount, BankAccountType, BankAccountTypedDict + from .bankaccountdetails import BankAccountDetails, BankAccountDetailsTypedDict + from .bankaccountstatus import BankAccountStatus + from .clientratelimitwebhook import ( + ClientRateLimitWebhook, + ClientRateLimitWebhookTypedDict, + ) + from .clientratelimitwebhookpayload import ( + ClientRateLimitWebhookPayload, + ClientRateLimitWebhookPayloadTypedDict, + ) + from .codatfile import CodatFile, CodatFileTypedDict + from .companies import Companies, CompaniesTypedDict + from .company import Company, CompanyTypedDict + from .companyconfiguration import ( + CompanyConfiguration, + CompanyConfigurationTypedDict, + ) + from .companyinformation import ( + AccountingAddress, + AccountingAddressTypedDict, + CompanyInformation, + CompanyInformationSchemasType, + CompanyInformationType, + CompanyInformationTypedDict, + Phone, + PhoneTypedDict, + Weblink, + WeblinkTypedDict, + ) + from .companyreference import ( + CompanyReference, + CompanyReferenceLinks, + CompanyReferenceLinksTypedDict, + CompanyReferenceTypedDict, + ) + from .companyrequestbody import CompanyRequestBody, CompanyRequestBodyTypedDict + from .companysyncstatus import CompanySyncStatus, CompanySyncStatusTypedDict + from .companyupdaterequest import ( + CompanyUpdateRequest, + CompanyUpdateRequestTypedDict, + ) + from .connection import Connection, ConnectionTypedDict, SourceType + from .connections import Connections, ConnectionsTypedDict + from .contact import Contact, ContactTypedDict + from .createaccountresponse import ( + AccountingAccount, + AccountingAccountTypedDict, + CreateAccountResponse, + CreateAccountResponseMetadata, + CreateAccountResponseMetadataTypedDict, + CreateAccountResponseTypedDict, + CreateAccountResponseValidDataTypeLinks, + CreateAccountResponseValidDataTypeLinksTypedDict, + ) + from .createbankaccountresponse import ( + AccountingBankAccount, + AccountingBankAccountTypedDict, + CreateBankAccountResponse, + CreateBankAccountResponseBankAccountType, + CreateBankAccountResponseTypedDict, + ) + from .createcustomerresponse import ( + AccountingCustomer, + AccountingCustomerTypedDict, + CreateCustomerResponse, + CreateCustomerResponseTypedDict, + ) + from .createexpenseresponse import ( + CreateExpenseResponse, + CreateExpenseResponseTypedDict, + ) + from .createreimbursableexpenseresponse import ( + CreateReimbursableExpenseResponse, + CreateReimbursableExpenseResponseTypedDict, + ) + from .createsupplierresponse import ( + AccountingSupplier, + AccountingSupplierTypedDict, + CreateSupplierResponse, + CreateSupplierResponseTypedDict, + ) + from .customer import Customer, CustomerTypedDict + from .customerdetails import CustomerDetails, CustomerDetailsTypedDict + from .customers import Customers, CustomersTypedDict + from .customerstatus import CustomerStatus + from .dataconnectionerror import ( + DataConnectionError, + DataConnectionErrorTypedDict, + ErrorStatus, + ) + from .dataconnectionstatus import DataConnectionStatus + from .datastatus import DataStatus, DataStatusTypedDict, DataTypes + from .datatype import DataType + from .errorvalidation import ErrorValidation, ErrorValidationTypedDict + from .errorvalidationitem import ErrorValidationItem, ErrorValidationItemTypedDict + from .expensecontactref import ( + ExpenseContactRef, + ExpenseContactRefType, + ExpenseContactRefTypedDict, + ) + from .expensessyncwebhook import ExpensesSyncWebhook, ExpensesSyncWebhookTypedDict + from .expensessyncwebhookpayload import ( + ExpensesSyncWebhookPayload, + ExpensesSyncWebhookPayloadTypedDict, + ) + from .expensetransaction import ( + BankAccountReference, + BankAccountReferenceTypedDict, + ExpenseTransaction, + ExpenseTransactionType, + ExpenseTransactionTypedDict, + ) + from .expensetransactionline import ( + ExpenseTransactionLine, + ExpenseTransactionLineTypedDict, + ) + from .halref import HalRef, HalRefTypedDict + from .integrationtype import IntegrationType + from .invoiceto import InvoiceTo, InvoiceToType, InvoiceToTypedDict + from .itemref import ItemRef, ItemRefTypedDict + from .items import Items, ItemsTypedDict + from .links import Links, LinksTypedDict + from .mappingoptions import MappingOptions, MappingOptionsTypedDict + from .metadata import Metadata, MetadataTypedDict + from .phonenumber_items import PhoneNumberItems, PhoneNumberItemsTypedDict, Type + from .pulloperation import DatasetStatus, PullOperation, PullOperationTypedDict + from .pulloperations import PullOperations, PullOperationsTypedDict + from .pushchangetype import PushChangeType + from .pushfieldvalidation import PushFieldValidation, PushFieldValidationTypedDict + from .pushoperation import PushOperation, PushOperationTypedDict + from .pushoperationchange import PushOperationChange, PushOperationChangeTypedDict + from .pushoperationref import PushOperationRef, PushOperationRefTypedDict + from .pushoperations import PushOperations, PushOperationsTypedDict + from .pushoperationstatus import PushOperationStatus + from .pushoption import PushOption, PushOptionTypedDict + from .pushoptionchoice import PushOptionChoice, PushOptionChoiceTypedDict + from .pushoptionproperty import PushOptionProperty, PushOptionPropertyTypedDict + from .pushoptiontype import PushOptionType + from .pushvalidationinfo import PushValidationInfo, PushValidationInfoTypedDict + from .recordref import RecordRef, RecordRefTypedDict + from .reimbursableexpensetransaction import ( + ReimbursableExpenseTransaction, + ReimbursableExpenseTransactionTypedDict, + ) + from .reimbursableexpensetransactionline import ( + ReimbursableExpenseTransactionLine, + ReimbursableExpenseTransactionLineTypedDict, + ) + from .reimbursementcontactref import ( + ReimbursementContactRef, + ReimbursementContactRefTypedDict, + ) + from .schema_datatype import SchemaDataType + from .schema_transaction import SchemaTransaction, SchemaTransactionTypedDict + from .security import Security, SecurityTypedDict + from .status import Status + from .supplementaldata import SupplementalData, SupplementalDataTypedDict + from .supplier import Supplier, SupplierTypedDict + from .supplierdetails import SupplierDetails, SupplierDetailsTypedDict + from .suppliers import Suppliers, SuppliersTypedDict + from .supplierstatus import SupplierStatus + from .taxratemappinginfo import TaxRateMappingInfo, TaxRateMappingInfoTypedDict + from .trackingcategorymappinginfo import ( + TrackingCategoryMappingInfo, + TrackingCategoryMappingInfoTypedDict, + ) + from .trackingref import TrackingRef, TrackingRefDataType, TrackingRefTypedDict + from .trackingrefadjustmenttransaction import ( + TrackingRefAdjustmentTransaction, + TrackingRefAdjustmentTransactionDataType, + TrackingRefAdjustmentTransactionTypedDict, + ) + from .transaction import ( + Transaction, + TransactionDefinitionsStatus, + TransactionTypedDict, + ) + from .transactions import Transactions, TransactionsTypedDict + from .transactionstatus import TransactionStatus + from .transfertransactionrequest import ( + AccountReference, + AccountReferenceTypedDict, + From, + FromTypedDict, + To, + ToTypedDict, + TransferTransactionRequest, + TransferTransactionRequestAccountReference, + TransferTransactionRequestAccountReferenceTypedDict, + TransferTransactionRequestTypedDict, + ) + from .transfertransactionresponse import ( + TransferTransactionResponse, + TransferTransactionResponseTypedDict, + ) + from .updatecustomerresponse import ( + UpdateCustomerResponse, + UpdateCustomerResponseAccountingCustomer, + UpdateCustomerResponseAccountingCustomerTypedDict, + UpdateCustomerResponseTypedDict, + ) + from .updateexpenserequest import ( + UpdateExpenseRequest, + UpdateExpenseRequestBankAccountReference, + UpdateExpenseRequestBankAccountReferenceTypedDict, + UpdateExpenseRequestType, + UpdateExpenseRequestTypedDict, + ) + from .updateexpenseresponse import ( + UpdateExpenseResponse, + UpdateExpenseResponseTypedDict, + ) + from .updatereimbursableexpensetransactionrequest import ( + UpdateReimbursableExpenseTransactionRequest, + UpdateReimbursableExpenseTransactionRequestTypedDict, + ) + from .updatesupplierresponse import ( + UpdateSupplierResponse, + UpdateSupplierResponseAccountingSupplier, + UpdateSupplierResponseAccountingSupplierTypedDict, + UpdateSupplierResponseTypedDict, + ) + from .validation import Validation, ValidationTypedDict + from .validationitem import ValidationItem, ValidationItemTypedDict + from .validfor import ValidFor + from .validtransactiontypes import ValidTransactionTypes __all__ = [ "AccountMappingInfo", @@ -300,14 +303,6 @@ "BankAccountStatus", "BankAccountType", "BankAccountTypedDict", - "ClientRateLimitReachedWebhook", - "ClientRateLimitReachedWebhookData", - "ClientRateLimitReachedWebhookDataTypedDict", - "ClientRateLimitReachedWebhookTypedDict", - "ClientRateLimitResetWebhook", - "ClientRateLimitResetWebhookData", - "ClientRateLimitResetWebhookDataTypedDict", - "ClientRateLimitResetWebhookTypedDict", "ClientRateLimitWebhook", "ClientRateLimitWebhookPayload", "ClientRateLimitWebhookPayloadTypedDict", @@ -320,6 +315,7 @@ "CompanyConfiguration", "CompanyConfigurationTypedDict", "CompanyInformation", + "CompanyInformationSchemasType", "CompanyInformationType", "CompanyInformationTypedDict", "CompanyReference", @@ -331,6 +327,8 @@ "CompanySyncStatus", "CompanySyncStatusTypedDict", "CompanyTypedDict", + "CompanyUpdateRequest", + "CompanyUpdateRequestTypedDict", "Connection", "ConnectionTypedDict", "Connections", @@ -375,6 +373,7 @@ "ErrorValidationItemTypedDict", "ErrorValidationTypedDict", "ExpenseContactRef", + "ExpenseContactRefType", "ExpenseContactRefTypedDict", "ExpenseTransaction", "ExpenseTransactionLine", @@ -406,7 +405,6 @@ "Phone", "PhoneNumberItems", "PhoneNumberItemsTypedDict", - "PhoneNumberType", "PhoneTypedDict", "PullOperation", "PullOperationTypedDict", @@ -457,14 +455,6 @@ "SupplierTypedDict", "Suppliers", "SuppliersTypedDict", - "SyncCompleteWebhook", - "SyncCompleteWebhookData", - "SyncCompleteWebhookDataTypedDict", - "SyncCompleteWebhookTypedDict", - "SyncFailedWebhook", - "SyncFailedWebhookData", - "SyncFailedWebhookDataTypedDict", - "SyncFailedWebhookTypedDict", "TaxRateMappingInfo", "TaxRateMappingInfoTypedDict", "To", @@ -518,3 +508,260 @@ "Weblink", "WeblinkTypedDict", ] + +_dynamic_imports: dict[str, str] = { + "AccountingAddressType": ".accountingaddresstype", + "AccountMappingInfo": ".accountmappinginfo", + "AccountMappingInfoAccountType": ".accountmappinginfo", + "AccountMappingInfoTypedDict": ".accountmappinginfo", + "AccountPrototype": ".accountprototype", + "AccountPrototypeTypedDict": ".accountprototype", + "ValidDataTypeLinks": ".accountprototype", + "ValidDataTypeLinksTypedDict": ".accountprototype", + "AccountStatus": ".accountstatus", + "AccountType": ".accounttype", + "AdjustmentTransactionLine": ".adjustmenttransactionline", + "AdjustmentTransactionLineTypedDict": ".adjustmenttransactionline", + "AdjustmentTransactionRequest": ".adjustmenttransactionrequest", + "AdjustmentTransactionRequestTypedDict": ".adjustmenttransactionrequest", + "AdjustmentTransactionResponse": ".adjustmenttransactionresponse", + "AdjustmentTransactionResponseTypedDict": ".adjustmenttransactionresponse", + "ApAccountRef": ".apaccountref", + "ApAccountRefTypedDict": ".apaccountref", + "Attachment": ".attachment", + "AttachmentTypedDict": ".attachment", + "AttachmentUpload": ".attachmentupload", + "AttachmentUploadTypedDict": ".attachmentupload", + "BankAccount": ".bankaccount", + "BankAccountType": ".bankaccount", + "BankAccountTypedDict": ".bankaccount", + "BankAccountDetails": ".bankaccountdetails", + "BankAccountDetailsTypedDict": ".bankaccountdetails", + "BankAccountStatus": ".bankaccountstatus", + "ClientRateLimitWebhook": ".clientratelimitwebhook", + "ClientRateLimitWebhookTypedDict": ".clientratelimitwebhook", + "ClientRateLimitWebhookPayload": ".clientratelimitwebhookpayload", + "ClientRateLimitWebhookPayloadTypedDict": ".clientratelimitwebhookpayload", + "CodatFile": ".codatfile", + "CodatFileTypedDict": ".codatfile", + "Companies": ".companies", + "CompaniesTypedDict": ".companies", + "Company": ".company", + "CompanyTypedDict": ".company", + "CompanyConfiguration": ".companyconfiguration", + "CompanyConfigurationTypedDict": ".companyconfiguration", + "AccountingAddress": ".companyinformation", + "AccountingAddressTypedDict": ".companyinformation", + "CompanyInformation": ".companyinformation", + "CompanyInformationSchemasType": ".companyinformation", + "CompanyInformationType": ".companyinformation", + "CompanyInformationTypedDict": ".companyinformation", + "Phone": ".companyinformation", + "PhoneTypedDict": ".companyinformation", + "Weblink": ".companyinformation", + "WeblinkTypedDict": ".companyinformation", + "CompanyReference": ".companyreference", + "CompanyReferenceLinks": ".companyreference", + "CompanyReferenceLinksTypedDict": ".companyreference", + "CompanyReferenceTypedDict": ".companyreference", + "CompanyRequestBody": ".companyrequestbody", + "CompanyRequestBodyTypedDict": ".companyrequestbody", + "CompanySyncStatus": ".companysyncstatus", + "CompanySyncStatusTypedDict": ".companysyncstatus", + "CompanyUpdateRequest": ".companyupdaterequest", + "CompanyUpdateRequestTypedDict": ".companyupdaterequest", + "Connection": ".connection", + "ConnectionTypedDict": ".connection", + "SourceType": ".connection", + "Connections": ".connections", + "ConnectionsTypedDict": ".connections", + "Contact": ".contact", + "ContactTypedDict": ".contact", + "AccountingAccount": ".createaccountresponse", + "AccountingAccountTypedDict": ".createaccountresponse", + "CreateAccountResponse": ".createaccountresponse", + "CreateAccountResponseMetadata": ".createaccountresponse", + "CreateAccountResponseMetadataTypedDict": ".createaccountresponse", + "CreateAccountResponseTypedDict": ".createaccountresponse", + "CreateAccountResponseValidDataTypeLinks": ".createaccountresponse", + "CreateAccountResponseValidDataTypeLinksTypedDict": ".createaccountresponse", + "AccountingBankAccount": ".createbankaccountresponse", + "AccountingBankAccountTypedDict": ".createbankaccountresponse", + "CreateBankAccountResponse": ".createbankaccountresponse", + "CreateBankAccountResponseBankAccountType": ".createbankaccountresponse", + "CreateBankAccountResponseTypedDict": ".createbankaccountresponse", + "AccountingCustomer": ".createcustomerresponse", + "AccountingCustomerTypedDict": ".createcustomerresponse", + "CreateCustomerResponse": ".createcustomerresponse", + "CreateCustomerResponseTypedDict": ".createcustomerresponse", + "CreateExpenseResponse": ".createexpenseresponse", + "CreateExpenseResponseTypedDict": ".createexpenseresponse", + "CreateReimbursableExpenseResponse": ".createreimbursableexpenseresponse", + "CreateReimbursableExpenseResponseTypedDict": ".createreimbursableexpenseresponse", + "AccountingSupplier": ".createsupplierresponse", + "AccountingSupplierTypedDict": ".createsupplierresponse", + "CreateSupplierResponse": ".createsupplierresponse", + "CreateSupplierResponseTypedDict": ".createsupplierresponse", + "Customer": ".customer", + "CustomerTypedDict": ".customer", + "CustomerDetails": ".customerdetails", + "CustomerDetailsTypedDict": ".customerdetails", + "Customers": ".customers", + "CustomersTypedDict": ".customers", + "CustomerStatus": ".customerstatus", + "DataConnectionError": ".dataconnectionerror", + "DataConnectionErrorTypedDict": ".dataconnectionerror", + "ErrorStatus": ".dataconnectionerror", + "DataConnectionStatus": ".dataconnectionstatus", + "DataStatus": ".datastatus", + "DataStatusTypedDict": ".datastatus", + "DataTypes": ".datastatus", + "DataType": ".datatype", + "ErrorValidation": ".errorvalidation", + "ErrorValidationTypedDict": ".errorvalidation", + "ErrorValidationItem": ".errorvalidationitem", + "ErrorValidationItemTypedDict": ".errorvalidationitem", + "ExpenseContactRef": ".expensecontactref", + "ExpenseContactRefType": ".expensecontactref", + "ExpenseContactRefTypedDict": ".expensecontactref", + "ExpensesSyncWebhook": ".expensessyncwebhook", + "ExpensesSyncWebhookTypedDict": ".expensessyncwebhook", + "ExpensesSyncWebhookPayload": ".expensessyncwebhookpayload", + "ExpensesSyncWebhookPayloadTypedDict": ".expensessyncwebhookpayload", + "BankAccountReference": ".expensetransaction", + "BankAccountReferenceTypedDict": ".expensetransaction", + "ExpenseTransaction": ".expensetransaction", + "ExpenseTransactionType": ".expensetransaction", + "ExpenseTransactionTypedDict": ".expensetransaction", + "ExpenseTransactionLine": ".expensetransactionline", + "ExpenseTransactionLineTypedDict": ".expensetransactionline", + "HalRef": ".halref", + "HalRefTypedDict": ".halref", + "IntegrationType": ".integrationtype", + "InvoiceTo": ".invoiceto", + "InvoiceToType": ".invoiceto", + "InvoiceToTypedDict": ".invoiceto", + "ItemRef": ".itemref", + "ItemRefTypedDict": ".itemref", + "Items": ".items", + "ItemsTypedDict": ".items", + "Links": ".links", + "LinksTypedDict": ".links", + "MappingOptions": ".mappingoptions", + "MappingOptionsTypedDict": ".mappingoptions", + "Metadata": ".metadata", + "MetadataTypedDict": ".metadata", + "PhoneNumberItems": ".phonenumber_items", + "PhoneNumberItemsTypedDict": ".phonenumber_items", + "Type": ".phonenumber_items", + "DatasetStatus": ".pulloperation", + "PullOperation": ".pulloperation", + "PullOperationTypedDict": ".pulloperation", + "PullOperations": ".pulloperations", + "PullOperationsTypedDict": ".pulloperations", + "PushChangeType": ".pushchangetype", + "PushFieldValidation": ".pushfieldvalidation", + "PushFieldValidationTypedDict": ".pushfieldvalidation", + "PushOperation": ".pushoperation", + "PushOperationTypedDict": ".pushoperation", + "PushOperationChange": ".pushoperationchange", + "PushOperationChangeTypedDict": ".pushoperationchange", + "PushOperationRef": ".pushoperationref", + "PushOperationRefTypedDict": ".pushoperationref", + "PushOperations": ".pushoperations", + "PushOperationsTypedDict": ".pushoperations", + "PushOperationStatus": ".pushoperationstatus", + "PushOption": ".pushoption", + "PushOptionTypedDict": ".pushoption", + "PushOptionChoice": ".pushoptionchoice", + "PushOptionChoiceTypedDict": ".pushoptionchoice", + "PushOptionProperty": ".pushoptionproperty", + "PushOptionPropertyTypedDict": ".pushoptionproperty", + "PushOptionType": ".pushoptiontype", + "PushValidationInfo": ".pushvalidationinfo", + "PushValidationInfoTypedDict": ".pushvalidationinfo", + "RecordRef": ".recordref", + "RecordRefTypedDict": ".recordref", + "ReimbursableExpenseTransaction": ".reimbursableexpensetransaction", + "ReimbursableExpenseTransactionTypedDict": ".reimbursableexpensetransaction", + "ReimbursableExpenseTransactionLine": ".reimbursableexpensetransactionline", + "ReimbursableExpenseTransactionLineTypedDict": ".reimbursableexpensetransactionline", + "ReimbursementContactRef": ".reimbursementcontactref", + "ReimbursementContactRefTypedDict": ".reimbursementcontactref", + "SchemaDataType": ".schema_datatype", + "SchemaTransaction": ".schema_transaction", + "SchemaTransactionTypedDict": ".schema_transaction", + "Security": ".security", + "SecurityTypedDict": ".security", + "Status": ".status", + "SupplementalData": ".supplementaldata", + "SupplementalDataTypedDict": ".supplementaldata", + "Supplier": ".supplier", + "SupplierTypedDict": ".supplier", + "SupplierDetails": ".supplierdetails", + "SupplierDetailsTypedDict": ".supplierdetails", + "Suppliers": ".suppliers", + "SuppliersTypedDict": ".suppliers", + "SupplierStatus": ".supplierstatus", + "TaxRateMappingInfo": ".taxratemappinginfo", + "TaxRateMappingInfoTypedDict": ".taxratemappinginfo", + "TrackingCategoryMappingInfo": ".trackingcategorymappinginfo", + "TrackingCategoryMappingInfoTypedDict": ".trackingcategorymappinginfo", + "TrackingRef": ".trackingref", + "TrackingRefDataType": ".trackingref", + "TrackingRefTypedDict": ".trackingref", + "TrackingRefAdjustmentTransaction": ".trackingrefadjustmenttransaction", + "TrackingRefAdjustmentTransactionDataType": ".trackingrefadjustmenttransaction", + "TrackingRefAdjustmentTransactionTypedDict": ".trackingrefadjustmenttransaction", + "Transaction": ".transaction", + "TransactionDefinitionsStatus": ".transaction", + "TransactionTypedDict": ".transaction", + "Transactions": ".transactions", + "TransactionsTypedDict": ".transactions", + "TransactionStatus": ".transactionstatus", + "AccountReference": ".transfertransactionrequest", + "AccountReferenceTypedDict": ".transfertransactionrequest", + "From": ".transfertransactionrequest", + "FromTypedDict": ".transfertransactionrequest", + "To": ".transfertransactionrequest", + "ToTypedDict": ".transfertransactionrequest", + "TransferTransactionRequest": ".transfertransactionrequest", + "TransferTransactionRequestAccountReference": ".transfertransactionrequest", + "TransferTransactionRequestAccountReferenceTypedDict": ".transfertransactionrequest", + "TransferTransactionRequestTypedDict": ".transfertransactionrequest", + "TransferTransactionResponse": ".transfertransactionresponse", + "TransferTransactionResponseTypedDict": ".transfertransactionresponse", + "UpdateCustomerResponse": ".updatecustomerresponse", + "UpdateCustomerResponseAccountingCustomer": ".updatecustomerresponse", + "UpdateCustomerResponseAccountingCustomerTypedDict": ".updatecustomerresponse", + "UpdateCustomerResponseTypedDict": ".updatecustomerresponse", + "UpdateExpenseRequest": ".updateexpenserequest", + "UpdateExpenseRequestBankAccountReference": ".updateexpenserequest", + "UpdateExpenseRequestBankAccountReferenceTypedDict": ".updateexpenserequest", + "UpdateExpenseRequestType": ".updateexpenserequest", + "UpdateExpenseRequestTypedDict": ".updateexpenserequest", + "UpdateExpenseResponse": ".updateexpenseresponse", + "UpdateExpenseResponseTypedDict": ".updateexpenseresponse", + "UpdateReimbursableExpenseTransactionRequest": ".updatereimbursableexpensetransactionrequest", + "UpdateReimbursableExpenseTransactionRequestTypedDict": ".updatereimbursableexpensetransactionrequest", + "UpdateSupplierResponse": ".updatesupplierresponse", + "UpdateSupplierResponseAccountingSupplier": ".updatesupplierresponse", + "UpdateSupplierResponseAccountingSupplierTypedDict": ".updatesupplierresponse", + "UpdateSupplierResponseTypedDict": ".updatesupplierresponse", + "Validation": ".validation", + "ValidationTypedDict": ".validation", + "ValidationItem": ".validationitem", + "ValidationItemTypedDict": ".validationitem", + "ValidFor": ".validfor", + "ValidTransactionTypes": ".validtransactiontypes", +} + + +def __getattr__(attr_name: str) -> Any: + return lazy_getattr( + attr_name, package=__package__, dynamic_imports=_dynamic_imports + ) + + +def __dir__(): + return lazy_dir(dynamic_imports=_dynamic_imports) diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/accountmappinginfo.py b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/accountmappinginfo.py index 830f535d9..ee4fef873 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/accountmappinginfo.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/accountmappinginfo.py @@ -91,40 +91,43 @@ class AccountMappingInfo(BaseModel): @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "accountType", - "currency", - "fullyQualifiedCategory", - "id", - "isBankAccount", - "name", - "nominalCode", - "validFor", - "validTransactionTypes", - ] - nullable_fields = ["nominalCode"] - null_default_fields = [] - + optional_fields = set( + [ + "accountType", + "currency", + "fullyQualifiedCategory", + "id", + "isBankAccount", + "name", + "nominalCode", + "validFor", + "validTransactionTypes", + ] + ) + nullable_fields = set(["nominalCode"]) serialized = handler(self) - m = {} - for n, f in self.model_fields.items(): + for n, f in type(self).model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) + is_nullable_and_explicitly_set = ( + k in nullable_fields + and (self.__pydantic_fields_set__.intersection({n})) # pylint: disable=no-member + ) + + if val != UNSET_SENTINEL: + if ( + val is not None + or k not in optional_fields + or is_nullable_and_explicitly_set + ): + m[k] = val - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member + return m - if val is not None and val != UNSET_SENTINEL: - m[k] = val - elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) - ): - m[k] = val - return m +try: + AccountMappingInfo.model_rebuild() +except NameError: + pass diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/accountprototype.py b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/accountprototype.py index 83229f065..893e03cfb 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/accountprototype.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/accountprototype.py @@ -121,31 +121,26 @@ class ValidDataTypeLinks(BaseModel): @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = ["links", "property"] - nullable_fields = ["links", "property"] - null_default_fields = [] - + optional_fields = set(["links", "property"]) + nullable_fields = set(["links", "property"]) serialized = handler(self) - m = {} - for n, f in self.model_fields.items(): + for n, f in type(self).model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member - - if val is not None and val != UNSET_SENTINEL: - m[k] = val - elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) - ): - m[k] = val + is_nullable_and_explicitly_set = ( + k in nullable_fields + and (self.__pydantic_fields_set__.intersection({n})) # pylint: disable=no-member + ) + + if val != UNSET_SENTINEL: + if ( + val is not None + or k not in optional_fields + or is_nullable_and_explicitly_set + ): + m[k] = val return m @@ -270,51 +265,56 @@ class AccountPrototype(BaseModel): @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "currency", - "currentBalance", - "description", - "fullyQualifiedCategory", - "fullyQualifiedName", - "isBankAccount", - "name", - "nominalCode", - "status", - "supplementalData", - "type", - "validDatatypeLinks", - ] - nullable_fields = [ - "currentBalance", - "description", - "fullyQualifiedCategory", - "fullyQualifiedName", - "name", - "nominalCode", - "validDatatypeLinks", - ] - null_default_fields = [] - + optional_fields = set( + [ + "currency", + "currentBalance", + "description", + "fullyQualifiedCategory", + "fullyQualifiedName", + "isBankAccount", + "name", + "nominalCode", + "status", + "supplementalData", + "type", + "validDatatypeLinks", + ] + ) + nullable_fields = set( + [ + "currentBalance", + "description", + "fullyQualifiedCategory", + "fullyQualifiedName", + "name", + "nominalCode", + "validDatatypeLinks", + ] + ) serialized = handler(self) - m = {} - for n, f in self.model_fields.items(): + for n, f in type(self).model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) + is_nullable_and_explicitly_set = ( + k in nullable_fields + and (self.__pydantic_fields_set__.intersection({n})) # pylint: disable=no-member + ) + + if val != UNSET_SENTINEL: + if ( + val is not None + or k not in optional_fields + or is_nullable_and_explicitly_set + ): + m[k] = val - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member + return m - if val is not None and val != UNSET_SENTINEL: - m[k] = val - elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) - ): - m[k] = val - return m +try: + AccountPrototype.model_rebuild() +except NameError: + pass diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/adjustmenttransactionline.py b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/adjustmenttransactionline.py index 56d90f9b0..280672d8a 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/adjustmenttransactionline.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/adjustmenttransactionline.py @@ -62,30 +62,31 @@ class AdjustmentTransactionLine(BaseModel): @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = ["description", "invoiceTo", "trackingRefs"] - nullable_fields = ["invoiceTo", "trackingRefs"] - null_default_fields = [] - + optional_fields = set(["description", "invoiceTo", "trackingRefs"]) + nullable_fields = set(["invoiceTo", "trackingRefs"]) serialized = handler(self) - m = {} - for n, f in self.model_fields.items(): + for n, f in type(self).model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) + is_nullable_and_explicitly_set = ( + k in nullable_fields + and (self.__pydantic_fields_set__.intersection({n})) # pylint: disable=no-member + ) + + if val != UNSET_SENTINEL: + if ( + val is not None + or k not in optional_fields + or is_nullable_and_explicitly_set + ): + m[k] = val - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member + return m - if val is not None and val != UNSET_SENTINEL: - m[k] = val - elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) - ): - m[k] = val - return m +try: + AdjustmentTransactionLine.model_rebuild() +except NameError: + pass diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/adjustmenttransactionrequest.py b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/adjustmenttransactionrequest.py index 3d75bb72a..1d0b16769 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/adjustmenttransactionrequest.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/adjustmenttransactionrequest.py @@ -167,30 +167,31 @@ class AdjustmentTransactionRequest(BaseModel): @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = ["currencyRate", "reference"] - nullable_fields = ["currencyRate", "reference"] - null_default_fields = [] - + optional_fields = set(["currencyRate", "reference"]) + nullable_fields = set(["currencyRate", "reference"]) serialized = handler(self) - m = {} - for n, f in self.model_fields.items(): + for n, f in type(self).model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) + is_nullable_and_explicitly_set = ( + k in nullable_fields + and (self.__pydantic_fields_set__.intersection({n})) # pylint: disable=no-member + ) + + if val != UNSET_SENTINEL: + if ( + val is not None + or k not in optional_fields + or is_nullable_and_explicitly_set + ): + m[k] = val - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member + return m - if val is not None and val != UNSET_SENTINEL: - m[k] = val - elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) - ): - m[k] = val - return m +try: + AdjustmentTransactionRequest.model_rebuild() +except NameError: + pass diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/adjustmenttransactionresponse.py b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/adjustmenttransactionresponse.py index 23c967c3b..0f030a555 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/adjustmenttransactionresponse.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/adjustmenttransactionresponse.py @@ -1,8 +1,9 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from codat_sync_for_expenses.types import BaseModel +from codat_sync_for_expenses.types import BaseModel, UNSET_SENTINEL import pydantic +from pydantic import model_serializer from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict @@ -15,3 +16,25 @@ class AdjustmentTransactionResponseTypedDict(TypedDict): class AdjustmentTransactionResponse(BaseModel): sync_id: Annotated[Optional[str], pydantic.Field(alias="syncId")] = None r"""Unique id of sync created""" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["syncId"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m + + +try: + AdjustmentTransactionResponse.model_rebuild() +except NameError: + pass diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/apaccountref.py b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/apaccountref.py index d2a64b459..91e068da0 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/apaccountref.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/apaccountref.py @@ -1,7 +1,8 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from codat_sync_for_expenses.types import BaseModel +from codat_sync_for_expenses.types import BaseModel, UNSET_SENTINEL +from pydantic import model_serializer from typing import Optional from typing_extensions import NotRequired, TypedDict @@ -14,3 +15,19 @@ class ApAccountRefTypedDict(TypedDict): class ApAccountRef(BaseModel): id: Optional[str] = None r"""Unique identifier for the Accounts Payable account associated with the transaction. The `apAccountRef` object is currently supported only for QuickBooks Desktop.""" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["id"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/attachment.py b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/attachment.py index ac8394ff2..a03114689 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/attachment.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/attachment.py @@ -1,8 +1,9 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from codat_sync_for_expenses.types import BaseModel +from codat_sync_for_expenses.types import BaseModel, UNSET_SENTINEL import pydantic +from pydantic import model_serializer from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict @@ -27,3 +28,25 @@ class Attachment(BaseModel): None ) r"""Unique identifier of transaction""" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["companyId", "id", "transactionId"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m + + +try: + Attachment.model_rebuild() +except NameError: + pass diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/attachmentupload.py b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/attachmentupload.py index b88902712..1cf8149b8 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/attachmentupload.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/attachmentupload.py @@ -4,7 +4,6 @@ from .codatfile import CodatFile, CodatFileTypedDict from codat_sync_for_expenses.types import BaseModel from codat_sync_for_expenses.utils import FieldMetadata, MultipartFormMetadata -import pydantic from typing_extensions import Annotated, TypedDict @@ -15,8 +14,6 @@ class AttachmentUploadTypedDict(TypedDict): class AttachmentUpload(BaseModel): file: Annotated[ - CodatFile, - pydantic.Field(alias=""), - FieldMetadata(multipart=MultipartFormMetadata(file=True)), + CodatFile, FieldMetadata(multipart=MultipartFormMetadata(file=True)) ] r"""The file to be uploaded as an attachment.""" diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/bankaccount.py b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/bankaccount.py index 62a235200..9c24b0136 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/bankaccount.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/bankaccount.py @@ -236,58 +236,63 @@ class BankAccount(BaseModel): @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "accountName", - "accountNumber", - "accountType", - "availableBalance", - "balance", - "currency", - "iBan", - "id", - "institution", - "metadata", - "modifiedDate", - "nominalCode", - "overdraftLimit", - "sortCode", - "sourceModifiedDate", - "status", - "supplementalData", - ] - nullable_fields = [ - "accountName", - "accountNumber", - "availableBalance", - "balance", - "iBan", - "institution", - "nominalCode", - "overdraftLimit", - "sortCode", - ] - null_default_fields = [] - + optional_fields = set( + [ + "accountName", + "accountNumber", + "accountType", + "availableBalance", + "balance", + "currency", + "iBan", + "id", + "institution", + "metadata", + "modifiedDate", + "nominalCode", + "overdraftLimit", + "sortCode", + "sourceModifiedDate", + "status", + "supplementalData", + ] + ) + nullable_fields = set( + [ + "accountName", + "accountNumber", + "availableBalance", + "balance", + "iBan", + "institution", + "nominalCode", + "overdraftLimit", + "sortCode", + ] + ) serialized = handler(self) - m = {} - for n, f in self.model_fields.items(): + for n, f in type(self).model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) + is_nullable_and_explicitly_set = ( + k in nullable_fields + and (self.__pydantic_fields_set__.intersection({n})) # pylint: disable=no-member + ) + + if val != UNSET_SENTINEL: + if ( + val is not None + or k not in optional_fields + or is_nullable_and_explicitly_set + ): + m[k] = val - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member + return m - if val is not None and val != UNSET_SENTINEL: - m[k] = val - elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) - ): - m[k] = val - return m +try: + BankAccount.model_rebuild() +except NameError: + pass diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/bankaccountdetails.py b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/bankaccountdetails.py index fd29f5735..ea1c066af 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/bankaccountdetails.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/bankaccountdetails.py @@ -1,7 +1,8 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from codat_sync_for_expenses.types import BaseModel +from codat_sync_for_expenses.types import BaseModel, UNSET_SENTINEL +from pydantic import model_serializer from typing import Optional from typing_extensions import NotRequired, TypedDict @@ -14,3 +15,19 @@ class BankAccountDetailsTypedDict(TypedDict): class BankAccountDetails(BaseModel): id: Optional[str] = None r"""The id of the account from which purchases are made""" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["id"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/clientratelimitreachedwebhook.py b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/clientratelimitreachedwebhook.py deleted file mode 100644 index 88ced2018..000000000 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/clientratelimitreachedwebhook.py +++ /dev/null @@ -1,61 +0,0 @@ -"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" - -from __future__ import annotations -from .clientratelimitreachedwebhookdata import ( - ClientRateLimitReachedWebhookData, - ClientRateLimitReachedWebhookDataTypedDict, -) -from codat_sync_for_expenses.types import BaseModel -import pydantic -from typing import Optional -from typing_extensions import Annotated, NotRequired, TypedDict - - -class ClientRateLimitReachedWebhookTypedDict(TypedDict): - r"""Webhook request body for a client that has reached their rate limit.""" - - alert_id: NotRequired[str] - r"""Unique identifier of the webhook event.""" - client_id: NotRequired[str] - r"""Unique identifier for your client in Codat.""" - client_name: NotRequired[str] - r"""Name of your client in Codat.""" - data: NotRequired[ClientRateLimitReachedWebhookDataTypedDict] - message: NotRequired[str] - r"""A human-readable message about the webhook.""" - rule_id: NotRequired[str] - r"""Unique identifier for the rule.""" - rule_type: NotRequired[str] - r"""The type of rule.""" - - -class ClientRateLimitReachedWebhook(BaseModel): - r"""Webhook request body for a client that has reached their rate limit.""" - - alert_id: Annotated[Optional[str], pydantic.Field(alias="AlertId")] = None - r"""Unique identifier of the webhook event.""" - - client_id: Annotated[Optional[str], pydantic.Field(alias="ClientId")] = None - r"""Unique identifier for your client in Codat.""" - - client_name: Annotated[Optional[str], pydantic.Field(alias="ClientName")] = None - r"""Name of your client in Codat.""" - - data: Annotated[ - Optional[ClientRateLimitReachedWebhookData], pydantic.Field(alias="Data") - ] = None - - message: Annotated[Optional[str], pydantic.Field(alias="Message")] = None - r"""A human-readable message about the webhook.""" - - rule_id: Annotated[ - Optional[str], - pydantic.Field( - deprecated="warning: ** DEPRECATED ** - This will be removed in a future release, please migrate away from it as soon as possible.", - alias="RuleId", - ), - ] = None - r"""Unique identifier for the rule.""" - - rule_type: Annotated[Optional[str], pydantic.Field(alias="RuleType")] = None - r"""The type of rule.""" diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/clientratelimitreachedwebhookdata.py b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/clientratelimitreachedwebhookdata.py deleted file mode 100644 index 1569dd38d..000000000 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/clientratelimitreachedwebhookdata.py +++ /dev/null @@ -1,60 +0,0 @@ -"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" - -from __future__ import annotations -from codat_sync_for_expenses.types import BaseModel -import pydantic -from typing import Optional -from typing_extensions import Annotated, NotRequired, TypedDict - - -class ClientRateLimitReachedWebhookDataTypedDict(TypedDict): - daily_quota: NotRequired[int] - r"""The number of available requests per day.""" - expires_utc: NotRequired[str] - r"""In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example: - - ``` - 2020-10-08T22:40:50Z - 2021-01-01T00:00:00 - ``` - - - - When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information: - - - Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z` - - Unqualified local time: `2021-11-15T01:00:00` - - UTC time offsets: `2021-11-15T01:00:00-05:00` - - > Time zones - > - > Not all dates from Codat will contain information about time zones. - > Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. - """ - - -class ClientRateLimitReachedWebhookData(BaseModel): - daily_quota: Annotated[Optional[int], pydantic.Field(alias="DailyQuota")] = None - r"""The number of available requests per day.""" - - expires_utc: Annotated[Optional[str], pydantic.Field(alias="ExpiresUtc")] = None - r"""In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example: - - ``` - 2020-10-08T22:40:50Z - 2021-01-01T00:00:00 - ``` - - - - When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information: - - - Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z` - - Unqualified local time: `2021-11-15T01:00:00` - - UTC time offsets: `2021-11-15T01:00:00-05:00` - - > Time zones - > - > Not all dates from Codat will contain information about time zones. - > Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. - """ diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/clientratelimitresetwebhook.py b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/clientratelimitresetwebhook.py deleted file mode 100644 index 98fa1e127..000000000 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/clientratelimitresetwebhook.py +++ /dev/null @@ -1,61 +0,0 @@ -"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" - -from __future__ import annotations -from .clientratelimitresetwebhookdata import ( - ClientRateLimitResetWebhookData, - ClientRateLimitResetWebhookDataTypedDict, -) -from codat_sync_for_expenses.types import BaseModel -import pydantic -from typing import Optional -from typing_extensions import Annotated, NotRequired, TypedDict - - -class ClientRateLimitResetWebhookTypedDict(TypedDict): - r"""Webhook request body for a client that has had their rate limit reset.""" - - alert_id: NotRequired[str] - r"""Unique identifier of the webhook event.""" - client_id: NotRequired[str] - r"""Unique identifier for your client in Codat.""" - client_name: NotRequired[str] - r"""Name of your client in Codat.""" - data: NotRequired[ClientRateLimitResetWebhookDataTypedDict] - message: NotRequired[str] - r"""A human-readable message about the webhook.""" - rule_id: NotRequired[str] - r"""Unique identifier for the rule.""" - rule_type: NotRequired[str] - r"""The type of rule.""" - - -class ClientRateLimitResetWebhook(BaseModel): - r"""Webhook request body for a client that has had their rate limit reset.""" - - alert_id: Annotated[Optional[str], pydantic.Field(alias="AlertId")] = None - r"""Unique identifier of the webhook event.""" - - client_id: Annotated[Optional[str], pydantic.Field(alias="ClientId")] = None - r"""Unique identifier for your client in Codat.""" - - client_name: Annotated[Optional[str], pydantic.Field(alias="ClientName")] = None - r"""Name of your client in Codat.""" - - data: Annotated[ - Optional[ClientRateLimitResetWebhookData], pydantic.Field(alias="Data") - ] = None - - message: Annotated[Optional[str], pydantic.Field(alias="Message")] = None - r"""A human-readable message about the webhook.""" - - rule_id: Annotated[ - Optional[str], - pydantic.Field( - deprecated="warning: ** DEPRECATED ** - This will be removed in a future release, please migrate away from it as soon as possible.", - alias="RuleId", - ), - ] = None - r"""Unique identifier for the rule.""" - - rule_type: Annotated[Optional[str], pydantic.Field(alias="RuleType")] = None - r"""The type of rule.""" diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/clientratelimitresetwebhookdata.py b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/clientratelimitresetwebhookdata.py deleted file mode 100644 index 77b1ec61b..000000000 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/clientratelimitresetwebhookdata.py +++ /dev/null @@ -1,109 +0,0 @@ -"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" - -from __future__ import annotations -from codat_sync_for_expenses.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) -import pydantic -from pydantic import model_serializer -from typing import Optional -from typing_extensions import Annotated, NotRequired, TypedDict - - -class ClientRateLimitResetWebhookDataTypedDict(TypedDict): - daily_quota: NotRequired[int] - r"""The number of available requests per day.""" - expires_utc: NotRequired[str] - r"""In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example: - - ``` - 2020-10-08T22:40:50Z - 2021-01-01T00:00:00 - ``` - - - - When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information: - - - Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z` - - Unqualified local time: `2021-11-15T01:00:00` - - UTC time offsets: `2021-11-15T01:00:00-05:00` - - > Time zones - > - > Not all dates from Codat will contain information about time zones. - > Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. - """ - quota_remaining: NotRequired[Nullable[int]] - r"""Total number of requests remaining for your client.""" - reset_reason: NotRequired[str] - r"""The reason for your rate limit quota being reset.""" - - -class ClientRateLimitResetWebhookData(BaseModel): - daily_quota: Annotated[Optional[int], pydantic.Field(alias="DailyQuota")] = None - r"""The number of available requests per day.""" - - expires_utc: Annotated[Optional[str], pydantic.Field(alias="ExpiresUtc")] = None - r"""In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example: - - ``` - 2020-10-08T22:40:50Z - 2021-01-01T00:00:00 - ``` - - - - When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information: - - - Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z` - - Unqualified local time: `2021-11-15T01:00:00` - - UTC time offsets: `2021-11-15T01:00:00-05:00` - - > Time zones - > - > Not all dates from Codat will contain information about time zones. - > Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. - """ - - quota_remaining: Annotated[ - OptionalNullable[int], pydantic.Field(alias="QuotaRemaining") - ] = UNSET - r"""Total number of requests remaining for your client.""" - - reset_reason: Annotated[Optional[str], pydantic.Field(alias="ResetReason")] = None - r"""The reason for your rate limit quota being reset.""" - - @model_serializer(mode="wrap") - def serialize_model(self, handler): - optional_fields = ["DailyQuota", "ExpiresUtc", "QuotaRemaining", "ResetReason"] - nullable_fields = ["QuotaRemaining"] - null_default_fields = [] - - serialized = handler(self) - - m = {} - - for n, f in self.model_fields.items(): - k = f.alias or n - val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member - - if val is not None and val != UNSET_SENTINEL: - m[k] = val - elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) - ): - m[k] = val - - return m diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/clientratelimitwebhook.py b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/clientratelimitwebhook.py index 59e81eb94..b7b86f170 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/clientratelimitwebhook.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/clientratelimitwebhook.py @@ -5,8 +5,9 @@ ClientRateLimitWebhookPayload, ClientRateLimitWebhookPayloadTypedDict, ) -from codat_sync_for_expenses.types import BaseModel +from codat_sync_for_expenses.types import BaseModel, UNSET_SENTINEL import pydantic +from pydantic import model_serializer from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict @@ -72,3 +73,25 @@ class ClientRateLimitWebhook(BaseModel): r"""Unique identifier of the event.""" payload: Optional[ClientRateLimitWebhookPayload] = None + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["eventType", "generatedDate", "id", "payload"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m + + +try: + ClientRateLimitWebhook.model_rebuild() +except NameError: + pass diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/clientratelimitwebhookpayload.py b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/clientratelimitwebhookpayload.py index 4aa95c4a7..16dcddd81 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/clientratelimitwebhookpayload.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/clientratelimitwebhookpayload.py @@ -1,8 +1,9 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from codat_sync_for_expenses.types import BaseModel +from codat_sync_for_expenses.types import BaseModel, UNSET_SENTINEL import pydantic +from pydantic import model_serializer from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict @@ -65,3 +66,25 @@ class ClientRateLimitWebhookPayload(BaseModel): Optional[int], pydantic.Field(alias="quotaRemaining") ] = None r"""Total number of requests remaining for your client.""" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["dailyQuota", "expiryDate", "quotaRemaining"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m + + +try: + ClientRateLimitWebhookPayload.model_rebuild() +except NameError: + pass diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/codatfile.py b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/codatfile.py index eca6386d8..1fccd037f 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/codatfile.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/codatfile.py @@ -1,10 +1,11 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from codat_sync_for_expenses.types import BaseModel +from codat_sync_for_expenses.types import BaseModel, UNSET_SENTINEL from codat_sync_for_expenses.utils import FieldMetadata, MultipartFormMetadata import io import pydantic +from pydantic import model_serializer from typing import IO, Optional, Union from typing_extensions import Annotated, NotRequired, TypedDict @@ -31,3 +32,19 @@ class CodatFile(BaseModel): pydantic.Field(alias="Content-Type"), FieldMetadata(multipart=True), ] = None + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["contentType"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/companies.py b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/companies.py index 4c1d4fb55..72e095fdc 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/companies.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/companies.py @@ -3,8 +3,9 @@ from __future__ import annotations from .company import Company, CompanyTypedDict from .links import Links, LinksTypedDict -from codat_sync_for_expenses.types import BaseModel +from codat_sync_for_expenses.types import BaseModel, UNSET_SENTINEL import pydantic +from pydantic import model_serializer from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict @@ -33,3 +34,25 @@ class Companies(BaseModel): r"""Total number of items.""" results: Optional[List[Company]] = None + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["results"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m + + +try: + Companies.model_rebuild() +except NameError: + pass diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/company.py b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/company.py index ae116c738..3a2a37c19 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/company.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/company.py @@ -177,40 +177,43 @@ class Company(BaseModel): @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "created", - "createdByUserName", - "dataConnections", - "description", - "lastSync", - "products", - "referenceParentCompany", - "referenceSubsidiaryCompanies", - "tags", - ] - nullable_fields = ["createdByUserName"] - null_default_fields = [] - + optional_fields = set( + [ + "created", + "createdByUserName", + "dataConnections", + "description", + "lastSync", + "products", + "referenceParentCompany", + "referenceSubsidiaryCompanies", + "tags", + ] + ) + nullable_fields = set(["createdByUserName"]) serialized = handler(self) - m = {} - for n, f in self.model_fields.items(): + for n, f in type(self).model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) + is_nullable_and_explicitly_set = ( + k in nullable_fields + and (self.__pydantic_fields_set__.intersection({n})) # pylint: disable=no-member + ) + + if val != UNSET_SENTINEL: + if ( + val is not None + or k not in optional_fields + or is_nullable_and_explicitly_set + ): + m[k] = val - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member + return m - if val is not None and val != UNSET_SENTINEL: - m[k] = val - elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) - ): - m[k] = val - return m +try: + Company.model_rebuild() +except NameError: + pass diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/companyconfiguration.py b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/companyconfiguration.py index 09ba23e4a..e990d8d9a 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/companyconfiguration.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/companyconfiguration.py @@ -21,3 +21,9 @@ class CompanyConfiguration(BaseModel): customer: CustomerDetails supplier: SupplierDetails + + +try: + CompanyConfiguration.model_rebuild() +except NameError: + pass diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/companyinformation.py b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/companyinformation.py index 538a7abba..50c378e8f 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/companyinformation.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/companyinformation.py @@ -2,7 +2,6 @@ from __future__ import annotations from .accountingaddresstype import AccountingAddressType -from .phonenumbertype import PhoneNumberType from .supplementaldata import SupplementalData, SupplementalDataTypedDict from codat_sync_for_expenses.types import ( BaseModel, @@ -61,44 +60,53 @@ class AccountingAddress(BaseModel): @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = ["city", "country", "line1", "line2", "postalCode", "region"] - nullable_fields = ["city", "country", "line1", "line2", "postalCode", "region"] - null_default_fields = [] - + optional_fields = set( + ["city", "country", "line1", "line2", "postalCode", "region"] + ) + nullable_fields = set( + ["city", "country", "line1", "line2", "postalCode", "region"] + ) serialized = handler(self) - m = {} - for n, f in self.model_fields.items(): + for n, f in type(self).model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) + is_nullable_and_explicitly_set = ( + k in nullable_fields + and (self.__pydantic_fields_set__.intersection({n})) # pylint: disable=no-member + ) + + if val != UNSET_SENTINEL: + if ( + val is not None + or k not in optional_fields + or is_nullable_and_explicitly_set + ): + m[k] = val - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member + return m - if val is not None and val != UNSET_SENTINEL: - m[k] = val - elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) - ): - m[k] = val - return m +class CompanyInformationType(str, Enum): + r"""The type of phone number""" + + PRIMARY = "Primary" + LANDLINE = "Landline" + MOBILE = "Mobile" + FAX = "Fax" + UNKNOWN = "Unknown" class PhoneTypedDict(TypedDict): - type: PhoneNumberType + type: CompanyInformationType r"""The type of phone number""" number: NotRequired[Nullable[str]] r"""A phone number.""" class Phone(BaseModel): - type: PhoneNumberType + type: CompanyInformationType r"""The type of phone number""" number: OptionalNullable[str] = UNSET @@ -106,36 +114,31 @@ class Phone(BaseModel): @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = ["number"] - nullable_fields = ["number"] - null_default_fields = [] - + optional_fields = set(["number"]) + nullable_fields = set(["number"]) serialized = handler(self) - m = {} - for n, f in self.model_fields.items(): + for n, f in type(self).model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member - - if val is not None and val != UNSET_SENTINEL: - m[k] = val - elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) - ): - m[k] = val + is_nullable_and_explicitly_set = ( + k in nullable_fields + and (self.__pydantic_fields_set__.intersection({n})) # pylint: disable=no-member + ) + + if val != UNSET_SENTINEL: + if ( + val is not None + or k not in optional_fields + or is_nullable_and_explicitly_set + ): + m[k] = val return m -class CompanyInformationType(str, Enum): +class CompanyInformationSchemasType(str, Enum): r"""The type of the weblink.""" WEBSITE = "Website" @@ -146,7 +149,7 @@ class CompanyInformationType(str, Enum): class WeblinkTypedDict(TypedDict): r"""Weblink associated with the company.""" - type: NotRequired[CompanyInformationType] + type: NotRequired[CompanyInformationSchemasType] r"""The type of the weblink.""" url: NotRequired[str] r"""The full URL for the weblink.""" @@ -155,12 +158,28 @@ class WeblinkTypedDict(TypedDict): class Weblink(BaseModel): r"""Weblink associated with the company.""" - type: Optional[CompanyInformationType] = None + type: Optional[CompanyInformationSchemasType] = None r"""The type of the weblink.""" url: Optional[str] = None r"""The full URL for the weblink.""" + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["type", "url"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m + class CompanyInformationTypedDict(TypedDict): r"""Company info provides standard details about a linked company such as their address, phone number, and company registration. @@ -247,7 +266,7 @@ class CompanyInformationTypedDict(TypedDict): r"""An array of phone numbers.""" registration_number: NotRequired[Nullable[str]] r"""Registration number given to the linked company by the companies authority in the country of origin. In the UK this is Companies House.""" - source_urls: NotRequired[Nullable[Dict[str, str]]] + source_urls: NotRequired[Nullable[Dict[str, Nullable[str]]]] r"""URL addresses for the accounting source. For example, for Xero integrations two URLs are returned. These have many potential use cases, such as [deep linking](https://developer.xero.com/documentation/api-guides/deep-link-xero). @@ -375,7 +394,7 @@ class CompanyInformation(BaseModel): r"""Registration number given to the linked company by the companies authority in the country of origin. In the UK this is Companies House.""" source_urls: Annotated[ - OptionalNullable[Dict[str, str]], pydantic.Field(alias="sourceUrls") + OptionalNullable[Dict[str, Nullable[str]]], pydantic.Field(alias="sourceUrls") ] = UNSET r"""URL addresses for the accounting source. @@ -402,56 +421,65 @@ class CompanyInformation(BaseModel): @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "accountingPlatformRef", - "addresses", - "baseCurrency", - "companyLegalName", - "companyName", - "createdDate", - "financialYearStartDate", - "ledgerLockDate", - "phoneNumbers", - "registrationNumber", - "sourceUrls", - "supplementalData", - "taxNumber", - "webLinks", - ] - nullable_fields = [ - "accountingPlatformRef", - "addresses", - "baseCurrency", - "companyLegalName", - "companyName", - "phoneNumbers", - "registrationNumber", - "sourceUrls", - "taxNumber", - "webLinks", - ] - null_default_fields = [] - + optional_fields = set( + [ + "accountingPlatformRef", + "addresses", + "baseCurrency", + "companyLegalName", + "companyName", + "createdDate", + "financialYearStartDate", + "ledgerLockDate", + "phoneNumbers", + "registrationNumber", + "sourceUrls", + "supplementalData", + "taxNumber", + "webLinks", + ] + ) + nullable_fields = set( + [ + "accountingPlatformRef", + "addresses", + "baseCurrency", + "companyLegalName", + "companyName", + "phoneNumbers", + "registrationNumber", + "sourceUrls", + "taxNumber", + "webLinks", + ] + ) serialized = handler(self) - m = {} - for n, f in self.model_fields.items(): + for n, f in type(self).model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) + is_nullable_and_explicitly_set = ( + k in nullable_fields + and (self.__pydantic_fields_set__.intersection({n})) # pylint: disable=no-member + ) + + if val != UNSET_SENTINEL: + if ( + val is not None + or k not in optional_fields + or is_nullable_and_explicitly_set + ): + m[k] = val - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member + return m - if val is not None and val != UNSET_SENTINEL: - m[k] = val - elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) - ): - m[k] = val - return m +try: + AccountingAddress.model_rebuild() +except NameError: + pass +try: + CompanyInformation.model_rebuild() +except NameError: + pass diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/companyreference.py b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/companyreference.py index 56f647a16..0a96d1a4c 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/companyreference.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/companyreference.py @@ -1,7 +1,8 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from codat_sync_for_expenses.types import BaseModel +from codat_sync_for_expenses.types import BaseModel, UNSET_SENTINEL +from pydantic import model_serializer from typing import Dict, Optional from typing_extensions import NotRequired, TypedDict @@ -19,6 +20,22 @@ class CompanyReferenceLinks(BaseModel): portal: Optional[str] = None r"""Link to the company page in the portal.""" + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["portal"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m + class CompanyReferenceTypedDict(TypedDict): description: NotRequired[str] @@ -48,3 +65,19 @@ class CompanyReference(BaseModel): tags: Optional[Dict[str, str]] = None r"""A collection of user-defined key-value pairs that store custom metadata against the company.""" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["description", "id", "links", "name", "tags"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/companyrequestbody.py b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/companyrequestbody.py index 0b0199996..65088a37a 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/companyrequestbody.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/companyrequestbody.py @@ -1,7 +1,8 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from codat_sync_for_expenses.types import BaseModel +from codat_sync_for_expenses.types import BaseModel, UNSET_SENTINEL +from pydantic import model_serializer from typing import Dict, Optional from typing_extensions import NotRequired, TypedDict @@ -24,3 +25,19 @@ class CompanyRequestBody(BaseModel): tags: Optional[Dict[str, str]] = None r"""A collection of user-defined key-value pairs that store custom metadata against the company.""" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["description", "tags"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/companysyncstatus.py b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/companysyncstatus.py index ad5be8af1..bcf22d9a1 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/companysyncstatus.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/companysyncstatus.py @@ -108,45 +108,50 @@ class CompanySyncStatus(BaseModel): @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "companyId", - "dataPushed", - "errorMessage", - "syncExceptionMessage", - "syncId", - "syncStatus", - "syncStatusCode", - "syncUtc", - ] - nullable_fields = [ - "companyId", - "errorMessage", - "syncExceptionMessage", - "syncId", - "syncStatus", - ] - null_default_fields = [] - + optional_fields = set( + [ + "companyId", + "dataPushed", + "errorMessage", + "syncExceptionMessage", + "syncId", + "syncStatus", + "syncStatusCode", + "syncUtc", + ] + ) + nullable_fields = set( + [ + "companyId", + "errorMessage", + "syncExceptionMessage", + "syncId", + "syncStatus", + ] + ) serialized = handler(self) - m = {} - for n, f in self.model_fields.items(): + for n, f in type(self).model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) + is_nullable_and_explicitly_set = ( + k in nullable_fields + and (self.__pydantic_fields_set__.intersection({n})) # pylint: disable=no-member + ) + + if val != UNSET_SENTINEL: + if ( + val is not None + or k not in optional_fields + or is_nullable_and_explicitly_set + ): + m[k] = val - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member + return m - if val is not None and val != UNSET_SENTINEL: - m[k] = val - elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) - ): - m[k] = val - return m +try: + CompanySyncStatus.model_rebuild() +except NameError: + pass diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/companyupdaterequest.py b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/companyupdaterequest.py new file mode 100644 index 000000000..3bd4c7577 --- /dev/null +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/companyupdaterequest.py @@ -0,0 +1,43 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from codat_sync_for_expenses.types import BaseModel, UNSET_SENTINEL +from pydantic import model_serializer +from typing import Dict, Optional +from typing_extensions import NotRequired, TypedDict + + +class CompanyUpdateRequestTypedDict(TypedDict): + description: NotRequired[str] + r"""Additional information about the company. This can be used to store foreign IDs, references, etc.""" + name: NotRequired[str] + r"""Name of company being connected.""" + tags: NotRequired[Dict[str, str]] + r"""A collection of user-defined key-value pairs that store custom metadata against the company.""" + + +class CompanyUpdateRequest(BaseModel): + description: Optional[str] = None + r"""Additional information about the company. This can be used to store foreign IDs, references, etc.""" + + name: Optional[str] = None + r"""Name of company being connected.""" + + tags: Optional[Dict[str, str]] = None + r"""A collection of user-defined key-value pairs that store custom metadata against the company.""" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["description", "name", "tags"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/connection.py b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/connection.py index ab894af1d..26f77d441 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/connection.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/connection.py @@ -13,7 +13,7 @@ from enum import Enum import pydantic from pydantic import model_serializer -from typing import Dict, List, Optional +from typing import Any, Dict, List, Optional from typing_extensions import Annotated, NotRequired, TypedDict @@ -79,7 +79,7 @@ class ConnectionTypedDict(TypedDict): r"""The type of platform of the connection.""" status: DataConnectionStatus r"""The current authorization status of the data connection.""" - connection_info: NotRequired[Nullable[Dict[str, str]]] + connection_info: NotRequired[Nullable[Dict[str, Any]]] data_connection_errors: NotRequired[Nullable[List[DataConnectionErrorTypedDict]]] last_sync: NotRequired[str] r"""In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example: @@ -164,7 +164,7 @@ class Connection(BaseModel): r"""The current authorization status of the data connection.""" connection_info: Annotated[ - OptionalNullable[Dict[str, str]], pydantic.Field(alias="connectionInfo") + OptionalNullable[Dict[str, Any]], pydantic.Field(alias="connectionInfo") ] = UNSET data_connection_errors: Annotated[ @@ -196,30 +196,31 @@ class Connection(BaseModel): @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = ["connectionInfo", "dataConnectionErrors", "lastSync"] - nullable_fields = ["connectionInfo", "dataConnectionErrors"] - null_default_fields = [] - + optional_fields = set(["connectionInfo", "dataConnectionErrors", "lastSync"]) + nullable_fields = set(["connectionInfo", "dataConnectionErrors"]) serialized = handler(self) - m = {} - for n, f in self.model_fields.items(): + for n, f in type(self).model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) + is_nullable_and_explicitly_set = ( + k in nullable_fields + and (self.__pydantic_fields_set__.intersection({n})) # pylint: disable=no-member + ) + + if val != UNSET_SENTINEL: + if ( + val is not None + or k not in optional_fields + or is_nullable_and_explicitly_set + ): + m[k] = val - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member + return m - if val is not None and val != UNSET_SENTINEL: - m[k] = val - elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) - ): - m[k] = val - return m +try: + Connection.model_rebuild() +except NameError: + pass diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/connections.py b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/connections.py index 6b4d52560..9e61c2ffc 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/connections.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/connections.py @@ -3,8 +3,9 @@ from __future__ import annotations from .connection import Connection, ConnectionTypedDict from .links import Links, LinksTypedDict -from codat_sync_for_expenses.types import BaseModel +from codat_sync_for_expenses.types import BaseModel, UNSET_SENTINEL import pydantic +from pydantic import model_serializer from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict @@ -33,3 +34,25 @@ class Connections(BaseModel): r"""Total number of items.""" results: Optional[List[Connection]] = None + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["results"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m + + +try: + Connections.model_rebuild() +except NameError: + pass diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/contact.py b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/contact.py index 15fefadb0..d88bec7f2 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/contact.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/contact.py @@ -89,30 +89,31 @@ class Contact(BaseModel): @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = ["address", "email", "modifiedDate", "name", "phone"] - nullable_fields = ["email", "name", "phone"] - null_default_fields = [] - + optional_fields = set(["address", "email", "modifiedDate", "name", "phone"]) + nullable_fields = set(["email", "name", "phone"]) serialized = handler(self) - m = {} - for n, f in self.model_fields.items(): + for n, f in type(self).model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) + is_nullable_and_explicitly_set = ( + k in nullable_fields + and (self.__pydantic_fields_set__.intersection({n})) # pylint: disable=no-member + ) + + if val != UNSET_SENTINEL: + if ( + val is not None + or k not in optional_fields + or is_nullable_and_explicitly_set + ): + m[k] = val - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member + return m - if val is not None and val != UNSET_SENTINEL: - m[k] = val - elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) - ): - m[k] = val - return m +try: + Contact.model_rebuild() +except NameError: + pass diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/createaccountresponse.py b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/createaccountresponse.py index 5492e43f4..29a62e278 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/createaccountresponse.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/createaccountresponse.py @@ -38,31 +38,26 @@ class CreateAccountResponseMetadata(BaseModel): @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = ["isDeleted"] - nullable_fields = ["isDeleted"] - null_default_fields = [] - + optional_fields = set(["isDeleted"]) + nullable_fields = set(["isDeleted"]) serialized = handler(self) - m = {} - for n, f in self.model_fields.items(): + for n, f in type(self).model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member - - if val is not None and val != UNSET_SENTINEL: - m[k] = val - elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) - ): - m[k] = val + is_nullable_and_explicitly_set = ( + k in nullable_fields + and (self.__pydantic_fields_set__.intersection({n})) # pylint: disable=no-member + ) + + if val != UNSET_SENTINEL: + if ( + val is not None + or k not in optional_fields + or is_nullable_and_explicitly_set + ): + m[k] = val return m @@ -167,31 +162,26 @@ class CreateAccountResponseValidDataTypeLinks(BaseModel): @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = ["links", "property"] - nullable_fields = ["links", "property"] - null_default_fields = [] - + optional_fields = set(["links", "property"]) + nullable_fields = set(["links", "property"]) serialized = handler(self) - m = {} - for n, f in self.model_fields.items(): + for n, f in type(self).model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member - - if val is not None and val != UNSET_SENTINEL: - m[k] = val - elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) - ): - m[k] = val + is_nullable_and_explicitly_set = ( + k in nullable_fields + and (self.__pydantic_fields_set__.intersection({n})) # pylint: disable=no-member + ) + + if val != UNSET_SENTINEL: + if ( + val is not None + or k not in optional_fields + or is_nullable_and_explicitly_set + ): + m[k] = val return m @@ -396,56 +386,55 @@ class AccountingAccount(BaseModel): @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "currency", - "currentBalance", - "description", - "fullyQualifiedCategory", - "fullyQualifiedName", - "id", - "isBankAccount", - "metadata", - "modifiedDate", - "name", - "nominalCode", - "sourceModifiedDate", - "status", - "supplementalData", - "type", - "validDatatypeLinks", - ] - nullable_fields = [ - "currentBalance", - "description", - "fullyQualifiedCategory", - "fullyQualifiedName", - "name", - "nominalCode", - "validDatatypeLinks", - ] - null_default_fields = [] - + optional_fields = set( + [ + "currency", + "currentBalance", + "description", + "fullyQualifiedCategory", + "fullyQualifiedName", + "id", + "isBankAccount", + "metadata", + "modifiedDate", + "name", + "nominalCode", + "sourceModifiedDate", + "status", + "supplementalData", + "type", + "validDatatypeLinks", + ] + ) + nullable_fields = set( + [ + "currentBalance", + "description", + "fullyQualifiedCategory", + "fullyQualifiedName", + "name", + "nominalCode", + "validDatatypeLinks", + ] + ) serialized = handler(self) - m = {} - for n, f in self.model_fields.items(): + for n, f in type(self).model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member - - if val is not None and val != UNSET_SENTINEL: - m[k] = val - elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) - ): - m[k] = val + is_nullable_and_explicitly_set = ( + k in nullable_fields + and (self.__pydantic_fields_set__.intersection({n})) # pylint: disable=no-member + ) + + if val != UNSET_SENTINEL: + if ( + val is not None + or k not in optional_fields + or is_nullable_and_explicitly_set + ): + m[k] = val return m @@ -612,45 +601,52 @@ class CreateAccountResponse(BaseModel): @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "changes", - "completedOnUtc", - "data", - "dataType", - "errorMessage", - "timeoutInMinutes", - "timeoutInSeconds", - "validation", - ] - nullable_fields = [ - "changes", - "data", - "errorMessage", - "timeoutInMinutes", - "timeoutInSeconds", - ] - null_default_fields = [] - + optional_fields = set( + [ + "changes", + "completedOnUtc", + "data", + "dataType", + "errorMessage", + "timeoutInMinutes", + "timeoutInSeconds", + "validation", + ] + ) + nullable_fields = set( + ["changes", "data", "errorMessage", "timeoutInMinutes", "timeoutInSeconds"] + ) serialized = handler(self) - m = {} - for n, f in self.model_fields.items(): + for n, f in type(self).model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) + is_nullable_and_explicitly_set = ( + k in nullable_fields + and (self.__pydantic_fields_set__.intersection({n})) # pylint: disable=no-member + ) + + if val != UNSET_SENTINEL: + if ( + val is not None + or k not in optional_fields + or is_nullable_and_explicitly_set + ): + m[k] = val - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member + return m - if val is not None and val != UNSET_SENTINEL: - m[k] = val - elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) - ): - m[k] = val - return m +try: + CreateAccountResponseMetadata.model_rebuild() +except NameError: + pass +try: + AccountingAccount.model_rebuild() +except NameError: + pass +try: + CreateAccountResponse.model_rebuild() +except NameError: + pass diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/createbankaccountresponse.py b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/createbankaccountresponse.py index 7e2fb0f98..8d6642843 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/createbankaccountresponse.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/createbankaccountresponse.py @@ -247,59 +247,58 @@ class AccountingBankAccount(BaseModel): @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "accountName", - "accountNumber", - "accountType", - "availableBalance", - "balance", - "currency", - "iBan", - "id", - "institution", - "metadata", - "modifiedDate", - "nominalCode", - "overdraftLimit", - "sortCode", - "sourceModifiedDate", - "status", - "supplementalData", - ] - nullable_fields = [ - "accountName", - "accountNumber", - "availableBalance", - "balance", - "iBan", - "institution", - "nominalCode", - "overdraftLimit", - "sortCode", - ] - null_default_fields = [] - + optional_fields = set( + [ + "accountName", + "accountNumber", + "accountType", + "availableBalance", + "balance", + "currency", + "iBan", + "id", + "institution", + "metadata", + "modifiedDate", + "nominalCode", + "overdraftLimit", + "sortCode", + "sourceModifiedDate", + "status", + "supplementalData", + ] + ) + nullable_fields = set( + [ + "accountName", + "accountNumber", + "availableBalance", + "balance", + "iBan", + "institution", + "nominalCode", + "overdraftLimit", + "sortCode", + ] + ) serialized = handler(self) - m = {} - for n, f in self.model_fields.items(): + for n, f in type(self).model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member - - if val is not None and val != UNSET_SENTINEL: - m[k] = val - elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) - ): - m[k] = val + is_nullable_and_explicitly_set = ( + k in nullable_fields + and (self.__pydantic_fields_set__.intersection({n})) # pylint: disable=no-member + ) + + if val != UNSET_SENTINEL: + if ( + val is not None + or k not in optional_fields + or is_nullable_and_explicitly_set + ): + m[k] = val return m @@ -466,45 +465,48 @@ class CreateBankAccountResponse(BaseModel): @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "changes", - "completedOnUtc", - "data", - "dataType", - "errorMessage", - "timeoutInMinutes", - "timeoutInSeconds", - "validation", - ] - nullable_fields = [ - "changes", - "data", - "errorMessage", - "timeoutInMinutes", - "timeoutInSeconds", - ] - null_default_fields = [] - + optional_fields = set( + [ + "changes", + "completedOnUtc", + "data", + "dataType", + "errorMessage", + "timeoutInMinutes", + "timeoutInSeconds", + "validation", + ] + ) + nullable_fields = set( + ["changes", "data", "errorMessage", "timeoutInMinutes", "timeoutInSeconds"] + ) serialized = handler(self) - m = {} - for n, f in self.model_fields.items(): + for n, f in type(self).model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) + is_nullable_and_explicitly_set = ( + k in nullable_fields + and (self.__pydantic_fields_set__.intersection({n})) # pylint: disable=no-member + ) + + if val != UNSET_SENTINEL: + if ( + val is not None + or k not in optional_fields + or is_nullable_and_explicitly_set + ): + m[k] = val - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member + return m - if val is not None and val != UNSET_SENTINEL: - m[k] = val - elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) - ): - m[k] = val - return m +try: + AccountingBankAccount.model_rebuild() +except NameError: + pass +try: + CreateBankAccountResponse.model_rebuild() +except NameError: + pass diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/createcustomerresponse.py b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/createcustomerresponse.py index f4c5bd908..b272c016e 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/createcustomerresponse.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/createcustomerresponse.py @@ -156,55 +156,54 @@ class AccountingCustomer(BaseModel): @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "addresses", - "contactName", - "contacts", - "customerName", - "defaultCurrency", - "emailAddress", - "id", - "metadata", - "modifiedDate", - "phone", - "registrationNumber", - "sourceModifiedDate", - "supplementalData", - "taxNumber", - ] - nullable_fields = [ - "addresses", - "contactName", - "contacts", - "customerName", - "emailAddress", - "phone", - "registrationNumber", - "taxNumber", - ] - null_default_fields = [] - + optional_fields = set( + [ + "addresses", + "contactName", + "contacts", + "customerName", + "defaultCurrency", + "emailAddress", + "id", + "metadata", + "modifiedDate", + "phone", + "registrationNumber", + "sourceModifiedDate", + "supplementalData", + "taxNumber", + ] + ) + nullable_fields = set( + [ + "addresses", + "contactName", + "contacts", + "customerName", + "emailAddress", + "phone", + "registrationNumber", + "taxNumber", + ] + ) serialized = handler(self) - m = {} - for n, f in self.model_fields.items(): + for n, f in type(self).model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member - - if val is not None and val != UNSET_SENTINEL: - m[k] = val - elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) - ): - m[k] = val + is_nullable_and_explicitly_set = ( + k in nullable_fields + and (self.__pydantic_fields_set__.intersection({n})) # pylint: disable=no-member + ) + + if val != UNSET_SENTINEL: + if ( + val is not None + or k not in optional_fields + or is_nullable_and_explicitly_set + ): + m[k] = val return m @@ -371,45 +370,48 @@ class CreateCustomerResponse(BaseModel): @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "changes", - "completedOnUtc", - "data", - "dataType", - "errorMessage", - "timeoutInMinutes", - "timeoutInSeconds", - "validation", - ] - nullable_fields = [ - "changes", - "data", - "errorMessage", - "timeoutInMinutes", - "timeoutInSeconds", - ] - null_default_fields = [] - + optional_fields = set( + [ + "changes", + "completedOnUtc", + "data", + "dataType", + "errorMessage", + "timeoutInMinutes", + "timeoutInSeconds", + "validation", + ] + ) + nullable_fields = set( + ["changes", "data", "errorMessage", "timeoutInMinutes", "timeoutInSeconds"] + ) serialized = handler(self) - m = {} - for n, f in self.model_fields.items(): + for n, f in type(self).model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) + is_nullable_and_explicitly_set = ( + k in nullable_fields + and (self.__pydantic_fields_set__.intersection({n})) # pylint: disable=no-member + ) + + if val != UNSET_SENTINEL: + if ( + val is not None + or k not in optional_fields + or is_nullable_and_explicitly_set + ): + m[k] = val - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member + return m - if val is not None and val != UNSET_SENTINEL: - m[k] = val - elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) - ): - m[k] = val - return m +try: + AccountingCustomer.model_rebuild() +except NameError: + pass +try: + CreateCustomerResponse.model_rebuild() +except NameError: + pass diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/createexpenseresponse.py b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/createexpenseresponse.py index ffc870a9f..4a56887d9 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/createexpenseresponse.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/createexpenseresponse.py @@ -1,8 +1,9 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from codat_sync_for_expenses.types import BaseModel +from codat_sync_for_expenses.types import BaseModel, UNSET_SENTINEL import pydantic +from pydantic import model_serializer from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict @@ -15,3 +16,25 @@ class CreateExpenseResponseTypedDict(TypedDict): class CreateExpenseResponse(BaseModel): sync_id: Annotated[Optional[str], pydantic.Field(alias="syncId")] = None r"""Unique id of sync created""" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["syncId"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m + + +try: + CreateExpenseResponse.model_rebuild() +except NameError: + pass diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/createreimbursableexpenseresponse.py b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/createreimbursableexpenseresponse.py index c89692011..120a27ced 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/createreimbursableexpenseresponse.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/createreimbursableexpenseresponse.py @@ -1,8 +1,9 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from codat_sync_for_expenses.types import BaseModel +from codat_sync_for_expenses.types import BaseModel, UNSET_SENTINEL import pydantic +from pydantic import model_serializer from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict @@ -15,3 +16,25 @@ class CreateReimbursableExpenseResponseTypedDict(TypedDict): class CreateReimbursableExpenseResponse(BaseModel): sync_id: Annotated[Optional[str], pydantic.Field(alias="syncId")] = None r"""Unique id of sync created""" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["syncId"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m + + +try: + CreateReimbursableExpenseResponse.model_rebuild() +except NameError: + pass diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/createsupplierresponse.py b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/createsupplierresponse.py index 292ff3d13..8c01f6adc 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/createsupplierresponse.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/createsupplierresponse.py @@ -130,54 +130,53 @@ class AccountingSupplier(BaseModel): @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "addresses", - "contactName", - "defaultCurrency", - "emailAddress", - "id", - "metadata", - "modifiedDate", - "phone", - "registrationNumber", - "sourceModifiedDate", - "supplementalData", - "supplierName", - "taxNumber", - ] - nullable_fields = [ - "addresses", - "contactName", - "defaultCurrency", - "emailAddress", - "phone", - "registrationNumber", - "supplierName", - "taxNumber", - ] - null_default_fields = [] - + optional_fields = set( + [ + "addresses", + "contactName", + "defaultCurrency", + "emailAddress", + "id", + "metadata", + "modifiedDate", + "phone", + "registrationNumber", + "sourceModifiedDate", + "supplementalData", + "supplierName", + "taxNumber", + ] + ) + nullable_fields = set( + [ + "addresses", + "contactName", + "defaultCurrency", + "emailAddress", + "phone", + "registrationNumber", + "supplierName", + "taxNumber", + ] + ) serialized = handler(self) - m = {} - for n, f in self.model_fields.items(): + for n, f in type(self).model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member - - if val is not None and val != UNSET_SENTINEL: - m[k] = val - elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) - ): - m[k] = val + is_nullable_and_explicitly_set = ( + k in nullable_fields + and (self.__pydantic_fields_set__.intersection({n})) # pylint: disable=no-member + ) + + if val != UNSET_SENTINEL: + if ( + val is not None + or k not in optional_fields + or is_nullable_and_explicitly_set + ): + m[k] = val return m @@ -344,45 +343,48 @@ class CreateSupplierResponse(BaseModel): @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "changes", - "completedOnUtc", - "data", - "dataType", - "errorMessage", - "timeoutInMinutes", - "timeoutInSeconds", - "validation", - ] - nullable_fields = [ - "changes", - "data", - "errorMessage", - "timeoutInMinutes", - "timeoutInSeconds", - ] - null_default_fields = [] - + optional_fields = set( + [ + "changes", + "completedOnUtc", + "data", + "dataType", + "errorMessage", + "timeoutInMinutes", + "timeoutInSeconds", + "validation", + ] + ) + nullable_fields = set( + ["changes", "data", "errorMessage", "timeoutInMinutes", "timeoutInSeconds"] + ) serialized = handler(self) - m = {} - for n, f in self.model_fields.items(): + for n, f in type(self).model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) + is_nullable_and_explicitly_set = ( + k in nullable_fields + and (self.__pydantic_fields_set__.intersection({n})) # pylint: disable=no-member + ) + + if val != UNSET_SENTINEL: + if ( + val is not None + or k not in optional_fields + or is_nullable_and_explicitly_set + ): + m[k] = val - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member + return m - if val is not None and val != UNSET_SENTINEL: - m[k] = val - elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) - ): - m[k] = val - return m +try: + AccountingSupplier.model_rebuild() +except NameError: + pass +try: + CreateSupplierResponse.model_rebuild() +except NameError: + pass diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/customer.py b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/customer.py index a398c1dbc..5752bac08 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/customer.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/customer.py @@ -146,54 +146,59 @@ class Customer(BaseModel): @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "addresses", - "contactName", - "contacts", - "customerName", - "defaultCurrency", - "emailAddress", - "id", - "metadata", - "modifiedDate", - "phone", - "registrationNumber", - "sourceModifiedDate", - "supplementalData", - "taxNumber", - ] - nullable_fields = [ - "addresses", - "contactName", - "contacts", - "customerName", - "emailAddress", - "phone", - "registrationNumber", - "taxNumber", - ] - null_default_fields = [] - + optional_fields = set( + [ + "addresses", + "contactName", + "contacts", + "customerName", + "defaultCurrency", + "emailAddress", + "id", + "metadata", + "modifiedDate", + "phone", + "registrationNumber", + "sourceModifiedDate", + "supplementalData", + "taxNumber", + ] + ) + nullable_fields = set( + [ + "addresses", + "contactName", + "contacts", + "customerName", + "emailAddress", + "phone", + "registrationNumber", + "taxNumber", + ] + ) serialized = handler(self) - m = {} - for n, f in self.model_fields.items(): + for n, f in type(self).model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) + is_nullable_and_explicitly_set = ( + k in nullable_fields + and (self.__pydantic_fields_set__.intersection({n})) # pylint: disable=no-member + ) + + if val != UNSET_SENTINEL: + if ( + val is not None + or k not in optional_fields + or is_nullable_and_explicitly_set + ): + m[k] = val - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member + return m - if val is not None and val != UNSET_SENTINEL: - m[k] = val - elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) - ): - m[k] = val - return m +try: + Customer.model_rebuild() +except NameError: + pass diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/customerdetails.py b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/customerdetails.py index eca6cfdcf..8f3e80eb2 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/customerdetails.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/customerdetails.py @@ -1,7 +1,8 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from codat_sync_for_expenses.types import BaseModel +from codat_sync_for_expenses.types import BaseModel, UNSET_SENTINEL +from pydantic import model_serializer from typing import Optional from typing_extensions import NotRequired, TypedDict @@ -14,3 +15,19 @@ class CustomerDetailsTypedDict(TypedDict): class CustomerDetails(BaseModel): id: Optional[str] = None r"""Identifier for the customer, unique to the company in the accounting software.""" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["id"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/customers.py b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/customers.py index 2d6e72ea6..0d95f4f4a 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/customers.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/customers.py @@ -3,8 +3,9 @@ from __future__ import annotations from .customer import Customer, CustomerTypedDict from .links import Links, LinksTypedDict -from codat_sync_for_expenses.types import BaseModel +from codat_sync_for_expenses.types import BaseModel, Nullable, UNSET_SENTINEL import pydantic +from pydantic import model_serializer from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict @@ -17,7 +18,7 @@ class CustomersTypedDict(TypedDict): r"""Number of items to return in results array.""" total_results: int r"""Total number of items.""" - results: NotRequired[List[CustomerTypedDict]] + results: NotRequired[List[Nullable[CustomerTypedDict]]] class Customers(BaseModel): @@ -32,4 +33,26 @@ class Customers(BaseModel): total_results: Annotated[int, pydantic.Field(alias="totalResults")] r"""Total number of items.""" - results: Optional[List[Customer]] = None + results: Optional[List[Nullable[Customer]]] = None + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["results"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m + + +try: + Customers.model_rebuild() +except NameError: + pass diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/dataconnectionerror.py b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/dataconnectionerror.py index b13cb566f..1bd613a83 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/dataconnectionerror.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/dataconnectionerror.py @@ -138,37 +138,40 @@ class DataConnectionError(BaseModel): @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "errorMessage", - "erroredOnUtc", - "resolvedOnUtc", - "status", - "statusCode", - "statusText", - ] - nullable_fields = ["status"] - null_default_fields = [] - + optional_fields = set( + [ + "errorMessage", + "erroredOnUtc", + "resolvedOnUtc", + "status", + "statusCode", + "statusText", + ] + ) + nullable_fields = set(["status"]) serialized = handler(self) - m = {} - for n, f in self.model_fields.items(): + for n, f in type(self).model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) + is_nullable_and_explicitly_set = ( + k in nullable_fields + and (self.__pydantic_fields_set__.intersection({n})) # pylint: disable=no-member + ) + + if val != UNSET_SENTINEL: + if ( + val is not None + or k not in optional_fields + or is_nullable_and_explicitly_set + ): + m[k] = val - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member + return m - if val is not None and val != UNSET_SENTINEL: - m[k] = val - elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) - ): - m[k] = val - return m +try: + DataConnectionError.model_rebuild() +except NameError: + pass diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/datastatus.py b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/datastatus.py index 051f0d1b5..b4a63f583 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/datastatus.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/datastatus.py @@ -2,9 +2,10 @@ from __future__ import annotations from .status import Status -from codat_sync_for_expenses.types import BaseModel +from codat_sync_for_expenses.types import BaseModel, UNSET_SENTINEL from enum import Enum import pydantic +from pydantic import model_serializer from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict @@ -64,7 +65,7 @@ class DataStatusTypedDict(TypedDict): r"""The current status of the dataset.""" data_type: DataTypes r"""Available data types""" - last_successful_sync: str + last_successful_sync: NotRequired[str] r"""In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example: ``` @@ -100,7 +101,9 @@ class DataStatus(BaseModel): data_type: Annotated[DataTypes, pydantic.Field(alias="dataType")] r"""Available data types""" - last_successful_sync: Annotated[str, pydantic.Field(alias="lastSuccessfulSync")] + last_successful_sync: Annotated[ + Optional[str], pydantic.Field(alias="lastSuccessfulSync") + ] = None r"""In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example: ``` @@ -131,3 +134,27 @@ class DataStatus(BaseModel): None ) r"""Unique identifier for most recent sync of data type.""" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set( + ["lastSuccessfulSync", "latestSuccessfulSyncId", "latestSyncId"] + ) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m + + +try: + DataStatus.model_rebuild() +except NameError: + pass diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/errorvalidation.py b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/errorvalidation.py index 9b3823907..22ebd2cb5 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/errorvalidation.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/errorvalidation.py @@ -30,30 +30,25 @@ class ErrorValidation(BaseModel): @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = ["errors", "warnings"] - nullable_fields = ["errors", "warnings"] - null_default_fields = [] - + optional_fields = set(["errors", "warnings"]) + nullable_fields = set(["errors", "warnings"]) serialized = handler(self) - m = {} - for n, f in self.model_fields.items(): + for n, f in type(self).model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member - - if val is not None and val != UNSET_SENTINEL: - m[k] = val - elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) - ): - m[k] = val + is_nullable_and_explicitly_set = ( + k in nullable_fields + and (self.__pydantic_fields_set__.intersection({n})) # pylint: disable=no-member + ) + + if val != UNSET_SENTINEL: + if ( + val is not None + or k not in optional_fields + or is_nullable_and_explicitly_set + ): + m[k] = val return m diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/errorvalidationitem.py b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/errorvalidationitem.py index ac3b4f2f6..ab9b69eac 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/errorvalidationitem.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/errorvalidationitem.py @@ -36,30 +36,31 @@ class ErrorValidationItem(BaseModel): @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = ["itemId", "message", "validatorName"] - nullable_fields = ["itemId", "message", "validatorName"] - null_default_fields = [] - + optional_fields = set(["itemId", "message", "validatorName"]) + nullable_fields = set(["itemId", "message", "validatorName"]) serialized = handler(self) - m = {} - for n, f in self.model_fields.items(): + for n, f in type(self).model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member + is_nullable_and_explicitly_set = ( + k in nullable_fields + and (self.__pydantic_fields_set__.intersection({n})) # pylint: disable=no-member + ) - if val is not None and val != UNSET_SENTINEL: - m[k] = val - elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) - ): - m[k] = val + if val != UNSET_SENTINEL: + if ( + val is not None + or k not in optional_fields + or is_nullable_and_explicitly_set + ): + m[k] = val return m + + +try: + ErrorValidationItem.model_rebuild() +except NameError: + pass diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/expensecontactref.py b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/expensecontactref.py index d6d3d2463..9d86d31fe 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/expensecontactref.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/expensecontactref.py @@ -1,13 +1,14 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from codat_sync_for_expenses.types import BaseModel +from codat_sync_for_expenses.types import BaseModel, UNSET_SENTINEL from enum import Enum +from pydantic import model_serializer from typing import Optional from typing_extensions import NotRequired, TypedDict -class Type(str, Enum): +class ExpenseContactRefType(str, Enum): r"""The type of contact.""" SUPPLIER = "Supplier" @@ -16,7 +17,7 @@ class Type(str, Enum): class ExpenseContactRefTypedDict(TypedDict): id: str r"""Identifier of supplier or customer.""" - type: NotRequired[Type] + type: NotRequired[ExpenseContactRefType] r"""The type of contact.""" @@ -24,5 +25,21 @@ class ExpenseContactRef(BaseModel): id: str r"""Identifier of supplier or customer.""" - type: Optional[Type] = Type.SUPPLIER + type: Optional[ExpenseContactRefType] = ExpenseContactRefType.SUPPLIER r"""The type of contact.""" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["type"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/expensessyncwebhook.py b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/expensessyncwebhook.py index 806c4e27d..23155b4a5 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/expensessyncwebhook.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/expensessyncwebhook.py @@ -5,8 +5,9 @@ ExpensesSyncWebhookPayload, ExpensesSyncWebhookPayloadTypedDict, ) -from codat_sync_for_expenses.types import BaseModel +from codat_sync_for_expenses.types import BaseModel, UNSET_SENTINEL import pydantic +from pydantic import model_serializer from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict @@ -72,3 +73,25 @@ class ExpensesSyncWebhook(BaseModel): r"""Unique identifier of the event.""" payload: Optional[ExpensesSyncWebhookPayload] = None + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["eventType", "generatedDate", "id", "payload"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m + + +try: + ExpensesSyncWebhook.model_rebuild() +except NameError: + pass diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/expensessyncwebhookpayload.py b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/expensessyncwebhookpayload.py index 7f930d8ab..842564f8a 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/expensessyncwebhookpayload.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/expensessyncwebhookpayload.py @@ -3,8 +3,9 @@ from __future__ import annotations from .companyreference import CompanyReference, CompanyReferenceTypedDict from .transaction import Transaction, TransactionTypedDict -from codat_sync_for_expenses.types import BaseModel +from codat_sync_for_expenses.types import BaseModel, UNSET_SENTINEL import pydantic +from pydantic import model_serializer from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict @@ -25,3 +26,25 @@ class ExpensesSyncWebhookPayload(BaseModel): r"""Unique identifier of the sync.""" transactions: Optional[List[Transaction]] = None + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["referenceCompany", "syncId", "transactions"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m + + +try: + ExpensesSyncWebhookPayload.model_rebuild() +except NameError: + pass diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/expensetransaction.py b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/expensetransaction.py index 963ee77a6..2991af38b 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/expensetransaction.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/expensetransaction.py @@ -33,6 +33,22 @@ class BankAccountReference(BaseModel): id: Optional[str] = None r"""Identifier of the bank account.""" + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["id"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m + class ExpenseTransactionType(str, Enum): r"""The type of transaction.""" @@ -220,39 +236,42 @@ class ExpenseTransaction(BaseModel): @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "bankAccountRef", - "contactRef", - "currencyRate", - "lines", - "merchantName", - "notes", - "postAsDraft", - "reference", - ] - nullable_fields = ["currencyRate", "postAsDraft", "reference"] - null_default_fields = [] - + optional_fields = set( + [ + "bankAccountRef", + "contactRef", + "currencyRate", + "lines", + "merchantName", + "notes", + "postAsDraft", + "reference", + ] + ) + nullable_fields = set(["currencyRate", "postAsDraft", "reference"]) serialized = handler(self) - m = {} - for n, f in self.model_fields.items(): + for n, f in type(self).model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) + is_nullable_and_explicitly_set = ( + k in nullable_fields + and (self.__pydantic_fields_set__.intersection({n})) # pylint: disable=no-member + ) + + if val != UNSET_SENTINEL: + if ( + val is not None + or k not in optional_fields + or is_nullable_and_explicitly_set + ): + m[k] = val - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member + return m - if val is not None and val != UNSET_SENTINEL: - m[k] = val - elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) - ): - m[k] = val - return m +try: + ExpenseTransaction.model_rebuild() +except NameError: + pass diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/expensetransactionline.py b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/expensetransactionline.py index 80dd53802..820b25e96 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/expensetransactionline.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/expensetransactionline.py @@ -79,37 +79,40 @@ class ExpenseTransactionLine(BaseModel): @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "accountRef", - "invoiceTo", - "itemRef", - "taxAmount", - "taxRateRef", - "trackingRefs", - ] - nullable_fields = ["invoiceTo", "itemRef", "trackingRefs"] - null_default_fields = [] - + optional_fields = set( + [ + "accountRef", + "invoiceTo", + "itemRef", + "taxAmount", + "taxRateRef", + "trackingRefs", + ] + ) + nullable_fields = set(["invoiceTo", "itemRef", "trackingRefs"]) serialized = handler(self) - m = {} - for n, f in self.model_fields.items(): + for n, f in type(self).model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) + is_nullable_and_explicitly_set = ( + k in nullable_fields + and (self.__pydantic_fields_set__.intersection({n})) # pylint: disable=no-member + ) + + if val != UNSET_SENTINEL: + if ( + val is not None + or k not in optional_fields + or is_nullable_and_explicitly_set + ): + m[k] = val - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member + return m - if val is not None and val != UNSET_SENTINEL: - m[k] = val - elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) - ): - m[k] = val - return m +try: + ExpenseTransactionLine.model_rebuild() +except NameError: + pass diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/halref.py b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/halref.py index c1d40904e..72d1107d9 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/halref.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/halref.py @@ -1,7 +1,8 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from codat_sync_for_expenses.types import BaseModel +from codat_sync_for_expenses.types import BaseModel, UNSET_SENTINEL +from pydantic import model_serializer from typing import Optional from typing_extensions import NotRequired, TypedDict @@ -14,3 +15,19 @@ class HalRefTypedDict(TypedDict): class HalRef(BaseModel): href: Optional[str] = None r"""Uri hypertext reference.""" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["href"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/invoiceto.py b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/invoiceto.py index d7c0beaa8..4653378cc 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/invoiceto.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/invoiceto.py @@ -1,8 +1,9 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from codat_sync_for_expenses.types import BaseModel +from codat_sync_for_expenses.types import BaseModel, UNSET_SENTINEL from enum import Enum +from pydantic import model_serializer from typing import Optional from typing_extensions import NotRequired, TypedDict @@ -30,3 +31,19 @@ class InvoiceTo(BaseModel): type: Optional[InvoiceToType] = None r"""The type of contact.""" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["id", "type"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/itemref.py b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/itemref.py index 79c9ce136..4e9e29b26 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/itemref.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/itemref.py @@ -1,7 +1,8 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from codat_sync_for_expenses.types import BaseModel +from codat_sync_for_expenses.types import BaseModel, UNSET_SENTINEL +from pydantic import model_serializer from typing import Optional from typing_extensions import NotRequired, TypedDict @@ -14,3 +15,19 @@ class ItemRefTypedDict(TypedDict): class ItemRef(BaseModel): id: Optional[str] = None r"""Unique identifier for the item associated with the transaction. The `itemRef` object is currently supported only for QuickBooks Desktop. You can specify either `itemRef` or `accountRef`, but not both.""" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["id"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/items.py b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/items.py index b8e4cada4..480655057 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/items.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/items.py @@ -57,30 +57,35 @@ class Items(BaseModel): @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = ["city", "country", "line1", "line2", "postalCode", "region"] - nullable_fields = ["city", "country", "line1", "line2", "postalCode", "region"] - null_default_fields = [] - + optional_fields = set( + ["city", "country", "line1", "line2", "postalCode", "region"] + ) + nullable_fields = set( + ["city", "country", "line1", "line2", "postalCode", "region"] + ) serialized = handler(self) - m = {} - for n, f in self.model_fields.items(): + for n, f in type(self).model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) + is_nullable_and_explicitly_set = ( + k in nullable_fields + and (self.__pydantic_fields_set__.intersection({n})) # pylint: disable=no-member + ) + + if val != UNSET_SENTINEL: + if ( + val is not None + or k not in optional_fields + or is_nullable_and_explicitly_set + ): + m[k] = val - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member + return m - if val is not None and val != UNSET_SENTINEL: - m[k] = val - elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) - ): - m[k] = val - return m +try: + Items.model_rebuild() +except NameError: + pass diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/links.py b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/links.py index fe42a7b1e..d4b29eb05 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/links.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/links.py @@ -2,8 +2,9 @@ from __future__ import annotations from .halref import HalRef, HalRefTypedDict -from codat_sync_for_expenses.types import BaseModel +from codat_sync_for_expenses.types import BaseModel, UNSET_SENTINEL import pydantic +from pydantic import model_serializer from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict @@ -23,3 +24,25 @@ class Links(BaseModel): next: Optional[HalRef] = None previous: Optional[HalRef] = None + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["next", "previous"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m + + +try: + Links.model_rebuild() +except NameError: + pass diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/mappingoptions.py b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/mappingoptions.py index 42f914cd1..012243f1a 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/mappingoptions.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/mappingoptions.py @@ -55,40 +55,35 @@ class MappingOptions(BaseModel): @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "accounts", - "expenseProvider", - "taxRates", - "trackingCategories", - ] - nullable_fields = [ - "accounts", - "expenseProvider", - "taxRates", - "trackingCategories", - ] - null_default_fields = [] - + optional_fields = set( + ["accounts", "expenseProvider", "taxRates", "trackingCategories"] + ) + nullable_fields = set( + ["accounts", "expenseProvider", "taxRates", "trackingCategories"] + ) serialized = handler(self) - m = {} - for n, f in self.model_fields.items(): + for n, f in type(self).model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member + is_nullable_and_explicitly_set = ( + k in nullable_fields + and (self.__pydantic_fields_set__.intersection({n})) # pylint: disable=no-member + ) - if val is not None and val != UNSET_SENTINEL: - m[k] = val - elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) - ): - m[k] = val + if val != UNSET_SENTINEL: + if ( + val is not None + or k not in optional_fields + or is_nullable_and_explicitly_set + ): + m[k] = val return m + + +try: + MappingOptions.model_rebuild() +except NameError: + pass diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/metadata.py b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/metadata.py index d67e08473..ddf19744b 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/metadata.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/metadata.py @@ -26,30 +26,31 @@ class Metadata(BaseModel): @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = ["isDeleted"] - nullable_fields = ["isDeleted"] - null_default_fields = [] - + optional_fields = set(["isDeleted"]) + nullable_fields = set(["isDeleted"]) serialized = handler(self) - m = {} - for n, f in self.model_fields.items(): + for n, f in type(self).model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) + is_nullable_and_explicitly_set = ( + k in nullable_fields + and (self.__pydantic_fields_set__.intersection({n})) # pylint: disable=no-member + ) + + if val != UNSET_SENTINEL: + if ( + val is not None + or k not in optional_fields + or is_nullable_and_explicitly_set + ): + m[k] = val - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member + return m - if val is not None and val != UNSET_SENTINEL: - m[k] = val - elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) - ): - m[k] = val - return m +try: + Metadata.model_rebuild() +except NameError: + pass diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/phonenumber_items.py b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/phonenumber_items.py index 607434890..4beb5d1c7 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/phonenumber_items.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/phonenumber_items.py @@ -1,7 +1,6 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .phonenumbertype import PhoneNumberType from codat_sync_for_expenses.types import ( BaseModel, Nullable, @@ -9,19 +8,30 @@ UNSET, UNSET_SENTINEL, ) +from enum import Enum from pydantic import model_serializer from typing_extensions import NotRequired, TypedDict +class Type(str, Enum): + r"""The type of phone number""" + + PRIMARY = "Primary" + LANDLINE = "Landline" + MOBILE = "Mobile" + FAX = "Fax" + UNKNOWN = "Unknown" + + class PhoneNumberItemsTypedDict(TypedDict): - type: PhoneNumberType + type: Type r"""The type of phone number""" number: NotRequired[Nullable[str]] r"""A phone number.""" class PhoneNumberItems(BaseModel): - type: PhoneNumberType + type: Type r"""The type of phone number""" number: OptionalNullable[str] = UNSET @@ -29,30 +39,25 @@ class PhoneNumberItems(BaseModel): @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = ["number"] - nullable_fields = ["number"] - null_default_fields = [] - + optional_fields = set(["number"]) + nullable_fields = set(["number"]) serialized = handler(self) - m = {} - for n, f in self.model_fields.items(): + for n, f in type(self).model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member - - if val is not None and val != UNSET_SENTINEL: - m[k] = val - elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) - ): - m[k] = val + is_nullable_and_explicitly_set = ( + k in nullable_fields + and (self.__pydantic_fields_set__.intersection({n})) # pylint: disable=no-member + ) + + if val != UNSET_SENTINEL: + if ( + val is not None + or k not in optional_fields + or is_nullable_and_explicitly_set + ): + m[k] = val return m diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/phonenumbertype.py b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/phonenumbertype.py deleted file mode 100644 index a8b448eb0..000000000 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/phonenumbertype.py +++ /dev/null @@ -1,14 +0,0 @@ -"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" - -from __future__ import annotations -from enum import Enum - - -class PhoneNumberType(str, Enum): - r"""The type of phone number""" - - PRIMARY = "Primary" - LANDLINE = "Landline" - MOBILE = "Mobile" - FAX = "Fax" - UNKNOWN = "Unknown" diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/pulloperation.py b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/pulloperation.py index c59250b7b..704b9980d 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/pulloperation.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/pulloperation.py @@ -195,30 +195,31 @@ class PullOperation(BaseModel): @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = ["completed", "errorMessage", "statusDescription"] - nullable_fields = ["errorMessage", "statusDescription"] - null_default_fields = [] - + optional_fields = set(["completed", "errorMessage", "statusDescription"]) + nullable_fields = set(["errorMessage", "statusDescription"]) serialized = handler(self) - m = {} - for n, f in self.model_fields.items(): + for n, f in type(self).model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) + is_nullable_and_explicitly_set = ( + k in nullable_fields + and (self.__pydantic_fields_set__.intersection({n})) # pylint: disable=no-member + ) + + if val != UNSET_SENTINEL: + if ( + val is not None + or k not in optional_fields + or is_nullable_and_explicitly_set + ): + m[k] = val - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member + return m - if val is not None and val != UNSET_SENTINEL: - m[k] = val - elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) - ): - m[k] = val - return m +try: + PullOperation.model_rebuild() +except NameError: + pass diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/pulloperations.py b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/pulloperations.py index 52a611462..450c34d57 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/pulloperations.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/pulloperations.py @@ -3,8 +3,9 @@ from __future__ import annotations from .links import Links, LinksTypedDict from .pulloperation import PullOperation, PullOperationTypedDict -from codat_sync_for_expenses.types import BaseModel +from codat_sync_for_expenses.types import BaseModel, UNSET_SENTINEL import pydantic +from pydantic import model_serializer from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict @@ -33,3 +34,25 @@ class PullOperations(BaseModel): r"""Total number of items.""" results: Optional[List[PullOperation]] = None + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["results"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m + + +try: + PullOperations.model_rebuild() +except NameError: + pass diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/pushfieldvalidation.py b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/pushfieldvalidation.py index 4c0b4be83..754aff838 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/pushfieldvalidation.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/pushfieldvalidation.py @@ -34,30 +34,25 @@ class PushFieldValidation(BaseModel): @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = ["field", "ref"] - nullable_fields = ["ref"] - null_default_fields = [] - + optional_fields = set(["field", "ref"]) + nullable_fields = set(["ref"]) serialized = handler(self) - m = {} - for n, f in self.model_fields.items(): + for n, f in type(self).model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member - - if val is not None and val != UNSET_SENTINEL: - m[k] = val - elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) - ): - m[k] = val + is_nullable_and_explicitly_set = ( + k in nullable_fields + and (self.__pydantic_fields_set__.intersection({n})) # pylint: disable=no-member + ) + + if val != UNSET_SENTINEL: + if ( + val is not None + or k not in optional_fields + or is_nullable_and_explicitly_set + ): + m[k] = val return m diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/pushoperation.py b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/pushoperation.py index eeeaaa647..491a3ca82 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/pushoperation.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/pushoperation.py @@ -177,43 +177,43 @@ class PushOperation(BaseModel): @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "changes", - "completedOnUtc", - "dataType", - "errorMessage", - "timeoutInMinutes", - "timeoutInSeconds", - "validation", - ] - nullable_fields = [ - "changes", - "errorMessage", - "timeoutInMinutes", - "timeoutInSeconds", - ] - null_default_fields = [] - + optional_fields = set( + [ + "changes", + "completedOnUtc", + "dataType", + "errorMessage", + "timeoutInMinutes", + "timeoutInSeconds", + "validation", + ] + ) + nullable_fields = set( + ["changes", "errorMessage", "timeoutInMinutes", "timeoutInSeconds"] + ) serialized = handler(self) - m = {} - for n, f in self.model_fields.items(): + for n, f in type(self).model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) + is_nullable_and_explicitly_set = ( + k in nullable_fields + and (self.__pydantic_fields_set__.intersection({n})) # pylint: disable=no-member + ) + + if val != UNSET_SENTINEL: + if ( + val is not None + or k not in optional_fields + or is_nullable_and_explicitly_set + ): + m[k] = val - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member + return m - if val is not None and val != UNSET_SENTINEL: - m[k] = val - elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) - ): - m[k] = val - return m +try: + PushOperation.model_rebuild() +except NameError: + pass diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/pushoperationchange.py b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/pushoperationchange.py index 4163e2860..9691a11a2 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/pushoperationchange.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/pushoperationchange.py @@ -39,30 +39,31 @@ class PushOperationChange(BaseModel): @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = ["attachmentId", "recordRef", "type"] - nullable_fields = ["attachmentId"] - null_default_fields = [] - + optional_fields = set(["attachmentId", "recordRef", "type"]) + nullable_fields = set(["attachmentId"]) serialized = handler(self) - m = {} - for n, f in self.model_fields.items(): + for n, f in type(self).model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member + is_nullable_and_explicitly_set = ( + k in nullable_fields + and (self.__pydantic_fields_set__.intersection({n})) # pylint: disable=no-member + ) - if val is not None and val != UNSET_SENTINEL: - m[k] = val - elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) - ): - m[k] = val + if val != UNSET_SENTINEL: + if ( + val is not None + or k not in optional_fields + or is_nullable_and_explicitly_set + ): + m[k] = val return m + + +try: + PushOperationChange.model_rebuild() +except NameError: + pass diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/pushoperationref.py b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/pushoperationref.py index 5ee213e44..a49fff400 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/pushoperationref.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/pushoperationref.py @@ -2,8 +2,9 @@ from __future__ import annotations from .datatype import DataType -from codat_sync_for_expenses.types import BaseModel +from codat_sync_for_expenses.types import BaseModel, UNSET_SENTINEL import pydantic +from pydantic import model_serializer from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict @@ -21,3 +22,25 @@ class PushOperationRef(BaseModel): id: Optional[str] = None r"""Unique identifier for a push operation.""" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["dataType", "id"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m + + +try: + PushOperationRef.model_rebuild() +except NameError: + pass diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/pushoperations.py b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/pushoperations.py index 9a263ced0..cc201ae99 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/pushoperations.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/pushoperations.py @@ -3,8 +3,9 @@ from __future__ import annotations from .links import Links, LinksTypedDict from .pushoperation import PushOperation, PushOperationTypedDict -from codat_sync_for_expenses.types import BaseModel +from codat_sync_for_expenses.types import BaseModel, UNSET_SENTINEL import pydantic +from pydantic import model_serializer from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict @@ -33,3 +34,25 @@ class PushOperations(BaseModel): r"""Total number of items.""" results: Optional[List[PushOperation]] = None + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["results"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m + + +try: + PushOperations.model_rebuild() +except NameError: + pass diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/pushoption.py b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/pushoption.py index c53eccc0d..213dc66f7 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/pushoption.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/pushoption.py @@ -53,30 +53,31 @@ class PushOption(BaseModel): @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = ["description", "options", "properties", "validation"] - nullable_fields = ["options", "properties"] - null_default_fields = [] - + optional_fields = set(["description", "options", "properties", "validation"]) + nullable_fields = set(["options", "properties"]) serialized = handler(self) - m = {} - for n, f in self.model_fields.items(): + for n, f in type(self).model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) + is_nullable_and_explicitly_set = ( + k in nullable_fields + and (self.__pydantic_fields_set__.intersection({n})) # pylint: disable=no-member + ) + + if val != UNSET_SENTINEL: + if ( + val is not None + or k not in optional_fields + or is_nullable_and_explicitly_set + ): + m[k] = val - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member + return m - if val is not None and val != UNSET_SENTINEL: - m[k] = val - elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) - ): - m[k] = val - return m +try: + PushOption.model_rebuild() +except NameError: + pass diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/pushoptionchoice.py b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/pushoptionchoice.py index 3b1e64e77..d9a345dac 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/pushoptionchoice.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/pushoptionchoice.py @@ -2,8 +2,9 @@ from __future__ import annotations from .pushoptiontype import PushOptionType -from codat_sync_for_expenses.types import BaseModel +from codat_sync_for_expenses.types import BaseModel, UNSET_SENTINEL import pydantic +from pydantic import model_serializer from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict @@ -36,3 +37,27 @@ class PushOptionChoice(BaseModel): value: Optional[str] = None r"""Allowed value for field.""" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set( + ["description", "displayName", "required", "type", "value"] + ) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m + + +try: + PushOptionChoice.model_rebuild() +except NameError: + pass diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/pushoptionproperty.py b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/pushoptionproperty.py index dcabc2609..f97c12d68 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/pushoptionproperty.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/pushoptionproperty.py @@ -52,30 +52,31 @@ class PushOptionProperty(BaseModel): @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = ["options", "properties", "validation"] - nullable_fields = ["options", "properties"] - null_default_fields = [] - + optional_fields = set(["options", "properties", "validation"]) + nullable_fields = set(["options", "properties"]) serialized = handler(self) - m = {} - for n, f in self.model_fields.items(): + for n, f in type(self).model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) + is_nullable_and_explicitly_set = ( + k in nullable_fields + and (self.__pydantic_fields_set__.intersection({n})) # pylint: disable=no-member + ) + + if val != UNSET_SENTINEL: + if ( + val is not None + or k not in optional_fields + or is_nullable_and_explicitly_set + ): + m[k] = val - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member + return m - if val is not None and val != UNSET_SENTINEL: - m[k] = val - elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) - ): - m[k] = val - return m +try: + PushOptionProperty.model_rebuild() +except NameError: + pass diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/pushvalidationinfo.py b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/pushvalidationinfo.py index ea8947d3b..eac132715 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/pushvalidationinfo.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/pushvalidationinfo.py @@ -26,30 +26,25 @@ class PushValidationInfo(BaseModel): @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = ["information", "warnings"] - nullable_fields = ["information", "warnings"] - null_default_fields = [] - + optional_fields = set(["information", "warnings"]) + nullable_fields = set(["information", "warnings"]) serialized = handler(self) - m = {} - for n, f in self.model_fields.items(): + for n, f in type(self).model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member - - if val is not None and val != UNSET_SENTINEL: - m[k] = val - elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) - ): - m[k] = val + is_nullable_and_explicitly_set = ( + k in nullable_fields + and (self.__pydantic_fields_set__.intersection({n})) # pylint: disable=no-member + ) + + if val != UNSET_SENTINEL: + if ( + val is not None + or k not in optional_fields + or is_nullable_and_explicitly_set + ): + m[k] = val return m diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/recordref.py b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/recordref.py index da8e3f0e4..1ba3d6e78 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/recordref.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/recordref.py @@ -1,7 +1,8 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from codat_sync_for_expenses.types import BaseModel +from codat_sync_for_expenses.types import BaseModel, UNSET_SENTINEL +from pydantic import model_serializer from typing import Optional from typing_extensions import NotRequired, TypedDict @@ -14,3 +15,19 @@ class RecordRefTypedDict(TypedDict): class RecordRef(BaseModel): id: Optional[str] = None r"""Identifier of linked reference from mapping options.""" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["id"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/reimbursableexpensetransaction.py b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/reimbursableexpensetransaction.py index b9011d530..6da9dad53 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/reimbursableexpensetransaction.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/reimbursableexpensetransaction.py @@ -228,36 +228,33 @@ class ReimbursableExpenseTransaction(BaseModel): @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "apAccountRef", - "currencyRate", - "lines", - "notes", - "reference", - ] - nullable_fields = ["apAccountRef", "currencyRate", "reference"] - null_default_fields = [] - + optional_fields = set( + ["apAccountRef", "currencyRate", "lines", "notes", "reference"] + ) + nullable_fields = set(["apAccountRef", "currencyRate", "reference"]) serialized = handler(self) - m = {} - for n, f in self.model_fields.items(): + for n, f in type(self).model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) + is_nullable_and_explicitly_set = ( + k in nullable_fields + and (self.__pydantic_fields_set__.intersection({n})) # pylint: disable=no-member + ) + + if val != UNSET_SENTINEL: + if ( + val is not None + or k not in optional_fields + or is_nullable_and_explicitly_set + ): + m[k] = val - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member + return m - if val is not None and val != UNSET_SENTINEL: - m[k] = val - elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) - ): - m[k] = val - return m +try: + ReimbursableExpenseTransaction.model_rebuild() +except NameError: + pass diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/reimbursableexpensetransactionline.py b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/reimbursableexpensetransactionline.py index 0222cda5c..7d32bbbf2 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/reimbursableexpensetransactionline.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/reimbursableexpensetransactionline.py @@ -84,38 +84,41 @@ class ReimbursableExpenseTransactionLine(BaseModel): @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "accountRef", - "description", - "invoiceTo", - "itemRef", - "taxAmount", - "taxRateRef", - "trackingRefs", - ] - nullable_fields = ["invoiceTo", "itemRef", "trackingRefs"] - null_default_fields = [] - + optional_fields = set( + [ + "accountRef", + "description", + "invoiceTo", + "itemRef", + "taxAmount", + "taxRateRef", + "trackingRefs", + ] + ) + nullable_fields = set(["invoiceTo", "itemRef", "trackingRefs"]) serialized = handler(self) - m = {} - for n, f in self.model_fields.items(): + for n, f in type(self).model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) + is_nullable_and_explicitly_set = ( + k in nullable_fields + and (self.__pydantic_fields_set__.intersection({n})) # pylint: disable=no-member + ) + + if val != UNSET_SENTINEL: + if ( + val is not None + or k not in optional_fields + or is_nullable_and_explicitly_set + ): + m[k] = val - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member + return m - if val is not None and val != UNSET_SENTINEL: - m[k] = val - elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) - ): - m[k] = val - return m +try: + ReimbursableExpenseTransactionLine.model_rebuild() +except NameError: + pass diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/schema_transaction.py b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/schema_transaction.py index 473474b41..a486e3963 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/schema_transaction.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/schema_transaction.py @@ -45,30 +45,31 @@ class SchemaTransaction(BaseModel): @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = ["integrationType", "message", "status", "transactionId"] - nullable_fields = ["integrationType", "message", "status", "transactionId"] - null_default_fields = [] - + optional_fields = set(["integrationType", "message", "status", "transactionId"]) + nullable_fields = set(["integrationType", "message", "status", "transactionId"]) serialized = handler(self) - m = {} - for n, f in self.model_fields.items(): + for n, f in type(self).model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member + is_nullable_and_explicitly_set = ( + k in nullable_fields + and (self.__pydantic_fields_set__.intersection({n})) # pylint: disable=no-member + ) - if val is not None and val != UNSET_SENTINEL: - m[k] = val - elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) - ): - m[k] = val + if val != UNSET_SENTINEL: + if ( + val is not None + or k not in optional_fields + or is_nullable_and_explicitly_set + ): + m[k] = val return m + + +try: + SchemaTransaction.model_rebuild() +except NameError: + pass diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/supplementaldata.py b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/supplementaldata.py index 13efdf898..c39439553 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/supplementaldata.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/supplementaldata.py @@ -32,30 +32,25 @@ class SupplementalData(BaseModel): @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = ["content"] - nullable_fields = ["content"] - null_default_fields = [] - + optional_fields = set(["content"]) + nullable_fields = set(["content"]) serialized = handler(self) - m = {} - for n, f in self.model_fields.items(): + for n, f in type(self).model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member - - if val is not None and val != UNSET_SENTINEL: - m[k] = val - elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) - ): - m[k] = val + is_nullable_and_explicitly_set = ( + k in nullable_fields + and (self.__pydantic_fields_set__.intersection({n})) # pylint: disable=no-member + ) + + if val != UNSET_SENTINEL: + if ( + val is not None + or k not in optional_fields + or is_nullable_and_explicitly_set + ): + m[k] = val return m diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/supplier.py b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/supplier.py index 84c775d2b..1acfb52e3 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/supplier.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/supplier.py @@ -120,53 +120,58 @@ class Supplier(BaseModel): @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "addresses", - "contactName", - "defaultCurrency", - "emailAddress", - "id", - "metadata", - "modifiedDate", - "phone", - "registrationNumber", - "sourceModifiedDate", - "supplementalData", - "supplierName", - "taxNumber", - ] - nullable_fields = [ - "addresses", - "contactName", - "defaultCurrency", - "emailAddress", - "phone", - "registrationNumber", - "supplierName", - "taxNumber", - ] - null_default_fields = [] - + optional_fields = set( + [ + "addresses", + "contactName", + "defaultCurrency", + "emailAddress", + "id", + "metadata", + "modifiedDate", + "phone", + "registrationNumber", + "sourceModifiedDate", + "supplementalData", + "supplierName", + "taxNumber", + ] + ) + nullable_fields = set( + [ + "addresses", + "contactName", + "defaultCurrency", + "emailAddress", + "phone", + "registrationNumber", + "supplierName", + "taxNumber", + ] + ) serialized = handler(self) - m = {} - for n, f in self.model_fields.items(): + for n, f in type(self).model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) + is_nullable_and_explicitly_set = ( + k in nullable_fields + and (self.__pydantic_fields_set__.intersection({n})) # pylint: disable=no-member + ) + + if val != UNSET_SENTINEL: + if ( + val is not None + or k not in optional_fields + or is_nullable_and_explicitly_set + ): + m[k] = val - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member + return m - if val is not None and val != UNSET_SENTINEL: - m[k] = val - elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) - ): - m[k] = val - return m +try: + Supplier.model_rebuild() +except NameError: + pass diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/supplierdetails.py b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/supplierdetails.py index 698b947c3..4ee414aef 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/supplierdetails.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/supplierdetails.py @@ -1,7 +1,8 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from codat_sync_for_expenses.types import BaseModel +from codat_sync_for_expenses.types import BaseModel, UNSET_SENTINEL +from pydantic import model_serializer from typing import Optional from typing_extensions import NotRequired, TypedDict @@ -14,3 +15,19 @@ class SupplierDetailsTypedDict(TypedDict): class SupplierDetails(BaseModel): id: Optional[str] = None r"""Identifier for the supplier, unique to the company in the accounting software.""" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["id"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/suppliers.py b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/suppliers.py index db0bc44e9..197c4d281 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/suppliers.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/suppliers.py @@ -3,8 +3,9 @@ from __future__ import annotations from .links import Links, LinksTypedDict from .supplier import Supplier, SupplierTypedDict -from codat_sync_for_expenses.types import BaseModel +from codat_sync_for_expenses.types import BaseModel, Nullable, UNSET_SENTINEL import pydantic +from pydantic import model_serializer from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict @@ -17,7 +18,7 @@ class SuppliersTypedDict(TypedDict): r"""Number of items to return in results array.""" total_results: int r"""Total number of items.""" - results: NotRequired[List[SupplierTypedDict]] + results: NotRequired[List[Nullable[SupplierTypedDict]]] class Suppliers(BaseModel): @@ -32,4 +33,26 @@ class Suppliers(BaseModel): total_results: Annotated[int, pydantic.Field(alias="totalResults")] r"""Total number of items.""" - results: Optional[List[Supplier]] = None + results: Optional[List[Nullable[Supplier]]] = None + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["results"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m + + +try: + Suppliers.model_rebuild() +except NameError: + pass diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/synccompletewebhook.py b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/synccompletewebhook.py deleted file mode 100644 index 8eff079f5..000000000 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/synccompletewebhook.py +++ /dev/null @@ -1,66 +0,0 @@ -"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" - -from __future__ import annotations -from .synccompletewebhookdata import ( - SyncCompleteWebhookData, - SyncCompleteWebhookDataTypedDict, -) -from codat_sync_for_expenses.types import BaseModel -import pydantic -from typing import Optional -from typing_extensions import Annotated, NotRequired, TypedDict - - -class SyncCompleteWebhookTypedDict(TypedDict): - r"""Webhook request body used to notify that a sync has completed.""" - - alert_id: NotRequired[str] - r"""Unique identifier of the webhook event.""" - client_id: NotRequired[str] - r"""Unique identifier for your client in Codat.""" - client_name: NotRequired[str] - r"""Name of your client in Codat.""" - company_id: NotRequired[str] - r"""Unique identifier for your SMB in Codat.""" - data: NotRequired[SyncCompleteWebhookDataTypedDict] - message: NotRequired[str] - r"""A human-readable message about the webhook.""" - rule_id: NotRequired[str] - r"""Unique identifier for the rule.""" - rule_type: NotRequired[str] - r"""The type of rule.""" - - -class SyncCompleteWebhook(BaseModel): - r"""Webhook request body used to notify that a sync has completed.""" - - alert_id: Annotated[Optional[str], pydantic.Field(alias="AlertId")] = None - r"""Unique identifier of the webhook event.""" - - client_id: Annotated[Optional[str], pydantic.Field(alias="ClientId")] = None - r"""Unique identifier for your client in Codat.""" - - client_name: Annotated[Optional[str], pydantic.Field(alias="ClientName")] = None - r"""Name of your client in Codat.""" - - company_id: Annotated[Optional[str], pydantic.Field(alias="CompanyId")] = None - r"""Unique identifier for your SMB in Codat.""" - - data: Annotated[Optional[SyncCompleteWebhookData], pydantic.Field(alias="Data")] = ( - None - ) - - message: Annotated[Optional[str], pydantic.Field(alias="Message")] = None - r"""A human-readable message about the webhook.""" - - rule_id: Annotated[ - Optional[str], - pydantic.Field( - deprecated="warning: ** DEPRECATED ** - This will be removed in a future release, please migrate away from it as soon as possible.", - alias="RuleId", - ), - ] = None - r"""Unique identifier for the rule.""" - - rule_type: Annotated[Optional[str], pydantic.Field(alias="RuleType")] = None - r"""The type of rule.""" diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/synccompletewebhookdata.py b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/synccompletewebhookdata.py deleted file mode 100644 index e833c7339..000000000 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/synccompletewebhookdata.py +++ /dev/null @@ -1,22 +0,0 @@ -"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" - -from __future__ import annotations -from codat_sync_for_expenses.types import BaseModel -import pydantic -from typing import Optional -from typing_extensions import Annotated, NotRequired, TypedDict - - -class SyncCompleteWebhookDataTypedDict(TypedDict): - sync_id: NotRequired[str] - r"""Unique identifier for the failed sync.""" - sync_type: NotRequired[str] - r"""The type of sync being performed.""" - - -class SyncCompleteWebhookData(BaseModel): - sync_id: Annotated[Optional[str], pydantic.Field(alias="syncId")] = None - r"""Unique identifier for the failed sync.""" - - sync_type: Annotated[Optional[str], pydantic.Field(alias="syncType")] = None - r"""The type of sync being performed.""" diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/syncfailedwebhook.py b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/syncfailedwebhook.py deleted file mode 100644 index a40d0a888..000000000 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/syncfailedwebhook.py +++ /dev/null @@ -1,63 +0,0 @@ -"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" - -from __future__ import annotations -from .syncfailedwebhookdata import SyncFailedWebhookData, SyncFailedWebhookDataTypedDict -from codat_sync_for_expenses.types import BaseModel -import pydantic -from typing import Optional -from typing_extensions import Annotated, NotRequired, TypedDict - - -class SyncFailedWebhookTypedDict(TypedDict): - r"""Webhook request body used to notify that a sync has failed.""" - - alert_id: NotRequired[str] - r"""Unique identifier of the webhook event.""" - client_id: NotRequired[str] - r"""Unique identifier for your client in Codat.""" - client_name: NotRequired[str] - r"""Name of your client in Codat.""" - company_id: NotRequired[str] - r"""Unique identifier for your SMB in Codat.""" - data: NotRequired[SyncFailedWebhookDataTypedDict] - message: NotRequired[str] - r"""A human-readable message about the webhook.""" - rule_id: NotRequired[str] - r"""Unique identifier for the rule.""" - rule_type: NotRequired[str] - r"""The type of rule.""" - - -class SyncFailedWebhook(BaseModel): - r"""Webhook request body used to notify that a sync has failed.""" - - alert_id: Annotated[Optional[str], pydantic.Field(alias="AlertId")] = None - r"""Unique identifier of the webhook event.""" - - client_id: Annotated[Optional[str], pydantic.Field(alias="ClientId")] = None - r"""Unique identifier for your client in Codat.""" - - client_name: Annotated[Optional[str], pydantic.Field(alias="ClientName")] = None - r"""Name of your client in Codat.""" - - company_id: Annotated[Optional[str], pydantic.Field(alias="CompanyId")] = None - r"""Unique identifier for your SMB in Codat.""" - - data: Annotated[Optional[SyncFailedWebhookData], pydantic.Field(alias="Data")] = ( - None - ) - - message: Annotated[Optional[str], pydantic.Field(alias="Message")] = None - r"""A human-readable message about the webhook.""" - - rule_id: Annotated[ - Optional[str], - pydantic.Field( - deprecated="warning: ** DEPRECATED ** - This will be removed in a future release, please migrate away from it as soon as possible.", - alias="RuleId", - ), - ] = None - r"""Unique identifier for the rule.""" - - rule_type: Annotated[Optional[str], pydantic.Field(alias="RuleType")] = None - r"""The type of rule.""" diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/syncfailedwebhookdata.py b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/syncfailedwebhookdata.py deleted file mode 100644 index ee84bab4d..000000000 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/syncfailedwebhookdata.py +++ /dev/null @@ -1,27 +0,0 @@ -"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" - -from __future__ import annotations -from codat_sync_for_expenses.types import BaseModel -import pydantic -from typing import Optional -from typing_extensions import Annotated, NotRequired, TypedDict - - -class SyncFailedWebhookDataTypedDict(TypedDict): - failure_stage: NotRequired[str] - r"""The stage of the job the sync failed.""" - sync_id: NotRequired[str] - r"""Unique identifier for the failed sync.""" - sync_type: NotRequired[str] - r"""The type of sync being performed.""" - - -class SyncFailedWebhookData(BaseModel): - failure_stage: Annotated[Optional[str], pydantic.Field(alias="FailureStage")] = None - r"""The stage of the job the sync failed.""" - - sync_id: Annotated[Optional[str], pydantic.Field(alias="syncId")] = None - r"""Unique identifier for the failed sync.""" - - sync_type: Annotated[Optional[str], pydantic.Field(alias="syncType")] = None - r"""The type of sync being performed.""" diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/taxratemappinginfo.py b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/taxratemappinginfo.py index 1ac6d178d..9b14b78b2 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/taxratemappinginfo.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/taxratemappinginfo.py @@ -72,37 +72,40 @@ class TaxRateMappingInfo(BaseModel): @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "code", - "effectiveTaxRate", - "id", - "name", - "totalTaxRate", - "validTransactionTypes", - ] - nullable_fields = ["code"] - null_default_fields = [] - + optional_fields = set( + [ + "code", + "effectiveTaxRate", + "id", + "name", + "totalTaxRate", + "validTransactionTypes", + ] + ) + nullable_fields = set(["code"]) serialized = handler(self) - m = {} - for n, f in self.model_fields.items(): + for n, f in type(self).model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) + is_nullable_and_explicitly_set = ( + k in nullable_fields + and (self.__pydantic_fields_set__.intersection({n})) # pylint: disable=no-member + ) + + if val != UNSET_SENTINEL: + if ( + val is not None + or k not in optional_fields + or is_nullable_and_explicitly_set + ): + m[k] = val - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member + return m - if val is not None and val != UNSET_SENTINEL: - m[k] = val - elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) - ): - m[k] = val - return m +try: + TaxRateMappingInfo.model_rebuild() +except NameError: + pass diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/trackingcategorymappinginfo.py b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/trackingcategorymappinginfo.py index c79ee992d..f2f9314e0 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/trackingcategorymappinginfo.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/trackingcategorymappinginfo.py @@ -42,30 +42,31 @@ class TrackingCategoryMappingInfo(BaseModel): @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = ["hasChildren", "id", "name", "parentId"] - nullable_fields = ["parentId"] - null_default_fields = [] - + optional_fields = set(["hasChildren", "id", "name", "parentId"]) + nullable_fields = set(["parentId"]) serialized = handler(self) - m = {} - for n, f in self.model_fields.items(): + for n, f in type(self).model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member + is_nullable_and_explicitly_set = ( + k in nullable_fields + and (self.__pydantic_fields_set__.intersection({n})) # pylint: disable=no-member + ) - if val is not None and val != UNSET_SENTINEL: - m[k] = val - elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) - ): - m[k] = val + if val != UNSET_SENTINEL: + if ( + val is not None + or k not in optional_fields + or is_nullable_and_explicitly_set + ): + m[k] = val return m + + +try: + TrackingCategoryMappingInfo.model_rebuild() +except NameError: + pass diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/trackingref.py b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/trackingref.py index 09b3016f6..14381c67b 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/trackingref.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/trackingref.py @@ -1,9 +1,10 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from codat_sync_for_expenses.types import BaseModel +from codat_sync_for_expenses.types import BaseModel, UNSET_SENTINEL from enum import Enum import pydantic +from pydantic import model_serializer from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict @@ -30,3 +31,25 @@ class TrackingRef(BaseModel): id: Optional[str] = None r"""Unique identifier of the linked reference from mapping options or the unique identifier of the linked customer.""" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["dataType", "id"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m + + +try: + TrackingRef.model_rebuild() +except NameError: + pass diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/trackingrefadjustmenttransaction.py b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/trackingrefadjustmenttransaction.py index aec2a8b86..55f0a13de 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/trackingrefadjustmenttransaction.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/trackingrefadjustmenttransaction.py @@ -1,9 +1,10 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from codat_sync_for_expenses.types import BaseModel +from codat_sync_for_expenses.types import BaseModel, UNSET_SENTINEL from enum import Enum import pydantic +from pydantic import model_serializer from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict @@ -32,3 +33,25 @@ class TrackingRefAdjustmentTransaction(BaseModel): id: Optional[str] = None r"""Unique identifier of the linked reference from mapping options or the unique identifier of the linked customer or supplier.""" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["dataType", "id"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m + + +try: + TrackingRefAdjustmentTransaction.model_rebuild() +except NameError: + pass diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/transaction.py b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/transaction.py index ba7331ef8..78fa181b1 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/transaction.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/transaction.py @@ -48,30 +48,31 @@ class Transaction(BaseModel): @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = ["errorMessage", "id", "status"] - nullable_fields = ["errorMessage"] - null_default_fields = [] - + optional_fields = set(["errorMessage", "id", "status"]) + nullable_fields = set(["errorMessage"]) serialized = handler(self) - m = {} - for n, f in self.model_fields.items(): + for n, f in type(self).model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) + is_nullable_and_explicitly_set = ( + k in nullable_fields + and (self.__pydantic_fields_set__.intersection({n})) # pylint: disable=no-member + ) + + if val != UNSET_SENTINEL: + if ( + val is not None + or k not in optional_fields + or is_nullable_and_explicitly_set + ): + m[k] = val - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member + return m - if val is not None and val != UNSET_SENTINEL: - m[k] = val - elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) - ): - m[k] = val - return m +try: + Transaction.model_rebuild() +except NameError: + pass diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/transactions.py b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/transactions.py index 45eb316fc..f510a189c 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/transactions.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/transactions.py @@ -3,8 +3,9 @@ from __future__ import annotations from .links import Links, LinksTypedDict from .schema_transaction import SchemaTransaction, SchemaTransactionTypedDict -from codat_sync_for_expenses.types import BaseModel +from codat_sync_for_expenses.types import BaseModel, UNSET_SENTINEL import pydantic +from pydantic import model_serializer from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict @@ -33,3 +34,25 @@ class Transactions(BaseModel): r"""Total number of items.""" results: Optional[List[SchemaTransaction]] = None + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["results"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m + + +try: + Transactions.model_rebuild() +except NameError: + pass diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/transfertransactionrequest.py b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/transfertransactionrequest.py index 03b548288..1d49b7522 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/transfertransactionrequest.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/transfertransactionrequest.py @@ -1,10 +1,11 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from codat_sync_for_expenses.types import BaseModel +from codat_sync_for_expenses.types import BaseModel, UNSET_SENTINEL from codat_sync_for_expenses.utils import serialize_decimal, validate_decimal from decimal import Decimal import pydantic +from pydantic import model_serializer from pydantic.functional_serializers import PlainSerializer from pydantic.functional_validators import BeforeValidator from typing import Optional @@ -96,3 +97,33 @@ class TransferTransactionRequest(BaseModel): description: Optional[str] = None r"""Any private, company notes about the transaction.""" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["description"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m + + +try: + From.model_rebuild() +except NameError: + pass +try: + To.model_rebuild() +except NameError: + pass +try: + TransferTransactionRequest.model_rebuild() +except NameError: + pass diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/transfertransactionresponse.py b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/transfertransactionresponse.py index 00e6cfa64..b4f2ed72c 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/transfertransactionresponse.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/transfertransactionresponse.py @@ -1,8 +1,9 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from codat_sync_for_expenses.types import BaseModel +from codat_sync_for_expenses.types import BaseModel, UNSET_SENTINEL import pydantic +from pydantic import model_serializer from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict @@ -15,3 +16,25 @@ class TransferTransactionResponseTypedDict(TypedDict): class TransferTransactionResponse(BaseModel): sync_id: Annotated[Optional[str], pydantic.Field(alias="syncId")] = None r"""Unique id of sync created""" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["syncId"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m + + +try: + TransferTransactionResponse.model_rebuild() +except NameError: + pass diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/updatecustomerresponse.py b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/updatecustomerresponse.py index 9711d525b..f5f0cdaad 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/updatecustomerresponse.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/updatecustomerresponse.py @@ -156,55 +156,54 @@ class UpdateCustomerResponseAccountingCustomer(BaseModel): @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "addresses", - "contactName", - "contacts", - "customerName", - "defaultCurrency", - "emailAddress", - "id", - "metadata", - "modifiedDate", - "phone", - "registrationNumber", - "sourceModifiedDate", - "supplementalData", - "taxNumber", - ] - nullable_fields = [ - "addresses", - "contactName", - "contacts", - "customerName", - "emailAddress", - "phone", - "registrationNumber", - "taxNumber", - ] - null_default_fields = [] - + optional_fields = set( + [ + "addresses", + "contactName", + "contacts", + "customerName", + "defaultCurrency", + "emailAddress", + "id", + "metadata", + "modifiedDate", + "phone", + "registrationNumber", + "sourceModifiedDate", + "supplementalData", + "taxNumber", + ] + ) + nullable_fields = set( + [ + "addresses", + "contactName", + "contacts", + "customerName", + "emailAddress", + "phone", + "registrationNumber", + "taxNumber", + ] + ) serialized = handler(self) - m = {} - for n, f in self.model_fields.items(): + for n, f in type(self).model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member - - if val is not None and val != UNSET_SENTINEL: - m[k] = val - elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) - ): - m[k] = val + is_nullable_and_explicitly_set = ( + k in nullable_fields + and (self.__pydantic_fields_set__.intersection({n})) # pylint: disable=no-member + ) + + if val != UNSET_SENTINEL: + if ( + val is not None + or k not in optional_fields + or is_nullable_and_explicitly_set + ): + m[k] = val return m @@ -371,45 +370,48 @@ class UpdateCustomerResponse(BaseModel): @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "changes", - "completedOnUtc", - "data", - "dataType", - "errorMessage", - "timeoutInMinutes", - "timeoutInSeconds", - "validation", - ] - nullable_fields = [ - "changes", - "data", - "errorMessage", - "timeoutInMinutes", - "timeoutInSeconds", - ] - null_default_fields = [] - + optional_fields = set( + [ + "changes", + "completedOnUtc", + "data", + "dataType", + "errorMessage", + "timeoutInMinutes", + "timeoutInSeconds", + "validation", + ] + ) + nullable_fields = set( + ["changes", "data", "errorMessage", "timeoutInMinutes", "timeoutInSeconds"] + ) serialized = handler(self) - m = {} - for n, f in self.model_fields.items(): + for n, f in type(self).model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) + is_nullable_and_explicitly_set = ( + k in nullable_fields + and (self.__pydantic_fields_set__.intersection({n})) # pylint: disable=no-member + ) + + if val != UNSET_SENTINEL: + if ( + val is not None + or k not in optional_fields + or is_nullable_and_explicitly_set + ): + m[k] = val - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member + return m - if val is not None and val != UNSET_SENTINEL: - m[k] = val - elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) - ): - m[k] = val - return m +try: + UpdateCustomerResponseAccountingCustomer.model_rebuild() +except NameError: + pass +try: + UpdateCustomerResponse.model_rebuild() +except NameError: + pass diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/updateexpenserequest.py b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/updateexpenserequest.py index bdeddb1f2..b37c5aa92 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/updateexpenserequest.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/updateexpenserequest.py @@ -33,6 +33,22 @@ class UpdateExpenseRequestBankAccountReference(BaseModel): id: Optional[str] = None r"""Identifier of the bank account.""" + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["id"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m + class UpdateExpenseRequestType(str, Enum): r"""The type of transaction.""" @@ -166,37 +182,40 @@ class UpdateExpenseRequest(BaseModel): @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "bankAccountRef", - "contactRef", - "currencyRate", - "lines", - "merchantName", - "notes", - ] - nullable_fields = ["currencyRate"] - null_default_fields = [] - + optional_fields = set( + [ + "bankAccountRef", + "contactRef", + "currencyRate", + "lines", + "merchantName", + "notes", + ] + ) + nullable_fields = set(["currencyRate"]) serialized = handler(self) - m = {} - for n, f in self.model_fields.items(): + for n, f in type(self).model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) + is_nullable_and_explicitly_set = ( + k in nullable_fields + and (self.__pydantic_fields_set__.intersection({n})) # pylint: disable=no-member + ) + + if val != UNSET_SENTINEL: + if ( + val is not None + or k not in optional_fields + or is_nullable_and_explicitly_set + ): + m[k] = val - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member + return m - if val is not None and val != UNSET_SENTINEL: - m[k] = val - elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) - ): - m[k] = val - return m +try: + UpdateExpenseRequest.model_rebuild() +except NameError: + pass diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/updateexpenseresponse.py b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/updateexpenseresponse.py index 66ba82a8d..895e0eec5 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/updateexpenseresponse.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/updateexpenseresponse.py @@ -1,8 +1,9 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from codat_sync_for_expenses.types import BaseModel +from codat_sync_for_expenses.types import BaseModel, UNSET_SENTINEL import pydantic +from pydantic import model_serializer from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict @@ -15,3 +16,25 @@ class UpdateExpenseResponseTypedDict(TypedDict): class UpdateExpenseResponse(BaseModel): sync_id: Annotated[Optional[str], pydantic.Field(alias="syncId")] = None r"""Unique identifier for the update expense sync.""" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["syncId"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m + + +try: + UpdateExpenseResponse.model_rebuild() +except NameError: + pass diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/updatereimbursableexpensetransactionrequest.py b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/updatereimbursableexpensetransactionrequest.py index bb5b62e0c..4bce9f4cd 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/updatereimbursableexpensetransactionrequest.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/updatereimbursableexpensetransactionrequest.py @@ -223,36 +223,33 @@ class UpdateReimbursableExpenseTransactionRequest(BaseModel): @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "apAccountRef", - "currencyRate", - "lines", - "notes", - "reference", - ] - nullable_fields = ["apAccountRef", "currencyRate", "reference"] - null_default_fields = [] - + optional_fields = set( + ["apAccountRef", "currencyRate", "lines", "notes", "reference"] + ) + nullable_fields = set(["apAccountRef", "currencyRate", "reference"]) serialized = handler(self) - m = {} - for n, f in self.model_fields.items(): + for n, f in type(self).model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) + is_nullable_and_explicitly_set = ( + k in nullable_fields + and (self.__pydantic_fields_set__.intersection({n})) # pylint: disable=no-member + ) + + if val != UNSET_SENTINEL: + if ( + val is not None + or k not in optional_fields + or is_nullable_and_explicitly_set + ): + m[k] = val - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member + return m - if val is not None and val != UNSET_SENTINEL: - m[k] = val - elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) - ): - m[k] = val - return m +try: + UpdateReimbursableExpenseTransactionRequest.model_rebuild() +except NameError: + pass diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/updatesupplierresponse.py b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/updatesupplierresponse.py index 7a8d837f3..b3065bc7c 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/updatesupplierresponse.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/updatesupplierresponse.py @@ -130,54 +130,53 @@ class UpdateSupplierResponseAccountingSupplier(BaseModel): @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "addresses", - "contactName", - "defaultCurrency", - "emailAddress", - "id", - "metadata", - "modifiedDate", - "phone", - "registrationNumber", - "sourceModifiedDate", - "supplementalData", - "supplierName", - "taxNumber", - ] - nullable_fields = [ - "addresses", - "contactName", - "defaultCurrency", - "emailAddress", - "phone", - "registrationNumber", - "supplierName", - "taxNumber", - ] - null_default_fields = [] - + optional_fields = set( + [ + "addresses", + "contactName", + "defaultCurrency", + "emailAddress", + "id", + "metadata", + "modifiedDate", + "phone", + "registrationNumber", + "sourceModifiedDate", + "supplementalData", + "supplierName", + "taxNumber", + ] + ) + nullable_fields = set( + [ + "addresses", + "contactName", + "defaultCurrency", + "emailAddress", + "phone", + "registrationNumber", + "supplierName", + "taxNumber", + ] + ) serialized = handler(self) - m = {} - for n, f in self.model_fields.items(): + for n, f in type(self).model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member - - if val is not None and val != UNSET_SENTINEL: - m[k] = val - elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) - ): - m[k] = val + is_nullable_and_explicitly_set = ( + k in nullable_fields + and (self.__pydantic_fields_set__.intersection({n})) # pylint: disable=no-member + ) + + if val != UNSET_SENTINEL: + if ( + val is not None + or k not in optional_fields + or is_nullable_and_explicitly_set + ): + m[k] = val return m @@ -344,45 +343,48 @@ class UpdateSupplierResponse(BaseModel): @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "changes", - "completedOnUtc", - "data", - "dataType", - "errorMessage", - "timeoutInMinutes", - "timeoutInSeconds", - "validation", - ] - nullable_fields = [ - "changes", - "data", - "errorMessage", - "timeoutInMinutes", - "timeoutInSeconds", - ] - null_default_fields = [] - + optional_fields = set( + [ + "changes", + "completedOnUtc", + "data", + "dataType", + "errorMessage", + "timeoutInMinutes", + "timeoutInSeconds", + "validation", + ] + ) + nullable_fields = set( + ["changes", "data", "errorMessage", "timeoutInMinutes", "timeoutInSeconds"] + ) serialized = handler(self) - m = {} - for n, f in self.model_fields.items(): + for n, f in type(self).model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) + is_nullable_and_explicitly_set = ( + k in nullable_fields + and (self.__pydantic_fields_set__.intersection({n})) # pylint: disable=no-member + ) + + if val != UNSET_SENTINEL: + if ( + val is not None + or k not in optional_fields + or is_nullable_and_explicitly_set + ): + m[k] = val - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member + return m - if val is not None and val != UNSET_SENTINEL: - m[k] = val - elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) - ): - m[k] = val - return m +try: + UpdateSupplierResponseAccountingSupplier.model_rebuild() +except NameError: + pass +try: + UpdateSupplierResponse.model_rebuild() +except NameError: + pass diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/validation.py b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/validation.py index a9a645b05..c528aa693 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/validation.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/validation.py @@ -30,30 +30,25 @@ class Validation(BaseModel): @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = ["errors", "warnings"] - nullable_fields = ["errors", "warnings"] - null_default_fields = [] - + optional_fields = set(["errors", "warnings"]) + nullable_fields = set(["errors", "warnings"]) serialized = handler(self) - m = {} - for n, f in self.model_fields.items(): + for n, f in type(self).model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member - - if val is not None and val != UNSET_SENTINEL: - m[k] = val - elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) - ): - m[k] = val + is_nullable_and_explicitly_set = ( + k in nullable_fields + and (self.__pydantic_fields_set__.intersection({n})) # pylint: disable=no-member + ) + + if val != UNSET_SENTINEL: + if ( + val is not None + or k not in optional_fields + or is_nullable_and_explicitly_set + ): + m[k] = val return m diff --git a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/validationitem.py b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/validationitem.py index 5b161f9c5..9caa2170c 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/models/shared/validationitem.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/models/shared/validationitem.py @@ -36,30 +36,31 @@ class ValidationItem(BaseModel): @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = ["itemId", "message", "validatorName"] - nullable_fields = ["itemId", "message", "validatorName"] - null_default_fields = [] - + optional_fields = set(["itemId", "message", "validatorName"]) + nullable_fields = set(["itemId", "message", "validatorName"]) serialized = handler(self) - m = {} - for n, f in self.model_fields.items(): + for n, f in type(self).model_fields.items(): k = f.alias or n val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member + is_nullable_and_explicitly_set = ( + k in nullable_fields + and (self.__pydantic_fields_set__.intersection({n})) # pylint: disable=no-member + ) - if val is not None and val != UNSET_SENTINEL: - m[k] = val - elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) - ): - m[k] = val + if val != UNSET_SENTINEL: + if ( + val is not None + or k not in optional_fields + or is_nullable_and_explicitly_set + ): + m[k] = val return m + + +try: + ValidationItem.model_rebuild() +except NameError: + pass diff --git a/sync-for-expenses/src/codat_sync_for_expenses/push_operations.py b/sync-for-expenses/src/codat_sync_for_expenses/push_operations.py index e1b4c96be..e3736b565 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/push_operations.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/push_operations.py @@ -5,7 +5,10 @@ from codat_sync_for_expenses._hooks import HookContext from codat_sync_for_expenses.models import errors, operations, shared from codat_sync_for_expenses.types import BaseModel, OptionalNullable, UNSET -from typing import Any, Optional, Union, cast +from codat_sync_for_expenses.utils.unmarshal_json_response import ( + unmarshal_json_response, +) +from typing import Any, Mapping, Optional, Union, cast class PushOperations(BaseSDK): @@ -21,7 +24,8 @@ def get( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[shared.PushOperation]: + http_headers: Optional[Mapping[str, str]] = None, + ) -> shared.PushOperation: r"""Get push operation Retrieve push operation. @@ -30,6 +34,7 @@ def get( :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. """ base_url = None url_variables = None @@ -38,12 +43,14 @@ def get( if server_url is not None: base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) if not isinstance(request, BaseModel): request = utils.unmarshal(request, operations.GetPushOperationRequest) request = cast(operations.GetPushOperationRequest, request) - req = self.build_request( + req = self._build_request( method="GET", path="/companies/{companyId}/push/{pushOperationKey}", base_url=base_url, @@ -54,7 +61,9 @@ def get( request_has_query_params=True, user_agent_header="user-agent", accept_header_value="application/json", + http_headers=http_headers, security=self.sdk_configuration.security, + allow_empty_value=None, timeout_ms=timeout_ms, ) @@ -72,8 +81,10 @@ def get( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", operation_id="get-push-operation", - oauth2_scopes=[], + oauth2_scopes=None, security_source=self.sdk_configuration.security, ), request=req, @@ -91,30 +102,25 @@ def get( retry_config=retry_config, ) - data: Any = None + response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json(http_res.text, Optional[shared.PushOperation]) + return unmarshal_json_response(shared.PushOperation, http_res) if utils.match_response( - http_res, - ["401", "402", "403", "404", "429", "500", "503"], - "application/json", + http_res, ["401", "402", "403", "404", "429"], "application/json" ): - data = utils.unmarshal_json(http_res.text, errors.ErrorMessageData) - raise errors.ErrorMessage(data=data) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, ["500", "503"], "application/json"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) - - content_type = http_res.headers.get("Content-Type") - http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res_text, - http_res, - ) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = utils.stream_to_text(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) + + raise errors.SDKError("Unexpected response received", http_res) async def get_async( self, @@ -126,7 +132,8 @@ async def get_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[shared.PushOperation]: + http_headers: Optional[Mapping[str, str]] = None, + ) -> shared.PushOperation: r"""Get push operation Retrieve push operation. @@ -135,6 +142,7 @@ async def get_async( :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. """ base_url = None url_variables = None @@ -143,12 +151,14 @@ async def get_async( if server_url is not None: base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) if not isinstance(request, BaseModel): request = utils.unmarshal(request, operations.GetPushOperationRequest) request = cast(operations.GetPushOperationRequest, request) - req = self.build_request_async( + req = self._build_request_async( method="GET", path="/companies/{companyId}/push/{pushOperationKey}", base_url=base_url, @@ -159,7 +169,9 @@ async def get_async( request_has_query_params=True, user_agent_header="user-agent", accept_header_value="application/json", + http_headers=http_headers, security=self.sdk_configuration.security, + allow_empty_value=None, timeout_ms=timeout_ms, ) @@ -177,8 +189,10 @@ async def get_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", operation_id="get-push-operation", - oauth2_scopes=[], + oauth2_scopes=None, security_source=self.sdk_configuration.security, ), request=req, @@ -196,30 +210,25 @@ async def get_async( retry_config=retry_config, ) - data: Any = None + response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json(http_res.text, Optional[shared.PushOperation]) + return unmarshal_json_response(shared.PushOperation, http_res) if utils.match_response( - http_res, - ["401", "402", "403", "404", "429", "500", "503"], - "application/json", + http_res, ["401", "402", "403", "404", "429"], "application/json" ): - data = utils.unmarshal_json(http_res.text, errors.ErrorMessageData) - raise errors.ErrorMessage(data=data) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, ["500", "503"], "application/json"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) - - content_type = http_res.headers.get("Content-Type") - http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res_text, - http_res, - ) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = await utils.stream_to_text_async(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) + + raise errors.SDKError("Unexpected response received", http_res) def list( self, @@ -231,7 +240,8 @@ def list( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[shared.PushOperations]: + http_headers: Optional[Mapping[str, str]] = None, + ) -> shared.PushOperations: r"""List push operations List push operation records. @@ -240,6 +250,7 @@ def list( :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. """ base_url = None url_variables = None @@ -248,12 +259,14 @@ def list( if server_url is not None: base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) if not isinstance(request, BaseModel): request = utils.unmarshal(request, operations.ListPushOperationsRequest) request = cast(operations.ListPushOperationsRequest, request) - req = self.build_request( + req = self._build_request( method="GET", path="/companies/{companyId}/push", base_url=base_url, @@ -264,7 +277,9 @@ def list( request_has_query_params=True, user_agent_header="user-agent", accept_header_value="application/json", + http_headers=http_headers, security=self.sdk_configuration.security, + allow_empty_value=None, timeout_ms=timeout_ms, ) @@ -282,8 +297,10 @@ def list( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", operation_id="list-push-operations", - oauth2_scopes=[], + oauth2_scopes=None, security_source=self.sdk_configuration.security, ), request=req, @@ -302,30 +319,25 @@ def list( retry_config=retry_config, ) - data: Any = None + response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json(http_res.text, Optional[shared.PushOperations]) + return unmarshal_json_response(shared.PushOperations, http_res) if utils.match_response( - http_res, - ["400", "401", "402", "403", "404", "429", "500", "503"], - "application/json", + http_res, ["400", "401", "402", "403", "404", "429"], "application/json" ): - data = utils.unmarshal_json(http_res.text, errors.ErrorMessageData) - raise errors.ErrorMessage(data=data) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, ["500", "503"], "application/json"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) - - content_type = http_res.headers.get("Content-Type") - http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res_text, - http_res, - ) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = utils.stream_to_text(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) + + raise errors.SDKError("Unexpected response received", http_res) async def list_async( self, @@ -337,7 +349,8 @@ async def list_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[shared.PushOperations]: + http_headers: Optional[Mapping[str, str]] = None, + ) -> shared.PushOperations: r"""List push operations List push operation records. @@ -346,6 +359,7 @@ async def list_async( :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. """ base_url = None url_variables = None @@ -354,12 +368,14 @@ async def list_async( if server_url is not None: base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) if not isinstance(request, BaseModel): request = utils.unmarshal(request, operations.ListPushOperationsRequest) request = cast(operations.ListPushOperationsRequest, request) - req = self.build_request_async( + req = self._build_request_async( method="GET", path="/companies/{companyId}/push", base_url=base_url, @@ -370,7 +386,9 @@ async def list_async( request_has_query_params=True, user_agent_header="user-agent", accept_header_value="application/json", + http_headers=http_headers, security=self.sdk_configuration.security, + allow_empty_value=None, timeout_ms=timeout_ms, ) @@ -388,8 +406,10 @@ async def list_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", operation_id="list-push-operations", - oauth2_scopes=[], + oauth2_scopes=None, security_source=self.sdk_configuration.security, ), request=req, @@ -408,27 +428,22 @@ async def list_async( retry_config=retry_config, ) - data: Any = None + response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json(http_res.text, Optional[shared.PushOperations]) + return unmarshal_json_response(shared.PushOperations, http_res) if utils.match_response( - http_res, - ["400", "401", "402", "403", "404", "429", "500", "503"], - "application/json", + http_res, ["400", "401", "402", "403", "404", "429"], "application/json" ): - data = utils.unmarshal_json(http_res.text, errors.ErrorMessageData) - raise errors.ErrorMessage(data=data) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, ["500", "503"], "application/json"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) - - content_type = http_res.headers.get("Content-Type") - http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res_text, - http_res, - ) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = await utils.stream_to_text_async(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) + + raise errors.SDKError("Unexpected response received", http_res) diff --git a/sync-for-expenses/src/codat_sync_for_expenses/reimbursements.py b/sync-for-expenses/src/codat_sync_for_expenses/reimbursements.py index 6b349cd54..c88213a61 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/reimbursements.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/reimbursements.py @@ -5,7 +5,10 @@ from codat_sync_for_expenses._hooks import HookContext from codat_sync_for_expenses.models import errors, operations, shared from codat_sync_for_expenses.types import BaseModel, OptionalNullable, UNSET -from typing import Any, List, Optional, Union, cast +from codat_sync_for_expenses.utils.unmarshal_json_response import ( + unmarshal_json_response, +) +from typing import Any, List, Mapping, Optional, Union, cast class Reimbursements(BaseSDK): @@ -21,7 +24,8 @@ def create( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[shared.CreateReimbursableExpenseResponse]: + http_headers: Optional[Mapping[str, str]] = None, + ) -> shared.CreateReimbursableExpenseResponse: r"""Create reimbursable expense transaction Use the *Create reimbursable expense* endpoint to submit an employee expense claim in the accounting platform for a given company's connection. @@ -35,11 +39,14 @@ def create( | QuickBooks Desktop | Yes | | QuickBooks Online | Yes | | Oracle NetSuite | Yes | + | Zoho Books | Yes | + | Sage Intacct | Yes | :param request: The request object to send. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. """ base_url = None url_variables = None @@ -48,6 +55,8 @@ def create( if server_url is not None: base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) if not isinstance(request, BaseModel): request = utils.unmarshal( @@ -55,7 +64,7 @@ def create( ) request = cast(operations.CreateReimbursableExpenseTransactionRequest, request) - req = self.build_request( + req = self._build_request( method="POST", path="/companies/{companyId}/sync/expenses/reimbursable-expense-transactions", base_url=base_url, @@ -66,14 +75,16 @@ def create( request_has_query_params=True, user_agent_header="user-agent", accept_header_value="application/json", + http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request.request_body, + request.request_body if request is not None else None, False, True, "json", Optional[List[shared.ReimbursableExpenseTransaction]], ), + allow_empty_value=None, timeout_ms=timeout_ms, ) @@ -91,8 +102,10 @@ def create( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", operation_id="create-reimbursable-expense-transaction", - oauth2_scopes=[], + oauth2_scopes=None, security_source=self.sdk_configuration.security, ), request=req, @@ -111,32 +124,27 @@ def create( retry_config=retry_config, ) - data: Any = None + response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[shared.CreateReimbursableExpenseResponse] + return unmarshal_json_response( + shared.CreateReimbursableExpenseResponse, http_res ) if utils.match_response( - http_res, - ["400", "401", "402", "403", "404", "429", "500", "503"], - "application/json", + http_res, ["400", "401", "402", "403", "404", "429"], "application/json" ): - data = utils.unmarshal_json(http_res.text, errors.ErrorMessageData) - raise errors.ErrorMessage(data=data) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, ["500", "503"], "application/json"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = utils.stream_to_text(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) - content_type = http_res.headers.get("Content-Type") - http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res_text, - http_res, - ) + raise errors.SDKError("Unexpected response received", http_res) async def create_async( self, @@ -148,7 +156,8 @@ async def create_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[shared.CreateReimbursableExpenseResponse]: + http_headers: Optional[Mapping[str, str]] = None, + ) -> shared.CreateReimbursableExpenseResponse: r"""Create reimbursable expense transaction Use the *Create reimbursable expense* endpoint to submit an employee expense claim in the accounting platform for a given company's connection. @@ -162,11 +171,14 @@ async def create_async( | QuickBooks Desktop | Yes | | QuickBooks Online | Yes | | Oracle NetSuite | Yes | + | Zoho Books | Yes | + | Sage Intacct | Yes | :param request: The request object to send. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. """ base_url = None url_variables = None @@ -175,6 +187,8 @@ async def create_async( if server_url is not None: base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) if not isinstance(request, BaseModel): request = utils.unmarshal( @@ -182,7 +196,7 @@ async def create_async( ) request = cast(operations.CreateReimbursableExpenseTransactionRequest, request) - req = self.build_request_async( + req = self._build_request_async( method="POST", path="/companies/{companyId}/sync/expenses/reimbursable-expense-transactions", base_url=base_url, @@ -193,14 +207,16 @@ async def create_async( request_has_query_params=True, user_agent_header="user-agent", accept_header_value="application/json", + http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request.request_body, + request.request_body if request is not None else None, False, True, "json", Optional[List[shared.ReimbursableExpenseTransaction]], ), + allow_empty_value=None, timeout_ms=timeout_ms, ) @@ -218,8 +234,10 @@ async def create_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", operation_id="create-reimbursable-expense-transaction", - oauth2_scopes=[], + oauth2_scopes=None, security_source=self.sdk_configuration.security, ), request=req, @@ -238,32 +256,27 @@ async def create_async( retry_config=retry_config, ) - data: Any = None + response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[shared.CreateReimbursableExpenseResponse] + return unmarshal_json_response( + shared.CreateReimbursableExpenseResponse, http_res ) if utils.match_response( - http_res, - ["400", "401", "402", "403", "404", "429", "500", "503"], - "application/json", + http_res, ["400", "401", "402", "403", "404", "429"], "application/json" ): - data = utils.unmarshal_json(http_res.text, errors.ErrorMessageData) - raise errors.ErrorMessage(data=data) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, ["500", "503"], "application/json"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = await utils.stream_to_text_async(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) - content_type = http_res.headers.get("Content-Type") - http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res_text, - http_res, - ) + raise errors.SDKError("Unexpected response received", http_res) def update( self, @@ -275,7 +288,8 @@ def update( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[shared.CreateReimbursableExpenseResponse]: + http_headers: Optional[Mapping[str, str]] = None, + ) -> shared.CreateReimbursableExpenseResponse: r"""Update reimbursable expense transaction The *Update reimbursable expense* endpoint updates an existing employee expense claim in the accounting platform for a given company's connection. @@ -288,11 +302,14 @@ def update( | FreeAgent | Yes | | QuickBooks Online | Yes | | Oracle NetSuite | Yes | + | Sage Intacct | Yes | + | Zoho Books | Yes | :param request: The request object to send. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. """ base_url = None url_variables = None @@ -301,6 +318,8 @@ def update( if server_url is not None: base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) if not isinstance(request, BaseModel): request = utils.unmarshal( @@ -308,7 +327,7 @@ def update( ) request = cast(operations.UpdateReimbursableExpenseTransactionRequest, request) - req = self.build_request( + req = self._build_request( method="PUT", path="/companies/{companyId}/sync/expenses/reimbursable-expense-transactions/{transactionId}", base_url=base_url, @@ -319,14 +338,18 @@ def update( request_has_query_params=True, user_agent_header="user-agent", accept_header_value="application/json", + http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request.update_reimbursable_expense_transaction_request, + request.update_reimbursable_expense_transaction_request + if request is not None + else None, False, True, "json", Optional[shared.UpdateReimbursableExpenseTransactionRequest], ), + allow_empty_value=None, timeout_ms=timeout_ms, ) @@ -344,8 +367,10 @@ def update( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", operation_id="update-reimbursable-expense-transaction", - oauth2_scopes=[], + oauth2_scopes=None, security_source=self.sdk_configuration.security, ), request=req, @@ -364,32 +389,27 @@ def update( retry_config=retry_config, ) - data: Any = None + response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[shared.CreateReimbursableExpenseResponse] + return unmarshal_json_response( + shared.CreateReimbursableExpenseResponse, http_res ) if utils.match_response( - http_res, - ["400", "401", "402", "403", "404", "429", "500", "503"], - "application/json", + http_res, ["400", "401", "402", "403", "404", "429"], "application/json" ): - data = utils.unmarshal_json(http_res.text, errors.ErrorMessageData) - raise errors.ErrorMessage(data=data) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, ["500", "503"], "application/json"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = utils.stream_to_text(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) - content_type = http_res.headers.get("Content-Type") - http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res_text, - http_res, - ) + raise errors.SDKError("Unexpected response received", http_res) async def update_async( self, @@ -401,7 +421,8 @@ async def update_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[shared.CreateReimbursableExpenseResponse]: + http_headers: Optional[Mapping[str, str]] = None, + ) -> shared.CreateReimbursableExpenseResponse: r"""Update reimbursable expense transaction The *Update reimbursable expense* endpoint updates an existing employee expense claim in the accounting platform for a given company's connection. @@ -414,11 +435,14 @@ async def update_async( | FreeAgent | Yes | | QuickBooks Online | Yes | | Oracle NetSuite | Yes | + | Sage Intacct | Yes | + | Zoho Books | Yes | :param request: The request object to send. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. """ base_url = None url_variables = None @@ -427,6 +451,8 @@ async def update_async( if server_url is not None: base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) if not isinstance(request, BaseModel): request = utils.unmarshal( @@ -434,7 +460,7 @@ async def update_async( ) request = cast(operations.UpdateReimbursableExpenseTransactionRequest, request) - req = self.build_request_async( + req = self._build_request_async( method="PUT", path="/companies/{companyId}/sync/expenses/reimbursable-expense-transactions/{transactionId}", base_url=base_url, @@ -445,14 +471,18 @@ async def update_async( request_has_query_params=True, user_agent_header="user-agent", accept_header_value="application/json", + http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request.update_reimbursable_expense_transaction_request, + request.update_reimbursable_expense_transaction_request + if request is not None + else None, False, True, "json", Optional[shared.UpdateReimbursableExpenseTransactionRequest], ), + allow_empty_value=None, timeout_ms=timeout_ms, ) @@ -470,8 +500,10 @@ async def update_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", operation_id="update-reimbursable-expense-transaction", - oauth2_scopes=[], + oauth2_scopes=None, security_source=self.sdk_configuration.security, ), request=req, @@ -490,29 +522,24 @@ async def update_async( retry_config=retry_config, ) - data: Any = None + response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[shared.CreateReimbursableExpenseResponse] + return unmarshal_json_response( + shared.CreateReimbursableExpenseResponse, http_res ) if utils.match_response( - http_res, - ["400", "401", "402", "403", "404", "429", "500", "503"], - "application/json", + http_res, ["400", "401", "402", "403", "404", "429"], "application/json" ): - data = utils.unmarshal_json(http_res.text, errors.ErrorMessageData) - raise errors.ErrorMessage(data=data) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, ["500", "503"], "application/json"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = await utils.stream_to_text_async(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) - content_type = http_res.headers.get("Content-Type") - http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res_text, - http_res, - ) + raise errors.SDKError("Unexpected response received", http_res) diff --git a/sync-for-expenses/src/codat_sync_for_expenses/sdk.py b/sync-for-expenses/src/codat_sync_for_expenses/sdk.py index 7d5b511a9..83328ccee 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/sdk.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/sdk.py @@ -1,46 +1,51 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from .basesdk import BaseSDK -from .httpclient import AsyncHttpClient, HttpClient +from .httpclient import AsyncHttpClient, ClientOwner, HttpClient, close_clients from .sdkconfiguration import SDKConfiguration from .utils.logger import Logger, get_default_logger from .utils.retries import RetryConfig from codat_sync_for_expenses import utils from codat_sync_for_expenses._hooks import SDKHooks -from codat_sync_for_expenses.accounts import Accounts -from codat_sync_for_expenses.adjustments import Adjustments -from codat_sync_for_expenses.attachments import Attachments -from codat_sync_for_expenses.bank_accounts import BankAccounts -from codat_sync_for_expenses.companies import Companies -from codat_sync_for_expenses.company_info import CompanyInfo -from codat_sync_for_expenses.configuration import Configuration -from codat_sync_for_expenses.connections import Connections -from codat_sync_for_expenses.customers import Customers -from codat_sync_for_expenses.expenses import Expenses -from codat_sync_for_expenses.manage_data import ManageData -from codat_sync_for_expenses.mapping_options import MappingOptions from codat_sync_for_expenses.models import shared -from codat_sync_for_expenses.push_operations import PushOperations -from codat_sync_for_expenses.reimbursements import Reimbursements -from codat_sync_for_expenses.suppliers import Suppliers -from codat_sync_for_expenses.sync import Sync -from codat_sync_for_expenses.transaction_status import TransactionStatus -from codat_sync_for_expenses.transfers import Transfers from codat_sync_for_expenses.types import OptionalNullable, UNSET import httpx -from typing import Callable, Dict, Optional, Union +import importlib +import sys +from typing import Callable, Dict, Optional, TYPE_CHECKING, Union, cast +import weakref + +if TYPE_CHECKING: + from codat_sync_for_expenses.accounts import Accounts + from codat_sync_for_expenses.adjustments import Adjustments + from codat_sync_for_expenses.attachments import Attachments + from codat_sync_for_expenses.bank_accounts import BankAccounts + from codat_sync_for_expenses.companies import Companies + from codat_sync_for_expenses.company_info import CompanyInfo + from codat_sync_for_expenses.configuration import Configuration + from codat_sync_for_expenses.connections import Connections + from codat_sync_for_expenses.customers import Customers + from codat_sync_for_expenses.expenses import Expenses + from codat_sync_for_expenses.manage_data import ManageData + from codat_sync_for_expenses.mapping_options import MappingOptions + from codat_sync_for_expenses.push_operations import PushOperations + from codat_sync_for_expenses.reimbursements import Reimbursements + from codat_sync_for_expenses.suppliers import Suppliers + from codat_sync_for_expenses.sync import Sync + from codat_sync_for_expenses.transaction_status import TransactionStatus + from codat_sync_for_expenses.transfers import Transfers class CodatSyncExpenses(BaseSDK): - r"""Sync for Expenses: The API for Sync for Expenses. + r"""Expenses: The API for Codat's Expenses solution. - Sync for Expenses is an API and a set of supporting tools. It has been built to + Expenses is an API and a set of supporting tools. It has been built to enable corporate card and expense management platforms to provide high-quality integrations with multiple accounting software through a standardized API. - [Explore product](https://docs.codat.io/sync-for-expenses/overview) | [See our OpenAPI spec](https://github.com/codatio/oas) + [Explore solution](https://docs.codat.io/sync-for-expenses/overview) | [See our OpenAPI spec](https://github.com/codatio/oas) - Not seeing the endpoints you're expecting? We've [reorganized our products](https://docs.codat.io/updates/230901-new-products), and you may be using a [different version of Sync for Expenses](https://docs.codat.io/sync-for-expenses-v1-api#/). + Not seeing the endpoints you're expecting? We've [reorganized our solutions](https://docs.codat.io/updates/230901-new-products), and you may be using a [different version of Expenses](https://docs.codat.io/sync-for-expenses-v1-api#/). --- @@ -65,49 +70,78 @@ class CodatSyncExpenses(BaseSDK): """ - companies: Companies + companies: "Companies" r"""Create and manage your SMB users' companies.""" - connections: Connections + connections: "Connections" r"""Create new and manage existing data connections for a company.""" - bank_accounts: BankAccounts + bank_accounts: "BankAccounts" r"""Create bank accounts and view create bank account options.""" - accounts: Accounts + accounts: "Accounts" r"""Create accounts and view create account options.""" - customers: Customers + customers: "Customers" r"""Get, create, and update customers.""" - suppliers: Suppliers + suppliers: "Suppliers" r"""Get, create, and update suppliers.""" - manage_data: ManageData + manage_data: "ManageData" r"""Control and monitor the retrieval of data from an integration.""" - company_info: CompanyInfo + company_info: "CompanyInfo" r"""View the company information of your customers' linked accounting software.""" - push_operations: PushOperations + push_operations: "PushOperations" r"""View historic push operations.""" - adjustments: Adjustments + adjustments: "Adjustments" r"""Create transactions that represent your adjustments to your customers' spend.""" - configuration: Configuration + configuration: "Configuration" r"""View and manage mapping configuration and defaults for expense transactions.""" - expenses: Expenses + expenses: "Expenses" r"""Create and update transactions that represent your customers' spend.""" - mapping_options: MappingOptions + mapping_options: "MappingOptions" r"""Get accounts, trackingCategories and taxRates that can be used in your create and update requests.""" - reimbursements: Reimbursements + reimbursements: "Reimbursements" r"""Create and update transactions that represent your customers' repayable spend.""" - sync: Sync + sync: "Sync" r"""Monitor the status of data syncs.""" - transaction_status: TransactionStatus + transaction_status: "TransactionStatus" r"""Monitor the status of individual transactions in data syncs.""" - attachments: Attachments + attachments: "Attachments" r"""Attach receipts to a transaction for a complete audit trail.""" - transfers: Transfers + transfers: "Transfers" r"""Create and update transactions that represent the movement of your customers' money.""" + _sub_sdk_map = { + "companies": ("codat_sync_for_expenses.companies", "Companies"), + "connections": ("codat_sync_for_expenses.connections", "Connections"), + "bank_accounts": ("codat_sync_for_expenses.bank_accounts", "BankAccounts"), + "accounts": ("codat_sync_for_expenses.accounts", "Accounts"), + "customers": ("codat_sync_for_expenses.customers", "Customers"), + "suppliers": ("codat_sync_for_expenses.suppliers", "Suppliers"), + "manage_data": ("codat_sync_for_expenses.manage_data", "ManageData"), + "company_info": ("codat_sync_for_expenses.company_info", "CompanyInfo"), + "push_operations": ( + "codat_sync_for_expenses.push_operations", + "PushOperations", + ), + "adjustments": ("codat_sync_for_expenses.adjustments", "Adjustments"), + "configuration": ("codat_sync_for_expenses.configuration", "Configuration"), + "expenses": ("codat_sync_for_expenses.expenses", "Expenses"), + "mapping_options": ( + "codat_sync_for_expenses.mapping_options", + "MappingOptions", + ), + "reimbursements": ("codat_sync_for_expenses.reimbursements", "Reimbursements"), + "sync": ("codat_sync_for_expenses.sync", "Sync"), + "transaction_status": ( + "codat_sync_for_expenses.transaction_status", + "TransactionStatus", + ), + "attachments": ("codat_sync_for_expenses.attachments", "Attachments"), + "transfers": ("codat_sync_for_expenses.transfers", "Transfers"), + } def __init__( self, security: Union[shared.Security, Callable[[], shared.Security]], server_idx: Optional[int] = None, - server_url: Optional[str] = None, url_params: Optional[Dict[str, str]] = None, + server_url: Optional[str] = None, client: Optional[HttpClient] = None, async_client: Optional[AsyncHttpClient] = None, retry_config: OptionalNullable[RetryConfig] = UNSET, @@ -125,15 +159,19 @@ def __init__( :param retry_config: The retry configuration to use for all supported methods :param timeout_ms: Optional request timeout applied to each operation in milliseconds """ + client_supplied = True if client is None: - client = httpx.Client() + client = httpx.Client(follow_redirects=True) + client_supplied = False assert issubclass( type(client), HttpClient ), "The provided client must implement the HttpClient protocol." + async_client_supplied = True if async_client is None: - async_client = httpx.AsyncClient() + async_client = httpx.AsyncClient(follow_redirects=True) + async_client_supplied = False if debug_logger is None: debug_logger = get_default_logger() @@ -150,7 +188,9 @@ def __init__( self, SDKConfiguration( client=client, + client_supplied=client_supplied, async_client=async_client, + async_client_supplied=async_client_supplied, security=security, server_url=server_url, server_idx=server_idx, @@ -158,41 +198,68 @@ def __init__( timeout_ms=timeout_ms, debug_logger=debug_logger, ), + parent_ref=self, ) hooks = SDKHooks() + # pylint: disable=protected-access + self.sdk_configuration.__dict__["_hooks"] = hooks + current_server_url, *_ = self.sdk_configuration.get_server_details() server_url, self.sdk_configuration.client = hooks.sdk_init( - current_server_url, self.sdk_configuration.client + current_server_url, client ) if current_server_url != server_url: self.sdk_configuration.server_url = server_url - # pylint: disable=protected-access - self.sdk_configuration.__dict__["_hooks"] = hooks + weakref.finalize( + self, + close_clients, + cast(ClientOwner, self.sdk_configuration), + self.sdk_configuration.client, + self.sdk_configuration.client_supplied, + self.sdk_configuration.async_client, + self.sdk_configuration.async_client_supplied, + ) + + def dynamic_import(self, modname, retries=3): + for attempt in range(retries): + try: + return importlib.import_module(modname) + except KeyError: + # Clear any half-initialized module and retry + sys.modules.pop(modname, None) + if attempt == retries - 1: + break + raise KeyError(f"Failed to import module '{modname}' after {retries} attempts") + + def __getattr__(self, name: str): + if name in self._sub_sdk_map: + module_path, class_name = self._sub_sdk_map[name] + try: + module = self.dynamic_import(module_path) + klass = getattr(module, class_name) + instance = klass(self.sdk_configuration, parent_ref=self) + setattr(self, name, instance) + return instance + except ImportError as e: + raise AttributeError( + f"Failed to import module {module_path} for attribute {name}: {e}" + ) from e + except AttributeError as e: + raise AttributeError( + f"Failed to find class {class_name} in module {module_path} for attribute {name}: {e}" + ) from e + + raise AttributeError( + f"'{type(self).__name__}' object has no attribute '{name}'" + ) - self._init_sdks() - - def _init_sdks(self): - self.companies = Companies(self.sdk_configuration) - self.connections = Connections(self.sdk_configuration) - self.bank_accounts = BankAccounts(self.sdk_configuration) - self.accounts = Accounts(self.sdk_configuration) - self.customers = Customers(self.sdk_configuration) - self.suppliers = Suppliers(self.sdk_configuration) - self.manage_data = ManageData(self.sdk_configuration) - self.company_info = CompanyInfo(self.sdk_configuration) - self.push_operations = PushOperations(self.sdk_configuration) - self.adjustments = Adjustments(self.sdk_configuration) - self.configuration = Configuration(self.sdk_configuration) - self.expenses = Expenses(self.sdk_configuration) - self.mapping_options = MappingOptions(self.sdk_configuration) - self.reimbursements = Reimbursements(self.sdk_configuration) - self.sync = Sync(self.sdk_configuration) - self.transaction_status = TransactionStatus(self.sdk_configuration) - self.attachments = Attachments(self.sdk_configuration) - self.transfers = Transfers(self.sdk_configuration) + def __dir__(self): + default_attrs = list(super().__dir__()) + lazy_attrs = list(self._sub_sdk_map.keys()) + return sorted(list(set(default_attrs + lazy_attrs))) def __enter__(self): return self @@ -201,9 +268,17 @@ async def __aenter__(self): return self def __exit__(self, exc_type, exc_val, exc_tb): - if self.sdk_configuration.client is not None: + if ( + self.sdk_configuration.client is not None + and not self.sdk_configuration.client_supplied + ): self.sdk_configuration.client.close() + self.sdk_configuration.client = None async def __aexit__(self, exc_type, exc_val, exc_tb): - if self.sdk_configuration.async_client is not None: + if ( + self.sdk_configuration.async_client is not None + and not self.sdk_configuration.async_client_supplied + ): await self.sdk_configuration.async_client.aclose() + self.sdk_configuration.async_client = None diff --git a/sync-for-expenses/src/codat_sync_for_expenses/sdkconfiguration.py b/sync-for-expenses/src/codat_sync_for_expenses/sdkconfiguration.py index 6404da1e1..c775d7e3c 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/sdkconfiguration.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/sdkconfiguration.py @@ -1,6 +1,11 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -from ._hooks import SDKHooks +from ._version import ( + __gen_version__, + __openapi_doc_version__, + __user_agent__, + __version__, +) from .httpclient import AsyncHttpClient, HttpClient from .utils import Logger, RetryConfig, remove_suffix from codat_sync_for_expenses.models import shared @@ -18,25 +23,22 @@ @dataclass class SDKConfiguration: - client: HttpClient - async_client: AsyncHttpClient + client: Union[HttpClient, None] + client_supplied: bool + async_client: Union[AsyncHttpClient, None] + async_client_supplied: bool debug_logger: Logger security: Optional[Union[shared.Security, Callable[[], shared.Security]]] = None server_url: Optional[str] = "" server_idx: Optional[int] = 0 language: str = "python" - openapi_doc_version: str = "prealpha" - sdk_version: str = "7.0.1" - gen_version: str = "2.474.15" - user_agent: str = ( - "speakeasy-sdk/python 7.0.1 2.474.15 prealpha codat-sync-for-expenses" - ) + openapi_doc_version: str = __openapi_doc_version__ + sdk_version: str = __version__ + gen_version: str = __gen_version__ + user_agent: str = __user_agent__ retry_config: OptionalNullable[RetryConfig] = Field(default_factory=lambda: UNSET) timeout_ms: Optional[int] = None - def __post_init__(self): - self._hooks = SDKHooks() - def get_server_details(self) -> Tuple[str, Dict[str, str]]: if self.server_url is not None and self.server_url: return remove_suffix(self.server_url, "/"), {} @@ -44,6 +46,3 @@ def get_server_details(self) -> Tuple[str, Dict[str, str]]: self.server_idx = 0 return SERVERS[self.server_idx], {} - - def get_hooks(self) -> SDKHooks: - return self._hooks diff --git a/sync-for-expenses/src/codat_sync_for_expenses/suppliers.py b/sync-for-expenses/src/codat_sync_for_expenses/suppliers.py index 317ae723d..aa59544a1 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/suppliers.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/suppliers.py @@ -5,7 +5,10 @@ from codat_sync_for_expenses._hooks import HookContext from codat_sync_for_expenses.models import errors, operations, shared from codat_sync_for_expenses.types import BaseModel, OptionalNullable, UNSET -from typing import Any, Optional, Union, cast +from codat_sync_for_expenses.utils.unmarshal_json_response import ( + unmarshal_json_response, +) +from typing import Any, Mapping, Optional, Union, cast class Suppliers(BaseSDK): @@ -20,22 +23,37 @@ def create( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[shared.CreateSupplierResponse]: + http_headers: Optional[Mapping[str, str]] = None, + ) -> shared.CreateSupplierResponse: r"""Create supplier The *Create supplier* endpoint creates a new [supplier](https://docs.codat.io/sync-for-expenses-api#/schemas/Supplier) for a given company's connection. [Suppliers](https://docs.codat.io/sync-for-expenses-api#/schemas/Supplier) are people or organizations that provide something, such as a product or service. - **Integration-specific behaviour** + **Integration-specific behavior** Required data may vary by integration. To see what data to post, first call [Get create/update supplier model](https://docs.codat.io/sync-for-expenses-api#/operations/get-create-update-suppliers-model). + ### Supported Integrations + + | Integration | Supported | + |-------------------------------|-----------| + | Dynamics 365 Business Central | Yes | + | FreeAgent | Yes | + | Oracle NetSuite | Yes | + | QuickBooks Desktop | Yes | + | QuickBooks Online | Yes | + | Sage Intacct | Yes | + | Xero | Yes | + | Zoho Books | Yes | + :param request: The request object to send. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. """ base_url = None url_variables = None @@ -44,12 +62,14 @@ def create( if server_url is not None: base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) if not isinstance(request, BaseModel): request = utils.unmarshal(request, operations.CreateSupplierRequest) request = cast(operations.CreateSupplierRequest, request) - req = self.build_request( + req = self._build_request( method="POST", path="/companies/{companyId}/connections/{connectionId}/push/suppliers", base_url=base_url, @@ -60,10 +80,16 @@ def create( request_has_query_params=True, user_agent_header="user-agent", accept_header_value="application/json", + http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request.supplier, True, True, "json", OptionalNullable[shared.Supplier] + request.supplier if request is not None else None, + True, + True, + "json", + OptionalNullable[shared.Supplier], ), + allow_empty_value=None, timeout_ms=timeout_ms, ) @@ -81,8 +107,10 @@ def create( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", operation_id="create-supplier", - oauth2_scopes=[], + oauth2_scopes=None, security_source=self.sdk_configuration.security, ), request=req, @@ -101,32 +129,25 @@ def create( retry_config=retry_config, ) - data: Any = None + response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[shared.CreateSupplierResponse] - ) + return unmarshal_json_response(shared.CreateSupplierResponse, http_res) if utils.match_response( - http_res, - ["400", "401", "402", "403", "404", "429", "500", "503"], - "application/json", + http_res, ["400", "401", "402", "403", "404", "429"], "application/json" ): - data = utils.unmarshal_json(http_res.text, errors.ErrorMessageData) - raise errors.ErrorMessage(data=data) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, ["500", "503"], "application/json"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) - - content_type = http_res.headers.get("Content-Type") - http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res_text, - http_res, - ) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = utils.stream_to_text(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) + + raise errors.SDKError("Unexpected response received", http_res) async def create_async( self, @@ -137,22 +158,37 @@ async def create_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[shared.CreateSupplierResponse]: + http_headers: Optional[Mapping[str, str]] = None, + ) -> shared.CreateSupplierResponse: r"""Create supplier The *Create supplier* endpoint creates a new [supplier](https://docs.codat.io/sync-for-expenses-api#/schemas/Supplier) for a given company's connection. [Suppliers](https://docs.codat.io/sync-for-expenses-api#/schemas/Supplier) are people or organizations that provide something, such as a product or service. - **Integration-specific behaviour** + **Integration-specific behavior** Required data may vary by integration. To see what data to post, first call [Get create/update supplier model](https://docs.codat.io/sync-for-expenses-api#/operations/get-create-update-suppliers-model). + ### Supported Integrations + + | Integration | Supported | + |-------------------------------|-----------| + | Dynamics 365 Business Central | Yes | + | FreeAgent | Yes | + | Oracle NetSuite | Yes | + | QuickBooks Desktop | Yes | + | QuickBooks Online | Yes | + | Sage Intacct | Yes | + | Xero | Yes | + | Zoho Books | Yes | + :param request: The request object to send. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. """ base_url = None url_variables = None @@ -161,12 +197,14 @@ async def create_async( if server_url is not None: base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) if not isinstance(request, BaseModel): request = utils.unmarshal(request, operations.CreateSupplierRequest) request = cast(operations.CreateSupplierRequest, request) - req = self.build_request_async( + req = self._build_request_async( method="POST", path="/companies/{companyId}/connections/{connectionId}/push/suppliers", base_url=base_url, @@ -177,10 +215,16 @@ async def create_async( request_has_query_params=True, user_agent_header="user-agent", accept_header_value="application/json", + http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request.supplier, True, True, "json", OptionalNullable[shared.Supplier] + request.supplier if request is not None else None, + True, + True, + "json", + OptionalNullable[shared.Supplier], ), + allow_empty_value=None, timeout_ms=timeout_ms, ) @@ -198,8 +242,10 @@ async def create_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", operation_id="create-supplier", - oauth2_scopes=[], + oauth2_scopes=None, security_source=self.sdk_configuration.security, ), request=req, @@ -218,32 +264,25 @@ async def create_async( retry_config=retry_config, ) - data: Any = None + response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[shared.CreateSupplierResponse] - ) + return unmarshal_json_response(shared.CreateSupplierResponse, http_res) if utils.match_response( - http_res, - ["400", "401", "402", "403", "404", "429", "500", "503"], - "application/json", + http_res, ["400", "401", "402", "403", "404", "429"], "application/json" ): - data = utils.unmarshal_json(http_res.text, errors.ErrorMessageData) - raise errors.ErrorMessage(data=data) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, ["500", "503"], "application/json"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) - - content_type = http_res.headers.get("Content-Type") - http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res_text, - http_res, - ) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = await utils.stream_to_text_async(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) + + raise errors.SDKError("Unexpected response received", http_res) def get( self, @@ -254,20 +293,35 @@ def get( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[shared.Supplier]: + http_headers: Optional[Mapping[str, str]] = None, + ) -> shared.Supplier: r"""Get supplier The *Get supplier* endpoint returns a single supplier for a given supplierId. [Suppliers](https://docs.codat.io/sync-for-expenses-api#/schemas/Supplier) are people or organizations that provide something, such as a product or service. - Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/sync-for-expenses-api#/operations/refresh-company-data). + Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/sync-for-expenses-api#/operations/refresh-all-data-types). + + ### Supported Integrations + + | Integration | Supported | + |-------------------------------|-----------| + | Dynamics 365 Business Central | Yes | + | FreeAgent | Yes | + | Oracle NetSuite | Yes | + | QuickBooks Desktop | Yes | + | QuickBooks Online | Yes | + | Sage Intacct | Yes | + | Xero | Yes | + | Zoho Books | Yes | :param request: The request object to send. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. """ base_url = None url_variables = None @@ -276,12 +330,14 @@ def get( if server_url is not None: base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) if not isinstance(request, BaseModel): request = utils.unmarshal(request, operations.GetSupplierRequest) request = cast(operations.GetSupplierRequest, request) - req = self.build_request( + req = self._build_request( method="GET", path="/companies/{companyId}/data/suppliers/{supplierId}", base_url=base_url, @@ -292,7 +348,9 @@ def get( request_has_query_params=True, user_agent_header="user-agent", accept_header_value="application/json", + http_headers=http_headers, security=self.sdk_configuration.security, + allow_empty_value=None, timeout_ms=timeout_ms, ) @@ -310,8 +368,10 @@ def get( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", operation_id="get-supplier", - oauth2_scopes=[], + oauth2_scopes=None, security_source=self.sdk_configuration.security, ), request=req, @@ -330,30 +390,25 @@ def get( retry_config=retry_config, ) - data: Any = None + response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json(http_res.text, Optional[shared.Supplier]) + return unmarshal_json_response(shared.Supplier, http_res) if utils.match_response( - http_res, - ["401", "402", "403", "404", "409", "429", "500", "503"], - "application/json", + http_res, ["401", "402", "403", "404", "409", "429"], "application/json" ): - data = utils.unmarshal_json(http_res.text, errors.ErrorMessageData) - raise errors.ErrorMessage(data=data) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, ["500", "503"], "application/json"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) - - content_type = http_res.headers.get("Content-Type") - http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res_text, - http_res, - ) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = utils.stream_to_text(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) + + raise errors.SDKError("Unexpected response received", http_res) async def get_async( self, @@ -364,20 +419,35 @@ async def get_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[shared.Supplier]: + http_headers: Optional[Mapping[str, str]] = None, + ) -> shared.Supplier: r"""Get supplier The *Get supplier* endpoint returns a single supplier for a given supplierId. [Suppliers](https://docs.codat.io/sync-for-expenses-api#/schemas/Supplier) are people or organizations that provide something, such as a product or service. - Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/sync-for-expenses-api#/operations/refresh-company-data). + Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/sync-for-expenses-api#/operations/refresh-all-data-types). + + ### Supported Integrations + + | Integration | Supported | + |-------------------------------|-----------| + | Dynamics 365 Business Central | Yes | + | FreeAgent | Yes | + | Oracle NetSuite | Yes | + | QuickBooks Desktop | Yes | + | QuickBooks Online | Yes | + | Sage Intacct | Yes | + | Xero | Yes | + | Zoho Books | Yes | :param request: The request object to send. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. """ base_url = None url_variables = None @@ -386,12 +456,14 @@ async def get_async( if server_url is not None: base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) if not isinstance(request, BaseModel): request = utils.unmarshal(request, operations.GetSupplierRequest) request = cast(operations.GetSupplierRequest, request) - req = self.build_request_async( + req = self._build_request_async( method="GET", path="/companies/{companyId}/data/suppliers/{supplierId}", base_url=base_url, @@ -402,7 +474,9 @@ async def get_async( request_has_query_params=True, user_agent_header="user-agent", accept_header_value="application/json", + http_headers=http_headers, security=self.sdk_configuration.security, + allow_empty_value=None, timeout_ms=timeout_ms, ) @@ -420,8 +494,10 @@ async def get_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", operation_id="get-supplier", - oauth2_scopes=[], + oauth2_scopes=None, security_source=self.sdk_configuration.security, ), request=req, @@ -440,30 +516,25 @@ async def get_async( retry_config=retry_config, ) - data: Any = None + response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json(http_res.text, Optional[shared.Supplier]) + return unmarshal_json_response(shared.Supplier, http_res) if utils.match_response( - http_res, - ["401", "402", "403", "404", "409", "429", "500", "503"], - "application/json", + http_res, ["401", "402", "403", "404", "409", "429"], "application/json" ): - data = utils.unmarshal_json(http_res.text, errors.ErrorMessageData) - raise errors.ErrorMessage(data=data) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, ["500", "503"], "application/json"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) - - content_type = http_res.headers.get("Content-Type") - http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res_text, - http_res, - ) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = await utils.stream_to_text_async(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) + + raise errors.SDKError("Unexpected response received", http_res) def list( self, @@ -474,20 +545,35 @@ def list( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[shared.Suppliers]: + http_headers: Optional[Mapping[str, str]] = None, + ) -> shared.Suppliers: r"""List suppliers The *List suppliers* endpoint returns a list of [suppliers](https://docs.codat.io/sync-for-expenses-api#/schemas/Supplier) for a given company's connection. [Suppliers](https://docs.codat.io/sync-for-expenses-api#/schemas/Supplier) are people or organizations that provide something, such as a product or service. - Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/sync-for-expenses-api#/operations/refresh-company-data). + Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/sync-for-expenses-api#/operations/refresh-all-data-types). + + ### Supported Integrations + + | Integration | Supported | + |-------------------------------|-----------| + | Dynamics 365 Business Central | Yes | + | FreeAgent | Yes | + | Oracle NetSuite | Yes | + | QuickBooks Desktop | Yes | + | QuickBooks Online | Yes | + | Sage Intacct | Yes | + | Xero | Yes | + | Zoho Books | Yes | :param request: The request object to send. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. """ base_url = None url_variables = None @@ -496,12 +582,14 @@ def list( if server_url is not None: base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) if not isinstance(request, BaseModel): request = utils.unmarshal(request, operations.ListSuppliersRequest) request = cast(operations.ListSuppliersRequest, request) - req = self.build_request( + req = self._build_request( method="GET", path="/companies/{companyId}/data/suppliers", base_url=base_url, @@ -512,7 +600,9 @@ def list( request_has_query_params=True, user_agent_header="user-agent", accept_header_value="application/json", + http_headers=http_headers, security=self.sdk_configuration.security, + allow_empty_value=None, timeout_ms=timeout_ms, ) @@ -530,8 +620,10 @@ def list( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", operation_id="list-suppliers", - oauth2_scopes=[], + oauth2_scopes=None, security_source=self.sdk_configuration.security, ), request=req, @@ -551,30 +643,27 @@ def list( retry_config=retry_config, ) - data: Any = None + response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json(http_res.text, Optional[shared.Suppliers]) + return unmarshal_json_response(shared.Suppliers, http_res) if utils.match_response( http_res, - ["400", "401", "402", "403", "404", "409", "429", "500", "503"], + ["400", "401", "402", "403", "404", "409", "429"], "application/json", ): - data = utils.unmarshal_json(http_res.text, errors.ErrorMessageData) - raise errors.ErrorMessage(data=data) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, ["500", "503"], "application/json"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) - - content_type = http_res.headers.get("Content-Type") - http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res_text, - http_res, - ) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = utils.stream_to_text(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) + + raise errors.SDKError("Unexpected response received", http_res) async def list_async( self, @@ -585,20 +674,35 @@ async def list_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[shared.Suppliers]: + http_headers: Optional[Mapping[str, str]] = None, + ) -> shared.Suppliers: r"""List suppliers The *List suppliers* endpoint returns a list of [suppliers](https://docs.codat.io/sync-for-expenses-api#/schemas/Supplier) for a given company's connection. [Suppliers](https://docs.codat.io/sync-for-expenses-api#/schemas/Supplier) are people or organizations that provide something, such as a product or service. - Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/sync-for-expenses-api#/operations/refresh-company-data). + Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/sync-for-expenses-api#/operations/refresh-all-data-types). + + ### Supported Integrations + + | Integration | Supported | + |-------------------------------|-----------| + | Dynamics 365 Business Central | Yes | + | FreeAgent | Yes | + | Oracle NetSuite | Yes | + | QuickBooks Desktop | Yes | + | QuickBooks Online | Yes | + | Sage Intacct | Yes | + | Xero | Yes | + | Zoho Books | Yes | :param request: The request object to send. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. """ base_url = None url_variables = None @@ -607,12 +711,14 @@ async def list_async( if server_url is not None: base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) if not isinstance(request, BaseModel): request = utils.unmarshal(request, operations.ListSuppliersRequest) request = cast(operations.ListSuppliersRequest, request) - req = self.build_request_async( + req = self._build_request_async( method="GET", path="/companies/{companyId}/data/suppliers", base_url=base_url, @@ -623,7 +729,9 @@ async def list_async( request_has_query_params=True, user_agent_header="user-agent", accept_header_value="application/json", + http_headers=http_headers, security=self.sdk_configuration.security, + allow_empty_value=None, timeout_ms=timeout_ms, ) @@ -641,8 +749,10 @@ async def list_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", operation_id="list-suppliers", - oauth2_scopes=[], + oauth2_scopes=None, security_source=self.sdk_configuration.security, ), request=req, @@ -662,30 +772,27 @@ async def list_async( retry_config=retry_config, ) - data: Any = None + response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json(http_res.text, Optional[shared.Suppliers]) + return unmarshal_json_response(shared.Suppliers, http_res) if utils.match_response( http_res, - ["400", "401", "402", "403", "404", "409", "429", "500", "503"], + ["400", "401", "402", "403", "404", "409", "429"], "application/json", ): - data = utils.unmarshal_json(http_res.text, errors.ErrorMessageData) - raise errors.ErrorMessage(data=data) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, ["500", "503"], "application/json"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) - - content_type = http_res.headers.get("Content-Type") - http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res_text, - http_res, - ) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = await utils.stream_to_text_async(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) + + raise errors.SDKError("Unexpected response received", http_res) def update( self, @@ -696,21 +803,32 @@ def update( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[shared.UpdateSupplierResponse]: + http_headers: Optional[Mapping[str, str]] = None, + ) -> shared.UpdateSupplierResponse: r"""Update supplier The *Update supplier* endpoint updates an existing [supplier](https://docs.codat.io/sync-for-expenses-api#/schemas/Supplier) for a given company's connection. [Suppliers](https://docs.codat.io/sync-for-expenses-api#/schemas/Supplier) are people or organizations that provide something, such as a product or service. - **Integration-specific behaviour** + **Integration-specific behavior** Required data may vary by integration. To see what data to post, first call [Get create/update supplier model](https://docs.codat.io/sync-for-expenses-api#/operations/get-create-update-suppliers-model). + ### Supported Integrations + + | Integration | Supported | + |-------------------|-----------| + | FreeAgent | Yes | + | QuickBooks Online | Yes | + | Xero | Yes | + + :param request: The request object to send. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. """ base_url = None url_variables = None @@ -719,12 +837,14 @@ def update( if server_url is not None: base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) if not isinstance(request, BaseModel): request = utils.unmarshal(request, operations.UpdateSupplierRequest) request = cast(operations.UpdateSupplierRequest, request) - req = self.build_request( + req = self._build_request( method="PUT", path="/companies/{companyId}/connections/{connectionId}/push/suppliers/{supplierId}", base_url=base_url, @@ -735,10 +855,16 @@ def update( request_has_query_params=True, user_agent_header="user-agent", accept_header_value="application/json", + http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request.supplier, True, True, "json", OptionalNullable[shared.Supplier] + request.supplier if request is not None else None, + True, + True, + "json", + OptionalNullable[shared.Supplier], ), + allow_empty_value=None, timeout_ms=timeout_ms, ) @@ -756,8 +882,10 @@ def update( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", operation_id="update-supplier", - oauth2_scopes=[], + oauth2_scopes=None, security_source=self.sdk_configuration.security, ), request=req, @@ -776,32 +904,25 @@ def update( retry_config=retry_config, ) - data: Any = None + response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[shared.UpdateSupplierResponse] - ) + return unmarshal_json_response(shared.UpdateSupplierResponse, http_res) if utils.match_response( - http_res, - ["400", "401", "402", "403", "404", "429", "500", "503"], - "application/json", + http_res, ["400", "401", "402", "403", "404", "429"], "application/json" ): - data = utils.unmarshal_json(http_res.text, errors.ErrorMessageData) - raise errors.ErrorMessage(data=data) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, ["500", "503"], "application/json"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) - - content_type = http_res.headers.get("Content-Type") - http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res_text, - http_res, - ) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = utils.stream_to_text(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) + + raise errors.SDKError("Unexpected response received", http_res) async def update_async( self, @@ -812,21 +933,32 @@ async def update_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[shared.UpdateSupplierResponse]: + http_headers: Optional[Mapping[str, str]] = None, + ) -> shared.UpdateSupplierResponse: r"""Update supplier The *Update supplier* endpoint updates an existing [supplier](https://docs.codat.io/sync-for-expenses-api#/schemas/Supplier) for a given company's connection. [Suppliers](https://docs.codat.io/sync-for-expenses-api#/schemas/Supplier) are people or organizations that provide something, such as a product or service. - **Integration-specific behaviour** + **Integration-specific behavior** Required data may vary by integration. To see what data to post, first call [Get create/update supplier model](https://docs.codat.io/sync-for-expenses-api#/operations/get-create-update-suppliers-model). + ### Supported Integrations + + | Integration | Supported | + |-------------------|-----------| + | FreeAgent | Yes | + | QuickBooks Online | Yes | + | Xero | Yes | + + :param request: The request object to send. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. """ base_url = None url_variables = None @@ -835,12 +967,14 @@ async def update_async( if server_url is not None: base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) if not isinstance(request, BaseModel): request = utils.unmarshal(request, operations.UpdateSupplierRequest) request = cast(operations.UpdateSupplierRequest, request) - req = self.build_request_async( + req = self._build_request_async( method="PUT", path="/companies/{companyId}/connections/{connectionId}/push/suppliers/{supplierId}", base_url=base_url, @@ -851,10 +985,16 @@ async def update_async( request_has_query_params=True, user_agent_header="user-agent", accept_header_value="application/json", + http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request.supplier, True, True, "json", OptionalNullable[shared.Supplier] + request.supplier if request is not None else None, + True, + True, + "json", + OptionalNullable[shared.Supplier], ), + allow_empty_value=None, timeout_ms=timeout_ms, ) @@ -872,8 +1012,10 @@ async def update_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", operation_id="update-supplier", - oauth2_scopes=[], + oauth2_scopes=None, security_source=self.sdk_configuration.security, ), request=req, @@ -892,29 +1034,22 @@ async def update_async( retry_config=retry_config, ) - data: Any = None + response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[shared.UpdateSupplierResponse] - ) + return unmarshal_json_response(shared.UpdateSupplierResponse, http_res) if utils.match_response( - http_res, - ["400", "401", "402", "403", "404", "429", "500", "503"], - "application/json", + http_res, ["400", "401", "402", "403", "404", "429"], "application/json" ): - data = utils.unmarshal_json(http_res.text, errors.ErrorMessageData) - raise errors.ErrorMessage(data=data) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, ["500", "503"], "application/json"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) - - content_type = http_res.headers.get("Content-Type") - http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res_text, - http_res, - ) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = await utils.stream_to_text_async(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) + + raise errors.SDKError("Unexpected response received", http_res) diff --git a/sync-for-expenses/src/codat_sync_for_expenses/sync.py b/sync-for-expenses/src/codat_sync_for_expenses/sync.py index 2aabca6c3..d7ecb923f 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/sync.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/sync.py @@ -5,7 +5,10 @@ from codat_sync_for_expenses._hooks import HookContext from codat_sync_for_expenses.models import errors, operations, shared from codat_sync_for_expenses.types import BaseModel, OptionalNullable, UNSET -from typing import Any, List, Optional, Union, cast +from codat_sync_for_expenses.utils.unmarshal_json_response import ( + unmarshal_json_response, +) +from typing import Any, List, Mapping, Optional, Union, cast class Sync(BaseSDK): @@ -20,7 +23,8 @@ def get( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[shared.CompanySyncStatus]: + http_headers: Optional[Mapping[str, str]] = None, + ) -> shared.CompanySyncStatus: r"""Get sync status Get the sync status for a specified sync @@ -29,6 +33,7 @@ def get( :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. """ base_url = None url_variables = None @@ -37,12 +42,14 @@ def get( if server_url is not None: base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) if not isinstance(request, BaseModel): request = utils.unmarshal(request, operations.GetSyncByIDRequest) request = cast(operations.GetSyncByIDRequest, request) - req = self.build_request( + req = self._build_request( method="GET", path="/companies/{companyId}/sync/expenses/syncs/{syncId}/status", base_url=base_url, @@ -53,7 +60,9 @@ def get( request_has_query_params=True, user_agent_header="user-agent", accept_header_value="application/json", + http_headers=http_headers, security=self.sdk_configuration.security, + allow_empty_value=None, timeout_ms=timeout_ms, ) @@ -71,8 +80,10 @@ def get( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", operation_id="get-sync-by-id", - oauth2_scopes=[], + oauth2_scopes=None, security_source=self.sdk_configuration.security, ), request=req, @@ -90,32 +101,25 @@ def get( retry_config=retry_config, ) - data: Any = None + response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[shared.CompanySyncStatus] - ) + return unmarshal_json_response(shared.CompanySyncStatus, http_res) if utils.match_response( - http_res, - ["401", "402", "403", "404", "429", "500", "503"], - "application/json", + http_res, ["401", "402", "403", "404", "429"], "application/json" ): - data = utils.unmarshal_json(http_res.text, errors.ErrorMessageData) - raise errors.ErrorMessage(data=data) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, ["500", "503"], "application/json"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) - - content_type = http_res.headers.get("Content-Type") - http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res_text, - http_res, - ) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = utils.stream_to_text(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) + + raise errors.SDKError("Unexpected response received", http_res) async def get_async( self, @@ -126,7 +130,8 @@ async def get_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[shared.CompanySyncStatus]: + http_headers: Optional[Mapping[str, str]] = None, + ) -> shared.CompanySyncStatus: r"""Get sync status Get the sync status for a specified sync @@ -135,6 +140,7 @@ async def get_async( :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. """ base_url = None url_variables = None @@ -143,12 +149,14 @@ async def get_async( if server_url is not None: base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) if not isinstance(request, BaseModel): request = utils.unmarshal(request, operations.GetSyncByIDRequest) request = cast(operations.GetSyncByIDRequest, request) - req = self.build_request_async( + req = self._build_request_async( method="GET", path="/companies/{companyId}/sync/expenses/syncs/{syncId}/status", base_url=base_url, @@ -159,7 +167,9 @@ async def get_async( request_has_query_params=True, user_agent_header="user-agent", accept_header_value="application/json", + http_headers=http_headers, security=self.sdk_configuration.security, + allow_empty_value=None, timeout_ms=timeout_ms, ) @@ -177,8 +187,10 @@ async def get_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", operation_id="get-sync-by-id", - oauth2_scopes=[], + oauth2_scopes=None, security_source=self.sdk_configuration.security, ), request=req, @@ -196,32 +208,25 @@ async def get_async( retry_config=retry_config, ) - data: Any = None + response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[shared.CompanySyncStatus] - ) + return unmarshal_json_response(shared.CompanySyncStatus, http_res) if utils.match_response( - http_res, - ["401", "402", "403", "404", "429", "500", "503"], - "application/json", + http_res, ["401", "402", "403", "404", "429"], "application/json" ): - data = utils.unmarshal_json(http_res.text, errors.ErrorMessageData) - raise errors.ErrorMessage(data=data) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, ["500", "503"], "application/json"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) - - content_type = http_res.headers.get("Content-Type") - http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res_text, - http_res, - ) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = await utils.stream_to_text_async(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) + + raise errors.SDKError("Unexpected response received", http_res) def get_last_successful_sync( self, @@ -233,7 +238,8 @@ def get_last_successful_sync( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[shared.CompanySyncStatus]: + http_headers: Optional[Mapping[str, str]] = None, + ) -> shared.CompanySyncStatus: r"""Last successful sync Gets the status of the last successful sync @@ -242,6 +248,7 @@ def get_last_successful_sync( :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. """ base_url = None url_variables = None @@ -250,12 +257,14 @@ def get_last_successful_sync( if server_url is not None: base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) if not isinstance(request, BaseModel): request = utils.unmarshal(request, operations.GetLastSuccessfulSyncRequest) request = cast(operations.GetLastSuccessfulSyncRequest, request) - req = self.build_request( + req = self._build_request( method="GET", path="/companies/{companyId}/sync/expenses/syncs/lastSuccessful/status", base_url=base_url, @@ -266,7 +275,9 @@ def get_last_successful_sync( request_has_query_params=True, user_agent_header="user-agent", accept_header_value="application/json", + http_headers=http_headers, security=self.sdk_configuration.security, + allow_empty_value=None, timeout_ms=timeout_ms, ) @@ -284,8 +295,10 @@ def get_last_successful_sync( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", operation_id="get-last-successful-sync", - oauth2_scopes=[], + oauth2_scopes=None, security_source=self.sdk_configuration.security, ), request=req, @@ -303,32 +316,25 @@ def get_last_successful_sync( retry_config=retry_config, ) - data: Any = None + response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[shared.CompanySyncStatus] - ) + return unmarshal_json_response(shared.CompanySyncStatus, http_res) if utils.match_response( - http_res, - ["401", "402", "403", "404", "429", "500", "503"], - "application/json", + http_res, ["401", "402", "403", "404", "429"], "application/json" ): - data = utils.unmarshal_json(http_res.text, errors.ErrorMessageData) - raise errors.ErrorMessage(data=data) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, ["500", "503"], "application/json"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) - - content_type = http_res.headers.get("Content-Type") - http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res_text, - http_res, - ) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = utils.stream_to_text(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) + + raise errors.SDKError("Unexpected response received", http_res) async def get_last_successful_sync_async( self, @@ -340,7 +346,8 @@ async def get_last_successful_sync_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[shared.CompanySyncStatus]: + http_headers: Optional[Mapping[str, str]] = None, + ) -> shared.CompanySyncStatus: r"""Last successful sync Gets the status of the last successful sync @@ -349,6 +356,7 @@ async def get_last_successful_sync_async( :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. """ base_url = None url_variables = None @@ -357,12 +365,14 @@ async def get_last_successful_sync_async( if server_url is not None: base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) if not isinstance(request, BaseModel): request = utils.unmarshal(request, operations.GetLastSuccessfulSyncRequest) request = cast(operations.GetLastSuccessfulSyncRequest, request) - req = self.build_request_async( + req = self._build_request_async( method="GET", path="/companies/{companyId}/sync/expenses/syncs/lastSuccessful/status", base_url=base_url, @@ -373,7 +383,9 @@ async def get_last_successful_sync_async( request_has_query_params=True, user_agent_header="user-agent", accept_header_value="application/json", + http_headers=http_headers, security=self.sdk_configuration.security, + allow_empty_value=None, timeout_ms=timeout_ms, ) @@ -391,8 +403,10 @@ async def get_last_successful_sync_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", operation_id="get-last-successful-sync", - oauth2_scopes=[], + oauth2_scopes=None, security_source=self.sdk_configuration.security, ), request=req, @@ -410,32 +424,25 @@ async def get_last_successful_sync_async( retry_config=retry_config, ) - data: Any = None + response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[shared.CompanySyncStatus] - ) + return unmarshal_json_response(shared.CompanySyncStatus, http_res) if utils.match_response( - http_res, - ["401", "402", "403", "404", "429", "500", "503"], - "application/json", + http_res, ["401", "402", "403", "404", "429"], "application/json" ): - data = utils.unmarshal_json(http_res.text, errors.ErrorMessageData) - raise errors.ErrorMessage(data=data) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, ["500", "503"], "application/json"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) - - content_type = http_res.headers.get("Content-Type") - http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res_text, - http_res, - ) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = await utils.stream_to_text_async(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) + + raise errors.SDKError("Unexpected response received", http_res) def get_latest_sync( self, @@ -446,7 +453,8 @@ def get_latest_sync( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[shared.CompanySyncStatus]: + http_headers: Optional[Mapping[str, str]] = None, + ) -> shared.CompanySyncStatus: r"""Latest sync status Gets the latest sync status @@ -455,6 +463,7 @@ def get_latest_sync( :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. """ base_url = None url_variables = None @@ -463,12 +472,14 @@ def get_latest_sync( if server_url is not None: base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) if not isinstance(request, BaseModel): request = utils.unmarshal(request, operations.GetLatestSyncRequest) request = cast(operations.GetLatestSyncRequest, request) - req = self.build_request( + req = self._build_request( method="GET", path="/companies/{companyId}/sync/expenses/syncs/latest/status", base_url=base_url, @@ -479,7 +490,9 @@ def get_latest_sync( request_has_query_params=True, user_agent_header="user-agent", accept_header_value="application/json", + http_headers=http_headers, security=self.sdk_configuration.security, + allow_empty_value=None, timeout_ms=timeout_ms, ) @@ -497,8 +510,10 @@ def get_latest_sync( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", operation_id="get-latest-sync", - oauth2_scopes=[], + oauth2_scopes=None, security_source=self.sdk_configuration.security, ), request=req, @@ -516,32 +531,25 @@ def get_latest_sync( retry_config=retry_config, ) - data: Any = None + response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[shared.CompanySyncStatus] - ) + return unmarshal_json_response(shared.CompanySyncStatus, http_res) if utils.match_response( - http_res, - ["401", "402", "403", "404", "429", "500", "503"], - "application/json", + http_res, ["401", "402", "403", "404", "429"], "application/json" ): - data = utils.unmarshal_json(http_res.text, errors.ErrorMessageData) - raise errors.ErrorMessage(data=data) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, ["500", "503"], "application/json"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) - - content_type = http_res.headers.get("Content-Type") - http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res_text, - http_res, - ) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = utils.stream_to_text(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) + + raise errors.SDKError("Unexpected response received", http_res) async def get_latest_sync_async( self, @@ -552,7 +560,8 @@ async def get_latest_sync_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[shared.CompanySyncStatus]: + http_headers: Optional[Mapping[str, str]] = None, + ) -> shared.CompanySyncStatus: r"""Latest sync status Gets the latest sync status @@ -561,6 +570,7 @@ async def get_latest_sync_async( :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. """ base_url = None url_variables = None @@ -569,12 +579,14 @@ async def get_latest_sync_async( if server_url is not None: base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) if not isinstance(request, BaseModel): request = utils.unmarshal(request, operations.GetLatestSyncRequest) request = cast(operations.GetLatestSyncRequest, request) - req = self.build_request_async( + req = self._build_request_async( method="GET", path="/companies/{companyId}/sync/expenses/syncs/latest/status", base_url=base_url, @@ -585,7 +597,9 @@ async def get_latest_sync_async( request_has_query_params=True, user_agent_header="user-agent", accept_header_value="application/json", + http_headers=http_headers, security=self.sdk_configuration.security, + allow_empty_value=None, timeout_ms=timeout_ms, ) @@ -603,8 +617,10 @@ async def get_latest_sync_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", operation_id="get-latest-sync", - oauth2_scopes=[], + oauth2_scopes=None, security_source=self.sdk_configuration.security, ), request=req, @@ -622,32 +638,25 @@ async def get_latest_sync_async( retry_config=retry_config, ) - data: Any = None + response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[shared.CompanySyncStatus] - ) + return unmarshal_json_response(shared.CompanySyncStatus, http_res) if utils.match_response( - http_res, - ["401", "402", "403", "404", "429", "500", "503"], - "application/json", + http_res, ["401", "402", "403", "404", "429"], "application/json" ): - data = utils.unmarshal_json(http_res.text, errors.ErrorMessageData) - raise errors.ErrorMessage(data=data) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, ["500", "503"], "application/json"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) - - content_type = http_res.headers.get("Content-Type") - http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res_text, - http_res, - ) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = await utils.stream_to_text_async(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) + + raise errors.SDKError("Unexpected response received", http_res) def list( self, @@ -658,7 +667,8 @@ def list( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[List[shared.CompanySyncStatus]]: + http_headers: Optional[Mapping[str, str]] = None, + ) -> List[shared.CompanySyncStatus]: r"""List sync statuses Gets a list of sync statuses @@ -667,6 +677,7 @@ def list( :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. """ base_url = None url_variables = None @@ -675,12 +686,14 @@ def list( if server_url is not None: base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) if not isinstance(request, BaseModel): request = utils.unmarshal(request, operations.ListSyncsRequest) request = cast(operations.ListSyncsRequest, request) - req = self.build_request( + req = self._build_request( method="GET", path="/companies/{companyId}/sync/expenses/syncs/list/status", base_url=base_url, @@ -691,7 +704,9 @@ def list( request_has_query_params=True, user_agent_header="user-agent", accept_header_value="application/json", + http_headers=http_headers, security=self.sdk_configuration.security, + allow_empty_value=None, timeout_ms=timeout_ms, ) @@ -709,8 +724,10 @@ def list( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", operation_id="list-syncs", - oauth2_scopes=[], + oauth2_scopes=None, security_source=self.sdk_configuration.security, ), request=req, @@ -728,32 +745,25 @@ def list( retry_config=retry_config, ) - data: Any = None + response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[List[shared.CompanySyncStatus]] - ) + return unmarshal_json_response(List[shared.CompanySyncStatus], http_res) if utils.match_response( - http_res, - ["401", "402", "403", "404", "429", "500", "503"], - "application/json", + http_res, ["401", "402", "403", "404", "429"], "application/json" ): - data = utils.unmarshal_json(http_res.text, errors.ErrorMessageData) - raise errors.ErrorMessage(data=data) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, ["500", "503"], "application/json"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) - - content_type = http_res.headers.get("Content-Type") - http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res_text, - http_res, - ) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = utils.stream_to_text(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) + + raise errors.SDKError("Unexpected response received", http_res) async def list_async( self, @@ -764,7 +774,8 @@ async def list_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[List[shared.CompanySyncStatus]]: + http_headers: Optional[Mapping[str, str]] = None, + ) -> List[shared.CompanySyncStatus]: r"""List sync statuses Gets a list of sync statuses @@ -773,6 +784,7 @@ async def list_async( :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. """ base_url = None url_variables = None @@ -781,12 +793,14 @@ async def list_async( if server_url is not None: base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) if not isinstance(request, BaseModel): request = utils.unmarshal(request, operations.ListSyncsRequest) request = cast(operations.ListSyncsRequest, request) - req = self.build_request_async( + req = self._build_request_async( method="GET", path="/companies/{companyId}/sync/expenses/syncs/list/status", base_url=base_url, @@ -797,7 +811,9 @@ async def list_async( request_has_query_params=True, user_agent_header="user-agent", accept_header_value="application/json", + http_headers=http_headers, security=self.sdk_configuration.security, + allow_empty_value=None, timeout_ms=timeout_ms, ) @@ -815,8 +831,10 @@ async def list_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", operation_id="list-syncs", - oauth2_scopes=[], + oauth2_scopes=None, security_source=self.sdk_configuration.security, ), request=req, @@ -834,29 +852,22 @@ async def list_async( retry_config=retry_config, ) - data: Any = None + response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[List[shared.CompanySyncStatus]] - ) + return unmarshal_json_response(List[shared.CompanySyncStatus], http_res) if utils.match_response( - http_res, - ["401", "402", "403", "404", "429", "500", "503"], - "application/json", + http_res, ["401", "402", "403", "404", "429"], "application/json" ): - data = utils.unmarshal_json(http_res.text, errors.ErrorMessageData) - raise errors.ErrorMessage(data=data) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, ["500", "503"], "application/json"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) - - content_type = http_res.headers.get("Content-Type") - http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res_text, - http_res, - ) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = await utils.stream_to_text_async(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) + + raise errors.SDKError("Unexpected response received", http_res) diff --git a/sync-for-expenses/src/codat_sync_for_expenses/transaction_status.py b/sync-for-expenses/src/codat_sync_for_expenses/transaction_status.py index cf61b00cf..b7cedfb4a 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/transaction_status.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/transaction_status.py @@ -5,7 +5,10 @@ from codat_sync_for_expenses._hooks import HookContext from codat_sync_for_expenses.models import errors, operations, shared from codat_sync_for_expenses.types import BaseModel, OptionalNullable, UNSET -from typing import Any, List, Optional, Union, cast +from codat_sync_for_expenses.utils.unmarshal_json_response import ( + unmarshal_json_response, +) +from typing import Any, List, Mapping, Optional, Union, cast class TransactionStatus(BaseSDK): @@ -21,7 +24,8 @@ def get( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[List[shared.SchemaTransaction]]: + http_headers: Optional[Mapping[str, str]] = None, + ) -> List[shared.SchemaTransaction]: r"""Get sync transaction Gets the status of a transaction for a sync @@ -30,6 +34,7 @@ def get( :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. """ base_url = None url_variables = None @@ -38,12 +43,14 @@ def get( if server_url is not None: base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) if not isinstance(request, BaseModel): request = utils.unmarshal(request, operations.GetSyncTransactionRequest) request = cast(operations.GetSyncTransactionRequest, request) - req = self.build_request( + req = self._build_request( method="GET", path="/companies/{companyId}/sync/expenses/syncs/{syncId}/transactions/{transactionId}", base_url=base_url, @@ -54,7 +61,9 @@ def get( request_has_query_params=True, user_agent_header="user-agent", accept_header_value="application/json", + http_headers=http_headers, security=self.sdk_configuration.security, + allow_empty_value=None, timeout_ms=timeout_ms, ) @@ -72,8 +81,10 @@ def get( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", operation_id="get-sync-transaction", - oauth2_scopes=[], + oauth2_scopes=None, security_source=self.sdk_configuration.security, ), request=req, @@ -91,32 +102,25 @@ def get( retry_config=retry_config, ) - data: Any = None + response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[List[shared.SchemaTransaction]] - ) + return unmarshal_json_response(List[shared.SchemaTransaction], http_res) if utils.match_response( - http_res, - ["401", "402", "403", "404", "429", "500", "503"], - "application/json", + http_res, ["401", "402", "403", "404", "429"], "application/json" ): - data = utils.unmarshal_json(http_res.text, errors.ErrorMessageData) - raise errors.ErrorMessage(data=data) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, ["500", "503"], "application/json"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) - - content_type = http_res.headers.get("Content-Type") - http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res_text, - http_res, - ) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = utils.stream_to_text(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) + + raise errors.SDKError("Unexpected response received", http_res) async def get_async( self, @@ -128,7 +132,8 @@ async def get_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[List[shared.SchemaTransaction]]: + http_headers: Optional[Mapping[str, str]] = None, + ) -> List[shared.SchemaTransaction]: r"""Get sync transaction Gets the status of a transaction for a sync @@ -137,6 +142,7 @@ async def get_async( :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. """ base_url = None url_variables = None @@ -145,12 +151,14 @@ async def get_async( if server_url is not None: base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) if not isinstance(request, BaseModel): request = utils.unmarshal(request, operations.GetSyncTransactionRequest) request = cast(operations.GetSyncTransactionRequest, request) - req = self.build_request_async( + req = self._build_request_async( method="GET", path="/companies/{companyId}/sync/expenses/syncs/{syncId}/transactions/{transactionId}", base_url=base_url, @@ -161,7 +169,9 @@ async def get_async( request_has_query_params=True, user_agent_header="user-agent", accept_header_value="application/json", + http_headers=http_headers, security=self.sdk_configuration.security, + allow_empty_value=None, timeout_ms=timeout_ms, ) @@ -179,8 +189,10 @@ async def get_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", operation_id="get-sync-transaction", - oauth2_scopes=[], + oauth2_scopes=None, security_source=self.sdk_configuration.security, ), request=req, @@ -198,32 +210,25 @@ async def get_async( retry_config=retry_config, ) - data: Any = None + response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[List[shared.SchemaTransaction]] - ) + return unmarshal_json_response(List[shared.SchemaTransaction], http_res) if utils.match_response( - http_res, - ["401", "402", "403", "404", "429", "500", "503"], - "application/json", + http_res, ["401", "402", "403", "404", "429"], "application/json" ): - data = utils.unmarshal_json(http_res.text, errors.ErrorMessageData) - raise errors.ErrorMessage(data=data) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, ["500", "503"], "application/json"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) - - content_type = http_res.headers.get("Content-Type") - http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res_text, - http_res, - ) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = await utils.stream_to_text_async(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) + + raise errors.SDKError("Unexpected response received", http_res) def list( self, @@ -235,7 +240,8 @@ def list( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[shared.Transactions]: + http_headers: Optional[Mapping[str, str]] = None, + ) -> shared.Transactions: r"""List sync transactions Gets the transactions and status for a sync @@ -244,6 +250,7 @@ def list( :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. """ base_url = None url_variables = None @@ -252,12 +259,14 @@ def list( if server_url is not None: base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) if not isinstance(request, BaseModel): request = utils.unmarshal(request, operations.ListSyncTransactionsRequest) request = cast(operations.ListSyncTransactionsRequest, request) - req = self.build_request( + req = self._build_request( method="GET", path="/companies/{companyId}/sync/expenses/syncs/{syncId}/transactions", base_url=base_url, @@ -268,7 +277,9 @@ def list( request_has_query_params=True, user_agent_header="user-agent", accept_header_value="application/json", + http_headers=http_headers, security=self.sdk_configuration.security, + allow_empty_value=None, timeout_ms=timeout_ms, ) @@ -286,8 +297,10 @@ def list( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", operation_id="list-sync-transactions", - oauth2_scopes=[], + oauth2_scopes=None, security_source=self.sdk_configuration.security, ), request=req, @@ -306,30 +319,25 @@ def list( retry_config=retry_config, ) - data: Any = None + response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json(http_res.text, Optional[shared.Transactions]) + return unmarshal_json_response(shared.Transactions, http_res) if utils.match_response( - http_res, - ["400", "401", "402", "403", "404", "429", "500", "503"], - "application/json", + http_res, ["400", "401", "402", "403", "404", "429"], "application/json" ): - data = utils.unmarshal_json(http_res.text, errors.ErrorMessageData) - raise errors.ErrorMessage(data=data) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, ["500", "503"], "application/json"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) - - content_type = http_res.headers.get("Content-Type") - http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res_text, - http_res, - ) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = utils.stream_to_text(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) + + raise errors.SDKError("Unexpected response received", http_res) async def list_async( self, @@ -341,7 +349,8 @@ async def list_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[shared.Transactions]: + http_headers: Optional[Mapping[str, str]] = None, + ) -> shared.Transactions: r"""List sync transactions Gets the transactions and status for a sync @@ -350,6 +359,7 @@ async def list_async( :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. """ base_url = None url_variables = None @@ -358,12 +368,14 @@ async def list_async( if server_url is not None: base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) if not isinstance(request, BaseModel): request = utils.unmarshal(request, operations.ListSyncTransactionsRequest) request = cast(operations.ListSyncTransactionsRequest, request) - req = self.build_request_async( + req = self._build_request_async( method="GET", path="/companies/{companyId}/sync/expenses/syncs/{syncId}/transactions", base_url=base_url, @@ -374,7 +386,9 @@ async def list_async( request_has_query_params=True, user_agent_header="user-agent", accept_header_value="application/json", + http_headers=http_headers, security=self.sdk_configuration.security, + allow_empty_value=None, timeout_ms=timeout_ms, ) @@ -392,8 +406,10 @@ async def list_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", operation_id="list-sync-transactions", - oauth2_scopes=[], + oauth2_scopes=None, security_source=self.sdk_configuration.security, ), request=req, @@ -412,27 +428,22 @@ async def list_async( retry_config=retry_config, ) - data: Any = None + response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json(http_res.text, Optional[shared.Transactions]) + return unmarshal_json_response(shared.Transactions, http_res) if utils.match_response( - http_res, - ["400", "401", "402", "403", "404", "429", "500", "503"], - "application/json", + http_res, ["400", "401", "402", "403", "404", "429"], "application/json" ): - data = utils.unmarshal_json(http_res.text, errors.ErrorMessageData) - raise errors.ErrorMessage(data=data) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, ["500", "503"], "application/json"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) - - content_type = http_res.headers.get("Content-Type") - http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res_text, - http_res, - ) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = await utils.stream_to_text_async(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) + + raise errors.SDKError("Unexpected response received", http_res) diff --git a/sync-for-expenses/src/codat_sync_for_expenses/transfers.py b/sync-for-expenses/src/codat_sync_for_expenses/transfers.py index 1aab01156..373ec19a7 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/transfers.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/transfers.py @@ -5,7 +5,10 @@ from codat_sync_for_expenses._hooks import HookContext from codat_sync_for_expenses.models import errors, operations, shared from codat_sync_for_expenses.types import BaseModel, OptionalNullable, UNSET -from typing import Any, Optional, Union, cast +from codat_sync_for_expenses.utils.unmarshal_json_response import ( + unmarshal_json_response, +) +from typing import Any, Mapping, Optional, Union, cast class Transfers(BaseSDK): @@ -21,7 +24,8 @@ def create( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[shared.TransferTransactionResponse]: + http_headers: Optional[Mapping[str, str]] = None, + ) -> shared.TransferTransactionResponse: r"""Create transfer transaction Use the *Create transfer* endpoint to create or update a [transfer transaction](https://docs.codat.io/sync-for-expenses-api#/schemas/TransferTransactionRequest) in the accounting software for a given company's connection. @@ -31,17 +35,22 @@ def create( The `from.amount` and `to.amount` fields are in the native currency of the account. ### Supported Integrations - | Integration | Supported | - |-----------------------|-----------| - | FreeAgent | Yes | - | QuickBooks Desktop | Yes | - | QuickBooks Online | Yes | - | Xero | Yes | + | Integration | Create transfer | Update transfer | + |-----------------------|------------------|------------------| + | Dynamics | No | No | + | FreeAgent | Yes | Yes | + | NetSuite | No | No | + | QuickBooks Desktop | Yes | No | + | QuickBooks Online | Yes | Yes | + | Sage Intacct | No | No | + | Xero | Yes | No | + | Zoho Books | No | No | :param request: The request object to send. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. """ base_url = None url_variables = None @@ -50,6 +59,8 @@ def create( if server_url is not None: base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) if not isinstance(request, BaseModel): request = utils.unmarshal( @@ -57,7 +68,7 @@ def create( ) request = cast(operations.CreateTransferTransactionRequest, request) - req = self.build_request( + req = self._build_request( method="PUT", path="/companies/{companyId}/sync/expenses/transfer-transactions/{transactionId}", base_url=base_url, @@ -68,14 +79,16 @@ def create( request_has_query_params=True, user_agent_header="user-agent", accept_header_value="application/json", + http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request.transfer_transaction_request, + request.transfer_transaction_request if request is not None else None, False, True, "json", Optional[shared.TransferTransactionRequest], ), + allow_empty_value=None, timeout_ms=timeout_ms, ) @@ -93,8 +106,10 @@ def create( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", operation_id="create-transfer-transaction", - oauth2_scopes=[], + oauth2_scopes=None, security_source=self.sdk_configuration.security, ), request=req, @@ -113,32 +128,25 @@ def create( retry_config=retry_config, ) - data: Any = None + response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[shared.TransferTransactionResponse] - ) + return unmarshal_json_response(shared.TransferTransactionResponse, http_res) if utils.match_response( - http_res, - ["400", "401", "402", "403", "404", "429", "500", "503"], - "application/json", + http_res, ["400", "401", "402", "403", "404", "429"], "application/json" ): - data = utils.unmarshal_json(http_res.text, errors.ErrorMessageData) - raise errors.ErrorMessage(data=data) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, ["500", "503"], "application/json"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = utils.stream_to_text(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) - content_type = http_res.headers.get("Content-Type") - http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res_text, - http_res, - ) + raise errors.SDKError("Unexpected response received", http_res) async def create_async( self, @@ -150,7 +158,8 @@ async def create_async( retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, - ) -> Optional[shared.TransferTransactionResponse]: + http_headers: Optional[Mapping[str, str]] = None, + ) -> shared.TransferTransactionResponse: r"""Create transfer transaction Use the *Create transfer* endpoint to create or update a [transfer transaction](https://docs.codat.io/sync-for-expenses-api#/schemas/TransferTransactionRequest) in the accounting software for a given company's connection. @@ -160,17 +169,22 @@ async def create_async( The `from.amount` and `to.amount` fields are in the native currency of the account. ### Supported Integrations - | Integration | Supported | - |-----------------------|-----------| - | FreeAgent | Yes | - | QuickBooks Desktop | Yes | - | QuickBooks Online | Yes | - | Xero | Yes | + | Integration | Create transfer | Update transfer | + |-----------------------|------------------|------------------| + | Dynamics | No | No | + | FreeAgent | Yes | Yes | + | NetSuite | No | No | + | QuickBooks Desktop | Yes | No | + | QuickBooks Online | Yes | Yes | + | Sage Intacct | No | No | + | Xero | Yes | No | + | Zoho Books | No | No | :param request: The request object to send. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. """ base_url = None url_variables = None @@ -179,6 +193,8 @@ async def create_async( if server_url is not None: base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) if not isinstance(request, BaseModel): request = utils.unmarshal( @@ -186,7 +202,7 @@ async def create_async( ) request = cast(operations.CreateTransferTransactionRequest, request) - req = self.build_request_async( + req = self._build_request_async( method="PUT", path="/companies/{companyId}/sync/expenses/transfer-transactions/{transactionId}", base_url=base_url, @@ -197,14 +213,16 @@ async def create_async( request_has_query_params=True, user_agent_header="user-agent", accept_header_value="application/json", + http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request.transfer_transaction_request, + request.transfer_transaction_request if request is not None else None, False, True, "json", Optional[shared.TransferTransactionRequest], ), + allow_empty_value=None, timeout_ms=timeout_ms, ) @@ -222,8 +240,10 @@ async def create_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", operation_id="create-transfer-transaction", - oauth2_scopes=[], + oauth2_scopes=None, security_source=self.sdk_configuration.security, ), request=req, @@ -242,29 +262,22 @@ async def create_async( retry_config=retry_config, ) - data: Any = None + response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return utils.unmarshal_json( - http_res.text, Optional[shared.TransferTransactionResponse] - ) + return unmarshal_json_response(shared.TransferTransactionResponse, http_res) if utils.match_response( - http_res, - ["400", "401", "402", "403", "404", "429", "500", "503"], - "application/json", + http_res, ["400", "401", "402", "403", "404", "429"], "application/json" ): - data = utils.unmarshal_json(http_res.text, errors.ErrorMessageData) - raise errors.ErrorMessage(data=data) - if utils.match_response(http_res, ["4XX", "5XX"], "*"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, ["500", "503"], "application/json"): + response_data = unmarshal_json_response(errors.ErrorMessageData, http_res) + raise errors.ErrorMessage(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = await utils.stream_to_text_async(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) - content_type = http_res.headers.get("Content-Type") - http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res_text, - http_res, - ) + raise errors.SDKError("Unexpected response received", http_res) diff --git a/sync-for-expenses/src/codat_sync_for_expenses/types/basemodel.py b/sync-for-expenses/src/codat_sync_for_expenses/types/basemodel.py index a6187efa6..a9a640a1a 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/types/basemodel.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/types/basemodel.py @@ -2,7 +2,8 @@ from pydantic import ConfigDict, model_serializer from pydantic import BaseModel as PydanticBaseModel -from typing import TYPE_CHECKING, Literal, Optional, TypeVar, Union, NewType +from pydantic_core import core_schema +from typing import TYPE_CHECKING, Any, Literal, Optional, TypeVar, Union from typing_extensions import TypeAliasType, TypeAlias @@ -35,5 +36,42 @@ def __bool__(self) -> Literal[False]: "OptionalNullable", Union[Optional[Nullable[T]], Unset], type_params=(T,) ) -UnrecognizedInt = NewType("UnrecognizedInt", int) -UnrecognizedStr = NewType("UnrecognizedStr", str) + +class UnrecognizedStr(str): + @classmethod + def __get_pydantic_core_schema__(cls, _source_type: Any, _handler: Any) -> core_schema.CoreSchema: + # Make UnrecognizedStr only work in lax mode, not strict mode + # This makes it a "fallback" option when more specific types (like Literals) don't match + def validate_lax(v: Any) -> 'UnrecognizedStr': + if isinstance(v, cls): + return v + return cls(str(v)) + + # Use lax_or_strict_schema where strict always fails + # This forces Pydantic to prefer other union members in strict mode + # and only fall back to UnrecognizedStr in lax mode + return core_schema.lax_or_strict_schema( + lax_schema=core_schema.chain_schema([ + core_schema.str_schema(), + core_schema.no_info_plain_validator_function(validate_lax) + ]), + strict_schema=core_schema.none_schema(), # Always fails in strict mode + ) + + +class UnrecognizedInt(int): + @classmethod + def __get_pydantic_core_schema__(cls, _source_type: Any, _handler: Any) -> core_schema.CoreSchema: + # Make UnrecognizedInt only work in lax mode, not strict mode + # This makes it a "fallback" option when more specific types (like Literals) don't match + def validate_lax(v: Any) -> 'UnrecognizedInt': + if isinstance(v, cls): + return v + return cls(int(v)) + return core_schema.lax_or_strict_schema( + lax_schema=core_schema.chain_schema([ + core_schema.int_schema(), + core_schema.no_info_plain_validator_function(validate_lax) + ]), + strict_schema=core_schema.none_schema(), # Always fails in strict mode + ) diff --git a/sync-for-expenses/src/codat_sync_for_expenses/utils/__init__.py b/sync-for-expenses/src/codat_sync_for_expenses/utils/__init__.py index 26d51ae8f..0498cb8da 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/utils/__init__.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/utils/__init__.py @@ -1,49 +1,64 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -from .annotations import get_discriminator -from .enums import OpenEnumMeta -from .headers import get_headers, get_response_headers -from .metadata import ( - FieldMetadata, - find_metadata, - FormMetadata, - HeaderMetadata, - MultipartFormMetadata, - PathParamMetadata, - QueryParamMetadata, - RequestMetadata, - SecurityMetadata, -) -from .queryparams import get_query_params -from .retries import BackoffStrategy, Retries, retry, retry_async, RetryConfig -from .requestbodies import serialize_request_body, SerializedRequestBody -from .security import get_security -from .serializers import ( - get_pydantic_model, - marshal_json, - unmarshal, - unmarshal_json, - serialize_decimal, - serialize_float, - serialize_int, - stream_to_text, - stream_to_text_async, - stream_to_bytes, - stream_to_bytes_async, - validate_const, - validate_decimal, - validate_float, - validate_int, - validate_open_enum, -) -from .url import generate_url, template_url, remove_suffix -from .values import ( - get_global_from_env, - match_content_type, - match_status_codes, - match_response, -) -from .logger import Logger, get_body_content, get_default_logger +from typing import Any, TYPE_CHECKING, Callable, TypeVar +import asyncio + +from .dynamic_imports import lazy_getattr, lazy_dir + +_T = TypeVar("_T") + + +async def run_sync_in_thread(func: Callable[..., _T], *args) -> _T: + """Run a synchronous function in a thread pool to avoid blocking the event loop.""" + return await asyncio.to_thread(func, *args) + + +if TYPE_CHECKING: + from .annotations import get_discriminator + from .datetimes import parse_datetime + from .enums import OpenEnumMeta + from .headers import get_headers, get_response_headers + from .metadata import ( + FieldMetadata, + find_metadata, + FormMetadata, + HeaderMetadata, + MultipartFormMetadata, + PathParamMetadata, + QueryParamMetadata, + RequestMetadata, + SecurityMetadata, + ) + from .queryparams import get_query_params + from .retries import BackoffStrategy, Retries, retry, retry_async, RetryConfig + from .requestbodies import serialize_request_body, SerializedRequestBody + from .security import get_security + from .serializers import ( + get_pydantic_model, + marshal_json, + unmarshal, + unmarshal_json, + serialize_decimal, + serialize_float, + serialize_int, + stream_to_text, + stream_to_text_async, + stream_to_bytes, + stream_to_bytes_async, + validate_const, + validate_decimal, + validate_float, + validate_int, + ) + from .url import generate_url, template_url, remove_suffix + from .values import ( + get_global_from_env, + match_content_type, + match_status_codes, + match_response, + cast_partial, + ) + from .logger import Logger, get_body_content, get_default_logger __all__ = [ "BackoffStrategy", @@ -54,6 +69,7 @@ "get_body_content", "get_default_logger", "get_discriminator", + "parse_datetime", "get_global_from_env", "get_headers", "get_pydantic_model", @@ -93,5 +109,67 @@ "validate_const", "validate_float", "validate_int", - "validate_open_enum", + "cast_partial", ] + +_dynamic_imports: dict[str, str] = { + "BackoffStrategy": ".retries", + "FieldMetadata": ".metadata", + "find_metadata": ".metadata", + "FormMetadata": ".metadata", + "generate_url": ".url", + "get_body_content": ".logger", + "get_default_logger": ".logger", + "get_discriminator": ".annotations", + "parse_datetime": ".datetimes", + "get_global_from_env": ".values", + "get_headers": ".headers", + "get_pydantic_model": ".serializers", + "get_query_params": ".queryparams", + "get_response_headers": ".headers", + "get_security": ".security", + "HeaderMetadata": ".metadata", + "Logger": ".logger", + "marshal_json": ".serializers", + "match_content_type": ".values", + "match_status_codes": ".values", + "match_response": ".values", + "MultipartFormMetadata": ".metadata", + "OpenEnumMeta": ".enums", + "PathParamMetadata": ".metadata", + "QueryParamMetadata": ".metadata", + "remove_suffix": ".url", + "Retries": ".retries", + "retry": ".retries", + "retry_async": ".retries", + "RetryConfig": ".retries", + "RequestMetadata": ".metadata", + "SecurityMetadata": ".metadata", + "serialize_decimal": ".serializers", + "serialize_float": ".serializers", + "serialize_int": ".serializers", + "serialize_request_body": ".requestbodies", + "SerializedRequestBody": ".requestbodies", + "stream_to_text": ".serializers", + "stream_to_text_async": ".serializers", + "stream_to_bytes": ".serializers", + "stream_to_bytes_async": ".serializers", + "template_url": ".url", + "unmarshal": ".serializers", + "unmarshal_json": ".serializers", + "validate_decimal": ".serializers", + "validate_const": ".serializers", + "validate_float": ".serializers", + "validate_int": ".serializers", + "cast_partial": ".values", +} + + +def __getattr__(attr_name: str) -> Any: + return lazy_getattr( + attr_name, package=__package__, dynamic_imports=_dynamic_imports + ) + + +def __dir__(): + return lazy_dir(dynamic_imports=_dynamic_imports) diff --git a/sync-for-expenses/src/codat_sync_for_expenses/utils/annotations.py b/sync-for-expenses/src/codat_sync_for_expenses/utils/annotations.py index 387874edd..12e0aa4f1 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/utils/annotations.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/utils/annotations.py @@ -3,6 +3,7 @@ from enum import Enum from typing import Any, Optional + def get_discriminator(model: Any, fieldname: str, key: str) -> str: """ Recursively search for the discriminator attribute in a model. @@ -25,31 +26,54 @@ def get_field_discriminator(field: Any) -> Optional[str]: if isinstance(field, dict): if key in field: - return f'{field[key]}' + return f"{field[key]}" if hasattr(field, fieldname): attr = getattr(field, fieldname) if isinstance(attr, Enum): - return f'{attr.value}' - return f'{attr}' + return f"{attr.value}" + return f"{attr}" if hasattr(field, upper_fieldname): attr = getattr(field, upper_fieldname) if isinstance(attr, Enum): - return f'{attr.value}' - return f'{attr}' + return f"{attr.value}" + return f"{attr}" return None + def search_nested_discriminator(obj: Any) -> Optional[str]: + """Recursively search for discriminator in nested structures.""" + # First try direct field lookup + discriminator = get_field_discriminator(obj) + if discriminator is not None: + return discriminator + + # If it's a dict, search in nested values + if isinstance(obj, dict): + for value in obj.values(): + if isinstance(value, list): + # Search in list items + for item in value: + nested_discriminator = search_nested_discriminator(item) + if nested_discriminator is not None: + return nested_discriminator + elif isinstance(value, dict): + # Search in nested dict + nested_discriminator = search_nested_discriminator(value) + if nested_discriminator is not None: + return nested_discriminator + + return None if isinstance(model, list): for field in model: - discriminator = get_field_discriminator(field) + discriminator = search_nested_discriminator(field) if discriminator is not None: return discriminator - discriminator = get_field_discriminator(model) + discriminator = search_nested_discriminator(model) if discriminator is not None: return discriminator - raise ValueError(f'Could not find discriminator field {fieldname} in {model}') + raise ValueError(f"Could not find discriminator field {fieldname} in {model}") diff --git a/sync-for-expenses/src/codat_sync_for_expenses/utils/datetimes.py b/sync-for-expenses/src/codat_sync_for_expenses/utils/datetimes.py new file mode 100644 index 000000000..a6c52cd61 --- /dev/null +++ b/sync-for-expenses/src/codat_sync_for_expenses/utils/datetimes.py @@ -0,0 +1,23 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from datetime import datetime +import sys + + +def parse_datetime(datetime_string: str) -> datetime: + """ + Convert a RFC 3339 / ISO 8601 formatted string into a datetime object. + Python versions 3.11 and later support parsing RFC 3339 directly with + datetime.fromisoformat(), but for earlier versions, this function + encapsulates the necessary extra logic. + """ + # Python 3.11 and later can parse RFC 3339 directly + if sys.version_info >= (3, 11): + return datetime.fromisoformat(datetime_string) + + # For Python 3.10 and earlier, a common ValueError is trailing 'Z' suffix, + # so fix that upfront. + if datetime_string.endswith("Z"): + datetime_string = datetime_string[:-1] + "+00:00" + + return datetime.fromisoformat(datetime_string) diff --git a/sync-for-expenses/src/codat_sync_for_expenses/utils/dynamic_imports.py b/sync-for-expenses/src/codat_sync_for_expenses/utils/dynamic_imports.py new file mode 100644 index 000000000..673edf82a --- /dev/null +++ b/sync-for-expenses/src/codat_sync_for_expenses/utils/dynamic_imports.py @@ -0,0 +1,54 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from importlib import import_module +import builtins +import sys + + +def dynamic_import(package, modname, retries=3): + """Import a module relative to package, retrying on KeyError from half-initialized modules.""" + for attempt in range(retries): + try: + return import_module(modname, package) + except KeyError: + sys.modules.pop(modname, None) + if attempt == retries - 1: + break + raise KeyError(f"Failed to import module '{modname}' after {retries} attempts") + + +def lazy_getattr(attr_name, *, package, dynamic_imports, sub_packages=None): + """Module-level __getattr__ that lazily loads from a dynamic_imports mapping. + + Args: + attr_name: The attribute being looked up. + package: The caller's __package__ (for relative imports). + dynamic_imports: Dict mapping attribute names to relative module paths. + sub_packages: Optional list of subpackage names to lazy-load. + """ + module_name = dynamic_imports.get(attr_name) + if module_name is not None: + try: + module = dynamic_import(package, module_name) + return getattr(module, attr_name) + except ImportError as e: + raise ImportError( + f"Failed to import {attr_name} from {module_name}: {e}" + ) from e + except AttributeError as e: + raise AttributeError( + f"Failed to get {attr_name} from {module_name}: {e}" + ) from e + + if sub_packages and attr_name in sub_packages: + return import_module(f".{attr_name}", package) + + raise AttributeError(f"module '{package}' has no attribute '{attr_name}'") + + +def lazy_dir(*, dynamic_imports, sub_packages=None): + """Module-level __dir__ that lists lazily-loadable attributes.""" + lazy_attrs = builtins.list(dynamic_imports.keys()) + if sub_packages: + lazy_attrs.extend(sub_packages) + return builtins.sorted(lazy_attrs) diff --git a/sync-for-expenses/src/codat_sync_for_expenses/utils/enums.py b/sync-for-expenses/src/codat_sync_for_expenses/utils/enums.py index c650b10cb..3324e1bc2 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/utils/enums.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/utils/enums.py @@ -1,34 +1,134 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" import enum +import sys +from typing import Any + +from pydantic_core import core_schema class OpenEnumMeta(enum.EnumMeta): - def __call__( - cls, value, names=None, *, module=None, qualname=None, type=None, start=1 - ): - # The `type` kwarg also happens to be a built-in that pylint flags as - # redeclared. Safe to ignore this lint rule with this scope. - # pylint: disable=redefined-builtin - - if names is not None: - return super().__call__( - value, - names=names, - module=module, - qualname=qualname, - type=type, - start=start, + # The __call__ method `boundary` kwarg was added in 3.11 and must be present + # for pyright. Refer also: https://github.com/pylint-dev/pylint/issues/9622 + # pylint: disable=unexpected-keyword-arg + # The __call__ method `values` varg must be named for pyright. + # pylint: disable=keyword-arg-before-vararg + + if sys.version_info >= (3, 11): + def __call__( + cls, value, names=None, *values, module=None, qualname=None, type=None, start=1, boundary=None + ): + # The `type` kwarg also happens to be a built-in that pylint flags as + # redeclared. Safe to ignore this lint rule with this scope. + # pylint: disable=redefined-builtin + + if names is not None: + return super().__call__( + value, + names=names, + *values, + module=module, + qualname=qualname, + type=type, + start=start, + boundary=boundary, + ) + + try: + return super().__call__( + value, + names=names, # pyright: ignore[reportArgumentType] + *values, + module=module, + qualname=qualname, + type=type, + start=start, + boundary=boundary, + ) + except ValueError: + return value + else: + def __call__( + cls, value, names=None, *, module=None, qualname=None, type=None, start=1 + ): + # The `type` kwarg also happens to be a built-in that pylint flags as + # redeclared. Safe to ignore this lint rule with this scope. + # pylint: disable=redefined-builtin + + if names is not None: + return super().__call__( + value, + names=names, + module=module, + qualname=qualname, + type=type, + start=start, + ) + + try: + return super().__call__( + value, + names=names, # pyright: ignore[reportArgumentType] + module=module, + qualname=qualname, + type=type, + start=start, + ) + except ValueError: + return value + + def __new__(mcs, name, bases, namespace, **kwargs): + cls = super().__new__(mcs, name, bases, namespace, **kwargs) + + # Add __get_pydantic_core_schema__ to make open enums work correctly + # in union discrimination. In strict mode (used by Pydantic for unions), + # only known enum values match. In lax mode, unknown values are accepted. + def __get_pydantic_core_schema__( + cls_inner: Any, _source_type: Any, _handler: Any + ) -> core_schema.CoreSchema: + # Create a validator that only accepts known enum values (for strict mode) + def validate_strict(v: Any) -> Any: + if isinstance(v, cls_inner): + return v + # Use the parent EnumMeta's __call__ which raises ValueError for unknown values + return enum.EnumMeta.__call__(cls_inner, v) + + # Create a lax validator that accepts unknown values + def validate_lax(v: Any) -> Any: + if isinstance(v, cls_inner): + return v + try: + return enum.EnumMeta.__call__(cls_inner, v) + except ValueError: + # Return the raw value for unknown enum values + return v + + # Determine the base type schema (str or int) + is_int_enum = False + for base in cls_inner.__mro__: + if base is int: + is_int_enum = True + break + if base is str: + break + + base_schema = ( + core_schema.int_schema() + if is_int_enum + else core_schema.str_schema() ) - try: - return super().__call__( - value, - names=names, # pyright: ignore[reportArgumentType] - module=module, - qualname=qualname, - type=type, - start=start, + # Use lax_or_strict_schema: + # - strict mode: only known enum values match (raises ValueError for unknown) + # - lax mode: accept any value, return enum member or raw value + return core_schema.lax_or_strict_schema( + lax_schema=core_schema.chain_schema( + [base_schema, core_schema.no_info_plain_validator_function(validate_lax)] + ), + strict_schema=core_schema.chain_schema( + [base_schema, core_schema.no_info_plain_validator_function(validate_strict)] + ), ) - except ValueError: - return value + + setattr(cls, "__get_pydantic_core_schema__", classmethod(__get_pydantic_core_schema__)) + return cls diff --git a/sync-for-expenses/src/codat_sync_for_expenses/utils/eventstreaming.py b/sync-for-expenses/src/codat_sync_for_expenses/utils/eventstreaming.py index 74a63f757..f2052fc22 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/utils/eventstreaming.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/utils/eventstreaming.py @@ -2,7 +2,9 @@ import re import json +from dataclasses import dataclass, asdict from typing import ( + Any, Callable, Generic, TypeVar, @@ -17,70 +19,98 @@ class EventStream(Generic[T]): + # Holds a reference to the SDK client to avoid it being garbage collected + # and cause termination of the underlying httpx client. + client_ref: Optional[object] response: httpx.Response generator: Generator[T, None, None] + _closed: bool def __init__( self, response: httpx.Response, decoder: Callable[[str], T], sentinel: Optional[str] = None, + client_ref: Optional[object] = None, ): self.response = response self.generator = stream_events(response, decoder, sentinel) + self.client_ref = client_ref + self._closed = False def __iter__(self): return self def __next__(self): + if self._closed: + raise StopIteration return next(self.generator) def __enter__(self): return self def __exit__(self, exc_type, exc_val, exc_tb): + self._closed = True self.response.close() class EventStreamAsync(Generic[T]): + # Holds a reference to the SDK client to avoid it being garbage collected + # and cause termination of the underlying httpx client. + client_ref: Optional[object] response: httpx.Response generator: AsyncGenerator[T, None] + _closed: bool def __init__( self, response: httpx.Response, decoder: Callable[[str], T], sentinel: Optional[str] = None, + client_ref: Optional[object] = None, ): self.response = response self.generator = stream_events_async(response, decoder, sentinel) + self.client_ref = client_ref + self._closed = False def __aiter__(self): return self async def __anext__(self): + if self._closed: + raise StopAsyncIteration return await self.generator.__anext__() async def __aenter__(self): return self async def __aexit__(self, exc_type, exc_val, exc_tb): + self._closed = True await self.response.aclose() +@dataclass class ServerEvent: id: Optional[str] = None event: Optional[str] = None - data: Optional[str] = None + data: Any = None retry: Optional[int] = None MESSAGE_BOUNDARIES = [ b"\r\n\r\n", - b"\n\n", + b"\r\n\r", + b"\r\n\n", + b"\r\r\n", + b"\n\r\n", b"\r\r", + b"\n\r", + b"\n\n", ] +UTF8_BOM = b"\xef\xbb\xbf" + async def stream_events_async( response: httpx.Response, @@ -89,14 +119,10 @@ async def stream_events_async( ) -> AsyncGenerator[T, None]: buffer = bytearray() position = 0 - discard = False + event_id: Optional[str] = None async for chunk in response.aiter_bytes(): - # We've encountered the sentinel value and should no longer process - # incoming data. Instead we throw new data away until the server closes - # the connection. - if discard: - continue - + if len(buffer) == 0 and chunk.startswith(UTF8_BOM): + chunk = chunk[len(UTF8_BOM) :] buffer += chunk for i in range(position, len(buffer)): char = buffer[i : i + 1] @@ -111,15 +137,22 @@ async def stream_events_async( block = buffer[position:i] position = i + len(seq) - event, discard = _parse_event(block, decoder, sentinel) + event, discard, event_id = _parse_event( + raw=block, decoder=decoder, sentinel=sentinel, event_id=event_id + ) if event is not None: yield event + if discard: + await response.aclose() + return if position > 0: buffer = buffer[position:] position = 0 - event, discard = _parse_event(buffer, decoder, sentinel) + event, discard, _ = _parse_event( + raw=buffer, decoder=decoder, sentinel=sentinel, event_id=event_id + ) if event is not None: yield event @@ -131,14 +164,10 @@ def stream_events( ) -> Generator[T, None, None]: buffer = bytearray() position = 0 - discard = False + event_id: Optional[str] = None for chunk in response.iter_bytes(): - # We've encountered the sentinel value and should no longer process - # incoming data. Instead we throw new data away until the server closes - # the connection. - if discard: - continue - + if len(buffer) == 0 and chunk.startswith(UTF8_BOM): + chunk = chunk[len(UTF8_BOM) :] buffer += chunk for i in range(position, len(buffer)): char = buffer[i : i + 1] @@ -153,22 +182,33 @@ def stream_events( block = buffer[position:i] position = i + len(seq) - event, discard = _parse_event(block, decoder, sentinel) + event, discard, event_id = _parse_event( + raw=block, decoder=decoder, sentinel=sentinel, event_id=event_id + ) if event is not None: yield event + if discard: + response.close() + return if position > 0: buffer = buffer[position:] position = 0 - event, discard = _parse_event(buffer, decoder, sentinel) + event, discard, _ = _parse_event( + raw=buffer, decoder=decoder, sentinel=sentinel, event_id=event_id + ) if event is not None: yield event def _parse_event( - raw: bytearray, decoder: Callable[[str], T], sentinel: Optional[str] = None -) -> Tuple[Optional[T], bool]: + *, + raw: bytearray, + decoder: Callable[[str], T], + sentinel: Optional[str] = None, + event_id: Optional[str] = None, +) -> Tuple[Optional[T], bool, Optional[str]]: block = raw.decode() lines = re.split(r"\r?\n|\r", block) publish = False @@ -179,13 +219,16 @@ def _parse_event( continue delim = line.find(":") - if delim <= 0: + if delim == 0: continue - field = line[0:delim] - value = line[delim + 1 :] if delim < len(line) - 1 else "" - if len(value) and value[0] == " ": - value = value[1:] + field = line + value = "" + if delim > 0: + field = line[0:delim] + value = line[delim + 1 :] if delim < len(line) - 1 else "" + if len(value) and value[0] == " ": + value = value[1:] if field == "event": event.event = value @@ -194,37 +237,36 @@ def _parse_event( data += value + "\n" publish = True elif field == "id": - event.id = value publish = True + if "\x00" not in value: + event_id = value elif field == "retry": - event.retry = int(value) if value.isdigit() else None + if value.isdigit(): + event.retry = int(value) publish = True + event.id = event_id + if sentinel and data == f"{sentinel}\n": - return None, True + return None, True, event_id if data: data = data[:-1] - event.data = data - - data_is_primitive = ( - data.isnumeric() or data == "true" or data == "false" or data == "null" - ) - data_is_json = ( - data.startswith("{") or data.startswith("[") or data.startswith('"') - ) - - if data_is_primitive or data_is_json: - try: - event.data = json.loads(data) - except Exception: - pass + try: + event.data = json.loads(data) + except json.JSONDecodeError: + event.data = data out = None if publish: - out = decoder(json.dumps(event.__dict__)) - - return out, False + out_dict = { + k: v + for k, v in asdict(event).items() + if v is not None or (k == "data" and data) + } + out = decoder(json.dumps(out_dict)) + + return out, False, event_id def _peek_sequence(position: int, buffer: bytearray, sequence: bytes): diff --git a/sync-for-expenses/src/codat_sync_for_expenses/utils/forms.py b/sync-for-expenses/src/codat_sync_for_expenses/utils/forms.py index 9f5a731e9..f961e76be 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/utils/forms.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/utils/forms.py @@ -86,11 +86,39 @@ def _populate_form( return form +def _extract_file_properties(file_obj: Any) -> Tuple[str, Any, Any]: + """Extract file name, content, and content type from a file object.""" + file_fields: Dict[str, FieldInfo] = file_obj.__class__.model_fields + + file_name = "" + content = None + content_type = None + + for file_field_name in file_fields: + file_field = file_fields[file_field_name] + + file_metadata = find_field_metadata(file_field, MultipartFormMetadata) + if file_metadata is None: + continue + + if file_metadata.content: + content = getattr(file_obj, file_field_name, None) + elif file_field_name == "content_type": + content_type = getattr(file_obj, file_field_name, None) + else: + file_name = getattr(file_obj, file_field_name) + + if file_name == "" or content is None: + raise ValueError("invalid multipart/form-data file") + + return file_name, content, content_type + + def serialize_multipart_form( media_type: str, request: Any -) -> Tuple[str, Dict[str, Any], Dict[str, Any]]: +) -> Tuple[str, Dict[str, Any], List[Tuple[str, Any]]]: form: Dict[str, Any] = {} - files: Dict[str, Any] = {} + files: List[Tuple[str, Any]] = [] if not isinstance(request, BaseModel): raise TypeError("invalid request body type") @@ -109,47 +137,44 @@ def serialize_multipart_form( if not field_metadata: continue - f_name = field.alias if field.alias is not None else name + f_name = field.alias if field.alias else name if field_metadata.file: - file_fields: Dict[str, FieldInfo] = val.__class__.model_fields - - file_name = "" - field_name = "" - content = None - content_type = None - - for file_field_name in file_fields: - file_field = file_fields[file_field_name] - - file_metadata = find_field_metadata(file_field, MultipartFormMetadata) - if file_metadata is None: - continue + if isinstance(val, List): + # Handle array of files + array_field_name = f_name + "[]" + for file_obj in val: + if not _is_set(file_obj): + continue - if file_metadata.content: - content = getattr(val, file_field_name, None) - elif file_field_name == "content_type": - content_type = getattr(val, file_field_name, None) - else: - field_name = ( - file_field.alias - if file_field.alias is not None - else file_field_name + file_name, content, content_type = _extract_file_properties( + file_obj ) - file_name = getattr(val, file_field_name) - - if field_name == "" or file_name == "" or content is None: - raise ValueError("invalid multipart/form-data file") - if content_type is not None: - files[field_name] = (file_name, content, content_type) + if content_type is not None: + files.append( + (array_field_name, (file_name, content, content_type)) + ) + else: + files.append((array_field_name, (file_name, content))) else: - files[field_name] = (file_name, content) + # Handle single file + file_name, content, content_type = _extract_file_properties(val) + + if content_type is not None: + files.append((f_name, (file_name, content, content_type))) + else: + files.append((f_name, (file_name, content))) elif field_metadata.json: - files[f_name] = ( - None, - marshal_json(val, request_field_types[name]), - "application/json", + files.append( + ( + f_name, + ( + None, + marshal_json(val, request_field_types[name]), + "application/json", + ), + ) ) else: if isinstance(val, List): @@ -160,7 +185,8 @@ def serialize_multipart_form( continue values.append(_val_to_string(value)) - form[f_name + "[]"] = values + array_field_name = f_name + "[]" + form[array_field_name] = values else: form[f_name] = _val_to_string(val) return media_type, form, files diff --git a/sync-for-expenses/src/codat_sync_for_expenses/utils/queryparams.py b/sync-for-expenses/src/codat_sync_for_expenses/utils/queryparams.py index 37a6e7f9a..c04e0db82 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/utils/queryparams.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/utils/queryparams.py @@ -27,12 +27,13 @@ def get_query_params( query_params: Any, gbls: Optional[Any] = None, + allow_empty_value: Optional[List[str]] = None, ) -> Dict[str, List[str]]: params: Dict[str, List[str]] = {} - globals_already_populated = _populate_query_params(query_params, gbls, params, []) + globals_already_populated = _populate_query_params(query_params, gbls, params, [], allow_empty_value) if _is_set(gbls): - _populate_query_params(gbls, None, params, globals_already_populated) + _populate_query_params(gbls, None, params, globals_already_populated, allow_empty_value) return params @@ -42,6 +43,7 @@ def _populate_query_params( gbls: Any, query_param_values: Dict[str, List[str]], skip_fields: List[str], + allow_empty_value: Optional[List[str]] = None, ) -> List[str]: globals_already_populated: List[str] = [] @@ -69,6 +71,16 @@ def _populate_query_params( globals_already_populated.append(name) f_name = field.alias if field.alias is not None else name + + allow_empty_set = set(allow_empty_value or []) + should_include_empty = f_name in allow_empty_set and ( + value is None or value == [] or value == "" + ) + + if should_include_empty: + query_param_values[f_name] = [""] + continue + serialization = metadata.serialization if serialization is not None: serialized_parms = _get_serialized_params( diff --git a/sync-for-expenses/src/codat_sync_for_expenses/utils/requestbodies.py b/sync-for-expenses/src/codat_sync_for_expenses/utils/requestbodies.py index d5240dd5f..1de32b6d2 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/utils/requestbodies.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/utils/requestbodies.py @@ -44,15 +44,15 @@ def serialize_request_body( serialized_request_body = SerializedRequestBody(media_type) - if re.match(r"(application|text)\/.*?\+*json.*", media_type) is not None: + if re.match(r"^(application|text)\/([^+]+\+)*json.*", media_type) is not None: serialized_request_body.content = marshal_json(request_body, request_body_type) - elif re.match(r"multipart\/.*", media_type) is not None: + elif re.match(r"^multipart\/.*", media_type) is not None: ( serialized_request_body.media_type, serialized_request_body.data, serialized_request_body.files, ) = serialize_multipart_form(media_type, request_body) - elif re.match(r"application\/x-www-form-urlencoded.*", media_type) is not None: + elif re.match(r"^application\/x-www-form-urlencoded.*", media_type) is not None: serialized_request_body.data = serialize_form_data(request_body) elif isinstance(request_body, (bytes, bytearray, io.BytesIO, io.BufferedReader)): serialized_request_body.content = request_body diff --git a/sync-for-expenses/src/codat_sync_for_expenses/utils/retries.py b/sync-for-expenses/src/codat_sync_for_expenses/utils/retries.py index 4d6086716..af07d4e94 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/utils/retries.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/utils/retries.py @@ -3,7 +3,9 @@ import asyncio import random import time -from typing import List +from datetime import datetime +from email.utils import parsedate_to_datetime +from typing import List, Optional import httpx @@ -51,9 +53,11 @@ def __init__(self, config: RetryConfig, status_codes: List[str]): class TemporaryError(Exception): response: httpx.Response + retry_after: Optional[int] def __init__(self, response: httpx.Response): self.response = response + self.retry_after = _parse_retry_after_header(response) class PermanentError(Exception): @@ -63,6 +67,62 @@ def __init__(self, inner: Exception): self.inner = inner +def _parse_retry_after_header(response: httpx.Response) -> Optional[int]: + """Parse Retry-After header from response. + + Returns: + Retry interval in milliseconds, or None if header is missing or invalid. + """ + retry_after_header = response.headers.get("retry-after") + if not retry_after_header: + return None + + try: + seconds = float(retry_after_header) + return round(seconds * 1000) + except ValueError: + pass + + try: + retry_date = parsedate_to_datetime(retry_after_header) + delta = (retry_date - datetime.now(retry_date.tzinfo)).total_seconds() + return round(max(0, delta) * 1000) + except (ValueError, TypeError): + pass + + return None + + +def _get_sleep_interval( + exception: Exception, + initial_interval: int, + max_interval: int, + exponent: float, + retries: int, +) -> float: + """Get sleep interval for retry with exponential backoff. + + Args: + exception: The exception that triggered the retry. + initial_interval: Initial retry interval in milliseconds. + max_interval: Maximum retry interval in milliseconds. + exponent: Base for exponential backoff calculation. + retries: Current retry attempt count. + + Returns: + Sleep interval in seconds. + """ + if ( + isinstance(exception, TemporaryError) + and exception.retry_after is not None + and exception.retry_after > 0 + ): + return exception.retry_after / 1000 + + sleep = (initial_interval / 1000) * exponent**retries + random.uniform(0, 1) + return min(sleep, max_interval / 1000) + + def retry(func, retries: Retries): if retries.config.strategy == "backoff": @@ -84,12 +144,7 @@ def do_request() -> httpx.Response: if res.status_code == parsed_code: raise TemporaryError(res) - except httpx.ConnectError as exception: - if retries.config.retry_connection_errors: - raise - - raise PermanentError(exception) from exception - except httpx.TimeoutException as exception: + except (httpx.NetworkError, httpx.TimeoutException) as exception: if retries.config.retry_connection_errors: raise @@ -133,12 +188,7 @@ async def do_request() -> httpx.Response: if res.status_code == parsed_code: raise TemporaryError(res) - except httpx.ConnectError as exception: - if retries.config.retry_connection_errors: - raise - - raise PermanentError(exception) from exception - except httpx.TimeoutException as exception: + except (httpx.NetworkError, httpx.TimeoutException) as exception: if retries.config.retry_connection_errors: raise @@ -183,8 +233,10 @@ def retry_with_backoff( return exception.response raise - sleep = (initial_interval / 1000) * exponent**retries + random.uniform(0, 1) - sleep = min(sleep, max_interval / 1000) + + sleep = _get_sleep_interval( + exception, initial_interval, max_interval, exponent, retries + ) time.sleep(sleep) retries += 1 @@ -211,7 +263,9 @@ async def retry_with_backoff_async( return exception.response raise - sleep = (initial_interval / 1000) * exponent**retries + random.uniform(0, 1) - sleep = min(sleep, max_interval / 1000) + + sleep = _get_sleep_interval( + exception, initial_interval, max_interval, exponent, retries + ) await asyncio.sleep(sleep) retries += 1 diff --git a/sync-for-expenses/src/codat_sync_for_expenses/utils/security.py b/sync-for-expenses/src/codat_sync_for_expenses/utils/security.py index 295a3f400..17996bd54 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/utils/security.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/utils/security.py @@ -135,6 +135,8 @@ def _parse_security_scheme_value( elif scheme_type == "http": if sub_type == "bearer": headers[header_name] = _apply_bearer(value) + elif sub_type == "basic": + headers[header_name] = value elif sub_type == "custom": return else: diff --git a/sync-for-expenses/src/codat_sync_for_expenses/utils/serializers.py b/sync-for-expenses/src/codat_sync_for_expenses/utils/serializers.py index c5eb36597..14321eb47 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/utils/serializers.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/utils/serializers.py @@ -1,20 +1,24 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from decimal import Decimal +import functools import json -from typing import Any, Dict, List, Union, get_args -import httpx +import typing +from typing import Any, Dict, List, Tuple, Union, get_args +import typing_extensions from typing_extensions import get_origin + +import httpx from pydantic import ConfigDict, create_model from pydantic_core import from_json -from typing_inspect import is_optional_type from ..types.basemodel import BaseModel, Nullable, OptionalNullable, Unset def serialize_decimal(as_str: bool): def serialize(d): - if is_optional_type(type(d)) and d is None: + # Optional[T] is a Union[T, None] + if is_union(type(d)) and type(None) in get_args(type(d)) and d is None: return None if isinstance(d, Unset): return d @@ -42,7 +46,8 @@ def validate_decimal(d): def serialize_float(as_str: bool): def serialize(f): - if is_optional_type(type(f)) and f is None: + # Optional[T] is a Union[T, None] + if is_union(type(f)) and type(None) in get_args(type(f)) and f is None: return None if isinstance(f, Unset): return f @@ -70,7 +75,8 @@ def validate_float(f): def serialize_int(as_str: bool): def serialize(i): - if is_optional_type(type(i)) and i is None: + # Optional[T] is a Union[T, None] + if is_union(type(i)) and type(None) in get_args(type(i)) and i is None: return None if isinstance(i, Unset): return i @@ -96,29 +102,10 @@ def validate_int(b): return int(b) -def validate_open_enum(is_int: bool): - def validate(e): - if e is None: - return None - - if isinstance(e, Unset): - return e - - if is_int: - if not isinstance(e, int): - raise ValueError("Expected int") - else: - if not isinstance(e, str): - raise ValueError("Expected string") - - return e - - return validate - - def validate_const(v): def validate(c): - if is_optional_type(type(c)) and c is None: + # Optional[T] is a Union[T, None] + if is_union(type(c)) and type(None) in get_args(type(c)) and c is None: return None if v != c: @@ -163,7 +150,7 @@ def marshal_json(val, typ): if len(d) == 0: return "" - return json.dumps(d[next(iter(d))], separators=(",", ":"), sort_keys=True) + return json.dumps(d[next(iter(d))], separators=(",", ":")) def is_nullable(field): @@ -181,6 +168,15 @@ def is_nullable(field): return False +def is_union(obj: object) -> bool: + """ + Returns True if the given object is a typing.Union or typing_extensions.Union. + """ + return any( + obj is typing_obj for typing_obj in _get_typing_objects_by_name_of("Union") + ) + + def stream_to_text(stream: httpx.Response) -> str: return "".join(stream.iter_text()) @@ -213,3 +209,21 @@ def _contains_pydantic_model(data: Any) -> bool: return any(_contains_pydantic_model(value) for value in data.values()) return False + + +@functools.cache +def _get_typing_objects_by_name_of(name: str) -> Tuple[Any, ...]: + """ + Get typing objects by name from typing and typing_extensions. + Reference: https://typing-extensions.readthedocs.io/en/latest/#runtime-use-of-types + """ + result = tuple( + getattr(module, name) + for module in (typing, typing_extensions) + if hasattr(module, name) + ) + if not result: + raise ValueError( + f"Neither typing nor typing_extensions has an object called {name!r}" + ) + return result diff --git a/sync-for-expenses/src/codat_sync_for_expenses/utils/unmarshal_json_response.py b/sync-for-expenses/src/codat_sync_for_expenses/utils/unmarshal_json_response.py new file mode 100644 index 000000000..485351526 --- /dev/null +++ b/sync-for-expenses/src/codat_sync_for_expenses/utils/unmarshal_json_response.py @@ -0,0 +1,38 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from typing import Any, Optional, Type, TypeVar, overload + +import httpx + +from .serializers import unmarshal_json +from codat_sync_for_expenses.models import errors + +T = TypeVar("T") + + +@overload +def unmarshal_json_response( + typ: Type[T], http_res: httpx.Response, body: Optional[str] = None +) -> T: ... + + +@overload +def unmarshal_json_response( + typ: Any, http_res: httpx.Response, body: Optional[str] = None +) -> Any: ... + + +def unmarshal_json_response( + typ: Any, http_res: httpx.Response, body: Optional[str] = None +) -> Any: + if body is None: + body = http_res.text + try: + return unmarshal_json(body, typ) + except Exception as e: + raise errors.ResponseValidationError( + "Response validation failed", + http_res, + e, + body, + ) from e diff --git a/sync-for-expenses/src/codat_sync_for_expenses/utils/values.py b/sync-for-expenses/src/codat_sync_for_expenses/utils/values.py index 2b4b68321..dae01a443 100644 --- a/sync-for-expenses/src/codat_sync_for_expenses/utils/values.py +++ b/sync-for-expenses/src/codat_sync_for_expenses/utils/values.py @@ -3,8 +3,9 @@ from datetime import datetime from enum import Enum from email.message import Message +from functools import partial import os -from typing import Any, Callable, Dict, List, Optional, Tuple, TypeVar, Union +from typing import Any, Callable, Dict, List, Optional, Tuple, TypeVar, Union, cast from httpx import Response from pydantic import BaseModel @@ -51,6 +52,8 @@ def match_status_codes(status_codes: List[str], status_code: int) -> bool: T = TypeVar("T") +def cast_partial(typ): + return partial(cast, typ) def get_global_from_env( value: Optional[T], env_key: str, type_cast: Callable[[str], T]