Versions Compared

Key

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

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...


Excerpt

This method adds one or multiple subscription services on a specific subscription, as draft or effective, and any installed items which might be required in order to add those services

Resource URL

Parameters

Name

Type

Description

token

String

The token retrieved from the login method

subscription_identifier

(semi-optional)

Subscription identifier

The subscription to be modified. The allowed subscription identifier fields are the following:

Include Page
V4:subscription_identifier
V4:subscription_identifier

Tip

For releases prior to CRM.COM R13.0.0 the subscription_identifier is mandatory


accounts_receivable_identifier

(semi-optional)

Accounts Receivable Identifier

The accounts receivable identifier that can be used to perform the subscription modification. The allowed accounts receivable identifier fields are the following:

Include Page
V4:accounts_receivable_identifier_post
V4:accounts_receivable_identifier_post

Note

The ability to use the accounts_receivable_identifier instead of the subscription_identifier is applicable only when the specified Accounts Receivable owns only one Subscription


Tip

Available from CRM.COM R13.0.0


business_classification_code

(mandatory)

StringDefines if the services should be added as draft or effective. The allowed options are ADD_SERVICE or ADD_SERVICE_AS
_DRAFT
_DRAFT

action_type_identifier

(optional)

Subscription action type identifier

The action type that should be used. The allowed subscription action type identifier fields are the following:

Include Page
V4:subscription_action_type_identifier
V4:subscription_action_type_identifier

Tip

Deprecated from CRM.COM R15.0.0


sub_action_type_identifier

(optional)

Subscription sub action type identifier

The sub action type that should be used. The allowed subscription sub action type identifier fields are the following:

Include Page
V4:subscription_sub_action_type_identifier
V4:subscription_sub_action_type_identifier

Tip

Deprecated from CRM.COM R15.0.0

sub_action_type


classification_identifier

(optional)

Subscription
sub action type identifier
Action Classification Identifier

The

sub action type that should be used

subscription action's classification. The allowed subscription

sub

action

type

classification identifier fields are the following:

Include Page
V4:subscription

_sub

_action_

type

classification_identifier
V4:subscription

_sub

_action_

type

classification_identifier

Tip
Deprecated

Available from CRM.COM

R15

R18.0.0


payment_gateway_card_identifier

(optional)

Payment Gateway Card Identifier

The payment gateway card that will be used to post a payment against the accounts receivable of the subscription. Applicable and required only for Subscriptions following the "Pay before bill" payment model. The applicable payment gateway card identifier fields are the following:

Include Page
V4:payment_gateway_card_identifier
V4:payment_gateway_card_identifier

Tip

Available from CRM.COM R14.3.0


transaction_reference_number

(optional)

String

The transaction reference number of the performed subscription action. The transaction reference number is unique against already submitted subscription actions.

Tip

Available from CRM.COM R13.0.0


performed_by_user_identifier

(optional)

User identifier
 The user that actually

 The user that actually performed the action. The allowed user identifier fields are the following:

Include Page
V4:user_identifier
V4:user_identifier

performed_by_unit_identifier

(optional)

Unit Identifier

The unit that performed the action. The allowed

user

unit identifier fields are the following:

Include Page
V4:

user

unit_identifier
V4:

user

unit_identifier

Tip

Available from CRM.COM R14.0.0

Deprecated from CRM.COM R18.0.0


performed_by_business_unit_identifier

(optional)

Business Unit Identifier

The business unit that performed the action. The allowed business unit identifier fields are the following:

Include Page
V4:business_unit_identifier
V4:business_unit_identifier

Tip

Available

from

 from CRM.COM

R14

R18.0.0


performed_on

(optional)

DateThe date that the action was actually performed

billing_effective_date

(optional)

DateDetermines when the subscription services that are affected by the subscription action should be billed by the billing engine.

billable_period_start_date

(optional)

DateDetermines the start date of the billable period of each subscription service  (it answers to the question “from which date should I start billing this service) that is affected by the subscription action.

scheduled_date

(optional)

Date

The date that the action is scheduled to be executed. If not specified then the action will be executed immediately. It is important to note that if the subscription action is submitted as a scheduled one, then no installed items are specified as to also be added through this action

 


use_proposed_scheduled_date

(optional)

Boolean

Defines whether the scheduled date automatically calculated and proposed by the system based on business rules, will be automatically set as the subscription's scheduled date or not. Applicable only if the subscription action includes a scheduled date and only if this scheduled date does not

. Applicable only if the subscription action includes a scheduled date and only if this scheduled date does not meet the business rules.

meet the business rules.

Tip

Available from CRM.COM R15.0.0


require_verification

(optional)

Boolean

Determines whether the Subscription Action will be fulfilled through a Job

Tip

Available from CRM.COM R15.

0

1.0


udf_string_1 

(optional)

String

User Defined Field of type String

udf_string_2 

(optional)

String

User Defined Field of type String

udf_string_3 

(optional)

String

User Defined Field of type String

udf_string_4 

(optional)

String

User Defined Field of type String

udf_string_5

(optional)

String

User Defined Field of type String

udf_string_6 

(optional)

String

User Defined Field of type String

udf_string_7

(optional)

String

User Defined Field of type String

udf_string_8

(optional)

String

User Defined Field of type String

udf_float_1

(optional)

Float

User Defined Field of type Float

udf_float_2

(optional)

Float

User Defined Field of type Float

udf_float_3

(optional)

Float

User Defined Field of type Float

udf_float_4

(optional)

Float

User Defined Field of type Float

udf_date_1 

(optional)

Date

User Defined Field of type Date

udf_date_2 

(optional)

Date

User Defined Field of type Date

udf_date_3

(optional)

Date

User Defined Field of type Date

udf_date_4

(optional)

Date

User Defined Field of type Date

services_set

(mandatory)

Set of subscription service objects

The services that will be added on the subscription

tip

From CRM.COM R14.0.0 onwards, if the Subscription's Type is of classification Package then any Services added on the Subscription are considered as Additional Services.



installed_items_set

(optional)

Set of subscription installed item objects

The installed items that might be needed to be added on the subscription in order to be allowed to add the required services. Adding new installed items on the subscription through the Add Service action is not allowed if the subscription action is submitted as a

scheduled one.

scheduled one.

expenses_set

(optional)

Set of Subscription Expenses Objects

The expenses that will be added on the subscription

Tip
From

Available from CRM.COM

R14

R18.0.0

onwards, if the Subscription's Type is of classification Package then any Installed Items added on the Subscription are considered as Additional Installed Items.


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


Anchor
services_add referred objects parameters
services_add referred objects parameters
Referred Parameter Objects Data

...

Include Page
V4:new_subscription_installed_item_parameter
V4:new_subscription_installed_item_parameter

Include Page
V4:new_subscription_expense_parameter
V4:new_subscription_expense_parameter

Restrictions

  • It is mandatory to specify one of the semi-optional parameters. Only one of those parameters is allowed to be specified.

...

Expand
titleExample 1

HTTP Method: POST 


Request:

Body:

Code Block
languagejavascript
themeConfluencelanguagejavascript
linenumberstrue
{
    "token":"09CB68CC0E00A93FC936274CC7A7D0F8",
    "subscription_identifier":{
        "number":"S60315"
    },
    "business_classification_code":"ADD_SERVICE_AS_DRAFT",
    "action_type_identifier":{
        "name":"Add Service"
    },
   "sub_action_type_identifier":{"name":"Add Service As Draft"},
   "services_set":[
        {
            "service_identifier":{
                "code":"Cartoons 2 "
            },
            "services_distribution_set":[
                {
                    "provisioning_distributor_identifier":{
                        "name":"Main"
                    }
                },
                {
                    "provisioning_distributor_identifier":{
                        "name":"Twin 1"
                    }
                }
            ],
            "components_set":[
                {
                    "service_identifier":{
					"code":"Sports 2"
                    }
                }
            ]
        }
    ]
}


Response:

Code Block
languagejavascript
themeConfluencelanguagejavascript
linenumberstrue
{
    "status":
    {
        "message": null,
        "description": null,
        "code": "OK"
    },
    "data":
    {
        "scheduled_date": "2015-03-19T14:26:59",
        "action_type":
        {
            "name": "Add Service",
            "id": "66FA72600B6E02877C0F7DDB4EBE5374",
            "alternative_code": "AS_1"
        },
        "submitted_on": "2015-03-19T14:26:59",
        "sub_action_type":
        {
            "name": "Add Service As Draft",
            "id": "ED5477346F6327B29D7408A0574C647F",
            "alternative_code": "A_S_D"
        },
        "business_classification_code": "ADD_SERVICE_AS_DRAFT",
        "number": "758",
        "executed_on": "2015-03-19T14:26:59",
        "life_cycle_state": "EXECUTED",
        "performed_by":
        {
            "person_name": "Marios Lannister",
            "username": "mpadministrator",
            "id": "1"
        },
        "behavior_code": "ADD_SERVICE",
        "submitted_by":
        {
            "person_name": "Marios Lannister",
            "username": "mpadministrator",
            "id": "1"
        },
        "id": "94B42447172E4340A3B776438FFB8183",
        "subscription":
        {
            "accounts_receivable":
            {
                "account_owner":
                {
                    "last_name": "Papapavlou",
                    "life_cycle_state": "FINANCIAL",
                    "middle_name": "Andreas",
                    "company_profile": null,
                    "title": "Ms",
                    "type": "PERSON",
                    "first_name": "Lucia",
                    "name": "Lucia Papapavlou",
                    "id": "1D92B269658D80DEDF2499E25201739E",
                    "company_name": null,
                    "demographics":
                    {
                        "gender": "FEMALE",
                        "passport_issued_by_country":
                        {
                            "name": "GREECE",
                            "id": "209"
                        },
                        "passport_number": "113115",
                        "social_security_number": "113116",
                        "country_of_residence":
                        {
                            "name": "UNITED KINGDOM",
                            "id": "126"
                        },
                        "industry_sector":
                        {
                            "name": "GOVERNMENTAL",
                            "id": "A9BDEBD4D8FAEDB0BACE40C041156D12",
                            "alternative_code": "GOV"
                        },
                        "date_of_birth":
                        {
                            "month": 1,
                            "day": 1,
                            "year": 1990
                        },
                        "name_day":
                        {
                            "month": 5,
                            "day": 5
                        },
                        "id_number": "113114",
                        "id_issued_by_country":
                        {
                            "name": "GREECE",
                            "id": "209"
                        },
                        "industry":
                        {
                            "name": "Interior Design",
                            "id": "06B638258885DA26FA2BD40D9128D04E",
                            "code": "INTDS"
                        }
                    }
                },
                "life_cycle_state": "ACTIVE",
                "number": "437",
                "name": "Change API Acount",
                "id": "AD428A613F5CF0571EA8D1345CE9E450"
            },
            "life_cycle_state": "EFFECTIVE",
            "number": "S60315",
            "type":
            {
                "name": "London",
                "id": "3100B0D56E7C7EADF073C34BCE1E42AF",
                "description": "For Subscribers residing in London
",
                "alternative_code": "LND"
            },
            "id": "59D30407589847498957D7E570FAC0BB"
        },
        "performed_on": "2015-03-19T14:26:59"
    }
}


...

Expand
titleExample 2

HTTP Method: POST 


Request:

Body:

Code Block
languagejavascript
themeConfluence
languagejavascript
linenumberstrue
{
    "token":"09CB68CC0E00A93FC936274CC7A7D0F8",
    "fields_set":"submitted_by,subscription,sub_action_type,job,action_type",
    "subscription_identifier":{
        "number":"S60686"
    },
    "business_classification_code":"ADD_SERVICE_AS_DRAFT",
    "action_type_identifier":{
        "name":"Add Service"
    },
   "sub_action_type_identifier":{"name":"Add Service Draft"},
   "services_set":[
        {
            "service_identifier":{
                "code":"Bronze "
            },
            "components_set":[
                {
                    "service_identifier":{
                    "code":"Bronze"
                    }
                }
            ]
        }
    ]
}


Response:

Code Block
languagejavascript
themeConfluencelanguagejavascript
linenumberstrue
{
  "status": {
    "message": "",
    "description": "",
    "code": "OK"
  },
  "data": {
    "action_type": {
      "id": "3594280C13D04F3F99C745A4DED4DC3E",
      "name": "Add Service",
      "alternative_code": "AS"
    },
    "sub_action_type": {
      "id": "4BBAE8F0EEB3C93FFE4B5F657B99B0D0",
      "name": "Add Service Draft",
      "alternative_code": "ASERSDRAFT"
    },
    "submitted_by": {
      "person_name": "Marios Lannister",
      "username": "MPAdministrator",
      "id": "1",
      "email": "sakkascy1986@hotmail.com"
    },
    "job": null,
    "subscription": {
      "life_cycle_state": "NOT_EFFECTIVE",
      "accounts_receivable": {
        "account_owner": {
          "last_name": "Michu",
          "middle_name": null,
          "life_cycle_state": "FINANCIAL",
          "company_profile": null,
          "title": "Sir",
          "first_name": "Steve",
          "type": "PERSON",
          "id": "06E70EDDB4C24B6DA3E94D5CF9A3D998",
          "name": "Michu Steve",
          "company_name": null,
          "demographics": {
            "gender": "MALE",
            "passport_issued_by_country": null,
            "social_security_number": null,
            "passport_number": null,
            "industry_sector": null,
            "country_of_residence": {
              "three_character_code": "CYP",
              "two_character_code": "CY",
              "id": "181",
              "name": "CYPRUS",
              "alternative_code": null
            },
            "name_day": {
              "month": null,
              "day": null
            },
            "date_of_birth": {
              "month": null,
              "day": null,
              "year": null
            },
            "id_number": "12345689",
            "industry": null,
            "id_issued_by_country": null
          }
        },
        "life_cycle_state": "ACTIVE",
        "number": "ACR000934",
        "id": "57783B71816045088D43BF9363B27630",
        "name": "ACR000934"
      },
      "number": "S60686",
      "type": {
        "id": "D433A85FB6CD4880A1BCEEB1E164EFA4",
        "name": "London",
        "description": "Subscription for London customers",
        "alternative_code": "LND"
      },
      "id": "C97EC80B26C8491D8D5113039F038EFB",
      "first_activated_date": "2016-02-05T09:50:29",
      "rating_state": "PENDING"
    }
  }
}


...