...
Codeblock |
---|
PUT /setup/requests { "type":"guestRequest", "labelForCustomer":{ "de_DE":"Gästewunsch", "en_US":"Guest request" }, "content":true, "link":true, "title":true, "referenceID":true, "attachements":false, "enabledByDefault":true, "text":false, "sendRecipients":false, "hasActions":falsetrue } |
Enable Request
Before sending requests to a client, the requestType must be enabled for the respective client.
Codeblock |
---|
PUT /setup/customer { "enabledRequests":["guestRequest"] } |
To check imports in your test-environment, please make sure you are set as a recipient to read the import. This only applies in the test-environment.
Task Import
At first the task will be created at POST /requests and after that the status may be changed several times.
...
Codeblock |
---|
POST /requests?type=guestRequest { "title":"Extra towel in room #404", "content":{ "Comment of guest":"Please in XL" }, "link":"https://hotelkit.net/demo/123", //link to partners details "referenceID":"123", "actions":[ { "type":"decline", "label":"Decline", "labelDone":"Declined", "labelType":"error", "isDone":true, "information":{ "text":{ "required":true, "type":"text", "label":"Reason" } } }, { "type":"accept", "label":"AcceptResolve", "labelDone":"AcceptedCompleted", "labelType":"success", "isDone":true }, ] } |
...