Accept Fields
1 min
POST
https://api.accertify.net/api/cbv1/disputeInformation/Accept
Body Parameters
- bodyobject
- DisputeIdstringrequiredDescription
- MerchantNumberstringrequiredDescription
- PurchaseTransactionIDstringDescription
- DatabaseIdstringDescription
- ActionstringrequiredDescription
- CommentsstringDescription
- DisputeAmountnumber<decimal>DescriptionFormatdecimal
- TransactionAmountnumber<decimal>DescriptionFormatdecimal
- FinalMessagebooleanDescription
Responses
200
- SuccessResponseExample
{ "DisputeId": "abc00000886", "MerchantNumber": "xyz3546dfd", "DisputeType": "Chargeback", "ReplyByDate": "2011-12-03", "Error": "string", "Warning": "string", "Comments": "string" }Description- DisputeIDstringDescription
- MerchantNumberstringDescription
- DisputeTypestringDescription
- ReplyByDatestringDescription
- ErrorstringDescription
- WarningstringDescription
- CommentsstringDescription
400
- Error400ResponseExample
{ "errorMessage": "Validation Failed", "errorCode": 400, "errors": [ "Missing fields MerchantNumber" ] }Description- errorMessagestringDescription
- errorcodenumber<integer>DescriptionFormatinteger
- errorsstring[]Description
401
- Error401ResponseExample
{ "errorCode": 401, "errorMessage": "Not authorized" }Description- errorcodenumber<integer>DescriptionFormatinteger
- errorMessagestringDescription
404
- Error404ResponseExample
{ "errorCode": 404, "errorMessage": "Unknown API" }Description- errorcodenumber<integer>DescriptionFormatinteger
- errorMessagestringDescription
500
- Error500ResponseExample
{ "errorCode": 500, "errorMessage": "Internal Server Error" }Description- errorcodenumber<integer>DescriptionFormatinteger
- errorMessagestringDescription
curl
curl --request POST \
--url https://api.accertify.net/api/cbv1/disputeInformation/Accept \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '{
"DisputeId": "",
"MerchantNumber": "",
"Action": ""
}'javascript
var myHeaders = new Headers();
myHeaders.append("accept", "application/json");
myHeaders.append("content-type", "application/json");
var raw = JSON.stringify({
"DisputeId": "",
"MerchantNumber": "",
"Action": ""
});
var requestOptions = {
method: 'POST',
headers: myHeaders,
body: raw,
redirect: 'follow'
};
fetch("https://api.accertify.net/api/cbv1/disputeInformation/Accept", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));ruby
require "uri"
require "json"
require "net/http"
url = URI("https://api.accertify.net/api/cbv1/disputeInformation/Accept")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Post.new(url)
request["accept"] = "application/json"
request["content-type"] = "application/json"
request.body = JSON.dump({
"DisputeId": "",
"MerchantNumber": "",
"Action": ""
})
response = https.request(request)
puts response.read_body
python
import requests
import json
url = "https://api.accertify.net/api/cbv1/disputeInformation/Accept"
payload = json.dumps({
"DisputeId": "",
"MerchantNumber": "",
"Action": ""
})
headers = {
'accept': 'application/json',
'content-type': 'application/json'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
200
// You get the following response when we update a transaction or create a new one.
{
"DisputeID": "",
"MerchantNumber": "",
"DisputeType": "",
"ReplyByDate": "",
"Error": "",
"Warning": "",
"Comments": ""
}400
// Validation Failed
{
"errorMessage": "",
"errorcode": "",
"errors": [
""
]
}401
// System generated error due to invalid user credentials.
{
"errorcode": "",
"errorMessage": ""
}404
// System generated error due to an error in the URL string, such as unknown API requests.
{
"errorcode": "",
"errorMessage": ""
}500
// System generated error due to an internal error and we are unable to save documents.
{
"errorcode": "",
"errorMessage": ""
}