Affiliate Payment Methods

Endpoints for managing Stripe payment methods on an affiliate's Telegra billing profile. Billing here is affiliate-to-Telegra (powered by Telegra's global Stripe account), not the affiliate's own Stripe account.

Two payment method types are supported:

TypeStripe typeNotes
Credit / debit cardcardAttach via Stripe.js confirmCardSetup or createPaymentMethod
US bank account (ACH)us_bank_accountRequires the ACH SetupIntent flow (see below)

ACH bank account flow

ACH accounts cannot be directly attached with a paymentMethodId alone. Follow these steps:

  1. Create a SetupIntent — call POST /v2/affiliatePaymentMethods/ach-setup-intent to get a clientSecret
  2. Collect bank details — on the frontend, call stripe.collectBankAccountForSetup() with the clientSecret and confirm the SetupIntent
  3. Register with Telegra — after the SetupIntent is confirmed, call POST /v2/affiliatePaymentMethods with the resulting paymentMethodId and paymentMethodType: "us_bank_account"

Required role

All endpoints require one of: affiliate_super_admin, affiliate_admin, affiliate_agent