Accounting API
Codat's Accounting API is a flexible API for pulling and pushing up-to-date accounting data to your customer's accounting software.
It gives you a simple way to view, create, update adn delete data without having to worry about each platform's specific complexities.
SDK Installation
NPM
npm add @codat/accounting
Yarn
yarn add @codat/accounting
SDK Example Usage
import { CodatAccounting } from "@codat/accounting";
import { GetAccountTransactionResponse } from "@codat/accounting/dist/sdk/models/operations";
import { AccountTransactionStatus } from "@codat/accounting/dist/sdk/models/shared";
const sdk = new CodatAccounting({
security: {
authHeader: "Basic BASE_64_ENCODED(API_KEY)",
},
});
sdk.accountTransactions.get({
accountTransactionId: "corrupti",
companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171",
}).then((res: GetAccountTransactionResponse) => {
if (res.statusCode == 200) {
}
});
Available Resources and Operations
- get - Get account transaction
- list - List account transactions
- create - Create bank transactions
- getCreateModel - List push options for bank account bank transactions
- list - List bank transactions for bank account
- get - Get company info
- refresh - Refresh company info
- get - Get payment method
- list - List all payment methods
- get - Get sales order
- list - List sales orders
- get - Get tax rate
- list - List all tax rates
- get - Get tracking categories
- list - List tracking categories