GET price_plans/get_available_rates
Available from CRM.COM R9.1.0
This method returns the available base and any conditional price plan rates included in a price plan either for a specific product or for all products. Multiple price plan rates might be retrieved by each call. Price plan rates are retrieved by providing one and only one of the semi-optional parameters
- A specific subscription type: If specified then the process will retrieved all effective price plans which are allowed by the billing term schemes which are allowed by the specified subscription type
- A specific job type: If specified then the process will retrieved all effective price plans which are allowed by the billing term schemes which are allowed by the specified job type
- A specific billing term scheme: If specified then the process will retrieved all effective price plans which are allowed by the specified billing term scheme
- A specific price plan: If specified then the process will retrieved only that specific price plan
and optionally one of the following or both of the optional parameters:
- A specific product: If specified then the process will retrieve only the rates for that specific product. If not specified then the process will retrieve rates of any products
- A specific rate model: If specified then the process will retrieve only the rates that are following the specific rate model. If not specified then the process will retrieve rates following any rate mode
Resource URL
Parameters
Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
token | String | The token retrieved from the login method | ||||||||||||
subscription_type_identifier (semi-optional) | Subscription Type Identifier | The identifier of the subscription type whose allowed billing term schemes include effective price plans whose rates should be returned as a result. The allowed subscription type identifier fields are the following:
| ||||||||||||
job_type_identifier (semi-optional) | Job Type Identifier | The identifier of the job type whose allowed billing term schemes include effective price plans whose rates should be returned as a result. The allowed job type identifier fields are the following:
| ||||||||||||
billing_term_scheme_identifier (semi-optional) | Billing Term Scheme Identifier | The identifier of the billing term scheme which includes effective price plans whose rates should be returned as a result. The allowed billing term scheme identifier fields are the following:
| ||||||||||||
price_plan_identifier (semi-optional) | Price Plan Identifier | The identifier of the price plan whose rates should be returned as a result. The allowed price plan identifier fields are the following:
| ||||||||||||
product_identifier (optional) | Product Identifier | The identifier of the product whose price plan rates should be returned as a result. The allowed product identifier fields are the following:
| ||||||||||||
rate_model (optional) | String | The price plan rate model that determines how the calculation will be performed in order to retrieve a product's final price. If specified then price plan rates that are following the specific rate model will be retrieved, otherwise price plan rates of any model will be retrieved. The allowed price plan rate models are the following:
FLATRATEMATURITYBASED, FLATRATEQUANTITYANDMATURITYBASED and TIEREDRATEQUANTITYANDMATURITYBASED are available from CRM.COM R14.0.0 | ||||||||||||
number_of_results (optional) | Number | The number of results that can be retrieved through each call Available from CRM.COM R13.0.0 | ||||||||||||
offset (optional) | Number | Defines the number of entities that should be skipped from the results. If it is set to 0 then none results should be skipped, otherwise the results will begin from the provided offset number Available from CRM.COM R13.0.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. |
Response Data
Name | Type | Description |
---|---|---|
code | String | The code of the retrieved price plan rate |
rate_model | String | The rate model of the retrieved price plan rate. Available values are:
FLATRATEMATURITYBASED, FLATRATEQUANTITYANDMATURITYBASED and TIEREDRATEQUANTITYANDMATURITYBASED are available from CRM.COM R14.0.0 From CRM.COM R15.0.0 the following values are available:
From CRM.COM R17.0.0, QUANTITYANDMATURITYBASED is renamed to QUANTITYANDPERIODBASED |
base_amount | Number | The base rate that is applied if not tiered rates are applied |
base_rate_applied_per | String | Determines whether the amount provided is per period or period and quantity. The following options are available
Applicable only for Period & Quantity Based |
effective_starting_from | Sting | The date option that determines when a recurring charges will become active. Applicable only for termed services. The applicable values are: BINDINGSTARTDATE, SERVICEEFFECTIVEDATE, AGREEMENTDATE and LATESTRATEDUPTODATE Available from CRM.COM R12.0.0 Not Available from CRM.COM R15.0.0 |
uot | String | The unit of time that can be used to measure time. This is mandatory information only for termed services.The applicable values are:
From CRM.COM R14.0.0 the time period object should be used for termed services, although the uot will still be available for duration based rate models |
currency | Currency Object | The currency in which the price plan rate is returned Available from CRM.COM R14.2.0 |
uom | String | Unit of Measurement represents the unit of measurement that can be used in the system in order to measure usage UOM are configurable. Available from CRM.COM R15.0.0 |
aggregate_tiered_rates | Boolean | If the tiered rates of a model are defined as aggregate the final price is the sum of tiered rates, according to the duration or usage of the service or quantity of the product. Available from CRM.COM R15.0.0 |
tiered_level_start_at_last_rated_to_date | Boolean | Used to define that each tier level should start from the last rated to date applicable only for Billable Period Based rate model and Period & Quantity Based. Available from CRM.COM R15.0.0 |
price_plan_period | Price Plan Period object | The period for which the rate is applicable for Available from CRM.COM R15.0.0 |
time_period | Time Period Object | The period and unit of time used to calculate the rates for termed services. This is applicable only on termed services rates. Only days, weeks, months and years are applicable for termed services rates. The period and unit of time used to calculate the rates for termed services. This is applicable only on termed services rates. Only days, weeks, months and years are applicable for termed services rates. Available from CRM.COM R14.0.0 |
price_plan | Price Plan Object | The base price plan related with the retrieved price plan. This information is available only if the retrieved price plan is a conditional price plan |
product | Product Object | The physical good or service whose price plan rate is returned as a result. |
product_bundle | Product Object | The product bundle related with the selected product whose price plan rate is returned as a result.. This information is applicable only if the specified product is used as a product component belonging to a product having a type classified as flexible bundle product. |
tiered_rates_set | Set of Tiered Rates Objects | A list of tiered rates related to the specified product. From CRM.COM R14.0.0 the termed_services_rates_set should be used for termed services. The tiered_rates_set will still be available but it will not be applicable for termed services following the FLATRATEQUANTITYANDMATURITYBASED and TIEREDRATEQUANTITYANDMATURITYBASED rate models From CRM.COM R15.0.0 applicable for termed services following the BILLABLEPERIODBASED rate model |
termed_services_tiered_rates_set | Set of Termed Services Tiered Rates Objects | A list of tiered rates related to termed service of Matrutity & Quantity Rate model. Applicable for termed services following the QUANTITYANDMATURITYBASED rate model Available from CRM.COM R14.0.0 |
usage_services_tiered_rates_set | Set of Usage Services Tiered Rates Objects | A list of tiered rates related to the specified usage service. Applicable for usage services Available from CRM.COM R15.0.0 |
Referred Objects Response Data