boosts - Retrieve Information
Retrieves the configuration details of an existing boost.
The data to be submitted to the API is composed of the following fields:
|
|
field |
|
Example |
|
Note |
|
|
|
API |
|
1.5 |
|
Required |
|
|
|
user_id |
|
john1970 |
|
Required |
|
|
|
user_api_key |
|
1959ca5645adac9b13dcb3 |
|
Required |
|
|
|
account_id |
|
greatwidgets |
|
Required |
|
|
|
type |
|
manage_campaign_boosts |
|
Required |
|
|
|
action |
|
info |
|
Required |
|
|
|
boost_id |
|
210 |
|
Required |
|
|
|
|
|
|
|
|
|
|
|
Output Format: |
|
|
|
output |
|
JSON or XML |
|
Optional. If not provided, defaults to XML |
|
|
|
callback |
|
someFunctionName |
|
Optional: JSONP format |
|
|
|
condensed |
|
yes |
|
Optional (No white space) Applies only to JSON(P) output |
|
|
|
|
|
|
|
|
|
Example PHP Request:
If you are using PHP, the $data array would look like this:
- $data['API'] = '1.5';
- $data['user_id'] = 'john1970';
- $data['user_api_key'] = '1959caadac9b13dcb3';
- $data['type'] = 'manage_campaign_boosts';
- $data['action'] = 'info';
- $data['account_id'] = 'greatwidgets';
- $data['boost_id'] = '210';
Success XML Response
- <response status="success">
- <boosts>
- <boost_id>210</boost_id>
- <boost_name>Get 50 Bonus Points in each visit Mondays and Wednesdays 4pm to 6pm</boost_name>
- <boost_time_start>16:00:00</boost_time_start>
- <boost_time_validity>2</boost_time_validity>
- <boost_active_days>1,3</boost_active_days>
- <boost_campaing_id_from>5095775700340492</boost_campaing_id_from>
- <boost_threshold_amount>1000</boost_threshold_amount>
- <boost_apply_to_all_transactions>Y</boost_apply_to_all_transactions>
- <boost_deduct_from_balance>N</boost_deduct_from_balance>
- <boost_deduct_from_balance_repeat>N</boost_deduct_from_balance_repeat>
- <boost_action_type>add</boost_action_type>
- <boost_action_amount>50</boost_action_amount>
- <boost_campaing_id_to>6017673775945338</boost_campaing_id_to>
- <boost_action_type>add</boost_action_type>
- <boost_buyx_to_item_description></boost_buyx_to_item_description>
- <boost_type>C</boost_type>
- </boosts>
- </response>
Error XML Response:
- <response status="error">
- <error>Error message</error>
- </response>
|