Skip to main content
POST
cURL

Headers

Authorization
string
required

Bearer token. Format: Bearer <api_key>

Idempotency-Key
string

Unique key per logical operation. UUID v4 recommended. Max 255 characters.

Path Parameters

beneficiaryId
string
required

Beneficiary identifier.

Query Parameters

accountId
string
required

Account this beneficiary belongs to.

Body

application/json

A document to upload for a beneficiary in review.

fileName
string
required

The file's name, kept for reference.

Maximum string length: 255
contentType
enum<string>
required

The file's type. The upload is held to it, and the stored file is checked against PDF, PNG and JPEG on completion.

Available options:
application/pdf,
image/png,
image/jpeg
size
integer<int32>
required

The file's size in bytes, up to 20 MB (20971520).

Required range: 1 <= x <= 20971520

Response

The request has succeeded and a new resource has been created as a result.

A presigned upload: POST the file straight to storage, then complete it.

object
enum<string>
required

Object type. Always document_upload.

Available options:
document_upload
documentId
string
required

Document identifier, for the complete call.

type
enum<string>
required

Which required document this is.

Available options:
invoice,
supporting_documents,
source_of_funds,
counterparty_details,
bank_statement
upload
object
required

Where and how to POST the file: multipart/form-data, every field first, the file as file last.

expiresAt
string
required

The upload URL stops working after this time.