Get Dispute Detail

Get detailed information about a specific dispute.

Request

use dodopayments_rust::{to_pretty_json, DodoPaymentsClientBuilder};

#[tokio::main]

async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let api_key = std::env::var("DODO_API_KEY")?;

    let client = DodoPaymentsClientBuilder::new()
        .bearer_token(&api_key)
        .enviroment("test_mode")
        .build()?;

    let dispute_id = "dispute_xxxxxxxxxx";

    let resp = client.disputes().id(dispute_id).retrieve().send().await?;

    println!("{}", to_pretty_json(&resp)?);

    Ok(())
}

Path Parameters

ParameterTypeDescription
dispute_idstringDispute Id

Responses

200 Status

FieldTypeDescription
amountstringThe amount involved in the dispute, represented as a string to accommodate precision.
business_idstringThe unique identifier of the business involved in the dispute.
created_atstringThe timestamp of when the dispute was created, in UTC.
currencystringThe currency of the disputed amount, represented as an ISO 4217 currency code.
customerCustomerLimitedDetailsResponseThe customer who filed the dispute
dispute_idstringThe unique identifier of the dispute.
dispute_stageDisputeStageThe current stage of the dispute process.
dispute_statusDisputeStatusThe current status of the dispute.
is_resolved_by_rdrobjectWhether the dispute was resolved by Rapid Dispute Resolution
payment_idstringThe unique identifier of the payment associated with the dispute.
reasonobjectReason for the dispute
remarksobjectRemarks

500 Status

Something went wrong :(