Sales pulse card

Today's revenue and orders with the day by hour, the latest orders and the top cities.

Category: Operations. Tags: Numbers and metrics, Charts and gauges, Stores.

Previews

Sales pulse
Canvas
Sales pulse
Corner
Sales pulse
Chip

Views and forms

Views: canvas, corner, chip. Canvas forms: landscape, portrait, square, strip.

Card views, themes and publishing. Browse the gallery.

Data and privacy

Feed: screenrig.sales/v1.

Feed documents carry source attribution. The Player supplies the feed to the card.

Shows revenue, order counts and the city of each order only; never a customer name, address or payment detail.

Properties

For theme, background, accent and position, see Common properties.

Set static properties in params. Bind data to a project card data key for live values; that document holds only dynamic properties. Without a data key, put the complete configuration in params. Nested rows describe the contents of their parent property.

Static properties

NameTypeDefaultValues and limitsDescription
titlestring"Sales pulse"maxLength: 40
currencystring"USD"maxLength: 3ISO 4217 code; the feed's wins.
rowsinteger5minimum: 1; maximum: 8Rows in each list.
staleMinutesinteger15minimum: 1; maximum: 1440A feed older than this shows how long ago it updated.

Dynamic properties

NameTypeDefaultValues and limitsDescription
storestring""maxLength: 60The shop the numbers describe; the feed's wins.
revenuenumber, nullnullminimum: 0; maximum: 1000000000000Revenue so far today.
ordersinteger, nullnullminimum: 0; maximum: 100000000Orders so far today.
goalnumber, nullnullminimum: 0; maximum: 1000000000000Revenue goal for today; empty shows no goal.
yesterdayRevenuenumber, nullnullminimum: 0; maximum: 1000000000000Revenue by this time yesterday; empty shows no comparison.
hourlyarray[]maxItems: 24Revenue for each hour of today in the screen's zone, midnight first.
citiesarray[]maxItems: 20Revenue by city, the same document as the screenrig.sales/v1 feed's cities.
cities[].namestringminLength: 1; maxLength: 60; RequiredA city or region.
cities[].revenuenumberminimum: 0; maximum: 1000000000; RequiredRevenue today from the city.
recentarray[]maxItems: 20The latest orders, the same document as the feed's recent.
recent[].atstringminLength: 1; maxLength: 40; RequiredWhen the order was placed, an ISO 8601 instant.
recent[].amountnumberminimum: 0; maximum: 1000000000; RequiredThe order total.
recent[].citystring""maxLength: 60Where it shipped to or was placed; never a customer.

Canvas example

Add this item to a playlist page’s primitives. Publish the playlist and assign a screen.

{
  "id": "sales-pulse",
  "primitive": "card",
  "card": "sales-pulse",
  "major": 1,
  "params": {
    "theme": "neomustard"
  },
  "rect": {
    "x": 0,
    "y": 0,
    "width": 1920,
    "height": 1080
  },
  "layer": 0,
  "content_fit": "fill",
  "data": "sales-pulse-main"
}

Write live data

Create this document before showing the card, then replace it to update the screen without republishing. Use the same project as the playlist. Supply your API authorization through the environment; see API authentication.

curl --request PUT "https://api.screenrig.ai/api/card-data/sales-pulse-main" \
  --header "Authorization: Bearer $SCREENRIG_TOKEN" \
  --header "ScreenRig-Project: $SCREENRIG_PROJECT" \
  --header "Content-Type: application/json" \
  --data '{"document":{"store":"","revenue":null,"orders":null,"goal":null,"yesterdayRevenue":null,"hourly":[],"cities":[],"recent":[]}}'