@whop/cli 0.14.1 → 0.14.3
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.
- package/README.md +3 -3
- package/dist/index.js +22283 -7154
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/skills/whop-accounts/SKILL.md +195 -15
- package/skills/whop-ad-campaigns/SKILL.md +193 -15
- package/skills/whop-ad-groups/SKILL.md +258 -16
- package/skills/whop-ads/SKILL.md +190 -14
- package/skills/whop-api-keys/SKILL.md +113 -13
- package/skills/whop-app-builds/SKILL.md +68 -8
- package/skills/whop-apps/SKILL.md +135 -12
- package/skills/whop-audiences/SKILL.md +92 -8
- package/skills/whop-bounties/SKILL.md +104 -9
- package/skills/whop-bounty-submissions/SKILL.md +82 -9
- package/skills/whop-cards/SKILL.md +122 -12
- package/skills/whop-checkout-configurations/SKILL.md +64 -8
- package/skills/whop-deposits/SKILL.md +13 -5
- package/skills/whop-disputes/SKILL.md +86 -9
- package/skills/whop-events/SKILL.md +90 -8
- package/skills/whop-exports/SKILL.md +331 -7
- package/skills/whop-ledgers/SKILL.md +38 -6
- package/skills/whop-media/SKILL.md +28 -7
- package/skills/whop-members/SKILL.md +51 -6
- package/skills/whop-memberships/SKILL.md +137 -13
- package/skills/whop-notifications/SKILL.md +91 -12
- package/skills/whop-partners/SKILL.md +102 -12
- package/skills/whop-payments/SKILL.md +40 -0
- package/skills/whop-payouts/SKILL.md +130 -9
- package/skills/whop-people/SKILL.md +50 -6
- package/skills/whop-permissions/SKILL.md +8 -5
- package/skills/whop-plans/SKILL.md +152 -12
- package/skills/whop-products/SKILL.md +141 -13
- package/skills/whop-resolution-center-cases/SKILL.md +222 -17
- package/skills/whop-setup-intents/SKILL.md +20 -0
- package/skills/whop-shipments/SKILL.md +66 -8
- package/skills/whop-social-accounts/SKILL.md +112 -11
- package/skills/whop-stats/SKILL.md +50 -6
- package/skills/whop-swaps/SKILL.md +63 -8
- package/skills/whop-team-members/SKILL.md +80 -9
- package/skills/whop-transfers/SKILL.md +67 -8
- package/skills/whop-users/SKILL.md +295 -18
- package/skills/whop-verifications/SKILL.md +51 -9
|
@@ -11,15 +11,94 @@ Every notification belongs to a topic: the category it falls under, such as new
|
|
|
11
11
|
|
|
12
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
13
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
|
21
|
-
|
|
22
|
-
| `
|
|
23
|
-
| `
|
|
24
|
-
|
|
25
|
-
|
|
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
|
+
| `notification_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. |
|
|
@@ -9,15 +9,105 @@ The Partners API covers your Whop partner activity: the users you referred onto
|
|
|
9
9
|
|
|
10
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
11
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
|
19
|
-
|
|
20
|
-
| `
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
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). |
|
|
@@ -0,0 +1,40 @@
|
|
|
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, 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. |
|
|
@@ -7,15 +7,136 @@ command: whop payouts
|
|
|
7
7
|
|
|
8
8
|
Payouts represent money sent from an account or user balance to an external destination, such as a bank account, wallet, or other saved payout method.
|
|
9
9
|
|
|
10
|
-
Use the Payouts API to create payouts from
|
|
10
|
+
Use the Payouts API to create payouts from accounts, list payout history for accounts or users, monitor payout statuses, and show expected arrival details for funds leaving Whop.
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
# whop payouts create
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|---------|-------------|
|
|
16
|
-
| `whop payouts list` | List Payouts |
|
|
17
|
-
| `whop payouts create` | Create Payout |
|
|
18
|
-
| `whop payouts methods` | List Payout Methods |
|
|
19
|
-
| `whop payouts create-method` | Create Payout Method |
|
|
14
|
+
Create Payout
|
|
20
15
|
|
|
21
|
-
|
|
16
|
+
## Options
|
|
17
|
+
|
|
18
|
+
| Flag | Type | Required | Default | Description |
|
|
19
|
+
|------|------|----------|---------|-------------|
|
|
20
|
+
| `--account_id` | `string` | yes | | The account to pay out from (a biz_ identifier). |
|
|
21
|
+
| `--amount` | `number` | yes | | The amount to pay out in the specified currency. |
|
|
22
|
+
| `--currency` | `string` | no | | The payout currency. Defaults to usd. |
|
|
23
|
+
| `--payout_method_id` | `string` | yes | | The saved payout method to deliver to (a potk_ identifier). |
|
|
24
|
+
| `--idempotency-key` | `string` | no | | A unique key that makes this request safe to retry. See [Idempotent requests](https://docs.whop.com/developer/api/idempotency). |
|
|
25
|
+
|
|
26
|
+
> Confirm with the user before executing this destructive command.
|
|
27
|
+
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
# whop payouts create-method
|
|
31
|
+
|
|
32
|
+
Create Saved Payout Method
|
|
33
|
+
|
|
34
|
+
## Options
|
|
35
|
+
|
|
36
|
+
| Flag | Type | Required | Default | Description |
|
|
37
|
+
|------|------|----------|---------|-------------|
|
|
38
|
+
| `--account_id` | `string` | no | | The account to add the payout method for (a biz_ identifier). Provide this or user_id. |
|
|
39
|
+
| `--destination_currency` | `string` | no | `usd` | Currency the supported payout method delivers payouts in. |
|
|
40
|
+
| `--fields` | `object` | yes | | The supported payout method's required field values, keyed by field id — list them with `GET /payouts/supported_methods?supported_payout_method_id=...`. A Basis Theory token id may be passed in place of a raw value. A validation failure returns the method's full required_fields schema alongside the error. |
|
|
41
|
+
| `--is_default` | `boolean` | no | `false` | Whether to make this the account's default payout method. |
|
|
42
|
+
| `--nickname` | `string` | yes | | A label for the payout method, unique per destination. |
|
|
43
|
+
| `--supported_payout_method_id` | `string` | yes | | The supported payout method to save (a podst_ identifier from a previous listing). |
|
|
44
|
+
| `--user_id` | `string` | no | | The user to add the payout method for (a user_ identifier). Provide this or account_id. |
|
|
45
|
+
| `--idempotency-key` | `string` | no | | A unique key that makes this request safe to retry. See [Idempotent requests](https://docs.whop.com/developer/api/idempotency). |
|
|
46
|
+
|
|
47
|
+
> Confirm with the user before executing this destructive command.
|
|
48
|
+
|
|
49
|
+
---
|
|
50
|
+
|
|
51
|
+
# whop payouts delete-method
|
|
52
|
+
|
|
53
|
+
Delete Saved Payout Method
|
|
54
|
+
|
|
55
|
+
## Arguments
|
|
56
|
+
|
|
57
|
+
| Name | Type | Required | Description |
|
|
58
|
+
|------|------|----------|-------------|
|
|
59
|
+
| `payout_method_id` | `string` | yes | Payout method ID, prefixed `potk_`. |
|
|
60
|
+
|
|
61
|
+
> Confirm with the user before executing this destructive command.
|
|
62
|
+
|
|
63
|
+
---
|
|
64
|
+
|
|
65
|
+
# whop payouts list
|
|
66
|
+
|
|
67
|
+
List Payouts
|
|
68
|
+
|
|
69
|
+
## Options
|
|
70
|
+
|
|
71
|
+
| Flag | Type | Required | Default | Description |
|
|
72
|
+
|------|------|----------|---------|-------------|
|
|
73
|
+
| `--account_id` | `string` | no | | The owning account ID (a biz_ identifier). Provide this or user_id. |
|
|
74
|
+
| `--user_id` | `string` | no | | The owning user ID (a user_ identifier). Provide this or account_id. |
|
|
75
|
+
| `--currency` | `string` | no | | Optional currency code filter, for example `usd`. |
|
|
76
|
+
| `--first` | `number` | no | `20` | Number of payouts to return from the start of the window. |
|
|
77
|
+
| `--after` | `string` | no | | Cursor to fetch the page after (from page_info.end_cursor). |
|
|
78
|
+
| `--last` | `number` | no | | Number of payouts to return from the end of the window. |
|
|
79
|
+
| `--before` | `string` | no | | Cursor to fetch the page before (from page_info.start_cursor). |
|
|
80
|
+
|
|
81
|
+
---
|
|
82
|
+
|
|
83
|
+
# whop payouts methods
|
|
84
|
+
|
|
85
|
+
List Saved Payout Methods
|
|
86
|
+
|
|
87
|
+
## Options
|
|
88
|
+
|
|
89
|
+
| Flag | Type | Required | Default | Description |
|
|
90
|
+
|------|------|----------|---------|-------------|
|
|
91
|
+
| `--account_id` | `string` | no | | The owning account ID (a biz_ identifier). Provide this or user_id. |
|
|
92
|
+
| `--user_id` | `string` | no | | The owning user ID (a user_ identifier). Provide this or account_id. |
|
|
93
|
+
| `--status` | `string` | no | | Optional status filter. `created` means saved but unused, `active` means a payout through it succeeded, `broken` means the last payout failed and the method needs fixing. |
|
|
94
|
+
| `--amount` | `number` | no | | Optional withdrawal amount in whole currency units, for example `250.00`. When provided, each method includes a quote with the estimated fee, amount received, and delivery date for that amount. |
|
|
95
|
+
| `--currency` | `string` | no | `usd` | Currency code of the amount, for example `usd`. Only meaningful with amount or include_limits. |
|
|
96
|
+
| `--include_limits` | `boolean` | no | `false` | When true, the response also carries limits — the live per-speed payout caps the account's payout requests are validated against, in the requested currency. Requires the payout:withdrawal:read scope. |
|
|
97
|
+
| `--first` | `number` | no | `20` | Number of payout methods to return from the start of the window. |
|
|
98
|
+
| `--after` | `string` | no | | Cursor to fetch the page after (from page_info.end_cursor). |
|
|
99
|
+
| `--last` | `number` | no | | Number of payout methods to return from the end of the window. |
|
|
100
|
+
| `--before` | `string` | no | | Cursor to fetch the page before (from page_info.start_cursor). |
|
|
101
|
+
|
|
102
|
+
---
|
|
103
|
+
|
|
104
|
+
# whop payouts supported-methods
|
|
105
|
+
|
|
106
|
+
List Supported Payout Methods
|
|
107
|
+
|
|
108
|
+
## Options
|
|
109
|
+
|
|
110
|
+
| Flag | Type | Required | Default | Description |
|
|
111
|
+
|------|------|----------|---------|-------------|
|
|
112
|
+
| `--account_id` | `string` | no | | The owning account ID (a biz_ identifier). Provide this or user_id. |
|
|
113
|
+
| `--user_id` | `string` | no | | The owning user ID (a user_ identifier). Provide this or account_id. |
|
|
114
|
+
| `--country` | `string` | no | | ISO 3166-1 alpha-2 country code for the bank account or wallet, such as `US`. Defaults to the payout account's country. |
|
|
115
|
+
| `--amount` | `number` | no | | Optional withdrawal amount in whole currency units, for example `250.00`. When provided, each destination includes per-currency fee and delivery quotes. |
|
|
116
|
+
| `--currency` | `string` | no | `usd` | Currency code of the amount, for example `usd`. Only meaningful with amount. |
|
|
117
|
+
| `--supported_payout_method_id` | `string` | no | | Narrows the list to one supported payout method (a podst_ identifier) and includes the required_fields needed to save it as a payout method. |
|
|
118
|
+
| `--destination_currency` | `string` | no | `usd` | Currency the supported payout method would deliver payouts in. Only meaningful with supported_payout_method_id; required fields vary by destination currency. |
|
|
119
|
+
| `--first` | `number` | no | `20` | Number of supported payout methods to return from the start of the window. |
|
|
120
|
+
| `--after` | `string` | no | | Cursor to fetch the page after (from page_info.end_cursor). |
|
|
121
|
+
| `--last` | `number` | no | | Number of supported payout methods to return from the end of the window. |
|
|
122
|
+
| `--before` | `string` | no | | Cursor to fetch the page before (from page_info.start_cursor). |
|
|
123
|
+
|
|
124
|
+
---
|
|
125
|
+
|
|
126
|
+
# whop payouts update-method
|
|
127
|
+
|
|
128
|
+
Rename Saved Payout Method
|
|
129
|
+
|
|
130
|
+
## Arguments
|
|
131
|
+
|
|
132
|
+
| Name | Type | Required | Description |
|
|
133
|
+
|------|------|----------|-------------|
|
|
134
|
+
| `payout_method_id` | `string` | yes | Payout method ID, prefixed `potk_`. |
|
|
135
|
+
|
|
136
|
+
## Options
|
|
137
|
+
|
|
138
|
+
| Flag | Type | Required | Default | Description |
|
|
139
|
+
|------|------|----------|---------|-------------|
|
|
140
|
+
| `--nickname` | `string` | yes | | New label for the payout method. |
|
|
141
|
+
|
|
142
|
+
> Confirm with the user before executing this destructive command.
|
|
@@ -9,11 +9,55 @@ A Person is an identity-linked profile of a visitor or customer of an account, a
|
|
|
9
9
|
|
|
10
10
|
Use the People API to list and segment the people of an account — filter by activity, purchases, traffic source, location, or marketing touch, and sort by value — or retrieve one person by person ID, user ID, email address, or phone number.
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
# whop people get
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|---------|-------------|
|
|
16
|
-
| `whop people list` | List People |
|
|
17
|
-
| `whop people get` | Retrieve Person |
|
|
14
|
+
Retrieve Person
|
|
18
15
|
|
|
19
|
-
|
|
16
|
+
## Arguments
|
|
17
|
+
|
|
18
|
+
| Name | Type | Required | Description |
|
|
19
|
+
|------|------|----------|-------------|
|
|
20
|
+
| `person_id` | `string` | yes | The person ID, user ID, email address, or phone number to look up. |
|
|
21
|
+
|
|
22
|
+
## Options
|
|
23
|
+
|
|
24
|
+
| Flag | Type | Required | Default | Description |
|
|
25
|
+
|------|------|----------|---------|-------------|
|
|
26
|
+
| `--account_id` | `string` | no | | Account ID, prefixed `biz_`. Optional for account API keys; required for credentials that can access multiple accounts. |
|
|
27
|
+
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
# whop people list
|
|
31
|
+
|
|
32
|
+
List People
|
|
33
|
+
|
|
34
|
+
## Options
|
|
35
|
+
|
|
36
|
+
| Flag | Type | Required | Default | Description |
|
|
37
|
+
|------|------|----------|---------|-------------|
|
|
38
|
+
| `--account_id` | `string` | no | | Account ID, prefixed `biz_`. Optional for account API keys; required for credentials that can access multiple accounts. |
|
|
39
|
+
| `--query` | `string` | no | | Search people by name, email, phone, or whop user ID (case-insensitive substring match). |
|
|
40
|
+
| `--source` | `array` | no | | Only include people acquired from any of these sources — canonical paths (whop:<campaign>:<group>:<ad>, ext:<platform>:..., referrer:<domain>, direct, other), exact or with a trailing :* prefix. The same vocabulary the events / people metrics use. |
|
|
41
|
+
| `--attribution_model` | `string` | no | | Attribution model the source filter matches against (defaults to last_touch). |
|
|
42
|
+
| `--event_name` | `array` | no | | Only include people who fired any of these events, e.g. payment.completed or page.checkout.view. |
|
|
43
|
+
| `--custom_event` | `string` | no | | Only include people who fired this custom pixel event. |
|
|
44
|
+
| `--event_from` | `string` | no | | With event_to plus an event or source filter, switches to exact-population mode: person ids are resolved and paginated on the events side within this window (the same query the people metric counts), then hydrated per page. |
|
|
45
|
+
| `--event_to` | `string` | no | | The inclusive end of the event window for exact-population mode. |
|
|
46
|
+
| `--audience_id` | `string` | no | | Only include people in this audience. An audience that keeps itself up to date resolves to the People filters that define it, so this always reflects who matches now; uploaded lists and point-in-time snapshots match their recorded members. |
|
|
47
|
+
| `--user_id` | `string` | no | | Only include the person linked to this whop user ID. |
|
|
48
|
+
| `--email` | `string` | no | | Only include the person linked to this email address. |
|
|
49
|
+
| `--phone` | `string` | no | | Only include the person linked to this phone number. |
|
|
50
|
+
| `--country` | `string` | no | | Only include people whose most recent visit came from this ISO 3166-1 alpha-2 country code. |
|
|
51
|
+
| `--has_purchased` | `boolean` | no | | true for customers only, false for people who have never purchased. |
|
|
52
|
+
| `--contactable` | `boolean` | no | | true for people who have an email address or phone number — the ones an ad platform can match. |
|
|
53
|
+
| `--first_seen_within_days` | `number` | no | | Only include people first seen within this many days, as a rolling window. |
|
|
54
|
+
| `--last_seen_within_days` | `number` | no | | Only include people last seen within this many days, as a rolling window. |
|
|
55
|
+
| `--first_seen_after` | `string` | no | | Only include people first seen at or after this ISO 8601 timestamp. |
|
|
56
|
+
| `--first_seen_before` | `string` | no | | Only include people first seen before this ISO 8601 timestamp. |
|
|
57
|
+
| `--last_seen_after` | `string` | no | | Only include people last seen at or after this ISO 8601 timestamp. |
|
|
58
|
+
| `--last_seen_before` | `string` | no | | Only include people last seen before this ISO 8601 timestamp. |
|
|
59
|
+
| `--first` | `number` | no | | The number of people to return (default 100, max 100). |
|
|
60
|
+
| `--after` | `string` | no | | A cursor for fetching people after a previous page. |
|
|
61
|
+
| `--before` | `string` | no | | A cursor for fetching people before a later page. |
|
|
62
|
+
| `--order` | `string` | no | | Column to sort by. Defaults to last_seen_at. |
|
|
63
|
+
| `--direction` | `string` | no | | Sort direction. Defaults to desc. |
|
|
@@ -9,10 +9,13 @@ A Permission is one action, such as `stats:read`, paired with whether your crede
|
|
|
9
9
|
|
|
10
10
|
Use the Permissions API to check an account, product, experience, or app, narrowing to the actions you care about. It reports only your own access — to manage who else can reach an account, use the Team Members API.
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
# whop permissions check
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|---------|-------------|
|
|
16
|
-
| `whop permissions check` | Check Permissions |
|
|
14
|
+
Check Permissions
|
|
17
15
|
|
|
18
|
-
|
|
16
|
+
## Options
|
|
17
|
+
|
|
18
|
+
| Flag | Type | Required | Default | Description |
|
|
19
|
+
|------|------|----------|---------|-------------|
|
|
20
|
+
| `--resource_id` | `string` | yes | | Tag of the resource to check against: an account (`biz_`), product (`prod_`), experience (`exp_`), or app (`app_`). A resource the credential cannot see is reported as granted nothing rather than as an error. |
|
|
21
|
+
| `--actions` | `string` | no | | Comma-separated permission actions to check, for example `stats:read,payment:basic:read`. Every action is returned when omitted. |
|