latestOpenAPI 3.0.12026-08-101292701.1 MB

f21981db32be

Files

Returns a list of files

Gets all files specified in the request.

get/files

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:

  • 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.

purposestring

Only return files with this purpose.

fileNamestring

Only return files with this file name.

titlestring

Only return files with this title.

sizeobject

A filter on the list based on the files size field. The value can be a string or it can be a dictionary with the following options:

  • gt - return values where the size field is greater than this value
  • gte - return values where the size field is greater than or equal to this value
  • lt - return values where the size field is less than this value
  • lte - return values where the size field is less than or equal to this value
typestring

Only return files of this type.

Response

200 OK

hasMoreboolean

Indicates 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": "09e2464f-9b4f-482b-ae89-732183c705be",
      "createdTime": "2018-04-25T20:36:00Z",
      "fileName": "file.png",
      "links": [
        {
          "id": "link_d992b05c-31d3-485e-b1f7-7b95f06cbfe8",
          "createdTime": "2018-04-25T20:36:00Z",
          "expiresTime": "2020-04-25T20:36:00Z",
          "fileId": "file_09e2464f-9b4f-482b-ae89-732183c705be",
          "metadata": {
            "coupon": "iOS"
          },
          "url": "https://files.digitalriver.com/links/fl_29a093a2-8989-4def-a50c-d8950d1436d4"
        }
      ],
      "purpose": "tax_document_customer_upload",
      "title": "My 2019 Tax Certificate.",
      "size": 72334,
      "type": "png",
      "url": "https://files.digitalriver.com/files/file_17a0cab7-1ff7-478e-99f9-d4e753dec24d/content"
    }
  ]
}