← 返回 Skills 市场
simoncai519

Cj Dropshipping Api

作者 simoncai519 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
72
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install cj-dropshipping-api
功能描述
Use when user wants to integrate CJ Dropshipping, search products, create orders, track shipments, manage Shopify listings via CJ, or automate CJ logistics a...
使用说明 (SKILL.md)

CJ Dropshipping API Skill

Overview

This skill provides concise guidance for interacting with the CJ Dropshipping API (v2.0). It covers authentication, product management, order processing, logistics, delivery profiles, shop management, and webhook configuration. Use the skill when a user asks to:

  • Obtain an OAuth token via accio-mcp-cli
  • Search or list CJ products
  • Retrieve product details, variants, or stock
  • Add products to "My Products"
  • List or batch‑list products to a Shopify store
  • Create or query delivery profiles
  • Create orders, pay for them, or track shipments
  • Configure or manage CJ webhooks
  • Query shop information (shops, locations, countries)

All REST calls require the CJ-Access-Token header obtained from accio-mcp-cli call get_cj_access_token.

Core Workflow Summary

  1. Authenticate – Run the two accio-mcp-cli commands to obtain the access token.
  2. Make REST Calls – Use curl (or any HTTP client) with the token in the header.
  3. Handle Pagination – Most list endpoints accept page and size query parameters.
  4. Error Handling – Check the code field; retry on 500 or respect rate‑limit headers.
  5. Webhooks – Set up callbacks once; store URLs securely.

Usage Examples

# 1️⃣ Obtain OAuth token (once)
accio-mcp-cli call start_cj_auth          # opens browser for user consent
accio-mcp-cli call get_cj_access_token    # prints JSON with accessToken

# Store the token in an env var for convenience
export CJ_TOKEN=$(accio-mcp-cli call get_cj_access_token --raw | jq -r .accessToken)

# 2️⃣ Get product list (search)
curl -s "https://developers.cjdropshipping.com/api2.0/v1/product/listV2?keyWord=phone&page=1&size=20" \
  -H "CJ-Access-Token: $CJ_TOKEN" | jq .

# 3️⃣ Get product detail by SKU
curl -s "https://developers.cjdropshipping.com/api2.0/v1/product/query?productSku=ABC123" \
  -H "CJ-Access-Token: $CJ_TOKEN" | jq .

# 4️⃣ Add a product to My Products
curl -X POST "https://developers.cjdropshipping.com/api2.0/v1/product/addToMyProduct" \
  -H "Content-Type: application/json" \
  -H "CJ-Access-Token: $CJ_TOKEN" \
  -d '{"productId":"1234567890"}' | jq .

# 5️⃣ Create a Shopify delivery profile (required for listing)
curl -X POST "https://developers.cjdropshipping.com/api2.0/v1/product/listed/createDeliveryProfile" \
  -H "Content-Type: application/json" \
  -H "CJ-Access-Token: $CJ_TOKEN" \
  -d '{
        "shopId":"YOUR_SHOP_ID",
        "name":"CJ Dropshipping",
        "locationIds":["CJ_LOCATION_ID"],
        "zones":{"countries":[{"countryCode":"US","provinces":[{"provinceCode":"CA"}]}]}
      }' | jq .

# 6️⃣ Batch list products to Shopify (use deliveryProfileId from previous step)
curl -X POST "https://developers.cjdropshipping.com/api2.0/v1/product/listed/listedByPids" \
  -H "Content-Type: application/json" \
  -H "CJ-Access-Token: $CJ_TOKEN" \
  -d '{
        "shopIds":["YOUR_SHOP_ID"],
        "productIds":["123456","789012"],
        "formula":{ "formulaType":3, "shippingFrom":"CN", "shippingTo":"US", "isLogistics":1 },
        "templateShopCategoryVOList":[{"shopId":"YOUR_SHOP_ID","deliveryProfileId":"YOUR_PROFILE_ID"}]
      }' | jq .

# 7️⃣ Create an order (V2)
curl -X POST "https://developers.cjdropshipping.com/api2.0/v1/shopping/order/createOrderV2" \
  -H "Content-Type: application/json" \
  -H "CJ-Access-Token: $CJ_TOKEN" \
  -d '{
        "orderNumber":"ORDER123",
        "shippingCountryCode":"US",
        "shippingAddress":"123 Main St",
        "shippingCustomerName":"John Doe",
        "shippingPhone":"1234567890",
        "logisticName":"CJPacket Sensitive",
        "payType":"1",
        "products":[{"vid":"VID123","quantity":1}]
      }' | jq .

# 8️⃣ Track a shipment
curl -s "https://developers.cjdropshipping.com/api2.0/v1/logistic/trackInfo?trackNumber=TRACK123" \
  -H "CJ-Access-Token: $CJ_TOKEN" | jq .

# 9️⃣ Set up a webhook for order updates
curl -X POST "https://developers.cjdropshipping.com/api2.0/v1/webhook/set" \
  -H "Content-Type: application/json" \
  -H "CJ-Access-Token: $CJ_TOKEN" \
  -d '{
        "order":{"type":"ENABLE","callbackUrls":["https://yourdomain.com/cj/webhook/order"]}
      }' | jq .

Created by Simon Cai · More e-commerce skills: github.com/simoncai519/open-accio-skill

安全使用建议
This skill appears to be a straightforward CJ Dropshipping API cookbook, but it references external tools and an OAuth flow that are not declared in the skill metadata. Before installing or enabling it: 1) Verify what 'accio-mcp-cli' is, where it comes from, and that you trust its source — the skill assumes that CLI will open a browser and print access tokens. 2) Confirm your environment has (or will install) curl and jq if you expect the agent to run the example commands. 3) Treat the CJ access token (CJ-Access-Token / CJ_TOKEN) like a secret: only store it in trusted secret storage, and don't paste it into untrusted consoles or share it. 4) If you plan to accept webhooks, host callback endpoints securely and validate incoming requests. 5) Because the skill metadata omits these operational requirements and the source is 'unknown' in the registry, proceed cautiously — ask the skill author for a clear list of required binaries and exact guidance for obtaining accio-mcp-cli (or be prepared to perform the OAuth step yourself).
能力标签
cryptocan-make-purchasesrequires-oauth-token
能力评估
Purpose & Capability
The name/description and the SKILL.md both describe CJ Dropshipping API operations (product search, orders, webhooks, Shopify listing). That purpose is coherent with the included API reference and example calls.
Instruction Scope
The runtime instructions rely on running accio-mcp-cli to obtain CJ-Access-Token, and show using curl/jq and exporting CJ_TOKEN. The skill metadata declares no required binaries or env vars, yet the instructions assume the agent (or user) can run accio-mcp-cli, curl, and jq and will handle an OAuth browser flow. This mismatch could cause unexpected behavior if the agent tries to execute missing/untrusted tools.
Install Mechanism
No install spec and no code files — instruction-only. Low disk/write risk. However, because the skill delegates auth to an external CLI (accio-mcp-cli), installing/using that CLI is an operational dependency the registry metadata does not document.
Credentials
The skill requires a CJ access token (CJ-Access-Token) for all API calls and suggests exporting CJ_TOKEN, but the registry lists no required environment variables or primary credential. Requesting a token for CJ is proportional to the task, but the omission of this expected requirement in metadata is a coherence issue and makes it unclear how the agent should obtain/store credentials safely.
Persistence & Privilege
always is false and there are no config paths or claims to modify other skills or system settings. The skill does instruct storing webhook URLs and tokens but does not demand persistent system privileges.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install cj-dropshipping-api
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /cj-dropshipping-api 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of the cj-dropshipping-api skill. - Provides concise instructions for authenticating and using the CJ Dropshipping API (v2.0). - Supports product search, order creation, delivery profile management, Shopify integration, and webhook configuration. - Includes example `curl` workflows for common tasks. - Guides users on obtaining and using OAuth tokens via `accio-mcp-cli`. - Covers key best practices: pagination, error handling, and token management.
元数据
Slug cj-dropshipping-api
版本 1.0.0
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 1
常见问题

Cj Dropshipping Api 是什么?

Use when user wants to integrate CJ Dropshipping, search products, create orders, track shipments, manage Shopify listings via CJ, or automate CJ logistics a... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 72 次。

如何安装 Cj Dropshipping Api?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install cj-dropshipping-api」即可一键安装,无需额外配置。

Cj Dropshipping Api 是免费的吗?

是的,Cj Dropshipping Api 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Cj Dropshipping Api 支持哪些平台?

Cj Dropshipping Api 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Cj Dropshipping Api?

由 simoncai519(@simoncai519)开发并维护,当前版本 v1.0.0。

💬 留言讨论