@whop/cli 0.16.0 → 0.16.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/README.md +2 -2
  2. package/dist/index.js +1534 -412
  3. package/dist/index.js.map +1 -1
  4. package/package.json +2 -2
  5. package/skills/whop/SKILL.md +48 -0
  6. package/skills/whop/references/ads.md +43 -0
  7. package/skills/whop/references/formation.md +40 -0
  8. package/skills/whop/references/websites.md +59 -0
  9. package/skills/whop-accounts/SKILL.md +0 -228
  10. package/skills/whop-ad-campaigns/SKILL.md +0 -204
  11. package/skills/whop-ad-groups/SKILL.md +0 -269
  12. package/skills/whop-ads/SKILL.md +0 -277
  13. package/skills/whop-api-keys/SKILL.md +0 -126
  14. package/skills/whop-app-builds/SKILL.md +0 -81
  15. package/skills/whop-apps/SKILL.md +0 -161
  16. package/skills/whop-audiences/SKILL.md +0 -105
  17. package/skills/whop-bounties/SKILL.md +0 -145
  18. package/skills/whop-bounty-submissions/SKILL.md +0 -95
  19. package/skills/whop-cards/SKILL.md +0 -133
  20. package/skills/whop-checkout-configurations/SKILL.md +0 -77
  21. package/skills/whop-deposits/SKILL.md +0 -26
  22. package/skills/whop-dispute-alerts/SKILL.md +0 -42
  23. package/skills/whop-disputes/SKILL.md +0 -99
  24. package/skills/whop-events/SKILL.md +0 -105
  25. package/skills/whop-exports/SKILL.md +0 -379
  26. package/skills/whop-ledgers/SKILL.md +0 -52
  27. package/skills/whop-media/SKILL.md +0 -44
  28. package/skills/whop-members/SKILL.md +0 -64
  29. package/skills/whop-memberships/SKILL.md +0 -165
  30. package/skills/whop-notifications/SKILL.md +0 -104
  31. package/skills/whop-partners/SKILL.md +0 -113
  32. package/skills/whop-payment-method-domains/SKILL.md +0 -93
  33. package/skills/whop-payments/SKILL.md +0 -40
  34. package/skills/whop-payouts/SKILL.md +0 -167
  35. package/skills/whop-people/SKILL.md +0 -63
  36. package/skills/whop-permissions/SKILL.md +0 -21
  37. package/skills/whop-plans/SKILL.md +0 -165
  38. package/skills/whop-products/SKILL.md +0 -153
  39. package/skills/whop-recommended-actions/SKILL.md +0 -59
  40. package/skills/whop-resolution-center-cases/SKILL.md +0 -233
  41. package/skills/whop-setup-intents/SKILL.md +0 -40
  42. package/skills/whop-shipments/SKILL.md +0 -79
  43. package/skills/whop-social-accounts/SKILL.md +0 -128
  44. package/skills/whop-stats/SKILL.md +0 -65
  45. package/skills/whop-swaps/SKILL.md +0 -77
  46. package/skills/whop-team-members/SKILL.md +0 -93
  47. package/skills/whop-transfers/SKILL.md +0 -80
  48. package/skills/whop-users/SKILL.md +0 -309
  49. package/skills/whop-verifications/SKILL.md +0 -67
@@ -1,165 +0,0 @@
1
- ---
2
- name: whop-memberships
3
- description: A customer's purchase of a plan, from checkout through cancellation. Run `whop memberships --help` for usage details.
4
- requires_bin: whop
5
- command: whop memberships
6
- ---
7
-
8
- A Membership is a customer's purchase of a plan: the subscription or one-time grant that gives them access to a product. It tracks billing state (`active`, `trialing`, `past_due`, and so on), the current period, pending cancellations, custom metadata, and the software license key when the product includes licensing.
9
-
10
- Use the Memberships API to list an account's memberships or the caller's own, retrieve one by ID or license key, invite a recipient to join through a free plan, and manage the lifecycle: cancel immediately or at period end, reverse a scheduled period-end cancellation, pause and resume payment collection, extend with free days, and update metadata.
11
-
12
- # whop memberships cancel
13
-
14
- Cancel Membership
15
-
16
- ## Arguments
17
-
18
- | Name | Type | Required | Description |
19
- |------|------|----------|-------------|
20
- | `id` | `string` | yes | Membership ID (`mem_` tag). |
21
-
22
- ## Options
23
-
24
- | Flag | Type | Required | Default | Description |
25
- |------|------|----------|---------|-------------|
26
- | `--reason` | `string` | no | | Free-form note recording why the membership was canceled. |
27
- | `--idempotency-key` | `string` | no | | A unique key that makes this request safe to retry. See [Idempotent requests](https://docs.whop.com/developer/api/idempotency). |
28
-
29
- > Confirm with the user before executing this destructive command.
30
-
31
- ---
32
-
33
- # whop memberships extend
34
-
35
- Extend Membership
36
-
37
- ## Arguments
38
-
39
- | Name | Type | Required | Description |
40
- |------|------|----------|-------------|
41
- | `id` | `string` | yes | Membership ID (`mem_` tag). |
42
-
43
- ## Options
44
-
45
- | Flag | Type | Required | Default | Description |
46
- |------|------|----------|---------|-------------|
47
- | `--days` | `number` | yes | | Number of free days to add (1-1095). |
48
- | `--idempotency-key` | `string` | no | | A unique key that makes this request safe to retry. See [Idempotent requests](https://docs.whop.com/developer/api/idempotency). |
49
-
50
- > Confirm with the user before executing this destructive command.
51
-
52
- ---
53
-
54
- # whop memberships get
55
-
56
- Retrieve Membership
57
-
58
- ## Arguments
59
-
60
- | Name | Type | Required | Description |
61
- |------|------|----------|-------------|
62
- | `id` | `string` | yes | Membership ID (`mem_` tag), or a software license key. |
63
-
64
- ---
65
-
66
- # whop memberships invite
67
-
68
- Invite to a Membership
69
-
70
- ## Options
71
-
72
- | Flag | Type | Required | Default | Description |
73
- |------|------|----------|---------|-------------|
74
- | `--email` | `string` | no | | Recipient email address. Mutually exclusive with `user_id`. |
75
- | `--plan_id` | `string` | yes | | Free plan whose membership the recipient is invited to, prefixed `plan_`. |
76
- | `--user_id` | `string` | no | | Recipient user ID, prefixed `user_`. Mutually exclusive with `email`. |
77
- | `--idempotency-key` | `string` | no | | A unique key that makes this request safe to retry. See [Idempotent requests](https://docs.whop.com/developer/api/idempotency). |
78
-
79
- > Confirm with the user before executing this destructive command.
80
-
81
- ---
82
-
83
- # whop memberships list
84
-
85
- List Memberships
86
-
87
- ## Options
88
-
89
- | Flag | Type | Required | Default | Description |
90
- |------|------|----------|---------|-------------|
91
- | `--account_id` | `string` | no | | Narrow to one account (`biz_` tag). With read access to the account this lists all of its memberships; without, only the caller's own memberships in it. |
92
- | `--user_id` | `string` | no | | Narrow to one user's memberships (`user_` tag, or `me` for the caller). A user outside the caller's visible set returns an empty list. |
93
- | `--status` | `string` | no | | Filter by billing state. `canceling` matches active memberships set to cancel at period end; `paused` matches memberships with payment collection paused. |
94
- | `--product_id` | `string` | no | | Filter to memberships of this product (`prod_` tag). Repeat as product_ids[] for several. |
95
- | `--plan_id` | `string` | no | | Filter to memberships of this plan (`plan_` tag). Repeat as plan_ids[] for several. |
96
- | `--created_after` | `string` | no | | Only memberships created after this ISO 8601 timestamp. |
97
- | `--created_before` | `string` | no | | Only memberships created before this ISO 8601 timestamp. |
98
- | `--order` | `string` | no | | Sort field. |
99
- | `--direction` | `string` | no | | Sort direction. |
100
- | `--first` | `number` | no | `20` | Number of memberships to return from the start of the window. |
101
- | `--after` | `string` | no | | Cursor to paginate forwards from. |
102
- | `--last` | `number` | no | | Number of memberships to return from the end of the window. |
103
- | `--before` | `string` | no | | Cursor to paginate backwards from. |
104
-
105
- ---
106
-
107
- # whop memberships pause
108
-
109
- Pause Membership
110
-
111
- ## Arguments
112
-
113
- | Name | Type | Required | Description |
114
- |------|------|----------|-------------|
115
- | `id` | `string` | yes | Membership ID (`mem_` tag). |
116
-
117
- ## Options
118
-
119
- | Flag | Type | Required | Default | Description |
120
- |------|------|----------|---------|-------------|
121
- | `--until` | `string` | no | | ISO 8601 time to automatically resume payment collection. Must be in the future; only supported for memberships billed by Whop. |
122
- | `--idempotency-key` | `string` | no | | A unique key that makes this request safe to retry. See [Idempotent requests](https://docs.whop.com/developer/api/idempotency). |
123
-
124
- > Confirm with the user before executing this destructive command.
125
-
126
- ---
127
-
128
- # whop memberships resume
129
-
130
- Resume Membership
131
-
132
- ## Arguments
133
-
134
- | Name | Type | Required | Description |
135
- |------|------|----------|-------------|
136
- | `id` | `string` | yes | Membership ID (`mem_` tag). |
137
-
138
- ## Options
139
-
140
- | Flag | Type | Required | Default | Description |
141
- |------|------|----------|---------|-------------|
142
- | `--idempotency-key` | `string` | no | | A unique key that makes this request safe to retry. See [Idempotent requests](https://docs.whop.com/developer/api/idempotency). |
143
-
144
- > Confirm with the user before executing this destructive command.
145
-
146
- ---
147
-
148
- # whop memberships update
149
-
150
- Update Membership
151
-
152
- ## Arguments
153
-
154
- | Name | Type | Required | Description |
155
- |------|------|----------|-------------|
156
- | `id` | `string` | yes | Membership ID (`mem_` tag), or a software license key. |
157
-
158
- ## Options
159
-
160
- | Flag | Type | Required | Default | Description |
161
- |------|------|----------|---------|-------------|
162
- | `--cancel_at_period_end` | `boolean` | no | | `true` cancels at the end of the current billing period (the customer keeps access until then); `false` reverses a pending cancellation. |
163
- | `--metadata` | `object` | no | | Key-value pairs to merge into the membership's metadata. Pass an empty object to clear it. |
164
-
165
- > Confirm with the user before executing this destructive command.
@@ -1,104 +0,0 @@
1
- ---
2
- name: whop-notifications
3
- description: "The user's notification feed: unread badges, mark-read, app sends, and the topic catalog. Run `whop notifications --help` for usage details."
4
- requires_bin: whop
5
- command: whop notifications
6
- ---
7
-
8
- A Notification is a message delivered to a user — a new post, a payment, a mention. Every notification comes from an experience the user belongs to or a team they are on, and users control what they receive with notification preferences.
9
-
10
- Every notification belongs to a topic: the category it falls under, such as new sales or account activity. Topics carry a default, so a user only needs a preference row where they diverge from it. `GET /notifications/topics` lists the platform's visible topics, and a topic's `id` is what the notification preference endpoints take as `topic_id` — the catalog is the only place those ids come from, so read it rather than hardcoding. Each topic also carries an `identifier` such as `new-follower`, which is stable across environments and is the value to match on in code.
11
-
12
- Use the Notifications API to list the authenticated user's feed, read per-experience unread badges, mark an experience (or everything) as read, send notifications from your app to an experience's users or an account's team, and list the topic catalog.
13
-
14
- # whop notifications badges
15
-
16
- List Notification Badges
17
-
18
- ## Options
19
-
20
- | Flag | Type | Required | Default | Description |
21
- |------|------|----------|---------|-------------|
22
- | `--experience_ids` | `array` | no | | Only return badges for these experiences (`exp_` tags). |
23
- | `--last_fetched_at` | `string` | no | | The client's last fetched-at ISO 8601 timestamp, used to partially refresh badges after a websocket message. |
24
-
25
- ---
26
-
27
- # whop notifications create
28
-
29
- Send Notification
30
-
31
- ## Options
32
-
33
- | Flag | Type | Required | Default | Description |
34
- |------|------|----------|---------|-------------|
35
- | `--account_id` | `string` | no | | Account whose team members receive the notification (`biz_` tag). Exactly one of `experience_id` or `account_id` is required. |
36
- | `--content` | `string` | yes | | Main body text of the notification. |
37
- | `--experience_id` | `string` | no | | Experience whose users receive the notification (`exp_` tag). Exactly one of `experience_id` or `account_id` is required. |
38
- | `--icon_user_id` | `unknown` | no | | User whose profile picture is used as the notification icon. Defaults to the experience or account avatar. |
39
- | `--rest_path` | `unknown` | no | | Path segment appended to the generated deep link that opens your app, for example `/settings/billing`. |
40
- | `--subtitle` | `unknown` | no | | Optional secondary line displayed below the title. |
41
- | `--title` | `string` | yes | | Headline text of the notification. |
42
- | `--user_ids` | `array` | no | | Optional `user_` tags narrowing the audience. When provided, only these users are notified (as a mention), provided they are in the targeted experience or account. |
43
- | `--idempotency-key` | `string` | no | | A unique key that makes this request safe to retry. See [Idempotent requests](https://docs.whop.com/developer/api/idempotency). |
44
-
45
- > Confirm with the user before executing this destructive command.
46
-
47
- ---
48
-
49
- # whop notifications get
50
-
51
- Retrieve Notification
52
-
53
- ## Arguments
54
-
55
- | Name | Type | Required | Description |
56
- |------|------|----------|-------------|
57
- | `id` | `string` | yes | A notification `id` from List Notifications, or the id delivered with a push/websocket event. |
58
-
59
- ---
60
-
61
- # whop notifications list
62
-
63
- List Notifications
64
-
65
- ## Options
66
-
67
- | Flag | Type | Required | Default | Description |
68
- |------|------|----------|---------|-------------|
69
- | `--unread` | `boolean` | no | | Only return notifications created since the user last viewed their source. |
70
- | `--experience_id` | `string` | no | | Only return notifications from this experience (`exp_` tag). |
71
- | `--account_id` | `string` | no | | Only return team notifications for this account (`biz_` tag). |
72
- | `--mentions` | `boolean` | no | | Only return notifications that mention the user directly. |
73
- | `--first` | `number` | no | | The number of notifications to return (default 20, max 100). |
74
- | `--after` | `string` | no | | A cursor (a notification `id` from a previous page); returns notifications older than it. |
75
-
76
- ---
77
-
78
- # whop notifications mark_read
79
-
80
- Mark Notifications Read
81
-
82
- ## Options
83
-
84
- | Flag | Type | Required | Default | Description |
85
- |------|------|----------|---------|-------------|
86
- | `--all` | `boolean` | no | | Pass `true` to mark every notification read. Exactly one of `experience_id` or `all` is required. |
87
- | `--experience_id` | `string` | no | | Experience to mark read (`exp_` tag). Exactly one of `experience_id` or `all` is required. |
88
- | `--idempotency-key` | `string` | no | | A unique key that makes this request safe to retry. See [Idempotent requests](https://docs.whop.com/developer/api/idempotency). |
89
-
90
- > Confirm with the user before executing this destructive command.
91
-
92
- ---
93
-
94
- # whop notifications topics
95
-
96
- List Notification Topics
97
-
98
- ## Options
99
-
100
- | Flag | Type | Required | Default | Description |
101
- |------|------|----------|---------|-------------|
102
- | `--topic_type` | `string` | no | | Only return topics of this scope: `user` (member notifications) or `account_team` (team notifications). |
103
- | `--first` | `number` | no | | The number of topics to return (default 20, max 100). |
104
- | `--after` | `string` | no | | A cursor; returns topics after this position. |
@@ -1,113 +0,0 @@
1
- ---
2
- name: whop-partners
3
- description: The users and businesses you referred to Whop, and what you earn from them. Run `whop partners --help` for usage details.
4
- requires_bin: whop
5
- command: whop partners
6
- ---
7
-
8
- The Partners API covers your Whop partner activity: the users you referred onto Whop, the businesses you referred and the earnings generated from their processing volume, and the partner leaderboard.
9
-
10
- Use it to enroll as a Whop partner, list the users you referred, list your referred businesses and review their earnings, and see the partner leaderboard.
11
-
12
- # whop partners create
13
-
14
- Enroll as a Whop partner
15
-
16
- ## Options
17
-
18
- | Flag | Type | Required | Default | Description |
19
- |------|------|----------|---------|-------------|
20
- | `--idempotency-key` | `string` | no | | A unique key that makes this request safe to retry. See [Idempotent requests](https://docs.whop.com/developer/api/idempotency). |
21
-
22
- > Confirm with the user before executing this destructive command.
23
-
24
- ---
25
-
26
- # whop partners earnings
27
-
28
- List referred business earnings
29
-
30
- ## Arguments
31
-
32
- | Name | Type | Required | Description |
33
- |------|------|----------|-------------|
34
- | `id` | `string` | yes | The partner business ID (a coma_ identifier). |
35
-
36
- ## Options
37
-
38
- | Flag | Type | Required | Default | Description |
39
- |------|------|----------|---------|-------------|
40
- | `--status` | `string` | no | | Filter by earning status. |
41
- | `--first` | `number` | no | `20` | |
42
- | `--after` | `string` | no | | |
43
- | `--last` | `number` | no | | |
44
- | `--before` | `string` | no | | |
45
- | `--order` | `string` | no | | The field to sort earnings by. |
46
- | `--direction` | `string` | no | | Sort direction. |
47
- | `--created_before` | `string` | no | | Only return earnings created before this timestamp. |
48
- | `--created_after` | `string` | no | | Only return earnings created after this timestamp. |
49
-
50
- ---
51
-
52
- # whop partners get
53
-
54
- Retrieve a referred business
55
-
56
- ## Arguments
57
-
58
- | Name | Type | Required | Description |
59
- |------|------|----------|-------------|
60
- | `id` | `string` | yes | The partner business ID (a coma_ identifier). |
61
-
62
- ---
63
-
64
- # whop partners leaderboard
65
-
66
- Retrieve the leaderboard
67
-
68
- ## Options
69
-
70
- | Flag | Type | Required | Default | Description |
71
- |------|------|----------|---------|-------------|
72
- | `--period` | `string` | no | | Time window for the rankings. `day`, `month`, and `year` count earnings since the start of the current calendar day, month, or year; `last_30_days` counts earnings over the trailing 30 days; `all_time` ranks lifetime earnings. |
73
-
74
- ---
75
-
76
- # whop partners list
77
-
78
- List referred businesses
79
-
80
- ## Options
81
-
82
- | Flag | Type | Required | Default | Description |
83
- |------|------|----------|---------|-------------|
84
- | `--status` | `string` | no | | Filter by referral status. |
85
- | `--has_earnings` | `boolean` | no | | When true, only businesses with pending or completed earnings paid to the caller. |
86
- | `--first` | `number` | no | `20` | Number of partner businesses to return from the start of the window. |
87
- | `--after` | `string` | no | | Cursor to fetch the page after (from page_info.end_cursor). |
88
- | `--last` | `number` | no | | Number of partner businesses to return from the end of the window. |
89
- | `--before` | `string` | no | | Cursor to fetch the page before (from page_info.start_cursor). |
90
- | `--order` | `string` | no | | The field to sort partner businesses by. |
91
- | `--direction` | `string` | no | | Sort direction. |
92
- | `--created_before` | `string` | no | | Only return partner businesses created before this timestamp. |
93
- | `--created_after` | `string` | no | | Only return partner businesses created after this timestamp. |
94
- | `--referred_user_id` | `string` | no | | Filter to referrals attributed to this user. For first-tier referrals, this is the referred account owner; for second-tier referrals, this is the partner you recruited. |
95
- | `--referred_username` | `string` | no | | Filter by the referred user's exact username. Ignored when `referred_user_id` is present. |
96
- | `--tier` | `string` | no | | Filter to only first-tier referrals or only second-tier referrals. |
97
-
98
- ---
99
-
100
- # whop partners referred_users
101
-
102
- List the users the caller referred
103
-
104
- ## Options
105
-
106
- | Flag | Type | Required | Default | Description |
107
- |------|------|----------|---------|-------------|
108
- | `--has_businesses` | `boolean` | no | | When true, only referred users who brought at least one business onto Whop. |
109
- | `--has_earning_businesses` | `boolean` | no | | When true, only referred users with at least one business that has generated earnings. |
110
- | `--first` | `number` | no | `20` | Number of referred users to return from the start of the window. |
111
- | `--after` | `string` | no | | Cursor to fetch the page after (from page_info.end_cursor). |
112
- | `--last` | `number` | no | | Number of referred users to return from the end of the window. |
113
- | `--before` | `string` | no | | Cursor to fetch the page before (from page_info.start_cursor). |
@@ -1,93 +0,0 @@
1
- ---
2
- name: whop-payment-method-domains
3
- description: Domains verified to show wallet payment methods like Apple Pay at checkout. Run `whop payment-method-domains --help` for usage details.
4
- requires_bin: whop
5
- command: whop payment-method-domains
6
- ---
7
-
8
- A Payment Method Domain registers a hostname with a wallet provider so its payment methods can appear at a checkout served from that domain. The domain proves ownership by hosting the provider's association file — for Apple Pay, at `/.well-known/apple-developer-merchantid-domain-association` — and `status` reports whether verification has completed.
9
-
10
- Use the Payment Method Domains API to register domains for your account or its connected accounts, retry verification once the association file is hosted, and remove domains that should no longer serve wallet payments. A domain a platform shares with its connected accounts at checkout is listed on the platform's account, not on each connected account.
11
-
12
- # whop payment-method-domains create
13
-
14
- Create Payment Method Domain
15
-
16
- ## Options
17
-
18
- | Flag | Type | Required | Default | Description |
19
- |------|------|----------|---------|-------------|
20
- | `--account_id` | `string` | no | | Account to register the domain for (`biz_` tag). Defaults to the caller's account. |
21
- | `--hostname` | `string` | yes | | Hostname to register (e.g. `checkout.shinetime.example`). |
22
- | `--idempotency-key` | `string` | no | | A unique key that makes this request safe to retry. See [Idempotent requests](https://docs.whop.com/developer/api/idempotency). |
23
-
24
- > Confirm with the user before executing this destructive command.
25
-
26
- ---
27
-
28
- # whop payment-method-domains delete
29
-
30
- Delete Payment Method Domain
31
-
32
- ## Arguments
33
-
34
- | Name | Type | Required | Description |
35
- |------|------|----------|-------------|
36
- | `id` | `string` | yes | The unique identifier of the payment method domain, prefixed `pmd_`. |
37
-
38
- > Confirm with the user before executing this destructive command.
39
-
40
- ---
41
-
42
- # whop payment-method-domains get
43
-
44
- Retrieve Payment Method Domain
45
-
46
- ## Arguments
47
-
48
- | Name | Type | Required | Description |
49
- |------|------|----------|-------------|
50
- | `id` | `string` | yes | The unique identifier of the payment method domain, prefixed `pmd_`. |
51
-
52
- ---
53
-
54
- # whop payment-method-domains list
55
-
56
- List Payment Method Domains
57
-
58
- ## Options
59
-
60
- | Flag | Type | Required | Default | Description |
61
- |------|------|----------|---------|-------------|
62
- | `--account_id` | `string` | no | | Only domains registered for this account (`biz_` tag). Defaults to the caller's account plus its connected accounts. |
63
- | `--hostname` | `string` | no | | Only the domain with this exact hostname. |
64
- | `--status` | `string` | no | | Only domains with this verification status. |
65
- | `--provider` | `string` | no | | Only domains registered with this wallet provider. |
66
- | `--created_before` | `string` | no | | Only domains created before this ISO 8601 timestamp. |
67
- | `--created_after` | `string` | no | | Only domains created after this ISO 8601 timestamp. |
68
- | `--order` | `string` | no | | Sort field. |
69
- | `--direction` | `string` | no | | Sort direction. |
70
- | `--first` | `number` | no | `20` | Number of domains to return from the start of the window. |
71
- | `--after` | `string` | no | | Cursor to paginate forwards from. |
72
- | `--last` | `number` | no | | Number of domains to return from the end of the window. |
73
- | `--before` | `string` | no | | Cursor to paginate backwards from. |
74
-
75
- ---
76
-
77
- # whop payment-method-domains verify
78
-
79
- Verify Payment Method Domain
80
-
81
- ## Arguments
82
-
83
- | Name | Type | Required | Description |
84
- |------|------|----------|-------------|
85
- | `id` | `string` | yes | The unique identifier of the payment method domain, prefixed `pmd_`. |
86
-
87
- ## Options
88
-
89
- | Flag | Type | Required | Default | Description |
90
- |------|------|----------|---------|-------------|
91
- | `--idempotency-key` | `string` | no | | A unique key that makes this request safe to retry. See [Idempotent requests](https://docs.whop.com/developer/api/idempotency). |
92
-
93
- > Confirm with the user before executing this destructive command.
@@ -1,40 +0,0 @@
1
- ---
2
- name: whop-payments
3
- description: A charge against a buyer, and the step they still owe. Run `whop payments --help` for usage details.
4
- requires_bin: whop
5
- command: whop payments
6
- ---
7
-
8
- A Payment is one charge against a buyer. Create it with a payment method already on file, or with a `confirmation_token` describing a method the buyer has just supplied.
9
-
10
- Collection runs in the background, so the create response is not the outcome. Poll [Retrieve status](https://docs.whop.com/api-reference/beta/payments/retrieve-status) for how far the payment has got and, while it is `requires_action`, what the buyer must do next — follow a redirect, complete 3D Secure, display transfer instructions, or link a bank account. Use the return_url operation to change where they land afterwards, up until they come back.
11
-
12
- # whop payments return_url
13
-
14
- Update payment return URL
15
-
16
- ## Arguments
17
-
18
- | Name | Type | Required | Description |
19
- |------|------|----------|-------------|
20
- | `payment_id` | `string` | yes | The unique identifier of the payment. |
21
-
22
- ## Options
23
-
24
- | Flag | Type | Required | Default | Description |
25
- |------|------|----------|---------|-------------|
26
- | `--return_url` | `string` | yes | | Where the buyer continues after completing an off-site step. Must be an absolute https URL without credentials (http is allowed for localhost), at most 2,048 characters. |
27
-
28
- > Confirm with the user before executing this destructive command.
29
-
30
- ---
31
-
32
- # whop payments status
33
-
34
- Retrieve payment status
35
-
36
- ## Arguments
37
-
38
- | Name | Type | Required | Description |
39
- |------|------|----------|-------------|
40
- | `payment_id` | `string` | yes | The unique identifier of the payment. |