@whop/cli 0.14.0 → 0.14.2
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 +2 -2
- package/dist/index.js +25130 -10229
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- 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 +112 -12
- package/skills/whop-app-builds/SKILL.md +68 -8
- package/skills/whop-apps/SKILL.md +135 -12
- package/skills/whop-audiences/SKILL.md +71 -8
- package/skills/whop-bounties/SKILL.md +104 -9
- package/skills/whop-bounty-submissions/SKILL.md +82 -9
- package/skills/whop-cards/SKILL.md +120 -8
- 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 +329 -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-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-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 +271 -18
- package/skills/whop-verifications/SKILL.md +51 -9
|
@@ -9,11 +9,43 @@ A Ledger Activity row is a single financial event on an account's ledger — a p
|
|
|
9
9
|
|
|
10
10
|
Use Ledger Activity to build a statement or transaction feed for an account or user. Reconcile against your own records with `amount` (signed, in the currency's smallest precision units) and `posted_at`, and use `available_at` to know when inflows became withdrawable.
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
# whop ledgers list
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|---------|-------------|
|
|
16
|
-
| `whop ledgers list` | List Financial Activity |
|
|
17
|
-
| `whop ledgers report` | Get Financial Report |
|
|
14
|
+
List Financial Activity
|
|
18
15
|
|
|
19
|
-
|
|
16
|
+
## Options
|
|
17
|
+
|
|
18
|
+
| Flag | Type | Required | Default | Description |
|
|
19
|
+
|------|------|----------|---------|-------------|
|
|
20
|
+
| `--account_id` | `string` | no | | The owning account ID (a biz_ identifier). Provide this or user_id. |
|
|
21
|
+
| `--user_id` | `string` | no | | The owning user ID (a user_ identifier). Provide this or account_id. |
|
|
22
|
+
| `--include_owned_accounts` | `boolean` | no | | When true, aggregates the authenticated user's personal ledger with the businesses they own (owner role with balance read) into one feed. Requires user_id to be the authenticated user; cannot be combined with account_id or the settlement-date filters. Each returned row includes the owning `account`. |
|
|
23
|
+
| `--line_types` | `array` | no | | Optional ledger line categories to include. Some categories (for example `onchain_deposit`, which covers inbound crypto deposits such as MoonPay onramps) are only returned when explicitly requested here. |
|
|
24
|
+
| `--currency` | `string` | no | | Optional currency code filter, for example `usd`. |
|
|
25
|
+
| `--posted_after` | `string` | no | | Only include rows posted after this ISO 8601 timestamp. |
|
|
26
|
+
| `--posted_before` | `string` | no | | Only include rows posted before this ISO 8601 timestamp. |
|
|
27
|
+
| `--available_after` | `string` | no | | Only include rows whose funds became withdrawable on or after this `YYYY-MM-DD` settlement date (UTC), distinct from posted_at. Requires currency. |
|
|
28
|
+
| `--available_before` | `string` | no | | Only include rows whose funds became withdrawable on or before this `YYYY-MM-DD` settlement date (UTC). Set equal to available_after for a single day. Requires currency. |
|
|
29
|
+
| `--limit` | `number` | no | `20` | Maximum number of rows to return. |
|
|
30
|
+
| `--cursor` | `string` | no | | Cursor returned by the previous page. |
|
|
31
|
+
|
|
32
|
+
---
|
|
33
|
+
|
|
34
|
+
# whop ledgers report
|
|
35
|
+
|
|
36
|
+
Get Financial Report
|
|
37
|
+
|
|
38
|
+
## Options
|
|
39
|
+
|
|
40
|
+
| Flag | Type | Required | Default | Description |
|
|
41
|
+
|------|------|----------|---------|-------------|
|
|
42
|
+
| `--account_id` | `string` | no | | The owning account ID (a biz_ identifier), or `global` for a platform-wide report across all ledger accounts (requires internal admin access). |
|
|
43
|
+
| `--report_type` | `string` | yes | | The type of financial report to generate. |
|
|
44
|
+
| `--currency` | `string` | no | | Filter rows to this currency, for example `usd`. Defaults to `usd` unless `in_currency` is provided. |
|
|
45
|
+
| `--in_currency` | `string` | no | | Aggregate all activity into this display currency via FX conversion. |
|
|
46
|
+
| `--from_date` | `string` | no | | Start of the report window as an ISO 8601 timestamp (UTC). Required for platform-wide (global) reports. |
|
|
47
|
+
| `--to_date` | `string` | no | | End of the report window as an ISO 8601 timestamp (UTC). Required for platform-wide (global) reports. |
|
|
48
|
+
| `--group_by` | `string` | no | | Grouping granularity for report rows. |
|
|
49
|
+
| `--timezone` | `string` | no | | IANA timezone (for example `America/New_York`) used to bucket report periods and to interpret calendar-day boundaries for balance snapshots. Defaults to UTC. from_date/to_date remain exact instants regardless of this setting. |
|
|
50
|
+
| `--cumulative` | `boolean` | no | `false` | Platform-wide (global) reports only: when true, return cumulative balances as of to_date (all history, no lower bound) instead of activity within the period. |
|
|
51
|
+
| `--scope_account_id` | `string` | no | | Platform-wide (global) reports only: narrow the report to ledger lines on the ledger account owned by this account ID (a biz_ identifier). Ignored unless account_id is `global`. |
|
|
@@ -9,15 +9,36 @@ A Media Asset is an AI-generated image or video created from a prompt and billed
|
|
|
9
9
|
|
|
10
10
|
Use the Media API to start a generation job and retrieve the asset while it processes or after it is ready.
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
# whop media generate
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|---------|-------------|
|
|
16
|
-
| `whop media generate` | Generate Media Asset |
|
|
17
|
-
| `whop media get` | Retrieve Media Asset |
|
|
14
|
+
Generate Media Asset
|
|
18
15
|
|
|
19
|
-
|
|
16
|
+
## Options
|
|
17
|
+
|
|
18
|
+
| Flag | Type | Required | Default | Description |
|
|
19
|
+
|------|------|----------|---------|-------------|
|
|
20
|
+
| `--account_id` | `string` | no | | Account ID, prefixed `biz_`. Defaults to the account the API key belongs to. |
|
|
21
|
+
| `--duration_seconds` | `unknown` | no | | Video length in seconds. Video only; defaults to 5. |
|
|
22
|
+
| `--prompt` | `string` | yes | | What to generate. Up to 2,000 characters. |
|
|
23
|
+
| `--reference_media` | `array` | no | | Optional reference image file IDs (`file_` prefixed), up to 4. For video, a single reference seeds the opening frame; multiple references guide subject and style instead. |
|
|
24
|
+
| `--resolution` | `string` | no | | Video resolution. Video only; defaults to `1080p`. `1080p` is not supported by Seedance 2.0 Fast or Mini; `4k` is only supported by Seedance 2.0. |
|
|
25
|
+
| `--type` | `string` | yes | | The kind of media to generate. |
|
|
26
|
+
| `--idempotency-key` | `string` | no | | A unique key that makes this request safe to retry. See [Idempotent requests](https://docs.whop.com/developer/api/idempotency). |
|
|
27
|
+
|
|
28
|
+
> Confirm with the user before executing this destructive command.
|
|
29
|
+
|
|
30
|
+
---
|
|
31
|
+
|
|
32
|
+
# whop media get
|
|
33
|
+
|
|
34
|
+
Retrieve Media Asset
|
|
35
|
+
|
|
36
|
+
## Arguments
|
|
37
|
+
|
|
38
|
+
| Name | Type | Required | Description |
|
|
39
|
+
|------|------|----------|-------------|
|
|
40
|
+
| `id` | `string` | yes | Media asset ID, prefixed `media_`. |
|
|
20
41
|
|
|
21
42
|
## Steps that finish in the browser
|
|
22
43
|
|
|
23
|
-
Some commands respond with a URL the user must open in a browser to finish the flow (`authorize_url`, `session_url`, `deposit_url`) — the CLI cannot complete that step itself. When a response contains one of these fields, or the CLI prints "Action required: open this link in the user's browser", open that link in the user's browser for them, tell them what to complete there, then re-run the matching `get`/`list` command to confirm the step finished.
|
|
44
|
+
Some commands respond with a URL the user must open in a browser to finish the flow (`authorize_url`, `session_url`, `deposit_url`, `checkout_url`) — the CLI cannot complete that step itself. When a response contains one of these fields, or the CLI prints "Action required: open this link in the user's browser", open that link in the user's browser for them, tell them what to complete there, then re-run the matching `get`/`list` command to confirm the step finished.
|
|
@@ -9,11 +9,56 @@ A Member is one buyer's relationship with an account — one record per customer
|
|
|
9
9
|
|
|
10
10
|
Use the Members API to list an account's members with filtering by access level, status, join date, and name or username search, and to retrieve a single member. Member rows are created and maintained by the membership lifecycle; to grant or revoke access, work with memberships instead.
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
# whop members get
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|---------|-------------|
|
|
16
|
-
| `whop members list` | List Members |
|
|
17
|
-
| `whop members get` | Retrieve Member |
|
|
14
|
+
Retrieve Member
|
|
18
15
|
|
|
19
|
-
|
|
16
|
+
## Arguments
|
|
17
|
+
|
|
18
|
+
| Name | Type | Required | Description |
|
|
19
|
+
|------|------|----------|-------------|
|
|
20
|
+
| `id` | `string` | yes | Member ID (`mber_` tag). |
|
|
21
|
+
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
# whop members list
|
|
25
|
+
|
|
26
|
+
List Members
|
|
27
|
+
|
|
28
|
+
## Options
|
|
29
|
+
|
|
30
|
+
| Flag | Type | Required | Default | Description |
|
|
31
|
+
|------|------|----------|---------|-------------|
|
|
32
|
+
| `--account_id` | `string` | no | | The account to list members for (`biz_` tag). Defaults to the account the credential acts as. |
|
|
33
|
+
| `--access_level` | `string` | no | | Filter by what the member can reach on the account. |
|
|
34
|
+
| `--status` | `string` | no | | Filter by whether the member is still part of the account. |
|
|
35
|
+
| `--query` | `string` | no | | Search members by name or username. An exact email address also matches when the credential holds the member:email:read scope. |
|
|
36
|
+
| `--created_after` | `string` | no | | Only members who joined after this ISO 8601 timestamp. |
|
|
37
|
+
| `--created_before` | `string` | no | | Only members who joined before this ISO 8601 timestamp. |
|
|
38
|
+
| `--order` | `string` | no | | Sort field. |
|
|
39
|
+
| `--direction` | `string` | no | | Sort direction. |
|
|
40
|
+
| `--first` | `number` | no | `20` | Number of members to return from the start of the window. |
|
|
41
|
+
| `--after` | `string` | no | | Cursor to paginate forwards from. |
|
|
42
|
+
| `--last` | `number` | no | | Number of members to return from the end of the window. |
|
|
43
|
+
| `--before` | `string` | no | | Cursor to paginate backwards from. |
|
|
44
|
+
|
|
45
|
+
---
|
|
46
|
+
|
|
47
|
+
# whop members logs
|
|
48
|
+
|
|
49
|
+
List Member Logs
|
|
50
|
+
|
|
51
|
+
## Arguments
|
|
52
|
+
|
|
53
|
+
| Name | Type | Required | Description |
|
|
54
|
+
|------|------|----------|-------------|
|
|
55
|
+
| `id` | `string` | yes | Member ID (`mber_` tag). |
|
|
56
|
+
|
|
57
|
+
## Options
|
|
58
|
+
|
|
59
|
+
| Flag | Type | Required | Default | Description |
|
|
60
|
+
|------|------|----------|---------|-------------|
|
|
61
|
+
| `--first` | `number` | no | `20` | Number of log entries to return from the start of the window. |
|
|
62
|
+
| `--after` | `string` | no | | Cursor to paginate forwards from. |
|
|
63
|
+
| `--last` | `number` | no | | Number of log entries to return from the end of the window. |
|
|
64
|
+
| `--before` | `string` | no | | Cursor to paginate backwards from. |
|
|
@@ -9,16 +9,140 @@ A Membership is a customer's purchase of a plan: the subscription or one-time gr
|
|
|
9
9
|
|
|
10
10
|
Use the Memberships API to list an account's memberships or the caller's own, retrieve one by ID or license key, 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
11
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
|
19
|
-
|
|
20
|
-
| `
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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 list
|
|
67
|
+
|
|
68
|
+
List Memberships
|
|
69
|
+
|
|
70
|
+
## Options
|
|
71
|
+
|
|
72
|
+
| Flag | Type | Required | Default | Description |
|
|
73
|
+
|------|------|----------|---------|-------------|
|
|
74
|
+
| `--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. |
|
|
75
|
+
| `--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. |
|
|
76
|
+
| `--status` | `string` | no | | Filter by billing state. `canceling` matches active memberships set to cancel at period end; `paused` matches memberships with payment collection paused. |
|
|
77
|
+
| `--product_id` | `string` | no | | Filter to memberships of this product (`prod_` tag). Repeat as product_ids[] for several. |
|
|
78
|
+
| `--plan_id` | `string` | no | | Filter to memberships of this plan (`plan_` tag). Repeat as plan_ids[] for several. |
|
|
79
|
+
| `--created_after` | `string` | no | | Only memberships created after this ISO 8601 timestamp. |
|
|
80
|
+
| `--created_before` | `string` | no | | Only memberships created before this ISO 8601 timestamp. |
|
|
81
|
+
| `--order` | `string` | no | | Sort field. |
|
|
82
|
+
| `--direction` | `string` | no | | Sort direction. |
|
|
83
|
+
| `--first` | `number` | no | `20` | Number of memberships to return from the start of the window. |
|
|
84
|
+
| `--after` | `string` | no | | Cursor to paginate forwards from. |
|
|
85
|
+
| `--last` | `number` | no | | Number of memberships to return from the end of the window. |
|
|
86
|
+
| `--before` | `string` | no | | Cursor to paginate backwards from. |
|
|
87
|
+
|
|
88
|
+
---
|
|
89
|
+
|
|
90
|
+
# whop memberships pause
|
|
91
|
+
|
|
92
|
+
Pause Membership
|
|
93
|
+
|
|
94
|
+
## Arguments
|
|
95
|
+
|
|
96
|
+
| Name | Type | Required | Description |
|
|
97
|
+
|------|------|----------|-------------|
|
|
98
|
+
| `id` | `string` | yes | Membership ID (`mem_` tag). |
|
|
99
|
+
|
|
100
|
+
## Options
|
|
101
|
+
|
|
102
|
+
| Flag | Type | Required | Default | Description |
|
|
103
|
+
|------|------|----------|---------|-------------|
|
|
104
|
+
| `--until` | `string` | no | | ISO 8601 time to automatically resume payment collection. Must be in the future; only supported for memberships billed by Whop. |
|
|
105
|
+
| `--idempotency-key` | `string` | no | | A unique key that makes this request safe to retry. See [Idempotent requests](https://docs.whop.com/developer/api/idempotency). |
|
|
106
|
+
|
|
107
|
+
> Confirm with the user before executing this destructive command.
|
|
108
|
+
|
|
109
|
+
---
|
|
110
|
+
|
|
111
|
+
# whop memberships resume
|
|
112
|
+
|
|
113
|
+
Resume Membership
|
|
114
|
+
|
|
115
|
+
## Arguments
|
|
116
|
+
|
|
117
|
+
| Name | Type | Required | Description |
|
|
118
|
+
|------|------|----------|-------------|
|
|
119
|
+
| `id` | `string` | yes | Membership ID (`mem_` tag). |
|
|
120
|
+
|
|
121
|
+
## Options
|
|
122
|
+
|
|
123
|
+
| Flag | Type | Required | Default | Description |
|
|
124
|
+
|------|------|----------|---------|-------------|
|
|
125
|
+
| `--idempotency-key` | `string` | no | | A unique key that makes this request safe to retry. See [Idempotent requests](https://docs.whop.com/developer/api/idempotency). |
|
|
126
|
+
|
|
127
|
+
> Confirm with the user before executing this destructive command.
|
|
128
|
+
|
|
129
|
+
---
|
|
130
|
+
|
|
131
|
+
# whop memberships update
|
|
132
|
+
|
|
133
|
+
Update Membership
|
|
134
|
+
|
|
135
|
+
## Arguments
|
|
136
|
+
|
|
137
|
+
| Name | Type | Required | Description |
|
|
138
|
+
|------|------|----------|-------------|
|
|
139
|
+
| `id` | `string` | yes | Membership ID (`mem_` tag), or a software license key. |
|
|
140
|
+
|
|
141
|
+
## Options
|
|
142
|
+
|
|
143
|
+
| Flag | Type | Required | Default | Description |
|
|
144
|
+
|------|------|----------|---------|-------------|
|
|
145
|
+
| `--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. |
|
|
146
|
+
| `--metadata` | `object` | no | | Key-value pairs to merge into the membership's metadata. Pass an empty object to clear it. |
|
|
147
|
+
|
|
148
|
+
> Confirm with the user before executing this destructive command.
|
|
@@ -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). |
|