Versions Compared

Key

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

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

It swaps one or multiple installed items belonging to a specific subscription with other installed items

Resource URL

Parameters

...

Name

...

Type

...

Description

...

token

...

String

...

The token retrieved from the login method

...

subscription_identifier

(semi-optional)

...

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

...

Tip

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

...

accounts_receivable_identifier

(semi-optional)

...

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

...

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)

...

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

...

sub_action_type_identifier

(optional)

...

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

...

job_identifier

(optional)

...

The Job for which the subscription action is performed. The allowed job identifier fields are the following:

...

Tip

Available from CRM.COM R9.0.0

...

transaction_reference_number

(optional)

...

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)

...

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

...

performed_by_unit_identifier

(optional)

...


Excerpt

It swaps one or multiple installed items belonging to a specific subscription with other installed items

Resource URL

Parameters

...

 

Restrictions

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

Response Data

...

Examples

...

titleExample 1

HTTP Method: POST

 

Request:

Body:

...

themeConfluence
languagejavascript
linenumberstrue

...

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:

unit

subscription_identifier
V4:

unit

subscription_identifier

Tip
Available from

For releases prior to CRM.COM

R14

R13.0.0

performed_on

(

the subscription_identifier is mandatory


accounts_receivable_identifier

(semi-optional)

Date
Accounts Receivable Identifier

The

date that the action was actually performed

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

installed_items_swap_set

(mandatory)

Set of subscription installed items swap objectsA set of installed item pairs that should be swapped.

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

...

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:

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


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


job_identifier

(optional)

Job identifier

The Job for which the subscription action is performed. The allowed job identifier fields are the following:

Include Page
V4:job_identifier
V4:job_identifier

Tip

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

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 CRM.COM R18.0.0


performed_on

(optional)

DateThe date that the action was actually performed

require_verification

(optional)

Boolean

Determines whether the Subscription Action will be fulfilled through a Job

Tip

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

installed_items_swap_set

(mandatory)

Set of subscription installed items swap objectsA set of installed item pairs that should be swapped.

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
installed_items_swapping referred objects parameters
installed_items_swapping referred objects parameters
Referred Parameter Objects Data

Include Page
V4:subscription_installed_items_swap_parameter
V4:subscription_installed_items_swap_parameter


Restrictions

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

Response Data

Include Page
V4:subscription_action_short
V4:subscription_action_short

Examples

Expand
titleExample 1

HTTP Method: POST


Request:

Body:

Code Block
languagejavascript
themeConfluence
linenumberstrue
{
    "token":"FFB8A25C40DE45BCA437F01B6D2F1FAF",
    "fields_set":"submitted_by,subscription,sub_action_type,job,action_type",
    "subscription_identifier":{"number":"S60250"},
    "action_type_identifier":{"name":"Swap Installed Item"},
    "sub_action_type_identifier":{"name":"Swap Inst Item"},
    "performed_by_user_identifier":{"username":"JackH"},
    "performed_on":"2014-07-16T05:07:41",
    "installed_items_swap_set":
    [
        {
            "from_installed_item":{"installed_item_identifier":{"serial_number":"smartcard_1_01"}},
            "to_installed_item":{"installed_item_identifier":{"serial_number":"IS000002"}}
        }
    ]
}


Response:

Code Block
languagejavascript
themeConfluence
linenumberstrue
{
  "status": {
    "message": "",
    "description": "",
    "code": "OK"
  },
  "data": {
    "action_type": {
      "id": "72663ADABC6C401EADC825F2540ECD88",
      "name": "Swap Installed Item",
      "alternative_code": "SIP"
    },
    "sub_action_type": {
      "id": "55076C5A73C347CA9A678684825FCA5B",
      "name": "Swap Inst Item",
      "alternative_code": "SII"
    },
    "submitted_by": {
      "person_name": "Marios Lannister",
      "username": "MPAdministrator",
      "id": "1",
      "email": "sakkascy1986@hotmail.com"
    },
    "job": null,
    "subscription": {
      "life_cycle_state": "DRAFT",
      "accounts_receivable": {
        "account_owner": {
          "last_name": "Clark",
          "middle_name": "S.",
          "life_cycle_state": "FINANCIAL",
          "company_profile": null,
          "title": "Mrs",
          "first_name": "Kathy",
          "type": "PERSON",
          "id": "460BB0DB7A4EB61D9D6E3DFEE8566C08",
          "name": "Clark Kathy",
          "company_name": null,
          "demographics": {
            "gender": "FEMALE",
            "passport_issued_by_country": null,
            "social_security_number": "88996633",
            "passport_number": "4564455",
            "industry_sector": null,
            "country_of_residence": {
              "three_character_code": "USA",
              "two_character_code": "US",
              "id": "127",
              "name": "UNITED STATES",
              "alternative_code": null
            },
            "name_day": {
              "month": 1,
              "day": 1
            },
            "date_of_birth": {
              "month": 1,
              "day": 1,
              "year": 1980
            },
            "id_number": "87878000",
            "industry": null,
            "id_issued_by_country": null
          }
        },
        "life_cycle_state": "ACTIVE",
        "number": "191",
        "id": "D64410DDAC580029C9664EAB74ACAC9C",
        "name": "Kat's Main TV Account"
      },
      "number": "S60250",
      "type": {
        "id": "3100B0D56E7C7EADF073C34BCE1E42AF",
        "name": "London2",
        "description": null,
        "alternative_code": "LND2"
      },
      "id": "A521D332281C71FE88C58ACEC78C39BD",
      "first_activated_date": null,
      "rating_state": "PENDING"
    }
  }
}



Expand
titleExample 2

HTTP Method: POST


Request:

Body:

Code Block
languagejavascript
themeConfluence
linenumberstrue
 {
   "token":"{{token}}",
    "subscription_identifier":{
        "number": "S0000009523"
    },
    "installed_items_swap_set":
    [
        {
            "from_installed_item":{"installed_item_identifier":{"serial_number":"Nagra70"}},
            "to_installed_item":{"installed_item_identifier":{"serial_number":"sm_8200_ind_01"}},
            "warranty_coverage_reason":{"name":"Faulty"}
        }
    ]
}


Response:

Code Block
languagejavascript
themeConfluence
linenumberstrue
{
    "data": {
        "performed_by": null,
        "action_type": {
            "alternative_code": "swap_installeditem_action",
            "name": "SWAP INSTALLED ITEM",
            "id": "B0B585AABC93494997B7FA363318DA23"
        },
        "transaction_reference_number": null,
        "submitted_by": {
            "person_name": "CRM COM",
            "id": "1",
            "username": "MPAdministrator"
        },
        "executed_on": "2018-02-13T15:43:36",
        "life_cycle_state": "EXECUTED",
        "subscription": {
            "number": "S0000009523",
            "first_activated_date": "2018-02-13T15:06:00",
            "rating_state": "PENDING",
            "accounts_receivable": {
                "number": "ACR0000013170",
                "name": "ACR0000013170 Test 8200_2",
                "id": "5838C3BFBC504394BEB200EF7DD877C7",
                "life_cycle_state": "ACTIVE",
                "account_owner": {
                    "company_profile": null,
                    "company_name": null,
                    "name": "Test 8200_2",
                    "last_name": "8200_2",
                    "id": "E8116F8B8C424AC3858A236A4D46D404",
                    "life_cycle_state": "FINANCIAL",
                    "middle_name": null,
                    "title": null,
                    "type": "PERSON",
                    "first_name": "Test",
                    "demographics": {
                        "id_number": "8200_2",
                        "gender": null,
                        "country_of_residence": {
                            "alternative_code": "CYP",
                            "three_character_code": "CYP",
                            "name": "CYPRUS",
                            "id": "181",
                            "fromtwo_installedcharacter_itemcode":{"installed_item_identifier":{"serial_number":"smartcard_1_01"}}, "CY"
            "to_installed_item":{"installed_item_identifier":{"serial_number":"IS000002"}}          }     ]
}

Response:

Code Block
themeConfluence
languagejavascript
linenumberstrue
{ },
      "status": {     "message": "",     "description": "",     "codedate_of_birth": {
"OK"   },   "data": {     "action_type": {       "id": "72663ADABC6C401EADC825F2540ECD88",       "namemonth": "Swapnull,
 Installed Item",       "alternative_code": "SIP"     },     "sub_action_type": {       "idyear": "55076C5A73C347CA9A678684825FCA5B"null,
       "name": "Swap Inst Item",       "alternative_code": "SII"     },     "submitted_byday": {null
      "person_name": "Marios Lannister",          "username": "MPAdministrator",       "id": "1", },
       "email": "sakkascy1986@hotmail.com"     },     "job": null,     "subscriptionindustry_sector": {null,
      "life_cycle_state": "DRAFT",       "accounts_receivable": {         "account_owner": {industry": null,
            "last_name": "Clark",           "middlename_nameday": "S.", {
                "life_cycle_state": "FINANCIAL",           "company_profilemonth": null,
          "title": "Mrs",                  "first_nameday": null
"Kathy",           "type": "PERSON",           "id": "460BB0DB7A4EB61D9D6E3DFEE8566C08" },
          "name": "Clark Kathy",              "company_namepassport_number_expiration_date": null,
          "demographics": {             "genderid_number_expiration_date": "FEMALE"null,

           "passport_issued_by_country": null,             "socialpassport_security_number": "88996633"null,
            "passport_number": "4564455",              "industrysocial_security_sectornumber": null,
            "country_of_residence": {               "threeid_issued_characterby_codecountry": "USA"null,
              "two_character_code": "US",           "passport_issued_by_country": null
  "id": "127",               "name": "UNITED STATES", }
               "alternative_code": null }
            },
            "name_dayid": {
"626CAFAD293C49AFAECC576F846DCBBD",
             "monthlife_cycle_state": 1"EFFECTIVE",
              "daytype": 1 {
                 }"alternative_code": "normalsub",
            "date_of_birth    "name": {"Normal",
                "monthdescription": 1null,
                "dayid": 1"D1BAE6454A2248189EBCD7ADD3B4B65F",
                "yearclassification": 1980"FLEXIBLE"
            },
        },
        "idscheduled_numberdate": "878780002018-02-13T15:43:29",
   
        "industryperformed_on": null,

           "idsub_issuedaction_by_countrytype": null{
          }     "alternative_code": "swap_installeditem_sub_action",
   },         "life_cycle_statename": "ACTIVESWAP INSTALLED ITEM",
            "numberid": "19151629DFD3CC64BE5BF6BE2774919C589",
        "id": "D64410DDAC580029C9664EAB74ACAC9C"},
        "namebusiness_classification_code": "Kat's Main TV Account""SWAP_INSTALLED_ITEM",
         },"number": "27441",
        "numbersubmitted_on": "S602502018-02-13T15:43:29",
        "typeid": {"F1722456021A4EE1B324E240F2AB7445",
        "idjob": "3100B0D56E7C7EADF073C34BCE1E42AF"null,
        "namebehavior_code": "London2SWAP_INSTALLED_ITEM",
        "descriptionperformed_by_unit": null,
    },
    "alternative_codestatus": "LND2"{
      },       "idcode": "A521D332281C71FE88C58ACEC78C39BDOK",
        "first_activated_datedescription": null"",
        "rating_statemessage": "PENDING"
    }   }
}