Skip to content

Zoho: Retrieve a specific service record by ID

Zoho services.getServiceById: arguments, response, policy and SDK examples.

← Services operations · Get started

Operation zoho.getservicebyid

Provider route: GET /crm/v8/Services__s/{id}. Alter supplies the connection’s credentials and routing.

Install @alter-ai/sdk @alter-ai/zoho with npm, or alter-sdk-zoho with pip. Supply your connected customer’s grant ID and the arguments described below.

import { App } from "@alter-ai/sdk";
import { ZohoIntegration } from "@alter-ai/zoho";
async function execute(input: Parameters<ZohoIntegration["services"]["getServiceById"]>[0]) {
const app = new App({ apiKey: process.env.ALTER_API_KEY! });
try {
const provider = new ZohoIntegration(app, { grantId: process.env.PROVIDER_GRANT_ID! });
const call = await provider.services.getServiceById(input);
const result = await call.wait();
return result.bodyJson();
} finally {
await app.close();
}
}
import os
from alter_sdk import App
from alter_sdk_zoho import ZohoIntegration
async def execute(arguments):
async with App(api_key=os.environ["ALTER_API_KEY"]) as app:
provider = ZohoIntegration(app, {"grant_id": os.environ["PROVIDER_GRANT_ID"]})
call = await provider.services.get_service_by_id(arguments)
result = await call.wait()
return result.body_json()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
pathobjectRequired within parentAdditional keys: not allowed
path.idstringRequired within parentMaximum length: 100

Response media type: application/json. The table describes the pinned successful response. Referenced models link to their complete fields.

FieldTypePresenceDescription and constraints
$ModelRootExpand Retrieve a specific service record by ID — response body

Referenced models: Retrieve a specific service record by ID — response body

6 more schemas are linked from the tables above, on the schema pages.

Retrieve a specific service record by ID — response body
FieldTypePresenceDescription and constraints
$objectRootWrapped response that returns a single service record. Contains a data array with exactly one service object carrying the full set of service fields.
Additional keys: allowed
dataarrayRequired within parentRepresents the array containing the requested service record.
Maximum items: 1
Minimum items: 1
data[]ModelEach itemExpand Get services — response body — data item

Referenced models: Get services — response body — data item

Get services — response body — data item
FieldTypePresenceDescription and constraints
$objectRootRepresents a single service record returned by a GET request, including identity, status, availability configuration, members, owner, pricing, tax, audit timestamps, and sharing metadata.
Additional keys: allowed
$currency_symbolstringOptionalRepresents the currency symbol used to format monetary fields on the service record.
Maximum length: 255
$data_source_detailsModelOptionalExpand Get services — response body — data item $data source details
$editablebooleanRequired within parentIndicates whether the current user can edit the service record.
$field_statesnullRequired within parentRepresents the field-state metadata for the service record.
$has_moreModelRequired within parentExpand Get services — response body — data item $has more
$photo_idnullRequired within parentRepresents the photo ID associated with the service record.
$sharing_permissionstringRequired within parentRepresents the sharing permission level of the current user on the service record.
Maximum length: 255
$statusstringRequired within parentRepresents the internal status identifier of the service record.
Maximum length: 255
Availability_TypestringRequired within parentRepresents how the service availability is defined.


**Possible values**: Specific Day(s), Specific Date Range, Every
Business Days, Specific Date(s).

Maximum length: 255
Available_DatesarrayRequired within parentRepresents the list of dates on which the service is available.
Maximum items: 20
Available_Dates[]JSONEach itemEach string represents a date in the service availability list, in YYYY-MM-DD format.
Available_DaysarrayRequired within parentRepresents the list of business days on which the service is available.
Maximum items: 7
Available_Days[]JSONEach itemEach string represents a business day in the service availability list.
Available_FromstringRequired within parentRepresents the date from which the service is available.
Maximum length: 255
Available_TillJSONRequired within parent
Available_Till (anyOf 1)stringAlternativeRepresents the date until which the service is available.
Maximum length: 255
Available_Till (anyOf 2)nullAlternativeRepresents the date until which the service is available.
Maximum length: 255
Available_TimingsJSONRequired within parent
Available_Timings (anyOf 1)arrayAlternativeRepresents the available time windows configured for the service.
Maximum items: 3
Available_Timings (anyOf 1)[]ModelEach itemExpand Get services — response body — data item Available Timings null item
Available_Timings (anyOf 2)nullAlternativeRepresents the available time windows configured for the service.
Maximum items: 3
Available_Timings (anyOf 2)[]ModelEach itemExpand Get services — response body — data item Available Timings null item
Created_ByModelRequired within parentExpand Get services — response body — data item Created By
Created_TimestringRequired within parentRepresents the timestamp when the service record was first saved to the organization.
Maximum length: 255
DescriptionJSONRequired within parent
Description (anyOf 1)stringAlternativeRepresents the description of the service.
Maximum length: 32000
Description (anyOf 2)nullAlternativeRepresents the description of the service.
Maximum length: 32000
DurationJSONRequired within parent
Duration (anyOf 1)integerAlternativeRepresents the duration of the service, in minutes.
Format: int32
Duration (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
Job_Sheet_RequiredstringRequired within parentRepresents whether a job sheet is required for the service. **Possible values**: Yes, No.

Known values: Yes, No
Maximum length: 255
Job_Sheet_Section__snullRequired within parentRepresents the job sheet section associated with the service.
Last_Activity_TimestringRequired within parentRepresents the timestamp of the most recent activity on the service record.
Maximum length: 255
LocationstringRequired within parentRepresents where the service is delivered.


**Possible values**: Client Address, Business Address, Business
Address and Client Address.

Maximum length: 255
MembersarrayRequired within parentRepresents the users who deliver the service. Refer to the [Get users](users.yaml#$.paths./users.get) endpoint for details.
Maximum items: 2
Members[]ModelEach itemExpand Get services — response body — data item Members item
Modified_ByModelRequired within parentExpand Get services — response body — data item Modified By
Modified_TimestringRequired within parentRepresents the timestamp when the service record was last modified.
Maximum length: 255
OwnerModelRequired within parentExpand Get services — response body — data item Owner
PriceJSONRequired within parent
Price (anyOf 1)integerAlternativeRepresents the price charged for the service in the organization currency.
Format: int32
Price (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
Record_ImagenullRequired within parentRepresents the record image associated with the service.
Record_Status__sstringOptionalRepresents the system-derived record status of the service.
Maximum length: 255
Service_NamestringRequired within parentRepresents the name of the service.
Maximum length: 120
StatusstringRequired within parentRepresents the operational status of the service.


**Possible values**: Available, Not in Use, Scheduled, Temporarily
Unavailable.

Known values: Available, Temporarily Unavailable, Not in Use, Scheduled
Maximum length: 255
TagJSONRequired within parent
Tag (anyOf 1)arrayAlternativeRepresents the tags associated with the service record. Refer to the [Get tags](tags.yaml#$.paths./settings/tags.get) endpoint for details.
Maximum items: 100
Tag (anyOf 1)[]stringEach itemEach string represents a tag name associated with the service record.
Maximum length: 2000
Tag (anyOf 2)nullAlternativeRepresents the tags associated with the service record. Refer to the [Get tags](tags.yaml#$.paths./settings/tags.get) endpoint for details.
Maximum items: 100
Tag (anyOf 2)[]stringEach itemEach string represents a tag name associated with the service record.
Maximum length: 2000
TaxarrayRequired within parentRepresents the taxes applied to the service cost.
Maximum items: 100
Tax[]JSONEach itemEach string represents a tax entry applied to the service cost.
Unavailable_FromJSONRequired within parent
Unavailable_From (anyOf 1)stringAlternativeRepresents the date and time from which the service is unavailable.
Maximum length: 255
Unavailable_From (anyOf 2)nullAlternativeRepresents the date and time from which the service is unavailable.
Maximum length: 255
Unavailable_TillnullRequired within parentRepresents the date and time until which the service remains unavailable.
idstringRequired within parentRepresents the unique ID of the service record.
Maximum length: 255

Referenced models: Get services — response body — data item Available Timings null item, Get services — response body — data item $data source details, Get services — response body — data item $has more, Get services — response body — data item Members item, Get services — response body — data item Created By, Get services — response body — data item Modified By, Get services — response body — data item Owner

Get services — response body — data item Available Timings null item
FieldTypePresenceDescription and constraints
$objectRootRepresents the availability time window on a returned service record, defined by a start time (From) and an end time (To).
Additional keys: not allowed
FromstringRequired within parentRepresents the start of the availability time window, in HH:MM (24-hour) format.

Maximum length: 255
TostringRequired within parentRepresents the end of the availability time window, in HH:MM (24-hour) format.

Maximum length: 255
Get services — response body — data item $data source details
FieldTypePresenceDescription and constraints
$objectRootRepresents the $data_source_details block on a returned service record. Carries metadata about the data source from which the record originated.
Additional keys: not allowed

SDK function policy ID: zoho.getservicebyid. Catalog operation: getServiceById. Rules can name either ID; function rules distinguish managed calls and conservatively cover raw calls sharing the route. Existing grant permissions and policy rules apply. wait() returns an immediate result or waits for a required approval; it never approves the request itself. Persist the approval ID to resume after a restart.

Provider errors retain their response; JSON decoding raises ProviderAPIError for provider failures. ManagedOperationError identifies contract/input/retention errors. See error handling and provider-specific behavior. Sensitive input may be refused before approval storage. A decoding error never resubmits a write.

Official provider source

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.