Skip to main content
GET
Get what a rule did

Authorizations

Authorization
string
header
required

A project key (Developers → API keys). Keep it on your server, not in an app.

Headers

traceparent
string

W3C Trace Context; joins your trace to ours

Path Parameters

id
string
required

A rule_… ID or the rule's key

Example:

"order-points"

Query Parameters

days
integer
default:30

How many past days to look at, 1 to 90

Required range: 1 <= x <= 90

Response

Get what a rule did

What the rule actually did, from the receipts

rule
string
required

The rule's key

period
object
required

The days a preview or the statistics looked at

receipts
integer
required

Times it changed something

Required range: x >= 0
users
integer
required

People it reached

Required range: x >= 0
given
object[]
required

What it gave, per unit. Negative for taking

skipped
object[]
required

Times it did not apply. Skips are kept for 30 days, so a longer period shows the last 30

top_users
object[]
required

The people it reached most in the period, by number of receipts, then by amount, then by ID

Maximum array length: 10