(disputes )
A dispute is a situation where a cardholder formally questions a transaction on their account with their card issuer. This could be for a number of reasons ranging from billing errors to fraudulent activity or dissatisfactory goods/services. If the dispute is recognized as legitimate, the issuer will reverse the payment (otherwise known as a chargeback).
You can simulate disputes, including winning or losing a dispute, in test mode. See our test mode guide for more information.
Returns the list of disputes. Read our disputes guide to learn more. To use this endpoint from the browser, you'll need to specify the /accounts/{your-account-id}/transfers.read
scope when generating a token .
import moov
from moov import Moov
import os
s = Moov (
gateway_auth = os .getenv ("MOOV_GATEWAY_AUTH" , "" ),
)
res = s .disputes .list_disputes (request = {
"count" : 10 ,
"skip" : 10 ,
"respond_start_date_time" : "2009-11-10T23:00:00Z" ,
"respond_end_date_time" : "2009-11-13T01:00:00Z" ,
"status" : moov .DisputeStatus .RESPONSE_NEEDED ,
"merchant_account_id" : "9506dbf6-4208-44c3-ad8a-e4431660e1f2" ,
"cardholder_account_id" : "9506dbf6-4208-44c3-ad8a-e4431660e1f2" ,
"dispute_i_ds" : "24858e38-dd7d-4164-a1ae-206d8214148c,c436e049-3bb3-477d-b304-5601e0c08222,9f161723-b328-4eb7-967e-096106900b7e" ,
"transfer_i_ds" : "44f4b83c-db0e-43d2-b039-cbe1ec6aa72c" ,
"start_date_time" : "2009-11-10T23:00:00Z" ,
"end_date_time" : "2009-11-13T01:00:00Z" ,
"order_by" : "created-at:desc" ,
})
if res is not None :
# handle response
pass
models.ListDisputesResponse
Error Type
Status Code
Content Type
models.SDKError
4XX, 5XX
*/*
Returns a user's dispute by ID. Read our disputes guide to learn more. To use this endpoint from the browser, you'll need to specify the /accounts/{your-account-id}/transfers.read
scope when generating a token .
from moov import Moov
import os
s = Moov (
gateway_auth = os .getenv ("MOOV_GATEWAY_AUTH" , "" ),
)
res = s .disputes .get_dispute (dispute_id = "ec7e1848-dc80-4ab0-8827-dd7fc0737b43" )
if res is not None :
# handle response
pass
Parameter
Type
Required
Description
Example
dispute_id
str
✔️
ID of dispute
ec7e1848-dc80-4ab0-8827-dd7fc0737b43
retries
Optional[utils.RetryConfig]
➖
Configuration to override the default retry behavior of the client.
models.GetDisputeResponse
Error Type
Status Code
Content Type
models.SDKError
4XX, 5XX
*/*
Accepts a dispute. Read our disputes guide to learn more. To use this endpoint from the browser, you'll need to specify the /accounts/{your-account-id}/transfers.write
scope when generating a token .
from moov import Moov
import os
s = Moov (
gateway_auth = os .getenv ("MOOV_GATEWAY_AUTH" , "" ),
)
res = s .disputes .accept_dispute (dispute_id = "ec7e1848-dc80-4ab0-8827-dd7fc0737b43" )
if res is not None :
# handle response
pass
Parameter
Type
Required
Description
Example
dispute_id
str
✔️
ID of dispute
ec7e1848-dc80-4ab0-8827-dd7fc0737b43
retries
Optional[utils.RetryConfig]
➖
Configuration to override the default retry behavior of the client.
models.AcceptDisputeResponse
Error Type
Status Code
Content Type
models.Error1
500
application/json
models.SDKError
4XX, 5XX
*/*
Returns a dispute's public evidence by its ID. Read our disputes guide to learn more. To use this endpoint from the browser, you'll need to specify the /accounts/{your-account-id}/transfers.read
scope when generating a token .
from moov import Moov
import os
s = Moov (
gateway_auth = os .getenv ("MOOV_GATEWAY_AUTH" , "" ),
)
res = s .disputes .list_dispute_evidence (dispute_id = "ec7e1848-dc80-4ab0-8827-dd7fc0737b43" )
if res is not None :
# handle response
pass
Parameter
Type
Required
Description
Example
dispute_id
str
✔️
ID of dispute
ec7e1848-dc80-4ab0-8827-dd7fc0737b43
retries
Optional[utils.RetryConfig]
➖
Configuration to override the default retry behavior of the client.
models.ListDisputeEvidenceResponse
Error Type
Status Code
Content Type
models.Error1
500
application/json
models.SDKError
4XX, 5XX
*/*
Submits evidence for a dispute. Read our disputes guide to learn more. To use this endpoint from the browser, you'll need to specify the /accounts/{your-account-id}/transfers.write
scope when generating a token .
from moov import Moov
import os
s = Moov (
gateway_auth = os .getenv ("MOOV_GATEWAY_AUTH" , "" ),
)
res = s .disputes .submit_evidence (dispute_id = "ec7e1848-dc80-4ab0-8827-dd7fc0737b43" )
if res is not None :
# handle response
pass
Parameter
Type
Required
Description
Example
dispute_id
str
✔️
ID of dispute
ec7e1848-dc80-4ab0-8827-dd7fc0737b43
retries
Optional[utils.RetryConfig]
➖
Configuration to override the default retry behavior of the client.
models.SubmitEvidenceResponse
Error Type
Status Code
Content Type
models.Error1
500
application/json
models.SDKError
4XX, 5XX
*/*
Uploads a file as evidence for a dispute. Read our disputes guide to learn more. To use this endpoint from the browser, you'll need to specify the /accounts/{your-account-id}/transfers.write
scope when generating a token .
import moov
from moov import Moov
import os
s = Moov (
gateway_auth = os .getenv ("MOOV_GATEWAY_AUTH" , "" ),
)
res = s .disputes .upload_evidence_file (dispute_id = "ec7e1848-dc80-4ab0-8827-dd7fc0737b43" , evidence_file = {
"file" : {
"file_name" : "example.file" ,
"content" : open ("example.file" , "rb" ),
},
"evidence_type" : moov .EvidenceType .CUSTOMER_COMMUNICATION ,
})
if res is not None :
# handle response
pass
Parameter
Type
Required
Description
Example
dispute_id
str
✔️
ID of dispute
ec7e1848-dc80-4ab0-8827-dd7fc0737b43
evidence_file
models.EvidenceFile
✔️
N/A
retries
Optional[utils.RetryConfig]
➖
Configuration to override the default retry behavior of the client.
models.UploadEvidenceFileResponse
Error Type
Status Code
Content Type
models.Error1
500
application/json
models.SDKError
4XX, 5XX
*/*
Uploads text as evidence for a dispute. Read our disputes guide to learn more. To use this endpoint from the browser, you'll need to specify the /accounts/{your-account-id}/transfers.write
scope when generating a token .
import moov
from moov import Moov
import os
s = Moov (
gateway_auth = os .getenv ("MOOV_GATEWAY_AUTH" , "" ),
)
res = s .disputes .upload_evidence_text (dispute_id = "ec7e1848-dc80-4ab0-8827-dd7fc0737b43" , evidence_text = {
"text" : "<value>" ,
"evidence_type" : moov .EvidenceType .CUSTOMER_COMMUNICATION ,
})
if res is not None :
# handle response
pass
Parameter
Type
Required
Description
Example
dispute_id
str
✔️
ID of dispute
ec7e1848-dc80-4ab0-8827-dd7fc0737b43
evidence_text
models.EvidenceText
✔️
N/A
retries
Optional[utils.RetryConfig]
➖
Configuration to override the default retry behavior of the client.
models.UploadEvidenceTextResponse
Error Type
Status Code
Content Type
models.Error1
500
application/json
models.SDKError
4XX, 5XX
*/*
Returns a piece of dispute evidence by evidence ID. Read our disputes guide to learn more. To use this endpoint from the browser, you'll need to specify the /accounts/{your-account-id}/transfers.read
scope when generating a token .
from moov import Moov
import os
s = Moov (
gateway_auth = os .getenv ("MOOV_GATEWAY_AUTH" , "" ),
)
res = s .disputes .get_dispute_evidence (dispute_id = "ec7e1848-dc80-4ab0-8827-dd7fc0737b43" , evidence_id = "ec7e1848-dc80-4ab0-8827-dd7fc0737b43" )
if res is not None :
# handle response
pass
Parameter
Type
Required
Description
Example
dispute_id
str
✔️
ID of dispute
ec7e1848-dc80-4ab0-8827-dd7fc0737b43
evidence_id
str
✔️
ID of evidence
ec7e1848-dc80-4ab0-8827-dd7fc0737b43
retries
Optional[utils.RetryConfig]
➖
Configuration to override the default retry behavior of the client.
models.GetDisputeEvidenceResponse
Error Type
Status Code
Content Type
models.SDKError
4XX, 5XX
*/*
Deletes dispute evidence by ID. Read our disputes guide to learn more. To use this endpoint from the browser, you'll need to specify the /accounts/{your-account-id}/transfers.write
scope when generating a token .
from moov import Moov
import os
s = Moov (
gateway_auth = os .getenv ("MOOV_GATEWAY_AUTH" , "" ),
)
res = s .disputes .delete_evidence (dispute_id = "ec7e1848-dc80-4ab0-8827-dd7fc0737b43" , evidence_id = "ec7e1848-dc80-4ab0-8827-dd7fc0737b43" )
if res is not None :
# handle response
pass
Parameter
Type
Required
Description
Example
dispute_id
str
✔️
ID of dispute
ec7e1848-dc80-4ab0-8827-dd7fc0737b43
evidence_id
str
✔️
ID of evidence
ec7e1848-dc80-4ab0-8827-dd7fc0737b43
retries
Optional[utils.RetryConfig]
➖
Configuration to override the default retry behavior of the client.
models.DeleteEvidenceResponse
Error Type
Status Code
Content Type
models.SDKError
4XX, 5XX
*/*
Updates dispute evidence by ID. Read our disputes guide to learn more. To use this endpoint from the browser, you'll need to specify the /accounts/{your-account-id}/transfers.write
scope when generating a token .
from moov import Moov
import os
s = Moov (
gateway_auth = os .getenv ("MOOV_GATEWAY_AUTH" , "" ),
)
res = s .disputes .update_dispute_evidence (dispute_id = "ec7e1848-dc80-4ab0-8827-dd7fc0737b43" , evidence_id = "ec7e1848-dc80-4ab0-8827-dd7fc0737b43" , evidence_update = {})
if res is not None :
# handle response
pass
Parameter
Type
Required
Description
Example
dispute_id
str
✔️
ID of dispute
ec7e1848-dc80-4ab0-8827-dd7fc0737b43
evidence_id
str
✔️
ID of evidence
ec7e1848-dc80-4ab0-8827-dd7fc0737b43
evidence_update
models.EvidenceUpdate
✔️
N/A
retries
Optional[utils.RetryConfig]
➖
Configuration to override the default retry behavior of the client.
models.UpdateDisputeEvidenceResponse
Error Type
Status Code
Content Type
models.Error1
500
application/json
models.SDKError
4XX, 5XX
*/*
get_dispute_evidence_data
Downloads dispute evidence data by ID. Read our disputes guide to learn more. To use this endpoint from the browser, you'll need to specify the /accounts/{your-account-id}/transfers.read
scope when generating a token .
from moov import Moov
import os
s = Moov (
gateway_auth = os .getenv ("MOOV_GATEWAY_AUTH" , "" ),
)
res = s .disputes .get_dispute_evidence_data (dispute_id = "ec7e1848-dc80-4ab0-8827-dd7fc0737b43" , evidence_id = "ec7e1848-dc80-4ab0-8827-dd7fc0737b43" )
if res is not None :
# handle response
pass
Parameter
Type
Required
Description
Example
dispute_id
str
✔️
ID of dispute
ec7e1848-dc80-4ab0-8827-dd7fc0737b43
evidence_id
str
✔️
ID of evidence
ec7e1848-dc80-4ab0-8827-dd7fc0737b43
retries
Optional[utils.RetryConfig]
➖
Configuration to override the default retry behavior of the client.
models.GetDisputeEvidenceDataResponse
Error Type
Status Code
Content Type
models.SDKError
4XX, 5XX
*/*