Skip to main content

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

companies

configuration

connections

customers

expenses

manage_data

push_operations

  • get - Get push operation
  • list - List push operations

suppliers

sync

transaction_status

  • get - Get Sync Transaction
  • list - List sync transactions

Library generated by Speakeasy

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

codat-sync-for-expenses-1.1.0.tar.gz (42.4 kB view details)

Uploaded Source

Built Distribution

codat_sync_for_expenses-1.1.0-py3-none-any.whl (120.3 kB view details)

Uploaded Python 3

File details

Details for the file codat-sync-for-expenses-1.1.0.tar.gz.

File metadata

  • Download URL: codat-sync-for-expenses-1.1.0.tar.gz
  • Upload date:
  • Size: 42.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for codat-sync-for-expenses-1.1.0.tar.gz
Algorithm Hash digest
SHA256 3ddf831736190d3c4e806a307aba95befc7fe5ffa6f77fff8ea4fd83c1af213a
MD5 3c931e3b974de9a2f80d106156b8e653
BLAKE2b-256 79b6fb1764df62aac5d3d16668e86228505b93219532f878094912fc4973e5f4

See more details on using hashes here.

File details

Details for the file codat_sync_for_expenses-1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for codat_sync_for_expenses-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 14a2ea0456f8f6105aead4d7b87c4ddf437083fb1fc1cea85b294d2fe40bb728
MD5 851a7735546f81ec754e048741c8b009
BLAKE2b-256 e663562b13c035474a23ce9b691c01985a7de87326d1ab874b0ec8a59217681c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page