Add a new visa record for a user

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

Add new visa record

POST /add-ee-visa

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

visa_name

string

Visa name

visa_start_date

date

visa_end_date

date

visa_country

string

request_date

number

status

string

travel_from_country

number

notes

string

application_files

string

application_files_path

list of string

approval_files

list of file resource

Related files

approval_files_path

list of string

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

Parameter Example

{
  "visa_end_date": "2024-01-01",
  "visa_start_date": "2023-01-01",
  "email": "[email protected]",
  "customer_id": "1",
  "notes": "testing",
  "visa_name": "Work Visa",
  "visa_country": "SG",
  "request_date": "2022-12-02",
  "status": "Completed",
  "travel_from_country": "CN"
}

Request Example

Response

{
    "id": 556,
    "customer_id": 1,
    "application_doc_list": [
        {
            "id": 30448,
            "file_name": "New Microsoft Word Document.docx",
            "file_type": "docx",
            "file_url": "https://marcopayroll-production.s3.ap-southeast-1.amazonaws.com/doc/f2a83ba5-ff4e-417d-8dff-2eb986482be5-1736929279367.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=20250115T082119Z&X-Amz-SignedHeaders=host&X-Amz-Expires=600&X-Amz-Signature=5a98faa03b0590ca5a0362d5a364a037cedccaf115456b8eb4a036b0a64423c6"
        }
    ],
    "approval_doc_list": [
        {
            "id": 30449,
            "file_name": "get token-java code.txt",
            "file_type": "txt",
            "file_url": "https://marcopayroll-production.s3.ap-southeast-1.amazonaws.com/doc/122c953c-ce6a-4865-bdfb-33c8c27139e9-1736929279571.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=20250115T082119Z&X-Amz-SignedHeaders=host&X-Amz-Expires=600&X-Amz-Signature=c784475ca6128c28b62b99e88db25f40246330eff19d21052f699d2f878dc495"
        }
    ],
    "leaving_country": 15,
    "visiting_country": 70,
    "notes": "testing",
    "status": "Completed",
    "request_date": "2022-12-02",
    "visa_start_date": "2023-01-01",
    "visa_expiring_date": "2024-01-01",
    "visa_name": "Work Visa",
    "user": 2232,
    "platform_email": "[email protected]"
}

Last updated