{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","title":"PostTransactionCommand","description":"Command to post a financial transaction to a merchant account","properties":{"accountId":{"type":"object","description":"Account identifier","properties":{"value":{"type":"string","format":"uuid","description":"The unique account UUID"}},"required":["value"]},"transactionId":{"type":"object","description":"Transaction identifier","properties":{"value":{"type":"string","format":"uuid","description":"The unique transaction UUID"}},"required":["value"]},"transactionType":{"type":"string","enum":["CHARGE","REFUND","FEE_ADDED","CHARGEBACK","TOPUP","REMITTANCE","ADJUSTMENT_CREDIT","ADJUSTMENT_DEBIT"],"description":"Type of transaction to post","example":"CHARGE"},"amount":{"type":"integer","minimum":0,"description":"Transaction amount (in smallest currency unit, e.g., 10050 = 100.50)","example":10050},"currency":{"type":"string","pattern":"^[A-Z]{3}$","description":"Currency of the transaction (ISO 4217)","example":"EUR"},"reference":{"type":"string","description":"External reference for the transaction","example":"order-12345"},"description":{"type":"string","description":"Description of the transaction","example":"Payment for order #12345"}},"required":["accountId","transactionId","transactionType","amount","currency"],"additionalProperties":false}