Retrieve payment records with transaction details and security compliance
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.)
- Date-based filtering for reconciliation periods
- 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
Real Example:
curl --location 'https://{{host}}/v1/payments' \
--header 'Authorization: bearer {{token}} \
--header 'Content-Type: application/json' \
--data '{
"pageSize": 25,
"page": 0
}'Security
BearerAuth
Filter by payment method type
Enum:"CREDIT_CARD""DEBIT_CARD""ACH""BANK_TRANSFER""CHECK""WIRE""PAYPAL""APPLE_PAY""GOOGLE_PAY"
Example:"CREDIT_CARD"
Filter by payment status
Enum:"PENDING""CONFIRMED""FAILED""CANCELLED""REFUNDED"
Example:"CONFIRMED"
- Mock serverhttps://api.doc.aiwyn.ai/_mock/bundle/gql/v1/payments
- Sandboxhttps://demo.api.aiwyn.ai/gql/v1/payments
- Staginghttps://staging.api.aiwyn.app/gql/v1/payments
curl -i -X POST \
https://api.doc.aiwyn.ai/_mock/bundle/gql/v1/payments \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"pageSize": 25,
"page": 0
}'Response
- Payment records with security compliance and transaction details
- No payments found
{ "deid_payment": [ { … }, { … }, { … } ], "deid_payment_aggregate": { "aggregate": { … } } }