# Get subscription details for SBMD enabled subscription

**Method:** `GET`

**Path:** `/ps/public/subscriptions/sbmd/{reserve_pay_sub_id}`

**Category:** UPI Reserve Pay

**Authentication:** Required

## Description

Fetch Reserved Pay details for a customer

## Path Parameters

- `reserve_pay_sub_id` (`string`) **required** — Unique identifier for the subscription.

## Responses

- `200` — Success
- `400` — Bad Request
- `500` — Internal Server Error

### Response Schema

- `subscription_id` (`string`) — Unique identifier for the created subscription
- `order_id` (`string`) — order_id for the created order
- `customer_id` (`string`) — customer_id passed
- `status` (`string`) — Current status of the subscription after creation
- `start_date` (`string`) — Subscription start timestamp
- `end_date` (`string`) — Subscription end timestamp
- `currency` (`string`)
- `total_blocked_amount` (`integer`) — Total amount blocked for the subscription (in smallest currency unit, e.g., paise)
- `debited_amount` (`integer`) — Amount already debited from the subscription (in smallest currency unit, e.g., paise)
- `remaining_balance` (`integer`) — Amount still available in the subscription (in smallest currency unit, e.g., paise)

### Example Response

```json
{
  "subscription_id": "sub_xyz789",
  "status": "ACTIVE",
  "total_blocked_amount": 1000000,
  "debited_amount": 200000,
  "remaining_balance": 800000
}
```

---

Reference: https://localhost:3000/api/upi-reserve-pay/fetch-sbmd-subscription-by-id
