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

# Delivery Refunded

## Overview

Service Provider subscribes "DELIVERY\_REFUND\_REQUESTED" event in AccessRC. So when a refund delivery event is created in AccessRC, system sends a webhook call to the callback service of the Service Provider.

> ⚠️ **Warning**\
> Not implemented yet.

<p align="center">
  <img src="https://mintcdn.com/canpeker/ezlmTUGMKwmp_MYx/images/delivery-refund.svg?fit=max&auto=format&n=ezlmTUGMKwmp_MYx&q=85&s=263ddbdd1d911176f4079cf7b735739d" width="815" height="1001" data-path="images/delivery-refund.svg" />
</p>

## Webhook Request Payload

```json theme={null}
{
    "deliveryId":"6fd1ca79-1a5d-4bd9-a4c9-b41c48ff6b7a"
}
```

## Webhook Response Payload

### 200 Response

A successful callback response from the Service Provider’s callback service.

```json theme={null}
{
    "status": "success",
    "message": "Callback successfully received",
    "data": {
        "deliveryId":"6fd1ca79-1a5d-4bd9-a4c9-b41c48ff6b7a",
    }
}
```

### 400 Response

If the validation fails or there is a bad request, the response will be:

```json theme={null}
{
    "status": "failed",
    "error": {
        "code": 400,
        "message": "Validation failed. Please check your input.",
        "type": "BadRequest"
    }
}
```

### 401 Response

If the verification fails, the response will be:

```json theme={null}
{
    "status": "failed",
    "error": {
        "code": 401,
        "message": "Verification failed",
        "type": "Unauthorized"
    }
}
```

### 500 Response

In case of an internal server error, the response will be:

```json theme={null}
{
    "status": "failed",
    "error": {
        "code": 500,
        "message": "Internal Server Error",
        "type": "Exception"
    }
}
```
