Fulfillments

Learn how to use the Fulfillments resource.

The Fulfillments resource allows you to:

Create a fulfillment

To create a new fulfillment, send a POST Fulfillments request.

Request header example
POST https://api.digitalriver.com/fulfillments
Authorization:[basic {secret key}]
Accept:[application/json]

Include the fulfillment information in the body like this:

Request body example
{
"orderId": "ord_5678901234",
"items": [
[
{
"skuId": "sku_9234276173",
"quantity": 1
}
]
],
"trackingCompany": "Fedex",
"trackingNumber": "5678901234",
"trackingUrl": "http://www.digitalriver.com?code=5678901234"
}

A successful request returns the Fulfillment object:

Fulfillment object example
{
"id": "ful_25c651d0-8079-48d7-b22e-eb1e2f451966",
"createdTime": "2018-04-25T20:36:00Z",
"orderId": "ord_5678901234",
"items": [
[
{
"skuId": "sku_9234276173",
"quantity": 1
}
]
],
"liveMode": false,
"trackingCompany": "Fedex",
"trackingNumber": "5678901234",
"trackingUrl": "http://www.digitalriver.com?code=5678901234"
}

Get a fullfillment by ID

To retrieve the fulfillment details, you must supply the unique identifier of the fulfillment.

Request header example
POST https://api.digitalriver.com/fulfillments/25c651d0-8079-48d7-b22e-eb1e2f451966
Authorization:[basic {secret key}]
Accept:[application/json]

A successful request returns the Fulfillment object:

Fulfillment object example
{
"id": "ful_25c651d0-8079-48d7-b22e-eb1e2f451966",
"createdTime": "2018-04-25T20:36:00Z",
"orderId": "ord_5678901234",
"items": [
[
{
"skuId": "sku_9234276173",
"quantity": 1
}
]
],
"liveMode": false,
"trackingCompany": "Fedex",
"trackingNumber": "5678901234",
"trackingUrl": "http://www.digitalriver.com?code=5678901234"
}

Return a list of all fulfillments

To retrieve a list of all Fulfillments, send a request to retrieve the fulfillments.

Request header example
GET https://api.digitalriver.com/fulfillments
Authorization:[basic {secret key}]
Accept:[application/json]

A successful request returns an array of Fulfillment objects. The sources are sorted by creation date, with the most recently created fulfillment appearing first.

{
"hasMore": true,
"data": [
{
"id": "ful_25c651d0-8079-48d7-b22e-eb1e2f451966",
"createdTime": "2018-04-25T20:36:00Z",
"orderId": "ord_5678901234",
"items": [
[
{
"skuId": "sku_9234276173",
"quantity": 1
}
]
],
"liveMode": false,
"trackingCompany": "Fedex",
"trackingNumber": "5678901234",
"trackingUrl": "http://www.digitalriver.com?code=5678901234"
}
]
}