Push payroll to accounting platforms.
Project description
Sync for Payroll
SDK Installation
pip install codat-sync-for-payroll
Example Usage
import codatsyncpayroll
from codatsyncpayroll.models import operations, shared
from decimal import Decimal
s = codatsyncpayroll.CodatSyncPayroll(
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
- get - Get account
- get_create_model - Get create account model
- list - List accounts
companies
- create - Create company
- delete - Delete a company
- get - Get company
- list - List companies
- update - Update company
company_info
- get_accounting_profile - Get company accounting profile
connections
- create - Create connection
- delete - Delete connection
- get - Get connection
- list - List connections
- unlink - Unlink connection
journal_entries
- create - Create journal entry
- delete - Delete journal entry
- get - Get journal entry
- get_create_model - Get create journal entry model
- list - List journal entries
journals
- create - Create journal
- get - Get journal
- get_create_model - Get create journal model
- list - List journals
manage_data
- get_data_status - Get data status
- get_pull_operation - Get pull operation
- get_push_operation - Get push operation
- list - List push operations
- list_pull_operations - List pull operations
- refresh_all_data_types - Refresh all data
- refresh_data_type - Refresh data type
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
Built Distribution
Close
Hashes for codat-sync-for-payroll-0.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d0441ce400f122648cc71464dead71a12e6dd1804e17435231ba858789a97bba |
|
MD5 | 183baa25b7b24c6bcef66107d47680bc |
|
BLAKE2b-256 | 1595ce0d59c09ee6b1a7f97f87c7cd00f4d73fd6d686c27a8c84ece09c59f052 |
Close
Hashes for codat_sync_for_payroll-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 622e00450655b01d79c4e4945ee5232b15aac220d5255be22073ce3550664dbd |
|
MD5 | f0ac2c04d6b7b0624eb881e3209cb00d |
|
BLAKE2b-256 | 83d411d125cd99ed65605ff3ea470d9d639eb8479ab4fabe15f4b9334484f55b |