# Goal: Goal

The Fundraising goals method and the `goal.updated` event return this structure.

## `Goal`

**Returned by:**

- [Fundraising goals](https://developers.donatty.com/en/reference/goals.md) · `GET /v1/goals` — `items` elements
- Event [`goal.updated`](https://developers.donatty.com/en/structures/goal-events.md#goalupdated) · channel `goals` — the `data` field

| Field | Type | Description |
|---|---|---|
| `id` | string, `goal_…` | Goal identifier, `goal_…`. |
| `title` | string | Goal title. |
| `target` | [`Money`](https://developers.donatty.com/en/structures.md#money) | The amount to raise. |
| `raised` | [`Money`](https://developers.donatty.com/en/structures.md#money) | The amount raised: the amount you started the goal with (the «Начать сбор с» (Start collecting from) field) plus Donatty donations to this goal, including ones rejected by moderation. |
| `status` | string, values: `ACTIVE`, `CLOSED` | `ACTIVE` — running, `CLOSED` — finished. |
| `endsAt` | string (date-time) or null | When the goal ends; `null` when no end is set. |
| `createdAt` | string (date-time) | When the goal was created. |

### Example

```json
{
  "id": "goal_7e3a9c10-4b2d-4f8e-a1c6-0d9b8e7f6a52",
  "title": "New microphone",
  "target": {
    "value": "15000.00",
    "currency": "RUB"
  },
  "raised": {
    "value": "6420.50",
    "currency": "RUB"
  },
  "status": "ACTIVE",
  "endsAt": "2026-12-31T21:00:00Z",
  "createdAt": "2026-10-01T12:00:00Z"
}
```

## `GoalPage`

**Returned by:**

- [Fundraising goals](https://developers.donatty.com/en/reference/goals.md) · `GET /v1/goals` — the whole response

| Field | Type | Description |
|---|---|---|
| `items` | list [`Goal`](https://developers.donatty.com/en/structures/goal.md#goal) |  |
| `nextCursor` | string or null | Pass as `cursor` to get the next page; `null` — last page. |

### Example

```json
{
  "items": [
    {
      "id": "goal_7e3a9c10-4b2d-4f8e-a1c6-0d9b8e7f6a52",
      "title": "New microphone",
      "target": {
        "value": "15000.00",
        "currency": "RUB"
      },
      "raised": {
        "value": "6420.50",
        "currency": "RUB"
      },
      "status": "ACTIVE",
      "endsAt": "2026-12-31T21:00:00Z",
      "createdAt": "2026-10-01T12:00:00Z"
    }
  ],
  "nextCursor": "MTc5MDg1NjAwMDAwMDAwMC43ZTNhOWMxMC00YjJkLTRmOGUtYTFjNi0wZDliOGU3ZjZhNTI"
}
```

## Why the goal amount differs from the widget

See the field description above for what `raised` includes. The API does not count Donation Alerts goals or widget settings, so the goal progress on stream can differ from `raised`.
