{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/d-local/main/json-schema/refunds-refund-schema.json", "title": "dLocal Refund", "type": "object", "required": ["id", "payment_id", "status", "amount", "currency"], "properties": { "id": {"type": "string"}, "payment_id": {"type": "string"}, "status": {"type": "string", "enum": ["SUCCESS", "PENDING", "REJECTED"]}, "status_code": {"type": "integer"}, "status_detail": {"type": "string"}, "amount": {"type": "number"}, "currency": {"type": "string", "pattern": "^[A-Z]{3}$"}, "created_date": {"type": "string", "format": "date-time"} } }