Push expenses to accounting platforms.
Project description
Sync for Expenses
Embedded accounting integrations for corporate card providers.
SDK Installation
pip install codat-sync-for-expenses
Example Usage
import codatsyncexpenses
from codatsyncexpenses.models import operations, shared
from decimal import Decimal
s = codatsyncexpenses.CodatSyncExpenses(
security=shared.Security(
auth_header="Basic BASE_64_ENCODED(API_KEY)",
),
)
req = operations.CreateAccountRequest(
account=shared.Account(
currency='USD',
current_balance=Decimal('0'),
description='Invoices the business has issued but has not yet collected payment on.',
fully_qualified_category='Asset.Current',
fully_qualified_name='Fixed Asset',
id='1b6266d1-1e44-46c5-8eb5-a8f98e03124e',
is_bank_account=False,
metadata=shared.AccountMetadata(
is_deleted=False,
),
modified_date='2022-10-23T00:00:00.000Z',
name='Accounts Receivable',
nominal_code='610',
source_modified_date='2022-10-23T00:00:00.000Z',
status=shared.AccountStatus.ACTIVE,
type=shared.AccountType.ASSET,
valid_datatype_links=[
shared.AccountValidDataTypeLinks(
links=[
'unde',
],
property='nulla',
),
],
),
company_id='8a210b68-6988-11ed-a1eb-0242ac120002',
connection_id='2e9d2c44-f675-40ba-8049-353bfcb5e171',
timeout_in_minutes=544883,
)
res = s.accounts.create(req)
if res.create_account_response is not None:
# handle response
Available Resources and Operations
Accounts
- create - Create account
Companies
- create - Create company
- delete - Delete a company
- get - Get company
- list - List companies
- update - Update company
Configuration
- get - Get company configuration
- get_mapping_options - Mapping options
- set - Set company configuration
Connections
- create - Create connection
- create_partner_expense_connection - Create Partner Expense connection
- delete - Delete connection
- get - Get connection
- list - List connections
- unlink - Unlink connection
Customers
Expenses
- create - Create expense transaction
- update - Update expense-transactions
- upload_attachment - Upload attachment
ManageData
- get - Get data status
- get_pull_operation - Get pull operation
- list_pull_operations - List pull operations
- refresh_all_data_types - Refresh all data
- refresh_data_type - Refresh data type
PushOperations
Suppliers
Sync
- get - Get Sync status
- get_last_successful_sync - Last successful sync
- get_latest_sync - Latest sync status
- initiate_sync - Initiate sync
- list - List sync statuses
TransactionStatus
Library generated by Speakeasy
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for codat-sync-for-expenses-2.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 880f66d7285ccf690c0b2720d24679f632f990112374b08d204cd5476c4ab93f |
|
MD5 | f1e3a14062a7c4c55114f72c505119d0 |
|
BLAKE2b-256 | 8ab0dc4c26154039bd85df808a1cc60bc8063da18251233286c06f7a3628a838 |
Close
Hashes for codat_sync_for_expenses-2.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e37d09857df4e0ccc4e2be2fe4bb29c9d2ff52a0f53b1ed621bdfef7081b0a46 |
|
MD5 | 72d48ef069d88c827d11d7482ec87cf5 |
|
BLAKE2b-256 | 08b6b4b9550a51456fab2f6c90808764dc46690c5fa85caa3ab8bbdab7426bba |