Account

Refund a top-up

account_refund_topup · Deletes data · Markdown

Refunds a top-up from the last 24 hours that none of has been used: the credit, with its tax, goes back to the card, and the service fee is kept.

Free

This tool costs nothing to call.

An example

I topped up $500 by mistake this morning. Refund it.

Your agent callsaccount_refund_topupFree

The example business is Halverson Cycle & Repair, a bike shop with a repair workshop in Portland, Oregon. The reply is the one the tool really gives.

With these arguments
{}
What comes back
{
  "refunded": true,
  "topup_id": 4102,
  "credit_removed_usd": "$50.00",
  "bonus_removed_usd": null,
  "fee_kept_usd": "$3.85",
  "to_card": "50.00 USD",
  "refund_id": "re_3QdF9aLkdIwHu7ix1Kc4ZpQe",
  "status": "pending",
  "balance_usd": "$1.00",
  "note": "Link emails the payer a receipt for the refund. Banks usually show it within 5 to 10 business days."
}

Use it when

The owner topped up by mistake, or bought far more credit than the business needs, within the last day and before any of it was spent.

What it does

Refund a top-up paid in the last 24 hours that none of has been used yet: its credit, with the first top-up's bonus, leaves the balance, and the card gets the credit back with its tax. The service fee is kept. Without topup_id, the newest top-up (GET /v1/topups lists them with their ids). Free.

What comes back

refunded, the topup_id, the credit and any first-top-up bonus taken off the balance, the fee kept, what goes back to the card in the currency paid, Stripe's refund id and status, and the balance after. Every reply also carries cost_usd and balance_usd.

Inputs

NameTypeWhat it is
topup_idintegerAt least 1.

The call

Over MCP, call account_refund_topup on https://api.conecto.chat/mcp/account. Over REST:

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

When it refuses

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

CodeWhenWhat to do
not_found404No top-up with that id, or none in the last 24 hours.GET /v1/topups lists the top-ups with their ids.
not_refundable409The top-up is older than 24 hours, part of it was used, it was refunded already, or it was an auto-reload.Nothing was refunded. Credit doesn't expire, so it stays for later calls.
refund_refused502Stripe refused the refund.Ask the payer to contact Link's support, which can refund a payment within 60 days.

Give this to your agent.

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