API ReferenceWooCommerceSDKssoonWebhookssoon

Payments

List payments

GET/api/merchants/payments

Paginated 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 }. total is the count matching the filter, not the page size.
  • Rows are full payment records — every field on the payment, including webhook_delivered_at and webhook_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

pagenumberoptional

default 1

limitnumberoptional

default 20

statuspendingpaidexpiredfailedoptional
GET/api/merchants/payments
curl "https://api.trevi.cash/api/merchants/payments?status=paid&limit=50" \
  --header "X-API-Key: $TREVI_API_KEY"