CH·02CLI reference

deeprelay billing payment-methods add

Add a card or UPI ID (prints a Stripe link; nothing is charged)

Add a card or UPI ID (prints a Stripe link; nothing is charged)

Synopsis

Prints a Stripe link that saves a card, or with --upi registers a UPI AutoPay mandate (India) that you approve once with your UPI PIN. Nothing is charged; for UPI, Stripe debits and instantly refunds a token amount.

--for gives the new method a job as soon as it is saved, even if you close the page right after:

  • --for plan — your plan renews on it. On a plan whose renewal failed, the payment is retried on it straight away.
  • --for auto-pay — auto-pay top-ups are charged to it.

Add --resume with --for plan to also resume a plan that is set to cancel.

A plan billed in US dollars renews on a card or Link; a plan billed in rupees renews on UPI. A method that cannot pay your plan is saved but not assigned. If your plan has nothing it can renew on (for example its UPI mandate was cancelled), a newly saved method that can pay it is used for the plan automatically.

Examples

# Add a card and renew the plan on it.
deeprelay billing payment-methods add --for plan

# Keep a plan that is set to cancel: add a card, renew on it, resume.
deeprelay billing payment-methods add --for plan --resume

# Add a UPI ID for auto-pay.
deeprelay billing payment-methods add --upi --for auto-pay
deeprelay billing payment-methods add [flags]

Options

      --for strings   Use the new method for: plan, auto-pay (repeat or comma-separate for both)
  -h, --help          help for add
      --resume        With --for plan: also resume a plan that is set to cancel
      --upi           Add a UPI ID (UPI AutoPay mandate, India) instead of a card

Options inherited from parent commands

      --api-base string   API base URL (override with DEEPRELAY_API_BASE env) (default "https://api.deeprelay.ai/v1")
      --debug             Enable debug logging to stderr
      --no-preflight      Skip the plan/credit check before inference requests (override with DEEPRELAY_NO_PREFLIGHT env)
  -o, --output string     Output format: table|json (default table on TTY, json otherwise) (default "table")

SEE ALSO

← The deeprelay CLI