KosmoKrator

payments

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.

7 functions 6 read 1 write Manual OAuth token auth

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 use the same stored profile from scripts, coding CLIs, Lua code mode, and the MCP gateway.

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

Call Zoho Bills Headlessly

Use the generic call form when another coding CLI or script needs a stable universal interface.

kosmo integrations:call zoho_bills.zoho_bills_list_invoices '{
  "page": 1,
  "per_page": 1,
  "status": "example_status",
  "customer_id": "example_customer_id"
}' --json

Use the provider shortcut form for shorter human-facing commands.

kosmo integrations:zoho_bills zoho_bills_list_invoices '{
  "page": 1,
  "per_page": 1,
  "status": "example_status",
  "customer_id": "example_customer_id"
}' --json

Agent Discovery Commands

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

All CLI Functions

Every function below can be called headlessly. The generic form is stable across all integrations; the provider shortcut is shorter but specific to Zoho Bills.

zoho_bills.zoho_bills_list_invoices

Read read

List invoices from Zoho Bills. Optionally filter by status (draft, sent, overdue, paid, voided, partially_paid) or customer ID.

Parameters
page, per_page, status, customer_id

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

zoho_bills.zoho_bills_get_invoice

Read read

Retrieve a single invoice from Zoho Bills by its ID. Returns full invoice details including line items, totals, and status.

Parameters
id

Generic CLI call

kosmo integrations:call zoho_bills.zoho_bills_get_invoice '{"id":"example_id"}' --json

Provider shortcut

kosmo integrations:zoho_bills zoho_bills_get_invoice '{"id":"example_id"}' --json

zoho_bills.zoho_bills_create_invoice

Write write

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.

Parameters
customer_id, line_items, date, due_date

Generic CLI 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

Provider 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

Read read

List customers (contacts) from Zoho Bills. Optionally filter by type (customer or vendor). Returns paginated results.

Parameters
page, per_page, type

Generic CLI call

kosmo integrations:call zoho_bills.zoho_bills_list_customers '{"page":1,"per_page":1,"type":"example_type"}' --json

Provider shortcut

kosmo integrations:zoho_bills zoho_bills_list_customers '{"page":1,"per_page":1,"type":"example_type"}' --json

zoho_bills.zoho_bills_get_customer

Read read

Retrieve a single customer (contact) from Zoho Bills by ID. Returns full contact details including billing address and contact persons.

Parameters
id

Generic CLI call

kosmo integrations:call zoho_bills.zoho_bills_get_customer '{"id":"example_id"}' --json

Provider shortcut

kosmo integrations:zoho_bills zoho_bills_get_customer '{"id":"example_id"}' --json

zoho_bills.zoho_bills_list_items

Read read

List items (products and services) from Zoho Bills. Returns paginated results with item details like name, rate, and description.

Parameters
page, per_page

Generic CLI call

kosmo integrations:call zoho_bills.zoho_bills_list_items '{"page":1,"per_page":1}' --json

Provider shortcut

kosmo integrations:zoho_bills zoho_bills_list_items '{"page":1,"per_page":1}' --json

zoho_bills.zoho_bills_get_current_user

Read read

Get the currently authenticated Zoho Bills user profile. Useful for verifying connectivity and checking user permissions.

Parameters
none

Generic CLI call

kosmo integrations:call zoho_bills.zoho_bills_get_current_user '{}' --json

Provider 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

List invoices from Zoho Bills. Optionally filter by status (draft, sent, overdue, paid, voided, partially_paid) or customer ID.

Operation
Read read
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

Retrieve a single invoice from Zoho Bills by its ID. Returns full invoice details including line items, totals, and status.

Operation
Read read
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

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.

Operation
Write write
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

List customers (contacts) from Zoho Bills. Optionally filter by type (customer or vendor). Returns paginated results.

Operation
Read read
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

Retrieve a single customer (contact) from Zoho Bills by ID. Returns full contact details including billing address and contact persons.

Operation
Read read
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

List items (products and services) from Zoho Bills. Returns paginated results with item details like name, rate, and description.

Operation
Read read
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

Get the currently authenticated Zoho Bills user profile. Useful for verifying connectivity and checking user permissions.

Operation
Read read
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.