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

# Payload-formaat

> Referentie voor de standaardstructuur van storekit webhook-payloads, inclusief JSON-body-formaat, HTTP-headers, content-type en de metadata die bij elk event wordt meegestuurd.

Alle webhook-payloads volgen een consistente JSON-structuur.

## Standaardstructuur van de payload

```json theme={null}
{
  "event": "order.created",
  "data": {
    // Event-specific data
  }
}
```

| Veld    | Type   | Beschrijving                                  |
| ------- | ------ | --------------------------------------------- |
| `event` | string | De eventtype-identifier (bv. `order.created`) |
| `data`  | object | De event-payload met de relevante data        |

## HTTP-headers

Elk webhook-verzoek bevat de volgende headers:

| Header           | Beschrijving                                                 |
| ---------------- | ------------------------------------------------------------ |
| `Content-Type`   | Altijd `application/json`                                    |
| `svix-id`        | Unieke identifier voor dit webhook-bericht                   |
| `svix-timestamp` | Unix-timestamp van het moment waarop de webhook is verstuurd |
| `svix-signature` | Signatuur om de authenticiteit te verifiëren                 |

## Voorbeeld: payload van Order Created

```json theme={null}
{
  "event": "order.created",
  "data": {
    "id": "ord_abc123",
    "code": "A1B2",
    "total": 2500,
    "tip": 250,
    "orderType": "Pickup",
    "asap": true,
    "createdAt": "2024-01-15T10:30:00Z",
    "customer": {
      "firstName": "John",
      "lastName": "Doe",
      "email": "john@example.com",
      "phone": "+44123456789"
    },
    "items": [
      {
        "name": "Margherita Pizza",
        "price": 1200,
        "quantity": 1,
        "modifiers": []
      }
    ],
    "venue": {
      "id": 1234,
      "name": "My Restaurant",
      "slug": "my-restaurant"
    }
  }
}
```

## Datatypes

* **Bedragen**: Alle bedragen worden uitgedrukt in de kleinste eenheid van de valuta (bv. pence voor GBP, cent voor USD)
* **Timestamps**: Alle timestamps volgen het ISO 8601-formaat (UTC)
* **ID's**: Stringidentifiers voor bestellingen, alfanumerieke codes voor afhaalcodes


## Related topics

- [Transformaties](/docs/nl/developers/webhooks/transformations.md)
- [Je storekit-store-URL vinden en delen](/docs/nl/guides/store-settings/store-url.md)
- [Geneste modifiers: setup en POS-ondersteuning](/docs/nl/guides/menu/nested-modifiers.md)
- [Afbeeldingsspecificaties](/docs/nl/guides/store-settings/image-specifications.md)
- [Klantgegevens vooraf vullen via URL](/docs/nl/developers/customer-prefill.md)
