Skip to content

Change policy

Request

Security
bearerAuth
Headers
X-TENANT-IDstringrequired

Tenant tag

Example:{$inputs.tenant}
Accept-Languagestringrequired

Chosen language

Bodyapplication/json

Full request structure per product can be taken from json scheme Product json scheme. with type: policy and name: {name of the insurance product}.

any
curl -i -X POST \
  https://ledger.app.beta.insly.training/api/v1/ledger/sales/policies/mta \
  -H 'Accept-Language: string' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -H 'X-TENANT-ID: {$inputs.tenant}' \
  -d '{
    "policy": {
      "id": "{policyId}"
    },
    "schema": {
      "name": "{name of the insurance product}",
      "type": "policy"
    }
  }'

Responses

Creates policy mta

Bodyapplication/json
policyobject(policy)
customerobject(customer)
agentobject(agent)
objectsobject(object)
Response
{ "policy": { "id": "1234", "policyNo": "string", "dateIssue": "2019-08-24", "dateInception": "2019-08-24", "dateExpiry": "2019-08-24", "financials": { … }, "params": { … } }, "customer": { "name": "string", "code": "string", "params": { … } }, "agent": { "broker": "string", "code": "string", "params": { … } }, "objects": { "objectId": { … } } }