{"openapi":"3.1.0","info":{"title":"Sentinel-Gate Reference Treasury & Payouts API","version":"0.2.0","description":"Clean baseline origin OpenAPI 3.1 specification. Decoy routes and field canaries are injected dynamically in memory by t800-edge-sensor."},"paths":{"/api/v1/payouts/destination":{"get":{"operationId":"getPayoutDestination","summary":"Read current settlement bank account state","parameters":[{"name":"accountId","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Current payout destination and canonical pre-state"}}},"post":{"operationId":"updatePayoutDestination","summary":"Update settlement bank account (protected by MandateV1 in ENFORCE mode)","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayoutUpdateDto"}}}},"responses":{"200":{"description":"Payout destination updated"},"422":{"description":"PARAMS_HASH_MISMATCH"}}}},"/api/v1/treasury/withdraw":{"post":{"operationId":"treasuryWithdraw","summary":"Execute treasury transfer in integer minor units","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TreasuryWithdrawDto"}}}},"responses":{"200":{"description":"Withdrawal committed"},"409":{"description":"MANDATE_REPLAYED or PRE_STATE_DRIFT"}}}},"/api/v1/internal/tpa-balance-sync":{"post":{"operationId":"post_api_v1_internal_tpa_balance_sync","summary":"Internal state synchronization endpoint","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"account_id":{"type":"string"},"sync_token":{"type":"string"}}}}}},"responses":{"200":{"description":"Synchronization completed"}}}}},"components":{"schemas":{"PayoutUpdateDto":{"type":"object","required":["accountId","bankBic","newAccountNo"],"properties":{"accountId":{"type":"string","example":"acct_demo_88210"},"bankBic":{"type":"string","example":"TESTMYKL"},"newAccountNo":{"type":"string","example":"0000-8888-1234"},"currency":{"type":"string","example":"MYR"},"_bypass_cooldown":{"type":"boolean","description":"Optional internal fast-track control flag"}}},"TreasuryWithdrawDto":{"type":"object","required":["accountId","amount_minor"],"properties":{"accountId":{"type":"string","example":"acct_demo_88210"},"amount_minor":{"type":"string","example":"4000000"},"reference":{"type":"string","example":"settlement_batch_01"}}}}}}