Skip to content

Codat Expense API API

by codat.io

API keyHTTPSFinance
Open documentation ↗

Overview

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)

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

At a glance

Authentication
API key
HTTPS
Yes
CORS
Unknown
Category
Finance
Base URL
https://api.codat.io
Version
prealpha
Endpoints
13
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/sync/expenses/config" \
  -H "Accept: application/json" \
  -H "X-API-Key: YOUR_API_KEY"
JavaScript
const response = await fetch("https://api.codat.io/companies/COMPANYID/sync/expenses/config", {
  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/sync/expenses/config",
    headers={
    "Accept": "application/json",
    "X-API-Key": "YOUR_API_KEY",
    },
    timeout=30,
)
print(response.json())

Endpoints

MethodPathWhat it does
GET/companies/{companyId}/sync/expenses/configGet company configuration
POST/companies/{companyId}/sync/expenses/configSet company configuration
POST/companies/{companyId}/sync/expenses/connections/partnerExpenseCreate Partner Expense connection
POST/companies/{companyId}/sync/expenses/data/expense-transactionsCreate expense-transactions
GET/companies/{companyId}/sync/expenses/mappingOptionsMapping options
POST/companies/{companyId}/sync/expenses/syncsInitiate sync
GET/companies/{companyId}/sync/expenses/syncs/lastSuccessful/statusLast successful sync
GET/companies/{companyId}/sync/expenses/syncs/latest/statusLatest sync status
GET/companies/{companyId}/sync/expenses/syncs/list/statusList sync statuses
GET/companies/{companyId}/sync/expenses/syncs/{syncId}/statusGet Sync status
GET/companies/{companyId}/sync/expenses/syncs/{syncId}/transactionsGet Sync transactions
GET/companies/{companyId}/sync/expenses/syncs/{syncId}/transactions/{transactionId}Get Sync Transaction
POST/companies/{companyId}/sync/expenses/syncs/{syncId}/transactions/{transactionId}/attachmentsUpload attachment

Questions

Does the Codat Expense API API need an API key?

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

Does the Codat Expense API API support HTTPS?

Yes, the Codat Expense API API is served over HTTPS.

How many endpoints does the Codat Expense API API have?

Its OpenAPI description lists 13 endpoints in version prealpha. All of them are shown on this page.

What are alternatives to the Codat Expense API API?

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

Compare alternatives →

Listed from APIs.guru (CC0).