Skip to main content

interactionisnotdelivered

POST v1/application/interactionisnotdelivered#

An interaction may have been created in your queue system for live help or a call, but for some reason this interaction may not have been assigned to any agent. In such cases, you can use this API to prevent customers from waiting on the waiting screen. The Diyalog system allows the customer in waiting status to exit the waiting screen.

API requests

  • Must be authenticated with HMAC Authentication. For HMAC Authentication, see the Authentication document.
  • API URI : https://DIYALOG-SERVER-API-ENDPOINT/v1/application/interactionisnotdelivered
  • HTTP Request Type POST
  • HTTP Content-Type application/json

Request Body#

Schema
json object
interactionId (String)
Optional.
It is the id information of the interaction that cannot be transmitted to any agent. This value is optional. If it is not provided, sessionId information should be provided to API.
sessionId (String)
Optional.
This information is the sessionId information that Diyalog sends to you when creating the interaction. Diyalog will reach the relevant customer using this information and end the customer's wait. If the interaction id information is provided to the API, the interaction id will be used first instead of this session id.
message (String)
Optional.
You can provide detailed information in this field about why the Interaction could not be forwarded to any agent. This field will be forwarded to the mobile application. You can use it as a message to be shown to the customer.

Example Json Request Body :#

{
"interactionId" : "123456",
"sessionId" : "123121212121",
"message" : "I can't help you right now. Please try again later."
}

Note: If you give the interaction id information to the API, the API will not use the session id information. Therefore, it is sufficient to pass either the interaction id or session id information to the API.

Responses#

HTTP 200 Response
json object
The API returns a json object as a response. You can get detailed information about the API result from this answer.
     isSuccess (boolean)
      this field returns information about whether the API was successful or not.
      True indicates that the API is running successfully and processing your request
      False indicates that an error occurred.
     message (string)
     An information message is returned regarding the result of the operation.
     errorCode (int)
     Optional.
      Error code of the result. It is not returned when isSuccess is true.
      Return Codes :
          400 : Neither interactionId nor sessionId is in your request. Provide one of them.
          402 : No customer is waiting in a given interaction id. The customer should not be waiting to connect.
          403 :Customer is waiting for a different interaction. The customer might cancel this interaction and start another.

Example Response Body :#

{
"isSuccess": true,
"message": "Customer waiting will be stopped."
}
HTTP 500 Response
string
When the API receives an exception, it will return a response with the HTTP 500 status code. The API's error message is returned as text.

If the request fails HMAC validation, the following errors are returned as plain text. See Authentication.

HTTP statusMessageDescription
400Required headers not foundOne or more of the x-dlg-date, x-dlg-requester-userid or x-dlg-authorization headers are missing.
400Authorization failed due to data format not validThe x-dlg-authorization value after DLGA is not in the AccessKeyId:Signature form.
400Date format is invalid. EEE, dd MMM yyyy HH:mm:ss Z is requiedThe x-dlg-date value cannot be parsed in this format. The message text is returned as shown, including its spelling.
401Authorization failedThe x-dlg-authorization header does not contain DLGA , the AccessKeyId is unknown, or the signature is not correct.
401You have no permission on this operation. Contact your admin.The signature is correct, but your access key has no application permission.
403Request time may not be correct.The x-dlg-date value differs from the server time by more than 15 minutes.