---
title: "Tries a canceled event's failed refund again."
---

> 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

`POST /v1/stores/{store}/event_refunds/{refund}/retry`

## Authentication

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

## Path parameters

- `store` (`retryEventRefund.path.store`; string, required) — The store's id.
- `refund` (`retryEventRefund.path.refund`; string, required)
  - minLength 1

## Header parameters

- `Idempotency-Key` (`retryEventRefund.header.Idempotency-Key`; string, optional) — Repeats within 24 hours answer the first result; the same key with other arguments is a conflict.
  - minLength 1; maxLength 255; pattern `^[\x21-\x7E]+$`

## Request body

_Optional._

## Example request

```json
{}
```

## Code samples

### cURL

```bash
curl --request POST \
  --url 'https://api.sherpo.io/merchant/v1/stores/<store>/event_refunds/<refund>/retry' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{}'
```

### TypeScript

```typescript
const url = 'https://api.sherpo.io/merchant/v1/stores/<store>/event_refunds/<refund>/retry';
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json', Authorization: 'Bearer <token>'},
  body: JSON.stringify({})
};

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>/event_refunds/<refund>/retry"

payload = {}
headers = {
    "Content-Type": "application/json",
    "Authorization": "Bearer <token>"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
```

## Responses

### 200

Tries a canceled event's failed refund again.

#### Example

```json
{
  "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
  }
}
```

- `id` (`retryEventRefund.response.200.id`; string, required)
- `product_id` (`retryEventRefund.response.200.product_id`; string, required)
- `customer_id` (`retryEventRefund.response.200.customer_id`; string, required)
- `order_id` (`retryEventRefund.response.200.order_id`; string, required)
- `settlement_id` (`retryEventRefund.response.200.settlement_id`; string, required)
- `status` (`retryEventRefund.response.200.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` (`retryEventRefund.response.200.amount`; any of, required)
  - any of: `number`, `null`
- `currency` (`retryEventRefund.response.200.currency`; string, required)
- `exponent` (`retryEventRefund.response.200.exponent`; any of, required)
  - any of: `number`, `null`
- `failure` (`retryEventRefund.response.200.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` (`retryEventRefund.response.200.refund_id`; any of, required) — The refund recorded on the order once it landed.
  - any of: `string`, `null`
- `processor_ref` (`retryEventRefund.response.200.processor_ref`; any of, required)
  - any of: `string`, `null`
- `refunded_at` (`retryEventRefund.response.200.refunded_at`; any of, required)
  - any of: `string`, `null`
- `created_at` (`retryEventRefund.response.200.created_at`; string, required)
- `customer` (`retryEventRefund.response.200.customer`; any of, required) — Who it gives back to, `erased` once their details are wiped.
  - any of: `object`, `null`

### 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` (`retryEventRefund.response.default.type`; string, required)
  - format `uri`
- `title` (`retryEventRefund.response.default.title`; string, required)
- `status` (`retryEventRefund.response.default.status`; integer, required)
- `detail` (`retryEventRefund.response.default.detail`; string, required)
- `code` (`retryEventRefund.response.default.code`; string, optional)
- `context` (`retryEventRefund.response.default.context`; object, optional)
- `reached_core` (`retryEventRefund.response.default.reached_core`; boolean, optional)
- `core_answer` (`retryEventRefund.response.default.core_answer`; string, optional)


Source: https://docs.sherpo.io/merchant-api/reference/retry-event-refund/index.md
