API Reference

Example JSON Response for the membership.went_invalid response:

{ "action": "membership.went_invalid", "data": { "id": "mem_bCoYnD7M6aWpdl", "product": { "id": "pass_lYRsRviO53mLP", "name": "Plug Pass - 1x", "visibility": "visible", "created_at": 1655437472, "experiences": [ "exp_KAsUWQL1uMBfUO" ], "plans": [ "plan_fgBHGaMIfBaFP" ] }, "user": { "id": "user_XZtqqm0tAgi74", "username": "muunin", "email": "email96744@gmail.com", "profile_pic_url": "https://cdn.discordapp.com/avatars/125813610927620096/a_4ec86e3ce909334241aa896e93234731", "social_accounts": [ { "service": "discord", "username": "Muunin#9366", "id": "125813610927620096" }, { "service": "twitter", "username": "username63162", "id": "000000063162" } ] }, "plan": { "id": "plan_fgBHGaMIfBaFP", "plan_type": "one_time", "release_method": "buy_now", "visibility": "visible", "billing_period": null, "internal_notes": "My plan #53", "metadata": {}, "direct_link": "https://whop.com/checkout/plan_fgBHGaMIfBaFP?d2c=true", "renewal_price": "0.0", "initial_price": "0.0", "base_currency": "usd", "requirements": { "ownership_of_smart_contracts": { "0x1bf47e4f2e9078c30914e33134b21c952b55c64b": { "standard": "erc1155", "required_metadata": {}, "maximum_holding_amount": null, "minimum_holding_amount": 1 } } }, "release_method_settings": { "expires_at": null, "max_entries": null, "nft_weighted_entries": false }, "accepted_payment_methods": [ "free" ], "stock": 20, "unlimited_stock": true, "created_at": 1655437472, "card_payments": true }, "email": "email96744@gmail.com", "status": "completed", "valid": true, "cancel_at_period_end": false, "payment_processor": "free", "license_key": "KLINE-F8SDL-FK39C-SDL39-SDFLKJ", "metadata": {}, "quantity": 1, "wallet_address": null, "custom_fields_responses": {}, "discord": { "id": "125813610927620096", "username": "Muunin#9366" }, "nft_tokens": [], "expires_at": null, "renewal_period_start": null, "renewal_period_end": null, "created_at": 1655995817, "manage_url": "https://whop.com/hub?page=products&company=plug-pass&tab=Manage", "access_pass": { "id": "pass_lYRsRviO53mLP", "name": "Plug Pass - 1x", "visibility": "visible", "created_at": 1655437472 } } }