Get one user's contracts

This interface is used to get contracts of a worker.

Get one user's contracts

GET /get-ee-contract

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <token>

Body

Name
Type
Required
Description

email

string

Account email of the user

customer_id

string

The unique Marco identifier for your company

search_start_date

date

Start date of the date range filter, only contract start date on or after the selected date will be returned

search_end_date

date

End Date of the date range filter, only contract start date on or before the selected date will be returned

Parameter Example

{
  "customer_id": "1",
  "email": "[email protected]",
  "search_start_date": "2024-07-01",
  "search_end_date": "2024-12-12"
}

Response

[
    {
        "id": 5090,
        "customer_id": 1,
        "country": 190,
        "is_local": false,
        "home_host": "",
        "staff_type": "",
        "ec_vendor": 0,
        "ec_entity": 0,
        "ec_type": "",
        "ec_copy": 0,
        "start_date": "2024-10-28",
        "end_date": "2024-12-19",
        "ic_type": null,
        "ic_entity": 0,
        "user": 2232,
        "platform_email": "[email protected]"
    },
    {
        "id": 3934,
        "customer_id": 1,
        "country": 15,
        "is_local": true,
        "home_host": "Host",
        "staff_type": "EOR",
        "ec_vendor": "Marco Test",
        "ec_entity": "Marco Test - Entity 1",
        "ec_type": "Fixed-term",
        "ec_copy": {
            "id": 21230,
            "file_name": "qrcode_for_gh_d210e8409f6d_860.jpg",
            "file_type": "jpg",
            "file_url": "https://marcopayroll-production.s3.ap-southeast-1.amazonaws.com/img/d92c8c4c-2017-4fbe-9cc3-98fa4245e13a-1729154903627.jpg?X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAR7OVYMK3MWXZDBXJ%2F20241031%2Fap-southeast-1%2Fs3%2Faws4_request&X-Amz-Date=20241031T081755Z&X-Amz-SignedHeaders=host&X-Amz-Expires=600&X-Amz-Signature=e9c013cf722d2def63189134f673fdff003b4ef03194dd6f6de22fc7e0a3607e"
        },
        "start_date": "2024-09-11",
        "end_date": "2025-11-09",
        "ic_type": "",
        "ic_entity": 0,
        "user": 2232,
        "platform_email": "[email protected]"
    }
]

Last updated