The deal object holds information about deals of programs to which you belong. You can retrieve a deal or list all deals.
Atrributes
Id
integer
Id
integerUnique identifier for the object referred to as the impact.com Deal Id.
Name
string
Name
stringThis is the name of the deal.
Description
string
Description
stringThis field describes the nature of the deal.
CampaignId
integer
CampaignId
integerId
of the program (formerly known as campaigns) associated with the deal.
State
enum
State
enumWhat state of use the deal is in.
Possible enum values | |
---|---|
ACTIVE | Deal is currently active. |
EXPIRED | Deal is not currently active. |
PENDING | Deal is currently waiting for approval. |
Type
enum
Type
enumHow the deal is applied to the items in the ad.
Possible enum values | |
---|---|
GENERAL_SALE | Deal applies a general discount to the products identified in `Scope`. |
FREE_SHIPPING | Deal applies free shipping to the order. |
GIFT_WITH_PURCHASE | A gift will come with the order. |
REBATE | A rebate will be available to the customer upon purchase. |
BOGO | Deal will apply a buy-one-get-one deal to the order. |
Scope
enum
Scope
enumTo what extent the deal applies to the store.
Possible enum values | |
---|---|
CATEGORY | Deal applies to a category of products. |
ENTIRE_STORE | Deal applies to the entire store. |
PRODUCT | Deal only applies to a specific product or a specific group of products. |
Public
enum
Public
enumShows whether a deal is exclusive to you or available to other partners as well.
Possible enum values | |
---|---|
TRUE | This deal is available to other partners. |
FALSE | This deal is exclusive to you. |
Products
array
Products
arrayIf Scope: PRODUCT
, then an array of product info objects appears; the child attributes below will fill each object in the array.
View child attributes
name
string
name
stringName of the product that the deal applies to.
beforePrice
integer
beforePrice
integerProduct's price prior to the deal applying.
afterPrice
integer
afterPrice
integerProduct's price after the deal applying.
creativeType
enum
creativeType
enumThis is the type of ad creative to which the deal applies.
Online ad creatives |
---|
BANNER |
THUMBNAIL |
BANNER_THUMBNAIL |
AD_REQUEST |
IMAGE |
EMAIL |
TEXT |
TEXT_LINK |
LONG_SPONSORED_TEXT |
CONTENT |
COUPON |
VIDEO_CLICK_TO_PLAY_IMAGE |
VIDEO_THUMBNAIL |
VIDEO |
FLASH_BACKUP |
FLASH_THUMBNAIL |
FLASH |
CUSTOM |
Offline ad creatives |
---|
PRINT |
PRINT_THUMBNAIL |
CALL |
RADIO |
TV |
TV_THUMBNAIL |
TV_CLICK_TO_PLAY_IMAGE |
adHeadline
string
adHeadline
stringThe headline of the ad.
linkText
string
linkText
stringText that the ad link is linked to.
descriptionLine1
string
descriptionLine1
stringThe field that describes the deal.
descriptionLine2
string
descriptionLine2
stringAn additional field that describes the deal.
landingPageName
string
landingPageName
stringThe title of the landing page for the ad this deal is applied to.
offerInstructions
string
offerInstructions
stringTerms to meet in order to activate the deal.
content
byte | array
content
byte | arrayThis is a type of creative that can be imbed in HTML or email content. There are various child attributes that are contained in an array.
Content child attributes
height
integer
height
integerThe height of the creative.
width
integer
width
integerThe width of the creative.
byteSize
integer
byteSize
integerThe size of the byte creative.
emailCreativeType
enum
emailCreativeType
enumThe type of creative we are working with. This can be either HTML or IMAGE.
htmlContent
string
htmlContent
stringContent of the HTML, if any exists.
textContent
string
textContent
stringThe text content of this creative, if any exists.
limit
integer
limit
integerThe byte limit, typically this is a minimum value of -128 and a maximum value of 127.
Categories
string | array
Categories
string | arrayThis a comma-separated list of product categories the deal applies to.
DiscountType
enum
DiscountType
enumThe discount type that applies to this deal.
Possible enum values | |
---|---|
FIXED | Deal applies a fixed discount to the deal scope. |
PERCENT | Deal applies a percentage off of the deal scope. |
PERCENT_RANGE | Deal applies a percent within the percentage range off of the deal scope. |
PERCENT_MAXIMUM | Deal applies up to a certain percentage off of the deal scope. |
DiscountAmount
decimal
DiscountAmount
decimalIf DiscountType: "FIXED"
, then the discount amount appears.
DiscountCurrency
string
DiscountCurrency
stringThe currency of the discount the deal offers.
DiscountPercent
percentage
DiscountPercent
percentageIf DiscountType: "PERCENT"
, then the discount percent appears.
DiscountMaximumPercent
percentage
DiscountMaximumPercent
percentageIf DiscountType: "PERCENT_MAXIMUM"
, then the maximum discount percentage that a customer can get appears.
DiscountPercentRangeStart
percentage
DiscountPercentRangeStart
percentageIf DiscountType: "PERCENT_RANGE"
, then the lowest discount percentage a customer can get appears.
DiscountPercentRangeEnd
percentage
DiscountPercentRangeEnd
percentageIf DiscountType: "PERCENT_RANGE"
, then the highest discount percentage a customer can get appears.
Gift
string
Gift
stringIf DealType: "GIFT_WITH_PURCHASE"
, then the name of the product to be gifted appears.
RebateAmount
decimal
RebateAmount
decimalIf DealType: "REBATE"
, then the rebate's amount appears.
RebateCurrency
string
RebateCurrency
stringIf DealType: "REBATE"
, then the currency code for RebateAmount
appears. See ISO 4217.
DefaultPromoCode
string
DefaultPromoCode
stringThe original promo code for the associated deal.
MinimumPurchaseAmount
decimal
MinimumPurchaseAmount
decimalMinimum amount a customer needs to spend before the associated deal is applied.
MinimumPurchaseAmountCurrency
string
MinimumPurchaseAmountCurrency
stringCurrency code for the deal's MinimumPurchaseAmount
. See ISO 4217.
MaximumSavingsAmount
decimal
MaximumSavingsAmount
decimalMaximum amount a customer can save when the associated deal is applied.
MaximumSavingsCurrency
string
MaximumSavingsCurrency
stringCurrency code for the deal's MaximumSavingsAmount
. See ISO 4217.
BogoBuyQuantity
integer
BogoBuyQuantity
integerIf DealType: "BOGO"
, the amount of "buy" items needed for the deal to activate appears.
BogoBuyScope
enum
BogoBuyScope
enumIf DealType: "BOGO"
, the scope of "buy" items appears.
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 all of the products in the entire store. |
BogoBuyName
string
BogoBuyName
stringIf DealType: "BOGO"
, the name of the "buy" item(s) appears.
BogoBuyImageUrl
string
BogoBuyImageUrl
stringIf DealType: "BOGO"
, the URL leading to the "buy" product's image will appear.
BogoGetQuantity
integer
BogoGetQuantity
integerIf DealType: "BOGO"
, the amount of "get" items that the customer can get a discount on will appear.
BogoGetScope
enum
BogoGetScope
enumIf DealType: "BOGO"
, the scope of "get" items appears.
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 all of the products in the entire store. |
BogoGetDiscountType
enum
BogoGetDiscountType
enumIf DealType="BOGO"
, the type of discount applied to "get" items appears.
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. |
PERCENT | Customer will receive a percent off of the `get` item's cost. |
BogoGetName
string
BogoGetName
stringIf DealType: "BOGO"
, the name of the "get" item(s) appears.
BogoGetImageUrl
string
BogoGetImageUrl
stringIf DealType: "BOGO"
, the URL leading to the "get" product's image will appear.
BogoGetDiscountAmount
decimal
BogoGetDiscountAmount
decimalIf BogoGetDiscountType: "AMOUNT"
, the fixed discount amount taken off of the "get" item's price appears.
BogoGetDiscountCurrency
string
BogoGetDiscountCurrency
stringIf BogoGetDiscountType: "AMOUNT"
, the currency code for BogoGetDiscountAmount
appears.
BogoGetDiscountPercent
percentage
BogoGetDiscountPercent
percentageIf BogoGetDiscountType: "PERCENT"
, the discount percentage taken off of the "get" item's price appears.
PurchaseLimitQuantity
integer
PurchaseLimitQuantity
integerIf DealType: "BOGO"
, the amount of "buy" product that a customer can purchase at once appears. If 0
, no purchase limit exists.
StartDate
datetime
StartDate
datetimeDate and time that the deal begins. See ISO 8601.
EndDate
datetime
EndDate
datetimeDate and time that the deal ends. See ISO 8601.
DateCreated
datetime
DateCreated
datetimeThe date and time the deal was created. See ISO 8601.
DateLastUpdated
datetime
DateLastUpdated
datetimeThe date and time the deal was last updated. See ISO 8601.
Uri
string
Uri
stringUnique identifier reference to this object in the impact.com API.
{
"Id": "12345",
"Name": "ACME Deal",
"Description": "ACME Sale",
"CampaignId": "1234",
"State": "ACTIVE",
"Type": "GENERAL_SALE",
"Scope": "ENTIRE_STORE",
"Public": "FALSE",
"Products": [],
"Categories": "",
"DiscountType": "FIXED",
"DiscountAmount": "",
"DiscountCurrency": "",
"DiscountPercent": "",
"DiscountMaximumPercent": "",
"DiscountPercentRangeStart": "",
"DiscountPercentRangeEnd": "",
"Gift": "",
"RebateAmount": "",
"RebateCurrency": "",
"DefaultPromoCode": "",
"MinimumPurchaseAmount": "",
"MinimumPurchaseAmountCurrency": "",
"MaximumSavingsAmount": "",
"MaximumSavingsCurrency": "",
"BogoBuyQuantity": "0",
"BogoBuyScope": "",
"BogoBuyName": "",
"BogoBuyImageUrl": "",
"BogoGetQuantity": "0",
"BogoGetScope": "",
"BogoGetDiscountType": "",
"BogoGetName": "",
"BogoGetImageUrl": "",
"BogoGetDiscountAmount": "",
"BogoGetDiscountCurrency": "",
"BogoGetDiscountPercent": "",
"PurchaseLimitQuantity": "0",
"StartDate": "",
"EndDate": "",
"DateCreated": "2020-05-18T18:28:28-07:00",
"DateLastUpdated": "2021-02-16T15:27:11-08:00",
"Uri": "/Mediapartners/<AccountSID>/Campaigns/<CampaignId>/Deals/<Id>"
}