供应链API
  1. 选品库接口
供应链API
  • 地区接口
    • 获取省市树型结构
      GET
  • 品牌接口
    • 获取品牌
      GET
  • 商品分类接口
    • 查询分类信息
      GET
    • 获取所有分类树型结构
      GET
  • 运费规则接口
    • 获取运费模板详情
      POST
    • 获取所有运费模板
      POST
  • 选品库接口
    • 获取我的选品库商品列表
      POST
    • 获取我的选品库商品列表,按标准商品返回结果
      POST
  • 订单接口
    • 同意退款后回填物流信息接口
      POST
    • 申请退款接口
      POST
    • 下单接口
      POST
    • 确认收货
      POST
    • 获取订单接口
      POST
    • 准备支付订单接口
      POST
    • 按订单号获取订单接口
      POST
    • 按买方订单号获取订单接口
      POST
    • 按子订单号获取子订单接口
      POST
    • 更新订单的extra
      POST
  • 商品接口
    • 获取商品详情
      POST
    • 直接获取商品接口
      POST
  1. 选品库接口

获取我的选品库商品列表

POST
http://prod-cn.your-api-server.com/goods-shelf/get-mine-list
选品库接口
1.将除header外的json字符串拼成body=(json)的形式
2.将所有参数按参数名升序排序
3.将参数用=符号连接参数名和参数值,用&符号连接各参数,字符串尾部拼接&secret=(apiSecret)
4.使用md5 小写32位进行签名
5.注意apiSecret 不要提交

请求参数

Header 参数
apiKey
string 
用户的apiKey
必需
sign
string 
签名
必需
timestamp
string 
当前时间戳
必需
Body 参数application/json
desc
boolean 
是否倒序
可选
示例值:
false
pageNum
integer <int32>
页码
可选
pageSize
integer <int32>
分页大小
可选
productId
string 
商品Id
可选
productName
string 
商品名称,包含字符
可选
productSpecsId
string 
规格Id
可选
productStatus
integer <int32>
可选
商品状态 1:上架 2:下架
sortBy
string 
排序字段,可不传
可选
specsName
string 
规格名称,包含字符
可选
specsStatus
integer <int32>
可选
商品规格状态 1:上架 2:下架
status
integer <int32>
可选
选品状态 1:上架 2:下架
示例
{
    "desc": false,
    "pageNum": 0,
    "pageSize": 0,
    "productId": "string",
    "productName": "string",
    "productSpecsId": "string",
    "productStatus": 0,
    "sortBy": "string",
    "specsName": "string",
    "specsStatus": 0,
    "status": 0
}

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://prod-cn.your-api-server.com/goods-shelf/get-mine-list' \
--header 'apiKey;' \
--header 'sign;' \
--header 'timestamp;' \
--header 'Content-Type: application/json' \
--data-raw '{
    "desc": false,
    "pageNum": 0,
    "pageSize": 0,
    "productId": "string",
    "productName": "string",
    "productSpecsId": "string",
    "productStatus": 0,
    "sortBy": "string",
    "specsName": "string",
    "specsStatus": 0,
    "status": 0
}'

返回响应

🟢200OK
application/json
Body
code
integer <int32>
可选
状态码,为0表示请求成功,其它则失败
data
object (PageInfo«选品库 ModelGoodsShelf») 
业务对象
可选
endRow
integer <int32>
可选
firstPage
integer <int32>
可选
hasNextPage
boolean 
可选
hasPreviousPage
boolean 
可选
isFirstPage
boolean 
可选
isLastPage
boolean 
可选
lastPage
integer <int32>
可选
list
array[object (选品库 ModelGoodsShelf) {12}] 
可选
navigateFirstPage
integer <int32>
可选
navigateLastPage
integer <int32>
可选
navigatePages
integer <int32>
可选
navigatepageNums
array[integer <int32>]
可选
nextPage
integer <int32>
可选
pageNum
integer <int32>
可选
pageSize
integer <int32>
可选
pages
integer <int32>
可选
prePage
integer <int32>
可选
size
integer <int32>
可选
startRow
integer <int32>
可选
total
integer <int64>
可选
msg
string 
错误信息
可选
示例
{
    "code": 0,
    "data": {
        "endRow": 0,
        "firstPage": 0,
        "hasNextPage": true,
        "hasPreviousPage": true,
        "isFirstPage": true,
        "isLastPage": true,
        "lastPage": 0,
        "list": [
            {
                "costPrice": 0,
                "createTime": 0,
                "finalSalePrice": 0,
                "id": "string",
                "product": {
                    "brand": "string",
                    "categoryIdList": [
                        "string"
                    ],
                    "categoryIdString": [
                        "string"
                    ],
                    "createTime": 0,
                    "description": "string",
                    "detailsImageList": [
                        {
                            "createTime": 0,
                            "id": "string",
                            "name": "string",
                            "size": 0,
                            "type": "string",
                            "url": "string"
                        }
                    ],
                    "discountRate": 0,
                    "expressRuleId": "string",
                    "fileList": [
                        {
                            "createTime": 0,
                            "id": "string",
                            "name": "string",
                            "size": 0,
                            "type": "string",
                            "url": "string"
                        }
                    ],
                    "id": "string",
                    "name": "string",
                    "noDeliveryAreaNameString": "string",
                    "nonPostalAreaNameString": "string",
                    "price": 0,
                    "productCategoryList": [
                        {
                            "iconPath": "string",
                            "id": 0,
                            "name": "string",
                            "parentId": 0
                        }
                    ],
                    "productNumber": "string",
                    "productPropertyList": [
                        {
                            "id": "string",
                            "name": "string",
                            "productId": "string",
                            "values": "string"
                        }
                    ],
                    "productSpecsList": [
                        {
                            "createTime": 0,
                            "description": "string",
                            "id": "string",
                            "imageId": "string",
                            "name": "string",
                            "price": 0,
                            "productId": "string",
                            "properties": "string",
                            "salesVolume": 0,
                            "settlementPrice": 0,
                            "sku": "string",
                            "status": 0,
                            "stock": 0
                        }
                    ],
                    "profitMargin": 0,
                    "saleTime": 0,
                    "saleTimeString": "string",
                    "salesVolume": 0,
                    "settlementPrice": 0,
                    "shelvesTime": [
                        "string"
                    ],
                    "status": 0,
                    "tags": "string",
                    "thirdLink": "string",
                    "userId": "string"
                },
                "productSpecs": {
                    "createTime": 0,
                    "description": "string",
                    "id": "string",
                    "imageUrl": "string",
                    "myPrice": 0,
                    "name": "string",
                    "price": 0,
                    "productId": "string",
                    "properties": "string",
                    "salesVolume": 0,
                    "settlementPrice": 0,
                    "sku": "string",
                    "status": 0,
                    "stock": 0
                },
                "productSpecsId": "string",
                "quantity": 0,
                "salePrice": 0,
                "salePriceType": "string",
                "status": 0,
                "userId": "string"
            }
        ],
        "navigateFirstPage": 0,
        "navigateLastPage": 0,
        "navigatePages": 0,
        "navigatepageNums": [
            0
        ],
        "nextPage": 0,
        "pageNum": 0,
        "pageSize": 0,
        "pages": 0,
        "prePage": 0,
        "size": 0,
        "startRow": 0,
        "total": 0
    },
    "msg": "string"
}
🟢201Created
🟠401Unauthorized
🟠403Forbidden
🟠404Not Found
修改于 2023-02-22 09:19:03
上一页
获取所有运费模板
下一页
获取我的选品库商品列表,按标准商品返回结果
Built with