Finance APIs
Saves information about the general ledger account
HTTP method | PUT |
URI | https://api.rambase.net/finance/general-ledger-accounts/{generalLedgerAccountId} |
Supported formats | Xml, Html, Json (ex. $format=json) |
- URI parameter {generalLedgerAccountId} |
General ledger account identifier
Integer, minimum 1000 |
Successful HTTP status code | 200 |
API resource identifier | 3408, version 14 |
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.
GeneralLedgerAccount
This field is optional.
>Name
Name of general ledger account
This field is optional.
>{String}</Name>Type
Type of account
Applicable domain values can be found here
This field is optional.
>{String}</Type>Category
Category of account
Applicable domain values can be found here
This field is optional.
>{String}</Category>PostingType
Posting type of account. Only debit, only credit or both.
Applicable domain values can be found here
This field is optional.
>{String}</PostingType>Description
Description of account
This field is optional.
>{String}</Description>AccountNumber
The account number of the general ledger account
Maximum value: 50
Input must match the following regular expression pattern: [A-Za-z0-9-_\.]
This field is optional.
>{String}</AccountNumber>IsAgioCalculated
True if general ledger account is agio calculated
This field is optional.
>{Boolean}</IsAgioCalculated>IsControlAccount
True if general ledger account is a control account
This field is optional.
>{Boolean}</IsControlAccount>LocationRequirement
Specifies how the location should be used for the specific account.
Applicable domain values can be found here
This field is optional.
>{String}</LocationRequirement>IntercompanyCodeRequirement
Specifies how the intercompany code should be used for the specific account.
Applicable domain values can be found here
This field is optional.
>{String}</IntercompanyCodeRequirement>TransferToFixedAsset
Specifies how investments should be transfered into the fixed assets register.
Applicable domain values can be found here
This field is optional.
>{String}</TransferToFixedAsset>Validity
This field is optional.
>EffectivePeriod
Period the account is effective/valid from
Minimum value: 199000
Maximum value: 299912
This field is optional.
>{Integer}</EffectivePeriod>ExpirationPeriod
Period the account expires (is valid to)
Minimum value: 199000
Maximum value: 299912
This field is optional.
>{Integer}</ExpirationPeriod>BudgetAccount
This field is optional.
>BudgetAccountId
Budget account identifier
Minimum value: 100
This field is optional.
>{Integer}</BudgetAccountId>DefaultDepartment
This field is optional.
>DepartmentId
Department identifier
Minimum value: 1
This field is optional.
>{Integer}</DepartmentId>DefaultVATCodeDefinition
This field is optional.
>VATCode
Code that determines VAT rules used for VAT calculations.
This field is optional.
>{String}</VATCode>GeneralLedgerAccountGroup
This field is optional.
>GeneralLedgerAccountGroupId
General ledger account group identifier
Minimum value: 100000
This field is optional.
>{Integer}</GeneralLedgerAccountGroupId>DimensionRequirements
This field is optional.
>DimensionRequirement
This field is optional.
>Requirement
Specifies how the dimension should be used for the specific account.
Applicable domain values can be found here
This field is optional.
>{String}</Requirement>DimensionDefinition
This field is optional.
>DimensionDefinitionId
Dimension identifier
Minimum value: 1
This field is optional.
>{Integer}</DimensionDefinitionId>DepreciationRule
This field is optional.
>DepreciationRuleId
Depreciation rule identifier
Minimum value: 100000
This field is optional.
>{Integer}</DepreciationRuleId>BlockPostingsFor
This field is optional.
>SalesInvoices
GL postings from Sales Invoices are blocked for this general ledger account
This field is optional.
>{Boolean}</SalesInvoices>SalesCreditNotes
GL postings from Sales Credit Notes are blocked for this general ledger account
This field is optional.
>{Boolean}</SalesCreditNotes>SalesPostingAdjustments
GL postings from Sales Posting Adjustments are blocked for this general ledger account
This field is optional.
>{Boolean}</SalesPostingAdjustments>SupplierInvoices
GL postings from Supplier Invoices are blocked for this general ledger account
This field is optional.
>{Boolean}</SupplierInvoices>SupplierCreditNotes
GL postings from Supplier Credit Notes are blocked for this general ledger account
This field is optional.
>{Boolean}</SupplierCreditNotes>SupplierPostingAdjustments
GL postings from Supplier Posting Adjustments are blocked for this general ledger account
This field is optional.
>{Boolean}</SupplierPostingAdjustments>Payments
GL postings from Payments are blocked for this general ledger account
This field is optional.
>{Boolean}</Payments>ManualGLPostings
GL postings from Manual GL Postings are blocked for this general ledger account
This field is optional.
>{Boolean}</ManualGLPostings>SAFTStandardCode
This field is optional.
>Code
SAF-T standard code
This field is optional.
>{String}</Code>GeneralLedgerAccount
This field is optional.
": {Name
Name of general ledger account
This field is optional.
": "{String}",Type
Type of account
Applicable domain values can be found here
This field is optional.
": "{String}",Category
Category of account
Applicable domain values can be found here
This field is optional.
": "{String}",PostingType
Posting type of account. Only debit, only credit or both.
Applicable domain values can be found here
This field is optional.
": "{String}",Description
Description of account
This field is optional.
": "{String}",AccountNumber
The account number of the general ledger account
Maximum value: 50
Input must match the following regular expression pattern: [A-Za-z0-9-_\.]
This field is optional.
": "{String}",IsAgioCalculated
True if general ledger account is agio calculated
This field is optional.
": "{Boolean}",IsControlAccount
True if general ledger account is a control account
This field is optional.
": "{Boolean}",LocationRequirement
Specifies how the location should be used for the specific account.
Applicable domain values can be found here
This field is optional.
": "{String}",IntercompanyCodeRequirement
Specifies how the intercompany code should be used for the specific account.
Applicable domain values can be found here
This field is optional.
": "{String}",TransferToFixedAsset
Specifies how investments should be transfered into the fixed assets register.
Applicable domain values can be found here
This field is optional.
": "{String}",Validity
This field is optional.
": {EffectivePeriod
Period the account is effective/valid from
Minimum value: 199000
Maximum value: 299912
This field is optional.
": "{Integer}",ExpirationPeriod
Period the account expires (is valid to)
Minimum value: 199000
Maximum value: 299912
This field is optional.
": "{Integer}"BudgetAccount
This field is optional.
": {BudgetAccountId
Budget account identifier
Minimum value: 100
This field is optional.
": "{Integer}"DefaultDepartment
This field is optional.
": {DepartmentId
Department identifier
Minimum value: 1
This field is optional.
": "{Integer}"DefaultVATCodeDefinition
This field is optional.
": {VATCode
Code that determines VAT rules used for VAT calculations.
This field is optional.
": "{String}"GeneralLedgerAccountGroup
This field is optional.
": {GeneralLedgerAccountGroupId
General ledger account group identifier
Minimum value: 100000
This field is optional.
": "{Integer}"DimensionRequirements
This field is optional.
": [Requirement
Specifies how the dimension should be used for the specific account.
Applicable domain values can be found here
This field is optional.
": "{String}",DimensionDefinition
This field is optional.
": {DimensionDefinitionId
Dimension identifier
Minimum value: 1
This field is optional.
": "{Integer}"DepreciationRule
This field is optional.
": {DepreciationRuleId
Depreciation rule identifier
Minimum value: 100000
This field is optional.
": "{Integer}"BlockPostingsFor
This field is optional.
": {SalesInvoices
GL postings from Sales Invoices are blocked for this general ledger account
This field is optional.
": "{Boolean}",SalesCreditNotes
GL postings from Sales Credit Notes are blocked for this general ledger account
This field is optional.
": "{Boolean}",SalesPostingAdjustments
GL postings from Sales Posting Adjustments are blocked for this general ledger account
This field is optional.
": "{Boolean}",SupplierInvoices
GL postings from Supplier Invoices are blocked for this general ledger account
This field is optional.
": "{Boolean}",SupplierCreditNotes
GL postings from Supplier Credit Notes are blocked for this general ledger account
This field is optional.
": "{Boolean}",SupplierPostingAdjustments
GL postings from Supplier Posting Adjustments are blocked for this general ledger account
This field is optional.
": "{Boolean}",Payments
GL postings from Payments are blocked for this general ledger account
This field is optional.
": "{Boolean}",ManualGLPostings
GL postings from Manual GL Postings are blocked for this general ledger account
This field is optional.
": "{Boolean}"SAFTStandardCode
This field is optional.
": {Code
SAF-T standard code
This field is optional.
": "{String}"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. |
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.
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 101015 HTTP 404 | Permission not found |
Error 101420 HTTP 404 | Setting definition not found |
Error 104469 HTTP 400 | You cannot change the forward option to NO, FAR documents exists! |
Error 103702 HTTP 400 | From period is not valid. General ledger postings exists. |
Error 103703 HTTP 400 | To period is not valid. General ledger postings exists. |
Error 104702 HTTP 400 | You cannot change posting type of a processed (status 9) general ledger account |
Error 105056 HTTP 400 | You cannot change account type. General ledger postings exists. |
Error 105087 HTTP 400 | You cannot change the blocking attributes for an off-balance account. |
Error 105176 HTTP 400 | Child account exists, the account cannot be changed to an non control account. |
Error 105177 HTTP 400 | You cannot change to a control account. General ledger postings exists. |
Error 106939 HTTP 400 | Cannot set parent account to the same account |
Error 105179 HTTP 400 | Only control accounts are allowed as parent account. |