{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/fis/main/json-schema/fis-ap-aging-response-dto-schema.json", "title": "ApAgingResponseDto", "x-generated": "2026-10-12", "x-method": "derived", "x-generator": "derive-json-schema.py", "x-source": "openapi/fis-aging-api-openapi.yml#/components/schemas/ApAgingResponseDto", "type": "object", "properties": { "pagination": { "$ref": "#/$defs/PaginationMetaData" }, "count": { "type": "integer", "readOnly": true }, "reports": { "readOnly": true, "type": "array", "items": { "$ref": "#/$defs/ApAgingReport" } } }, "required": [ "pagination", "count", "reports" ], "$defs": { "ApAgingDataV1": { "type": "object", "properties": { "vendorRef": { "$ref": "#/$defs/ApAgingVendorRef" }, "current": { "type": "number", "format": "float", "readOnly": false }, "dpd30": { "type": "number", "format": "float", "readOnly": false }, "dpd60": { "type": "number", "format": "float", "readOnly": false }, "dpd90": { "type": "number", "format": "float", "readOnly": false }, "dpd90+": { "type": "number", "format": "float", "readOnly": false }, "total": { "type": "number", "format": "float", "readOnly": false }, "currencyRef": { "$ref": "#/$defs/ApArAgingCurrencyRef" } }, "required": [ "dpd30", "dpd60", "dpd90", "total" ] }, "ApAgingMetaData": { "type": "object", "properties": { "reportId": { "readOnly": true, "type": "array", "items": { "type": "string" } }, "serviceName": { "type": "string", "readOnly": true, "enum": [ "quickbooks", "xero", "freshbooks", "quickbooksDesktop", "sageIntacct", "sageBusinessCloud", "oracleNetsuite", "dynamicsBusinessCentral", "dynamics365Finance", "wave", "zohoBooks", "myob" ] }, "businessName": { "type": "string", "readOnly": true }, "startDate": { "type": "string", "readOnly": true, "format": "date-time" }, "endDate": { "type": "string", "readOnly": true, "format": "date-time" }, "createdAt": { "type": "string", "readOnly": true, "format": "date-time" }, "updatedAt": { "type": "string", "format": "date-time", "readOnly": false }, "reportFrequency": { "type": "string", "readOnly": true } }, "required": [ "reportId", "serviceName", "businessName", "startDate", "endDate", "createdAt", "updatedAt", "reportFrequency" ] }, "ApAgingReport": { "type": "object", "properties": { "meta": { "$ref": "#/$defs/ApAgingMetaData" }, "data": { "type": "array", "items": { "$ref": "#/$defs/ApAgingDataV1" } } }, "required": [ "meta", "data" ] }, "ApAgingVendorRef": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" } } }, "ApArAgingCurrencyRef": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "symbol": { "type": "string" } }, "required": [ "id" ] }, "PaginationMetaData": { "type": "object", "properties": { "offset": { "type": "number", "readOnly": true }, "limit": { "type": "number", "readOnly": true }, "count": { "type": "number", "readOnly": true } }, "required": [ "offset", "limit", "count" ] } } }