Cancel Policy

V3

put /insurance/motor/v3/policies/{policy_id}/cancel?hash={hash}

This endpoint to cancel policy.

Request Header
Name Type Required Description
authorization string Required Bearer token
content-type string Required application/json
Request Body
Name Type Required Description
trans_no string Required Unique string that the client can create to track the current request call.
policy_id guid Required The policy id
hash string Required The hash value of the policy id.
reason string Required Reason for cancellation

Max length: 500

transaction_by guid Required Globally unique identifier value of the user id Provided by AXA
Example request
{
    "trans_no": "BB083044acf0140044",
    "reason": "ข้อมูลทะเบียนรถไม่ถูกต้อง",
    "transaction_by": "8C890CB2-9FAD-4953-BCC7-E54B9ACE827C"
}
Response
Name Type Description
trans_no string Unique string the client made the request
status string Cancel status
message string
Example response
{
    "trans_no": "BB083044acf0140044",
    "status": "Success",
    "message": ""
}