APIHub
Back to Explore

Codat Expense API

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.

Finance
apiKeyHeader
HTTPS
CORS: Unknown
Visit official documentation

Latency

Not monitored yet

Uptime

Not monitored yet

Playground

Verified

live

Endpoints

REST · JSON
GET

/companies/{companyId}/sync/expenses/config

Get company configuration

POST

/companies/{companyId}/sync/expenses/config

Set company configuration

POST

/companies/{companyId}/sync/expenses/connections/partnerExpense

Create Partner Expense connection

POST

/companies/{companyId}/sync/expenses/data/expense-transactions

Create expense-transactions

GET

/companies/{companyId}/sync/expenses/mappingOptions

Mapping options

POST

/companies/{companyId}/sync/expenses/syncs

Initiate sync

GET

/companies/{companyId}/sync/expenses/syncs/lastSuccessful/status

Last successful sync

GET

/companies/{companyId}/sync/expenses/syncs/latest/status

Latest sync status

GET

/companies/{companyId}/sync/expenses/syncs/list/status

List sync statuses

GET

/companies/{companyId}/sync/expenses/syncs/{syncId}/status

Get Sync status

  • syncId (path, required) — Unique identifier for a sync.
GET

/companies/{companyId}/sync/expenses/syncs/{syncId}/transactions

Get Sync transactions

  • syncId (path, required) — Unique identifier for a sync.
  • page (query, required, page) — Page number. [Read more](https://docs.codat.io/using-the-api/paging).
  • pageSize (query, limit) — Number of records to return in a page. [Read more](https://docs.codat.io/using-the-api/paging).
GET

/companies/{companyId}/sync/expenses/syncs/{syncId}/transactions/{transactionId}

Get Sync Transaction

  • syncId (path, required) — Unique identifier for a sync.
  • transactionId (path, required) — The unique identifier for your SMB's transaction.
POST

/companies/{companyId}/sync/expenses/syncs/{syncId}/transactions/{transactionId}/attachments

Upload attachment

13 endpoints auto-detected

Authentication

This API uses an API key, passed in the "Authorization" header. No OAuth required.

curl -X GET \
  "https://api.codat.io/companies/{companyId}/sync/expenses/config" \
  -H "Authorization: YOUR_API_KEY"

api.codat.io · HTTPS only