{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/fis/main/json-schema/fis-get-customer-response-dto-schema.json", "title": "GetCustomerResponseDto", "x-generated": "2026-10-12", "x-method": "derived", "x-generator": "derive-json-schema.py", "x-source": "openapi/fis-customer-api-openapi.yml#/components/schemas/GetCustomerResponseDto", "type": "object", "properties": { "pagination": { "$ref": "#/$defs/PaginationMetaData" }, "count": { "type": "number", "readOnly": true, "format": "integer", "deprecated": true }, "meta": { "$ref": "#/$defs/ListReportMetaData" }, "data": { "type": "array", "items": { "$ref": "#/$defs/GetCustomerData" } } }, "required": [ "pagination", "count", "meta", "data" ], "$defs": { "Address": { "type": "object", "properties": { "line1": { "type": "string" }, "line2": { "type": "string" }, "city": { "type": "string" }, "region": { "type": "string" }, "country": { "type": "string" }, "postalCode": { "type": "string" }, "type": { "type": "string", "enum": [ "billing", "shipping", "other" ] } }, "required": [ "type" ] }, "Contact": { "type": "object", "properties": { "name": { "type": "string" }, "email": { "type": "string" }, "phone": { "type": "string" }, "address": { "$ref": "#/$defs/Address" }, "status": { "type": "string", "enum": [ "unknown", "active", "archived" ] }, "modifiedDate": { "type": "string" } }, "required": [ "status" ] }, "CurrencyRef": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "symbol": { "type": "string" } }, "required": [ "id" ] }, "GetCustomerData": { "type": "object", "properties": { "id": { "type": "string" }, "customerName": { "type": "string" }, "contactName": { "type": "string" }, "emailAddress": { "type": "string" }, "website": { "type": "string" }, "phone": { "type": "string" }, "taxNumber": { "type": "string" }, "balance": { "type": "number", "format": "float" }, "status": { "type": "string", "enum": [ "unknown", "active", "archived" ] }, "subsidiaryRefs": { "type": "array", "items": { "$ref": "#/$defs/SubsidiaryRef" } }, "sourceModifiedDate": { "type": "string" }, "parentRef": { "$ref": "#/$defs/ParentRef" }, "contacts": { "type": "array", "items": { "$ref": "#/$defs/Contact" } }, "defaultCurrency": { "$ref": "#/$defs/CurrencyRef" }, "addresses": { "type": "array", "items": { "$ref": "#/$defs/Address" } } }, "required": [ "id", "customerName", "status" ] }, "ListReportMetaData": { "type": "object", "properties": { "reportId": { "readOnly": true, "type": "array", "items": { "type": "string" } }, "serviceName": { "type": "string", "readOnly": true, "enum": [ "freshbooks", "quickbooks", "quickbooksDesktop", "xero", "oracleNetsuite", "sageBusinessCloud", "sageIntacct", "dynamicsBusinessCentral", "dynamics365Finance", "wave", "myob", "zohoBooks", "byod" ] }, "businessName": { "type": "string", "readOnly": true }, "createdAt": { "type": "string", "readOnly": true, "format": "date-time" }, "updatedAt": { "type": "string", "format": "date-time", "readOnly": false } }, "required": [ "reportId", "serviceName", "businessName", "createdAt", "updatedAt" ] }, "PaginationMetaData": { "type": "object", "properties": { "offset": { "type": "number", "readOnly": true }, "limit": { "type": "number", "readOnly": true }, "count": { "type": "number", "readOnly": true } }, "required": [ "offset", "limit", "count" ] }, "ParentRef": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" } }, "required": [ "id" ] }, "SubsidiaryRef": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" } } } } }