ASAP · Schema

UpdateExpenseRequest

Body of `PATCH /v1/expenses/{id}`. A missing field is left as it is; a blank text clears it; `vat_lines`, when present, replaces all the lines.

FreelanceBillingCRMProductivity

Properties

Name Type Description
category object
currency stringnull ISO currency code.
incurred_on stringnull Day the expense was incurred, `YYYY-MM-DD`.
reference stringnull The supplier's invoice or ticket number.
supplier_name stringnull Who was paid.
total_ttc integernull Total paid, in cents.
vat_lines arraynull New VAT lines, replacing the current ones.
View JSON Schema on GitHub

JSON Schema

asap-cool-update-expense-request-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/asap-cool/json-schema/asap-cool-update-expense-request-schema.json",
  "title": "UpdateExpenseRequest",
  "description": "Body of `PATCH /v1/expenses/{id}`. A missing field is left as it is; a blank\ntext clears it; `vat_lines`, when present, replaces all the lines.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/asap-cool-expenses-api-openapi.yml#/components/schemas/UpdateExpenseRequest",
  "type": "object",
  "properties": {
    "category": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "$ref": "#/$defs/CategoryView",
          "description": "Advisory category."
        }
      ]
    },
    "currency": {
      "type": [
        "string",
        "null"
      ],
      "description": "ISO currency code."
    },
    "incurred_on": {
      "type": [
        "string",
        "null"
      ],
      "description": "Day the expense was incurred, `YYYY-MM-DD`."
    },
    "reference": {
      "type": [
        "string",
        "null"
      ],
      "description": "The supplier's invoice or ticket number."
    },
    "supplier_name": {
      "type": [
        "string",
        "null"
      ],
      "description": "Who was paid."
    },
    "total_ttc": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int64",
      "description": "Total paid, in cents."
    },
    "vat_lines": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/VatLineInput"
      },
      "description": "New VAT lines, replacing the current ones."
    }
  },
  "$defs": {
    "CategoryView": {
      "type": "string",
      "description": "Advisory expense category.",
      "enum": [
        "software",
        "hardware",
        "telecom",
        "travel",
        "meals",
        "fees",
        "insurance",
        "marketing",
        "rent",
        "training",
        "other"
      ]
    },
    "VatLineInput": {
      "type": "object",
      "description": "One VAT rate of an expense, as sent by the client.",
      "required": [
        "rate",
        "base_cents",
        "vat_cents"
      ],
      "properties": {
        "base_cents": {
          "type": "integer",
          "format": "int64",
          "description": "Amount before VAT, in cents."
        },
        "deductible_cents": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int64",
          "description": "Recoverable part of the VAT, in cents; defaults to the whole VAT."
        },
        "rate": {
          "type": "string",
          "description": "Rate in percent as a decimal token (`\"20\"`, `\"5.5\"`)."
        },
        "vat_cents": {
          "type": "integer",
          "format": "int64",
          "description": "VAT amount, in cents."
        }
      }
    }
  }
}

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/asap-cool-update-expense-request"
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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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