文档中心 > API类目 > 新零售供应链API

alibaba.ascp.channel.supplier.product.goods.bind (渠道产品与货品绑定接口)

渠道产品与货品绑定接口

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
top_bind_product_goods_request TopBindProductGoodsRequest 可选 请求
  • └ product_id
  • Number
  • 必须
  • 11111
  • 供应商渠道产品id
  • └ goods_id
  • Number
  • 必须
  • 111
  • 供应商货品id
  • └ sub_channel_code
  • String
  • 可选
  • subChannelCode
  • 二级渠道编码
  • └ sku_id
  • Number
  • 可选
  • 11
  • 供应商渠道产品skuId
  • └ channel_code
  • String
  • 必须
  • channelCode
  • 渠道编码

响应参数

名称 类型 示例值 描述
result ResultDTO 返回结果
  • └ success
  • Boolean
  • true
  • 请求是否成功
  • └ module
  • Boolean
  • true
  • 是否绑定成功
  • └ error_message
  • String
  • error_message
  • 错误信息
  • └ error_code
  • String
  • error_code
  • 错误码

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAscpChannelSupplierProductGoodsBindRequest req = new AlibabaAscpChannelSupplierProductGoodsBindRequest();
AlibabaAscpChannelSupplierProductGoodsBindRequest.TopBindProductGoodsRequest obj1 = new AlibabaAscpChannelSupplierProductGoodsBindRequest.TopBindProductGoodsRequest();
obj1.setProductId(11111L);
obj1.setGoodsId(111L);
obj1.setSubChannelCode("subChannelCode");
obj1.setSkuId(11L);
obj1.setChannelCode("channelCode");
req.setTopBindProductGoodsRequest(obj1);
AlibabaAscpChannelSupplierProductGoodsBindResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_ascp_channel_supplier_product_goods_bind_response>
    <result>
        <success>true</success>
        <module>true</module>
        <error_message>error_message</error_message>
        <error_code>error_code</error_code>
    </result>
</alibaba_ascp_channel_supplier_product_goods_bind_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部