Documents API
Securely send dispute-related documents to Razorpay using the Documents API.
Use the Documents APIs to securely send documents to Razorpay. Document upload might be necessary for the following use cases:
- Submission of dispute evidence.
- Submission of identification proofs during onboarding.
id
string
Unique identifier of the document uploaded.
entity
string
Indicates the type of entity. In this case, it is document
.
purpose
string
The reason you are uploading this document. Here, it is dispute_evidence
.
size
integer
Indicates the size of the document in bytes.
mime_type
string
Indicates the mime_type of the document uploaded. Possible values include:
- image/jpg
- image/jpeg
- image/png
- application/pdf
created_at
integer
Timestamp (in Unix) when the document was uploaded.
You can upload a document onto the Razorpay ecosystem using the below endpoint. Post successful document creation, the corresponding document_id
(present in response) can be provided in use cases such as dispute evidence submission.
/documents
This API allows you to retrieve details of any document that has been uploaded earlier.
/documents/:id
id
mandatory
string
The unique identifier of the document.
This API allows you to download an earlier uploaded document.
/documents/:id/content
id
mandatory
string
The unique identifier of the document.