# Derive Canonical Period Bounds + Matching Prior-Period Bounds

> 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…

POST /api/v1/skills/derive.period/invoke

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.

Body parameters

kind Required

Which period rule to apply: bas_au_monthly, bas_au_quarterly or bas_au_annual (Australian BAS periods).

anchor_date string · date Required

Any ISO 8601 date inside the period you want, for example 2026-02-14.

Returns

Skill executed successfully

skill string Required

Example derive_period

output object Required

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.

output.kind Required

output.anchor_date string Required

output.period_start string Required

output.period_end string Required

output.period_label string Required

output.prior_period_start string Required

output.prior_period_end string Required

output.prior_period_label string Required

output.stub_fields array of strings

output.warnings array of strings

correlation_id string Required

Errors

Status Type When

401 AUTH.TOKEN_INVALID Authentication required

403 PERMISSION.CAPABILITY_DENIED Insufficient permissions

404 SKILL.NOT_FOUND Skill not found

422 VALIDATION.INVALID_FORMAT Validation error

429 RATE_LIMIT.USER Rate limit exceeded

5XX INTERNAL.UNKNOWN Internal server error

[Previous ← List Accessible Clients](https://heyarchie.com/en-gb/developers/api-reference/utility/list-accessible-clients/)[Next Surface Trial-Balance Rows That Share an ``account_number`` →](https://heyarchie.com/en-gb/developers/api-reference/utility/surface-trial-balance-rows-that-share-an-account-number/)

```
curl https://uk.heyarchie.com/api/v1/skills/derive.period/invoke \
  -X POST \
  -H "Authorization: Bearer sk_..." \
  -H "Content-Type: application/json" \
  -d '{
       "kind": null,
       "anchor_date": "string"
     }'
```

```
from heyarchie import Archie
archie = Archie(api_key="sk_...")
result = archie.skills.invoke(
    "derive.period",
    kind=None,
    anchor_date="string",
)
print(result)
```

```
import { Archie } from "heyarchie";

const archie = new Archie({ apiKey: "sk_..." });
const result = await archie.skills.invoke("derive.period", {
  "kind": null,
  "anchor_date": "string"
});
console.log(result);
```

Response

```
{
  "skill": "derive_period",
  "output": {
    "anchor_date": "2026-02-14",
    "kind": "bas_au_quarterly",
    "period_end": "2026-03-31",
    "period_label": "Q3 FY26",
    "period_start": "2026-01-01",
    "prior_period_end": "2025-12-31",
    "prior_period_label": "Q2 FY26",
    "prior_period_start": "2025-10-01"
  },
  "correlation_id": "<string>"
}
```

```
{
  "error": {
    "type": "<string>",
    "code": "<string>",
    "message": "<string>",
    "param": "<string>",
    "retry_after_seconds": "<integer>"
  }
}
```

Every response also carries X-Request-ID. Quote it if you write to us about a call.
