Store credits, exchange rules, membership rewards and activity administration.
storeCreditCurrenciesLists available store credit currencies with pagination; exchange partner currencies require includeExchangePartners.storeCreditsLists store credit currencies belonging to the current merchant, with conversion and display settings.storeCreditsUpdateReplaces the current merchant store credit currency list.exchangeRulesLists exchange rules owned by the current merchant and their participating merchants.exchangeRuleUpsertCreates or updates an exchange rule and replaces its participating merchants.exchangeRuleDeleteDeletes an exchange rule owned by the current merchant and its participating merchant links.exchangeRuleStatusUpdateSets whether an exchange rule owned by the current merchant is active.membershipMaintainStatusUpdateUpdates whether membership status is maintained for the current merchant.membershipRewardsBulkUpdateAdds rewards to selected memberships, removes selected rewards or updates selected rewards within the current merchant.tapcartWebhookUrlReturns the secret Tapcart Clickstream webhook URL for the current shop.activityPendingCompletionsLists pending completion jobs for a purchase or referral activity owned by the current merchant, twenty per page.activityLotteryTotalsReturns the pool amount and number of pending tickets for an owned lottery activity.activityLotteryDrawDraws a random pending ticket, rewards its member and completes pending tickets for an owned lottery activity.activityCharityTotalsReturns donation totals for an owned charity activity.activityRedeemCodesGenerateGenerates unique lowercase redeem codes for an owned activity.activityRedeemCodesLists redeem codes for an owned activity, filtered by search and availability, using one-based page numbers.ledgerGenerationsLists the current merchant ledger generation jobs and their progress.ledgerGenerationCreateQueues ledger generation for the current merchant and shop.activityVotingResultsReturns paginated answers and aggregated choice results for an owned voting, quiz or data collection activity.Lists available store credit currencies with pagination; exchange partner currencies require includeExchangePartners.
reverseBooleanReverse the sort order.
ids[String!]Only these currency IDs; an empty list returns none.
searchStringCase-insensitive currency name search.
includeExchangePartnersBooleanInclude currencies of merchants allowed by active exchange-with rules, for segment conditions.
A page of TokiStoreCreditCurrency in nodes, with pageInfo for the next page. Each item:
An available store credit currency. Exchange partners are included only when requested for segment conditions.
idID!nameString!Currency name.
merchantIdID!Merchant owning the currency.
Lists store credit currencies belonging to the current merchant, with conversion and display settings.
Stored currency settings returned by the merchant API.
list[TokiStoreCreditsOutputList!]!The complete list of store credit currencies. Omitted currencies are archived when saving.
Replaces the current merchant store credit currency list. Missing currencies are archived; new ones are created.
Complete replacement of merchant store credit currency settings.
list[TokiStoreCreditsUpdateListInput!]!RequiredThe complete list of store credit currencies. Omitted currencies are archived when saving.
Stored currency settings returned by the merchant API.
list[TokiStoreCreditsOutputList!]!The complete list of store credit currencies. Omitted currencies are archived when saving.
Lists exchange rules owned by the current merchant and their participating merchants.
A page of TokiExchangeRuleSummary in nodes, with pageInfo for the next page. Each item:
An exchange rule and its participating merchants.
nameString!Exchange rule display name.
isActiveBoolean!Whether the exchange rule is active.
ruleTypeString!Stored exchange rule type.
exchangeRuleIdString!ID of the exchange rule.
createdAtString!Creation timestamp in ISO 8601 format.
merchantIdString!ID of the merchant that owns the rule.
merchantsExchangeRules[TokiExchangeRuleSummaryMerchantsExchangeRules!]!Merchants participating in this exchange rule.
Creates or updates an exchange rule and replaces its participating merchants.
Exchange rule settings and the replacement list of participating merchants.
nameString!RequiredExchange rule display name.
isActiveBoolean!RequiredWhether the exchange rule is active.
ruleTypeString!RequiredStored exchange rule type.
exchangeRuleIdStringExisting merchant-owned rule ID. Omit to create a rule.
merchantsExchangeRules[TokiExchangeRuleUpsertMerchantsExchangeRulesInput!]!RequiredComplete replacement list of participating merchants.
Confirmation of the exchange rule change.
resultString!The string success after the change completes.
Deletes an exchange rule owned by the current merchant and its participating merchant links.
Merchant-owned exchange rule to delete.
exchangeRuleIdString!RequiredID of an exchange rule owned by the current merchant.
Confirmation of the exchange rule change.
resultString!The string success after the change completes.
Sets whether an exchange rule owned by the current merchant is active.
New active status for a merchant-owned exchange rule.
exchangeRuleIdString!RequiredID of an exchange rule owned by the current merchant.
isActiveBoolean!RequiredWhether the exchange rule should be active.
Confirmation of the exchange rule change.
resultString!The string success after the change completes.
Updates whether membership status is maintained for the current merchant.
Merchant setting controlling membership status maintenance.
valueBoolean!RequiredWhether membership status maintenance should be enabled.
Saved membership status maintenance setting.
successBoolean!True after the setting is saved.
valueBoolean!The saved status maintenance setting.
Adds rewards to selected memberships, removes selected rewards or updates selected rewards within the current merchant.
Bulk addition, removal or replacement of merchant membership rewards.
membershipIds[String!]!RequiredMemberships receiving added rewards. Used with the add action.
rewardIds[String!]!RequiredExisting reward rules to remove or update. Every rule must belong to this merchant.
rewards[TokiRewardRuleInput!]Reward configurations to add, or the first configuration to apply to every updated rule.
actionTokiMembershipRewardsBulkUpdateAction!Requiredadd creates rewards, remove archives rules, and update applies the first reward configuration.
addremoveupdateConfirmation of the bulk membership reward change.
okBoolean!True after the bulk change succeeds.
Returns the secret Tapcart Clickstream webhook URL for the current shop. Keep this URL private.
Lists pending completion jobs for a purchase or referral activity owned by the current merchant, twenty per page.
idString!RequiredID of an activity belonging to the current merchant.
searchStringCase-insensitive substring matched against the serialized completion job payload.
pageIntPage number starting at 1. Defaults to 1.
Pending completion jobs for an activity.
list[TokiActivityPendingCompletionsList!]!Pending completion jobs in this page.
Returns the pool amount and number of pending tickets for an owned lottery activity.
activityIdString!RequiredOwned lottery activity ID.
Current pending lottery pool statistics.
totalPoolFloat!Total price of pending lottery tickets.
totalCountFloat!Number of pending lottery tickets.
Draws a random pending ticket, rewards its member and completes pending tickets for an owned lottery activity.
Lottery activity from which to draw a winner.
activityIdString!RequiredID of an activity belonging to the current merchant.
Winning lottery completion and its member.
idString!ID of the winning lottery ticket.
userIdString!ID of the winning member.
emailStringWinner email address, or null when unavailable.
ticketPriceFloat!Ticket price for the lottery.
Returns donation totals for an owned charity activity.
activityIdString!RequiredID of an activity belonging to the current merchant.
Aggregate donation amount and completion count for a charity activity.
totalAmountFloat!Sum of recorded donation amounts.
totalCountFloat!Number of charity completions.
Generates unique lowercase redeem codes for an owned activity. Reports inserted codes and skipped duplicates.
Batch of redeem codes to generate for an activity.
activityIdString!RequiredID of an activity belonging to the current merchant.
countInt!RequiredNumber of code generation attempts, from 1 to 100000.
prefixStringOptional prefix prepended to every code. The complete code is lowercased.
expiresAtStringExpiration date string. Omit to create codes without expiration.
codeLengthIntLength of the random part, excluding the prefix, from 6 to 128. Defaults to 8.
Counts from generating and inserting redeem codes.
successBoolean!True after the generation batch completes.
generatedFloat!Number of new codes inserted.
totalFloat!Number of code generation attempts.
skippedFloat!Number of generated codes skipped because they already exist for the activity.
Lists redeem codes for an owned activity, filtered by search and availability, using one-based page numbers.
activityIdString!RequiredID of an activity belonging to the current merchant.
searchStringCase-insensitive substring matched against codes.
pageIntPage number starting at 1. Defaults to 1.
limitIntMaximum number of records to return, from 1 to 500. Defaults to 20.
statusTokiActivityRedeemCodesStatusRestrict codes to available, used or expired. Omit to include all statuses.
availableusedexpiredMatching redeem codes and their total count.
codes[TokiActivityRedeemCodesCodes!]!Redeem codes in this page, newest first.
totalFloat!Total number of matching codes before pagination.
Lists the current merchant ledger generation jobs and their progress.
A page of TokiLedgerGenerationSummary in nodes, with pageInfo for the next page. Each item:
A ledger generation job and its progress.
idString!ID of the ledger generation job.
createdAtString!Creation timestamp in ISO 8601 format.
settingsTokiLedgerGenerationInput!Ledger generation settings. usd is the value assigned to each generated ledger.
totalRowsFloat!Total number of ledger rows to generate.
completedCountFloat!Number of processed ledger rows.
failedCountFloat!Number of failed jobs recorded for this generation.
progress[TokiLedgerGenerationSummaryProgress!]!Completed and failed progress bars.
Queues ledger generation for the current merchant and shop. Returns the generation ID.
Settings for a new ledger generation job.
countInt!RequiredNumber of ledgers to generate.
usdInt!RequiredStarting value of each ledger in currency units.
emailPrefixString!RequiredPrefix for generated member email addresses.
codePrefixString!RequiredPrefix for generated ledger codes.
codeLengthInt!RequiredLength of the random portion of each code, at least six characters.
expiresOnStringOptional expiration date for generated ledgers.
Identifier of the queued ledger generation job.
idString!ID of the newly created ledger generation job.
Returns paginated answers and aggregated choice results for an owned voting, quiz or data collection activity.
limitInt!RequiredMaximum number of records to return, from 1 to 500.
offsetInt!RequiredNumber of matching records to skip, starting at zero.
activityIdString!RequiredID of an activity belonging to the current merchant.
startDateStringOptional start date for the answer report; null disables the lower date bound.
endDateStringOptional end date for the answer report; null disables the upper date bound.
Answer rows and aggregate choice counts for an activity.
dataTokiJSON!Answer rows keyed by question labels. Values are text or arrays of selected choices.
totalFloat!Total number of matching submissions.
activityTokiActivityVotingResultsActivity!Activity the answers belong to.
votingResults[TokiActivityVotingResultsVotingResults!]Aggregated single-choice and multiple-choice results, or null if the form contains neither.