Create accounting period

POST/api/v1/accounting-periods

Create a new accounting period.

Operation ID: create_period_api_v1_accounting_periods_post·View as markdown·OpenAPI slice

Authentication

Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.

Request body

period_startstring · daterequired

Start date of the accounting period

period_endstring · daterequired

End date of the accounting period

Responses

201Successful Response

successboolean
messagestring
codestring
dataAccountingPeriodResponse

400Bad Request - Invalid input

401Unauthorized - Authentication required

403Forbidden - Insufficient permissions

409Conflict - Resource already exists

422Validation Error

detailarray · ValidationErrorValidationError
5 fields
locarray · string | integerrequired
msgstringrequired
typestringrequired
inputobject
ctxobject