Skip to main content

Download Dispute Evidence File

Suggest Edits


Overview

Download the actual binary content of a dispute evidence file. This endpoint returns the file itself (PDF or JPEG) rather than metadata about it.


Resource Access

Production (api.ahrvo.network)

GET https://api.ahrvo.network/payments/na/disputes/{dispute_id}/evidence/\{evidence_id}/download

Staging (gateway.ahrvo.network)

GET http://gateway.ahrvo.network/payments/na/disputes/{dispute_id}/evidence/\{evidence_id}/download

Arguments

AttributeMandatory / OptionalDescription
dispute_idMandatoryThe unique ID of the dispute
evidence_idMandatoryThe unique ID of the evidence file to download

Example Request

curl -X GET https://gateway.ahrvo.network/payments/na/disputes/DPxxxxxxxxxxxxxxxxxx/evidence/EVxxxxxxxxxxxxxxxxxx/download \
-H "Authorization: Basic <base64_encoded_credentials>" \
--output receipt.pdf

Example Response

The response will be the binary content of the file with appropriate Content-Type headers:

Content-Type: application/pdf
Content-Disposition: attachment; filename="receipt.pdf"
Content-Length: 245678

[Binary file content]

For JPEG images:

Content-Type: image/jpeg
Content-Disposition: attachment; filename="shipping_confirmation.jpg"
Content-Length: 187234

[Binary file content]

Usage Notes

  • The response content type will match the uploaded file type (application/pdf or image/jpeg)
  • Use the --output flag in curl or similar functionality to save the file to disk
  • The original filename can be obtained from the evidence metadata tags
  • Files can be up to 1MB in size

API Documentation