- Created by Former user , last modified on Jul 05, 2017
You are viewing an old version of this page. View the current version.
Compare with Current View Page History
« Previous Version 2 Next »
Available from CRM.COM R6.0.0
This method returns information related with a buy in advance request. A single buy in advance request is returned by each call
Resource URL
Parameters
Name | Type | Description | |||||||||
token | String | The token retrieved from the login method | |||||||||
buy_in_advance_request_identifier (mandatory) | Buy in Advance Request identifier | The identifier of the buy in advance request that should be returned as a result. The allowed buy in advance request 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
Name | Type | Description | |
---|---|---|---|
id | String | The ID of the retrieved buy in advance request | |
number | String | The number of the retrieved buy in advance request | |
duration | Number | The duration that was bough in advance | |
unit_of_time | String | The unit of time that measures the specified duration. The supported values are DAYS, WEEKS, MONTHS or YEARS | |
description | String | A description of the retrieved buy in advance request | |
life_cycle_state | String | The life cycle state of the retrieved buy in advance request. Supported values are EFFECTIVE and CANCELLED | |
billing_state | String | The state of the retrieved buy in advance request in relation to billing. It is calculated dynamically and determines if the specific buy in advance request was already rated or not. The supported values are RATED and NOT_RATED | |
billing_effective_date | Date | The billing effective date of the retrieved buy in advance request, that determines the earliest date that the request can be picked up by the billing engine. | |
rating_state | String | The rating state of the buy in advance request. The supported values are PENDING or COMPLETED Available from CRM.COM R9.0.0 | |
udf_string_1 | String | User Defined Field of type String | |
udf_string_2 | String | User Defined Field of type String | |
udf_string_3 | String | User Defined Field of type String | |
udf_string_4 | String | User Defined Field of type String | |
udf_string_5 | String | User Defined Field of type String | |
udf_string_6 | String | User Defined Field of type String | |
udf_string_7 | String | User Defined Field of type String | |
udf_string_8 | String | User Defined Field of type String | |
udf_float_1 | Float | User Defined Field of type Float | |
udf_float_2 | Float | User Defined Field of type Float | |
udf_float_3 | Float | User Defined Field of type Float | |
udf_float_4 | Float | User Defined Field of type Float | |
udf_date_1 | Date | User Defined Field of type Date | |
udf_date_2 | Date | User Defined Field of type Date | |
udf_date_3 | Date | User Defined Field of type Date | |
udf_date_4 | Date | User Defined Field of type Date | |
subscription | Subscription Object | The subscription that is affected by the retrieved buy in advance request | |
log_information | Log Information Object | The log information of the retrieved buy in advance request | |
services_set | Set of Buy in advance services | A Set of services bought in advance through this request. Applicable only for pre-rated services of prepaid subscriptions. Available from CRM.COM R12.0.0 |
Referred Objects Response Data
Name | Type | Description |
---|---|---|
id | String | The ID of the retrieved subscription |
number | String | The number of the retrieved subscription |
life_cycle_state | String | The life cycle state of the subscription. One of the following values is returned DRAFT, EFFECTIVE, NOT_EFFECTIVE, SHORT_TERM_EFFECTIVE, SHORT_TERM_NOT_EFFECTIVE, IN_RESTING, CANCELLED, REGRETTED, REPLACED, PENDING_VERIFICATION REPLACED life cycle state available from CRM.COM R14.0.0, deprecated in CRM.COM R17.0.0 PENDING_VERIFICATION life cycle state available from CRM.COM R15.0.0 |
first_activated_date | Date | The date that the subscription became effective for the first time (i.e. the date that the first effective period of that subscription started) Available from CRM.COM R9.0.0 |
rating_state | String | The rating state of the retrieved subscription that can be PENDING or COMPLETED Available from CRM.COM R9.0.0 |
accounts_receivable | Accounts receivable object | The accounts receivable owning the subscriptions |
type | Subscription type object | The type of the retrieved subscription |
Referred Objects Response Data
Name | Type | Description |
---|---|---|
id | String | The ID of the retrieved accounts receivable |
number | String | The number of the retrieved accounts receivable |
name | String | The name of the retrieved accounts receivable |
life_cycle_state | String | The life cycle state of the accounts receivable. One of the following values is returned: ACTIVE, SUSPENDED, TERMINATED |
account_owner | Contact information object | The contact information owning the accounts receivable |
Referred Objects Response Data
Name | Type | Description |
---|---|---|
id | String | The ID of the retrieved contact information |
type | String | The type of the retrieved contact information which can be PERSON or COMPANY |
life_cycle_state | String | The lifecycle state of the retrieved contact information which can be MARKETING or FINANCIAL |
name | String | The full name of the retrieved contact information |
first_name | String | The first name of the retrieved contact information |
middle_name | String | The middle name of the retrieved contact information |
last_name | String | The last name of the retrieved contact information |
title | String | The title of the retrieved contact information |
company_name | Sting | The company name of the retrieved contact information |
Demographics Object | The demographics information of the retrieved contact information | |
Company profile object | The company profile of the retrieve contact information |
Referred Objects Response Data
Name | Type | Description |
gender | String | The gender of the retrieved contact information which can be MALE or FEMALE |
id_number | String | The ID number of the retrieved contact information |
id_number_expiration_date | Date | The ID number's expiration date of the retrieved contact information Available from CRM.COM R14.0.0 |
passport_number | String | The passport number of the retrieved contact information |
passport_number_expiration_date | Date | The passport's expiration date of the retrieved contact information Available from CRM.COM R14.0.0 |
social_security_number | String | The social security number of the retrieved contact information |
Date of Birth Object | The date of birth of the retrieved contact information | |
Name Day Object | The name day of the retrieved contact information | |
Country Object | The country of residence of the retrieved contact information | |
Country Object | The ID issued country of retrieved contact information | |
Country Object | The passport issued country of retrieved contact information | |
Industry Object | The industry of retrieved contact information | |
Industry sector Object | The sector of retrieved contact information |
Referred Objects Response Data
Name | Type | Description |
---|---|---|
day | Integer | The day of the retrieved date of birth |
month | Integer | The month of the retrieved date of birth |
year | Integer | The year of the retrieved date of birth |
Name | Type | Description |
---|---|---|
day | Integer | The day of the retrieved name day |
month | Integer | The month of the retrieved name day |
Name | Type | Description |
---|---|---|
id | String | The id of the retrieved country |
name | String | The name of the retrieved country |
alternative_code | String | The alternative code of the retrieved country |
dialing_code | String | The dialing code of the retrieved country Available from CRM.COM R15.1.0 |
two_character_code | String | The two character code of the retrieved country |
three_character_code | String | The three character code of the retrieved country |
country_flag | Image Object | The flag of the retrieved country Available from CRM.COM R15.1.0 |
Referred Objects Response Data
Name | Type | Description |
---|---|---|
id | String | The ID of the retrieved country flag |
file | File Object | The information of the attached file |
Referred Objects Response Data
Name | Type | Description |
---|---|---|
file_name | String | The name of the file |
file_content_url | String | The url that can be used to access the actual content of the file |
file_mime_type | String | The mime type of the attached file |
Name | Type | Description |
---|---|---|
id | String | The id of the retrieved industry |
name | String | The name of the retrieved industry |
code | String | The code of the retrieved industry |
Name | Type | Description |
---|---|---|
id | String | The id of the retrieved industry sector |
name | String | The name of the retrieved industry sector |
alternative_code | String | The alternative code of the retrieved industry sector |
Name | Type | Description |
profile_year | Number | The profile year of the retrieved contact information |
annual_turnover | Number | The annual turnover of the retrieved contact information |
established_date | Date | The established date of the retrieved contact information |
number_of_employees | Number | The number of employees of the retrieved contact information |
registration_number | String | The registration number of the retrieved contact information |
vat_registration_number | String | The vat registration number of the retrieved contact information |
vat_registered_by | String | The vat registration by of the retrieved contact information |
vat_registration_date | Date | The vat registration date of the retrieved contact information |
tax_reference_number | String | The tax referenece number of the retrieved contact information |
Country Object | The country of residence of the retrieved contact information | |
Industry Object | The industry of retrieved contact information | |
Industry sector Object | The sector of retrieved contact information |
Referred Objects Response Data
Name | Type | Description |
---|---|---|
id | String | The id of the retrieved country |
name | String | The name of the retrieved country |
alternative_code | String | The alternative code of the retrieved country |
dialing_code | String | The dialing code of the retrieved country Available from CRM.COM R15.1.0 |
two_character_code | String | The two character code of the retrieved country |
three_character_code | String | The three character code of the retrieved country |
country_flag | Image Object | The flag of the retrieved country Available from CRM.COM R15.1.0 |
Referred Objects Response Data
Name | Type | Description |
---|---|---|
id | String | The ID of the retrieved country flag |
file | File Object | The information of the attached file |
Referred Objects Response Data
Name | Type | Description |
---|---|---|
file_name | String | The name of the file |
file_content_url | String | The url that can be used to access the actual content of the file |
file_mime_type | String | The mime type of the attached file |
Name | Type | Description |
---|---|---|
id | String | The id of the retrieved industry |
name | String | The name of the retrieved industry |
code | String | The code of the retrieved industry |
Name | Type | Description |
---|---|---|
id | String | The id of the retrieved industry sector |
name | String | The name of the retrieved industry sector |
alternative_code | String | The alternative code of the retrieved industry sector |
Name | Type | Description |
---|---|---|
id | String | The ID of the retrieved subscription type |
name | String | The name of the retrieved subscription type |
alternative_code | String | The alternative code of the retrieved subscription type |
description | String | A description of the retrieved subscription type |
classification | String | The classification of the retrieved subscription type, Flexible or Package Available from CRM.COM R14.0.0 Deprecated from CRM.COM R17.0.0 |
Name | Type | Description |
created_date | Date | The date that the retrieved record was created |
updated_date | Date | The last date that the retrieved record was updated |
Unit Object | The unit that created the retrieved record From CRM.COM R14.1.0 and onward, group_name and community_name attributes will be returned as empty, if the related legacy compatibility setting is disabled Deprecated from CRM.COM R18.0.0 | |
Unit Object | The unit that created the retrieved record From CRM.COM R14.1.0 and onward, group_name and community_name attributes will be returned as empty, if the related legacy compatibility setting is disabled Available from CRM.COM R18.0.0 | |
User Object | The user that created the retrieved record From CRM.COM R14.1.0 and onward, person_name and email attributes will be returned as empty, if the related legacy compatibility setting is disabled | |
Unit Object | The last unit that updated the retrieved record From CRM.COM R14.1.0 and onward, group_name and community_name attributes will be returned as empty, if the related legacy compatibility setting is disabled Deprecated from CRM.COM R18.0.0 | |
Unit Object | The last unit that updated the retrieved record Available from CRM.COM R18.0.0 | |
User Object | The last user that updated the retrieved record From CRM.COM R14.1.0 and onward, person_name and email attributes will be returned as empty, if the related legacy compatibility setting is disabled |
Referred Objects Response Data
Name | Type | Description |
---|---|---|
id | String | The ID of the retrieved unit |
name | String | The name of the retrieved unit |
group_name | String | The name of the group that the retrieved unit belongs to |
community_name | String | The name of the community that the retrieved unit belongs to |
alternative_code | String | The alternative code of the retrieved unit |
description | String | The description of the retrieved unit |
Name | Type | Description |
---|---|---|
id | String | The ID of the retrieved business unit |
name | String | The name of the retrieved business unit |
code | String | The code of the retrieved business unit |
unified_code | String | The unified code of the retrieved business unit |
description | String | The description of the retrieved business unit |
parent_business_unit_name | String | The name of the parent business unit that the retrieved business unit belongs to |
Name | Type | Description |
---|---|---|
id | String | The ID of the retrieved user |
username | String | The user name of the retrieved user |
person_name | String | The full name of the retrieved user |
String | The email of the retrieved user |
Name | Type | Description |
---|---|---|
id | String | The ID of the retrieved buy in advance request service |
service | Product object | The product which is related with the retrieved prepaid pre-rated service |
Referred Objects Response Data
Name | Type | Description |
---|---|---|
Id | String | The ID of the product |
code | String | The code of product |
alternative_code | String | The alternative code of product |
description | String | The description of product |
priority_level | Integer | The priority level of the product Available from CRM.COM R12.3.0 |
global_rate | Global Rate Object | The global rate of the retrieved product Available from CRM.COM R15.0.0 |
product_type | Product type object | The type of the product |
Referred Objects Response Data
Name | Type | Description |
---|---|---|
Id | String | The ID of the retrieved product type |
name | String | The Name of the retrieved product type |
alternative_code | String | The Alternative Code of the retrieved product type |
description | String | The Description of the retrieved product type |
classification | String | The Classification of the retrieved product type which can be SERVICES or PHYSICALGOODS |
service_type | String | The Service Type of the retrieved product type which can be TERMED, USAGE, ONETIME or EXPENSE |
physical_good_type | String | The physical Good Type of the retrieved product type which can be TRACEABLE or NONTRACEABLE |
composition_method | String | The Composition Method of the retrieved product type which can be FLAT, FLEXIBLEBUNDLE or FIXEDBUNDLE |
used_for_provisioning | Boolean | The flag shows if the retrieved product type is used for provisioning |
udr_type | Usage Detail Record Type | The UDR type related with the product type. This is applicable only if the product type is classified as SERVICES and the service type is set to USAGE |
meter_reading_type | Meter Reading Type | The Meter Reading type related with the product type. This is applicable only for traceable physical goods Available from CRM.COM R14.0.0 |
Referred Objects Response Data
Name | Type | Description |
---|---|---|
Id | String | The ID of the retrieved usage detail record type |
name | String | The Name of the retrieved usage detail record type |
alternative_code | String | The Alternative Code of the retrieved usage detail record type |
description | String | The Description of the retrieved usage detail record type |
unit_of_measurement | String | The Unit of measurement of the retrieved usage detail record type |
Referred Objects Response Data
Name | Type | Description |
id | String | The identifier of the Unit of measurement |
name | String | The name of the Unit of measurement |
description | String | The description of the Unit of measurement |
alternative_code | String | The alternative code of the Unit of measurement |
Name | Type | Description |
---|---|---|
Id | String | The ID of the retrieved meter reading type |
name | String | The Name of the retrieved meter reading type |
alternative_code | String | The Alternative Code of the retrieved meter reading type |
classification | String | The Classification of the retrieved meter reading type |
description | String | The Description of the retrieved meter reading type |
unit_of_measurement | String | The Unit of measurement of the retrieved meter reading type |
Referred Objects Response Data
Name | Type | Description |
id | String | The identifier of the Unit of measurement |
name | String | The name of the Unit of measurement |
description | String | The description of the Unit of measurement |
alternative_code | String | The alternative code of the Unit of measurement |
Name | Type | Description |
---|---|---|
id | String | The ID of the retrieved rate |
rate_model | String | The price plan rate model which can be one of the following:
From CRM.COM R17.0.0, QUANTITYANDMATURITYBASED is renamed to QUANTITYANDPERIODBASED |
global_base_amount | Number | The base price of the product in the Global Price Plan |
base_rate_applied_per | String | The value for 'Base Rate Applied per' Available when the rate model is 'Quantity & Quantity Based' and it is a selection between
|
uot | String | The 'UOT' applicable for the rate
Available for one-time services |
time_period | Time Period Object | The period and unit of time for which the base amount is applicable for. This is available only on termed services rates. |
uom | String | The 'UOM' applicable for the rate Available when the product type is of Usage Service Classification |
Referred Objects Response Data
Name | Type | Description |
---|---|---|
time_period_value | Number | The time period value |
time_period_uot | String | The time period unit of time. The supported values are the following: MINUTES, HOURS, DAYS, WEEKS, MONTHS, YEARS |
Examples
HTTP Method: GET
Request:
Response:
{ "udf_float_1": null, "udf_float_2": null, "udf_float_3": null, "udf_float_4": null, "number": "13", "billing_effective_date": "2015-03-10T18:58:42", "udf_string_1": null, "udf_string_2": null, "billing_state": "NOT_RATED", "udf_string_3": null, "udf_string_4": null, "udf_string_5": null, "udf_string_6": null, "udf_string_7": null, "udf_string_8": null, "duration": 87, "id": "90A52D7CF4B147F3A4D1740003B9B0D4", "subscription": { "life_cycle_state": "EFFECTIVE", "accounts_receivable": { "account_owner": { "last_name": "Vrikkis", "middle_name": null, "life_cycle_state": "FINANCIAL", "company_profile": null, "title": "Mr", "first_name": "Nikos", "type": "PERSON", "id": "E129EFE1236D24644350B8A263ECC23D", "name": "Nikos Vrikkis", "company_name": null, "demographics": { "gender": "MALE", "passport_issued_by_country": null, "social_security_number": "5467357", "passport_number": "54673457543", "industry_sector": null, "country_of_residence": { "id": "237", "name": "JAPAN" }, "name_day": { "month": null, "day": null }, "date_of_birth": { "month": null, "day": null, "year": null }, "id_number": "835667", "industry": null, "id_issued_by_country": null } }, "life_cycle_state": "ACTIVE", "number": "79", "id": "A59E791DCF07FC9D96CD4BA4DAFAE381", "name": "Nikos Vrikkis" }, "number": "S60055", "type": { "id": "6BB2B984CC9309775D06650C7493A836", "name": "Normal Subscription", "description": null, "alternative_code": "ST" }, "id": "A60B45D48F24CE3C1099FEB5D4FCEC2E" }, "udf_date_1": null, "udf_date_2": null, "udf_date_3": null, "udf_date_4": null, "log_information": { "updated_date": "2015-03-10T18:59:38", "created_date": "2015-03-10T18:54:37", "created_by_unit": { "community_name": "Main Community", "id": "48305F8849E3C18B227C5BE3A27BA6DF", "name": "Admin Unit", "group_name": "Main Group", "description": "r1", "alternative_code": "MG" }, "updated_by_unit": { "community_name": "Main Community", "id": "48305F8849E3C18B227C5BE3A27BA6DF", "name": "Admin Unit", "group_name": "Main Group", "description": "r1", "alternative_code": "MG" }, "created_by_user": { "person_name": "mpadministrator", "username": "mpadministrator", "id": "1", "email": "mp@ministrator.com" }, "updated_by_user": { "person_name": "mpadministrator", "username": "mpadministrator", "id": "1", "email": "mp@ministrator.com" } }, "life_cycle_state": "EFFECTIVE", "unit_of_time": "DAYS", "description": "test desc 2" }
HTTP Method: GET
Request:
Response:
{ "data": { "unit_of_time": "MONTHS", "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": "2017-02-21T11:27:18", "updated_date": "2017-02-21T13:17:32", "updated_by_user": { "person_name": "MPAdministrator", "id": "1", "email": "dev@crm.com", "username": "MPAdministrator" }, "created_by_user": { "person_name": "MPAdministrator", "id": "1", "email": "dev@crm.com", "username": "MPAdministrator" } }, "services_set": [ { "service": { "code": "Movies 1", "product_type": { "service_type": "TERMED", "used_for_provisioning": true, "alternative_code": "AS", "composition_method": "FLAT", "name": "Additional Services", "description": null, "id": "C8321F0BCA8A4051857BC35CEEE41555", "classification": "SERVICES", "physical_good_type": null }, "alternative_code": "M1", "description": "Movies 1", "id": "571C10876AF840088372A94A14D0A02C" }, "id": "AEFE9C62523A41498C1255EB2D15143E" }, { "service": { "code": "Sports 1", "product_type": { "service_type": "TERMED", "used_for_provisioning": true, "alternative_code": "AS", "composition_method": "FLAT", "name": "Additional Services", "description": null, "id": "C8321F0BCA8A4051857BC35CEEE41555", "classification": "SERVICES", "physical_good_type": null }, "alternative_code": "S1", "description": "Sports 1", "id": "02191FFC231D4FBD844D0BB66EBAB14B" }, "id": "E4077D4300EB4E36B094B038B0121A3A" } ], "description": null, "rating_state": "PENDING", "subscription": { "number": "S0000007944", "first_activated_date": "2017-02-21T11:27:11", "rating_state": "PENDING", "accounts_receivable": { "number": "ACR0000007951", "name": "ACR0000007951", "id": "0F511841B22B4755BB04832D7A9351AB", "life_cycle_state": "ACTIVE", "account_owner": { "company_profile": null, "company_name": null, "name": "Sub Pre-Rate", "last_name": "Pre-Rate", "id": "AE8C8565D90B4FCDA2A74CD7F60D13E5", "life_cycle_state": "FINANCIAL", "middle_name": null, "title": null, "type": "PERSON", "first_name": "Sub", "demographics": { "name_day": { "month": null, "day": null }, "id_number": null, "gender": null, "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 } } }, "id": "BD703F144E76463ABCF0AD22CA30ECC0", "life_cycle_state": "EFFECTIVE", "type": { "alternative_code": "Prepaid Pre-rate", "name": "Prepaid Pre-rate", "description": null, "id": "CC1AA5B0D9F24FD083572E70BA27CE90" } }, "udf_date_2": null, "udf_date_1": null, "udf_date_4": null, "udf_date_3": null, "duration": 1, "number": "45", "udf_float_3": null, "udf_float_4": null, "billing_state": "NOT_RATED", "id": "9AFE71B81BDE4F52B683A6420A3410DE", "udf_float_1": null, "udf_float_2": null, "udf_string_2": null, "udf_string_3": null, "udf_string_4": null, "udf_string_5": null, "udf_string_1": null, "life_cycle_state": "EFFECTIVE", "billing_effective_date": "2017-02-21T11:27:18", "udf_string_6": null, "udf_string_7": null, "udf_string_8": null }, "status": { "code": "OK", "description": "", "message": "" } }
- No labels