供应链API
  1. 3 商品
供应链API
  • 使用说明
  • 帮助中心
  • 更新说明
  • V1
    • 1 账号信息
      • 1.1 获取 TOKEN
      • 1.2 重置 TOKEN
      • 1.3 账号基本信息
      • 1.4 设置回调地址
    • 2 基础信息
      • 2.1 省市区列表
      • 2.2 省市区详情
      • 2.3 商品分类
      • 2.4 商品品牌
      • 2.5 所有运输方式
    • 3 商品
      • 3.1 商品列表
        POST
      • 3.2 商品详情
        POST
      • 3.3 商品运输方式
        POST
      • 3.4 商品库存
        POST
      • 3.5 全部在售商品
        POST
    • 4 订单
      • 4.1 运费计算
      • 4.2 订单预览
      • 4.3 订单创建
      • 4.4 订单支付
      • 4.5 订单取消
      • 4.6 订单详情
      • 4.7 确认收货
      • 4.8 运输方式运费
    • 5 售后
      • 5.1 预约服务类型
      • 5.2 上传资源
      • 5.3 创建预约服务
      • 5.4 取消预约服务
      • 5.5 预约服务列表
      • 5.6 预约服务详情
      • 5.7 订单售后详情
    • 6 回调通知
      • 回调通知
  1. 3 商品

3.2 商品详情

POST
/api/v1/goods/goods_detail

功能说明#

商品所有属性的详情

应用场景#

商品所有属性的详情,初始化商品或者更新商品时使用

注意事项#

初始化商品数据时,可通过此接口获取所有在售的商品,以业务系统支持的数据结构进行存储

请求参数

Header 参数

Body 参数application/json

示例
{
	"goodsId": 318706
}

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://test-openapi.7dingdong.com/api/v1/goods/goods_detail' \
--header 'appKey;' \
--header 'token;' \
--header 'nonce;' \
--header 'timestamp;' \
--header 'signature;' \
--header 'Content-Type: application/json' \
--data-raw '{
	"goodsId": 318706
}'

返回响应

🟢200成功
application/json
Body

示例
{
    "status": 200,
    "msg": "请求成功",
    "requestId": "f84b0ab8-3910-11ef-88b9-08002763b2f5",
    "content": {
        "goodsId": 318706,
        "goodsName": "API测试使用不要下架不要下架不要下架!!!!企叮咚高清电脑桌面背景图",
        "cateId1": 1,
        "cateId2": 11,
        "brandId": 26,
        "goodsType": 1,
        "onOffStatus": 1,
        "closeStatus": 0,
        "marketPrice": 1000,
        "volume": 1000,
        "weight": 100,
        "goodsUnit": "件",
        "samplingNum": 1,
        "discount": 92,
        "specName1": "颜色",
        "specName2": "尺寸",
        "specName3": "型号",
        "specName4": "",
        "defaultImage": "http://csstatics.7dingdong.com/data/files/goods/20230218/small_63f025b552916.jpg",
        "images": [
            {
                "imageId": 746328,
                "imageUrl": "http://csstatics.7dingdong.com/data/files/goods/20210928/61527b8f79164.jpg"
            },
            {
                "imageId": 746333,
                "imageUrl": "http://csstatics.7dingdong.com/data/files/goods/20220509/6278913e7341d.png"
            },
            {
                "imageId": 746334,
                "imageUrl": "http://csstatics.7dingdong.com/data/files/goods/20220602/62987a936bc92.jpg"
            },
            {
                "imageId": 746382,
                "imageUrl": "http://csstatics.7dingdong.com/data/files/goods/20230216/63ee2734802ff.jpeg"
            },
            {
                "imageId": 746384,
                "imageUrl": "http://csstatics.7dingdong.com/data/files/goods/20230218/63f025b552916.jpg"
            }
        ],
        "specs": [
            {
                "specId": 5362926,
                "specValue1": "黄色",
                "specValue2": "XXL",
                "specValue3": "衣服",
                "specValue4": "",
                "price": 3,
                "marketPrice": 1000,
                "packageNum": 2,
                "moq": 1,
                "wlMoq": 1,
                "image": "http://csstatics.7dingdong.com/data/files/goods/20220428/626a3b6cb5647.jpeg"
            },
            {
                "specId": 5362938,
                "specValue1": "灰色",
                "specValue2": "M",
                "specValue3": "水",
                "specValue4": "",
                "price": 5,
                "marketPrice": 1000,
                "packageNum": 2,
                "moq": 1,
                "wlMoq": 1,
                "image": ""
            },
            {
                "specId": 5362944,
                "specValue1": "拂晓绿",
                "specValue2": "256",
                "specValue3": "升级版",
                "specValue4": "",
                "price": 179900,
                "marketPrice": 1000,
                "packageNum": 2,
                "moq": 1,
                "wlMoq": 1,
                "image": ""
            },
            {
                "specId": 5362945,
                "specValue1": "玫瑰金",
                "specValue2": "512",
                "specValue3": "至尊版",
                "specValue4": "",
                "price": 9200,
                "marketPrice": 1000,
                "packageNum": 2,
                "moq": 1,
                "wlMoq": 1,
                "image": ""
            },
            {
                "specId": 5363056,
                "specValue1": "新增",
                "specValue2": "aa",
                "specValue3": "顶级版",
                "specValue4": "",
                "price": 9,
                "marketPrice": 1000,
                "packageNum": 2,
                "moq": 1,
                "wlMoq": 1,
                "image": ""
            }
        ],
        "specialInvoice": 2,
        "description": "<img src=\"http://7dd-statics.7dingdong.com/data/files/image/20190530/20190530202017_84667.png\" alt=\"\" /><img src=\"http://csstatics.7dingdong.com/data/2023/05/26/647014776d030.jpg\" alt=\"\" />\n<p>\n\t这是商品详情99999\n</p>\n<p>\n\t<img src=\"http://csstatics.7dingdong.com/data/2023/02/16/63ee237f76656.jpeg\" alt=\"\" /> \n</p><img src=\"https://7dd-statics.oss-cn-beijing.aliyuncs.com/data/files/1BFE1AD5.jpg\" alt=\"\" />",
        "defaultSpec": 5362945,
        "video": "",
        "videoThumbnail": "http://csstatics.7dingdong.com/data/files/goods/20230207/63e1c47214f94.jpg",
        "videoIntro": "http://upload-qdd.oss-cn-beijing.aliyuncs.com/video/2023/02/04/16754915666505194.mp4"
    }
}
修改于 2024-07-03 12:33:29
上一页
3.1 商品列表
下一页
3.3 商品运输方式
Built with