POST api/agentauth/request?token={token}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
token

string

None.

Body Parameters

AgentAuthRequest
NameDescriptionTypeAdditional information
accessToken

string

None.

reauthorizeRequiredDate

date

None.

SetCookie

boolean

None.

CreateCustomer

boolean

None.

EmployeeId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "accessToken": "sample string 1",
  "reauthorizeRequiredDate": "2021-07-31T06:07:41.2693377+00:00",
  "SetCookie": true,
  "CreateCustomer": true,
  "EmployeeId": 1
}

text/html

Sample:
{"accessToken":"sample string 1","reauthorizeRequiredDate":"2021-07-31T06:07:41.2693377+00:00","SetCookie":true,"CreateCustomer":true,"EmployeeId":1}

application/xml, text/xml

Sample:
<AgentAuthRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NPlay.Common.Models.Services">
  <AccessToken>sample string 1</AccessToken>
  <CreateCustomer>true</CreateCustomer>
  <EmployeeId>1</EmployeeId>
  <ReauthorizeRequiredDate>2021-07-31T06:07:41.2693377+00:00</ReauthorizeRequiredDate>
  <SetCookie>true</SetCookie>
</AgentAuthRequest>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'AgentAuthRequest'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, text/html, application/xml, text/xml

Sample:

Sample not available.