POST api/Policy/Cancel
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": "045e88ef-6c44-45ed-894c-8802fcb34b9f",
"PolicyId": "6a470cf2-fcac-46ad-8026-7b16f6720b6b",
"ReasonCode": "sample string 3",
"Comment": "sample string 4",
"CancelledBy": "sample string 5",
"CancelledDate": "2026-10-30T14:09:47.5448026+00:00",
"CreatedDate": "2026-10-30T14:09:47.5448026+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-10-30T14:09:47.5448026+00:00</CancelledDate> <Comment>sample string 4</Comment> <CompanyCode>sample string 10</CompanyCode> <CreatedDate>2026-10-30T14:09:47.5448026+00:00</CreatedDate> <DealerCode>sample string 8</DealerCode> <Id>045e88ef-6c44-45ed-894c-8802fcb34b9f</Id> <PolicyId>6a470cf2-fcac-46ad-8026-7b16f6720b6b</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. |