Use the transaction field that belongs to the endpoint version. Midaz does not use one global amount field across every transaction API.
Amount fields apply to transaction-creation bodies, not every transaction endpoint. The v1 creation payloads use decimal value. The API accepts a JSON number or string. A string avoids client-side IEEE-754 rounding. The v2 direct, hold, block, unblock, and batch creation endpoints require string amount. Commit, cancel, and revert identify an existing transaction by its ID and take no amount.
Do not combine field conventions from different transaction versions. Use the API reference for the specific operation you call.
Was this page helpful?
Assistant
Responses are generated using AI and may contain mistakes.