#dario_api

1 messages ¡ Page 1 of 1 (latest)

elfin carbonBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1338899673561170012

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

sick olive
#

Good question, looking in to this and will get back to you. Are you looking into how to find the charges related to dispute objects at all? Or are you looking at these objects somewhere where they are mixed in with objects that were created other ways?

plush holly
#

Thanks for getting back to me. It's the second case, so among a list of balance transactions in a payout, how can we determine the one that is associated with a won dispute.

sick olive
#

Gotcha, looking in to this

#
  "id": "txn_1QrLv0Jmquaq3LbpXAckMoko",
  "object": "balance_transaction",
  "amount": -1099,
  "available_on": 1739289757,
  "created": 1739289757,
  "currency": "usd",
  "description": "Chargeback withdrawal for ch_3QrLuzJmquaq3Lbp1ReSdwRs",
  "exchange_rate": null,
  "fee": 1500,
  "fee_details": [
    {
      "amount": 1500,
      "application": null,
      "currency": "usd",
      "description": "Dispute fee",
      "type": "stripe_fee"
    }
  ],
  "net": -2599,
  "reporting_category": "dispute",
  "source": "dp_1QrLuzJmquaq3LbpCMonaAwZ",
  "status": "available",
  "type": "adjustment"
}```
Testing a quick one on my account it looks like `reporting_category: "dispute"` would be the easiest way to see that that is what the transaction represents
#

And you can use the ID from the source field to get more info on the dispute and related charge

plush holly
#

Thanks, and this is for a connected account scenario with direct charges?

sick olive
#

That was for a payment intent that was directly on my account but the object should look the same in a direct charge scenario. The only difference would be that these objects exist on a connected account and so will only show up when making calls while passing that account's ID