Skip to content

TikTok Events API

E-commerce

Send server-side Shopify sales to TikTok Events API

Early: stream completed Shopify orders to TikTok Events API as CompletePayment with ttclid, hashed email/phone, and matching pixel event IDs (check first results in Ads Manager).

Early: non-expiring TikTok OAuth + test code verification. Check your first results in TikTok Ads Manager.

5 min read10 min setupUpdated
DTC brand creator in a sage cardigan smiling dynamically while filming a product clip on a tripod smartphone inside a sunlit creator studio.
Match every completed Shopify checkout back to TikTok Ads server-side with ttclid and clean event ID deduplication.

Interactive TikTok Events API verification (Early)

Verify CompletePayment with a test code before flipping live sending on

Early: built to TikTok's published formats, not yet run on a shop's real ad account. Step through Test Events verification, pixel event_id deduplication, and what happens if a pixel is removed.

Early connector · Integrations -> TikTok Ads -> Sending conversions

Step 01

Early Status & Pixel Selection

Pixel px_tt_90210 active

Early connector: built to TikTok's published formats and not yet run on a shop's real ad account. Check your first results directly in TikTok Ads Manager.

TikTok for Business issues a non-expiring OAuth token. Disconnect revokes it unless another workspace in your org shares the same ad account.

Step 02

Server Payload & Deduplication

CompletePayment + event_id

event: "CompletePayment"
event_id: "ord_88421_px_match"
ttclid: "E.C.P.tt_92a7f41b0c" (as is)
email_sha256: "9f86d0...a08"
phone_sha256: "4e0740...fce"
test_event_code: "TEST94821"

Buyer email and phone are hashed before they leave Apex; ttclid goes with them as is.

Step 03

TikTok Ads Manager Result

Visible in Test Events only

Event lands in TikTok Events Manager -> Test Events with code TEST94821. Live campaign attribution and bidding stay untouched.

Configure this under Integrations -> TikTok Ads -> Sending conversions. Run a test code first, clear it when ready, and confirm your first live CompletePayment events inside TikTok Ads Manager.
Verify your first real sends in TikTok Ads Manager

The complete playbook

Step-by-step setup, worked math, and real limits.

Steps, technical details, and live pricing.

How it works without Apex

Connect Shopify and TikTok for Business in Apex via OAuth (non-expiring token). Under Integrations -> TikTok Ads -> Sending conversions, pick your pixel, run a test code, then turn live sending on. Labeled Early (built to TikTok's published formats, not yet run on a shop's real ad account). Buyer email and phone are hashed before they leave Apex; ttclid goes with them as is; each event carries the same event id your TikTok pixel uses.

How Apex does it for you

Apex captures ttclid first-party on landing, streams completed Shopify orders server-side as CompletePayment (Early) with hashed email/phone and matching pixel event IDs, routes mobile app sales to your TikTok app ID, and keeps test codes out of live reporting.

How to set this up in 5 steps

  1. Connect TikTok for Business and Shopify in Apex

    Authorize TikTok for Business via OAuth (TikTok issues a non-expiring token) and connect your Shopify store in the same workspace.

  2. Capture ttclid first-party on your storefront

    The Apex storefront snippet persists ttclid when shoppers land from TikTok ads, even if checkout finishes inside Apple Pay, Shop Pay, or an external browser tab.

  3. Pick your TikTok pixel under Integrations -> TikTok Ads -> Sending conversions

    Open Integrations -> TikTok Ads -> Sending conversions, pick your target TikTok pixel (and mobile app ID if you also run app campaigns), and enable website purchases as CompletePayment. Note: if you remove the pixel later, website conversions stop until you pick one again.

  4. Verify with a TikTok Events Manager test code first

    Enter your TikTok Events Manager test code and fire a test send. Buyer email and phone are hashed before they leave Apex; ttclid goes with them as is; each event carries the same event id your TikTok pixel uses so TikTok counts each sale once, while test codes stay out of live reporting.

  5. Switch live sending on and verify your first real sends in Ads Manager

    Because outbound TikTok Events API is labeled Early (built to TikTok's published formats, not yet run on a shop's real ad account), check your first results in TikTok Ads Manager alongside Apex's Shopify ROAS.

Why in-app browsers drop sales

TikTok shoppers convert fast on mobile, often moving from TikTok's in-app browser straight into Shop Pay or Apple Pay and closing the tab as soon as the confirmation sheet vibrates. Whenever that browser closes early or blocks third-party scripts, TikTok's client-side pixel drops the CompletePayment event and your ad set loses the exact conversion signal it needs to exit learning.

Fulfillment manager packing eco-friendly mailers inside a bright sunlit warehouse studio.
Each CompletePayment event carries the same event id your TikTok pixel uses so TikTok counts each sale once.

What Apex sends as CompletePayment

Once Shopify and TikTok for Business are connected in Apex (using TikTok's non-expiring OAuth token), open Integrations -> TikTok Ads -> Sending conversions and pick your TikTok pixel. Apex sends every completed website order as CompletePayment:

  • Buyer email and phone are hashed before they leave Apex
  • `ttclid` goes with them as is, captured first-party when the shopper landed on your storefront
  • Each event carries the same event id your TikTok pixel uses so TikTok counts each sale once across browser and server delivery
  • App-to-app routing sends in-app sales to your TikTok mobile app ID when configured

Keep in mind one operational detail: if you remove the pixel, website conversions stop until you pick one again.

Young shopper sitting on a sunny park bench smiling while browsing products on her smartphone.
Recover orders dropped when mobile shoppers jump from TikTok's in-app browser straight into Apple Pay or Shop Pay checkout.

Testing safely & Early check

Outbound TikTok Events API is labeled Early in Apex: it is built to TikTok's published formats, and we haven't yet run it on a shop's real ad account. Before flipping live traffic on, paste a test code from TikTok Events Manager into Integrations -> TikTok Ads -> Sending conversions and fire a test send so CompletePayment verifies cleanly without touching live ad reporting. Once switched on, check your first live results directly in TikTok Ads Manager alongside Apex's Shopify ROAS.

What this costs on Apex

Live Apex pricing · Pay-as-you-go

Estimated Apex cost for DTC store with 25,000 monthly visits and 2,000 TikTok Events API order sends

$0 / month

Covered by monthly free allowances.

Apex meter / scheduleScenario volumeFree allowance / basisRateApex cost
Events
Storefront visits and ttclid capture (25,000 monthly web events)
25,000 / mo1M / month$5 per 100K events$0
Attribution
Attributed paid-channel TikTok orders (1,000 TikTok-attributed orders tracked cleanly)
1,000 / mo1.5K / month$0.05 per attributed conversion$0
Ad platform activations
Server-side TikTok CompletePayment sends (Deduplicated with browser pixel via matching event ID)
2,000 / mo100K / month$10 per 100K sends$0

TikTok Ads spend sync and TikTok Events API outbound sending run inside one Apex workspace. History: 13 months no card, 3 years with card, 7 years once you've paid an invoice. Live pricing.

Third-party and campaign costs (not paid to Apex)

ExpenseTypical rangeNotes
TikTok Events API & Shopify webhooks$0/moNo separate tag-manager server hosting required

Launch with your AI agent

Preview and verify your TikTok Events API send rule via MCP

After connecting Shopify and TikTok for Business, ask your coding agent to preview your TikTok CompletePayment payload and check outbound send status.

1Add Apex to your editor

Install in Grok Build

Opens Grok Build and adds Apex. Nothing to configure.

2Tell your agent

Prompt for your AI editor

In my Apex workspace, call list_ad_platform_sends and preview_ad_platform_send for tiktok-ads so I can confirm our Shopify CompletePayment mapping, ttclid capture, and deduplication event IDs before turning live sending on.

The first time your agent calls Apex, it gives you a link to approve in the browser. There is no key to paste. In Grok Build you can also run /setup-apex.

See how editor setup works step by step

shopify-storefront · Grok BuildWaiting for approval
Agent
You

Set up Apex in this repo.

Set up Apex · 0 of 4
  • Signed in
  • Workspace named
  • Events arriving
  • Conversion picked
  • Stripe

Your move

Stop losing TikTok Shop & web buyers inside mobile in-app browsers.

Early: send deduplicated CompletePayment events with ttclid and SHA-256 hashed customer fields straight from Shopify in 10 minutes, and confirm your first results in TikTok Ads Manager.