Skip to content

List payments

Request

🔐 Required role: API_ADMIN

📖 Data dictionary: Payment

Retrieve payment records with transaction details and security compliance

This operation accepts only pageSize and page; any other body property is rejected with 400. To filter, use POST /gql/v1/payments/search.

Pagination (v1 — limit/offset, see Pagination): pageSize is a limit (records to return). page is an offset (records to skip), not a page index. Hasura maps these as limit: $pageSize and offset: $page. When page is at or beyond total.aggregate.count, the result array is empty.

This endpoint provides secure payment data access with:

  • PCI-compliant payment information (masked card data)
  • Payment method categorization and tracking
  • Integration with AR transactions for complete context
  • Payment processor integration (PayPal, Stripe, etc.)
  • Client relationship data for payment attribution

Security & Compliance:

  • PCI DSS compliant data handling (last 4 digits only)
  • Secure payment processor ID tracking
  • Payment confirmation date logging
  • Audit trail for payment processing

Payment Method Support:

  • Credit/debit card payments with masked PAN
  • ACH/bank transfer processing
  • Check and wire transfer tracking
  • Digital wallet integration (PayPal, Apple Pay, etc.)

Reconciliation Features:

  • Payment-to-invoice matching via AR transactions
  • Payment confirmation status tracking
  • Processor reference ID management
  • Multi-currency payment support

Business Applications:

  • Payment reconciliation and matching
  • Revenue recognition and cash flow analysis
  • Client payment history and patterns
  • Payment method performance analysis
  • Compliance reporting and audit trails
Security
(BearerAuth and CfAccessClientId and CfAccessClientSecret) or BearerAuth
Bodyapplication/json
pageSizeinteger, [ 1 .. 1000 ]

Limit — number of records to return (not a page count). Hasura maps this to limit.

Default:50
Example:25
pageinteger, >= 0

Offset — number of records to skip. This is not a page index. To fetch the next N rows after the first N, send pageSize: N and page: N. An offset at or beyond total.aggregate.count returns an empty result array.

Default:0
Example:0
curl -i -X POST \
  https://api.sandbox.aiwyn.app/gql/v1/payments \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'CF-Access-Client-Id: YOUR_API_KEY_HERE' \
  -H 'CF-Access-Client-Secret: YOUR_API_KEY_HERE' \
  -H 'Content-Type: application/json' \
  -d '{
    "pageSize": 25,
    "page": 0
  }'

Responses

Successfully retrieved payment records

Bodyapplication/json
paymentsArray of objectsrequired
totalobjectrequired
Response
{ "payments": [ { … } ], "total": { "aggregate": { … } } }