Create a new Duty Manager Logbook entry in BPN Maestro
https://app.bpn-solutions.com/api/dlm/store
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",
"room": "0502",
"problem_id": "1173",
"property_location_id":"147",
"incident_details":"Lobby area was not cleaned properly."
}
Method : POST
Parameter | Type | Contract | Description |
api-key | String | Required | Application key |
api-key | String | Required | Application Secret key |
api-lang | String | Optional | zh, zhh, en, fr, de, it, ja, th, vi, es, kr, id Default value is an en. |
room | Integer | Required | Room Number |
problem_id | Integer | Required | Problem ID |
property_location_id | Integer | Required | Problem Location ID |
incident_details | Text | Optional | Incident details |
Response
In case of success, the HTTP status code is 200 and the content contains result according to the call.
{
"result": {
"rstatus": 1,
"messages": "DLM entry added successfully",
"errorcode": "200"
},
"data": {
"guest_id": 2398,
"property_id": 7,
"problem_id": 1173,
"department_id": "169",
"problem_category_id": "146",
"incident_details": "test api",
"logbook_entry_status_id": "1",
"recovery_value": null,
"incident_location": "147",
"experience": "Complaint",
"incident_date": {
"date": "2022-05-19 18:52:43.000000",
"timezone_type": 2,
"timezone": "GMT"
},
"department_alert": "613,614,615,616",
"logged_by": 8,
"logged_on": {
"date": "2022-05-19 18:52:43.000000",
"timezone_type": 2,
"timezone": "GMT"
},
"external_guest": "no",
"type": "guest",
"source_from": "api",
"updated_at": {
"date": "2022-05-19 18:52:43.000000",
"timezone_type": 2,
"timezone": "GMT"
},
"created_at": {
"date": "2022-05-19 18:52:43.000000",
"timezone_type": 2,
"timezone": "GMT"
},
"id": 1773,
"lea_attachments": [],
"users": {
"id": 8,
"username": null,
"password": "$2y$10$Hh72W4vCY9QdrkhT38czZerHwKnUx11668pVnBk/CYd/66CbhZz5S",
"first_name": "CSPL",
"last_name": "Free",
"mobile": "12345684125",
"mobile_code": "cn",
"phone": "12385744587",
"phone_code": "ug",
"email": "csplfree@yopmail.com",
"position_id": "584",
"address_id": "9",
"last_login_timestamp": {
"date": "2022-05-19 09:54:46.000000",
"timezone_type": 2,
"timezone": "GMT"
},
"current_login_timestamp": "2022-05-19 16:28:49",
"language_id": "3",
"timezone_id": null,
"status": "1",
"avatar": "9c47321fa61f9c36a1c09b3e2640a9d8880.png",
"login_count": "1526",
"login_token": "axonF4QI12cZjqaph1Smu2jpaxHfue9D",
"is_configure": "no",
"remember_token": "AG5nVkwskJrsgaMAbOKUbwhhsfIwySVwb3VuvqfZDA7VARisqplhWPnFfgQC",
"created_at": {
"date": "2020-05-23 04:20:57.000000",
"timezone_type": 2,
"timezone": "GMT"
},
"updated_at": {
"date": "2022-05-19 16:28:49.000000",
"timezone_type": 2,
"timezone": "GMT"
},
"deleted_at": null,
"is_freetrail": "0",
"about_me": "This is some simple introduction text coming from the BPN Profile View.",
"designation": "Manager",
"is_show_msg": "true",
"is_show_modal": ",11,9,2,1,7,12,13",
"is_grm_broadcast": "1"
}
}
}
In case of any error, the returned JSON object describes the error and has the following
{
"result": {
"rstatus": 0,
"messages": "The selected problem id is invalid.",
"errorcode": "200"
}
}