TikTok Shop ConnectorLomtur

preview.myshopify.com

Demo data

Import

Read the shop's orders and products into this deployment's database, and keep the run's own numbers.

Demo datapreview.myshopify.com·last run 27 Oct, 13:54

Webhooks

TikTok tells us the moment an order moves; the import stays as the fallback

Point TikTok's order-status webhook at https://demo.lomtur.com/tiktok/webhooks/tiktok. A signing secret is set, so every delivery is checked before it changes anything.

TopicOrderOutcomeWhat happened
ORDER_STATUS_CHANGE5779932001182990333appliedOrder 5779932001182990333 now reads DELIVERED with USPS 9400111899223197428490.
return.resolved5779932001183004567appliedRTN-88190 (LS-SOCK-3PK) closed as refunded in full
PRODUCT_UPDATE—ignoredNo order event in this delivery (PRODUCT_UPDATE).
ORDER_STATUS_CHANGE9999999999999999999unknown-orderOrder 9999999999999999999 is not imported here, so nothing was changed. Run an import to bring it in.
ORDER_STATUS_CHANGE5779932001182994810unchangedThe row already says exactly this.
ORDER_STATUS_CHANGE5779932001182994810appliedOrder 5779932001182994810 now reads IN_TRANSIT with Royal Mail RM998877665GB.
refused—refused:401That signature does not match the body.
refused—refused:400That delivery is 1791100322 seconds old, past the window.

Run an import

One press, one run, one row in the runs table below

The sample source is small and fixed: 12 orders and 14 products, read in full every time. A second run reports the rows as unchanged rather than writing them again.

What the source holds

Stated before the run, not after

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.

Orders12 sample ordersAll statuses represented.
Products14 sample products7 of them already known to the catalog by SKU.
Runs kept7 runsA run is kept after the rows it wrote are cleared.

Import runs

Read back from the database, newest first

Rows written per run, oldest to newest. A grey bar is a run that wrote nothing.

26 rows across the last 7 runs

StartedKindSourceWrittenUpdatedSkippedFailedNote
27 Oct, 13:54Orders and productsSample shop00260—
27 Oct, 13:54Orders and productsSample shop05210—
25 Oct, 01:36Orders and productsSample shop00260—
25 Oct, 01:14Orders and productsSample shop02240—
24 Oct, 22:30Orders and productsSample shop00260—
23 Oct, 09:21Orders and productsSample shop00260—
23 Oct, 09:21Orders and productsSample shop26000—