# Approve a refund; it is sent to the provider once

`POST /payments/refunds/{id}/approve` · Rivier · shop

Approve a refund; it is sent to the provider once.

- Scope: shop:write
- Sdk: shop.refund.approve
- Cli: shop refund approve

## Parameters

- `id` (path, required), string

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "note": {
      "type": "string",
      "maxLength": 300,
      "default": ""
    }
  },
  "additionalProperties": false
}
```

## Responses

- `200`: Success
- `400`: The request was malformed
- `401`: No valid credential
- `403`: The credential lacks the scope, origin or address
- `429`: Over the key's rate limit; see Retry-After

## Example

```sh
curl -X POST 'https://api.rivier.ai/payments/refunds/{id}/approve' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "note": ""
}'
```
