{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/membranelabs-com/main/json-schema/membranelabs-com-post-v2-loans-loanid-fees-request-schema.json",
  "title": "PostV2LoansLoanidFeesRequest",
  "x-generated": "2026-10-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/membranelabs-com-openapi-generated.yml#/components/schemas/PostV2LoansLoanidFeesRequest",
  "type": "object",
  "properties": {
    "amount": {
      "type": "string",
      "description": "Fee amount as a decimal string"
    },
    "assetId": {
      "type": "string",
      "description": "Asset ID that the fee is denominated in"
    },
    "type": {
      "type": "string",
      "description": "Type of fee"
    },
    "billedTo": {
      "type": "string",
      "description": "Party responsible for paying the fee. Use \"lender\" or \"borrower\" to refer to the loan participants, or provide an explicit profile ID."
    },
    "metadata": {
      "type": "string",
      "description": "Optional display and audit metadata for the fee"
    },
    "pastDueWindow": {
      "type": "string",
      "description": "Grace period after the due date before the fee is marked as past due"
    },
    "dueDate": {
      "type": "string",
      "description": "Date by which the fee must be paid, in ISO 8601 format"
    }
  },
  "required": [
    "amount",
    "assetId",
    "type",
    "billedTo",
    "pastDueWindow",
    "dueDate"
  ]
}