{
  "openapi": "3.1.0",
  "info": {
    "title": "Certa Poland API",
    "version": "1.0.0",
    "description": "Machine-readable layer for foreign employers hiring in Poland: packages and pricing as a single source of truth. Not legal or tax advice."
  },
  "servers": [
    {
      "url": "https://certapoland.com/api/v1",
      "description": "Production"
    }
  ],
  "paths": {
    "/services": {
      "get": {
        "summary": "List packages and pricing (single source of truth for price).",
        "operationId": "getServices",
        "responses": {
          "200": {
            "description": "Packages",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Services"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Services": {
        "type": "object",
        "properties": {
          "currency": {
            "type": "string"
          },
          "validUntil": {
            "type": "string",
            "format": "date"
          },
          "packages": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "summary": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    }
  }
}