智简魔方文档
财务系统开发文档财务系统 API 文档后台设置

保存用户自定义字段

接口地址:/admin/custom_fields POST

保存用户自定义字段 -- 萧十一郎

接口说明:保存用户自定义字段

接口参数

参数名字类型是否必须默认值其他说明
addfieldname字符串非必填--添加的字段名称
addfieldtype字符串非必填dropdown-添加的字段类型
addcustomfielddesc字符串非必填--添加的字段描述
addfieldoptions字符串非必填--添加字段的选项
addregexpr字符串非必填--该字段的正则匹配
addadminonly字符串非必填--选中为仅管理员可见
addrequired字符串非必填--该字段必填,值为on时
addshoworder字符串非必填--在订单上显示,值为on时
addshowinvoice字符串非必填--在账单上显示,值为on时
addsortorder整型非必填--排序数值
customfieldname数组非必填--修改的字段名称
customfieldtype数组非必填dropdown-修改的字段类型
customfielddesc数组非必填--修改的字段描述
customfieldoptions数组非必填--修改的字段的选项
customfieldregexpr数组非必填--修改的字段的正则匹配
customadminonly数组非必填--修改选中为仅管理员可见
customrequired数组非必填--修改该字段必填,值为on时
customshoworder数组非必填--修改在订单上显示,值为on时
customshowinvoice数组非必填--修改在账单上显示,值为on时
customsortorder数组非必填--修改排序数值
configoptionlinks数组非必填--关联的可配置选项,一维数组,值为int型
upgradepackages数组非必填--可升级更改产品的数组,一维数组,值为int型

返回结果

{
  "status":200/201/203/204/400/401/406,
  "msg":提示信息,
  "data":{
  }
}

提示:此文档是由系统自动生成,如发现错误或疑问请告知开发人员及时修改