data
Zoho Bills CLI for AI Agents
Use the Zoho Bills CLI from KosmoKrator to call Zoho Bills tools headlessly, return JSON, inspect schemas, and automate workflows from coding agents, scripts, and CI.Zoho Bills CLI Setup
Zoho Bills can be configured headlessly with `kosmokrator integrations:configure zoho-bills`.
# Install KosmoKrator first if it is not available on PATH.
curl -fsSL https://raw.githubusercontent.com/OpenCompanyApp/kosmokrator/main/install.sh | bash
# Configure and verify this integration.
kosmokrator integrations:configure zoho-bills --set access_token="$ZOHO_BILLS_ACCESS_TOKEN" --set organization_id="$ZOHO_BILLS_ORGANIZATION_ID" --enable --read allow --write ask --json
kosmokrator integrations:doctor zoho-bills --json
kosmokrator integrations:status --json Credentials
Authentication type: Manual OAuth token oauth2_manual_token. Configure credentials once, then reuse the same stored profile from scripts, coding CLIs, Lua, and MCP.
| Key | Env var | Type | Required | Label |
|---|---|---|---|---|
access_token | ZOHO_BILLS_ACCESS_TOKEN | Secret secret | yes | Access Token |
organization_id | ZOHO_BILLS_ORGANIZATION_ID | Text string | yes | Organization ID |
url | ZOHO_BILLS_URL | URL url | no | API Base URL |
Command Patterns
The generic command is stable across every integration. The provider shortcut is shorter for humans.
kosmo integrations:call zoho-bills.zoho_bills_list_invoices '{"page":1,"per_page":1,"status":"example_status","customer_id":"example_customer_id"}' --json kosmo integrations:zoho-bills zoho_bills_list_invoices '{"page":1,"per_page":1,"status":"example_status","customer_id":"example_customer_id"}' --json Discovery
These commands return structured output for coding agents that need to inspect capabilities before choosing a function.
kosmo integrations:docs zoho-bills --json
kosmo integrations:docs zoho-bills.zoho_bills_list_invoices --json
kosmo integrations:schema zoho-bills.zoho_bills_list_invoices --json
kosmo integrations:search "Zoho Bills" --json
kosmo integrations:list --json Automation Contexts
The same configured command surface works in these environments. The command does not change unless the host wrapper, credentials, or permissions change.
CLI Functions
Every function below can be called headlessly. Commands are highlighted, copyable, and scroll horizontally when payloads are long.
zoho-bills.zoho_bills_list_invoices
List invoices from Zoho Bills. Optionally filter by status (draft, sent, overdue, paid, voided, partially_paid) or customer ID.
read - Parameters
- page, per_page, status, customer_id
kosmo integrations:call zoho-bills.zoho_bills_list_invoices '{"page":1,"per_page":1,"status":"example_status","customer_id":"example_customer_id"}' --json kosmo integrations:zoho-bills zoho_bills_list_invoices '{"page":1,"per_page":1,"status":"example_status","customer_id":"example_customer_id"}' --json zoho-bills.zoho_bills_get_invoice
Retrieve a single invoice from Zoho Bills by its ID. Returns full invoice details including line items, totals, and status.
read - Parameters
- id
kosmo integrations:call zoho-bills.zoho_bills_get_invoice '{"id":"example_id"}' --json kosmo integrations:zoho-bills zoho_bills_get_invoice '{"id":"example_id"}' --json zoho-bills.zoho_bills_create_invoice
Create a new invoice in Zoho Bills. Provide a customer ID, line items, and optional date/due date. Each line item should include item_id or a name, plus rate and quantity.
write - Parameters
- customer_id, line_items, date, due_date
kosmo integrations:call zoho-bills.zoho_bills_create_invoice '{"customer_id":"example_customer_id","line_items":"example_line_items","date":"example_date","due_date":"example_due_date"}' --json kosmo integrations:zoho-bills zoho_bills_create_invoice '{"customer_id":"example_customer_id","line_items":"example_line_items","date":"example_date","due_date":"example_due_date"}' --json zoho-bills.zoho_bills_list_customers
List customers (contacts) from Zoho Bills. Optionally filter by type (customer or vendor). Returns paginated results.
read - Parameters
- page, per_page, type
kosmo integrations:call zoho-bills.zoho_bills_list_customers '{"page":1,"per_page":1,"type":"example_type"}' --json kosmo integrations:zoho-bills zoho_bills_list_customers '{"page":1,"per_page":1,"type":"example_type"}' --json zoho-bills.zoho_bills_get_customer
Retrieve a single customer (contact) from Zoho Bills by ID. Returns full contact details including billing address and contact persons.
read - Parameters
- id
kosmo integrations:call zoho-bills.zoho_bills_get_customer '{"id":"example_id"}' --json kosmo integrations:zoho-bills zoho_bills_get_customer '{"id":"example_id"}' --json zoho-bills.zoho_bills_list_items
List items (products and services) from Zoho Bills. Returns paginated results with item details like name, rate, and description.
read - Parameters
- page, per_page
kosmo integrations:call zoho-bills.zoho_bills_list_items '{"page":1,"per_page":1}' --json kosmo integrations:zoho-bills zoho_bills_list_items '{"page":1,"per_page":1}' --json zoho-bills.zoho_bills_get_current_user
Get the currently authenticated Zoho Bills user profile. Useful for verifying connectivity and checking user permissions.
read - Parameters
- none
kosmo integrations:call zoho-bills.zoho_bills_get_current_user '{}' --json kosmo integrations:zoho-bills zoho_bills_get_current_user '{}' --json Function Schemas
Use these parameter tables when building CLI payloads without calling integrations:schema first.
zoho-bills.zoho_bills_list_invoices 4 parameters
kosmo integrations:schema zoho-bills.zoho_bills_list_invoices --json | Parameter | Type | Required | Description |
|---|---|---|---|
page | integer | no | Page number for pagination (default: 1). |
per_page | integer | no | Number of invoices per page (default: 25, max: 200). |
status | string | no | Filter by invoice status: draft, sent, overdue, paid, voided, partially_paid. |
customer_id | string | no | Filter invoices by customer ID. |
zoho-bills.zoho_bills_get_invoice 1 parameters
kosmo integrations:schema zoho-bills.zoho_bills_get_invoice --json | Parameter | Type | Required | Description |
|---|---|---|---|
id | string | yes | The invoice ID. |
zoho-bills.zoho_bills_create_invoice 4 parameters
kosmo integrations:schema zoho-bills.zoho_bills_create_invoice --json | Parameter | Type | Required | Description |
|---|---|---|---|
customer_id | string | yes | The customer ID to bill. |
line_items | array | yes | Array of line items. Each item should have item_id (or name/description), rate, and quantity. Example: [{"item_id": "...", "quantity": 2, "rate": 50.00}] |
date | string | no | Invoice date in YYYY-MM-DD format. Defaults to today. |
due_date | string | no | Due date in YYYY-MM-DD format. |
zoho-bills.zoho_bills_list_customers 3 parameters
kosmo integrations:schema zoho-bills.zoho_bills_list_customers --json | Parameter | Type | Required | Description |
|---|---|---|---|
page | integer | no | Page number for pagination (default: 1). |
per_page | integer | no | Number of contacts per page (default: 25, max: 200). |
type | string | no | Filter by contact type: customer, vendor. |
zoho-bills.zoho_bills_get_customer 1 parameters
kosmo integrations:schema zoho-bills.zoho_bills_get_customer --json | Parameter | Type | Required | Description |
|---|---|---|---|
id | string | yes | The contact ID. |
zoho-bills.zoho_bills_list_items 2 parameters
kosmo integrations:schema zoho-bills.zoho_bills_list_items --json | Parameter | Type | Required | Description |
|---|---|---|---|
page | integer | no | Page number for pagination (default: 1). |
per_page | integer | no | Number of items per page (default: 25, max: 200). |
zoho-bills.zoho_bills_get_current_user 0 parameters
kosmo integrations:schema zoho-bills.zoho_bills_get_current_user --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
Permissions
Headless calls still follow the integration read/write permission policy. Configure read/write defaults with
integrations:configure. Add --force only for trusted automation that should bypass that policy.