API

Finance APIs

GET finance/general-ledger/{generalLedgerPostingId}

General ledger posting details for provided identifier

HTTP method GET
URI https://api.rambase.net/finance/general-ledger/{generalLedgerPostingId}
Supported formats Xml, Html, Json (ex. $format=json)
- URI parameter {generalLedgerPostingId} General ledger posting identifier
Integer, minimum 100000
Custom fields Custom fields supported
Successful HTTP status code 200
API resource identifier 506, version 27

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
1

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.

$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]
$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
$format String, optional Set the format of the response to use for the request. Accepted values are "xml", "html", "jsonstream", "json"
$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.
$select String, optional Use to define the fields to return in the response. Accepts a comma-separated list of field names. See the Expand and select page for more information.
$expand String, optional Use to include output fields that are not returned by default in the response. Accepts a comma-separated list of expandable field names. See the Expand and Select page for more information.
$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. Fields colored in grey is expandable 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

>
{Integer}</CountOfJournalEntries>
12
     <Balance
Balance

This field is greyed out because it is an expandable field. You have to add $expand=Balance in your request URI to get this field

>
13
          <Currency
Currency

Three character code following the ISO 4217 standard

This field is greyed out because it is an expandable field. You have to add $expand=Balance in your request URI to get this field

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

Total balance for general ledger posting.

This field is greyed out because it is an expandable field. You have to add $expand=Balance in your request URI to get this field

>
{Decimal}</Amount>
15
     </Balance>
16
     <VATPosting>
17
          <VATPostingId
VATPostingId

VAT Posting identifier

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

VAT Posting reference

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

Identifier of the object

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

Type of object

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

API reference to the object

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

Identifier of the object

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

Type of item

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

API reference to the item

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

Internal RamBase identifier of the object/item

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

User identifier

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

Name of the user

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

First name of the user

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

User reference

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

User identifier

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

Name of the user

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

First name of the user

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

User reference

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

Accounting period identifier

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

Accounting period

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

Accounting period reference

>
{String}</AccountingPeriodLink>
45
     </AccountingPeriod>
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}</Message>
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}</TranslatedMessage>
49
          <ErrorMessage>
50
               <ErrorMessageId
ErrorMessageId

Error message identifier

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

Error message reference

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

Error Key

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

Value of the error parameter

>
{String}</Value>
57
               </Parameter>
58
          </Parameters>
59
     </Error>
60
</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

":
"{Integer}",
13
          "balance
Balance

This field is greyed out because it is an expandable field. You have to add $expand=Balance in your request URI to get this field

":
{
14
               "currency
Currency

Three character code following the ISO 4217 standard

This field is greyed out because it is an expandable field. You have to add $expand=Balance in your request URI to get this field

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

Total balance for general ledger posting.

This field is greyed out because it is an expandable field. You have to add $expand=Balance in your request URI to get this field

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

VAT Posting identifier

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

VAT Posting reference

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

Identifier of the object

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

Type of object

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

API reference to the object

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

Identifier of the object

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

Type of item

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

API reference to the item

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

Internal RamBase identifier of the object/item

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

User identifier

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

Name of the user

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

First name of the user

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

User reference

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

User identifier

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

Name of the user

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

First name of the user

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

User reference

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

Accounting period identifier

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

Accounting period

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

Accounting period reference

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

Error message of the general ledger posting

":
{
48
               "message
Message

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

":
"{String}",
49
               "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}",
50
               "errorMessage": {
51
                    "errorMessageId
ErrorMessageId

Error message identifier

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

Error message reference

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

Error Key

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

Value of the error parameter

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

Possible error codes the response might return:

Error 100619 HTTP 404 Error message not found