SearchProducts - 搜索选品池商品

商品搜索接口,提供按不同条件搜索合适商品的分页接口。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息

下表是API对应的授权信息,可以在RAM权限策略语句的Action元素中使用,用来给RAM用户或RAM角色授予调用此API的权限。具体说明如下:

  • 操作:是指具体的权限点。
  • 访问级别:是指每个操作的访问级别,取值为写入(Write)、读取(Read)或列出(List)。
  • 资源类型:是指操作中支持授权的资源类型。具体说明如下:
    • 对于必选的资源类型,用前面加 * 表示。
    • 对于不支持资源级授权的操作,用全部资源表示。
  • 条件关键字:是指云产品自身定义的条件关键字。
  • 关联操作:是指成功执行操作所需要的其他权限。操作者必须同时具备关联操作的权限,操作才能成功。
操作访问级别资源类型条件关键字关联操作
linkedmall:SearchProductslist
*全部资源
*

请求语法

POST /opensaas-s2b/opensaas-s2b-biz-trade/v2/selectionPool/selection-group/product/command/searchProduct HTTP/1.1

请求参数

名称类型必填描述示例值
bodyobject

请求 Body

purchaserIdstring

采购方 id

PIDxxxx
categoryIdsarray

类目 id 集合

string

类目 id

xxx
productStatusstring

商品状态

枚举值:
  • Unsellable不可售卖
  • Sellable可售卖
Sellable
productNamestring

商品名称

绿植
productIdstring

商品 Id

xxxxxxx
lmItemIdstring

LM 商品 id

xxx-xxxxx
inGroupboolean

是否入库

枚举值:
  • true已入库
  • false未入库
true
inventoryRiskLevelstring

库存风险等级

枚举值:
  • High
  • Low
Low
distributionLowPricelong

经销采购价下限

100(单位:分)
distributionHighPricelong

经销采购价上限

100(单位:分)
distributionLowPriceRatiolong

经销溢价率下限

133(1.33%)
distributionHighPriceRatiolong

经销溢价率上限

244(2.44%)
lowMarkPricelong

划线价下限

100(单位:分)
highMarkPricelong

划线价上限

100(单位:分)
lowPricelong

建议零售价下限

100(单位:分)
highPricelong

建议零售价上限

100(单位:分)
platformstring

来源平台

枚举值:
  • Cbu1688分销货盘
  • Tmall天猫
  • Taobao淘宝
Taobao(来源淘宝) Tmall(来源天猫) Cbu(来源1688分销货盘)
brandNamestring

品牌名称

绿植
inGroupStartTimestring

入库起始时间

2025-01-02 12:23:34 (yyyy-MM-dd HH:mm:ss)
inGroupEndTimestring

入库结束时间

2025-01-02 12:23:34 (yyyy-MM-dd HH:mm:ss)
modifyStartTimestring

修改起始时间

2025-01-02 12:23:34 (yyyy-MM-dd HH:mm:ss)
modifyEndTimestring

修改结束时间

2025-01-02 12:23:34 (yyyy-MM-dd HH:mm:ss)
createStartTimestring

创建起始时间

2025-01-02 12:23:34 (yyyy-MM-dd HH:mm:ss)
createEndTimestring

创建结束时间

2025-01-02 12:23:34 (yyyy-MM-dd HH:mm:ss)
tradeModeAndCreditstring

销售模式

枚举值:
  • Credit90支持账期90
  • NonCredit不支持账期
  • ConsignmentJingXiao经销和代销
  • JingXiao经销
  • None无配置
JingXiao
taxRatestring

税率

说明
  • 支持多种税率枚举值组合入参,请使用“,”隔离,例:Rate0,Rate1
  • HasRate 不能和其他枚举值组合入参
  • 枚举值:
    • Rate11%
    • Rate00税率
    • Rate55%
    • Rate66%
    • HasRate有税率
    • Rate99%
    • Rate1313%
    • NonRate无税率
    • TaxExemption免税
    Rate0
    pageSizeinteger

    分页大小

    说明
  • 最大支持 20 个/页
  • 10
    pageNumberinteger

    页码

    1
    orderBystring

    排序字段

    说明
  • 与排序方向字段组合使用
  • 枚举值:
    • soldQuantity按销量排序
    soldQuantity(按销量排序,不填默认创建时间倒序)
    orderDirectionstring

    排序方向

    说明
  • 与排序字段组合使用
  • 枚举值:
    • ASC顺序排序
    • DESC倒序排序
    ASC

    返回参数

    名称类型描述示例值
    object

    Schema of Response

    totalinteger

    总数量

    3
    productsarray<object>

    商品集合

    商品列表object

    商品集合

    picUrlstring

    商品主图

    https://img.alicdn.com/xxx.jpg
    productNamestring

    商品名称

    绿植
    productIdstring

    商品 id

    xxxxx
    lmItemIdstring

    LM 商品 id

    xxx-xxxxx
    distributionPricestring

    经销采购价范围

    ¥0.05 ~ ¥21.10
    diffPricestring

    价差范围

    ¥-9998.95 ~ ¥-9977.90
    distributionPriceRatiostring

    经销溢价率范围

    -100.00% ~ -99.79%
    platformPricestring

    建议零售价范围

    ¥9999.00 ~ ¥9999.00
    platformReservePricestring

    划线价范围

    ¥9999.00 ~ ¥9999.00
    soldQuantitystring

    累计销量

    100
    inventoryRiskLevelstring

    库存风险等级

    枚举值:
    • High
    • Low
    Low
    externalPlatformTypestring

    来源平台

    Taobao(来源淘宝) Tmall(来源天猫) Cbu(来源1688分销货盘)
    shopNamestring

    渠道商店铺名称

    xxx
    categoryChainarray<object>

    类目

    类目object

    类目

    categoryIdlong

    类目 id

    201792301
    namestring

    类目名称

    名称测试
    parentIdlong

    父类 id

    0
    isLeafboolean

    是否叶子节点

    false
    levelinteger

    层级

    1
    bandNamestring

    品牌名称

    绿植
    canSellboolean

    商品是否可售,计算值

    true
    canNotSellReasonstring

    不可售原因

    库存不足
    tradeModestring

    销售模式

    JingXiao
    creditarray

    账期

    账期string

    账期

    枚举值:
    • Credit9090天账期
    • NonCredit不支持账期
    Credit90
    invoiceTypestring

    发票类型

    枚举值:
    • HasInvoice可开发票
    • NonInvoice不可开发票
    HasInvoice
    taxRatelong

    税率

    600(6%) -100(免税)
    taxCodestring

    税码

    3040203000000000000
    gmtCreatestring

    创建时间。

    2025-01-02 12:23:34 (yyyy-MM-dd HH:mm:ss)
    inGroupTimestring

    入库时间

    2025-01-02 12:23:34 (yyyy-MM-dd HH:mm:ss)
    gmtModifiedstring

    最后修改时间。

    2025-01-02 12:23:34 (yyyy-MM-dd HH:mm:ss)
    inGroupboolean

    是否入库

    枚举值:
    • true已入库
    • false未入库
    true
    {
        "requestId": null,
        "total": 1,
        "products": [
            {
                "picUrl": "//img.alicdn.com/imgextra/i4/xxx.jpg",
                "productName": "xxx",
                "productId": "xxxx",
                "lmItemId": "xxx-xxx",
                "distributionPrice": "¥0.01 ~ ¥0.02",
                "diffPrice": "¥0.00 ~ ¥0.00",
                "distributionPriceRatio": "0.00% ~ 0.00%",
                "platformPrice": "¥0.01 ~ ¥0.02",
                "platformReservePrice": "¥0.01 ~ ¥0.02",
                "soldQuantity": "1",
                "inventoryRiskLevel": "Low",
                "externalPlatformType": "Tmall",
                "shopName": "xxxx",
                "categoryChain": [
                    {
                        "categoryId": 50050359,
                        "name": "水产肉类/新鲜蔬果/熟食",
                        "parentId": 0,
                        "level": 1,
                        "isLeaf": false
                    },
                    {
                        "categoryId": 50050372,
                        "name": "生肉/肉制品",
                        "parentId": 50050359,
                        "level": 2,
                        "isLeaf": false
                    },
                    {
                        "categoryId": 50050667,
                        "name": "鸡肉类",
                        "parentId": 50050372,
                        "level": 3,
                        "isLeaf": false
                    },
                    {
                        "categoryId": 124222016,
                        "name": "整鸡/整鸡制品",
                        "parentId": 50050667,
                        "level": 4,
                        "isLeaf": true
                    }
                ],
                "bandName": "xxx",
                "canSell": true,
                "canNotSellReason": null,
                "tradeMode": "JingXiao",
                "credit": [
                    "Credit90"
                ],
                "invoiceType": "HasInvoice",
                "taxRate": 0,
                "taxCode": "xxx",
                "gmtCreate": "2025-01-21 17:11:04",
                "inGroupTime": "2025-01-21 17:12:09",
                "gmtModified": "2025-01-21 17:11:04",
                "inGroup": true
            }
        ]
    }
    

    示例

    正常返回示例

    JSON格式

    {
      "total": 3,
      "products": [
        {
          "picUrl": "https://img.alicdn.com/xxx.jpg",
          "productName": "绿植",
          "productId": "xxxxx",
          "lmItemId": "xxx-xxxxx",
          "distributionPrice": "¥0.05 ~ ¥21.10",
          "diffPrice": "¥-9998.95 ~ ¥-9977.90",
          "distributionPriceRatio": "-100.00% ~ -99.79%",
          "platformPrice": "¥9999.00 ~ ¥9999.00",
          "platformReservePrice": "¥9999.00 ~ ¥9999.00",
          "soldQuantity": 100,
          "inventoryRiskLevel": "Low",
          "externalPlatformType": "Taobao(来源淘宝)\nTmall(来源天猫)\nCbu(来源1688分销货盘)",
          "shopName": "xxx",
          "categoryChain": [
            {
              "categoryId": 201792301,
              "name": "名称测试",
              "parentId": 0,
              "isLeaf": false,
              "level": 1
            }
          ],
          "bandName": "绿植",
          "canSell": true,
          "canNotSellReason": "库存不足",
          "tradeMode": "JingXiao",
          "credit": [
            "Credit90"
          ],
          "invoiceType": "HasInvoice",
          "taxRate": 0,
          "taxCode": 3040203000000000000,
          "gmtCreate": "2025-01-02 12:23:34\n(yyyy-MM-dd HH:mm:ss)\n",
          "inGroupTime": "2025-01-02 12:23:34\n(yyyy-MM-dd HH:mm:ss)\n",
          "gmtModified": "2025-01-02 12:23:34\n(yyyy-MM-dd HH:mm:ss)\n",
          "inGroup": true
        }
      ]
    }

    错误码

    访问错误中心查看更多错误码。

    变更历史

    变更时间变更内容概要操作
    2025-02-19API 内部配置变更,不影响调用查看变更详情