---
title: "Pages a canceled event's refunds: what each gives back, where it stands, and why one failed."
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.sherpo.io/llms.txt
> Use this file to discover all available pages before exploring further.

Path: Sherpo merchant API › transaction

`GET /v1/stores/{store}/products/{product}/event_refunds`

## Authentication

- `bearer`, http, header `Authorization`, scopes: `transaction:read`

## Path parameters

- `store` (`listEventRefunds.path.store`; string, required) — The store's id.
- `product` (`listEventRefunds.path.product`; string, required) — An id, or `slug:<slug>`.
  - minLength 1

## Query parameters

- `filter` (`listEventRefunds.query.filter`; object, optional) — `filter[<field>]=<value>` is an equality, `filter[<field>][<op>]=<value>` names the operator; `in` repeats the parameter.
- `sort` (`listEventRefunds.query.sort`; string, optional)
  - one of `"created"`
- `direction` (`listEventRefunds.query.direction`; string, optional)
  - one of `"asc"`, `"desc"`
- `limit` (`listEventRefunds.query.limit`; integer, optional)
  - min 1; max 100
- `cursor` (`listEventRefunds.query.cursor`; string, optional)
  - maxLength 8192
- `count` (`listEventRefunds.query.count`; boolean, optional)
- `facets` (`listEventRefunds.query.facets`; array<string>, optional)

## Code samples

### cURL

```bash
curl --request GET \
  --url 'https://api.sherpo.io/merchant/v1/stores/<store>/products/<product>/event_refunds' \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = 'https://api.sherpo.io/merchant/v1/stores/<store>/products/<product>/event_refunds';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.sherpo.io/merchant/v1/stores/<store>/products/<product>/event_refunds"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
```

## Responses

### 200

Pages a canceled event's refunds: what each gives back, where it stands, and why one failed.

#### Example

```json
{
  "items": [
    {
      "id": "string",
      "product_id": "string",
      "customer_id": "string",
      "order_id": "string",
      "settlement_id": "string",
      "status": "string",
      "amount": 0,
      "currency": "string",
      "exponent": 0,
      "failure": "string",
      "refund_id": "string",
      "processor_ref": "string",
      "refunded_at": "string",
      "created_at": "string",
      "customer": {
        "id": "string",
        "name": "string",
        "email": "string",
        "phone": "string",
        "erased": true
      }
    }
  ],
  "cursor": "string",
  "total": 0,
  "facets": {
    "property1": {
      "property1": 0,
      "property2": 0
    },
    "property2": {
      "property1": 0,
      "property2": 0
    }
  }
}
```

- `items` (`listEventRefunds.response.200.items`; array<object>, required)
  - `id` (`listEventRefunds.response.200.items.id`; string, required)
  - `product_id` (`listEventRefunds.response.200.items.product_id`; string, required)
  - `customer_id` (`listEventRefunds.response.200.items.customer_id`; string, required)
  - `order_id` (`listEventRefunds.response.200.items.order_id`; string, required)
  - `settlement_id` (`listEventRefunds.response.200.items.settlement_id`; string, required)
  - `status` (`listEventRefunds.response.200.items.status`; string, required) — `pending` while owed, `refunded` once given back, `failed` for the seller to retry, `manual` for a sale paid outside the store, which the seller refunds.
  - `amount` (`listEventRefunds.response.200.items.amount`; any of, required)
    - any of: `number`, `null`
  - `currency` (`listEventRefunds.response.200.items.currency`; string, required)
  - `exponent` (`listEventRefunds.response.200.items.exponent`; any of, required)
    - any of: `number`, `null`
  - `failure` (`listEventRefunds.response.200.items.failure`; any of, required) — Why the last try failed: `processor_refused`, `account_gone`, `processor_failed`, `processor_unavailable`, `nothing_left` or `order_unreconciled`; null unless failed.
    - any of: `string`, `null`
  - `refund_id` (`listEventRefunds.response.200.items.refund_id`; any of, required) — The refund recorded on the order once it landed.
    - any of: `string`, `null`
  - `processor_ref` (`listEventRefunds.response.200.items.processor_ref`; any of, required)
    - any of: `string`, `null`
  - `refunded_at` (`listEventRefunds.response.200.items.refunded_at`; any of, required)
    - any of: `string`, `null`
  - `created_at` (`listEventRefunds.response.200.items.created_at`; string, required)
  - `customer` (`listEventRefunds.response.200.items.customer`; any of, required) — Who it gives back to, `erased` once their details are wiped.
    - any of: `object`, `null`
- `cursor` (`listEventRefunds.response.200.cursor`; any of, required)
  - any of: `string`, `null`
- `total` (`listEventRefunds.response.200.total`; number, optional)
- `facets` (`listEventRefunds.response.200.facets`; map<map<number>>, optional)

### default

A problem; see https://api.sherpo.io/merchant/docs/errors.

#### Example

```json
{
  "type": "http://example.com",
  "title": "string",
  "status": 0,
  "detail": "string",
  "code": "string",
  "context": {},
  "reached_core": true,
  "core_answer": "string"
}
```

- `type` (`listEventRefunds.response.default.type`; string, required)
  - format `uri`
- `title` (`listEventRefunds.response.default.title`; string, required)
- `status` (`listEventRefunds.response.default.status`; integer, required)
- `detail` (`listEventRefunds.response.default.detail`; string, required)
- `code` (`listEventRefunds.response.default.code`; string, optional)
- `context` (`listEventRefunds.response.default.context`; object, optional)
- `reached_core` (`listEventRefunds.response.default.reached_core`; boolean, optional)
- `core_answer` (`listEventRefunds.response.default.core_answer`; string, optional)


Source: https://docs.sherpo.io/merchant-api/reference/list-event-refunds/index.md
