For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Support Center
OverviewAPIResources
OverviewAPIResources
  • REST API Endpoints
      • GETContact Info Dependents
      • GETContact Info Item
      • GETContact Info Items
      • GETContact Info L Dependents
      • POSTMarket Data Subscription Create
      • GETMarket Data Subscription Dependents
      • GETMarket Data Subscription Item
      • GETMarket Data Subscription Items
      • GETMarket Data Subscription L Dependents
      • GETMarket Data Subscription List
      • POSTMarket Data Subscription Update
      • GETOrganization Find
      • GETOrganization Item
      • GETOrganization Items
      • GETOrganization List
      • GETOrganization Suggest
      • GETSecond Market Data Subscription Dependents
      • GETSecond Market Data Subscription Item
      • GETSecond Market Data Subscription Items
      • GETSecond Market Data Subscription L Dependents
      • GETSecond Market Data Subscription List
      • POSTTradovate Subscription Create
      • GETTradovate Subscription Dependents
      • GETTradovate Subscription Item
      • GETTradovate Subscription Items
      • GETTradovate Subscription L Dependents
      • GETTradovate Subscription List
      • POSTTradovate Subscription Update
      • POSTAccept Trading Permission
      • POSTActivate Second Market Data Subscription Renewal
      • POSTAdd Market Data Subscription
      • POSTAdd Second Market Data Subscription
      • POSTAdd Tradovate Subscription
      • POSTCancel Everything
      • POSTCancel Second Market Data Subscription
      • POSTCancel Second Market Data Subscription Renewal
      • POSTExpire Market Data Subscription
      • POSTCancel Tradovate Subscription
      • POSTCreate Evaluation Accounts
      • POSTCreate Evaluation Users
      • POSTCreate Trading Permission
      • GETUser Find
      • POSTGet Account Trading Permissions
      • POSTGet Second Market Data Subscription Cost
      • GETUser Item
      • GETUser Items
      • GETUser List
      • POSTModify Credentials
      • POSTModify Email Address
      • POSTModify Password
      • POSTOpen Demo Account
      • POSTRequest Trading Permission
      • POSTRevoke Trading Permission
      • POSTRevoke Trading Permissions
      • POSTSign Up Organization Member
      • GETUser Suggest
      • POSTSync Request
      • POSTAdd Entitlement Subscription
      • POSTChange Plugin Permission
      • POSTUser Plugin Create
      • GETUser Plugin Dependents
      • GETUser Plugin Item
      • GETUser Plugin Items
      • GETUser Plugin L Dependents
      • GETUser Plugin List
      • POSTUser Plugin Update
      • GETUser Property Dependents
      • GETUser Property Item
      • GETUser Property Items
      • GETUser Property L Dependents
      • GETUser Session Item
      • GETUser Session Items
      • GETUser Session Stats Dependents
      • GETUser Session Stats Item
      • GETUser Session Stats Items
      • GETUser Session Stats L Dependents
      • GETUser Session Stats List
Support Center
LogoLogo
REST API EndpointsUsers

Add Entitlement Subscription

POST
https://demo.tradovateapi.com/v1/userPlugin/addentitlementsubscription
POST
/v1/userPlugin/addentitlementsubscription
1const url = 'https://demo.tradovateapi.com/v1/userPlugin/addentitlementsubscription';
2const options = {
3 method: 'POST',
4 headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
5 body: '{"entitlementId":1}'
6};
7
8try {
9 const response = await fetch(url, options);
10 const data = await response.json();
11 console.log(data);
12} catch (error) {
13 console.error(error);
14}
200Successful
1{
2 "errorText": "string",
3 "errorCode": "ConflictWithExisting",
4 "entitlementSubscription": {
5 "userId": 1,
6 "timestamp": "2024-01-15T09:30:00Z",
7 "planPrice": 1.1,
8 "pluginName": "string",
9 "approval": true,
10 "startDate": {
11 "year": 1,
12 "month": 1,
13 "day": 1
14 },
15 "paidAmount": 1.1,
16 "id": 1,
17 "creditCardTransactionId": 1,
18 "cashBalanceLogId": 1,
19 "creditCardId": 1,
20 "accountId": 1,
21 "entitlementId": 1,
22 "expirationDate": {
23 "year": 1,
24 "month": 1,
25 "day": 1
26 },
27 "autorenewal": true,
28 "planCategories": "string"
29 }
30}
### For use with Add-ons, allows for purchase of entitlements such as Market Replay. ***Note***: The [/user/createEvaluationUsers](/api/rest-api-endpoints/users/create-evaluation-users) endpoint replaces [/user/signUpOrganizationMember](/api/rest-api-endpoints/users/sign-up-organization-member), [/user/addTradovateSubscription](/api/rest-api-endpoints/users/add-tradovate-subscription), and [/userPlugin/addEntitlementSubscription](/api/rest-api-endpoints/users/add-entitlement-subscription).
Was this page helpful?
Previous

Change Plugin Permission

Next
Built with

For use with Add-ons, allows for purchase of entitlements such as Market Replay.

Note: The /user/createEvaluationUsers endpoint replaces /user/signUpOrganizationMember, /user/addTradovateSubscription, and /userPlugin/addEntitlementSubscription.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

This endpoint expects an object.
entitlementIdlongRequired
creditCardIdlongOptional
accountIdlongOptional
userIdlongOptional

Response

EntitlementSubscriptionResponse
errorTextstring<=8192 characters

Non-empty if the request failed

errorCodeenum
ConflictWithExisting, DowngradeNotAllowed, IncompatibleCMEMarketDataSubscriptionPlans, IncorrectPaymentMethod, InsufficientFunds, PaymentProviderError, PlanDiscontinued, SingleTrialOnly, Success, UnknownError
entitlementSubscriptionobject