Commerce
setShopFollowUp
Set Shop Follow-up
Write ONE shop's customer follow-up email: turn it on or off, set the delay in hours after pickup or delivery, write the subject and body, paste an https Google review link, and name the button.
Arguments
appstringoptionalStorefront app id or slug (see listStudioApps, or the shops listed by getShopNotificationSettings) to target ONE storefront. Omit for orders taken outside a storefront (POS, back-office, payment links).bodystringoptionalEmail body. Placeholders: {{firstName}}, {{shopName}}, {{orderNumber}}.buttonLabelstringoptionalButton label. Default is "Leave a review".delayHoursintegeroptionalHours after pickup or delivery to wait. Default 24.enabledbooleanoptionaltrue to send the follow-up, false to leave it off.reviewUrlstring | nulloptionalhttps Google review link. Null or omit to clear.spacestringoptionalSpace id or slug (see listPageSpaces) for a Space-owned shop. Omit for your personal shop.subjectstringoptionalEmail subject. Placeholders: {{firstName}}, {{shopName}}, {{orderNumber}}.
Returns
The registry does not declare a return shape.
Declared limits
delayHours: minimum 1delayHours: maximum 168
Ask for it
The Cloud routes these requests to this verb.
- send a review request after orders
- email customers a day after pickup
- ask for a google review
- follow up with customers after they get their order
Pair it with
The verbs that finish the job.