-
Notifications
You must be signed in to change notification settings - Fork 0
Plan
A plan defines the pricing and billing terms for a Product — for example a recurring subscription price or a one-time charge. Customers check out against a plan, which then produces a Membership. The SDK supports full CRUD on plans.
$client->plans // Matchable\Whop\Resource\PlanResource| HTTP | POST plans |
| Does | Creates a new plan. |
| Parameters |
$data — plan attributes (e.g. product ID, price, currency, billing period). |
| Returns | array |
| HTTP | GET plans |
| Does | Lists plans. |
| Parameters |
$query — optional filters / pagination. |
| Returns | array |
| HTTP | GET plans/{id} |
| Does | Retrieves a single plan by ID. |
| Parameters |
$id — the plan ID. |
| Returns | array |
| HTTP | PATCH plans/{id} |
| Does | Updates a plan's attributes. |
| Parameters |
$id — the plan ID; $data — fields to change. |
| Returns | array |
| HTTP | DELETE plans/{id} |
| Does | Deletes a plan. |
| Parameters |
$id — the plan ID. |
| Returns | array |
$plan = $client->plans->create([
'product_id' => 'prod_...',
'amount' => 1999,
'currency' => 'usd',
'billing_period' => 'monthly',
]);
$client->plans->update($plan['id'], ['amount' => 2499]);Official Whop documentation: https://docs.whop.com
Core Company · AccountLink · File · AccessToken · AuthorizedUser · User · Member · Webhook
Payments & Billing Payment · Checkout · Plan · Product · Membership · Refund · Invoice · PromoCode · PaymentMethod · SetupIntent
Platform & Finance Transfer · FeeMarkup · Topup · Withdrawal · LedgerAccount · PayoutAccount · PayoutMethod
Disputes Dispute · DisputeAlert · ResolutionCenter
Commerce Shipment · Lead · Entry · Review · Affiliate · Stats
Experiences & Courses Experience · Course · CourseChapter · CourseLesson · CourseLessonInteraction · CourseStudent
Communication ChatChannel · DmChannel · DmMember · Message · Reaction · Forum · ForumPost · SupportChannel · Notification
Advertising AdCampaign · AdGroup · Ad
Apps & AI App · AppBuild · AiChat · CompanyTokenTransaction
Verifications Verification