{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/canopyservicing-com/json-schema/canopyservicing-com-create-fee-schema-schema.json",
  "title": "CreateFeeSchema",
  "description": "Request schema for creating a fee on a line of credit.",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/canopyservicing-com-fees-api-openapi.yml#/components/schemas/CreateFeeSchema",
  "properties": {
    "fee_id": {
      "type": "string",
      "title": "Fee Id",
      "description": "The ID associated to be with the fee for future requests. If not provided on fee creation, Canopy will generate this field."
    },
    "amount_cents": {
      "type": "integer",
      "title": "Amount Cents",
      "description": "The amount of the fee",
      "hidden": false
    },
    "fee_type": {
      "type": "string",
      "title": "Fee Type",
      "description": "The type of fee to create",
      "hidden": false
    },
    "interest_rate_percent": {
      "type": "number",
      "title": "Interest Rate Percent",
      "description": "The annual interest rate to apply to the fee as a percentage (e.g., 5.0 for 5%)"
    },
    "metadata": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "items": {
            "additionalProperties": true,
            "type": "object"
          },
          "type": "array"
        },
        {
          "items": {},
          "type": "array"
        }
      ],
      "maxLength": 100,
      "title": "Metadata",
      "description": "Metadata that can be associated with the fee"
    }
  },
  "type": "object",
  "required": [
    "amount_cents",
    "fee_type"
  ]
}