Updates the specified deal by setting the values of the parameters passed. Any parameters not provided will be left unchanged. More parameters can be changed via UI.
Parameters
Description optional
Description optionalDescription of the deal.
StartDate optional
StartDate optionalDate and time the deal begins. See ISO 8601.
EndDate optional
EndDate optionalDate and time the deal ends. See ISO 8601.
Name optional
Name optionalName of the deal.
SynchAdsPromoCodes optional
SynchAdsPromoCodes optionalIf the deal aligns all associated ad and promo code states and date ranges to the deal's.
Parameters changeable via UI
View UI parameters
Seasonal optional
Seasonal optionalAssociate a deal with a specific time of year. Cannot update via API.
DealType optional
DealType optionalWhat the deal does. Cannot update via API.
| View possible enum values | |
|---|---|
BOGO | Deal will apply a buy-one-get-one deal to the order. The following parameters are required: BogoBuyQuantity, BogoBuyName, BogoBuyScope, BogoGetQuantity, BogoGetName, BogoGetScope, BogoGetDiscountType. |
GENERAL_SALE | Deal applies a general discount to the products identified in DealScope. One of the following parameter sets is required:DiscountPercent,DiscountAmount together with DiscountCurrency,DiscountMaximumPercent, or DiscountPercentRangeStart together with DiscountPercentRangeEnd. |
FREE_SHIPPING | Deal applies free shipping to the order. |
GIFT_WITH_PURCHASE | A gift will come with the order. Gift parameter is required. |
REBATE | A rebate will be available to the customer upon purchase. RebateAmount and RebateCurrency are required. |
BOGO parameters
View BOGO parameters
BogoBuyName optional
BogoBuyName optionalName of the "buy" product. Cannot use if Type≠"BOGO".
BogoBuyQuantity optional
BogoBuyQuantity optional"Buy" product quantity available. Cannot use if Type≠"BOGO".
BogoBuyScope optional
BogoBuyScope optional"Buy" product scope. Cannot use if Type≠"BOGO".
| View possible enum values | |
|---|---|
PRODUCT | Deal only applies to a specific product or a specific group of products. |
CATEGORY | Deal applies to a category of products. |
BogoBuyImageFileName optional
BogoBuyImageFileName optionalURL to the "buy" product's image. Cannot use if Type≠"BOGO".
BogoGetDiscountAmount optional
BogoGetDiscountAmount optional"Get" product discount amount. Cannot use if Type≠"BOGO" and BogoGetDiscountType≠"AMOUNT".
BogoGetDiscountType optional
BogoGetDiscountType optional"Get" product discount type. Cannot use if Type≠"BOGO".
| View possible enum values | |
|---|---|
FREE | Customer will receive the "Get" item for free. |
AMOUNT | Customer will receive a specific amount of money off of the GET item's cost. BogoGetDiscountAmount is required. |
PERCENT | Customer will receive a percent off of the GET item's cost. BogoGetDiscountPercent is required. |
BogoGetDiscountPercent optional
BogoGetDiscountPercent optional"Get" product discount percentage. Cannot use if Type≠"BOGO" and BogoGetDiscountType≠"PERCENT".
BogoGetName optional
BogoGetName optional"Get" product name. Cannot use if Type≠"BOGO".
BogoGetQuantity optional
BogoGetQuantity optional"Get" product quantity available. Cannot use if Type≠"BOGO".
BogoGetScope optional
BogoGetScope optional"Get" product scope. Cannot use if Type≠"BOGO".
| View possible enum values | |
|---|---|
PRODUCT | Deal only applies to a specific product or a specific group of products. |
CATEGORY | Deal applies to a category of products. |
BogoGetImageFileName optional
BogoGetImageFileName optionalURL to the "get" product's image. Cannot use if Type≠"BOGO".
General Sale parameters
View General Sale parameters
DealScope optional
DealScope optionalTo what extent the deal applies to the store.
| View possible enum values | |
|---|---|
PRODUCT | Deal only applies to a specific product or a specific group of products. |
CATEGORY | Deal applies to a category of products. |
ENTIRE_STORE | Deal applies to the entire store. |
DiscountType optional
DiscountType optionalWhat kind of discount a consumer will get. Use only if Type="GENERAL_SALE".
| View possible enum values | |
|---|---|
FIXED | Deal gives a fixed amount off. |
PERCENT | Deal gives a percentage off. |
PERCENT_RANGE | Deal gives a percentage range off. |
PERCENT_MAXIMUM | Deal gives up to a certain percentage off. |
DiscountAmount optional
DiscountAmount optionalDeal's discount amount. Cannot use if DiscountType≠"FIXED".
ProductName optional
ProductName optionalProduct's name. Cannot use if DiscountScope≠"Product".
ProductFileName optional
ProductFileName optionalProduct's image file name. Cannot use if DiscountScope≠"Product".
RegularPrice optional
RegularPrice optionalProduct's original price. Cannot use if DiscountScope≠"Product".
DealPrice optional
DealPrice optionalProduct's deal price. Cannot use if DiscountScope≠"Product".
PurchaseLimitQuantity optional
PurchaseLimitQuantity optionalMaximum quantity of "buy" product purchasable in one transaction. Enter 0 to have no purchase limit. Cannot use if DiscountScope≠"Product".
Categories optional
Categories optionalDeal category information. Cannot use if Scope≠"CATEGORY".
DiscountPercent optional
DiscountPercent optionalDeal's discount percent. Cannot use if DiscountType≠"PERCENT".
DiscountPercentRangeStart optional
DiscountPercentRangeStart optionalBeginning of the discount range. Cannot use if DiscountType≠"PERCENT_RANGE".
DiscountPercentRangeEnd optional
DiscountPercentRangeEnd optionalEnd of the discount range. Cannot use if DiscountType≠"PERCENT_RANGE".
DiscountMaximumPercent optional
DiscountMaximumPercent optionalMaximum discount percent. Cannot use if DiscountType≠"PERCENT_MAXIMUM".
Gift parameters
View Gift parameters
Gift optional
Gift optionalName of the gift that comes with a purchase. Cannot use if Type≠"GIFT_WITH_PURCHASE".
DealScope optional
DealScope optionalTo what extent the deal applies to the store.
| View possible enum values | |
|---|---|
PRODUCT | Deal only applies to a specific product or a specific group of products. |
CATEGORY | Deal applies to a category of products. |
ENTIRE_STORE | Deal applies to the entire store. |
ProductName optional
ProductName optionalProduct's name. Cannot use if DiscountScope≠"Product".
ProductFileName optional
ProductFileName optionalProduct's image file name. Cannot use if DiscountScope≠"Product".
RegularPrice optional
RegularPrice optionalProduct's original price. Cannot use if DiscountScope≠"Product".
DealPrice optional
DealPrice optionalProduct's deal price. Cannot use if DiscountScope≠"Product".
PurchaseLimitQuantity optional
PurchaseLimitQuantity optionalMaximum quantity of "buy" product purchasable in one transaction. Enter 0 to have no purchase limit. Cannot use if DiscountScope≠"Product".
Categories optional
Categories optionalDeal category information. Cannot use if Scope≠"CATEGORY".
Rebate parameters
View Rebate parameters
RebateAmount optional
RebateAmount optionalPurchase rebate amount. Cannot use if Type≠"REBATE".
DealScope optional
DealScope optionalTo what extent the deal applies to the store.
| View possible enum values | |
|---|---|
PRODUCT | Deal only applies to a specific product or a specific group of products. |
CATEGORY | Deal applies to a category of products. |
ENTIRE_STORE | Deal applies to the entire store. |
ProductName optional
ProductName optionalProduct's name. Cannot use if DiscountScope≠"Product".
ProductFileName optional
ProductFileName optionalProduct's image file name. Cannot use if DiscountScope≠"Product".
RegularPrice optional
RegularPrice optionalProduct's original price. Cannot use if DiscountScope≠"Product".
DealPrice optional
DealPrice optionalProduct's deal price. Cannot use if DiscountScope≠"Product".
PurchaseLimitQuantity optional
PurchaseLimitQuantity optionalMaximum quantity of "buy" product purchasable in one transaction. Enter 0 to have no purchase limit. Cannot use if DiscountScope≠"Product".
Categories optional
Categories optionalDeal category information. Cannot use if Scope≠"CATEGORY".
DefaultPromoCode optional
DefaultPromoCode optionalDeal's default promo code. Cannot update via API.
MinimumPurchaseAmount optional
MinimumPurchaseAmount optionalDeal's minimum purchase amount. Cannot update via API.
MaximumSavingsAmount optional
MaximumSavingsAmount optionalDeal's maximum purchase savings. Cannot update via API.
LimitedTimeDeal optional
LimitedTimeDeal optionalSet a time range that the deal will be active. Cannot update via API.
RestrictedMediaPartners array
RestrictedMediaPartners arrayArray of partner names that can use the deal. Cannot update
RestrictedMediaPartnerGroups array
RestrictedMediaPartnerGroups arrayArray of partner groups that can use the deal.
Returns
Returns the status of the request and the URI of the newly updated deal. Returns an error if update parameters are invalid.
Example Request
curl 'https://api.impact.com/Advertisers/<AccountSID>/Deals/00003' \
-X PUT \
-u '<AccountSID>:<AuthToken>' \
-H 'Accept: application/json' \
-d 'Description="This is a description"' \
-d 'EndDate=2021-12-15T10:10:07-08:00' \
-d 'Name=ACME Deal 17' \
-d 'StartDate=2021-12-11T10:10:07-08:00' \
-d 'SynchAdsPromoCodes=false'Example Response
{
"Status": "OK",
"Uri": "/Advertisers/<AccountSID>/Deals/00003/"
}