{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/canopyservicing-com/json-schema/canopyservicing-com-post-advance-body-schema.json",
  "title": "PostAdvanceBody",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/canopyservicing-com-advances-api-openapi.yml#/components/schemas/PostAdvanceBody",
  "properties": {
    "description": {
      "type": "string",
      "title": "Description",
      "description": "A brief description of the advance",
      "hidden": false
    },
    "effective_at": {
      "type": "string",
      "title": "Effective At",
      "description": "The date and time when the advance becomes effective",
      "hidden": false
    },
    "advance_amount_cents": {
      "type": "integer",
      "title": "Advance Amount (Cents)",
      "description": "The amount of the advance in the smallest unit of the currency (e.g., cents for USD)",
      "hidden": false
    },
    "fee_amount_cents": {
      "type": "integer",
      "title": "Fee Amount (Cents)",
      "description": "The fee for the advance in the smallest unit of the currency (e.g., cents for USD)",
      "hidden": false
    },
    "currency": {
      "type": "string",
      "title": "Currency",
      "description": "The ISO 4217 3-letter currency code of the advance",
      "default": "USD",
      "hidden": false
    },
    "term_length": {
      "type": "integer",
      "title": "Term Length",
      "description": "The number of cycles for the advance",
      "hidden": false
    },
    "cycle_interval": {
      "type": "string",
      "enum": [
        "DAILY",
        "WEEKLY",
        "MONTHLY",
        "DAYS_30"
      ],
      "title": "Cycle Interval",
      "description": "The interval between each cycle for the advance",
      "hidden": false
    },
    "first_cycle_interval": {
      "type": "string",
      "title": "First Cycle Interval",
      "description": "The interval for the first cycle, if different from the standard cycle interval"
    },
    "template_id": {
      "type": "string",
      "title": "Template ID",
      "description": "The ID of the policy template for the advance",
      "hidden": false
    }
  },
  "type": "object",
  "required": [
    "description",
    "effective_at",
    "advance_amount_cents",
    "fee_amount_cents",
    "term_length",
    "cycle_interval",
    "template_id"
  ]
}