{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ovh/json-schema/ovh-services-service-schema.json",
  "title": "services.Service",
  "description": "Details about a Service",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ovh-v1-allDom-openapi.yml#/components/schemas/services.Service",
  "type": "object",
  "properties": {
    "canDeleteAtExpiration": {
      "type": "boolean",
      "description": "Indicates that the service can be set up to be deleted at expiration",
      "readOnly": true
    },
    "contactAdmin": {
      "type": "string",
      "readOnly": true
    },
    "contactBilling": {
      "type": "string",
      "readOnly": true
    },
    "contactTech": {
      "type": "string",
      "readOnly": true
    },
    "creation": {
      "type": "string",
      "format": "date",
      "readOnly": true
    },
    "domain": {
      "type": "string",
      "readOnly": true
    },
    "engagedUpTo": {
      "type": [
        "string",
        "null"
      ],
      "format": "date",
      "readOnly": true
    },
    "expiration": {
      "type": "string",
      "format": "date",
      "readOnly": true
    },
    "possibleRenewPeriod": {
      "type": [
        "array",
        "null"
      ],
      "description": "All the possible renew period of your service in month",
      "items": {
        "type": "integer"
      },
      "readOnly": true
    },
    "renew": {
      "allOf": [
        {
          "$ref": "#/$defs/service.RenewType"
        }
      ],
      "description": "Way of handling the renew",
      "nullable": true
    },
    "renewalType": {
      "allOf": [
        {
          "$ref": "#/$defs/service.RenewalTypeEnum"
        }
      ],
      "readOnly": true
    },
    "serviceId": {
      "type": "integer",
      "readOnly": true
    },
    "status": {
      "allOf": [
        {
          "$ref": "#/$defs/service.StateEnum"
        }
      ],
      "readOnly": true
    }
  },
  "$defs": {
    "service.RenewType": {
      "type": "object",
      "description": "Map a possible renew for a specific service",
      "properties": {
        "automatic": {
          "type": "boolean",
          "description": "The service is automatically renewed"
        },
        "deleteAtExpiration": {
          "type": "boolean",
          "description": "The service will be deleted at expiration"
        },
        "forced": {
          "type": "boolean",
          "description": "The service forced to be renewed"
        },
        "manualPayment": {
          "type": [
            "boolean",
            "null"
          ],
          "description": "The service needs to be manually renewed and paid"
        },
        "period": {
          "type": [
            "integer",
            "null"
          ],
          "description": "period of renew in month"
        }
      }
    },
    "service.RenewalTypeEnum": {
      "type": "string",
      "description": "Detailed renewal type of a service",
      "enum": [
        "automaticForcedProduct",
        "automaticV2012",
        "automaticV2014",
        "automaticV2016",
        "manual",
        "oneShot",
        "option"
      ]
    },
    "service.StateEnum": {
      "type": "string",
      "description": "service.StateEnum",
      "enum": [
        "autorenewInProgress",
        "expired",
        "inCreation",
        "ok",
        "pendingDebt",
        "unPaid"
      ]
    }
  }
}