# Connect Web SDK Events
source: https://developer.mastercard.com/open-finance-au/documentation/connect/integrating-with-connect/events/connect-websdk-events/index.md

## Load {#load}

| Event |                    Description                    |
|-------|---------------------------------------------------|
| Load  | When the Connect application starts (no payload). |

## Cancel {#cancel}

| Event  |                          Description                           |
|--------|----------------------------------------------------------------|
| Cancel | The customer clicks Exit to cancel out of the Connect session. |

```JSON
{
    "code": 100,
    "reason": "exit"
}
```

## Error / Timeout Events {#error--timeout-events}

|  Event  |                             Description                             |
|---------|---------------------------------------------------------------------|
| Timeout | The customer is forced to exit Connect after the session times out. |

```JSON
{
    "code": 1440,
    "reason": "timeout"
}
```

|      Event       |                      Description                      |
|------------------|-------------------------------------------------------|
| Unexpected error | The customer exits Connect after an unexpected error. |

```JSON
{
   "code": 500,
   "reason": "error"
}
```

## Success {#success}

|  Event  |                                   Description                                   |
|---------|---------------------------------------------------------------------------------|
| Success | The customer successfully completes the Connect app and submits their accounts. |

```JSON
{
  "reason": "complete",
  "code": 200,
  "reportData": [
    {
      "portfolioId": "puukbn68n9kf-6-port",
      "type": "voi",
      "reportId": "ubjqshpkcsru-voi"
    },
    {
      "portfolioId": "puukbn68n9kf-6-port",
      "type": "transactions",
      "reportId": "9d0kr7s5h4th-transactions"
    }
  ]
}
```

