Prevail Group of Companies

API Reference

Reports

With X-Admin-Key the whole group is visible (optionally narrowed with ?sbuCode=); with an X-SBU-Key results are always scoped to that SBU. All three accept the same date filters and default to the last 30 days.

Received by SBU

Amounts received per SBU per currency — paid transactions only.

GET/api/v1/reports/by-sbu
Auth: X-SBU-Key or X-Admin-Key

Query parameters

FieldTypeDescription
fromdateInclusive start (YYYY-MM-DD, UTC). Default: 30 days ago.
todateInclusive end (YYYY-MM-DD, UTC). Default: today.
sbuCodestringAdmin only — narrow to one SBU.
Request
curl 'https://13-247-53-102.sslip.io/api/v1/reports/by-sbu?from=2026-07-01&to=2026-07-31' \
  -H 'X-Admin-Key: your_admin_key'

Response

FieldTypeDescription
sbuCode / sbuNamestringThe SBU the row belongs to.
currencyCodestring"840" = USD, "924" = ZWG.
paidCountintegerNumber of paid transactions.
totalReceivednumberSum received in that currency.

Usage by method

Attempts, successes and totals per payment method — most used first.

GET/api/v1/reports/by-method
Auth: X-SBU-Key or X-Admin-Key

Query parameters

FieldTypeDescription
fromdateInclusive start (YYYY-MM-DD, UTC). Default: 30 days ago.
todateInclusive end (YYYY-MM-DD, UTC). Default: today.
sbuCodestringAdmin only — narrow to one SBU.
Request
curl 'https://13-247-53-102.sslip.io/api/v1/reports/by-method' \
  -H 'X-SBU-Key: sbu_your_key_here'

Response

FieldTypeDescription
methodenumThe payment method.
currencyCodestringCurrency of the row.
attemptsintegerTransactions initiated with this method.
paidCountintegerHow many of those were paid.
totalReceivednumberAmount received through this method.

Summary

Totals, most-used method and both breakdowns in one call — built for dashboards.

GET/api/v1/reports/summary
Auth: X-SBU-Key or X-Admin-Key

Query parameters

FieldTypeDescription
fromdateInclusive start (YYYY-MM-DD, UTC). Default: 30 days ago.
todateInclusive end (YYYY-MM-DD, UTC). Default: today.
sbuCodestringAdmin only — narrow to one SBU.
Request
curl 'https://13-247-53-102.sslip.io/api/v1/reports/summary?from=2026-07-01' \
  -H 'X-Admin-Key: your_admin_key'

Response

FieldTypeDescription
from / tostringThe resolved reporting window.
totalReceivedByCurrencyobjectTotals keyed by currency, e.g. { "840": 40.50 }.
mostUsedMethodenumMethod with the most attempts, or null.
bySbuarraySame rows as /reports/by-sbu.
byMethodarraySame rows as /reports/by-method.
  • Also returns byStatus (counts and value per status), daily (a gap-filled per-day series), attempts, paidCount, failedCount, pendingCount, pendingValueByCurrency, failureRate (share of *settled* attempts that failed, null when nothing has settled) and stuckCount (non-terminal for over 30 minutes).