Retrieve Subscription Information
GET/account/
Details about the accounts subscription (subscribed plan, billing cycle, etc..).
Responses
- 200
- 400
- 401
- 404
- 500
- application/json
- Schema
- Example (from schema)
- Example
Schema
future
- Futurein_trial
- In Trialactive
- Activenon_renewing
- Non Renewingcancelled
- Canceledper_unit
- per_unitflat_fee
- flat_feevolume
- volumetiered
- tieredUSD
- USDEUR
- EURGBP
- GBPweek
- Weekmonth
- Monthyear
- YearArray [
USD
- USDEUR
- EURGBP
- GBP]
USD
- USDEUR
- EURGBP
- GBP
Possible values: [future
, in_trial
, active
, non_renewing
, cancelled
]
Subscription status.
plan
object
required
Possible values: <= 255 characters
Plan identifier.
Possible values: <= 50 characters
Plan name.
Plan family.
Possible values: <= 500 characters
Plan description.
Does plan include trial.
Possible values: [per_unit
, flat_fee
, volume
, tiered
]
Possible values: [USD
, EUR
, GBP
]
Possible values: >= -2147483648
and <= 2147483647
Plan billing is done every N units.
Possible values: [week
, month
, year
]
Unit for the plan billing cycle.
allowed_credits_packs
object[]
required
Possible values: <= 100 characters
Possible values: <= 50 characters
Possible values: >= -2147483648
and <= 2147483647
Possible values: [USD
, EUR
, GBP
, ``]
Possible values: <= 4294967295
tiers
object
nullable
Subscribed target in account.
Subscribed pool size.
Auto-collection enabled.
Date and time for next billing cycle.
Possible values: <= 4294967295
Amount to pay for next subscription renewal (in cents).
Date and time the trial period ends.
Possible values: >= -2147483648
and <= 2147483647
Credit in clients account in cents.
Possible values: [USD
, EUR
, GBP
, ``]
Currency unit for balance.
Heroku only account.
Possible values: <= 4294967295
Plan cost in cents.
Number of free slots of targets with unlimited scans.
Calculated for targets with unlimited scans as follows:
Free slots = Account slots - Slots in use - Slots reserved for teams
{
"status": "future",
"plan": {
"id": "string",
"name": "string",
"family": "string",
"description": "string",
"is_trial": true,
"charge_model": "per_unit",
"price": 0,
"currency_code": "USD",
"period": 0,
"period_unit": "week",
"allowed_builtin_scan_profiles": [
"string"
],
"allowed_credits_packs": [
{
"id": "string",
"name": "string",
"price": 0,
"currency_code": "USD",
"pack_amount": 0,
"discount": 0,
"savings": 0
}
],
"discount": 0,
"savings": 0,
"tiers": {}
},
"plan_target_quantity": 0,
"pool_size": 0,
"auto_collection": true,
"next_billing_at": "2024-07-29T15:51:28.071Z",
"next_billing_amount": 0,
"trial_end": "2024-07-29T15:51:28.071Z",
"balance": 0,
"balance_currency_code": "USD",
"has_used_trial": true,
"heroku": true,
"plan_amount": 0,
"available_slots": 0
}
{
"status": "active",
"plan": {
"id": "enterprise-base-eur",
"name": "Enterprise Plan",
"family": "enterprise",
"description": "",
"is_trial": true,
"charge_model": "flat_fee",
"period": 1,
"period_unit": "year",
"allowed_scan_profiles": [
"lightning",
"safe",
"normal",
"full"
],
"allowed_credits_packs": []
},
"plan_target_quantity": 5,
"pool_size": 10,
"auto_collection": true,
"next_billing_at": "2019-08-24T14:15:22Z",
"trial_end": "2019-08-24T14:15:22Z",
"balance": 0,
"balance_currency_code": "eur",
"has_used_trial": true,
"heroku": false,
"plan_amount": 56000,
"next_billing_amount": 56000,
"available_slots": 5
}
- application/json
- Schema
- Example (from schema)
Schema
{
"<field name>": [
"Errors related to field <field name>."
],
"non_field_errors": [
"Errors not related to any field specific field."
]
}
- application/json
- Schema
- Example (from schema)
Schema
{
"detail": "Incorrect authentication credentials."
}
- application/json
- Schema
- Example (from schema)
Schema
{
"detail": "Not found."
}
- application/json
- Schema
- Example (from schema)
Schema
{
"detail": "Unexpected error while handling your request."
}