Edit insurance record
This interface is used to edit insurance record.
Edit insurance record
POST /edit-ee-insurance
Headers
Name
Value
Content-Type
application/json
Authorization
Bearer <token>
Body
Name
Type
Required
Description
ee_insurance_id
string
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": "Testing",
"doc_list": [
{
"id": 29444,
"file_name": "ss.svg",
"file_type": "svg",
"file_url": "https://marcopayroll-production.s3.ap-southeast-1.amazonaws.com/img/789b9853-f6ad-4cf4-9bd8-d1a18505f6ea-1735893814360.svg?X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAR7OVYMK3MWXZDBXJ%2F20250103%2Fap-southeast-1%2Fs3%2Faws4_request&X-Amz-Date=20250103T084334Z&X-Amz-SignedHeaders=host&X-Amz-Expires=600&X-Amz-Signature=1ce5865152214355ef2107b130a2956fae98542d397602cb27507eb69a94f7e7"
}
],
"purchase_type": "Personal",
"start_date": "2024-12-01",
"end_date": "2024-12-31",
"coverage_list": [
"Dental"
],
"premium_rate": 300.5,
"premium_currency": "CNY",
"premium_frequency": "Monthly",
"user": 2232,
"platform_email": "[email protected]"
}Last updated