Skip to main content

Dispute Text Evidence

Endpoint for adding text evidence to a Dispute.

info

Please be aware that this endpoint requires a Manage Transactions API Key.

POST /api/v1/groups/{group_id}/revere_pay/{linked_account_id}/disputes/{dispute_id}/evidence/text

Request Parameters

NameDescriptionTypeRequired
evidence_typeType of the evidence. Can be receipt, proof-of-delivery, cancelation-policy, terms-of-service, customer-communication, generic-evidence, cover-letter or other.stringRequired
textThe text which will be considered as the evidence.stringRequired

Response

CodeDescription
200Success
400Bad Request / Validation error
500Internal Error

Example Usage

plans.js
var headers = new Headers();
headers.append('Authorization', 'API_KEY');

var requestOptions = {
method: 'POST',
headers: headers,
redirect: 'follow'
};
const group_id = '';
const linked_account_id = '';
const dispute_id = '';
fetch(
`https://api.reverepayments.dev/api/v1/groups/${group_id}/revere_pay/${linked_account_id}/disputes/${dispute_id}/evidence/text`,
requestOptions
)
.then((response) => response.text())
.then((result) => console.log(result))
.catch((error) => console.log('error', error));

Example Request

{
"evidence_type": "receipt",
"text": "text"
}

Example Success Response

If the evidence request was successful the response body will be null and the status code will be 200.