MAPI Manual

NAME

GET_USERACCOUNT_CREDIT

FUNCTION

Get user account credit

SYNOPSIS

account_login_name

DESCRIPTION

This function is used to list the credit information of a user. Users can list their own credit. Admins can list manager's credit within the same organisation.


Required Parameters

* action: GET_USERACCOUNT_CREDIT.


Optional Parameters

* account_login_name: account name of the user.


RETURN DATA

The response contains the following attributes:

* mcp_user_id: user ID.

* login_name: login name of the user.

* current_balance: balance of the account.

* credit_limit_amount: credit limit .

* last_usage_dt: the date and time the account was previously used.

* last_charge_dt: the date and time the account was previously recharged.

ROLE PERMITTED

Manager, Admin

EXAMPLES

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

Request:

http://app02.yvntech.com/MapIHttpS/MapIS?action=GET_USERACCOUNT_CREDIT&user_login_name=user@example.com&login_name=admin@example.com&login_passwd=1111



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">4.4000</field>
    <field name="credit_limit_amount">260.0000</field>
    <field name="last_usage_dt">2014-10-16 13:40:25</field>
    <field name="last_charge_dt">2014-08-20 12:24:38</field>
</result>


TIPS

ENVIRONMENT

AUTHOR

YVN Tech

SEE ALSO

GETCREDIT

Mweb v2.0 YVNTECH 2014