MAPI Manual

NAME

ADD_ACCOUNT_BILLRATE

FUNCTION

Add an account bill rate to an organisation

SYNOPSIS

org_id, mcp_channeltype_id, rate_flag, mcp_billing_rate_unit_id, rate_cc, rate_sw, min_rate, description

DESCRIPTION

The function allows account managers to add an account bill rate to an organisation.

Required Parameters

* action: ADD_ACCOUNT_BILLRATE.
* org_id: the organization ID.
* mcp_channeltype_id: the channel type. The values are "sms", "voice", "email" or "clicktodial".
* rate_flag: specifies the pattern of the numbers to which the bill rates will be applied. For example, "612%" represents any number beginning with "612". This value needs to be URL encoded.
* mcp_billing_rate_unit_id: ID of billing rate unit. This specifies how the account usage will be charged. The rates can be calculated based on either the quantity of messages sent or the amount of time used.
* rate_cc: the basic rate. The format of this value should be "x.xxxx", e.g., "0.3000".
* rate_sw: the service charge. The format of this value should be "x.xxxx", e.g., "0.3000".
* min_rate: the minimum rate. The format of this value should be "x.xxxx", e.g., "0.3000".
* description: description of the rates.

RETURN DATA

For each valid request, the server provides a response in XML format.
 
The response contains the following attributes:
* msg: a string indicating the rate has been added successfully.

ROLE PERMITTED

Account manager, root

EXAMPLES

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

Request:
http://app02.yvntech.com/MapIHttpS/MapIS?action=ADD_ACCOUNT_BILLRATE&org_id=10&mcp_channeltype_id=sms&rate_flag=%2B86514%25&mcp_billing_rate_unit_id=1&rate_cc=0.3000&rate_sw=0.0000&min_rate=0.0000&description=billing%20rate%20sms%20to%20China&device_id=mydemoid

Response:
<result tftype='1' infotype='0'>
    <field name='msg'>SUCCESS</field>
</result>

TIPS

ENVIRONMENT

AUTHOR

YVN Tech

SEE ALSO

LIST_ORGS

Mweb v2.0 YVNTECH 2014