🔗 Console REST APISubscription

Get subscription data

Retrieves current subscription information for the organization

GET
/api/subscription

Authorization

headerAuthorization<token>

API Key is required to access the endpoints

Response Body

Successfully retrieved subscription data

  1. response
[index: integer]?
curl -X GET 'https://api-console.apibricks.io/api/subscription'
[  {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "idOrganization": "9bf7f388-1dbc-4a73-92b2-4ad35e7fe880",    "idProductBilling": "217406b9-61fd-4882-a027-e375a68cecdc",    "idStripeSubscription": "string",    "idStripeSubscriptionItem": "string",    "timeCreated": "2019-08-24T14:15:22Z",    "timeEnded": "2019-08-24T14:15:22Z",    "timeUpdated": "2019-08-24T14:15:22Z",    "timeCanceledAt": "2019-08-24T14:15:22Z",    "mrr": 0,    "mrrNew": 0,    "mrrChurn": 0,    "organization": {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "stripeId": "string",      "name": "string",      "company": "string",      "country": "string",      "address1": "string",      "address2": "string",      "city": "string",      "postalCode": "string",      "region": "string",      "purchaseOrder": "string",      "billingEmail": "string",      "autoRechargeEnabled": 0,      "autoRechargeBalanceGoesBelowUsd": 0,      "autoRechargeBalanceBackUpToUsd": 0,      "creditBalance": 0,      "creditUninvoicedCurrent": 0,      "creditUninvoicedLimit": 0,      "creditUsageYesterday": 0,      "creditUsageToday": 0,      "creditUsageTodayUpdatedAt": "2019-08-24T14:15:22Z",      "pastDueUsd": 0,      "pastDueSince": "2019-08-24T14:15:22Z",      "apiKeysActiveCount": 0,      "ticketsLiveWaitOnProvider": 0,      "ticketsLiveWaitOnCustomer": 0,      "ticketsNotLive": 0,      "totalPaidUsd": 0,      "totalPaidUsdLastW": 0,      "totalPaidUsdLastM": 0,      "totalPaidUsdLastQ": 0,      "totalPaidUsdLastY": 0,      "tier": "string",      "lifetimeValueTier": 0,      "lifetimeValueNextTierUsdCents": 0,      "firstPaymentDate": "2019-08-24T14:15:22Z",      "lastAuditTrailEvent": "2019-08-24T14:15:22Z",      "usageInvoicedUpToExcl": "2019-08-24T14:15:22Z",      "paymentMethodsLiveCount": 0,      "quotaThresholdLastNotification": "2019-08-24T14:15:22Z",      "quotaExceededLastNotification": "2019-08-24T14:15:22Z",      "allNotificationsEmail": "string",      "actionRequiredNotificationsEmail": "string",      "creditsLowBalanceLastNotification": "2019-08-24T14:15:22Z",      "timeCreated": "2019-08-24T14:15:22Z",      "teamMembersCount": 0,      "spendMgmtEnabled": 0,      "spendMgmtCreditUsageDailyHardLimit": 0,      "spendMgmtCreditUsageDailyNotifyThreshold": 0,      "spendMgmtCreditUsageWebhookUrl": "string",      "spendMgmtNotifyLimitLastNotification": "2019-08-24T14:15:22Z",      "spendMgmtHardLimitLastNotification": "2019-08-24T14:15:22Z",      "slackChannelRequestedTime": "2019-08-24T14:15:22Z",      "status": "string",      "statusChangedTime": "2019-08-24T14:15:22Z",      "statusSuspendedReason": "string",      "billingMode": "string",      "customReferralCode": "string",      "creatingConsoleLoginId": "7f89452b-58d1-48d0-aa99-f05e613e9699",      "stripeConnectAccountId": "string",      "referralPayoutMethod": "string",      "stripeConnectReleasedUtc": "2019-08-24T14:15:22Z"    },    "productBilling": {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "idProduct": "string",      "idStripeProduct": "string",      "idStripeProductPlan": "string",      "name": "string",      "flatFeeAmount": 0,      "flatFeeCurrency": "string",      "flatFeeInterval": "string",      "flatFeeIntervalCount": 0,      "isVisible": true,      "displayOrder": 0,      "mrr": 0,      "product": {        "id": "string",        "name": "string",        "isApiProductType": true,        "displayOrder": 0,        "productLine": "string",        "lastSyncTime": "2019-08-24T14:15:22Z"      }    }  }]