Skip to main content
POST
Create file upload

Authorizations

Authorization
string
header
required

API key prefixed with finta_

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.

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}==$

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.

Pattern: ^file_[A-Za-z0-9]+$
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.