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

NameDescriptionType
NameThe name of the service or partString
Unit_PriceThe unit price for the service or partInteger
TypeSpecify whether Service or PartString
The following tax parameters will differ based on the edition chosen:
TaxableWhether taxable is true or falseBoolean
Tax_NameTax name if taxable is trueString
Tax_Exemption_CodeTax exemption code if taxable is falseString
Inter_State_Tax_RateApplicable for the Indian editionString
Intra_State_Tax_RateApplicable for the Indian editionString

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"
}