Accounting API
codat · Finance
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)
Authentication
Sample Requests
Gets the latest accounts for a company
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/codat.io/accounting/2.1.0/companies/{companyId}/data/accounts?page=1&query=test&orderBy=date&pageSize=100"import requests
params = {
"page": "1",
"query": "test",
"orderBy": "date",
"pageSize": "100"
}
response = requests.get(
"https://api.apis.guru/v2/specs/codat.io/accounting/2.1.0/companies/{companyId}/data/accounts",
params=params,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/codat.io/accounting/2.1.0/companies/{companyId}/data/accounts');
url.searchParams.set('page', '1');
url.searchParams.set('query', 'test');
url.searchParams.set('orderBy', 'date');
url.searchParams.set('pageSize', '100');
const response = await fetch(url);
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
"net/url"
)
func main() {
baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/codat.io/accounting/2.1.0/companies/{companyId}/data/accounts")
q := baseURL.Query()
q.Set("page", "1")
q.Set("query", "test")
q.Set("orderBy", "date")
q.Set("pageSize", "100")
baseURL.RawQuery = q.Encode()
targetURL := baseURL.String()
req, _ := http.NewRequest("GET", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/codat.io/accounting/2.1.0/companies/{companyId}/data/accounts")
uri.query = URI.encode_www_form({
"page" => "1",
"query" => "test",
"orderBy" => "date",
"pageSize" => "100"
})
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/codat.io/accounting/2.1.0/companies/{companyId}/data/accounts?" . http_build_query([
"page" => "1",
"query" => "test",
"orderBy" => "date",
"pageSize" => "100"
]);
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Gets a list of all bill credit notes for a company, with pagination
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/codat.io/accounting/2.1.0/companies/{companyId}/data/billCreditNotes?page=1&query=test&orderBy=date&pageSize=100"import requests
params = {
"page": "1",
"query": "test",
"orderBy": "date",
"pageSize": "100"
}
response = requests.get(
"https://api.apis.guru/v2/specs/codat.io/accounting/2.1.0/companies/{companyId}/data/billCreditNotes",
params=params,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/codat.io/accounting/2.1.0/companies/{companyId}/data/billCreditNotes');
url.searchParams.set('page', '1');
url.searchParams.set('query', 'test');
url.searchParams.set('orderBy', 'date');
url.searchParams.set('pageSize', '100');
const response = await fetch(url);
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
"net/url"
)
func main() {
baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/codat.io/accounting/2.1.0/companies/{companyId}/data/billCreditNotes")
q := baseURL.Query()
q.Set("page", "1")
q.Set("query", "test")
q.Set("orderBy", "date")
q.Set("pageSize", "100")
baseURL.RawQuery = q.Encode()
targetURL := baseURL.String()
req, _ := http.NewRequest("GET", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/codat.io/accounting/2.1.0/companies/{companyId}/data/billCreditNotes")
uri.query = URI.encode_www_form({
"page" => "1",
"query" => "test",
"orderBy" => "date",
"pageSize" => "100"
})
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/codat.io/accounting/2.1.0/companies/{companyId}/data/billCreditNotes?" . http_build_query([
"page" => "1",
"query" => "test",
"orderBy" => "date",
"pageSize" => "100"
]);
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Gets the latest billPayments for a company, with pagination
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/codat.io/accounting/2.1.0/companies/{companyId}/data/billPayments?page=1&query=test&orderBy=date&pageSize=100"import requests
params = {
"page": "1",
"query": "test",
"orderBy": "date",
"pageSize": "100"
}
response = requests.get(
"https://api.apis.guru/v2/specs/codat.io/accounting/2.1.0/companies/{companyId}/data/billPayments",
params=params,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/codat.io/accounting/2.1.0/companies/{companyId}/data/billPayments');
url.searchParams.set('page', '1');
url.searchParams.set('query', 'test');
url.searchParams.set('orderBy', 'date');
url.searchParams.set('pageSize', '100');
const response = await fetch(url);
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
"net/url"
)
func main() {
baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/codat.io/accounting/2.1.0/companies/{companyId}/data/billPayments")
q := baseURL.Query()
q.Set("page", "1")
q.Set("query", "test")
q.Set("orderBy", "date")
q.Set("pageSize", "100")
baseURL.RawQuery = q.Encode()
targetURL := baseURL.String()
req, _ := http.NewRequest("GET", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/codat.io/accounting/2.1.0/companies/{companyId}/data/billPayments")
uri.query = URI.encode_www_form({
"page" => "1",
"query" => "test",
"orderBy" => "date",
"pageSize" => "100"
})
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/codat.io/accounting/2.1.0/companies/{companyId}/data/billPayments?" . http_build_query([
"page" => "1",
"query" => "test",
"orderBy" => "date",
"pageSize" => "100"
]);
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Postman Setup Guide
- See official documentation for authentication and setup.
What can you build with Accounting API?
Accounting API is a Finance API. Developers commonly use finance APIs for:
- processing payments and handling transactions
- building subscription and billing systems
- automating invoicing and financial reporting
- fraud detection and risk scoring
- connecting to banking and accounting software
No authentication required. This API is open — no signup or key needed. Ideal for quick prototypes and public-facing features. Accounting API is free to use, making it a low-risk choice to experiment with.
New to APIs? Read our beginner's guide · Learn about API keys · What is REST?