{
  "openapi": "3.1.0",
  "info": {
    "title": "Rani Adventure B2B API",
    "version": "1.0.0",
    "description": "Machine-readable B2B API for Rani Adventure — East Java Volcano DMC operations, Indonesia film/TV production fixer services, verified track record, and B2B inquiry submission. Prices are currently indicative placeholders.",
    "contact": {
      "name": "Rani Adventure B2B Desk",
      "email": "contact@raniadventure.com",
      "url": "https://raniadventure.com"
    }
  },
  "servers": [
    {
      "url": "https://raniadventure.com",
      "description": "Production Cloudflare Worker"
    }
  ],
  "paths": {
    "/api/catalog": {
      "get": {
        "operationId": "getCatalog",
        "summary": "Get full B2B catalog (site info, circuits, fixer services, credits, FAQs)",
        "responses": {
          "200": {
            "description": "Full JSON catalog",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/api/circuits": {
      "get": {
        "operationId": "listVolcanoCircuits",
        "summary": "List East Java B2B volcano operations with placeholder net rates",
        "parameters": [
          {
            "name": "lang",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "en",
                "fr"
              ],
              "default": "en"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Array of B2B volcano circuits",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/api/fixer-services": {
      "get": {
        "operationId": "listFixerServices",
        "summary": "List Indonesia film, TV & documentary fixer services and placeholder B2B rates",
        "responses": {
          "200": {
            "description": "Array of fixer services",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/api/credits": {
      "get": {
        "operationId": "getTrackRecord",
        "summary": "Get verified tour operator and film/TV production credits",
        "responses": {
          "200": {
            "description": "Credits JSON",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/api/inquiry": {
      "post": {
        "operationId": "submitB2BInquiry",
        "summary": "Submit a B2B tour operator RFP or film/TV production brief",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "type",
                  "company",
                  "name",
                  "email",
                  "message"
                ],
                "properties": {
                  "type": {
                    "type": "string",
                    "enum": [
                      "dmc",
                      "fixer",
                      "both"
                    ]
                  },
                  "company": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "email": {
                    "type": "string",
                    "format": "email"
                  },
                  "dates": {
                    "type": "string"
                  },
                  "size": {
                    "type": "string"
                  },
                  "message": {
                    "type": "string"
                  },
                  "lang": {
                    "type": "string",
                    "enum": [
                      "en",
                      "fr"
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Inquiry accepted"
          },
          "400": {
            "description": "Validation error"
          }
        }
      }
    }
  }
}