Skip to main content
POST
/
updateAccountSubscription
updateAccountSubscription
curl --request POST \
  --url https://alphainsider.com/api/updateAccountSubscription \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "type": "standard",
  "timeframe": "month"
}
'
{
  "success": true,
  "response": {
    "account_subscription_id": "oPajv9WU3wtwtBYLQxm4z",
    "user_id": "user_1",
    "status": "pending",
    "product_id": "7wswTAd1xbDAEQkPhbBn6",
    "type": "standard",
    "timeframe": "month",
    "level": 0,
    "name": "Standard Account Subscription",
    "next_product_id": "qkV9qPfpxr4wWMaZKprdI",
    "next_type": "pro",
    "next_timeframe": "month",
    "next_level": 1,
    "next_name": "Pro Account Monthly Subscription",
    "invoice_id": "NJ9Fo2OSoM5MRy5ithwnw",
    "limits": {
      "new_order": 50,
      "new_post": 100,
      "like": 100,
      "max_sessions": 100,
      "max_api_tokens": 50,
      "max_strategies": 5,
      "max_subscriptions": 10,
      "max_open_orders": 100,
      "max_bots": 0
    },
    "end_date": null,
    "updated_at": "2024-10-08T16:30:00.062Z",
    "created_at": "2024-08-30T13:40:27.343Z"
  }
}

Headers

Authorization
string<JWT>
required

User API token.

Body

application/json
type
enum<string>
required

Account subscription tier.

Available options:
standard,
pro,
premium
timeframe
enum<string>
required

Account subscription timeframe.

Available options:
month,
year

Response

Request was successful.