Get Brand Detail

Retrieve a specific brand by ID.

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 brand_id = "brand_xxxxxxxxxx";

    let resp = client.brands().id(brand_id).retrieve().send().await?;

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

    Ok(())
}

Path Parameters

ParameterTypeDescription
idstringBrand Id

Responses

200 Status

FieldTypeDescription
brand_idstring
business_idstring
descriptionobject
enabledboolean
imageobject
nameobject
reason_for_holdobjectIncase the brand verification fails or is put on hold
statement_descriptorstring
support_emailobject
urlobject
verification_enabledboolean
verification_statusBrandVerificationStatus

Get a single brand

404 Status

Brand not found