|
Fixed Boost - Update
Allows to update an existing boost.
Headers
|
|
Key |
|
Value |
|
Note |
|
|
|
api_access_key |
|
user_api_key |
|
Optional |
|
   
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 |
|
1959caadac9b13dcb3 |
|
Required if not included in the headers |
|
|
|
type |
|
manage_campaign_boosts |
|
Required |
|
|
|
action |
|
update |
|
Required |
|
|
|
account_id |
|
greatwidgets |
|
Required |
|
|
|
boost_id |
|
208 |
|
Required |
|
|
|
boost_name |
|
Get $10 for each 1000 points earned |
|
Required |
|
|
|
boost_type |
|
A |
|
Required See Notes |
|
|
|
boost_campaign_id_from |
|
1234567890123456 |
|
Required See Notes |
|
|
|
boost_buyx_from_item_description |
|
Coffee |
|
Optional See Notes |
|
|
|
boost_threshold_amount |
|
1000 |
|
Required See Notes |
|
|
|
boost_apply_to_all_transactions |
|
Y or N |
|
Optional See Notes |
|
|
|
boost_deduct_from_balance |
|
Y or N |
|
Optional See Notes |
|
|
|
boost_deduct_from_balance_repeat |
|
Y or N |
|
Optional See Notes |
|
|
|
boost_action_type |
|
add or multiply |
|
Required See Notes |
|
|
|
boost_action_amount |
|
10 |
|
Required |
|
|
|
boost_action_rule |
|
A or B |
|
Optional See Notes |
|
|
|
boost_campaing_id_to |
|
5555554567890123456 |
|
Required See Notes |
|
|
|
boost_buyx_to_item_description |
|
Dessert |
|
Optional See Notes |
|
|
|
|
|
|
|
|
|
|
|
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 |
|
|
|
|
|
|
|
|
|
Notes:
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['account_id'] = 'greatwidgets';
- $data['type'] = 'manage_campaign_boosts';
- $data['action'] = 'update';
- $data['boost_id'] = '208'
- $data['boost_campaing_id_from'] = '5095775700340492'
- $data['boost_type'] = 'A'
- $data['boost_threshold_amount'] = '1000';
- $data['boost_apply_to_all_transactions'] = 'N';
- $data['boost_deduct_from_balance'] = 'Y';
- $data['boost_deduct_from_balance_repeat'] = 'Y';
- $data['boost_action_type'] = 'add';
- $data['boost_action_amount'] = '10';
- $data['boost_campaing_id_to'] = '6017673775945338';
- $data['boost_name'] = 'Get $10 for each 1000 points earned';
Success XML Response:
- <response status="success">
- <boost_id>208</boost_id>
- </response>
Error XML Response:
- <response status="error">
- <error>Error message</error>
- </response>
|
|