{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$ref": "#/$defs/PaymentsResponse", "$defs": { "PaymentsResponse": { "properties": { "grouped_payments": { "additionalProperties": { "items": { "$ref": "#/$defs/RawTransaction" }, "type": "array" }, "type": "object" }, "sorted_people": { "items": { "type": "string" }, "type": "array" }, "attendance_url": { "type": "string" }, "payments_url": { "type": "string" } }, "additionalProperties": false, "type": "object", "required": [ "grouped_payments", "sorted_people", "attendance_url", "payments_url" ] }, "RawTransaction": { "properties": { "date": { "type": "string" }, "amount": { "type": "number" }, "manual_fix": { "type": "string" }, "person": { "type": "string" }, "purpose": { "type": "string" }, "inferred_amount": { "type": "number" }, "sender": { "type": "string" }, "vs": { "type": "string" }, "message": { "type": "string" }, "bank_id": { "type": "string" }, "sync_id": { "type": "string" } }, "additionalProperties": false, "type": "object", "required": [ "date", "amount", "manual_fix", "person", "purpose", "inferred_amount", "sender", "vs", "message", "bank_id", "sync_id" ] } } }