Skip to main content
POST
Bulk-create monthly + FY accounting periods for a range of fiscal years

Authorizations

Authorization
string
header
required

API key issued per entity via Settings > Developers > API Keys. Each key carries scopes (e.g. orders:read, products:write). Bearer token format: Authorization: Bearer ark_live_ent_Test keys use ark_test_ent_. Both are issued per entity
via Settings > Developers > API Keys.

Body

application/json
from_fiscal_year
integer
required

First fiscal year to ensure (inclusive).

Required range: 2000 <= x <= 2099
to_fiscal_year
integer
required

Last fiscal year to ensure (inclusive). Must be >= from_fiscal_year.

Required range: 2000 <= x <= 2099

Response

Per-year creation result

object
enum<string>
Available options:
ensure_accounting_period_range_result
from_fiscal_year
integer
to_fiscal_year
integer
total_inserted
integer
errors
integer
per_year
object[]