Completed activities: list them, approve or deny submissions, credit a member by hand, or remove one.
A completion records that a member completed an activity. Activities that need review create completions in the pending state until you approve or deny them. Approve, deny and rollback process each ID separately and report which ones succeeded.
activityCompletionsLists completions of your activities, newest first.activityCompletionApprovalCountCounts your completions in one verification state, such as the pending ones waiting for your review.activityCompletionsApproveApproves completions and issues their rewards, checking the activity's schedule and completion limit again.activityCompletionsDenyDenies completions, optionally with a reason.activityCompletionCreateCreates an approved activity completion for a member and issues the selected rewardRuleId or one-off customRewardRule, even when the activity requires approval.activityCompletionsRollbackDeletes completions of the member given by userId; they stop counting towards the activity's completion limit.Lists completions of your activities, newest first. Filter by verificationStatus (pending for your approval queue), activityId or userId.
queryStringFilters by completion date with created_at terms, such as created_at:>-30d or created_at:<2025-01-01. Operators: :, :!=, :>, :>=, :<, :<=; relative dates count back from now (-24h, -7d, -2w, -6m, -1y). Terms combine with AND unless joined by OR; other fields return BADUSERINPUT.
exactActivityIdIDOnly completions of this activity, excluding challenge children.
formAnswersOnlyBooleanWhen true, include only submissions to existing survey, poll and quiz activities.
activityIdIDOnly completions of this activity. For a challenge, also those of the activities it is made of.
userIdIDOnly completions by this member.
verificationStatusTokiVerificationStatusOnly items whose verificationStatus equals this value.
approvedpendingdeniedA page of TokiActivityCompletion in nodes, with pageInfo for the next page. Each item:
A record of a member completing one of your activities.
idID!activityIdID!The activity the member completed.
verificationStatusTokiVerificationStatus!pending while a completion waits for your review, approved once it's accepted, denied if it was turned down. Rewards are issued on approval.
approvedpendingdeniedcreatedAtString!shopIdIDThe store where the activity was completed. null when the completion isn't tied to one store.
additionalFieldsTokiJSON!Stored completion details, including form answers and order metadata. Requires member or approval read access.
memberEmailStringEmail recorded for the member who completed the activity.
rewardAmountFloatIssued reward amount, or null when no reward was issued.
donationTokiActivityCompletionDonation!Donation details recorded on a charity completion.
answersTokiJSON!Submitted form answers keyed by question labels; text or lists of choices. Requires MembersRead.
userIdID!The member who completed the activity.
userTokiUserThe member who completed the activity. null if they're no longer in any of your stores.
activityTokiActivityThe completed activity. null if it has since been deleted.
filesTokiFileConnection!Files the member uploaded with the completion.
issuedRewardTokiIssuedRewardThe reward issued for this completion. null while there is none, for example while the completion is pending.
orderTokiOrderThe order that earned this completion, if there is one.
Counts your completions in one verification state, such as the pending ones waiting for your review.
verificationStatusTokiVerificationStatus!Requiredpending while a completion waits for your review, approved once it's accepted, denied if it was turned down. Rewards are issued on approval.
approvedpendingdeniedApproves completions and issues their rewards, checking the activity's schedule and completion limit again. Completions already approved fail with CONFLICT, as do denied ones unless allowDeny is true. Toki fires the Toki Activity Approved event for your campaigns, workflows and connected apps, and once the member reaches the completion limit, denies their other pending completions of that activity.
ids[ID!]!RequiredCompletion IDs, 1 to 250. Each is processed on its own, in order: succeededIds lists the ones that worked, errors the rest.
allowDenyBooleanSet to true to also approve completions that were denied; otherwise they fail with CONFLICT. With preventReSubmissions on, another denied completion by the same member for this activity still blocks approval.
Each ID is processed on its own: succeededIds lists the ones that went through, errors explains the rest.
The outcome for each ID. IDs are processed one by one, so some can fail while others succeed.
succeededIds[ID!]!The IDs that succeeded.
errors[TokiBulkError!]!One entry for each ID that failed. The other IDs were processed regardless.
Denies completions, optionally with a reason. It works on completions in any state; denying an approved one doesn't take back its reward. Toki doesn't message the member, but fires the Toki Activity Denied event, with the reason, for your campaigns, workflows and connected apps.
ids[ID!]!RequiredCompletion IDs, 1 to 250. Each is processed on its own, in order: succeededIds lists the ones that worked, errors the rest.
reasonStringWhy you denied them. Saved on each completion as additionalFields.deniedReason and sent with the Toki Activity Denied event.
Each ID is processed on its own: succeededIds lists the ones that went through, errors explains the rest.
The outcome for each ID. IDs are processed one by one, so some can fail while others succeed.
succeededIds[ID!]!The IDs that succeeded.
errors[TokiBulkError!]!One entry for each ID that failed. The other IDs were processed regardless.
Creates an approved activity completion for a member and issues the selected rewardRuleId or one-off customRewardRule, even when the activity requires approval. The activity may be a draft or outside its schedule. Its completion limit and preventReSubmissions still apply.
activityIdID!RequiredThe activity the member completed.
userIdID!RequiredThe member.
rewardRuleIdIDOne of the activity's reward rules (see TokiActivity.rewards). Toki issues it without checking whether the member qualifies for it, for example by segment.
customRewardRuleTokiCustomRewardRuleInputA one-off reward for this completion only; the activity isn't changed. Toki validates it for the activity's type. Its discount is a referral setting: the input type requires it, but it doesn't change what this member receives.
activityCompletionIdID!Deletes completions of the member given by userId; they stop counting towards the activity's completion limit. The member keeps any reward already issued, including points, and Toki re-evaluates the member's segments whose conditions use the activity. IDs of other members' completions fail with NOT_FOUND.
ids[ID!]!RequiredCompletion IDs, 1 to 250. Each is processed on its own, in order: succeededIds lists the ones that worked, errors the rest.
userIdID!RequiredThe member the completions belong to.
Each ID is processed on its own: succeededIds lists the ones that went through, errors explains the rest.
The outcome for each ID. IDs are processed one by one, so some can fail while others succeed.
succeededIds[ID!]!The IDs that succeeded.
errors[TokiBulkError!]!One entry for each ID that failed. The other IDs were processed regardless.