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
manage_data
- 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
push_operations
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
transaction_status
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
File details
Details for the file codat-sync-for-expenses-1.2.0.tar.gz
.
File metadata
- Download URL: codat-sync-for-expenses-1.2.0.tar.gz
- Upload date:
- Size: 46.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
ccaa9506cb94c3eaa32293719a9f4f1198101687529520d7af4a99d764505c90
|
|
MD5 |
2fee6fc2cecce19ec8e779479149df8e
|
|
BLAKE2b-256 |
12ed9452cb37672b59258ddd60a0ad8133cff8fbcf54f34ce428edd8ddab0f48
|
File details
Details for the file codat_sync_for_expenses-1.2.0-py3-none-any.whl
.
File metadata
- Download URL: codat_sync_for_expenses-1.2.0-py3-none-any.whl
- Upload date:
- Size: 128.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
84b22a548e3f1a3e1094e41d39bb0167dc0e34d6280711200d6a1ec31bef6dc1
|
|
MD5 |
75c120697941d12cfc25cb7c5fe91bf8
|
|
BLAKE2b-256 |
b7dca6717331f1de0679dddca3bc8461e25b0beb1a4b7aacb73def282c60e1fc
|