Skip to main content

Units

EntityDatastoreDatastore.Unit

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_Unit

Single Unit

GET/v1/odata/Datastore_Unit({id})

Fields

Datastore Fields (inherited)

FieldTypeDescription
NameStringUnit name (e.g., "Piece", "Hour", "Kilogram")
CodeStringUnit code (e.g., "pcs", "hr", "kg")
LocalizedNameStringLocalized unit name
IsDefaultBooleanWhether this is the default unit

Relationships

RelationshipTarget EntityCardinalityDescription
ProductProduct1:NProducts using this unit

Expanding Relationships

GET/v1/odata/Datastore_Unit({id})?$expand=Product
GET/v1/odata/Datastore_Unit({id})/Product

Filtering 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}