Skip to main content
GET
/
pg
/
subscriptions
/
{subscription_id}
/
pg_payments
Fetch PG Payments
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.
This endpoint is not available in production.

Path Parameters

subscription_id
string
required
The unique identifier (uid) of the subscription.
{
  "success": true,
  "message": "PG payments fetched successfully",
  "data": [
    {
      "payment_id": "pay_abc123",
      "status": "SUCCESS"
    }
  ]
}