POST api/DtTrip/SSO

Request Information

URI Parameters

None.

Body Parameters

SSORequestParam
NameDescriptionTypeAdditional information
outEmployeeId

string

None.

plat

integer

None.

entrance

integer

None.

travelType

integer

None.

entranceParam

string

None.

bookExtendInfo

BookExtendInfo

None.

allowBookProductTypeList

Collection of integer

None.

Request Formats

application/json, text/json

Sample:
{
  "outEmployeeId": "sample string 1",
  "plat": 2,
  "entrance": 3,
  "travelType": 4,
  "entranceParam": "sample string 5",
  "bookExtendInfo": {
    "bookBeginDate": "2022-09-26 06:38:27",
    "bookEndDate": "2022-09-26 06:38:27",
    "orderSubmitSettingList": [
      {
        "code": "sample string 1",
        "value": "sample string 2"
      },
      {
        "code": "sample string 1",
        "value": "sample string 2"
      }
    ]
  },
  "allowBookProductTypeList": [
    1,
    2
  ]
}

application/xml, text/xml

Sample:
<SSORequestParam xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Strong.WebAPI.Model.DtTrip.Dto">
  <allowBookProductTypeList xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </allowBookProductTypeList>
  <bookExtendInfo>
    <bookBeginDate>2022-09-26T18:38:27.9440784+08:00</bookBeginDate>
    <bookEndDate>2022-09-26T18:38:27.9440784+08:00</bookEndDate>
    <orderSubmitSettingList>
      <SSORequestParam.BookExtendInfo.OrderSubmitSetting>
        <code>sample string 1</code>
        <value>sample string 2</value>
      </SSORequestParam.BookExtendInfo.OrderSubmitSetting>
      <SSORequestParam.BookExtendInfo.OrderSubmitSetting>
        <code>sample string 1</code>
        <value>sample string 2</value>
      </SSORequestParam.BookExtendInfo.OrderSubmitSetting>
    </orderSubmitSettingList>
  </bookExtendInfo>
  <entrance>3</entrance>
  <entranceParam>sample string 5</entranceParam>
  <outEmployeeId>sample string 1</outEmployeeId>
  <plat>2</plat>
  <travelType>4</travelType>
</SSORequestParam>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

SSOResponseView
NameDescriptionTypeAdditional information
redirectUrl

string

None.

success

boolean

None.

errorCode

string

None.

errorMessage

string

None.

errorType

integer

None.

data

SSOResponseData

None.

requestData

Object

None.

Response Formats

application/json, text/json

Sample:
{
  "redirectUrl": "sample string 1",
  "success": true,
  "errorCode": "sample string 3",
  "errorMessage": "sample string 4",
  "errorType": 5,
  "data": {
    "employeeId": "sample string 1"
  },
  "requestData": {}
}

application/xml, text/xml

Sample:
<SSOResponseView xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Strong.WebAPI.Model.DtTrip.Dto">
  <data>
    <employeeId>sample string 1</employeeId>
  </data>
  <errorCode>sample string 3</errorCode>
  <errorMessage>sample string 4</errorMessage>
  <errorType>5</errorType>
  <requestData />
  <success>true</success>
  <redirectUrl>sample string 1</redirectUrl>
</SSOResponseView>