Skip to main content
GET
Node.js

Authorizations

Authorization
string
header
required

A secret API key, made under Developers in the dashboard: Authorization: Bearer shoply_sk_...

Path Parameters

storeId
string
required

The store's ID. A key reaches the store it was made in: GET /key answers which.

Query Parameters

page
integer
default:1

Which page of the list. The first is 1.

perPage
integer
default:20

How many a page holds.

reason
enum<string>

Only events of this reason. changes is every change to the rules and settings.

Available options:
blacklist,
vpn,
country,
unpaid_limit,
dispute,
refund,
changes

Part of an email address, an IP address or a rule's value.

range
enum<string>

Only events in this period.

Available options:
today,
yesterday,
7d,
30d,
this_week,
last_week,
this_month,
last_month,
this_year
from
string

Only events on or after this day, as YYYY-MM-DD. With to, in place of range.

to
string

Only events on or before this day, as YYYY-MM-DD.

tz
string

The time zone those days are in, as an IANA name. Left out, UTC.

Response

It worked.

success
boolean
message
unknown
code
unknown
data
object[]
pages
integer
total
integer
meta
object