Skip to main content
GET
Available in🇮🇳 India
Use this endpoint to download an earlier uploaded document. The response is the raw file content (binary) with the original Content-Type header (for example, image/jpeg for an uploaded image), not a JSON object.

Path Parameters

string
required
The unique identifier of the document. For example, doc_EsyWjHrfzb59Re.

Response

A successful request returns HTTP 200 with the file as the response body. The response has no JSON wrapper. Save the body to a file, for example with --output in cURL. Check these response headers:
  • Content-Type: MIME type of the uploaded file, such as image/jpeg, image/png or application/pdf.
  • Content-Length: Size of the file in bytes.

Errors

Code: 400The 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.
Code: 400
  • The id is not 14 characters long.
  • The id is not alphanumeric.
Solution: Use a valid document id.
Code: 400The id does not exist, or it belongs to a different merchant. The API returns the same error for both cases for security reasons (so callers cannot enumerate other merchants’ document ids).Solution: Pass a valid id that was created by this merchant account.
Last modified on November 27, 2026