TanqoryDocs

tanqoryExtMessagingAutomation

  • Query
  • Other operations

Arguments

ArgumentTypeRequiredDefault
idID!Required

Returns

TanqoryExtMessagingAutomation

FieldTypeDescription
channels[TanqoryExtMessagingChannel!]!

The channels of its messages.

createdAtDateTime!
delayMinutesInt!

Minutes between the trigger and the first message.

discountCodeString

The discount's code (its first).

discountIdID

The code discount its emails offer as {{ discount_code }}; null when none is chosen.

discountUsableBoolean!

Whether the chosen discount can be used now (started, not ended); emails naming the code are skipped otherwise.

idID!
lapseDaysInt

NO_ORDER_60_DAYS: days since the customer's last order (default 60); null for other triggers.

lastTriggeredAtDateTime
messages[TanqoryExtMessagingMessage!]!
nameString!
offersDiscountBoolean!

Whether it offers a discount (its template does, or an email names {{ discount_code }}): it is turned on only with one.

sendToTanqoryExtAbandonedCheckoutEmailSendTo

CHECKOUT_ABANDONED automations: who gets the email (SUBSCRIBERS unless the merchant chose ANYONE). Null for the other triggers.

statusTanqoryExtMessagingAutomationStatus!
templateKeyString!
triggerString!

CHECKOUT_ABANDONED, CART_ABANDONED, PRODUCT_BROWSE_ABANDONED, CUSTOMER_SUBSCRIBED, ORDER_PAID, FIRST_ORDER, FIRST_TWO_ORDERS (a thank-you after the first and after the second order, one step each), FIRST_ORDER_NEAR_RETAIL (a first online order shipped near one of the store's retail locations), NO_ORDER_60_DAYS (lapseDays since the last order), CUSTOMER_BIRTHDAY or CUSTOMER_TAGGED_VIP (tagged VIP, or past the VIP thresholds).

vipMinOrdersInt

CUSTOMER_TAGGED_VIP: besides the VIP tag, at least this many paid orders and vipMinSpent spent make a customer VIP; null = the tag only.

vipMinSpentDecimal

CUSTOMER_TAGGED_VIP: the amount spent (store currency, decimal string) that, with vipMinOrders, makes a customer VIP.

Example request

A starting point: required arguments as variables and a few fields of the result. Replace the placeholders.

Set STORE_ID and TANQORY_ACCESS_TOKEN in your environment first (Make your first API call).

curl
curl -X POST "https://api.tanqory.com/admin/2026-10/stores/$STORE_ID/graphql" \
  -H "Authorization: Bearer $TANQORY_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  --data '{"query":"query TanqoryExtMessagingAutomation($id: ID!) {\n  tanqoryExtMessagingAutomation(id: $id) {\n    channels\n    createdAt\n    delayMinutes\n    discountCode\n    discountId\n    discountUsable\n    id\n    lapseDays\n    lastTriggeredAt\n    messages { id }\n  }\n}","variables":{"id":"gid://tanqory/Type/id"}}'

Built from commit c0b3fb3fdef7 · API version 2026-10