Add Services to a Work order
Purpose
To associate services to an existing work order.
Request URL
https://fsm.zoho.com/fsm/v1/Work_Orders/<record_id>
record_id - The unique ID of the record.
Request Method
PUT
Scope
scope=ZohoFSM.modules.WorkOrders.UPDATE
Sample Request
Copiedcurl --request PUT \
'https://fsm.zoho.com/fsm/v1/Work_Orders/195000000095214' \
--header 'Authorization: Zoho-oauthtoken 1000.2xxxxxx.xxxxxxxx30' \
-d "@associateServiceLineItem.json"
Sample Input
Copied{
"data": [
{
"Service_Line_Items": [
{
"Service": "1011000000195223",
"Description": null,
"Quantity": 1,
"Unit": "Hours",
"List_Price": 450,
"Amount": 450,
"Discount": 0,
"Sequence": 2,
"Tax": {
"Tax_Name": "Sales tax",
"Tax_Exemption_Code": null,
"Tax_Id": "2908070000000130005",
"Tax_Percentage": 7,
"Tax_Exemption_Id": null
},
"Line_Item_Amount": 481.5,
"Discount_Type": "Currency",
"Status": "New",
"Contact": "1011000000208173",
"Skill_Line_Items": [],
"Part_Line_Items": []
}
]
}
]
}
Sample Response
Copied{
"data": [
{
"code": "SUCCESS",
"details": {
"Modified_Time": "2022-03-07T23:54:25-08:00",
"Modified_By": {
"name": "Daniel Warne",
"id": "1011000000139001"
},
"Created_Time": "2022-03-07T05:48:55-08:00",
"id": "1011000000222119",
"Created_By": {
"name": "Daniel Warne",
"id": "1011000000139001"
}
},
"message": "record updated",
"status": "success"
}
]
}