Get one user's payslip

Use this endpoint to get payslips for one worker. You can filter the currently available pay items using the "filter" parameter.

Get one user's payslip

GET /get-ee-payslips

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <token>

Body

Name
Type
Required
Description

customer_id

string

The unique id of the customer

Provide by Marco

email

string

search_start_date

string

Start date of the date range filter, only payslip's pay date on or after the selected date will be returned.

search_end_date

string

End date of the date range filter, only payslip's pay date on or bedore the selected date will be returned.

pagination

json

Parameter Example

{
  "customer_id": "1",
  "email": "[email protected]",
  "search_start_date": "2024-04-7-01",
  "search_end_date": "2024-07-31",
  "pagination": ""
}

Response

[
    {
        "id": 877,
        "customer_id": 1,
        "start_date": "2024-07-01",
        "end_date": "2024-07-31",
        "pay_date": "2024-07-31",
        "payment_currency": "",
        "doc_list": [
            {
                "id": 16656,
                "file_name": "data canada.csv",
                "file_type": "csv",
                "file_url": "https://marcopayroll-production.s3.ap-southeast-1.amazonaws.com/doc/f02b430d-18de-4223-aafd-73dcb389ff7f-1724227632470.csv?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=20241031T080928Z&X-Amz-SignedHeaders=host&X-Amz-Expires=600&X-Amz-Signature=46ac981a5228c5c7c1de9e02ace67eee45bf864c328b77daf1f15c56fd252ce2"
            },
            {
                "id": 16657,
                "file_name": "AnyDesk.exe",
                "file_type": "exe",
                "file_url": "https://marcopayroll-production.s3.ap-southeast-1.amazonaws.com/doc/464ea482-1cb9-412e-b1ef-53599aae7959-1724227790912.exe?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=20241031T080928Z&X-Amz-SignedHeaders=host&X-Amz-Expires=600&X-Amz-Signature=c96eecd367c23da43a985551c49f1b3fb73ef9a9f448099e5634e27e29a78011"
            }
        ],
        "user": 2232,
        "platform_email": "[email protected]"
    }
]

Last updated