Openapi
Run a period action. Locking a period is final for posting until it is unlocked.
sb-auth-token<token>Supabase browser session cookie. Supabase may split larger session values into chunked cookies like sb-auth-token.0.
organizationId*stringuuidperiodId*stringuuidThe period action and an optional reason.
application/jsonaction*accountingPeriodActionSchema"close""reopen""lock""unlock"reason?string1 <= length <= 500Returns the result.
application/jsonendsOn*isoDatedatefiscalYear*integerid*stringuuidnumber*integerstartsOn*isoDatedatestatus*stringcurl -X POST 'https://app.localhost/api/v1/organizations/123/accounting/periods/123e4567-e89b-12d3-a456-426614174000' \ -H 'Content-Type: application/json' \ -d '{ "action": "close"}'{ "endsOn": "2019-08-24", "fiscalYear": 0, "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "number": 0, "startsOn": "2019-08-24", "status": "string"}