Versions Compared

Key

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

Available from CRM.COM R7.0.0

Excerpt

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 against the subscription services restrictions specified in the active subscription definition, considering the subscriptions that are already owned by the accounts receivable related with the based on the type of the specified subscription. The allowed subscription identifier fields are the following:

Include Page
V4:subscription_identifier
V4:subscription_identifier

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

...

Include Page
V4:subscription_type_servicesexpenses_complete
V4:subscription_type_servicesexpenses_complete

Examples

Expand
titleExample 1

HTTP Method: GET

 

Request:

Response:

 

Code Block
themeConfluence
languagejavascript
linenumberstrue
{
    "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"
            }
        }
    ]
}