# 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](https://docs.digitalriver.com/digital-river-api/product-management/skus#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="https://334437993-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LqH4RJfLVLuHPXuJyTZ%2Fuploads%2Fdkw2K1UqEDKY3bzOMRcb%2FDistribution%20model%20seq%20diagram.png?alt=media&#x26;token=1638aad8-3eb0-4890-87cd-c09ce600c4f8" alt=""><figcaption></figcaption></figure>

After customers place an order, a [payment charge](https://app.gitbook.com/s/x8fSFzVR3sg0TsNWwwVz/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://app.gitbook.com/s/x8fSFzVR3sg0TsNWwwVz/fulfillments#fulfillments-1) request (which triggers a [charge capture](https://app.gitbook.com/s/x8fSFzVR3sg0TsNWwwVz/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.
