KosmoKrator

sales

Braintree CLI for AI Agents

Use the Braintree CLI from KosmoKrator to call Braintree tools headlessly, return JSON, inspect schemas, and automate workflows from coding agents, scripts, and CI.

7 functions 7 read 0 write Bearer token auth

Braintree CLI Setup

Braintree can be configured headlessly with `kosmokrator integrations:configure braintree`.

# 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 braintree --set access_token="$BRAINTREE_ACCESS_TOKEN" --set merchant_id="$BRAINTREE_MERCHANT_ID" --enable --read allow --write ask --json
kosmokrator integrations:doctor braintree --json
kosmokrator integrations:status --json

Credentials

Authentication type: Bearer token bearer_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 BRAINTREE_ACCESS_TOKEN Secret secret yes Access Token
merchant_id BRAINTREE_MERCHANT_ID Text text yes Merchant ID
url BRAINTREE_URL URL url no API Base URL

Call Braintree Headlessly

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

kosmo integrations:call braintree.braintree_list_transactions '{
  "limit": 1,
  "page": 1,
  "status": "example_status"
}' --json

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

kosmo integrations:braintree braintree_list_transactions '{
  "limit": 1,
  "page": 1,
  "status": "example_status"
}' --json

Agent Discovery Commands

These commands return structured output for coding agents that need to inspect capabilities before choosing a function.

kosmo integrations:docs braintree --json
kosmo integrations:docs braintree.braintree_list_transactions --json
kosmo integrations:schema braintree.braintree_list_transactions --json
kosmo integrations:search "Braintree" --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 Braintree.

braintree.braintree_list_transactions

Read read

List payment transactions for the Braintree merchant. Returns transaction details including amount, status, payment method, and customer info.

Parameters
limit, page, status

Generic CLI call

kosmo integrations:call braintree.braintree_list_transactions '{"limit":1,"page":1,"status":"example_status"}' --json

Provider shortcut

kosmo integrations:braintree braintree_list_transactions '{"limit":1,"page":1,"status":"example_status"}' --json

braintree.braintree_get_transaction

Read read

Retrieve a single Braintree transaction by its ID. Returns full transaction details including amount, status, payment instrument, and settlement info.

Parameters
id

Generic CLI call

kosmo integrations:call braintree.braintree_get_transaction '{"id":"example_id"}' --json

Provider shortcut

kosmo integrations:braintree braintree_get_transaction '{"id":"example_id"}' --json

braintree.braintree_list_customers

Read read

List customers stored in Braintree. Returns customer details including name, email, phone, and payment methods.

Parameters
limit, page

Generic CLI call

kosmo integrations:call braintree.braintree_list_customers '{"limit":1,"page":1}' --json

Provider shortcut

kosmo integrations:braintree braintree_list_customers '{"limit":1,"page":1}' --json

braintree.braintree_get_customer

Read read

Retrieve a single Braintree customer by ID. Returns full customer details including contact info, payment methods, and addresses.

Parameters
id

Generic CLI call

kosmo integrations:call braintree.braintree_get_customer '{"id":"example_id"}' --json

Provider shortcut

kosmo integrations:braintree braintree_get_customer '{"id":"example_id"}' --json

braintree.braintree_list_plans

Read read

List recurring billing plans configured in Braintree. Returns plan details including billing cycle, price, and trial period.

Parameters
limit, page

Generic CLI call

kosmo integrations:call braintree.braintree_list_plans '{"limit":1,"page":1}' --json

Provider shortcut

kosmo integrations:braintree braintree_list_plans '{"limit":1,"page":1}' --json

braintree.braintree_get_plan

Read read

Retrieve a single Braintree recurring billing plan by ID. Returns plan details including billing cycle, price, and trial period.

Parameters
id

Generic CLI call

kosmo integrations:call braintree.braintree_get_plan '{"id":"example_id"}' --json

Provider shortcut

kosmo integrations:braintree braintree_get_plan '{"id":"example_id"}' --json

braintree.braintree_get_current_user

Read read

Get the current Braintree merchant account information. Returns merchant details including business name, currency, and account status.

Parameters
none

Generic CLI call

kosmo integrations:call braintree.braintree_get_current_user '{}' --json

Provider shortcut

kosmo integrations:braintree braintree_get_current_user '{}' --json

Function Schemas

Use these parameter tables when building CLI payloads without calling integrations:schema first.

braintree.braintree_list_transactions

List payment transactions for the Braintree merchant. Returns transaction details including amount, status, payment method, and customer info.

Operation
Read read
Schema command
kosmo integrations:schema braintree.braintree_list_transactions --json
ParameterTypeRequiredDescription
limit integer no Maximum number of transactions to return (default: 10, max: 100).
page integer no Page number for pagination (default: 1).
status string no Filter by transaction status: authorized, submitted_for_settlement, settled, settling, failed, voided, declined, gateway_rejected.

braintree.braintree_get_transaction

Retrieve a single Braintree transaction by its ID. Returns full transaction details including amount, status, payment instrument, and settlement info.

Operation
Read read
Schema command
kosmo integrations:schema braintree.braintree_get_transaction --json
ParameterTypeRequiredDescription
id string yes The transaction ID (e.g., "abc123xyz").

braintree.braintree_list_customers

List customers stored in Braintree. Returns customer details including name, email, phone, and payment methods.

Operation
Read read
Schema command
kosmo integrations:schema braintree.braintree_list_customers --json
ParameterTypeRequiredDescription
limit integer no Maximum number of customers to return (default: 10, max: 100).
page integer no Page number for pagination (default: 1).

braintree.braintree_get_customer

Retrieve a single Braintree customer by ID. Returns full customer details including contact info, payment methods, and addresses.

Operation
Read read
Schema command
kosmo integrations:schema braintree.braintree_get_customer --json
ParameterTypeRequiredDescription
id string yes The customer ID.

braintree.braintree_list_plans

List recurring billing plans configured in Braintree. Returns plan details including billing cycle, price, and trial period.

Operation
Read read
Schema command
kosmo integrations:schema braintree.braintree_list_plans --json
ParameterTypeRequiredDescription
limit integer no Maximum number of plans to return (default: 10, max: 100).
page integer no Page number for pagination (default: 1).

braintree.braintree_get_plan

Retrieve a single Braintree recurring billing plan by ID. Returns plan details including billing cycle, price, and trial period.

Operation
Read read
Schema command
kosmo integrations:schema braintree.braintree_get_plan --json
ParameterTypeRequiredDescription
id string yes The plan ID.

braintree.braintree_get_current_user

Get the current Braintree merchant account information. Returns merchant details including business name, currency, and account status.

Operation
Read read
Schema command
kosmo integrations:schema braintree.braintree_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.