{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/revolut/main/json-schema/revolut-create-accounting-category-request-schema.json",
  "title": "CreateAccountingCategoryRequest",
  "description": "The accounting category to create.",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/revolut-accounting-api-openapi.yml#/components/schemas/CreateAccountingCategoryRequest",
  "type": "object",
  "required": [
    "name",
    "code"
  ],
  "properties": {
    "name": {
      "type": "string",
      "description": "The full name for the accounting category.",
      "minLength": 1,
      "maxLength": 60
    },
    "code": {
      "type": "string",
      "description": "The code name for the accounting category.",
      "minLength": 1,
      "maxLength": 50
    },
    "default_tax_rate_id": {
      "type": "string",
      "format": "uuid",
      "description": "The ID of the default [tax rate](https://developer.revolut.com/docs/api/business#get-tax-rate) that should be applied to items in this accounting category unless overridden for a specific item."
    }
  }
}