Codat.Sync.Expenses
5.2.0
dotnet add package Codat.Sync.Expenses --version 5.2.0
NuGet\Install-Package Codat.Sync.Expenses -Version 5.2.0
<PackageReference Include="Codat.Sync.Expenses" Version="5.2.0" />
paket add Codat.Sync.Expenses --version 5.2.0
#r "nuget: Codat.Sync.Expenses, 5.2.0"
// Install Codat.Sync.Expenses as a Cake Addin
#addin nuget:?package=Codat.Sync.Expenses&version=5.2.0
// Install Codat.Sync.Expenses as a Cake Tool
#tool nuget:?package=Codat.Sync.Expenses&version=5.2.0
Sync for Expenses
Embedded accounting integrations for corporate card providers.
SDK Installation
Nuget
dotnet add package Codat.Sync.Expenses
Example Usage
SDK Example Usage
Example
using Codat.Sync.Expenses;
using Codat.Sync.Expenses.Models.Shared;
using System.Collections.Generic;
var sdk = new CodatSyncExpenses(security: new Security() {
AuthHeader = "Basic BASE_64_ENCODED(API_KEY)",
});
CompanyRequestBody req = new CompanyRequestBody() {
Description = "Requested early access to the new financing scheme.",
Name = "Bank of Dave",
};
var res = await sdk.Companies.CreateAsync(req);
// handle response
Available Resources and Operations
Companies
- Create - Create company
- Delete - Delete a company
- Get - Get company
- List - List companies
- Update - Update company
Connections
- Create - Create connection
- CreatePartnerExpenseConnection - Create partner expense connection
- Delete - Delete connection
- Get - Get connection
- List - List connections
- Unlink - Unlink connection
Accounts
- Create - Create account
- GetCreateModel - Get create account model
Customers
Suppliers
ManageData
- Get - Get data status
- GetPullOperation - Get pull operation
- ListPullOperations - List pull operations
- RefreshAllDataTypes - Refresh all data
- RefreshDataType - Refresh data type
PushOperations
Configuration
- Get - Get company configuration
- GetMappingOptions - Mapping options
- Set - Set company configuration
Expenses
- Create - Create expense transaction
- Update - Update expense transactions
- UploadAttachment - Upload attachment
Sync
- Get - Get sync status
- GetLastSuccessfulSync - Last successful sync
- GetLatestSync - Latest sync status
- InitiateSync - Initiate sync
- List - List sync statuses
TransactionStatus
Server Selection
Server Selection
Select Server by Index
You can override the default server globally by passing a server index to the serverIndex: number
optional parameter when initializing the SDK client instance. The selected server will then be used as the default on the operations that use it. This table lists the indexes associated with the available servers:
# | Server | Variables |
---|---|---|
0 | https://api.codat.io |
None |
Override Server URL Per-Client
The default server can also be overridden globally by passing a URL to the serverUrl: str
optional parameter when initializing the SDK client instance. For example:
Authentication
Per-Client Security Schemes
This SDK supports the following security scheme globally:
Name | Type | Scheme |
---|---|---|
AuthHeader |
apiKey | API key |
You can set the security parameters through the security
optional parameter when initializing the SDK client instance. For example:
using Codat.Sync.Expenses;
using Codat.Sync.Expenses.Models.Shared;
using System.Collections.Generic;
var sdk = new CodatSyncExpenses(security: new Security() {
AuthHeader = "Basic BASE_64_ENCODED(API_KEY)",
});
CompanyRequestBody req = new CompanyRequestBody() {
Description = "Requested early access to the new financing scheme.",
Name = "Bank of Dave",
};
var res = await sdk.Companies.CreateAsync(req);
// handle response
Support
If you encounter any challenges while utilizing our SDKs, please don't hesitate to reach out for assistance. You can raise any issues by contacting your dedicated Codat representative or reaching out to our support team. We're here to help ensure a smooth experience for you.
Library generated by Speakeasy
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net6.0
- newtonsoft.json (>= 13.0.3)
- nodatime (>= 3.1.9)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.