供应链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/product/list
商品接口
可带权限,参考其他带权限验证的接口,带权限将获取到结算价,不带权限则不获取不到

请求参数

Body 参数application/json
brand
array[string]
品牌
可选
categoryId
string 
商品分类Id
可选
desc
boolean 
是否倒序
可选
示例值:
false
discountRateBegin
number <float>
折扣起
可选
discountRateEnd
number <float>
折扣止
可选
id
string 
商品Id
可选
name
string 
商品名称
可选
pageNum
integer <int32>
页码
可选
pageSize
integer <int32>
分页大小
可选
priceFrom
number <float>
结算价起
可选
priceTo
number <float>
结算价止
可选
sortBy
string 
排序字段,可不传
可选
tag
string 
标签
可选
thirdLinkOnly
boolean 
是否有第三方链接
可选
示例值:
false
示例
{
    "brand": [
        "string"
    ],
    "categoryId": "string",
    "desc": false,
    "discountRateBegin": 0,
    "discountRateEnd": 0,
    "id": "string",
    "name": "string",
    "pageNum": 0,
    "pageSize": 0,
    "priceFrom": 0,
    "priceTo": 0,
    "sortBy": "string",
    "tag": "string",
    "thirdLinkOnly": false
}

示例代码

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/product/list' \
--header 'Content-Type: application/json' \
--data-raw '{
    "brand": [
        "string"
    ],
    "categoryId": "string",
    "desc": false,
    "discountRateBegin": 0,
    "discountRateEnd": 0,
    "id": "string",
    "name": "string",
    "pageNum": 0,
    "pageSize": 0,
    "priceFrom": 0,
    "priceTo": 0,
    "sortBy": "string",
    "tag": "string",
    "thirdLinkOnly": false
}'

返回响应

🟢200OK
application/json
Body
code
integer <int32>
可选
状态码,为0表示请求成功,其它则失败
data
object (PageInfo«商品 ModelProduct») 
业务对象
可选
endRow
integer <int32>
可选
firstPage
integer <int32>
可选
hasNextPage
boolean 
可选
hasPreviousPage
boolean 
可选
isFirstPage
boolean 
可选
isLastPage
boolean 
可选
lastPage
integer <int32>
可选
list
array[object (商品 ModelProduct) {28}] 
可选
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": [
            {
                "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"
            }
        ],
        "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