Quiverblocks chooses Diggama to deliver 200+ articles every month

Commerce & Marketing · Blueprint

Promotions & Offers

Run sales without redeploying. Promotions carry their code, discount type, and start and end times, while banners bind each campaign to specific storefront placements with their own artwork and colors. Your frontend reads active promotions by date and placement, and campaigns switch on and off by themselves.

content types
2
fields
20
sample records
3

Schema

What's inside

Every content type ships pre-configured with typed fields, validation and relationships.

01

Promotion

A campaign with discount mechanics, validity window, and terms.

12 fields

title Text
slug Slug
summary Text
details RichText
promo_code Text
discount_type Enum
discount_value Text
starts_at DateTime
ends_at DateTime
cta_link Link
hero_image Image
active Boolean
02

Banner

A placement-specific creative that advertises a promotion somewhere in the storefront.

8 fields

name Text
slug Slug
placement Enum
headline Text
image Image
background_color Color
promotion Reference
cta_label Text

REST API

Promotion, as JSON.

Each content type of the blueprint is served by the REST API, with filtering, sorting, search and pagination.

Explore the API docs
GET /v1/resources/promotion/1 200
{
  "id": 1,
  "status": "published",
  "data": {
    "title": "Summer Sale 2026",
    "slug": "summer-sale-2026",
    "summary": "…",
    "details": "<p>…</p>",
    "promo_code": "…",
    "discount_type": "…",
    "discount_value": "…",
    "starts_at": "2026-09-22T09:00:00Z",
    "ends_at": "2026-09-22T09:00:00Z"
  }
}

Sample data

Ships with sample data

Install the blueprint and explore it with realistic example records.

  • Sample

    Summer Sale 2026

    20 percent off sitewide with code SUMMER20, running June 15 to June 30

  • Sample

    Summer Sale homepage hero

    Homepage hero banner with key visual and Shop the sale CTA, linked to Summer Sale 2026

  • Sample

    Free shipping September

    Free shipping promotion with no code required, shown only on cart and checkout placements

Features

Why this blueprint

  • Campaigns on a timer Start and end datetimes let offers appear and expire on schedule, with a manual kill switch for emergencies.
  • Placement-aware banners Each banner declares its storefront slot, so one campaign fans out to hero, cart, and checkout with tailored creative.
  • No-deploy merchandising Marketers launch, tweak, and retire offers entirely in the CMS while the frontend just reads what is active.

Use cases

Built for

  • An e-commerce team scheduling Black Friday banners across homepage, cart, and checkout weeks ahead
  • A marketer launching a flash sale with a promo code and pulling it early with the active toggle
  • A regional team running localized offers by pointing placements at different promotions
  • A CRM team reusing promotion records to keep email and site messaging consistent

Related

More in Commerce & Marketing

Browse all blueprints

Start with the Promotions & Offers blueprint

Install it in one click, explore the sample data, then adapt every field to your needs.

No credit card required · 3 months free trial · Cancel anytime