POST
/
policies
Issue policy
curl --request POST \
  --url https://staging.yasmina.ai/api/v1/life-snp/policies \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "offer_id": "<string>",
  "applicant_id": "<string>",
  "date_of_birth": "2023-12-25",
  "gender": "male",
  "smoker": true,
  "policy_term_years": 22,
  "premium_frequency": "monthly",
  "agreed_premium": 51,
  "start_date": "2023-12-25",
  "beneficiaries": [
    {
      "name": "<string>",
      "national_id": "<string>",
      "relationship": "spouse",
      "share_percentage": 50
    }
  ],
  "consent": true
}'
{
  "id": 123,
  "client_id": "<string>",
  "provider_policy_id": 123,
  "provider_policy": "<string>",
  "start_date": "<string>",
  "end_date": "<string>",
  "policy_term_years": 123,
  "sum_assured": 123,
  "premium_amount": 123,
  "premium_frequency": "<string>",
  "approval_status": 123,
  "order_status": 123,
  "status": "active",
  "beneficiaries": [
    {
      "name": "<string>",
      "national_id": "<string>",
      "relationship": "<string>",
      "share_percentage": 123
    }
  ],
  "iban_masked": "SA03*****************519",
  "is_claimed": true,
  "canceled_at": "<string>",
  "invoice": "<string>",
  "cancellation_document": "<string>",
  "meta_data": {},
  "created_at": "<string>",
  "updated_at": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Response

201
application/json

Created

The response is of type object.