> ## Documentation Index
> Fetch the complete documentation index at: https://api.sosmednext.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Refill Status

> Mengecek status permintaan refill yang sudah diajukan.

Setelah mengajukan refill melalui endpoint `/api/v1/refill`, gunakan endpoint ini untuk melacak status refill tersebut.

## Query Parameters

<ParamField query="api_key" type="string" required>
  Kunci API Anda (jika tidak menggunakan Header `X-Api-Key`).
</ParamField>

<ParamField query="refill" type="string" required>
  ID Refill yang didapat dari response endpoint Create Refill.
</ParamField>

## Contoh Request

```bash theme={null}
curl -X GET -H "X-Api-Key: YOUR_API_KEY" "https://app.sosmednext.com/api/v1/refill_status?refill=1"
```

## Response

```json Response Sukses (200 OK) theme={null}
{
  "status": "Completed"
}
```

```json Response Gagal (404) theme={null}
{
  "error": "Refill not found"
}
```

### Status Refill yang Tersedia:

| Status       | Keterangan                    |
| :----------- | :---------------------------- |
| `Pending`    | Refill sedang dalam antrean.  |
| `Processing` | Refill sedang diproses.       |
| `Completed`  | Refill berhasil diselesaikan. |
| `Rejected`   | Refill ditolak oleh provider. |
