Graphrt

Stripe

Customers, PaymentIntents, payment links, draft invoices, products and prices, charges, balance, subscriptions, agent PaymentIntents capped by amount and currency, confirm/capture/refund/finalize node only

Beta v0.1.0 Node.js 35 actions
Use in Graphrt Desktop

About

A Graphrt plugin for the Stripe API: customers, PaymentIntents, payment links, invoices, products and prices, charges, balance, refunds and subscriptions. Every request is pinned to Stripe-Version: 2026-10-28.endive, and every create sends a fresh Idempotency-Key. It is built with the declarative REST layer (definition.mjs) plus three small agent-safety wrappers in lib/.

What it can do

  • Customers: list_customers, search_customers (Stripe search syntax), get_customer, create_customer, update_customer
  • PaymentIntents: list_payment_intents, get_payment_intent, create_payment_intent (unconfirmed), confirm_payment_intent, capture_payment_intent, cancel_payment_intent (the last three node only)
  • Payment links: list_payment_links, create_payment_link (buy.stripe.com link for existing prices)
  • Invoices: list_invoices, get_invoice, create_invoice (always a draft: auto_advance=false), add_invoice_item, finalize_invoice, send_invoice, pay_invoice (the last four node only)
  • Catalog: list_products, get_product, create_product, list_prices, create_price
  • Money in and out: list_charges, get_charge, get_balance, list_balance_transactions, list_refunds, create_refund (node only)
  • Subscriptions: list_subscriptions, get_subscription, cancel_subscription (node only)
  • api_request: any other endpoint (GET only and allowlisted paths for agents), e.g. /v1/disputes

Actions

Each action is a step you can add to a workflow. Agents can also use most of them as tools.

  • List customers stripe.list_customers
  • Search customers stripe.search_customers
  • Get customer stripe.get_customer
  • Create customer stripe.create_customer
  • Update customer stripe.update_customer
  • List PaymentIntents stripe.list_payment_intents
  • Get PaymentIntent stripe.get_payment_intent
  • Create PaymentIntent stripe.create_payment_intent
  • Confirm PaymentIntent stripe.confirm_payment_intent
  • Capture PaymentIntent stripe.capture_payment_intent
Show all 35 actions
  • Cancel PaymentIntent stripe.cancel_payment_intent
  • List payment links stripe.list_payment_links
  • Create payment link stripe.create_payment_link
  • List invoices stripe.list_invoices
  • Get invoice stripe.get_invoice
  • Create draft invoice stripe.create_invoice
  • Add invoice item stripe.add_invoice_item
  • Finalize invoice stripe.finalize_invoice
  • Send invoice stripe.send_invoice
  • Pay invoice stripe.pay_invoice
  • List products stripe.list_products
  • Get product stripe.get_product
  • Create product stripe.create_product
  • List prices stripe.list_prices
  • Create price stripe.create_price
  • List charges stripe.list_charges
  • Get charge stripe.get_charge
  • Get balance stripe.get_balance
  • List balance transactions stripe.list_balance_transactions
  • List refunds stripe.list_refunds
  • Create refund stripe.create_refund
  • List subscriptions stripe.list_subscriptions
  • Get subscription stripe.get_subscription
  • Cancel subscription stripe.cancel_subscription
  • Stripe API request stripe.api_request

Settings

Graphrt starts plugins with a clean environment. Only these values reach the plugin, and secrets stay out of logs.

  • STRIPE_SECRET_KEY Required
    Secret key (sk_test_... / sk_live_...) or, better, a restricted key (rk_...), sent as Basic auth
  • STRIPE_TOOL_ALLOW_WRITE Optional
    1 lets agent tools create/update customers, products, prices (capped) and draft invoices
  • STRIPE_TOOL_ALLOW_PAYMENT_LINKS Optional
    1 lets agent tools create payment links
  • STRIPE_TOOL_ALLOW_PAYMENT_INTENTS Optional
    1 lets agent tools create (unconfirmed) PaymentIntents, within the cap below
  • STRIPE_TOOL_MAX_AMOUNT For agent PaymentIntents and prices
    Maximum amount of an agent-created PaymentIntent and unit_amount of an agent-created price, in Stripe's minor units (see below). Unset or 0 refuses both
  • STRIPE_TOOL_ALLOWED_CURRENCIES For agent PaymentIntents and prices
    Comma-separated currencies agents may use, e.g. usd,eur. Unset refuses both
  • STRIPE_TOOL_API_EXTRA_PATHS Optional
    More GET paths agents may reach with api_request, comma-separated, * = one segment

How to use it

In Graphrt Desktop

  1. Open Plugins and search for Stripe.
  2. Click Install and approve it.
  3. Follow the setup steps on the plugin's page, then paste the settings it needs.
  4. Describe a job that needs it, and the builder adds the steps.
Plugins in Graphrt Desktop

With the CLI

terminal
$ graphrt plugin install stripe
workflow.yaml
- id: intent
  type: stripe.create_payment_intent
  amount: 15000            # $150.00
  currency: usd
  customer: "{{#start.customer_id#}}"
  metadata: { order_id: "{{#start.order_id#}}" }
- id: refund
  type: stripe.create_refund
  payment_intent: "{{#intent.data.id#}}"
  amount: 5000
Plugins in the docs