How this connector works
Guides in the order the work happens: read the shop, check what landed, and see what a live deployment would need. Each one links to the screen it is about.
Read the shop for the first time
One press, about a second, and a run history you can point at afterwards.
- Open the Import screenIt names the source it will read before you press anything, so the answer to “is this my shop or the sample?” is on the button’s own screen.
- Press Import and watch the countsImported, updated, skipped and failed are counted separately. Skipped means the row was already identical, which is the normal state on a second run.
- Read what it says afterwardsA failed row keeps its reason. Nothing is reported as imported unless it was imported.
An import, step by step
Four steps, in the order they run.
- It reads the sourceA live deployment calls TikTok's own endpoints; this copy reads the labelled sample. One shape either way, so everything after this step is the same code.
- It plans before it writesAn order is matched on TikTok's order number and a product on TikTok's product id. A row that is new is imported; a row that changed is updated; a row that is identical is counted as skipped.
- It maps products to the catalogA SKU the shared catalog already holds is mapped to its record when automatic matching is on. Nothing else is matched, and an unmatched product is listed as waiting rather than guessed at.
- It writes down what it didEvery run is a row with its own counts and, when something failed, the reason. A run that failed is never reported as a success.
Every screen, and what it is for
The whole connector in one table, in the order it is usually read.
| Screen | What it is for |
|---|---|
| Overview | What this connector has read from the shop, and what it still needs. |
| Import | Read the shop's orders and products, and keep the run's own numbers. |
| Orders | Every order read, newest first, in TikTok's own status vocabulary. |
| Products | What the shop sells, and which shared catalog record each product belongs to. |
| Performance | What the imported shop earned, and what is waiting. |
| Decisions | Everything the shop is waiting on, worst first, ranked by the money at risk. |
| Returns | What buyers are sending back, what it is worth, and how long they have waited for an answer. |
| Settings | What an import reads, which shop it reads from, and how to clear what it has read. |
| PLUS Connect | Link this connector to a LOMTUR PLUS account and its subscription. |
| Suggest a feature | Tell the team what to build next, or what came out broken. |
What this deployment is
Stated once, in full.
This copy runs against the labelled sample shop, preview.myshopify.com: 12 orders, 14 products and 7 shared catalog records. The import writes those rows into this deployment's own Postgres database exactly as a live import would, and every screen states the source where its rows appear.
Everything past the read is the real code path: the plan, the writes, the SKU matching, the run history and the mapping screens all operate on the database, not on a fixture held in memory.
The live read is written against TikTok's published Open Platform API and has not been exercised against a real shop, because this deployment holds no credentials for one. That is the one part of the chain that is unproven here, and the Import screen says so rather than failing in front of a merchant.
What a live deployment needs
The whole list.
| Setting | What it is for |
|---|---|
| TIKTOK_APP_KEY · TIKTOK_APP_SECRET | The app's identity towards TikTok, used to sign every call. Without both, the sample source is read. |
| TIKTOK_ACCESS_TOKEN | The authorized shop's token, returned by the authorization grant. Without it a live deployment reports that it cannot read its shop. |
| TIKTOK_API_BASE | Optional override for the API host. Defaults to TikTok's own, and only useful against a sandbox. |
| PREVIEW_SHOP | The label this deployment's sample shop carries. Shown on every screen that names the source. |
A live deployment also needs an authorized shop: the authorization grant exchanges an authorization code for that shop's token, and until it has run the import button stays disabled rather than failing in front of a merchant.
Where this copy stops
What it does not do yet, and what it will not do at all.
- It reads more than it writesThe import reads orders and products into this deployment. Writing back to TikTok needs Partner credentials this deployment does not hold, so any screen that offers a write shows it as a preview and says so in place.
- It does not guess a matchA product with no SKU in the shared catalog is left waiting, with the reason, rather than matched to something similar.
- It does not touch the shop's moneyNo payouts, no fees, no settlement figures: it reports what the shop sold, and stops there.
Where the rows on screen came from
The source is labelled on every screen that shows imported rows.
Source: the labelled sample shop for preview.myshopify.com, authorized as preview-sample. Rows are the fixed sample this deployment ships, written into its own database exactly as a real import would be.
Every screen that shows these rows states the source, and the rail carries it on all of them. The run history on the Import screen is the evidence for the parts that do work.
Try GET /healthz for a one-line answer about the deployment itself, or open the Import screen to read the shop now.