GET additive_discounts/applied_additive_discounts/show
This method returns information related with an applied additive discount. A single applied additive discount is returned by each call
Resource URL
Parameters
Name | Type | Description | |||||||||
token | String | The token retrieved from the login method | |||||||||
applied_additive_discount_identifier (mandatory) | Applied Additive Discount identifier | The identifier of the applied additive discount that should be returned as a result. The allowed applied additive discount 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 applied additive discount |
number | String | The number of the retrieved applied additive discount |
discount_amount | Number | The discount amount that was applied by the additive discount |
usage_amount | Number | The free usage applied by the additive discount Available from CRM.COM R15.0.0 |
from_date | Date | The date that the additive discount was applied from |
to_date | Date | The date that the additive discount was applied to |
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 |
ad_hoc_discount | Ad hoc Discount Object | The ad hoc discount that was applied |
applied_additive_discount_definition | Additive Discount Definition Object | The additive discount definition that was applied |
subscription | Subscription Object | The subscription on which the additive discount was applied on |
job | Job Object | The Job on which the additive discount was applied on |
product | Product Object | The product on which the additive discount was applied on |
currency_rate_period | Currency Rate Period Object | The currency rate period of the additive discount Available from CRM.COM R10.0.0 |
log_information | Log Information Object | The log information of the retrieved applied additive discount |
Referred Objects Response Data
Examples
GET additive_discounts/applied_additive_discounts/list
This method returns information related with applied additive discounts. Multiple applied additive discounts are returned by each call
Resource URL
Parameters
Name | Type | Description | ||||||||||||
token | String | The token retrieved from the login method | ||||||||||||
additive_discount_definition_identifier (semi-optional) | Additive Discount Definition identifier | The identifier of the additive discount definition related with the applied additive that should be returned as a result. The allowed additive discount definition identifier fields are the following:
| ||||||||||||
accounts_receivable_identifier (semi-optional) | Accounts Receivable identifier | The identifier of the accounts receivable related with the applied additive discount that should be returned as a result. The allowed accounts receivable identifier fields are the following:
| ||||||||||||
subscription_identifier (semi-optional) | Subscription identifier | The identifier of the subscription related with the applied additive discount that should be returned as a result. The allowed subscription identifier fields are the following:
| ||||||||||||
job_identifier (semi-optional) | Job identifier | The identifier of the job related with the applied additive discount that should be returned as a result. The allowed job identifier fields are the following:
| ||||||||||||
additive_discount_definition_classification (semi-optional) | String | The classification of the additive discount definition related with the applied additive that should be returned as a result. The supported classifications are SUBSCRIPTIONS and JOBS | ||||||||||||
additive_discount_definition_type (semi-optional) | String | The type of the additive discount definition related with the applied additive that should be returned as a result. The supported classifications are AUTO_APPLIED and AD_HOC | ||||||||||||
from_date (optional) | Date | It determines the date that the applied additive discount becomes effective. If specified then only applied additive discounts which were effective on that date or after that date will be retrieved | ||||||||||||
to_date (optional) | Date | It determines the date that the applied additive discount becomes not effective. If specified then only applied additive discounts which were effective up to that date or before that date will be retrieved | ||||||||||||
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. More than one semi-optional parameter can be specified.
Response Data
Name | Type | Description |
---|---|---|
id | String | The ID of the retrieved applied additive discount |
number | String | The number of the retrieved applied additive discount |
discount_amount | Number | The discount amount that was applied by the additive discount |
usage_amount | Number | The free usage applied by the additive discount Available from CRM.COM R15.0.0 |
from_date | Date | The date that the additive discount was applied from |
to_date | Date | The date that the additive discount was applied to |
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 |
ad_hoc_discount | Ad hoc Discount Object | The ad hoc discount that was applied |
applied_additive_discount_definition | Additive Discount Definition Object | The additive discount definition that was applied |
subscription | Subscription Object | The subscription on which the additive discount was applied on |
job | Job Object | The Job on which the additive discount was applied on |
product | Product Object | The product on which the additive discount was applied on |
currency_rate_period | Currency Rate Period Object | The currency rate period of the additive discount Available from CRM.COM R10.0.0 |
log_information | Log Information Object | The log information of the retrieved applied additive discount |
Referred Objects Response Data
Examples
GET additive_discounts/ad_hoc_discounts/show
This method returns information related with an ad hoc discount. A single ad hoc discount is returned by each call
Resource URL
Parameters
Name | Type | Description | |||||||||
token | String | The token retrieved from the login method | |||||||||
ad_hoc_discount_identifier (mandatory) | Ad hoc discount identifier | The identifier of the ad hoc discount that should be returned as a result. The allowed ad hoc discount 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 ad hoc discount |
number | String | The number of the retrieved ad hoc discount |
discount_option | String | The type of discount which will be applied, which can be one of the following
Available from CRM.COM R15.0.0 |
discount_amount | Number | The discount amount that will be applied, if the additive discount definition is set up to provide a range of discount based on amount. |
discount_amount_uot | String | The period of time that the ad hoc discount amount will be applied for Not available from CRM.COM R15.0.0 |
discount_percentage | Number | The discount percentage that will be applied, if the additive discount definition is set up to provide a range of discount based on percentage |
discount_free_usage | Number | The free usage discount that will be applied, if the additive discount definition is set up to provide a range of discount based on usage. The UOM depends on the UOM of the usage service being discounted Available from CRM.COM R15.0.0 |
for | For Object | The discounted period every time the discount is given when the Discount Option is Percentage per Period or Amount per Period. The possible options are the following:
Available from CRM.COM R15.0.0 |
renew | Renew Object | How often the discount is renewed (provided again) when the Discount Option is Percentage per Period or Amount per Period which can have one of the following options:
Available from CRM.COM R15.0.0 |
effective_date | Date | The date that the discount becomes effective |
expiration_date | Date | The date that the discount will expire |
life_cycle_state | String | The life cycle state of the retrieved ad hoc discount. Supported values are PENDING_APPROVAL, APPROVED and CANCELLED |
provided_on | Date | The date that the ad hoc discount was provided |
approved_on | Date | The date that the ad hoc discount was approved Not available from CRM.COM R15.0.0 |
cancelled_on | Date | The date that the ad hoc discount was cancelled Not available from CRM.COM R15.0.0 |
approval_method | String | The method that was followed in order to approve the the ad hoc discount. The supported approval methods are AUTOMATIC or MANUAL |
applied | Boolean | It determines if the ad hoc discount was already applied or not. It returns true if the ad hoc discount was applied or false otherwise |
applied_on | Date | The date that the ad hoc discount was applied. |
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 |
discount_free_period | Time Period object | The free period that will be provided, measured in days, weeks, months or years. This information is available if the additive discount definition is set up to provide a range of discount based on free period. Not available from CRM.COM R15.0.0 |
subscription | Subscription Object | The subscription that the ad hoc discount will be applied on |
job | Job Object | The job that the ad hoc discount will be applied on. |
additive_discount_definition | Additive Discount Definition Object | The additive discount definition that will be applied by the ad hoc discount |
provided_by | User Object | The user that provided the ad hoc discount |
approved_by | User Object | The user that approved the ad hoc discount. |
cancelled_by | User Object | The user that cancelled the ad hoc discount |
currency_rate_period | Currency Rate Period Object | The currency rate period of the ad hoc discount Available from CRM.COM R10.0.0 |
log_information | Log Information Object | The log information of the retrieved ad hoc discount |
products_set | Set of Ad hoc Discount Products Objects | Set of ad hoc discount products used to keep track of the products that the discount will be applied on. If not specified then the discount will be applicable on any products that will be billed |
Referred Objects Response Data
Examples
GET additive_discounts/ad_hoc_discounts/list
This method returns information related with ad hoc discounts. Multiple ad hoc discounts are returned by each call
Resource URL
Parameters
Name | Type | Description | ||||||||||||
token | String | The token retrieved from the login method | ||||||||||||
additive_discount_definition_identifier (semi-optional) | Additive Discount Definition identifier | The identifier of the additive discount definition related with the ad hoc discounts that should be returned as a result. Only additive discount definitions of type Ad Hoc can be specified.The allowed additive discount definition identifier fields are the following:
| ||||||||||||
subscription_identifier (semi-optional) | Subscription identifier | The identifier of the subscription related with the ad hoc discounts that should be returned as a result. The allowed subscription identifier fields are the following:
| ||||||||||||
job_identifier (semi-optional) | Job identifier | The identifier of the job related with the ad hoc discounts that should be returned as a result. The allowed job identifier fields are the following:
| ||||||||||||
provided_by_identifier (semi-optional) | User Identifier | The identifier of the user that provided the ad hoc discounts that should be returned as a result. The allowed user identifier fields are the following:
| ||||||||||||
approved_by_identifier (semi-optional) | User Identifier | The identifier of the user that approved the ad hoc discounts that should be returned as a result. The allowed user identifier fields are the following:
| ||||||||||||
cancelled_by_identifier (semi-optional) | User Identifier | The identifier of the user that cancelled the ad hoc discounts that should be returned as a result. The allowed user identifier fields are the following:
| ||||||||||||
life_cycle_state (semi-optional) | String | The life cycle state of the ad hoc discounts that should be returned as a result. The supported life cycle states are PENDING_APPROVAL, APPROVED and CANCELLED | ||||||||||||
applied (optional) | Boolean | If set to TRUE the only ad hoc discounts that were already applied will be returned as a result. If set to FALSE then only ad hoc discounts that are not applied yet will be returned as a result. If not specified then any ad hoc discounts will be retrieved. | ||||||||||||
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. More than one semi-optional parameters can be specified at the same time
Response Data
Name | Type | Description |
---|---|---|
id | String | The ID of the retrieved ad hoc discount |
number | String | The number of the retrieved ad hoc discount |
discount_option | String | The type of discount which will be applied, which can be one of the following
Available from CRM.COM R15.0.0 |
discount_amount | Number | The discount amount that will be applied, if the additive discount definition is set up to provide a range of discount based on amount. |
discount_amount_uot | String | The period of time that the ad hoc discount amount will be applied for Not available from CRM.COM R15.0.0 |
discount_percentage | Number | The discount percentage that will be applied, if the additive discount definition is set up to provide a range of discount based on percentage |
discount_free_usage | Number | The free usage discount that will be applied, if the additive discount definition is set up to provide a range of discount based on usage. The UOM depends on the UOM of the usage service being discounted Available from CRM.COM R15.0.0 |
for | For Object | The discounted period every time the discount is given when the Discount Option is Percentage per Period or Amount per Period. The possible options are the following:
Available from CRM.COM R15.0.0 |
renew | Renew Object | How often the discount is renewed (provided again) when the Discount Option is Percentage per Period or Amount per Period which can have one of the following options:
Available from CRM.COM R15.0.0 |
effective_date | Date | The date that the discount becomes effective |
expiration_date | Date | The date that the discount will expire |
life_cycle_state | String | The life cycle state of the retrieved ad hoc discount. Supported values are PENDING_APPROVAL, APPROVED and CANCELLED |
provided_on | Date | The date that the ad hoc discount was provided |
approved_on | Date | The date that the ad hoc discount was approved Not available from CRM.COM R15.0.0 |
cancelled_on | Date | The date that the ad hoc discount was cancelled Not available from CRM.COM R15.0.0 |
approval_method | String | The method that was followed in order to approve the the ad hoc discount. The supported approval methods are AUTOMATIC or MANUAL |
applied | Boolean | It determines if the ad hoc discount was already applied or not. It returns true if the ad hoc discount was applied or false otherwise |
applied_on | Date | The date that the ad hoc discount was applied. |
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 |
discount_free_period | Time Period object | The free period that will be provided, measured in days, weeks, months or years. This information is available if the additive discount definition is set up to provide a range of discount based on free period. Not available from CRM.COM R15.0.0 |
subscription | Subscription Object | The subscription that the ad hoc discount will be applied on |
job | Job Object | The job that the ad hoc discount will be applied on. |
additive_discount_definition | Additive Discount Definition Object | The additive discount definition that will be applied by the ad hoc discount |
provided_by | User Object | The user that provided the ad hoc discount |
approved_by | User Object | The user that approved the ad hoc discount. |
cancelled_by | User Object | The user that cancelled the ad hoc discount |
currency_rate_period | Currency Rate Period Object | The currency rate period of the ad hoc discount Available from CRM.COM R10.0.0 |
log_information | Log Information Object | The log information of the retrieved ad hoc discount |
products_set | Set of Ad hoc Discount Products Objects | Set of ad hoc discount products used to keep track of the products that the discount will be applied on. If not specified then the discount will be applicable on any products that will be billed |
Referred Objects Response Data
Examples
POST additive_discounts/ad_hoc_discounts/create
This method creates an ad hoc discount that can be applied on a specific subscription or job. A single ad hoc discount can be created by each call.
Resource URL
Parameters
Name | Type | Description | ||||||||||||
token | String | The token retrieved from the login method | ||||||||||||
additive_discount_definition_identifier (mandatory) | Additive Discount Definition identifier | The identifier of the additive discount definition that will be applied. Only additive discount definitions of type Ad Hoc can be specified, considering that they can be applied on the specified subscription or job, and by the specified user.The allowed additive discount definition identifier fields are the following:
| ||||||||||||
subscription_identifier (mandatory on conditions) | Subscription identifier | The identifier of the subscription on which the ad hoc discount will be applied on. This information is mandatory unless a job is specified. In that case it is not allowed to specified a subscription as well. The allowed subscription identifier fields are the following:
| ||||||||||||
job_identifier (mandatory on conditions) | Job identifier | The identifier of the job on which the ad hoc discount will be applied on. This information is mandatory unless a subscription is specified. In that case it is not allowed to specified a job as well. The allowed job identifier fields are the following:
| ||||||||||||
discount_amount (mandatory and applicable on conditions) | Number | The discount amount that will be applied. This information is applicable and mandatory if the additive discount definition is set up to provide a range of discount based on amount | ||||||||||||
discount_percentage (mandatory and applicable on conditions) | Number | The discount percentage that will be applied. This information is applicable and mandatory if the additive discount definition is set up to provide a range of discount based on percentage | ||||||||||||
effective_date (optional) | Date | The date that the discount becomes effective | ||||||||||||
expiration_date (optional) | Date | The date that the discount will expire | ||||||||||||
provided_by_identifier (optional) | User Identifier | The identifier of the user that provided the ad hoc discount. If not specified then it defaults to the user that submitted the request into the system. The allowed user identifier fields are the following:
| ||||||||||||
provided_on (optional) | Date | The date that the ad hoc discount was provided. If not specified then it defaults to the date that the request was submitted into the system. | ||||||||||||
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 | ||||||||||||
(mandatory and applicable on conditions) | Time Period Object | The free period that will be provided, measured in days, weeks, months or years. This information is applicable and mandatory if the additive discount definition is set up to provide a range of discount based on free period. | ||||||||||||
(optional) | Set of Ad hoc Discount Products Objects | The products that the discount will be applied on, considering that they are allowed by the specified subscription or job and the specified additive discount definition. If not specified then the discount will be applicable on any products that will be billed |
Referred Parameters Objects Data
Restrictions
- It is mandatory to specify one of the semi-optional parameters.
Response Data
Name | Type | Description |
---|---|---|
id | String | The ID of the retrieved ad hoc discount |
number | String | The number of the retrieved ad hoc discount |
discount_option | String | The type of discount which will be applied, which can be one of the following
Available from CRM.COM R15.0.0 |
discount_amount | Number | The discount amount that will be applied, if the additive discount definition is set up to provide a range of discount based on amount. |
discount_amount_uot | String | The period of time that the ad hoc discount amount will be applied for Not available from CRM.COM R15.0.0 |
discount_percentage | Number | The discount percentage that will be applied, if the additive discount definition is set up to provide a range of discount based on percentage |
discount_free_usage | Number | The free usage discount that will be applied, if the additive discount definition is set up to provide a range of discount based on usage. The UOM depends on the UOM of the usage service being discounted Available from CRM.COM R15.0.0 |
for | For Object | The discounted period every time the discount is given when the Discount Option is Percentage per Period or Amount per Period. The possible options are the following:
Available from CRM.COM R15.0.0 |
renew | Renew Object | How often the discount is renewed (provided again) when the Discount Option is Percentage per Period or Amount per Period which can have one of the following options:
Available from CRM.COM R15.0.0 |
effective_date | Date | The date that the discount becomes effective |
expiration_date | Date | The date that the discount will expire |
life_cycle_state | String | The life cycle state of the retrieved ad hoc discount. Supported values are PENDING_APPROVAL, APPROVED and CANCELLED |
provided_on | Date | The date that the ad hoc discount was provided |
approved_on | Date | The date that the ad hoc discount was approved Not available from CRM.COM R15.0.0 |
cancelled_on | Date | The date that the ad hoc discount was cancelled Not available from CRM.COM R15.0.0 |
approval_method | String | The method that was followed in order to approve the the ad hoc discount. The supported approval methods are AUTOMATIC or MANUAL |
applied | Boolean | It determines if the ad hoc discount was already applied or not. It returns true if the ad hoc discount was applied or false otherwise |
applied_on | Date | The date that the ad hoc discount was applied. |
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 |
discount_free_period | Time Period object | The free period that will be provided, measured in days, weeks, months or years. This information is available if the additive discount definition is set up to provide a range of discount based on free period. Not available from CRM.COM R15.0.0 |
subscription | Subscription Object | The subscription that the ad hoc discount will be applied on |
job | Job Object | The job that the ad hoc discount will be applied on. |
additive_discount_definition | Additive Discount Definition Object | The additive discount definition that will be applied by the ad hoc discount |
provided_by | User Object | The user that provided the ad hoc discount |
approved_by | User Object | The user that approved the ad hoc discount. |
cancelled_by | User Object | The user that cancelled the ad hoc discount |
currency_rate_period | Currency Rate Period Object | The currency rate period of the ad hoc discount Available from CRM.COM R10.0.0 |
log_information | Log Information Object | The log information of the retrieved ad hoc discount |
products_set | Set of Ad hoc Discount Products Objects | Set of ad hoc discount products used to keep track of the products that the discount will be applied on. If not specified then the discount will be applicable on any products that will be billed |
Referred Objects Response Data
Examples
POST additive_discounts/ad_hoc_discounts/update
This method updated an ad hoc discount, which is in a pending approval life cycle state. A single ad hoc discount 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 | |||||||||
ad_hoc_discount_identifier (mandatory) | Ad hoc discount identifier | The identifier of the ad hoc discount that will be updated. Only ad hoc discounts in a pending life cycle state can be specified.The allowed ad hoc discount identifier fields are the following:
| |||||||||
discount_amount (optional and applicable on conditions) | Number | The discount amount that will be applied. This information is applicable and mandatory if the additive discount definition is set up to provide a range of discount based on amount | |||||||||
discount_percentage (optional and applicable on conditions) | Number | The discount percentage that will be applied. This information is applicable and mandatory if the additive discount definition is set up to provide a range of discount based on percentage | |||||||||
effective_date (optional) | Date | The date that the discount becomes effective | |||||||||
expiration_date (optional) | Date | The date that the discount will expire | |||||||||
provided_by_identifier (optional) | User Identifier | The identifier of the user that provided the ad hoc discount. If not specified then it defaults to the user that submitted the request into the system. The allowed user identifier fields are the following:
| |||||||||
provided_on (optional) | Date | The date that the ad hoc discount was provided. If not specified then it defaults to the date that the request was submitted into the system. | |||||||||
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 | |||||||||
(optional and applicable on conditions) | Time Period Object | The free period that will be provided, measured in days, weeks, months or years. This information is applicable and mandatory if the additive discount definition is set up to provide a range of discount based on free period. | |||||||||
(optional) | Set of Ad hoc Discount Products Objects | The products that the discount will be applied on, considering that they are allowed by the specified subscription or job and the specified additive discount definition. If not specified then the discount will be applicable on any products that will be billed If no records are specified in the set then nothing will be updated. To update a record use "action" : "update". To remove a record use "action" : "remove". To add a record use "action" : "add". Different actions can be used within the same set. For example: "set": [ { "action": "update", ........... }, { "action": "remove", ........... }, { "action": "add", ........... } ] |
Referred Parameters Objects Data
Restrictions
- It is mandatory to specify one of the semi-optional parameters.
Response Data
Name | Type | Description |
---|---|---|
id | String | The ID of the retrieved ad hoc discount |
number | String | The number of the retrieved ad hoc discount |
discount_option | String | The type of discount which will be applied, which can be one of the following
Available from CRM.COM R15.0.0 |
discount_amount | Number | The discount amount that will be applied, if the additive discount definition is set up to provide a range of discount based on amount. |
discount_amount_uot | String | The period of time that the ad hoc discount amount will be applied for Not available from CRM.COM R15.0.0 |
discount_percentage | Number | The discount percentage that will be applied, if the additive discount definition is set up to provide a range of discount based on percentage |
discount_free_usage | Number | The free usage discount that will be applied, if the additive discount definition is set up to provide a range of discount based on usage. The UOM depends on the UOM of the usage service being discounted Available from CRM.COM R15.0.0 |
for | For Object | The discounted period every time the discount is given when the Discount Option is Percentage per Period or Amount per Period. The possible options are the following:
Available from CRM.COM R15.0.0 |
renew | Renew Object | How often the discount is renewed (provided again) when the Discount Option is Percentage per Period or Amount per Period which can have one of the following options:
Available from CRM.COM R15.0.0 |
effective_date | Date | The date that the discount becomes effective |
expiration_date | Date | The date that the discount will expire |
life_cycle_state | String | The life cycle state of the retrieved ad hoc discount. Supported values are PENDING_APPROVAL, APPROVED and CANCELLED |
provided_on | Date | The date that the ad hoc discount was provided |
approved_on | Date | The date that the ad hoc discount was approved Not available from CRM.COM R15.0.0 |
cancelled_on | Date | The date that the ad hoc discount was cancelled Not available from CRM.COM R15.0.0 |
approval_method | String | The method that was followed in order to approve the the ad hoc discount. The supported approval methods are AUTOMATIC or MANUAL |
applied | Boolean | It determines if the ad hoc discount was already applied or not. It returns true if the ad hoc discount was applied or false otherwise |
applied_on | Date | The date that the ad hoc discount was applied. |
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 |
discount_free_period | Time Period object | The free period that will be provided, measured in days, weeks, months or years. This information is available if the additive discount definition is set up to provide a range of discount based on free period. Not available from CRM.COM R15.0.0 |
subscription | Subscription Object | The subscription that the ad hoc discount will be applied on |
job | Job Object | The job that the ad hoc discount will be applied on. |
additive_discount_definition | Additive Discount Definition Object | The additive discount definition that will be applied by the ad hoc discount |
provided_by | User Object | The user that provided the ad hoc discount |
approved_by | User Object | The user that approved the ad hoc discount. |
cancelled_by | User Object | The user that cancelled the ad hoc discount |
currency_rate_period | Currency Rate Period Object | The currency rate period of the ad hoc discount Available from CRM.COM R10.0.0 |
log_information | Log Information Object | The log information of the retrieved ad hoc discount |
products_set | Set of Ad hoc Discount Products Objects | Set of ad hoc discount products used to keep track of the products that the discount will be applied on. If not specified then the discount will be applicable on any products that will be billed |
Referred Objects Response Data
Examples
POST additive_discounts/ad_hoc_discounts/approve
This method approves an ad hoc discount, which is in a pending approval life cycle state. A single ad hoc discount can be approved by each call.
Resource URL
Parameters
Name | Type | Description | |||||||||
token | String | The token retrieved from the login method | |||||||||
ad_hoc_discount_identifier (mandatory) | Ad Hoc Discount identifier | The identifier of the ad hoc discount that will be approved. Only ad hoc discounts in a pending approval life cycle state can be specified. The allowed ad hoc discount identifier fields are the following:
| |||||||||
approved_by_identifier (optional) | User Identifier | The identifier of the user that approved the ad hoc discount. If not specified then it defaults to the user that submitted the request into the system. The user is validated against the list of users that are authorized to approve ad hoc discounts. The allowed user identifier fields are the following:
| |||||||||
approved_on (optional) | Date | The date that the ad hoc discount was approved. If not specified then it defaults to the date that the request was submitted into the system. |
Restrictions
- It is mandatory to specify one of the semi-optional parameters.
Response Data
Name | Type | Description |
---|---|---|
id | String | The ID of the retrieved ad hoc discount |
number | String | The number of the retrieved ad hoc discount |
discount_option | String | The type of discount which will be applied, which can be one of the following
Available from CRM.COM R15.0.0 |
discount_amount | Number | The discount amount that will be applied, if the additive discount definition is set up to provide a range of discount based on amount. |
discount_amount_uot | String | The period of time that the ad hoc discount amount will be applied for Not available from CRM.COM R15.0.0 |
discount_percentage | Number | The discount percentage that will be applied, if the additive discount definition is set up to provide a range of discount based on percentage |
discount_free_usage | Number | The free usage discount that will be applied, if the additive discount definition is set up to provide a range of discount based on usage. The UOM depends on the UOM of the usage service being discounted Available from CRM.COM R15.0.0 |
for | For Object | The discounted period every time the discount is given when the Discount Option is Percentage per Period or Amount per Period. The possible options are the following:
Available from CRM.COM R15.0.0 |
renew | Renew Object | How often the discount is renewed (provided again) when the Discount Option is Percentage per Period or Amount per Period which can have one of the following options:
Available from CRM.COM R15.0.0 |
effective_date | Date | The date that the discount becomes effective |
expiration_date | Date | The date that the discount will expire |
life_cycle_state | String | The life cycle state of the retrieved ad hoc discount. Supported values are PENDING_APPROVAL, APPROVED and CANCELLED |
provided_on | Date | The date that the ad hoc discount was provided |
approved_on | Date | The date that the ad hoc discount was approved Not available from CRM.COM R15.0.0 |
cancelled_on | Date | The date that the ad hoc discount was cancelled Not available from CRM.COM R15.0.0 |
approval_method | String | The method that was followed in order to approve the the ad hoc discount. The supported approval methods are AUTOMATIC or MANUAL |
applied | Boolean | It determines if the ad hoc discount was already applied or not. It returns true if the ad hoc discount was applied or false otherwise |
applied_on | Date | The date that the ad hoc discount was applied. |
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 |
discount_free_period | Time Period object | The free period that will be provided, measured in days, weeks, months or years. This information is available if the additive discount definition is set up to provide a range of discount based on free period. Not available from CRM.COM R15.0.0 |
subscription | Subscription Object | The subscription that the ad hoc discount will be applied on |
job | Job Object | The job that the ad hoc discount will be applied on. |
additive_discount_definition | Additive Discount Definition Object | The additive discount definition that will be applied by the ad hoc discount |
provided_by | User Object | The user that provided the ad hoc discount |
approved_by | User Object | The user that approved the ad hoc discount. |
cancelled_by | User Object | The user that cancelled the ad hoc discount |
currency_rate_period | Currency Rate Period Object | The currency rate period of the ad hoc discount Available from CRM.COM R10.0.0 |
log_information | Log Information Object | The log information of the retrieved ad hoc discount |
products_set | Set of Ad hoc Discount Products Objects | Set of ad hoc discount products used to keep track of the products that the discount will be applied on. If not specified then the discount will be applicable on any products that will be billed |
Referred Objects Response Data
Examples
POST additive_discounts/ad_hoc_discounts/cancel
This method cancels an ad hoc discount, which is in a pending approval life cycle state or approved but not applied yet. A single ad hoc discount can be cancelled by each call.
Resource URL
Parameters
Name | Type | Description | |||||||||
token | String | The token retrieved from the login method | |||||||||
ad_hoc_discount_identifier (mandatory) | Ad Hoc Discount identifier | The identifier of the ad hoc discount that will be cancelled. Only ad hoc discounts in a pending approval life cycle state or approved but not applied can be specified. The allowed ad hoc discount identifier fields are the following:
| |||||||||
cancelled_by_identifier (optional) | User Identifier | The identifier of the user that cancelled the ad hoc discount. If not specified then it defaults to the user that submitted the request into the system. The allowed user identifier fields are the following:
| |||||||||
cancelled_on (optional) | Date | The date that the ad hoc discount was cancelled. If not specified then it defaults to the date that the request was submitted into the system. |
Restrictions
- It is mandatory to specify one of the semi-optional parameters.
Response Data
Name | Type | Description |
---|---|---|
id | String | The ID of the retrieved ad hoc discount |
number | String | The number of the retrieved ad hoc discount |
discount_option | String | The type of discount which will be applied, which can be one of the following
Available from CRM.COM R15.0.0 |
discount_amount | Number | The discount amount that will be applied, if the additive discount definition is set up to provide a range of discount based on amount. |
discount_amount_uot | String | The period of time that the ad hoc discount amount will be applied for Not available from CRM.COM R15.0.0 |
discount_percentage | Number | The discount percentage that will be applied, if the additive discount definition is set up to provide a range of discount based on percentage |
discount_free_usage | Number | The free usage discount that will be applied, if the additive discount definition is set up to provide a range of discount based on usage. The UOM depends on the UOM of the usage service being discounted Available from CRM.COM R15.0.0 |
for | For Object | The discounted period every time the discount is given when the Discount Option is Percentage per Period or Amount per Period. The possible options are the following:
Available from CRM.COM R15.0.0 |
renew | Renew Object | How often the discount is renewed (provided again) when the Discount Option is Percentage per Period or Amount per Period which can have one of the following options:
Available from CRM.COM R15.0.0 |
effective_date | Date | The date that the discount becomes effective |
expiration_date | Date | The date that the discount will expire |
life_cycle_state | String | The life cycle state of the retrieved ad hoc discount. Supported values are PENDING_APPROVAL, APPROVED and CANCELLED |
provided_on | Date | The date that the ad hoc discount was provided |
approved_on | Date | The date that the ad hoc discount was approved Not available from CRM.COM R15.0.0 |
cancelled_on | Date | The date that the ad hoc discount was cancelled Not available from CRM.COM R15.0.0 |
approval_method | String | The method that was followed in order to approve the the ad hoc discount. The supported approval methods are AUTOMATIC or MANUAL |
applied | Boolean | It determines if the ad hoc discount was already applied or not. It returns true if the ad hoc discount was applied or false otherwise |
applied_on | Date | The date that the ad hoc discount was applied. |
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 |
discount_free_period | Time Period object | The free period that will be provided, measured in days, weeks, months or years. This information is available if the additive discount definition is set up to provide a range of discount based on free period. Not available from CRM.COM R15.0.0 |
subscription | Subscription Object | The subscription that the ad hoc discount will be applied on |
job | Job Object | The job that the ad hoc discount will be applied on. |
additive_discount_definition | Additive Discount Definition Object | The additive discount definition that will be applied by the ad hoc discount |
provided_by | User Object | The user that provided the ad hoc discount |
approved_by | User Object | The user that approved the ad hoc discount. |
cancelled_by | User Object | The user that cancelled the ad hoc discount |
currency_rate_period | Currency Rate Period Object | The currency rate period of the ad hoc discount Available from CRM.COM R10.0.0 |
log_information | Log Information Object | The log information of the retrieved ad hoc discount |
products_set | Set of Ad hoc Discount Products Objects | Set of ad hoc discount products used to keep track of the products that the discount will be applied on. If not specified then the discount will be applicable on any products that will be billed |
Referred Objects Response Data
Examples
POST additive_discounts/auto_apply_disounts/get_applicable_discounts
This method returns a list of discounts that will automatically be applied on a subscription or a job having the specified characteristics. Multiple auto apply discounts are returned by each call
Resource URL
Parameters
Name | Type | Description |
token | String | The token retrieved from the login method |
accounts_receivable (mandatory) | Accounts Receivable Object | Information related with the accounts receivable that will own the subscription or the job that could possibly be discounted |
(semi-optional) | Subscriptions Object | Information related with the subscription that could possibly be discounted |
(semi-optional) | Job Object | Information related with the job that could possibly be discounted |
(optional)
| Buy in Advance Request Object | Information related with buy in advance request that might be applicable on the subscription that could possible be discounted. This information is applicable only if a subscription is specified. Available from CRM.COM R6.0.0 |
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 |
Referred Parameters Objects Data
Restrictions
- It is mandatory to specify one of the semi-optional parameters. Only one semi-optional parameter can be specified.
Response Data
Name | Type | Description |
---|---|---|
discount_option | String | The type of discount which will be applied, which can be one of the following
Available from CRM.COM R15.0.0 |
discount_amount | Number | The discount amount that will be applied, if the additive discount definition is set up to provide a range of discount based on amount. |
discount_percentage | Number | The discount percentage that will be applied, if the additive discount definition is set up to provide a range of discount based on percentage Available from CRM.COM R15.0.0 |
discount_free_usage | Number | The free usage discount that will be applied, if the additive discount definition is set up to provide a range of discount based on usage. The UOM depends on the UOM of the usage service being discounted Available from CRM.COM R15.0.0 |
for | For Object | The discounted period every time the discount is given when the Discount Option is Percentage per Period or Amount per Period. The possible options are the following:
Available from CRM.COM R15.0.0 |
renew | Renew Object | How often the discount is renewed (provided again) when the Discount Option is Percentage per Period or Amount per Period which can have one of the following options:
Available from CRM.COM R15.0.0 |
from_date | Date | The date that the auto apply additive discount will be applicable from |
to_date | Date | The date that the auto apply additive discount will be applicable to |
currency | Currency Object | The currency in which the discount amount is returned Available from CRM.COM R14.2.0 |
additive_discount_definition | Additive Discount Definition Object | The auto apply additive discount definition that will be applied |
product | Product Object | The product that will be discounted by the specified auto apply additive discount definition |
Referred Objects Response Data
Examples
POST additive_discounts/ad_hoc_disounts/get_available_discounts
This method returns a list of ad hoc discounts that are available for a subscription or a job having the specified characteristics. Ad hoc discounts are applied manually. Multiple ad hoc discounts are returned by each call
Resource URL
Parameters
Name | Type | Description |
token | String | The token retrieved from the login method |
accounts_receivable (mandatory) | Accounts Receivable Object | Information related with the accounts receivable that will own the subscription or the job that could possibly be discounted |
(semi-optional) | Subscriptions Object | Information related with the subscription that could possibly be discounted |
(semi-optional) | Job Object | Information related with the job that could possibly be discounted |
(optional) | Buy in Advance Request Object | Information related with buy in advance request that might be applicable on the subscription that could possible be discounted. This information is applicable only if a subscription is specified. Available from CRM.COM R6.0.0 |
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 |
Referred Parameters Objects Data
Restrictions
- It is mandatory to specify one of the semi-optional parameters. Only one semi-optional parameter can be specified.
Response Data
Name | Type | Description |
---|---|---|
discount_option | String | The type of discount which will be applied, which can be one of the following
Available from CRM.COM R15.0.0 |
discount_amount | Number | The discount amount that will be applied, if the additive discount definition is set up to provide a range of discount based on amount. |
discount_percentage | Number | The discount percentage that will be applied, if the additive discount definition is set up to provide a range of discount based on percentage Available from CRM.COM R15.0.0 |
discount_free_usage | Number | The free usage discount that will be applied, if the additive discount definition is set up to provide a range of discount based on usage. The UOM depends on the UOM of the usage service being discounted Available from CRM.COM R15.0.0 |
from_date | Date | The date that the ad hoc additive discount will be applicable from |
to_date | Date | The date that the ad hoc additive discount will be applicable to |
allowed_discount_amount_range | Allowed discount amount range | The allowed discount amount range that could be applied. Available from CRM.COM R14.2.0 |
for | For Object | The discounted period every time the discount is given when the Discount Option is Percentage per Period or Amount per Period. The possible options are the following:
Available from CRM.COM R15.0.0 |
renew | Renew Object | How often the discount is renewed (provided again) when the Discount Option is Percentage per Period or Amount per Period which can have one of the following options:
Available from CRM.COM R15.0.0 |
currency | Currency Object | The currency in which the discount amount is returned Available from CRM.COM R14.2.0 |
additive_discount_definition | Additive Discount Definition Object | The ad hoc additive discount definition that will be applied |
product | Product Object | The product that will be discounted by the specified ad hoc additive discount definition |
Referred Objects Response Data