Get a menu's settings

distru-get-menu-settingsRead

Gets one of your company's menus, inactive ones included, with everything distru-mutate-menu writes but the passcode.

Inputs

Every tool also takes the common inputs.

FieldTypeRequiredDescription
idstringYesResolve via distru-search-menus.
includeCollectionsbooleanNoAdds collections (custom ones, in display order, with the filters that pick their products) and officialCollections (Distru's, with any custom name).

Output

Presence on a nested field assumes its parent exists.

FieldTypePresence
menuobjectCan be null
menu.idstringAlways
menu.namestringAlways
menu.externalNamestringAlways
menu.primaryUrlstringAlways
menu.ownerobjectCan be null
menu.owner.idstringAlways
menu.owner.fullNamestringAlways
menu.activebooleanAlways
menu.visibilityenum
PASSCODE_PROTECTEDPRIVATEPUBLIC
Always
menu.discoverablebooleanAlways
menu.allowPartnerOrdersbooleanAlways
menu.locationsobject[]Always
menu.locations[].idstringAlways
menu.locations[].namestringAlways
menu.minimumOrderSubtotalstringCan be null
menu.minimumOrderLeadTimeDaysnumberAlways
menu.availableDeliveryDaysstring[]Always
menu.buyerCanSelectDeliveryDatebooleanAlways
menu.sellByCaseOnlybooleanAlways
menu.allowCustomersToOverOrderbooleanAlways
menu.defaultOrderStatusstringAlways
menu.buyerDefaultOrderOwnerModeenum
CUSTOMERS_COMPANY_OWNERDEFAULTSPECIFIC_USER
Always
menu.buyerDefaultOrderOwnerobjectCan be null
menu.buyerDefaultOrderOwner.idstringAlways
menu.buyerDefaultOrderOwner.fullNamestringAlways
menu.sellerDefaultOrderOwnerModeenum
CUSTOMERS_COMPANY_OWNERDEFAULTSALES_REPSPECIFIC_USER
Always
menu.sellerDefaultOrderOwnerobjectCan be null
menu.sellerDefaultOrderOwner.idstringAlways
menu.sellerDefaultOrderOwner.fullNamestringAlways
menu.allowSalesRepsToOverrideNetTermsbooleanAlways
menu.autoCreateInvoiceForSalesRepOrdersbooleanAlways
menu.showInventoryLevelsbooleanAlways
menu.showProductsWithNoInventoryModeenum
DO_NOT_SHOWSHOW_AND_ALLOW_TO_ORDERSHOW_AS_SOLD_OUT
Always
menu.hidePricesModestringAlways
menu.hideOriginalPriceWhenPriceTierAppliedbooleanAlways
menu.allowSellingByPotencybooleanAlways
menu.potencyOfficialProductCategoryIdsenum[]
CAPSULESCLONESCONCENTRATESEDIBLESFLOWERMERCHOTHERPREROLLSTINCTURESTOPICALSVAPES
Always
menu.showCoabooleanAlways
menu.showExpirationDatebooleanAlways
menu.showPackageDatebooleanAlways
menu.showTacbooleanAlways
menu.showTotalCbdbooleanAlways
menu.allowBuyersToRequestTradeSamplesbooleanAlways
menu.restrictTradeSampleRequestToProductsInCartbooleanAlways
menu.sendInternalOrderNotificationsbooleanAlways
menu.internalOrderNotificationRecipientsobject[]Always
menu.internalOrderNotificationRecipients[].idstringAlways
menu.internalOrderNotificationRecipients[].fullNamestringAlways
menu.collectionsobject[]Can be absent
menu.collections[].idstringAlways
menu.collections[].namestringAlways
menu.collections[].isHiddenbooleanAlways
menu.collections[].onlyFeaturedProductsbooleanAlways
menu.collections[].officialProductCategoryIdsenum[]
CAPSULESCLONESCONCENTRATESEDIBLESFLOWERMERCHOTHERPREROLLSTINCTURESTOPICALSVAPES
Always
menu.collections[].productCategoriesobject[]Always
menu.collections[].productCategories[].idstringAlways
menu.collections[].productCategories[].namestringAlways
menu.collections[].productSubcategoriesobject[]Always
menu.collections[].productSubcategories[].idstringAlways
menu.collections[].productSubcategories[].namestringAlways
menu.collections[].productGroupsobject[]Always
menu.collections[].productGroups[].idstringAlways
menu.collections[].productGroups[].namestringAlways
menu.collections[].brandsobject[]Always
menu.collections[].brands[].idstringAlways
menu.collections[].brands[].namestringAlways
menu.collections[].strainsobject[]Always
menu.collections[].strains[].idstringAlways
menu.collections[].strains[].namestringAlways
menu.collections[].strainTypesenum[]
HIGH_CBDHYBRIDINDICAINDICA_DOMINANTSATIVASATIVA_DOMINANT
Always
menu.collections[].thcRangeobjectCan be null
menu.collections[].thcRange.minstringCan be absent
menu.collections[].thcRange.maxstringCan be absent
menu.collections[].thcRange.unitstringAlways
menu.officialCollectionsobject[]Can be absent
menu.officialCollections[].officialCollectionNamestringAlways
menu.officialCollections[].customNamestringCan be null
What the AI reads

Gets one of your company's menus, inactive ones included, with everything distru-mutate-menu writes but the passcode. Not its products (distru-search-products menuIds, or distru-search-menu-products as buyers see them) or other menus (distru-search-menus). potencyOfficialProductCategoryIds are official category IDs, as category.officialProductCategory.id on distru-search-menu-products. Null if no menu matches the ID; a permission error if the caller can't view it.