POST
/
v1
/
businesses
/
{businessId}
/
bank-transactions
/
{transactionId}
/
documents
curl --request POST \
  --url https://sandbox.layerfi.com/v1/businesses/{businessId}/bank-transactions/{transactionId}/documents \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form type=jpg \
  --form name=exampleFile.jpg
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "fileType": "JPEG",
  "filename": "exampleFile.jpg",
  "documentType": "RECEIPT"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Content-Type
string

Content-Type must be set to multipart/form-data

Path Parameters

businessId
string
required

The UUID of the business to upload the document for

transactionId
string
required

The UUID of the transaction to associate this document with

Body

multipart/form-data

Response

200
application/json

Contains metadata about a file, including its type, name, and the category of document it represents.