Get one user's expense items

This endpoint can get one user's expense item.

Get one users expense items

GET /get-ee-expenses

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

expense_status

string

If expense status is null, will return all the expense items Valid value: Submitted/Approved/Rejected/Processing/Processed

search_start_date

date

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

search_end_date

date

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

pagination

json

Each page returns 50 records. By defualt, the first page data is returned. Example: {"page":2}

Parameter Example

{
  "customer_id": "1",
  "email": "[email protected]"
  "search_start_date": null,
  "search_end_date": null,
  "pagination": {
    "page": "1"
  },
  "expense_status": ""
}

Response

[
    {
        "id": 5370,
        "customer_id": 1,
        "expense_date": "2024-11-01",
        "expense_currency": "CNY",
        "expense_amount": 6600,
        "title": "Hotel3",
        "doc_list": [
            {
                "id": 22291,
                "file_name": "600x400.svg",
                "file_type": "svg",
                "file_url": "https://marcopayroll-production.s3.ap-southeast-1.amazonaws.com/img/babbd431-43e6-45ee-be86-067cb6cd6b86-1730273266208.svg?X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAR7OVYMK3MWXZDBXJ%2F20241030%2Fap-southeast-1%2Fs3%2Faws4_request&X-Amz-Date=20241030T093104Z&X-Amz-SignedHeaders=host&X-Amz-Expires=600&X-Amz-Signature=db4455d01fe95df798989e01069ae5f68e7239974fa658cdd67867bec217ba0c",
                "created_at": 1730273266394,
                "updated_at": 1730273266394,
                "last_modified_by": 1818,
                "deleted_at": null
            },
            {
                "id": 22292,
                "file_name": "75434f85-6aef-4bc3-ba86-895dda192ffb-1722241451579_43602004-1de5498c-567b-4827-985a-a88d1bf35b0e.pdf",
                "file_type": "pdf",
                "file_url": "https://marcopayroll-production.s3.ap-southeast-1.amazonaws.com/doc/e690d60b-f22b-448b-b284-ad84e58d1c1e-1730273267487.pdf?X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAR7OVYMK3MWXZDBXJ%2F20241030%2Fap-southeast-1%2Fs3%2Faws4_request&X-Amz-Date=20241030T093104Z&X-Amz-SignedHeaders=host&X-Amz-Expires=600&X-Amz-Signature=4c5677cc92658ba4cb0a7a9a6dea537a7dcb466c5e46f66adcdb8c0300ae59f1",
                "created_at": 1730273267615,
                "updated_at": 1730273267615,
                "last_modified_by": 1818,
                "deleted_at": null
            }
        ],
        "notes": "Testing",
        "travel_start_date": "2024-10-07",
        "travel_end_date": "2024-10-06",
        "origin": "China",
        "destination": null,
        "status": "Submitted",
        "approver": 0,
        "decision_time": null,
        "decision": "",
        "reject_notes": "",
        "user": 2232,
        "platform_email": "[email protected]"
    },
    {
        "id": 5369,
        "customer_id": 1,
        "expense_date": "2024-10-12",
        "expense_currency": "CNY",
        "expense_amount": 600,
        "title": "Hotel3",
        "doc_list": [
            {
                "id": 22289,
                "file_name": "600x400.svg",
                "file_type": "svg",
                "file_url": "https://marcopayroll-production.s3.ap-southeast-1.amazonaws.com/img/95574bd2-7f3b-42ec-94f1-03286bae0526-1730272955105.svg?X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAR7OVYMK3MWXZDBXJ%2F20241030%2Fap-southeast-1%2Fs3%2Faws4_request&X-Amz-Date=20241030T093104Z&X-Amz-SignedHeaders=host&X-Amz-Expires=600&X-Amz-Signature=6b6cc5004d7842a76a8be77e372244e900913a29d6cfd208c840a7aaa87e3926",
                "created_at": 1730272955205,
                "updated_at": 1730272955205,
                "last_modified_by": 1818,
                "deleted_at": null
            }
        ],
        "notes": "Testing",
        "travel_start_date": "2024-10-07",
        "travel_end_date": "2024-10-09",
        "origin": "China",
        "destination": "Singapore",
        "status": "Submitted",
        "approver": 0,
        "decision_time": null,
        "decision": "",
        "reject_notes": "",
        "user": 2232,
        "platform_email": "[email protected]"
    },
    {
       ...
    }
]

Last updated