> For the complete documentation index, see [llms.txt](/llms.txt).

# customer_funded

**Webhook event:** `customer_funded`

Sent when a customer draws down funds from an offer which originated from an application you introduced.
This can happen multiple times. For example, if the customer initially draws down part of the offer amount, and later draws down the rest.

## Header parameters
- `X-IW-Event-ID` (string, required) — UUID of the webhook event. Webhooks which do not deliver successfully are retried. This will be the same across retry attempts for the same webhook.
- `X-IW-Event-Type` (string, required) — The type of webhook being delivered — matches the `webhook_event_type` values from `GET /webhooks/event_types/`.
- `X-IW-Signature` (string, required) — HMAC-SHA256 signature of the request body, base64-encoded and prefixed with `sha256=`. The HMAC key is your webhook secret token (not your API token), which you can fetch from the iwoca Notifications API or the Developer Portal. Verify this header to confirm the webhook is genuinely from iwoca and to mitigate replay attacks (by also checking that `X-IW-Timestamp` is recent). Retried deliveries get a fresh timestamp and therefore a fresh signature.

```
message   = "{X-IW-Timestamp}.{raw_request_body}"
signature = "sha256=" + base64(hmac_sha256(secret, message))
```
- `X-IW-Timestamp` (string, required) — Unix timestamp (seconds) at which the delivery was initiated. If this delivery is a retry of an earlier failed delivery, the timestamp is of the current attempt, not the original delivery.

## Payload
```json
{
  "data": {
    "amount_funded": 10000,
    "funded_datetime": "2026-06-11T20:10:00Z",
    "loan_id": "K44OXEI0BQY59",
    "state_key": "55422f06-cb7e-41a3-8389-b2b4f03577c6"
  }
}
```

### Payload fields
- `data` (object, required)
- `data.amount_funded` (number, required)
- `data.funded_datetime` (string, required)
- `data.loan_id` (string, required)
- `data.state_key` (string, required) — customer_id

## Responses
### 201 — Return status code 200 or 201 to acknowledge receipt of the webhook. Any non-2XX response code will result in iwoca retrying the delivery.
