Membership tiers and paid memberships, and when members entered or left them.
A membership is either a free tier that members unlock by meeting its conditions or a paid membership they buy. Your membership order ranks them from entry tier to highest: it decides which membership counts as a member's highest, and whether a paid plan change is an upgrade or a downgrade.
paidMembershipsLists paid membership plans, including drafts, with the paid-membership section's read permission.membershipDefaultsReturns initial editor settings for a new membership, with the next order number and default segment.paidMembershipConfigurationReturns an owned paid membership's editor settings and Shopify selling plans for the current shop.membershipSaveCreates or updates a tier or paid membership.membershipDeleteDeletes an owned free membership tier using its existing cleanup behavior.paidMembershipActiveSubscriptionsCountCounts active subscriptions for an owned paid membership before deletion.paidMembershipDeleteDeletes an owned paid membership only when it has no active subscriptions.membershipsReorderUpdates the order of owned memberships.membershipRewardsReorderUpdates the order of owned membership rewards.membershipsLists your memberships, free tiers and paid memberships alike, in your membership order.membershipReturns a membership by ID, or null if there is none.userMembershipActionsLists when members entered or left a membership, newest first.Lists paid membership plans, including drafts, with the paid-membership section's read permission.
queryStringText in the membership name, case-insensitive.
reverseBooleanReverse the sort order.
ids[String!]Restrict results to these membership IDs. An empty list returns none.
activeBooleantrue for active memberships only, false for drafts only.
idIDOnly items whose id equals this value.
A page of TokiMembership in nodes, with pageInfo for the next page. Each item:
A membership: a free tier members unlock by meeting its conditions, or a paid membership they buy.
idID!nameString!typeTokiMembershipType!tiers for a free tier members unlock by meeting its conditions, paid for a paid membership.
paidtiersisActiveBoolean!false while the membership is a draft.
updatedAtStringcreatedAtStringunlockConditionMessages[String!]!Translated descriptions of the membership's unlock conditions.
orderNumberIntPosition in your membership order, where later memberships rank higher.
membershipCardStringURL of the card image the wallet shows for this membership.
tagsStringComma-separated tags Toki adds to the member's customer in Shopify while this is the highest membership they hold.
rewards[TokiReward!]!Rewards members of this membership receive.
configurationTokiMembershipConfiguration!The membership's complete settings, as edited in the Toki app: unlock conditions, rewards and, for paid memberships, plans and billing.
Returns initial editor settings for a new membership, with the next order number and default segment.
typeTokiMembershipDefaultsType!RequiredKind of membership to create.
tierspaidThe membership's complete settings, as edited in the Toki app: unlock conditions, rewards and, for paid memberships, plans and billing.
idStringisActiveBooleanfalse while the membership is a draft. A paid membership's Shopify product stays a draft too.
updatedAtStringWhen the membership was last updated, as an ISO 8601 date-time.
nameString!membershipCardStringURL of the card image the wallet shows for this membership, or an empty string when it has none. A paid membership also uses it as the image of its Shopify product.
rewards[TokiRewardRule!]!The membership's reward rules, with all their settings: what its members receive.
orderNumberFloatPosition in your membership order, where later memberships rank higher.
segmentTokiValidateSegment!The segment behind the membership, with its unlock conditions and member limit: the members in it hold the membership.
configurationTokiMembershipRules!Settings that depend on the membership's type: TokiPaidMembershipRules for a paid membership, TokiTierMembershipRules for a free tier.
Returns an owned paid membership's editor settings and Shopify selling plans for the current shop.
idString!RequiredOwned membership ID.
Paid membership editor data.
configurationTokiMembershipConfiguration!The membership's complete settings, as edited in the Toki app: unlock conditions, rewards and, for paid memberships, plans and billing.
metaTokiPaidMembershipConfigurationMetaShopify metadata, or null when the current shop has no selling plan group.
Creates or updates a tier or paid membership. Preserves billing gates, segment reevaluation, Shopify sync and per-shop warnings.
configurationTokiMembershipInput!RequiredThe membership's complete settings, as edited in the Toki app: unlock conditions, rewards and, for paid memberships, plans and billing.
Saved membership and non-fatal synchronization warnings.
idString!Saved membership ID.
warnings[TokiMembershipSaveWarnings!]!Warnings after a successful save; empty when all shops synchronized.
Deletes an owned free membership tier using its existing cleanup behavior.
idString!RequiredOwned membership ID.
true when the change was made. Anything that stops it comes back as an error.
Counts active subscriptions for an owned paid membership before deletion.
idString!RequiredOwned membership ID.
Deletes an owned paid membership only when it has no active subscriptions. Archives its linked Shopify products.
idString!RequiredOwned membership ID.
confirmString!RequiredExplicit confirmation: DELETE.
true when the change was made. Anything that stops it comes back as an error.
Updates the order of owned memberships. IDs belonging to other merchants are ignored.
New ordering for owned items.
items[TokiMembershipsReorderItemsInput!]!RequiredItems to reorder.
true when the change was made. Anything that stops it comes back as an error.
Updates the order of owned membership rewards. IDs belonging to other merchants are ignored.
New ordering for owned items.
items[TokiMembershipsReorderItemsInput!]!RequiredItems to reorder.
true when the change was made. Anything that stops it comes back as an error.
Lists your memberships, free tiers and paid memberships alike, in your membership order. Drafts are included unless you pass active.
queryStringText in the membership name, case-insensitive.
reverseBooleanReverse the sort order.
ids[String!]Restrict results to these membership IDs. An empty list returns none.
types[TokiMembershipsTypes!]Only memberships of these types. An empty list returns all.
paidtiersactiveBooleantrue for active memberships only, false for drafts only.
idIDOnly items whose id equals this value.
typeTokiMembershipTypeOnly items whose type equals this value.
paidtiersA page of TokiMembership in nodes, with pageInfo for the next page. Each item:
A membership: a free tier members unlock by meeting its conditions, or a paid membership they buy.
idID!nameString!typeTokiMembershipType!tiers for a free tier members unlock by meeting its conditions, paid for a paid membership.
paidtiersisActiveBoolean!false while the membership is a draft.
updatedAtStringcreatedAtStringunlockConditionMessages[String!]!Translated descriptions of the membership's unlock conditions.
orderNumberIntPosition in your membership order, where later memberships rank higher.
membershipCardStringURL of the card image the wallet shows for this membership.
tagsStringComma-separated tags Toki adds to the member's customer in Shopify while this is the highest membership they hold.
rewards[TokiReward!]!Rewards members of this membership receive.
configurationTokiMembershipConfiguration!The membership's complete settings, as edited in the Toki app: unlock conditions, rewards and, for paid memberships, plans and billing.
Returns a membership by ID, or null if there is none. Select configuration for its complete settings.
idString!RequiredA membership: a free tier members unlock by meeting its conditions, or a paid membership they buy.
idID!nameString!typeTokiMembershipType!tiers for a free tier members unlock by meeting its conditions, paid for a paid membership.
paidtiersisActiveBoolean!false while the membership is a draft.
updatedAtStringcreatedAtStringunlockConditionMessages[String!]!Translated descriptions of the membership's unlock conditions.
orderNumberIntPosition in your membership order, where later memberships rank higher.
membershipCardStringURL of the card image the wallet shows for this membership.
tagsStringComma-separated tags Toki adds to the member's customer in Shopify while this is the highest membership they hold.
rewards[TokiReward!]!Rewards members of this membership receive.
configurationTokiMembershipConfiguration!The membership's complete settings, as edited in the Toki app: unlock conditions, rewards and, for paid memberships, plans and billing.
Lists when members entered or left a membership, newest first. Pass customerId for one member's history, as on the Segments tab of their page in the Toki app. Memberships that are now drafts are left out.
queryStringText in the membership name, case-insensitive.
reverseBooleanReverse the sort order.
customerIdStringOnly this member's entries and exits.
A page of TokiUserMembershipAction in nodes, with pageInfo for the next page. Each item:
A member entering or leaving a membership.
customerIdID!The member.
membershipIdID!The membership (TokiMembership.id).
membershipNameString!The membership's current name.
createdAtString!When the member entered or left.
actionTokiUserMembershipActionAction!ENTERED when the member got the membership, LEFT when they lost it.
ENTEREDLEFTidID!