CH·02CLI reference
deeprelay billing payment-methods set
Choose the method your plan renews on (--plan) or auto-pay charges (--auto-pay)
Choose the method your plan renews on (--plan) or auto-pay charges (--auto-pay)
Synopsis
Chooses what a saved payment method pays for.
--plan— your plan renews on it. A plan billed in US dollars takes a card or Link; a plan billed in rupees takes an active UPI ID. If the plan's last renewal failed, the payment is retried on this method right away: this is how you fix a failed payment.--auto-pay— auto-pay top-ups are charged to it. A UPI ID is refused while the auto-pay amount is above $130.
Pass both to do both.
On a plan that is set to cancel, --plan --resume also resumes it, so it
keeps renewing on the method you chose. Without --resume the method is set
and the plan still ends at the close of the paid period.
Examples
# Fix a failed renewal with another card.
deeprelay billing payment-methods set pm_1Q2w3E4r5T6y --plan
# Keep a cancelling plan: renew it on this card and resume it.
deeprelay billing payment-methods set pm_1Q2w3E4r5T6y --plan --resume
# Point auto-pay at a UPI ID.
deeprelay billing payment-methods set pm_1Q2w3E4r5T7u --auto-pay
deeprelay billing payment-methods set <id> [flags]
Options
--auto-pay Charge auto-pay top-ups to this method
-h, --help help for set
--plan Renew the plan on this method (retries a failed renewal on it)
--resume With --plan: also resume a plan that is set to cancel
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
- deeprelay billing payment-methods - List, add and remove saved cards and UPI IDs, and choose what each pays for