Give a referral free month

Give one person a free month of their plan as credit on this service's Stripe account, because someone who joined with their link started paying

Runs only on this service's operator account, started by the payment notice that makes a referral reward owed (src/payment.mjs rewardReferrals). Uses the operator's Stripe connection; the reward's idempotency key is Stripe's, so the same reward is never credited twice.

What it asks for

  • subscription_id (Needed, words): The referrer's subscription; the credit goes on the Stripe customer it bills
  • amount_cents (Needed, number): The credit, in cents
  • currency (Needed, words): Three-letter currency of the plan
  • idempotency_key (Needed, words): One key per reward, so it is credited once
  • description (Optional, words): The line the customer reads on the credit; a referral's words when left out
  • reason (Optional, words): Why the credit is given (referral, first-month), kept on it

Use it from your AI

Connect the AI you already use to Trillion once. Then ask in your own words; your AI finds this tool by what it does and runs it.

Say to your AI: “Use Trillion to give one person a free month of their plan as credit on this service's Stripe account, because someone who joined with their link started paying”

What your AI calls: run_tool {"tool_id":"tool:give-referral-credit"}