# 12 刊登

本文档为 AI 对接设计

刊登涉及接口多、各平台规则不同,人工对接复杂。推荐使用 AI 编程助手(如 Claude Code、Codex、Cursor)完整阅读本文档后生成对接代码;也可直接通过 CJ MCP 用对话刊登。

把一个 CJ 商品刊登到你已授权的某个平台店铺(单品刊登),并提供刊登前需要的类目、属性、品牌、站点、物流、模板等查询接口。功能与 CJ 网站商品详情页的「List」弹窗一致。

# 0 接入说明

# 0.1 适用场景

  • 自己的 ERP / 选品工具里选好 CJ 商品后,直接刊登到自己绑定在 CJ 的平台店铺;
  • 刊登成功后,CJ 会自动建立平台商品与 CJ 商品的关联,之后该平台订单可以直接同步到 CJ 履约。
  • 所有接口都是 POST,请求体为 JSON,Header 带 CJ-Access-Token。
  • 账号、IP 等身份信息由 CJ 根据你的 Access Token 自动识别,请求体里不需要也无法传。
  • 凡是带 shopId 的接口都会先校验该店铺属于当前账号,不属于时返回 10001。店铺 ID 请用 9 店铺 · 1.1 查询店铺列表 获取,只能选 status = 1(启用)的店铺。
  • 只限定了平台的接口(如 eBay、AliExpress、Shopify 专用接口),传其它平台的店铺会返回 10005。

# 0.2 支持的平台

刊登分异步和同步两个接口,按店铺平台固定选择,用错接口返回 10005,message 会提示应使用哪个接口。

刊登方式 接口 平台(/shop/getShops 返回的 type) data 返回值
异步 /listed/publishAsync Shopify、WooCommerce、Lazada、Shopee、TikTok、TikTok US、TikTok US Cross、Whop、Nuvemshop、AliExpress、Mercado、Temu、Temu US Local 刊登记录 ID(listedId),之后用 /listed/queryPublishStatus 轮询结果
同步 /listed/publishSync eBay、Etsy、BigCommerce、Squarespace、Magento、PrestaShop、Wix、Shoplazza、AllValue 平台商品链接,接口返回时已经刊登完成

其它平台(Amazon、Walmart、Shein 等)暂不支持,返回 10005。Etsy、BigCommerce、Squarespace、Magento、PrestaShop 下文统称「Rutter 系」。

# 0.3 推荐调用顺序

  1. 选店铺:GET /api2.0/v1/shop/getShops,选 status = 1 的店铺,记下 id(即 shopId)和 type(平台)。
  2. 校验店铺、取币种(可选):POST /api2.0/v1/listed/queryShopInfo,传 shopId + productId。同时能提前发现该商品是否已刊登过(20001)。
  3. 选收货国、算运费:
    • POST /api2.0/v1/product/listed/getReceiverCountryInfo(入参 platform、startCountryCodes)得到 targetCountryCode;
    • POST /api2.0/v1/logistic/freightCalculate(见 6 物流 · 1.1 物流试算)得到物流名称 logisticName → 刊登参数 logisticsWay,运费 → variants[].shippingCost。
  4. 定价:CJ 不提供定价接口,请自行按「商品成本 + 运费 + 利润」算出 variants[].price(币种为 publishPriceCurrency)。
  5. 按平台补齐前置数据:见 0.6 各平台需要的前置接口。
  6. 提交刊登:异步平台调 /listed/publishAsync,同步平台调 /listed/publishSync。
  7. 查结果(仅异步):/listed/queryPublishStatus,间隔不低于 5 秒轮询,直到状态为 PRODUCT_SUCCESS / PRODUCT_FAIL / PRODUCT_CANCEL。
    • 成功:拿到 platformProductUrl;
    • 失败:读 listedFailMessage,修正参数后调 /listed/republish 重刊,或重新调 /listed/publishAsync。

# 0.4 刊登状态

/listed/queryPublishStatus 返回的 listedStatus:

值 含义 处理
PRODUCT_STAY 待刊登 继续轮询
PRODUCT_CENTRE 刊登中 继续轮询
PRODUCT_SUCCESS 刊登成功 结束,读取 platformProductUrl
PRODUCT_FAIL 刊登失败 结束,读取 listedFailMessage
PRODUCT_CANCEL 已取消 结束

# 0.5 返回结构与通用错误码

本章接口统一返回:

{
    "success": true,
    "code": 200,
    "message": "Congratulation! Well done!",
    "data": {}
}
字段 类型 说明
success boolean 是否成功
code int 成功为 200(同时 success=true),失败见下表;以 success 判断成败最稳妥
message string 提示信息,失败时为原因
requestId string 请求 ID,可能为空
data object 接口数据,各接口说明见下文

参数校验失败(必填字段为空等)时,返回 HTTP 400 和开放平台通用结构:

{
    "code": 1600300,
    "result": false,
    "message": "shopId must be not empty.",
    "data": null,
    "requestId": "323fda9d-3c94-41dc-a944-5cc1b8baf5b1"
}

通用错误码:

code 含义
400 请求参数错误(如 queryPublishStatus 既没传 listedId 也没传 shopId + productId;批量查询超过 100 条)
10001 店铺不存在,或不属于当前账号
10003 店铺未启用或授权已失效,请到 CJ 重新授权
10005 平台不支持;或同步 / 异步接口用错(message 会提示应使用的接口);或该接口不支持此平台
10030 Shopee 店铺未勾选 Auth Merchant 授权,请重新授权后再刊登
20001 该店铺已成功刊登过这个商品,不能重复刊登
20005 CJ 商品不存在
20006 该店铺的这个商品正在刊登中,请勿重复提交(约 15 分钟内有效)
20024 店铺转移中或已转移
20053 该商品类型不允许刊登(如部分供应商商品)
100004 刊登失败,message 中带具体原因(含平台返回的原因、刊登数量上限等)
600 Shopify 店铺今日可新增的变体数已达上限,请明天再试
1600300 参数校验失败,见上
1600200 请求过于频繁。刊登类接口(publishAsync、publishSync、republish)每个账号每秒最多 2 次

各平台特有的错误码见 1.1 异步刊登 和 1.2 同步刊登 的错误码表。平台接口本身报错时,code 和 message 会原样返回。

# 0.6 各平台需要的前置接口

平台 刊登接口 前置接口(建议顺序) 填入的刊登字段
Shopify publishAsync queryProductTypes(product type)→ /product/listed/queryVendors(vendor)→ /product/listed/getPlatformCategoryTree(collection,可用 addCategory 新建)→ /shop/location/queryList(库存地点)→ publishWarehouseInventory(可选,查可刊登库存)→ queryShopAvailableProfiles(运费方案) categoryId(product type)、platformBrandId(vendor)、collectionIds、locationIds、deliveryProfileId、enableLogisticsFee、taxable、tags
eBay publishSync queryCountryList(站点、币种)→ ebay/queryPolicies(额度、业务政策)→ queryLogisticsList(运输服务)→ /product/listed/getPlatformCategoryTree 或 getChildCategoryList(类目)→ getCategoryFeatureList(UPC/EAN/ISBN 是否必填)→ getCategorySpecificsList(item specifics) siteCode、shopCurrency、publishPriceCurrency、ebayPolicyVO、platformShippingService、platformShippingServiceType、categoryId、categoryParentIds、attributes、upc/ean/isbn、payEmail
Shopee publishAsync /product/listed/getPlatformCategoryTree(类目)→ publishProductLimit(标题/图片/变体等限制)→ publishLogisticsChannel(物流渠道)→ getCategorySpecificsList → getAttributeValueList(可搜索的属性值) categoryId、productCategoryAttributes、logisticsChannelConfig、publishPriceCurrency
Lazada publishAsync queryCountryList(跨境店选站点 / GSP 国家)→ getChildCategoryList(传 countryCode)→ getCategorySpecificsList(传 siteCode)→ queryBrand listType、ventures、siteCode、categoryId、attributes、sourceCurrencyCode/targetCurrencyCode、变体 weight/length/width/height
TikTok / TikTok US / TikTok US Cross publishAsync queryBrand(needNoBrand=true)→ getChildCategoryList → getCategorySpecificsList → getProductCertifications(资质)→ US 店铺:publishWarehouseInventory platformBrandId、categoryId、productCategoryAttributes、needUploadImgOptionName、variants[].options[].optionNameId/optionValueId、productCertificationList;US 店铺 sourceCountryCode=US、defaultAreaId=2
AliExpress publishAsync getChildCategoryList → getCategorySpecificsList → queryTemplateInfo(运费/服务模板、计量单位)→ queryProductGroup(商品分组)→ querySizeTemplate(尺码模板) freightTemplateId、promiseTemplateId、productUnitId、productGroupIdList、sizeChartId、isNewSizeChartTemple、marketImages、packageType/lotNum、reduceStrategy、hsCode
WooCommerce publishAsync getChildCategoryList(传 version=2;可用 addCategory 新建) categoryId、scoreList
Mercado publishAsync getChildCategoryList → getCategorySpecificsList → getListingType(刊登类型)→ getListingLimit(可选,查额度) sellPrice(必填)、listingTypeId、productCategoryAttributes
Temu publishAsync getChildCategoryList 或 categorySearch → getCategorySpecificsList → queryPublishInfoByCondition(站点、发货时效、运费模板、尺码表、模特、外包装)→ queryPublishCJWarehouseList(可绑定的 CJ 仓) siteCode、categoryId、categoryParentIds、productCategoryAttributes、deliveryTime(秒)、freightTemplateId、sizeChartIdList、skcImageDTOS、productModelList、warehouseConnectionNew、outerPackageDTO、productOrigin
Temu US Local publishAsync getChildCategoryList 或 recommendCategory → getCategorySpecificsList → queryPublishInfoByCondition categoryId、categoryParentIds、productCategoryAttributes、deliveryTime(天)、freightTemplateId
Rutter 系(Etsy / BigCommerce / Squarespace / Magento / PrestaShop) publishSync queryShopInfo(币种) 公共字段 + tags(必填);图片最多 5 张;Etsy 描述必填
Wix publishSync 无 公共字段
Whop publishAsync 无 公共字段(币种固定 USD)
Nuvemshop publishAsync 无 公共字段(可带 tags)
AllValue publishSync 无 公共字段
Shoplazza publishSync /product/listed/getPlatformCategoryTree(collection,可用 addCategory 新建) options(必填)、productOptionNameList、collectionId

# 0.7 计费

本章所有接口(/listed/*,共 30 个)每次调用扣 10 点(见接口消耗点数),按调用计:参数校验不通过、店铺不属于当前账号、平台不支持、刊登失败等请求同样扣点,不退回。轮询 queryPublishStatus 同样计费,请按建议间隔(≥5 秒)调用。

# 1 刊登

# 1.1 异步刊登(POST)

用于 Shopify、WooCommerce、Lazada、Shopee、TikTok(含 US / US Cross)、Whop、Nuvemshop、AliExpress、Mercado、Temu、Temu US Local。接口受理后立即返回刊登记录 ID,刊登在后台执行,结果用 1.3 查询刊登结果 查询。

# URL

https://developers.cjdropshipping.com/api2.0/v1/listed/publishAsync

# CURL

curl --location --request POST 'https://developers.cjdropshipping.com/api2.0/v1/listed/publishAsync' \
     --header 'CJ-Access-Token: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' \
     --header 'Content-Type: application/json' \
     --data '{
         "shopId": "1530000000000000001",
         "productId": "2508050912341600900",
         "productTitle": "Women Casual Loose Shirt Dress",
         "variants": [
             {"variantId": "2508050912341601000", "sku": "CJLQ123456701AZ", "price": 29.99,
              "options": [{"optionName": "Color", "optionValue": "Grey"}, {"optionName": "Size", "optionValue": "M"}]}
         ]
     }'

# 请求参数

公共字段(所有平台):

参数名 类型 必填 说明
shopId string Y 店铺 ID(/shop/getShops 返回的 id),必须属于当前账号且已启用
productId string Y CJ 商品 ID(pid)
productTitle string Y 商品标题。部分平台有长度限制,见下方各平台说明
productDescription string N 商品描述(HTML)。不传时使用 CJ 商品描述
bigImg string N 主图 URL。不传时使用 CJ 主图
images list<object> N 商品图片,[{"url": "https://..."}]。不传时使用 CJ 商品图
variants list<object> Y 要刊登的变体,1~200 个(平台另有上限,如 Shopify/TikTok 100、Lazada 99),见下方「variants 字段」
publishPriceCurrency string N variants[].price 的币种,默认 USD。与店铺币种不同时,CJ 会按汇率换算成店铺币种
logisticsWay string N 物流方式名称,取物流试算返回的 logisticName。会写入商品关联,影响后续订单的默认物流
defaultAreaId string N 发货仓区域 ID,默认 1(中国仓);TikTok US 店铺传 2
sourceCountry string N 发货国家名称
sourceCountryCode string N 发货国家代码,默认 CN;TikTok US 店铺必须为 US
targetCountry string N 目的国家名称
targetCountryCode string N 目的国家代码,来自 getReceiverCountryInfo
tags string N 标签,逗号分隔
productOptionNameList list<string> N 规格名列表,如 ["Color","Size"]。不传时用 CJ 规格名;传了则必须与每个变体 options[].optionName 一致
options list<object> N 规格集合 [{"name": "Color", "values": ["Red","Blue"]}](Shoplazza 必填)
medias list<object> N 商品视频,见 1.6 刊登入参对象
categoryId string 视平台 平台类目 ID;Shopify 为 product type 文本
categoryName string N 平台类目名称
categoryParentIds list<string> 视平台 类目链上各级父类目 ID(eBay、Temu 需要)
productCategoryAttributes list<object> 视平台 类目属性(TikTok / Temu / Shopee / Mercado / AliExpress),见 1.6
attributes list<object> 视平台 属性(eBay item specifics、Lazada 属性),见 1.6
platformBrandId string N 平台品牌 ID(queryBrand 返回的 brandId);Shopify 为 vendor 文本
platformBrandName string N 平台品牌名称

variants 字段:

参数名 类型 必填 说明
variantId string Y CJ 变体 ID(vid),必须属于 productId
price number Y 店铺售价,必须大于 0,币种为 publishPriceCurrency
sku string N 平台变体 SKU。不传时使用 CJ 变体 SKU;所有变体不能重复。刊登后 CJ 按它把平台变体关联到 CJ 变体
variantTitle string N 变体标题
image string N 变体图片 URL
weight long N 重量(g)
length long 视平台 长(mm)。Lazada、Temu 必填
width long 视平台 宽(mm)。Lazada、Temu 必填
height long 视平台 高(mm)。Lazada、Temu 必填
inventoryCount long N 刊登库存。多数平台会按 CJ 实际库存重新计算
options list<object> N 规格值 [{"optionName": "Color", "optionValue": "Red"}],不传时用 CJ 变体规格;所有变体的规格组合不能重复。TikTok / Temu 需带 optionNameId、optionValueId,见 1.6
shippingCost number N 运费(USD),取物流试算结果,计入店铺商品成本
variantAttributes list<object> 视平台 变体属性(Temu / Mercado 的变体级类目属性),结构同 attributes

各平台特有字段:

Shopify

参数名 类型 必填 说明
categoryId string Y product type 文本,可用 queryProductTypes 返回值,也可以自定义
platformBrandId string Y vendor 文本,来自 /product/listed/queryVendors,也可以自定义(≤30 字符)
collectionIds list<string> N collection ID,来自 /product/listed/getPlatformCategoryTree 或 addCategory。不存在时返回 20057
collectionId string N 单个 collection ID,与 collectionIds 合并去重
taxable boolean N 是否征税,默认 false
deliveryProfileId string 条件必填 运费方案 ID,来自 queryShopAvailableProfiles。该接口返回 isNeedBindProfile = true 时必填
deliveryProfileName string N 运费方案名称
locationIds list<string> N 库存地点 ID,来自 /shop/location/queryList(fromCj = true 的地点)
enableLogisticsFee boolean N 售价是否包含运费,默认包含;false 时变体 shippingCost 按 0 计

Shopee(CNSC 店铺需已勾选 Auth Merchant 授权,否则返回 10030)

参数名 类型 必填 说明
categoryId string Y 叶子类目 ID(数字)
productCategoryAttributes list<object> 类目必填属性必传 platformAttributeId 为数字字符串,-1 表示品牌
logisticsChannelConfig object Y 物流渠道配置,channels[].platformLogisticChannelId 来自 publishLogisticsChannel,见 1.6

标题、描述、图片数量、变体数等需满足 publishProductLimit 返回的限制;描述长度必须大于 20 个字符。

Lazada

参数名 类型 必填 说明
categoryId string Y 叶子类目 ID(数字)
listType string 跨境店必填 ASC / GSP,默认 ASC
siteCode string ASC 必填 站点:sg / my / id / th / ph / vn;GSP 填 my
ventures list<string> GSP 必填 GSP 刊登国家,来自 queryCountryList
attributes list<object> N 类目属性,variationSpecifics = false;没有品牌时自动补 No Brand
sourceCurrencyCode string N 源币种
targetCurrencyCode string N 目标币种(SGD / MYR / IDR / THB / PHP / VND)
variants[].weight / length / width / height long Y 重量(g)和长宽高(mm),三边之和不超过 3000

TikTok / TikTok US / TikTok US Cross

参数名 类型 必填 说明
categoryId string Y 叶子类目 ID
platformBrandId string N 品牌 ID,来自 queryBrand
productCategoryAttributes list<object> 类目必填属性必传 来自 getCategorySpecificsList
needUploadImgOptionName string 建议传 需要上传 SKU 图的规格名(只能一个,如 Color)
productCertificationList list<object> 类目要求资质时必传 来自 getProductCertifications,见 1.6;缺失返回 20054
variants[].options[].optionNameId / optionValueId string Y 平台规格 ID,customized = false 时必须带 optionValueId

标题最多 255 字符(建议 ≤188 且只用英文字符),主图最多 9 张。US 店铺需先在 TikTok Shop 后台绑定 CJ 仓库,否则返回 10060。

AliExpress

参数名 类型 必填 说明
categoryId string Y 叶子类目 ID(数字)
productCategoryAttributes list<object> 类目必填属性必传 来自 getCategorySpecificsList
productOptionNameList list<string> Y 销售属性名
freightTemplateId string Y 运费模板 ID(数字),来自 queryTemplateInfo
promiseTemplateId string Y 服务模板 ID(数字),来自 queryTemplateInfo
productUnitId string Y 计量单位编号,来自 queryTemplateInfo 的 unitNumber
packageType boolean N 是否打包销售,默认 false
lotNum int packageType=true 时必填 每包件数,2~100000
reduceStrategy string N 库存扣减策略:place_order_withhold(下单减库存)/ payment_success_deduct(付款减库存,默认)
hsCode string N 海关编码
photoGroupId string N 图片银行分组 ID,不分组传空
productGroupIdList list<string> N 商品分组 ID,来自 queryProductGroup
sizeChartId long 尺码类目必填 尺码模板 ID,来自 querySizeTemplate
isNewSizeChartTemple boolean N 是否新版尺码模板,取 querySizeTemplate 返回值
marketImages list<object> Y 营销图,一张方图 + 一张长图,见 1.6
logisticsWay string Y 物流方式名称,必须显式传

价格换算成 USD 后不能超过 100000;SKU 组合不能超过 256 个。

Mercado

参数名 类型 必填 说明
categoryId string Y 叶子类目 ID
sellPrice string Y 售价,所有变体同价,需在类目允许的价格区间内
listingTypeId string Y 刊登类型 ID,来自 getListingType
productCategoryAttributes list<object> 类目必填属性必传 来自 getCategorySpecificsList

变体最多 100 个,所有变体库存之和不能超过刊登类型的 maxStock;变体图不小于 500×500。

Temu / Temu US Local

参数名 类型 必填 说明
categoryId string Y 叶子类目 ID
categoryParentIds list<string> Y 叶子之前的各级类目 ID,按层级顺序
siteCode string Temu 必填 站点组 ID,取 queryPublishInfoByCondition 的 siteList[].id(目前只有 1 美国)
productCategoryAttributes list<object> 类目必填属性必传 来自 getCategorySpecificsList
deliveryTime string Y 承诺发货时间:Temu 按秒(如 86400、172800),Temu US Local 按天(1 或 2),取 shipmentTimeList[].id
freightTemplateId string Y 运费模板 ID,取 logisticsTemplateList[].id
skcImageDTOS list<object> 服饰类必填 按颜色分组的 SKC 图,每组至少 3 张,见 1.6
sizeChartIdList list<long> 视类目 尺码表 ID,取 sizeCharts[].businessId(服饰、鞋类必填)
sizeChartGroupId string N 尺码表分组 ID
productModelList list<object> 视类目 模特信息,queryPublishInfoByCondition 返回 modelNecessary = true 时必填,见 1.6
warehouseConnectionNew object 需绑定仓库时必填 刊登绑定仓库,见 1.6
outerPackageDTO object N 外包装,packageShape / packageType 取 packageShapeList / packageTypeList 的 id
productOrigin string N 产地,如 CN
language string N 语言,默认 EN
platformSizeAttrId string N 尺码属性 ID
platformSizeAttrParentSpecId long N 尺码属性父规格 ID

Temu 非服饰类 images 至少 3 张;同一颜色的变体价格必须一致;变体长 ≥ 宽 ≥ 高。Temu US Local 价格一律按 USD,productOptionNameList 最多 2 个。

WooCommerce

参数名 类型 必填 说明
categoryId string N 类目 ID(数字),来自 getChildCategoryList(version = 2);不传时归入未分类
scoreList list<long> N 同时导入 CJ 商品评论时要导入的评分,取值 1~5,最多导入 100 条

Whop / Nuvemshop:只需公共字段。Whop 币种固定 USD,标题最多 80 字符,图片最多 8 张。

# 请求示例(Shopify)

{
    "shopId": "1530000000000000001",
    "productId": "2508050912341600900",
    "productTitle": "Women Casual Loose Shirt Dress",
    "productDescription": "<p>Soft and breathable.</p>",
    "bigImg": "https://cf.cjdropshipping.com/main.jpg",
    "images": [
        {"url": "https://cf.cjdropshipping.com/a.jpg"},
        {"url": "https://cf.cjdropshipping.com/b.jpg"}
    ],
    "defaultAreaId": "1",
    "sourceCountry": "China",
    "sourceCountryCode": "CN",
    "targetCountry": "United States",
    "targetCountryCode": "US",
    "logisticsWay": "CJPacket Ordinary",
    "publishPriceCurrency": "USD",
    "tags": "dress,summer",
    "taxable": false,
    "categoryId": "Dresses",
    "platformBrandId": "CJ Fashion",
    "collectionIds": ["438700000001"],
    "deliveryProfileId": "gid://shopify/DeliveryProfile/1234567",
    "locationIds": ["gid://shopify/Location/7788"],
    "enableLogisticsFee": true,
    "productOptionNameList": ["Color", "Size"],
    "variants": [
        {
            "variantId": "2508050912341601000",
            "sku": "CJLQ123456701AZ",
            "price": 29.99,
            "shippingCost": 4.35,
            "image": "https://cf.cjdropshipping.com/v1.jpg",
            "options": [
                {"optionName": "Color", "optionValue": "Grey"},
                {"optionName": "Size", "optionValue": "M"}
            ]
        },
        {
            "variantId": "2508050912341601001",
            "sku": "CJLQ123456702AZ",
            "price": 29.99,
            "shippingCost": 4.35,
            "image": "https://cf.cjdropshipping.com/v2.jpg",
            "options": [
                {"optionName": "Color", "optionValue": "Grey"},
                {"optionName": "Size", "optionValue": "L"}
            ]
        }
    ]
}

# 返回

成功

{
    "success": true,
    "code": 200,
    "message": "Congratulation! Well done!",
    "data": "1840000000000000001"
}

失败

{
    "success": false,
    "code": 10005,
    "message": "Listing to ebay stores must use /listed/publishSync",
    "data": null
}
字段 类型 说明
data string 刊登记录 ID(listedId),用于 1.3 查询刊登结果 和 1.5 重新刊登

data 有值只代表 CJ 已受理,最终结果以 queryPublishStatus 为准。

# 错误码(异步平台)

除 0.5 通用错误码 外:

code 平台 含义
7001001 Shopify 店铺需要绑定运费方案,但没传 deliveryProfileId 或方案不存在
7001002 Shopify 运费方案已在 Shopify 删除
7001003 Shopify 运费方案不包含 CJ 库存地点
7001012 Shopify 运费方案为商家自建,当前店铺不允许使用
20018 Shopify / TikTok 变体数量不合法(超过 100)
20057 Shopify collection 在店铺中不存在
20065 Shopify 定制商品的所有变体都缺少定制信息
20017 多个平台 图片上传到平台失败
20014 TikTok 包裹重量超出范围
20015 TikTok 变体规格值不合法(超过 50 字符等)
20016 TikTok 售价超出平台允许范围
20054 TikTok 类目要求的资质未上传
20058 TikTok 类目不存在
10060 TikTok US 店铺未在 TikTok Shop 后台绑定 CJ 仓库
20023 Lazada 变体数量超过 99
20034 Shopee 没有任何一个规格能让每个取值对应不同的变体图
30020 AliExpress lotNum 不在 2~100000 之间
20033 AliExpress 变体规格值数量不合法(组合超过 256 等)
100023 Mercado 图片小于 500×500
20072 Temu 该商品绑定了欧区站点,供应商自发货商品暂不支持
6000022 Temu Temu 仓库绑定失败
60039 Temu Temu 刊登通用错误,message 带原因

# 1.2 同步刊登(POST)

用于 eBay、Etsy、BigCommerce、Squarespace、Magento、PrestaShop、Wix、Shoplazza、AllValue。接口返回时刊登已经完成,成功时返回平台商品链接,不需要再轮询。

# URL

https://developers.cjdropshipping.com/api2.0/v1/listed/publishSync

# CURL

curl --location --request POST 'https://developers.cjdropshipping.com/api2.0/v1/listed/publishSync' \
     --header 'CJ-Access-Token: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' \
     --header 'Content-Type: application/json' \
     --data '{
         "shopId": "1723456789012345678",
         "productId": "1F2A3B4C-0000-1111-2222-333344445555",
         "productTitle": "Women Casual Loose Cotton T-Shirt",
         "siteCode": "US",
         "platformShippingService": "USPSPriority",
         "platformShippingServiceType": "Flat",
         "categoryId": "53159",
         "variants": [
             {"variantId": "V-001", "sku": "CJNSXZTX00001-Black-S", "price": 19.99, "inventoryCount": 10,
              "options": [{"optionName": "Color", "optionValue": "Black"}, {"optionName": "Size", "optionValue": "S"}]}
         ]
     }'

# 请求参数

公共字段(所有平台):

参数名 类型 必填 说明
shopId string Y 店铺 ID,必须属于当前账号且已启用
productId string Y CJ 商品 ID(pid)
productTitle string Y 商品标题。eBay、Wix 最多 80 字符;Shoplazza 超过 255 字符会被截断
productDescription string 视平台 商品描述(HTML)。Etsy 必填,其它平台不传时使用 CJ 描述
bigImg string N 主图 URL
images list<object> N 商品图片 [{"url": "https://..."}]。Rutter 系最多 5 张
variants list<object> Y 要刊登的变体,1~200 个,字段同 1.1 的「variants 字段」
publishPriceCurrency string N variants[].price 的币种,默认 USD。eBay 请与站点币种一致
logisticsWay string N 物流方式名称(物流试算的 logisticName)
defaultAreaId string N 发货仓区域 ID,默认 1
sourceCountry string N 发货国家名称
sourceCountryCode string N 发货国家代码,默认 CN
targetCountry string N 目的国家名称
targetCountryCode string N 目的国家代码
tags string 视平台 标签,逗号分隔。Rutter 系必填,Etsy 每个标签不超过 20 字符
productOptionNameList list<string> 视平台 规格名列表,必须与每个变体的 options[].optionName 一致。eBay、Shoplazza 建议传
options list<object> 视平台 规格集合 [{"name": "Color", "values": ["Black"]}],Shoplazza 必填
medias list<object> N 商品视频,见 1.6
categoryId string 视平台 平台类目 ID(eBay 必填,叶子类目)
categoryName string N 平台类目名称
categoryParentIds list<string> N 各级父类目 ID
attributes list<object> 视平台 eBay item specifics,见 1.6
productCategoryAttributes list<object> N 类目属性(同步平台一般不需要)
platformBrandId string N 平台品牌 ID
platformBrandName string N 平台品牌名称

各平台特有字段:

eBay

参数名 类型 必填 说明
siteCode string Y eBay 站点,取 queryCountryList 的 countryCode(如 US、UK、Germany、Australia,不是 ISO 国家码)
platformShippingServiceType string Y 运输服务类型,取 queryLogisticsList 的 serviceType(如 Flat)
shopCurrency string N 站点币种(如 UK 站 GBP),取 queryCountryList 返回的币种;决定刊登币种与售价换算目标,不传按店铺默认币种。仅 eBay 生效
platformShippingService string N 运输服务,取 queryLogisticsList 的 shippingService
ebayPolicyVO object N 业务政策,取 ebay/queryPolicies 返回的 ebayPolicy;每类取第一个,id 必须是数字。见 1.6
categoryId string Y 叶子类目 ID,必须属于该站点
categoryParentIds list<string> N 各级父类目 ID
attributes list<object> 类目必填项必传 item specifics,取 getCategorySpecificsList 中 variationSpecifics = false 的属性;Brand、MPN 也从这里传
upc string 类目要求时必填 getCategoryFeatureList 的 upcEnabled = Required 时必填
ean string 类目要求时必填 无码可填 Does not apply
isbn string 类目要求时必填 无码可填 Does not apply
brand string N 品牌(建议放在 attributes 中)
mpn string N MPN(建议放在 attributes 中)
payEmail string N PayPal 收款邮箱,非空时付款方式为 PayPal
variants[].inventoryCount long Y 每个变体都必须大于 0

eBay 规格名最多 40 字符、规格值最多 50 字符。类目不支持多变体时(getCategoryFeatureList / getChildCategoryList 返回 singleSkuListing = true),每个变体会单独刊登成一个 listing,单次最多 10 个变体,此时 data 为第一个 listing 的链接,message 为 Listed N of M variants. 及失败明细。

Shoplazza

参数名 类型 必填 说明
options list<object> Y 规格集合,由所有变体的规格聚合得出
productOptionNameList list<string> 建议传 规格名列表
collectionId string N collection ID,来自 /product/listed/getPlatformCategoryTree 或 addCategory;不存在时返回 20057

每个变体最多取前 3 个规格。

Rutter 系(Etsy / BigCommerce / Squarespace / Magento / PrestaShop)

参数名 类型 必填 说明
tags string Y 标签,逗号分隔;Etsy 每个不超过 20 字符
images list<object> N 最多 5 张,超过直接报错
productDescription string Etsy 必填 会去掉 HTML 标签
publishPriceCurrency string 建议传 店铺币种,用于价格换算

Wix / AllValue:只需公共字段。Wix 变体最多 100 个,标题最多 80 字符。

# 请求示例(eBay)

{
    "shopId": "1723456789012345678",
    "productId": "1F2A3B4C-0000-1111-2222-333344445555",
    "productTitle": "Women Casual Loose Cotton T-Shirt Short Sleeve Summer Top",
    "productDescription": "<p>100% cotton.</p>",
    "bigImg": "https://cf.cjdropshipping.com/main.jpg",
    "images": [
        {"url": "https://cf.cjdropshipping.com/1.jpg"},
        {"url": "https://cf.cjdropshipping.com/2.jpg"}
    ],
    "siteCode": "US",
    "publishPriceCurrency": "USD",
    "platformShippingService": "USPSPriority",
    "platformShippingServiceType": "Flat",
    "categoryId": "53159",
    "categoryParentIds": ["11450", "15724", "53159"],
    "productOptionNameList": ["Color", "Size"],
    "attributes": [
        {"attributeName": "Brand", "attributeValue": "Unbranded", "variationSpecifics": false},
        {"attributeName": "Department", "attributeValue": "Women", "variationSpecifics": false},
        {"attributeName": "Type", "attributeValue": "T-Shirt", "variationSpecifics": false}
    ],
    "upc": "",
    "ean": "Does not apply",
    "isbn": "",
    "ebayPolicyVO": {
        "fulfillmentPolicies": [{"id": "245678901011", "name": "Ship 3 days"}],
        "paymentPolicies": [{"id": "245678901012", "name": "Pay"}],
        "returnPolicies": [{"id": "245678901013", "name": "30 days"}]
    },
    "defaultAreaId": "1",
    "sourceCountryCode": "CN",
    "targetCountryCode": "US",
    "logisticsWay": "CJPacket Ordinary",
    "variants": [
        {
            "variantId": "V-001",
            "sku": "CJNSXZTX00001-Black-S",
            "image": "https://cf.cjdropshipping.com/v1.jpg",
            "weight": 200,
            "price": 19.99,
            "inventoryCount": 10,
            "options": [
                {"optionName": "Color", "optionValue": "Black"},
                {"optionName": "Size", "optionValue": "S"}
            ]
        },
        {
            "variantId": "V-002",
            "sku": "CJNSXZTX00001-Black-M",
            "image": "https://cf.cjdropshipping.com/v2.jpg",
            "weight": 210,
            "price": 19.99,
            "inventoryCount": 10,
            "options": [
                {"optionName": "Color", "optionValue": "Black"},
                {"optionName": "Size", "optionValue": "M"}
            ]
        }
    ]
}

# 返回

成功

{
    "success": true,
    "code": 200,
    "message": "Congratulation! Well done!",
    "data": "https://www.ebay.com/itm/123456789012"
}

失败

{
    "success": false,
    "code": 100004,
    "message": "Create platform product failed [minInventory fail, actual=0]",
    "data": null
}
字段 类型 说明
data string 平台商品链接
message string eBay 拆分刊登时为汇总说明(如 Listed 2 of 3 variants. 及失败的 SKU)

# 错误码(同步平台)

除 0.5 通用错误码 外:

code 平台 含义
100004 eBay platformShippingServiceType 为空、变体库存 ≤0、SKU 为空或重复、规格不一致、eBay 校验失败等,message 带原因
60070 eBay 该类目不允许刊登全新商品,请更换类目
60071 eBay 该类目不支持多变体,单次最多选择 10 个变体
20009 eBay 等 平台商品已创建,但与 CJ 商品建立关联失败(已撤下平台商品)
20018 Wix 变体数量超过 100
10016 Wix 店铺币种不一致
20057 Shoplazza collection 在店铺中不存在
20017 Shoplazza 等 图片上传到平台失败

# 1.3 查询刊登结果(POST)

查询一条刊登记录的状态。传 listedId,或者传 shopId + productId(查该店铺该商品最近一次刊登)。

# URL

https://developers.cjdropshipping.com/api2.0/v1/listed/queryPublishStatus

# CURL

curl --location --request POST 'https://developers.cjdropshipping.com/api2.0/v1/listed/queryPublishStatus' \
     --header 'CJ-Access-Token: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' \
     --header 'Content-Type: application/json' \
     --data '{
         "listedId": "1840000000000000001"
     }'
参数名 类型 必填 说明
listedId string 二选一 刊登记录 ID(publishAsync 返回的 data)
shopId string 二选一 店铺 ID,需和 productId 一起传
productId string 二选一 CJ 商品 ID,需和 shopId 一起传

# 返回

{
    "success": true,
    "code": 200,
    "message": "Congratulation! Well done!",
    "data": {
        "listedId": 1840000000000000001,
        "cjProductId": "2508050912341600900",
        "listedStatus": "PRODUCT_SUCCESS",
        "listedFailMessage": null,
        "platformProductUrl": "https://myshop.myshopify.com/products/women-casual-loose-shirt-dress",
        "hasInventory": true
    }
}
字段 类型 说明
listedId long 刊登记录 ID
cjProductId string CJ 商品 ID
listedStatus string 刊登状态,见 0.4 刊登状态
listedFailMessage string 失败原因(PRODUCT_FAIL 时有值)
platformProductUrl string 平台商品链接(PRODUCT_SUCCESS 时有值)
hasInventory boolean TikTok US:刊登库存是否都不为 0,false 表示存在库存为 0 的变体

查不到记录时 data 为 null。

# 1.4 批量查询刊登结果(POST)

一次最多查询 100 条,超过返回 400。

# URL

https://developers.cjdropshipping.com/api2.0/v1/listed/queryPublishStatusBatch

# CURL

curl --location --request POST 'https://developers.cjdropshipping.com/api2.0/v1/listed/queryPublishStatusBatch' \
     --header 'CJ-Access-Token: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' \
     --header 'Content-Type: application/json' \
     --data '{
         "batch": [
             {"listedId": "1840000000000000001"},
             {"shopId": "1530000000000000001", "productId": "2508050912341600900"}
         ]
     }'
参数名 类型 必填 说明
batch list<object> Y 查询条件,1~100 条;每条字段同 1.3(listedId,或 shopId + productId)

# 返回

data 为数组,元素字段同 1.3 的返回。

{
    "success": true,
    "code": 200,
    "message": "Congratulation! Well done!",
    "data": [
        {
            "listedId": 1840000000000000001,
            "cjProductId": "2508050912341600900",
            "listedStatus": "PRODUCT_CENTRE",
            "listedFailMessage": null,
            "platformProductUrl": null,
            "hasInventory": true
        }
    ]
}

# 1.5 重新刊登(POST)

对刊登失败(PRODUCT_FAIL)的记录按原参数重新刊登,只支持异步刊登的平台。如果需要修改参数,请直接重新调用 publishAsync。

# URL

https://developers.cjdropshipping.com/api2.0/v1/listed/republish

# CURL

curl --location --request POST 'https://developers.cjdropshipping.com/api2.0/v1/listed/republish' \
     --header 'CJ-Access-Token: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' \
     --header 'Content-Type: application/json' \
     --data '{
         "shopId": "1530000000000000001",
         "listedProductId": 1840000000000000001
     }'
参数名 类型 必填 说明
shopId string Y 店铺 ID
listedProductId long Y 刊登记录 ID(即 listedId)

# 返回

{
    "success": true,
    "code": 200,
    "message": "Congratulation! Well done!",
    "data": true
}
字段 类型 说明
data boolean 是否已重新提交。之后继续用 1.3 轮询结果

# 1.6 刊登入参对象

publishAsync / publishSync 中对象类型字段的结构。

images[]

字段 类型 必填 说明
url string Y 图片 URL

options[](商品级规格集合)

字段 类型 说明
name string 规格名
values list<string> 规格值

variants[].options[](变体规格值)

字段 类型 必填 说明
optionName string Y 规格名
optionValue string Y 规格值
optionNameId string 视平台 平台规格名 ID(TikTok、Temu 必传;TikTok 传 -1 表示商品标识码)
optionValueId string 视平台 平台规格值 ID(customized = false 时必传)
optionValueUnit string N 规格值单位
customized boolean N 是否自定义规格值,默认 true
spec int N 销售属性排序值(AliExpress)

medias[]

字段 类型 必填 说明
mediaId string Y CJ 视频 ID
mediaTitle string N 视频标题
mediaUrl string N 视频 URL
mediaSize long N 大小(字节)
width long N 宽(px)
height long N 高(px)
mediaType string N 类型,默认 MAP4(mp4)

attributes[] / variants[].variantAttributes[]

字段 类型 说明
attributeId string 属性 ID
attributeName string 属性名
attributeType string 属性类型(Lazada 为 normal 等)
attributeValueId string 属性值 ID
attributeValue string 属性值
attributeValueUnit string 属性值单位
variationSpecifics boolean 是否变体属性。eBay / Lazada 的商品属性传 false

productCategoryAttributes[]

字段 类型 说明
platformAttributeId string 平台属性 ID(getCategorySpecificsList 的 id)
platformAttributeName string 平台属性名
attributeValueList list<object> 属性值,多选时传多个
attributeValueList[].platformAttributeValueId string 平台属性值 ID;自定义值可不传
attributeValueList[].platformAttributeValue string 属性值或自定义值(Shopee 传 original 值)
attributeValueList[].inputValue string 输入值(如成分占比)
attributeValueList[].platformAttributeValueUnit string 属性值单位

ebayPolicyVO(eBay)

字段 类型 说明
fulfillmentPolicies list<object> 运输政策 [{"id": "...", "name": "..."}]
paymentPolicies list<object> 付款政策
returnPolicies list<object> 退货政策

logisticsChannelConfig(Shopee)

字段 类型 说明
channels list<object> 物流渠道
channels[].platformLogisticChannelId string 渠道 ID(publishLogisticsChannel 的 logisticsChannelId)
channels[].platformSizeId string 尺寸 ID,渠道 feeType = SIZE_SELECTION 时必传
channels[].shippingFee number 运费,feeType = CUSTOM_PRICE 时必传
channels[].shippingFeeForBuyer boolean 是否由买家支付运费
channels[].enabled boolean 是否启用,默认 true

productCertificationList[](TikTok)

字段 类型 说明
platformCertificationId string 平台资质 ID(getProductCertifications 的 id)
platformCertificationName string 平台资质名称
cjCertificationId string CJ 资质 ID(数字字符串),CJ 会据此补齐资质文件
fileFormatType int 文件格式类型
imageUrls list<string> 资质图片 URL
productCertificationFileDTOS list<object> 资质文件 [{"url": "...", "name": "..."}]

marketImages[](AliExpress)

字段 类型 说明
imageType int 2 方图(1:1,建议 800×800);1 长图(3:4,建议 750×1000);单张不超过 5MB
url string 图片 URL

skcImageDTOS[](Temu)

字段 类型 说明
valueId string 颜色属性值 ID
value string 颜色属性值
imageUrls list<string> 该颜色的图片,3:4,至少 3 张、最多 10 张

outerPackageDTO(Temu)

字段 类型 说明
packageShape int 外包装形状,取 queryPublishInfoByCondition 的 packageShapeList[].id
packageType int 外包装类型,取 packageTypeList[].id

productModelList[](Temu)

字段 类型 说明
modelId long 模特 ID(modelInfoPageResult.list[].id)
tryOnSizeId string 试穿尺码(必须是已选变体中的尺码)
tryOnSizeName string 试穿尺码名称
tryOnSizeSpecId long 试穿尺码规格 ID
tryOnResult int 试穿心得:1 舒适、2 紧身、3 宽松
modelType int 模特类型:1 成衣模特、2 鞋模
modelName string 模特名称
modelProfileUrl string 模特头像
modelFeature int 模特特性:1 真实模特
modelHeight / modelBust / modelWaist / modelHip string 身高 / 胸围 / 腰围 / 臀围(鞋模传空)
modelFootLength / modelFootWidth string 脚长 / 脚宽(成衣模特传空)

warehouseConnectionNew(Temu,刊登时绑定仓库;只能绑定到本次刊登的店铺)

规则与 库存同步设置 相同:新绑、改绑只能用你的账号能用的仓,已停用的仓不能绑,供应商仓需要供应商仓权限;否则刊登被拒,返回错误码 10041,原因见 message。

刊登时只按 warehouseConnectionNewVOS 绑定仓库(与 My CJ 刊登相同),其余字段(如库存同步方式、Y1 / Y2 同步方式、一品多仓、同步频率)即使传了也不生效;要改这些请用 库存同步设置。

字段 类型 说明
warehouseConnectionNewVOS list<object> 仓库对应关系
warehouseConnectionNewVOS[].platformWarehouseId string 平台仓库 ID(queryPublishInfoByCondition 的 warehouseInfoList[].warehouseId)
warehouseConnectionNewVOS[].platformWarehouseName string 平台仓库名称
warehouseConnectionNewVOS[].managementType string 平台仓库类型
warehouseConnectionNewVOS[].cjWarehouseId string CJ 仓库 ID(queryPublishCJWarehouseList 的 warehouseList[].id)
warehouseConnectionNewVOS[].cjWarehouseName string CJ 仓库名称
warehouseConnectionNewVOS[].cjWarehouseType int CJ 仓库类型
warehouseConnectionNewVOS[].areaId string 仓库区域 ID
warehouseConnectionNewVOS[].countryCode string 国家代码

# 2 类目 / 属性 / 品牌

# 2.1 查询子类目(POST)

逐级查询平台类目:parentCategoryId 传 0 查一级类目,再用返回的 categoryId 往下查,直到 leafCategory = true。适用于 eBay、Lazada、TikTok、AliExpress、WooCommerce、Mercado、Temu、Temu US Local 等。

# URL

https://developers.cjdropshipping.com/api2.0/v1/listed/getChildCategoryList

# CURL

curl --location --request POST 'https://developers.cjdropshipping.com/api2.0/v1/listed/getChildCategoryList' \
     --header 'CJ-Access-Token: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' \
     --header 'Content-Type: application/json' \
     --data '{
         "shopId": "1723456789012345678",
         "parentCategoryId": "0",
         "countryCode": "US"
     }'
参数名 类型 必填 说明
shopId string Y 店铺 ID
parentCategoryId string Y 父类目 ID,0 表示查一级类目
countryCode string 视平台 站点:eBay 传 siteCode;Lazada 跨境店传站点
cjProductId string N CJ 商品 ID
title string N 商品标题
pageNum int N 页码,默认 1
refreshCategory int N 刷新类目缓存(WooCommerce):1 刷新当前父级,2 且 parentCategoryId = 0 时刷新全店
version int 视平台 版本,WooCommerce 传 2
language string N 语言

# 返回

{
    "success": true,
    "code": 200,
    "message": "Congratulation! Well done!",
    "data": [
        {
            "shopId": "1723456789012345678",
            "categoryParentId": "0",
            "categoryId": "11450",
            "categoryName": "Clothing, Shoes & Accessories",
            "categoryLevel": 1,
            "leafCategory": false,
            "has_children": true,
            "singleSkuListing": false
        }
    ]
}

data 为类目数组,元素字段(CategoryVO,2.2、2.3、2.4 也返回此结构):

字段 类型 说明
shopId string 店铺 ID
categoryParentId string 父类目 ID
categoryId string 类目 ID
categoryName string 类目名称
categoryLevel int 类目层级(Shopify collection:0 自定义、1 智能)
leafCategory boolean 是否叶子类目(Lazada 表示可刊登商品)
has_children boolean 是否有子类目(注意字段名为下划线形式)
children list<object> 子类目,结构同本表
categoryType int 是否服饰类目
matchingCjCategoryIds list<string> 匹配的 CJ 类目 ID
defaultMatching boolean 是否默认匹配
matchedPlatformCategoryIds list<string> 推荐的平台类目路径(从一级到叶子)
singleSkuListing boolean eBay:该类目不支持多变体,刊登时每个变体单独成一个 listing
categorySettingVO object 类目设置(Mercado 等):maxTitleLength 标题最大长度、minimumPrice / maximumPrice 价格区间、maxPicturesPerItem 最大图片数、maxVariationsAllowed 最大变体数、currencies 币种等

# 2.2 搜索类目(POST)

按关键词搜索平台类目,仅支持 Temu。

# URL

https://developers.cjdropshipping.com/api2.0/v1/listed/categorySearch

# CURL

curl --location --request POST 'https://developers.cjdropshipping.com/api2.0/v1/listed/categorySearch' \
     --header 'CJ-Access-Token: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' \
     --header 'Content-Type: application/json' \
     --data '{
         "shopId": "1600000000000000001",
         "searchText": "dress"
     }'
参数名 类型 必填 说明
shopId string Y Temu 店铺 ID
searchText string Y 搜索关键词

# 返回

{
    "success": true,
    "code": 200,
    "message": "Congratulation! Well done!",
    "data": {
        "categoryList": [
            [
                {"categoryId": "100", "categoryName": "Women's Clothing", "leafCategory": false},
                {"categoryId": "1001", "categoryName": "Dresses", "leafCategory": true}
            ]
        ]
    }
}
字段 类型 说明
categoryList list<list<object>> 搜索结果,每一项是一条从一级到叶子的类目路径,元素结构同 2.1 的 CategoryVO

# 2.3 推荐类目(POST)

按商品标题推荐平台类目,仅支持 Temu US Local。

# URL

https://developers.cjdropshipping.com/api2.0/v1/listed/recommendCategory

# CURL

curl --location --request POST 'https://developers.cjdropshipping.com/api2.0/v1/listed/recommendCategory' \
     --header 'CJ-Access-Token: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' \
     --header 'Content-Type: application/json' \
     --data '{
         "shopId": "1600000000000000002",
         "title": "Women Casual Loose Shirt Dress"
     }'
参数名 类型 必填 说明
shopId string Y Temu US Local 店铺 ID
title string Y 商品标题
cjProductId string N CJ 商品 ID

# 返回

{
    "success": true,
    "code": 200,
    "message": "Congratulation! Well done!",
    "data": {
        "categoryId": "1001",
        "categoryName": "Dresses",
        "matchedPlatformCategoryIds": ["100", "1001"]
    }
}

data 为 CategoryVO(见 2.1),matchedPlatformCategoryIds 为推荐的类目路径,最后一个是叶子类目,可直接用作 categoryId,前面的作为 categoryParentIds。

# 2.4 新建类目 / collection(POST)

在店铺中新建类目(Shopify / Shoplazza 为 collection,WooCommerce 为商品分类)。

# URL

https://developers.cjdropshipping.com/api2.0/v1/listed/addCategory

# CURL

curl --location --request POST 'https://developers.cjdropshipping.com/api2.0/v1/listed/addCategory' \
     --header 'CJ-Access-Token: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' \
     --header 'Content-Type: application/json' \
     --data '{
         "shopId": "1530000000000000001",
         "categoryName": "Summer Dresses",
         "parentCategoryId": "0"
     }'
参数名 类型 必填 说明
shopId string Y 店铺 ID
categoryName string Y 类目名称
parentCategoryId string N 父类目 ID(WooCommerce 子分类时传),一级传 0

# 返回

{
    "success": true,
    "code": 200,
    "message": "Congratulation! Well done!",
    "data": {
        "categoryId": "438700000002",
        "categoryName": "Summer Dresses"
    }
}

data 为新建的类目(CategoryVO,见 2.1)。

# 2.5 查询类目属性(POST)

查询平台类目下的属性(eBay item specifics、TikTok / Temu / Shopee / Lazada / Mercado / AliExpress 类目属性)。

# URL

https://developers.cjdropshipping.com/api2.0/v1/listed/getCategorySpecificsList

# CURL

curl --location --request POST 'https://developers.cjdropshipping.com/api2.0/v1/listed/getCategorySpecificsList' \
     --header 'CJ-Access-Token: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' \
     --header 'Content-Type: application/json' \
     --data '{
         "shopId": "1723456789012345678",
         "categoryId": "53159",
         "productId": "1F2A3B4C-0000-1111-2222-333344445555",
         "siteCode": "US",
         "parentCategoryIds": ["11450", "15724"]
     }'
参数名 类型 必填 说明
shopId string Y 店铺 ID
categoryId string Y 叶子类目 ID
productId string Y 要刊登的 CJ 商品 ID,用于匹配变体规格
parentCategoryIds list<string> 视平台 父类目 ID 链(Temu 必传)
siteCode string 视平台 站点(eBay、Lazada 必传)
language string N 语言

# 返回

{
    "success": true,
    "code": 200,
    "message": "Congratulation! Well done!",
    "data": [
        {
            "id": "100000",
            "name": "Department",
            "label": "Department",
            "type": "singleSelect",
            "isRequired": true,
            "variationSpecifics": false,
            "isSupportCustomizedValue": true,
            "maxInputValueNumber": 1,
            "valueRecommendations": ["Women", "Men"],
            "values": [{"id": "1", "value": "Women"}]
        }
    ]
}

data 为属性数组,主要字段:

字段 类型 说明
id string 属性 ID(TikTok、Temu 等必用),填入 platformAttributeId
name string 属性名称
label string 展示名称
type string 输入类型:text、richText、enumInput、multiEnum、InputmultiSelect、singleSelect、numeric、date
isRequired boolean 是否必填
variationSpecifics boolean 是否变体属性
variationAttribute boolean 是否变体级 attribute 属性(Temu / Mercado,填入 variants[].variantAttributes)
formatType string 属性类型:NORMAL / QUANTITATIVE
inputValidationType string 值类型:INT_TYPE / STRING_TYPE / ENUM_TYPE / FLOAT_TYPE / DATE_TYPE / TIMESTAMP_TYPE
inputType string 文本框输入格式(AliExpress):STRING / NUMBER
dateFormatType string 日期格式:YEAR_MONTH_DATE / YEAR_MONTH
maxInputValueNumber int 最多可选几个值
unit string 属性值单位
units list<string> 可用单位(Shopee)
allowedUnits list<object> 可用单位 [{id, name}]
valueRecommendations list<string> 推荐值
values list<object> 可选值,结构见 2.6
value string 默认值
selectionMode string 选项类型
isDuplicate boolean 值是否允许重复
isSupportCustomizedValue boolean 是否允许自定义值
supportEnumInput boolean 是否支持「输入或从列表选择」
supportSearchValue boolean 是否支持搜索属性值(Shopee,为 true 时用 2.6 搜索)
mandatoryRegion list<string> 属性必填的地区(Shopee)
isOem boolean 是否 OEM 属性(Shopee)
isCanMountPictures boolean 是否可挂载图片(TikTok)
spec int 销售属性排序值
valueMaxLength int 输入值最大长度
maxValue string 输入值最大值(Temu)
valuePrecision int 允许的小数位数,0 表示不允许小数
mainSale boolean 是否主销售属性
templatePid / refPid / pid / parentSpecId / parentTemplatePid long Temu 属性模板相关 ID
showType / valueRule / controlType / feature int Temu 展示与输入规则
chooseTitle / inputTitle string 下拉框 / 输入框标题
platformName / platformUnit string 平台原始属性名 / 单位
variantSpecificsVOS list<object> CJ 变体规格与平台规格的匹配结果:vid、optionName、optionNameId、optionValue、optionValueId、optionParentSpecId、optionSpecId 等

# 2.6 搜索类目属性值(POST)

搜索某个类目属性的可选值,用于 Shopee 中 supportSearchValue = true 的属性。

# URL

https://developers.cjdropshipping.com/api2.0/v1/listed/getAttributeValueList

# CURL

curl --location --request POST 'https://developers.cjdropshipping.com/api2.0/v1/listed/getAttributeValueList' \
     --header 'CJ-Access-Token: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' \
     --header 'Content-Type: application/json' \
     --data '{
         "shopId": "1700000000000000001",
         "categoryId": "100017",
         "attributeId": "100000",
         "searchValue": "cotton",
         "pageNum": 1,
         "pageSize": 20
     }'
参数名 类型 必填 说明
shopId string Y 店铺 ID
categoryId string Y 平台类目 ID
attributeId string Y 平台属性 ID
searchValue string N 搜索关键词,为空时返回第一页默认值
language string N 语言
pageNum long N 页码,默认 1
pageSize long N 每页条数,默认 20

# 返回

{
    "success": true,
    "code": 200,
    "message": "Congratulation! Well done!",
    "data": {
        "pageNum": 1,
        "pageSize": 20,
        "total": 1,
        "list": [
            {"id": "6789", "value": "Cotton", "originalValue": "Cotton"}
        ]
    }
}
字段 类型 说明
pageNum / pageSize / total long 页码 / 每页条数 / 总数
list[].id string 属性值 ID
list[].value string 属性值
list[].originalValue string 原始属性值(Shopee 刊登时传它)
list[].valueUnit string 属性值单位
list[].parentId string 父属性 ID
list[].specId long 规格 ID
list[].parentVidList list<long> 父属性值 ID
list[].brandId long 品牌 ID
list[].extendInfo string 扩展信息
list[].group object 尺码分组 {id, name, values}
list[].subCategorySpecifics list<object> 联动的子属性,结构同 2.5

# 2.7 查询类目特性(POST)

查询 eBay 类目对 UPC / EAN / ISBN 的要求,以及是否支持多变体。仅支持 eBay。

# URL

https://developers.cjdropshipping.com/api2.0/v1/listed/getCategoryFeatureList

# CURL

curl --location --request POST 'https://developers.cjdropshipping.com/api2.0/v1/listed/getCategoryFeatureList' \
     --header 'CJ-Access-Token: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' \
     --header 'Content-Type: application/json' \
     --data '{
         "shopId": "1723456789012345678",
         "categoryId": "53159",
         "siteCode": "US"
     }'
参数名 类型 必填 说明
shopId string Y eBay 店铺 ID
categoryId string Y 叶子类目 ID
siteCode string Y 站点

# 返回

{
    "success": true,
    "code": 200,
    "message": "Congratulation! Well done!",
    "data": [
        {
            "upcEnabled": "Disabled",
            "eanEnabled": "Required",
            "isbnEnabled": "Disabled",
            "isBrandMPNIEnabled": false,
            "isVariant": true,
            "singleSkuListing": false
        }
    ]
}
字段 类型 说明
upcEnabled string UPC 要求,Required 表示必填
eanEnabled string EAN 要求,Required 表示必填
isbnEnabled string ISBN 要求,Required 表示必填
isBrandMPNIEnabled boolean 是否需要 GTIN 或 品牌 + MPN 组合
isVariant boolean 类目是否支持多变体
singleSkuListing boolean 是否按单变体拆分刊登(单次最多 10 个变体)

# 2.8 查询类目资质(POST)

查询 TikTok 类目要求上传的商品资质。

# URL

https://developers.cjdropshipping.com/api2.0/v1/listed/getProductCertifications

# CURL

curl --location --request POST 'https://developers.cjdropshipping.com/api2.0/v1/listed/getProductCertifications' \
     --header 'CJ-Access-Token: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' \
     --header 'Content-Type: application/json' \
     --data '{
         "shopId": "1800000000000000001",
         "categoryId": "601226",
         "productId": "2508050912341600900"
     }'
参数名 类型 必填 说明
shopId string Y TikTok 店铺 ID
categoryId string Y 叶子类目 ID
productId string Y CJ 商品 ID

# 返回

{
    "success": true,
    "code": 200,
    "message": "Congratulation! Well done!",
    "data": [
        {
            "id": "7000000000000000001",
            "name": "CE Certificate",
            "isBindCj": true,
            "isApply": false,
            "sampleImageUrl": "https://example.com/sample.jpg"
        }
    ]
}
字段 类型 说明
id string 平台资质 ID,填入 productCertificationList[].platformCertificationId
name string 资质名称
isBindCj boolean 是否已匹配 CJ 资质
isApply boolean 是否已发起申请
sampleImageUrl string TikTok 资质示例图

# 2.9 查询品牌(POST)

查询平台品牌,适用于 TikTok、Lazada、AliExpress。

# URL

https://developers.cjdropshipping.com/api2.0/v1/listed/queryBrand

# CURL

curl --location --request POST 'https://developers.cjdropshipping.com/api2.0/v1/listed/queryBrand' \
     --header 'CJ-Access-Token: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' \
     --header 'Content-Type: application/json' \
     --data '{
         "shopId": "1800000000000000001",
         "needNoBrand": true,
         "pageNum": 1,
         "pageSize": 10
     }'
参数名 类型 必填 说明
shopId string Y 店铺 ID
countryCode string N 国家 / 站点代码
categoryId string N 类目 ID
needNoBrand boolean N 是否在结果中包含「No brand」选项,默认 false
language string N 语言
pageNum long N 页码,默认 1
pageSize long N 每页条数,默认 10

# 返回

{
    "success": true,
    "code": 200,
    "message": "Congratulation! Well done!",
    "data": [
        {"brandId": "7082000000000000001", "brandName": "No brand", "value": "No brand"}
    ]
}
字段 类型 说明
brandId string 品牌 ID,填入 platformBrandId
brandName string 品牌名称
value string 品牌名称(即将废弃,请用 brandName)

# 2.10 查询商品类型(POST)

查询 Shopify 店铺已有的 product type,仅支持 Shopify。

# URL

https://developers.cjdropshipping.com/api2.0/v1/listed/queryProductTypes

# CURL

curl --location --request POST 'https://developers.cjdropshipping.com/api2.0/v1/listed/queryProductTypes' \
     --header 'CJ-Access-Token: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' \
     --header 'Content-Type: application/json' \
     --data '{
         "shopId": "1530000000000000001"
     }'
参数名 类型 必填 说明
shopId string Y Shopify 店铺 ID

# 返回

{
    "success": true,
    "code": 200,
    "message": "Congratulation! Well done!",
    "data": [
        {"product_type": "Dresses", "categoryId": null, "type": null}
    ]
}
字段 类型 说明
product_type string product type 名称,刊登时填入 categoryId
categoryId string 类目 ID
type string 类型

# 3 店铺 / 站点 / 物流 / 模板

# 3.1 查询店铺刊登信息(POST)

查询店铺的币种、额度等刊登信息;传 productId 时同时校验该商品是否已在该店铺刊登成功(已刊登返回 20001)。

# URL

https://developers.cjdropshipping.com/api2.0/v1/listed/queryShopInfo

# CURL

curl --location --request POST 'https://developers.cjdropshipping.com/api2.0/v1/listed/queryShopInfo' \
     --header 'CJ-Access-Token: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' \
     --header 'Content-Type: application/json' \
     --data '{
         "shopId": "1530000000000000001",
         "productId": "2508050912341600900"
     }'
参数名 类型 必填 说明
shopId string Y 店铺 ID
productId string N CJ 商品 ID,传了会校验是否已刊登
shopStatus int N 店铺状态,默认 1(启用)

# 返回

{
    "success": true,
    "code": 200,
    "message": "Congratulation! Well done!",
    "data": [
        {
            "shopId": "1530000000000000001",
            "shopName": "myshop",
            "aliasName": "My Shop",
            "type": "shopify",
            "shopStatusCode": 1,
            "isCb": true,
            "country": {"countryCode": "US", "countryName": "United States"},
            "defaultCurrency": "USD",
            "symbol": "$",
            "amountLimit": 0,
            "platformLogoUrl": "https://example.com/shopify.png",
            "businessType": 0
        }
    ]
}
字段 类型 说明
shopId string 店铺 ID
shopName string 店铺名称
aliasName string 店铺别名
type string 平台类型
shopStatusCode int 店铺状态码:1 启用
shopStatus string 店铺状态枚举
isCb boolean 是否跨境店
country object 店铺国家 {countryCode, countryName}
countries list<object> 店铺可访问的站点国家
defaultCurrency string 店铺币种,建议作为 publishPriceCurrency
symbol string 币种符号
amountLimit number 最低售价限制(Etsy)
etsyV3 boolean 是否 Etsy V3 店铺
platformLogoUrl string 平台 Logo
businessType int 平台业务类型:0 ERP 平台、1 跨境平台
MarketplaceId string 站点信息(Temu),注意首字母大写
lastListedShopId string 上次刊登的店铺 ID
sourceCountryCode string 上次刊登选择的收货国
logisticsName string 上次刊登选择的物流
areaId int 上次刊登选择的发货仓

# 3.2 查询可刊登站点(POST)

查询店铺可刊登的站点 / 国家及币种,适用于 eBay、Lazada、Shopee、Temu。平台以店铺为准。

# URL

https://developers.cjdropshipping.com/api2.0/v1/listed/queryCountryList

# CURL

curl --location --request POST 'https://developers.cjdropshipping.com/api2.0/v1/listed/queryCountryList' \
     --header 'CJ-Access-Token: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' \
     --header 'Content-Type: application/json' \
     --data '{
         "shopId": "1723456789012345678"
     }'
参数名 类型 必填 说明
shopId string Y 店铺 ID

# 返回

{
    "success": true,
    "code": 200,
    "message": "Congratulation! Well done!",
    "data": [
        {
            "countryCode": "US",
            "countryName": "United States",
            "registeredCountry": true,
            "currencyList": [{"currencyCode": "USD", "currencySymbol": "$"}]
        }
    ]
}
字段 类型 说明
countryCode string 站点 / 国家代码。eBay 为站点值(如 US、UK、Germany),刊登时填入 siteCode;Lazada GSP 填入 ventures
countryName string 名称
registeredCountry boolean 是否注册站点(可作为默认站点)
currencyList list<object> 站点币种 [{currencyCode, currencySymbol}],eBay 取第一个作为 publishPriceCurrency

# 3.3 查询 eBay 额度与业务政策(POST)

查询 eBay 店铺的刊登额度,以及运输 / 付款 / 退货业务政策。仅支持 eBay。

# URL

https://developers.cjdropshipping.com/api2.0/v1/listed/ebay/queryPolicies

# CURL

curl --location --request POST 'https://developers.cjdropshipping.com/api2.0/v1/listed/ebay/queryPolicies' \
     --header 'CJ-Access-Token: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' \
     --header 'Content-Type: application/json' \
     --data '{
         "shopId": "1723456789012345678",
         "siteCode": "US"
     }'
参数名 类型 必填 说明
shopId string Y eBay 店铺 ID
siteCode string Y eBay 站点(如 US、UK、Germany),来自 3.2

# 返回

{
    "success": true,
    "code": 200,
    "message": "Congratulation! Well done!",
    "data": {
        "quantityLimit": 100,
        "amountLimit": 5000.00,
        "currency": "USD",
        "currencySymbol": "$",
        "ebayPolicy": {
            "fulfillmentPolicies": [{"id": "245678901011", "name": "Ship 3 days"}],
            "paymentPolicies": [{"id": "245678901012", "name": "Pay"}],
            "returnPolicies": [{"id": "245678901013", "name": "30 days"}]
        }
    }
}
字段 类型 说明
quantityLimit long 剩余可刊登数量额度
amountLimit number 剩余可刊登金额额度
currency string 额度币种
currencySymbol string 币种符号
ebayPolicy object 业务政策,可直接作为刊登参数 ebayPolicyVO;结构见 1.6

# 3.4 查询 eBay 运输服务(POST)

查询 eBay 站点可用的运输服务。仅支持 eBay(平台以店铺为准)。

# URL

https://developers.cjdropshipping.com/api2.0/v1/listed/queryLogisticsList

# CURL

curl --location --request POST 'https://developers.cjdropshipping.com/api2.0/v1/listed/queryLogisticsList' \
     --header 'CJ-Access-Token: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' \
     --header 'Content-Type: application/json' \
     --data '{
         "shopId": "1723456789012345678",
         "siteCode": "US"
     }'
参数名 类型 必填 说明
shopId string Y eBay 店铺 ID
siteCode string Y eBay 站点

# 返回

{
    "success": true,
    "code": 200,
    "message": "Congratulation! Well done!",
    "data": [
        {
            "shippingService": "USPSPriority",
            "serviceType": "Flat",
            "shippingDescription": "USPS Priority Mail"
        }
    ]
}
字段 类型 说明
shippingService string 运输服务,填入 platformShippingService
serviceType string 运输服务类型,填入 platformShippingServiceType(必填)
shippingDescription string 说明

# 3.5 查询刊登限制(POST)

查询 Shopee 对标题、描述、图片、变体、价格、库存等的限制。

# URL

https://developers.cjdropshipping.com/api2.0/v1/listed/publishProductLimit

# CURL

curl --location --request POST 'https://developers.cjdropshipping.com/api2.0/v1/listed/publishProductLimit' \
     --header 'CJ-Access-Token: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' \
     --header 'Content-Type: application/json' \
     --data '{
         "shopId": "1700000000000000001",
         "cjProductId": "2508050912341600900"
     }'
参数名 类型 必填 说明
shopId string Y Shopee 店铺 ID
cjProductId string N CJ 商品 ID
categoryId string N 平台类目 ID
forceFlush boolean N 是否强制刷新缓存

# 返回

{
    "success": true,
    "code": 200,
    "message": "Congratulation! Well done!",
    "data": {
        "shopId": "1700000000000000001",
        "cjProductId": "2508050912341600900",
        "productNameLength": {"minLimit": 10, "maxLimit": 120},
        "productDescriptionLength": {"minLimit": 20, "maxLimit": 3000},
        "productImageCount": {"minLimit": 1, "maxLimit": 9},
        "variantNameLength": {"minLimit": 1, "maxLimit": 14},
        "variantOptionLength": {"minLimit": 1, "maxLimit": 30},
        "price": {"minLimit": 0.1, "maxLimit": 100000},
        "stock": {"minLimit": 1, "maxLimit": 999999}
    }
}

限制项都是 {minLimit, maxLimit, value, isValid} 结构(minLimit / maxLimit 为空或 0 表示不限制):

字段 说明
productCount 商品数量限制
productNameLength 标题长度
productImageCount 图片张数
productDescriptionLength 描述长度
variantNameLength 规格名长度
variantOptionLength 规格值长度
price 价格范围
wholesalePriceThresholdPercentage 批发价占原价的百分比
stock 库存范围
descriptionTextLength / descriptionImageCount / descriptionImageWidth / descriptionImageHeight / descriptionImageAspectRatio 拓展描述的文本长度、图片张数、宽、高、宽高比
textLengthMultiplier 中文字符长度系数:文本长度 = 中文长度 × 系数 + 英文长度
extendedDescription 拓展描述限制
dtsLimit 发货天数限制:supportPreOrder 是否支持预售、nonPreOrderDaysToShip 非预售发货天数、daysToShipLimit 预售发货天数
weightLimit 重量限制,weightMandatory 是否必填
dimensionLimit 体积限制,dimensionMandatory 是否必填
sizeChartLimit 尺码表:sizeChartMandatory 是否必填、supportImageSizeChart、supportTemplateSizeChart

# 3.6 查询刊登物流渠道(POST)

查询 Shopee 店铺可用的物流渠道,用于填写 logisticsChannelConfig。

# URL

https://developers.cjdropshipping.com/api2.0/v1/listed/publishLogisticsChannel

# CURL

curl --location --request POST 'https://developers.cjdropshipping.com/api2.0/v1/listed/publishLogisticsChannel' \
     --header 'CJ-Access-Token: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' \
     --header 'Content-Type: application/json' \
     --data '{
         "shopId": "1700000000000000001",
         "cjProductId": "2508050912341600900"
     }'
参数名 类型 必填 说明
shopId string Y Shopee 店铺 ID
cjProductId string N CJ 商品 ID
forceFlush boolean N 是否强制刷新缓存

# 返回

{
    "success": true,
    "code": 200,
    "message": "Congratulation! Well done!",
    "data": [
        {
            "logisticsChannelId": "18025",
            "logisticsChannelName": "Standard Delivery",
            "preferred": true,
            "codEnabled": false,
            "feeType": "SIZE_SELECTION",
            "sizeList": [{"sizeId": "1", "name": "Small", "defaultPrice": 2.50}]
        }
    ]
}
字段 类型 说明
logisticsChannelId string 渠道 ID,填入 channels[].platformLogisticChannelId
logisticsChannelName string 渠道名称
logisticsChannelDescription string 渠道说明
preferred boolean 是否首选
codEnabled boolean 是否支持货到付款
feeType string 运费模式:SIZE_SELECTION(需传 platformSizeId)、SIZE_INPUT、FIXED_DEFAULT_PRICE、CUSTOM_PRICE(需传 shippingFee)
sizeList list<object> 尺寸运费 [{sizeId, name, defaultPrice}]
weightLimit / volumeLimit / heightLimit / widthLimit / lengthLimit / dimensionSumLimit object 重量(g)、体积(cm³)、高 / 宽 / 长(cm)、三边和(cm)限制,结构 {minLimit, maxLimit}
forceEnable boolean 是否强制启用(卖家不能关闭)
sellerLogisticHasConfiguration boolean 卖家物流渠道是否已配置
logisticsDescription string 结账渠道对应的履约渠道说明
logisticsCapability object 渠道能力:sellerLogistics、directDelivery、spxInstant
supportCrossBorder boolean 是否支持跨境
blockSellerCoverShippingFee boolean 是否禁止卖家承担运费
supportPreOrder boolean 是否支持预售

# 3.7 查询刊登可用库存(POST)

查询 CJ 商品各变体在各仓库的可刊登库存及是否允许刊登,适用于 Shopify、TikTok US 等。

# URL

https://developers.cjdropshipping.com/api2.0/v1/listed/publishWarehouseInventory

# CURL

curl --location --request POST 'https://developers.cjdropshipping.com/api2.0/v1/listed/publishWarehouseInventory' \
     --header 'CJ-Access-Token: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' \
     --header 'Content-Type: application/json' \
     --data '{
         "shopId": "1530000000000000001",
         "cjProductId": "2508050912341600900"
     }'
参数名 类型 必填 说明
shopId string Y 店铺 ID
cjProductId string Y CJ 商品 ID
cjVariantIds list<string> N 只查这些变体,不传查全部

# 返回

{
    "success": true,
    "code": 200,
    "message": "Congratulation! Well done!",
    "data": {
        "shopId": "1530000000000000001",
        "shopType": "shopify",
        "cjProductId": "2508050912341600900",
        "canPublish": true,
        "publishInventory": 1200,
        "variantWarehouseInventories": [
            {
                "cjVariantId": "2508050912341601000",
                "cjVariantSku": "CJLQ123456701AZ",
                "canPublish": true,
                "publishInventory": 600,
                "inventories": [
                    {"cjWarehouseId": "CN", "cjWarehouseName": "China Warehouse", "publishInventory": 600,
                     "shopWarehouseId": "gid://shopify/Location/7788", "shopWarehouseName": "CJ Location"}
                ]
            }
        ]
    }
}
字段 类型 说明
shopId / shopType string 店铺 ID / 平台
cjProductId / cjProductType string CJ 商品 ID / 商品类型
usInventoryUsers / onlyUsInventoryUsers boolean 是否使用美国仓库存 / 是否只使用美国仓库存
canPublish boolean 是否允许刊登
canNotPublishMessage string 不允许刊登的原因
publishInventory int 可刊登总库存
variantWarehouseInventories[].cjVariantId / cjVariantSku string CJ 变体 ID / SKU
variantWarehouseInventories[].canPublish / canNotPublishMessage boolean / string 该变体是否允许刊登及原因
variantWarehouseInventories[].publishInventory int 该变体可刊登库存
variantWarehouseInventories[].inventories[] list<object> 分仓库存:cjWarehouseId、cjWarehouseName、isCjSupplierWarehouse、isSelfPickup、publishInventory、shopWarehouseId、shopWarehouseName、shopGlobalWarehouseId、syncType、subType、cjPrivateQuantity(私有库存)、cjCommonQuantity(公有库存)、cjDepositQuantity(押金库存)

# 3.8 查询可用运费方案(POST)

查询 Shopify 店铺刊登时可选的运费方案(Delivery Profile),并判断本次刊登是否需要绑定。仅支持 Shopify。

# URL

https://developers.cjdropshipping.com/api2.0/v1/listed/queryShopAvailableProfiles

# CURL

curl --location --request POST 'https://developers.cjdropshipping.com/api2.0/v1/listed/queryShopAvailableProfiles' \
     --header 'CJ-Access-Token: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' \
     --header 'Content-Type: application/json' \
     --data '{
         "shopId": "1530000000000000001",
         "shopLocationIds": ["gid://shopify/Location/7788"],
         "sources": "PUBLISH",
         "collectionIds": ["438700000001"]
     }'
参数名 类型 必填 说明
shopId string Y Shopify 店铺 ID
shopLocationIds list<string> N 本次刊登选择的库存地点(locationIds),方案需覆盖这些地点
sources string N 调用场景:PUBLISH(刊登,默认)/ CONNECTION(关联)
collectionIds list<string> N 本次刊登选择的 collection
forceRefresh boolean N 是否跳过缓存强制刷新

# 返回

{
    "success": true,
    "code": 200,
    "message": "Congratulation! Well done!",
    "data": {
        "isNeedBindProfile": true,
        "notNeedBindProfileReasonCode": null,
        "notNeedBindProfileReason": null,
        "marketDrivenShipping": false,
        "profiles": [
            {
                "id": "gid://shopify/DeliveryProfile/1234567",
                "name": "CJ Shipping",
                "hasZeroFeeRate": false,
                "locations": [{"id": "gid://shopify/Location/7788", "name": "CJ Location", "fromCj": true}]
            }
        ]
    }
}
字段 类型 说明
isNeedBindProfile boolean 是否需要绑定运费方案。只有为 false 才可以不传 deliveryProfileId
notNeedBindProfileReasonCode string 不需要绑定的原因码
notNeedBindProfileReason string 不需要绑定的原因(英文,供排查)
marketDrivenShipping boolean 店铺是否启用市场驱动运费(MDS),null 表示未知
profiles[].id string 运费方案 ID,填入 deliveryProfileId
profiles[].name string 运费方案名称
profiles[].hasZeroFeeRate boolean 方案下是否有 0 元费率
profiles[].locations[] list<object> 方案覆盖的库存地点 {id, name, fromCj}

# 3.9 查询运费 / 服务模板与计量单位(POST)

仅支持 AliExpress。

# URL

https://developers.cjdropshipping.com/api2.0/v1/listed/queryTemplateInfo

# CURL

curl --location --request POST 'https://developers.cjdropshipping.com/api2.0/v1/listed/queryTemplateInfo' \
     --header 'CJ-Access-Token: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' \
     --header 'Content-Type: application/json' \
     --data '{
         "shopId": "1900000000000000001",
         "templateType": 0
     }'
参数名 类型 必填 说明
shopId string Y AliExpress 店铺 ID
templateType int N 0 全部(默认)、1 运费模板、2 服务模板

# 返回

{
    "success": true,
    "code": 200,
    "message": "Congratulation! Well done!",
    "data": {
        "freightTemplateList": [{"templateId": 1000001, "templateName": "Default", "isDefault": true}],
        "promiseTemplateList": [{"id": 2000001, "name": "Service Template"}],
        "productUnitList": [{"unitNumber": 100000015, "unit": "piece"}]
    }
}
字段 类型 说明
freightTemplateList[] list<object> 运费模板:templateId(填入 freightTemplateId)、templateName、isDefault
promiseTemplateList[] list<object> 服务模板:id(填入 promiseTemplateId)、name
productUnitList[] list<object> 计量单位:unitNumber(填入 productUnitId)、unit

# 3.10 查询尺码模板(POST)

仅支持 AliExpress。

# URL

https://developers.cjdropshipping.com/api2.0/v1/listed/querySizeTemplate

# CURL

curl --location --request POST 'https://developers.cjdropshipping.com/api2.0/v1/listed/querySizeTemplate' \
     --header 'CJ-Access-Token: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' \
     --header 'Content-Type: application/json' \
     --data '{
         "shopId": "1900000000000000001",
         "leafCategoryId": "200000346",
         "currentPage": 1
     }'
参数名 类型 必填 说明
shopId string Y AliExpress 店铺 ID
leafCategoryId string Y 叶子类目 ID
currentPage long N 页码,从 1 开始

# 返回

{
    "success": true,
    "code": 200,
    "message": "Congratulation! Well done!",
    "data": {
        "total": 1,
        "sizePage": 20,
        "currentPage": 1,
        "isNewSizeChartTemple": false,
        "sizeChartList": [
            {"sizeChartId": 3000001, "modelName": "Women Tops", "categoryId": 200000346, "isDefault": "Y"}
        ]
    }
}
字段 类型 说明
total long 总记录数
sizePage long 每页最大记录数
currentPage long 当前页
isNewSizeChartTemple boolean 是否新版尺码模板类目,填入刊登参数同名字段
sizeChartList[].sizeChartId long 尺码模板 ID,填入 sizeChartId
sizeChartList[].modelName string 模板名称
sizeChartList[].categoryId long 模板所属叶子类目
sizeChartList[].isDefault string 是否默认模板(Y / N)

# 3.11 查询商品分组(POST)

仅支持 AliExpress。

# URL

https://developers.cjdropshipping.com/api2.0/v1/listed/queryProductGroup

# CURL

curl --location --request POST 'https://developers.cjdropshipping.com/api2.0/v1/listed/queryProductGroup' \
     --header 'CJ-Access-Token: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' \
     --header 'Content-Type: application/json' \
     --data '{
         "shopId": "1900000000000000001"
     }'
参数名 类型 必填 说明
shopId string Y AliExpress 店铺 ID

# 返回

{
    "success": true,
    "code": 200,
    "message": "Congratulation! Well done!",
    "data": {
        "productGroupList": [
            {
                "groupId": 500001,
                "groupName": "Women",
                "childGroupList": [{"groupId": 500011, "groupName": "Dresses"}]
            }
        ]
    }
}
字段 类型 说明
productGroupList[].groupId long 分组 ID
productGroupList[].groupName string 分组名称
productGroupList[].childGroupList[] list<object> 子分组 {groupId, groupName}。有子分组时请选子分组 ID 填入 productGroupIdList

# 3.12 查询刊登配置(POST)

查询站点、承诺发货时间、运费模板、平台仓库、尺码表、模特、外包装等刊登配置,适用于 Temu、Temu US Local、Mercado。

# URL

https://developers.cjdropshipping.com/api2.0/v1/listed/queryPublishInfoByCondition

# CURL

curl --location --request POST 'https://developers.cjdropshipping.com/api2.0/v1/listed/queryPublishInfoByCondition' \
     --header 'CJ-Access-Token: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' \
     --header 'Content-Type: application/json' \
     --data '{
         "shopId": "1600000000000000001",
         "siteId": "1",
         "categoryId": "1001",
         "parentCategoryIds": ["100"],
         "language": "EN"
     }'
参数名 类型 必填 说明
shopId string Y 店铺 ID
siteId string N 站点 ID。不传时只返回站点、发货时效、外包装、仓库等基础信息;传了才返回运费模板
categoryId string N 叶子类目 ID,传了才返回尺码表、模特信息
parentCategoryIds list<string> N 父类目 ID 链
language string N 语言
queryOperationType string N 只查某一项:WAREHOUSE_INFO、LOGISTICS_TEMPLATE、SIZE_CHART_TEMPLATE、MODEL;不传查全部
modelName string N 模特名称(查模特列表时)
pageNo long N 模特列表页码
pageSize long N 模特列表每页条数

# 返回

{
    "success": true,
    "code": 200,
    "message": "Congratulation! Well done!",
    "data": {
        "siteList": [{"id": "1", "name": "US"}],
        "shipmentTimeList": [{"id": "86400", "name": "24"}, {"id": "172800", "name": "48"}],
        "packageShapeList": [{"id": "0", "name": "Irregular"}],
        "packageTypeList": [{"id": "0", "name": "Hard"}],
        "logisticsTemplateList": [{"id": "LT001", "name": "Default"}],
        "warehouseInfoList": [{"warehouseId": "WH001", "warehouseName": "US Warehouse", "warehouseDisable": false, "managementType": "0"}],
        "sizeCharts": [],
        "shoeCategory": false,
        "suitCategory": false,
        "needSizeCharts": false,
        "modelNecessary": false,
        "modelEnableCategory": false,
        "modelType": 0,
        "modelInfoPageResult": null
    }
}
字段 类型 说明
siteList list<object> 站点 {id, name},id 填入 siteCode
shipmentTimeList list<object> 承诺发货时间 {id, name},id 填入 deliveryTime(Temu 为秒,Temu US Local 为天)
logisticsTemplateList list<object> 运费模板 {id, name},id 填入 freightTemplateId
packageShapeList / packageTypeList list<object> 外包装形状 / 类型 {id, name},填入 outerPackageDTO
warehouseInfoList list<object> 平台仓库:warehouseId、warehouseName、warehouseDisable、managementType(0 三方仓、1 自建仓、2 家庭仓、3 其他)
siteWarehouseInfoList list<object> 按站点分组的仓库 {siteId, siteName, warehouseInfoList}
sizeCharts list<object> 尺码表 {businessId, groups[{id, name, values}]},businessId 填入 sizeChartIdList
shoeCategory / suitCategory boolean 是否鞋类 / 套装类目(套装需 2 个尺码表)
needSizeCharts boolean 是否需要尺码表
modelNecessary / modelEnableCategory boolean 模特是否必填 / 类目是否可用模特
modelType int 模特类型:0 成衣模特、1 鞋模
modelInfoPageResult object 模特分页 {pageNum, pageSize, total, list[]},list[] 含 id、modelName、modelType、headPortrait、clothesModel{height, bust, waist, hipline}、shoeModel{footLength, footWidth}
importDesignationList list<object> 进口设定 {id, name}
fulfillmentTypeList list<object> 履约渠道 {id, name}

# 3.13 查询可绑定的 CJ 仓库(POST)

查询 Temu 刊登时各变体可绑定的 CJ 仓库及库存。

# URL

https://developers.cjdropshipping.com/api2.0/v1/listed/queryPublishCJWarehouseList

# CURL

curl --location --request POST 'https://developers.cjdropshipping.com/api2.0/v1/listed/queryPublishCJWarehouseList' \
     --header 'CJ-Access-Token: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' \
     --header 'Content-Type: application/json' \
     --data '{
         "shopId": "1600000000000000001",
         "productId": "2508050912341600900",
         "countryCode": "US",
         "deliveryTime": "172800"
     }'
参数名 类型 必填 说明
shopId string Y Temu 店铺 ID
productId string Y CJ 商品 ID
countryCode string N 国家代码
deliveryTime string N 承诺发货时间(秒),与刊登参数一致

# 返回

{
    "success": true,
    "code": 200,
    "message": "Congratulation! Well done!",
    "data": [
        {
            "productId": "2508050912341600900",
            "cjVid": "2508050912341601000",
            "warehouseList": [
                {"id": "US-EAST-01", "areaId": "2", "countryCode": "US", "country": "United States",
                 "inventory": 120, "isSelfPickup": 0, "cjWarehouseType": 1, "status": 1}
            ]
        }
    ]
}
字段 类型 说明
productId string CJ 商品 ID
cjVid string CJ 变体 ID
warehouseList[].id string CJ 仓库 ID,填入 warehouseConnectionNewVOS[].cjWarehouseId
warehouseList[].inventory long 仓库库存
warehouseList[].areaId / region / regionCode string 仓库区域
warehouseList[].country / countryCode / state / city / district / town / zipcode / fullAddress string 仓库地址
warehouseList[].contactPerson / phone string 联系人 / 电话
warehouseList[].status int 仓库状态
warehouseList[].isSelfPickup int 是否支持自提:0 否、1 是
warehouseList[].managementType string 仓库类型
warehouseList[].cjWarehouseType int 是否 Y2 仓库
warehouseList[].warehouseKey string 仓库标识

# 3.14 查询刊登类型(POST)

查询 Mercado 类目可用的刊登类型。

# URL

https://developers.cjdropshipping.com/api2.0/v1/listed/getListingType

# CURL

curl --location --request POST 'https://developers.cjdropshipping.com/api2.0/v1/listed/getListingType' \
     --header 'CJ-Access-Token: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' \
     --header 'Content-Type: application/json' \
     --data '{
         "shopId": "2000000000000000001",
         "categoryId": "MLM1055"
     }'
参数名 类型 必填 说明
shopId string Y Mercado 店铺 ID
categoryId string Y 叶子类目 ID
siteId string N 站点 ID

# 返回

{
    "success": true,
    "code": 200,
    "message": "Congratulation! Well done!",
    "data": [
        {"siteId": "MLM", "id": "gold_special", "name": "Classic", "maxStock": 9999}
    ]
}
字段 类型 说明
siteId string 站点 ID
id string 刊登类型 ID,填入 listingTypeId
name string 名称
maxStock long 每个商品的最大库存(所有变体库存之和不能超过)

# 3.15 查询刊登额度(POST)

查询 Mercado 店铺的刊登额度。

# URL

https://developers.cjdropshipping.com/api2.0/v1/listed/getListingLimit

# CURL

curl --location --request POST 'https://developers.cjdropshipping.com/api2.0/v1/listed/getListingLimit' \
     --header 'CJ-Access-Token: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' \
     --header 'Content-Type: application/json' \
     --data '{
         "shopId": "2000000000000000001"
     }'
参数名 类型 必填 说明
shopId string Y Mercado 店铺 ID
siteId string N 站点 ID

# 返回

{
    "success": true,
    "code": 200,
    "message": "Congratulation! Well done!",
    "data": {
        "userId": 123456789,
        "siteId": "MLM",
        "logisticType": "remote",
        "quota": 1000,
        "totalItems": 120
    }
}
字段 类型 说明
userId long 平台用户 ID
siteId string 站点 ID
logisticType string 物流类型 / 状态
quota int 最大可刊登数量
totalItems int 已刊登数量