{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/lightspeed/main/json-schema/lightspeed-customer-group-schema.json",
  "title": "Customer Group",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/lightspeed-customer-groups-api-openapi.yml#/components/schemas/CustomerGroup",
  "properties": {
    "created_at": {
      "description": "Creation timestamp in UTC.",
      "type": "string"
    },
    "deleted_at": {
      "description": "Deletion timestamp in UTC.",
      "type": [
        "string",
        "null"
      ]
    },
    "group_id": {
      "description": "The customer group identifier.",
      "type": "string"
    },
    "id": {
      "description": "Auto-generated object ID.",
      "type": "string"
    },
    "name": {
      "description": "The customer group name.",
      "type": "string"
    },
    "retailer_id": {
      "description": "The retailer identifier",
      "type": "string"
    },
    "updated_at": {
      "description": "Last update timestamp in UTC.",
      "type": "string"
    },
    "version": {
      "description": "Auto-incrementing object version number.",
      "format": "int64",
      "type": "integer"
    }
  },
  "required": [
    "name"
  ],
  "type": "object"
}