Edit passport record

This interface is used to edit passport record.

Edit passport record

POST /edit-ee-passport

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <token>

Body

Name
Type
Required
Description

ee_passport_id

string

passport_name

string

passport plan name

passport_number

string

passport_country

string

issue_date

date

expiry_date

date

is_default

boolean

files

list of file resource

Related files

files_path

list of string

If the file cannot be uploaded, the file link will also work.

Parameter Example

{
  "ee_passport_id": "1503",
  "files_path": [],
  "passport_name": "Work",
  "passport_number": "12352",
  "passport_country": "CN",
  "issue_date": "2023-01-05",
  "expiry_date": "2033-01-04",
  "is_default": true
}

Request Example

Response

{
    "id": 1503,
    "customer_id": 1,
    "passport_number": "12352",
    "passport_name": "Work",
    "passport_country": 15,
    "issue_date": "2023-01-05",
    "expiry_date": "2033-01-04",
    "is_default": true,
    "doc_list": [
        {
            "id": 30110,
            "file_name": "New Microsoft Word Document.docx",
            "file_type": "docx",
            "file_url": "https://marcopayroll-production.s3.ap-southeast-1.amazonaws.com/doc/84bc82fa-4c89-478d-9472-6401e88ec5a6-1736503595962.docx?X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAR7OVYMK3MWXZDBXJ%2F20250115%2Fap-southeast-1%2Fs3%2Faws4_request&X-Amz-Date=20250115T075406Z&X-Amz-SignedHeaders=host&X-Amz-Expires=600&X-Amz-Signature=348928542ed53ac0a89266ae5af2e91441848cc91c1a3dacb6ec7f6056025a39",
            "created_at": 1736503614658,
            "updated_at": 1736503614659,
            "last_modified_by": 2731,
            "deleted_at": null
        },
        {
            "id": 30111,
            "file_name": "add expense -java code.txt",
            "file_type": "txt",
            "file_url": "https://marcopayroll-production.s3.ap-southeast-1.amazonaws.com/doc/22a633a6-adb1-4a22-b678-271ded523523-1736503611372.txt?X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAR7OVYMK3MWXZDBXJ%2F20250115%2Fap-southeast-1%2Fs3%2Faws4_request&X-Amz-Date=20250115T075406Z&X-Amz-SignedHeaders=host&X-Amz-Expires=600&X-Amz-Signature=4836fde3fdd21e6a2471b7e6c66c21d0a8926816d64f8ac48dc3c0cdec72ec86",
            "created_at": 1736503614669,
            "updated_at": 1736503614670,
            "last_modified_by": 2731,
            "deleted_at": null
        }
    ],
    "user": 2232,
    "platform_email": "[email protected]"
}

Last updated