{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","title":"ReservationCommand","description":"Command to reserve an amount in a merchant account","properties":{"accountId":{"type":"object","description":"Account identifier","properties":{"value":{"type":"string","format":"uuid","description":"The unique account UUID"}},"required":["value"]},"reservationId":{"type":"object","description":"Reservation identifier","properties":{"value":{"type":"string","format":"uuid","description":"The unique reservation UUID"}},"required":["value"]},"amount":{"type":"integer","minimum":0,"description":"Amount to reserve (in smallest currency unit, e.g., 25000 = 250.00)","example":25000},"currency":{"type":"string","pattern":"^[A-Z]{3}$","description":"Currency of the reservation (ISO 4217)","example":"EUR"},"accountType":{"type":"string","description":"Type of account for the reservation","example":"MerchantDebt"},"reference":{"type":"string","description":"External reference for the reservation","example":"refund-prep-67890"}},"required":["accountId","reservationId","amount","currency","accountType"],"additionalProperties":false}