add_wallet_txn
Creates a new wallet transaction for the specified currency type
Name | Type | Required | Example |
---|---|---|---|
user_id | Integer | Y | 150 Must povide one of these 4: user_id, username, user_email, external_user_id |
username | String | Y | bobbyk Must povide one of these 4: user_id, username, user_email, external_user_id |
user_email | String | Y | bobby@gmail.com Must povide one of these 4: user_id, username, user_email, external_user_id |
external_user_id | String | Y | 119 Must povide one of these 4: user_id, username, user_email, external_user_id |
external_id | String | Y | 119 Must povide one of these 4: user_id, username, user_email, external_id |
currency_code | String | Y | props Currency code like "props", "credits", "tokens", "USD", etc |
amount | Decimal | Y | 123.45 Positive amount to add value, negative amount to charge it |
reason | String | Y | "For friend referral" Textual reason for granting/charging this amount |
transaction_time | Date String | N | 2017-02-14 13:59:00 YYYY-MM-DD HH:MM:SS - If omitted or invalid, assumes the current server date and time. |