{
  "openapi": "3.0.1",
  "info": {
    "title": "Resvisor Acente API (v1)",
    "description": "Acente entegrasyon API'si — kimlik (API key→JWT), otel/tur/cruise arama, otel detay + destinasyon, booking (otel/tur/cruise) + durum + iptal. /v1/auth/token hariç tüm endpoint'ler Bearer JWT ister.",
    "contact": {
      "name": "Resvisor",
      "url": "https://resvisor.com",
      "email": "support@resvisor.com"
    },
    "version": "v1"
  },
  "paths": {
    "/v1/auth/token": {
      "post": {
        "tags": [
          "V1Auth"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/WebAPI.Controllers.Api.V1AuthController+ApiTokenRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebAPI.Controllers.Api.V1AuthController+ApiTokenRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/WebAPI.Controllers.Api.V1AuthController+ApiTokenRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/WebAPI.Controllers.Api.V1AuthController+ApiTokenRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/v1/bookings": {
      "post": {
        "tags": [
          "V1Bookings"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/WebAPI.Controllers.Api.V1BookingsController+BookingRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebAPI.Controllers.Api.V1BookingsController+BookingRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/WebAPI.Controllers.Api.V1BookingsController+BookingRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/WebAPI.Controllers.Api.V1BookingsController+BookingRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/v1/bookings/{reference}": {
      "get": {
        "tags": [
          "V1Bookings"
        ],
        "parameters": [
          {
            "name": "reference",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/v1/bookings/{reference}/cancel": {
      "post": {
        "tags": [
          "V1Bookings"
        ],
        "parameters": [
          {
            "name": "reference",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/WebAPI.Controllers.Api.V1BookingsController+CancelRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebAPI.Controllers.Api.V1BookingsController+CancelRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/WebAPI.Controllers.Api.V1BookingsController+CancelRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/WebAPI.Controllers.Api.V1BookingsController+CancelRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/v1/cruises/search": {
      "post": {
        "tags": [
          "V1Cruises"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/WebAPI.Controllers.Api.V1CruisesController+CruiseSearchRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebAPI.Controllers.Api.V1CruisesController+CruiseSearchRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/WebAPI.Controllers.Api.V1CruisesController+CruiseSearchRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/WebAPI.Controllers.Api.V1CruisesController+CruiseSearchRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/v1/hotels/search": {
      "post": {
        "tags": [
          "V1Hotels"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/WebAPI.Controllers.Api.V1HotelsController+HotelSearchRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebAPI.Controllers.Api.V1HotelsController+HotelSearchRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/WebAPI.Controllers.Api.V1HotelsController+HotelSearchRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/WebAPI.Controllers.Api.V1HotelsController+HotelSearchRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/v1/hotels/{id}": {
      "get": {
        "tags": [
          "V1Hotels"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "provider",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/v1/me": {
      "get": {
        "tags": [
          "V1Me"
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/v1/destinations": {
      "get": {
        "tags": [
          "V1Reference"
        ],
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "countryCode",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "perPage",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/v1/tours/search": {
      "post": {
        "tags": [
          "V1Tours"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/WebAPI.Controllers.Api.V1ToursController+TourSearchRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebAPI.Controllers.Api.V1ToursController+TourSearchRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/WebAPI.Controllers.Api.V1ToursController+TourSearchRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/WebAPI.Controllers.Api.V1ToursController+TourSearchRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Newtonsoft.Json.Linq.JToken": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/Newtonsoft.Json.Linq.JToken"
        }
      },
      "WebAPI.Controllers.Api.V1AuthController+ApiTokenRequest": {
        "type": "object",
        "properties": {
          "apiKey": {
            "type": "string",
            "nullable": true
          },
          "secret": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "WebAPI.Controllers.Api.V1BookingsController+BookingRequest": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "nullable": true
          },
          "data": {
            "$ref": "#/components/schemas/Newtonsoft.Json.Linq.JToken"
          },
          "amount": {
            "type": "number",
            "format": "double"
          },
          "currency": {
            "type": "string",
            "nullable": true
          },
          "clientReference": {
            "type": "string",
            "nullable": true
          },
          "lang": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "WebAPI.Controllers.Api.V1BookingsController+CancelRequest": {
        "type": "object",
        "properties": {
          "reason": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "WebAPI.Controllers.Api.V1CruisesController+CruiseSearchRequest": {
        "type": "object",
        "properties": {
          "departureFrom": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "departureTo": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "adults": {
            "type": "integer",
            "format": "int32"
          },
          "children": {
            "type": "integer",
            "format": "int32"
          },
          "childAges": {
            "type": "string",
            "nullable": true
          },
          "currency": {
            "type": "string",
            "nullable": true
          },
          "sourceCountryCode": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "WebAPI.Controllers.Api.V1HotelsController+HotelSearchRequest": {
        "type": "object",
        "properties": {
          "checkIn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "checkOut": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "adults": {
            "type": "integer",
            "format": "int32"
          },
          "children": {
            "type": "integer",
            "format": "int32"
          },
          "childAges": {
            "type": "string",
            "nullable": true
          },
          "destinationCode": {
            "type": "string",
            "nullable": true
          },
          "destinationId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "destinationZoneId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "cityId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "hotelIds": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "roomCount": {
            "type": "integer",
            "format": "int32"
          },
          "currency": {
            "type": "string",
            "nullable": true
          },
          "sourceCountryCode": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "WebAPI.Controllers.Api.V1ToursController+TourSearchRequest": {
        "type": "object",
        "properties": {
          "startDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "endDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "adults": {
            "type": "integer",
            "format": "int32"
          },
          "children": {
            "type": "integer",
            "format": "int32"
          },
          "childAges": {
            "type": "string",
            "nullable": true
          },
          "destinationCode": {
            "type": "string",
            "nullable": true
          },
          "destinationId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "cityId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "currency": {
            "type": "string",
            "nullable": true
          },
          "sourceCountryCode": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      }
    }
  },
  "servers": [
    {
      "url": "https://api.woxxtravelglobal.com"
    }
  ]
}