CBT Thailand Data API

GetAccommodationDetail



Description


      This service informs you an additional information about the accommodation such as facility, opening hours, telephone number, email, etc.


Request Header

Header

Description

Content-Type

application/json, text/json

Method

GET

Authorization

Bearer {Your CBT API key}

Accept-Language

Display language support: "th" or "en"


Parameter

Name

Type

Required

Description

accomodationId

String

Require*

ID of the accommodation.


*Required parameters must be assigned at least one value.


Status Codes

Status Codes

Description

200 OK

Request successful

400 Bad Request

Problem with the request

401 Unauthorized

Valid API Key is not specified

403 Forbidden

Not authorized to access the resource

404 Not Found

No result found for the query

405 Method Not Allowed

A request method is not supported for the requested resource

500 Internal Server Error

Error on the internal server


Response Body

Name

Type

Description


API Reference

Input


Output


Sample

https://cbtthailand.dasta.or.th/CBTAPI/Accomodation/GetAccomodationDetail?accomodationId=AC0111001001

บ้านกลางสวน

                     

ชมรมส่งเสริมการท่องเที่ยวโดยชุมชนตำบลบางกอบัว

ข้อมูล

                                                                                           

บ้านพักกลางสวน เงียบสงบ มีความเป็นส่วนตัว