Skip to end of banner
Go to start of banner

GET subscriptions/services/configuration/add_expenses/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 Current »

Available from CRM.COM R7.0.0

This method returns the the expenses that can be added on an existing subscription. Multiple expenses are returned by each call

Resource URL

Parameters

Name

Type

Description

token

String

The token retrieved from the login method

subscription_identifier

(mandatory)

Subscription Identifier

The identifier of the the subscription on which the expense services will be added on. The expense subscription services are filtered based on the type of the specified subscription. The allowed subscription identifier fields are the following:

Name

Type

Description

id 

(semi-optional)

String

The ID of subscription

number 

(semi-optional)

String

The number of subscription

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

NameType Description

id

String

The ID of the retrieved subscription type service

mandatoryStringDetermines if the subscription service is mandatory or not. The supported values is MANDATORY or OPTIONAL

product

Product Object

The actual product provided by the subscription type service

trial_periodTrial Period Object

Includes the trial period that the service will get on its first activation on the subscription (if any is defined according to the subscription type)

Available from CRM.COM R14.17.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

 trial period object response data

Name

Type

Description

duration

Number

The trial period's duration value

UOT

String

The trial period's duration UOT which can be DAYS or MONTHS


Examples

 Example 1

HTTP Method: GET

 

Request:

Response:

 

{
    "status":
    {
        "message": "",
        "description": "",
        "code": "OK"
    },
    "data":
    [
        {
            "mandatory": "Optional",
            "id": "4DD88741BE154C6C879957D3A4B4F6AC",
            "product":
            {
                "product_type":
                {
                    "service_type": "EXPENSE",
                    "physical_good_type": null,
                    "used_for_provisioning": false,
                    "classification": "SERVICES",
                    "composition_method": "FLAT",
                    "id": "67FA013211E348C58F7CD27F8399AADE",
                    "name": "Expense Type",
                    "description": null,
                    "alternative_code": "ET"
                },
                "id": "2855ACFCB7D94ED69A5FC3B9557EB6D6",
                "description": "Expence 1",
                "code": "Expence 1",
                "alternative_code": "exp1"
            }
        },
        {
            "mandatory": "Optional",
            "id": "7619D892A6C5492CBA34DD502BACCD81",
            "product":
            {
                "product_type":
                {
                    "service_type": "EXPENSE",
                    "physical_good_type": null,
                    "used_for_provisioning": false,
                    "classification": "SERVICES",
                    "composition_method": "FLAT",
                    "id": "67FA013211E348C58F7CD27F8399AADE",
                    "name": "Expense Type",
                    "description": null,
                    "alternative_code": "ET"
                },
                "id": "81D5550CF6004CE0B206A371F9F3A18A",
                "description": "Expence 2",
                "code": "Expence 2",
                "alternative_code": "exp2"
            }
        },
        {
            "mandatory": "Optional",
            "id": "1E375A2EE43648B6904CA461909E3A34",
            "product":
            {
                "product_type":
                {
                    "service_type": "EXPENSE",
                    "physical_good_type": null,
                    "used_for_provisioning": false,
                    "classification": "SERVICES",
                    "composition_method": "FLAT",
                    "id": "67FA013211E348C58F7CD27F8399AADE",
                    "name": "Expense Type",
                    "description": null,
                    "alternative_code": "ET"
                },
                "id": "740740215DE842E296529F1034DF84AB",
                "description": "Expence 3",
                "code": "Expence 3",
                "alternative_code": "exp3"
            }
        }
    ]
} 
  • No labels