Send a list of Guest Request Manager request entries to your application
https://app.bpn-solutions.com/api/grm/list_request
Request
All operations of the API require an api-key
and api-secret
to be present in the header
of the request as those are used to authenticate incoming requests.
{
"api-key": "1b037676-76fc-4b85-aaad-054b25a20828",
"api-secret": "591c3034-c67b-4fd3-986d-0d9b85044a13",
"api-lang": "en",
}
Method : GET
Parameter | Type | Contract | Description |
api-key | String | Required | Application key |
api-key | String | Required | Application Secret key |
api-lang | String | Optional | en, fr, de, it, ja, th, vi, es, kr, id, zh, zhh Default: en |
Response
In case of success, the HTTP status code is 200 and the content contains result according to the call.
{
"result": {
"rstatus": 1,
"messages": "Get list of requests successfully",
"errorcode": "200"
},
"data": {
"guest_requests": [
{
"id": 2556,
"type_id": "1",
"location_type_id": "34",
"location_id": "747",
"item": "Bath Salt/Crystal",
"item_cn": "沐浴盐/水晶",
"item_de": "Badesalz/Kristall",
"item_it": null,
"item_fr": null,
"item_es": "Sales/ Cristales de Baño",
"item_th": "อาบน้ำเกลือ/คริสตัล",
"item_vn": "Muối tắm/Pha lê",
"item_id": "Garam Mandi/Kristal",
"item_jp": "バスソルト/クリスタル",
"item_kr": "배스솔트/크리스탈",
"department_id": "171",
"fu_period": "00:04",
"grace_period": "00:02",
"property_id": "7",
"master_request_id": "1",
"icon": "<i class=\"fa fa-bell\"></i>",
"created_at": null,
"updated_at": {
"date": "2020-08-10 08:07:04.000000",
"timezone_type": 2,
"timezone": "GMT"
},
"item_lang": "Bath Salt/Crystal"
}
]
}
}
In case of any error, the returned JSON object describes the error and has the following
{
"result": {
"rstatus": 0,
"messages": "Invalid access key",
"errorcode": "401"
}
}