Program-wide settings, languages, translations, purchase rules and product recommendations.
Most settings apply to all your stores; email settings, currency, translations and the exclusive products validation ID belong to the current store. Several updates replace a saved list or object with what you send, so read the current settings first and send them back complete.
loyaltySettingsReturns your loyalty program settings.loyaltySettingsUpdateUpdates your loyalty program settings and returns them.languageSettingsReturns how Toki picks the language of its storefront modules and wallet, as set on the Design page.languageSettingsUpdateReplaces your language settings for all your stores, so fields you leave out are cleared.translationsReturns every text Toki shows members in the current store's storefront modules and wallet, in each supported language.translationsUpdateSaves your own wording for the current store and returns all texts.cartValidationRulesReturns your cart validation rules for all your stores, and the Shopify checkout validation that applies them in each store.cartValidationRulesUpdateSaves cart validation rules and sends them to Shopify, where each store's checkout validation enforces them.exclusiveProductRulesLists exclusive product rules in creation order.exclusiveProductsReturns your exclusive product rules, which apply to all your stores, and the validation ID saved for the current store.exclusiveProductsUpdateReplaces your exclusive product rules with rules.productRecommendationRulesLists your product recommendation rules, most recently updated first.productRecommendationRuleReturns a product recommendation rule, or null if you have none with this ID.productRecommendationRuleUpsertCreates a product recommendation rule, or replaces the one with the same id.productRecommendationRuleDeleteDeletes a product recommendation rule.walletOrderSettingsReturns Apple Wallet order tracking settings for the current store, including whether the server is configured to issue orders, the merchant name and the store website URL.walletOrderSettingsUpdateUpdates Apple Wallet order tracking settings for the current store and returns the saved settings.Returns your loyalty program settings. emailSettings and currency belong to the current store; the other groups apply to all your stores.
Your loyalty program settings, in the groups that loyaltySettingsUpdate accepts.
loyaltySettingsTokiLoyaltySettings!Settings shared by all your stores, such as your default store credit, redemption rules and options, and the discount codes Toki creates.
emailSettingsTokiLoyaltySettingsEmailSettings!The sender, subjects and templates of the emails Toki sends members from the current store, with Toki's defaults where you haven't set your own.
segmentsSettingsTokiSegmentsSettings!How Toki updates members' segments when orders come in.
paidMembershipSettingsTokiPaidMembershipSettings!Paid membership settings: prorations, and the checkout validation for paid memberships in each store.
currencyTokiLoyaltySettingsCurrency!The current store's currency.
Updates your loyalty program settings and returns them. Groups you leave out don't change and most fields you omit keep their saved values. Omitted redemptionRules and redemptionOptionsSettings stay unchanged. Supplied redemptionRules and redemptionOptionsSettings.options lists replace their saved lists; omitted options keeps saved options. An empty or null options list clears them. Send every rule and option you want to keep in a supplied list, in full (to change one option, use redemptionOptionUpdate). emailSettings and currency apply to the current store only, and changes that Shopify needs, such as gift card restrictions, reach your stores in the background.
loyaltySettingsTokiLoyaltySettingsInputSettings shared by all your stores. Omitted redemptionRules and redemptionOptionsSettings keep their saved values. Supplied redemptionRules and redemptionOptionsSettings.options lists replace their saved lists. Leaving options out keeps the saved options, so you can change isCustomAmountEnabled on its own.
emailSettingsTokiEmailSettingsInputThe sender, subjects and templates of the emails Toki sends members from the current store. Fields you leave out keep their saved values, and an empty string brings back Toki's default.
currencyTokiCurrencySettingsInputThe current store's currency in Toki.
segmentsSettingsTokiSegmentsSettingsInputHow Toki updates members' segments when orders come in.
paidMembershipSettingsTokiPaidMembershipSettingsInputPaid membership settings: prorations, and the checkout validation for paid memberships in each store.
Your loyalty program settings, in the groups that loyaltySettingsUpdate accepts.
loyaltySettingsTokiLoyaltySettings!Settings shared by all your stores, such as your default store credit, redemption rules and options, and the discount codes Toki creates.
emailSettingsTokiLoyaltySettingsEmailSettings!The sender, subjects and templates of the emails Toki sends members from the current store, with Toki's defaults where you haven't set your own.
segmentsSettingsTokiSegmentsSettings!How Toki updates members' segments when orders come in.
paidMembershipSettingsTokiPaidMembershipSettings!Paid membership settings: prorations, and the checkout validation for paid memberships in each store.
currencyTokiLoyaltySettingsCurrency!The current store's currency.
Returns how Toki picks the language of its storefront modules and wallet, as set on the Design page. The settings apply to all your stores.
How Toki picks the language of its storefront modules and wallet, for all your stores.
languageString!auto follows each visitor's browser language and falls back to English. page-based tests the pageBase…Regex patterns against the full page URL in the order listed below, and uses the first language that matches, or defaultLng. Any other value is the language every visitor sees: en, fr, es, de, it, nl, ro, pl, da, sv, no, fi, pt, ca, cs, sk, sl, hr, lt, et, lv, hu, zh-TW (Traditional Chinese), zh-CN (Simplified Chinese), ja or ko.
defaultLngStringWith page-based, the language for pages that match no pattern.
pageBaseEnRegexStringRegular expression for the URLs of your English pages.
pageBaseFrRegexStringRegular expression for the URLs of your French pages.
pageBaseESRegexStringRegular expression for the URLs of your Spanish pages.
pageBaseDeRegexStringRegular expression for the URLs of your German pages.
pageBaseItRegexStringRegular expression for the URLs of your Italian pages.
pageBaseNlRegexStringRegular expression for the URLs of your Dutch pages.
pageBaseRoRegexStringRegular expression for the URLs of your Romanian pages.
pageBasePlRegexStringRegular expression for the URLs of your Polish pages.
pageBaseDaRegexStringRegular expression for the URLs of your Danish pages.
pageBaseSvRegexStringRegular expression for the URLs of your Swedish pages.
pageBaseNoRegexStringRegular expression for the URLs of your Norwegian pages.
pageBaseFiRegexStringRegular expression for the URLs of your Finnish pages.
pageBasePtRegexStringRegular expression for the URLs of your Portuguese pages.
pageBaseCaRegexStringRegular expression for the URLs of your Catalan pages.
pageBaseCsRegexStringRegular expression for the URLs of your Czech pages.
pageBaseSkRegexStringRegular expression for the URLs of your Slovak pages.
pageBaseSlRegexStringRegular expression for the URLs of your Slovenian pages.
pageBaseHrRegexStringRegular expression for the URLs of your Croatian pages.
pageBaseLtRegexStringRegular expression for the URLs of your Lithuanian pages.
pageBaseEtRegexStringRegular expression for the URLs of your Estonian pages.
pageBaseLvRegexStringRegular expression for the URLs of your Latvian pages.
pageBaseHuRegexStringRegular expression for the URLs of your Hungarian pages.
pageBaseZhTwRegexStringRegular expression for the URLs of your Traditional Chinese pages.
pageBaseZhCnRegexStringRegular expression for the URLs of your Simplified Chinese pages.
pageBaseJaRegexStringRegular expression for the URLs of your Japanese pages.
pageBaseKoRegexStringRegular expression for the URLs of your Korean pages.
Replaces your language settings for all your stores, so fields you leave out are cleared. Storefront modules use the new settings from their next page load (a browser can keep the old ones for up to five minutes), and Toki rewrites the module designs stored in each Shopify store with the new language.
How Toki picks the language of its storefront modules and wallet, for all your stores.
languageString!Requiredauto follows each visitor's browser language and falls back to English. page-based tests the pageBase…Regex patterns against the full page URL in the order listed below, and uses the first language that matches, or defaultLng. Any other value is the language every visitor sees: en, fr, es, de, it, nl, ro, pl, da, sv, no, fi, pt, ca, cs, sk, sl, hr, lt, et, lv, hu, zh-TW (Traditional Chinese), zh-CN (Simplified Chinese), ja or ko.
defaultLngStringWith page-based, the language for pages that match no pattern.
pageBaseEnRegexStringRegular expression for the URLs of your English pages.
pageBaseFrRegexStringRegular expression for the URLs of your French pages.
pageBaseESRegexStringRegular expression for the URLs of your Spanish pages.
pageBaseDeRegexStringRegular expression for the URLs of your German pages.
pageBaseItRegexStringRegular expression for the URLs of your Italian pages.
pageBaseNlRegexStringRegular expression for the URLs of your Dutch pages.
pageBaseRoRegexStringRegular expression for the URLs of your Romanian pages.
pageBasePlRegexStringRegular expression for the URLs of your Polish pages.
pageBaseDaRegexStringRegular expression for the URLs of your Danish pages.
pageBaseSvRegexStringRegular expression for the URLs of your Swedish pages.
pageBaseNoRegexStringRegular expression for the URLs of your Norwegian pages.
pageBaseFiRegexStringRegular expression for the URLs of your Finnish pages.
pageBasePtRegexStringRegular expression for the URLs of your Portuguese pages.
pageBaseCaRegexStringRegular expression for the URLs of your Catalan pages.
pageBaseCsRegexStringRegular expression for the URLs of your Czech pages.
pageBaseSkRegexStringRegular expression for the URLs of your Slovak pages.
pageBaseSlRegexStringRegular expression for the URLs of your Slovenian pages.
pageBaseHrRegexStringRegular expression for the URLs of your Croatian pages.
pageBaseLtRegexStringRegular expression for the URLs of your Lithuanian pages.
pageBaseEtRegexStringRegular expression for the URLs of your Estonian pages.
pageBaseLvRegexStringRegular expression for the URLs of your Latvian pages.
pageBaseHuRegexStringRegular expression for the URLs of your Hungarian pages.
pageBaseZhTwRegexStringRegular expression for the URLs of your Traditional Chinese pages.
pageBaseZhCnRegexStringRegular expression for the URLs of your Simplified Chinese pages.
pageBaseJaRegexStringRegular expression for the URLs of your Japanese pages.
pageBaseKoRegexStringRegular expression for the URLs of your Korean pages.
How Toki picks the language of its storefront modules and wallet, for all your stores.
languageString!auto follows each visitor's browser language and falls back to English. page-based tests the pageBase…Regex patterns against the full page URL in the order listed below, and uses the first language that matches, or defaultLng. Any other value is the language every visitor sees: en, fr, es, de, it, nl, ro, pl, da, sv, no, fi, pt, ca, cs, sk, sl, hr, lt, et, lv, hu, zh-TW (Traditional Chinese), zh-CN (Simplified Chinese), ja or ko.
defaultLngStringWith page-based, the language for pages that match no pattern.
pageBaseEnRegexStringRegular expression for the URLs of your English pages.
pageBaseFrRegexStringRegular expression for the URLs of your French pages.
pageBaseESRegexStringRegular expression for the URLs of your Spanish pages.
pageBaseDeRegexStringRegular expression for the URLs of your German pages.
pageBaseItRegexStringRegular expression for the URLs of your Italian pages.
pageBaseNlRegexStringRegular expression for the URLs of your Dutch pages.
pageBaseRoRegexStringRegular expression for the URLs of your Romanian pages.
pageBasePlRegexStringRegular expression for the URLs of your Polish pages.
pageBaseDaRegexStringRegular expression for the URLs of your Danish pages.
pageBaseSvRegexStringRegular expression for the URLs of your Swedish pages.
pageBaseNoRegexStringRegular expression for the URLs of your Norwegian pages.
pageBaseFiRegexStringRegular expression for the URLs of your Finnish pages.
pageBasePtRegexStringRegular expression for the URLs of your Portuguese pages.
pageBaseCaRegexStringRegular expression for the URLs of your Catalan pages.
pageBaseCsRegexStringRegular expression for the URLs of your Czech pages.
pageBaseSkRegexStringRegular expression for the URLs of your Slovak pages.
pageBaseSlRegexStringRegular expression for the URLs of your Slovenian pages.
pageBaseHrRegexStringRegular expression for the URLs of your Croatian pages.
pageBaseLtRegexStringRegular expression for the URLs of your Lithuanian pages.
pageBaseEtRegexStringRegular expression for the URLs of your Estonian pages.
pageBaseLvRegexStringRegular expression for the URLs of your Latvian pages.
pageBaseHuRegexStringRegular expression for the URLs of your Hungarian pages.
pageBaseZhTwRegexStringRegular expression for the URLs of your Traditional Chinese pages.
pageBaseZhCnRegexStringRegular expression for the URLs of your Simplified Chinese pages.
pageBaseJaRegexStringRegular expression for the URLs of your Japanese pages.
pageBaseKoRegexStringRegular expression for the URLs of your Korean pages.
Returns every text Toki shows members in the current store's storefront modules and wallet, in each supported language. Texts you haven't changed show Toki's own wording, or the English text where Toki has no translation.
The texts Toki shows members in the current store, in every supported language.
translationsTokiJSON!An object keyed by translation key. Each value maps language codes, such as en, to the text.
Saves your own wording for the current store and returns all texts. For each language you include, what you send replaces your saved texts in that language: texts you leave out go back to Toki's wording and keys of your own are removed, so send every text you changed. Storefront modules show the new texts from their next page load; a browser can keep the old ones for up to five minutes.
translations[TokiTranslationsUpdateTranslationsEntryInput!]!RequiredThe texts to save. Each entry's key is a translation key, such as createCoupon; a key that Toki doesn't have adds a text of your own.
The texts Toki shows members in the current store, in every supported language.
translationsTokiJSON!An object keyed by translation key. Each value maps language codes, such as en, to the text.
Returns your cart validation rules for all your stores, and the Shopify checkout validation that applies them in each store.
Your cart validation rules, and the Shopify checkout validation that applies them in each store.
functionIds[TokiCartValidationRulesFunctionIdsEntry!]!The checkout validation that applies the rules in each store. Each entry's key is a store's .myshopify.com domain, and its value is the numeric ID of the checkout rule in that store's Shopify admin that uses Toki's Cart Checkout Validation function.
rules[TokiCartValidationRule!]!Your rules in all your stores. Deleted rules aren't listed.
Saves cart validation rules and sends them to Shopify, where each store's checkout validation enforces them. Rules you leave out stay saved, but send every rule each time: Toki rebuilds each store's validation from the rules in the request. Send id: null to create a rule, or deletedAt set to an ISO 8601 timestamp to delete one; functionIds replaces your saved validation IDs, so leaving it out clears them.
functionIds[TokiCartValidationRulesUpdateFunctionIdsEntryInput!]The checkout validation that applies the rules in each store. Each entry's key is a store's .myshopify.com domain, and its value is the numeric ID of the checkout rule in that store's Shopify admin that uses Toki's Cart Checkout Validation function.
rules[TokiCartValidationRulesUpdateRulesInput!]!RequiredAll your rules, including the ones you don't change.
Your cart validation rules, and the Shopify checkout validation that applies them in each store.
functionIds[TokiCartValidationRulesFunctionIdsEntry!]!The checkout validation that applies the rules in each store. Each entry's key is a store's .myshopify.com domain, and its value is the numeric ID of the checkout rule in that store's Shopify admin that uses Toki's Cart Checkout Validation function.
rules[TokiCartValidationRule!]!Your rules in all your stores. Deleted rules aren't listed.
Lists exclusive product rules in creation order.
reverseBooleanReverse the sort order.
ids[String!]Only these rule IDs; an empty list returns none.
searchStringText in the collection ID or required segment name (case-insensitive).
A page of TokiExclusiveProductRule in nodes, with pageInfo for the next page. Each item:
A rule controlling access to a Shopify collection and how customers purchase its products.
idID!The rule's ID.
shopifyCollectionIdString!Numeric Shopify collection ID.
segmentIdIDRequired segment ID, or null when access is unrestricted.
purchaseStrategyTokiExclusiveProductsRulesPurchaseStrategy!How customers pay: money at the regular price, or points from a store credit balance in the wallet.
pointsmoneycompletionStrategyTokiExclusiveProductsRulesCompletionStrategy!How a points purchase completes: draft_order creates a draft order for the product, and checkout creates a cart with the product and a one-time discount for the member. Only checkout rules get the cart's free-product and quantity checks. Defaults to draft_order.
draft_ordercheckoutsegmentTokiSegmentRequired segment, or null when unrestricted or the segment was deleted.
Returns your exclusive product rules, which apply to all your stores, and the validation ID saved for the current store.
Your exclusive product rules, and the validation that checks carts against them in the current store.
validationFunctionIdString!The validation ID last saved for the current store, or an empty string if there is none.
rules[TokiExclusiveProductsRules!]!All your exclusive product rules.
Replaces your exclusive product rules with rules. Send each saved rule's exclusiveProductRuleId to update it in place; rules without IDs are created, and omitted rules are deleted. With validationFunctionId, Toki also sends the money and checkout rules to that validation in the current store's Shopify checkout; without it, Shopify keeps checking carts against the rules it last received. Requires a plan that includes Exclusive Products.
validationFunctionIdStringThe numeric ID of the checkout rule in the current store's Shopify admin that uses Toki's Exclusive Products Validation. If Shopify has no validation with this ID, the call fails with a BAD_USER_INPUT error before any rule changes are saved.
rules[TokiExclusiveProductsUpdateRulesInput!]!RequiredAll your rules. They replace the saved ones, so an empty list deletes them all.
Your exclusive product rules, and the validation that checks carts against them in the current store.
validationFunctionIdString!The validation ID last saved for the current store, or an empty string if there is none.
rules[TokiExclusiveProductsRules!]!All your exclusive product rules.
Lists your product recommendation rules, most recently updated first.
queryStringText in the rule's name (case-insensitive).
reverseBooleanReverse the sort order.
ids[String!]Restrict results to these rule IDs. An empty list returns none.
activeBooleanSelect active rules or drafts.
A page of TokiProductRecommendationRule in nodes, with pageInfo for the next page. Each item:
A rule that picks products to recommend in the wallet, from one or more strategies.
idID!The rule's ID. Pass it as id to productRecommendationRuleUpsert to replace the rule; a wallet Product Recommendations Block refers to the rule by it in its productRecommendationRuleId setting.
nameString!The rule's name in the Toki app.
merchantIdID!Your merchant ID, shown under Settings in the Toki app.
statusTokiProductRecommendationRuleStatus!Only active rules show products in the wallet; a draft rule is saved but shows none.
activedraftsettingsTokiProductRecommendationRuleSettings!The strategies that pick the products, in the order their products are listed, and whether to shuffle the combined list.
Returns a product recommendation rule, or null if you have none with this ID.
idID!RequiredA rule that picks products to recommend in the wallet, from one or more strategies.
idID!The rule's ID. Pass it as id to productRecommendationRuleUpsert to replace the rule; a wallet Product Recommendations Block refers to the rule by it in its productRecommendationRuleId setting.
nameString!The rule's name in the Toki app.
merchantIdID!Your merchant ID, shown under Settings in the Toki app.
statusTokiProductRecommendationRuleStatus!Only active rules show products in the wallet; a draft rule is saved but shows none.
activedraftsettingsTokiProductRecommendationRuleSettings!The strategies that pick the products, in the order their products are listed, and whether to shuffle the combined list.
Creates a product recommendation rule, or replaces the one with the same id. Use a new UUID as the id of a new rule or strategy; only active rules show products in the wallet. Toki recalculates best-selling and co-purchase products in the background after each save, and daily for active rules.
idString!RequiredThe rule's ID, a UUID.
nameString!RequiredThe rule's name in the Toki app. Can't be empty.
statusTokiProductRecommendationRuleStatus!RequiredOnly active rules show products in the wallet; a draft rule is saved but shows none.
activedraftsettingsTokiProductRecommendationRuleSettingsInput!RequiredHow a rule picks its products: its strategies, in the order their products are listed, and whether to shuffle the combined list.
A rule that picks products to recommend in the wallet, from one or more strategies.
idID!The rule's ID. Pass it as id to productRecommendationRuleUpsert to replace the rule; a wallet Product Recommendations Block refers to the rule by it in its productRecommendationRuleId setting.
nameString!The rule's name in the Toki app.
merchantIdID!Your merchant ID, shown under Settings in the Toki app.
statusTokiProductRecommendationRuleStatus!Only active rules show products in the wallet; a draft rule is saved but shows none.
activedraftsettingsTokiProductRecommendationRuleSettings!The strategies that pick the products, in the order their products are listed, and whether to shuffle the combined list.
Deletes a product recommendation rule. Wallet blocks that use it stop showing products.
idID!RequiredThe rule to delete.
true when the change was made. Anything that stops it comes back as an error.
Returns Apple Wallet order tracking settings for the current store, including whether the server is configured to issue orders, the merchant name and the store website URL.
appleWalletEnabledBoolean!logoFileIdStringsupportEmailString!supportPhoneString!supportURLString!businessChatURLString!appleWalletAvailableBoolean!merchantNameString!websiteURLString!Updates Apple Wallet order tracking settings for the current store and returns the saved settings. Optional fields you leave out keep their current values. When enabled and configured, Toki queues a refresh of wallet orders. Enabling with a logo requires a valid logo image of up to 5 MB.
appleWalletEnabledBoolean!RequiredlogoFileIdStringsupportEmailStringsupportPhoneStringsupportURLStringbusinessChatURLStringappleWalletEnabledBoolean!logoFileIdStringsupportEmailString!supportPhoneString!supportURLString!businessChatURLString!appleWalletAvailableBoolean!merchantNameString!websiteURLString!