Attributes
Id integer
Id integerThe unique identifier assigned to the promo code.
Code string
Code stringThe string of numbers and letters that make up the promo code.
Uri string (URI)
Uri string (URI)URI for this promo code resource.
State enum
State enumThe status of the promo code. Allowed: ACTIVE, FUTUREDATE, EXPIRED.
Program object
Program objectDetails about the associated program (Id, Name, Uri).
Advertiser object
Advertiser objectDetails about the associated brand (Id, Name, Uri, LogoUri).
Deal object
Deal objectDetails about the associated deal (Id, Name, Uri).
MatchMode enum
MatchMode enumThe matching type of each promo code. Allowed values: LI (Exact match), RE (Regex match).
CreditRule enum
CreditRule enumThe credit policy assigned to the promo code. Allowed values: ALWAYS, INVOLVED, WINNER.
CreatedDate string
CreatedDate stringThe ISO8601 date/time promo code was created.
StartDate string
StartDate stringThe ISO8601 date/time promo code becomes active. If unspecified, promo code starts at creation time.
EndDate string
EndDate stringThe ISO 8601 date/time promo code becomes inactive. If unspecified, the promo code remains active indefinitely.
{
"Id": 123456,
"Code": "SUMMER21",
"Uri": "/Mediapartners/<AccountSID>/PromoCodes/123456",
"State": "ACTIVE",
"Program": {
"Id": 7890,
"Name": "Summer Sale Program",
"Uri": "/Mediapartners/<AccountSID>/Programs/7890"
},
"Advertiser": {
"Id": 4567,
"Name": "Acme Corp",
"Uri": "/Mediapartners/<AccountSID>/Advertisers/4567",
"LogoUri": "https://example.com/logos/acme.png"
},
"Deal": {
"Id": 2345,
"Name": "Summer Deal",
"Uri": "/Mediapartners/<AccountSID>/Deals/2345"
},
"MatchMode": "LI",
"CreditRule": "ALWAYS",
"CreatedDate": "2025-07-01T12:00:00Z",
"StartDate": "2025-07-15T00:00:00Z",
"EndDate": "2025-08-15T23:59:59Z"
}