API

Finance APIs

GET finance/general-ledger/{generalLedgerPostingId}/accounting-lines/{accountingLineId}

Details about a specific accounting line of a general ledger posting

HTTP method GET
URI https://api.rambase.net/finance/general-ledger/{generalLedgerPostingId}/accounting-lines/{accountingLineId}
Supported formats Xml, Html, Json (ex. $format=json)
- URI parameter {generalLedgerPostingId} General ledger posting identifier
Integer, minimum 100000
- URI parameter {accountingLineId} Accounting line identifier of the general ledger posting
Integer, minimum 1
Successful HTTP status code 200
API resource identifier 4005, version 8

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.

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
<AccountingLine>
2
     <AccountingLineId
AccountingLineId

Accounting line identifier of the general ledger posting

>
{Integer}</AccountingLineId>
3
     <CreatedAt
CreatedAt

Date and time of creation

>
{Datetime}</CreatedAt>
4
     <VATPercent
VATPercent

Value added tax percent

>
{Decimal}</VATPercent>
5
     <Description
Description

Description of the general ledger posting

>
{String}</Description>
6
     <Intercompany>
7
          <Code
Code

Abbreviation/code to identify the company

>
{String}</Code>
8
     </Intercompany>
9
     <AccountDimensions>
10
          <GeneralLedgerAccount>
11
               <GeneralLedgerAccountId
GeneralLedgerAccountId

General ledger account identifier

>
{Integer}</GeneralLedgerAccountId>
12
               <AccountNumber
AccountNumber

The account number of the general ledger account

>
{String}</AccountNumber>
13
               <Name
Name

Name of general ledger account

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

Type of account

Possible domain values can be found here

>
{String}</Type>
15
               <PostingType
PostingType

Posting type of account. Only debit, only credit or both.

Possible domain values can be found here

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

>
{String}</PostingType>
16
               <DimensionRequirements
DimensionRequirements

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

>
17
                    <DimensionRequirement
DimensionRequirement

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

>
18
                         <Requirement
Requirement

Specifies how the dimension should be used for the specific account.

Possible domain values can be found here

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

>
{String}</Requirement>
19
                         <DimensionDefinition
DimensionDefinition

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

>
20
                              <DimensionDefinitionId
DimensionDefinitionId

Dimension identifier

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

>
{Integer}</DimensionDefinitionId>
21
                              <Name
Name

Name of dimension

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

>
{String}</Name>
22
                              <ValueSource
ValueSource

Where the value is selected from.

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

>
23
                                   <Type
Type

Type of source

Possible domain values can be found here

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

>
{String}</Type>
24
                              </ValueSource>
25
                              <DimensionDefinitionLink
DimensionDefinitionLink

Dimension reference

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

>
{String}</DimensionDefinitionLink>
26
                         </DimensionDefinition>
27
                    </DimensionRequirement>
28
               </DimensionRequirements>
29
               <GeneralLedgerAccountLink
GeneralLedgerAccountLink

General ledger account reference

>
{String}</GeneralLedgerAccountLink>
30
          </GeneralLedgerAccount>
31
          <Dimensions>
32
               <Dimension>
33
                    <Value
Value

Value for this dimension defintion.

>
{String}</Value>
34
                    <Description
Description

Description of the dimension value.

>
{String}</Description>
35
                    <DimensionDefinition>
36
                         <DimensionDefinitionId
DimensionDefinitionId

Dimension identifier

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

Name of dimension

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

Dimension reference

>
{String}</DimensionDefinitionLink>
39
                    </DimensionDefinition>
40
               </Dimension>
41
          </Dimensions>
42
     </AccountDimensions>
43
     <VATCodeDefinition>
44
          <VATCode
VATCode

Code that determines VAT rules used for VAT calculations.

>
{String}</VATCode>
45
          <Description
Description

Description of VAT Code definition

>
{String}</Description>
46
     </VATCodeDefinition>
47
     <Location
Location

Location of general ledger posting item.

>
48
          <LocationId
LocationId

Location identifier

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

>
{Integer}</LocationId>
49
          <ShortName
ShortName

Unique abbreviation/short name of the location

>
{String}</ShortName>
50
          <Name
Name

Name of warehouse location

>
{String}</Name>
51
          <Address
Address

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

>
52
               <CountryCode
CountryCode

Two-character code (ISO 3166) identifying the country.

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

>
{String}</CountryCode>
53
          </Address>
54
          <LocationLink
LocationLink

Location reference

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

>
{String}</LocationLink>
55
     </Location>
56
     <Totals>
57
          <Currency
Currency

Three character code following the ISO 4217 standard

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

Total amount.

>
{Decimal}</Amount>
59
          <DebitAmount
DebitAmount

Total debit amount.

>
{Decimal}</DebitAmount>
60
          <CreditAmount
CreditAmount

Total credit amount.

>
{Decimal}</CreditAmount>
61
     </Totals>
62
     <TotalsConverted
TotalsConverted

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

>
63
          <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=TotalsConverted in your request URI to get this field

>
{String}</Currency>
64
          <ExchangeRate
ExchangeRate

The exchange rate used in convertion

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

>
{Decimal}</ExchangeRate>
65
          <Amount
Amount

Total amount in company currency.

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

>
{Decimal}</Amount>
66
          <DebitAmount
DebitAmount

Total debit amount in company currency.

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

>
{Decimal}</DebitAmount>
67
          <CreditAmount
CreditAmount

Total credit amount in company currency.

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

>
{Decimal}</CreditAmount>
68
     </TotalsConverted>
69
</AccountingLine>
1
{
2
     "accountingLine": {
3
          "accountingLineId
AccountingLineId

Accounting line identifier of the general ledger posting

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

Date and time of creation

":
"{Datetime}",
5
          "vATPercent
VATPercent

Value added tax percent

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

Description of the general ledger posting

":
"{String}",
7
          "intercompany": {
8
               "code
Code

Abbreviation/code to identify the company

":
"{String}"
9
          },
10
          "accountDimensions": {
11
               "generalLedgerAccount": {
12
                    "generalLedgerAccountId
GeneralLedgerAccountId

General ledger account identifier

":
"{Integer}",
13
                    "accountNumber
AccountNumber

The account number of the general ledger account

":
"{String}",
14
                    "name
Name

Name of general ledger account

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

Type of account

Possible domain values can be found here

":
"{String}",
16
                    "postingType
PostingType

Posting type of account. Only debit, only credit or both.

Possible domain values can be found here

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

":
"{String}",
17
                    "dimensionRequirements
DimensionRequirements

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

":
[
18
                         {
19
                              "requirement
Requirement

Specifies how the dimension should be used for the specific account.

Possible domain values can be found here

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

":
"{String}",
20
                              "dimensionDefinition
DimensionDefinition

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

":
{
21
                                   "dimensionDefinitionId
DimensionDefinitionId

Dimension identifier

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

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

Name of dimension

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

":
"{String}",
23
                                   "valueSource
ValueSource

Where the value is selected from.

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

":
{
24
                                        "type
Type

Type of source

Possible domain values can be found here

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

":
"{String}"
25
                                   },
26
                                   "dimensionDefinitionLink
DimensionDefinitionLink

Dimension reference

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

":
"{String}"
27
                              }
28
                         }
29
                    ],
30
                    "generalLedgerAccountLink
GeneralLedgerAccountLink

General ledger account reference

":
"{String}"
31
               },
32
               "dimensions": [
33
                    {
34
                         "value
Value

Value for this dimension defintion.

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

Description of the dimension value.

":
"{String}",
36
                         "dimensionDefinition": {
37
                              "dimensionDefinitionId
DimensionDefinitionId

Dimension identifier

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

Name of dimension

":
"{String}",
39
                              "dimensionDefinitionLink
DimensionDefinitionLink

Dimension reference

":
"{String}"
40
                         }
41
                    }
42
               ]
43
          },
44
          "vATCodeDefinition": {
45
               "vATCode
VATCode

Code that determines VAT rules used for VAT calculations.

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

Description of VAT Code definition

":
"{String}"
47
          },
48
          "location
Location

Location of general ledger posting item.

":
{
49
               "locationId
LocationId

Location identifier

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

":
"{Integer}",
50
               "shortName
ShortName

Unique abbreviation/short name of the location

":
"{String}",
51
               "name
Name

Name of warehouse location

":
"{String}",
52
               "address
Address

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

":
{
53
                    "countryCode
CountryCode

Two-character code (ISO 3166) identifying the country.

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

":
"{String}"
54
               },
55
               "locationLink
LocationLink

Location reference

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

":
"{String}"
56
          },
57
          "totals": {
58
               "currency
Currency

Three character code following the ISO 4217 standard

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

Total amount.

":
"{Decimal}",
60
               "debitAmount
DebitAmount

Total debit amount.

":
"{Decimal}",
61
               "creditAmount
CreditAmount

Total credit amount.

":
"{Decimal}"
62
          },
63
          "totalsConverted
TotalsConverted

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

":
{
64
               "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=TotalsConverted in your request URI to get this field

":
"{String}",
65
               "exchangeRate
ExchangeRate

The exchange rate used in convertion

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

":
"{Decimal}",
66
               "amount
Amount

Total amount in company currency.

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

":
"{Decimal}",
67
               "debitAmount
DebitAmount

Total debit amount in company currency.

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

":
"{Decimal}",
68
               "creditAmount
CreditAmount

Total credit amount in company currency.

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

":
"{Decimal}"
69
          }
70
     }
71
}

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 100027 HTTP 400 Missing mandatory parameter {0}
Error 101420 HTTP 404 Setting definition not found