{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/assetlab-ca/json-schema/assetlab-ca-change-order-schema.json",
  "title": "ChangeOrder",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/assetlab-ca-change-orders-api-openapi.yml#/components/schemas/ChangeOrder",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "co_number": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "reason": {
      "type": "string"
    },
    "amount": {
      "type": "number",
      "description": "Positive for cost increases, negative for credits. Money in the organization's currency - GET /v1/organization-settings for currency_code"
    },
    "status": {
      "type": "string",
      "enum": [
        "draft",
        "submitted",
        "approved",
        "rejected"
      ]
    },
    "project_id": {
      "type": "string",
      "format": "uuid"
    },
    "vendor_id": {
      "type": "string",
      "format": "uuid"
    },
    "category_id": {
      "type": "string",
      "format": "uuid"
    },
    "approved_by": {
      "type": "string"
    },
    "approved_at": {
      "type": "string",
      "format": "date-time"
    },
    "notes": {
      "type": "string"
    },
    "created_by": {
      "type": "string"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    }
  }
}