🔐 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
Limit — number of records to return (not a page count). Hasura maps this to limit.
- Sandbox (requires Cloudflare Access headers)https://api.sandbox.aiwyn.app/gql/v1/payments
- Staging (requires Cloudflare Access headers)https://api.staging.aiwyn.app/gql/v1/payments
- Production (your live firm data; no Cloudflare Access headers)https://api.aiwyn.ai/gql/v1/payments
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
}'{ "payments": [ { … } ], "total": { "aggregate": { … } } }