Offers

Create, retrieve, update, delete, and list targeted promotional offers.

View as Markdown

An offer is a targeted promotion — such as buy-one-get-one, free shipping, or a fixed discount — that activates when a customer's order meets defined qualifying criteria. Unlike coupons, offers are applied automatically when criteria are satisfied rather than requiring a code.

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 offer objectAsk

idstring

Unique identifier for the offer, e.g. ofr_3Fj7tN.

namestring

Human-readable name for the offer, e.g. Free Shipping on Orders Over $50.

typeenum

One of bogo (buy-one-get-one), free_shipping, or fixed_discount.

valueinteger

The value of the promotion in the smallest currency unit — the discount amount for fixed_discount, the shipping credit for free_shipping, or null for bogo.

criteriaobject

Qualifying conditions that must be met for the offer to apply.

activeboolean

true if the offer is currently live and will be evaluated at checkout.

starts_atinteger

Unix timestamp when the offer becomes active.

ends_atinteger

Unix timestamp when the offer expires. null if open-ended.

createdinteger

Unix timestamp when this offer was created.

Create an offerAsk

Define the offer type, value, and qualifying criteria. Offers become active immediately unless a future starts_at is provided.

Retrieve an offerAsk

Fetch an offer by its ID.

Update an offerAsk

Toggle the offer active state or extend the end date. type, value, and criteria are immutable after creation.

ParameterTypeDescription
activebooleanSet to false to immediately deactivate the offer.
ends_atintegerNew Unix timestamp for the offer expiry.

Delete an offerAsk

Permanently deletes an offer. It will no longer be evaluated at checkout.

List offersAsk

Returns a paginated list of offers. Filter by active to show only live promotions.

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

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

Was this page helpful?