Skip to content

Zoho: Get Fiscal Year Settings

Zoho fiscalYear.getFiscalYear: arguments, response, policy and SDK examples.

← Fiscal year operations · Get started

Operation zoho.getfiscalyear

Provider route: GET /crm/v8/settings/fiscal_year. 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["fiscalYear"]["getFiscalYear"]>[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.fiscalYear.getFiscalYear(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.fiscal_year.get_fiscal_year(arguments)
result = await call.wait()
return result.body_json()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed

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

FieldTypePresenceDescription and constraints
$ModelRootExpand Get Fiscal Year Settings — response body

Referenced models: Get Fiscal Year Settings — response body

Get Fiscal Year Settings — response body
FieldTypePresenceDescription and constraints
$objectRootRepresents the response body containing the fiscal year settings configured for the organization.
Additional keys: not allowed
fiscal_yearModelRequired within parentExpand Get Fiscal Year Settings — response body — fiscal year

Referenced models: Get Fiscal Year Settings — response body — fiscal year

Get Fiscal Year Settings — response body — fiscal year
FieldTypePresenceDescription and constraints
$objectRootRepresents the fiscal year settings configured for the organization, including the calendar type, start month, structure, and surplus week information.
Additional keys: not allowed
calendar_typestringRequired within parentRepresents the calendar type configured for the fiscal year.
Maximum length: 255
display_based_onstringRequired within parentRepresents whether the fiscal year label is based on the start month or end month of the fiscal period.
Maximum length: 255
idstringRequired within parentRepresents the unique identifier of the fiscal year configuration.
Format: int64
Maximum length: 255
interval_display_optionJSONRequired within parent
interval_display_option (anyOf 1)stringAlternativeRepresents the display format configured for fiscal periods.
Maximum length: 255
interval_display_option (anyOf 2)nullAlternativeRepresents the display format configured for fiscal periods.
Maximum length: 255
past_surplus_weeksnullRequired within parentRepresents the surplus week configurations from past fiscal years.
start_dateJSONRequired within parent
start_date (anyOf 1)stringAlternativeRepresents the start date of the custom fiscal year.
Maximum length: 255
start_date (anyOf 2)nullAlternativeRepresents the start date of the custom fiscal year.
Maximum length: 255
start_monthstringRequired within parentRepresents the start month of the fiscal year.
Maximum length: 255
structureJSONRequired within parent
structure (anyOf 1)stringAlternativeRepresents the week distribution structure configured for the custom fiscal year.
Maximum length: 255
structure (anyOf 2)nullAlternativeRepresents the week distribution structure configured for the custom fiscal year.
Maximum length: 255
surplus_weekModelRequired within parentExpand Get Fiscal Year Settings — response body — fiscal year surplus week

Referenced models: Get Fiscal Year Settings — response body — fiscal year surplus week

Get Fiscal Year Settings — response body — fiscal year surplus week
FieldTypePresenceDescription and constraints
$JSONRoot
$ (anyOf 1)objectAlternativeRepresents the surplus week configuration, including the quarter, period, and year in which the surplus week is placed.
Additional keys: not allowed
$ (anyOf 1).periodJSONRequired within parent
$ (anyOf 1).period (anyOf 1)integerAlternativeRepresents the period within the quarter in which the surplus week falls.
Format: int32
$ (anyOf 1).period (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
$ (anyOf 1).quarterJSONRequired within parent
$ (anyOf 1).quarter (anyOf 1)integerAlternativeRepresents the quarter in which the surplus week falls.
Format: int32
$ (anyOf 1).quarter (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
$ (anyOf 1).yearJSONRequired within parent
$ (anyOf 1).year (anyOf 1)integerAlternativeRepresents the year for which the surplus week is configured.
Format: int32
$ (anyOf 1).year (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
$ (anyOf 2)nullAlternativeRepresents the surplus week configuration, including the quarter, period, and year in which the surplus week is placed.
Additional keys: not allowed
$ (anyOf 2).periodJSONRequired within parent
$ (anyOf 2).period (anyOf 1)integerAlternativeRepresents the period within the quarter in which the surplus week falls.
Format: int32
$ (anyOf 2).period (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
$ (anyOf 2).quarterJSONRequired within parent
$ (anyOf 2).quarter (anyOf 1)integerAlternativeRepresents the quarter in which the surplus week falls.
Format: int32
$ (anyOf 2).quarter (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
$ (anyOf 2).yearJSONRequired within parent
$ (anyOf 2).year (anyOf 1)integerAlternativeRepresents the year for which the surplus week is configured.
Format: int32
$ (anyOf 2).year (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$

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