{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://api-evangelist.github.io/debbie-collect/json-schema/debbie-case.json", "title": "Debbie Case", "description": "A debt-collection case in the Debbie platform.", "type": "object", "properties": { "id": {"type": "string"}, "creditor_id": {"type": "string"}, "customer_id": {"type": "string"}, "reference_id": {"type": "string"}, "status": {"type": "string", "enum": ["open", "in_progress", "settled", "closed", "legal", "cancelled"]}, "principal_amount": {"type": "number"}, "currency": {"type": "string"}, "outstanding_amount": {"type": "number"}, "due_date": {"type": "string", "format": "date"}, "created_at": {"type": "string", "format": "date-time"}, "updated_at": {"type": "string", "format": "date-time"} }, "required": ["id", "creditor_id", "customer_id", "principal_amount"] }