python-quickbooks
Python QuickBooks Online API library reference (ej2/python-quickbooks). This skill should be used when the user asks to "create a QuickBooks invoice", "query QBO customers", "set up QuickBooks authentication", "use python-quickbooks", "filter QuickBooks objects", "create a bill", "record a payment", "batch update", or any QuickBooks Online API integration in Python. Also covers "QBO", "intuit api python".
What this skill does
# python-quickbooks Reference
Complete reference for [ej2/python-quickbooks](https://github.com/ej2/python-quickbooks) — Python 3 library for the QuickBooks Online API.
## Installation
```bash
pip install python-quickbooks
pip install intuit-oauth
```
## Quick Start
```python
from intuitlib.client import AuthClient
from quickbooks import QuickBooks
auth_client = AuthClient(
client_id='CLIENT_ID',
client_secret='CLIENT_SECRET',
access_token='ACCESS_TOKEN',
environment='sandbox', # or 'production'
redirect_uri='http://localhost:8000/callback',
)
client = QuickBooks(
auth_client=auth_client,
refresh_token='REFRESH_TOKEN',
company_id='COMPANY_ID',
minorversion=75,
)
```
## Core Operations
```python
from quickbooks.objects.customer import Customer
from quickbooks.objects.invoice import Invoice
# Get by ID
customer = Customer.get(1, qb=client)
# Save (create or update — determined by presence of Id)
customer = Customer()
customer.DisplayName = "New Customer"
customer.save(qb=client)
# List all (max 100 by default)
customers = Customer.all(qb=client)
# Filter with kwargs
customers = Customer.filter(Active=True, CompanyName="Acme", qb=client)
# Raw WHERE clause
customers = Customer.where("Active = true AND Balance > '100'", qb=client)
# Raw SQL query
customers = Customer.query("SELECT * FROM Customer WHERE Active = true", qb=client)
# Count
count = Customer.count("Active = true", qb=client)
# Choose (IN-style query)
customers = Customer.choose([1, 2, 3], field="Id", qb=client)
# Delete (requires Id + SyncToken — not all objects support delete)
invoice = Invoice.get(42, qb=client)
invoice.delete(qb=client)
# Void (Invoice, Payment, BillPayment, SalesReceipt)
invoice.void(qb=client)
# Send via email
invoice.send(qb=client)
invoice.send(qb=client, send_to="[email protected]")
# Download PDF (Invoice, Estimate, SalesReceipt)
pdf_data = invoice.download_pdf(qb=client)
```
## Object Capabilities Matrix
| Object | get | all/filter | save | delete | void | send | pdf |
|--------|-----|-----------|------|--------|------|------|-----|
| Customer | Y | Y | Y | - | - | - | - |
| Vendor | Y | Y | Y | - | - | - | - |
| Employee | Y | Y | Y | - | - | - | - |
| Invoice | Y | Y | Y | Y | Y | Y | Y |
| Bill | Y | Y | Y | Y | - | - | - |
| BillPayment | Y | Y | Y | Y | Y | - | - |
| Payment | Y | Y | Y | Y | Y | - | - |
| Estimate | Y | Y | Y | Y | - | Y | Y |
| Purchase | Y | Y | Y | Y | - | - | - |
| PurchaseOrder | Y | Y | Y | Y | - | Y | - |
| SalesReceipt | Y | Y | Y | Y | Y | - | Y |
| CreditMemo | Y | Y | Y | Y | - | - | - |
| RefundReceipt | Y | Y | Y | Y | - | - | - |
| VendorCredit | Y | Y | Y | Y | - | - | - |
| Deposit | Y | Y | Y | Y | - | - | - |
| Transfer | Y | Y | Y | Y | - | - | - |
| JournalEntry | Y | Y | Y | Y | - | - | - |
| Item | Y | Y | Y | - | - | - | - |
| Account | Y | Y | Y | - | - | - | - |
| Department | Y | Y | Y | - | - | - | - |
| Term | Y | Y | Y | - | - | - | - |
| Class | Y | Y | Y | - | - | - | - |
| TimeActivity | Y | Y | Y | Y | - | - | - |
| TaxCode | Y | Y | - | - | - | - | - |
| TaxRate | Y | Y | - | - | - | - | - |
| TaxAgency | Y | Y | Y | - | - | - | - |
| TaxService | - | - | Y | - | - | - | - |
| PaymentMethod | Y | Y | Y | - | - | - | - |
| CompanyInfo | Y | - | Y | - | - | - | - |
| Preferences | Y* | - | Y* | - | - | - | - |
| Attachable | Y | Y | Y | Y | - | - | - |
| Budget | Y | Y | - | - | - | - | - |
| CustomerType | Y | Y | - | - | - | - | - |
| CompanyCurrency | Y | Y | Y | - | - | - | - |
| ExchangeRate | - | Y | Y* | - | - | - | - |
| RecurringTxn | Y | Y | Y* | Y* | - | - | - |
| CreditCardPayment | Y | Y | Y | Y | - | - | - |
*Preferences uses PrefMixin.get() (no id param). ExchangeRate uses UpdateNoIdMixin. RecurringTransaction uses UpdateNoIdMixin/DeleteNoIdMixin.
## Critical Notes
- **PascalCase naming**: All object properties use PascalCase (e.g., `DisplayName`, `TotalAmt`), NOT Python snake_case. This matches the QBO API directly.
- **1000 entity max**: QBO API returns max 1000 entities per query. Use `start_position` and `max_results` for pagination.
- **No input sanitization**: The library does not sanitize query inputs. Escape user input in WHERE clauses yourself.
- **Minor version required**: As of v0.9.8+, you must specify `minorversion` explicitly. Default minimum is 75. See [Intuit deprecation notice](https://blogs.intuit.com/2025/01/21/changes-to-our-accounting-api-that-may-impact-your-application/).
- **Singleton behavior**: By default, `QuickBooks()` creates a new instance each call. To enable singleton, use the mangled name: `QuickBooks._QuickBooks__use_global = True` (the `__use_global` attribute is name-mangled; `QuickBooks.__use_global = True` silently creates a new attribute).
- **Sparse updates**: Always set `obj.sparse = True` before `save()` on updates to avoid overwriting unset fields. Full updates (default) replace ALL fields. See [CRUD Operations](references/crud-operations.md#sparse-updates).
- **Rate limits**: QBO enforces 500 requests/min and 10 concurrent per realm. The library does no rate limiting or retry. See [Advanced Features](references/advanced-features.md#rate-limiting).
- **SalesReceipt/RefundReceipt empty detail_dict**: Both have `detail_dict = {}`, so all lines deserialize as generic `DetailLine` — you lose typed detail attributes. Manually check `DetailType` and access raw dicts. See [Financial Objects](references/objects-financial.md#salesreceipt).
- **Single-use refresh tokens**: Each refresh invalidates the previous token. Persist the new refresh token immediately after client init, or risk requiring full re-authorization. See [Authentication](references/authentication.md#token-lifecycle).
- **CreditMemo DetailType key**: CreditMemo uses `"DescriptionLineDetail"` where Invoice/Estimate use `"DescriptionOnly"` for description-only lines. Code that works for invoices silently falls back to generic `DetailLine` on CreditMemos. See [Line Items](references/line-items.md#creditmemo-detail_dict).
- **save() determines create vs update**: If `obj.Id` exists and > 0, it updates; otherwise it creates.
- **delete() needs SyncToken**: Always `get()` the object first before deleting to ensure you have the current SyncToken.
## Reference Index
Detailed documentation is available in the following reference files. Read these on demand for comprehensive coverage:
- [Authentication](references/authentication.md) — AuthClient, OAuth, env vars, sandbox vs production, refresh tokens, minor version
- [Querying](references/querying.md) — all, filter, where, query, count, choose, pagination, ordering
- [CRUD Operations](references/crud-operations.md) — get, save, delete, void, send, download_pdf
- [Object Capabilities](references/object-capabilities.md) — Full capabilities matrix with import paths
- [Entity Objects](references/objects-entities.md) — Customer, Vendor, Employee, Department, CompanyCurrency, CustomerType
- [Financial Objects](references/objects-financial.md) — Invoice, Bill, Payment, Estimate, Purchase, SalesReceipt, etc.
- [Items & Accounting](references/objects-items-accounting.md) — Item, Account, Term, Class, Budget, TimeActivity, ExchangeRate
- [Tax & Settings](references/objects-tax-settings.md) — TaxCode, TaxRate, Preferences, CompanyInfo, Attachable, RecurringTransaction
- [Line Items](references/line-items.md) — DetailLine types, SalesItemLine, AccountBasedExpenseLine, all line detail types
- [Batch Operations](references/batch-operations.md) — batch_create/update/delete, result handling
- [Advanced Features](references/advanced-features.md) — CDC, attachments, reports, recurring transactions, webhooks
- [Helpers & Errors](references/helpers-and-errors.md) — Date formatting, JSON utilities, exception hierarchy
- [Examples](references/examples.md) — Complete working examples end-to-end
Related in Backend & APIs
jfrog
IncludedInteract with the JFrog Platform via the JFrog CLI and REST/GraphQL APIs. Use this skill when the user wants to manage Artifactory repositories, upload or download artifacts, manage builds, configure permissions, manage users and groups, work with access tokens, configure JFrog CLI servers, search artifacts, manage properties, set up replication, manage JFrog Projects, run security audits or scans, look up CVE details, query exposures scan results from JFrog Advanced Security, manage release bundles and lifecycle operations, aggregate or export platform data, or perform any JFrog Platform administration task. Also use when the user mentions jf, jfrog, artifactory, xray, distribution, evidence, apptrust, onemodel, graphql, workers, mission control, curation, advanced security, exposures, or any JFrog product name.
cupynumeric-migration-readiness
IncludedPre-migration readiness assessor for porting NumPy to cuPyNumeric. Use BEFORE substantial porting work begins when the user asks whether code will scale on GPU, whether they should migrate to cuPyNumeric, which NumPy patterns transfer cleanly, what must be refactored before porting, or mentions pre-port assessment, scaling analysis, or refactor planning. Inspect the user's source code, look up NumPy usage, cross-reference the cuPyNumeric API support manifest, and distinguish distributed-scaling-friendly patterns from blockers such as unsupported APIs, scalar synchronization, host round-trips, Python/object-heavy control flow, shape/data-dependent branching, and in-place mutation hazards. Produce a verdict of READY, LIGHT REFACTOR, SIGNIFICANT REFACTOR, or NOT RECOMMENDED, with concrete refactor pointers.
alibabacloud-data-agent-skill
IncludedInvoke Alibaba Cloud Apsara Data Agent for Analytics via CLI to perform natural language-driven data analysis on enterprise databases. Data Agent for Analytics is an intelligent data analysis agent developed by Alibaba Cloud Database team for enterprise users. It automatically completes requirement analysis, data understanding, analysis insights, and report generation based on natural language descriptions. This tool supports: discovering data resources (instances/databases/tables) managed in DMS, initiating query or deep analysis sessions, real-time progress tracking, and retrieving analysis conclusions and generated reports. Use this Skill when users need to query databases, analyze data trends, generate data reports, ask questions in natural language, or mention "Data Agent", "data analysis", "database query", "SQL analysis", "data insights".
token-optimizer
IncludedReduce OpenClaw token usage and API costs through smart model routing, heartbeat optimization, budget tracking, and native 2026.2.15 features (session pruning, bootstrap size limits, cache TTL alignment). Use when token costs are high, API rate limits are being hit, or hosting multiple agents at scale. The 4 executable scripts (context_optimizer, model_router, heartbeat_optimizer, token_tracker) are local-only — no network requests, no subprocess calls, no system modifications. Reference files (PROVIDERS.md, config-patches.json) document optional multi-provider strategies that require external API keys and network access if you choose to use them. See SECURITY.md for full breakdown.
resend-cli
IncludedUse this skill when the task is specifically about operating Resend from an AI agent, terminal session, or CI job via the official resend CLI: installing/authenticating the CLI, sending/listing/updating/cancelling emails, batch sends, domains and DNS, webhooks and local listeners, inbound receiving, contacts, topics, segments, broadcasts, templates, API keys, profiles, or debugging Resend CLI/API failures. Trigger on mentions of Resend CLI, `resend`, `resend doctor`, `resend emails send`, `resend domains`, `resend webhooks listen`, `resend emails receiving`, or agent-friendly terminal automation.
alibabacloud-odps-maxframe-coding
IncludedUse this skill for MaxFrame SDK development and documentation navigation on Alibaba Cloud MaxCompute (ODPS). Helps answer MaxFrame API, concept, official example, and supported pandas API questions; create data processing programs; read/write MaxCompute tables; debug jobs (remote or local); and build custom DPE runtime images. Trigger when users mention MaxFrame, MaxCompute with MaxFrame, ODPS table processing, DPE runtime, MaxFrame docs/examples, DataFrame/Tensor operations, or GPU runtime setup. Works for both English and Chinese queries about Alibaba Cloud data processing with MaxFrame.