Skip to main content
PATCH
Update file

Authorizations

Authorization
string
header
required

An API key prefixed with finta_, or the access token from a Finta CLI browser login (finta login), prefixed with finta_oat_. A CLI login's access token lasts one hour and the CLI renews it itself.

Path Parameters

id
string
required
Pattern: ^file_[A-Za-z0-9]+$

Body

application/json
area
enum<string>

Required on the initial save. On edits, omit it or send the original area.

Available options:
company,
books
description
string

Required on the initial save.

Required string length: 1 - 300
explanation
string

An optional memo. Send an empty string to clear it.

Maximum string length: 5000

Books files accept txn_, jmb_, jeu_, cat_ and je_ IDs. A je_ ID becomes the entry's batch or transaction. Duplicate targets produce one link. Stripe and Paddle transactions cannot be linked because their IDs change on rebuild.

Maximum array length: 50
Pattern: ^(?:txn_|jmb_|jeu_|cat_|je_)[A-Za-z0-9]+$

Response

The saved file with its explanation and links.

id
string
required

An API upload keeps its original ID after attaching. Other files have a stable ID derived from the stored file.

Pattern: ^file_[A-Za-z0-9]+$
object
enum<string>
required
Available options:
file
purpose
default:tax_document
required

The purpose given when uploading through the API, or null for other files.

Available options:
tax_document,
bank_statement,
file,
supporting_document,
company_document
filename
string
required

The file name used for download. A document's source may rename it when attached or filed.

size
integer
required

Size in bytes.

created
integer
required

File creation time in Unix seconds.

expires_at
integer | null
required

Unix seconds after which an unattached file is deleted, 24 hours after upload. Null for an attached file.

area
enum<string>
Available options:
company,
taxes,
reconciliation,
books
kind
enum<string>

The role the file serves on its source record.

Available options:
articles_of_incorporation,
bylaws,
ein_letter,
initial_board_action,
incorporator_consent,
certificate_of_amendment,
stock_purchase_agreement,
election_83b,
stock_certificate,
legal_address_change_document,
filed_income_tax_return,
draft_income_tax_return,
delaware_franchise_confirmation,
w9,
form_1099,
bank_statement,
supporting_document
content_type
string | null

The file's media type, if known. Returned on reads.

The source record's public reference, or null if it has no public reference in Files.

description
string | null

The description supplied when saving a file, or null for other files.

explanation
string

The optional memo for a saved file. Returned by Retrieve file and Update file.

Linked records for files saved in Files. Empty when there are no links. Omitted for feature-owned files.

statement_date
string<date> | null

The linked bank statement's UTC end date. If that date is unavailable, use the date stamped on the upload, or null when neither date is known. Returned for bank statements.

account_id
string | null

The bank statement's public account ID, or null when the account cannot be mapped. Returned for bank statements.

download_url
string<uri>

Signed URL to download the original bytes. Returned only by Retrieve file.

download_url_expires_at
integer

The signed download URL expires at this time in Unix seconds. Returned only by Retrieve file.