https://www.westmonth.com/openapi/product/pricehttps://testing.westmonth.com/openapi/product/price| 参数名 | 类型 | 必填 | 示例值 | 说明 |
|---|---|---|---|---|
| Authorization | string | 是 | authorization | 身份验证Token |
| Content-Type | string | 是 | application/json | 建议固定传此值 |
| 参数名 | 类型 | 必填 | 默认值 | 可选值 | 说明 |
|---|---|---|---|---|---|
| delivery_region_id | integer | 是 | - | 通过接口获取:/openapi/productCategory/getDeliveryRegions | 发货区ID |
| product_sku_id | integer | 是 | - | - | 商品SKU_ID(与商品SKU编号,二选一) |
| product_sku | string | 是 | - | - | 商品SKU编号(与商品SKU_ID,二选一) |
| quantity | integer | 否 | 1 | - | 商品数量 |
| service_type | integer | 否 | 2 | 1=包邮、2=自提 | 服务类型(圈货备货不需要) |
| stock_batch | string | 否 | - | - | 圈货备货批次号 |
| uID | string | 否 | - | - | 客户UID(ERP必填) |
| 字段 | 类型 | 说明 |
|---|---|---|
| code | integer | 业务状态码(0表示成功,1表示失败) |
| msg | string | 提示信息(成功时为空) |
| data | object | 业务数据(失败时为数组) |
| 字段 | 类型 | 说明 |
|---|---|---|
| price_currency | string | 价格币种 |
| currency_symbol | string | 币种符号 |
| price_discount | integer | 折扣比例(0~1) |
| original_price | string | 原价(区域币种) |
| original_price_cny | string | 原价(人民币) |
| price | string | 商品单价(区域币种) |
| price_cny | string | 商品单价(人民币) |
| quantity | integer | 商品数量 |
| price_total | string | 商品总价(区域币种) |
| price_total_cny | string | 商品总价(人民币) |
| price_type | integer | 价格类型(1=普通商品,2=圈货商品,3=备货商品) |
{
"delivery_region_id": 3,
"product_sku": "EE06221131-60ml"
}{
"code": 0,
"msg": "",
"data": {
"price_currency": "USD",
"currency_symbol": "$",
"price_discount": 1,
"original_price": "3.99",
"original_price_cny": "29.52",
"price": "3.99",
"price_cny": "29.52",
"quantity": 1,
"price_total": "3.99",
"price_total_cny": "29.52",
"price_type": 1
}
}{
"code": 3,
"msg": "授权无效 authorization timestamp error",
"data": []
}| HTTP status code | 错误码 | 错误信息 | 描述 |
|---|
| 版本 | 日期 | 修改说明 |
|---|---|---|
| v1.0 | 2025-01-01 | 初始版本 |