{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/moneyhub/main/json-schema/moneyhub-transaction-split-schema.json", "title": "TransactionSplit", "x-generated": "2026-10-12", "x-method": "derived", "x-generator": "derive-json-schema.py", "x-source": "openapi/moneyhub-transactions-api-openapi.yml#/components/schemas/TransactionSplit", "additionalProperties": false, "properties": { "amount": { "properties": { "value": { "description": "The amount of the transaction in minor units of the currency, eg. pennies for GBP, negative means money going out of an account, positive means money coming into an account.", "type": "integer" }, "majorUnits": { "description": "The major units of the value, based on the values currency, eg. pounds for GBP.", "type": "integer" }, "minorUnits": { "description": "The minor units of the value, based on the values currency, eg. pennies for GBP.", "type": "integer" }, "currency": { "description": "The currency of the amount", "type": "string" } } }, "categoryId": { "description": "The category id. Standard categories are prefixed with 'std', custom categories are prefixed with 'cus'", "type": "string", "pattern": "^(std|cus):(\\w|-)+$" }, "description": { "description": "A description of the transaction split", "type": "string" }, "id": { "description": "The unique id of the transaction split", "type": "string" }, "projectId": { "description": "The project ID the transaction is associated with", "type": "string" } }, "required": [ "amount", "categoryId", "description", "id" ], "type": "object" }