Skip to content

The payments event log: each provider event and what ReputeCast did with it

GET
/api/v1/workspaces/{workspace}/earn/payments/events
curl --request GET \
--url 'https://reputecast.example.com/api/v1/workspaces/acme-newsletter/earn/payments/events?group=all&range=24h&page=1&pageSize=8' \
--header 'Authorization: Bearer <token>'

Permission: earn:view

Raw events are kept 90 days. Payment events never go to the audit log.

workspace
required

Workspace slug

string
/^[a-z0-9][a-z0-9-]{1,62}$/

Workspace slug

group

A group of event types

string
default: all
Allowed values: all payments failures refunds changes trials

A group of event types

range

How far back (raw events are kept 90 days)

string
default: 7d
Allowed values: 24h 7d 30d 90d

How far back (raw events are kept 90 days)

q

Search the event type, the event id, the paid member or the raw event

string
<= 200 characters

Search the event type, the event id, the paid member or the raw event

test

Include test-mode events

boolean

Include test-mode events

page
integer format: int64
default: 1 >= 1
pageSize
integer format: int64
default: 8 >= 1 <= 100

OK

Media typeapplication/json
object
items
required
Array<object>
object
amountCents
integer format: int64
contactId
string
currency
string
detail
required
object
key
additional properties
eventId
required
string
eventUrl
string
id
required
string
memberEmail
string
memberId
string
memberName
string
mode
required
string
Allowed values: live test
occurredAt
required
string format: date-time
outcome
required
string
receivedAt
required
string format: date-time
source
required
string
Allowed values: webhook gap_check history manual
status
required
string
Allowed values: pending applied ignored failed rejected
type
required
string
page
required
integer format: int64
pageSize
required
integer format: int64
range
required
string
total
required
integer format: int64
types
required
Array<string>

Example

{
"items": [
{
"mode": "live",
"source": "webhook",
"status": "pending"
}
]
}

Error

Media typeapplication/problem+json
object
code

Stable error code, e.g. permission_denied

string
detail

A human-readable explanation specific to this occurrence of the problem.

string
errors

Optional list of individual error details

Array<object>
object
location

Where the error occurred, e.g. ‘body.items[3].tags’ or ‘path.thing-id’

string
message

Error message text

string
value

The value at the given location

helpers

Members who hold the missing permission

Array<string>
instance

A URI reference that identifies the specific occurrence of the problem.

string format: uri
meta
object
key
additional properties
permission

The missing permission key

string
status

HTTP status code

integer format: int64
title

A short, human-readable summary of the problem type. This value should not change between occurrences of the error.

string
type

A URI reference to human-readable documentation for the error.

string format: uri
default: about:blank

Example

{
"detail": "Property foo is required but is missing.",
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "about:blank"
}