CreateFiscalYearRequest
RequestcreateFiscalYear's body.
Sent in requests. Its values are closed: anything not listed is refused.
Attributes
2Declare a fiscal year that is not 12 months long, e.g. the shortened first year a migration brings. Regular years need no declaration.
7 attributes of data
Last day: at most 18 months after the start, and the day before the organization's fiscal-year start unless kind is final.
The RPS § 13 lg 2 trigger: first at founding, change when the fiscal year moves, final at dissolution, other (the default) in another case the law provides.
One of first, change, final, other
Your own id for this year, unique per organization. A second create with it is resolved by on_conflict.
Moves the organization's fiscal-year start month in the same request, and the year is validated against the new start. Send it (with fiscal_year_start_day) when this is the transitional year of a change of fiscal year; omit it otherwise.
What a create does when a record of the same resource already holds the sent external_ref. error: 409 EXTERNAL_REF_EXISTS with existing_id. return: 200 with the existing record, unchanged.
One of error, return, update
Details
update: apply the sent fields to it as a PATCH would and answer 200; refused like a PATCH when the record is no longer editable.