Commerce
setShopRules
Set Shop Rules
Set a shop's house rules.
Arguments
spacestringoptionalSpace id or slug for a Space-owned shop. Omit for your personal shop.modestringoptionalAllowed values: in_stock, made_to_order, hybrid.zeroInventoryBehaviorstringoptionalAllowed values: sold_out, lead_time.leadTimeobjectoptionalNo description is declared in the tool schema.lowStockThresholdintegeroptionalNo description is declared in the tool schema.leadTimeRulesobject[]optionalNo description is declared in the tool schema.defaultModifierGroupIdsstring[]optionalNo description is declared in the tool schema.outboundIdentitystringoptionalWho staff messages to customers come from by default: 'shop' (the shop's verified address and Cloud Number) or 'user' (the sending teammate's own verified address). The sender can still override per send.timeZonestring | nulloptionalIANA time zone for every order, inquiry, receipt and slot this shop shows, such as America/New_York. Pass null to fall back to locations.
Returns
The registry does not declare a return shape.
Declared limits
lowStockThreshold: minimum 0lowStockThreshold: maximum 9007199254740991leadTimeRules: maximum items 25defaultModifierGroupIds: maximum items 5
Ask for it
The Cloud routes these requests to this verb.
- make every cake seven days
- keep selling when stock is zero
- attach Packaging to new products
- send our texts as the bakery not as me
Pair it with
The verbs that finish the job.