Get one user's passport records
Get one user's passport records
GET /get-ee-passport
Headers
Name
Value
Content-Type
application/json
Authorization
Bearer <token>
Body
Name
Type
Required
Description
customer_id
string
The unique Marco identifier for your company.
email
string
Email of the user
Parameter Example
{
"customer_id": "1",
"email": "[email protected]"
}Response
[
{
"id": 1503,
"customer_id": 1,
"passport_number": "123456789",
"passport_name": "Zhounan Zhang",
"passport_country": 15,
"issue_date": "2025-01-01",
"expiry_date": "2026-01-01",
"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=20250115T074840Z&X-Amz-SignedHeaders=host&X-Amz-Expires=600&X-Amz-Signature=654d2bf41fafa9eb4e99f3dad9adc846fbe9d359c2e185d5cae59b895b37d359"
},
{
"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=20250115T074840Z&X-Amz-SignedHeaders=host&X-Amz-Expires=600&X-Amz-Signature=785fd9914379af64fde2a9932912f68928c311a3aa7e490322bb2ca6667f72f2"
}
],
"user": 2232,
"platform_email": "[email protected]"
}
]{
"error": "Invalid request"
}Last updated