Fetch Plan Details

Fetch Plan Details API endpoint for Sweeppea. POST account/plan. Retrieves comprehensive plan information including pricing, limits, and features based on the authenticated user's plan token.

POST account/plan

Description

This endpoint retrieves detailed information about the user's plan using the ApiToken for authentication. It returns comprehensive plan details including pricing, subscription frequency, limits for sweepstakes, storage, participants, API calls, and additional features.

Authentication & Validation

This endpoint performs the following security validations:

Code Examples

curl -X POST "https://api-v3.sweeppea.com/account/plan" \ -H "Authorization: Bearer YOUR_API_TOKEN" \ -H "Content-Type: application/json"

Response

200 OK

{ "Response": true, "Data": { "_id": "683cfea2026928b08b64badc", "PlanToken": "PLAN-TOKEN", "Name": "Plan Name", "Description": "Plan Description", "Settings": { "ChargePerSweepstakes": false, "Frequency": "Daily", "SubscriptionPrice": 0, "SubscriptionPriceDiscount": 0, "FixedPrice": 0, "FixedPriceDiscount": 0, "CostPerGigaByte": 1, "ChargeDTAfterGB": 50, "ExtraCredits": 0, "WalletMinToDeposit": 500, "WalletMinToWithdraw": 10, "MerchantProcessorFee": 3, "SweeppeaCommision": 3, "ChargeTwilioNumber": true, "TwilioNumberPrice": 99, "PaidModuleCreateSweepstakes": false, "PaidModuleCreateEntryPage": false, "PaidModuleCreateOfficialRules": false, "PaidModuleManageParticipants": false, "PaidModuleSendMessages": false, "PaidModuleDrawWinners": false, "PaidModuleSeeReports": false, "PaidModuleManageDomains": false, "PaidModuleManageCoupons": false, "PaidModuleAccessDrive": false, "PaidModuleAccessCalendar": false, "PaidModuleManageNotes": false, "PaidModuleCreateSurveys": false, "PaidModuleAccessAPI": false, "PaidModuleManageDripMarketing": false, "MaxSweepstakesAllowed": 10, "MaxStorageSize": 5000, "MaxParticipantsAllowed": 500000, "MaxApiCallsAllowed": 500000 }, "Primary": false, "Locked": true, "CreationDate": "2025-06-02T01:30:10.261Z", } }
Error Responses

401 Unauthorized

{ "Response": false, "Message": "Invalid or Missing Bearer Token", "Code": 401 }

403 Forbidden - Invalid API Token

{ "Response": false, "Message": "Invalid API Token", "Code": 403 }

403 Forbidden - Account Disabled

{ "Response": false, "Message": "Account is disabled. Please contact support.", "Code": 403 }

403 Forbidden - Domain Access Restricted

{ "Response": false, "Message": "API access restricted. Wildcard domain (*) required.", "Code": 403 }

404 Not Found

{ "Response": false, "Message": "Plan Not Found", "Code": 404 }