- 默认分组
- 产品
- 入库计划单
- 库存
- 订单
- 退货
- 调拨
- 预约
- 基础数据
- 三方授权
- 运费
- 费用
查询 sku
POST
https://hwc-open-api.yqn.com/v1/product/getBySku
请求参数
Header 参数
x-api-key
string
必需
示例值:
abc123(认证信息)
Content-Type
string
必需
示例值:
application/json
Body 参数application/json
sku
string
Sku名称
示例
{
"sku": "string"
}
示例代码
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://hwc-open-api.yqn.com/v1/product/getBySku' \
--header 'x-api-key: abc123(认证信息)' \
--header 'Content-Type: application/json' \
--data-raw '{
"sku": "string"
}'
返回响应
🟢200成功
application/json
Body
code
number
必需
message
string
返回信息
data
object
产品详细信息
sku
string
Sku
customItemNo
string
自定义产品编码
upc
string
upc码
productType
integer
必需
name
string
中文名称
nameEn
string
英文名称
description
string
描述
width
number
产品宽 (cm)
height
number
产品高(cm)
weight
number
产品重量 (g)
itemLength
number
单品长(cm)
itemWidth
number
单品宽(cm)
itemHeight
number
单品高(cm)
expirationControl
integer
可选
expirationDate
integer
保持期天数
packedQty
integer
装箱数量
packedLength
number
外箱长(cm)
packedWidth
number
外箱宽(cm)
packedHeight
number
外箱高(cm)
packedWeight
number
外箱重量(g)
cost
number
成本
currency
string
币种
isInsuranceFlag
string
可选
isInsuranceRate
number
保价费率
remark
string
备注
isRequireSn
string
必需
示例
{
"code": 0,
"message": "string",
"data": {
"sku": "string",
"customItemNo": "string",
"upc": "string",
"productType": 0,
"name": "string",
"nameEn": "string",
"description": "string",
"width": 0,
"height": 0,
"weight": 0,
"itemLength": 0,
"itemWidth": 0,
"itemHeight": 0,
"expirationControl": 0,
"expirationDate": 0,
"packedQty": 0,
"packedLength": 0,
"packedWidth": 0,
"packedHeight": 0,
"packedWeight": 0,
"cost": 0,
"currency": "string",
"isInsuranceFlag": "string",
"isInsuranceRate": 0,
"remark": "string",
"isRequireSn": "string"
}
}