Copy {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"allOf": [
{
"oneOf": [
{
"type": "object",
"properties": {
"license_key": { "type": "string" }
},
"required": ["license_key"],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"user": {
"type": "object",
"properties": {
"id": { "type": "number" },
"email": { "type": "string" },
"first_name": { "type": "string" },
"last_name": { "type": "string" },
"phone_number": { "type": "string" },
"is_initial_password": { "type": "boolean" },
"max_activations": { "type": "number" },
"allow_unlimited_activations": { "type": "boolean" },
"total_activations": { "type": "number" }
},
"required": ["id", "email", "first_name", "last_name", "phone_number", "is_initial_password", "max_activations", "allow_unlimited_activations", "total_activations"],
"additionalProperties": false
}
},
"required": ["user"],
"additionalProperties": false
}
]
},
{
"type": "object",
"properties": {
"id": { "type": "number" },
"allow_grace_period": { "type": "boolean" },
"allow_overages": { "type": "boolean" },
"allow_unlimited_activations": { "type": "boolean" },
"borrowed_until": { "type": ["string", "null"] },
"can_borrow": { "type": "boolean" },
"channel": { "type": "string" },
"device_id": { "type": "number" },
"enable_maintenance_period": { "type": "boolean" },
"environment": { "type": "string" },
"eula_link": { "type": "string" },
"floating_timeout": { "type": "number" },
"grace_period": { "type": "number" },
"hash_md5": { "type": "string" },
"installation_file": { "type": "string" },
"is_air_gapped": { "type": "boolean" },
"is_borrowed": { "type": "boolean" },
"is_expired": { "type": "boolean" },
"is_floating_cloud": { "type": "boolean" },
"is_floating": { "type": "boolean" },
"is_hardware_key_auth": { "type": "boolean" },
"license_active": { "type": "boolean" },
"license_enabled": { "type": "boolean" },
"license_signature": { "type": "string" },
"license_signature_v2": { "type": "string" },
"offline_signature": { "type": "string" },
"license_type": { "type": "string" },
"maintenance_period": { "type": ["string", "null"] },
"max_activations": { "type": "number" },
"max_borrow_time": { "type": "number" },
"max_license_users": { "type": "number" },
"max_overages": { "type": "number" },
"max_transfers": { "type": "number" },
"order_store_id": { "type": "string" },
"prevent_vm": { "type": "boolean" },
"release_date": { "type": "string" },
"release_notes_link": { "type": "string" },
"requires_version": { "type": "string" },
"size": { "type": "string" },
"start_date": { "type": ["string", "null"] },
"times_activated": { "type": "number" },
"transfer_count": { "type": "number" },
"validity_period": { "type": ["string", "null"] },
"version": { "type": "string" },
"company": { "type": "object", "properties": {"id": { "type": "number" } } },
"product_features": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": { "type": "number" },
"code": { "type": "string" },
"name": { "type": "string" },
"expiry_date": { "type": "string" },
"metadata": {},
"feature_type": { "type": "string", "enum": ["activation", "consumption"] },
"is_floating": { "type": "boolean" },
"is_floating_cloud": { "type": "boolean" },
"floating_users": { "type": "number" },
"floating_timeout": { "type": "number" },
"max_consumption": { "type": "number" },
"allow_unlimited_consumptions": { "type": "boolean" },
"total_consumptions": { "type": "number" },
"allow_overages": { "type": "number" },
"max_overages": { "type": "number" },
"reset_consumption": { "type": "boolean" },
"consumption_period": {
"type": ["string", "null"],
"enum": ["daily", "weekly", "monthly", "annualy", null]
}
},
"required": ["id", "code", "name", "expiry_date", "metadata", "feature_type", "is_floating", "is_floating_cloud"]
}
},
"custom_fields": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": { "type": "string" },
"data_type": { "type": "string", "enum": ["numer", "text", "date/time"] },
"value": { "type": "string" }
},
"required": ["name", "data_type", "value"]
}
},
"customer": {
"type": "object",
"properties": {
"email": { "type": "string" },
"company_name": { "type": "string" },
"reference": { "type": "string" },
"phone": { "type": "string" },
"first_name": { "type": "string" },
"last_name": { "type": "string" },
"city": { "type": "string" },
"postcode": { "type": "string" },
"state": { "type": "string" },
"country": { "type": "string" },
"address": { "type": "string" },
"customer_account": { "type": ["string", "null"] },
"metadata": {}
},
"required": ["email", "company_name", "reference", "phone", "first_name", "last_name", "city", "postcode", "state", "country", "address", "metadata"]
},
"product_details": {
"type": "object",
"properties": {
"product_id": { "type": "number" },
"product_name": { "type": "string" },
"short_code": { "type": "string" },
"authorization_method": { "type": "string", "enum": ["license-key", "user"] },
"metadata": {}
},
"required": ["product_id", "product_name", "short_code", "authorization_method", "metadata"]
},
"metadata": {},
"trial_days": { "type": "number" },
"floating_in_use_devices": { "type": "number" },
"floating_users": { "type": "number" },
"max_consumptions": { "type": "number" },
"total_consumptions": { "type": "number" },
"allow_unlimited_consumptions": { "type": "boolean" },
"reset_consumption": { "type": "boolean" },
"consumption_period": { "type": ["string", "null"] }
},
"required": [
"id",
"allow_grace_period",
"allow_overages",
"allow_unlimited_activations",
"can_borrow",
"channel",
"device_id",
"enable_maintenance_period",
"environment",
"eula_link",
"floating_timeout",
"grace_period",
"hash_md5",
"installation_file",
"is_air_gapped",
"is_borrowed",
"is_expired",
"is_floating_cloud",
"is_floating",
"is_hardware_key_auth",
"license_active",
"license_enabled",
"license_signature",
"license_type",
"max_activations",
"max_borrow_time",
"max_license_users",
"max_overages",
"max_transfers",
"order_store_id",
"prevent_vm",
"release_date",
"release_notes_link",
"requires_version",
"size",
"times_activated",
"transfer_count",
"version",
"product_features",
"custom_fields",
"customer",
"product_details",
"metadata"
],
"additionalProperties": false
}
]
}