{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ccp-games/json-schema/ccp-games-corporations-corporation-id-contracts-get-schema.json",
  "title": "CorporationsCorporationIdContractsGet",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ccp-games-contracts-api-openapi.yml#/components/schemas/CorporationsCorporationIdContractsGet",
  "items": {
    "properties": {
      "acceptor_id": {
        "description": "Who will accept the contract",
        "format": "int64",
        "type": "integer"
      },
      "assignee_id": {
        "description": "ID to whom the contract is assigned, can be corporation or character ID",
        "format": "int64",
        "type": "integer"
      },
      "availability": {
        "description": "To whom the contract is available",
        "enum": [
          "public",
          "personal",
          "corporation",
          "alliance"
        ],
        "type": "string"
      },
      "buyout": {
        "description": "Buyout price (for Auctions only)",
        "format": "double",
        "type": "number"
      },
      "collateral": {
        "description": "Collateral price (for Couriers only)",
        "format": "double",
        "type": "number"
      },
      "contract_id": {
        "format": "int64",
        "type": "integer"
      },
      "date_accepted": {
        "description": "Date of confirmation of contract",
        "format": "date-time",
        "type": "string"
      },
      "date_completed": {
        "description": "Date of completed of contract",
        "format": "date-time",
        "type": "string"
      },
      "date_expired": {
        "description": "Expiration date of the contract",
        "format": "date-time",
        "type": "string"
      },
      "date_issued": {
        "description": "Сreation date of the contract",
        "format": "date-time",
        "type": "string"
      },
      "days_to_complete": {
        "description": "Number of days to perform the contract",
        "format": "int64",
        "type": "integer"
      },
      "end_location_id": {
        "description": "End location ID (for Couriers contract)",
        "format": "int64",
        "type": "integer"
      },
      "for_corporation": {
        "description": "true if the contract was issued on behalf of the issuer's corporation",
        "type": "boolean"
      },
      "issuer_corporation_id": {
        "description": "Character's corporation ID for the issuer",
        "format": "int64",
        "type": "integer"
      },
      "issuer_id": {
        "description": "Character ID for the issuer",
        "format": "int64",
        "type": "integer"
      },
      "price": {
        "description": "Price of contract (for ItemsExchange and Auctions)",
        "format": "double",
        "type": "number"
      },
      "reward": {
        "description": "Remuneration for contract (for Couriers only)",
        "format": "double",
        "type": "number"
      },
      "start_location_id": {
        "description": "Start location ID (for Couriers contract)",
        "format": "int64",
        "type": "integer"
      },
      "status": {
        "description": "Status of the the contract",
        "enum": [
          "outstanding",
          "in_progress",
          "finished_issuer",
          "finished_contractor",
          "finished",
          "cancelled",
          "rejected",
          "failed",
          "deleted",
          "reversed"
        ],
        "type": "string"
      },
      "title": {
        "description": "Title of the contract",
        "type": "string"
      },
      "type": {
        "description": "Type of the contract",
        "enum": [
          "unknown",
          "item_exchange",
          "auction",
          "courier",
          "loan"
        ],
        "type": "string"
      },
      "volume": {
        "description": "Volume of items in the contract",
        "format": "double",
        "type": "number"
      }
    },
    "required": [
      "contract_id",
      "issuer_id",
      "issuer_corporation_id",
      "assignee_id",
      "acceptor_id",
      "type",
      "status",
      "for_corporation",
      "availability",
      "date_issued",
      "date_expired"
    ],
    "type": "object"
  },
  "type": "array"
}