KosmoKrator

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, configure, and verify
# 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.

KeyEnv varTypeRequiredLabel
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.

Generic CLI call
kosmo integrations:call zoho-bills.zoho_bills_list_invoices '{"page":1,"per_page":1,"status":"example_status","customer_id":"example_customer_id"}' --json
Provider shortcut
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.

Discovery commands
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 read
Parameters
page, per_page, status, customer_id
Generic call
kosmo integrations:call zoho-bills.zoho_bills_list_invoices '{"page":1,"per_page":1,"status":"example_status","customer_id":"example_customer_id"}' --json
Shortcut
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 read
Parameters
id
Generic call
kosmo integrations:call zoho-bills.zoho_bills_get_invoice '{"id":"example_id"}' --json
Shortcut
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 write
Parameters
customer_id, line_items, date, due_date
Generic call
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
Shortcut
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 read
Parameters
page, per_page, type
Generic call
kosmo integrations:call zoho-bills.zoho_bills_list_customers '{"page":1,"per_page":1,"type":"example_type"}' --json
Shortcut
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 read
Parameters
id
Generic call
kosmo integrations:call zoho-bills.zoho_bills_get_customer '{"id":"example_id"}' --json
Shortcut
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 read
Parameters
page, per_page
Generic call
kosmo integrations:call zoho-bills.zoho_bills_list_items '{"page":1,"per_page":1}' --json
Shortcut
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 read
Parameters
none
Generic call
kosmo integrations:call zoho-bills.zoho_bills_get_current_user '{}' --json
Shortcut
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
Schema command
kosmo integrations:schema zoho-bills.zoho_bills_list_invoices --json
ParameterTypeRequiredDescription
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
Schema command
kosmo integrations:schema zoho-bills.zoho_bills_get_invoice --json
ParameterTypeRequiredDescription
id string yes The invoice ID.
zoho-bills.zoho_bills_create_invoice 4 parameters
Schema command
kosmo integrations:schema zoho-bills.zoho_bills_create_invoice --json
ParameterTypeRequiredDescription
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
Schema command
kosmo integrations:schema zoho-bills.zoho_bills_list_customers --json
ParameterTypeRequiredDescription
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
Schema command
kosmo integrations:schema zoho-bills.zoho_bills_get_customer --json
ParameterTypeRequiredDescription
id string yes The contact ID.
zoho-bills.zoho_bills_list_items 2 parameters
Schema command
kosmo integrations:schema zoho-bills.zoho_bills_list_items --json
ParameterTypeRequiredDescription
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
Schema command
kosmo integrations:schema zoho-bills.zoho_bills_get_current_user --json
ParameterTypeRequiredDescription
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.