Modern Treasury · Schema

line_item

FintechPaymentsACHWiresTreasury

Properties

Name Type Description
id string
object string
live_mode boolean This field will be true if this object exists in the live environment or false if it exists in the test environment.
created_at string
updated_at string
itemizable_id string The ID of the payment order or expected payment.
itemizable_type string One of `payment_orders` or `expected_payments`.
amount integer Value in specified currency's smallest unit. e.g. $10 would be represented as 1000.
description string A free-form description of the line item.
metadata object Additional data represented as key-value pairs. Both the key and value must be strings.
accounting object
accounting_category_id string The ID of one of your accounting categories. Note that these will only be accessible if your accounting system has been connected.
accounting_ledger_class_id string The ID of one of the class objects in your accounting system. Class objects track segments of your business independent of client or project. Note that these will only be accessible if your accounting
View JSON Schema on GitHub

JSON Schema

modern-treasury-line-item-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/line_item",
  "title": "line_item",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "object": {
      "type": "string"
    },
    "live_mode": {
      "type": "boolean",
      "description": "This field will be true if this object exists in the live environment or false if it exists in the test environment."
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    },
    "itemizable_id": {
      "type": "string",
      "format": "uuid",
      "description": "The ID of the payment order or expected payment."
    },
    "itemizable_type": {
      "type": "string",
      "enum": [
        "ExpectedPayment",
        "PaymentOrder"
      ],
      "description": "One of `payment_orders` or `expected_payments`."
    },
    "amount": {
      "type": "integer",
      "description": "Value in specified currency's smallest unit. e.g. $10 would be represented as 1000."
    },
    "description": {
      "type": "string",
      "description": "A free-form description of the line item.",
      "nullable": true
    },
    "metadata": {
      "type": "object",
      "description": "Additional data represented as key-value pairs. Both the key and value must be strings.",
      "additionalProperties": {
        "type": "string"
      },
      "example": {
        "key": "value",
        "foo": "bar",
        "modern": "treasury"
      }
    },
    "accounting": {
      "$ref": "#/components/schemas/accounting"
    },
    "accounting_category_id": {
      "type": "string",
      "format": "uuid",
      "deprecated": true,
      "description": "The ID of one of your accounting categories. Note that these will only be accessible if your accounting system has been connected.",
      "nullable": true
    },
    "accounting_ledger_class_id": {
      "type": "string",
      "format": "uuid",
      "deprecated": true,
      "description": "The ID of one of the class objects in your accounting system. Class objects track segments of your business independent of client or project. Note that these will only be accessible if your accounting system has been connected.",
      "nullable": true
    }
  },
  "additionalProperties": false,
  "minProperties": 13,
  "required": [
    "id",
    "object",
    "live_mode",
    "created_at",
    "updated_at",
    "itemizable_id",
    "itemizable_type",
    "amount",
    "description",
    "metadata",
    "accounting",
    "accounting_category_id",
    "accounting_ledger_class_id"
  ]
}

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/modern-treasury-line-item"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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.