The tracking value request object holds information about a tracking value request, like a partner's request for a promo code. You can retrieve, approve, and reject a tracking value request, as well as list all tracking value requests.
Attributes
Id
string
Id
stringUnique identifier for the object referred to as the Tracking Value Request Object.
CampaignId
integer
CampaignId
integerId
of the program (formerly known as campaign) that received the request.
CampaignName
string
CampaignName
stringName of the program (formerly known as campaign) that received the request.
MediaPartnerId
integer
MediaPartnerId
integerId
of the partner (formerly known as media partner) that sent the request.
MediaPartnerName
string
MediaPartnerName
stringName of the partner (formerly known as media partner) that sent the request.
RequestType
optional
RequestType
optionalWhat kind of tracking value the partner requested.
View possible enum values | |
---|---|
PROMOCODE_TRACKING | Partner requested a promo code. |
BRANDED_URL_TRACKING | Partner requested a unique tracking URL. |
PHONE_NUMBER_TRACKING | Partner requested a trackable phone number. |
PromoCodes
array
PromoCodes
arrayArray of information about the requested promo code. Will be empty unless RequestType: "PROMOCODE_TRACKING"
.
View child attributes
Id
string
Id
stringId of the promo code.
RequestedPromoCode
string
RequestedPromoCode
stringWhat the partner wants the promo code to be.
ApprovedPromoCode
string
ApprovedPromoCode
stringPromo code you have approved the partner to use.
CreditPolicy
enum
CreditPolicy
enumHow the credited partner is chosen.
View possible enum values | |
---|---|
ALWAYS | The promo code's assigned partner will always be credited with the sale. |
INVOLVED | The promo code's assigned partner will be credited with the sale if they were involved in the conversion path. |
WINNER | The promo code's assigned partner will be credited with the sale if they drove the winning referral in the conversion path. |
MatchMode
enum
MatchMode
enumHow the promo code matches how the consumer uses it to how it is listed with impact.com. Required if RequestType: "PROMOCODE_TRACKING"
.
View possible enum values | |
---|---|
LI | EXACT match type. When a customer enters a promo code on a store page, it must exactly match how it was entered in impact.com to be tracked. |
RE | REGEX match type. When a customer enters a promo code on a store page, it must match the regular expression of how the promo code was entered in impact.com to be tracked. Learn more about regular expression. Test a regular expression. |
UniqueUrls
array
UniqueUrls
arrayArray of information about the requested unique URL. Will be empty unless RequestType: "BRANDED_URL_TRACKING"
.
View child attributes
Id
string
Id
stringId of the unique URL.
Url
string
Url
stringThe unique URL assigned to the partner.
PhoneNumbers
array
PhoneNumbers
arrayArray of information about the requested tracking phone number. Will be empty unless RequestType: "PHONE_NUMBER_TRACKING"
.
View child attributes
Id
string
Id
stringId of the tracking phone number.
AssignedPhoneNumberId
string
AssignedPhoneNumberId
stringId of the phone number assigned to the partner.
AssignedPhoneNumber
string
AssignedPhoneNumber
stringTracking phone number that partners can use in their marketing efforts.
State
enum
State
enumWhat state the tracking value request is in.
View possible enum values | |
---|---|
APPROVED | Approved tracking value request. |
COMPLETED | Completed tracking value request. |
DECLINED | Declined tracking value request. |
NEW | New tracking value request. |
DatePlaced
datetime
DatePlaced
datetimeDate and time the partner submitted the tracking value request. See ISO 8601.
DateNeeded
datetime
DateNeeded
datetimeDate and time the partner needs the tracking value request by. See ISO 8601.
DateCompleted
datetime
DateCompleted
datetimeDate and time the tracking value request was completed. Will be empty if not completed. See ISO 8601.
Uri
string
Uri
stringTracking value request's direct URI to view only one specific request.
More Attributes
View more attributes
NumberRequested
integer
NumberRequested
integerNumber of requested tracking values.
AdditionalInstructions
string
AdditionalInstructions
stringAny additional instructions the partner has for the request.
ProcessingComments
string
ProcessingComments
stringAny comments you have about the request that came up during processing.
DealId
integer
DealId
integerId of the associated deal. Will be empty if no deal is associated with the request.
Name
string
Name
stringName of the associated deal. Will be empty if no deal is associated with the request.
Description
string
Description
stringDescription of the associated deal, like information about it or what it does. Will be empty if no deal is associated with the request.
DealState
enum
DealState
enumWhat state the associated deal is in. Will be empty if no deal is associated with the request.
View possible enum values | |
---|---|
ACTIVE | Deal is currently active. |
EXPIRED | Deal is not currently active. |
PENDING | Deal is currently waiting for approval. |
DealType
enum
DealType
enumWhat the associated deal does. Will be empty if no associated deal.
View possible enum values | |
---|---|
GENERAL_SALE | Deal applies a general discount to the products identified in `DealScope`. |
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. |
DealScope
enum
DealScope
enumTo what extent the deal applies to the store.
View 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. |
Products
array
Products
array If DealScope: "PRODUCT"
, then an array of product info objects appears. Child attributes will also appear.
View child attributes
ProductName
string
ProductName
stringProduct's name.
ProductImageURL
string
ProductImageURL
stringURL that leads to the product's image.
ProductBeforePriceAmount
integer
ProductBeforePriceAmount
integerProduct's price prior to the deal applying.
ProductBeforePriceCurrency
string
ProductBeforePriceCurrency
stringProduct's currency code prior to the deal applying. See [ISO 4217](https://en.wikipedia.org/wiki/ISO_42170.
ProductAfterPriceAmount
integer
ProductAfterPriceAmount
integerProduct's price after the deal applies.
ProductAfterPriceCurrency
string
ProductAfterPriceCurrency
stringProduct's currency code after the deal applies
DealCategories
array
DealCategories
arrayIf Scope: "CATEGORY"
, then an array of category info appears.
DiscountType
enum
DiscountType
enumType of deal discount that will apply to the category.
View 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
stringIf DiscountType="FIXED"
, then the discount currency code appears. See ISO 4217.
DiscountPercent
percentage
DiscountPercent
percentageIf DiscountType="PERCENT"
, then the discount percent appears.
DiscountMaximumPercent
percentage
DiscountMaximumPercent
percentageIf DiscountType="PERCENT_MAXIMUM"
, then the maximum discount percentage appears.
DiscountPercentRangeStart
percentage
DiscountPercentRangeStart
percentageIf DiscountType="PERCENT_RANGE"
, then the discount range beginning appears.
DiscountPercentRangeEnd
percentage
DiscountPercentRangeEnd
percentageIf DiscountType="PERCENT_RANGE"
, then the discount range end appears.
Gift
string
Gift
stringIf Type="GIFT_WITH_PURCHASE"
, then the gift's name appears.
RebateAmount
decimal
RebateAmount
decimalIf Type="REBATE"
, then the rebate's amount appears.
RebateCurrency
string
RebateCurrency
stringIf Type="REBATE"
, then the rebate's currency code appears. See ISO 4217.
DealDefaultPromoCode
string
DealDefaultPromoCode
stringDefault promo code consumers can use to activate the deal when making a purchase.
MinimumPurchaseAmount
decimal
MinimumPurchaseAmount
decimalMinimum amount the consumer needs to spend for the deal to apply.
MinimumPurchaseAmountCurrency
string
MinimumPurchaseAmountCurrency
stringCurrency of the deal's minimum purchase amount. See ISO 4217.
MaximumSavingsAmount
integer
MaximumSavingsAmount
integerMaximum amount a consumer can save when the deal applies.
MaximumSavingsCurrency
string
MaximumSavingsCurrency
stringCurrency of the deal's maximum purchase savings. See ISO 4217.
BogoBuyQuantity
integer
BogoBuyQuantity
integer If DealType="BOGO"
, the "buy" amount appears.
BogoBuyScope
enum
BogoBuyScope
enum if Type="BOGO"
, the "buy" scope appears. Will be empty if DealType≠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. |
BogoBuyName
string
BogoBuyName
stringIf DealType="BOGO"
, the "buy" product name appears.
BogoBuyImageUrl
string
BogoBuyImageUrl
stringIf DealType="BOGO"
, the "buy" product image URL appears.
BogoGetQuantity
integer
BogoGetQuantity
integerIf Dealype="BOGO"
, the "get" amount appears.
BogoGetScope
enum
BogoGetScope
enum If DealType="BOGO"
, the "get" scope appears. Will be empty if DealType≠"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. |
BogoGetDiscountType
enum
BogoGetDiscountType
enumIf DealType="BOGO"
, the "get" discount type appears. Will be empty if DealType≠"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. |
PERCENT | Customer will receive a percent off of the `GET` item's cost. |
BogoGetName
string
BogoGetName
stringIf DealType="BOGO"
, the "get" product name appears.
BogoGetImageUrl
string
BogoGetImageUrl
stringIf DealType="BOGO"
, the "get" product image URL appears.
BogoGetDiscountAmount
decimal
BogoGetDiscountAmount
decimalIf BogoGetDiscountType="AMOUNT"
, the "get" discount amount appears.
BogoGetDiscountCurrency
string
BogoGetDiscountCurrency
stringIf BogoGetDiscountType="AMOUNT"
, the currency of the "get" discount amount appears.
BogoGetDiscountPercent
percentage
BogoGetDiscountPercent
percentageIf BogoGetDiscountType="PERCENT"
, the "get" discount percent appears.
PurchaseLimitQuantity
integer
PurchaseLimitQuantity
integerIf DealType="BOGO"
, the amount of "buy" product purchasable at once. If 0
, no purchase limit.
StartDate
datetime
StartDate
datetimeDate and time the deal begins. See ISO 8601.
EndDate
datetime
EndDate
datetimeDate and time the deal ends. See ISO 8601.
SynchAdsPromoCodes
boolean
SynchAdsPromoCodes
booleanHas the value true
if the deal aligns the state and date range of all ads and promo codes to the deal's. Has the value false
if the deal does not have this.
DealRestrictedMediaPartners
array
DealRestrictedMediaPartners
arrayArray of partner names that can use the deal.
DealRestrictedMediaPartnerGroups
array
DealRestrictedMediaPartnerGroups
arrayArray of partner groups that can use the deal.
{
"Id": "55555",
"CampaignId": "1000",
"CampaignName": "ACME Campaign",
"MediaPartnerId": "10000",
"MediaPartnerName": "Partner Person",
"RequestType": "PROMOCODE_TRACKING",
"NumberRequested": "1",
"PromoCodes": [
{
"Id": "50000",
"RequestedPromoCode": "Promo Code",
"ApprovedPromoCode": "Promo Code",
"CreditPolicy": "ALWAYS",
"MatchMode": "LI"
}
],
"UniqueUrls": [],
"PhoneNumbers": [],
"State": "NEW",
"DatePlaced": "2021-01-28T16:23:49-05:00",
"DateNeeded": "2021-01-31T00:00:00-05:00",
"DateCompleted": "",
"AdditionalInstructions": "Some additional instructions.",
"ProcessingComments": "",
"DealId": "",
"DealName": "",
"DealDescription": "",
"DealState": "",
"DealType": "",
"DealScope": "",
"DealProducts": [],
"DealCategories": "",
"DiscountType": "",
"DiscountAmount": "",
"DiscountCurrency": "",
"DiscountPercent": "",
"DiscountMaximumPercent": "",
"DiscountPercentRangeStart": "",
"DiscountPercentRangeEnd": "",
"Gift": "",
"RebateAmount": "",
"RebateCurrency": "",
"DealDefaultPromoCode": "",
"MinimumPurchaseAmount": "",
"MinimumPurchaseAmountCurrency": "",
"MaximumSavingsAmount": "",
"MaximumSavingsCurrency": "",
"BogoBuyQuantity": "",
"BogoBuyScope": "",
"BogoBuyName": "",
"BogoBuyImageUrl": "",
"BogoGetQuantity": "",
"BogoGetScope": "",
"BogoGetDiscountType": "",
"BogoGetName": "",
"BogoGetImageUrl": "",
"BogoGetDiscountAmount": "",
"BogoGetDiscountCurrency": "",
"BogoGetDiscountPercent": "",
"PurchaseLimitQuantity": "",
"DealStartDate": "",
"DealEndDate": "",
"SynchAdsPromoCodes": "",
"DealRestrictedMediaPartners": [],
"DealRestrictedMediaPartnerGroups": [],
"Uri": "/Advertisers/<AccountSID>/TrackingValueRequests/55555"
}