Get the full pay breakdown for a work order, including base, additional, fees, bonuses, expenses, penalties and totals.
Get the full pay breakdown for a work order, including base, additional, fees, bonuses, expenses, penalties and totals.
access_token OAuth 2.0 Access Token
In: query
Work Order ID
ID of the user acting on behalf of another user
curl -X GET "https://api-sandbox.fndev.net/api/rest/v2/workorders/0/pay"{
"work_order_id": 20546,
"type": "fixed",
"base": {
"units": 1,
"amount": 100
},
"additional": {
"units": 0,
"amount": 0
},
"hold": {
"id": 0,
"amount": 0,
"charged": false
},
"fees": [
{
"name": "cancellation",
"id": 0,
"amount": 0,
"queued": false,
"charged": false,
"hours24_applicable": false,
"calculation": "fixed",
"at_risk": false
}
],
"finance": {
"id": 0,
"terms": "",
"description": "Pre-Fund",
"limit": 0,
"invoiced_account": false,
"locked": false
},
"hours": 2,
"reported_hours": 1001.74,
"number_of_devices": 0,
"minimum_payment": 0,
"range": {
"min": 100,
"max": 100
},
"labor_sum": 100,
"fees_cancellation_pending": false,
"passive_cancellation_amount": 30,
"fee_cancellation_queued": "0",
"fee_cancellation_charged": "0",
"funding": [
{
"id": 0,
"name": "Pre-fund",
"amount": 0,
"custom_name": "Pre-fund | Available: $0.00"
}
],
"invoice": {
"id": 0,
"sent": {
"utc": "",
"local": {
"date": "",
"time": ""
}
},
"paid": {
"utc": "",
"local": {
"date": "",
"time": ""
}
}
},
"bonuses": {
"metadata": {
"total": 0,
"per_page": 0,
"page": 1,
"pages": 1
},
"sum": {
"all": 0,
"charged": 0,
"uncharged": 0
},
"results": [],
"actions": []
},
"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"
]
},
"penalties": {
"metadata": {
"total": 0,
"per_page": 0,
"page": 1,
"pages": 1
},
"sum": {
"all": 0,
"charged": 0,
"uncharged": 0
},
"results": [],
"actions": []
},
"discounts": {
"metadata": {
"total": 0,
"per_page": 0,
"page": 1,
"pages": 1
},
"sum": {
"all": 0
},
"results": [],
"actions": []
},
"increases": {
"metadata": {
"total": 0,
"per_page": 0,
"page": 1,
"pages": 1
},
"minimum": 20,
"sum": {
"all": 0
},
"results": [],
"actions": []
},
"max_pay": 100,
"total": 100,
"max_pay_limit": 100,
"calculated_total": {
"total": {
"min": 100,
"max": 100
},
"total_with_pending_expenses": {
"min": 160,
"max": 160
}
}
}{
"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