Skip to main content
Schema2020-08-27object

file

This is an object representing a file hosted on Stripe's servers. The file may have been uploaded by yourself using the [create file](https://stripe.com/docs/api#create_file) request (for example, when uploading dispute evidence) or it may have been created by Stripe (for example, the results of a [Sigma scheduled query](#scheduled_queries)). Related guide: [File Upload Guide](https://stripe.com/docs/file-upload).

Source
openapi/spec3.json
Commit
d70de345383d
Active snapshot
da69df7e6e11

File

object

This is an object representing a file hosted on Stripe's servers. The file may have been uploaded by yourself using the [create file](https://stripe.com/docs/api#create_file) request (for example, when uploading dispute evidence) or it may have been created by Stripe (for example, the results of a [Sigma scheduled query](#scheduled_queries)). Related guide: [File Upload Guide](https://stripe.com/docs/file-upload).

created integer (unix-time)
required

Time at which the object was created. Measured in seconds since the Unix epoch.

expires_at integer (unix-time)
optionalnullable

The time at which the file expires and is no longer available in epoch seconds.

filename string
optionalnullable

A filename for the file, suitable for saving to a filesystem.

id string
required

Unique identifier for the object.

links FileFileLinkList object
optionalnullable

A list of [file links](https://stripe.com/docs/api#file_links) that point at this file.

object string
required

String representing the object's type. Objects of the same type share the same value.

purpose string
required

The [purpose](https://stripe.com/docs/file-upload#uploading-a-file) of the uploaded file.

size integer
required

The size in bytes of the file object.

title string
optionalnullable

A user friendly title for the document.

type string
optionalnullable

The type of the file returned (e.g., `csv`, `pdf`, `jpg`, or `png`).

url string
optionalnullable

The URL from which the file can be downloaded using your live secret API key.