提现接口网站 php,API提现接口

>获取提现积分的类型,在后台可以设置某种积分可被提现,此处获取的数据为可提现积分的类型

~~~[api]

get:/index.php/accounts/Apipoint/member_withdrawal_list

int:type= 0#是否智能限制提现积分类型,0:不智能,1:智能,如:提现设置了只能在每月25号提现,如果参数为1,该提现币种只会在25号获取的时候返回,其它时间获取不返回该提现币种

<<<

success

{

"err": 0,

"count": 2,

"data": {

"money": {

"point_type": "money",

"point_name": "资金",

"point_unit": "元",

"point_decimal": 2,

"point_ico": "\/web\/public\/Upload\/admin\/1\/5e61fac478e9a.png",

"balance": 10,

"scale": 0.1,

"freeze_type": "1",

"freeze": 0,

"withdraw_date": "0",

"proceduresType": "0",

"poundage": 0.4

},

"point": {

"point_type": "point",

"point_name": "积分",

"point_unit": "分",

"point_decimal": 1,

"point_ico": "http:\/\/localhost\/web\/public\/Upload\/member\/0\/\/hf7z22c0931583477564857.png",

"balance": 0,

"scale": 0.5,

"freeze_type": "1",

"freeze": 0,

"withdraw_date": "2",

"day": {

"0": "1",

"4": "5",

"5": "6",

"6": "7"

},

"proceduresType": "1",

"poundage": 10

}

}

}

<<<

error

{

"err": 1,

"code": 1000,

"content": "错误信息"

}

~~~

| 字段 |详情 |

| --- | --- |

| count | 可体现积分种类的个数 |

| data| 提现积分的数据 |

| |----point_type| 积分类型标识 |

| |----point_name | 积分名称 |

| |----point_unit| 积分单位 |

| |----point_ico| 积分图标 |

| |----point_decimal| 积分小数位数 |

| |----scale| 提现比例,如0.1标识1积分提现0.1元 |

| |----freeze_type| 限制提现账户 1:满多少可提现 2:账户必须留多少可体现 |

| |----freeze| 账户限制的额度,与freeze_type配合使用,满【freeze】提现或者留【freeze】提现|

| |----withdraw_date| 限制提现日期 0:不限 1:每周 2:每月 |

| |----day| day为一个对象,非数组, 限制提现日期具体的时间, withdraw_date为0时无次参数,限制为每周时,该参数返回0-6的字符串,表示星期日到星期六,限制为每月时,该参数返回1-28的字符,标识1号到28号的某几天 |

| |----proceduresType| 提现手续费类型 0:固定数额 1:百分比 |

| |----poundage| 手续费额度,与 proceduresType参数配合使用 |

>申请提现操作

~~~[api]

get:/index.php/accounts/Apipoint/member_submit_withdrawal

*string:point_type=money #需要提现积分标识

*int:point=0 #提现额度

int:type=2 #提现类型 1:提现到微信零钱,2:提现到银行卡

string:way= #格式为:姓名|卡号|开户行|银行卡类型(工行)|手机号,如果选择提现到银行卡必须填此项

<<<

success

{

"point_type": "money",

"point_name": "资金",

"point_unit": "元",

"point": 1,

"balance": 990.2,

"point_ico": "\/web\/public\/Upload\/admin\/1\/5e61fac478e9a.png"

}

<<<

error

{

"err": 1,

"code": 1000,

"content": "错误信息"

}

~~~

| 字段 |详情 |

| --- | --- |

| point_type| 提现的积分标识 |

| point_name| 提现的积分名称 |

| point_unit| 提现积分的单位 |

| point | 提现积分数 |

| balance| 提现后的余额 |

| point_ico| 积分图标 |

>获取登录用户的提现列表

~~~[api]

get:/index.php/accounts/Apipoint/member_get_withdrawal_list

string:point_type=money #积分标识,不传为全部

int:type=0 #提现类型 0:全部, 1:提现到微信零钱,2:提现到银行卡

int:pagesize=10#每页显示个数

int:page=1#显示页码数

string:between_point= #提现区间 如100-200

string:sort= id #排序字段

string:sort_type= asc#排序类型

int:status= 0#状态,不填表示全部,0:未确认,1:打款中,2:已打款,3:拒绝打款

<<<

success

{

"err": 0,

"page": 1,

"pageSize": 10,

"count": 1,

"pageTotal": 1,

"data": [{

"point_type": "point",

"point_name": "积分",

"point_unit": "分",

"point_ico": "http:\/\/localhost\/web\/public\/Upload\/member\/0\/\/hf7z22c0931583477564857.png",

"point": "1",

"type": "提现到银行卡",

"status": "拒绝打款",

"msg": "",

"addtime": "2020-03-08 19:26:30"

}]

}

<<<

error

{

"err": 1,

"code": 1000,

"content": "错误信息"

}

~~~

| 字段 |详情 |

| --- | --- |

| point_type| 提现的积分标识 |

| point_name| 提现的积分名称 |

| point_unit| 提现积分的单位 |

| point | 提现积分数 |

| point_ico| 积分图标 |

| type| 提现方式 |

| status| 提现状态 |

| msg| 拒绝理由 |

| addtime| 提现时间 |

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值