MAPI Manual

NAME

GETCREDIT

FUNCTION

Get account balance and credit limit information

SYNOPSIS

action: GETCREDIT, login_name, login_passwd

DESCRIPTION

This function allows users to check out their own account balance and credit limit information.

Required Parameters

* action: GETCREDIT.

RETURN DATA

The response contains the following attributes:
* mcp_user_id: user ID.
* login_name: the account name.
* current_balance: the account balance.
* credit_limit_amount: credit limit amount.
* last_usage_dt: date and time when the account was last used.
* last_charge_dt: date and time when the account was last recharged.

ROLE PERMITTED

All roles

EXAMPLES

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

Request:

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

Response:

<result tftype='1' infotype='0'>
    <field name="mcp_user_id">7009000</field>
    <field name="login_name">user@example.com</field>
    <field name="current_balance">0.0000</field>
    <field name="credit_limit_amount">100.0000</field>
    <field name="last_usage_dt">0000-00-00 00:00:00</field>
    <field name="last_charge_dt">2013-11-07 13:58:16</field>
</result>

TIPS

ENVIRONMENT

AUTHOR

YVN Tech

SEE ALSO

Mweb v2.0 YVNTECH 2014