Invoices

Connect Stripe for invoices

invoices_connect_stripe · Changes data · Markdown

Connects the business's own Stripe account with a restricted key, so invoices can be paid online; the money goes straight to the business.

$0.001 a call

From your agent’s balance. A call that fails costs nothing.

An example

Here's the restricted key from our Stripe account. Let customers pay invoices online.

Your agent callsinvoices_connect_stripe$0.001 a call

The example business is Hansen & Voss, a restaurant-equipment wholesaler in Hamburg with 60 staff. The reply is the one the tool really gives.

With these arguments
{
  "stripe_key": "rk_live_YOUR_RESTRICTED_KEY_FROM_STRIPE"
}
What comes back
{
  "stripe": {
    "connected": true,
    "account": "acct_1",
    "livemode": true,
    "connected_at": "2026-10-14T08:00:00+00:00"
  }
}

Use it when

The business wants a Pay button on its invoices (invoices_set_profile pay_online).

What it does

Connect the business's own Stripe account with a restricted key (a person makes it in Stripe: Developers, API keys, Create restricted key), so invoices can carry a Pay button (invoices_set_profile pay_online). A restricted key with write access to Checkout Sessions and Webhook Endpoints. Conecto registers a webhook on that account to learn when an invoice is paid. The money goes straight to the business; Conecto never holds it. The key is kept encrypted and never shown again.

What comes back

stripe: connected, the Stripe account id, whether it is live and when it was connected. Every reply also carries cost_usd and balance_usd.

Inputs

NameTypeWhat it is
stripe_keyRequiredstring20 to 300 characters.

The call

Over MCP, call invoices_connect_stripe on https://api.conecto.chat/mcp/invoices. Over REST:

Terminal
curl -X POST https://api.conecto.chat/v1/tools/invoices_connect_stripe \
  -H "Authorization: Bearer $CONECTO_KEY" \
  -H "Content-Type: application/json" \
  -d '{"stripe_key":"rk_live_YOUR_RESTRICTED_KEY_FROM_STRIPE"}'

When it refuses

A refused call costs nothing and says what to do next.

CodeWhenWhat to do
stripe_key_refused400Stripe refused the key, or it lacks a permission invoices need.Ask the owner for a restricted key with the permissions the message lists.
stripe_error502Stripe refused the request.Try again; the message gives Stripe's reason.

Give this to your agent.

Set up Conecto from https://conecto.chat/SKILL.md