GL Code Object

Gl Codes are General Ledger tracking codes that you can attach to a product before activation. You may only assign one gl code to a product but can assign the same gl code to multiple products. They can also be assigned four types of ledgers for earned and unearned revenue and discounts (see below)

PropertyTypeDescription
nameStringThis is the name of the glcode. [Max Length: 500 characters]
codeStringThe unique identification code specific to the glcode [Max Length: 500 characters]
statusEnum: {Active, Retired}The current status of the glcode, defaults to 'Active'
usedBooleanIndicates whether the GL Code is in use.
ledgersObjectThe GL Code Ledger table containing: Earned revenue. Unearned revenue, Earned discounts, Unearned discounts

Ledger fields

PropertyTypeDescription
referenceStringThe text reference field that is assigned by the user attached to the ledger type.
ledgerTypeEnum: {EarnedRevenue, DeferredRevenue, Discount, DeferredDiscount}The ledger type associated to the ledger label.
ledgerLabelEnum: {Earned Revenue, Unearned Revenue, Earned Discounts, Unearned Discounts}The ledger label as shown in the Stax bill UI.