Retrieves the current user’s subscription plan details
{ "planType": "FREE", "planName": "Pro", "planStatus": "ACTIVE", "customerId": "cus_1234567890", "orderId": "1234567", "paymentProvider": "STRIPE", "subscription": { "id": "3a71d6b5c6728b0404745c80a22a92a6", "userPlanId": "aa2d7970f320d412bc8560607f3dfb24", "subscriptionId": "sub_1234567890", "planId": "Pro", "expiresAt": "2023-11-07T05:31:56Z", "trialEndsAt": "2023-11-07T05:31:56Z", "trialStartedAt": "2023-11-07T05:31:56Z", "isTrialing": true, "trialEndingNotificationSent": true, "cancelAtPeriodEnd": true, "currentPeriodEnd": "2023-11-07T05:31:56Z", "currentPeriodStart": "2023-11-07T05:31:56Z", "createdAt": "2023-11-07T05:31:56Z", "updatedAt": "2023-11-07T05:31:56Z" } }
Subscription plan retrieved successfully
The user's subscription plan details
Was this page helpful?