Admin
Admin

Recharge User Account

Recharge a user's account with validation (admin only)

Validates that:

  • amount/0.2 = quota
  • gift_quota = quota (equal bonus) only if amount ≥ 5.00, otherwise gift_quota should be 0
  • If the user doesn't exist, creates a new user
  • Updates total_recharge by adding the amount
post/admin/recharge

Request body

emailstring email required
namestring nullable
amountnumber required
quotainteger required
gift_quotainteger

Response

Successful Response

user_idinteger required
emailstring required
namestring nullable
total_quotainteger required
used_quotainteger required
gift_quotainteger
total_rechargenumber
remaining_quotainteger
payment_amountnumber required
added_quotainteger required
added_gift_quotainteger required
api_keystring nullable

Changes

No recorded changes to this endpoint across all 1 revision of this API.