ChatBeds개발자
Hotel features API

이 페이지는 아직 번역되지 않아 영어 버전을 보고 계십니다.

Hotel features API

The ChatBeds app's own endpoints for payments in WhatsApp and phone bookings, negotiation, night mode and phone lines, and the AI manager. Called with a signed-in person's login, inside their role.

These pages describe endpoints the ChatBeds app itself uses for some newer features. Use them to script a hotel's own setup, or to build an internal tool for a hotel group. For a channel, an OTA or an app used by many hotels, use the partner API instead.

Base URL

Base URL
https://app.chatbeds.app/api/v1

All requests and responses are JSON over HTTPS.

Authentication

Send the Firebase ID token of a person signed in to ChatBeds:

Authorization: Bearer <Firebase ID token>
  • The token is the one the ChatBeds app gets when the person signs in. It lasts an hour; refresh it with the Firebase SDK.
  • A partner key (cbk_...) or an app token (cbat_...) is not accepted here: the answer is 401.
  • The call can do only what the person's role allows. Each endpoint below names the permission it needs. Without it the answer is 403, with a sentence that names the permission.
  • Most endpoints take property_id as a query parameter (a body field for PUT /finance/chat-payment). A property of another account answers 404 Property not found.

Not versioned like the partner API

These endpoints follow the app. Fields can be added at any time. Ignore fields you don't know.

Errors

Errors are JSON with a detail field, in the language of the request's Accept-Language header when ChatBeds has it.

StatusWhen
400A value is out of range or doesn't fit the rest of the settings. detail says which
401No token, or one that is wrong or expired
403The person's role lacks the permission
404The property, negotiation, line, call or question isn't this account's
409The action conflicts with the current state, for example an offer that has expired
422A field is missing or of the wrong type. detail is a list of field problems

In this section

무언가 만들고 계신가요?

이 페이지의 내용