latestOpenAPI 3.0.12026-08-101292701.1 MB

f21981db32be

Fulfillment Returns

Gets a fulfillment return by its unique identifier

Retrieves a fulfillment return. Supply the unique identifier of the return.

get/fulfillment-returns/{id}

Path parameters

idstring required

Return ID

Response

OK.

idstring

The unique identifier for the fulfillment return.

createdTimestring date-time

The time when the fulfillment return was created.

fulfillmentOrderIdstring

The unique identifier of the fulfillment order associated with the fulfillment return.

upstreamIdstring

The unique identifier of the upstream order.

reasonstring

The reason for the return.

state'created' | 'pending' | 'accepted' | 'rejected'

An enumeration indicating the state of the fulfillment return.

type'client' | 'warehouse'

An enumeration indicating the type of the fulfillment return.

livemodeboolean

Has the value true if the object exists in live mode or the value false if the object exists in test mode.

Example response

{
  "id": "ret_5823594809",
  "createdTime": "2018-04-25T20:36:00Z",
  "fulfillmentOrderId": "ord_6645940010",
  "upstreamId": "ord_6645940010",
  "items": [
    {
      "fulfillmentOrderItemId": "99341140336",
      "inventoryItemId": "5823594809",
      "quantity": 1,
      "quantityAccepted": 1,
      "state": "accepted",
      "location": {
        "address": {
          "line1": "10380 Bren Rd W",
          "city": "Minnetonka",
          "postalCode": "55129",
          "state": "MN",
          "country": "US"
        },
        "name": "John Smith",
        "phone": "952-111-1111",
        "email": "jsmith@digitalriver.com"
      },
      "unitAttributes": [
        {
          "serialNumber": ".",
          "imeiNumber": ".",
          "simCardNumber": "."
        }
      ],
      "unitAttributesAccepted": [
        {
          "serialNumber": ".",
          "imeiNumber": ".",
          "simCardNumber": "."
        }
      ]
    }
  ],
  "reason": "requested_by_customer",
  "state": "pending",
  "type": "client",
  "location": {
    "address": {
      "line1": "10380 Bren Rd W",
      "city": "Minnetonka",
      "postalCode": "55129",
      "state": "MN",
      "country": "US"
    },
    "name": "John Smith",
    "phone": "952-111-1111",
    "email": "jsmith@digitalriver.com"
  }
}