POST api/Policy/CancelPolicy
Request Information
URI Parameters
None.
Body Parameters
PolicyCancelModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | globally unique identifier |
None. |
|
| PolicyId | globally unique identifier |
None. |
|
| ReasonCode | string |
None. |
|
| Comment | string |
None. |
|
| CancelledBy | string |
None. |
|
| CancelledDate | date |
None. |
|
| CreatedDate | date |
None. |
|
| DealerCode | string |
None. |
|
| PolicyNumber | string |
None. |
|
| CompanyCode | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": "668aa0fa-7943-4575-a0c8-83d32046d906",
"PolicyId": "1aaf6e36-3c48-4f51-857d-4daf26a3bd37",
"ReasonCode": "sample string 3",
"Comment": "sample string 4",
"CancelledBy": "sample string 5",
"CancelledDate": "2026-05-13T19:19:40.5842522+00:00",
"CreatedDate": "2026-05-13T19:19:40.5842522+00:00",
"DealerCode": "sample string 8",
"PolicyNumber": "sample string 9",
"CompanyCode": "sample string 10"
}
application/xml, text/xml
Sample:
<PolicyCancelModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GES.Business.Models"> <CancelledBy>sample string 5</CancelledBy> <CancelledDate>2026-05-13T19:19:40.5842522+00:00</CancelledDate> <Comment>sample string 4</Comment> <CompanyCode>sample string 10</CompanyCode> <CreatedDate>2026-05-13T19:19:40.5842522+00:00</CreatedDate> <DealerCode>sample string 8</DealerCode> <Id>668aa0fa-7943-4575-a0c8-83d32046d906</Id> <PolicyId>1aaf6e36-3c48-4f51-857d-4daf26a3bd37</PolicyId> <PolicyNumber>sample string 9</PolicyNumber> <ReasonCode>sample string 3</ReasonCode> </PolicyCancelModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |