Get subscription information for the current user
GET/users/current/subscription
Get subscription information for the current user
Request
Query Parameters
You can find your API key in the Import.io dashboard under User Settings
Responses
- 200
- 401
Subscription details retrieved successfully
- application/json
- Schema
- Example (from schema)
Schema
Unique identifier for the user.
Current usage count for the user.
Maximum allowed usage count under the plan.
Code identifying the specific subscription plan.
Indicates if the subscription plan is set to auto-renew.
Timestamp (in milliseconds since Unix epoch) when the subscription expires.
Overage usage count not included in the plan.
(For internal use)
(For internal use) List of features included in the subscription plan.
(For internal use)
(For internal use)
(For internal use)
Indicates if the plan is custom tailored for the user.
Indicates if the plan is a trial version.
(For internal use)
Timestamp (in milliseconds since Unix epoch) for the next billing date.
Code of the plan scheduled for after the current plan (if not renewed)
Indicates if the subscription has been deactivated.
Timestamp (in milliseconds since Unix epoch) when the subscription was created.
Timestamp (in milliseconds since Unix epoch) when usage tracking started.
(For internal use)
Indicates if customer is not allowed to exceed the query limits (charged separately)
{
"userGuid": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"usage": 0,
"maxUsage": 0,
"planCode": "string",
"autoRenew": true,
"expiry": 0,
"overage": 0,
"numOverageCharges": 0,
"features": [
"string"
],
"qps": 0,
"overageChargeInCents": 0,
"overageBlockSize": 0,
"custom": true,
"trial": true,
"provision": 0,
"nextBillingDate": 0,
"nextPlanCode": "string",
"deactivated": true,
"created": 0,
"usageStart": 0,
"basePlanCode": "string",
"overageDisabled": true
}
Unauthorized
- application/json
- Schema
- Example (from schema)
Schema
Internal error code.
A message containing a brief description of the error.
A message containing a brief description of the error.
{
"code": 0,
"message": "string"
}