GRM Store data

Create a new Guest Request Manager entry in BPN Maestro

https://app.bpn-solutions.com/api/grm/store

Body

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": "zhh",
    "room": "0502",
    "request_id": "9047",
    "req_comments":"Please deliver the thing asap",
}

Method : POST

ParameterTypeContractDescription
api-keyStringRequiredApplication key
api-keyStringRequiredApplication Secret key
api-keyStringOptionalzh, zhh, en, fr, de, it, ja, th, vi, es, kr, id
Default value is an en.
roomIntegerRequiredRoom Number
request_idIntegerRequiredRequest ID
req_commentsTextOptionalRequest Comments

Response

In case of success, the HTTP status code is 200 and the content contains result according to the call.

{
    "result": {
        "rstatus": 1,
        "messages": "GRM entry added successfully",
        "errorcode": "200"
    },
    "data": {
        "guest_id": 2399,
        "guest_type": "App\\Model\\Guests",
        "request_id": 2556,
        "request_type": "1",
        "select_area": "guest_area",
        "property_id": 7,
        "location_type_id": "34",
        "location_id": "747",
        "current_level": 1,
        "request_status_id": 1,
        "loggable_id": 8,
        "loggable_type": "App\\Model\\Users",
        "logged_on": "2022-05-20 15:54:47",
        "request_details": null,
        "incident_date": "2022-05-20 15:54",
        "department_id": "171",
        "guest_floor_manage_id": 39,
        "assigned_device_lvl1": 39,
        "assigned_device_lvl2": 39,
        "assigned_device_lvl3": 39,
        "schedule_type": "now",
        "send_start_time": "2022-05-20 15:54",
        "lvl1_fu_time": {
            "date": "2022-05-20 15:58:00.000000",
            "timezone_type": 2,
            "timezone": "GMT"
        },
        "send_start_lvl2_time": {
            "date": "2022-05-20 16:00:00.000000",
            "timezone_type": 2,
            "timezone": "GMT"
        },
        "lvl2_fu_time": {
            "date": "2022-05-20 16:04:00.000000",
            "timezone_type": 2,
            "timezone": "GMT"
        },
        "send_start_lvl3_time": {
            "date": "2022-05-20 16:04:00.000000",
            "timezone_type": 2,
            "timezone": "GMT"
        },
        "lvl3_fu_time": {
            "date": "2022-05-20 16:08:00.000000",
            "timezone_type": 2,
            "timezone": "GMT"
        },
        "is_escalation_for_unoccupied_Room": 1,
        "source_from": "api",
        "updated_at": {
            "date": "2022-05-20 15:54:47.000000",
            "timezone_type": 2,
            "timezone": "GMT"
        },
        "created_at": {
            "date": "2022-05-20 15:54:47.000000",
            "timezone_type": 2,
            "timezone": "GMT"
        },
        "id": 6492,
        "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": "The selected request id is invalid.",
        "errorcode": "200"
    }
}

Updated on September 3, 2024

Was this article helpful?

Related Articles

Leave a Comment