from whop_sdk.types import (
AccessLevel,
AccessPassType,
App,
AppBuild,
AppBuildPlatforms,
AppBuildStatuses,
AppStatuses,
AppViewType,
AuthorizedUserRoles,
ChatChannel,
CheckoutConfiguration,
CollectionMethod,
Company,
CourseLessonInteraction,
CourseLessonInteractionListItem,
Currency,
CustomCta,
Direction,
DmsPostTypes,
EmailNotificationPreferences,
Entry,
EntryStatus,
Experience,
Forum,
ForumPost,
FriendlyReceiptStatus,
GlobalAffiliateStatus,
Invoice,
InvoiceListItem,
InvoiceStatus,
MemberMostRecentActions,
MemberStatuses,
Membership,
MembershipStatus,
Message,
PageInfo,
Payment,
Plan,
PlanType,
Product,
ProductListItem,
PromoType,
Reaction,
ReceiptStatus,
ReleaseMethod,
Shipment,
ShipmentCarrier,
ShipmentStatus,
ShipmentSubstatus,
SupportChannel,
TaxType,
Transfer,
Visibility,
VisibilityFilter,
WhoCanCommentTypes,
WhoCanPost,
WhoCanPostTypes,
WhoCanReact,
)Types:
from whop_sdk.types import AppType, AppListResponseMethods:
client.apps.create(**params) -> Appclient.apps.retrieve(id) -> Appclient.apps.update(id, **params) -> Appclient.apps.list(**params) -> SyncCursorPage[AppListResponse]
Types:
from whop_sdk.types import InvoiceVoidResponseMethods:
client.invoices.create(**params) -> Invoiceclient.invoices.retrieve(id) -> Invoiceclient.invoices.list(**params) -> SyncCursorPage[InvoiceListItem]client.invoices.void(id) -> InvoiceVoidResponse
Methods:
client.course_lesson_interactions.retrieve(id) -> CourseLessonInteractionclient.course_lesson_interactions.list(**params) -> SyncCursorPage[CourseLessonInteractionListItem]
Types:
from whop_sdk.types import ProductDeleteResponseMethods:
client.products.create(**params) -> Productclient.products.retrieve(id) -> Productclient.products.update(id, **params) -> Productclient.products.list(**params) -> SyncCursorPage[ProductListItem]client.products.delete(id) -> ProductDeleteResponse
Types:
from whop_sdk.types import CompanyListResponseMethods:
client.companies.create(**params) -> Companyclient.companies.retrieve(id) -> Companyclient.companies.update(id, **params) -> Companyclient.companies.list(**params) -> SyncCursorPage[CompanyListResponse]
Types:
from whop_sdk.types import (
APIVersion,
Webhook,
WebhookEvent,
WebhookCreateResponse,
WebhookListResponse,
WebhookDeleteResponse,
InvoiceCreatedWebhookEvent,
InvoicePaidWebhookEvent,
InvoicePastDueWebhookEvent,
InvoiceVoidedWebhookEvent,
MembershipActivatedWebhookEvent,
MembershipDeactivatedWebhookEvent,
EntryCreatedWebhookEvent,
EntryApprovedWebhookEvent,
EntryDeniedWebhookEvent,
EntryDeletedWebhookEvent,
SetupIntentRequiresActionWebhookEvent,
SetupIntentSucceededWebhookEvent,
SetupIntentCanceledWebhookEvent,
WithdrawalCreatedWebhookEvent,
WithdrawalUpdatedWebhookEvent,
CourseLessonInteractionCompletedWebhookEvent,
PayoutMethodCreatedWebhookEvent,
VerificationSucceededWebhookEvent,
PaymentCreatedWebhookEvent,
PaymentSucceededWebhookEvent,
PaymentFailedWebhookEvent,
PaymentPendingWebhookEvent,
DisputeCreatedWebhookEvent,
DisputeUpdatedWebhookEvent,
RefundCreatedWebhookEvent,
RefundUpdatedWebhookEvent,
DisputeAlertCreatedWebhookEvent,
MembershipCancelAtPeriodEndChangedWebhookEvent,
UnwrapWebhookEvent,
)Methods:
client.webhooks.create(**params) -> WebhookCreateResponseclient.webhooks.retrieve(id) -> Webhookclient.webhooks.update(id, **params) -> Webhookclient.webhooks.list(**params) -> SyncCursorPage[WebhookListResponse]client.webhooks.delete(id) -> WebhookDeleteResponse
Types:
from whop_sdk.types import PlanListResponse, PlanDeleteResponseMethods:
client.plans.create(**params) -> Planclient.plans.retrieve(id) -> Planclient.plans.update(id, **params) -> Planclient.plans.list(**params) -> SyncCursorPage[PlanListResponse]client.plans.delete(id) -> PlanDeleteResponse
Types:
from whop_sdk.types import EntryListResponse, EntryApproveResponseMethods:
client.entries.retrieve(id) -> Entryclient.entries.list(**params) -> SyncCursorPage[EntryListResponse]client.entries.approve(id) -> EntryApproveResponseclient.entries.deny(id) -> Entry
Types:
from whop_sdk.types import ForumPostVisibilityType, ForumPostListResponseMethods:
client.forum_posts.create(**params) -> ForumPostclient.forum_posts.retrieve(id) -> ForumPostclient.forum_posts.update(id, **params) -> ForumPostclient.forum_posts.list(**params) -> SyncCursorPage[ForumPostListResponse]
Types:
from whop_sdk.types import TransferListResponseMethods:
client.transfers.create(**params) -> Transferclient.transfers.retrieve(id) -> Transferclient.transfers.list(**params) -> SyncCursorPage[TransferListResponse]
Types:
from whop_sdk.types import LedgerAccountRetrieveResponseMethods:
client.ledger_accounts.retrieve(id) -> LedgerAccountRetrieveResponse
Types:
from whop_sdk.types import CancelOptions, MembershipListResponseMethods:
client.memberships.retrieve(id) -> Membershipclient.memberships.update(id, **params) -> Membershipclient.memberships.list(**params) -> SyncCursorPage[MembershipListResponse]client.memberships.cancel(id, **params) -> Membershipclient.memberships.pause(id, **params) -> Membershipclient.memberships.resume(id) -> Membershipclient.memberships.uncancel(id) -> Membership
Types:
from whop_sdk.types import AuthorizedUserRetrieveResponse, AuthorizedUserListResponseMethods:
client.authorized_users.retrieve(id) -> AuthorizedUserRetrieveResponseclient.authorized_users.list(**params) -> SyncCursorPage[AuthorizedUserListResponse]
Types:
from whop_sdk.types import AppBuildListResponseMethods:
client.app_builds.create(**params) -> AppBuildclient.app_builds.retrieve(id) -> AppBuildclient.app_builds.list(**params) -> SyncCursorPage[AppBuildListResponse]client.app_builds.promote(id) -> AppBuild
Types:
from whop_sdk.types import ShipmentListResponseMethods:
client.shipments.create(**params) -> Shipmentclient.shipments.retrieve(id) -> Shipmentclient.shipments.list(**params) -> SyncCursorPage[ShipmentListResponse]
Types:
from whop_sdk.types import CheckoutModes, CheckoutConfigurationListResponseMethods:
client.checkout_configurations.create(**params) -> CheckoutConfigurationclient.checkout_configurations.retrieve(id) -> CheckoutConfigurationclient.checkout_configurations.list(**params) -> SyncCursorPage[CheckoutConfigurationListResponse]
Types:
from whop_sdk.types import MessageListResponse, MessageDeleteResponseMethods:
client.messages.create(**params) -> Messageclient.messages.retrieve(id) -> Messageclient.messages.update(id, **params) -> Messageclient.messages.list(**params) -> SyncCursorPage[MessageListResponse]client.messages.delete(id) -> MessageDeleteResponse
Types:
from whop_sdk.types import ChatChannelListResponseMethods:
client.chat_channels.retrieve(id) -> ChatChannelclient.chat_channels.update(id, **params) -> ChatChannelclient.chat_channels.list(**params) -> SyncCursorPage[ChatChannelListResponse]
Types:
from whop_sdk.types import User, UserCheckAccessResponseMethods:
client.users.retrieve(id) -> Userclient.users.check_access(resource_id, *, id) -> UserCheckAccessResponseclient.users.update_profile(**params) -> User
Types:
from whop_sdk.types import (
BillingReasons,
CardBrands,
PaymentMethodTypes,
PaymentListResponse,
PaymentListFeesResponse,
)Methods:
client.payments.create(**params) -> Paymentclient.payments.retrieve(id) -> Paymentclient.payments.list(**params) -> SyncCursorPage[PaymentListResponse]client.payments.list_fees(id, **params) -> SyncCursorPage[PaymentListFeesResponse]client.payments.refund(id, **params) -> Paymentclient.payments.retry(id) -> Paymentclient.payments.void(id) -> Payment
Types:
from whop_sdk.types import SupportChannelListResponseMethods:
client.support_channels.create(**params) -> SupportChannelclient.support_channels.retrieve(id) -> SupportChannelclient.support_channels.list(**params) -> SyncCursorPage[SupportChannelListResponse]
Types:
from whop_sdk.types import ExperienceListResponse, ExperienceDeleteResponseMethods:
client.experiences.create(**params) -> Experienceclient.experiences.retrieve(id) -> Experienceclient.experiences.update(id, **params) -> Experienceclient.experiences.list(**params) -> SyncCursorPage[ExperienceListResponse]client.experiences.delete(id) -> ExperienceDeleteResponseclient.experiences.attach(id, **params) -> Experienceclient.experiences.detach(id, **params) -> Experienceclient.experiences.duplicate(id, **params) -> Experience
Types:
from whop_sdk.types import ReactionListResponse, ReactionDeleteResponseMethods:
client.reactions.create(**params) -> Reactionclient.reactions.retrieve(id) -> Reactionclient.reactions.list(**params) -> SyncCursorPage[ReactionListResponse]client.reactions.delete(id, **params) -> ReactionDeleteResponse
Types:
from whop_sdk.types import MemberRetrieveResponse, MemberListResponseMethods:
client.members.retrieve(id) -> MemberRetrieveResponseclient.members.list(**params) -> SyncCursorPage[MemberListResponse]
Types:
from whop_sdk.types import ForumListResponseMethods:
client.forums.retrieve(id) -> Forumclient.forums.update(id, **params) -> Forumclient.forums.list(**params) -> SyncCursorPage[ForumListResponse]
Types:
from whop_sdk.types import (
PromoCode,
PromoCodeStatus,
PromoDuration,
PromoCodeListResponse,
PromoCodeDeleteResponse,
)Methods:
client.promo_codes.create(**params) -> PromoCodeclient.promo_codes.retrieve(id) -> PromoCodeclient.promo_codes.list(**params) -> SyncCursorPage[PromoCodeListResponse]client.promo_codes.delete(id) -> PromoCodeDeleteResponse
Types:
from whop_sdk.types import (
Course,
CourseVisibilities,
Languages,
CourseListResponse,
CourseDeleteResponse,
)Methods:
client.courses.create(**params) -> Courseclient.courses.retrieve(id) -> Courseclient.courses.update(id, **params) -> Courseclient.courses.list(**params) -> SyncCursorPage[CourseListResponse]client.courses.delete(id) -> CourseDeleteResponse
Types:
from whop_sdk.types import CourseChapter, CourseChapterListResponse, CourseChapterDeleteResponseMethods:
client.course_chapters.create(**params) -> CourseChapterclient.course_chapters.retrieve(id) -> CourseChapterclient.course_chapters.update(id, **params) -> CourseChapterclient.course_chapters.list(**params) -> SyncCursorPage[CourseChapterListResponse]client.course_chapters.delete(id) -> CourseChapterDeleteResponse
Types:
from whop_sdk.types import (
AssessmentQuestionTypes,
EmbedType,
Lesson,
LessonTypes,
LessonVisibilities,
CourseLessonListResponse,
CourseLessonDeleteResponse,
CourseLessonMarkAsCompletedResponse,
CourseLessonStartResponse,
CourseLessonSubmitAssessmentResponse,
)Methods:
client.course_lessons.create(**params) -> Lessonclient.course_lessons.retrieve(id) -> Lessonclient.course_lessons.update(id, **params) -> Lessonclient.course_lessons.list(**params) -> SyncCursorPage[CourseLessonListResponse]client.course_lessons.delete(id) -> CourseLessonDeleteResponseclient.course_lessons.mark_as_completed(lesson_id) -> CourseLessonMarkAsCompletedResponseclient.course_lessons.start(lesson_id) -> CourseLessonStartResponseclient.course_lessons.submit_assessment(lesson_id, **params) -> CourseLessonSubmitAssessmentResponse
Types:
from whop_sdk.types import ReviewStatus, ReviewRetrieveResponse, ReviewListResponseMethods:
client.reviews.retrieve(id) -> ReviewRetrieveResponseclient.reviews.list(**params) -> SyncCursorPage[ReviewListResponse]
Types:
from whop_sdk.types import CourseStudentRetrieveResponse, CourseStudentListResponseMethods:
client.course_students.retrieve(id) -> CourseStudentRetrieveResponseclient.course_students.list(**params) -> SyncCursorPage[CourseStudentListResponse]
Types:
from whop_sdk.types import AccessTokenCreateResponseMethods:
client.access_tokens.create(**params) -> AccessTokenCreateResponse
Types:
from whop_sdk.types import NotificationCreateResponseMethods:
client.notifications.create(**params) -> NotificationCreateResponse
Types:
from whop_sdk.types import Dispute, DisputeStatuses, DisputeListResponseMethods:
client.disputes.retrieve(id) -> Disputeclient.disputes.list(**params) -> SyncCursorPage[DisputeListResponse]client.disputes.submit_evidence(id) -> Disputeclient.disputes.update_evidence(id, **params) -> Dispute
Types:
from whop_sdk.types import (
PaymentProvider,
RefundReferenceStatus,
RefundReferenceType,
RefundStatus,
RefundRetrieveResponse,
RefundListResponse,
)Methods:
client.refunds.retrieve(id) -> RefundRetrieveResponseclient.refunds.list(**params) -> SyncCursorPage[RefundListResponse]
Types:
from whop_sdk.types import (
Withdrawal,
WithdrawalFeeTypes,
WithdrawalSpeeds,
WithdrawalStatus,
WithdrawalListResponse,
)Methods:
client.withdrawals.create(**params) -> Withdrawalclient.withdrawals.retrieve(id) -> Withdrawalclient.withdrawals.list(**params) -> SyncCursorPage[WithdrawalListResponse]
Types:
from whop_sdk.types import AccountLinkCreateResponseMethods:
client.account_links.create(**params) -> AccountLinkCreateResponse
Types:
from whop_sdk.types import SetupIntent, SetupIntentStatus, SetupIntentListResponseMethods:
client.setup_intents.retrieve(id) -> SetupIntentclient.setup_intents.list(**params) -> SyncCursorPage[SetupIntentListResponse]
Types:
from whop_sdk.types import PaymentMethodRetrieveResponse, PaymentMethodListResponseMethods:
client.payment_methods.retrieve(id, **params) -> PaymentMethodRetrieveResponseclient.payment_methods.list(**params) -> SyncCursorPage[PaymentMethodListResponse]
Types:
from whop_sdk.types import (
FeeMarkupType,
FeeMarkupCreateResponse,
FeeMarkupListResponse,
FeeMarkupDeleteResponse,
)Methods:
client.fee_markups.create(**params) -> FeeMarkupCreateResponseclient.fee_markups.list(**params) -> SyncCursorPage[FeeMarkupListResponse]client.fee_markups.delete(id) -> FeeMarkupDeleteResponse
Types:
from whop_sdk.types import (
PayoutDestinationCategory,
PayoutMethodRetrieveResponse,
PayoutMethodListResponse,
)Methods:
client.payout_methods.retrieve(id) -> PayoutMethodRetrieveResponseclient.payout_methods.list(**params) -> SyncCursorPage[PayoutMethodListResponse]
Types:
from whop_sdk.types import VerificationErrorCode, VerificationStatus, VerificationRetrieveResponseMethods:
client.verifications.retrieve(id) -> VerificationRetrieveResponse
Types:
from whop_sdk.types import Lead, LeadListResponseMethods:
client.leads.create(**params) -> Leadclient.leads.retrieve(id) -> Leadclient.leads.update(id, **params) -> Leadclient.leads.list(**params) -> SyncCursorPage[LeadListResponse]
Types:
from whop_sdk.types import TopupCreateResponseMethods:
client.topups.create(**params) -> TopupCreateResponse
Types:
from whop_sdk.types import UploadStatus, FileCreateResponse, FileRetrieveResponseMethods:
client.files.create(**params) -> FileCreateResponseclient.files.retrieve(id) -> FileRetrieveResponse
Types:
from whop_sdk.types import (
CompanyTokenTransaction,
CompanyTokenTransactionType,
CompanyTokenTransactionListResponse,
)Methods:
client.company_token_transactions.create(**params) -> CompanyTokenTransactionclient.company_token_transactions.retrieve(id) -> CompanyTokenTransactionclient.company_token_transactions.list(**params) -> SyncCursorPage[CompanyTokenTransactionListResponse]
Types:
from whop_sdk.types import (
DmFeedMemberNotificationPreferences,
DmFeedMemberStatuses,
DmMember,
DmMemberListResponse,
DmMemberDeleteResponse,
)Methods:
client.dm_members.create(**params) -> DmMemberclient.dm_members.retrieve(id) -> DmMemberclient.dm_members.update(id, **params) -> DmMemberclient.dm_members.list(**params) -> SyncCursorPage[DmMemberListResponse]client.dm_members.delete(id) -> DmMemberDeleteResponse
Types:
from whop_sdk.types import AIChat, AIChatListResponse, AIChatDeleteResponseMethods:
client.ai_chats.create(**params) -> AIChatclient.ai_chats.retrieve(id) -> AIChatclient.ai_chats.update(id, **params) -> AIChatclient.ai_chats.list(**params) -> SyncCursorPage[AIChatListResponse]client.ai_chats.delete(id) -> AIChatDeleteResponse
Types:
from whop_sdk.types import DmChannel, DmChannelListResponse, DmChannelDeleteResponseMethods:
client.dm_channels.create(**params) -> DmChannelclient.dm_channels.retrieve(id) -> DmChannelclient.dm_channels.update(id, **params) -> DmChannelclient.dm_channels.list(**params) -> SyncCursorPage[DmChannelListResponse]client.dm_channels.delete(id) -> DmChannelDeleteResponse
Types:
from whop_sdk.types import DisputeAlertType, DisputeAlertRetrieveResponse, DisputeAlertListResponseMethods:
client.dispute_alerts.retrieve(id) -> DisputeAlertRetrieveResponseclient.dispute_alerts.list(**params) -> SyncCursorPage[DisputeAlertListResponse]