Saved designs of Toki's storefront modules: create, edit and publish them, and open the theme editor to install them.
Each storefront module, such as the Wallet or Refer A Friend, can have several saved designs, which the Toki app calls variants. A design's id is the Design ID you enter in the module's block in your theme or checkout. Toki copies each saved design to your Shopify stores, and a block that points to an unpublished or deleted design shows one of the module's published designs instead, if there is one.
moduleSettingsLists your saved designs of Toki's storefront modules, oldest first.moduleSettingReturns the design with this id and moduleType.moduleSettingSchemaLists the fields you can set in a storefront design's settings object, using the Design editor's definitions.moduleSettingVersionStatusChecks whether a design is unchanged since you loaded it.designModuleAvailabilityReturns whether your plan includes the expanded wallet.moduleSettingInstallUrlReturns a Shopify admin link that opens the theme editor on your current theme with the module's Toki block added in a new section, or for wallet_v2 with the Toki Wallet app embed turned on.publishedModuleSettingsLists the modules that have at least one published design, each once.storefrontConfigReturns the configuration that Toki's storefront modules load on your store.moduleSettingCreateSaves a new design of a module and returns its id, the Design ID you enter in the module's block in your theme or checkout.moduleSettingUpdateReplaces a design's name, published state and settings; moduleType must be the design's module.moduleSettingDeleteDeletes a design and removes it from the Toki app's metafields on each of your Shopify stores, so blocks in your theme that point to its ID stop showing it.Lists your saved designs of Toki's storefront modules, oldest first. Pass moduleType to list one module's designs.
reverseBooleanReverse the sort order.
moduleTypeTokiModuleSettingModuleTypeA Toki storefront module. The modules on the Design page map to these values; the less obvious ones are wallet_v2 (Wallet), wallet_v2_expanded (the Expanded Wallet theme block), hero_section (Intro Header), tiers_module (Memberships Module), customers_feedback_section (Two Block Explainer), customer_account_profile (Shopify profile layout, configured by a separate editor), zero_party_data_module (Customer Account), token_spending_global (Spending Global) and wishlist_list (Wishlist Block). claim is deprecated.
walletwallet_v2wallet_v2_expandedvoting_activitieschallenges_moduleactivitiescreateAccountlinearTierstiersreferAFriendredemptiondiscountingzero_party_data_modulecustomer_account_profileyour_status_blockhow_it_workshero_sectiontext_with_image_sectionlogo_list_sectionfaq_sectioncustomers_feedback_sectionget_started_sectionpostPurchaseairdropsclaimgatingtoken_spending_globaltiers_moduleproduct_redemptioncheckout_ui_spending_componentcheckout_ui_free_giftsform_modulenewsletter_sign_upwishlist_buttonwishlist_listpaid_membership_buttonscheckout_ui_paid_membership_opt_out_componentpos_redemptiongift_card_cart_buttonreviewsreviews_carouselapple_pass_download_pageapple_order_download_pagecustomA page of TokiModuleSetting in nodes, with pageInfo for the next page. Each item:
A saved design of one of Toki's storefront modules, called a variant in the Toki app.
idID!The Design ID you enter in the module's block in your theme or checkout. "" for the empty design moduleSetting returns when nothing matches.
moduleTypeString!The module the design is for, such as wallet_v2.
nameString!The design's name. moduleSettings lists unnamed designs as Variant 1, Variant 2 and so on, numbered by creation order among the module's designs; moduleSetting returns an empty name for them.
isPublishedBoolean!Whether the design is live. A storefront block that points to an unpublished design shows one of the module's published designs instead, if there is one.
styleVersionString!The style generation, v1 or v2; the Wallet picks its stylesheet by it.
lastModifiedFloatWhen the design was last saved, in milliseconds since the Unix epoch; pass it to moduleSettingVersionStatus to detect newer saves. null for the empty design moduleSetting returns when nothing matches.
settingsTokiJSON!The design's settings as a JSON object keyed by setting ID. Settings the design doesn't set show their default values. For customer_account_profile, this is a versioned object with version: 1 and an ordered blocks array; each block has a unique id, component, width (auto, 4, 6, 8 or 12) and blockSettings. auto sizes the column to its content and occupies a 4-column slot when wrapping blocks into rows.
dataTokiJSON!The design editor's sections and setting definitions, filled in with this design's values, as JSON.
Returns the design with this id and moduleType. Without id, or when there is no such design, returns an empty design with id ""; without id, its data holds the module's defaults, ready for a new design.
idIDThe design's ID. Omit it to start a new design.
moduleTypeTokiModuleSettingModuleType!RequiredA Toki storefront module. The modules on the Design page map to these values; the less obvious ones are wallet_v2 (Wallet), wallet_v2_expanded (the Expanded Wallet theme block), hero_section (Intro Header), tiers_module (Memberships Module), customers_feedback_section (Two Block Explainer), customer_account_profile (Shopify profile layout, configured by a separate editor), zero_party_data_module (Customer Account), token_spending_global (Spending Global) and wishlist_list (Wishlist Block). claim is deprecated.
walletwallet_v2wallet_v2_expandedvoting_activitieschallenges_moduleactivitiescreateAccountlinearTierstiersreferAFriendredemptiondiscountingzero_party_data_modulecustomer_account_profileyour_status_blockhow_it_workshero_sectiontext_with_image_sectionlogo_list_sectionfaq_sectioncustomers_feedback_sectionget_started_sectionpostPurchaseairdropsclaimgatingtoken_spending_globaltiers_moduleproduct_redemptioncheckout_ui_spending_componentcheckout_ui_free_giftsform_modulenewsletter_sign_upwishlist_buttonwishlist_listpaid_membership_buttonscheckout_ui_paid_membership_opt_out_componentpos_redemptiongift_card_cart_buttonreviewsreviews_carouselapple_pass_download_pageapple_order_download_pagecustomA saved design of one of Toki's storefront modules, called a variant in the Toki app.
idID!The Design ID you enter in the module's block in your theme or checkout. "" for the empty design moduleSetting returns when nothing matches.
moduleTypeString!The module the design is for, such as wallet_v2.
nameString!The design's name. moduleSettings lists unnamed designs as Variant 1, Variant 2 and so on, numbered by creation order among the module's designs; moduleSetting returns an empty name for them.
isPublishedBoolean!Whether the design is live. A storefront block that points to an unpublished design shows one of the module's published designs instead, if there is one.
styleVersionString!The style generation, v1 or v2; the Wallet picks its stylesheet by it.
lastModifiedFloatWhen the design was last saved, in milliseconds since the Unix epoch; pass it to moduleSettingVersionStatus to detect newer saves. null for the empty design moduleSetting returns when nothing matches.
settingsTokiJSON!The design's settings as a JSON object keyed by setting ID. Settings the design doesn't set show their default values. For customer_account_profile, this is a versioned object with version: 1 and an ordered blocks array; each block has a unique id, component, width (auto, 4, 6, 8 or 12) and blockSettings. auto sizes the column to its content and occupies a 4-column slot when wrapping blocks into rows.
dataTokiJSON!The design editor's sections and setting definitions, filled in with this design's values, as JSON.
Lists the fields you can set in a storefront design's settings object, using the Design editor's definitions. Includes defaults, static options and visibility rules. Use path to inspect one field or block or query to search by key or label. Returns an empty list for modules with no shared editor definitions, including the separate customer_account_profile editor.
moduleTypeTokiModuleSettingModuleType!RequiredA Toki storefront module. The modules on the Design page map to these values; the less obvious ones are wallet_v2 (Wallet), wallet_v2_expanded (the Expanded Wallet theme block), hero_section (Intro Header), tiers_module (Memberships Module), customers_feedback_section (Two Block Explainer), customer_account_profile (Shopify profile layout, configured by a separate editor), zero_party_data_module (Customer Account), token_spending_global (Spending Global) and wishlist_list (Wishlist Block). claim is deprecated.
walletwallet_v2wallet_v2_expandedvoting_activitieschallenges_moduleactivitiescreateAccountlinearTierstiersreferAFriendredemptiondiscountingzero_party_data_modulecustomer_account_profileyour_status_blockhow_it_workshero_sectiontext_with_image_sectionlogo_list_sectionfaq_sectioncustomers_feedback_sectionget_started_sectionpostPurchaseairdropsclaimgatingtoken_spending_globaltiers_moduleproduct_redemptioncheckout_ui_spending_componentcheckout_ui_free_giftsform_modulenewsletter_sign_upwishlist_buttonwishlist_listpaid_membership_buttonscheckout_ui_paid_membership_opt_out_componentpos_redemptiongift_card_cart_buttonreviewsreviews_carouselapple_pass_download_pageapple_order_download_pagecustompathStringThe exact setting path. For a block list, also returns its children.
queryStringCase-insensitive text in a key, label, section or description.
A setting declared by the Design editor, with its path and editing constraints.
pathString!Path in settings. For example, cards[].title is the title of each card.
keyString!The key to write in the containing settings object.
sectionString!The section's English label from the Design editor.
controlString!The editor control. For example, editor stores a string, range stores a number, checkbox stores a boolean, and blocks stores a list of objects.
labelString!The setting's English label, or its translation key when no text is available.
descriptionStringThe setting's help text from the editor, when provided.
defaultValueTokiJSONThe scalar or list default declared for the setting. Null means the field has no explicit default.
translatableBoolean!Whether the editor supports different values by language.
invertedBoolean!Whether the editor displays the opposite of the stored boolean.
minFloatThe minimum value of a range control.
maxFloatThe maximum value of a range control.
unitStringThe unit shown by the editor, such as px.
maxLengthIntThe maximum number of characters in a text control.
maxItemsIntThe maximum number of blocks allowed by the editor.
acceptedMimeTypes[String!]!Explicit MIME types accepted by the image picker, if specified.
options[TokiModuleSettingSchemaPayloadOptions!]!Static choices declared for this control.
optionSourceStringThe editor's dynamic option source. For example, ProductsOptions refers to shop product IDs that can be looked up through products.
conditions[TokiModuleSettingSchemaPayloadConditions!]!Editor visibility rules on this field, including rules inherited from its section and parent blocks.
availableWhenTokiModuleSettingSchemaPayloadAvailableWhenAn availability rule for a Design editor control.
Checks whether a design is unchanged since you loaded it. moduleSettingUpdate doesn't check this itself, so call it first to avoid overwriting someone else's changes.
idID!RequiredA design's ID: the Design ID you enter in the module's block in your theme or checkout.
lastModifiedFloat!RequiredThe design's lastModified when you loaded it.
isCurrentBoolean!false when the design has been saved again since, or no longer exists.
Returns whether your plan includes the expanded wallet. Only wallet_v2 is checked: for every other module type, allowed is false whatever your plan.
moduleTypeTokiModuleSettingModuleType!RequiredA Toki storefront module. The modules on the Design page map to these values; the less obvious ones are wallet_v2 (Wallet), wallet_v2_expanded (the Expanded Wallet theme block), hero_section (Intro Header), tiers_module (Memberships Module), customers_feedback_section (Two Block Explainer), customer_account_profile (Shopify profile layout, configured by a separate editor), zero_party_data_module (Customer Account), token_spending_global (Spending Global) and wishlist_list (Wishlist Block). claim is deprecated.
walletwallet_v2wallet_v2_expandedvoting_activitieschallenges_moduleactivitiescreateAccountlinearTierstiersreferAFriendredemptiondiscountingzero_party_data_modulecustomer_account_profileyour_status_blockhow_it_workshero_sectiontext_with_image_sectionlogo_list_sectionfaq_sectioncustomers_feedback_sectionget_started_sectionpostPurchaseairdropsclaimgatingtoken_spending_globaltiers_moduleproduct_redemptioncheckout_ui_spending_componentcheckout_ui_free_giftsform_modulenewsletter_sign_upwishlist_buttonwishlist_listpaid_membership_buttonscheckout_ui_paid_membership_opt_out_componentpos_redemptiongift_card_cart_buttonreviewsreviews_carouselapple_pass_download_pageapple_order_download_pagecustomallowedBoolean!true when moduleType is wallet_v2 and your plan includes the expanded wallet.
Returns a Shopify admin link that opens the theme editor on your current theme with the module's Toki block added in a new section, or for wallet_v2 with the Toki Wallet app embed turned on. It opens the product page for wishlist_button, paid_membership_buttons, token_spending_global, redemption and reviews, and the home page otherwise. Checkout, POS and other modules without a Toki theme block get no usable link.
moduleTypeTokiModuleSettingModuleType!RequiredA Toki storefront module. The modules on the Design page map to these values; the less obvious ones are wallet_v2 (Wallet), wallet_v2_expanded (the Expanded Wallet theme block), hero_section (Intro Header), tiers_module (Memberships Module), customers_feedback_section (Two Block Explainer), customer_account_profile (Shopify profile layout, configured by a separate editor), zero_party_data_module (Customer Account), token_spending_global (Spending Global) and wishlist_list (Wishlist Block). claim is deprecated.
walletwallet_v2wallet_v2_expandedvoting_activitieschallenges_moduleactivitiescreateAccountlinearTierstiersreferAFriendredemptiondiscountingzero_party_data_modulecustomer_account_profileyour_status_blockhow_it_workshero_sectiontext_with_image_sectionlogo_list_sectionfaq_sectioncustomers_feedback_sectionget_started_sectionpostPurchaseairdropsclaimgatingtoken_spending_globaltiers_moduleproduct_redemptioncheckout_ui_spending_componentcheckout_ui_free_giftsform_modulenewsletter_sign_upwishlist_buttonwishlist_listpaid_membership_buttonscheckout_ui_paid_membership_opt_out_componentpos_redemptiongift_card_cart_buttonreviewsreviews_carouselapple_pass_download_pageapple_order_download_pagecustomidIDNot used: the link is the same for every design of the module. Enter the design's id in the block's Design ID field yourself.
urlString!The link to the theme editor in your Shopify admin.
Lists the modules that have at least one published design, each once.
A module with at least one published design.
typeString!The module, such as wallet_v2.
Returns the configuration that Toki's storefront modules load on your store.
configTokiJSON!As JSON: API addresses, the storefront script version, your global module settings (language, currency format, automatic sign-in and more), and whether a Multipass token is saved and the customer authentication provider is ACTIVE. Includes referralQueryParams: the unique referral URL parameter names from active refer-a-friend activities, with tkr first.
Saves a new design of a module and returns its id, the Design ID you enter in the module's block in your theme or checkout. In the background, Toki then copies the design to the Toki app's metafields on each of your Shopify stores, where its theme blocks read it. Your plan must include the module; wallet_v2 needs no plan feature. Customer account profile layouts are stored without metafield synchronization.
moduleTypeTokiModuleSettingModuleType!RequiredA Toki storefront module. The modules on the Design page map to these values; the less obvious ones are wallet_v2 (Wallet), wallet_v2_expanded (the Expanded Wallet theme block), hero_section (Intro Header), tiers_module (Memberships Module), customers_feedback_section (Two Block Explainer), customer_account_profile (Shopify profile layout, configured by a separate editor), zero_party_data_module (Customer Account), token_spending_global (Spending Global) and wishlist_list (Wishlist Block). claim is deprecated.
walletwallet_v2wallet_v2_expandedvoting_activitieschallenges_moduleactivitiescreateAccountlinearTierstiersreferAFriendredemptiondiscountingzero_party_data_modulecustomer_account_profileyour_status_blockhow_it_workshero_sectiontext_with_image_sectionlogo_list_sectionfaq_sectioncustomers_feedback_sectionget_started_sectionpostPurchaseairdropsclaimgatingtoken_spending_globaltiers_moduleproduct_redemptioncheckout_ui_spending_componentcheckout_ui_free_giftsform_modulenewsletter_sign_upwishlist_buttonwishlist_listpaid_membership_buttonscheckout_ui_paid_membership_opt_out_componentpos_redemptiongift_card_cart_buttonreviewsreviews_carouselapple_pass_download_pageapple_order_download_pagecustomnameString!RequiredThe design's name. Leave it empty to have it listed as Variant N.
styleVersionStringThe style generation the Wallet loads, v1 or v2. Omit it to keep the current value.
isPublishedBoolean!Requiredtrue to publish the design, false to keep it as a draft. Publishing doesn't unpublish the module's other designs.
settingsTokiJSON!RequiredThe design's settings as a JSON object keyed by setting ID, like settings on the design; settings you leave out use their defaults. Use moduleSettingSchema to discover a module's setting keys and options. For wallet_v2 and wallet_v2_expanded, loginAuthorizationTypes can include customer-sso only while the customer authentication provider is ACTIVE, and while it is READY or ACTIVE it must keep a method other than shop, log-in-with-shop and customer-sso. For customer_account_profile, supply version: 1 and up to 30 blocks, each with a unique id, component, width (auto, 4, 6, 8 or 12) and blockSettings. auto sizes the column to its content and occupies a 4-column slot when wrapping blocks into rows. Image URLs must use HTTPS. Profile designs are read by the customer-account API using the published Design ID, not Shopify metafields.
idID!A design's ID: the Design ID you enter in the module's block in your theme or checkout.
Replaces a design's name, published state and settings; moduleType must be the design's module. Like moduleSettingCreate, it copies the design to your Shopify stores in the background and requires a plan that includes the module. Customer account profile layouts are stored without metafield synchronization.
moduleTypeTokiModuleSettingModuleType!RequiredA Toki storefront module. The modules on the Design page map to these values; the less obvious ones are wallet_v2 (Wallet), wallet_v2_expanded (the Expanded Wallet theme block), hero_section (Intro Header), tiers_module (Memberships Module), customers_feedback_section (Two Block Explainer), customer_account_profile (Shopify profile layout, configured by a separate editor), zero_party_data_module (Customer Account), token_spending_global (Spending Global) and wishlist_list (Wishlist Block). claim is deprecated.
walletwallet_v2wallet_v2_expandedvoting_activitieschallenges_moduleactivitiescreateAccountlinearTierstiersreferAFriendredemptiondiscountingzero_party_data_modulecustomer_account_profileyour_status_blockhow_it_workshero_sectiontext_with_image_sectionlogo_list_sectionfaq_sectioncustomers_feedback_sectionget_started_sectionpostPurchaseairdropsclaimgatingtoken_spending_globaltiers_moduleproduct_redemptioncheckout_ui_spending_componentcheckout_ui_free_giftsform_modulenewsletter_sign_upwishlist_buttonwishlist_listpaid_membership_buttonscheckout_ui_paid_membership_opt_out_componentpos_redemptiongift_card_cart_buttonreviewsreviews_carouselapple_pass_download_pageapple_order_download_pagecustomnameString!RequiredThe design's name. Leave it empty to have it listed as Variant N.
styleVersionStringThe style generation the Wallet loads, v1 or v2. Omit it to keep the current value.
isPublishedBoolean!Requiredtrue to publish the design, false to keep it as a draft. Publishing doesn't unpublish the module's other designs.
settingsTokiJSON!RequiredThe design's settings as a JSON object keyed by setting ID, like settings on the design; settings you leave out use their defaults. Use moduleSettingSchema to discover a module's setting keys and options. For wallet_v2 and wallet_v2_expanded, loginAuthorizationTypes can include customer-sso only while the customer authentication provider is ACTIVE, and while it is READY or ACTIVE it must keep a method other than shop, log-in-with-shop and customer-sso. For customer_account_profile, supply version: 1 and up to 30 blocks, each with a unique id, component, width (auto, 4, 6, 8 or 12) and blockSettings. auto sizes the column to its content and occupies a 4-column slot when wrapping blocks into rows. Image URLs must use HTTPS. Profile designs are read by the customer-account API using the published Design ID, not Shopify metafields.
idID!RequiredA design's ID: the Design ID you enter in the module's block in your theme or checkout.
idID!A design's ID: the Design ID you enter in the module's block in your theme or checkout.
Deletes a design and removes it from the Toki app's metafields on each of your Shopify stores, so blocks in your theme that point to its ID stop showing it.
idID!RequiredA design's ID: the Design ID you enter in the module's block in your theme or checkout.
true when the change was made. Anything that stops it comes back as an error.