{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://api.exactrows.com/specs/exactrows-receipt-v1.json","title":"ExactRows-Receipt-v1","type":"object","additionalProperties":false,"required":["receiptVersion","receiptId","timestampUtc","engineVersion","endpoint","retentionMode","inputSha256","outputSha256","reconciliationMath","repairsApplied","ed25519Signature"],"properties":{"receiptVersion":{"const":"ExactRows-Receipt-v1"},"receiptId":{"type":"string","pattern":"^rcpt_[A-Za-z0-9]{16,40}$"},"timestampUtc":{"type":"string","format":"date-time"},"engineVersion":{"type":"string","pattern":"^[0-9]+\\.[0-9]+\\.[0-9]+$"},"endpoint":{"type":"string"},"clientId":{"type":["string","null"]},"issuerDisplayName":{"type":["string","null"]},"retentionMode":{"enum":["none","ephemeral_batch_ttl"]},"inputSha256":{"type":"string","pattern":"^[a-f0-9]{64}$"},"outputSha256":{"type":"string","pattern":"^[a-f0-9]{64}$"},"reconciliationMath":{"type":"object","required":["currency","openingCents","creditsCents","debitsCents","closingCents","deltaCents","balanced"],"properties":{"currency":{"type":"string","minLength":3,"maxLength":3},"openingCents":{"type":"integer"},"creditsCents":{"type":"integer"},"debitsCents":{"type":"integer"},"closingCents":{"type":"integer"},"deltaCents":{"type":"integer"},"balanced":{"type":"boolean"},"transactionCount":{"type":"integer","minimum":0}}},"repairsApplied":{"type":"array","items":{"type":"object","required":["code","rule","description","affectedCount"],"properties":{"code":{"type":"string"},"rule":{"type":"string"},"before":{"type":["string","null"]},"after":{"type":["string","null"]},"description":{"type":"string"},"affectedCount":{"type":"integer","minimum":1}}}},"rowConfidenceSummary":{"type":["object","null"],"properties":{"min":{"type":"number","minimum":0,"maximum":1},"mean":{"type":"number","minimum":0,"maximum":1},"lowConfidenceRowIndices":{"type":"array","items":{"type":"integer","minimum":0}}}},"ed25519Signature":{"type":"string"}}}