Codat Expense API
codat · Finance
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 platforms through a standardized API. [Read more...](https://docs.codat.io/sync-for-expenses/overview) [See our OpenAPI spec](https://github.com/codatio/oas)
Authentication
Sample Requests
Gets a companies expense sync configuration
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/codat.io/sync-for-expenses/prealpha/companies/{companyId}/sync/expenses/config"import requests
response = requests.get(
"https://api.apis.guru/v2/specs/codat.io/sync-for-expenses/prealpha/companies/{companyId}/sync/expenses/config",
)
print(response.json())const url = 'https://api.apis.guru/v2/specs/codat.io/sync-for-expenses/prealpha/companies/{companyId}/sync/expenses/config';
const response = await fetch(url);
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
)
func main() {
targetURL := "https://api.apis.guru/v2/specs/codat.io/sync-for-expenses/prealpha/companies/{companyId}/sync/expenses/config"
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/sync-for-expenses/prealpha/companies/{companyId}/sync/expenses/config")
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/sync-for-expenses/prealpha/companies/{companyId}/sync/expenses/config";
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Gets the expense mapping options for a companies accounting software
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/codat.io/sync-for-expenses/prealpha/companies/{companyId}/sync/expenses/mappingOptions"import requests
response = requests.get(
"https://api.apis.guru/v2/specs/codat.io/sync-for-expenses/prealpha/companies/{companyId}/sync/expenses/mappingOptions",
)
print(response.json())const url = 'https://api.apis.guru/v2/specs/codat.io/sync-for-expenses/prealpha/companies/{companyId}/sync/expenses/mappingOptions';
const response = await fetch(url);
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
)
func main() {
targetURL := "https://api.apis.guru/v2/specs/codat.io/sync-for-expenses/prealpha/companies/{companyId}/sync/expenses/mappingOptions"
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/sync-for-expenses/prealpha/companies/{companyId}/sync/expenses/mappingOptions")
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/sync-for-expenses/prealpha/companies/{companyId}/sync/expenses/mappingOptions";
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Gets the status of the last successfull sync
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/codat.io/sync-for-expenses/prealpha/companies/{companyId}/sync/expenses/syncs/lastSuccessful/status"import requests
response = requests.get(
"https://api.apis.guru/v2/specs/codat.io/sync-for-expenses/prealpha/companies/{companyId}/sync/expenses/syncs/lastSuccessful/status",
)
print(response.json())const url = 'https://api.apis.guru/v2/specs/codat.io/sync-for-expenses/prealpha/companies/{companyId}/sync/expenses/syncs/lastSuccessful/status';
const response = await fetch(url);
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
)
func main() {
targetURL := "https://api.apis.guru/v2/specs/codat.io/sync-for-expenses/prealpha/companies/{companyId}/sync/expenses/syncs/lastSuccessful/status"
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/sync-for-expenses/prealpha/companies/{companyId}/sync/expenses/syncs/lastSuccessful/status")
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/sync-for-expenses/prealpha/companies/{companyId}/sync/expenses/syncs/lastSuccessful/status";
$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 Codat Expense API?
Codat Expense 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. Codat Expense 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?