Skip to content

Accounting API API

by codat.io

API keyHTTPSFinance
Open documentation ↗

Overview

A flexible API for pulling accounting data, normalized and aggregated from 20 accounting integrations. Standardize how you connect to your customers’ accounting software. View, create, update, and delete data in the same way for all the leading accounting platforms. [Read more...](https://docs.codat.io/accounting-api/overview) [See our OpenAPI spec](https://github.com/codatio/oas)

Accounting API is a finance API from codat.io. Requests are authenticated with an API key. It is served over HTTPS. Its OpenAPI description documents 127 endpoints.

At a glance

Authentication
API key
HTTPS
Yes
CORS
Unknown
Category
Finance
Base URL
https://api.codat.io
Version
2.1.0
Endpoints
127
Spec updated
2023-04-18

Make a first request

Replace the placeholders; the documentation says exactly where credentials go.

cURL
curl -X GET "https://api.codat.io/companies/COMPANYID/connections/CONNECTIONID/data/accountTransactions" \
  -H "Accept: application/json" \
  -H "X-API-Key: YOUR_API_KEY"
JavaScript
const response = await fetch("https://api.codat.io/companies/COMPANYID/connections/CONNECTIONID/data/accountTransactions", {
  method: "GET",
  headers: {
    "Accept": "application/json",
    "X-API-Key": "YOUR_API_KEY",
  },
});
const data = await response.json();
console.log(data);
Python
import requests

response = requests.request(
    "GET",
    "https://api.codat.io/companies/COMPANYID/connections/CONNECTIONID/data/accountTransactions",
    headers={
    "Accept": "application/json",
    "X-API-Key": "YOUR_API_KEY",
    },
    timeout=30,
)
print(response.json())

Endpoints

MethodPathWhat it does
GET/companies/{companyId}/connections/{connectionId}/data/accountTransactionsList account transactions
GET/companies/{companyId}/connections/{connectionId}/data/accountTransactions/{accountTransactionId}Get account transaction
GET/companies/{companyId}/connections/{connectionId}/data/bankAccountsList bank accounts
GET/companies/{companyId}/connections/{connectionId}/data/bankAccounts/{accountId}deprecatedGet bank account
GET/companies/{companyId}/connections/{connectionId}/data/bankAccounts/{accountId}/bankTransactionsList bank transactions for bank account
GET/companies/{companyId}/connections/{connectionId}/data/bills/{billId}/attachmentsList bill attachments
GET/companies/{companyId}/connections/{connectionId}/data/bills/{billId}/attachments/{attachmentId}Get bill attachment
GET/companies/{companyId}/connections/{connectionId}/data/bills/{billId}/attachments/{attachmentId}/downloadDownload bill attachment
GET/companies/{companyId}/connections/{connectionId}/data/customers/{customerId}/attachmentsList customer attachments
GET/companies/{companyId}/connections/{connectionId}/data/customers/{customerId}/attachments/{attachmentId}Get customer attachment
GET/companies/{companyId}/connections/{connectionId}/data/customers/{customerId}/attachments/{attachmentId}/downloadDownload customer attachment
GET/companies/{companyId}/connections/{connectionId}/data/directCostsList direct costs
GET/companies/{companyId}/connections/{connectionId}/data/directCosts/{directCostId}deprecatedGet direct cost
GET/companies/{companyId}/connections/{connectionId}/data/directCosts/{directCostId}/attachmentsList direct cost attachments
GET/companies/{companyId}/connections/{connectionId}/data/directCosts/{directCostId}/attachments/{attachmentId}Get direct cost attachment
GET/companies/{companyId}/connections/{connectionId}/data/directCosts/{directCostId}/attachments/{attachmentId}/downloadDownload direct cost attachment
GET/companies/{companyId}/connections/{connectionId}/data/directIncomesGet direct incomes
GET/companies/{companyId}/connections/{connectionId}/data/directIncomes/{directIncomeId}deprecatedGet direct income
GET/companies/{companyId}/connections/{connectionId}/data/directIncomes/{directIncomeId}/attachmentsList direct income attachments
GET/companies/{companyId}/connections/{connectionId}/data/directIncomes/{directIncomeId}/attachments/{attachmentId}Get direct income attachment
GET/companies/{companyId}/connections/{connectionId}/data/directIncomes/{directIncomeId}/attachments/{attachmentId}/downloadDownload direct income attachment
GET/companies/{companyId}/connections/{connectionId}/data/invoices/{invoiceId}/attachmentsGet invoice attachments
GET/companies/{companyId}/connections/{connectionId}/data/invoices/{invoiceId}/attachments/{attachmentId}Get invoice attachment
GET/companies/{companyId}/connections/{connectionId}/data/invoices/{invoiceId}/attachments/{attachmentId}/downloadDownload invoice attachment
GET/companies/{companyId}/connections/{connectionId}/data/suppliers/{supplierId}/attachmentsList supplier attachments
GET/companies/{companyId}/connections/{connectionId}/data/suppliers/{supplierId}/attachments/{attachmentId}Get supplier attachment
GET/companies/{companyId}/connections/{connectionId}/data/suppliers/{supplierId}/attachments/{attachmentId}/downloadDownload supplier attachment
GET/companies/{companyId}/connections/{connectionId}/data/transfersList transfers
GET/companies/{companyId}/connections/{connectionId}/data/transfers/{transferId}deprecatedGet transfer
GET/companies/{companyId}/connections/{connectionId}/options/bankAccountsGet create/update bank account model
GET/companies/{companyId}/connections/{connectionId}/options/bankAccounts/{accountId}/bankTransactionsList push options for bank account bank transactions
GET/companies/{companyId}/connections/{connectionId}/options/billCreditNotesGet create/update bill credit note model
GET/companies/{companyId}/connections/{connectionId}/options/billPaymentsGet create bill payment model
GET/companies/{companyId}/connections/{connectionId}/options/billsGet create/update bill model
GET/companies/{companyId}/connections/{connectionId}/options/chartOfAccountsGet create account model
GET/companies/{companyId}/connections/{connectionId}/options/creditNotesGet create/update credit note model
GET/companies/{companyId}/connections/{connectionId}/options/customersGet create/update customer model
GET/companies/{companyId}/connections/{connectionId}/options/directCostsGet create direct cost model
GET/companies/{companyId}/connections/{connectionId}/options/directIncomesGet create direct income model
GET/companies/{companyId}/connections/{connectionId}/options/invoicesGet create/update invoice model
GET/companies/{companyId}/connections/{connectionId}/options/itemsGet create item model
GET/companies/{companyId}/connections/{connectionId}/options/journalEntriesGet create journal entry model
GET/companies/{companyId}/connections/{connectionId}/options/journalsGet create journal model
GET/companies/{companyId}/connections/{connectionId}/options/paymentsGet create payment model
GET/companies/{companyId}/connections/{connectionId}/options/purchaseOrdersGet create/update purchase order model
GET/companies/{companyId}/connections/{connectionId}/options/suppliersGet create/update supplier model
GET/companies/{companyId}/connections/{connectionId}/options/transfersGet create transfer model
POST/companies/{companyId}/connections/{connectionId}/push/accountsCreate account
POST/companies/{companyId}/connections/{connectionId}/push/bankAccountsCreate bank account
POST/companies/{companyId}/connections/{connectionId}/push/bankAccounts/{accountId}/bankTransactionsCreate bank transactions
PUT/companies/{companyId}/connections/{connectionId}/push/bankAccounts/{bankAccountId}Update bank account
POST/companies/{companyId}/connections/{connectionId}/push/billCreditNotesCreate bill credit note
PUT/companies/{companyId}/connections/{connectionId}/push/billCreditNotes/{billCreditNoteId}Update bill credit note
POST/companies/{companyId}/connections/{connectionId}/push/billPaymentsCreate bill payments
DELETE/companies/{companyId}/connections/{connectionId}/push/billPayments/{billPaymentId}Delete bill payment
POST/companies/{companyId}/connections/{connectionId}/push/billsCreate bill
PUT/companies/{companyId}/connections/{connectionId}/push/bills/{billId}Update bill
DELETE/companies/{companyId}/connections/{connectionId}/push/bills/{billId}Delete bill
POST/companies/{companyId}/connections/{connectionId}/push/bills/{billId}/attachmentsUpload bill attachments
POST/companies/{companyId}/connections/{connectionId}/push/creditNotesCreate credit note
PUT/companies/{companyId}/connections/{connectionId}/push/creditNotes/{creditNoteId}Update creditNote
POST/companies/{companyId}/connections/{connectionId}/push/customersCreate customer
PUT/companies/{companyId}/connections/{connectionId}/push/customers/{customerId}Update customer
POST/companies/{companyId}/connections/{connectionId}/push/directCostsCreate direct cost
POST/companies/{companyId}/connections/{connectionId}/push/directCosts/{directCostId}/attachmentUpload direct cost attachment
POST/companies/{companyId}/connections/{connectionId}/push/directIncomesCreate direct income
POST/companies/{companyId}/connections/{connectionId}/push/directIncomes/{directIncomeId}/attachmentCreate direct income attachment
POST/companies/{companyId}/connections/{connectionId}/push/invoicesCreate invoice
PUT/companies/{companyId}/connections/{connectionId}/push/invoices/{invoiceId}Update invoice
DELETE/companies/{companyId}/connections/{connectionId}/push/invoices/{invoiceId}Delete invoice
POST/companies/{companyId}/connections/{connectionId}/push/invoices/{invoiceId}/attachmentPush invoice attachment
POST/companies/{companyId}/connections/{connectionId}/push/itemsCreate item
POST/companies/{companyId}/connections/{connectionId}/push/journalEntriesCreate journal entry
DELETE/companies/{companyId}/connections/{connectionId}/push/journalEntries/{journalEntryId}Delete journal entry
POST/companies/{companyId}/connections/{connectionId}/push/journalsCreate journal
POST/companies/{companyId}/connections/{connectionId}/push/paymentsCreate payment
POST/companies/{companyId}/connections/{connectionId}/push/purchaseOrdersCreate purchase order
PUT/companies/{companyId}/connections/{connectionId}/push/purchaseOrders/{purchaseOrderId}Update purchase order
POST/companies/{companyId}/connections/{connectionId}/push/suppliersCreate suppliers
PUT/companies/{companyId}/connections/{connectionId}/push/suppliers/{supplierId}Update supplier
POST/companies/{companyId}/connections/{connectionId}/push/transfersCreate transfer
GET/companies/{companyId}/data/accountsList accounts
GET/companies/{companyId}/data/accounts/{accountId}deprecatedGet account
GET/companies/{companyId}/data/bankAccounts/{accountId}deprecatedGet bank account
GET/companies/{companyId}/data/bankAccounts/{accountId}/transactionsList all bank transactions
GET/companies/{companyId}/data/billCreditNotesList bill credit notes
GET/companies/{companyId}/data/billCreditNotes/{billCreditNoteId}deprecatedGet bill credit note
GET/companies/{companyId}/data/billPaymentsList bill payments
GET/companies/{companyId}/data/billPayments/{billPaymentId}deprecatedGet bill payment
GET/companies/{companyId}/data/billsList bills
GET/companies/{companyId}/data/bills/{billId}Get bill
GET/companies/{companyId}/data/creditNotesList credit notes
GET/companies/{companyId}/data/creditNotes/{creditNoteId}deprecatedGet credit note
GET/companies/{companyId}/data/customersList customers
GET/companies/{companyId}/data/customers/{customerId}deprecatedGet customer
GET/companies/{companyId}/data/financials/balanceSheetGet balance sheet
GET/companies/{companyId}/data/financials/cashFlowStatementGet cash flow statement
GET/companies/{companyId}/data/financials/profitAndLossGet profit and loss
GET/companies/{companyId}/data/infoGet company info
POST/companies/{companyId}/data/infoRefresh company info

Showing the first 100 of 127 endpoints; the full list is in the documentation.

Questions

Does the Accounting API API need an API key?

Yes. The Accounting API API uses API key authentication; the documentation explains how to get credentials.

Does the Accounting API API support HTTPS?

Yes, the Accounting API API is served over HTTPS.

How many endpoints does the Accounting API API have?

Its OpenAPI description lists 127 endpoints in version 2.1.0. The first 100 are shown on this page.

What are alternatives to the Accounting API API?

Other Finance APIs include Stripe, SEC EDGAR Data, Plaid, Fed Treasury, Razorpay IFSC.

Compare alternatives →

Listed from APIs.guru (CC0).