Other operations
Admin API: 32 operations and 59 types.
Queries 14
tanqoryExtAiAutoTopUpThe store's AI credit auto top-up.tanqoryExtAiCreditsThe store's AI credits: balance, reset date, purchased lots with their expiry, packs, purchases, alerts.tanqoryExtAiSpendControlsThe store's AI spend controls.tanqoryExtAiUsageThe store's AI usage between since and until (default: the current credit period up to now; at most 366 days).tanqoryExtMessagingAutomationtanqoryExtMessagingAutomationsThe store's automations, newest first.tanqoryExtMessagingEmailPreviewAn email design rendered as it would be sent (the email editor's live preview): the store's branding, products, collections and footer.tanqoryExtMessagingFiguresFigures of the store's email messages sent from since (null = all kept history) to until (null = now).tanqoryExtMessagingMessageOne message (a campaign or an automation step).tanqoryExtMessagingMessagesCampaign messages (not automation steps), newest first; channel narrows, query matches the subject.tanqoryExtMessagingSettingsThe store's Messaging settings (defaults until the first save).tanqoryExtMessagingStartingPointOne of Create message's email starting points (templateKey, as tanqoryExtMessagingMessageCreate takes it) with the design a new message from it start…tanqoryExtMessagingTemplatetanqoryExtMessagingTemplatesThe store's saved templates, newest first (at most 250); channel narrows, query matches the name.
Mutations 18
tanqoryExtAiAutoTopUpUpdateSets the store's AI credit auto top-up.tanqoryExtAiCreditsPurchaseBuys an AI credit pack on the store's Tanqory bill: a one-time charge on its own invoice, paid at once with the bill's default payment method.tanqoryExtAiSpendControlsUpdateSets the store's AI spend controls (a monthly cap for the store, caps per staff member).tanqoryExtMessagingAutomationCreateCreates an automation from a template (with its messages), off until turned on.tanqoryExtMessagingAutomationDeleteDeletes an automation and its messages.tanqoryExtMessagingAutomationUpdateRenames, changes the wait, or turns an automation on / off (its messages follow: ACTIVE / INACTIVE).tanqoryExtMessagingMessageCreateCreates a DRAFT campaign message.tanqoryExtMessagingMessageDeleteDeletes a campaign message.tanqoryExtMessagingMessageDuplicateCopies a campaign message as a DRAFT named "Copy of …".tanqoryExtMessagingMessageSendSends an email campaign now: it goes to each recipient subscribed to email marketing (the segment's, or every subscriber), once, minus suppressed and…tanqoryExtMessagingMessageSendTestSends a test of a message to up to 5 addresses (marked as a test, no unsubscribe from the store's list).tanqoryExtMessagingMessageUpdateUpdates a message: only the fields given change.tanqoryExtMessagingSenderVerificationResendSends the confirmation link of the pending sender email again.tanqoryExtMessagingSettingsUpdateSaves Messaging settings: only the fields given change.tanqoryExtMessagingTemplateCreateSaves a template, from scratch or from a message (messageId).tanqoryExtMessagingTemplateDeleteDeletes a template; messages made from it stay as they are.tanqoryExtMessagingTemplateDuplicateCopies a template as "Copy of …".tanqoryExtMessagingTemplateUpdateRenames or edits a template: only the fields given change (channel and messageId are create only).
Objects 40
TanqoryExtAiAutoTopUpThe store's AI credit auto top-up (card AI-9, PLATFORM §6.7): when the credits left fall below thresholdCredits, a pack is bought on the store's Tanq…TanqoryExtAiAutoTopUpPayloadTanqoryExtAiCreditAlertA threshold crossed in the current period (PLATFORM §6.8).TanqoryExtAiCreditLotPurchased credits that expire together (one pack bought, or one adjustment): spent soonest-expiry first.TanqoryExtAiCreditPackA pack of AI credits the store can buy (PLATFORM §6.6).TanqoryExtAiCreditPurchaseTanqoryExtAiCreditsThe store's AI credits, from the cell's copy of the ledger (no central call).TanqoryExtAiCreditsPurchasePayloadTanqoryExtAiCreditsUserErrorTanqoryExtAiSpendControlsThe store's AI spend controls (PLATFORM §6.8).TanqoryExtAiSpendControlsPayloadTanqoryExtAiStaffCapA cap on AI credits for one staff member, per credit period.TanqoryExtAiUsageThe store's AI usage over a time range (PLATFORM §6.9): totals, breakdowns and the activity, newest first.TanqoryExtAiUsageConnectionTanqoryExtAiUsageGroupCredits, uses and operations of one group of the usage breakdown.TanqoryExtAiUsageRecordOne AI operation, a model call (failed ones at 0 credits).TanqoryExtAiUseOne use of AI: what a staff member, an app or Tanqory asked for once.TanqoryExtAiUseConnectionTanqoryExtMessagingAutomationTanqoryExtMessagingAutomationFiguresTanqoryExtMessagingAutomationPayloadTanqoryExtMessagingDeletePayloadTanqoryExtMessagingEmailPreviewTanqoryExtMessagingFigureDayOne day of the store's calendar: sends by their send day, orders by their order day.TanqoryExtMessagingFiguresTanqoryExtMessagingFigureSetMessaging figures from delivery events and order attribution (modules/messaging/figures.ts).TanqoryExtMessagingMessageTanqoryExtMessagingMessageFiguresTanqoryExtMessagingMessagePayloadTanqoryExtMessagingQuietHoursEmail quiet hours (automations only: a campaign goes out at the time the merchant chose).TanqoryExtMessagingSectionPreviewOne section of a previewed email: its id in the design (header, footer, or a content section's) and its HTML.TanqoryExtMessagingSettingsThe store's Messaging settings (Apps > Messaging > Settings).TanqoryExtMessagingSettingsPayloadTanqoryExtMessagingSmsSettingsSMS settings.TanqoryExtMessagingStartingPointAn email starting point and its design (tanqoryExtMessagingStartingPoint).TanqoryExtMessagingTemplateA saved template of the store (Apps > Messaging > Templates): content to start messages from.TanqoryExtMessagingTemplatePayloadTanqoryExtMessagingUnfinishedSectionA section an email can't be sent with yet, and what to do about it (the editor's "Finish N sections before sending").TanqoryExtMessagingUserErrorTanqoryExtMessagingUtmUTM parameters added to the links of a channel's messages (utm_campaign is the message's name and id).
Input objects 11
TanqoryExtAiAutoTopUpInputTanqoryExtAiSpendControlsInputTanqoryExtAiStaffCapInputTanqoryExtMessagingAutomationCreateInputTanqoryExtMessagingAutomationUpdateInputTanqoryExtMessagingMessageInputTanqoryExtMessagingQuietHoursInputTanqoryExtMessagingSettingsInputTanqoryExtMessagingSmsSettingsInputTanqoryExtMessagingTemplateInputTanqoryExtMessagingUtmInput
Enums 7
TanqoryExtAbandonedCheckoutEmailSendToWho gets the abandoned checkout email ("Send to").TanqoryExtAiCreditPurchaseStatusTanqoryExtAiCreditsUserErrorCodeTanqoryExtMessagingAutomationStatusTanqoryExtMessagingChannelTanqoryExtMessagingMessageStatusTanqoryExtMessagingSenderEmailStatus