openclaw - 💡(How to fix) Fix [Ballast] Set up CJ Dropshipping credentials to enable supplier wiring [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#71000Fetched 2026-04-24 10:36:53
View on GitHub
Comments
0
Participants
1
Timeline
0
Reactions
0
Author
Participants

`lib/shopify/cj_wiring.mjs` (B.6) is fully built and tested. It searches CJ Dropshipping for each SKU and patches the Shopify variant's SKU to `cjPid:cjVid` format so orders route automatically. However, `CJ_API_KEY` and `CJ_EMAIL` are not set in `.env`, so supplier wiring is skipped on every pipeline run.

Root Cause

`lib/shopify/cj_wiring.mjs` (B.6) is fully built and tested. It searches CJ Dropshipping for each SKU and patches the Shopify variant's SKU to `cjPid:cjVid` format so orders route automatically. However, `CJ_API_KEY` and `CJ_EMAIL` are not set in `.env`, so supplier wiring is skipped on every pipeline run.

Fix Action

Fix / Workaround

Context

`lib/shopify/cj_wiring.mjs` (B.6) is fully built and tested. It searches CJ Dropshipping for each SKU and patches the Shopify variant's SKU to `cjPid:cjVid` format so orders route automatically. However, `CJ_API_KEY` and `CJ_EMAIL` are not set in `.env`, so supplier wiring is skipped on every pipeline run.

What's needed

  1. Create or log in to a CJ Dropshipping account at https://cjdropshipping.com
  2. Get API credentials: API Key and the account email
  3. Add to `.env`: ``` CJ_API_KEY=your_key_here CJ_EMAIL=[email protected] ```
  4. Re-run pipeline for any already-created Shopify drafts to wire the supplier: ``` node data/scripts/run_product_pipeline.mjs --sku glycine-3g ``` (the pipeline is idempotent — will create a new draft; existing drafts need manual CJ SKU patch via Shopify Admin)
RAW_BUFFERClick to expand / collapse

Context

`lib/shopify/cj_wiring.mjs` (B.6) is fully built and tested. It searches CJ Dropshipping for each SKU and patches the Shopify variant's SKU to `cjPid:cjVid` format so orders route automatically. However, `CJ_API_KEY` and `CJ_EMAIL` are not set in `.env`, so supplier wiring is skipped on every pipeline run.

What's needed

  1. Create or log in to a CJ Dropshipping account at https://cjdropshipping.com
  2. Get API credentials: API Key and the account email
  3. Add to `.env`: ``` CJ_API_KEY=your_key_here CJ_EMAIL=[email protected] ```
  4. Re-run pipeline for any already-created Shopify drafts to wire the supplier: ``` node data/scripts/run_product_pipeline.mjs --sku glycine-3g ``` (the pipeline is idempotent — will create a new draft; existing drafts need manual CJ SKU patch via Shopify Admin)

Impact

Without CJ wiring, orders for products cannot be fulfilled automatically. This is a hard blocker for going live.

Notes

  • CJ free tier is sufficient for initial launch
  • The `searchAndWire` function filters for shipping ≤20 days (configurable via `maxShippingDays`)
  • If CJ doesn't carry a SKU, the pipeline logs a warning and continues — supplier must be wired manually

extent analysis

TL;DR

Set CJ_API_KEY and CJ_EMAIL environment variables in .env to enable CJ Dropshipping supplier wiring.

Guidance

  • Create a CJ Dropshipping account and obtain API credentials if not already done.
  • Add CJ_API_KEY and CJ_EMAIL to the .env file with the obtained credentials.
  • Re-run the pipeline for existing Shopify drafts using node data/scripts/run_product_pipeline.mjs --sku <sku> to wire the supplier.
  • Verify that the pipeline completes successfully and that supplier wiring is correctly configured for each product.

Example

No code snippet is necessary for this issue, as the solution involves configuration changes rather than code modifications.

Notes

The provided solution assumes that the searchAndWire function is correctly implemented in lib/shopify/cj_wiring.mjs and that the pipeline is properly configured to use the CJ Dropshipping API.

Recommendation

Apply workaround: Set the required environment variables and re-run the pipeline to enable CJ Dropshipping supplier wiring, as this is a necessary step to unblock the fulfillment of orders for products.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

openclaw - 💡(How to fix) Fix [Ballast] Set up CJ Dropshipping credentials to enable supplier wiring [1 participants]