Retrieve Credits Auto Top-up Settings
GET/account/credits/top-up/settings/
Responses
- 200
- 400
- 401
- 500
- application/json
- Schema
- Example (from schema)
Schema
USD
- USDEUR
- EURGBP
- GBP
auto_top_up_on_expiration boolean
If true, buy credits automatically on the expiration date of purchased credits.
auto_top_up_on_insufficient boolean
If true, buy credits automatically when the account balance is insufficient to perfom scans.
auto_top_up_credits_pack
object
nullable
id stringrequired
Possible values: <= 100 characters
name string
Possible values: <= 50 characters
price integer
Possible values: >= -2147483648
and <= 2147483647
currency_code string
Possible values: [USD
, EUR
, GBP
, ``]
pack_amount int64
Possible values: <= 4294967295
discount integerrequired
savings integerrequired
{
"auto_top_up_on_expiration": true,
"auto_top_up_on_insufficient": true,
"auto_top_up_credits_pack": {
"id": "string",
"name": "string",
"price": 0,
"currency_code": "USD",
"pack_amount": 0,
"discount": 0,
"savings": 0
}
}
- application/json
- Schema
- Example (from schema)
Schema
<field name> string[]
non_field_errors string[]
{
"<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 string
{
"detail": "Incorrect authentication credentials."
}
- application/json
- Schema
- Example (from schema)
Schema
detail string
{
"detail": "Unexpected error while handling your request."
}
Loading...