{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/assetlab-ca/json-schema/assetlab-ca-change-order-create-schema.json",
  "title": "ChangeOrderCreate",
  "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/ChangeOrderCreate",
  "type": "object",
  "required": [
    "co_number",
    "description",
    "amount",
    "project_id"
  ],
  "properties": {
    "co_number": {
      "type": "string",
      "maxLength": 200
    },
    "description": {
      "type": "string"
    },
    "amount": {
      "type": "number",
      "description": "Money in the organization's currency - GET /v1/organization-settings for currency_code"
    },
    "status": {
      "type": "string",
      "enum": [
        "draft",
        "submitted",
        "approved",
        "rejected"
      ]
    },
    "reason": {
      "type": "string"
    },
    "notes": {
      "type": "string"
    },
    "project_id": {
      "type": "string",
      "format": "uuid"
    },
    "vendor_id": {
      "type": "string",
      "format": "uuid"
    },
    "category_id": {
      "type": "string",
      "format": "uuid"
    }
  }
}