Versions Compared

Key

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

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...


Excerpt

This method is setting an Effective subscription in short-term deactivation period. The method can be applied on a single subscription only

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:

Name

Type

Description

id 

(semi-optional)

String

The ID of subscription

number 

(semi-optional)

String

The number of subscription


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


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:

Name

Type

Description

id

(semi-optional)

String

The ID of the subscription action type

name

(semi-optional)

String

The name of the subscription action type

alternative_code

(semi-optional)

String

The alternative code of  the subscription action type


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:

Name

Type

Description

id

(semi-optional)

String

The ID of the subscription sub action type

name

(semi-optional)

String

The name of the subscription sub action

type

alternative_code

(semi-optional)

String

The alternative code of  the subscription sub action type

TipDeprecated from CRM.COM R15

type

alternative_code

(semi-optional)

String

The alternative code of  the subscription sub action type


Tip

Deprecated from CRM.COM R15.0.0


classification_identifier

(optional)

Subscription Action Classification Identifier

The subscription action's classification. The allowed subscription action classification identifier fields are the following:

Include Page
V4:subscription_action_classification_identifier
V4:subscription_action_classification_identifier

Tip

Available from CRM.COM R18.0.0


end_short_term_deactivation_on

(semi-optional)

DateThe date that the short term deactivation period should end. End short term deactivation on date is mandatory unless end short term deactivation after specific days is specified. It is not allowed to specify both information

end_short_term_deactivation_after_specific_days

(semi-optional)

NumberIt defines the date that the short term deactivation period should end, based on the date that the subscription will go into short term deactivation and the specified number of days. End short term deactivation after specific days is mandatory unless end short term deactivation on date is specified. It is not allowed to specify both information

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 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 unit identifier fields are the following:

Include Page
V4:unit_identifier
V4:unit_identifier

Tip

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

 


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 meet the business rules.

Tip

Available from CRM.COM R15.0.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

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


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
language
languagejavascript
themeConfluence
javascriptlinenumberstrue
 {
  "token":"2D5C85BD2B0B4131B3F754757BFADA5A",
  "subscription_identifier":{"number":"S60113"},
  "end_short_term_deactivation_after_specific_days":3,
}


Response:

Code Block
languagejavascript
themeConfluencelanguagejavascript
linenumberstrue
 
      {
    "status":
    {
        "message": null,
        "description": null,
        "code": "OK"
    },
    "data":
    {
        "scheduled_date": "2015-04-24T14:37:06",
        "action_type": null,
        "submitted_on": "2015-04-24T14:37:06",
        "sub_action_type": null,
        "business_classification_code": "SHORT_TERM_DEACTIVATION",
        "number": "955",
        "executed_on": "2015-04-24T14:37:08",
        "life_cycle_state": "EXECUTED",
        "performed_by":
        {
            "person_name": "Marios Lannister",
            "username": "MPAdministrator",
            "id": "1"
        },
        "behavior_code": "SHORT_TERM_DEACTIVATION",
        "submitted_by":
        {
            "person_name": "Marios Lannister",
            "username": "MPAdministrator",
            "id": "1"
        },
        "id": "8C7BDEB3BBB5462887FEDEB626225DD4",
        "subscription":
        {
            "accounts_receivable":
            {
                "account_owner":
                {
                    "last_name": "Pickman",
                    "life_cycle_state": "FINANCIAL",
                    "middle_name": "Li",
                    "company_profile": null,
                    "title": "Mr",
                    "type": "PERSON",
                    "first_name": "Jessie",
                    "name": "Jessie Pickman",
                    "id": "F9A629E466B1EF473CECD46F2A4D63F3",
                    "company_name": null,
                    "demographics":
                    {
                        "gender": "MALE",
                        "passport_issued_by_country":
                        {
                            "name": "UNITED STATES",
                            "id": "127"
                        },
                        "passport_number": "54567432",
                        "social_security_number": "434567",
                        "country_of_residence":
                        {
                            "name": "UNITED STATES",
                            "id": "127"
                        },
                        "industry_sector":
                        {
                            "name": "FINANCIALS",
                            "id": "03EA93890F51506ABD9E994CD826EC78",
                            "alternative_code": "FIN"
                        },
                        "date_of_birth":
                        {
                            "month": 11,
                            "day": 1,
                            "year": 1988
                        },
                        "name_day":
                        {
                            "month": 4,
                            "day": 2
                        },
                        "id_number": "983452",
                        "id_issued_by_country":
                        {
                            "name": "UNITED STATES",
                            "id": "127"
                        },
                        "industry":
                        {
                            "name": "Marketing",
                            "id": "31BC2070C79EAE5455BFAD41599C5190",
                            "code": "MK"
                        }
                    }
                },
                "life_cycle_state": "ACTIVE",
                "number": "170",
                "name": "Jessie01",
                "id": "903B55B02EAC74FE25E12F8786D44011"
            },
            "life_cycle_state": "SHORT_TERM_NOT_EFFECTIVE",
            "number": "S60113",
            "type":
            {
                "udf_float_1": null,
                "udf_float_2": null,
                "udf_date_1": null,
                "udf_float_3": null,
                "udf_date_2": null,
                "udf_float_4": null,
                "udf_date_3": null,
                "udf_date_4": null,
                "udf_string_1": null,
                "name": "United Kingdom",
                "udf_string_2": null,
                "udf_string_3": null,
                "udf_string_4": null,
                "udf_string_5": null,
                "udf_string_6": null,
                "log_information":
                {
                    "updated_date": "2015-02-20T16:40:42",
                    "created_by_unit":
                    {
                        "name": "Admin Unit",
                        "id": "48305F8849E3C18B227C5BE3A27BA6DF",
                        "description": "r1",
                        "alternative_code": "MG"
                    },
                    "created_date": "2014-06-25T15:44:04",
                    "updated_by_unit":
                    {
                        "name": "Admin Unit",
                        "id": "48305F8849E3C18B227C5BE3A27BA6DF",
                        "description": "r1",
                        "alternative_code": "MG"
                    },
                    "updated_by_user":
                    {
                        "person_name": "g_kountouri",
                        "username": "g_kountouri",
                        "id": "B0CF852BA7364BC6887E00F570903FFD"
                    }
                },
                "udf_string_7": null,
                "udf_string_8": null,
                "id": "1C81FBB1E5D90040F440ECE98D6A368D",
                "description": "United Kingdom",
                "alternative_code": "UK"
            },
            "id": "DD63DE1F000DD453F3780731904D8307"
        },
        "performed_on": "2015-04-24T14:37:06"
    }
}


...

Expand
titleExample 2

HTTP Method: POST

Request:

Body:

Code Block
languagejavascript
themeConfluencelanguagejavascript
linenumberstrue
{
	"token": {{token}},
	"subscription_identifier": {
    	"number"  : "S0000000008"
    },
    "end_short_term_deactivation_after_specific_days": 1,
    "performed_by_unit_identifier": {
    	"alternative_code": "UA"
    }
} 


Response:

Code Block
languagejavascript
themeConfluencelanguagejavascript
linenumberstrue
{
    "data": {
        "performed_by": null,
        "action_type": {
            "alternative_code": "STD",
            "name": "SHORT TERM DEACTIVATION",
            "id": "D715F8BCBEC44F8191DEFE6B27BF9521"
        },
        "transaction_reference_number": null,
        "submitted_by": {
            "person_name": "CRM COM",
            "id": "1",
            "username": "MPAdministrator"
        },
        "executed_on": "2017-09-25T10:19:46",
        "life_cycle_state": "EXECUTED",
        "subscription": {
            "number": "S0000000008",
            "first_activated_date": "2016-02-09T13:15:55",
            "rating_state": "PENDING",
            "accounts_receivable": {
                "number": "ACR0000000009",
                "name": "NOVO CASA FOR PREPAID",
                "id": "67432618BF6B4D8099452E750A239750",
                "life_cycle_state": "ACTIVE",
                "account_owner": {
                    "company_profile": {
                        "tax_reference_number": "av123443556",
                        "registered_in_country": null,
                        "number_of_employees": null,
                        "annual_turnover": null,
                        "profile_year": 2000,
                        "registration_number": "sda21w123123",
                        "vat_registration_number": "2312321321",
                        "industry_sector": null,
                        "industry": null,
                        "established_date": null,
                        "vat_registered_by": null,
                        "vat_registration_date": null
                    },
                    "company_name": "NOVO CASA",
                    "name": "NOVO CASA",
                    "last_name": null,
                    "id": "76F9993673024885966C7B0B4DA20E29",
                    "life_cycle_state": "FINANCIAL",
                    "middle_name": null,
                    "title": null,
                    "type": "COMPANY",
                    "first_name": null,
                    "demographics": null
                }
            },
            "id": "57C9FA9E11DF47EAA6D9B0BD8FDD6280",
            "life_cycle_state": "SHORT_TERM_NOT_EFFECTIVE",
            "type": {
                "alternative_code": "normalsub",
                "name": "Normal",
                "description": null,
                "id": "D1BAE6454A2248189EBCD7ADD3B4B65F"
            }
        },
        "scheduled_date": "2017-09-25T10:19:46",
        "performed_on": null,
        "sub_action_type": {
            "alternative_code": "STD",
            "name": "SHORT TERM DEACTIVATION",
            "id": "41B317CB207D4D4BBE97D1B454852EED"
        },
        "business_classification_code": "SHORT_TERM_DEACTIVATION",
        "number": "24295",
        "submitted_on": "2017-09-25T10:19:46",
        "id": "C6C78EFA54B24EE48B378949A4556116",
        "job": null,
        "behavior_code": "SHORT_TERM_DEACTIVATION",
        "performed_by_unit": {
            "alternative_code": "UA",
            "group_name": "GroupA",
            "community_name": "CommunityA",
            "name": "Unit A",
            "description": null,
            "id": "72CD6EBE88E541CA879BBA9ECBA11E68"
        }
    },
    "status": {
        "code": "OK",
        "description": "",
        "message": ""
    }
}


...