Skip to content

Zoho: Inventory Template

Zoho inventoryTemplates.getInventoryTemplateById: arguments, response, policy and SDK examples.

← Inventory templates operations · Get started

Operation zoho.getinventorytemplatebyid

Provider route: GET /crm/v8/settings/inventory_templates/{templateId}. 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["inventoryTemplates"]["getInventoryTemplateById"]>[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.inventoryTemplates.getInventoryTemplateById(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.inventory_templates.get_inventory_template_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.templateIdstringRequired within parentMaximum length: 64

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

FieldTypePresenceDescription and constraints
$JSONRoot
$ (anyOf 1)ModelAlternativeExpand Inventory Template — response body — inventory templates
$ (anyOf 2)nullAlternative

Referenced models: Inventory Template — response body — inventory templates

Inventory Template — response body — inventory templates
FieldTypePresenceDescription and constraints
$objectRootSuccessful response for single inventory template retrieval
Additional keys: allowed
inventory_templatesarrayRequired within parentRepresents an array containing the details of a single inventory template.
Maximum items: 1
inventory_templates[]ModelEach itemExpand Inventory Template — response body — inventory templates inventory templates item

Referenced models: Inventory Template — response body — inventory templates inventory templates item

Inventory Template — response body — inventory templates inventory templates item
FieldTypePresenceDescription and constraints
$objectRootComplete inventory template object with all detailed information including content
Additional keys: not allowed
categorystringRequired within parentRepresents the category of the inventory template.
Possible values:
**normal** - A regular, published inventory template.
**draft** - A template that is saved as a draft and not yet published.
Known values: normal, draft
contentstringRequired within parentRepresents the full HTML content of the inventory template.
Maximum length: 300000
created_byModelRequired within parentExpand Inventory Template — response body — inventory templates inventory templates item created by
User who created the template
created_timestringRequired within parentRepresents the creation timestamp of the inventory template.
Format: date-time
editor_modestringRequired within parentRepresents the editor mode used to create the inventory template.
Possible values:
**plain_text** - The template was built from scratch using plain text.
**rich_text** - The template is a pre-designed custom template.
**gallery** - The template was chosen from the template gallery and customized.
Known values: plain_text, rich_text, gallery
favoritebooleanRequired within parentIndicates whether the inventory template is marked as a favorite.
Possible values:
**true** - The template is marked as a favorite.
**false** - The template is not marked as a favorite.
folderModelRequired within parentExpand Inventory Template — response body — inventory templates inventory templates item folder
Folder containing this template
idstringRequired within parentUnique template identifier
Maximum length: 50
last_usage_timeJSONRequired within parentRepresents the date and time at which the inventory template was last used, or null if the template has never been used.
last_usage_time (anyOf 1)stringAlternativeRepresents the date and time at which the template was last used.
Format: date-time
last_usage_time (anyOf 2)nullAlternativeIndicates that the template has never been used.
modified_byModelRequired within parentExpand Inventory Template — response body — inventory templates inventory templates item created by
User who last modified the template
modified_timestringRequired within parentRepresents the date and time at which the inventory template was last modified.
Format: date-time
moduleModelRequired within parentExpand Inventory Template — response body — inventory templates inventory templates item module
Module this template belongs to
namestringRequired within parentRepresents the name of the inventory template.
Maximum length: 75

Referenced models: Inventory Template — response body — inventory templates inventory templates item folder, Inventory Template — response body — inventory templates inventory templates item module, Inventory Template — response body — inventory templates inventory templates item created by

Inventory Template — response body — inventory templates inventory templates item folder
FieldTypePresenceDescription and constraints
$objectRootRepresents a folder reference containing the folder ID and name, used to identify the folder associated with an inventory template.
Additional keys: not allowed
idstringRequired within parentRepresents the unique ID of the folder.
Maximum length: 50
namestringRequired within parentRepresents the name of the folder.
Maximum length: 255
Inventory Template — response body — inventory templates inventory templates item module
FieldTypePresenceDescription and constraints
$objectRootRepresents a module reference containing the module **API name** and **ID**, used to identify the CRM module associated with an inventory template.
Additional keys: not allowed
api_namestringRequired within parentRepresents the API name of the CRM module associated with the inventory template.
Maximum length: 50
idstringRequired within parentRepresents the unique ID of the CRM module associated with the inventory template.
Maximum length: 50
Inventory Template — response body — inventory templates inventory templates item created by
FieldTypePresenceDescription and constraints
$objectRootRepresents a user reference containing the user ID and display name, used to identify the user associated with an inventory template operation.
Additional keys: not allowed
idstringRequired within parentRepresents the unique ID of the CRM user.
Maximum length: 50
namestringRequired within parentRepresents the display name of the CRM user.
Maximum length: 255

SDK function policy ID: zoho.getinventorytemplatebyid. Catalog operation: getInventoryTemplateById. 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.

No-content response statuses: [204]

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.