Sales Categories
Sales categories classify sales targets and revenue streams for reporting.
Use the Datastore_SalesCategory endpoint to query sales categories.
Endpoints
List Sales Categories
GET
/v1/odata/Datastore_SalesCategorySingle Sales Categorie
GET
/v1/odata/Datastore_SalesCategory({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 |
|---|---|---|---|
| SalesTarget | SalesTarget | 1:N | SalesTarget |
Expanding Relationships
GET
/v1/odata/Datastore_SalesCategory({id})?$expand=SalesTargetNavigating Relationships
GET
/v1/odata/Datastore_SalesCategory({id})/SalesTargetFiltering Examples
GET
/v1/odata/Datastore_SalesCategory?$filter=Name eq '{Name}'&$top={top}GET
/v1/odata/Datastore_SalesCategory?$filter=contains(Name, '{Name}')&$top={top}GET
/v1/odata/Datastore_SalesCategory?$filter=Code eq '{Code}'&$top={top}GET
/v1/odata/Datastore_SalesCategory?$filter=IsDefault eq {IsDefault}&$top={top}Custom Query
Build your own OData query against Datastore_SalesCategory. Open Run and edit the whole request inline — swap the entity set, change the $filter, or add $expand, $select, $orderby, $top, $skip. Type $ for suggestions; use ↺ Reset to restore this example.
GET
/v1/odata/Datastore_SalesCategory?$top=10