MAPI Manual

NAME

ADD_USERACCOUNT_MONEY

FUNCTION

Add credit to a user's account

SYNOPSIS

account_login_name, money_plus, note

DESCRIPTION

This function can be used to update the account balance for a user. Admins can update manager's account balance. Account managers can update admin's balance.

Required Parameters

*action: ADD_USERACCOUNT_MONEY.
*account_login_name: the login name for this account.
*money_plus: a number specifying the amount to be added or deducted, e.g., "10", "-5.5".

Optional Parameters

*note: a note about the balance update.

RETURN DATA

The response contains the following attributes:
*mcp_user_id: user ID.
*login_name: the login name for this account.
*current_balance: a decimal number showing the account balance in Australian Dollar.
*credit_limit_amount: credit limit amount.
*last_usage_dt: timestamp when the account was last used.
*last_charge_dt: timestamp when the account was last recharged.

ROLE PERMITTED

Admin, account manager, root

EXAMPLES

The following example shows a successful HTTP GET request and response.

Request:
http://app02.yvntech.com/MapIHttpS/MapIS?action=ADD_USERACCOUNT_MONEY&account_login_name=user@example.com&money_plus=5&login_name=admin@example.com&login_passwd=2222

Response:
<result tftype='1' infotype='0'>
    <field name="mcp_user_id">6009000</field>
    <field name="login_name">user@example.com</field>
    <field name="current_balance">10.2000</field>
    <field name="credit_limit_amount">269.0000</field>
    <field name="last_usage_dt">2014-08-19 12:58:53</field>
    <field name="last_charge_dt">2014-08-19 14:47:50</field>
</result>

TIPS

ENVIRONMENT

AUTHOR

YVN Tech

SEE ALSO

ADD_USERACCOUNT_CREDITLIMIT

Mweb v2.0 YVNTECH 2014