개발자

Innvoria API

숙소의 객실, 예약 가능 현황, 요금, 예약을 자체 소프트웨어와 연결하세요. REST와 JSON, Ultra 요금제에서 제공합니다.

개요

API는 Innvoria에 있는 숙소 한 곳의 데이터에 서버 간으로 접근하게 해 줍니다. 각 키는 숙소 한 곳에만 속하며, 요청은 그 숙소의 데이터만 볼 수 있습니다.

API는 Ultra 요금제에서 사용할 수 있습니다. 키는 패널의 관리 > API에서 만듭니다.

기본 주소
https://innvoria.com/api/v1
형식
JSON, UTF-8
버전
v1
브라우저에서 호출
지원하지 않음(CORS 허용 없음). 요청은 서버에서 보내세요.

빠른 시작

  1. 패널의 관리 > API에서 키를 만들고 복사하세요. 키는 한 번만 표시됩니다.
  2. 모든 요청에 "Authorization: Bearer KEY" 헤더를 넣으세요.
  3. 숙소 정보를 조회해 키를 테스트하세요:
요청 예시
curl https://innvoria.com/api/v1/property \
  -H "Authorization: Bearer ivk_…"

패널의 API 설정

인증

키는 "Authorization: Bearer KEY" 헤더로 보냅니다. 키는 ivk_로 시작합니다. 키가 없거나 올바르지 않거나 폐기된 경우 401 unauthorized가 반환됩니다.

권한허용 범위
읽기 전용 read모든 GET 엔드포인트.
읽기 + 예약 write모든 GET 엔드포인트, 예약 생성과 취소.

숙소당 활성 키는 최대 10개입니다. 폐기한 키는 즉시 사용할 수 없습니다. 키는 서버에만 보관하고, 브라우저 코드나 공개 저장소에는 넣지 마세요.

요청 한도

키마다 분당 최대 120건의 요청을 보낼 수 있습니다. 한도를 넘으면 429 rate_limited가 반환되고, Retry-After 헤더가 기다릴 초를 알려 줍니다.

응답 형식

성공 응답에는 "ok": true와 "data" 필드가 있습니다. 목록 엔드포인트는 "meta" 필드로 페이지 정보도 반환합니다.

오류가 나면 "ok": false와 "error" 객체가 반환됩니다. "code"는 바뀌지 않는 오류 코드, "message"는 읽기 쉬운 설명이며, 필드 관련 오류에는 "field"도 포함됩니다.

응답 예시 · 422
{
    "ok": false,
    "error": {
        "code": "invalid_parameter",
        "message": "The \"arrival\" field must be a date in YYYY-MM-DD format.",
        "field": "arrival"
    }
}

오류 메시지의 언어는 Accept-Language 헤더나 ?lang= 매개변수로 정해집니다. 20개 언어를 지원하며 기본값은 영어입니다. 소프트웨어는 메시지가 아니라 "code" 필드를 기준으로 판단해야 합니다.

오류 코드

코드HTTP의미
unauthorized401키가 없거나 올바르지 않거나 폐기되었습니다.
subscription_inactive402숙소의 구독이 활성 상태가 아닙니다.
plan_required403숙소의 요금제에 API가 포함되어 있지 않습니다(Ultra 필요).
forbidden403이 키에는 쓰기 권한이 없습니다.
not_found404엔드포인트나 예약을 찾을 수 없습니다.
method_not_allowed405이 엔드포인트는 해당 HTTP 메서드를 지원하지 않습니다.
invalid_body400요청 본문이 올바른 JSON 객체가 아닙니다.
invalid_parameter422필드가 없거나 올바르지 않습니다. "field"가 어떤 필드인지 알려 줍니다.
no_availability409선택한 날짜에 빈 객실이 없거나 객실 유형이 판매 중지입니다.
invalid_state409이 예약에서는 해당 작업을 할 수 없습니다(예: 게스트가 이미 체크인함).
rate_limited429분당 요청 한도를 넘었습니다. Retry-After에 표시된 만큼 기다리세요.
busy503예약 요청이 동시에 너무 많이 들어왔습니다. 몇 초 후 다시 시도하세요.

날짜, 시간, 금액

  • 날짜 형식은 YYYY-MM-DD입니다. "departure"는 체크아웃 날이며, 숙박 수는 "arrival"과 "departure"의 일수 차이입니다.
  • 날짜 범위를 받는 엔드포인트에서 "from"은 포함, "to"는 제외입니다(체크아웃 날처럼). 범위는 최대 366박입니다.
  • 날짜·시간 필드는 숙소의 시간대를 따릅니다. 시간대는 /property 응답의 "timezone" 필드에 있습니다.
  • 금액은 숙소 통화("currency")의 소수이며 부가세가 포함됩니다.

엔드포인트

GET/property

숙소 정보: 이름, 통화, 시간대, 체크인·체크아웃 시간, 영업일.

요청 예시
curl https://innvoria.com/api/v1/property \
  -H "Authorization: Bearer ivk_…"
응답 예시 · 200
{
    "ok": true,
    "data": {
        "id": 12,
        "name": "Hotel Am Hafen",
        "currency": "EUR",
        "timezone": "Europe/Istanbul",
        "country": "DE",
        "city": "Hamburg",
        "check_in_time": "14:00",
        "check_out_time": "12:00",
        "business_date": "2026-12-05",
        "api": {
            "version": 1,
            "scope": "read",
            "rate_limit_per_minute": 120
        }
    }
}

GET/room-types

객실 유형: 정원, 기본 요금, 객실 수.

요청 예시
curl https://innvoria.com/api/v1/room-types \
  -H "Authorization: Bearer ivk_…"
응답 예시 · 200
{
    "ok": true,
    "data": [
        {
            "id": 1,
            "code": "DLX",
            "name": "Deluxe",
            "description": "",
            "base_occupancy": 2,
            "max_adults": 3,
            "max_children": 2,
            "base_rate": 120,
            "extra_adult": 35,
            "extra_child": 15,
            "rooms": 8
        }
    ]
}

GET/rooms

객실: 번호, 유형, 층, 청소 상태.

"housekeeping_status" 값: clean, dirty, inspected, out_of_order, out_of_service.

요청 예시
curl https://innvoria.com/api/v1/rooms \
  -H "Authorization: Bearer ivk_…"
응답 예시 · 200
{
    "ok": true,
    "data": [
        {
            "id": 7,
            "number": "204",
            "room_type_id": 1,
            "floor": "2",
            "housekeeping_status": "clean",
            "features": ""
        }
    ]
}

GET/rate-plans

요금제와 식사 유형.

요청 예시
curl https://innvoria.com/api/v1/rate-plans \
  -H "Authorization: Bearer ivk_…"
응답 예시 · 200
{
    "ok": true,
    "data": {
        "rate_plans": [
            {
                "id": 1,
                "code": "STD",
                "name": "Standard",
                "is_default": true,
                "discount_pct": 0,
                "min_stay": 1,
                "cancel_policy": ""
            }
        ],
        "boards": [
            {
                "id": 2,
                "code": "BB",
                "name": "Bed & breakfast",
                "price_per_person": 12
            }
        ]
    }
}

GET/availability

객실 유형별 일자별 빈 객실 수와 판매 중지일(최대 366일).

매개변수

fromdate필수첫날 밤.
todate필수마지막 밤의 다음 날(포함하지 않음).
room_type_idinteger선택이 객실 유형만.

"available"은 그날 밤 판매할 수 있는 빈 객실 수이며, 정비로 닫힌 객실은 이미 빠져 있습니다. "closed": true는 그날 밤 해당 객실 유형이 판매 중지임을 뜻합니다.

요청 예시
curl "https://innvoria.com/api/v1/availability?from=2027-01-04&to=2027-01-06" \
  -H "Authorization: Bearer ivk_…"
응답 예시 · 200
{
    "ok": true,
    "data": [
        {
            "room_type_id": 1,
            "name": "Deluxe",
            "days": [
                {
                    "date": "2027-01-04",
                    "available": 3,
                    "closed": false
                },
                {
                    "date": "2027-01-05",
                    "available": 0,
                    "closed": false
                }
            ]
        }
    ]
}

GET/rates

박별 요금. rate_plan_id, board_id, adults, children은 선택 사항입니다.

매개변수

fromdate필수첫날 밤.
todate필수마지막 밤의 다음 날(포함하지 않음).
room_type_idinteger필수객실 유형.
rate_plan_idinteger선택요금제. 요금제의 할인이 가격에 적용됩니다. 생략하면 할인 없는 가격이 반환됩니다.
board_idinteger선택식사 유형. 1인당 요금이 가격에 더해집니다.
adultsinteger선택성인 수. 생략하면 객실 유형의 기준 인원.
childreninteger선택어린이 수.
요청 예시
curl "https://innvoria.com/api/v1/rates?from=2027-01-04&to=2027-01-06&room_type_id=1&board_id=2&adults=2" \
  -H "Authorization: Bearer ivk_…"
응답 예시 · 200
{
    "ok": true,
    "data": {
        "room_type_id": 1,
        "rate_plan_id": null,
        "board_id": 2,
        "adults": 2,
        "children": 0,
        "currency": "EUR",
        "nights": [
            {
                "date": "2027-01-04",
                "price": 144,
                "closed": false
            },
            {
                "date": "2027-01-05",
                "price": 144,
                "closed": false
            }
        ],
        "total": 288
    }
}

GET/reservations

예약 목록. from과 to(기간이 겹치는 숙박), status, updated_since, page, per_page(최대 100).

매개변수

from, todate선택숙박 기간이 이 범위와 겹치는 예약. 두 값을 함께 보내세요.
statusstring선택쉼표로 구분한 상태(예: confirmed,option).
updated_sincedatetime선택이 시각 이후 생성되거나 변경된 예약.
pageinteger선택페이지 번호, 1부터 시작.
per_pageinteger선택페이지당 건수: 기본 50, 최대 100.

결과는 생성 순서(id)대로 정렬됩니다. 목록 응답에는 메모, 취소 사유, 박별 요금이 없으므로 필요하면 개별 예약을 조회하세요.

요청 예시
curl "https://innvoria.com/api/v1/reservations?updated_since=2026-12-05T08:00:00&per_page=100" \
  -H "Authorization: Bearer ivk_…"
응답 예시 · 200
{
    "ok": true,
    "data": [
        {
            "id": 1042,
            "code": "R2611042",
            "status": "confirmed",
            "source": "api",
            "channel_name": "Website",
            "voucher": "WEB-58213",
            "arrival": "2027-01-04",
            "departure": "2027-01-06",
            "nights": 2,
            "eta": "15:30",
            "adults": 2,
            "children": 0,
            "room_type": {
                "id": 1,
                "name": "Deluxe"
            },
            "room": null,
            "rate_plan": {
                "id": 1,
                "name": "Standard"
            },
            "board": {
                "id": 2,
                "code": "BB",
                "name": "Bed & breakfast"
            },
            "currency": "EUR",
            "total_amount": 240,
            "guest_name": "ADA YILMAZ",
            "contact": {
                "name": "ADA YILMAZ",
                "email": "ada@example.com",
                "phone": "+49 30 1234567"
            },
            "group_id": null,
            "created_at": "2026-12-05 02:48:04",
            "updated_at": null,
            "cancelled_at": null
        }
    ],
    "meta": {
        "page": 1,
        "per_page": 100,
        "total": 1,
        "pages": 1
    }
}

GET/reservations/{code}

박별 요금을 포함한 단일 예약.

경로 매개변수

codestring필수예약 코드.
요청 예시
curl https://innvoria.com/api/v1/reservations/R2611042 \
  -H "Authorization: Bearer ivk_…"
응답 예시 · 200
{
    "ok": true,
    "data": {
        "id": 1042,
        "code": "R2611042",
        "status": "confirmed",
        "source": "api",
        "channel_name": "Website",
        "voucher": "WEB-58213",
        "arrival": "2027-01-04",
        "departure": "2027-01-06",
        "nights": 2,
        "eta": "15:30",
        "adults": 2,
        "children": 0,
        "room_type": {
            "id": 1,
            "name": "Deluxe"
        },
        "room": null,
        "rate_plan": {
            "id": 1,
            "name": "Standard"
        },
        "board": {
            "id": 2,
            "code": "BB",
            "name": "Bed & breakfast"
        },
        "currency": "EUR",
        "total_amount": 240,
        "guest_name": "ADA YILMAZ",
        "contact": {
            "name": "ADA YILMAZ",
            "email": "ada@example.com",
            "phone": "+49 30 1234567"
        },
        "group_id": null,
        "created_at": "2026-12-05 02:48:04",
        "updated_at": null,
        "cancelled_at": null,
        "note": "",
        "cancel_reason": "",
        "nightly": [
            {
                "date": "2027-01-04",
                "price": 120
            },
            {
                "date": "2027-01-05",
                "price": 120
            }
        ]
    }
}

POST/reservations

예약을 생성합니다(쓰기 권한). 같은 요청이 예약을 두 번 만들지 않도록 Idempotency-Key 헤더를 보내세요.

요청 본문(JSON)

room_type_idinteger필수객실 유형.
arrivaldate필수도착일.
departuredate필수출발일.
adultsinteger선택성인 수, 기본값 1.
childreninteger선택어린이 수.
rate_plan_idinteger선택요금제.
board_idinteger선택식사 유형. 1인당 요금이 가격에 더해집니다.
guest.first_namestring필수게스트의 이름.
guest.last_namestring필수게스트의 성.
guest.emailstring선택이메일
guest.phonestring선택전화번호
guest.nationalitystring선택두 글자 국가 코드(ISO 3166-1, 예: DE).
statusstring선택confirmed(기본값) 또는 option.
etastring선택예상 도착 시간, HH:MM.
channel_namestring선택예약이 들어온 채널 이름. 생략하면 키 이름.
voucherstring선택채널의 예약 번호.
notestring선택메모, 최대 2000자.
langstring선택게스트의 언어(예: en, de).

생성에 성공하면 201이 반환됩니다. 요금은 숙소의 요금 규칙에 따라 Innvoria에서 계산되고, 객실은 프런트에서 배정합니다.

Idempotency-Key 헤더: 최대 80자의 고유한 값(예: 주문 번호). 같은 키와 값으로 반복한 요청은 새 예약을 만들지 않고, 처음 예약을 "Idempotent-Replayed: true" 헤더와 함께 반환합니다.

선택한 날짜에 빈 객실이 없으면 409 no_availability가 반환됩니다. 동시에 들어온 요청은 하나씩 처리되므로 마지막 객실이 두 번 팔리지 않습니다.

요청 예시
curl -X POST https://innvoria.com/api/v1/reservations \
  -H "Authorization: Bearer ivk_…" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: order-58213" \
  -d '{
    "room_type_id": 1,
    "arrival": "2027-01-04",
    "departure": "2027-01-06",
    "adults": 2,
    "board_id": 2,
    "voucher": "WEB-58213",
    "guest": {"first_name": "Ada", "last_name": "Yilmaz", "email": "ada@example.com", "nationality": "DE"}
  }'
응답 예시 · 201
{
    "ok": true,
    "data": {
        "id": 1042,
        "code": "R2611042",
        "status": "confirmed",
        "source": "api",
        "channel_name": "Website",
        "voucher": "WEB-58213",
        "arrival": "2027-01-04",
        "departure": "2027-01-06",
        "nights": 2,
        "eta": "15:30",
        "adults": 2,
        "children": 0,
        "room_type": {
            "id": 1,
            "name": "Deluxe"
        },
        "room": null,
        "rate_plan": {
            "id": 1,
            "name": "Standard"
        },
        "board": {
            "id": 2,
            "code": "BB",
            "name": "Bed & breakfast"
        },
        "currency": "EUR",
        "total_amount": 240,
        "guest_name": "ADA YILMAZ",
        "contact": {
            "name": "ADA YILMAZ",
            "email": "ada@example.com",
            "phone": "+49 30 1234567"
        },
        "group_id": null,
        "created_at": "2026-12-05 02:48:04",
        "updated_at": null,
        "cancelled_at": null,
        "note": "",
        "cancel_reason": "",
        "nightly": [
            {
                "date": "2027-01-04",
                "price": 120
            },
            {
                "date": "2027-01-05",
                "price": 120
            }
        ]
    }
}

POST/reservations/{code}/cancel

투숙객이 도착하지 않은 예약을 취소합니다(쓰기 권한). reason은 선택 사항입니다.

요청 본문(JSON)

reasonstring선택취소 사유, 최대 200자.

상태가 option 또는 confirmed인 예약만 취소할 수 있으며, 그 밖의 경우 409 invalid_state가 반환됩니다. 이미 취소된 예약은 같은 응답을 반환하므로 요청을 안전하게 반복할 수 있습니다.

요청 예시
curl -X POST https://innvoria.com/api/v1/reservations/R2611042/cancel \
  -H "Authorization: Bearer ivk_…" \
  -H "Content-Type: application/json" \
  -d '{"reason": "Guest request"}'
응답 예시 · 200
{
    "ok": true,
    "data": {
        "id": 1042,
        "code": "R2611042",
        "status": "cancelled",
        "source": "api",
        "channel_name": "Website",
        "voucher": "WEB-58213",
        "arrival": "2027-01-04",
        "departure": "2027-01-06",
        "nights": 2,
        "eta": "15:30",
        "adults": 2,
        "children": 0,
        "room_type": {
            "id": 1,
            "name": "Deluxe"
        },
        "room": null,
        "rate_plan": {
            "id": 1,
            "name": "Standard"
        },
        "board": {
            "id": 2,
            "code": "BB",
            "name": "Bed & breakfast"
        },
        "currency": "EUR",
        "total_amount": 240,
        "guest_name": "ADA YILMAZ",
        "contact": {
            "name": "ADA YILMAZ",
            "email": "ada@example.com",
            "phone": "+49 30 1234567"
        },
        "group_id": null,
        "created_at": "2026-12-05 02:48:04",
        "updated_at": "2026-12-05 02:48:04",
        "cancelled_at": "2026-12-05 02:48:04",
        "note": "",
        "cancel_reason": "API: Guest request",
        "nightly": [
            {
                "date": "2027-01-04",
                "price": 120
            },
            {
                "date": "2027-01-05",
                "price": 120
            }
        ]
    }
}

예약 객체

예약 엔드포인트는 아래 필드를 반환합니다.

필드설명
idinteger고유 번호.
codestring예약 코드(패널과 게스트에게 표시되는 것).
statusstringoption, confirmed, checked_in, checked_out, cancelled 또는 no_show.
sourcestring예약 경로. API로 들어온 예약은 api.
channel_namestring채널 또는 대리점 이름.
voucherstring채널의 예약 번호.
arrivaldate도착일.
departuredate출발일.
nightsinteger숙박 수.
etastring|null예상 도착 시간, HH:MM.
adultsinteger성인 수.
childreninteger어린이 수.
room_typeobject객실 유형: id, name.
roomobject|null배정된 객실: id, number. 배정되지 않았으면 null.
rate_planobject|null요금제: id, name.
boardobject|null식사 유형: id, code, name.
currencystring통화(ISO 4217).
total_amountnumber예약 금액.
guest_namestring대표 게스트의 이름.
contactobject연락처: name, email, phone.
group_idinteger|null단체 예약이면 단체 번호.
created_atdatetime생성 시각.
updated_atdatetime|null마지막 변경 시각.
cancelled_atdatetime|null취소 시각.
notestring메모. 개별 예약, 생성, 취소 응답에만 있습니다.
cancel_reasonstring취소 사유. 개별 예약, 생성, 취소 응답에만 있습니다.
nightlyarray박별 요금: date, price. 개별 예약, 생성, 취소 응답에만 있습니다.

권장 동기화 방법

현재 즉시 알림(웹훅)은 없습니다. 변경 사항을 받으려면 updated_since로 /reservations 엔드포인트를 주기적으로 조회하고, 마지막으로 성공한 조회 시각을 저장하세요.

가까운 날짜의 예약 가능 현황은 자주, 먼 날짜는 덜 자주 조회하고, 분당 한도를 넘지 않도록 요청을 시간에 나눠 보내세요.

지원

문의는 info@innvoria.com로 보내 주세요.