cURL
curl --request POST \ --url https://app.disputeninja.io/api/v1/files/upload \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: multipart/form-data' \ --form file='@example-file' \ --form 'stripe_dispute_id=<string>'
{ "message": "<string>", "dispute_id": "<string>", "stripe_dispute_id": "<string>", "file": { "id": "<string>", "url": "<string>", "name": "<string>" } }
Upload a PDF, PNG, or JPG file as dispute evidence to support your case. File size limit is 10MB.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
The evidence file to upload. Must be in PDF, PNG, or JPG format. Maximum file size is 5MB.
The Stripe dispute ID to which the evidence data will be attached
File uploaded successfully
A message indicating the success of the file upload
The ID of the dispute associated with the uploaded file
The Stripe dispute ID associated with the uploaded file
Details of the uploaded file
Show child attributes
The unique identifier of the uploaded file
The URL where the uploaded file can be accessed
The original name of the uploaded file