MAPI Manual

NAME

ADD_USERACCOUNT_CREDITLIMIT

FUNCTION

Add credit limit to a user's account

SYNOPSIS

account_login_name, credit_limit_plus, note

DESCRIPTION

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

Required Parameters

*action: ADD_USERACCOUNT_CREDITLIMIT.
*account_login_name: the login name for this account.
*credit_limit_plus: a number specifying the amount to be added or deducted, e.g., "8", "-2.55".

Optional Parameters

*note: a note about the credit limit 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_CREDITLIMIT&account_login_name=user@example.com&credit_limit_plus=8&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">8.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 15:00:07</field>
</result>

TIPS

ENVIRONMENT

AUTHOR

YVN Tech

SEE ALSO

ADD_USERACCOUNT_MONEY

Mweb v2.0 YVNTECH 2014