npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

n8n-nodes-tiktokshop

v1.0.1

Published

Production-ready TikTok Shop nodes for n8n automation.

Downloads

14

Readme

n8n-nodes-tiktokshop

Production-ready TikTok Shop nodes for n8n, focused on automating seller operations, catalog, finance, order, and fulfillment workflows without rebuilding authentication, signing, or proxy logic.

Features

  • Multi-tenant credential storage (app key, app secret, access token, refresh token) per workflow execution.
  • Automatic token refresh with refreshed values persisted back to the linked n8n credentials.
  • Canonical request builder with TikTok Shop HMAC-SHA256 signatures applied to every outbound call.
  • Seller API helpers for retrieving active shop listings and permission metadata with the same signing pipeline.
  • Product catalog helpers for listing items and retrieving product detail pages without rebuilding TikTok-specific signing.
  • Orders helpers for listing orders, pulling price breakdowns, attaching external OMS references, and fetching batched order details.
  • Finances helpers for retrieving settlement statements, payments, withdrawals, transaction history, and unsettled orders with pagination and sorting controls.
  • Logistics helpers for enumerating warehouses, delivery options, and shipping providers without implementing raw HTTP calls.
  • Optional HTTP and SOCKS5 proxy routing, configurable per credential or per node execution.
  • Stateless execution compatible with horizontally scaled n8n self-hosted or cloud clusters.

Requirements

  • Node.js 18 LTS or newer (matches n8n 1.10 runtime expectations).
  • n8n deployment with Community Nodes enabled.
  • TikTok Shop OpenAPI v2 application credentials and sandbox or production access.
  • Optional: outbound proxy endpoints if requests must traverse corporate networks.

Installation

  1. Install the package in your n8n instance:
    npm install n8n-nodes-tiktokshop
  2. Restart n8n so the new nodes are registered.
  3. Enable the package under Settings > Community Nodes if prompted.

Credential Setup

  1. Open Credentials > New Credential > TikTok Shop (Custom).
  2. Provide the following values:
    • App Key
    • App Secret
    • Access Token
    • Refresh Token
    • Optional proxy host, port, protocol, username, and password.
  3. Save the credential. The node will refresh tokens automatically before expiry and write the updated values back to this record.

Environment Defaults

You can override runtime defaults by defining environment variables:

  • TIKTOKSHOP_TIMEOUT (milliseconds)
  • TIKTOKSHOP_RETRY_COUNT
  • TIKTOKSHOP_LOG_LEVEL These values are read during node initialization and applied across executions.

Usage

  1. Drag the TikTok Shop node into your workflow.
  2. Select the credential created above.
  3. Choose the group (Token, Seller, Product, Orders, Finances, Logistics, or Fulfillments) and select an operation (e.g. Access Token, Get Order List, Get Statements, List Warehouses).
  4. Configure operation-specific parameters. Seller, Product, Orders, Finances, Logistics, and Fulfillments operations require an access token, while token operations rely on refresh or auth codes as inputs. Orders workflows require a Shop Cipher for order searches and external reference batches, enforce up to 100 reference objects per request, include Order Page Size/Order Page Token pagination inputs, and surface platform aliases (SHOPIFY, WOOCOMMERCE, BIGCOMMERCE, MAGENTO, SALESFORCE_COMMERCE_CLOUD, CHANNEL_ADVISOR, AMAZON, ORDER_MANAGEMENT_SYSTEM, WAREHOUSE_MANAGEMENT_SYSTEM, ERP_SYSTEM) for OMS integrations; price detail and external reference lookups also need an Order ID, and Get Order Detail accepts up to 50 TikTok order IDs. Finances workflows require a Shop Cipher, enforce Finance Page Size bounds of 1-100 (default 20), accept optional Finance Page Token, Finance Sort Field, and Finance Sort Order inputs, provide specialized helpers for transaction lookups by order or statement, and surface descriptive withdrawal type filters (WITHDRAW, SETTLE, TRANSFER, REVERSE). Product search, creation, and deletion require a Shop Cipher; search supports optional pagination plus a JSON Payload, creation requires a product JSON payload, deletion accepts up to 20 product IDs, and Upload Product Image expects binary input (Binary Property) plus a Use Case. Product detail operations also need a Product ID, with optional Shop Cipher for scoped lookups. Logistics operations require a Shop Cipher (except global listings) and, when applicable, a Warehouse ID or Delivery Option ID to drill into delivery options and shipping providers, while fulfillment helpers require order-specific payloads and identifiers.
  5. Execute the workflow. The node signs each request, refreshes tokens when needed, and returns normalized JSON payloads ready for downstream nodes.

Development

  1. Clone the repository and install dependencies:
    git clone https://github.com/TjnhPro/n8n-nodes-tiktokshop.git
    cd n8n-nodes-tiktokshop
    npm install
  2. Start the local development server:
    npm run dev
    This command builds the node in watch mode and launches n8n with hot reload.
  3. Lint and type-check code before committing:
    npm run lint
    npm run typecheck
  4. Run the test suite:
    npm run test
  5. Produce a production build:
    npm run build

Releasing

  1. Update the changelog and bump the version in package.json.
  2. Run the release pipeline:
    npm run release
  3. Publish to npm:
    npm publish
  4. Tag the release in GitHub and distribute updated documentation.

Troubleshooting

  • 403 rate limit: TikTok enforces 1,000 requests per hour per app key. Reduce workflow frequency or rotate credentials.
  • Signature mismatch: Ensure local time is synchronized (NTP) and verify that app secret matches the credential in the TikTok console.
  • Token refresh failures: Confirm the stored refresh token is active and not revoked. Regenerate credentials in TikTok Shop if necessary.
  • Proxy issues: Verify proxy host, port, and authentication. The node falls back to direct requests only when the credential allows it.

Contributing

Issues and pull requests are welcome. Please run npm run lint and npm run typecheck before submitting contributions.

License

MIT (c) TjnhPro