Countersign

Integrations · Automation

How to let n8n issue Stripe refunds with manager approval

A deterministic human-in-the-loop gate for n8n AI agent refunds. One HTTP Request node. Branch on the status it returns.

Auto-approve under $50

Small refunds that fit your rules go through at once.

Route the rest

A named approver gets a one-tap card on their phone.

Log everything

Who approved, why, the Stripe refund id. CSV for finance.

Setup: n8n HTTP Request node

  1. Sign up free, connect Stripe with a restricted key (test mode works) and pick a policy.
  2. Copy the JSON below and paste it on the n8n canvas (Ctrl/Cmd+V): it adds a configured HTTP Request node.
  3. Connect your AI Agent node's output to it, and route on {{$json.status}}: approved_and_refunded, pending, denied.
json
{
  "nodes": [
    {
      "parameters": {
        "method": "POST",
        "url": "https://countersign.vibiz.app/api/v1/refunds/request",
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "Authorization",
              "value": "Bearer cs_YOUR_KEY"
            }
          ]
        },
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={{ JSON.stringify({ charge_id: $json.charge_id, amount: $json.amount_cents, reason: $json.reason, ticket_url: $json.ticket_url, agent_name: \"n8n-agent\", agent_reasoning: $json.reasoning, customer_email: $json.email }) }}"
      },
      "name": "Countersign: request refund",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        600,
        300
      ]
    }
  ],
  "connections": {}
}

Replace cs_YOUR_KEY; in the dashboard this snippet comes with your key filled in.

Get my n8n snippetTry the live demo

Questions

Does n8n get access to my Stripe account?

No. n8n gets a Countersign key that can only ask for refunds. Countersign holds a restricted Stripe key and refunds only after your policy or an approver says yes.

What does the agent get back?

status (approved_and_refunded, pending or denied), a message to relay to the customer, the rule that decided it, and a status_url for pending requests.

Who approves the big ones?

The approver for that amount tier gets an email with a one-tap approve card: customer, charge, refundable balance, earlier refunds, the agent's reasoning and the ticket link.

Other integrations

Intercom FinZendesk AI agentsGorgiasFreshdesk FreddyHelp ScoutFrontCrispMakeZapierLangGraphOpenAI Agents SDKClaude & MCPVercel AI SDKMastraCrewAI