# Distributor model

Digital River offers the option of setting up a direct integration with one or more distributors, each of whom has purchased and stored your inventory to fulfill your [physical goods](/digital-river-api/product-management/skus.md#how-products-are-classified-as-physical-or-digital). In this model, you and the distributor are responsible for handling inventory synchronization and managing the cost of goods.

Before deploying, you’ll need to provide us with some basic information about each of your distributors—such as their unique identifier, name, and address, and whether to remit shipping costs to them—so that we can properly configure them in our accounting systems.

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

After customers place an order, a [payment charge](https://docs.digitalriver.com/digital-river-api-reference/2021-12-13/charges/charge-basics#how-a-charge-is-created) is authorized, and a line item ships, your commerce platform needs to send the agreed-upon identifier of the distributor, their up-to-date costs of goods, shipping costs (if applicable), and preferred payout currency in a [`POST /fulfillments`](https://docs.digitalriver.com/digital-river-api-reference/2021-12-13/fulfillments#fulfillments-1) request (which triggers a [charge capture](https://docs.digitalriver.com/digital-river-api-reference/2021-12-13/charges/charge-basics#captures) attempt).

{% hint style="success" %}
If a fulfillment involves multiple line items and you assigned a different distributor to each, then your request can pass their data in separate `items[]`.
{% endhint %}

```
curl --location 'https://api.digitalriver.com/fulfillments' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <Your secret API token>' \
--data '{
    "orderId": "308604120336",
    "currency": "EUR",
    "items": [
        {
            "itemId": "243441700336",
            "quantity": "1",
            "subfulfillerId": "1234",
            "distributorCost": 400,
            "shippingCost": 10
        }
    ]
}'
```

Digital River stores this data to be used in the reconciliation process when the distributor submits an invoice for shipping and product costs.


---

# Agent Instructions: 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:

```
GET https://docs.digitalriver.com/digital-river-api/order-management/distributor-model.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
