Units
Units represent the units of measure used in your product catalog (e.g., piece, hour, kg, license). They are referenced by Products to define how quantities are measured and displayed on product lines.
Use the Datastore_Unit endpoint to query available units.
Read-only
Units are managed through the Tribe CRM UI. The API provides read-only access to query existing units.
Endpoints
List Units
GET
/v1/odata/Datastore_UnitSingle Unit
GET
/v1/odata/Datastore_Unit({id})Fields
Datastore Fields (inherited)
| Field | Type | Description |
|---|---|---|
Name | String | Unit name (e.g., "Piece", "Hour", "Kilogram") |
Code | String | Unit code (e.g., "pcs", "hr", "kg") |
LocalizedName | String | Localized unit name |
IsDefault | Boolean | Whether this is the default unit |
Relationships
| Relationship | Target Entity | Cardinality | Description |
|---|---|---|---|
| Product | Product | 1:N | Products using this unit |
Expanding Relationships
GET
/v1/odata/Datastore_Unit({id})?$expand=ProductNavigating Relationships
GET
/v1/odata/Datastore_Unit({id})/ProductFiltering Examples
GET
/v1/odata/Datastore_Unit?$filter=Name eq '{Name}'&$top={top}GET
/v1/odata/Datastore_Unit?$filter=Code eq '{Code}'&$top={top}GET
/v1/odata/Datastore_Unit?$filter=IsDefault eq {IsDefault}&$top={top}GET
/v1/odata/Datastore_Unit?$filter=contains(Name, '{Name}')&$top={top}