{ "$schema": "https://json-schema.org/draft/2020-12/schema", "title": "ReportDetails", "type": "object", "description": "The full representation of an expense report", "properties": { "reportId": { "type": "string", "description": "Unique identifier of the expense report" }, "name": { "type": "string", "description": "The name or title of the report" }, "businessPurpose": { "type": "string", "description": "The business justification for the expenses" }, "reportDate": { "type": "string", "description": "The date of the report" }, "startDate": { "type": "string", "description": "The start date of the reporting period" }, "endDate": { "type": "string", "description": "The end date of the reporting period" }, "countryCode": { "type": "string", "description": "ISO 3166-1 alpha-2 country code" }, "countrySubDivisionCode": { "type": "string", "description": "ISO 3166-2 subdivision code" }, "currencyCode": { "type": "string", "description": "ISO 4217 three-letter currency code" }, "policyId": { "type": "string", "description": "The expense policy applied to this report" }, "reportFormId": { "type": "string", "description": "The form template used for this report" }, "ledgerId": { "type": "string", "description": "The financial ledger associated with this report" }, "approvalStatus": { "type": "string", "description": "Human-readable approval status label" }, "approvalStatusId": { "type": "string", "description": "Machine-readable approval status code" }, "paymentStatus": { "type": "string", "description": "Human-readable payment status label" }, "paymentStatusId": { "type": "string", "description": "Machine-readable payment status code" }, "userId": { "type": "string", "description": "The unique identifier of the report owner" }, "isSubmitted": { "type": "boolean", "description": "Whether the report has been submitted" }, "isSentBack": { "type": "boolean", "description": "Whether the report was sent back for corrections" }, "creationDate": { "type": "string", "description": "When the report was created (ISO 8601)" }, "submitDate": { "type": "string", "description": "When the report was last submitted (ISO 8601)" }, "reportVersion": { "type": "integer", "description": "The version number, incremented on each modification" }, "customData": { "type": "array", "description": "Custom field values on the report header" }, "links": { "type": "array", "description": "HATEOAS navigation links" } } }