Apideck Unify

raw JSON →
0.31.13 verified Mon Apr 27 auth: no python

Apideck Unify Python SDK (v0.31.13) auto-generated by Speakeasy. Provides a unified API to integrate with 60+ accounting, CRM, HRIS, and e-commerce services. Requires Python >=3.9.2, released irregularly alongside API changes.

pip install apideck-unify
error ModuleNotFoundError: No module named 'apideck'
cause Trying to import `apideck` as the package name, but the import path uses underscores.
fix
Install with pip install apideck-unify and import as from apideck_unify import Apideck.
error AttributeError: module 'apideck_unify' has no attribute 'Accounting'
cause Attempting to import `Accounting` directly from the root package; it's nested under `apideck_unify.api`.
fix
Use from apideck_unify.api import Accounting.
error TypeError: __init__() missing 2 required positional arguments: 'consumer_id' and 'app_id'
cause The Apideck constructor requires `consumer_id` and `app_id` in addition to `api_key`.
fix
Pass all three parameters: Apideck(api_key='...', consumer_id='...', app_id='...').
gotcha Import path uses underscores, not hyphens: import from `apideck_unify` not `apideck-unify`.
fix Use `from apideck_unify import Apideck`.
breaking In v0.28+, the `apis` subpackage was replaced with `api`. Old imports like `from apideck_unify.apis.Accounting` will break.
fix Change to `from apideck_unify.api import Accounting`.
gotcha `consumer_id` and `app_id` are required when initializing the SDK, not optional.
fix Always pass both `consumer_id` and `app_id` to `Apideck()`.

Initialize SDK with API key from environment, then call an API (e.g., list invoices in accounting).

import os
from apideck_unify import Apideck

sdk = Apideck(
    api_key=os.environ.get('APIDECK_API_KEY', ''),
    consumer_id='test-consumer',
    app_id='test-app'
)

accounting = sdk.accounting
# List invoices
invoices = accounting.invoices.list()
print(invoices)