ROSE Developers - Web API Reference

Financials | Financial Calendar

The Financial Calendar is used to record information about the financial calendar. The financial calendar consists of twelve operating periods (1-12 represent a calendar month), one opening period (same month as the first period) and up to three closing periods (same month as period 12).

Overview


URL api/{tenantKey}/{orgKey}/financialCore/financialCalendars
Methods Supported GET, POST, PUT, DELETE

All Operations

This service includes the following operations:

All Resources

This service uses the following resources:

All Enumerations

This service uses the following enumerations:

GET Operations

GET FinancialCalendars

Returns the list of all the entity records available.

Response:

When successful, the response body contains the list of records available. See FinancialCalendarResource.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

GET /financialCore/financialCalendars

GET FinancialCalendars (paged)

Returns a page of the list of all the entity records available.

The following elements are optional:

page (int) The index of the page of the list that should be returned. This is a query string parameter.
pageSize (int) The number of page elements that should be returned (max. is 1000). This is a query string parameter.

Response:

When successful, the response body contains the list of records available. See FinancialCalendarResource.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

GET /financialCore/financialCalendars?page={page}&pageSize={pageSize}

GET FinancialCalendar by identifier

Returns the entity record that matches the specified identifier.

The following elements are required:

id (string) The record identifier.

Response:

When successful, the response body contains the entity record. See FinancialCalendarResource.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.
404 NotFound. The specified record does not exist.

Resource URL:

GET /financialCore/financialCalendars/{id}

GET FinancialCalendar by key

Returns the entity record that matches the specified key.

The following elements are required:

calendarKey (string) The financial calendar key.

Response:

When successful, the response body contains the entity record. See FinancialCalendarResource.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.
404 NotFound. The specified record does not exist.

Resource URL:

GET /financialCore/financialCalendars/{calendarKey}

GET Print FinancialCalendar by identifier

Prints the specified entity record.

The following elements are required:

id (string) The record identifier.

The following elements are optional:

template (string) The report template that should be used. This is a query string parameter.

Response:

When successful, the response body contains a stream with the printed file.

Response status codes:

200 OK. The operation was completed successfully.
404 NotFound. The specified resord does not exist.

Resource URL:

GET /financialCore/financialCalendars/{id}/print?template={template}

GET Print FinancialCalendar by key

Prints the specified entity record.

The following elements are required:

calendarKey (string) The financial calendar key.

The following elements are optional:

template (string) The report template that should be used. This is a query string parameter.

Response:

When successful, the response body contains a stream with the printed file.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.
404 NotFound. The specified record does not exist.

Resource URL:

GET /financialCore/financialCalendars/{calendarKey}/print

GET Original Print FinancialCalendarOriginal by identifier

Prints the specified entity record.

The following elements are required:

id (string) The record identifier.

The following elements are optional:

template (string) The report template that should be used. This is a query string parameter.

Response:

When successful, the response body contains a stream with the printed file.

Response status codes:

200 OK. The operation was completed successfully.
404 NotFound. The specified resord does not exist.

Resource URL:

GET /financialCore/financialCalendars/{id}/printOriginal?template={template}

GET Original Print FinancialCalendar by key

Prints the specified entity record.

The following elements are required:

calendarKey (string) The financial calendar key.

The following elements are optional:

template (string) The report template that should be used. This is a query string parameter.

Response:

When successful, the response body contains a stream with the printed file.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.
404 NotFound. The specified record does not exist.

Resource URL:

GET /financialCore/financialCalendars/{calendarKey}/printOriginal

GET Get Date Time Financial Date By Company Key

This operation gets the Financial Year and Financial Period given a Company Key and a Date.

The following elements are required:

companyKey (string) The Company Key.
referenceDate (DateTime?) The reference date.

Response:

When successful, the response body contains a resource of type 'FinancialDate'. See FinancialDate.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

GET /financialCore/financialCalendars/getDateTimeFinancialDateByCompanyKey/{companyKey}

GET Get Calendar Date By Company Key

This operation gets the Calendar date (last day) given a Company Key, Financial Year and a Financial Period.

The following elements are required:

companyKey (string) The Company Key.
financialYear (int) The Financial Year.
period (int) The Financial Period.

Response:

When successful, the response body contains an item of type 'date'.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

GET /financialCore/financialCalendars/getCalendarDateByCompanyKey/{companyKey}/{financialYear}/{period}

GET Get Financial Periods For Reference Date

This operation gets all Periods given a reference date.

The following elements are required:

companyId (Guid) The Company Identifier.
taxClassId (Guid) The Tax Class Identifier.
referenceDate (DateTime?) The Reference Date.

Response:

When successful, the response body contains a list of resources of type 'FinancialDate'. See FinancialDate.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

GET /financialCore/financialCalendars/getFinancialPeriodsForReferenceDate/{companyId}/{taxClassId}

POST Operations

POST FinancialCalendars

Creates a new entity record.

The following elements are required:

financialCalendarResource (ApiFinancialCalendarResource) The request body should contain the entity record that should be created.
See ApiFinancialCalendarResource.

Response:

When successful, the response body contains the new entity record identifier. The resource header location property contains the URL for the new entity record. See ApiFinancialCalendarResource.

Response status codes:

201 Created. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

POST /financialCore/financialCalendars

POST Financial Calendar

Inserts a new 'Financial Period' in the 'Financial Calendar'.

The following elements are required:

calendarKey (string) The financial calendar key.
value (ApiFinancialCalendarFinancialPeriodsResource) The ApiFinancialCalendarFinancialPeriodsResource instance.
See ApiFinancialCalendarFinancialPeriodsResource.

Response:

When successful, the response body is empty.

Response status codes:

204 NoContent. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

POST /financialCore/financialCalendars/{calendarKey}/financialPeriods

PUT Operations

PUT Set CalendarKey FinancialCalendar

Updates the value of attribute 'CalendarKey' in the specified entity record.

The following elements are required:

calendarKey (string) The financial calendar key.
value (string) The request body should contain the new value for the attribute.

Response:

When successful, the response body is empty.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

PUT /financialCore/financialCalendars/{calendarKey}/calendarKey

PUT Set CalendarMonth FinancialPeriod

Updates the value of attribute 'CalendarMonth' in the specified entity record.

The following elements are required:

calendarKey (string) The financial calendar key.
lineId (string) The detail identifier.
value (enum Month) The request body should contain the new value for the attribute.
See Month.

Response:

When successful, the response body is empty.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

PUT /financialCore/financialCalendars/{calendarKey}/financialPeriods/{lineId}/calendarMonth

PUT Set Description FinancialCalendar

Updates the value of attribute 'Description' in the specified entity record.

The following elements are required:

calendarKey (string) The financial calendar key.
value (string) The request body should contain the new value for the attribute.

Response:

When successful, the response body is empty.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

PUT /financialCore/financialCalendars/{calendarKey}/description

PUT Set EndMonth FinancialCalendar

Updates the value of attribute 'EndMonth' in the specified entity record.

The following elements are required:

calendarKey (string) The financial calendar key.
value (enum Month) The request body should contain the new value for the attribute.
See Month.

Response:

When successful, the response body is empty.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

PUT /financialCore/financialCalendars/{calendarKey}/endMonth

PUT Set FinancialYearOffset FinancialCalendar

Updates the value of attribute 'FinancialYearOffset' in the specified entity record.

The following elements are required:

calendarKey (string) The financial calendar key.
value (enum FinancialYearOffset) The request body should contain the new value for the attribute.
See FinancialYearOffset.

Response:

When successful, the response body is empty.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

PUT /financialCore/financialCalendars/{calendarKey}/financialYearOffset

PUT Set IsActive FinancialCalendar

Updates the value of attribute 'IsActive' in the specified entity record.

The following elements are required:

calendarKey (string) The financial calendar key.
value (bool) The request body should contain the new value for the attribute.

Response:

When successful, the response body is empty.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.
404 NotFound. The specified record does not exist.

Resource URL:

PUT /financialCore/financialCalendars/{calendarKey}/isActive

PUT Set Name FinancialPeriod

Updates the value of attribute 'Name' in the specified entity record.

The following elements are required:

calendarKey (string) The financial calendar key.
lineId (string) The detail identifier.
value (string) The request body should contain the new value for the attribute.

Response:

When successful, the response body is empty.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

PUT /financialCore/financialCalendars/{calendarKey}/financialPeriods/{lineId}/name

PUT Set NumberOfClosingPeriods FinancialCalendar

Updates the value of attribute 'NumberOfClosingPeriods' in the specified entity record.

The following elements are required:

calendarKey (string) The financial calendar key.
value (int) The request body should contain the new value for the attribute.

Response:

When successful, the response body is empty.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

PUT /financialCore/financialCalendars/{calendarKey}/numberOfClosingPeriods

PUT Set Period FinancialPeriod

Updates the value of attribute 'Period' in the specified entity record.

The following elements are required:

calendarKey (string) The financial calendar key.
lineId (string) The detail identifier.
value (int) The request body should contain the new value for the attribute.

Response:

When successful, the response body is empty.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

PUT /financialCore/financialCalendars/{calendarKey}/financialPeriods/{lineId}/period

PUT Set PeriodType FinancialPeriod

Updates the value of attribute 'PeriodType' in the specified entity record.

The following elements are required:

calendarKey (string) The financial calendar key.
lineId (string) The detail identifier.
value (enum PeriodType) The request body should contain the new value for the attribute.
See PeriodType.

Response:

When successful, the response body is empty.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

PUT /financialCore/financialCalendars/{calendarKey}/financialPeriods/{lineId}/periodType

DELETE Operations

DELETE Financial Period by identifier

Deletes the entity record that matches the specified identifier.

The following elements are required:

calendarKey (string) The financial calendar key.
lineId (string) The line identifier.

Response:

When successful, the response body is empty.

Response status codes:

204 NoContent. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.
404 NotFound. The specified record does not exist.

Resource URL:

DELETE /financialCore/financialCalendars/{calendarKey}/financialPeriods/{lineId}

DELETE FinancialCalendar by identifier

Deletes the entity record that matches the specified identifier.

The following elements are required:

id (string) The record identifier.

Response:

When successful, the response body is empty.

Response status codes:

204 Deleted. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.
404 NotFound. The specified record does not exist.

Resource URL:

DELETE /financialCore/financialCalendars/{id}

DELETE FinancialCalendar by key

Deletes the entity record that matches the specified key.

The following elements are required:

calendarKey (string) The financial calendar key.

Response:

When successful, the response body is empty.

Response status codes:

204 Deleted. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.
404 NotFound. The specified record does not exist.

Resource URL:

DELETE /financialCore/financialCalendars/{calendarKey}

Resources


ApiFinancialCalendarFinancialPeriodsResource

The following elements are required:

period (int) The period number.
name (string) The name of the period.
periodType (enum PeriodType) The period type (opening, regular, closing).
See PeriodType.
calendarMonth (enum Month) The calendar month.
See Month.


ApiFinancialCalendarResource

The following elements are required:

calendarKey (string) The financial calendar key.
numberOfClosingPeriods (int) The number of closing periods.
endMonth (enum Month) The last month of the financial calendar.
See Month.

The following elements are optional:

description (string) Enter a description of the calendar.
financialPeriods (List of ApiFinancialCalendarFinancialPeriodsResource) The financial calendar periods.
See ApiFinancialCalendarFinancialPeriodsResource.
financialYearOffset (enum FinancialYearOffset) The offset of the financial year. Choose if the the company works on the next year at the begining of the financial year or at the previous year at the end of the financial year. Only available if the end month is not december.
See FinancialYearOffset.


FinancialCalendarResource

The following elements are required:

calendarKey (string) The financial calendar key.
numberOfClosingPeriods (int) The number of closing periods.
endMonth (enum Month) The last month of the financial calendar.
See Month.

The following elements are optional:

description (string) Enter a description of the calendar.
financialPeriods (List of FinancialPeriodResource) The financial calendar periods.
See FinancialPeriodResource.
financialYearOffset (enum FinancialYearOffset) The offset of the financial year. Choose if the the company works on the next year at the begining of the financial year or at the previous year at the end of the financial year. Only available if the end month is not december.
See FinancialYearOffset.


FinancialDate

The following elements are required:

financialYear (int) The financial year.
period (int) The financial period.
periodName (string) The period name (internal).
financialYearId (Guid) The financial year identifier.

The following elements are optional:

isActive (bool) Indicates whether the resource is active.
date (DateTime) The financial date.


FinancialPeriodResource

The following elements are required:

period (int) The period number.
name (string) The name of the period.
periodType (enum PeriodType) The period type (opening, regular, closing).
See PeriodType.
calendarMonth (enum Month) The calendar month.
See Month.


Enumerations


FinancialYearOffset

1 NextYear
-1 PreviousYear


Month

1 January
2 February
3 March
4 April
5 May
6 June
7 July
8 August
9 September
10 October
11 November
12 December


PeriodType

1 Opening
2 Operating
3 Closing