Codat

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…

Finance & banking#openapi#financial

Fork copies the collection into your workspace, without the publisher's secrets, so you can add your own key and send requests. Star saves it to your starred APIs (Account › Marketplace) and helps others find it.

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...

See our OpenAPI spec

Endpoints 13

Connections

  • POSTCreate Partner Expense connection/companies/:companyId/sync/expenses/connections/partnerExpenseCreates a Partner Expense data connection

Configuration

  • GETGet company configuration/companies/:companyId/sync/expenses/configGets a companies expense sync configuration
  • POSTSet company configuration/companies/:companyId/sync/expenses/configSets a companies expense sync configuration

Mapping options

  • GETMapping options/companies/:companyId/sync/expenses/mappingOptionsGets the expense mapping options for a companies accounting software

Sync

  • POSTInitiate sync/companies/:companyId/sync/expenses/syncsInitiate sync of pending transactions.

Sync status

  • GETLast successful sync/companies/:companyId/sync/expenses/syncs/lastSuccessful/statusGets the status of the last successfull sync
  • GETLatest sync status/companies/:companyId/sync/expenses/syncs/latest/statusGets the latest sync status
  • GETList sync statuses/companies/:companyId/sync/expenses/syncs/list/statusGets a list of sync statuses
  • GETGet Sync status/companies/:companyId/sync/expenses/syncs/:syncId/statusGet the sync status for a specified sync

Expenses

  • POSTCreate expense-transactions/companies/:companyId/sync/expenses/data/expense-transactionsCreate an expense transaction
  • POSTUpload attachment/companies/:companyId/sync/expenses/syncs/:syncId/transactions/:transactionId/attachmentsCreates an attachment in the accounting software against the given transactionId

Transaction status

  • GETGet Sync transactions/companies/:companyId/sync/expenses/syncs/:syncId/transactions?page=1&pageSize=100Get's the transactions and status for a sync
  • GETGet Sync Transaction/companies/:companyId/sync/expenses/syncs/:syncId/transactions/:transactionIdGets the status of a transaction for a sync

API details

Base URL
https://api.codat.io
Authentication
An API key in the Authorization header
Operations
13 operations on 12 pathsGET 8POST 5
Main resources
Sync status 4Configuration 2Expenses 2Transaction status 2Connections 1Mapping options 1Sync 1
Response formats
application/json
Description format
OpenAPI 3.1.0, API version prealpha
Listed from
APIs.guru OpenAPI Directory (CC0-1.0)
Source updated

How to test the Codat Expense API in Swastik Codes

  1. Open the APISelect “Fork & run in Swastik Codes” on this page. Sign in or create a free account if asked.
  2. Fork it into your workspaceChoose a workspace. You get your own copy of the Codat Expense API collection, without the publisher's secrets.
  3. Add your credentialsThis API uses an API key in the Authorization header. Add yours in the collection's variables or an environment; the requests already reference it.
  4. Send a requestPick an endpoint, for example “Create Partner Expense connection” (POST /companies/:companyId/sync/expenses/connections/partnerExpense), and press Send. Check the response, add tests and run the whole collection with the runner.

Frequently asked questions

What is the 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… It is listed under Finance & banking and has 13 endpoints.

Who publishes the Codat Expense API?

It is listed from Codat's public API description (an OpenAPI document), not published by Codat on Swastik Codes. Anyone who controls codat.io can claim the profile by adding a DNS TXT record.

What is the base URL of the Codat Expense API?

Requests go to https://api.codat.io. Endpoint paths are added to this base URL.

How do I authenticate with the Codat Expense API?

With an API key in the Authorization header.

How many endpoints does the Codat Expense API have?

13 operations on 12 paths (8 GET, 5 POST). The largest groups are Sync status, Configuration, Expenses, Transaction status.

Is forking the Codat Expense API free?

Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.

Suggest an API

Tell us which public API is missing. We check it, then add it here with its endpoints when it has an OpenAPI (Swagger) description.