Agent Request Format for AnswerTask

Purpose

Refreshes the token

Who performsWhite Server Agent

The agent switches to the new address if it is available.

To execute a request:

  1. In the White Server admin panel, go to your restaurant
  2. Go to the Tasks tab
  3. Click on the Run command button
  4. Select ServicePushAuthToken
  5. Fill in the fields:
    • Execute command via  Agent or Monitor
  6. Click the Ok button.

The server requests the current token from the licensing system and saves it to the WhiteServer database. The ServicePushAuthToken command is sent to the agent.

Server response format for GetTask:
JSON

{
   "result":{
      "taskGuid":"guid",
      "taskType":"ServicePushAuthToken",
      "params":{
            "authToken":"string"
      }
   }
}



Agent request format for AnswerTask:
JSON

{
   "rpcTaskType":"AnswerTask",
   "params":{
      "taskGuid":"guid",
      "taskResponse":{}
   }
}