v1

latestOpenAPI 3.0.0Proprietary2026-07-1313647393.0 KB
Documents

Upload a document

Upload a file to Razorpay. Returns a document ID that can be used in dispute evidence submissions. Supports JPEG, PNG, and PDF formats.

post/documents

Response

Document uploaded.

idstring

Unique document identifier. Example: doc_EsyWjHrfzb59Re. Always 14 alphanumeric characters.

entity'document'
namestring

Filename of the uploaded document.

mime_type'image/jpg' | 'image/jpeg' | 'image/png' | 'application/pdf'

MIME type of the uploaded file.

sizeinteger

File size in bytes.

purposestring

Upload reason. Example: dispute_evidence.

created_atinteger

Unix timestamp of upload.