跳到主要内容
版本:202201

创建折扣码

POST 

/openapi/2022-01/price_rules/:price_rule_id/discount_codes

创建与指定价格规则关联的折扣码。

请求

Path参数

    price_rule_id string必填

    价格规则 ID。

请求体

    discount_code object
    codestring必填

    Discount code, e.g. SGTIOZT

响应

200

数据结构
    discount_code object
    idstring
    示例: f819c126-a581-4d66-a909-08282dd35916
    price_rule_idstring
    示例: 588fea0b-f15d-4c1d-9390-23661f0194fa
    codestring
    示例: VIJK8GB0
    created_atstring
    示例: 2022-06-17 07:48:29
    updated_atstring
    示例: 2022-06-17 07:48:29
    use_with_otherstring
    示例: 1
    usage_countstring
    示例: 0