Skip to end of banner
Go to start of banner

GET subscriptions/configuration/billing_term_schemes/list

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

This method returns the billing term schemes that are allowed to be used by a specific type of subscription. Multiple billing term schemes are returned by each call

Available from CRM.COM R6.0.0

Resource URL

Parameters

Name

Type

Description

token

String

The token retrieved from the login method

subscription_type_identifier

(mandatory)

Subscription Type Identifier

The identifier of the type of the subscription that will be using the billing term schemes. The allowed subscription type identifier fields are the following:

Name

Type

Description

id

(semi-optional)

String

The ID of the subscription type

name

(semi-optional)

String

The name of the subscription type

alternative_code

(semi-optional)

String

The alternative code of  the subscription type

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

id

String

The ID of the retrieved billing term scheme

codeStringThe code of the retrieved billing term scheme
nameStringThe name of the retrieved billing term scheme
life_cycle_stateString

The life cycle state of the retrieved billing term scheme. The supported life cycle states are the following

DRAFT, EFFECTIVE, TERMINATED

classificationString

The classification of the retrieved billing term scheme which can be either SUBSCRIPTIONS or JOBS

Deprecated from CRM.COM R15.0.0

billing_typeString

The billing type of the billing term scheme that will be assigned to subscription billing terms. Available options are NORMAL or PREPAID

Billing type options PRE/POST_BILL and PRE/POST_RATED are available starting from CRM.COM R15.0.0

Prior CRM.COM R15.0.0. the supported billing type options are NORMAL or PREPAID

billing_type_classificationString

The billing type classification that defines how Normal and Prepaid subscriptions will be billed. Available options are PRE_BILL or POST_BILL for Normal billing term schemes and PRE_RATED or POST_RATED for Prepaid billing term schemes

Available from CRM.COM R15.0.0. 

discount_optionString

The discount option of the retrieved billing term scheme that can be FIXED_PRICE or FLEXIBLE_PRICE

Deprecated from CRM.COM R15.0.0

descriptionStringThe description of the retrieved billing term scheme
billing_methodStringThe billing method of the billing term scheme which can be ANNIVERSARY or PERIOD
billing_terms_auto_renewedBoolean

Indicates whether the billing terms of subscriptions following the specified billing term scheme will be auto-renewed or not

Available from CRM.COM R15.0.0

concurrent_usage_allowedBooleanDetermines if concurrent usage is allowed for subscriptions using this billing term scheme
allowed_cycle_dayNumberThe allowed cycle day. This information is available only if the billing method is PERIOD
allowed_cycle_day_fromNumber

The allowed cycle day range from day. This information is available only if the billing method is ANNIVERSARY


 

allowed_cycle_day_toNumberThe allowed cycle day range to day. This information is available only if the billing method is ANNIVERSARY

anniversary_day_equal_to_subscription_creation_day

Boolean

Defines that the anniversary day is set according to the day of month in which the subscription is initiated. Applicable only when the billing method is set to ANNIVERSARY. If set to Yes, then allowed_cycle_day_from and allowed_cycle_day_ to are not applicable

 Available from CRM.COM R12.0.0

reset_anniversary_day_on_subscription_reactivationBoolean

Defines whether the anniversary day will be reset whenever the subscription goes back to the Effective life cycle state and according to the reactivation action's scheduled day of month. Applicable only when the billing method is set to ANNIVERSARY. If set to Yes, then allowed_cycle_day_from and allowed_cycle_day_ to are not applicable

 Available from CRM.COM R12.0.0

requires_prepaymentBoolean

Indicates whether a prepayment is required in order to perform actions on Subscriptions using this Billing Term Scheme. Applicable only for Normal Billing Term Schemes

 Available from CRM.COM R13.0.0

Deprecated from CRM.COM R15.0.0

payment_modelString

Defines when the account owner is expected to submit a payment. Available only for Normal Billing Term Schemes. The available values are:

  • PAY_BEFORE_BILL available only for schemes of Anniversary billing method
  • PAY_AFTER_BILL available in all Normal billing term schemes and it is also the default option.

 Available from CRM.COM R14.0.0

 From CRM.COM R14.2.0, payment model is available for both Anniversary and Period billing schemes.

services_billing_period_adjustableBoolean

Indicates whether the period to be billed in advance is adjustable for the supported services depending on the amount paid by the subscriber. Applicable only for billing term schemes of type PREPAID and the setting applies only for pre-rated services.

 Available from CRM.COM R14.0.0

default_billing_frequencyString

The name of the default billing frequency that will be set on the billing terms of subscriptions following the related billing term scheme. Applicable only for Normal Billing Term Schemes

 Available from CRM.COM R15.0.0

default_binding_periodString

The name of the default binding period that will be set on the billing terms of subscriptions following the related billing term scheme. Applicable only for Normal Billing Term Schemes and only if a binding period is required.

 Available from CRM.COM R15.0.0


udf_string_1

String

User Defined Field of type String

udf_string_2

String

User Defined Field of type String

udf_string_3

String

User Defined Field of type String

udf_string_4

String

User Defined Field of type String

udf_string_5

String

User Defined Field of type String

udf_string_6

String

User Defined Field of type String

udf_string_7

String

User Defined Field of type String

udf_string_8

String

User Defined Field of type String

udf_float_1

Float

User Defined Field of type Float

udf_float_2

Float

User Defined Field of type Float

udf_float_3

Float

User Defined Field of type Float

udf_float_4

Float

User Defined Field of type Float

udf_date_1

Date

User Defined Field of type Date

udf_date_2

Date

User Defined Field of type Date

udf_date_3

Date

User Defined Field of type Date

udf_date_4

Date

User Defined Field of type Date

log_informationLog Information ObjectThe log information of the retrieved billing term scheme
billing_frequencies_setSet of Billing Frequencies ObjectsThe billing frequencies that are supported by the retrieved billing term scheme. Applicable only for
binding_periods_setSet of Binding Period ObjectsThe binding periods that are supported by the retrieved billing term scheme
supported_services_setSet of Billing Term Scheme Services Objects

The services that are supported by the retrieved billing term scheme

Deprecated from CRM.COM R15.0.0

Referred Objects Response Data

 log_information object response data

Name

Type

Description

created_date

Date

The date that the retrieved record was created

updated_date

Date

The last date that the retrieved record was updated

created_by_unit

Unit Object

The unit that created the retrieved record

From CRM.COM R14.1.0 and onward, group_name and community_name attributes will be returned as empty, if the related legacy compatibility setting is disabled

Deprecated from CRM.COM R18.0.0

created_by_business_unit

Unit Object

The unit that created the retrieved record

From CRM.COM R14.1.0 and onward, group_name and community_name attributes will be returned as empty, if the related legacy compatibility setting is disabled

Available from CRM.COM R18.0.0

created_by_user

User Object

The user that created the retrieved record

From CRM.COM R14.1.0 and onward, person_name and email attributes will be returned as empty, if the related legacy compatibility setting is disabled

updated_by_unit

Unit Object

The last unit that updated the retrieved record

From CRM.COM R14.1.0 and onward, group_name and community_name attributes will be returned as empty, if the related legacy compatibility setting is disabled

Deprecated from CRM.COM R18.0.0

updated_by_business_unit

Unit Object

The last unit that updated the retrieved record

Available from CRM.COM R18.0.0

updated_by_user

User Object

The last user that updated the retrieved record

From CRM.COM R14.1.0 and onward, person_name and email attributes will be returned as empty, if the related legacy compatibility setting is disabled

Referred Objects Response Data

 unit object response data

Name

Type

Description

id

String

The ID of the retrieved unit

name

String

The name of the retrieved unit

group_name

String

The name of the group that the retrieved unit belongs to

community_name

String

The name of the community that the retrieved unit belongs to

alternative_code

String

The alternative code of the retrieved unit

description

String

The description of the retrieved unit

 business unit object response data

Name

Type

Description

id

String

The ID of the retrieved business unit

name

String

The name of the retrieved business unit

codeStringThe code of the retrieved business unit
unified_codeString

The unified code of the retrieved business unit

description

String

The description of the retrieved business unit

parent_business_unit_nameStringThe name of the parent business unit that the retrieved business unit belongs to

 user object response data

Name

Type

Description

id

String

The ID of the retrieved user

username

String

The user name of the retrieved user

person_name

String

The full name of the retrieved user

email

String

The email of the retrieved user

 billing_frequency object response data

Name

Type

Description

code

String

The code of the retrieved billing frequency

name

String

The label of the retrieved billing frequency

defaultBooleanIt determines if the retrieved billing frequency is the default, as specified in the related billing term scheme
time_periodTime Period ObjectThe time period that is represented by the retrieved billing frequency

Referred Objects Response Data

 period object response data

Name

Type

Description

time_period_valueNumber

The time period value

time_period_uot

String

The time period unit of time. The supported values are the following:

MINUTES, HOURS, DAYS, WEEKS, MONTHS, YEARS

 binding_period object response data

Name

Type

Description

code

String

The code of the retrieved binding period

name

String

The label of the retrieved binding period

defaultBooleanIt determines if the retrieved binding period is the default, as specified in the related billing term scheme
time_periodTime Period ObjectThe time period that is represented by the retrieved binding period

Referred Objects Response Data

 period object response data

Name

Type

Description

time_period_valueNumber

The time period value

time_period_uot

String

The time period unit of time. The supported values are the following:

MINUTES, HOURS, DAYS, WEEKS, MONTHS, YEARS

 billing_term_scheme_product object response data

Name

Type

Description

id

String

The ID of the retrieved billing term scheme product

billing_typeString

The billing type of the retrieved billing term scheme product, which can be PREBILL or POSTBILL for Normal Billing Term Schemes or POSTRATE or PRERATE for Prepaid Billing Term Schemes.

PRERATE and POSTRATE billing types available from CRM.COM R9.0.0

period_billed_in_advanceInteger

Defines the period for which the billing tern scheme product will be pre-rated. Applicable only for billing term schemes with billing tye Prepaid and only for products whose billing type is set to PRERATE.

Available from CRM.COM R9.0.0

Deprecated from CRM.COM R14.0.0

period_billed_in_advance_uotString

The unit of time that measures the specified period billed in advance. The supported values are DAYS, WEEKS or MONTHS. Applicable only if period billed in advance is specified for a Prepaid billing term scheme product which is also classified as to be Pre-Rated.

Available from CRM.COM R9.0.0

Deprecated from CRM.COM R14.0.0

freeBoolean

Indicates whether the retrieved service is classified as Free or a Paid one. If true then the service is a free service

Available from CRM.COM R14.2.0

productProduct objectThe actual billing term scheme product
periods_billed_in_advancePeriods Billed in Advance Set

Defines the allowed periods for which the specified service can be billed in advance. Applicable only for prepaid pre-rated services.

Available from CRM.COM R14.0.0

Referred Objects Response Data

 product object response data
Name
Type
Description
IdStringThe ID of the product
codeStringThe code of product

alternative_code

String

The alternative code of product

description

String

The description of product

priority_levelInteger

The priority level of the product

Available from CRM.COM R12.3.0

global_rateGlobal Rate Object

The global rate of the retrieved product

Available from CRM.COM R15.0.0

product_typeProduct type objectThe type of the product

Referred Objects Response Data

 product_type object data response
NameType Description
IdStringThe ID of the retrieved product type
nameStringThe Name of the retrieved product type
alternative_codeStringThe Alternative Code of the retrieved product type
descriptionStringThe Description of the retrieved product type
classificationStringThe Classification of the retrieved product type which can be SERVICES or PHYSICALGOODS
service_typeStringThe Service Type of the retrieved product type which can be TERMED, USAGE, ONETIME or EXPENSE
physical_good_typeStringThe physical Good Type of the retrieved product type which can be TRACEABLE or NONTRACEABLE
composition_methodStringThe Composition Method of the retrieved product type which can be FLAT, FLEXIBLEBUNDLE or FIXEDBUNDLE
used_for_provisioningBooleanThe flag shows if the retrieved product type is used for provisioning
udr_typeUsage Detail Record TypeThe UDR type related with the product type. This is applicable only if the product type is classified as SERVICES and the service type is set to USAGE
meter_reading_typeMeter Reading Type

The Meter Reading type related with the product type. This is applicable only for traceable physical goods

Available from CRM.COM R14.0.0

Referred Objects Response Data

 usage_detail_record_type object data response
NameType Description
IdStringThe ID of the retrieved usage detail record type
nameStringThe Name of the retrieved usage detail record type
alternative_codeStringThe Alternative Code of the retrieved usage detail record type
descriptionStringThe Description of the retrieved usage detail record type
unit_of_measurementStringThe Unit of measurement of the retrieved usage detail record type

Referred Objects Response Data

 unit_of_measurement object response data

Name

Type

Description

idStringThe identifier of the Unit of measurement

name

String

The name of the Unit of measurement

description

String

The description of the Unit of measurement

alternative_codeStringThe alternative code of the Unit of measurement

 

 meter_reading_type object data response
NameType Description
IdStringThe ID of the retrieved meter reading type
nameStringThe Name of the retrieved meter reading type
alternative_codeStringThe Alternative Code of the retrieved meter reading type
classificationStringThe Classification of the retrieved meter reading type
descriptionStringThe Description of the retrieved meter reading type
unit_of_measurementStringThe Unit of measurement of the retrieved meter reading type

Referred Objects Response Data

 unit_of_measurement object response data

Name

Type

Description

idStringThe identifier of the Unit of measurement

name

String

The name of the Unit of measurement

description

String

The description of the Unit of measurement

alternative_codeStringThe alternative code of the Unit of measurement

 global rate object response data

Name

Type

Description

id

String

The ID of the retrieved rate

rate_model

String

The price plan rate model which can be one of the following:

  • QUANTITYBASED
  • QUANTITYANDPERIODBASED
  • BILLABLEPERIODBASED
  • DURATIONBASED
  • FLATFEEBASED
  • USAGEBASED

From CRM.COM R17.0.0, QUANTITYANDMATURITYBASED is renamed to QUANTITYANDPERIODBASED

global_base_amountNumber

The base price of the product in the Global Price Plan

base_rate_applied_perString

The value for 'Base Rate Applied per'

Available when the rate model is 'Quantity & Quantity Based' and it is a selection between

  • Period
  • Period_Item
uotString

The 'UOT' applicable for the rate

  • Seconds
  • Minute
  • Hour
  • Day
  • Week
  • Month
  • Year

Available for one-time services

time_periodTime Period Object

 The period and unit of time for which the base amount is applicable for. This is available only on termed services rates.

uomString

The 'UOM' applicable for the rate

Available when the product type is of Usage Service Classification 

Referred Objects Response Data

 period object response data

Name

Type

Description

time_period_valueNumber

The time period value

time_period_uot

String

The time period unit of time. The supported values are the following:

MINUTES, HOURS, DAYS, WEEKS, MONTHS, YEARS

 period billed in advance object response data

Name

Type

Description

period_billed_in_advance

Integer

Defines the period for which the billing tern scheme product will be pre-rated. Applicable only for billing term schemes with billing tye Prepaid and only for products whose billing type is set to PRERATE.

period_billed_in_advance_uot

String

The unit of time that measures the specified period billed in advance. The supported values are DAYS, WEEKS or MONTHS. Applicable only if period billed in advance is specified for a Prepaid billing term scheme product which is also classified as to be Pre-Rated.

defaultBooleanDefines which period to bill in advance is the default one for the specified service


 

Examples

 Example 1

HTTP Method: GET

 

Request:

Response:

 

{
    "status":
    {
        "message": null,
        "description": null,
        "code": "OK"
    },
    "data":
    [
        {
            "udf_float_1": null,
            "udf_float_2": null,
            "udf_float_3": null,
            "udf_float_4": null,
            "udf_string_1": null,
            "name": "Concurrent Usage BT Scheme",
            "udf_string_2": null,
            "udf_string_3": null,
            "udf_string_4": null,
            "udf_string_5": null,
            "udf_string_6": null,
            "udf_string_7": null,
            "udf_string_8": null,
            "billing_frequencies_set":
            [
                {
                    "default": false,
                    "time_period":
                    {
                        "time_period_value": 2,
                        "time_period_uot": "YEARS"
                    },
                    "name": "Two Years",
                    "code": "TWOYEARS"
                },
                {
                    "default": false,
                    "time_period":
                    {
                        "time_period_value": 3,
                        "time_period_uot": "MONTHS"
                    },
                    "name": "Quarterly",
                    "code": "QUARTERLY"
                },
                {
                    "default": false,
                    "time_period":
                    {
                        "time_period_value": 1,
                        "time_period_uot": "YEARS"
                    },
                    "name": "Annual",
                    "code": "ANNUAL"
                },
                {
                    "default": true,
                    "time_period":
                    {
                        "time_period_value": 1,
                        "time_period_uot": "MONTHS"
                    },
                    "name": "Monthly",
                    "code": "MONTHLY"
                }
            ],
            "id": "DC2EE11DF33A44369B96EC6067F4EFA0",
            "allowed_cycle_day_from": 10,
            "billing_method": "PERIOD",
            "classification": "SUBSCRIPTIONS",
			"requires_prepayment": false,
			"udf_date_1": null,
            "udf_date_2": null,
            "udf_date_3": null,
            "udf_date_4": null,
            "code": "CUBT",
            "allowed_cycle_day_to": null,
            "log_information":
            {
                "updated_date": "2015-03-11T18:06:36",
                "created_by_unit":
                {
                    "name": "Admin Unit",
                    "id": "48305F8849E3C18B227C5BE3A27BA6DF",
                    "description": "r1",
                    "alternative_code": "MG"
                },
                "created_date": "2015-03-11T18:05:47",
                "updated_by_unit":
                {
                    "name": "Admin Unit",
                    "id": "48305F8849E3C18B227C5BE3A27BA6DF",
                    "description": "r1",
                    "alternative_code": "MG"
                },
                "created_by_user":
                {
                    "person_name": "g_neocleous",
                    "username": "g_neocleous",
                    "id": "80D37EB91123AE12EEABA6232ADA654F"
                },
                "updated_by_user":
                {
                    "person_name": "p_xenopoulou",
                    "username": "p_xenopoulou",
                    "id": "159C17D9C4B1E48DC129FBC701D38438"
                }
            },
            "supported_services_set":
            [
                {
                    "id": "56D3DD44DBFA43A0870EBD16C81B2A40",
                    "billing_type": "PRE_BILL",
                    "product":
                    {
                        "id": "4D55A6EC2FF25A44B9945B88940AF1A0",
                        "description": "Sports 2",
                        "code": "Sports 2",
                        "alternative_code": "S2"
                    }
                },
                {
                    "id": "E4D6CD3793824F5A8AFA1F37C339C7AC",
                    "billing_type": "PRE_BILL",
                    "product":
                    {
                        "id": "90578F46460B7C4530BE801CFE5CB9A1",
                        "description": "Movies 2",
                        "code": "Movies 2",
                        "alternative_code": "m2"
                    }
                },
                {
                    "id": "A5FC9D331C6B4808B278CD73E49C9344",
                    "billing_type": "PRE_BILL",
                    "product":
                    {
                        "id": "17540C21EAB9C50D0945F12313B79875",
                        "description": "Silver Basic Package",
                        "code": "Silver",
                        "alternative_code": "SBP"
                    }
                },
                {
                    "id": "3C519D6A73B244CAB3EBCFFF9DECC4E5",
                    "billing_type": "PRE_BILL",
                    "product":
                    {
                        "id": "5B3841D63F6CAE5973366EEAFF3444E3",
                        "description": "Movies 1",
                        "code": "Movies 1",
                        "alternative_code": "M1"
                    }
                },
                {
                    "id": "49E084CBE27E440FA774498EBA92806A",
                    "billing_type": "PRE_BILL",
                    "product":
                    {
                        "id": "E3600383FF2650A594594F10BEB358D5",
                        "description": "Cartoons 2",
                        "code": "Cartoons 2",
                        "alternative_code": "C2"
                    }
                },
                {
                    "id": "096E40E385274041A5B9E046AC3082C3",
                    "billing_type": "PRE_BILL",
                    "product":
                    {
                        "id": "EBAC84F9A0086191BD58B624D236D61D",
                        "description": "Sports 1",
                        "code": "Sports 1",
                        "alternative_code": "S1"
                    }
                },
                {
                    "id": "2AA60B8AE6A34E79934FDE6D0B94504F",
                    "billing_type": "PRE_BILL",
                    "product":
                    {
                        "id": "A15149563AC0E7D3613F3C1B6E2EE4F5",
                        "description": "Standard Premium Package
",
                        "code": "Standard",
                        "alternative_code": "S"
                    }
                },
                {
                    "id": "61CDB40776624ADAABC59EE80F29A43A",
                    "billing_type": "PRE_BILL",
                    "product":
                    {
                        "id": "AEBE16E35266108071DCCF388B696369",
                        "description": "Pay Per View Service",
                        "code": "Pay Per View Service",
                        "alternative_code": "PPV"
                    }
                },
                {
                    "id": "F9D473865F5240E9A8A6BE10D3647EBB",
                    "billing_type": "PRE_BILL",
                    "product":
                    {
                        "id": "CA3ACA47666F6CB6EECB3C15D1F0221A",
                        "description": "Cartoons 1",
                        "code": "Cartoons 1 ",
                        "alternative_code": "C1"
                    }
                },
                {
                    "id": "5EAD7215ADD84192BD0D6A8E0DF8C487",
                    "billing_type": "PRE_BILL",
                    "product":
                    {
                        "id": "2C0E72A735F71582FFC765F3421CE6A5",
                        "description": "Platinum Premium Package",
                        "code": "Platinum",
                        "alternative_code": "PS"
                    }
                },
                {
                    "id": "20ED1FDAD13D48DD95E184B95AA9F33C",
                    "billing_type": "PRE_BILL",
                    "product":
                    {
                        "id": "6DF884D00A643D9E5E3E95A5ABCCFDF8",
                        "description": "Gold Premium Package",
                        "code": "Gold",
                        "alternative_code": "GPP"
                    }
                },
                {
                    "id": "0351EEA954784ABCB094C6075F494F45",
                    "billing_type": "PRE_BILL",
                    "product":
                    {
                        "id": "CAD1E31269B76D7A65ACCE45B2E68DFD",
                        "description": "Bronze Premium Package",
                        "code": "Bronze",
                        "alternative_code": "BP"
                    }
                },
                {
                    "id": "9F1CE04993654E4C92E19B1A5CF34093",
                    "billing_type": "PRE_BILL",
                    "product":
                    {
                        "id": "DF57C72BAF0260C26BA558CC06862448",
                        "description": "Video On Demand Service",
                        "code": "Video On Demand Service",
                        "alternative_code": "VOD"
                    }
                },
                {
                    "id": "2511CBFAE5FB4794803D8ACC1C5C46DD",
                    "billing_type": "PRE_BILL",
                    "product":
                    {
                        "id": "041FCCF0417D7F41BFAF456107FF0CA5",
                        "description": "Full access to all channels
",
                        "code": "Full Access Premium",
                        "alternative_code": "FAPREM"
                    }
                },
                {
                    "id": "0D0F3BC6DCAD4BB3BB38B1854A37D278",
                    "billing_type": "PRE_BILL",
                    "product":
                    {
                        "id": "198E2349ABA438B6AD3677BF437BDD43",
                        "description": "Standard + Premium Package
",
                        "code": "Standard +",
                        "alternative_code": "S+"
                    }
                }
            ],
            "discount_option": "FLEXIBLE_PRICE",
            "life_cycle_state": "EFFECTIVE",
            "concurent_usage_allowed": 1,
            "binding_periods_set":
            [
                {
                    "default": false,
                    "time_period":
                    {
                        "time_period_value": 2,
                        "time_period_uot": "YEARS"
                    },
                    "name": "24 Months",
                    "code": "TWOYEARS"
                },
                {
                    "default": true,
                    "time_period":
                    {
                        "time_period_value": 1,
                        "time_period_uot": "YEARS"
                    },
                    "name": "Annual",
                    "code": "ANNUAL"
                }
            ],
            "description": null,
            "billing_type": "NORMAL"
        },         
              
....
}
   
  • No labels