Tip |
---|
Available from CRM.COM R11.0.0 |
Table of Contents | ||
---|---|---|
|
GET jobs/replace_physical_goods/show
This method returns information related with a job of fulfillment scope Replace Physical Goods. Single job is returned by each call
Resource URL
Parameters
...
Name
...
Type
...
Description
...
token
...
String
...
The token retrieved from the login method
...
(mandatory)
...
Job identifier
The identifier of the job that should be returned as a result. The allowed jobs identifier fields are the following:
...
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
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
Expand | ||
---|---|---|
| ||
HTTP Method: GET Request: Response:
|
POST jobs/replace_physical_goods/create
This method creates a job of fulfillment scope Replace Physical Goods. Single job can be created by each call. Only customer jobs can be created through this method.
Resource URL
Parameters
...
Name
...
Type
...
Description
...
token
...
String
...
The token retrieved from the login method
...
type_identifier
(mandatory)
...
The identifier of the type of the new job. The allowed job type identifier fields are the following:
...
status_identifier
(optional)
...
The identifier of the status of the new job. If not specified then the default one will be used. The allowed job status identifier fields are the following:
...
category_identifier
(optional)
...
The identifier of the category of the new job. The allowed job category identifier fields are the following:
...
(mandatory)
...
The identifier of the new job accounts receivable. The allowed accounts receivable identifier fields are the following:
...
contact_email
(optional)
...
The email of the customer related with the job, which will be used in order to communicate the job
...
contact_phone
(optional)
...
The phone of the customer related with the job, which will be used in order to communicate the job
...
description
(optional)
...
notes
(optional)
...
start_date
(optional)
...
owned_by_group_identifier
(optional)
...
The owned by group information of the job. The allowed group identifier fields are the following:
...
privacy_level_identifier
(optional)
...
The privacy level of the job. The allowed privacy level identifier fields are the following:
...
The service request related with the job. The allowed service request identifier fields are the following:
...
udf_string_1
(optional)
...
User Defined Field of type String
...
udf_string_2
(optional)
...
User Defined Field of type String
...
udf_string_3
(optional)
...
User Defined Field of type String
...
udf_string_4
(optional)
...
User Defined Field of type String
...
udf_string_5
(optional)
...
User Defined Field of type String
...
udf_string_6
(optional)
...
User Defined Field of type String
...
udf_string_7
(optional)
...
User Defined Field of type String
...
udf_string_8
(optional)
...
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
...
expected_completion_date
(semi-optional)
...
estimated_completion_time
(semi-optional)
...
The billing terms of the job to be created. This information is applicable and mandatory only if the job is billable
...
requested_replaced_physical_goods_set
(mandatory)
...
The requested physical goods (installed items) that will be replaced as part of fulfilling this job. The traceable physical goods are filtered based on the traceable physical goods which are owned by the account owner and are not used in any subscriptions
...
(optional)
...
A list of physical goods (products only) that are requested by the customer, and should be delivered as part of fulfilling the ordered job. The requested physical goods are filtered based on the selected job type. Mandatory physical goods are added automatically.
...
(optional)
...
A list of requested expenses that are requested by the customer and should be delivered as part of fulfilling the ordered job. The requested expenses are filtered based on the selected job type. Mandatory expenses are added automatically
...
requested_activity_services_set
(optional)
...
A list of one time services that are requested by the customer and should be delivered by a scheduling and performing a specific activity. The requested activity services are defined by specifying the type of the activity and the activity services that should be performed. The activity types are filtered based on the selected job type. The activity services are filtered based on the selected activity type. Mandatory activity types and services are added automatically.
...
fields_set
(optional)
...
A list of fields that should be included in the results. If not specified then all the available fields will be returned
...
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
Expand | ||
---|---|---|
| ||
HTTP Method: POST Request: Body: {
"token":"4A2E69938DFE42DA8BB16C9D9247B00C",
"type_identifier":{"name":"Replace Physical Goods"},
"accounts_receivable_identifier":{"number":"ACR0000000266"},
"location_identifier":{"type":"HOME"},
"contact_email":"m_michael@crm.com",
"billing_terms":
{
"billing_term_scheme_identifier":{"id":"F3057AAF86104FF591C4C3131E731807"},
"price_plan_identifier":{"id":"E2858AC591A04CF58912A9636787139C"}
},
"assigned_to":
{
"user_identifier":{"username":"MPAdministrator"}
},
"requested_replaced_physical_goods_set":
[
{
"installed_item_identifier":{"serial_number":"modem_replace_003"}
}
]
} Response: {
"data":
{
"notes": null,
"contact_phone": null,
"log_information":
{
"created_by_unit":
{
"alternative_code": "adminunit",
"group_name": "Main Group",
"community_name": "Community",
"name": "Admin Unit",
"description": "admin unit",
"id": "1"
},
"updated_by_unit":
{
"alternative_code": "adminunit",
"group_name": "Main Group",
"community_name": "Community",
"name": "Admin Unit",
"description": "admin unit",
"id": "1"
},
"created_date": "2016-08-24T09:39:51",
"updated_date": "2016-08-24T09:40:12",
"updated_by_user":
{
"person_name": "CRM COM",
"id": "1",
"username": "MPAdministrator"
},
"created_by_user":
{
"person_name": "CRM COM",
"id": "1",
"username": "MPAdministrator"
}
},
"requested_physical_goods_set":
[
],
"type":
{
"alternative_code": "RPG",
"name": "Replace Physical Goods",
"fulfillment_scope": "REPLACE_PHYSICAL_GOODS",
"description": null,
"fulfillment_method": "BASED_ON_ORDERED_ITEMS",
"id": "E859291E838947F58C09BD0799E3613D"
},
"number": "J00000418",
"id": "B26FC357BDFD46349EB4F136235A2204",
"actual_completed_date": null,
"requested_expenses_set":
[
],
"udf_string_2": null,
"udf_string_3": null,
"udf_string_4": null,
"udf_string_5": null,
"privacy_level": null,
"udf_string_1": null,
"life_cycle_state": "DRAFT",
"activities_set":
[
],
"physical_goods_set":
[
],
"time_overdue":
{
"time_period_uot": null,
"time_period_value": null
},
"udf_string_6": null,
"udf_string_7": null,
"udf_string_8": null,
"status":
{
"alternative_code": "IP",
"name": "Draft",
"description": null,
"id": "C9AFA1C35F628CB2B279C98D4CA45C5E",
"life_cycle_state": "DRAFT"
},
"owned_by_group":
{
"alternative_code": "MG",
"community_name": "Community",
"name": "Main Group",
"description": "Main Group",
"id": "1"
},
"description": null,
"rating_state": "PENDING",
"expenses_set":
[
],
"udf_date_2": null,
"udf_date_1": null,
"udf_date_4": null,
"contact_email": "m_michael@crm.com",
"udf_date_3": null,
"physical_goods_replacements_set":
[
],
"udf_float_3": null,
"udf_float_4": null,
"estimated_completion_time":
{
"time_period_uot": "HOURS",
"time_period_value": 10
},
"service_request": null,
"udf_float_1": null,
"billing_terms":
{
"billing_frequency": null,
"billing_term_scheme":
{
"code": "PJBTS",
"name": "P Job Billing Term Scheme",
"billing_type": "NORMAL",
"id": "F3057AAF86104FF591C4C3131E731807",
"life_cycle_state": "EFFECTIVE",
"classification": "JOBS"
},
"allowed_cancel_date": null,
"billing_cycle_day": null,
"agreement_date": "2016-08-24T00:00:00",
"effective_date": "2016-08-24T00:00:00",
"price_plan":
{
"code": "MPP",
"name": "Main Price Plan",
"effective_date": "2016-07-21T00:00:00",
"description": "Main Price Plan",
"id": "E2858AC591A04CF58912A9636787139C",
"type": "BASE",
"expiration_date": null
},
"id": "7C7AE4F608B0406497F056E4E422DE5A",
"expiration_date": null,
"binding_information": null
},
"udf_float_2": null,
"start_date": "2016-08-24T09:39:51",
"assigned_to":
{
"unit":
{
"alternative_code": "adminunit",
"group_name": "Main Group",
"community_name": "Community",
"name": "Admin Unit",
"description": "admin unit",
"id": "1"
},
"user":
{
"person_name": "CRM COM",
"id": "1",
"email": "dev@crm.com",
"username": "MPAdministrator"
}
},
"accounts_receivable":
{
"number": "ACR0000000266",
"name": "ACR0000000266 Polen Mayiar",
"id": "1E3E7AC4D2FA49458E2FFDE6912B7728",
"life_cycle_state": "ACTIVE",
"account_owner":
{
"company_profile": null,
"company_name": null,
"name": "Polen Mayiar",
"last_name": "Mayiar",
"id": "1E66220195AF49A1BE8B0BDFB92F6D91",
"life_cycle_state": "FINANCIAL",
"middle_name": null,
"title": null,
"type": "PERSON",
"first_name": "Polen",
"demographics":
{
"name_day":
{
"month": null,
"day": null
},
"id_number": "582649",
"gender": "MALE",
"country_of_residence":
{
"alternative_code": "CYP",
"three_character_code": "CYP",
"name": "CYPRUS",
"id": "181",
"two_character_code": "CY"
},
"date_of_birth":
{
"month": null,
"year": null,
"day": null
},
"industry_sector": null,
"passport_number": null,
"industry": null,
"social_security_number": null,
"id_issued_by_country": null,
"passport_issued_by_country": null
}
}
},
"time_to_completion":
{
"time_period_uot": "HOURS",
"time_period_value": 9.994166666666667
},
"requested_activity_services_set":
[
],
"requested_physical_goods_replacement_set":
[
{
"installed_item":
{
"product":
{
"code": "Modem",
"product_type":
{
"service_type": null,
"used_for_provisioning": true,
"alternative_code": "Physical Good",
"composition_method": "FLAT",
"name": "Physical Good",
"description": null,
"id": "5B6DAF4AD7C94C4D9C3B49950E10B256",
"classification": "PHYSICALGOODS",
"physical_good_type": "TRACEABLE"
},
"alternative_code": "M_2",
"description": "Modem",
"id": "01BEEA0C9B7246E79CAF6E569A8C6ECF"
},
"alternative_code": "modem_replace_003",
"serial_number": "modem_replace_003",
"id": "454268B57DEF430F8ED20848FA63EA9C",
"state": "EFFECTIVE"
},
"warranty_expiration_date": "2017-08-24T09:11:02",
"warranty_policy":
{
"number": "1",
"alternative_code": "NSS",
"name": "New Subscription Sales",
"id": "3C6F0E199A1F420BB74EA8EBF0DC0BF4",
"life_cycle_state": "EFFECTIVE"
},
"id": "A15A8A86BFCD46FCA95945EB91C73155"
}
],
"location": null,
"category": null,
"expected_completion_date": "2016-08-24T19:39:51"
},
"status":
{
"code": "OK",
"description": "",
"message": ""
}
} |
POST jobs/replace_physical_goods/update
This method updates jobs of fulfillment scope Replace Physical Goods. Single job can be updated by each call. Fields which are not specified are not updated at all. Fields which are specified as null will be set as null.
Resource URL
Parameters
...
Name
...
Type
...
Description
...
token
...
String
...
The token retrieved from the login method
...
The identifier of the job. The allowed job identifier fields are the following:
...
status_identifier
(optional)
...
The identifier of the status of the new job. The allowed job status identifier fields are the following:
...
category_identifier
(optional)
...
The identifier of the category of the new job. The allowed job category identifier fields are the following:
...
notes
(optional)
...
contact_email
(optional)
...
The email of the customer related with the job, which will be used in order to communicate the job
...
contact_phone
(optional)
...
The phone of the customer related with the job, which will be used in order to communicate the job
...
start_date
(optional)
...
owned_by_group_identifier
(optional)
...
The owned by group information of the job. The allowed group identifier fields are the following:
...
privacy_level_identifier
(optional)
...
The privacy level of the job. The allowed privacy level identifier fields are the following:
...
udf_string_1
(optional)
...
User Defined Field of type String
...
udf_string_2
(optional)
...
User Defined Field of type String
...
udf_string_3
(optional)
...
User Defined Field of type String
...
udf_string_4
(optional)
...
User Defined Field of type String
...
udf_string_5
(optional)
...
User Defined Field of type String
...
udf_string_6
(optional)
...
User Defined Field of type String
...
udf_string_7
(optional)
...
User Defined Field of type String
...
udf_string_8
(optional)
...
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
...
expected_completion_date
(optional)
...
estimated_completion_time
(optional)
...
The billing terms of the retrieved job.This information is applicable if the job is still draft or pending and if the job is billable
...
(optional)
...
The requested physical goods. This information is applicable only if the job is draft or pending
...
requested_replaced_physical_goods_set
(optional)
...
The requested physical goods to be replaced. This information is applicable only if the job is draft or pending
...
(optional)
...
The requested expenses. This information is applicable only if the job is draft or pending
...
requested_activity_services_set
(optional)
...
The requested activity services. This information is applicable only if the job is draft or pending
...
The physical goods that will be provided as part of the retrieved job. This information is applicable only if the job is in progress
...
...
The physical goods that will be replaced as part of the retrieved job. This information is applicable only if the job is in progress
...
A list of one time services which are applied on the retrieved job as expenses. This information is applicable only if the job is in progress
...
fields_set
(optional)
...
A list of fields that should be included in the results. If not specified then all the available fields will be returned
...
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
Expand | ||||
---|---|---|---|---|
| ||||
Panel | ||||
| ||||
|