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.
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).