Skip to content

Terminate policy with manual premium

Request

Security
bearerAuth
Path
policyIdintegerrequired
Headers
X-TENANT-IDstringrequired

Tenant tag

Example:{$inputs.tenant}
Bodyapplication/json
One of:
policyobject
objectsArray of objects
curl -i -X POST \
  'https://ledger.app.beta.insly.training/api/v1/ledger/policies/{policyId}/terminate' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -H 'X-TENANT-ID: {$inputs.tenant}' \
  -d '{
    "policy": {
      "terminationType": "full-rollback",
      "terminationReason": "Optional reason"
    },
    "financials": {
      "adminFeeSum": 0
    }
  }'

Responses

Event id

Bodyapplication/json
event_idinteger
Example:"123"
Response
{ "event_id": "123" }