Update account dispute
curl --request POST \
--url https://sandbox-api.marqeta.com/v3/credit/accounts/{account_token}/disputes/{dispute_token}/transitions \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"amount": 500,
"status": "AH_WON"
}
'import requests
url = "https://sandbox-api.marqeta.com/v3/credit/accounts/{account_token}/disputes/{dispute_token}/transitions"
payload = {
"amount": 500,
"status": "AH_WON"
}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({amount: 500, status: 'AH_WON'})
};
fetch('https://sandbox-api.marqeta.com/v3/credit/accounts/{account_token}/disputes/{dispute_token}/transitions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://sandbox-api.marqeta.com/v3/credit/accounts/{account_token}/disputes/{dispute_token}/transitions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'amount' => 500,
'status' => 'AH_WON'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://sandbox-api.marqeta.com/v3/credit/accounts/{account_token}/disputes/{dispute_token}/transitions"
payload := strings.NewReader("{\n \"amount\": 500,\n \"status\": \"AH_WON\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Basic <encoded-value>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://sandbox-api.marqeta.com/v3/credit/accounts/{account_token}/disputes/{dispute_token}/transitions")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"amount\": 500,\n \"status\": \"AH_WON\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox-api.marqeta.com/v3/credit/accounts/{account_token}/disputes/{dispute_token}/transitions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"amount\": 500,\n \"status\": \"AH_WON\"\n}"
response = http.request(request)
puts response.read_body{
"notes": "account holder evidence accepted",
"token": "dispute_update_token1234",
"amount": 500,
"status": "AH_WON",
"created_time": "2023-07-01T00:27:09Z",
"account_token": "my_account_token_12"
}{
"code": 123,
"message": "<string>"
}Credit Account Disputes
Update account dispute
Update the amount or status of a dispute on a credit account.
POST
/
credit
/
accounts
/
{account_token}
/
disputes
/
{dispute_token}
/
transitions
Update account dispute
curl --request POST \
--url https://sandbox-api.marqeta.com/v3/credit/accounts/{account_token}/disputes/{dispute_token}/transitions \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"amount": 500,
"status": "AH_WON"
}
'import requests
url = "https://sandbox-api.marqeta.com/v3/credit/accounts/{account_token}/disputes/{dispute_token}/transitions"
payload = {
"amount": 500,
"status": "AH_WON"
}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({amount: 500, status: 'AH_WON'})
};
fetch('https://sandbox-api.marqeta.com/v3/credit/accounts/{account_token}/disputes/{dispute_token}/transitions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://sandbox-api.marqeta.com/v3/credit/accounts/{account_token}/disputes/{dispute_token}/transitions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'amount' => 500,
'status' => 'AH_WON'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://sandbox-api.marqeta.com/v3/credit/accounts/{account_token}/disputes/{dispute_token}/transitions"
payload := strings.NewReader("{\n \"amount\": 500,\n \"status\": \"AH_WON\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Basic <encoded-value>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://sandbox-api.marqeta.com/v3/credit/accounts/{account_token}/disputes/{dispute_token}/transitions")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"amount\": 500,\n \"status\": \"AH_WON\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox-api.marqeta.com/v3/credit/accounts/{account_token}/disputes/{dispute_token}/transitions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"amount\": 500,\n \"status\": \"AH_WON\"\n}"
response = http.request(request)
puts response.read_body{
"notes": "account holder evidence accepted",
"token": "dispute_update_token1234",
"amount": 500,
"status": "AH_WON",
"created_time": "2023-07-01T00:27:09Z",
"account_token": "my_account_token_12"
}{
"code": 123,
"message": "<string>"
}POST//////
Update the amount or status of a dispute on a credit account.
URL path parameters
| Fields | Description |
|---|---|
| account_token string Required | Unique identifier of the credit account from which to update a dispute. Send a GET request to /credit/accounts to retrieve existing credit account tokens.Allowable Values: Existing account token |
| dispute_token string Required | Unique identifier of the dispute to update. Send a GET request to /credit/accounts/{account_token}/disputes to retrieve existing credit account tokens.Allowable Values: Existing dispute token |
Request body
| Fields | Description |
|---|---|
| amount decimal Required | Updated amount of the dispute, based on the resolution. Allowable Values: Format: 0.00 |
| status string Required | Status of the dispute. - ACTIVE - The dispute is active and awaiting resolution.- REVERSED - The dispute has been reversed and is no longer active.- AH_WON - The account holder won the dispute.- AH_LOST - The account holder lost the dispute.Allowable Values: ACTIVE, REVERSED, AH_WON, AH_LOST, REFUNDED |
| notes string Optional | Additional information on the dispute update (for example, a reason for the dispute update). Allowable Values: 750 char max |
| token string Optional | Unique identifier of the dispute update. Allowable Values: 36 char max |
| source_created_time datetime Optional | Date and time when the dispute occurred. Allowable Values: Format: yyyy-MM-ddThh:mm:ssZ |
| interest_adjustments array of objects Optional | List of interest adjustments and their effective times, if applicable. Note that this typically only applies for a cross-cycle activity, such as a dispute or payment. Allowable Values: Valid array of one or more interest_adjustments objects |
| interest_adjustments[].currency_code string Required | Valid three-digit ISO 4217 currency code. Allowable Values: USD |
| interest_adjustments[].effective_date datetime Required | Date and time when the dispute interest charge originally happened, in UTC. Allowable Values: Format: yyyy-MM-ddThh:mm:ssZ |
| interest_adjustments[].amount decimal Required | The fee amount. Allowable Values: - < 0 (Credit) - The dispute is initiated.- > 0 (Debit) - The dispute is lost. |
Sample request body
JSON
{
"amount": 500,
"status": "AH_WON"
}
Response body
| Fields | Description |
|---|---|
| amount decimal Returned | Amount of the updated dispute, based on the resolution. Allowable Values: Format: 0.00 |
| status string Returned | Status of the dispute. - ACTIVE - The dispute is active and awaiting resolution.- REVERSED - The dispute has been reversed and is no longer active.- AH_WON - The account holder won the dispute.- AH_LOST - The account holder lost the dispute.Allowable Values: ACTIVE, REVERSED, AH_WON, AH_LOST, REFUNDED |
| notes string Conditionally returned | Additional information on the dispute update (for example, a reason for the dispute update). Allowable Values: 750 char max |
| account_token string Returned | Unique identifier of the credit account on which the dispute was updated. Allowable Values: Existing account token |
| token string Returned | Unique identifier of the dispute update. Allowable Values: 36 char max |
| created_time datetime Returned | Date and time when the dispute update was created on Marqeta’s credit platform, in UTC. Allowable Values: Format: yyyy-MM-ddThh:mm:ssZ |
Sample response body
JSON
{
"amount": 500,
"status": "AH_WON",
"notes": "account holder evidence accepted",
"account_token": "my_account_token_12",
"token": "dispute_update_token1234",
"created_time": "2023-07-01T00:27:09Z"
}
Authorizations
Path Parameters
Body
application/json
Information about a transaction dispute update request.
Updated status of the dispute.
REVERSED- The dispute has been reversed and is no longer active.AH_WON- The account holder won the dispute.AH_LOST- The account holder lost the dispute.WRITE_OFF- The dispute was written off.
Available options:
ACTIVE, REVERSED, AH_WON, AH_LOST, REFUNDED, WRITE_OFF Response
Transitioned transaction dispute object.
Information about a transaction dispute update request.
Status of the updated dispute.
REVERSED- The dispute has been reversed and is no longer active.AH_WON- The account holder won the dispute.AH_LOST- The account holder lost the dispute.WRITE_OFF- The dispute was written off.
Available options:
ACTIVE, REVERSED, AH_WON, AH_LOST, REFUNDED, WRITE_OFF Was this page helpful?