Search price tiers
distru-search-price-tiersReadSearches the price tiers of the company: discounts that lower the unit price of sales order items.
Inputs
Every tool also takes the common inputs.
| Field | Type | Required | Description |
|---|---|---|---|
| limit | integer | No | Default: 10 |
| cursor | string | No | nextCursor of the previous call; keep the other arguments unchanged. |
| ids | string[] | No | Price tier IDs. |
| search | string | No | Case-insensitive substring of name or externalName. |
| customerIds | string[] | No | Matches oneOfCompanies. Resolve via distru-search-companies. |
| customerGroupIds | string[] | No | Matches oneOfCompanyGroups. Resolve via distru-search-lookups (type COMPANY_GROUP). |
| productIds | string[] | No | Matches oneOfProducts. Not tiers reaching a product only via its category, brand, group or tag. Resolve via distru-search-products. |
| productTagIds | string[] | No | Matches oneOfProductTags. Resolve via distru-search-lookups (type PRODUCT_TAG). |
| productCategoryIds | string[] | No | Matches oneOfProductCategories. Resolve via distru-search-lookups (type PRODUCT_CATEGORY). |
| productSubcategoryIds | string[] | No | Matches oneOfProductSubcategories. Resolve via distru-search-lookups (type PRODUCT_CATEGORY, each row's subcategories). |
| productGroupIds | string[] | No | Matches oneOfProductGroups. Resolve via distru-search-lookups (type PRODUCT_GROUP). |
| brandIds | string[] | No | Matches oneOfProductBrands. Resolve via distru-search-products (each row's brand) or distru-search-companies. |
| menuIds | string[] | No | Tiers shown on any of these active menus: menuMode ALL, or SPECIFIC with the menu in menus. Resolve via distru-search-menus. |
| validAt | string | No | Tiers active at this moment: validFrom <= it (or null), validUntil > it (or null). Without it, expired and future tiers are listed too. ISO 8601 with a UTC offset, e.g. "2026-09-01T00:00:00-07:00"; the company timezone is on distru-get-me. |
| pricingType | enumAMOUNT_OFFFLAT_PRICEPERCENT_OFF | No | |
| ownerIds | string[] | No | Resolve via distru-search-users. |
| includeDeleted | boolean | No | Also list deleted tiers, with deletedAt set. |
| sortBy | object | No | Default: most recently updated first. |
| sortBy. | enumASCDESC | Yes | |
| sortBy. | enumINSERTED_ATNAMEUPDATED_AT | Yes | NAME = internal name, not externalName. |
Output
Presence on a nested field assumes its parent exists.
| Field | Type | Presence |
|---|---|---|
| hasMore | boolean | Always |
| nextCursor | string | Can be absent |
| totalCount | integer | Can be absent |
| items | object[] | Always |
| items[]. | string | Always |
| items[]. | string | Always |
| items[]. | string | Null or absent |
| items[]. | object | Always |
| items[]. | enumAMOUNT_OFFFLAT_PRICEPERCENT_OFF | Always |
| items[]. | string | Null or absent |
| items[]. | string | Null or absent |
| items[]. | string | Null or absent |
| items[]. | string | Can be null |
| items[]. | enumALLNONESPECIFIC | Always |
| items[]. | object[] | Can be absent |
| items[]. | string | Always |
| items[]. | string | Always |
| items[]. | object | Null or absent |
| items[]. | string | Always |
| items[]. | string | Null or absent |
| items[]. | object | Always |
| items[]. | object[] | Can be absent |
| items[]. | string | Always |
| items[]. | string | Always |
| items[]. | object[] | Can be absent |
| items[]. | string | Always |
| items[]. | string | Always |
| items[]. | object[] | Can be absent |
| items[]. | string | Always |
| items[]. | string | Always |
| items[]. | object[] | Can be absent |
| items[]. | string | Always |
| items[]. | string | Always |
| items[]. | object[] | Can be absent |
| items[]. | string | Always |
| items[]. | string | Always |
| items[]. | object[] | Can be absent |
| items[]. | string | Always |
| items[]. | string | Always |
| items[]. | object[] | Can be absent |
| items[]. | string | Always |
| items[]. | string | Always |
| items[]. | object[] | Can be absent |
| items[]. | string | Always |
| items[]. | string | Always |
| items[]. | object[] | Can be absent |
| items[]. | string | Always |
| items[]. | string | Always |
| items[]. | object[] | Can be absent |
| items[]. | string | Always |
| items[]. | string | Always |
| items[]. | object[] | Can be absent |
| items[]. | string | Always |
| items[]. | string | Always |
| items[]. | object[] | Can be absent |
| items[]. | string | Always |
| items[]. | string | Always |
| items[]. | object[] | Can be absent |
| items[]. | string | Always |
| items[]. | string | Null or absent |
| items[]. | object[] | Can be absent |
| items[]. | string | Always |
| items[]. | string | Null or absent |
| items[]. | object[] | Can be absent |
| items[]. | string | Always |
| items[]. | string | Null or absent |
| items[]. | object[] | Can be absent |
| items[]. | string | Always |
| items[]. | string | Null or absent |
| items[]. | object | Null or absent |
| items[]. | string | Always |
| items[]. | object | Null or absent |
| items[]. | string | Always |
| items[]. | string | Always |
| items[]. | object | Null or absent |
| items[]. | string | Null or absent |
| items[]. | string | Null or absent |
What the AI reads
Searches the price tiers of the company: discounts that lower the unit price of sales order items. One row per tier with its pricing, active window, menus, owner and conditions. For which tiers priced which orders and the discounts given, deleted tiers included, use distru-report-sales-orders with rowsPer LINE_ITEM. externalName is the name buyers see; null means they see name. pricing.type PERCENT_OFF takes value percent off the unit price, AMOUNT_OFF subtracts value from it, FLAT_PRICE replaces it with value; the price never goes below 0, and when flat and other tiers both apply to an item, flat tiers win. A tier applies to an order item only when every condition is met: the item matches an entry of each oneOf* list and none of any notOneOf* list, reaches minQuantity (in its unitType when set), and has a total THC percentage within totalThcPercentageRange (null bounds are open). A missing condition key means no condition of that kind. menus is present only when menuMode is SPECIFIC; ALL means every active menu and NONE no menu. validFrom and validUntil bound the active window; null means no limit on that side. Tiers the caller's team restrictions hide are omitted. List filters match any value. Condition filters (Matches oneOf*) skip tiers without that condition or that only exclude the values.