Defend
Last updated
Was this helpful?
Was this helpful?
from hyperswitch_prism import DisputeClient
dispute_client = DisputeClient(
connector='stripe',
api_key='YOUR_API_KEY',
environment='SANDBOX'
)request = {
"dispute_id": "dp_xxx",
"reason_code": "product_or_service_provided",
"explanation": "Customer ordered product on 2024-01-10. Package was delivered on 2024-01-15 to the customer's verified billing address. Customer signed for delivery. Delivery confirmation and signature captured. Customer never contacted support about issues.",
"submit_evidence": True
}
response = await dispute_client.defend(request){
"dispute_id": "dp_xxx",
"defense_submitted": True,
"status": "UNDER_REVIEW",
"status_code": 200
}