Skip to main content
Use this endpoint to upload a document onto the Razorpay ecosystem. After a document is successfully uploaded, the corresponding document id (present in response) can be provided in cases such as dispute evidence submission.

Request

Curl

Response

Success

Parameters

id : string The 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 nature and format in which the document is uploaded. Possible values include:
  • image/jpg
  • image/jpeg
  • image/png
  • application/pdf
created_at : integer Unix timestamp at which the document was uploaded.

Errors

The API “ provided is invalid.
  • code: 401
  • description: The API credentials passed in the API call differ from the ones generated on the Dashboard.- Different keys for test mode and live modes.
  • Expired API key.
  • solution: The API keys must be active and entered correctly with no whitespace before or after the keys.