版本:202201
查询折扣码详情
GET/openapi/2022-01/price_rules/:price_rule_id/discount_codes/:discount_code_id
获取指定价格规则下特定折扣码的详细信息。
请求
Path参数
price_rule_id string必填
折扣码关联的价格规则 ID。
discount_code_id string必填
折扣码 ID。
响应
- 200
200
- application/json
- 数据结构
- 示例
- Result
数据结构
discount_code object
idstring
示例:
f819c126-a581-4d66-a909-08282dd35916price_rule_idstring
示例:
588fea0b-f15d-4c1d-9390-23661f0194facodestring
示例:
VIJK8GB0created_atstring
示例:
2022-06-17 07:48:29updated_atstring
示例:
2022-06-17 07:48:29use_with_otherstring
示例:
1usage_countstring
示例:
0{
"discount_code": {
"id": "f819c126-a581-4d66-a909-08282dd35916",
"price_rule_id": "588fea0b-f15d-4c1d-9390-23661f0194fa",
"code": "VIJK8GB0",
"created_at": "2022-06-17 07:48:29",
"updated_at": "2022-06-17 07:48:29",
"use_with_other": "1",
"usage_count": "0"
}
}
{
"discount_code": {
"id": "f819c126-a581-4d66-a909-08282dd35916",
"price_rule_id": "588fea0b-f15d-4c1d-9390-23661f0194fa",
"code": "VIJK8GB0",
"created_at": "2022-06-17 07:48:29",
"updated_at": "2022-06-17 07:48:29",
"use_with_other": "1",
"usage_count": "0"
}
}