Skip to main content
POST
Create file upload

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.

Body

application/json
filename
string
required

The PDF's file name, kept and shown on the Taxes page.

Minimum string length: 1
size
integer
required

The file's length in bytes, such as from wc -c < return.pdf. At most 10 MB (10485760) for a bank_statement.

Required range: 1 <= x <= 5368709120
checksum
string
required

The file's MD5 digest in base64, such as from openssl md5 -binary return.pdf | base64.

Pattern: ^[A-Za-z0-9+/]{22}==$
purpose
enum<string>
default:tax_document

What may attach the file. tax_document is a filed tax return or Delaware franchise tax report, for Create income upload or Create franchise upload; it needs Taxes: Manage. bank_statement is a bank or card statement, for Reconcile reconciliation; it needs Reconciliation: Manage and can be at most 10 MB.

Available options:
tax_document,
bank_statement

Response

The upload URL and the file it becomes.

object
enum<string>
required
Available options:
file_upload
file_id
string
required

The file the PDF becomes once it is PUT to url. Pass it to a tax upload, or to Reconcile reconciliation as statement_file_id, as its purpose says.

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

What may attach the file. tax_document is a filed tax return or Delaware franchise tax report, for Create income upload or Create franchise upload; it needs Taxes: Manage. bank_statement is a bank or card statement, for Reconcile reconciliation; it needs Reconciliation: Manage and can be at most 10 MB.

Available options:
tax_document,
bank_statement
url
string<uri>
required

Signed storage URL to PUT the PDF's bytes to. Treat it as a secret.

method
enum<string>
required
Available options:
PUT
headers
object
required

Headers to send with the PUT, exactly as given (Content-Type, Content-MD5 and Content-Disposition).

expires_at
integer
required

Unix seconds after which url stops working, 10 minutes after the call. The file itself can be attached for 24 hours.