> For the complete documentation index, see [llms.txt](https://docs.coda.co/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.coda.co/codapay/additional-features/refund-a-payment/get-notified-about-refund-status-changes.md).

# Get notified about refund status changes

If you do not receive the notifications, please contact our support engineer for assistance and we will subscribe to them on behalf of the merchants.

#### Webhook Security

* We implement a security layer for our webhook request and utilize Event ID as an idempotency key to prevent the occurrence of duplicate webhook requests.
* Any webhook request exceeding 15 minutes should be rejected by the Partner to mitigate potential security risks.
* Coda will provide IP for whitelisting for webhook request

#### Request Header Description

| Header         | Description                                                                                               |
| -------------- | --------------------------------------------------------------------------------------------------------- |
| X-Request-Time | This header contains a timestamp in UTC format and it indicates the time when a webhook request was sent. |
| X-Signature    | This header involves the HMAC 512 Algorithm                                                               |
| X-Version      | This header contains a version number                                                                     |

#### How to accept notifications?

1. Validate signature
2. Validate Event ID as an idempotency key
3. Response with 202 Accepted HTTP Code

Note: Coda strongly recommends Merchants use Retrieve Refund Status API for the fallback of getting an update of refund status, in case notification failed to be sent.

### **Event Object**

| Parameter name | Type   | Description                                                                                                                                    |
| -------------- | ------ | ---------------------------------------------------------------------------------------------------------------------------------------------- |
| id             | String | Event notification ID generated by the                                                                                                         |
| Event Type     | String | Contains the refund status. For more information on the possible refund statuses, refer to [this](/codapay/references/refund-status-codes.md). |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.coda.co/codapay/additional-features/refund-a-payment/get-notified-about-refund-status-changes.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
