Skip to main content

Streamline your customers' accounts payable workflow.

Project description

Sync for Payables

SDK Installation

pip install codat-sync-for-payables

Example Usage

import codatsyncpayables
from codatsyncpayables.models import operations, shared
from decimal import Decimal

s = codatsyncpayables.CodatSyncPayables(
    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.Metadata(
            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

bill_credit_notes

bill_payments

bills

companies

company_info

connections

  • create - Create connection
  • delete - Delete connection
  • get - Get connection
  • list - List connections
  • unlink - Unlink connection

journal_entries

journals

manage_data

payment_methods

  • get - Get payment method
  • list - List payment methods

push_operations

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

suppliers

tax_rates

  • get - Get tax rate
  • list - List all tax rates

tracking_categories

  • get - Get tracking categories
  • list - List tracking categories

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-payables-0.2.0.tar.gz (73.0 kB view hashes)

Uploaded Source

Built Distribution

codat_sync_for_payables-0.2.0-py3-none-any.whl (198.6 kB view hashes)

Uploaded Python 3

Supported by

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