Add a new insurance record for a user

This interface is used to add a new insurance record to a worker.

Add new insurance record

POST /add-ee-insurance

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <token>

Body

Name
Type
Required
Description

customer_id

number

The unique Marco identifier for your company

email

string

Account email of the user

plan_name

string

insurance plan name

plan_start_date

date

plan_end_date

date

purchase_type

string

Insurance purchase type Valid value: Group/Personal

dependents

number

premium_currency

string

premium_rate

number

premium_frequency

string

coverage_list

list of string

notes

string

files

list of file resource

Related files

files_path

string

If the file cannot be uploaded, the file link will also work. Please use "," to separate multiple file links.

Parameter Example

{
  "customer_id": "1",
  "email": "[email protected]",
  "plan_name": "Desco",
  "plan_start_date": "2025-01-01",
  "plan_end_date": "",
  "purchase_type": "Group",
  "dependents": 2,
  "premium_currency": "CNY",
  "premium_rate": 340,
  "premium_frequency": "Monthly",
  "coverage_list": [
    "Vision",
    "Dental"
  ],
  "notes": "API Testing",
  "files_path": ""
}

Request Example

Response

{
    "id": 192,
    "customer_id": 1,
    "notes": "API Testing",
    "dependents": 2,
    "plan_name": "Desco",
    "doc_list": [],
    "purchase_type": "Group",
    "start_date": "2025-01-01",
    "end_date": null,
    "coverage_list": [
        "Vision",
        "Dental"
    ],
    "premium_rate": 340,
    "premium_currency": "CNY",
    "premium_frequency": "Monthly",
    "user": 2232,
    "platform_email": "[email protected]"
}

Last updated