Available from CRM.COM R6.0.0
GET buy_in_advance_requests/show
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
Examples
GET buy_in_advance_requests/list
This method returns information related with buy in advance requests that were submitted against a specific subscription. Multiple buy in advance requests are returned by each call.
Resource URL
Parameters
Name | Type | Description | |||||||||
token | String | The token retrieved from the login method | |||||||||
subscription_identifier (mandatory) | Subscription Identifier | The identifier of the subscription related with the buy in advance requests that should be returned as a result. The allowed subscription identifier fields are the following:
| |||||||||
fields_set | 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
Examples
POST buy_in_advance_requests/create
This method creates a buy in advance request. A single buy in advance request can be created by each call.
Resource URL
Parameters
Name | Type | Description | ||||||||||
token | String | The token retrieved from the login method | ||||||||||
subscription_identifier (mandatory) | Subscription Identifier | The identifier of the subscription related with the buy in advance request. The allowed subscription identifier fields are the following:
| ||||||||||
duration (mandatory) | Number | The duration that is requested to be bough in advance | ||||||||||
unit_of_time (mandatory) | String | The unit of time that measures the specified duration. The supported values are DAYS, WEEKS, MONTHS or YEARS | ||||||||||
description (optional) | String | A description of the retrieved buy in advance request | ||||||||||
billing_effective_date (optional) | Date | The billing effective date of the buy in advance request, that determines the earliest date that the request can be picked up by the billing engine. If not specified then it is automatically set to the date that the request is submitted | ||||||||||
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 |
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
Examples
POST buy_in_advance_requests/update
This method updates an existing buy in advance request. This method can be used only if the specified buy in advance request is effective and not rated. A single buy in advance request can be update 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 | ||||||||||
buy_in_advance_request_identifier (mandatory) | Buy in Advance Request identifier | The identifier of the buy in advance request that should be updated. The allowed buy in advance request identifier fields are the following:
| ||||||||||
duration (optional) | Number | The duration that is requested to be bough in advance | ||||||||||
unit_of_time (optional) | String | The unit of time that measures the specified duration. The supported values are DAYS, WEEKS, MONTHS or YEARS | ||||||||||
description (optional) | String | A description of the retrieved buy in advance request | ||||||||||
billing_effective_date (optional) | Date | The billing effective date of the buy in advance request, that determines the earliest date that the request can be picked up by the billing engine | ||||||||||
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 |
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
Examples
POST buy_in_advance_requests/cancel
This method cancels an existing buy in advance request. This method can be used only if the specified buy in advance request is effective and not rated. A single buy in advance request can be cancelled 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 cancelled. The allowed buy in advance request identifier fields are the following:
| ||||||||||
udf_date_4 | Date | User Defined Field of type Date |
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