Skip to main content
Document upload uses multipart/form-data. The request includes metadata fields plus a required file field named file. You need DOCUMENTS_WRITE to upload or delete documents. You need DOCUMENTS_READ to request signed download URLs.

Multipart fields

Allowed MIME types are application/pdf, image/jpeg, image/png, and image/webp. The maximum file size is 20 MB.

Common entity targets

Multipart request signing uses Nuvera’s canonical multipart body hash, not the raw multipart stream hash. See Multipart body hash before implementing uploads.

Upload a payment invoice

Payment creation requires at least one document with category INVOICE. If the payment does not exist yet, upload the invoice with entityType=PAYMENT and entityId=pending.

Upload a customer document

Use the customer ID returned by POST /api/v1/customers.

Read or delete a document

Use GET /api/v1/documents/{id} to receive a signed download URL.
Use DELETE /api/v1/documents/{id} only for documents that should no longer be used by a customer or payment flow. For full document schemas, open the API Reference.