Skip to main content

Push merchants' data from your ecommerce or point-of-sale (POS) platform into your merchants' accounting platform.

Project description

Sync for Commerce version 1

Embedded accounting integrations for POS and eCommerce platforms.

SDK Installation

pip install codat-sync-for-commerce-version-1

Example Usage

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

s = codatsynccommerce.CodatSyncCommerce(
    security=shared.Security(
        auth_header="Basic BASE_64_ENCODED(API_KEY)",
    ),
)

req = operations.CreateAccountingAccountRequest(
    accounting_account=shared.AccountingAccount(
        currency='GBP',
        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='Cash On Hand',
        id='1b6266d1-1e44-46c5-8eb5-a8f98e03124e',
        metadata=shared.AccountingAccountMetadata(),
        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,
        supplemental_data=shared.SupplementalData(
            content={
                "Gasoline": {
                    "Wall": 'Oriental',
                },
            },
        ),
        type=shared.AccountType.ASSET,
        valid_datatype_links=[
            shared.AccountingAccountValidDataTypeLinks(
                links=[
                    'Intranet',
                ],
            ),
        ],
    ),
    company_id='8a210b68-6988-11ed-a1eb-0242ac120002',
    connection_id='2e9d2c44-f675-40ba-8049-353bfcb5e171',
)

res = s.accounting_accounts.create_accounting_account(req)

if res.accounting_create_account_response is not None:
    # handle response
    pass

Available Resources and Operations

accounting_accounts

accounting_bank_accounts

accounting_company_info

accounting_credit_notes

accounting_customers

accounting_direct_incomes

accounting_invoices

accounting_journal_entries

accounting_payments

commerce_company_info

commerce_customers

commerce_locations

commerce_orders

commerce_payments

commerce_products

commerce_transactions

companies

company_management

configuration

connections

integrations

push_data

refresh_data

sync

sync_flow_preferences

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-commerce-version-1-0.2.0.tar.gz (88.7 kB view hashes)

Uploaded Source

Built Distribution

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