Subscription Resource
| Endpoints | URI | Access Control | Description |
|---|---|---|---|
| plans | GET /api/Subscription/plans |
Authentication only | |
| getActiveSubscription | GET /api/Subscription/getActiveSubscription |
Endpoint level permissions | |
| payments | GET /api/Subscription/payments |
Endpoint level permissions | |
| setAsFreemiumTier | GET /api/Subscription/setAsFreemiumTier |
Endpoint level permissions | |
| cancel | GET /api/Subscription/cancel |
Endpoint level permissions | Cancels a company's subscription to tradetraks |
| stopPartnerPayments | GET /api/Subscription/stopPartnerPayments |
Endpoint level permissions | |
| create | POST /api/Subscription/create |
Endpoint level permissions | Creates a Stripe subscription to tradetraks |
| find | GET /api/Subscription/find |
Admin or Module READ | |
| get | GET /api/Subscription/get |
Authentication only |
| Property | Type | Description |
|---|---|---|
id |
number | |
type |
string | |
stripe_id |
string | |
stripe_sub_id |
string | |
is_active |
boolean | |
price_cad |
number | |
plan_level |
number | |
user_limit |
number | |
expiry |
date | |
last_payment_status |
string | |
last_payment_update |
date | |
card_last_4 |
string | |
card_brand |
string | |
card_expiry |
string | |
created_at |
datetime | |
updated_at |
datetime | |
updated_by |
number |
| Setting | |
|---|---|
Pagination Limit (when page parameter is set) |
None |
| Default Sort Order |
is_active DESCexpiry DESC |
| Related Resource | Key | Relationship to Subscription | Property |
|---|---|---|---|
| Company | tenant_id |
Belongs To | Company |