What is it? The dispute evidence upload endpoint accepts supporting documentation when challenging a dispute. Each upload returns an attachment ID you reference in your dispute response.Documentation Index
Fetch the complete documentation index at: https://docs.tesouro.com/llms.txt
Use this file to discover all available pages before exploring further.
ScenarioWhen a customer disputes a purchase at Maple Street Coffee, Clearpath Payments challenges the dispute by attaching evidence — receipts, proof of delivery, or correspondence with the customer.
Implementation rules
- Files must be uploaded before responding to a dispute with a challenge
- File format and size requirements vary by payment brand (see table below)
- The returned
attachmentIdmust be included in therespondToDisputemutation when challenging a dispute - At least one attachment is required when challenging a dispute
- Multiple files can be uploaded separately, and will be referenced together in a single dispute challenge
File requirements by payment brand
Make sure to check the dispute’s payment brand before uploading evidence, as each brand has
different file type and size requirements.
| Payment brand | Max file size | Supported file types |
|---|---|---|
| Visa | 10MB | PDF, JPG, JPEG, TIF, TIFF |
| Mastercard | 15MB | PDF, JPG, JPEG, TIF, TIFF |
| Discover | 15MB | JPG, JPEG, PNG, BMP |
| American Express | 1MB | JPG, JPEG, TIF, TIFF, GIF |
Upload process
The upload process uses a standard multipart form data request to a REST endpoint:{baseUrl}is your Tesouro API base URL{disputeId}is the ID of the dispute you’re uploading evidence for
file.
Error handling
The endpoint responds with a 400 status code if the file size exceeds the limit or if the file type isn’t supported for the dispute’s payment brand. Check the payment brand requirements before uploading.Using attachment IDs
After successfully uploading evidence, use the returnedattachmentId when challenging a dispute with the respondToDispute mutation (see Respond to a dispute).