KosmoKrator

finance

Paystack CLI for Shell Scripts

Use the Paystack CLI for shell scripts with headless JSON commands, schema discovery, credentials, and permission controls.

7 functions 5 read 2 write API key auth

Paystack CLI for Shell Scripts

Call integration functions from shell scripts with stable JSON input and output.

Use shell scripts for small local automations that need one or more integration calls. The Paystack CLI uses the same integration registry as the TUI, Lua runtime, and MCP gateway, but returns predictable command output for automation.

Command Shape

# Paystack CLI for Shell Scripts
kosmokrator integrations:configure paystack --set secret_key="$PAYSTACK_SECRET_KEY" --enable --read allow --write ask --json
kosmo integrations:call paystack.paystack_list_transactions '{"per_page":1,"page":1,"status":"example_status","customer":"example_customer","from":"example_from","to":"example_to"}' --json

Discovery Before Execution

Agents and scripts can inspect Paystack docs and schemas before choosing a function.

kosmo integrations:docs paystack --json
kosmo integrations:docs paystack.paystack_list_transactions --json
kosmo integrations:schema paystack.paystack_list_transactions --json
kosmo integrations:search "Paystack" --json
kosmo integrations:list --json

Useful Paystack CLI Functions

FunctionTypeParametersDescription
paystack.paystack_list_transactions Read per_page, page, status, customer, from, to List transactions on your Paystack integration. Supports filtering by status, customer, and date range with pagination.
paystack.paystack_get_transaction Read id Get details of a specific Paystack transaction by its ID or reference.
paystack.paystack_initialize_transaction Write amount, email, reference, callback_url Initialize a new payment transaction on Paystack. Returns an authorization URL for the customer to complete payment.
paystack.paystack_list_customers Read per_page, page List customers on your Paystack integration. Supports pagination.
paystack.paystack_create_customer Write email, first_name, last_name, phone Create a new customer on your Paystack integration.
paystack.paystack_list_plans Read per_page, page, status List subscription plans on your Paystack integration. Supports filtering by status and pagination.
paystack.paystack_get_current_user Read none Verify the Paystack API connection and retrieve integration payment session timeout settings. Use this to check if the API key is valid and the service is reachable.

Automation Notes

Related Paystack CLI Pages