Frihet · Schema

ExpenseCreate

Business ManagementInvoicingExpense TrackingCRMSoftware-as-a-Service

Properties

Name Type Description
description string Expense description
amount number Expense amount
date string Expense date in ISO format
paidDate stringnull Effective payment date (fecha de pago, YYYY-MM-DD). Drives cash-basis period assignment for Modelos 111/115/130. When absent: under accrual (devengo) criteria the expense `date` is used; under the opt
category string Expense category
vendor string Vendor or supplier name
taxDeductible boolean Whether the expense is tax deductible
currency string ISO 4217 transaction currency. Defaults to EUR.
exchangeRate number Exchange rate used to convert amount into functionalCurrency.
exchangeRateSource string Source/provider of the exchange rate snapshot.
exchangeRateDate string Exchange rate date (YYYY-MM-DD).
functionalCurrency string Workspace/reporting currency. Defaults to EUR.
functionalAmount number Amount converted into functionalCurrency.
attachments array
recurring object
View JSON Schema on GitHub

JSON Schema

frihet-io-expense-create-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/frihet-io/json-schema/frihet-io-expense-create-schema.json",
  "title": "ExpenseCreate",
  "x-generated": "2026-11-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/frihet-io-openapi.json#/components/schemas/ExpenseCreate",
  "type": "object",
  "required": [
    "description",
    "amount"
  ],
  "properties": {
    "description": {
      "type": "string",
      "description": "Expense description"
    },
    "amount": {
      "type": "number",
      "description": "Expense amount"
    },
    "date": {
      "type": "string",
      "format": "date",
      "description": "Expense date in ISO format"
    },
    "paidDate": {
      "type": [
        "string",
        "null"
      ],
      "format": "date",
      "description": "Effective payment date (fecha de pago, YYYY-MM-DD). Drives cash-basis period assignment for Modelos 111/115/130. When absent: under accrual (devengo) criteria the expense `date` is used; under the opt-in Modelo 130 cash-basis criterion (criterio de cobros y pagos) an absent paidDate means not yet paid and the expense is excluded until paid. On PATCH, an explicit null clears the field."
    },
    "category": {
      "type": "string",
      "description": "Expense category"
    },
    "vendor": {
      "type": "string",
      "description": "Vendor or supplier name"
    },
    "taxDeductible": {
      "type": "boolean",
      "description": "Whether the expense is tax deductible"
    },
    "currency": {
      "type": "string",
      "minLength": 3,
      "maxLength": 3,
      "description": "ISO 4217 transaction currency. Defaults to EUR.",
      "default": "EUR"
    },
    "exchangeRate": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "Exchange rate used to convert amount into functionalCurrency."
    },
    "exchangeRateSource": {
      "type": "string",
      "maxLength": 200,
      "description": "Source/provider of the exchange rate snapshot."
    },
    "exchangeRateDate": {
      "type": "string",
      "format": "date",
      "description": "Exchange rate date (YYYY-MM-DD)."
    },
    "functionalCurrency": {
      "type": "string",
      "minLength": 3,
      "maxLength": 3,
      "description": "Workspace/reporting currency. Defaults to EUR.",
      "default": "EUR"
    },
    "functionalAmount": {
      "type": "number",
      "description": "Amount converted into functionalCurrency."
    },
    "attachments": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/FileAttachment"
      },
      "readOnly": true
    },
    "recurring": {
      "$ref": "#/$defs/ExpenseRecurringConfig"
    }
  },
  "$defs": {
    "ExpenseRecurringConfig": {
      "type": "object",
      "required": [
        "enabled",
        "frequency",
        "nextDate"
      ],
      "description": "Recurring expense configuration. Set on a template expense to auto-generate copies on schedule.",
      "properties": {
        "enabled": {
          "type": "boolean",
          "description": "Whether recurring generation is active"
        },
        "frequency": {
          "type": "string",
          "enum": [
            "weekly",
            "biweekly",
            "monthly",
            "quarterly",
            "yearly"
          ],
          "description": "How often to generate a new expense"
        },
        "nextDate": {
          "type": "string",
          "format": "date",
          "description": "Next scheduled generation date (ISO YYYY-MM-DD)"
        },
        "endDate": {
          "type": "string",
          "format": "date",
          "description": "Stop generating after this date (optional)"
        },
        "maxOccurrences": {
          "type": "integer",
          "minimum": 1,
          "description": "Maximum number of expenses to generate (optional)"
        },
        "occurrencesGenerated": {
          "type": "integer",
          "readOnly": true,
          "description": "Number of expenses generated so far (server-managed, read-only)"
        }
      }
    },
    "FileAttachment": {
      "type": "object",
      "required": [
        "fileId",
        "originalName",
        "contentType",
        "size"
      ],
      "additionalProperties": false,
      "properties": {
        "fileId": {
          "type": "string",
          "minLength": 8,
          "maxLength": 128,
          "pattern": "^[A-Za-z0-9_-]+$",
          "description": "Opaque uploaded file reference. Not a path or URL."
        },
        "originalName": {
          "type": "string",
          "minLength": 1,
          "maxLength": 255,
          "description": "Filename only; local paths are rejected."
        },
        "contentType": {
          "type": "string",
          "enum": [
            "application/pdf",
            "image/jpeg",
            "image/jpg",
            "image/png",
            "image/webp",
            "image/heic",
            "image/heif",
            "image/tiff"
          ]
        },
        "size": {
          "type": "integer",
          "minimum": 1,
          "maximum": 10485760
        },
        "checksumSha256": {
          "type": "string",
          "pattern": "^[A-Fa-f0-9]{64}$"
        }
      }
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/frihet-io-expense-create"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.