POST promotion_campaigns/request_promo_code
Available from CRM.COM R14.2.0
This method provides the ability to request a promo code out of a specific promotion campaign
Resource URL
Parameters
Name | Type | Description | ||||||||||||||||||||||||||||||
token | String | The token retrieved from the login method | ||||||||||||||||||||||||||||||
promotion_campaign_identifier (semi-optional with promo_code) | Promotion Campaign Identifier | The identifier of the promotion campaign that will provide the promo code. Only POSTED promotion campaigns of type "Promotion Discount" and Distribution method "UPON REQUEST" are allowed. The allowed promotion campaign identifier fields are the following:
| ||||||||||||||||||||||||||||||
promo_code (semi-optional with promotion_campaign_identifier) | String | The actual promo code that will be assigned on the customer. Only promo codes which are EFFECTIVE, and have been generated through a communication campaign with distribution method "UPON REQUEST" can be provided here. Available from CRM.COM R14.19.0 | ||||||||||||||||||||||||||||||
contact_information_identifier (semi-optional) | Contact Information Identifier | The identifier of the contact information that will receive the promo code. The allowed contact information identifier fields are the following:
| ||||||||||||||||||||||||||||||
accounts_receivable_identifier (semi-optional) | Accounts Receivable Identifier | The identifier of the accounts receivable that will receive the promo code. The allowed accounts receivable identifier fields are the following:
| ||||||||||||||||||||||||||||||
subscription_identifier (semi-optional) | Subscription Identifier | The identifier of the subscription that will receive the promo code. The allowed subscription identifier fields are the following:
| ||||||||||||||||||||||||||||||
rewards_participant_identifier (semi-optional) | Rewards Participant Identifier | The identifier of the rewards participant that will receive the promo code. The allowed rewards participant identifier fields are the following:
Deprecated from CRM.COM R17.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 |
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 provided promo code |
code | String | The code of the provided promo code |
life_cycle_state | String | The life cycle state of the provided promo code |
expiration_date | String | The expiration date of the provided promo code |
promotion_campaign | Promotion Campaign Object | The promotion campaign of the provided promo code |
Log Information Object | The log information related with the retrieved promotion code |
Referred Objects Response Data