{"slug":"api-zfinia-com-x402-v1-currency-minor-unit-audit-79e96b","title":"Check that each amount can exist in the currency it names","host":"api.zfinia.com","method":"POST","resource":"https://api.zfinia.com/x402/v1/currency-minor-unit-audit","category":"code","description":"Check that each amount can exist in the currency it names. Reports an amount needing more decimal places than its currency has, where a currency with no sub-unit cannot hold a fraction at all. Also reports an amount that arrived as a JSON number rather than a decimal string, since a binary double ca","price_listed":0.14,"price_asked":0.14,"state":"answering","state_label":"Answering","checks_7d":1,"answered_7d":1,"latency_ms_median":7079,"reported_calls_30d":1,"reported_payers_30d":1,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"amounts":[{"amount":"19.99","currency":"AUD","id":"A-1"},{"amount":"1250.50","currency":"JPY","id":"A-2"},{"amount":"12.345","currency":"KWD","id":"A-3"},{"amount":0.1,"currency":"USD","id":"A-4"},{"amount":"0.00000001","currency":"Bitcoin","id":"A-5"},{"amount":"19.990","currency":"AUD","id":"A-6"}],"permitted_currencies":["AUD","USD","JPY","KWD"]},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"additionalProperties":false,"properties":{"amounts":{"items":{"additionalProperties":false,"properties":{"amount":{"type":["string","number"]},"currency":{"maxLength":8,"type":"string"},"id":{"maxLength":128,"type":"string"}},"required":["currency","amount"],"type":"object"},"maxItems":20000,"minItems":1,"type":"array"},"minor_units":{"type":"object"},"permitted_currencies":{"items":{"maxLength":8,"type":"string"},"maxItems":200,"minItems":1,"type":"array"}},"required":["amounts"],"type":"object"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-10-04","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.14,"price_match":true,"latency_ms":7079,"error":null}],"description_full":"Check that each amount can exist in the currency it names. Reports an amount needing more decimal places than its currency has, where a currency with no sub-unit cannot hold a fraction at all. Also reports an amount that arrived as a JSON number rather than a decimal string, since a binary double cannot hold most two-place decimals exactly, so the digits may already differ from what was written.","last_updated":"2026-10-04T08:39:45.897Z","schemes":["exact"]}