Alerts
List, retrieve, and action network alerts for accessible organisations.
Base URL: https://api.chargebackstop.com/v1/alerts/
Authentication: Bearer token via API key.
Required abilities:
alerts:readfor GET endpointsalerts:writefor PATCH endpoints
Access scope model:
Organisation-level keys can access alerts for their own organisation only.
Admin partner-group keys can access alerts across all organisations for their partner.
Non-admin partner-group keys can access alerts only for organisations assigned to their group.
GET /v1/alerts - list alerts
Returns a paginated list of alerts accessible to the authenticated key.
API level: Organisation-level and partner-level
Authentication: alerts:read
Query parameters
status
string
Filter by alert status: ACTION_REQUIRED, RESOLVED, INVALID
organisation_id
string
Filter by organisation ID
merchant_id
string
Filter by merchant ID
alert_received_at_gte
datetime
Include alerts received at or after this timestamp (ISO 8601, inclusive)
alert_received_at_lte
datetime
Include alerts received at or before this timestamp (ISO 8601, inclusive)
sort
string
Sort field: -alert_received_at (default), alert_received_at, -action_required_deadline, action_required_deadline
limit
integer
Number of results per page
offset
integer
Number of results to skip
Important behaviour
If both
alert_received_at_gteandalert_received_at_lteare sent,alert_received_at_gtemust be less than or equal toalert_received_at_lte.Default sort order is newest alert received first (
-alert_received_at).
GET /v1/alerts/{alert_id} - get alert by ID
Returns one alert if it is visible to the authenticated key.
API level: Organisation-level and partner-level
Authentication: alerts:read
URL parameters
alert_id
string
Alert ID
Important behaviour
The same eligibility rules as list alerts apply.
Non-existent alerts return
404 Not found.
PATCH /v1/alerts/{alert_id} - update alert
Updates the alert note and/or actions the alert.
API level: Organisation-level and partner-level
Authentication: alerts:write
URL parameters
alert_id
string
Alert ID to update
Request body
All fields are optional.
action
string
No
Action to apply: REFUND, CANCEL, REFUND_AND_CANCEL, ACCEPT_DISPUTE
note
string
No
Customer-facing note saved on the alert
Important behaviour
If
noteis provided, it is saved on the alert.If
actionis omitted, only the note is updated.Once an alert is in
RESOLVED, it cannot be actioned again.Action values map to available underlying actions at runtime. For detailed behaviour, see Actioning alerts:
REFUNDprioritises refund actions.CANCELprioritises cancel/dismiss actions.REFUND_AND_CANCELprioritises combined refund-and-cancel, then refund-only if combined action is unavailable.ACCEPT_DISPUTEmaps to dismissing the alert.
Common error responses
Error responses use this shape:
Example 7: 422 Unprocessable Entity (invalid date range)
Returned when alert_received_at_gte is greater than alert_received_at_lte.
Last updated
Was this helpful?