{
  "openapi": "3.0.3",
  "info": {
    "title": "Anker Shipping Public Quote API",
    "description": "Public contact and shipping-quote submission endpoint for Anker Shipping Services FZCO (Dubai Airport Free Zone).",
    "version": "1.0.0",
    "contact": {
      "name": "Anker Shipping Services FZCO",
      "email": "ycc@ankershipping.com",
      "url": "https://www.ankershipping.com/"
    }
  },
  "servers": [
    { "url": "https://www.ankershipping.com" }
  ],
  "paths": {
    "/contact.php": {
      "post": {
        "operationId": "submitShippingQuote",
        "summary": "Submit a freight quote request",
        "description": "Accepts application/x-www-form-urlencoded fields from the website quote form. On success redirects to the homepage with a status query parameter.",
        "requestBody": {
          "required": true,
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "required": ["name", "email", "phone", "route"],
                "properties": {
                  "name": { "type": "string", "description": "Full name" },
                  "email": { "type": "string", "format": "email" },
                  "phone": { "type": "string" },
                  "origin": { "type": "string" },
                  "destination": { "type": "string" },
                  "cargo_type": { "type": "string" },
                  "weight": { "type": "string" },
                  "dimensions": { "type": "string" },
                  "shipping_method": { "type": "string", "enum": ["Air Freight", "Sea Freight", "Land Transport", "Door to Door", "Customs Clearance", "Not sure"] },
                  "route": { "type": "string", "description": "Trade lane or service interest" },
                  "customs_clearance": { "type": "string" },
                  "door_to_door": { "type": "string" },
                  "message": { "type": "string" },
                  "lang": { "type": "string", "enum": ["en", "ar"] },
                  "form_time": { "type": "integer", "description": "Unix timestamp when the form was rendered (anti-bot)" }
                }
              }
            }
          }
        },
        "responses": {
          "302": {
            "description": "Redirects to / or /ar/ with status=ok|err|rate"
          }
        }
      }
    },
    "/.well-known/health.json": {
      "get": {
        "operationId": "healthCheck",
        "summary": "Service health",
        "responses": {
          "200": {
            "description": "Healthy",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": { "type": "string" },
                    "service": { "type": "string" }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}
