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

# Webhook

<Tip>
  **TIP**

  For complete information about webhooks in general and how to integrate them into your product or workflow, please see the [complete webhook reference](/resources/webhooks/).
</Tip>

Rewards webhooks notify you when any new data is available after a successful rewards fetch.

These webhooks fire only after a completed rewards fetch. Actions performed on the `member` through other endpoints will not trigger the webhook.

**Webhook Fields**

| Field                   | Data Type | Definition                                                                                                                                                                 |
| :---------------------- | :-------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `action`                | String    | The action that triggered the webhook, e.g., `member_data_updated`.                                                                                                        |
| `completed_at`          | Integer   | The time at which the aggregation that triggered the webhook was finished. Given in Unix epoch time.                                                                       |
| `completed_on`          | String    | The date on which the aggregation that triggered the webhook was finished. Given in ISO 8601 *without* a timestamp.                                                        |
| `member_guid`           | String    | The unique identifier for the member which has new or updated data. Defined by MX.                                                                                         |
| `rewards_created_count` | Integer   | The number of newly created rewards.                                                                                                                                       |
| `rewards_updated_count` | Integer   | The number of updated rewards.                                                                                                                                             |
| `type`                  | String    | The type of webhook being delivered. Current possible values are `AGGREGATION`, `HISTORY`, `REWARD, and` `STATEMENT`; however, additional values may be added at any time. |
| `user_guid`             | String    | Unique identifier for the user with which the data is associated. Defined by MX.                                                                                           |

<CodeGroup>
  ```bash Payload theme={null}
  {
    "action": "member_data_updated",
    "completed_at": 1531947410,
    "completed_on": "2018-07-18",
    "member_guid": "MBR-48d9a481-f2a2-7e13-2685-62869cf0d33a",
    "rewards_created_count": 3,
    "rewards_updated_count": 2,
    "type": "REWARD",
    "user_guid": "USR-eaf4ac68-d17d-5e9b-7b46-959a5b315a9e"
  }
  ```
</CodeGroup>
