POST ShortTermClaims/CreateVehicleAccidentOccupant
Request Information
URI Parameters
None.
Body Parameters
CreateVehicleAccidentOccupantRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| Occupant | CreateOccupant |
None. |
|
| SecurityKey | string |
None. |
|
| PolicyId | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"Occupant": {
"ClaimId": 1,
"OccupantTypeId": 2,
"FirstName": "sample string 3",
"Surname": "sample string 4",
"ContactNumber": "sample string 5",
"IsInjured": true,
"IsInsured": true,
"CreatedBy": "sample string 8"
},
"SecurityKey": "sample string 1",
"PolicyId": 2
}
application/xml, text/xml
Sample:
<CreateVehicleAccidentOccupantRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/api.oneplan.co.za.Models">
<PolicyId>2</PolicyId>
<SecurityKey>sample string 1</SecurityKey>
<Occupant xmlns:d2p1="http://schemas.datacontract.org/2004/07/WebApiClaims.Proxies.Models">
<d2p1:ClaimId>1</d2p1:ClaimId>
<d2p1:ContactNumber>sample string 5</d2p1:ContactNumber>
<d2p1:CreatedBy>sample string 8</d2p1:CreatedBy>
<d2p1:FirstName>sample string 3</d2p1:FirstName>
<d2p1:IsInjured>true</d2p1:IsInjured>
<d2p1:IsInsured>true</d2p1:IsInsured>
<d2p1:OccupantTypeId>2</d2p1:OccupantTypeId>
<d2p1:Surname>sample string 4</d2p1:Surname>
</Occupant>
</CreateVehicleAccidentOccupantRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ResponseOfInt32| Name | Description | Type | Additional information |
|---|---|---|---|
| Success | boolean |
None. |
|
| Message | string |
None. |
|
| Entity | integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"Success": true,
"Message": "sample string 2",
"Entity": 3
}
application/xml, text/xml
Sample:
<ResponseOfint xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/OnePlan.Core"> <Entity>3</Entity> <Message>sample string 2</Message> <Success>true</Success> </ResponseOfint>