General Ledger Accounts
General ledger accounts link products to your accounting system for financial reporting.
Use the Datastore_GeneralLedgerAccount endpoint to query general ledger accounts.
Endpoints
List General Ledger Accounts
GET
/v1/odata/Datastore_GeneralLedgerAccountSingle General Ledger Account
GET
/v1/odata/Datastore_GeneralLedgerAccount({id})Fields
Datastore Fields (inherited)
| Field | Type | Description |
|---|---|---|
Name | String | Display name |
Code | String | Unique code identifier |
LocalizedName | String | Localized display name |
IsDefault | Boolean | Whether this is the default value |
Relationships
| Relationship | Target Entity | Cardinality | Description |
|---|---|---|---|
| Product | Product | 1:N | Product |
Expanding Relationships
GET
/v1/odata/Datastore_GeneralLedgerAccount({id})?$expand=ProductNavigating Relationships
GET
/v1/odata/Datastore_GeneralLedgerAccount({id})/ProductFiltering Examples
GET
/v1/odata/Datastore_GeneralLedgerAccount?$filter=Name eq '{Name}'&$top={top}GET
/v1/odata/Datastore_GeneralLedgerAccount?$filter=contains(Name, '{Name}')&$top={top}GET
/v1/odata/Datastore_GeneralLedgerAccount?$filter=Code eq '{Code}'&$top={top}GET
/v1/odata/Datastore_GeneralLedgerAccount?$filter=IsDefault eq {IsDefault}&$top={top}