# Expanding events

Your account can be configured so that Digital River expands the [`data.object`](https://docs.digitalriver.com/digital-river-api/order-management/events-1#event-data) of certain [event types](https://docs.digitalriver.com/digital-river-api/order-management/events-1#event-types) before pushing them to a [webhook's ](https://app.gitbook.com/s/x8fSFzVR3sg0TsNWwwVz/webhooks)designated `address`. Currently, four expandable events exist: [`order.accepted`](https://docs.digitalriver.com/digital-river-api/order-management/events-1/event-types#order.accepted), [`order.cancelled`](https://docs.digitalriver.com/digital-river-api/order-management/events-1/event-types#order.cancelled), [`order.refunded`](https://docs.digitalriver.com/digital-river-api/order-management/events-1/event-types#order.refunded), and [`fulfillment.created`](https://docs.digitalriver.com/digital-river-api/order-management/events-1/event-types#fulfillment.created).

Relative to their default version, `items[].productDetails` in these enhanced events contains (1) `physical` , a boolean which indicates whether Digital River classified that product as [physical or digital](https://docs.digitalriver.com/digital-river-api/product-management/skus#how-products-are-classified-as-physical-or-digital), and (2) `metadata`, assuming you defined this parameter in the [SKU](https://docs.digitalriver.com/digital-river-api/product-management/creating-and-updating-skus) or [`productDetails`](https://docs.digitalriver.com/digital-river-api/product-management/using-product-details).

{% hint style="info" %}
You can also access these additional key-value pairs by making a [get order request](https://app.gitbook.com/s/x8fSFzVR3sg0TsNWwwVz/orders#orders) with the `expand` query parameter set to `true`.
{% endhint %}

{% tabs %}
{% tab title="order.accepted" %}

```json
{
    "id": "e2ab8696-53fc-4ac9-9f5f-f38eb61fbf05",
    "type": "order.accepted",
    "data": {
        "object": {
            "id": "295759800336",
            ...
            "items": [
                {
                    "id": "229219830336",
                    ...
                    "productDetails": {
                        "id": "sku_8128ce28-d4a8-475b-9fce-6e78c38da88b",
                        ...
                        "physical": true,
                        "metadata": {
                            "more": "data",
                            "evenMore": "data"
                        },
                        ...
                    },
                    ...
                }
            ],
            ...
        }
    },
    ...
}
```

{% endtab %}

{% tab title="fulfillment.created" %}

```json
{
    "id": "45570b11-95e6-41bb-be20-f46f6dc6194b",
    "type": "fulfillment.created",
    "data": {
        "object": {
            "id": "ful_17323b58-96c4-4239-a0ed-be93c15faae0",
            ...
            "orderDetails": {
                ...
                "items": [
                    {
                        "id": "229219830336",
                        ...
                        "productDetails": {
                            "id": "sku_8128ce28-d4a8-475b-9fce-6e78c38da88b",
                            ...
                            "physical": true,
                            "metadata": {
                                "more": "data",
                                "evenMore": "data"
                            },
                            ...
                        },
                        ...
                    }
                ],
                ...
            }
        }
    },
    ...
}
```

{% endtab %}
{% endtabs %}

If you think your application could use this extra data to, for example, populate [customer notifications](https://docs.digitalriver.com/digital-river-api/order-management/customer-notifications) or determine whether the product is physical and its details need to be sent to your logistics provider, you'll first need to ask your Digital River representative to turn the feature on. Once that's done, for each of the supported event types, you'll be able to choose between its standard or expanded version when [configuring a webhook in Digital River Dashboard](https://docs.digitalriver.com/digital-river-api/administration/dashboard/developers/webhooks).

<figure><img src="https://334437993-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LqH4RJfLVLuHPXuJyTZ%2Fuploads%2FQVdLjxomcTIMd4mmP3xX%2Fimage.png?alt=media&#x26;token=dfc6192f-26e4-48e2-9cfe-c0af48e38a4f" alt=""><figcaption></figcaption></figure>
