Campaigns

Create, retrieve, update, delete, and list marketing campaigns.

View as Markdown

A campaign is a time-boxed marketing initiative that groups related coupons or offers under a single trackable entity. Use campaigns to coordinate promotions with defined start and end dates and monitor aggregate redemption activity.

Illustrative content. Hand-authored to demonstrate the Standard/Advanced pattern; the production page will be generated from the VINR OpenAPI spec (roadmap item #1). Field names are representative.

The campaign objectAsk

idstring

Unique identifier for the campaign, e.g. cmp_6Eg4rS.

namestring

Human-readable name for the campaign, e.g. Summer Sale 2026.

typeenum

One of coupon or offer, indicating the kind of promotion this campaign groups.

starts_atinteger

Unix timestamp when the campaign becomes active.

ends_atinteger

Unix timestamp when the campaign ends. After this point redemptions are rejected.

activeboolean

true if the campaign is currently running (between starts_at and ends_at and not manually deactivated).

redemption_countinteger

Total number of redemptions recorded against coupons or offers in this campaign.

createdinteger

Unix timestamp when this campaign was created.

Create a campaignAsk

Define the campaign name, type, and schedule. Coupons or offers are associated with a campaign at creation time on the coupon/offer object.

Retrieve a campaignAsk

Fetch a campaign by its ID.

Update a campaignAsk

Update the campaign name, end date, or active status. You cannot change type after creation.

ParameterTypeDescription
namestringNew display name for the campaign.
ends_atintegerNew Unix timestamp for the campaign end date.
activebooleanSet to false to manually deactivate a campaign before its end date.

Delete a campaignAsk

Permanently deletes a campaign. Existing redemptions are preserved but no new redemptions can be recorded against this campaign.

List campaignsAsk

Returns a paginated list of campaigns. Filter by active to show only currently running campaigns.

ParameterTypeDescription
activebooleanReturn only active (true) or inactive (false) campaigns.
limitintegerNumber of results to return. Default 10, max 100.

campaign.created, campaign.updated, and campaign.ended. See Events.

Was this page helpful?