Payments
List payments
GET
/api/merchants/paymentsPaginated list of every sale recorded for the calling merchant, newest first. Use it to reconcile when you suspect a missed webhook.
- Responds
{ success, payments, total, page, limit }.totalis the count matching the filter, not the page size. - Rows are full payment records — every field on the payment, including
webhook_delivered_atandwebhook_last_error, which is the fastest way to see why a callback never arrived.
Authentication
Accepts either an API key (X-API-Key) or a dashboard JWT (Authorization: Bearer …).
Query parameters
pagenumberoptionaldefault 1
limitnumberoptionaldefault 20
statuspendingpaidexpiredfailedoptionalGET
/api/merchants/paymentscurl "https://api.trevi.cash/api/merchants/payments?status=paid&limit=50" \
--header "X-API-Key: $TREVI_API_KEY"Was this page helpful?
