Ways to earn, the rewards they issue, and what members can spend points on.
An activity is a way to earn, such as placing an order or referring a friend. Its reward rules decide what a member receives; memberships have reward rules too. Redemption options are the other side: what members can spend their points on.
activityCreateCreates an activity, including its reward rules and schedule.activityUpdateUpdates an owned activity and its rewards, preserving the existing versioning and integration side effects.activityUpdateStatusSets an owned activity to active or draft without resaving its configuration or reward rules.activityDeleteDeletes an owned activity using the same reward cleanup as the merchant editor.activityReferralCodesRefreshQueues referral code regeneration.activityReferralPropertiesRefreshQueues an update of referral properties for an owned activity.activityBirthdayRewardsSendProcesses birthday rewards for an owned activity, optionally for one merchant member.activityGroupsAvailable activity templates grouped by purpose, with integration and billing requirements.activityRewardPlaceholderFormats a reward preview without saving it.activitiesLists your activities, most recently updated first.activityReturns one of your activities by ID, or null if none matches.rewardsLists your reward rules: those of your activities and memberships, and your redemption options.rewardReturns a reward rule of one of your activities, memberships or redemption options by ID, or null if none matches.redemptionOptionCreateAdds a redemption option to the end of your list and returns it as saved.redemptionOptionUpdateReplaces a redemption option with redemptionOption, keeping its place in your list, and returns it as saved.blacklistRulesLists the current merchant's blacklist rules, newest first, optionally filtering by name.blacklistRuleReturns one blacklist rule belonging to the current merchant.blacklistRuleUpsertCreates or updates a blacklist rule for the current merchant and starts syncing blacklist metafields.blacklistRuleDeleteDeletes one blacklist rule belonging to the current merchant and starts syncing blacklist metafields.timersLists the current merchant's timers, most recently updated first, optionally filtering by name.timerReturns one timer belonging to the current merchant.timerUpsertCreates or updates a timer for the current merchant and schedules it, or cancels waiting jobs when inactive.timerDeleteDeletes one timer belonging to the current merchant and cancels its waiting jobs.timerExecutionsLists jobs for a timer belonging to the current merchant, newest first, with cursor pagination.Creates an activity, including its reward rules and schedule. Applies the merchant's billing limits.
configurationTokiActivityFormInput!RequiredAll of an activity's settings, as the activity editor in the Toki app shows them: status, approval, limits, display and schedule, with the type-specific rules and the reward rules under configuration.
Saved activity.
idString!ID of the saved activity.
Updates an owned activity and its rewards, preserving the existing versioning and integration side effects.
idString!RequiredID of an activity owned by this merchant.
configurationTokiActivityFormInput!RequiredAll of an activity's settings, as the activity editor in the Toki app shows them: status, approval, limits, display and schedule, with the type-specific rules and the reward rules under configuration.
Saved activity.
idString!ID of the saved activity.
Sets an owned activity to active or draft without resaving its configuration or reward rules. Activating a subscription continuation activity requires an order-count period.
idString!RequiredID of an activity owned by this merchant.
statusTokiActivityUpdateStatusStatus!Requiredactive makes the activity live for members, subject to its schedule. draft takes it offline.
activedraftUpdated activity status.
idString!ID of the saved activity.
statusTokiActivityUpdateStatusStatus!active makes the activity live for members, subject to its schedule. draft takes it offline.
activedraftDeletes an owned activity using the same reward cleanup as the merchant editor.
idString!RequiredID of an activity owned by this merchant.
true when the change was made. Anything that stops it comes back as an error.
Queues referral code regeneration. Fails if referral codes are not configured as discount codes.
idString!RequiredID of an activity owned by this merchant.
true when the change was made. Anything that stops it comes back as an error.
Queues an update of referral properties for an owned activity.
idString!RequiredID of an activity owned by this merchant.
true when the change was made. Anything that stops it comes back as an error.
Processes birthday rewards for an owned activity, optionally for one merchant member.
idString!RequiredID of an activity owned by this merchant.
onlyForUserIdStringRestrict processing to this member; omit for all eligible members.
true when the change was made. Anything that stops it comes back as an error.
Available activity templates grouped by purpose, with integration and billing requirements.
Activity template group.
titleString!Group title.
activities[TokiActivityGroupsPayloadActivities!]!Templates in this group.
Formats a reward preview without saving it. Accepts draft settings so incomplete editor values can be previewed.
rewardTokiRewardPreviewInput!RequiredReward settings for a description preview. Accepts settings from any activity or workflow, including absent or null referral settings on non-referral rewards. Never used to validate a saved rule.
typeTokiActivityRewardPlaceholderType!RequiredActivity type identifier, or workflow for a workflow reward.
SHOPIFY_PURCHASESHOPIFY_BASED_ON_SPENDKLAVIYO_SIGNUPTIKTOK_FOLLOWTIKTOK_LIKE_POSTINSTAGRAM_FOLLOWINSTAGRAM_LIKE_POSTINSTAGRAM_COMMENT_POSTINSTAGRAM_POST_UGCTWITTER_FOLLOWTWITTER_LIKE_POSTTWITTER_COMMENT_POSTTWITTER_RETWEETDISCORD_JOIN_CHANNELFACEBOOK_JOIN_GROUPFACEBOOK_LIKE_POSTFACEBOOK_COMMENT_POSTFACEBOOK_LIKE_PAGENON_INTEGRATION_REFERRALNON_INTEGRATION_CUSTOMTAPCART_ACTIONTIKTOK_VIDEO_CREATIONAIRDROP_CLAIMREFER_A_FRIENDREFER_A_FRIEND_TO_COMPLETE_AN_ACTIVITYLINK_CLICKSSHARE_PURCHASE_ON_SOCIALCOLLECT_ZERO_PARTY_DATAJOIN_REWARDS_PROGRAMPICTURE_SUBMISSIONSHARE_WITH_FRIENDSSUBSCRIPTION_SIGN_UPSUBSCRIPTION_CONTINUATIONSUBSCRIPTION_CHARGEVOTINGQUIZDOWNLOAD_PASSPOSTSCRIPT_SMS_SIGN_UPBIRTHDAYLOYALTY_ANNIVERSARYCHALLENGENEWSLETTER_SIGN_UPJUDGE_ME_CREATE_REVIEWREVIEWSACTION_LOOX_REVIEWSACTION_OKENDOACTION_REVIEWS_IOACTION_STAMPEDACTION_YOTPOACTION_FAIRINGACTION_GORGIASSIGN_IN_REWARDSSCAN_QR_CODETAGGUN_SEND_RECEIPTYOUTUBE_SUBSCRIBEPINTEREST_FOLLOWGREENSPARK_IMPACTSPIN_WHEELLOTTERYCHARITYREDEEM_CODEworkflowLists your activities, most recently updated first. Select configuration for an activity's full settings, or activityCompletions for its completions.
queryStringText in the activity's name or type, ignoring case.
reverseBooleanReverse the sort order.
ids[String!]Restrict results to these activity IDs. An empty list returns none.
nameStringCase-insensitive substring matched only against the activity name.
types[TokiActivitiesTypes!]Only activities of these types. An empty list doesn't filter.
SHOPIFY_PURCHASESHOPIFY_BASED_ON_SPENDKLAVIYO_SIGNUPTIKTOK_FOLLOWTIKTOK_LIKE_POSTINSTAGRAM_FOLLOWINSTAGRAM_LIKE_POSTINSTAGRAM_COMMENT_POSTINSTAGRAM_POST_UGCTWITTER_FOLLOWTWITTER_LIKE_POSTTWITTER_COMMENT_POSTTWITTER_RETWEETDISCORD_JOIN_CHANNELFACEBOOK_JOIN_GROUPFACEBOOK_LIKE_POSTFACEBOOK_COMMENT_POSTFACEBOOK_LIKE_PAGENON_INTEGRATION_REFERRALNON_INTEGRATION_CUSTOMTAPCART_ACTIONTIKTOK_VIDEO_CREATIONAIRDROP_CLAIMREFER_A_FRIENDREFER_A_FRIEND_TO_COMPLETE_AN_ACTIVITYLINK_CLICKSSHARE_PURCHASE_ON_SOCIALCOLLECT_ZERO_PARTY_DATAJOIN_REWARDS_PROGRAMPICTURE_SUBMISSIONSHARE_WITH_FRIENDSSUBSCRIPTION_SIGN_UPSUBSCRIPTION_CONTINUATIONSUBSCRIPTION_CHARGEVOTINGQUIZDOWNLOAD_PASSPOSTSCRIPT_SMS_SIGN_UPBIRTHDAYLOYALTY_ANNIVERSARYCHALLENGENEWSLETTER_SIGN_UPJUDGE_ME_CREATE_REVIEWREVIEWSACTION_LOOX_REVIEWSACTION_OKENDOACTION_REVIEWS_IOACTION_STAMPEDACTION_YOTPOACTION_FAIRINGACTION_GORGIASSIGN_IN_REWARDSSCAN_QR_CODETAGGUN_SEND_RECEIPTYOUTUBE_SUBSCRIBEPINTEREST_FOLLOWGREENSPARK_IMPACTSPIN_WHEELLOTTERYCHARITYREDEEM_CODEwithoutTypes[TokiActivitiesWithoutTypes!]Leaves out activities of these types. An empty list leaves out none.
SHOPIFY_PURCHASESHOPIFY_BASED_ON_SPENDKLAVIYO_SIGNUPTIKTOK_FOLLOWTIKTOK_LIKE_POSTINSTAGRAM_FOLLOWINSTAGRAM_LIKE_POSTINSTAGRAM_COMMENT_POSTINSTAGRAM_POST_UGCTWITTER_FOLLOWTWITTER_LIKE_POSTTWITTER_COMMENT_POSTTWITTER_RETWEETDISCORD_JOIN_CHANNELFACEBOOK_JOIN_GROUPFACEBOOK_LIKE_POSTFACEBOOK_COMMENT_POSTFACEBOOK_LIKE_PAGENON_INTEGRATION_REFERRALNON_INTEGRATION_CUSTOMTAPCART_ACTIONTIKTOK_VIDEO_CREATIONAIRDROP_CLAIMREFER_A_FRIENDREFER_A_FRIEND_TO_COMPLETE_AN_ACTIVITYLINK_CLICKSSHARE_PURCHASE_ON_SOCIALCOLLECT_ZERO_PARTY_DATAJOIN_REWARDS_PROGRAMPICTURE_SUBMISSIONSHARE_WITH_FRIENDSSUBSCRIPTION_SIGN_UPSUBSCRIPTION_CONTINUATIONSUBSCRIPTION_CHARGEVOTINGQUIZDOWNLOAD_PASSPOSTSCRIPT_SMS_SIGN_UPBIRTHDAYLOYALTY_ANNIVERSARYCHALLENGENEWSLETTER_SIGN_UPJUDGE_ME_CREATE_REVIEWREVIEWSACTION_LOOX_REVIEWSACTION_OKENDOACTION_REVIEWS_IOACTION_STAMPEDACTION_YOTPOACTION_FAIRINGACTION_GORGIASSIGN_IN_REWARDSSCAN_QR_CODETAGGUN_SEND_RECEIPTYOUTUBE_SUBSCRIBEPINTEREST_FOLLOWGREENSPARK_IMPACTSPIN_WHEELLOTTERYCHARITYREDEEM_CODEstatusTokiActivitiesStatusactive for activities that are live for members, draft for the rest.
activedraftidIDOnly items whose id equals this value.
typeStringOnly items whose type equals this value.
A page of TokiActivity in nodes, with pageInfo for the next page. Each item:
A way to earn in your program, such as placing an order or referring a friend.
idID!typeNameString!Display name of the activity type.
completionLimitTokiActivityCompletionLimit!Activity completion limits with numeric amounts and periods.
challenges[TokiContainingChallenge!]!Challenges that include this activity as a step.
typeString!The activity type, such as SHOPIFY_PURCHASE, REFER_A_FRIEND or PICTURE_SUBMISSION. Filter on it with the type, types and withoutTypes arguments of activities.
statusTokiActivityStatus!active activities are live for members; draft ones are not.
activedraftupdatedAtString!displayTokiActivityDisplay!How members see the activity.
rewards[TokiActivityReward!]!The activity's reward rules in editor order, lowest priority first: a member gets the last rule they qualify for, for example by segment.
relatedActivities[TokiActivitySummary!]!The activities a CHALLENGE is made of, or that a referred friend must complete for a REFER_A_FRIEND_TO_COMPLETE_AN_ACTIVITY activity. Empty for other types.
configurationTokiActivityConfiguration!All of an activity's settings, as the activity editor in the Toki app shows them: status, approval, limits, display and schedule, with the type-specific rules and the reward rules under configuration.
activityCompletionsTokiActivityCompletionConnection!Completions of this activity, newest first.
Returns one of your activities by ID, or null if none matches.
idString!RequiredA way to earn in your program, such as placing an order or referring a friend.
idID!typeNameString!Display name of the activity type.
completionLimitTokiActivityCompletionLimit!Activity completion limits with numeric amounts and periods.
challenges[TokiContainingChallenge!]!Challenges that include this activity as a step.
typeString!The activity type, such as SHOPIFY_PURCHASE, REFER_A_FRIEND or PICTURE_SUBMISSION. Filter on it with the type, types and withoutTypes arguments of activities.
statusTokiActivityStatus!active activities are live for members; draft ones are not.
activedraftupdatedAtString!displayTokiActivityDisplay!How members see the activity.
rewards[TokiActivityReward!]!The activity's reward rules in editor order, lowest priority first: a member gets the last rule they qualify for, for example by segment.
relatedActivities[TokiActivitySummary!]!The activities a CHALLENGE is made of, or that a referred friend must complete for a REFER_A_FRIEND_TO_COMPLETE_AN_ACTIVITY activity. Empty for other types.
configurationTokiActivityConfiguration!All of an activity's settings, as the activity editor in the Toki app shows them: status, approval, limits, display and schedule, with the type-specific rules and the reward rules under configuration.
activityCompletionsTokiActivityCompletionConnection!Completions of this activity, newest first.
Lists your reward rules: those of your activities and memberships, and your redemption options. Filter by activityId or tierId, or set both to null to get only redemption options. Rules are sorted by position, so an activity's rules come in the order its editor shows them.
reverseBooleanReverse the sort order.
searchStringCase-insensitive text in the stored reward name or its owning activity/membership name. Literal substring search, applied in SQL before pagination; translated messages are not searched.
ids[String!]Only these reward IDs; an empty list returns none.
types[TokiRewardType!]Only these reward types. An empty list leaves types unrestricted.
assetgiftmembership_carddiscounttokengatingmultiplierVotesfreeShippingcustomacceleratortremendousshopifyStoreCreditwithoutRewarddisabledxBetMultipliertotalPoolmembershipOnlyBooleanWhen true, return only rules owned by memberships.
idIDOnly items whose id equals this value.
activityIdIDOnly items whose activityId equals this value. null matches items without one.
tierIdIDOnly items whose tierId equals this value. null matches items without one.
A page of TokiReward in nodes, with pageInfo for the next page. Each item:
A reward rule: what a member receives from an activity or a membership, or buys with a redemption option.
idID!typeTokiRewardType!What a reward rule grants. asset: a balance such as points, as a fixed amount or based on spend. discount and freeShipping: a discount code. gift: free products. membership_card: a collectible. shopifyStoreCredit: Shopify store credit. tremendous: a Tremendous gift card. custom: something you fulfill yourself. gating, accelerator and multiplierVotes: membership rewards for gated access, faster earning and extra votes. xBetMultiplier and totalPool: spin wheel and lottery prizes. withoutReward grants nothing but still records the completion; disabled records nothing.
assetgiftmembership_carddiscounttokengatingmultiplierVotesfreeShippingcustomacceleratortremendousshopifyStoreCreditwithoutRewarddisabledxBetMultipliertotalPoolorderNumberInt!Position of this rule within its activity or membership.
messageString!Translated description of the reward in the current shop's currency.
activityIdIDThe activity the rule belongs to. null for membership rewards and redemption options.
tierIdIDThe membership the rule belongs to (TokiMembership.id). null for activity rewards and redemption options.
configurationTokiRewardConfiguration!A stored reward rule, including purchase and review settings. Referral-only settings are null when absent.
activityTokiActivityOwning activity, or null for membership rewards, redemption options and deleted activities.
membershipTokiMembershipOwning membership, or null for activity rewards, redemption options and deleted memberships.
Returns a reward rule of one of your activities, memberships or redemption options by ID, or null if none matches.
idString!RequiredA reward rule: what a member receives from an activity or a membership, or buys with a redemption option.
idID!typeTokiRewardType!What a reward rule grants. asset: a balance such as points, as a fixed amount or based on spend. discount and freeShipping: a discount code. gift: free products. membership_card: a collectible. shopifyStoreCredit: Shopify store credit. tremendous: a Tremendous gift card. custom: something you fulfill yourself. gating, accelerator and multiplierVotes: membership rewards for gated access, faster earning and extra votes. xBetMultiplier and totalPool: spin wheel and lottery prizes. withoutReward grants nothing but still records the completion; disabled records nothing.
assetgiftmembership_carddiscounttokengatingmultiplierVotesfreeShippingcustomacceleratortremendousshopifyStoreCreditwithoutRewarddisabledxBetMultipliertotalPoolorderNumberInt!Position of this rule within its activity or membership.
messageString!Translated description of the reward in the current shop's currency.
activityIdIDThe activity the rule belongs to. null for membership rewards and redemption options.
tierIdIDThe membership the rule belongs to (TokiMembership.id). null for activity rewards and redemption options.
configurationTokiRewardConfiguration!A stored reward rule, including purchase and review settings. Referral-only settings are null when absent.
activityTokiActivityOwning activity, or null for membership rewards, redemption options and deleted activities.
membershipTokiMembershipOwning membership, or null for activity rewards, redemption options and deleted memberships.
Adds a redemption option to the end of your list and returns it as saved. If redemptionOption.id is the ID of one of your options, that option is replaced and moved to the end instead. List your options with loyaltySettings.
redemptionOptionTokiRedemptionOptionInput!RequiredA redemption option: a reward members can buy with their points, and its price in amountToSpend.
A redemption option: a reward members can buy with their points, and its price in amountToSpend.
idStringThe rule's ID, the same as TokiReward.id.
segmentStringThe ID of the segment the rule is for. null: every member. An activity gives a member the last of its rules they qualify for, and a redemption option is offered only to members in its segment. Memberships ignore it.
deletedAtStringAlways null when read. Leave it out when you write.
discountTypeStringAlways null, and ignored on input. Refer-a-friend rules set the referred friend's discount in discount.
descriptionStringMemberships: a description of the reward. A gated access reward without a rewardName shows it as its name.
dropRateFloatSpin wheel activities: the rule's weight in the draw. Each spin picks one of the rules open to the member, in proportion to their dropRate. A rule without one is never picked, and if no rule has one, the spin wins nothing.
visibilitySettingsTokiVisibilitySettings!Memberships: who sees the reward in the wallet. owner shows it to members of this tier. Activities and redemption options ignore it.
availabilitySettingsTokiRewardAvailabilitySettingsLimits a rule to some sales channels, Shopify markets and POS locations, when enabled is true. Redemption options are offered only there, and purchase activities reward only orders from there.
rewardNameStringYour name for the reward, which members see instead of the one Toki generates (see rewardMessage).
rewardMessageStringThe reward's name as members see it: rewardName, or a name Toki generates from the reward. Ignored on input.
rewardDelayFloatHow long Toki waits before giving the reward, in milliseconds. null or 0: right away. Purchase and refer-a-friend activities count from when the order was placed. Used by purchase, spend goal and refer-a-friend activities and by memberships.
excludedDiscountSettingsTokiRewardExcludedDiscountSettingsPurchase, subscription and refer-a-friend activities: orders with these discounts get no reward from the rule.
includedDiscountSettingsTokiRewardIncludedDiscountSettingsPurchase, subscription and refer-a-friend activities: discount codes an order must use to get a reward from the rule.
displayRuleTokiDisplayRule!Activities: the display settings for members who get this rule. They replace the activity's when custom is true.
generationsLimitTokiCompletionsLimitHow many times each member can get the reward. Redemption options count redemptions. Memberships count used discount and free shipping codes, and manual free gifts given. Activities ignore it.
totalGenerationsLimitTokiCompletionsLimitHow many times the reward can be given across all members. Redemption options count redemptions. Memberships count used discount and free shipping codes, and hide the reward once the limit is reached. Activities ignore it.
availabilityDelayTokiRewardAvailabilityDelay!Memberships: a wait, counted from when the member joined the membership, before they can use the reward. Applies when enabled is true.
availabilityAddonsTokiRewardAvailabilityAddons!Paid memberships: only members who have one of addonIds on their paid membership can use the reward. Applies when enabled is true.
schedulingTokiRewardSchedulingWhen a redemption option, or a membership's accelerator reward, is available.
buttonSettingsTokiRewardButtonSettings!Memberships: the reward's button in the wallet's perks list.
impactSettingsTokiRewardImpactSettingsGreenspark activities: the projects members can fund with their points.
ticketPriceFloatLottery activities: the points a ticket costs, taken from the member's balance in your default store credit. Tickets are free when it is 0 or not set.
limitPerUserFloatLottery activities: the most tickets a member can have in a draw. 0 or no value means no limit.
limitsTokiRewardLimitsCharity activities: the smallest (minAmount) and largest (maxAmount) donation a member can make, in points of your default store credit. A limit that is 0 or not set doesn't apply.
charityList[TokiRewardCharity!]Charity activities: the charities a member can pick when they donate.
amountToSpendFloat!The price in points that a member spends to redeem the option.
configurationTokiRewardRuleConfiguration!What the reward rule grants, by reward type.
Replaces a redemption option with redemptionOption, keeping its place in your list, and returns it as saved. Settings you leave out aren't kept.
idString!RequiredThe option to replace. redemptionOption.id is ignored.
redemptionOptionTokiRedemptionOptionInput!RequiredA redemption option: a reward members can buy with their points, and its price in amountToSpend.
A redemption option: a reward members can buy with their points, and its price in amountToSpend.
idStringThe rule's ID, the same as TokiReward.id.
segmentStringThe ID of the segment the rule is for. null: every member. An activity gives a member the last of its rules they qualify for, and a redemption option is offered only to members in its segment. Memberships ignore it.
deletedAtStringAlways null when read. Leave it out when you write.
discountTypeStringAlways null, and ignored on input. Refer-a-friend rules set the referred friend's discount in discount.
descriptionStringMemberships: a description of the reward. A gated access reward without a rewardName shows it as its name.
dropRateFloatSpin wheel activities: the rule's weight in the draw. Each spin picks one of the rules open to the member, in proportion to their dropRate. A rule without one is never picked, and if no rule has one, the spin wins nothing.
visibilitySettingsTokiVisibilitySettings!Memberships: who sees the reward in the wallet. owner shows it to members of this tier. Activities and redemption options ignore it.
availabilitySettingsTokiRewardAvailabilitySettingsLimits a rule to some sales channels, Shopify markets and POS locations, when enabled is true. Redemption options are offered only there, and purchase activities reward only orders from there.
rewardNameStringYour name for the reward, which members see instead of the one Toki generates (see rewardMessage).
rewardMessageStringThe reward's name as members see it: rewardName, or a name Toki generates from the reward. Ignored on input.
rewardDelayFloatHow long Toki waits before giving the reward, in milliseconds. null or 0: right away. Purchase and refer-a-friend activities count from when the order was placed. Used by purchase, spend goal and refer-a-friend activities and by memberships.
excludedDiscountSettingsTokiRewardExcludedDiscountSettingsPurchase, subscription and refer-a-friend activities: orders with these discounts get no reward from the rule.
includedDiscountSettingsTokiRewardIncludedDiscountSettingsPurchase, subscription and refer-a-friend activities: discount codes an order must use to get a reward from the rule.
displayRuleTokiDisplayRule!Activities: the display settings for members who get this rule. They replace the activity's when custom is true.
generationsLimitTokiCompletionsLimitHow many times each member can get the reward. Redemption options count redemptions. Memberships count used discount and free shipping codes, and manual free gifts given. Activities ignore it.
totalGenerationsLimitTokiCompletionsLimitHow many times the reward can be given across all members. Redemption options count redemptions. Memberships count used discount and free shipping codes, and hide the reward once the limit is reached. Activities ignore it.
availabilityDelayTokiRewardAvailabilityDelay!Memberships: a wait, counted from when the member joined the membership, before they can use the reward. Applies when enabled is true.
availabilityAddonsTokiRewardAvailabilityAddons!Paid memberships: only members who have one of addonIds on their paid membership can use the reward. Applies when enabled is true.
schedulingTokiRewardSchedulingWhen a redemption option, or a membership's accelerator reward, is available.
buttonSettingsTokiRewardButtonSettings!Memberships: the reward's button in the wallet's perks list.
impactSettingsTokiRewardImpactSettingsGreenspark activities: the projects members can fund with their points.
ticketPriceFloatLottery activities: the points a ticket costs, taken from the member's balance in your default store credit. Tickets are free when it is 0 or not set.
limitPerUserFloatLottery activities: the most tickets a member can have in a draw. 0 or no value means no limit.
limitsTokiRewardLimitsCharity activities: the smallest (minAmount) and largest (maxAmount) donation a member can make, in points of your default store credit. A limit that is 0 or not set doesn't apply.
charityList[TokiRewardCharity!]Charity activities: the charities a member can pick when they donate.
amountToSpendFloat!The price in points that a member spends to redeem the option.
configurationTokiRewardRuleConfiguration!What the reward rule grants, by reward type.
Lists the current merchant's blacklist rules, newest first, optionally filtering by name.
searchStringCase-insensitive substring to match against rule names.
A page of TokiBlacklistRule in nodes, with pageInfo for the next page. Each item:
A merchant-owned rule that restricts reward redemption.
idString!Unique blacklist rule ID. Generate a UUID when creating a rule.
merchantIdString!The merchant that owns this rule.
nameString!Rule name shown in the merchant portal.
statusTokiBlacklistRuleStatus!Only active rules restrict reward redemption.
activedraftconfigTokiBlacklistRuleConfig!Member segments whose rewards are blocked by this rule.
Returns one blacklist rule belonging to the current merchant. Deleted rules are not available.
idString!RequiredID of a blacklist rule belonging to the current merchant.
A merchant-owned rule that restricts reward redemption.
idString!Unique blacklist rule ID. Generate a UUID when creating a rule.
merchantIdString!The merchant that owns this rule.
nameString!Rule name shown in the merchant portal.
statusTokiBlacklistRuleStatus!Only active rules restrict reward redemption.
activedraftconfigTokiBlacklistRuleConfig!Member segments whose rewards are blocked by this rule.
Creates or updates a blacklist rule for the current merchant and starts syncing blacklist metafields.
Reward blacklist rule to create or update.
idString!RequiredUnique blacklist rule ID. Generate a UUID when creating a rule.
nameString!RequiredRule name shown in the merchant portal.
statusTokiBlacklistRuleStatusOnly active rules restrict reward redemption.
activedraftconfigTokiBlacklistRuleConfigInput!RequiredMember segments whose rewards are blocked by this rule.
Identifier of the saved blacklist rule.
idString!ID of the saved blacklist rule.
Deletes one blacklist rule belonging to the current merchant and starts syncing blacklist metafields.
Merchant-owned blacklist rule to delete.
idString!RequiredID of a blacklist rule belonging to the current merchant.
true when the change was made. Anything that stops it comes back as an error.
Lists the current merchant's timers, most recently updated first, optionally filtering by name.
searchStringCase-insensitive substring to match against timer names.
ids[String!]Restrict results to these timer IDs. An empty list returns none.
A page of TokiTimer in nodes, with pageInfo for the next page. Each item:
A merchant-owned timer that triggers workflow events on a schedule.
idString!Unique timer ID. Generate a UUID when creating a timer.
merchantIdString!The merchant that owns this timer.
nameString!Timer name shown in the merchant portal.
statusTokiTimerStatus!Active timers are scheduled; draft timers do not run.
activedraftconfigTokiTimerConfig!Schedule for a one-time or recurring timer.
Returns one timer belonging to the current merchant. Deleted timers are not available.
idString!RequiredID of a timer belonging to the current merchant.
A merchant-owned timer that triggers workflow events on a schedule.
idString!Unique timer ID. Generate a UUID when creating a timer.
merchantIdString!The merchant that owns this timer.
nameString!Timer name shown in the merchant portal.
statusTokiTimerStatus!Active timers are scheduled; draft timers do not run.
activedraftconfigTokiTimerConfig!Schedule for a one-time or recurring timer.
Creates or updates a timer for the current merchant and schedules it, or cancels waiting jobs when inactive.
Workflow timer to create or update.
idString!RequiredUnique timer ID. Generate a UUID when creating a timer.
nameString!RequiredTimer name shown in the merchant portal.
statusTokiTimerStatusActive timers are scheduled; draft timers do not run.
activedraftconfigTokiTimerConfigInput!RequiredSchedule for a one-time or recurring timer.
Identifier of the saved timer.
idString!ID of the saved timer.
Deletes one timer belonging to the current merchant and cancels its waiting jobs.
Merchant-owned timer to delete.
idString!RequiredID of a timer belonging to the current merchant.
true when the change was made. Anything that stops it comes back as an error.
Lists jobs for a timer belonging to the current merchant, newest first, with cursor pagination.
timerIdString!RequiredID of the timer whose execution history to read.
A page of TokiTimerExecution in nodes, with pageInfo for the next page. Each item:
One queued execution of a merchant timer.
idString!The queued job ID for this execution.
statusString!Queue status, such as waiting, processing, processed, failed or canceled.
scheduledAtString!Scheduled execution time as an ISO 8601 timestamp.
createdAtString!When the job was created, as an ISO 8601 timestamp.
updatedAtString!When the job last changed, as an ISO 8601 timestamp.
attemptsInt!Number of attempts to process this job.
errorStringJob error message, or null if no message was recorded.