Files
The file object
A file is a document or image uploaded with POST /files, such as a payout slip, a logo or a statement for reconciliation. Its purpose sets the upload limits and whether it gets a public link.
Attributes
idstringRequiredUnique identifier for the object.
objectstringRequiredString naming the object's type.
livemodebooleanRequiredtruewhen the object exists in live mode,falsein test mode.createdtimestampRequiredTime the object was created, in Unix seconds.
updatedtimestampRequiredTime the object last changed, in Unix seconds.
file_namestringRequiredOriginal name of the uploaded file.
purposeenumRequiredWhat the file is for.
brandingA logo or brand image: PNG or JPEG, up to 2 MB, 64 to 4096 pixels on each side. Gets a lasting public link.
card_artCard artwork: PNG or JPEG, up to 1 MB, 160 to 2048 pixels on each side. Gets a lasting public link.
documentA business document. Stored privately.
gdprA data archive exported for a personal-data (GDPR) request. Stored privately.
productA product image. Gets a lasting public link.
profileA profile image. Gets a lasting public link.
payout_slipProof of a payout transfer: JPEG, PNG, WebP or PDF, up to 3 MB. Stored privately.
reconciliationA bank or provider statement to reconcile: CSV or plain text, within the 4 MB limit on the whole upload request. Stored privately.
verificationA supporting document for a verification, such as a bank book for a payout bank account. Stored privately.
sizeintegerRequiredSize of the file in bytes.
typestringMIME type detected from the file's content, for example
image/png.urlstringRequiredNullableLink to the file. Files with purpose
branding,card_art,productorprofilehave a lasting public link. For other purposes the link is signed when you create, retrieve or list the file and expires shortly after; read it again for a fresh link. Null when no link can be issued, for example when a private file can't be signed.metadataobjectRequiredAlways an empty object for files.