{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/guidecx/json-schema/guidecx-project-details-response-schema.json",
  "title": "ProjectDetailsResponse",
  "x-generated": "2026-12-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/guidecx-openapi-v2.json#/components/schemas/ProjectDetailsResponse",
  "properties": {
    "id": {
      "type": "string",
      "description": "The id of the project"
    },
    "activeMilestones": {
      "$ref": "#/$defs/ActiveMilestones"
    },
    "apiProjectId": {
      "type": [
        "string",
        "null"
      ],
      "description": "This ID is only generated for pending projects created via the API and can be used to add tasks or notes to that project once setup is complete.\nNote: This is not the project ID and will not match the ID the user sees in the app for the final project."
    },
    "attachments": {
      "items": {
        "properties": {
          "url": {
            "type": "string",
            "description": "Url where the attachement is hosted"
          },
          "name": {
            "type": "string",
            "description": "Name of the attachement"
          }
        },
        "type": "object"
      },
      "type": "array"
    },
    "cashValue": {
      "type": "number",
      "format": "double",
      "description": "The Cash Value of a project"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "description": "The date the project was created"
    },
    "customer": {
      "properties": {
        "domain": {
          "type": "string",
          "description": "Domain of the customer organization. Omit \"www.\""
        },
        "name": {
          "type": "string",
          "description": "Name of the customer organization"
        }
      },
      "type": "object",
      "description": "The Customer of your project"
    },
    "customFields": {
      "items": {
        "properties": {
          "customFieldType": {
            "$ref": "#/$defs/CustomFieldType"
          },
          "globalCustomFieldId": {
            "type": "string"
          },
          "internalOnly": {
            "type": "boolean",
            "description": "Controls whether this custom field, when used on a project, is visible to customers or only your internal project team"
          },
          "name": {
            "type": "string",
            "description": "The field label for this custom field"
          },
          "value": {
            "type": "string",
            "description": "The value of the custom field"
          },
          "id": {
            "type": "string",
            "description": "The field id for this custom field"
          }
        },
        "type": "object"
      },
      "type": "array",
      "description": "Array of Custom Fields on the project"
    },
    "customerTaskSummary": {
      "properties": {
        "inProgress": {
          "type": "number",
          "format": "double",
          "description": "Total count of Customer Tasks currently `In Progress`"
        },
        "stuck": {
          "type": "number",
          "format": "double",
          "description": "Total count of Customer Tasks with status `Stuck`"
        },
        "signOff": {
          "type": "number",
          "format": "double",
          "description": "Total count of Customer Tasks needing `Sign Off`"
        },
        "overdue": {
          "type": "number",
          "format": "double",
          "description": "Total count of Customer Tasks that are `Overdue`"
        },
        "notStarted": {
          "type": "number",
          "format": "double",
          "description": "Total count of Customer Tasks with status `Not Started`"
        },
        "done": {
          "type": "number",
          "format": "double",
          "description": "Total count of Customer Tasks with status `Done`"
        },
        "total": {
          "type": "number",
          "format": "double",
          "description": "Total count of Customer Tasks"
        }
      },
      "type": "object"
    },
    "endOn": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "The project Planned End Date"
    },
    "externalId": {
      "type": [
        "string",
        "null"
      ],
      "description": "A reference ID to associate a GUIDEcx project to an external project.\nThis ID is displayed in the project details in the GUIDEcx app and is editable by project managers and admins.\nFor an API-only reference ID, refer to the optional `referringObjectId` field"
    },
    "hours": {
      "properties": {
        "thirdParty": {
          "properties": {
            "actual": {
              "type": "number",
              "format": "double",
              "description": "Total Actual hours"
            },
            "estimated": {
              "type": "number",
              "format": "double",
              "description": "Total Estimated hours"
            }
          },
          "type": "object",
          "description": "Summary of all Third Party hours recorded on the project"
        },
        "customer": {
          "properties": {
            "actual": {
              "type": "number",
              "format": "double",
              "description": "Total Actual hours"
            },
            "estimated": {
              "type": "number",
              "format": "double",
              "description": "Total Estimated hours"
            }
          },
          "type": "object",
          "description": "Summary of all Customer hours recorded on the project"
        },
        "internal": {
          "properties": {
            "actual": {
              "type": "number",
              "format": "double",
              "description": "Total Actual hours"
            },
            "estimated": {
              "type": "number",
              "format": "double",
              "description": "Total Estimated hours"
            }
          },
          "type": "object",
          "description": "Summary of all Internal hours recorded on the project"
        },
        "summary": {
          "properties": {
            "actual": {
              "type": "number",
              "format": "double",
              "description": "Total Actual hours"
            },
            "estimated": {
              "type": "number",
              "format": "double",
              "description": "Total Estimated hours"
            }
          },
          "type": "object",
          "description": "Summary of all hours recorded on the project"
        }
      },
      "type": "object",
      "description": "Total Hours recorded on the project"
    },
    "integrationReferenceId": {
      "type": [
        "string",
        "null"
      ],
      "description": "Automatic reference to the external system record associated to one of GUIDEcx's configured integrations (ie. Salesforce, Hubspot, etc).\nThese are managed by GUIDEcx. To associate a custom integration please refer to `referringObjectId`"
    },
    "internalTaskSummary": {
      "properties": {
        "inProgress": {
          "type": "number",
          "format": "double",
          "description": "Total number of Internal tasks currently `In Progress`"
        },
        "stuck": {
          "type": "number",
          "format": "double",
          "description": "Total number of Internal tasks with status `Stuck`"
        },
        "signOff": {
          "type": "number",
          "format": "double",
          "description": "Total number of Internal tasks needing `Sign Off`"
        },
        "overdue": {
          "type": "number",
          "format": "double",
          "description": "Total number of Internal tasks that are `Overdue`"
        },
        "notStarted": {
          "type": "number",
          "format": "double",
          "description": "Total number of Internal tasks with status `Not Started`"
        },
        "done": {
          "type": "number",
          "format": "double",
          "description": "Total number of Internal tasks with status `Done`"
        },
        "total": {
          "type": "number",
          "format": "double",
          "description": "Total number of Internal tasks"
        }
      },
      "type": "object",
      "description": "Summary of all Internal tasks recorded on the project"
    },
    "name": {
      "type": "string",
      "description": "Name of Project"
    },
    "projectedEndDate": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "The project Forecasted End Date (On the backend projectedEndDate is the same as forecastedEndDate)"
    },
    "projectManager": {
      "properties": {
        "email": {
          "type": "string",
          "description": "The email address of the Project Manager"
        },
        "lastName": {
          "type": "string",
          "description": "The last name of the Project Manager"
        },
        "firstName": {
          "type": "string",
          "description": "The first name of the Project Manager"
        },
        "id": {
          "type": "string",
          "description": "The id of the Project Manager"
        }
      },
      "required": [
        "email"
      ],
      "type": "object",
      "description": "The project's Project Manager"
    },
    "referringObjectId": {
      "type": [
        "string",
        "null"
      ],
      "description": "Reference to an external system, provided in the request to `POST /projects`.\nThis field is helpful when building custom integrations with GUIDEcx.\nFor GUIDEcx-managed integrations, refer to `integrationReferenceId`"
    },
    "startOn": {
      "type": "string",
      "format": "date-time",
      "description": "The currently defined “Start Date” of the project (a PM/Admin can change this in GUIDEcx via Edit Project)"
    },
    "status": {
      "$ref": "#/$defs/Status"
    },
    "tags": {
      "$ref": "#/$defs/Tags"
    },
    "taskSummary": {
      "properties": {
        "inProgress": {
          "type": "number",
          "format": "double",
          "description": "Total number of tasks currently `In Progress`"
        },
        "stuck": {
          "type": "number",
          "format": "double",
          "description": "Total number of tasks with status `Stuck`"
        },
        "signOff": {
          "type": "number",
          "format": "double",
          "description": "Total number of tasks needing `Sign Off`"
        },
        "overdue": {
          "type": "number",
          "format": "double",
          "description": "Total number of tasks that are `Overdue`"
        },
        "notStarted": {
          "type": "number",
          "format": "double",
          "description": "Total number of tasks with status `Not Started`"
        },
        "done": {
          "type": "number",
          "format": "double",
          "description": "Total number of tasks with status `Done`"
        },
        "total": {
          "type": "number",
          "format": "double",
          "description": "Total number of tasks"
        }
      },
      "type": "object",
      "description": "Summary of tasks on the project"
    },
    "team": {
      "items": {
        "properties": {
          "userContext": {
            "$ref": "#/$defs/UserContext"
          },
          "phone": {
            "type": "string",
            "description": "The phone number of the team member"
          },
          "email": {
            "type": "string",
            "description": "The email address of the team member"
          },
          "lastName": {
            "type": "string",
            "description": "The last name of the team member"
          },
          "firstName": {
            "type": "string",
            "description": "The first name of the team member"
          },
          "id": {
            "type": "string",
            "description": "The id of the team member"
          }
        },
        "required": [
          "email"
        ],
        "type": "object"
      },
      "type": "array",
      "description": "The Team members of the project"
    },
    "thirdPartyTaskSummary": {
      "properties": {
        "inProgress": {
          "type": "number",
          "format": "double",
          "description": "Total number of Third Party tasks currently `In Progress`"
        },
        "stuck": {
          "type": "number",
          "format": "double",
          "description": "Total number of Third Party tasks with status `Stuck`"
        },
        "signOff": {
          "type": "number",
          "format": "double",
          "description": "Total number of Third Party tasks needing `Sign Off`"
        },
        "overdue": {
          "type": "number",
          "format": "double",
          "description": "Total number of Third Party tasks that are `Overdue`"
        },
        "notStarted": {
          "type": "number",
          "format": "double",
          "description": "Total number of Third Party tasks with status `Not Started`"
        },
        "done": {
          "type": "number",
          "format": "double",
          "description": "Total number of Third Party tasks with status `Done`"
        },
        "total": {
          "type": "number",
          "format": "double",
          "description": "Total number of Third Party tasks"
        }
      },
      "type": "object",
      "description": "Summary of all Third Party tasks on the project"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time",
      "description": "The date the project was last updated"
    },
    "doneAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "The date the project status was changed to Done (On the backend doneAt is the same as completedAt)"
    },
    "completedAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "The date 100% of the project tasks status’s were changed to either Done or Not-Applicable"
    },
    "billRate": {
      "anyOf": [
        {
          "$ref": "#/$defs/FixedFeeBillType"
        },
        {
          "$ref": "#/$defs/FixedRateBillType"
        },
        {
          "$ref": "#/$defs/VariableRateBillType"
        }
      ],
      "nullable": true,
      "description": "If you enable implementation profitability calculations, GUIDEcx will estimate the project profitability\nby subtracting internal cost to run the project from the project revenue. This feature requires all internal\nusers to have a fully loaded cost inputted in the company details page."
    },
    "creationStatus": {
      "$ref": "#/$defs/CreationStatus"
    },
    "requireTimeEntry": {
      "type": "boolean",
      "description": "Note: If your organization does not have time tracking, this field will always return false. Please contact your GUIDEcx representative for more details about time tracking."
    }
  },
  "type": "object",
  "additionalProperties": false,
  "$defs": {
    "ActiveMilestones": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "description": "An array of milestone id's that are currently active"
    },
    "CreationStatus": {
      "description": "`CreationStatus` is used to know the current status of the creation of the templates; it could take a few minutes.\nYou will not be able to correctly view the project in the application while the templates are being created.",
      "enum": [
        "created",
        "creating"
      ],
      "type": "string"
    },
    "CustomFieldType": {
      "enum": [
        "TEXT",
        "NUMBER",
        "PERCENTAGE",
        "DATE",
        "SSELECT",
        "LINK",
        "TOGGLE",
        "EMAIL"
      ],
      "type": "string"
    },
    "FixedFee": {
      "type": "string",
      "enum": [
        "fixed_fee"
      ],
      "nullable": false,
      "description": "These types are only here for documentation purposes as the actual implementation\nof this controller is in the api.core service"
    },
    "FixedFeeBillType": {
      "description": "You charge a fixed fee regardless of the number of hours you spend.\n\ntype: `fixed_fee`",
      "properties": {
        "type": {
          "$ref": "#/$defs/FixedFee"
        },
        "amount": {
          "type": "number",
          "format": "double"
        },
        "hours": {
          "type": "number",
          "format": "double"
        }
      },
      "required": [
        "type",
        "amount"
      ],
      "type": "object",
      "additionalProperties": false
    },
    "FixedRate": {
      "type": "string",
      "enum": [
        "fixed_rate"
      ],
      "nullable": false
    },
    "FixedRateBillType": {
      "description": "You charge regularly during the project based on the number of hours\nyou spend. This option requires a time category\n\ntype: `fixed_rate`",
      "properties": {
        "type": {
          "$ref": "#/$defs/FixedRate"
        },
        "timeCategoryId": {
          "type": "string",
          "description": "Organization time category to use for this project hourly rate"
        }
      },
      "required": [
        "type",
        "timeCategoryId"
      ],
      "type": "object",
      "additionalProperties": false
    },
    "Status": {
      "description": "Status of the Project",
      "enum": [
        "On Hold",
        "On Time",
        "Done",
        "Late",
        "Cancelled"
      ],
      "type": "string"
    },
    "Tags": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "description": "An array of tag id's associated with the project"
    },
    "UserContext": {
      "description": "The project context that the team member belongs to",
      "enum": [
        "provider",
        "customer",
        "third_party"
      ],
      "type": "string"
    },
    "VariableRate": {
      "type": "string",
      "enum": [
        "variable_rate"
      ],
      "nullable": false
    },
    "VariableRateBillType": {
      "description": "You charge regularly during the project based on category rates\ndefined on your project tasks. You must turn categories on in the\nTime Tracking Settings.\n\ntype: `variable_rate`",
      "properties": {
        "type": {
          "$ref": "#/$defs/VariableRate"
        }
      },
      "required": [
        "type"
      ],
      "type": "object",
      "additionalProperties": false
    }
  }
}