payments
Chargify CLI for Cron Jobs
Use the Chargify CLI for cron jobs with headless JSON commands, schema discovery, credentials, and permission controls.
7 functions 7 read 0 write API key auth
Chargify CLI for Cron Jobs
Schedule repeatable integration workflows from cron while keeping credentials in KosmoKrator config.
Use the headless CLI from cron when an operation should run without an interactive agent session. The Chargify CLI uses the same integration registry as the TUI, Lua runtime, and MCP gateway, but returns predictable command output for automation.
Command Shape
# Chargify CLI for Cron Jobs
kosmokrator integrations:configure chargify --set api_key="$CHARGIFY_API_KEY" --enable --read allow --write ask --json
kosmo integrations:call chargify.chargify_list_subscriptions '{"page":1,"per_page":1,"state":"example_state"}' --json Discovery Before Execution
Agents and scripts can inspect Chargify docs and schemas before choosing a function.
kosmo integrations:docs chargify --json
kosmo integrations:docs chargify.chargify_list_subscriptions --json
kosmo integrations:schema chargify.chargify_list_subscriptions --json
kosmo integrations:search "Chargify" --json
kosmo integrations:list --json Useful Chargify CLI Functions
| Function | Type | Parameters | Description |
|---|---|---|---|
chargify.chargify_list_subscriptions | Read | page, per_page, state | List subscriptions from Chargify. Supports filtering by state (active, past_due, canceled, expired, trial, etc.) and pagination. |
chargify.chargify_get_subscription | Read | subscription_id | Get detailed information for a single Chargify subscription by ID. |
chargify.chargify_list_customers | Read | page, per_page | List customers from Chargify. Supports pagination with page and per_page parameters. |
chargify.chargify_get_customer | Read | customer_id | Get detailed information for a single Chargify customer by ID. |
chargify.chargify_list_products | Read | page, per_page | List products available in Chargify. Supports pagination with page and per_page parameters. |
chargify.chargify_list_invoices | Read | page, per_page, status | List invoices from Chargify. Supports filtering by status (open, paid, pending, voided) and pagination. |
chargify.chargify_get_current_user | Read | none | Get the currently authenticated Chargify user. Useful for verifying API credentials. |
Automation Notes
- Use
--jsonfor machine-readable output. - Keep credentials out of argv by using environment variables or stored KosmoKrator configuration.
- Configure read/write policy before unattended runs; use
--forceonly for trusted automation. - Use the MCP gateway instead when the agent needs dynamic tool discovery inside a conversation.