Get all worker's expense items

This endpoint can get all worker's expense item, and you can filter by date period or status.

Get all worker's expense items

GET /get-all-ee-expense

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

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

filter

json

Can filter expense status Example: {"status": "Submitted"} Status valid value: Submitted/Approved/Rejected/Processing/Processed

pagination

json

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

Parameter Example:

{
  "customer_id": 1,
  "filter": {
    "status": "Submitted"
  },
  "pagination": "",
  "search_start_date": "2024-01-01",
  "search_end_date": "2024-07-01"
}

Response

{
    "itemsReceived": 4,
    "curPage": 1,
    "nextPage": null,
    "prevPage": null,
    "offset": 0,
    "itemsTotal": 4,
    "pageTotal": 1,
    "items": [
        {
            "id": 1174,
            "customer_id": 89,
            "expense_currency": "MYR",
            "expense_amount": 323,
            "title": "Hotel",
            "doc_list": [],
            "notes": "",
            "travel_start_date": null,
            "travel_end_date": null,
            "origin": "",
            "destination": "",
            "status": "Submitted",
            "approver": 0,
            "decision_time": null,
            "decision": "",
            "reject_notes": "",
            "tax_free_payment_amount": null,
            "tax_free_payment_currency": null,
            "tax_free_payment_entity": 0,
            "taxable_payment_amount": null,
            "taxable_payment_currency": null,
            "taxable_payment_entity": 0,
            "invoice_billing_entity": 0,
            "processing_notes": null,
            "user": 2572,
            "platform_email": "[email protected]"
        },
        {
            "id": 1175,
            "customer_id": 89,
            "expense_currency": "HKD",
            "expense_amount": 600,
            "title": "IT Hardware",
            "doc_list": [],
            "notes": "",
            "travel_start_date": null,
            "travel_end_date": null,
            "origin": "",
            "destination": "",
            "status": "Submitted",
            "approver": 0,
            "decision_time": null,
            "decision": "",
            "reject_notes": "",
            "tax_free_payment_amount": null,
            "tax_free_payment_currency": null,
            "tax_free_payment_entity": 0,
            "taxable_payment_amount": null,
            "taxable_payment_currency": null,
            "taxable_payment_entity": 0,
            "invoice_billing_entity": 0,
            "processing_notes": null,
            "user": 2571,
            "platform_email": "[email protected]"
        },
        {
            "id": 476,
            "customer_id": 9,
            "expense_currency": "HKD",
            "expense_amount": 652,
            "title": "March Travel Free",
            "doc_list": [],
            "notes": "",
            "travel_start_date": null,
            "travel_end_date": null,
            "origin": "",
            "destination": "",
            "status": "Submitted",
            "approver": 0,
            "decision_time": null,
            "decision": "",
            "reject_notes": "",
            "tax_free_payment_amount": null,
            "tax_free_payment_currency": null,
            "tax_free_payment_entity": 0,
            "taxable_payment_amount": null,
            "taxable_payment_currency": null,
            "taxable_payment_entity": 0,
            "invoice_billing_entity": 0,
            "processing_notes": null,
            "user": 1061,
            "platform_email": "[email protected]"
        },
        {
            "id": 1231,
            "customer_id": 1,
            "expense_currency": "CNY",
            "expense_amount": 200,
            "title": "Taxi",
            "doc_list": [],
            "notes": "",
            "travel_start_date": null,
            "travel_end_date": null,
            "origin": "",
            "destination": "",
            "status": "Submitted",
            "approver": 17,
            "decision_time": 1725340358456,
            "decision": "Reject",
            "reject_notes": "Hi, I think the current report is missing some files. Please review the document again. Thank you",
            "tax_free_payment_amount": null,
            "tax_free_payment_currency": null,
            "tax_free_payment_entity": 0,
            "taxable_payment_amount": null,
            "taxable_payment_currency": null,
            "taxable_payment_entity": 0,
            "invoice_billing_entity": 0,
            "processing_notes": null,
            "user": 2232,
            "platform_email": "[email protected]"
        }
    ]
}

Last updated