{"openapi":"3.1.0","info":{"title":"Tender Addendum Tracker","version":"1.0.0","description":"Compare complete OCDS tender snapshots or Find a Tender notice rows. See changed deadlines, with submission and document metadata checks for complete snapshots.","contact":{"name":"Jeremy Carter","email":"jeremy@jeremycarter.ca"},"x-guidance":"Start with the free example at /example. POST its request as JSON to /v1/compare. An unsigned request quotes 0.04 USDC on Base. Compares supplied structured notices only. It does not poll notices, fetch attachments, or store submitted data."},"components":{"schemas":{"ComparisonResult":{"type":"object","properties":{"ocid":{"type":"string"},"before_release":{"type":"string"},"after_release":{"type":"string"},"material_changes":{"type":"boolean"},"changes":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string"},"before":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}},{"type":"null"}]},"after":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}},{"type":"null"}]}},"required":["field","before","after"],"additionalProperties":false}},"documents":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"change":{"type":"string","enum":["added","removed","updated"]},"before":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/components/schemas/ComparisonResult/$defs/__schema0"}},{"type":"null"}]},"after":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/components/schemas/ComparisonResult/$defs/__schema0"}},{"type":"null"}]}},"required":["id","change","before","after"],"additionalProperties":false}},"compared_fields":{"type":"array","items":{"type":"string"}}},"required":["ocid","before_release","after_release","material_changes","changes","documents"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/components/schemas/ComparisonResult/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/components/schemas/ComparisonResult/$defs/__schema0"}}]}}}}},"paths":{"/v1/compare":{"post":{"operationId":"compare_tender_notices","summary":"Compare complete OCDS tender snapshots or Find a Tender notice rows. See changed deadlines, with submission and document metadata checks for complete snapshots.","x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.04"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","oneOf":[{"required":["before","after"]},{"required":["before_notice","after_notice"]}],"properties":{"before":{"type":"object","required":["ocid","id","tender"],"properties":{"ocid":{"type":"string"},"id":{"type":"string"},"date":{"type":"string","format":"date-time"},"tender":{"type":"object"}}},"after":{"type":"object","required":["ocid","id","tender"],"properties":{"ocid":{"type":"string"},"id":{"type":"string"},"date":{"type":"string","format":"date-time"},"tender":{"type":"object"}}},"before_notice":{"type":"object","required":["ocid","id","source","stage","publishedAt","title","tenderStatus","deadline"],"properties":{"ocid":{"type":"string"},"id":{"type":"string"},"source":{"const":"find-a-tender"},"stage":{"const":"tender"},"publishedAt":{"type":"string","format":"date-time"},"title":{"type":"string"},"tenderStatus":{"type":"string"},"deadline":{"type":["string","null"],"format":"date-time"}}},"after_notice":{"type":"object","required":["ocid","id","source","stage","publishedAt","title","tenderStatus","deadline"],"properties":{"ocid":{"type":"string"},"id":{"type":"string"},"source":{"const":"find-a-tender"},"stage":{"const":"tender"},"publishedAt":{"type":"string","format":"date-time"},"title":{"type":"string"},"tenderStatus":{"type":"string"},"deadline":{"type":["string","null"],"format":"date-time"}}}}},"example":{"before":{"ocid":"ocds-demo-2027-01","id":"baseline","date":"2026-11-24T15:00:00Z","tender":{"title":"Synthetic migration tender","status":"active","tenderPeriod":{"endDate":"2026-12-03T17:00:00-05:00"},"submissionMethod":["electronicSubmission"],"submissionMethodDetails":"Submit pricing and a technical response in the portal."}},"after":{"ocid":"ocds-demo-2027-01","id":"amendment-01","date":"2026-11-30T15:00:00Z","tender":{"title":"Synthetic migration tender","status":"active","tenderPeriod":{"endDate":"2026-12-08T17:00:00-05:00"},"submissionMethod":["electronicSubmission"],"submissionMethodDetails":"Submit pricing, a technical response, and signed addendum acknowledgement.","documents":[{"id":"addendum-01","title":"Addendum 1","documentType":"tenderNotice","url":"https://example.org/addendum-01.pdf"}]}}}}}},"responses":{"200":{"description":"Reconciliation result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComparisonResult"},"example":{"ocid":"ocds-demo-2027-01","before_release":"baseline","after_release":"amendment-01","material_changes":true,"changes":[{"field":"tenderPeriod.endDate","before":"2026-12-03T22:00:00.000Z","after":"2026-12-08T22:00:00.000Z"},{"field":"submissionMethodDetails","before":"Submit pricing and a technical response in the portal.","after":"Submit pricing, a technical response, and signed addendum acknowledgement."}],"documents":[{"id":"addendum-01","change":"added","before":null,"after":{"documentType":"tenderNotice","title":"Addendum 1","url":"https://example.org/addendum-01.pdf","description":null,"datePublished":null,"dateModified":null}}]}}}},"400":{"description":"Invalid input"},"402":{"description":"Requires an x402 exact payment of 0.04 USDC on Base"}}}}}}