{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pluggy/json-schema/pluggy-create-client-category-rule-schema.json",
  "title": "CreateClientCategoryRule",
  "description": "Create client category rule",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pluggy-category-api-openapi.yml#/components/schemas/CreateClientCategoryRule",
  "properties": {
    "description": {
      "type": "string",
      "description": "Description of the transaction rule."
    },
    "categoryId": {
      "type": "string",
      "description": "Identifier of the category"
    },
    "transactionType": {
      "type": "string",
      "description": "Transaction type (DEBIT/CREDIT)"
    },
    "accountType": {
      "type": "string",
      "description": "Account type (CHECKING_ACCOUNT/CREDIT_CARD)"
    },
    "matchType": {
      "type": "string",
      "description": "Type of match used to identify the rule (exact/contains/startsWith/endsWith), if not provided, defaults to 'exact'"
    }
  },
  "type": "object",
  "required": [
    "description",
    "categoryId"
  ]
}