API

Finance APIs

POST finance/periods

Create accounting period

HTTP method POST
URI https://api.rambase.net/finance/periods
Supported formats Xml, Html, Json (ex. $format=json)
Successful HTTP status code 201
API resource identifier 4166, version 3

The following body must be added to the request. Mouse over fieldnames for description and other useful information about the fields. Note that fields in bold are required/mandatory.

Format:
1
<AccountingPeriod>
2
     <Period
Period

Required/mandatory field

Accounting period

Minimum value: 190000

Maximum value: 290000

>
{Integer}</Period>
3
     <Name
Name

Name of accounting period

This field is optional.

>
{String}</Name>
4
     <Type
Type

Type of accounting period

Applicable domain values can be found here

Default value: STANDARD

This field is optional.

>
{String}</Type>
5
     <Description
Description

Description of accounting period

This field is optional.

>
{String}</Description>
6
     <StartDate
StartDate

Required/mandatory field

Start date of accounting period

>
{Date}</StartDate>
7
     <EndDate
EndDate

Required/mandatory field

End date of accounting period

>
{Date}</EndDate>
8
</AccountingPeriod>
1
{
2
     "accountingPeriod": {
3
          "period
Period

Required/mandatory field

Accounting period

Minimum value: 190000

Maximum value: 290000

":
"{Integer}",
4
          "name
Name

Name of accounting period

This field is optional.

":
"{String}",
5
          "type
Type

Type of accounting period

Applicable domain values can be found here

Default value: STANDARD

This field is optional.

":
"{String}",
6
          "description
Description

Description of accounting period

This field is optional.

":
"{String}",
7
          "startDate
StartDate

Required/mandatory field

Start date of accounting period

":
"{Date}",
8
          "endDate
EndDate

Required/mandatory field

End date of accounting period

":
"{Date}"
9
     }
10
}

The query string is placed after the resource URL, seperated with a questionmark (?). The query string is composed of a series of query parameters with values. See the page about query parameters on how to use these parameters.

$access_token String, optional After successful login you get an access token which needs to be provided in all API requests. Even though it is possible to pass this token as query parameter, we recommended passing it using the HTTP request header as described in Authorization. Note that all access tokens have an expiration time.
$db String, optional Set the database/company for the request
$useMinimumVersion Integer, optional Used to run a new version of an API resource when your API client is running a deprecated API resource. See the Breaking changes page for more information.
$showDomainDescriptions Boolean, optional Set to "true" to include domain descriptions for fields using domain values. See the Domain values page for more information. Default value is false.
$lang String, optional Specifies the language used in the response, following the 3-letter ISO-639-1 [lll]

Read more about filters and sorting on how to use filter parameters and named filters.

Read more about filters and sorting on how to use sortable parameters

Requesting this resource will yield the following response. Mouse over fieldnames (or fieldgroups) for descriptions and other useful information about the fields.

Please note that some fields may be removed from the response, based on user roles/duties/permissions.

Format:
1
<AccountingPeriod>
2
     <AccountingPeriodId
AccountingPeriodId

Accounting period identifier

>
{Integer}</AccountingPeriodId>
3
     <Status
Status

Status of accounting period

Possible domain values can be found here

>
{Integer}</Status>
4
     <CreatedAt
CreatedAt

Date and time of creation

>
{Datetime}</CreatedAt>
5
     <Period
Period

Accounting period

>
{Integer}</Period>
6
     <Name
Name

Name of accounting period

>
{String}</Name>
7
     <Type
Type

Type of accounting period

Possible domain values can be found here

>
{String}</Type>
8
     <Description
Description

Description of accounting period

>
{String}</Description>
9
     <AgioStatus
AgioStatus

Agio status of accounting period

Possible domain values can be found here

>
{Integer}</AgioStatus>
10
     <IsReconciled
IsReconciled

Indicates if all general ledger postings are registered and reconciled to transation documents.

>
{Boolean}</IsReconciled>
11
     <VATPeriod
VATPeriod

Accounting period this VAT posting belongs to

>
{Integer}</VATPeriod>
12
     <StartDate
StartDate

Start date of accounting period

>
{Date}</StartDate>
13
     <EndDate
EndDate

End date of accounting period

>
{Date}</EndDate>
14
     <ClosedDate
ClosedDate

Closed date of accounting period

>
{Date}</ClosedDate>
15
     <CreatedBy>
16
          <UserId
UserId

User identifier

>
{Integer}</UserId>
17
          <Name
Name

Name of the user

>
{String}</Name>
18
          <FirstName
FirstName

First name of the user

>
{String}</FirstName>
19
          <UserLink
UserLink

User reference

>
{String}</UserLink>
20
     </CreatedBy>
21
     <ClosedBy>
22
          <EmployeeId
EmployeeId

Employee identifier

>
{Integer}</EmployeeId>
23
          <LastName
LastName

Last name of employee

>
{String}</LastName>
24
          <FirstName
FirstName

First name of employee

>
{String}</FirstName>
25
          <EmployeeLink
EmployeeLink

Employee reference

>
{String}</EmployeeLink>
26
          <Currency
Currency

Three character code following the ISO 4217 standard

>
{String}</Currency>
27
          <CustomerAmount
CustomerAmount

Customer balance amount

>
{Decimal}</CustomerAmount>
28
          <SupplierAmount
SupplierAmount

Supplier balance amount

>
{Decimal}</SupplierAmount>
29
          <Stock>
30
               <Amount
Amount

Inventory balance amount

>
{Decimal}</Amount>
31
               <ImportDate
ImportDate

Inventory balance imported date

>
{Date}</ImportDate>
32
          </Stock>
33
          <WorkInProgress>
34
               <Amount
Amount

Work in progress balance amount

>
{Decimal}</Amount>
35
               <ImportDate
ImportDate

Work in progress balance imported date

>
{Date}</ImportDate>
36
          </WorkInProgress>
37
          <StockAccrual>
38
               <Amount
Amount

Product balance amount

>
{Decimal}</Amount>
39
               <ImportDate
ImportDate

Product balance imported date

>
{Date}</ImportDate>
40
          </StockAccrual>
41
          <Status
Status

Depreciation status

Possible domain values can be found here

>
{String}</Status>
42
          <Amount
Amount

Depreciation amount

>
{Decimal}</Amount>
43
     </ClosedBy>
44
</AccountingPeriod>
1
{
2
     "accountingPeriod": {
3
          "accountingPeriodId
AccountingPeriodId

Accounting period identifier

":
"{Integer}",
4
          "status
Status

Status of accounting period

Possible domain values can be found here

":
"{Integer}",
5
          "createdAt
CreatedAt

Date and time of creation

":
"{Datetime}",
6
          "period
Period

Accounting period

":
"{Integer}",
7
          "name
Name

Name of accounting period

":
"{String}",
8
          "type
Type

Type of accounting period

Possible domain values can be found here

":
"{String}",
9
          "description
Description

Description of accounting period

":
"{String}",
10
          "agioStatus
AgioStatus

Agio status of accounting period

Possible domain values can be found here

":
"{Integer}",
11
          "isReconciled
IsReconciled

Indicates if all general ledger postings are registered and reconciled to transation documents.

":
"{Boolean}",
12
          "vATPeriod
VATPeriod

Accounting period this VAT posting belongs to

":
"{Integer}",
13
          "startDate
StartDate

Start date of accounting period

":
"{Date}",
14
          "endDate
EndDate

End date of accounting period

":
"{Date}",
15
          "closedDate
ClosedDate

Closed date of accounting period

":
"{Date}",
16
          "createdBy": {
17
               "userId
UserId

User identifier

":
"{Integer}",
18
               "name
Name

Name of the user

":
"{String}",
19
               "firstName
FirstName

First name of the user

":
"{String}",
20
               "userLink
UserLink

User reference

":
"{String}"
21
          },
22
          "closedBy": {
23
               "employeeId
EmployeeId

Employee identifier

":
"{Integer}",
24
               "lastName
LastName

Last name of employee

":
"{String}",
25
               "firstName
FirstName

First name of employee

":
"{String}",
26
               "employeeLink
EmployeeLink

Employee reference

":
"{String}",
27
               "currency
Currency

Three character code following the ISO 4217 standard

":
"{String}",
28
               "customerAmount
CustomerAmount

Customer balance amount

":
"{Decimal}",
29
               "supplierAmount
SupplierAmount

Supplier balance amount

":
"{Decimal}",
30
               "stock": {
31
                    "amount
Amount

Inventory balance amount

":
"{Decimal}",
32
                    "importDate
ImportDate

Inventory balance imported date

":
"{Date}"
33
               },
34
               "workInProgress": {
35
                    "amount
Amount

Work in progress balance amount

":
"{Decimal}",
36
                    "importDate
ImportDate

Work in progress balance imported date

":
"{Date}"
37
               },
38
               "stockAccrual": {
39
                    "amount
Amount

Product balance amount

":
"{Decimal}",
40
                    "importDate
ImportDate

Product balance imported date

":
"{Date}"
41
               },
42
               "status
Status

Depreciation status

Possible domain values can be found here

":
"{String}",
43
               "amount
Amount

Depreciation amount

":
"{Decimal}"
44
          }
45
     }
46
}

List of available operations/actions for this resource.
See the operations documentation for more information about API operations.

Possible error codes the response might return:

Error 100184 HTTP 404 Accounting period not found
Error 101420 HTTP 404 Setting definition not found
Error 100511 HTTP 400 Invalid date
Error 105129 HTTP 400 Start date cannot be greater than end date.
Error 105130 HTTP 400 Both dates or no dates must be provided.
Error 105288 HTTP 400 StartDate and EndDate must be provided when creating accounting periods manually.