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

# Party Update Failed

> Webhook notification sent when updating a party fails

<Note>
  This webhook is sent when a party update request has failed.
</Note>

## Webhook Structure

<ParamField body="id" type="string (UUID)" required>
  Unique identifier for this event
</ParamField>

<ParamField body="time" type="string (ISO 8601)" required>
  Timestamp of when the event occurred
</ParamField>

<ParamField body="correlationId" type="string">
  Identifier to correlate the request with the response. Present when provided in the original request.
</ParamField>

<ParamField body="type" type="string" required>
  The type of event. Value: `party.update-failed`
</ParamField>

<ParamField body="data" type="object" required>
  The event data containing the details below
</ParamField>

### Data Fields

<ParamField body="data.partyId" type="string (UUID)" required>
  Unique identifier of the party that failed to update
</ParamField>

<ParamField body="data.errors" type="array" required>
  List of errors that caused the failure

  <Expandable title="Error object properties">
    <ParamField body="code" type="string" required>
      Error code indicating the reason for the failure
    </ParamField>

    <ParamField body="message" type="string">
      Description of the error
    </ParamField>
  </Expandable>
</ParamField>

## Error Codes

<Note>
  New error codes may be added in future versions. Consumers should handle unknown codes gracefully.
</Note>

| Code              | Description           |
| ----------------- | --------------------- |
| `PARTY_NOT_FOUND` | Party not found       |
| `UNKNOWN_ERROR`   | Unknown error         |
| `SYSTEM_ERROR`    | Internal system error |

## Request Example

```json theme={null}
{
  "id": "d4c9e7f6-2a5b-4dae-c4f8-3b7a9e1d5f2c",
  "time": "2025-01-15T10:30:00Z",
  "correlationId": "8e4f2b5a-6c9d-43e7-af1b-2b4d6e8f0a3c",
  "type": "party.update-failed",
  "data": {
    "partyId": "019cde42-0d74-7baf-1fa9-bd6a8b9e3c5f",
    "errors": [
      {
        "code": "PARTY_NOT_FOUND",
        "message": "An error occurred during the update of the Party"
      }
    ]
  }
}
```
