提现申请

  • 接口说明: 提现申请
  • 接口地址: /wallet/cash?include={user,userWallet,wechat}
  • 请求方式: POST

请求参数

字段名变量名必填类型描述
申请提现金额cash_apply_amountfloat申请提现金额
提现方式cash_typeint提现方式:0:人工打款,1:付款到零钱
提现手机cash_mobilestring当 cash_type = 1 时填写提现打款到的手机号码
  1. {
  2. "data": {
  3. "attritbutes": {
  4. "cash_apply_amount": 100,
  5. "cash_type":1,
  6. "cash_mobile":"**********"
  7. }
  8. }
  9. }

返回说明

  • 返回当前创建成功数据, http 状态码: 200

返回结果

字段名变量名必填类型描述
data.attributesobjectobject数据属性
记录 IDattributes.idbigint提现记录唯一编号
提现编号attributes.cash_snbigint提现订单唯一编号
手续费attributes.cash_chargefloat提现手续费
实际提现金额attributes.cash_actual_amountfloat用户到账金额
提现申请金额attributes.cash_apply_amountfloat用户提现申请金额
提现状态attributes.cash_statusint提现状态,1:待审核,2:审核通过,3:审核不通过,4:待打款, 5,已打款, 6:打款失败
提现方式attributes.cash_typeint提现方式
提现手机attributes.cash_mobilesring提现打款到的手机号码
审核原因attributes.remarksring审核不通过原因或备注,默认为空
data.relationshipsobjectobject关联关系
includedobjectobject关联数据

示例:

  1. {
  2. "data": {
  3. "type": "user_wallet_cash",
  4. "id": "40",
  5. "attributes": {
  6. "id": 40,
  7. "user_id": 1,
  8. "cash_sn": "201911228652521021",
  9. "cash_charge": "0.01",
  10. "cash_actual_amount": 0.99,
  11. "cash_apply_amount": "1.00",
  12. "cash_status": 1,
  13. "cash_type": 0,
  14. "cash_mobile": "",
  15. "remark": null,
  16. "updated_at": "2019-11-22T11:07:32+08:00",
  17. "created_at": "2019-11-22T11:07:32+08:00"
  18. },
  19. "relationships": {
  20. "userWallet": {
  21. "data": {
  22. "type": "user_wallet",
  23. "id": "1"
  24. }
  25. },
  26. "user": {
  27. "data": {
  28. "type": "users",
  29. "id": "1"
  30. }
  31. }
  32. }
  33. },
  34. "included": [
  35. {
  36. "type": "user_wallet",
  37. "id": "1",
  38. "attributes": {
  39. "user_id": 1,
  40. "available_amount": "1.00",
  41. "freeze_amount": "33.00",
  42. "wallet_status": 0
  43. }
  44. },
  45. {
  46. "type": "users",
  47. "id": "1",
  48. "attributes": {
  49. "username": "username",
  50. "mobile": "mobile",
  51. "lastLoginIp": "",
  52. "createdAt": "2019-11-16T12:47:45+08:00",
  53. "updatedAt": "2019-11-16T12:47:45+08:00"
  54. }
  55. }
  56. ]
  57. }