Skip to main content
Xero → TikTokIntegration guide

Connecting Xero to TikTok Events API

Xero holds the invoice and the reconciliation, which makes it the definitive revenue record for many service and trade businesses. TikTok's audience skews to exactly the browsers and app contexts where browser-side tracking performs worst. The join between them succeeds or fails on one thing: whether the ttclid reaches the Xero invoice before the conversion happens, because TikTok can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

Xero to TikTok: when invoiced work started with a video

Store ttclid server-side when the TikTok webview loads and send SubmitForm from the server at inquiry with ttclid, hashed email and phone, and an event_id shared with the pixel. When Xero records the invoice paid, send CompletePayment with the amount and the same hashed data. TikTok optimizes on the inquiry; payments usually land outside its windows.

Some invoice-based businesses do get work from TikTok, usually home services, renovations and trades whose before-and-after videos travel locally. The lead comes in through a form opened in TikTok's in-app browser, and the payment arrives in Xero weeks later. Two things have to survive that gap: the ttclid, captured and stored server-side the moment the webview loads because it is unreliable after that, and a contact email that matches the person who submitted the form.

Send SubmitForm from the server when the inquiry arrives, with the ttclid, hashed email and phone, and an event_id shared with the pixel. When Xero records the invoice paid, send CompletePayment with the amount paid and the same hashed contact data. Check TikTok's current limits on how old an event timestamp may be, and send each payment as it is recorded rather than in a monthly batch.

The paid invoice will usually land outside TikTok's attribution windows, which are measured in days or weeks from the click, so TikTok will rarely credit it in reporting. That makes the inquiry event the one TikTok actually optimizes on. Use the Xero payments to check whether TikTok leads pay at a rate comparable to search leads, and report that in your own figures.

Xero → TikTok · what breaks

Why this join usually fails — Xero → TikTok

  1. 01

    The ttclid never reaches Xero

    Like any accounting system, Xero has no marketing context of its own. The identifier must be written onto the contact record by whatever creates it, and in many businesses that is a manual step which will be applied inconsistently unless it is automated.

  2. 02

    Payment terms separating the sale from the money

    An invoice issued in March and paid in May is one sale and two dates. Which one the conversion uses has to be a decision rather than an accident.

  3. 03

    The ttclid is lost in the in-app browser

    TikTok traffic arrives through an in-app webview whose storage behavior is inconsistent. An identifier captured but not immediately persisted server-side often is not there by the time the conversion happens.

  4. 04

    Nothing reconciles afterwards

    TikTok Events Manager shows received events and their match status. As with Meta, arriving is not the test — deduplicated and matched is. Reconcile TikTok's reported conversions against the source system for the same window.

Xero → TikTok · the fix

What working looks like — Xero → TikTok

  • The ttclid on every invoice

  • Conversions arriving in TikTok

    Events appear in TikTok Events Manager, deduplicated against the pixel, and become usable for optimization.

  • Reconciled against the source

Xero → TikTok · architecture

How Xero and TikTok actually connect

  1. 1

    Xero holds the truth

    Xero's bank reconciliation is what makes it unusually trustworthy as a source of truth — an invoice marked paid and reconciled is money that actually arrived, which is a stronger guarantee than most systems offer.

  2. 2

    TikTok Events API needs a click to match

    TikTok matches server events using ttclid where available, falling back to hashed contact information. Both should be sent — the fallback is what carries the events where the click ID did not survive.

  3. 3

    The identifier is the bridge

    The ttclid, captured at the visit and carried into the Xero invoice.

  4. 4

    The event source decides reliability

    Fire on payment, not on invoice issue. Trade businesses on thirty-day terms will otherwise report revenue a month before it exists.

  5. 5

    Deduplication at the destination

    TikTok deduplicates on event_id, the same pattern as Meta: the pixel and the Events API must send the same event_id for the same conversion. Mismatched IDs mean double counting.

Xero → TikTok · normal or broken

Working vs. broken, side by side — Xero → TikTok

Normal, not a fault

  • The ttclid present on the invoice

  • Sent from the Xero invoice payment webhook

  • Deduplicated correctly

    TikTok deduplicates on event_id, the same pattern as Meta: the pixel and the Events API must send the same event_id for the same conversion. Mismatched IDs mean double counting.

  • Reconciles with the source

Actually broken

  • The ttclid missing on most records

    Like any accounting system, Xero has no marketing context of its own. The identifier must be written onto the contact record by whatever creates it, and in many businesses that is a manual step which will be applied inconsistently unless it is automated.

  • Sent from the browser

    An invoice issued in March and paid in May is one sale and two dates. Which one the conversion uses has to be a decision rather than an accident.

  • Counted twice, or not at all

    TikTok traffic arrives through an in-app webview whose storage behavior is inconsistent. An identifier captured but not immediately persisted server-side often is not there by the time the conversion happens.

  • Nobody has reconciled it

Xero → TikTok · diagnose

Diagnostic order — Xero → TikTok

  1. 01

    Count invoices carrying the ttclid

  2. 02

    Follow one real conversion end to end

  3. 03

    Check whether the conversion fires on issue or on payment

    On terms-based businesses this single choice moves the numbers by a full billing cycle.

  4. 04

    Measure ttclid capture rate on TikTok traffic specifically

    Not on all traffic. TikTok's in-app browser is the failure case, so a healthy overall capture rate can hide a poor one on exactly the traffic that matters.

  5. 05

    Read the match rate, not the success message

    TikTok Events Manager shows received events and their match status. As with Meta, arriving is not the test — deduplicated and matched is. Reconcile TikTok's reported conversions against the source system for the same window.

Xero → TikTok · prove

How it gets proven — Xero → TikTok

Source of truth

Xero's paid invoices by payment date, reconciled against the bank feed.

  • The ttclid confirmed present on a live invoice.
  • Deduplication confirmed in Events Manager, and ttclid capture rate measured on TikTok traffic specifically.
  • A paid invoice confirmed reconciled against the bank feed before being counted.

Xero → TikTok · free audit

What we check in the free audit

  • Count invoices carrying the ttclid
  • Follow one real conversion end to end
  • Check whether the conversion fires on issue or on payment
  • Measure ttclid capture rate on TikTok traffic specifically
  • Read the match rate, not the success message

Checked against

Xero's paid invoices by payment date, reconciled against the bank feed.

Get my free conversion tracking audit

Free30 minutesNo obligation

Xero → TikTok · when not to buy

When you don't need this — Xero → TikTok

  • Measure identifier coverage yourself first — pull your last hundred invoices and count how many carry the ttclid.
  • If your work is paid at point of sale with no invoicing, the accounting system is not where the conversion should come from.
  • If TikTok is a small share of spend, the effort is hard to justify. It pays when TikTok is a channel you are actively scaling.

Xero → TikTok · what we deliver

What gets built — Xero → TikTok

  • Identifier capture into Xero

    Write the click identifier to a tracking category or a custom field on the Xero contact at creation, so subsequent invoices inherit the association.

  • Event source: the Xero invoice payment webhook

    Fire on payment, not on invoice issue. Trade businesses on thirty-day terms will otherwise report revenue a month before it exists.

  • Dispatch to TikTok

    Server events to the TikTok Events API with the ttclid, hashed contact information and a matching event_id.

  • Reversals where they exist

    Credit notes reverse against the original invoice and should reduce the reported figure.

Written guarantee

95%+ tracking accuracy

Measured against Xero's paid invoices by payment date, reconciled against the bank feed.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Xero → TikTok questions, answered

Yes, as CompletePayment sent from the Xero payment with hashed contact data and the stored ttclid. Expect most of it to fall outside TikTok's attribution windows.

Free · 30 min

Get Xero and TikTok joined properly

Free30 minutesNo obligation