Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Tip

Available from CRM.COM R9.1.0

Excerpt

This method is used to calculate the rates that will be applied while creating a new subscription or modifying an existing one, before submitting the actual request. The rates calculation can be applied on a single subscription per each call.

...

Name

Type

Description

token

String

The token retrieved from the login method

mode

(mandatory)

String

It determines if the rate calculation should be applied on a new subscriptions or a modification of an existing subscription. The following options are supported:

  • RATE_BECOME_SUBSCRIBER: If this mode is set then it is mandatory to specify an accounts receivable, and subscription object and optionally a buy in advance request object. All the other fields are not applicable.
  • RATE_ACTIVATE_SUBSCRIPTIONS: If this mode is set then it is mandatory to specify a subscription identifier and optionally a buy in advance request object. All the other fields are not applicable.
  • RATE_ADD_SERVICES: If this mode is set then it is mandatory to specify a subscription identifier, the set of new subscription services that will be added and activated and optionally a buy in advance request object. All the other fields are not applicable.
  • RATE_REMOVE_SERVICES: If this mode is set then it is mandatory to specify a subscription identifier, the set of existing subscription services that will be removed and optionally a buy in advance request object. All the other fields are not applicable.
  • RATE_SWAP_SERVICES: If this mode is set then it is mandatory to specify a subscription identifier, the set of existing subscription service swaps and optionally a buy in advance request object. All the other fields are not applicable.
  • RATE_START_SERVICES: If this mode is set then it is mandatory to specify a subscription identifier, the set of existing subscription services that will be started and optionally a buy in advance request object. All the other fields are not applicable.
  • RATE_STOP_SERVICES: If this mode is set then it is mandatory to specify a subscription identifier, the set of existing subscription services that will be stopped and optionally a buy in advance request object. All the other fields are not applicable.
  • RATE_ADD_EXPENSES: If this mode is set then it is mandatory to specify a subscription identifier, and the set of new subscription services (expenses) that will be added
  • RATE_BUY_IN_ADVANCE_REQUESTS: If this mode is set then it is mandatory to specify a subscription identifier and a buy in advance request object. All the other fields are not applicable.
  • RATE_AMEND_SERVICES_INSTALLED_ITEMS: If this mode is set then it is mandatory to specify a subscription identifier, the set of new and/or removed and/or swapped subscription services and/or the set of new/removed subscription installed items

Tip

RATE_AMEND_SERVICES_INSTALLED_ITEMS available from CRM.COM R14.3.0

number_of_additional_periods

(optional)

NumberIt determines if the rates should be calculated only for the upcoming period or for additional billing periods. If not specified then the method will return only the rates for the upcoming period

scheduled_date

(optional)

Date

The date on which the subscription action is scheduled to be executed, therefore rates will be applied as of this schedueld scheduled date.

Tip

Available from CRM.COM R14.5.0

subscription_identifier

(mandatory and applicable on conditions)

Subscription Identifier

The identifier of the existing subscription that should be rated. The allowed subscription identifier fields are the following:

Include Page
V4:subscription_identifier
V4:subscription_identifier

Note that this information is applicable and mandatory only if the mode is set to RATE_ACTIVATE_SUBSCRIPTIONS, RATE_ADD_SERVICES, RATE_REMOVE_SERVICES, RATE_SWAP_SERVICES, RATE_START_SERVICES, RATE_STOP_SERVICES, RATE_BUY_IN_ADVANCE_REQUESTS, RATE_ADD_EXPENSES

accounts_receivable

(mandatory and applicable on conditions)

Accounts Receivable Object

Information related with the accounts receivable that will own the new subscription that will be rated.

Note that this information is applicable and mandatory only if the mode is set to RATE_BECOME_SUBSCRIBER

subscription

(mandatory and applicable on conditions)

Subscriptions Object

Information related with the new subscription that will be rated

Note that this information is applicable and mandatory only if the mode is set to RATE_BECOME_SUBSCRIBER

buy_in_advance_request

(mandatory on conditions)

Buy in Advance Request Object

Information related with a buy in advance request that might be applicable on the new or existing subscription that will be rated.

Note that this information is applicable for all modes but is mandatory only if the mode is set to RATE_BUY_IN_ADVANCE_REQUESTS

new_services_set

(mandatory and applicable on conditions)

Set of New Subscription Services

Information with new services that will be added and activated on the existing subscription that was specified

Note that this information is applicable and mandatory only if the mode is set to RATE_ADD_SERVICES or RATE_ADD_EXPENSES

When the mode is set to RATE_AMEND_SERVICES_INSTALLED_ITEMS, this information is applicable but it is optional.

existing_services_set

(mandatory and applicable on conditions)

Set of Existing Subscription Services

Information with existing subscription services that will be modified on the existing subscription that was specified

Note that this information is applicable and mandatory only if the mode is set to RATE_REMOVE_SERVICES, RATE_START_SERVICES, RATE_STOP_SERVICES.

When the mode is set to RATE_AMEND_SERVICES_INSTALLED_ITEMS, this information is applicable but it is optional.

services_swap_set

(mandatory and applicable on conditions)

Set of Existing Subscription Services that will be swapped

Information with existing subscription services that will be swapped on the existing subscription that was specified

Note that this information is applicable and mandatory only if the mode is set to RATE_SWAP_SERVICES.

When the mode is set to RATE_AMEND_SERVICES_INSTALLED_ITEMS, this information is applicable but it is optional.

installed_items_to_add_set

(optional and applicable on conditions)

Set of New Subscription Installed Items

Information with new subscription installed items that will be added on the subscription that was specified

Note that this information is applicable and optional only if the mode is set to RATE_AMEND_SERVICES_INSTALLED_ITEMS

Tip

Available from CRM.COM R14.3.0

installed_items_to_remove_set

(optional and applicable on conditions)

Set of Existing Subscription Installed Items

Information with new subscription installed items that will be removed from the subscription that was specified

Note that this information is applicable and optional only if the mode is set to RATE_AMEND_SERVICES_INSTALLED_ITEMS

Tip

Available from CRM.COM R14.3.0

udf_string_1 

(optional)

String

User Defined Field of type String

Tip

Available from CRM.COM R14.3.0

udf_string_2 

(optional)

String

User Defined Field of type String

Tip

Available from CRM.COM R14.3.0

udf_string_3 

(optional)

String

User Defined Field of type String

Tip

Available from CRM.COM R14.3.0

udf_string_4 

(optional)

String

User Defined Field of type String

Tip

Available from CRM.COM R14.3.0

udf_string_5

(optional)

String

User Defined Field of type String

Tip

Available from CRM.COM R14.3.0

udf_string_6 

(optional)

String

User Defined Field of type String

Tip

Available from CRM.COM R14.3.0

udf_string_7

(optional)

String

User Defined Field of type String

Tip

Available from CRM.COM R14.3.0

udf_string_8

(optional)

String

User Defined Field of type String

Tip

Available from CRM.COM R14.3.0

udf_float_1

(optional)

Float

User Defined Field of type Float

Tip

Available from CRM.COM R14.3.0

udf_float_2

(optional)

Float

User Defined Field of type Float

Tip

Available from CRM.COM R14.3.0

udf_float_3

(optional)

Float

User Defined Field of type Float

Tip

Available from CRM.COM R14.3.0

udf_float_4

(optional)

Float

User Defined Field of type Float

Tip

Available from CRM.COM R14.3.0

udf_date_1 

(optional)

Date

User Defined Field of type Date

Tip

Available from CRM.COM R14.3.0

udf_date_2 

(optional)

Date

User Defined Field of type Date

Tip

Available from CRM.COM R14.3.0

udf_date_3

(optional)

Date

User Defined Field of type Date

Tip

Available from CRM.COM R14.3.0

udf_date_4

(optional)

Date

User Defined Field of type Date

Tip

Available from CRM.COM R14.3.0

fields_set

(optional)

 List of Strings, comma separated A list of fields that should be included in the results. If not specified then all the available fields will be returned

 

Tip

Available from CRM.COM R10.0.0

Referred Parameters Objects Data

...