Create dispute evidence text
POST
/v2/disputes/{dispute_id}/evidence-text
Uploads text to use as evidence for a dispute challenge.
Name | Description |
---|---|
dispute_
Required
|
The ID of the dispute you want to upload evidence for. |
Name | Description |
---|---|
idempotency_
Required
|
The Unique ID. For more information, see Idempotency. |
evidence_
|
The type of evidence you are uploading. |
evidence_
Required
|
The evidence string. |
Response Fields
Name | Description |
---|---|
errors
|
Any errors that occurred during the request. |
evidence
|
The newly uploaded dispute evidence metadata. |
Examples
POST
/v2/disputes/{dispute_id}/evidence-text
cURL
- cURL
- Ruby
- Python
- C#
- Java
- PHP
- Node.js
curl https://connect.squareup.com/v2/disputes/bVTprrwk0gygTLZ96VX1oB/evidence-text \
-X POST \
-H 'Square-Version: 2022-06-16' \
-H 'Authorization: Bearer ACCESS_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"evidence_type": "TRACKING_NUMBER",
"evidence_text": "1Z8888888888888888",
"idempotency_key": "ed3ee3933d946f1514d505d173c82648"
}'
Response JSON
{
"evidence": {
"id": "TOomLInj6iWmP3N8qfCXrB",
"dispute_id": "bVTprrwk0gygTLZ96VX1oB",
"evidence_text": "1Z8888888888888888",
"evidence_type": "TRACKING_NUMBER",
"uploaded_at": "2018-10-18T16:01:10.000Z"
}
}