-
Notifications
You must be signed in to change notification settings - Fork 0
PromoCode
A promo code is a discount code a company offers to customers — applied at checkout to reduce the price of a plan or product on Whop.
$client->promoCodes // Matchable\Whop\Resource\PromoCodeResource| HTTP | POST promo-codes |
| Does | Creates a new promo code. |
| Parameters |
$data — promo code attributes (e.g. code, discount amount/percentage, applicable plans, usage limits). |
| Returns | array |
| HTTP | GET promo-codes |
| Does | Lists promo codes. |
| Parameters |
$query — optional filters / pagination. |
| Returns | array |
| HTTP | GET promo-codes/{id} |
| Does | Retrieves a single promo code by ID. |
| Parameters |
$id — the promo code ID. |
| Returns | array |
| HTTP | DELETE promo-codes/{id} |
| Does | Deletes a promo code. |
| Parameters |
$id — the promo code ID. |
| Returns | array |
$promo = $client->promoCodes->create([
'code' => 'LAUNCH20',
'percent_off' => 20,
]);
$client->promoCodes->delete($promo['id']);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