{"openapi":"3.1.0","info":{"title":"Marketplace Payout Match","version":"1.0.0","description":"Reconcile marketplace settlement lines against an expected transaction ledger, showing missing, unexpected and changed amounts and the bank payout variance.","contact":{"email":"jeremy@jeremycarter.ca"}},"servers":[{"url":"https://gptenv-x402-catalog.defcronyke.workers.dev"}],"paths":{"/marketplace-payout-match/v1/check":{"post":{"operationId":"marketplace_payout_match","summary":"Reconcile marketplace settlement lines against an expected transaction ledger, showing missing, unexpected and changed amounts and the bank payout variance.","x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.04"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"ledger":{"maxItems":300,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":80},"net_cents":{"type":"integer","minimum":-1000000000,"maximum":1000000000}},"required":["id","net_cents"],"additionalProperties":false}},"settlement":{"maxItems":300,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":80},"net_cents":{"type":"integer","minimum":-1000000000,"maximum":1000000000}},"required":["id","net_cents"],"additionalProperties":false}},"deposited_cents":{"type":"integer","minimum":-1000000000,"maximum":1000000000}},"required":["ledger","settlement","deposited_cents"],"additionalProperties":false},"example":{"ledger":[{"id":"sale","net_cents":500},{"id":"refund","net_cents":-100}],"settlement":[{"id":"sale","net_cents":450},{"id":"adjustment","net_cents":10}],"deposited_cents":455}}}},"responses":{"200":{"description":"Service result","content":{"application/json":{"schema":{"type":"object"},"example":{"ledger_cents":400,"statement_cents":460,"deposit_variance_cents":-5,"missing":["refund"],"unexpected":["adjustment"],"changed":[{"id":"sale","variance_cents":-50}],"balanced":false}}}},"400":{"description":"Invalid request"},"402":{"description":"x402 exact payment required on Base"},"503":{"description":"Payment unavailable"}}}}}}