Casava API Docs
  • 👋Welcome!
  • Definitions
  • Environments
  • Start Integration
  • Reference
    • API Reference
      • Policy
        • Policy Application
        • Get all policy holders
        • Get Policy Application Details
        • Get Policyholder by Policyholder Number
        • Get Policy Product
      • Quote
        • Create Policyholder with Quote
        • Get Quote By ID
      • Payment Notifications
  • Widget
    • Javascript Popup Widget
Powered by GitBook
On this page
  1. Reference
  2. API Reference
  3. Policy

Get Policy Application Details

PreviousGet all policy holdersNextGet Policyholder by Policyholder Number

Last updated 3 years ago

Use this endpoint to retrieve the details related to a specific policy application.

Sample Request

Pass the policy number via URL to the GET policy endpoint to retrieve policy information of a policy

Sample Response

Get the details of an insurance policy

{
  "statusCode": 200,
  "message": "successful operation",
  "data": {
    "quoteId": "9546916489",
    "policyHolderNumber": "080209934213519",
    "policyNumber": "XY2599220220304646202",
    "policyCode": "XY25992",
    "status": "applied",
    "startDate": "",
    "endDate": "",
    "nextPremiumDueDate": "",
    "redirectURL": "",
    "fieldValues": [
      {
        "key": "PERSONALINFO=>FIRSTNAME",
        "value": "stefanpgr"
      }
    ]
  }
}

Get the details of an insurance policy

get
Authorizations
Path parameters
policyNumberstringRequired

policy number assigned to policy holder

Header parameters
api_keyanyRequired
Responses
200
successful operation
application/json
400
Validation error issuing insurance policy
application/json
404
policy not found
get
GET /api/channel-service/v1/policy/{policyNumber} HTTP/1.1
Host: channel.sandbox.casava.co
api_key: YOUR_API_KEY
Accept: */*
{
  "quoteId": "1234567889",
  "policyHolderNumber": "1728283928929",
  "policyNumber": "1828292902039",
  "policyCode": "hosipcash",
  "status": "applied",
  "startDate": "2021-10-10",
  "endDate": "2022-10-10",
  "nextPremiumDueDate": "2021-11-10",
  "redirectURL": "text",
  "fieldValues": [
    {
      "fieldGroupId": "fieldGroupA",
      "fielId": "fieldIdA",
      "value": "field id value"
    }
  ]
}