List recorded expenses for the work order along with metadata and statuses.
List recorded expenses for the work order along with metadata and statuses.
access_token OAuth 2.0 Access Token
In: query
Work Order ID
curl -X GET "https://api-sandbox.fndev.net/api/rest/v2/workorders/0/expenses"{
"metadata": {
"total": 1,
"per_page": 1,
"page": 1,
"pages": 1
},
"sum": {
"all": 60,
"charged": 0,
"uncharged": 60,
"pending": 1,
"approved": 0,
"approved_amount": 0,
"denied": 0
},
"results": [
{
"company_id": 1037,
"id": 372,
"status": "new",
"description": "Stuff",
"status_description": "",
"amount": 60,
"quantity": 1,
"is_predefined": false,
"author": {
"id": 1145,
"first_name": "FN Manager",
"last_name": "User",
"is_provider": 0
},
"category": {
"id": 0,
"label": "Uncategorized",
"type": "system",
"uid": 0,
"company_expense_id": 0,
"amount": 0
},
"added": {
"utc": "2020-02-27 18:30:59",
"local": {
"date": "2020-02-27",
"time": "12:30:59"
}
},
"approved": {
"utc": "",
"local": {
"date": "",
"time": ""
}
},
"receipt": null,
"actions": [
"approve"
]
}
],
"actions": [
"add"
]
}{
"status": 400,
"message": "Validation failed: field 'title' is required"
}{
"status": 500,
"message": "Operation successful."
}{
"status": 403,
"message": "You do not have permission to access this work order"
}{
"status_code": 404,
"message": "Work order not found"
}{
"status": 500,
"message": "An unexpected error occurred. Please try again later or contact support."
}application/json
application/json
application/json
application/json
application/json
application/json
Last updated on