ScenarioTo challenge Ben’s dispute regarding a mechanical keyboard purchased from CoolTechGear.com, the partner must provide evidence that supports their case. This is done by attaching receipts, proof of delivery, correspondence with Ben, or other relevant documentation to prove the transaction was valid.
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 will respond with a 400 status code if the file size exceeds the limit or if the file type is not supported for the dispute’s payment brand. Always 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).