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.
As of CRM.COM R15.0.0 the process is responsible for cancelling ad hoc discount applied on Jobs or Subscriptions with no restrictions. Cancelled ad-hoc discounts which are recurring, i.e. applied for more than one time (in case of subscriptions) may have already been applied for one or more times but cancelled from now on
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.