Issued gift cards and the gift card products you sell.
Toki issues each gift card in all your stores, both in Toki and as a Shopify gift card, and keeps the balances in step when a card is spent. Gift card products are gift cards you sell: Toki creates and maintains a Shopify product for each, and issues a gift card for every one sold.
giftCardsLists the gift cards in the current store, newest first.giftCardUsagesLists the orders paid with a gift card in any of your stores, newest first.giftCardBalanceUpdateSets a gift card's balance in all your stores, adjusting each Shopify gift card by the difference.giftCardDeliveryUpdateSchedules the delivery of a gift card: Toki's gift card email, the Product Gift Card Delivered event for your email tools, or both (see deliveryProvider).giftCardCreateIssues a gift card with your code and amount in each of your stores, in Toki and in Shopify.giftCardCodeGenerateReturns a random 16-character code of lowercase letters and digits, without o and 0, for giftCardCreate.giftCardProductReturns a gift card product, or null if there is none with this ID.giftCardProductsLists your gift card products, newest first.giftCardProductCreateCreates a gift card product and a Shopify product for it in each of your stores: product type Gift Card, vendor Toki, and an Amount option with one variant per amount that isn't taxable and needs no shipping.giftCardProductUpdateUpdates a gift card product and its Shopify products: status and amounts always, and title, description and image when syncEnabled is true.giftCardProductDeleteDeletes a gift card product and sets its Shopify products to draft, so customers can't buy it.Lists the gift cards in the current store, newest first.
queryStringPart of the code, order ID, or holder's or gifter's email.
reverseBooleanReverse the sort order.
giftCardProductIdStringOnly gift cards bought through this gift card product.
userIdStringOnly gift cards this member holds or gifted.
A page of TokiGiftCard in nodes, with pageInfo for the next page. Each item:
A gift card issued through Toki, as recorded for one of your stores.
orderIdStringThe numeric ID of the Shopify order the gift card was bought in; null unless it was bought through a gift card product.
shopDomainString!The store this record belongs to. Toki issues each gift card in all your stores, one record per store.
codeString!The code customers enter at checkout.
balanceString!The remaining value in currencyCode, as a decimal string such as 25.5. Toki refreshes it from Shopify when it processes an order paid with the gift card.
currencyCodeStringThe gift card's three-letter currency code, such as USD.
userIdIDThe member who holds the gift card.
userEmailStringThe email of the member in userId.
userPhoneStringThe phone number of the member in userId.
giftedByIdIDThe member who bought the gift card for someone else, if any.
giftedByEmailStringThe email of the member in giftedById.
giftedByPhoneStringThe phone number of the member in giftedById.
createdAtStringupdatedAtStringexpiresAtStringToki issues gift cards without an expiry date, so this is null.
shopifyIdStringThe GID of the gift card in this store's Shopify admin, such as gid://shopify/GiftCard/123; null if it doesn't exist in Shopify.
deliverAtStringWhen the gift card is scheduled to be delivered, or was delivered, to its recipient; null if no delivery was scheduled.
internalProductIdIDThe ID of the TokiGiftCardProduct the gift card was bought through; null if it was issued another way.
noteStringThe message stored with the gift card, such as the buyer's personal note. Delivery emails show it where their template has {{note}}.
usagesCountInt!How many orders in shopDomain were paid with the gift card.
usagesTokiGiftCardUsageConnection!Orders in shopDomain that were paid with the gift card, newest first.
Lists the orders paid with a gift card in any of your stores, newest first. Toki records a usage when it processes a Shopify order paid with the gift card.
reverseBooleanReverse the sort order.
codeString!RequiredThe gift card's code.
A page of TokiGiftCardUsage in nodes, with pageInfo for the next page. Each item:
An order that was paid with a gift card.
idID!orderIdString!The numeric ID of the Shopify order.
shopDomainString!The store where the order was placed.
createdAtString!When Toki processed the order and recorded the usage.
Sets a gift card's balance in all your stores, adjusting each Shopify gift card by the difference. Where a record has no Shopify gift card yet (shopifyId is null), Toki creates one with the new balance if it is above 0. Each store is updated on its own, and errors lists the ones that failed.
codeString!RequiredThe code of the gift card to update.
newBalanceFloat!RequiredThe new balance in the gift card's currency, as a decimal amount such as 25.5. 0 empties the gift card but doesn't disable it in Shopify.
resultBoolean!true if every store was updated.
errors[String!]!One message per store that failed, starting with Shop and the store's domain.
Schedules the delivery of a gift card: Toki's gift card email, the Product Gift Card Delivered event for your email tools, or both (see deliveryProvider). It replaces a delivery that hasn't gone out yet; once one has gone out, calling it again delivers the gift card again.
codeString!RequiredThe code of the gift card to update.
deliverAtStringWhen to deliver, as an ISO 8601 date-time in UTC such as 2025-12-24T09:00:00Z. A time in the past delivers right away. Required unless sendNow is true.
sendNowBooleantrue delivers right away and ignores deliverAt.
giftCardSubjectStringThe email subject for this delivery, used when useCustomTemplate is true.
giftCardTemplateStringThe HTML email body for this delivery, used when useCustomTemplate is true. The subject and body can use {{code}}, {{amount}}, {{note}}, {{recipientEmail}} and {{domain}}.
useCustomTemplateBooleantrue uses giftCardSubject and giftCardTemplate instead of your gift card email template. Both are then required, unless deliveryProvider is external.
userIdStringThe member to deliver to instead of the gift card's holder. The holder doesn't change.
deliveryProviderTokiGiftCardDeliveryUpdateDeliveryProviderWhat the delivery sends. default, or leaving it out, follows the gift card product's delivery provider: Toki's email if that is toki or the gift card has no product, unless the assignCustomerToGiftCard loyalty setting is on, plus the Product Gift Card Delivered event. toki sends only the email, external only the event, and both sends both.
defaulttokiexternalbothtrue when the change was made. Anything that stops it comes back as an error.
Issues a gift card with your code and amount in each of your stores, in Toki and in Shopify. If that fails in some stores, errors lists them; if it fails in all of them, the call returns an error. To email the gift card to the member, call giftCardDeliveryUpdate.
codeString!RequiredThe gift card code: 8 to 20 letters and digits, as Shopify requires. Stored in lowercase. A retry completes missing cards after partial creation and skips cards already created in Shopify. If all active stores already have the card, the request is rejected. giftCardCodeGenerate returns a random code.
amountFloat!RequiredThe gift card's value in the current store's currency, as a decimal amount such as 25.5.
userIdStringThe member who holds the gift card. Leave it out for no holder.
noteStringA note stored with the gift card. It isn't sent to Shopify, but delivery emails show it where their template has {{note}}, as the default template does.
codeString!The normalized lowercase code.
resultBoolean!Always true; if no store could create the gift card, the call fails instead.
errors[TokiGiftCardCreateErrors!]!The stores where creating the gift card failed, and why. New local records are saved after Shopify creation succeeds. A retry can finish missing cards without recreating successful ones.
Returns a random 16-character code of lowercase letters and digits, without o and 0, for giftCardCreate. It doesn't create a gift card or reserve the code.
Nothing to set: pass an empty input: {}.
codeString!Returns a gift card product, or null if there is none with this ID.
idID!RequiredA gift card you sell, as a Shopify product in each of your stores with one variant per amount.
idID!merchantIdID!Your merchant ID, shown under Settings in the Toki app.
nameString!The title Toki gives the Shopify products when it creates them, and on each update when syncEnabled is true.
descriptionStringThe Shopify product description, as HTML; set like name.
imageUrlStringThe URL of the product image; set like name.
options[TokiGiftCardProductOptions!]!The amounts customers choose from, each a variant of the Shopify products.
isActiveBoolean!Whether Toki sets the Shopify products to active (true) or draft.
deliveryProviderStringtoki if Toki emails the gift cards bought through the product; otherwise Toki leaves the emails to your connected email tools.
syncEnabledBoolean!Whether updates overwrite the title, description and image of the Shopify products.
fulfillmentTokiGiftCardProductFulfillment!Whether Toki fulfills purchases of the product itself, which decides when it issues the gift cards.
productDataTokiGiftCardProductProductData!The Shopify product Toki manages for this gift card product in each store.
Lists your gift card products, newest first.
reverseBooleanReverse the sort order.
A page of TokiGiftCardProduct in nodes, with pageInfo for the next page. Each item:
A gift card you sell, as a Shopify product in each of your stores with one variant per amount.
idID!merchantIdID!Your merchant ID, shown under Settings in the Toki app.
nameString!The title Toki gives the Shopify products when it creates them, and on each update when syncEnabled is true.
descriptionStringThe Shopify product description, as HTML; set like name.
imageUrlStringThe URL of the product image; set like name.
options[TokiGiftCardProductOptions!]!The amounts customers choose from, each a variant of the Shopify products.
isActiveBoolean!Whether Toki sets the Shopify products to active (true) or draft.
deliveryProviderStringtoki if Toki emails the gift cards bought through the product; otherwise Toki leaves the emails to your connected email tools.
syncEnabledBoolean!Whether updates overwrite the title, description and image of the Shopify products.
fulfillmentTokiGiftCardProductFulfillment!Whether Toki fulfills purchases of the product itself, which decides when it issues the gift cards.
productDataTokiGiftCardProductProductData!The Shopify product Toki manages for this gift card product in each store.
Creates a gift card product and a Shopify product for it in each of your stores: product type Gift Card, vendor Toki, and an Amount option with one variant per amount that isn't taxable and needs no shipping. A store where that fails is left out of productData; if every store fails, the call returns an error.
nameString!RequiredThe title of the Shopify product.
descriptionStringThe Shopify product description, as HTML. On update, null or leaving it out keeps the current one.
imageUrlStringThe URL of the image Toki adds to the Shopify product.
options[TokiGiftCardProductCreateOptionsInput!]!RequiredThe amounts customers choose from, at least one. Each is a variant of the Shopify product; on update, Toki matches them to the existing variants by position.
isActiveBoolean!Requiredtrue sets the Shopify products to active, false to draft.
deliveryProviderStringtoki to have Toki email the gift cards bought through the product. Any other value, such as external, or null leaves the emails to your connected email tools, which get the gift card events either way. Leaving it out sets null.
syncEnabledBooleantrue makes each update overwrite the title, description and image of the Shopify products with name, description and imageUrl. Creating always sets them, and status and amounts are always kept in sync. Defaults to false.
fulfillmentTokiGiftCardProductCreateFulfillmentInputWhether Toki fulfills purchases of the product itself, which decides when it issues the gift cards. Defaults to { enabled: true }.
A gift card you sell, as a Shopify product in each of your stores with one variant per amount.
idID!merchantIdID!Your merchant ID, shown under Settings in the Toki app.
nameString!The title Toki gives the Shopify products when it creates them, and on each update when syncEnabled is true.
descriptionStringThe Shopify product description, as HTML; set like name.
imageUrlStringThe URL of the product image; set like name.
options[TokiGiftCardProductOptions!]!The amounts customers choose from, each a variant of the Shopify products.
isActiveBoolean!Whether Toki sets the Shopify products to active (true) or draft.
deliveryProviderStringtoki if Toki emails the gift cards bought through the product; otherwise Toki leaves the emails to your connected email tools.
syncEnabledBoolean!Whether updates overwrite the title, description and image of the Shopify products.
fulfillmentTokiGiftCardProductFulfillment!Whether Toki fulfills purchases of the product itself, which decides when it issues the gift cards.
productDataTokiGiftCardProductProductData!The Shopify product Toki manages for this gift card product in each store.
Updates a gift card product and its Shopify products: status and amounts always, and title, description and image when syncEnabled is true. A store without the product gets a new one; stores where the update fails aren't reported. Leaving out deliveryProvider, syncEnabled or fulfillment resets it to its default.
idID!RequirednameString!RequiredThe title of the Shopify product.
descriptionStringThe Shopify product description, as HTML. On update, null or leaving it out keeps the current one.
imageUrlStringThe URL of the image Toki adds to the Shopify product.
options[TokiGiftCardProductCreateOptionsInput!]!RequiredThe amounts customers choose from, at least one. Each is a variant of the Shopify product; on update, Toki matches them to the existing variants by position.
isActiveBoolean!Requiredtrue sets the Shopify products to active, false to draft.
deliveryProviderStringtoki to have Toki email the gift cards bought through the product. Any other value, such as external, or null leaves the emails to your connected email tools, which get the gift card events either way. Leaving it out sets null.
syncEnabledBooleantrue makes each update overwrite the title, description and image of the Shopify products with name, description and imageUrl. Creating always sets them, and status and amounts are always kept in sync. Defaults to false.
fulfillmentTokiGiftCardProductCreateFulfillmentInputWhether Toki fulfills purchases of the product itself, which decides when it issues the gift cards. Defaults to { enabled: true }.
A gift card you sell, as a Shopify product in each of your stores with one variant per amount.
idID!merchantIdID!Your merchant ID, shown under Settings in the Toki app.
nameString!The title Toki gives the Shopify products when it creates them, and on each update when syncEnabled is true.
descriptionStringThe Shopify product description, as HTML; set like name.
imageUrlStringThe URL of the product image; set like name.
options[TokiGiftCardProductOptions!]!The amounts customers choose from, each a variant of the Shopify products.
isActiveBoolean!Whether Toki sets the Shopify products to active (true) or draft.
deliveryProviderStringtoki if Toki emails the gift cards bought through the product; otherwise Toki leaves the emails to your connected email tools.
syncEnabledBoolean!Whether updates overwrite the title, description and image of the Shopify products.
fulfillmentTokiGiftCardProductFulfillment!Whether Toki fulfills purchases of the product itself, which decides when it issues the gift cards.
productDataTokiGiftCardProductProductData!The Shopify product Toki manages for this gift card product in each store.
Deletes a gift card product and sets its Shopify products to draft, so customers can't buy it. The Shopify products stay in your catalog, and gift cards already issued keep working.
idID!Requiredtrue when the change was made. Anything that stops it comes back as an error.