{"openapi":"3.1.0","info":{"title":"Overcharge-Hunter API (W4-F02)","version":"1.0.0","description":"Pure-Decimal 3-Stage B2B Invoice Overcharge Recovery Engine (Diff -> Negotiate -> Statutory/SLA/GSR Claim Packet). No Overcharge Found = $0 Fee. Zero Customer Financial Data Resale."},"servers":[{"url":"https://recover.fastmesh.dev"},{"url":"http://127.0.0.1:9022"}],"paths":{"/health":{"get":{"operationId":"getHealth","summary":"Service health, rules matrix status, and zero-resale policy flags","responses":{"200":{"description":"Healthy"}}}},"/openapi.json":{"get":{"operationId":"getOpenApi","summary":"OpenAPI 3.1.0 specification","responses":{"200":{"description":"OpenAPI document"}}}},"/v1/recover/audit":{"post":{"operationId":"recoverAudit","summary":"Stage 1 — Polymorphic Pure-Decimal Diff Audit","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"domain":{"type":"string","enum":["auto","cloud_billing","parcel_freight","saas_billing","agency_sow","commercial_invoice"],"default":"auto"},"invoice":{"description":"CSV string, JSON list/object, EDI X12 block, or structured text invoice."},"contract":{"description":"Contracted rate card, discount schedule, DIM divisor, or SOW role rates."},"sla_events":{"type":"array","items":{"type":"object"}},"gsr_events":{"type":"array","items":{"type":"object"}},"late_payment":{"type":"object"},"jurisdiction":{"type":"string","enum":["US-FED","US-NY","US-CA","US-TX","US-DE","EU","UK"]},"days_overdue":{"type":"integer"},"fx_rates":{"type":"object"},"negotiation_context":{"type":"object"},"tenant_id":{"type":"string"},"max_cost_micros":{"type":"integer","default":2000000},"no_cache":{"type":"boolean","default":false}}}}}},"responses":{"200":{"description":"Pure-Decimal recovery response (strict $0 billing when total_recoverable_usd == '0.00')."},"422":{"description":"Unbilled ($0) validation, malformed input, or security rejection."}}}},"/v1/recover/negotiate":{"post":{"operationId":"recoverNegotiate","summary":"Stage 2 — Multi-Round Negotiation Playbook & Concession Ladder","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"domain":{"type":"string","enum":["auto","cloud_billing","parcel_freight","saas_billing","agency_sow","commercial_invoice"],"default":"auto"},"invoice":{"description":"CSV string, JSON list/object, EDI X12 block, or structured text invoice."},"contract":{"description":"Contracted rate card, discount schedule, DIM divisor, or SOW role rates."},"sla_events":{"type":"array","items":{"type":"object"}},"gsr_events":{"type":"array","items":{"type":"object"}},"late_payment":{"type":"object"},"jurisdiction":{"type":"string","enum":["US-FED","US-NY","US-CA","US-TX","US-DE","EU","UK"]},"days_overdue":{"type":"integer"},"fx_rates":{"type":"object"},"negotiation_context":{"type":"object"},"tenant_id":{"type":"string"},"max_cost_micros":{"type":"integer","default":2000000},"no_cache":{"type":"boolean","default":false}}}}}},"responses":{"200":{"description":"Pure-Decimal recovery response (strict $0 billing when total_recoverable_usd == '0.00')."},"422":{"description":"Unbilled ($0) validation, malformed input, or security rejection."}}}},"/v1/recover/claim-packet":{"post":{"operationId":"recoverClaimPacket","summary":"Stage 3 — Statutory Interest, SLA Credits, GSR Refunds & SHA-256 Claim Packet","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"domain":{"type":"string","enum":["auto","cloud_billing","parcel_freight","saas_billing","agency_sow","commercial_invoice"],"default":"auto"},"invoice":{"description":"CSV string, JSON list/object, EDI X12 block, or structured text invoice."},"contract":{"description":"Contracted rate card, discount schedule, DIM divisor, or SOW role rates."},"sla_events":{"type":"array","items":{"type":"object"}},"gsr_events":{"type":"array","items":{"type":"object"}},"late_payment":{"type":"object"},"jurisdiction":{"type":"string","enum":["US-FED","US-NY","US-CA","US-TX","US-DE","EU","UK"]},"days_overdue":{"type":"integer"},"fx_rates":{"type":"object"},"negotiation_context":{"type":"object"},"tenant_id":{"type":"string"},"max_cost_micros":{"type":"integer","default":2000000},"no_cache":{"type":"boolean","default":false}}}}}},"responses":{"200":{"description":"Pure-Decimal recovery response (strict $0 billing when total_recoverable_usd == '0.00')."},"422":{"description":"Unbilled ($0) validation, malformed input, or security rejection."}}}},"/v1/recover/full-pipeline":{"post":{"operationId":"recoverFullPipeline","summary":"Full 3-Stage Recovery Pipeline (Diff -> Negotiate -> Claim Packet)","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"domain":{"type":"string","enum":["auto","cloud_billing","parcel_freight","saas_billing","agency_sow","commercial_invoice"],"default":"auto"},"invoice":{"description":"CSV string, JSON list/object, EDI X12 block, or structured text invoice."},"contract":{"description":"Contracted rate card, discount schedule, DIM divisor, or SOW role rates."},"sla_events":{"type":"array","items":{"type":"object"}},"gsr_events":{"type":"array","items":{"type":"object"}},"late_payment":{"type":"object"},"jurisdiction":{"type":"string","enum":["US-FED","US-NY","US-CA","US-TX","US-DE","EU","UK"]},"days_overdue":{"type":"integer"},"fx_rates":{"type":"object"},"negotiation_context":{"type":"object"},"tenant_id":{"type":"string"},"max_cost_micros":{"type":"integer","default":2000000},"no_cache":{"type":"boolean","default":false}}}}}},"responses":{"200":{"description":"Pure-Decimal recovery response (strict $0 billing when total_recoverable_usd == '0.00')."},"422":{"description":"Unbilled ($0) validation, malformed input, or security rejection."}}}},"/webhooks/creem":{"post":{"operationId":"creemWebhook","summary":"Idempotent Creem.io HMAC-SHA256 payment webhook settlement","responses":{"200":{"description":"Settled or idempotent duplicate"},"401":{"description":"Invalid creem-signature digest"},"400":{"description":"Malformed JSON payload"}}}},"/mcp":{"post":{"operationId":"mcpEndpoint","summary":"JSON-RPC 2.0 Model Context Protocol endpoint (initialize, tools/list, tools/call)","responses":{"200":{"description":"JSON-RPC 2.0 response"}}}}}}