Skip to content

编辑优惠码

拥有此API的权限集
营销码券管理-增删改

请求方式及url

  • 请求方式:POST
  • 请求头:Content-Type:application/json
  • 接口地址:https://api.xiaoe-tech.com/xe.promo_code.edit_batch_info/1.0.0
  • 频率限制: 10秒500次

接口调试

请求参数
响应结果
暂无响应数据

请求参数

参数名必选类型说明
access_tokenstring专属token
batch_idstring批次id
notestring内部备注
end_atstring结束时间
bind_res_typestring绑定资源类型:0全部1指定商品
can_sharestring是否可以分享:0否1是
remarkstring使用说明
resourcearray指定商品可用的商品信息
information_dataarray信息采集,不需要信息采集两个字段传空字符串

resource指定商品可用的商品信息

参数名必选类型说明
resource_idstring资源id,指定商品时必填
resource_typestring资源类型,指定商品时必填

information_data信息采集

参数名必选类型说明
form_namestring信息采集id
in_idstring信息采集名称

请求示例

{
    "app_id": "dss",                            
    "batch_id": "dss",                             
    "note": "22",                                 
    "end_at": "2021-12-18 00: 00: 00",                
    "bind_res_type": "1",                               
    "can_share": "0",                               
    "remark": "33",                           
    "resource": [{                            

        "resource_id": "i_6184ed0a60b2c37884d5181d",

        "resource_type": "1"
    }],                                                
    "information_data": {
        "form_name": "",
        "in_id": ""
    }

}

返回参数

参数名类型说明
codeint返回码
msgstring返回信息
dataobject返回值

返回示例

{
    "code": 0,
    "msg": "OK",
    "data": null
}