{"openapi":"3.1.0","info":{"title":"Measured Receipts","version":"1.0.0","description":"Batch audit of up to five finalized Base USDC receipts against an expected payee, amount and optional payer."},"servers":[{"url":"https://measured-receipts.worker.beacon.host"}],"paths":{"/v1/receipt-report":{"post":{"operationId":"reconcileBaseUsdcReceipts","summary":"Batch audit of up to five finalized Base USDC receipts against an expected payee, amount and optional payer.","x-payment-info":{"protocols":["x402"],"price":{"mode":"fixed","currency":"USD","amount":"0.01"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["items"],"properties":{"items":{"type":"array","minItems":1,"maxItems":5,"items":{"type":"object","required":["tx","receiver","amount"],"properties":{"tx":{"type":"string","pattern":"^0x[a-fA-F0-9]{64}$","description":"Base mainnet transaction hash"},"receiver":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$","description":"Expected USDC payee"},"sender":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$","description":"Optional expected USDC payer"},"amount":{"type":"string","description":"Expected positive USDC amount with up to six decimal places"}}}}}},"example":{"items":[{"tx":"0x9f13f70df88a3fd7aff189b4e2f22559a9d3e3a279d37d0c5c77edcf9d5bec1d","receiver":"0xd2bc8f9852180f6251fe6e01e42bc64f79dba209","amount":"0.01"}]}}}},"responses":{"200":{"description":"Reconciliation report with finalized block, observed amounts, and matching log indices","content":{"application/json":{"schema":{"type":"object","required":["network","token","decimals","finalizedBlock","finalizedBlockHash","results"],"properties":{"network":{"type":"string","enum":["eip155:8453"]},"token":{"type":"string"},"decimals":{"type":"integer"},"finalizedBlock":{"type":"integer"},"finalizedBlockHash":{"type":"string"},"results":{"type":"array","minItems":1,"maxItems":5,"items":{"type":"object","required":["tx","receiver","expectedAtomic","status"],"properties":{"tx":{"type":"string"},"receiver":{"type":"string"},"expectedAtomic":{"type":"string"},"status":{"type":"string","enum":["matched","amount_mismatch","reverted","pending_finality","receipt_missing"]},"observedAtomic":{"type":"string"},"matchingLogIndices":{"type":"array","items":{"type":"integer"}},"otherUSDCReceivers":{"type":"array","items":{"type":"string"}}}}}}}}}},"400":{"description":"Invalid request body"},"402":{"description":"x402 Base USDC payment required"},"503":{"description":"Base receipt lookup unavailable"}}}}}}