Every API here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for apis
7 MCP tools reach this
find_apisBrowse and filter every API in the catalog.
get_api_artifactsOne API's artifacts, grouped by type.
get_openapiThe primary OpenAPI for this API.
find_similar_apisAPIs that look like this one.
apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
resolveTurn a domain, URL or GitHub org into the provider it belongs to.
find_cohortsEvery scored population of providers in the catalog.
All 92 tools →
Call it yourself
curl for this page
This API
curl "https://apis.io/api/v1/apis/codat-company-info-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. See our Privacy Policy and
Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Lending Company info API
description: 'Our Lending solution helps you make smarter credit decisions on small businesses by enabling you to pull your customers'' latest data from accounting, banking, and commerce software they are already using. It also includes features to help providers verify the accuracy of data and process it more efficiently.
The Lending solution is built on top of the latest accounting, commerce, and banking data, providing you with the most important data points you need to get a full picture of SMB creditworthiness and make a comprehensive assessment of your customers.
[Explore solution](https://docs.codat.io/lending/overview) | [See OpenAPI spec](https://github.com/codatio/oas)
<!-- Start Codat Tags Table -->
## Endpoints
| Endpoints | Description |
| :- |:- |
| Companies | Create and manage your SMB users'' companies. |
| Connections | Create new and manage existing data connections for a company. |
| Bank statements | Retrieve banking data from linked bank accounts. |
| Sales | Retrieve standardized sales data from a linked commerce software. |
| Financial statements | Financial data and reports from a linked accounting software. |
| Liabilities | Debt and other liabilities. |
| Accounts payable | Data from a linked accounting software representing money the business owes money to its suppliers. |
| Accounts receivable | Data from a linked accounting software representing money owed to the business for sold goods or services. |
| Transactions | Data from a linked accounting software representing transactions. |
| Company info | View company information fetched from the source platform. |
| Data integrity | Match mutable accounting data with immutable banking data to increase confidence in financial data. |
| Excel reports | Download reports in Excel format. |
| Manage data | Control how data is retrieved from an integration. |
| File upload | Endpoints to manage uploaded files. |
| Loan writeback | Implement the [loan writeback](https://docs.codat.io/lending/guides/loan-writeback/introduction) procedure in your lending process to maintain an accurate position of a loan during the entire lending cycle. |
<!-- End Codat Tags Table -->'
version: 3.0.0
contact:
name: Codat
email: support@codat.io
termsOfService: https://www.codat.io/legals/
servers:
- description: Production
url: https://api.codat.io
security:
- auth_header: []
tags:
- name: Company info
description: View company information fetched from the source platform.
paths:
/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}/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."'
components:
schemas:
SourceAccount:
title: Source account (v1)
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:
type: string
nullable: true
description: The bank account name.
accountType:
type: string
nullable: true
description: The type of bank account e.g. Credit.
accountNumber:
type: string
nullable: true
description: The account number.
sortCode:
type: string
nullable: true
description: The sort code.
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
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)
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'
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
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
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
ErrorMessage:
title: Error message
type: object
x-internal: true
properties:
statusCode:
type: integer
description: The HTTP status code returned by the error.
service:
type: string
description: Codat's service the returned the error.
error:
type: string
description: A brief description of the error.
correlationId:
type: string
description: Unique identifier used to propagate to all downstream services and determine the source of the error.
validation:
$ref: '#/components/schemas/ErrorMessage/definitions/errorValidation'
canBeRetried:
type: string
description: '`True` if the error occurred transiently and can be retried.'
detailedErrorCode:
type: integer
description: Machine readable error code used to automate processes based on the code returned.
definitions:
errorValidation:
title: Validation error
type: object
nullable: true
description: A human-readable object describing validation decisions Codat has made. If an operation has failed because of validation errors, they will be detailed here.
properties:
errors:
type: array
nullable: true
items:
$ref: '#/components/schemas/ErrorMessage/definitions/errorValidationItem'
warnings:
type: array
nullable: true
items:
$ref: '#/components/schemas/ErrorMessage/definitions/errorValidationItem'
errorValidationItem:
title: Validation error item
type: object
properties:
itemId:
type: string
nullable: true
description: Unique identifier for a validation item.
message:
type: string
nullable: true
description: A message outlining validation item's issue.
validatorName:
type: string
nullable: true
description: Name of validator.
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
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
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 <a href=\"https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes\" target=\"_blank\">ISO 3166</a> 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
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 <a class="external" href="https://en.wikipedia.org/wiki/ISO_8601" target="_blank">ISO 8601 standard</a>.'
- 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 <a class=\"external\" href=\"https://en.wikipedia.org/wiki/ISO_8601\" target=\"_blank\">ISO 8601 standard</a>."
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
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
WebLink:
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
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 'deeplinki
# --- truncated at 32 KB (46 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/codat/refs/heads/main/openapi/codat-company-info-api-openapi.yml