Skip to content

Zoho: Update Fiscal Year Settings

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

← Fiscal year operations · Get started

Operation zoho.updatefiscalyear

Provider route: PUT /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"]["updateFiscalYear"]>[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.updateFiscalYear(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.update_fiscal_year(arguments)
result = await call.wait()
return result.body_json()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
bodyModelOptionalExpand Update Fiscal Year Settings — request body — body

Referenced models: Update Fiscal Year Settings — request body — body

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

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

Referenced models: Update Fiscal Year Settings — response body

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

Update Fiscal Year Settings — response body
FieldTypePresenceDescription and constraints
$objectRootRepresents the response body for a successful fiscal year settings update.
Additional keys: not allowed
fiscal_yearModelRequired within parentExpand Update Fiscal Year Settings — response body — fiscal year

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

Update Fiscal Year Settings — request body — body
FieldTypePresenceDescription and constraints
$objectRootRepresents the request body for updating the fiscal year settings of the Zoho CRM organization.
Additional keys: not allowed
fiscal_yearModelRequired within parentExpand Update Fiscal Year Settings — request body — body fiscal year
Root key of the API (Required)

Referenced models: Update Fiscal Year Settings — request body — body fiscal year

Update Fiscal Year Settings — response body — fiscal year
FieldTypePresenceDescription and constraints
$objectRootRepresents the response body for a successful fiscal year settings update, including the status code, message, and updated record details.
Additional keys: not allowed
codestringRequired within parentRepresents the status code of the operation. Possible values: `SUCCESS`.
Known values: SUCCESS
detailsModelRequired within parentExpand Update Fiscal Year Settings — response body — fiscal year details
messagestringRequired within parentRepresents the status message of the operation.
Maximum length: 255
statusstringRequired within parentRepresents the status of the response. Possible values: `success`.
Known values: success

Referenced models: Update Fiscal Year Settings — response body — fiscal year details

Update Fiscal Year Settings — request body — body fiscal year
FieldTypePresenceDescription and constraints
$JSONRootRepresents the fiscal year settings to update. Use one of the supported request structures based on the type of fiscal year update being performed.
$ (anyOf 1)ModelAlternativeExpand Update Fiscal Year Settings — request body — body / fiscal_year / display_based_on: start month, end month — Display Based On Fiscal Year Update
$ (anyOf 2)ModelAlternativeExpand Update Fiscal Year Settings — request body — body / fiscal_year / display_based_on: start month, end month — Standard Fiscal Year Update
$ (anyOf 3)ModelAlternativeExpand Update Fiscal Year Settings — request body — body / fiscal_year / calendar_type: gregorian, display based on: start month, end month
$ (anyOf 4)ModelAlternativeExpand Update Fiscal Year Settings — request body — body / fiscal_year / calendar_type: custom, display based on: start month, end month, interval display option: year, quarter, structure: 4-4-5, 4-5-4, 5-4-4, 3-3-3-4, 3-3-4-3, 3-4-3-3, 4-3-3-3
$ (anyOf 5)ModelAlternativeExpand Update Fiscal Year Settings — request body — body / fiscal_year / display_based_on: start month, end month, interval display option: year, quarter, structure: 4-4-5, 4-5-4, 5-4-4, 3-3-3-4, 3-3-4-3, 3-4-3-3, 4-3-3-3

Referenced models: Update Fiscal Year Settings — request body — body / fiscal_year / display_based_on: start month, end month, interval display option: year, quarter, structure: 4-4-5, 4-5-4, 5-4-4, 3-3-3-4, 3-3-4-3, 3-4-3-3, 4-3-3-3, Update Fiscal Year Settings — request body — body / fiscal_year / display_based_on: start month, end month — Display Based On Fiscal Year Update, Update Fiscal Year Settings — request body — body / fiscal_year / display_based_on: start month, end month — Standard Fiscal Year Update, Update Fiscal Year Settings — request body — body / fiscal_year / calendar_type: custom, display based on: start month, end month, interval display option: year, quarter, structure: 4-4-5, 4-5-4, 5-4-4, 3-3-3-4, 3-3-4-3, 3-4-3-3, 4-3-3-3, Update Fiscal Year Settings — request body — body / fiscal_year / calendar_type: gregorian, display based on: start month, end month

Update Fiscal Year Settings — response body — fiscal year details
FieldTypePresenceDescription and constraints
$objectRootRepresents the details of the updated fiscal year configuration, including its unique identifier.
Additional keys: not allowed
idstringRequired within parentRepresents the unique identifier of the updated fiscal year configuration.
Format: int64
Maximum length: 255
Update Fiscal Year Settings — request body — body / fiscal_year / display_based_on: start month, end month, interval display option: year, quarter, structure: 4-4-5, 4-5-4, 5-4-4, 3-3-3-4, 3-3-4-3, 3-4-3-3, 4-3-3-3
FieldTypePresenceDescription and constraints
$objectRootRepresents the request payload to update selected settings of an existing custom fiscal year. When `start_month` is provided alongside `start_date`, its value must match the month component of `start_date`.
Minimum fields: 1
Additional keys: not allowed
display_based_onstringOptionalSpecify whether the custom fiscal year label is based on the start month or the end month of the fiscal period. When set to `end_month`, the `start_date` cannot fall in January or February. Possible values: `start_month`, `end_month`.
One of: start_month, end_month
Maximum length: 20
interval_display_optionstringOptionalSpecify the display format for the custom fiscal year intervals. Possible values: `year`, `quarter`.
One of: year, quarter
Maximum length: 7
start_datestringOptionalSpecify the start date of the custom fiscal year. This field can be configured only for the current year.
Format: date
Maximum length: 10
start_monthstringOptionalSpecify the start month of the fiscal year. Possible values: `JANUARY`, `FEBRUARY`, `MARCH`, `APRIL`, `MAY`, `JUNE`, `JULY`, `AUGUST`, `SEPTEMBER`, `OCTOBER`, `NOVEMBER`, `DECEMBER`.
Specify the start month of the fiscal year. This field is optional. When provided, its value must match the month component of the configured start_date.
One of: JANUARY, FEBRUARY, MARCH, APRIL, MAY, JUNE, JULY, AUGUST, SEPTEMBER, OCTOBER, NOVEMBER, DECEMBER
Maximum length: 20
structurestringOptionalSpecify the week distribution structure for the custom fiscal year. Possible values: `4-4-5`, `4-5-4`, `5-4-4`, `3-3-3-4`, `3-3-4-3`, `3-4-3-3`, `4-3-3-3`.
One of: 4-4-5, 4-5-4, 5-4-4, 3-3-3-4, 3-3-4-3, 3-4-3-3, 4-3-3-3
Maximum length: 10
surplus_weekModelOptionalExpand Update Fiscal Year Settings — request body — body / fiscal_year / display_based_on: start month, end month, interval display option: year, quarter, structure: 4-4-5, 4-5-4, 5-4-4, 3-3-3-4, 3-3-4-3, 3-4-3-3, 4-3-3-3 surplus week
Specify the surplus week configuration for the custom fiscal year. Send `null` to clear the configured surplus week.
$ (anyOf 1)JSONAlternative
$ (anyOf 2)JSONAlternative
$ (anyOf 3)JSONAlternative
$ (anyOf 4)JSONAlternative

Referenced models: Update Fiscal Year Settings — request body — body / fiscal_year / display_based_on: start month, end month, interval display option: year, quarter, structure: 4-4-5, 4-5-4, 5-4-4, 3-3-3-4, 3-3-4-3, 3-4-3-3, 4-3-3-3 surplus week

Update Fiscal Year Settings — request body — body / fiscal_year / display_based_on: start month, end month — Display Based On Fiscal Year Update
FieldTypePresenceDescription and constraints
$objectRootRepresents a request to update only the fiscal year display option for an existing standard or custom fiscal year.
Additional keys: not allowed
display_based_onstringRequired within parentSpecify whether the fiscal year label is based on the start month or the end month of the fiscal period. Possible values: `start_month`, `end_month`.
One of: start_month, end_month
Maximum length: 20
Update Fiscal Year Settings — request body — body / fiscal_year / display_based_on: start month, end month — Standard Fiscal Year Update
FieldTypePresenceDescription and constraints
$objectRootRepresents the request payload to update standard fiscal year settings. When `display_based_on` is set to `end_month`, the `start_month` cannot be `JANUARY`.
Additional keys: not allowed
display_based_onstringOptionalSpecify whether the fiscal year label is based on the start month or the end month of the fiscal period. When set to `end_month`, the `start_month` cannot be `JANUARY`. Possible values: `start_month`, `end_month`.
One of: start_month, end_month
Maximum length: 20
start_monthstringRequired within parentSpecify the start month of the fiscal year. Possible values: `JANUARY`, `FEBRUARY`, `MARCH`, `APRIL`, `MAY`, `JUNE`, `JULY`, `AUGUST`, `SEPTEMBER`, `OCTOBER`, `NOVEMBER`, `DECEMBER`.
One of: JANUARY, FEBRUARY, MARCH, APRIL, MAY, JUNE, JULY, AUGUST, SEPTEMBER, OCTOBER, NOVEMBER, DECEMBER
Maximum length: 20
Update Fiscal Year Settings — request body — body / fiscal_year / display_based_on: start month, end month, interval display option: year, quarter, structure: 4-4-5, 4-5-4, 5-4-4, 3-3-3-4, 3-3-4-3, 3-4-3-3, 4-3-3-3 surplus week period, quarter, year
FieldTypePresenceDescription and constraints
$objectRootRepresents the surplus week configuration values, including the quarter, period, and year in which the surplus week is placed.
Additional keys: not allowed
periodintegerRequired within parentSpecify the fiscal period within the quarter that contains the surplus week.
Format: int32
quarterintegerRequired within parentSpecify the fiscal quarter that contains the surplus week.
Format: int32
yearintegerRequired within parentSpecify the year in which the surplus week is configured. You can configure this only for the current year and the following year.
Format: int32

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