Create a Service/Part
Purpose
To insert a new service/part record.
Request URL
https://fsm.zoho.com/fsm/v1/Service_And_Parts
Request Method
POST
Scope
scope=ZohoFSM.modules.Service_And_Parts.CREATE
Mandatory Parameters
Name | Description | Type |
Name | The name of the service or part | String |
Unit_Price | The unit price for the service or part | Integer |
Type | Specify whether Service or Part | String |
The following tax parameters will differ based on the edition chosen: | ||
Taxable | Whether taxable is true or false | Boolean |
Tax_Name | Tax name if taxable is true | String |
Tax_Exemption_Code | Tax exemption code if taxable is false | String |
Inter_State_Tax_Rate | Applicable for the Indian edition | String |
Intra_State_Tax_Rate | Applicable for the Indian edition | String |
Sample Request
Copiedcurl --location --request POST 'https://fsm.zoho.com/fsm/v1/Service_And_Parts' \
-d "@newProduct.json" \
--header 'Authorization: Zoho-oauthtoken 1000.b3xxxxxxxxxxx.xxxxxxx13'
Sample Input
Copied{
"data": [
{
"Name": "Fumigation",
"Description": "Fumigation of stored goods",
"Unit": "Hours",
"Unit_Price": 100,
"Work_Type": null,
"Tax": {
"Taxable": true,
"Tax_Name": null,
"Tax_Id": null,
"Tax_Exemption_Id": null,
"Tax_Exemption_Code": null
},
"Type": "Service"
}
]
}
Sample Response
Copied{
"result": "success",
"code": "SUCCESS",
"data": {
"Service_And_Parts": [
{
"UID": "Service_And_Parts_0",
"Modified_Time": "2022-03-08T02:20:56-08:00",
"Modified_By": {
"name": "Daniel Warne",
"id": "1011000000139001"
},
"Created_Time": "2022-03-08T02:20:56-08:00",
"id": "1011000000222623",
"Created_By": {
"name": "Daniel Warne",
"id": "1011000000139001"
},
"TabName": "Products"
}
]
},
"status": "success"
}