Promotions
Campaigns an account can claim, offered to it in a list or reached by typing a code, and what each would give before it is claimed. Eligibility is settled before a place is taken, so a refused claim never uses one up.
Lists the promotions this account can still claim.
Lists the promotions this account can still claim. › Responses
OK
What this account can claim, the ones closing soonest first and the open-ended ones last.
Shows what a promotion code would give this account, without claiming it.
Shows what a promotion code would give this account, without claiming it. › Request Body
codeThe code, as typed. Folded to upper case here, so the case somebody used does not matter. Bounded by the same length an operator may give one.
Shows what a promotion code would give this account, without claiming it. › Responses
OK
allowsFeedbackWhether claiming it switches on comments.
allowsInvitedViewersWhether claiming it switches on private sharing by email.
allowsPasswordProtectionWhether claiming it switches on password protection.
codeIts code, or null when there is none to type.
deltaAccountBytes^-?(?:0|[1-9]\d*)$ · requiredExtra storage it gives, or null when it gives none.
deltaMaxCustomDomains^-?(?:0|[1-9]\d*)$ · requiredExtra custom domains it gives.
deltaSitesPerDay^-?(?:0|[1-9]\d*)$ · requiredExtra sites a day the account may create, or null. Only ever set on a campaign aimed at named accounts, so only an account the operator chose ever reads a figure here.
deltaWriteOpsPerDay^-?(?:0|[1-9]\d*)$ · requiredExtra publishing operations a day, or null.
deltaWriteOpsPerMonth^-?(?:0|[1-9]\d*)$ · requiredExtra publishing operations a month, or null.
endsAtWhen claiming closes, or null when it does not.
grantExpiresAfterDays^-?(?:0|[1-9]\d*)$ · requiredHow long what it gives lasts, or null for good.
idThe campaign, which is what a button with no code to type sends back.
nameWhat to call it on the banner.
placesLeft^-?(?:0|[1-9]\d*)$ · requiredHow many accounts may still claim it, or null when any number may. Read a moment ago and acted on a moment later, so it is a number to show rather than a number to trust — the redeem endpoint is what decides, and it decides in one statement.
suppressesBadgeWhether claiming it takes the Drop2Run badge off.
Claims a promotion for this account.
Claims a promotion for this account. › Request Body
codeThe code, as typed. Folded to upper case here, so the case somebody used does not matter.
promotionIdThe campaign's id, for an offer that was listed — a button rather than something to type. Refused for a
campaign whose audience is Code: there the code is the only way in.
Claims a promotion for this account. › Responses
OK
expiresAtWhen the grant runs out, or null when it does not.
nameIts name, so the page can say what was applied without a second call.
promotionIdThe campaign claimed.