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)
| Property | Type | Description |
|---|---|---|
name | String | This is the name of the glcode. [Max Length: 500 characters] |
code | String | The unique identification code specific to the glcode [Max Length: 500 characters] |
status | Enum: {Active, Retired} | The current status of the glcode, defaults to 'Active' |
used | Boolean | Indicates whether the GL Code is in use. |
ledgers | Object | The GL Code Ledger table containing: Earned revenue. Unearned revenue, Earned discounts, Unearned discounts |
Ledger fields
| Property | Type | Description |
|---|---|---|
reference | String | The text reference field that is assigned by the user attached to the ledger type. |
ledgerType | Enum: {EarnedRevenue, DeferredRevenue, Discount, DeferredDiscount} | The ledger type associated to the ledger label. |
ledgerLabel | Enum: {Earned Revenue, Unearned Revenue, Earned Discounts, Unearned Discounts} | The ledger label as shown in the Stax bill UI. |
