Connected apps, Tremendous payouts, past order imports and customer sign-in with Toki.
Integrations connect Toki with the other tools your store runs on, such as Klaviyo or Recharge. Customer sign-in with Toki makes Toki an OpenID Connect provider, so an OIDC client such as Shopify customer accounts can sign customers in with their Toki account.
integrationsLists the integrations available to your store, in the order of the Integrations page in the Toki app, Shopify first.integrationReturns one integration from integrations, or null when it isn't available to your store.tremendousCashoutsLists the payouts members cashed out through Tremendous in your store, newest first.integrationInstallInstalls an integration on your store, or saves new settings for an installed one.integrationUninstallUninstalls an integration from your store and deletes the settings and credentials saved for it.integrationOrderImportStartStarts importing your store's past paid, partially paid and partially refunded orders from Shopify, in the background.customerAuthenticationProviderReturns your store's setup of customer sign-in with Toki: its status, the values to enter in your OIDC client and the URLs you saved.customerAuthenticationProviderCreateGenerates OIDC credentials for your store, sets the status to DRAFT and returns the client secret once, in clientSecret; if credentials already exist, even disabled ones, nothing changes and clientSecret is null.customerAuthenticationProviderUpdateUrlsReplaces the callback and sign-out URLs.customerAuthenticationProviderRotateSecretGenerates a new client secret and returns it once, in clientSecret.customerAuthenticationProviderDisableTurns customer sign-in with Toki off: the status becomes DISABLED, Toki stops signing customers in and revokes the access it granted, including refresh tokens.Lists the integrations available to your store, in the order of the Integrations page in the Toki app, Shopify first. Installed integrations include their saved settings in initialData. Apps that need no setup in Toki, such as Loox or Yotpo, are always listed as installed.
externalEventsBooleanWhen true, include only installed integrations that support external workflow events.
A page of TokiIntegration in nodes, with pageInfo for the next page. Each item:
An integration available to your store: whether it is installed, the settings form the Toki app shows for it and its saved settings.
identifierTokiIntegrationIdentifier!An integration, by the service it connects to, such as KLAVIYO. SHOPIFY and WOOCOMMERCE stand for your store's platform, and CUSTOMER_METAFIELDS writes member properties to Shopify customer metafields.
TAGGUNATTENTIVEOMNISENDJUDGE_MESTAY_AIHEARTLANDTREMENDOUSSENDLANELISTRAKGORGIASKO_FISHOPIFYWOOCOMMERCEKLAVIYOBRAZEPOSTSCRIPTRECHARGEDRIPCHURN_BUSTERSNOWFLAKEGREENSPARKLOOPRELOADIFYCORSOLOOXOKENDOREVIEWS_IOSTAMPEDYOTPOFAIRINGSMARTRRSKIOCUSTOMER_METAFIELDSinstalledBoolean!Whether the integration is installed on your store; for SHOPIFY, whether the Toki app is installed in your Shopify store.
hasManageButtonBooleanWhether the Toki app offers Manage for the integration while it is installed.
hasDeleteButtonBooleanWhether the Toki app offers Uninstall for the integration while it is installed.
hasInstallButtonBooleanWhether the Toki app offers Install for the integration while it isn't installed.
docsUrlStringThe setup guide the Toki app links to as Guide; null or empty when there is none.
contactUsBooleanWhether the Toki app offers Contact Us for the integration, which you set up together with Toki.
nameString!The integration's display name, such as Judge.me.
domainString!The service's website, such as klaviyo.com; your store's domain for SHOPIFY.
logoString!The path of the integration's logo in the Toki app, such as /v0/integrations/klaviyo/logo.svg.
formFields[TokiIntegrationListFormItem!]!The settings form the Toki app shows for the integration, item by item. Fields are tied by name to the integration's settings in integrationInstall.
initialDataTokiJSONThe saved settings of an installed integration as JSON. Configured secrets are replaced with ********; send that mask back to keep a saved credential. null when it isn't installed.
Returns one integration from integrations, or null when it isn't available to your store.
identifierTokiIntegrationIdentifier!RequiredAn integration, by the service it connects to, such as KLAVIYO. SHOPIFY and WOOCOMMERCE stand for your store's platform, and CUSTOMER_METAFIELDS writes member properties to Shopify customer metafields.
TAGGUNATTENTIVEOMNISENDJUDGE_MESTAY_AIHEARTLANDTREMENDOUSSENDLANELISTRAKGORGIASKO_FISHOPIFYWOOCOMMERCEKLAVIYOBRAZEPOSTSCRIPTRECHARGEDRIPCHURN_BUSTERSNOWFLAKEGREENSPARKLOOPRELOADIFYCORSOLOOXOKENDOREVIEWS_IOSTAMPEDYOTPOFAIRINGSMARTRRSKIOCUSTOMER_METAFIELDSAn integration available to your store: whether it is installed, the settings form the Toki app shows for it and its saved settings.
identifierTokiIntegrationIdentifier!An integration, by the service it connects to, such as KLAVIYO. SHOPIFY and WOOCOMMERCE stand for your store's platform, and CUSTOMER_METAFIELDS writes member properties to Shopify customer metafields.
TAGGUNATTENTIVEOMNISENDJUDGE_MESTAY_AIHEARTLANDTREMENDOUSSENDLANELISTRAKGORGIASKO_FISHOPIFYWOOCOMMERCEKLAVIYOBRAZEPOSTSCRIPTRECHARGEDRIPCHURN_BUSTERSNOWFLAKEGREENSPARKLOOPRELOADIFYCORSOLOOXOKENDOREVIEWS_IOSTAMPEDYOTPOFAIRINGSMARTRRSKIOCUSTOMER_METAFIELDSinstalledBoolean!Whether the integration is installed on your store; for SHOPIFY, whether the Toki app is installed in your Shopify store.
hasManageButtonBooleanWhether the Toki app offers Manage for the integration while it is installed.
hasDeleteButtonBooleanWhether the Toki app offers Uninstall for the integration while it is installed.
hasInstallButtonBooleanWhether the Toki app offers Install for the integration while it isn't installed.
docsUrlStringThe setup guide the Toki app links to as Guide; null or empty when there is none.
contactUsBooleanWhether the Toki app offers Contact Us for the integration, which you set up together with Toki.
nameString!The integration's display name, such as Judge.me.
domainString!The service's website, such as klaviyo.com; your store's domain for SHOPIFY.
logoString!The path of the integration's logo in the Toki app, such as /v0/integrations/klaviyo/logo.svg.
formFields[TokiIntegrationListFormItem!]!The settings form the Toki app shows for the integration, item by item. Fields are tied by name to the integration's settings in integrationInstall.
initialDataTokiJSONThe saved settings of an installed integration as JSON. Configured secrets are replaced with ********; send that mask back to keep a saved credential. null when it isn't installed.
Lists the payouts members cashed out through Tremendous in your store, newest first. This is the payout history of the Tremendous integration in the Toki app.
reverseBooleanReverse the sort order.
A page of TokiTremendousCashout in nodes, with pageInfo for the next page. Each item:
A member's cash-out of points to a Tremendous payout, such as PayPal or a gift card.
idID!Also sent to Tremendous as the order's external_id.
createdAtString!When the member cashed out.
customerNameString!The member's name, as sent to Tremendous.
customerEmailString!The email address Tremendous sends the payout to.
productNameString!The payout method, such as PayPal USA or a gift card brand; the Tremendous product ID when Toki doesn't know the product.
pointsFloat!Points taken from the member's balance for the payout.
storeCreditNameString!The name of the balance the points came from.
payoutAmountFloat!The payout's value in currencyCode, as a decimal amount: points converted at the balance's default conversion rate.
currencyCodeString!The currency of payoutAmount: your store's currency.
statusTokiTremendousCashoutStatus!processing while Toki places the payout with Tremendous; sent once Tremendous has executed it and emails it to the member; refunded when Tremendous declined it or it failed or was cancelled, and the points went back to the member's balance; needs_review when Toki couldn't confirm the outcome, so the points stay deducted and the order needs checking in your Tremendous account.
processingsentrefundedneeds_reviewerrorMessageStringThe latest error Toki got while placing the payout, such as why Tremendous declined it; null once it is sent, or when there was no error.
Installs an integration on your store, or saves new settings for an installed one. Sending ******** keeps a saved secret. Other empty or omitted secrets also keep their saved values, except Multipass, where an empty or omitted token disables it. New secret values replace the saved credentials. Some integrations do more on save, for example Klaviyo receives a sample of every Toki event. Toki checks the values, with the other service where it can: problems come back in errors, though some rejected credentials fail the request instead. For SHOPIFY and WOOCOMMERCE it only saves the Multipass token, which SHOPIFY refuses while the customer authentication provider is set up and not DISABLED.
integrationTokiIntegrationInput!RequiredThe integration and its settings. Set exactly one field: the settings of the integration you install, or true for an integration without settings.
errors[TokiIntegrationInstallErrorsEntry!]Problems with the values you sent: key is the field, such as apiKey, and value the message. null on success.
Uninstalls an integration from your store and deletes the settings and credentials saved for it. Where it can, Toki also removes what it set up in the other service, such as its Judge.me webhook.
identifierTokiIntegrationIdentifier!RequiredAn integration, by the service it connects to, such as KLAVIYO. SHOPIFY and WOOCOMMERCE stand for your store's platform, and CUSTOMER_METAFIELDS writes member properties to Shopify customer metafields.
TAGGUNATTENTIVEOMNISENDJUDGE_MESTAY_AIHEARTLANDTREMENDOUSSENDLANELISTRAKGORGIASKO_FISHOPIFYWOOCOMMERCEKLAVIYOBRAZEPOSTSCRIPTRECHARGEDRIPCHURN_BUSTERSNOWFLAKEGREENSPARKLOOPRELOADIFYCORSOLOOXOKENDOREVIEWS_IOSTAMPEDYOTPOFAIRINGSMARTRRSKIOCUSTOMER_METAFIELDStrue when the change was made. Anything that stops it comes back as an error.
Starts importing your store's past paid, partially paid and partially refunded orders from Shopify, in the background. Orders Toki already has are skipped, customers who aren't members yet become members, and imported orders earn no rewards. A member whose imported order is older than their join date gets the order's date as their join date.
Nothing to set: pass an empty input: {}.
true when the change was made. Anything that stops it comes back as an error.
Returns your store's setup of customer sign-in with Toki: its status, the values to enter in your OIDC client and the URLs you saved.
Your store's customer sign-in with Toki, in which Toki is the OpenID Connect provider for an OIDC client such as Shopify customer accounts.
statusTokiCustomerAuthenticationProviderStatus!NOT_CONFIGURED until you generate credentials, DRAFT until you save callback and sign-out URLs, then READY. It becomes ACTIVE once your OIDC client exchanges an authorization code for tokens, and DISABLED when you disable it. Toki signs customers in only while it is READY or ACTIVE.
NOT_CONFIGUREDDRAFTREADYACTIVEDISABLEDissuerString!Toki's OIDC issuer, the iss of the tokens it signs. It is the same for every store.
discoveryUrlString!The OpenID Connect discovery URL to enter in your OIDC client.
clientIdStringThe client ID to enter in your OIDC client; null until you generate credentials.
secretConfiguredBoolean!Whether a client secret exists. The secret itself is returned only once, when Toki generates it.
redirectUris[String!]!The callback URLs your OIDC client may send as redirect_uri.
postLogoutRedirectUris[String!]!The sign-out URLs your OIDC client may send as post_logout_redirect_uri.
lastSuccessfulTokenExchangeAtStringWhen your OIDC client last exchanged an authorization code for tokens, in ISO 8601; null if it never has.
Generates OIDC credentials for your store, sets the status to DRAFT and returns the client secret once, in clientSecret; if credentials already exist, even disabled ones, nothing changes and clientSecret is null. Fails while a Multipass token is saved (see integrationInstall), or unless your published wallet_v2 design offers a sign-in method that Toki runs itself (passwordless, authCode, social or email-password in loginAuthorizationTypes).
Nothing to set: pass an empty input: {}.
The provider after the change, and the client secret when Toki generated one.
providerTokiCustomerAuthenticationProviderPayload!Your store's customer sign-in with Toki, in which Toki is the OpenID Connect provider for an OIDC client such as Shopify customer accounts.
clientSecretStringThe client secret Toki just generated. It is returned only here and only once, so store it now; null when no secret was generated.
Replaces the callback and sign-out URLs. An ACTIVE provider stays active; other statuses become READY, which also turns a DISABLED provider back on. Requires credentials, and the same Multipass and wallet checks as customerAuthenticationProviderCreate apply.
redirectUris[String!]!RequiredYour OIDC client's callback URLs, which it sends as redirect_uri. At least one; each must use https:// and have no fragment.
postLogoutRedirectUris[String!]!RequiredYour OIDC client's sign-out URLs, which it sends as post_logout_redirect_uri. At least one; each must use https:// and have no fragment.
The provider after the change, and the client secret when Toki generated one.
providerTokiCustomerAuthenticationProviderPayload!Your store's customer sign-in with Toki, in which Toki is the OpenID Connect provider for an OIDC client such as Shopify customer accounts.
clientSecretStringThe client secret Toki just generated. It is returned only here and only once, so store it now; null when no secret was generated.
Generates a new client secret and returns it once, in clientSecret. The previous secret keeps working for 24 hours, so you can update your OIDC client without interrupting sign-ins. Requires credentials, and fails while a Multipass token is saved.
Nothing to set: pass an empty input: {}.
The provider after the change, and the client secret when Toki generated one.
providerTokiCustomerAuthenticationProviderPayload!Your store's customer sign-in with Toki, in which Toki is the OpenID Connect provider for an OIDC client such as Shopify customer accounts.
clientSecretStringThe client secret Toki just generated. It is returned only here and only once, so store it now; null when no secret was generated.
Turns customer sign-in with Toki off: the status becomes DISABLED, Toki stops signing customers in and revokes the access it granted, including refresh tokens. Credentials and URLs are kept; customerAuthenticationProviderUpdateUrls turns it back on.
Nothing to set: pass an empty input: {}.
The provider after the change, and the client secret when Toki generated one.
providerTokiCustomerAuthenticationProviderPayload!Your store's customer sign-in with Toki, in which Toki is the OpenID Connect provider for an OIDC client such as Shopify customer accounts.
clientSecretStringThe client secret Toki just generated. It is returned only here and only once, so store it now; null when no secret was generated.