Create File
Creates a file record and returns a presigned upload URL plus the form fields to include in the multipart POST.
Upload the file directly to the returned URL, then reference it by file_id from other resources. The upload URL expires 10 minutes after creation, so request it as part of the same flow that performs the upload.
Each purpose enforces its own MIME allowlist and maximum file size, validated before the presigned URL is issued — a content_type or size_bytes outside the purpose’s limits is rejected with a 400.
Authentication
Sales channel API key for merchant server-to-server authentication
Request
The file’s MIME type, e.g. application/pdf. Must be allowed for the given purpose.
The business domain the file is for (e.g. dispute_evidence).
The file size in bytes. Must be within the per-purpose maximum.
Response
When the presigned upload URL expires (10 minutes after creation).
Presigned URL to POST the file to (multipart/form-data).