# Setting up Digital River's Distributor Model

Adding support for [Digital River's Distributor Model](https://docs.digitalriver.com/digital-river-api/order-management/distributor-model) within the connector provides Digital River with the necessary values for shipment. When an Adobe Shipment is created, the connector sends a DR API `POST/fulfillments` call that includes the `subfulfillerId`, `distributorCost`, `shippingCost`, and `currency`values required for sales within the Distributor Model.&#x20;

By default, those values are taken from the Adobe `order_item` and order schema and are populated when an order is placed via the `save_distributor_info` observer. The following examples show the Digital River configuration settings required for using the Digital River Distributor Model.

**Digital River Settings > General Settings > Distributor Cost Currency**

<figure><img src="https://4226580767-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSC10aYILYiaNLeoaXFyt%2Fuploads%2Fb6cdw2WMcxNRA4Jjhc3w%2Fimage.png?alt=media&#x26;token=c2039c33-7ea4-4ac6-8800-91144f3554c1" alt=""><figcaption></figcaption></figure>

**Product Attributes > Digital River Distributor Information**

<figure><img src="https://4226580767-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSC10aYILYiaNLeoaXFyt%2Fuploads%2FunTXxITL6bqZydiHZdMW%2Fimage.png?alt=media&#x26;token=b52cfa9f-5aa0-479b-9241-5e010b1277ac" alt=""><figcaption></figcaption></figure>

Since, in many cases, Custom Values are used, the values used for fulfillment are not known at the time of order placement, or they may be provided via integration with another platform.

If the amounts cannot be set via product attributes, the`save_distributor_info` observer can be used as a guide to create a new observer for `dr_place_order_success`. With the new observer in place and the default observer disabled, the necessary values can be saved to `order_item` and the order to be used during fulfillment. As long as the `order_item` and order values are populated before Adobe Shipment creation via the observer or otherwise, they will be used within the fulfillments API call.

Another option is to create plugins for `\Digitalriver\DrPay\Helper\Drapi::getItemDrDistributorInformation` and `\Digitalriver\DrPay\Helper\Drapi::getOrderDrDistributorInformation` which allows for bypassing the `order_item` and order values and lets you possibly reach out to a third party system for the values.
