The Codat API SDKs are language specific libraries for accessing the Codat API. The Codat API provides secure access to contributed business data from your SME customers mapped to our accounting, banking, and commerce data models.
For installation please see instructions on fetching from package managers for each langauge specific SDK.
- TypeScript 4.8+
- Python3
- Golang
Here is an example usage for typescript. Please see relevant examples for each language specific SDK.
import { SDK, withSecurity} from "@codatio/codat-ts";
import { GetCompaniesCompanyIdConnectionsConnectionIdDataAccountTransactionsRequest, GetCompaniesCompanyIdConnectionsConnectionIdDataAccountTransactionsResponse } from "@codatio/codat-ts/src/sdk/models/operations";
import { AxiosError } from "axios";
const sdk = new SDK(withSecurity(
security: {
apiKeyAuth: {
apiKey: "YOUR_API_KEY_HERE",
},
}
));
const req: GetCompaniesCompanyIdConnectionsConnectionIdDataAccountTransactionsRequest = {
security: {
codatLogin: {
authorization: "Bearer YOUR_ACCESS_TOKEN_HERE",
},
},
pathParams: {
companyId: "sit",
connectionId: "voluptas",
},
queryParams: {
orderBy: "culpa",
page: 501233450539197794,
pageSize: 3390393562759376202,
query: "dolor",
},
};
sdk.accountTransactions.getCompaniesCompanyIdConnectionsConnectionIdDataAccountTransactions(req).then((res: GetCompaniesCompanyIdConnectionsConnectionIdDataAccountTransactionsResponse | AxiosError) => {
// handle response
});
To authenticate the Codat SDKs you will need to provide a Codat API Token. Codat expects the API key to be included in all API requests to the server, Base64 encoded within an 'Authorization' header.
Authorization: Basic YOUR_ENCODED_API_KEY
batch
- Get Batch Accountscreate
- Create Accountdetails
- Get Account Detailsfind
- Get Accountlist
- Get All Accountsupdate
- Update Account
batch
- Get Batch Event Attendeescreate
- Create Event Attendeedetails
- Get Event Attendee Detailsfind
- Get Event Attendeelist
- Get All Event Attendeesupdate
- Update Event Attendee
delete
- Delete Connectionfind
- Get Connectionlist
- Get All Connections
batch
- Get Batch Contactscreate
- Create Contactdetails
- Get Contact Detailsfind
- Get Contactlist
- Get All Contactsupdate
- Update Contact
batch
- Get Batch Dealscreate
- Create Dealdetails
- Get Deal Detailsfind
- Get Deallist
- Get All Dealsupdate
- Update Deal
batch
- Get Batch Emailscreate
- Create Emaildetails
- Get Email Detailsfind
- Get Emaillist
- Get All Emailsupdate
- Update Email
batch
- Get Batch Eventscreate
- Create Eventdetails
- Get Event Detailsfind
- Get Eventlist
- Get All Eventsupdate
- Update Event
list
- Get CRM Integrations
batch
- Get Batch Leadscreate
- Create Leaddetails
- Get Lead Detailsfind
- Get Leadlist
- Get All Leadsupdate
- Update Lead
create
- Exchange Public Token for Access Token
batch
- Get Batch Notescreate
- Create Notedetails
- Get Note Detailsfind
- Get Notelist
- Get All Notesupdate
- Update Note
create
- Passthrough Request
batch
- Get Batch Taskscreate
- Create Taskdetails
- Get Task Detailsfind
- Get Tasklist
- Get All Tasksupdate
- Update Task
create
- Create Link Token
batch
- Get Batch Usersdetails
- Get User Detailsfind
- Get Userlist
- Get All Users
create
- Create Webhookdelete
- Remove Webhookfind
- Get Webhook