Invoke Skill Derive Period
post
/api/v1/skills/derive.period/invoke(Utility) Derive canonical period bounds + matching prior-period bounds from a kind discriminator + anchor date. Pure compute β same input always produces identical output. Supports BAS-AU monthly/quarterly/annual today; additional jurisdictions are new ``kind`` values.
Works out the start, end and label of an accounting period, and of the period before it, from a `kind` and an `anchor_date`. The kinds cover Australian BAS months, quarters and years, with the financial year running July to June. It is a pure calculation that reads no client data, so the same input always gives the same answer.
Request bodyapplication/json
| Field | Type | Description |
|---|---|---|
kindrequired | any | Which period rule to apply: bas_au_monthly, bas_au_quarterly or bas_au_annual (Australian BAS periods). |
anchor_daterequired | string (date) | Any ISO 8601 date inside the period you want, for example 2026-02-14. |
Responses
200Skill executed successfully
| Field | Type | Description | |||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
skillrequired | string | β | |||||||||||||||||||||||||||||||||
outputrequired | object | Skill output β period bounds + matching prior-period bounds.
All date fields are ISO strings so they substitute cleanly into Jinja2
templates in WDL (``{{ outputs.derive_period.period_start }}``)
without ``date`` repr surprises.
Prior period: the unique period of the same kind immediately
preceding the current one β useful for comparatives. For BAS this is
the prior month / prior FY quarter / prior FY.show nested
| |||||||||||||||||||||||||||||||||
correlation_idrequired | string | β |
401Authentication required
| Field | Type | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
errorrequired | object | βshow nested
|
403Insufficient permissions
| Field | Type | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
errorrequired | object | βshow nested
|
404Skill not found
| Field | Type | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
errorrequired | object | βshow nested
|
429Rate limit exceeded
| Field | Type | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
errorrequired | object | βshow nested
|
5XXInternal server error
| Field | Type | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
errorrequired | object | βshow nested
|
curl https://api.dev.arch.ie/api/v1/skills/derive.period/invoke \
-X POST \
-H "Authorization: Bearer sk_..." \
-H "Content-Type: application/json" \
-d '{
"kind": null,
"anchor_date": "string"
}'