cURL
curl --request GET \ --url https://api.example.com/pg/subscriptions/{subscription_id}/pg_payments/
{ "success": true, "message": "PG payments fetched successfully", "data": [ { "payment_id": "pay_abc123", "status": "SUCCESS" } ] }
Fetch all payments for a subscription directly from the payment gateway.