Add a new passport record for a user

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

Add new passport record

POST /add-ee-passport

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

passport_name

string

Passport name

passport_number

string

Passport Number

passport_country

string

Passport issuing country

issue_date

date

Passport issue date

expiry_date

date

Passport expiry date

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

{
  "email": "[email protected]",
  "customer_id": "1",
  "passport_name": "zhounan",
  "passport_number": "1524",
  "passport_country": "SG",
  "files_path": [],
  "issue_date": "2025-01-01",
  "expiry_date": null,
  "is_default": false
}

Request Example

Response

{
    "id": 1518,
    "customer_id": 1,
    "passport_number": "1524",
    "passport_name": "zhounan",
    "passport_country": 70,
    "issue_date": "2025-01-01",
    "expiry_date": null,
    "is_default": false,
    "doc_list": [
        {
            "id": 30446,
            "file_name": "New Microsoft Word Document.docx",
            "file_type": "docx",
            "file_url": "https://marcopayroll-production.s3.ap-southeast-1.amazonaws.com/doc/bdb7bea5-65d0-4a0e-97d6-8d9a0e3627b1-1736928321802.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=20250115T080521Z&X-Amz-SignedHeaders=host&X-Amz-Expires=600&X-Amz-Signature=88bf9c8b753af12dd90fbd6ff7c4fe53db43ad7c5e00433c325804a1d8e19c3b"
        }
    ],
    "user": 2232,
    "platform_email": "[email protected]"
}

Last updated