API

Finance APIs

POST finance/general-ledger

Resource for creating new general ledger posting

HTTP method POST
URI https://api.rambase.net/finance/general-ledger
Supported formats Xml, Html, Json (ex. $format=json)
Custom fields Custom fields supported
Successful HTTP status code 201
API resource identifier 5288, 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
<GeneralLedgerPosting>
2
     <TransactionDate
TransactionDate

Required/mandatory field

Transaction date of general ledger posting

>
{Date}</TransactionDate>
3
     <AccountingPeriod>
4
          <Period
Period

Required/mandatory field

Accounting period

Minimum value: 190000

Maximum value: 290000

>
{Integer}</Period>
5
     </AccountingPeriod>
6
     <Category
Category

Required/mandatory field

Category of general ledger posting

Applicable domain values can be found here

>
{String}</Category>
7
     <Note
Note

Remark of the general ledger posting

This field is optional.

>
{String}</Note>
8
</GeneralLedgerPosting>
1
{
2
     "generalLedgerPosting": {
3
          "transactionDate
TransactionDate

Required/mandatory field

Transaction date of general ledger posting

":
"{Date}",
4
          "accountingPeriod": {
5
               "period
Period

Required/mandatory field

Accounting period

Minimum value: 190000

Maximum value: 290000

":
"{Integer}"
6
          },
7
          "category
Category

Required/mandatory field

Category of general ledger posting

Applicable domain values can be found here

":
"{String}",
8
          "note
Note

Remark of the general ledger posting

This field is optional.

":
"{String}"
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]
$showCustomFields Boolean, optional Set to "true" to include custom fields. Default value is false.

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
<GeneralLedgerPosting>
2
     <GeneralLedgerPostingId
GeneralLedgerPostingId

General ledger posting identifier

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

Status of general ledger posting

Possible domain values can be found here

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

Date and time of creation

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

Date and time of registration

>
{Datetime}</RegisteredAt>
6
     <Category
Category

Category of general ledger posting

Possible domain values can be found here

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

Type of general ledger posting

Possible domain values can be found here

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

Transaction date of general ledger posting

>
{Date}</TransactionDate>
9
     <LastUpdateDate
LastUpdateDate

Last update date of general ledger posting

>
{Date}</LastUpdateDate>
10
     <Note
Note

Remark of the general ledger posting

>
{String}</Note>
11
     <CountOfJournalEntries
CountOfJournalEntries

Count of journal entries which are linked to general ledger posting

>
12
          <Currency
Currency

Three character code following the ISO 4217 standard

>
{String}</Currency>
13
          <Amount
Amount

Total balance for general ledger posting.

>
{Decimal}</Amount>
14
     </CountOfJournalEntries>
15
     <VATPosting>
16
          <VATPostingId
VATPostingId

VAT Posting identifier

>
{Integer}</VATPostingId>
17
          <VATPostingLink
VATPostingLink

VAT Posting reference

>
{String}</VATPostingLink>
18
     </VATPosting>
19
     <Source>
20
          <ObjectId
ObjectId

Identifier of the object

>
{Integer}</ObjectId>
21
          <ObjectType
ObjectType

Type of object

>
{String}</ObjectType>
22
          <ObjectLink
ObjectLink

API reference to the object

>
{String}</ObjectLink>
23
          <ItemId
ItemId

Identifier of the object

>
{Integer}</ItemId>
24
          <ItemType
ItemType

Type of item

>
{String}</ItemType>
25
          <ItemLink
ItemLink

API reference to the item

>
{String}</ItemLink>
26
          <RamBaseKey
RamBaseKey

Internal RamBase identifier of the object/item

>
{String}</RamBaseKey>
27
     </Source>
28
     <CreatedBy>
29
          <UserId
UserId

User identifier

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

Name of the user

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

First name of the user

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

User reference

>
{String}</UserLink>
33
     </CreatedBy>
34
     <RegisteredBy>
35
          <UserId
UserId

User identifier

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

Name of the user

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

First name of the user

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

User reference

>
{String}</UserLink>
39
     </RegisteredBy>
40
     <AccountingPeriod>
41
          <AccountingPeriodId
AccountingPeriodId

Accounting period identifier

>
{Integer}</AccountingPeriodId>
42
          <Period
Period

Accounting period

>
{Integer}</Period>
43
          <AccountingPeriodLink
AccountingPeriodLink

Accounting period reference

>
{String}</AccountingPeriodLink>
44
     </AccountingPeriod>
45
     <Error
Error

Error message of the general ledger posting

>
46
          <Message
Message

Full error message/description. The message is generated from the specified ErrorMessage object, expanded with the given parameter(s).

>
{String}</Message>
47
          <TranslatedMessage
TranslatedMessage

Full translated error description. The language used is specified either in $lang or by user settings. If error message don't exist in desired language, english will be used.

>
{String}</TranslatedMessage>
48
          <ErrorMessage>
49
               <ErrorMessageId
ErrorMessageId

Error message identifier

>
{Integer}</ErrorMessageId>
50
               <ErrorMessageLink
ErrorMessageLink

Error message reference

>
{String}</ErrorMessageLink>
51
          </ErrorMessage>
52
          <Parameters>
53
               <Parameter>
54
                    <Index
Index

Error Key

>
{Integer}</Index>
55
                    <Value
Value

Value of the error parameter

>
{String}</Value>
56
               </Parameter>
57
          </Parameters>
58
     </Error>
59
</GeneralLedgerPosting>
1
{
2
     "generalLedgerPosting": {
3
          "generalLedgerPostingId
GeneralLedgerPostingId

General ledger posting identifier

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

Status of general ledger posting

Possible domain values can be found here

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

Date and time of creation

":
"{Datetime}",
6
          "registeredAt
RegisteredAt

Date and time of registration

":
"{Datetime}",
7
          "category
Category

Category of general ledger posting

Possible domain values can be found here

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

Type of general ledger posting

Possible domain values can be found here

":
"{String}",
9
          "transactionDate
TransactionDate

Transaction date of general ledger posting

":
"{Date}",
10
          "lastUpdateDate
LastUpdateDate

Last update date of general ledger posting

":
"{Date}",
11
          "note
Note

Remark of the general ledger posting

":
"{String}",
12
          "countOfJournalEntries
CountOfJournalEntries

Count of journal entries which are linked to general ledger posting

":
{
13
               "currency
Currency

Three character code following the ISO 4217 standard

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

Total balance for general ledger posting.

":
"{Decimal}"
15
          },
16
          "vATPosting": {
17
               "vATPostingId
VATPostingId

VAT Posting identifier

":
"{Integer}",
18
               "vATPostingLink
VATPostingLink

VAT Posting reference

":
"{String}"
19
          },
20
          "source": {
21
               "objectId
ObjectId

Identifier of the object

":
"{Integer}",
22
               "objectType
ObjectType

Type of object

":
"{String}",
23
               "objectLink
ObjectLink

API reference to the object

":
"{String}",
24
               "itemId
ItemId

Identifier of the object

":
"{Integer}",
25
               "itemType
ItemType

Type of item

":
"{String}",
26
               "itemLink
ItemLink

API reference to the item

":
"{String}",
27
               "ramBaseKey
RamBaseKey

Internal RamBase identifier of the object/item

":
"{String}"
28
          },
29
          "createdBy": {
30
               "userId
UserId

User identifier

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

Name of the user

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

First name of the user

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

User reference

":
"{String}"
34
          },
35
          "registeredBy": {
36
               "userId
UserId

User identifier

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

Name of the user

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

First name of the user

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

User reference

":
"{String}"
40
          },
41
          "accountingPeriod": {
42
               "accountingPeriodId
AccountingPeriodId

Accounting period identifier

":
"{Integer}",
43
               "period
Period

Accounting period

":
"{Integer}",
44
               "accountingPeriodLink
AccountingPeriodLink

Accounting period reference

":
"{String}"
45
          },
46
          "error
Error

Error message of the general ledger posting

":
{
47
               "message
Message

Full error message/description. The message is generated from the specified ErrorMessage object, expanded with the given parameter(s).

":
"{String}",
48
               "translatedMessage
TranslatedMessage

Full translated error description. The language used is specified either in $lang or by user settings. If error message don't exist in desired language, english will be used.

":
"{String}",
49
               "errorMessage": {
50
                    "errorMessageId
ErrorMessageId

Error message identifier

":
"{Integer}",
51
                    "errorMessageLink
ErrorMessageLink

Error message reference

":
"{String}"
52
               },
53
               "parameters": {
54
                    "parameter": {
55
                         "index
Index

Error Key

":
"{Integer}",
56
                         "value
Value

Value of the error parameter

":
"{String}"
57
                    }
58
               }
59
          }
60
     }
61
}

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 101420 HTTP 404 Setting definition not found