POST api/ExternalConnection
Request Information
URI Parameters
None.
Body Parameters
TNSJobInfoDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| jobData | TNSJobDTO |
None. |
|
| agentRefusals | Collection of TNSAgentRefusalDTO |
None. |
|
| callLogs | Collection of TNSCallLogDTO |
None. |
Request Formats
application/json, text/json
Sample:
{
"jobData": {
"TNS": 1,
"schemeName": "sample string 2",
"createDate": "sample string 3",
"driverName": "sample string 4",
"driverNumber": "sample string 5",
"callerName": "sample string 6",
"callerNumber": "sample string 7",
"vehicleID": "sample string 8",
"altVehicleID": "sample string 9",
"jobType": "sample string 10",
"customerName": "sample string 11",
"customerOrderNumber": "sample string 12",
"endUser": "sample string 13",
"breakdownLocation": "sample string 14",
"breakdownLocationPostcode": "sample string 15",
"reportedFault": "sample string 16",
"attendingAgent": "sample string 17",
"ETA": "sample string 18",
"ATA": "sample string 19",
"ATC": "sample string 20",
"outcome": "sample string 21",
"outcomeSummary": "sample string 22",
"jobId": 23
},
"agentRefusals": [
{
"agentName": "sample string 1",
"refusalDate": "sample string 2",
"refusalReason": "sample string 3",
"refusalID": 4
},
{
"agentName": "sample string 1",
"refusalDate": "sample string 2",
"refusalReason": "sample string 3",
"refusalID": 4
}
],
"callLogs": [
{
"callText": "sample string 1",
"callDate": "sample string 2",
"callID": 3
},
{
"callText": "sample string 1",
"callDate": "sample string 2",
"callID": 3
}
]
}
application/xml, text/xml
Sample:
<TNSJobInfoDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DMH.DTO">
<agentRefusals>
<TNSAgentRefusalDTO>
<agentName>sample string 1</agentName>
<refusalDate>sample string 2</refusalDate>
<refusalID>4</refusalID>
<refusalReason>sample string 3</refusalReason>
</TNSAgentRefusalDTO>
<TNSAgentRefusalDTO>
<agentName>sample string 1</agentName>
<refusalDate>sample string 2</refusalDate>
<refusalID>4</refusalID>
<refusalReason>sample string 3</refusalReason>
</TNSAgentRefusalDTO>
</agentRefusals>
<callLogs>
<TNSCallLogDTO>
<callDate>sample string 2</callDate>
<callID>3</callID>
<callText>sample string 1</callText>
</TNSCallLogDTO>
<TNSCallLogDTO>
<callDate>sample string 2</callDate>
<callID>3</callID>
<callText>sample string 1</callText>
</TNSCallLogDTO>
</callLogs>
<jobData>
<ATA>sample string 19</ATA>
<ATC>sample string 20</ATC>
<ETA>sample string 18</ETA>
<TNS>1</TNS>
<altVehicleID>sample string 9</altVehicleID>
<attendingAgent>sample string 17</attendingAgent>
<breakdownLocation>sample string 14</breakdownLocation>
<breakdownLocationPostcode>sample string 15</breakdownLocationPostcode>
<callerName>sample string 6</callerName>
<callerNumber>sample string 7</callerNumber>
<createDate>sample string 3</createDate>
<customerName>sample string 11</customerName>
<customerOrderNumber>sample string 12</customerOrderNumber>
<driverName>sample string 4</driverName>
<driverNumber>sample string 5</driverNumber>
<endUser>sample string 13</endUser>
<jobId>23</jobId>
<jobType>sample string 10</jobType>
<outcome>sample string 21</outcome>
<outcomeSummary>sample string 22</outcomeSummary>
<reportedFault>sample string 16</reportedFault>
<schemeName>sample string 2</schemeName>
<vehicleID>sample string 8</vehicleID>
</jobData>
</TNSJobInfoDTO>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
stringResponse Formats
application/json, text/json
Sample:
"sample string 1"
application/xml, text/xml
Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>