Expenses

Update expense transactions

The Update expense endpoint updates an existing expense transaction in the accounting software for a given company's connection.

Expense transactions represent transactions made with a company debit or credit card.

Supported integrations

The following integrations are supported for each transaction type. The Reward and Chargeback transaction types are not supported for any integration.

IntegrationPaymentRefund
FreeAgentYesNo
QuickBooks DesktopYesYes
QuickBooks OnlineYesYes
Oracle NetSuiteYesNo
Sage IntacctYesNo
XeroYesNo
Zoho BooksYesNo

Integration-specific behavior

IntegrationSpecifics
QuickBooks DesktopRefund updates are supported for credit card accounts only.
Sage IntacctTo sync debit card expenses, map the debit card to a Credit Card with the account type set to Debit.
put/companies/{companyId}/sync/expenses/expense-transactions/{transactionId}

Request

  • Base URL
    https://api.codat.io
  • URL
    https://api.codat.io/companies/{companyId}/sync/expenses/expense-transactions/{transactionId}
  • Auth
    API key in header Authorization

Request body

type'Payment' | 'Refund' | 'Reward' | 'Chargeback' required

The type of transaction.

issueDatestring required

Date the transaction was recorded.

currencystring required

Currency the transaction was recorded in.

currencyRateCurrencyRate (unresolved $ref)
merchantNamestring

Name of the merchant where the purchase took place

notesstring

Any private, company notes about the transaction.

Response

Accepted

syncIdstring

Unique identifier for the update expense sync.

Example response

{
  "syncId": "1ad0695c-4566-4715-918c-adbb03eac81e"
}

Changes

No recorded changes to this operation across all 53 revisions of this API.