{"openapi":"3.1.0","info":{"title":"Stablecoin Payout Reconciler","version":"1.0.0","description":"Reconcile up to 200 expected Base USDC payouts against supplied transaction receipts. Match by transaction, recipient and amount, or supply an explicit log index.","contact":{"name":"Jeremy Carter","email":"jeremy@jeremycarter.ca"},"x-guidance":"Start with the free example at /example. POST its request as JSON to /v1/reconcile. An unsigned request quotes 0.05 USDC on Base. Compares supplied Base receipt data only. It makes no RPC calls, checks no finality, stores no inputs, and cannot move funds."},"components":{"schemas":{"ComparisonResult":{"type":"object","properties":{"matches":{"type":"boolean"},"expected_count":{"type":"integer","minimum":0,"maximum":9007199254740991},"matched_count":{"type":"integer","minimum":0,"maximum":9007199254740991},"matched_amount_micros":{"type":"string"},"findings":{"type":"array","items":{"type":"object","properties":{"reference":{"type":"string"},"codes":{"type":"array","items":{"type":"string"}},"observed":{"anyOf":[{"type":"object","properties":{"transaction_hash":{"type":"string"},"log_index":{"type":"string"},"recipient":{"type":"string"},"amount_micros":{"type":"string"}},"required":["transaction_hash","log_index","recipient","amount_micros"],"additionalProperties":false},{"type":"null"}]}},"required":["reference","codes","observed"],"additionalProperties":false}},"extra_transfers":{"type":"array","items":{"type":"object","properties":{"transaction_hash":{"type":"string"},"log_index":{"type":"string"},"recipient":{"type":"string"},"amount_micros":{"type":"string"}},"required":["transaction_hash","log_index","recipient","amount_micros"],"additionalProperties":false}}},"required":["matches","expected_count","matched_count","matched_amount_micros","findings","extra_transfers"],"additionalProperties":false}}},"paths":{"/v1/reconcile":{"post":{"operationId":"reconcile_base_usdc","summary":"Reconcile up to 200 expected Base USDC payouts against supplied transaction receipts. Match by transaction, recipient and amount, or supply an explicit log index.","x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.05"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["expected","receipts"],"properties":{"expected":{"type":"array","minItems":1,"maxItems":200,"items":{"type":"object","required":["reference","transaction_hash","recipient","amount_micros"],"properties":{"reference":{"type":"string"},"transaction_hash":{"type":"string"},"log_index":{"type":"string","description":"Optional exact transaction log index as a hexadecimal quantity"},"recipient":{"type":"string"},"amount_micros":{"type":"string","description":"USDC base units as a positive integer string"}}}},"receipts":{"type":"array","maxItems":200,"items":{"type":"object","required":["transactionHash","status","logs"],"properties":{"transactionHash":{"type":"string"},"status":{"enum":["0x0","0x1"]},"logs":{"type":"array","items":{"type":"object"}}}}}}},"example":{"expected":[{"reference":"synthetic-payout-01","transaction_hash":"0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","log_index":"0x3","recipient":"0x2222222222222222222222222222222222222222","amount_micros":"1500000"}],"receipts":[{"transactionHash":"0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","status":"0x1","logs":[{"address":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","logIndex":"0x3","topics":["0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef","0x0000000000000000000000001111111111111111111111111111111111111111","0x0000000000000000000000002222222222222222222222222222222222222222"],"data":"0x000000000000000000000000000000000000000000000000000000000016e360"}]}]}}}},"responses":{"200":{"description":"Reconciliation result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComparisonResult"},"example":{"matches":true,"expected_count":1,"matched_count":1,"matched_amount_micros":"1500000","findings":[],"extra_transfers":[]}}}},"400":{"description":"Invalid input"},"402":{"description":"Requires an x402 exact payment of 0.05 USDC on Base"}}}}}}