탐색으로 건너뛰기

서비스 생성

Create a new service

헤더

xi-api-keystring선택 사항
xi-workspace-idstring필수

리셀러의 API 키가 작동하는 고객 워크스페이스입니다.

요청

This endpoint expects an object.
namestring필수

고객과 리셉셔니스트에게 표시되는 서비스 이름입니다.

pricing_modeenum선택 사항기본값 fixed

‘fixed’ (default): the item has a known price the agent can quote, and customers can book or order it directly. ‘quote’: the price depends on the job (renovation, catering, custom work), so no price or slot is offered; the agent collects the intake_questions and files a quote request instead. Takes effect only while quotes are enabled for the business. Group services cannot use ‘quote’.

허용된 값:
intake_questionslist of objects선택 사항

에이전트가 이 항목을 예약하거나 주문하기 전에 묻는 질문입니다. 유용한 pricing_mode='quote' 항목에는 필수입니다. 질문이 없으면 견적 요청에 가격을 책정할 정보가 없습니다. 또한 추가 세부 정보가 필요한 정가 항목(염색 전 현재 머리색, 시술 전 알레르기 등)에도 사용할 수 있습니다.

groupslist of objects선택 사항

이 항목의 그룹 멤버십입니다. 각 항목에는 그룹 라벨과 해당 그룹 내 항목의 0부터 시작하는 순위가 포함됩니다.

ungrouped_rankinteger or null선택 사항>=0

그룹이 없는 항목 중 표시 위치입니다. null은 마지막에 정렬됩니다. 순서 변경 엔드포인트로 수정할 수 있습니다.

descriptionstring선택 사항

Details about the service for customers and the receptionist; empty string means none.

variantslist of objects선택 사항

Bookable options for this service. Always non-empty; variants[0] is the default option shown when callers don’t pick a specific variant. Each entry has its own duration and (optional) price, and uniqueness is keyed by duration.

kindenum선택 사항기본값 classic

Classic = staff-delivered; rental = asset-based; group = multi-participant session.

허용된 값:
buffer_minutesinteger선택 사항0-1440기본값 0

각 예약 후 예약되는 정리/청소 시간입니다. 모든 서비스 유형에 적용되며, 기본값 0은 여유 시간이 없음을 의미합니다.

service_locationenum선택 사항기본값 business

서비스가 제공되는 장소입니다. business = 고객이 사업장 위치를 방문함(기본값), customer = 직원이 고객에게 방문함. kind='classic'에서만 의미가 있습니다.

허용된 값:
add_onslist of objects선택 사항

이 서비스 예약에 추가할 수 있는 선택적 추가 옵션입니다.

max_participantsinteger or null선택 사항2-200

Capacity for kind='group': how many seats a single session can sell across all registrations. Must be null for classic and rental services (those are always exclusive to one client per booking).

capacityinteger or null선택 사항

예약 제한에는 사용되지 않습니다. 대신 그룹 서비스에서 max_participants를 설정하세요.

is_activeboolean선택 사항기본값 true

서비스가 제공되는지 여부입니다. 비활성 서비스는 예약할 수 없습니다.

any_staff_memberboolean선택 사항기본값 true

모든 직원이 서비스를 제공할 수 있는지 여부입니다. false이면 staff_ids의 직원만 제공할 수 있습니다. 대여에는 적용되지 않습니다.

staff_idslist of strings선택 사항

이 서비스에 배정된 직원입니다. kind=‘rental’인 경우 비어 있어야 합니다.

asset_idslist of strings선택 사항
Assets, such as rooms or equipment, this service can be booked on.
advance_booking_minutesinteger선택 사항0-525600기본값 1440

고객 대상 채널(공개 예약 페이지, 음성 에이전트)에서 이 서비스를 얼마나 먼 미래까지 예약할 수 있는지입니다. 모든 유형에 적용됩니다.

location_idslist of strings선택 사항

이 서비스가 제공되는 위치입니다. 빈 목록은 모든 위치를 의미합니다.

display_on_booking_pageboolean선택 사항기본값 true

서비스가 공개 예약 페이지에 표시되는지 여부입니다.

travel_minutesinteger선택 사항0-480기본값 0

고객 위치 서비스의 예약 전후에 추가되는 이동 시간(분)입니다. 직원의 캘린더를 차단하지만 고객에게는 표시되지 않습니다. service_location='business'인 경우 무시됩니다.

travel_beforeboolean선택 사항기본값 true

Add travel time before the appointment (outbound trip).

travel_afterboolean선택 사항기본값 true

Add travel time after the appointment (return trip).

promotionslist of objects선택 사항

이 서비스 또는 특정 변형에 적용되는 기간 한정 할인입니다.

응답

성공 응답

namestring

고객과 리셉셔니스트에게 표시되는 서비스 이름입니다.

variantslist of objects

Bookable options for this service; variants[0] is the default.

idstring

서비스의 ID입니다.

duration_minutesinteger읽기 전용

첫 번째 변형의 길이입니다.

pricedouble or null읽기 전용

첫 번째 옵션의 가격입니다.

pricing_modeenum선택 사항기본값 fixed

‘fixed’ (default): the item has a known price the agent can quote, and customers can book or order it directly. ‘quote’: the price depends on the job (renovation, catering, custom work), so no price or slot is offered; the agent collects the intake_questions and files a quote request instead. Takes effect only while quotes are enabled for the business. Group services cannot use ‘quote’.

허용된 값:
intake_questionslist of objects선택 사항

에이전트가 이 항목을 예약하거나 주문하기 전에 묻는 질문입니다. 유용한 pricing_mode='quote' 항목에는 필수입니다. 질문이 없으면 견적 요청에 가격을 책정할 정보가 없습니다. 또한 추가 세부 정보가 필요한 정가 항목(염색 전 현재 머리색, 시술 전 알레르기 등)에도 사용할 수 있습니다.

groupslist of objects선택 사항

이 항목의 그룹 멤버십입니다. 각 항목에는 그룹 라벨과 해당 그룹 내 항목의 0부터 시작하는 순위가 포함됩니다.

ungrouped_rankinteger or null선택 사항>=0

그룹이 없는 항목 중 표시 위치입니다. null은 마지막에 정렬됩니다. 순서 변경 엔드포인트로 수정할 수 있습니다.

descriptionstring선택 사항

Details about the service for customers and the receptionist; empty string means none.

kindenum선택 사항기본값 classic

Classic = staff-delivered; rental = asset-based; group = multi-participant session.

허용된 값:
buffer_minutesinteger선택 사항0-1440기본값 0

각 예약 후 예약되는 정리/청소 시간입니다. 모든 서비스 유형에 적용되며, 기본값 0은 여유 시간이 없음을 의미합니다.

service_locationenum선택 사항기본값 business

서비스가 제공되는 장소입니다. business = 고객이 사업장 위치를 방문함(기본값), customer = 직원이 고객에게 방문함. kind='classic'에서만 의미가 있습니다.

허용된 값:
add_onslist of objects선택 사항

이 서비스 예약에 추가할 수 있는 선택적 추가 옵션입니다.

max_participantsinteger or null선택 사항2-200

Capacity for kind='group': how many seats a single session can sell across all registrations. Must be null for classic and rental services (those are always exclusive to one client per booking).

capacityinteger or null선택 사항

예약 제한에는 사용되지 않습니다. 대신 그룹 서비스에서 max_participants를 설정하세요.

is_activeboolean선택 사항기본값 true

서비스가 제공되는지 여부입니다. 비활성 서비스는 예약할 수 없습니다.

any_staff_memberboolean선택 사항기본값 true

모든 직원이 서비스를 제공할 수 있는지 여부입니다. false이면 staff_ids의 직원만 제공할 수 있습니다. 대여에는 적용되지 않습니다.

staff_idslist of strings선택 사항

이 서비스에 배정된 직원입니다. kind=‘rental’인 경우 비어 있어야 합니다.

asset_idslist of strings선택 사항
Assets, such as rooms or equipment, this service can be booked on.
advance_booking_minutesinteger선택 사항0-525600기본값 1440

고객 대상 채널(공개 예약 페이지, 음성 에이전트)에서 이 서비스를 얼마나 먼 미래까지 예약할 수 있는지입니다. 모든 유형에 적용됩니다.

location_idslist of strings선택 사항

이 서비스가 제공되는 위치입니다. 빈 목록은 모든 위치를 의미합니다.

display_on_booking_pageboolean선택 사항기본값 true

서비스가 공개 예약 페이지에 표시되는지 여부입니다.

travel_minutesinteger선택 사항0-480기본값 0

고객 위치 서비스의 예약 전후에 추가되는 이동 시간(분)입니다. 직원의 캘린더를 차단하지만 고객에게는 표시되지 않습니다. service_location='business'인 경우 무시됩니다.

travel_beforeboolean선택 사항기본값 true

Add travel time before the appointment (outbound trip).

travel_afterboolean선택 사항기본값 true

Add travel time after the appointment (return trip).

promotionslist of objects선택 사항

이 서비스 또는 특정 변형에 적용되는 기간 한정 할인입니다.

created_at_unixinteger선택 사항

생성된 시점의 Unix 타임스탬프(초)입니다.

updated_at_unixinteger선택 사항

마지막으로 업데이트된 시점의 Unix 타임스탬프(초)입니다.

오류

422
Unprocessable Entity Error