latestOpenAPI 3.0.12026-08-101292701.1 MB

f21981db32be

Fulfillment Returns

Returns a list of fulfillment returns

Get all returns.

get/fulfillment-returns

Query parameters

createdTimeobject

A filter on the list based on the createdTime field. The value can be a string with an ISO-8601 UTC format datetime or it can be a dictionary with the following options:

  • eq—return values where the createdTime field equals to this timestamp
  • gt—return values where the createdTime field is after this timestamp
  • gte—return values where the createdTime field is after or equal to this timestamp
  • lt—return values where the createdTime field is before this timestamp
  • lte—return values where the createdTime field is before or equal to this timestamp
endingBeforestring

A cursor for use in pagination. The endingBefore parameter is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with xyz your subsequent calls can include endingBefore=xyz in order to fetch the previous page of the list.

startingAfterstring

A cursor for use in pagination. The startingAfter parameter is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with xyz, your subsequent calls can include startingAfter=xyz in order to fetch the next page of the list.

limitinteger

A limit on the number of objects returned. Limit can range between 1 and 100, and the default is 10.

idsstring[]

Only return objects with these IDs.

upstreamIdsstring[]

Only return objects with these upstreamIds.

statestring

Only return objects in the given state

fulfillmentOrderIdstring

The fulfillment order to retrieve returns for.

inventoryItemIdstring

The inventory item id to retrieve returns for.

Response

200 OK

hasMoreboolean

Whether or not there are more elements available after this set. If false this set represents the end of the list.

Example response

{
  "hasMore": true,
  "data": [
    {
      "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"
      }
    }
  ]
}