> For the complete documentation index, see [llms.txt](https://docs.digitalriver.com/digital-river-api/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.digitalriver.com/digital-river-api/order-management/events-and-webhooks-1/expanding-events.md).

# Expanding events

Your account can be configured so that Digital River expands the [`data.object`](/digital-river-api/order-management/events-and-webhooks-1/events-1.md#event-data) of certain [event types](/digital-river-api/order-management/events-and-webhooks-1/events-1.md#event-types) before pushing them to a [webhook's ](https://docs.digitalriver.com/digital-river-api-reference/2021-12-13/webhooks)designated `address`. Currently, four expandable events exist: [`order.accepted`](https://docs.digitalriver.com/digital-river-api/order-management/events-and-webhooks-1/pages/okHqAQ9d1PaLPLjq6nZF#order.accepted), [`order.cancelled`](https://docs.digitalriver.com/digital-river-api/order-management/events-and-webhooks-1/pages/okHqAQ9d1PaLPLjq6nZF#order.cancelled), [`order.refunded`](https://docs.digitalriver.com/digital-river-api/order-management/events-and-webhooks-1/pages/okHqAQ9d1PaLPLjq6nZF#order.refunded), and [`fulfillment.created`](https://docs.digitalriver.com/digital-river-api/order-management/events-and-webhooks-1/pages/okHqAQ9d1PaLPLjq6nZF#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](/digital-river-api/product-management/skus.md#how-products-are-classified-as-physical-or-digital), and (2) `metadata`, assuming you defined this parameter in the [SKU](/digital-river-api/product-management/creating-and-updating-skus.md) or [`productDetails`](/digital-river-api/product-management/using-product-details.md).

{% hint style="info" %}
You can also access these additional key-value pairs by making a [get order request](https://docs.digitalriver.com/digital-river-api-reference/2021-12-13/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](/digital-river-api/order-management/customer-notifications.md) 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](/digital-river-api/administration/dashboard/developers/webhooks.md).

<figure><img src="/files/d3GQbe6aUiBM7LwVK4oK" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.digitalriver.com/digital-river-api/order-management/events-and-webhooks-1/expanding-events.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
