> ## 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.

# Spending Plan

Spending Plan webhooks notify you when a `spending_plan` is created, updated, or deleted.

| Field                      | Data Type | Description                                                                                 |
| :------------------------- | :-------- | :------------------------------------------------------------------------------------------ |
| `created_at`               | Integer   | The date and time the `spending_plan` was created, given in Unix epoch time.                |
| `current_iteration_number` | Integer   | The current active associated `spending_plan_iteration` number for a given `spending_plan`. |
| `guid`                     | String    | The unique identifier for the `spending_plan`. Defined by MX.                               |
| `updated_at`               | Integer   | The date and time the `spending_plan` was last updated, given in Unix epoch time.           |
| `user_guid `               | String    | The unique identifier for the `user` to which the `spending_plan` belongs. Defined by MX.   |
| `user_id `                 | String    | The unique partner-defined identifier for the user associated with the `spending_plan`.     |

**Example Payload**

```json JSON theme={null}
{
  "action": "created",
  "spending_plan": {
    "created_at": 1687274271,
    "current_iteration_number": 1,
    "guid": "SPL-5af2c645-11ba-4435-8d5f-a1908c75d97d",
    "updated_at": 1687274271,
    "user_guid": "USR-c7981fb7-233a-466c-bffa-87c64654eae4",
    "user_id": "usr-1234-abcd"
  }
}   
```
